@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
|
@@ -88,7 +88,7 @@ var imul = Math.imul;
|
|
|
88
88
|
//endregion
|
|
89
89
|
function unparsedPrimitive($this, literal, primitive, tag) {
|
|
90
90
|
var type = startsWith(primitive, 'i') ? 'an ' + primitive : 'a ' + primitive;
|
|
91
|
-
throw JsonDecodingException(-1, "Failed to parse literal '" + literal.toString() + "' as " + type + ' value at element: ' + $this.
|
|
91
|
+
throw JsonDecodingException(-1, "Failed to parse literal '" + literal.toString() + "' as " + type + ' value at element: ' + $this.o6p(tag), toString($this.p6p()));
|
|
92
92
|
}
|
|
93
93
|
var AbstractJsonTreeDecoderClass;
|
|
94
94
|
function AbstractJsonTreeDecoder() {
|
|
@@ -97,37 +97,37 @@ function AbstractJsonTreeDecoder() {
|
|
|
97
97
|
constructor(json, value, polymorphicDiscriminator) {
|
|
98
98
|
polymorphicDiscriminator = polymorphicDiscriminator === VOID ? null : polymorphicDiscriminator;
|
|
99
99
|
super();
|
|
100
|
-
this.
|
|
101
|
-
this.
|
|
102
|
-
this.
|
|
103
|
-
this.
|
|
100
|
+
this.k6p_1 = json;
|
|
101
|
+
this.l6p_1 = value;
|
|
102
|
+
this.m6p_1 = polymorphicDiscriminator;
|
|
103
|
+
this.n6p_1 = this.o6i().n6g_1;
|
|
104
104
|
}
|
|
105
|
-
|
|
106
|
-
return this.
|
|
105
|
+
o6i() {
|
|
106
|
+
return this.k6p_1;
|
|
107
107
|
}
|
|
108
108
|
s1() {
|
|
109
|
-
return this.
|
|
109
|
+
return this.l6p_1;
|
|
110
110
|
}
|
|
111
111
|
yx() {
|
|
112
|
-
return this.
|
|
112
|
+
return this.o6i().yx();
|
|
113
113
|
}
|
|
114
|
-
|
|
114
|
+
p6p() {
|
|
115
115
|
var tmp0_safe_receiver = this.p1b();
|
|
116
116
|
var tmp;
|
|
117
117
|
if (tmp0_safe_receiver == null) {
|
|
118
118
|
tmp = null;
|
|
119
119
|
} else {
|
|
120
120
|
// Inline function 'kotlin.let' call
|
|
121
|
-
tmp = this.
|
|
121
|
+
tmp = this.q6p(tmp0_safe_receiver);
|
|
122
122
|
}
|
|
123
123
|
var tmp1_elvis_lhs = tmp;
|
|
124
124
|
return tmp1_elvis_lhs == null ? this.s1() : tmp1_elvis_lhs;
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
o6p(currentTag) {
|
|
127
127
|
return this.r1b() + ('.' + currentTag);
|
|
128
128
|
}
|
|
129
|
-
|
|
130
|
-
return this.
|
|
129
|
+
p6i() {
|
|
130
|
+
return this.p6p();
|
|
131
131
|
}
|
|
132
132
|
jx(deserializer) {
|
|
133
133
|
var tmp$ret$0;
|
|
@@ -137,14 +137,14 @@ function AbstractJsonTreeDecoder() {
|
|
|
137
137
|
if (!(deserializer instanceof AbstractPolymorphicSerializer())) {
|
|
138
138
|
tmp = true;
|
|
139
139
|
} else {
|
|
140
|
-
tmp = this.
|
|
140
|
+
tmp = this.o6i().n6g_1.f6i_1;
|
|
141
141
|
}
|
|
142
142
|
if (tmp) {
|
|
143
143
|
tmp$ret$0 = deserializer.zs(this);
|
|
144
144
|
break $l$block;
|
|
145
145
|
}
|
|
146
|
-
var discriminator = classDiscriminator(deserializer.xs(), this.
|
|
147
|
-
var tmp0 = this.
|
|
146
|
+
var discriminator = classDiscriminator(deserializer.xs(), this.o6i());
|
|
147
|
+
var tmp0 = this.p6i();
|
|
148
148
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
149
149
|
var serialName = deserializer.xs().au();
|
|
150
150
|
if (!(tmp0 instanceof JsonObject())) {
|
|
@@ -154,7 +154,7 @@ function AbstractJsonTreeDecoder() {
|
|
|
154
154
|
throw JsonDecodingException(-1, 'Expected ' + tmp_0 + ', but had ' + tmp_1 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$1, toString(tmp0));
|
|
155
155
|
}
|
|
156
156
|
var jsonTree = tmp0;
|
|
157
|
-
var tmp0_safe_receiver = jsonTree.
|
|
157
|
+
var tmp0_safe_receiver = jsonTree.c3s(discriminator);
|
|
158
158
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver);
|
|
159
159
|
var type = tmp1_safe_receiver == null ? null : get_contentOrNull(tmp1_safe_receiver);
|
|
160
160
|
var tmp_2;
|
|
@@ -171,7 +171,7 @@ function AbstractJsonTreeDecoder() {
|
|
|
171
171
|
}
|
|
172
172
|
var tmp_4 = tmp_2;
|
|
173
173
|
var actualSerializer = isInterface(tmp_4, DeserializationStrategy()) ? tmp_4 : THROW_CCE();
|
|
174
|
-
tmp$ret$0 = readPolymorphicJson(this.
|
|
174
|
+
tmp$ret$0 = readPolymorphicJson(this.o6i(), discriminator, jsonTree, actualSerializer);
|
|
175
175
|
}
|
|
176
176
|
return tmp$ret$0;
|
|
177
177
|
}
|
|
@@ -179,7 +179,7 @@ function AbstractJsonTreeDecoder() {
|
|
|
179
179
|
return childName;
|
|
180
180
|
}
|
|
181
181
|
kx(descriptor) {
|
|
182
|
-
var currentObject = this.
|
|
182
|
+
var currentObject = this.p6p();
|
|
183
183
|
var tmp0_subject = descriptor.ov();
|
|
184
184
|
var tmp;
|
|
185
185
|
var tmp_0;
|
|
@@ -189,7 +189,7 @@ function AbstractJsonTreeDecoder() {
|
|
|
189
189
|
tmp_0 = tmp0_subject instanceof PolymorphicKind();
|
|
190
190
|
}
|
|
191
191
|
if (tmp_0) {
|
|
192
|
-
var tmp_1 = this.
|
|
192
|
+
var tmp_1 = this.o6i();
|
|
193
193
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
194
194
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
195
195
|
var serialName = descriptor.au();
|
|
@@ -203,7 +203,7 @@ function AbstractJsonTreeDecoder() {
|
|
|
203
203
|
} else {
|
|
204
204
|
if (equals(tmp0_subject, MAP_getInstance())) {
|
|
205
205
|
// Inline function 'kotlinx.serialization.json.internal.selectMapMode' call
|
|
206
|
-
var this_0 = this.
|
|
206
|
+
var this_0 = this.o6i();
|
|
207
207
|
var keyDescriptor = carrierDescriptor(descriptor.vv(0), this_0.yx());
|
|
208
208
|
var keyKind = keyDescriptor.ov();
|
|
209
209
|
var tmp_4;
|
|
@@ -214,7 +214,7 @@ function AbstractJsonTreeDecoder() {
|
|
|
214
214
|
tmp_5 = equals(keyKind, ENUM_getInstance());
|
|
215
215
|
}
|
|
216
216
|
if (tmp_5) {
|
|
217
|
-
var tmp_6 = this.
|
|
217
|
+
var tmp_6 = this.o6i();
|
|
218
218
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
219
219
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
220
220
|
var serialName_0 = descriptor.au();
|
|
@@ -226,8 +226,8 @@ function AbstractJsonTreeDecoder() {
|
|
|
226
226
|
}
|
|
227
227
|
tmp_4 = new (JsonTreeMapDecoder())(tmp_6, currentObject);
|
|
228
228
|
} else {
|
|
229
|
-
if (this_0.
|
|
230
|
-
var tmp_9 = this.
|
|
229
|
+
if (this_0.n6g_1.a6i_1) {
|
|
230
|
+
var tmp_9 = this.o6i();
|
|
231
231
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
232
232
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
233
233
|
var serialName_1 = descriptor.au();
|
|
@@ -244,7 +244,7 @@ function AbstractJsonTreeDecoder() {
|
|
|
244
244
|
}
|
|
245
245
|
tmp = tmp_4;
|
|
246
246
|
} else {
|
|
247
|
-
var tmp_12 = this.
|
|
247
|
+
var tmp_12 = this.o6i();
|
|
248
248
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
249
249
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
250
250
|
var serialName_2 = descriptor.au();
|
|
@@ -254,7 +254,7 @@ function AbstractJsonTreeDecoder() {
|
|
|
254
254
|
var tmp$ret$12 = this.r1b();
|
|
255
255
|
throw JsonDecodingException(-1, 'Expected ' + tmp_13 + ', but had ' + tmp_14 + ' as the serialized body of ' + serialName_2 + ' at element: ' + tmp$ret$12, toString(currentObject));
|
|
256
256
|
}
|
|
257
|
-
tmp = new (JsonTreeDecoder())(tmp_12, currentObject, this.
|
|
257
|
+
tmp = new (JsonTreeDecoder())(tmp_12, currentObject, this.m6p_1);
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
return tmp;
|
|
@@ -262,44 +262,44 @@ function AbstractJsonTreeDecoder() {
|
|
|
262
262
|
lx(descriptor) {
|
|
263
263
|
}
|
|
264
264
|
vw() {
|
|
265
|
-
var tmp = this.
|
|
265
|
+
var tmp = this.p6p();
|
|
266
266
|
return !(tmp instanceof JsonNull());
|
|
267
267
|
}
|
|
268
|
-
|
|
269
|
-
var tmp = this.
|
|
268
|
+
r6p(tag, enumDescriptor) {
|
|
269
|
+
var tmp = this.o6i();
|
|
270
270
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
271
|
-
var tmp2 = this.
|
|
271
|
+
var tmp2 = this.q6p(tag);
|
|
272
272
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
273
273
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
274
274
|
var serialName = enumDescriptor.au();
|
|
275
275
|
if (!(tmp2 instanceof JsonPrimitive())) {
|
|
276
276
|
var tmp_0 = getKClass(JsonPrimitive()).ag();
|
|
277
277
|
var tmp_1 = getKClassFromExpression(tmp2).ag();
|
|
278
|
-
var tmp$ret$0 = this.
|
|
278
|
+
var tmp$ret$0 = this.o6p(tag);
|
|
279
279
|
throw JsonDecodingException(-1, 'Expected ' + tmp_0 + ', but had ' + tmp_1 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$0, toString(tmp2));
|
|
280
280
|
}
|
|
281
|
-
return getJsonNameIndexOrThrow(enumDescriptor, tmp, tmp2.
|
|
281
|
+
return getJsonNameIndexOrThrow(enumDescriptor, tmp, tmp2.s6i());
|
|
282
282
|
}
|
|
283
283
|
d1c(tag, enumDescriptor) {
|
|
284
|
-
return this.
|
|
284
|
+
return this.r6p((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), enumDescriptor);
|
|
285
285
|
}
|
|
286
|
-
|
|
287
|
-
return !(this.
|
|
286
|
+
s6p(tag) {
|
|
287
|
+
return !(this.q6p(tag) === JsonNull_getInstance());
|
|
288
288
|
}
|
|
289
289
|
t1b(tag) {
|
|
290
|
-
return this.
|
|
290
|
+
return this.s6p((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
291
291
|
}
|
|
292
|
-
|
|
292
|
+
t6p(tag) {
|
|
293
293
|
var tmp$ret$4;
|
|
294
294
|
$l$block: {
|
|
295
295
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
296
296
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
297
297
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
298
|
-
var value = this.
|
|
298
|
+
var value = this.q6p(tag);
|
|
299
299
|
if (!(value instanceof JsonPrimitive())) {
|
|
300
300
|
var tmp = getKClass(JsonPrimitive()).ag();
|
|
301
301
|
var tmp_0 = getKClassFromExpression(value).ag();
|
|
302
|
-
var tmp$ret$0 = this.
|
|
302
|
+
var tmp$ret$0 = this.o6p(tag);
|
|
303
303
|
throw JsonDecodingException(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'boolean' + ' at element: ' + tmp$ret$0, toString(value));
|
|
304
304
|
}
|
|
305
305
|
var literal = value;
|
|
@@ -325,19 +325,19 @@ function AbstractJsonTreeDecoder() {
|
|
|
325
325
|
return tmp$ret$4;
|
|
326
326
|
}
|
|
327
327
|
u1b(tag) {
|
|
328
|
-
return this.
|
|
328
|
+
return this.t6p((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
329
329
|
}
|
|
330
|
-
|
|
330
|
+
u6p(tag) {
|
|
331
331
|
var tmp$ret$5;
|
|
332
332
|
$l$block: {
|
|
333
333
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
334
334
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
335
335
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
336
|
-
var value = this.
|
|
336
|
+
var value = this.q6p(tag);
|
|
337
337
|
if (!(value instanceof JsonPrimitive())) {
|
|
338
338
|
var tmp = getKClass(JsonPrimitive()).ag();
|
|
339
339
|
var tmp_0 = getKClassFromExpression(value).ag();
|
|
340
|
-
var tmp$ret$0 = this.
|
|
340
|
+
var tmp$ret$0 = this.o6p(tag);
|
|
341
341
|
throw JsonDecodingException(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'byte' + ' at element: ' + tmp$ret$0, toString(value));
|
|
342
342
|
}
|
|
343
343
|
var literal = value;
|
|
@@ -372,19 +372,19 @@ function AbstractJsonTreeDecoder() {
|
|
|
372
372
|
return tmp$ret$5;
|
|
373
373
|
}
|
|
374
374
|
v1b(tag) {
|
|
375
|
-
return this.
|
|
375
|
+
return this.u6p((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
376
376
|
}
|
|
377
|
-
|
|
377
|
+
v6p(tag) {
|
|
378
378
|
var tmp$ret$5;
|
|
379
379
|
$l$block: {
|
|
380
380
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
381
381
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
382
382
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
383
|
-
var value = this.
|
|
383
|
+
var value = this.q6p(tag);
|
|
384
384
|
if (!(value instanceof JsonPrimitive())) {
|
|
385
385
|
var tmp = getKClass(JsonPrimitive()).ag();
|
|
386
386
|
var tmp_0 = getKClassFromExpression(value).ag();
|
|
387
|
-
var tmp$ret$0 = this.
|
|
387
|
+
var tmp$ret$0 = this.o6p(tag);
|
|
388
388
|
throw JsonDecodingException(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'short' + ' at element: ' + tmp$ret$0, toString(value));
|
|
389
389
|
}
|
|
390
390
|
var literal = value;
|
|
@@ -419,19 +419,19 @@ function AbstractJsonTreeDecoder() {
|
|
|
419
419
|
return tmp$ret$5;
|
|
420
420
|
}
|
|
421
421
|
w1b(tag) {
|
|
422
|
-
return this.
|
|
422
|
+
return this.v6p((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
423
423
|
}
|
|
424
|
-
|
|
424
|
+
w6p(tag) {
|
|
425
425
|
var tmp$ret$5;
|
|
426
426
|
$l$block: {
|
|
427
427
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
428
428
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
429
429
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
430
|
-
var value = this.
|
|
430
|
+
var value = this.q6p(tag);
|
|
431
431
|
if (!(value instanceof JsonPrimitive())) {
|
|
432
432
|
var tmp = getKClass(JsonPrimitive()).ag();
|
|
433
433
|
var tmp_0 = getKClassFromExpression(value).ag();
|
|
434
|
-
var tmp$ret$0 = this.
|
|
434
|
+
var tmp$ret$0 = this.o6p(tag);
|
|
435
435
|
throw JsonDecodingException(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'int' + ' at element: ' + tmp$ret$0, toString(value));
|
|
436
436
|
}
|
|
437
437
|
var literal = value;
|
|
@@ -466,19 +466,19 @@ function AbstractJsonTreeDecoder() {
|
|
|
466
466
|
return tmp$ret$5;
|
|
467
467
|
}
|
|
468
468
|
x1b(tag) {
|
|
469
|
-
return this.
|
|
469
|
+
return this.w6p((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
470
470
|
}
|
|
471
|
-
|
|
471
|
+
x6p(tag) {
|
|
472
472
|
var tmp$ret$4;
|
|
473
473
|
$l$block: {
|
|
474
474
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
475
475
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
476
476
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
477
|
-
var value = this.
|
|
477
|
+
var value = this.q6p(tag);
|
|
478
478
|
if (!(value instanceof JsonPrimitive())) {
|
|
479
479
|
var tmp = getKClass(JsonPrimitive()).ag();
|
|
480
480
|
var tmp_0 = getKClassFromExpression(value).ag();
|
|
481
|
-
var tmp$ret$0 = this.
|
|
481
|
+
var tmp$ret$0 = this.o6p(tag);
|
|
482
482
|
throw JsonDecodingException(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'long' + ' at element: ' + tmp$ret$0, toString(value));
|
|
483
483
|
}
|
|
484
484
|
var literal = value;
|
|
@@ -504,19 +504,19 @@ function AbstractJsonTreeDecoder() {
|
|
|
504
504
|
return tmp$ret$4;
|
|
505
505
|
}
|
|
506
506
|
y1b(tag) {
|
|
507
|
-
return this.
|
|
507
|
+
return this.x6p((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
508
508
|
}
|
|
509
|
-
|
|
509
|
+
y6p(tag) {
|
|
510
510
|
var tmp$ret$4;
|
|
511
511
|
$l$block: {
|
|
512
512
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
513
513
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
514
514
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
515
|
-
var value = this.
|
|
515
|
+
var value = this.q6p(tag);
|
|
516
516
|
if (!(value instanceof JsonPrimitive())) {
|
|
517
517
|
var tmp = getKClass(JsonPrimitive()).ag();
|
|
518
518
|
var tmp_0 = getKClassFromExpression(value).ag();
|
|
519
|
-
var tmp$ret$0 = this.
|
|
519
|
+
var tmp$ret$0 = this.o6p(tag);
|
|
520
520
|
throw JsonDecodingException(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'float' + ' at element: ' + tmp$ret$0, toString(value));
|
|
521
521
|
}
|
|
522
522
|
var literal = value;
|
|
@@ -540,25 +540,25 @@ function AbstractJsonTreeDecoder() {
|
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
var result = tmp$ret$4;
|
|
543
|
-
var specialFp = this.
|
|
543
|
+
var specialFp = this.o6i().n6g_1.h6i_1;
|
|
544
544
|
if (specialFp || isFinite(result))
|
|
545
545
|
return result;
|
|
546
|
-
throw InvalidFloatingPointDecoded(result, tag, toString(this.
|
|
546
|
+
throw InvalidFloatingPointDecoded(result, tag, toString(this.p6p()));
|
|
547
547
|
}
|
|
548
548
|
z1b(tag) {
|
|
549
|
-
return this.
|
|
549
|
+
return this.y6p((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
550
550
|
}
|
|
551
|
-
|
|
551
|
+
z6p(tag) {
|
|
552
552
|
var tmp$ret$4;
|
|
553
553
|
$l$block: {
|
|
554
554
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
555
555
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
556
556
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
557
|
-
var value = this.
|
|
557
|
+
var value = this.q6p(tag);
|
|
558
558
|
if (!(value instanceof JsonPrimitive())) {
|
|
559
559
|
var tmp = getKClass(JsonPrimitive()).ag();
|
|
560
560
|
var tmp_0 = getKClassFromExpression(value).ag();
|
|
561
|
-
var tmp$ret$0 = this.
|
|
561
|
+
var tmp$ret$0 = this.o6p(tag);
|
|
562
562
|
throw JsonDecodingException(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'double' + ' at element: ' + tmp$ret$0, toString(value));
|
|
563
563
|
}
|
|
564
564
|
var literal = value;
|
|
@@ -582,30 +582,30 @@ function AbstractJsonTreeDecoder() {
|
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
584
|
var result = tmp$ret$4;
|
|
585
|
-
var specialFp = this.
|
|
585
|
+
var specialFp = this.o6i().n6g_1.h6i_1;
|
|
586
586
|
if (specialFp || isFinite_0(result))
|
|
587
587
|
return result;
|
|
588
|
-
throw InvalidFloatingPointDecoded(result, tag, toString(this.
|
|
588
|
+
throw InvalidFloatingPointDecoded(result, tag, toString(this.p6p()));
|
|
589
589
|
}
|
|
590
590
|
a1c(tag) {
|
|
591
|
-
return this.
|
|
591
|
+
return this.z6p((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
592
592
|
}
|
|
593
|
-
|
|
593
|
+
a6q(tag) {
|
|
594
594
|
var tmp$ret$4;
|
|
595
595
|
$l$block: {
|
|
596
596
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
597
597
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
598
598
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
599
|
-
var value = this.
|
|
599
|
+
var value = this.q6p(tag);
|
|
600
600
|
if (!(value instanceof JsonPrimitive())) {
|
|
601
601
|
var tmp = getKClass(JsonPrimitive()).ag();
|
|
602
602
|
var tmp_0 = getKClassFromExpression(value).ag();
|
|
603
|
-
var tmp$ret$0 = this.
|
|
603
|
+
var tmp$ret$0 = this.o6p(tag);
|
|
604
604
|
throw JsonDecodingException(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'char' + ' at element: ' + tmp$ret$0, toString(value));
|
|
605
605
|
}
|
|
606
606
|
var literal = value;
|
|
607
607
|
try {
|
|
608
|
-
var tmp0_elvis_lhs = new (Char())(single(literal.
|
|
608
|
+
var tmp0_elvis_lhs = new (Char())(single(literal.s6i()));
|
|
609
609
|
var tmp_1;
|
|
610
610
|
if (tmp0_elvis_lhs == null) {
|
|
611
611
|
unparsedPrimitive(this, literal, 'char', tag);
|
|
@@ -626,56 +626,56 @@ function AbstractJsonTreeDecoder() {
|
|
|
626
626
|
return tmp$ret$4;
|
|
627
627
|
}
|
|
628
628
|
b1c(tag) {
|
|
629
|
-
return this.
|
|
629
|
+
return this.a6q((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
630
630
|
}
|
|
631
|
-
|
|
631
|
+
b6q(tag) {
|
|
632
632
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
633
633
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
634
|
-
var value = this.
|
|
634
|
+
var value = this.q6p(tag);
|
|
635
635
|
if (!(value instanceof JsonPrimitive())) {
|
|
636
636
|
var tmp = getKClass(JsonPrimitive()).ag();
|
|
637
637
|
var tmp_0 = getKClassFromExpression(value).ag();
|
|
638
|
-
var tmp$ret$0 = this.
|
|
638
|
+
var tmp$ret$0 = this.o6p(tag);
|
|
639
639
|
throw JsonDecodingException(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'string' + ' at element: ' + tmp$ret$0, toString(value));
|
|
640
640
|
}
|
|
641
641
|
var value_0 = value;
|
|
642
642
|
if (!(value_0 instanceof JsonLiteral()))
|
|
643
|
-
throw JsonDecodingException(-1, "Expected string value for a non-null key '" + tag + "', got null literal instead at element: " + this.
|
|
644
|
-
if (!value_0.
|
|
645
|
-
throw JsonDecodingException(-1, "String literal for key '" + tag + "' should be quoted at element: " + this.
|
|
643
|
+
throw JsonDecodingException(-1, "Expected string value for a non-null key '" + tag + "', got null literal instead at element: " + this.o6p(tag), toString(this.p6p()));
|
|
644
|
+
if (!value_0.t6i_1 && !this.o6i().n6g_1.z6h_1) {
|
|
645
|
+
throw JsonDecodingException(-1, "String literal for key '" + tag + "' should be quoted at element: " + this.o6p(tag) + ".\nUse 'isLenient = true' in 'Json {}' builder to accept non-compliant JSON.", toString(this.p6p()));
|
|
646
646
|
}
|
|
647
|
-
return value_0.
|
|
647
|
+
return value_0.v6i_1;
|
|
648
648
|
}
|
|
649
649
|
c1c(tag) {
|
|
650
|
-
return this.
|
|
650
|
+
return this.b6q((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
651
651
|
}
|
|
652
|
-
|
|
652
|
+
c6q(tag, inlineDescriptor) {
|
|
653
653
|
var tmp;
|
|
654
654
|
if (get_isUnsignedNumber(inlineDescriptor)) {
|
|
655
|
-
var tmp_0 = this.
|
|
655
|
+
var tmp_0 = this.o6i();
|
|
656
656
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
657
|
-
var tmp2 = this.
|
|
657
|
+
var tmp2 = this.q6p(tag);
|
|
658
658
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
659
659
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
660
660
|
var serialName = inlineDescriptor.au();
|
|
661
661
|
if (!(tmp2 instanceof JsonPrimitive())) {
|
|
662
662
|
var tmp_1 = getKClass(JsonPrimitive()).ag();
|
|
663
663
|
var tmp_2 = getKClassFromExpression(tmp2).ag();
|
|
664
|
-
var tmp$ret$0 = this.
|
|
664
|
+
var tmp$ret$0 = this.o6p(tag);
|
|
665
665
|
throw JsonDecodingException(-1, 'Expected ' + tmp_1 + ', but had ' + tmp_2 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$0, toString(tmp2));
|
|
666
666
|
}
|
|
667
|
-
var lexer = StringJsonLexer(tmp_0, tmp2.
|
|
668
|
-
tmp = new (JsonDecoderForUnsignedTypes())(lexer, this.
|
|
667
|
+
var lexer = StringJsonLexer(tmp_0, tmp2.s6i());
|
|
668
|
+
tmp = new (JsonDecoderForUnsignedTypes())(lexer, this.o6i());
|
|
669
669
|
} else {
|
|
670
670
|
tmp = super.e1c(tag, inlineDescriptor);
|
|
671
671
|
}
|
|
672
672
|
return tmp;
|
|
673
673
|
}
|
|
674
674
|
e1c(tag, inlineDescriptor) {
|
|
675
|
-
return this.
|
|
675
|
+
return this.c6q((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), inlineDescriptor);
|
|
676
676
|
}
|
|
677
677
|
hx(descriptor) {
|
|
678
|
-
return !(this.p1b() == null) ? super.hx(descriptor) : (new (JsonPrimitiveDecoder())(this.
|
|
678
|
+
return !(this.p1b() == null) ? super.hx(descriptor) : (new (JsonPrimitiveDecoder())(this.o6i(), this.s1(), this.m6p_1)).hx(descriptor);
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
681
|
initMetadataForClass($, 'AbstractJsonTreeDecoder', VOID, VOID, [NamedValueDecoder(), JsonDecoder()]);
|
|
@@ -684,8 +684,8 @@ function AbstractJsonTreeDecoder() {
|
|
|
684
684
|
return AbstractJsonTreeDecoderClass;
|
|
685
685
|
}
|
|
686
686
|
function setForceNull($this, descriptor, index) {
|
|
687
|
-
$this.
|
|
688
|
-
return $this.
|
|
687
|
+
$this.m6q_1 = (!$this.o6i().n6g_1.c6i_1 && !descriptor.wv(index) && descriptor.vv(index).kv());
|
|
688
|
+
return $this.m6q_1;
|
|
689
689
|
}
|
|
690
690
|
var JsonTreeDecoderClass;
|
|
691
691
|
function JsonTreeDecoder() {
|
|
@@ -695,21 +695,21 @@ function JsonTreeDecoder() {
|
|
|
695
695
|
polymorphicDiscriminator = polymorphicDiscriminator === VOID ? null : polymorphicDiscriminator;
|
|
696
696
|
polyDescriptor = polyDescriptor === VOID ? null : polyDescriptor;
|
|
697
697
|
super(json, value, polymorphicDiscriminator);
|
|
698
|
-
this.
|
|
699
|
-
this.
|
|
700
|
-
this.
|
|
701
|
-
this.
|
|
698
|
+
this.j6q_1 = value;
|
|
699
|
+
this.k6q_1 = polyDescriptor;
|
|
700
|
+
this.l6q_1 = 0;
|
|
701
|
+
this.m6q_1 = false;
|
|
702
702
|
}
|
|
703
703
|
s1() {
|
|
704
|
-
return this.
|
|
704
|
+
return this.j6q_1;
|
|
705
705
|
}
|
|
706
706
|
ay(descriptor) {
|
|
707
|
-
$l$loop: while (this.
|
|
708
|
-
var _unary__edvuaz = this.
|
|
709
|
-
this.
|
|
707
|
+
$l$loop: while (this.l6q_1 < descriptor.qv()) {
|
|
708
|
+
var _unary__edvuaz = this.l6q_1;
|
|
709
|
+
this.l6q_1 = _unary__edvuaz + 1 | 0;
|
|
710
710
|
var name = this.k1b(descriptor, _unary__edvuaz);
|
|
711
|
-
var index = this.
|
|
712
|
-
this.
|
|
711
|
+
var index = this.l6q_1 - 1 | 0;
|
|
712
|
+
this.m6q_1 = false;
|
|
713
713
|
var tmp;
|
|
714
714
|
// Inline function 'kotlin.collections.contains' call
|
|
715
715
|
// Inline function 'kotlin.collections.containsKey' call
|
|
@@ -720,9 +720,9 @@ function JsonTreeDecoder() {
|
|
|
720
720
|
tmp = setForceNull(this, descriptor, index);
|
|
721
721
|
}
|
|
722
722
|
if (tmp) {
|
|
723
|
-
if (!this.
|
|
723
|
+
if (!this.n6p_1.e6i_1)
|
|
724
724
|
return index;
|
|
725
|
-
var tmp0 = this.
|
|
725
|
+
var tmp0 = this.o6i();
|
|
726
726
|
var tmp$ret$3;
|
|
727
727
|
$l$block_2: {
|
|
728
728
|
// Inline function 'kotlinx.serialization.json.internal.tryCoerceValue' call
|
|
@@ -730,7 +730,7 @@ function JsonTreeDecoder() {
|
|
|
730
730
|
var elementDescriptor = descriptor.vv(index);
|
|
731
731
|
var tmp_0;
|
|
732
732
|
if (isOptional && !elementDescriptor.kv()) {
|
|
733
|
-
var tmp_1 = this.
|
|
733
|
+
var tmp_1 = this.n6q(name);
|
|
734
734
|
tmp_0 = tmp_1 instanceof JsonNull();
|
|
735
735
|
} else {
|
|
736
736
|
tmp_0 = false;
|
|
@@ -742,7 +742,7 @@ function JsonTreeDecoder() {
|
|
|
742
742
|
if (equals(elementDescriptor.ov(), ENUM_getInstance())) {
|
|
743
743
|
var tmp_2;
|
|
744
744
|
if (elementDescriptor.kv()) {
|
|
745
|
-
var tmp_3 = this.
|
|
745
|
+
var tmp_3 = this.n6q(name);
|
|
746
746
|
tmp_2 = tmp_3 instanceof JsonNull();
|
|
747
747
|
} else {
|
|
748
748
|
tmp_2 = false;
|
|
@@ -751,7 +751,7 @@ function JsonTreeDecoder() {
|
|
|
751
751
|
tmp$ret$3 = false;
|
|
752
752
|
break $l$block_2;
|
|
753
753
|
}
|
|
754
|
-
var tmp_4 = this.
|
|
754
|
+
var tmp_4 = this.n6q(name);
|
|
755
755
|
var tmp0_safe_receiver = tmp_4 instanceof JsonPrimitive() ? tmp_4 : null;
|
|
756
756
|
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : get_contentOrNull(tmp0_safe_receiver);
|
|
757
757
|
var tmp_5;
|
|
@@ -763,7 +763,7 @@ function JsonTreeDecoder() {
|
|
|
763
763
|
}
|
|
764
764
|
var enumValue = tmp_5;
|
|
765
765
|
var enumIndex = getJsonNameIndex(elementDescriptor, tmp0, enumValue);
|
|
766
|
-
var coerceToNull = !tmp0.
|
|
766
|
+
var coerceToNull = !tmp0.n6g_1.c6i_1 && elementDescriptor.kv();
|
|
767
767
|
if (enumIndex === -3 && (isOptional || coerceToNull)) {
|
|
768
768
|
if (setForceNull(this, descriptor, index))
|
|
769
769
|
return index;
|
|
@@ -781,18 +781,18 @@ function JsonTreeDecoder() {
|
|
|
781
781
|
return -1;
|
|
782
782
|
}
|
|
783
783
|
vw() {
|
|
784
|
-
return !this.
|
|
784
|
+
return !this.m6q_1 && super.vw();
|
|
785
785
|
}
|
|
786
786
|
l1b(descriptor, index) {
|
|
787
|
-
var strategy = namingStrategy(descriptor, this.
|
|
787
|
+
var strategy = namingStrategy(descriptor, this.o6i());
|
|
788
788
|
var baseName = descriptor.sv(index);
|
|
789
789
|
if (strategy == null) {
|
|
790
|
-
if (!this.
|
|
790
|
+
if (!this.n6p_1.i6i_1)
|
|
791
791
|
return baseName;
|
|
792
792
|
if (this.s1().x2().q2(baseName))
|
|
793
793
|
return baseName;
|
|
794
794
|
}
|
|
795
|
-
var deserializationNamesMap_0 = deserializationNamesMap(this.
|
|
795
|
+
var deserializationNamesMap_0 = deserializationNamesMap(this.o6i(), descriptor);
|
|
796
796
|
// Inline function 'kotlin.collections.find' call
|
|
797
797
|
var tmp0 = this.s1().x2();
|
|
798
798
|
var tmp$ret$1;
|
|
@@ -815,35 +815,35 @@ function JsonTreeDecoder() {
|
|
|
815
815
|
// Inline function 'kotlin.let' call
|
|
816
816
|
return tmp0_safe_receiver;
|
|
817
817
|
}
|
|
818
|
-
var fallbackName = strategy == null ? null : strategy.
|
|
818
|
+
var fallbackName = strategy == null ? null : strategy.z6l(descriptor, index, baseName);
|
|
819
819
|
return fallbackName == null ? baseName : fallbackName;
|
|
820
820
|
}
|
|
821
|
-
|
|
821
|
+
q6p(tag) {
|
|
822
822
|
return getValue(this.s1(), tag);
|
|
823
823
|
}
|
|
824
|
-
|
|
825
|
-
return this.s1().
|
|
824
|
+
n6q(tag) {
|
|
825
|
+
return this.s1().c3s(tag);
|
|
826
826
|
}
|
|
827
827
|
kx(descriptor) {
|
|
828
|
-
if (descriptor === this.
|
|
829
|
-
var tmp = this.
|
|
830
|
-
var tmp2 = this.
|
|
828
|
+
if (descriptor === this.k6q_1) {
|
|
829
|
+
var tmp = this.o6i();
|
|
830
|
+
var tmp2 = this.p6p();
|
|
831
831
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
832
832
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
833
|
-
var serialName = this.
|
|
833
|
+
var serialName = this.k6q_1.au();
|
|
834
834
|
if (!(tmp2 instanceof JsonObject())) {
|
|
835
835
|
var tmp_0 = getKClass(JsonObject()).ag();
|
|
836
836
|
var tmp_1 = getKClassFromExpression(tmp2).ag();
|
|
837
837
|
var tmp$ret$0 = this.r1b();
|
|
838
838
|
throw JsonDecodingException(-1, 'Expected ' + tmp_0 + ', but had ' + tmp_1 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$0, toString(tmp2));
|
|
839
839
|
}
|
|
840
|
-
return new (JsonTreeDecoder())(tmp, tmp2, this.
|
|
840
|
+
return new (JsonTreeDecoder())(tmp, tmp2, this.m6p_1, this.k6q_1);
|
|
841
841
|
}
|
|
842
842
|
return super.kx(descriptor);
|
|
843
843
|
}
|
|
844
844
|
lx(descriptor) {
|
|
845
845
|
var tmp;
|
|
846
|
-
if (ignoreUnknownKeys(descriptor, this.
|
|
846
|
+
if (ignoreUnknownKeys(descriptor, this.o6i())) {
|
|
847
847
|
tmp = true;
|
|
848
848
|
} else {
|
|
849
849
|
var tmp_0 = descriptor.ov();
|
|
@@ -851,15 +851,15 @@ function JsonTreeDecoder() {
|
|
|
851
851
|
}
|
|
852
852
|
if (tmp)
|
|
853
853
|
return Unit_instance;
|
|
854
|
-
var strategy = namingStrategy(descriptor, this.
|
|
854
|
+
var strategy = namingStrategy(descriptor, this.o6i());
|
|
855
855
|
var tmp_1;
|
|
856
|
-
if (strategy == null && !this.
|
|
856
|
+
if (strategy == null && !this.n6p_1.i6i_1) {
|
|
857
857
|
tmp_1 = jsonCachedSerialNames(descriptor);
|
|
858
858
|
} else if (!(strategy == null)) {
|
|
859
|
-
tmp_1 = deserializationNamesMap(this.
|
|
859
|
+
tmp_1 = deserializationNamesMap(this.o6i(), descriptor).x2();
|
|
860
860
|
} else {
|
|
861
861
|
var tmp_2 = jsonCachedSerialNames(descriptor);
|
|
862
|
-
var tmp0_safe_receiver = get_schemaCache(this.
|
|
862
|
+
var tmp0_safe_receiver = get_schemaCache(this.o6i()).n6o(descriptor, get_JsonDeserializationNamesKey());
|
|
863
863
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
864
864
|
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x2();
|
|
865
865
|
var tmp$ret$0 = tmp0_elvis_lhs == null ? emptySet() : tmp0_elvis_lhs;
|
|
@@ -869,7 +869,7 @@ function JsonTreeDecoder() {
|
|
|
869
869
|
var _iterator__ex2g4s = this.s1().x2().d1();
|
|
870
870
|
while (_iterator__ex2g4s.e1()) {
|
|
871
871
|
var key = _iterator__ex2g4s.f1();
|
|
872
|
-
if (!names.q2(key) && !(key === this.
|
|
872
|
+
if (!names.q2(key) && !(key === this.m6p_1)) {
|
|
873
873
|
throw JsonDecodingException_0(-1, "Encountered an unknown key '" + key + "' at element: " + this.r1b() + '\n' + "Use 'ignoreUnknownKeys = true' in 'Json {}' builder or '@JsonIgnoreUnknownKeys' annotation to ignore unknown keys.\n" + ('JSON input: ' + toString(minify(this.s1().toString()))));
|
|
874
874
|
}
|
|
875
875
|
}
|
|
@@ -886,23 +886,23 @@ function JsonTreeListDecoder() {
|
|
|
886
886
|
class $ extends AbstractJsonTreeDecoder() {
|
|
887
887
|
constructor(json, value) {
|
|
888
888
|
super(json, value);
|
|
889
|
-
this.
|
|
890
|
-
this.
|
|
891
|
-
this.
|
|
889
|
+
this.u6q_1 = value;
|
|
890
|
+
this.v6q_1 = this.u6q_1.i1();
|
|
891
|
+
this.w6q_1 = -1;
|
|
892
892
|
}
|
|
893
893
|
s1() {
|
|
894
|
-
return this.
|
|
894
|
+
return this.u6q_1;
|
|
895
895
|
}
|
|
896
896
|
l1b(descriptor, index) {
|
|
897
897
|
return index.toString();
|
|
898
898
|
}
|
|
899
|
-
|
|
900
|
-
return this.
|
|
899
|
+
q6p(tag) {
|
|
900
|
+
return this.u6q_1.j1(toInt(tag));
|
|
901
901
|
}
|
|
902
902
|
ay(descriptor) {
|
|
903
|
-
while (this.
|
|
904
|
-
this.
|
|
905
|
-
return this.
|
|
903
|
+
while (this.w6q_1 < (this.v6q_1 - 1 | 0)) {
|
|
904
|
+
this.w6q_1 = this.w6q_1 + 1 | 0;
|
|
905
|
+
return this.w6q_1;
|
|
906
906
|
}
|
|
907
907
|
return -1;
|
|
908
908
|
}
|
|
@@ -919,22 +919,22 @@ function JsonPrimitiveDecoder() {
|
|
|
919
919
|
constructor(json, value, polymorphicDiscriminator) {
|
|
920
920
|
polymorphicDiscriminator = polymorphicDiscriminator === VOID ? null : polymorphicDiscriminator;
|
|
921
921
|
super(json, value, polymorphicDiscriminator);
|
|
922
|
-
this.
|
|
922
|
+
this.d6r_1 = value;
|
|
923
923
|
this.f1c('primitive');
|
|
924
924
|
}
|
|
925
925
|
s1() {
|
|
926
|
-
return this.
|
|
926
|
+
return this.d6r_1;
|
|
927
927
|
}
|
|
928
928
|
ay(descriptor) {
|
|
929
929
|
return 0;
|
|
930
930
|
}
|
|
931
|
-
|
|
931
|
+
q6p(tag) {
|
|
932
932
|
// Inline function 'kotlin.require' call
|
|
933
933
|
if (!(tag === 'primitive')) {
|
|
934
934
|
var message = "This input can only handle primitives with 'primitive' tag";
|
|
935
935
|
throw IllegalArgumentException().u(toString(message));
|
|
936
936
|
}
|
|
937
|
-
return this.
|
|
937
|
+
return this.d6r_1;
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
940
|
initMetadataForClass($, 'JsonPrimitiveDecoder');
|
|
@@ -948,27 +948,27 @@ function JsonTreeMapDecoder() {
|
|
|
948
948
|
class $ extends JsonTreeDecoder() {
|
|
949
949
|
constructor(json, value) {
|
|
950
950
|
super(json, value);
|
|
951
|
-
this.
|
|
952
|
-
this.
|
|
953
|
-
this.
|
|
954
|
-
this.
|
|
951
|
+
this.o6r_1 = value;
|
|
952
|
+
this.p6r_1 = toList(this.o6r_1.x2());
|
|
953
|
+
this.q6r_1 = imul(this.p6r_1.i1(), 2);
|
|
954
|
+
this.r6r_1 = -1;
|
|
955
955
|
}
|
|
956
956
|
s1() {
|
|
957
|
-
return this.
|
|
957
|
+
return this.o6r_1;
|
|
958
958
|
}
|
|
959
959
|
l1b(descriptor, index) {
|
|
960
960
|
var i = index / 2 | 0;
|
|
961
|
-
return this.
|
|
961
|
+
return this.p6r_1.j1(i);
|
|
962
962
|
}
|
|
963
963
|
ay(descriptor) {
|
|
964
|
-
while (this.
|
|
965
|
-
this.
|
|
966
|
-
return this.
|
|
964
|
+
while (this.r6r_1 < (this.q6r_1 - 1 | 0)) {
|
|
965
|
+
this.r6r_1 = this.r6r_1 + 1 | 0;
|
|
966
|
+
return this.r6r_1;
|
|
967
967
|
}
|
|
968
968
|
return -1;
|
|
969
969
|
}
|
|
970
|
-
|
|
971
|
-
return (this.
|
|
970
|
+
q6p(tag) {
|
|
971
|
+
return (this.r6r_1 % 2 | 0) === 0 ? JsonPrimitive_0(tag) : getValue(this.o6r_1, tag);
|
|
972
972
|
}
|
|
973
973
|
lx(descriptor) {
|
|
974
974
|
}
|