@xiuper/mpp-core 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime.js +7836 -0
  2. package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -0
  3. package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +1241 -0
  4. package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js.map +1 -0
  5. package/Xiuper-mpp-codegraph.js +1471 -0
  6. package/Xiuper-mpp-codegraph.js.map +1 -0
  7. package/annotations.js +15 -0
  8. package/annotations.js.map +1 -0
  9. package/autodev-mpp-core.d.ts +1312 -0
  10. package/autodev-mpp-core.js +86483 -0
  11. package/autodev-mpp-core.js.map +1 -0
  12. package/kaml.js +3387 -0
  13. package/kaml.js.map +1 -0
  14. package/koog-agents-agents-core.js +22927 -0
  15. package/koog-agents-agents-core.js.map +1 -0
  16. package/koog-agents-agents-ext.js +15 -0
  17. package/koog-agents-agents-ext.js.map +1 -0
  18. package/koog-agents-agents-features-agents-features-event-handler.js +15 -0
  19. package/koog-agents-agents-features-agents-features-event-handler.js.map +1 -0
  20. package/koog-agents-agents-features-agents-features-memory.js +15 -0
  21. package/koog-agents-agents-features-agents-features-memory.js.map +1 -0
  22. package/koog-agents-agents-features-agents-features-opentelemetry.js +15 -0
  23. package/koog-agents-agents-features-agents-features-opentelemetry.js.map +1 -0
  24. package/koog-agents-agents-features-agents-features-snapshot.js +15 -0
  25. package/koog-agents-agents-features-agents-features-snapshot.js.map +1 -0
  26. package/koog-agents-agents-features-agents-features-tokenizer.js +15 -0
  27. package/koog-agents-agents-features-agents-features-tokenizer.js.map +1 -0
  28. package/koog-agents-agents-features-agents-features-trace.js +15 -0
  29. package/koog-agents-agents-features-agents-features-trace.js.map +1 -0
  30. package/koog-agents-agents-mcp.js +15 -0
  31. package/koog-agents-agents-mcp.js.map +1 -0
  32. package/koog-agents-agents-tools.js +322 -0
  33. package/koog-agents-agents-tools.js.map +1 -0
  34. package/koog-agents-agents-utils.js +232 -0
  35. package/koog-agents-agents-utils.js.map +1 -0
  36. package/koog-embeddings-embeddings-base.js +15 -0
  37. package/koog-embeddings-embeddings-base.js.map +1 -0
  38. package/koog-embeddings-embeddings-llm.js +15 -0
  39. package/koog-embeddings-embeddings-llm.js.map +1 -0
  40. package/koog-http-client-http-client-core.js +57 -0
  41. package/koog-http-client-http-client-core.js.map +1 -0
  42. package/koog-http-client-http-client-ktor.js +703 -0
  43. package/koog-http-client-http-client-ktor.js.map +1 -0
  44. package/koog-koog-agents.js +15 -0
  45. package/koog-koog-agents.js.map +1 -0
  46. package/koog-prompt-prompt-cache-prompt-cache-files.js +15 -0
  47. package/koog-prompt-prompt-cache-prompt-cache-files.js.map +1 -0
  48. package/koog-prompt-prompt-cache-prompt-cache-model.js +15 -0
  49. package/koog-prompt-prompt-cache-prompt-cache-model.js.map +1 -0
  50. package/koog-prompt-prompt-cache-prompt-cache-redis.js +15 -0
  51. package/koog-prompt-prompt-cache-prompt-cache-redis.js.map +1 -0
  52. package/koog-prompt-prompt-executor-prompt-executor-cached.js +15 -0
  53. package/koog-prompt-prompt-executor-prompt-executor-cached.js.map +1 -0
  54. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js +4991 -0
  55. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js.map +1 -0
  56. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-bedrock-client.js +15 -0
  57. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-bedrock-client.js.map +1 -0
  58. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-dashscope-client.js +15 -0
  59. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-dashscope-client.js.map +1 -0
  60. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js +1249 -0
  61. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js.map +1 -0
  62. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js +4675 -0
  63. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js.map +1 -0
  64. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-mistralai-client.js +15 -0
  65. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-mistralai-client.js.map +1 -0
  66. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js +2343 -0
  67. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js.map +1 -0
  68. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js +6613 -0
  69. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js.map +1 -0
  70. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js +19901 -0
  71. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js.map +1 -0
  72. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js +2313 -0
  73. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js.map +1 -0
  74. package/koog-prompt-prompt-executor-prompt-executor-clients.js +222 -0
  75. package/koog-prompt-prompt-executor-prompt-executor-clients.js.map +1 -0
  76. package/koog-prompt-prompt-executor-prompt-executor-llms-all.js +70 -0
  77. package/koog-prompt-prompt-executor-prompt-executor-llms-all.js.map +1 -0
  78. package/koog-prompt-prompt-executor-prompt-executor-llms.js +134 -0
  79. package/koog-prompt-prompt-executor-prompt-executor-llms.js.map +1 -0
  80. package/koog-prompt-prompt-executor-prompt-executor-model.js +42 -0
  81. package/koog-prompt-prompt-executor-prompt-executor-model.js.map +1 -0
  82. package/koog-prompt-prompt-llm.js +1710 -0
  83. package/koog-prompt-prompt-llm.js.map +1 -0
  84. package/koog-prompt-prompt-markdown.js +122 -0
  85. package/koog-prompt-prompt-markdown.js.map +1 -0
  86. package/koog-prompt-prompt-model.js +5848 -0
  87. package/koog-prompt-prompt-model.js.map +1 -0
  88. package/koog-prompt-prompt-structure.js +1513 -0
  89. package/koog-prompt-prompt-structure.js.map +1 -0
  90. package/koog-prompt-prompt-tokenizer.js +15 -0
  91. package/koog-prompt-prompt-tokenizer.js.map +1 -0
  92. package/koog-prompt-prompt-xml.js +15 -0
  93. package/koog-prompt-prompt-xml.js.map +1 -0
  94. package/koog-rag-rag-base.js +15 -0
  95. package/koog-rag-rag-base.js.map +1 -0
  96. package/koog-rag-vector-storage.js +15 -0
  97. package/koog-rag-vector-storage.js.map +1 -0
  98. package/koog-utils.js +63 -0
  99. package/koog-utils.js.map +1 -0
  100. package/kotlin-kotlin-stdlib.js +18965 -0
  101. package/kotlin-kotlin-stdlib.js.map +1 -0
  102. package/kotlin-logging.js +509 -0
  103. package/kotlin-logging.js.map +1 -0
  104. package/kotlin-sdk-kotlin-sdk-client.js +1340 -0
  105. package/kotlin-sdk-kotlin-sdk-client.js.map +1 -0
  106. package/kotlin-sdk-kotlin-sdk-core.js +15195 -0
  107. package/kotlin-sdk-kotlin-sdk-core.js.map +1 -0
  108. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
  109. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
  110. package/kotlinx-atomicfu.js +259 -0
  111. package/kotlinx-atomicfu.js.map +1 -0
  112. package/kotlinx-coroutines-core.js +13742 -0
  113. package/kotlinx-coroutines-core.js.map +1 -0
  114. package/kotlinx-io-kotlinx-io-bytestring.js +214 -0
  115. package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -0
  116. package/kotlinx-io-kotlinx-io-core.js +2892 -0
  117. package/kotlinx-io-kotlinx-io-core.js.map +1 -0
  118. package/kotlinx-serialization-kotlinx-serialization-core.js +6563 -0
  119. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
  120. package/kotlinx-serialization-kotlinx-serialization-json-io.js +15 -0
  121. package/kotlinx-serialization-kotlinx-serialization-json-io.js.map +1 -0
  122. package/kotlinx-serialization-kotlinx-serialization-json.js +5927 -0
  123. package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
  124. package/ktor-ktor-client-content-negotiation.js +775 -0
  125. package/ktor-ktor-client-content-negotiation.js.map +1 -0
  126. package/ktor-ktor-client-core.js +11110 -0
  127. package/ktor-ktor-client-core.js.map +1 -0
  128. package/ktor-ktor-client-logging.js +15 -0
  129. package/ktor-ktor-client-logging.js.map +1 -0
  130. package/ktor-ktor-events.js +126 -0
  131. package/ktor-ktor-events.js.map +1 -0
  132. package/ktor-ktor-http-cio.js +4257 -0
  133. package/ktor-ktor-http-cio.js.map +1 -0
  134. package/ktor-ktor-http.js +3671 -0
  135. package/ktor-ktor-http.js.map +1 -0
  136. package/ktor-ktor-io.js +4114 -0
  137. package/ktor-ktor-io.js.map +1 -0
  138. package/ktor-ktor-network.js +1399 -0
  139. package/ktor-ktor-network.js.map +1 -0
  140. package/ktor-ktor-serialization-kotlinx-json.js +67 -0
  141. package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
  142. package/ktor-ktor-serialization-kotlinx.js +881 -0
  143. package/ktor-ktor-serialization-kotlinx.js.map +1 -0
  144. package/ktor-ktor-serialization.js +388 -0
  145. package/ktor-ktor-serialization.js.map +1 -0
  146. package/ktor-ktor-server-cio.js +3735 -0
  147. package/ktor-ktor-server-cio.js.map +1 -0
  148. package/ktor-ktor-server-core.js +8696 -0
  149. package/ktor-ktor-server-core.js.map +1 -0
  150. package/ktor-ktor-server-sse.js +668 -0
  151. package/ktor-ktor-server-sse.js.map +1 -0
  152. package/ktor-ktor-server-websockets.js +15 -0
  153. package/ktor-ktor-server-websockets.js.map +1 -0
  154. package/ktor-ktor-sse.js +161 -0
  155. package/ktor-ktor-sse.js.map +1 -0
  156. package/ktor-ktor-utils.js +3589 -0
  157. package/ktor-ktor-utils.js.map +1 -0
  158. package/ktor-ktor-websocket-serialization.js +15 -0
  159. package/ktor-ktor-websocket-serialization.js.map +1 -0
  160. package/ktor-ktor-websockets.js +450 -0
  161. package/ktor-ktor-websockets.js.map +1 -0
  162. package/markdown.js +5174 -0
  163. package/markdown.js.map +1 -0
  164. package/okio-parent-okio.js +2628 -0
  165. package/okio-parent-okio.js.map +1 -0
  166. package/package.json +18 -0
  167. package/snakeyaml-engine-kmp.js +7079 -0
  168. package/snakeyaml-engine-kmp.js.map +1 -0
  169. package/urlencoder-urlencoder-lib.js +322 -0
  170. package/urlencoder-urlencoder-lib.js.map +1 -0
  171. package/xiuper-mpp-core.d.ts +1312 -0
  172. package/xiuper-mpp-core.js +86483 -0
  173. package/xiuper-mpp-core.js.map +1 -0
@@ -0,0 +1,881 @@
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './ktor-ktor-http.js', './kotlinx-coroutines-core.js', './ktor-ktor-io.js', './kotlinx-io-kotlinx-io-core.js', './ktor-ktor-serialization.js'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./ktor-ktor-http.js'), require('./kotlinx-coroutines-core.js'), require('./ktor-ktor-io.js'), require('./kotlinx-io-kotlinx-io-core.js'), require('./ktor-ktor-serialization.js'));
6
+ else {
7
+ if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
8
+ throw new Error("Error loading module 'ktor-ktor-serialization-kotlinx'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'ktor-ktor-serialization-kotlinx'.");
9
+ }
10
+ if (typeof globalThis['kotlinx-serialization-kotlinx-serialization-core'] === 'undefined') {
11
+ throw new Error("Error loading module 'ktor-ktor-serialization-kotlinx'. Its dependency 'kotlinx-serialization-kotlinx-serialization-core' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-core' is loaded prior to 'ktor-ktor-serialization-kotlinx'.");
12
+ }
13
+ if (typeof globalThis['ktor-ktor-http'] === 'undefined') {
14
+ throw new Error("Error loading module 'ktor-ktor-serialization-kotlinx'. Its dependency 'ktor-ktor-http' was not found. Please, check whether 'ktor-ktor-http' is loaded prior to 'ktor-ktor-serialization-kotlinx'.");
15
+ }
16
+ if (typeof globalThis['kotlinx-coroutines-core'] === 'undefined') {
17
+ throw new Error("Error loading module 'ktor-ktor-serialization-kotlinx'. Its dependency 'kotlinx-coroutines-core' was not found. Please, check whether 'kotlinx-coroutines-core' is loaded prior to 'ktor-ktor-serialization-kotlinx'.");
18
+ }
19
+ if (typeof globalThis['ktor-ktor-io'] === 'undefined') {
20
+ throw new Error("Error loading module 'ktor-ktor-serialization-kotlinx'. Its dependency 'ktor-ktor-io' was not found. Please, check whether 'ktor-ktor-io' is loaded prior to 'ktor-ktor-serialization-kotlinx'.");
21
+ }
22
+ if (typeof globalThis['kotlinx-io-kotlinx-io-core'] === 'undefined') {
23
+ throw new Error("Error loading module 'ktor-ktor-serialization-kotlinx'. Its dependency 'kotlinx-io-kotlinx-io-core' was not found. Please, check whether 'kotlinx-io-kotlinx-io-core' is loaded prior to 'ktor-ktor-serialization-kotlinx'.");
24
+ }
25
+ if (typeof globalThis['ktor-ktor-serialization'] === 'undefined') {
26
+ throw new Error("Error loading module 'ktor-ktor-serialization-kotlinx'. Its dependency 'ktor-ktor-serialization' was not found. Please, check whether 'ktor-ktor-serialization' is loaded prior to 'ktor-ktor-serialization-kotlinx'.");
27
+ }
28
+ globalThis['ktor-ktor-serialization-kotlinx'] = factory(typeof globalThis['ktor-ktor-serialization-kotlinx'] === 'undefined' ? {} : globalThis['ktor-ktor-serialization-kotlinx'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['ktor-ktor-http'], globalThis['kotlinx-coroutines-core'], globalThis['ktor-ktor-io'], globalThis['kotlinx-io-kotlinx-io-core'], globalThis['ktor-ktor-serialization']);
29
+ }
30
+ }(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_io_ktor_ktor_io, kotlin_org_jetbrains_kotlinx_kotlinx_io_core, kotlin_io_ktor_ktor_serialization) {
31
+ 'use strict';
32
+ //region block: imports
33
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.t;
34
+ var Unit_instance = kotlin_kotlin.$_$.h6;
35
+ var CoroutineImpl = kotlin_kotlin.$_$.tc;
36
+ var protoOf = kotlin_kotlin.$_$.we;
37
+ var THROW_CCE = kotlin_kotlin.$_$.zk;
38
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.dc;
39
+ var initMetadataForLambda = kotlin_kotlin.$_$.zd;
40
+ var VOID = kotlin_kotlin.$_$.h;
41
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.wd;
42
+ var toString = kotlin_kotlin.$_$.af;
43
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.j2;
44
+ var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x3;
45
+ var isInterface = kotlin_kotlin.$_$.je;
46
+ var ByteArrayContent = kotlin_io_ktor_ktor_http.$_$.o;
47
+ var BinaryFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v3;
48
+ var withCharsetIfNeeded = kotlin_io_ktor_ktor_http.$_$.p2;
49
+ var TextContent = kotlin_io_ktor_ktor_http.$_$.b1;
50
+ var StringFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c4;
51
+ var equals = kotlin_kotlin.$_$.md;
52
+ var FunctionAdapter = kotlin_kotlin.$_$.zc;
53
+ var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
54
+ var hashCode = kotlin_kotlin.$_$.td;
55
+ var initMetadataForClass = kotlin_kotlin.$_$.ud;
56
+ var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.x;
57
+ var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g1;
58
+ var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c;
59
+ var SerializationException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a4;
60
+ var readRemaining = kotlin_io_ktor_ktor_io.$_$.g;
61
+ var discard = kotlin_io_ktor_ktor_io.$_$.j1;
62
+ var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.q;
63
+ var readText = kotlin_io_ktor_ktor_io.$_$.k1;
64
+ var JsonConvertException = kotlin_io_ktor_ktor_serialization.$_$.d;
65
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.e2;
66
+ var serializerOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f4;
67
+ var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i4;
68
+ var getKClassFromExpression = kotlin_kotlin.$_$.e;
69
+ var MapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g1;
70
+ var KtMap = kotlin_kotlin.$_$.v6;
71
+ var SetSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h1;
72
+ var KtSet = kotlin_kotlin.$_$.z6;
73
+ var firstOrNull_0 = kotlin_kotlin.$_$.u8;
74
+ var StringCompanionObject_instance = kotlin_kotlin.$_$.q5;
75
+ var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j1;
76
+ var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f1;
77
+ var isArray = kotlin_kotlin.$_$.be;
78
+ var KtList = kotlin_kotlin.$_$.s6;
79
+ var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i1;
80
+ var filterNotNull = kotlin_kotlin.$_$.r8;
81
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.p7;
82
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.s;
83
+ var HashSet_init_$Create$ = kotlin_kotlin.$_$.z;
84
+ var singleOrNull = kotlin_kotlin.$_$.qa;
85
+ var Collection = kotlin_kotlin.$_$.n6;
86
+ var emptyList = kotlin_kotlin.$_$.m8;
87
+ //endregion
88
+ //region block: pre-declaration
89
+ initMetadataForLambda(KotlinxSerializationConverter$serialize$o$collect$slambda, CoroutineImpl, VOID, [1]);
90
+ initMetadataForCoroutine($collectCOROUTINE$, CoroutineImpl);
91
+ initMetadataForLambda(KotlinxSerializationConverter$deserialize$o$collect$slambda, CoroutineImpl, VOID, [1]);
92
+ initMetadataForCoroutine($collectCOROUTINE$_0, CoroutineImpl);
93
+ initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector, FunctionAdapter], [1]);
94
+ initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0_0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector, FunctionAdapter], [1]);
95
+ initMetadataForClass(KotlinxSerializationConverter$serialize$$inlined$map$1, VOID, VOID, VOID, VOID, [1]);
96
+ initMetadataForLambda(KotlinxSerializationConverter$serialize$slambda, CoroutineImpl, VOID, [1]);
97
+ initMetadataForClass(KotlinxSerializationConverter$deserialize$$inlined$map$1, VOID, VOID, VOID, VOID, [1]);
98
+ initMetadataForLambda(KotlinxSerializationConverter$deserialize$slambda, CoroutineImpl, VOID, [1]);
99
+ initMetadataForCoroutine($serializeCOROUTINE$, CoroutineImpl);
100
+ initMetadataForCoroutine($deserializeCOROUTINE$, CoroutineImpl);
101
+ initMetadataForClass(KotlinxSerializationConverter, 'KotlinxSerializationConverter', VOID, VOID, VOID, [4, 3]);
102
+ //endregion
103
+ function extensions(format) {
104
+ // Inline function 'kotlin.collections.mapNotNull' call
105
+ var tmp0 = get_providers();
106
+ // Inline function 'kotlin.collections.mapNotNullTo' call
107
+ var destination = ArrayList_init_$Create$();
108
+ // Inline function 'kotlin.collections.forEach' call
109
+ var _iterator__ex2g4s = tmp0.p();
110
+ while (_iterator__ex2g4s.q()) {
111
+ var element = _iterator__ex2g4s.r();
112
+ var tmp0_safe_receiver = element.i7q(format);
113
+ if (tmp0_safe_receiver == null)
114
+ null;
115
+ else {
116
+ // Inline function 'kotlin.let' call
117
+ destination.h(tmp0_safe_receiver);
118
+ }
119
+ }
120
+ return destination;
121
+ }
122
+ function serialization(_this__u8e3s4, contentType, format) {
123
+ _this__u8e3s4.a61(contentType, new KotlinxSerializationConverter(format));
124
+ }
125
+ function KotlinxSerializationConverter$serialize$o$collect$slambda($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation) {
126
+ this.r7q_1 = $$this$unsafeFlow;
127
+ this.s7q_1 = $contentType;
128
+ this.t7q_1 = $charset;
129
+ this.u7q_1 = $typeInfo;
130
+ this.v7q_1 = $value;
131
+ CoroutineImpl.call(this, resultContinuation);
132
+ }
133
+ protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).j2w = function (value, $completion) {
134
+ var tmp = this.k2w(value, $completion);
135
+ tmp.z9_1 = Unit_instance;
136
+ tmp.aa_1 = null;
137
+ return tmp.fa();
138
+ };
139
+ protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).ra = function (p1, $completion) {
140
+ return this.j2w((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
141
+ };
142
+ protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).fa = function () {
143
+ var suspendResult = this.z9_1;
144
+ $sm: do
145
+ try {
146
+ var tmp = this.x9_1;
147
+ switch (tmp) {
148
+ case 0:
149
+ this.y9_1 = 3;
150
+ var tmp_0 = this;
151
+ tmp_0.x7q_1 = this.r7q_1;
152
+ var tmp_1 = this;
153
+ tmp_1.y7q_1 = this.w7q_1;
154
+ this.z7q_1 = this.x7q_1;
155
+ this.a7r_1 = this.y7q_1;
156
+ var tmp_2 = this;
157
+ tmp_2.b7r_1 = this.a7r_1;
158
+ this.c7r_1 = this.b7r_1;
159
+ this.x9_1 = 1;
160
+ suspendResult = this.c7r_1.h7q(this.s7q_1, this.t7q_1, this.u7q_1, this.v7q_1, this);
161
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
162
+ return suspendResult;
163
+ }
164
+
165
+ continue $sm;
166
+ case 1:
167
+ this.d7r_1 = suspendResult;
168
+ this.x9_1 = 2;
169
+ suspendResult = this.z7q_1.b2l(this.d7r_1, this);
170
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
171
+ return suspendResult;
172
+ }
173
+
174
+ continue $sm;
175
+ case 2:
176
+ return Unit_instance;
177
+ case 3:
178
+ throw this.aa_1;
179
+ }
180
+ } catch ($p) {
181
+ var e = $p;
182
+ if (this.y9_1 === 3) {
183
+ throw e;
184
+ } else {
185
+ this.x9_1 = this.y9_1;
186
+ this.aa_1 = e;
187
+ }
188
+ }
189
+ while (true);
190
+ };
191
+ protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).k2w = function (value, completion) {
192
+ var i = new KotlinxSerializationConverter$serialize$o$collect$slambda(this.r7q_1, this.s7q_1, this.t7q_1, this.u7q_1, this.v7q_1, completion);
193
+ i.w7q_1 = value;
194
+ return i;
195
+ };
196
+ function KotlinxSerializationConverter$serialize$o$collect$slambda_0($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation) {
197
+ var i = new KotlinxSerializationConverter$serialize$o$collect$slambda($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation);
198
+ var l = function (value, $completion) {
199
+ return i.j2w(value, $completion);
200
+ };
201
+ l.$arity = 1;
202
+ return l;
203
+ }
204
+ function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
205
+ CoroutineImpl.call(this, resultContinuation);
206
+ this.m7r_1 = _this__u8e3s4;
207
+ this.n7r_1 = collector;
208
+ }
209
+ protoOf($collectCOROUTINE$).fa = function () {
210
+ var suspendResult = this.z9_1;
211
+ $sm: do
212
+ try {
213
+ var tmp = this.x9_1;
214
+ switch (tmp) {
215
+ case 0:
216
+ this.y9_1 = 2;
217
+ var tmp_0 = this;
218
+ tmp_0.o7r_1 = this.n7r_1;
219
+ this.p7r_1 = this.o7r_1;
220
+ this.x9_1 = 1;
221
+ var tmp_1 = KotlinxSerializationConverter$serialize$o$collect$slambda_0(this.p7r_1, this.m7r_1.r7r_1, this.m7r_1.s7r_1, this.m7r_1.t7r_1, this.m7r_1.u7r_1, null);
222
+ suspendResult = this.m7r_1.q7r_1.g2k(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
223
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
224
+ return suspendResult;
225
+ }
226
+
227
+ continue $sm;
228
+ case 1:
229
+ return Unit_instance;
230
+ case 2:
231
+ throw this.aa_1;
232
+ }
233
+ } catch ($p) {
234
+ var e = $p;
235
+ if (this.y9_1 === 2) {
236
+ throw e;
237
+ } else {
238
+ this.x9_1 = this.y9_1;
239
+ this.aa_1 = e;
240
+ }
241
+ }
242
+ while (true);
243
+ };
244
+ function KotlinxSerializationConverter$deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $content, resultContinuation) {
245
+ this.d7s_1 = $$this$unsafeFlow;
246
+ this.e7s_1 = $charset;
247
+ this.f7s_1 = $typeInfo;
248
+ this.g7s_1 = $content;
249
+ CoroutineImpl.call(this, resultContinuation);
250
+ }
251
+ protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).j2w = function (value, $completion) {
252
+ var tmp = this.k2w(value, $completion);
253
+ tmp.z9_1 = Unit_instance;
254
+ tmp.aa_1 = null;
255
+ return tmp.fa();
256
+ };
257
+ protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).ra = function (p1, $completion) {
258
+ return this.j2w((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
259
+ };
260
+ protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).fa = function () {
261
+ var suspendResult = this.z9_1;
262
+ $sm: do
263
+ try {
264
+ var tmp = this.x9_1;
265
+ switch (tmp) {
266
+ case 0:
267
+ this.y9_1 = 3;
268
+ var tmp_0 = this;
269
+ tmp_0.i7s_1 = this.d7s_1;
270
+ var tmp_1 = this;
271
+ tmp_1.j7s_1 = this.h7s_1;
272
+ this.k7s_1 = this.i7s_1;
273
+ this.l7s_1 = this.j7s_1;
274
+ var tmp_2 = this;
275
+ tmp_2.m7s_1 = this.l7s_1;
276
+ this.n7s_1 = this.m7s_1;
277
+ this.x9_1 = 1;
278
+ suspendResult = this.n7s_1.w61(this.e7s_1, this.f7s_1, this.g7s_1, this);
279
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
280
+ return suspendResult;
281
+ }
282
+
283
+ continue $sm;
284
+ case 1:
285
+ this.o7s_1 = suspendResult;
286
+ this.x9_1 = 2;
287
+ suspendResult = this.k7s_1.b2l(this.o7s_1, this);
288
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
289
+ return suspendResult;
290
+ }
291
+
292
+ continue $sm;
293
+ case 2:
294
+ return Unit_instance;
295
+ case 3:
296
+ throw this.aa_1;
297
+ }
298
+ } catch ($p) {
299
+ var e = $p;
300
+ if (this.y9_1 === 3) {
301
+ throw e;
302
+ } else {
303
+ this.x9_1 = this.y9_1;
304
+ this.aa_1 = e;
305
+ }
306
+ }
307
+ while (true);
308
+ };
309
+ protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).k2w = function (value, completion) {
310
+ var i = new KotlinxSerializationConverter$deserialize$o$collect$slambda(this.d7s_1, this.e7s_1, this.f7s_1, this.g7s_1, completion);
311
+ i.h7s_1 = value;
312
+ return i;
313
+ };
314
+ function KotlinxSerializationConverter$deserialize$o$collect$slambda_0($$this$unsafeFlow, $charset, $typeInfo, $content, resultContinuation) {
315
+ var i = new KotlinxSerializationConverter$deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $content, resultContinuation);
316
+ var l = function (value, $completion) {
317
+ return i.j2w(value, $completion);
318
+ };
319
+ l.$arity = 1;
320
+ return l;
321
+ }
322
+ function $collectCOROUTINE$_0(_this__u8e3s4, collector, resultContinuation) {
323
+ CoroutineImpl.call(this, resultContinuation);
324
+ this.x7s_1 = _this__u8e3s4;
325
+ this.y7s_1 = collector;
326
+ }
327
+ protoOf($collectCOROUTINE$_0).fa = function () {
328
+ var suspendResult = this.z9_1;
329
+ $sm: do
330
+ try {
331
+ var tmp = this.x9_1;
332
+ switch (tmp) {
333
+ case 0:
334
+ this.y9_1 = 2;
335
+ var tmp_0 = this;
336
+ tmp_0.z7s_1 = this.y7s_1;
337
+ this.a7t_1 = this.z7s_1;
338
+ this.x9_1 = 1;
339
+ var tmp_1 = KotlinxSerializationConverter$deserialize$o$collect$slambda_0(this.a7t_1, this.x7s_1.c7t_1, this.x7s_1.d7t_1, this.x7s_1.e7t_1, null);
340
+ suspendResult = this.x7s_1.b7t_1.g2k(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
341
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
342
+ return suspendResult;
343
+ }
344
+
345
+ continue $sm;
346
+ case 1:
347
+ return Unit_instance;
348
+ case 2:
349
+ throw this.aa_1;
350
+ }
351
+ } catch ($p) {
352
+ var e = $p;
353
+ if (this.y9_1 === 2) {
354
+ throw e;
355
+ } else {
356
+ this.x9_1 = this.y9_1;
357
+ this.aa_1 = e;
358
+ }
359
+ }
360
+ while (true);
361
+ };
362
+ function serializeContent($this, serializer, format, value, contentType, charset) {
363
+ var tmp;
364
+ if (isInterface(format, StringFormat)) {
365
+ var content = format.gw(isInterface(serializer, KSerializer) ? serializer : THROW_CCE(), value);
366
+ tmp = new TextContent(content, withCharsetIfNeeded(contentType, charset));
367
+ } else {
368
+ if (isInterface(format, BinaryFormat)) {
369
+ var content_0 = format.iw(isInterface(serializer, KSerializer) ? serializer : THROW_CCE(), value);
370
+ tmp = new ByteArrayContent(content_0, contentType);
371
+ } else {
372
+ var message = 'Unsupported format ' + toString(format);
373
+ throw IllegalStateException_init_$Create$(toString(message));
374
+ }
375
+ }
376
+ return tmp;
377
+ }
378
+ function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
379
+ this.f7t_1 = function_0;
380
+ }
381
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).b2l = function (value, $completion) {
382
+ return this.f7t_1(value, $completion);
383
+ };
384
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).v3 = function () {
385
+ return this.f7t_1;
386
+ };
387
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
388
+ var tmp;
389
+ if (!(other == null) ? isInterface(other, FlowCollector) : false) {
390
+ var tmp_0;
391
+ if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
392
+ tmp_0 = equals(this.v3(), other.v3());
393
+ } else {
394
+ tmp_0 = false;
395
+ }
396
+ tmp = tmp_0;
397
+ } else {
398
+ tmp = false;
399
+ }
400
+ return tmp;
401
+ };
402
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).hashCode = function () {
403
+ return hashCode(this.v3());
404
+ };
405
+ function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
406
+ this.g7t_1 = function_0;
407
+ }
408
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).b2l = function (value, $completion) {
409
+ return this.g7t_1(value, $completion);
410
+ };
411
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).v3 = function () {
412
+ return this.g7t_1;
413
+ };
414
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
415
+ var tmp;
416
+ if (!(other == null) ? isInterface(other, FlowCollector) : false) {
417
+ var tmp_0;
418
+ if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
419
+ tmp_0 = equals(this.v3(), other.v3());
420
+ } else {
421
+ tmp_0 = false;
422
+ }
423
+ tmp = tmp_0;
424
+ } else {
425
+ tmp = false;
426
+ }
427
+ return tmp;
428
+ };
429
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).hashCode = function () {
430
+ return hashCode(this.v3());
431
+ };
432
+ function KotlinxSerializationConverter$serialize$$inlined$map$1($this, $contentType, $charset, $typeInfo, $value) {
433
+ this.q7r_1 = $this;
434
+ this.r7r_1 = $contentType;
435
+ this.s7r_1 = $charset;
436
+ this.t7r_1 = $typeInfo;
437
+ this.u7r_1 = $value;
438
+ }
439
+ protoOf(KotlinxSerializationConverter$serialize$$inlined$map$1).c2l = function (collector, $completion) {
440
+ var tmp = new $collectCOROUTINE$(this, collector, $completion);
441
+ tmp.z9_1 = Unit_instance;
442
+ tmp.aa_1 = null;
443
+ return tmp.fa();
444
+ };
445
+ protoOf(KotlinxSerializationConverter$serialize$$inlined$map$1).g2k = function (collector, $completion) {
446
+ return this.c2l(collector, $completion);
447
+ };
448
+ function KotlinxSerializationConverter$serialize$slambda(resultContinuation) {
449
+ CoroutineImpl.call(this, resultContinuation);
450
+ }
451
+ protoOf(KotlinxSerializationConverter$serialize$slambda).q7t = function (it, $completion) {
452
+ var tmp = this.r7t(it, $completion);
453
+ tmp.z9_1 = Unit_instance;
454
+ tmp.aa_1 = null;
455
+ return tmp.fa();
456
+ };
457
+ protoOf(KotlinxSerializationConverter$serialize$slambda).ra = function (p1, $completion) {
458
+ return this.q7t((p1 == null ? true : p1 instanceof OutgoingContent) ? p1 : THROW_CCE(), $completion);
459
+ };
460
+ protoOf(KotlinxSerializationConverter$serialize$slambda).fa = function () {
461
+ var suspendResult = this.z9_1;
462
+ $sm: do
463
+ try {
464
+ var tmp = this.x9_1;
465
+ if (tmp === 0) {
466
+ this.y9_1 = 1;
467
+ return !(this.p7t_1 == null);
468
+ } else if (tmp === 1) {
469
+ throw this.aa_1;
470
+ }
471
+ } catch ($p) {
472
+ var e = $p;
473
+ throw e;
474
+ }
475
+ while (true);
476
+ };
477
+ protoOf(KotlinxSerializationConverter$serialize$slambda).r7t = function (it, completion) {
478
+ var i = new KotlinxSerializationConverter$serialize$slambda(completion);
479
+ i.p7t_1 = it;
480
+ return i;
481
+ };
482
+ function KotlinxSerializationConverter$serialize$slambda_0(resultContinuation) {
483
+ var i = new KotlinxSerializationConverter$serialize$slambda(resultContinuation);
484
+ var l = function (it, $completion) {
485
+ return i.q7t(it, $completion);
486
+ };
487
+ l.$arity = 1;
488
+ return l;
489
+ }
490
+ function KotlinxSerializationConverter$deserialize$$inlined$map$1($this, $charset, $typeInfo, $content) {
491
+ this.b7t_1 = $this;
492
+ this.c7t_1 = $charset;
493
+ this.d7t_1 = $typeInfo;
494
+ this.e7t_1 = $content;
495
+ }
496
+ protoOf(KotlinxSerializationConverter$deserialize$$inlined$map$1).c2l = function (collector, $completion) {
497
+ var tmp = new $collectCOROUTINE$_0(this, collector, $completion);
498
+ tmp.z9_1 = Unit_instance;
499
+ tmp.aa_1 = null;
500
+ return tmp.fa();
501
+ };
502
+ protoOf(KotlinxSerializationConverter$deserialize$$inlined$map$1).g2k = function (collector, $completion) {
503
+ return this.c2l(collector, $completion);
504
+ };
505
+ function KotlinxSerializationConverter$deserialize$slambda($content, resultContinuation) {
506
+ this.a7u_1 = $content;
507
+ CoroutineImpl.call(this, resultContinuation);
508
+ }
509
+ protoOf(KotlinxSerializationConverter$deserialize$slambda).x62 = function (it, $completion) {
510
+ var tmp = this.k2w(it, $completion);
511
+ tmp.z9_1 = Unit_instance;
512
+ tmp.aa_1 = null;
513
+ return tmp.fa();
514
+ };
515
+ protoOf(KotlinxSerializationConverter$deserialize$slambda).ra = function (p1, $completion) {
516
+ return this.x62((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
517
+ };
518
+ protoOf(KotlinxSerializationConverter$deserialize$slambda).fa = function () {
519
+ var suspendResult = this.z9_1;
520
+ $sm: do
521
+ try {
522
+ var tmp = this.x9_1;
523
+ if (tmp === 0) {
524
+ this.y9_1 = 1;
525
+ return !(this.b7u_1 == null) || this.a7u_1.l4i();
526
+ } else if (tmp === 1) {
527
+ throw this.aa_1;
528
+ }
529
+ } catch ($p) {
530
+ var e = $p;
531
+ throw e;
532
+ }
533
+ while (true);
534
+ };
535
+ protoOf(KotlinxSerializationConverter$deserialize$slambda).k2w = function (it, completion) {
536
+ var i = new KotlinxSerializationConverter$deserialize$slambda(this.a7u_1, completion);
537
+ i.b7u_1 = it;
538
+ return i;
539
+ };
540
+ function KotlinxSerializationConverter$deserialize$slambda_0($content, resultContinuation) {
541
+ var i = new KotlinxSerializationConverter$deserialize$slambda($content, resultContinuation);
542
+ var l = function (it, $completion) {
543
+ return i.x62(it, $completion);
544
+ };
545
+ l.$arity = 1;
546
+ return l;
547
+ }
548
+ function $serializeCOROUTINE$(_this__u8e3s4, contentType, charset, typeInfo, value, resultContinuation) {
549
+ CoroutineImpl.call(this, resultContinuation);
550
+ this.k7u_1 = _this__u8e3s4;
551
+ this.l7u_1 = contentType;
552
+ this.m7u_1 = charset;
553
+ this.n7u_1 = typeInfo;
554
+ this.o7u_1 = value;
555
+ }
556
+ protoOf($serializeCOROUTINE$).fa = function () {
557
+ var suspendResult = this.z9_1;
558
+ $sm: do
559
+ try {
560
+ var tmp = this.x9_1;
561
+ switch (tmp) {
562
+ case 0:
563
+ this.y9_1 = 2;
564
+ this.x9_1 = 1;
565
+ var this_0 = asFlow(this.k7u_1.q7u_1);
566
+ var tmp_0 = new KotlinxSerializationConverter$serialize$$inlined$map$1(this_0, this.l7u_1, this.m7u_1, this.n7u_1, this.o7u_1);
567
+ suspendResult = firstOrNull(tmp_0, KotlinxSerializationConverter$serialize$slambda_0(null), this);
568
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
569
+ return suspendResult;
570
+ }
571
+
572
+ continue $sm;
573
+ case 1:
574
+ var fromExtension = suspendResult;
575
+ if (!(fromExtension == null))
576
+ return fromExtension;
577
+ var tmp_1;
578
+ try {
579
+ tmp_1 = serializerForTypeInfo(this.k7u_1.p7u_1.lz(), this.n7u_1);
580
+ } catch ($p) {
581
+ var tmp_2;
582
+ if ($p instanceof SerializationException) {
583
+ var cause = $p;
584
+ tmp_2 = guessSerializer(this.o7u_1, this.k7u_1.p7u_1.lz());
585
+ } else {
586
+ throw $p;
587
+ }
588
+ tmp_1 = tmp_2;
589
+ }
590
+
591
+ var serializer = tmp_1;
592
+ return serializeContent(this.k7u_1, serializer, this.k7u_1.p7u_1, this.o7u_1, this.l7u_1, this.m7u_1);
593
+ case 2:
594
+ throw this.aa_1;
595
+ }
596
+ } catch ($p) {
597
+ var e = $p;
598
+ if (this.y9_1 === 2) {
599
+ throw e;
600
+ } else {
601
+ this.x9_1 = this.y9_1;
602
+ this.aa_1 = e;
603
+ }
604
+ }
605
+ while (true);
606
+ };
607
+ function $deserializeCOROUTINE$(_this__u8e3s4, charset, typeInfo, content, resultContinuation) {
608
+ CoroutineImpl.call(this, resultContinuation);
609
+ this.z7u_1 = _this__u8e3s4;
610
+ this.a7v_1 = charset;
611
+ this.b7v_1 = typeInfo;
612
+ this.c7v_1 = content;
613
+ }
614
+ protoOf($deserializeCOROUTINE$).fa = function () {
615
+ var suspendResult = this.z9_1;
616
+ $sm: do
617
+ try {
618
+ var tmp = this.x9_1;
619
+ switch (tmp) {
620
+ case 0:
621
+ this.y9_1 = 4;
622
+ this.x9_1 = 1;
623
+ var this_0 = asFlow(this.z7u_1.q7u_1);
624
+ var tmp_0 = new KotlinxSerializationConverter$deserialize$$inlined$map$1(this_0, this.a7v_1, this.b7v_1, this.c7v_1);
625
+ suspendResult = firstOrNull(tmp_0, KotlinxSerializationConverter$deserialize$slambda_0(this.c7v_1, null), this);
626
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
627
+ return suspendResult;
628
+ }
629
+
630
+ continue $sm;
631
+ case 1:
632
+ this.d7v_1 = suspendResult;
633
+ var tmp_1;
634
+ if (!this.z7u_1.q7u_1.m()) {
635
+ tmp_1 = !(this.d7v_1 == null) || this.c7v_1.l4i();
636
+ } else {
637
+ tmp_1 = false;
638
+ }
639
+
640
+ if (tmp_1)
641
+ return this.d7v_1;
642
+ this.e7v_1 = serializerForTypeInfo(this.z7u_1.p7u_1.lz(), this.b7v_1);
643
+ this.x9_1 = 2;
644
+ suspendResult = readRemaining(this.c7v_1, this);
645
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
646
+ return suspendResult;
647
+ }
648
+
649
+ continue $sm;
650
+ case 2:
651
+ var contentPacket = suspendResult;
652
+ this.y9_1 = 3;
653
+ var tmp0_subject = this.z7u_1.p7u_1;
654
+ var tmp_2;
655
+ if (isInterface(tmp0_subject, StringFormat)) {
656
+ tmp_2 = this.z7u_1.p7u_1.hw(this.e7v_1, readText(contentPacket, this.a7v_1));
657
+ } else {
658
+ if (isInterface(tmp0_subject, BinaryFormat)) {
659
+ tmp_2 = this.z7u_1.p7u_1.jw(this.e7v_1, readByteArray(contentPacket));
660
+ } else {
661
+ discard(contentPacket);
662
+ var message = 'Unsupported format ' + toString(this.z7u_1.p7u_1);
663
+ throw IllegalStateException_init_$Create$(toString(message));
664
+ }
665
+ }
666
+
667
+ return tmp_2;
668
+ case 3:
669
+ this.y9_1 = 4;
670
+ var tmp_3 = this.aa_1;
671
+ if (tmp_3 instanceof Error) {
672
+ var cause = this.aa_1;
673
+ throw new JsonConvertException('Illegal input: ' + cause.message, cause);
674
+ } else {
675
+ throw this.aa_1;
676
+ }
677
+
678
+ case 4:
679
+ throw this.aa_1;
680
+ }
681
+ } catch ($p) {
682
+ var e = $p;
683
+ if (this.y9_1 === 4) {
684
+ throw e;
685
+ } else {
686
+ this.x9_1 = this.y9_1;
687
+ this.aa_1 = e;
688
+ }
689
+ }
690
+ while (true);
691
+ };
692
+ function KotlinxSerializationConverter(format) {
693
+ this.p7u_1 = format;
694
+ this.q7u_1 = extensions(this.p7u_1);
695
+ var tmp;
696
+ var tmp_0 = this.p7u_1;
697
+ if (isInterface(tmp_0, BinaryFormat)) {
698
+ tmp = true;
699
+ } else {
700
+ var tmp_1 = this.p7u_1;
701
+ tmp = isInterface(tmp_1, StringFormat);
702
+ }
703
+ // Inline function 'kotlin.require' call
704
+ if (!tmp) {
705
+ var message = 'Only binary and string formats are supported, ' + toString(this.p7u_1) + ' is not supported.';
706
+ throw IllegalArgumentException_init_$Create$(toString(message));
707
+ }
708
+ }
709
+ protoOf(KotlinxSerializationConverter).f7v = function (contentType, charset, typeInfo, value, $completion) {
710
+ var tmp = new $serializeCOROUTINE$(this, contentType, charset, typeInfo, value, $completion);
711
+ tmp.z9_1 = Unit_instance;
712
+ tmp.aa_1 = null;
713
+ return tmp.fa();
714
+ };
715
+ protoOf(KotlinxSerializationConverter).h7q = function (contentType, charset, typeInfo, value, $completion) {
716
+ return this.f7v(contentType, charset, typeInfo, value, $completion);
717
+ };
718
+ protoOf(KotlinxSerializationConverter).w61 = function (charset, typeInfo, content, $completion) {
719
+ var tmp = new $deserializeCOROUTINE$(this, charset, typeInfo, content, $completion);
720
+ tmp.z9_1 = Unit_instance;
721
+ tmp.aa_1 = null;
722
+ return tmp.fa();
723
+ };
724
+ function serializerForTypeInfo(_this__u8e3s4, typeInfo) {
725
+ var module_0 = _this__u8e3s4;
726
+ var tmp0_safe_receiver = typeInfo.t55_1;
727
+ var tmp;
728
+ if (tmp0_safe_receiver == null) {
729
+ tmp = null;
730
+ } else {
731
+ // Inline function 'kotlin.let' call
732
+ var tmp_0;
733
+ if (tmp0_safe_receiver.pc().m()) {
734
+ tmp_0 = null;
735
+ } else {
736
+ tmp_0 = serializerOrNull(module_0, tmp0_safe_receiver);
737
+ }
738
+ tmp = tmp_0;
739
+ }
740
+ var tmp1_elvis_lhs = tmp;
741
+ var tmp_1;
742
+ if (tmp1_elvis_lhs == null) {
743
+ var tmp2_safe_receiver = module_0.mw(typeInfo.s55_1);
744
+ tmp_1 = tmp2_safe_receiver == null ? null : maybeNullable(tmp2_safe_receiver, typeInfo);
745
+ } else {
746
+ tmp_1 = tmp1_elvis_lhs;
747
+ }
748
+ var tmp3_elvis_lhs = tmp_1;
749
+ return tmp3_elvis_lhs == null ? maybeNullable(serializer(typeInfo.s55_1), typeInfo) : tmp3_elvis_lhs;
750
+ }
751
+ function guessSerializer(value, module_0) {
752
+ var tmp;
753
+ if (value == null) {
754
+ tmp = get_nullable(serializer_0(StringCompanionObject_instance));
755
+ } else {
756
+ if (!(value == null) ? isInterface(value, KtList) : false) {
757
+ tmp = ListSerializer(elementSerializer(value, module_0));
758
+ } else {
759
+ if (!(value == null) ? isArray(value) : false) {
760
+ var tmp1_safe_receiver = firstOrNull_0(value);
761
+ var tmp_0;
762
+ if (tmp1_safe_receiver == null) {
763
+ tmp_0 = null;
764
+ } else {
765
+ // Inline function 'kotlin.let' call
766
+ tmp_0 = guessSerializer(tmp1_safe_receiver, module_0);
767
+ }
768
+ var tmp2_elvis_lhs = tmp_0;
769
+ tmp = tmp2_elvis_lhs == null ? ListSerializer(serializer_0(StringCompanionObject_instance)) : tmp2_elvis_lhs;
770
+ } else {
771
+ if (!(value == null) ? isInterface(value, KtSet) : false) {
772
+ tmp = SetSerializer(elementSerializer(value, module_0));
773
+ } else {
774
+ if (!(value == null) ? isInterface(value, KtMap) : false) {
775
+ var keySerializer = elementSerializer(value.k2(), module_0);
776
+ var valueSerializer = elementSerializer(value.l2(), module_0);
777
+ tmp = MapSerializer(keySerializer, valueSerializer);
778
+ } else {
779
+ var tmp3_elvis_lhs = module_0.mw(getKClassFromExpression(value));
780
+ tmp = tmp3_elvis_lhs == null ? serializer(getKClassFromExpression(value)) : tmp3_elvis_lhs;
781
+ }
782
+ }
783
+ }
784
+ }
785
+ }
786
+ var tmp_1 = tmp;
787
+ return isInterface(tmp_1, KSerializer) ? tmp_1 : THROW_CCE();
788
+ }
789
+ function maybeNullable(_this__u8e3s4, typeInfo) {
790
+ var tmp;
791
+ var tmp0_safe_receiver = typeInfo.t55_1;
792
+ if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qc()) === true) {
793
+ tmp = get_nullable(_this__u8e3s4);
794
+ } else {
795
+ tmp = _this__u8e3s4;
796
+ }
797
+ return tmp;
798
+ }
799
+ function elementSerializer(_this__u8e3s4, module_0) {
800
+ // Inline function 'kotlin.collections.map' call
801
+ var this_0 = filterNotNull(_this__u8e3s4);
802
+ // Inline function 'kotlin.collections.mapTo' call
803
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
804
+ var _iterator__ex2g4s = this_0.p();
805
+ while (_iterator__ex2g4s.q()) {
806
+ var item = _iterator__ex2g4s.r();
807
+ var tmp$ret$0 = guessSerializer(item, module_0);
808
+ destination.h(tmp$ret$0);
809
+ }
810
+ // Inline function 'kotlin.collections.distinctBy' call
811
+ var set = HashSet_init_$Create$();
812
+ var list = ArrayList_init_$Create$();
813
+ var _iterator__ex2g4s_0 = destination.p();
814
+ while (_iterator__ex2g4s_0.q()) {
815
+ var e = _iterator__ex2g4s_0.r();
816
+ var key = e.fv().fw();
817
+ if (set.h(key)) {
818
+ list.h(e);
819
+ }
820
+ }
821
+ var serializers = list;
822
+ if (serializers.s() > 1) {
823
+ // Inline function 'kotlin.collections.map' call
824
+ // Inline function 'kotlin.collections.mapTo' call
825
+ var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(serializers, 10));
826
+ var _iterator__ex2g4s_1 = serializers.p();
827
+ while (_iterator__ex2g4s_1.q()) {
828
+ var item_0 = _iterator__ex2g4s_1.r();
829
+ var tmp$ret$5 = item_0.fv().fw();
830
+ destination_0.h(tmp$ret$5);
831
+ }
832
+ // Inline function 'kotlin.error' call
833
+ var message = 'Serializing collections of different element types is not yet supported. ' + ('Selected serializers: ' + toString(destination_0));
834
+ throw IllegalStateException_init_$Create$(toString(message));
835
+ }
836
+ var tmp0_elvis_lhs = singleOrNull(serializers);
837
+ var selected = tmp0_elvis_lhs == null ? serializer_0(StringCompanionObject_instance) : tmp0_elvis_lhs;
838
+ if (selected.fv().qw()) {
839
+ return selected;
840
+ }
841
+ if (!isInterface(selected, KSerializer))
842
+ THROW_CCE();
843
+ var tmp$ret$8;
844
+ $l$block_0: {
845
+ // Inline function 'kotlin.collections.any' call
846
+ var tmp;
847
+ if (isInterface(_this__u8e3s4, Collection)) {
848
+ tmp = _this__u8e3s4.m();
849
+ } else {
850
+ tmp = false;
851
+ }
852
+ if (tmp) {
853
+ tmp$ret$8 = false;
854
+ break $l$block_0;
855
+ }
856
+ var _iterator__ex2g4s_2 = _this__u8e3s4.p();
857
+ while (_iterator__ex2g4s_2.q()) {
858
+ var element = _iterator__ex2g4s_2.r();
859
+ if (element == null) {
860
+ tmp$ret$8 = true;
861
+ break $l$block_0;
862
+ }
863
+ }
864
+ tmp$ret$8 = false;
865
+ }
866
+ if (tmp$ret$8) {
867
+ return get_nullable(selected);
868
+ }
869
+ return selected;
870
+ }
871
+ function get_providers() {
872
+ return emptyList();
873
+ }
874
+ //region block: exports
875
+ _.$_$ = _.$_$ || {};
876
+ _.$_$.a = serialization;
877
+ //endregion
878
+ return _;
879
+ }));
880
+
881
+ //# sourceMappingURL=ktor-ktor-serialization-kotlinx.js.map