@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
@@ -42,37 +42,37 @@ var imul = Math.imul;
42
42
  //region block: pre-declaration
43
43
  //endregion
44
44
  function throwEof($this, byteCount) {
45
- throw EOFException().y2q("Buffer doesn't contain required number of bytes (size: " + $this.i1().toString() + ', required: ' + byteCount.toString() + ')');
45
+ throw EOFException().m2r("Buffer doesn't contain required number of bytes (size: " + $this.i1().toString() + ', required: ' + byteCount.toString() + ')');
46
46
  }
47
47
  var BufferClass;
48
48
  function Buffer() {
49
49
  if (BufferClass === VOID) {
50
50
  class $ {
51
51
  constructor() {
52
- this.s2q_1 = null;
53
- this.t2q_1 = null;
54
- this.u2q_1 = new (Long())(0, 0);
52
+ this.g2r_1 = null;
53
+ this.h2r_1 = null;
54
+ this.i2r_1 = new (Long())(0, 0);
55
55
  }
56
56
  i1() {
57
- return this.u2q_1;
57
+ return this.i2r_1;
58
58
  }
59
- z2q() {
59
+ n2r() {
60
60
  return this;
61
61
  }
62
- a2r() {
62
+ o2r() {
63
63
  return this.i1().equals(new (Long())(0, 0));
64
64
  }
65
- b2r(byteCount) {
65
+ p2r(byteCount) {
66
66
  // Inline function 'kotlin.require' call
67
67
  if (!(byteCount.a2(new (Long())(0, 0)) >= 0)) {
68
68
  var message = 'byteCount: ' + byteCount.toString();
69
69
  throw IllegalArgumentException().u(toString(message));
70
70
  }
71
71
  if (this.i1().a2(byteCount) < 0) {
72
- throw EOFException().y2q("Buffer doesn't contain required number of bytes (size: " + this.i1().toString() + ', required: ' + byteCount.toString() + ')');
72
+ throw EOFException().m2r("Buffer doesn't contain required number of bytes (size: " + this.i1().toString() + ', required: ' + byteCount.toString() + ')');
73
73
  }
74
74
  }
75
- c2r(byteCount) {
75
+ q2r(byteCount) {
76
76
  // Inline function 'kotlin.require' call
77
77
  if (!(byteCount.a2(new (Long())(0, 0)) >= 0)) {
78
78
  var message = 'byteCount: ' + byteCount.toString() + ' < 0';
@@ -80,8 +80,8 @@ function Buffer() {
80
80
  }
81
81
  return this.i1().a2(byteCount) >= 0;
82
82
  }
83
- d2r() {
84
- var tmp0_elvis_lhs = this.s2q_1;
83
+ r2r() {
84
+ var tmp0_elvis_lhs = this.g2r_1;
85
85
  var tmp;
86
86
  if (tmp0_elvis_lhs == null) {
87
87
  throwEof(this, new (Long())(1, 0));
@@ -91,18 +91,18 @@ function Buffer() {
91
91
  var segment = tmp;
92
92
  var segmentSize = segment.i1();
93
93
  if (segmentSize === 0) {
94
- this.l2r();
95
- return this.d2r();
94
+ this.z2r();
95
+ return this.r2r();
96
96
  }
97
- var v = segment.m2r();
98
- this.u2q_1 = this.u2q_1.q3(new (Long())(1, 0));
97
+ var v = segment.a2s();
98
+ this.i2r_1 = this.i2r_1.q3(new (Long())(1, 0));
99
99
  if (segmentSize === 1) {
100
- this.l2r();
100
+ this.z2r();
101
101
  }
102
102
  return v;
103
103
  }
104
- n2r() {
105
- var tmp0_elvis_lhs = this.s2q_1;
104
+ b2s() {
105
+ var tmp0_elvis_lhs = this.g2r_1;
106
106
  var tmp;
107
107
  if (tmp0_elvis_lhs == null) {
108
108
  throwEof(this, new (Long())(2, 0));
@@ -112,26 +112,26 @@ function Buffer() {
112
112
  var segment = tmp;
113
113
  var segmentSize = segment.i1();
114
114
  if (segmentSize < 2) {
115
- this.b2r(new (Long())(2, 0));
115
+ this.p2r(new (Long())(2, 0));
116
116
  if (segmentSize === 0) {
117
- this.l2r();
118
- return this.n2r();
117
+ this.z2r();
118
+ return this.b2s();
119
119
  }
120
120
  // Inline function 'kotlinx.io.and' call
121
- var tmp_0 = (this.d2r() & 255) << 8;
121
+ var tmp_0 = (this.r2r() & 255) << 8;
122
122
  // Inline function 'kotlinx.io.and' call
123
- var tmp$ret$1 = this.d2r() & 255;
123
+ var tmp$ret$1 = this.r2r() & 255;
124
124
  return toShort(tmp_0 | tmp$ret$1);
125
125
  }
126
- var v = segment.o2r();
127
- this.u2q_1 = this.u2q_1.q3(new (Long())(2, 0));
126
+ var v = segment.c2s();
127
+ this.i2r_1 = this.i2r_1.q3(new (Long())(2, 0));
128
128
  if (segmentSize === 2) {
129
- this.l2r();
129
+ this.z2r();
130
130
  }
131
131
  return v;
132
132
  }
133
- p2r() {
134
- var tmp0_elvis_lhs = this.s2q_1;
133
+ d2s() {
134
+ var tmp0_elvis_lhs = this.g2r_1;
135
135
  var tmp;
136
136
  if (tmp0_elvis_lhs == null) {
137
137
  throwEof(this, new (Long())(4, 0));
@@ -141,22 +141,22 @@ function Buffer() {
141
141
  var segment = tmp;
142
142
  var segmentSize = segment.i1();
143
143
  if (segmentSize < 4) {
144
- this.b2r(new (Long())(4, 0));
144
+ this.p2r(new (Long())(4, 0));
145
145
  if (segmentSize === 0) {
146
- this.l2r();
147
- return this.p2r();
146
+ this.z2r();
147
+ return this.d2s();
148
148
  }
149
- return this.n2r() << 16 | this.n2r() & 65535;
149
+ return this.b2s() << 16 | this.b2s() & 65535;
150
150
  }
151
- var v = segment.q2r();
152
- this.u2q_1 = this.u2q_1.q3(new (Long())(4, 0));
151
+ var v = segment.e2s();
152
+ this.i2r_1 = this.i2r_1.q3(new (Long())(4, 0));
153
153
  if (segmentSize === 4) {
154
- this.l2r();
154
+ this.z2r();
155
155
  }
156
156
  return v;
157
157
  }
158
- r2r() {
159
- var tmp0_elvis_lhs = this.s2q_1;
158
+ f2s() {
159
+ var tmp0_elvis_lhs = this.g2r_1;
160
160
  var tmp;
161
161
  if (tmp0_elvis_lhs == null) {
162
162
  throwEof(this, new (Long())(8, 0));
@@ -166,116 +166,116 @@ function Buffer() {
166
166
  var segment = tmp;
167
167
  var segmentSize = segment.i1();
168
168
  if (segmentSize < 8) {
169
- this.b2r(new (Long())(8, 0));
169
+ this.p2r(new (Long())(8, 0));
170
170
  if (segmentSize === 0) {
171
- this.l2r();
172
- return this.r2r();
171
+ this.z2r();
172
+ return this.f2s();
173
173
  }
174
- return toLong(this.p2r()).z3(32).d4(toLong(this.p2r()).c4(new (Long())(-1, 0)));
174
+ return toLong(this.d2s()).z3(32).d4(toLong(this.d2s()).c4(new (Long())(-1, 0)));
175
175
  }
176
- var v = segment.s2r();
177
- this.u2q_1 = this.u2q_1.q3(new (Long())(8, 0));
176
+ var v = segment.g2s();
177
+ this.i2r_1 = this.i2r_1.q3(new (Long())(8, 0));
178
178
  if (segmentSize === 8) {
179
- this.l2r();
179
+ this.z2r();
180
180
  }
181
181
  return v;
182
182
  }
183
- t2r() {
183
+ h2s() {
184
184
  return Unit_instance;
185
185
  }
186
- u2r(out, startIndex, endIndex) {
186
+ i2s(out, startIndex, endIndex) {
187
187
  checkBounds(this.i1(), startIndex, endIndex);
188
188
  if (startIndex.equals(endIndex))
189
189
  return Unit_instance;
190
190
  var currentOffset = startIndex;
191
191
  var remainingByteCount = endIndex.q3(startIndex);
192
- out.u2q_1 = out.u2q_1.p3(remainingByteCount);
193
- var s = this.s2q_1;
194
- while (currentOffset.a2(toLong(ensureNotNull(s).g2r_1 - s.f2r_1 | 0)) >= 0) {
195
- currentOffset = currentOffset.q3(toLong(s.g2r_1 - s.f2r_1 | 0));
196
- s = s.j2r_1;
192
+ out.i2r_1 = out.i2r_1.p3(remainingByteCount);
193
+ var s = this.g2r_1;
194
+ while (currentOffset.a2(toLong(ensureNotNull(s).u2r_1 - s.t2r_1 | 0)) >= 0) {
195
+ currentOffset = currentOffset.q3(toLong(s.u2r_1 - s.t2r_1 | 0));
196
+ s = s.x2r_1;
197
197
  }
198
198
  while (remainingByteCount.a2(new (Long())(0, 0)) > 0) {
199
- var copy = ensureNotNull(s).v2r();
200
- copy.f2r_1 = copy.f2r_1 + currentOffset.c2() | 0;
199
+ var copy = ensureNotNull(s).j2s();
200
+ copy.t2r_1 = copy.t2r_1 + currentOffset.c2() | 0;
201
201
  var tmp = copy;
202
- var tmp0 = copy.f2r_1 + remainingByteCount.c2() | 0;
202
+ var tmp0 = copy.t2r_1 + remainingByteCount.c2() | 0;
203
203
  // Inline function 'kotlin.comparisons.minOf' call
204
- var b = copy.g2r_1;
205
- tmp.g2r_1 = Math.min(tmp0, b);
204
+ var b = copy.u2r_1;
205
+ tmp.u2r_1 = Math.min(tmp0, b);
206
206
  // Inline function 'kotlinx.io.Buffer.pushSegment' call
207
- if (out.s2q_1 == null) {
208
- out.s2q_1 = copy;
209
- out.t2q_1 = copy;
207
+ if (out.g2r_1 == null) {
208
+ out.g2r_1 = copy;
209
+ out.h2r_1 = copy;
210
210
  } else if (false) {
211
- out.t2q_1 = ensureNotNull(out.t2q_1).w2r(copy).x2r();
212
- if (ensureNotNull(out.t2q_1).k2r_1 == null) {
213
- out.s2q_1 = out.t2q_1;
211
+ out.h2r_1 = ensureNotNull(out.h2r_1).k2s(copy).l2s();
212
+ if (ensureNotNull(out.h2r_1).y2r_1 == null) {
213
+ out.g2r_1 = out.h2r_1;
214
214
  }
215
215
  } else {
216
- out.t2q_1 = ensureNotNull(out.t2q_1).w2r(copy);
216
+ out.h2r_1 = ensureNotNull(out.h2r_1).k2s(copy);
217
217
  }
218
- remainingByteCount = remainingByteCount.q3(toLong(copy.g2r_1 - copy.f2r_1 | 0));
218
+ remainingByteCount = remainingByteCount.q3(toLong(copy.u2r_1 - copy.t2r_1 | 0));
219
219
  currentOffset = new (Long())(0, 0);
220
- s = s.j2r_1;
220
+ s = s.x2r_1;
221
221
  }
222
222
  }
223
- y2r() {
223
+ m2s() {
224
224
  var result = this.i1();
225
225
  if (result.equals(new (Long())(0, 0)))
226
226
  return new (Long())(0, 0);
227
- var tail = ensureNotNull(this.t2q_1);
228
- if (tail.g2r_1 < 8192 && tail.i2r_1) {
229
- result = result.q3(toLong(tail.g2r_1 - tail.f2r_1 | 0));
227
+ var tail = ensureNotNull(this.h2r_1);
228
+ if (tail.u2r_1 < 8192 && tail.w2r_1) {
229
+ result = result.q3(toLong(tail.u2r_1 - tail.t2r_1 | 0));
230
230
  }
231
231
  return result;
232
232
  }
233
- z2r(position) {
233
+ n2s(position) {
234
234
  if (position.a2(new (Long())(0, 0)) < 0 || position.a2(this.i1()) >= 0) {
235
235
  throw IndexOutOfBoundsException().hf('position (' + position.toString() + ') is not within the range [0..size(' + this.i1().toString() + '))');
236
236
  }
237
237
  if (position.equals(new (Long())(0, 0))) {
238
- return ensureNotNull(this.s2q_1).a2s(0);
238
+ return ensureNotNull(this.g2r_1).o2s(0);
239
239
  }
240
240
  // Inline function 'kotlinx.io.seek' call
241
- if (this.s2q_1 == null) {
241
+ if (this.g2r_1 == null) {
242
242
  var offset = new (Long())(-1, -1);
243
- return ensureNotNull(null).a2s(position.q3(offset).c2());
243
+ return ensureNotNull(null).o2s(position.q3(offset).c2());
244
244
  }
245
245
  if (this.i1().q3(position).a2(position) < 0) {
246
- var s = this.t2q_1;
246
+ var s = this.h2r_1;
247
247
  var offset_0 = this.i1();
248
248
  $l$loop: while (!(s == null) && offset_0.a2(position) > 0) {
249
- offset_0 = offset_0.q3(toLong(s.g2r_1 - s.f2r_1 | 0));
249
+ offset_0 = offset_0.q3(toLong(s.u2r_1 - s.t2r_1 | 0));
250
250
  if (offset_0.a2(position) <= 0)
251
251
  break $l$loop;
252
- s = s.k2r_1;
252
+ s = s.y2r_1;
253
253
  }
254
254
  var tmp0 = s;
255
255
  var offset_1 = offset_0;
256
- return ensureNotNull(tmp0).a2s(position.q3(offset_1).c2());
256
+ return ensureNotNull(tmp0).o2s(position.q3(offset_1).c2());
257
257
  } else {
258
- var s_0 = this.s2q_1;
258
+ var s_0 = this.g2r_1;
259
259
  var offset_2 = new (Long())(0, 0);
260
260
  $l$loop_0: while (!(s_0 == null)) {
261
261
  var tmp0_0 = offset_2;
262
262
  // Inline function 'kotlin.Long.plus' call
263
- var other = s_0.g2r_1 - s_0.f2r_1 | 0;
263
+ var other = s_0.u2r_1 - s_0.t2r_1 | 0;
264
264
  var nextOffset = tmp0_0.p3(toLong(other));
265
265
  if (nextOffset.a2(position) > 0)
266
266
  break $l$loop_0;
267
- s_0 = s_0.j2r_1;
267
+ s_0 = s_0.x2r_1;
268
268
  offset_2 = nextOffset;
269
269
  }
270
270
  var tmp0_1 = s_0;
271
271
  var offset_3 = offset_2;
272
- return ensureNotNull(tmp0_1).a2s(position.q3(offset_3).c2());
272
+ return ensureNotNull(tmp0_1).o2s(position.q3(offset_3).c2());
273
273
  }
274
274
  }
275
275
  z2() {
276
- return this.b2s(this.i1());
276
+ return this.p2s(this.i1());
277
277
  }
278
- b2s(byteCount) {
278
+ p2s(byteCount) {
279
279
  // Inline function 'kotlinx.io.checkByteCount' call
280
280
  // Inline function 'kotlin.require' call
281
281
  if (!(byteCount.a2(new (Long())(0, 0)) >= 0)) {
@@ -284,33 +284,33 @@ function Buffer() {
284
284
  }
285
285
  var remainingByteCount = byteCount;
286
286
  while (remainingByteCount.a2(new (Long())(0, 0)) > 0) {
287
- var tmp0_elvis_lhs = this.s2q_1;
287
+ var tmp0_elvis_lhs = this.g2r_1;
288
288
  var tmp;
289
289
  if (tmp0_elvis_lhs == null) {
290
- throw EOFException().y2q('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
290
+ throw EOFException().m2r('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
291
291
  } else {
292
292
  tmp = tmp0_elvis_lhs;
293
293
  }
294
294
  var head = tmp;
295
295
  var tmp0 = remainingByteCount;
296
296
  // Inline function 'kotlinx.io.minOf' call
297
- var b = head.g2r_1 - head.f2r_1 | 0;
297
+ var b = head.u2r_1 - head.t2r_1 | 0;
298
298
  // Inline function 'kotlin.comparisons.minOf' call
299
299
  var b_0 = toLong(b);
300
300
  var toSkip = (tmp0.a2(b_0) <= 0 ? tmp0 : b_0).c2();
301
- this.u2q_1 = this.u2q_1.q3(toLong(toSkip));
301
+ this.i2r_1 = this.i2r_1.q3(toLong(toSkip));
302
302
  remainingByteCount = remainingByteCount.q3(toLong(toSkip));
303
- head.f2r_1 = head.f2r_1 + toSkip | 0;
304
- if (head.f2r_1 === head.g2r_1) {
305
- this.l2r();
303
+ head.t2r_1 = head.t2r_1 + toSkip | 0;
304
+ if (head.t2r_1 === head.u2r_1) {
305
+ this.z2r();
306
306
  }
307
307
  }
308
308
  }
309
- c2s(sink, startIndex, endIndex) {
309
+ q2s(sink, startIndex, endIndex) {
310
310
  // Inline function 'kotlinx.io.checkBounds' call
311
311
  var size = sink.length;
312
312
  checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
313
- var tmp0_elvis_lhs = this.s2q_1;
313
+ var tmp0_elvis_lhs = this.g2r_1;
314
314
  var tmp;
315
315
  if (tmp0_elvis_lhs == null) {
316
316
  return -1;
@@ -322,14 +322,14 @@ function Buffer() {
322
322
  // Inline function 'kotlin.comparisons.minOf' call
323
323
  var b = s.i1();
324
324
  var toCopy = Math.min(tmp0, b);
325
- s.d2s(sink, startIndex, startIndex + toCopy | 0);
326
- this.u2q_1 = this.u2q_1.q3(toLong(toCopy));
325
+ s.r2s(sink, startIndex, startIndex + toCopy | 0);
326
+ this.i2r_1 = this.i2r_1.q3(toLong(toCopy));
327
327
  if (isEmpty(s)) {
328
- this.l2r();
328
+ this.z2r();
329
329
  }
330
330
  return toCopy;
331
331
  }
332
- e2s(sink, byteCount) {
332
+ s2s(sink, byteCount) {
333
333
  // Inline function 'kotlinx.io.checkByteCount' call
334
334
  // Inline function 'kotlin.require' call
335
335
  if (!(byteCount.a2(new (Long())(0, 0)) >= 0)) {
@@ -339,10 +339,10 @@ function Buffer() {
339
339
  if (this.i1().equals(new (Long())(0, 0)))
340
340
  return new (Long())(-1, -1);
341
341
  var bytesWritten = byteCount.a2(this.i1()) > 0 ? this.i1() : byteCount;
342
- sink.f2s(this, bytesWritten);
342
+ sink.t2s(this, bytesWritten);
343
343
  return bytesWritten;
344
344
  }
345
- g2s(sink, byteCount) {
345
+ u2s(sink, byteCount) {
346
346
  // Inline function 'kotlinx.io.checkByteCount' call
347
347
  // Inline function 'kotlin.require' call
348
348
  if (!(byteCount.a2(new (Long())(0, 0)) >= 0)) {
@@ -350,62 +350,62 @@ function Buffer() {
350
350
  throw IllegalArgumentException().u(toString(message));
351
351
  }
352
352
  if (this.i1().a2(byteCount) < 0) {
353
- sink.f2s(this, this.i1());
354
- throw EOFException().y2q('Buffer exhausted before writing ' + byteCount.toString() + ' bytes. Only ' + this.i1().toString() + ' bytes were written.');
353
+ sink.t2s(this, this.i1());
354
+ throw EOFException().m2r('Buffer exhausted before writing ' + byteCount.toString() + ' bytes. Only ' + this.i1().toString() + ' bytes were written.');
355
355
  }
356
- sink.f2s(this, byteCount);
356
+ sink.t2s(this, byteCount);
357
357
  }
358
- h2s(sink) {
358
+ v2s(sink) {
359
359
  var byteCount = this.i1();
360
360
  if (byteCount.a2(new (Long())(0, 0)) > 0) {
361
- sink.f2s(this, byteCount);
361
+ sink.t2s(this, byteCount);
362
362
  }
363
363
  return byteCount;
364
364
  }
365
- i2s() {
365
+ w2s() {
366
366
  return buffered(new (PeekSource())(this));
367
367
  }
368
- j2s(minimumCapacity) {
368
+ x2s(minimumCapacity) {
369
369
  // Inline function 'kotlin.require' call
370
370
  if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
371
371
  var message = 'unexpected capacity (' + minimumCapacity + '), should be in range [1, 8192]';
372
372
  throw IllegalArgumentException().u(toString(message));
373
373
  }
374
- if (this.t2q_1 == null) {
375
- var result = SegmentPool_instance.m2s();
376
- this.s2q_1 = result;
377
- this.t2q_1 = result;
374
+ if (this.h2r_1 == null) {
375
+ var result = SegmentPool_instance.a2t();
376
+ this.g2r_1 = result;
377
+ this.h2r_1 = result;
378
378
  return result;
379
379
  }
380
- var t = ensureNotNull(this.t2q_1);
381
- if ((t.g2r_1 + minimumCapacity | 0) > 8192 || !t.i2r_1) {
382
- var newTail = t.w2r(SegmentPool_instance.m2s());
383
- this.t2q_1 = newTail;
380
+ var t = ensureNotNull(this.h2r_1);
381
+ if ((t.u2r_1 + minimumCapacity | 0) > 8192 || !t.w2r_1) {
382
+ var newTail = t.k2s(SegmentPool_instance.a2t());
383
+ this.h2r_1 = newTail;
384
384
  return newTail;
385
385
  }
386
386
  return t;
387
387
  }
388
- n2s(source, startIndex, endIndex) {
388
+ b2t(source, startIndex, endIndex) {
389
389
  // Inline function 'kotlinx.io.checkBounds' call
390
390
  var size = source.length;
391
391
  checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
392
392
  var currentOffset = startIndex;
393
393
  while (currentOffset < endIndex) {
394
- var tail = this.j2s(1);
394
+ var tail = this.x2s(1);
395
395
  var tmp0 = endIndex - currentOffset | 0;
396
396
  // Inline function 'kotlin.comparisons.minOf' call
397
- var b = tail.o2s();
397
+ var b = tail.c2t();
398
398
  var toCopy = Math.min(tmp0, b);
399
- tail.p2s(source, currentOffset, currentOffset + toCopy | 0);
399
+ tail.d2t(source, currentOffset, currentOffset + toCopy | 0);
400
400
  currentOffset = currentOffset + toCopy | 0;
401
401
  }
402
402
  var tmp = this;
403
- var tmp0_0 = this.u2q_1;
403
+ var tmp0_0 = this.i2r_1;
404
404
  // Inline function 'kotlin.Long.plus' call
405
405
  var other = endIndex - startIndex | 0;
406
- tmp.u2q_1 = tmp0_0.p3(toLong(other));
406
+ tmp.i2r_1 = tmp0_0.p3(toLong(other));
407
407
  }
408
- r2s(source, byteCount) {
408
+ f2t(source, byteCount) {
409
409
  // Inline function 'kotlinx.io.checkByteCount' call
410
410
  // Inline function 'kotlin.require' call
411
411
  if (!(byteCount.a2(new (Long())(0, 0)) >= 0)) {
@@ -414,108 +414,108 @@ function Buffer() {
414
414
  }
415
415
  var remainingByteCount = byteCount;
416
416
  while (remainingByteCount.a2(new (Long())(0, 0)) > 0) {
417
- var read = source.e2s(this, remainingByteCount);
417
+ var read = source.s2s(this, remainingByteCount);
418
418
  if (read.equals(new (Long())(-1, -1))) {
419
- throw EOFException().y2q('Source exhausted before reading ' + byteCount.toString() + ' bytes. ' + ('Only ' + byteCount.q3(remainingByteCount).toString() + ' were read.'));
419
+ throw EOFException().m2r('Source exhausted before reading ' + byteCount.toString() + ' bytes. ' + ('Only ' + byteCount.q3(remainingByteCount).toString() + ' were read.'));
420
420
  }
421
421
  remainingByteCount = remainingByteCount.q3(read);
422
422
  }
423
423
  }
424
- f2s(source, byteCount) {
424
+ t2s(source, byteCount) {
425
425
  // Inline function 'kotlin.require' call
426
426
  if (!!(source === this)) {
427
427
  var message = 'source == this';
428
428
  throw IllegalArgumentException().u(toString(message));
429
429
  }
430
- checkOffsetAndCount(source.u2q_1, new (Long())(0, 0), byteCount);
430
+ checkOffsetAndCount(source.i2r_1, new (Long())(0, 0), byteCount);
431
431
  var remainingByteCount = byteCount;
432
432
  while (remainingByteCount.a2(new (Long())(0, 0)) > 0) {
433
- if (remainingByteCount.a2(toLong(ensureNotNull(source.s2q_1).i1())) < 0) {
434
- var tail = this.t2q_1;
433
+ if (remainingByteCount.a2(toLong(ensureNotNull(source.g2r_1).i1())) < 0) {
434
+ var tail = this.h2r_1;
435
435
  var tmp;
436
- if (!(tail == null) && tail.i2r_1) {
436
+ if (!(tail == null) && tail.w2r_1) {
437
437
  var tmp0 = remainingByteCount;
438
438
  // Inline function 'kotlin.Long.plus' call
439
- var other = tail.g2r_1;
439
+ var other = tail.u2r_1;
440
440
  var tmp0_0 = tmp0.p3(toLong(other));
441
441
  // Inline function 'kotlin.Long.minus' call
442
- var other_0 = tail.s2s() ? 0 : tail.f2r_1;
442
+ var other_0 = tail.g2t() ? 0 : tail.t2r_1;
443
443
  tmp = tmp0_0.q3(toLong(other_0)).a2(new (Long())(8192, 0)) <= 0;
444
444
  } else {
445
445
  tmp = false;
446
446
  }
447
447
  if (tmp) {
448
- ensureNotNull(source.s2q_1).u2s(tail, remainingByteCount.c2());
449
- source.u2q_1 = source.u2q_1.q3(remainingByteCount);
450
- this.u2q_1 = this.u2q_1.p3(remainingByteCount);
448
+ ensureNotNull(source.g2r_1).i2t(tail, remainingByteCount.c2());
449
+ source.i2r_1 = source.i2r_1.q3(remainingByteCount);
450
+ this.i2r_1 = this.i2r_1.p3(remainingByteCount);
451
451
  return Unit_instance;
452
452
  } else {
453
- source.s2q_1 = ensureNotNull(source.s2q_1).t2s(remainingByteCount.c2());
453
+ source.g2r_1 = ensureNotNull(source.g2r_1).h2t(remainingByteCount.c2());
454
454
  }
455
455
  }
456
- var segmentToMove = ensureNotNull(source.s2q_1);
456
+ var segmentToMove = ensureNotNull(source.g2r_1);
457
457
  var movedByteCount = toLong(segmentToMove.i1());
458
- source.s2q_1 = segmentToMove.v2s();
459
- if (source.s2q_1 == null) {
460
- source.t2q_1 = null;
458
+ source.g2r_1 = segmentToMove.j2t();
459
+ if (source.g2r_1 == null) {
460
+ source.h2r_1 = null;
461
461
  }
462
462
  // Inline function 'kotlinx.io.Buffer.pushSegment' call
463
- if (this.s2q_1 == null) {
464
- this.s2q_1 = segmentToMove;
465
- this.t2q_1 = segmentToMove;
463
+ if (this.g2r_1 == null) {
464
+ this.g2r_1 = segmentToMove;
465
+ this.h2r_1 = segmentToMove;
466
466
  } else if (true) {
467
- this.t2q_1 = ensureNotNull(this.t2q_1).w2r(segmentToMove).x2r();
468
- if (ensureNotNull(this.t2q_1).k2r_1 == null) {
469
- this.s2q_1 = this.t2q_1;
467
+ this.h2r_1 = ensureNotNull(this.h2r_1).k2s(segmentToMove).l2s();
468
+ if (ensureNotNull(this.h2r_1).y2r_1 == null) {
469
+ this.g2r_1 = this.h2r_1;
470
470
  }
471
471
  } else {
472
- this.t2q_1 = ensureNotNull(this.t2q_1).w2r(segmentToMove);
472
+ this.h2r_1 = ensureNotNull(this.h2r_1).k2s(segmentToMove);
473
473
  }
474
- source.u2q_1 = source.u2q_1.q3(movedByteCount);
475
- this.u2q_1 = this.u2q_1.p3(movedByteCount);
474
+ source.i2r_1 = source.i2r_1.q3(movedByteCount);
475
+ this.i2r_1 = this.i2r_1.p3(movedByteCount);
476
476
  remainingByteCount = remainingByteCount.q3(movedByteCount);
477
477
  }
478
478
  }
479
- w2s(source) {
479
+ k2t(source) {
480
480
  var totalBytesRead = new (Long())(0, 0);
481
481
  $l$loop: while (true) {
482
- var readCount = source.e2s(this, new (Long())(8192, 0));
482
+ var readCount = source.s2s(this, new (Long())(8192, 0));
483
483
  if (readCount.equals(new (Long())(-1, -1)))
484
484
  break $l$loop;
485
485
  totalBytesRead = totalBytesRead.p3(readCount);
486
486
  }
487
487
  return totalBytesRead;
488
488
  }
489
- x2s(byte) {
490
- this.j2s(1).y2s(byte);
491
- this.u2q_1 = this.u2q_1.p3(new (Long())(1, 0));
489
+ l2t(byte) {
490
+ this.x2s(1).m2t(byte);
491
+ this.i2r_1 = this.i2r_1.p3(new (Long())(1, 0));
492
492
  }
493
- z2s(short) {
494
- this.j2s(2).a2t(short);
495
- this.u2q_1 = this.u2q_1.p3(new (Long())(2, 0));
493
+ n2t(short) {
494
+ this.x2s(2).o2t(short);
495
+ this.i2r_1 = this.i2r_1.p3(new (Long())(2, 0));
496
496
  }
497
- b2t(int) {
498
- this.j2s(4).c2t(int);
499
- this.u2q_1 = this.u2q_1.p3(new (Long())(4, 0));
497
+ p2t(int) {
498
+ this.x2s(4).q2t(int);
499
+ this.i2r_1 = this.i2r_1.p3(new (Long())(4, 0));
500
500
  }
501
- d2t(long) {
502
- this.j2s(8).e2t(long);
503
- this.u2q_1 = this.u2q_1.p3(new (Long())(8, 0));
501
+ r2t(long) {
502
+ this.x2s(8).s2t(long);
503
+ this.i2r_1 = this.i2r_1.p3(new (Long())(8, 0));
504
504
  }
505
505
  g1i() {
506
506
  var result = new (Buffer())();
507
507
  if (this.i1().equals(new (Long())(0, 0)))
508
508
  return result;
509
- var head = ensureNotNull(this.s2q_1);
510
- var headCopy = head.v2r();
511
- result.s2q_1 = headCopy;
512
- result.t2q_1 = headCopy;
513
- var s = head.j2r_1;
509
+ var head = ensureNotNull(this.g2r_1);
510
+ var headCopy = head.j2s();
511
+ result.g2r_1 = headCopy;
512
+ result.h2r_1 = headCopy;
513
+ var s = head.x2r_1;
514
514
  while (!(s == null)) {
515
- result.t2q_1 = ensureNotNull(result.t2q_1).w2r(s.v2r());
516
- s = s.j2r_1;
515
+ result.h2r_1 = ensureNotNull(result.h2r_1).k2s(s.j2s());
516
+ s = s.x2r_1;
517
517
  }
518
- result.u2q_1 = this.i1();
518
+ result.i2r_1 = this.i1();
519
519
  return result;
520
520
  }
521
521
  v5() {
@@ -533,7 +533,7 @@ function Buffer() {
533
533
  var builder = StringBuilder().mb(imul(len, 2) + (this.i1().a2(toLong(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
534
534
  var bytesWritten = 0;
535
535
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
536
- var curr = this.s2q_1;
536
+ var curr = this.g2r_1;
537
537
  while (!(curr == null)) {
538
538
  var tmp0 = get_SegmentReadContextImpl();
539
539
  var segment = curr;
@@ -541,7 +541,7 @@ function Buffer() {
541
541
  while (bytesWritten < len && idx < segment.i1()) {
542
542
  var _unary__edvuaz = idx;
543
543
  idx = _unary__edvuaz + 1 | 0;
544
- var b_0 = tmp0.f2t(segment, _unary__edvuaz);
544
+ var b_0 = tmp0.t2t(segment, _unary__edvuaz);
545
545
  bytesWritten = bytesWritten + 1 | 0;
546
546
  var tmp = get_HEX_DIGIT_CHARS();
547
547
  // Inline function 'kotlinx.io.shr' call
@@ -552,39 +552,39 @@ function Buffer() {
552
552
  var tmp$ret$3 = b_0 & 15;
553
553
  tmp_0.kb(tmp_1[tmp$ret$3]);
554
554
  }
555
- curr = curr.j2r_1;
555
+ curr = curr.x2r_1;
556
556
  }
557
557
  if (this.i1().a2(toLong(maxPrintableBytes)) > 0) {
558
558
  builder.kb(_Char___init__impl__6a9atx(8230));
559
559
  }
560
560
  return 'Buffer(size=' + this.i1().toString() + ' hex=' + builder.toString() + ')';
561
561
  }
562
- l2r() {
563
- var oldHead = ensureNotNull(this.s2q_1);
564
- var nextHead = oldHead.j2r_1;
565
- this.s2q_1 = nextHead;
562
+ z2r() {
563
+ var oldHead = ensureNotNull(this.g2r_1);
564
+ var nextHead = oldHead.x2r_1;
565
+ this.g2r_1 = nextHead;
566
566
  if (nextHead == null) {
567
- this.t2q_1 = null;
567
+ this.h2r_1 = null;
568
568
  } else {
569
- nextHead.k2r_1 = null;
569
+ nextHead.y2r_1 = null;
570
570
  }
571
- oldHead.j2r_1 = null;
572
- SegmentPool_instance.g2t(oldHead);
571
+ oldHead.x2r_1 = null;
572
+ SegmentPool_instance.u2t(oldHead);
573
573
  }
574
- h2t() {
575
- var oldTail = ensureNotNull(this.t2q_1);
576
- var newTail = oldTail.k2r_1;
577
- this.t2q_1 = newTail;
574
+ v2t() {
575
+ var oldTail = ensureNotNull(this.h2r_1);
576
+ var newTail = oldTail.y2r_1;
577
+ this.h2r_1 = newTail;
578
578
  if (newTail == null) {
579
- this.s2q_1 = null;
579
+ this.g2r_1 = null;
580
580
  } else {
581
- newTail.j2r_1 = null;
581
+ newTail.x2r_1 = null;
582
582
  }
583
- oldTail.k2r_1 = null;
584
- SegmentPool_instance.g2t(oldTail);
583
+ oldTail.y2r_1 = null;
584
+ SegmentPool_instance.u2t(oldTail);
585
585
  }
586
586
  }
587
- protoOf($).q2s = write$default;
587
+ protoOf($).e2t = write$default;
588
588
  initMetadataForClass($, 'Buffer', Buffer, VOID, [Source(), Sink()]);
589
589
  BufferClass = $;
590
590
  }