@attocash/commons-js 5.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-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-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/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/unsafe/UnsafeByteStringOperations.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +189 -189
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +56 -56
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +149 -149
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +50 -50
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
- 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/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 +104 -104
- 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
|
@@ -44,56 +44,56 @@ import { charArray2ujmm1qusno00 as charArray } from '../../../../../kotlin-kotli
|
|
|
44
44
|
//region block: pre-declaration
|
|
45
45
|
//endregion
|
|
46
46
|
function appendEscape($this, lastPosition, current) {
|
|
47
|
-
$this.
|
|
47
|
+
$this.s6r(lastPosition, current);
|
|
48
48
|
return appendEsc($this, current + 1 | 0);
|
|
49
49
|
}
|
|
50
50
|
function decodedString($this, lastPosition, currentPosition) {
|
|
51
|
-
$this.
|
|
52
|
-
var result = $this.
|
|
53
|
-
$this.
|
|
51
|
+
$this.s6r(lastPosition, currentPosition);
|
|
52
|
+
var result = $this.c6h_1.toString();
|
|
53
|
+
$this.c6h_1.bi(0);
|
|
54
54
|
return result;
|
|
55
55
|
}
|
|
56
56
|
function takePeeked($this) {
|
|
57
57
|
// Inline function 'kotlin.also' call
|
|
58
|
-
var this_0 = ensureNotNull($this.
|
|
59
|
-
$this.
|
|
58
|
+
var this_0 = ensureNotNull($this.b6h_1);
|
|
59
|
+
$this.b6h_1 = null;
|
|
60
60
|
return this_0;
|
|
61
61
|
}
|
|
62
62
|
function wasUnquotedString($this) {
|
|
63
|
-
return !(charSequenceGet($this.
|
|
63
|
+
return !(charSequenceGet($this.t6r(), $this.z6g_1 - 1 | 0) === _Char___init__impl__6a9atx(34));
|
|
64
64
|
}
|
|
65
65
|
function appendEsc($this, startPosition) {
|
|
66
66
|
var currentPosition = startPosition;
|
|
67
|
-
currentPosition = $this.
|
|
67
|
+
currentPosition = $this.u6r(currentPosition);
|
|
68
68
|
if (currentPosition === -1) {
|
|
69
|
-
$this.
|
|
69
|
+
$this.i6l('Expected escape sequence to continue, got EOF');
|
|
70
70
|
}
|
|
71
|
-
var tmp = $this.
|
|
71
|
+
var tmp = $this.t6r();
|
|
72
72
|
var _unary__edvuaz = currentPosition;
|
|
73
73
|
currentPosition = _unary__edvuaz + 1 | 0;
|
|
74
74
|
var currentChar = charSequenceGet(tmp, _unary__edvuaz);
|
|
75
75
|
if (currentChar === _Char___init__impl__6a9atx(117)) {
|
|
76
|
-
return appendHex($this, $this.
|
|
76
|
+
return appendHex($this, $this.t6r(), currentPosition);
|
|
77
77
|
}
|
|
78
78
|
// Inline function 'kotlin.code' call
|
|
79
79
|
var tmp$ret$0 = Char__toInt_impl_vasixd(currentChar);
|
|
80
80
|
var c = escapeToChar(tmp$ret$0);
|
|
81
81
|
if (c === _Char___init__impl__6a9atx(0)) {
|
|
82
|
-
$this.
|
|
82
|
+
$this.i6l("Invalid escaped char '" + toString(currentChar) + "'");
|
|
83
83
|
}
|
|
84
|
-
$this.
|
|
84
|
+
$this.c6h_1.kb(c);
|
|
85
85
|
return currentPosition;
|
|
86
86
|
}
|
|
87
87
|
function appendHex($this, source, startPos) {
|
|
88
88
|
if ((startPos + 4 | 0) >= charSequenceLength(source)) {
|
|
89
|
-
$this.
|
|
90
|
-
$this.
|
|
91
|
-
if (($this.
|
|
92
|
-
$this.
|
|
89
|
+
$this.z6g_1 = startPos;
|
|
90
|
+
$this.v6r();
|
|
91
|
+
if (($this.z6g_1 + 4 | 0) >= charSequenceLength(source)) {
|
|
92
|
+
$this.i6l('Unexpected EOF during unicode escape');
|
|
93
93
|
}
|
|
94
|
-
return appendHex($this, source, $this.
|
|
94
|
+
return appendHex($this, source, $this.z6g_1);
|
|
95
95
|
}
|
|
96
|
-
$this.
|
|
96
|
+
$this.c6h_1.kb(numberToChar((((fromHexChar($this, source, startPos) << 12) + (fromHexChar($this, source, startPos + 1 | 0) << 8) | 0) + (fromHexChar($this, source, startPos + 2 | 0) << 4) | 0) + fromHexChar($this, source, startPos + 3 | 0) | 0));
|
|
97
97
|
return startPos + 4 | 0;
|
|
98
98
|
}
|
|
99
99
|
function fromHexChar($this, source, currentPosition) {
|
|
@@ -118,16 +118,16 @@ function fromHexChar($this, source, currentPosition) {
|
|
|
118
118
|
var this_2 = _Char___init__impl__6a9atx(65);
|
|
119
119
|
tmp = (tmp_2 - Char__toInt_impl_vasixd(this_2) | 0) + 10 | 0;
|
|
120
120
|
} else {
|
|
121
|
-
$this.
|
|
121
|
+
$this.i6l("Invalid toHexChar char '" + toString(character) + "' in unicode escape");
|
|
122
122
|
}
|
|
123
123
|
return tmp;
|
|
124
124
|
}
|
|
125
125
|
function consumeBoolean2($this, start) {
|
|
126
|
-
var current = $this.
|
|
127
|
-
if (current >= charSequenceLength($this.
|
|
128
|
-
$this.
|
|
126
|
+
var current = $this.u6r(start);
|
|
127
|
+
if (current >= charSequenceLength($this.t6r()) || current === -1) {
|
|
128
|
+
$this.i6l('EOF');
|
|
129
129
|
}
|
|
130
|
-
var tmp = $this.
|
|
130
|
+
var tmp = $this.t6r();
|
|
131
131
|
var _unary__edvuaz = current;
|
|
132
132
|
current = _unary__edvuaz + 1 | 0;
|
|
133
133
|
// Inline function 'kotlin.code' call
|
|
@@ -146,14 +146,14 @@ function consumeBoolean2($this, start) {
|
|
|
146
146
|
consumeBooleanLiteral($this, 'alse', current);
|
|
147
147
|
tmp_0 = false;
|
|
148
148
|
} else {
|
|
149
|
-
$this.
|
|
149
|
+
$this.i6l("Expected valid boolean literal prefix, but had '" + $this.e6n() + "'");
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
return tmp_0;
|
|
153
153
|
}
|
|
154
154
|
function consumeBooleanLiteral($this, literalSuffix, current) {
|
|
155
|
-
if ((charSequenceLength($this.
|
|
156
|
-
$this.
|
|
155
|
+
if ((charSequenceLength($this.t6r()) - current | 0) < literalSuffix.length) {
|
|
156
|
+
$this.i6l('Unexpected end of boolean literal');
|
|
157
157
|
}
|
|
158
158
|
var inductionVariable = 0;
|
|
159
159
|
var last = charSequenceLength(literalSuffix) - 1 | 0;
|
|
@@ -162,16 +162,16 @@ function consumeBooleanLiteral($this, literalSuffix, current) {
|
|
|
162
162
|
var i = inductionVariable;
|
|
163
163
|
inductionVariable = inductionVariable + 1 | 0;
|
|
164
164
|
var expected = charCodeAt(literalSuffix, i);
|
|
165
|
-
var actual = charSequenceGet($this.
|
|
165
|
+
var actual = charSequenceGet($this.t6r(), current + i | 0);
|
|
166
166
|
// Inline function 'kotlin.code' call
|
|
167
167
|
var tmp = Char__toInt_impl_vasixd(expected);
|
|
168
168
|
// Inline function 'kotlin.code' call
|
|
169
169
|
if (!(tmp === (Char__toInt_impl_vasixd(actual) | 32))) {
|
|
170
|
-
$this.
|
|
170
|
+
$this.i6l("Expected valid boolean literal prefix, but had '" + $this.e6n() + "'");
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
while (inductionVariable <= last);
|
|
174
|
-
$this.
|
|
174
|
+
$this.z6g_1 = current + literalSuffix.length | 0;
|
|
175
175
|
}
|
|
176
176
|
function consumeNumericLiteral$calculateExponent(exponentAccumulator, isExponentPositive) {
|
|
177
177
|
var tmp;
|
|
@@ -199,77 +199,77 @@ function AbstractJsonLexer() {
|
|
|
199
199
|
if (AbstractJsonLexerClass === VOID) {
|
|
200
200
|
class $ {
|
|
201
201
|
constructor() {
|
|
202
|
-
this.
|
|
203
|
-
this.
|
|
204
|
-
this.
|
|
205
|
-
this.
|
|
202
|
+
this.z6g_1 = 0;
|
|
203
|
+
this.a6h_1 = new (JsonPath())();
|
|
204
|
+
this.b6h_1 = null;
|
|
205
|
+
this.c6h_1 = StringBuilder().a1();
|
|
206
206
|
}
|
|
207
|
-
|
|
207
|
+
v6r() {
|
|
208
208
|
}
|
|
209
|
-
|
|
210
|
-
var current = this.
|
|
211
|
-
var source = this.
|
|
209
|
+
q6o() {
|
|
210
|
+
var current = this.w6r();
|
|
211
|
+
var source = this.t6r();
|
|
212
212
|
if (current >= charSequenceLength(source) || current === -1)
|
|
213
213
|
return false;
|
|
214
214
|
if (charSequenceGet(source, current) === _Char___init__impl__6a9atx(44)) {
|
|
215
|
-
this.
|
|
215
|
+
this.z6g_1 = this.z6g_1 + 1 | 0;
|
|
216
216
|
return true;
|
|
217
217
|
}
|
|
218
218
|
return false;
|
|
219
219
|
}
|
|
220
|
-
|
|
220
|
+
x6r(c) {
|
|
221
221
|
return c === _Char___init__impl__6a9atx(125) || c === _Char___init__impl__6a9atx(93) || (c === _Char___init__impl__6a9atx(58) || c === _Char___init__impl__6a9atx(44)) ? false : true;
|
|
222
222
|
}
|
|
223
|
-
|
|
224
|
-
var nextToken = this.
|
|
223
|
+
d6h() {
|
|
224
|
+
var nextToken = this.g6n();
|
|
225
225
|
if (!(nextToken === 10)) {
|
|
226
|
-
this.
|
|
226
|
+
this.i6l('Expected EOF after parsing, but had ' + toString(charSequenceGet(this.t6r(), this.z6g_1 - 1 | 0)) + ' instead');
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
|
|
230
|
-
var token = this.
|
|
229
|
+
a6n(expected) {
|
|
230
|
+
var token = this.g6n();
|
|
231
231
|
if (!(token === expected)) {
|
|
232
232
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
233
233
|
var expected_0 = tokenDescription(expected);
|
|
234
|
-
var position = true ? this.
|
|
235
|
-
var s = this.
|
|
234
|
+
var position = true ? this.z6g_1 - 1 | 0 : this.z6g_1;
|
|
235
|
+
var s = this.z6g_1 === charSequenceLength(this.t6r()) || position < 0 ? 'EOF' : toString(charSequenceGet(this.t6r(), position));
|
|
236
236
|
var tmp$ret$0 = 'Expected ' + expected_0 + ", but had '" + s + "' instead";
|
|
237
|
-
this.
|
|
237
|
+
this.i6l(tmp$ret$0, position);
|
|
238
238
|
}
|
|
239
239
|
return token;
|
|
240
240
|
}
|
|
241
|
-
|
|
242
|
-
if (this.
|
|
241
|
+
y6r(expected) {
|
|
242
|
+
if (this.z6g_1 > 0 && expected === _Char___init__impl__6a9atx(34)) {
|
|
243
243
|
var tmp$ret$1;
|
|
244
244
|
$l$block: {
|
|
245
245
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.withPositionRollback' call
|
|
246
|
-
var snapshot = this.
|
|
246
|
+
var snapshot = this.z6g_1;
|
|
247
247
|
try {
|
|
248
|
-
this.
|
|
249
|
-
tmp$ret$1 = this.
|
|
248
|
+
this.z6g_1 = this.z6g_1 - 1 | 0;
|
|
249
|
+
tmp$ret$1 = this.e6n();
|
|
250
250
|
break $l$block;
|
|
251
251
|
}finally {
|
|
252
|
-
this.
|
|
252
|
+
this.z6g_1 = snapshot;
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
var inputLiteral = tmp$ret$1;
|
|
256
256
|
if (inputLiteral === 'null') {
|
|
257
|
-
this.
|
|
257
|
+
this.h6l("Expected string literal but 'null' literal was found", this.z6g_1 - 1 | 0, "Use 'coerceInputValues = true' in 'Json {}' builder to coerce nulls if property has a default value.");
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
261
261
|
var expectedToken = charToTokenClass(expected);
|
|
262
262
|
var expected_0 = tokenDescription(expectedToken);
|
|
263
|
-
var position = true ? this.
|
|
264
|
-
var s = this.
|
|
263
|
+
var position = true ? this.z6g_1 - 1 | 0 : this.z6g_1;
|
|
264
|
+
var s = this.z6g_1 === charSequenceLength(this.t6r()) || position < 0 ? 'EOF' : toString(charSequenceGet(this.t6r(), position));
|
|
265
265
|
var tmp$ret$2 = 'Expected ' + expected_0 + ", but had '" + s + "' instead";
|
|
266
|
-
this.
|
|
266
|
+
this.i6l(tmp$ret$2, position);
|
|
267
267
|
}
|
|
268
|
-
|
|
269
|
-
var source = this.
|
|
270
|
-
var cpos = this.
|
|
268
|
+
b6n() {
|
|
269
|
+
var source = this.t6r();
|
|
270
|
+
var cpos = this.z6g_1;
|
|
271
271
|
$l$loop_0: while (true) {
|
|
272
|
-
cpos = this.
|
|
272
|
+
cpos = this.u6r(cpos);
|
|
273
273
|
if (cpos === -1)
|
|
274
274
|
break $l$loop_0;
|
|
275
275
|
var ch = charSequenceGet(source, cpos);
|
|
@@ -277,16 +277,16 @@ function AbstractJsonLexer() {
|
|
|
277
277
|
cpos = cpos + 1 | 0;
|
|
278
278
|
continue $l$loop_0;
|
|
279
279
|
}
|
|
280
|
-
this.
|
|
280
|
+
this.z6g_1 = cpos;
|
|
281
281
|
return charToTokenClass(ch);
|
|
282
282
|
}
|
|
283
|
-
this.
|
|
283
|
+
this.z6g_1 = cpos;
|
|
284
284
|
return 10;
|
|
285
285
|
}
|
|
286
|
-
|
|
287
|
-
var current = this.
|
|
288
|
-
current = this.
|
|
289
|
-
var len = charSequenceLength(this.
|
|
286
|
+
r6o(doConsume) {
|
|
287
|
+
var current = this.w6r();
|
|
288
|
+
current = this.u6r(current);
|
|
289
|
+
var len = charSequenceLength(this.t6r()) - current | 0;
|
|
290
290
|
if (len < 4 || current === -1)
|
|
291
291
|
return false;
|
|
292
292
|
var inductionVariable = 0;
|
|
@@ -294,50 +294,50 @@ function AbstractJsonLexer() {
|
|
|
294
294
|
do {
|
|
295
295
|
var i = inductionVariable;
|
|
296
296
|
inductionVariable = inductionVariable + 1 | 0;
|
|
297
|
-
if (!(charCodeAt('null', i) === charSequenceGet(this.
|
|
297
|
+
if (!(charCodeAt('null', i) === charSequenceGet(this.t6r(), current + i | 0)))
|
|
298
298
|
return false;
|
|
299
299
|
}
|
|
300
300
|
while (inductionVariable <= 3);
|
|
301
|
-
if (len > 4 && charToTokenClass(charSequenceGet(this.
|
|
301
|
+
if (len > 4 && charToTokenClass(charSequenceGet(this.t6r(), current + 4 | 0)) === 0)
|
|
302
302
|
return false;
|
|
303
303
|
if (doConsume) {
|
|
304
|
-
this.
|
|
304
|
+
this.z6g_1 = current + 4 | 0;
|
|
305
305
|
}
|
|
306
306
|
return true;
|
|
307
307
|
}
|
|
308
|
-
|
|
308
|
+
c6p(doConsume, $super) {
|
|
309
309
|
doConsume = doConsume === VOID ? true : doConsume;
|
|
310
|
-
return $super === VOID ? this.
|
|
310
|
+
return $super === VOID ? this.r6o(doConsume) : $super.r6o.call(this, doConsume);
|
|
311
311
|
}
|
|
312
|
-
|
|
313
|
-
var token = this.
|
|
312
|
+
s6o(isLenient) {
|
|
313
|
+
var token = this.b6n();
|
|
314
314
|
var tmp;
|
|
315
315
|
if (isLenient) {
|
|
316
316
|
if (!(token === 1) && !(token === 0))
|
|
317
317
|
return null;
|
|
318
|
-
tmp = this.
|
|
318
|
+
tmp = this.e6n();
|
|
319
319
|
} else {
|
|
320
320
|
if (!(token === 1))
|
|
321
321
|
return null;
|
|
322
|
-
tmp = this.
|
|
322
|
+
tmp = this.d6n();
|
|
323
323
|
}
|
|
324
324
|
var string = tmp;
|
|
325
|
-
this.
|
|
325
|
+
this.b6h_1 = string;
|
|
326
326
|
return string;
|
|
327
327
|
}
|
|
328
|
-
|
|
329
|
-
this.
|
|
328
|
+
z6r() {
|
|
329
|
+
this.b6h_1 = null;
|
|
330
330
|
}
|
|
331
|
-
|
|
331
|
+
b2r(startPos, endPos) {
|
|
332
332
|
// Inline function 'kotlin.text.substring' call
|
|
333
|
-
var this_0 = this.
|
|
333
|
+
var this_0 = this.t6r();
|
|
334
334
|
return toString_0(charSequenceSubSequence(this_0, startPos, endPos));
|
|
335
335
|
}
|
|
336
|
-
|
|
337
|
-
if (!(this.
|
|
336
|
+
d6n() {
|
|
337
|
+
if (!(this.b6h_1 == null)) {
|
|
338
338
|
return takePeeked(this);
|
|
339
339
|
}
|
|
340
|
-
return this.
|
|
340
|
+
return this.v6o();
|
|
341
341
|
}
|
|
342
342
|
consumeString2(source, startPosition, current) {
|
|
343
343
|
var currentPosition = current;
|
|
@@ -347,19 +347,19 @@ function AbstractJsonLexer() {
|
|
|
347
347
|
while (!(char === _Char___init__impl__6a9atx(34))) {
|
|
348
348
|
if (char === _Char___init__impl__6a9atx(92)) {
|
|
349
349
|
usedAppend = true;
|
|
350
|
-
currentPosition = this.
|
|
350
|
+
currentPosition = this.u6r(appendEscape(this, lastPosition, currentPosition));
|
|
351
351
|
if (currentPosition === -1) {
|
|
352
|
-
this.
|
|
352
|
+
this.i6l('Unexpected EOF', currentPosition);
|
|
353
353
|
}
|
|
354
354
|
lastPosition = currentPosition;
|
|
355
355
|
} else {
|
|
356
356
|
currentPosition = currentPosition + 1 | 0;
|
|
357
357
|
if (currentPosition >= charSequenceLength(source)) {
|
|
358
358
|
usedAppend = true;
|
|
359
|
-
this.
|
|
360
|
-
currentPosition = this.
|
|
359
|
+
this.s6r(lastPosition, currentPosition);
|
|
360
|
+
currentPosition = this.u6r(currentPosition);
|
|
361
361
|
if (currentPosition === -1) {
|
|
362
|
-
this.
|
|
362
|
+
this.i6l('Unexpected EOF', currentPosition);
|
|
363
363
|
}
|
|
364
364
|
lastPosition = currentPosition;
|
|
365
365
|
}
|
|
@@ -368,45 +368,45 @@ function AbstractJsonLexer() {
|
|
|
368
368
|
}
|
|
369
369
|
var tmp;
|
|
370
370
|
if (!usedAppend) {
|
|
371
|
-
tmp = this.
|
|
371
|
+
tmp = this.b2r(lastPosition, currentPosition);
|
|
372
372
|
} else {
|
|
373
373
|
tmp = decodedString(this, lastPosition, currentPosition);
|
|
374
374
|
}
|
|
375
375
|
var string = tmp;
|
|
376
|
-
this.
|
|
376
|
+
this.z6g_1 = currentPosition + 1 | 0;
|
|
377
377
|
return string;
|
|
378
378
|
}
|
|
379
|
-
|
|
380
|
-
var result = this.
|
|
379
|
+
w6o() {
|
|
380
|
+
var result = this.e6n();
|
|
381
381
|
if (result === 'null' && wasUnquotedString(this)) {
|
|
382
|
-
this.
|
|
382
|
+
this.i6l("Unexpected 'null' value instead of string literal");
|
|
383
383
|
}
|
|
384
384
|
return result;
|
|
385
385
|
}
|
|
386
|
-
|
|
387
|
-
if (!(this.
|
|
386
|
+
e6n() {
|
|
387
|
+
if (!(this.b6h_1 == null)) {
|
|
388
388
|
return takePeeked(this);
|
|
389
389
|
}
|
|
390
|
-
var current = this.
|
|
391
|
-
if (current >= charSequenceLength(this.
|
|
392
|
-
this.
|
|
390
|
+
var current = this.w6r();
|
|
391
|
+
if (current >= charSequenceLength(this.t6r()) || current === -1) {
|
|
392
|
+
this.i6l('EOF', current);
|
|
393
393
|
}
|
|
394
|
-
var token = charToTokenClass(charSequenceGet(this.
|
|
394
|
+
var token = charToTokenClass(charSequenceGet(this.t6r(), current));
|
|
395
395
|
if (token === 1) {
|
|
396
|
-
return this.
|
|
396
|
+
return this.d6n();
|
|
397
397
|
}
|
|
398
398
|
if (!(token === 0)) {
|
|
399
|
-
this.
|
|
399
|
+
this.i6l('Expected beginning of the string, but got ' + toString(charSequenceGet(this.t6r(), current)));
|
|
400
400
|
}
|
|
401
401
|
var usedAppend = false;
|
|
402
|
-
while (charToTokenClass(charSequenceGet(this.
|
|
402
|
+
while (charToTokenClass(charSequenceGet(this.t6r(), current)) === 0) {
|
|
403
403
|
current = current + 1 | 0;
|
|
404
|
-
if (current >= charSequenceLength(this.
|
|
404
|
+
if (current >= charSequenceLength(this.t6r())) {
|
|
405
405
|
usedAppend = true;
|
|
406
|
-
this.
|
|
407
|
-
var eof = this.
|
|
406
|
+
this.s6r(this.z6g_1, current);
|
|
407
|
+
var eof = this.u6r(current);
|
|
408
408
|
if (eof === -1) {
|
|
409
|
-
this.
|
|
409
|
+
this.z6g_1 = current;
|
|
410
410
|
return decodedString(this, 0, 0);
|
|
411
411
|
} else {
|
|
412
412
|
current = eof;
|
|
@@ -415,32 +415,32 @@ function AbstractJsonLexer() {
|
|
|
415
415
|
}
|
|
416
416
|
var tmp;
|
|
417
417
|
if (!usedAppend) {
|
|
418
|
-
tmp = this.
|
|
418
|
+
tmp = this.b2r(this.z6g_1, current);
|
|
419
419
|
} else {
|
|
420
|
-
tmp = decodedString(this, this.
|
|
420
|
+
tmp = decodedString(this, this.z6g_1, current);
|
|
421
421
|
}
|
|
422
422
|
var result = tmp;
|
|
423
|
-
this.
|
|
423
|
+
this.z6g_1 = current;
|
|
424
424
|
return result;
|
|
425
425
|
}
|
|
426
|
-
|
|
427
|
-
this.
|
|
426
|
+
s6r(fromIndex, toIndex) {
|
|
427
|
+
this.c6h_1.vh(this.t6r(), fromIndex, toIndex);
|
|
428
428
|
}
|
|
429
|
-
|
|
429
|
+
u6o(allowLenientStrings) {
|
|
430
430
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
431
431
|
var tokenStack = ArrayList().l1();
|
|
432
|
-
var lastToken = this.
|
|
432
|
+
var lastToken = this.b6n();
|
|
433
433
|
if (!(lastToken === 8) && !(lastToken === 6)) {
|
|
434
|
-
this.
|
|
434
|
+
this.e6n();
|
|
435
435
|
return Unit_instance;
|
|
436
436
|
}
|
|
437
437
|
$l$loop: while (true) {
|
|
438
|
-
lastToken = this.
|
|
438
|
+
lastToken = this.b6n();
|
|
439
439
|
if (lastToken === 1) {
|
|
440
440
|
if (allowLenientStrings)
|
|
441
|
-
this.
|
|
441
|
+
this.e6n();
|
|
442
442
|
else
|
|
443
|
-
this.
|
|
443
|
+
this.v6o();
|
|
444
444
|
continue $l$loop;
|
|
445
445
|
}
|
|
446
446
|
var tmp0_subject = lastToken;
|
|
@@ -448,29 +448,29 @@ function AbstractJsonLexer() {
|
|
|
448
448
|
tokenStack.m(lastToken);
|
|
449
449
|
} else if (tmp0_subject === 9) {
|
|
450
450
|
if (!(last(tokenStack) === 8))
|
|
451
|
-
throw JsonDecodingException(this.
|
|
451
|
+
throw JsonDecodingException(this.z6g_1, 'found ] instead of } at path: ' + this.a6h_1.toString(), this.t6r());
|
|
452
452
|
removeLast(tokenStack);
|
|
453
453
|
} else if (tmp0_subject === 7) {
|
|
454
454
|
if (!(last(tokenStack) === 6))
|
|
455
|
-
throw JsonDecodingException(this.
|
|
455
|
+
throw JsonDecodingException(this.z6g_1, 'found } instead of ] at path: ' + this.a6h_1.toString(), this.t6r());
|
|
456
456
|
removeLast(tokenStack);
|
|
457
457
|
} else if (tmp0_subject === 10) {
|
|
458
|
-
this.
|
|
458
|
+
this.i6l('Unexpected end of input due to malformed JSON during ignoring unknown keys');
|
|
459
459
|
}
|
|
460
|
-
this.
|
|
460
|
+
this.g6n();
|
|
461
461
|
if (tokenStack.i1() === 0)
|
|
462
462
|
return Unit_instance;
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
toString() {
|
|
466
|
-
return "JsonReader(source='" + toString_0(this.
|
|
466
|
+
return "JsonReader(source='" + toString_0(this.t6r()) + "', currentPosition=" + this.z6g_1 + ')';
|
|
467
467
|
}
|
|
468
|
-
|
|
469
|
-
var processed = this.
|
|
468
|
+
t6o(key) {
|
|
469
|
+
var processed = this.b2r(0, this.z6g_1);
|
|
470
470
|
var lastIndexOf_0 = lastIndexOf(processed, key);
|
|
471
|
-
throw JsonDecodingException_0().
|
|
471
|
+
throw JsonDecodingException_0().w6j("Encountered an unknown key '" + key + "' at offset " + lastIndexOf_0 + ' at path: ' + this.a6h_1.i6m() + "\nUse 'ignoreUnknownKeys = true' in 'Json {}' builder or '@JsonIgnoreUnknownKeys' annotation to ignore unknown keys.\n" + ('JSON input: ' + toString_0(minify(this.t6r(), lastIndexOf_0))));
|
|
472
472
|
}
|
|
473
|
-
|
|
473
|
+
h6l(message, position, hint) {
|
|
474
474
|
var tmp;
|
|
475
475
|
// Inline function 'kotlin.text.isEmpty' call
|
|
476
476
|
if (charSequenceLength(hint) === 0) {
|
|
@@ -479,24 +479,24 @@ function AbstractJsonLexer() {
|
|
|
479
479
|
tmp = '\n' + hint;
|
|
480
480
|
}
|
|
481
481
|
var hintMessage = tmp;
|
|
482
|
-
throw JsonDecodingException(position, message + ' at path: ' + this.
|
|
482
|
+
throw JsonDecodingException(position, message + ' at path: ' + this.a6h_1.i6m() + hintMessage, this.t6r());
|
|
483
483
|
}
|
|
484
|
-
|
|
485
|
-
position = position === VOID ? this.
|
|
484
|
+
i6l(message, position, hint, $super) {
|
|
485
|
+
position = position === VOID ? this.z6g_1 : position;
|
|
486
486
|
hint = hint === VOID ? '' : hint;
|
|
487
|
-
return $super === VOID ? this.
|
|
487
|
+
return $super === VOID ? this.h6l(message, position, hint) : $super.h6l.call(this, message, position, hint);
|
|
488
488
|
}
|
|
489
|
-
|
|
490
|
-
var current = this.
|
|
491
|
-
current = this.
|
|
492
|
-
if (current >= charSequenceLength(this.
|
|
493
|
-
this.
|
|
489
|
+
e6p() {
|
|
490
|
+
var current = this.w6r();
|
|
491
|
+
current = this.u6r(current);
|
|
492
|
+
if (current >= charSequenceLength(this.t6r()) || current === -1) {
|
|
493
|
+
this.i6l('EOF');
|
|
494
494
|
}
|
|
495
495
|
var tmp;
|
|
496
|
-
if (charSequenceGet(this.
|
|
496
|
+
if (charSequenceGet(this.t6r(), current) === _Char___init__impl__6a9atx(34)) {
|
|
497
497
|
current = current + 1 | 0;
|
|
498
|
-
if (current === charSequenceLength(this.
|
|
499
|
-
this.
|
|
498
|
+
if (current === charSequenceLength(this.t6r())) {
|
|
499
|
+
this.i6l('EOF');
|
|
500
500
|
}
|
|
501
501
|
tmp = true;
|
|
502
502
|
} else {
|
|
@@ -509,11 +509,11 @@ function AbstractJsonLexer() {
|
|
|
509
509
|
var isExponentPositive = false;
|
|
510
510
|
var hasExponent = false;
|
|
511
511
|
var start = current;
|
|
512
|
-
$l$loop_4: while (!(current === charSequenceLength(this.
|
|
513
|
-
var ch = charSequenceGet(this.
|
|
512
|
+
$l$loop_4: while (!(current === charSequenceLength(this.t6r()))) {
|
|
513
|
+
var ch = charSequenceGet(this.t6r(), current);
|
|
514
514
|
if ((ch === _Char___init__impl__6a9atx(101) || ch === _Char___init__impl__6a9atx(69)) && !hasExponent) {
|
|
515
515
|
if (current === start) {
|
|
516
|
-
this.
|
|
516
|
+
this.i6l('Unexpected symbol ' + toString(ch) + ' in numeric literal');
|
|
517
517
|
}
|
|
518
518
|
isExponentPositive = true;
|
|
519
519
|
hasExponent = true;
|
|
@@ -522,7 +522,7 @@ function AbstractJsonLexer() {
|
|
|
522
522
|
}
|
|
523
523
|
if (ch === _Char___init__impl__6a9atx(45) && hasExponent) {
|
|
524
524
|
if (current === start) {
|
|
525
|
-
this.
|
|
525
|
+
this.i6l("Unexpected symbol '-' in numeric literal");
|
|
526
526
|
}
|
|
527
527
|
isExponentPositive = false;
|
|
528
528
|
current = current + 1 | 0;
|
|
@@ -530,7 +530,7 @@ function AbstractJsonLexer() {
|
|
|
530
530
|
}
|
|
531
531
|
if (ch === _Char___init__impl__6a9atx(43) && hasExponent) {
|
|
532
532
|
if (current === start) {
|
|
533
|
-
this.
|
|
533
|
+
this.i6l("Unexpected symbol '+' in numeric literal");
|
|
534
534
|
}
|
|
535
535
|
isExponentPositive = true;
|
|
536
536
|
current = current + 1 | 0;
|
|
@@ -538,7 +538,7 @@ function AbstractJsonLexer() {
|
|
|
538
538
|
}
|
|
539
539
|
if (ch === _Char___init__impl__6a9atx(45)) {
|
|
540
540
|
if (!(current === start)) {
|
|
541
|
-
this.
|
|
541
|
+
this.i6l("Unexpected symbol '-' in numeric literal");
|
|
542
542
|
}
|
|
543
543
|
isNegative = true;
|
|
544
544
|
current = current + 1 | 0;
|
|
@@ -550,7 +550,7 @@ function AbstractJsonLexer() {
|
|
|
550
550
|
current = current + 1 | 0;
|
|
551
551
|
var digit = Char__minus_impl_a2frrh(ch, _Char___init__impl__6a9atx(48));
|
|
552
552
|
if (!(0 <= digit ? digit <= 9 : false)) {
|
|
553
|
-
this.
|
|
553
|
+
this.i6l("Unexpected symbol '" + toString(ch) + "' in numeric literal");
|
|
554
554
|
}
|
|
555
555
|
if (hasExponent) {
|
|
556
556
|
// Inline function 'kotlin.Long.times' call
|
|
@@ -562,31 +562,31 @@ function AbstractJsonLexer() {
|
|
|
562
562
|
// Inline function 'kotlin.Long.minus' call
|
|
563
563
|
accumulator = accumulator.r3(toLong(10)).q3(toLong(digit));
|
|
564
564
|
if (accumulator.a2(new (Long())(0, 0)) > 0) {
|
|
565
|
-
this.
|
|
565
|
+
this.i6l('Numeric value overflow');
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
var hasChars = !(current === start);
|
|
569
569
|
if (start === current || (isNegative && start === (current - 1 | 0))) {
|
|
570
|
-
this.
|
|
570
|
+
this.i6l('Expected numeric literal');
|
|
571
571
|
}
|
|
572
572
|
if (hasQuotation) {
|
|
573
573
|
if (!hasChars) {
|
|
574
|
-
this.
|
|
574
|
+
this.i6l('EOF');
|
|
575
575
|
}
|
|
576
|
-
if (!(charSequenceGet(this.
|
|
577
|
-
this.
|
|
576
|
+
if (!(charSequenceGet(this.t6r(), current) === _Char___init__impl__6a9atx(34))) {
|
|
577
|
+
this.i6l('Expected closing quotation mark');
|
|
578
578
|
}
|
|
579
579
|
current = current + 1 | 0;
|
|
580
580
|
}
|
|
581
|
-
this.
|
|
581
|
+
this.z6g_1 = current;
|
|
582
582
|
if (hasExponent) {
|
|
583
583
|
var doubleAccumulator = accumulator.h4() * consumeNumericLiteral$calculateExponent(exponentAccumulator, isExponentPositive);
|
|
584
584
|
if (doubleAccumulator > (new (Long())(-1, 2147483647)).h4() || doubleAccumulator < (new (Long())(0, -2147483648)).h4()) {
|
|
585
|
-
this.
|
|
585
|
+
this.i6l('Numeric value overflow');
|
|
586
586
|
}
|
|
587
587
|
// Inline function 'kotlin.math.floor' call
|
|
588
588
|
if (!(Math.floor(doubleAccumulator) === doubleAccumulator)) {
|
|
589
|
-
this.
|
|
589
|
+
this.i6l("Can't convert " + doubleAccumulator + ' to Long');
|
|
590
590
|
}
|
|
591
591
|
accumulator = numberToLong(doubleAccumulator);
|
|
592
592
|
}
|
|
@@ -596,30 +596,30 @@ function AbstractJsonLexer() {
|
|
|
596
596
|
} else if (!accumulator.equals(new (Long())(0, -2147483648))) {
|
|
597
597
|
tmp_0 = accumulator.w3();
|
|
598
598
|
} else {
|
|
599
|
-
this.
|
|
599
|
+
this.i6l('Numeric value overflow');
|
|
600
600
|
}
|
|
601
601
|
return tmp_0;
|
|
602
602
|
}
|
|
603
|
-
|
|
604
|
-
var result = this.
|
|
605
|
-
var next = this.
|
|
603
|
+
a6j() {
|
|
604
|
+
var result = this.e6p();
|
|
605
|
+
var next = this.g6n();
|
|
606
606
|
if (!(next === 10)) {
|
|
607
607
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
608
608
|
var expected = tokenDescription(10);
|
|
609
|
-
var position = true ? this.
|
|
610
|
-
var s = this.
|
|
609
|
+
var position = true ? this.z6g_1 - 1 | 0 : this.z6g_1;
|
|
610
|
+
var s = this.z6g_1 === charSequenceLength(this.t6r()) || position < 0 ? 'EOF' : toString(charSequenceGet(this.t6r(), position));
|
|
611
611
|
var tmp$ret$0 = "Expected input to contain a single valid number, but got '" + s + "' after it";
|
|
612
|
-
this.
|
|
612
|
+
this.i6l(tmp$ret$0, position);
|
|
613
613
|
}
|
|
614
614
|
return result;
|
|
615
615
|
}
|
|
616
|
-
|
|
617
|
-
var current = this.
|
|
618
|
-
if (current === charSequenceLength(this.
|
|
619
|
-
this.
|
|
616
|
+
d6p() {
|
|
617
|
+
var current = this.w6r();
|
|
618
|
+
if (current === charSequenceLength(this.t6r())) {
|
|
619
|
+
this.i6l('EOF');
|
|
620
620
|
}
|
|
621
621
|
var tmp;
|
|
622
|
-
if (charSequenceGet(this.
|
|
622
|
+
if (charSequenceGet(this.t6r(), current) === _Char___init__impl__6a9atx(34)) {
|
|
623
623
|
current = current + 1 | 0;
|
|
624
624
|
tmp = true;
|
|
625
625
|
} else {
|
|
@@ -628,13 +628,13 @@ function AbstractJsonLexer() {
|
|
|
628
628
|
var hasQuotation = tmp;
|
|
629
629
|
var result = consumeBoolean2(this, current);
|
|
630
630
|
if (hasQuotation) {
|
|
631
|
-
if (this.
|
|
632
|
-
this.
|
|
631
|
+
if (this.z6g_1 === charSequenceLength(this.t6r())) {
|
|
632
|
+
this.i6l('EOF');
|
|
633
633
|
}
|
|
634
|
-
if (!(charSequenceGet(this.
|
|
635
|
-
this.
|
|
634
|
+
if (!(charSequenceGet(this.t6r(), this.z6g_1) === _Char___init__impl__6a9atx(34))) {
|
|
635
|
+
this.i6l('Expected closing quotation mark');
|
|
636
636
|
}
|
|
637
|
-
this.
|
|
637
|
+
this.z6g_1 = this.z6g_1 + 1 | 0;
|
|
638
638
|
}
|
|
639
639
|
return result;
|
|
640
640
|
}
|
|
@@ -648,7 +648,7 @@ function charToTokenClass(c) {
|
|
|
648
648
|
var tmp;
|
|
649
649
|
// Inline function 'kotlin.code' call
|
|
650
650
|
if (Char__toInt_impl_vasixd(c) < 126) {
|
|
651
|
-
var tmp_0 = CharMappings_getInstance().
|
|
651
|
+
var tmp_0 = CharMappings_getInstance().b6s_1;
|
|
652
652
|
// Inline function 'kotlin.code' call
|
|
653
653
|
tmp = tmp_0[Char__toInt_impl_vasixd(c)];
|
|
654
654
|
} else {
|
|
@@ -660,7 +660,7 @@ function tokenDescription(token) {
|
|
|
660
660
|
return token === 1 ? "quotation mark '\"'" : token === 2 ? "string escape sequence '\\'" : token === 4 ? "comma ','" : token === 5 ? "colon ':'" : token === 6 ? "start of the object '{'" : token === 7 ? "end of the object '}'" : token === 8 ? "start of the array '['" : token === 9 ? "end of the array ']'" : token === 10 ? 'end of the input' : token === 127 ? 'invalid token' : 'valid token';
|
|
661
661
|
}
|
|
662
662
|
function escapeToChar(c) {
|
|
663
|
-
return c < 117 ? CharMappings_getInstance().
|
|
663
|
+
return c < 117 ? CharMappings_getInstance().a6s_1[c] : _Char___init__impl__6a9atx(0);
|
|
664
664
|
}
|
|
665
665
|
function initEscape($this) {
|
|
666
666
|
var inductionVariable = 0;
|
|
@@ -706,7 +706,7 @@ function initC2ESC($this, c, esc) {
|
|
|
706
706
|
if (!(esc === _Char___init__impl__6a9atx(117))) {
|
|
707
707
|
// Inline function 'kotlin.code' call
|
|
708
708
|
var tmp$ret$0 = Char__toInt_impl_vasixd(esc);
|
|
709
|
-
$this.
|
|
709
|
+
$this.a6s_1[tmp$ret$0] = numberToChar(c);
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
712
|
function initC2ESC_0($this, c, esc) {
|
|
@@ -715,7 +715,7 @@ function initC2ESC_0($this, c, esc) {
|
|
|
715
715
|
return initC2ESC($this, tmp$ret$0, esc);
|
|
716
716
|
}
|
|
717
717
|
function initC2TC($this, c, cl) {
|
|
718
|
-
$this.
|
|
718
|
+
$this.b6s_1[c] = cl;
|
|
719
719
|
}
|
|
720
720
|
function initC2TC_0($this, c, cl) {
|
|
721
721
|
// Inline function 'kotlin.code' call
|
|
@@ -728,8 +728,8 @@ function CharMappings() {
|
|
|
728
728
|
class $ {
|
|
729
729
|
constructor() {
|
|
730
730
|
CharMappings_instance = this;
|
|
731
|
-
this.
|
|
732
|
-
this.
|
|
731
|
+
this.a6s_1 = charArray(117);
|
|
732
|
+
this.b6s_1 = new Int8Array(126);
|
|
733
733
|
initEscape(this);
|
|
734
734
|
initCharToToken(this);
|
|
735
735
|
}
|