@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
@@ -10,14 +10,14 @@ var ClosedByteChannelExceptionClass;
10
10
  function ClosedByteChannelException() {
11
11
  if (ClosedByteChannelExceptionClass === VOID) {
12
12
  class $ extends IOException() {
13
- static a3p(cause) {
13
+ static o3p(cause) {
14
14
  cause = cause === VOID ? null : cause;
15
- var $this = this.m2u(cause == null ? null : cause.message, cause);
16
- captureStack($this, $this.z3o_1);
15
+ var $this = this.a2v(cause == null ? null : cause.message, cause);
16
+ captureStack($this, $this.n3p_1);
17
17
  return $this;
18
18
  }
19
19
  }
20
- initMetadataForClass($, 'ClosedByteChannelException', $.a3p);
20
+ initMetadataForClass($, 'ClosedByteChannelException', $.o3p);
21
21
  ClosedByteChannelExceptionClass = $;
22
22
  }
23
23
  return ClosedByteChannelExceptionClass;
@@ -26,14 +26,14 @@ var ClosedReadChannelExceptionClass;
26
26
  function ClosedReadChannelException() {
27
27
  if (ClosedReadChannelExceptionClass === VOID) {
28
28
  class $ extends ClosedByteChannelException() {
29
- static n38(cause) {
29
+ static b39(cause) {
30
30
  cause = cause === VOID ? null : cause;
31
- var $this = this.a3p(cause);
32
- captureStack($this, $this.m38_1);
31
+ var $this = this.o3p(cause);
32
+ captureStack($this, $this.a39_1);
33
33
  return $this;
34
34
  }
35
35
  }
36
- initMetadataForClass($, 'ClosedReadChannelException', $.n38);
36
+ initMetadataForClass($, 'ClosedReadChannelException', $.b39);
37
37
  ClosedReadChannelExceptionClass = $;
38
38
  }
39
39
  return ClosedReadChannelExceptionClass;
@@ -42,14 +42,14 @@ var ClosedWriteChannelExceptionClass;
42
42
  function ClosedWriteChannelException() {
43
43
  if (ClosedWriteChannelExceptionClass === VOID) {
44
44
  class $ extends ClosedByteChannelException() {
45
- static s38(cause) {
45
+ static g39(cause) {
46
46
  cause = cause === VOID ? null : cause;
47
- var $this = this.a3p(cause);
48
- captureStack($this, $this.r38_1);
47
+ var $this = this.o3p(cause);
48
+ captureStack($this, $this.f39_1);
49
49
  return $this;
50
50
  }
51
51
  }
52
- initMetadataForClass($, 'ClosedWriteChannelException', $.s38);
52
+ initMetadataForClass($, 'ClosedWriteChannelException', $.g39);
53
53
  ClosedWriteChannelExceptionClass = $;
54
54
  }
55
55
  return ClosedWriteChannelExceptionClass;
@@ -26,21 +26,21 @@ function LineEndingMode__plus_impl_ttpz2j($this, other) {
26
26
  }
27
27
  function LineEndingMode__toString_impl_j4h76r($this) {
28
28
  var tmp;
29
- if ($this === Companion_getInstance().t3g_1) {
29
+ if ($this === Companion_getInstance().h3h_1) {
30
30
  tmp = 'CR';
31
- } else if ($this === Companion_getInstance().u3g_1) {
31
+ } else if ($this === Companion_getInstance().i3h_1) {
32
32
  tmp = 'LF';
33
- } else if ($this === Companion_getInstance().v3g_1) {
33
+ } else if ($this === Companion_getInstance().j3h_1) {
34
34
  tmp = 'CRLF';
35
35
  } else {
36
36
  // Inline function 'kotlin.collections.filter' call
37
- var tmp0 = Companion_getInstance().x3g_1;
37
+ var tmp0 = Companion_getInstance().l3h_1;
38
38
  // Inline function 'kotlin.collections.filterTo' call
39
39
  var destination = ArrayList().l1();
40
40
  var _iterator__ex2g4s = tmp0.d1();
41
41
  while (_iterator__ex2g4s.e1()) {
42
42
  var element = _iterator__ex2g4s.f1();
43
- var it = element.r3p_1;
43
+ var it = element.f3q_1;
44
44
  if (LineEndingMode__contains_impl_q5pr68($this, it)) {
45
45
  destination.m(element);
46
46
  }
@@ -55,11 +55,11 @@ function Companion() {
55
55
  class $ {
56
56
  constructor() {
57
57
  Companion_instance = this;
58
- this.t3g_1 = _LineEndingMode___init__impl__jo5bul(1);
59
- this.u3g_1 = _LineEndingMode___init__impl__jo5bul(2);
60
- this.v3g_1 = _LineEndingMode___init__impl__jo5bul(4);
61
- this.w3g_1 = _LineEndingMode___init__impl__jo5bul(7);
62
- this.x3g_1 = listOf([new (LineEndingMode())(this.t3g_1), new (LineEndingMode())(this.u3g_1), new (LineEndingMode())(this.v3g_1)]);
58
+ this.h3h_1 = _LineEndingMode___init__impl__jo5bul(1);
59
+ this.i3h_1 = _LineEndingMode___init__impl__jo5bul(2);
60
+ this.j3h_1 = _LineEndingMode___init__impl__jo5bul(4);
61
+ this.k3h_1 = _LineEndingMode___init__impl__jo5bul(7);
62
+ this.l3h_1 = listOf([new (LineEndingMode())(this.h3h_1), new (LineEndingMode())(this.i3h_1), new (LineEndingMode())(this.j3h_1)]);
63
63
  }
64
64
  }
65
65
  initMetadataForCompanion($);
@@ -79,7 +79,7 @@ function LineEndingMode__hashCode_impl_2mopm4($this) {
79
79
  function LineEndingMode__equals_impl_qyr4nk($this, other) {
80
80
  if (!(other instanceof LineEndingMode()))
81
81
  return false;
82
- if (!($this === (other instanceof LineEndingMode() ? other.r3p_1 : THROW_CCE())))
82
+ if (!($this === (other instanceof LineEndingMode() ? other.f3q_1 : THROW_CCE())))
83
83
  return false;
84
84
  return true;
85
85
  }
@@ -89,16 +89,16 @@ function LineEndingMode() {
89
89
  class $ {
90
90
  constructor(mode) {
91
91
  Companion_getInstance();
92
- this.r3p_1 = mode;
92
+ this.f3q_1 = mode;
93
93
  }
94
94
  toString() {
95
- return LineEndingMode__toString_impl_j4h76r(this.r3p_1);
95
+ return LineEndingMode__toString_impl_j4h76r(this.f3q_1);
96
96
  }
97
97
  hashCode() {
98
- return LineEndingMode__hashCode_impl_2mopm4(this.r3p_1);
98
+ return LineEndingMode__hashCode_impl_2mopm4(this.f3q_1);
99
99
  }
100
100
  equals(other) {
101
- return LineEndingMode__equals_impl_qyr4nk(this.r3p_1, other);
101
+ return LineEndingMode__equals_impl_qyr4nk(this.f3q_1, other);
102
102
  }
103
103
  }
104
104
  initMetadataForClass($, 'LineEndingMode');
@@ -18,46 +18,46 @@ function SourceByteReadChannel() {
18
18
  if (SourceByteReadChannelClass === VOID) {
19
19
  class $ {
20
20
  constructor(source) {
21
- this.s3p_1 = source;
22
- this.t3p_1 = null;
21
+ this.g3q_1 = source;
22
+ this.h3q_1 = null;
23
23
  }
24
- r3a() {
25
- var tmp0_safe_receiver = this.t3p_1;
26
- return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s3a();
24
+ f3b() {
25
+ var tmp0_safe_receiver = this.h3q_1;
26
+ return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g3b();
27
27
  }
28
- t3a() {
29
- return this.s3p_1.a2r();
28
+ h3b() {
29
+ return this.g3q_1.o2r();
30
30
  }
31
- m3a() {
32
- var tmp0_safe_receiver = this.r3a();
31
+ a3b() {
32
+ var tmp0_safe_receiver = this.f3b();
33
33
  if (tmp0_safe_receiver == null)
34
34
  null;
35
35
  else {
36
36
  // Inline function 'kotlin.let' call
37
37
  throw tmp0_safe_receiver;
38
38
  }
39
- return this.s3p_1.z2q();
39
+ return this.g3q_1.n2r();
40
40
  }
41
- u3a(min, $completion) {
42
- var tmp0_safe_receiver = this.r3a();
41
+ i3b(min, $completion) {
42
+ var tmp0_safe_receiver = this.f3b();
43
43
  if (tmp0_safe_receiver == null)
44
44
  null;
45
45
  else {
46
46
  // Inline function 'kotlin.let' call
47
47
  throw tmp0_safe_receiver;
48
48
  }
49
- return this.s3p_1.c2r(toLong(min));
49
+ return this.g3q_1.q2r(toLong(min));
50
50
  }
51
- x3a(cause) {
52
- if (!(this.t3p_1 == null))
51
+ l3b(cause) {
52
+ if (!(this.h3q_1 == null))
53
53
  return Unit_instance;
54
- this.s3p_1.v5();
54
+ this.g3q_1.v5();
55
55
  var tmp = this;
56
56
  var tmp1_elvis_lhs = cause == null ? null : cause.message;
57
- tmp.t3p_1 = new (CloseToken())(IOException().m2u(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
57
+ tmp.h3q_1 = new (CloseToken())(IOException().a2v(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
58
58
  }
59
59
  }
60
- protoOf($).v3a = awaitContent$default;
60
+ protoOf($).j3b = awaitContent$default;
61
61
  initMetadataForClass($, 'SourceByteReadChannel', VOID, VOID, [ByteReadChannel()], [1]);
62
62
  SourceByteReadChannelClass = $;
63
63
  }
@@ -36,13 +36,13 @@ var CompanionClass;
36
36
  function Companion() {
37
37
  if (CompanionClass === VOID) {
38
38
  class $ {
39
- p3q(name) {
39
+ d3r(name) {
40
40
  switch (name) {
41
41
  case 'UTF-8':
42
42
  case 'utf-8':
43
43
  case 'UTF8':
44
44
  case 'utf8':
45
- return Charsets_getInstance().y3p_1;
45
+ return Charsets_getInstance().m3q_1;
46
46
  }
47
47
  var tmp;
48
48
  var tmp_0;
@@ -73,11 +73,11 @@ function Companion() {
73
73
  tmp = name === 'latin1' || name === 'Latin1';
74
74
  }
75
75
  if (tmp) {
76
- return Charsets_getInstance().z3p_1;
76
+ return Charsets_getInstance().n3q_1;
77
77
  }
78
78
  throw IllegalArgumentException().u('Charset ' + name + ' is not supported');
79
79
  }
80
- q3q(charset) {
80
+ e3r(charset) {
81
81
  var tmp;
82
82
  switch (charset) {
83
83
  case 'UTF-8':
@@ -142,7 +142,7 @@ function Charset() {
142
142
  if (CharsetClass === VOID) {
143
143
  class $ {
144
144
  constructor(_name) {
145
- this.a3q_1 = _name;
145
+ this.o3q_1 = _name;
146
146
  }
147
147
  equals(other) {
148
148
  if (this === other)
@@ -151,13 +151,13 @@ function Charset() {
151
151
  return false;
152
152
  if (!(other instanceof Charset()))
153
153
  THROW_CCE();
154
- return this.a3q_1 === other.a3q_1;
154
+ return this.o3q_1 === other.o3q_1;
155
155
  }
156
156
  hashCode() {
157
- return getStringHashCode(this.a3q_1);
157
+ return getStringHashCode(this.o3q_1);
158
158
  }
159
159
  toString() {
160
- return this.a3q_1;
160
+ return this.o3q_1;
161
161
  }
162
162
  }
163
163
  initMetadataForClass($, 'Charset');
@@ -166,7 +166,7 @@ function Charset() {
166
166
  return CharsetClass;
167
167
  }
168
168
  function get_name(_this__u8e3s4) {
169
- return _this__u8e3s4.a3q_1;
169
+ return _this__u8e3s4.o3q_1;
170
170
  }
171
171
  var CharsetsClass;
172
172
  function Charsets() {
@@ -174,8 +174,8 @@ function Charsets() {
174
174
  class $ {
175
175
  constructor() {
176
176
  Charsets_instance = this;
177
- this.y3p_1 = new (CharsetImpl())('UTF-8');
178
- this.z3p_1 = new (CharsetImpl())('ISO-8859-1');
177
+ this.m3q_1 = new (CharsetImpl())('UTF-8');
178
+ this.n3q_1 = new (CharsetImpl())('ISO-8859-1');
179
179
  }
180
180
  }
181
181
  initMetadataForObject($, 'Charsets');
@@ -193,9 +193,9 @@ var MalformedInputExceptionClass;
193
193
  function MalformedInputException() {
194
194
  if (MalformedInputExceptionClass === VOID) {
195
195
  class $ extends IOException() {
196
- static x3p(message) {
197
- var $this = this.l2u(message);
198
- captureStack($this, $this.w3p_1);
196
+ static l3q(message) {
197
+ var $this = this.z2u(message);
198
+ captureStack($this, $this.k3q_1);
199
199
  return $this;
200
200
  }
201
201
  }
@@ -209,7 +209,7 @@ function CharsetDecoder() {
209
209
  if (CharsetDecoderClass === VOID) {
210
210
  class $ {
211
211
  constructor(_charset) {
212
- this.r3q_1 = _charset;
212
+ this.f3r_1 = _charset;
213
213
  }
214
214
  }
215
215
  initMetadataForClass($, 'CharsetDecoder');
@@ -227,7 +227,7 @@ function CharsetEncoder() {
227
227
  if (CharsetEncoderClass === VOID) {
228
228
  class $ {
229
229
  constructor(_charset) {
230
- this.s3q_1 = _charset;
230
+ this.g3r_1 = _charset;
231
231
  }
232
232
  }
233
233
  initMetadataForClass($, 'CharsetEncoder');
@@ -239,10 +239,10 @@ var CharsetImplClass;
239
239
  function CharsetImpl() {
240
240
  if (CharsetImplClass === VOID) {
241
241
  class $ extends Charset() {
242
- b3q() {
242
+ p3q() {
243
243
  return new (CharsetEncoderImpl())(this);
244
244
  }
245
- c3q() {
245
+ q3q() {
246
246
  return new (CharsetDecoderImpl())(this);
247
247
  }
248
248
  }
@@ -272,13 +272,13 @@ function CharsetEncoderImpl() {
272
272
  class $ extends CharsetEncoder() {
273
273
  constructor(charset) {
274
274
  super(charset);
275
- this.v3q_1 = charset;
275
+ this.j3r_1 = charset;
276
276
  }
277
277
  toString() {
278
- return 'CharsetEncoderImpl(charset=' + this.v3q_1.toString() + ')';
278
+ return 'CharsetEncoderImpl(charset=' + this.j3r_1.toString() + ')';
279
279
  }
280
280
  hashCode() {
281
- return this.v3q_1.hashCode();
281
+ return this.j3r_1.hashCode();
282
282
  }
283
283
  equals(other) {
284
284
  if (this === other)
@@ -286,7 +286,7 @@ function CharsetEncoderImpl() {
286
286
  if (!(other instanceof CharsetEncoderImpl()))
287
287
  return false;
288
288
  var tmp0_other_with_cast = other instanceof CharsetEncoderImpl() ? other : THROW_CCE();
289
- if (!this.v3q_1.equals(tmp0_other_with_cast.v3q_1))
289
+ if (!this.j3r_1.equals(tmp0_other_with_cast.j3r_1))
290
290
  return false;
291
291
  return true;
292
292
  }
@@ -302,13 +302,13 @@ function CharsetDecoderImpl() {
302
302
  class $ extends CharsetDecoder() {
303
303
  constructor(charset) {
304
304
  super(charset);
305
- this.x3q_1 = charset;
305
+ this.l3r_1 = charset;
306
306
  }
307
307
  toString() {
308
- return 'CharsetDecoderImpl(charset=' + this.x3q_1.toString() + ')';
308
+ return 'CharsetDecoderImpl(charset=' + this.l3r_1.toString() + ')';
309
309
  }
310
310
  hashCode() {
311
- return this.x3q_1.hashCode();
311
+ return this.l3r_1.hashCode();
312
312
  }
313
313
  equals(other) {
314
314
  if (this === other)
@@ -316,7 +316,7 @@ function CharsetDecoderImpl() {
316
316
  if (!(other instanceof CharsetDecoderImpl()))
317
317
  return false;
318
318
  var tmp0_other_with_cast = other instanceof CharsetDecoderImpl() ? other : THROW_CCE();
319
- if (!this.x3q_1.equals(tmp0_other_with_cast.x3q_1))
319
+ if (!this.l3r_1.equals(tmp0_other_with_cast.l3r_1))
320
320
  return false;
321
321
  return true;
322
322
  }
@@ -333,11 +333,11 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
333
333
  var message = 'Failed requirement.';
334
334
  throw IllegalArgumentException().u(toString(message));
335
335
  }
336
- if (get_charset(_this__u8e3s4).equals(Charsets_getInstance().z3p_1)) {
336
+ if (get_charset(_this__u8e3s4).equals(Charsets_getInstance().n3q_1)) {
337
337
  return encodeISO88591(input, fromIndex, toIndex, dst);
338
338
  }
339
339
  // Inline function 'kotlin.require' call
340
- if (!(get_charset(_this__u8e3s4) === Charsets_getInstance().y3p_1)) {
340
+ if (!(get_charset(_this__u8e3s4) === Charsets_getInstance().m3q_1)) {
341
341
  var message_0 = 'Only UTF-8 encoding is supported in JS';
342
342
  throw IllegalArgumentException().u(toString(message_0));
343
343
  }
@@ -347,15 +347,15 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
347
347
  var result = encoder.encode(tmp$ret$5);
348
348
  // Inline function 'kotlin.js.unsafeCast' call
349
349
  // Inline function 'kotlin.js.asDynamic' call
350
- dst.q2s(result);
350
+ dst.e2t(result);
351
351
  return result.length;
352
352
  }
353
353
  function get_charset(_this__u8e3s4) {
354
- return _this__u8e3s4.s3q_1;
354
+ return _this__u8e3s4.g3r_1;
355
355
  }
356
356
  function decode(_this__u8e3s4, input, dst, max) {
357
357
  var decoder = Decoder(get_name(get_charset_0(_this__u8e3s4)), true);
358
- var tmp0 = input.z2q().i1();
358
+ var tmp0 = input.n2r().i1();
359
359
  // Inline function 'kotlin.comparisons.minOf' call
360
360
  var b = toLong(max);
361
361
  var count = tmp0.a2(b) <= 0 ? tmp0 : b;
@@ -363,13 +363,13 @@ function decode(_this__u8e3s4, input, dst, max) {
363
363
  var array = tmp instanceof Int8Array ? tmp : THROW_CCE();
364
364
  var tmp_0;
365
365
  try {
366
- tmp_0 = decoder.y3q(array);
366
+ tmp_0 = decoder.m3r(array);
367
367
  } catch ($p) {
368
368
  var tmp_1;
369
369
  if ($p instanceof Error) {
370
370
  var cause = $p;
371
371
  var tmp0_elvis_lhs = cause.message;
372
- throw MalformedInputException().x3p('Failed to decode bytes: ' + (tmp0_elvis_lhs == null ? 'no cause provided' : tmp0_elvis_lhs));
372
+ throw MalformedInputException().l3q('Failed to decode bytes: ' + (tmp0_elvis_lhs == null ? 'no cause provided' : tmp0_elvis_lhs));
373
373
  } else {
374
374
  throw $p;
375
375
  }
@@ -379,13 +379,13 @@ function decode(_this__u8e3s4, input, dst, max) {
379
379
  return result.length;
380
380
  }
381
381
  function get_charset_0(_this__u8e3s4) {
382
- return _this__u8e3s4.r3q_1;
382
+ return _this__u8e3s4.f3r_1;
383
383
  }
384
384
  function forName(_this__u8e3s4, name) {
385
- return Companion_instance.p3q(name);
385
+ return Companion_instance.d3r(name);
386
386
  }
387
387
  function isSupported(_this__u8e3s4, name) {
388
- return Companion_instance.q3q(name);
388
+ return Companion_instance.e3r(name);
389
389
  }
390
390
  //region block: init
391
391
  Companion_instance = new (Companion())();
@@ -20,7 +20,7 @@ function decode_0(_this__u8e3s4, input, max) {
20
20
  max = max === VOID ? 2147483647 : max;
21
21
  var tmp0 = toLong(max);
22
22
  // Inline function 'kotlin.comparisons.minOf' call
23
- var b = input.z2q().i1();
23
+ var b = input.n2r().i1();
24
24
  // Inline function 'kotlin.text.buildString' call
25
25
  var capacity = (tmp0.a2(b) <= 0 ? tmp0 : b).c2();
26
26
  // Inline function 'kotlin.apply' call
@@ -47,9 +47,9 @@ var TooLongLineExceptionClass;
47
47
  function TooLongLineException() {
48
48
  if (TooLongLineExceptionClass === VOID) {
49
49
  class $ extends MalformedInputException() {
50
- static i3m(message) {
51
- var $this = this.x3p(message);
52
- captureStack($this, $this.h3m_1);
50
+ static w3m(message) {
51
+ var $this = this.l3q(message);
52
+ captureStack($this, $this.v3m_1);
53
53
  return $this;
54
54
  }
55
55
  }
@@ -21,13 +21,13 @@ function encodeISO88591(input, fromIndex, toIndex, dst) {
21
21
  if (character > 255) {
22
22
  failedToMapError(character);
23
23
  }
24
- dst.x2s(toByte(character));
24
+ dst.l2t(toByte(character));
25
25
  }
26
26
  while (inductionVariable < toIndex);
27
27
  return toIndex - fromIndex | 0;
28
28
  }
29
29
  function failedToMapError(ch) {
30
- throw MalformedInputException().x3p('The character with unicode point ' + ch + " couldn't be mapped to ISO-8859-1 character");
30
+ throw MalformedInputException().l3q('The character with unicode point ' + ch + " couldn't be mapped to ISO-8859-1 character");
31
31
  }
32
32
  //region block: exports
33
33
  export {
@@ -22,10 +22,10 @@ function toKtor$1() {
22
22
  if (toKtor$1Class === VOID) {
23
23
  class $ {
24
24
  constructor($this_toKtor) {
25
- this.z3q_1 = $this_toKtor;
25
+ this.n3r_1 = $this_toKtor;
26
26
  }
27
- y3q(buffer) {
28
- return this.z3q_1.decode(buffer);
27
+ m3r(buffer) {
28
+ return this.n3r_1.decode(buffer);
29
29
  }
30
30
  }
31
31
  initMetadataForClass($);
@@ -32,7 +32,7 @@ function TextDecoderFallback() {
32
32
  if (TextDecoderFallbackClass === VOID) {
33
33
  class $ {
34
34
  constructor(encoding, fatal) {
35
- this.a3r_1 = fatal;
35
+ this.o3r_1 = fatal;
36
36
  // Inline function 'kotlin.text.trim' call
37
37
  // Inline function 'kotlin.text.lowercase' call
38
38
  // Inline function 'kotlin.js.asDynamic' call
@@ -43,7 +43,7 @@ function TextDecoderFallback() {
43
43
  throw IllegalStateException().o4(toString(message));
44
44
  }
45
45
  }
46
- y3q(buffer) {
46
+ m3r(buffer) {
47
47
  // Inline function 'io.ktor.utils.io.core.buildPacket' call
48
48
  var builder = new (Buffer())();
49
49
  var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
@@ -59,7 +59,7 @@ function TextDecoderFallback() {
59
59
  var point = toCodePoint(byte);
60
60
  if (point < 0) {
61
61
  // Inline function 'kotlin.check' call
62
- if (!!this.a3r_1) {
62
+ if (!!this.o3r_1) {
63
63
  var message = 'Invalid character: ' + point;
64
64
  throw IllegalStateException().o4(toString(message));
65
65
  }
@@ -67,9 +67,9 @@ function TextDecoderFallback() {
67
67
  continue $l$loop;
68
68
  }
69
69
  if (point > 255) {
70
- builder.x2s(toByte(point >> 8));
70
+ builder.l2t(toByte(point >> 8));
71
71
  }
72
- builder.x2s(toByte(point & 255));
72
+ builder.l2t(toByte(point & 255));
73
73
  }
74
74
  while (inductionVariable < last);
75
75
  return decodeToString(readByteArray(builder));
@@ -1,7 +1,7 @@
1
1
  //region block: pre-declaration
2
2
  //endregion
3
3
  function canRead(_this__u8e3s4) {
4
- return !_this__u8e3s4.a2r();
4
+ return !_this__u8e3s4.o2r();
5
5
  }
6
6
  //region block: exports
7
7
  export {
@@ -9,13 +9,13 @@ import { writeText19qfzm98fbm4l as writeText } from './Strings.mjs';
9
9
  function writeFully(_this__u8e3s4, buffer, offset, length) {
10
10
  offset = offset === VOID ? 0 : offset;
11
11
  length = length === VOID ? buffer.length - offset | 0 : length;
12
- _this__u8e3s4.n2s(buffer, offset, offset + length | 0);
12
+ _this__u8e3s4.b2t(buffer, offset, offset + length | 0);
13
13
  }
14
14
  function BytePacketBuilder() {
15
15
  return new (Buffer())();
16
16
  }
17
17
  function get_size(_this__u8e3s4) {
18
- return _this__u8e3s4.z2q().i1().c2();
18
+ return _this__u8e3s4.n2r().i1().c2();
19
19
  }
20
20
  function append(_this__u8e3s4, value, startIndex, endIndex) {
21
21
  startIndex = startIndex === VOID ? 0 : startIndex;
@@ -23,7 +23,7 @@ function append(_this__u8e3s4, value, startIndex, endIndex) {
23
23
  writeText(_this__u8e3s4, value, startIndex, endIndex);
24
24
  }
25
25
  function build(_this__u8e3s4) {
26
- return _this__u8e3s4.z2q();
26
+ return _this__u8e3s4.n2r();
27
27
  }
28
28
  //region block: exports
29
29
  export {
@@ -9,21 +9,21 @@ import { Buffergs925ekssbch as Buffer } from '../../../../../../kotlinx-io-kotli
9
9
  var ByteReadPacketEmpty;
10
10
  function get_remaining(_this__u8e3s4) {
11
11
  _init_properties_ByteReadPacket_kt__28475y();
12
- return _this__u8e3s4.z2q().i1();
12
+ return _this__u8e3s4.n2r().i1();
13
13
  }
14
14
  function discard(_this__u8e3s4, count) {
15
15
  count = count === VOID ? new (Long())(-1, 2147483647) : count;
16
16
  _init_properties_ByteReadPacket_kt__28475y();
17
- _this__u8e3s4.c2r(count);
17
+ _this__u8e3s4.q2r(count);
18
18
  // Inline function 'kotlin.comparisons.minOf' call
19
19
  var b = get_remaining(_this__u8e3s4);
20
20
  var countToDiscard = count.a2(b) <= 0 ? count : b;
21
- _this__u8e3s4.z2q().b2s(countToDiscard);
21
+ _this__u8e3s4.n2r().p2s(countToDiscard);
22
22
  return countToDiscard;
23
23
  }
24
24
  function takeWhile(_this__u8e3s4, block) {
25
25
  _init_properties_ByteReadPacket_kt__28475y();
26
- while (!_this__u8e3s4.a2r() && block(_this__u8e3s4.z2q())) {
26
+ while (!_this__u8e3s4.o2r() && block(_this__u8e3s4.n2r())) {
27
27
  }
28
28
  }
29
29
  function ByteReadPacket(array, offset, length) {
@@ -32,7 +32,7 @@ function ByteReadPacket(array, offset, length) {
32
32
  _init_properties_ByteReadPacket_kt__28475y();
33
33
  // Inline function 'kotlin.apply' call
34
34
  var this_0 = new (Buffer())();
35
- this_0.n2s(array, offset, offset + length | 0);
35
+ this_0.b2t(array, offset, offset + length | 0);
36
36
  return this_0;
37
37
  }
38
38
  var properties_initialized_ByteReadPacket_kt_hw4st4;
@@ -6,7 +6,7 @@ import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../kotlin-kotlin-stdli
6
6
  function readAvailable(_this__u8e3s4, buffer, offset, length) {
7
7
  offset = offset === VOID ? 0 : offset;
8
8
  length = length === VOID ? buffer.length - offset | 0 : length;
9
- var result = _this__u8e3s4.c2s(buffer, offset, offset + length | 0);
9
+ var result = _this__u8e3s4.q2s(buffer, offset, offset + length | 0);
10
10
  return result === -1 ? 0 : result;
11
11
  }
12
12
  //region block: exports
@@ -21,33 +21,33 @@ import { toString1pkumu07cwy4m as toString } from '../../../../../../kotlin-kotl
21
21
  //region block: pre-declaration
22
22
  //endregion
23
23
  function toByteArray(_this__u8e3s4, charset) {
24
- charset = charset === VOID ? Charsets_getInstance().y3p_1 : charset;
25
- if (charset.equals(Charsets_getInstance().y3p_1))
24
+ charset = charset === VOID ? Charsets_getInstance().m3q_1 : charset;
25
+ if (charset.equals(Charsets_getInstance().m3q_1))
26
26
  return encodeToByteArray_0(_this__u8e3s4, VOID, VOID, true);
27
- return encodeToByteArray(charset.b3q(), _this__u8e3s4, 0, _this__u8e3s4.length);
27
+ return encodeToByteArray(charset.p3q(), _this__u8e3s4, 0, _this__u8e3s4.length);
28
28
  }
29
29
  function readText(_this__u8e3s4, charset, max) {
30
- charset = charset === VOID ? Charsets_getInstance().y3p_1 : charset;
30
+ charset = charset === VOID ? Charsets_getInstance().m3q_1 : charset;
31
31
  max = max === VOID ? 2147483647 : max;
32
- if (charset.equals(Charsets_getInstance().y3p_1)) {
32
+ if (charset.equals(Charsets_getInstance().m3q_1)) {
33
33
  if (max === 2147483647)
34
34
  return readString(_this__u8e3s4);
35
- var tmp0 = _this__u8e3s4.z2q().i1();
35
+ var tmp0 = _this__u8e3s4.n2r().i1();
36
36
  // Inline function 'kotlin.math.min' call
37
37
  var b = toLong(max);
38
38
  var count = tmp0.a2(b) <= 0 ? tmp0 : b;
39
39
  return readString_0(_this__u8e3s4, count);
40
40
  }
41
- return decode(charset.c3q(), _this__u8e3s4, max);
41
+ return decode(charset.q3q(), _this__u8e3s4, max);
42
42
  }
43
43
  function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
44
44
  fromIndex = fromIndex === VOID ? 0 : fromIndex;
45
45
  toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
46
- charset = charset === VOID ? Charsets_getInstance().y3p_1 : charset;
47
- if (charset === Charsets_getInstance().y3p_1) {
46
+ charset = charset === VOID ? Charsets_getInstance().m3q_1 : charset;
47
+ if (charset === Charsets_getInstance().m3q_1) {
48
48
  return writeString(_this__u8e3s4, toString(text), fromIndex, toIndex);
49
49
  }
50
- encodeToImpl(charset.b3q(), _this__u8e3s4, text, fromIndex, toIndex);
50
+ encodeToImpl(charset.p3q(), _this__u8e3s4, text, fromIndex, toIndex);
51
51
  }
52
52
  //region block: exports
53
53
  export {
@@ -17,7 +17,7 @@ function ByteArrayPool$1() {
17
17
  constructor() {
18
18
  super(128);
19
19
  }
20
- g3q() {
20
+ u3q() {
21
21
  return new Int8Array(4096);
22
22
  }
23
23
  }