@flock/wirespec 0.16.7 → 0.16.8

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 (30) hide show
  1. package/clikt-clikt.mjs +1172 -1172
  2. package/colormath-root-colormath.mjs +425 -425
  3. package/kotlin-kotlin-stdlib.mjs +31 -31
  4. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  5. package/kotlin-rgxgen.mjs +1767 -1767
  6. package/kotlinx-io-kotlinx-io-core.mjs +380 -380
  7. package/markdown.mjs +1864 -1864
  8. package/mordant-mordant.mjs +1638 -1638
  9. package/package.json +1 -1
  10. package/wirespec-src-compiler-core.mjs +1908 -1928
  11. package/wirespec-src-compiler-core.mjs.map +1 -1
  12. package/wirespec-src-compiler-emitters-java.mjs +697 -609
  13. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  14. package/wirespec-src-compiler-emitters-kotlin.mjs +627 -577
  15. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  16. package/wirespec-src-compiler-emitters-python.mjs +789 -739
  17. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  18. package/wirespec-src-compiler-emitters-typescript.mjs +288 -284
  19. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  20. package/wirespec-src-compiler-emitters-wirespec.mjs +258 -222
  21. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  22. package/wirespec-src-compiler-lib.mjs +310 -310
  23. package/wirespec-src-converter-avro.mjs +372 -347
  24. package/wirespec-src-converter-avro.mjs.map +1 -1
  25. package/wirespec-src-converter-openapi.mjs +507 -499
  26. package/wirespec-src-converter-openapi.mjs.map +1 -1
  27. package/wirespec-src-plugin-arguments.mjs +136 -136
  28. package/wirespec-src-plugin-cli.mjs +75 -75
  29. package/wirespec-src-plugin-npm.mjs +15 -15
  30. package/wirespec-src-tools-generator.mjs +24 -24
@@ -145,7 +145,7 @@ function SpecificFile(extension) {
145
145
  }
146
146
  function Companion() {
147
147
  }
148
- protoOf(Companion).d4b = function (compile, convert) {
148
+ protoOf(Companion).p4a = function (compile, convert) {
149
149
  return subcommands(new WirespecCli(), [new Compile(compile), new Convert(convert)]);
150
150
  };
151
151
  var Companion_instance_4;
@@ -156,10 +156,10 @@ function WirespecCli() {
156
156
  NoOpCliktCommand.call(this, VOID, VOID, 'wirespec');
157
157
  }
158
158
  function _get_stdin__b8xnlj($this) {
159
- return $this.c4c_1.l48($this, stdin$factory_0());
159
+ return $this.o4b_1.x47($this, stdin$factory_0());
160
160
  }
161
161
  function _get_languages__ojonze($this) {
162
- return $this.d4c_1.l48($this, languages$factory_0());
162
+ return $this.p4b_1.x47($this, languages$factory_0());
163
163
  }
164
164
  function run$handleError(p0) {
165
165
  handleError(p0);
@@ -186,15 +186,15 @@ function Compile$run$handleError$ref() {
186
186
  }
187
187
  function Compile(compiler) {
188
188
  CommonOptions.call(this);
189
- this.b4c_1 = compiler;
190
- this.c4c_1 = optional(argument(this, VOID, 'stdin')).r47(this, stdin$factory());
191
- this.d4c_1 = multiple(choice(option(this, Options_Language_getInstance().g4c_1.slice(), 'Language'), Companion_instance_1.i2j(), VOID, true), listOf(Language_Kotlin_getInstance())).v48(this, languages$factory());
189
+ this.n4b_1 = compiler;
190
+ this.o4b_1 = optional(argument(this, VOID, 'stdin')).d47(this, stdin$factory());
191
+ this.p4b_1 = multiple(choice(option(this, Options_Language_getInstance().s4b_1.slice(), 'Language'), Companion_instance_1.u2i(), VOID, true), listOf(Language_Kotlin_getInstance())).h48(this, languages$factory());
192
192
  }
193
- protoOf(Compile).z3y = function () {
193
+ protoOf(Compile).l3y = function () {
194
194
  // Inline function 'arrow.core.getOrElse' call
195
195
  // Inline function 'kotlin.contracts.contract' call
196
196
  // Inline function 'arrow.core.Either.fold' call
197
- var this_0 = getFullPath(this.e4d());
197
+ var this_0 = getFullPath(this.q4c());
198
198
  // Inline function 'kotlin.contracts.contract' call
199
199
  var tmp;
200
200
  if (this_0 instanceof Right) {
@@ -204,7 +204,7 @@ protoOf(Compile).z3y = function () {
204
204
  } else {
205
205
  if (this_0 instanceof Left) {
206
206
  var it = this_0.yj_1;
207
- throw new CliktError(it.n2k_1);
207
+ throw new CliktError(it.z2j_1);
208
208
  } else {
209
209
  noWhenBranchMatchedException();
210
210
  }
@@ -236,13 +236,13 @@ protoOf(Compile).z3y = function () {
236
236
  throw new NoClasspathPossible();
237
237
  } else {
238
238
  if (inputPath instanceof DirectoryPath) {
239
- var tmp_4 = wirespecSources(new Directory(inputPath.h2k_1));
239
+ var tmp_4 = wirespecSources(new Directory(inputPath.t2j_1));
240
240
  tmp_0 = or(tmp_4, handleError$ref()).rk_1;
241
241
  } else {
242
242
  if (inputPath instanceof FilePath) {
243
243
  var tmp_5;
244
- if (inputPath.m2k_1.r2_1 === 4) {
245
- tmp_5 = nonEmptySetOf(new Source(inputPath.l2k_1, read(inputPath)), []);
244
+ if (inputPath.y2j_1.r2_1 === 4) {
245
+ tmp_5 = nonEmptySetOf(new Source(inputPath.x2j_1, read(inputPath)), []);
246
246
  } else {
247
247
  throw new WirespecFileError();
248
248
  }
@@ -254,7 +254,7 @@ protoOf(Compile).z3y = function () {
254
254
  }
255
255
  }
256
256
  var sources = tmp_0;
257
- var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.a27(this.f4d()), new EmitShared(this.x2a()));
257
+ var emitters = toEmitters(_get_languages__ojonze(this), Companion_instance_0.s26(this.b2a()), new EmitShared(this.l2a()));
258
258
  var tmp_6;
259
259
  if (inputPath == null) {
260
260
  tmp_6 = null;
@@ -262,24 +262,24 @@ protoOf(Compile).z3y = function () {
262
262
  // Inline function 'kotlin.let' call
263
263
  // Inline function 'kotlin.contracts.contract' call
264
264
  // Inline function 'community.flock.wirespec.plugin.cli.Compile.run.<anonymous>' call
265
- var tmp_7 = getOutPutPath(inputPath, this.g4d());
266
- tmp_6 = new Directory(or(tmp_7, handleError$ref_0()).h2k_1);
265
+ var tmp_7 = getOutPutPath(inputPath, this.r4c());
266
+ tmp_6 = new Directory(or(tmp_7, handleError$ref_0()).t2j_1);
267
267
  }
268
268
  var outputDir = tmp_6;
269
269
  // Inline function 'kotlin.let' call
270
- var tmp_8 = this.h4d(outputDir);
271
- var this_1 = new CompilerArguments(sources, emitters, tmp_8, Compile$run$handleError$ref(), Companion_instance_0.a27(this.f4d()), new Logger(this.j4d(this.i4d())), this.x2a(), this.k4d());
270
+ var tmp_8 = this.s4c(outputDir);
271
+ var this_1 = new CompilerArguments(sources, emitters, tmp_8, Compile$run$handleError$ref(), Companion_instance_0.s26(this.b2a()), new Logger(this.u4c(this.t4c())), this.l2a(), this.v4c());
272
272
  // Inline function 'kotlin.contracts.contract' call
273
- this.b4c_1(this_1);
273
+ this.n4b_1(this_1);
274
274
  };
275
275
  function _get_format__qlarck($this) {
276
- return $this.j4e_1.l48($this, format$factory_0());
276
+ return $this.u4d_1.x47($this, format$factory_0());
277
277
  }
278
278
  function _get_stdin__b8xnlj_0($this) {
279
- return $this.k4e_1.l48($this, stdin$factory_2());
279
+ return $this.v4d_1.x47($this, stdin$factory_2());
280
280
  }
281
281
  function _get_languages__ojonze_0($this) {
282
- return $this.l4e_1.l48($this, languages$factory_2());
282
+ return $this.w4d_1.x47($this, languages$factory_2());
283
283
  }
284
284
  function run$handleError_0(p0) {
285
285
  handleError(p0);
@@ -306,7 +306,7 @@ function Convert$run$handleError$ref() {
306
306
  }
307
307
  function Convert(converter) {
308
308
  CommonOptions.call(this);
309
- this.i4e_1 = converter;
309
+ this.t4d_1 = converter;
310
310
  var tmp = this;
311
311
  // Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
312
312
  var this_0 = argument(this, VOID, 'Input format');
@@ -326,12 +326,12 @@ function Convert(converter) {
326
326
  var tmp$ret$2 = element.q2_1;
327
327
  destination.n2(tmp$ret$2, element);
328
328
  }
329
- tmp.j4e_1 = choice_0(this_0, destination, true).r47(this, format$factory());
330
- this.k4e_1 = optional(argument(this, VOID, 'stdin')).r47(this, stdin$factory_1());
331
- this.l4e_1 = multiple(choice(option(this, Options_Language_getInstance().g4c_1.slice(), 'Language'), Companion_instance_1.i2j(), VOID, true)).v48(this, languages$factory_1());
329
+ tmp.u4d_1 = choice_0(this_0, destination, true).d47(this, format$factory());
330
+ this.v4d_1 = optional(argument(this, VOID, 'stdin')).d47(this, stdin$factory_1());
331
+ this.w4d_1 = multiple(choice(option(this, Options_Language_getInstance().s4b_1.slice(), 'Language'), Companion_instance_1.u2i(), VOID, true)).h48(this, languages$factory_1());
332
332
  }
333
- protoOf(Convert).z3y = function () {
334
- var tmp = getFullPath(this.e4d());
333
+ protoOf(Convert).l3y = function () {
334
+ var tmp = getFullPath(this.q4c());
335
335
  var inputPath = or(tmp, handleError$ref_1());
336
336
  var tmp_0;
337
337
  if (inputPath == null) {
@@ -362,8 +362,8 @@ protoOf(Convert).z3y = function () {
362
362
  } else {
363
363
  if (inputPath instanceof FilePath) {
364
364
  var tmp_3;
365
- if (inputPath.m2k_1.r2_1 === 5) {
366
- tmp_3 = new Source(inputPath.l2k_1, read(inputPath));
365
+ if (inputPath.y2j_1.r2_1 === 5) {
366
+ tmp_3 = new Source(inputPath.x2j_1, read(inputPath));
367
367
  } else {
368
368
  throw new JSONFileError();
369
369
  }
@@ -375,7 +375,7 @@ protoOf(Convert).z3y = function () {
375
375
  }
376
376
  }
377
377
  var source = tmp_0;
378
- var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.a27(this.f4d()), new EmitShared(this.x2a()));
378
+ var emitters = toEmitters(_get_languages__ojonze_0(this), Companion_instance_0.s26(this.b2a()), new EmitShared(this.l2a()));
379
379
  var tmp_4;
380
380
  if (inputPath == null) {
381
381
  tmp_4 = null;
@@ -383,17 +383,17 @@ protoOf(Convert).z3y = function () {
383
383
  // Inline function 'kotlin.let' call
384
384
  // Inline function 'kotlin.contracts.contract' call
385
385
  // Inline function 'community.flock.wirespec.plugin.cli.Convert.run.<anonymous>' call
386
- var tmp_5 = getOutPutPath(inputPath, this.g4d());
387
- tmp_4 = new Directory(or(tmp_5, handleError$ref_2()).h2k_1);
386
+ var tmp_5 = getOutPutPath(inputPath, this.r4c());
387
+ tmp_4 = new Directory(or(tmp_5, handleError$ref_2()).t2j_1);
388
388
  }
389
389
  var directory = tmp_4;
390
390
  // Inline function 'kotlin.let' call
391
391
  var tmp_6 = _get_format__qlarck(this);
392
392
  var tmp_7 = nonEmptySetOf(source, []);
393
- var tmp_8 = this.h4d(directory);
394
- var this_0 = new ConverterArguments(tmp_6, tmp_7, emitters, tmp_8, Convert$run$handleError$ref(), Companion_instance_0.a27(this.f4d()), new Logger(this.j4d(this.i4d())), this.x2a(), this.k4d());
393
+ var tmp_8 = this.s4c(directory);
394
+ var this_0 = new ConverterArguments(tmp_6, tmp_7, emitters, tmp_8, Convert$run$handleError$ref(), Companion_instance_0.s26(this.b2a()), new Logger(this.u4c(this.t4c())), this.l2a(), this.v4c());
395
395
  // Inline function 'kotlin.contracts.contract' call
396
- this.i4e_1(this_0);
396
+ this.t4d_1(this_0);
397
397
  };
398
398
  function CommonOptions$writer$lambda($directory, this$0) {
399
399
  return function (emittedList) {
@@ -408,11 +408,11 @@ function CommonOptions$writer$lambda($directory, this$0) {
408
408
  } else {
409
409
  // Inline function 'kotlin.let' call
410
410
  // Inline function 'kotlin.contracts.contract' call
411
- write(Companion_instance_2.j2k(_DirectoryPath___get_value__impl__hdy2e3(tmp0_safe_receiver.i2k_1) + '/' + element.x23_1), element.y23_1);
411
+ write(Companion_instance_2.v2j(_DirectoryPath___get_value__impl__hdy2e3(tmp0_safe_receiver.u2j_1) + '/' + element.x23_1), element.y23_1);
412
412
  tmp = Unit_instance;
413
413
  }
414
414
  if (tmp == null) {
415
- this$0.t3y(element.y23_1);
415
+ this$0.f3y(element.y23_1);
416
416
  }
417
417
  }
418
418
  return Unit_instance;
@@ -420,32 +420,32 @@ function CommonOptions$writer$lambda($directory, this$0) {
420
420
  }
421
421
  function CommonOptions() {
422
422
  CliktCommand.call(this);
423
- this.y4c_1 = option(this, Options_Input_getInstance().g4c_1.slice(), 'Input').v48(this, input$factory());
424
- this.z4c_1 = option(this, Options_Output_getInstance().g4c_1.slice(), 'Output').v48(this, output$factory());
425
- this.a4d_1 = default_0(option(this, Options_PackageName_getInstance().g4c_1.slice(), 'Package name'), 'community.flock.wirespec.generated').v48(this, packageName$factory());
426
- this.b4d_1 = default_0(option(this, Options_LogLevel_getInstance().g4c_1.slice(), 'Log level: ' + Companion_instance.toString()), Level_ERROR_getInstance().toString()).v48(this, logLevel$factory());
427
- this.c4d_1 = flag(option(this, Options_Shared_getInstance().g4c_1.slice(), 'Generate shared wirespec code'), [], false).v48(this, shared$factory());
428
- this.d4d_1 = flag(option(this, Options_Strict_getInstance().g4c_1.slice(), 'Strict mode'), []).v48(this, strict$factory());
429
- }
430
- protoOf(CommonOptions).e4d = function () {
431
- return this.y4c_1.l48(this, input$factory_0());
423
+ this.k4c_1 = option(this, Options_Input_getInstance().s4b_1.slice(), 'Input').h48(this, input$factory());
424
+ this.l4c_1 = option(this, Options_Output_getInstance().s4b_1.slice(), 'Output').h48(this, output$factory());
425
+ this.m4c_1 = default_0(option(this, Options_PackageName_getInstance().s4b_1.slice(), 'Package name'), 'community.flock.wirespec.generated').h48(this, packageName$factory());
426
+ this.n4c_1 = default_0(option(this, Options_LogLevel_getInstance().s4b_1.slice(), 'Log level: ' + Companion_instance.toString()), Level_ERROR_getInstance().toString()).h48(this, logLevel$factory());
427
+ this.o4c_1 = flag(option(this, Options_Shared_getInstance().s4b_1.slice(), 'Generate shared wirespec code'), [], false).h48(this, shared$factory());
428
+ this.p4c_1 = flag(option(this, Options_Strict_getInstance().s4b_1.slice(), 'Strict mode'), []).h48(this, strict$factory());
429
+ }
430
+ protoOf(CommonOptions).q4c = function () {
431
+ return this.k4c_1.x47(this, input$factory_0());
432
432
  };
433
- protoOf(CommonOptions).g4d = function () {
434
- return this.z4c_1.l48(this, output$factory_0());
433
+ protoOf(CommonOptions).r4c = function () {
434
+ return this.l4c_1.x47(this, output$factory_0());
435
435
  };
436
- protoOf(CommonOptions).f4d = function () {
437
- return this.a4d_1.l48(this, packageName$factory_0());
436
+ protoOf(CommonOptions).b2a = function () {
437
+ return this.m4c_1.x47(this, packageName$factory_0());
438
438
  };
439
- protoOf(CommonOptions).i4d = function () {
440
- return this.b4d_1.l48(this, logLevel$factory_0());
439
+ protoOf(CommonOptions).t4c = function () {
440
+ return this.n4c_1.x47(this, logLevel$factory_0());
441
441
  };
442
- protoOf(CommonOptions).x2a = function () {
443
- return this.c4d_1.l48(this, shared$factory_0());
442
+ protoOf(CommonOptions).l2a = function () {
443
+ return this.o4c_1.x47(this, shared$factory_0());
444
444
  };
445
- protoOf(CommonOptions).k4d = function () {
446
- return this.d4d_1.l48(this, strict$factory_0());
445
+ protoOf(CommonOptions).v4c = function () {
446
+ return this.p4c_1.x47(this, strict$factory_0());
447
447
  };
448
- protoOf(CommonOptions).j4d = function (_this__u8e3s4) {
448
+ protoOf(CommonOptions).u4c = function (_this__u8e3s4) {
449
449
  // Inline function 'kotlin.text.uppercase' call
450
450
  // Inline function 'kotlin.text.trim' call
451
451
  // Inline function 'kotlin.js.asDynamic' call
@@ -468,7 +468,7 @@ protoOf(CommonOptions).j4d = function (_this__u8e3s4) {
468
468
  }
469
469
  return tmp;
470
470
  };
471
- protoOf(CommonOptions).h4d = function (directory) {
471
+ protoOf(CommonOptions).s4c = function (directory) {
472
472
  return CommonOptions$writer$lambda(directory, this);
473
473
  };
474
474
  var Options_Input_instance;
@@ -493,7 +493,7 @@ function Options_initEntries() {
493
493
  }
494
494
  function Options(name, ordinal, flags) {
495
495
  Enum.call(this, name, ordinal);
496
- this.g4c_1 = flags;
496
+ this.s4b_1 = flags;
497
497
  }
498
498
  function handleError(string) {
499
499
  throw new CliktError(string);
@@ -599,62 +599,62 @@ function languages$factory_2() {
599
599
  }
600
600
  function input$factory() {
601
601
  return getPropertyCallableRef('input', 1, KProperty1, function (receiver) {
602
- return receiver.e4d();
602
+ return receiver.q4c();
603
603
  }, null);
604
604
  }
605
605
  function output$factory() {
606
606
  return getPropertyCallableRef('output', 1, KProperty1, function (receiver) {
607
- return receiver.g4d();
607
+ return receiver.r4c();
608
608
  }, null);
609
609
  }
610
610
  function packageName$factory() {
611
611
  return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
612
- return receiver.f4d();
612
+ return receiver.b2a();
613
613
  }, null);
614
614
  }
615
615
  function logLevel$factory() {
616
616
  return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) {
617
- return receiver.i4d();
617
+ return receiver.t4c();
618
618
  }, null);
619
619
  }
620
620
  function shared$factory() {
621
621
  return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
622
- return receiver.x2a();
622
+ return receiver.l2a();
623
623
  }, null);
624
624
  }
625
625
  function strict$factory() {
626
626
  return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
627
- return receiver.k4d();
627
+ return receiver.v4c();
628
628
  }, null);
629
629
  }
630
630
  function input$factory_0() {
631
631
  return getPropertyCallableRef('input', 1, KProperty1, function (receiver) {
632
- return receiver.e4d();
632
+ return receiver.q4c();
633
633
  }, null);
634
634
  }
635
635
  function output$factory_0() {
636
636
  return getPropertyCallableRef('output', 1, KProperty1, function (receiver) {
637
- return receiver.g4d();
637
+ return receiver.r4c();
638
638
  }, null);
639
639
  }
640
640
  function packageName$factory_0() {
641
641
  return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) {
642
- return receiver.f4d();
642
+ return receiver.b2a();
643
643
  }, null);
644
644
  }
645
645
  function logLevel$factory_0() {
646
646
  return getPropertyCallableRef('logLevel', 1, KProperty1, function (receiver) {
647
- return receiver.i4d();
647
+ return receiver.t4c();
648
648
  }, null);
649
649
  }
650
650
  function shared$factory_0() {
651
651
  return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) {
652
- return receiver.x2a();
652
+ return receiver.l2a();
653
653
  }, null);
654
654
  }
655
655
  function strict$factory_0() {
656
656
  return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) {
657
- return receiver.k4d();
657
+ return receiver.v4c();
658
658
  }, null);
659
659
  }
660
660
  function main(args) {
@@ -685,7 +685,7 @@ function main(args) {
685
685
  // Inline function 'kotlin.contracts.contract' call
686
686
  var tmp = Companion_instance_4;
687
687
  var tmp_0 = compile$ref();
688
- tmp.d4b(tmp_0, convert$ref()).y3y(destination);
688
+ tmp.p4a(tmp_0, convert$ref()).k3y(destination);
689
689
  }
690
690
  function compile$ref() {
691
691
  var l = function (p0) {
@@ -729,8 +729,8 @@ function parser(source) {
729
729
  noWhenBranchMatchedException();
730
730
  }
731
731
  }
732
- var this_1 = tmp.f24_1;
733
- var tmp_0 = this_1.jk_1.d24_1.hk();
732
+ var this_1 = tmp.k25_1;
733
+ var tmp_0 = this_1.jk_1.m25_1.hk();
734
734
  // Inline function 'kotlin.collections.flatMap' call
735
735
  // Inline function 'kotlin.collections.flatMapTo' call
736
736
  var this_2 = this_1.kk_1;
@@ -738,7 +738,7 @@ function parser(source) {
738
738
  var tmp0_iterator = this_2.g();
739
739
  while (tmp0_iterator.h()) {
740
740
  var element = tmp0_iterator.i();
741
- var list = element.d24_1;
741
+ var list = element.m25_1;
742
742
  addAll(destination, list);
743
743
  }
744
744
  var this_3 = tmp_0.ok(destination).nk();
@@ -127,10 +127,10 @@ function Shared_initEntries() {
127
127
  if (Shared_entriesInitialized)
128
128
  return Unit_instance;
129
129
  Shared_entriesInitialized = true;
130
- Shared_KOTLIN_instance = new Shared('KOTLIN', 0, KotlinShared_getInstance().z2a_1);
131
- Shared_JAVA_instance = new Shared('JAVA', 1, JavaShared_getInstance().m2b_1);
132
- Shared_TYPESCRIPT_instance = new Shared('TYPESCRIPT', 2, TypeScriptShared_getInstance().v2b_1);
133
- Shared_PYTHON_instance = new Shared('PYTHON', 3, PythonShared_instance.j2c_1);
130
+ Shared_KOTLIN_instance = new Shared('KOTLIN', 0, KotlinShared_getInstance().n2a_1);
131
+ Shared_JAVA_instance = new Shared('JAVA', 1, JavaShared_getInstance().c2b_1);
132
+ Shared_TYPESCRIPT_instance = new Shared('TYPESCRIPT', 2, TypeScriptShared_getInstance().l2b_1);
133
+ Shared_PYTHON_instance = new Shared('PYTHON', 3, PythonShared_instance.v2b_1);
134
134
  }
135
135
  function Shared(name, ordinal, source) {
136
136
  Enum.call(this, name, ordinal);
@@ -255,13 +255,13 @@ function convert(source, converters, strict) {
255
255
  var tmp;
256
256
  switch (converters.r2_1) {
257
257
  case 0:
258
- tmp = produce_1(OpenAPIV2Parser_instance.v2e(new ModuleContent('', source), strict));
258
+ tmp = produce_1(OpenAPIV2Parser_instance.l2e(new ModuleContent('', source), strict));
259
259
  break;
260
260
  case 1:
261
- tmp = produce_1(OpenAPIV3Parser_instance.v2e(new ModuleContent('', source), strict));
261
+ tmp = produce_1(OpenAPIV3Parser_instance.l2e(new ModuleContent('', source), strict));
262
262
  break;
263
263
  case 2:
264
- tmp = produce_1(AvroParser_instance.v2e(new ModuleContent('', source), strict));
264
+ tmp = produce_1(AvroParser_instance.l2e(new ModuleContent('', source), strict));
265
265
  break;
266
266
  default:
267
267
  noWhenBranchMatchedException();
@@ -318,19 +318,19 @@ function emit(ast, emitter, packageName, emitShared) {
318
318
  var tmp;
319
319
  switch (emitter.r2_1) {
320
320
  case 0:
321
- tmp = (new WirespecEmitter()).g24(element, get_noLogger());
321
+ tmp = (new WirespecEmitter()).b26(element, get_noLogger());
322
322
  break;
323
323
  case 1:
324
- tmp = (new TypeScriptEmitter()).g24(element, get_noLogger());
324
+ tmp = (new TypeScriptEmitter()).b26(element, get_noLogger());
325
325
  break;
326
326
  case 2:
327
- tmp = (new JavaEmitter(Companion_instance.a27(packageName), new EmitShared(emitShared))).g24(element, get_noLogger());
327
+ tmp = (new JavaEmitter(Companion_instance.s26(packageName), new EmitShared(emitShared))).b26(element, get_noLogger());
328
328
  break;
329
329
  case 3:
330
- tmp = (new KotlinEmitter(Companion_instance.a27(packageName), new EmitShared(emitShared))).g24(element, get_noLogger());
330
+ tmp = (new KotlinEmitter(Companion_instance.s26(packageName), new EmitShared(emitShared))).b26(element, get_noLogger());
331
331
  break;
332
332
  case 4:
333
- tmp = (new PythonEmitter(Companion_instance.a27(packageName), new EmitShared(emitShared))).g24(element, get_noLogger());
333
+ tmp = (new PythonEmitter(Companion_instance.s26(packageName), new EmitShared(emitShared))).b26(element, get_noLogger());
334
334
  break;
335
335
  case 5:
336
336
  // Inline function 'kotlin.collections.map' call
@@ -347,7 +347,7 @@ function emit(ast, emitter, packageName, emitShared) {
347
347
  var tmp0_iterator_0 = this_1.g();
348
348
  while (tmp0_iterator_0.h()) {
349
349
  var item_0 = tmp0_iterator_0.i();
350
- var tmp$ret$3 = tmp1_map_$receiver.c2f(item_0);
350
+ var tmp$ret$3 = tmp1_map_$receiver.q2e(item_0);
351
351
  destination_1.e(tmp$ret$3);
352
352
  }
353
353
 
@@ -389,7 +389,7 @@ function emit(ast, emitter, packageName, emitShared) {
389
389
  while (tmp0_iterator_3.h()) {
390
390
  var item_3 = tmp0_iterator_3.i();
391
391
  // Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>.<anonymous>' call
392
- var tmp$ret$11 = OpenAPIV3Emitter_getInstance().t2f(item_3, null);
392
+ var tmp$ret$11 = OpenAPIV3Emitter_getInstance().f2f(item_3, null);
393
393
  destination_4.e(tmp$ret$11);
394
394
  }
395
395
 
@@ -431,7 +431,7 @@ function emit(ast, emitter, packageName, emitShared) {
431
431
  while (tmp0_iterator_6.h()) {
432
432
  var item_6 = tmp0_iterator_6.i();
433
433
  // Inline function 'community.flock.wirespec.plugin.npm.emit.<anonymous>.<anonymous>' call
434
- var tmp$ret$19 = AvroEmitter_getInstance().w2d(item_6);
434
+ var tmp$ret$19 = AvroEmitter_getInstance().h2d(item_6);
435
435
  destination_7.e(tmp$ret$19);
436
436
  }
437
437
 
@@ -85,7 +85,7 @@ function generateReference(_this__u8e3s4, ref, random) {
85
85
  tmp = generateIterator(_this__u8e3s4, resolveReference(_this__u8e3s4, ref.o23_1), random);
86
86
  } else {
87
87
  if (ref instanceof Primitive) {
88
- var tmp1_subject = ref.l29_1;
88
+ var tmp1_subject = ref.a29_1;
89
89
  var tmp_0;
90
90
  if (tmp1_subject instanceof Integer) {
91
91
  // Inline function 'kotlin.let' call
@@ -152,9 +152,9 @@ function generateIterator(_this__u8e3s4, def, random) {
152
152
  function resolveReference(_this__u8e3s4, type) {
153
153
  // Inline function 'kotlin.collections.find' call
154
154
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
155
- var this_0 = _this__u8e3s4.f24_1;
155
+ var this_0 = _this__u8e3s4.k25_1;
156
156
  // Inline function 'community.flock.wirespec.generator.resolveReference.<anonymous>' call
157
- var tmp = this_0.jk_1.d24_1.hk();
157
+ var tmp = this_0.jk_1.m25_1.hk();
158
158
  // Inline function 'kotlin.collections.flatMap' call
159
159
  // Inline function 'kotlin.collections.flatMapTo' call
160
160
  var this_1 = this_0.kk_1;
@@ -163,7 +163,7 @@ function resolveReference(_this__u8e3s4, type) {
163
163
  while (tmp0_iterator.h()) {
164
164
  var element = tmp0_iterator.i();
165
165
  // Inline function 'community.flock.wirespec.generator.resolveReference.<anonymous>' call
166
- var list = element.d24_1;
166
+ var list = element.m25_1;
167
167
  addAll(destination, list);
168
168
  }
169
169
  var this_2 = tmp.ok(destination).nk();
@@ -174,7 +174,7 @@ function resolveReference(_this__u8e3s4, type) {
174
174
  while (tmp0_iterator_0.h()) {
175
175
  var element_0 = tmp0_iterator_0.i();
176
176
  // Inline function 'community.flock.wirespec.generator.resolveReference.<anonymous>' call
177
- if (element_0.m24().b1() === type.b1()) {
177
+ if (element_0.d26().b1() === type.b1()) {
178
178
  tmp$ret$6 = element_0;
179
179
  break $l$block;
180
180
  }
@@ -194,7 +194,7 @@ function resolveReference(_this__u8e3s4, type) {
194
194
  function defaultGenerator(random) {
195
195
  // Inline function 'kotlin.let' call
196
196
  // Inline function 'kotlin.contracts.contract' call
197
- var p0 = Companion_instance.m4e('\\w{1,50}').v4e(random);
197
+ var p0 = Companion_instance.x4d('\\w{1,50}').g4e(random);
198
198
  return JsonPrimitive_1(p0);
199
199
  }
200
200
  function generateObject(_this__u8e3s4, def, random) {
@@ -233,7 +233,7 @@ function generateType(_this__u8e3s4, def, random) {
233
233
  var typeSeed = random.ge();
234
234
  // Inline function 'kotlin.let' call
235
235
  // Inline function 'kotlin.collections.fold' call
236
- var this_0 = def.r25_1.u26_1;
236
+ var this_0 = def.i24_1.f24_1;
237
237
  var accumulator = emptyMap();
238
238
  var tmp0_iterator = this_0.g();
239
239
  while (tmp0_iterator.h()) {
@@ -243,7 +243,7 @@ function generateType(_this__u8e3s4, def, random) {
243
243
  // Inline function 'kotlin.let' call
244
244
  // Inline function 'kotlin.contracts.contract' call
245
245
  // Inline function 'community.flock.wirespec.generator.generateType.<anonymous>.<anonymous>.<anonymous>' call
246
- var value = element.v26_1.b1();
246
+ var value = element.l24_1.b1();
247
247
  // Inline function 'kotlin.text.sumOf' call
248
248
  var sum = 0;
249
249
  var inductionVariable = 0;
@@ -257,17 +257,17 @@ function generateType(_this__u8e3s4, def, random) {
257
257
  }
258
258
  var fieldSeed = typeSeed + sum | 0;
259
259
  var fieldRandom = Random(fieldSeed);
260
- accumulator = plus(acc, to(value, generateReference(_this__u8e3s4, element.w26_1, fieldRandom)));
260
+ accumulator = plus(acc, to(value, generateReference(_this__u8e3s4, element.m24_1, fieldRandom)));
261
261
  }
262
262
  // Inline function 'kotlin.contracts.contract' call
263
263
  var p0 = accumulator;
264
264
  return new JsonObject(p0);
265
265
  }
266
266
  function generateRefined(def, random) {
267
- var type = def.a25_1.l29_1;
267
+ var type = def.k26_1.a29_1;
268
268
  var tmp;
269
269
  if (type instanceof String_0) {
270
- var pattern = type.o28_1;
270
+ var pattern = type.d28_1;
271
271
  var tmp_0;
272
272
  var tmp_1 = pattern;
273
273
  if ((tmp_1 == null ? null : new RegExp_0(tmp_1))instanceof RegExp_0) {
@@ -296,12 +296,12 @@ function generateRefined(def, random) {
296
296
  } else {
297
297
  if (type instanceof Integer) {
298
298
  // Inline function 'kotlin.let' call
299
- var tmp0_safe_receiver = type.r28_1;
300
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m28_1;
299
+ var tmp0_safe_receiver = type.g28_1;
300
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b28_1;
301
301
  var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : toInt(tmp1_safe_receiver);
302
302
  var tmp_3 = tmp2_elvis_lhs == null ? 0 : tmp2_elvis_lhs;
303
- var tmp3_safe_receiver = type.r28_1;
304
- var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.n28_1;
303
+ var tmp3_safe_receiver = type.g28_1;
304
+ var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.c28_1;
305
305
  var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : toInt(tmp4_safe_receiver);
306
306
  // Inline function 'kotlin.contracts.contract' call
307
307
  var p0_1 = random.uf(tmp_3, tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs);
@@ -309,12 +309,12 @@ function generateRefined(def, random) {
309
309
  } else {
310
310
  if (type instanceof Number_0) {
311
311
  // Inline function 'kotlin.let' call
312
- var tmp6_safe_receiver = type.u28_1;
313
- var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.m28_1;
312
+ var tmp6_safe_receiver = type.j28_1;
313
+ var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.b28_1;
314
314
  var tmp8_elvis_lhs = tmp7_safe_receiver == null ? null : toDouble(tmp7_safe_receiver);
315
315
  var tmp_4 = tmp8_elvis_lhs == null ? 0.0 : tmp8_elvis_lhs;
316
- var tmp9_safe_receiver = type.u28_1;
317
- var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.n28_1;
316
+ var tmp9_safe_receiver = type.j28_1;
317
+ var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.c28_1;
318
318
  var tmp11_elvis_lhs = tmp10_safe_receiver == null ? null : toDouble(tmp10_safe_receiver);
319
319
  // Inline function 'kotlin.contracts.contract' call
320
320
  var p0_2 = random.xf(tmp_4, tmp11_elvis_lhs == null ? 0.0 : tmp11_elvis_lhs);
@@ -331,20 +331,20 @@ function generateRefined(def, random) {
331
331
  function generateEnum(def, random) {
332
332
  // Inline function 'kotlin.let' call
333
333
  // Inline function 'kotlin.let' call
334
- var this_0 = random.tf(def.e25_1.j());
334
+ var this_0 = random.tf(def.o26_1.j());
335
335
  // Inline function 'kotlin.contracts.contract' call
336
336
  // Inline function 'kotlin.contracts.contract' call
337
- var p0 = toList(def.e25_1).k(this_0);
337
+ var p0 = toList(def.o26_1).k(this_0);
338
338
  return JsonPrimitive_1(p0);
339
339
  }
340
340
  function generateUnion(_this__u8e3s4, def, random) {
341
341
  // Inline function 'kotlin.let' call
342
342
  // Inline function 'kotlin.let' call
343
- var this_0 = random.tf(def.w24_1.j());
343
+ var this_0 = random.tf(def.e24_1.j());
344
344
  // Inline function 'kotlin.contracts.contract' call
345
345
  // Inline function 'kotlin.contracts.contract' call
346
346
  // Inline function 'community.flock.wirespec.generator.generateUnion.<anonymous>' call
347
- var it = toList(def.w24_1).k(this_0);
347
+ var it = toList(def.e24_1).k(this_0);
348
348
  return generate_0(_this__u8e3s4, it, random);
349
349
  }
350
350
  function randomRegex(regex, random) {
@@ -353,7 +353,7 @@ function randomRegex(regex, random) {
353
353
  var endIndex = regex.length - 2 | 0;
354
354
  // Inline function 'kotlin.js.asDynamic' call
355
355
  var tmp$ret$1 = regex.substring(1, endIndex);
356
- return tmp.m4e(tmp$ret$1).v4e(random);
356
+ return tmp.x4d(tmp$ret$1).g4e(random);
357
357
  }
358
358
  //region block: exports
359
359
  export {