@continuous-excellence/coupling-cli 1.1.583 → 1.1.584
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/ConfigCommand.mjs +41 -41
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/ConfigFileSource.mjs +18 -18
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/CouplingCli.mjs +19 -19
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/CouplingCliConfig.mjs +33 -33
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Login.mjs +26 -26
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Main.mjs +5 -5
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Versions.mjs +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/WithSdk.mjs +16 -16
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/PartyListQuery.mjs +25 -25
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/PlayersQuery.mjs +34 -34
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/adapter/PartyListQuery_ResponseAdapter.mjs +21 -21
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/adapter/PlayersQuery_ResponseAdapter.mjs +30 -30
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/adapter/PlayersQuery_VariablesAdapter.mjs +3 -3
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/selections/PartyListQuerySelections.mjs +2 -2
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/selections/PlayersQuerySelections.mjs +3 -3
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/BatchContribution.mjs +44 -44
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/Contribution.mjs +27 -27
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/ContributionInput.mjs +14 -14
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/CurrentPairs.mjs +42 -42
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/CycleTimeFromFirstCommit.mjs +4 -4
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/ListContribution.mjs +53 -53
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/Party.mjs +37 -37
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/PartyDetails.mjs +33 -33
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/PartyList.mjs +17 -17
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/Players.mjs +34 -34
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/SaveContribution.mjs +60 -60
- package/kotlin/Coupling-libraries-action/com/zegreatrob/coupling/action/ActionLoggingSyntax.mjs +13 -13
- 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/AccessResult.mjs +82 -82
- package/kotlin/Coupling-libraries-auth0-management/com/zegreatrob/coupling/auth0/management/DeviceCodeRequest.mjs +54 -54
- package/kotlin/Coupling-libraries-auth0-management/com/zegreatrob/coupling/auth0/management/KtorAuth0Client.mjs +26 -26
- package/kotlin/Coupling-libraries-json/com/zegreatrob/coupling/json/CouplingJsonFormat.mjs +5 -5
- package/kotlin/Coupling-libraries-json/com/zegreatrob/coupling/json/PartyIdSerializer.mjs +10 -10
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/Contribution.mjs +112 -112
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/ContributionId.mjs +4 -4
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/pairassignmentdocument/CouplingPair.mjs +57 -57
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/pairassignmentdocument/PairingSet.mjs +16 -16
- 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 +34 -34
- 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 +17 -17
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/player/AvatarType.mjs +1 -1
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/player/Badge.mjs +1 -1
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/player/Player.mjs +28 -28
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/player/PlayerId.mjs +4 -4
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/player/callsign/CallSign.mjs +7 -7
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/user/UserId.mjs +4 -4
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/KtorSdk.mjs +17 -17
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/KtorSyntax.mjs +3 -3
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/SdkGraphQueryDispatcher.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/SdkSaveContributionCommandDispatcher.mjs +19 -19
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/adapter/Adapter.mjs +33 -33
- 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 +2 -2
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/mapper/ContributionDetailsMapper.mjs +16 -16
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/mapper/PairingSetDetailsMapper.mjs +9 -9
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/mapper/PartyDetailsMapper.mjs +10 -10
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/CurrentPairAssignmentsQuery.mjs +34 -34
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/PartyContributionReportContributionsQuery.mjs +41 -41
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/PartyDetailsQuery.mjs +30 -30
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/SaveContributionMutation.mjs +23 -23
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/adapter/CurrentPairAssignmentsQuery_ResponseAdapter.mjs +30 -30
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/adapter/CurrentPairAssignmentsQuery_VariablesAdapter.mjs +3 -3
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/adapter/PartyContributionReportContributionsQuery_ResponseAdapter.mjs +39 -39
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/adapter/PartyContributionReportContributionsQuery_VariablesAdapter.mjs +6 -6
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/adapter/PartyDetailsQuery_ResponseAdapter.mjs +21 -21
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/adapter/PartyDetailsQuery_VariablesAdapter.mjs +3 -3
- 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/ContributionDetails.mjs +53 -53
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/fragment/ContributionDetailsImpl_ResponseAdapter.mjs +56 -56
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/fragment/PairingSetDetails.mjs +77 -77
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/fragment/PairingSetDetailsImpl_ResponseAdapter.mjs +102 -102
- 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/fragment/PlayerDetails.mjs +28 -28
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/fragment/PlayerDetailsImpl_ResponseAdapter.mjs +33 -33
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/fragment/selections/ContributionDetailsSelections.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/fragment/selections/PairingSetDetailsSelections.mjs +5 -5
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/fragment/selections/PartyDetailsSelections.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/fragment/selections/PlayerDetailsSelections.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/selections/CurrentPairAssignmentsQuerySelections.mjs +3 -3
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/selections/PartyContributionReportContributionsQuerySelections.mjs +4 -4
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/selections/PartyDetailsQuerySelections.mjs +2 -2
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/selections/SaveContributionMutationSelections.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/AvatarType.mjs +4 -4
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/Badge.mjs +4 -4
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/Contribution.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/ContributionId.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/ContributionInput.mjs +46 -46
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/ContributionReport.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/ContributionWindow.mjs +4 -4
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/DateTimeISO.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/Duration.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/GraphQLBoolean.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/GraphQLFloat.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/GraphQLInt.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/GraphQLString.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/Mutation.mjs +20 -20
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/PairSnapshot.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/PairingSet.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/PairingSetId.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/Party.mjs +4 -4
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/PartyId.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/PartyInput.mjs +4 -4
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/PinId.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/PinSnapshot.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/Player.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/PlayerId.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/PlayerSnapshot.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/Query.mjs +4 -4
- 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/AvatarType_ResponseAdapter.mjs +7 -7
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/adapter/Badge_ResponseAdapter.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/ContributionWindow_ResponseAdapter.mjs +7 -7
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/adapter/ContributionsInput_InputAdapter.mjs +10 -10
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/adapter/PartyInput_InputAdapter.mjs +6 -6
- 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 +110 -110
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/ApolloRequest.mjs +88 -88
- 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 +64 -64
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/CustomScalarAdapters.mjs +38 -38
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/DeferredFragmentIdentifier.mjs +8 -8
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/Error.mjs +24 -24
- 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 +8 -8
- 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 +6 -6
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/RequestParameters.mjs +40 -40
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/http/CacheUrlOverride.mjs +5 -5
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/http/DefaultHttpRequestComposer.mjs +78 -78
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/http/Http.mjs +61 -61
- 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 +36 -36
- 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 +284 -284
- 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 +13 -13
- 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 +119 -119
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/json/MapJsonWriter.mjs +47 -47
- 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 +55 -55
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/ApolloCall.mjs +19 -19
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/ApolloClient.mjs +257 -257
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/ApolloClient.mjs.map +1 -1
- 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 +62 -62
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/internal/MultipartReader.mjs +49 -49
- 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/incremental/IncrementalDeliveryProtocolImpl.mjs +8 -8
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/internal/incremental/V0_1IncrementalResultsMerger.mjs +33 -33
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/internal/incremental/V0_2IncrementalResultsMerger.mjs +32 -32
- 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 +23 -23
- 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 +166 -166
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/http/HttpNetworkTransport.mjs.map +1 -1
- 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/websocket/ClientMessage.mjs +2 -2
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/websocket/GraphQLWsProtocol.mjs +16 -16
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/websocket/ServerMessage.mjs +6 -6
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/websocket/WebSocketEngine.js.mjs +44 -44
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/websocket/WebSocketNetworkTransport.mjs +80 -80
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/websocket/WebSocketNetworkTransport.mjs.map +1 -1
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/websocket/internal/SubscribableWebSocket.mjs +132 -132
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/websocket/internal/WebSocketPool.mjs +30 -30
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/ws/JsWebSocketEngine.mjs +35 -35
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/ws/SubscriptionWsProtocol.mjs +35 -35
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/ws/WebSocketNetworkTransport.mjs +194 -194
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/ws/WebSocketNetworkTransport.mjs.map +1 -1
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/ws/WsProtocol.mjs +21 -21
- 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 +48 -48
- package/kotlin/apollo-kotlin-ktor-support-apollo-engine-ktor/com/apollographql/ktor/ws/KtorWebSocketEngine.mjs +68 -68
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/command/CoreSuspendingCliktCommand.mjs +7 -7
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/completion/BashCompletionGenerator.mjs +41 -41
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/completion/CompletionGenerator.mjs +4 -4
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/completion/FishCompletionGenerator.mjs +24 -24
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/core/BaseCliktCommand.mjs +116 -116
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/core/Context.mjs +102 -102
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/core/exceptions.mjs +124 -124
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/internal/Finalization.mjs +38 -38
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/internal/Util.mjs +2 -2
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/output/AbstractHelpFormatter.mjs +145 -145
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/output/HelpFormatter.mjs +48 -48
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/output/Localization.mjs +32 -32
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/output/PlaintextHelpFormatter.mjs +28 -28
- 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 +13 -13
- 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 +26 -26
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/OptionWithValues.mjs +206 -206
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/TransformAll.mjs +5 -5
- 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 +32 -32
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parsers/Invocation.mjs +46 -46
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parsers/ParserInternals.mjs +236 -236
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parsers/atfile.mjs +4 -4
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/sources/ValueSource.mjs +16 -16
- package/kotlin/clikt-clikt-mordant/com/github/ajalt/clikt/command/SuspendingCliktCommand.mjs +2 -2
- 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 +20 -20
- 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 +68 -68
- 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/Standard.mjs +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/Tuples.mjs +26 -26
- package/kotlin/kotlin-kotlin-stdlib/kotlin/UByte.mjs +12 -12
- package/kotlin/kotlin-kotlin-stdlib/kotlin/UByteArray.mjs +21 -21
- package/kotlin/kotlin-kotlin-stdlib/kotlin/UInt.mjs +12 -12
- package/kotlin/kotlin-kotlin-stdlib/kotlin/UIntArray.mjs +21 -21
- package/kotlin/kotlin-kotlin-stdlib/kotlin/ULong.mjs +12 -12
- package/kotlin/kotlin-kotlin-stdlib/kotlin/ULongArray.mjs +21 -21
- package/kotlin/kotlin-kotlin-stdlib/kotlin/UShort.mjs +12 -12
- package/kotlin/kotlin-kotlin-stdlib/kotlin/UShortArray.mjs +21 -21
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/AbstractIterator.mjs +17 -17
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/AbstractList.mjs +33 -33
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/AbstractMap.mjs +19 -19
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableCollectionJs.mjs +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/AbstractSet.mjs +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/ArrayDeque.mjs +187 -187
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs +2 -2
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs +20 -20
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntry.mjs +2 -2
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/IndexedValue.mjs +11 -11
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/Iterables.mjs +2 -2
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/Iterators.mjs +6 -6
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/MapWithDefault.mjs +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/Maps.mjs +9 -9
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/PrimitiveIterators.mjs +4 -4
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/ReversedViews.mjs +38 -38
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/Sets.mjs +5 -5
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/SlidingWindow.mjs +87 -87
- package/kotlin/kotlin-kotlin-stdlib/kotlin/comparisons/Comparisons.mjs +2 -2
- package/kotlin/kotlin-kotlin-stdlib/kotlin/coroutines/ContinuationInterceptor.mjs +3 -3
- package/kotlin/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContext.mjs +3 -3
- package/kotlin/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContextImpl.mjs +33 -33
- package/kotlin/kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs +16 -4
- package/kotlin/kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/enums/EnumEntries.mjs +13 -13
- package/kotlin/kotlin-kotlin-stdlib/kotlin/exceptions.mjs +34 -28
- package/kotlin/kotlin-kotlin-stdlib/kotlin/exceptions.mjs.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/io/encoding/Base64.mjs +42 -42
- package/kotlin/kotlin-kotlin-stdlib/kotlin/js/JsClass.mjs +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/random/Random.mjs +43 -43
- package/kotlin/kotlin-kotlin-stdlib/kotlin/random/XorWowRandom.mjs +24 -24
- package/kotlin/kotlin-kotlin-stdlib/kotlin/ranges/PrimitiveRanges.mjs +17 -17
- package/kotlin/kotlin-kotlin-stdlib/kotlin/ranges/ProgressionIterators.mjs +24 -24
- package/kotlin/kotlin-kotlin-stdlib/kotlin/ranges/Progressions.mjs +10 -10
- package/kotlin/kotlin-kotlin-stdlib/kotlin/reflect/KTypeProjection.mjs +16 -16
- package/kotlin/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KClassImpl.mjs +22 -22
- package/kotlin/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeHelpers.mjs +2 -2
- package/kotlin/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeParameterImpl.mjs +8 -8
- package/kotlin/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/primitives.mjs +20 -20
- package/kotlin/kotlin-kotlin-stdlib/kotlin/sequences/SequenceBuilder.mjs +34 -34
- package/kotlin/kotlin-kotlin-stdlib/kotlin/sequences/Sequences.mjs +39 -39
- package/kotlin/kotlin-kotlin-stdlib/kotlin/sequences/_Sequences.mjs +16 -16
- package/kotlin/kotlin-kotlin-stdlib/kotlin/sequences/_Sequences.mjs.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/sequences/sequenceJs.mjs +3 -3
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/CharacterCodingExceptionJs.mjs +5 -5
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/HexExtensions.mjs +263 -5
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/HexExtensions.mjs.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/HexFormat.mjs +271 -0
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/HexFormat.mjs.map +1 -0
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/StringBuilderJs.mjs +17 -13
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/StringBuilderJs.mjs.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/StringNumberConversions.mjs +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/Strings.mjs +63 -63
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/_LetterChars.mjs +4 -0
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/_LetterChars.mjs.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/charJs.mjs +14 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/charJs.mjs.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/regex.mjs +82 -82
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +30 -8
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/stringsCode.mjs +3 -3
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/utf8Encoding.mjs +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/throwableExtensions.mjs +21 -21
- package/kotlin/kotlin-kotlin-stdlib/kotlin/time/Clock.mjs +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/time/Duration.mjs +80 -80
- package/kotlin/kotlin-kotlin-stdlib/kotlin/time/DurationUnitJs.mjs +8 -8
- package/kotlin/kotlin-kotlin-stdlib/kotlin/time/Instant.mjs +76 -76
- package/kotlin/kotlin-kotlin-stdlib/kotlin/time/InstantJs.mjs +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/time/MonoTimeSource.mjs +40 -40
- package/kotlin/kotlin-kotlin-stdlib/kotlin/time/TimeSource.mjs +15 -15
- package/kotlin/kotlin-kotlin-stdlib/kotlin/time/measureTime.mjs +7 -7
- package/kotlin/kotlin-kotlin-stdlib/kotlin/uuid/Uuid.mjs +30 -30
- package/kotlin/kotlin-kotlin-stdlib/kotlin/uuid/UuidJs.mjs +2 -2
- package/kotlin/kotlin-kotlin-stdlib/reflectionJs.mjs +2 -2
- 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/DirectLoggerFactory.mjs +1 -1
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/Formatter.mjs +8 -8
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/KLogger.mjs +9 -9
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/KLoggingEvent.mjs +25 -25
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/KLoggingEventBuilder.mjs +5 -5
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs +4 -4
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLoggingConfiguration.mjs +12 -12
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/Level.mjs +5 -5
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs +11 -11
- 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 +40 -40
- 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/Builders.common.mjs.map +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuation.mjs +7 -7
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuation.mjs.map +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuationImpl.mjs +166 -166
- 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/CompletableDeferred.mjs.map +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CompletionState.mjs +11 -11
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineContext.mjs +6 -6
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineDispatcher.mjs +6 -6
- 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 +4 -4
- 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/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 +30 -30
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.mjs +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.common.mjs +5 -5
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.mjs +6 -6
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +89 -89
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs.map +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Job.mjs +18 -18
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Job.mjs.map +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/JobSupport.mjs +316 -316
- 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/Supervisor.mjs +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Timeout.mjs +21 -21
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Unconfined.mjs +4 -4
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs +446 -446
- 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 +27 -27
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channels.common.mjs +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/channels/ConflatedBufferedChannel.mjs +30 -30
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/channels/Produce.mjs +16 -16
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Builders.mjs +26 -26
- 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 +1 -1
- 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 +23 -23
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/SharedFlow.mjs +137 -137
- 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 +32 -32
- 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 +5 -5
- 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 +46 -46
- 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 +23 -23
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/LockFreeTaskQueue.mjs +75 -75
- 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-coroutines-core/kotlinx/coroutines/selects/Select.mjs.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +35 -35
- package/kotlin/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
- package/kotlin/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/-Util.mjs +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/-Util.mjs.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +158 -158
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Core.mjs.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +50 -50
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +133 -133
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +12 -12
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +58 -58
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/internal/-Utf8.mjs +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/internal/-Utf8.mjs.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/PolymorphicSerializer.mjs +17 -17
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs +19 -19
- 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 +33 -33
- 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 +97 -97
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractDecoder.mjs +60 -60
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractEncoder.mjs +69 -69
- 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 +56 -56
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionSerializers.mjs +231 -231
- 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/JsonInternalDependencies.mjs +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NoOpEncoder.mjs +18 -18
- 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 +43 -43
- 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 +14 -14
- 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 +114 -114
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tagged.mjs +221 -221
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tuples.mjs +92 -92
- 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 +31 -31
- 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 +48 -48
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +19 -19
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +57 -57
- 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 +155 -155
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonExceptions.mjs +19 -19
- 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 +179 -179
- 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 +71 -71
- 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 +7 -7
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +21 -21
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +40 -40
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +11 -11
- 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 +8 -8
- 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 +181 -181
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +141 -141
- 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/StringOps.mjs +2 -2
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +264 -264
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonEncoder.mjs +184 -184
- 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 +71 -71
- 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 +73 -73
- package/kotlin/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +36 -36
- package/kotlin/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +2 -2
- package/kotlin/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +45 -45
- package/kotlin/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +49 -49
- package/kotlin/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +51 -51
- 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 +56 -54
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs.map +1 -1
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +23 -23
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineCapability.mjs +1 -1
- 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 +16 -16
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs.map +1 -1
- 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 +41 -41
- 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/browser/BrowserFetch.mjs +9 -9
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +7 -7
- 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 +55 -55
- 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 +76 -72
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs.map +1 -1
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +80 -80
- 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 +59 -59
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs.map +1 -1
- 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 +31 -31
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs.map +1 -1
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestRetry.mjs +114 -114
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +53 -53
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +87 -81
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs.map +1 -1
- 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 +14 -14
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +36 -36
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/observer/ResponseObserver.mjs +57 -57
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/sse/ClientSSESession.mjs +8 -8
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/websocket/ClientSessions.mjs +36 -36
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +72 -72
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs.map +1 -1
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSocketContent.mjs +9 -9
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +81 -81
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/websocket/builders.mjs +30 -20
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/websocket/builders.mjs.map +1 -1
- 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 +20 -20
- 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 +25 -25
- 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 +27 -27
- package/kotlin/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +28 -20
- package/kotlin/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs.map +1 -1
- 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 +6 -6
- package/kotlin/ktor-ktor-client-core/io/ktor/client/utils/JsUtils.js.mjs +17 -17
- package/kotlin/ktor-ktor-client-core/io/ktor/client/utils/JsUtils.js.mjs.map +1 -1
- 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 +28 -28
- package/kotlin/ktor-ktor-client-logging/io/ktor/client/plugins/logging/KtorMDCContext.web.mjs +3 -3
- package/kotlin/ktor-ktor-client-logging/io/ktor/client/plugins/logging/LogBodyFilter.mjs +24 -24
- 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 +16 -16
- 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 +16 -16
- package/kotlin/ktor-ktor-client-logging/io/ktor/client/plugins/logging/ObservingUtils.mjs +12 -12
- package/kotlin/ktor-ktor-events/io/ktor/events/Events.mjs +6 -6
- package/kotlin/ktor-ktor-http/io/ktor/http/Codecs.mjs +13 -13
- package/kotlin/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +95 -95
- package/kotlin/ktor-ktor-http/io/ktor/http/ContentTypes.mjs.map +1 -1
- package/kotlin/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +18 -18
- package/kotlin/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs.map +1 -1
- package/kotlin/ktor-ktor-http/io/ktor/http/Headers.mjs +19 -19
- package/kotlin/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +39 -39
- package/kotlin/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +117 -115
- package/kotlin/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs.map +1 -1
- package/kotlin/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +5 -5
- package/kotlin/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +15 -15
- package/kotlin/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +16 -16
- package/kotlin/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +66 -66
- package/kotlin/ktor-ktor-http/io/ktor/http/HttpUrlEncoded.mjs +4 -4
- package/kotlin/ktor-ktor-http/io/ktor/http/Parameters.mjs +13 -13
- package/kotlin/ktor-ktor-http/io/ktor/http/Query.mjs +4 -4
- package/kotlin/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +59 -59
- package/kotlin/ktor-ktor-http/io/ktor/http/URLBuilder.web.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 +29 -29
- package/kotlin/ktor-ktor-http/io/ktor/http/Url.mjs +77 -77
- package/kotlin/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +31 -31
- package/kotlin/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +11 -11
- package/kotlin/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +9 -9
- package/kotlin/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +14 -14
- 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 +89 -89
- 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 +54 -54
- package/kotlin/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs.map +1 -1
- 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 +73 -73
- 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 +6 -6
- 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 +344 -142
- 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 +50 -50
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/ByteChannelUtils.mjs +32 -0
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/ByteChannelUtils.mjs.map +1 -0
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +75 -74
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs.map +1 -1
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +2 -2
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +37 -37
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +25 -49
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs.map +1 -1
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +23 -23
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/IODispatcher.web.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 +50 -19
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs.map +1 -1
- 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/DefaultPool.mjs.map +1 -1
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +3 -3
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs.map +1 -1
- package/kotlin/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +5 -5
- package/kotlin/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +37 -37
- package/kotlin/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs.map +1 -1
- 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 +81 -81
- package/kotlin/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +88 -12
- package/kotlin/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs.map +1 -1
- package/kotlin/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +7 -7
- package/kotlin/ktor-ktor-utils/io/ktor/util/Attributes.mjs +14 -14
- package/kotlin/ktor-ktor-utils/io/ktor/util/Attributes.web.mjs +16 -16
- package/kotlin/ktor-ktor-utils/io/ktor/util/ByteChannels.mjs +55 -55
- package/kotlin/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +196 -196
- package/kotlin/ktor-ktor-utils/io/ktor/util/ContentEncoders.web.mjs +5 -5
- package/kotlin/ktor-ktor-utils/io/ktor/util/CoroutinesUtils.mjs +2 -2
- package/kotlin/ktor-ktor-utils/io/ktor/util/Crypto.mjs +4 -32
- package/kotlin/ktor-ktor-utils/io/ktor/util/Crypto.mjs.map +1 -1
- package/kotlin/ktor-ktor-utils/io/ktor/util/Crypto.web.mjs +8 -5
- package/kotlin/ktor-ktor-utils/io/ktor/util/Crypto.web.mjs.map +1 -1
- 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 +139 -139
- package/kotlin/ktor-ktor-utils/io/ktor/util/TargetUtilsJs.mjs.map +1 -1
- package/kotlin/ktor-ktor-utils/io/ktor/util/Text.mjs +1 -1
- package/kotlin/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
- package/kotlin/ktor-ktor-utils/io/ktor/util/date/Date.mjs +106 -106
- 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/KtorSimpleLogger.web.mjs +10 -10
- package/kotlin/ktor-ktor-utils/io/ktor/util/logging/Logger.web.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/Pipeline.web.mjs +48 -0
- package/kotlin/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.web.mjs.map +1 -0
- 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 +53 -53
- package/kotlin/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
- package/kotlin/ktor-ktor-utils/io/ktor/util/reflect/TypeInfo.web.mjs +1 -1
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +19 -19
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/DefaultWebSocketSession.mjs +121 -121
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/Frame.web.mjs +41 -41
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/FrameCommon.mjs +8 -8
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/FrameCommon.mjs.map +1 -1
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs +12 -13
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs.map +1 -1
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +8 -8
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/PingPong.mjs +46 -46
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/PingPong.mjs.map +1 -1
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/WebSocketChannelsConfig.mjs +50 -50
- 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 +42 -42
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/Constants.mjs +4 -4
- 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 +61 -61
- 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 +60 -60
- 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 +243 -243
- 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 +54 -54
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/TerminalCursor.mjs +1 -1
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/TerminalDetection.mjs +9 -9
- 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 +62 -62
- 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 +380 -380
- package/kotlin/okio-parent-okio/okio/ByteString.mjs +51 -51
- package/kotlin/okio-parent-okio/okio/HashingSink.mjs +14 -14
- package/kotlin/okio-parent-okio/okio/NonJvmPlatform.mjs +16 -16
- package/kotlin/okio-parent-okio/okio/Okio.mjs +2 -2
- package/kotlin/okio-parent-okio/okio/Options.mjs +24 -24
- package/kotlin/okio-parent-okio/okio/RealBufferedSink.mjs +37 -37
- package/kotlin/okio-parent-okio/okio/RealBufferedSource.mjs +68 -68
- package/kotlin/okio-parent-okio/okio/Segment.mjs +70 -70
- package/kotlin/okio-parent-okio/okio/SegmentPool.mjs +5 -5
- 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 +60 -60
- package/kotlin/okio-parent-okio/okio/internal/ByteString.mjs +1 -1
- package/kotlin/okio-parent-okio/okio/internal/RealBufferedSource.mjs +10 -10
- package/kotlin/okio-parent-okio/okio/internal/SegmentedByteString.mjs +1 -1
- package/kotlin/okio-parent-okio/okio/internal/Sha256.mjs +63 -63
- 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 +175 -175
- package/kotlin/tools-digger-model/com/zegreatrob/tools/digger/model/Contribution.mjs +37 -37
- package/kotlin/types-types/kotools/types/collection/NotEmptyList.mjs +30 -30
- package/kotlin/types-types/kotools/types/text/NotBlankString.mjs +34 -34
- package/kotlin/types-types-internal/kotools/types/internal/ErrorMessage.mjs +15 -15
- 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/ktor-ktor-utils/io/ktor/util/internal/ExceptionUtils.web.mjs +0 -11
- package/kotlin/ktor-ktor-utils/io/ktor/util/internal/ExceptionUtils.web.mjs.map +0 -1
- package/kotlin/ktor-ktor-utils/io/ktor/util/pipeline/PipelineJs.mjs +0 -15
- package/kotlin/ktor-ktor-utils/io/ktor/util/pipeline/PipelineJs.mjs.map +0 -1
|
@@ -70,8 +70,8 @@ import {
|
|
|
70
70
|
ClosedSendChannelException29m33prpq9jaw as ClosedSendChannelException,
|
|
71
71
|
close$default1evna6yun3t5h as close$default,
|
|
72
72
|
cancel$default1fq6eekptkf7a as cancel$default,
|
|
73
|
-
ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
|
|
74
73
|
SendChannel38sllbxw662ws as SendChannel,
|
|
74
|
+
ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
|
|
75
75
|
} from './Channel.mjs';
|
|
76
76
|
import {
|
|
77
77
|
SelectInstance2isepgzfsd8ur as SelectInstance,
|
|
@@ -199,7 +199,7 @@ function get_NO_CLOSE_CAUSE() {
|
|
|
199
199
|
var NO_CLOSE_CAUSE;
|
|
200
200
|
function setElementLazy($this, index, value) {
|
|
201
201
|
// Inline function 'kotlinx.atomicfu.AtomicRef.lazySet' call
|
|
202
|
-
$this.
|
|
202
|
+
$this.y1a_1.atomicfu$get(imul(index, 2)).kotlinx$atomicfu$value = value;
|
|
203
203
|
}
|
|
204
204
|
var ChannelSegmentClass;
|
|
205
205
|
function ChannelSegment() {
|
|
@@ -207,48 +207,48 @@ function ChannelSegment() {
|
|
|
207
207
|
class $ extends Segment() {
|
|
208
208
|
constructor(id, prev, channel, pointers) {
|
|
209
209
|
super(id, prev, pointers);
|
|
210
|
-
this.
|
|
211
|
-
this.
|
|
210
|
+
this.x1a_1 = channel;
|
|
211
|
+
this.y1a_1 = atomicfu$AtomicRefArray$ofNulls(imul(get_SEGMENT_SIZE(), 2));
|
|
212
212
|
}
|
|
213
|
-
|
|
214
|
-
return ensureNotNull(this.
|
|
213
|
+
z1a() {
|
|
214
|
+
return ensureNotNull(this.x1a_1);
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
a1b() {
|
|
217
217
|
return get_SEGMENT_SIZE();
|
|
218
218
|
}
|
|
219
|
-
|
|
219
|
+
b1b(index, element) {
|
|
220
220
|
setElementLazy(this, index, element);
|
|
221
221
|
}
|
|
222
|
-
|
|
223
|
-
return this.
|
|
222
|
+
c1b(index) {
|
|
223
|
+
return this.y1a_1.atomicfu$get(imul(index, 2)).kotlinx$atomicfu$value;
|
|
224
224
|
}
|
|
225
|
-
|
|
225
|
+
d1b(index) {
|
|
226
226
|
// Inline function 'kotlin.also' call
|
|
227
|
-
var this_0 = this.
|
|
228
|
-
this.
|
|
227
|
+
var this_0 = this.c1b(index);
|
|
228
|
+
this.e1b(index);
|
|
229
229
|
return this_0;
|
|
230
230
|
}
|
|
231
|
-
|
|
231
|
+
e1b(index) {
|
|
232
232
|
setElementLazy(this, index, null);
|
|
233
233
|
}
|
|
234
|
-
|
|
235
|
-
return this.
|
|
234
|
+
f1b(index) {
|
|
235
|
+
return this.y1a_1.atomicfu$get(imul(index, 2) + 1 | 0).kotlinx$atomicfu$value;
|
|
236
236
|
}
|
|
237
|
-
|
|
238
|
-
this.
|
|
237
|
+
g1b(index, value) {
|
|
238
|
+
this.y1a_1.atomicfu$get(imul(index, 2) + 1 | 0).kotlinx$atomicfu$value = value;
|
|
239
239
|
}
|
|
240
|
-
|
|
241
|
-
return this.
|
|
240
|
+
h1b(index, from, to) {
|
|
241
|
+
return this.y1a_1.atomicfu$get(imul(index, 2) + 1 | 0).atomicfu$compareAndSet(from, to);
|
|
242
242
|
}
|
|
243
|
-
|
|
244
|
-
return this.
|
|
243
|
+
i1b(index, update) {
|
|
244
|
+
return this.y1a_1.atomicfu$get(imul(index, 2) + 1 | 0).atomicfu$getAndSet(update);
|
|
245
245
|
}
|
|
246
|
-
|
|
246
|
+
o13(index, cause, context) {
|
|
247
247
|
var isSender = index >= get_SEGMENT_SIZE();
|
|
248
248
|
var index_0 = isSender ? index - get_SEGMENT_SIZE() | 0 : index;
|
|
249
|
-
var element = this.
|
|
249
|
+
var element = this.c1b(index_0);
|
|
250
250
|
$l$loop: while (true) {
|
|
251
|
-
var cur = this.
|
|
251
|
+
var cur = this.f1b(index_0);
|
|
252
252
|
var tmp;
|
|
253
253
|
if (!(cur == null) ? isInterface(cur, Waiter()) : false) {
|
|
254
254
|
tmp = true;
|
|
@@ -257,11 +257,11 @@ function ChannelSegment() {
|
|
|
257
257
|
}
|
|
258
258
|
if (tmp) {
|
|
259
259
|
var update = isSender ? get_INTERRUPTED_SEND() : get_INTERRUPTED_RCV();
|
|
260
|
-
if (this.
|
|
261
|
-
this.
|
|
262
|
-
this.
|
|
260
|
+
if (this.h1b(index_0, cur, update)) {
|
|
261
|
+
this.e1b(index_0);
|
|
262
|
+
this.v1b(index_0, !isSender);
|
|
263
263
|
if (isSender) {
|
|
264
|
-
var tmp0_safe_receiver = this.
|
|
264
|
+
var tmp0_safe_receiver = this.z1a().k1b_1;
|
|
265
265
|
if (tmp0_safe_receiver == null)
|
|
266
266
|
null;
|
|
267
267
|
else {
|
|
@@ -272,9 +272,9 @@ function ChannelSegment() {
|
|
|
272
272
|
}
|
|
273
273
|
} else {
|
|
274
274
|
if (cur === get_INTERRUPTED_SEND() || cur === get_INTERRUPTED_RCV()) {
|
|
275
|
-
this.
|
|
275
|
+
this.e1b(index_0);
|
|
276
276
|
if (isSender) {
|
|
277
|
-
var tmp1_safe_receiver = this.
|
|
277
|
+
var tmp1_safe_receiver = this.z1a().k1b_1;
|
|
278
278
|
if (tmp1_safe_receiver == null)
|
|
279
279
|
null;
|
|
280
280
|
else {
|
|
@@ -302,18 +302,18 @@ function ChannelSegment() {
|
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
|
|
305
|
+
v1b(index, receiver) {
|
|
306
306
|
if (receiver) {
|
|
307
|
-
var tmp = this.
|
|
308
|
-
var tmp0 = this.
|
|
307
|
+
var tmp = this.z1a();
|
|
308
|
+
var tmp0 = this.m13_1;
|
|
309
309
|
// Inline function 'kotlin.Long.times' call
|
|
310
310
|
var other = get_SEGMENT_SIZE();
|
|
311
311
|
// Inline function 'kotlin.Long.plus' call
|
|
312
312
|
var this_0 = multiply(tmp0, fromInt(other));
|
|
313
313
|
var tmp$ret$1 = add(this_0, fromInt(index));
|
|
314
|
-
tmp.
|
|
314
|
+
tmp.w1b(tmp$ret$1);
|
|
315
315
|
}
|
|
316
|
-
this.
|
|
316
|
+
this.x1b();
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
initMetadataForClass($, 'ChannelSegment');
|
|
@@ -322,8 +322,8 @@ function ChannelSegment() {
|
|
|
322
322
|
return ChannelSegmentClass;
|
|
323
323
|
}
|
|
324
324
|
function onClosedHasNext($this) {
|
|
325
|
-
$this.
|
|
326
|
-
var tmp0_elvis_lhs = $this.
|
|
325
|
+
$this.j1c_1 = get_CHANNEL_CLOSED();
|
|
326
|
+
var tmp0_elvis_lhs = $this.l1c_1.m1c();
|
|
327
327
|
var tmp;
|
|
328
328
|
if (tmp0_elvis_lhs == null) {
|
|
329
329
|
return false;
|
|
@@ -340,8 +340,8 @@ function *hasNextOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
340
340
|
var uCont = $completion;
|
|
341
341
|
var cancellable = getOrCreateCancellableContinuation(intercepted(uCont));
|
|
342
342
|
try {
|
|
343
|
-
$this.
|
|
344
|
-
var tmp0 = $this.
|
|
343
|
+
$this.k1c_1 = cancellable;
|
|
344
|
+
var tmp0 = $this.l1c_1;
|
|
345
345
|
var tmp2 = segment;
|
|
346
346
|
var tmp4 = index;
|
|
347
347
|
var tmp6 = r;
|
|
@@ -351,18 +351,18 @@ function *hasNextOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
351
351
|
if (updCellResult === get_SUSPEND()) {
|
|
352
352
|
prepareReceiverForSuspension(tmp0, waiter, tmp2, tmp4);
|
|
353
353
|
} else if (updCellResult === get_FAILED()) {
|
|
354
|
-
if (compare(tmp6, tmp0.
|
|
355
|
-
tmp2.
|
|
354
|
+
if (compare(tmp6, tmp0.n1c()) < 0) {
|
|
355
|
+
tmp2.h1c();
|
|
356
356
|
}
|
|
357
357
|
$l$block_0: {
|
|
358
358
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImpl' call
|
|
359
|
-
var segment_0 = tmp0.
|
|
359
|
+
var segment_0 = tmp0.q1b_1.kotlinx$atomicfu$value;
|
|
360
360
|
$l$loop_0: while (true) {
|
|
361
|
-
if (tmp0.
|
|
361
|
+
if (tmp0.o1c()) {
|
|
362
362
|
onClosedHasNextNoWaiterSuspend($this);
|
|
363
363
|
break $l$block_0;
|
|
364
364
|
}
|
|
365
|
-
var r_0 = tmp0.
|
|
365
|
+
var r_0 = tmp0.m1b_1.atomicfu$getAndIncrement$long();
|
|
366
366
|
// Inline function 'kotlin.Long.div' call
|
|
367
367
|
var other = get_SEGMENT_SIZE();
|
|
368
368
|
var id = divide(r_0, fromInt(other));
|
|
@@ -370,7 +370,7 @@ function *hasNextOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
370
370
|
var other_0 = get_SEGMENT_SIZE();
|
|
371
371
|
var tmp$ret$8 = modulo(r_0, fromInt(other_0));
|
|
372
372
|
var i = convertToInt(tmp$ret$8);
|
|
373
|
-
if (!equalsLong(segment_0.
|
|
373
|
+
if (!equalsLong(segment_0.m13_1, id)) {
|
|
374
374
|
var tmp0_elvis_lhs = findSegmentReceive(tmp0, id, segment_0);
|
|
375
375
|
var tmp;
|
|
376
376
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -389,8 +389,8 @@ function *hasNextOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
389
389
|
prepareReceiverForSuspension(tmp0, tmp1_safe_receiver, segment_0, i);
|
|
390
390
|
}
|
|
391
391
|
} else if (updCellResult_0 === get_FAILED()) {
|
|
392
|
-
if (compare(r_0, tmp0.
|
|
393
|
-
segment_0.
|
|
392
|
+
if (compare(r_0, tmp0.n1c()) < 0) {
|
|
393
|
+
segment_0.h1c();
|
|
394
394
|
}
|
|
395
395
|
continue $l$loop_0;
|
|
396
396
|
} else if (updCellResult_0 === get_SUSPEND_NO_WAITER()) {
|
|
@@ -398,39 +398,39 @@ function *hasNextOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
398
398
|
var message = 'unexpected';
|
|
399
399
|
throw IllegalStateException().o(toString_0(message));
|
|
400
400
|
} else {
|
|
401
|
-
segment_0.
|
|
402
|
-
$this.
|
|
403
|
-
$this.
|
|
404
|
-
var tmp0_safe_receiver = $this.
|
|
405
|
-
cancellable.
|
|
401
|
+
segment_0.h1c();
|
|
402
|
+
$this.j1c_1 = updCellResult_0;
|
|
403
|
+
$this.k1c_1 = null;
|
|
404
|
+
var tmp0_safe_receiver = $this.l1c_1.k1b_1;
|
|
405
|
+
cancellable.p14(true, tmp0_safe_receiver == null ? null : bindCancellationFun($this.l1c_1, tmp0_safe_receiver, updCellResult_0));
|
|
406
406
|
}
|
|
407
407
|
break $l$block_0;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
} else {
|
|
411
|
-
tmp2.
|
|
412
|
-
$this.
|
|
413
|
-
$this.
|
|
414
|
-
var tmp0_safe_receiver_0 = $this.
|
|
415
|
-
cancellable.
|
|
411
|
+
tmp2.h1c();
|
|
412
|
+
$this.j1c_1 = updCellResult;
|
|
413
|
+
$this.k1c_1 = null;
|
|
414
|
+
var tmp0_safe_receiver_0 = $this.l1c_1.k1b_1;
|
|
415
|
+
cancellable.p14(true, tmp0_safe_receiver_0 == null ? null : bindCancellationFun($this.l1c_1, tmp0_safe_receiver_0, updCellResult));
|
|
416
416
|
}
|
|
417
417
|
} catch ($p) {
|
|
418
418
|
if ($p instanceof Error) {
|
|
419
419
|
var e = $p;
|
|
420
|
-
cancellable.
|
|
420
|
+
cancellable.l14();
|
|
421
421
|
throw e;
|
|
422
422
|
} else {
|
|
423
423
|
throw $p;
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
return cancellable.
|
|
426
|
+
return cancellable.s11();
|
|
427
427
|
};
|
|
428
428
|
}
|
|
429
429
|
function onClosedHasNextNoWaiterSuspend($this) {
|
|
430
|
-
var cont = ensureNotNull($this.
|
|
431
|
-
$this.
|
|
432
|
-
$this.
|
|
433
|
-
var cause = $this.
|
|
430
|
+
var cont = ensureNotNull($this.k1c_1);
|
|
431
|
+
$this.k1c_1 = null;
|
|
432
|
+
$this.j1c_1 = get_CHANNEL_CLOSED();
|
|
433
|
+
var cause = $this.l1c_1.m1c();
|
|
434
434
|
if (cause == null) {
|
|
435
435
|
// Inline function 'kotlin.coroutines.resume' call
|
|
436
436
|
// Inline function 'kotlin.Companion.success' call
|
|
@@ -445,7 +445,7 @@ function onClosedHasNextNoWaiterSuspend($this) {
|
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
function _get_bufferEndCounter__2d4hee($this) {
|
|
448
|
-
return $this.
|
|
448
|
+
return $this.n1b_1.kotlinx$atomicfu$value;
|
|
449
449
|
}
|
|
450
450
|
function _get_isRendezvousOrUnlimited__3mdufi($this) {
|
|
451
451
|
// Inline function 'kotlin.let' call
|
|
@@ -458,15 +458,15 @@ function *onClosedSend($this, element, $completion) {
|
|
|
458
458
|
(yield () => {
|
|
459
459
|
var uCont = $completion;
|
|
460
460
|
var cancellable = new (CancellableContinuationImpl())(intercepted(uCont), 1);
|
|
461
|
-
cancellable.
|
|
461
|
+
cancellable.r11();
|
|
462
462
|
$l$block: {
|
|
463
|
-
var tmp0_safe_receiver = $this.
|
|
463
|
+
var tmp0_safe_receiver = $this.k1b_1;
|
|
464
464
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : callUndeliveredElementCatchingException(tmp0_safe_receiver, element);
|
|
465
465
|
if (tmp1_safe_receiver == null)
|
|
466
466
|
null;
|
|
467
467
|
else {
|
|
468
468
|
// Inline function 'kotlin.let' call
|
|
469
|
-
addSuppressed(tmp1_safe_receiver, $this.
|
|
469
|
+
addSuppressed(tmp1_safe_receiver, $this.p1c());
|
|
470
470
|
// Inline function 'kotlinx.coroutines.resumeWithStackTrace' call
|
|
471
471
|
// Inline function 'kotlin.Companion.failure' call
|
|
472
472
|
var exception = recoverStackTrace_0(tmp1_safe_receiver, cancellable);
|
|
@@ -475,13 +475,13 @@ function *onClosedSend($this, element, $completion) {
|
|
|
475
475
|
break $l$block;
|
|
476
476
|
}
|
|
477
477
|
// Inline function 'kotlinx.coroutines.resumeWithStackTrace' call
|
|
478
|
-
var exception_0 = $this.
|
|
478
|
+
var exception_0 = $this.p1c();
|
|
479
479
|
// Inline function 'kotlin.Companion.failure' call
|
|
480
480
|
var exception_1 = recoverStackTrace_0(exception_0, cancellable);
|
|
481
481
|
var tmp$ret$9 = _Result___init__impl__xyqfz8(createFailure(exception_1));
|
|
482
482
|
cancellable.yc(tmp$ret$9);
|
|
483
483
|
}
|
|
484
|
-
return cancellable.
|
|
484
|
+
return cancellable.s11();
|
|
485
485
|
});
|
|
486
486
|
return Unit_instance;
|
|
487
487
|
}
|
|
@@ -500,7 +500,7 @@ function *sendOnNoWaiterSuspend($this, segment, index, element, s, $completion)
|
|
|
500
500
|
var s_0 = s;
|
|
501
501
|
switch (updateCellSend(tmp0, tmp2, tmp4, tmp6, s_0, cancellable, false)) {
|
|
502
502
|
case 0:
|
|
503
|
-
tmp2.
|
|
503
|
+
tmp2.h1c();
|
|
504
504
|
// Inline function 'kotlin.coroutines.resume' call
|
|
505
505
|
|
|
506
506
|
// Inline function 'kotlin.Companion.success' call
|
|
@@ -520,14 +520,14 @@ function *sendOnNoWaiterSuspend($this, segment, index, element, s, $completion)
|
|
|
520
520
|
prepareSenderForSuspension(tmp0, cancellable, tmp2, tmp4);
|
|
521
521
|
break;
|
|
522
522
|
case 4:
|
|
523
|
-
if (compare(s_0, tmp0.
|
|
524
|
-
tmp2.
|
|
523
|
+
if (compare(s_0, tmp0.q1c()) < 0) {
|
|
524
|
+
tmp2.h1c();
|
|
525
525
|
}
|
|
526
526
|
|
|
527
527
|
onClosedSendOnNoWaiterSuspend($this, element, cancellable);
|
|
528
528
|
break;
|
|
529
529
|
case 5:
|
|
530
|
-
tmp2.
|
|
530
|
+
tmp2.h1c();
|
|
531
531
|
$l$block_5: {
|
|
532
532
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
533
533
|
var segment_0 = access$_get_sendSegment__111kgq(tmp0).kotlinx$atomicfu$value;
|
|
@@ -543,7 +543,7 @@ function *sendOnNoWaiterSuspend($this, segment, index, element, s, $completion)
|
|
|
543
543
|
var other_0 = get_SEGMENT_SIZE();
|
|
544
544
|
var tmp$ret$15 = modulo(s_1, fromInt(other_0));
|
|
545
545
|
var i = convertToInt(tmp$ret$15);
|
|
546
|
-
if (!equalsLong(segment_0.
|
|
546
|
+
if (!equalsLong(segment_0.m13_1, id)) {
|
|
547
547
|
var tmp0_elvis_lhs = access$findSegmentSend(tmp0, id, segment_0);
|
|
548
548
|
var tmp;
|
|
549
549
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -561,7 +561,7 @@ function *sendOnNoWaiterSuspend($this, segment, index, element, s, $completion)
|
|
|
561
561
|
}
|
|
562
562
|
switch (access$updateCellSend(tmp0, segment_0, i, tmp6, s_1, cancellable, closed)) {
|
|
563
563
|
case 0:
|
|
564
|
-
segment_0.
|
|
564
|
+
segment_0.h1c();
|
|
565
565
|
// Inline function 'kotlin.coroutines.resume' call
|
|
566
566
|
|
|
567
567
|
// Inline function 'kotlin.Companion.success' call
|
|
@@ -579,7 +579,7 @@ function *sendOnNoWaiterSuspend($this, segment, index, element, s, $completion)
|
|
|
579
579
|
break $l$block_5;
|
|
580
580
|
case 2:
|
|
581
581
|
if (closed) {
|
|
582
|
-
segment_0.
|
|
582
|
+
segment_0.x1b();
|
|
583
583
|
onClosedSendOnNoWaiterSuspend($this, element, cancellable);
|
|
584
584
|
break $l$block_5;
|
|
585
585
|
}
|
|
@@ -593,14 +593,14 @@ function *sendOnNoWaiterSuspend($this, segment, index, element, s, $completion)
|
|
|
593
593
|
|
|
594
594
|
break $l$block_5;
|
|
595
595
|
case 4:
|
|
596
|
-
if (compare(s_1, tmp0.
|
|
597
|
-
segment_0.
|
|
596
|
+
if (compare(s_1, tmp0.q1c()) < 0) {
|
|
597
|
+
segment_0.h1c();
|
|
598
598
|
}
|
|
599
599
|
|
|
600
600
|
onClosedSendOnNoWaiterSuspend($this, element, cancellable);
|
|
601
601
|
break $l$block_5;
|
|
602
602
|
case 5:
|
|
603
|
-
segment_0.
|
|
603
|
+
segment_0.h1c();
|
|
604
604
|
continue $l$loop_0;
|
|
605
605
|
case 3:
|
|
606
606
|
// Inline function 'kotlin.error' call
|
|
@@ -621,21 +621,21 @@ function *sendOnNoWaiterSuspend($this, segment, index, element, s, $completion)
|
|
|
621
621
|
} catch ($p) {
|
|
622
622
|
if ($p instanceof Error) {
|
|
623
623
|
var e = $p;
|
|
624
|
-
cancellable.
|
|
624
|
+
cancellable.l14();
|
|
625
625
|
throw e;
|
|
626
626
|
} else {
|
|
627
627
|
throw $p;
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
return cancellable.
|
|
630
|
+
return cancellable.s11();
|
|
631
631
|
});
|
|
632
632
|
return Unit_instance;
|
|
633
633
|
}
|
|
634
634
|
function prepareSenderForSuspension($this, $receiver, segment, index) {
|
|
635
|
-
$receiver.
|
|
635
|
+
$receiver.r14(segment, index + get_SEGMENT_SIZE() | 0);
|
|
636
636
|
}
|
|
637
637
|
function onClosedSendOnNoWaiterSuspend($this, element, cont) {
|
|
638
|
-
var tmp0_safe_receiver = $this.
|
|
638
|
+
var tmp0_safe_receiver = $this.k1b_1;
|
|
639
639
|
if (tmp0_safe_receiver == null)
|
|
640
640
|
null;
|
|
641
641
|
else {
|
|
@@ -643,7 +643,7 @@ function onClosedSendOnNoWaiterSuspend($this, element, cont) {
|
|
|
643
643
|
}
|
|
644
644
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
645
645
|
// Inline function 'kotlin.Companion.failure' call
|
|
646
|
-
var exception = recoverStackTrace_0($this.
|
|
646
|
+
var exception = recoverStackTrace_0($this.p1c(), cont);
|
|
647
647
|
var tmp$ret$1 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
648
648
|
cont.yc(tmp$ret$1);
|
|
649
649
|
}
|
|
@@ -657,34 +657,34 @@ function SendBroadcast() {
|
|
|
657
657
|
return SendBroadcastClass;
|
|
658
658
|
}
|
|
659
659
|
function updateCellSend($this, segment, index, element, s, waiter, closed) {
|
|
660
|
-
segment.
|
|
660
|
+
segment.b1b(index, element);
|
|
661
661
|
if (closed)
|
|
662
662
|
return updateCellSendSlow($this, segment, index, element, s, waiter, closed);
|
|
663
|
-
var state = segment.
|
|
663
|
+
var state = segment.f1b(index);
|
|
664
664
|
if (state === null) {
|
|
665
665
|
if (bufferOrRendezvousSend($this, s)) {
|
|
666
|
-
if (segment.
|
|
666
|
+
if (segment.h1b(index, null, get_BUFFERED())) {
|
|
667
667
|
return 1;
|
|
668
668
|
}
|
|
669
669
|
} else {
|
|
670
670
|
if (waiter == null) {
|
|
671
671
|
return 3;
|
|
672
672
|
} else {
|
|
673
|
-
if (segment.
|
|
673
|
+
if (segment.h1b(index, null, waiter))
|
|
674
674
|
return 2;
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
677
|
} else {
|
|
678
678
|
if (isInterface(state, Waiter())) {
|
|
679
|
-
segment.
|
|
679
|
+
segment.e1b(index);
|
|
680
680
|
var tmp;
|
|
681
681
|
if (tryResumeReceiver($this, state, element)) {
|
|
682
|
-
segment.
|
|
683
|
-
$this.
|
|
682
|
+
segment.g1b(index, get_DONE_RCV());
|
|
683
|
+
$this.r1c();
|
|
684
684
|
tmp = 0;
|
|
685
685
|
} else {
|
|
686
|
-
if (!(segment.
|
|
687
|
-
segment.
|
|
686
|
+
if (!(segment.i1b(index, get_INTERRUPTED_RCV()) === get_INTERRUPTED_RCV())) {
|
|
687
|
+
segment.v1b(index, true);
|
|
688
688
|
}
|
|
689
689
|
tmp = 5;
|
|
690
690
|
}
|
|
@@ -695,55 +695,55 @@ function updateCellSend($this, segment, index, element, s, waiter, closed) {
|
|
|
695
695
|
}
|
|
696
696
|
function updateCellSendSlow($this, segment, index, element, s, waiter, closed) {
|
|
697
697
|
while (true) {
|
|
698
|
-
var state = segment.
|
|
698
|
+
var state = segment.f1b(index);
|
|
699
699
|
if (state === null) {
|
|
700
700
|
if (bufferOrRendezvousSend($this, s) && !closed) {
|
|
701
|
-
if (segment.
|
|
701
|
+
if (segment.h1b(index, null, get_BUFFERED())) {
|
|
702
702
|
return 1;
|
|
703
703
|
}
|
|
704
704
|
} else {
|
|
705
705
|
if (closed) {
|
|
706
|
-
if (segment.
|
|
707
|
-
segment.
|
|
706
|
+
if (segment.h1b(index, null, get_INTERRUPTED_SEND())) {
|
|
707
|
+
segment.v1b(index, false);
|
|
708
708
|
return 4;
|
|
709
709
|
}
|
|
710
710
|
} else if (waiter == null)
|
|
711
711
|
return 3;
|
|
712
|
-
else if (segment.
|
|
712
|
+
else if (segment.h1b(index, null, waiter))
|
|
713
713
|
return 2;
|
|
714
714
|
}
|
|
715
715
|
} else if (state === get_IN_BUFFER()) {
|
|
716
|
-
if (segment.
|
|
716
|
+
if (segment.h1b(index, state, get_BUFFERED())) {
|
|
717
717
|
return 1;
|
|
718
718
|
}
|
|
719
719
|
} else if (state === get_INTERRUPTED_RCV()) {
|
|
720
|
-
segment.
|
|
720
|
+
segment.e1b(index);
|
|
721
721
|
return 5;
|
|
722
722
|
} else if (state === get_POISONED()) {
|
|
723
|
-
segment.
|
|
723
|
+
segment.e1b(index);
|
|
724
724
|
return 5;
|
|
725
725
|
} else if (state === get_CHANNEL_CLOSED()) {
|
|
726
|
-
segment.
|
|
726
|
+
segment.e1b(index);
|
|
727
727
|
completeCloseOrCancel($this);
|
|
728
728
|
return 4;
|
|
729
729
|
} else {
|
|
730
730
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
731
|
-
segment.
|
|
731
|
+
segment.e1b(index);
|
|
732
732
|
var tmp;
|
|
733
733
|
if (state instanceof WaiterEB()) {
|
|
734
|
-
tmp = state.
|
|
734
|
+
tmp = state.s1c_1;
|
|
735
735
|
} else {
|
|
736
736
|
tmp = state;
|
|
737
737
|
}
|
|
738
738
|
var receiver = tmp;
|
|
739
739
|
var tmp_0;
|
|
740
740
|
if (tryResumeReceiver($this, receiver, element)) {
|
|
741
|
-
segment.
|
|
742
|
-
$this.
|
|
741
|
+
segment.g1b(index, get_DONE_RCV());
|
|
742
|
+
$this.r1c();
|
|
743
743
|
tmp_0 = 0;
|
|
744
744
|
} else {
|
|
745
|
-
if (!(segment.
|
|
746
|
-
segment.
|
|
745
|
+
if (!(segment.i1b(index, get_INTERRUPTED_RCV()) === get_INTERRUPTED_RCV())) {
|
|
746
|
+
segment.v1b(index, true);
|
|
747
747
|
}
|
|
748
748
|
tmp_0 = 5;
|
|
749
749
|
}
|
|
@@ -763,9 +763,9 @@ function bufferOrRendezvousSend($this, curSenders) {
|
|
|
763
763
|
if (compare(curSenders, _get_bufferEndCounter__2d4hee($this)) < 0) {
|
|
764
764
|
tmp = true;
|
|
765
765
|
} else {
|
|
766
|
-
var tmp0 = $this.
|
|
766
|
+
var tmp0 = $this.q1c();
|
|
767
767
|
// Inline function 'kotlin.Long.plus' call
|
|
768
|
-
var other = $this.
|
|
768
|
+
var other = $this.j1b_1;
|
|
769
769
|
var tmp$ret$0 = add(tmp0, fromInt(other));
|
|
770
770
|
tmp = compare(curSenders, tmp$ret$0) < 0;
|
|
771
771
|
}
|
|
@@ -774,24 +774,24 @@ function bufferOrRendezvousSend($this, curSenders) {
|
|
|
774
774
|
function tryResumeReceiver($this, $receiver, element) {
|
|
775
775
|
var tmp;
|
|
776
776
|
if (isInterface($receiver, SelectInstance())) {
|
|
777
|
-
tmp = $receiver.
|
|
777
|
+
tmp = $receiver.x1c($this, element);
|
|
778
778
|
} else {
|
|
779
779
|
if ($receiver instanceof ReceiveCatching()) {
|
|
780
780
|
if (!($receiver instanceof ReceiveCatching()))
|
|
781
781
|
THROW_CCE();
|
|
782
|
-
var tmp_0 = Companion_getInstance().
|
|
783
|
-
var tmp1_safe_receiver = $this.
|
|
784
|
-
tmp = tryResume0($receiver.
|
|
782
|
+
var tmp_0 = Companion_getInstance().v1c(element);
|
|
783
|
+
var tmp1_safe_receiver = $this.k1b_1;
|
|
784
|
+
tmp = tryResume0($receiver.w1c_1, new (ChannelResult())(tmp_0), tmp1_safe_receiver == null ? null : bindCancellationFunResult($this, tmp1_safe_receiver));
|
|
785
785
|
} else {
|
|
786
786
|
if ($receiver instanceof BufferedChannelIterator()) {
|
|
787
787
|
if (!($receiver instanceof BufferedChannelIterator()))
|
|
788
788
|
THROW_CCE();
|
|
789
|
-
tmp = $receiver.
|
|
789
|
+
tmp = $receiver.t1c(element);
|
|
790
790
|
} else {
|
|
791
791
|
if (isInterface($receiver, CancellableContinuation())) {
|
|
792
792
|
if (!isInterface($receiver, CancellableContinuation()))
|
|
793
793
|
THROW_CCE();
|
|
794
|
-
var tmp2_safe_receiver = $this.
|
|
794
|
+
var tmp2_safe_receiver = $this.k1b_1;
|
|
795
795
|
tmp = tryResume0($receiver, element, tmp2_safe_receiver == null ? null : bindCancellationFun_0($this, tmp2_safe_receiver));
|
|
796
796
|
} else {
|
|
797
797
|
// Inline function 'kotlin.error' call
|
|
@@ -819,18 +819,18 @@ function *receiveOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
819
819
|
if (updCellResult === get_SUSPEND()) {
|
|
820
820
|
prepareReceiverForSuspension(tmp0, cancellable, tmp2, tmp4);
|
|
821
821
|
} else if (updCellResult === get_FAILED()) {
|
|
822
|
-
if (compare(r_0, tmp0.
|
|
823
|
-
tmp2.
|
|
822
|
+
if (compare(r_0, tmp0.n1c()) < 0) {
|
|
823
|
+
tmp2.h1c();
|
|
824
824
|
}
|
|
825
825
|
$l$block_0: {
|
|
826
826
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImpl' call
|
|
827
|
-
var segment_0 = tmp0.
|
|
827
|
+
var segment_0 = tmp0.q1b_1.kotlinx$atomicfu$value;
|
|
828
828
|
$l$loop_0: while (true) {
|
|
829
|
-
if (tmp0.
|
|
829
|
+
if (tmp0.o1c()) {
|
|
830
830
|
onClosedReceiveOnNoWaiterSuspend($this, cancellable);
|
|
831
831
|
break $l$block_0;
|
|
832
832
|
}
|
|
833
|
-
var r_1 = tmp0.
|
|
833
|
+
var r_1 = tmp0.m1b_1.atomicfu$getAndIncrement$long();
|
|
834
834
|
// Inline function 'kotlin.Long.div' call
|
|
835
835
|
var other = get_SEGMENT_SIZE();
|
|
836
836
|
var id = divide(r_1, fromInt(other));
|
|
@@ -838,7 +838,7 @@ function *receiveOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
838
838
|
var other_0 = get_SEGMENT_SIZE();
|
|
839
839
|
var tmp$ret$8 = modulo(r_1, fromInt(other_0));
|
|
840
840
|
var i = convertToInt(tmp$ret$8);
|
|
841
|
-
if (!equalsLong(segment_0.
|
|
841
|
+
if (!equalsLong(segment_0.m13_1, id)) {
|
|
842
842
|
var tmp0_elvis_lhs = findSegmentReceive(tmp0, id, segment_0);
|
|
843
843
|
var tmp;
|
|
844
844
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -857,8 +857,8 @@ function *receiveOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
857
857
|
prepareReceiverForSuspension(tmp0, tmp1_safe_receiver, segment_0, i);
|
|
858
858
|
}
|
|
859
859
|
} else if (updCellResult_0 === get_FAILED()) {
|
|
860
|
-
if (compare(r_1, tmp0.
|
|
861
|
-
segment_0.
|
|
860
|
+
if (compare(r_1, tmp0.n1c()) < 0) {
|
|
861
|
+
segment_0.h1c();
|
|
862
862
|
}
|
|
863
863
|
continue $l$loop_0;
|
|
864
864
|
} else if (updCellResult_0 === get_SUSPEND_NO_WAITER()) {
|
|
@@ -866,35 +866,35 @@ function *receiveOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
866
866
|
var message = 'unexpected';
|
|
867
867
|
throw IllegalStateException().o(toString_0(message));
|
|
868
868
|
} else {
|
|
869
|
-
segment_0.
|
|
870
|
-
var tmp0_safe_receiver = $this.
|
|
869
|
+
segment_0.h1c();
|
|
870
|
+
var tmp0_safe_receiver = $this.k1b_1;
|
|
871
871
|
var onCancellation = tmp0_safe_receiver == null ? null : bindCancellationFun_0($this, tmp0_safe_receiver);
|
|
872
|
-
cancellable.
|
|
872
|
+
cancellable.p14(updCellResult_0, onCancellation);
|
|
873
873
|
}
|
|
874
874
|
break $l$block_0;
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
877
|
} else {
|
|
878
|
-
tmp2.
|
|
879
|
-
var tmp0_safe_receiver_0 = $this.
|
|
878
|
+
tmp2.h1c();
|
|
879
|
+
var tmp0_safe_receiver_0 = $this.k1b_1;
|
|
880
880
|
var onCancellation_0 = tmp0_safe_receiver_0 == null ? null : bindCancellationFun_0($this, tmp0_safe_receiver_0);
|
|
881
|
-
cancellable.
|
|
881
|
+
cancellable.p14(updCellResult, onCancellation_0);
|
|
882
882
|
}
|
|
883
883
|
} catch ($p) {
|
|
884
884
|
if ($p instanceof Error) {
|
|
885
885
|
var e = $p;
|
|
886
|
-
cancellable.
|
|
886
|
+
cancellable.l14();
|
|
887
887
|
throw e;
|
|
888
888
|
} else {
|
|
889
889
|
throw $p;
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
|
-
return cancellable.
|
|
892
|
+
return cancellable.s11();
|
|
893
893
|
};
|
|
894
894
|
}
|
|
895
895
|
function prepareReceiverForSuspension($this, $receiver, segment, index) {
|
|
896
|
-
$this.
|
|
897
|
-
$receiver.
|
|
896
|
+
$this.y1c();
|
|
897
|
+
$receiver.r14(segment, index);
|
|
898
898
|
}
|
|
899
899
|
function onClosedReceiveOnNoWaiterSuspend($this, cont) {
|
|
900
900
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
@@ -904,36 +904,36 @@ function onClosedReceiveOnNoWaiterSuspend($this, cont) {
|
|
|
904
904
|
cont.yc(tmp$ret$1);
|
|
905
905
|
}
|
|
906
906
|
function updateCellReceive($this, segment, index, r, waiter) {
|
|
907
|
-
var state = segment.
|
|
907
|
+
var state = segment.f1b(index);
|
|
908
908
|
if (state === null) {
|
|
909
909
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
910
|
-
var this_0 = $this.
|
|
910
|
+
var this_0 = $this.l1b_1.kotlinx$atomicfu$value;
|
|
911
911
|
var senders = bitwiseAnd(this_0, new (Long())(-1, 268435455));
|
|
912
912
|
if (compare(r, senders) >= 0) {
|
|
913
913
|
if (waiter === null) {
|
|
914
914
|
return get_SUSPEND_NO_WAITER();
|
|
915
915
|
}
|
|
916
|
-
if (segment.
|
|
916
|
+
if (segment.h1b(index, state, waiter)) {
|
|
917
917
|
expandBuffer($this);
|
|
918
918
|
return get_SUSPEND();
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
921
|
} else if (state === get_BUFFERED())
|
|
922
|
-
if (segment.
|
|
922
|
+
if (segment.h1b(index, state, get_DONE_RCV())) {
|
|
923
923
|
expandBuffer($this);
|
|
924
|
-
return segment.
|
|
924
|
+
return segment.d1b(index);
|
|
925
925
|
}
|
|
926
926
|
return updateCellReceiveSlow($this, segment, index, r, waiter);
|
|
927
927
|
}
|
|
928
928
|
function updateCellReceiveSlow($this, segment, index, r, waiter) {
|
|
929
929
|
$l$loop: while (true) {
|
|
930
|
-
var state = segment.
|
|
930
|
+
var state = segment.f1b(index);
|
|
931
931
|
if (state === null || state === get_IN_BUFFER()) {
|
|
932
932
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
933
|
-
var this_0 = $this.
|
|
933
|
+
var this_0 = $this.l1b_1.kotlinx$atomicfu$value;
|
|
934
934
|
var senders = bitwiseAnd(this_0, new (Long())(-1, 268435455));
|
|
935
935
|
if (compare(r, senders) < 0) {
|
|
936
|
-
if (segment.
|
|
936
|
+
if (segment.h1b(index, state, get_POISONED())) {
|
|
937
937
|
expandBuffer($this);
|
|
938
938
|
return get_FAILED();
|
|
939
939
|
}
|
|
@@ -941,15 +941,15 @@ function updateCellReceiveSlow($this, segment, index, r, waiter) {
|
|
|
941
941
|
if (waiter === null) {
|
|
942
942
|
return get_SUSPEND_NO_WAITER();
|
|
943
943
|
}
|
|
944
|
-
if (segment.
|
|
944
|
+
if (segment.h1b(index, state, waiter)) {
|
|
945
945
|
expandBuffer($this);
|
|
946
946
|
return get_SUSPEND();
|
|
947
947
|
}
|
|
948
948
|
}
|
|
949
949
|
} else if (state === get_BUFFERED()) {
|
|
950
|
-
if (segment.
|
|
950
|
+
if (segment.h1b(index, state, get_DONE_RCV())) {
|
|
951
951
|
expandBuffer($this);
|
|
952
|
-
return segment.
|
|
952
|
+
return segment.d1b(index);
|
|
953
953
|
}
|
|
954
954
|
} else if (state === get_INTERRUPTED_SEND())
|
|
955
955
|
return get_FAILED();
|
|
@@ -961,23 +961,23 @@ function updateCellReceiveSlow($this, segment, index, r, waiter) {
|
|
|
961
961
|
} else if (state === get_RESUMING_BY_EB())
|
|
962
962
|
continue $l$loop;
|
|
963
963
|
else {
|
|
964
|
-
if (segment.
|
|
964
|
+
if (segment.h1b(index, state, get_RESUMING_BY_RCV())) {
|
|
965
965
|
var helpExpandBuffer = state instanceof WaiterEB();
|
|
966
966
|
var tmp;
|
|
967
967
|
if (state instanceof WaiterEB()) {
|
|
968
|
-
tmp = state.
|
|
968
|
+
tmp = state.s1c_1;
|
|
969
969
|
} else {
|
|
970
970
|
tmp = state;
|
|
971
971
|
}
|
|
972
972
|
var sender = tmp;
|
|
973
973
|
var tmp_0;
|
|
974
974
|
if (tryResumeSender($this, sender, segment, index)) {
|
|
975
|
-
segment.
|
|
975
|
+
segment.g1b(index, get_DONE_RCV());
|
|
976
976
|
expandBuffer($this);
|
|
977
|
-
tmp_0 = segment.
|
|
977
|
+
tmp_0 = segment.d1b(index);
|
|
978
978
|
} else {
|
|
979
|
-
segment.
|
|
980
|
-
segment.
|
|
979
|
+
segment.g1b(index, get_INTERRUPTED_SEND());
|
|
980
|
+
segment.v1b(index, false);
|
|
981
981
|
if (helpExpandBuffer) {
|
|
982
982
|
expandBuffer($this);
|
|
983
983
|
}
|
|
@@ -998,14 +998,14 @@ function tryResumeSender($this, $receiver, segment, index) {
|
|
|
998
998
|
if (isInterface($receiver, SelectInstance())) {
|
|
999
999
|
if (!($receiver instanceof SelectImplementation()))
|
|
1000
1000
|
THROW_CCE();
|
|
1001
|
-
var trySelectResult = $receiver.
|
|
1001
|
+
var trySelectResult = $receiver.d1d($this, Unit_instance);
|
|
1002
1002
|
if (trySelectResult === TrySelectDetailedResult_REREGISTER_getInstance()) {
|
|
1003
|
-
segment.
|
|
1003
|
+
segment.e1b(index);
|
|
1004
1004
|
}
|
|
1005
1005
|
tmp = trySelectResult === TrySelectDetailedResult_SUCCESSFUL_getInstance();
|
|
1006
1006
|
} else {
|
|
1007
1007
|
if ($receiver instanceof SendBroadcast()) {
|
|
1008
|
-
tmp = tryResume0($receiver.
|
|
1008
|
+
tmp = tryResume0($receiver.z1c_1, true);
|
|
1009
1009
|
} else {
|
|
1010
1010
|
// Inline function 'kotlin.error' call
|
|
1011
1011
|
var message = 'Unexpected waiter: ' + toString_0($receiver);
|
|
@@ -1018,21 +1018,21 @@ function tryResumeSender($this, $receiver, segment, index) {
|
|
|
1018
1018
|
function expandBuffer($this) {
|
|
1019
1019
|
if (_get_isRendezvousOrUnlimited__3mdufi($this))
|
|
1020
1020
|
return Unit_instance;
|
|
1021
|
-
var segment = $this.
|
|
1021
|
+
var segment = $this.r1b_1.kotlinx$atomicfu$value;
|
|
1022
1022
|
try_again: while (true) {
|
|
1023
|
-
var b = $this.
|
|
1023
|
+
var b = $this.n1b_1.atomicfu$getAndIncrement$long();
|
|
1024
1024
|
// Inline function 'kotlin.Long.div' call
|
|
1025
1025
|
var other = get_SEGMENT_SIZE();
|
|
1026
1026
|
var id = divide(b, fromInt(other));
|
|
1027
|
-
var s = $this.
|
|
1027
|
+
var s = $this.n1c();
|
|
1028
1028
|
if (compare(s, b) <= 0) {
|
|
1029
|
-
if (compare(segment.
|
|
1029
|
+
if (compare(segment.m13_1, id) < 0 && !(segment.d1c() == null)) {
|
|
1030
1030
|
moveSegmentBufferEndToSpecifiedOrLast($this, id, segment);
|
|
1031
1031
|
}
|
|
1032
1032
|
incCompletedExpandBufferAttempts($this);
|
|
1033
1033
|
return Unit_instance;
|
|
1034
1034
|
}
|
|
1035
|
-
if (!equalsLong(segment.
|
|
1035
|
+
if (!equalsLong(segment.m13_1, id)) {
|
|
1036
1036
|
var tmp0_elvis_lhs = findSegmentBufferEnd($this, id, segment, b);
|
|
1037
1037
|
var tmp;
|
|
1038
1038
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1056,17 +1056,17 @@ function expandBuffer($this) {
|
|
|
1056
1056
|
}
|
|
1057
1057
|
}
|
|
1058
1058
|
function updateCellExpandBuffer($this, segment, index, b) {
|
|
1059
|
-
var state = segment.
|
|
1059
|
+
var state = segment.f1b(index);
|
|
1060
1060
|
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
1061
|
-
if (compare(b, $this.
|
|
1062
|
-
if (segment.
|
|
1061
|
+
if (compare(b, $this.m1b_1.kotlinx$atomicfu$value) >= 0) {
|
|
1062
|
+
if (segment.h1b(index, state, get_RESUMING_BY_EB())) {
|
|
1063
1063
|
var tmp;
|
|
1064
1064
|
if (tryResumeSender($this, state, segment, index)) {
|
|
1065
|
-
segment.
|
|
1065
|
+
segment.g1b(index, get_BUFFERED());
|
|
1066
1066
|
tmp = true;
|
|
1067
1067
|
} else {
|
|
1068
|
-
segment.
|
|
1069
|
-
segment.
|
|
1068
|
+
segment.g1b(index, get_INTERRUPTED_SEND());
|
|
1069
|
+
segment.v1b(index, false);
|
|
1070
1070
|
tmp = false;
|
|
1071
1071
|
}
|
|
1072
1072
|
return tmp;
|
|
@@ -1077,20 +1077,20 @@ function updateCellExpandBuffer($this, segment, index, b) {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
function updateCellExpandBufferSlow($this, segment, index, b) {
|
|
1079
1079
|
$l$loop: while (true) {
|
|
1080
|
-
var state = segment.
|
|
1080
|
+
var state = segment.f1b(index);
|
|
1081
1081
|
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
1082
|
-
if (compare(b, $this.
|
|
1083
|
-
if (segment.
|
|
1082
|
+
if (compare(b, $this.m1b_1.kotlinx$atomicfu$value) < 0) {
|
|
1083
|
+
if (segment.h1b(index, state, new (WaiterEB())(state)))
|
|
1084
1084
|
return true;
|
|
1085
1085
|
} else {
|
|
1086
|
-
if (segment.
|
|
1086
|
+
if (segment.h1b(index, state, get_RESUMING_BY_EB())) {
|
|
1087
1087
|
var tmp;
|
|
1088
1088
|
if (tryResumeSender($this, state, segment, index)) {
|
|
1089
|
-
segment.
|
|
1089
|
+
segment.g1b(index, get_BUFFERED());
|
|
1090
1090
|
tmp = true;
|
|
1091
1091
|
} else {
|
|
1092
|
-
segment.
|
|
1093
|
-
segment.
|
|
1092
|
+
segment.g1b(index, get_INTERRUPTED_SEND());
|
|
1093
|
+
segment.v1b(index, false);
|
|
1094
1094
|
tmp = false;
|
|
1095
1095
|
}
|
|
1096
1096
|
return tmp;
|
|
@@ -1101,7 +1101,7 @@ function updateCellExpandBufferSlow($this, segment, index, b) {
|
|
|
1101
1101
|
return false;
|
|
1102
1102
|
else {
|
|
1103
1103
|
if (state === null) {
|
|
1104
|
-
if (segment.
|
|
1104
|
+
if (segment.h1b(index, state, get_IN_BUFFER()))
|
|
1105
1105
|
return true;
|
|
1106
1106
|
} else {
|
|
1107
1107
|
if (state === get_BUFFERED())
|
|
@@ -1131,12 +1131,12 @@ function updateCellExpandBufferSlow($this, segment, index, b) {
|
|
|
1131
1131
|
function incCompletedExpandBufferAttempts($this, nAttempts) {
|
|
1132
1132
|
nAttempts = nAttempts === VOID ? new (Long())(1, 0) : nAttempts;
|
|
1133
1133
|
// Inline function 'kotlin.also' call
|
|
1134
|
-
var this_0 = $this.
|
|
1134
|
+
var this_0 = $this.o1b_1.atomicfu$addAndGet$long(nAttempts);
|
|
1135
1135
|
// Inline function 'kotlinx.coroutines.channels.ebPauseExpandBuffers' call
|
|
1136
1136
|
if (!equalsLong(bitwiseAnd(this_0, new (Long())(0, 1073741824)), new (Long())(0, 0))) {
|
|
1137
1137
|
$l$loop: while (true) {
|
|
1138
1138
|
// Inline function 'kotlinx.coroutines.channels.ebPauseExpandBuffers' call
|
|
1139
|
-
var this_1 = $this.
|
|
1139
|
+
var this_1 = $this.o1b_1.kotlinx$atomicfu$value;
|
|
1140
1140
|
if (!!equalsLong(bitwiseAnd(this_1, new (Long())(0, 1073741824)), new (Long())(0, 0))) {
|
|
1141
1141
|
break $l$loop;
|
|
1142
1142
|
}
|
|
@@ -1148,26 +1148,26 @@ function BufferedChannelIterator() {
|
|
|
1148
1148
|
if (BufferedChannelIteratorClass === VOID) {
|
|
1149
1149
|
class $ {
|
|
1150
1150
|
constructor($outer) {
|
|
1151
|
-
this.
|
|
1152
|
-
this.
|
|
1153
|
-
this.
|
|
1151
|
+
this.l1c_1 = $outer;
|
|
1152
|
+
this.j1c_1 = get_NO_RECEIVE_RESULT();
|
|
1153
|
+
this.k1c_1 = null;
|
|
1154
1154
|
}
|
|
1155
|
-
*
|
|
1155
|
+
*e1d($completion) {
|
|
1156
1156
|
var tmp;
|
|
1157
|
-
if (!(this.
|
|
1157
|
+
if (!(this.j1c_1 === get_NO_RECEIVE_RESULT()) && !(this.j1c_1 === get_CHANNEL_CLOSED())) {
|
|
1158
1158
|
tmp = true;
|
|
1159
1159
|
} else {
|
|
1160
|
-
var tmp0 = this.
|
|
1160
|
+
var tmp0 = this.l1c_1;
|
|
1161
1161
|
var tmp$ret$0;
|
|
1162
1162
|
$l$block_0: {
|
|
1163
1163
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImpl' call
|
|
1164
|
-
var segment = tmp0.
|
|
1164
|
+
var segment = tmp0.q1b_1.kotlinx$atomicfu$value;
|
|
1165
1165
|
$l$loop_0: while (true) {
|
|
1166
|
-
if (tmp0.
|
|
1166
|
+
if (tmp0.o1c()) {
|
|
1167
1167
|
tmp$ret$0 = onClosedHasNext(this);
|
|
1168
1168
|
break $l$block_0;
|
|
1169
1169
|
}
|
|
1170
|
-
var r = tmp0.
|
|
1170
|
+
var r = tmp0.m1b_1.atomicfu$getAndIncrement$long();
|
|
1171
1171
|
// Inline function 'kotlin.Long.div' call
|
|
1172
1172
|
var other = get_SEGMENT_SIZE();
|
|
1173
1173
|
var id = divide(r, fromInt(other));
|
|
@@ -1175,7 +1175,7 @@ function BufferedChannelIterator() {
|
|
|
1175
1175
|
var other_0 = get_SEGMENT_SIZE();
|
|
1176
1176
|
var tmp$ret$3 = modulo(r, fromInt(other_0));
|
|
1177
1177
|
var i = convertToInt(tmp$ret$3);
|
|
1178
|
-
if (!equalsLong(segment.
|
|
1178
|
+
if (!equalsLong(segment.m13_1, id)) {
|
|
1179
1179
|
var tmp0_elvis_lhs = findSegmentReceive(tmp0, id, segment);
|
|
1180
1180
|
var tmp_0;
|
|
1181
1181
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1198,16 +1198,16 @@ function BufferedChannelIterator() {
|
|
|
1198
1198
|
var message = 'unreachable';
|
|
1199
1199
|
throw IllegalStateException().o(toString_0(message));
|
|
1200
1200
|
} else if (updCellResult === get_FAILED()) {
|
|
1201
|
-
if (compare(r, tmp0.
|
|
1202
|
-
segment.
|
|
1201
|
+
if (compare(r, tmp0.n1c()) < 0) {
|
|
1202
|
+
segment.h1c();
|
|
1203
1203
|
}
|
|
1204
1204
|
continue $l$loop_0;
|
|
1205
1205
|
} else if (updCellResult === get_SUSPEND_NO_WAITER()) {
|
|
1206
1206
|
var segm = segment;
|
|
1207
1207
|
return yield* /*#__NOINLINE__*/hasNextOnNoWaiterSuspend(this, segm, i, r, $completion);
|
|
1208
1208
|
} else {
|
|
1209
|
-
segment.
|
|
1210
|
-
this.
|
|
1209
|
+
segment.h1c();
|
|
1210
|
+
this.j1c_1 = updCellResult;
|
|
1211
1211
|
tmp_1 = true;
|
|
1212
1212
|
}
|
|
1213
1213
|
tmp$ret$0 = tmp_1;
|
|
@@ -1218,38 +1218,38 @@ function BufferedChannelIterator() {
|
|
|
1218
1218
|
}
|
|
1219
1219
|
return tmp;
|
|
1220
1220
|
}
|
|
1221
|
-
|
|
1222
|
-
var tmp0_safe_receiver = this.
|
|
1221
|
+
r14(segment, index) {
|
|
1222
|
+
var tmp0_safe_receiver = this.k1c_1;
|
|
1223
1223
|
if (tmp0_safe_receiver == null)
|
|
1224
1224
|
null;
|
|
1225
1225
|
else {
|
|
1226
|
-
tmp0_safe_receiver.
|
|
1226
|
+
tmp0_safe_receiver.r14(segment, index);
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
1229
|
n1() {
|
|
1230
|
-
var result = this.
|
|
1230
|
+
var result = this.j1c_1;
|
|
1231
1231
|
// Inline function 'kotlin.check' call
|
|
1232
1232
|
if (!!(result === get_NO_RECEIVE_RESULT())) {
|
|
1233
1233
|
var message = '`hasNext()` has not been invoked';
|
|
1234
1234
|
throw IllegalStateException().o(toString_0(message));
|
|
1235
1235
|
}
|
|
1236
|
-
this.
|
|
1236
|
+
this.j1c_1 = get_NO_RECEIVE_RESULT();
|
|
1237
1237
|
if (result === get_CHANNEL_CLOSED())
|
|
1238
|
-
throw recoverStackTrace(_get_receiveException__foorc1(this.
|
|
1238
|
+
throw recoverStackTrace(_get_receiveException__foorc1(this.l1c_1));
|
|
1239
1239
|
return result;
|
|
1240
1240
|
}
|
|
1241
|
-
|
|
1242
|
-
var cont = ensureNotNull(this.
|
|
1243
|
-
this.
|
|
1244
|
-
this.
|
|
1245
|
-
var tmp0_safe_receiver = this.
|
|
1246
|
-
return tryResume0(cont, true, tmp0_safe_receiver == null ? null : bindCancellationFun(this.
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
|
-
var cont = ensureNotNull(this.
|
|
1250
|
-
this.
|
|
1251
|
-
this.
|
|
1252
|
-
var cause = this.
|
|
1241
|
+
t1c(element) {
|
|
1242
|
+
var cont = ensureNotNull(this.k1c_1);
|
|
1243
|
+
this.k1c_1 = null;
|
|
1244
|
+
this.j1c_1 = element;
|
|
1245
|
+
var tmp0_safe_receiver = this.l1c_1.k1b_1;
|
|
1246
|
+
return tryResume0(cont, true, tmp0_safe_receiver == null ? null : bindCancellationFun(this.l1c_1, tmp0_safe_receiver, element));
|
|
1247
|
+
}
|
|
1248
|
+
f1d() {
|
|
1249
|
+
var cont = ensureNotNull(this.k1c_1);
|
|
1250
|
+
this.k1c_1 = null;
|
|
1251
|
+
this.j1c_1 = get_CHANNEL_CLOSED();
|
|
1252
|
+
var cause = this.l1c_1.m1c();
|
|
1253
1253
|
if (cause == null) {
|
|
1254
1254
|
// Inline function 'kotlin.coroutines.resume' call
|
|
1255
1255
|
// Inline function 'kotlin.Companion.success' call
|
|
@@ -1270,11 +1270,11 @@ function BufferedChannelIterator() {
|
|
|
1270
1270
|
return BufferedChannelIteratorClass;
|
|
1271
1271
|
}
|
|
1272
1272
|
function _get_receiveException__foorc1($this) {
|
|
1273
|
-
var tmp0_elvis_lhs = $this.
|
|
1274
|
-
return tmp0_elvis_lhs == null ? ClosedReceiveChannelException().
|
|
1273
|
+
var tmp0_elvis_lhs = $this.m1c();
|
|
1274
|
+
return tmp0_elvis_lhs == null ? ClosedReceiveChannelException().k1d('Channel was closed') : tmp0_elvis_lhs;
|
|
1275
1275
|
}
|
|
1276
1276
|
function invokeCloseHandler($this) {
|
|
1277
|
-
var tmp0 = $this.
|
|
1277
|
+
var tmp0 = $this.u1b_1;
|
|
1278
1278
|
var tmp$ret$0;
|
|
1279
1279
|
$l$block: {
|
|
1280
1280
|
// Inline function 'kotlinx.atomicfu.getAndUpdate' call
|
|
@@ -1303,10 +1303,10 @@ function invokeCloseHandler($this) {
|
|
|
1303
1303
|
var closeHandler = tmp_0;
|
|
1304
1304
|
if (typeof closeHandler !== 'function')
|
|
1305
1305
|
THROW_CCE();
|
|
1306
|
-
closeHandler($this.
|
|
1306
|
+
closeHandler($this.m1c());
|
|
1307
1307
|
}
|
|
1308
1308
|
function markClosed($this) {
|
|
1309
|
-
var tmp0 = $this.
|
|
1309
|
+
var tmp0 = $this.l1b_1;
|
|
1310
1310
|
var tmp$ret$0;
|
|
1311
1311
|
$l$block: {
|
|
1312
1312
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
@@ -1341,7 +1341,7 @@ function markClosed($this) {
|
|
|
1341
1341
|
return tmp$ret$0;
|
|
1342
1342
|
}
|
|
1343
1343
|
function markCancelled($this) {
|
|
1344
|
-
var tmp0 = $this.
|
|
1344
|
+
var tmp0 = $this.l1b_1;
|
|
1345
1345
|
var tmp$ret$0;
|
|
1346
1346
|
$l$block: {
|
|
1347
1347
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
@@ -1360,7 +1360,7 @@ function markCancelled($this) {
|
|
|
1360
1360
|
return tmp$ret$0;
|
|
1361
1361
|
}
|
|
1362
1362
|
function markCancellationStarted($this) {
|
|
1363
|
-
var tmp0 = $this.
|
|
1363
|
+
var tmp0 = $this.l1b_1;
|
|
1364
1364
|
var tmp$ret$0;
|
|
1365
1365
|
$l$block: {
|
|
1366
1366
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
@@ -1386,14 +1386,14 @@ function markCancellationStarted($this) {
|
|
|
1386
1386
|
return tmp$ret$0;
|
|
1387
1387
|
}
|
|
1388
1388
|
function completeCloseOrCancel($this) {
|
|
1389
|
-
$this.
|
|
1389
|
+
$this.l1d();
|
|
1390
1390
|
}
|
|
1391
1391
|
function completeClose($this, sendersCur) {
|
|
1392
1392
|
var lastSegment = closeLinkedList($this);
|
|
1393
|
-
if ($this.
|
|
1393
|
+
if ($this.n1d()) {
|
|
1394
1394
|
var lastBufferedCellGlobalIndex = markAllEmptyCellsAsClosed($this, lastSegment);
|
|
1395
1395
|
if (!equalsLong(lastBufferedCellGlobalIndex, new (Long())(-1, -1))) {
|
|
1396
|
-
$this.
|
|
1396
|
+
$this.m1d(lastBufferedCellGlobalIndex);
|
|
1397
1397
|
}
|
|
1398
1398
|
}
|
|
1399
1399
|
cancelSuspendedReceiveRequests($this, lastSegment, sendersCur);
|
|
@@ -1404,14 +1404,14 @@ function completeCancel($this, sendersCur) {
|
|
|
1404
1404
|
removeUnprocessedElements($this, lastSegment);
|
|
1405
1405
|
}
|
|
1406
1406
|
function closeLinkedList($this) {
|
|
1407
|
-
var lastSegment = $this.
|
|
1407
|
+
var lastSegment = $this.r1b_1.kotlinx$atomicfu$value;
|
|
1408
1408
|
// Inline function 'kotlin.let' call
|
|
1409
|
-
var it = $this.
|
|
1410
|
-
if (compare(it.
|
|
1409
|
+
var it = $this.p1b_1.kotlinx$atomicfu$value;
|
|
1410
|
+
if (compare(it.m13_1, lastSegment.m13_1) > 0)
|
|
1411
1411
|
lastSegment = it;
|
|
1412
1412
|
// Inline function 'kotlin.let' call
|
|
1413
|
-
var it_0 = $this.
|
|
1414
|
-
if (compare(it_0.
|
|
1413
|
+
var it_0 = $this.q1b_1.kotlinx$atomicfu$value;
|
|
1414
|
+
if (compare(it_0.m13_1, lastSegment.m13_1) > 0)
|
|
1415
1415
|
lastSegment = it_0;
|
|
1416
1416
|
return close(lastSegment);
|
|
1417
1417
|
}
|
|
@@ -1423,19 +1423,19 @@ function markAllEmptyCellsAsClosed($this, lastSegment) {
|
|
|
1423
1423
|
do {
|
|
1424
1424
|
var index = inductionVariable;
|
|
1425
1425
|
inductionVariable = inductionVariable + -1 | 0;
|
|
1426
|
-
var tmp0 = segment.
|
|
1426
|
+
var tmp0 = segment.m13_1;
|
|
1427
1427
|
// Inline function 'kotlin.Long.times' call
|
|
1428
1428
|
var other = get_SEGMENT_SIZE();
|
|
1429
1429
|
// Inline function 'kotlin.Long.plus' call
|
|
1430
1430
|
var this_0 = multiply(tmp0, fromInt(other));
|
|
1431
1431
|
var globalIndex = add(this_0, fromInt(index));
|
|
1432
|
-
if (compare(globalIndex, $this.
|
|
1432
|
+
if (compare(globalIndex, $this.q1c()) < 0)
|
|
1433
1433
|
return new (Long())(-1, -1);
|
|
1434
1434
|
cell_update: while (true) {
|
|
1435
|
-
var state = segment.
|
|
1435
|
+
var state = segment.f1b(index);
|
|
1436
1436
|
if (state === null || state === get_IN_BUFFER()) {
|
|
1437
|
-
if (segment.
|
|
1438
|
-
segment.
|
|
1437
|
+
if (segment.h1b(index, state, get_CHANNEL_CLOSED())) {
|
|
1438
|
+
segment.x1b();
|
|
1439
1439
|
break cell_update;
|
|
1440
1440
|
}
|
|
1441
1441
|
} else if (state === get_BUFFERED())
|
|
@@ -1445,7 +1445,7 @@ function markAllEmptyCellsAsClosed($this, lastSegment) {
|
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
1447
1447
|
while (0 <= inductionVariable);
|
|
1448
|
-
var tmp0_elvis_lhs = segment.
|
|
1448
|
+
var tmp0_elvis_lhs = segment.g1c();
|
|
1449
1449
|
var tmp;
|
|
1450
1450
|
if (tmp0_elvis_lhs == null) {
|
|
1451
1451
|
return new (Long())(-1, -1);
|
|
@@ -1456,7 +1456,7 @@ function markAllEmptyCellsAsClosed($this, lastSegment) {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
1458
|
function removeUnprocessedElements($this, lastSegment) {
|
|
1459
|
-
var onUndeliveredElement = $this.
|
|
1459
|
+
var onUndeliveredElement = $this.k1b_1;
|
|
1460
1460
|
var undeliveredElementException = null;
|
|
1461
1461
|
var suspendedSenders = _InlineList___init__impl__z8n56();
|
|
1462
1462
|
var segment = lastSegment;
|
|
@@ -1466,33 +1466,33 @@ function removeUnprocessedElements($this, lastSegment) {
|
|
|
1466
1466
|
do {
|
|
1467
1467
|
var index = inductionVariable;
|
|
1468
1468
|
inductionVariable = inductionVariable + -1 | 0;
|
|
1469
|
-
var tmp0 = segment.
|
|
1469
|
+
var tmp0 = segment.m13_1;
|
|
1470
1470
|
// Inline function 'kotlin.Long.times' call
|
|
1471
1471
|
var other = get_SEGMENT_SIZE();
|
|
1472
1472
|
// Inline function 'kotlin.Long.plus' call
|
|
1473
1473
|
var this_0 = multiply(tmp0, fromInt(other));
|
|
1474
1474
|
var globalIndex = add(this_0, fromInt(index));
|
|
1475
1475
|
update_cell: while (true) {
|
|
1476
|
-
var state = segment.
|
|
1476
|
+
var state = segment.f1b(index);
|
|
1477
1477
|
if (state === get_DONE_RCV())
|
|
1478
1478
|
break process_segments;
|
|
1479
1479
|
else {
|
|
1480
1480
|
if (state === get_BUFFERED()) {
|
|
1481
|
-
if (compare(globalIndex, $this.
|
|
1481
|
+
if (compare(globalIndex, $this.q1c()) < 0)
|
|
1482
1482
|
break process_segments;
|
|
1483
|
-
if (segment.
|
|
1483
|
+
if (segment.h1b(index, state, get_CHANNEL_CLOSED())) {
|
|
1484
1484
|
if (!(onUndeliveredElement == null)) {
|
|
1485
|
-
var element = segment.
|
|
1485
|
+
var element = segment.c1b(index);
|
|
1486
1486
|
undeliveredElementException = callUndeliveredElementCatchingException(onUndeliveredElement, element, undeliveredElementException);
|
|
1487
1487
|
}
|
|
1488
|
-
segment.
|
|
1489
|
-
segment.
|
|
1488
|
+
segment.e1b(index);
|
|
1489
|
+
segment.x1b();
|
|
1490
1490
|
break update_cell;
|
|
1491
1491
|
}
|
|
1492
1492
|
} else {
|
|
1493
1493
|
if (state === get_IN_BUFFER() || state === null) {
|
|
1494
|
-
if (segment.
|
|
1495
|
-
segment.
|
|
1494
|
+
if (segment.h1b(index, state, get_CHANNEL_CLOSED())) {
|
|
1495
|
+
segment.x1b();
|
|
1496
1496
|
break update_cell;
|
|
1497
1497
|
}
|
|
1498
1498
|
} else {
|
|
@@ -1503,23 +1503,23 @@ function removeUnprocessedElements($this, lastSegment) {
|
|
|
1503
1503
|
tmp = state instanceof WaiterEB();
|
|
1504
1504
|
}
|
|
1505
1505
|
if (tmp) {
|
|
1506
|
-
if (compare(globalIndex, $this.
|
|
1506
|
+
if (compare(globalIndex, $this.q1c()) < 0)
|
|
1507
1507
|
break process_segments;
|
|
1508
1508
|
var tmp_0;
|
|
1509
1509
|
if (state instanceof WaiterEB()) {
|
|
1510
|
-
tmp_0 = state.
|
|
1510
|
+
tmp_0 = state.s1c_1;
|
|
1511
1511
|
} else {
|
|
1512
1512
|
tmp_0 = isInterface(state, Waiter()) ? state : THROW_CCE();
|
|
1513
1513
|
}
|
|
1514
1514
|
var sender = tmp_0;
|
|
1515
|
-
if (segment.
|
|
1515
|
+
if (segment.h1b(index, state, get_CHANNEL_CLOSED())) {
|
|
1516
1516
|
if (!(onUndeliveredElement == null)) {
|
|
1517
|
-
var element_0 = segment.
|
|
1517
|
+
var element_0 = segment.c1b(index);
|
|
1518
1518
|
undeliveredElementException = callUndeliveredElementCatchingException(onUndeliveredElement, element_0, undeliveredElementException);
|
|
1519
1519
|
}
|
|
1520
1520
|
suspendedSenders = InlineList__plus_impl_nuetvo(suspendedSenders, sender);
|
|
1521
|
-
segment.
|
|
1522
|
-
segment.
|
|
1521
|
+
segment.e1b(index);
|
|
1522
|
+
segment.x1b();
|
|
1523
1523
|
break update_cell;
|
|
1524
1524
|
}
|
|
1525
1525
|
} else {
|
|
@@ -1539,7 +1539,7 @@ function removeUnprocessedElements($this, lastSegment) {
|
|
|
1539
1539
|
}
|
|
1540
1540
|
}
|
|
1541
1541
|
while (0 <= inductionVariable);
|
|
1542
|
-
var tmp0_elvis_lhs = segment.
|
|
1542
|
+
var tmp0_elvis_lhs = segment.g1c();
|
|
1543
1543
|
var tmp_1;
|
|
1544
1544
|
if (tmp0_elvis_lhs == null) {
|
|
1545
1545
|
break process_segments;
|
|
@@ -1591,7 +1591,7 @@ function cancelSuspendedReceiveRequests($this, lastSegment, sendersCounter) {
|
|
|
1591
1591
|
do {
|
|
1592
1592
|
var index = inductionVariable;
|
|
1593
1593
|
inductionVariable = inductionVariable + -1 | 0;
|
|
1594
|
-
var tmp0 = segment.
|
|
1594
|
+
var tmp0 = segment.m13_1;
|
|
1595
1595
|
// Inline function 'kotlin.Long.times' call
|
|
1596
1596
|
var other = get_SEGMENT_SIZE();
|
|
1597
1597
|
// Inline function 'kotlin.Long.plus' call
|
|
@@ -1600,24 +1600,24 @@ function cancelSuspendedReceiveRequests($this, lastSegment, sendersCounter) {
|
|
|
1600
1600
|
if (compare(tmp$ret$1, sendersCounter) < 0)
|
|
1601
1601
|
break process_segments;
|
|
1602
1602
|
cell_update: while (true) {
|
|
1603
|
-
var state = segment.
|
|
1603
|
+
var state = segment.f1b(index);
|
|
1604
1604
|
if (state === null || state === get_IN_BUFFER()) {
|
|
1605
|
-
if (segment.
|
|
1606
|
-
segment.
|
|
1605
|
+
if (segment.h1b(index, state, get_CHANNEL_CLOSED())) {
|
|
1606
|
+
segment.x1b();
|
|
1607
1607
|
break cell_update;
|
|
1608
1608
|
}
|
|
1609
1609
|
} else {
|
|
1610
1610
|
if (state instanceof WaiterEB()) {
|
|
1611
|
-
if (segment.
|
|
1612
|
-
suspendedReceivers = InlineList__plus_impl_nuetvo(suspendedReceivers, state.
|
|
1613
|
-
segment.
|
|
1611
|
+
if (segment.h1b(index, state, get_CHANNEL_CLOSED())) {
|
|
1612
|
+
suspendedReceivers = InlineList__plus_impl_nuetvo(suspendedReceivers, state.s1c_1);
|
|
1613
|
+
segment.v1b(index, true);
|
|
1614
1614
|
break cell_update;
|
|
1615
1615
|
}
|
|
1616
1616
|
} else {
|
|
1617
1617
|
if (isInterface(state, Waiter())) {
|
|
1618
|
-
if (segment.
|
|
1618
|
+
if (segment.h1b(index, state, get_CHANNEL_CLOSED())) {
|
|
1619
1619
|
suspendedReceivers = InlineList__plus_impl_nuetvo(suspendedReceivers, state);
|
|
1620
|
-
segment.
|
|
1620
|
+
segment.v1b(index, true);
|
|
1621
1621
|
break cell_update;
|
|
1622
1622
|
}
|
|
1623
1623
|
} else {
|
|
@@ -1628,7 +1628,7 @@ function cancelSuspendedReceiveRequests($this, lastSegment, sendersCounter) {
|
|
|
1628
1628
|
}
|
|
1629
1629
|
}
|
|
1630
1630
|
while (0 <= inductionVariable);
|
|
1631
|
-
segment = segment.
|
|
1631
|
+
segment = segment.g1c();
|
|
1632
1632
|
}
|
|
1633
1633
|
var tmp0_0 = suspendedReceivers;
|
|
1634
1634
|
$l$block: {
|
|
@@ -1666,7 +1666,7 @@ function resumeSenderOnCancelledChannel($this, $receiver) {
|
|
|
1666
1666
|
function resumeWaiterOnClosedChannel($this, $receiver, receiver) {
|
|
1667
1667
|
if ($receiver instanceof SendBroadcast()) {
|
|
1668
1668
|
// Inline function 'kotlin.coroutines.resume' call
|
|
1669
|
-
var this_0 = $receiver.
|
|
1669
|
+
var this_0 = $receiver.z1c_1;
|
|
1670
1670
|
// Inline function 'kotlin.Companion.success' call
|
|
1671
1671
|
var tmp$ret$1 = _Result___init__impl__xyqfz8(false);
|
|
1672
1672
|
this_0.yc(tmp$ret$1);
|
|
@@ -1674,23 +1674,23 @@ function resumeWaiterOnClosedChannel($this, $receiver, receiver) {
|
|
|
1674
1674
|
if (isInterface($receiver, CancellableContinuation())) {
|
|
1675
1675
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
1676
1676
|
// Inline function 'kotlin.Companion.failure' call
|
|
1677
|
-
var exception = receiver ? _get_receiveException__foorc1($this) : $this.
|
|
1677
|
+
var exception = receiver ? _get_receiveException__foorc1($this) : $this.p1c();
|
|
1678
1678
|
var tmp$ret$3 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
1679
1679
|
$receiver.yc(tmp$ret$3);
|
|
1680
1680
|
} else {
|
|
1681
1681
|
if ($receiver instanceof ReceiveCatching()) {
|
|
1682
|
-
var tmp0 = $receiver.
|
|
1682
|
+
var tmp0 = $receiver.w1c_1;
|
|
1683
1683
|
// Inline function 'kotlin.coroutines.resume' call
|
|
1684
1684
|
// Inline function 'kotlin.Companion.success' call
|
|
1685
|
-
var value = new (ChannelResult())(Companion_getInstance().
|
|
1685
|
+
var value = new (ChannelResult())(Companion_getInstance().o1d($this.m1c()));
|
|
1686
1686
|
var tmp$ret$5 = _Result___init__impl__xyqfz8(value);
|
|
1687
1687
|
tmp0.yc(tmp$ret$5);
|
|
1688
1688
|
} else {
|
|
1689
1689
|
if ($receiver instanceof BufferedChannelIterator()) {
|
|
1690
|
-
$receiver.
|
|
1690
|
+
$receiver.f1d();
|
|
1691
1691
|
} else {
|
|
1692
1692
|
if (isInterface($receiver, SelectInstance()))
|
|
1693
|
-
$receiver.
|
|
1693
|
+
$receiver.x1c($this, get_CHANNEL_CLOSED());
|
|
1694
1694
|
else {
|
|
1695
1695
|
// Inline function 'kotlin.error' call
|
|
1696
1696
|
var message = 'Unexpected waiter: ' + toString_0($receiver);
|
|
@@ -1722,7 +1722,7 @@ function isClosed($this, sendersAndCloseStatusCur, isClosedForReceive) {
|
|
|
1722
1722
|
|
|
1723
1723
|
var tmp$ret$1 = bitwiseAnd(sendersAndCloseStatusCur, new (Long())(-1, 268435455));
|
|
1724
1724
|
completeClose($this, tmp$ret$1);
|
|
1725
|
-
tmp = isClosedForReceive ? !$this.
|
|
1725
|
+
tmp = isClosedForReceive ? !$this.p1d() : true;
|
|
1726
1726
|
break;
|
|
1727
1727
|
case 3:
|
|
1728
1728
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
@@ -1743,9 +1743,9 @@ function isClosed($this, sendersAndCloseStatusCur, isClosedForReceive) {
|
|
|
1743
1743
|
}
|
|
1744
1744
|
function isCellNonEmpty($this, segment, index, globalIndex) {
|
|
1745
1745
|
while (true) {
|
|
1746
|
-
var state = segment.
|
|
1746
|
+
var state = segment.f1b(index);
|
|
1747
1747
|
if (state === null || state === get_IN_BUFFER()) {
|
|
1748
|
-
if (segment.
|
|
1748
|
+
if (segment.h1b(index, state, get_POISONED())) {
|
|
1749
1749
|
expandBuffer($this);
|
|
1750
1750
|
return false;
|
|
1751
1751
|
}
|
|
@@ -1764,11 +1764,11 @@ function isCellNonEmpty($this, segment, index, globalIndex) {
|
|
|
1764
1764
|
else if (state === get_RESUMING_BY_RCV())
|
|
1765
1765
|
return false;
|
|
1766
1766
|
else
|
|
1767
|
-
return equalsLong(globalIndex, $this.
|
|
1767
|
+
return equalsLong(globalIndex, $this.q1c());
|
|
1768
1768
|
}
|
|
1769
1769
|
}
|
|
1770
1770
|
function findSegmentSend($this, id, startFrom) {
|
|
1771
|
-
var tmp0 = $this.
|
|
1771
|
+
var tmp0 = $this.p1b_1;
|
|
1772
1772
|
var tmp6 = createSegmentFunction();
|
|
1773
1773
|
var tmp$ret$0;
|
|
1774
1774
|
$l$block_2: {
|
|
@@ -1787,22 +1787,22 @@ function findSegmentSend($this, id, startFrom) {
|
|
|
1787
1787
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
1788
1788
|
while (true) {
|
|
1789
1789
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
1790
|
-
if (compare(cur.
|
|
1790
|
+
if (compare(cur.m13_1, tmp2.m13_1) >= 0) {
|
|
1791
1791
|
tmp$ret$1 = true;
|
|
1792
1792
|
break $l$block_1;
|
|
1793
1793
|
}
|
|
1794
|
-
if (!tmp2.
|
|
1794
|
+
if (!tmp2.z1b()) {
|
|
1795
1795
|
tmp$ret$1 = false;
|
|
1796
1796
|
break $l$block_1;
|
|
1797
1797
|
}
|
|
1798
1798
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
1799
|
-
if (cur.
|
|
1799
|
+
if (cur.a1c()) {
|
|
1800
1800
|
cur.n6();
|
|
1801
1801
|
}
|
|
1802
1802
|
tmp$ret$1 = true;
|
|
1803
1803
|
break $l$block_1;
|
|
1804
1804
|
}
|
|
1805
|
-
if (tmp2.
|
|
1805
|
+
if (tmp2.a1c()) {
|
|
1806
1806
|
tmp2.n6();
|
|
1807
1807
|
}
|
|
1808
1808
|
}
|
|
@@ -1821,29 +1821,29 @@ function findSegmentSend($this, id, startFrom) {
|
|
|
1821
1821
|
var tmp_0;
|
|
1822
1822
|
if (_SegmentOrClosed___get_isClosed__impl__qmxmlo(it)) {
|
|
1823
1823
|
completeCloseOrCancel($this);
|
|
1824
|
-
var tmp0_0 = startFrom.
|
|
1824
|
+
var tmp0_0 = startFrom.m13_1;
|
|
1825
1825
|
// Inline function 'kotlin.Long.times' call
|
|
1826
1826
|
var other = get_SEGMENT_SIZE();
|
|
1827
1827
|
var tmp$ret$6 = multiply(tmp0_0, fromInt(other));
|
|
1828
|
-
if (compare(tmp$ret$6, $this.
|
|
1829
|
-
startFrom.
|
|
1828
|
+
if (compare(tmp$ret$6, $this.q1c()) < 0) {
|
|
1829
|
+
startFrom.h1c();
|
|
1830
1830
|
}
|
|
1831
1831
|
tmp_0 = null;
|
|
1832
1832
|
} else {
|
|
1833
1833
|
var segment = _SegmentOrClosed___get_segment__impl__jvcr9l(it);
|
|
1834
1834
|
var tmp_1;
|
|
1835
|
-
if (compare(segment.
|
|
1836
|
-
var tmp0_1 = segment.
|
|
1835
|
+
if (compare(segment.m13_1, id) > 0) {
|
|
1836
|
+
var tmp0_1 = segment.m13_1;
|
|
1837
1837
|
// Inline function 'kotlin.Long.times' call
|
|
1838
1838
|
var other_0 = get_SEGMENT_SIZE();
|
|
1839
1839
|
var tmp$ret$7 = multiply(tmp0_1, fromInt(other_0));
|
|
1840
1840
|
updateSendersCounterIfLower($this, tmp$ret$7);
|
|
1841
|
-
var tmp0_2 = segment.
|
|
1841
|
+
var tmp0_2 = segment.m13_1;
|
|
1842
1842
|
// Inline function 'kotlin.Long.times' call
|
|
1843
1843
|
var other_1 = get_SEGMENT_SIZE();
|
|
1844
1844
|
var tmp$ret$8 = multiply(tmp0_2, fromInt(other_1));
|
|
1845
|
-
if (compare(tmp$ret$8, $this.
|
|
1846
|
-
segment.
|
|
1845
|
+
if (compare(tmp$ret$8, $this.q1c()) < 0) {
|
|
1846
|
+
segment.h1c();
|
|
1847
1847
|
}
|
|
1848
1848
|
tmp_1 = null;
|
|
1849
1849
|
} else {
|
|
@@ -1855,7 +1855,7 @@ function findSegmentSend($this, id, startFrom) {
|
|
|
1855
1855
|
return tmp_0;
|
|
1856
1856
|
}
|
|
1857
1857
|
function findSegmentReceive($this, id, startFrom) {
|
|
1858
|
-
var tmp0 = $this.
|
|
1858
|
+
var tmp0 = $this.q1b_1;
|
|
1859
1859
|
var tmp6 = createSegmentFunction();
|
|
1860
1860
|
var tmp$ret$0;
|
|
1861
1861
|
$l$block_2: {
|
|
@@ -1874,22 +1874,22 @@ function findSegmentReceive($this, id, startFrom) {
|
|
|
1874
1874
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
1875
1875
|
while (true) {
|
|
1876
1876
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
1877
|
-
if (compare(cur.
|
|
1877
|
+
if (compare(cur.m13_1, tmp2.m13_1) >= 0) {
|
|
1878
1878
|
tmp$ret$1 = true;
|
|
1879
1879
|
break $l$block_1;
|
|
1880
1880
|
}
|
|
1881
|
-
if (!tmp2.
|
|
1881
|
+
if (!tmp2.z1b()) {
|
|
1882
1882
|
tmp$ret$1 = false;
|
|
1883
1883
|
break $l$block_1;
|
|
1884
1884
|
}
|
|
1885
1885
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
1886
|
-
if (cur.
|
|
1886
|
+
if (cur.a1c()) {
|
|
1887
1887
|
cur.n6();
|
|
1888
1888
|
}
|
|
1889
1889
|
tmp$ret$1 = true;
|
|
1890
1890
|
break $l$block_1;
|
|
1891
1891
|
}
|
|
1892
|
-
if (tmp2.
|
|
1892
|
+
if (tmp2.a1c()) {
|
|
1893
1893
|
tmp2.n6();
|
|
1894
1894
|
}
|
|
1895
1895
|
}
|
|
@@ -1908,12 +1908,12 @@ function findSegmentReceive($this, id, startFrom) {
|
|
|
1908
1908
|
var tmp_0;
|
|
1909
1909
|
if (_SegmentOrClosed___get_isClosed__impl__qmxmlo(it)) {
|
|
1910
1910
|
completeCloseOrCancel($this);
|
|
1911
|
-
var tmp0_0 = startFrom.
|
|
1911
|
+
var tmp0_0 = startFrom.m13_1;
|
|
1912
1912
|
// Inline function 'kotlin.Long.times' call
|
|
1913
1913
|
var other = get_SEGMENT_SIZE();
|
|
1914
1914
|
var tmp$ret$6 = multiply(tmp0_0, fromInt(other));
|
|
1915
|
-
if (compare(tmp$ret$6, $this.
|
|
1916
|
-
startFrom.
|
|
1915
|
+
if (compare(tmp$ret$6, $this.n1c()) < 0) {
|
|
1916
|
+
startFrom.h1c();
|
|
1917
1917
|
}
|
|
1918
1918
|
tmp_0 = null;
|
|
1919
1919
|
} else {
|
|
@@ -1929,43 +1929,43 @@ function findSegmentReceive($this, id, startFrom) {
|
|
|
1929
1929
|
tmp_1 = false;
|
|
1930
1930
|
}
|
|
1931
1931
|
if (tmp_1) {
|
|
1932
|
-
var tmp0_2 = $this.
|
|
1932
|
+
var tmp0_2 = $this.r1b_1;
|
|
1933
1933
|
$l$block_5: {
|
|
1934
1934
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
1935
1935
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
1936
1936
|
while (true) {
|
|
1937
1937
|
var cur_0 = tmp0_2.kotlinx$atomicfu$value;
|
|
1938
|
-
if (compare(cur_0.
|
|
1938
|
+
if (compare(cur_0.m13_1, segment.m13_1) >= 0) {
|
|
1939
1939
|
break $l$block_5;
|
|
1940
1940
|
}
|
|
1941
|
-
if (!segment.
|
|
1941
|
+
if (!segment.z1b()) {
|
|
1942
1942
|
break $l$block_5;
|
|
1943
1943
|
}
|
|
1944
1944
|
if (tmp0_2.atomicfu$compareAndSet(cur_0, segment)) {
|
|
1945
|
-
if (cur_0.
|
|
1945
|
+
if (cur_0.a1c()) {
|
|
1946
1946
|
cur_0.n6();
|
|
1947
1947
|
}
|
|
1948
1948
|
break $l$block_5;
|
|
1949
1949
|
}
|
|
1950
|
-
if (segment.
|
|
1950
|
+
if (segment.a1c()) {
|
|
1951
1951
|
segment.n6();
|
|
1952
1952
|
}
|
|
1953
1953
|
}
|
|
1954
1954
|
}
|
|
1955
1955
|
}
|
|
1956
1956
|
var tmp_2;
|
|
1957
|
-
if (compare(segment.
|
|
1958
|
-
var tmp0_3 = segment.
|
|
1957
|
+
if (compare(segment.m13_1, id) > 0) {
|
|
1958
|
+
var tmp0_3 = segment.m13_1;
|
|
1959
1959
|
// Inline function 'kotlin.Long.times' call
|
|
1960
1960
|
var other_1 = get_SEGMENT_SIZE();
|
|
1961
1961
|
var tmp$ret$11 = multiply(tmp0_3, fromInt(other_1));
|
|
1962
1962
|
updateReceiversCounterIfLower($this, tmp$ret$11);
|
|
1963
|
-
var tmp0_4 = segment.
|
|
1963
|
+
var tmp0_4 = segment.m13_1;
|
|
1964
1964
|
// Inline function 'kotlin.Long.times' call
|
|
1965
1965
|
var other_2 = get_SEGMENT_SIZE();
|
|
1966
1966
|
var tmp$ret$12 = multiply(tmp0_4, fromInt(other_2));
|
|
1967
|
-
if (compare(tmp$ret$12, $this.
|
|
1968
|
-
segment.
|
|
1967
|
+
if (compare(tmp$ret$12, $this.n1c()) < 0) {
|
|
1968
|
+
segment.h1c();
|
|
1969
1969
|
}
|
|
1970
1970
|
tmp_2 = null;
|
|
1971
1971
|
} else {
|
|
@@ -1977,7 +1977,7 @@ function findSegmentReceive($this, id, startFrom) {
|
|
|
1977
1977
|
return tmp_0;
|
|
1978
1978
|
}
|
|
1979
1979
|
function findSegmentBufferEnd($this, id, startFrom, currentBufferEndCounter) {
|
|
1980
|
-
var tmp0 = $this.
|
|
1980
|
+
var tmp0 = $this.r1b_1;
|
|
1981
1981
|
var tmp6 = createSegmentFunction();
|
|
1982
1982
|
var tmp$ret$0;
|
|
1983
1983
|
$l$block_2: {
|
|
@@ -1996,22 +1996,22 @@ function findSegmentBufferEnd($this, id, startFrom, currentBufferEndCounter) {
|
|
|
1996
1996
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
1997
1997
|
while (true) {
|
|
1998
1998
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
1999
|
-
if (compare(cur.
|
|
1999
|
+
if (compare(cur.m13_1, tmp2.m13_1) >= 0) {
|
|
2000
2000
|
tmp$ret$1 = true;
|
|
2001
2001
|
break $l$block_1;
|
|
2002
2002
|
}
|
|
2003
|
-
if (!tmp2.
|
|
2003
|
+
if (!tmp2.z1b()) {
|
|
2004
2004
|
tmp$ret$1 = false;
|
|
2005
2005
|
break $l$block_1;
|
|
2006
2006
|
}
|
|
2007
2007
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
2008
|
-
if (cur.
|
|
2008
|
+
if (cur.a1c()) {
|
|
2009
2009
|
cur.n6();
|
|
2010
2010
|
}
|
|
2011
2011
|
tmp$ret$1 = true;
|
|
2012
2012
|
break $l$block_1;
|
|
2013
2013
|
}
|
|
2014
|
-
if (tmp2.
|
|
2014
|
+
if (tmp2.a1c()) {
|
|
2015
2015
|
tmp2.n6();
|
|
2016
2016
|
}
|
|
2017
2017
|
}
|
|
@@ -2036,15 +2036,15 @@ function findSegmentBufferEnd($this, id, startFrom, currentBufferEndCounter) {
|
|
|
2036
2036
|
} else {
|
|
2037
2037
|
var segment = _SegmentOrClosed___get_segment__impl__jvcr9l(it);
|
|
2038
2038
|
var tmp_1;
|
|
2039
|
-
if (compare(segment.
|
|
2039
|
+
if (compare(segment.m13_1, id) > 0) {
|
|
2040
2040
|
// Inline function 'kotlin.Long.plus' call
|
|
2041
2041
|
var tmp_2 = add(currentBufferEndCounter, fromInt(1));
|
|
2042
|
-
var tmp0_0 = segment.
|
|
2042
|
+
var tmp0_0 = segment.m13_1;
|
|
2043
2043
|
// Inline function 'kotlin.Long.times' call
|
|
2044
2044
|
var other = get_SEGMENT_SIZE();
|
|
2045
2045
|
var tmp$ret$7 = multiply(tmp0_0, fromInt(other));
|
|
2046
|
-
if ($this.
|
|
2047
|
-
var tmp0_1 = segment.
|
|
2046
|
+
if ($this.n1b_1.atomicfu$compareAndSet(tmp_2, tmp$ret$7)) {
|
|
2047
|
+
var tmp0_1 = segment.m13_1;
|
|
2048
2048
|
// Inline function 'kotlin.Long.times' call
|
|
2049
2049
|
var other_0 = get_SEGMENT_SIZE();
|
|
2050
2050
|
var tmp$ret$8 = multiply(tmp0_1, fromInt(other_0));
|
|
@@ -2063,8 +2063,8 @@ function findSegmentBufferEnd($this, id, startFrom, currentBufferEndCounter) {
|
|
|
2063
2063
|
}
|
|
2064
2064
|
function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
2065
2065
|
var segment = startFrom;
|
|
2066
|
-
$l$loop: while (compare(segment.
|
|
2067
|
-
var tmp0_elvis_lhs = segment.
|
|
2066
|
+
$l$loop: while (compare(segment.m13_1, id) < 0) {
|
|
2067
|
+
var tmp0_elvis_lhs = segment.d1c();
|
|
2068
2068
|
var tmp;
|
|
2069
2069
|
if (tmp0_elvis_lhs == null) {
|
|
2070
2070
|
break $l$loop;
|
|
@@ -2074,8 +2074,8 @@ function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
|
2074
2074
|
segment = tmp;
|
|
2075
2075
|
}
|
|
2076
2076
|
while (true) {
|
|
2077
|
-
$l$loop_0: while (segment.
|
|
2078
|
-
var tmp1_elvis_lhs = segment.
|
|
2077
|
+
$l$loop_0: while (segment.y1b()) {
|
|
2078
|
+
var tmp1_elvis_lhs = segment.d1c();
|
|
2079
2079
|
var tmp_0;
|
|
2080
2080
|
if (tmp1_elvis_lhs == null) {
|
|
2081
2081
|
break $l$loop_0;
|
|
@@ -2084,7 +2084,7 @@ function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
|
2084
2084
|
}
|
|
2085
2085
|
segment = tmp_0;
|
|
2086
2086
|
}
|
|
2087
|
-
var tmp0 = $this.
|
|
2087
|
+
var tmp0 = $this.r1b_1;
|
|
2088
2088
|
var tmp2 = segment;
|
|
2089
2089
|
var tmp$ret$0;
|
|
2090
2090
|
$l$block_1: {
|
|
@@ -2093,22 +2093,22 @@ function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
|
2093
2093
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
2094
2094
|
while (true) {
|
|
2095
2095
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
2096
|
-
if (compare(cur.
|
|
2096
|
+
if (compare(cur.m13_1, tmp2.m13_1) >= 0) {
|
|
2097
2097
|
tmp$ret$0 = true;
|
|
2098
2098
|
break $l$block_1;
|
|
2099
2099
|
}
|
|
2100
|
-
if (!tmp2.
|
|
2100
|
+
if (!tmp2.z1b()) {
|
|
2101
2101
|
tmp$ret$0 = false;
|
|
2102
2102
|
break $l$block_1;
|
|
2103
2103
|
}
|
|
2104
2104
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
2105
|
-
if (cur.
|
|
2105
|
+
if (cur.a1c()) {
|
|
2106
2106
|
cur.n6();
|
|
2107
2107
|
}
|
|
2108
2108
|
tmp$ret$0 = true;
|
|
2109
2109
|
break $l$block_1;
|
|
2110
2110
|
}
|
|
2111
|
-
if (tmp2.
|
|
2111
|
+
if (tmp2.a1c()) {
|
|
2112
2112
|
tmp2.n6();
|
|
2113
2113
|
}
|
|
2114
2114
|
}
|
|
@@ -2121,7 +2121,7 @@ function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
|
2121
2121
|
function updateSendersCounterIfLower($this, value) {
|
|
2122
2122
|
var tmp$ret$0;
|
|
2123
2123
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
2124
|
-
var this_0 = $this.
|
|
2124
|
+
var this_0 = $this.l1b_1;
|
|
2125
2125
|
while (true) {
|
|
2126
2126
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2127
2127
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
@@ -2131,7 +2131,7 @@ function updateSendersCounterIfLower($this, value) {
|
|
|
2131
2131
|
// Inline function 'kotlinx.coroutines.channels.sendersCloseStatus' call
|
|
2132
2132
|
var tmp$ret$3 = convertToInt(shiftRight(cur, 60));
|
|
2133
2133
|
var update = constructSendersAndCloseStatus(curCounter, tmp$ret$3);
|
|
2134
|
-
if ($this.
|
|
2134
|
+
if ($this.l1b_1.atomicfu$compareAndSet(cur, update))
|
|
2135
2135
|
return Unit_instance;
|
|
2136
2136
|
}
|
|
2137
2137
|
return tmp$ret$0;
|
|
@@ -2139,12 +2139,12 @@ function updateSendersCounterIfLower($this, value) {
|
|
|
2139
2139
|
function updateReceiversCounterIfLower($this, value) {
|
|
2140
2140
|
var tmp$ret$0;
|
|
2141
2141
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
2142
|
-
var this_0 = $this.
|
|
2142
|
+
var this_0 = $this.m1b_1;
|
|
2143
2143
|
while (true) {
|
|
2144
2144
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2145
2145
|
if (compare(cur, value) >= 0)
|
|
2146
2146
|
return Unit_instance;
|
|
2147
|
-
if ($this.
|
|
2147
|
+
if ($this.m1b_1.atomicfu$compareAndSet(cur, value))
|
|
2148
2148
|
return Unit_instance;
|
|
2149
2149
|
}
|
|
2150
2150
|
return tmp$ret$0;
|
|
@@ -2153,7 +2153,7 @@ function bindCancellationFunResult($this, $receiver) {
|
|
|
2153
2153
|
return BufferedChannel$onCancellationChannelResultImplDoNotCall$ref($this);
|
|
2154
2154
|
}
|
|
2155
2155
|
function onCancellationChannelResultImplDoNotCall($this, cause, element, context) {
|
|
2156
|
-
callUndeliveredElement(ensureNotNull($this.
|
|
2156
|
+
callUndeliveredElement(ensureNotNull($this.k1b_1), ensureNotNull(ChannelResult__getOrNull_impl_f5e07h(element)), context);
|
|
2157
2157
|
}
|
|
2158
2158
|
function bindCancellationFun($this, $receiver, element) {
|
|
2159
2159
|
return BufferedChannel$bindCancellationFun$lambda($receiver, element);
|
|
@@ -2162,13 +2162,13 @@ function bindCancellationFun_0($this, $receiver) {
|
|
|
2162
2162
|
return BufferedChannel$onCancellationImplDoNotCall$ref($this);
|
|
2163
2163
|
}
|
|
2164
2164
|
function onCancellationImplDoNotCall($this, cause, element, context) {
|
|
2165
|
-
callUndeliveredElement(ensureNotNull($this.
|
|
2165
|
+
callUndeliveredElement(ensureNotNull($this.k1b_1), element, context);
|
|
2166
2166
|
}
|
|
2167
2167
|
function access$_get_sendersAndCloseStatus__tvw29s($this) {
|
|
2168
|
-
return $this.
|
|
2168
|
+
return $this.l1b_1;
|
|
2169
2169
|
}
|
|
2170
2170
|
function access$_get_sendSegment__111kgq($this) {
|
|
2171
|
-
return $this.
|
|
2171
|
+
return $this.p1b_1;
|
|
2172
2172
|
}
|
|
2173
2173
|
function access$prepareSenderForSuspension($this, $receiver, segment, index) {
|
|
2174
2174
|
return prepareSenderForSuspension($this, $receiver, segment, index);
|
|
@@ -2186,7 +2186,7 @@ function BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lamb
|
|
|
2186
2186
|
return (_unused_var__etf5q3, _unused_var__etf5q3_0, _unused_var__etf5q3_1) => {
|
|
2187
2187
|
var tmp;
|
|
2188
2188
|
if (!($element === get_CHANNEL_CLOSED())) {
|
|
2189
|
-
callUndeliveredElement(this$0.
|
|
2189
|
+
callUndeliveredElement(this$0.k1b_1, $element, $select.wc());
|
|
2190
2190
|
tmp = Unit_instance;
|
|
2191
2191
|
}
|
|
2192
2192
|
return Unit_instance;
|
|
@@ -2198,7 +2198,7 @@ function BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lamb
|
|
|
2198
2198
|
function BufferedChannel$onCancellationChannelResultImplDoNotCall$ref(p0) {
|
|
2199
2199
|
var l = (_this__u8e3s4, p0_0, p1) => {
|
|
2200
2200
|
var tmp0 = p0;
|
|
2201
|
-
onCancellationChannelResultImplDoNotCall(tmp0, _this__u8e3s4, p0_0.
|
|
2201
|
+
onCancellationChannelResultImplDoNotCall(tmp0, _this__u8e3s4, p0_0.r1d_1, p1);
|
|
2202
2202
|
return Unit_instance;
|
|
2203
2203
|
};
|
|
2204
2204
|
l.callableName = 'onCancellationChannelResultImplDoNotCall';
|
|
@@ -2225,20 +2225,20 @@ function BufferedChannel() {
|
|
|
2225
2225
|
class $ {
|
|
2226
2226
|
constructor(capacity, onUndeliveredElement) {
|
|
2227
2227
|
onUndeliveredElement = onUndeliveredElement === VOID ? null : onUndeliveredElement;
|
|
2228
|
-
this.
|
|
2229
|
-
this.
|
|
2228
|
+
this.j1b_1 = capacity;
|
|
2229
|
+
this.k1b_1 = onUndeliveredElement;
|
|
2230
2230
|
// Inline function 'kotlin.require' call
|
|
2231
|
-
if (!(this.
|
|
2232
|
-
var message = 'Invalid channel capacity: ' + this.
|
|
2231
|
+
if (!(this.j1b_1 >= 0)) {
|
|
2232
|
+
var message = 'Invalid channel capacity: ' + this.j1b_1 + ', should be >=0';
|
|
2233
2233
|
throw IllegalArgumentException().m2(toString_0(message));
|
|
2234
2234
|
}
|
|
2235
|
-
this.
|
|
2236
|
-
this.
|
|
2237
|
-
this.
|
|
2238
|
-
this.
|
|
2235
|
+
this.l1b_1 = atomic$long$1(new (Long())(0, 0));
|
|
2236
|
+
this.m1b_1 = atomic$long$1(new (Long())(0, 0));
|
|
2237
|
+
this.n1b_1 = atomic$long$1(initialBufferEnd(this.j1b_1));
|
|
2238
|
+
this.o1b_1 = atomic$long$1(_get_bufferEndCounter__2d4hee(this));
|
|
2239
2239
|
var firstSegment = new (ChannelSegment())(new (Long())(0, 0), null, this, 3);
|
|
2240
|
-
this.
|
|
2241
|
-
this.
|
|
2240
|
+
this.p1b_1 = atomic$ref$1(firstSegment);
|
|
2241
|
+
this.q1b_1 = atomic$ref$1(firstSegment);
|
|
2242
2242
|
var tmp = this;
|
|
2243
2243
|
var tmp_0;
|
|
2244
2244
|
if (_get_isRendezvousOrUnlimited__3mdufi(this)) {
|
|
@@ -2247,28 +2247,28 @@ function BufferedChannel() {
|
|
|
2247
2247
|
} else {
|
|
2248
2248
|
tmp_0 = firstSegment;
|
|
2249
2249
|
}
|
|
2250
|
-
tmp.
|
|
2250
|
+
tmp.r1b_1 = atomic$ref$1(tmp_0);
|
|
2251
2251
|
var tmp_2 = this;
|
|
2252
2252
|
var tmp_3;
|
|
2253
|
-
if (this.
|
|
2253
|
+
if (this.k1b_1 == null) {
|
|
2254
2254
|
tmp_3 = null;
|
|
2255
2255
|
} else {
|
|
2256
2256
|
// Inline function 'kotlin.let' call
|
|
2257
2257
|
tmp_3 = BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lambda(this);
|
|
2258
2258
|
}
|
|
2259
|
-
tmp_2.
|
|
2260
|
-
this.
|
|
2261
|
-
this.
|
|
2259
|
+
tmp_2.s1b_1 = tmp_3;
|
|
2260
|
+
this.t1b_1 = atomic$ref$1(get_NO_CLOSE_CAUSE());
|
|
2261
|
+
this.u1b_1 = atomic$ref$1(null);
|
|
2262
2262
|
}
|
|
2263
|
-
|
|
2263
|
+
n1c() {
|
|
2264
2264
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
2265
|
-
var this_0 = this.
|
|
2265
|
+
var this_0 = this.l1b_1.kotlinx$atomicfu$value;
|
|
2266
2266
|
return bitwiseAnd(this_0, new (Long())(-1, 268435455));
|
|
2267
2267
|
}
|
|
2268
|
-
|
|
2269
|
-
return this.
|
|
2268
|
+
q1c() {
|
|
2269
|
+
return this.m1b_1.kotlinx$atomicfu$value;
|
|
2270
2270
|
}
|
|
2271
|
-
*
|
|
2271
|
+
*s1d(element, $completion) {
|
|
2272
2272
|
$l$block_5: {
|
|
2273
2273
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
2274
2274
|
var segment = access$_get_sendSegment__111kgq(this).kotlinx$atomicfu$value;
|
|
@@ -2284,7 +2284,7 @@ function BufferedChannel() {
|
|
|
2284
2284
|
var other_0 = get_SEGMENT_SIZE();
|
|
2285
2285
|
var tmp$ret$3 = modulo(s, fromInt(other_0));
|
|
2286
2286
|
var i = convertToInt(tmp$ret$3);
|
|
2287
|
-
if (!equalsLong(segment.
|
|
2287
|
+
if (!equalsLong(segment.m13_1, id)) {
|
|
2288
2288
|
var tmp0_elvis_lhs = access$findSegmentSend(this, id, segment);
|
|
2289
2289
|
var tmp;
|
|
2290
2290
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -2302,13 +2302,13 @@ function BufferedChannel() {
|
|
|
2302
2302
|
}
|
|
2303
2303
|
switch (access$updateCellSend(this, segment, i, element, s, null, closed)) {
|
|
2304
2304
|
case 0:
|
|
2305
|
-
segment.
|
|
2305
|
+
segment.h1c();
|
|
2306
2306
|
break $l$block_5;
|
|
2307
2307
|
case 1:
|
|
2308
2308
|
break $l$block_5;
|
|
2309
2309
|
case 2:
|
|
2310
2310
|
if (closed) {
|
|
2311
|
-
segment.
|
|
2311
|
+
segment.x1b();
|
|
2312
2312
|
yield* /*#__NOINLINE__*/onClosedSend(this, element, $completion);
|
|
2313
2313
|
break $l$block_5;
|
|
2314
2314
|
}
|
|
@@ -2324,14 +2324,14 @@ function BufferedChannel() {
|
|
|
2324
2324
|
|
|
2325
2325
|
break $l$block_5;
|
|
2326
2326
|
case 4:
|
|
2327
|
-
if (compare(s, this.
|
|
2328
|
-
segment.
|
|
2327
|
+
if (compare(s, this.q1c()) < 0) {
|
|
2328
|
+
segment.h1c();
|
|
2329
2329
|
}
|
|
2330
2330
|
|
|
2331
2331
|
yield* /*#__NOINLINE__*/onClosedSend(this, element, $completion);
|
|
2332
2332
|
break $l$block_5;
|
|
2333
2333
|
case 5:
|
|
2334
|
-
segment.
|
|
2334
|
+
segment.h1c();
|
|
2335
2335
|
continue $l$loop_0;
|
|
2336
2336
|
case 3:
|
|
2337
2337
|
var segm = segment;
|
|
@@ -2342,9 +2342,9 @@ function BufferedChannel() {
|
|
|
2342
2342
|
}
|
|
2343
2343
|
return Unit_instance;
|
|
2344
2344
|
}
|
|
2345
|
-
|
|
2346
|
-
if (shouldSendSuspend0(this, this.
|
|
2347
|
-
return Companion_getInstance().
|
|
2345
|
+
t1d(element) {
|
|
2346
|
+
if (shouldSendSuspend0(this, this.l1b_1.kotlinx$atomicfu$value))
|
|
2347
|
+
return Companion_getInstance().u1d();
|
|
2348
2348
|
var tmp4 = get_INTERRUPTED_SEND();
|
|
2349
2349
|
var tmp$ret$0;
|
|
2350
2350
|
$l$block_5: {
|
|
@@ -2362,13 +2362,13 @@ function BufferedChannel() {
|
|
|
2362
2362
|
var other_0 = get_SEGMENT_SIZE();
|
|
2363
2363
|
var tmp$ret$3 = modulo(s, fromInt(other_0));
|
|
2364
2364
|
var i = convertToInt(tmp$ret$3);
|
|
2365
|
-
if (!equalsLong(segment.
|
|
2365
|
+
if (!equalsLong(segment.m13_1, id)) {
|
|
2366
2366
|
var tmp0_elvis_lhs = access$findSegmentSend(this, id, segment);
|
|
2367
2367
|
var tmp;
|
|
2368
2368
|
if (tmp0_elvis_lhs == null) {
|
|
2369
2369
|
var tmp_0;
|
|
2370
2370
|
if (closed) {
|
|
2371
|
-
tmp$ret$0 = Companion_getInstance().
|
|
2371
|
+
tmp$ret$0 = Companion_getInstance().o1d(this.p1c());
|
|
2372
2372
|
break $l$block_5;
|
|
2373
2373
|
} else {
|
|
2374
2374
|
continue $l$loop_0;
|
|
@@ -2380,16 +2380,16 @@ function BufferedChannel() {
|
|
|
2380
2380
|
}
|
|
2381
2381
|
switch (access$updateCellSend(this, segment, i, element, s, tmp4, closed)) {
|
|
2382
2382
|
case 0:
|
|
2383
|
-
segment.
|
|
2384
|
-
tmp$ret$0 = Companion_getInstance().
|
|
2383
|
+
segment.h1c();
|
|
2384
|
+
tmp$ret$0 = Companion_getInstance().v1c(Unit_instance);
|
|
2385
2385
|
break $l$block_5;
|
|
2386
2386
|
case 1:
|
|
2387
|
-
tmp$ret$0 = Companion_getInstance().
|
|
2387
|
+
tmp$ret$0 = Companion_getInstance().v1c(Unit_instance);
|
|
2388
2388
|
break $l$block_5;
|
|
2389
2389
|
case 2:
|
|
2390
2390
|
if (closed) {
|
|
2391
|
-
segment.
|
|
2392
|
-
tmp$ret$0 = Companion_getInstance().
|
|
2391
|
+
segment.x1b();
|
|
2392
|
+
tmp$ret$0 = Companion_getInstance().o1d(this.p1c());
|
|
2393
2393
|
break $l$block_5;
|
|
2394
2394
|
}
|
|
2395
2395
|
|
|
@@ -2400,18 +2400,18 @@ function BufferedChannel() {
|
|
|
2400
2400
|
access$prepareSenderForSuspension(this, tmp2_safe_receiver, segment, i);
|
|
2401
2401
|
}
|
|
2402
2402
|
|
|
2403
|
-
segment.
|
|
2404
|
-
tmp$ret$0 = Companion_getInstance().
|
|
2403
|
+
segment.x1b();
|
|
2404
|
+
tmp$ret$0 = Companion_getInstance().u1d();
|
|
2405
2405
|
break $l$block_5;
|
|
2406
2406
|
case 4:
|
|
2407
|
-
if (compare(s, this.
|
|
2408
|
-
segment.
|
|
2407
|
+
if (compare(s, this.q1c()) < 0) {
|
|
2408
|
+
segment.h1c();
|
|
2409
2409
|
}
|
|
2410
2410
|
|
|
2411
|
-
tmp$ret$0 = Companion_getInstance().
|
|
2411
|
+
tmp$ret$0 = Companion_getInstance().o1d(this.p1c());
|
|
2412
2412
|
break $l$block_5;
|
|
2413
2413
|
case 5:
|
|
2414
|
-
segment.
|
|
2414
|
+
segment.h1c();
|
|
2415
2415
|
continue $l$loop_0;
|
|
2416
2416
|
case 3:
|
|
2417
2417
|
// Inline function 'kotlin.error' call
|
|
@@ -2423,20 +2423,20 @@ function BufferedChannel() {
|
|
|
2423
2423
|
}
|
|
2424
2424
|
return tmp$ret$0;
|
|
2425
2425
|
}
|
|
2426
|
-
|
|
2426
|
+
y1c() {
|
|
2427
2427
|
}
|
|
2428
|
-
|
|
2428
|
+
r1c() {
|
|
2429
2429
|
}
|
|
2430
|
-
*
|
|
2430
|
+
*v1d($completion) {
|
|
2431
2431
|
var tmp$ret$0;
|
|
2432
2432
|
$l$block_0: {
|
|
2433
2433
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImpl' call
|
|
2434
|
-
var segment = this.
|
|
2434
|
+
var segment = this.q1b_1.kotlinx$atomicfu$value;
|
|
2435
2435
|
$l$loop_0: while (true) {
|
|
2436
|
-
if (this.
|
|
2436
|
+
if (this.o1c()) {
|
|
2437
2437
|
throw recoverStackTrace(_get_receiveException__foorc1(this));
|
|
2438
2438
|
}
|
|
2439
|
-
var r = this.
|
|
2439
|
+
var r = this.m1b_1.atomicfu$getAndIncrement$long();
|
|
2440
2440
|
// Inline function 'kotlin.Long.div' call
|
|
2441
2441
|
var other = get_SEGMENT_SIZE();
|
|
2442
2442
|
var id = divide(r, fromInt(other));
|
|
@@ -2444,7 +2444,7 @@ function BufferedChannel() {
|
|
|
2444
2444
|
var other_0 = get_SEGMENT_SIZE();
|
|
2445
2445
|
var tmp$ret$3 = modulo(r, fromInt(other_0));
|
|
2446
2446
|
var i = convertToInt(tmp$ret$3);
|
|
2447
|
-
if (!equalsLong(segment.
|
|
2447
|
+
if (!equalsLong(segment.m13_1, id)) {
|
|
2448
2448
|
var tmp0_elvis_lhs = findSegmentReceive(this, id, segment);
|
|
2449
2449
|
var tmp;
|
|
2450
2450
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -2467,15 +2467,15 @@ function BufferedChannel() {
|
|
|
2467
2467
|
var message = 'unexpected';
|
|
2468
2468
|
throw IllegalStateException().o(toString_0(message));
|
|
2469
2469
|
} else if (updCellResult === get_FAILED()) {
|
|
2470
|
-
if (compare(r, this.
|
|
2471
|
-
segment.
|
|
2470
|
+
if (compare(r, this.n1c()) < 0) {
|
|
2471
|
+
segment.h1c();
|
|
2472
2472
|
}
|
|
2473
2473
|
continue $l$loop_0;
|
|
2474
2474
|
} else if (updCellResult === get_SUSPEND_NO_WAITER()) {
|
|
2475
2475
|
var segm = segment;
|
|
2476
2476
|
tmp_0 = yield* /*#__NOINLINE__*/receiveOnNoWaiterSuspend(this, segm, i, r, $completion);
|
|
2477
2477
|
} else {
|
|
2478
|
-
segment.
|
|
2478
|
+
segment.h1c();
|
|
2479
2479
|
return updCellResult;
|
|
2480
2480
|
}
|
|
2481
2481
|
tmp$ret$0 = tmp_0;
|
|
@@ -2484,13 +2484,13 @@ function BufferedChannel() {
|
|
|
2484
2484
|
}
|
|
2485
2485
|
return tmp$ret$0;
|
|
2486
2486
|
}
|
|
2487
|
-
|
|
2487
|
+
m1d(globalCellIndex) {
|
|
2488
2488
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
2489
|
-
var segment = this.
|
|
2489
|
+
var segment = this.q1b_1.kotlinx$atomicfu$value;
|
|
2490
2490
|
$l$loop_0: while (true) {
|
|
2491
|
-
var r = this.
|
|
2491
|
+
var r = this.m1b_1.kotlinx$atomicfu$value;
|
|
2492
2492
|
// Inline function 'kotlin.Long.plus' call
|
|
2493
|
-
var other = this.
|
|
2493
|
+
var other = this.j1b_1;
|
|
2494
2494
|
var tmp0 = add(r, fromInt(other));
|
|
2495
2495
|
// Inline function 'kotlin.math.max' call
|
|
2496
2496
|
var b = _get_bufferEndCounter__2d4hee(this);
|
|
@@ -2499,7 +2499,7 @@ function BufferedChannel() {
|
|
|
2499
2499
|
return Unit_instance;
|
|
2500
2500
|
// Inline function 'kotlin.Long.plus' call
|
|
2501
2501
|
var tmp$ret$3 = add(r, fromInt(1));
|
|
2502
|
-
if (!this.
|
|
2502
|
+
if (!this.m1b_1.atomicfu$compareAndSet(r, tmp$ret$3))
|
|
2503
2503
|
continue $l$loop_0;
|
|
2504
2504
|
// Inline function 'kotlin.Long.div' call
|
|
2505
2505
|
var other_0 = get_SEGMENT_SIZE();
|
|
@@ -2508,7 +2508,7 @@ function BufferedChannel() {
|
|
|
2508
2508
|
var other_1 = get_SEGMENT_SIZE();
|
|
2509
2509
|
var tmp$ret$5 = modulo(r, fromInt(other_1));
|
|
2510
2510
|
var i = convertToInt(tmp$ret$5);
|
|
2511
|
-
if (!equalsLong(segment.
|
|
2511
|
+
if (!equalsLong(segment.m13_1, id)) {
|
|
2512
2512
|
var tmp0_elvis_lhs = findSegmentReceive(this, id, segment);
|
|
2513
2513
|
var tmp;
|
|
2514
2514
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -2520,12 +2520,12 @@ function BufferedChannel() {
|
|
|
2520
2520
|
}
|
|
2521
2521
|
var updCellResult = updateCellReceive(this, segment, i, r, null);
|
|
2522
2522
|
if (updCellResult === get_FAILED()) {
|
|
2523
|
-
if (compare(r, this.
|
|
2524
|
-
segment.
|
|
2523
|
+
if (compare(r, this.n1c()) < 0) {
|
|
2524
|
+
segment.h1c();
|
|
2525
2525
|
}
|
|
2526
2526
|
} else {
|
|
2527
|
-
segment.
|
|
2528
|
-
var tmp1_safe_receiver = this.
|
|
2527
|
+
segment.h1c();
|
|
2528
|
+
var tmp1_safe_receiver = this.k1b_1;
|
|
2529
2529
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : callUndeliveredElementCatchingException(tmp1_safe_receiver, updCellResult);
|
|
2530
2530
|
if (tmp2_safe_receiver == null)
|
|
2531
2531
|
null;
|
|
@@ -2536,7 +2536,7 @@ function BufferedChannel() {
|
|
|
2536
2536
|
}
|
|
2537
2537
|
}
|
|
2538
2538
|
}
|
|
2539
|
-
|
|
2539
|
+
w1b(globalIndex) {
|
|
2540
2540
|
if (_get_isRendezvousOrUnlimited__3mdufi(this))
|
|
2541
2541
|
return Unit_instance;
|
|
2542
2542
|
while (compare(_get_bufferEndCounter__2d4hee(this), globalIndex) <= 0) {
|
|
@@ -2550,13 +2550,13 @@ function BufferedChannel() {
|
|
|
2550
2550
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2551
2551
|
var b = _get_bufferEndCounter__2d4hee(this);
|
|
2552
2552
|
// Inline function 'kotlinx.coroutines.channels.ebCompletedCounter' call
|
|
2553
|
-
var this_0 = this.
|
|
2553
|
+
var this_0 = this.o1b_1.kotlinx$atomicfu$value;
|
|
2554
2554
|
var ebCompleted = bitwiseAnd(this_0, new (Long())(-1, 1073741823));
|
|
2555
2555
|
if (equalsLong(b, ebCompleted) && equalsLong(b, _get_bufferEndCounter__2d4hee(this)))
|
|
2556
2556
|
return Unit_instance;
|
|
2557
2557
|
}
|
|
2558
2558
|
while (inductionVariable < times);
|
|
2559
|
-
var tmp0 = this.
|
|
2559
|
+
var tmp0 = this.o1b_1;
|
|
2560
2560
|
$l$block: {
|
|
2561
2561
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
2562
2562
|
while (true) {
|
|
@@ -2571,13 +2571,13 @@ function BufferedChannel() {
|
|
|
2571
2571
|
}
|
|
2572
2572
|
while (true) {
|
|
2573
2573
|
var b_0 = _get_bufferEndCounter__2d4hee(this);
|
|
2574
|
-
var ebCompletedAndBit = this.
|
|
2574
|
+
var ebCompletedAndBit = this.o1b_1.kotlinx$atomicfu$value;
|
|
2575
2575
|
// Inline function 'kotlinx.coroutines.channels.ebCompletedCounter' call
|
|
2576
2576
|
var ebCompleted_0 = bitwiseAnd(ebCompletedAndBit, new (Long())(-1, 1073741823));
|
|
2577
2577
|
// Inline function 'kotlinx.coroutines.channels.ebPauseExpandBuffers' call
|
|
2578
2578
|
var pauseExpandBuffers = !equalsLong(bitwiseAnd(ebCompletedAndBit, new (Long())(0, 1073741824)), new (Long())(0, 0));
|
|
2579
2579
|
if (equalsLong(b_0, ebCompleted_0) && equalsLong(b_0, _get_bufferEndCounter__2d4hee(this))) {
|
|
2580
|
-
var tmp0_0 = this.
|
|
2580
|
+
var tmp0_0 = this.o1b_1;
|
|
2581
2581
|
$l$block_0: {
|
|
2582
2582
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
2583
2583
|
while (true) {
|
|
@@ -2593,37 +2593,37 @@ function BufferedChannel() {
|
|
|
2593
2593
|
return Unit_instance;
|
|
2594
2594
|
}
|
|
2595
2595
|
if (!pauseExpandBuffers) {
|
|
2596
|
-
this.
|
|
2596
|
+
this.o1b_1.atomicfu$compareAndSet(ebCompletedAndBit, constructEBCompletedAndPauseFlag(ebCompleted_0, true));
|
|
2597
2597
|
}
|
|
2598
2598
|
}
|
|
2599
2599
|
}
|
|
2600
2600
|
l1() {
|
|
2601
2601
|
return new (BufferedChannelIterator())(this);
|
|
2602
2602
|
}
|
|
2603
|
-
|
|
2604
|
-
var tmp = this.
|
|
2603
|
+
m1c() {
|
|
2604
|
+
var tmp = this.t1b_1.kotlinx$atomicfu$value;
|
|
2605
2605
|
return (tmp == null ? true : tmp instanceof Error) ? tmp : THROW_CCE();
|
|
2606
2606
|
}
|
|
2607
|
-
|
|
2608
|
-
var tmp0_elvis_lhs = this.
|
|
2609
|
-
return tmp0_elvis_lhs == null ? ClosedSendChannelException().
|
|
2607
|
+
p1c() {
|
|
2608
|
+
var tmp0_elvis_lhs = this.m1c();
|
|
2609
|
+
return tmp0_elvis_lhs == null ? ClosedSendChannelException().a1e('Channel was closed') : tmp0_elvis_lhs;
|
|
2610
2610
|
}
|
|
2611
|
-
|
|
2611
|
+
b1e() {
|
|
2612
2612
|
}
|
|
2613
|
-
|
|
2614
|
-
return this.
|
|
2613
|
+
c1e(cause) {
|
|
2614
|
+
return this.d1e(cause, false);
|
|
2615
2615
|
}
|
|
2616
|
-
|
|
2617
|
-
this.
|
|
2616
|
+
lz(cause) {
|
|
2617
|
+
this.f1e(cause);
|
|
2618
2618
|
}
|
|
2619
|
-
|
|
2620
|
-
return this.
|
|
2619
|
+
f1e(cause) {
|
|
2620
|
+
return this.d1e(cause == null ? CancellationException().n('Channel was cancelled') : cause, true);
|
|
2621
2621
|
}
|
|
2622
|
-
|
|
2622
|
+
d1e(cause, cancel) {
|
|
2623
2623
|
if (cancel) {
|
|
2624
2624
|
markCancellationStarted(this);
|
|
2625
2625
|
}
|
|
2626
|
-
var closedByThisOperation = this.
|
|
2626
|
+
var closedByThisOperation = this.t1b_1.atomicfu$compareAndSet(get_NO_CLOSE_CAUSE(), cause);
|
|
2627
2627
|
if (cancel) {
|
|
2628
2628
|
markCancelled(this);
|
|
2629
2629
|
} else {
|
|
@@ -2631,23 +2631,23 @@ function BufferedChannel() {
|
|
|
2631
2631
|
}
|
|
2632
2632
|
completeCloseOrCancel(this);
|
|
2633
2633
|
// Inline function 'kotlin.also' call
|
|
2634
|
-
this.
|
|
2634
|
+
this.b1e();
|
|
2635
2635
|
if (closedByThisOperation) {
|
|
2636
2636
|
invokeCloseHandler(this);
|
|
2637
2637
|
}
|
|
2638
2638
|
return closedByThisOperation;
|
|
2639
2639
|
}
|
|
2640
|
-
|
|
2641
|
-
if (this.
|
|
2640
|
+
h1e(handler) {
|
|
2641
|
+
if (this.u1b_1.atomicfu$compareAndSet(null, handler)) {
|
|
2642
2642
|
return Unit_instance;
|
|
2643
2643
|
}
|
|
2644
2644
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
2645
|
-
var this_0 = this.
|
|
2645
|
+
var this_0 = this.u1b_1;
|
|
2646
2646
|
while (true) {
|
|
2647
2647
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2648
2648
|
if (cur === get_CLOSE_HANDLER_CLOSED()) {
|
|
2649
|
-
if (this.
|
|
2650
|
-
handler(this.
|
|
2649
|
+
if (this.u1b_1.atomicfu$compareAndSet(get_CLOSE_HANDLER_CLOSED(), get_CLOSE_HANDLER_INVOKED())) {
|
|
2650
|
+
handler(this.m1c());
|
|
2651
2651
|
return Unit_instance;
|
|
2652
2652
|
}
|
|
2653
2653
|
} else if (cur === get_CLOSE_HANDLER_INVOKED()) {
|
|
@@ -2661,31 +2661,31 @@ function BufferedChannel() {
|
|
|
2661
2661
|
}
|
|
2662
2662
|
}
|
|
2663
2663
|
}
|
|
2664
|
-
|
|
2664
|
+
n1d() {
|
|
2665
2665
|
return false;
|
|
2666
2666
|
}
|
|
2667
|
-
|
|
2668
|
-
return _get_isClosedForSend0__kxgf9m(this, this.
|
|
2667
|
+
l1d() {
|
|
2668
|
+
return _get_isClosedForSend0__kxgf9m(this, this.l1b_1.kotlinx$atomicfu$value);
|
|
2669
2669
|
}
|
|
2670
|
-
|
|
2671
|
-
return _get_isClosedForReceive0__f7qknl(this, this.
|
|
2670
|
+
o1c() {
|
|
2671
|
+
return _get_isClosedForReceive0__f7qknl(this, this.l1b_1.kotlinx$atomicfu$value);
|
|
2672
2672
|
}
|
|
2673
|
-
|
|
2673
|
+
p1d() {
|
|
2674
2674
|
$l$loop: while (true) {
|
|
2675
|
-
var segment = this.
|
|
2676
|
-
var r = this.
|
|
2677
|
-
var s = this.
|
|
2675
|
+
var segment = this.q1b_1.kotlinx$atomicfu$value;
|
|
2676
|
+
var r = this.q1c();
|
|
2677
|
+
var s = this.n1c();
|
|
2678
2678
|
if (compare(s, r) <= 0)
|
|
2679
2679
|
return false;
|
|
2680
2680
|
// Inline function 'kotlin.Long.div' call
|
|
2681
2681
|
var other = get_SEGMENT_SIZE();
|
|
2682
2682
|
var id = divide(r, fromInt(other));
|
|
2683
|
-
if (!equalsLong(segment.
|
|
2683
|
+
if (!equalsLong(segment.m13_1, id)) {
|
|
2684
2684
|
var tmp0_elvis_lhs = findSegmentReceive(this, id, segment);
|
|
2685
2685
|
var tmp;
|
|
2686
2686
|
if (tmp0_elvis_lhs == null) {
|
|
2687
2687
|
var tmp_0;
|
|
2688
|
-
if (compare(this.
|
|
2688
|
+
if (compare(this.q1b_1.kotlinx$atomicfu$value.m13_1, id) < 0) {
|
|
2689
2689
|
return false;
|
|
2690
2690
|
} else {
|
|
2691
2691
|
continue $l$loop;
|
|
@@ -2695,7 +2695,7 @@ function BufferedChannel() {
|
|
|
2695
2695
|
}
|
|
2696
2696
|
segment = tmp;
|
|
2697
2697
|
}
|
|
2698
|
-
segment.
|
|
2698
|
+
segment.h1c();
|
|
2699
2699
|
// Inline function 'kotlin.Long.rem' call
|
|
2700
2700
|
var other_0 = get_SEGMENT_SIZE();
|
|
2701
2701
|
var tmp$ret$1 = modulo(r, fromInt(other_0));
|
|
@@ -2704,23 +2704,23 @@ function BufferedChannel() {
|
|
|
2704
2704
|
return true;
|
|
2705
2705
|
// Inline function 'kotlin.Long.plus' call
|
|
2706
2706
|
var tmp$ret$2 = add(r, fromInt(1));
|
|
2707
|
-
this.
|
|
2707
|
+
this.m1b_1.atomicfu$compareAndSet(r, tmp$ret$2);
|
|
2708
2708
|
}
|
|
2709
2709
|
}
|
|
2710
2710
|
toString() {
|
|
2711
2711
|
var sb = StringBuilder().h1();
|
|
2712
2712
|
// Inline function 'kotlinx.coroutines.channels.sendersCloseStatus' call
|
|
2713
|
-
var this_0 = this.
|
|
2713
|
+
var this_0 = this.l1b_1.kotlinx$atomicfu$value;
|
|
2714
2714
|
var tmp0_subject = convertToInt(shiftRight(this_0, 60));
|
|
2715
2715
|
if (tmp0_subject === 2) {
|
|
2716
2716
|
sb.i1('closed,');
|
|
2717
2717
|
} else if (tmp0_subject === 3) {
|
|
2718
2718
|
sb.i1('cancelled,');
|
|
2719
2719
|
}
|
|
2720
|
-
sb.i1('capacity=' + this.
|
|
2720
|
+
sb.i1('capacity=' + this.j1b_1 + ',');
|
|
2721
2721
|
sb.i1('data=[');
|
|
2722
2722
|
// Inline function 'kotlin.collections.filter' call
|
|
2723
|
-
var tmp0 = listOf([this.
|
|
2723
|
+
var tmp0 = listOf([this.q1b_1.kotlinx$atomicfu$value, this.p1b_1.kotlinx$atomicfu$value, this.r1b_1.kotlinx$atomicfu$value]);
|
|
2724
2724
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2725
2725
|
var destination = ArrayList().i2();
|
|
2726
2726
|
var _iterator__ex2g4s = tmp0.l1();
|
|
@@ -2741,10 +2741,10 @@ function BufferedChannel() {
|
|
|
2741
2741
|
tmp$ret$4 = minElem;
|
|
2742
2742
|
break $l$block;
|
|
2743
2743
|
}
|
|
2744
|
-
var minValue = minElem.
|
|
2744
|
+
var minValue = minElem.m13_1;
|
|
2745
2745
|
do {
|
|
2746
2746
|
var e = iterator.n1();
|
|
2747
|
-
var v = e.
|
|
2747
|
+
var v = e.m13_1;
|
|
2748
2748
|
if (compareTo(minValue, v) > 0) {
|
|
2749
2749
|
minElem = e;
|
|
2750
2750
|
minValue = v;
|
|
@@ -2754,8 +2754,8 @@ function BufferedChannel() {
|
|
|
2754
2754
|
tmp$ret$4 = minElem;
|
|
2755
2755
|
}
|
|
2756
2756
|
var firstSegment = tmp$ret$4;
|
|
2757
|
-
var r = this.
|
|
2758
|
-
var s = this.
|
|
2757
|
+
var r = this.q1c();
|
|
2758
|
+
var s = this.n1c();
|
|
2759
2759
|
var segment = firstSegment;
|
|
2760
2760
|
append_elements: while (true) {
|
|
2761
2761
|
var inductionVariable = 0;
|
|
@@ -2764,7 +2764,7 @@ function BufferedChannel() {
|
|
|
2764
2764
|
process_cell: do {
|
|
2765
2765
|
var i = inductionVariable;
|
|
2766
2766
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2767
|
-
var tmp0_0 = segment.
|
|
2767
|
+
var tmp0_0 = segment.m13_1;
|
|
2768
2768
|
// Inline function 'kotlin.Long.times' call
|
|
2769
2769
|
var other = get_SEGMENT_SIZE();
|
|
2770
2770
|
// Inline function 'kotlin.Long.plus' call
|
|
@@ -2772,8 +2772,8 @@ function BufferedChannel() {
|
|
|
2772
2772
|
var globalCellIndex = add(this_1, fromInt(i));
|
|
2773
2773
|
if (compare(globalCellIndex, s) >= 0 && compare(globalCellIndex, r) >= 0)
|
|
2774
2774
|
break append_elements;
|
|
2775
|
-
var cellState = segment.
|
|
2776
|
-
var element_0 = segment.
|
|
2775
|
+
var cellState = segment.f1b(i);
|
|
2776
|
+
var element_0 = segment.c1b(i);
|
|
2777
2777
|
var tmp;
|
|
2778
2778
|
if (!(cellState == null) ? isInterface(cellState, CancellableContinuation()) : false) {
|
|
2779
2779
|
tmp = (compare(s, globalCellIndex) <= 0 ? compare(globalCellIndex, r) < 0 : false) ? 'receive' : (compare(r, globalCellIndex) <= 0 ? compare(globalCellIndex, s) < 0 : false) ? 'send' : 'cont';
|
|
@@ -2812,7 +2812,7 @@ function BufferedChannel() {
|
|
|
2812
2812
|
}
|
|
2813
2813
|
}
|
|
2814
2814
|
while (inductionVariable < last_0);
|
|
2815
|
-
var tmp4_elvis_lhs = segment.
|
|
2815
|
+
var tmp4_elvis_lhs = segment.d1c();
|
|
2816
2816
|
var tmp_0;
|
|
2817
2817
|
if (tmp4_elvis_lhs == null) {
|
|
2818
2818
|
break append_elements;
|
|
@@ -2822,15 +2822,15 @@ function BufferedChannel() {
|
|
|
2822
2822
|
segment = tmp_0;
|
|
2823
2823
|
}
|
|
2824
2824
|
if (last(sb) === _Char___init__impl__6a9atx(44)) {
|
|
2825
|
-
sb.
|
|
2825
|
+
sb.dh(sb.a() - 1 | 0);
|
|
2826
2826
|
}
|
|
2827
2827
|
sb.i1(']');
|
|
2828
2828
|
return sb.toString();
|
|
2829
2829
|
}
|
|
2830
2830
|
}
|
|
2831
|
-
protoOf($).
|
|
2832
|
-
protoOf($).
|
|
2833
|
-
initMetadataForClass($, 'BufferedChannel', VOID, VOID, [
|
|
2831
|
+
protoOf($).e1e = close$default;
|
|
2832
|
+
protoOf($).g1e = cancel$default;
|
|
2833
|
+
initMetadataForClass($, 'BufferedChannel', VOID, VOID, [SendChannel(), ReceiveChannel()], [1, 4, 0, 3]);
|
|
2834
2834
|
BufferedChannelClass = $;
|
|
2835
2835
|
}
|
|
2836
2836
|
return BufferedChannelClass;
|
|
@@ -2840,10 +2840,10 @@ function WaiterEB() {
|
|
|
2840
2840
|
if (WaiterEBClass === VOID) {
|
|
2841
2841
|
class $ {
|
|
2842
2842
|
constructor(waiter) {
|
|
2843
|
-
this.
|
|
2843
|
+
this.s1c_1 = waiter;
|
|
2844
2844
|
}
|
|
2845
2845
|
toString() {
|
|
2846
|
-
return 'WaiterEB(' + toString_0(this.
|
|
2846
|
+
return 'WaiterEB(' + toString_0(this.s1c_1) + ')';
|
|
2847
2847
|
}
|
|
2848
2848
|
}
|
|
2849
2849
|
initMetadataForClass($, 'WaiterEB');
|
|
@@ -2875,10 +2875,10 @@ function tryResume0(_this__u8e3s4, value, onCancellation) {
|
|
|
2875
2875
|
onCancellation = onCancellation === VOID ? null : onCancellation;
|
|
2876
2876
|
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
2877
2877
|
// Inline function 'kotlin.let' call
|
|
2878
|
-
var token = _this__u8e3s4.
|
|
2878
|
+
var token = _this__u8e3s4.t12(value, null, onCancellation);
|
|
2879
2879
|
var tmp;
|
|
2880
2880
|
if (!(token == null)) {
|
|
2881
|
-
_this__u8e3s4.
|
|
2881
|
+
_this__u8e3s4.y10(token);
|
|
2882
2882
|
tmp = true;
|
|
2883
2883
|
} else {
|
|
2884
2884
|
tmp = false;
|
|
@@ -2899,7 +2899,7 @@ function createSegmentFunction() {
|
|
|
2899
2899
|
}
|
|
2900
2900
|
function createSegment(id, prev) {
|
|
2901
2901
|
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
2902
|
-
return new (ChannelSegment())(id, prev, prev.
|
|
2902
|
+
return new (ChannelSegment())(id, prev, prev.z1a(), 0);
|
|
2903
2903
|
}
|
|
2904
2904
|
function createSegment$ref() {
|
|
2905
2905
|
var l = (p0, p1) => createSegment(p0, p1);
|