@attocash/commons-js 5.0.0 → 5.1.0

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 (282) 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-remote/cash/atto/commons/node/AttoNodeClient.mjs +812 -319
  40. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs.map +1 -1
  41. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs +226 -76
  42. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs.map +1 -1
  43. package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +3 -3
  44. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +50 -50
  45. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.mjs +34 -34
  46. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +56 -56
  47. package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +6 -6
  48. package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
  49. package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs +4 -4
  50. package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs +1 -1
  51. package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerFactory.mjs +1 -1
  52. package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerNameResolver.mjs +1 -1
  53. package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +1 -1
  54. package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +7 -7
  55. package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +76 -76
  56. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +133 -28
  57. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs.map +1 -1
  58. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs +28 -0
  59. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs.map +1 -0
  60. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +1 -1
  61. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +2 -2
  62. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +4 -4
  63. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +2 -2
  64. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +3 -3
  65. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +3 -3
  66. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
  67. package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +5 -5
  68. package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +39 -39
  69. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +34 -34
  70. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
  71. package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
  72. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +189 -189
  73. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
  74. package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
  75. package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
  76. package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +56 -56
  77. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +149 -149
  78. package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
  79. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
  80. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
  81. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
  82. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +50 -50
  83. package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
  84. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +37 -37
  85. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
  86. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +59 -59
  87. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +70 -70
  88. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
  89. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
  90. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
  91. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +71 -71
  92. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
  93. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +13 -13
  94. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +10 -10
  95. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +36 -36
  96. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +7 -7
  97. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +1 -1
  98. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
  99. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +84 -84
  100. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +2 -2
  101. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +8 -8
  102. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +141 -141
  103. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +98 -98
  104. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
  105. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +151 -151
  106. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +3 -3
  107. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOCommon.mjs +3 -3
  108. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngine.mjs +59 -59
  109. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngineConfig.mjs +11 -11
  110. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionFactory.mjs +22 -22
  111. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionPipeline.nonJvm.mjs +3 -3
  112. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Endpoint.mjs +219 -219
  113. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/EngineTasks.mjs +15 -15
  114. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.mjs +2 -2
  115. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/utils.mjs +241 -241
  116. package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +133 -133
  117. package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
  118. package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +85 -85
  119. package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +36 -36
  120. package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
  121. package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +41 -41
  122. package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +54 -54
  123. package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +51 -51
  124. package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +3 -3
  125. package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +27 -27
  126. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +60 -60
  127. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +18 -18
  128. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
  129. package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
  130. package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +20 -20
  131. package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
  132. package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +60 -60
  133. package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +40 -40
  134. package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +21 -21
  135. package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +3 -3
  136. package/ktor-ktor-client-core/io/ktor/client/network/sockets/TimeoutExceptions.nonJvm.mjs +3 -3
  137. package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +61 -61
  138. package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +45 -45
  139. package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +125 -125
  140. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +138 -138
  141. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
  142. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +70 -70
  143. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +53 -53
  144. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +42 -42
  145. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +63 -63
  146. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +98 -98
  147. package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +33 -33
  148. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
  149. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +11 -11
  150. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +11 -11
  151. package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +35 -35
  152. package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +13 -13
  153. package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +45 -45
  154. package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +65 -65
  155. package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +4 -4
  156. package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +17 -17
  157. package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +64 -64
  158. package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
  159. package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +1 -1
  160. package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +24 -24
  161. package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +18 -18
  162. package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +25 -25
  163. package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +52 -52
  164. package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +35 -35
  165. package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
  166. package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
  167. package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +5 -5
  168. package/ktor-ktor-events/io/ktor/events/Events.mjs +5 -5
  169. package/ktor-ktor-http/io/ktor/http/Codecs.mjs +12 -12
  170. package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +89 -89
  171. package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +18 -18
  172. package/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
  173. package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +31 -31
  174. package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +114 -114
  175. package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +4 -4
  176. package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
  177. package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +18 -18
  178. package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +66 -66
  179. package/ktor-ktor-http/io/ktor/http/Parameters.mjs +9 -9
  180. package/ktor-ktor-http/io/ktor/http/Query.mjs +3 -3
  181. package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +58 -58
  182. package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
  183. package/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
  184. package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +20 -20
  185. package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +25 -25
  186. package/ktor-ktor-http/io/ktor/http/Url.mjs +72 -72
  187. package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +25 -25
  188. package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +9 -9
  189. package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +8 -8
  190. package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +12 -12
  191. package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +4 -4
  192. package/ktor-ktor-http-cio/io/ktor/http/cio/ChunkedTransferEncoding.mjs +106 -106
  193. package/ktor-ktor-http-cio/io/ktor/http/cio/ConnectionOptions.mjs +31 -31
  194. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpBody.mjs +15 -15
  195. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +100 -100
  196. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +69 -69
  197. package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +113 -113
  198. package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponse.mjs +9 -9
  199. package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponseBuilderJs.mjs +21 -21
  200. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +17 -17
  201. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +70 -70
  202. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
  203. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +21 -21
  204. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
  205. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
  206. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Tokenizer.mjs +7 -7
  207. package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +141 -141
  208. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
  209. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +75 -75
  210. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelUtils.mjs +1 -1
  211. package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
  212. package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +230 -230
  213. package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +11 -11
  214. package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +72 -72
  215. package/ktor-ktor-io/io/ktor/utils/io/CloseHookByteWriteChannel.mjs +14 -14
  216. package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
  217. package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +26 -26
  218. package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
  219. package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
  220. package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
  221. package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +36 -36
  222. package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +4 -4
  223. package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
  224. package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
  225. package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
  226. package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
  227. package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +3 -3
  228. package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +5 -5
  229. package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
  230. package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
  231. package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
  232. package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +27 -27
  233. package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +1 -1
  234. package/ktor-ktor-network/io/ktor/network/sockets/Builders.mjs +5 -5
  235. package/ktor-ktor-network/io/ktor/network/sockets/SocketAddress.nonJvm.mjs +9 -9
  236. package/ktor-ktor-network/io/ktor/network/sockets/SocketBase.mjs +50 -50
  237. package/ktor-ktor-network/io/ktor/network/sockets/SocketContext.mjs +104 -104
  238. package/ktor-ktor-network/io/ktor/network/sockets/SocketEngine.jsAndWasmShared.mjs +1 -1
  239. package/ktor-ktor-network/io/ktor/network/sockets/SocketOptions.mjs +30 -30
  240. package/ktor-ktor-network/io/ktor/network/sockets/SocketTimeoutException.mjs +5 -5
  241. package/ktor-ktor-network/io/ktor/network/sockets/Sockets.mjs +5 -5
  242. package/ktor-ktor-network/io/ktor/network/sockets/TcpSocketBuilder.mjs +5 -5
  243. package/ktor-ktor-network/io/ktor/network/sockets/TypeOfService.mjs +5 -5
  244. package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.mjs +7 -7
  245. package/ktor-ktor-network-tls/io/ktor/network/tls/TLSCommon.mjs +9 -9
  246. package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfigBuilder.nonJvm.mjs +1 -1
  247. package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +5 -5
  248. package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +58 -58
  249. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
  250. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +122 -122
  251. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +4 -4
  252. package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +6 -6
  253. package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +11 -11
  254. package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
  255. package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +33 -33
  256. package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +31 -31
  257. package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
  258. package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +83 -83
  259. package/ktor-ktor-utils/io/ktor/util/Text.mjs +7 -7
  260. package/ktor-ktor-utils/io/ktor/util/collections/ConcurrentMapJs.mjs +29 -29
  261. package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
  262. package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +67 -67
  263. package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
  264. package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +6 -6
  265. package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +10 -10
  266. package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +1 -1
  267. package/ktor-ktor-utils/io/ktor/util/network/NetworkAddressJs.mjs +2 -2
  268. package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +32 -32
  269. package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +25 -25
  270. package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +53 -53
  271. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
  272. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
  273. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
  274. package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +49 -49
  275. package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
  276. package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +19 -19
  277. package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +41 -41
  278. package/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs +5 -5
  279. package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +9 -9
  280. package/ktor-ktor-websockets/io/ktor/websocket/ProtocolViolationException.mjs +5 -5
  281. package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocketCommon.mjs +150 -150
  282. package/package.json +1 -1
@@ -31,11 +31,11 @@ function Companion() {
31
31
  if (CompanionClass === VOID) {
32
32
  class $ {
33
33
  constructor() {
34
- this.r2t_1 = 8192;
35
- this.s2t_1 = 1024;
34
+ this.f2u_1 = 8192;
35
+ this.g2u_1 = 1024;
36
36
  }
37
- t2t() {
38
- return Segment().u2t();
37
+ h2u() {
38
+ return Segment().i2u();
39
39
  }
40
40
  }
41
41
  initMetadataForCompanion($);
@@ -48,95 +48,95 @@ function Companion_getInstance() {
48
48
  return Companion_instance;
49
49
  }
50
50
  function init_kotlinx_io_Segment(_this__u8e3s4) {
51
- _this__u8e3s4.f2r_1 = 0;
52
- _this__u8e3s4.g2r_1 = 0;
53
- _this__u8e3s4.h2r_1 = null;
54
- _this__u8e3s4.i2r_1 = false;
55
- _this__u8e3s4.j2r_1 = null;
56
- _this__u8e3s4.k2r_1 = null;
51
+ _this__u8e3s4.t2r_1 = 0;
52
+ _this__u8e3s4.u2r_1 = 0;
53
+ _this__u8e3s4.v2r_1 = null;
54
+ _this__u8e3s4.w2r_1 = false;
55
+ _this__u8e3s4.x2r_1 = null;
56
+ _this__u8e3s4.y2r_1 = null;
57
57
  }
58
58
  var SegmentClass;
59
59
  function Segment() {
60
60
  if (SegmentClass === VOID) {
61
61
  class $ {
62
- s2s() {
63
- var tmp0_safe_receiver = this.h2r_1;
64
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v2t();
62
+ g2t() {
63
+ var tmp0_safe_receiver = this.v2r_1;
64
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j2u();
65
65
  return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
66
66
  }
67
- static u2t() {
67
+ static i2u() {
68
68
  var $this = createThis(this);
69
69
  init_kotlinx_io_Segment($this);
70
- $this.e2r_1 = new Int8Array(8192);
71
- $this.i2r_1 = true;
72
- $this.h2r_1 = null;
70
+ $this.s2r_1 = new Int8Array(8192);
71
+ $this.w2r_1 = true;
72
+ $this.v2r_1 = null;
73
73
  return $this;
74
74
  }
75
- static w2t(data, pos, limit, shareToken, owner) {
75
+ static k2u(data, pos, limit, shareToken, owner) {
76
76
  var $this = createThis(this);
77
77
  init_kotlinx_io_Segment($this);
78
- $this.e2r_1 = data;
79
- $this.f2r_1 = pos;
80
- $this.g2r_1 = limit;
81
- $this.h2r_1 = shareToken;
82
- $this.i2r_1 = owner;
78
+ $this.s2r_1 = data;
79
+ $this.t2r_1 = pos;
80
+ $this.u2r_1 = limit;
81
+ $this.v2r_1 = shareToken;
82
+ $this.w2r_1 = owner;
83
83
  return $this;
84
84
  }
85
- v2r() {
86
- var tmp0_elvis_lhs = this.h2r_1;
85
+ j2s() {
86
+ var tmp0_elvis_lhs = this.v2r_1;
87
87
  var tmp;
88
88
  if (tmp0_elvis_lhs == null) {
89
89
  // Inline function 'kotlin.also' call
90
- var this_0 = SegmentPool_instance.x2t();
91
- this.h2r_1 = this_0;
90
+ var this_0 = SegmentPool_instance.l2u();
91
+ this.v2r_1 = this_0;
92
92
  tmp = this_0;
93
93
  } else {
94
94
  tmp = tmp0_elvis_lhs;
95
95
  }
96
96
  var t = tmp;
97
- var tmp_0 = this.f2r_1;
98
- var tmp_1 = this.g2r_1;
97
+ var tmp_0 = this.t2r_1;
98
+ var tmp_1 = this.u2r_1;
99
99
  // Inline function 'kotlin.also' call
100
- t.y2t();
101
- return Segment().w2t(this.e2r_1, tmp_0, tmp_1, t, false);
100
+ t.m2u();
101
+ return Segment().k2u(this.s2r_1, tmp_0, tmp_1, t, false);
102
102
  }
103
- v2s() {
104
- var result = this.j2r_1;
105
- if (!(this.k2r_1 == null)) {
106
- ensureNotNull(this.k2r_1).j2r_1 = this.j2r_1;
103
+ j2t() {
104
+ var result = this.x2r_1;
105
+ if (!(this.y2r_1 == null)) {
106
+ ensureNotNull(this.y2r_1).x2r_1 = this.x2r_1;
107
107
  }
108
- if (!(this.j2r_1 == null)) {
109
- ensureNotNull(this.j2r_1).k2r_1 = this.k2r_1;
108
+ if (!(this.x2r_1 == null)) {
109
+ ensureNotNull(this.x2r_1).y2r_1 = this.y2r_1;
110
110
  }
111
- this.j2r_1 = null;
112
- this.k2r_1 = null;
111
+ this.x2r_1 = null;
112
+ this.y2r_1 = null;
113
113
  return result;
114
114
  }
115
- w2r(segment) {
116
- segment.k2r_1 = this;
117
- segment.j2r_1 = this.j2r_1;
118
- if (!(this.j2r_1 == null)) {
119
- ensureNotNull(this.j2r_1).k2r_1 = segment;
115
+ k2s(segment) {
116
+ segment.y2r_1 = this;
117
+ segment.x2r_1 = this.x2r_1;
118
+ if (!(this.x2r_1 == null)) {
119
+ ensureNotNull(this.x2r_1).y2r_1 = segment;
120
120
  }
121
- this.j2r_1 = segment;
121
+ this.x2r_1 = segment;
122
122
  return segment;
123
123
  }
124
- t2s(byteCount) {
124
+ h2t(byteCount) {
125
125
  // Inline function 'kotlin.require' call
126
- if (!(byteCount > 0 && byteCount <= (this.g2r_1 - this.f2r_1 | 0))) {
126
+ if (!(byteCount > 0 && byteCount <= (this.u2r_1 - this.t2r_1 | 0))) {
127
127
  var message = 'byteCount out of range';
128
128
  throw IllegalArgumentException().u(toString(message));
129
129
  }
130
130
  var prefix;
131
131
  if (byteCount >= 1024) {
132
- prefix = this.v2r();
132
+ prefix = this.j2s();
133
133
  } else {
134
- prefix = SegmentPool_instance.m2s();
135
- var tmp0 = this.e2r_1;
136
- var tmp2 = prefix.e2r_1;
137
- var tmp4 = this.f2r_1;
134
+ prefix = SegmentPool_instance.a2t();
135
+ var tmp0 = this.s2r_1;
136
+ var tmp2 = prefix.s2r_1;
137
+ var tmp4 = this.t2r_1;
138
138
  // Inline function 'kotlin.collections.copyInto' call
139
- var endIndex = this.f2r_1 + byteCount | 0;
139
+ var endIndex = this.t2r_1 + byteCount | 0;
140
140
  // Inline function 'kotlin.js.unsafeCast' call
141
141
  // Inline function 'kotlin.js.asDynamic' call
142
142
  var tmp = tmp0;
@@ -144,57 +144,57 @@ function Segment() {
144
144
  // Inline function 'kotlin.js.asDynamic' call
145
145
  arrayCopy(tmp, tmp2, 0, tmp4, endIndex);
146
146
  }
147
- prefix.g2r_1 = prefix.f2r_1 + byteCount | 0;
148
- this.f2r_1 = this.f2r_1 + byteCount | 0;
149
- if (!(this.k2r_1 == null)) {
150
- ensureNotNull(this.k2r_1).w2r(prefix);
147
+ prefix.u2r_1 = prefix.t2r_1 + byteCount | 0;
148
+ this.t2r_1 = this.t2r_1 + byteCount | 0;
149
+ if (!(this.y2r_1 == null)) {
150
+ ensureNotNull(this.y2r_1).k2s(prefix);
151
151
  } else {
152
- prefix.j2r_1 = this;
153
- this.k2r_1 = prefix;
152
+ prefix.x2r_1 = this;
153
+ this.y2r_1 = prefix;
154
154
  }
155
155
  return prefix;
156
156
  }
157
- x2r() {
157
+ l2s() {
158
158
  // Inline function 'kotlin.check' call
159
- if (!!(this.k2r_1 == null)) {
159
+ if (!!(this.y2r_1 == null)) {
160
160
  var message = 'cannot compact';
161
161
  throw IllegalStateException().o4(toString(message));
162
162
  }
163
- if (!ensureNotNull(this.k2r_1).i2r_1)
163
+ if (!ensureNotNull(this.y2r_1).w2r_1)
164
164
  return this;
165
- var byteCount = this.g2r_1 - this.f2r_1 | 0;
166
- var availableByteCount = (8192 - ensureNotNull(this.k2r_1).g2r_1 | 0) + (ensureNotNull(this.k2r_1).s2s() ? 0 : ensureNotNull(this.k2r_1).f2r_1) | 0;
165
+ var byteCount = this.u2r_1 - this.t2r_1 | 0;
166
+ var availableByteCount = (8192 - ensureNotNull(this.y2r_1).u2r_1 | 0) + (ensureNotNull(this.y2r_1).g2t() ? 0 : ensureNotNull(this.y2r_1).t2r_1) | 0;
167
167
  if (byteCount > availableByteCount)
168
168
  return this;
169
- var predecessor = this.k2r_1;
170
- this.u2s(ensureNotNull(predecessor), byteCount);
171
- var successor = this.v2s();
169
+ var predecessor = this.y2r_1;
170
+ this.i2t(ensureNotNull(predecessor), byteCount);
171
+ var successor = this.j2t();
172
172
  // Inline function 'kotlin.check' call
173
173
  if (!(successor == null)) {
174
174
  throw IllegalStateException().o4('Check failed.');
175
175
  }
176
- SegmentPool_instance.g2t(this);
176
+ SegmentPool_instance.u2t(this);
177
177
  return predecessor;
178
178
  }
179
- y2s(byte) {
180
- var _unary__edvuaz = this.g2r_1;
181
- this.g2r_1 = _unary__edvuaz + 1 | 0;
182
- this.e2r_1[_unary__edvuaz] = byte;
179
+ m2t(byte) {
180
+ var _unary__edvuaz = this.u2r_1;
181
+ this.u2r_1 = _unary__edvuaz + 1 | 0;
182
+ this.s2r_1[_unary__edvuaz] = byte;
183
183
  }
184
- a2t(short) {
185
- var data = this.e2r_1;
186
- var limit = this.g2r_1;
184
+ o2t(short) {
185
+ var data = this.s2r_1;
186
+ var limit = this.u2r_1;
187
187
  var _unary__edvuaz = limit;
188
188
  limit = _unary__edvuaz + 1 | 0;
189
189
  data[_unary__edvuaz] = toByte((short >>> 8 | 0) & 255);
190
190
  var _unary__edvuaz_0 = limit;
191
191
  limit = _unary__edvuaz_0 + 1 | 0;
192
192
  data[_unary__edvuaz_0] = toByte(short & 255);
193
- this.g2r_1 = limit;
193
+ this.u2r_1 = limit;
194
194
  }
195
- c2t(int) {
196
- var data = this.e2r_1;
197
- var limit = this.g2r_1;
195
+ q2t(int) {
196
+ var data = this.s2r_1;
197
+ var limit = this.u2r_1;
198
198
  var _unary__edvuaz = limit;
199
199
  limit = _unary__edvuaz + 1 | 0;
200
200
  data[_unary__edvuaz] = toByte((int >>> 24 | 0) & 255);
@@ -207,11 +207,11 @@ function Segment() {
207
207
  var _unary__edvuaz_2 = limit;
208
208
  limit = _unary__edvuaz_2 + 1 | 0;
209
209
  data[_unary__edvuaz_2] = toByte(int & 255);
210
- this.g2r_1 = limit;
210
+ this.u2r_1 = limit;
211
211
  }
212
- e2t(long) {
213
- var data = this.e2r_1;
214
- var limit = this.g2r_1;
212
+ s2t(long) {
213
+ var data = this.s2r_1;
214
+ var limit = this.u2r_1;
215
215
  var _unary__edvuaz = limit;
216
216
  limit = _unary__edvuaz + 1 | 0;
217
217
  data[_unary__edvuaz] = long.b4(56).c4(new (Long())(255, 0)).f4();
@@ -236,16 +236,16 @@ function Segment() {
236
236
  var _unary__edvuaz_6 = limit;
237
237
  limit = _unary__edvuaz_6 + 1 | 0;
238
238
  data[_unary__edvuaz_6] = long.c4(new (Long())(255, 0)).f4();
239
- this.g2r_1 = limit;
239
+ this.u2r_1 = limit;
240
240
  }
241
- m2r() {
242
- var _unary__edvuaz = this.f2r_1;
243
- this.f2r_1 = _unary__edvuaz + 1 | 0;
244
- return this.e2r_1[_unary__edvuaz];
241
+ a2s() {
242
+ var _unary__edvuaz = this.t2r_1;
243
+ this.t2r_1 = _unary__edvuaz + 1 | 0;
244
+ return this.s2r_1[_unary__edvuaz];
245
245
  }
246
- o2r() {
247
- var data = this.e2r_1;
248
- var pos = this.f2r_1;
246
+ c2s() {
247
+ var data = this.s2r_1;
248
+ var pos = this.t2r_1;
249
249
  var _unary__edvuaz = pos;
250
250
  pos = _unary__edvuaz + 1 | 0;
251
251
  // Inline function 'kotlinx.io.and' call
@@ -255,12 +255,12 @@ function Segment() {
255
255
  // Inline function 'kotlinx.io.and' call
256
256
  var tmp$ret$1 = data[_unary__edvuaz_0] & 255;
257
257
  var s = toShort(tmp | tmp$ret$1);
258
- this.f2r_1 = pos;
258
+ this.t2r_1 = pos;
259
259
  return s;
260
260
  }
261
- q2r() {
262
- var data = this.e2r_1;
263
- var pos = this.f2r_1;
261
+ e2s() {
262
+ var data = this.s2r_1;
263
+ var pos = this.t2r_1;
264
264
  var _unary__edvuaz = pos;
265
265
  pos = _unary__edvuaz + 1 | 0;
266
266
  // Inline function 'kotlinx.io.and' call
@@ -277,12 +277,12 @@ function Segment() {
277
277
  pos = _unary__edvuaz_2 + 1 | 0;
278
278
  // Inline function 'kotlinx.io.and' call
279
279
  var i = tmp_1 | data[_unary__edvuaz_2] & 255;
280
- this.f2r_1 = pos;
280
+ this.t2r_1 = pos;
281
281
  return i;
282
282
  }
283
- s2r() {
284
- var data = this.e2r_1;
285
- var pos = this.f2r_1;
283
+ g2s() {
284
+ var data = this.s2r_1;
285
+ var pos = this.t2r_1;
286
286
  var _unary__edvuaz = pos;
287
287
  pos = _unary__edvuaz + 1 | 0;
288
288
  var tmp0 = data[_unary__edvuaz];
@@ -338,106 +338,106 @@ function Segment() {
338
338
  var other_6 = new (Long())(255, 0);
339
339
  var tmp$ret$7 = toLong(tmp0_6).c4(other_6);
340
340
  var v = tmp_5.d4(tmp$ret$7);
341
- this.f2r_1 = pos;
341
+ this.t2r_1 = pos;
342
342
  return v;
343
343
  }
344
- u2s(sink, byteCount) {
344
+ i2t(sink, byteCount) {
345
345
  // Inline function 'kotlin.check' call
346
- if (!sink.i2r_1) {
346
+ if (!sink.w2r_1) {
347
347
  var message = 'only owner can write';
348
348
  throw IllegalStateException().o4(toString(message));
349
349
  }
350
- if ((sink.g2r_1 + byteCount | 0) > 8192) {
351
- if (sink.s2s())
350
+ if ((sink.u2r_1 + byteCount | 0) > 8192) {
351
+ if (sink.g2t())
352
352
  throw IllegalArgumentException().te();
353
- if (((sink.g2r_1 + byteCount | 0) - sink.f2r_1 | 0) > 8192)
353
+ if (((sink.u2r_1 + byteCount | 0) - sink.t2r_1 | 0) > 8192)
354
354
  throw IllegalArgumentException().te();
355
- var tmp0 = sink.e2r_1;
356
- var tmp2 = sink.e2r_1;
357
- var tmp4 = sink.f2r_1;
355
+ var tmp0 = sink.s2r_1;
356
+ var tmp2 = sink.s2r_1;
357
+ var tmp4 = sink.t2r_1;
358
358
  // Inline function 'kotlin.collections.copyInto' call
359
- var endIndex = sink.g2r_1;
359
+ var endIndex = sink.u2r_1;
360
360
  // Inline function 'kotlin.js.unsafeCast' call
361
361
  // Inline function 'kotlin.js.asDynamic' call
362
362
  var tmp = tmp0;
363
363
  // Inline function 'kotlin.js.unsafeCast' call
364
364
  // Inline function 'kotlin.js.asDynamic' call
365
365
  arrayCopy(tmp, tmp2, 0, tmp4, endIndex);
366
- sink.g2r_1 = sink.g2r_1 - sink.f2r_1 | 0;
367
- sink.f2r_1 = 0;
366
+ sink.u2r_1 = sink.u2r_1 - sink.t2r_1 | 0;
367
+ sink.t2r_1 = 0;
368
368
  }
369
- var tmp0_0 = this.e2r_1;
370
- var tmp2_0 = sink.e2r_1;
371
- var tmp4_0 = sink.g2r_1;
372
- var tmp6 = this.f2r_1;
369
+ var tmp0_0 = this.s2r_1;
370
+ var tmp2_0 = sink.s2r_1;
371
+ var tmp4_0 = sink.u2r_1;
372
+ var tmp6 = this.t2r_1;
373
373
  // Inline function 'kotlin.collections.copyInto' call
374
- var endIndex_0 = this.f2r_1 + byteCount | 0;
374
+ var endIndex_0 = this.t2r_1 + byteCount | 0;
375
375
  // Inline function 'kotlin.js.unsafeCast' call
376
376
  // Inline function 'kotlin.js.asDynamic' call
377
377
  var tmp_0 = tmp0_0;
378
378
  // Inline function 'kotlin.js.unsafeCast' call
379
379
  // Inline function 'kotlin.js.asDynamic' call
380
380
  arrayCopy(tmp_0, tmp2_0, tmp4_0, tmp6, endIndex_0);
381
- sink.g2r_1 = sink.g2r_1 + byteCount | 0;
382
- this.f2r_1 = this.f2r_1 + byteCount | 0;
381
+ sink.u2r_1 = sink.u2r_1 + byteCount | 0;
382
+ this.t2r_1 = this.t2r_1 + byteCount | 0;
383
383
  }
384
- d2s(dst, dstStartOffset, dstEndOffset) {
384
+ r2s(dst, dstStartOffset, dstEndOffset) {
385
385
  var len = dstEndOffset - dstStartOffset | 0;
386
- var tmp0 = this.e2r_1;
387
- var tmp6 = this.f2r_1;
386
+ var tmp0 = this.s2r_1;
387
+ var tmp6 = this.t2r_1;
388
388
  // Inline function 'kotlin.collections.copyInto' call
389
- var endIndex = this.f2r_1 + len | 0;
389
+ var endIndex = this.t2r_1 + len | 0;
390
390
  // Inline function 'kotlin.js.unsafeCast' call
391
391
  // Inline function 'kotlin.js.asDynamic' call
392
392
  var tmp = tmp0;
393
393
  // Inline function 'kotlin.js.unsafeCast' call
394
394
  // Inline function 'kotlin.js.asDynamic' call
395
395
  arrayCopy(tmp, dst, dstStartOffset, tmp6, endIndex);
396
- this.f2r_1 = this.f2r_1 + len | 0;
396
+ this.t2r_1 = this.t2r_1 + len | 0;
397
397
  }
398
- p2s(src, srcStartOffset, srcEndOffset) {
399
- var tmp2 = this.e2r_1;
398
+ d2t(src, srcStartOffset, srcEndOffset) {
399
+ var tmp2 = this.s2r_1;
400
400
  // Inline function 'kotlin.collections.copyInto' call
401
- var destinationOffset = this.g2r_1;
401
+ var destinationOffset = this.u2r_1;
402
402
  // Inline function 'kotlin.js.unsafeCast' call
403
403
  // Inline function 'kotlin.js.asDynamic' call
404
404
  var tmp = src;
405
405
  // Inline function 'kotlin.js.unsafeCast' call
406
406
  // Inline function 'kotlin.js.asDynamic' call
407
407
  arrayCopy(tmp, tmp2, destinationOffset, srcStartOffset, srcEndOffset);
408
- this.g2r_1 = this.g2r_1 + (srcEndOffset - srcStartOffset | 0) | 0;
408
+ this.u2r_1 = this.u2r_1 + (srcEndOffset - srcStartOffset | 0) | 0;
409
409
  }
410
410
  i1() {
411
- return this.g2r_1 - this.f2r_1 | 0;
411
+ return this.u2r_1 - this.t2r_1 | 0;
412
412
  }
413
- o2s() {
414
- return this.e2r_1.length - this.g2r_1 | 0;
413
+ c2t() {
414
+ return this.s2r_1.length - this.u2r_1 | 0;
415
415
  }
416
- z2t(readOnly) {
417
- return this.e2r_1;
416
+ n2u(readOnly) {
417
+ return this.s2r_1;
418
418
  }
419
- a2s(index) {
420
- return this.e2r_1[this.f2r_1 + index | 0];
419
+ o2s(index) {
420
+ return this.s2r_1[this.t2r_1 + index | 0];
421
421
  }
422
- a2u(index, value) {
423
- this.e2r_1[this.g2r_1 + index | 0] = value;
422
+ o2u(index, value) {
423
+ this.s2r_1[this.u2r_1 + index | 0] = value;
424
424
  }
425
- b2u(index, b0, b1) {
426
- var d = this.e2r_1;
427
- var l = this.g2r_1;
425
+ p2u(index, b0, b1) {
426
+ var d = this.s2r_1;
427
+ var l = this.u2r_1;
428
428
  d[l + index | 0] = b0;
429
429
  d[(l + index | 0) + 1 | 0] = b1;
430
430
  }
431
- c2u(index, b0, b1, b2) {
432
- var d = this.e2r_1;
433
- var l = this.g2r_1;
431
+ q2u(index, b0, b1, b2) {
432
+ var d = this.s2r_1;
433
+ var l = this.u2r_1;
434
434
  d[l + index | 0] = b0;
435
435
  d[(l + index | 0) + 1 | 0] = b1;
436
436
  d[(l + index | 0) + 2 | 0] = b2;
437
437
  }
438
- d2u(index, b0, b1, b2, b3) {
439
- var d = this.e2r_1;
440
- var l = this.g2r_1;
438
+ r2u(index, b0, b1, b2, b3) {
439
+ var d = this.s2r_1;
440
+ var l = this.u2r_1;
441
441
  d[l + index | 0] = b0;
442
442
  d[(l + index | 0) + 1 | 0] = b1;
443
443
  d[(l + index | 0) + 2 | 0] = b2;
@@ -470,10 +470,10 @@ function AlwaysSharedCopyTracker() {
470
470
  super();
471
471
  AlwaysSharedCopyTracker_instance = this;
472
472
  }
473
- v2t() {
473
+ j2u() {
474
474
  return true;
475
475
  }
476
- y2t() {
476
+ m2u() {
477
477
  return Unit_instance;
478
478
  }
479
479
  }
@@ -499,8 +499,8 @@ function indexOf(_this__u8e3s4, byte, startOffset, endOffset) {
499
499
  var message_0 = '' + endOffset;
500
500
  throw IllegalArgumentException().u(toString(message_0));
501
501
  }
502
- var p = _this__u8e3s4.f2r_1;
503
- var data = _this__u8e3s4.z2t(true);
502
+ var p = _this__u8e3s4.t2r_1;
503
+ var data = _this__u8e3s4.n2u(true);
504
504
  var inductionVariable = startOffset;
505
505
  if (inductionVariable < endOffset)
506
506
  do {
@@ -13,15 +13,15 @@ function SegmentPool() {
13
13
  if (SegmentPoolClass === VOID) {
14
14
  class $ {
15
15
  constructor() {
16
- this.k2s_1 = 0;
17
- this.l2s_1 = 0;
16
+ this.y2s_1 = 0;
17
+ this.z2s_1 = 0;
18
18
  }
19
- m2s() {
20
- return Companion_instance.t2t();
19
+ a2t() {
20
+ return Companion_instance.h2u();
21
21
  }
22
- g2t(segment) {
22
+ u2t(segment) {
23
23
  }
24
- x2t() {
24
+ l2u() {
25
25
  return AlwaysSharedCopyTracker_getInstance();
26
26
  }
27
27
  }
@@ -11,10 +11,10 @@ function write$default(source, startIndex, endIndex, $super) {
11
11
  endIndex = endIndex === VOID ? source.length : endIndex;
12
12
  var tmp;
13
13
  if ($super === VOID) {
14
- this.n2s(source, startIndex, endIndex);
14
+ this.b2t(source, startIndex, endIndex);
15
15
  tmp = Unit_instance;
16
16
  } else {
17
- tmp = $super.n2s.call(this, source, startIndex, endIndex);
17
+ tmp = $super.b2t.call(this, source, startIndex, endIndex);
18
18
  }
19
19
  return tmp;
20
20
  }
@@ -19,7 +19,7 @@ function writeUByte(_this__u8e3s4, byte) {
19
19
  _init_properties_Sinks_kt__92ml72();
20
20
  // Inline function 'kotlin.UByte.toByte' call
21
21
  var tmp$ret$0 = _UByte___get_data__impl__jof9qr(byte);
22
- _this__u8e3s4.x2s(tmp$ret$0);
22
+ _this__u8e3s4.l2t(tmp$ret$0);
23
23
  }
24
24
  function writeUShortLe(_this__u8e3s4, short) {
25
25
  _init_properties_Sinks_kt__92ml72();
@@ -35,11 +35,11 @@ function writeULongLe(_this__u8e3s4, long) {
35
35
  }
36
36
  function writeLongLe(_this__u8e3s4, long) {
37
37
  _init_properties_Sinks_kt__92ml72();
38
- _this__u8e3s4.d2t(reverseBytes(long));
38
+ _this__u8e3s4.r2t(reverseBytes(long));
39
39
  }
40
40
  function writeShortLe(_this__u8e3s4, short) {
41
41
  _init_properties_Sinks_kt__92ml72();
42
- _this__u8e3s4.z2s(reverseBytes_0(short));
42
+ _this__u8e3s4.n2t(reverseBytes_0(short));
43
43
  }
44
44
  var properties_initialized_Sinks_kt_u7wmts;
45
45
  function _init_properties_Sinks_kt__92ml72() {
@@ -23,7 +23,7 @@ import { indexOfnhqfh629ytad as indexOf } from './Buffers.mjs';
23
23
  //endregion
24
24
  function readUByte(_this__u8e3s4) {
25
25
  // Inline function 'kotlin.toUByte' call
26
- var this_0 = _this__u8e3s4.d2r();
26
+ var this_0 = _this__u8e3s4.r2r();
27
27
  return _UByte___init__impl__g9hnc4(this_0);
28
28
  }
29
29
  function readByteArray(_this__u8e3s4) {
@@ -50,31 +50,31 @@ function readULongLe(_this__u8e3s4) {
50
50
  return _ULong___init__impl__c78o9k(this_0);
51
51
  }
52
52
  function readLongLe(_this__u8e3s4) {
53
- return reverseBytes(_this__u8e3s4.r2r());
53
+ return reverseBytes(_this__u8e3s4.f2s());
54
54
  }
55
55
  function readByteArrayImpl(_this__u8e3s4, size) {
56
56
  var arraySize = size;
57
57
  if (size === -1) {
58
58
  var fetchSize = new (Long())(2147483647, 0);
59
- while (_this__u8e3s4.z2q().i1().a2(new (Long())(2147483647, 0)) < 0 && _this__u8e3s4.c2r(fetchSize)) {
59
+ while (_this__u8e3s4.n2r().i1().a2(new (Long())(2147483647, 0)) < 0 && _this__u8e3s4.q2r(fetchSize)) {
60
60
  // Inline function 'kotlin.Long.times' call
61
61
  fetchSize = fetchSize.r3(toLong(2));
62
62
  }
63
63
  // Inline function 'kotlin.check' call
64
- if (!(_this__u8e3s4.z2q().i1().a2(new (Long())(2147483647, 0)) < 0)) {
65
- var message = "Can't create an array of size " + _this__u8e3s4.z2q().i1().toString();
64
+ if (!(_this__u8e3s4.n2r().i1().a2(new (Long())(2147483647, 0)) < 0)) {
65
+ var message = "Can't create an array of size " + _this__u8e3s4.n2r().i1().toString();
66
66
  throw IllegalStateException().o4(toString(message));
67
67
  }
68
- arraySize = _this__u8e3s4.z2q().i1().c2();
68
+ arraySize = _this__u8e3s4.n2r().i1().c2();
69
69
  } else {
70
- _this__u8e3s4.b2r(toLong(size));
70
+ _this__u8e3s4.p2r(toLong(size));
71
71
  }
72
72
  var array = new Int8Array(arraySize);
73
- readTo(_this__u8e3s4.z2q(), array);
73
+ readTo(_this__u8e3s4.n2r(), array);
74
74
  return array;
75
75
  }
76
76
  function readShortLe(_this__u8e3s4) {
77
- return reverseBytes_0(_this__u8e3s4.n2r());
77
+ return reverseBytes_0(_this__u8e3s4.b2s());
78
78
  }
79
79
  function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
80
80
  startIndex = startIndex === VOID ? 0 : startIndex;
@@ -84,9 +84,9 @@ function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
84
84
  checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
85
85
  var offset = startIndex;
86
86
  while (offset < endIndex) {
87
- var bytesRead = _this__u8e3s4.c2s(sink, offset, endIndex);
87
+ var bytesRead = _this__u8e3s4.q2s(sink, offset, endIndex);
88
88
  if (bytesRead === -1) {
89
- throw EOFException().y2q('Source exhausted before reading ' + (endIndex - startIndex | 0) + ' bytes. ' + ('Only ' + bytesRead + ' bytes were read.'));
89
+ throw EOFException().m2r('Source exhausted before reading ' + (endIndex - startIndex | 0) + ' bytes. ' + ('Only ' + bytesRead + ' bytes were read.'));
90
90
  }
91
91
  offset = offset + bytesRead | 0;
92
92
  }
@@ -113,23 +113,23 @@ function indexOf_0(_this__u8e3s4, byte, startIndex, endIndex) {
113
113
  if (offset.a2(endIndex) < 0) {
114
114
  // Inline function 'kotlin.Long.plus' call
115
115
  var tmp$ret$2 = offset.p3(toLong(1));
116
- tmp_0 = _this__u8e3s4.c2r(tmp$ret$2);
116
+ tmp_0 = _this__u8e3s4.q2r(tmp$ret$2);
117
117
  } else {
118
118
  tmp_0 = false;
119
119
  }
120
120
  if (!tmp_0) {
121
121
  break $l$loop;
122
122
  }
123
- var tmp_1 = _this__u8e3s4.z2q();
123
+ var tmp_1 = _this__u8e3s4.n2r();
124
124
  var tmp_2 = offset;
125
125
  // Inline function 'kotlin.comparisons.minOf' call
126
- var b = _this__u8e3s4.z2q().i1();
126
+ var b = _this__u8e3s4.n2r().i1();
127
127
  var tmp$ret$3 = endIndex.a2(b) <= 0 ? endIndex : b;
128
128
  var idx = indexOf(tmp_1, byte, tmp_2, tmp$ret$3);
129
129
  if (!idx.equals(new (Long())(-1, -1))) {
130
130
  return idx;
131
131
  }
132
- offset = _this__u8e3s4.z2q().i1();
132
+ offset = _this__u8e3s4.n2r().i1();
133
133
  }
134
134
  return new (Long())(-1, -1);
135
135
  }