@continuous-excellence/coupling-cli 1.1.415 → 1.1.417
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/Coupling-cli/com/zegreatrob/coupling/cli/Auth0Environment.mjs +8 -8
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/CliScope.mjs +6 -6
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Login.mjs +24 -23
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Login.mjs.map +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Main.mjs +17 -9
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Main.mjs.map +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Welcome.mjs +9 -5
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Welcome.mjs.map +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/WithSdk.mjs +14 -14
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/PartyListQuery.mjs +22 -22
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/adapter/PartyListQuery_ResponseAdapter.mjs +21 -21
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/BatchContribution.mjs +37 -36
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/BatchContribution.mjs.map +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/Contribution.mjs +19 -18
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/Contribution.mjs.map +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/ContributionInput.mjs +14 -14
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/CycleTimeFromFirstCommit.mjs +5 -5
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/CycleTimeFromFirstCommit.mjs.map +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/Party.mjs +154 -8
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/Party.mjs.map +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/PartyDetails.mjs +244 -0
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/PartyDetails.mjs.map +1 -0
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/{List.mjs → PartyList.mjs} +53 -42
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/PartyList.mjs.map +1 -0
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/SaveContribution.mjs +57 -56
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/SaveContribution.mjs.map +1 -1
- package/kotlin/Coupling-libraries-action/com/zegreatrob/coupling/action/ActionLoggingSyntax.mjs +12 -12
- package/kotlin/Coupling-libraries-action/com/zegreatrob/coupling/action/LoggingActionPipe.mjs +18 -18
- package/kotlin/Coupling-libraries-action/com/zegreatrob/coupling/action/party/SaveContributionCommand.mjs +7 -7
- package/kotlin/Coupling-libraries-action/com/zegreatrob/coupling/action/party/SaveContributionCommandDispatcherExecuteKt.mjs +13 -13
- package/kotlin/Coupling-libraries-auth0-management/com/zegreatrob/coupling/auth0/management/DeviceCodeRequest.mjs +47 -47
- package/kotlin/Coupling-libraries-auth0-management/com/zegreatrob/coupling/auth0/management/KtorAuth0Client.mjs +20 -20
- package/kotlin/Coupling-libraries-auth0-management/com/zegreatrob/coupling/auth0/management/PollResult.mjs +75 -75
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/Contribution.mjs +44 -44
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/ContributionId.mjs +4 -4
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/pairassignmentdocument/PairingSetId.mjs +4 -4
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/party/PairingRule.mjs +1 -1
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/party/PartyDetails.mjs +27 -27
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/party/PartyId.mjs +5 -5
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/party/SecretId.mjs +4 -4
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/pin/Pin.mjs +4 -4
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/player/PlayerId.mjs +4 -4
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/user/UserId.mjs +4 -4
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/KtorSdk.mjs +19 -19
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/KtorSyntax.mjs +4 -4
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/SdkGraphQueryDispatcher.mjs +2 -2
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/SdkSaveContributionCommandDispatcher.mjs +20 -20
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/adapter/Adapter.mjs +32 -32
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/gql/GqlQuery.mjs +13 -13
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/gql/GqlTrait.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/gql/KtorQueryPerformer.mjs +6 -6
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/mapper/PartyDetailsMapper.mjs +10 -10
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/PartyDetailsQuery.mjs +162 -0
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/PartyDetailsQuery.mjs.map +1 -0
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/SaveContributionMutation.mjs +20 -20
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/adapter/PartyDetailsQuery_ResponseAdapter.mjs +112 -0
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/adapter/PartyDetailsQuery_ResponseAdapter.mjs.map +1 -0
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/adapter/PartyDetailsQuery_VariablesAdapter.mjs +36 -0
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/adapter/PartyDetailsQuery_VariablesAdapter.mjs.map +1 -0
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/adapter/SaveContributionMutation_ResponseAdapter.mjs +9 -9
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/adapter/SaveContributionMutation_VariablesAdapter.mjs +3 -3
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/fragment/PartyDetails.mjs +31 -31
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/fragment/PartyDetailsImpl_ResponseAdapter.mjs +36 -36
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/ContributionInput.mjs +44 -44
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/GraphQLFloat.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/SaveContributionInput.mjs +7 -7
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/adapter/ContributionInput_InputAdapter.mjs +47 -47
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/adapter/SaveContributionInput_InputAdapter.mjs +8 -8
- package/kotlin/apollo-kotlin-adapters-apollo-adapters-core/com/apollographql/adapter/core/KotlinInstantAdapter.mjs +6 -6
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/Adapters.mjs +106 -106
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/ApolloRequest.mjs +54 -54
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/ApolloResponse.mjs +61 -61
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/Assertions.mjs +1 -1
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/CompiledGraphQL.mjs +2 -2
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/CustomScalarAdapters.mjs +42 -42
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/DeferredFragmentIdentifier.mjs +7 -7
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/Error.mjs +9 -9
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/Executable.mjs +1 -1
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/Executables.mjs +7 -7
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/ExecutionContext.mjs +21 -21
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/Operations.mjs +9 -9
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/Optional.mjs +5 -5
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/http/DefaultHttpRequestComposer.mjs +133 -133
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/http/Http.mjs +56 -56
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/http/HttpHeaders.mjs +2 -2
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/internal/ResponseParser.mjs +28 -28
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/json/BufferedSinkJsonWriter.mjs +84 -84
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/json/BufferedSourceJsonReader.mjs +274 -274
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/json/JsonNumber.mjs +2 -2
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/json/JsonReaders.mjs +12 -12
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/json/JsonWriters.mjs +12 -12
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/json/MapJsonReader.mjs +111 -111
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/json/MapJsonWriter.mjs +48 -48
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/json/internal/FileUploadAwareJsonWriter.mjs +35 -35
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/json/internal/JsonScope.mjs +9 -9
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/exception/Exceptions.mjs +51 -51
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/ApolloCall.mjs +18 -18
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/ApolloClient.mjs +214 -214
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/ConcurrencyInfo.mjs +6 -6
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/interceptor/ApolloInterceptor.mjs +5 -5
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/interceptor/NetworkInterceptor.mjs +7 -7
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/interceptor/RetryOnErrorInterceptor.mjs +40 -40
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/internal/DeferredJsonMerger.mjs +27 -27
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/internal/MultipartReader.mjs +48 -48
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/internal/dispatchers.js.mjs +1 -1
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/internal/flows.mjs +30 -30
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/internal/multipart.mjs +18 -18
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/NetworkMonitor.mjs +4 -4
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/http/DefaultHttpEngine.js.mjs +30 -30
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/http/DefaultHttpEngine.js.mjs.map +1 -1
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/http/HttpEngine.mjs +1 -1
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/http/HttpExecutionContext.mjs +8 -8
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/http/HttpInterceptor.mjs +5 -5
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/http/HttpNetworkTransport.mjs +144 -144
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/http/Js.mjs +2 -2
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/http/Js.mjs.map +1 -1
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/ws/JsWebSocketEngine.mjs +32 -32
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/ws/JsWebSocketEngine.mjs.map +1 -1
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/ws/SubscriptionWsProtocol.mjs +29 -29
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/ws/WebSocketNetworkTransport.mjs +180 -180
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/ws/WsProtocol.mjs +23 -23
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/ws/internal/WsMessage.mjs +24 -24
- package/kotlin/apollo-kotlin-ktor-support-apollo-engine-ktor/com/apollographql/ktor/KtorExtensions.mjs +2 -2
- package/kotlin/apollo-kotlin-ktor-support-apollo-engine-ktor/com/apollographql/ktor/http/KtorHttpEngine.js.mjs +1 -1
- package/kotlin/apollo-kotlin-ktor-support-apollo-engine-ktor/com/apollographql/ktor/http/KtorHttpEngine.mjs +42 -42
- package/kotlin/apollo-kotlin-ktor-support-apollo-engine-ktor/com/apollographql/ktor/ws/KtorWebSocketEngine.mjs +66 -66
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/{core/CoreCliktCommand.mjs → command/CoreSuspendingCliktCommand.mjs} +35 -21
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/command/CoreSuspendingCliktCommand.mjs.map +1 -0
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/completion/BashCompletionGenerator.mjs +33 -33
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/completion/CompletionGenerator.mjs +4 -4
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/completion/FishCompletionGenerator.mjs +23 -23
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/core/BaseCliktCommand.mjs +109 -109
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/core/Context.mjs +93 -93
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/core/exceptions.mjs +124 -124
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/internal/Finalization.mjs +37 -37
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/internal/Util.mjs +2 -2
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/output/AbstractHelpFormatter.mjs +134 -134
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/output/HelpFormatter.mjs +48 -48
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/output/Localization.mjs +31 -31
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/output/PlaintextHelpFormatter.mjs +26 -26
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/groups/ParameterGroup.mjs +2 -2
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/internal/NullableLateinit.mjs +15 -14
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/internal/NullableLateinit.mjs.map +1 -1
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/EagerOption.mjs +6 -6
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/FlagOption.mjs +3 -3
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/Option.mjs +23 -22
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/Option.mjs.map +1 -1
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/OptionWithValues.mjs +211 -211
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/OptionWithValues.mjs.map +1 -1
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/TransformAll.mjs +6 -6
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/TransformEach.mjs +3 -3
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/transform/TransformContext.mjs +7 -7
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/types/boolean.mjs +9 -9
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parsers/CommandLineParser.mjs +29 -29
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parsers/Invocation.mjs +45 -45
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parsers/ParserInternals.mjs +230 -230
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parsers/atfile.mjs +3 -3
- package/kotlin/clikt-clikt-mordant/com/github/ajalt/clikt/{core/CliktCommand.mjs → command/SuspendingCliktCommand.mjs} +11 -11
- package/kotlin/clikt-clikt-mordant/com/github/ajalt/clikt/command/SuspendingCliktCommand.mjs.map +1 -0
- package/kotlin/clikt-clikt-mordant/com/github/ajalt/clikt/core/MordantContext.mjs +16 -16
- package/kotlin/clikt-clikt-mordant/com/github/ajalt/clikt/output/MordantHelpFormatter.mjs +65 -65
- package/kotlin/clikt-clikt-mordant/com/github/ajalt/clikt/parameters/options/PromptOptions.mjs +18 -18
- package/kotlin/clikt-clikt-mordant/com/github/ajalt/clikt/parameters/transform/MordantTransformContext.mjs +1 -1
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/Color.mjs +1 -1
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/ColorSpace.mjs +5 -5
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/WhitePoint.mjs +15 -15
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/internal/Matrix.mjs +10 -10
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/Ansi16.mjs +18 -18
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/Ansi256.mjs +19 -19
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/HSV.mjs +25 -25
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/ICtCp.mjs +19 -19
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/RGB.mjs +121 -121
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/RGBColorSpaces.mjs +134 -134
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/XYZ.mjs +64 -64
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/xyY.mjs +19 -19
- package/kotlin/kotlin-kotlin-stdlib/kotlin/DeepRecursive.mjs +19 -19
- package/kotlin/kotlin-kotlin-stdlib/kotlin/Lazy.mjs +9 -9
- package/kotlin/kotlin-kotlin-stdlib/kotlin/Result.mjs +5 -5
- package/kotlin/kotlin-kotlin-stdlib/kotlin/Tuples.mjs +12 -12
- package/kotlin/kotlin-kotlin-stdlib/kotlin/UByte.mjs +12 -12
- package/kotlin/kotlin-kotlin-stdlib/kotlin/UByteArray.mjs +25 -25
- package/kotlin/kotlin-kotlin-stdlib/kotlin/UInt.mjs +12 -12
- package/kotlin/kotlin-kotlin-stdlib/kotlin/UIntArray.mjs +25 -25
- package/kotlin/kotlin-kotlin-stdlib/kotlin/ULong.mjs +12 -12
- package/kotlin/kotlin-kotlin-stdlib/kotlin/ULongArray.mjs +25 -25
- package/kotlin/kotlin-kotlin-stdlib/kotlin/UShort.mjs +12 -12
- package/kotlin/kotlin-kotlin-stdlib/kotlin/UShortArray.mjs +25 -25
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableCollectionJs.mjs +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs +2 -2
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntry.mjs +2 -2
- package/kotlin/kotlin-kotlin-stdlib/kotlin/properties/Interfaces.mjs +22 -0
- package/kotlin/kotlin-kotlin-stdlib/kotlin/properties/Interfaces.mjs.map +1 -0
- package/kotlin/kotlin-kotlin-stdlib/kotlin/random/Random.mjs +37 -37
- package/kotlin/kotlin-kotlin-stdlib/kotlin/random/XorWowRandom.mjs +20 -20
- package/kotlin/kotlin-kotlin-stdlib/kotlin/ranges/PrimitiveRanges.mjs +17 -17
- package/kotlin/kotlin-kotlin-stdlib/kotlin/ranges/ProgressionIterators.mjs +22 -22
- package/kotlin/kotlin-kotlin-stdlib/kotlin/ranges/Progressions.mjs +10 -10
- package/kotlin/kotlin-kotlin-stdlib/kotlin/reflect/KTypeProjection.mjs +12 -12
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/Strings.mjs +57 -57
- package/kotlin/kotlin-kotlin-stdlib/kotlin/time/Clock.mjs +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/time/Duration.mjs +21 -21
- package/kotlin/kotlin-kotlin-stdlib/kotlin/time/Instant.mjs +58 -58
- package/kotlin/kotlin-kotlin-stdlib/kotlin/time/TimeSource.mjs +11 -11
- package/kotlin/kotlin-kotlin-stdlib/kotlin/time/measureTime.mjs +7 -7
- package/kotlin/kotlin-kotlin-stdlib/kotlin/uuid/Uuid.mjs +24 -24
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/Appender.mjs +3 -3
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/ConsoleOutputAppender.mjs +2 -2
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/Formatter.mjs +8 -8
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/KLogger.mjs +10 -10
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/KLoggingEvent.mjs +21 -21
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/KLoggingEventBuilder.mjs +1 -1
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs +2 -2
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLoggingConfiguration.mjs +3 -3
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLoggingLevel.mjs +1 -1
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/Level.mjs +3 -3
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs +9 -9
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerFactory.mjs +1 -1
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/internal/MessageInvoker.mjs +2 -2
- package/kotlin/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.common.mjs +5 -5
- package/kotlin/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.mjs +8 -8
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/AbstractCoroutine.mjs +25 -25
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Await.mjs +41 -41
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Await.mjs.map +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Builders.common.mjs +30 -30
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuation.mjs +7 -7
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuationImpl.mjs +160 -160
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuationImpl.mjs.map +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CompletableDeferred.mjs +10 -10
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CompletionState.mjs +11 -11
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineContext.mjs +5 -5
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineDispatcher.mjs +5 -5
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineExceptionHandler.mjs +2 -2
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineName.mjs +4 -4
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs +3 -3
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineStart.mjs +2 -2
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Delay.mjs +4 -4
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Delay.mjs.map +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +42 -42
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +18 -18
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.common.mjs +27 -27
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.mjs +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.common.mjs +4 -4
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.mjs +6 -6
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +92 -92
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Job.mjs +18 -18
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/JobSupport.mjs +323 -323
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/JobSupport.mjs.map +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/MainCoroutineDispatcher.mjs +5 -5
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Promise.mjs +2 -2
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Promise.mjs.map +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Supervisor.mjs +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Timeout.mjs +18 -18
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Unconfined.mjs +4 -4
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs +459 -459
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs.map +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channel.mjs +30 -30
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +25 -25
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channels.common.mjs +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/channels/ConflatedBufferedChannel.mjs +16 -16
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/channels/Produce.mjs +13 -13
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Builders.mjs +20 -20
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Channels.mjs +2 -2
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Collect.mjs +2 -2
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Collection.mjs +10 -10
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Context.mjs +2 -2
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Emitters.mjs +14 -14
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Errors.mjs +28 -28
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Flow.mjs +2 -2
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Limit.mjs +16 -16
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +9 -9
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Share.mjs +19 -19
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/SharedFlow.mjs +132 -132
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/SharedFlow.mjs.map +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Transform.mjs +19 -19
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/AbstractSharedFlow.mjs +31 -31
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/ChannelFlow.mjs +72 -72
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.common.mjs +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.mjs +3 -3
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NopCollector.mjs +3 -3
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.common.mjs +4 -4
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.mjs +8 -8
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SendingCollector.mjs +3 -3
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/ConcurrentLinkedList.mjs +45 -45
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +2 -2
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +2 -2
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +71 -71
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/LimitedDispatcher.mjs +39 -39
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +22 -22
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/LockFreeTaskQueue.mjs +72 -72
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/NamedDispatcher.mjs +12 -12
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +3 -3
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +11 -11
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/ThreadLocal.mjs +5 -5
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Cancellable.mjs +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Undispatched.mjs +9 -9
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +15 -15
- package/kotlin/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +34 -34
- package/kotlin/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +153 -153
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +50 -50
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +130 -130
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +5 -5
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +12 -12
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +58 -58
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/PolymorphicSerializer.mjs +17 -17
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SealedSerializer.mjs +3 -3
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs +16 -16
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/Serializers.mjs +4 -4
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersCache.mjs +4 -4
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs +4 -4
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/builtins/BuiltinSerializers.mjs +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/ContextAware.mjs +30 -30
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptor.mjs +18 -18
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptors.mjs +57 -57
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractDecoder.mjs +41 -41
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractEncoder.mjs +48 -48
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Decoding.mjs +2 -2
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Encoding.mjs +7 -7
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/AbstractPolymorphicSerializer.mjs +25 -25
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/BuiltInSerializers.mjs +38 -38
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionDescriptors.mjs +55 -55
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionSerializers.mjs +230 -230
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ElementMarker.mjs +22 -22
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Enums.mjs +33 -33
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/InlineClassDescriptor.mjs +16 -16
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NoOpEncoder.mjs +12 -12
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NothingSerialDescriptor.mjs +16 -16
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NullableSerializer.mjs +39 -39
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ObjectSerializer.mjs +19 -19
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.common.mjs +7 -7
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.mjs +8 -8
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs +2 -2
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs +70 -70
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PrimitiveArraysSerializers.mjs +444 -444
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.mjs +113 -113
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tagged.mjs +93 -93
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tuples.mjs +90 -90
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ValueClasses.mjs +48 -48
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModule.mjs +30 -30
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModuleCollector.mjs +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +46 -46
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +58 -58
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementBuilders.mjs +6 -6
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +141 -141
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +64 -64
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +14 -14
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +20 -20
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +39 -39
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +16 -16
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +2 -2
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +62 -62
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +6 -6
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +8 -8
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +175 -175
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +136 -136
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +212 -212
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +9 -9
- package/kotlin/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +69 -69
- package/kotlin/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
- package/kotlin/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +75 -75
- package/kotlin/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +33 -33
- package/kotlin/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
- package/kotlin/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +44 -44
- package/kotlin/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +48 -48
- package/kotlin/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +43 -43
- package/kotlin/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +2 -2
- package/kotlin/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +24 -24
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +49 -49
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +22 -22
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +20 -20
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +32 -32
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs.map +1 -1
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +16 -16
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +9 -9
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +6 -6
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs.map +1 -1
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +36 -36
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/DefaultRequest.mjs +56 -56
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +32 -32
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +64 -64
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +75 -75
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +48 -48
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +33 -33
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +28 -28
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestRetry.mjs +108 -108
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +52 -52
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +72 -72
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +23 -23
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +13 -13
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +11 -11
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +26 -26
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +13 -13
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +34 -34
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/observer/ResponseObserver.mjs +55 -55
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/sse/ClientSSESession.mjs +4 -4
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/websocket/ClientSessions.mjs +34 -34
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +57 -57
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSocketContent.mjs +8 -8
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +77 -77
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/websocket/builders.mjs +7 -7
- package/kotlin/ktor-ktor-client-core/io/ktor/client/request/ClientUpgradeContent.mjs +1 -1
- package/kotlin/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +14 -14
- package/kotlin/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +58 -58
- package/kotlin/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
- package/kotlin/ktor-ktor-client-core/io/ktor/client/request/buildersWithUrl.mjs +1 -1
- package/kotlin/ktor-ktor-client-core/io/ktor/client/request/forms/FormDataContent.mjs +10 -10
- package/kotlin/ktor-ktor-client-core/io/ktor/client/request/forms/formBuilders.mjs +11 -11
- package/kotlin/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +2 -2
- package/kotlin/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +17 -17
- package/kotlin/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +6 -6
- package/kotlin/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +25 -25
- package/kotlin/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +19 -19
- package/kotlin/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +16 -16
- package/kotlin/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
- package/kotlin/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
- package/kotlin/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +5 -5
- package/kotlin/ktor-ktor-client-core/io/ktor/client/utils/headers.mjs +1 -1
- package/kotlin/ktor-ktor-client-logging/io/ktor/client/plugins/logging/HttpClientCallLogger.mjs +25 -25
- package/kotlin/ktor-ktor-client-logging/io/ktor/client/plugins/logging/LogLevel.mjs +3 -3
- package/kotlin/ktor-ktor-client-logging/io/ktor/client/plugins/logging/LoggedContent.mjs +14 -14
- package/kotlin/ktor-ktor-client-logging/io/ktor/client/plugins/logging/Logger.mjs +1 -1
- package/kotlin/ktor-ktor-client-logging/io/ktor/client/plugins/logging/Logging.mjs +275 -275
- package/kotlin/ktor-ktor-client-logging/io/ktor/client/plugins/logging/LoggingUtils.mjs +14 -14
- package/kotlin/ktor-ktor-client-logging/io/ktor/client/plugins/logging/ObservingUtils.mjs +13 -13
- package/kotlin/ktor-ktor-events/io/ktor/events/Events.mjs +6 -6
- package/kotlin/ktor-ktor-http/io/ktor/http/Codecs.mjs +12 -12
- package/kotlin/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +90 -90
- package/kotlin/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +18 -18
- package/kotlin/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
- package/kotlin/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +32 -32
- package/kotlin/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +115 -115
- package/kotlin/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +5 -5
- package/kotlin/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
- package/kotlin/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +14 -14
- package/kotlin/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +66 -66
- package/kotlin/ktor-ktor-http/io/ktor/http/HttpUrlEncoded.mjs +1 -1
- package/kotlin/ktor-ktor-http/io/ktor/http/Parameters.mjs +11 -11
- package/kotlin/ktor-ktor-http/io/ktor/http/Query.mjs +4 -4
- package/kotlin/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +57 -57
- package/kotlin/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
- package/kotlin/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
- package/kotlin/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +20 -20
- package/kotlin/ktor-ktor-http/io/ktor/http/URLUtils.mjs +23 -23
- package/kotlin/ktor-ktor-http/io/ktor/http/Url.mjs +76 -76
- package/kotlin/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +29 -29
- package/kotlin/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +8 -8
- package/kotlin/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +9 -9
- package/kotlin/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +11 -11
- package/kotlin/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +5 -5
- package/kotlin/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +85 -85
- package/kotlin/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +33 -33
- package/kotlin/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +49 -49
- package/kotlin/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +10 -10
- package/kotlin/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +66 -66
- package/kotlin/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
- package/kotlin/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +4 -4
- package/kotlin/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
- package/kotlin/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +123 -123
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs.map +1 -1
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +53 -53
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +71 -71
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +2 -2
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +34 -34
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +22 -22
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/IODispatcher.jsAndWasmShared.mjs +1 -1
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +36 -36
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +4 -4
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +3 -3
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +4 -4
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +28 -28
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +3 -3
- package/kotlin/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +5 -5
- package/kotlin/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +36 -36
- package/kotlin/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
- package/kotlin/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +79 -79
- package/kotlin/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +6 -6
- package/kotlin/ktor-ktor-utils/io/ktor/util/Attributes.mjs +12 -12
- package/kotlin/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +16 -16
- package/kotlin/ktor-ktor-utils/io/ktor/util/ByteChannels.mjs +52 -52
- package/kotlin/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +31 -31
- package/kotlin/ktor-ktor-utils/io/ktor/util/ContentEncodersJs.mjs +5 -5
- package/kotlin/ktor-ktor-utils/io/ktor/util/CoroutinesUtils.mjs +1 -1
- package/kotlin/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +34 -34
- package/kotlin/ktor-ktor-utils/io/ktor/util/Encoders.mjs +3 -3
- package/kotlin/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
- package/kotlin/ktor-ktor-utils/io/ktor/util/StringValues.mjs +87 -87
- package/kotlin/ktor-ktor-utils/io/ktor/util/Text.mjs +7 -7
- package/kotlin/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
- package/kotlin/ktor-ktor-utils/io/ktor/util/date/Date.mjs +102 -102
- package/kotlin/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
- package/kotlin/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +8 -8
- package/kotlin/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +10 -10
- package/kotlin/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +1 -1
- package/kotlin/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +29 -29
- package/kotlin/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +25 -25
- package/kotlin/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +53 -53
- package/kotlin/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
- package/kotlin/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
- package/kotlin/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
- package/kotlin/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +50 -50
- package/kotlin/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +19 -19
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/DefaultWebSocketSession.mjs +118 -118
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/FrameCommon.mjs +8 -8
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +41 -41
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs +6 -6
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +8 -8
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/PingPong.mjs +43 -43
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/WebSocketExtension.mjs +4 -4
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/WebSocketExtensionHeader.mjs +4 -4
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/WebSocketSession.mjs +6 -6
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/AnsiCodes.mjs +24 -24
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/AnsiRender.mjs +39 -39
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/Constants.mjs +3 -3
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/HyperlinkIds.mjs +1 -1
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/MppInternal.jsCommon.mjs +17 -17
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/Parsing.mjs +53 -53
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/cellwidth.mjs +7 -7
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/gen/cellwidthtable.mjs +3 -3
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/gen/emojiseqtable.mjs +14 -14
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/platform/MultiplatformSystem.mjs +3 -3
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/BorderType.mjs +39 -39
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/Lines.mjs +63 -63
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/Size.mjs +3 -3
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/Span.mjs +22 -22
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/TextStyle.mjs +79 -79
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/Theme.mjs +44 -44
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/Whitespace.mjs +4 -4
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/Widget.mjs +2 -2
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/WidthRange.mjs +17 -17
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/table/Borders.mjs +4 -4
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/table/Table.mjs +234 -234
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/table/TableDsl.mjs +23 -23
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/table/TableDslInstances.mjs +153 -153
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/table/TableLayout.mjs +57 -57
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/table/VerticalLayout.mjs +32 -32
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/Prompt.mjs +60 -60
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/StandardTerminalInterface.mjs +14 -14
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/Terminal.mjs +53 -53
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/TerminalCursor.mjs +1 -1
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/TerminalDetection.mjs +5 -5
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/TerminalExtensions.mjs +1 -1
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/TerminalInfo.mjs +18 -18
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/TerminalInterface.mjs +10 -10
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/terminalinterface/TerminalInterface.js.mjs +19 -19
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/terminalinterface/TerminalInterface.jsCommon.mjs +13 -13
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/widgets/DefinitionList.mjs +56 -56
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/widgets/EmptyWidget.mjs +3 -3
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/widgets/Padding.mjs +61 -61
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/widgets/Text.mjs +67 -67
- package/kotlin/okio-parent-okio/okio/Buffer.mjs +409 -409
- package/kotlin/okio-parent-okio/okio/ByteString.mjs +51 -51
- package/kotlin/okio-parent-okio/okio/NonJvmPlatform.mjs +15 -15
- package/kotlin/okio-parent-okio/okio/Okio.mjs +2 -2
- package/kotlin/okio-parent-okio/okio/Options.mjs +23 -23
- package/kotlin/okio-parent-okio/okio/RealBufferedSink.mjs +37 -37
- package/kotlin/okio-parent-okio/okio/RealBufferedSource.mjs +70 -70
- package/kotlin/okio-parent-okio/okio/Segment.mjs +66 -66
- package/kotlin/okio-parent-okio/okio/SegmentPool.mjs +4 -4
- package/kotlin/okio-parent-okio/okio/SegmentedByteString.mjs +51 -51
- package/kotlin/okio-parent-okio/okio/Util.mjs +1 -1
- package/kotlin/okio-parent-okio/okio/internal/-Utf8.mjs +1 -1
- package/kotlin/okio-parent-okio/okio/internal/Buffer.mjs +24 -24
- package/kotlin/okio-parent-okio/okio/internal/ByteString.mjs +1 -1
- package/kotlin/okio-parent-okio/okio/internal/SegmentedByteString.mjs +1 -1
- package/kotlin/testmints-action-async/com/zegreatrob/testmints/action/ActionCannon.mjs +9 -9
- package/kotlin/testmints-action-async/com/zegreatrob/testmints/action/ActionPipe.mjs +2 -2
- package/kotlin/testmints-action-async/com/zegreatrob/testmints/action/async/SimpleSuspendAction.mjs +7 -7
- package/kotlin/tools-digger-json/com/zegreatrob/tools/digger/json/ContributionDataJson.mjs +148 -148
- package/kotlin/tools-digger-model/com/zegreatrob/tools/digger/model/Contribution.mjs +37 -37
- package/kotlin/types-types/kotools/types/text/NotBlankString.mjs +33 -33
- package/kotlin/types-types-internal/kotools/types/internal/ErrorMessage.mjs +12 -12
- package/kotlin/types-types-internal/kotools/types/internal/Errors.mjs +1 -1
- package/kotlin/types-types-internal/kotools/types/internal/Serializers.mjs +12 -12
- package/kotlin/uuid/com/benasher44/uuid/platform.mjs +1 -1
- package/kotlin/uuid/com/benasher44/uuid/uuid.mjs +11 -11
- package/package.json +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/List.mjs.map +0 -1
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/core/CoreCliktCommand.mjs.map +0 -1
- package/kotlin/clikt-clikt-mordant/com/github/ajalt/clikt/core/CliktCommand.mjs.map +0 -1
|
@@ -74,8 +74,8 @@ import {
|
|
|
74
74
|
ClosedSendChannelException29m33prpq9jaw as ClosedSendChannelException,
|
|
75
75
|
close$default29t9kascifp5w as close$default,
|
|
76
76
|
cancel$default3ekkkwpkem73o as cancel$default,
|
|
77
|
-
SendChannel38sllbxw662ws as SendChannel,
|
|
78
77
|
ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
|
|
78
|
+
SendChannel38sllbxw662ws as SendChannel,
|
|
79
79
|
} from './Channel.mjs';
|
|
80
80
|
import {
|
|
81
81
|
SelectInstance2isepgzfsd8ur as SelectInstance,
|
|
@@ -203,7 +203,7 @@ function get_NO_CLOSE_CAUSE() {
|
|
|
203
203
|
var NO_CLOSE_CAUSE;
|
|
204
204
|
function setElementLazy($this, index, value) {
|
|
205
205
|
// Inline function 'kotlinx.atomicfu.AtomicRef.lazySet' call
|
|
206
|
-
$this.
|
|
206
|
+
$this.i19_1.atomicfu$get(imul(index, 2)).kotlinx$atomicfu$value = value;
|
|
207
207
|
}
|
|
208
208
|
var ChannelSegmentClass;
|
|
209
209
|
function ChannelSegment() {
|
|
@@ -211,49 +211,49 @@ function ChannelSegment() {
|
|
|
211
211
|
class $ extends Segment() {
|
|
212
212
|
constructor(id, prev, channel, pointers) {
|
|
213
213
|
super(id, prev, pointers);
|
|
214
|
-
this.
|
|
215
|
-
this.
|
|
216
|
-
}
|
|
217
|
-
i19() {
|
|
218
|
-
return ensureNotNull(this.g19_1);
|
|
214
|
+
this.h19_1 = channel;
|
|
215
|
+
this.i19_1 = atomicfu$AtomicRefArray$ofNulls(imul(get_SEGMENT_SIZE(), 2));
|
|
219
216
|
}
|
|
220
217
|
j19() {
|
|
218
|
+
return ensureNotNull(this.h19_1);
|
|
219
|
+
}
|
|
220
|
+
k19() {
|
|
221
221
|
return get_SEGMENT_SIZE();
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
l19(index, element) {
|
|
224
224
|
setElementLazy(this, index, element);
|
|
225
225
|
}
|
|
226
|
-
|
|
227
|
-
var tmp = this.
|
|
226
|
+
m19(index) {
|
|
227
|
+
var tmp = this.i19_1.atomicfu$get(imul(index, 2)).kotlinx$atomicfu$value;
|
|
228
228
|
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
229
229
|
}
|
|
230
|
-
|
|
230
|
+
n19(index) {
|
|
231
231
|
// Inline function 'kotlin.also' call
|
|
232
|
-
var this_0 = this.
|
|
233
|
-
this.
|
|
232
|
+
var this_0 = this.m19(index);
|
|
233
|
+
this.o19(index);
|
|
234
234
|
return this_0;
|
|
235
235
|
}
|
|
236
|
-
|
|
236
|
+
o19(index) {
|
|
237
237
|
setElementLazy(this, index, null);
|
|
238
238
|
}
|
|
239
|
-
|
|
240
|
-
return this.
|
|
239
|
+
p19(index) {
|
|
240
|
+
return this.i19_1.atomicfu$get(imul(index, 2) + 1 | 0).kotlinx$atomicfu$value;
|
|
241
241
|
}
|
|
242
|
-
|
|
243
|
-
this.
|
|
242
|
+
q19(index, value) {
|
|
243
|
+
this.i19_1.atomicfu$get(imul(index, 2) + 1 | 0).kotlinx$atomicfu$value = value;
|
|
244
244
|
}
|
|
245
|
-
|
|
246
|
-
return this.
|
|
245
|
+
r19(index, from, to) {
|
|
246
|
+
return this.i19_1.atomicfu$get(imul(index, 2) + 1 | 0).atomicfu$compareAndSet(from, to);
|
|
247
247
|
}
|
|
248
|
-
|
|
249
|
-
return this.
|
|
248
|
+
s19(index, update) {
|
|
249
|
+
return this.i19_1.atomicfu$get(imul(index, 2) + 1 | 0).atomicfu$getAndSet(update);
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
w11(index, cause, context) {
|
|
252
252
|
var isSender = index >= get_SEGMENT_SIZE();
|
|
253
253
|
var index_0 = isSender ? index - get_SEGMENT_SIZE() | 0 : index;
|
|
254
|
-
var element = this.
|
|
254
|
+
var element = this.m19(index_0);
|
|
255
255
|
$l$loop: while (true) {
|
|
256
|
-
var cur = this.
|
|
256
|
+
var cur = this.p19(index_0);
|
|
257
257
|
var tmp;
|
|
258
258
|
if (!(cur == null) ? isInterface(cur, Waiter()) : false) {
|
|
259
259
|
tmp = true;
|
|
@@ -262,11 +262,11 @@ function ChannelSegment() {
|
|
|
262
262
|
}
|
|
263
263
|
if (tmp) {
|
|
264
264
|
var update = isSender ? get_INTERRUPTED_SEND() : get_INTERRUPTED_RCV();
|
|
265
|
-
if (this.
|
|
266
|
-
this.
|
|
267
|
-
this.
|
|
265
|
+
if (this.r19(index_0, cur, update)) {
|
|
266
|
+
this.o19(index_0);
|
|
267
|
+
this.f1a(index_0, !isSender);
|
|
268
268
|
if (isSender) {
|
|
269
|
-
var tmp0_safe_receiver = this.
|
|
269
|
+
var tmp0_safe_receiver = this.j19().u19_1;
|
|
270
270
|
if (tmp0_safe_receiver == null)
|
|
271
271
|
null;
|
|
272
272
|
else {
|
|
@@ -277,9 +277,9 @@ function ChannelSegment() {
|
|
|
277
277
|
}
|
|
278
278
|
} else {
|
|
279
279
|
if (cur === get_INTERRUPTED_SEND() || cur === get_INTERRUPTED_RCV()) {
|
|
280
|
-
this.
|
|
280
|
+
this.o19(index_0);
|
|
281
281
|
if (isSender) {
|
|
282
|
-
var tmp1_safe_receiver = this.
|
|
282
|
+
var tmp1_safe_receiver = this.j19().u19_1;
|
|
283
283
|
if (tmp1_safe_receiver == null)
|
|
284
284
|
null;
|
|
285
285
|
else {
|
|
@@ -307,18 +307,18 @@ function ChannelSegment() {
|
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
|
|
310
|
+
f1a(index, receiver) {
|
|
311
311
|
if (receiver) {
|
|
312
|
-
var tmp = this.
|
|
313
|
-
var tmp0 = this.
|
|
312
|
+
var tmp = this.j19();
|
|
313
|
+
var tmp0 = this.u11_1;
|
|
314
314
|
// Inline function 'kotlin.Long.times' call
|
|
315
315
|
var other = get_SEGMENT_SIZE();
|
|
316
316
|
// Inline function 'kotlin.Long.plus' call
|
|
317
317
|
var this_0 = multiply(tmp0, fromInt(other));
|
|
318
318
|
var tmp$ret$1 = add(this_0, fromInt(index));
|
|
319
|
-
tmp.
|
|
319
|
+
tmp.g1a(tmp$ret$1);
|
|
320
320
|
}
|
|
321
|
-
this.
|
|
321
|
+
this.h1a();
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
initMetadataForClass($, 'ChannelSegment');
|
|
@@ -328,20 +328,20 @@ function ChannelSegment() {
|
|
|
328
328
|
}
|
|
329
329
|
function *_generator_hasNext__q471nr($this, $completion) {
|
|
330
330
|
var tmp;
|
|
331
|
-
if (!($this.
|
|
331
|
+
if (!($this.t1a_1 === get_NO_RECEIVE_RESULT()) && !($this.t1a_1 === get_CHANNEL_CLOSED())) {
|
|
332
332
|
tmp = true;
|
|
333
333
|
} else {
|
|
334
|
-
var tmp0 = $this.
|
|
334
|
+
var tmp0 = $this.v1a_1;
|
|
335
335
|
var tmp$ret$1;
|
|
336
336
|
$l$block_0: {
|
|
337
337
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImpl' call
|
|
338
|
-
var segment = tmp0.
|
|
338
|
+
var segment = tmp0.a1a_1.kotlinx$atomicfu$value;
|
|
339
339
|
$l$loop_0: while (true) {
|
|
340
|
-
if (tmp0.
|
|
340
|
+
if (tmp0.w1a()) {
|
|
341
341
|
tmp$ret$1 = onClosedHasNext($this);
|
|
342
342
|
break $l$block_0;
|
|
343
343
|
}
|
|
344
|
-
var r = tmp0.
|
|
344
|
+
var r = tmp0.w19_1.atomicfu$getAndIncrement$long();
|
|
345
345
|
// Inline function 'kotlin.Long.div' call
|
|
346
346
|
var other = get_SEGMENT_SIZE();
|
|
347
347
|
var id = divide(r, fromInt(other));
|
|
@@ -349,7 +349,7 @@ function *_generator_hasNext__q471nr($this, $completion) {
|
|
|
349
349
|
var other_0 = get_SEGMENT_SIZE();
|
|
350
350
|
var tmp$ret$3 = modulo(r, fromInt(other_0));
|
|
351
351
|
var i = convertToInt(tmp$ret$3);
|
|
352
|
-
if (!equalsLong(segment.
|
|
352
|
+
if (!equalsLong(segment.u11_1, id)) {
|
|
353
353
|
var tmp0_elvis_lhs = findSegmentReceive(tmp0, id, segment);
|
|
354
354
|
var tmp_0;
|
|
355
355
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -371,8 +371,8 @@ function *_generator_hasNext__q471nr($this, $completion) {
|
|
|
371
371
|
var message = 'unreachable';
|
|
372
372
|
throw IllegalStateException().o(toString_0(message));
|
|
373
373
|
} else if (updCellResult === get_FAILED()) {
|
|
374
|
-
if (compare(r, tmp0.
|
|
375
|
-
segment.
|
|
374
|
+
if (compare(r, tmp0.x1a()) < 0) {
|
|
375
|
+
segment.r1a();
|
|
376
376
|
}
|
|
377
377
|
continue $l$loop_0;
|
|
378
378
|
} else if (updCellResult === get_SUSPEND_NO_WAITER()) {
|
|
@@ -382,8 +382,8 @@ function *_generator_hasNext__q471nr($this, $completion) {
|
|
|
382
382
|
tmp_2 = yield tmp_2;
|
|
383
383
|
return tmp_2;
|
|
384
384
|
} else {
|
|
385
|
-
segment.
|
|
386
|
-
$this.
|
|
385
|
+
segment.r1a();
|
|
386
|
+
$this.t1a_1 = (updCellResult == null ? true : !(updCellResult == null)) ? updCellResult : THROW_CCE();
|
|
387
387
|
tmp_1 = true;
|
|
388
388
|
}
|
|
389
389
|
tmp$ret$1 = tmp_1;
|
|
@@ -395,8 +395,8 @@ function *_generator_hasNext__q471nr($this, $completion) {
|
|
|
395
395
|
return tmp;
|
|
396
396
|
}
|
|
397
397
|
function onClosedHasNext($this) {
|
|
398
|
-
$this.
|
|
399
|
-
var tmp0_elvis_lhs = $this.
|
|
398
|
+
$this.t1a_1 = get_CHANNEL_CLOSED();
|
|
399
|
+
var tmp0_elvis_lhs = $this.v1a_1.y1a();
|
|
400
400
|
var tmp;
|
|
401
401
|
if (tmp0_elvis_lhs == null) {
|
|
402
402
|
return false;
|
|
@@ -409,25 +409,25 @@ function onClosedHasNext($this) {
|
|
|
409
409
|
function hasNextOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
410
410
|
var cancellable = getOrCreateCancellableContinuation(intercepted($completion));
|
|
411
411
|
try {
|
|
412
|
-
$this.
|
|
412
|
+
$this.u1a_1 = cancellable;
|
|
413
413
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImplOnNoWaiter' call
|
|
414
|
-
var this_0 = $this.
|
|
414
|
+
var this_0 = $this.v1a_1;
|
|
415
415
|
var updCellResult = updateCellReceive(this_0, segment, index, r, $this);
|
|
416
416
|
if (updCellResult === get_SUSPEND()) {
|
|
417
417
|
prepareReceiverForSuspension(this_0, $this, segment, index);
|
|
418
418
|
} else if (updCellResult === get_FAILED()) {
|
|
419
|
-
if (compare(r, this_0.
|
|
420
|
-
segment.
|
|
419
|
+
if (compare(r, this_0.x1a()) < 0) {
|
|
420
|
+
segment.r1a();
|
|
421
421
|
}
|
|
422
422
|
$l$block_0: {
|
|
423
423
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImpl' call
|
|
424
|
-
var segment_0 = this_0.
|
|
424
|
+
var segment_0 = this_0.a1a_1.kotlinx$atomicfu$value;
|
|
425
425
|
$l$loop_0: while (true) {
|
|
426
|
-
if (this_0.
|
|
426
|
+
if (this_0.w1a()) {
|
|
427
427
|
onClosedHasNextNoWaiterSuspend($this);
|
|
428
428
|
break $l$block_0;
|
|
429
429
|
}
|
|
430
|
-
var r_0 = this_0.
|
|
430
|
+
var r_0 = this_0.w19_1.atomicfu$getAndIncrement$long();
|
|
431
431
|
// Inline function 'kotlin.Long.div' call
|
|
432
432
|
var other = get_SEGMENT_SIZE();
|
|
433
433
|
var id = divide(r_0, fromInt(other));
|
|
@@ -435,7 +435,7 @@ function hasNextOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
435
435
|
var other_0 = get_SEGMENT_SIZE();
|
|
436
436
|
var tmp$ret$3 = modulo(r_0, fromInt(other_0));
|
|
437
437
|
var i = convertToInt(tmp$ret$3);
|
|
438
|
-
if (!equalsLong(segment_0.
|
|
438
|
+
if (!equalsLong(segment_0.u11_1, id)) {
|
|
439
439
|
var tmp0_elvis_lhs = findSegmentReceive(this_0, id, segment_0);
|
|
440
440
|
var tmp;
|
|
441
441
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -454,8 +454,8 @@ function hasNextOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
454
454
|
prepareReceiverForSuspension(this_0, tmp1_safe_receiver, segment_0, i);
|
|
455
455
|
}
|
|
456
456
|
} else if (updCellResult_0 === get_FAILED()) {
|
|
457
|
-
if (compare(r_0, this_0.
|
|
458
|
-
segment_0.
|
|
457
|
+
if (compare(r_0, this_0.x1a()) < 0) {
|
|
458
|
+
segment_0.r1a();
|
|
459
459
|
}
|
|
460
460
|
continue $l$loop_0;
|
|
461
461
|
} else if (updCellResult_0 === get_SUSPEND_NO_WAITER()) {
|
|
@@ -463,40 +463,40 @@ function hasNextOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
463
463
|
var message = 'unexpected';
|
|
464
464
|
throw IllegalStateException().o(toString_0(message));
|
|
465
465
|
} else {
|
|
466
|
-
segment_0.
|
|
466
|
+
segment_0.r1a();
|
|
467
467
|
var element = (updCellResult_0 == null ? true : !(updCellResult_0 == null)) ? updCellResult_0 : THROW_CCE();
|
|
468
|
-
$this.
|
|
469
|
-
$this.
|
|
470
|
-
var tmp0_safe_receiver = $this.
|
|
471
|
-
cancellable.
|
|
468
|
+
$this.t1a_1 = element;
|
|
469
|
+
$this.u1a_1 = null;
|
|
470
|
+
var tmp0_safe_receiver = $this.v1a_1.u19_1;
|
|
471
|
+
cancellable.x12(true, tmp0_safe_receiver == null ? null : bindCancellationFun($this.v1a_1, tmp0_safe_receiver, element));
|
|
472
472
|
}
|
|
473
473
|
break $l$block_0;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
} else {
|
|
477
|
-
segment.
|
|
477
|
+
segment.r1a();
|
|
478
478
|
var element_0 = (updCellResult == null ? true : !(updCellResult == null)) ? updCellResult : THROW_CCE();
|
|
479
|
-
$this.
|
|
480
|
-
$this.
|
|
481
|
-
var tmp0_safe_receiver_0 = $this.
|
|
482
|
-
cancellable.
|
|
479
|
+
$this.t1a_1 = element_0;
|
|
480
|
+
$this.u1a_1 = null;
|
|
481
|
+
var tmp0_safe_receiver_0 = $this.v1a_1.u19_1;
|
|
482
|
+
cancellable.x12(true, tmp0_safe_receiver_0 == null ? null : bindCancellationFun($this.v1a_1, tmp0_safe_receiver_0, element_0));
|
|
483
483
|
}
|
|
484
484
|
} catch ($p) {
|
|
485
485
|
if ($p instanceof Error) {
|
|
486
486
|
var e = $p;
|
|
487
|
-
cancellable.
|
|
487
|
+
cancellable.t12();
|
|
488
488
|
throw e;
|
|
489
489
|
} else {
|
|
490
490
|
throw $p;
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
|
-
return cancellable.
|
|
493
|
+
return cancellable.b10();
|
|
494
494
|
}
|
|
495
495
|
function onClosedHasNextNoWaiterSuspend($this) {
|
|
496
|
-
var cont = ensureNotNull($this.
|
|
497
|
-
$this.
|
|
498
|
-
$this.
|
|
499
|
-
var cause = $this.
|
|
496
|
+
var cont = ensureNotNull($this.u1a_1);
|
|
497
|
+
$this.u1a_1 = null;
|
|
498
|
+
$this.t1a_1 = get_CHANNEL_CLOSED();
|
|
499
|
+
var cause = $this.v1a_1.y1a();
|
|
500
500
|
if (cause == null) {
|
|
501
501
|
// Inline function 'kotlin.coroutines.resume' call
|
|
502
502
|
// Inline function 'kotlin.Companion.success' call
|
|
@@ -511,7 +511,7 @@ function onClosedHasNextNoWaiterSuspend($this) {
|
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
function _get_bufferEndCounter__2d4hee($this) {
|
|
514
|
-
return $this.
|
|
514
|
+
return $this.x19_1.kotlinx$atomicfu$value;
|
|
515
515
|
}
|
|
516
516
|
function _get_isRendezvousOrUnlimited__3mdufi($this) {
|
|
517
517
|
// Inline function 'kotlin.let' call
|
|
@@ -521,9 +521,9 @@ function _get_isRendezvousOrUnlimited__3mdufi($this) {
|
|
|
521
521
|
function *_generator_send__qhx0g0($this, element, $completion) {
|
|
522
522
|
$l$block_5: {
|
|
523
523
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
524
|
-
var segment = $this.
|
|
524
|
+
var segment = $this.z19_1.kotlinx$atomicfu$value;
|
|
525
525
|
$l$loop_0: while (true) {
|
|
526
|
-
var sendersAndCloseStatusCur = $this.
|
|
526
|
+
var sendersAndCloseStatusCur = $this.v19_1.atomicfu$getAndIncrement$long();
|
|
527
527
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
528
528
|
var s = bitwiseAnd(sendersAndCloseStatusCur, new (Long())(-1, 268435455));
|
|
529
529
|
var closed = _get_isClosedForSend0__kxgf9m($this, sendersAndCloseStatusCur);
|
|
@@ -534,7 +534,7 @@ function *_generator_send__qhx0g0($this, element, $completion) {
|
|
|
534
534
|
var other_0 = get_SEGMENT_SIZE();
|
|
535
535
|
var tmp$ret$2 = modulo(s, fromInt(other_0));
|
|
536
536
|
var i = convertToInt(tmp$ret$2);
|
|
537
|
-
if (!equalsLong(segment.
|
|
537
|
+
if (!equalsLong(segment.u11_1, id)) {
|
|
538
538
|
var tmp0_elvis_lhs = findSegmentSend($this, id, segment);
|
|
539
539
|
var tmp;
|
|
540
540
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -554,13 +554,13 @@ function *_generator_send__qhx0g0($this, element, $completion) {
|
|
|
554
554
|
}
|
|
555
555
|
switch (updateCellSend($this, segment, i, element, s, null, closed)) {
|
|
556
556
|
case 0:
|
|
557
|
-
segment.
|
|
557
|
+
segment.r1a();
|
|
558
558
|
break $l$block_5;
|
|
559
559
|
case 1:
|
|
560
560
|
break $l$block_5;
|
|
561
561
|
case 2:
|
|
562
562
|
if (closed) {
|
|
563
|
-
segment.
|
|
563
|
+
segment.h1a();
|
|
564
564
|
var tmp_2 = onClosedSend($this, element, $completion);
|
|
565
565
|
if (tmp_2 === get_COROUTINE_SUSPENDED())
|
|
566
566
|
tmp_2 = yield tmp_2;
|
|
@@ -578,8 +578,8 @@ function *_generator_send__qhx0g0($this, element, $completion) {
|
|
|
578
578
|
|
|
579
579
|
break $l$block_5;
|
|
580
580
|
case 4:
|
|
581
|
-
if (compare(s, $this.
|
|
582
|
-
segment.
|
|
581
|
+
if (compare(s, $this.z1a()) < 0) {
|
|
582
|
+
segment.r1a();
|
|
583
583
|
}
|
|
584
584
|
|
|
585
585
|
var tmp_3 = onClosedSend($this, element, $completion);
|
|
@@ -587,7 +587,7 @@ function *_generator_send__qhx0g0($this, element, $completion) {
|
|
|
587
587
|
tmp_3 = yield tmp_3;
|
|
588
588
|
break $l$block_5;
|
|
589
589
|
case 5:
|
|
590
|
-
segment.
|
|
590
|
+
segment.r1a();
|
|
591
591
|
continue $l$loop_0;
|
|
592
592
|
case 3:
|
|
593
593
|
var segm = segment;
|
|
@@ -602,15 +602,15 @@ function *_generator_send__qhx0g0($this, element, $completion) {
|
|
|
602
602
|
}
|
|
603
603
|
function onClosedSend($this, element, $completion) {
|
|
604
604
|
var cancellable = new (CancellableContinuationImpl())(intercepted($completion), 1);
|
|
605
|
-
cancellable.
|
|
605
|
+
cancellable.a10();
|
|
606
606
|
$l$block: {
|
|
607
|
-
var tmp0_safe_receiver = $this.
|
|
607
|
+
var tmp0_safe_receiver = $this.u19_1;
|
|
608
608
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : callUndeliveredElementCatchingException(tmp0_safe_receiver, element);
|
|
609
609
|
if (tmp1_safe_receiver == null)
|
|
610
610
|
null;
|
|
611
611
|
else {
|
|
612
612
|
// Inline function 'kotlin.let' call
|
|
613
|
-
addSuppressed(tmp1_safe_receiver, $this.
|
|
613
|
+
addSuppressed(tmp1_safe_receiver, $this.a1b());
|
|
614
614
|
// Inline function 'kotlinx.coroutines.resumeWithStackTrace' call
|
|
615
615
|
// Inline function 'kotlin.Companion.failure' call
|
|
616
616
|
var exception = recoverStackTrace_0(tmp1_safe_receiver, cancellable);
|
|
@@ -619,13 +619,13 @@ function onClosedSend($this, element, $completion) {
|
|
|
619
619
|
break $l$block;
|
|
620
620
|
}
|
|
621
621
|
// Inline function 'kotlinx.coroutines.resumeWithStackTrace' call
|
|
622
|
-
var exception_0 = $this.
|
|
622
|
+
var exception_0 = $this.a1b();
|
|
623
623
|
// Inline function 'kotlin.Companion.failure' call
|
|
624
624
|
var exception_1 = recoverStackTrace_0(exception_0, cancellable);
|
|
625
625
|
var tmp$ret$4 = _Result___init__impl__xyqfz8(createFailure(exception_1));
|
|
626
626
|
cancellable.dd(tmp$ret$4);
|
|
627
627
|
}
|
|
628
|
-
return cancellable.
|
|
628
|
+
return cancellable.b10();
|
|
629
629
|
}
|
|
630
630
|
function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
631
631
|
var cancellable = getOrCreateCancellableContinuation(intercepted($completion));
|
|
@@ -633,7 +633,7 @@ function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
|
633
633
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImplOnNoWaiter' call
|
|
634
634
|
switch (updateCellSend($this, segment, index, element, s, cancellable, false)) {
|
|
635
635
|
case 0:
|
|
636
|
-
segment.
|
|
636
|
+
segment.r1a();
|
|
637
637
|
// Inline function 'kotlin.coroutines.resume' call
|
|
638
638
|
|
|
639
639
|
// Inline function 'kotlin.Companion.success' call
|
|
@@ -653,19 +653,19 @@ function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
|
653
653
|
prepareSenderForSuspension($this, cancellable, segment, index);
|
|
654
654
|
break;
|
|
655
655
|
case 4:
|
|
656
|
-
if (compare(s, $this.
|
|
657
|
-
segment.
|
|
656
|
+
if (compare(s, $this.z1a()) < 0) {
|
|
657
|
+
segment.r1a();
|
|
658
658
|
}
|
|
659
659
|
|
|
660
660
|
onClosedSendOnNoWaiterSuspend($this, element, cancellable);
|
|
661
661
|
break;
|
|
662
662
|
case 5:
|
|
663
|
-
segment.
|
|
663
|
+
segment.r1a();
|
|
664
664
|
$l$block_5: {
|
|
665
665
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
666
|
-
var segment_0 = $this.
|
|
666
|
+
var segment_0 = $this.z19_1.kotlinx$atomicfu$value;
|
|
667
667
|
$l$loop_0: while (true) {
|
|
668
|
-
var sendersAndCloseStatusCur = $this.
|
|
668
|
+
var sendersAndCloseStatusCur = $this.v19_1.atomicfu$getAndIncrement$long();
|
|
669
669
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
670
670
|
var s_0 = bitwiseAnd(sendersAndCloseStatusCur, new (Long())(-1, 268435455));
|
|
671
671
|
var closed = _get_isClosedForSend0__kxgf9m($this, sendersAndCloseStatusCur);
|
|
@@ -676,7 +676,7 @@ function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
|
676
676
|
var other_0 = get_SEGMENT_SIZE();
|
|
677
677
|
var tmp$ret$9 = modulo(s_0, fromInt(other_0));
|
|
678
678
|
var i = convertToInt(tmp$ret$9);
|
|
679
|
-
if (!equalsLong(segment_0.
|
|
679
|
+
if (!equalsLong(segment_0.u11_1, id)) {
|
|
680
680
|
var tmp0_elvis_lhs = findSegmentSend($this, id, segment_0);
|
|
681
681
|
var tmp;
|
|
682
682
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -694,7 +694,7 @@ function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
|
694
694
|
}
|
|
695
695
|
switch (updateCellSend($this, segment_0, i, element, s_0, cancellable, closed)) {
|
|
696
696
|
case 0:
|
|
697
|
-
segment_0.
|
|
697
|
+
segment_0.r1a();
|
|
698
698
|
// Inline function 'kotlin.coroutines.resume' call
|
|
699
699
|
|
|
700
700
|
// Inline function 'kotlin.Companion.success' call
|
|
@@ -712,7 +712,7 @@ function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
|
712
712
|
break $l$block_5;
|
|
713
713
|
case 2:
|
|
714
714
|
if (closed) {
|
|
715
|
-
segment_0.
|
|
715
|
+
segment_0.h1a();
|
|
716
716
|
onClosedSendOnNoWaiterSuspend($this, element, cancellable);
|
|
717
717
|
break $l$block_5;
|
|
718
718
|
}
|
|
@@ -726,14 +726,14 @@ function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
|
726
726
|
|
|
727
727
|
break $l$block_5;
|
|
728
728
|
case 4:
|
|
729
|
-
if (compare(s_0, $this.
|
|
730
|
-
segment_0.
|
|
729
|
+
if (compare(s_0, $this.z1a()) < 0) {
|
|
730
|
+
segment_0.r1a();
|
|
731
731
|
}
|
|
732
732
|
|
|
733
733
|
onClosedSendOnNoWaiterSuspend($this, element, cancellable);
|
|
734
734
|
break $l$block_5;
|
|
735
735
|
case 5:
|
|
736
|
-
segment_0.
|
|
736
|
+
segment_0.r1a();
|
|
737
737
|
continue $l$loop_0;
|
|
738
738
|
case 3:
|
|
739
739
|
// Inline function 'kotlin.error' call
|
|
@@ -754,19 +754,19 @@ function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
|
754
754
|
} catch ($p) {
|
|
755
755
|
if ($p instanceof Error) {
|
|
756
756
|
var e = $p;
|
|
757
|
-
cancellable.
|
|
757
|
+
cancellable.t12();
|
|
758
758
|
throw e;
|
|
759
759
|
} else {
|
|
760
760
|
throw $p;
|
|
761
761
|
}
|
|
762
762
|
}
|
|
763
|
-
return cancellable.
|
|
763
|
+
return cancellable.b10();
|
|
764
764
|
}
|
|
765
765
|
function prepareSenderForSuspension($this, _this__u8e3s4, segment, index) {
|
|
766
|
-
_this__u8e3s4.
|
|
766
|
+
_this__u8e3s4.z12(segment, index + get_SEGMENT_SIZE() | 0);
|
|
767
767
|
}
|
|
768
768
|
function onClosedSendOnNoWaiterSuspend($this, element, cont) {
|
|
769
|
-
var tmp0_safe_receiver = $this.
|
|
769
|
+
var tmp0_safe_receiver = $this.u19_1;
|
|
770
770
|
if (tmp0_safe_receiver == null)
|
|
771
771
|
null;
|
|
772
772
|
else {
|
|
@@ -774,7 +774,7 @@ function onClosedSendOnNoWaiterSuspend($this, element, cont) {
|
|
|
774
774
|
}
|
|
775
775
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
776
776
|
// Inline function 'kotlin.Companion.failure' call
|
|
777
|
-
var exception = recoverStackTrace_0($this.
|
|
777
|
+
var exception = recoverStackTrace_0($this.a1b(), cont);
|
|
778
778
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
779
779
|
cont.dd(tmp$ret$0);
|
|
780
780
|
}
|
|
@@ -788,34 +788,34 @@ function SendBroadcast() {
|
|
|
788
788
|
return SendBroadcastClass;
|
|
789
789
|
}
|
|
790
790
|
function updateCellSend($this, segment, index, element, s, waiter, closed) {
|
|
791
|
-
segment.
|
|
791
|
+
segment.l19(index, element);
|
|
792
792
|
if (closed)
|
|
793
793
|
return updateCellSendSlow($this, segment, index, element, s, waiter, closed);
|
|
794
|
-
var state = segment.
|
|
794
|
+
var state = segment.p19(index);
|
|
795
795
|
if (state === null) {
|
|
796
796
|
if (bufferOrRendezvousSend($this, s)) {
|
|
797
|
-
if (segment.
|
|
797
|
+
if (segment.r19(index, null, get_BUFFERED())) {
|
|
798
798
|
return 1;
|
|
799
799
|
}
|
|
800
800
|
} else {
|
|
801
801
|
if (waiter == null) {
|
|
802
802
|
return 3;
|
|
803
803
|
} else {
|
|
804
|
-
if (segment.
|
|
804
|
+
if (segment.r19(index, null, waiter))
|
|
805
805
|
return 2;
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
808
|
} else {
|
|
809
809
|
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
810
|
-
segment.
|
|
810
|
+
segment.o19(index);
|
|
811
811
|
var tmp;
|
|
812
812
|
if (tryResumeReceiver($this, state, element)) {
|
|
813
|
-
segment.
|
|
814
|
-
$this.
|
|
813
|
+
segment.q19(index, get_DONE_RCV());
|
|
814
|
+
$this.b1b();
|
|
815
815
|
tmp = 0;
|
|
816
816
|
} else {
|
|
817
|
-
if (!(segment.
|
|
818
|
-
segment.
|
|
817
|
+
if (!(segment.s19(index, get_INTERRUPTED_RCV()) === get_INTERRUPTED_RCV())) {
|
|
818
|
+
segment.f1a(index, true);
|
|
819
819
|
}
|
|
820
820
|
tmp = 5;
|
|
821
821
|
}
|
|
@@ -826,55 +826,55 @@ function updateCellSend($this, segment, index, element, s, waiter, closed) {
|
|
|
826
826
|
}
|
|
827
827
|
function updateCellSendSlow($this, segment, index, element, s, waiter, closed) {
|
|
828
828
|
while (true) {
|
|
829
|
-
var state = segment.
|
|
829
|
+
var state = segment.p19(index);
|
|
830
830
|
if (state === null) {
|
|
831
831
|
if (bufferOrRendezvousSend($this, s) && !closed) {
|
|
832
|
-
if (segment.
|
|
832
|
+
if (segment.r19(index, null, get_BUFFERED())) {
|
|
833
833
|
return 1;
|
|
834
834
|
}
|
|
835
835
|
} else {
|
|
836
836
|
if (closed) {
|
|
837
|
-
if (segment.
|
|
838
|
-
segment.
|
|
837
|
+
if (segment.r19(index, null, get_INTERRUPTED_SEND())) {
|
|
838
|
+
segment.f1a(index, false);
|
|
839
839
|
return 4;
|
|
840
840
|
}
|
|
841
841
|
} else if (waiter == null)
|
|
842
842
|
return 3;
|
|
843
|
-
else if (segment.
|
|
843
|
+
else if (segment.r19(index, null, waiter))
|
|
844
844
|
return 2;
|
|
845
845
|
}
|
|
846
846
|
} else if (state === get_IN_BUFFER()) {
|
|
847
|
-
if (segment.
|
|
847
|
+
if (segment.r19(index, state, get_BUFFERED())) {
|
|
848
848
|
return 1;
|
|
849
849
|
}
|
|
850
850
|
} else if (state === get_INTERRUPTED_RCV()) {
|
|
851
|
-
segment.
|
|
851
|
+
segment.o19(index);
|
|
852
852
|
return 5;
|
|
853
853
|
} else if (state === get_POISONED()) {
|
|
854
|
-
segment.
|
|
854
|
+
segment.o19(index);
|
|
855
855
|
return 5;
|
|
856
856
|
} else if (state === get_CHANNEL_CLOSED()) {
|
|
857
|
-
segment.
|
|
857
|
+
segment.o19(index);
|
|
858
858
|
completeCloseOrCancel($this);
|
|
859
859
|
return 4;
|
|
860
860
|
} else {
|
|
861
861
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
862
|
-
segment.
|
|
862
|
+
segment.o19(index);
|
|
863
863
|
var tmp;
|
|
864
864
|
if (state instanceof WaiterEB()) {
|
|
865
|
-
tmp = state.
|
|
865
|
+
tmp = state.c1b_1;
|
|
866
866
|
} else {
|
|
867
867
|
tmp = state;
|
|
868
868
|
}
|
|
869
869
|
var receiver = tmp;
|
|
870
870
|
var tmp_0;
|
|
871
871
|
if (tryResumeReceiver($this, receiver, element)) {
|
|
872
|
-
segment.
|
|
873
|
-
$this.
|
|
872
|
+
segment.q19(index, get_DONE_RCV());
|
|
873
|
+
$this.b1b();
|
|
874
874
|
tmp_0 = 0;
|
|
875
875
|
} else {
|
|
876
|
-
if (!(segment.
|
|
877
|
-
segment.
|
|
876
|
+
if (!(segment.s19(index, get_INTERRUPTED_RCV()) === get_INTERRUPTED_RCV())) {
|
|
877
|
+
segment.f1a(index, true);
|
|
878
878
|
}
|
|
879
879
|
tmp_0 = 5;
|
|
880
880
|
}
|
|
@@ -894,9 +894,9 @@ function bufferOrRendezvousSend($this, curSenders) {
|
|
|
894
894
|
if (compare(curSenders, _get_bufferEndCounter__2d4hee($this)) < 0) {
|
|
895
895
|
tmp = true;
|
|
896
896
|
} else {
|
|
897
|
-
var tmp0 = $this.
|
|
897
|
+
var tmp0 = $this.z1a();
|
|
898
898
|
// Inline function 'kotlin.Long.plus' call
|
|
899
|
-
var other = $this.
|
|
899
|
+
var other = $this.t19_1;
|
|
900
900
|
var tmp$ret$0 = add(tmp0, fromInt(other));
|
|
901
901
|
tmp = compare(curSenders, tmp$ret$0) < 0;
|
|
902
902
|
}
|
|
@@ -905,24 +905,24 @@ function bufferOrRendezvousSend($this, curSenders) {
|
|
|
905
905
|
function tryResumeReceiver($this, _this__u8e3s4, element) {
|
|
906
906
|
var tmp;
|
|
907
907
|
if (isInterface(_this__u8e3s4, SelectInstance())) {
|
|
908
|
-
tmp = _this__u8e3s4.
|
|
908
|
+
tmp = _this__u8e3s4.h1b($this, element);
|
|
909
909
|
} else {
|
|
910
910
|
if (_this__u8e3s4 instanceof ReceiveCatching()) {
|
|
911
911
|
if (!(_this__u8e3s4 instanceof ReceiveCatching()))
|
|
912
912
|
THROW_CCE();
|
|
913
|
-
var tmp_0 = Companion_getInstance().
|
|
914
|
-
var tmp1_safe_receiver = $this.
|
|
915
|
-
tmp = tryResume0(_this__u8e3s4.
|
|
913
|
+
var tmp_0 = Companion_getInstance().f1b(element);
|
|
914
|
+
var tmp1_safe_receiver = $this.u19_1;
|
|
915
|
+
tmp = tryResume0(_this__u8e3s4.g1b_1, new (ChannelResult())(tmp_0), tmp1_safe_receiver == null ? null : bindCancellationFunResult($this, tmp1_safe_receiver));
|
|
916
916
|
} else {
|
|
917
917
|
if (_this__u8e3s4 instanceof BufferedChannelIterator()) {
|
|
918
918
|
if (!(_this__u8e3s4 instanceof BufferedChannelIterator()))
|
|
919
919
|
THROW_CCE();
|
|
920
|
-
tmp = _this__u8e3s4.
|
|
920
|
+
tmp = _this__u8e3s4.d1b(element);
|
|
921
921
|
} else {
|
|
922
922
|
if (isInterface(_this__u8e3s4, CancellableContinuation())) {
|
|
923
923
|
if (!isInterface(_this__u8e3s4, CancellableContinuation()))
|
|
924
924
|
THROW_CCE();
|
|
925
|
-
var tmp2_safe_receiver = $this.
|
|
925
|
+
var tmp2_safe_receiver = $this.u19_1;
|
|
926
926
|
tmp = tryResume0(_this__u8e3s4, element, tmp2_safe_receiver == null ? null : bindCancellationFun_0($this, tmp2_safe_receiver));
|
|
927
927
|
} else {
|
|
928
928
|
var message = 'Unexpected receiver type: ' + toString_0(_this__u8e3s4);
|
|
@@ -937,12 +937,12 @@ function *_generator_receive__aoggq9($this, $completion) {
|
|
|
937
937
|
var tmp$ret$0;
|
|
938
938
|
$l$block: {
|
|
939
939
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImpl' call
|
|
940
|
-
var segment = $this.
|
|
940
|
+
var segment = $this.a1a_1.kotlinx$atomicfu$value;
|
|
941
941
|
$l$loop_0: while (true) {
|
|
942
|
-
if ($this.
|
|
942
|
+
if ($this.w1a()) {
|
|
943
943
|
throw recoverStackTrace(_get_receiveException__foorc1($this));
|
|
944
944
|
}
|
|
945
|
-
var r = $this.
|
|
945
|
+
var r = $this.w19_1.atomicfu$getAndIncrement$long();
|
|
946
946
|
// Inline function 'kotlin.Long.div' call
|
|
947
947
|
var other = get_SEGMENT_SIZE();
|
|
948
948
|
var id = divide(r, fromInt(other));
|
|
@@ -950,7 +950,7 @@ function *_generator_receive__aoggq9($this, $completion) {
|
|
|
950
950
|
var other_0 = get_SEGMENT_SIZE();
|
|
951
951
|
var tmp$ret$2 = modulo(r, fromInt(other_0));
|
|
952
952
|
var i = convertToInt(tmp$ret$2);
|
|
953
|
-
if (!equalsLong(segment.
|
|
953
|
+
if (!equalsLong(segment.u11_1, id)) {
|
|
954
954
|
var tmp0_elvis_lhs = findSegmentReceive($this, id, segment);
|
|
955
955
|
var tmp;
|
|
956
956
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -972,8 +972,8 @@ function *_generator_receive__aoggq9($this, $completion) {
|
|
|
972
972
|
var message = 'unexpected';
|
|
973
973
|
throw IllegalStateException().o(toString_0(message));
|
|
974
974
|
} else if (updCellResult === get_FAILED()) {
|
|
975
|
-
if (compare(r, $this.
|
|
976
|
-
segment.
|
|
975
|
+
if (compare(r, $this.x1a()) < 0) {
|
|
976
|
+
segment.r1a();
|
|
977
977
|
}
|
|
978
978
|
continue $l$loop_0;
|
|
979
979
|
} else if (updCellResult === get_SUSPEND_NO_WAITER()) {
|
|
@@ -983,7 +983,7 @@ function *_generator_receive__aoggq9($this, $completion) {
|
|
|
983
983
|
tmp_1 = yield tmp_1;
|
|
984
984
|
tmp_0 = tmp_1;
|
|
985
985
|
} else {
|
|
986
|
-
segment.
|
|
986
|
+
segment.r1a();
|
|
987
987
|
return (updCellResult == null ? true : !(updCellResult == null)) ? updCellResult : THROW_CCE();
|
|
988
988
|
}
|
|
989
989
|
tmp$ret$0 = tmp_0;
|
|
@@ -1000,18 +1000,18 @@ function receiveOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
1000
1000
|
if (updCellResult === get_SUSPEND()) {
|
|
1001
1001
|
prepareReceiverForSuspension($this, cancellable, segment, index);
|
|
1002
1002
|
} else if (updCellResult === get_FAILED()) {
|
|
1003
|
-
if (compare(r, $this.
|
|
1004
|
-
segment.
|
|
1003
|
+
if (compare(r, $this.x1a()) < 0) {
|
|
1004
|
+
segment.r1a();
|
|
1005
1005
|
}
|
|
1006
1006
|
$l$block_0: {
|
|
1007
1007
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImpl' call
|
|
1008
|
-
var segment_0 = $this.
|
|
1008
|
+
var segment_0 = $this.a1a_1.kotlinx$atomicfu$value;
|
|
1009
1009
|
$l$loop_0: while (true) {
|
|
1010
|
-
if ($this.
|
|
1010
|
+
if ($this.w1a()) {
|
|
1011
1011
|
onClosedReceiveOnNoWaiterSuspend($this, cancellable);
|
|
1012
1012
|
break $l$block_0;
|
|
1013
1013
|
}
|
|
1014
|
-
var r_0 = $this.
|
|
1014
|
+
var r_0 = $this.w19_1.atomicfu$getAndIncrement$long();
|
|
1015
1015
|
// Inline function 'kotlin.Long.div' call
|
|
1016
1016
|
var other = get_SEGMENT_SIZE();
|
|
1017
1017
|
var id = divide(r_0, fromInt(other));
|
|
@@ -1019,7 +1019,7 @@ function receiveOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
1019
1019
|
var other_0 = get_SEGMENT_SIZE();
|
|
1020
1020
|
var tmp$ret$3 = modulo(r_0, fromInt(other_0));
|
|
1021
1021
|
var i = convertToInt(tmp$ret$3);
|
|
1022
|
-
if (!equalsLong(segment_0.
|
|
1022
|
+
if (!equalsLong(segment_0.u11_1, id)) {
|
|
1023
1023
|
var tmp0_elvis_lhs = findSegmentReceive($this, id, segment_0);
|
|
1024
1024
|
var tmp;
|
|
1025
1025
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1038,8 +1038,8 @@ function receiveOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
1038
1038
|
prepareReceiverForSuspension($this, tmp1_safe_receiver, segment_0, i);
|
|
1039
1039
|
}
|
|
1040
1040
|
} else if (updCellResult_0 === get_FAILED()) {
|
|
1041
|
-
if (compare(r_0, $this.
|
|
1042
|
-
segment_0.
|
|
1041
|
+
if (compare(r_0, $this.x1a()) < 0) {
|
|
1042
|
+
segment_0.r1a();
|
|
1043
1043
|
}
|
|
1044
1044
|
continue $l$loop_0;
|
|
1045
1045
|
} else if (updCellResult_0 === get_SUSPEND_NO_WAITER()) {
|
|
@@ -1047,36 +1047,36 @@ function receiveOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
1047
1047
|
var message = 'unexpected';
|
|
1048
1048
|
throw IllegalStateException().o(toString_0(message));
|
|
1049
1049
|
} else {
|
|
1050
|
-
segment_0.
|
|
1050
|
+
segment_0.r1a();
|
|
1051
1051
|
var element = (updCellResult_0 == null ? true : !(updCellResult_0 == null)) ? updCellResult_0 : THROW_CCE();
|
|
1052
|
-
var tmp0_safe_receiver = $this.
|
|
1052
|
+
var tmp0_safe_receiver = $this.u19_1;
|
|
1053
1053
|
var onCancellation = tmp0_safe_receiver == null ? null : bindCancellationFun_0($this, tmp0_safe_receiver);
|
|
1054
|
-
cancellable.
|
|
1054
|
+
cancellable.x12(element, onCancellation);
|
|
1055
1055
|
}
|
|
1056
1056
|
break $l$block_0;
|
|
1057
1057
|
}
|
|
1058
1058
|
}
|
|
1059
1059
|
} else {
|
|
1060
|
-
segment.
|
|
1060
|
+
segment.r1a();
|
|
1061
1061
|
var element_0 = (updCellResult == null ? true : !(updCellResult == null)) ? updCellResult : THROW_CCE();
|
|
1062
|
-
var tmp0_safe_receiver_0 = $this.
|
|
1062
|
+
var tmp0_safe_receiver_0 = $this.u19_1;
|
|
1063
1063
|
var onCancellation_0 = tmp0_safe_receiver_0 == null ? null : bindCancellationFun_0($this, tmp0_safe_receiver_0);
|
|
1064
|
-
cancellable.
|
|
1064
|
+
cancellable.x12(element_0, onCancellation_0);
|
|
1065
1065
|
}
|
|
1066
1066
|
} catch ($p) {
|
|
1067
1067
|
if ($p instanceof Error) {
|
|
1068
1068
|
var e = $p;
|
|
1069
|
-
cancellable.
|
|
1069
|
+
cancellable.t12();
|
|
1070
1070
|
throw e;
|
|
1071
1071
|
} else {
|
|
1072
1072
|
throw $p;
|
|
1073
1073
|
}
|
|
1074
1074
|
}
|
|
1075
|
-
return cancellable.
|
|
1075
|
+
return cancellable.b10();
|
|
1076
1076
|
}
|
|
1077
1077
|
function prepareReceiverForSuspension($this, _this__u8e3s4, segment, index) {
|
|
1078
|
-
$this.
|
|
1079
|
-
_this__u8e3s4.
|
|
1078
|
+
$this.i1b();
|
|
1079
|
+
_this__u8e3s4.z12(segment, index);
|
|
1080
1080
|
}
|
|
1081
1081
|
function onClosedReceiveOnNoWaiterSuspend($this, cont) {
|
|
1082
1082
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
@@ -1086,36 +1086,36 @@ function onClosedReceiveOnNoWaiterSuspend($this, cont) {
|
|
|
1086
1086
|
cont.dd(tmp$ret$0);
|
|
1087
1087
|
}
|
|
1088
1088
|
function updateCellReceive($this, segment, index, r, waiter) {
|
|
1089
|
-
var state = segment.
|
|
1089
|
+
var state = segment.p19(index);
|
|
1090
1090
|
if (state === null) {
|
|
1091
1091
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
1092
|
-
var this_0 = $this.
|
|
1092
|
+
var this_0 = $this.v19_1.kotlinx$atomicfu$value;
|
|
1093
1093
|
var senders = bitwiseAnd(this_0, new (Long())(-1, 268435455));
|
|
1094
1094
|
if (compare(r, senders) >= 0) {
|
|
1095
1095
|
if (waiter === null) {
|
|
1096
1096
|
return get_SUSPEND_NO_WAITER();
|
|
1097
1097
|
}
|
|
1098
|
-
if (segment.
|
|
1098
|
+
if (segment.r19(index, state, waiter)) {
|
|
1099
1099
|
expandBuffer($this);
|
|
1100
1100
|
return get_SUSPEND();
|
|
1101
1101
|
}
|
|
1102
1102
|
}
|
|
1103
1103
|
} else if (state === get_BUFFERED())
|
|
1104
|
-
if (segment.
|
|
1104
|
+
if (segment.r19(index, state, get_DONE_RCV())) {
|
|
1105
1105
|
expandBuffer($this);
|
|
1106
|
-
return segment.
|
|
1106
|
+
return segment.n19(index);
|
|
1107
1107
|
}
|
|
1108
1108
|
return updateCellReceiveSlow($this, segment, index, r, waiter);
|
|
1109
1109
|
}
|
|
1110
1110
|
function updateCellReceiveSlow($this, segment, index, r, waiter) {
|
|
1111
1111
|
$l$loop: while (true) {
|
|
1112
|
-
var state = segment.
|
|
1112
|
+
var state = segment.p19(index);
|
|
1113
1113
|
if (state === null || state === get_IN_BUFFER()) {
|
|
1114
1114
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
1115
|
-
var this_0 = $this.
|
|
1115
|
+
var this_0 = $this.v19_1.kotlinx$atomicfu$value;
|
|
1116
1116
|
var senders = bitwiseAnd(this_0, new (Long())(-1, 268435455));
|
|
1117
1117
|
if (compare(r, senders) < 0) {
|
|
1118
|
-
if (segment.
|
|
1118
|
+
if (segment.r19(index, state, get_POISONED())) {
|
|
1119
1119
|
expandBuffer($this);
|
|
1120
1120
|
return get_FAILED();
|
|
1121
1121
|
}
|
|
@@ -1123,15 +1123,15 @@ function updateCellReceiveSlow($this, segment, index, r, waiter) {
|
|
|
1123
1123
|
if (waiter === null) {
|
|
1124
1124
|
return get_SUSPEND_NO_WAITER();
|
|
1125
1125
|
}
|
|
1126
|
-
if (segment.
|
|
1126
|
+
if (segment.r19(index, state, waiter)) {
|
|
1127
1127
|
expandBuffer($this);
|
|
1128
1128
|
return get_SUSPEND();
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
1131
1131
|
} else if (state === get_BUFFERED()) {
|
|
1132
|
-
if (segment.
|
|
1132
|
+
if (segment.r19(index, state, get_DONE_RCV())) {
|
|
1133
1133
|
expandBuffer($this);
|
|
1134
|
-
return segment.
|
|
1134
|
+
return segment.n19(index);
|
|
1135
1135
|
}
|
|
1136
1136
|
} else if (state === get_INTERRUPTED_SEND())
|
|
1137
1137
|
return get_FAILED();
|
|
@@ -1143,23 +1143,23 @@ function updateCellReceiveSlow($this, segment, index, r, waiter) {
|
|
|
1143
1143
|
} else if (state === get_RESUMING_BY_EB())
|
|
1144
1144
|
continue $l$loop;
|
|
1145
1145
|
else {
|
|
1146
|
-
if (segment.
|
|
1146
|
+
if (segment.r19(index, state, get_RESUMING_BY_RCV())) {
|
|
1147
1147
|
var helpExpandBuffer = state instanceof WaiterEB();
|
|
1148
1148
|
var tmp;
|
|
1149
1149
|
if (state instanceof WaiterEB()) {
|
|
1150
|
-
tmp = state.
|
|
1150
|
+
tmp = state.c1b_1;
|
|
1151
1151
|
} else {
|
|
1152
1152
|
tmp = state;
|
|
1153
1153
|
}
|
|
1154
1154
|
var sender = tmp;
|
|
1155
1155
|
var tmp_0;
|
|
1156
1156
|
if (tryResumeSender($this, sender, segment, index)) {
|
|
1157
|
-
segment.
|
|
1157
|
+
segment.q19(index, get_DONE_RCV());
|
|
1158
1158
|
expandBuffer($this);
|
|
1159
|
-
tmp_0 = segment.
|
|
1159
|
+
tmp_0 = segment.n19(index);
|
|
1160
1160
|
} else {
|
|
1161
|
-
segment.
|
|
1162
|
-
segment.
|
|
1161
|
+
segment.q19(index, get_INTERRUPTED_SEND());
|
|
1162
|
+
segment.f1a(index, false);
|
|
1163
1163
|
if (helpExpandBuffer) {
|
|
1164
1164
|
expandBuffer($this);
|
|
1165
1165
|
}
|
|
@@ -1180,14 +1180,14 @@ function tryResumeSender($this, _this__u8e3s4, segment, index) {
|
|
|
1180
1180
|
if (isInterface(_this__u8e3s4, SelectInstance())) {
|
|
1181
1181
|
if (!(_this__u8e3s4 instanceof SelectImplementation()))
|
|
1182
1182
|
THROW_CCE();
|
|
1183
|
-
var trySelectResult = _this__u8e3s4.
|
|
1183
|
+
var trySelectResult = _this__u8e3s4.n1b($this, Unit_instance);
|
|
1184
1184
|
if (trySelectResult === TrySelectDetailedResult_REREGISTER_getInstance()) {
|
|
1185
|
-
segment.
|
|
1185
|
+
segment.o19(index);
|
|
1186
1186
|
}
|
|
1187
1187
|
tmp = trySelectResult === TrySelectDetailedResult_SUCCESSFUL_getInstance();
|
|
1188
1188
|
} else {
|
|
1189
1189
|
if (_this__u8e3s4 instanceof SendBroadcast()) {
|
|
1190
|
-
tmp = tryResume0(_this__u8e3s4.
|
|
1190
|
+
tmp = tryResume0(_this__u8e3s4.j1b_1, true);
|
|
1191
1191
|
} else {
|
|
1192
1192
|
var message = 'Unexpected waiter: ' + toString_0(_this__u8e3s4);
|
|
1193
1193
|
throw IllegalStateException().o(toString_0(message));
|
|
@@ -1199,21 +1199,21 @@ function tryResumeSender($this, _this__u8e3s4, segment, index) {
|
|
|
1199
1199
|
function expandBuffer($this) {
|
|
1200
1200
|
if (_get_isRendezvousOrUnlimited__3mdufi($this))
|
|
1201
1201
|
return Unit_instance;
|
|
1202
|
-
var segment = $this.
|
|
1202
|
+
var segment = $this.b1a_1.kotlinx$atomicfu$value;
|
|
1203
1203
|
try_again: while (true) {
|
|
1204
|
-
var b = $this.
|
|
1204
|
+
var b = $this.x19_1.atomicfu$getAndIncrement$long();
|
|
1205
1205
|
// Inline function 'kotlin.Long.div' call
|
|
1206
1206
|
var other = get_SEGMENT_SIZE();
|
|
1207
1207
|
var id = divide(b, fromInt(other));
|
|
1208
|
-
var s = $this.
|
|
1208
|
+
var s = $this.x1a();
|
|
1209
1209
|
if (compare(s, b) <= 0) {
|
|
1210
|
-
if (compare(segment.
|
|
1210
|
+
if (compare(segment.u11_1, id) < 0 && !(segment.n1a() == null)) {
|
|
1211
1211
|
moveSegmentBufferEndToSpecifiedOrLast($this, id, segment);
|
|
1212
1212
|
}
|
|
1213
1213
|
incCompletedExpandBufferAttempts$default($this);
|
|
1214
1214
|
return Unit_instance;
|
|
1215
1215
|
}
|
|
1216
|
-
if (!equalsLong(segment.
|
|
1216
|
+
if (!equalsLong(segment.u11_1, id)) {
|
|
1217
1217
|
var tmp0_elvis_lhs = findSegmentBufferEnd($this, id, segment, b);
|
|
1218
1218
|
var tmp;
|
|
1219
1219
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1237,17 +1237,17 @@ function expandBuffer($this) {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
1239
|
function updateCellExpandBuffer($this, segment, index, b) {
|
|
1240
|
-
var state = segment.
|
|
1240
|
+
var state = segment.p19(index);
|
|
1241
1241
|
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
1242
|
-
if (compare(b, $this.
|
|
1243
|
-
if (segment.
|
|
1242
|
+
if (compare(b, $this.w19_1.kotlinx$atomicfu$value) >= 0) {
|
|
1243
|
+
if (segment.r19(index, state, get_RESUMING_BY_EB())) {
|
|
1244
1244
|
var tmp;
|
|
1245
1245
|
if (tryResumeSender($this, state, segment, index)) {
|
|
1246
|
-
segment.
|
|
1246
|
+
segment.q19(index, get_BUFFERED());
|
|
1247
1247
|
tmp = true;
|
|
1248
1248
|
} else {
|
|
1249
|
-
segment.
|
|
1250
|
-
segment.
|
|
1249
|
+
segment.q19(index, get_INTERRUPTED_SEND());
|
|
1250
|
+
segment.f1a(index, false);
|
|
1251
1251
|
tmp = false;
|
|
1252
1252
|
}
|
|
1253
1253
|
return tmp;
|
|
@@ -1258,20 +1258,20 @@ function updateCellExpandBuffer($this, segment, index, b) {
|
|
|
1258
1258
|
}
|
|
1259
1259
|
function updateCellExpandBufferSlow($this, segment, index, b) {
|
|
1260
1260
|
$l$loop: while (true) {
|
|
1261
|
-
var state = segment.
|
|
1261
|
+
var state = segment.p19(index);
|
|
1262
1262
|
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
1263
|
-
if (compare(b, $this.
|
|
1264
|
-
if (segment.
|
|
1263
|
+
if (compare(b, $this.w19_1.kotlinx$atomicfu$value) < 0) {
|
|
1264
|
+
if (segment.r19(index, state, new (WaiterEB())(state)))
|
|
1265
1265
|
return true;
|
|
1266
1266
|
} else {
|
|
1267
|
-
if (segment.
|
|
1267
|
+
if (segment.r19(index, state, get_RESUMING_BY_EB())) {
|
|
1268
1268
|
var tmp;
|
|
1269
1269
|
if (tryResumeSender($this, state, segment, index)) {
|
|
1270
|
-
segment.
|
|
1270
|
+
segment.q19(index, get_BUFFERED());
|
|
1271
1271
|
tmp = true;
|
|
1272
1272
|
} else {
|
|
1273
|
-
segment.
|
|
1274
|
-
segment.
|
|
1273
|
+
segment.q19(index, get_INTERRUPTED_SEND());
|
|
1274
|
+
segment.f1a(index, false);
|
|
1275
1275
|
tmp = false;
|
|
1276
1276
|
}
|
|
1277
1277
|
return tmp;
|
|
@@ -1282,7 +1282,7 @@ function updateCellExpandBufferSlow($this, segment, index, b) {
|
|
|
1282
1282
|
return false;
|
|
1283
1283
|
else {
|
|
1284
1284
|
if (state === null) {
|
|
1285
|
-
if (segment.
|
|
1285
|
+
if (segment.r19(index, state, get_IN_BUFFER()))
|
|
1286
1286
|
return true;
|
|
1287
1287
|
} else {
|
|
1288
1288
|
if (state === get_BUFFERED())
|
|
@@ -1311,12 +1311,12 @@ function updateCellExpandBufferSlow($this, segment, index, b) {
|
|
|
1311
1311
|
}
|
|
1312
1312
|
function incCompletedExpandBufferAttempts($this, nAttempts) {
|
|
1313
1313
|
// Inline function 'kotlin.also' call
|
|
1314
|
-
var this_0 = $this.
|
|
1314
|
+
var this_0 = $this.y19_1.atomicfu$addAndGet$long(nAttempts);
|
|
1315
1315
|
// Inline function 'kotlinx.coroutines.channels.ebPauseExpandBuffers' call
|
|
1316
1316
|
if (!equalsLong(bitwiseAnd(this_0, new (Long())(0, 1073741824)), new (Long())(0, 0))) {
|
|
1317
1317
|
$l$loop: while (true) {
|
|
1318
1318
|
// Inline function 'kotlinx.coroutines.channels.ebPauseExpandBuffers' call
|
|
1319
|
-
var this_1 = $this.
|
|
1319
|
+
var this_1 = $this.y19_1.kotlinx$atomicfu$value;
|
|
1320
1320
|
if (!!equalsLong(bitwiseAnd(this_1, new (Long())(0, 1073741824)), new (Long())(0, 0))) {
|
|
1321
1321
|
break $l$loop;
|
|
1322
1322
|
}
|
|
@@ -1332,45 +1332,45 @@ function BufferedChannelIterator() {
|
|
|
1332
1332
|
if (BufferedChannelIteratorClass === VOID) {
|
|
1333
1333
|
class $ {
|
|
1334
1334
|
constructor($outer) {
|
|
1335
|
-
this.
|
|
1336
|
-
this.
|
|
1337
|
-
this.
|
|
1335
|
+
this.v1a_1 = $outer;
|
|
1336
|
+
this.t1a_1 = get_NO_RECEIVE_RESULT();
|
|
1337
|
+
this.u1a_1 = null;
|
|
1338
1338
|
}
|
|
1339
|
-
|
|
1339
|
+
o1b($completion) {
|
|
1340
1340
|
return suspendOrReturn(/*#__NOINLINE__*/_generator_hasNext__q471nr.bind(VOID, this), $completion);
|
|
1341
1341
|
}
|
|
1342
|
-
|
|
1343
|
-
var tmp0_safe_receiver = this.
|
|
1342
|
+
z12(segment, index) {
|
|
1343
|
+
var tmp0_safe_receiver = this.u1a_1;
|
|
1344
1344
|
if (tmp0_safe_receiver == null)
|
|
1345
1345
|
null;
|
|
1346
1346
|
else {
|
|
1347
|
-
tmp0_safe_receiver.
|
|
1347
|
+
tmp0_safe_receiver.z12(segment, index);
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
|
1350
1350
|
s1() {
|
|
1351
|
-
var result = this.
|
|
1351
|
+
var result = this.t1a_1;
|
|
1352
1352
|
// Inline function 'kotlin.check' call
|
|
1353
1353
|
if (!!(result === get_NO_RECEIVE_RESULT())) {
|
|
1354
1354
|
var message = '`hasNext()` has not been invoked';
|
|
1355
1355
|
throw IllegalStateException().o(toString_0(message));
|
|
1356
1356
|
}
|
|
1357
|
-
this.
|
|
1357
|
+
this.t1a_1 = get_NO_RECEIVE_RESULT();
|
|
1358
1358
|
if (result === get_CHANNEL_CLOSED())
|
|
1359
|
-
throw recoverStackTrace(_get_receiveException__foorc1(this.
|
|
1359
|
+
throw recoverStackTrace(_get_receiveException__foorc1(this.v1a_1));
|
|
1360
1360
|
return (result == null ? true : !(result == null)) ? result : THROW_CCE();
|
|
1361
1361
|
}
|
|
1362
|
-
|
|
1363
|
-
var cont = ensureNotNull(this.
|
|
1364
|
-
this.
|
|
1365
|
-
this.
|
|
1366
|
-
var tmp0_safe_receiver = this.
|
|
1367
|
-
return tryResume0(cont, true, tmp0_safe_receiver == null ? null : bindCancellationFun(this.
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1370
|
-
var cont = ensureNotNull(this.
|
|
1371
|
-
this.
|
|
1372
|
-
this.
|
|
1373
|
-
var cause = this.
|
|
1362
|
+
d1b(element) {
|
|
1363
|
+
var cont = ensureNotNull(this.u1a_1);
|
|
1364
|
+
this.u1a_1 = null;
|
|
1365
|
+
this.t1a_1 = element;
|
|
1366
|
+
var tmp0_safe_receiver = this.v1a_1.u19_1;
|
|
1367
|
+
return tryResume0(cont, true, tmp0_safe_receiver == null ? null : bindCancellationFun(this.v1a_1, tmp0_safe_receiver, element));
|
|
1368
|
+
}
|
|
1369
|
+
p1b() {
|
|
1370
|
+
var cont = ensureNotNull(this.u1a_1);
|
|
1371
|
+
this.u1a_1 = null;
|
|
1372
|
+
this.t1a_1 = get_CHANNEL_CLOSED();
|
|
1373
|
+
var cause = this.v1a_1.y1a();
|
|
1374
1374
|
if (cause == null) {
|
|
1375
1375
|
// Inline function 'kotlin.coroutines.resume' call
|
|
1376
1376
|
// Inline function 'kotlin.Companion.success' call
|
|
@@ -1391,11 +1391,11 @@ function BufferedChannelIterator() {
|
|
|
1391
1391
|
return BufferedChannelIteratorClass;
|
|
1392
1392
|
}
|
|
1393
1393
|
function _get_receiveException__foorc1($this) {
|
|
1394
|
-
var tmp0_elvis_lhs = $this.
|
|
1395
|
-
return tmp0_elvis_lhs == null ? ClosedReceiveChannelException().
|
|
1394
|
+
var tmp0_elvis_lhs = $this.y1a();
|
|
1395
|
+
return tmp0_elvis_lhs == null ? ClosedReceiveChannelException().u1b('Channel was closed') : tmp0_elvis_lhs;
|
|
1396
1396
|
}
|
|
1397
1397
|
function invokeCloseHandler($this) {
|
|
1398
|
-
var tmp0 = $this.
|
|
1398
|
+
var tmp0 = $this.e1a_1;
|
|
1399
1399
|
var tmp$ret$1;
|
|
1400
1400
|
$l$block: {
|
|
1401
1401
|
// Inline function 'kotlinx.atomicfu.getAndUpdate' call
|
|
@@ -1424,10 +1424,10 @@ function invokeCloseHandler($this) {
|
|
|
1424
1424
|
var closeHandler = tmp_0;
|
|
1425
1425
|
if (typeof closeHandler !== 'function')
|
|
1426
1426
|
THROW_CCE();
|
|
1427
|
-
closeHandler($this.
|
|
1427
|
+
closeHandler($this.y1a());
|
|
1428
1428
|
}
|
|
1429
1429
|
function markClosed($this) {
|
|
1430
|
-
var tmp0 = $this.
|
|
1430
|
+
var tmp0 = $this.v19_1;
|
|
1431
1431
|
var tmp$ret$4;
|
|
1432
1432
|
$l$block: {
|
|
1433
1433
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
@@ -1462,7 +1462,7 @@ function markClosed($this) {
|
|
|
1462
1462
|
return tmp$ret$4;
|
|
1463
1463
|
}
|
|
1464
1464
|
function markCancelled($this) {
|
|
1465
|
-
var tmp0 = $this.
|
|
1465
|
+
var tmp0 = $this.v19_1;
|
|
1466
1466
|
var tmp$ret$2;
|
|
1467
1467
|
$l$block: {
|
|
1468
1468
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
@@ -1481,7 +1481,7 @@ function markCancelled($this) {
|
|
|
1481
1481
|
return tmp$ret$2;
|
|
1482
1482
|
}
|
|
1483
1483
|
function markCancellationStarted($this) {
|
|
1484
|
-
var tmp0 = $this.
|
|
1484
|
+
var tmp0 = $this.v19_1;
|
|
1485
1485
|
var tmp$ret$3;
|
|
1486
1486
|
$l$block: {
|
|
1487
1487
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
@@ -1507,14 +1507,14 @@ function markCancellationStarted($this) {
|
|
|
1507
1507
|
return tmp$ret$3;
|
|
1508
1508
|
}
|
|
1509
1509
|
function completeCloseOrCancel($this) {
|
|
1510
|
-
$this.
|
|
1510
|
+
$this.v1b();
|
|
1511
1511
|
}
|
|
1512
1512
|
function completeClose($this, sendersCur) {
|
|
1513
1513
|
var lastSegment = closeLinkedList($this);
|
|
1514
|
-
if ($this.
|
|
1514
|
+
if ($this.x1b()) {
|
|
1515
1515
|
var lastBufferedCellGlobalIndex = markAllEmptyCellsAsClosed($this, lastSegment);
|
|
1516
1516
|
if (!equalsLong(lastBufferedCellGlobalIndex, new (Long())(-1, -1))) {
|
|
1517
|
-
$this.
|
|
1517
|
+
$this.w1b(lastBufferedCellGlobalIndex);
|
|
1518
1518
|
}
|
|
1519
1519
|
}
|
|
1520
1520
|
cancelSuspendedReceiveRequests($this, lastSegment, sendersCur);
|
|
@@ -1525,14 +1525,14 @@ function completeCancel($this, sendersCur) {
|
|
|
1525
1525
|
removeUnprocessedElements($this, lastSegment);
|
|
1526
1526
|
}
|
|
1527
1527
|
function closeLinkedList($this) {
|
|
1528
|
-
var lastSegment = $this.
|
|
1528
|
+
var lastSegment = $this.b1a_1.kotlinx$atomicfu$value;
|
|
1529
1529
|
// Inline function 'kotlin.let' call
|
|
1530
|
-
var it = $this.
|
|
1531
|
-
if (compare(it.
|
|
1530
|
+
var it = $this.z19_1.kotlinx$atomicfu$value;
|
|
1531
|
+
if (compare(it.u11_1, lastSegment.u11_1) > 0)
|
|
1532
1532
|
lastSegment = it;
|
|
1533
1533
|
// Inline function 'kotlin.let' call
|
|
1534
|
-
var it_0 = $this.
|
|
1535
|
-
if (compare(it_0.
|
|
1534
|
+
var it_0 = $this.a1a_1.kotlinx$atomicfu$value;
|
|
1535
|
+
if (compare(it_0.u11_1, lastSegment.u11_1) > 0)
|
|
1536
1536
|
lastSegment = it_0;
|
|
1537
1537
|
return close(lastSegment);
|
|
1538
1538
|
}
|
|
@@ -1544,19 +1544,19 @@ function markAllEmptyCellsAsClosed($this, lastSegment) {
|
|
|
1544
1544
|
do {
|
|
1545
1545
|
var index = inductionVariable;
|
|
1546
1546
|
inductionVariable = inductionVariable + -1 | 0;
|
|
1547
|
-
var tmp0 = segment.
|
|
1547
|
+
var tmp0 = segment.u11_1;
|
|
1548
1548
|
// Inline function 'kotlin.Long.times' call
|
|
1549
1549
|
var other = get_SEGMENT_SIZE();
|
|
1550
1550
|
// Inline function 'kotlin.Long.plus' call
|
|
1551
1551
|
var this_0 = multiply(tmp0, fromInt(other));
|
|
1552
1552
|
var globalIndex = add(this_0, fromInt(index));
|
|
1553
|
-
if (compare(globalIndex, $this.
|
|
1553
|
+
if (compare(globalIndex, $this.z1a()) < 0)
|
|
1554
1554
|
return new (Long())(-1, -1);
|
|
1555
1555
|
cell_update: while (true) {
|
|
1556
|
-
var state = segment.
|
|
1556
|
+
var state = segment.p19(index);
|
|
1557
1557
|
if (state === null || state === get_IN_BUFFER()) {
|
|
1558
|
-
if (segment.
|
|
1559
|
-
segment.
|
|
1558
|
+
if (segment.r19(index, state, get_CHANNEL_CLOSED())) {
|
|
1559
|
+
segment.h1a();
|
|
1560
1560
|
break cell_update;
|
|
1561
1561
|
}
|
|
1562
1562
|
} else if (state === get_BUFFERED())
|
|
@@ -1566,7 +1566,7 @@ function markAllEmptyCellsAsClosed($this, lastSegment) {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
}
|
|
1568
1568
|
while (0 <= inductionVariable);
|
|
1569
|
-
var tmp0_elvis_lhs = segment.
|
|
1569
|
+
var tmp0_elvis_lhs = segment.q1a();
|
|
1570
1570
|
var tmp;
|
|
1571
1571
|
if (tmp0_elvis_lhs == null) {
|
|
1572
1572
|
return new (Long())(-1, -1);
|
|
@@ -1577,7 +1577,7 @@ function markAllEmptyCellsAsClosed($this, lastSegment) {
|
|
|
1577
1577
|
}
|
|
1578
1578
|
}
|
|
1579
1579
|
function removeUnprocessedElements($this, lastSegment) {
|
|
1580
|
-
var onUndeliveredElement = $this.
|
|
1580
|
+
var onUndeliveredElement = $this.u19_1;
|
|
1581
1581
|
var undeliveredElementException = null;
|
|
1582
1582
|
var suspendedSenders = _InlineList___init__impl__z8n56();
|
|
1583
1583
|
var segment = lastSegment;
|
|
@@ -1587,33 +1587,33 @@ function removeUnprocessedElements($this, lastSegment) {
|
|
|
1587
1587
|
do {
|
|
1588
1588
|
var index = inductionVariable;
|
|
1589
1589
|
inductionVariable = inductionVariable + -1 | 0;
|
|
1590
|
-
var tmp0 = segment.
|
|
1590
|
+
var tmp0 = segment.u11_1;
|
|
1591
1591
|
// Inline function 'kotlin.Long.times' call
|
|
1592
1592
|
var other = get_SEGMENT_SIZE();
|
|
1593
1593
|
// Inline function 'kotlin.Long.plus' call
|
|
1594
1594
|
var this_0 = multiply(tmp0, fromInt(other));
|
|
1595
1595
|
var globalIndex = add(this_0, fromInt(index));
|
|
1596
1596
|
update_cell: while (true) {
|
|
1597
|
-
var state = segment.
|
|
1597
|
+
var state = segment.p19(index);
|
|
1598
1598
|
if (state === get_DONE_RCV())
|
|
1599
1599
|
break process_segments;
|
|
1600
1600
|
else {
|
|
1601
1601
|
if (state === get_BUFFERED()) {
|
|
1602
|
-
if (compare(globalIndex, $this.
|
|
1602
|
+
if (compare(globalIndex, $this.z1a()) < 0)
|
|
1603
1603
|
break process_segments;
|
|
1604
|
-
if (segment.
|
|
1604
|
+
if (segment.r19(index, state, get_CHANNEL_CLOSED())) {
|
|
1605
1605
|
if (!(onUndeliveredElement == null)) {
|
|
1606
|
-
var element = segment.
|
|
1606
|
+
var element = segment.m19(index);
|
|
1607
1607
|
undeliveredElementException = callUndeliveredElementCatchingException(onUndeliveredElement, element, undeliveredElementException);
|
|
1608
1608
|
}
|
|
1609
|
-
segment.
|
|
1610
|
-
segment.
|
|
1609
|
+
segment.o19(index);
|
|
1610
|
+
segment.h1a();
|
|
1611
1611
|
break update_cell;
|
|
1612
1612
|
}
|
|
1613
1613
|
} else {
|
|
1614
1614
|
if (state === get_IN_BUFFER() || state === null) {
|
|
1615
|
-
if (segment.
|
|
1616
|
-
segment.
|
|
1615
|
+
if (segment.r19(index, state, get_CHANNEL_CLOSED())) {
|
|
1616
|
+
segment.h1a();
|
|
1617
1617
|
break update_cell;
|
|
1618
1618
|
}
|
|
1619
1619
|
} else {
|
|
@@ -1624,23 +1624,23 @@ function removeUnprocessedElements($this, lastSegment) {
|
|
|
1624
1624
|
tmp = state instanceof WaiterEB();
|
|
1625
1625
|
}
|
|
1626
1626
|
if (tmp) {
|
|
1627
|
-
if (compare(globalIndex, $this.
|
|
1627
|
+
if (compare(globalIndex, $this.z1a()) < 0)
|
|
1628
1628
|
break process_segments;
|
|
1629
1629
|
var tmp_0;
|
|
1630
1630
|
if (state instanceof WaiterEB()) {
|
|
1631
|
-
tmp_0 = state.
|
|
1631
|
+
tmp_0 = state.c1b_1;
|
|
1632
1632
|
} else {
|
|
1633
1633
|
tmp_0 = (!(state == null) ? isInterface(state, Waiter()) : false) ? state : THROW_CCE();
|
|
1634
1634
|
}
|
|
1635
1635
|
var sender = tmp_0;
|
|
1636
|
-
if (segment.
|
|
1636
|
+
if (segment.r19(index, state, get_CHANNEL_CLOSED())) {
|
|
1637
1637
|
if (!(onUndeliveredElement == null)) {
|
|
1638
|
-
var element_0 = segment.
|
|
1638
|
+
var element_0 = segment.m19(index);
|
|
1639
1639
|
undeliveredElementException = callUndeliveredElementCatchingException(onUndeliveredElement, element_0, undeliveredElementException);
|
|
1640
1640
|
}
|
|
1641
1641
|
suspendedSenders = InlineList__plus_impl_nuetvo(suspendedSenders, sender);
|
|
1642
|
-
segment.
|
|
1643
|
-
segment.
|
|
1642
|
+
segment.o19(index);
|
|
1643
|
+
segment.h1a();
|
|
1644
1644
|
break update_cell;
|
|
1645
1645
|
}
|
|
1646
1646
|
} else {
|
|
@@ -1660,7 +1660,7 @@ function removeUnprocessedElements($this, lastSegment) {
|
|
|
1660
1660
|
}
|
|
1661
1661
|
}
|
|
1662
1662
|
while (0 <= inductionVariable);
|
|
1663
|
-
var tmp0_elvis_lhs = segment.
|
|
1663
|
+
var tmp0_elvis_lhs = segment.q1a();
|
|
1664
1664
|
var tmp_1;
|
|
1665
1665
|
if (tmp0_elvis_lhs == null) {
|
|
1666
1666
|
break process_segments;
|
|
@@ -1712,7 +1712,7 @@ function cancelSuspendedReceiveRequests($this, lastSegment, sendersCounter) {
|
|
|
1712
1712
|
do {
|
|
1713
1713
|
var index = inductionVariable;
|
|
1714
1714
|
inductionVariable = inductionVariable + -1 | 0;
|
|
1715
|
-
var tmp0 = segment.
|
|
1715
|
+
var tmp0 = segment.u11_1;
|
|
1716
1716
|
// Inline function 'kotlin.Long.times' call
|
|
1717
1717
|
var other = get_SEGMENT_SIZE();
|
|
1718
1718
|
// Inline function 'kotlin.Long.plus' call
|
|
@@ -1721,24 +1721,24 @@ function cancelSuspendedReceiveRequests($this, lastSegment, sendersCounter) {
|
|
|
1721
1721
|
if (compare(tmp$ret$1, sendersCounter) < 0)
|
|
1722
1722
|
break process_segments;
|
|
1723
1723
|
cell_update: while (true) {
|
|
1724
|
-
var state = segment.
|
|
1724
|
+
var state = segment.p19(index);
|
|
1725
1725
|
if (state === null || state === get_IN_BUFFER()) {
|
|
1726
|
-
if (segment.
|
|
1727
|
-
segment.
|
|
1726
|
+
if (segment.r19(index, state, get_CHANNEL_CLOSED())) {
|
|
1727
|
+
segment.h1a();
|
|
1728
1728
|
break cell_update;
|
|
1729
1729
|
}
|
|
1730
1730
|
} else {
|
|
1731
1731
|
if (state instanceof WaiterEB()) {
|
|
1732
|
-
if (segment.
|
|
1733
|
-
suspendedReceivers = InlineList__plus_impl_nuetvo(suspendedReceivers, state.
|
|
1734
|
-
segment.
|
|
1732
|
+
if (segment.r19(index, state, get_CHANNEL_CLOSED())) {
|
|
1733
|
+
suspendedReceivers = InlineList__plus_impl_nuetvo(suspendedReceivers, state.c1b_1);
|
|
1734
|
+
segment.f1a(index, true);
|
|
1735
1735
|
break cell_update;
|
|
1736
1736
|
}
|
|
1737
1737
|
} else {
|
|
1738
1738
|
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
1739
|
-
if (segment.
|
|
1739
|
+
if (segment.r19(index, state, get_CHANNEL_CLOSED())) {
|
|
1740
1740
|
suspendedReceivers = InlineList__plus_impl_nuetvo(suspendedReceivers, state);
|
|
1741
|
-
segment.
|
|
1741
|
+
segment.f1a(index, true);
|
|
1742
1742
|
break cell_update;
|
|
1743
1743
|
}
|
|
1744
1744
|
} else {
|
|
@@ -1749,7 +1749,7 @@ function cancelSuspendedReceiveRequests($this, lastSegment, sendersCounter) {
|
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
1751
1751
|
while (0 <= inductionVariable);
|
|
1752
|
-
segment = segment.
|
|
1752
|
+
segment = segment.q1a();
|
|
1753
1753
|
}
|
|
1754
1754
|
var tmp0_0 = suspendedReceivers;
|
|
1755
1755
|
$l$block: {
|
|
@@ -1787,7 +1787,7 @@ function resumeSenderOnCancelledChannel($this, _this__u8e3s4) {
|
|
|
1787
1787
|
function resumeWaiterOnClosedChannel($this, _this__u8e3s4, receiver) {
|
|
1788
1788
|
if (_this__u8e3s4 instanceof SendBroadcast()) {
|
|
1789
1789
|
// Inline function 'kotlin.coroutines.resume' call
|
|
1790
|
-
var this_0 = _this__u8e3s4.
|
|
1790
|
+
var this_0 = _this__u8e3s4.j1b_1;
|
|
1791
1791
|
// Inline function 'kotlin.Companion.success' call
|
|
1792
1792
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(false);
|
|
1793
1793
|
this_0.dd(tmp$ret$0);
|
|
@@ -1795,23 +1795,23 @@ function resumeWaiterOnClosedChannel($this, _this__u8e3s4, receiver) {
|
|
|
1795
1795
|
if (isInterface(_this__u8e3s4, CancellableContinuation())) {
|
|
1796
1796
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
1797
1797
|
// Inline function 'kotlin.Companion.failure' call
|
|
1798
|
-
var exception = receiver ? _get_receiveException__foorc1($this) : $this.
|
|
1798
|
+
var exception = receiver ? _get_receiveException__foorc1($this) : $this.a1b();
|
|
1799
1799
|
var tmp$ret$2 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
1800
1800
|
_this__u8e3s4.dd(tmp$ret$2);
|
|
1801
1801
|
} else {
|
|
1802
1802
|
if (_this__u8e3s4 instanceof ReceiveCatching()) {
|
|
1803
|
-
var tmp0 = _this__u8e3s4.
|
|
1803
|
+
var tmp0 = _this__u8e3s4.g1b_1;
|
|
1804
1804
|
// Inline function 'kotlin.coroutines.resume' call
|
|
1805
1805
|
// Inline function 'kotlin.Companion.success' call
|
|
1806
|
-
var value = new (ChannelResult())(Companion_getInstance().
|
|
1806
|
+
var value = new (ChannelResult())(Companion_getInstance().y1b($this.y1a()));
|
|
1807
1807
|
var tmp$ret$4 = _Result___init__impl__xyqfz8(value);
|
|
1808
1808
|
tmp0.dd(tmp$ret$4);
|
|
1809
1809
|
} else {
|
|
1810
1810
|
if (_this__u8e3s4 instanceof BufferedChannelIterator()) {
|
|
1811
|
-
_this__u8e3s4.
|
|
1811
|
+
_this__u8e3s4.p1b();
|
|
1812
1812
|
} else {
|
|
1813
1813
|
if (isInterface(_this__u8e3s4, SelectInstance()))
|
|
1814
|
-
_this__u8e3s4.
|
|
1814
|
+
_this__u8e3s4.h1b($this, get_CHANNEL_CLOSED());
|
|
1815
1815
|
else {
|
|
1816
1816
|
// Inline function 'kotlin.error' call
|
|
1817
1817
|
var message = 'Unexpected waiter: ' + toString_0(_this__u8e3s4);
|
|
@@ -1843,7 +1843,7 @@ function isClosed($this, sendersAndCloseStatusCur, isClosedForReceive) {
|
|
|
1843
1843
|
|
|
1844
1844
|
var tmp$ret$1 = bitwiseAnd(sendersAndCloseStatusCur, new (Long())(-1, 268435455));
|
|
1845
1845
|
completeClose($this, tmp$ret$1);
|
|
1846
|
-
tmp = isClosedForReceive ? !$this.
|
|
1846
|
+
tmp = isClosedForReceive ? !$this.z1b() : true;
|
|
1847
1847
|
break;
|
|
1848
1848
|
case 3:
|
|
1849
1849
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
@@ -1862,9 +1862,9 @@ function isClosed($this, sendersAndCloseStatusCur, isClosedForReceive) {
|
|
|
1862
1862
|
}
|
|
1863
1863
|
function isCellNonEmpty($this, segment, index, globalIndex) {
|
|
1864
1864
|
while (true) {
|
|
1865
|
-
var state = segment.
|
|
1865
|
+
var state = segment.p19(index);
|
|
1866
1866
|
if (state === null || state === get_IN_BUFFER()) {
|
|
1867
|
-
if (segment.
|
|
1867
|
+
if (segment.r19(index, state, get_POISONED())) {
|
|
1868
1868
|
expandBuffer($this);
|
|
1869
1869
|
return false;
|
|
1870
1870
|
}
|
|
@@ -1883,11 +1883,11 @@ function isCellNonEmpty($this, segment, index, globalIndex) {
|
|
|
1883
1883
|
else if (state === get_RESUMING_BY_RCV())
|
|
1884
1884
|
return false;
|
|
1885
1885
|
else
|
|
1886
|
-
return equalsLong(globalIndex, $this.
|
|
1886
|
+
return equalsLong(globalIndex, $this.z1a());
|
|
1887
1887
|
}
|
|
1888
1888
|
}
|
|
1889
1889
|
function findSegmentSend($this, id, startFrom) {
|
|
1890
|
-
var tmp0 = $this.
|
|
1890
|
+
var tmp0 = $this.z19_1;
|
|
1891
1891
|
var tmp6 = createSegmentFunction();
|
|
1892
1892
|
var tmp$ret$2;
|
|
1893
1893
|
$l$block_2: {
|
|
@@ -1904,22 +1904,22 @@ function findSegmentSend($this, id, startFrom) {
|
|
|
1904
1904
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
1905
1905
|
while (true) {
|
|
1906
1906
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
1907
|
-
if (compare(cur.
|
|
1907
|
+
if (compare(cur.u11_1, tmp2.u11_1) >= 0) {
|
|
1908
1908
|
tmp$ret$0 = true;
|
|
1909
1909
|
break $l$block_1;
|
|
1910
1910
|
}
|
|
1911
|
-
if (!tmp2.
|
|
1911
|
+
if (!tmp2.j1a()) {
|
|
1912
1912
|
tmp$ret$0 = false;
|
|
1913
1913
|
break $l$block_1;
|
|
1914
1914
|
}
|
|
1915
1915
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
1916
|
-
if (cur.
|
|
1916
|
+
if (cur.k1a()) {
|
|
1917
1917
|
cur.s6();
|
|
1918
1918
|
}
|
|
1919
1919
|
tmp$ret$0 = true;
|
|
1920
1920
|
break $l$block_1;
|
|
1921
1921
|
}
|
|
1922
|
-
if (tmp2.
|
|
1922
|
+
if (tmp2.k1a()) {
|
|
1923
1923
|
tmp2.s6();
|
|
1924
1924
|
}
|
|
1925
1925
|
}
|
|
@@ -1938,29 +1938,29 @@ function findSegmentSend($this, id, startFrom) {
|
|
|
1938
1938
|
var tmp_0;
|
|
1939
1939
|
if (_SegmentOrClosed___get_isClosed__impl__qmxmlo(it)) {
|
|
1940
1940
|
completeCloseOrCancel($this);
|
|
1941
|
-
var tmp0_0 = startFrom.
|
|
1941
|
+
var tmp0_0 = startFrom.u11_1;
|
|
1942
1942
|
// Inline function 'kotlin.Long.times' call
|
|
1943
1943
|
var other = get_SEGMENT_SIZE();
|
|
1944
1944
|
var tmp$ret$3 = multiply(tmp0_0, fromInt(other));
|
|
1945
|
-
if (compare(tmp$ret$3, $this.
|
|
1946
|
-
startFrom.
|
|
1945
|
+
if (compare(tmp$ret$3, $this.z1a()) < 0) {
|
|
1946
|
+
startFrom.r1a();
|
|
1947
1947
|
}
|
|
1948
1948
|
tmp_0 = null;
|
|
1949
1949
|
} else {
|
|
1950
1950
|
var segment = _SegmentOrClosed___get_segment__impl__jvcr9l(it);
|
|
1951
1951
|
var tmp_1;
|
|
1952
|
-
if (compare(segment.
|
|
1953
|
-
var tmp0_1 = segment.
|
|
1952
|
+
if (compare(segment.u11_1, id) > 0) {
|
|
1953
|
+
var tmp0_1 = segment.u11_1;
|
|
1954
1954
|
// Inline function 'kotlin.Long.times' call
|
|
1955
1955
|
var other_0 = get_SEGMENT_SIZE();
|
|
1956
1956
|
var tmp$ret$4 = multiply(tmp0_1, fromInt(other_0));
|
|
1957
1957
|
updateSendersCounterIfLower($this, tmp$ret$4);
|
|
1958
|
-
var tmp0_2 = segment.
|
|
1958
|
+
var tmp0_2 = segment.u11_1;
|
|
1959
1959
|
// Inline function 'kotlin.Long.times' call
|
|
1960
1960
|
var other_1 = get_SEGMENT_SIZE();
|
|
1961
1961
|
var tmp$ret$5 = multiply(tmp0_2, fromInt(other_1));
|
|
1962
|
-
if (compare(tmp$ret$5, $this.
|
|
1963
|
-
segment.
|
|
1962
|
+
if (compare(tmp$ret$5, $this.z1a()) < 0) {
|
|
1963
|
+
segment.r1a();
|
|
1964
1964
|
}
|
|
1965
1965
|
tmp_1 = null;
|
|
1966
1966
|
} else {
|
|
@@ -1972,7 +1972,7 @@ function findSegmentSend($this, id, startFrom) {
|
|
|
1972
1972
|
return tmp_0;
|
|
1973
1973
|
}
|
|
1974
1974
|
function findSegmentReceive($this, id, startFrom) {
|
|
1975
|
-
var tmp0 = $this.
|
|
1975
|
+
var tmp0 = $this.a1a_1;
|
|
1976
1976
|
var tmp6 = createSegmentFunction();
|
|
1977
1977
|
var tmp$ret$2;
|
|
1978
1978
|
$l$block_2: {
|
|
@@ -1989,22 +1989,22 @@ function findSegmentReceive($this, id, startFrom) {
|
|
|
1989
1989
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
1990
1990
|
while (true) {
|
|
1991
1991
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
1992
|
-
if (compare(cur.
|
|
1992
|
+
if (compare(cur.u11_1, tmp2.u11_1) >= 0) {
|
|
1993
1993
|
tmp$ret$0 = true;
|
|
1994
1994
|
break $l$block_1;
|
|
1995
1995
|
}
|
|
1996
|
-
if (!tmp2.
|
|
1996
|
+
if (!tmp2.j1a()) {
|
|
1997
1997
|
tmp$ret$0 = false;
|
|
1998
1998
|
break $l$block_1;
|
|
1999
1999
|
}
|
|
2000
2000
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
2001
|
-
if (cur.
|
|
2001
|
+
if (cur.k1a()) {
|
|
2002
2002
|
cur.s6();
|
|
2003
2003
|
}
|
|
2004
2004
|
tmp$ret$0 = true;
|
|
2005
2005
|
break $l$block_1;
|
|
2006
2006
|
}
|
|
2007
|
-
if (tmp2.
|
|
2007
|
+
if (tmp2.k1a()) {
|
|
2008
2008
|
tmp2.s6();
|
|
2009
2009
|
}
|
|
2010
2010
|
}
|
|
@@ -2023,12 +2023,12 @@ function findSegmentReceive($this, id, startFrom) {
|
|
|
2023
2023
|
var tmp_0;
|
|
2024
2024
|
if (_SegmentOrClosed___get_isClosed__impl__qmxmlo(it)) {
|
|
2025
2025
|
completeCloseOrCancel($this);
|
|
2026
|
-
var tmp0_0 = startFrom.
|
|
2026
|
+
var tmp0_0 = startFrom.u11_1;
|
|
2027
2027
|
// Inline function 'kotlin.Long.times' call
|
|
2028
2028
|
var other = get_SEGMENT_SIZE();
|
|
2029
2029
|
var tmp$ret$3 = multiply(tmp0_0, fromInt(other));
|
|
2030
|
-
if (compare(tmp$ret$3, $this.
|
|
2031
|
-
startFrom.
|
|
2030
|
+
if (compare(tmp$ret$3, $this.x1a()) < 0) {
|
|
2031
|
+
startFrom.r1a();
|
|
2032
2032
|
}
|
|
2033
2033
|
tmp_0 = null;
|
|
2034
2034
|
} else {
|
|
@@ -2044,42 +2044,42 @@ function findSegmentReceive($this, id, startFrom) {
|
|
|
2044
2044
|
tmp_1 = false;
|
|
2045
2045
|
}
|
|
2046
2046
|
if (tmp_1) {
|
|
2047
|
-
var tmp0_2 = $this.
|
|
2047
|
+
var tmp0_2 = $this.b1a_1;
|
|
2048
2048
|
$l$block_5: {
|
|
2049
2049
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
2050
2050
|
while (true) {
|
|
2051
2051
|
var cur_0 = tmp0_2.kotlinx$atomicfu$value;
|
|
2052
|
-
if (compare(cur_0.
|
|
2052
|
+
if (compare(cur_0.u11_1, segment.u11_1) >= 0) {
|
|
2053
2053
|
break $l$block_5;
|
|
2054
2054
|
}
|
|
2055
|
-
if (!segment.
|
|
2055
|
+
if (!segment.j1a()) {
|
|
2056
2056
|
break $l$block_5;
|
|
2057
2057
|
}
|
|
2058
2058
|
if (tmp0_2.atomicfu$compareAndSet(cur_0, segment)) {
|
|
2059
|
-
if (cur_0.
|
|
2059
|
+
if (cur_0.k1a()) {
|
|
2060
2060
|
cur_0.s6();
|
|
2061
2061
|
}
|
|
2062
2062
|
break $l$block_5;
|
|
2063
2063
|
}
|
|
2064
|
-
if (segment.
|
|
2064
|
+
if (segment.k1a()) {
|
|
2065
2065
|
segment.s6();
|
|
2066
2066
|
}
|
|
2067
2067
|
}
|
|
2068
2068
|
}
|
|
2069
2069
|
}
|
|
2070
2070
|
var tmp_2;
|
|
2071
|
-
if (compare(segment.
|
|
2072
|
-
var tmp0_3 = segment.
|
|
2071
|
+
if (compare(segment.u11_1, id) > 0) {
|
|
2072
|
+
var tmp0_3 = segment.u11_1;
|
|
2073
2073
|
// Inline function 'kotlin.Long.times' call
|
|
2074
2074
|
var other_1 = get_SEGMENT_SIZE();
|
|
2075
2075
|
var tmp$ret$7 = multiply(tmp0_3, fromInt(other_1));
|
|
2076
2076
|
updateReceiversCounterIfLower($this, tmp$ret$7);
|
|
2077
|
-
var tmp0_4 = segment.
|
|
2077
|
+
var tmp0_4 = segment.u11_1;
|
|
2078
2078
|
// Inline function 'kotlin.Long.times' call
|
|
2079
2079
|
var other_2 = get_SEGMENT_SIZE();
|
|
2080
2080
|
var tmp$ret$8 = multiply(tmp0_4, fromInt(other_2));
|
|
2081
|
-
if (compare(tmp$ret$8, $this.
|
|
2082
|
-
segment.
|
|
2081
|
+
if (compare(tmp$ret$8, $this.x1a()) < 0) {
|
|
2082
|
+
segment.r1a();
|
|
2083
2083
|
}
|
|
2084
2084
|
tmp_2 = null;
|
|
2085
2085
|
} else {
|
|
@@ -2091,7 +2091,7 @@ function findSegmentReceive($this, id, startFrom) {
|
|
|
2091
2091
|
return tmp_0;
|
|
2092
2092
|
}
|
|
2093
2093
|
function findSegmentBufferEnd($this, id, startFrom, currentBufferEndCounter) {
|
|
2094
|
-
var tmp0 = $this.
|
|
2094
|
+
var tmp0 = $this.b1a_1;
|
|
2095
2095
|
var tmp6 = createSegmentFunction();
|
|
2096
2096
|
var tmp$ret$2;
|
|
2097
2097
|
$l$block_2: {
|
|
@@ -2108,22 +2108,22 @@ function findSegmentBufferEnd($this, id, startFrom, currentBufferEndCounter) {
|
|
|
2108
2108
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
2109
2109
|
while (true) {
|
|
2110
2110
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
2111
|
-
if (compare(cur.
|
|
2111
|
+
if (compare(cur.u11_1, tmp2.u11_1) >= 0) {
|
|
2112
2112
|
tmp$ret$0 = true;
|
|
2113
2113
|
break $l$block_1;
|
|
2114
2114
|
}
|
|
2115
|
-
if (!tmp2.
|
|
2115
|
+
if (!tmp2.j1a()) {
|
|
2116
2116
|
tmp$ret$0 = false;
|
|
2117
2117
|
break $l$block_1;
|
|
2118
2118
|
}
|
|
2119
2119
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
2120
|
-
if (cur.
|
|
2120
|
+
if (cur.k1a()) {
|
|
2121
2121
|
cur.s6();
|
|
2122
2122
|
}
|
|
2123
2123
|
tmp$ret$0 = true;
|
|
2124
2124
|
break $l$block_1;
|
|
2125
2125
|
}
|
|
2126
|
-
if (tmp2.
|
|
2126
|
+
if (tmp2.k1a()) {
|
|
2127
2127
|
tmp2.s6();
|
|
2128
2128
|
}
|
|
2129
2129
|
}
|
|
@@ -2148,15 +2148,15 @@ function findSegmentBufferEnd($this, id, startFrom, currentBufferEndCounter) {
|
|
|
2148
2148
|
} else {
|
|
2149
2149
|
var segment = _SegmentOrClosed___get_segment__impl__jvcr9l(it);
|
|
2150
2150
|
var tmp_1;
|
|
2151
|
-
if (compare(segment.
|
|
2151
|
+
if (compare(segment.u11_1, id) > 0) {
|
|
2152
2152
|
// Inline function 'kotlin.Long.plus' call
|
|
2153
2153
|
var tmp_2 = add(currentBufferEndCounter, fromInt(1));
|
|
2154
|
-
var tmp0_0 = segment.
|
|
2154
|
+
var tmp0_0 = segment.u11_1;
|
|
2155
2155
|
// Inline function 'kotlin.Long.times' call
|
|
2156
2156
|
var other = get_SEGMENT_SIZE();
|
|
2157
2157
|
var tmp$ret$4 = multiply(tmp0_0, fromInt(other));
|
|
2158
|
-
if ($this.
|
|
2159
|
-
var tmp0_1 = segment.
|
|
2158
|
+
if ($this.x19_1.atomicfu$compareAndSet(tmp_2, tmp$ret$4)) {
|
|
2159
|
+
var tmp0_1 = segment.u11_1;
|
|
2160
2160
|
// Inline function 'kotlin.Long.times' call
|
|
2161
2161
|
var other_0 = get_SEGMENT_SIZE();
|
|
2162
2162
|
var tmp$ret$5 = multiply(tmp0_1, fromInt(other_0));
|
|
@@ -2175,8 +2175,8 @@ function findSegmentBufferEnd($this, id, startFrom, currentBufferEndCounter) {
|
|
|
2175
2175
|
}
|
|
2176
2176
|
function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
2177
2177
|
var segment = startFrom;
|
|
2178
|
-
$l$loop: while (compare(segment.
|
|
2179
|
-
var tmp0_elvis_lhs = segment.
|
|
2178
|
+
$l$loop: while (compare(segment.u11_1, id) < 0) {
|
|
2179
|
+
var tmp0_elvis_lhs = segment.n1a();
|
|
2180
2180
|
var tmp;
|
|
2181
2181
|
if (tmp0_elvis_lhs == null) {
|
|
2182
2182
|
break $l$loop;
|
|
@@ -2186,8 +2186,8 @@ function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
|
2186
2186
|
segment = tmp;
|
|
2187
2187
|
}
|
|
2188
2188
|
while (true) {
|
|
2189
|
-
$l$loop_0: while (segment.
|
|
2190
|
-
var tmp1_elvis_lhs = segment.
|
|
2189
|
+
$l$loop_0: while (segment.i1a()) {
|
|
2190
|
+
var tmp1_elvis_lhs = segment.n1a();
|
|
2191
2191
|
var tmp_0;
|
|
2192
2192
|
if (tmp1_elvis_lhs == null) {
|
|
2193
2193
|
break $l$loop_0;
|
|
@@ -2196,29 +2196,29 @@ function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
|
2196
2196
|
}
|
|
2197
2197
|
segment = tmp_0;
|
|
2198
2198
|
}
|
|
2199
|
-
var tmp0 = $this.
|
|
2199
|
+
var tmp0 = $this.b1a_1;
|
|
2200
2200
|
var tmp2 = segment;
|
|
2201
2201
|
var tmp$ret$0;
|
|
2202
2202
|
$l$block_1: {
|
|
2203
2203
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
2204
2204
|
while (true) {
|
|
2205
2205
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
2206
|
-
if (compare(cur.
|
|
2206
|
+
if (compare(cur.u11_1, tmp2.u11_1) >= 0) {
|
|
2207
2207
|
tmp$ret$0 = true;
|
|
2208
2208
|
break $l$block_1;
|
|
2209
2209
|
}
|
|
2210
|
-
if (!tmp2.
|
|
2210
|
+
if (!tmp2.j1a()) {
|
|
2211
2211
|
tmp$ret$0 = false;
|
|
2212
2212
|
break $l$block_1;
|
|
2213
2213
|
}
|
|
2214
2214
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
2215
|
-
if (cur.
|
|
2215
|
+
if (cur.k1a()) {
|
|
2216
2216
|
cur.s6();
|
|
2217
2217
|
}
|
|
2218
2218
|
tmp$ret$0 = true;
|
|
2219
2219
|
break $l$block_1;
|
|
2220
2220
|
}
|
|
2221
|
-
if (tmp2.
|
|
2221
|
+
if (tmp2.k1a()) {
|
|
2222
2222
|
tmp2.s6();
|
|
2223
2223
|
}
|
|
2224
2224
|
}
|
|
@@ -2229,7 +2229,7 @@ function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
|
2229
2229
|
}
|
|
2230
2230
|
}
|
|
2231
2231
|
function updateSendersCounterIfLower($this, value) {
|
|
2232
|
-
var this_0 = $this.
|
|
2232
|
+
var this_0 = $this.v19_1;
|
|
2233
2233
|
while (true) {
|
|
2234
2234
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2235
2235
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
@@ -2239,18 +2239,18 @@ function updateSendersCounterIfLower($this, value) {
|
|
|
2239
2239
|
// Inline function 'kotlinx.coroutines.channels.sendersCloseStatus' call
|
|
2240
2240
|
var tmp$ret$1 = convertToInt(shiftRight(cur, 60));
|
|
2241
2241
|
var update = constructSendersAndCloseStatus(curCounter, tmp$ret$1);
|
|
2242
|
-
if ($this.
|
|
2242
|
+
if ($this.v19_1.atomicfu$compareAndSet(cur, update))
|
|
2243
2243
|
return Unit_instance;
|
|
2244
2244
|
}
|
|
2245
2245
|
return Unit_instance;
|
|
2246
2246
|
}
|
|
2247
2247
|
function updateReceiversCounterIfLower($this, value) {
|
|
2248
|
-
var this_0 = $this.
|
|
2248
|
+
var this_0 = $this.w19_1;
|
|
2249
2249
|
while (true) {
|
|
2250
2250
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2251
2251
|
if (compare(cur, value) >= 0)
|
|
2252
2252
|
return Unit_instance;
|
|
2253
|
-
if ($this.
|
|
2253
|
+
if ($this.w19_1.atomicfu$compareAndSet(cur, value))
|
|
2254
2254
|
return Unit_instance;
|
|
2255
2255
|
}
|
|
2256
2256
|
return Unit_instance;
|
|
@@ -2259,7 +2259,7 @@ function bindCancellationFunResult($this, _this__u8e3s4) {
|
|
|
2259
2259
|
return BufferedChannel$onCancellationChannelResultImplDoNotCall$ref($this);
|
|
2260
2260
|
}
|
|
2261
2261
|
function onCancellationChannelResultImplDoNotCall($this, cause, element, context) {
|
|
2262
|
-
callUndeliveredElement(ensureNotNull($this.
|
|
2262
|
+
callUndeliveredElement(ensureNotNull($this.u19_1), ensureNotNull(ChannelResult__getOrNull_impl_f5e07h(element)), context);
|
|
2263
2263
|
}
|
|
2264
2264
|
function bindCancellationFun($this, _this__u8e3s4, element) {
|
|
2265
2265
|
return BufferedChannel$bindCancellationFun$lambda(_this__u8e3s4, element);
|
|
@@ -2268,13 +2268,13 @@ function bindCancellationFun_0($this, _this__u8e3s4) {
|
|
|
2268
2268
|
return BufferedChannel$onCancellationImplDoNotCall$ref($this);
|
|
2269
2269
|
}
|
|
2270
2270
|
function onCancellationImplDoNotCall($this, cause, element, context) {
|
|
2271
|
-
callUndeliveredElement(ensureNotNull($this.
|
|
2271
|
+
callUndeliveredElement(ensureNotNull($this.u19_1), element, context);
|
|
2272
2272
|
}
|
|
2273
2273
|
function BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lambda$lambda($element, this$0, $select) {
|
|
2274
2274
|
return (_unused_var__etf5q3, _unused_var__etf5q3_0, _unused_var__etf5q3_1) => {
|
|
2275
2275
|
var tmp;
|
|
2276
2276
|
if (!($element === get_CHANNEL_CLOSED())) {
|
|
2277
|
-
callUndeliveredElement(this$0.
|
|
2277
|
+
callUndeliveredElement(this$0.u19_1, ($element == null ? true : !($element == null)) ? $element : THROW_CCE(), $select.bd());
|
|
2278
2278
|
tmp = Unit_instance;
|
|
2279
2279
|
}
|
|
2280
2280
|
return Unit_instance;
|
|
@@ -2286,7 +2286,7 @@ function BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lamb
|
|
|
2286
2286
|
function BufferedChannel$onCancellationChannelResultImplDoNotCall$ref(p0) {
|
|
2287
2287
|
var l = (_this__u8e3s4, p0_0, p1) => {
|
|
2288
2288
|
var tmp0 = p0;
|
|
2289
|
-
onCancellationChannelResultImplDoNotCall(tmp0, _this__u8e3s4, p0_0.
|
|
2289
|
+
onCancellationChannelResultImplDoNotCall(tmp0, _this__u8e3s4, p0_0.b1c_1, p1);
|
|
2290
2290
|
return Unit_instance;
|
|
2291
2291
|
};
|
|
2292
2292
|
l.callableName = 'onCancellationChannelResultImplDoNotCall';
|
|
@@ -2313,20 +2313,20 @@ function BufferedChannel() {
|
|
|
2313
2313
|
class $ {
|
|
2314
2314
|
constructor(capacity, onUndeliveredElement) {
|
|
2315
2315
|
onUndeliveredElement = onUndeliveredElement === VOID ? null : onUndeliveredElement;
|
|
2316
|
-
this.
|
|
2317
|
-
this.
|
|
2316
|
+
this.t19_1 = capacity;
|
|
2317
|
+
this.u19_1 = onUndeliveredElement;
|
|
2318
2318
|
// Inline function 'kotlin.require' call
|
|
2319
|
-
if (!(this.
|
|
2320
|
-
var message = 'Invalid channel capacity: ' + this.
|
|
2319
|
+
if (!(this.t19_1 >= 0)) {
|
|
2320
|
+
var message = 'Invalid channel capacity: ' + this.t19_1 + ', should be >=0';
|
|
2321
2321
|
throw IllegalArgumentException().r2(toString_0(message));
|
|
2322
2322
|
}
|
|
2323
|
-
this.u19_1 = atomic$long$1(new (Long())(0, 0));
|
|
2324
2323
|
this.v19_1 = atomic$long$1(new (Long())(0, 0));
|
|
2325
|
-
this.w19_1 = atomic$long$1(
|
|
2326
|
-
this.x19_1 = atomic$long$1(
|
|
2324
|
+
this.w19_1 = atomic$long$1(new (Long())(0, 0));
|
|
2325
|
+
this.x19_1 = atomic$long$1(initialBufferEnd(this.t19_1));
|
|
2326
|
+
this.y19_1 = atomic$long$1(_get_bufferEndCounter__2d4hee(this));
|
|
2327
2327
|
var firstSegment = new (ChannelSegment())(new (Long())(0, 0), null, this, 3);
|
|
2328
|
-
this.y19_1 = atomic$ref$1(firstSegment);
|
|
2329
2328
|
this.z19_1 = atomic$ref$1(firstSegment);
|
|
2329
|
+
this.a1a_1 = atomic$ref$1(firstSegment);
|
|
2330
2330
|
var tmp = this;
|
|
2331
2331
|
var tmp_0;
|
|
2332
2332
|
if (_get_isRendezvousOrUnlimited__3mdufi(this)) {
|
|
@@ -2335,40 +2335,40 @@ function BufferedChannel() {
|
|
|
2335
2335
|
} else {
|
|
2336
2336
|
tmp_0 = firstSegment;
|
|
2337
2337
|
}
|
|
2338
|
-
tmp.
|
|
2338
|
+
tmp.b1a_1 = atomic$ref$1(tmp_0);
|
|
2339
2339
|
var tmp_2 = this;
|
|
2340
2340
|
var tmp_3;
|
|
2341
|
-
if (this.
|
|
2341
|
+
if (this.u19_1 == null) {
|
|
2342
2342
|
tmp_3 = null;
|
|
2343
2343
|
} else {
|
|
2344
2344
|
// Inline function 'kotlin.let' call
|
|
2345
2345
|
tmp_3 = BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lambda(this);
|
|
2346
2346
|
}
|
|
2347
|
-
tmp_2.
|
|
2348
|
-
this.
|
|
2349
|
-
this.
|
|
2347
|
+
tmp_2.c1a_1 = tmp_3;
|
|
2348
|
+
this.d1a_1 = atomic$ref$1(get_NO_CLOSE_CAUSE());
|
|
2349
|
+
this.e1a_1 = atomic$ref$1(null);
|
|
2350
2350
|
}
|
|
2351
|
-
|
|
2351
|
+
x1a() {
|
|
2352
2352
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
2353
|
-
var this_0 = this.
|
|
2353
|
+
var this_0 = this.v19_1.kotlinx$atomicfu$value;
|
|
2354
2354
|
return bitwiseAnd(this_0, new (Long())(-1, 268435455));
|
|
2355
2355
|
}
|
|
2356
|
-
|
|
2357
|
-
return this.
|
|
2356
|
+
z1a() {
|
|
2357
|
+
return this.w19_1.kotlinx$atomicfu$value;
|
|
2358
2358
|
}
|
|
2359
|
-
|
|
2359
|
+
c1c(element, $completion) {
|
|
2360
2360
|
return suspendOrReturn(/*#__NOINLINE__*/_generator_send__qhx0g0.bind(VOID, this, element), $completion);
|
|
2361
2361
|
}
|
|
2362
|
-
|
|
2363
|
-
if (shouldSendSuspend0(this, this.
|
|
2364
|
-
return Companion_getInstance().
|
|
2362
|
+
d1c(element) {
|
|
2363
|
+
if (shouldSendSuspend0(this, this.v19_1.kotlinx$atomicfu$value))
|
|
2364
|
+
return Companion_getInstance().e1c();
|
|
2365
2365
|
var tmp4 = get_INTERRUPTED_SEND();
|
|
2366
2366
|
var tmp$ret$4;
|
|
2367
2367
|
$l$block_4: {
|
|
2368
2368
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
2369
|
-
var segment = this.
|
|
2369
|
+
var segment = this.z19_1.kotlinx$atomicfu$value;
|
|
2370
2370
|
$l$loop_0: while (true) {
|
|
2371
|
-
var sendersAndCloseStatusCur = this.
|
|
2371
|
+
var sendersAndCloseStatusCur = this.v19_1.atomicfu$getAndIncrement$long();
|
|
2372
2372
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
2373
2373
|
var s = bitwiseAnd(sendersAndCloseStatusCur, new (Long())(-1, 268435455));
|
|
2374
2374
|
var closed = _get_isClosedForSend0__kxgf9m(this, sendersAndCloseStatusCur);
|
|
@@ -2379,13 +2379,13 @@ function BufferedChannel() {
|
|
|
2379
2379
|
var other_0 = get_SEGMENT_SIZE();
|
|
2380
2380
|
var tmp$ret$2 = modulo(s, fromInt(other_0));
|
|
2381
2381
|
var i = convertToInt(tmp$ret$2);
|
|
2382
|
-
if (!equalsLong(segment.
|
|
2382
|
+
if (!equalsLong(segment.u11_1, id)) {
|
|
2383
2383
|
var tmp0_elvis_lhs = findSegmentSend(this, id, segment);
|
|
2384
2384
|
var tmp;
|
|
2385
2385
|
if (tmp0_elvis_lhs == null) {
|
|
2386
2386
|
var tmp_0;
|
|
2387
2387
|
if (closed) {
|
|
2388
|
-
tmp$ret$4 = Companion_getInstance().
|
|
2388
|
+
tmp$ret$4 = Companion_getInstance().y1b(this.a1b());
|
|
2389
2389
|
break $l$block_4;
|
|
2390
2390
|
} else {
|
|
2391
2391
|
continue $l$loop_0;
|
|
@@ -2397,16 +2397,16 @@ function BufferedChannel() {
|
|
|
2397
2397
|
}
|
|
2398
2398
|
switch (updateCellSend(this, segment, i, element, s, tmp4, closed)) {
|
|
2399
2399
|
case 0:
|
|
2400
|
-
segment.
|
|
2401
|
-
tmp$ret$4 = Companion_getInstance().
|
|
2400
|
+
segment.r1a();
|
|
2401
|
+
tmp$ret$4 = Companion_getInstance().f1b(Unit_instance);
|
|
2402
2402
|
break $l$block_4;
|
|
2403
2403
|
case 1:
|
|
2404
|
-
tmp$ret$4 = Companion_getInstance().
|
|
2404
|
+
tmp$ret$4 = Companion_getInstance().f1b(Unit_instance);
|
|
2405
2405
|
break $l$block_4;
|
|
2406
2406
|
case 2:
|
|
2407
2407
|
if (closed) {
|
|
2408
|
-
segment.
|
|
2409
|
-
tmp$ret$4 = Companion_getInstance().
|
|
2408
|
+
segment.h1a();
|
|
2409
|
+
tmp$ret$4 = Companion_getInstance().y1b(this.a1b());
|
|
2410
2410
|
break $l$block_4;
|
|
2411
2411
|
}
|
|
2412
2412
|
|
|
@@ -2417,18 +2417,18 @@ function BufferedChannel() {
|
|
|
2417
2417
|
prepareSenderForSuspension(this, tmp2_safe_receiver, segment, i);
|
|
2418
2418
|
}
|
|
2419
2419
|
|
|
2420
|
-
segment.
|
|
2421
|
-
tmp$ret$4 = Companion_getInstance().
|
|
2420
|
+
segment.h1a();
|
|
2421
|
+
tmp$ret$4 = Companion_getInstance().e1c();
|
|
2422
2422
|
break $l$block_4;
|
|
2423
2423
|
case 4:
|
|
2424
|
-
if (compare(s, this.
|
|
2425
|
-
segment.
|
|
2424
|
+
if (compare(s, this.z1a()) < 0) {
|
|
2425
|
+
segment.r1a();
|
|
2426
2426
|
}
|
|
2427
2427
|
|
|
2428
|
-
tmp$ret$4 = Companion_getInstance().
|
|
2428
|
+
tmp$ret$4 = Companion_getInstance().y1b(this.a1b());
|
|
2429
2429
|
break $l$block_4;
|
|
2430
2430
|
case 5:
|
|
2431
|
-
segment.
|
|
2431
|
+
segment.r1a();
|
|
2432
2432
|
continue $l$loop_0;
|
|
2433
2433
|
case 3:
|
|
2434
2434
|
var message = 'unexpected';
|
|
@@ -2438,13 +2438,13 @@ function BufferedChannel() {
|
|
|
2438
2438
|
}
|
|
2439
2439
|
return tmp$ret$4;
|
|
2440
2440
|
}
|
|
2441
|
-
|
|
2441
|
+
f1c(element) {
|
|
2442
2442
|
var tmp$ret$3;
|
|
2443
2443
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
2444
2444
|
var waiter = get_BUFFERED();
|
|
2445
|
-
var segment = this.
|
|
2445
|
+
var segment = this.z19_1.kotlinx$atomicfu$value;
|
|
2446
2446
|
$l$loop_0: while (true) {
|
|
2447
|
-
var sendersAndCloseStatusCur = this.
|
|
2447
|
+
var sendersAndCloseStatusCur = this.v19_1.atomicfu$getAndIncrement$long();
|
|
2448
2448
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
2449
2449
|
var s = bitwiseAnd(sendersAndCloseStatusCur, new (Long())(-1, 268435455));
|
|
2450
2450
|
var closed = _get_isClosedForSend0__kxgf9m(this, sendersAndCloseStatusCur);
|
|
@@ -2455,13 +2455,13 @@ function BufferedChannel() {
|
|
|
2455
2455
|
var other_0 = get_SEGMENT_SIZE();
|
|
2456
2456
|
var tmp$ret$2 = modulo(s, fromInt(other_0));
|
|
2457
2457
|
var i = convertToInt(tmp$ret$2);
|
|
2458
|
-
if (!equalsLong(segment.
|
|
2458
|
+
if (!equalsLong(segment.u11_1, id)) {
|
|
2459
2459
|
var tmp0_elvis_lhs = findSegmentSend(this, id, segment);
|
|
2460
2460
|
var tmp;
|
|
2461
2461
|
if (tmp0_elvis_lhs == null) {
|
|
2462
2462
|
var tmp_0;
|
|
2463
2463
|
if (closed) {
|
|
2464
|
-
return Companion_getInstance().
|
|
2464
|
+
return Companion_getInstance().y1b(this.a1b());
|
|
2465
2465
|
} else {
|
|
2466
2466
|
continue $l$loop_0;
|
|
2467
2467
|
}
|
|
@@ -2472,14 +2472,14 @@ function BufferedChannel() {
|
|
|
2472
2472
|
}
|
|
2473
2473
|
switch (updateCellSend(this, segment, i, element, s, waiter, closed)) {
|
|
2474
2474
|
case 0:
|
|
2475
|
-
segment.
|
|
2476
|
-
return Companion_getInstance().
|
|
2475
|
+
segment.r1a();
|
|
2476
|
+
return Companion_getInstance().f1b(Unit_instance);
|
|
2477
2477
|
case 1:
|
|
2478
|
-
return Companion_getInstance().
|
|
2478
|
+
return Companion_getInstance().f1b(Unit_instance);
|
|
2479
2479
|
case 2:
|
|
2480
2480
|
if (closed) {
|
|
2481
|
-
segment.
|
|
2482
|
-
return Companion_getInstance().
|
|
2481
|
+
segment.h1a();
|
|
2482
|
+
return Companion_getInstance().y1b(this.a1b());
|
|
2483
2483
|
}
|
|
2484
2484
|
|
|
2485
2485
|
var tmp2_safe_receiver = (!(waiter == null) ? isInterface(waiter, Waiter()) : false) ? waiter : null;
|
|
@@ -2489,7 +2489,7 @@ function BufferedChannel() {
|
|
|
2489
2489
|
prepareSenderForSuspension(this, tmp2_safe_receiver, segment, i);
|
|
2490
2490
|
}
|
|
2491
2491
|
|
|
2492
|
-
var tmp0 = segment.
|
|
2492
|
+
var tmp0 = segment.u11_1;
|
|
2493
2493
|
// Inline function 'kotlin.Long.times' call
|
|
2494
2494
|
|
|
2495
2495
|
var other_1 = get_SEGMENT_SIZE();
|
|
@@ -2497,16 +2497,16 @@ function BufferedChannel() {
|
|
|
2497
2497
|
|
|
2498
2498
|
var this_0 = multiply(tmp0, fromInt(other_1));
|
|
2499
2499
|
var tmp$ret$5 = add(this_0, fromInt(i));
|
|
2500
|
-
this.
|
|
2501
|
-
return Companion_getInstance().
|
|
2500
|
+
this.w1b(tmp$ret$5);
|
|
2501
|
+
return Companion_getInstance().f1b(Unit_instance);
|
|
2502
2502
|
case 4:
|
|
2503
|
-
if (compare(s, this.
|
|
2504
|
-
segment.
|
|
2503
|
+
if (compare(s, this.z1a()) < 0) {
|
|
2504
|
+
segment.r1a();
|
|
2505
2505
|
}
|
|
2506
2506
|
|
|
2507
|
-
return Companion_getInstance().
|
|
2507
|
+
return Companion_getInstance().y1b(this.a1b());
|
|
2508
2508
|
case 5:
|
|
2509
|
-
segment.
|
|
2509
|
+
segment.r1a();
|
|
2510
2510
|
continue $l$loop_0;
|
|
2511
2511
|
case 3:
|
|
2512
2512
|
var message = 'unexpected';
|
|
@@ -2515,20 +2515,20 @@ function BufferedChannel() {
|
|
|
2515
2515
|
}
|
|
2516
2516
|
return tmp$ret$3;
|
|
2517
2517
|
}
|
|
2518
|
-
|
|
2518
|
+
i1b() {
|
|
2519
2519
|
}
|
|
2520
|
-
|
|
2520
|
+
b1b() {
|
|
2521
2521
|
}
|
|
2522
|
-
|
|
2522
|
+
g1c($completion) {
|
|
2523
2523
|
return suspendOrReturn(/*#__NOINLINE__*/_generator_receive__aoggq9.bind(VOID, this), $completion);
|
|
2524
2524
|
}
|
|
2525
|
-
|
|
2525
|
+
w1b(globalCellIndex) {
|
|
2526
2526
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
2527
|
-
var segment = this.
|
|
2527
|
+
var segment = this.a1a_1.kotlinx$atomicfu$value;
|
|
2528
2528
|
$l$loop_0: while (true) {
|
|
2529
|
-
var r = this.
|
|
2529
|
+
var r = this.w19_1.kotlinx$atomicfu$value;
|
|
2530
2530
|
// Inline function 'kotlin.Long.plus' call
|
|
2531
|
-
var other = this.
|
|
2531
|
+
var other = this.t19_1;
|
|
2532
2532
|
var tmp0 = add(r, fromInt(other));
|
|
2533
2533
|
// Inline function 'kotlin.math.max' call
|
|
2534
2534
|
var b = _get_bufferEndCounter__2d4hee(this);
|
|
@@ -2537,7 +2537,7 @@ function BufferedChannel() {
|
|
|
2537
2537
|
return Unit_instance;
|
|
2538
2538
|
// Inline function 'kotlin.Long.plus' call
|
|
2539
2539
|
var tmp$ret$3 = add(r, fromInt(1));
|
|
2540
|
-
if (!this.
|
|
2540
|
+
if (!this.w19_1.atomicfu$compareAndSet(r, tmp$ret$3))
|
|
2541
2541
|
continue $l$loop_0;
|
|
2542
2542
|
// Inline function 'kotlin.Long.div' call
|
|
2543
2543
|
var other_0 = get_SEGMENT_SIZE();
|
|
@@ -2546,7 +2546,7 @@ function BufferedChannel() {
|
|
|
2546
2546
|
var other_1 = get_SEGMENT_SIZE();
|
|
2547
2547
|
var tmp$ret$5 = modulo(r, fromInt(other_1));
|
|
2548
2548
|
var i = convertToInt(tmp$ret$5);
|
|
2549
|
-
if (!equalsLong(segment.
|
|
2549
|
+
if (!equalsLong(segment.u11_1, id)) {
|
|
2550
2550
|
var tmp0_elvis_lhs = findSegmentReceive(this, id, segment);
|
|
2551
2551
|
var tmp;
|
|
2552
2552
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -2558,12 +2558,12 @@ function BufferedChannel() {
|
|
|
2558
2558
|
}
|
|
2559
2559
|
var updCellResult = updateCellReceive(this, segment, i, r, null);
|
|
2560
2560
|
if (updCellResult === get_FAILED()) {
|
|
2561
|
-
if (compare(r, this.
|
|
2562
|
-
segment.
|
|
2561
|
+
if (compare(r, this.x1a()) < 0) {
|
|
2562
|
+
segment.r1a();
|
|
2563
2563
|
}
|
|
2564
2564
|
} else {
|
|
2565
|
-
segment.
|
|
2566
|
-
var tmp1_safe_receiver = this.
|
|
2565
|
+
segment.r1a();
|
|
2566
|
+
var tmp1_safe_receiver = this.u19_1;
|
|
2567
2567
|
var tmp_0;
|
|
2568
2568
|
if (tmp1_safe_receiver == null) {
|
|
2569
2569
|
tmp_0 = null;
|
|
@@ -2580,7 +2580,7 @@ function BufferedChannel() {
|
|
|
2580
2580
|
}
|
|
2581
2581
|
}
|
|
2582
2582
|
}
|
|
2583
|
-
|
|
2583
|
+
g1a(globalIndex) {
|
|
2584
2584
|
if (_get_isRendezvousOrUnlimited__3mdufi(this))
|
|
2585
2585
|
return Unit_instance;
|
|
2586
2586
|
while (compare(_get_bufferEndCounter__2d4hee(this), globalIndex) <= 0) {
|
|
@@ -2594,13 +2594,13 @@ function BufferedChannel() {
|
|
|
2594
2594
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2595
2595
|
var b = _get_bufferEndCounter__2d4hee(this);
|
|
2596
2596
|
// Inline function 'kotlinx.coroutines.channels.ebCompletedCounter' call
|
|
2597
|
-
var this_0 = this.
|
|
2597
|
+
var this_0 = this.y19_1.kotlinx$atomicfu$value;
|
|
2598
2598
|
var ebCompleted = bitwiseAnd(this_0, new (Long())(-1, 1073741823));
|
|
2599
2599
|
if (equalsLong(b, ebCompleted) && equalsLong(b, _get_bufferEndCounter__2d4hee(this)))
|
|
2600
2600
|
return Unit_instance;
|
|
2601
2601
|
}
|
|
2602
2602
|
while (inductionVariable < times);
|
|
2603
|
-
var tmp0 = this.
|
|
2603
|
+
var tmp0 = this.y19_1;
|
|
2604
2604
|
$l$block: {
|
|
2605
2605
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
2606
2606
|
while (true) {
|
|
@@ -2615,13 +2615,13 @@ function BufferedChannel() {
|
|
|
2615
2615
|
}
|
|
2616
2616
|
while (true) {
|
|
2617
2617
|
var b_0 = _get_bufferEndCounter__2d4hee(this);
|
|
2618
|
-
var ebCompletedAndBit = this.
|
|
2618
|
+
var ebCompletedAndBit = this.y19_1.kotlinx$atomicfu$value;
|
|
2619
2619
|
// Inline function 'kotlinx.coroutines.channels.ebCompletedCounter' call
|
|
2620
2620
|
var ebCompleted_0 = bitwiseAnd(ebCompletedAndBit, new (Long())(-1, 1073741823));
|
|
2621
2621
|
// Inline function 'kotlinx.coroutines.channels.ebPauseExpandBuffers' call
|
|
2622
2622
|
var pauseExpandBuffers = !equalsLong(bitwiseAnd(ebCompletedAndBit, new (Long())(0, 1073741824)), new (Long())(0, 0));
|
|
2623
2623
|
if (equalsLong(b_0, ebCompleted_0) && equalsLong(b_0, _get_bufferEndCounter__2d4hee(this))) {
|
|
2624
|
-
var tmp0_0 = this.
|
|
2624
|
+
var tmp0_0 = this.y19_1;
|
|
2625
2625
|
$l$block_0: {
|
|
2626
2626
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
2627
2627
|
while (true) {
|
|
@@ -2637,37 +2637,37 @@ function BufferedChannel() {
|
|
|
2637
2637
|
return Unit_instance;
|
|
2638
2638
|
}
|
|
2639
2639
|
if (!pauseExpandBuffers) {
|
|
2640
|
-
this.
|
|
2640
|
+
this.y19_1.atomicfu$compareAndSet(ebCompletedAndBit, constructEBCompletedAndPauseFlag(ebCompleted_0, true));
|
|
2641
2641
|
}
|
|
2642
2642
|
}
|
|
2643
2643
|
}
|
|
2644
2644
|
q1() {
|
|
2645
2645
|
return new (BufferedChannelIterator())(this);
|
|
2646
2646
|
}
|
|
2647
|
-
|
|
2648
|
-
var tmp = this.
|
|
2647
|
+
y1a() {
|
|
2648
|
+
var tmp = this.d1a_1.kotlinx$atomicfu$value;
|
|
2649
2649
|
return (tmp == null ? true : tmp instanceof Error) ? tmp : THROW_CCE();
|
|
2650
2650
|
}
|
|
2651
|
-
|
|
2652
|
-
var tmp0_elvis_lhs = this.
|
|
2653
|
-
return tmp0_elvis_lhs == null ? ClosedSendChannelException().
|
|
2651
|
+
a1b() {
|
|
2652
|
+
var tmp0_elvis_lhs = this.y1a();
|
|
2653
|
+
return tmp0_elvis_lhs == null ? ClosedSendChannelException().l1c('Channel was closed') : tmp0_elvis_lhs;
|
|
2654
2654
|
}
|
|
2655
|
-
|
|
2655
|
+
m1c() {
|
|
2656
2656
|
}
|
|
2657
|
-
|
|
2658
|
-
return this.
|
|
2657
|
+
n1c(cause) {
|
|
2658
|
+
return this.o1c(cause, false);
|
|
2659
2659
|
}
|
|
2660
|
-
|
|
2661
|
-
this.
|
|
2660
|
+
tx(cause) {
|
|
2661
|
+
this.q1c(cause);
|
|
2662
2662
|
}
|
|
2663
|
-
|
|
2664
|
-
return this.
|
|
2663
|
+
q1c(cause) {
|
|
2664
|
+
return this.o1c(cause == null ? CancellationException().n('Channel was cancelled') : cause, true);
|
|
2665
2665
|
}
|
|
2666
|
-
|
|
2666
|
+
o1c(cause, cancel) {
|
|
2667
2667
|
if (cancel) {
|
|
2668
2668
|
markCancellationStarted(this);
|
|
2669
2669
|
}
|
|
2670
|
-
var closedByThisOperation = this.
|
|
2670
|
+
var closedByThisOperation = this.d1a_1.atomicfu$compareAndSet(get_NO_CLOSE_CAUSE(), cause);
|
|
2671
2671
|
if (cancel) {
|
|
2672
2672
|
markCancelled(this);
|
|
2673
2673
|
} else {
|
|
@@ -2675,37 +2675,37 @@ function BufferedChannel() {
|
|
|
2675
2675
|
}
|
|
2676
2676
|
completeCloseOrCancel(this);
|
|
2677
2677
|
// Inline function 'kotlin.also' call
|
|
2678
|
-
this.
|
|
2678
|
+
this.m1c();
|
|
2679
2679
|
if (closedByThisOperation) {
|
|
2680
2680
|
invokeCloseHandler(this);
|
|
2681
2681
|
}
|
|
2682
2682
|
return closedByThisOperation;
|
|
2683
2683
|
}
|
|
2684
|
-
|
|
2684
|
+
x1b() {
|
|
2685
2685
|
return false;
|
|
2686
2686
|
}
|
|
2687
|
-
|
|
2688
|
-
return _get_isClosedForSend0__kxgf9m(this, this.
|
|
2687
|
+
v1b() {
|
|
2688
|
+
return _get_isClosedForSend0__kxgf9m(this, this.v19_1.kotlinx$atomicfu$value);
|
|
2689
2689
|
}
|
|
2690
|
-
|
|
2691
|
-
return _get_isClosedForReceive0__f7qknl(this, this.
|
|
2690
|
+
w1a() {
|
|
2691
|
+
return _get_isClosedForReceive0__f7qknl(this, this.v19_1.kotlinx$atomicfu$value);
|
|
2692
2692
|
}
|
|
2693
|
-
|
|
2693
|
+
z1b() {
|
|
2694
2694
|
$l$loop: while (true) {
|
|
2695
|
-
var segment = this.
|
|
2696
|
-
var r = this.
|
|
2697
|
-
var s = this.
|
|
2695
|
+
var segment = this.a1a_1.kotlinx$atomicfu$value;
|
|
2696
|
+
var r = this.z1a();
|
|
2697
|
+
var s = this.x1a();
|
|
2698
2698
|
if (compare(s, r) <= 0)
|
|
2699
2699
|
return false;
|
|
2700
2700
|
// Inline function 'kotlin.Long.div' call
|
|
2701
2701
|
var other = get_SEGMENT_SIZE();
|
|
2702
2702
|
var id = divide(r, fromInt(other));
|
|
2703
|
-
if (!equalsLong(segment.
|
|
2703
|
+
if (!equalsLong(segment.u11_1, id)) {
|
|
2704
2704
|
var tmp0_elvis_lhs = findSegmentReceive(this, id, segment);
|
|
2705
2705
|
var tmp;
|
|
2706
2706
|
if (tmp0_elvis_lhs == null) {
|
|
2707
2707
|
var tmp_0;
|
|
2708
|
-
if (compare(this.
|
|
2708
|
+
if (compare(this.a1a_1.kotlinx$atomicfu$value.u11_1, id) < 0) {
|
|
2709
2709
|
return false;
|
|
2710
2710
|
} else {
|
|
2711
2711
|
continue $l$loop;
|
|
@@ -2715,7 +2715,7 @@ function BufferedChannel() {
|
|
|
2715
2715
|
}
|
|
2716
2716
|
segment = tmp;
|
|
2717
2717
|
}
|
|
2718
|
-
segment.
|
|
2718
|
+
segment.r1a();
|
|
2719
2719
|
// Inline function 'kotlin.Long.rem' call
|
|
2720
2720
|
var other_0 = get_SEGMENT_SIZE();
|
|
2721
2721
|
var tmp$ret$1 = modulo(r, fromInt(other_0));
|
|
@@ -2724,23 +2724,23 @@ function BufferedChannel() {
|
|
|
2724
2724
|
return true;
|
|
2725
2725
|
// Inline function 'kotlin.Long.plus' call
|
|
2726
2726
|
var tmp$ret$2 = add(r, fromInt(1));
|
|
2727
|
-
this.
|
|
2727
|
+
this.w19_1.atomicfu$compareAndSet(r, tmp$ret$2);
|
|
2728
2728
|
}
|
|
2729
2729
|
}
|
|
2730
2730
|
toString() {
|
|
2731
2731
|
var sb = StringBuilder().m1();
|
|
2732
2732
|
// Inline function 'kotlinx.coroutines.channels.sendersCloseStatus' call
|
|
2733
|
-
var this_0 = this.
|
|
2733
|
+
var this_0 = this.v19_1.kotlinx$atomicfu$value;
|
|
2734
2734
|
var tmp0_subject = convertToInt(shiftRight(this_0, 60));
|
|
2735
2735
|
if (tmp0_subject === 2) {
|
|
2736
2736
|
sb.n1('closed,');
|
|
2737
2737
|
} else if (tmp0_subject === 3) {
|
|
2738
2738
|
sb.n1('cancelled,');
|
|
2739
2739
|
}
|
|
2740
|
-
sb.n1('capacity=' + this.
|
|
2740
|
+
sb.n1('capacity=' + this.t19_1 + ',');
|
|
2741
2741
|
sb.n1('data=[');
|
|
2742
2742
|
// Inline function 'kotlin.collections.filter' call
|
|
2743
|
-
var tmp0 = listOf([this.
|
|
2743
|
+
var tmp0 = listOf([this.a1a_1.kotlinx$atomicfu$value, this.z19_1.kotlinx$atomicfu$value, this.b1a_1.kotlinx$atomicfu$value]);
|
|
2744
2744
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2745
2745
|
var destination = ArrayList().n2();
|
|
2746
2746
|
var _iterator__ex2g4s = tmp0.q1();
|
|
@@ -2761,10 +2761,10 @@ function BufferedChannel() {
|
|
|
2761
2761
|
tmp$ret$4 = minElem;
|
|
2762
2762
|
break $l$block;
|
|
2763
2763
|
}
|
|
2764
|
-
var minValue = minElem.
|
|
2764
|
+
var minValue = minElem.u11_1;
|
|
2765
2765
|
do {
|
|
2766
2766
|
var e = iterator.s1();
|
|
2767
|
-
var v = e.
|
|
2767
|
+
var v = e.u11_1;
|
|
2768
2768
|
if (compareTo(minValue, v) > 0) {
|
|
2769
2769
|
minElem = e;
|
|
2770
2770
|
minValue = v;
|
|
@@ -2774,8 +2774,8 @@ function BufferedChannel() {
|
|
|
2774
2774
|
tmp$ret$4 = minElem;
|
|
2775
2775
|
}
|
|
2776
2776
|
var firstSegment = tmp$ret$4;
|
|
2777
|
-
var r = this.
|
|
2778
|
-
var s = this.
|
|
2777
|
+
var r = this.z1a();
|
|
2778
|
+
var s = this.x1a();
|
|
2779
2779
|
var segment = firstSegment;
|
|
2780
2780
|
append_elements: while (true) {
|
|
2781
2781
|
var inductionVariable = 0;
|
|
@@ -2784,7 +2784,7 @@ function BufferedChannel() {
|
|
|
2784
2784
|
process_cell: do {
|
|
2785
2785
|
var i = inductionVariable;
|
|
2786
2786
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2787
|
-
var tmp0_0 = segment.
|
|
2787
|
+
var tmp0_0 = segment.u11_1;
|
|
2788
2788
|
// Inline function 'kotlin.Long.times' call
|
|
2789
2789
|
var other = get_SEGMENT_SIZE();
|
|
2790
2790
|
// Inline function 'kotlin.Long.plus' call
|
|
@@ -2792,8 +2792,8 @@ function BufferedChannel() {
|
|
|
2792
2792
|
var globalCellIndex = add(this_1, fromInt(i));
|
|
2793
2793
|
if (compare(globalCellIndex, s) >= 0 && compare(globalCellIndex, r) >= 0)
|
|
2794
2794
|
break append_elements;
|
|
2795
|
-
var cellState = segment.
|
|
2796
|
-
var element_0 = segment.
|
|
2795
|
+
var cellState = segment.p19(i);
|
|
2796
|
+
var element_0 = segment.m19(i);
|
|
2797
2797
|
var tmp;
|
|
2798
2798
|
if (!(cellState == null) ? isInterface(cellState, CancellableContinuation()) : false) {
|
|
2799
2799
|
tmp = compare(globalCellIndex, r) < 0 && compare(globalCellIndex, s) >= 0 ? 'receive' : compare(globalCellIndex, s) < 0 && compare(globalCellIndex, r) >= 0 ? 'send' : 'cont';
|
|
@@ -2832,7 +2832,7 @@ function BufferedChannel() {
|
|
|
2832
2832
|
}
|
|
2833
2833
|
}
|
|
2834
2834
|
while (inductionVariable < last_0);
|
|
2835
|
-
var tmp2_elvis_lhs = segment.
|
|
2835
|
+
var tmp2_elvis_lhs = segment.n1a();
|
|
2836
2836
|
var tmp_0;
|
|
2837
2837
|
if (tmp2_elvis_lhs == null) {
|
|
2838
2838
|
break append_elements;
|
|
@@ -2848,9 +2848,9 @@ function BufferedChannel() {
|
|
|
2848
2848
|
return sb.toString();
|
|
2849
2849
|
}
|
|
2850
2850
|
}
|
|
2851
|
-
protoOf($).
|
|
2852
|
-
protoOf($).
|
|
2853
|
-
initMetadataForClass($, 'BufferedChannel', VOID, VOID, [
|
|
2851
|
+
protoOf($).p1c = close$default;
|
|
2852
|
+
protoOf($).r1c = cancel$default;
|
|
2853
|
+
initMetadataForClass($, 'BufferedChannel', VOID, VOID, [ReceiveChannel(), SendChannel()], [1, 4, 0, 3]);
|
|
2854
2854
|
BufferedChannelClass = $;
|
|
2855
2855
|
}
|
|
2856
2856
|
return BufferedChannelClass;
|
|
@@ -2860,10 +2860,10 @@ function WaiterEB() {
|
|
|
2860
2860
|
if (WaiterEBClass === VOID) {
|
|
2861
2861
|
class $ {
|
|
2862
2862
|
constructor(waiter) {
|
|
2863
|
-
this.
|
|
2863
|
+
this.c1b_1 = waiter;
|
|
2864
2864
|
}
|
|
2865
2865
|
toString() {
|
|
2866
|
-
return 'WaiterEB(' + toString_0(this.
|
|
2866
|
+
return 'WaiterEB(' + toString_0(this.c1b_1) + ')';
|
|
2867
2867
|
}
|
|
2868
2868
|
}
|
|
2869
2869
|
initMetadataForClass($, 'WaiterEB');
|
|
@@ -2895,10 +2895,10 @@ function tryResume0(_this__u8e3s4, value, onCancellation) {
|
|
|
2895
2895
|
onCancellation = onCancellation === VOID ? null : onCancellation;
|
|
2896
2896
|
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
2897
2897
|
// Inline function 'kotlin.let' call
|
|
2898
|
-
var token = _this__u8e3s4.
|
|
2898
|
+
var token = _this__u8e3s4.b11(value, null, onCancellation);
|
|
2899
2899
|
var tmp;
|
|
2900
2900
|
if (!(token == null)) {
|
|
2901
|
-
_this__u8e3s4.
|
|
2901
|
+
_this__u8e3s4.hz(token);
|
|
2902
2902
|
tmp = true;
|
|
2903
2903
|
} else {
|
|
2904
2904
|
tmp = false;
|
|
@@ -2919,7 +2919,7 @@ function createSegmentFunction() {
|
|
|
2919
2919
|
}
|
|
2920
2920
|
function createSegment(id, prev) {
|
|
2921
2921
|
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
2922
|
-
return new (ChannelSegment())(id, prev, prev.
|
|
2922
|
+
return new (ChannelSegment())(id, prev, prev.j19(), 0);
|
|
2923
2923
|
}
|
|
2924
2924
|
function createSegment$ref() {
|
|
2925
2925
|
var l = (p0, p1) => createSegment(p0, p1);
|