@flock/wirespec 0.18.5 → 0.18.12

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 (49) hide show
  1. package/arrow-arrow-atomic.mjs +11 -11
  2. package/arrow-arrow-core.mjs +141 -141
  3. package/clikt-clikt-mordant.mjs +80 -80
  4. package/clikt-clikt.mjs +1395 -1395
  5. package/clikt-clikt.mjs.map +1 -1
  6. package/colormath-root-colormath.mjs +442 -442
  7. package/kotlin-kotlin-stdlib.mjs +1055 -947
  8. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  9. package/kotlin-openapi-bindings.mjs +20835 -6841
  10. package/kotlin-openapi-bindings.mjs.map +1 -1
  11. package/kotlin-rgxgen.mjs +1797 -1797
  12. package/kotlinx-io-kotlinx-io-core.mjs +405 -405
  13. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1967 -1770
  14. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  15. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1881 -1406
  16. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  17. package/mordant-mordant.mjs +1269 -1269
  18. package/package.json +3 -2
  19. package/wirespec-lsp.mjs +7 -0
  20. package/wirespec-src-compiler-core.mjs +1709 -1645
  21. package/wirespec-src-compiler-core.mjs.map +1 -1
  22. package/wirespec-src-compiler-emitters-java.mjs +378 -377
  23. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  24. package/wirespec-src-compiler-emitters-kotlin.mjs +289 -289
  25. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  26. package/wirespec-src-compiler-emitters-python.mjs +333 -332
  27. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  28. package/wirespec-src-compiler-emitters-rust.mjs +388 -377
  29. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  30. package/wirespec-src-compiler-emitters-scala.mjs +158 -157
  31. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  32. package/wirespec-src-compiler-emitters-typescript.mjs +415 -412
  33. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  34. package/wirespec-src-compiler-emitters-wirespec.mjs +83 -83
  35. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  36. package/wirespec-src-compiler-ir.mjs +3239 -3199
  37. package/wirespec-src-compiler-ir.mjs.map +1 -1
  38. package/wirespec-src-compiler-lib.mjs +399 -399
  39. package/wirespec-src-converter-avro.mjs +507 -507
  40. package/wirespec-src-converter-openapi.mjs +1487 -1413
  41. package/wirespec-src-converter-openapi.mjs.map +1 -1
  42. package/wirespec-src-ide-lsp.mjs +4928 -0
  43. package/wirespec-src-ide-lsp.mjs.map +1 -0
  44. package/wirespec-src-plugin-arguments.mjs +175 -175
  45. package/wirespec-src-plugin-cli.mjs +102 -102
  46. package/wirespec-src-plugin-npm.d.mts +2 -0
  47. package/wirespec-src-plugin-npm.mjs +42 -37
  48. package/wirespec-src-plugin-npm.mjs.map +1 -1
  49. package/wirespec-src-tools-generator.mjs +32 -32
@@ -159,7 +159,7 @@ import {
159
159
  flattenNestedStructs2956rxx8q2zxl as flattenNestedStructs,
160
160
  Union38f3pecvfcpxh as Union_0,
161
161
  Struct39wf79cwtn4ty as Struct,
162
- Custom2si7lto3wompr as Custom_0,
162
+ Custom_init_$Create$2enn7oyj71j1t as Custom_init_$Create$,
163
163
  Boolean_instance27opaqtiiiysz as Boolean_instance_0,
164
164
  String_instance3uxvo48ki208u as String_instance,
165
165
  RawExpression2bo7ldfrptjia as RawExpression,
@@ -170,6 +170,7 @@ import {
170
170
  convertConstraintkgpvomct0x0s as convertConstraint,
171
171
  transformChildrend9p91tpcqdkx as transformChildren_0,
172
172
  Interface3pn84xq686t2r as Interface,
173
+ Custom2si7lto3wompr as Custom_0,
173
174
  Parameteruqoxd4rzw7ga as Parameter,
174
175
  FunctionCall30872kpnbr7op as FunctionCall,
175
176
  } from './wirespec-src-compiler-ir.mjs';
@@ -184,10 +185,10 @@ initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, V
184
185
  function emit_3(identifier) {
185
186
  var tmp;
186
187
  if (identifier instanceof DefinitionIdentifier) {
187
- tmp = this.c1w(identifier);
188
+ tmp = this.i1w(identifier);
188
189
  } else {
189
190
  if (identifier instanceof FieldIdentifier) {
190
- tmp = this.s1v(this.c1w(identifier));
191
+ tmp = this.y1v(this.i1w(identifier));
191
192
  } else {
192
193
  noWhenBranchMatchedException();
193
194
  }
@@ -205,7 +206,7 @@ function sanitize(_this__u8e3s4) {
205
206
  var item = _iterator__ex2g4s.v();
206
207
  var _unary__edvuaz = index;
207
208
  index = _unary__edvuaz + 1 | 0;
208
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.oq(item) : item;
209
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.sq(item) : item;
209
210
  destination.x(tmp$ret$0);
210
211
  }
211
212
  // Inline function 'kotlin.text.filter' call
@@ -243,42 +244,42 @@ function sanitize(_this__u8e3s4) {
243
244
  return tmp;
244
245
  }
245
246
  function sanitizeKeywords(_this__u8e3s4) {
246
- return Companion_getInstance_0().l1x_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
247
+ return Companion_getInstance_0().r1x_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
247
248
  }
248
249
  initMetadataForInterface(PythonIdentifierEmitter, 'PythonIdentifierEmitter');
249
250
  function emit_4(type, module_0) {
250
251
  var tmp;
251
- if (type.wo_1.so_1.r()) {
252
- var tmp_0 = this.wq(type.vo_1);
252
+ if (type.ap_1.wo_1.r()) {
253
+ var tmp_0 = this.br(type.zo_1);
253
254
  var tmp_1 = Spacer_instance.toString();
254
255
  var tmp_2 = importReferences(type);
255
256
  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 ');
256
257
  } else {
257
- var tmp_3 = this.wq(type.vo_1);
258
- var tmp_4 = this.vp(type.wo_1);
258
+ var tmp_3 = this.br(type.zo_1);
259
+ var tmp_4 = this.zp(type.ap_1);
259
260
  var tmp_5 = importReferences(type);
260
261
  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 ');
261
262
  }
262
263
  return tmp;
263
264
  }
264
265
  function emit_5(_this__u8e3s4) {
265
- return joinToString(_this__u8e3s4.so_1, '\n', VOID, VOID, VOID, VOID, PythonTypeDefinitionEmitter$emit$lambda_1(this));
266
+ return joinToString(_this__u8e3s4.wo_1, '\n', VOID, VOID, VOID, VOID, PythonTypeDefinitionEmitter$emit$lambda_1(this));
266
267
  }
267
268
  function emit_6(_this__u8e3s4) {
268
- return this.wq(_this__u8e3s4.ap_1) + ": '" + this.xp(_this__u8e3s4.bp_1) + "'";
269
+ return this.br(_this__u8e3s4.ep_1) + ": '" + this.bq(_this__u8e3s4.fp_1) + "'";
269
270
  }
270
271
  function emit_7(_this__u8e3s4) {
271
272
  // Inline function 'kotlin.let' call
272
- var it = this.j1x(_this__u8e3s4);
273
- return _this__u8e3s4.cu() ? 'Optional[' + it + ']' : it;
273
+ var it = this.p1x(_this__u8e3s4);
274
+ return _this__u8e3s4.hu() ? 'Optional[' + it + ']' : it;
274
275
  }
275
276
  function emitType(_this__u8e3s4) {
276
277
  var tmp;
277
278
  if (_this__u8e3s4 instanceof Dict) {
278
- tmp = 'Dict[str, ' + this.xp(_this__u8e3s4.co_1) + ']';
279
+ tmp = 'Dict[str, ' + this.bq(_this__u8e3s4.go_1) + ']';
279
280
  } else {
280
281
  if (_this__u8e3s4 instanceof Iterable) {
281
- tmp = 'List[' + this.xp(_this__u8e3s4.zn_1) + ']';
282
+ tmp = 'List[' + this.bq(_this__u8e3s4.do_1) + ']';
282
283
  } else {
283
284
  if (_this__u8e3s4 instanceof Unit) {
284
285
  tmp = 'None';
@@ -287,10 +288,10 @@ function emitType(_this__u8e3s4) {
287
288
  tmp = 'Any';
288
289
  } else {
289
290
  if (_this__u8e3s4 instanceof Custom) {
290
- tmp = _this__u8e3s4.ku_1;
291
+ tmp = _this__u8e3s4.pu_1;
291
292
  } else {
292
293
  if (_this__u8e3s4 instanceof Primitive) {
293
- tmp = this.h1x(_this__u8e3s4.ou_1);
294
+ tmp = this.n1x(_this__u8e3s4.tu_1);
294
295
  } else {
295
296
  noWhenBranchMatchedException();
296
297
  }
@@ -329,10 +330,10 @@ function emit_8(_this__u8e3s4) {
329
330
  function emit_9(_this__u8e3s4) {
330
331
  var tmp;
331
332
  if (_this__u8e3s4 instanceof RegExp_0) {
332
- tmp = 'bool(re.match(r"' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.ys_1) + '", self.value))';
333
+ tmp = 'bool(re.match(r"' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.dt_1) + '", self.value))';
333
334
  } else {
334
335
  if (_this__u8e3s4 instanceof Bound) {
335
- var tmp1_safe_receiver = _this__u8e3s4.ot_1;
336
+ var tmp1_safe_receiver = _this__u8e3s4.tt_1;
336
337
  var tmp_0;
337
338
  if (tmp1_safe_receiver == null) {
338
339
  tmp_0 = null;
@@ -341,7 +342,7 @@ function emit_9(_this__u8e3s4) {
341
342
  tmp_0 = tmp1_safe_receiver + ' < self.value';
342
343
  }
343
344
  var minCheck = tmp_0;
344
- var tmp2_safe_receiver = _this__u8e3s4.pt_1;
345
+ var tmp2_safe_receiver = _this__u8e3s4.ut_1;
345
346
  var tmp_1;
346
347
  if (tmp2_safe_receiver == null) {
347
348
  tmp_1 = null;
@@ -367,31 +368,26 @@ function emit_9(_this__u8e3s4) {
367
368
  return tmp;
368
369
  }
369
370
  function emitReferenceCustomImports(_this__u8e3s4) {
370
- return 'from ..model.' + _this__u8e3s4.ku_1 + ' import ' + _this__u8e3s4.ku_1;
371
+ return 'from ..model.' + _this__u8e3s4.pu_1 + ' import ' + _this__u8e3s4.pu_1;
371
372
  }
372
373
  initMetadataForInterface(PythonTypeDefinitionEmitter, 'PythonTypeDefinitionEmitter', VOID, VOID, [TypeDefinitionEmitter, PythonIdentifierEmitter]);
373
- function emit_10(enum_0, module_0) {
374
- var tmp = this.c1w(enum_0.gr_1);
375
- 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 ');
376
- }
377
- initMetadataForInterface(PythonEnumDefinitionEmitter, 'PythonEnumDefinitionEmitter', VOID, VOID, [PythonIdentifierEmitter]);
378
- function emit_11(endpoint) {
374
+ function emit_10(endpoint) {
379
375
  var tmp = importReferences(endpoint);
380
376
  var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda(this));
381
- var tmp_1 = this.wq(endpoint.ep_1);
382
- var tmp_2 = spacer(this.p1v(first(endpoint.jp_1), endpoint), 1);
383
- var tmp_3 = distinctByStatus(endpoint.kp_1);
377
+ var tmp_1 = this.br(endpoint.ip_1);
378
+ var tmp_2 = spacer(this.v1v(first(endpoint.np_1), endpoint), 1);
379
+ var tmp_3 = distinctByStatus(endpoint.op_1);
384
380
  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 ');
385
381
  }
386
- function emit_12(_this__u8e3s4, endpoint) {
387
- var tmp = emit_18(this, _this__u8e3s4.np_1);
382
+ function emit_11(_this__u8e3s4, endpoint) {
383
+ var tmp = emit_18(this, _this__u8e3s4.rp_1);
388
384
  var tmp_0 = get_pathParams(endpoint);
389
385
  var tmp_1 = emitObject$default(this, tmp_0, 'Path', 'Wirespec.Request.Path', VOID, PythonEndpointDefinitionEmitter$emit$lambda_1(this));
390
- var tmp_2 = emitObject$default(this, endpoint.hp_1, 'Queries', 'Wirespec.Request.Queries', VOID, PythonEndpointDefinitionEmitter$emit$lambda_2(this));
391
- var tmp_3 = emitObject$default(this, endpoint.ip_1, 'Headers', 'Wirespec.Request.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_3(this));
386
+ var tmp_2 = emitObject$default(this, endpoint.lp_1, 'Queries', 'Wirespec.Request.Queries', VOID, PythonEndpointDefinitionEmitter$emit$lambda_2(this));
387
+ var tmp_3 = emitObject$default(this, endpoint.mp_1, 'Headers', 'Wirespec.Request.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_3(this));
392
388
  var tmp_4 = Spacer_instance.toString();
393
389
  var tmp_5 = Spacer_instance.toString();
394
- var tmp_6 = emit_18(this, _this__u8e3s4.np_1);
390
+ var tmp_6 = emit_18(this, _this__u8e3s4.rp_1);
395
391
  var tmp_7 = Spacer_instance.toString();
396
392
  var tmp_8 = Spacer_instance.toString();
397
393
  var tmp_9 = Spacer_instance.toString();
@@ -407,61 +403,66 @@ function emit_12(_this__u8e3s4, endpoint) {
407
403
  var tmp_19 = Spacer_instance.toString();
408
404
  var tmp_20 = Spacer_instance.toString();
409
405
  var tmp_21 = Spacer_instance.toString();
410
- var tmp_22 = emit_18(this, _this__u8e3s4.np_1);
406
+ var tmp_22 = emit_18(this, _this__u8e3s4.rp_1);
411
407
  var tmp_23 = Spacer_instance.toString();
412
408
  var tmp_24 = Spacer_instance.toString();
413
409
  var tmp_25 = Spacer_instance.toString();
414
410
  var tmp_26 = Spacer_instance.toString();
415
411
  var tmp_27 = Spacer_instance.toString();
416
412
  var tmp_28 = paramList(_this__u8e3s4, endpoint);
417
- 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 ');
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.jp_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 ');
418
414
  }
419
- function emit_13(_this__u8e3s4, endpoint) {
420
- var tmp = emit_18(this, _this__u8e3s4.sp_1);
421
- var tmp_0 = emitObject$default(this, _this__u8e3s4.rp_1, 'Headers', 'Wirespec.Response.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_5(this));
415
+ function emit_12(_this__u8e3s4, endpoint) {
416
+ var tmp = emit_18(this, _this__u8e3s4.wp_1);
417
+ var tmp_0 = emitObject$default(this, _this__u8e3s4.vp_1, 'Headers', 'Wirespec.Response.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_5(this));
422
418
  var tmp_1 = Spacer_instance.toString();
423
419
  var tmp_2 = Spacer_instance.toString();
424
420
  var tmp_3 = Spacer_instance.toString();
425
421
  var tmp_4 = Spacer_instance.toString();
426
422
  var tmp_5 = Spacer_instance.toString();
427
423
  var tmp_6 = Spacer_instance.toString();
428
- var tmp_7 = emit_18(this, _this__u8e3s4.sp_1);
424
+ var tmp_7 = emit_18(this, _this__u8e3s4.wp_1);
429
425
  var tmp_8 = Spacer_instance.toString();
430
426
  var tmp_9 = Spacer_instance.toString();
431
427
  var tmp_10 = Spacer_instance.toString();
432
- var tmp_11 = emit_18(this, _this__u8e3s4.sp_1);
428
+ var tmp_11 = emit_18(this, _this__u8e3s4.wp_1);
433
429
  var tmp_12 = Spacer_instance.toString();
434
430
  var tmp_13 = Spacer_instance.toString();
435
431
  var tmp_14 = Spacer_instance.toString();
436
432
  var tmp_15 = paramList_0(_this__u8e3s4);
437
- 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 ');
433
+ return trimMargin('\n |@dataclass\n |class Response' + _this__u8e3s4.up_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.up_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 ');
438
434
  }
439
435
  initMetadataForInterface(PythonEndpointDefinitionEmitter, 'PythonEndpointDefinitionEmitter', VOID, VOID, [PythonTypeDefinitionEmitter]);
436
+ function emit_13(enum_0, module_0) {
437
+ var tmp = this.i1w(enum_0.lr_1);
438
+ return trimMargin('\n |class ' + tmp + '(str, Enum):\n |' + joinToString(enum_0.mr_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.vr(2) + 'return self.value\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.vr(2) + 'return self.value\n ');
439
+ }
440
+ initMetadataForInterface(PythonEnumDefinitionEmitter, 'PythonEnumDefinitionEmitter', VOID, VOID, [PythonIdentifierEmitter]);
440
441
  function emit_14(refined) {
441
- return trimMargin('\n |@dataclass\n |class ' + this.c1w(refined.br_1) + '(Wirespec.Refined):\n |' + Spacer_instance.toString() + 'value: ' + this.j1x(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 ');
442
+ return trimMargin('\n |@dataclass\n |class ' + this.i1w(refined.gr_1) + '(Wirespec.Refined):\n |' + Spacer_instance.toString() + 'value: ' + this.p1x(refined.hr_1) + '\n |\n |' + Spacer_instance.toString() + 'def validate(self) -> bool:\n |' + Spacer_instance.vr(2) + 'return ' + this.pr(refined) + '\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.vr(2) + 'return str(self.value)\n |\n ');
442
443
  }
443
444
  function emitValidator(_this__u8e3s4) {
444
445
  var defaultReturn = 'True';
445
- var type = _this__u8e3s4.cr_1.ou_1;
446
+ var type = _this__u8e3s4.hr_1.tu_1;
446
447
  var tmp;
447
448
  if (type instanceof Integer) {
448
- var tmp0_safe_receiver = type.tt_1;
449
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.yp(tmp0_safe_receiver);
449
+ var tmp0_safe_receiver = type.yt_1;
450
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.cq(tmp0_safe_receiver);
450
451
  tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
451
452
  } else {
452
453
  if (type instanceof Number_0) {
453
- var tmp2_safe_receiver = type.wt_1;
454
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.yp(tmp2_safe_receiver);
454
+ var tmp2_safe_receiver = type.bu_1;
455
+ var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.cq(tmp2_safe_receiver);
455
456
  tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
456
457
  } else {
457
458
  if (type instanceof String_0) {
458
- var tmp4_safe_receiver = type.qt_1;
459
+ var tmp4_safe_receiver = type.vt_1;
459
460
  var tmp_0;
460
461
  var tmp_1 = tmp4_safe_receiver;
461
462
  if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
462
463
  tmp_0 = null;
463
464
  } else {
464
- tmp_0 = this.yp(new RegExp_0(tmp4_safe_receiver));
465
+ tmp_0 = this.cq(new RegExp_0(tmp4_safe_receiver));
465
466
  }
466
467
  var tmp5_elvis_lhs = tmp_0;
467
468
  tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
@@ -482,10 +483,10 @@ function emitValidator(_this__u8e3s4) {
482
483
  }
483
484
  initMetadataForInterface(PythonRefinedTypeDefinitionEmitter, 'PythonRefinedTypeDefinitionEmitter', VOID, VOID, [PythonTypeDefinitionEmitter, PythonIdentifierEmitter]);
484
485
  function emit_15(union) {
485
- return trimMargin('\n |class ' + this.wq(union.qo_1) + '(ABC):\n |' + Spacer_instance.toString() + 'pass\n ');
486
+ return trimMargin('\n |class ' + this.br(union.uo_1) + '(ABC):\n |' + Spacer_instance.toString() + 'pass\n ');
486
487
  }
487
488
  initMetadataForInterface(PythonUnionDefinitionEmitter, 'PythonUnionDefinitionEmitter', VOID, VOID, [PythonIdentifierEmitter]);
488
- initMetadataForClass(PythonEmitter, 'PythonEmitter', PythonEmitter, LanguageEmitter, [LanguageEmitter, PythonIdentifierEmitter, PythonTypeDefinitionEmitter, PythonEnumDefinitionEmitter, PythonEndpointDefinitionEmitter, PythonChannelDefinitionEmitter, PythonRefinedTypeDefinitionEmitter, PythonUnionDefinitionEmitter]);
489
+ initMetadataForClass(PythonEmitter, 'PythonEmitter', PythonEmitter, LanguageEmitter, [LanguageEmitter, PythonChannelDefinitionEmitter, PythonIdentifierEmitter, PythonEndpointDefinitionEmitter, PythonTypeDefinitionEmitter, PythonEnumDefinitionEmitter, PythonRefinedTypeDefinitionEmitter, PythonUnionDefinitionEmitter]);
489
490
  initMetadataForCompanion(Companion);
490
491
  initMetadataForCompanion(Companion_0);
491
492
  initMetadataForClass(sam$kotlin_Comparator$0_0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
@@ -495,16 +496,16 @@ initMetadataForObject(PythonShared, 'PythonShared');
495
496
  function PythonChannelDefinitionEmitter() {
496
497
  }
497
498
  function sam$kotlin_Comparator$0(function_0) {
498
- this.x1w_1 = function_0;
499
+ this.d1x_1 = function_0;
499
500
  }
500
- protoOf(sam$kotlin_Comparator$0).qd = function (a, b) {
501
- return this.x1w_1(a, b);
501
+ protoOf(sam$kotlin_Comparator$0).td = function (a, b) {
502
+ return this.d1x_1(a, b);
502
503
  };
503
504
  protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
504
- return this.qd(a, b);
505
+ return this.td(a, b);
505
506
  };
506
507
  protoOf(sam$kotlin_Comparator$0).l3 = function () {
507
- return this.x1w_1;
508
+ return this.d1x_1;
508
509
  };
509
510
  protoOf(sam$kotlin_Comparator$0).equals = function (other) {
510
511
  var tmp;
@@ -527,35 +528,35 @@ protoOf(sam$kotlin_Comparator$0).hashCode = function () {
527
528
  function PythonEmitter$emit$lambda(this$0) {
528
529
  return function (a, b) {
529
530
  // Inline function 'kotlin.comparisons.compareValuesBy' call
530
- var tmp = this$0.e1x(a);
531
- var tmp$ret$1 = this$0.e1x(b);
531
+ var tmp = this$0.k1x(a);
532
+ var tmp$ret$1 = this$0.k1x(b);
532
533
  return compareValues(tmp, tmp$ret$1);
533
534
  };
534
535
  }
535
536
  function emit$emitInit(this$0, def) {
536
- return 'from .' + this$0.wq(def.vq()) + ' import ' + this$0.wq(def.vq());
537
+ return 'from .' + this$0.br(def.ar()) + ' import ' + this$0.br(def.ar());
537
538
  }
538
539
  function PythonEmitter(packageName, emitShared) {
539
- packageName = packageName === VOID ? Companion_instance.lr('community.flock.wirespec.generated') : packageName;
540
- emitShared = emitShared === VOID ? Companion_instance_0.go() : emitShared;
540
+ packageName = packageName === VOID ? Companion_instance.qr('community.flock.wirespec.generated') : packageName;
541
+ emitShared = emitShared === VOID ? Companion_instance_0.ko() : emitShared;
541
542
  LanguageEmitter.call(this);
542
- this.y1w_1 = packageName;
543
- this.z1w_1 = emitShared;
544
- this.a1x_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';
545
- this.b1x_1 = FileExtension_Python_getInstance();
546
- this.c1x_1 = PythonShared_instance;
547
- this.d1x_1 = '#';
548
- }
549
- protoOf(PythonEmitter).eq = function () {
550
- return this.b1x_1;
543
+ this.e1x_1 = packageName;
544
+ this.f1x_1 = emitShared;
545
+ this.g1x_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.h1x_1 = FileExtension_Python_getInstance();
547
+ this.i1x_1 = PythonShared_instance;
548
+ this.j1x_1 = '#';
549
+ }
550
+ protoOf(PythonEmitter).iq = function () {
551
+ return this.h1x_1;
551
552
  };
552
- protoOf(PythonEmitter).l1v = function () {
553
- return this.c1x_1;
553
+ protoOf(PythonEmitter).r1v = function () {
554
+ return this.i1x_1;
554
555
  };
555
- protoOf(PythonEmitter).fq = function () {
556
- return this.d1x_1;
556
+ protoOf(PythonEmitter).jq = function () {
557
+ return this.j1x_1;
557
558
  };
558
- protoOf(PythonEmitter).e1x = function (definition) {
559
+ protoOf(PythonEmitter).k1x = function (definition) {
559
560
  var tmp;
560
561
  if (definition instanceof Enum) {
561
562
  tmp = 1;
@@ -584,21 +585,21 @@ protoOf(PythonEmitter).e1x = function (definition) {
584
585
  }
585
586
  return tmp;
586
587
  };
587
- protoOf(PythonEmitter).tq = function (module_0, logger) {
588
+ protoOf(PythonEmitter).yq = function (module_0, logger) {
588
589
  // Inline function 'kotlin.collections.sortedBy' call
589
- var this_0 = new NonEmptyList(module_0.dq_1);
590
+ var this_0 = new NonEmptyList(module_0.hq_1);
590
591
  // Inline function 'kotlin.comparisons.compareBy' call
591
592
  var tmp = PythonEmitter$emit$lambda(this);
592
593
  var tmp$ret$0 = new sam$kotlin_Comparator$0(tmp);
593
594
  var tmp$ret$1 = sortedWith(this_0, tmp$ret$0);
594
595
  var tmp_0 = toNonEmptyListOrNull(tmp$ret$1);
595
- var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).yl_1;
596
+ var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).cm_1;
596
597
  // Inline function 'kotlin.let' call
597
- var it = protoOf(LanguageEmitter).tq.call(this, module_0.vu(VOID, statements), logger);
598
- var init = new Emitted(this.y1w_1.or() + '__init__', 'from . import model\nfrom . import endpoint\nfrom . import wirespec\n');
599
- var tmp_1 = this.y1w_1.or() + 'endpoint/' + '__init__';
598
+ var it = protoOf(LanguageEmitter).yq.call(this, module_0.av(VOID, statements), logger);
599
+ var init = new Emitted(this.e1x_1.tr() + '__init__', 'from . import model\nfrom . import endpoint\nfrom . import wirespec\n');
600
+ var tmp_1 = this.e1x_1.tr() + 'endpoint/' + '__init__';
600
601
  // Inline function 'kotlin.collections.filter' call
601
- var tmp0 = new NonEmptyList(module_0.dq_1);
602
+ var tmp0 = new NonEmptyList(module_0.hq_1);
602
603
  // Inline function 'kotlin.collections.filterTo' call
603
604
  var destination = ArrayList_init_$Create$();
604
605
  var _iterator__ex2g4s = tmp0.t();
@@ -618,9 +619,9 @@ protoOf(PythonEmitter).tq = function (module_0, logger) {
618
619
  destination_0.x(tmp$ret$5);
619
620
  }
620
621
  var initEndpoint = new Emitted(tmp_1, joinToString(destination_0, '\n'));
621
- var tmp_2 = this.y1w_1.or() + 'model/' + '__init__';
622
+ var tmp_2 = this.e1x_1.tr() + 'model/' + '__init__';
622
623
  // Inline function 'kotlin.collections.filter' call
623
- var tmp0_0 = new NonEmptyList(module_0.dq_1);
624
+ var tmp0_0 = new NonEmptyList(module_0.hq_1);
624
625
  // Inline function 'kotlin.collections.filterTo' call
625
626
  var destination_1 = ArrayList_init_$Create$();
626
627
  var _iterator__ex2g4s_1 = tmp0_0.t();
@@ -640,33 +641,33 @@ protoOf(PythonEmitter).tq = function (module_0, logger) {
640
641
  destination_2.x(tmp$ret$11);
641
642
  }
642
643
  var initModel = new Emitted(tmp_2, joinToString(destination_2, '\n'));
643
- var shared = new Emitted(this.y1w_1.or() + 'wirespec', this.l1v().g1x_1);
644
- return this.z1w_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);
644
+ var shared = new Emitted(this.e1x_1.tr() + 'wirespec', this.r1v().m1x_1);
645
+ return this.f1x_1.lo_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);
645
646
  };
646
- protoOf(PythonEmitter).uq = function (definition, module_0, logger) {
647
- var subPackageName = plus_1(this.y1w_1, definition);
647
+ protoOf(PythonEmitter).zq = function (definition, module_0, logger) {
648
+ var subPackageName = plus_1(this.e1x_1, definition);
648
649
  // Inline function 'kotlin.let' call
649
- var it = protoOf(LanguageEmitter).uq.call(this, definition, module_0, logger);
650
- var tmp = subPackageName.or() + it.io_1;
650
+ var it = protoOf(LanguageEmitter).zq.call(this, definition, module_0, logger);
651
+ var tmp = subPackageName.tr() + it.mo_1;
651
652
  // Inline function 'kotlin.text.trimStart' call
652
- var this_0 = trimMargin('\n |' + this.a1x_1 + '\n |' + it.jo_1 + '\n ');
653
+ var this_0 = trimMargin('\n |' + this.g1x_1 + '\n |' + it.no_1 + '\n ');
653
654
  var tmp$ret$0 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
654
655
  return new Emitted(tmp, tmp$ret$0);
655
656
  };
656
657
  function emitToRawRequest($this, _this__u8e3s4, endpoint) {
657
- var tmp = $this.wq(endpoint.ep_1);
658
+ var tmp = $this.br(endpoint.ip_1);
658
659
  var tmp_0 = Spacer_instance.toString();
659
660
  var tmp_1 = Spacer_instance.toString();
660
661
  var tmp_2 = Spacer_instance.toString();
661
- var tmp_3 = joinToString(endpoint.gp_1, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda($this));
662
+ var tmp_3 = joinToString(endpoint.kp_1, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda($this));
662
663
  var tmp_4 = Spacer_instance.toString();
663
664
  var tmp_5 = Spacer_instance.toString();
664
665
  var tmp_6 = Spacer_instance.toString();
665
666
  var tmp_7 = Spacer_instance.toString();
666
667
  var tmp_8;
667
668
  // Inline function 'kotlin.collections.isNotEmpty' call
668
- if (!endpoint.hp_1.r()) {
669
- tmp_8 = prependIndent(joinToString(endpoint.hp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_0($this)), Spacer_instance.qr(3));
669
+ if (!endpoint.lp_1.r()) {
670
+ tmp_8 = prependIndent(joinToString(endpoint.lp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_0($this)), Spacer_instance.vr(3));
670
671
  } else {
671
672
  tmp_8 = '';
672
673
  }
@@ -677,8 +678,8 @@ function emitToRawRequest($this, _this__u8e3s4, endpoint) {
677
678
  var tmp_13 = Spacer_instance.toString();
678
679
  var tmp_14;
679
680
  // Inline function 'kotlin.collections.isNotEmpty' call
680
- if (!endpoint.ip_1.r()) {
681
- tmp_14 = prependIndent(joinToString(endpoint.ip_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_1($this)), Spacer_instance.qr(3));
681
+ if (!endpoint.mp_1.r()) {
682
+ tmp_14 = prependIndent(joinToString(endpoint.mp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_1($this)), Spacer_instance.vr(3));
682
683
  } else {
683
684
  tmp_14 = '';
684
685
  }
@@ -687,48 +688,48 @@ function emitToRawRequest($this, _this__u8e3s4, endpoint) {
687
688
  var tmp_17 = Spacer_instance.toString();
688
689
  var tmp_18 = Spacer_instance.toString();
689
690
  var tmp_19 = Spacer_instance.toString();
690
- var tmp0_safe_receiver = _this__u8e3s4.np_1;
691
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pp_1;
692
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.j1x(tmp1_safe_receiver);
691
+ var tmp0_safe_receiver = _this__u8e3s4.rp_1;
692
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tp_1;
693
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.p1x(tmp1_safe_receiver);
693
694
  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 ');
694
695
  }
695
696
  function emitFromRawRequest($this, _this__u8e3s4, endpoint) {
696
- 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 ');
697
+ return trimMargin("\n |@staticmethod\n |def from_raw_request(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest) -> '" + $this.br(endpoint.ip_1) + ".Request':\n |" + Spacer_instance.toString() + 'return ' + $this.br(endpoint.ip_1) + '.Request' + emitDeserializedParams($this, _this__u8e3s4, endpoint) + '\n |\n ');
697
698
  }
698
699
  function emitDeserializedParams($this, _this__u8e3s4, endpoint) {
699
700
  var tmp = get_indexedPathParams(endpoint);
700
701
  var tmp_0 = orNull(joinToString(tmp, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda($this)));
701
- var tmp_1 = orNull(joinToString(endpoint.hp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
702
- var tmp_2 = orNull(joinToString(endpoint.ip_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
703
- var tmp0_safe_receiver = _this__u8e3s4.np_1;
702
+ var tmp_1 = orNull(joinToString(endpoint.lp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
703
+ var tmp_2 = orNull(joinToString(endpoint.mp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
704
+ var tmp0_safe_receiver = _this__u8e3s4.rp_1;
704
705
  var tmp_3;
705
706
  if (tmp0_safe_receiver == null) {
706
707
  tmp_3 = null;
707
708
  } else {
708
709
  // Inline function 'kotlin.let' call
709
- tmp_3 = Spacer_instance.qr(3) + 'body = serialization.deserialize(request.body, ' + $this.j1x(tmp0_safe_receiver.pp_1) + '),';
710
+ tmp_3 = Spacer_instance.vr(3) + 'body = serialization.deserialize(request.body, ' + $this.p1x(tmp0_safe_receiver.tp_1) + '),';
710
711
  }
711
712
  // Inline function 'kotlin.let' call
712
713
  var it = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]), ',\n');
713
714
  return isBlank(it) ? '()' : '(\n' + it + '\n)';
714
715
  }
715
716
  function emitResponseUnion($this, _this__u8e3s4) {
716
- return trimMargin('\n |Response = ' + joinToString(_this__u8e3s4.kp_1, ' | ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitResponseUnion$lambda) + '\n |\n ');
717
+ return trimMargin('\n |Response = ' + joinToString(_this__u8e3s4.op_1, ' | ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitResponseUnion$lambda) + '\n |\n ');
717
718
  }
718
719
  function emitHandleClass($this, _this__u8e3s4) {
719
- 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 ");
720
+ return trimMargin('\n |class Handler(Wirespec.Endpoint.Handler):\n |' + Spacer_instance.toString() + '@abstractmethod\n |' + Spacer_instance.toString() + 'def ' + _this__u8e3s4.ip_1.l1() + "(self, req: '" + $this.br(_this__u8e3s4.ip_1) + ".Request') -> '" + $this.br(_this__u8e3s4.ip_1) + ".Response': pass\n |\n ");
720
721
  }
721
722
  function emitConvertClass($this, _this__u8e3s4) {
722
- 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 ');
723
+ return trimMargin('\n |class Convert(Wirespec.Endpoint.Convert[Request, Response]):\n |' + spacer(emitToRawRequest($this, first(_this__u8e3s4.np_1), _this__u8e3s4), 1) + '\n |' + spacer(emitFromRawRequest($this, first(_this__u8e3s4.np_1), _this__u8e3s4), 1) + '\n |' + spacer(emitToRawResponse($this, _this__u8e3s4), 1) + '\n |' + spacer(emitFromRawResponse($this, _this__u8e3s4), 1) + '\n |\n ');
723
724
  }
724
725
  function emit_16($this, _this__u8e3s4) {
725
- return $this.wq(_this__u8e3s4.jq_1) + ': ' + $this.xp(_this__u8e3s4.kq_1);
726
+ return $this.br(_this__u8e3s4.nq_1) + ': ' + $this.bq(_this__u8e3s4.oq_1);
726
727
  }
727
728
  function emitAssignSelf($this, _this__u8e3s4) {
728
- return $this.wq(_this__u8e3s4.jq_1) + ' = ' + $this.wq(_this__u8e3s4.jq_1);
729
+ return $this.br(_this__u8e3s4.nq_1) + ' = ' + $this.br(_this__u8e3s4.nq_1);
729
730
  }
730
731
  function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
731
- var tmp = $this.wq(endpoint.ep_1);
732
+ var tmp = $this.br(endpoint.ip_1);
732
733
  // Inline function 'kotlin.collections.filter' call
733
734
  var tmp0 = paramList(_this__u8e3s4, endpoint);
734
735
  // Inline function 'kotlin.collections.filterTo' call
@@ -736,13 +737,13 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
736
737
  var _iterator__ex2g4s = tmp0.t();
737
738
  while (_iterator__ex2g4s.u()) {
738
739
  var element = _iterator__ex2g4s.v();
739
- if (element.iq_1.equals(ParamType_PATH_getInstance())) {
740
+ if (element.mq_1.equals(ParamType_PATH_getInstance())) {
740
741
  destination.x(element);
741
742
  }
742
743
  }
743
744
  var tmp_0 = destination;
744
745
  var tmp_1 = joinToString(tmp_0, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda($this));
745
- var tmp_2 = $this.wq(endpoint.ep_1);
746
+ var tmp_2 = $this.br(endpoint.ip_1);
746
747
  // Inline function 'kotlin.collections.filter' call
747
748
  var tmp0_0 = paramList(_this__u8e3s4, endpoint);
748
749
  // Inline function 'kotlin.collections.filterTo' call
@@ -750,13 +751,13 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
750
751
  var _iterator__ex2g4s_0 = tmp0_0.t();
751
752
  while (_iterator__ex2g4s_0.u()) {
752
753
  var element_0 = _iterator__ex2g4s_0.v();
753
- if (element_0.iq_1.equals(ParamType_QUERY_getInstance())) {
754
+ if (element_0.mq_1.equals(ParamType_QUERY_getInstance())) {
754
755
  destination_0.x(element_0);
755
756
  }
756
757
  }
757
758
  var tmp_3 = destination_0;
758
759
  var tmp_4 = spacer(joinToString(tmp_3, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_0($this)), 1);
759
- var tmp_5 = $this.wq(endpoint.ep_1);
760
+ var tmp_5 = $this.br(endpoint.ip_1);
760
761
  // Inline function 'kotlin.collections.filter' call
761
762
  var tmp0_1 = paramList(_this__u8e3s4, endpoint);
762
763
  // Inline function 'kotlin.collections.filterTo' call
@@ -764,14 +765,14 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
764
765
  var _iterator__ex2g4s_1 = tmp0_1.t();
765
766
  while (_iterator__ex2g4s_1.u()) {
766
767
  var element_1 = _iterator__ex2g4s_1.v();
767
- if (element_1.iq_1.equals(ParamType_HEADER_getInstance())) {
768
+ if (element_1.mq_1.equals(ParamType_HEADER_getInstance())) {
768
769
  destination_1.x(element_1);
769
770
  }
770
771
  }
771
772
  var tmp_6 = destination_1;
772
773
  var tmp_7 = spacer(joinToString(tmp_6, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_1($this)), 1);
773
774
  var tmp_8;
774
- if (_this__u8e3s4.np_1 == null) {
775
+ if (_this__u8e3s4.rp_1 == null) {
775
776
  tmp_8 = null;
776
777
  } else {
777
778
  // Inline function 'kotlin.let' call
@@ -781,7 +782,7 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
781
782
  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 ');
782
783
  }
783
784
  function emitAssignSelf_1($this, _this__u8e3s4, endpoint) {
784
- var tmp = $this.wq(endpoint.ep_1);
785
+ var tmp = $this.br(endpoint.ip_1);
785
786
  // Inline function 'kotlin.collections.filter' call
786
787
  var tmp0 = paramList_0(_this__u8e3s4);
787
788
  // Inline function 'kotlin.collections.filterTo' call
@@ -789,35 +790,35 @@ function emitAssignSelf_1($this, _this__u8e3s4, endpoint) {
789
790
  var _iterator__ex2g4s = tmp0.t();
790
791
  while (_iterator__ex2g4s.u()) {
791
792
  var element = _iterator__ex2g4s.v();
792
- if (element.iq_1.equals(ParamType_HEADER_getInstance())) {
793
+ if (element.mq_1.equals(ParamType_HEADER_getInstance())) {
793
794
  destination.x(element);
794
795
  }
795
796
  }
796
797
  var tmp_0 = destination;
797
798
  var tmp_1 = spacer(joinToString(tmp_0, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_2($this)), 1);
798
799
  var tmp_2;
799
- if (_this__u8e3s4.sp_1 == null) {
800
+ if (_this__u8e3s4.wp_1 == null) {
800
801
  tmp_2 = null;
801
802
  } else {
802
803
  // Inline function 'kotlin.let' call
803
804
  tmp_2 = 'body';
804
805
  }
805
806
  var tmp1_elvis_lhs = tmp_2;
806
- 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 ');
807
+ return trimMargin('\n |self._headers = ' + tmp + '.Response' + _this__u8e3s4.up_1 + '.Headers(' + tmp_1 + ')\n |self._body = ' + (tmp1_elvis_lhs == null ? 'None' : tmp1_elvis_lhs) + '\n ');
807
808
  }
808
809
  function emitDeserialized($this, _this__u8e3s4) {
809
- return Spacer_instance.qr(3) + $this.wq(_this__u8e3s4.me_1.lp_1) + ' = serialization.deserialize(request.path[' + _this__u8e3s4.le_1 + '], ' + $this.j1x(_this__u8e3s4.me_1.mp_1) + ')';
810
+ return Spacer_instance.vr(3) + $this.br(_this__u8e3s4.pe_1.pp_1) + ' = serialization.deserialize(request.path[' + _this__u8e3s4.oe_1 + '], ' + $this.p1x(_this__u8e3s4.pe_1.qp_1) + ')';
810
811
  }
811
812
  function emitDeserializedParams_0($this, _this__u8e3s4, type, fields, spaces, caseSensitive) {
812
813
  var tmp;
813
814
  if (caseSensitive) {
814
- tmp = Spacer_instance.qr(spaces) + $this.wq(_this__u8e3s4.ap_1) + ' = serialization.deserialize_param(' + type + '.' + fields + '.get("' + _this__u8e3s4.ap_1.l1() + '"), ' + $this.j1x(_this__u8e3s4.bp_1) + ')';
815
+ tmp = Spacer_instance.vr(spaces) + $this.br(_this__u8e3s4.ep_1) + ' = serialization.deserialize_param(' + type + '.' + fields + '.get("' + _this__u8e3s4.ep_1.l1() + '"), ' + $this.p1x(_this__u8e3s4.fp_1) + ')';
815
816
  } else {
816
- var tmp_0 = Spacer_instance.qr(spaces);
817
- var tmp_1 = $this.wq(_this__u8e3s4.ap_1);
817
+ var tmp_0 = Spacer_instance.vr(spaces);
818
+ var tmp_1 = $this.br(_this__u8e3s4.ep_1);
818
819
  // Inline function 'kotlin.text.lowercase' call
819
820
  // Inline function 'kotlin.js.asDynamic' call
820
- 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.j1x(_this__u8e3s4.bp_1) + ')';
821
+ tmp = tmp_0 + tmp_1 + ' = serialization.deserialize_param(next((v for k, v in ' + type + '.' + fields + '.items() if k.lower() == "' + _this__u8e3s4.ep_1.l1().toLowerCase() + '"), None), ' + $this.p1x(_this__u8e3s4.fp_1) + ')';
821
822
  }
822
823
  return tmp;
823
824
  }
@@ -827,73 +828,73 @@ function emitDeserializedParams$default($this, _this__u8e3s4, type, fields, spac
827
828
  return emitDeserializedParams_0($this, _this__u8e3s4, type, fields, spaces, caseSensitive);
828
829
  }
829
830
  function emitToRawResponse($this, _this__u8e3s4) {
830
- var tmp = $this.wq(_this__u8e3s4.ep_1);
831
+ var tmp = $this.br(_this__u8e3s4.ip_1);
831
832
  var tmp_0 = Spacer_instance.toString();
832
- var tmp_1 = distinctByStatus(_this__u8e3s4.kp_1);
833
+ var tmp_1 = distinctByStatus(_this__u8e3s4.op_1);
833
834
  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 ');
834
835
  }
835
836
  function emitFromRawResponse($this, _this__u8e3s4) {
836
- var tmp = $this.wq(_this__u8e3s4.ep_1);
837
+ var tmp = $this.br(_this__u8e3s4.ip_1);
837
838
  var tmp_0 = Spacer_instance.toString();
838
839
  // Inline function 'kotlin.collections.filter' call
839
- var tmp0 = distinctByStatus(_this__u8e3s4.kp_1);
840
+ var tmp0 = distinctByStatus(_this__u8e3s4.op_1);
840
841
  // Inline function 'kotlin.collections.filterTo' call
841
842
  var destination = ArrayList_init_$Create$();
842
843
  var _iterator__ex2g4s = tmp0.t();
843
844
  while (_iterator__ex2g4s.u()) {
844
845
  var element = _iterator__ex2g4s.v();
845
- if (Companion_instance_1.rq(element.qp_1)) {
846
+ if (Companion_instance_1.wq(element.up_1)) {
846
847
  destination.x(element);
847
848
  }
848
849
  }
849
850
  var tmp_1 = destination;
850
- 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 ');
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.vr(2) + 'case _:\n |' + Spacer_instance.vr(3) + 'raise Exception("Cannot match response with status: " + str(response.status_code))\n |\n ');
851
852
  }
852
853
  function emitDeserialized_0($this, _this__u8e3s4, endpoint) {
853
- var tmp = 'case ' + _this__u8e3s4.qp_1 + ':';
854
- var tmp_0 = Spacer_instance.toString() + 'return ' + $this.wq(endpoint.ep_1) + '.Response' + _this__u8e3s4.qp_1 + '(';
855
- var tmp_1 = Spacer_instance.qr(2);
856
- var tmp0_safe_receiver = _this__u8e3s4.sp_1;
857
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pp_1;
858
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.j1x(tmp1_safe_receiver);
854
+ var tmp = 'case ' + _this__u8e3s4.up_1 + ':';
855
+ var tmp_0 = Spacer_instance.toString() + 'return ' + $this.br(endpoint.ip_1) + '.Response' + _this__u8e3s4.up_1 + '(';
856
+ var tmp_1 = Spacer_instance.vr(2);
857
+ var tmp0_safe_receiver = _this__u8e3s4.wp_1;
858
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tp_1;
859
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.p1x(tmp1_safe_receiver);
859
860
  var tmp_2 = tmp_1 + 'body = serialization.deserialize(response.body, ' + (tmp2_elvis_lhs == null ? 'type(None)' : tmp2_elvis_lhs) + '),';
860
- 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');
861
+ return joinToString(listOfNotNull([tmp, tmp_0, tmp_2, orNull(joinToString(_this__u8e3s4.vp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserialized$lambda($this))), Spacer_instance.toString() + ')']), '\n');
861
862
  }
862
863
  function emitSerialized($this, _this__u8e3s4, endpoint) {
863
- var tmp = $this.wq(endpoint.ep_1);
864
- var tmp_0 = Spacer_instance.qr(1);
865
- var tmp_1 = Spacer_instance.qr(2);
866
- var tmp_2 = Spacer_instance.qr(2);
864
+ var tmp = $this.br(endpoint.ip_1);
865
+ var tmp_0 = Spacer_instance.vr(1);
866
+ var tmp_1 = Spacer_instance.vr(2);
867
+ var tmp_2 = Spacer_instance.vr(2);
867
868
  var tmp_3;
868
869
  // Inline function 'kotlin.collections.isNotEmpty' call
869
- if (!_this__u8e3s4.rp_1.r()) {
870
- tmp_3 = joinToString(_this__u8e3s4.rp_1, ', ', '{', '}', VOID, VOID, PythonEndpointDefinitionEmitter$emitSerialized$lambda($this));
870
+ if (!_this__u8e3s4.vp_1.r()) {
871
+ tmp_3 = joinToString(_this__u8e3s4.vp_1, ', ', '{', '}', VOID, VOID, PythonEndpointDefinitionEmitter$emitSerialized$lambda($this));
871
872
  } else {
872
873
  tmp_3 = '{}';
873
874
  }
874
875
  var tmp_4 = tmp_3;
875
- var tmp_5 = Spacer_instance.qr(2);
876
- var tmp0_safe_receiver = _this__u8e3s4.sp_1;
876
+ var tmp_5 = Spacer_instance.vr(2);
877
+ var tmp0_safe_receiver = _this__u8e3s4.wp_1;
877
878
  var tmp_6;
878
879
  if (tmp0_safe_receiver == null) {
879
880
  tmp_6 = null;
880
881
  } else {
881
882
  // Inline function 'kotlin.let' call
882
- tmp_6 = 'serialization.serialize(response.body, ' + $this.j1x(tmp0_safe_receiver.pp_1) + ')';
883
+ tmp_6 = 'serialization.serialize(response.body, ' + $this.p1x(tmp0_safe_receiver.tp_1) + ')';
883
884
  }
884
885
  var tmp1_elvis_lhs = tmp_6;
885
- 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 ');
886
+ return trimMargin('\n |case ' + tmp + '.Response' + _this__u8e3s4.up_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.vr(1) + ')\n ');
886
887
  }
887
888
  function emitSerializedParams($this, _this__u8e3s4, type, fields) {
888
- return '"' + _this__u8e3s4.ap_1.l1() + '": serialization.serialize_param(' + type + '.' + fields + '.' + $this.wq(_this__u8e3s4.ap_1) + ', ' + $this.j1x(_this__u8e3s4.bp_1) + ')';
889
+ return '"' + _this__u8e3s4.ep_1.l1() + '": serialization.serialize_param(' + type + '.' + fields + '.' + $this.br(_this__u8e3s4.ep_1) + ', ' + $this.p1x(_this__u8e3s4.fp_1) + ')';
889
890
  }
890
891
  function emitObject($this, _this__u8e3s4, name, extends_0, spaces, block) {
891
892
  var tmp;
892
893
  if (_this__u8e3s4.r()) {
893
- tmp = trimMargin('\n |' + Spacer_instance.qr(spaces) + '@dataclass\n |' + Spacer_instance.qr(spaces) + 'class ' + name + ' (' + extends_0 + '): pass\n ');
894
+ tmp = trimMargin('\n |' + Spacer_instance.vr(spaces) + '@dataclass\n |' + Spacer_instance.vr(spaces) + 'class ' + name + ' (' + extends_0 + '): pass\n ');
894
895
  } else {
895
- var tmp_0 = Spacer_instance.qr(spaces);
896
- var tmp_1 = Spacer_instance.qr(spaces);
896
+ var tmp_0 = Spacer_instance.vr(spaces);
897
+ var tmp_1 = Spacer_instance.vr(spaces);
897
898
  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 ');
898
899
  }
899
900
  return tmp;
@@ -903,21 +904,21 @@ function emitObject$default($this, _this__u8e3s4, name, extends_0, spaces, block
903
904
  return emitObject($this, _this__u8e3s4, name, extends_0, spaces, block);
904
905
  }
905
906
  function emit_17($this, _this__u8e3s4) {
906
- return $this.wq(_this__u8e3s4.lp_1) + ': ' + $this.xp(_this__u8e3s4.mp_1);
907
+ return $this.br(_this__u8e3s4.pp_1) + ': ' + $this.bq(_this__u8e3s4.qp_1);
907
908
  }
908
909
  function emit_18($this, _this__u8e3s4) {
909
- var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.pp_1;
910
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.xp(tmp1_safe_receiver);
910
+ var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.tp_1;
911
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.bq(tmp1_safe_receiver);
911
912
  return tmp2_elvis_lhs == null ? 'None' : tmp2_elvis_lhs;
912
913
  }
913
914
  function PythonEndpointDefinitionEmitter$emit$lambda(this$0) {
914
915
  return function (it) {
915
- return this$0.k1x(it);
916
+ return this$0.q1x(it);
916
917
  };
917
918
  }
918
919
  function PythonEndpointDefinitionEmitter$emit$lambda_0(this$0, $endpoint) {
919
920
  return function (it) {
920
- return this$0.i1x(it, $endpoint);
921
+ return this$0.o1x(it, $endpoint);
921
922
  };
922
923
  }
923
924
  function PythonEndpointDefinitionEmitter$emit$lambda_1(this$0) {
@@ -927,12 +928,12 @@ function PythonEndpointDefinitionEmitter$emit$lambda_1(this$0) {
927
928
  }
928
929
  function PythonEndpointDefinitionEmitter$emit$lambda_2(this$0) {
929
930
  return function (it) {
930
- return this$0.wp(it);
931
+ return this$0.aq(it);
931
932
  };
932
933
  }
933
934
  function PythonEndpointDefinitionEmitter$emit$lambda_3(this$0) {
934
935
  return function (it) {
935
- return this$0.wp(it);
936
+ return this$0.aq(it);
936
937
  };
937
938
  }
938
939
  function PythonEndpointDefinitionEmitter$emit$lambda_4(this$0) {
@@ -944,10 +945,10 @@ function PythonEndpointDefinitionEmitter$emitToRawRequest$lambda(this$0) {
944
945
  return function (it) {
945
946
  var tmp;
946
947
  if (it instanceof Literal) {
947
- tmp = '"' + it.hq_1 + '"';
948
+ tmp = '"' + it.lq_1 + '"';
948
949
  } else {
949
950
  if (it instanceof Param) {
950
- tmp = 'str(request.path.' + this$0.wq(it.lp_1) + ')';
951
+ tmp = 'str(request.path.' + this$0.br(it.pp_1) + ')';
951
952
  } else {
952
953
  noWhenBranchMatchedException();
953
954
  }
@@ -981,7 +982,7 @@ function PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_1(this$0)
981
982
  };
982
983
  }
983
984
  function PythonEndpointDefinitionEmitter$emitResponseUnion$lambda(it) {
984
- return 'Response' + it.qp_1;
985
+ return 'Response' + it.up_1;
985
986
  }
986
987
  function PythonEndpointDefinitionEmitter$emitAssignSelf$lambda(this$0) {
987
988
  return function (it) {
@@ -1005,7 +1006,7 @@ function PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_2(this$0) {
1005
1006
  }
1006
1007
  function PythonEndpointDefinitionEmitter$emit$lambda_5(this$0) {
1007
1008
  return function (it) {
1008
- return this$0.wp(it);
1009
+ return this$0.aq(it);
1009
1010
  };
1010
1011
  }
1011
1012
  function PythonEndpointDefinitionEmitter$emit$lambda_6(this$0) {
@@ -1035,7 +1036,7 @@ function PythonEndpointDefinitionEmitter$emitSerialized$lambda(this$0) {
1035
1036
  }
1036
1037
  function PythonEndpointDefinitionEmitter$emitObject$lambda($spaces, $block) {
1037
1038
  return function (it) {
1038
- return Spacer_instance.qr($spaces + 2 | 0) + $block(it);
1039
+ return Spacer_instance.vr($spaces + 2 | 0) + $block(it);
1039
1040
  };
1040
1041
  }
1041
1042
  function PythonEndpointDefinitionEmitter() {
@@ -1064,14 +1065,14 @@ function sanitizeEnum($this, _this__u8e3s4) {
1064
1065
  }
1065
1066
  function PythonEnumDefinitionEmitter$emit$lambda(this$0) {
1066
1067
  return function (it) {
1067
- return Spacer_instance.toString() + this$0.s1v(sanitizeEnum(this$0, it)) + ' = "' + it + '"';
1068
+ return Spacer_instance.toString() + this$0.y1v(sanitizeEnum(this$0, it)) + ' = "' + it + '"';
1068
1069
  };
1069
1070
  }
1070
1071
  function PythonEnumDefinitionEmitter() {
1071
1072
  }
1072
1073
  function Companion() {
1073
1074
  Companion_instance_2 = this;
1074
- this.l1x_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']);
1075
+ this.r1x_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']);
1075
1076
  }
1076
1077
  var Companion_instance_2;
1077
1078
  function Companion_getInstance_0() {
@@ -1082,7 +1083,7 @@ function Companion_getInstance_0() {
1082
1083
  function PythonIdentifierEmitter() {
1083
1084
  }
1084
1085
  function _get_sanitizationConfig__sns434($this) {
1085
- var tmp0 = $this.q1x_1;
1086
+ var tmp0 = $this.w1x_1;
1086
1087
  var tmp = KProperty1;
1087
1088
  // Inline function 'kotlin.getValue' call
1088
1089
  getPropertyCallableRef('sanitizationConfig', 1, tmp, PythonIrEmitter$_get_sanitizationConfig_$ref_1q5eai(), null);
@@ -1099,7 +1100,7 @@ function sanitize_0($this, _this__u8e3s4) {
1099
1100
  var item = _iterator__ex2g4s.v();
1100
1101
  var _unary__edvuaz = index;
1101
1102
  index = _unary__edvuaz + 1 | 0;
1102
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.oq(item) : item;
1103
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.sq(item) : item;
1103
1104
  destination.x(tmp$ret$0);
1104
1105
  }
1105
1106
  // Inline function 'kotlin.text.filter' call
@@ -1145,7 +1146,7 @@ function sanitize_0($this, _this__u8e3s4) {
1145
1146
  return tmp_2;
1146
1147
  }
1147
1148
  function sanitizeKeywords_0($this, _this__u8e3s4) {
1148
- return Companion_getInstance_1().s1x_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1149
+ return Companion_getInstance_1().y1x_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1149
1150
  }
1150
1151
  function sanitizeEnum_0($this, _this__u8e3s4) {
1151
1152
  // Inline function 'kotlin.let' call
@@ -1171,7 +1172,7 @@ function buildImports($this, wirespecPath) {
1171
1172
  }
1172
1173
  function Companion_0() {
1173
1174
  Companion_instance_3 = this;
1174
- this.s1x_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']);
1175
+ this.y1x_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']);
1175
1176
  }
1176
1177
  var Companion_instance_3;
1177
1178
  function Companion_getInstance_1() {
@@ -1180,16 +1181,16 @@ function Companion_getInstance_1() {
1180
1181
  return Companion_instance_3;
1181
1182
  }
1182
1183
  function sam$kotlin_Comparator$0_0(function_0) {
1183
- this.t1x_1 = function_0;
1184
+ this.z1x_1 = function_0;
1184
1185
  }
1185
- protoOf(sam$kotlin_Comparator$0_0).qd = function (a, b) {
1186
- return this.t1x_1(a, b);
1186
+ protoOf(sam$kotlin_Comparator$0_0).td = function (a, b) {
1187
+ return this.z1x_1(a, b);
1187
1188
  };
1188
1189
  protoOf(sam$kotlin_Comparator$0_0).compare = function (a, b) {
1189
- return this.qd(a, b);
1190
+ return this.td(a, b);
1190
1191
  };
1191
1192
  protoOf(sam$kotlin_Comparator$0_0).l3 = function () {
1192
- return this.t1x_1;
1193
+ return this.z1x_1;
1193
1194
  };
1194
1195
  protoOf(sam$kotlin_Comparator$0_0).equals = function (other) {
1195
1196
  var tmp;
@@ -1213,11 +1214,11 @@ function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
1213
1214
  return '_' + it;
1214
1215
  }
1215
1216
  function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(name) {
1216
- var sanitized = name.m1h_1.a1() > 1 ? name.q1l() : name.r1h();
1217
+ var sanitized = name.l1h_1.a1() > 1 ? name.x1l() : name.x1h();
1217
1218
  return new Name(listOf_0(sanitized));
1218
1219
  }
1219
1220
  function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(name) {
1220
- return new Name(listOf_0(name.q1l()));
1221
+ return new Name(listOf_0(name.x1l()));
1221
1222
  }
1222
1223
  function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(it) {
1223
1224
  return it;
@@ -1226,9 +1227,9 @@ function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1226
1227
  return function (stmt, tr) {
1227
1228
  var tmp;
1228
1229
  if (stmt instanceof ConstructorStatement) {
1229
- var tmp_0 = tr.o1t(stmt.o1m_1);
1230
+ var tmp_0 = tr.u1t(stmt.u1m_1);
1230
1231
  // Inline function 'kotlin.collections.map' call
1231
- var this_0 = stmt.p1m_1;
1232
+ var this_0 = stmt.v1m_1;
1232
1233
  // Inline function 'kotlin.collections.mapTo' call
1233
1234
  var destination = ArrayList_init_$Create$_0(this_0.a1());
1234
1235
  // Inline function 'kotlin.collections.iterator' call
@@ -1239,7 +1240,7 @@ function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1239
1240
  var k = item.k1();
1240
1241
  // Inline function 'kotlin.collections.component2' call
1241
1242
  var v = item.l1();
1242
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), k), tr.r1t(v));
1243
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), k), tr.x1t(v));
1243
1244
  destination.x(tmp$ret$3);
1244
1245
  }
1245
1246
  tmp = new ConstructorStatement(tmp_0, toMap(destination));
@@ -1251,7 +1252,7 @@ function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1251
1252
  }
1252
1253
  function PythonIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
1253
1254
  return function () {
1254
- var tmp = Companion_getInstance_1().s1x_1;
1255
+ var tmp = Companion_getInstance_1().y1x_1;
1255
1256
  var tmp_0 = PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda;
1256
1257
  var tmp_1 = PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_0;
1257
1258
  var tmp_2 = PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_1;
@@ -1271,7 +1272,7 @@ function PythonIrEmitter$emit$lambda(a, b) {
1271
1272
  return compareValues(tmp, tmp$ret$1);
1272
1273
  }
1273
1274
  function emit$emitInitImport(this$0, def) {
1274
- return import_0('.' + sanitize_0(this$0, def.vq()), sanitize_0(this$0, def.vq()));
1275
+ return import_0('.' + sanitize_0(this$0, def.ar()), sanitize_0(this$0, def.ar()));
1275
1276
  }
1276
1277
  function PythonIrEmitter$emit$lambda_0(this$0) {
1277
1278
  return function (it) {
@@ -1280,43 +1281,43 @@ function PythonIrEmitter$emit$lambda_0(this$0) {
1280
1281
  }
1281
1282
  function PythonIrEmitter(packageName, emitShared) {
1282
1283
  Companion_getInstance_1();
1283
- packageName = packageName === VOID ? Companion_instance.lr('community.flock.wirespec.generated') : packageName;
1284
- emitShared = emitShared === VOID ? Companion_instance_0.go() : emitShared;
1285
- this.m1x_1 = packageName;
1286
- this.n1x_1 = emitShared;
1287
- this.o1x_1 = PythonGenerator_instance;
1288
- this.p1x_1 = FileExtension_Python_getInstance();
1284
+ packageName = packageName === VOID ? Companion_instance.qr('community.flock.wirespec.generated') : packageName;
1285
+ emitShared = emitShared === VOID ? Companion_instance_0.ko() : emitShared;
1286
+ this.s1x_1 = packageName;
1287
+ this.t1x_1 = emitShared;
1288
+ this.u1x_1 = PythonGenerator_instance;
1289
+ this.v1x_1 = FileExtension_Python_getInstance();
1289
1290
  var tmp = this;
1290
- tmp.q1x_1 = lazy(PythonIrEmitter$sanitizationConfig$delegate$lambda(this));
1291
- this.r1x_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";
1291
+ tmp.w1x_1 = lazy(PythonIrEmitter$sanitizationConfig$delegate$lambda(this));
1292
+ this.x1x_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";
1292
1293
  }
1293
- protoOf(PythonIrEmitter).j1u = function () {
1294
- return this.o1x_1;
1294
+ protoOf(PythonIrEmitter).p1u = function () {
1295
+ return this.u1x_1;
1295
1296
  };
1296
- protoOf(PythonIrEmitter).eq = function () {
1297
- return this.p1x_1;
1297
+ protoOf(PythonIrEmitter).iq = function () {
1298
+ return this.v1x_1;
1298
1299
  };
1299
- protoOf(PythonIrEmitter).m1u = function () {
1300
- var source = convert(Companion_instance.lr('shared'));
1300
+ protoOf(PythonIrEmitter).s1u = function () {
1301
+ var source = convert(Companion_instance.qr('shared'));
1301
1302
  var tmp;
1302
- if (this.n1x_1.ho_1) {
1303
- tmp = new File(Companion_getInstance().l1h(this.m1x_1.or() + 'wirespec'), listOf_0(raw(this.r1x_1 + PythonGenerator_instance.k1u(source))));
1303
+ if (this.t1x_1.lo_1) {
1304
+ tmp = new File(Companion_getInstance().k1h(this.s1x_1.tr() + 'wirespec'), listOf_0(raw(this.x1x_1 + PythonGenerator_instance.q1u(source))));
1304
1305
  } else {
1305
1306
  tmp = null;
1306
1307
  }
1307
1308
  return tmp;
1308
1309
  };
1309
- protoOf(PythonIrEmitter).l1u = function (module_0, logger) {
1310
+ protoOf(PythonIrEmitter).r1u = function (module_0, logger) {
1310
1311
  // Inline function 'kotlin.collections.sortedBy' call
1311
- var this_0 = new NonEmptyList(module_0.dq_1);
1312
+ var this_0 = new NonEmptyList(module_0.hq_1);
1312
1313
  // Inline function 'kotlin.comparisons.compareBy' call
1313
1314
  var tmp = PythonIrEmitter$emit$lambda;
1314
1315
  var tmp$ret$0 = new sam$kotlin_Comparator$0_0(tmp);
1315
1316
  var tmp$ret$1 = sortedWith(this_0, tmp$ret$0);
1316
1317
  var tmp_0 = toNonEmptyListOrNull(tmp$ret$1);
1317
- var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).yl_1;
1318
- var emitted = emit.call(this, module_0.vu(VOID, statements), logger);
1319
- var tmp0 = new NonEmptyList(module_0.dq_1);
1318
+ var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).cm_1;
1319
+ var emitted = emit.call(this, module_0.av(VOID, statements), logger);
1320
+ var tmp0 = new NonEmptyList(module_0.hq_1);
1320
1321
  var tmp$ret$2;
1321
1322
  $l$block_0: {
1322
1323
  // Inline function 'kotlin.collections.any' call
@@ -1341,7 +1342,7 @@ protoOf(PythonIrEmitter).l1u = function (module_0, logger) {
1341
1342
  tmp$ret$2 = false;
1342
1343
  }
1343
1344
  var hasEndpoints = tmp$ret$2;
1344
- var tmp_2 = Companion_getInstance().l1h(this.m1x_1.or() + '__init__');
1345
+ var tmp_2 = Companion_getInstance().k1h(this.s1x_1.tr() + '__init__');
1345
1346
  // Inline function 'kotlin.collections.buildList' call
1346
1347
  // Inline function 'kotlin.collections.buildListInternal' call
1347
1348
  // Inline function 'kotlin.apply' call
@@ -1354,9 +1355,9 @@ protoOf(PythonIrEmitter).l1u = function (module_0, logger) {
1354
1355
  this_1.x(import_0('.', 'wirespec'));
1355
1356
  var tmp$ret$7 = this_1.o5();
1356
1357
  var init = new File(tmp_2, tmp$ret$7);
1357
- var tmp_3 = Companion_getInstance().l1h(this.m1x_1.or() + 'endpoint/' + '__init__');
1358
+ var tmp_3 = Companion_getInstance().k1h(this.s1x_1.tr() + 'endpoint/' + '__init__');
1358
1359
  // Inline function 'kotlin.collections.filterIsInstance' call
1359
- var tmp0_0 = new NonEmptyList(module_0.dq_1);
1360
+ var tmp0_0 = new NonEmptyList(module_0.hq_1);
1360
1361
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1361
1362
  var destination = ArrayList_init_$Create$();
1362
1363
  var _iterator__ex2g4s_0 = tmp0_0.t();
@@ -1376,9 +1377,9 @@ protoOf(PythonIrEmitter).l1u = function (module_0, logger) {
1376
1377
  destination_0.x(tmp$ret$10);
1377
1378
  }
1378
1379
  var initEndpoint = new File(tmp_3, destination_0);
1379
- var tmp_4 = Companion_getInstance().l1h(this.m1x_1.or() + 'model/' + '__init__');
1380
+ var tmp_4 = Companion_getInstance().k1h(this.s1x_1.tr() + 'model/' + '__init__');
1380
1381
  // Inline function 'kotlin.collections.filterIsInstance' call
1381
- var tmp0_1 = new NonEmptyList(module_0.dq_1);
1382
+ var tmp0_1 = new NonEmptyList(module_0.hq_1);
1382
1383
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1383
1384
  var destination_1 = ArrayList_init_$Create$();
1384
1385
  var _iterator__ex2g4s_2 = tmp0_1.t();
@@ -1398,8 +1399,8 @@ protoOf(PythonIrEmitter).l1u = function (module_0, logger) {
1398
1399
  destination_2.x(tmp$ret$15);
1399
1400
  }
1400
1401
  var initModel = new File(tmp_4, destination_2);
1401
- var initClient = hasEndpoints ? listOf_0(new File(Companion_getInstance().l1h(this.m1x_1.or() + 'client/' + '__init__'), emptyList())) : emptyList();
1402
- var tmp0_2 = dropLast(split(this.m1x_1.mr_1, ['.']), 1);
1402
+ var initClient = hasEndpoints ? listOf_0(new File(Companion_getInstance().k1h(this.s1x_1.tr() + 'client/' + '__init__'), emptyList())) : emptyList();
1403
+ var tmp0_2 = dropLast(split(this.s1x_1.rr_1, ['.']), 1);
1403
1404
  var tmp$ret$18;
1404
1405
  $l$block_1: {
1405
1406
  // Inline function 'kotlin.collections.runningFold' call
@@ -1436,17 +1437,17 @@ protoOf(PythonIrEmitter).l1u = function (module_0, logger) {
1436
1437
  var _iterator__ex2g4s_5 = this_3.t();
1437
1438
  while (_iterator__ex2g4s_5.u()) {
1438
1439
  var item_1 = _iterator__ex2g4s_5.v();
1439
- var tmp$ret$23 = new File(Companion_getInstance().l1h(item_1 + '/__init__'), emptyList());
1440
+ var tmp$ret$23 = new File(Companion_getInstance().k1h(item_1 + '/__init__'), emptyList());
1440
1441
  destination_3.x(tmp$ret$23);
1441
1442
  }
1442
1443
  var parentInits = destination_3;
1443
- return this.n1x_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);
1444
+ return this.t1x_1.lo_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);
1444
1445
  };
1445
- protoOf(PythonIrEmitter).uq = function (definition, module_0, logger) {
1446
+ protoOf(PythonIrEmitter).zq = function (definition, module_0, logger) {
1446
1447
  var file = emit_0.call(this, definition, module_0, logger);
1447
- return placeInModule(prependImports(file, buildImports(this, '..wirespec')), this.m1x_1, definition);
1448
+ return placeInModule(prependImports(file, buildImports(this, '..wirespec')), this.s1x_1, definition);
1448
1449
  };
1449
- protoOf(PythonIrEmitter).up = function (type, module_0) {
1450
+ protoOf(PythonIrEmitter).yp = function (type, module_0) {
1450
1451
  // Inline function 'kotlin.collections.distinctBy' call
1451
1452
  var this_0 = importReferences(type);
1452
1453
  var set = HashSet_init_$Create$();
@@ -1454,7 +1455,7 @@ protoOf(PythonIrEmitter).up = function (type, module_0) {
1454
1455
  var _iterator__ex2g4s = this_0.t();
1455
1456
  while (_iterator__ex2g4s.u()) {
1456
1457
  var e = _iterator__ex2g4s.v();
1457
- var key = e.ku_1;
1458
+ var key = e.pu_1;
1458
1459
  if (set.x(key)) {
1459
1460
  list.x(e);
1460
1461
  }
@@ -1465,18 +1466,18 @@ protoOf(PythonIrEmitter).up = function (type, module_0) {
1465
1466
  var _iterator__ex2g4s_0 = list.t();
1466
1467
  while (_iterator__ex2g4s_0.u()) {
1467
1468
  var item = _iterator__ex2g4s_0.v();
1468
- var tmp$ret$2 = import_0('.' + item.ku_1, item.ku_1);
1469
+ var tmp$ret$2 = import_0('.' + item.pu_1, item.pu_1);
1469
1470
  destination.x(tmp$ret$2);
1470
1471
  }
1471
1472
  var typeImports = destination;
1472
1473
  // Inline function 'kotlin.collections.map' call
1473
- var this_1 = type.wo_1.so_1;
1474
+ var this_1 = type.ap_1.wo_1;
1474
1475
  // Inline function 'kotlin.collections.mapTo' call
1475
1476
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
1476
1477
  var _iterator__ex2g4s_1 = this_1.t();
1477
1478
  while (_iterator__ex2g4s_1.u()) {
1478
1479
  var item_0 = _iterator__ex2g4s_1.v();
1479
- var tmp$ret$5 = item_0.ap_1.l1();
1480
+ var tmp$ret$5 = item_0.ep_1.l1();
1480
1481
  destination_0.x(tmp$ret$5);
1481
1482
  }
1482
1483
  var fieldNames = toSet(destination_0);
@@ -1492,17 +1493,17 @@ protoOf(PythonIrEmitter).up = function (type, module_0) {
1492
1493
  var tmp$ret$10 = tmp_0;
1493
1494
  return prependImports(tmp, tmp$ret$10);
1494
1495
  };
1495
- protoOf(PythonIrEmitter).ir = function (enum_0, module_0) {
1496
+ protoOf(PythonIrEmitter).nr = function (enum_0, module_0) {
1496
1497
  var tmp = convert_0(enum_0);
1497
1498
  return sanitizeNames(sanitizeEnumEntries(tmp, PythonIrEmitter$emit$lambda_0(this)), _get_sanitizationConfig__sns434(this));
1498
1499
  };
1499
- protoOf(PythonIrEmitter).yq = function (union) {
1500
+ protoOf(PythonIrEmitter).dr = function (union) {
1500
1501
  return sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
1501
1502
  };
1502
- protoOf(PythonIrEmitter).dr = function (refined) {
1503
+ protoOf(PythonIrEmitter).ir = function (refined) {
1503
1504
  return sanitizeNames(replaceRefinedFunctions(convert_2(refined), refined), _get_sanitizationConfig__sns434(this));
1504
1505
  };
1505
- protoOf(PythonIrEmitter).jr = function (endpoint) {
1506
+ protoOf(PythonIrEmitter).or = function (endpoint) {
1506
1507
  // Inline function 'kotlin.collections.distinctBy' call
1507
1508
  var this_0 = importReferences(endpoint);
1508
1509
  var set = HashSet_init_$Create$();
@@ -1510,7 +1511,7 @@ protoOf(PythonIrEmitter).jr = function (endpoint) {
1510
1511
  var _iterator__ex2g4s = this_0.t();
1511
1512
  while (_iterator__ex2g4s.u()) {
1512
1513
  var e = _iterator__ex2g4s.v();
1513
- var key = e.ku_1;
1514
+ var key = e.pu_1;
1514
1515
  if (set.x(key)) {
1515
1516
  list.x(e);
1516
1517
  }
@@ -1521,19 +1522,19 @@ protoOf(PythonIrEmitter).jr = function (endpoint) {
1521
1522
  var _iterator__ex2g4s_0 = list.t();
1522
1523
  while (_iterator__ex2g4s_0.u()) {
1523
1524
  var item = _iterator__ex2g4s_0.v();
1524
- var tmp$ret$2 = import_0('..model.' + item.ku_1, item.ku_1);
1525
+ var tmp$ret$2 = import_0('..model.' + item.pu_1, item.pu_1);
1525
1526
  destination.x(tmp$ret$2);
1526
1527
  }
1527
1528
  var endpointImports = destination;
1528
1529
  // Inline function 'kotlin.let' call
1529
1530
  var it = splitEndpointStructsToModuleLevel(convert_3(endpoint));
1530
- var tmp$ret$6 = it.v1m(VOID, plus(endpointImports, it.s1m_1));
1531
+ var tmp$ret$6 = it.b1n(VOID, plus(endpointImports, it.y1m_1));
1531
1532
  return sanitizeNames(snakeCaseHandlerAndCallMethods(tmp$ret$6), _get_sanitizationConfig__sns434(this));
1532
1533
  };
1533
- protoOf(PythonIrEmitter).xq = function (channel) {
1534
+ protoOf(PythonIrEmitter).cr = function (channel) {
1534
1535
  return sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
1535
1536
  };
1536
- protoOf(PythonIrEmitter).o1u = function (endpoint) {
1537
+ protoOf(PythonIrEmitter).u1u = function (endpoint) {
1537
1538
  // Inline function 'kotlin.collections.distinctBy' call
1538
1539
  var this_0 = importReferences(endpoint);
1539
1540
  var set = HashSet_init_$Create$();
@@ -1541,7 +1542,7 @@ protoOf(PythonIrEmitter).o1u = function (endpoint) {
1541
1542
  var _iterator__ex2g4s = this_0.t();
1542
1543
  while (_iterator__ex2g4s.u()) {
1543
1544
  var e = _iterator__ex2g4s.v();
1544
- var key = e.ku_1;
1545
+ var key = e.pu_1;
1545
1546
  if (set.x(key)) {
1546
1547
  list.x(e);
1547
1548
  }
@@ -1552,17 +1553,17 @@ protoOf(PythonIrEmitter).o1u = function (endpoint) {
1552
1553
  var _iterator__ex2g4s_0 = list.t();
1553
1554
  while (_iterator__ex2g4s_0.u()) {
1554
1555
  var item = _iterator__ex2g4s_0.v();
1555
- var tmp$ret$2 = import_0('..model.' + item.ku_1, item.ku_1);
1556
+ var tmp$ret$2 = import_0('..model.' + item.pu_1, item.pu_1);
1556
1557
  destination.x(tmp$ret$2);
1557
1558
  }
1558
1559
  var modelImports = destination;
1559
- var endpointImport = import_0('..endpoint.' + endpoint.ep_1.l1(), '*');
1560
- var endpointName = endpoint.ep_1.l1();
1560
+ var endpointImport = import_0('..endpoint.' + endpoint.ip_1.l1(), '*');
1561
+ var endpointName = endpoint.ip_1.l1();
1561
1562
  var file = flattenEndpointTypeRefs(snakeCaseClientFunctions(addSelfReceiverToClientFields(sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this)))), endpointName);
1562
- var subPackageName = plus_2(this.m1x_1, 'client');
1563
- return new File(Companion_getInstance().l1h(subPackageName.or() + file.r1m_1.w1l()), plus(plus(plus(buildImports(this, '..wirespec'), modelImports), listOf_0(endpointImport)), file.s1m_1));
1563
+ var subPackageName = plus_2(this.s1x_1, 'client');
1564
+ return new File(Companion_getInstance().k1h(subPackageName.tr() + file.x1m_1.m1h()), plus(plus(plus(buildImports(this, '..wirespec'), modelImports), listOf_0(endpointImport)), file.y1m_1));
1564
1565
  };
1565
- protoOf(PythonIrEmitter).n1u = function (endpoints, logger) {
1566
+ protoOf(PythonIrEmitter).t1u = function (endpoints, logger) {
1566
1567
  // Inline function 'kotlin.collections.flatMap' call
1567
1568
  // Inline function 'kotlin.collections.flatMapTo' call
1568
1569
  var destination = ArrayList_init_$Create$();
@@ -1578,7 +1579,7 @@ protoOf(PythonIrEmitter).n1u = function (endpoints, logger) {
1578
1579
  var _iterator__ex2g4s_0 = destination.t();
1579
1580
  while (_iterator__ex2g4s_0.u()) {
1580
1581
  var e = _iterator__ex2g4s_0.v();
1581
- var key = e.ku_1;
1582
+ var key = e.pu_1;
1582
1583
  if (set.x(key)) {
1583
1584
  list_0.x(e);
1584
1585
  }
@@ -1589,7 +1590,7 @@ protoOf(PythonIrEmitter).n1u = function (endpoints, logger) {
1589
1590
  var _iterator__ex2g4s_1 = list_0.t();
1590
1591
  while (_iterator__ex2g4s_1.u()) {
1591
1592
  var item = _iterator__ex2g4s_1.v();
1592
- var tmp$ret$5 = import_0('.model.' + item.ku_1, item.ku_1);
1593
+ var tmp$ret$5 = import_0('.model.' + item.pu_1, item.pu_1);
1593
1594
  destination_0.x(tmp$ret$5);
1594
1595
  }
1595
1596
  var modelImports = destination_0;
@@ -1599,7 +1600,7 @@ protoOf(PythonIrEmitter).n1u = function (endpoints, logger) {
1599
1600
  var _iterator__ex2g4s_2 = endpoints.t();
1600
1601
  while (_iterator__ex2g4s_2.u()) {
1601
1602
  var item_0 = _iterator__ex2g4s_2.v();
1602
- var tmp$ret$8 = import_0('.endpoint.' + item_0.ep_1.l1(), '*');
1603
+ var tmp$ret$8 = import_0('.endpoint.' + item_0.ip_1.l1(), '*');
1603
1604
  destination_1.x(tmp$ret$8);
1604
1605
  }
1605
1606
  var endpointImports = destination_1;
@@ -1609,7 +1610,7 @@ protoOf(PythonIrEmitter).n1u = function (endpoints, logger) {
1609
1610
  var _iterator__ex2g4s_3 = endpoints.t();
1610
1611
  while (_iterator__ex2g4s_3.u()) {
1611
1612
  var item_1 = _iterator__ex2g4s_3.v();
1612
- var tmp$ret$11 = import_0('.client.' + item_1.ep_1.l1() + 'Client', item_1.ep_1.l1() + 'Client');
1613
+ var tmp$ret$11 = import_0('.client.' + item_1.ip_1.l1() + 'Client', item_1.ip_1.l1() + 'Client');
1613
1614
  destination_2.x(tmp$ret$11);
1614
1615
  }
1615
1616
  var clientImports = destination_2;
@@ -1620,7 +1621,7 @@ protoOf(PythonIrEmitter).n1u = function (endpoints, logger) {
1620
1621
  var _iterator__ex2g4s_4 = endpoints.t();
1621
1622
  while (_iterator__ex2g4s_4.u()) {
1622
1623
  var item_2 = _iterator__ex2g4s_4.v();
1623
- var tmp$ret$14 = item_2.ep_1.l1();
1624
+ var tmp$ret$14 = item_2.ip_1.l1();
1624
1625
  destination_3.x(tmp$ret$14);
1625
1626
  }
1626
1627
  var endpointNames = destination_3;
@@ -1634,7 +1635,7 @@ protoOf(PythonIrEmitter).n1u = function (endpoints, logger) {
1634
1635
  accumulator = flattenEndpointTypeRefs(acc, element_0);
1635
1636
  }
1636
1637
  var file = accumulator;
1637
- return new File(Companion_getInstance().l1h(this.m1x_1.or() + file.r1m_1.w1l()), plus(plus(buildImports(this, '.wirespec'), allImports), file.s1m_1));
1638
+ return new File(Companion_getInstance().k1h(this.s1x_1.tr() + file.x1m_1.m1h()), plus(plus(buildImports(this, '.wirespec'), allImports), file.y1m_1));
1638
1639
  };
1639
1640
  function replaceRefinedFunctions(_this__u8e3s4, refined) {
1640
1641
  // Inline function 'community.flock.wirespec.ir.core.transform' call
@@ -1642,14 +1643,14 @@ function replaceRefinedFunctions(_this__u8e3s4, refined) {
1642
1643
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1643
1644
  var tmp = scope;
1644
1645
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1645
- var this_0 = scope.w1t_1;
1646
+ var this_0 = scope.c1u_1;
1646
1647
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1647
1648
  // Inline function 'kotlin.apply' call
1648
1649
  var this_1 = new TransformerBuilder();
1649
- this_1.c1h(replaceRefinedFunctions$lambda(refined));
1650
- var tmp$ret$2 = this_1.d1h();
1651
- tmp.w1t_1 = transform(this_0, tmp$ret$2);
1652
- var tmp_0 = scope.w1t_1;
1650
+ this_1.h1h(replaceRefinedFunctions$lambda(refined));
1651
+ var tmp$ret$2 = this_1.i1h();
1652
+ tmp.c1u_1 = transform(this_0, tmp$ret$2);
1653
+ var tmp_0 = scope.c1u_1;
1653
1654
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1654
1655
  }
1655
1656
  function snakeCaseHandlerAndCallMethods(_this__u8e3s4) {
@@ -1658,20 +1659,20 @@ function snakeCaseHandlerAndCallMethods(_this__u8e3s4) {
1658
1659
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1659
1660
  var tmp = scope;
1660
1661
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1661
- var this_0 = scope.w1t_1;
1662
+ var this_0 = scope.c1u_1;
1662
1663
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1663
1664
  // Inline function 'kotlin.apply' call
1664
1665
  var this_1 = new TransformerBuilder();
1665
- this_1.c1h(snakeCaseHandlerAndCallMethods$lambda);
1666
- var tmp$ret$2 = this_1.d1h();
1667
- tmp.w1t_1 = transform(this_0, tmp$ret$2);
1668
- var tmp_0 = scope.w1t_1;
1666
+ this_1.h1h(snakeCaseHandlerAndCallMethods$lambda);
1667
+ var tmp$ret$2 = this_1.i1h();
1668
+ tmp.c1u_1 = transform(this_0, tmp$ret$2);
1669
+ var tmp_0 = scope.c1u_1;
1669
1670
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1670
1671
  }
1671
1672
  function splitEndpointStructsToModuleLevel(_this__u8e3s4) {
1672
1673
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1673
1674
  // Inline function 'kotlin.collections.filterIsInstance' call
1674
- var tmp0 = _this__u8e3s4.t1m();
1675
+ var tmp0 = _this__u8e3s4.z1m();
1675
1676
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1676
1677
  var destination = ArrayList_init_$Create$();
1677
1678
  var _iterator__ex2g4s = tmp0.t();
@@ -1685,7 +1686,7 @@ function splitEndpointStructsToModuleLevel(_this__u8e3s4) {
1685
1686
  var namespace = ensureNotNull(tmp$ret$2);
1686
1687
  var flattened = flattenNestedStructs(namespace);
1687
1688
  // Inline function 'kotlin.collections.partition' call
1688
- var this_0 = flattened.y1m_1;
1689
+ var this_0 = flattened.e1n_1;
1689
1690
  var first = ArrayList_init_$Create$();
1690
1691
  var second = ArrayList_init_$Create$();
1691
1692
  var _iterator__ex2g4s_0 = this_0.t();
@@ -1704,16 +1705,16 @@ function splitEndpointStructsToModuleLevel(_this__u8e3s4) {
1704
1705
  }
1705
1706
  }
1706
1707
  var _destruct__k2r9zo = new Pair(first, second);
1707
- var moduleElements = _destruct__k2r9zo.ne();
1708
- var classElements = _destruct__k2r9zo.oe();
1709
- var endpointClass = new Namespace(namespace.x1m_1, classElements, namespace.z1m_1);
1710
- return new File(namespace.x1m_1, plus_0(moduleElements, endpointClass));
1708
+ var moduleElements = _destruct__k2r9zo.qe();
1709
+ var classElements = _destruct__k2r9zo.re();
1710
+ var endpointClass = new Namespace(namespace.d1n_1, classElements, namespace.f1n_1);
1711
+ return new File(namespace.d1n_1, plus_0(moduleElements, endpointClass));
1711
1712
  }
1712
1713
  function flattenEndpointTypeRefs(_this__u8e3s4, endpointName) {
1713
1714
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1714
1715
  var scope = new TransformScope(_this__u8e3s4);
1715
- scope.c1u(flattenEndpointTypeRefs$lambda(endpointName));
1716
- var tmp = scope.w1t_1;
1716
+ scope.i1u(flattenEndpointTypeRefs$lambda(endpointName));
1717
+ var tmp = scope.c1u_1;
1717
1718
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
1718
1719
  }
1719
1720
  function snakeCaseClientFunctions(_this__u8e3s4) {
@@ -1722,15 +1723,15 @@ function snakeCaseClientFunctions(_this__u8e3s4) {
1722
1723
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1723
1724
  var tmp = scope;
1724
1725
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1725
- var this_0 = scope.w1t_1;
1726
+ var this_0 = scope.c1u_1;
1726
1727
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1727
1728
  // Inline function 'kotlin.apply' call
1728
1729
  var this_1 = new TransformerBuilder();
1729
- this_1.c1h(snakeCaseClientFunctions$lambda);
1730
- var tmp$ret$2 = this_1.d1h();
1731
- tmp.w1t_1 = transform(this_0, tmp$ret$2);
1732
- scope.f1u(snakeCaseClientFunctions$lambda_0);
1733
- var tmp_0 = scope.w1t_1;
1730
+ this_1.h1h(snakeCaseClientFunctions$lambda);
1731
+ var tmp$ret$2 = this_1.i1h();
1732
+ tmp.c1u_1 = transform(this_0, tmp$ret$2);
1733
+ scope.l1u(snakeCaseClientFunctions$lambda_0);
1734
+ var tmp_0 = scope.c1u_1;
1734
1735
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1735
1736
  }
1736
1737
  function addSelfReceiverToClientFields(_this__u8e3s4) {
@@ -1741,7 +1742,7 @@ function addSelfReceiverToClientFields(_this__u8e3s4) {
1741
1742
  } else {
1742
1743
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1743
1744
  // Inline function 'kotlin.collections.filterIsInstance' call
1744
- var tmp0 = tmp0_safe_receiver.t1m();
1745
+ var tmp0 = tmp0_safe_receiver.z1m();
1745
1746
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1746
1747
  var destination = ArrayList_init_$Create$();
1747
1748
  var _iterator__ex2g4s = tmp0.t();
@@ -1754,7 +1755,7 @@ function addSelfReceiverToClientFields(_this__u8e3s4) {
1754
1755
  tmp = firstOrNull_0(destination);
1755
1756
  }
1756
1757
  var struct = tmp;
1757
- var tmp2_safe_receiver = struct == null ? null : struct.d1n_1;
1758
+ var tmp2_safe_receiver = struct == null ? null : struct.j1n_1;
1758
1759
  var tmp_0;
1759
1760
  if (tmp2_safe_receiver == null) {
1760
1761
  tmp_0 = null;
@@ -1765,7 +1766,7 @@ function addSelfReceiverToClientFields(_this__u8e3s4) {
1765
1766
  var _iterator__ex2g4s_0 = tmp2_safe_receiver.t();
1766
1767
  while (_iterator__ex2g4s_0.u()) {
1767
1768
  var item = _iterator__ex2g4s_0.v();
1768
- var tmp$ret$3 = item.y1p_1.r1h();
1769
+ var tmp$ret$3 = item.e1q_1.x1h();
1769
1770
  destination_0.x(tmp$ret$3);
1770
1771
  }
1771
1772
  tmp_0 = destination_0;
@@ -1777,23 +1778,23 @@ function addSelfReceiverToClientFields(_this__u8e3s4) {
1777
1778
  return _this__u8e3s4;
1778
1779
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1779
1780
  var scope = new TransformScope(_this__u8e3s4);
1780
- scope.f1u(addSelfReceiverToClientFields$lambda(fieldNames));
1781
- var tmp_1 = scope.w1t_1;
1781
+ scope.l1u(addSelfReceiverToClientFields$lambda(fieldNames));
1782
+ var tmp_1 = scope.c1u_1;
1782
1783
  return isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1783
1784
  }
1784
1785
  function replaceRefinedFunctions$lambda$lambda($constraintExpr) {
1785
1786
  return function ($this$function) {
1786
- $this$function.k1i('self', new Custom_0(''));
1787
- $this$function.j1i(Boolean_instance_0);
1788
- $this$function.i1k($constraintExpr);
1787
+ $this$function.q1i('self', Custom_init_$Create$(''));
1788
+ $this$function.p1i(Boolean_instance_0);
1789
+ $this$function.o1k($constraintExpr);
1789
1790
  return Unit_instance;
1790
1791
  };
1791
1792
  }
1792
1793
  function replaceRefinedFunctions$lambda$lambda_0($toStringExpr) {
1793
1794
  return function ($this$function) {
1794
- $this$function.k1i('self', new Custom_0(''));
1795
- $this$function.j1i(String_instance);
1796
- $this$function.i1k(new RawExpression($toStringExpr));
1795
+ $this$function.q1i('self', Custom_init_$Create$(''));
1796
+ $this$function.p1i(String_instance);
1797
+ $this$function.o1k(new RawExpression($toStringExpr));
1797
1798
  return Unit_instance;
1798
1799
  };
1799
1800
  }
@@ -1802,7 +1803,7 @@ function replaceRefinedFunctions$lambda($refined) {
1802
1803
  var tmp;
1803
1804
  if (element instanceof Struct) {
1804
1805
  // Inline function 'kotlin.collections.mapNotNull' call
1805
- var tmp0 = element.g1n_1;
1806
+ var tmp0 = element.m1n_1;
1806
1807
  // Inline function 'kotlin.collections.mapNotNullTo' call
1807
1808
  var destination = ArrayList_init_$Create$();
1808
1809
  // Inline function 'kotlin.collections.forEach' call
@@ -1812,23 +1813,23 @@ function replaceRefinedFunctions$lambda($refined) {
1812
1813
  var tmp_0;
1813
1814
  var tmp_1;
1814
1815
  if (element_0 instanceof Function) {
1815
- tmp_1 = element_0.s1j_1.equals(Companion_getInstance().l1h('validate'));
1816
+ tmp_1 = element_0.y1j_1.equals(Companion_getInstance().k1h('validate'));
1816
1817
  } else {
1817
1818
  tmp_1 = false;
1818
1819
  }
1819
1820
  if (tmp_1) {
1820
- var constraintExpr = convertConstraint($refined.cr_1, new FieldCall(new VariableReference(Companion_getInstance().l1h('self')), Companion_getInstance().l1h('value')));
1821
+ var constraintExpr = convertConstraint($refined.hr_1, new FieldCall(new VariableReference(Companion_getInstance().k1h('self')), Companion_getInstance().k1h('value')));
1821
1822
  tmp_0 = function_0('validate', VOID, VOID, replaceRefinedFunctions$lambda$lambda(constraintExpr));
1822
1823
  } else {
1823
1824
  var tmp_2;
1824
1825
  if (element_0 instanceof Function) {
1825
- tmp_2 = element_0.s1j_1.equals(Companion_getInstance().l1h('toString'));
1826
+ tmp_2 = element_0.y1j_1.equals(Companion_getInstance().k1h('toString'));
1826
1827
  } else {
1827
1828
  tmp_2 = false;
1828
1829
  }
1829
1830
  if (tmp_2) {
1830
1831
  var tmp_3;
1831
- if ($refined.cr_1.ou_1 instanceof String_0) {
1832
+ if ($refined.hr_1.tu_1 instanceof String_0) {
1832
1833
  tmp_3 = 'self.value';
1833
1834
  } else {
1834
1835
  tmp_3 = 'str(self.value)';
@@ -1847,7 +1848,7 @@ function replaceRefinedFunctions$lambda($refined) {
1847
1848
  destination.x(tmp0_safe_receiver);
1848
1849
  }
1849
1850
  }
1850
- tmp = element.i1n(VOID, VOID, VOID, VOID, destination);
1851
+ tmp = element.o1n(VOID, VOID, VOID, VOID, destination);
1851
1852
  } else {
1852
1853
  tmp = element;
1853
1854
  }
@@ -1860,23 +1861,23 @@ function snakeCaseHandlerAndCallMethods$lambda(element, transformer) {
1860
1861
  if (element instanceof Interface) {
1861
1862
  var tmp$ret$0;
1862
1863
  $l$block: {
1863
- if (!element.j1n_1.equals(Companion_getInstance().l1h('Handler')) && !element.j1n_1.equals(Companion_getInstance().l1h('Call'))) {
1864
+ if (!element.p1n_1.equals(Companion_getInstance().k1h('Handler')) && !element.p1n_1.equals(Companion_getInstance().k1h('Call'))) {
1864
1865
  tmp$ret$0 = element;
1865
1866
  break $l$block;
1866
1867
  }
1867
1868
  // Inline function 'kotlin.collections.map' call
1868
- var this_0 = element.k1n_1;
1869
+ var this_0 = element.q1n_1;
1869
1870
  // Inline function 'kotlin.collections.mapTo' call
1870
1871
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1871
1872
  var _iterator__ex2g4s = this_0.t();
1872
1873
  while (_iterator__ex2g4s.u()) {
1873
1874
  var item = _iterator__ex2g4s.v();
1874
1875
  var tmp0_safe_receiver = item instanceof Function ? item : null;
1875
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1k(Companion_getInstance().l1h(item.s1j_1.x1l()));
1876
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g1k(Companion_getInstance().k1h(item.y1j_1.d1m()));
1876
1877
  var tmp$ret$1 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
1877
1878
  destination.x(tmp$ret$1);
1878
1879
  }
1879
- tmp$ret$0 = element.q1n(VOID, destination);
1880
+ tmp$ret$0 = element.w1n(VOID, destination);
1880
1881
  }
1881
1882
  tmp = tmp$ret$0;
1882
1883
  } else {
@@ -1891,17 +1892,17 @@ function flattenEndpointTypeRefs$lambda($endpointName) {
1891
1892
  if (!(type instanceof Custom_0)) {
1892
1893
  tmp = type;
1893
1894
  } else {
1894
- if (!startsWith(type.p1h_1, $endpointName + '.')) {
1895
+ if (!startsWith(type.v1h_1.m1h(), $endpointName + '.')) {
1895
1896
  tmp = type;
1896
1897
  } else {
1897
- var suffix = removePrefix(type.p1h_1, $endpointName + '.');
1898
+ var suffix = removePrefix(type.v1h_1.m1h(), $endpointName + '.');
1898
1899
  switch (suffix) {
1899
1900
  case 'Call':
1900
1901
  case 'Handler':
1901
1902
  tmp = type;
1902
1903
  break;
1903
1904
  default:
1904
- tmp = type.m1m(suffix);
1905
+ tmp = type.s1m(Companion_getInstance().k1h(suffix));
1905
1906
  break;
1906
1907
  }
1907
1908
  }
@@ -1912,7 +1913,7 @@ function flattenEndpointTypeRefs$lambda($endpointName) {
1912
1913
  function snakeCaseClientFunctions$lambda(element, transformer) {
1913
1914
  var tmp;
1914
1915
  if (element instanceof Function) {
1915
- tmp = element.a1k(Companion_getInstance().l1h(element.s1j_1.x1l()), VOID, plus(listOf_0(new Parameter(Companion_getInstance().l1h('self'), new Custom_0(''))), element.u1j_1));
1916
+ tmp = element.g1k(Companion_getInstance().k1h(element.y1j_1.d1m()), VOID, plus(listOf_0(new Parameter(Companion_getInstance().k1h('self'), Custom_init_$Create$(''))), element.a1k_1));
1916
1917
  } else {
1917
1918
  tmp = element;
1918
1919
  }
@@ -1922,19 +1923,19 @@ function snakeCaseClientFunctions$lambda(element, transformer) {
1922
1923
  function snakeCaseClientFunctions$lambda_0(stmt, tr) {
1923
1924
  var tmp;
1924
1925
  if (stmt instanceof FunctionCall) {
1925
- var nameStr = stmt.a1m_1.r1h();
1926
- var newName = contains(nameStr, '.') ? stmt.a1m_1 : Companion_getInstance().l1h(Companion_getInstance().l1h(nameStr).x1l());
1927
- var tmp1_safe_receiver = stmt.y1l_1;
1926
+ var nameStr = stmt.g1m_1.x1h();
1927
+ var newName = contains(nameStr, '.') ? stmt.g1m_1 : Companion_getInstance().k1h(Companion_getInstance().k1h(nameStr).d1m());
1928
+ var tmp1_safe_receiver = stmt.e1m_1;
1928
1929
  var tmp_0;
1929
1930
  if (tmp1_safe_receiver == null) {
1930
1931
  tmp_0 = null;
1931
1932
  } else {
1932
1933
  // Inline function 'kotlin.let' call
1933
- tmp_0 = tr.r1t(tmp1_safe_receiver);
1934
+ tmp_0 = tr.x1t(tmp1_safe_receiver);
1934
1935
  }
1935
1936
  var tmp2_receiver = tmp_0;
1936
1937
  // Inline function 'kotlin.collections.mapValues' call
1937
- var this_0 = stmt.b1m_1;
1938
+ var this_0 = stmt.h1m_1;
1938
1939
  // Inline function 'kotlin.collections.mapValuesTo' call
1939
1940
  var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.a1()));
1940
1941
  // Inline function 'kotlin.collections.associateByTo' call
@@ -1944,10 +1945,10 @@ function snakeCaseClientFunctions$lambda_0(stmt, tr) {
1944
1945
  var tmp_1 = element.k1();
1945
1946
  // Inline function 'kotlin.collections.component2' call
1946
1947
  var v = element.l1();
1947
- var tmp$ret$4 = tr.r1t(v);
1948
- destination.w2(tmp_1, tmp$ret$4);
1948
+ var tmp$ret$4 = tr.x1t(v);
1949
+ destination.s2(tmp_1, tmp$ret$4);
1949
1950
  }
1950
- var tmp4_isAwait = !(stmt.y1l_1 == null);
1951
+ var tmp4_isAwait = !(stmt.e1m_1 == null);
1951
1952
  tmp = new FunctionCall(tmp2_receiver, VOID, newName, destination, tmp4_isAwait);
1952
1953
  } else {
1953
1954
  tmp = transformChildren(stmt, tr);
@@ -1960,28 +1961,28 @@ function addSelfReceiverToClientFields$lambda($fieldNames) {
1960
1961
  var tmp_0;
1961
1962
  var tmp_1;
1962
1963
  if (stmt instanceof FieldCall) {
1963
- tmp_1 = stmt.i1p_1 == null;
1964
+ tmp_1 = stmt.o1p_1 == null;
1964
1965
  } else {
1965
1966
  tmp_1 = false;
1966
1967
  }
1967
1968
  if (tmp_1) {
1968
- tmp_0 = $fieldNames.u1(stmt.j1p_1.r1h());
1969
+ tmp_0 = $fieldNames.u1(stmt.p1p_1.x1h());
1969
1970
  } else {
1970
1971
  tmp_0 = false;
1971
1972
  }
1972
1973
  if (tmp_0) {
1973
- tmp = new FieldCall(new VariableReference(Companion_getInstance().l1h('self')), stmt.j1p_1);
1974
+ tmp = new FieldCall(new VariableReference(Companion_getInstance().k1h('self')), stmt.p1p_1);
1974
1975
  } else {
1975
1976
  if (stmt instanceof FieldCall) {
1976
- var tmp0_safe_receiver = stmt.i1p_1;
1977
+ var tmp0_safe_receiver = stmt.o1p_1;
1977
1978
  var tmp_2;
1978
1979
  if (tmp0_safe_receiver == null) {
1979
1980
  tmp_2 = null;
1980
1981
  } else {
1981
1982
  // Inline function 'kotlin.let' call
1982
- tmp_2 = tr.r1t(tmp0_safe_receiver);
1983
+ tmp_2 = tr.x1t(tmp0_safe_receiver);
1983
1984
  }
1984
- tmp = new FieldCall(tmp_2, stmt.j1p_1);
1985
+ tmp = new FieldCall(tmp_2, stmt.p1p_1);
1985
1986
  } else {
1986
1987
  tmp = transformChildren(stmt, tr);
1987
1988
  }
@@ -1992,8 +1993,8 @@ function addSelfReceiverToClientFields$lambda($fieldNames) {
1992
1993
  function PythonRefinedTypeDefinitionEmitter() {
1993
1994
  }
1994
1995
  function PythonShared() {
1995
- this.f1x_1 = 'shared';
1996
- this.g1x_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";
1996
+ this.l1x_1 = 'shared';
1997
+ this.m1x_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";
1997
1998
  }
1998
1999
  protoOf(PythonShared).toString = function () {
1999
2000
  return 'PythonShared';
@@ -2014,17 +2015,17 @@ function PythonShared_getInstance() {
2014
2015
  }
2015
2016
  function PythonTypeDefinitionEmitter$emit$lambda(this$0) {
2016
2017
  return function (it) {
2017
- return this$0.k1x(it);
2018
+ return this$0.q1x(it);
2018
2019
  };
2019
2020
  }
2020
2021
  function PythonTypeDefinitionEmitter$emit$lambda_0(this$0) {
2021
2022
  return function (it) {
2022
- return this$0.k1x(it);
2023
+ return this$0.q1x(it);
2023
2024
  };
2024
2025
  }
2025
2026
  function PythonTypeDefinitionEmitter$emit$lambda_1(this$0) {
2026
2027
  return function (it) {
2027
- return Spacer_instance.toString() + this$0.wp(it);
2028
+ return Spacer_instance.toString() + this$0.aq(it);
2028
2029
  };
2029
2030
  }
2030
2031
  function PythonTypeDefinitionEmitter() {
@@ -2032,26 +2033,26 @@ function PythonTypeDefinitionEmitter() {
2032
2033
  function PythonUnionDefinitionEmitter() {
2033
2034
  }
2034
2035
  //region block: post-declaration
2035
- protoOf(PythonEmitter).up = emit_4;
2036
- protoOf(PythonEmitter).vp = emit_5;
2037
- protoOf(PythonEmitter).wp = emit_6;
2038
- protoOf(PythonEmitter).xp = emit_7;
2039
- protoOf(PythonEmitter).yp = emit_9;
2040
- protoOf(PythonEmitter).ir = emit_10;
2041
- protoOf(PythonEmitter).dr = emit_14;
2042
- protoOf(PythonEmitter).jr = emit_11;
2043
- protoOf(PythonEmitter).yq = emit_15;
2044
- protoOf(PythonEmitter).wq = emit_3;
2045
- protoOf(PythonEmitter).xq = emit_2;
2046
- protoOf(PythonEmitter).h1x = emit_8;
2047
- protoOf(PythonEmitter).p1v = emit_12;
2048
- protoOf(PythonEmitter).i1x = emit_13;
2049
- protoOf(PythonEmitter).kr = emitValidator;
2050
- protoOf(PythonEmitter).c1w = sanitize;
2051
- protoOf(PythonEmitter).s1v = sanitizeKeywords;
2052
- protoOf(PythonEmitter).j1x = emitType;
2053
- protoOf(PythonEmitter).k1x = emitReferenceCustomImports;
2054
- protoOf(PythonIrEmitter).on = emit_1;
2036
+ protoOf(PythonEmitter).yp = emit_4;
2037
+ protoOf(PythonEmitter).zp = emit_5;
2038
+ protoOf(PythonEmitter).aq = emit_6;
2039
+ protoOf(PythonEmitter).bq = emit_7;
2040
+ protoOf(PythonEmitter).cq = emit_9;
2041
+ protoOf(PythonEmitter).nr = emit_13;
2042
+ protoOf(PythonEmitter).ir = emit_14;
2043
+ protoOf(PythonEmitter).or = emit_10;
2044
+ protoOf(PythonEmitter).dr = emit_15;
2045
+ protoOf(PythonEmitter).br = emit_3;
2046
+ protoOf(PythonEmitter).cr = emit_2;
2047
+ protoOf(PythonEmitter).n1x = emit_8;
2048
+ protoOf(PythonEmitter).v1v = emit_11;
2049
+ protoOf(PythonEmitter).o1x = emit_12;
2050
+ protoOf(PythonEmitter).pr = emitValidator;
2051
+ protoOf(PythonEmitter).i1w = sanitize;
2052
+ protoOf(PythonEmitter).y1v = sanitizeKeywords;
2053
+ protoOf(PythonEmitter).p1x = emitType;
2054
+ protoOf(PythonEmitter).q1x = emitReferenceCustomImports;
2055
+ protoOf(PythonIrEmitter).sn = emit_1;
2055
2056
  //endregion
2056
2057
  //region block: init
2057
2058
  PythonShared_instance = new PythonShared();