@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.
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeComponents.mjs +2 -2
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoAccount.mjs +68 -68
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs +56 -56
- package/commons-commons-core/cash/atto/commons/AttoAddress.mjs +14 -14
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs +10 -10
- package/commons-commons-core/cash/atto/commons/AttoAmount.mjs +26 -26
- package/commons-commons-core/cash/atto/commons/AttoBlock.mjs +661 -661
- package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoHash.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/AttoHeight.mjs +17 -17
- package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs +26 -26
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs +42 -42
- package/commons-commons-core/cash/atto/commons/AttoSeed.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/AttoSignature.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs +67 -67
- package/commons-commons-core/cash/atto/commons/AttoSigner.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs +5 -5
- package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs +35 -35
- package/commons-commons-core/cash/atto/commons/AttoVersion.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AttoVote.mjs +37 -37
- package/commons-commons-core/cash/atto/commons/AttoWork.mjs +10 -10
- package/commons-commons-core/cash/atto/commons/Extensions.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/serialiazer/AttoAddressAsByteArraySerializer.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/serialiazer/InstantMillisSerializer.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/utils/Base32.mjs +9 -9
- package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.export.d.ts +3 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs +19 -5
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs +72 -72
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.d.ts +4 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs +16 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs +41 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs.map +1 -0
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs +812 -319
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs.map +1 -1
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs +226 -76
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs.map +1 -1
- package/commons-commons-node.mjs +1 -0
- package/commons-commons-node.mjs.map +1 -1
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +3 -3
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +50 -50
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.mjs +34 -34
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +56 -56
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +6 -6
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs +4 -4
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerFactory.mjs +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerNameResolver.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +7 -7
- package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +76 -76
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +133 -28
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs +28 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +5 -5
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +39 -39
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +34 -34
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-Util.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +189 -189
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +56 -56
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +149 -149
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +50 -50
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/UtilsJs.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/internal/-Utf8.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +37 -37
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +59 -59
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +70 -70
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +71 -71
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +13 -13
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +10 -10
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +36 -36
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +7 -7
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +84 -84
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +8 -8
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +141 -141
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +98 -98
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +151 -151
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOCommon.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngine.mjs +59 -59
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngineConfig.mjs +11 -11
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionFactory.mjs +22 -22
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionPipeline.nonJvm.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Endpoint.mjs +219 -219
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/EngineTasks.mjs +15 -15
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.mjs +2 -2
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/utils.mjs +241 -241
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +133 -133
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +85 -85
- package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +36 -36
- package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +41 -41
- package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +54 -54
- package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +51 -51
- package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +27 -27
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +60 -60
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +20 -20
- package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +60 -60
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +40 -40
- package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +21 -21
- package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/network/sockets/TimeoutExceptions.nonJvm.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +61 -61
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +45 -45
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +125 -125
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +138 -138
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +70 -70
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +53 -53
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +42 -42
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +63 -63
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +98 -98
- package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +33 -33
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +35 -35
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +13 -13
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +45 -45
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +65 -65
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +17 -17
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +64 -64
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +24 -24
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +25 -25
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +52 -52
- package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +35 -35
- package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +5 -5
- package/ktor-ktor-events/io/ktor/events/Events.mjs +5 -5
- package/ktor-ktor-http/io/ktor/http/Codecs.mjs +12 -12
- package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +89 -89
- package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +31 -31
- package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +114 -114
- package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +4 -4
- package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
- package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +66 -66
- package/ktor-ktor-http/io/ktor/http/Parameters.mjs +9 -9
- package/ktor-ktor-http/io/ktor/http/Query.mjs +3 -3
- package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +58 -58
- package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
- package/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
- package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +20 -20
- package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +25 -25
- package/ktor-ktor-http/io/ktor/http/Url.mjs +72 -72
- package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +25 -25
- package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +9 -9
- package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +8 -8
- package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +12 -12
- package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +4 -4
- package/ktor-ktor-http-cio/io/ktor/http/cio/ChunkedTransferEncoding.mjs +106 -106
- package/ktor-ktor-http-cio/io/ktor/http/cio/ConnectionOptions.mjs +31 -31
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpBody.mjs +15 -15
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +100 -100
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +69 -69
- package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +113 -113
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponse.mjs +9 -9
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponseBuilderJs.mjs +21 -21
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +17 -17
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +70 -70
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +21 -21
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Tokenizer.mjs +7 -7
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +141 -141
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +75 -75
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelUtils.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +230 -230
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +11 -11
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +72 -72
- package/ktor-ktor-io/io/ktor/utils/io/CloseHookByteWriteChannel.mjs +14 -14
- package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
- package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +26 -26
- package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
- package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
- package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +36 -36
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +4 -4
- package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
- package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +5 -5
- package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
- package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +27 -27
- package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +1 -1
- package/ktor-ktor-network/io/ktor/network/selector/SelectorManager.jsAndWasmShared.mjs +2 -2
- package/ktor-ktor-network/io/ktor/network/sockets/Builders.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/SocketAddress.nonJvm.mjs +9 -9
- package/ktor-ktor-network/io/ktor/network/sockets/SocketBase.mjs +50 -50
- package/ktor-ktor-network/io/ktor/network/sockets/SocketContext.mjs +106 -106
- package/ktor-ktor-network/io/ktor/network/sockets/SocketEngine.jsAndWasmShared.mjs +1 -1
- package/ktor-ktor-network/io/ktor/network/sockets/SocketOptions.mjs +30 -30
- package/ktor-ktor-network/io/ktor/network/sockets/SocketTimeoutException.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/Sockets.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/TcpSocketBuilder.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/TypeOfService.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.mjs +7 -7
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSCommon.mjs +9 -9
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfigBuilder.nonJvm.mjs +1 -1
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +5 -5
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +58 -58
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +122 -122
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +4 -4
- package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +6 -6
- package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +11 -11
- package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
- package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +33 -33
- package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +31 -31
- package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
- package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +83 -83
- package/ktor-ktor-utils/io/ktor/util/Text.mjs +7 -7
- package/ktor-ktor-utils/io/ktor/util/collections/ConcurrentMapJs.mjs +29 -29
- package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +67 -67
- package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
- package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +6 -6
- package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +10 -10
- package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/network/NetworkAddressJs.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +32 -32
- package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +25 -25
- package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +53 -53
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +49 -49
- package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
- package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +19 -19
- package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +41 -41
- package/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs +5 -5
- package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +9 -9
- package/ktor-ktor-websockets/io/ktor/websocket/ProtocolViolationException.mjs +5 -5
- package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocketCommon.mjs +150 -150
- package/package.json +1 -1
|
@@ -15,33 +15,33 @@ function RequestResponseBuilder() {
|
|
|
15
15
|
if (RequestResponseBuilderClass === VOID) {
|
|
16
16
|
class $ {
|
|
17
17
|
constructor() {
|
|
18
|
-
this.
|
|
18
|
+
this.n4o_1 = BytePacketBuilder();
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
writeText(this.
|
|
22
|
-
this.
|
|
23
|
-
writeText(this.
|
|
24
|
-
this.
|
|
25
|
-
writeText(this.
|
|
26
|
-
this.
|
|
27
|
-
this.
|
|
20
|
+
o4o(method, uri, version) {
|
|
21
|
+
writeText(this.n4o_1, method.i46_1);
|
|
22
|
+
this.n4o_1.l2t(32);
|
|
23
|
+
writeText(this.n4o_1, uri);
|
|
24
|
+
this.n4o_1.l2t(32);
|
|
25
|
+
writeText(this.n4o_1, version);
|
|
26
|
+
this.n4o_1.l2t(13);
|
|
27
|
+
this.n4o_1.l2t(10);
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
append(this.
|
|
31
|
-
append(this.
|
|
32
|
-
append(this.
|
|
33
|
-
this.
|
|
34
|
-
this.
|
|
29
|
+
p4o(name, value) {
|
|
30
|
+
append(this.n4o_1, name);
|
|
31
|
+
append(this.n4o_1, ': ');
|
|
32
|
+
append(this.n4o_1, value);
|
|
33
|
+
this.n4o_1.l2t(13);
|
|
34
|
+
this.n4o_1.l2t(10);
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
this.
|
|
38
|
-
this.
|
|
36
|
+
q4o() {
|
|
37
|
+
this.n4o_1.l2t(13);
|
|
38
|
+
this.n4o_1.l2t(10);
|
|
39
39
|
}
|
|
40
40
|
z1i() {
|
|
41
|
-
return build(this.
|
|
41
|
+
return build(this.n4o_1);
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
this.
|
|
43
|
+
m2o() {
|
|
44
|
+
this.n4o_1.v5();
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
initMetadataForClass($, 'RequestResponseBuilder', RequestResponseBuilder);
|
|
@@ -98,16 +98,16 @@ function Node() {
|
|
|
98
98
|
if (NodeClass === VOID) {
|
|
99
99
|
class $ {
|
|
100
100
|
constructor(ch, exact, children) {
|
|
101
|
-
this.
|
|
102
|
-
this.
|
|
103
|
-
this.
|
|
101
|
+
this.n4n_1 = ch;
|
|
102
|
+
this.o4n_1 = exact;
|
|
103
|
+
this.p4n_1 = children;
|
|
104
104
|
var tmp = this;
|
|
105
105
|
var tmp_0 = 0;
|
|
106
106
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
107
107
|
var tmp_1 = Array(256);
|
|
108
108
|
while (tmp_0 < 256) {
|
|
109
109
|
var tmp_2 = tmp_0;
|
|
110
|
-
var tmp0 = this.
|
|
110
|
+
var tmp0 = this.p4n_1;
|
|
111
111
|
var tmp$ret$3;
|
|
112
112
|
$l$block_0: {
|
|
113
113
|
// Inline function 'kotlin.collections.singleOrNull' call
|
|
@@ -117,7 +117,7 @@ function Node() {
|
|
|
117
117
|
while (_iterator__ex2g4s.e1()) {
|
|
118
118
|
var element = _iterator__ex2g4s.f1();
|
|
119
119
|
// Inline function 'kotlin.code' call
|
|
120
|
-
var this_0 = element.
|
|
120
|
+
var this_0 = element.n4n_1;
|
|
121
121
|
if (Char__toInt_impl_vasixd(this_0) === tmp_2) {
|
|
122
122
|
if (found) {
|
|
123
123
|
tmp$ret$3 = null;
|
|
@@ -136,7 +136,7 @@ function Node() {
|
|
|
136
136
|
tmp_1[tmp_2] = tmp$ret$3;
|
|
137
137
|
tmp_0 = tmp_0 + 1 | 0;
|
|
138
138
|
}
|
|
139
|
-
tmp.
|
|
139
|
+
tmp.q4n_1 = tmp_1;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
initMetadataForClass($, 'Node');
|
|
@@ -148,11 +148,11 @@ var CompanionClass;
|
|
|
148
148
|
function Companion() {
|
|
149
149
|
if (CompanionClass === VOID) {
|
|
150
150
|
class $ {
|
|
151
|
-
|
|
151
|
+
s4j(from) {
|
|
152
152
|
var tmp = AsciiCharTree$Companion$build$lambda;
|
|
153
|
-
return this.
|
|
153
|
+
return this.a4g(from, tmp, AsciiCharTree$Companion$build$lambda_0);
|
|
154
154
|
}
|
|
155
|
-
|
|
155
|
+
a4g(from, length, charAt) {
|
|
156
156
|
var tmp$ret$0;
|
|
157
157
|
$l$block_0: {
|
|
158
158
|
// Inline function 'kotlin.collections.maxByOrNull' call
|
|
@@ -239,13 +239,13 @@ function AsciiCharTree() {
|
|
|
239
239
|
if (AsciiCharTreeClass === VOID) {
|
|
240
240
|
class $ {
|
|
241
241
|
constructor(root) {
|
|
242
|
-
this.
|
|
242
|
+
this.u4f_1 = root;
|
|
243
243
|
}
|
|
244
|
-
|
|
244
|
+
v4f(sequence, fromIdx, end, lowerCase, stopPredicate) {
|
|
245
245
|
// Inline function 'kotlin.text.isEmpty' call
|
|
246
246
|
if (charSequenceLength(sequence) === 0)
|
|
247
247
|
throw IllegalArgumentException().u("Couldn't search in char tree for empty string");
|
|
248
|
-
var node = this.
|
|
248
|
+
var node = this.u4f_1;
|
|
249
249
|
var inductionVariable = fromIdx;
|
|
250
250
|
if (inductionVariable < end)
|
|
251
251
|
$l$loop: do {
|
|
@@ -256,12 +256,12 @@ function AsciiCharTree() {
|
|
|
256
256
|
var currentCode = Char__toInt_impl_vasixd(current);
|
|
257
257
|
if (stopPredicate(new (Char())(current), currentCode))
|
|
258
258
|
break $l$loop;
|
|
259
|
-
var tmp0_elvis_lhs = node.
|
|
259
|
+
var tmp0_elvis_lhs = node.q4n_1[currentCode];
|
|
260
260
|
var tmp;
|
|
261
261
|
if (tmp0_elvis_lhs == null) {
|
|
262
262
|
var tmp_0;
|
|
263
263
|
if (lowerCase) {
|
|
264
|
-
var tmp_1 = node.
|
|
264
|
+
var tmp_1 = node.q4n_1;
|
|
265
265
|
// Inline function 'kotlin.text.lowercaseChar' call
|
|
266
266
|
// Inline function 'kotlin.text.lowercase' call
|
|
267
267
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -288,13 +288,13 @@ function AsciiCharTree() {
|
|
|
288
288
|
node = nextNode;
|
|
289
289
|
}
|
|
290
290
|
while (inductionVariable < end);
|
|
291
|
-
return node.
|
|
291
|
+
return node.o4n_1;
|
|
292
292
|
}
|
|
293
|
-
|
|
293
|
+
c4g(sequence, fromIdx, end, lowerCase, stopPredicate, $super) {
|
|
294
294
|
fromIdx = fromIdx === VOID ? 0 : fromIdx;
|
|
295
295
|
end = end === VOID ? charSequenceLength(sequence) : end;
|
|
296
296
|
lowerCase = lowerCase === VOID ? false : lowerCase;
|
|
297
|
-
return $super === VOID ? this.
|
|
297
|
+
return $super === VOID ? this.v4f(sequence, fromIdx, end, lowerCase, stopPredicate) : $super.v4f.call(this, sequence, fromIdx, end, lowerCase, stopPredicate);
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
initMetadataForClass($, 'AsciiCharTree');
|
|
@@ -27,7 +27,7 @@ var imul = Math.imul;
|
|
|
27
27
|
//region block: pre-declaration
|
|
28
28
|
//endregion
|
|
29
29
|
function getImpl($this, index) {
|
|
30
|
-
return bufferForIndex($this, index)[index % ensureNotNull($this.
|
|
30
|
+
return bufferForIndex($this, index)[index % ensureNotNull($this.w4h_1).length | 0];
|
|
31
31
|
}
|
|
32
32
|
function copy($this, startIndex, endIndex) {
|
|
33
33
|
if (startIndex === endIndex)
|
|
@@ -60,27 +60,27 @@ function SubSequenceImpl() {
|
|
|
60
60
|
if (SubSequenceImplClass === VOID) {
|
|
61
61
|
class $ {
|
|
62
62
|
constructor($outer, start, end) {
|
|
63
|
-
this.
|
|
64
|
-
this.
|
|
65
|
-
this.
|
|
66
|
-
this.
|
|
63
|
+
this.u4n_1 = $outer;
|
|
64
|
+
this.r4n_1 = start;
|
|
65
|
+
this.s4n_1 = end;
|
|
66
|
+
this.t4n_1 = null;
|
|
67
67
|
}
|
|
68
68
|
a() {
|
|
69
|
-
return this.
|
|
69
|
+
return this.s4n_1 - this.r4n_1 | 0;
|
|
70
70
|
}
|
|
71
71
|
b(index) {
|
|
72
|
-
var withOffset = index + this.
|
|
72
|
+
var withOffset = index + this.r4n_1 | 0;
|
|
73
73
|
// Inline function 'kotlin.require' call
|
|
74
74
|
if (!(index >= 0)) {
|
|
75
75
|
var message = 'index is negative: ' + index;
|
|
76
76
|
throw IllegalArgumentException().u(toString(message));
|
|
77
77
|
}
|
|
78
78
|
// Inline function 'kotlin.require' call
|
|
79
|
-
if (!(withOffset < this.
|
|
79
|
+
if (!(withOffset < this.s4n_1)) {
|
|
80
80
|
var message_0 = 'index (' + index + ') should be less than length (' + this.a() + ')';
|
|
81
81
|
throw IllegalArgumentException().u(toString(message_0));
|
|
82
82
|
}
|
|
83
|
-
return getImpl(this.
|
|
83
|
+
return getImpl(this.u4n_1, withOffset);
|
|
84
84
|
}
|
|
85
85
|
c(startIndex, endIndex) {
|
|
86
86
|
// Inline function 'kotlin.require' call
|
|
@@ -94,21 +94,21 @@ function SubSequenceImpl() {
|
|
|
94
94
|
throw IllegalArgumentException().u(toString(message_0));
|
|
95
95
|
}
|
|
96
96
|
// Inline function 'kotlin.require' call
|
|
97
|
-
if (!(endIndex <= (this.
|
|
97
|
+
if (!(endIndex <= (this.s4n_1 - this.r4n_1 | 0))) {
|
|
98
98
|
var message_1 = 'end should be less than length (' + this.a() + ')';
|
|
99
99
|
throw IllegalArgumentException().u(toString(message_1));
|
|
100
100
|
}
|
|
101
101
|
if (startIndex === endIndex)
|
|
102
102
|
return '';
|
|
103
|
-
return new (SubSequenceImpl())(this.
|
|
103
|
+
return new (SubSequenceImpl())(this.u4n_1, this.r4n_1 + startIndex | 0, this.r4n_1 + endIndex | 0);
|
|
104
104
|
}
|
|
105
105
|
toString() {
|
|
106
|
-
var tmp0_elvis_lhs = this.
|
|
106
|
+
var tmp0_elvis_lhs = this.t4n_1;
|
|
107
107
|
var tmp;
|
|
108
108
|
if (tmp0_elvis_lhs == null) {
|
|
109
109
|
// Inline function 'kotlin.also' call
|
|
110
|
-
var this_0 = toString(copy(this.
|
|
111
|
-
this.
|
|
110
|
+
var this_0 = toString(copy(this.u4n_1, this.r4n_1, this.s4n_1));
|
|
111
|
+
this.t4n_1 = this_0;
|
|
112
112
|
tmp = this_0;
|
|
113
113
|
} else {
|
|
114
114
|
tmp = tmp0_elvis_lhs;
|
|
@@ -120,12 +120,12 @@ function SubSequenceImpl() {
|
|
|
120
120
|
return false;
|
|
121
121
|
if (!(charSequenceLength(other) === this.a()))
|
|
122
122
|
return false;
|
|
123
|
-
return rangeEqualsImpl(this.
|
|
123
|
+
return rangeEqualsImpl(this.u4n_1, this.r4n_1, other, 0, this.a());
|
|
124
124
|
}
|
|
125
125
|
hashCode() {
|
|
126
|
-
var tmp0_safe_receiver = this.
|
|
126
|
+
var tmp0_safe_receiver = this.t4n_1;
|
|
127
127
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
128
|
-
return tmp1_elvis_lhs == null ? hashCodeImpl(this.
|
|
128
|
+
return tmp1_elvis_lhs == null ? hashCodeImpl(this.u4n_1, this.r4n_1, this.s4n_1) : tmp1_elvis_lhs;
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
initMetadataForClass($, 'SubSequenceImpl', VOID, VOID, [CharSequence()]);
|
|
@@ -134,12 +134,12 @@ function SubSequenceImpl() {
|
|
|
134
134
|
return SubSequenceImplClass;
|
|
135
135
|
}
|
|
136
136
|
function bufferForIndex($this, index) {
|
|
137
|
-
var list = $this.
|
|
137
|
+
var list = $this.v4h_1;
|
|
138
138
|
if (list == null) {
|
|
139
139
|
if (index >= 2048) {
|
|
140
140
|
throwSingleBuffer($this, index);
|
|
141
141
|
}
|
|
142
|
-
var tmp0_elvis_lhs = $this.
|
|
142
|
+
var tmp0_elvis_lhs = $this.w4h_1;
|
|
143
143
|
var tmp;
|
|
144
144
|
if (tmp0_elvis_lhs == null) {
|
|
145
145
|
throwSingleBuffer($this, index);
|
|
@@ -148,29 +148,29 @@ function bufferForIndex($this, index) {
|
|
|
148
148
|
}
|
|
149
149
|
return tmp;
|
|
150
150
|
}
|
|
151
|
-
return list.j1(index / ensureNotNull($this.
|
|
151
|
+
return list.j1(index / ensureNotNull($this.w4h_1).length | 0);
|
|
152
152
|
}
|
|
153
153
|
function throwSingleBuffer($this, index) {
|
|
154
|
-
if ($this.
|
|
154
|
+
if ($this.y4h_1)
|
|
155
155
|
throw IllegalStateException().o4('Buffer is already released');
|
|
156
156
|
throw IndexOutOfBoundsException().hf('' + index + ' is not in range [0; ' + currentPosition($this) + ')');
|
|
157
157
|
}
|
|
158
158
|
function nonFullBuffer($this) {
|
|
159
|
-
return $this.
|
|
159
|
+
return $this.z4h_1 === 0 ? appendNewArray($this) : ensureNotNull($this.w4h_1);
|
|
160
160
|
}
|
|
161
161
|
function appendNewArray($this) {
|
|
162
|
-
var newBuffer = $this.
|
|
163
|
-
var existing = $this.
|
|
164
|
-
$this.
|
|
165
|
-
$this.
|
|
166
|
-
$this.
|
|
162
|
+
var newBuffer = $this.u4h_1.b3r();
|
|
163
|
+
var existing = $this.w4h_1;
|
|
164
|
+
$this.w4h_1 = newBuffer;
|
|
165
|
+
$this.z4h_1 = newBuffer.length;
|
|
166
|
+
$this.y4h_1 = false;
|
|
167
167
|
if (!(existing == null)) {
|
|
168
|
-
var tmp0_elvis_lhs = $this.
|
|
168
|
+
var tmp0_elvis_lhs = $this.v4h_1;
|
|
169
169
|
var tmp;
|
|
170
170
|
if (tmp0_elvis_lhs == null) {
|
|
171
171
|
// Inline function 'kotlin.also' call
|
|
172
172
|
var this_0 = ArrayList().l1();
|
|
173
|
-
$this.
|
|
173
|
+
$this.v4h_1 = this_0;
|
|
174
174
|
this_0.m(existing);
|
|
175
175
|
tmp = this_0;
|
|
176
176
|
} else {
|
|
@@ -209,7 +209,7 @@ function hashCodeImpl($this, start, end) {
|
|
|
209
209
|
return hc;
|
|
210
210
|
}
|
|
211
211
|
function currentPosition($this) {
|
|
212
|
-
return ensureNotNull($this.
|
|
212
|
+
return ensureNotNull($this.w4h_1).length - $this.z4h_1 | 0;
|
|
213
213
|
}
|
|
214
214
|
var CharArrayBuilderClass;
|
|
215
215
|
function CharArrayBuilder() {
|
|
@@ -217,16 +217,16 @@ function CharArrayBuilder() {
|
|
|
217
217
|
class $ {
|
|
218
218
|
constructor(pool) {
|
|
219
219
|
pool = pool === VOID ? get_CharArrayPool() : pool;
|
|
220
|
-
this.
|
|
221
|
-
this.
|
|
222
|
-
this.
|
|
223
|
-
this.
|
|
224
|
-
this.
|
|
225
|
-
this.
|
|
226
|
-
this.
|
|
220
|
+
this.u4h_1 = pool;
|
|
221
|
+
this.v4h_1 = null;
|
|
222
|
+
this.w4h_1 = null;
|
|
223
|
+
this.x4h_1 = null;
|
|
224
|
+
this.y4h_1 = false;
|
|
225
|
+
this.z4h_1 = 0;
|
|
226
|
+
this.a4i_1 = 0;
|
|
227
227
|
}
|
|
228
228
|
a() {
|
|
229
|
-
return this.
|
|
229
|
+
return this.a4i_1;
|
|
230
230
|
}
|
|
231
231
|
b(index) {
|
|
232
232
|
// Inline function 'kotlin.require' call
|
|
@@ -235,8 +235,8 @@ function CharArrayBuilder() {
|
|
|
235
235
|
throw IllegalArgumentException().u(toString(message));
|
|
236
236
|
}
|
|
237
237
|
// Inline function 'kotlin.require' call
|
|
238
|
-
if (!(index < this.
|
|
239
|
-
var message_0 = 'index ' + index + ' is not in range [0, ' + this.
|
|
238
|
+
if (!(index < this.a4i_1)) {
|
|
239
|
+
var message_0 = 'index ' + index + ' is not in range [0, ' + this.a4i_1 + ')';
|
|
240
240
|
throw IllegalArgumentException().u(toString(message_0));
|
|
241
241
|
}
|
|
242
242
|
return getImpl(this, index);
|
|
@@ -253,19 +253,19 @@ function CharArrayBuilder() {
|
|
|
253
253
|
throw IllegalArgumentException().u(toString(message_0));
|
|
254
254
|
}
|
|
255
255
|
// Inline function 'kotlin.require' call
|
|
256
|
-
if (!(endIndex <= this.
|
|
257
|
-
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.
|
|
256
|
+
if (!(endIndex <= this.a4i_1)) {
|
|
257
|
+
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.a4i_1 + ')';
|
|
258
258
|
throw IllegalArgumentException().u(toString(message_1));
|
|
259
259
|
}
|
|
260
260
|
return new (SubSequenceImpl())(this, startIndex, endIndex);
|
|
261
261
|
}
|
|
262
262
|
toString() {
|
|
263
|
-
var tmp0_elvis_lhs = this.
|
|
263
|
+
var tmp0_elvis_lhs = this.x4h_1;
|
|
264
264
|
var tmp;
|
|
265
265
|
if (tmp0_elvis_lhs == null) {
|
|
266
266
|
// Inline function 'kotlin.also' call
|
|
267
|
-
var this_0 = toString(copy(this, 0, this.
|
|
268
|
-
this.
|
|
267
|
+
var this_0 = toString(copy(this, 0, this.a4i_1));
|
|
268
|
+
this.x4h_1 = this_0;
|
|
269
269
|
tmp = this_0;
|
|
270
270
|
} else {
|
|
271
271
|
tmp = tmp0_elvis_lhs;
|
|
@@ -275,20 +275,20 @@ function CharArrayBuilder() {
|
|
|
275
275
|
equals(other) {
|
|
276
276
|
if (!(!(other == null) ? isCharSequence(other) : false))
|
|
277
277
|
return false;
|
|
278
|
-
if (!(this.
|
|
278
|
+
if (!(this.a4i_1 === charSequenceLength(other)))
|
|
279
279
|
return false;
|
|
280
|
-
return rangeEqualsImpl(this, 0, other, 0, this.
|
|
280
|
+
return rangeEqualsImpl(this, 0, other, 0, this.a4i_1);
|
|
281
281
|
}
|
|
282
282
|
hashCode() {
|
|
283
|
-
var tmp0_safe_receiver = this.
|
|
283
|
+
var tmp0_safe_receiver = this.x4h_1;
|
|
284
284
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
285
|
-
return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.
|
|
285
|
+
return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.a4i_1) : tmp1_elvis_lhs;
|
|
286
286
|
}
|
|
287
287
|
kb(value) {
|
|
288
|
-
nonFullBuffer(this)[ensureNotNull(this.
|
|
289
|
-
this.
|
|
290
|
-
this.
|
|
291
|
-
this.
|
|
288
|
+
nonFullBuffer(this)[ensureNotNull(this.w4h_1).length - this.z4h_1 | 0] = value;
|
|
289
|
+
this.x4h_1 = null;
|
|
290
|
+
this.z4h_1 = this.z4h_1 - 1 | 0;
|
|
291
|
+
this.a4i_1 = this.a4i_1 + 1 | 0;
|
|
292
292
|
return this;
|
|
293
293
|
}
|
|
294
294
|
vh(value, startIndex, endIndex) {
|
|
@@ -297,10 +297,10 @@ function CharArrayBuilder() {
|
|
|
297
297
|
var current = startIndex;
|
|
298
298
|
while (current < endIndex) {
|
|
299
299
|
var buffer = nonFullBuffer(this);
|
|
300
|
-
var offset = buffer.length - this.
|
|
300
|
+
var offset = buffer.length - this.z4h_1 | 0;
|
|
301
301
|
var tmp0 = endIndex - current | 0;
|
|
302
302
|
// Inline function 'kotlin.math.min' call
|
|
303
|
-
var b = this.
|
|
303
|
+
var b = this.z4h_1;
|
|
304
304
|
var bytesToCopy = Math.min(tmp0, b);
|
|
305
305
|
var inductionVariable = 0;
|
|
306
306
|
if (inductionVariable < bytesToCopy)
|
|
@@ -311,10 +311,10 @@ function CharArrayBuilder() {
|
|
|
311
311
|
}
|
|
312
312
|
while (inductionVariable < bytesToCopy);
|
|
313
313
|
current = current + bytesToCopy | 0;
|
|
314
|
-
this.
|
|
314
|
+
this.z4h_1 = this.z4h_1 - bytesToCopy | 0;
|
|
315
315
|
}
|
|
316
|
-
this.
|
|
317
|
-
this.
|
|
316
|
+
this.x4h_1 = null;
|
|
317
|
+
this.a4i_1 = this.a4i_1 + (endIndex - startIndex | 0) | 0;
|
|
318
318
|
return this;
|
|
319
319
|
}
|
|
320
320
|
b1(value) {
|
|
@@ -322,34 +322,34 @@ function CharArrayBuilder() {
|
|
|
322
322
|
return this;
|
|
323
323
|
return this.vh(value, 0, charSequenceLength(value));
|
|
324
324
|
}
|
|
325
|
-
|
|
326
|
-
var list = this.
|
|
325
|
+
m2o() {
|
|
326
|
+
var list = this.v4h_1;
|
|
327
327
|
if (!(list == null)) {
|
|
328
|
-
this.
|
|
328
|
+
this.w4h_1 = null;
|
|
329
329
|
var inductionVariable = 0;
|
|
330
330
|
var last = list.i1();
|
|
331
331
|
if (inductionVariable < last)
|
|
332
332
|
do {
|
|
333
333
|
var i = inductionVariable;
|
|
334
334
|
inductionVariable = inductionVariable + 1 | 0;
|
|
335
|
-
this.
|
|
335
|
+
this.u4h_1.c3r(list.j1(i));
|
|
336
336
|
}
|
|
337
337
|
while (inductionVariable < last);
|
|
338
338
|
} else {
|
|
339
|
-
var tmp0_safe_receiver = this.
|
|
339
|
+
var tmp0_safe_receiver = this.w4h_1;
|
|
340
340
|
if (tmp0_safe_receiver == null)
|
|
341
341
|
null;
|
|
342
342
|
else {
|
|
343
343
|
// Inline function 'kotlin.let' call
|
|
344
|
-
this.
|
|
344
|
+
this.u4h_1.c3r(tmp0_safe_receiver);
|
|
345
345
|
}
|
|
346
|
-
this.
|
|
346
|
+
this.w4h_1 = null;
|
|
347
347
|
}
|
|
348
|
-
this.
|
|
349
|
-
this.
|
|
350
|
-
this.
|
|
351
|
-
this.
|
|
352
|
-
this.
|
|
348
|
+
this.y4h_1 = true;
|
|
349
|
+
this.v4h_1 = null;
|
|
350
|
+
this.x4h_1 = null;
|
|
351
|
+
this.a4i_1 = 0;
|
|
352
|
+
this.z4h_1 = 0;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
initMetadataForClass($, 'CharArrayBuilder', CharArrayBuilder, VOID, [CharSequence()]);
|
|
@@ -17,7 +17,7 @@ var CharArrayPool$1Class;
|
|
|
17
17
|
function CharArrayPool$1() {
|
|
18
18
|
if (CharArrayPool$1Class === VOID) {
|
|
19
19
|
class $ extends NoPoolImpl() {
|
|
20
|
-
|
|
20
|
+
b3r() {
|
|
21
21
|
return charArray(2048);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -33,7 +33,7 @@ function CharArrayPool$2() {
|
|
|
33
33
|
constructor() {
|
|
34
34
|
super(4096);
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
u3q() {
|
|
37
37
|
return charArray(2048);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -257,11 +257,11 @@ function numberFormatException_0(cs, idx) {
|
|
|
257
257
|
}
|
|
258
258
|
function DefaultHttpMethods$lambda(it) {
|
|
259
259
|
_init_properties_Chars_kt__d3i39x();
|
|
260
|
-
return it.
|
|
260
|
+
return it.i46_1.length;
|
|
261
261
|
}
|
|
262
262
|
function DefaultHttpMethods$lambda_0(m, idx) {
|
|
263
263
|
_init_properties_Chars_kt__d3i39x();
|
|
264
|
-
return new (Char())(charCodeAt(m.
|
|
264
|
+
return new (Char())(charCodeAt(m.i46_1, idx));
|
|
265
265
|
}
|
|
266
266
|
var $writeIntHexCOROUTINE$Class;
|
|
267
267
|
function $writeIntHexCOROUTINE$() {
|
|
@@ -269,8 +269,8 @@ function $writeIntHexCOROUTINE$() {
|
|
|
269
269
|
class $ extends CoroutineImpl() {
|
|
270
270
|
constructor(_this__u8e3s4, value, resultContinuation) {
|
|
271
271
|
super(resultContinuation);
|
|
272
|
-
this.
|
|
273
|
-
this.
|
|
272
|
+
this.g4o_1 = _this__u8e3s4;
|
|
273
|
+
this.h4o_1 = value;
|
|
274
274
|
}
|
|
275
275
|
ic() {
|
|
276
276
|
var suspendResult = this.cc_1;
|
|
@@ -280,29 +280,29 @@ function $writeIntHexCOROUTINE$() {
|
|
|
280
280
|
switch (tmp) {
|
|
281
281
|
case 0:
|
|
282
282
|
this.bc_1 = 8;
|
|
283
|
-
if (!(this.
|
|
283
|
+
if (!(this.h4o_1 > 0)) {
|
|
284
284
|
var message = 'Does only work for positive numbers';
|
|
285
285
|
throw IllegalArgumentException().u(toString_0(message));
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
this.
|
|
289
|
-
this.
|
|
290
|
-
this.
|
|
288
|
+
this.i4o_1 = this.h4o_1;
|
|
289
|
+
this.j4o_1 = get_HexLetterTable();
|
|
290
|
+
this.k4o_1 = 0;
|
|
291
291
|
this.ac_1 = 1;
|
|
292
292
|
continue $sm;
|
|
293
293
|
case 1:
|
|
294
|
-
var _unary__edvuaz = this.
|
|
295
|
-
this.
|
|
294
|
+
var _unary__edvuaz = this.k4o_1;
|
|
295
|
+
this.k4o_1 = _unary__edvuaz + 1 | 0;
|
|
296
296
|
if (!(_unary__edvuaz < 8)) {
|
|
297
297
|
this.ac_1 = 4;
|
|
298
298
|
continue $sm;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
this.
|
|
302
|
-
this.
|
|
303
|
-
if (!(this.
|
|
301
|
+
this.l4o_1 = this.i4o_1 >>> 28 | 0;
|
|
302
|
+
this.i4o_1 = this.i4o_1 << 4;
|
|
303
|
+
if (!(this.l4o_1 === 0)) {
|
|
304
304
|
this.ac_1 = 3;
|
|
305
|
-
suspendResult = writeByte(this.
|
|
305
|
+
suspendResult = writeByte(this.g4o_1, this.j4o_1[this.l4o_1], this);
|
|
306
306
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
307
307
|
return suspendResult;
|
|
308
308
|
}
|
|
@@ -322,17 +322,17 @@ function $writeIntHexCOROUTINE$() {
|
|
|
322
322
|
this.ac_1 = 5;
|
|
323
323
|
continue $sm;
|
|
324
324
|
case 5:
|
|
325
|
-
var _unary__edvuaz_0 = this.
|
|
326
|
-
this.
|
|
325
|
+
var _unary__edvuaz_0 = this.k4o_1;
|
|
326
|
+
this.k4o_1 = _unary__edvuaz_0 + 1 | 0;
|
|
327
327
|
if (!(_unary__edvuaz_0 < 8)) {
|
|
328
328
|
this.ac_1 = 7;
|
|
329
329
|
continue $sm;
|
|
330
330
|
}
|
|
331
331
|
|
|
332
|
-
this.
|
|
333
|
-
this.
|
|
332
|
+
this.m4o_1 = this.i4o_1 >>> 28 | 0;
|
|
333
|
+
this.i4o_1 = this.i4o_1 << 4;
|
|
334
334
|
this.ac_1 = 6;
|
|
335
|
-
suspendResult = writeByte(this.
|
|
335
|
+
suspendResult = writeByte(this.g4o_1, this.j4o_1[this.m4o_1], this);
|
|
336
336
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
337
337
|
return suspendResult;
|
|
338
338
|
}
|
|
@@ -368,9 +368,9 @@ function _init_properties_Chars_kt__d3i39x() {
|
|
|
368
368
|
if (!properties_initialized_Chars_kt_phjfhp) {
|
|
369
369
|
properties_initialized_Chars_kt_phjfhp = true;
|
|
370
370
|
var tmp = Companion_instance;
|
|
371
|
-
var tmp_0 = Companion_getInstance().
|
|
371
|
+
var tmp_0 = Companion_getInstance().h46_1;
|
|
372
372
|
var tmp_1 = DefaultHttpMethods$lambda;
|
|
373
|
-
DefaultHttpMethods = tmp.
|
|
373
|
+
DefaultHttpMethods = tmp.a4g(tmp_0, tmp_1, DefaultHttpMethods$lambda_0);
|
|
374
374
|
// Inline function 'kotlin.collections.map' call
|
|
375
375
|
var this_0 = numberRangeToNumber(0, 255);
|
|
376
376
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -10,9 +10,9 @@ var UnsupportedMediaTypeExceptionCIOClass;
|
|
|
10
10
|
function UnsupportedMediaTypeExceptionCIO() {
|
|
11
11
|
if (UnsupportedMediaTypeExceptionCIOClass === VOID) {
|
|
12
12
|
class $ extends IOException() {
|
|
13
|
-
static
|
|
14
|
-
var $this = this.
|
|
15
|
-
captureStack($this, $this.
|
|
13
|
+
static a4k(message) {
|
|
14
|
+
var $this = this.z2u(message);
|
|
15
|
+
captureStack($this, $this.z4j_1);
|
|
16
16
|
return $this;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -9,11 +9,11 @@ function MutableRange() {
|
|
|
9
9
|
if (MutableRangeClass === VOID) {
|
|
10
10
|
class $ {
|
|
11
11
|
constructor(start, end) {
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
12
|
+
this.z4i_1 = start;
|
|
13
|
+
this.a4j_1 = end;
|
|
14
14
|
}
|
|
15
15
|
toString() {
|
|
16
|
-
return 'MutableRange(start=' + this.
|
|
16
|
+
return 'MutableRange(start=' + this.z4i_1 + ', end=' + this.a4j_1 + ')';
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
initMetadataForClass($, 'MutableRange');
|
|
@@ -10,25 +10,25 @@ import { _Char___init__impl__6a9atx2js6krycynjoo as _Char___init__impl__6a9atx }
|
|
|
10
10
|
//region block: pre-declaration
|
|
11
11
|
//endregion
|
|
12
12
|
function skipSpaces(text, range) {
|
|
13
|
-
var idx = range.
|
|
14
|
-
var end = range.
|
|
13
|
+
var idx = range.z4i_1;
|
|
14
|
+
var end = range.a4j_1;
|
|
15
15
|
if (idx >= end || !isWhitespace(charSequenceGet(text, idx)))
|
|
16
16
|
return Unit_instance;
|
|
17
17
|
idx = idx + 1 | 0;
|
|
18
18
|
$l$loop: while (idx < end && isWhitespace(charSequenceGet(text, idx))) {
|
|
19
19
|
idx = idx + 1 | 0;
|
|
20
20
|
}
|
|
21
|
-
range.
|
|
21
|
+
range.z4i_1 = idx;
|
|
22
22
|
}
|
|
23
23
|
function nextToken(text, range) {
|
|
24
24
|
var spaceOrEnd = findSpaceOrEnd(text, range);
|
|
25
|
-
var s = charSequenceSubSequence(text, range.
|
|
26
|
-
range.
|
|
25
|
+
var s = charSequenceSubSequence(text, range.z4i_1, spaceOrEnd);
|
|
26
|
+
range.z4i_1 = spaceOrEnd;
|
|
27
27
|
return s;
|
|
28
28
|
}
|
|
29
29
|
function findSpaceOrEnd(text, range) {
|
|
30
|
-
var idx = range.
|
|
31
|
-
var end = range.
|
|
30
|
+
var idx = range.z4i_1;
|
|
31
|
+
var end = range.a4j_1;
|
|
32
32
|
if (idx >= end || isWhitespace(charSequenceGet(text, idx)))
|
|
33
33
|
return idx;
|
|
34
34
|
idx = idx + 1 | 0;
|