@flock/wirespec 0.9.2 → 0.9.4

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 (31) hide show
  1. package/arrow-arrow-atomic.js +15 -15
  2. package/arrow-arrow-continuations.js +3 -3
  3. package/arrow-arrow-core.js +87 -87
  4. package/clikt-clikt.js +1360 -1360
  5. package/colormath-root-colormath.js +403 -403
  6. package/kotlin-kotlin-stdlib.js +1616 -1477
  7. package/kotlin-kotlin-stdlib.js.map +1 -1
  8. package/kotlin-openapi-bindings.js +9251 -6889
  9. package/kotlin-openapi-bindings.js.map +1 -1
  10. package/kotlin-rgxgen.js +1867 -1867
  11. package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +2293 -1468
  12. package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
  13. package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1882 -1207
  14. package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
  15. package/markdown.js +1982 -1982
  16. package/mordant-mordant.js +1771 -1771
  17. package/package.json +1 -1
  18. package/wirespec-src-compiler-core.js +2125 -1935
  19. package/wirespec-src-compiler-core.js.map +1 -1
  20. package/wirespec-src-compiler-lib.js +714 -402
  21. package/wirespec-src-compiler-lib.js.map +1 -1
  22. package/wirespec-src-converter-openapi.js +1994 -777
  23. package/wirespec-src-converter-openapi.js.map +1 -1
  24. package/wirespec-src-generator.js +59 -59
  25. package/wirespec-src-generator.js.map +1 -1
  26. package/wirespec-src-plugin-arguments.js +101 -101
  27. package/wirespec-src-plugin-cli.js +187 -187
  28. package/wirespec-src-plugin-cli.js.map +1 -1
  29. package/wirespec-src-plugin-npm.d.ts +42 -4
  30. package/wirespec-src-plugin-npm.js +227 -17
  31. package/wirespec-src-plugin-npm.js.map +1 -1
@@ -1,8 +1,8 @@
1
1
  (function (root, factory) {
2
2
  if (typeof define === 'function' && define.amd)
3
- define(['exports', './wirespec-src-compiler-core.js', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-json-js-ir.js', './kotlin-openapi-bindings.js'], factory);
3
+ define(['exports', './wirespec-src-compiler-core.js', './kotlin-kotlin-stdlib.js', './kotlin-openapi-bindings.js', './kotlinx-serialization-kotlinx-serialization-json-js-ir.js'], factory);
4
4
  else if (typeof exports === 'object')
5
- factory(module.exports, require('./wirespec-src-compiler-core.js'), require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-json-js-ir.js'), require('./kotlin-openapi-bindings.js'));
5
+ factory(module.exports, require('./wirespec-src-compiler-core.js'), require('./kotlin-kotlin-stdlib.js'), require('./kotlin-openapi-bindings.js'), require('./kotlinx-serialization-kotlinx-serialization-json-js-ir.js'));
6
6
  else {
7
7
  if (typeof this['wirespec-src-compiler-core'] === 'undefined') {
8
8
  throw new Error("Error loading module 'wirespec-src-converter-openapi'. Its dependency 'wirespec-src-compiler-core' was not found. Please, check whether 'wirespec-src-compiler-core' is loaded prior to 'wirespec-src-converter-openapi'.");
@@ -10,141 +10,189 @@
10
10
  if (typeof this['kotlin-kotlin-stdlib'] === 'undefined') {
11
11
  throw new Error("Error loading module 'wirespec-src-converter-openapi'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'wirespec-src-converter-openapi'.");
12
12
  }
13
- if (typeof this['kotlinx-serialization-kotlinx-serialization-json-js-ir'] === 'undefined') {
14
- throw new Error("Error loading module 'wirespec-src-converter-openapi'. Its dependency 'kotlinx-serialization-kotlinx-serialization-json-js-ir' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-json-js-ir' is loaded prior to 'wirespec-src-converter-openapi'.");
15
- }
16
13
  if (typeof this['kotlin-openapi-bindings'] === 'undefined') {
17
14
  throw new Error("Error loading module 'wirespec-src-converter-openapi'. Its dependency 'kotlin-openapi-bindings' was not found. Please, check whether 'kotlin-openapi-bindings' is loaded prior to 'wirespec-src-converter-openapi'.");
18
15
  }
19
- root['wirespec-src-converter-openapi'] = factory(typeof this['wirespec-src-converter-openapi'] === 'undefined' ? {} : this['wirespec-src-converter-openapi'], this['wirespec-src-compiler-core'], this['kotlin-kotlin-stdlib'], this['kotlinx-serialization-kotlinx-serialization-json-js-ir'], this['kotlin-openapi-bindings']);
16
+ if (typeof this['kotlinx-serialization-kotlinx-serialization-json-js-ir'] === 'undefined') {
17
+ throw new Error("Error loading module 'wirespec-src-converter-openapi'. Its dependency 'kotlinx-serialization-kotlinx-serialization-json-js-ir' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-json-js-ir' is loaded prior to 'wirespec-src-converter-openapi'.");
18
+ }
19
+ root['wirespec-src-converter-openapi'] = factory(typeof this['wirespec-src-converter-openapi'] === 'undefined' ? {} : this['wirespec-src-converter-openapi'], this['wirespec-src-compiler-core'], this['kotlin-kotlin-stdlib'], this['kotlin-openapi-bindings'], this['kotlinx-serialization-kotlinx-serialization-json-js-ir']);
20
20
  }
21
- }(this, function (_, kotlin_community_flock_wirespec_compiler_core, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings) {
21
+ }(this, function (_, kotlin_community_flock_wirespec_compiler_core, kotlin_kotlin, kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json) {
22
22
  'use strict';
23
23
  //region block: imports
24
24
  var imul = Math.imul;
25
- var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.k1;
25
+ var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.s1;
26
26
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k;
27
- var split = kotlin_kotlin.$_$.tc;
28
- var addAll = kotlin_kotlin.$_$.o4;
29
- var VOID = kotlin_kotlin.$_$.hf;
30
- var joinToString = kotlin_kotlin.$_$.f6;
31
- var protoOf = kotlin_kotlin.$_$.da;
32
- var objectMeta = kotlin_kotlin.$_$.ca;
33
- var setMetadataFor = kotlin_kotlin.$_$.ea;
34
- var Unit_getInstance = kotlin_kotlin.$_$.x3;
35
- var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.k;
36
- var OpenAPI = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b;
37
- var plus = kotlin_kotlin.$_$.c7;
38
- var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w;
39
- var collectionSizeOrDefault = kotlin_kotlin.$_$.w4;
27
+ var split = kotlin_kotlin.$_$.ed;
28
+ var addAll = kotlin_kotlin.$_$.x4;
29
+ var VOID = kotlin_kotlin.$_$.vf;
30
+ var joinToString = kotlin_kotlin.$_$.p6;
31
+ var protoOf = kotlin_kotlin.$_$.oa;
32
+ var objectMeta = kotlin_kotlin.$_$.na;
33
+ var setMetadataFor = kotlin_kotlin.$_$.pa;
34
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.f5;
40
35
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.j;
41
- var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v;
42
- var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.u;
43
- var listOf = kotlin_kotlin.$_$.s6;
44
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.df;
45
- var NotImplementedError = kotlin_kotlin.$_$.de;
46
- var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h;
47
- var ReferenceObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e;
36
+ var firstOrNull = kotlin_kotlin.$_$.c6;
37
+ var Unit_getInstance = kotlin_kotlin.$_$.g4;
38
+ var distinct = kotlin_kotlin.$_$.u5;
39
+ var take = kotlin_kotlin.$_$.b8;
40
+ var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f1;
41
+ var ParameterObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e;
42
+ var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
43
+ var plus = kotlin_kotlin.$_$.n7;
44
+ var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g1;
45
+ var mapCapacity = kotlin_kotlin.$_$.e7;
46
+ var coerceAtLeast = kotlin_kotlin.$_$.za;
47
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.s;
48
+ var _StatusCode___init__impl__t1yi9q = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e2;
49
+ var StatusCode = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l;
50
+ var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.t;
51
+ var Type_ARRAY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j1;
52
+ var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k;
53
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.rf;
54
+ var ResponseObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j;
55
+ var to = kotlin_kotlin.$_$.uf;
56
+ var OperationObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d;
57
+ var ReferenceObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h;
58
+ var Type_STRING_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o1;
59
+ var Type_INTEGER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l1;
60
+ var Type_NUMBER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m1;
61
+ var Type_BOOLEAN_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k1;
62
+ var Type_OBJECT_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.n1;
63
+ var Any = kotlin_community_flock_wirespec_compiler_core.$_$.q;
64
+ var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.r;
65
+ var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.s;
66
+ var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.m;
67
+ var Param = kotlin_community_flock_wirespec_compiler_core.$_$.n;
68
+ var InfoObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b;
69
+ var listOf = kotlin_kotlin.$_$.c7;
70
+ var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.o;
71
+ var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.t;
72
+ var _Path___init__impl__6uf4pw = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.z1;
73
+ var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
74
+ var ParameterLocation_PATH_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h1;
75
+ var Method_GET_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.h1;
76
+ var Method_POST_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.l1;
77
+ var Method_PUT_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.m1;
78
+ var Method_DELETE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.g1;
79
+ var Method_PATCH_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.k1;
80
+ var Method_OPTIONS_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.j1;
81
+ var Method_TRACE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.n1;
82
+ var Method_HEAD_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.i1;
83
+ var PathItemObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f;
84
+ var toMap = kotlin_kotlin.$_$.i8;
85
+ var Refined = kotlin_community_flock_wirespec_compiler_core.$_$.w;
86
+ var Type = kotlin_community_flock_wirespec_compiler_core.$_$.y;
87
+ var plus_0 = kotlin_kotlin.$_$.j7;
88
+ var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.p;
89
+ var JsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.h;
90
+ var SwaggerObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m;
91
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l1;
92
+ var _Ref___init__impl__7qfl46 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c2;
93
+ var classMeta = kotlin_kotlin.$_$.j9;
94
+ var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.l;
95
+ var OpenAPI = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
96
+ var emptyList = kotlin_kotlin.$_$.x5;
97
+ var NotImplementedError = kotlin_kotlin.$_$.re;
48
98
  var Content = kotlin_community_flock_wirespec_compiler_core.$_$.i;
49
99
  var Request = kotlin_community_flock_wirespec_compiler_core.$_$.k;
50
- var emptyMap = kotlin_kotlin.$_$.p5;
51
- var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g1;
52
- var emptyList = kotlin_kotlin.$_$.o5;
100
+ var emptyMap = kotlin_kotlin.$_$.y5;
101
+ var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g2;
53
102
  var Response = kotlin_community_flock_wirespec_compiler_core.$_$.l;
54
103
  var HashSet_init_$Create$ = kotlin_kotlin.$_$.q;
55
- var to = kotlin_kotlin.$_$.gf;
56
- var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.o;
57
- var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t;
58
- var THROW_CCE = kotlin_kotlin.$_$.ie;
59
- var Map = kotlin_kotlin.$_$.j4;
60
- var isInterface = kotlin_kotlin.$_$.q9;
61
- var ParameterObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
62
- var Ref = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f;
63
- var toString = kotlin_kotlin.$_$.ia;
64
- var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l1;
104
+ var Companion_getInstance_0 = kotlin_community_flock_wirespec_compiler_core.$_$.t1;
105
+ var THROW_CCE = kotlin_kotlin.$_$.we;
106
+ var Map = kotlin_kotlin.$_$.s4;
107
+ var isInterface = kotlin_kotlin.$_$.ba;
108
+ var Ref = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i;
109
+ var toString = kotlin_kotlin.$_$.ta;
65
110
  var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
66
- var ResponseObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
67
111
  var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.x;
68
- var Type = kotlin_community_flock_wirespec_compiler_core.$_$.y;
69
- var ensureNotNull = kotlin_kotlin.$_$.xe;
70
- var toSet = kotlin_kotlin.$_$.a8;
71
- var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.p;
72
- var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.t;
73
- var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.u;
74
- var Any = kotlin_community_flock_wirespec_compiler_core.$_$.s;
112
+ var ensureNotNull = kotlin_kotlin.$_$.lf;
113
+ var toSet = kotlin_kotlin.$_$.l8;
75
114
  var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.j;
76
- var mapCapacity = kotlin_kotlin.$_$.u6;
77
- var coerceAtLeast = kotlin_kotlin.$_$.oa;
78
- var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.s;
79
- var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e1;
80
- var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.j1;
81
- var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.h1;
82
- var Type_Number_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.i1;
83
- var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.g1;
84
- var Companion_getInstance_0 = kotlin_community_flock_wirespec_compiler_core.$_$.l1;
85
- var Field = kotlin_community_flock_wirespec_compiler_core.$_$.w;
86
- var Type_ARRAY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.x;
87
- var equals = kotlin_kotlin.$_$.b9;
88
- var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d1;
89
- var drop = kotlin_kotlin.$_$.n5;
90
- var charSequenceLength = kotlin_kotlin.$_$.w8;
91
- var charSequenceGet = kotlin_kotlin.$_$.v8;
92
- var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.t1;
93
- var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.m;
94
- var Param = kotlin_community_flock_wirespec_compiler_core.$_$.n;
95
- var isBlank = kotlin_kotlin.$_$.yb;
96
- var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d;
97
- var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c1;
98
- var getStringHashCode = kotlin_kotlin.$_$.f9;
99
- var classMeta = kotlin_kotlin.$_$.y8;
100
- var StatusCode = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i;
101
- var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f1;
102
- var hashCode = kotlin_kotlin.$_$.g9;
103
- var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.v;
104
- var toMap = kotlin_kotlin.$_$.x7;
105
- var OpenAPI_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l;
106
- var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a1;
107
- var ParameterLocation_HEADER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.z;
108
- var ParameterLocation_COOKIE_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y;
109
- var _MediaType___get_value__impl__wy58mp = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h1;
110
- var SchemaObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s;
111
- var ReferenceObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o;
112
- var _StatusCode___get_value__impl__we50mu_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m1;
113
- var _Path___get_value__impl__thmflc_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j1;
114
- var ParameterObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m;
115
- var Ref_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.p;
116
- var HeaderObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k;
117
- var RequestBodyObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q;
118
- var ResponseObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r;
119
- var BooleanObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j;
120
- var checkIndexOverflow = kotlin_kotlin.$_$.v4;
115
+ var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d2;
116
+ var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.r1;
117
+ var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.p1;
118
+ var Type_Number_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.q1;
119
+ var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.o1;
120
+ var Field = kotlin_community_flock_wirespec_compiler_core.$_$.u;
121
+ var equals = kotlin_kotlin.$_$.m9;
122
+ var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b2;
123
+ var drop = kotlin_kotlin.$_$.w5;
124
+ var charSequenceLength = kotlin_kotlin.$_$.h9;
125
+ var charSequenceGet = kotlin_kotlin.$_$.g9;
126
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.u1;
127
+ var isBlank = kotlin_kotlin.$_$.jc;
128
+ var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a2;
129
+ var getStringHashCode = kotlin_kotlin.$_$.q9;
130
+ var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f2;
131
+ var hashCode = kotlin_kotlin.$_$.r9;
132
+ var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.h;
121
133
  var Union = kotlin_community_flock_wirespec_compiler_core.$_$.z;
122
- var _Ref___get_value__impl__kxavfe_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k1;
123
- var getOrNull = kotlin_kotlin.$_$.z5;
124
- var Type_ARRAY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b1;
125
- var Path_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.n;
126
- var Path__hashCode_impl_go73kd_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
127
- var StatusCode_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t;
128
- var StatusCode__hashCode_impl_fevhvx_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l1;
134
+ var ComponentsObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o;
135
+ var _Path___init__impl__6uf4pw_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j2;
136
+ var Path_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y;
137
+ var PathItemObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.x;
138
+ var Type_STRING_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y1;
139
+ var SchemaObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d1;
140
+ var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s1;
141
+ var ParameterLocation_HEADER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q1;
142
+ var Collection = kotlin_kotlin.$_$.k4;
143
+ var RequestBodyObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b1;
144
+ var _StatusCode___init__impl__t1yi9q_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o2;
145
+ var StatusCode_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e1;
146
+ var ResponseObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c1;
147
+ var OperationObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v;
148
+ var ParameterObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w;
149
+ var ParameterLocation_PATH_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r1;
150
+ var HeaderObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.p;
151
+ var _Ref___init__impl__7qfl46_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m2;
152
+ var ReferenceObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.z;
153
+ var Type_OBJECT_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.x1;
154
+ var Type_ARRAY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t1;
155
+ var Type_INTEGER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v1;
156
+ var Type_NUMBER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w1;
157
+ var Type_BOOLEAN_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.u1;
158
+ var _MediaType___init__impl__i9gzb9 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h2;
159
+ var MediaType = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s;
160
+ var MediaTypeObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r;
161
+ var InfoObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q;
162
+ var OpenAPIObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t;
163
+ var OpenAPI_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.u;
164
+ var ParameterLocation_COOKIE_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.p1;
165
+ var _MediaType___get_value__impl__wy58mp = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i2;
166
+ var _StatusCode___get_value__impl__we50mu_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q2;
167
+ var _Path___get_value__impl__thmflc_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l2;
168
+ var Ref_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a1;
169
+ var BooleanObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.n;
170
+ var checkIndexOverflow = kotlin_kotlin.$_$.e5;
171
+ var _Ref___get_value__impl__kxavfe_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.n2;
172
+ var getOrNull = kotlin_kotlin.$_$.i6;
173
+ var Path__hashCode_impl_go73kd_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k2;
174
+ var StatusCode__hashCode_impl_fevhvx_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.p2;
129
175
  //endregion
130
176
  //region block: pre-declaration
131
177
  setMetadataFor(Common, 'Common', objectMeta);
178
+ setMetadataFor(OpenApiV2Emitter, 'OpenApiV2Emitter', classMeta);
132
179
  setMetadataFor(Companion, 'Companion', objectMeta);
133
180
  setMetadataFor(FlattenRequest, 'FlattenRequest', classMeta);
134
181
  setMetadataFor(FlattenResponse, 'FlattenResponse', classMeta);
135
- setMetadataFor(OpenApiParser, 'OpenApiParser', classMeta);
182
+ setMetadataFor(OpenApiV2Parser, 'OpenApiV2Parser', classMeta);
183
+ setMetadataFor(OpenApiV3Emitter, 'OpenApiV3Emitter', classMeta);
136
184
  setMetadataFor(Companion_0, 'Companion', objectMeta);
137
185
  setMetadataFor(FlattenRequest_0, 'FlattenRequest', classMeta);
138
186
  setMetadataFor(FlattenResponse_0, 'FlattenResponse', classMeta);
139
- setMetadataFor(OpenApiParser_0, 'OpenApiParser', classMeta);
187
+ setMetadataFor(OpenApiV3Parser, 'OpenApiV3Parser', classMeta);
140
188
  //endregion
141
189
  function Common$className$lambda(it) {
142
- return Companion_getInstance().n1s(it);
190
+ return Companion_getInstance().z20(it);
143
191
  }
144
192
  function Common() {
145
193
  Common_instance = this;
146
194
  }
147
- protoOf(Common).q22 = function (arg) {
195
+ protoOf(Common).m2b = function (arg) {
148
196
  // Inline function 'kotlin.collections.flatMap' call
149
197
  // Inline function 'kotlin.collections.flatMapTo' call
150
198
  var tmp0_flatMapTo = ArrayList_init_$Create$();
@@ -166,26 +214,576 @@
166
214
  new Common();
167
215
  return Common_instance;
168
216
  }
169
- function OpenApiParser$Companion$parse$lambda($ignoreUnknown) {
217
+ function emit(_this__u8e3s4, $this, method) {
218
+ // Inline function 'kotlin.collections.map' call
219
+ // Inline function 'kotlin.collections.filter' call
220
+ // Inline function 'kotlin.collections.filterTo' call
221
+ var tmp0_filterTo = ArrayList_init_$Create$();
222
+ var tmp0_iterator = _this__u8e3s4.v();
223
+ while (tmp0_iterator.w()) {
224
+ var element = tmp0_iterator.y();
225
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
226
+ if (element.y27_1.equals(method)) {
227
+ tmp0_filterTo.s(element);
228
+ }
229
+ }
230
+ // Inline function 'kotlin.collections.mapTo' call
231
+ var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_filterTo, 10));
232
+ var tmp0_iterator_0 = tmp0_filterTo.v();
233
+ while (tmp0_iterator_0.w()) {
234
+ var item = tmp0_iterator_0.y();
235
+ var tmp$ret$3;
236
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
237
+ tmp$ret$3 = emit_0(item, $this);
238
+ tmp0_mapTo.s(tmp$ret$3);
239
+ }
240
+ return firstOrNull(tmp0_mapTo);
241
+ }
242
+ function emit_0(_this__u8e3s4, $this) {
243
+ // Inline function 'kotlin.collections.ifEmpty' call
244
+ // Inline function 'kotlin.collections.mapNotNull' call
245
+ var tmp0_mapNotNull = _this__u8e3s4.d28_1;
246
+ // Inline function 'kotlin.collections.mapNotNullTo' call
247
+ var tmp0_mapNotNullTo = ArrayList_init_$Create$();
248
+ // Inline function 'kotlin.collections.forEach' call
249
+ var tmp0_iterator = tmp0_mapNotNull.v();
250
+ while (tmp0_iterator.w()) {
251
+ var element = tmp0_iterator.y();
252
+ // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
253
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
254
+ var tmp0_safe_receiver = element.p27_1;
255
+ var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t27_1;
256
+ if (tmp0_safe_receiver_0 == null)
257
+ null;
258
+ else {
259
+ // Inline function 'kotlin.let' call
260
+ // Inline function 'kotlin.contracts.contract' call
261
+ tmp0_mapNotNullTo.s(tmp0_safe_receiver_0);
262
+ }
263
+ }
264
+ var tmp1_ifEmpty = distinct(tmp0_mapNotNullTo);
265
+ var tmp;
266
+ if (tmp1_ifEmpty.c1()) {
267
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
268
+ tmp = null;
269
+ } else {
270
+ tmp = tmp1_ifEmpty;
271
+ }
272
+ var tmp_0 = tmp;
273
+ // Inline function 'kotlin.collections.ifEmpty' call
274
+ // Inline function 'kotlin.collections.mapNotNull' call
275
+ var tmp2_mapNotNull = _this__u8e3s4.e28_1;
276
+ // Inline function 'kotlin.collections.mapNotNullTo' call
277
+ var tmp0_mapNotNullTo_0 = ArrayList_init_$Create$();
278
+ // Inline function 'kotlin.collections.forEach' call
279
+ var tmp0_iterator_0 = tmp2_mapNotNull.v();
280
+ while (tmp0_iterator_0.w()) {
281
+ var element_0 = tmp0_iterator_0.y();
282
+ // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
283
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
284
+ var tmp0_safe_receiver_1 = element_0.s27_1;
285
+ var tmp0_safe_receiver_2 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.t27_1;
286
+ if (tmp0_safe_receiver_2 == null)
287
+ null;
288
+ else {
289
+ // Inline function 'kotlin.let' call
290
+ // Inline function 'kotlin.contracts.contract' call
291
+ tmp0_mapNotNullTo_0.s(tmp0_safe_receiver_2);
292
+ }
293
+ }
294
+ var tmp3_ifEmpty = distinct(tmp0_mapNotNullTo_0);
295
+ var tmp_1;
296
+ if (tmp3_ifEmpty.c1()) {
297
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
298
+ tmp_1 = null;
299
+ } else {
300
+ tmp_1 = tmp3_ifEmpty;
301
+ }
302
+ var tmp_2 = tmp_1;
303
+ // Inline function 'kotlin.collections.map' call
304
+ // Inline function 'kotlin.collections.mapNotNull' call
305
+ var tmp4_mapNotNull = _this__u8e3s4.d28_1;
306
+ // Inline function 'kotlin.collections.mapNotNullTo' call
307
+ var tmp0_mapNotNullTo_1 = ArrayList_init_$Create$();
308
+ // Inline function 'kotlin.collections.forEach' call
309
+ var tmp0_iterator_1 = tmp4_mapNotNull.v();
310
+ while (tmp0_iterator_1.w()) {
311
+ var element_1 = tmp0_iterator_1.y();
312
+ // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
313
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
314
+ var tmp0_safe_receiver_3 = element_1.p27_1;
315
+ if (tmp0_safe_receiver_3 == null)
316
+ null;
317
+ else {
318
+ // Inline function 'kotlin.let' call
319
+ // Inline function 'kotlin.contracts.contract' call
320
+ tmp0_mapNotNullTo_1.s(tmp0_safe_receiver_3);
321
+ }
322
+ }
323
+ var tmp5_map = take(tmp0_mapNotNullTo_1, 1);
324
+ // Inline function 'kotlin.collections.mapTo' call
325
+ var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp5_map, 10));
326
+ var tmp0_iterator_2 = tmp5_map.v();
327
+ while (tmp0_iterator_2.w()) {
328
+ var item = tmp0_iterator_2.y();
329
+ var tmp$ret$16;
330
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
331
+ var tmp0_in = ParameterLocation_BODY_getInstance();
332
+ var tmp1_schema = $this.y26(item.u27_1);
333
+ var tmp2_required = !item.v27_1;
334
+ tmp$ret$16 = new ParameterObject('RequestBody', tmp0_in, VOID, tmp2_required, tmp1_schema);
335
+ tmp0_mapTo.s(tmp$ret$16);
336
+ }
337
+ var tmp_3 = tmp0_mapTo;
338
+ // Inline function 'kotlin.collections.map' call
339
+ var tmp6_map = _this__u8e3s4.a28_1;
340
+ // Inline function 'kotlin.collections.mapTo' call
341
+ var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp6_map, 10));
342
+ var tmp0_iterator_3 = tmp6_map.v();
343
+ while (tmp0_iterator_3.w()) {
344
+ var item_0 = tmp0_iterator_3.y();
345
+ var tmp$ret$19;
346
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
347
+ tmp$ret$19 = emitParameter(item_0, $this, ParameterLocation_QUERY_getInstance());
348
+ tmp0_mapTo_0.s(tmp$ret$19);
349
+ }
350
+ var tmp_4 = plus(tmp_3, tmp0_mapTo_0);
351
+ // Inline function 'kotlin.collections.map' call
352
+ var tmp7_map = _this__u8e3s4.b28_1;
353
+ // Inline function 'kotlin.collections.mapTo' call
354
+ var tmp0_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp7_map, 10));
355
+ var tmp0_iterator_4 = tmp7_map.v();
356
+ while (tmp0_iterator_4.w()) {
357
+ var item_1 = tmp0_iterator_4.y();
358
+ var tmp$ret$22;
359
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
360
+ tmp$ret$22 = emitParameter(item_1, $this, ParameterLocation_HEADER_getInstance());
361
+ tmp0_mapTo_1.s(tmp$ret$22);
362
+ }
363
+ var tmp_5 = plus(tmp_4, tmp0_mapTo_1);
364
+ // Inline function 'kotlin.collections.associate' call
365
+ var tmp8_associate = _this__u8e3s4.e28_1;
366
+ var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(tmp8_associate, 10)), 16);
367
+ // Inline function 'kotlin.collections.associateTo' call
368
+ var tmp0_associateTo = LinkedHashMap_init_$Create$(capacity);
369
+ var tmp0_iterator_5 = tmp8_associate.v();
370
+ while (tmp0_iterator_5.w()) {
371
+ var element_2 = tmp0_iterator_5.y();
372
+ // Inline function 'kotlin.collections.plusAssign' call
373
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
374
+ var tmp_6 = new StatusCode(_StatusCode___init__impl__t1yi9q(element_2.q27_1));
375
+ var tmp_7 = '' + _this__u8e3s4.x27_1 + ' ' + element_2.q27_1 + ' response';
376
+ var tmp0_safe_receiver_4 = element_2.s27_1;
377
+ var tmp_8;
378
+ if (tmp0_safe_receiver_4 == null) {
379
+ tmp_8 = null;
380
+ } else {
381
+ // Inline function 'kotlin.takeIf' call
382
+ // Inline function 'kotlin.contracts.contract' call
383
+ var tmp_9;
384
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
385
+ var tmp_10 = tmp0_safe_receiver_4.u27_1;
386
+ if (!(tmp_10 instanceof Unit)) {
387
+ tmp_9 = tmp0_safe_receiver_4;
388
+ } else {
389
+ tmp_9 = null;
390
+ }
391
+ tmp_8 = tmp_9;
392
+ }
393
+ var tmp1_safe_receiver = tmp_8;
394
+ var tmp_11;
395
+ if (tmp1_safe_receiver == null) {
396
+ tmp_11 = null;
397
+ } else {
398
+ // Inline function 'kotlin.let' call
399
+ // Inline function 'kotlin.contracts.contract' call
400
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
401
+ var tmp_12;
402
+ switch (tmp1_safe_receiver.u27_1.s20()) {
403
+ case false:
404
+ tmp_12 = $this.y26(tmp1_safe_receiver.u27_1);
405
+ break;
406
+ case true:
407
+ tmp_12 = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), $this.y26(tmp1_safe_receiver.u27_1));
408
+ break;
409
+ default:
410
+ noWhenBranchMatchedException();
411
+ break;
412
+ }
413
+ tmp_11 = tmp_12;
414
+ }
415
+ var tmp0_plusAssign = to(tmp_6, new ResponseObject(tmp_7, tmp_11));
416
+ tmp0_associateTo.l2(tmp0_plusAssign.sd_1, tmp0_plusAssign.td_1);
417
+ }
418
+ var operationObject = new OperationObject(VOID, VOID, VOID, VOID, _this__u8e3s4.x27_1.z26_1, tmp_0, tmp_2, tmp_5, tmp0_associateTo);
419
+ return operationObject;
420
+ }
421
+ function emitSegment(_this__u8e3s4, $this) {
422
+ return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenApiV2Emitter$emitSegment$lambda);
423
+ }
424
+ function emitParameter(_this__u8e3s4, $this, location) {
425
+ var tmp1_name = _this__u8e3s4.v26_1.z26_1;
426
+ var tmp2_type = emitType_0(_this__u8e3s4.w26_1, $this);
427
+ var tmp;
428
+ switch (_this__u8e3s4.w26_1.s20()) {
429
+ case true:
430
+ var emit = $this.y26(_this__u8e3s4.w26_1);
431
+ var tmp_0;
432
+ if (emit instanceof ReferenceObject) {
433
+ tmp_0 = emit;
434
+ } else {
435
+ if (emit instanceof SchemaObject) {
436
+ tmp_0 = emit.u1j_1;
437
+ } else {
438
+ noWhenBranchMatchedException();
439
+ }
440
+ }
441
+
442
+ tmp = tmp_0;
443
+ break;
444
+ case false:
445
+ tmp = null;
446
+ break;
447
+ default:
448
+ noWhenBranchMatchedException();
449
+ break;
450
+ }
451
+ var tmp3_items = tmp;
452
+ var tmp4_required = !_this__u8e3s4.x26_1;
453
+ return new ParameterObject(tmp1_name, location, VOID, tmp4_required, VOID, tmp2_type, tmp3_items);
454
+ }
455
+ function emitType(_this__u8e3s4, $this) {
456
+ var tmp;
457
+ switch (_this__u8e3s4.d9_1) {
458
+ case 0:
459
+ tmp = Type_STRING_getInstance();
460
+ break;
461
+ case 1:
462
+ tmp = Type_INTEGER_getInstance();
463
+ break;
464
+ case 2:
465
+ tmp = Type_NUMBER_getInstance();
466
+ break;
467
+ case 3:
468
+ tmp = Type_BOOLEAN_getInstance();
469
+ break;
470
+ default:
471
+ noWhenBranchMatchedException();
472
+ break;
473
+ }
474
+ return tmp;
475
+ }
476
+ function emitType_0(_this__u8e3s4, $this) {
477
+ var tmp;
478
+ if (_this__u8e3s4.s20()) {
479
+ tmp = Type_ARRAY_getInstance();
480
+ } else {
481
+ var tmp_0;
482
+ if (_this__u8e3s4 instanceof Primitive) {
483
+ tmp_0 = emitType(_this__u8e3s4.a27_1, $this);
484
+ } else {
485
+ if (_this__u8e3s4 instanceof Custom) {
486
+ tmp_0 = Type_OBJECT_getInstance();
487
+ } else {
488
+ if (_this__u8e3s4 instanceof Any) {
489
+ tmp_0 = Type_OBJECT_getInstance();
490
+ } else {
491
+ if (_this__u8e3s4 instanceof Unit) {
492
+ tmp_0 = Type_OBJECT_getInstance();
493
+ } else {
494
+ noWhenBranchMatchedException();
495
+ }
496
+ }
497
+ }
498
+ }
499
+ tmp = tmp_0;
500
+ }
501
+ return tmp;
502
+ }
503
+ function OpenApiV2Emitter$emitSegment$lambda(it) {
504
+ var tmp;
505
+ if (it instanceof Param) {
506
+ tmp = '{' + it.j27_1.z26_1 + '}';
507
+ } else {
508
+ if (it instanceof Literal) {
509
+ tmp = it.o27_1;
510
+ } else {
511
+ noWhenBranchMatchedException();
512
+ }
513
+ }
514
+ return tmp;
515
+ }
516
+ function OpenApiV2Emitter() {
517
+ }
518
+ protoOf(OpenApiV2Emitter).c20 = function (ast) {
519
+ var tmp = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, '0.0.0');
520
+ var tmp_0 = listOf('application/json');
521
+ var tmp_1 = listOf('application/json');
522
+ // Inline function 'kotlin.collections.map' call
523
+ // Inline function 'kotlin.collections.groupBy' call
524
+ // Inline function 'kotlin.collections.filterIsInstance' call
525
+ // Inline function 'kotlin.collections.filterIsInstanceTo' call
526
+ var tmp0_filterIsInstanceTo = ArrayList_init_$Create$();
527
+ var tmp0_iterator = ast.v();
528
+ while (tmp0_iterator.w()) {
529
+ var element = tmp0_iterator.y();
530
+ if (element instanceof Endpoint) {
531
+ tmp0_filterIsInstanceTo.s(element);
532
+ }
533
+ }
534
+ // Inline function 'kotlin.collections.groupByTo' call
535
+ var tmp0_groupByTo = LinkedHashMap_init_$Create$_0();
536
+ var tmp0_iterator_0 = tmp0_filterIsInstanceTo.v();
537
+ while (tmp0_iterator_0.w()) {
538
+ var element_0 = tmp0_iterator_0.y();
539
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
540
+ var key = element_0.z27_1;
541
+ // Inline function 'kotlin.collections.getOrPut' call
542
+ var value = tmp0_groupByTo.u2(key);
543
+ var tmp_2;
544
+ if (value == null) {
545
+ // Inline function 'kotlin.collections.groupByTo.<anonymous>' call
546
+ var answer = ArrayList_init_$Create$();
547
+ tmp0_groupByTo.l2(key, answer);
548
+ tmp_2 = answer;
549
+ } else {
550
+ tmp_2 = value;
551
+ }
552
+ var list = tmp_2;
553
+ list.s(element_0);
554
+ }
555
+ // Inline function 'kotlin.collections.mapTo' call
556
+ var tmp0_mapTo = ArrayList_init_$Create$_0(tmp0_groupByTo.n());
557
+ // Inline function 'kotlin.collections.iterator' call
558
+ var tmp0_iterator_1 = tmp0_groupByTo.n2().v();
559
+ while (tmp0_iterator_1.w()) {
560
+ var item = tmp0_iterator_1.y();
561
+ var tmp$ret$15;
562
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
563
+ // Inline function 'kotlin.collections.component1' call
564
+ var segments = item.o2();
565
+ // Inline function 'kotlin.collections.component2' call
566
+ var endpoints = item.p2();
567
+ var tmp_3 = new Path(_Path___init__impl__6uf4pw(emitSegment(segments, this)));
568
+ // Inline function 'kotlin.collections.map' call
569
+ // Inline function 'kotlin.collections.filterIsInstance' call
570
+ // Inline function 'kotlin.collections.filterIsInstanceTo' call
571
+ var tmp0_filterIsInstanceTo_0 = ArrayList_init_$Create$();
572
+ var tmp0_iterator_2 = segments.v();
573
+ while (tmp0_iterator_2.w()) {
574
+ var element_1 = tmp0_iterator_2.y();
575
+ if (element_1 instanceof Param) {
576
+ tmp0_filterIsInstanceTo_0.s(element_1);
577
+ }
578
+ }
579
+ // Inline function 'kotlin.collections.mapTo' call
580
+ var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_filterIsInstanceTo_0, 10));
581
+ var tmp0_iterator_3 = tmp0_filterIsInstanceTo_0.v();
582
+ while (tmp0_iterator_3.w()) {
583
+ var item_0 = tmp0_iterator_3.y();
584
+ var tmp$ret$12;
585
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
586
+ var tmp0_in = ParameterLocation_PATH_getInstance();
587
+ var tmp1_name = item_0.j27_1.z26_1;
588
+ var tmp2_type = emitType_0(item_0.k27_1, this);
589
+ tmp$ret$12 = new ParameterObject(tmp1_name, tmp0_in, VOID, VOID, VOID, tmp2_type);
590
+ tmp0_mapTo_0.s(tmp$ret$12);
591
+ }
592
+ var tmp1_get = emit(endpoints, this, Method_GET_getInstance());
593
+ var tmp2_post = emit(endpoints, this, Method_POST_getInstance());
594
+ var tmp3_put = emit(endpoints, this, Method_PUT_getInstance());
595
+ var tmp4_delete = emit(endpoints, this, Method_DELETE_getInstance());
596
+ var tmp5_patch = emit(endpoints, this, Method_PATCH_getInstance());
597
+ var tmp6_options = emit(endpoints, this, Method_OPTIONS_getInstance());
598
+ var tmp7_trace = emit(endpoints, this, Method_TRACE_getInstance());
599
+ var tmp8_head = emit(endpoints, this, Method_HEAD_getInstance());
600
+ tmp$ret$15 = to(tmp_3, new PathItemObject(VOID, VOID, VOID, tmp1_get, tmp3_put, tmp2_post, tmp4_delete, tmp6_options, tmp8_head, tmp5_patch, tmp7_trace, VOID, tmp0_mapTo_0));
601
+ tmp0_mapTo.s(tmp$ret$15);
602
+ }
603
+ var tmp_4 = toMap(tmp0_mapTo);
604
+ // Inline function 'kotlin.collections.associate' call
605
+ // Inline function 'kotlin.collections.filterIsInstance' call
606
+ // Inline function 'kotlin.collections.filterIsInstanceTo' call
607
+ var tmp0_filterIsInstanceTo_1 = ArrayList_init_$Create$();
608
+ var tmp0_iterator_4 = ast.v();
609
+ while (tmp0_iterator_4.w()) {
610
+ var element_2 = tmp0_iterator_4.y();
611
+ if (element_2 instanceof Refined) {
612
+ tmp0_filterIsInstanceTo_1.s(element_2);
613
+ }
614
+ }
615
+ var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(tmp0_filterIsInstanceTo_1, 10)), 16);
616
+ // Inline function 'kotlin.collections.associateTo' call
617
+ var tmp0_associateTo = LinkedHashMap_init_$Create$(capacity);
618
+ var tmp0_iterator_5 = tmp0_filterIsInstanceTo_1.v();
619
+ while (tmp0_iterator_5.w()) {
620
+ var element_3 = tmp0_iterator_5.y();
621
+ // Inline function 'kotlin.collections.plusAssign' call
622
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
623
+ var tmp0_type = Type_STRING_getInstance();
624
+ var tmp1_pattern = element_3.g27_1.i27_1;
625
+ var tmp0_plusAssign = to(element_3.f27_1.z26_1, new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_pattern, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_type));
626
+ tmp0_associateTo.l2(tmp0_plusAssign.sd_1, tmp0_plusAssign.td_1);
627
+ }
628
+ var tmp_5 = tmp0_associateTo;
629
+ // Inline function 'kotlin.collections.associate' call
630
+ // Inline function 'kotlin.collections.filterIsInstance' call
631
+ // Inline function 'kotlin.collections.filterIsInstanceTo' call
632
+ var tmp0_filterIsInstanceTo_2 = ArrayList_init_$Create$();
633
+ var tmp0_iterator_6 = ast.v();
634
+ while (tmp0_iterator_6.w()) {
635
+ var element_4 = tmp0_iterator_6.y();
636
+ if (element_4 instanceof Type) {
637
+ tmp0_filterIsInstanceTo_2.s(element_4);
638
+ }
639
+ }
640
+ var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(tmp0_filterIsInstanceTo_2, 10)), 16);
641
+ // Inline function 'kotlin.collections.associateTo' call
642
+ var tmp0_associateTo_0 = LinkedHashMap_init_$Create$(capacity_0);
643
+ var tmp0_iterator_7 = tmp0_filterIsInstanceTo_2.v();
644
+ while (tmp0_iterator_7.w()) {
645
+ var element_5 = tmp0_iterator_7.y();
646
+ // Inline function 'kotlin.collections.plusAssign' call
647
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
648
+ // Inline function 'kotlin.collections.associate' call
649
+ var tmp0_associate = element_5.s26_1.u26_1;
650
+ var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(tmp0_associate, 10)), 16);
651
+ // Inline function 'kotlin.collections.associateTo' call
652
+ var tmp0_associateTo_1 = LinkedHashMap_init_$Create$(capacity_1);
653
+ var tmp0_iterator_8 = tmp0_associate.v();
654
+ while (tmp0_iterator_8.w()) {
655
+ var element_6 = tmp0_iterator_8.y();
656
+ // Inline function 'kotlin.collections.plusAssign' call
657
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
658
+ var tmp0_plusAssign_0 = this.m26(element_6);
659
+ tmp0_associateTo_1.l2(tmp0_plusAssign_0.sd_1, tmp0_plusAssign_0.td_1);
660
+ }
661
+ // Inline function 'kotlin.takeIf' call
662
+ // Inline function 'kotlin.collections.map' call
663
+ // Inline function 'kotlin.collections.filter' call
664
+ var tmp1_filter = element_5.s26_1.u26_1;
665
+ // Inline function 'kotlin.collections.filterTo' call
666
+ var tmp0_filterTo = ArrayList_init_$Create$();
667
+ var tmp0_iterator_9 = tmp1_filter.v();
668
+ while (tmp0_iterator_9.w()) {
669
+ var element_7 = tmp0_iterator_9.y();
670
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
671
+ if (!element_7.x26_1) {
672
+ tmp0_filterTo.s(element_7);
673
+ }
674
+ }
675
+ // Inline function 'kotlin.collections.mapTo' call
676
+ var tmp0_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_filterTo, 10));
677
+ var tmp0_iterator_10 = tmp0_filterTo.v();
678
+ while (tmp0_iterator_10.w()) {
679
+ var item_1 = tmp0_iterator_10.y();
680
+ var tmp$ret$31;
681
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
682
+ tmp$ret$31 = item_1.v26_1.z26_1;
683
+ tmp0_mapTo_1.s(tmp$ret$31);
684
+ }
685
+ // Inline function 'kotlin.contracts.contract' call
686
+ var tmp_6;
687
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
688
+ // Inline function 'kotlin.collections.isNotEmpty' call
689
+ if (!tmp0_mapTo_1.c1()) {
690
+ tmp_6 = tmp0_mapTo_1;
691
+ } else {
692
+ tmp_6 = null;
693
+ }
694
+ var tmp1_required = tmp_6;
695
+ var tmp0_plusAssign_1 = to(element_5.r26_1.z26_1, new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_required, VOID, VOID, VOID, VOID, tmp0_associateTo_1));
696
+ tmp0_associateTo_0.l2(tmp0_plusAssign_1.sd_1, tmp0_plusAssign_1.td_1);
697
+ }
698
+ var tmp_7 = plus_0(tmp_5, tmp0_associateTo_0);
699
+ // Inline function 'kotlin.collections.associate' call
700
+ // Inline function 'kotlin.collections.filterIsInstance' call
701
+ // Inline function 'kotlin.collections.filterIsInstanceTo' call
702
+ var tmp0_filterIsInstanceTo_3 = ArrayList_init_$Create$();
703
+ var tmp0_iterator_11 = ast.v();
704
+ while (tmp0_iterator_11.w()) {
705
+ var element_8 = tmp0_iterator_11.y();
706
+ if (element_8 instanceof Enum) {
707
+ tmp0_filterIsInstanceTo_3.s(element_8);
708
+ }
709
+ }
710
+ var capacity_2 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(tmp0_filterIsInstanceTo_3, 10)), 16);
711
+ // Inline function 'kotlin.collections.associateTo' call
712
+ var tmp0_associateTo_2 = LinkedHashMap_init_$Create$(capacity_2);
713
+ var tmp0_iterator_12 = tmp0_filterIsInstanceTo_3.v();
714
+ while (tmp0_iterator_12.w()) {
715
+ var element_9 = tmp0_iterator_12.y();
716
+ // Inline function 'kotlin.collections.plusAssign' call
717
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
718
+ var tmp0_type_0 = Type_STRING_getInstance();
719
+ // Inline function 'kotlin.collections.map' call
720
+ var tmp0_map = element_9.p26_1;
721
+ // Inline function 'kotlin.collections.mapTo' call
722
+ var tmp0_mapTo_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
723
+ var tmp0_iterator_13 = tmp0_map.v();
724
+ while (tmp0_iterator_13.w()) {
725
+ var item_2 = tmp0_iterator_13.y();
726
+ var tmp$ret$42;
727
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
728
+ tmp$ret$42 = JsonPrimitive(item_2);
729
+ tmp0_mapTo_2.s(tmp$ret$42);
730
+ }
731
+ var tmp0_plusAssign_2 = to(element_9.o26_1.z26_1, new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_mapTo_2, tmp0_type_0));
732
+ tmp0_associateTo_2.l2(tmp0_plusAssign_2.sd_1, tmp0_plusAssign_2.td_1);
733
+ }
734
+ return new SwaggerObject('2.0', tmp, VOID, VOID, VOID, tmp_0, tmp_1, tmp_4, plus_0(tmp_7, tmp0_associateTo_2));
735
+ };
736
+ protoOf(OpenApiV2Emitter).m26 = function (_this__u8e3s4) {
737
+ return to(_this__u8e3s4.v26_1.z26_1, this.y26(_this__u8e3s4.w26_1));
738
+ };
739
+ protoOf(OpenApiV2Emitter).y26 = function (_this__u8e3s4) {
740
+ var tmp;
741
+ if (_this__u8e3s4 instanceof Custom) {
742
+ tmp = new ReferenceObject(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.p2()));
743
+ } else {
744
+ if (_this__u8e3s4 instanceof Primitive) {
745
+ tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType(_this__u8e3s4.a27_1, this));
746
+ } else {
747
+ if (_this__u8e3s4 instanceof Any) {
748
+ throw IllegalStateException_init_$Create$('Cannot map Any');
749
+ } else {
750
+ if (_this__u8e3s4 instanceof Unit) {
751
+ throw IllegalStateException_init_$Create$('Cannot map Unit');
752
+ } else {
753
+ noWhenBranchMatchedException();
754
+ }
755
+ }
756
+ }
757
+ }
758
+ var ref = tmp;
759
+ var tmp_0;
760
+ if (_this__u8e3s4.s20()) {
761
+ tmp_0 = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), ref);
762
+ } else {
763
+ tmp_0 = ref;
764
+ }
765
+ return tmp_0;
766
+ };
767
+ function OpenApiV2Parser$Companion$parse$lambda($ignoreUnknown) {
170
768
  return function ($this$Json) {
171
- $this$Json.pz_1 = true;
172
- $this$Json.mz_1 = $ignoreUnknown;
769
+ $this$Json.m13_1 = true;
770
+ $this$Json.j13_1 = $ignoreUnknown;
173
771
  return Unit_getInstance();
174
772
  };
175
773
  }
176
774
  function Companion() {
177
775
  Companion_instance = this;
178
776
  }
179
- protoOf(Companion).r22 = function (json, ignoreUnknown) {
777
+ protoOf(Companion).n2b = function (json, ignoreUnknown) {
180
778
  // Inline function 'kotlin.let' call
181
- var tmp0_let = (new OpenAPI(Json(VOID, OpenApiParser$Companion$parse$lambda(ignoreUnknown)))).i17(json);
779
+ var tmp0_let = (new OpenAPI(Json(VOID, OpenApiV2Parser$Companion$parse$lambda(ignoreUnknown)))).x1c(json);
182
780
  // Inline function 'kotlin.contracts.contract' call
183
781
  // Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
184
- return (new OpenApiParser(tmp0_let)).t22();
782
+ return (new OpenApiV2Parser(tmp0_let)).p2b();
185
783
  };
186
- protoOf(Companion).u22 = function (json, ignoreUnknown, $super) {
784
+ protoOf(Companion).q2b = function (json, ignoreUnknown, $super) {
187
785
  ignoreUnknown = ignoreUnknown === VOID ? false : ignoreUnknown;
188
- return $super === VOID ? this.r22(json, ignoreUnknown) : $super.r22.call(this, json, ignoreUnknown);
786
+ return $super === VOID ? this.n2b(json, ignoreUnknown) : $super.n2b.call(this, json, ignoreUnknown);
189
787
  };
190
788
  var Companion_instance;
191
789
  function Companion_getInstance_1() {
@@ -195,16 +793,16 @@
195
793
  }
196
794
  function parseEndpoints($this) {
197
795
  // Inline function 'kotlin.collections.flatMap' call
198
- var tmp0_flatMap = $this.s22_1.s17_1;
796
+ var tmp0_flatMap = $this.o2b_1.i1d_1;
199
797
  // Inline function 'kotlin.collections.flatMapTo' call
200
798
  var tmp0_flatMapTo = ArrayList_init_$Create$();
201
799
  // Inline function 'kotlin.collections.iterator' call
202
800
  var tmp0_iterator = tmp0_flatMap.n2().v();
203
801
  while (tmp0_iterator.w()) {
204
802
  var element = tmp0_iterator.y();
205
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>' call
803
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>' call
206
804
  // Inline function 'kotlin.collections.component1' call
207
- var path = element.o2().d18_1;
805
+ var path = element.o2().e1e_1;
208
806
  // Inline function 'kotlin.collections.component2' call
209
807
  var pathItem = element.p2();
210
808
  // Inline function 'kotlin.collections.flatMap' call
@@ -215,7 +813,7 @@
215
813
  var tmp0_iterator_0 = tmp0_flatMap_0.n2().v();
216
814
  while (tmp0_iterator_0.w()) {
217
815
  var element_0 = tmp0_iterator_0.y();
218
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>' call
816
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>' call
219
817
  // Inline function 'kotlin.collections.component1' call
220
818
  var method = element_0.o2();
221
819
  // Inline function 'kotlin.collections.component2' call
@@ -223,7 +821,7 @@
223
821
  var parameters = plus(resolveParameters_0(pathItem, $this), resolveParameters(operation, $this));
224
822
  var segments = toSegments(path, $this, parameters);
225
823
  var tmp0_elvis_lhs = toName(operation, $this);
226
- var name = tmp0_elvis_lhs == null ? toName_0(path, $this) + method.b9_1 : tmp0_elvis_lhs;
824
+ var name = tmp0_elvis_lhs == null ? toName_0(path, $this) + method.c9_1 : tmp0_elvis_lhs;
227
825
  // Inline function 'kotlin.collections.map' call
228
826
  // Inline function 'kotlin.collections.filter' call
229
827
  // Inline function 'kotlin.collections.filterTo' call
@@ -231,8 +829,8 @@
231
829
  var tmp0_iterator_1 = parameters.v();
232
830
  while (tmp0_iterator_1.w()) {
233
831
  var element_1 = tmp0_iterator_1.y();
234
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
235
- if (element_1.n19_1.equals(ParameterLocation_QUERY_getInstance())) {
832
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
833
+ if (element_1.a1f_1.equals(ParameterLocation_QUERY_getInstance())) {
236
834
  tmp0_filterTo.s(element_1);
237
835
  }
238
836
  }
@@ -242,7 +840,7 @@
242
840
  while (tmp0_iterator_2.w()) {
243
841
  var item = tmp0_iterator_2.y();
244
842
  var tmp$ret$9;
245
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
843
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
246
844
  tmp$ret$9 = toField_0(item, $this, name);
247
845
  tmp0_mapTo.s(tmp$ret$9);
248
846
  }
@@ -254,8 +852,8 @@
254
852
  var tmp0_iterator_3 = parameters.v();
255
853
  while (tmp0_iterator_3.w()) {
256
854
  var element_2 = tmp0_iterator_3.y();
257
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
258
- if (element_2.n19_1.equals(ParameterLocation_HEADER_getInstance())) {
855
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
856
+ if (element_2.a1f_1.equals(ParameterLocation_HEADER_getInstance())) {
259
857
  tmp0_filterTo_0.s(element_2);
260
858
  }
261
859
  }
@@ -265,7 +863,7 @@
265
863
  while (tmp0_iterator_4.w()) {
266
864
  var item_0 = tmp0_iterator_4.y();
267
865
  var tmp$ret$15;
268
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
866
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
269
867
  tmp$ret$15 = toField_0(item_0, $this, name);
270
868
  tmp0_mapTo_0.s(tmp$ret$15);
271
869
  }
@@ -278,8 +876,8 @@
278
876
  var tmp0_iterator_5 = parameters.v();
279
877
  while (tmp0_iterator_5.w()) {
280
878
  var element_3 = tmp0_iterator_5.y();
281
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
282
- if (element_3.n19_1.equals(ParameterLocation_BODY_getInstance())) {
879
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
880
+ if (element_3.a1f_1.equals(ParameterLocation_BODY_getInstance())) {
283
881
  tmp0_filterTo_1.s(element_3);
284
882
  }
285
883
  }
@@ -288,25 +886,39 @@
288
886
  var tmp0_iterator_6 = tmp0_filterTo_1.v();
289
887
  while (tmp0_iterator_6.w()) {
290
888
  var element_4 = tmp0_iterator_6.y();
291
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
889
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
292
890
  // Inline function 'kotlin.collections.map' call
293
- var tmp0_elvis_lhs_0 = $this.s22_1.q17_1;
294
- var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.b19_1 : tmp0_elvis_lhs_0;
295
- var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
891
+ // Inline function 'kotlin.collections.ifEmpty' call
892
+ // Inline function 'kotlin.collections.orEmpty' call
893
+ var tmp0_elvis_lhs_0 = $this.o2b_1.g1d_1;
894
+ var tmp = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
895
+ var tmp$ret$22;
896
+ // Inline function 'kotlin.collections.orEmpty' call
897
+ var tmp0_elvis_lhs_1 = operation.u1h_1;
898
+ tmp$ret$22 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
899
+ var tmp2_ifEmpty = distinct(plus(tmp, tmp$ret$22));
900
+ var tmp_0;
901
+ if (tmp2_ifEmpty.c1()) {
902
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
903
+ tmp_0 = listOf('application/json');
904
+ } else {
905
+ tmp_0 = tmp2_ifEmpty;
906
+ }
907
+ var tmp3_map = tmp_0;
296
908
  // Inline function 'kotlin.collections.mapTo' call
297
- var tmp0_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
298
- var tmp0_iterator_7 = tmp0_map.v();
909
+ var tmp0_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp3_map, 10));
910
+ var tmp0_iterator_7 = tmp3_map.v();
299
911
  while (tmp0_iterator_7.w()) {
300
912
  var item_1 = tmp0_iterator_7.y();
301
- var tmp$ret$21;
302
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
303
- var schema = element_4.q19_1;
304
- var tmp;
913
+ var tmp$ret$25;
914
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
915
+ var schema = element_4.d1f_1;
916
+ var tmp_1;
305
917
  if (schema instanceof ReferenceObject) {
306
- tmp = toReference(schema, $this);
918
+ tmp_1 = toReference(schema, $this);
307
919
  } else {
308
920
  if (schema instanceof SchemaObject) {
309
- tmp = toReference_0(schema, $this, Common_getInstance().q22([name, 'RequestBody']));
921
+ tmp_1 = toReference_0(schema, $this, Common_getInstance().m2b([name, 'RequestBody']));
310
922
  } else {
311
923
  if (schema == null) {
312
924
  throw new NotImplementedError('An operation is not implemented: Not yet implemented');
@@ -315,73 +927,87 @@
315
927
  }
316
928
  }
317
929
  }
318
- var tmp_0 = tmp;
319
- var tmp0_elvis_lhs_1 = element_4.p19_1;
320
- tmp$ret$21 = new Request(new Content(item_1, tmp_0, tmp0_elvis_lhs_1 == null ? false : tmp0_elvis_lhs_1));
321
- tmp0_mapTo_1.s(tmp$ret$21);
930
+ var tmp_2 = tmp_1;
931
+ var tmp0_elvis_lhs_2 = element_4.c1f_1;
932
+ tmp$ret$25 = new Request(new Content(item_1, tmp_2, !(tmp0_elvis_lhs_2 == null ? false : tmp0_elvis_lhs_2)));
933
+ tmp0_mapTo_1.s(tmp$ret$25);
322
934
  }
323
935
  var list = tmp0_mapTo_1;
324
936
  addAll(tmp0_flatMapTo_1, list);
325
937
  }
326
- var tmp_1;
938
+ var tmp_3;
327
939
  if (tmp0_flatMapTo_1.c1()) {
328
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
329
- tmp_1 = listOf(new Request(null));
940
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
941
+ tmp_3 = listOf(new Request(null));
330
942
  } else {
331
- tmp_1 = tmp0_flatMapTo_1;
943
+ tmp_3 = tmp0_flatMapTo_1;
332
944
  }
333
- var requests = tmp_1;
945
+ var requests = tmp_3;
334
946
  // Inline function 'kotlin.collections.distinctBy' call
335
947
  // Inline function 'kotlin.collections.flatMap' call
336
948
  // Inline function 'kotlin.collections.orEmpty' call
337
- var tmp0_elvis_lhs_2 = operation.e19_1;
338
- var tmp5_flatMap = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
949
+ var tmp0_elvis_lhs_3 = operation.x1h_1;
950
+ var tmp5_flatMap = tmp0_elvis_lhs_3 == null ? emptyMap() : tmp0_elvis_lhs_3;
339
951
  // Inline function 'kotlin.collections.flatMapTo' call
340
952
  var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
341
953
  // Inline function 'kotlin.collections.iterator' call
342
954
  var tmp0_iterator_8 = tmp5_flatMap.n2().v();
343
955
  while (tmp0_iterator_8.w()) {
344
956
  var element_5 = tmp0_iterator_8.y();
345
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
957
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
346
958
  // Inline function 'kotlin.collections.component1' call
347
- var status = element_5.o2().w1b_1;
959
+ var status = element_5.o2().h1k_1;
348
960
  // Inline function 'kotlin.collections.component2' call
349
961
  var res = element_5.p2();
350
962
  // Inline function 'kotlin.collections.map' call
351
- var tmp0_elvis_lhs_3 = $this.s22_1.r17_1;
352
- var tmp1_elvis_lhs_0 = tmp0_elvis_lhs_3 == null ? operation.c19_1 : tmp0_elvis_lhs_3;
353
- var tmp0_map_0 = tmp1_elvis_lhs_0 == null ? listOf('application/json') : tmp1_elvis_lhs_0;
963
+ // Inline function 'kotlin.collections.ifEmpty' call
964
+ // Inline function 'kotlin.collections.orEmpty' call
965
+ var tmp0_elvis_lhs_4 = $this.o2b_1.h1d_1;
966
+ var tmp_4 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
967
+ var tmp$ret$38;
968
+ // Inline function 'kotlin.collections.orEmpty' call
969
+ var tmp0_elvis_lhs_5 = operation.v1h_1;
970
+ tmp$ret$38 = tmp0_elvis_lhs_5 == null ? emptyList() : tmp0_elvis_lhs_5;
971
+ var tmp2_ifEmpty_0 = distinct(plus(tmp_4, tmp$ret$38));
972
+ var tmp_5;
973
+ if (tmp2_ifEmpty_0.c1()) {
974
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
975
+ tmp_5 = listOf('application/json');
976
+ } else {
977
+ tmp_5 = tmp2_ifEmpty_0;
978
+ }
979
+ var tmp3_map_0 = tmp_5;
354
980
  // Inline function 'kotlin.collections.mapTo' call
355
- var tmp0_mapTo_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map_0, 10));
356
- var tmp0_iterator_9 = tmp0_map_0.v();
981
+ var tmp0_mapTo_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp3_map_0, 10));
982
+ var tmp0_iterator_9 = tmp3_map_0.v();
357
983
  while (tmp0_iterator_9.w()) {
358
984
  var item_2 = tmp0_iterator_9.y();
359
- var tmp$ret$35;
360
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
361
- var tmp_2 = _StatusCode___get_value__impl__we50mu(status);
362
- var tmp_3 = emptyList();
363
- var tmp0_safe_receiver = resolve_1(res, $this).a1c_1;
364
- var tmp_4;
985
+ var tmp$ret$43;
986
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
987
+ var tmp_6 = _StatusCode___get_value__impl__we50mu(status);
988
+ var tmp_7 = emptyList();
989
+ var tmp0_safe_receiver = resolve_1(res, $this).b1g_1;
990
+ var tmp_8;
365
991
  if (tmp0_safe_receiver == null) {
366
- tmp_4 = null;
992
+ tmp_8 = null;
367
993
  } else {
368
994
  // Inline function 'kotlin.let' call
369
995
  // Inline function 'kotlin.contracts.contract' call
370
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
371
- var tmp_5;
996
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
997
+ var tmp_9;
372
998
  if (tmp0_safe_receiver instanceof ReferenceObject) {
373
- tmp_5 = toReference(tmp0_safe_receiver, $this);
999
+ tmp_9 = toReference(tmp0_safe_receiver, $this);
374
1000
  } else {
375
1001
  if (tmp0_safe_receiver instanceof SchemaObject) {
376
- tmp_5 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().q22([name, _StatusCode___get_value__impl__we50mu(status), item_2, 'ResponseBody']));
1002
+ tmp_9 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().m2b([name, _StatusCode___get_value__impl__we50mu(status), item_2, 'ResponseBody']));
377
1003
  } else {
378
1004
  noWhenBranchMatchedException();
379
1005
  }
380
1006
  }
381
- tmp_4 = new Content(item_2, tmp_5, false);
1007
+ tmp_8 = new Content(item_2, tmp_9, false);
382
1008
  }
383
- tmp$ret$35 = new Response(tmp_2, tmp_3, tmp_4);
384
- tmp0_mapTo_2.s(tmp$ret$35);
1009
+ tmp$ret$43 = new Response(tmp_6, tmp_7, tmp_8);
1010
+ tmp0_mapTo_2.s(tmp$ret$43);
385
1011
  }
386
1012
  var list_0 = tmp0_mapTo_2;
387
1013
  addAll(tmp0_flatMapTo_2, list_0);
@@ -391,14 +1017,14 @@
391
1017
  var tmp0_iterator_10 = tmp0_flatMapTo_2.v();
392
1018
  while (tmp0_iterator_10.w()) {
393
1019
  var e = tmp0_iterator_10.y();
394
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
395
- var key = to(e.z1y_1, e.b1z_1);
1020
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
1021
+ var key = to(e.q27_1, e.s27_1);
396
1022
  if (set.s(key)) {
397
1023
  list_1.s(e);
398
1024
  }
399
1025
  }
400
1026
  var responses = list_1;
401
- var list_2 = listOf(new Endpoint(name, method, segments, query, headers, emptyList(), requests, responses));
1027
+ var list_2 = listOf(new Endpoint(null, Companion_getInstance_0().f28(name), method, segments, query, headers, emptyList(), requests, responses));
402
1028
  addAll(tmp0_flatMapTo_0, list_2);
403
1029
  }
404
1030
  var list_3 = tmp0_flatMapTo_0;
@@ -407,23 +1033,23 @@
407
1033
  return tmp0_flatMapTo;
408
1034
  }
409
1035
  function parseParameters($this) {
410
- return flatMapRequests($this.s22_1, $this, OpenApiParser$parseParameters$lambda($this));
1036
+ return flatMapRequests($this.o2b_1, $this, OpenApiV2Parser$parseParameters$lambda($this));
411
1037
  }
412
1038
  function parseRequestBody($this) {
413
- return flatMapRequests($this.s22_1, $this, OpenApiParser$parseRequestBody$lambda($this));
1039
+ return flatMapRequests($this.o2b_1, $this, OpenApiV2Parser$parseRequestBody$lambda($this));
414
1040
  }
415
1041
  function parseResponseBody($this) {
416
- return flatMapResponses($this.s22_1, $this, OpenApiParser$parseResponseBody$lambda($this));
1042
+ return flatMapResponses($this.o2b_1, $this, OpenApiV2Parser$parseResponseBody$lambda($this));
417
1043
  }
418
1044
  function parseDefinitions($this) {
419
1045
  // Inline function 'kotlin.collections.flatMap' call
420
1046
  // Inline function 'kotlin.collections.filter' call
421
1047
  // Inline function 'arrow.core.filterIsInstance' call
422
1048
  // Inline function 'kotlin.collections.orEmpty' call
423
- var tmp0_elvis_lhs = $this.s22_1.t17_1;
1049
+ var tmp0_elvis_lhs = $this.o2b_1.j1d_1;
424
1050
  var tmp1_filterIsInstance = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
425
1051
  // Inline function 'kotlin.collections.filterValues' call
426
- var result = LinkedHashMap_init_$Create$();
1052
+ var result = LinkedHashMap_init_$Create$_0();
427
1053
  // Inline function 'kotlin.collections.iterator' call
428
1054
  var tmp0_iterator = tmp1_filterIsInstance.n2().v();
429
1055
  while (tmp0_iterator.w()) {
@@ -436,13 +1062,13 @@
436
1062
  var tmp = result;
437
1063
  var tmp2_filter = isInterface(tmp, Map) ? tmp : THROW_CCE();
438
1064
  // Inline function 'kotlin.collections.filterTo' call
439
- var tmp0_filterTo = LinkedHashMap_init_$Create$();
1065
+ var tmp0_filterTo = LinkedHashMap_init_$Create$_0();
440
1066
  // Inline function 'kotlin.collections.iterator' call
441
1067
  var tmp0_iterator_0 = tmp2_filter.n2().v();
442
1068
  while (tmp0_iterator_0.w()) {
443
1069
  var element = tmp0_iterator_0.y();
444
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
445
- if (element.p2().s1b_1 == null) {
1070
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseDefinitions.<anonymous>' call
1071
+ if (element.p2().x1j_1 == null) {
446
1072
  tmp0_filterTo.l2(element.o2(), element.p2());
447
1073
  }
448
1074
  }
@@ -452,8 +1078,8 @@
452
1078
  var tmp0_iterator_1 = tmp0_filterTo.n2().v();
453
1079
  while (tmp0_iterator_1.w()) {
454
1080
  var element_0 = tmp0_iterator_1.y();
455
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
456
- var list = flatten(element_0.p2(), $this, Common_getInstance().q22([element_0.o2()]));
1081
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseDefinitions.<anonymous>' call
1082
+ var list = flatten(element_0.p2(), $this, Common_getInstance().m2b([element_0.o2()]));
457
1083
  addAll(tmp0_flatMapTo, list);
458
1084
  }
459
1085
  return tmp0_flatMapTo;
@@ -461,7 +1087,7 @@
461
1087
  function resolveParameters(_this__u8e3s4, $this) {
462
1088
  // Inline function 'kotlin.collections.map' call
463
1089
  // Inline function 'kotlin.collections.orEmpty' call
464
- var tmp0_elvis_lhs = _this__u8e3s4.d19_1;
1090
+ var tmp0_elvis_lhs = _this__u8e3s4.w1h_1;
465
1091
  var tmp1_map = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
466
1092
  // Inline function 'kotlin.collections.mapTo' call
467
1093
  var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
@@ -469,7 +1095,7 @@
469
1095
  while (tmp0_iterator.w()) {
470
1096
  var item = tmp0_iterator.y();
471
1097
  var tmp$ret$1;
472
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.resolveParameters.<anonymous>' call
1098
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.resolveParameters.<anonymous>' call
473
1099
  var tmp;
474
1100
  if (item instanceof ParameterObject) {
475
1101
  tmp = item;
@@ -488,7 +1114,7 @@
488
1114
  function resolveParameters_0(_this__u8e3s4, $this) {
489
1115
  // Inline function 'kotlin.collections.map' call
490
1116
  // Inline function 'kotlin.collections.orEmpty' call
491
- var tmp0_elvis_lhs = _this__u8e3s4.s18_1;
1117
+ var tmp0_elvis_lhs = _this__u8e3s4.u1e_1;
492
1118
  var tmp1_map = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
493
1119
  // Inline function 'kotlin.collections.mapTo' call
494
1120
  var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
@@ -496,7 +1122,7 @@
496
1122
  while (tmp0_iterator.w()) {
497
1123
  var item = tmp0_iterator.y();
498
1124
  var tmp$ret$1;
499
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.resolveParameters.<anonymous>' call
1125
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.resolveParameters.<anonymous>' call
500
1126
  var tmp;
501
1127
  if (item instanceof ParameterObject) {
502
1128
  tmp = item;
@@ -513,11 +1139,11 @@
513
1139
  return tmp0_mapTo;
514
1140
  }
515
1141
  function resolveParameterObject(_this__u8e3s4, $this) {
516
- var tmp0_safe_receiver = $this.s22_1.u17_1;
1142
+ var tmp0_safe_receiver = $this.o2b_1.k1d_1;
517
1143
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u2(getReference(_this__u8e3s4, $this));
518
1144
  var tmp;
519
1145
  if (tmp1_elvis_lhs == null) {
520
- var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.m1a_1);
1146
+ var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.c1k_1);
521
1147
  throw IllegalStateException_init_$Create$(toString(tmp0_error));
522
1148
  } else {
523
1149
  tmp = tmp1_elvis_lhs;
@@ -525,11 +1151,11 @@
525
1151
  return tmp;
526
1152
  }
527
1153
  function resolveResponseObject(_this__u8e3s4, $this) {
528
- var tmp0_safe_receiver = $this.s22_1.v17_1;
1154
+ var tmp0_safe_receiver = $this.o2b_1.l1d_1;
529
1155
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u2(getReference(_this__u8e3s4, $this));
530
1156
  var tmp;
531
1157
  if (tmp1_elvis_lhs == null) {
532
- var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.m1a_1);
1158
+ var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.c1k_1);
533
1159
  throw IllegalStateException_init_$Create$(toString(tmp0_error));
534
1160
  } else {
535
1161
  tmp = tmp1_elvis_lhs;
@@ -537,11 +1163,11 @@
537
1163
  return tmp;
538
1164
  }
539
1165
  function resolveSchemaObject(_this__u8e3s4, $this) {
540
- var tmp0_safe_receiver = $this.s22_1.t17_1;
1166
+ var tmp0_safe_receiver = $this.o2b_1.j1d_1;
541
1167
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u2(getReference(_this__u8e3s4, $this));
542
1168
  var tmp;
543
1169
  if (tmp1_elvis_lhs == null) {
544
- var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.m1a_1);
1170
+ var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.c1k_1);
545
1171
  throw IllegalStateException_init_$Create$(toString(tmp0_error));
546
1172
  } else {
547
1173
  tmp = tmp1_elvis_lhs;
@@ -606,12 +1232,12 @@
606
1232
  }
607
1233
  function flatten(_this__u8e3s4, $this, name) {
608
1234
  var tmp;
609
- if (!(_this__u8e3s4.s1b_1 == null)) {
1235
+ if (!(_this__u8e3s4.x1j_1 == null)) {
610
1236
  var tmp_0;
611
- if (_this__u8e3s4.s1b_1 instanceof BooleanObject) {
1237
+ if (_this__u8e3s4.x1j_1 instanceof BooleanObject) {
612
1238
  tmp_0 = emptyList();
613
1239
  } else {
614
- var tmp1_safe_receiver = _this__u8e3s4.s1b_1;
1240
+ var tmp1_safe_receiver = _this__u8e3s4.x1j_1;
615
1241
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_0(tmp1_safe_receiver, $this);
616
1242
  var tmp_1;
617
1243
  if (tmp2_safe_receiver == null) {
@@ -620,8 +1246,8 @@
620
1246
  // Inline function 'kotlin.takeIf' call
621
1247
  // Inline function 'kotlin.contracts.contract' call
622
1248
  var tmp_2;
623
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
624
- if (!(tmp2_safe_receiver.r1b_1 == null)) {
1249
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
1250
+ if (!(tmp2_safe_receiver.w1j_1 == null)) {
625
1251
  tmp_2 = tmp2_safe_receiver;
626
1252
  } else {
627
1253
  tmp_2 = null;
@@ -633,29 +1259,30 @@
633
1259
  tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
634
1260
  }
635
1261
  tmp = tmp_0;
636
- } else if (!(_this__u8e3s4.q1b_1 == null)) {
1262
+ } else if (!(_this__u8e3s4.v1j_1 == null)) {
1263
+ var tmp_3 = Companion_getInstance_0().f28(name);
637
1264
  // Inline function 'kotlin.collections.distinctBy' call
638
1265
  // Inline function 'kotlin.collections.flatMap' call
639
1266
  // Inline function 'kotlin.collections.orEmpty' call
640
- var tmp0_elvis_lhs = _this__u8e3s4.q1b_1;
1267
+ var tmp0_elvis_lhs = _this__u8e3s4.v1j_1;
641
1268
  var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
642
1269
  // Inline function 'kotlin.collections.flatMapTo' call
643
1270
  var tmp0_flatMapTo = ArrayList_init_$Create$();
644
1271
  var tmp0_iterator = tmp1_flatMap.v();
645
1272
  while (tmp0_iterator.w()) {
646
1273
  var element = tmp0_iterator.y();
647
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
648
- var tmp_3;
1274
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
1275
+ var tmp_4;
649
1276
  if (element instanceof SchemaObject) {
650
- tmp_3 = toField(element, $this, name);
1277
+ tmp_4 = toField(element, $this, name);
651
1278
  } else {
652
1279
  if (element instanceof ReferenceObject) {
653
- tmp_3 = toField(resolve(resolveSchemaObject(element, $this), $this), $this, getReference(element, $this));
1280
+ tmp_4 = toField(resolve(resolveSchemaObject(element, $this), $this), $this, getReference(element, $this));
654
1281
  } else {
655
1282
  noWhenBranchMatchedException();
656
1283
  }
657
1284
  }
658
- var list = tmp_3;
1285
+ var list = tmp_4;
659
1286
  addAll(tmp0_flatMapTo, list);
660
1287
  }
661
1288
  var set = HashSet_init_$Create$();
@@ -663,29 +1290,29 @@
663
1290
  var tmp0_iterator_0 = tmp0_flatMapTo.v();
664
1291
  while (tmp0_iterator_0.w()) {
665
1292
  var e = tmp0_iterator_0.y();
666
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
667
- var key = e.e1y_1;
1293
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
1294
+ var key = e.v26_1;
668
1295
  if (set.s(key)) {
669
1296
  list_0.s(e);
670
1297
  }
671
1298
  }
672
- var tmp_4 = listOf(new Type(name, new Shape(list_0)));
1299
+ var tmp_5 = listOf(new Type(null, tmp_3, new Shape(list_0)));
673
1300
  // Inline function 'kotlin.collections.flatMap' call
674
- var tmp3_flatMap = ensureNotNull(_this__u8e3s4.q1b_1);
1301
+ var tmp3_flatMap = ensureNotNull(_this__u8e3s4.v1j_1);
675
1302
  // Inline function 'kotlin.collections.flatMapTo' call
676
1303
  var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
677
1304
  var tmp0_iterator_1 = tmp3_flatMap.v();
678
1305
  while (tmp0_iterator_1.w()) {
679
1306
  var element_0 = tmp0_iterator_1.y();
680
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
681
- var tmp_5;
1307
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
1308
+ var tmp_6;
682
1309
  if (element_0 instanceof ReferenceObject) {
683
- tmp_5 = emptyList();
1310
+ tmp_6 = emptyList();
684
1311
  } else {
685
1312
  if (element_0 instanceof SchemaObject) {
686
1313
  // Inline function 'kotlin.collections.flatMap' call
687
1314
  // Inline function 'kotlin.collections.orEmpty' call
688
- var tmp0_elvis_lhs_0 = element_0.r1b_1;
1315
+ var tmp0_elvis_lhs_0 = element_0.w1j_1;
689
1316
  var tmp1_flatMap_0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
690
1317
  // Inline function 'kotlin.collections.flatMapTo' call
691
1318
  var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
@@ -693,62 +1320,62 @@
693
1320
  var tmp0_iterator_2 = tmp1_flatMap_0.n2().v();
694
1321
  while (tmp0_iterator_2.w()) {
695
1322
  var element_1 = tmp0_iterator_2.y();
696
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>.<anonymous>' call
1323
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>.<anonymous>' call
697
1324
  // Inline function 'kotlin.collections.component1' call
698
1325
  var key_0 = element_1.o2();
699
1326
  // Inline function 'kotlin.collections.component2' call
700
1327
  var value = element_1.p2();
701
- var tmp_6;
1328
+ var tmp_7;
702
1329
  if (value instanceof ReferenceObject) {
703
- tmp_6 = emptyList();
1330
+ tmp_7 = emptyList();
704
1331
  } else {
705
1332
  if (value instanceof SchemaObject) {
706
- tmp_6 = flatten(value, $this, Common_getInstance().q22([name, key_0]));
1333
+ tmp_7 = flatten(value, $this, Common_getInstance().m2b([name, key_0]));
707
1334
  } else {
708
1335
  noWhenBranchMatchedException();
709
1336
  }
710
1337
  }
711
- var list_1 = tmp_6;
1338
+ var list_1 = tmp_7;
712
1339
  addAll(tmp0_flatMapTo_1, list_1);
713
1340
  }
714
- tmp_5 = tmp0_flatMapTo_1;
1341
+ tmp_6 = tmp0_flatMapTo_1;
715
1342
  } else {
716
1343
  noWhenBranchMatchedException();
717
1344
  }
718
1345
  }
719
- var list_2 = tmp_5;
1346
+ var list_2 = tmp_6;
720
1347
  addAll(tmp0_flatMapTo_0, list_2);
721
1348
  }
722
- tmp = plus(tmp_4, tmp0_flatMapTo_0);
723
- } else if (!(_this__u8e3s4.n1b_1 == null)) {
1349
+ tmp = plus(tmp_5, tmp0_flatMapTo_0);
1350
+ } else if (!(_this__u8e3s4.s1j_1 == null)) {
724
1351
  // Inline function 'kotlin.let' call
725
1352
  // Inline function 'kotlin.collections.map' call
726
- var tmp4_map = ensureNotNull(_this__u8e3s4.n1b_1);
1353
+ var tmp4_map = ensureNotNull(_this__u8e3s4.s1j_1);
727
1354
  // Inline function 'kotlin.collections.mapTo' call
728
1355
  var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp4_map, 10));
729
1356
  var tmp0_iterator_3 = tmp4_map.v();
730
1357
  while (tmp0_iterator_3.w()) {
731
1358
  var item = tmp0_iterator_3.y();
732
1359
  var tmp$ret$18;
733
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
734
- tmp$ret$18 = item.n10();
1360
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
1361
+ tmp$ret$18 = item.k14();
735
1362
  tmp0_mapTo.s(tmp$ret$18);
736
1363
  }
737
1364
  var tmp5_let = toSet(tmp0_mapTo);
738
1365
  // Inline function 'kotlin.contracts.contract' call
739
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
740
- tmp = listOf(new Enum(name, tmp5_let));
1366
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
1367
+ tmp = listOf(new Enum(null, Companion_getInstance_0().f28(name), tmp5_let));
741
1368
  } else {
742
- var tmp5_subject = _this__u8e3s4.o1b_1;
743
- var tmp_7;
744
- switch (tmp5_subject == null ? -1 : tmp5_subject.c9_1) {
1369
+ var tmp5_subject = _this__u8e3s4.t1j_1;
1370
+ var tmp_8;
1371
+ switch (tmp5_subject == null ? -1 : tmp5_subject.d9_1) {
745
1372
  case -1:
746
1373
  case 5:
747
1374
  // Inline function 'kotlin.collections.flatMap' call
748
1375
 
749
1376
  // Inline function 'kotlin.collections.orEmpty' call
750
1377
 
751
- var tmp0_elvis_lhs_1 = _this__u8e3s4.r1b_1;
1378
+ var tmp0_elvis_lhs_1 = _this__u8e3s4.w1j_1;
752
1379
  var tmp7_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
753
1380
  // Inline function 'kotlin.collections.flatMapTo' call
754
1381
 
@@ -758,43 +1385,43 @@
758
1385
  var tmp0_iterator_4 = tmp7_flatMap.n2().v();
759
1386
  while (tmp0_iterator_4.w()) {
760
1387
  var element_2 = tmp0_iterator_4.y();
761
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
1388
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
762
1389
  // Inline function 'kotlin.collections.component1' call
763
1390
  var key_1 = element_2.o2();
764
1391
  // Inline function 'kotlin.collections.component2' call
765
1392
  var value_0 = element_2.p2();
766
- var list_3 = flatten_0(value_0, $this, Common_getInstance().q22([name, key_1]));
1393
+ var list_3 = flatten_0(value_0, $this, Common_getInstance().m2b([name, key_1]));
767
1394
  addAll(tmp0_flatMapTo_2, list_3);
768
1395
  }
769
1396
 
770
1397
  var fields = tmp0_flatMapTo_2;
771
- var schema = listOf(new Type(name, new Shape(toField(_this__u8e3s4, $this, name))));
772
- tmp_7 = plus(schema, fields);
1398
+ var schema = listOf(new Type(null, Companion_getInstance_0().f28(name), new Shape(toField(_this__u8e3s4, $this, name))));
1399
+ tmp_8 = plus(schema, fields);
773
1400
  break;
774
1401
  case 4:
775
- var it = _this__u8e3s4.p1b_1;
776
- var tmp_8;
1402
+ var it = _this__u8e3s4.u1j_1;
1403
+ var tmp_9;
777
1404
  if (it instanceof ReferenceObject) {
778
- tmp_8 = emptyList();
1405
+ tmp_9 = emptyList();
779
1406
  } else {
780
1407
  if (it instanceof SchemaObject) {
781
- tmp_8 = flatten(it, $this, Common_getInstance().q22([name, 'Array']));
1408
+ tmp_9 = flatten(it, $this, Common_getInstance().m2b([name, 'Array']));
782
1409
  } else {
783
1410
  if (it == null) {
784
- tmp_8 = emptyList();
1411
+ tmp_9 = emptyList();
785
1412
  } else {
786
1413
  noWhenBranchMatchedException();
787
1414
  }
788
1415
  }
789
1416
  }
790
1417
 
791
- tmp_7 = tmp_8;
1418
+ tmp_8 = tmp_9;
792
1419
  break;
793
1420
  default:
794
- tmp_7 = emptyList();
1421
+ tmp_8 = emptyList();
795
1422
  break;
796
1423
  }
797
- tmp = tmp_7;
1424
+ tmp = tmp_8;
798
1425
  }
799
1426
  return tmp;
800
1427
  }
@@ -815,11 +1442,11 @@
815
1442
  // Inline function 'kotlin.let' call
816
1443
  var tmp0_let = resolveSchemaObject(_this__u8e3s4, $this);
817
1444
  // Inline function 'kotlin.contracts.contract' call
818
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
1445
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toReference.<anonymous>' call
819
1446
  var schema = resolve(tmp0_let, $this);
820
1447
  var tmp;
821
- if (!(schema.s1b_1 == null)) {
822
- var additionalProperties = ensureNotNull(schema.s1b_1);
1448
+ if (!(schema.x1j_1 == null)) {
1449
+ var additionalProperties = ensureNotNull(schema.x1j_1);
823
1450
  var tmp_0;
824
1451
  if (additionalProperties instanceof BooleanObject) {
825
1452
  tmp_0 = new Any(false, true);
@@ -835,24 +1462,24 @@
835
1462
  }
836
1463
  }
837
1464
  tmp = tmp_0;
838
- } else if (!(schema.n1b_1 == null)) {
839
- tmp = new Custom(Common_getInstance().q22([getReference(_this__u8e3s4, $this)]), false, false);
840
- } else if (isPrimitive(schema.o1b_1)) {
841
- tmp = new Primitive(toPrimitive(ensureNotNull(schema.o1b_1), $this), false, false);
1465
+ } else if (!(schema.s1j_1 == null)) {
1466
+ tmp = new Custom(Common_getInstance().m2b([getReference(_this__u8e3s4, $this)]), false, false);
1467
+ } else if (isPrimitive(schema.t1j_1)) {
1468
+ tmp = new Primitive(toPrimitive(ensureNotNull(schema.t1j_1), $this), false, false);
842
1469
  } else {
843
- var tmp0_subject = schema.o1b_1;
1470
+ var tmp0_subject = schema.t1j_1;
844
1471
  var tmp_1;
845
- if ((tmp0_subject == null ? -1 : tmp0_subject.c9_1) === 4) {
846
- var items = schema.p1b_1;
1472
+ if ((tmp0_subject == null ? -1 : tmp0_subject.d9_1) === 4) {
1473
+ var items = schema.u1j_1;
847
1474
  var tmp_2;
848
1475
  if (items instanceof ReferenceObject) {
849
- tmp_2 = new Custom(Common_getInstance().q22([getReference(items, $this)]), true);
1476
+ tmp_2 = new Custom(Common_getInstance().m2b([getReference(items, $this)]), true);
850
1477
  } else {
851
1478
  if (items instanceof SchemaObject) {
852
- tmp_2 = toIterable(toReference_0(items, $this, Common_getInstance().q22([getReference(_this__u8e3s4, $this), 'Array'])));
1479
+ tmp_2 = toIterable(toReference_0(items, $this, Common_getInstance().m2b([getReference(_this__u8e3s4, $this), 'Array'])));
853
1480
  } else {
854
1481
  if (items == null) {
855
- var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.m1a_1);
1482
+ var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.c1k_1);
856
1483
  throw IllegalStateException_init_$Create$(toString(tmp0_error));
857
1484
  } else {
858
1485
  noWhenBranchMatchedException();
@@ -863,10 +1490,10 @@
863
1490
  } else {
864
1491
  var tmp_3;
865
1492
  if (tmp0_let instanceof SchemaObject) {
866
- tmp_3 = new Custom(Common_getInstance().q22([getReference(_this__u8e3s4, $this)]), false);
1493
+ tmp_3 = new Custom(Common_getInstance().m2b([getReference(_this__u8e3s4, $this)]), false);
867
1494
  } else {
868
1495
  if (tmp0_let instanceof ReferenceObject) {
869
- tmp_3 = new Custom(Common_getInstance().q22([getReference(tmp0_let, $this)]), false);
1496
+ tmp_3 = new Custom(Common_getInstance().m2b([getReference(tmp0_let, $this)]), false);
870
1497
  } else {
871
1498
  noWhenBranchMatchedException();
872
1499
  }
@@ -879,8 +1506,8 @@
879
1506
  }
880
1507
  function toReference_0(_this__u8e3s4, $this, name) {
881
1508
  var tmp;
882
- if (!(_this__u8e3s4.s1b_1 == null)) {
883
- var additionalProperties = ensureNotNull(_this__u8e3s4.s1b_1);
1509
+ if (!(_this__u8e3s4.x1j_1 == null)) {
1510
+ var additionalProperties = ensureNotNull(_this__u8e3s4.x1j_1);
884
1511
  var tmp_0;
885
1512
  if (additionalProperties instanceof BooleanObject) {
886
1513
  tmp_0 = new Any(false, true);
@@ -892,8 +1519,8 @@
892
1519
  // Inline function 'kotlin.takeIf' call
893
1520
  // Inline function 'kotlin.contracts.contract' call
894
1521
  var tmp_1;
895
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
896
- if (isPrimitive(additionalProperties.o1b_1) ? true : !(additionalProperties.r1b_1 == null)) {
1522
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toReference.<anonymous>' call
1523
+ if (isPrimitive(additionalProperties.t1j_1) ? true : !(additionalProperties.w1j_1 == null)) {
897
1524
  tmp_1 = additionalProperties;
898
1525
  } else {
899
1526
  tmp_1 = null;
@@ -905,7 +1532,7 @@
905
1532
  } else {
906
1533
  // Inline function 'kotlin.run' call
907
1534
  // Inline function 'kotlin.contracts.contract' call
908
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
1535
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toReference.<anonymous>' call
909
1536
  tmp_2 = toMap_0(toReference_0(tmp0_safe_receiver, $this, name));
910
1537
  }
911
1538
  var tmp1_elvis_lhs = tmp_2;
@@ -916,32 +1543,32 @@
916
1543
  }
917
1544
  }
918
1545
  tmp = tmp_0;
919
- } else if (!(_this__u8e3s4.n1b_1 == null)) {
920
- tmp = new Custom(name, false, !(_this__u8e3s4.s1b_1 == null));
1546
+ } else if (!(_this__u8e3s4.s1j_1 == null)) {
1547
+ tmp = new Custom(name, false, !(_this__u8e3s4.x1j_1 == null));
921
1548
  } else {
922
- var type = _this__u8e3s4.o1b_1;
1549
+ var type = _this__u8e3s4.t1j_1;
923
1550
  var tmp_3;
924
- switch (type == null ? -1 : type.c9_1) {
1551
+ switch (type == null ? -1 : type.d9_1) {
925
1552
  case 0:
926
1553
  case 2:
927
1554
  case 1:
928
1555
  case 3:
929
- tmp_3 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.s1b_1 == null));
1556
+ tmp_3 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.x1j_1 == null));
930
1557
  break;
931
1558
  case -1:
932
1559
  case 5:
933
1560
  var tmp_4;
934
- var tmp_5 = _this__u8e3s4.s1b_1;
1561
+ var tmp_5 = _this__u8e3s4.x1j_1;
935
1562
  if (tmp_5 instanceof BooleanObject) {
936
- tmp_4 = new Any(false, !(_this__u8e3s4.s1b_1 == null));
1563
+ tmp_4 = new Any(false, !(_this__u8e3s4.x1j_1 == null));
937
1564
  } else {
938
- tmp_4 = new Custom(name, false, !(_this__u8e3s4.s1b_1 == null));
1565
+ tmp_4 = new Custom(name, false, !(_this__u8e3s4.x1j_1 == null));
939
1566
  }
940
1567
 
941
1568
  tmp_3 = tmp_4;
942
1569
  break;
943
1570
  case 4:
944
- var it = _this__u8e3s4.p1b_1;
1571
+ var it = _this__u8e3s4.u1j_1;
945
1572
  var tmp_6;
946
1573
  if (it instanceof ReferenceObject) {
947
1574
  tmp_6 = toIterable(toReference(it, $this));
@@ -973,38 +1600,38 @@
973
1600
  function toOperationList(_this__u8e3s4, $this) {
974
1601
  // Inline function 'kotlin.collections.associateWith' call
975
1602
  var tmp0_associateWith = get_entries();
976
- var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(collectionSizeOrDefault(tmp0_associateWith, 10)), 16));
1603
+ var result = LinkedHashMap_init_$Create$(coerceAtLeast(mapCapacity(collectionSizeOrDefault(tmp0_associateWith, 10)), 16));
977
1604
  // Inline function 'kotlin.collections.associateWithTo' call
978
1605
  var tmp0_iterator = tmp0_associateWith.v();
979
1606
  while (tmp0_iterator.w()) {
980
1607
  var element = tmp0_iterator.y();
981
1608
  var tmp$ret$0;
982
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toOperationList.<anonymous>' call
1609
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toOperationList.<anonymous>' call
983
1610
  var tmp;
984
- switch (element.c9_1) {
1611
+ switch (element.d9_1) {
985
1612
  case 0:
986
- tmp = _this__u8e3s4.j18_1;
1613
+ tmp = _this__u8e3s4.l1e_1;
987
1614
  break;
988
1615
  case 1:
989
- tmp = _this__u8e3s4.l18_1;
1616
+ tmp = _this__u8e3s4.n1e_1;
990
1617
  break;
991
1618
  case 2:
992
- tmp = _this__u8e3s4.k18_1;
1619
+ tmp = _this__u8e3s4.m1e_1;
993
1620
  break;
994
1621
  case 3:
995
- tmp = _this__u8e3s4.m18_1;
1622
+ tmp = _this__u8e3s4.o1e_1;
996
1623
  break;
997
1624
  case 4:
998
- tmp = _this__u8e3s4.n18_1;
1625
+ tmp = _this__u8e3s4.p1e_1;
999
1626
  break;
1000
1627
  case 5:
1001
- tmp = _this__u8e3s4.o18_1;
1628
+ tmp = _this__u8e3s4.q1e_1;
1002
1629
  break;
1003
1630
  case 6:
1004
- tmp = _this__u8e3s4.p18_1;
1631
+ tmp = _this__u8e3s4.r1e_1;
1005
1632
  break;
1006
1633
  case 7:
1007
- tmp = _this__u8e3s4.q18_1;
1634
+ tmp = _this__u8e3s4.s1e_1;
1008
1635
  break;
1009
1636
  default:
1010
1637
  noWhenBranchMatchedException();
@@ -1016,11 +1643,11 @@
1016
1643
  return filterNotNullValues(result);
1017
1644
  }
1018
1645
  function getReference(_this__u8e3s4, $this) {
1019
- return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.m1a_1), ['/']).g1(2);
1646
+ return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.c1k_1), ['/']).g1(2);
1020
1647
  }
1021
1648
  function toPrimitive(_this__u8e3s4, $this) {
1022
1649
  var tmp;
1023
- switch (_this__u8e3s4.c9_1) {
1650
+ switch (_this__u8e3s4.d9_1) {
1024
1651
  case 0:
1025
1652
  tmp = Type_String_getInstance();
1026
1653
  break;
@@ -1041,7 +1668,7 @@
1041
1668
  function toField(_this__u8e3s4, $this, name) {
1042
1669
  // Inline function 'kotlin.collections.map' call
1043
1670
  // Inline function 'kotlin.collections.orEmpty' call
1044
- var tmp0_elvis_lhs = _this__u8e3s4.r1b_1;
1671
+ var tmp0_elvis_lhs = _this__u8e3s4.w1j_1;
1045
1672
  var tmp1_map = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
1046
1673
  // Inline function 'kotlin.collections.mapTo' call
1047
1674
  var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.n());
@@ -1050,23 +1677,23 @@
1050
1677
  while (tmp0_iterator.w()) {
1051
1678
  var item = tmp0_iterator.y();
1052
1679
  var tmp$ret$4;
1053
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
1680
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>' call
1054
1681
  // Inline function 'kotlin.collections.component1' call
1055
1682
  var key = item.o2();
1056
1683
  // Inline function 'kotlin.collections.component2' call
1057
1684
  var value = item.p2();
1058
1685
  var tmp;
1059
1686
  if (value instanceof SchemaObject) {
1060
- var tmp_0 = Companion_getInstance_0().n1z(key);
1061
- var tmp_1 = !(value.n1b_1 == null) ? toReference_0(value, $this, Common_getInstance().q22([name, key])) : equals(value.o1b_1, Type_ARRAY_getInstance()) ? toReference_0(value, $this, Common_getInstance().q22([name, key, 'Array'])) : toReference_0(value, $this, Common_getInstance().q22([name, key]));
1062
- var tmp1_safe_receiver = _this__u8e3s4.m1b_1;
1687
+ var tmp_0 = Companion_getInstance_0().f28(key);
1688
+ var tmp_1 = !(value.s1j_1 == null) ? toReference_0(value, $this, Common_getInstance().m2b([name, key])) : equals(value.t1j_1, Type_ARRAY_getInstance()) ? toReference_0(value, $this, Common_getInstance().m2b([name, key, 'Array'])) : toReference_0(value, $this, Common_getInstance().m2b([name, key]));
1689
+ var tmp1_safe_receiver = _this__u8e3s4.r1j_1;
1063
1690
  var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r(key);
1064
1691
  tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
1065
1692
  } else {
1066
1693
  if (value instanceof ReferenceObject) {
1067
- var tmp_2 = Companion_getInstance_0().n1z(key);
1694
+ var tmp_2 = Companion_getInstance_0().f28(key);
1068
1695
  var tmp_3 = toReference(value, $this);
1069
- var tmp3_safe_receiver = _this__u8e3s4.m1b_1;
1696
+ var tmp3_safe_receiver = _this__u8e3s4.r1j_1;
1070
1697
  var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.r(key);
1071
1698
  tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
1072
1699
  } else {
@@ -1083,14 +1710,14 @@
1083
1710
  // Inline function 'kotlin.let' call
1084
1711
  var tmp0_let = resolve_2(_this__u8e3s4, $this);
1085
1712
  // Inline function 'kotlin.contracts.contract' call
1086
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
1713
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>' call
1087
1714
  var tmp;
1088
- if (!(_this__u8e3s4.h1a_1 == null)) {
1089
- tmp = new Custom(Common_getInstance().q22([name, 'Parameter', tmp0_let.m19_1]), false);
1715
+ if (!(_this__u8e3s4.u1f_1 == null)) {
1716
+ tmp = new Custom(Common_getInstance().m2b([name, 'Parameter', tmp0_let.z1e_1]), false);
1090
1717
  } else {
1091
- var type = tmp0_let.r19_1;
1718
+ var type = tmp0_let.e1f_1;
1092
1719
  var tmp_0;
1093
- switch (type == null ? -1 : type.c9_1) {
1720
+ switch (type == null ? -1 : type.d9_1) {
1094
1721
  case 0:
1095
1722
  case 1:
1096
1723
  case 2:
@@ -1100,14 +1727,14 @@
1100
1727
  var tmp0_let_0 = toPrimitive(type, $this);
1101
1728
  // Inline function 'kotlin.contracts.contract' call
1102
1729
 
1103
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>.<anonymous>' call
1730
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>.<anonymous>' call
1104
1731
 
1105
1732
  tmp_0 = new Primitive(tmp0_let_0, false);
1106
1733
  break;
1107
1734
  case 4:
1108
- var tmp0_safe_receiver = tmp0_let.s19_1;
1735
+ var tmp0_safe_receiver = tmp0_let.f1f_1;
1109
1736
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve(tmp0_safe_receiver, $this);
1110
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o1b_1;
1737
+ var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t1j_1;
1111
1738
  var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
1112
1739
  var tmp_1;
1113
1740
  if (tmp3_safe_receiver == null) {
@@ -1115,7 +1742,7 @@
1115
1742
  } else {
1116
1743
  // Inline function 'kotlin.let' call
1117
1744
  // Inline function 'kotlin.contracts.contract' call
1118
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>.<anonymous>' call
1745
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>.<anonymous>' call
1119
1746
  tmp_1 = new Primitive(tmp3_safe_receiver, true);
1120
1747
  }
1121
1748
 
@@ -1143,9 +1770,9 @@
1143
1770
  }
1144
1771
  var tmp1_let = tmp;
1145
1772
  // Inline function 'kotlin.contracts.contract' call
1146
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
1147
- var tmp_3 = Companion_getInstance_0().n1z(_this__u8e3s4.m19_1);
1148
- var tmp0_elvis_lhs = _this__u8e3s4.p19_1;
1773
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>' call
1774
+ var tmp_3 = Companion_getInstance_0().f28(_this__u8e3s4.z1e_1);
1775
+ var tmp0_elvis_lhs = _this__u8e3s4.c1f_1;
1149
1776
  return new Field(tmp_3, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
1150
1777
  }
1151
1778
  function toSegments(_this__u8e3s4, $this, parameters) {
@@ -1157,7 +1784,7 @@
1157
1784
  while (tmp0_iterator.w()) {
1158
1785
  var item = tmp0_iterator.y();
1159
1786
  var tmp$ret$10;
1160
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>' call
1787
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toSegments.<anonymous>' call
1161
1788
  var tmp;
1162
1789
  var tmp_0;
1163
1790
  // Inline function 'kotlin.text.isNotEmpty' call
@@ -1185,8 +1812,8 @@
1185
1812
  var tmp0_iterator_0 = parameters.v();
1186
1813
  while (tmp0_iterator_0.w()) {
1187
1814
  var element = tmp0_iterator_0.y();
1188
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
1189
- if (element.m19_1 === param) {
1815
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toSegments.<anonymous>.<anonymous>' call
1816
+ if (element.z1e_1 === param) {
1190
1817
  tmp$ret$4 = element;
1191
1818
  break $l$block;
1192
1819
  }
@@ -1200,8 +1827,8 @@
1200
1827
  } else {
1201
1828
  // Inline function 'kotlin.let' call
1202
1829
  // Inline function 'kotlin.contracts.contract' call
1203
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
1204
- var tmp0_safe_receiver_0 = tmp0_safe_receiver.r19_1;
1830
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toSegments.<anonymous>.<anonymous>' call
1831
+ var tmp0_safe_receiver_0 = tmp0_safe_receiver.e1f_1;
1205
1832
  tmp_2 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, $this);
1206
1833
  }
1207
1834
  var tmp1_safe_receiver = tmp_2;
@@ -1211,8 +1838,8 @@
1211
1838
  } else {
1212
1839
  // Inline function 'kotlin.let' call
1213
1840
  // Inline function 'kotlin.contracts.contract' call
1214
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
1215
- tmp_3 = new Param(Companion_getInstance_0().n1z(param), new Primitive(tmp1_safe_receiver, false));
1841
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toSegments.<anonymous>.<anonymous>' call
1842
+ tmp_3 = new Param(Companion_getInstance_0().f28(param), new Primitive(tmp1_safe_receiver, false));
1216
1843
  }
1217
1844
  var tmp2_elvis_lhs = tmp_3;
1218
1845
  var tmp_4;
@@ -1235,15 +1862,15 @@
1235
1862
  return charSequenceGet(_this__u8e3s4, 0) === _Char___init__impl__6a9atx(123) ? charSequenceGet(_this__u8e3s4, _this__u8e3s4.length - 1 | 0) === _Char___init__impl__6a9atx(125) : false;
1236
1863
  }
1237
1864
  function toName(_this__u8e3s4, $this) {
1238
- var tmp0_safe_receiver = _this__u8e3s4.a19_1;
1865
+ var tmp0_safe_receiver = _this__u8e3s4.t1h_1;
1239
1866
  var tmp;
1240
1867
  if (tmp0_safe_receiver == null) {
1241
1868
  tmp = null;
1242
1869
  } else {
1243
1870
  // Inline function 'kotlin.let' call
1244
1871
  // Inline function 'kotlin.contracts.contract' call
1245
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
1246
- tmp = Common_getInstance().q22([tmp0_safe_receiver]);
1872
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toName.<anonymous>' call
1873
+ tmp = Common_getInstance().m2b([tmp0_safe_receiver]);
1247
1874
  }
1248
1875
  return tmp;
1249
1876
  }
@@ -1255,31 +1882,31 @@
1255
1882
  var tmp0_iterator = tmp0_filter.v();
1256
1883
  while (tmp0_iterator.w()) {
1257
1884
  var element = tmp0_iterator.y();
1258
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
1885
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toName.<anonymous>' call
1259
1886
  // Inline function 'kotlin.text.isNotBlank' call
1260
1887
  if (!isBlank(element)) {
1261
1888
  tmp0_filterTo.s(element);
1262
1889
  }
1263
1890
  }
1264
1891
  var tmp = tmp0_filterTo;
1265
- return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda($this));
1892
+ return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiV2Parser$toName$lambda($this));
1266
1893
  }
1267
1894
  function FlattenRequest(path, pathItem, method, operation, type) {
1268
- this.v22_1 = path;
1269
- this.w22_1 = pathItem;
1270
- this.x22_1 = method;
1271
- this.y22_1 = operation;
1272
- this.z22_1 = type;
1895
+ this.r2b_1 = path;
1896
+ this.s2b_1 = pathItem;
1897
+ this.t2b_1 = method;
1898
+ this.u2b_1 = operation;
1899
+ this.v2b_1 = type;
1273
1900
  }
1274
1901
  protoOf(FlattenRequest).toString = function () {
1275
- return 'FlattenRequest(path=' + new Path(this.v22_1) + ', pathItem=' + this.w22_1 + ', method=' + this.x22_1 + ', operation=' + this.y22_1 + ', type=' + this.z22_1 + ')';
1902
+ return 'FlattenRequest(path=' + new Path(this.r2b_1) + ', pathItem=' + this.s2b_1 + ', method=' + this.t2b_1 + ', operation=' + this.u2b_1 + ', type=' + this.v2b_1 + ')';
1276
1903
  };
1277
1904
  protoOf(FlattenRequest).hashCode = function () {
1278
- var result = Path__hashCode_impl_go73kd(this.v22_1);
1279
- result = imul(result, 31) + this.w22_1.hashCode() | 0;
1280
- result = imul(result, 31) + this.x22_1.hashCode() | 0;
1281
- result = imul(result, 31) + this.y22_1.hashCode() | 0;
1282
- result = imul(result, 31) + getStringHashCode(this.z22_1) | 0;
1905
+ var result = Path__hashCode_impl_go73kd(this.r2b_1);
1906
+ result = imul(result, 31) + this.s2b_1.hashCode() | 0;
1907
+ result = imul(result, 31) + this.t2b_1.hashCode() | 0;
1908
+ result = imul(result, 31) + this.u2b_1.hashCode() | 0;
1909
+ result = imul(result, 31) + getStringHashCode(this.v2b_1) | 0;
1283
1910
  return result;
1284
1911
  };
1285
1912
  protoOf(FlattenRequest).equals = function (other) {
@@ -1288,31 +1915,31 @@
1288
1915
  if (!(other instanceof FlattenRequest))
1289
1916
  return false;
1290
1917
  var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
1291
- if (!(this.v22_1 === tmp0_other_with_cast.v22_1))
1918
+ if (!(this.r2b_1 === tmp0_other_with_cast.r2b_1))
1292
1919
  return false;
1293
- if (!this.w22_1.equals(tmp0_other_with_cast.w22_1))
1920
+ if (!this.s2b_1.equals(tmp0_other_with_cast.s2b_1))
1294
1921
  return false;
1295
- if (!this.x22_1.equals(tmp0_other_with_cast.x22_1))
1922
+ if (!this.t2b_1.equals(tmp0_other_with_cast.t2b_1))
1296
1923
  return false;
1297
- if (!this.y22_1.equals(tmp0_other_with_cast.y22_1))
1924
+ if (!this.u2b_1.equals(tmp0_other_with_cast.u2b_1))
1298
1925
  return false;
1299
- if (!(this.z22_1 === tmp0_other_with_cast.z22_1))
1926
+ if (!(this.v2b_1 === tmp0_other_with_cast.v2b_1))
1300
1927
  return false;
1301
1928
  return true;
1302
1929
  };
1303
1930
  function flatMapRequests(_this__u8e3s4, $this, f) {
1304
1931
  // Inline function 'kotlin.collections.flatMap' call
1305
1932
  // Inline function 'kotlin.collections.flatMap' call
1306
- var tmp0_flatMap = _this__u8e3s4.s17_1;
1933
+ var tmp0_flatMap = _this__u8e3s4.i1d_1;
1307
1934
  // Inline function 'kotlin.collections.flatMapTo' call
1308
1935
  var tmp0_flatMapTo = ArrayList_init_$Create$();
1309
1936
  // Inline function 'kotlin.collections.iterator' call
1310
1937
  var tmp0_iterator = tmp0_flatMap.n2().v();
1311
1938
  while (tmp0_iterator.w()) {
1312
1939
  var element = tmp0_iterator.y();
1313
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
1940
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatMapRequests.<anonymous>' call
1314
1941
  // Inline function 'kotlin.collections.component1' call
1315
- var path = element.o2().d18_1;
1942
+ var path = element.o2().e1e_1;
1316
1943
  // Inline function 'kotlin.collections.component2' call
1317
1944
  var pathItem = element.p2();
1318
1945
  // Inline function 'kotlin.collections.flatMap' call
@@ -1323,14 +1950,14 @@
1323
1950
  var tmp0_iterator_0 = tmp0_flatMap_0.n2().v();
1324
1951
  while (tmp0_iterator_0.w()) {
1325
1952
  var element_0 = tmp0_iterator_0.y();
1326
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>.<anonymous>' call
1953
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatMapRequests.<anonymous>.<anonymous>' call
1327
1954
  // Inline function 'kotlin.collections.component1' call
1328
1955
  var method = element_0.o2();
1329
1956
  // Inline function 'kotlin.collections.component2' call
1330
1957
  var operation = element_0.p2();
1331
1958
  // Inline function 'kotlin.collections.map' call
1332
- var tmp0_elvis_lhs = $this.s22_1.q17_1;
1333
- var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? operation.b19_1 : tmp0_elvis_lhs;
1959
+ var tmp0_elvis_lhs = $this.o2b_1.g1d_1;
1960
+ var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? operation.u1h_1 : tmp0_elvis_lhs;
1334
1961
  var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
1335
1962
  // Inline function 'kotlin.collections.mapTo' call
1336
1963
  var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
@@ -1338,7 +1965,7 @@
1338
1965
  while (tmp0_iterator_1.w()) {
1339
1966
  var item = tmp0_iterator_1.y();
1340
1967
  var tmp$ret$6;
1341
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>.<anonymous>.<anonymous>' call
1968
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatMapRequests.<anonymous>.<anonymous>.<anonymous>' call
1342
1969
  tmp$ret$6 = new FlattenRequest(path, pathItem, method, operation, item);
1343
1970
  tmp0_mapTo.s(tmp$ret$6);
1344
1971
  }
@@ -1353,32 +1980,32 @@
1353
1980
  var tmp0_iterator_2 = tmp0_flatMapTo.v();
1354
1981
  while (tmp0_iterator_2.w()) {
1355
1982
  var element_1 = tmp0_iterator_2.y();
1356
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
1983
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatMapRequests.<anonymous>' call
1357
1984
  var list_1 = f(element_1);
1358
1985
  addAll(tmp0_flatMapTo_1, list_1);
1359
1986
  }
1360
1987
  return tmp0_flatMapTo_1;
1361
1988
  }
1362
1989
  function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
1363
- this.a23_1 = path;
1364
- this.b23_1 = pathItem;
1365
- this.c23_1 = method;
1366
- this.d23_1 = operation;
1367
- this.e23_1 = statusCode;
1368
- this.f23_1 = response;
1369
- this.g23_1 = type;
1990
+ this.w2b_1 = path;
1991
+ this.x2b_1 = pathItem;
1992
+ this.y2b_1 = method;
1993
+ this.z2b_1 = operation;
1994
+ this.a2c_1 = statusCode;
1995
+ this.b2c_1 = response;
1996
+ this.c2c_1 = type;
1370
1997
  }
1371
1998
  protoOf(FlattenResponse).toString = function () {
1372
- return 'FlattenResponse(path=' + new Path(this.a23_1) + ', pathItem=' + this.b23_1 + ', method=' + this.c23_1 + ', operation=' + this.d23_1 + ', statusCode=' + new StatusCode(this.e23_1) + ', response=' + this.f23_1 + ', type=' + this.g23_1 + ')';
1999
+ return 'FlattenResponse(path=' + new Path(this.w2b_1) + ', pathItem=' + this.x2b_1 + ', method=' + this.y2b_1 + ', operation=' + this.z2b_1 + ', statusCode=' + new StatusCode(this.a2c_1) + ', response=' + this.b2c_1 + ', type=' + this.c2c_1 + ')';
1373
2000
  };
1374
2001
  protoOf(FlattenResponse).hashCode = function () {
1375
- var result = Path__hashCode_impl_go73kd(this.a23_1);
1376
- result = imul(result, 31) + this.b23_1.hashCode() | 0;
1377
- result = imul(result, 31) + this.c23_1.hashCode() | 0;
1378
- result = imul(result, 31) + this.d23_1.hashCode() | 0;
1379
- result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.e23_1) | 0;
1380
- result = imul(result, 31) + hashCode(this.f23_1) | 0;
1381
- result = imul(result, 31) + getStringHashCode(this.g23_1) | 0;
2002
+ var result = Path__hashCode_impl_go73kd(this.w2b_1);
2003
+ result = imul(result, 31) + this.x2b_1.hashCode() | 0;
2004
+ result = imul(result, 31) + this.y2b_1.hashCode() | 0;
2005
+ result = imul(result, 31) + this.z2b_1.hashCode() | 0;
2006
+ result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.a2c_1) | 0;
2007
+ result = imul(result, 31) + hashCode(this.b2c_1) | 0;
2008
+ result = imul(result, 31) + getStringHashCode(this.c2c_1) | 0;
1382
2009
  return result;
1383
2010
  };
1384
2011
  protoOf(FlattenResponse).equals = function (other) {
@@ -1387,35 +2014,35 @@
1387
2014
  if (!(other instanceof FlattenResponse))
1388
2015
  return false;
1389
2016
  var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
1390
- if (!(this.a23_1 === tmp0_other_with_cast.a23_1))
2017
+ if (!(this.w2b_1 === tmp0_other_with_cast.w2b_1))
1391
2018
  return false;
1392
- if (!this.b23_1.equals(tmp0_other_with_cast.b23_1))
2019
+ if (!this.x2b_1.equals(tmp0_other_with_cast.x2b_1))
1393
2020
  return false;
1394
- if (!this.c23_1.equals(tmp0_other_with_cast.c23_1))
2021
+ if (!this.y2b_1.equals(tmp0_other_with_cast.y2b_1))
1395
2022
  return false;
1396
- if (!this.d23_1.equals(tmp0_other_with_cast.d23_1))
2023
+ if (!this.z2b_1.equals(tmp0_other_with_cast.z2b_1))
1397
2024
  return false;
1398
- if (!(this.e23_1 === tmp0_other_with_cast.e23_1))
2025
+ if (!(this.a2c_1 === tmp0_other_with_cast.a2c_1))
1399
2026
  return false;
1400
- if (!equals(this.f23_1, tmp0_other_with_cast.f23_1))
2027
+ if (!equals(this.b2c_1, tmp0_other_with_cast.b2c_1))
1401
2028
  return false;
1402
- if (!(this.g23_1 === tmp0_other_with_cast.g23_1))
2029
+ if (!(this.c2c_1 === tmp0_other_with_cast.c2c_1))
1403
2030
  return false;
1404
2031
  return true;
1405
2032
  };
1406
2033
  function flatMapResponses(_this__u8e3s4, $this, f) {
1407
2034
  // Inline function 'kotlin.collections.flatMap' call
1408
2035
  // Inline function 'kotlin.collections.flatMap' call
1409
- var tmp0_flatMap = _this__u8e3s4.s17_1;
2036
+ var tmp0_flatMap = _this__u8e3s4.i1d_1;
1410
2037
  // Inline function 'kotlin.collections.flatMapTo' call
1411
2038
  var tmp0_flatMapTo = ArrayList_init_$Create$();
1412
2039
  // Inline function 'kotlin.collections.iterator' call
1413
2040
  var tmp0_iterator = tmp0_flatMap.n2().v();
1414
2041
  while (tmp0_iterator.w()) {
1415
2042
  var element = tmp0_iterator.y();
1416
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
2043
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatMapResponses.<anonymous>' call
1417
2044
  // Inline function 'kotlin.collections.component1' call
1418
- var path = element.o2().d18_1;
2045
+ var path = element.o2().e1e_1;
1419
2046
  // Inline function 'kotlin.collections.component2' call
1420
2047
  var pathItem = element.p2();
1421
2048
  // Inline function 'kotlin.collections.flatMap' call
@@ -1426,14 +2053,14 @@
1426
2053
  var tmp0_iterator_0 = tmp0_flatMap_0.n2().v();
1427
2054
  while (tmp0_iterator_0.w()) {
1428
2055
  var element_0 = tmp0_iterator_0.y();
1429
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>' call
2056
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatMapResponses.<anonymous>.<anonymous>' call
1430
2057
  // Inline function 'kotlin.collections.component1' call
1431
2058
  var method = element_0.o2();
1432
2059
  // Inline function 'kotlin.collections.component2' call
1433
2060
  var operation = element_0.p2();
1434
2061
  // Inline function 'kotlin.collections.flatMap' call
1435
2062
  // Inline function 'kotlin.collections.orEmpty' call
1436
- var tmp0_elvis_lhs = operation.e19_1;
2063
+ var tmp0_elvis_lhs = operation.x1h_1;
1437
2064
  var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
1438
2065
  // Inline function 'kotlin.collections.flatMapTo' call
1439
2066
  var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
@@ -1441,14 +2068,14 @@
1441
2068
  var tmp0_iterator_1 = tmp1_flatMap.n2().v();
1442
2069
  while (tmp0_iterator_1.w()) {
1443
2070
  var element_1 = tmp0_iterator_1.y();
1444
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
2071
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
1445
2072
  // Inline function 'kotlin.collections.component1' call
1446
- var statusCode = element_1.o2().w1b_1;
2073
+ var statusCode = element_1.o2().h1k_1;
1447
2074
  // Inline function 'kotlin.collections.component2' call
1448
2075
  var response = element_1.p2();
1449
2076
  // Inline function 'kotlin.collections.map' call
1450
- var tmp0_elvis_lhs_0 = _this__u8e3s4.r17_1;
1451
- var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.c19_1 : tmp0_elvis_lhs_0;
2077
+ var tmp0_elvis_lhs_0 = _this__u8e3s4.h1d_1;
2078
+ var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? operation.v1h_1 : tmp0_elvis_lhs_0;
1452
2079
  var tmp0_map = tmp1_elvis_lhs == null ? listOf('application/json') : tmp1_elvis_lhs;
1453
2080
  // Inline function 'kotlin.collections.mapTo' call
1454
2081
  var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
@@ -1456,7 +2083,7 @@
1456
2083
  while (tmp0_iterator_2.w()) {
1457
2084
  var item = tmp0_iterator_2.y();
1458
2085
  var tmp$ret$10;
1459
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
2086
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
1460
2087
  tmp$ret$10 = new FlattenResponse(path, pathItem, method, operation, statusCode, response, item);
1461
2088
  tmp0_mapTo.s(tmp$ret$10);
1462
2089
  }
@@ -1474,17 +2101,17 @@
1474
2101
  var tmp0_iterator_3 = tmp0_flatMapTo.v();
1475
2102
  while (tmp0_iterator_3.w()) {
1476
2103
  var element_2 = tmp0_iterator_3.y();
1477
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
2104
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatMapResponses.<anonymous>' call
1478
2105
  var list_2 = f(element_2);
1479
2106
  addAll(tmp0_flatMapTo_2, list_2);
1480
2107
  }
1481
2108
  return tmp0_flatMapTo_2;
1482
2109
  }
1483
- function OpenApiParser$parseParameters$lambda(this$0) {
2110
+ function OpenApiV2Parser$parseParameters$lambda(this$0) {
1484
2111
  return function (req) {
1485
- var parameters = plus(resolveParameters_0(req.w22_1, this$0), resolveParameters(req.y22_1, this$0));
1486
- var tmp0_elvis_lhs = toName(req.y22_1, this$0);
1487
- var name = tmp0_elvis_lhs == null ? toName_0(req.v22_1, this$0) + req.x22_1.b9_1 : tmp0_elvis_lhs;
2112
+ var parameters = plus(resolveParameters_0(req.s2b_1, this$0), resolveParameters(req.u2b_1, this$0));
2113
+ var tmp0_elvis_lhs = toName(req.u2b_1, this$0);
2114
+ var name = tmp0_elvis_lhs == null ? toName_0(req.r2b_1, this$0) + req.t2b_1.c9_1 : tmp0_elvis_lhs;
1488
2115
  var tmp$ret$5;
1489
2116
  // Inline function 'kotlin.collections.flatMap' call
1490
2117
  var tmp$ret$2;
@@ -1496,8 +2123,8 @@
1496
2123
  while (tmp0_iterator.w()) {
1497
2124
  var element = tmp0_iterator.y();
1498
2125
  var tmp$ret$0;
1499
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
1500
- tmp$ret$0 = !element.n19_1.equals(ParameterLocation_BODY_getInstance());
2126
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseParameters.<anonymous>.<anonymous>' call
2127
+ tmp$ret$0 = !element.a1f_1.equals(ParameterLocation_BODY_getInstance());
1501
2128
  if (tmp$ret$0) {
1502
2129
  tmp0_filterTo.s(element);
1503
2130
  }
@@ -1512,9 +2139,9 @@
1512
2139
  while (tmp0_iterator_0.w()) {
1513
2140
  var element_0 = tmp0_iterator_0.y();
1514
2141
  var tmp$ret$3;
1515
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
1516
- var tmp0_safe_receiver = element_0.q19_1;
1517
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_0(tmp0_safe_receiver, this$0, Common_getInstance().q22([name, 'Parameter', element_0.m19_1]));
2142
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseParameters.<anonymous>.<anonymous>' call
2143
+ var tmp0_safe_receiver = element_0.d1f_1;
2144
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_0(tmp0_safe_receiver, this$0, Common_getInstance().m2b([name, 'Parameter', element_0.z1e_1]));
1518
2145
  tmp$ret$3 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
1519
2146
  var list = tmp$ret$3;
1520
2147
  addAll(tmp0_flatMapTo, list);
@@ -1524,11 +2151,11 @@
1524
2151
  return tmp$ret$5;
1525
2152
  };
1526
2153
  }
1527
- function OpenApiParser$parseRequestBody$lambda(this$0) {
2154
+ function OpenApiV2Parser$parseRequestBody$lambda(this$0) {
1528
2155
  return function (req) {
1529
- var parameters = plus(resolveParameters_0(req.w22_1, this$0), resolveParameters(req.y22_1, this$0));
1530
- var tmp0_elvis_lhs = toName(req.y22_1, this$0);
1531
- var name = tmp0_elvis_lhs == null ? toName_0(req.v22_1, this$0) + req.x22_1.b9_1 : tmp0_elvis_lhs;
2156
+ var parameters = plus(resolveParameters_0(req.s2b_1, this$0), resolveParameters(req.u2b_1, this$0));
2157
+ var tmp0_elvis_lhs = toName(req.u2b_1, this$0);
2158
+ var name = tmp0_elvis_lhs == null ? toName_0(req.r2b_1, this$0) + req.t2b_1.c9_1 : tmp0_elvis_lhs;
1532
2159
  var tmp$ret$5;
1533
2160
  // Inline function 'kotlin.collections.flatMap' call
1534
2161
  var tmp$ret$4;
@@ -1538,13 +2165,13 @@
1538
2165
  while (tmp0_iterator.w()) {
1539
2166
  var element = tmp0_iterator.y();
1540
2167
  var tmp$ret$3;
1541
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
2168
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
1542
2169
  var tmp;
1543
- if (!(element.h1a_1 == null)) {
1544
- var tmp_0 = Common_getInstance().q22([name, 'Parameter', element.m19_1]);
2170
+ if (!(element.u1f_1 == null)) {
2171
+ var tmp_0 = Companion_getInstance_0().f28(Common_getInstance().m2b([name, 'Parameter', element.z1e_1]));
1545
2172
  var tmp$ret$2;
1546
2173
  // Inline function 'kotlin.collections.map' call
1547
- var tmp0_map = ensureNotNull(element.h1a_1);
2174
+ var tmp0_map = ensureNotNull(element.u1f_1);
1548
2175
  var tmp$ret$1;
1549
2176
  // Inline function 'kotlin.collections.mapTo' call
1550
2177
  var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
@@ -1552,13 +2179,13 @@
1552
2179
  while (tmp0_iterator_0.w()) {
1553
2180
  var item = tmp0_iterator_0.y();
1554
2181
  var tmp$ret$0;
1555
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
1556
- tmp$ret$0 = item.n10();
2182
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
2183
+ tmp$ret$0 = item.k14();
1557
2184
  tmp0_mapTo.s(tmp$ret$0);
1558
2185
  }
1559
2186
  tmp$ret$1 = tmp0_mapTo;
1560
2187
  tmp$ret$2 = tmp$ret$1;
1561
- tmp = listOf(new Enum(tmp_0, toSet(tmp$ret$2)));
2188
+ tmp = listOf(new Enum(null, tmp_0, toSet(tmp$ret$2)));
1562
2189
  } else {
1563
2190
  tmp = emptyList();
1564
2191
  }
@@ -1569,7 +2196,7 @@
1569
2196
  tmp$ret$4 = tmp0_flatMapTo;
1570
2197
  tmp$ret$5 = tmp$ret$4;
1571
2198
  var enums = tmp$ret$5;
1572
- var tmp1_safe_receiver = req.y22_1.d19_1;
2199
+ var tmp1_safe_receiver = req.u2b_1.w1h_1;
1573
2200
  var tmp_1;
1574
2201
  if (tmp1_safe_receiver == null) {
1575
2202
  tmp_1 = null;
@@ -1583,7 +2210,7 @@
1583
2210
  while (tmp0_iterator_1.w()) {
1584
2211
  var item_0 = tmp0_iterator_1.y();
1585
2212
  var tmp$ret$6;
1586
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
2213
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
1587
2214
  tmp$ret$6 = resolve_2(item_0, this$0);
1588
2215
  tmp0_mapTo_0.s(tmp$ret$6);
1589
2216
  }
@@ -1605,8 +2232,8 @@
1605
2232
  while (tmp0_iterator_2.w()) {
1606
2233
  var element_0 = tmp0_iterator_2.y();
1607
2234
  var tmp$ret$9;
1608
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
1609
- tmp$ret$9 = element_0.n19_1.equals(ParameterLocation_BODY_getInstance());
2235
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
2236
+ tmp$ret$9 = element_0.a1f_1.equals(ParameterLocation_BODY_getInstance());
1610
2237
  if (tmp$ret$9) {
1611
2238
  tmp0_filterTo.s(element_0);
1612
2239
  }
@@ -1629,23 +2256,23 @@
1629
2256
  while (tmp0_iterator_3.w()) {
1630
2257
  var element_1 = tmp0_iterator_3.y();
1631
2258
  var tmp$ret$13;
1632
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
1633
- var schema = element_1.q19_1;
2259
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
2260
+ var schema = element_1.d1f_1;
1634
2261
  var tmp_4;
1635
2262
  if (schema instanceof SchemaObject) {
1636
- var tmp0_subject = schema.o1b_1;
1637
- var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.c9_1;
2263
+ var tmp0_subject = schema.t1j_1;
2264
+ var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.d9_1;
1638
2265
  var tmp_5;
1639
2266
  switch (tmp0) {
1640
2267
  case -1:
1641
2268
  case 5:
1642
- tmp_5 = flatten(schema, this$0, Common_getInstance().q22([name, 'RequestBody']));
2269
+ tmp_5 = flatten(schema, this$0, Common_getInstance().m2b([name, 'RequestBody']));
1643
2270
  break;
1644
2271
  case 4:
1645
2272
  var tmp$ret$12;
1646
2273
  // Inline function 'kotlin.collections.orEmpty' call
1647
- var tmp1_safe_receiver_0 = schema.p1b_1;
1648
- var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().q22([name, 'RequestBody']));
2274
+ var tmp1_safe_receiver_0 = schema.u1j_1;
2275
+ var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().m2b([name, 'RequestBody']));
1649
2276
  var tmp0_elvis_lhs_0 = tmp0_orEmpty;
1650
2277
  tmp$ret$12 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
1651
2278
 
@@ -1672,27 +2299,27 @@
1672
2299
  return plus(enums, types);
1673
2300
  };
1674
2301
  }
1675
- function OpenApiParser$parseResponseBody$lambda(this$0) {
2302
+ function OpenApiV2Parser$parseResponseBody$lambda(this$0) {
1676
2303
  return function (res) {
1677
- var response = resolve_1(res.f23_1, this$0);
1678
- var tmp0_elvis_lhs = toName(res.d23_1, this$0);
1679
- var name = tmp0_elvis_lhs == null ? toName_0(res.a23_1, this$0) + res.c23_1.b9_1 : tmp0_elvis_lhs;
1680
- var schema = response.a1c_1;
2304
+ var response = resolve_1(res.b2c_1, this$0);
2305
+ var tmp0_elvis_lhs = toName(res.z2b_1, this$0);
2306
+ var name = tmp0_elvis_lhs == null ? toName_0(res.w2b_1, this$0) + res.y2b_1.c9_1 : tmp0_elvis_lhs;
2307
+ var schema = response.b1g_1;
1681
2308
  var tmp;
1682
2309
  if (schema instanceof SchemaObject) {
1683
- var tmp1_subject = schema.o1b_1;
1684
- var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.c9_1;
2310
+ var tmp1_subject = schema.t1j_1;
2311
+ var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.d9_1;
1685
2312
  var tmp_0;
1686
2313
  switch (tmp0) {
1687
2314
  case -1:
1688
2315
  case 5:
1689
- tmp_0 = flatten(schema, this$0, Common_getInstance().q22([name, _StatusCode___get_value__impl__we50mu(res.e23_1), res.g23_1, 'ResponseBody']));
2316
+ tmp_0 = flatten(schema, this$0, Common_getInstance().m2b([name, _StatusCode___get_value__impl__we50mu(res.a2c_1), res.c2c_1, 'ResponseBody']));
1690
2317
  break;
1691
2318
  case 4:
1692
2319
  var tmp$ret$0;
1693
2320
  // Inline function 'kotlin.collections.orEmpty' call
1694
- var tmp2_safe_receiver = schema.p1b_1;
1695
- var tmp0_orEmpty = tmp2_safe_receiver == null ? null : flatten_0(tmp2_safe_receiver, this$0, Common_getInstance().q22([name, _StatusCode___get_value__impl__we50mu(res.e23_1), res.g23_1, 'ResponseBody']));
2321
+ var tmp2_safe_receiver = schema.u1j_1;
2322
+ var tmp0_orEmpty = tmp2_safe_receiver == null ? null : flatten_0(tmp2_safe_receiver, this$0, Common_getInstance().m2b([name, _StatusCode___get_value__impl__we50mu(res.a2c_1), res.c2c_1, 'ResponseBody']));
1696
2323
  var tmp0_elvis_lhs_0 = tmp0_orEmpty;
1697
2324
  tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
1698
2325
 
@@ -1709,7 +2336,7 @@
1709
2336
  return tmp;
1710
2337
  };
1711
2338
  }
1712
- function OpenApiParser$toName$lambda(this$0) {
2339
+ function OpenApiV2Parser$toName$lambda(this$0) {
1713
2340
  return function (it) {
1714
2341
  var tmp0_subject = isParam(it, this$0);
1715
2342
  var tmp;
@@ -1724,10 +2351,10 @@
1724
2351
  tmp$ret$0 = it;
1725
2352
  tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
1726
2353
 
1727
- tmp = tmp_0.q22([tmp$ret$1]);
2354
+ tmp = tmp_0.m2b([tmp$ret$1]);
1728
2355
  break;
1729
2356
  case false:
1730
- tmp = Common_getInstance().q22([it]);
2357
+ tmp = Common_getInstance().m2b([it]);
1731
2358
  break;
1732
2359
  default:
1733
2360
  noWhenBranchMatchedException();
@@ -1736,26 +2363,26 @@
1736
2363
  return tmp;
1737
2364
  };
1738
2365
  }
1739
- function OpenApiParser(openApi) {
2366
+ function OpenApiV2Parser(openApi) {
1740
2367
  Companion_getInstance_1();
1741
- this.s22_1 = openApi;
2368
+ this.o2b_1 = openApi;
1742
2369
  }
1743
- protoOf(OpenApiParser).t22 = function () {
2370
+ protoOf(OpenApiV2Parser).p2b = function () {
1744
2371
  return plus(plus(plus(plus(parseEndpoints(this), parseParameters(this)), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
1745
2372
  };
1746
2373
  function toMap_0(_this__u8e3s4) {
1747
2374
  var tmp;
1748
2375
  if (_this__u8e3s4 instanceof Custom) {
1749
- tmp = _this__u8e3s4.h21(VOID, VOID, true);
2376
+ tmp = _this__u8e3s4.c2a(VOID, VOID, true);
1750
2377
  } else {
1751
2378
  if (_this__u8e3s4 instanceof Any) {
1752
- tmp = _this__u8e3s4.z20(VOID, true);
2379
+ tmp = _this__u8e3s4.t29(VOID, true);
1753
2380
  } else {
1754
2381
  if (_this__u8e3s4 instanceof Primitive) {
1755
- tmp = _this__u8e3s4.j21(VOID, VOID, true);
2382
+ tmp = _this__u8e3s4.e2a(VOID, VOID, true);
1756
2383
  } else {
1757
2384
  if (_this__u8e3s4 instanceof Unit) {
1758
- tmp = _this__u8e3s4.c21(VOID, true);
2385
+ tmp = _this__u8e3s4.x29(VOID, true);
1759
2386
  } else {
1760
2387
  noWhenBranchMatchedException();
1761
2388
  }
@@ -1766,7 +2393,7 @@
1766
2393
  }
1767
2394
  function isPrimitive(_this__u8e3s4) {
1768
2395
  var tmp;
1769
- switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.c9_1) {
2396
+ switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.d9_1) {
1770
2397
  case 0:
1771
2398
  tmp = true;
1772
2399
  break;
@@ -1800,16 +2427,16 @@
1800
2427
  function toIterable(_this__u8e3s4) {
1801
2428
  var tmp;
1802
2429
  if (_this__u8e3s4 instanceof Custom) {
1803
- tmp = _this__u8e3s4.h21(VOID, true);
2430
+ tmp = _this__u8e3s4.c2a(VOID, true);
1804
2431
  } else {
1805
2432
  if (_this__u8e3s4 instanceof Any) {
1806
- tmp = _this__u8e3s4.z20(true);
2433
+ tmp = _this__u8e3s4.t29(true);
1807
2434
  } else {
1808
2435
  if (_this__u8e3s4 instanceof Primitive) {
1809
- tmp = _this__u8e3s4.j21(VOID, true);
2436
+ tmp = _this__u8e3s4.e2a(VOID, true);
1810
2437
  } else {
1811
2438
  if (_this__u8e3s4 instanceof Unit) {
1812
- tmp = _this__u8e3s4.c21(true);
2439
+ tmp = _this__u8e3s4.x29(true);
1813
2440
  } else {
1814
2441
  noWhenBranchMatchedException();
1815
2442
  }
@@ -1853,26 +2480,620 @@
1853
2480
  }
1854
2481
  return toMap(tmp0_mapNotNullTo);
1855
2482
  }
1856
- function OpenApiParser$Companion$parse$lambda_0($strict) {
1857
- return function ($this$Json) {
1858
- $this$Json.pz_1 = true;
1859
- $this$Json.mz_1 = $strict;
1860
- return Unit_getInstance();
1861
- };
1862
- }
1863
- function Companion_0() {
1864
- Companion_instance_0 = this;
2483
+ function emitComponents(_this__u8e3s4, $this) {
2484
+ // Inline function 'kotlin.let' call
2485
+ // Inline function 'kotlin.collections.associate' call
2486
+ // Inline function 'kotlin.collections.filter' call
2487
+ // Inline function 'kotlin.collections.filterIsInstance' call
2488
+ // Inline function 'kotlin.collections.filterIsInstanceTo' call
2489
+ var tmp0_filterIsInstanceTo = ArrayList_init_$Create$();
2490
+ var tmp0_iterator = _this__u8e3s4.v();
2491
+ while (tmp0_iterator.w()) {
2492
+ var element = tmp0_iterator.y();
2493
+ if (!(element == null) ? isInterface(element, Definition) : false) {
2494
+ tmp0_filterIsInstanceTo.s(element);
2495
+ }
2496
+ }
2497
+ // Inline function 'kotlin.collections.filterTo' call
2498
+ var tmp0_filterTo = ArrayList_init_$Create$();
2499
+ var tmp0_iterator_0 = tmp0_filterIsInstanceTo.v();
2500
+ while (tmp0_iterator_0.w()) {
2501
+ var element_0 = tmp0_iterator_0.y();
2502
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitComponents.<anonymous>' call
2503
+ if (!(element_0 instanceof Endpoint)) {
2504
+ tmp0_filterTo.s(element_0);
2505
+ }
2506
+ }
2507
+ var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(tmp0_filterTo, 10)), 16);
2508
+ // Inline function 'kotlin.collections.associateTo' call
2509
+ var tmp0_associateTo = LinkedHashMap_init_$Create$(capacity);
2510
+ var tmp0_iterator_1 = tmp0_filterTo.v();
2511
+ while (tmp0_iterator_1.w()) {
2512
+ var element_1 = tmp0_iterator_1.y();
2513
+ // Inline function 'kotlin.collections.plusAssign' call
2514
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitComponents.<anonymous>' call
2515
+ var tmp = element_1.m21().z26_1;
2516
+ var tmp_0;
2517
+ if (element_1 instanceof Enum) {
2518
+ tmp_0 = emit_3(element_1, $this);
2519
+ } else {
2520
+ if (element_1 instanceof Refined) {
2521
+ tmp_0 = emit_1(element_1, $this);
2522
+ } else {
2523
+ if (element_1 instanceof Type) {
2524
+ tmp_0 = emit_2(element_1, $this);
2525
+ } else {
2526
+ if (element_1 instanceof Union) {
2527
+ tmp_0 = emit_4(element_1, $this);
2528
+ } else {
2529
+ if (element_1 instanceof Endpoint) {
2530
+ throw IllegalStateException_init_$Create$('Cannot emit endpoint');
2531
+ } else {
2532
+ noWhenBranchMatchedException();
2533
+ }
2534
+ }
2535
+ }
2536
+ }
2537
+ }
2538
+ var tmp0_plusAssign = to(tmp, tmp_0);
2539
+ tmp0_associateTo.l2(tmp0_plusAssign.sd_1, tmp0_plusAssign.td_1);
2540
+ }
2541
+ // Inline function 'kotlin.contracts.contract' call
2542
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitComponents.<anonymous>' call
2543
+ return new ComponentsObject(tmp0_associateTo);
2544
+ }
2545
+ function emitPaths(_this__u8e3s4, $this) {
2546
+ // Inline function 'kotlin.collections.map' call
2547
+ // Inline function 'kotlin.collections.groupBy' call
2548
+ // Inline function 'kotlin.collections.filterIsInstance' call
2549
+ // Inline function 'kotlin.collections.filterIsInstanceTo' call
2550
+ var tmp0_filterIsInstanceTo = ArrayList_init_$Create$();
2551
+ var tmp0_iterator = _this__u8e3s4.v();
2552
+ while (tmp0_iterator.w()) {
2553
+ var element = tmp0_iterator.y();
2554
+ if (element instanceof Endpoint) {
2555
+ tmp0_filterIsInstanceTo.s(element);
2556
+ }
2557
+ }
2558
+ // Inline function 'kotlin.collections.groupByTo' call
2559
+ var tmp0_groupByTo = LinkedHashMap_init_$Create$_0();
2560
+ var tmp0_iterator_0 = tmp0_filterIsInstanceTo.v();
2561
+ while (tmp0_iterator_0.w()) {
2562
+ var element_0 = tmp0_iterator_0.y();
2563
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitPaths.<anonymous>' call
2564
+ var key = element_0.z27_1;
2565
+ // Inline function 'kotlin.collections.getOrPut' call
2566
+ var value = tmp0_groupByTo.u2(key);
2567
+ var tmp;
2568
+ if (value == null) {
2569
+ // Inline function 'kotlin.collections.groupByTo.<anonymous>' call
2570
+ var answer = ArrayList_init_$Create$();
2571
+ tmp0_groupByTo.l2(key, answer);
2572
+ tmp = answer;
2573
+ } else {
2574
+ tmp = value;
2575
+ }
2576
+ var list = tmp;
2577
+ list.s(element_0);
2578
+ }
2579
+ // Inline function 'kotlin.collections.mapTo' call
2580
+ var tmp0_mapTo = ArrayList_init_$Create$_0(tmp0_groupByTo.n());
2581
+ // Inline function 'kotlin.collections.iterator' call
2582
+ var tmp0_iterator_1 = tmp0_groupByTo.n2().v();
2583
+ while (tmp0_iterator_1.w()) {
2584
+ var item = tmp0_iterator_1.y();
2585
+ var tmp$ret$17;
2586
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitPaths.<anonymous>' call
2587
+ // Inline function 'kotlin.collections.component1' call
2588
+ var path = item.o2();
2589
+ // Inline function 'kotlin.collections.component2' call
2590
+ var endpoints = item.p2();
2591
+ var tmp_0 = new Path_0(_Path___init__impl__6uf4pw_0(emitSegment_0(path, $this)));
2592
+ // Inline function 'kotlin.collections.ifEmpty' call
2593
+ // Inline function 'kotlin.collections.map' call
2594
+ // Inline function 'kotlin.collections.filterIsInstance' call
2595
+ // Inline function 'kotlin.collections.filterIsInstanceTo' call
2596
+ var tmp0_filterIsInstanceTo_0 = ArrayList_init_$Create$();
2597
+ var tmp0_iterator_2 = path.v();
2598
+ while (tmp0_iterator_2.w()) {
2599
+ var element_1 = tmp0_iterator_2.y();
2600
+ if (element_1 instanceof Param) {
2601
+ tmp0_filterIsInstanceTo_0.s(element_1);
2602
+ }
2603
+ }
2604
+ // Inline function 'kotlin.collections.mapTo' call
2605
+ var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_filterIsInstanceTo_0, 10));
2606
+ var tmp0_iterator_3 = tmp0_filterIsInstanceTo_0.v();
2607
+ while (tmp0_iterator_3.w()) {
2608
+ var item_0 = tmp0_iterator_3.y();
2609
+ var tmp$ret$12;
2610
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitPaths.<anonymous>.<anonymous>' call
2611
+ tmp$ret$12 = emitParameter_1(item_0, $this);
2612
+ tmp0_mapTo_0.s(tmp$ret$12);
2613
+ }
2614
+ var tmp_1;
2615
+ if (tmp0_mapTo_0.c1()) {
2616
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitPaths.<anonymous>.<anonymous>' call
2617
+ tmp_1 = null;
2618
+ } else {
2619
+ tmp_1 = tmp0_mapTo_0;
2620
+ }
2621
+ var tmp0_parameters = tmp_1;
2622
+ var tmp1_get = emit_5(endpoints, $this, Method_GET_getInstance());
2623
+ var tmp2_post = emit_5(endpoints, $this, Method_POST_getInstance());
2624
+ var tmp3_put = emit_5(endpoints, $this, Method_PUT_getInstance());
2625
+ var tmp4_delete = emit_5(endpoints, $this, Method_DELETE_getInstance());
2626
+ var tmp5_patch = emit_5(endpoints, $this, Method_PATCH_getInstance());
2627
+ var tmp6_options = emit_5(endpoints, $this, Method_OPTIONS_getInstance());
2628
+ var tmp7_trace = emit_5(endpoints, $this, Method_TRACE_getInstance());
2629
+ var tmp8_head = emit_5(endpoints, $this, Method_HEAD_getInstance());
2630
+ tmp$ret$17 = to(tmp_0, new PathItemObject_0(VOID, VOID, VOID, tmp1_get, tmp3_put, tmp2_post, tmp4_delete, tmp6_options, tmp8_head, tmp5_patch, tmp7_trace, VOID, tmp0_parameters));
2631
+ tmp0_mapTo.s(tmp$ret$17);
2632
+ }
2633
+ return toMap(tmp0_mapTo);
2634
+ }
2635
+ function emit_1(_this__u8e3s4, $this) {
2636
+ return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_STRING_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, _this__u8e3s4.g27_1.i27_1);
2637
+ }
2638
+ function emit_2(_this__u8e3s4, $this) {
2639
+ // Inline function 'kotlin.collections.associate' call
2640
+ var tmp0_associate = _this__u8e3s4.s26_1.u26_1;
2641
+ var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(tmp0_associate, 10)), 16);
2642
+ // Inline function 'kotlin.collections.associateTo' call
2643
+ var tmp0_associateTo = LinkedHashMap_init_$Create$(capacity);
2644
+ var tmp0_iterator = tmp0_associate.v();
2645
+ while (tmp0_iterator.w()) {
2646
+ var element = tmp0_iterator.y();
2647
+ // Inline function 'kotlin.collections.plusAssign' call
2648
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2649
+ var tmp0_plusAssign = emitSchema(element, $this);
2650
+ tmp0_associateTo.l2(tmp0_plusAssign.sd_1, tmp0_plusAssign.td_1);
2651
+ }
2652
+ var tmp = tmp0_associateTo;
2653
+ var tmp$ret$11;
2654
+ // Inline function 'kotlin.takeIf' call
2655
+ // Inline function 'kotlin.collections.map' call
2656
+ // Inline function 'kotlin.collections.filter' call
2657
+ var tmp1_filter = _this__u8e3s4.s26_1.u26_1;
2658
+ // Inline function 'kotlin.collections.filterTo' call
2659
+ var tmp0_filterTo = ArrayList_init_$Create$();
2660
+ var tmp0_iterator_0 = tmp1_filter.v();
2661
+ while (tmp0_iterator_0.w()) {
2662
+ var element_0 = tmp0_iterator_0.y();
2663
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2664
+ if (!element_0.x26_1) {
2665
+ tmp0_filterTo.s(element_0);
2666
+ }
2667
+ }
2668
+ // Inline function 'kotlin.collections.mapTo' call
2669
+ var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_filterTo, 10));
2670
+ var tmp0_iterator_1 = tmp0_filterTo.v();
2671
+ while (tmp0_iterator_1.w()) {
2672
+ var item = tmp0_iterator_1.y();
2673
+ var tmp$ret$6;
2674
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2675
+ tmp$ret$6 = item.v26_1.z26_1;
2676
+ tmp0_mapTo.s(tmp$ret$6);
2677
+ }
2678
+ // Inline function 'kotlin.contracts.contract' call
2679
+ var tmp_0;
2680
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2681
+ // Inline function 'kotlin.collections.isNotEmpty' call
2682
+ if (!tmp0_mapTo.c1()) {
2683
+ tmp_0 = tmp0_mapTo;
2684
+ } else {
2685
+ tmp_0 = null;
2686
+ }
2687
+ tmp$ret$11 = tmp_0;
2688
+ return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp$ret$11);
2689
+ }
2690
+ function emit_3(_this__u8e3s4, $this) {
2691
+ var tmp = Type_STRING_getInstance_0();
2692
+ // Inline function 'kotlin.collections.map' call
2693
+ var tmp0_map = _this__u8e3s4.p26_1;
2694
+ // Inline function 'kotlin.collections.mapTo' call
2695
+ var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
2696
+ var tmp0_iterator = tmp0_map.v();
2697
+ while (tmp0_iterator.w()) {
2698
+ var item = tmp0_iterator.y();
2699
+ var tmp$ret$0;
2700
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2701
+ tmp$ret$0 = JsonPrimitive(item);
2702
+ tmp0_mapTo.s(tmp$ret$0);
2703
+ }
2704
+ return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_mapTo);
2705
+ }
2706
+ function emit_4(_this__u8e3s4, $this) {
2707
+ var tmp = Type_STRING_getInstance_0();
2708
+ // Inline function 'kotlin.collections.map' call
2709
+ var tmp0_map = _this__u8e3s4.k28_1;
2710
+ // Inline function 'kotlin.collections.mapTo' call
2711
+ var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
2712
+ var tmp0_iterator = tmp0_map.v();
2713
+ while (tmp0_iterator.w()) {
2714
+ var item = tmp0_iterator.y();
2715
+ var tmp$ret$0;
2716
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2717
+ tmp$ret$0 = emitSchema_0(item, $this);
2718
+ tmp0_mapTo.s(tmp$ret$0);
2719
+ }
2720
+ return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp, VOID, tmp0_mapTo);
2721
+ }
2722
+ function emit_5(_this__u8e3s4, $this, method) {
2723
+ // Inline function 'kotlin.collections.map' call
2724
+ // Inline function 'kotlin.collections.filter' call
2725
+ // Inline function 'kotlin.collections.filterTo' call
2726
+ var tmp0_filterTo = ArrayList_init_$Create$();
2727
+ var tmp0_iterator = _this__u8e3s4.v();
2728
+ while (tmp0_iterator.w()) {
2729
+ var element = tmp0_iterator.y();
2730
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2731
+ if (element.y27_1.equals(method)) {
2732
+ tmp0_filterTo.s(element);
2733
+ }
2734
+ }
2735
+ // Inline function 'kotlin.collections.mapTo' call
2736
+ var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_filterTo, 10));
2737
+ var tmp0_iterator_0 = tmp0_filterTo.v();
2738
+ while (tmp0_iterator_0.w()) {
2739
+ var item = tmp0_iterator_0.y();
2740
+ var tmp$ret$3;
2741
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2742
+ tmp$ret$3 = emit_6(item, $this);
2743
+ tmp0_mapTo.s(tmp$ret$3);
2744
+ }
2745
+ return firstOrNull(tmp0_mapTo);
2746
+ }
2747
+ function emit_6(_this__u8e3s4, $this) {
2748
+ // Inline function 'kotlin.collections.map' call
2749
+ // Inline function 'kotlin.collections.filterIsInstance' call
2750
+ var tmp0_filterIsInstance = _this__u8e3s4.z27_1;
2751
+ // Inline function 'kotlin.collections.filterIsInstanceTo' call
2752
+ var tmp0_filterIsInstanceTo = ArrayList_init_$Create$();
2753
+ var tmp0_iterator = tmp0_filterIsInstance.v();
2754
+ while (tmp0_iterator.w()) {
2755
+ var element = tmp0_iterator.y();
2756
+ if (element instanceof Param) {
2757
+ tmp0_filterIsInstanceTo.s(element);
2758
+ }
2759
+ }
2760
+ // Inline function 'kotlin.collections.mapTo' call
2761
+ var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_filterIsInstanceTo, 10));
2762
+ var tmp0_iterator_0 = tmp0_filterIsInstanceTo.v();
2763
+ while (tmp0_iterator_0.w()) {
2764
+ var item = tmp0_iterator_0.y();
2765
+ var tmp$ret$2;
2766
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2767
+ tmp$ret$2 = emitParameter_1(item, $this);
2768
+ tmp0_mapTo.s(tmp$ret$2);
2769
+ }
2770
+ var tmp = tmp0_mapTo;
2771
+ // Inline function 'kotlin.collections.map' call
2772
+ var tmp2_map = _this__u8e3s4.a28_1;
2773
+ // Inline function 'kotlin.collections.mapTo' call
2774
+ var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_map, 10));
2775
+ var tmp0_iterator_1 = tmp2_map.v();
2776
+ while (tmp0_iterator_1.w()) {
2777
+ var item_0 = tmp0_iterator_1.y();
2778
+ var tmp$ret$5;
2779
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2780
+ tmp$ret$5 = emitParameter_0(item_0, $this, ParameterLocation_QUERY_getInstance_0());
2781
+ tmp0_mapTo_0.s(tmp$ret$5);
2782
+ }
2783
+ var tmp_0 = plus(tmp, tmp0_mapTo_0);
2784
+ // Inline function 'kotlin.collections.map' call
2785
+ var tmp3_map = _this__u8e3s4.b28_1;
2786
+ // Inline function 'kotlin.collections.mapTo' call
2787
+ var tmp0_mapTo_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp3_map, 10));
2788
+ var tmp0_iterator_2 = tmp3_map.v();
2789
+ while (tmp0_iterator_2.w()) {
2790
+ var item_1 = tmp0_iterator_2.y();
2791
+ var tmp$ret$8;
2792
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2793
+ tmp$ret$8 = emitParameter_0(item_1, $this, ParameterLocation_HEADER_getInstance_0());
2794
+ tmp0_mapTo_1.s(tmp$ret$8);
2795
+ }
2796
+ var tmp_1 = plus(tmp_0, tmp0_mapTo_1);
2797
+ // Inline function 'kotlin.collections.ifEmpty' call
2798
+ // Inline function 'kotlin.collections.mapNotNull' call
2799
+ var tmp4_mapNotNull = _this__u8e3s4.d28_1;
2800
+ // Inline function 'kotlin.collections.mapNotNullTo' call
2801
+ var tmp0_mapNotNullTo = ArrayList_init_$Create$();
2802
+ // Inline function 'kotlin.collections.forEach' call
2803
+ var tmp0_iterator_3 = tmp4_mapNotNull.v();
2804
+ while (tmp0_iterator_3.w()) {
2805
+ var element_0 = tmp0_iterator_3.y();
2806
+ // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
2807
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2808
+ var tmp0_safe_receiver = element_0.p27_1;
2809
+ var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : emit_7(tmp0_safe_receiver, $this);
2810
+ if (tmp0_safe_receiver_0 == null)
2811
+ null;
2812
+ else {
2813
+ // Inline function 'kotlin.let' call
2814
+ // Inline function 'kotlin.contracts.contract' call
2815
+ tmp0_mapNotNullTo.s(tmp0_safe_receiver_0);
2816
+ }
2817
+ }
2818
+ var tmp5_ifEmpty = toMap(tmp0_mapNotNullTo);
2819
+ var tmp_2;
2820
+ if (tmp5_ifEmpty.c1()) {
2821
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2822
+ tmp_2 = null;
2823
+ } else {
2824
+ tmp_2 = tmp5_ifEmpty;
2825
+ }
2826
+ var tmp_3 = tmp_2;
2827
+ var tmp$ret$17;
2828
+ $l$block_0: {
2829
+ // Inline function 'kotlin.collections.any' call
2830
+ var tmp6_any = _this__u8e3s4.d28_1;
2831
+ var tmp_4;
2832
+ if (isInterface(tmp6_any, Collection)) {
2833
+ tmp_4 = tmp6_any.c1();
2834
+ } else {
2835
+ tmp_4 = false;
2836
+ }
2837
+ if (tmp_4) {
2838
+ tmp$ret$17 = false;
2839
+ break $l$block_0;
2840
+ }
2841
+ var tmp0_iterator_4 = tmp6_any.v();
2842
+ while (tmp0_iterator_4.w()) {
2843
+ var element_1 = tmp0_iterator_4.y();
2844
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2845
+ var tmp0_safe_receiver_1 = element_1.p27_1;
2846
+ var tmp1_elvis_lhs = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.v27_1;
2847
+ if (tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs) {
2848
+ tmp$ret$17 = true;
2849
+ break $l$block_0;
2850
+ }
2851
+ }
2852
+ tmp$ret$17 = false;
2853
+ }
2854
+ var tmp_5 = new RequestBodyObject(VOID, tmp_3, !tmp$ret$17);
2855
+ // Inline function 'kotlin.collections.map' call
2856
+ // Inline function 'kotlin.collections.groupBy' call
2857
+ var tmp7_groupBy = _this__u8e3s4.e28_1;
2858
+ // Inline function 'kotlin.collections.groupByTo' call
2859
+ var tmp0_groupByTo = LinkedHashMap_init_$Create$_0();
2860
+ var tmp0_iterator_5 = tmp7_groupBy.v();
2861
+ while (tmp0_iterator_5.w()) {
2862
+ var element_2 = tmp0_iterator_5.y();
2863
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2864
+ var key = element_2.q27_1;
2865
+ // Inline function 'kotlin.collections.getOrPut' call
2866
+ var value = tmp0_groupByTo.u2(key);
2867
+ var tmp_6;
2868
+ if (value == null) {
2869
+ // Inline function 'kotlin.collections.groupByTo.<anonymous>' call
2870
+ var answer = ArrayList_init_$Create$();
2871
+ tmp0_groupByTo.l2(key, answer);
2872
+ tmp_6 = answer;
2873
+ } else {
2874
+ tmp_6 = value;
2875
+ }
2876
+ var list = tmp_6;
2877
+ list.s(element_2);
2878
+ }
2879
+ // Inline function 'kotlin.collections.mapTo' call
2880
+ var tmp0_mapTo_2 = ArrayList_init_$Create$_0(tmp0_groupByTo.n());
2881
+ // Inline function 'kotlin.collections.iterator' call
2882
+ var tmp0_iterator_6 = tmp0_groupByTo.n2().v();
2883
+ while (tmp0_iterator_6.w()) {
2884
+ var item_2 = tmp0_iterator_6.y();
2885
+ var tmp$ret$42;
2886
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2887
+ // Inline function 'kotlin.collections.component1' call
2888
+ var statusCode = item_2.o2();
2889
+ // Inline function 'kotlin.collections.component2' call
2890
+ var res = item_2.p2();
2891
+ var tmp_7 = new StatusCode_0(_StatusCode___init__impl__t1yi9q_0(statusCode));
2892
+ // Inline function 'kotlin.collections.associate' call
2893
+ // Inline function 'kotlin.collections.flatMap' call
2894
+ // Inline function 'kotlin.collections.flatMapTo' call
2895
+ var tmp0_flatMapTo = ArrayList_init_$Create$();
2896
+ var tmp0_iterator_7 = res.v();
2897
+ while (tmp0_iterator_7.w()) {
2898
+ var element_3 = tmp0_iterator_7.y();
2899
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
2900
+ var list_0 = element_3.r27_1;
2901
+ addAll(tmp0_flatMapTo, list_0);
2902
+ }
2903
+ var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(tmp0_flatMapTo, 10)), 16);
2904
+ // Inline function 'kotlin.collections.associateTo' call
2905
+ var tmp0_associateTo = LinkedHashMap_init_$Create$(capacity);
2906
+ var tmp0_iterator_8 = tmp0_flatMapTo.v();
2907
+ while (tmp0_iterator_8.w()) {
2908
+ var element_4 = tmp0_iterator_8.y();
2909
+ // Inline function 'kotlin.collections.plusAssign' call
2910
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
2911
+ var tmp0_plusAssign = emitHeader(element_4, $this);
2912
+ tmp0_associateTo.l2(tmp0_plusAssign.sd_1, tmp0_plusAssign.td_1);
2913
+ }
2914
+ var tmp1_description = '' + _this__u8e3s4.x27_1 + ' ' + statusCode + ' response';
2915
+ // Inline function 'kotlin.collections.ifEmpty' call
2916
+ // Inline function 'kotlin.collections.associate' call
2917
+ // Inline function 'kotlin.collections.mapNotNull' call
2918
+ // Inline function 'kotlin.collections.mapNotNullTo' call
2919
+ var tmp0_mapNotNullTo_0 = ArrayList_init_$Create$();
2920
+ // Inline function 'kotlin.collections.forEach' call
2921
+ var tmp0_iterator_9 = res.v();
2922
+ while (tmp0_iterator_9.w()) {
2923
+ var element_5 = tmp0_iterator_9.y();
2924
+ // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
2925
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
2926
+ var tmp0_safe_receiver_2 = element_5.s27_1;
2927
+ if (tmp0_safe_receiver_2 == null)
2928
+ null;
2929
+ else {
2930
+ // Inline function 'kotlin.let' call
2931
+ // Inline function 'kotlin.contracts.contract' call
2932
+ tmp0_mapNotNullTo_0.s(tmp0_safe_receiver_2);
2933
+ }
2934
+ }
2935
+ var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(tmp0_mapNotNullTo_0, 10)), 16);
2936
+ // Inline function 'kotlin.collections.associateTo' call
2937
+ var tmp0_associateTo_0 = LinkedHashMap_init_$Create$(capacity_0);
2938
+ var tmp0_iterator_10 = tmp0_mapNotNullTo_0.v();
2939
+ while (tmp0_iterator_10.w()) {
2940
+ var element_6 = tmp0_iterator_10.y();
2941
+ // Inline function 'kotlin.collections.plusAssign' call
2942
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
2943
+ var tmp0_plusAssign_0 = emit_7(element_6, $this);
2944
+ tmp0_associateTo_0.l2(tmp0_plusAssign_0.sd_1, tmp0_plusAssign_0.td_1);
2945
+ }
2946
+ var tmp_8;
2947
+ if (tmp0_associateTo_0.c1()) {
2948
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
2949
+ tmp_8 = null;
2950
+ } else {
2951
+ tmp_8 = tmp0_associateTo_0;
2952
+ }
2953
+ var tmp2_content = tmp_8;
2954
+ tmp$ret$42 = to(tmp_7, new ResponseObject_0(tmp1_description, tmp0_associateTo, tmp2_content));
2955
+ tmp0_mapTo_2.s(tmp$ret$42);
2956
+ }
2957
+ return new OperationObject_0(VOID, VOID, VOID, VOID, _this__u8e3s4.x27_1.z26_1, tmp_1, tmp_5, toMap(tmp0_mapTo_2));
2958
+ }
2959
+ function emitSegment_0(_this__u8e3s4, $this) {
2960
+ return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenApiV3Emitter$emitSegment$lambda);
2961
+ }
2962
+ function emitParameter_0(_this__u8e3s4, $this, location) {
2963
+ var tmp0_name = _this__u8e3s4.v26_1.z26_1;
2964
+ var tmp1_schema = emitSchema_0(_this__u8e3s4.w26_1, $this);
2965
+ return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_schema, VOID, VOID, VOID, tmp0_name, location);
2966
+ }
2967
+ function emitParameter_1(_this__u8e3s4, $this) {
2968
+ var tmp0_in = ParameterLocation_PATH_getInstance_0();
2969
+ var tmp1_name = _this__u8e3s4.j27_1.z26_1;
2970
+ var tmp2_schema = emitSchema_0(_this__u8e3s4.k27_1, $this);
2971
+ return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_schema, VOID, VOID, VOID, tmp1_name, tmp0_in);
2972
+ }
2973
+ function emitHeader(_this__u8e3s4, $this) {
2974
+ return to(_this__u8e3s4.v26_1.z26_1, emitHeader_0(_this__u8e3s4.w26_1, $this));
2975
+ }
2976
+ function emitSchema(_this__u8e3s4, $this) {
2977
+ return to(_this__u8e3s4.v26_1.z26_1, emitSchema_0(_this__u8e3s4.w26_1, $this));
2978
+ }
2979
+ function emitHeader_0(_this__u8e3s4, $this) {
2980
+ var tmp;
2981
+ if (_this__u8e3s4 instanceof Custom) {
2982
+ tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.p2()));
2983
+ } else {
2984
+ if (_this__u8e3s4 instanceof Primitive) {
2985
+ tmp = new HeaderObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitSchema_0(_this__u8e3s4, $this));
2986
+ } else {
2987
+ if (_this__u8e3s4 instanceof Any) {
2988
+ throw IllegalStateException_init_$Create$('Cannot map Any');
2989
+ } else {
2990
+ if (_this__u8e3s4 instanceof Unit) {
2991
+ throw IllegalStateException_init_$Create$('Cannot map Unit');
2992
+ } else {
2993
+ noWhenBranchMatchedException();
2994
+ }
2995
+ }
2996
+ }
2997
+ }
2998
+ return tmp;
1865
2999
  }
1866
- protoOf(Companion_0).r22 = function (json, strict) {
3000
+ function emitSchema_0(_this__u8e3s4, $this) {
3001
+ var tmp;
3002
+ if (_this__u8e3s4 instanceof Custom) {
3003
+ tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/schemas/' + _this__u8e3s4.p2()));
3004
+ } else {
3005
+ if (_this__u8e3s4 instanceof Primitive) {
3006
+ tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType_1(_this__u8e3s4.a27_1, $this));
3007
+ } else {
3008
+ if (_this__u8e3s4 instanceof Any) {
3009
+ throw IllegalStateException_init_$Create$('Cannot map Any');
3010
+ } else {
3011
+ if (_this__u8e3s4 instanceof Unit) {
3012
+ throw IllegalStateException_init_$Create$('Cannot map Unit');
3013
+ } else {
3014
+ noWhenBranchMatchedException();
3015
+ }
3016
+ }
3017
+ }
3018
+ }
3019
+ var ref = tmp;
3020
+ if (_this__u8e3s4.h28()) {
3021
+ return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_OBJECT_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, ref);
3022
+ }
3023
+ if (_this__u8e3s4.s20()) {
3024
+ return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance_0(), VOID, VOID, VOID, VOID, ref);
3025
+ }
3026
+ return ref;
3027
+ }
3028
+ function emitType_1(_this__u8e3s4, $this) {
3029
+ var tmp;
3030
+ switch (_this__u8e3s4.d9_1) {
3031
+ case 0:
3032
+ tmp = Type_STRING_getInstance_0();
3033
+ break;
3034
+ case 1:
3035
+ tmp = Type_INTEGER_getInstance_0();
3036
+ break;
3037
+ case 2:
3038
+ tmp = Type_NUMBER_getInstance_0();
3039
+ break;
3040
+ case 3:
3041
+ tmp = Type_BOOLEAN_getInstance_0();
3042
+ break;
3043
+ default:
3044
+ noWhenBranchMatchedException();
3045
+ break;
3046
+ }
3047
+ return tmp;
3048
+ }
3049
+ function emit_7(_this__u8e3s4, $this) {
3050
+ return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.t27_1)), new MediaTypeObject(emitSchema_0(_this__u8e3s4.u27_1, $this)));
3051
+ }
3052
+ function OpenApiV3Emitter$emitSegment$lambda(it) {
3053
+ var tmp;
3054
+ if (it instanceof Param) {
3055
+ tmp = '{' + it.j27_1.z26_1 + '}';
3056
+ } else {
3057
+ if (it instanceof Literal) {
3058
+ tmp = it.o27_1;
3059
+ } else {
3060
+ noWhenBranchMatchedException();
3061
+ }
3062
+ }
3063
+ return tmp;
3064
+ }
3065
+ function OpenApiV3Emitter() {
3066
+ }
3067
+ protoOf(OpenApiV3Emitter).d2c = function (ast, options) {
3068
+ var tmp1_elvis_lhs = options == null ? null : options.e2c_1;
3069
+ var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
3070
+ var tmp3_elvis_lhs = options == null ? null : options.f2c_1;
3071
+ return new OpenAPIObject('3.0.0', new InfoObject_0(tmp, VOID, VOID, VOID, VOID, tmp3_elvis_lhs == null ? '0.0.0' : tmp3_elvis_lhs), VOID, emitPaths(ast, this), emitComponents(ast, this));
3072
+ };
3073
+ protoOf(OpenApiV3Emitter).g2c = function (ast, options, $super) {
3074
+ options = options === VOID ? null : options;
3075
+ return $super === VOID ? this.d2c(ast, options) : $super.d2c.call(this, ast, options);
3076
+ };
3077
+ function OpenApiV3Parser$Companion$parse$lambda($strict) {
3078
+ return function ($this$Json) {
3079
+ $this$Json.m13_1 = true;
3080
+ $this$Json.j13_1 = $strict;
3081
+ return Unit_getInstance();
3082
+ };
3083
+ }
3084
+ function Companion_0() {
3085
+ Companion_instance_0 = this;
3086
+ }
3087
+ protoOf(Companion_0).n2b = function (json, strict) {
1867
3088
  // Inline function 'kotlin.let' call
1868
- var tmp0_let = (new OpenAPI_0(Json(VOID, OpenApiParser$Companion$parse$lambda_0(strict)))).i17(json);
3089
+ var tmp0_let = (new OpenAPI_0(Json(VOID, OpenApiV3Parser$Companion$parse$lambda(strict)))).x1c(json);
1869
3090
  // Inline function 'kotlin.contracts.contract' call
1870
3091
  // Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
1871
- return parse(new OpenApiParser_0(tmp0_let));
3092
+ return parse(new OpenApiV3Parser(tmp0_let));
1872
3093
  };
1873
- protoOf(Companion_0).h23 = function (json, strict, $super) {
3094
+ protoOf(Companion_0).h2c = function (json, strict, $super) {
1874
3095
  strict = strict === VOID ? false : strict;
1875
- return $super === VOID ? this.r22(json, strict) : $super.r22.call(this, json, strict);
3096
+ return $super === VOID ? this.n2b(json, strict) : $super.n2b.call(this, json, strict);
1876
3097
  };
1877
3098
  var Companion_instance_0;
1878
3099
  function Companion_getInstance_2() {
@@ -1885,16 +3106,16 @@
1885
3106
  }
1886
3107
  function parseEndpoint($this) {
1887
3108
  // Inline function 'kotlin.collections.flatMap' call
1888
- var tmp0_flatMap = $this.i23_1.i1g_1;
3109
+ var tmp0_flatMap = $this.i2c_1.e1n_1;
1889
3110
  // Inline function 'kotlin.collections.flatMapTo' call
1890
3111
  var tmp0_flatMapTo = ArrayList_init_$Create$();
1891
3112
  // Inline function 'kotlin.collections.iterator' call
1892
3113
  var tmp0_iterator = tmp0_flatMap.n2().v();
1893
3114
  while (tmp0_iterator.w()) {
1894
3115
  var element = tmp0_iterator.y();
1895
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>' call
3116
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>' call
1896
3117
  // Inline function 'kotlin.collections.component1' call
1897
- var key = element.o2().q1g_1;
3118
+ var key = element.o2().d1o_1;
1898
3119
  // Inline function 'kotlin.collections.component2' call
1899
3120
  var path = element.p2();
1900
3121
  // Inline function 'kotlin.collections.map' call
@@ -1906,7 +3127,7 @@
1906
3127
  while (tmp0_iterator_0.w()) {
1907
3128
  var item = tmp0_iterator_0.y();
1908
3129
  var tmp$ret$52;
1909
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>' call
3130
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>' call
1910
3131
  // Inline function 'kotlin.collections.component1' call
1911
3132
  var method = item.o2();
1912
3133
  // Inline function 'kotlin.collections.component2' call
@@ -1914,7 +3135,7 @@
1914
3135
  var parameters = plus(resolveParameters_2(path, $this), resolveParameters_1(operation, $this));
1915
3136
  var segments = toSegments_0(key, $this, parameters);
1916
3137
  var tmp0_elvis_lhs = toName_1(operation, $this);
1917
- var name = tmp0_elvis_lhs == null ? toName_2(key, $this) + method.b9_1 : tmp0_elvis_lhs;
3138
+ var name = tmp0_elvis_lhs == null ? toName_2(key, $this) + method.c9_1 : tmp0_elvis_lhs;
1918
3139
  // Inline function 'kotlin.collections.map' call
1919
3140
  // Inline function 'kotlin.collections.filter' call
1920
3141
  // Inline function 'kotlin.collections.filterTo' call
@@ -1922,8 +3143,8 @@
1922
3143
  var tmp0_iterator_1 = parameters.v();
1923
3144
  while (tmp0_iterator_1.w()) {
1924
3145
  var element_0 = tmp0_iterator_1.y();
1925
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
1926
- if (element_0.k1i_1.equals(ParameterLocation_QUERY_getInstance_0())) {
3146
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
3147
+ if (element_0.m1s_1.equals(ParameterLocation_QUERY_getInstance_0())) {
1927
3148
  tmp0_filterTo.s(element_0);
1928
3149
  }
1929
3150
  }
@@ -1933,8 +3154,8 @@
1933
3154
  while (tmp0_iterator_2.w()) {
1934
3155
  var item_0 = tmp0_iterator_2.y();
1935
3156
  var tmp$ret$9;
1936
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
1937
- tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().q22([name, 'Parameter', item_0.j1i_1]));
3157
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
3158
+ tmp$ret$9 = toField_2(item_0, $this, Common_getInstance().m2b([name, 'Parameter', item_0.l1s_1]));
1938
3159
  tmp0_mapTo_0.s(tmp$ret$9);
1939
3160
  }
1940
3161
  var query = tmp0_mapTo_0;
@@ -1945,8 +3166,8 @@
1945
3166
  var tmp0_iterator_3 = parameters.v();
1946
3167
  while (tmp0_iterator_3.w()) {
1947
3168
  var element_1 = tmp0_iterator_3.y();
1948
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
1949
- if (element_1.k1i_1.equals(ParameterLocation_HEADER_getInstance_0())) {
3169
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
3170
+ if (element_1.m1s_1.equals(ParameterLocation_HEADER_getInstance_0())) {
1950
3171
  tmp0_filterTo_0.s(element_1);
1951
3172
  }
1952
3173
  }
@@ -1956,8 +3177,8 @@
1956
3177
  while (tmp0_iterator_4.w()) {
1957
3178
  var item_1 = tmp0_iterator_4.y();
1958
3179
  var tmp$ret$15;
1959
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
1960
- tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().q22([name, 'Parameter', item_1.j1i_1]));
3180
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
3181
+ tmp$ret$15 = toField_2(item_1, $this, Common_getInstance().m2b([name, 'Parameter', item_1.l1s_1]));
1961
3182
  tmp0_mapTo_1.s(tmp$ret$15);
1962
3183
  }
1963
3184
  var headers = tmp0_mapTo_1;
@@ -1968,8 +3189,8 @@
1968
3189
  var tmp0_iterator_5 = parameters.v();
1969
3190
  while (tmp0_iterator_5.w()) {
1970
3191
  var element_2 = tmp0_iterator_5.y();
1971
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
1972
- if (element_2.k1i_1.equals(ParameterLocation_COOKIE_getInstance())) {
3192
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
3193
+ if (element_2.m1s_1.equals(ParameterLocation_COOKIE_getInstance())) {
1973
3194
  tmp0_filterTo_1.s(element_2);
1974
3195
  }
1975
3196
  }
@@ -1979,12 +3200,12 @@
1979
3200
  while (tmp0_iterator_6.w()) {
1980
3201
  var item_2 = tmp0_iterator_6.y();
1981
3202
  var tmp$ret$21;
1982
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
1983
- tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().q22([name, 'Parameter', item_2.j1i_1]));
3203
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
3204
+ tmp$ret$21 = toField_2(item_2, $this, Common_getInstance().m2b([name, 'Parameter', item_2.l1s_1]));
1984
3205
  tmp0_mapTo_2.s(tmp$ret$21);
1985
3206
  }
1986
3207
  var cookies = tmp0_mapTo_2;
1987
- var tmp1_safe_receiver = operation.p1h_1;
3208
+ var tmp1_safe_receiver = operation.o1q_1;
1988
3209
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_6(tmp1_safe_receiver, $this);
1989
3210
  var tmp;
1990
3211
  if (tmp2_safe_receiver == null) {
@@ -1992,8 +3213,8 @@
1992
3213
  } else {
1993
3214
  // Inline function 'kotlin.let' call
1994
3215
  // Inline function 'kotlin.contracts.contract' call
1995
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
1996
- var tmp0_safe_receiver = tmp2_safe_receiver.p1i_1;
3216
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
3217
+ var tmp0_safe_receiver = tmp2_safe_receiver.v1u_1;
1997
3218
  var tmp_0;
1998
3219
  if (tmp0_safe_receiver == null) {
1999
3220
  tmp_0 = null;
@@ -2006,19 +3227,19 @@
2006
3227
  while (tmp0_iterator_7.w()) {
2007
3228
  var item_3 = tmp0_iterator_7.y();
2008
3229
  var tmp$ret$27;
2009
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
3230
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
2010
3231
  // Inline function 'kotlin.collections.component1' call
2011
- var mediaType = item_3.o2().u1i_1;
3232
+ var mediaType = item_3.o2().k1w_1;
2012
3233
  // Inline function 'kotlin.collections.component2' call
2013
3234
  var mediaObject = item_3.p2();
2014
3235
  var tmp_1 = _MediaType___get_value__impl__wy58mp(mediaType);
2015
- var schema = mediaObject.x1i_1;
3236
+ var schema = mediaObject.o1w_1;
2016
3237
  var tmp_2;
2017
3238
  if (schema instanceof ReferenceObject_0) {
2018
3239
  tmp_2 = toReference_1(schema, $this);
2019
3240
  } else {
2020
3241
  if (schema instanceof SchemaObject_0) {
2021
- tmp_2 = toReference_2(schema, $this, Common_getInstance().q22([name, 'RequestBody']));
3242
+ tmp_2 = toReference_2(schema, $this, Common_getInstance().m2b([name, 'RequestBody']));
2022
3243
  } else {
2023
3244
  if (schema == null) {
2024
3245
  throw new NotImplementedError('An operation is not implemented: Not yet implemented');
@@ -2028,8 +3249,8 @@
2028
3249
  }
2029
3250
  }
2030
3251
  var tmp_3 = tmp_2;
2031
- var tmp0_elvis_lhs_0 = tmp2_safe_receiver.q1i_1;
2032
- tmp$ret$27 = new Request(new Content(tmp_1, tmp_3, tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0));
3252
+ var tmp0_elvis_lhs_0 = tmp2_safe_receiver.w1u_1;
3253
+ tmp$ret$27 = new Request(new Content(tmp_1, tmp_3, !(tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0)));
2033
3254
  tmp0_mapTo_3.s(tmp$ret$27);
2034
3255
  }
2035
3256
  tmp_0 = tmp0_mapTo_3;
@@ -2040,7 +3261,7 @@
2040
3261
  var requests = tmp3_elvis_lhs == null ? listOf(new Request(null)) : tmp3_elvis_lhs;
2041
3262
  // Inline function 'kotlin.collections.flatMap' call
2042
3263
  // Inline function 'kotlin.collections.orEmpty' call
2043
- var tmp0_elvis_lhs_1 = operation.q1h_1;
3264
+ var tmp0_elvis_lhs_1 = operation.p1q_1;
2044
3265
  var tmp4_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
2045
3266
  // Inline function 'kotlin.collections.flatMapTo' call
2046
3267
  var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
@@ -2048,16 +3269,16 @@
2048
3269
  var tmp0_iterator_8 = tmp4_flatMap.n2().v();
2049
3270
  while (tmp0_iterator_8.w()) {
2050
3271
  var element_3 = tmp0_iterator_8.y();
2051
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
3272
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
2052
3273
  // Inline function 'kotlin.collections.component1' call
2053
- var status = element_3.o2().t1k_1;
3274
+ var status = element_3.o2().x1r_1;
2054
3275
  // Inline function 'kotlin.collections.component2' call
2055
3276
  var res = element_3.p2();
2056
3277
  // Inline function 'kotlin.let' call
2057
3278
  var tmp0_let = resolve_7(res, $this);
2058
3279
  // Inline function 'kotlin.contracts.contract' call
2059
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
2060
- var tmp0_safe_receiver_0 = tmp0_let.y1k_1;
3280
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
3281
+ var tmp0_safe_receiver_0 = tmp0_let.j1u_1;
2061
3282
  var tmp_4;
2062
3283
  if (tmp0_safe_receiver_0 == null) {
2063
3284
  tmp_4 = null;
@@ -2070,14 +3291,14 @@
2070
3291
  while (tmp0_iterator_9.w()) {
2071
3292
  var item_4 = tmp0_iterator_9.y();
2072
3293
  var tmp$ret$44;
2073
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
3294
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
2074
3295
  // Inline function 'kotlin.collections.component1' call
2075
- var contentType = item_4.o2().u1i_1;
3296
+ var contentType = item_4.o2().k1w_1;
2076
3297
  // Inline function 'kotlin.collections.component2' call
2077
3298
  var media = item_4.p2();
2078
3299
  var tmp_5 = _StatusCode___get_value__impl__we50mu_0(status);
2079
3300
  // Inline function 'kotlin.collections.orEmpty' call
2080
- var tmp0_safe_receiver_1 = tmp0_let.x1k_1;
3301
+ var tmp0_safe_receiver_1 = tmp0_let.i1u_1;
2081
3302
  var tmp_6;
2082
3303
  if (tmp0_safe_receiver_1 == null) {
2083
3304
  tmp_6 = null;
@@ -2090,8 +3311,8 @@
2090
3311
  while (tmp0_iterator_10.w()) {
2091
3312
  var item_5 = tmp0_iterator_10.y();
2092
3313
  var tmp$ret$40;
2093
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
2094
- tmp$ret$40 = toField_3(resolve_4(item_5.p2(), $this), $this, item_5.o2(), Common_getInstance().q22([name, 'ResponseHeader']));
3314
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
3315
+ tmp$ret$40 = toField_3(resolve_4(item_5.p2(), $this), $this, item_5.o2(), Common_getInstance().m2b([name, 'ResponseHeader']));
2095
3316
  tmp0_mapTo_5.s(tmp$ret$40);
2096
3317
  }
2097
3318
  tmp_6 = tmp0_mapTo_5;
@@ -2099,13 +3320,13 @@
2099
3320
  var tmp0_elvis_lhs_2 = tmp_6;
2100
3321
  var tmp_7 = tmp0_elvis_lhs_2 == null ? emptyList() : tmp0_elvis_lhs_2;
2101
3322
  var tmp_8 = _MediaType___get_value__impl__wy58mp(contentType);
2102
- var schema_0 = media.x1i_1;
3323
+ var schema_0 = media.o1w_1;
2103
3324
  var tmp_9;
2104
3325
  if (schema_0 instanceof ReferenceObject_0) {
2105
3326
  tmp_9 = toReference_1(schema_0, $this);
2106
3327
  } else {
2107
3328
  if (schema_0 instanceof SchemaObject_0) {
2108
- tmp_9 = toReference_2(schema_0, $this, Common_getInstance().q22([name, _StatusCode___get_value__impl__we50mu_0(status), _MediaType___get_value__impl__wy58mp(contentType), 'ResponseBody']));
3329
+ tmp_9 = toReference_2(schema_0, $this, Common_getInstance().m2b([name, _StatusCode___get_value__impl__we50mu_0(status), _MediaType___get_value__impl__wy58mp(contentType), 'ResponseBody']));
2109
3330
  } else {
2110
3331
  if (schema_0 == null) {
2111
3332
  tmp_9 = new Any(false);
@@ -2115,9 +3336,9 @@
2115
3336
  }
2116
3337
  }
2117
3338
  var tmp_10 = tmp_9;
2118
- var tmp1_safe_receiver_0 = media.x1i_1;
3339
+ var tmp1_safe_receiver_0 = media.o1w_1;
2119
3340
  var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : resolve_3(tmp1_safe_receiver_0, $this);
2120
- var tmp3_elvis_lhs_0 = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.g1j_1;
3341
+ var tmp3_elvis_lhs_0 = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.u1s_1;
2121
3342
  tmp$ret$44 = new Response(tmp_5, tmp_7, new Content(tmp_8, tmp_10, tmp3_elvis_lhs_0 == null ? false : tmp3_elvis_lhs_0));
2122
3343
  tmp0_mapTo_4.s(tmp$ret$44);
2123
3344
  }
@@ -2128,7 +3349,7 @@
2128
3349
  addAll(tmp0_flatMapTo_0, list);
2129
3350
  }
2130
3351
  var responses = tmp0_flatMapTo_0;
2131
- tmp$ret$52 = new Endpoint(name, method, segments, query, headers, cookies, requests, responses);
3352
+ tmp$ret$52 = new Endpoint(null, Companion_getInstance_0().f28(name), method, segments, query, headers, cookies, requests, responses);
2132
3353
  tmp0_mapTo.s(tmp$ret$52);
2133
3354
  }
2134
3355
  var list_0 = tmp0_mapTo;
@@ -2137,32 +3358,32 @@
2137
3358
  return tmp0_flatMapTo;
2138
3359
  }
2139
3360
  function parseParameters_0($this) {
2140
- return flatMapRequests_0($this.i23_1, $this, OpenApiParser$parseParameters$lambda_0($this));
3361
+ return flatMapRequests_0($this.i2c_1, $this, OpenApiV3Parser$parseParameters$lambda($this));
2141
3362
  }
2142
3363
  function parseRequestBody_0($this) {
2143
- return flatMapRequests_0($this.i23_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
3364
+ return flatMapRequests_0($this.i2c_1, $this, OpenApiV3Parser$parseRequestBody$lambda($this));
2144
3365
  }
2145
3366
  function parseResponseBody_0($this) {
2146
- return flatMapResponses_0($this.i23_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
3367
+ return flatMapResponses_0($this.i2c_1, $this, OpenApiV3Parser$parseResponseBody$lambda($this));
2147
3368
  }
2148
3369
  function parseComponents($this) {
2149
3370
  // Inline function 'kotlin.collections.flatMap' call
2150
3371
  // Inline function 'kotlin.collections.filter' call
2151
3372
  // Inline function 'kotlin.collections.orEmpty' call
2152
- var tmp0_safe_receiver = $this.i23_1.j1g_1;
2153
- var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r1l_1;
3373
+ var tmp0_safe_receiver = $this.i2c_1.f1n_1;
3374
+ var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y1o_1;
2154
3375
  var tmp1_filter = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
2155
3376
  // Inline function 'kotlin.collections.filterTo' call
2156
- var tmp0_filterTo = LinkedHashMap_init_$Create$();
3377
+ var tmp0_filterTo = LinkedHashMap_init_$Create$_0();
2157
3378
  // Inline function 'kotlin.collections.iterator' call
2158
3379
  var tmp0_iterator = tmp1_filter.n2().v();
2159
3380
  while (tmp0_iterator.w()) {
2160
3381
  var element = tmp0_iterator.y();
2161
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
3382
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseComponents.<anonymous>' call
2162
3383
  var s = element.p2();
2163
3384
  var tmp;
2164
3385
  if (s instanceof SchemaObject_0) {
2165
- tmp = s.w1j_1 == null;
3386
+ tmp = s.k1t_1 == null;
2166
3387
  } else {
2167
3388
  tmp = false;
2168
3389
  }
@@ -2176,8 +3397,8 @@
2176
3397
  var tmp0_iterator_0 = tmp0_filterTo.n2().v();
2177
3398
  while (tmp0_iterator_0.w()) {
2178
3399
  var element_0 = tmp0_iterator_0.y();
2179
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
2180
- var list = flatten_2(element_0.p2(), $this, Common_getInstance().q22([element_0.o2()]));
3400
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseComponents.<anonymous>' call
3401
+ var list = flatten_2(element_0.p2(), $this, Common_getInstance().m2b([element_0.o2()]));
2181
3402
  addAll(tmp0_flatMapTo, list);
2182
3403
  }
2183
3404
  return tmp0_flatMapTo;
@@ -2186,15 +3407,15 @@
2186
3407
  return charSequenceGet(_this__u8e3s4, 0) === _Char___init__impl__6a9atx(123) ? charSequenceGet(_this__u8e3s4, _this__u8e3s4.length - 1 | 0) === _Char___init__impl__6a9atx(125) : false;
2187
3408
  }
2188
3409
  function toName_1(_this__u8e3s4, $this) {
2189
- var tmp0_safe_receiver = _this__u8e3s4.n1h_1;
3410
+ var tmp0_safe_receiver = _this__u8e3s4.m1q_1;
2190
3411
  var tmp;
2191
3412
  if (tmp0_safe_receiver == null) {
2192
3413
  tmp = null;
2193
3414
  } else {
2194
3415
  // Inline function 'kotlin.let' call
2195
3416
  // Inline function 'kotlin.contracts.contract' call
2196
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
2197
- tmp = Common_getInstance().q22([tmp0_safe_receiver]);
3417
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toName.<anonymous>' call
3418
+ tmp = Common_getInstance().m2b([tmp0_safe_receiver]);
2198
3419
  }
2199
3420
  return tmp;
2200
3421
  }
@@ -2206,14 +3427,14 @@
2206
3427
  var tmp0_iterator = tmp0_filter.v();
2207
3428
  while (tmp0_iterator.w()) {
2208
3429
  var element = tmp0_iterator.y();
2209
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
3430
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toName.<anonymous>' call
2210
3431
  // Inline function 'kotlin.text.isNotBlank' call
2211
3432
  if (!isBlank(element)) {
2212
3433
  tmp0_filterTo.s(element);
2213
3434
  }
2214
3435
  }
2215
3436
  var tmp = tmp0_filterTo;
2216
- return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda_0($this));
3437
+ return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiV3Parser$toName$lambda($this));
2217
3438
  }
2218
3439
  function toSegments_0(_this__u8e3s4, $this, parameters) {
2219
3440
  // Inline function 'kotlin.collections.map' call
@@ -2224,7 +3445,7 @@
2224
3445
  var tmp0_iterator = tmp0_filter.v();
2225
3446
  while (tmp0_iterator.w()) {
2226
3447
  var element = tmp0_iterator.y();
2227
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>' call
3448
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toSegments.<anonymous>' call
2228
3449
  // Inline function 'kotlin.text.isNotBlank' call
2229
3450
  if (!isBlank(element)) {
2230
3451
  tmp0_filterTo.s(element);
@@ -2236,7 +3457,7 @@
2236
3457
  while (tmp0_iterator_0.w()) {
2237
3458
  var item = tmp0_iterator_0.y();
2238
3459
  var tmp$ret$11;
2239
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>' call
3460
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toSegments.<anonymous>' call
2240
3461
  var tmp;
2241
3462
  switch (isParam_0(item, $this)) {
2242
3463
  case true:
@@ -2255,8 +3476,8 @@
2255
3476
  var tmp0_iterator_1 = parameters.v();
2256
3477
  while (tmp0_iterator_1.w()) {
2257
3478
  var element_0 = tmp0_iterator_1.y();
2258
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
2259
- if (element_0.j1i_1 === param) {
3479
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toSegments.<anonymous>.<anonymous>' call
3480
+ if (element_0.l1s_1 === param) {
2260
3481
  tmp$ret$7 = element_0;
2261
3482
  break $l$block;
2262
3483
  }
@@ -2265,17 +3486,17 @@
2265
3486
  }
2266
3487
 
2267
3488
  var tmp1_safe_receiver = tmp$ret$7;
2268
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f1i_1;
3489
+ var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h1s_1;
2269
3490
  var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : resolve_3(tmp2_safe_receiver, $this);
2270
- var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : toReference_2(tmp3_safe_receiver, $this, Common_getInstance().q22([name, 'Parameter', param]));
3491
+ var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : toReference_2(tmp3_safe_receiver, $this, Common_getInstance().m2b([name, 'Parameter', param]));
2271
3492
  var tmp_0;
2272
3493
  if (tmp4_safe_receiver == null) {
2273
3494
  tmp_0 = null;
2274
3495
  } else {
2275
3496
  // Inline function 'kotlin.let' call
2276
3497
  // Inline function 'kotlin.contracts.contract' call
2277
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
2278
- tmp_0 = new Param(Companion_getInstance_0().n1z(param), tmp4_safe_receiver);
3498
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toSegments.<anonymous>.<anonymous>' call
3499
+ tmp_0 = new Param(Companion_getInstance_0().f28(param), tmp4_safe_receiver);
2279
3500
  }
2280
3501
 
2281
3502
  var tmp5_elvis_lhs = tmp_0;
@@ -2302,7 +3523,7 @@
2302
3523
  return tmp0_mapTo;
2303
3524
  }
2304
3525
  function resolveParameters_1(_this__u8e3s4, $this) {
2305
- var tmp0_safe_receiver = _this__u8e3s4.o1h_1;
3526
+ var tmp0_safe_receiver = _this__u8e3s4.n1q_1;
2306
3527
  var tmp;
2307
3528
  if (tmp0_safe_receiver == null) {
2308
3529
  tmp = null;
@@ -2315,7 +3536,7 @@
2315
3536
  while (tmp0_iterator.w()) {
2316
3537
  var element = tmp0_iterator.y();
2317
3538
  // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
2318
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.resolveParameters.<anonymous>' call
3539
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.resolveParameters.<anonymous>' call
2319
3540
  var tmp_0;
2320
3541
  if (element instanceof ParameterObject_0) {
2321
3542
  tmp_0 = element;
@@ -2341,7 +3562,7 @@
2341
3562
  return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
2342
3563
  }
2343
3564
  function resolveParameters_2(_this__u8e3s4, $this) {
2344
- var tmp0_safe_receiver = _this__u8e3s4.f1h_1;
3565
+ var tmp0_safe_receiver = _this__u8e3s4.t1o_1;
2345
3566
  var tmp;
2346
3567
  if (tmp0_safe_receiver == null) {
2347
3568
  tmp = null;
@@ -2354,7 +3575,7 @@
2354
3575
  while (tmp0_iterator.w()) {
2355
3576
  var element = tmp0_iterator.y();
2356
3577
  // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
2357
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.resolveParameters.<anonymous>' call
3578
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.resolveParameters.<anonymous>' call
2358
3579
  var tmp_0;
2359
3580
  if (element instanceof ParameterObject_0) {
2360
3581
  tmp_0 = element;
@@ -2380,8 +3601,8 @@
2380
3601
  return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
2381
3602
  }
2382
3603
  function resolveParameterObject_0(_this__u8e3s4, $this) {
2383
- var tmp0_safe_receiver = $this.i23_1.j1g_1;
2384
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t1l_1;
3604
+ var tmp0_safe_receiver = $this.i2c_1.f1n_1;
3605
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1p_1;
2385
3606
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
2386
3607
  var tmp;
2387
3608
  if (tmp2_safe_receiver == null) {
@@ -2389,7 +3610,7 @@
2389
3610
  } else {
2390
3611
  // Inline function 'kotlin.let' call
2391
3612
  // Inline function 'kotlin.contracts.contract' call
2392
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.resolveParameterObject.<anonymous>' call
3613
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.resolveParameterObject.<anonymous>' call
2393
3614
  var tmp_0;
2394
3615
  if (tmp2_safe_receiver instanceof ParameterObject_0) {
2395
3616
  tmp_0 = tmp2_safe_receiver;
@@ -2405,8 +3626,8 @@
2405
3626
  return tmp;
2406
3627
  }
2407
3628
  function resolveSchemaObject_0(_this__u8e3s4, $this) {
2408
- var tmp0_safe_receiver = $this.i23_1.j1g_1;
2409
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r1l_1;
3629
+ var tmp0_safe_receiver = $this.i2c_1.f1n_1;
3630
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y1o_1;
2410
3631
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
2411
3632
  var tmp;
2412
3633
  if (tmp2_safe_receiver == null) {
@@ -2414,7 +3635,7 @@
2414
3635
  } else {
2415
3636
  // Inline function 'kotlin.let' call
2416
3637
  // Inline function 'kotlin.contracts.contract' call
2417
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.resolveSchemaObject.<anonymous>' call
3638
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.resolveSchemaObject.<anonymous>' call
2418
3639
  var tmp_0;
2419
3640
  if (tmp2_safe_receiver instanceof SchemaObject_0) {
2420
3641
  tmp_0 = to(_this__u8e3s4, tmp2_safe_receiver);
@@ -2430,7 +3651,7 @@
2430
3651
  var tmp3_elvis_lhs = tmp;
2431
3652
  var tmp_1;
2432
3653
  if (tmp3_elvis_lhs == null) {
2433
- var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.d1j_1);
3654
+ var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.r1s_1);
2434
3655
  throw IllegalStateException_init_$Create$(toString(tmp0_error));
2435
3656
  } else {
2436
3657
  tmp_1 = tmp3_elvis_lhs;
@@ -2438,8 +3659,8 @@
2438
3659
  return tmp_1;
2439
3660
  }
2440
3661
  function resolveHeaderObject(_this__u8e3s4, $this) {
2441
- var tmp0_safe_receiver = $this.i23_1.j1g_1;
2442
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w1l_1;
3662
+ var tmp0_safe_receiver = $this.i2c_1.f1n_1;
3663
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d1p_1;
2443
3664
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
2444
3665
  var tmp;
2445
3666
  if (tmp2_safe_receiver == null) {
@@ -2447,7 +3668,7 @@
2447
3668
  } else {
2448
3669
  // Inline function 'kotlin.let' call
2449
3670
  // Inline function 'kotlin.contracts.contract' call
2450
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.resolveHeaderObject.<anonymous>' call
3671
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.resolveHeaderObject.<anonymous>' call
2451
3672
  var tmp_0;
2452
3673
  if (tmp2_safe_receiver instanceof HeaderObject) {
2453
3674
  tmp_0 = to(_this__u8e3s4, tmp2_safe_receiver);
@@ -2463,7 +3684,7 @@
2463
3684
  var tmp3_elvis_lhs = tmp;
2464
3685
  var tmp_1;
2465
3686
  if (tmp3_elvis_lhs == null) {
2466
- var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.d1j_1);
3687
+ var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.r1s_1);
2467
3688
  throw IllegalStateException_init_$Create$(toString(tmp0_error));
2468
3689
  } else {
2469
3690
  tmp_1 = tmp3_elvis_lhs;
@@ -2471,8 +3692,8 @@
2471
3692
  return tmp_1;
2472
3693
  }
2473
3694
  function resolveRequestBodyObject(_this__u8e3s4, $this) {
2474
- var tmp0_safe_receiver = $this.i23_1.j1g_1;
2475
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v1l_1;
3695
+ var tmp0_safe_receiver = $this.i2c_1.f1n_1;
3696
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c1p_1;
2476
3697
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
2477
3698
  var tmp;
2478
3699
  if (tmp2_safe_receiver == null) {
@@ -2480,7 +3701,7 @@
2480
3701
  } else {
2481
3702
  // Inline function 'kotlin.let' call
2482
3703
  // Inline function 'kotlin.contracts.contract' call
2483
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.resolveRequestBodyObject.<anonymous>' call
3704
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.resolveRequestBodyObject.<anonymous>' call
2484
3705
  var tmp_0;
2485
3706
  if (tmp2_safe_receiver instanceof RequestBodyObject) {
2486
3707
  tmp_0 = to(_this__u8e3s4, tmp2_safe_receiver);
@@ -2496,7 +3717,7 @@
2496
3717
  var tmp3_elvis_lhs = tmp;
2497
3718
  var tmp_1;
2498
3719
  if (tmp3_elvis_lhs == null) {
2499
- var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.d1j_1);
3720
+ var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.r1s_1);
2500
3721
  throw IllegalStateException_init_$Create$(toString(tmp0_error));
2501
3722
  } else {
2502
3723
  tmp_1 = tmp3_elvis_lhs;
@@ -2504,8 +3725,8 @@
2504
3725
  return tmp_1;
2505
3726
  }
2506
3727
  function resolveResponseObject_0(_this__u8e3s4, $this) {
2507
- var tmp0_safe_receiver = $this.i23_1.j1g_1;
2508
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1l_1;
3728
+ var tmp0_safe_receiver = $this.i2c_1.f1n_1;
3729
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z1o_1;
2509
3730
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u2(getReference_0(_this__u8e3s4, $this));
2510
3731
  var tmp;
2511
3732
  if (tmp2_safe_receiver == null) {
@@ -2513,7 +3734,7 @@
2513
3734
  } else {
2514
3735
  // Inline function 'kotlin.let' call
2515
3736
  // Inline function 'kotlin.contracts.contract' call
2516
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.resolveResponseObject.<anonymous>' call
3737
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.resolveResponseObject.<anonymous>' call
2517
3738
  var tmp_0;
2518
3739
  if (tmp2_safe_receiver instanceof ResponseObject_0) {
2519
3740
  tmp_0 = to(_this__u8e3s4, tmp2_safe_receiver);
@@ -2529,7 +3750,7 @@
2529
3750
  var tmp3_elvis_lhs = tmp;
2530
3751
  var tmp_1;
2531
3752
  if (tmp3_elvis_lhs == null) {
2532
- var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.d1j_1);
3753
+ var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.r1s_1);
2533
3754
  throw IllegalStateException_init_$Create$(toString(tmp0_error));
2534
3755
  } else {
2535
3756
  tmp_1 = tmp3_elvis_lhs;
@@ -2542,7 +3763,7 @@
2542
3763
  tmp = _this__u8e3s4;
2543
3764
  } else {
2544
3765
  if (_this__u8e3s4 instanceof ReferenceObject_0) {
2545
- tmp = resolveSchemaObject_0(_this__u8e3s4, $this).sd_1;
3766
+ tmp = resolveSchemaObject_0(_this__u8e3s4, $this).td_1;
2546
3767
  } else {
2547
3768
  noWhenBranchMatchedException();
2548
3769
  }
@@ -2555,7 +3776,7 @@
2555
3776
  tmp = _this__u8e3s4;
2556
3777
  } else {
2557
3778
  if (_this__u8e3s4 instanceof ReferenceObject_0) {
2558
- tmp = resolveHeaderObject(_this__u8e3s4, $this).sd_1;
3779
+ tmp = resolveHeaderObject(_this__u8e3s4, $this).td_1;
2559
3780
  } else {
2560
3781
  noWhenBranchMatchedException();
2561
3782
  }
@@ -2568,7 +3789,7 @@
2568
3789
  tmp = _this__u8e3s4;
2569
3790
  } else {
2570
3791
  if (_this__u8e3s4 instanceof ReferenceObject_0) {
2571
- tmp = resolveSchemaObject_0(_this__u8e3s4, $this).sd_1;
3792
+ tmp = resolveSchemaObject_0(_this__u8e3s4, $this).td_1;
2572
3793
  } else {
2573
3794
  if (_this__u8e3s4 instanceof BooleanObject_0) {
2574
3795
  throw new NotImplementedError('An operation is not implemented: Not yet implemented');
@@ -2585,7 +3806,7 @@
2585
3806
  tmp = _this__u8e3s4;
2586
3807
  } else {
2587
3808
  if (_this__u8e3s4 instanceof ReferenceObject_0) {
2588
- tmp = resolveRequestBodyObject(_this__u8e3s4, $this).sd_1;
3809
+ tmp = resolveRequestBodyObject(_this__u8e3s4, $this).td_1;
2589
3810
  } else {
2590
3811
  noWhenBranchMatchedException();
2591
3812
  }
@@ -2598,7 +3819,7 @@
2598
3819
  tmp = _this__u8e3s4;
2599
3820
  } else {
2600
3821
  if (_this__u8e3s4 instanceof ReferenceObject_0) {
2601
- tmp = resolveResponseObject_0(_this__u8e3s4, $this).sd_1;
3822
+ tmp = resolveResponseObject_0(_this__u8e3s4, $this).td_1;
2602
3823
  } else {
2603
3824
  noWhenBranchMatchedException();
2604
3825
  }
@@ -2607,12 +3828,12 @@
2607
3828
  }
2608
3829
  function flatten_1(_this__u8e3s4, $this, name) {
2609
3830
  var tmp;
2610
- if (!(_this__u8e3s4.w1j_1 == null)) {
3831
+ if (!(_this__u8e3s4.k1t_1 == null)) {
2611
3832
  var tmp_0;
2612
- if (_this__u8e3s4.w1j_1 instanceof BooleanObject_0) {
3833
+ if (_this__u8e3s4.k1t_1 instanceof BooleanObject_0) {
2613
3834
  tmp_0 = emptyList();
2614
3835
  } else {
2615
- var tmp1_safe_receiver = _this__u8e3s4.w1j_1;
3836
+ var tmp1_safe_receiver = _this__u8e3s4.k1t_1;
2616
3837
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_5(tmp1_safe_receiver, $this);
2617
3838
  var tmp_1;
2618
3839
  if (tmp2_safe_receiver == null) {
@@ -2621,8 +3842,8 @@
2621
3842
  // Inline function 'kotlin.takeIf' call
2622
3843
  // Inline function 'kotlin.contracts.contract' call
2623
3844
  var tmp_2;
2624
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
2625
- if (!(tmp2_safe_receiver.v1j_1 == null)) {
3845
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
3846
+ if (!(tmp2_safe_receiver.j1t_1 == null)) {
2626
3847
  tmp_2 = tmp2_safe_receiver;
2627
3848
  } else {
2628
3849
  tmp_2 = null;
@@ -2634,9 +3855,10 @@
2634
3855
  tmp_0 = tmp4_elvis_lhs == null ? emptyList() : tmp4_elvis_lhs;
2635
3856
  }
2636
3857
  tmp = tmp_0;
2637
- } else if (!(_this__u8e3s4.r1j_1 == null) ? true : !(_this__u8e3s4.s1j_1 == null)) {
3858
+ } else if (!(_this__u8e3s4.f1t_1 == null) ? true : !(_this__u8e3s4.g1t_1 == null)) {
3859
+ var tmp_3 = Companion_getInstance_0().f28(name);
2638
3860
  // Inline function 'kotlin.collections.mapIndexed' call
2639
- var tmp0_mapIndexed = ensureNotNull(_this__u8e3s4.r1j_1);
3861
+ var tmp0_mapIndexed = ensureNotNull(_this__u8e3s4.f1t_1);
2640
3862
  // Inline function 'kotlin.collections.mapIndexedTo' call
2641
3863
  var tmp0_mapIndexedTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_mapIndexed, 10));
2642
3864
  var index = 0;
@@ -2644,62 +3866,63 @@
2644
3866
  while (tmp0_iterator.w()) {
2645
3867
  var item = tmp0_iterator.y();
2646
3868
  var tmp$ret$2;
2647
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
3869
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
2648
3870
  var tmp1 = index;
2649
3871
  index = tmp1 + 1 | 0;
2650
3872
  var tmp1_anonymous = checkIndexOverflow(tmp1);
2651
- var tmp_3;
3873
+ var tmp_4;
2652
3874
  if (item instanceof ReferenceObject_0) {
2653
- tmp_3 = toReference_1(item, $this);
3875
+ tmp_4 = toReference_1(item, $this);
2654
3876
  } else {
2655
3877
  if (item instanceof SchemaObject_0) {
2656
- tmp_3 = toReference_2(item, $this, Common_getInstance().q22([name, tmp1_anonymous.toString()]));
3878
+ tmp_4 = toReference_2(item, $this, Common_getInstance().m2b([name, tmp1_anonymous.toString()]));
2657
3879
  } else {
2658
3880
  noWhenBranchMatchedException();
2659
3881
  }
2660
3882
  }
2661
- tmp$ret$2 = tmp_3;
3883
+ tmp$ret$2 = tmp_4;
2662
3884
  tmp0_mapIndexedTo.s(tmp$ret$2);
2663
3885
  }
2664
- var tmp_4 = listOf(new Union(name, toSet(tmp0_mapIndexedTo)));
3886
+ var tmp_5 = listOf(new Union(null, tmp_3, toSet(tmp0_mapIndexedTo)));
2665
3887
  // Inline function 'kotlin.collections.flatMapIndexed' call
2666
- var tmp2_flatMapIndexed = ensureNotNull(_this__u8e3s4.r1j_1);
3888
+ var tmp2_flatMapIndexed = ensureNotNull(_this__u8e3s4.f1t_1);
2667
3889
  // Inline function 'kotlin.collections.flatMapIndexedTo' call
2668
3890
  var tmp0_flatMapIndexedTo = ArrayList_init_$Create$();
2669
3891
  var index_0 = 0;
2670
3892
  var tmp0_iterator_0 = tmp2_flatMapIndexed.v();
2671
3893
  while (tmp0_iterator_0.w()) {
2672
3894
  var element = tmp0_iterator_0.y();
2673
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
3895
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
2674
3896
  var tmp1_0 = index_0;
2675
3897
  index_0 = tmp1_0 + 1 | 0;
2676
3898
  var tmp3_anonymous = checkIndexOverflow(tmp1_0);
2677
- var tmp_5;
3899
+ var tmp_6;
2678
3900
  if (element instanceof ReferenceObject_0) {
2679
- tmp_5 = emptyList();
3901
+ tmp_6 = emptyList();
2680
3902
  } else {
2681
3903
  if (element instanceof SchemaObject_0) {
2682
- tmp_5 = flatten_1(element, $this, Common_getInstance().q22([name, tmp3_anonymous.toString()]));
3904
+ tmp_6 = flatten_1(element, $this, Common_getInstance().m2b([name, tmp3_anonymous.toString()]));
2683
3905
  } else {
2684
3906
  noWhenBranchMatchedException();
2685
3907
  }
2686
3908
  }
2687
- var list = tmp_5;
3909
+ var list = tmp_6;
2688
3910
  addAll(tmp0_flatMapIndexedTo, list);
2689
3911
  }
2690
- tmp = plus(tmp_4, tmp0_flatMapIndexedTo);
2691
- } else if (!(_this__u8e3s4.q1j_1 == null)) {
3912
+ tmp = plus(tmp_5, tmp0_flatMapIndexedTo);
3913
+ } else if (!(_this__u8e3s4.e1t_1 == null)) {
3914
+ var tmp_7 = Companion_getInstance_0().f28(name);
2692
3915
  // Inline function 'kotlin.collections.distinctBy' call
2693
3916
  // Inline function 'kotlin.collections.flatMap' call
2694
3917
  // Inline function 'kotlin.collections.orEmpty' call
2695
- var tmp0_elvis_lhs = _this__u8e3s4.q1j_1;
3918
+ var tmp0_elvis_lhs = _this__u8e3s4.e1t_1;
2696
3919
  var tmp5_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
2697
3920
  // Inline function 'kotlin.collections.flatMapTo' call
2698
3921
  var tmp0_flatMapTo = ArrayList_init_$Create$();
2699
3922
  var tmp0_iterator_1 = tmp5_flatMap.v();
2700
3923
  while (tmp0_iterator_1.w()) {
2701
3924
  var element_0 = tmp0_iterator_1.y();
2702
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
3925
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
2703
3926
  var list_0 = toField_1(resolve_3(element_0, $this), $this, name);
2704
3927
  addAll(tmp0_flatMapTo, list_0);
2705
3928
  }
@@ -2708,93 +3931,85 @@
2708
3931
  var tmp0_iterator_2 = tmp0_flatMapTo.v();
2709
3932
  while (tmp0_iterator_2.w()) {
2710
3933
  var e = tmp0_iterator_2.y();
2711
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
2712
- var key = e.e1y_1;
3934
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
3935
+ var key = e.v26_1;
2713
3936
  if (set.s(key)) {
2714
3937
  list_1.s(e);
2715
3938
  }
2716
3939
  }
2717
- var tmp_6 = listOf(new Type(name, new Shape(list_1)));
3940
+ var tmp_8 = listOf(new Type(null, tmp_7, new Shape(list_1)));
2718
3941
  // Inline function 'kotlin.collections.flatMap' call
2719
- var tmp7_flatMap = ensureNotNull(_this__u8e3s4.q1j_1);
3942
+ var tmp7_flatMap = ensureNotNull(_this__u8e3s4.e1t_1);
2720
3943
  // Inline function 'kotlin.collections.flatMapTo' call
2721
3944
  var tmp0_flatMapTo_0 = ArrayList_init_$Create$();
2722
3945
  var tmp0_iterator_3 = tmp7_flatMap.v();
2723
3946
  while (tmp0_iterator_3.w()) {
2724
3947
  var element_1 = tmp0_iterator_3.y();
2725
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
2726
- var tmp_7;
3948
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
3949
+ // Inline function 'kotlin.collections.flatMap' call
3950
+ var tmp_9;
2727
3951
  if (element_1 instanceof ReferenceObject_0) {
2728
- tmp_7 = emptyList();
3952
+ // Inline function 'kotlin.collections.orEmpty' call
3953
+ var tmp0_elvis_lhs_0 = resolveSchemaObject_0(element_1, $this).td_1.j1t_1;
3954
+ tmp_9 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
2729
3955
  } else {
2730
3956
  if (element_1 instanceof SchemaObject_0) {
2731
- // Inline function 'kotlin.collections.flatMap' call
2732
3957
  // Inline function 'kotlin.collections.orEmpty' call
2733
- var tmp0_elvis_lhs_0 = element_1.v1j_1;
2734
- var tmp1_flatMap = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
2735
- // Inline function 'kotlin.collections.flatMapTo' call
2736
- var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
2737
- // Inline function 'kotlin.collections.iterator' call
2738
- var tmp0_iterator_4 = tmp1_flatMap.n2().v();
2739
- while (tmp0_iterator_4.w()) {
2740
- var element_2 = tmp0_iterator_4.y();
2741
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>.<anonymous>' call
2742
- // Inline function 'kotlin.collections.component1' call
2743
- var key_0 = element_2.o2();
2744
- // Inline function 'kotlin.collections.component2' call
2745
- var value = element_2.p2();
2746
- var tmp_8;
2747
- if (value instanceof ReferenceObject_0) {
2748
- tmp_8 = emptyList();
2749
- } else {
2750
- if (value instanceof SchemaObject_0) {
2751
- tmp_8 = flatten_1(value, $this, Common_getInstance().q22([name, key_0]));
2752
- } else {
2753
- noWhenBranchMatchedException();
2754
- }
2755
- }
2756
- var list_2 = tmp_8;
2757
- addAll(tmp0_flatMapTo_1, list_2);
2758
- }
2759
- tmp_7 = tmp0_flatMapTo_1;
3958
+ var tmp0_elvis_lhs_1 = element_1.j1t_1;
3959
+ tmp_9 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
2760
3960
  } else {
2761
3961
  noWhenBranchMatchedException();
2762
3962
  }
2763
3963
  }
2764
- var list_3 = tmp_7;
3964
+ var tmp2_flatMap = tmp_9;
3965
+ // Inline function 'kotlin.collections.flatMapTo' call
3966
+ var tmp0_flatMapTo_1 = ArrayList_init_$Create$();
3967
+ // Inline function 'kotlin.collections.iterator' call
3968
+ var tmp0_iterator_4 = tmp2_flatMap.n2().v();
3969
+ while (tmp0_iterator_4.w()) {
3970
+ var element_2 = tmp0_iterator_4.y();
3971
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>.<anonymous>' call
3972
+ // Inline function 'kotlin.collections.component1' call
3973
+ var key_0 = element_2.o2();
3974
+ // Inline function 'kotlin.collections.component2' call
3975
+ var value = element_2.p2();
3976
+ var list_2 = flatten_2(value, $this, Common_getInstance().m2b([name, key_0]));
3977
+ addAll(tmp0_flatMapTo_1, list_2);
3978
+ }
3979
+ var list_3 = tmp0_flatMapTo_1;
2765
3980
  addAll(tmp0_flatMapTo_0, list_3);
2766
3981
  }
2767
- tmp = plus(tmp_6, tmp0_flatMapTo_0);
2768
- } else if (!(_this__u8e3s4.p1k_1 == null)) {
3982
+ tmp = plus(tmp_8, tmp0_flatMapTo_0);
3983
+ } else if (!(_this__u8e3s4.d1u_1 == null)) {
2769
3984
  // Inline function 'kotlin.let' call
2770
3985
  // Inline function 'kotlin.collections.map' call
2771
- var tmp8_map = ensureNotNull(_this__u8e3s4.p1k_1);
3986
+ var tmp8_map = ensureNotNull(_this__u8e3s4.d1u_1);
2772
3987
  // Inline function 'kotlin.collections.mapTo' call
2773
3988
  var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp8_map, 10));
2774
3989
  var tmp0_iterator_5 = tmp8_map.v();
2775
3990
  while (tmp0_iterator_5.w()) {
2776
3991
  var item_0 = tmp0_iterator_5.y();
2777
- var tmp$ret$24;
2778
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
2779
- tmp$ret$24 = item_0.n10();
2780
- tmp0_mapTo.s(tmp$ret$24);
3992
+ var tmp$ret$25;
3993
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
3994
+ tmp$ret$25 = item_0.k14();
3995
+ tmp0_mapTo.s(tmp$ret$25);
2781
3996
  }
2782
3997
  var tmp9_let = toSet(tmp0_mapTo);
2783
3998
  // Inline function 'kotlin.contracts.contract' call
2784
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
2785
- tmp = listOf(new Enum(name, tmp9_let));
3999
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
4000
+ tmp = listOf(new Enum(null, Companion_getInstance_0().f28(name), tmp9_let));
2786
4001
  } else {
2787
- var tmp5_subject = _this__u8e3s4.p1j_1;
2788
- var tmp_9;
2789
- switch (tmp5_subject == null ? -1 : tmp5_subject.c9_1) {
4002
+ var tmp5_subject = _this__u8e3s4.d1t_1;
4003
+ var tmp_10;
4004
+ switch (tmp5_subject == null ? -1 : tmp5_subject.d9_1) {
2790
4005
  case -1:
2791
4006
  case 5:
2792
4007
  // Inline function 'kotlin.collections.flatMap' call
2793
4008
 
2794
4009
  // Inline function 'kotlin.collections.orEmpty' call
2795
4010
 
2796
- var tmp0_elvis_lhs_1 = _this__u8e3s4.v1j_1;
2797
- var tmp11_flatMap = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
4011
+ var tmp0_elvis_lhs_2 = _this__u8e3s4.j1t_1;
4012
+ var tmp11_flatMap = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
2798
4013
  // Inline function 'kotlin.collections.flatMapTo' call
2799
4014
 
2800
4015
  var tmp0_flatMapTo_2 = ArrayList_init_$Create$();
@@ -2803,49 +4018,49 @@
2803
4018
  var tmp0_iterator_6 = tmp11_flatMap.n2().v();
2804
4019
  while (tmp0_iterator_6.w()) {
2805
4020
  var element_3 = tmp0_iterator_6.y();
2806
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
4021
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
2807
4022
  // Inline function 'kotlin.collections.component1' call
2808
4023
  var key_1 = element_3.o2();
2809
4024
  // Inline function 'kotlin.collections.component2' call
2810
4025
  var value_0 = element_3.p2();
2811
- var list_4 = flatten_2(value_0, $this, Common_getInstance().q22([name, key_1]));
4026
+ var list_4 = flatten_2(value_0, $this, Common_getInstance().m2b([name, key_1]));
2812
4027
  addAll(tmp0_flatMapTo_2, list_4);
2813
4028
  }
2814
4029
 
2815
4030
  var fields = tmp0_flatMapTo_2;
2816
- var schema = listOf(new Type(name, new Shape(toField_1(_this__u8e3s4, $this, name))));
2817
- tmp_9 = plus(schema, fields);
4031
+ var schema = listOf(new Type(null, Companion_getInstance_0().f28(name), new Shape(toField_1(_this__u8e3s4, $this, name))));
4032
+ tmp_10 = plus(schema, fields);
2818
4033
  break;
2819
4034
  case 4:
2820
- var tmp6_safe_receiver = _this__u8e3s4.u1j_1;
2821
- var tmp_10;
4035
+ var tmp6_safe_receiver = _this__u8e3s4.i1t_1;
4036
+ var tmp_11;
2822
4037
  if (tmp6_safe_receiver == null) {
2823
- tmp_10 = null;
4038
+ tmp_11 = null;
2824
4039
  } else {
2825
4040
  // Inline function 'kotlin.let' call
2826
4041
  // Inline function 'kotlin.contracts.contract' call
2827
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
2828
- var tmp_11;
4042
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
4043
+ var tmp_12;
2829
4044
  if (tmp6_safe_receiver instanceof ReferenceObject_0) {
2830
- tmp_11 = emptyList();
4045
+ tmp_12 = emptyList();
2831
4046
  } else {
2832
4047
  if (tmp6_safe_receiver instanceof SchemaObject_0) {
2833
- tmp_11 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().q22([name, 'array']));
4048
+ tmp_12 = flatten_1(tmp6_safe_receiver, $this, Common_getInstance().m2b([name, 'array']));
2834
4049
  } else {
2835
4050
  noWhenBranchMatchedException();
2836
4051
  }
2837
4052
  }
2838
- tmp_10 = tmp_11;
4053
+ tmp_11 = tmp_12;
2839
4054
  }
2840
4055
 
2841
- var tmp7_elvis_lhs = tmp_10;
2842
- tmp_9 = tmp7_elvis_lhs == null ? emptyList() : tmp7_elvis_lhs;
4056
+ var tmp7_elvis_lhs = tmp_11;
4057
+ tmp_10 = tmp7_elvis_lhs == null ? emptyList() : tmp7_elvis_lhs;
2843
4058
  break;
2844
4059
  default:
2845
- tmp_9 = emptyList();
4060
+ tmp_10 = emptyList();
2846
4061
  break;
2847
4062
  }
2848
- tmp = tmp_9;
4063
+ tmp = tmp_10;
2849
4064
  }
2850
4065
  return tmp;
2851
4066
  }
@@ -2866,12 +4081,12 @@
2866
4081
  // Inline function 'kotlin.let' call
2867
4082
  var tmp0_let = resolveSchemaObject_0(_this__u8e3s4, $this);
2868
4083
  // Inline function 'kotlin.contracts.contract' call
2869
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
2870
- var referencingObject = tmp0_let.fd();
2871
- var schema = tmp0_let.gd();
4084
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toReference.<anonymous>' call
4085
+ var referencingObject = tmp0_let.gd();
4086
+ var schema = tmp0_let.hd();
2872
4087
  var tmp;
2873
- if (!(schema.w1j_1 == null)) {
2874
- var additionalProperties = ensureNotNull(schema.w1j_1);
4088
+ if (!(schema.k1t_1 == null)) {
4089
+ var additionalProperties = ensureNotNull(schema.k1t_1);
2875
4090
  var tmp_0;
2876
4091
  if (additionalProperties instanceof BooleanObject_0) {
2877
4092
  tmp_0 = new Any(false, true);
@@ -2887,24 +4102,24 @@
2887
4102
  }
2888
4103
  }
2889
4104
  tmp = tmp_0;
2890
- } else if (!(schema.p1k_1 == null)) {
2891
- tmp = new Custom(Common_getInstance().q22([getReference_0(referencingObject, $this)]), false, false);
2892
- } else if (isPrimitive_0(schema.p1j_1)) {
2893
- tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.p1j_1), $this), false, false);
4105
+ } else if (!(schema.d1u_1 == null)) {
4106
+ tmp = new Custom(Common_getInstance().m2b([getReference_0(referencingObject, $this)]), false, false);
4107
+ } else if (isPrimitive_0(schema.d1t_1)) {
4108
+ tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.d1t_1), $this), false, false);
2894
4109
  } else {
2895
- var tmp0_subject = schema.p1j_1;
4110
+ var tmp0_subject = schema.d1t_1;
2896
4111
  var tmp_1;
2897
- if ((tmp0_subject == null ? -1 : tmp0_subject.c9_1) === 4) {
2898
- var items = schema.u1j_1;
4112
+ if ((tmp0_subject == null ? -1 : tmp0_subject.d9_1) === 4) {
4113
+ var items = schema.i1t_1;
2899
4114
  var tmp_2;
2900
4115
  if (items instanceof ReferenceObject_0) {
2901
- tmp_2 = new Custom(Common_getInstance().q22([getReference_0(items, $this)]), true);
4116
+ tmp_2 = new Custom(Common_getInstance().m2b([getReference_0(items, $this)]), true);
2902
4117
  } else {
2903
4118
  if (items instanceof SchemaObject_0) {
2904
- tmp_2 = new Custom(Common_getInstance().q22([getReference_0(referencingObject, $this), 'Array']), true);
4119
+ tmp_2 = new Custom(Common_getInstance().m2b([getReference_0(referencingObject, $this), 'Array']), true);
2905
4120
  } else {
2906
4121
  if (items == null) {
2907
- var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.d1j_1);
4122
+ var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.r1s_1);
2908
4123
  throw IllegalStateException_init_$Create$(toString(tmp0_error));
2909
4124
  } else {
2910
4125
  noWhenBranchMatchedException();
@@ -2913,7 +4128,7 @@
2913
4128
  }
2914
4129
  tmp_1 = tmp_2;
2915
4130
  } else {
2916
- tmp_1 = new Custom(Common_getInstance().q22([getReference_0(referencingObject, $this)]), false);
4131
+ tmp_1 = new Custom(Common_getInstance().m2b([getReference_0(referencingObject, $this)]), false);
2917
4132
  }
2918
4133
  tmp = tmp_1;
2919
4134
  }
@@ -2921,8 +4136,8 @@
2921
4136
  }
2922
4137
  function toReference_2(_this__u8e3s4, $this, name) {
2923
4138
  var tmp;
2924
- if (!(_this__u8e3s4.w1j_1 == null)) {
2925
- var additionalProperties = ensureNotNull(_this__u8e3s4.w1j_1);
4139
+ if (!(_this__u8e3s4.k1t_1 == null)) {
4140
+ var additionalProperties = ensureNotNull(_this__u8e3s4.k1t_1);
2926
4141
  var tmp_0;
2927
4142
  if (additionalProperties instanceof BooleanObject_0) {
2928
4143
  tmp_0 = new Any(false, true);
@@ -2934,8 +4149,8 @@
2934
4149
  // Inline function 'kotlin.takeIf' call
2935
4150
  // Inline function 'kotlin.contracts.contract' call
2936
4151
  var tmp_1;
2937
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
2938
- if (isPrimitive_0(additionalProperties.p1j_1) ? true : !(additionalProperties.v1j_1 == null)) {
4152
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toReference.<anonymous>' call
4153
+ if (isPrimitive_0(additionalProperties.d1t_1) ? true : !(additionalProperties.j1t_1 == null)) {
2939
4154
  tmp_1 = additionalProperties;
2940
4155
  } else {
2941
4156
  tmp_1 = null;
@@ -2947,7 +4162,7 @@
2947
4162
  } else {
2948
4163
  // Inline function 'kotlin.run' call
2949
4164
  // Inline function 'kotlin.contracts.contract' call
2950
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
4165
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toReference.<anonymous>' call
2951
4166
  tmp_2 = toMap_1(toReference_2(tmp0_safe_receiver, $this, name));
2952
4167
  }
2953
4168
  var tmp1_elvis_lhs = tmp_2;
@@ -2958,32 +4173,32 @@
2958
4173
  }
2959
4174
  }
2960
4175
  tmp = tmp_0;
2961
- } else if (!(_this__u8e3s4.p1k_1 == null)) {
2962
- tmp = new Custom(name, false, !(_this__u8e3s4.w1j_1 == null));
4176
+ } else if (!(_this__u8e3s4.d1u_1 == null)) {
4177
+ tmp = new Custom(name, false, !(_this__u8e3s4.k1t_1 == null));
2963
4178
  } else {
2964
- var type = _this__u8e3s4.p1j_1;
4179
+ var type = _this__u8e3s4.d1t_1;
2965
4180
  var tmp_3;
2966
- switch (type == null ? -1 : type.c9_1) {
4181
+ switch (type == null ? -1 : type.d9_1) {
2967
4182
  case 0:
2968
4183
  case 1:
2969
4184
  case 2:
2970
4185
  case 3:
2971
- tmp_3 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.w1j_1 == null));
4186
+ tmp_3 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.k1t_1 == null));
2972
4187
  break;
2973
4188
  case -1:
2974
4189
  case 5:
2975
4190
  var tmp_4;
2976
- var tmp_5 = _this__u8e3s4.w1j_1;
4191
+ var tmp_5 = _this__u8e3s4.k1t_1;
2977
4192
  if (tmp_5 instanceof BooleanObject_0) {
2978
- tmp_4 = new Any(false, !(_this__u8e3s4.w1j_1 == null));
4193
+ tmp_4 = new Any(false, !(_this__u8e3s4.k1t_1 == null));
2979
4194
  } else {
2980
- tmp_4 = new Custom(name, false, !(_this__u8e3s4.w1j_1 == null));
4195
+ tmp_4 = new Custom(name, false, !(_this__u8e3s4.k1t_1 == null));
2981
4196
  }
2982
4197
 
2983
4198
  tmp_3 = tmp_4;
2984
4199
  break;
2985
4200
  case 4:
2986
- var it = _this__u8e3s4.u1j_1;
4201
+ var it = _this__u8e3s4.i1t_1;
2987
4202
  var tmp_6;
2988
4203
  if (it instanceof ReferenceObject_0) {
2989
4204
  tmp_6 = toIterable_0(toReference_1(it, $this));
@@ -3013,38 +4228,38 @@
3013
4228
  function toOperationList_0(_this__u8e3s4, $this) {
3014
4229
  // Inline function 'kotlin.collections.associateWith' call
3015
4230
  var tmp0_associateWith = get_entries();
3016
- var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(collectionSizeOrDefault(tmp0_associateWith, 10)), 16));
4231
+ var result = LinkedHashMap_init_$Create$(coerceAtLeast(mapCapacity(collectionSizeOrDefault(tmp0_associateWith, 10)), 16));
3017
4232
  // Inline function 'kotlin.collections.associateWithTo' call
3018
4233
  var tmp0_iterator = tmp0_associateWith.v();
3019
4234
  while (tmp0_iterator.w()) {
3020
4235
  var element = tmp0_iterator.y();
3021
4236
  var tmp$ret$0;
3022
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toOperationList.<anonymous>' call
4237
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toOperationList.<anonymous>' call
3023
4238
  var tmp;
3024
- switch (element.c9_1) {
4239
+ switch (element.d9_1) {
3025
4240
  case 0:
3026
- tmp = _this__u8e3s4.w1g_1;
4241
+ tmp = _this__u8e3s4.k1o_1;
3027
4242
  break;
3028
4243
  case 1:
3029
- tmp = _this__u8e3s4.y1g_1;
4244
+ tmp = _this__u8e3s4.m1o_1;
3030
4245
  break;
3031
4246
  case 2:
3032
- tmp = _this__u8e3s4.x1g_1;
4247
+ tmp = _this__u8e3s4.l1o_1;
3033
4248
  break;
3034
4249
  case 3:
3035
- tmp = _this__u8e3s4.z1g_1;
4250
+ tmp = _this__u8e3s4.n1o_1;
3036
4251
  break;
3037
4252
  case 4:
3038
- tmp = _this__u8e3s4.a1h_1;
4253
+ tmp = _this__u8e3s4.o1o_1;
3039
4254
  break;
3040
4255
  case 5:
3041
- tmp = _this__u8e3s4.b1h_1;
4256
+ tmp = _this__u8e3s4.p1o_1;
3042
4257
  break;
3043
4258
  case 6:
3044
- tmp = _this__u8e3s4.c1h_1;
4259
+ tmp = _this__u8e3s4.q1o_1;
3045
4260
  break;
3046
4261
  case 7:
3047
- tmp = _this__u8e3s4.d1h_1;
4262
+ tmp = _this__u8e3s4.r1o_1;
3048
4263
  break;
3049
4264
  default:
3050
4265
  noWhenBranchMatchedException();
@@ -3056,10 +4271,10 @@
3056
4271
  return filterNotNullValues_0(result);
3057
4272
  }
3058
4273
  function getReference_0(_this__u8e3s4, $this) {
3059
- var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.d1j_1), ['/']), 3);
4274
+ var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.r1s_1), ['/']), 3);
3060
4275
  var tmp;
3061
4276
  if (tmp0_elvis_lhs == null) {
3062
- var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.d1j_1);
4277
+ var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.r1s_1);
3063
4278
  throw IllegalStateException_init_$Create$(toString(tmp0_error));
3064
4279
  } else {
3065
4280
  tmp = tmp0_elvis_lhs;
@@ -3068,7 +4283,7 @@
3068
4283
  }
3069
4284
  function toPrimitive_0(_this__u8e3s4, $this) {
3070
4285
  var tmp;
3071
- switch (_this__u8e3s4.c9_1) {
4286
+ switch (_this__u8e3s4.d9_1) {
3072
4287
  case 0:
3073
4288
  tmp = Type_String_getInstance();
3074
4289
  break;
@@ -3089,7 +4304,7 @@
3089
4304
  function toField_1(_this__u8e3s4, $this, name) {
3090
4305
  // Inline function 'kotlin.collections.map' call
3091
4306
  // Inline function 'kotlin.collections.orEmpty' call
3092
- var tmp0_elvis_lhs = _this__u8e3s4.v1j_1;
4307
+ var tmp0_elvis_lhs = _this__u8e3s4.j1t_1;
3093
4308
  var tmp1_map = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
3094
4309
  // Inline function 'kotlin.collections.mapTo' call
3095
4310
  var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.n());
@@ -3098,23 +4313,23 @@
3098
4313
  while (tmp0_iterator.w()) {
3099
4314
  var item = tmp0_iterator.y();
3100
4315
  var tmp$ret$4;
3101
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
4316
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toField.<anonymous>' call
3102
4317
  // Inline function 'kotlin.collections.component1' call
3103
4318
  var key = item.o2();
3104
4319
  // Inline function 'kotlin.collections.component2' call
3105
4320
  var value = item.p2();
3106
4321
  var tmp;
3107
4322
  if (value instanceof SchemaObject_0) {
3108
- var tmp_0 = Companion_getInstance_0().n1z(key);
3109
- var tmp_1 = !(value.p1k_1 == null) ? toReference_2(value, $this, Common_getInstance().q22([name, key])) : equals(value.p1j_1, Type_ARRAY_getInstance_0()) ? toReference_2(value, $this, Common_getInstance().q22([name, key, 'Array'])) : toReference_2(value, $this, Common_getInstance().q22([name, key]));
3110
- var tmp1_safe_receiver = _this__u8e3s4.o1k_1;
4323
+ var tmp_0 = Companion_getInstance_0().f28(key);
4324
+ var tmp_1 = !(value.d1u_1 == null) ? toReference_2(value, $this, Common_getInstance().m2b([name, key])) : equals(value.d1t_1, Type_ARRAY_getInstance_0()) ? toReference_2(value, $this, Common_getInstance().m2b([name, key, 'Array'])) : toReference_2(value, $this, Common_getInstance().m2b([name, key]));
4325
+ var tmp1_safe_receiver = _this__u8e3s4.c1u_1;
3111
4326
  var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r(key);
3112
4327
  tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
3113
4328
  } else {
3114
4329
  if (value instanceof ReferenceObject_0) {
3115
- var tmp_2 = Companion_getInstance_0().n1z(key);
3116
- var tmp_3 = new Custom(Common_getInstance().q22([getReference_0(value, $this)]), false);
3117
- var tmp3_safe_receiver = _this__u8e3s4.o1k_1;
4330
+ var tmp_2 = Companion_getInstance_0().f28(key);
4331
+ var tmp_3 = new Custom(Common_getInstance().m2b([getReference_0(value, $this)]), false);
4332
+ var tmp3_safe_receiver = _this__u8e3s4.c1u_1;
3118
4333
  var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.r(key);
3119
4334
  tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
3120
4335
  } else {
@@ -3128,7 +4343,7 @@
3128
4343
  }
3129
4344
  function toField_2(_this__u8e3s4, $this, name) {
3130
4345
  // Inline function 'kotlin.let' call
3131
- var s = _this__u8e3s4.f1i_1;
4346
+ var s = _this__u8e3s4.h1s_1;
3132
4347
  var tmp;
3133
4348
  if (s instanceof ReferenceObject_0) {
3134
4349
  tmp = toReference_1(s, $this);
@@ -3145,14 +4360,14 @@
3145
4360
  }
3146
4361
  var tmp0_let = tmp;
3147
4362
  // Inline function 'kotlin.contracts.contract' call
3148
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
3149
- var tmp_0 = Companion_getInstance_0().n1z(_this__u8e3s4.j1i_1);
3150
- var tmp0_elvis_lhs = _this__u8e3s4.z1h_1;
4363
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toField.<anonymous>' call
4364
+ var tmp_0 = Companion_getInstance_0().f28(_this__u8e3s4.l1s_1);
4365
+ var tmp0_elvis_lhs = _this__u8e3s4.b1s_1;
3151
4366
  return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
3152
4367
  }
3153
4368
  function toField_3(_this__u8e3s4, $this, identifier, name) {
3154
4369
  // Inline function 'kotlin.let' call
3155
- var s = _this__u8e3s4.k1l_1;
4370
+ var s = _this__u8e3s4.h1v_1;
3156
4371
  var tmp;
3157
4372
  if (s instanceof ReferenceObject_0) {
3158
4373
  tmp = toReference_1(s, $this);
@@ -3169,25 +4384,25 @@
3169
4384
  }
3170
4385
  var tmp0_let = tmp;
3171
4386
  // Inline function 'kotlin.contracts.contract' call
3172
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
3173
- var tmp_0 = Companion_getInstance_0().n1z(identifier);
3174
- var tmp0_elvis_lhs = _this__u8e3s4.e1l_1;
4387
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toField.<anonymous>' call
4388
+ var tmp_0 = Companion_getInstance_0().f28(identifier);
4389
+ var tmp0_elvis_lhs = _this__u8e3s4.b1v_1;
3175
4390
  return new Field(tmp_0, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
3176
4391
  }
3177
4392
  function FlattenRequest_0(path, pathItem, method, operation) {
3178
- this.j23_1 = path;
3179
- this.k23_1 = pathItem;
3180
- this.l23_1 = method;
3181
- this.m23_1 = operation;
4393
+ this.j2c_1 = path;
4394
+ this.k2c_1 = pathItem;
4395
+ this.l2c_1 = method;
4396
+ this.m2c_1 = operation;
3182
4397
  }
3183
4398
  protoOf(FlattenRequest_0).toString = function () {
3184
- return 'FlattenRequest(path=' + new Path_0(this.j23_1) + ', pathItem=' + this.k23_1 + ', method=' + this.l23_1 + ', operation=' + this.m23_1 + ')';
4399
+ return 'FlattenRequest(path=' + new Path_0(this.j2c_1) + ', pathItem=' + this.k2c_1 + ', method=' + this.l2c_1 + ', operation=' + this.m2c_1 + ')';
3185
4400
  };
3186
4401
  protoOf(FlattenRequest_0).hashCode = function () {
3187
- var result = Path__hashCode_impl_go73kd_0(this.j23_1);
3188
- result = imul(result, 31) + this.k23_1.hashCode() | 0;
3189
- result = imul(result, 31) + this.l23_1.hashCode() | 0;
3190
- result = imul(result, 31) + this.m23_1.hashCode() | 0;
4402
+ var result = Path__hashCode_impl_go73kd_0(this.j2c_1);
4403
+ result = imul(result, 31) + this.k2c_1.hashCode() | 0;
4404
+ result = imul(result, 31) + this.l2c_1.hashCode() | 0;
4405
+ result = imul(result, 31) + this.m2c_1.hashCode() | 0;
3191
4406
  return result;
3192
4407
  };
3193
4408
  protoOf(FlattenRequest_0).equals = function (other) {
@@ -3196,29 +4411,29 @@
3196
4411
  if (!(other instanceof FlattenRequest_0))
3197
4412
  return false;
3198
4413
  var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
3199
- if (!(this.j23_1 === tmp0_other_with_cast.j23_1))
4414
+ if (!(this.j2c_1 === tmp0_other_with_cast.j2c_1))
3200
4415
  return false;
3201
- if (!this.k23_1.equals(tmp0_other_with_cast.k23_1))
4416
+ if (!this.k2c_1.equals(tmp0_other_with_cast.k2c_1))
3202
4417
  return false;
3203
- if (!this.l23_1.equals(tmp0_other_with_cast.l23_1))
4418
+ if (!this.l2c_1.equals(tmp0_other_with_cast.l2c_1))
3204
4419
  return false;
3205
- if (!this.m23_1.equals(tmp0_other_with_cast.m23_1))
4420
+ if (!this.m2c_1.equals(tmp0_other_with_cast.m2c_1))
3206
4421
  return false;
3207
4422
  return true;
3208
4423
  };
3209
4424
  function flatMapRequests_0(_this__u8e3s4, $this, f) {
3210
4425
  // Inline function 'kotlin.collections.flatMap' call
3211
4426
  // Inline function 'kotlin.collections.flatMap' call
3212
- var tmp0_flatMap = _this__u8e3s4.i1g_1;
4427
+ var tmp0_flatMap = _this__u8e3s4.e1n_1;
3213
4428
  // Inline function 'kotlin.collections.flatMapTo' call
3214
4429
  var tmp0_flatMapTo = ArrayList_init_$Create$();
3215
4430
  // Inline function 'kotlin.collections.iterator' call
3216
4431
  var tmp0_iterator = tmp0_flatMap.n2().v();
3217
4432
  while (tmp0_iterator.w()) {
3218
4433
  var element = tmp0_iterator.y();
3219
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
4434
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatMapRequests.<anonymous>' call
3220
4435
  // Inline function 'kotlin.collections.component1' call
3221
- var path = element.o2().q1g_1;
4436
+ var path = element.o2().d1o_1;
3222
4437
  // Inline function 'kotlin.collections.component2' call
3223
4438
  var pathItem = element.p2();
3224
4439
  // Inline function 'kotlin.collections.map' call
@@ -3230,7 +4445,7 @@
3230
4445
  while (tmp0_iterator_0.w()) {
3231
4446
  var item = tmp0_iterator_0.y();
3232
4447
  var tmp$ret$6;
3233
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>.<anonymous>' call
4448
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatMapRequests.<anonymous>.<anonymous>' call
3234
4449
  // Inline function 'kotlin.collections.component1' call
3235
4450
  var method = item.o2();
3236
4451
  // Inline function 'kotlin.collections.component2' call
@@ -3246,30 +4461,30 @@
3246
4461
  var tmp0_iterator_1 = tmp0_flatMapTo.v();
3247
4462
  while (tmp0_iterator_1.w()) {
3248
4463
  var element_0 = tmp0_iterator_1.y();
3249
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
4464
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatMapRequests.<anonymous>' call
3250
4465
  var list_0 = f(element_0);
3251
4466
  addAll(tmp0_flatMapTo_0, list_0);
3252
4467
  }
3253
4468
  return tmp0_flatMapTo_0;
3254
4469
  }
3255
4470
  function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
3256
- this.n23_1 = path;
3257
- this.o23_1 = pathItem;
3258
- this.p23_1 = method;
3259
- this.q23_1 = operation;
3260
- this.r23_1 = statusCode;
3261
- this.s23_1 = response;
4471
+ this.n2c_1 = path;
4472
+ this.o2c_1 = pathItem;
4473
+ this.p2c_1 = method;
4474
+ this.q2c_1 = operation;
4475
+ this.r2c_1 = statusCode;
4476
+ this.s2c_1 = response;
3262
4477
  }
3263
4478
  protoOf(FlattenResponse_0).toString = function () {
3264
- return 'FlattenResponse(path=' + new Path_0(this.n23_1) + ', pathItem=' + this.o23_1 + ', method=' + this.p23_1 + ', operation=' + this.q23_1 + ', statusCode=' + new StatusCode_0(this.r23_1) + ', response=' + this.s23_1 + ')';
4479
+ return 'FlattenResponse(path=' + new Path_0(this.n2c_1) + ', pathItem=' + this.o2c_1 + ', method=' + this.p2c_1 + ', operation=' + this.q2c_1 + ', statusCode=' + new StatusCode_0(this.r2c_1) + ', response=' + this.s2c_1 + ')';
3265
4480
  };
3266
4481
  protoOf(FlattenResponse_0).hashCode = function () {
3267
- var result = Path__hashCode_impl_go73kd_0(this.n23_1);
3268
- result = imul(result, 31) + this.o23_1.hashCode() | 0;
3269
- result = imul(result, 31) + this.p23_1.hashCode() | 0;
3270
- result = imul(result, 31) + this.q23_1.hashCode() | 0;
3271
- result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.r23_1) | 0;
3272
- result = imul(result, 31) + hashCode(this.s23_1) | 0;
4482
+ var result = Path__hashCode_impl_go73kd_0(this.n2c_1);
4483
+ result = imul(result, 31) + this.o2c_1.hashCode() | 0;
4484
+ result = imul(result, 31) + this.p2c_1.hashCode() | 0;
4485
+ result = imul(result, 31) + this.q2c_1.hashCode() | 0;
4486
+ result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.r2c_1) | 0;
4487
+ result = imul(result, 31) + hashCode(this.s2c_1) | 0;
3273
4488
  return result;
3274
4489
  };
3275
4490
  protoOf(FlattenResponse_0).equals = function (other) {
@@ -3278,33 +4493,33 @@
3278
4493
  if (!(other instanceof FlattenResponse_0))
3279
4494
  return false;
3280
4495
  var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
3281
- if (!(this.n23_1 === tmp0_other_with_cast.n23_1))
4496
+ if (!(this.n2c_1 === tmp0_other_with_cast.n2c_1))
3282
4497
  return false;
3283
- if (!this.o23_1.equals(tmp0_other_with_cast.o23_1))
4498
+ if (!this.o2c_1.equals(tmp0_other_with_cast.o2c_1))
3284
4499
  return false;
3285
- if (!this.p23_1.equals(tmp0_other_with_cast.p23_1))
4500
+ if (!this.p2c_1.equals(tmp0_other_with_cast.p2c_1))
3286
4501
  return false;
3287
- if (!this.q23_1.equals(tmp0_other_with_cast.q23_1))
4502
+ if (!this.q2c_1.equals(tmp0_other_with_cast.q2c_1))
3288
4503
  return false;
3289
- if (!(this.r23_1 === tmp0_other_with_cast.r23_1))
4504
+ if (!(this.r2c_1 === tmp0_other_with_cast.r2c_1))
3290
4505
  return false;
3291
- if (!equals(this.s23_1, tmp0_other_with_cast.s23_1))
4506
+ if (!equals(this.s2c_1, tmp0_other_with_cast.s2c_1))
3292
4507
  return false;
3293
4508
  return true;
3294
4509
  };
3295
4510
  function flatMapResponses_0(_this__u8e3s4, $this, f) {
3296
4511
  // Inline function 'kotlin.collections.flatMap' call
3297
4512
  // Inline function 'kotlin.collections.flatMap' call
3298
- var tmp0_flatMap = _this__u8e3s4.i1g_1;
4513
+ var tmp0_flatMap = _this__u8e3s4.e1n_1;
3299
4514
  // Inline function 'kotlin.collections.flatMapTo' call
3300
4515
  var tmp0_flatMapTo = ArrayList_init_$Create$();
3301
4516
  // Inline function 'kotlin.collections.iterator' call
3302
4517
  var tmp0_iterator = tmp0_flatMap.n2().v();
3303
4518
  while (tmp0_iterator.w()) {
3304
4519
  var element = tmp0_iterator.y();
3305
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
4520
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatMapResponses.<anonymous>' call
3306
4521
  // Inline function 'kotlin.collections.component1' call
3307
- var path = element.o2().q1g_1;
4522
+ var path = element.o2().d1o_1;
3308
4523
  // Inline function 'kotlin.collections.component2' call
3309
4524
  var pathItem = element.p2();
3310
4525
  // Inline function 'kotlin.collections.flatMap' call
@@ -3315,13 +4530,13 @@
3315
4530
  var tmp0_iterator_0 = tmp0_flatMap_0.n2().v();
3316
4531
  while (tmp0_iterator_0.w()) {
3317
4532
  var element_0 = tmp0_iterator_0.y();
3318
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>' call
4533
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatMapResponses.<anonymous>.<anonymous>' call
3319
4534
  // Inline function 'kotlin.collections.component1' call
3320
4535
  var method = element_0.o2();
3321
4536
  // Inline function 'kotlin.collections.component2' call
3322
4537
  var operation = element_0.p2();
3323
4538
  // Inline function 'kotlin.collections.orEmpty' call
3324
- var tmp0_safe_receiver = operation.q1h_1;
4539
+ var tmp0_safe_receiver = operation.p1q_1;
3325
4540
  var tmp;
3326
4541
  if (tmp0_safe_receiver == null) {
3327
4542
  tmp = null;
@@ -3334,9 +4549,9 @@
3334
4549
  while (tmp0_iterator_1.w()) {
3335
4550
  var item = tmp0_iterator_1.y();
3336
4551
  var tmp$ret$9;
3337
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
4552
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
3338
4553
  // Inline function 'kotlin.collections.component1' call
3339
- var statusCode = item.o2().t1k_1;
4554
+ var statusCode = item.o2().x1r_1;
3340
4555
  // Inline function 'kotlin.collections.component2' call
3341
4556
  var response = item.p2();
3342
4557
  tmp$ret$9 = new FlattenResponse_0(path, pathItem, method, operation, statusCode, response);
@@ -3356,17 +4571,17 @@
3356
4571
  var tmp0_iterator_2 = tmp0_flatMapTo.v();
3357
4572
  while (tmp0_iterator_2.w()) {
3358
4573
  var element_1 = tmp0_iterator_2.y();
3359
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
4574
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatMapResponses.<anonymous>' call
3360
4575
  var list_1 = f(element_1);
3361
4576
  addAll(tmp0_flatMapTo_1, list_1);
3362
4577
  }
3363
4578
  return tmp0_flatMapTo_1;
3364
4579
  }
3365
- function OpenApiParser$parseParameters$lambda_0(this$0) {
4580
+ function OpenApiV3Parser$parseParameters$lambda(this$0) {
3366
4581
  return function (req) {
3367
- var parameters = plus(resolveParameters_2(req.k23_1, this$0), resolveParameters_1(req.m23_1, this$0));
3368
- var tmp0_elvis_lhs = toName_1(req.m23_1, this$0);
3369
- var name = tmp0_elvis_lhs == null ? toName_2(req.j23_1, this$0) + req.l23_1.b9_1 : tmp0_elvis_lhs;
4582
+ var parameters = plus(resolveParameters_2(req.k2c_1, this$0), resolveParameters_1(req.m2c_1, this$0));
4583
+ var tmp0_elvis_lhs = toName_1(req.m2c_1, this$0);
4584
+ var name = tmp0_elvis_lhs == null ? toName_2(req.j2c_1, this$0) + req.l2c_1.c9_1 : tmp0_elvis_lhs;
3370
4585
  var tmp$ret$2;
3371
4586
  // Inline function 'kotlin.collections.flatMap' call
3372
4587
  var tmp$ret$1;
@@ -3376,9 +4591,9 @@
3376
4591
  while (tmp0_iterator.w()) {
3377
4592
  var element = tmp0_iterator.y();
3378
4593
  var tmp$ret$0;
3379
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseParameters.<anonymous>.<anonymous>' call
3380
- var tmp0_safe_receiver = element.f1i_1;
3381
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().q22([name, 'Parameter', element.j1i_1]));
4594
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseParameters.<anonymous>.<anonymous>' call
4595
+ var tmp0_safe_receiver = element.h1s_1;
4596
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : flatten_2(tmp0_safe_receiver, this$0, Common_getInstance().m2b([name, 'Parameter', element.l1s_1]));
3382
4597
  tmp$ret$0 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
3383
4598
  var list = tmp$ret$0;
3384
4599
  addAll(tmp0_flatMapTo, list);
@@ -3388,17 +4603,17 @@
3388
4603
  return tmp$ret$2;
3389
4604
  };
3390
4605
  }
3391
- function OpenApiParser$parseRequestBody$lambda_0(this$0) {
4606
+ function OpenApiV3Parser$parseRequestBody$lambda(this$0) {
3392
4607
  return function (req) {
3393
- var tmp0_elvis_lhs = toName_1(req.m23_1, this$0);
3394
- var name = tmp0_elvis_lhs == null ? toName_2(req.j23_1, this$0) + req.l23_1.b9_1 : tmp0_elvis_lhs;
4608
+ var tmp0_elvis_lhs = toName_1(req.m2c_1, this$0);
4609
+ var name = tmp0_elvis_lhs == null ? toName_2(req.j2c_1, this$0) + req.l2c_1.c9_1 : tmp0_elvis_lhs;
3395
4610
  var tmp$ret$6;
3396
4611
  // Inline function 'kotlin.collections.flatMap' call
3397
4612
  var tmp$ret$0;
3398
4613
  // Inline function 'kotlin.collections.orEmpty' call
3399
- var tmp1_safe_receiver = req.m23_1.p1h_1;
4614
+ var tmp1_safe_receiver = req.m2c_1.o1q_1;
3400
4615
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_6(tmp1_safe_receiver, this$0);
3401
- var tmp0_orEmpty = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.p1i_1;
4616
+ var tmp0_orEmpty = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.v1u_1;
3402
4617
  var tmp0_elvis_lhs_0 = tmp0_orEmpty;
3403
4618
  tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
3404
4619
  var tmp1_flatMap = tmp$ret$0;
@@ -3412,27 +4627,27 @@
3412
4627
  while (tmp0_iterator.w()) {
3413
4628
  var element = tmp0_iterator.y();
3414
4629
  var tmp$ret$4;
3415
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
4630
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseRequestBody.<anonymous>.<anonymous>' call
3416
4631
  var tmp$ret$2;
3417
4632
  // Inline function 'kotlin.collections.component2' call
3418
4633
  tmp$ret$2 = element.p2();
3419
4634
  var mediaObject = tmp$ret$2;
3420
- var schema = mediaObject.x1i_1;
4635
+ var schema = mediaObject.o1w_1;
3421
4636
  var tmp;
3422
4637
  if (schema instanceof SchemaObject_0) {
3423
- var tmp0_subject = schema.p1j_1;
3424
- var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.c9_1;
4638
+ var tmp0_subject = schema.d1t_1;
4639
+ var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.d9_1;
3425
4640
  var tmp_0;
3426
4641
  switch (tmp0) {
3427
4642
  case -1:
3428
4643
  case 5:
3429
- tmp_0 = flatten_1(schema, this$0, Common_getInstance().q22([name, 'RequestBody']));
4644
+ tmp_0 = flatten_1(schema, this$0, Common_getInstance().m2b([name, 'RequestBody']));
3430
4645
  break;
3431
4646
  case 4:
3432
4647
  var tmp$ret$3;
3433
4648
  // Inline function 'kotlin.collections.orEmpty' call
3434
- var tmp1_safe_receiver_0 = schema.u1j_1;
3435
- var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().q22([name, 'RequestBody']));
4649
+ var tmp1_safe_receiver_0 = schema.i1t_1;
4650
+ var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().m2b([name, 'RequestBody']));
3436
4651
  var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
3437
4652
  tmp$ret$3 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
3438
4653
 
@@ -3463,18 +4678,18 @@
3463
4678
  return tmp$ret$6;
3464
4679
  };
3465
4680
  }
3466
- function OpenApiParser$parseResponseBody$lambda_0(this$0) {
4681
+ function OpenApiV3Parser$parseResponseBody$lambda(this$0) {
3467
4682
  return function (res) {
3468
- var tmp0_elvis_lhs = toName_1(res.q23_1, this$0);
3469
- var name = tmp0_elvis_lhs == null ? toName_2(res.n23_1, this$0) + res.p23_1.b9_1 : tmp0_elvis_lhs;
3470
- var response = res.s23_1;
4683
+ var tmp0_elvis_lhs = toName_1(res.q2c_1, this$0);
4684
+ var name = tmp0_elvis_lhs == null ? toName_2(res.n2c_1, this$0) + res.p2c_1.c9_1 : tmp0_elvis_lhs;
4685
+ var response = res.s2c_1;
3471
4686
  var tmp;
3472
4687
  if (response instanceof ResponseObject_0) {
3473
4688
  var tmp$ret$7;
3474
4689
  // Inline function 'kotlin.collections.flatMap' call
3475
4690
  var tmp$ret$0;
3476
4691
  // Inline function 'kotlin.collections.orEmpty' call
3477
- var tmp0_orEmpty = response.y1k_1;
4692
+ var tmp0_orEmpty = response.j1u_1;
3478
4693
  var tmp0_elvis_lhs_0 = tmp0_orEmpty;
3479
4694
  tmp$ret$0 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
3480
4695
  var tmp1_flatMap = tmp$ret$0;
@@ -3488,31 +4703,31 @@
3488
4703
  while (tmp0_iterator.w()) {
3489
4704
  var element = tmp0_iterator.y();
3490
4705
  var tmp$ret$5;
3491
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>' call
4706
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseResponseBody.<anonymous>.<anonymous>' call
3492
4707
  var tmp$ret$2;
3493
4708
  // Inline function 'kotlin.collections.component1' call
3494
- tmp$ret$2 = element.o2().u1i_1;
4709
+ tmp$ret$2 = element.o2().k1w_1;
3495
4710
  var mediaType = tmp$ret$2;
3496
4711
  var tmp$ret$3;
3497
4712
  // Inline function 'kotlin.collections.component2' call
3498
4713
  tmp$ret$3 = element.p2();
3499
4714
  var mediaObject = tmp$ret$3;
3500
- var schema = mediaObject.x1i_1;
4715
+ var schema = mediaObject.o1w_1;
3501
4716
  var tmp_0;
3502
4717
  if (schema instanceof SchemaObject_0) {
3503
- var tmp0_subject = schema.p1j_1;
3504
- var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.c9_1;
4718
+ var tmp0_subject = schema.d1t_1;
4719
+ var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.d9_1;
3505
4720
  var tmp_1;
3506
4721
  switch (tmp0) {
3507
4722
  case -1:
3508
4723
  case 5:
3509
- tmp_1 = flatten_1(schema, this$0, Common_getInstance().q22([name, _StatusCode___get_value__impl__we50mu_0(res.r23_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
4724
+ tmp_1 = flatten_1(schema, this$0, Common_getInstance().m2b([name, _StatusCode___get_value__impl__we50mu_0(res.r2c_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
3510
4725
  break;
3511
4726
  case 4:
3512
4727
  var tmp$ret$4;
3513
4728
  // Inline function 'kotlin.collections.orEmpty' call
3514
- var tmp1_safe_receiver = schema.u1j_1;
3515
- var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().q22([name, _StatusCode___get_value__impl__we50mu_0(res.r23_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
4729
+ var tmp1_safe_receiver = schema.i1t_1;
4730
+ var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().m2b([name, _StatusCode___get_value__impl__we50mu_0(res.r2c_1), _MediaType___get_value__impl__wy58mp(mediaType), 'ResponseBody']));
3516
4731
  var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
3517
4732
  tmp$ret$4 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
3518
4733
 
@@ -3543,7 +4758,7 @@
3543
4758
  return tmp;
3544
4759
  };
3545
4760
  }
3546
- function OpenApiParser$toName$lambda_0(this$0) {
4761
+ function OpenApiV3Parser$toName$lambda(this$0) {
3547
4762
  return function (it) {
3548
4763
  var tmp0_subject = isParam_0(it, this$0);
3549
4764
  var tmp;
@@ -3558,10 +4773,10 @@
3558
4773
  tmp$ret$0 = it;
3559
4774
  tmp$ret$1 = tmp$ret$0.substring(1, tmp0_substring);
3560
4775
 
3561
- tmp = tmp_0.q22([tmp$ret$1]);
4776
+ tmp = tmp_0.m2b([tmp$ret$1]);
3562
4777
  break;
3563
4778
  case false:
3564
- tmp = Common_getInstance().q22([it]);
4779
+ tmp = Common_getInstance().m2b([it]);
3565
4780
  break;
3566
4781
  default:
3567
4782
  noWhenBranchMatchedException();
@@ -3570,23 +4785,23 @@
3570
4785
  return tmp;
3571
4786
  };
3572
4787
  }
3573
- function OpenApiParser_0(openApi) {
4788
+ function OpenApiV3Parser(openApi) {
3574
4789
  Companion_getInstance_2();
3575
- this.i23_1 = openApi;
4790
+ this.i2c_1 = openApi;
3576
4791
  }
3577
4792
  function toMap_1(_this__u8e3s4) {
3578
4793
  var tmp;
3579
4794
  if (_this__u8e3s4 instanceof Custom) {
3580
- tmp = _this__u8e3s4.h21(VOID, VOID, true);
4795
+ tmp = _this__u8e3s4.c2a(VOID, VOID, true);
3581
4796
  } else {
3582
4797
  if (_this__u8e3s4 instanceof Any) {
3583
- tmp = _this__u8e3s4.z20(VOID, true);
4798
+ tmp = _this__u8e3s4.t29(VOID, true);
3584
4799
  } else {
3585
4800
  if (_this__u8e3s4 instanceof Primitive) {
3586
- tmp = _this__u8e3s4.j21(VOID, VOID, true);
4801
+ tmp = _this__u8e3s4.e2a(VOID, VOID, true);
3587
4802
  } else {
3588
4803
  if (_this__u8e3s4 instanceof Unit) {
3589
- tmp = _this__u8e3s4.c21(VOID, true);
4804
+ tmp = _this__u8e3s4.x29(VOID, true);
3590
4805
  } else {
3591
4806
  noWhenBranchMatchedException();
3592
4807
  }
@@ -3597,7 +4812,7 @@
3597
4812
  }
3598
4813
  function isPrimitive_0(_this__u8e3s4) {
3599
4814
  var tmp;
3600
- switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.c9_1) {
4815
+ switch (_this__u8e3s4 == null ? -1 : _this__u8e3s4.d9_1) {
3601
4816
  case 0:
3602
4817
  tmp = true;
3603
4818
  break;
@@ -3628,16 +4843,16 @@
3628
4843
  function toIterable_0(_this__u8e3s4) {
3629
4844
  var tmp;
3630
4845
  if (_this__u8e3s4 instanceof Custom) {
3631
- tmp = _this__u8e3s4.h21(VOID, true);
4846
+ tmp = _this__u8e3s4.c2a(VOID, true);
3632
4847
  } else {
3633
4848
  if (_this__u8e3s4 instanceof Any) {
3634
- tmp = _this__u8e3s4.z20(true);
4849
+ tmp = _this__u8e3s4.t29(true);
3635
4850
  } else {
3636
4851
  if (_this__u8e3s4 instanceof Primitive) {
3637
- tmp = _this__u8e3s4.j21(VOID, true);
4852
+ tmp = _this__u8e3s4.e2a(VOID, true);
3638
4853
  } else {
3639
4854
  if (_this__u8e3s4 instanceof Unit) {
3640
- tmp = _this__u8e3s4.c21(true);
4855
+ tmp = _this__u8e3s4.x29(true);
3641
4856
  } else {
3642
4857
  noWhenBranchMatchedException();
3643
4858
  }
@@ -3683,8 +4898,10 @@
3683
4898
  }
3684
4899
  //region block: exports
3685
4900
  _.$_$ = _.$_$ || {};
3686
- _.$_$.a = Companion_getInstance_1;
3687
- _.$_$.b = Companion_getInstance_2;
4901
+ _.$_$.a = OpenApiV2Emitter;
4902
+ _.$_$.b = OpenApiV3Emitter;
4903
+ _.$_$.c = Companion_getInstance_1;
4904
+ _.$_$.d = Companion_getInstance_2;
3688
4905
  //endregion
3689
4906
  return _;
3690
4907
  }));