@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
@@ -16,54 +16,54 @@ function DefaultPool() {
16
16
  if (DefaultPoolClass === VOID) {
17
17
  class $ {
18
18
  constructor(capacity) {
19
- this.h3q_1 = capacity;
19
+ this.v3q_1 = capacity;
20
20
  var tmp = this;
21
21
  // Inline function 'kotlin.arrayOfNulls' call
22
- var size = this.h3q_1;
23
- tmp.i3q_1 = Array(size);
24
- this.j3q_1 = 0;
22
+ var size = this.v3q_1;
23
+ tmp.w3q_1 = Array(size);
24
+ this.x3q_1 = 0;
25
25
  }
26
- k3q(instance) {
26
+ y3q(instance) {
27
27
  }
28
- l3q(instance) {
28
+ z3q(instance) {
29
29
  return instance;
30
30
  }
31
- m3q(instance) {
31
+ a3r(instance) {
32
32
  }
33
- n3q() {
34
- if (this.j3q_1 === 0)
35
- return this.g3q();
36
- this.j3q_1 = this.j3q_1 - 1 | 0;
37
- var idx = this.j3q_1;
38
- var tmp = this.i3q_1[idx];
33
+ b3r() {
34
+ if (this.x3q_1 === 0)
35
+ return this.u3q();
36
+ this.x3q_1 = this.x3q_1 - 1 | 0;
37
+ var idx = this.x3q_1;
38
+ var tmp = this.w3q_1[idx];
39
39
  var instance = !(tmp == null) ? tmp : THROW_CCE();
40
- this.i3q_1[idx] = null;
41
- return this.l3q(instance);
40
+ this.w3q_1[idx] = null;
41
+ return this.z3q(instance);
42
42
  }
43
- o3q(instance) {
44
- this.m3q(instance);
45
- if (this.j3q_1 === this.h3q_1) {
46
- this.k3q(instance);
43
+ c3r(instance) {
44
+ this.a3r(instance);
45
+ if (this.x3q_1 === this.v3q_1) {
46
+ this.y3q(instance);
47
47
  } else {
48
- var _unary__edvuaz = this.j3q_1;
49
- this.j3q_1 = _unary__edvuaz + 1 | 0;
50
- this.i3q_1[_unary__edvuaz] = instance;
48
+ var _unary__edvuaz = this.x3q_1;
49
+ this.x3q_1 = _unary__edvuaz + 1 | 0;
50
+ this.w3q_1[_unary__edvuaz] = instance;
51
51
  }
52
52
  }
53
53
  u21() {
54
54
  var inductionVariable = 0;
55
- var last = this.j3q_1;
55
+ var last = this.x3q_1;
56
56
  if (inductionVariable < last)
57
57
  do {
58
58
  var i = inductionVariable;
59
59
  inductionVariable = inductionVariable + 1 | 0;
60
- var tmp = this.i3q_1[i];
60
+ var tmp = this.w3q_1[i];
61
61
  var instance = !(tmp == null) ? tmp : THROW_CCE();
62
- this.i3q_1[i] = null;
63
- this.k3q(instance);
62
+ this.w3q_1[i] = null;
63
+ this.y3q(instance);
64
64
  }
65
65
  while (inductionVariable < last);
66
- this.j3q_1 = 0;
66
+ this.x3q_1 = 0;
67
67
  }
68
68
  }
69
69
  protoOf($).v5 = close;
@@ -26,7 +26,7 @@ var NoPoolImplClass;
26
26
  function NoPoolImpl() {
27
27
  if (NoPoolImplClass === VOID) {
28
28
  class $ {
29
- o3q(instance) {
29
+ c3r(instance) {
30
30
  return Unit_instance;
31
31
  }
32
32
  u21() {
@@ -1,7 +1,7 @@
1
1
  import { EmptyCoroutineContext_getInstance31fow51ayy30t as EmptyCoroutineContext_getInstance } from '../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContextImpl.mjs';
2
2
  import { VOID3gxj6tk5isa35 as VOID } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
3
- import { AutoCloseable1l5p57f9lp7kv as AutoCloseable } from '../../../../../kotlin-kotlin-stdlib/kotlin/AutoCloseableJs.mjs';
4
3
  import { CoroutineScopefcb5f5dwqcas as CoroutineScope } from '../../../../../kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs';
4
+ import { AutoCloseable1l5p57f9lp7kv as AutoCloseable } from '../../../../../kotlin-kotlin-stdlib/kotlin/AutoCloseableJs.mjs';
5
5
  import { initMetadataForObject1cxne3s9w65el as initMetadataForObject } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
6
6
  //region block: imports
7
7
  //endregion
@@ -21,7 +21,7 @@ function NoopSelectorManager() {
21
21
  v5() {
22
22
  }
23
23
  }
24
- initMetadataForObject($, 'NoopSelectorManager', VOID, VOID, [AutoCloseable(), CoroutineScope()], [2]);
24
+ initMetadataForObject($, 'NoopSelectorManager', VOID, VOID, [CoroutineScope(), AutoCloseable()], [2]);
25
25
  NoopSelectorManagerClass = $;
26
26
  }
27
27
  return NoopSelectorManagerClass;
@@ -11,11 +11,11 @@ function SocketBuilder() {
11
11
  if (SocketBuilderClass === VOID) {
12
12
  class $ {
13
13
  constructor(selector, options) {
14
- this.x6t_1 = selector;
15
- this.y6t_1 = options;
14
+ this.o6u_1 = selector;
15
+ this.p6u_1 = options;
16
16
  }
17
- z6t() {
18
- return new (TcpSocketBuilder())(this.x6t_1, this.y6t_1.e6u());
17
+ q6u() {
18
+ return new (TcpSocketBuilder())(this.o6u_1, this.p6u_1.v6u());
19
19
  }
20
20
  }
21
21
  initMetadataForClass($, 'SocketBuilder');
@@ -24,7 +24,7 @@ function SocketBuilder() {
24
24
  return SocketBuilderClass;
25
25
  }
26
26
  function aSocket(selector) {
27
- return new (SocketBuilder())(selector, Companion_instance.f6u());
27
+ return new (SocketBuilder())(selector, Companion_instance.w6u());
28
28
  }
29
29
  //region block: exports
30
30
  export {
@@ -37,7 +37,7 @@ function UnixSocketAddress() {
37
37
  class $ extends SocketAddress() {
38
38
  constructor(path) {
39
39
  super();
40
- this.t6y_1 = path;
40
+ this.k6z_1 = path;
41
41
  }
42
42
  equals(other) {
43
43
  var tmp;
@@ -48,13 +48,13 @@ function UnixSocketAddress() {
48
48
  }
49
49
  if (tmp)
50
50
  return false;
51
- return other.t6y_1 === this.t6y_1;
51
+ return other.k6z_1 === this.k6z_1;
52
52
  }
53
53
  hashCode() {
54
- return getStringHashCode(this.t6y_1);
54
+ return getStringHashCode(this.k6z_1);
55
55
  }
56
56
  toString() {
57
- return 'UnixSocketAddress(' + this.t6y_1 + ')';
57
+ return 'UnixSocketAddress(' + this.k6z_1 + ')';
58
58
  }
59
59
  }
60
60
  initMetadataForClass($, 'UnixSocketAddress');
@@ -68,8 +68,8 @@ function InetSocketAddress() {
68
68
  class $ extends SocketAddress() {
69
69
  constructor(hostname, port) {
70
70
  super();
71
- this.r6y_1 = hostname;
72
- this.s6y_1 = port;
71
+ this.i6z_1 = hostname;
72
+ this.j6z_1 = port;
73
73
  }
74
74
  equals(other) {
75
75
  var tmp;
@@ -80,13 +80,13 @@ function InetSocketAddress() {
80
80
  }
81
81
  if (tmp)
82
82
  return false;
83
- return other.r6y_1 === this.r6y_1 && other.s6y_1 === this.s6y_1;
83
+ return other.i6z_1 === this.i6z_1 && other.j6z_1 === this.j6z_1;
84
84
  }
85
85
  hashCode() {
86
- return imul(getStringHashCode(this.r6y_1), 31) + this.s6y_1 | 0;
86
+ return imul(getStringHashCode(this.i6z_1), 31) + this.j6z_1 | 0;
87
87
  }
88
88
  toString() {
89
- return 'InetSocketAddress(' + this.r6y_1 + ':' + this.s6y_1 + ')';
89
+ return 'InetSocketAddress(' + this.i6z_1 + ':' + this.j6z_1 + ')';
90
90
  }
91
91
  }
92
92
  initMetadataForClass($, 'InetSocketAddress');
@@ -40,10 +40,10 @@ import { ASocket1hggj5ss9a2ef as ASocket } from './Sockets.mjs';
40
40
  function checkChannels($this) {
41
41
  var tmp;
42
42
  var tmp_0;
43
- if ($this.g6u_1.kotlinx$atomicfu$value) {
43
+ if ($this.x6u_1.kotlinx$atomicfu$value) {
44
44
  // Inline function 'io.ktor.network.sockets.SocketBase.completedOrNotStarted' call
45
45
  // Inline function 'kotlin.let' call
46
- var it = $this.i6u_1.kotlinx$atomicfu$value;
46
+ var it = $this.z6u_1.kotlinx$atomicfu$value;
47
47
  tmp_0 = it == null || get_isCompleted(it);
48
48
  } else {
49
49
  tmp_0 = false;
@@ -51,16 +51,16 @@ function checkChannels($this) {
51
51
  if (tmp_0) {
52
52
  // Inline function 'io.ktor.network.sockets.SocketBase.completedOrNotStarted' call
53
53
  // Inline function 'kotlin.let' call
54
- var it_0 = $this.j6u_1.kotlinx$atomicfu$value;
54
+ var it_0 = $this.a6v_1.kotlinx$atomicfu$value;
55
55
  tmp = it_0 == null || get_isCompleted(it_0);
56
56
  } else {
57
57
  tmp = false;
58
58
  }
59
59
  if (tmp) {
60
- if (!$this.h6u_1.atomicfu$compareAndSet(false, true))
60
+ if (!$this.y6u_1.atomicfu$compareAndSet(false, true))
61
61
  return Unit_instance;
62
62
  // Inline function 'io.ktor.network.sockets.SocketBase.exception' call
63
- var tmp0_safe_receiver = $this.i6u_1.kotlinx$atomicfu$value;
63
+ var tmp0_safe_receiver = $this.z6u_1.kotlinx$atomicfu$value;
64
64
  var tmp_1;
65
65
  if (tmp0_safe_receiver == null) {
66
66
  tmp_1 = null;
@@ -78,7 +78,7 @@ function checkChannels($this) {
78
78
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : getCancellationException(tmp1_safe_receiver);
79
79
  var e1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.cause;
80
80
  // Inline function 'io.ktor.network.sockets.SocketBase.exception' call
81
- var tmp0_safe_receiver_0 = $this.j6u_1.kotlinx$atomicfu$value;
81
+ var tmp0_safe_receiver_0 = $this.a6v_1.kotlinx$atomicfu$value;
82
82
  var tmp_3;
83
83
  if (tmp0_safe_receiver_0 == null) {
84
84
  tmp_3 = null;
@@ -95,12 +95,12 @@ function checkChannels($this) {
95
95
  var tmp1_safe_receiver_0 = tmp_3;
96
96
  var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : getCancellationException(tmp1_safe_receiver_0);
97
97
  var e2 = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.cause;
98
- var e3 = $this.m6u();
98
+ var e3 = $this.d6v();
99
99
  var combined = combine($this, combine($this, e1, e2), e3);
100
100
  if (combined == null)
101
- $this.n6u().d25();
101
+ $this.e6v().d25();
102
102
  else
103
- $this.n6u().c25(combined);
103
+ $this.e6v().c25(combined);
104
104
  }
105
105
  }
106
106
  function combine($this, e1, e2) {
@@ -130,17 +130,17 @@ function SocketBase$close$slambda() {
130
130
  constructor(this$0, resultContinuation, $box) {
131
131
  if ($box === VOID)
132
132
  $box = {};
133
- $box.w6u_1 = this$0;
133
+ $box.n6v_1 = this$0;
134
134
  super(resultContinuation, $box);
135
135
  }
136
- l37($this$launch, $completion) {
137
- var tmp = this.p35($this$launch, $completion);
136
+ z37($this$launch, $completion) {
137
+ var tmp = this.d36($this$launch, $completion);
138
138
  tmp.cc_1 = Unit_instance;
139
139
  tmp.dc_1 = null;
140
140
  return tmp.ic();
141
141
  }
142
142
  kd(p1, $completion) {
143
- return this.l37((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
143
+ return this.z37((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
144
144
  }
145
145
  ic() {
146
146
  var suspendResult = this.cc_1;
@@ -150,14 +150,14 @@ function SocketBase$close$slambda() {
150
150
  switch (tmp) {
151
151
  case 0:
152
152
  this.bc_1 = 3;
153
- this.y6u_1 = this.w6u_1.i6u_1.kotlinx$atomicfu$value;
154
- if (this.y6u_1 == null) {
155
- this.z6u_1 = null;
153
+ this.p6v_1 = this.n6v_1.z6u_1.kotlinx$atomicfu$value;
154
+ if (this.p6v_1 == null) {
155
+ this.q6v_1 = null;
156
156
  this.ac_1 = 2;
157
157
  continue $sm;
158
158
  } else {
159
159
  this.ac_1 = 1;
160
- suspendResult = this.y6u_1.w3a(this);
160
+ suspendResult = this.p6v_1.k3b(this);
161
161
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
162
162
  return suspendResult;
163
163
  }
@@ -166,18 +166,18 @@ function SocketBase$close$slambda() {
166
166
 
167
167
  case 1:
168
168
  var tmp_0 = this;
169
- tmp_0.z6u_1 = Unit_instance;
169
+ tmp_0.q6v_1 = Unit_instance;
170
170
  this.ac_1 = 2;
171
171
  continue $sm;
172
172
  case 2:
173
- var tmp1_safe_receiver = this.w6u_1.j6u_1.kotlinx$atomicfu$value;
173
+ var tmp1_safe_receiver = this.n6v_1.a6v_1.kotlinx$atomicfu$value;
174
174
  if (tmp1_safe_receiver == null)
175
175
  null;
176
176
  else {
177
177
  cancel(tmp1_safe_receiver);
178
178
  }
179
179
 
180
- checkChannels(this.w6u_1);
180
+ checkChannels(this.n6v_1);
181
181
  return Unit_instance;
182
182
  case 3:
183
183
  throw this.dc_1;
@@ -193,9 +193,9 @@ function SocketBase$close$slambda() {
193
193
  }
194
194
  while (true);
195
195
  }
196
- p35($this$launch, completion) {
197
- var i = new (SocketBase$close$slambda())(this.w6u_1, completion);
198
- i.x6u_1 = $this$launch;
196
+ d36($this$launch, completion) {
197
+ var i = new (SocketBase$close$slambda())(this.n6v_1, completion);
198
+ i.o6v_1 = $this$launch;
199
199
  return i;
200
200
  }
201
201
  }
@@ -207,7 +207,7 @@ function SocketBase$close$slambda() {
207
207
  function SocketBase$close$slambda_0(this$0, resultContinuation) {
208
208
  var i = new (SocketBase$close$slambda())(this$0, resultContinuation);
209
209
  var l = function ($this$launch, $completion) {
210
- return i.l37($this$launch, $completion);
210
+ return i.z37($this$launch, $completion);
211
211
  };
212
212
  l.$arity = 1;
213
213
  return l;
@@ -218,75 +218,75 @@ function SocketBase() {
218
218
  class $ extends SelectableBase() {
219
219
  constructor(parent) {
220
220
  super();
221
- this.g6u_1 = atomic$boolean$1(false);
222
- this.h6u_1 = atomic$boolean$1(false);
223
- this.i6u_1 = atomic$ref$1(null);
224
- this.j6u_1 = atomic$ref$1(null);
221
+ this.x6u_1 = atomic$boolean$1(false);
222
+ this.y6u_1 = atomic$boolean$1(false);
223
+ this.z6u_1 = atomic$ref$1(null);
224
+ this.a6v_1 = atomic$ref$1(null);
225
225
  var tmp = this;
226
- tmp.k6u_1 = SocketBase$channelCompletionHandler$lambda(this);
227
- this.l6u_1 = Job(parent.nc(Key_instance));
226
+ tmp.b6v_1 = SocketBase$channelCompletionHandler$lambda(this);
227
+ this.c6v_1 = Job(parent.nc(Key_instance));
228
228
  }
229
- n6u() {
230
- return this.l6u_1;
229
+ e6v() {
230
+ return this.c6v_1;
231
231
  }
232
232
  s1x() {
233
- return this.n6u();
233
+ return this.e6v();
234
234
  }
235
235
  u21() {
236
236
  this.v5();
237
237
  }
238
238
  v5() {
239
- if (!this.g6u_1.atomicfu$compareAndSet(false, true))
239
+ if (!this.x6u_1.atomicfu$compareAndSet(false, true))
240
240
  return Unit_instance;
241
241
  var tmp = new (CoroutineName())('socket-close');
242
242
  launch(this, tmp, VOID, SocketBase$close$slambda_0(this, null));
243
243
  }
244
- a6v(channel) {
244
+ r6v(channel) {
245
245
  // Inline function 'io.ktor.network.sockets.SocketBase.attachFor' call
246
- var ref = this.j6u_1;
247
- if (this.g6u_1.kotlinx$atomicfu$value) {
248
- var e = IOException().l2u('Socket closed');
246
+ var ref = this.a6v_1;
247
+ if (this.x6u_1.kotlinx$atomicfu$value) {
248
+ var e = IOException().z2u('Socket closed');
249
249
  close(channel, e);
250
250
  throw e;
251
251
  }
252
- var j = this.b6v(channel);
252
+ var j = this.s6v(channel);
253
253
  if (!ref.atomicfu$compareAndSet(null, j)) {
254
254
  var e_0 = IllegalStateException().o4('reading' + ' channel has already been set');
255
255
  cancel(j);
256
256
  throw e_0;
257
257
  }
258
- if (this.g6u_1.kotlinx$atomicfu$value) {
259
- var e_1 = IOException().l2u('Socket closed');
258
+ if (this.x6u_1.kotlinx$atomicfu$value) {
259
+ var e_1 = IOException().z2u('Socket closed');
260
260
  cancel(j);
261
261
  close(channel, e_1);
262
262
  throw e_1;
263
263
  }
264
264
  attachJob(channel, j);
265
- invokeOnCompletion(j, this.k6u_1);
265
+ invokeOnCompletion(j, this.b6v_1);
266
266
  return j;
267
267
  }
268
- c6v(channel) {
268
+ t6v(channel) {
269
269
  // Inline function 'io.ktor.network.sockets.SocketBase.attachFor' call
270
- var ref = this.i6u_1;
271
- if (this.g6u_1.kotlinx$atomicfu$value) {
272
- var e = IOException().l2u('Socket closed');
270
+ var ref = this.z6u_1;
271
+ if (this.x6u_1.kotlinx$atomicfu$value) {
272
+ var e = IOException().z2u('Socket closed');
273
273
  close(channel, e);
274
274
  throw e;
275
275
  }
276
- var j = this.d6v(channel);
276
+ var j = this.u6v(channel);
277
277
  if (!ref.atomicfu$compareAndSet(null, j)) {
278
278
  var e_0 = IllegalStateException().o4('writing' + ' channel has already been set');
279
279
  cancel(j);
280
280
  throw e_0;
281
281
  }
282
- if (this.g6u_1.kotlinx$atomicfu$value) {
283
- var e_1 = IOException().l2u('Socket closed');
282
+ if (this.x6u_1.kotlinx$atomicfu$value) {
283
+ var e_1 = IOException().z2u('Socket closed');
284
284
  cancel(j);
285
285
  close(channel, e_1);
286
286
  throw e_1;
287
287
  }
288
288
  attachJob(channel, j);
289
- invokeOnCompletion(j, this.k6u_1);
289
+ invokeOnCompletion(j, this.b6v_1);
290
290
  return j;
291
291
  }
292
292
  }