@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
@@ -61,23 +61,23 @@ import { toLongw1zpgk99d84b as toLong } from '../../../../../kotlin-kotlin-stdli
61
61
  import { CompletableDeferred2lnqvsbvx74d3 as CompletableDeferred } from '../../../../../kotlinx-coroutines-core/kotlinx/coroutines/CompletableDeferred.mjs';
62
62
  import { SocketBase16wq3cyi6rfg8 as SocketBase } from './SocketBase.mjs';
63
63
  import { Dispatchers_getInstanceitgtkvqfcnx3 as Dispatchers_getInstance } from '../../../../../kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs';
64
- import { ASocket1hggj5ss9a2ef as ASocket } from './Sockets.mjs';
65
64
  import { CoroutineScopefcb5f5dwqcas as CoroutineScope } from '../../../../../kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs';
65
+ import { ASocket1hggj5ss9a2ef as ASocket } from './Sockets.mjs';
66
66
  //region block: imports
67
67
  //endregion
68
68
  //region block: pre-declaration
69
69
  //endregion
70
70
  function SocketContext$initiate$lambda(this$0) {
71
71
  return function (it) {
72
- this$0.h6w_1.destroy(it == null ? null : toJsError(it));
73
- this$0.k6w_1.d1z();
74
- this$0.j6w_1.u2i();
72
+ this$0.y6w_1.destroy(it == null ? null : toJsError(it));
73
+ this$0.b6x_1.d1z();
74
+ this$0.a6x_1.u2i();
75
75
  return Unit_instance;
76
76
  };
77
77
  }
78
78
  function SocketContext$initiate$lambda_0(this$0) {
79
79
  return function (it) {
80
- this$0.h6w_1.destroy(it == null ? null : toJsError(it));
80
+ this$0.y6w_1.destroy(it == null ? null : toJsError(it));
81
81
  return Unit_instance;
82
82
  };
83
83
  }
@@ -89,12 +89,12 @@ function SocketContext$initiate$lambda_1($connectCont, this$0) {
89
89
  var tmp0 = $connectCont;
90
90
  // Inline function 'kotlin.coroutines.resumeWithException' call
91
91
  // Inline function 'kotlin.Companion.failure' call
92
- var exception = IOException().m2u('Failed to connect', toThrowable(error));
92
+ var exception = IOException().a2v('Failed to connect', toThrowable(error));
93
93
  var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(exception));
94
94
  tmp0.lc(tmp$ret$0);
95
95
  tmp = Unit_instance;
96
96
  } else {
97
- cancel(get_job(this$0.k6w_1), 'Socket error', toThrowable(error));
97
+ cancel(get_job(this$0.b6x_1), 'Socket error', toThrowable(error));
98
98
  tmp = Unit_instance;
99
99
  }
100
100
  return Unit_instance;
@@ -108,12 +108,12 @@ function SocketContext$initiate$lambda_2($connectCont, this$0) {
108
108
  var tmp0 = $connectCont;
109
109
  // Inline function 'kotlin.coroutines.resumeWithException' call
110
110
  // Inline function 'kotlin.Companion.failure' call
111
- var exception = SocketTimeoutException().o6w('timeout');
111
+ var exception = SocketTimeoutException().f6x('timeout');
112
112
  var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(exception));
113
113
  tmp0.lc(tmp$ret$0);
114
114
  tmp = Unit_instance;
115
115
  } else {
116
- cancel(get_job(this$0.k6w_1), 'Socket timeout', SocketTimeoutException().o6w('timeout'));
116
+ cancel(get_job(this$0.b6x_1), 'Socket timeout', SocketTimeoutException().f6x('timeout'));
117
117
  tmp = Unit_instance;
118
118
  }
119
119
  return Unit_instance;
@@ -121,19 +121,19 @@ function SocketContext$initiate$lambda_2($connectCont, this$0) {
121
121
  }
122
122
  function SocketContext$initiate$lambda_3(this$0) {
123
123
  return function () {
124
- this$0.j6w_1.s2i();
124
+ this$0.a6x_1.s2i();
125
125
  return Unit_instance;
126
126
  };
127
127
  }
128
128
  function SocketContext$initiate$lambda_4(this$0) {
129
129
  return function (it) {
130
- cancel(get_job(this$0.k6w_1), 'Socket closed');
130
+ cancel(get_job(this$0.b6x_1), 'Socket closed');
131
131
  return Unit_instance;
132
132
  };
133
133
  }
134
134
  function SocketContext$initiate$lambda_5(this$0) {
135
135
  return function (data) {
136
- this$0.j6w_1.f2i(data);
136
+ this$0.a6x_1.f2i(data);
137
137
  return Unit_instance;
138
138
  };
139
139
  }
@@ -142,7 +142,7 @@ function SocketContext$initiate$lambda_6($connectCont, this$0) {
142
142
  var tmp0 = $connectCont;
143
143
  // Inline function 'kotlin.coroutines.resume' call
144
144
  // Inline function 'kotlin.Companion.success' call
145
- var value = this$0.p6w();
145
+ var value = this$0.g6x();
146
146
  var tmp$ret$0 = _Result___init__impl__xyqfz8(value);
147
147
  tmp0.lc(tmp$ret$0);
148
148
  return Unit_instance;
@@ -153,42 +153,42 @@ function SocketContext() {
153
153
  if (SocketContextClass === VOID) {
154
154
  class $ {
155
155
  constructor(socket, address, parentContext) {
156
- this.h6w_1 = socket;
157
- this.i6w_1 = address;
158
- this.j6w_1 = Channel(2147483647);
159
- this.k6w_1 = Job(parentContext);
156
+ this.y6w_1 = socket;
157
+ this.z6w_1 = address;
158
+ this.a6x_1 = Channel(2147483647);
159
+ this.b6x_1 = Job(parentContext);
160
160
  }
161
- q6w(connectCont) {
161
+ h6x(connectCont) {
162
162
  if (connectCont == null)
163
163
  null;
164
164
  else {
165
165
  connectCont.i21(SocketContext$initiate$lambda(this));
166
166
  }
167
- this.k6w_1.v1y(SocketContext$initiate$lambda_0(this));
168
- onError(this.h6w_1, SocketContext$initiate$lambda_1(connectCont, this));
169
- onTimeout(this.h6w_1, SocketContext$initiate$lambda_2(connectCont, this));
170
- onEnd(this.h6w_1, SocketContext$initiate$lambda_3(this));
171
- onClose(this.h6w_1, SocketContext$initiate$lambda_4(this));
172
- onData(this.h6w_1, SocketContext$initiate$lambda_5(this));
167
+ this.b6x_1.v1y(SocketContext$initiate$lambda_0(this));
168
+ onError(this.y6w_1, SocketContext$initiate$lambda_1(connectCont, this));
169
+ onTimeout(this.y6w_1, SocketContext$initiate$lambda_2(connectCont, this));
170
+ onEnd(this.y6w_1, SocketContext$initiate$lambda_3(this));
171
+ onClose(this.y6w_1, SocketContext$initiate$lambda_4(this));
172
+ onData(this.y6w_1, SocketContext$initiate$lambda_5(this));
173
173
  if (!(connectCont == null)) {
174
- onConnect(this.h6w_1, SocketContext$initiate$lambda_6(connectCont, this));
174
+ onConnect(this.y6w_1, SocketContext$initiate$lambda_6(connectCont, this));
175
175
  }
176
176
  }
177
- p6w() {
177
+ g6x() {
178
178
  var tmp;
179
- if (this.i6w_1 instanceof UnixSocketAddress()) {
180
- tmp = this.i6w_1;
179
+ if (this.z6w_1 instanceof UnixSocketAddress()) {
180
+ tmp = this.z6w_1;
181
181
  } else {
182
- tmp = new (InetSocketAddress())(this.h6w_1.localAddress, this.h6w_1.localPort);
182
+ tmp = new (InetSocketAddress())(this.y6w_1.localAddress, this.y6w_1.localPort);
183
183
  }
184
184
  var tmp_0 = tmp;
185
185
  var tmp_1;
186
- if (this.i6w_1 instanceof UnixSocketAddress()) {
187
- tmp_1 = this.i6w_1;
186
+ if (this.z6w_1 instanceof UnixSocketAddress()) {
187
+ tmp_1 = this.z6w_1;
188
188
  } else {
189
- tmp_1 = new (InetSocketAddress())(this.h6w_1.remoteAddress, this.h6w_1.remotePort);
189
+ tmp_1 = new (InetSocketAddress())(this.y6w_1.remoteAddress, this.y6w_1.remotePort);
190
190
  }
191
- return new (SocketImpl())(tmp_0, tmp_1, this.k6w_1, this.j6w_1, this.h6w_1);
191
+ return new (SocketImpl())(tmp_0, tmp_1, this.b6x_1, this.a6x_1, this.y6w_1);
192
192
  }
193
193
  }
194
194
  initMetadataForClass($, 'SocketContext');
@@ -209,18 +209,18 @@ function SocketImpl$attachForReadingImpl$slambda() {
209
209
  constructor(this$0, $channel, resultContinuation, $box) {
210
210
  if ($box === VOID)
211
211
  $box = {};
212
- $box.z6w_1 = this$0;
213
- $box.a6x_1 = $channel;
212
+ $box.q6x_1 = this$0;
213
+ $box.r6x_1 = $channel;
214
214
  super(resultContinuation, $box);
215
215
  }
216
- l4l($this$writer, $completion) {
217
- var tmp = this.m4l($this$writer, $completion);
216
+ z4l($this$writer, $completion) {
217
+ var tmp = this.a4m($this$writer, $completion);
218
218
  tmp.cc_1 = Unit_instance;
219
219
  tmp.dc_1 = null;
220
220
  return tmp.ic();
221
221
  }
222
222
  kd(p1, $completion) {
223
- return this.l4l(p1 instanceof WriterScope() ? p1 : THROW_CCE(), $completion);
223
+ return this.z4l(p1 instanceof WriterScope() ? p1 : THROW_CCE(), $completion);
224
224
  }
225
225
  ic() {
226
226
  var suspendResult = this.cc_1;
@@ -231,15 +231,15 @@ function SocketImpl$attachForReadingImpl$slambda() {
231
231
  case 0:
232
232
  this.bc_1 = 12;
233
233
  var tmp_0 = this;
234
- tmp_0.c6x_1 = this.z6w_1.y6x_1;
235
- this.d6x_1 = this.c6x_1;
234
+ tmp_0.t6x_1 = this.q6x_1.p6y_1;
235
+ this.u6x_1 = this.t6x_1;
236
236
  var tmp_1 = this;
237
- tmp_1.e6x_1 = this.d6x_1;
237
+ tmp_1.v6x_1 = this.u6x_1;
238
238
  this.ac_1 = 1;
239
239
  continue $sm;
240
240
  case 1:
241
- this.g6x_1 = this.e6x_1;
242
- this.h6x_1 = null;
241
+ this.x6x_1 = this.v6x_1;
242
+ this.y6x_1 = null;
243
243
  this.ac_1 = 2;
244
244
  continue $sm;
245
245
  case 2:
@@ -249,14 +249,14 @@ function SocketImpl$attachForReadingImpl$slambda() {
249
249
  this.bc_1 = 11;
250
250
  this.bc_1 = 10;
251
251
  var tmp_2 = this;
252
- tmp_2.j6x_1 = this.g6x_1;
253
- this.k6x_1 = this.j6x_1;
254
- this.l6x_1 = this.k6x_1.d1();
252
+ tmp_2.a6y_1 = this.x6x_1;
253
+ this.b6y_1 = this.a6y_1;
254
+ this.c6y_1 = this.b6y_1.d1();
255
255
  this.ac_1 = 4;
256
256
  continue $sm;
257
257
  case 4:
258
258
  this.ac_1 = 5;
259
- suspendResult = this.l6x_1.g2f(this);
259
+ suspendResult = this.c6y_1.g2f(this);
260
260
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
261
261
  return suspendResult;
262
262
  }
@@ -268,12 +268,12 @@ function SocketImpl$attachForReadingImpl$slambda() {
268
268
  continue $sm;
269
269
  }
270
270
 
271
- this.m6x_1 = this.l6x_1.f1();
271
+ this.d6y_1 = this.c6y_1.f1();
272
272
  var tmp_3 = this;
273
- tmp_3.n6x_1 = this.m6x_1;
274
- this.o6x_1 = this.n6x_1;
273
+ tmp_3.e6y_1 = this.d6y_1;
274
+ this.f6y_1 = this.e6y_1;
275
275
  this.ac_1 = 6;
276
- suspendResult = writeByteArray(this.a6x_1, toByteArray(this.o6x_1), this);
276
+ suspendResult = writeByteArray(this.r6x_1, toByteArray(this.f6y_1), this);
277
277
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
278
278
  return suspendResult;
279
279
  }
@@ -281,7 +281,7 @@ function SocketImpl$attachForReadingImpl$slambda() {
281
281
  continue $sm;
282
282
  case 6:
283
283
  this.ac_1 = 7;
284
- suspendResult = this.a6x_1.l3a(this);
284
+ suspendResult = this.r6x_1.z3a(this);
285
285
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
286
286
  return suspendResult;
287
287
  }
@@ -292,7 +292,7 @@ function SocketImpl$attachForReadingImpl$slambda() {
292
292
  continue $sm;
293
293
  case 8:
294
294
  var tmp_4 = this;
295
- tmp_4.i6x_1 = Unit_instance;
295
+ tmp_4.z6x_1 = Unit_instance;
296
296
  this.bc_1 = 12;
297
297
  this.ac_1 = 9;
298
298
  var tmp_5 = this;
@@ -300,8 +300,8 @@ function SocketImpl$attachForReadingImpl$slambda() {
300
300
  case 9:
301
301
  this.bc_1 = 12;
302
302
  var tmp_6 = this;
303
- cancelConsumed(this.g6x_1, this.h6x_1);
304
- tmp_6.f6x_1 = Unit_instance;
303
+ cancelConsumed(this.x6x_1, this.y6x_1);
304
+ tmp_6.w6x_1 = Unit_instance;
305
305
  this.ac_1 = 14;
306
306
  continue $sm;
307
307
  case 10:
@@ -310,7 +310,7 @@ function SocketImpl$attachForReadingImpl$slambda() {
310
310
  if (tmp_7 instanceof Error) {
311
311
  var e = this.dc_1;
312
312
  var tmp_8 = this;
313
- this.h6x_1 = e;
313
+ this.y6x_1 = e;
314
314
  throw e;
315
315
  } else {
316
316
  throw this.dc_1;
@@ -319,13 +319,13 @@ function SocketImpl$attachForReadingImpl$slambda() {
319
319
  case 11:
320
320
  this.bc_1 = 12;
321
321
  var t = this.dc_1;
322
- cancelConsumed(this.g6x_1, this.h6x_1);
322
+ cancelConsumed(this.x6x_1, this.y6x_1);
323
323
  throw t;
324
324
  case 12:
325
325
  throw this.dc_1;
326
326
  case 13:
327
327
  this.bc_1 = 12;
328
- cancelConsumed(this.g6x_1, this.h6x_1);
328
+ cancelConsumed(this.x6x_1, this.y6x_1);
329
329
  if (false) {
330
330
  this.ac_1 = 1;
331
331
  continue $sm;
@@ -347,9 +347,9 @@ function SocketImpl$attachForReadingImpl$slambda() {
347
347
  }
348
348
  while (true);
349
349
  }
350
- m4l($this$writer, completion) {
351
- var i = new (SocketImpl$attachForReadingImpl$slambda())(this.z6w_1, this.a6x_1, completion);
352
- i.b6x_1 = $this$writer;
350
+ a4m($this$writer, completion) {
351
+ var i = new (SocketImpl$attachForReadingImpl$slambda())(this.q6x_1, this.r6x_1, completion);
352
+ i.s6x_1 = $this$writer;
353
353
  return i;
354
354
  }
355
355
  }
@@ -361,7 +361,7 @@ function SocketImpl$attachForReadingImpl$slambda() {
361
361
  function SocketImpl$attachForReadingImpl$slambda_0(this$0, $channel, resultContinuation) {
362
362
  var i = new (SocketImpl$attachForReadingImpl$slambda())(this$0, $channel, resultContinuation);
363
363
  var l = function ($this$writer, $completion) {
364
- return i.l4l($this$writer, $completion);
364
+ return i.z4l($this$writer, $completion);
365
365
  };
366
366
  l.$arity = 1;
367
367
  return l;
@@ -373,18 +373,18 @@ function SocketImpl$attachForWritingImpl$slambda() {
373
373
  constructor($channel, this$0, resultContinuation, $box) {
374
374
  if ($box === VOID)
375
375
  $box = {};
376
- $box.i6y_1 = $channel;
377
- $box.j6y_1 = this$0;
376
+ $box.z6y_1 = $channel;
377
+ $box.a6z_1 = this$0;
378
378
  super(resultContinuation, $box);
379
379
  }
380
- a4f($this$reader, $completion) {
381
- var tmp = this.b4f($this$reader, $completion);
380
+ o4f($this$reader, $completion) {
381
+ var tmp = this.p4f($this$reader, $completion);
382
382
  tmp.cc_1 = Unit_instance;
383
383
  tmp.dc_1 = null;
384
384
  return tmp.ic();
385
385
  }
386
386
  kd(p1, $completion) {
387
- return this.a4f(p1 instanceof ReaderScope() ? p1 : THROW_CCE(), $completion);
387
+ return this.o4f(p1 instanceof ReaderScope() ? p1 : THROW_CCE(), $completion);
388
388
  }
389
389
  ic() {
390
390
  var suspendResult = this.cc_1;
@@ -403,13 +403,13 @@ function SocketImpl$attachForWritingImpl$slambda() {
403
403
  }
404
404
 
405
405
  var tmp_0 = this;
406
- tmp_0.l6y_1 = this.i6y_1;
406
+ tmp_0.c6z_1 = this.z6y_1;
407
407
  this.ac_1 = 2;
408
408
  continue $sm;
409
409
  case 2:
410
- this.n6y_1 = this.l6y_1;
411
- if (this.n6y_1.t3a()) {
412
- this.m6y_1 = -1;
410
+ this.e6z_1 = this.c6z_1;
411
+ if (this.e6z_1.h3b()) {
412
+ this.d6z_1 = -1;
413
413
  this.ac_1 = 7;
414
414
  continue $sm;
415
415
  } else {
@@ -418,9 +418,9 @@ function SocketImpl$attachForWritingImpl$slambda() {
418
418
  }
419
419
 
420
420
  case 3:
421
- if (this.n6y_1.m3a().a2r()) {
421
+ if (this.e6z_1.a3b().o2r()) {
422
422
  this.ac_1 = 4;
423
- suspendResult = this.n6y_1.v3a(VOID, this);
423
+ suspendResult = this.e6z_1.j3b(VOID, this);
424
424
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
425
425
  return suspendResult;
426
426
  }
@@ -434,8 +434,8 @@ function SocketImpl$attachForWritingImpl$slambda() {
434
434
  this.ac_1 = 5;
435
435
  continue $sm;
436
436
  case 5:
437
- if (this.n6y_1.t3a()) {
438
- this.m6y_1 = -1;
437
+ if (this.e6z_1.h3b()) {
438
+ this.d6z_1 = -1;
439
439
  this.ac_1 = 7;
440
440
  continue $sm;
441
441
  } else {
@@ -444,29 +444,29 @@ function SocketImpl$attachForWritingImpl$slambda() {
444
444
  }
445
445
 
446
446
  case 6:
447
- var buffer = this.n6y_1.m3a().z2q();
448
- if (!!buffer.a2r()) {
447
+ var buffer = this.e6z_1.a3b().n2r();
448
+ if (!!buffer.o2r()) {
449
449
  var message = 'Buffer is empty';
450
450
  throw IllegalArgumentException().u(toString(message));
451
451
  }
452
452
 
453
- var head = ensureNotNull(buffer.s2q_1);
454
- var tmp0 = head.z2t(true);
455
- var tmp2 = head.f2r_1;
453
+ var head = ensureNotNull(buffer.g2r_1);
454
+ var tmp0 = head.n2u(true);
455
+ var tmp2 = head.t2r_1;
456
456
  var tmp_1 = this;
457
- var endIndex = head.g2r_1;
458
- this.j6y_1.z6x_1.write(toJsBuffer(tmp0, tmp2, endIndex));
459
- tmp_1.o6y_1 = endIndex - tmp2 | 0;
460
- var bytesRead = this.o6y_1;
457
+ var endIndex = head.u2r_1;
458
+ this.a6z_1.q6y_1.write(toJsBuffer(tmp0, tmp2, endIndex));
459
+ tmp_1.f6z_1 = endIndex - tmp2 | 0;
460
+ var bytesRead = this.f6z_1;
461
461
  if (!(bytesRead === 0)) {
462
462
  if (bytesRead < 0)
463
463
  throw IllegalStateException().o4('Returned negative read bytes count');
464
464
  if (bytesRead > head.i1())
465
465
  throw IllegalStateException().o4('Returned too many bytes');
466
- buffer.b2s(toLong(bytesRead));
466
+ buffer.p2s(toLong(bytesRead));
467
467
  }
468
468
 
469
- this.m6y_1 = this.o6y_1;
469
+ this.d6z_1 = this.f6z_1;
470
470
  if (false) {
471
471
  this.ac_1 = 2;
472
472
  continue $sm;
@@ -475,12 +475,12 @@ function SocketImpl$attachForWritingImpl$slambda() {
475
475
  this.ac_1 = 7;
476
476
  continue $sm;
477
477
  case 7:
478
- this.p6y_1 = this.m6y_1;
479
- if (this.p6y_1 === -1) {
480
- this.q6y_1 = CompletableDeferred();
481
- this.j6y_1.z6x_1.end(SocketImpl$attachForWritingImpl$slambda$lambda(this.q6y_1));
478
+ this.g6z_1 = this.d6z_1;
479
+ if (this.g6z_1 === -1) {
480
+ this.h6z_1 = CompletableDeferred();
481
+ this.a6z_1.q6y_1.end(SocketImpl$attachForWritingImpl$slambda$lambda(this.h6z_1));
482
482
  this.ac_1 = 9;
483
- suspendResult = this.q6y_1.b21(this);
483
+ suspendResult = this.h6z_1.b21(this);
484
484
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
485
485
  return suspendResult;
486
486
  }
@@ -512,9 +512,9 @@ function SocketImpl$attachForWritingImpl$slambda() {
512
512
  }
513
513
  while (true);
514
514
  }
515
- b4f($this$reader, completion) {
516
- var i = new (SocketImpl$attachForWritingImpl$slambda())(this.i6y_1, this.j6y_1, completion);
517
- i.k6y_1 = $this$reader;
515
+ p4f($this$reader, completion) {
516
+ var i = new (SocketImpl$attachForWritingImpl$slambda())(this.z6y_1, this.a6z_1, completion);
517
+ i.b6z_1 = $this$reader;
518
518
  return i;
519
519
  }
520
520
  }
@@ -526,7 +526,7 @@ function SocketImpl$attachForWritingImpl$slambda() {
526
526
  function SocketImpl$attachForWritingImpl$slambda_0($channel, this$0, resultContinuation) {
527
527
  var i = new (SocketImpl$attachForWritingImpl$slambda())($channel, this$0, resultContinuation);
528
528
  var l = function ($this$reader, $completion) {
529
- return i.a4f($this$reader, $completion);
529
+ return i.o4f($this$reader, $completion);
530
530
  };
531
531
  l.$arity = 1;
532
532
  return l;
@@ -537,29 +537,29 @@ function SocketImpl() {
537
537
  class $ extends SocketBase() {
538
538
  constructor(localAddress, remoteAddress, coroutineContext, incoming, socket) {
539
539
  super(coroutineContext);
540
- this.v6x_1 = localAddress;
541
- this.w6x_1 = remoteAddress;
542
- this.x6x_1 = coroutineContext;
543
- this.y6x_1 = incoming;
544
- this.z6x_1 = socket;
540
+ this.m6y_1 = localAddress;
541
+ this.n6y_1 = remoteAddress;
542
+ this.o6y_1 = coroutineContext;
543
+ this.p6y_1 = incoming;
544
+ this.q6y_1 = socket;
545
545
  }
546
546
  s1x() {
547
- return this.x6x_1;
547
+ return this.o6y_1;
548
548
  }
549
- b6v(channel) {
549
+ s6v(channel) {
550
550
  var tmp = Dispatchers_getInstance().l2a_1;
551
551
  return writer(this, tmp, channel, SocketImpl$attachForReadingImpl$slambda_0(this, channel, null));
552
552
  }
553
- d6v(channel) {
553
+ u6v(channel) {
554
554
  var tmp = Dispatchers_getInstance().l2a_1;
555
555
  return reader(this, tmp, channel, SocketImpl$attachForWritingImpl$slambda_0(channel, this, null));
556
556
  }
557
- m6u() {
558
- this.z6x_1.destroy(null);
557
+ d6v() {
558
+ this.q6y_1.destroy(null);
559
559
  return null;
560
560
  }
561
561
  }
562
- initMetadataForClass($, 'SocketImpl', VOID, VOID, [SocketBase(), ASocket(), CoroutineScope()]);
562
+ initMetadataForClass($, 'SocketImpl', VOID, VOID, [SocketBase(), CoroutineScope(), ASocket()]);
563
563
  SocketImplClass = $;
564
564
  }
565
565
  return SocketImplClass;
@@ -14,7 +14,7 @@ function tcpConnect(selector, remoteAddress, socketOptions, $completion) {
14
14
  var cancellable = new (CancellableContinuationImpl())(intercepted($completion), 1);
15
15
  cancellable.a23();
16
16
  var socket = get_nodeNet().createConnection(CreateConnectionOptions(remoteAddress, socketOptions));
17
- (new (SocketContext())(socket, remoteAddress, null)).q6w(cancellable);
17
+ (new (SocketContext())(socket, remoteAddress, null)).h6x(cancellable);
18
18
  return cancellable.b20();
19
19
  }
20
20
  //region block: exports
@@ -26,20 +26,20 @@ function PeerSocketOptions() {
26
26
  class $ extends SocketOptions() {
27
27
  constructor(customOptions) {
28
28
  super(customOptions);
29
- this.j6v_1 = -1;
30
- this.k6v_1 = -1;
29
+ this.a6w_1 = -1;
30
+ this.b6w_1 = -1;
31
31
  }
32
- e6v(from) {
33
- super.e6v(from);
32
+ v6v(from) {
33
+ super.v6v(from);
34
34
  if (from instanceof PeerSocketOptions()) {
35
- this.j6v_1 = from.j6v_1;
36
- this.k6v_1 = from.k6v_1;
35
+ this.a6w_1 = from.a6w_1;
36
+ this.b6w_1 = from.b6w_1;
37
37
  }
38
38
  }
39
- l6v() {
39
+ c6w() {
40
40
  // Inline function 'kotlin.apply' call
41
- var this_0 = new (TCPClientSocketOptions())(HashMap().t8(this.a6u_1));
42
- this.e6v(this);
41
+ var this_0 = new (TCPClientSocketOptions())(HashMap().t8(this.r6u_1));
42
+ this.v6v(this);
43
43
  return this_0;
44
44
  }
45
45
  }
@@ -54,17 +54,17 @@ function TCPClientSocketOptions() {
54
54
  class $ extends PeerSocketOptions() {
55
55
  constructor(customOptions) {
56
56
  super(customOptions);
57
- this.s6v_1 = true;
58
- this.t6v_1 = -1;
59
- this.u6v_1 = null;
60
- this.v6v_1 = new (Long())(-1, 2147483647);
57
+ this.j6w_1 = true;
58
+ this.k6w_1 = -1;
59
+ this.l6w_1 = null;
60
+ this.m6w_1 = new (Long())(-1, 2147483647);
61
61
  }
62
- e6v(from) {
63
- super.e6v(from);
62
+ v6v(from) {
63
+ super.v6v(from);
64
64
  if (from instanceof TCPClientSocketOptions()) {
65
- this.s6v_1 = from.s6v_1;
66
- this.t6v_1 = from.t6v_1;
67
- this.u6v_1 = from.u6v_1;
65
+ this.j6w_1 = from.j6w_1;
66
+ this.k6w_1 = from.k6w_1;
67
+ this.l6w_1 = from.l6w_1;
68
68
  }
69
69
  }
70
70
  }
@@ -77,7 +77,7 @@ var CompanionClass;
77
77
  function Companion() {
78
78
  if (CompanionClass === VOID) {
79
79
  class $ {
80
- f6u() {
80
+ w6u() {
81
81
  return new (GeneralSocketOptions())(HashMap().e8());
82
82
  }
83
83
  }
@@ -95,20 +95,20 @@ function SocketOptions() {
95
95
  if (SocketOptionsClass === VOID) {
96
96
  class $ {
97
97
  constructor(customOptions) {
98
- this.a6u_1 = customOptions;
99
- this.b6u_1 = Companion_getInstance().w6v_1;
100
- this.c6u_1 = false;
101
- this.d6u_1 = false;
98
+ this.r6u_1 = customOptions;
99
+ this.s6u_1 = Companion_getInstance().n6w_1;
100
+ this.t6u_1 = false;
101
+ this.u6u_1 = false;
102
102
  }
103
- e6v(from) {
104
- this.b6u_1 = from.b6u_1;
105
- this.c6u_1 = from.c6u_1;
106
- this.d6u_1 = from.d6u_1;
103
+ v6v(from) {
104
+ this.s6u_1 = from.s6u_1;
105
+ this.t6u_1 = from.t6u_1;
106
+ this.u6u_1 = from.u6u_1;
107
107
  }
108
- e6u() {
108
+ v6u() {
109
109
  // Inline function 'kotlin.apply' call
110
- var this_0 = new (PeerSocketOptions())(HashMap().t8(this.a6u_1));
111
- this.e6v(this);
110
+ var this_0 = new (PeerSocketOptions())(HashMap().t8(this.r6u_1));
111
+ this.v6v(this);
112
112
  return this_0;
113
113
  }
114
114
  }
@@ -10,13 +10,13 @@ var SocketTimeoutExceptionClass;
10
10
  function SocketTimeoutException() {
11
11
  if (SocketTimeoutExceptionClass === VOID) {
12
12
  class $ extends IOException() {
13
- static u6y(message, cause) {
14
- var $this = this.m2u(message, cause);
15
- captureStack($this, $this.n6w_1);
13
+ static l6z(message, cause) {
14
+ var $this = this.a2v(message, cause);
15
+ captureStack($this, $this.e6x_1);
16
16
  return $this;
17
17
  }
18
- static o6w(message) {
19
- return this.u6y(message, null);
18
+ static f6x(message) {
19
+ return this.l6z(message, null);
20
20
  }
21
21
  }
22
22
  initMetadataForClass($, 'SocketTimeoutException');
@@ -15,9 +15,9 @@ function Connection() {
15
15
  if (ConnectionClass === VOID) {
16
16
  class $ {
17
17
  constructor(socket, input, output) {
18
- this.b6w_1 = socket;
19
- this.c6w_1 = input;
20
- this.d6w_1 = output;
18
+ this.s6w_1 = socket;
19
+ this.t6w_1 = input;
20
+ this.u6w_1 = output;
21
21
  }
22
22
  }
23
23
  initMetadataForClass($, 'Connection');
@@ -31,14 +31,14 @@ function connection(_this__u8e3s4) {
31
31
  function openReadChannel(_this__u8e3s4) {
32
32
  // Inline function 'kotlin.also' call
33
33
  var this_0 = new (ByteChannel())(false);
34
- _this__u8e3s4.a6v(this_0);
34
+ _this__u8e3s4.r6v(this_0);
35
35
  return this_0;
36
36
  }
37
37
  function openWriteChannel(_this__u8e3s4, autoFlush) {
38
38
  autoFlush = autoFlush === VOID ? false : autoFlush;
39
39
  // Inline function 'kotlin.also' call
40
40
  var this_0 = new (ByteChannel())(autoFlush);
41
- _this__u8e3s4.c6v(this_0);
41
+ _this__u8e3s4.t6v(this_0);
42
42
  return this_0;
43
43
  }
44
44
  function dispose() {
@@ -10,14 +10,14 @@ function TcpSocketBuilder() {
10
10
  if (TcpSocketBuilderClass === VOID) {
11
11
  class $ {
12
12
  constructor(selector, options) {
13
- this.e6w_1 = selector;
14
- this.f6w_1 = options;
13
+ this.v6w_1 = selector;
14
+ this.w6w_1 = options;
15
15
  }
16
- g6w(remoteAddress, configure, $completion) {
16
+ x6w(remoteAddress, configure, $completion) {
17
17
  // Inline function 'kotlin.apply' call
18
- var this_0 = this.f6w_1.l6v();
18
+ var this_0 = this.w6w_1.c6w();
19
19
  configure(this_0);
20
- return tcpConnect(this.e6w_1, remoteAddress, this_0, $completion);
20
+ return tcpConnect(this.v6w_1, remoteAddress, this_0, $completion);
21
21
  }
22
22
  }
23
23
  initMetadataForClass($, 'TcpSocketBuilder', VOID, VOID, VOID, [3, 2]);