@attocash/commons-js 5.0.0 → 5.1.1

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 (311) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeComponents.mjs +2 -2
  2. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs +2 -2
  3. package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs +8 -8
  4. package/commons-commons-core/cash/atto/commons/AttoAccount.mjs +68 -68
  5. package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs +56 -56
  6. package/commons-commons-core/cash/atto/commons/AttoAddress.mjs +14 -14
  7. package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs +10 -10
  8. package/commons-commons-core/cash/atto/commons/AttoAmount.mjs +26 -26
  9. package/commons-commons-core/cash/atto/commons/AttoBlock.mjs +661 -661
  10. package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs +4 -4
  11. package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs +7 -7
  12. package/commons-commons-core/cash/atto/commons/AttoHash.mjs +8 -8
  13. package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs +1 -1
  14. package/commons-commons-core/cash/atto/commons/AttoHeight.mjs +17 -17
  15. package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs +8 -8
  16. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs +8 -8
  17. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs +26 -26
  18. package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs +7 -7
  19. package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs +42 -42
  20. package/commons-commons-core/cash/atto/commons/AttoSeed.mjs +2 -2
  21. package/commons-commons-core/cash/atto/commons/AttoSignature.mjs +8 -8
  22. package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs +67 -67
  23. package/commons-commons-core/cash/atto/commons/AttoSigner.mjs +11 -11
  24. package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs +5 -5
  25. package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs +35 -35
  26. package/commons-commons-core/cash/atto/commons/AttoVersion.mjs +11 -11
  27. package/commons-commons-core/cash/atto/commons/AttoVote.mjs +37 -37
  28. package/commons-commons-core/cash/atto/commons/AttoWork.mjs +10 -10
  29. package/commons-commons-core/cash/atto/commons/Extensions.mjs +1 -1
  30. package/commons-commons-core/cash/atto/commons/serialiazer/AttoAddressAsByteArraySerializer.mjs +4 -4
  31. package/commons-commons-core/cash/atto/commons/serialiazer/InstantMillisSerializer.mjs +2 -2
  32. package/commons-commons-core/cash/atto/commons/utils/Base32.mjs +9 -9
  33. package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs +1 -1
  34. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.export.d.ts +3 -1
  35. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs +19 -5
  36. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs.map +1 -1
  37. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs +72 -72
  38. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs.map +1 -1
  39. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.d.ts +4 -0
  40. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs +16 -0
  41. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs.map +1 -0
  42. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs +41 -0
  43. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs.map +1 -0
  44. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs +812 -319
  45. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs.map +1 -1
  46. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs +226 -76
  47. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs.map +1 -1
  48. package/commons-commons-node.mjs +1 -0
  49. package/commons-commons-node.mjs.map +1 -1
  50. package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +3 -3
  51. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +50 -50
  52. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.mjs +34 -34
  53. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +56 -56
  54. package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +6 -6
  55. package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
  56. package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs +4 -4
  57. package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs +1 -1
  58. package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerFactory.mjs +1 -1
  59. package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerNameResolver.mjs +1 -1
  60. package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +1 -1
  61. package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +7 -7
  62. package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +76 -76
  63. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs +2 -2
  64. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +2 -2
  65. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +133 -28
  66. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs.map +1 -1
  67. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs +28 -0
  68. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs.map +1 -0
  69. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +1 -1
  70. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +2 -2
  71. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +4 -4
  72. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +2 -2
  73. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +3 -3
  74. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +3 -3
  75. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
  76. package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +5 -5
  77. package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +39 -39
  78. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +34 -34
  79. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs.map +1 -1
  80. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
  81. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs.map +1 -1
  82. package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
  83. package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs.map +1 -1
  84. package/kotlinx-io-kotlinx-io-core/kotlinx/io/-Util.mjs.map +1 -1
  85. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +189 -189
  86. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs.map +1 -1
  87. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
  88. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs.map +1 -1
  89. package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
  90. package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs.map +1 -1
  91. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Core.mjs.map +1 -1
  92. package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
  93. package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs.map +1 -1
  94. package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +56 -56
  95. package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs.map +1 -1
  96. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +149 -149
  97. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs.map +1 -1
  98. package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
  99. package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs.map +1 -1
  100. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
  101. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs.map +1 -1
  102. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
  103. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs.map +1 -1
  104. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
  105. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs.map +1 -1
  106. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +50 -50
  107. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs.map +1 -1
  108. package/kotlinx-io-kotlinx-io-core/kotlinx/io/UtilsJs.mjs.map +1 -1
  109. package/kotlinx-io-kotlinx-io-core/kotlinx/io/internal/-Utf8.mjs.map +1 -1
  110. package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
  111. package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs.map +1 -1
  112. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +37 -37
  113. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
  114. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +59 -59
  115. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +70 -70
  116. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
  117. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
  118. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
  119. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +71 -71
  120. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
  121. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +13 -13
  122. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +10 -10
  123. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +36 -36
  124. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +7 -7
  125. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +1 -1
  126. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
  127. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +84 -84
  128. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +2 -2
  129. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +8 -8
  130. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +141 -141
  131. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +98 -98
  132. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
  133. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +151 -151
  134. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +3 -3
  135. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOCommon.mjs +3 -3
  136. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngine.mjs +59 -59
  137. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngineConfig.mjs +11 -11
  138. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionFactory.mjs +22 -22
  139. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionPipeline.nonJvm.mjs +3 -3
  140. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Endpoint.mjs +219 -219
  141. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/EngineTasks.mjs +15 -15
  142. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.mjs +2 -2
  143. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/utils.mjs +241 -241
  144. package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +133 -133
  145. package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
  146. package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +85 -85
  147. package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +36 -36
  148. package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
  149. package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +41 -41
  150. package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +54 -54
  151. package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +51 -51
  152. package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +3 -3
  153. package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +27 -27
  154. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +60 -60
  155. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +18 -18
  156. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
  157. package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
  158. package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +20 -20
  159. package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
  160. package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +60 -60
  161. package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +40 -40
  162. package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +21 -21
  163. package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +3 -3
  164. package/ktor-ktor-client-core/io/ktor/client/network/sockets/TimeoutExceptions.nonJvm.mjs +3 -3
  165. package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +61 -61
  166. package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +45 -45
  167. package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +125 -125
  168. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +138 -138
  169. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
  170. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +70 -70
  171. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +53 -53
  172. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +42 -42
  173. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +63 -63
  174. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +98 -98
  175. package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +33 -33
  176. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
  177. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +11 -11
  178. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +11 -11
  179. package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +35 -35
  180. package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +13 -13
  181. package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +45 -45
  182. package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +65 -65
  183. package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +4 -4
  184. package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +17 -17
  185. package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +64 -64
  186. package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
  187. package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +1 -1
  188. package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +24 -24
  189. package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +18 -18
  190. package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +25 -25
  191. package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +52 -52
  192. package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +35 -35
  193. package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
  194. package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
  195. package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +5 -5
  196. package/ktor-ktor-events/io/ktor/events/Events.mjs +5 -5
  197. package/ktor-ktor-http/io/ktor/http/Codecs.mjs +12 -12
  198. package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +89 -89
  199. package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +18 -18
  200. package/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
  201. package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +31 -31
  202. package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +114 -114
  203. package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +4 -4
  204. package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
  205. package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +18 -18
  206. package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +66 -66
  207. package/ktor-ktor-http/io/ktor/http/Parameters.mjs +9 -9
  208. package/ktor-ktor-http/io/ktor/http/Query.mjs +3 -3
  209. package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +58 -58
  210. package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
  211. package/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
  212. package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +20 -20
  213. package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +25 -25
  214. package/ktor-ktor-http/io/ktor/http/Url.mjs +72 -72
  215. package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +25 -25
  216. package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +9 -9
  217. package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +8 -8
  218. package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +12 -12
  219. package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +4 -4
  220. package/ktor-ktor-http-cio/io/ktor/http/cio/ChunkedTransferEncoding.mjs +106 -106
  221. package/ktor-ktor-http-cio/io/ktor/http/cio/ConnectionOptions.mjs +31 -31
  222. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpBody.mjs +15 -15
  223. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +100 -100
  224. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +69 -69
  225. package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +113 -113
  226. package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponse.mjs +9 -9
  227. package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponseBuilderJs.mjs +21 -21
  228. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +17 -17
  229. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +70 -70
  230. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
  231. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +21 -21
  232. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
  233. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
  234. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Tokenizer.mjs +7 -7
  235. package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +141 -141
  236. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
  237. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +75 -75
  238. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelUtils.mjs +1 -1
  239. package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
  240. package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +230 -230
  241. package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +11 -11
  242. package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +72 -72
  243. package/ktor-ktor-io/io/ktor/utils/io/CloseHookByteWriteChannel.mjs +14 -14
  244. package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
  245. package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +26 -26
  246. package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
  247. package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
  248. package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
  249. package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +36 -36
  250. package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +4 -4
  251. package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
  252. package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
  253. package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
  254. package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
  255. package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +3 -3
  256. package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +5 -5
  257. package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
  258. package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
  259. package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
  260. package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +27 -27
  261. package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +1 -1
  262. package/ktor-ktor-network/io/ktor/network/selector/SelectorManager.jsAndWasmShared.mjs +2 -2
  263. package/ktor-ktor-network/io/ktor/network/sockets/Builders.mjs +5 -5
  264. package/ktor-ktor-network/io/ktor/network/sockets/SocketAddress.nonJvm.mjs +9 -9
  265. package/ktor-ktor-network/io/ktor/network/sockets/SocketBase.mjs +50 -50
  266. package/ktor-ktor-network/io/ktor/network/sockets/SocketContext.mjs +106 -106
  267. package/ktor-ktor-network/io/ktor/network/sockets/SocketEngine.jsAndWasmShared.mjs +1 -1
  268. package/ktor-ktor-network/io/ktor/network/sockets/SocketOptions.mjs +30 -30
  269. package/ktor-ktor-network/io/ktor/network/sockets/SocketTimeoutException.mjs +5 -5
  270. package/ktor-ktor-network/io/ktor/network/sockets/Sockets.mjs +5 -5
  271. package/ktor-ktor-network/io/ktor/network/sockets/TcpSocketBuilder.mjs +5 -5
  272. package/ktor-ktor-network/io/ktor/network/sockets/TypeOfService.mjs +5 -5
  273. package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.mjs +7 -7
  274. package/ktor-ktor-network-tls/io/ktor/network/tls/TLSCommon.mjs +9 -9
  275. package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfigBuilder.nonJvm.mjs +1 -1
  276. package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +5 -5
  277. package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +58 -58
  278. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
  279. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +122 -122
  280. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +4 -4
  281. package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +6 -6
  282. package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +11 -11
  283. package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
  284. package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +33 -33
  285. package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +31 -31
  286. package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
  287. package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +83 -83
  288. package/ktor-ktor-utils/io/ktor/util/Text.mjs +7 -7
  289. package/ktor-ktor-utils/io/ktor/util/collections/ConcurrentMapJs.mjs +29 -29
  290. package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
  291. package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +67 -67
  292. package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
  293. package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +6 -6
  294. package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +10 -10
  295. package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +1 -1
  296. package/ktor-ktor-utils/io/ktor/util/network/NetworkAddressJs.mjs +2 -2
  297. package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +32 -32
  298. package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +25 -25
  299. package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +53 -53
  300. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
  301. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
  302. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
  303. package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +49 -49
  304. package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
  305. package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +19 -19
  306. package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +41 -41
  307. package/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs +5 -5
  308. package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +9 -9
  309. package/ktor-ktor-websockets/io/ktor/websocket/ProtocolViolationException.mjs +5 -5
  310. package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocketCommon.mjs +150 -150
  311. package/package.json +1 -1
@@ -89,7 +89,7 @@ function rethrowCloseCause(_this__u8e3s4) {
89
89
  _init_properties_ChunkedTransferEncoding_kt__hi13vs();
90
90
  var tmp;
91
91
  if (_this__u8e3s4 instanceof ByteChannel()) {
92
- tmp = _this__u8e3s4.r3a();
92
+ tmp = _this__u8e3s4.f3b();
93
93
  } else {
94
94
  tmp = null;
95
95
  }
@@ -104,16 +104,16 @@ function ChunkSizeBufferPool$1() {
104
104
  constructor() {
105
105
  super(2048);
106
106
  }
107
- g3q() {
107
+ u3q() {
108
108
  return StringBuilder().mb(128);
109
109
  }
110
- p4e(instance) {
110
+ d4f(instance) {
111
111
  // Inline function 'kotlin.apply' call
112
112
  instance.ci();
113
113
  return instance;
114
114
  }
115
- l3q(instance) {
116
- return this.p4e(instance instanceof StringBuilder() ? instance : THROW_CCE());
115
+ z3q(instance) {
116
+ return this.d4f(instance instanceof StringBuilder() ? instance : THROW_CCE());
117
117
  }
118
118
  }
119
119
  initMetadataForClass($);
@@ -128,17 +128,17 @@ function encodeChunked$slambda() {
128
128
  constructor($output, resultContinuation, $box) {
129
129
  if ($box === VOID)
130
130
  $box = {};
131
- $box.y4e_1 = $output;
131
+ $box.m4f_1 = $output;
132
132
  super(resultContinuation, $box);
133
133
  }
134
- a4f($this$reader, $completion) {
135
- var tmp = this.b4f($this$reader, $completion);
134
+ o4f($this$reader, $completion) {
135
+ var tmp = this.p4f($this$reader, $completion);
136
136
  tmp.cc_1 = Unit_instance;
137
137
  tmp.dc_1 = null;
138
138
  return tmp.ic();
139
139
  }
140
140
  kd(p1, $completion) {
141
- return this.a4f(p1 instanceof ReaderScope() ? p1 : THROW_CCE(), $completion);
141
+ return this.o4f(p1 instanceof ReaderScope() ? p1 : THROW_CCE(), $completion);
142
142
  }
143
143
  ic() {
144
144
  var suspendResult = this.cc_1;
@@ -149,7 +149,7 @@ function encodeChunked$slambda() {
149
149
  case 0:
150
150
  this.bc_1 = 2;
151
151
  this.ac_1 = 1;
152
- suspendResult = encodeChunked_0(this.y4e_1, this.z4e_1.r3g_1, this);
152
+ suspendResult = encodeChunked_0(this.m4f_1, this.n4f_1.f3h_1, this);
153
153
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
154
154
  return suspendResult;
155
155
  }
@@ -171,9 +171,9 @@ function encodeChunked$slambda() {
171
171
  }
172
172
  while (true);
173
173
  }
174
- b4f($this$reader, completion) {
175
- var i = new (encodeChunked$slambda())(this.y4e_1, completion);
176
- i.z4e_1 = $this$reader;
174
+ p4f($this$reader, completion) {
175
+ var i = new (encodeChunked$slambda())(this.m4f_1, completion);
176
+ i.n4f_1 = $this$reader;
177
177
  return i;
178
178
  }
179
179
  }
@@ -185,7 +185,7 @@ function encodeChunked$slambda() {
185
185
  function encodeChunked$slambda_0($output, resultContinuation) {
186
186
  var i = new (encodeChunked$slambda())($output, resultContinuation);
187
187
  var l = function ($this$reader, $completion) {
188
- return i.a4f($this$reader, $completion);
188
+ return i.o4f($this$reader, $completion);
189
189
  };
190
190
  l.$arity = 1;
191
191
  return l;
@@ -196,8 +196,8 @@ function $decodeChunkedCOROUTINE$() {
196
196
  class $ extends CoroutineImpl() {
197
197
  constructor(input, out, resultContinuation) {
198
198
  super(resultContinuation);
199
- this.g4c_1 = input;
200
- this.h4c_1 = out;
199
+ this.u4c_1 = input;
200
+ this.v4c_1 = out;
201
201
  }
202
202
  ic() {
203
203
  var suspendResult = this.cc_1;
@@ -207,8 +207,8 @@ function $decodeChunkedCOROUTINE$() {
207
207
  switch (tmp) {
208
208
  case 0:
209
209
  this.bc_1 = 16;
210
- this.i4c_1 = get_ChunkSizeBufferPool().n3q();
211
- this.j4c_1 = new (Long())(0, 0);
210
+ this.w4c_1 = get_ChunkSizeBufferPool().b3r();
211
+ this.x4c_1 = new (Long())(0, 0);
212
212
  this.ac_1 = 1;
213
213
  continue $sm;
214
214
  case 1:
@@ -218,7 +218,7 @@ function $decodeChunkedCOROUTINE$() {
218
218
  continue $sm;
219
219
  case 2:
220
220
  this.ac_1 = 3;
221
- suspendResult = readUTF8LineTo(this.g4c_1, this.i4c_1, 128, get_httpLineEndings(), this);
221
+ suspendResult = readUTF8LineTo(this.u4c_1, this.w4c_1, 128, get_httpLineEndings(), this);
222
222
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
223
223
  return suspendResult;
224
224
  }
@@ -230,15 +230,15 @@ function $decodeChunkedCOROUTINE$() {
230
230
  continue $sm;
231
231
  }
232
232
 
233
- var this_0 = this.i4c_1;
233
+ var this_0 = this.w4c_1;
234
234
  if (charSequenceLength(this_0) === 0) {
235
- throw EOFException().y2q('Invalid chunk size: empty');
235
+ throw EOFException().m2r('Invalid chunk size: empty');
236
236
  }
237
237
 
238
- this.l4c_1 = this.i4c_1.a() === 1 && this.i4c_1.b(0) === _Char___init__impl__6a9atx(48) ? new (Long())(0, 0) : parseHexLong(this.i4c_1);
239
- if (this.l4c_1.a2(new (Long())(0, 0)) > 0) {
238
+ this.z4c_1 = this.w4c_1.a() === 1 && this.w4c_1.b(0) === _Char___init__impl__6a9atx(48) ? new (Long())(0, 0) : parseHexLong(this.w4c_1);
239
+ if (this.z4c_1.a2(new (Long())(0, 0)) > 0) {
240
240
  this.ac_1 = 4;
241
- suspendResult = copyTo(this.g4c_1, this.h4c_1, this.l4c_1, this);
241
+ suspendResult = copyTo(this.u4c_1, this.v4c_1, this.z4c_1, this);
242
242
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
243
243
  return suspendResult;
244
244
  }
@@ -250,41 +250,41 @@ function $decodeChunkedCOROUTINE$() {
250
250
 
251
251
  case 4:
252
252
  this.ac_1 = 5;
253
- suspendResult = this.h4c_1.l3a(this);
253
+ suspendResult = this.v4c_1.z3a(this);
254
254
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
255
255
  return suspendResult;
256
256
  }
257
257
 
258
258
  continue $sm;
259
259
  case 5:
260
- this.j4c_1 = this.j4c_1.p3(this.l4c_1);
260
+ this.x4c_1 = this.x4c_1.p3(this.z4c_1);
261
261
  this.ac_1 = 6;
262
262
  continue $sm;
263
263
  case 6:
264
- this.i4c_1.ci();
264
+ this.w4c_1.ci();
265
265
  this.ac_1 = 7;
266
- suspendResult = readUTF8LineTo(this.g4c_1, this.i4c_1, 2, get_httpLineEndings(), this);
266
+ suspendResult = readUTF8LineTo(this.u4c_1, this.w4c_1, 2, get_httpLineEndings(), this);
267
267
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
268
268
  return suspendResult;
269
269
  }
270
270
 
271
271
  continue $sm;
272
272
  case 7:
273
- this.m4c_1 = suspendResult;
274
- if (!this.m4c_1) {
275
- throw EOFException().y2q('Invalid chunk: content block of size ' + this.l4c_1.toString() + ' ended unexpectedly');
273
+ this.a4d_1 = suspendResult;
274
+ if (!this.a4d_1) {
275
+ throw EOFException().m2r('Invalid chunk: content block of size ' + this.z4c_1.toString() + ' ended unexpectedly');
276
276
  } else {
277
277
  this.ac_1 = 8;
278
278
  continue $sm;
279
279
  }
280
280
 
281
281
  case 8:
282
- var this_1 = this.i4c_1;
282
+ var this_1 = this.w4c_1;
283
283
  if (charSequenceLength(this_1) > 0) {
284
- throw EOFException().y2q('Invalid chunk: content block should end with CR+LF');
284
+ throw EOFException().m2r('Invalid chunk: content block should end with CR+LF');
285
285
  }
286
286
 
287
- if (this.l4c_1.equals(new (Long())(0, 0))) {
287
+ if (this.z4c_1.equals(new (Long())(0, 0))) {
288
288
  this.ac_1 = 10;
289
289
  continue $sm;
290
290
  } else {
@@ -296,7 +296,7 @@ function $decodeChunkedCOROUTINE$() {
296
296
  this.ac_1 = 2;
297
297
  continue $sm;
298
298
  case 10:
299
- this.k4c_1 = Unit_instance;
299
+ this.y4c_1 = Unit_instance;
300
300
  this.bc_1 = 16;
301
301
  this.ac_1 = 14;
302
302
  continue $sm;
@@ -304,32 +304,32 @@ function $decodeChunkedCOROUTINE$() {
304
304
  this.bc_1 = 12;
305
305
  var tmp_0 = this.dc_1;
306
306
  if (tmp_0 instanceof Error) {
307
- this.n4c_1 = this.dc_1;
307
+ this.b4d_1 = this.dc_1;
308
308
  var tmp_1 = this;
309
- close(this.h4c_1, this.n4c_1);
310
- throw this.n4c_1;
309
+ close(this.v4c_1, this.b4d_1);
310
+ throw this.b4d_1;
311
311
  } else {
312
312
  throw this.dc_1;
313
313
  }
314
314
 
315
315
  case 12:
316
316
  this.bc_1 = 16;
317
- this.o4c_1 = this.dc_1;
318
- get_ChunkSizeBufferPool().o3q(this.i4c_1);
317
+ this.c4d_1 = this.dc_1;
318
+ get_ChunkSizeBufferPool().c3r(this.w4c_1);
319
319
  this.ac_1 = 13;
320
- suspendResult = this.h4c_1.w3a(this);
320
+ suspendResult = this.v4c_1.k3b(this);
321
321
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
322
322
  return suspendResult;
323
323
  }
324
324
 
325
325
  continue $sm;
326
326
  case 13:
327
- throw this.o4c_1;
327
+ throw this.c4d_1;
328
328
  case 14:
329
329
  this.bc_1 = 16;
330
- get_ChunkSizeBufferPool().o3q(this.i4c_1);
330
+ get_ChunkSizeBufferPool().c3r(this.w4c_1);
331
331
  this.ac_1 = 15;
332
- suspendResult = this.h4c_1.w3a(this);
332
+ suspendResult = this.v4c_1.k3b(this);
333
333
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
334
334
  return suspendResult;
335
335
  }
@@ -363,8 +363,8 @@ function $encodeChunkedCOROUTINE$() {
363
363
  class $ extends CoroutineImpl() {
364
364
  constructor(output, input, resultContinuation) {
365
365
  super(resultContinuation);
366
- this.x4c_1 = output;
367
- this.y4c_1 = input;
366
+ this.l4d_1 = output;
367
+ this.m4d_1 = input;
368
368
  }
369
369
  ic() {
370
370
  var suspendResult = this.cc_1;
@@ -382,19 +382,19 @@ function $encodeChunkedCOROUTINE$() {
382
382
  this.ac_1 = 2;
383
383
  continue $sm;
384
384
  case 2:
385
- if (!!this.y4c_1.t3a()) {
385
+ if (!!this.m4d_1.h3b()) {
386
386
  this.ac_1 = 13;
387
387
  continue $sm;
388
388
  }
389
389
 
390
390
  var tmp_0 = this;
391
- tmp_0.a4d_1 = this.y4c_1;
391
+ tmp_0.o4d_1 = this.m4d_1;
392
392
  this.ac_1 = 3;
393
393
  continue $sm;
394
394
  case 3:
395
- this.c4d_1 = this.a4d_1;
396
- if (this.c4d_1.t3a()) {
397
- this.b4d_1 = -1;
395
+ this.q4d_1 = this.o4d_1;
396
+ if (this.q4d_1.h3b()) {
397
+ this.p4d_1 = -1;
398
398
  this.ac_1 = 12;
399
399
  continue $sm;
400
400
  } else {
@@ -403,9 +403,9 @@ function $encodeChunkedCOROUTINE$() {
403
403
  }
404
404
 
405
405
  case 4:
406
- if (this.c4d_1.m3a().a2r()) {
406
+ if (this.q4d_1.a3b().o2r()) {
407
407
  this.ac_1 = 5;
408
- suspendResult = this.c4d_1.v3a(VOID, this);
408
+ suspendResult = this.q4d_1.j3b(VOID, this);
409
409
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
410
410
  return suspendResult;
411
411
  }
@@ -419,8 +419,8 @@ function $encodeChunkedCOROUTINE$() {
419
419
  this.ac_1 = 6;
420
420
  continue $sm;
421
421
  case 6:
422
- if (this.c4d_1.t3a()) {
423
- this.b4d_1 = -1;
422
+ if (this.q4d_1.h3b()) {
423
+ this.p4d_1 = -1;
424
424
  this.ac_1 = 12;
425
425
  continue $sm;
426
426
  } else {
@@ -430,40 +430,40 @@ function $encodeChunkedCOROUTINE$() {
430
430
 
431
431
  case 7:
432
432
  var tmp_1 = this;
433
- tmp_1.e4d_1 = UnsafeBufferOperations_instance;
433
+ tmp_1.s4d_1 = UnsafeBufferOperations_instance;
434
434
  var tmp_2 = this;
435
- tmp_2.f4d_1 = this.c4d_1.m3a().z2q();
436
- this.g4d_1 = this.e4d_1;
437
- this.h4d_1 = this.f4d_1;
438
- if (!!this.h4d_1.a2r()) {
435
+ tmp_2.t4d_1 = this.q4d_1.a3b().n2r();
436
+ this.u4d_1 = this.s4d_1;
437
+ this.v4d_1 = this.t4d_1;
438
+ if (!!this.v4d_1.o2r()) {
439
439
  var message = 'Buffer is empty';
440
440
  throw IllegalArgumentException().u(toString(message));
441
441
  }
442
442
 
443
- this.i4d_1 = ensureNotNull(this.h4d_1.s2q_1);
443
+ this.w4d_1 = ensureNotNull(this.v4d_1.g2r_1);
444
444
  var tmp_3 = this;
445
- tmp_3.j4d_1 = this.i4d_1.z2t(true);
445
+ tmp_3.x4d_1 = this.w4d_1.n2u(true);
446
446
  var tmp_4 = this;
447
- tmp_4.k4d_1 = this.i4d_1.f2r_1;
447
+ tmp_4.y4d_1 = this.w4d_1.t2r_1;
448
448
  var tmp_5 = this;
449
- tmp_5.l4d_1 = this.i4d_1.g2r_1;
450
- this.m4d_1 = this.j4d_1;
451
- this.n4d_1 = this.k4d_1;
452
- this.o4d_1 = this.l4d_1;
449
+ tmp_5.z4d_1 = this.w4d_1.u2r_1;
450
+ this.a4e_1 = this.x4d_1;
451
+ this.b4e_1 = this.y4d_1;
452
+ this.c4e_1 = this.z4d_1;
453
453
  var tmp_6 = this;
454
- tmp_6.p4d_1 = this.m4d_1;
454
+ tmp_6.d4e_1 = this.a4e_1;
455
455
  var tmp_7 = this;
456
- tmp_7.q4d_1 = this.n4d_1;
456
+ tmp_7.e4e_1 = this.b4e_1;
457
457
  var tmp_8 = this;
458
- tmp_8.r4d_1 = this.o4d_1;
458
+ tmp_8.f4e_1 = this.c4e_1;
459
459
  this.ac_1 = 8;
460
460
  continue $sm;
461
461
  case 8:
462
- this.t4d_1 = this.p4d_1;
463
- this.u4d_1 = this.q4d_1;
464
- this.v4d_1 = this.r4d_1;
465
- if (this.v4d_1 === this.u4d_1) {
466
- this.s4d_1 = 0;
462
+ this.h4e_1 = this.d4e_1;
463
+ this.i4e_1 = this.e4e_1;
464
+ this.j4e_1 = this.f4e_1;
465
+ if (this.j4e_1 === this.i4e_1) {
466
+ this.g4e_1 = 0;
467
467
  this.ac_1 = 11;
468
468
  continue $sm;
469
469
  } else {
@@ -473,14 +473,14 @@ function $encodeChunkedCOROUTINE$() {
473
473
 
474
474
  case 9:
475
475
  this.ac_1 = 10;
476
- suspendResult = writeChunk(this.x4c_1, this.t4d_1, this.u4d_1, this.v4d_1, this);
476
+ suspendResult = writeChunk(this.l4d_1, this.h4e_1, this.i4e_1, this.j4e_1, this);
477
477
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
478
478
  return suspendResult;
479
479
  }
480
480
 
481
481
  continue $sm;
482
482
  case 10:
483
- this.s4d_1 = suspendResult;
483
+ this.g4e_1 = suspendResult;
484
484
  if (false) {
485
485
  this.ac_1 = 8;
486
486
  continue $sm;
@@ -489,17 +489,17 @@ function $encodeChunkedCOROUTINE$() {
489
489
  this.ac_1 = 11;
490
490
  continue $sm;
491
491
  case 11:
492
- this.d4d_1 = this.s4d_1;
493
- this.w4d_1 = this.d4d_1;
494
- if (!(this.w4d_1 === 0)) {
495
- if (this.w4d_1 < 0)
492
+ this.r4d_1 = this.g4e_1;
493
+ this.k4e_1 = this.r4d_1;
494
+ if (!(this.k4e_1 === 0)) {
495
+ if (this.k4e_1 < 0)
496
496
  throw IllegalStateException().o4('Returned negative read bytes count');
497
- if (this.w4d_1 > this.i4d_1.i1())
497
+ if (this.k4e_1 > this.w4d_1.i1())
498
498
  throw IllegalStateException().o4('Returned too many bytes');
499
- this.h4d_1.b2s(toLong(this.w4d_1));
499
+ this.v4d_1.p2s(toLong(this.k4e_1));
500
500
  }
501
501
 
502
- this.b4d_1 = this.d4d_1;
502
+ this.p4d_1 = this.r4d_1;
503
503
  if (false) {
504
504
  this.ac_1 = 3;
505
505
  continue $sm;
@@ -511,16 +511,16 @@ function $encodeChunkedCOROUTINE$() {
511
511
  this.ac_1 = 2;
512
512
  continue $sm;
513
513
  case 13:
514
- rethrowCloseCause(this.y4c_1);
514
+ rethrowCloseCause(this.m4d_1);
515
515
  this.ac_1 = 14;
516
- suspendResult = writeFully(this.x4c_1, get_LastChunkBytes(), VOID, VOID, this);
516
+ suspendResult = writeFully(this.l4d_1, get_LastChunkBytes(), VOID, VOID, this);
517
517
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
518
518
  return suspendResult;
519
519
  }
520
520
 
521
521
  continue $sm;
522
522
  case 14:
523
- this.z4c_1 = suspendResult;
523
+ this.n4d_1 = suspendResult;
524
524
  this.bc_1 = 20;
525
525
  this.ac_1 = 18;
526
526
  continue $sm;
@@ -528,31 +528,31 @@ function $encodeChunkedCOROUTINE$() {
528
528
  this.bc_1 = 16;
529
529
  var tmp_9 = this.dc_1;
530
530
  if (tmp_9 instanceof Error) {
531
- this.x4d_1 = this.dc_1;
531
+ this.l4e_1 = this.dc_1;
532
532
  var tmp_10 = this;
533
- close(this.x4c_1, this.x4d_1);
534
- this.y4c_1.x3a(this.x4d_1);
535
- throw this.x4d_1;
533
+ close(this.l4d_1, this.l4e_1);
534
+ this.m4d_1.l3b(this.l4e_1);
535
+ throw this.l4e_1;
536
536
  } else {
537
537
  throw this.dc_1;
538
538
  }
539
539
 
540
540
  case 16:
541
541
  this.bc_1 = 20;
542
- this.y4d_1 = this.dc_1;
542
+ this.m4e_1 = this.dc_1;
543
543
  this.ac_1 = 17;
544
- suspendResult = this.x4c_1.l3a(this);
544
+ suspendResult = this.l4d_1.z3a(this);
545
545
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
546
546
  return suspendResult;
547
547
  }
548
548
 
549
549
  continue $sm;
550
550
  case 17:
551
- throw this.y4d_1;
551
+ throw this.m4e_1;
552
552
  case 18:
553
553
  this.bc_1 = 20;
554
554
  this.ac_1 = 19;
555
- suspendResult = this.x4c_1.l3a(this);
555
+ suspendResult = this.l4d_1.z3a(this);
556
556
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
557
557
  return suspendResult;
558
558
  }
@@ -586,10 +586,10 @@ function $writeChunkCOROUTINE$() {
586
586
  class $ extends CoroutineImpl() {
587
587
  constructor(_this__u8e3s4, memory, startIndex, endIndex, resultContinuation) {
588
588
  super(resultContinuation);
589
- this.h4e_1 = _this__u8e3s4;
590
- this.i4e_1 = memory;
591
- this.j4e_1 = startIndex;
592
- this.k4e_1 = endIndex;
589
+ this.v4e_1 = _this__u8e3s4;
590
+ this.w4e_1 = memory;
591
+ this.x4e_1 = startIndex;
592
+ this.y4e_1 = endIndex;
593
593
  }
594
594
  ic() {
595
595
  var suspendResult = this.cc_1;
@@ -599,9 +599,9 @@ function $writeChunkCOROUTINE$() {
599
599
  switch (tmp) {
600
600
  case 0:
601
601
  this.bc_1 = 6;
602
- this.l4e_1 = this.k4e_1 - this.j4e_1 | 0;
602
+ this.z4e_1 = this.y4e_1 - this.x4e_1 | 0;
603
603
  this.ac_1 = 1;
604
- suspendResult = writeIntHex(this.h4e_1, this.l4e_1, this);
604
+ suspendResult = writeIntHex(this.v4e_1, this.z4e_1, this);
605
605
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
606
606
  return suspendResult;
607
607
  }
@@ -609,7 +609,7 @@ function $writeChunkCOROUTINE$() {
609
609
  continue $sm;
610
610
  case 1:
611
611
  this.ac_1 = 2;
612
- suspendResult = writeShort(this.h4e_1, 3338, this);
612
+ suspendResult = writeShort(this.v4e_1, 3338, this);
613
613
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
614
614
  return suspendResult;
615
615
  }
@@ -617,7 +617,7 @@ function $writeChunkCOROUTINE$() {
617
617
  continue $sm;
618
618
  case 2:
619
619
  this.ac_1 = 3;
620
- suspendResult = writeFully(this.h4e_1, this.i4e_1, this.j4e_1, this.k4e_1, this);
620
+ suspendResult = writeFully(this.v4e_1, this.w4e_1, this.x4e_1, this.y4e_1, this);
621
621
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
622
622
  return suspendResult;
623
623
  }
@@ -625,7 +625,7 @@ function $writeChunkCOROUTINE$() {
625
625
  continue $sm;
626
626
  case 3:
627
627
  this.ac_1 = 4;
628
- suspendResult = writeFully(this.h4e_1, get_CrLf(), VOID, VOID, this);
628
+ suspendResult = writeFully(this.v4e_1, get_CrLf(), VOID, VOID, this);
629
629
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
630
630
  return suspendResult;
631
631
  }
@@ -633,14 +633,14 @@ function $writeChunkCOROUTINE$() {
633
633
  continue $sm;
634
634
  case 4:
635
635
  this.ac_1 = 5;
636
- suspendResult = this.h4e_1.l3a(this);
636
+ suspendResult = this.v4e_1.z3a(this);
637
637
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
638
638
  return suspendResult;
639
639
  }
640
640
 
641
641
  continue $sm;
642
642
  case 5:
643
- return this.l4e_1;
643
+ return this.z4e_1;
644
644
  case 6:
645
645
  throw this.dc_1;
646
646
  }
@@ -63,7 +63,7 @@ function parseSlow($this, connection) {
63
63
  }
64
64
  var tmp = start;
65
65
  var tmp_0 = idx;
66
- var detected = singleOrNull($this.f4f_1.h4f(connection, tmp, tmp_0, true, ConnectionOptions$Companion$parseSlow$lambda));
66
+ var detected = singleOrNull($this.t4f_1.v4f(connection, tmp, tmp_0, true, ConnectionOptions$Companion$parseSlow$lambda));
67
67
  if (detected == null) {
68
68
  if (hopHeadersList == null) {
69
69
  hopHeadersList = ArrayList().l1();
@@ -77,16 +77,16 @@ function parseSlow($this, connection) {
77
77
  } else if (connectionOptions == null) {
78
78
  connectionOptions = detected.fl_1;
79
79
  } else {
80
- connectionOptions = new (ConnectionOptions())(connectionOptions.i4f_1 || detected.fl_1.i4f_1, connectionOptions.j4f_1 || detected.fl_1.j4f_1, connectionOptions.k4f_1 || detected.fl_1.k4f_1, emptyList());
80
+ connectionOptions = new (ConnectionOptions())(connectionOptions.w4f_1 || detected.fl_1.w4f_1, connectionOptions.x4f_1 || detected.fl_1.x4f_1, connectionOptions.y4f_1 || detected.fl_1.y4f_1, emptyList());
81
81
  }
82
82
  }
83
83
  if (connectionOptions == null)
84
- connectionOptions = $this.d4f_1;
84
+ connectionOptions = $this.r4f_1;
85
85
  var tmp_2;
86
86
  if (hopHeadersList == null) {
87
87
  tmp_2 = connectionOptions;
88
88
  } else {
89
- tmp_2 = new (ConnectionOptions())(connectionOptions.i4f_1, connectionOptions.j4f_1, connectionOptions.k4f_1, hopHeadersList);
89
+ tmp_2 = new (ConnectionOptions())(connectionOptions.w4f_1, connectionOptions.x4f_1, connectionOptions.y4f_1, hopHeadersList);
90
90
  }
91
91
  return tmp_2;
92
92
  }
@@ -108,19 +108,19 @@ function Companion() {
108
108
  class $ {
109
109
  constructor() {
110
110
  Companion_instance_0 = this;
111
- this.c4f_1 = new (ConnectionOptions())(true);
112
- this.d4f_1 = new (ConnectionOptions())(VOID, true);
113
- this.e4f_1 = new (ConnectionOptions())(VOID, VOID, true);
111
+ this.q4f_1 = new (ConnectionOptions())(true);
112
+ this.r4f_1 = new (ConnectionOptions())(VOID, true);
113
+ this.s4f_1 = new (ConnectionOptions())(VOID, VOID, true);
114
114
  var tmp = this;
115
115
  var tmp_0 = Companion_instance;
116
- var tmp_1 = listOf([to('close', this.c4f_1), to('keep-alive', this.d4f_1), to('upgrade', this.e4f_1)]);
116
+ var tmp_1 = listOf([to('close', this.q4f_1), to('keep-alive', this.r4f_1), to('upgrade', this.s4f_1)]);
117
117
  var tmp_2 = ConnectionOptions$Companion$knownTypes$lambda;
118
- tmp.f4f_1 = tmp_0.m4f(tmp_1, tmp_2, ConnectionOptions$Companion$knownTypes$lambda_0);
118
+ tmp.t4f_1 = tmp_0.a4g(tmp_1, tmp_2, ConnectionOptions$Companion$knownTypes$lambda_0);
119
119
  }
120
- n4f(connection) {
120
+ b4g(connection) {
121
121
  if (connection == null)
122
122
  return null;
123
- var known = this.f4f_1.o4f(connection, VOID, VOID, true, ConnectionOptions$Companion$parse$lambda);
123
+ var known = this.t4f_1.c4g(connection, VOID, VOID, true, ConnectionOptions$Companion$parse$lambda);
124
124
  if (known.i1() === 1)
125
125
  return known.j1(0).fl_1;
126
126
  return parseSlow(this, connection);
@@ -141,19 +141,19 @@ function buildToString($this) {
141
141
  // Inline function 'kotlin.text.buildString' call
142
142
  // Inline function 'kotlin.apply' call
143
143
  var this_0 = StringBuilder().a1();
144
- var items = ArrayList().c1($this.l4f_1.i1() + 3 | 0);
145
- if ($this.i4f_1) {
144
+ var items = ArrayList().c1($this.z4f_1.i1() + 3 | 0);
145
+ if ($this.w4f_1) {
146
146
  items.m('close');
147
147
  }
148
- if ($this.j4f_1) {
148
+ if ($this.x4f_1) {
149
149
  items.m('keep-alive');
150
150
  }
151
- if ($this.k4f_1) {
151
+ if ($this.y4f_1) {
152
152
  items.m('Upgrade');
153
153
  }
154
154
  // Inline function 'kotlin.collections.isNotEmpty' call
155
- if (!$this.l4f_1.j()) {
156
- items.k1($this.l4f_1);
155
+ if (!$this.z4f_1.j()) {
156
+ items.k1($this.z4f_1);
157
157
  }
158
158
  joinTo(items, this_0);
159
159
  return this_0.toString();
@@ -168,15 +168,15 @@ function ConnectionOptions() {
168
168
  keepAlive = keepAlive === VOID ? false : keepAlive;
169
169
  upgrade = upgrade === VOID ? false : upgrade;
170
170
  extraOptions = extraOptions === VOID ? emptyList() : extraOptions;
171
- this.i4f_1 = close;
172
- this.j4f_1 = keepAlive;
173
- this.k4f_1 = upgrade;
174
- this.l4f_1 = extraOptions;
171
+ this.w4f_1 = close;
172
+ this.x4f_1 = keepAlive;
173
+ this.y4f_1 = upgrade;
174
+ this.z4f_1 = extraOptions;
175
175
  }
176
176
  toString() {
177
177
  var tmp;
178
- if (this.l4f_1.j()) {
179
- tmp = this.i4f_1 && !this.j4f_1 && !this.k4f_1 ? 'close' : !this.i4f_1 && this.j4f_1 && !this.k4f_1 ? 'keep-alive' : !this.i4f_1 && this.j4f_1 && this.k4f_1 ? 'keep-alive, Upgrade' : buildToString(this);
178
+ if (this.z4f_1.j()) {
179
+ tmp = this.w4f_1 && !this.x4f_1 && !this.y4f_1 ? 'close' : !this.w4f_1 && this.x4f_1 && !this.y4f_1 ? 'keep-alive' : !this.w4f_1 && this.x4f_1 && this.y4f_1 ? 'keep-alive, Upgrade' : buildToString(this);
180
180
  } else {
181
181
  tmp = buildToString(this);
182
182
  }
@@ -189,21 +189,21 @@ function ConnectionOptions() {
189
189
  return false;
190
190
  if (!(other instanceof ConnectionOptions()))
191
191
  THROW_CCE();
192
- if (!(this.i4f_1 === other.i4f_1))
192
+ if (!(this.w4f_1 === other.w4f_1))
193
193
  return false;
194
- if (!(this.j4f_1 === other.j4f_1))
194
+ if (!(this.x4f_1 === other.x4f_1))
195
195
  return false;
196
- if (!(this.k4f_1 === other.k4f_1))
196
+ if (!(this.y4f_1 === other.y4f_1))
197
197
  return false;
198
- if (!equals(this.l4f_1, other.l4f_1))
198
+ if (!equals(this.z4f_1, other.z4f_1))
199
199
  return false;
200
200
  return true;
201
201
  }
202
202
  hashCode() {
203
- var result = getBooleanHashCode(this.i4f_1);
204
- result = imul(31, result) + getBooleanHashCode(this.j4f_1) | 0;
205
- result = imul(31, result) + getBooleanHashCode(this.k4f_1) | 0;
206
- result = imul(31, result) + hashCode(this.l4f_1) | 0;
203
+ var result = getBooleanHashCode(this.w4f_1);
204
+ result = imul(31, result) + getBooleanHashCode(this.x4f_1) | 0;
205
+ result = imul(31, result) + getBooleanHashCode(this.y4f_1) | 0;
206
+ result = imul(31, result) + hashCode(this.z4f_1) | 0;
207
207
  return result;
208
208
  }
209
209
  }