@fncts/io 0.0.52 → 0.0.53
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/IO/api/asyncIterable.d.ts +27 -0
- package/IO.d.ts +1 -0
- package/_cjs/Cached/api.cjs +11 -12
- package/_cjs/Cached/api.cjs.map +1 -1
- package/_cjs/Cached/definition.cjs +1 -3
- package/_cjs/Cached/definition.cjs.map +1 -1
- package/_cjs/Cached/internal.cjs +3 -4
- package/_cjs/Cached/internal.cjs.map +1 -1
- package/_cjs/CancellerState.cjs +1 -2
- package/_cjs/CancellerState.cjs.map +1 -1
- package/_cjs/Channel/ChildExecutorDecision/api.cjs +1 -2
- package/_cjs/Channel/ChildExecutorDecision/api.cjs.map +1 -1
- package/_cjs/Channel/ChildExecutorDecision/definition.cjs +1 -2
- package/_cjs/Channel/ChildExecutorDecision/definition.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullRequest/api.cjs +1 -3
- package/_cjs/Channel/UpstreamPullRequest/api.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullRequest/definition.cjs +1 -2
- package/_cjs/Channel/UpstreamPullRequest/definition.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullStrategy/definition.cjs +1 -2
- package/_cjs/Channel/UpstreamPullStrategy/definition.cjs.map +1 -1
- package/_cjs/Channel/api/interruptWhen.cjs +7 -8
- package/_cjs/Channel/api/interruptWhen.cjs.map +1 -1
- package/_cjs/Channel/api/mapOutConcurrentIO.cjs +21 -22
- package/_cjs/Channel/api/mapOutConcurrentIO.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAll.cjs +3 -4
- package/_cjs/Channel/api/mergeAll.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAllUnboundedWith.cjs +3 -4
- package/_cjs/Channel/api/mergeAllUnboundedWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAllWith.cjs +28 -29
- package/_cjs/Channel/api/mergeAllWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeMap.cjs +4 -5
- package/_cjs/Channel/api/mergeMap.cjs.map +1 -1
- package/_cjs/Channel/api/mergeWith.cjs +16 -17
- package/_cjs/Channel/api/mergeWith.cjs.map +1 -1
- package/_cjs/Channel/api/run.cjs +5 -7
- package/_cjs/Channel/api/run.cjs.map +1 -1
- package/_cjs/Channel/api/runCollect.cjs +4 -5
- package/_cjs/Channel/api/runCollect.cjs.map +1 -1
- package/_cjs/Channel/api/runDrain.cjs +4 -5
- package/_cjs/Channel/api/runDrain.cjs.map +1 -1
- package/_cjs/Channel/api/runScoped.cjs +12 -13
- package/_cjs/Channel/api/runScoped.cjs.map +1 -1
- package/_cjs/Channel/api/toPull.cjs +6 -7
- package/_cjs/Channel/api/toPull.cjs.map +1 -1
- package/_cjs/Channel/api/zipConcurrent.cjs +7 -8
- package/_cjs/Channel/api/zipConcurrent.cjs.map +1 -1
- package/_cjs/Channel/api.cjs +28 -29
- package/_cjs/Channel/api.cjs.map +1 -1
- package/_cjs/Channel/core-api.cjs +1 -3
- package/_cjs/Channel/core-api.cjs.map +1 -1
- package/_cjs/Channel/definition.cjs +1 -2
- package/_cjs/Channel/definition.cjs.map +1 -1
- package/_cjs/Channel/internal/ChannelExecutor.cjs +47 -43
- package/_cjs/Channel/internal/ChannelExecutor.cjs.map +1 -1
- package/_cjs/Channel/internal/ChannelState.cjs +3 -4
- package/_cjs/Channel/internal/ChannelState.cjs.map +1 -1
- package/_cjs/Channel/internal/MergeDecision.cjs +1 -2
- package/_cjs/Channel/internal/MergeDecision.cjs.map +1 -1
- package/_cjs/Channel/internal/MergeState.cjs +1 -2
- package/_cjs/Channel/internal/MergeState.cjs.map +1 -1
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs +15 -16
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs.map +1 -1
- package/_cjs/Clock/api.cjs +3 -3
- package/_cjs/Clock/api.cjs.map +1 -1
- package/_cjs/Clock/definition.cjs +3 -4
- package/_cjs/Clock/definition.cjs.map +1 -1
- package/_cjs/Clock/live.cjs +6 -7
- package/_cjs/Clock/live.cjs.map +1 -1
- package/_cjs/Console/api.cjs +4 -6
- package/_cjs/Console/api.cjs.map +1 -1
- package/_cjs/Console/definition.cjs +3 -4
- package/_cjs/Console/definition.cjs.map +1 -1
- package/_cjs/Console/live.cjs +3 -4
- package/_cjs/Console/live.cjs.map +1 -1
- package/_cjs/CountdownLatch.cjs +8 -9
- package/_cjs/CountdownLatch.cjs.map +1 -1
- package/_cjs/Differ/api.cjs +5 -6
- package/_cjs/Differ/api.cjs.map +1 -1
- package/_cjs/Differ/definition.cjs +1 -2
- package/_cjs/Differ/definition.cjs.map +1 -1
- package/_cjs/Fiber/FiberMessage.cjs +1 -2
- package/_cjs/Fiber/FiberMessage.cjs.map +1 -1
- package/_cjs/Fiber/FiberRuntime.cjs +57 -70
- package/_cjs/Fiber/FiberRuntime.cjs.map +1 -1
- package/_cjs/Fiber/api/await.cjs +1 -2
- package/_cjs/Fiber/api/await.cjs.map +1 -1
- package/_cjs/Fiber/api/awaitAll.cjs +5 -6
- package/_cjs/Fiber/api/awaitAll.cjs.map +1 -1
- package/_cjs/Fiber/api/children.cjs +1 -2
- package/_cjs/Fiber/api/children.cjs.map +1 -1
- package/_cjs/Fiber/api/collectAll.cjs +20 -21
- package/_cjs/Fiber/api/collectAll.cjs.map +1 -1
- package/_cjs/Fiber/api/fromIO.cjs +4 -5
- package/_cjs/Fiber/api/fromIO.cjs.map +1 -1
- package/_cjs/Fiber/api/id.cjs +1 -2
- package/_cjs/Fiber/api/id.cjs.map +1 -1
- package/_cjs/Fiber/api/inheritRefs.cjs +1 -2
- package/_cjs/Fiber/api/inheritRefs.cjs.map +1 -1
- package/_cjs/Fiber/api/interrupt.cjs +4 -5
- package/_cjs/Fiber/api/interrupt.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAll.cjs +5 -6
- package/_cjs/Fiber/api/interruptAll.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAs.cjs +1 -2
- package/_cjs/Fiber/api/interruptAs.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptFork.cjs +4 -5
- package/_cjs/Fiber/api/interruptFork.cjs.map +1 -1
- package/_cjs/Fiber/api/join.cjs +4 -5
- package/_cjs/Fiber/api/join.cjs.map +1 -1
- package/_cjs/Fiber/api/joinAll.cjs +5 -6
- package/_cjs/Fiber/api/joinAll.cjs.map +1 -1
- package/_cjs/Fiber/api/location.cjs +1 -2
- package/_cjs/Fiber/api/location.cjs.map +1 -1
- package/_cjs/Fiber/api/mapFiber.cjs +6 -7
- package/_cjs/Fiber/api/mapFiber.cjs.map +1 -1
- package/_cjs/Fiber/api/mapIO.cjs +12 -13
- package/_cjs/Fiber/api/mapIO.cjs.map +1 -1
- package/_cjs/Fiber/api/poll.cjs +1 -2
- package/_cjs/Fiber/api/poll.cjs.map +1 -1
- package/_cjs/Fiber/api/zipWith.cjs +14 -15
- package/_cjs/Fiber/api/zipWith.cjs.map +1 -1
- package/_cjs/Fiber/constructors.cjs +8 -10
- package/_cjs/Fiber/constructors.cjs.map +1 -1
- package/_cjs/Fiber/definition.cjs +5 -7
- package/_cjs/Fiber/definition.cjs.map +1 -1
- package/_cjs/FiberDescriptor.cjs +1 -2
- package/_cjs/FiberDescriptor.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScoped.cjs +5 -6
- package/_cjs/FiberRef/api/locallyScoped.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScopedWith.cjs +4 -5
- package/_cjs/FiberRef/api/locallyScopedWith.cjs.map +1 -1
- package/_cjs/FiberRef/api.cjs +1 -2
- package/_cjs/FiberRef/api.cjs.map +1 -1
- package/_cjs/FiberRef/constructors.cjs +6 -7
- package/_cjs/FiberRef/constructors.cjs.map +1 -1
- package/_cjs/FiberRef/definition.cjs +6 -7
- package/_cjs/FiberRef/definition.cjs.map +1 -1
- package/_cjs/FiberRef/operations.cjs +5 -6
- package/_cjs/FiberRef/operations.cjs.map +1 -1
- package/_cjs/FiberRef/unsafe.cjs +13 -14
- package/_cjs/FiberRef/unsafe.cjs.map +1 -1
- package/_cjs/FiberRefs/Patch.cjs +8 -11
- package/_cjs/FiberRefs/Patch.cjs.map +1 -1
- package/_cjs/FiberRefs/api.cjs +10 -11
- package/_cjs/FiberRefs/api.cjs.map +1 -1
- package/_cjs/FiberRefs/definition.cjs +3 -4
- package/_cjs/FiberRefs/definition.cjs.map +1 -1
- package/_cjs/FiberScope/constructors.cjs +1 -3
- package/_cjs/FiberScope/constructors.cjs.map +1 -1
- package/_cjs/FiberScope/definition.cjs +15 -14
- package/_cjs/FiberScope/definition.cjs.map +1 -1
- package/_cjs/FiberSet.cjs +11 -12
- package/_cjs/FiberSet.cjs.map +1 -1
- package/_cjs/FiberStatus/constructors.cjs +1 -2
- package/_cjs/FiberStatus/constructors.cjs.map +1 -1
- package/_cjs/FiberStatus/definition.cjs +3 -4
- package/_cjs/FiberStatus/definition.cjs.map +1 -1
- package/_cjs/Future/State.cjs +5 -5
- package/_cjs/Future/State.cjs.map +1 -1
- package/_cjs/Future/api.cjs +9 -14
- package/_cjs/Future/api.cjs.map +1 -1
- package/_cjs/Future/constructors.cjs +4 -5
- package/_cjs/Future/constructors.cjs.map +1 -1
- package/_cjs/Future/definition.cjs +1 -2
- package/_cjs/Future/definition.cjs.map +1 -1
- package/_cjs/Hub/api.cjs +12 -13
- package/_cjs/Hub/api.cjs.map +1 -1
- package/_cjs/Hub/definition.cjs +1 -3
- package/_cjs/Hub/definition.cjs.map +1 -1
- package/_cjs/Hub/internal.cjs +17 -18
- package/_cjs/Hub/internal.cjs.map +1 -1
- package/_cjs/IO/api/acquireRelease.cjs +3 -4
- package/_cjs/IO/api/acquireRelease.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseExit.cjs +5 -6
- package/_cjs/IO/api/acquireReleaseExit.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseInterruptible.cjs +3 -4
- package/_cjs/IO/api/acquireReleaseInterruptible.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs +5 -6
- package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs.map +1 -1
- package/_cjs/IO/api/addFinalizer.cjs +3 -4
- package/_cjs/IO/api/addFinalizer.cjs.map +1 -1
- package/_cjs/IO/api/addFinalizerExit.cjs +6 -7
- package/_cjs/IO/api/addFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/all.cjs +6 -7
- package/_cjs/IO/api/all.cjs.map +1 -1
- package/_cjs/IO/api/array.cjs +4 -5
- package/_cjs/IO/api/array.cjs.map +1 -1
- package/_cjs/IO/api/asyncIO.cjs +9 -10
- package/_cjs/IO/api/asyncIO.cjs.map +1 -1
- package/_cjs/IO/api/asyncInterrupt.cjs +8 -9
- package/_cjs/IO/api/asyncInterrupt.cjs.map +1 -1
- package/_cjs/IO/api/asyncIterable.cjs +84 -0
- package/_cjs/IO/api/asyncIterable.cjs.map +1 -0
- package/_cjs/IO/api/awaitAllChildren.cjs +5 -7
- package/_cjs/IO/api/awaitAllChildren.cjs.map +1 -1
- package/_cjs/IO/api/blocking.cjs +5 -6
- package/_cjs/IO/api/blocking.cjs.map +1 -1
- package/_cjs/IO/api/bracket.cjs +3 -4
- package/_cjs/IO/api/bracket.cjs.map +1 -1
- package/_cjs/IO/api/bracketExit.cjs +6 -7
- package/_cjs/IO/api/bracketExit.cjs.map +1 -1
- package/_cjs/IO/api/cachedInvalidate.cjs +15 -16
- package/_cjs/IO/api/cachedInvalidate.cjs.map +1 -1
- package/_cjs/IO/api/clockWith.cjs +8 -10
- package/_cjs/IO/api/clockWith.cjs.map +1 -1
- package/_cjs/IO/api/concurrency.cjs +7 -8
- package/_cjs/IO/api/concurrency.cjs.map +1 -1
- package/_cjs/IO/api/concurrentFinalizers.cjs +10 -11
- package/_cjs/IO/api/concurrentFinalizers.cjs.map +1 -1
- package/_cjs/IO/api/consoleWith.cjs +8 -10
- package/_cjs/IO/api/consoleWith.cjs.map +1 -1
- package/_cjs/IO/api/daemonChildren.cjs +6 -7
- package/_cjs/IO/api/daemonChildren.cjs.map +1 -1
- package/_cjs/IO/api/delay.cjs +4 -5
- package/_cjs/IO/api/delay.cjs.map +1 -1
- package/_cjs/IO/api/descriptor.cjs +6 -7
- package/_cjs/IO/api/descriptor.cjs.map +1 -1
- package/_cjs/IO/api/diffFiberRefs.cjs +4 -5
- package/_cjs/IO/api/diffFiberRefs.cjs.map +1 -1
- package/_cjs/IO/api/disconnect.cjs +6 -7
- package/_cjs/IO/api/disconnect.cjs.map +1 -1
- package/_cjs/IO/api/ensuringChildren.cjs +6 -7
- package/_cjs/IO/api/ensuringChildren.cjs.map +1 -1
- package/_cjs/IO/api/environment.cjs +6 -7
- package/_cjs/IO/api/environment.cjs.map +1 -1
- package/_cjs/IO/api/foreachConcurrent.cjs +20 -21
- package/_cjs/IO/api/foreachConcurrent.cjs.map +1 -1
- package/_cjs/IO/api/foreachExec.cjs +7 -8
- package/_cjs/IO/api/foreachExec.cjs.map +1 -1
- package/_cjs/IO/api/fork.cjs +10 -12
- package/_cjs/IO/api/fork.cjs.map +1 -1
- package/_cjs/IO/api/forkAll.cjs +5 -6
- package/_cjs/IO/api/forkAll.cjs.map +1 -1
- package/_cjs/IO/api/forkDaemon.cjs +4 -5
- package/_cjs/IO/api/forkDaemon.cjs.map +1 -1
- package/_cjs/IO/api/forkIn.cjs +7 -8
- package/_cjs/IO/api/forkIn.cjs.map +1 -1
- package/_cjs/IO/api/forkScoped.cjs +7 -8
- package/_cjs/IO/api/forkScoped.cjs.map +1 -1
- package/_cjs/IO/api/fulfill.cjs +5 -6
- package/_cjs/IO/api/fulfill.cjs.map +1 -1
- package/_cjs/IO/api/interrupt.cjs +8 -9
- package/_cjs/IO/api/interrupt.cjs.map +1 -1
- package/_cjs/IO/api/memoize.cjs +9 -10
- package/_cjs/IO/api/memoize.cjs.map +1 -1
- package/_cjs/IO/api/onTermination.cjs +6 -7
- package/_cjs/IO/api/onTermination.cjs.map +1 -1
- package/_cjs/IO/api/once.cjs +5 -6
- package/_cjs/IO/api/once.cjs.map +1 -1
- package/_cjs/IO/api/patchFiberRefs.cjs +5 -7
- package/_cjs/IO/api/patchFiberRefs.cjs.map +1 -1
- package/_cjs/IO/api/provideLayer.cjs +7 -8
- package/_cjs/IO/api/provideLayer.cjs.map +1 -1
- package/_cjs/IO/api/provideScope.cjs +5 -7
- package/_cjs/IO/api/provideScope.cjs.map +1 -1
- package/_cjs/IO/api/provideSomeLayer.cjs +4 -5
- package/_cjs/IO/api/provideSomeLayer.cjs.map +1 -1
- package/_cjs/IO/api/provideSomeRuntime.cjs +8 -9
- package/_cjs/IO/api/provideSomeRuntime.cjs.map +1 -1
- package/_cjs/IO/api/race.cjs +10 -11
- package/_cjs/IO/api/race.cjs.map +1 -1
- package/_cjs/IO/api/raceFirst.cjs +4 -5
- package/_cjs/IO/api/raceFirst.cjs.map +1 -1
- package/_cjs/IO/api/raceWith.cjs +5 -6
- package/_cjs/IO/api/raceWith.cjs.map +1 -1
- package/_cjs/IO/api/randomWith.cjs +8 -10
- package/_cjs/IO/api/randomWith.cjs.map +1 -1
- package/_cjs/IO/api/repeat.cjs +7 -8
- package/_cjs/IO/api/repeat.cjs.map +1 -1
- package/_cjs/IO/api/retry.cjs +6 -7
- package/_cjs/IO/api/retry.cjs.map +1 -1
- package/_cjs/IO/api/schedule.cjs +4 -5
- package/_cjs/IO/api/schedule.cjs.map +1 -1
- package/_cjs/IO/api/scope.cjs +4 -4
- package/_cjs/IO/api/scope.cjs.map +1 -1
- package/_cjs/IO/api/scopeWith.cjs +4 -5
- package/_cjs/IO/api/scopeWith.cjs.map +1 -1
- package/_cjs/IO/api/scoped.cjs +4 -5
- package/_cjs/IO/api/scoped.cjs.map +1 -1
- package/_cjs/IO/api/sleep.cjs +3 -4
- package/_cjs/IO/api/sleep.cjs.map +1 -1
- package/_cjs/IO/api/stateful.cjs +5 -6
- package/_cjs/IO/api/stateful.cjs.map +1 -1
- package/_cjs/IO/api/supervised.cjs +5 -6
- package/_cjs/IO/api/supervised.cjs.map +1 -1
- package/_cjs/IO/api/timeout.cjs +9 -10
- package/_cjs/IO/api/timeout.cjs.map +1 -1
- package/_cjs/IO/api/transplant.cjs +8 -9
- package/_cjs/IO/api/transplant.cjs.map +1 -1
- package/_cjs/IO/api/whenFiberRef.cjs +4 -5
- package/_cjs/IO/api/whenFiberRef.cjs.map +1 -1
- package/_cjs/IO/api/whenRef.cjs +4 -5
- package/_cjs/IO/api/whenRef.cjs.map +1 -1
- package/_cjs/IO/api/withChildren.cjs +6 -7
- package/_cjs/IO/api/withChildren.cjs.map +1 -1
- package/_cjs/IO/api/withEarlyRelease.cjs +6 -7
- package/_cjs/IO/api/withEarlyRelease.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizer.cjs +3 -4
- package/_cjs/IO/api/withFinalizer.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizerExit.cjs +3 -4
- package/_cjs/IO/api/withFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/zipConcurrent.cjs +15 -16
- package/_cjs/IO/api/zipConcurrent.cjs.map +1 -1
- package/_cjs/IO/api.cjs +28 -27
- package/_cjs/IO/api.cjs.map +1 -1
- package/_cjs/IO/definition.cjs +3 -4
- package/_cjs/IO/definition.cjs.map +1 -1
- package/_cjs/IO/runtime.cjs +21 -20
- package/_cjs/IO/runtime.cjs.map +1 -1
- package/_cjs/IO.cjs +6 -0
- package/_cjs/IOEnv/definition.cjs +9 -10
- package/_cjs/IOEnv/definition.cjs.map +1 -1
- package/_cjs/IOEnv/live.cjs +9 -10
- package/_cjs/IOEnv/live.cjs.map +1 -1
- package/_cjs/IOEnv/services.cjs +3 -4
- package/_cjs/IOEnv/services.cjs.map +1 -1
- package/_cjs/InterruptStatus/constructors.cjs +1 -2
- package/_cjs/InterruptStatus/constructors.cjs.map +1 -1
- package/_cjs/InterruptStatus/definition.cjs +1 -2
- package/_cjs/InterruptStatus/definition.cjs.map +1 -1
- package/_cjs/Layer/MemoMap.cjs +23 -24
- package/_cjs/Layer/MemoMap.cjs.map +1 -1
- package/_cjs/Layer/api.cjs +16 -17
- package/_cjs/Layer/api.cjs.map +1 -1
- package/_cjs/Layer/definition.cjs +1 -2
- package/_cjs/Layer/definition.cjs.map +1 -1
- package/_cjs/LogLevel.cjs +1 -2
- package/_cjs/LogLevel.cjs.map +1 -1
- package/_cjs/LogSpan.cjs +1 -2
- package/_cjs/LogSpan.cjs.map +1 -1
- package/_cjs/Logger/api.cjs +4 -5
- package/_cjs/Logger/api.cjs.map +1 -1
- package/_cjs/Logger/constructors.cjs +7 -8
- package/_cjs/Logger/constructors.cjs.map +1 -1
- package/_cjs/Logger/definition.cjs +1 -2
- package/_cjs/Logger/definition.cjs.map +1 -1
- package/_cjs/MVar/api.cjs +13 -14
- package/_cjs/MVar/api.cjs.map +1 -1
- package/_cjs/MVar/definition.cjs +1 -2
- package/_cjs/MVar/definition.cjs.map +1 -1
- package/_cjs/Push/FlattenStrategy.cjs +20 -21
- package/_cjs/Push/FlattenStrategy.cjs.map +1 -1
- package/_cjs/Push/IndexedBuffer.cjs +6 -7
- package/_cjs/Push/IndexedBuffer.cjs.map +1 -1
- package/_cjs/Push/MergeStrategy.cjs +6 -7
- package/_cjs/Push/MergeStrategy.cjs.map +1 -1
- package/_cjs/Push/Operator/IOLoopOperator.cjs +9 -10
- package/_cjs/Push/Operator/IOLoopOperator.cjs.map +1 -1
- package/_cjs/Push/Operator/IOOperator.cjs +6 -7
- package/_cjs/Push/Operator/IOOperator.cjs.map +1 -1
- package/_cjs/Push/Operator/LoopOperator.cjs +6 -7
- package/_cjs/Push/Operator/LoopOperator.cjs.map +1 -1
- package/_cjs/Push/Operator/SyncOperator.cjs +6 -7
- package/_cjs/Push/Operator/SyncOperator.cjs.map +1 -1
- package/_cjs/Push/Producer/IOProducer.cjs +6 -7
- package/_cjs/Push/Producer/IOProducer.cjs.map +1 -1
- package/_cjs/Push/Producer/SyncProducer.cjs +6 -7
- package/_cjs/Push/Producer/SyncProducer.cjs.map +1 -1
- package/_cjs/Push/Sink.cjs +7 -8
- package/_cjs/Push/Sink.cjs.map +1 -1
- package/_cjs/Push/api.cjs +17 -18
- package/_cjs/Push/api.cjs.map +1 -1
- package/_cjs/Push/definition.cjs +7 -8
- package/_cjs/Push/definition.cjs.map +1 -1
- package/_cjs/Push/internal.cjs +18 -19
- package/_cjs/Push/internal.cjs.map +1 -1
- package/_cjs/Queue/api/dimapIO.cjs +3 -4
- package/_cjs/Queue/api/dimapIO.cjs.map +1 -1
- package/_cjs/Queue/api/filterInputIO.cjs +9 -10
- package/_cjs/Queue/api/filterInputIO.cjs.map +1 -1
- package/_cjs/Queue/api/filterOutputIO.cjs +12 -13
- package/_cjs/Queue/api/filterOutputIO.cjs.map +1 -1
- package/_cjs/Queue/api/operations.cjs +1 -3
- package/_cjs/Queue/api/operations.cjs.map +1 -1
- package/_cjs/Queue/api/poll.cjs +4 -5
- package/_cjs/Queue/api/poll.cjs.map +1 -1
- package/_cjs/Queue/api/takeBetween.cjs +5 -6
- package/_cjs/Queue/api/takeBetween.cjs.map +1 -1
- package/_cjs/Queue/api/takeN.cjs +3 -4
- package/_cjs/Queue/api/takeN.cjs.map +1 -1
- package/_cjs/Queue/api/zipWithIO.cjs +6 -7
- package/_cjs/Queue/api/zipWithIO.cjs.map +1 -1
- package/_cjs/Queue/constructors.cjs +3 -4
- package/_cjs/Queue/constructors.cjs.map +1 -1
- package/_cjs/Queue/definition.cjs +1 -2
- package/_cjs/Queue/definition.cjs.map +1 -1
- package/_cjs/Queue/internal.cjs +11 -12
- package/_cjs/Queue/internal.cjs.map +1 -1
- package/_cjs/Queue/strategy.cjs +8 -9
- package/_cjs/Queue/strategy.cjs.map +1 -1
- package/_cjs/Random/api.cjs +3 -4
- package/_cjs/Random/api.cjs.map +1 -1
- package/_cjs/Random/definition.cjs +3 -4
- package/_cjs/Random/definition.cjs.map +1 -1
- package/_cjs/Random/live.cjs +3 -4
- package/_cjs/Random/live.cjs.map +1 -1
- package/_cjs/Ref/Atomic.cjs +3 -4
- package/_cjs/Ref/Atomic.cjs.map +1 -1
- package/_cjs/Ref/Derived.cjs +6 -7
- package/_cjs/Ref/Derived.cjs.map +1 -1
- package/_cjs/Ref/DerivedAll.cjs +6 -7
- package/_cjs/Ref/DerivedAll.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/api.cjs +5 -6
- package/_cjs/Ref/Synchronized/api.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/constructors.cjs +9 -9
- package/_cjs/Ref/Synchronized/constructors.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/definition.cjs +3 -4
- package/_cjs/Ref/Synchronized/definition.cjs.map +1 -1
- package/_cjs/Ref/api/collect.cjs +5 -6
- package/_cjs/Ref/api/collect.cjs.map +1 -1
- package/_cjs/Ref/api/dimap.cjs +4 -5
- package/_cjs/Ref/api/dimap.cjs.map +1 -1
- package/_cjs/Ref/api/filter.cjs +5 -6
- package/_cjs/Ref/api/filter.cjs.map +1 -1
- package/_cjs/Ref/api/get.cjs +1 -2
- package/_cjs/Ref/api/get.cjs.map +1 -1
- package/_cjs/Ref/api/match.cjs +1 -2
- package/_cjs/Ref/api/match.cjs.map +1 -1
- package/_cjs/Ref/api/matchAll.cjs +1 -2
- package/_cjs/Ref/api/matchAll.cjs.map +1 -1
- package/_cjs/Ref/api/modify.cjs +3 -4
- package/_cjs/Ref/api/modify.cjs.map +1 -1
- package/_cjs/Ref/api/set.cjs +1 -2
- package/_cjs/Ref/api/set.cjs.map +1 -1
- package/_cjs/Ref/api.cjs +5 -7
- package/_cjs/Ref/api.cjs.map +1 -1
- package/_cjs/Ref/constructors.cjs +3 -4
- package/_cjs/Ref/constructors.cjs.map +1 -1
- package/_cjs/Ref/definition.cjs +1 -2
- package/_cjs/Ref/definition.cjs.map +1 -1
- package/_cjs/Reloadable/api.cjs +3 -4
- package/_cjs/Reloadable/api.cjs.map +1 -1
- package/_cjs/Reloadable/constructors.cjs +14 -14
- package/_cjs/Reloadable/constructors.cjs.map +1 -1
- package/_cjs/Reloadable/definition.cjs +5 -6
- package/_cjs/Reloadable/definition.cjs.map +1 -1
- package/_cjs/RuntimeFlags/Patch.cjs +3 -4
- package/_cjs/RuntimeFlags/Patch.cjs.map +1 -1
- package/_cjs/RuntimeFlags/RuntimeFlags.cjs +3 -4
- package/_cjs/RuntimeFlags/RuntimeFlags.cjs.map +1 -1
- package/_cjs/STM/api/atomically.cjs +9 -10
- package/_cjs/STM/api/atomically.cjs.map +1 -1
- package/_cjs/STM/api/core-api.cjs +5 -6
- package/_cjs/STM/api/core-api.cjs.map +1 -1
- package/_cjs/STM/api/core-constructors.cjs +1 -2
- package/_cjs/STM/api/core-constructors.cjs.map +1 -1
- package/_cjs/STM/api.cjs +12 -13
- package/_cjs/STM/api.cjs.map +1 -1
- package/_cjs/STM/definition.cjs +3 -4
- package/_cjs/STM/definition.cjs.map +1 -1
- package/_cjs/STM/driver.cjs +7 -8
- package/_cjs/STM/driver.cjs.map +1 -1
- package/_cjs/STM/internal/CommitState.cjs +3 -4
- package/_cjs/STM/internal/CommitState.cjs.map +1 -1
- package/_cjs/STM/internal/Entry.cjs +1 -2
- package/_cjs/STM/internal/Entry.cjs.map +1 -1
- package/_cjs/STM/internal/Journal.cjs +16 -17
- package/_cjs/STM/internal/Journal.cjs.map +1 -1
- package/_cjs/STM/internal/TryCommit.cjs +1 -2
- package/_cjs/STM/internal/TryCommit.cjs.map +1 -1
- package/_cjs/STM/internal/Versioned.cjs +1 -2
- package/_cjs/STM/internal/Versioned.cjs.map +1 -1
- package/_cjs/Schedule/Decision.cjs +4 -5
- package/_cjs/Schedule/Decision.cjs.map +1 -1
- package/_cjs/Schedule/Driver.cjs +1 -2
- package/_cjs/Schedule/Driver.cjs.map +1 -1
- package/_cjs/Schedule/api/driver.cjs +14 -15
- package/_cjs/Schedule/api/driver.cjs.map +1 -1
- package/_cjs/Schedule/api.cjs +20 -21
- package/_cjs/Schedule/api.cjs.map +1 -1
- package/_cjs/Schedule/definition.cjs +1 -2
- package/_cjs/Schedule/definition.cjs.map +1 -1
- package/_cjs/Scope/Finalizer/definition.cjs +4 -5
- package/_cjs/Scope/Finalizer/definition.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs +10 -11
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api.cjs +8 -9
- package/_cjs/Scope/ReleaseMap/api.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/constructors.cjs +5 -6
- package/_cjs/Scope/ReleaseMap/constructors.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/definition.cjs +3 -4
- package/_cjs/Scope/ReleaseMap/definition.cjs.map +1 -1
- package/_cjs/Scope/api.cjs +13 -14
- package/_cjs/Scope/api.cjs.map +1 -1
- package/_cjs/Scope/definition.cjs +4 -5
- package/_cjs/Scope/definition.cjs.map +1 -1
- package/_cjs/ScopedRef/api.cjs +14 -15
- package/_cjs/ScopedRef/api.cjs.map +1 -1
- package/_cjs/ScopedRef/definition.cjs +1 -2
- package/_cjs/ScopedRef/definition.cjs.map +1 -1
- package/_cjs/Semaphore/Reservation.cjs +3 -4
- package/_cjs/Semaphore/Reservation.cjs.map +1 -1
- package/_cjs/Semaphore/constructors.cjs +4 -5
- package/_cjs/Semaphore/constructors.cjs.map +1 -1
- package/_cjs/Semaphore/definition.cjs +19 -20
- package/_cjs/Semaphore/definition.cjs.map +1 -1
- package/_cjs/Sink/api.cjs +35 -36
- package/_cjs/Sink/api.cjs.map +1 -1
- package/_cjs/Sink/definition.cjs +1 -2
- package/_cjs/Sink/definition.cjs.map +1 -1
- package/_cjs/State/api.cjs +6 -7
- package/_cjs/State/api.cjs.map +1 -1
- package/_cjs/State/definition.cjs +1 -2
- package/_cjs/State/definition.cjs.map +1 -1
- package/_cjs/State/internal.cjs +1 -2
- package/_cjs/State/internal.cjs.map +1 -1
- package/_cjs/Stream/api/zipAllWith.cjs +10 -11
- package/_cjs/Stream/api/zipAllWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWith.cjs +3 -4
- package/_cjs/Stream/api/zipWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWithChunks.cjs +8 -9
- package/_cjs/Stream/api/zipWithChunks.cjs.map +1 -1
- package/_cjs/Stream/api.cjs +73 -73
- package/_cjs/Stream/api.cjs.map +1 -1
- package/_cjs/Stream/definition.cjs +1 -2
- package/_cjs/Stream/definition.cjs.map +1 -1
- package/_cjs/Stream/internal/DebounceState.cjs +1 -2
- package/_cjs/Stream/internal/DebounceState.cjs.map +1 -1
- package/_cjs/Stream/internal/Handoff.cjs +8 -9
- package/_cjs/Stream/internal/Handoff.cjs.map +1 -1
- package/_cjs/Stream/internal/Pull.cjs +8 -9
- package/_cjs/Stream/internal/Pull.cjs.map +1 -1
- package/_cjs/Stream/internal/SinkEndReason.cjs +1 -2
- package/_cjs/Stream/internal/SinkEndReason.cjs.map +1 -1
- package/_cjs/Stream/internal/Take.cjs +12 -13
- package/_cjs/Stream/internal/Take.cjs.map +1 -1
- package/_cjs/Stream/internal/util.cjs +5 -6
- package/_cjs/Stream/internal/util.cjs.map +1 -1
- package/_cjs/Subject/Atomic.cjs +7 -8
- package/_cjs/Subject/Atomic.cjs.map +1 -1
- package/_cjs/Subject/DeferredRef.cjs +10 -11
- package/_cjs/Subject/DeferredRef.cjs.map +1 -1
- package/_cjs/Subject/Hold.cjs +8 -9
- package/_cjs/Subject/Hold.cjs.map +1 -1
- package/_cjs/Subject/RefSubject/Atomic.cjs +33 -38
- package/_cjs/Subject/RefSubject/Atomic.cjs.map +1 -1
- package/_cjs/Subject/RefSubject/Derived.cjs +5 -6
- package/_cjs/Subject/RefSubject/Derived.cjs.map +1 -1
- package/_cjs/Subject/RefSubject/RefSubject.cjs +1 -2
- package/_cjs/Subject/RefSubject/RefSubject.cjs.map +1 -1
- package/_cjs/Subject/RefSubject/constructors.cjs +9 -10
- package/_cjs/Subject/RefSubject/constructors.cjs.map +1 -1
- package/_cjs/Subject/api.cjs +4 -6
- package/_cjs/Subject/api.cjs.map +1 -1
- package/_cjs/Subject/definition.cjs +1 -2
- package/_cjs/Subject/definition.cjs.map +1 -1
- package/_cjs/SubscriptionRef.cjs +9 -10
- package/_cjs/SubscriptionRef.cjs.map +1 -1
- package/_cjs/Supervisor/api.cjs +4 -5
- package/_cjs/Supervisor/api.cjs.map +1 -1
- package/_cjs/Supervisor/constructors.cjs +6 -7
- package/_cjs/Supervisor/constructors.cjs.map +1 -1
- package/_cjs/Supervisor/definition.cjs +4 -6
- package/_cjs/Supervisor/definition.cjs.map +1 -1
- package/_cjs/SupervisorPatch.cjs +6 -7
- package/_cjs/SupervisorPatch.cjs.map +1 -1
- package/_cjs/TExit/constructors.cjs +1 -2
- package/_cjs/TExit/constructors.cjs.map +1 -1
- package/_cjs/TExit/definition.cjs +7 -8
- package/_cjs/TExit/definition.cjs.map +1 -1
- package/_cjs/TFuture/api.cjs +11 -12
- package/_cjs/TFuture/api.cjs.map +1 -1
- package/_cjs/TFuture/constructors.cjs +7 -8
- package/_cjs/TFuture/constructors.cjs.map +1 -1
- package/_cjs/TFuture/definition.cjs +3 -4
- package/_cjs/TFuture/definition.cjs.map +1 -1
- package/_cjs/TReentrantLock/api.cjs +13 -14
- package/_cjs/TReentrantLock/api.cjs.map +1 -1
- package/_cjs/TReentrantLock/definition.cjs +7 -8
- package/_cjs/TReentrantLock/definition.cjs.map +1 -1
- package/_cjs/TRef/api.cjs +4 -5
- package/_cjs/TRef/api.cjs.map +1 -1
- package/_cjs/TRef/constructors.cjs +15 -9
- package/_cjs/TRef/constructors.cjs.map +1 -1
- package/_cjs/TRef/definition.cjs +9 -10
- package/_cjs/TRef/definition.cjs.map +1 -1
- package/_cjs/TSemaphore/api.cjs +7 -8
- package/_cjs/TSemaphore/api.cjs.map +1 -1
- package/_cjs/TSemaphore/constructors.cjs +6 -7
- package/_cjs/TSemaphore/constructors.cjs.map +1 -1
- package/_cjs/TSemaphore/definition.cjs +3 -4
- package/_cjs/TSemaphore/definition.cjs.map +1 -1
- package/_cjs/TxnId.cjs +1 -3
- package/_cjs/TxnId.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs +5 -6
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs +5 -6
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/filterIO.cjs +3 -4
- package/_cjs/collection/immutable/Conc/filterIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/findIO.cjs +4 -5
- package/_cjs/collection/immutable/Conc/findIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/mapIO.cjs +3 -4
- package/_cjs/collection/immutable/Conc/mapIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs +5 -6
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs.map +1 -1
- package/_cjs/data/Exit/foreachIO.cjs +5 -6
- package/_cjs/data/Exit/foreachIO.cjs.map +1 -1
- package/_cjs/internal/BackgroundScheduler.cjs +1 -2
- package/_cjs/internal/BackgroundScheduler.cjs.map +1 -1
- package/_cjs/internal/HashedPair.cjs +6 -7
- package/_cjs/internal/HashedPair.cjs.map +1 -1
- package/_cjs/internal/Hub.cjs +6 -7
- package/_cjs/internal/Hub.cjs.map +1 -1
- package/_cjs/internal/IsFatal.cjs +1 -6
- package/_cjs/internal/IsFatal.cjs.map +1 -1
- package/_cjs/internal/MutableQueue.cjs +4 -5
- package/_cjs/internal/MutableQueue.cjs.map +1 -1
- package/_cjs/internal/Scheduler.cjs +3 -4
- package/_cjs/internal/Scheduler.cjs.map +1 -1
- package/_cjs/internal/StackTraceBuilder.cjs +4 -5
- package/_cjs/internal/StackTraceBuilder.cjs.map +1 -1
- package/_cjs/{chunk.cjs → rolldown-runtime.cjs} +2 -3
- package/_mjs/Cached/api.mjs +1 -2
- package/_mjs/Cached/api.mjs.map +1 -1
- package/_mjs/Cached/definition.mjs +1 -2
- package/_mjs/Cached/definition.mjs.map +1 -1
- package/_mjs/Cached/internal.mjs +1 -2
- package/_mjs/Cached/internal.mjs.map +1 -1
- package/_mjs/CancellerState.mjs +1 -2
- package/_mjs/CancellerState.mjs.map +1 -1
- package/_mjs/Channel/ChildExecutorDecision/api.mjs +1 -2
- package/_mjs/Channel/ChildExecutorDecision/api.mjs.map +1 -1
- package/_mjs/Channel/ChildExecutorDecision/definition.mjs +1 -2
- package/_mjs/Channel/ChildExecutorDecision/definition.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullRequest/api.mjs +1 -2
- package/_mjs/Channel/UpstreamPullRequest/api.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullRequest/definition.mjs +1 -2
- package/_mjs/Channel/UpstreamPullRequest/definition.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullStrategy/definition.mjs +1 -2
- package/_mjs/Channel/UpstreamPullStrategy/definition.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullStrategy.mjs +1 -2
- package/_mjs/Channel/api/interruptWhen.mjs +1 -2
- package/_mjs/Channel/api/interruptWhen.mjs.map +1 -1
- package/_mjs/Channel/api/mapOutConcurrentIO.mjs +1 -2
- package/_mjs/Channel/api/mapOutConcurrentIO.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAll.mjs +1 -2
- package/_mjs/Channel/api/mergeAll.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAllUnboundedWith.mjs +1 -2
- package/_mjs/Channel/api/mergeAllUnboundedWith.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAllWith.mjs +1 -2
- package/_mjs/Channel/api/mergeAllWith.mjs.map +1 -1
- package/_mjs/Channel/api/mergeMap.mjs +1 -2
- package/_mjs/Channel/api/mergeMap.mjs.map +1 -1
- package/_mjs/Channel/api/mergeWith.mjs +1 -2
- package/_mjs/Channel/api/mergeWith.mjs.map +1 -1
- package/_mjs/Channel/api/run.mjs +2 -4
- package/_mjs/Channel/api/run.mjs.map +1 -1
- package/_mjs/Channel/api/runCollect.mjs +1 -2
- package/_mjs/Channel/api/runCollect.mjs.map +1 -1
- package/_mjs/Channel/api/runDrain.mjs +1 -2
- package/_mjs/Channel/api/runDrain.mjs.map +1 -1
- package/_mjs/Channel/api/runScoped.mjs +1 -2
- package/_mjs/Channel/api/runScoped.mjs.map +1 -1
- package/_mjs/Channel/api/toPull.mjs +1 -2
- package/_mjs/Channel/api/toPull.mjs.map +1 -1
- package/_mjs/Channel/api/zipConcurrent.mjs +1 -2
- package/_mjs/Channel/api/zipConcurrent.mjs.map +1 -1
- package/_mjs/Channel/api.mjs +1 -2
- package/_mjs/Channel/api.mjs.map +1 -1
- package/_mjs/Channel/core-api.mjs +1 -2
- package/_mjs/Channel/core-api.mjs.map +1 -1
- package/_mjs/Channel/definition.mjs +1 -2
- package/_mjs/Channel/definition.mjs.map +1 -1
- package/_mjs/Channel/internal/ChannelExecutor.mjs +21 -17
- package/_mjs/Channel/internal/ChannelExecutor.mjs.map +1 -1
- package/_mjs/Channel/internal/ChannelState.mjs +1 -2
- package/_mjs/Channel/internal/ChannelState.mjs.map +1 -1
- package/_mjs/Channel/internal/MergeDecision.mjs +1 -2
- package/_mjs/Channel/internal/MergeDecision.mjs.map +1 -1
- package/_mjs/Channel/internal/MergeState.mjs +1 -2
- package/_mjs/Channel/internal/MergeState.mjs.map +1 -1
- package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs +1 -2
- package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs.map +1 -1
- package/_mjs/Clock/api.mjs +1 -1
- package/_mjs/Clock/api.mjs.map +1 -1
- package/_mjs/Clock/definition.mjs +1 -2
- package/_mjs/Clock/definition.mjs.map +1 -1
- package/_mjs/Clock/live.mjs +1 -2
- package/_mjs/Clock/live.mjs.map +1 -1
- package/_mjs/Console/api.mjs +2 -4
- package/_mjs/Console/api.mjs.map +1 -1
- package/_mjs/Console/definition.mjs +1 -2
- package/_mjs/Console/definition.mjs.map +1 -1
- package/_mjs/Console/live.mjs +1 -2
- package/_mjs/Console/live.mjs.map +1 -1
- package/_mjs/CountdownLatch.mjs +1 -2
- package/_mjs/CountdownLatch.mjs.map +1 -1
- package/_mjs/Differ/api.mjs +1 -2
- package/_mjs/Differ/api.mjs.map +1 -1
- package/_mjs/Differ/definition.mjs +1 -2
- package/_mjs/Differ/definition.mjs.map +1 -1
- package/_mjs/Fiber/FiberMessage.mjs +1 -2
- package/_mjs/Fiber/FiberMessage.mjs.map +1 -1
- package/_mjs/Fiber/FiberRuntime.mjs +23 -36
- package/_mjs/Fiber/FiberRuntime.mjs.map +1 -1
- package/_mjs/Fiber/api/await.mjs +1 -2
- package/_mjs/Fiber/api/await.mjs.map +1 -1
- package/_mjs/Fiber/api/awaitAll.mjs +1 -2
- package/_mjs/Fiber/api/awaitAll.mjs.map +1 -1
- package/_mjs/Fiber/api/children.mjs +1 -2
- package/_mjs/Fiber/api/children.mjs.map +1 -1
- package/_mjs/Fiber/api/collectAll.mjs +1 -2
- package/_mjs/Fiber/api/collectAll.mjs.map +1 -1
- package/_mjs/Fiber/api/fromIO.mjs +1 -2
- package/_mjs/Fiber/api/fromIO.mjs.map +1 -1
- package/_mjs/Fiber/api/id.mjs +1 -2
- package/_mjs/Fiber/api/id.mjs.map +1 -1
- package/_mjs/Fiber/api/inheritRefs.mjs +1 -2
- package/_mjs/Fiber/api/inheritRefs.mjs.map +1 -1
- package/_mjs/Fiber/api/interrupt.mjs +1 -2
- package/_mjs/Fiber/api/interrupt.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAll.mjs +1 -2
- package/_mjs/Fiber/api/interruptAll.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAs.mjs +1 -2
- package/_mjs/Fiber/api/interruptAs.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptFork.mjs +1 -2
- package/_mjs/Fiber/api/interruptFork.mjs.map +1 -1
- package/_mjs/Fiber/api/join.mjs +1 -2
- package/_mjs/Fiber/api/join.mjs.map +1 -1
- package/_mjs/Fiber/api/joinAll.mjs +1 -2
- package/_mjs/Fiber/api/joinAll.mjs.map +1 -1
- package/_mjs/Fiber/api/location.mjs +1 -2
- package/_mjs/Fiber/api/location.mjs.map +1 -1
- package/_mjs/Fiber/api/mapFiber.mjs +1 -2
- package/_mjs/Fiber/api/mapFiber.mjs.map +1 -1
- package/_mjs/Fiber/api/mapIO.mjs +1 -2
- package/_mjs/Fiber/api/mapIO.mjs.map +1 -1
- package/_mjs/Fiber/api/poll.mjs +1 -2
- package/_mjs/Fiber/api/poll.mjs.map +1 -1
- package/_mjs/Fiber/api/zipWith.mjs +1 -2
- package/_mjs/Fiber/api/zipWith.mjs.map +1 -1
- package/_mjs/Fiber/constructors.mjs +2 -4
- package/_mjs/Fiber/constructors.mjs.map +1 -1
- package/_mjs/Fiber/definition.mjs +2 -4
- package/_mjs/Fiber/definition.mjs.map +1 -1
- package/_mjs/FiberDescriptor.mjs +1 -2
- package/_mjs/FiberDescriptor.mjs.map +1 -1
- package/_mjs/FiberRef/api/locallyScoped.mjs +1 -2
- package/_mjs/FiberRef/api/locallyScoped.mjs.map +1 -1
- package/_mjs/FiberRef/api/locallyScopedWith.mjs +1 -2
- package/_mjs/FiberRef/api/locallyScopedWith.mjs.map +1 -1
- package/_mjs/FiberRef/api.mjs +1 -2
- package/_mjs/FiberRef/api.mjs.map +1 -1
- package/_mjs/FiberRef/constructors.mjs +1 -2
- package/_mjs/FiberRef/constructors.mjs.map +1 -1
- package/_mjs/FiberRef/definition.mjs +1 -2
- package/_mjs/FiberRef/definition.mjs.map +1 -1
- package/_mjs/FiberRef/operations.mjs +1 -2
- package/_mjs/FiberRef/operations.mjs.map +1 -1
- package/_mjs/FiberRef/unsafe.mjs +1 -2
- package/_mjs/FiberRef/unsafe.mjs.map +1 -1
- package/_mjs/FiberRefs/Patch.mjs +1 -4
- package/_mjs/FiberRefs/Patch.mjs.map +1 -1
- package/_mjs/FiberRefs/api.mjs +1 -2
- package/_mjs/FiberRefs/api.mjs.map +1 -1
- package/_mjs/FiberRefs/definition.mjs +1 -2
- package/_mjs/FiberRefs/definition.mjs.map +1 -1
- package/_mjs/FiberScope/constructors.mjs +1 -2
- package/_mjs/FiberScope/constructors.mjs.map +1 -1
- package/_mjs/FiberScope/definition.mjs +9 -8
- package/_mjs/FiberScope/definition.mjs.map +1 -1
- package/_mjs/FiberSet.mjs +1 -2
- package/_mjs/FiberSet.mjs.map +1 -1
- package/_mjs/FiberStatus/constructors.mjs +1 -2
- package/_mjs/FiberStatus/constructors.mjs.map +1 -1
- package/_mjs/FiberStatus/definition.mjs +1 -2
- package/_mjs/FiberStatus/definition.mjs.map +1 -1
- package/_mjs/Future/State.mjs +5 -5
- package/_mjs/Future/State.mjs.map +1 -1
- package/_mjs/Future/api.mjs +3 -8
- package/_mjs/Future/api.mjs.map +1 -1
- package/_mjs/Future/constructors.mjs +1 -2
- package/_mjs/Future/constructors.mjs.map +1 -1
- package/_mjs/Future/definition.mjs +1 -2
- package/_mjs/Future/definition.mjs.map +1 -1
- package/_mjs/Hub/api.mjs +1 -2
- package/_mjs/Hub/api.mjs.map +1 -1
- package/_mjs/Hub/definition.mjs +1 -2
- package/_mjs/Hub/definition.mjs.map +1 -1
- package/_mjs/Hub/internal.mjs +1 -2
- package/_mjs/Hub/internal.mjs.map +1 -1
- package/_mjs/IO/api/acquireRelease.mjs +1 -2
- package/_mjs/IO/api/acquireRelease.mjs.map +1 -1
- package/_mjs/IO/api/acquireReleaseExit.mjs +1 -2
- package/_mjs/IO/api/acquireReleaseExit.mjs.map +1 -1
- package/_mjs/IO/api/acquireReleaseInterruptible.mjs +1 -2
- package/_mjs/IO/api/acquireReleaseInterruptible.mjs.map +1 -1
- package/_mjs/IO/api/acquireReleaseInterruptibleExit.mjs +1 -2
- package/_mjs/IO/api/acquireReleaseInterruptibleExit.mjs.map +1 -1
- package/_mjs/IO/api/addFinalizer.mjs +1 -2
- package/_mjs/IO/api/addFinalizer.mjs.map +1 -1
- package/_mjs/IO/api/addFinalizerExit.mjs +1 -2
- package/_mjs/IO/api/addFinalizerExit.mjs.map +1 -1
- package/_mjs/IO/api/all.mjs +1 -2
- package/_mjs/IO/api/all.mjs.map +1 -1
- package/_mjs/IO/api/array.mjs +1 -2
- package/_mjs/IO/api/array.mjs.map +1 -1
- package/_mjs/IO/api/asyncIO.mjs +1 -2
- package/_mjs/IO/api/asyncIO.mjs.map +1 -1
- package/_mjs/IO/api/asyncInterrupt.mjs +1 -2
- package/_mjs/IO/api/asyncInterrupt.mjs.map +1 -1
- package/_mjs/IO/api/asyncIterable.mjs +74 -0
- package/_mjs/IO/api/asyncIterable.mjs.map +1 -0
- package/_mjs/IO/api/awaitAllChildren.mjs +2 -4
- package/_mjs/IO/api/awaitAllChildren.mjs.map +1 -1
- package/_mjs/IO/api/blocking.mjs +1 -2
- package/_mjs/IO/api/blocking.mjs.map +1 -1
- package/_mjs/IO/api/bracket.mjs +1 -2
- package/_mjs/IO/api/bracket.mjs.map +1 -1
- package/_mjs/IO/api/bracketExit.mjs +1 -2
- package/_mjs/IO/api/bracketExit.mjs.map +1 -1
- package/_mjs/IO/api/cachedInvalidate.mjs +1 -2
- package/_mjs/IO/api/cachedInvalidate.mjs.map +1 -1
- package/_mjs/IO/api/clockWith.mjs +2 -4
- package/_mjs/IO/api/clockWith.mjs.map +1 -1
- package/_mjs/IO/api/concurrency.mjs +1 -2
- package/_mjs/IO/api/concurrency.mjs.map +1 -1
- package/_mjs/IO/api/concurrentFinalizers.mjs +1 -2
- package/_mjs/IO/api/concurrentFinalizers.mjs.map +1 -1
- package/_mjs/IO/api/consoleWith.mjs +2 -4
- package/_mjs/IO/api/consoleWith.mjs.map +1 -1
- package/_mjs/IO/api/daemonChildren.mjs +1 -2
- package/_mjs/IO/api/daemonChildren.mjs.map +1 -1
- package/_mjs/IO/api/delay.mjs +1 -2
- package/_mjs/IO/api/delay.mjs.map +1 -1
- package/_mjs/IO/api/descriptor.mjs +1 -2
- package/_mjs/IO/api/descriptor.mjs.map +1 -1
- package/_mjs/IO/api/diffFiberRefs.mjs +1 -2
- package/_mjs/IO/api/diffFiberRefs.mjs.map +1 -1
- package/_mjs/IO/api/disconnect.mjs +1 -2
- package/_mjs/IO/api/disconnect.mjs.map +1 -1
- package/_mjs/IO/api/ensuringChildren.mjs +1 -2
- package/_mjs/IO/api/ensuringChildren.mjs.map +1 -1
- package/_mjs/IO/api/environment.mjs +1 -2
- package/_mjs/IO/api/environment.mjs.map +1 -1
- package/_mjs/IO/api/foreachConcurrent.mjs +1 -2
- package/_mjs/IO/api/foreachConcurrent.mjs.map +1 -1
- package/_mjs/IO/api/foreachExec.mjs +1 -2
- package/_mjs/IO/api/foreachExec.mjs.map +1 -1
- package/_mjs/IO/api/fork.mjs +2 -4
- package/_mjs/IO/api/fork.mjs.map +1 -1
- package/_mjs/IO/api/forkAll.mjs +1 -2
- package/_mjs/IO/api/forkAll.mjs.map +1 -1
- package/_mjs/IO/api/forkDaemon.mjs +1 -2
- package/_mjs/IO/api/forkDaemon.mjs.map +1 -1
- package/_mjs/IO/api/forkIn.mjs +1 -2
- package/_mjs/IO/api/forkIn.mjs.map +1 -1
- package/_mjs/IO/api/forkScoped.mjs +1 -2
- package/_mjs/IO/api/forkScoped.mjs.map +1 -1
- package/_mjs/IO/api/fulfill.mjs +1 -2
- package/_mjs/IO/api/fulfill.mjs.map +1 -1
- package/_mjs/IO/api/interrupt.mjs +1 -2
- package/_mjs/IO/api/interrupt.mjs.map +1 -1
- package/_mjs/IO/api/memoize.mjs +1 -2
- package/_mjs/IO/api/memoize.mjs.map +1 -1
- package/_mjs/IO/api/onTermination.mjs +1 -2
- package/_mjs/IO/api/onTermination.mjs.map +1 -1
- package/_mjs/IO/api/once.mjs +1 -2
- package/_mjs/IO/api/once.mjs.map +1 -1
- package/_mjs/IO/api/patchFiberRefs.mjs +2 -4
- package/_mjs/IO/api/patchFiberRefs.mjs.map +1 -1
- package/_mjs/IO/api/provideLayer.mjs +1 -2
- package/_mjs/IO/api/provideLayer.mjs.map +1 -1
- package/_mjs/IO/api/provideScope.mjs +2 -4
- package/_mjs/IO/api/provideScope.mjs.map +1 -1
- package/_mjs/IO/api/provideSomeLayer.mjs +1 -2
- package/_mjs/IO/api/provideSomeLayer.mjs.map +1 -1
- package/_mjs/IO/api/provideSomeRuntime.mjs +1 -2
- package/_mjs/IO/api/provideSomeRuntime.mjs.map +1 -1
- package/_mjs/IO/api/race.mjs +1 -2
- package/_mjs/IO/api/race.mjs.map +1 -1
- package/_mjs/IO/api/raceFirst.mjs +1 -2
- package/_mjs/IO/api/raceFirst.mjs.map +1 -1
- package/_mjs/IO/api/raceWith.mjs +1 -2
- package/_mjs/IO/api/raceWith.mjs.map +1 -1
- package/_mjs/IO/api/randomWith.mjs +2 -4
- package/_mjs/IO/api/randomWith.mjs.map +1 -1
- package/_mjs/IO/api/repeat.mjs +1 -2
- package/_mjs/IO/api/repeat.mjs.map +1 -1
- package/_mjs/IO/api/retry.mjs +1 -2
- package/_mjs/IO/api/retry.mjs.map +1 -1
- package/_mjs/IO/api/schedule.mjs +1 -2
- package/_mjs/IO/api/schedule.mjs.map +1 -1
- package/_mjs/IO/api/scope.mjs +1 -1
- package/_mjs/IO/api/scope.mjs.map +1 -1
- package/_mjs/IO/api/scopeWith.mjs +1 -2
- package/_mjs/IO/api/scopeWith.mjs.map +1 -1
- package/_mjs/IO/api/scoped.mjs +1 -2
- package/_mjs/IO/api/scoped.mjs.map +1 -1
- package/_mjs/IO/api/sleep.mjs +1 -2
- package/_mjs/IO/api/sleep.mjs.map +1 -1
- package/_mjs/IO/api/stateful.mjs +1 -2
- package/_mjs/IO/api/stateful.mjs.map +1 -1
- package/_mjs/IO/api/supervised.mjs +1 -2
- package/_mjs/IO/api/supervised.mjs.map +1 -1
- package/_mjs/IO/api/timeout.mjs +1 -2
- package/_mjs/IO/api/timeout.mjs.map +1 -1
- package/_mjs/IO/api/transplant.mjs +1 -2
- package/_mjs/IO/api/transplant.mjs.map +1 -1
- package/_mjs/IO/api/whenFiberRef.mjs +1 -2
- package/_mjs/IO/api/whenFiberRef.mjs.map +1 -1
- package/_mjs/IO/api/whenRef.mjs +1 -2
- package/_mjs/IO/api/whenRef.mjs.map +1 -1
- package/_mjs/IO/api/withChildren.mjs +1 -2
- package/_mjs/IO/api/withChildren.mjs.map +1 -1
- package/_mjs/IO/api/withEarlyRelease.mjs +1 -2
- package/_mjs/IO/api/withEarlyRelease.mjs.map +1 -1
- package/_mjs/IO/api/withFinalizer.mjs +1 -2
- package/_mjs/IO/api/withFinalizer.mjs.map +1 -1
- package/_mjs/IO/api/withFinalizerExit.mjs +1 -2
- package/_mjs/IO/api/withFinalizerExit.mjs.map +1 -1
- package/_mjs/IO/api/zipConcurrent.mjs +1 -2
- package/_mjs/IO/api/zipConcurrent.mjs.map +1 -1
- package/_mjs/IO/api.mjs +5 -4
- package/_mjs/IO/api.mjs.map +1 -1
- package/_mjs/IO/definition.mjs +1 -2
- package/_mjs/IO/definition.mjs.map +1 -1
- package/_mjs/IO/runtime.mjs +5 -4
- package/_mjs/IO/runtime.mjs.map +1 -1
- package/_mjs/IO.mjs +2 -1
- package/_mjs/IOEnv/definition.mjs +1 -2
- package/_mjs/IOEnv/definition.mjs.map +1 -1
- package/_mjs/IOEnv/live.mjs +1 -2
- package/_mjs/IOEnv/live.mjs.map +1 -1
- package/_mjs/IOEnv/services.mjs +1 -2
- package/_mjs/IOEnv/services.mjs.map +1 -1
- package/_mjs/InterruptStatus/constructors.mjs +1 -2
- package/_mjs/InterruptStatus/constructors.mjs.map +1 -1
- package/_mjs/InterruptStatus/definition.mjs +1 -2
- package/_mjs/InterruptStatus/definition.mjs.map +1 -1
- package/_mjs/Layer/MemoMap.mjs +1 -2
- package/_mjs/Layer/MemoMap.mjs.map +1 -1
- package/_mjs/Layer/api.mjs +1 -2
- package/_mjs/Layer/api.mjs.map +1 -1
- package/_mjs/Layer/definition.mjs +1 -2
- package/_mjs/Layer/definition.mjs.map +1 -1
- package/_mjs/LogLevel.mjs +1 -2
- package/_mjs/LogLevel.mjs.map +1 -1
- package/_mjs/LogSpan.mjs +1 -2
- package/_mjs/LogSpan.mjs.map +1 -1
- package/_mjs/Logger/api.mjs +1 -2
- package/_mjs/Logger/api.mjs.map +1 -1
- package/_mjs/Logger/constructors.mjs +1 -2
- package/_mjs/Logger/constructors.mjs.map +1 -1
- package/_mjs/Logger/definition.mjs +1 -2
- package/_mjs/Logger/definition.mjs.map +1 -1
- package/_mjs/MVar/api.mjs +1 -2
- package/_mjs/MVar/api.mjs.map +1 -1
- package/_mjs/MVar/definition.mjs +1 -2
- package/_mjs/MVar/definition.mjs.map +1 -1
- package/_mjs/Push/FlattenStrategy.mjs +1 -2
- package/_mjs/Push/FlattenStrategy.mjs.map +1 -1
- package/_mjs/Push/IndexedBuffer.mjs +1 -2
- package/_mjs/Push/IndexedBuffer.mjs.map +1 -1
- package/_mjs/Push/MergeStrategy.mjs +1 -2
- package/_mjs/Push/MergeStrategy.mjs.map +1 -1
- package/_mjs/Push/Operator/IOLoopOperator.mjs +1 -2
- package/_mjs/Push/Operator/IOLoopOperator.mjs.map +1 -1
- package/_mjs/Push/Operator/IOOperator.mjs +1 -2
- package/_mjs/Push/Operator/IOOperator.mjs.map +1 -1
- package/_mjs/Push/Operator/LoopOperator.mjs +1 -2
- package/_mjs/Push/Operator/LoopOperator.mjs.map +1 -1
- package/_mjs/Push/Operator/SyncOperator.mjs +1 -2
- package/_mjs/Push/Operator/SyncOperator.mjs.map +1 -1
- package/_mjs/Push/Producer/IOProducer.mjs +1 -2
- package/_mjs/Push/Producer/IOProducer.mjs.map +1 -1
- package/_mjs/Push/Producer/SyncProducer.mjs +1 -2
- package/_mjs/Push/Producer/SyncProducer.mjs.map +1 -1
- package/_mjs/Push/Sink.mjs +1 -2
- package/_mjs/Push/Sink.mjs.map +1 -1
- package/_mjs/Push/api.mjs +1 -2
- package/_mjs/Push/api.mjs.map +1 -1
- package/_mjs/Push/definition.mjs +1 -2
- package/_mjs/Push/definition.mjs.map +1 -1
- package/_mjs/Push/internal.mjs +1 -2
- package/_mjs/Push/internal.mjs.map +1 -1
- package/_mjs/Queue/api/dimapIO.mjs +1 -2
- package/_mjs/Queue/api/dimapIO.mjs.map +1 -1
- package/_mjs/Queue/api/filterInputIO.mjs +5 -6
- package/_mjs/Queue/api/filterInputIO.mjs.map +1 -1
- package/_mjs/Queue/api/filterOutputIO.mjs +8 -9
- package/_mjs/Queue/api/filterOutputIO.mjs.map +1 -1
- package/_mjs/Queue/api/operations.mjs +1 -2
- package/_mjs/Queue/api/operations.mjs.map +1 -1
- package/_mjs/Queue/api/poll.mjs +1 -2
- package/_mjs/Queue/api/poll.mjs.map +1 -1
- package/_mjs/Queue/api/takeBetween.mjs +1 -2
- package/_mjs/Queue/api/takeBetween.mjs.map +1 -1
- package/_mjs/Queue/api/takeN.mjs +1 -2
- package/_mjs/Queue/api/takeN.mjs.map +1 -1
- package/_mjs/Queue/api/zipWithIO.mjs +1 -2
- package/_mjs/Queue/api/zipWithIO.mjs.map +1 -1
- package/_mjs/Queue/constructors.mjs +1 -2
- package/_mjs/Queue/constructors.mjs.map +1 -1
- package/_mjs/Queue/definition.mjs +1 -2
- package/_mjs/Queue/definition.mjs.map +1 -1
- package/_mjs/Queue/internal.mjs +1 -2
- package/_mjs/Queue/internal.mjs.map +1 -1
- package/_mjs/Queue/strategy.mjs +1 -2
- package/_mjs/Queue/strategy.mjs.map +1 -1
- package/_mjs/Random/api.mjs +1 -2
- package/_mjs/Random/api.mjs.map +1 -1
- package/_mjs/Random/definition.mjs +1 -2
- package/_mjs/Random/definition.mjs.map +1 -1
- package/_mjs/Random/live.mjs +1 -2
- package/_mjs/Random/live.mjs.map +1 -1
- package/_mjs/Ref/Atomic.mjs +1 -2
- package/_mjs/Ref/Atomic.mjs.map +1 -1
- package/_mjs/Ref/Derived.mjs +1 -2
- package/_mjs/Ref/Derived.mjs.map +1 -1
- package/_mjs/Ref/DerivedAll.mjs +1 -2
- package/_mjs/Ref/DerivedAll.mjs.map +1 -1
- package/_mjs/Ref/Synchronized/api.mjs +1 -2
- package/_mjs/Ref/Synchronized/api.mjs.map +1 -1
- package/_mjs/Ref/Synchronized/constructors.mjs +3 -3
- package/_mjs/Ref/Synchronized/constructors.mjs.map +1 -1
- package/_mjs/Ref/Synchronized/definition.mjs +1 -2
- package/_mjs/Ref/Synchronized/definition.mjs.map +1 -1
- package/_mjs/Ref/api/collect.mjs +1 -2
- package/_mjs/Ref/api/collect.mjs.map +1 -1
- package/_mjs/Ref/api/dimap.mjs +1 -2
- package/_mjs/Ref/api/dimap.mjs.map +1 -1
- package/_mjs/Ref/api/filter.mjs +1 -2
- package/_mjs/Ref/api/filter.mjs.map +1 -1
- package/_mjs/Ref/api/get.mjs +1 -2
- package/_mjs/Ref/api/get.mjs.map +1 -1
- package/_mjs/Ref/api/match.mjs +1 -2
- package/_mjs/Ref/api/match.mjs.map +1 -1
- package/_mjs/Ref/api/matchAll.mjs +1 -2
- package/_mjs/Ref/api/matchAll.mjs.map +1 -1
- package/_mjs/Ref/api/modify.mjs +1 -2
- package/_mjs/Ref/api/modify.mjs.map +1 -1
- package/_mjs/Ref/api/set.mjs +1 -2
- package/_mjs/Ref/api/set.mjs.map +1 -1
- package/_mjs/Ref/api.mjs +2 -4
- package/_mjs/Ref/api.mjs.map +1 -1
- package/_mjs/Ref/constructors.mjs +1 -2
- package/_mjs/Ref/constructors.mjs.map +1 -1
- package/_mjs/Ref/definition.mjs +1 -2
- package/_mjs/Ref/definition.mjs.map +1 -1
- package/_mjs/Reloadable/api.mjs +1 -2
- package/_mjs/Reloadable/api.mjs.map +1 -1
- package/_mjs/Reloadable/constructors.mjs +3 -3
- package/_mjs/Reloadable/constructors.mjs.map +1 -1
- package/_mjs/Reloadable/definition.mjs +1 -2
- package/_mjs/Reloadable/definition.mjs.map +1 -1
- package/_mjs/RuntimeFlags/Patch.mjs +1 -2
- package/_mjs/RuntimeFlags/Patch.mjs.map +1 -1
- package/_mjs/RuntimeFlags/RuntimeFlags.mjs +1 -2
- package/_mjs/RuntimeFlags/RuntimeFlags.mjs.map +1 -1
- package/_mjs/STM/api/atomically.mjs +1 -2
- package/_mjs/STM/api/atomically.mjs.map +1 -1
- package/_mjs/STM/api/core-api.mjs +1 -2
- package/_mjs/STM/api/core-api.mjs.map +1 -1
- package/_mjs/STM/api/core-constructors.mjs +1 -2
- package/_mjs/STM/api/core-constructors.mjs.map +1 -1
- package/_mjs/STM/api.mjs +1 -2
- package/_mjs/STM/api.mjs.map +1 -1
- package/_mjs/STM/definition.mjs +1 -2
- package/_mjs/STM/definition.mjs.map +1 -1
- package/_mjs/STM/driver.mjs +1 -2
- package/_mjs/STM/driver.mjs.map +1 -1
- package/_mjs/STM/internal/CommitState.mjs +1 -2
- package/_mjs/STM/internal/CommitState.mjs.map +1 -1
- package/_mjs/STM/internal/Entry.mjs +1 -2
- package/_mjs/STM/internal/Entry.mjs.map +1 -1
- package/_mjs/STM/internal/Journal.mjs +11 -12
- package/_mjs/STM/internal/Journal.mjs.map +1 -1
- package/_mjs/STM/internal/TryCommit.mjs +1 -2
- package/_mjs/STM/internal/TryCommit.mjs.map +1 -1
- package/_mjs/STM/internal/Versioned.mjs +1 -2
- package/_mjs/STM/internal/Versioned.mjs.map +1 -1
- package/_mjs/Schedule/Decision.mjs +1 -2
- package/_mjs/Schedule/Decision.mjs.map +1 -1
- package/_mjs/Schedule/Driver.mjs +1 -2
- package/_mjs/Schedule/Driver.mjs.map +1 -1
- package/_mjs/Schedule/api/driver.mjs +1 -2
- package/_mjs/Schedule/api/driver.mjs.map +1 -1
- package/_mjs/Schedule/api.mjs +1 -2
- package/_mjs/Schedule/api.mjs.map +1 -1
- package/_mjs/Schedule/definition.mjs +1 -2
- package/_mjs/Schedule/definition.mjs.map +1 -1
- package/_mjs/Scope/Finalizer/definition.mjs +1 -2
- package/_mjs/Scope/Finalizer/definition.mjs.map +1 -1
- package/_mjs/Scope/Finalizer.mjs +1 -2
- package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs +1 -2
- package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/api.mjs +1 -2
- package/_mjs/Scope/ReleaseMap/api.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/constructors.mjs +1 -2
- package/_mjs/Scope/ReleaseMap/constructors.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/definition.mjs +1 -2
- package/_mjs/Scope/ReleaseMap/definition.mjs.map +1 -1
- package/_mjs/Scope/api.mjs +1 -2
- package/_mjs/Scope/api.mjs.map +1 -1
- package/_mjs/Scope/definition.mjs +1 -2
- package/_mjs/Scope/definition.mjs.map +1 -1
- package/_mjs/ScopedRef/api.mjs +1 -2
- package/_mjs/ScopedRef/api.mjs.map +1 -1
- package/_mjs/ScopedRef/definition.mjs +1 -2
- package/_mjs/ScopedRef/definition.mjs.map +1 -1
- package/_mjs/Semaphore/Reservation.mjs +1 -2
- package/_mjs/Semaphore/Reservation.mjs.map +1 -1
- package/_mjs/Semaphore/constructors.mjs +1 -2
- package/_mjs/Semaphore/constructors.mjs.map +1 -1
- package/_mjs/Semaphore/definition.mjs +1 -2
- package/_mjs/Semaphore/definition.mjs.map +1 -1
- package/_mjs/Sink/api.mjs +1 -2
- package/_mjs/Sink/api.mjs.map +1 -1
- package/_mjs/Sink/definition.mjs +1 -2
- package/_mjs/Sink/definition.mjs.map +1 -1
- package/_mjs/State/api.mjs +1 -2
- package/_mjs/State/api.mjs.map +1 -1
- package/_mjs/State/definition.mjs +1 -2
- package/_mjs/State/definition.mjs.map +1 -1
- package/_mjs/State/internal.mjs +1 -2
- package/_mjs/State/internal.mjs.map +1 -1
- package/_mjs/Stream/api/zipAllWith.mjs +1 -2
- package/_mjs/Stream/api/zipAllWith.mjs.map +1 -1
- package/_mjs/Stream/api/zipWith.mjs +1 -2
- package/_mjs/Stream/api/zipWith.mjs.map +1 -1
- package/_mjs/Stream/api/zipWithChunks.mjs +1 -2
- package/_mjs/Stream/api/zipWithChunks.mjs.map +1 -1
- package/_mjs/Stream/api.mjs +3 -3
- package/_mjs/Stream/api.mjs.map +1 -1
- package/_mjs/Stream/definition.mjs +1 -2
- package/_mjs/Stream/definition.mjs.map +1 -1
- package/_mjs/Stream/internal/DebounceState.mjs +1 -2
- package/_mjs/Stream/internal/DebounceState.mjs.map +1 -1
- package/_mjs/Stream/internal/Handoff.mjs +1 -2
- package/_mjs/Stream/internal/Handoff.mjs.map +1 -1
- package/_mjs/Stream/internal/Pull.mjs +1 -2
- package/_mjs/Stream/internal/Pull.mjs.map +1 -1
- package/_mjs/Stream/internal/SinkEndReason.mjs +1 -2
- package/_mjs/Stream/internal/SinkEndReason.mjs.map +1 -1
- package/_mjs/Stream/internal/Take.mjs +1 -2
- package/_mjs/Stream/internal/Take.mjs.map +1 -1
- package/_mjs/Stream/internal/util.mjs +1 -2
- package/_mjs/Stream/internal/util.mjs.map +1 -1
- package/_mjs/Subject/Atomic.mjs +1 -2
- package/_mjs/Subject/Atomic.mjs.map +1 -1
- package/_mjs/Subject/DeferredRef.mjs +1 -2
- package/_mjs/Subject/DeferredRef.mjs.map +1 -1
- package/_mjs/Subject/Hold.mjs +1 -2
- package/_mjs/Subject/Hold.mjs.map +1 -1
- package/_mjs/Subject/RefSubject/Atomic.mjs +19 -24
- package/_mjs/Subject/RefSubject/Atomic.mjs.map +1 -1
- package/_mjs/Subject/RefSubject/Derived.mjs +1 -2
- package/_mjs/Subject/RefSubject/Derived.mjs.map +1 -1
- package/_mjs/Subject/RefSubject/RefSubject.mjs +1 -2
- package/_mjs/Subject/RefSubject/RefSubject.mjs.map +1 -1
- package/_mjs/Subject/RefSubject/constructors.mjs +1 -2
- package/_mjs/Subject/RefSubject/constructors.mjs.map +1 -1
- package/_mjs/Subject/api.mjs +2 -4
- package/_mjs/Subject/api.mjs.map +1 -1
- package/_mjs/Subject/definition.mjs +1 -2
- package/_mjs/Subject/definition.mjs.map +1 -1
- package/_mjs/SubscriptionRef.mjs +1 -2
- package/_mjs/SubscriptionRef.mjs.map +1 -1
- package/_mjs/Supervisor/api.mjs +1 -2
- package/_mjs/Supervisor/api.mjs.map +1 -1
- package/_mjs/Supervisor/constructors.mjs +1 -2
- package/_mjs/Supervisor/constructors.mjs.map +1 -1
- package/_mjs/Supervisor/definition.mjs +2 -4
- package/_mjs/Supervisor/definition.mjs.map +1 -1
- package/_mjs/SupervisorPatch.mjs +1 -2
- package/_mjs/SupervisorPatch.mjs.map +1 -1
- package/_mjs/TExit/constructors.mjs +1 -2
- package/_mjs/TExit/constructors.mjs.map +1 -1
- package/_mjs/TExit/definition.mjs +1 -2
- package/_mjs/TExit/definition.mjs.map +1 -1
- package/_mjs/TFuture/api.mjs +1 -2
- package/_mjs/TFuture/api.mjs.map +1 -1
- package/_mjs/TFuture/constructors.mjs +1 -2
- package/_mjs/TFuture/constructors.mjs.map +1 -1
- package/_mjs/TFuture/definition.mjs +1 -2
- package/_mjs/TFuture/definition.mjs.map +1 -1
- package/_mjs/TReentrantLock/api.mjs +1 -2
- package/_mjs/TReentrantLock/api.mjs.map +1 -1
- package/_mjs/TReentrantLock/definition.mjs +1 -2
- package/_mjs/TReentrantLock/definition.mjs.map +1 -1
- package/_mjs/TRef/api.mjs +1 -2
- package/_mjs/TRef/api.mjs.map +1 -1
- package/_mjs/TRef/constructors.mjs +11 -5
- package/_mjs/TRef/constructors.mjs.map +1 -1
- package/_mjs/TRef/definition.mjs +1 -2
- package/_mjs/TRef/definition.mjs.map +1 -1
- package/_mjs/TSemaphore/api.mjs +1 -2
- package/_mjs/TSemaphore/api.mjs.map +1 -1
- package/_mjs/TSemaphore/constructors.mjs +1 -2
- package/_mjs/TSemaphore/constructors.mjs.map +1 -1
- package/_mjs/TSemaphore/definition.mjs +1 -2
- package/_mjs/TSemaphore/definition.mjs.map +1 -1
- package/_mjs/TxnId.mjs +1 -2
- package/_mjs/TxnId.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropUntilIO.mjs +1 -2
- package/_mjs/collection/immutable/Conc/dropUntilIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropWhileIO.mjs +1 -2
- package/_mjs/collection/immutable/Conc/dropWhileIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/filterIO.mjs +1 -2
- package/_mjs/collection/immutable/Conc/filterIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/findIO.mjs +1 -2
- package/_mjs/collection/immutable/Conc/findIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/mapIO.mjs +1 -2
- package/_mjs/collection/immutable/Conc/mapIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/takeWhileIO.mjs +1 -2
- package/_mjs/collection/immutable/Conc/takeWhileIO.mjs.map +1 -1
- package/_mjs/data/Exit/foreachIO.mjs +1 -2
- package/_mjs/data/Exit/foreachIO.mjs.map +1 -1
- package/_mjs/internal/BackgroundScheduler.mjs +1 -2
- package/_mjs/internal/BackgroundScheduler.mjs.map +1 -1
- package/_mjs/internal/HashedPair.mjs +1 -2
- package/_mjs/internal/HashedPair.mjs.map +1 -1
- package/_mjs/internal/Hub.mjs +1 -2
- package/_mjs/internal/Hub.mjs.map +1 -1
- package/_mjs/internal/IsFatal.mjs +1 -6
- package/_mjs/internal/IsFatal.mjs.map +1 -1
- package/_mjs/internal/MutableQueue.mjs +1 -2
- package/_mjs/internal/MutableQueue.mjs.map +1 -1
- package/_mjs/internal/Scheduler.mjs +1 -2
- package/_mjs/internal/Scheduler.mjs.map +1 -1
- package/_mjs/internal/StackTraceBuilder.mjs +1 -2
- package/_mjs/internal/StackTraceBuilder.mjs.map +1 -1
- package/_src/IO/api/asyncIterable.ts +103 -0
- package/_src/IO.ts +1 -0
- package/_src/Queue/api/filterInputIO.ts +8 -3
- package/_src/Queue/api/filterOutputIO.ts +8 -3
- package/_src/Scope/Finalizer/definition.ts +6 -7
- package/_src/Scope/ReleaseMap/definition.ts +6 -7
- package/package.json +2 -2
package/_cjs/Stream/api.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.cjs","names":["tsplus_module_1","tsplus_module_2","tsplus_module_3","tsplus_module_4","tsplus_module_6","tsplus_module_5","tsplus_module_11","tsplus_module_7","tsplus_module_8","ScheduleEnd","tsplus_module_9","tsplus_module_10","tsplus_module_12","tsplus_module_13","UpstreamEnd","tsplus_module_14","tsplus_module_15","tsplus_module_16","tsplus_module_17","tsplus_module_19","tsplus_module_18","tsplus_module_23","tsplus_module_22","tsplus_module_21","tsplus_module_20","tsplus_module_28","tsplus_module_24","tsplus_module_25","tsplus_module_26","tsplus_module_27","Stream","tsplus_module_29","tsplus_module_30","tsplus_module_31","tsplus_module_32","tsplus_module_33","tsplus_module_35","tsplus_module_34","tsplus_module_36","tsplus_module_39","tsplus_module_40","tsplus_module_41","tsplus_module_44","tsplus_module_42","tsplus_module_43","tsplus_module_45","tsplus_module_37","tsplus_module_38","tsplus_module_46","tsplus_module_47","tsplus_module_48","tsplus_module_49","tsplus_module_50","tsplus_module_51","identity","tsplus_module_52","DEFAULT_CHUNK_SIZE","tsplus_module_53","tsplus_module_54","tsplus_module_55","tsplus_module_56","tsplus_module_57","tsplus_module_58","tsplus_module_59","tsplus_module_60","tsplus_module_61","tsplus_module_62","tsplus_module_63","tsplus_module_64","tsplus_module_65","tsplus_module_66","tsplus_module_67","tsplus_module_68","tsplus_module_69"],"sources":["../../esm/Stream/api.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/Stream/api.ts\";\nimport * as tsplus_module_1 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_2 from \"@fncts/io/IO/api/acquireRelease\";\nimport * as tsplus_module_3 from \"@fncts/io/IO/api/acquireReleaseExit\";\nimport * as tsplus_module_4 from \"@fncts/io/Schedule/api\";\nimport * as tsplus_module_5 from \"@fncts/base/data/Maybe/constructors\";\nimport * as tsplus_module_6 from \"@fncts/base/data/Either/destructors\";\nimport * as tsplus_module_7 from \"@fncts/io/Stream/internal/Handoff\";\nimport * as tsplus_module_8 from \"@fncts/io/Ref/constructors\";\nimport * as tsplus_module_9 from \"@fncts/base/collection/immutable/Conc/api/empty\";\nimport * as tsplus_module_10 from \"@fncts/io/Schedule/api/driver\";\nimport * as tsplus_module_11 from \"@fncts/io/IO/api/all\";\nimport * as tsplus_module_12 from \"@fncts/io/Channel/api\";\nimport * as tsplus_module_13 from \"@fncts/io/Channel/core-api\";\nimport * as tsplus_module_14 from \"@fncts/base/collection/immutable/Conc/api\";\nimport * as tsplus_module_15 from \"@fncts/io/Ref/api/set\";\nimport * as tsplus_module_16 from \"@fncts/io/Ref/api/get\";\nimport * as tsplus_module_17 from \"@fncts/io/Ref/api/modify\";\nimport * as tsplus_module_18 from \"@fncts/io/Channel/api/runScoped\";\nimport * as tsplus_module_19 from \"@fncts/io/IO/api/forkScoped\";\nimport * as tsplus_module_20 from \"@fncts/base/data/Either/constructors\";\nimport * as tsplus_module_21 from \"@fncts/base/collection/immutable/Conc/constructors\";\nimport * as tsplus_module_22 from \"@fncts/base/data/Maybe/destructors\";\nimport * as tsplus_module_23 from \"@fncts/io/Stream/internal/SinkEndReason\";\nimport * as tsplus_module_24 from \"@fncts/io/Fiber/api/join\";\nimport * as tsplus_module_25 from \"@fncts/io/Fiber/api/interrupt\";\nimport * as tsplus_module_26 from \"@fncts/io/IO/api/forkDaemon\";\nimport * as tsplus_module_27 from \"@fncts/base/data/Cause/api\";\nimport * as tsplus_module_28 from \"@fncts/io/IO/api/raceWith\";\nimport * as tsplus_module_29 from \"@fncts/io/Stream/internal/Take\";\nimport * as tsplus_module_30 from \"@fncts/io/Queue/api/operations\";\nimport * as tsplus_module_31 from \"@fncts/io/IO/runtime\";\nimport * as tsplus_module_32 from \"@fncts/io/Queue/constructors\";\nimport * as tsplus_module_33 from \"@fncts/io/IO/api/fork\";\nimport * as tsplus_module_34 from \"@fncts/io/Hub/api\";\nimport * as tsplus_module_35 from \"@fncts/base/collection/immutable/Conc/api/replicate\";\nimport * as tsplus_module_36 from \"@fncts/base/data/Exit/api\";\nimport * as tsplus_module_37 from \"@fncts/io/Future/api\";\nimport * as tsplus_module_38 from \"@fncts/io/Future/constructors\";\nimport * as tsplus_module_39 from \"@fncts/base/data/Maybe/api\";\nimport * as tsplus_module_40 from \"@fncts/base/collection/Iterable/constructors\";\nimport * as tsplus_module_41 from \"@fncts/base/data/Exit/constructors\";\nimport * as tsplus_module_42 from \"@fncts/io/Stream/internal/DebounceState\";\nimport * as tsplus_module_43 from \"@fncts/io/Clock/api\";\nimport * as tsplus_module_44 from \"@fncts/io/IO/api/transplant\";\nimport * as tsplus_module_45 from \"@fncts/base/collection/immutable/HashMap/api\";\nimport * as tsplus_module_46 from \"@fncts/io/Semaphore/constructors\";\nimport * as tsplus_module_47 from \"@fncts/base/data/Predicate/api\";\nimport * as tsplus_module_48 from \"@fncts/io/Sink/api\";\nimport * as tsplus_module_49 from \"@fncts/io/Fiber/api/poll\";\nimport * as tsplus_module_50 from \"@fncts/io/IO/api/environment\";\nimport * as tsplus_module_51 from \"@fncts/io/collection/immutable/Conc/findIO\";\nimport * as tsplus_module_52 from \"@fncts/base/data/Exit/definition\";\nimport * as tsplus_module_53 from \"@fncts/io/Stream/internal/Pull\";\nimport * as tsplus_module_54 from \"@fncts/io/Queue/api/takeBetween\";\nimport * as tsplus_module_55 from \"@fncts/io/Channel/api/interruptWhen\";\nimport * as tsplus_module_56 from \"@fncts/io/Channel/api/mapOutConcurrentIO\";\nimport * as tsplus_module_57 from \"@fncts/io/Channel/api/mergeMap\";\nimport * as tsplus_module_58 from \"@fncts/io/Channel/api/mergeWith\";\nimport * as tsplus_module_59 from \"@fncts/io/Channel/internal/MergeDecision\";\nimport * as tsplus_module_60 from \"@fncts/io/Layer/MemoMap\";\nimport * as tsplus_module_61 from \"@fncts/io/Layer/api\";\nimport * as tsplus_module_62 from \"@fncts/io/Channel/api/runDrain\";\nimport * as tsplus_module_63 from \"@fncts/base/collection/immutable/Conc/definition\";\nimport * as tsplus_module_64 from \"@fncts/base/data/Maybe/definition\";\nimport * as tsplus_module_65 from \"@fncts/base/data/exceptions\";\nimport * as tsplus_module_66 from \"@fncts/io/IO/api/interrupt\";\nimport * as tsplus_module_67 from \"@fncts/io/Channel/api/toPull\";\nimport * as tsplus_module_68 from \"@fncts/io/Scope/api\";\nimport * as tsplus_module_69 from \"@fncts/io/IO/api/provideScope\";\nexport const aggregateAsyncWithin = aggregateAsyncWithin_1;\nexport const aggregateAsyncWithinEither = aggregateAsyncWithinEither_1;\nexport const asyncInterrupt = asyncInterrupt_1;\nexport const asyncMaybe = asyncMaybe_1;\nexport const broadcastedQueues = broadcastedQueues_1;\nexport const broadcastedQueuesDynamic = broadcastedQueuesDynamic_1;\nexport const catchAll = catchAll_1;\nexport const catchAllCause = catchAllCause_1;\nexport const chunks = chunks_1;\nexport const concat = concat_1;\nexport const crossWith = crossWith_1;\nexport const defer = defer_1;\nexport const distributedWithDynamic = distributedWithDynamic_1;\nexport const drain = drain_1;\nexport const drop = drop_1;\nexport const dropWhile = dropWhile_1;\nexport const flatMap = flatMap_1;\nexport const zipRight = zipRight_1;\nexport const ensuring = ensuring_1;\nexport const environment = environment_1;\nexport const execute = execute_1;\nexport const failCauseNow = failCauseNow_1;\nexport const failNow = failNow_1;\nexport const filterMap = filterMap_1;\nexport const flatten = flatten_1;\nexport const flattenChunks = flattenChunks_1;\nexport const flattenExitOption = flattenExitOption_1;\nexport const flattenTake = flattenTake_1;\nexport const forever = forever_1;\nexport const fromChunk = fromChunk_1;\nexport const fromChunkNow = fromChunkNow_1;\nexport const fromIO = fromIO_1;\nexport const fromIOMaybe = fromIOMaybe_1;\nexport const fromPull = fromPull_1;\nexport const fromQueue = fromQueue_1;\nexport const fromQueueWithShutdown = fromQueueWithShutdown_1;\nexport const halt = halt_1;\nexport const interleaveWith = interleaveWith_1;\nexport const map = map_1;\nexport const mapAccum = mapAccum_1;\nexport const mapAccumIO = mapAccumIO_1;\nexport const mapChunks = mapChunks_1;\nexport const mapConcatChunk = mapConcatChunk_1;\nexport const mapError = mapError_1;\nexport const mapIO = mapIO_1;\nexport const merge = merge_1;\nexport const mergeEither = mergeEither_1;\nexport const mergeMap = mergeMap_1;\nexport const mergeWith = mergeWith_1;\nexport const orElse = orElse_1;\nexport const pipeThrough = pipeThrough_1;\nexport const pipeThroughChannelOrFail = pipeThroughChannelOrFail_1;\nexport const provideEnvironment = provideEnvironment_1;\nexport const provideLayer = provideLayer_1;\nexport const repeatIOChunkMaybe = repeatIOChunkMaybe_1;\nexport const repeatIOMaybe = repeatIOMaybe_1;\nexport const run = run_1;\nexport const runForeachScoped = runForeachScoped_1;\nexport const runIntoHubScoped = runIntoHubScoped_1;\nexport const runIntoQueueElementsScoped = runIntoQueueElementsScoped_1;\nexport const runIntoQueueScoped = runIntoQueueScoped_1;\nexport const runScoped = runScoped_1;\nexport const scanIO = scanIO_1;\nexport const scanReduceIO = scanReduceIO_1;\nexport const scoped = scoped_1;\nexport const succeedNow = succeedNow_1;\nexport const tap = tap_1;\nexport const tapError = tapError_1;\nexport const throttleEnforceIO = throttleEnforceIO_1;\nexport const toHub = toHub_1;\nexport const toPull = toPull_1;\nexport const toQueue = toQueue_1;\nexport const toQueueOfElements = toQueueOfElements_1;\nexport const toQueueUnbounded = toQueueUnbounded_1;\nexport const unfoldChunk = unfoldChunk_1;\nexport const unfoldChunkIO = unfoldChunkIO_1;\nexport const unfoldIO = unfoldIO_1;\nexport const unwrap = unwrap_1;\nexport const unwrapScoped = unwrapScoped_1;\nimport { identity, tuple } from \"@fncts/base/data/function\";\nimport { DEFAULT_CHUNK_SIZE, Stream } from \"./definition.js\";\nimport { Handoff } from \"./internal/Handoff.js\";\nimport { ScheduleEnd, UpstreamEnd } from \"./internal/SinkEndReason.js\";\n/**\n * Submerges the error case of an `Either` into the `Stream`.\n *\n * @tsplus getter fncts.io.Stream absolve\n */\nexport function absolve(self, __tsplusTrace) {\n return mapIO_1((either) => tsplus_module_1.fromEither(() => either, __tsplusTrace), __tsplusTrace)(self);\n}\n/**\n * Creates a stream from a single value that will get cleaned up after the\n * stream is consumed\n *\n * @tsplus static fncts.io.StreamOps acquireRelease\n */\nexport function acquireRelease(acquire, release, __tsplusTrace) {\n return scoped_1(() => tsplus_module_2.acquireRelease(() => acquire, release, __tsplusTrace), __tsplusTrace);\n}\n/**\n * Creates a stream from a single value that will get cleaned up after the\n * stream is consumed\n *\n * @tsplus static fncts.io.StreamOps acquireReleaseExit\n */\nexport function acquireReleaseExit(acquire, release, __tsplusTrace) {\n return scoped_1(() => tsplus_module_3.acquireReleaseExit(() => acquire, release, __tsplusTrace), __tsplusTrace);\n}\n/**\n * Aggregates elements of this stream using the provided sink for as long\n * as the downstream operators on the stream are busy.\n *\n * This operator divides the stream into two asynchronous \"islands\". Operators upstream\n * of this operator run on one fiber, while downstream operators run on another. Whenever\n * the downstream fiber is busy processing elements, the upstream fiber will feed elements\n * into the sink until it signals completion.\n *\n * Any sink can be used here, but see `Sink.foldWeightedM` and `Sink.foldUntilM` for\n * sinks that cover the common usecases.\n *\n * @tsplus pipeable fncts.io.Stream aggregateAsync\n */\nexport function aggregateAsync(sink, __tsplusTrace) {\n return (stream) => {\n return aggregateAsyncWithin_1(sink, tsplus_module_4.forever, __tsplusTrace)(stream);\n };\n}\n/**\n * Like `aggregateAsyncWithinEither`, but only returns the `Right` results.\n *\n * @tsplus pipeable fncts.io.Stream aggregateAsyncWithin\n */\nfunction aggregateAsyncWithin_1(sink, schedule, __tsplusTrace) {\n return (stream) => {\n return filterMap_1((cb) => tsplus_module_6.match(() => tsplus_module_5.nothing(__tsplusTrace), tsplus_module_5.just)(cb), __tsplusTrace)(aggregateAsyncWithinEither_1(sink, schedule, __tsplusTrace)(stream));\n };\n}\n/**\n * Aggregates elements using the provided sink until it completes, or until the\n * delay signalled by the schedule has passed.\n *\n * This operator divides the stream into two asynchronous islands. Operators upstream\n * of this operator run on one fiber, while downstream operators run on another. Elements\n * will be aggregated by the sink until the downstream fiber pulls the aggregated value,\n * or until the schedule's delay has passed.\n *\n * Aggregated elements will be fed into the schedule to determine the delays between\n * pulls.\n *\n * @tsplus pipeable fncts.io.Stream aggregateAsyncWithinEither\n */\nfunction aggregateAsyncWithinEither_1(sink, schedule, __tsplusTrace) {\n return (stream) => {\n const deps = tsplus_module_11.all([\n tsplus_module_7.make(),\n tsplus_module_8.make(() => new ScheduleEnd(), __tsplusTrace),\n tsplus_module_8.make(() => tsplus_module_9.empty(), __tsplusTrace),\n tsplus_module_10.driver(schedule, __tsplusTrace),\n tsplus_module_8.make(() => false, __tsplusTrace),\n ]);\n return flatMap_1(([handoff, sinkEndReason, sinkLeftovers, scheduleDriver, consumed]) => {\n const handoffProducer = tsplus_module_12.readWithCause((_in) => tsplus_module_13.zipRight(handoffProducer)(tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_7.emit(_in))(handoff))), (cause) => tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_7.halt(cause))(handoff)), (_) => tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_7.end(new UpstreamEnd()))(handoff)));\n const handoffConsumer = tsplus_module_12.unwrap(() => tsplus_module_1.flatMap((leftovers) => {\n if (tsplus_module_14.isNonEmpty(leftovers)) {\n return tsplus_module_1.zipRight(tsplus_module_1.succeedNow(tsplus_module_13.zipRight(handoffConsumer)(tsplus_module_12.writeNow(leftovers)), __tsplusTrace), __tsplusTrace)(tsplus_module_15.set(true, __tsplusTrace)(consumed));\n }\n else {\n return tsplus_module_1.map((signal) => tsplus_module_7.matchSignal({\n Emit: ({ els }) => tsplus_module_13.zipRight(handoffConsumer)(tsplus_module_13.zipRight(tsplus_module_12.writeNow(els))(tsplus_module_12.fromIO(() => tsplus_module_15.set(true, __tsplusTrace)(consumed)))),\n Halt: ({ error }) => tsplus_module_13.failCause(() => error),\n End: ({ reason }) => {\n if (reason._tag === \"ScheduleEnd\" /* SinkEndReasonTag.ScheduleEnd */) {\n return tsplus_module_12.unwrap(() => tsplus_module_1.map((p) => p\n ? tsplus_module_12.fromIO(() => tsplus_module_15.set(new ScheduleEnd(), __tsplusTrace)(sinkEndReason))\n : tsplus_module_13.zipRight(handoffConsumer)(tsplus_module_12.fromIO(() => tsplus_module_15.set(new ScheduleEnd(), __tsplusTrace)(sinkEndReason))), __tsplusTrace)(tsplus_module_16.get(consumed, __tsplusTrace)));\n }\n else {\n return tsplus_module_12.fromIO(() => tsplus_module_15.set(reason, __tsplusTrace)(sinkEndReason));\n }\n },\n })(signal), __tsplusTrace)(tsplus_module_7.take(handoff));\n }\n }, __tsplusTrace)(tsplus_module_17.getAndSet(tsplus_module_9.empty(), __tsplusTrace)(sinkLeftovers)));\n function timeout(lastB, __tsplusTrace) {\n return scheduleDriver.next(lastB, __tsplusTrace);\n }\n const scheduledAggregator = (sinkFiber, scheduleFiber) => {\n const forkSink = tsplus_module_1.zipRight(tsplus_module_19.forkScoped(tsplus_module_18.runScoped(tsplus_module_12.doneCollect(tsplus_module_12.pipeToOrFail(sink.channel)(handoffConsumer))), __tsplusTrace), __tsplusTrace)(tsplus_module_15.set(false, __tsplusTrace)(consumed));\n function handleSide(leftovers, b, c, __tsplusTrace) {\n return tsplus_module_12.unwrap(() => tsplus_module_1.zipRight(tsplus_module_1.map((reason) => tsplus_module_23.matchSinkEndReason({\n ScheduleEnd: () => tsplus_module_12.unwrapScoped(() => tsplus_module_1.flatMap(consumed_ => tsplus_module_1.flatMap(sinkFiber => tsplus_module_1.map(scheduleFiber => {\n const toWrite = tsplus_module_22.match(() => tsplus_module_21.make(tsplus_module_20.right(b, __tsplusTrace)), (c) => tsplus_module_21.make(tsplus_module_20.right(b, __tsplusTrace), tsplus_module_20.left(c, __tsplusTrace)))(c);\n return consumed_\n ? tsplus_module_13.zipRight(scheduledAggregator(sinkFiber, scheduleFiber))(tsplus_module_12.write(() => toWrite)) : scheduledAggregator(sinkFiber, scheduleFiber);\n }, __tsplusTrace)(tsplus_module_19.forkScoped(timeout(tsplus_module_5.just(b, __tsplusTrace), __tsplusTrace), __tsplusTrace)), __tsplusTrace)(forkSink), __tsplusTrace)(tsplus_module_16.get(consumed, __tsplusTrace))),\n UpstreamEnd: () => tsplus_module_12.unwrap(() => tsplus_module_1.map((p) => (p ? tsplus_module_12.write(() => tsplus_module_21.make(tsplus_module_20.right(b, __tsplusTrace))) : tsplus_module_12.unit), __tsplusTrace)(tsplus_module_16.get(consumed, __tsplusTrace))),\n })(reason), __tsplusTrace)(tsplus_module_16.get(sinkEndReason, __tsplusTrace)), __tsplusTrace)(tsplus_module_15.set(tsplus_module_14.flatten(leftovers), __tsplusTrace)(sinkLeftovers)));\n }\n return tsplus_module_12.unwrap(() => tsplus_module_28.raceWith(() => tsplus_module_24.join(scheduleFiber, __tsplusTrace), (sinkExit, scheduleFiber) => tsplus_module_1.zipRight(tsplus_module_1.map(([leftovers, b]) => handleSide(leftovers, b, tsplus_module_5.nothing(__tsplusTrace), __tsplusTrace), __tsplusTrace)(tsplus_module_1.fromExit(() => sinkExit, __tsplusTrace)), __tsplusTrace)(tsplus_module_25.interrupt(scheduleFiber)), (scheduleExit, sinkFiber) => tsplus_module_1.matchCauseIO((cause) => tsplus_module_6.match(() => tsplus_module_1.zipRight(tsplus_module_1.map(([leftovers, b]) => handleSide(leftovers, b, tsplus_module_5.nothing(__tsplusTrace), __tsplusTrace), __tsplusTrace)(tsplus_module_24.join(sinkFiber, __tsplusTrace)), __tsplusTrace)(tsplus_module_26.forkDaemon(tsplus_module_7.offer(tsplus_module_7.end(new ScheduleEnd()))(handoff), __tsplusTrace)), (cause) => tsplus_module_1.zipRight(tsplus_module_1.map(([leftovers, b]) => handleSide(leftovers, b, tsplus_module_5.nothing(__tsplusTrace), __tsplusTrace), __tsplusTrace)(tsplus_module_24.join(sinkFiber, __tsplusTrace)), __tsplusTrace)(tsplus_module_26.forkDaemon(tsplus_module_7.offer(tsplus_module_7.halt(cause))(handoff), __tsplusTrace)))(tsplus_module_27.failureOrCause(cause)), (c) => tsplus_module_1.zipRight(tsplus_module_1.map(([leftovers, b]) => handleSide(leftovers, b, tsplus_module_5.just(c, __tsplusTrace), __tsplusTrace), __tsplusTrace)(tsplus_module_24.join(sinkFiber, __tsplusTrace)), __tsplusTrace)(tsplus_module_26.forkDaemon(tsplus_module_7.offer(tsplus_module_7.end(new ScheduleEnd()))(handoff), __tsplusTrace)), __tsplusTrace)(tsplus_module_1.fromExit(() => scheduleExit, __tsplusTrace)), __tsplusTrace)(tsplus_module_24.join(sinkFiber, __tsplusTrace)));\n };\n return unwrapScoped_1(tsplus_module_1.flatMap(() => tsplus_module_1.flatMap(sinkFiber => tsplus_module_1.map(scheduleFiber => new Stream(scheduledAggregator(sinkFiber, scheduleFiber)), __tsplusTrace)(tsplus_module_19.forkScoped(timeout(tsplus_module_5.nothing(__tsplusTrace), __tsplusTrace), __tsplusTrace)), __tsplusTrace)(tsplus_module_19.forkScoped(tsplus_module_18.runScoped(tsplus_module_12.doneCollect(tsplus_module_12.pipeToOrFail(sink.channel)(handoffConsumer))), __tsplusTrace)), __tsplusTrace)(tsplus_module_19.forkScoped(tsplus_module_18.runScoped(tsplus_module_12.pipeTo(handoffProducer)(stream.channel)), __tsplusTrace)), __tsplusTrace);\n }, __tsplusTrace)(fromIO_1(deps, __tsplusTrace));\n };\n}\n/**\n * Maps the success values of this stream to the specified constant value.\n *\n * @tsplus pipeable fncts.io.Stream as\n */\nexport function as(b, __tsplusTrace) {\n return (stream) => {\n return map_1(() => b(), __tsplusTrace)(stream);\n };\n}\n/**\n * @tsplus static fncts.io.StreamOps async\n */\nexport function async(register, outputBuffer = 16, __tsplusTrace) {\n return asyncMaybe_1((cb) => {\n register(cb);\n return tsplus_module_5.nothing(__tsplusTrace);\n }, outputBuffer, __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.StreamOps asyncInterrupt\n */\nfunction asyncInterrupt_1(register, outputBuffer = 16, __tsplusTrace) {\n return unwrapScoped_1(tsplus_module_1.flatMap(output => tsplus_module_1.flatMap(runtime => tsplus_module_1.map(eitherStream => tsplus_module_6.match((canceler) => {\n const loop = tsplus_module_12.unwrap(() => tsplus_module_1.match((maybeError) => tsplus_module_22.match(() => tsplus_module_13.endNow(undefined), tsplus_module_12.failNow)(maybeError), (as) => tsplus_module_13.zipRight(loop)(tsplus_module_12.writeNow(as)), __tsplusTrace)(tsplus_module_1.flatMap((take) => tsplus_module_29.done(take), __tsplusTrace)(tsplus_module_30.take(output, __tsplusTrace))));\n return ensuring_1(canceler, __tsplusTrace)(new Stream(loop));\n }, (stream) => unwrap_1(tsplus_module_1.as(() => stream, __tsplusTrace)(tsplus_module_30.shutdown(output, __tsplusTrace)), __tsplusTrace))(eitherStream), __tsplusTrace)(tsplus_module_1.succeed(() => register((k, cb) => {\n const effect = tsplus_module_1.flatMap((a) => tsplus_module_30.offer(a, __tsplusTrace)(output), __tsplusTrace)(tsplus_module_29.fromPull(k));\n const fiber = runtime.makeFiber(effect, __tsplusTrace);\n if (cb) {\n fiber.addObserver(cb);\n }\n fiber.start(effect);\n }), __tsplusTrace)), __tsplusTrace)(tsplus_module_31.runtime(__tsplusTrace)), __tsplusTrace)(tsplus_module_2.acquireRelease(() => tsplus_module_32.makeBounded(outputBuffer, __tsplusTrace), (queue) => tsplus_module_30.shutdown(queue, __tsplusTrace), __tsplusTrace)), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.StreamOps asyncIO\n */\nexport function asyncIO(register, outputBuffer = 16, __tsplusTrace) {\n return new Stream(tsplus_module_12.unwrapScoped(() => tsplus_module_1.flatMap(output => tsplus_module_1.flatMap(runtime => tsplus_module_1.map(() => {\n const loop = tsplus_module_12.unwrap(() => tsplus_module_1.matchCauseIO((cause) => tsplus_module_1.as(() => tsplus_module_6.match((maybeError) => tsplus_module_22.match(() => tsplus_module_13.endNow(undefined), tsplus_module_12.failNow)(maybeError), tsplus_module_13.failCauseNow)(tsplus_module_27.failureOrCause(cause)), __tsplusTrace)(tsplus_module_30.shutdown(output, __tsplusTrace)), (as) => tsplus_module_1.succeed(() => tsplus_module_13.zipRight(loop)(tsplus_module_12.writeNow(as)), __tsplusTrace), __tsplusTrace)(tsplus_module_1.flatMap((take) => tsplus_module_29.done(take), __tsplusTrace)(tsplus_module_30.take(output, __tsplusTrace))));\n return loop;\n }, __tsplusTrace)(register((k, cb) => {\n const io = tsplus_module_1.flatMap((a) => tsplus_module_30.offer(a, __tsplusTrace)(output), __tsplusTrace)(tsplus_module_29.fromPull(k));\n const fiber = runtime.makeFiber(io, __tsplusTrace);\n if (cb) {\n fiber.addObserver(cb);\n }\n fiber.start(io);\n })), __tsplusTrace)(tsplus_module_31.runtime(__tsplusTrace)), __tsplusTrace)(tsplus_module_2.acquireRelease(() => tsplus_module_32.makeBounded(outputBuffer, __tsplusTrace), (_) => tsplus_module_30.shutdown(_, __tsplusTrace), __tsplusTrace))));\n}\n/**\n * Creates a stream from an asynchronous callback that can be called multiple times.\n * The registration of the callback can possibly return the stream synchronously.\n * The optionality of the error type `E` can be used to signal the end of the stream,\n * by setting it to `None`.\n *\n * @tsplus static fncts.io.StreamOps asyncMaybe\n */\nfunction asyncMaybe_1(register, outputBuffer = 16, __tsplusTrace) {\n return asyncInterrupt_1((k) => tsplus_module_22.match(() => tsplus_module_20.left(tsplus_module_1.unit, __tsplusTrace), tsplus_module_20.right)(register(k)), outputBuffer, __tsplusTrace);\n}\n/**\n * Returns a stream whose failure and success channels have been mapped by\n * the specified pair of functions, `f` and `g`.\n *\n * @tsplus pipeable fncts.io.Stream bimap\n */\nexport function bimap(f, g, __tsplusTrace) {\n return (stream) => map_1(g, __tsplusTrace)(mapError_1(f, __tsplusTrace)(stream));\n}\n/**\n * Fan out the stream, producing a list of streams that have the same elements as this stream.\n * The driver stream will only ever advance of the `maximumLag` chunks before the\n * slowest downstream stream.\n *\n * @tsplus pipeable fncts.io.Stream broadcast\n */\nexport function broadcast(n, maximumLag, __tsplusTrace) {\n return (stream) => {\n return tsplus_module_1.map((c) => tsplus_module_14.map((hub) => flattenTake_1(fromQueueWithShutdown_1(hub), __tsplusTrace))(c), __tsplusTrace)(broadcastedQueues_1(n, maximumLag, __tsplusTrace)(stream));\n };\n}\n/**\n * Fan out the stream, producing a dynamic number of streams that have the same elements as this stream.\n * The driver stream will only ever advance of the `maximumLag` chunks before the\n * slowest downstream stream.\n *\n * @tsplus pipeable fncts.io.Stream broadcastDynamic\n */\nexport function broadcastDynamic(maximumLag, __tsplusTrace) {\n return (stream) => {\n return tsplus_module_1.map((scoped) => flattenTake_1(flatMap_1(fromQueue_1, __tsplusTrace)(scoped_1(() => scoped, __tsplusTrace)), __tsplusTrace), __tsplusTrace)(broadcastedQueuesDynamic_1(maximumLag, __tsplusTrace)(stream));\n };\n}\n/**\n * Converts the stream to a managed list of queues. Every value will be replicated to every queue with the\n * slowest queue being allowed to buffer `maximumLag` chunks before the driver is backpressured.\n *\n * Queues can unsubscribe from upstream by shutting down.\n *\n * @tsplus pipeable fncts.io.Stream broadcastedQueues\n */\nfunction broadcastedQueues_1(n, maximumLag, __tsplusTrace) {\n return (self) => {\n return tsplus_module_1.flatMap(hub => tsplus_module_1.flatMap(queues => tsplus_module_1.map(() => queues, __tsplusTrace)(tsplus_module_33.fork(runIntoHubScoped_1(hub, __tsplusTrace)(self), __tsplusTrace)), __tsplusTrace)(tsplus_module_1.sequenceIterable(tsplus_module_35.replicate(n, tsplus_module_34.subscribe(hub, __tsplusTrace)), __tsplusTrace)), __tsplusTrace)(tsplus_module_34.makeBounded(maximumLag, __tsplusTrace));\n };\n}\n/**\n * Converts the stream to a managed dynamic amount of queues. Every chunk will be replicated to every queue with the\n * slowest queue being allowed to buffer `maximumLag` chunks before the driver is backpressured.\n *\n * Queues can unsubscribe from upstream by shutting down.\n *\n * @tsplus pipeable fncts.io.Stream broadcastedQueuesDynamic\n */\nfunction broadcastedQueuesDynamic_1(maximumLag, __tsplusTrace) {\n return (stream) => {\n return tsplus_module_1.map((hub) => tsplus_module_34.subscribe(hub, __tsplusTrace), __tsplusTrace)(toHub_1(maximumLag, __tsplusTrace)(stream));\n };\n}\n/**\n * Allows a faster producer to progress independently of a slower consumer by buffering\n * up to `capacity` elements in a queue.\n *\n * @tsplus pipeable fncts.io.Stream buffer\n */\nexport function buffer(capacity, __tsplusTrace) {\n return (stream) => {\n const queue = toQueueOfElements_1(capacity, __tsplusTrace)(stream);\n return new Stream(tsplus_module_12.unwrapScoped(() => tsplus_module_1.map((queue) => {\n const process = tsplus_module_13.flatMap((exit) => tsplus_module_36.match((cause) => tsplus_module_22.match(() => tsplus_module_13.endNow(undefined), tsplus_module_13.failCauseNow)(tsplus_module_27.flipCauseOption(cause)), (value) => tsplus_module_13.zipRight(process)(tsplus_module_12.writeNow(tsplus_module_21.single(value))))(exit))(tsplus_module_12.fromIO(() => tsplus_module_30.take(queue, __tsplusTrace)));\n return process;\n }, __tsplusTrace)(queue)));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream bufferChunks\n */\nexport function bufferChunks(capacity, __tsplusTrace) {\n return (stream) => {\n const queue = toQueue_1(capacity, __tsplusTrace)(stream);\n return new Stream(tsplus_module_12.unwrapScoped(() => tsplus_module_1.map((queue) => {\n const process = tsplus_module_13.flatMap((take) => tsplus_module_29.match(tsplus_module_13.endNow(undefined), tsplus_module_13.failCauseNow, (value) => tsplus_module_13.zipRight(process)(tsplus_module_12.writeNow(value)))(take))(tsplus_module_12.fromIO(() => tsplus_module_30.take(queue, __tsplusTrace)));\n return process;\n }, __tsplusTrace)(queue)));\n };\n}\nfunction bufferSignalConsumer(queue, __tsplusTrace) {\n const process = tsplus_module_13.flatMap(([take, promise]) => tsplus_module_13.zipRight(tsplus_module_29.match(tsplus_module_13.endNow(undefined), tsplus_module_13.failCauseNow, (value) => tsplus_module_13.zipRight(process)(tsplus_module_12.writeNow(value)))(take))(tsplus_module_12.fromIO(() => tsplus_module_37.succeed_(undefined, __tsplusTrace)(promise))))(tsplus_module_12.fromIO(() => tsplus_module_30.take(queue, __tsplusTrace)));\n return process;\n}\nfunction bufferSignalProducer(queue, ref, __tsplusTrace) {\n const terminate = (take) => tsplus_module_12.fromIO(() => tsplus_module_1.flatMap(latch => tsplus_module_1.flatMap(() => tsplus_module_1.flatMap(p => tsplus_module_1.flatMap(() => tsplus_module_1.flatMap(() => tsplus_module_1.map(() => void 0, __tsplusTrace)(tsplus_module_37.wait(p, __tsplusTrace)), __tsplusTrace)(tsplus_module_15.set(p, __tsplusTrace)(ref)), __tsplusTrace)(tsplus_module_30.offer(tuple(take, p), __tsplusTrace)(queue)), __tsplusTrace)(tsplus_module_38.make(__tsplusTrace)), __tsplusTrace)(tsplus_module_37.wait(latch, __tsplusTrace)), __tsplusTrace)(tsplus_module_16.get(ref, __tsplusTrace)));\n return tsplus_module_12.readWith((inp) => tsplus_module_13.zipRight(bufferSignalProducer(queue, ref, __tsplusTrace))(tsplus_module_12.fromIO(() => tsplus_module_1.flatMap(p => tsplus_module_1.flatMap(added => tsplus_module_1.map(() => void 0, __tsplusTrace)(tsplus_module_1.when(() => added, __tsplusTrace)(tsplus_module_15.set(p, __tsplusTrace)(ref))), __tsplusTrace)(tsplus_module_30.offer(tuple(tsplus_module_29.chunk(inp), p), __tsplusTrace)(queue)), __tsplusTrace)(tsplus_module_38.make(__tsplusTrace)))), (e) => terminate(tsplus_module_29.fail(e)), () => terminate(tsplus_module_29.end));\n}\n/**\n * Allows a faster producer to progress independently of a slower consumer by buffering\n * elements into an unbounded queue.\n *\n * @tsplus getter fncts.io.Stream bufferUnbounded\n */\nexport function bufferUnbounded(stream, __tsplusTrace) {\n const queue = toQueueUnbounded_1(stream, __tsplusTrace);\n return new Stream(tsplus_module_12.unwrapScoped(() => tsplus_module_1.map((queue) => {\n const process = tsplus_module_13.flatMap((take) => tsplus_module_29.match(tsplus_module_13.endNow(undefined), tsplus_module_13.failCauseNow, (value) => tsplus_module_13.zipRight(process)(tsplus_module_12.writeNow(value)))(take))(tsplus_module_12.fromIO(() => tsplus_module_30.take(queue, __tsplusTrace)));\n return process;\n }, __tsplusTrace)(queue)));\n}\n/**\n * Switches over to the stream produced by the provided function in case this one\n * fails with a typed error.\n *\n * @tsplus pipeable fncts.io.Stream catchAll\n */\nfunction catchAll_1(f, __tsplusTrace) {\n return (stream) => {\n return catchAllCause_1((cause) => tsplus_module_6.match(f, failCauseNow_1)(tsplus_module_27.failureOrCause(cause)), __tsplusTrace)(stream);\n };\n}\n/**\n * Switches over to the stream produced by the provided function in case this one\n * fails. Allows recovery from all causes of failure, including interruption if the\n * stream is uninterruptible.\n *\n * @tsplus pipeable fncts.io.Stream catchAllCause\n */\nfunction catchAllCause_1(f, __tsplusTrace) {\n return (stream) => {\n const channel = tsplus_module_12.catchAllCause((cause) => f(cause).channel)(stream.channel);\n return new Stream(channel);\n };\n}\n/**\n * Switches over to the stream produced by the provided function in case this one\n * fails with some typed error.\n *\n * @tsplus pipeable fncts.io.Stream catchJust\n */\nexport function catchJust(pf, __tsplusTrace) {\n return (stream) => {\n return catchAll_1((e) => tsplus_module_39.getOrElse(() => failNow_1(e, __tsplusTrace))(pf(e)), __tsplusTrace)(stream);\n };\n}\n/**\n * Switches over to the stream produced by the provided function in case this one\n * fails with some errors. Allows recovery from all causes of failure, including interruption if the\n * stream is uninterruptible.\n *\n * @tsplus pipeable fncts.io.Stream catchJustCause\n */\nexport function catchJustCause(pf, __tsplusTrace) {\n return (stream) => {\n return catchAllCause_1((cause) => tsplus_module_39.getOrElse(() => failCauseNow_1(cause, __tsplusTrace))(pf(cause)), __tsplusTrace)(stream);\n };\n}\n/**\n * Returns a new stream that only emits elements that are not equal to the\n * previous element emitted, using the specified function to determine\n * whether two elements are equal.\n *\n * @tsplus pipeable fncts.io.Stream changesWith\n */\nexport function changesWith(f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.pipeTo(changesWithWriter(f, tsplus_module_5.nothing(__tsplusTrace), __tsplusTrace))(stream.channel));\n };\n}\nfunction changesWithWriter(f, last, __tsplusTrace) {\n return tsplus_module_12.readWithCause((chunk) => {\n const [newLast, newChunk] = tsplus_module_14.foldLeft([last, tsplus_module_9.empty()], ([maybeLast, os], o1) => tsplus_module_22.match(() => [tsplus_module_5.just(o1, __tsplusTrace), tsplus_module_14.append(o1)(os)], (o) => (f(o, o1) ? [tsplus_module_5.just(o1, __tsplusTrace), os] : [tsplus_module_5.just(o1, __tsplusTrace), tsplus_module_14.append(o1)(os)]))(maybeLast))(chunk);\n return tsplus_module_13.zipRight(changesWithWriter(f, newLast, __tsplusTrace))(tsplus_module_12.writeNow(newChunk));\n }, tsplus_module_13.failCauseNow, () => tsplus_module_12.unit);\n}\n/**\n * Exposes the underlying chunks of the stream as a stream of chunks of elements\n *\n * @tsplus getter fncts.io.Stream chunks\n */\nfunction chunks_1(stream, __tsplusTrace) {\n return mapChunks_1(tsplus_module_21.single, __tsplusTrace)(stream);\n}\n/**\n * Performs the specified stream transformation with the chunk structure of\n * the stream exposed.\n *\n * @tsplus pipeable fncts.io.Stream chunksWith\n */\nexport function chunksWith(f, __tsplusTrace) {\n return (self) => {\n return flattenChunks_1(f(chunks_1(self, __tsplusTrace)), __tsplusTrace);\n };\n}\n/**\n * Transforms all elements of the stream for as long as the specified partial function is defined.\n *\n * @tsplus pipeable fncts.io.Stream collectWhile\n */\nexport function collectWhile(pf, __tsplusTrace) {\n return (stream) => {\n const loop = tsplus_module_12.readWith((inp) => {\n const mapped = tsplus_module_14.collectWhile(pf)(inp);\n if (mapped.length === inp.length) {\n return tsplus_module_13.zipRight(loop)(tsplus_module_12.writeNow(mapped));\n }\n else {\n return tsplus_module_12.writeNow(mapped);\n }\n }, tsplus_module_12.failNow, tsplus_module_13.succeedNow);\n return new Stream(tsplus_module_12.pipeTo(loop)(stream.channel));\n };\n}\n/**\n * Effectfully transforms all elements of the stream for as long as the specified partial function is defined.\n */\nexport function collectWhileIO(stream, pf, __tsplusTrace) {\n return new Stream(tsplus_module_12.pipeTo(collectWhileIOLoop(tsplus_module_40.empty()[Symbol.iterator](), pf, __tsplusTrace))(stream.channel));\n}\nfunction collectWhileIOLoop(iterator, pf, __tsplusTrace) {\n const next = iterator.next();\n if (next.done) {\n return tsplus_module_12.readWithCause((elem) => collectWhileIOLoop(elem[Symbol.iterator](), pf, __tsplusTrace), tsplus_module_13.failCauseNow, tsplus_module_13.succeedNow);\n }\n else {\n return tsplus_module_12.unwrap(() => tsplus_module_22.match(() => tsplus_module_1.succeedNow(tsplus_module_12.unit, __tsplusTrace), (b) => tsplus_module_1.map((b) => tsplus_module_13.zipRight(collectWhileIOLoop(iterator, pf, __tsplusTrace))(tsplus_module_12.writeNow(tsplus_module_21.single(b))), __tsplusTrace)(b))(pf(next.value)));\n }\n}\n/**\n * Combines the elements from this stream and the specified stream by repeatedly applying the\n * function `f` to extract an element using both sides and conceptually \"offer\"\n * it to the destination stream. `f` can maintain some internal state to control\n * the combining process, with the initial state being specified by `s`.\n *\n * Where possible, prefer `Stream#combineChunks` for a more efficient implementation.\n *\n * @tsplus pipeable fncts.io.Stream combine\n */\nexport function combine(that, s, f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.unwrapScoped(() => tsplus_module_1.map(([left, right, latchL, latchR]) => {\n const pullLeft = tsplus_module_1.flatMap(tsplus_module_1.fromExitNow, __tsplusTrace)(tsplus_module_1.zipRight(tsplus_module_7.take(left), __tsplusTrace)(tsplus_module_7.offer(undefined)(latchL)));\n const pullRight = tsplus_module_1.flatMap(tsplus_module_1.fromExitNow, __tsplusTrace)(tsplus_module_1.zipRight(tsplus_module_7.take(right), __tsplusTrace)(tsplus_module_7.offer(undefined)(latchR)));\n return unfoldIO_1(s, (s) => tsplus_module_1.flatMap((exit) => tsplus_module_1.optional(tsplus_module_1.fromExitNow(exit, __tsplusTrace), __tsplusTrace), __tsplusTrace)(f(s, pullLeft, pullRight)), __tsplusTrace)\n .channel;\n }, __tsplusTrace)(tsplus_module_1.flatMap(left => tsplus_module_1.flatMap(right => tsplus_module_1.flatMap(latchL => tsplus_module_1.flatMap(latchR => tsplus_module_1.flatMap(() => tsplus_module_1.map(() => tuple(left, right, latchL, latchR), __tsplusTrace)(tsplus_module_33.fork(tsplus_module_18.runScoped(tsplus_module_12.pipeTo(combineProducer(right, latchR, __tsplusTrace))(tsplus_module_12.concatMap(tsplus_module_12.writeChunk)(that.channel))), __tsplusTrace)), __tsplusTrace)(tsplus_module_33.fork(tsplus_module_18.runScoped(tsplus_module_12.pipeTo(combineProducer(left, latchL, __tsplusTrace))(tsplus_module_12.concatMap(tsplus_module_12.writeChunk)(stream.channel))), __tsplusTrace)), __tsplusTrace)(tsplus_module_7.make()), __tsplusTrace)(tsplus_module_7.make()), __tsplusTrace)(tsplus_module_7.make()), __tsplusTrace)(tsplus_module_7.make()))));\n };\n}\n/**\n * Combines the chunks from this stream and the specified stream by repeatedly applying the\n * function `f` to extract a chunk using both sides and conceptually \"offer\"\n * it to the destination stream. `f` can maintain some internal state to control\n * the combining process, with the initial state being specified by `s`.\n *\n * @tsplus pipeable fncts.io.Stream combineChunks\n */\nexport function combineChunks(that, s, f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.unwrapScoped(() => tsplus_module_1.map(([left, right, latchL, latchR]) => {\n const pullLeft = tsplus_module_1.flatMap((take) => tsplus_module_29.done(take), __tsplusTrace)(tsplus_module_1.zipRight(tsplus_module_7.take(left), __tsplusTrace)(tsplus_module_7.offer(undefined)(latchL)));\n const pullRight = tsplus_module_1.flatMap((take) => tsplus_module_29.done(take), __tsplusTrace)(tsplus_module_1.zipRight(tsplus_module_7.take(right), __tsplusTrace)(tsplus_module_7.offer(undefined)(latchR)));\n return unfoldChunkIO_1(s, (s) => tsplus_module_1.flatMap((exit) => tsplus_module_1.optional(tsplus_module_1.fromExit(() => exit, __tsplusTrace), __tsplusTrace), __tsplusTrace)(f(s, pullLeft, pullRight)), __tsplusTrace)\n .channel;\n }, __tsplusTrace)(tsplus_module_1.flatMap(left => tsplus_module_1.flatMap(right => tsplus_module_1.flatMap(latchL => tsplus_module_1.flatMap(latchR => tsplus_module_1.flatMap(() => tsplus_module_1.map(() => tuple(left, right, latchL, latchR), __tsplusTrace)(tsplus_module_33.fork(tsplus_module_18.runScoped(tsplus_module_12.pipeTo(combineChunksProducer(right, latchR, __tsplusTrace))(that.channel)), __tsplusTrace)), __tsplusTrace)(tsplus_module_33.fork(tsplus_module_18.runScoped(tsplus_module_12.pipeTo(combineChunksProducer(left, latchL, __tsplusTrace))(stream.channel)), __tsplusTrace)), __tsplusTrace)(tsplus_module_7.make()), __tsplusTrace)(tsplus_module_7.make()), __tsplusTrace)(tsplus_module_7.make()), __tsplusTrace)(tsplus_module_7.make()))));\n };\n}\nfunction combineChunksProducer(handoff, latch, __tsplusTrace) {\n return tsplus_module_13.zipRight(tsplus_module_12.readWithCause((chunk) => tsplus_module_13.zipRight(combineChunksProducer(handoff, latch, __tsplusTrace))(tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_29.chunk(chunk))(handoff))), (cause) => tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_29.failCause(cause))(handoff)), () => tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_29.end)(handoff))))(tsplus_module_12.fromIO(() => tsplus_module_7.take(latch)));\n}\nfunction combineProducer(handoff, latch, __tsplusTrace) {\n return tsplus_module_13.zipRight(tsplus_module_12.readWithCause((value) => tsplus_module_13.zipRight(combineProducer(handoff, latch, __tsplusTrace))(tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_41.succeed(value, __tsplusTrace))(handoff))), (cause) => tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_41.failCause(tsplus_module_27.map(tsplus_module_5.just)(cause), __tsplusTrace))(handoff)), () => tsplus_module_13.zipRight(combineProducer(handoff, latch, __tsplusTrace))(tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_41.fail(tsplus_module_5.nothing(__tsplusTrace), __tsplusTrace))(handoff)))))(tsplus_module_12.fromIO(() => tsplus_module_7.take(latch)));\n}\n/**\n * Concatenates the specified stream with this stream, resulting in a stream\n * that emits the elements from this stream and then the elements from the specified stream.\n *\n * @tsplus pipeable fncts.io.Stream concat\n */\nfunction concat_1(that, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_13.zipRight(that.channel)(stream.channel));\n };\n}\n/**\n * Provides some of the environment required to run this effect,\n * leaving the remainder `R0`.\n *\n * @tsplus pipeable fncts.io.Stream contramapEnvironment\n */\nexport function contramapEnvironment(f, __tsplusTrace) {\n return (ra) => {\n return flatMap_1((r0) => provideEnvironment_1(f(r0), __tsplusTrace)(ra), __tsplusTrace)(environment_1(__tsplusTrace));\n };\n}\n/**\n * Composes this stream with the specified stream to create a cartesian product of elements.\n * The `that` stream would be run multiple times, for every element in the `this` stream.\n *\n * @tsplus pipeable fncts.io.Stream cross\n */\nexport function cross(that, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.concatMap((as) => tsplus_module_12.mapOut((bs) => tsplus_module_14.flatMap((a) => tsplus_module_14.map((b) => tuple(a, b))(bs))(as))(that.channel))(stream.channel));\n };\n}\n/**\n * Composes this stream with the specified stream to create a cartesian product of elements\n * with a specified function.\n * The `fb` stream would be run multiple times, for every element in the `fa` stream.\n *\n * @tsplus pipeable fncts.io.Stream crossWith\n */\nfunction crossWith_1(fb, f, __tsplusTrace) {\n return (fa) => {\n return flatMap_1((a) => map_1((b) => f(a, b), __tsplusTrace)(fb), __tsplusTrace)(fa);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream debounce\n */\nexport function debounce(duration, __tsplusTrace) {\n return (stream) => {\n return unwrap_1(tsplus_module_44.transplant((grafter) => tsplus_module_1.map(handoff => {\n function enqueue(last, __tsplusTrace) {\n return tsplus_module_1.map((f) => consumer(tsplus_module_42.previous(f), __tsplusTrace), __tsplusTrace)(grafter.graft(tsplus_module_33.fork(tsplus_module_1.as(() => last, __tsplusTrace)(tsplus_module_43.sleep(duration, __tsplusTrace)), __tsplusTrace), __tsplusTrace));\n }\n const producer = tsplus_module_12.readWithCause((inp) => tsplus_module_22.match(() => producer, (last) => tsplus_module_13.zipRight(producer)(tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_7.emit(tsplus_module_21.single(last)))(handoff))))(tsplus_module_14.last(inp)), (cause) => tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_7.halt(cause))(handoff)), () => tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_7.end(new UpstreamEnd()))(handoff)));\n function consumer(state, __tsplusTrace) {\n return tsplus_module_12.unwrap(() => tsplus_module_42.match({\n NotStarted: () => tsplus_module_1.map((signal) => tsplus_module_7.matchSignal({\n Emit: ({ els }) => tsplus_module_12.unwrap(() => enqueue(els, __tsplusTrace)),\n Halt: ({ error }) => tsplus_module_13.failCauseNow(error),\n End: () => tsplus_module_12.unit,\n })(signal), __tsplusTrace)(tsplus_module_7.take(handoff)),\n Current: ({ fiber }) => tsplus_module_1.map((signal) => tsplus_module_7.matchSignal({\n Emit: ({ els }) => tsplus_module_12.unwrap(() => enqueue(els, __tsplusTrace)),\n Halt: ({ error }) => tsplus_module_13.failCauseNow(error),\n End: () => tsplus_module_12.unit,\n })(signal), __tsplusTrace)(tsplus_module_24.join(fiber, __tsplusTrace)),\n Previous: ({ fiber }) => tsplus_module_28.raceWith(() => tsplus_module_7.take(handoff), (ex, current) => tsplus_module_36.match((cause) => tsplus_module_1.as(() => tsplus_module_13.failCauseNow(cause), __tsplusTrace)(tsplus_module_25.interrupt(current)), (chunk) => tsplus_module_1.succeedNow(tsplus_module_13.zipRight(consumer(tsplus_module_42.current(current), __tsplusTrace))(tsplus_module_12.writeNow(chunk)), __tsplusTrace))(ex), (ex, previous) => tsplus_module_36.match((cause) => tsplus_module_1.as(() => tsplus_module_13.failCauseNow(cause), __tsplusTrace)(tsplus_module_25.interrupt(previous)), (signal) => tsplus_module_7.matchSignal({\n Emit: ({ els }) => tsplus_module_1.zipRight(enqueue(els, __tsplusTrace), __tsplusTrace)(tsplus_module_25.interrupt(previous)),\n Halt: ({ error }) => tsplus_module_1.as(() => tsplus_module_13.failCauseNow(error), __tsplusTrace)(tsplus_module_25.interrupt(previous)),\n End: () => tsplus_module_1.map((chunk) => tsplus_module_13.zipRight(tsplus_module_12.unit)(tsplus_module_12.writeNow(chunk)), __tsplusTrace)(tsplus_module_24.join(previous, __tsplusTrace)),\n })(signal))(ex), __tsplusTrace)(tsplus_module_24.join(fiber, __tsplusTrace)),\n })(state));\n }\n return zipRight_1(new Stream(consumer(tsplus_module_42.notStarted, __tsplusTrace)), __tsplusTrace)(scoped_1(() => tsplus_module_33.fork(tsplus_module_18.runScoped(tsplus_module_12.pipeTo(producer)(stream.channel)), __tsplusTrace), __tsplusTrace));\n }, __tsplusTrace)(tsplus_module_7.make()), __tsplusTrace), __tsplusTrace);\n };\n}\n/**\n * Switches to the provided stream in case this one is empty.\n *\n * @tsplus pipeable fncts.io.Stream defaultIfEmpty\n */\nexport function defaultIfEmpty(fb, __tsplusTrace) {\n return (fa) => {\n return new Stream(tsplus_module_12.pipeTo(defaultIfEmptyWriter(fb, __tsplusTrace))(fa.channel));\n };\n}\nfunction defaultIfEmptyWriter(fb, __tsplusTrace) {\n return tsplus_module_12.readWith((i) => tsplus_module_14.isEmpty(i) ? defaultIfEmptyWriter(fb, __tsplusTrace) : tsplus_module_13.zipRight(tsplus_module_12.id())(tsplus_module_12.writeNow(i)), tsplus_module_12.failNow, () => fb.channel);\n}\n/**\n * @tsplus static fncts.io.StreamOps defer\n */\nfunction defer_1(self) {\n return new Stream(tsplus_module_12.defer(() => self().channel));\n}\n/**\n * More powerful version of `broadcast`. Allows to provide a function that determines what\n * queues should receive which elements. The decide function will receive the indices of the queues\n * in the resulting list.\n *\n * @tsplus pipeable fncts.io.Stream distributedWith\n */\nexport function distributedWith(n, maximumLag, decide, __tsplusTrace) {\n return (self) => {\n return tsplus_module_1.flatMap((p) => tsplus_module_1.flatMap((next) => tsplus_module_1.flatMap((entries) => {\n const [mappings, queues] = tsplus_module_14.foldRight([tsplus_module_45.empty(), tsplus_module_9.empty()], ([mapping, queue], [mappings, queues]) => [tsplus_module_45.set(mapping[0], mapping[1])(mappings), tsplus_module_14.append(queue)(queues)])(entries);\n return tsplus_module_1.as(() => queues, __tsplusTrace)(tsplus_module_37.succeed_((a) => tsplus_module_1.map((f) => (key) => f(tsplus_module_39.toUndefined(tsplus_module_45.get(key)(mappings))), __tsplusTrace)(decide(a)), __tsplusTrace)(p));\n }, __tsplusTrace)(tsplus_module_1.sequenceIterable(tsplus_module_14.map((id) => tsplus_module_1.map(([key, queue]) => [[key, id], queue], __tsplusTrace)(next))(tsplus_module_21.range(0, n)), __tsplusTrace)), __tsplusTrace)(distributedWithDynamic_1(maximumLag, (a) => tsplus_module_1.flatMap((f) => f(a), __tsplusTrace)(tsplus_module_37.wait(p, __tsplusTrace)), () => tsplus_module_1.unit, __tsplusTrace)(self)), __tsplusTrace)(tsplus_module_38.make(__tsplusTrace));\n };\n}\n/**\n * More powerful version of `ZStream#distributedWith`. This returns a function that will produce\n * new queues and corresponding indices.\n * You can also provide a function that will be executed after the final events are enqueued in all queues.\n * Shutdown of the queues is handled by the driver.\n * Downstream users can also shutdown queues manually. In this case the driver will\n * continue but no longer backpressure on them.\n *\n * @tsplus pipeable fncts.io.Stream distributedWithDynamic\n */\nfunction distributedWithDynamic_1(maximumLag, decide, done = () => tsplus_module_1.unit, __tsplusTrace) {\n return (self) => {\n const offer = (queuesRef) => (a) => tsplus_module_1.flatMap(shouldProcess => tsplus_module_1.flatMap(queues => tsplus_module_1.flatMap((ids) => (tsplus_module_14.isNonEmpty(ids) ? tsplus_module_17.update((map) => tsplus_module_45.removeMany(ids)(map), __tsplusTrace)(queuesRef) : tsplus_module_1.unit), __tsplusTrace)(tsplus_module_1.foldLeft(queues, tsplus_module_9.empty(), (b, [id, queue]) => {\n if (shouldProcess(id)) {\n return tsplus_module_1.matchCauseIO((c) => (tsplus_module_27.interrupted(c) ? tsplus_module_1.succeedNow(tsplus_module_14.append(id)(b), __tsplusTrace) : tsplus_module_1.failCauseNow(c, __tsplusTrace)), () => tsplus_module_1.succeedNow(b, __tsplusTrace), __tsplusTrace)(tsplus_module_30.offer(tsplus_module_41.succeed(a, __tsplusTrace), __tsplusTrace)(queue));\n }\n else {\n return tsplus_module_1.succeedNow(b, __tsplusTrace);\n }\n }, __tsplusTrace)), __tsplusTrace)(tsplus_module_16.get(queuesRef, __tsplusTrace)), __tsplusTrace)(decide(a));\n return tsplus_module_1.flatMap(queuesRef => tsplus_module_1.map(add => add, __tsplusTrace)(tsplus_module_1.flatMap(queuesLock => tsplus_module_1.flatMap(newQueue => {\n const finalize = (endTake) => queuesLock.withPermit(tsplus_module_1.asUnit(tsplus_module_1.flatMap(() => tsplus_module_1.flatMap(queues => tsplus_module_1.flatMap(() => tsplus_module_1.map(() => void 0, __tsplusTrace)(done(endTake)), __tsplusTrace)(tsplus_module_1.foreach(queues, (queue) => tsplus_module_1.catchJustCause((c) => (tsplus_module_27.interrupted(c) ? tsplus_module_5.just(tsplus_module_1.unit, __tsplusTrace) : tsplus_module_5.nothing(__tsplusTrace)), __tsplusTrace)(tsplus_module_30.offer(endTake, __tsplusTrace)(queue)), __tsplusTrace)), __tsplusTrace)(tsplus_module_1.map((map) => tsplus_module_45.values(map), __tsplusTrace)(tsplus_module_16.get(queuesRef, __tsplusTrace))), __tsplusTrace)(tsplus_module_15.set(tsplus_module_1.flatMap(queue => tsplus_module_1.flatMap(() => {\n const id = Symbol();\n return tsplus_module_1.map(() => tuple(id, queue), __tsplusTrace)(tsplus_module_17.update((map) => tsplus_module_45.set(id, queue)(map), __tsplusTrace)(queuesRef));\n }, __tsplusTrace)(tsplus_module_30.offer(endTake, __tsplusTrace)(queue)), __tsplusTrace)(tsplus_module_32.makeBounded(1, __tsplusTrace)), __tsplusTrace)(newQueue)), __tsplusTrace));\n return tsplus_module_1.map(() => queuesLock.withPermit(tsplus_module_1.flatten(tsplus_module_16.get(newQueue, __tsplusTrace), __tsplusTrace)), __tsplusTrace)(tsplus_module_33.fork(tsplus_module_1.matchCauseIO((cause) => finalize(tsplus_module_41.failCause(tsplus_module_27.map(tsplus_module_5.just)(cause), __tsplusTrace)), () => finalize(tsplus_module_41.fail(tsplus_module_5.nothing(__tsplusTrace), __tsplusTrace)), __tsplusTrace)(runForeachScoped_1(offer(queuesRef), __tsplusTrace)(self)), __tsplusTrace));\n }, __tsplusTrace)(tsplus_module_8.make(() => tsplus_module_1.flatMap(queue => tsplus_module_1.flatMap(id => tsplus_module_1.map(() => tuple(id, queue), __tsplusTrace)(tsplus_module_17.update((map) => tsplus_module_45.set(id, queue)(map), __tsplusTrace)(queuesRef)), __tsplusTrace)(tsplus_module_1.succeed(() => Symbol(), __tsplusTrace)), __tsplusTrace)(tsplus_module_32.makeBounded(maximumLag, __tsplusTrace)), __tsplusTrace)), __tsplusTrace)(tsplus_module_46.makeSemaphore(1, __tsplusTrace))), __tsplusTrace)(tsplus_module_2.acquireRelease(() => tsplus_module_8.make(() => tsplus_module_45.empty(), __tsplusTrace), (ref) => tsplus_module_1.flatMap((qs) => tsplus_module_1.foreach(tsplus_module_45.values(qs), (q) => tsplus_module_30.shutdown(q, __tsplusTrace), __tsplusTrace), __tsplusTrace)(tsplus_module_16.get(ref, __tsplusTrace)), __tsplusTrace));\n };\n}\n/**\n * Converts this stream to a stream that executes its effects but emits no\n * elements. Useful for sequencing effects using streams.\n *\n * @tsplus getter fncts.io.Stream drain\n */\nfunction drain_1(fa, __tsplusTrace) {\n return new Stream(tsplus_module_12.drain(fa.channel));\n}\n/**\n * Drops the specified number of elements from this stream.\n *\n * @tsplus pipeable fncts.io.Stream drop\n */\nfunction drop_1(n, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.pipeTo(dropLoop(n, __tsplusTrace))(stream.channel));\n };\n}\nfunction dropLoop(r, __tsplusTrace) {\n return tsplus_module_12.readWith((inp) => {\n const dropped = tsplus_module_14.drop(r)(inp);\n const leftover = Math.max(0, r - inp.length);\n const more = tsplus_module_14.isEmpty(inp) || leftover > 0;\n return more ? dropLoop(leftover, __tsplusTrace) : tsplus_module_13.zipRight(tsplus_module_12.id())(tsplus_module_12.write(() => dropped));\n }, tsplus_module_12.failNow, () => tsplus_module_12.unit);\n}\n/**\n * Drops all elements of the stream until the specified predicate evaluates\n * to `true`.\n *\n * @tsplus pipeable fncts.io.Stream dropUntil\n */\nexport function dropUntil(p, __tsplusTrace) {\n return (stream) => {\n return drop_1(1, __tsplusTrace)(dropWhile_1(tsplus_module_47.invert(p), __tsplusTrace)(stream));\n };\n}\n/**\n * Drops all elements of the stream for as long as the specified predicate\n * evaluates to `true`.\n *\n * @tsplus pipeable fncts.io.Stream dropWhile\n */\nfunction dropWhile_1(p, __tsplusTrace) {\n return (stream) => {\n return pipeThrough_1(tsplus_module_48.makeDropWhile(p, __tsplusTrace), __tsplusTrace)(stream);\n };\n}\n/**\n * Returns a stream whose failures and successes have been lifted into an\n * `Either`. The resulting stream cannot fail, because the failures have\n * been exposed as part of the `Either` success case.\n *\n * @note the stream will end as soon as the first error occurs.\n *\n * @tsplus getter fncts.io.Stream either\n */\nexport function either(stream, __tsplusTrace) {\n return catchAll_1((e) => succeedNow_1(tsplus_module_20.left(e, __tsplusTrace), __tsplusTrace), __tsplusTrace)(map_1(tsplus_module_20.right, __tsplusTrace)(stream));\n}\n/**\n * Returns a stream made of the concatenation in strict order of all the streams\n * produced by passing each element of this stream to `f`\n *\n * @tsplus pipeable fncts.io.Stream flatMap\n */\nfunction flatMap_1(f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.concatMap((as) => tsplus_module_14.foldLeft(tsplus_module_12.unit, (s, a) => tsplus_module_13.flatMap(() => a)(s))(tsplus_module_14.map((a) => f(a).channel)(as)))(stream.channel));\n };\n}\n/**\n * Composes this stream with the specified stream to create a cartesian product of elements,\n * but keeps only elements from this stream.\n * The `that` stream would be run multiple times, for every element in the `this` stream.\n *\n * @tsplus pipeable fncts.io.Stream zipLeft\n */\nexport function zipLeft(that, __tsplusTrace) {\n return (stream) => {\n return crossWith_1(that, (a, _) => a, __tsplusTrace)(stream);\n };\n}\n/**\n * Composes this stream with the specified stream to create a cartesian product of elements,\n * but keeps only elements from the other stream.\n * The `that` stream would be run multiple times, for every element in the `this` stream.\n *\n * @tsplus pipeable fncts.io.Stream zipRight\n */\nfunction zipRight_1(that, __tsplusTrace) {\n return (stream) => {\n return crossWith_1(that, (_, b) => b, __tsplusTrace)(stream);\n };\n}\n/**\n * @tsplus static fncts.io.StreamOps empty\n */\nconst empty_1 = fromChunkNow_1(tsplus_module_9.empty(), fileName_1 + \":1234:70\");\nexport const empty = empty_1;\n/**\n * Halts the evaluation of this stream when the provided IO completes. The given IO\n * will be forked as part of the returned stream, and its success will be discarded.\n *\n * An element in the process of being pulled will not be interrupted when the IO\n * completes. See `interruptWhen` for this behavior.\n *\n * If the IO completes with a failure, the stream will emit that failure.\n *\n * @tsplus pipeable fncts.io.Stream endWhen\n */\nexport function endWhen(io, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.unwrapScoped(() => tsplus_module_1.map((fiber) => tsplus_module_12.pipeTo(endWhenWriter(fiber, __tsplusTrace))(stream.channel), __tsplusTrace)(tsplus_module_19.forkScoped(io, __tsplusTrace))));\n };\n}\nfunction endWhenWriter(fiber, __tsplusTrace) {\n return tsplus_module_12.unwrap(() => tsplus_module_1.map((maybeExit) => tsplus_module_22.match(() => tsplus_module_12.readWith((inp) => tsplus_module_13.zipRight(endWhenWriter(fiber, __tsplusTrace))(tsplus_module_12.writeNow(inp)), tsplus_module_12.failNow, () => tsplus_module_12.unit), (exit) => tsplus_module_36.match(tsplus_module_13.failCauseNow, () => tsplus_module_12.unit)(exit))(maybeExit), __tsplusTrace)(tsplus_module_49.poll(fiber, __tsplusTrace)));\n}\n/**\n * @tsplus pipeable fncts.io.Stream ensuring\n */\nfunction ensuring_1(finalizer, __tsplusTrace) {\n return (self) => {\n return new Stream(tsplus_module_12.ensuring(finalizer)(self.channel));\n };\n}\n/**\n * @tsplus static fncts.io.StreamOps environment\n */\nfunction environment_1(__tsplusTrace) {\n return fromIO_1(tsplus_module_50.environment(__tsplusTrace), __tsplusTrace);\n}\n/**\n * Accesses the environment of the stream.\n *\n * @tsplus static fncts.io.StreamOps environmentWith\n */\nexport function environmentWith(f, __tsplusTrace) {\n return map_1(f, __tsplusTrace)(environment_1(__tsplusTrace));\n}\n/**\n * Accesses the environment of the stream in the context of an effect.\n *\n * @tsplus static fncts.io.StreamOps environmentWithIO\n */\nexport function environmentWithIO(f, __tsplusTrace) {\n return mapIO_1(f, __tsplusTrace)(environment_1(__tsplusTrace));\n}\n/**\n * Accesses the environment of the stream in the context of a stream.\n *\n * @tsplus static fncts.io.StreamOps environmentWithStream\n */\nexport function environmentWithStream(f, __tsplusTrace) {\n return flatMap_1(f, __tsplusTrace)(environment_1(__tsplusTrace));\n}\n/**\n * Creates a stream that executes the specified effect but emits no elements.\n *\n * @tsplus static fncts.io.StreamOps execute\n */\nfunction execute_1(io, __tsplusTrace) {\n return drain_1(fromIO_1(io, __tsplusTrace), __tsplusTrace);\n}\n/**\n * Halt a stream with the specified error\n *\n * @tsplus static fncts.io.StreamOps fail\n */\nexport function fail(error, __tsplusTrace) {\n return new Stream(tsplus_module_12.fail(error));\n}\n/**\n * The stream that always halts with `cause`.\n *\n * @tsplus static fncts.io.StreamOps failCause\n */\nexport function failCause(cause, __tsplusTrace) {\n return fromIO_1(tsplus_module_1.failCause(cause, __tsplusTrace), __tsplusTrace);\n}\n/**\n * The stream that always halts with `cause`.\n *\n * @tsplus static fncts.io.StreamOps failCauseNow\n */\nfunction failCauseNow_1(cause, __tsplusTrace) {\n return fromIO_1(tsplus_module_1.failCauseNow(cause, __tsplusTrace), __tsplusTrace);\n}\n/**\n * Halt a stream with the specified error\n *\n * @tsplus static fncts.io.StreamOps failNow\n */\nfunction failNow_1(error, __tsplusTrace) {\n return new Stream(tsplus_module_12.failNow(error));\n}\nexport function filter(predicate, __tsplusTrace) {\n return (fa) => {\n return mapChunks_1((chunk) => tsplus_module_14.filter(predicate)(chunk), __tsplusTrace)(fa);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream filterIO\n */\nexport function filterIO(f, __tsplusTrace) {\n return (fa) => {\n return new Stream(tsplus_module_12.pipeTo(filterIOLoop(tsplus_module_40.empty()[Symbol.iterator](), f, __tsplusTrace))(fa.channel));\n };\n}\nfunction filterIOLoop(iterator, f, __tsplusTrace) {\n const next = iterator.next();\n if (next.done) {\n return tsplus_module_12.readWithCause((elem) => filterIOLoop(elem[Symbol.iterator](), f, __tsplusTrace), tsplus_module_13.failCauseNow, tsplus_module_13.succeedNow);\n }\n else {\n return tsplus_module_12.unwrap(() => tsplus_module_1.map((b) => b\n ? tsplus_module_13.zipRight(filterIOLoop(iterator, f, __tsplusTrace))(tsplus_module_12.writeNow(tsplus_module_21.single(next.value))) : filterIOLoop(iterator, f, __tsplusTrace), __tsplusTrace)(f(next.value)));\n }\n}\n/**\n * @tsplus pipeable fncts.io.Stream filterMap\n */\nfunction filterMap_1(f, __tsplusTrace) {\n return (fa) => {\n return mapChunks_1((chunk) => tsplus_module_14.filterMap(f)(chunk), __tsplusTrace)(fa);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream filterMapIO\n */\nexport function filterMapIO(f, __tsplusTrace) {\n return (fa) => {\n return new Stream(tsplus_module_12.pipeTo(filterMapIOLoop(tsplus_module_40.empty()[Symbol.iterator](), f, __tsplusTrace))(fa.channel));\n };\n}\nfunction filterMapIOLoop(iterator, f, __tsplusTrace) {\n const next = iterator.next();\n if (next.done) {\n return tsplus_module_12.readWithCause((elem) => filterMapIOLoop(elem[Symbol.iterator](), f, __tsplusTrace), tsplus_module_13.failCauseNow, tsplus_module_13.succeedNow);\n }\n else {\n return tsplus_module_12.unwrap(() => tsplus_module_1.map((b) => tsplus_module_22.match(() => filterMapIOLoop(iterator, f, __tsplusTrace), (b) => tsplus_module_13.zipRight(filterMapIOLoop(iterator, f, __tsplusTrace))(tsplus_module_12.writeNow(tsplus_module_21.single(b))))(b), __tsplusTrace)(f(next.value)));\n }\n}\n/**\n * Finds the first element emitted by this stream that satisfies the provided predicate.\n *\n * @tsplus pipeable fncts.io.Stream find\n */\nexport function find(p, __tsplusTrace) {\n return (stream) => {\n const loop = tsplus_module_12.readWith((inp) => tsplus_module_22.match(() => loop, (a) => tsplus_module_12.writeNow(tsplus_module_21.single(a)))(tsplus_module_14.find(p)(inp)), tsplus_module_12.failNow, () => tsplus_module_12.unit);\n return new Stream(tsplus_module_12.pipeTo(loop)(stream.channel));\n };\n}\n/**\n * Finds the first element emitted by this stream that satisfies the provided effectful predicate.\n *\n * @tsplus pipeable fncts.io.Stream findIO\n */\nexport function findIO(f, __tsplusTrace) {\n return (stream) => {\n const loop = tsplus_module_12.readWith((inp) => tsplus_module_12.unwrap(() => tsplus_module_1.map((maybeA) => tsplus_module_22.match(() => loop, (a) => tsplus_module_12.writeNow(tsplus_module_21.single(a)))(maybeA), __tsplusTrace)(tsplus_module_51.findIO(f, __tsplusTrace)(inp))), tsplus_module_12.failNow, () => tsplus_module_12.unit);\n return new Stream(tsplus_module_12.pipeTo(loop)(stream.channel));\n };\n}\n/**\n * Flattens this stream-of-streams into a stream made of the concatenation in\n * strict order of all the streams.\n *\n * @tsplus getter fncts.io.Stream flatten\n */\nfunction flatten_1(self, __tsplusTrace) {\n return flatMap_1(identity, __tsplusTrace)(self);\n}\n/**\n * Submerges the chunks carried by this stream into the stream's structure, while\n * still preserving them.\n *\n * @tsplus getter fncts.io.Stream flattenChunks\n */\nfunction flattenChunks_1(stream, __tsplusTrace) {\n return new Stream(tsplus_module_12.mapOut((c) => tsplus_module_14.flatten(c))(stream.channel));\n}\n/**\n * Unwraps `Exit` values that also signify end-of-stream by failing with `None`.\n *\n * For `Exit<E, A>` values that do not signal end-of-stream, prefer:\n *\n * @tsplus getter fncts.io.Stream flattenExitOption\n */\nfunction flattenExitOption_1(stream, __tsplusTrace) {\n const processChunk = (chunk, cont) => {\n const [toEmit, rest] = tsplus_module_14.splitWhere((_) => !tsplus_module_52.isSuccess(_))(chunk);\n const next = tsplus_module_22.match(() => cont, (exit) => tsplus_module_36.match((cause) => tsplus_module_22.match(() => tsplus_module_13.endNow(undefined), tsplus_module_13.failCauseNow)(tsplus_module_27.flipCauseOption(cause)), () => tsplus_module_13.endNow(undefined))(exit))(tsplus_module_14.head(rest));\n return tsplus_module_13.zipRight(next)(tsplus_module_12.writeNow(tsplus_module_14.filterMap((exit) => tsplus_module_36.match(() => tsplus_module_5.nothing(__tsplusTrace), tsplus_module_5.just)(exit))(toEmit)));\n };\n const process = tsplus_module_12.readWithCause((chunk) => processChunk(chunk, process), tsplus_module_13.failCauseNow, (_) => tsplus_module_13.endNow(undefined));\n return new Stream(tsplus_module_12.pipeTo(process)(stream.channel));\n}\n/**\n * Unwraps `Exit` values and flatten chunks that also signify end-of-stream by failing with `None`.\n *\n * @tsplus getter fncts.io.Stream flattenTake\n */\nfunction flattenTake_1(stream, __tsplusTrace) {\n return flattenChunks_1(flattenExitOption_1(map_1((take) => take.exit, __tsplusTrace)(stream), __tsplusTrace), __tsplusTrace);\n}\n/**\n * Repeats this stream forever.\n *\n * @tsplus getter fncts.io.Stream forever\n */\nfunction forever_1(stream, __tsplusTrace) {\n return new Stream(tsplus_module_12.repeated(stream.channel));\n}\n/**\n * @tsplus static fncts.io.StreamOps fromAsyncIterable\n */\nexport function fromAsyncIterable(iterable, __tsplusTrace) {\n return new Stream(fromAsyncIterableLoop(iterable[Symbol.asyncIterator](), __tsplusTrace));\n}\nfunction fromAsyncIterableLoop(iterator, __tsplusTrace) {\n return tsplus_module_12.unwrap(() => tsplus_module_1.async((k) => {\n iterator\n .next()\n .then((result) => result.done\n ? k(tsplus_module_1.succeedNow(tsplus_module_13.end(() => undefined), __tsplusTrace))\n : k(tsplus_module_1.succeedNow(tsplus_module_13.zipRight(fromAsyncIterableLoop(iterator, __tsplusTrace))(tsplus_module_12.writeNow(tsplus_module_21.single(result.value))), __tsplusTrace)));\n }));\n}\n/**\n * Creates a stream from a `Chunk` of values\n *\n * @tsplus static fncts.io.StreamOps fromChunk\n */\nfunction fromChunk_1(c, __tsplusTrace) {\n return new Stream(tsplus_module_12.unwrap(() => tsplus_module_1.succeedNow(tsplus_module_12.write(c), __tsplusTrace)));\n}\n/**\n * Creates a stream from a `Chunk` of values\n *\n * @tsplus static fncts.io.StreamOps fromChunkNow\n */\nfunction fromChunkNow_1(c, __tsplusTrace) {\n return new Stream(tsplus_module_12.defer(() => (tsplus_module_14.isEmpty(c) ? tsplus_module_12.unit : tsplus_module_12.writeNow(c))));\n}\n/**\n * @tsplus static fncts.io.StreamOps fromHub\n */\nexport function fromHub(hub, maxChunkSize = DEFAULT_CHUNK_SIZE, __tsplusTrace) {\n return flatMap_1((queue) => fromQueueWithShutdown_1(queue, maxChunkSize, __tsplusTrace), __tsplusTrace)(scoped_1(() => tsplus_module_34.subscribe(hub(), __tsplusTrace), __tsplusTrace));\n}\n/**\n * @tsplus static fncts.io.StreamOps fromHubScoped\n */\nexport function fromHubScoped(hub, maxChunkSize = DEFAULT_CHUNK_SIZE, __tsplusTrace) {\n return tsplus_module_1.defer(() => tsplus_module_1.map((queue) => fromQueueWithShutdown_1(queue, maxChunkSize, __tsplusTrace), __tsplusTrace)(tsplus_module_34.subscribe(hub(), __tsplusTrace)), __tsplusTrace);\n}\n/**\n * Creates a stream from an effect producing a value of type `A`\n *\n * @tsplus static fncts.io.StreamOps fromIO\n */\nfunction fromIO_1(fa, __tsplusTrace) {\n return fromIOMaybe_1(tsplus_module_1.mapError(tsplus_module_5.just, __tsplusTrace)(fa), __tsplusTrace);\n}\n/**\n * Creates a stream from an effect producing a value of type `A` or an empty Stream\n *\n * @tsplus static fncts.io.StreamOps fromIOMaybe\n */\nfunction fromIOMaybe_1(fa, __tsplusTrace) {\n return new Stream(tsplus_module_12.unwrap(() => tsplus_module_1.match((maybeError) => tsplus_module_22.match(() => tsplus_module_12.unit, tsplus_module_12.failNow)(maybeError), (a) => tsplus_module_12.writeNow(tsplus_module_21.single(a)), __tsplusTrace)(fa)));\n}\n/**\n * @tsplus static fncts.io.StreamOps fromIterable\n */\nexport function fromIterable(iterable, maxChunkSize = DEFAULT_CHUNK_SIZE, __tsplusTrace) {\n return unwrap_1(tsplus_module_1.succeed(() => {\n const loop = (iterator) => tsplus_module_12.unwrap(() => tsplus_module_1.succeed(() => {\n let result = iterator.next();\n if (result.done) {\n return tsplus_module_12.unit;\n }\n if (maxChunkSize === 1) {\n return tsplus_module_13.zipRight(loop(iterator))(tsplus_module_12.writeNow(tsplus_module_21.single(result.value)));\n }\n else {\n const out = Array(maxChunkSize);\n out[0] = result.value;\n let count = 1;\n while (count < maxChunkSize && !(result = iterator.next()).done) {\n out[count] = result.value;\n count++;\n }\n return tsplus_module_13.zipRight(loop(iterator))(tsplus_module_12.writeNow(tsplus_module_21.from(out)));\n }\n }, __tsplusTrace));\n return new Stream(loop(iterable[Symbol.iterator]()));\n }, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.StreamOps fromIterableSingle\n */\nexport function fromIterableSingle(iterable, __tsplusTrace) {\n return flatMap_1((iterator) => repeatIOMaybe_1(tsplus_module_1.defer(() => {\n const value = iterator.next();\n if (value.done) {\n return tsplus_module_1.failNow(tsplus_module_5.nothing(__tsplusTrace), __tsplusTrace);\n }\n else {\n return tsplus_module_1.succeedNow(value.value, __tsplusTrace);\n }\n }, __tsplusTrace), __tsplusTrace), __tsplusTrace)(fromIO_1(tsplus_module_1.succeed(() => iterable[Symbol.iterator](), __tsplusTrace), __tsplusTrace));\n}\n/**\n * @tsplus static fncts.io.StreamOps fromPull\n */\nfunction fromPull_1(scopedPull, __tsplusTrace) {\n return unwrapScoped_1(tsplus_module_1.map((pull) => repeatIOChunkMaybe_1(pull, __tsplusTrace), __tsplusTrace)(scopedPull), __tsplusTrace);\n}\n/**\n * Creates a stream from a `Queue` of values\n *\n * @tsplus static fncts.io.StreamOps fromQueue\n */\nfunction fromQueue_1(queue, maxChunkSize = DEFAULT_CHUNK_SIZE, __tsplusTrace) {\n return repeatIOChunkMaybe_1(tsplus_module_1.catchAllCause((c) => tsplus_module_1.flatMap((down) => {\n if (down && tsplus_module_27.interrupted(c)) {\n return tsplus_module_53.end;\n }\n else {\n return tsplus_module_53.failCause(c);\n }\n }, __tsplusTrace)(tsplus_module_30.isShutdown(queue, __tsplusTrace)), __tsplusTrace)(tsplus_module_1.map(tsplus_module_21.from, __tsplusTrace)(tsplus_module_54.takeBetween(1, maxChunkSize, __tsplusTrace)(queue))), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.StreamOps fromQueueWithShutdown\n */\nfunction fromQueueWithShutdown_1(queue, maxChunkSize = DEFAULT_CHUNK_SIZE, __tsplusTrace) {\n return ensuring_1(tsplus_module_30.shutdown(queue, __tsplusTrace), __tsplusTrace)(fromQueue_1(queue, maxChunkSize, __tsplusTrace));\n}\n/**\n * @tsplus static fncts.io.StreamOps fromReadableStream\n */\nexport function fromReadableStream(evaluate, onError) {\n return unwrapScoped_1(tsplus_module_1.map((reader) => repeatIOMaybe_1(tsplus_module_1.flatMap(({ done, value }) => done ? tsplus_module_1.failNow(tsplus_module_5.nothing(fileName_1 + \":1782:38\"), fileName_1 + \":1782:30\") : tsplus_module_1.succeedNow(value, fileName_1 + \":1782:57\"), fileName_1 + \":1781:88\")(tsplus_module_1.fromPromiseCatch(() => reader.read(), (reason) => tsplus_module_5.just(onError(reason), fileName_1 + \":1781:62\"), fileName_1 + \":1781:30\")), fileName_1 + \":1780:29\"), fileName_1 + \":1779:11\")(tsplus_module_2.acquireRelease(() => tsplus_module_1.succeed(() => evaluate().getReader(), fileName_1 + \":1777:7\"), (reader) => tsplus_module_1.fromPromiseHalt(() => reader.cancel(), fileName_1 + \":1778:53\"), fileName_1 + \":1778:22\")), fileName_1 + \":1776:29\");\n}\n/**\n * Halt a stream with the specified exception\n *\n * @tsplus static fncts.io.StreamOps halt\n */\nfunction halt_1(u, __tsplusTrace) {\n return new Stream(tsplus_module_12.halt(u));\n}\n/**\n * Halt a stream with the specified exception\n *\n * @tsplus static fncts.io.StreamOps haltNow\n */\nexport function haltNow(u, __tsplusTrace) {\n return new Stream(tsplus_module_12.halt(() => u));\n}\n/**\n * Halts the evaluation of this stream when the provided IO completes. The\n * given IO will be forked as part of the returned stream, and its success\n * will be discarded.\n *\n * An element in the process of being pulled will not be interrupted when the\n * IO completes. See `interruptWhen` for this behavior.\n *\n * If the IO completes with a failure, the stream will emit that failure.\n *\n * @tsplus pipeable fncts.io.Stream haltWhen\n */\nexport function haltWhen(io, __tsplusTrace) {\n return (fa) => {\n return new Stream(tsplus_module_12.unwrapScoped(() => tsplus_module_1.map((fiber) => tsplus_module_12.pipeTo(haltWhenWriter(fiber, __tsplusTrace))(fa.channel), __tsplusTrace)(tsplus_module_19.forkScoped(io, __tsplusTrace))));\n };\n}\n/**\n * Halts the evaluation of this stream when the provided promise resolves.\n *\n * If the promise completes with a failure, the stream will emit that failure.\n *\n * @tsplus pipeable fncts.io.Stream haltWhen\n */\nexport function haltWhenFuture(future, __tsplusTrace) {\n return (fa) => {\n return new Stream(tsplus_module_12.pipeTo(haltWhenFutureWriter(future, __tsplusTrace))(fa.channel));\n };\n}\nfunction haltWhenFutureWriter(future, __tsplusTrace) {\n return tsplus_module_12.unwrap(() => tsplus_module_1.map((maybeIO) => tsplus_module_22.match(() => tsplus_module_12.readWith((i) => tsplus_module_13.zipRight(haltWhenFutureWriter(future, __tsplusTrace))(tsplus_module_12.writeNow(i)), tsplus_module_12.failNow, () => tsplus_module_12.unit), (io) => tsplus_module_12.unwrap(() => tsplus_module_1.match(tsplus_module_12.failNow, () => tsplus_module_12.unit, __tsplusTrace)(io)))(maybeIO), __tsplusTrace)(tsplus_module_37.poll(future, __tsplusTrace)));\n}\nfunction haltWhenWriter(fiber, __tsplusTrace) {\n return tsplus_module_12.unwrap(() => tsplus_module_1.map((maybeExit) => tsplus_module_22.match(() => tsplus_module_12.readWith((i) => tsplus_module_13.zipRight(haltWhenWriter(fiber, __tsplusTrace))(tsplus_module_12.writeNow(i)), tsplus_module_12.failNow, () => tsplus_module_12.unit), (exit) => tsplus_module_36.match(tsplus_module_13.failCauseNow, () => tsplus_module_12.unit)(exit))(maybeExit), __tsplusTrace)(tsplus_module_49.poll(fiber, __tsplusTrace)));\n}\n/**\n * @tsplus pipeable fncts.io.Stream interleave\n */\nexport function interleave(sb, __tsplusTrace) {\n return (sa) => {\n return interleaveWith_1(sb, forever_1(fromChunk_1(() => tsplus_module_21.make(true, false), __tsplusTrace), __tsplusTrace), __tsplusTrace)(sa);\n };\n}\n/**\n * Combines this stream and the specified stream deterministically using the\n * stream of boolean values `b` to control which stream to pull from next.\n * `true` indicates to pull from this stream and `false` indicates to pull\n * from the specified stream. Only consumes as many elements as requested by\n * `b`. If either this stream or the specified stream are exhausted further\n * requests for values from that stream will be ignored.\n *\n * @tsplus pipeable fncts.io.Stream interleaveWith\n */\nfunction interleaveWith_1(sb, b, __tsplusTrace) {\n return (sa) => {\n return new Stream(tsplus_module_12.unwrapScoped(() => tsplus_module_1.map(([left, right]) => {\n const process = (leftDone, rightDone) => tsplus_module_12.readWithCause((b) => {\n if (b && !leftDone) {\n return tsplus_module_13.flatMap((take) => tsplus_module_29.match(rightDone ? tsplus_module_12.unit : process(true, rightDone), tsplus_module_13.failCauseNow, (chunk) => tsplus_module_13.zipRight(process(leftDone, rightDone))(tsplus_module_12.writeNow(chunk)))(take))(tsplus_module_12.fromIO(() => tsplus_module_7.take(left)));\n }\n if (!b && !rightDone) {\n return tsplus_module_13.flatMap((take) => tsplus_module_29.match(leftDone ? tsplus_module_12.unit : process(leftDone, true), tsplus_module_13.failCauseNow, (chunk) => tsplus_module_13.zipRight(process(leftDone, rightDone))(tsplus_module_12.writeNow(chunk)))(take))(tsplus_module_12.fromIO(() => tsplus_module_7.take(right)));\n }\n return process(leftDone, rightDone);\n }, tsplus_module_13.failCauseNow, () => tsplus_module_12.unit);\n return tsplus_module_12.pipeTo(process(false, false))(tsplus_module_12.concatMap(tsplus_module_12.writeChunk)(b.channel));\n }, __tsplusTrace)(tsplus_module_1.flatMap(left => tsplus_module_1.flatMap(right => tsplus_module_1.flatMap(() => tsplus_module_1.map(() => tuple(left, right), __tsplusTrace)(tsplus_module_33.fork(tsplus_module_18.runScoped(tsplus_module_12.pipeTo(interleaveWithProducer(right, __tsplusTrace))(tsplus_module_12.concatMap(tsplus_module_12.writeChunk)(sb.channel))), __tsplusTrace)), __tsplusTrace)(tsplus_module_33.fork(tsplus_module_18.runScoped(tsplus_module_12.pipeTo(interleaveWithProducer(left, __tsplusTrace))(tsplus_module_12.concatMap(tsplus_module_12.writeChunk)(sa.channel))), __tsplusTrace)), __tsplusTrace)(tsplus_module_7.make()), __tsplusTrace)(tsplus_module_7.make()))));\n };\n}\nfunction interleaveWithProducer(handoff, __tsplusTrace) {\n return tsplus_module_12.readWithCause((value) => tsplus_module_13.zipRight(interleaveWithProducer(handoff, __tsplusTrace))(tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_29.single(value))(handoff))), (cause) => tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_29.failCause(cause))(handoff)), () => tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_29.end)(handoff)));\n}\n/**\n * Interrupts the evaluation of this stream when the provided IO completes. The given\n * IO will be forked as part of this stream, and its success will be discarded. This\n * combinator will also interrupt any in-progress element being pulled from upstream.\n *\n * If the IO completes with a failure before the stream completes, the returned stream\n * will emit that failure.\n *\n * @tsplus pipeable fncts.io.Stream interruptWhen\n */\nexport function interruptWhen(io, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_55.interruptWhen(io)(stream.channel));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream interruptWhen\n */\nexport function interruptWhenFuture(future, __tsplusTrace) {\n return (fa) => {\n return new Stream(tsplus_module_55.interruptWhenFuture(future)(fa.channel));\n };\n}\n/**\n * Intersperse stream with provided element\n */\nexport function intersperse(stream, middle, __tsplusTrace) {\n return new Stream(tsplus_module_12.pipeTo(intersperseWriter(middle, true, __tsplusTrace))(stream.channel));\n}\nfunction intersperseWriter(middle, isFirst, __tsplusTrace) {\n return tsplus_module_12.readWith((inp) => {\n const builder = tsplus_module_14.builder();\n let flagResult = isFirst;\n tsplus_module_14.forEach((a) => {\n if (flagResult) {\n flagResult = false;\n builder.append(a);\n }\n else {\n builder.append(middle);\n builder.append(a);\n }\n })(inp);\n return tsplus_module_13.zipRight(intersperseWriter(middle, flagResult, __tsplusTrace))(tsplus_module_12.writeNow(builder.result()));\n }, tsplus_module_12.failNow, () => tsplus_module_12.unit);\n}\n/**\n * Transforms the elements of this stream using the supplied function.\n *\n * @tsplus pipeable fncts.io.Stream map\n */\nfunction map_1(f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.mapOut((as) => tsplus_module_14.map(f)(as))(stream.channel));\n };\n}\n/**\n * Statefully maps over the elements of this stream to produce new elements.\n *\n * @tsplus pipeable fncts.io.Stream mapAccum\n */\nfunction mapAccum_1(s, f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.pipeTo(mapAccumAccumulator(s, f, __tsplusTrace))(stream.channel));\n };\n}\nfunction mapAccumAccumulator(currS, f, __tsplusTrace) {\n return tsplus_module_12.readWith((inp) => {\n const [nextS, bs] = tsplus_module_14.mapAccum(currS, f)(inp);\n return tsplus_module_13.zipRight(mapAccumAccumulator(nextS, f, __tsplusTrace))(tsplus_module_12.writeNow(bs));\n }, tsplus_module_12.failNow, () => tsplus_module_12.unit);\n}\n/**\n * Statefully and effectfully maps over the elements of this stream to produce\n * new elements.\n *\n * @tsplus pipeable fncts.io.Stream mapAccumIO\n */\nfunction mapAccumIO_1(s, f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.pipeTo(mapAccumIOAccumulator(s, f, __tsplusTrace))(stream.channel));\n };\n}\nfunction mapAccumIOAccumulator(s, f, __tsplusTrace) {\n return tsplus_module_12.readWith((inp) => tsplus_module_12.unwrap(() => tsplus_module_1.defer(() => {\n const outputChunk = tsplus_module_14.builder();\n const emit = (b) => tsplus_module_1.succeed(() => {\n outputChunk.append(b);\n }, __tsplusTrace);\n return tsplus_module_1.match((e) => {\n const partialResult = outputChunk.result();\n return tsplus_module_14.isNonEmpty(partialResult) ? tsplus_module_13.zipRight(tsplus_module_12.failNow(e))(tsplus_module_12.writeNow(partialResult))\n : tsplus_module_12.failNow(e);\n }, (s) => tsplus_module_13.zipRight(mapAccumIOAccumulator(s, f, __tsplusTrace))(tsplus_module_12.writeNow(outputChunk.result())), __tsplusTrace)(tsplus_module_1.foldLeft(inp, s, (s1, a) => tsplus_module_1.flatMap(([b, s2]) => tsplus_module_1.as(() => s2, __tsplusTrace)(emit(b)), __tsplusTrace)(f(s1, a)), __tsplusTrace));\n }, __tsplusTrace)), tsplus_module_12.failNow, () => tsplus_module_12.unit);\n}\n/**\n * Transforms the chunks emitted by this stream.\n *\n * @tsplus pipeable fncts.io.Stream mapChunks\n */\nfunction mapChunks_1(f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.mapOut(f)(stream.channel));\n };\n}\n/**\n * Effectfully transforms the chunks emitted by this stream.\n *\n * @tsplus pipeable fncts.io.Stream mapChunksIO\n */\nexport function mapChunksIO(f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.mapOutIO(f)(stream.channel));\n };\n}\n/**\n * Maps each element to an iterable, and flattens the iterables into the\n * output of this stream.\n *\n * @tsplus pipeable fncts.io.Stream mapConcat\n */\nexport function mapConcat(f, __tsplusTrace) {\n return (stream) => {\n return mapConcatChunk_1((a) => tsplus_module_21.from(f(a)), __tsplusTrace)(stream);\n };\n}\n/**\n * Maps each element to a chunk, and flattens the chunks into the output of\n * this stream.\n *\n * @tsplus pipeable fncts.io.Stream mapConcatChunk\n */\nfunction mapConcatChunk_1(f, __tsplusTrace) {\n return (stream) => {\n return mapChunks_1((c) => tsplus_module_14.flatMap(f)(c), __tsplusTrace)(stream);\n };\n}\n/**\n * Effectfully maps each element to a chunk, and flattens the chunks into\n * the output of this stream.\n *\n * @tsplus pipeable fncts.io.Stream mapConcatChunkIO\n */\nexport function mapConcatChunkIO(f, __tsplusTrace) {\n return (stream) => {\n return mapConcatChunk_1(identity, __tsplusTrace)(mapIO_1(f, __tsplusTrace)(stream));\n };\n}\n/**\n * Effectfully maps each element to an iterable, and flattens the iterables into\n * the output of this stream.\n *\n * @tsplus pipeable fncts.io.Stream mapConcatIO\n */\nexport function mapConcatIO(f, __tsplusTrace) {\n return (stream) => {\n return mapConcatChunk_1(identity, __tsplusTrace)(mapIO_1((a) => tsplus_module_1.map(tsplus_module_21.from, __tsplusTrace)(f(a)), __tsplusTrace)(stream));\n };\n}\n/**\n * Transforms the errors emitted by this stream using `f`.\n *\n * @tsplus pipeable fncts.io.Stream mapError\n */\nfunction mapError_1(f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.mapError(f)(stream.channel));\n };\n}\n/**\n * Transforms the full causes of failures emitted by this stream.\n *\n * @tsplus pipeable fncts.io.Stream mapErrorCause\n */\nexport function mapErrorCause(f, __tsplusTrace) {\n return (fa) => {\n return new Stream(tsplus_module_12.mapErrorCause(f)(fa.channel));\n };\n}\n/**\n * Maps over elements of the stream with the specified effectful function.\n *\n * @tsplus pipeable fncts.io.Stream mapIO\n */\nfunction mapIO_1(f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.pipeTo(mapIOLoop(tsplus_module_40.empty()[Symbol.iterator](), f, __tsplusTrace))(stream.channel));\n };\n}\n/**\n * Maps over elements of the stream with the specified effectful function,\n * executing up to `n` invocations of `f` concurrently. Transformed elements\n * will be emitted in the original order.\n *\n * @note This combinator destroys the chunking structure. It's recommended to use chunkN afterwards.\n *\n * @tsplus pipeable fncts.io.Stream mapIOConcurrently\n */\nexport function mapIOConcurrently(n, f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.mapOut(tsplus_module_21.single)(tsplus_module_56.mapOutConcurrentIO(n, f)(tsplus_module_12.concatMap(tsplus_module_12.writeChunk)(stream.channel))));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream mapIOConcurrentlyUnordered\n */\nexport function mapIOConcurrentlyUnordered(n, f) {\n return (self) => {\n return pipeThroughChannelOrFail_1(tsplus_module_57.mergeMap((inp) => fromIO_1(f(inp), fileName_1 + \":2223:41\").channel, n, 16)(tsplus_module_12.concatMap((chunk) => tsplus_module_12.writeChunk(chunk))(tsplus_module_12.id())))(self);\n };\n}\nfunction mapIOLoop(iterator, f, __tsplusTrace) {\n const next = iterator.next();\n if (next.done) {\n return tsplus_module_12.readWithCause((elem) => mapIOLoop(elem[Symbol.iterator](), f, __tsplusTrace), tsplus_module_13.failCauseNow, tsplus_module_13.succeedNow);\n }\n else {\n return tsplus_module_12.unwrap(() => tsplus_module_1.map((b) => tsplus_module_13.zipRight(mapIOLoop(iterator, f, __tsplusTrace))(tsplus_module_12.writeNow(tsplus_module_21.single(b))), __tsplusTrace)(f(next.value)));\n }\n}\n/**\n * Merges this stream and the specified stream together.\n *\n * New produced stream will terminate when both specified stream terminate if\n * no termination strategy is specified.\n *\n * @tsplus pipeable fncts.io.Stream merge\n */\nfunction merge_1(that, strategy = \"Both\", __tsplusTrace) {\n return (self) => {\n return mergeWith_1(that, identity, identity, strategy, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream mergeEither\n */\nfunction mergeEither_1(fb, __tsplusTrace) {\n return (fa) => {\n return mergeWith_1(fb, tsplus_module_20.left, tsplus_module_20.right)(fa);\n };\n}\n/**\n * Merges this stream and the specified stream together. New produced stream\n * will terminate when either stream terminates.\n *\n * @tsplus pipeable fncts.io.Stream mergeHaltEither\n */\nexport function mergeHaltEither(that, __tsplusTrace) {\n return (self) => {\n return merge_1(that, \"Either\", __tsplusTrace)(self);\n };\n}\n/**\n * Merges this stream and the specified stream together. New produced stream\n * will terminate when this stream terminates.\n *\n * @tsplus pipeable fncts.io.Stream mergeHaltLeft\n */\nexport function mergeHaltLeft(that, __tsplusTrace) {\n return (self) => {\n return merge_1(that, \"Left\", __tsplusTrace)(self);\n };\n}\n/**\n * Merges this stream and the specified stream together. New produced stream\n * will terminate when the specified stream terminates.\n *\n * @tsplus pipeable fncts.io.Stream mergeHaltRight\n */\nexport function mergeHaltRight(that, __tsplusTrace) {\n return (self) => {\n return merge_1(that, \"Right\", __tsplusTrace)(self);\n };\n}\n/**\n * Merges this stream and the specified stream together, discarding the values\n * from the right stream.\n *\n * @tsplus pipeable fncts.io.Stream mergeLeft\n */\nexport function mergeLeft(that, __tsplusTrace) {\n return (self) => {\n return merge_1(drain_1(that, __tsplusTrace))(self);\n };\n}\n/**\n * Maps each element of this stream to another stream and returns the\n * non-deterministic merge of those streams, executing up to `n` inner streams\n * concurrently. Up to `bufferSize` elements of the produced streams may be\n * buffered in memory by this operator.\n *\n * @tsplus pipeable fncts.io.Stream mergeMap\n */\nfunction mergeMap_1(f, n, bufferSize = 16, __tsplusTrace) {\n return (ma) => {\n return new Stream(tsplus_module_57.mergeMap((a) => f(a).channel, n, bufferSize)(tsplus_module_12.concatMap(tsplus_module_12.writeChunk)(ma.channel)));\n };\n}\n/**\n * Maps over elements of the stream with the specified effectful function,\n * executing up to `n` invocations of `f` concurrently. The element order\n * is not enforced by this combinator, and elements may be reordered.\n *\n * @tsplus pipeable fncts.io.Stream mergeMapIO\n */\nexport function mergeMapIO(f, n, bufferSize = 16, __tsplusTrace) {\n return (stream) => {\n return mergeMap_1((a) => fromIO_1(f(a), __tsplusTrace), n, bufferSize, __tsplusTrace)(stream);\n };\n}\n/**\n * Merges this stream and the specified stream together, discarding the values\n * from the left stream.\n *\n * @tsplus pipeable fncts.io.Stream mergeRight\n */\nexport function mergeRight(that, __tsplusTrace) {\n return (self) => {\n return merge_1(that)(drain_1(self, __tsplusTrace));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream mergeWith\n */\nfunction mergeWith_1(sb, l, r, strategy = \"Both\", __tsplusTrace) {\n return (sa) => {\n return new Stream(tsplus_module_58.mergeWith(map_1(r, __tsplusTrace)(sb).channel, mergeWithHandler(strategy === \"Either\" || strategy === \"Left\", __tsplusTrace), mergeWithHandler(strategy === \"Either\" || strategy === \"Right\", __tsplusTrace))(map_1(l, __tsplusTrace)(sa)\n .channel));\n };\n}\nfunction mergeWithHandler(terminate, __tsplusTrace) {\n return (exit) => terminate || !tsplus_module_52.isSuccess(exit) ? tsplus_module_59.done(tsplus_module_1.fromExitNow(exit, __tsplusTrace)) : tsplus_module_59.wait(tsplus_module_1.fromExitNow);\n}\n/**\n * Runs the specified effect if this stream fails, providing the error to the effect if it exists.\n *\n * Note: Unlike `IO.onError`, there is no guarantee that the provided effect will not be interrupted.\n *\n * @tsplus pipeable fncts.io.Stream onError\n */\nexport function onError(cleanup, __tsplusTrace) {\n return (stream) => {\n return catchAllCause_1((cause) => fromIO_1(tsplus_module_1.zipRight(tsplus_module_1.failCauseNow(cause, __tsplusTrace), __tsplusTrace)(cleanup(cause)), __tsplusTrace), __tsplusTrace)(stream);\n };\n}\n/**\n * Switches to the provided stream in case this one fails with a typed error.\n *\n * See also Stream#catchAll\n *\n * @tsplus pipeable fncts.io.Stream orElse\n */\nfunction orElse_1(that, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.orElse(that().channel)(stream.channel));\n };\n}\n/**\n * Switches to the provided stream in case this one fails with a typed error.\n *\n * See also ZStream#catchAll\n *\n * @tsplus pipeable fncts.io.Stream orElseEither\n */\nexport function orElseEither(that, __tsplusTrace) {\n return (stream) => {\n return orElse_1(() => map_1(tsplus_module_20.right, __tsplusTrace)(that()), __tsplusTrace)(map_1(tsplus_module_20.left, __tsplusTrace)(stream));\n };\n}\n/**\n * Fails with given error in case this one fails with a typed error.\n *\n * See also Stream#catchAll\n *\n * @tsplus pipeable fncts.io.Stream orElseFail\n */\nexport function orElseFail(e, __tsplusTrace) {\n return (stream) => {\n return orElse_1(() => failNow_1(e(), __tsplusTrace), __tsplusTrace)(stream);\n };\n}\n/**\n * Switches to the provided stream in case this one fails with the `None` value.\n *\n * See also Stream#catchAll.\n */\nexport function orElseOptional(stream, that, __tsplusTrace) {\n return catchAll_1((maybeError) => tsplus_module_22.match(() => that(), (e) => failNow_1(tsplus_module_5.just(e, __tsplusTrace), __tsplusTrace))(maybeError), __tsplusTrace)(stream);\n}\n/**\n * Succeeds with the specified value if this one fails with a typed error.\n *\n * @tsplus pipeable fncts.io.Stream orElseSucceed\n */\nexport function orElseSucceed(a, __tsplusTrace) {\n return (stream) => {\n return orElse_1(() => succeedNow_1(a(), __tsplusTrace), __tsplusTrace)(stream);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream pipeThrough\n */\nfunction pipeThrough_1(sa, __tsplusTrace) {\n return (ma) => {\n return new Stream(tsplus_module_12.pipeToOrFail(sa.channel)(ma.channel));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream pipeThroughChannelOrFail\n */\nfunction pipeThroughChannelOrFail_1(channel) {\n return (self) => {\n return new Stream(tsplus_module_12.pipeToOrFail(channel)(self.channel));\n };\n}\n/**\n * Provides the stream with its required environment, which eliminates\n * its dependency on `R`.\n *\n * @tsplus pipeable fncts.io.Stream provideEnvironment\n */\nfunction provideEnvironment_1(r, __tsplusTrace) {\n return (ra) => {\n return new Stream(tsplus_module_12.provideEnvironment(() => r)(ra.channel));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream provideLayer\n */\nfunction provideLayer_1(layer, __tsplusTrace) {\n return (self) => {\n return new Stream(tsplus_module_12.unwrapScoped(() => tsplus_module_1.map((r) => tsplus_module_12.provideEnvironment(() => r)(self.channel), __tsplusTrace)(tsplus_module_60.build(layer, __tsplusTrace))));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream provideSomeLayer\n */\nexport function provideSomeLayer(layer, __tsplusTrace) {\n return (self) => {\n // @ts-expect-error\n return provideLayer_1(tsplus_module_61.and(layer, __tsplusTrace)(tsplus_module_61.environment(__tsplusTrace)), __tsplusTrace)(self);\n };\n}\n/**\n * Re-chunks the elements of the stream into chunks of\n * `n` elements each.\n * The last chunk might contain less than `n` elements\n *\n * @tsplus pipeable fncts.io.Stream rechunk\n */\nexport function rechunk(n, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.pipeTo(rechunkProcess(new Rechunker(n), n, __tsplusTrace))(stream.channel));\n };\n}\nclass Rechunker {\n n;\n builder = [];\n pos = 0;\n constructor(n) {\n this.n = n;\n }\n write(elem) {\n this.builder.push(elem);\n this.pos += 1;\n if (this.pos === this.n) {\n const result = this.builder;\n this.builder = [];\n this.pos = 0;\n return tsplus_module_21.from(result);\n }\n return null;\n }\n emitOfNotEmpty() {\n if (this.pos !== 0) {\n return tsplus_module_12.writeNow(tsplus_module_21.from(this.builder));\n }\n else {\n return tsplus_module_12.unit;\n }\n }\n get isEmpty() {\n return this.pos === 0;\n }\n}\nfunction rechunkProcess(rechunker, target, __tsplusTrace) {\n return tsplus_module_12.readWithCause((chunk) => {\n if (chunk.length === target && rechunker.isEmpty) {\n return tsplus_module_13.zipRight(rechunkProcess(rechunker, target, __tsplusTrace))(tsplus_module_12.writeNow(chunk));\n }\n else if (chunk.length > 0) {\n const chunks = [];\n let result = null;\n let i = 0;\n while (i < chunk.length) {\n while (i < chunk.length && result === null) {\n result = rechunker.write(tsplus_module_14.unsafeGet(i)(chunk));\n i += 1;\n }\n if (result !== null) {\n chunks.push(result);\n result = null;\n }\n }\n return tsplus_module_13.zipRight(rechunkProcess(rechunker, target, __tsplusTrace))(tsplus_module_12.writeAll(chunks));\n }\n else {\n return rechunkProcess(rechunker, target, __tsplusTrace);\n }\n }, (cause) => tsplus_module_13.zipRight(tsplus_module_13.failCauseNow(cause))(rechunker.emitOfNotEmpty()), () => rechunker.emitOfNotEmpty());\n}\n/**\n * Creates a stream from an effect producing a value of type `A` which repeats forever.\n *\n * @tsplus static fncts.io.StreamOps repeatIO\n */\nexport function repeatIO(fa, __tsplusTrace) {\n return repeatIOMaybe_1(tsplus_module_1.mapError(tsplus_module_5.just, __tsplusTrace)(fa), __tsplusTrace);\n}\n/**\n * Creates a stream from an effect producing chunks of `A` values which repeats forever.\n *\n * @tsplus static fncts.io.StreamOps repeatIOChunk\n */\nexport function repeatIOChunk(fa, __tsplusTrace) {\n return repeatIOChunkMaybe_1(tsplus_module_1.mapError(tsplus_module_5.just, __tsplusTrace)(fa), __tsplusTrace);\n}\n/**\n * Creates a stream from an effect producing chunks of `A` values until it fails with None.\n *\n * @tsplus static fncts.io.StreamOps repeatIOChunkMaybe\n */\nfunction repeatIOChunkMaybe_1(fa, __tsplusTrace) {\n return unfoldChunkIO_1(undefined, (_) => tsplus_module_1.catchAll((maybeError) => tsplus_module_22.match(() => tsplus_module_1.succeedNow(tsplus_module_5.nothing(__tsplusTrace), __tsplusTrace), tsplus_module_1.failNow)(maybeError), __tsplusTrace)(tsplus_module_1.map((chunk) => tsplus_module_5.just(tuple(chunk, undefined), __tsplusTrace), __tsplusTrace)(fa)), __tsplusTrace);\n}\n/**\n * Creates a stream from an effect producing values of type `A` until it fails with None.\n *\n * @tsplus static fncts.io.StreamOps repeatIOMaybe\n */\nfunction repeatIOMaybe_1(fa, __tsplusTrace) {\n return repeatIOChunkMaybe_1(tsplus_module_1.map(tsplus_module_21.single, __tsplusTrace)(fa), __tsplusTrace);\n}\n/**\n * Repeats the provided value infinitely.\n *\n * @tsplus static fncts.io.StreamOps repeatValue\n */\nexport function repeatValue(a, __tsplusTrace) {\n return new Stream(tsplus_module_12.repeated(tsplus_module_12.writeNow(tsplus_module_21.single(a))));\n}\n/**\n * Runs the sink on the stream to produce either the sink's result or an error.\n *\n * @tsplus pipeable fncts.io.Stream run\n */\nfunction run_1(sink, __tsplusTrace) {\n return (stream) => {\n return tsplus_module_62.runDrain(tsplus_module_12.pipeToOrFail(sink.channel)(stream.channel));\n };\n}\n/**\n * Runs the stream and collects all of its elements to a chunk.\n *\n * @tsplus getter fncts.io.Stream runCollect\n */\nexport function runCollect(stream, __tsplusTrace) {\n return run_1(tsplus_module_48.makeCollectAll(__tsplusTrace), __tsplusTrace)(stream);\n}\n/**\n * Runs the stream and collects ignore its elements.\n *\n * @tsplus getter fncts.io.Stream runDrain\n */\nexport function runDrain(stream, __tsplusTrace) {\n return run_1(tsplus_module_48.drain, __tsplusTrace)(stream);\n}\n/**\n * @tsplus pipeable fncts.io.Stream runForeachScoped\n */\nfunction runForeachScoped_1(f, __tsplusTrace) {\n return (self) => {\n return runScoped_1(tsplus_module_48.makeForeach(f, __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * Like `into`, but provides the result as a `Managed` to allow for scope\n * composition.\n *\n * @tsplus pipeable fncts.io.Stream runIntoElementsScoped\n */\nexport function runIntoElementsScoped_(queue, __tsplusTrace) {\n return (stream) => {\n const writer = tsplus_module_12.readWith((inp) => tsplus_module_13.zipRight(writer)(tsplus_module_14.foldLeft(tsplus_module_12.unit, (channel, a) => tsplus_module_13.zipRight(tsplus_module_12.writeNow(tsplus_module_41.succeed(a, __tsplusTrace)))(channel))(inp)), (err) => tsplus_module_12.writeNow(tsplus_module_41.fail(tsplus_module_5.just(err, __tsplusTrace), __tsplusTrace)), () => tsplus_module_12.writeNow(tsplus_module_41.fail(tsplus_module_5.nothing(__tsplusTrace), __tsplusTrace)));\n return tsplus_module_1.asUnit(tsplus_module_18.runScoped(tsplus_module_12.drain(tsplus_module_12.mapOutIO((exit) => tsplus_module_30.offer(exit, __tsplusTrace)(queue))(tsplus_module_12.pipeTo(writer)(stream.channel)))), __tsplusTrace);\n };\n}\n/**\n * Like `Stream#runIntoHub`, but provides the result as a `Managed` to allow for scope\n * composition.\n *\n * @tsplus pipeable fncts.io.Stream runIntoHubScoped\n */\nfunction runIntoHubScoped_1(hub, __tsplusTrace) {\n return (stream) => {\n return runIntoQueueScoped_1(hub, __tsplusTrace)(stream);\n };\n}\n/**\n * Like runIntoQueue, but provides the result as a scoped IO\n * to allow for scope composition.\n *\n * @tsplus pipeable fncts.io.Stream runIntoQueueElementsScoped\n */\nfunction runIntoQueueElementsScoped_1(queue) {\n return (self) => {\n return tsplus_module_1.defer(() => {\n const queue0 = queue();\n const writer = tsplus_module_12.readWithCause((inp) => tsplus_module_13.zipRight(writer)(tsplus_module_12.fromIO(() => tsplus_module_30.offerAll(tsplus_module_14.map((a) => tsplus_module_41.succeed(a, fileName_1 + \":2744:85\"))(inp), fileName_1 + \":2744:57\")(queue0))), (cause) => tsplus_module_12.fromIO(() => tsplus_module_30.offer(tsplus_module_41.failCause(tsplus_module_27.map((e) => tsplus_module_5.just(e, fileName_1 + \":2745:84\"))(cause), fileName_1 + \":2745:62\"), fileName_1 + \":2745:47\")(queue0)), () => tsplus_module_12.fromIO(() => tsplus_module_30.offer(tsplus_module_41.fail(tsplus_module_5.nothing(fileName_1 + \":2746:60\"), fileName_1 + \":2746:52\"), fileName_1 + \":2746:42\")(queue0)));\n return tsplus_module_1.asUnit(tsplus_module_18.runScoped(tsplus_module_12.drain((tsplus_module_12.pipeTo(writer)(self.channel)))), fileName_1 + \":2749:55\");\n }, fileName_1 + \":2741:20\");\n };\n}\n/**\n * Like `Stream#into`, but provides the result as a `Managed` to allow for scope\n * composition.\n *\n * @tsplus pipeable fncts.io.Stream runIntoQueueScoped\n */\nfunction runIntoQueueScoped_1(queue, __tsplusTrace) {\n return (stream) => {\n const writer = tsplus_module_12.readWithCause((inp) => tsplus_module_13.zipRight(writer)(tsplus_module_12.writeNow(tsplus_module_29.chunk(inp))), (cause) => tsplus_module_12.writeNow(tsplus_module_29.failCause(cause)), (_) => tsplus_module_12.writeNow(tsplus_module_29.end));\n return tsplus_module_1.asUnit(tsplus_module_18.runScoped(tsplus_module_12.drain(tsplus_module_12.mapOutIO((take) => tsplus_module_30.offer(take, __tsplusTrace)(queue))(tsplus_module_12.pipeTo(writer)(stream.channel)))), __tsplusTrace);\n };\n}\n/**\n * Runs the sink on the stream to produce either the sink's result or an error.\n *\n * @tsplus pipeable fncts.io.Stream runScoped\n */\nfunction runScoped_1(sink, __tsplusTrace) {\n return (stream) => {\n return tsplus_module_18.runScoped(tsplus_module_12.drain(tsplus_module_12.pipeToOrFail(sink.channel)(stream.channel)));\n };\n}\n/**\n * Statefully maps over the elements of this stream to produce all intermediate results\n * of type `B` given an initial B.\n *\n * @tsplus pipeable fncts.io.Stream scan\n */\nexport function scan(b, f, __tsplusTrace) {\n return (sa) => {\n return scanIO_1(b, (b, a) => tsplus_module_1.succeedNow(f(b, a), __tsplusTrace), __tsplusTrace)(sa);\n };\n}\n/**\n * Statefully and effectfully maps over the elements of this stream to produce all\n * intermediate results of type `B` given an initial B.\n *\n * @tsplus pipeable fncts.io.Stream scanIO\n */\nfunction scanIO_1(b, f, __tsplusTrace) {\n return (sa) => {\n return concat_1(mapAccumIO_1(b, (b, a) => tsplus_module_1.map((b) => [b, b], __tsplusTrace)(f(b, a)), __tsplusTrace)(sa), __tsplusTrace)(succeedNow_1(b, __tsplusTrace));\n };\n}\n/**\n * Statefully maps over the elements of this stream to produce all\n * intermediate results.\n *\n * @tsplus pipeable fncts.io.Stream scanReduce\n */\nexport function scanReduce(f, __tsplusTrace) {\n return (fa) => {\n return scanReduceIO_1((b, a) => tsplus_module_1.succeedNow(f(b, a), __tsplusTrace), __tsplusTrace)(fa);\n };\n}\n/**\n * Statefully and effectfully maps over the elements of this stream to produce\n * all intermediate results.\n *\n * @tsplus pipeable fncts.io.Stream scanReduceIO\n */\nfunction scanReduceIO_1(f, __tsplusTrace) {\n return (fa) => {\n return mapAccumIO_1(tsplus_module_5.nothing(__tsplusTrace), (s, a) => tsplus_module_22.match(() => tsplus_module_1.succeedNow([a, tsplus_module_5.just(a, __tsplusTrace)], __tsplusTrace), (b) => tsplus_module_1.map((b) => [b, tsplus_module_5.just(b, __tsplusTrace)], __tsplusTrace)(f(b, a)))(s), __tsplusTrace)(fa);\n };\n}\n/**\n * Creates a single-valued stream from a managed resource\n *\n * @tsplus static fncts.io.StreamOps scoped\n */\nfunction scoped_1(stream, __tsplusTrace) {\n return new Stream(tsplus_module_12.scoped(() => tsplus_module_1.map(tsplus_module_21.single, __tsplusTrace)(stream())));\n}\n/**\n * Emits a sliding window of n elements.\n *\n * @tsplus pipeable fncts.io.Stream sliding\n */\nexport function sliding(chunkSize, stepSize, __tsplusTrace) {\n return (self) => {\n return defer_1(() => {\n function slidingChunk(chunk, input) {\n const updatedChunk = tsplus_module_14.concat(input)(chunk);\n const length = updatedChunk.length;\n if (length >= chunkSize) {\n const array = new Array((length - chunkSize) / stepSize + 1);\n let arrayIndex = 0;\n let chunkIndex = 0;\n while (chunkIndex + chunkSize <= length) {\n array[arrayIndex] = tsplus_module_14.slice(chunkIndex, chunkIndex + chunkSize)(updatedChunk);\n arrayIndex += 1;\n chunkIndex += stepSize;\n }\n return [tsplus_module_14.drop(chunkIndex)(updatedChunk), tsplus_module_63.fromArray(array)];\n }\n else {\n return [updatedChunk, tsplus_module_9.empty()];\n }\n }\n function sliding(chunk, written) {\n return tsplus_module_12.readWithCause((input) => {\n const [updatedChunk, out] = slidingChunk(chunk, input);\n if (tsplus_module_14.isEmpty(out)) {\n return sliding(updatedChunk, written);\n }\n else {\n return tsplus_module_13.zipRight(sliding(updatedChunk, true))(tsplus_module_12.writeNow(out));\n }\n }, (err) => {\n const index = written && chunkSize > stepSize ? chunkSize - stepSize : 0;\n if (index >= chunk.length) {\n return tsplus_module_13.failCauseNow(err);\n }\n else {\n return tsplus_module_13.zipRight(tsplus_module_13.failCauseNow(err))(tsplus_module_12.writeNow(tsplus_module_21.single(chunk)));\n }\n }, (done) => {\n const index = written && chunkSize > stepSize ? chunkSize - stepSize : 0;\n if (index >= chunk.length) {\n return tsplus_module_13.succeedNow(done);\n }\n else {\n return tsplus_module_13.zipRight(tsplus_module_13.succeedNow(done))(tsplus_module_12.writeNow(tsplus_module_21.single(chunk)));\n }\n });\n }\n return new Stream(tsplus_module_12.pipeTo(sliding(tsplus_module_9.empty(), false))(self.channel));\n });\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream split\n */\nexport function split(predicate, __tsplusTrace) {\n return (self) => {\n function split(leftovers, input) {\n const [chunk, remaining] = tsplus_module_14.splitWhere(predicate)(tsplus_module_14.concat(input)(leftovers));\n if (tsplus_module_14.isEmpty(chunk) || tsplus_module_14.isEmpty(remaining)) {\n return loop(tsplus_module_14.concat(tsplus_module_14.drop(1)(remaining))(chunk));\n }\n else {\n return tsplus_module_13.zipRight(split(tsplus_module_9.empty(), tsplus_module_14.drop(1)(remaining)))(tsplus_module_12.writeNow(tsplus_module_21.single(chunk)));\n }\n }\n function loop(leftovers) {\n return tsplus_module_12.readWith((input) => split(leftovers, input), tsplus_module_12.failNow, (_) => {\n if (tsplus_module_14.isEmpty(leftovers)) {\n return tsplus_module_12.unit;\n }\n else if (tsplus_module_64.isNothing(tsplus_module_14.find(predicate)(leftovers))) {\n return tsplus_module_13.zipRight(tsplus_module_12.unit)(tsplus_module_12.writeNow(tsplus_module_21.single(leftovers)));\n }\n else {\n return tsplus_module_13.zipRight(tsplus_module_12.unit)(split(tsplus_module_9.empty(), leftovers));\n }\n });\n }\n return new Stream(tsplus_module_12.pipeTo(loop(tsplus_module_9.empty()))(self.channel));\n };\n}\n/**\n * Creates a single-valued pure stream\n *\n * @tsplus static fncts.io.StreamOps succeed\n */\nexport function succeed(a, __tsplusTrace) {\n return fromChunk_1(() => tsplus_module_21.single(a()), __tsplusTrace);\n}\n/**\n * Creates a single-valued pure stream\n *\n * @tsplus static fncts.io.StreamOps succeedNow\n */\nfunction succeedNow_1(o, __tsplusTrace) {\n return fromChunkNow_1(tsplus_module_21.single(o), __tsplusTrace);\n}\n/**\n * Takes the specified number of elements from this stream.\n *\n * @tsplus pipeable fncts.io.Stream take\n */\nexport function take(n, __tsplusTrace) {\n return (stream) => {\n if (n <= 0) {\n return empty_1;\n }\n if (!Number.isInteger(n)) {\n return halt_1(() => new tsplus_module_65.IllegalArgumentError(`${n} should be an integer`, \"Stream.take\"), __tsplusTrace);\n }\n return new Stream(tsplus_module_12.pipeTo(takeLoop(n, __tsplusTrace))(stream.channel));\n };\n}\nfunction takeLoop(n, __tsplusTrace) {\n return tsplus_module_12.readWithCause((inp) => {\n const taken = tsplus_module_14.take(n)(inp);\n const left = Math.max(n - taken.length, 0);\n if (left > 0) {\n return tsplus_module_13.zipRight(takeLoop(left, __tsplusTrace))(tsplus_module_12.writeNow(taken));\n }\n else {\n return tsplus_module_12.writeNow(taken);\n }\n }, tsplus_module_13.failCauseNow, tsplus_module_13.endNow);\n}\n/**\n * Takes all elements of the stream until the specified predicate evaluates\n * to `true`.\n *\n * @tsplus pipeable fncts.io.Stream takeUntil\n */\nexport function takeUntil(p, __tsplusTrace) {\n return (fa) => {\n return new Stream(tsplus_module_12.pipeTo(takeUntilLoop(p, __tsplusTrace))(fa.channel));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream takeUntilIO\n */\nexport function takeUntilIO(f, __tsplusTrace) {\n return (ma) => {\n return new Stream(tsplus_module_12.pipeTo(takeUntilIOLoop(tsplus_module_40.empty()[Symbol.iterator](), f, __tsplusTrace))(ma.channel));\n };\n}\nfunction takeUntilIOLoop(iterator, f, __tsplusTrace) {\n const next = iterator.next();\n if (next.done) {\n return tsplus_module_12.readWithCause((elem) => takeUntilIOLoop(elem[Symbol.iterator](), f, __tsplusTrace), tsplus_module_13.failCauseNow, tsplus_module_13.succeedNow);\n }\n else {\n return tsplus_module_12.unwrap(() => tsplus_module_1.map((b) => b\n ? tsplus_module_12.writeNow(tsplus_module_21.single(next.value))\n : tsplus_module_13.zipRight(takeUntilIOLoop(iterator, f, __tsplusTrace))(tsplus_module_12.writeNow(tsplus_module_21.single(next.value))), __tsplusTrace)(f(next.value)));\n }\n}\nfunction takeUntilLoop(p, __tsplusTrace) {\n return tsplus_module_12.readWith((chunk) => {\n const taken = tsplus_module_14.takeWhile(tsplus_module_47.invert(p))(chunk);\n const last = tsplus_module_14.take(1)(tsplus_module_14.drop(taken.length)(chunk));\n if (tsplus_module_14.isEmpty(last)) {\n return tsplus_module_13.zipRight(takeUntilLoop(p, __tsplusTrace))(tsplus_module_12.writeNow(taken));\n }\n else {\n return tsplus_module_12.writeNow(tsplus_module_14.concat(last)(taken));\n }\n }, tsplus_module_12.failNow, tsplus_module_13.succeedNow);\n}\n/**\n * @tsplus pipeable fncts.io.Stream tap\n */\nfunction tap_1(f, __tsplusTrace) {\n return (ma) => {\n return mapIO_1((a) => tsplus_module_1.as(() => a, __tsplusTrace)(f(a)), __tsplusTrace)(ma);\n };\n}\n/**\n * Returns a stream that effectfully \"peeks\" at the failure and adds an effect\n * to consumption of every element of the stream\n *\n * @tsplus pipeable fncts.io.Stream tapBoth\n */\nexport function tapBoth(f, g, __tsplusTrace) {\n return (self) => {\n return tap_1(g, __tsplusTrace)(tapError_1(f, __tsplusTrace)(self));\n };\n}\n/**\n * Returns a stream that effectfully \"peeks\" at the failure of the stream.\n *\n * @tsplus pipeable fncts.io.Stream tapError\n */\nfunction tapError_1(f, __tsplusTrace) {\n return (self) => {\n return catchAll_1((e) => fromIO_1(f(e), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * Returns a stream that effectfully \"peeks\" at the cause of failure of the\n * stream.\n *\n * @tsplus pipeable fncts.io.Stream tapErrorCause\n */\nexport function tapErrorCause(f, __tsplusTrace) {\n return (self) => {\n return catchAllCause_1((e) => fromIO_1(tsplus_module_1.zipRight(tsplus_module_1.refailCause(() => e, __tsplusTrace), __tsplusTrace)(f(e)), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * Sends all elements emitted by this stream to the specified sink in addition\n * to emitting them.\n *\n * @tsplus pipeable fncts.io.Stream tapSink\n */\nexport function tapSink(sink, __tsplusTrace) {\n return (self) => {\n return flatMap_1(([queue, future]) => {\n const right = flattenTake_1(fromQueue_1(queue, 1, __tsplusTrace), __tsplusTrace);\n const loop = tsplus_module_12.readWithCause((chunk) => tsplus_module_13.zipRight(loop)(tsplus_module_13.zipRight(tsplus_module_12.writeNow(chunk))(tsplus_module_12.fromIO(() => tsplus_module_30.offer(tsplus_module_29.chunk(chunk), __tsplusTrace)(queue)))), (cause) => tsplus_module_12.fromIO(() => tsplus_module_30.offer(tsplus_module_29.failCause(cause), __tsplusTrace)(queue)), () => tsplus_module_12.fromIO(() => tsplus_module_30.offer(tsplus_module_29.end, __tsplusTrace)(queue)));\n return merge_1(execute_1(tsplus_module_66.ensuring(tsplus_module_37.succeed_(undefined, __tsplusTrace)(future), __tsplusTrace)(run_1(sink, __tsplusTrace)(right)), __tsplusTrace), \"Both\", __tsplusTrace)(new Stream(tsplus_module_12.ensuring(tsplus_module_1.zipRight(tsplus_module_37.wait(future, __tsplusTrace), __tsplusTrace)(tsplus_module_26.forkDaemon(tsplus_module_30.offer(tsplus_module_29.end, __tsplusTrace)(queue), __tsplusTrace)))((tsplus_module_12.pipeTo(loop)(self.channel)))));\n }, __tsplusTrace)(fromIO_1(tsplus_module_1.zip(tsplus_module_38.make(__tsplusTrace), __tsplusTrace)(tsplus_module_32.makeBounded(1, __tsplusTrace)), __tsplusTrace));\n };\n}\n/**\n * Throttles the chunks of this stream according to the given bandwidth parameters using the token bucket\n * algorithm. Allows for burst in the processing of elements by allowing the token bucket to accumulate\n * tokens up to a `units + burst` threshold. Chunks that do not meet the bandwidth constraints are dropped.\n * The weight of each chunk is determined by the `costFn` function.\n *\n * @tsplus pipeable fncts.io.Stream throttleEnforce\n */\nexport function throttleEnforce(costFn, units, duration, burst = 0, __tsplusTrace) {\n return (sa) => {\n return throttleEnforceIO_1((chunk) => tsplus_module_1.succeedNow(costFn(chunk), __tsplusTrace), units, duration, burst, __tsplusTrace)(sa);\n };\n}\n/**\n * Throttles the chunks of this stream according to the given bandwidth parameters using the token bucket\n * algorithm. Allows for burst in the processing of elements by allowing the token bucket to accumulate\n * tokens up to a `units + burst` threshold. Chunks that do not meet the bandwidth constraints are dropped.\n * The weight of each chunk is determined by the `costFn` effectful function.\n *\n * @tsplus pipeable fncts.io.Stream throttleEnforceIO\n */\nfunction throttleEnforceIO_1(costFn, units, duration, burst = 0, __tsplusTrace) {\n return (sa) => {\n return new Stream(tsplus_module_13.flatMap((current) => tsplus_module_12.pipeTo(throttleEnforceIOLoop(costFn, units, duration, burst, units, current, __tsplusTrace))(sa.channel))(tsplus_module_12.fromIO(() => tsplus_module_43.currentTime)));\n };\n}\nfunction throttleEnforceIOLoop(costFn, units, duration, burst, tokens, timestamp, __tsplusTrace) {\n return tsplus_module_12.readWith((inp) => tsplus_module_12.unwrap(() => tsplus_module_1.zipWith(tsplus_module_43.currentTime, (weight, current) => {\n const elapsed = current - timestamp;\n const cycles = elapsed / duration;\n const available = (() => {\n const sum = tokens + cycles * units;\n const max = units + burst < 0 ? Number.MAX_SAFE_INTEGER : units + burst;\n return sum < 0 ? max : Math.min(sum, max);\n })();\n return weight <= available\n ? tsplus_module_13.zipRight(throttleEnforceIOLoop(costFn, units, duration, burst, available - weight, current, __tsplusTrace))(tsplus_module_12.writeNow(inp))\n : throttleEnforceIOLoop(costFn, units, duration, burst, available - weight, current, __tsplusTrace);\n }, __tsplusTrace)(costFn(inp))), tsplus_module_12.failNow, () => tsplus_module_12.unit);\n}\n/**\n * Converts the stream to a managed hub of chunks. After the managed hub is used,\n * the hub will never again produce values and should be discarded.\n *\n * @tsplus pipeable fncts.io.Stream toHub\n */\nfunction toHub_1(capacity, __tsplusTrace) {\n return (stream) => {\n return tsplus_module_1.flatMap(hub => tsplus_module_1.map(() => hub, __tsplusTrace)(tsplus_module_33.fork(runIntoHubScoped_1(hub, __tsplusTrace)(stream), __tsplusTrace)), __tsplusTrace)(tsplus_module_2.acquireRelease(() => tsplus_module_34.makeBounded(capacity, __tsplusTrace), (_) => tsplus_module_34.shutdown(_, __tsplusTrace), __tsplusTrace));\n };\n}\n/**\n * Interpret the stream as a managed pull\n *\n * @tsplus getter fncts.io.Stream toPull\n */\nfunction toPull_1(stream, __tsplusTrace) {\n return tsplus_module_1.map((io) => tsplus_module_1.flatMap((r) => tsplus_module_6.match(() => tsplus_module_1.failNow(tsplus_module_5.nothing(__tsplusTrace), __tsplusTrace), tsplus_module_1.succeedNow)(r), __tsplusTrace)(tsplus_module_1.mapError(tsplus_module_5.just, __tsplusTrace)(io)), __tsplusTrace)(tsplus_module_67.toPull(stream.channel));\n}\n/**\n * Converts the stream to a managed queue of chunks. After the managed queue is used,\n * the queue will never again produce values and should be discarded.\n *\n * @tsplus pipeable fncts.io.Stream toQueue\n */\nfunction toQueue_1(capacity = 2, __tsplusTrace) {\n return (stream) => {\n return tsplus_module_1.flatMap(queue => tsplus_module_1.map(() => queue, __tsplusTrace)(tsplus_module_33.fork(runIntoQueueScoped_1(queue, __tsplusTrace)(stream), __tsplusTrace)), __tsplusTrace)(tsplus_module_2.acquireRelease(() => tsplus_module_32.makeBounded(capacity, __tsplusTrace), (_) => tsplus_module_30.shutdown(_, __tsplusTrace), __tsplusTrace));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream toQueueDropping\n */\nexport function toQueueDropping(capacity = 2, __tsplusTrace) {\n return (stream) => {\n return tsplus_module_1.flatMap(queue => tsplus_module_1.map(() => queue, __tsplusTrace)(tsplus_module_33.fork(runIntoQueueScoped_1(queue, __tsplusTrace)(stream), __tsplusTrace)), __tsplusTrace)(tsplus_module_2.acquireRelease(() => tsplus_module_32.makeDropping(capacity, __tsplusTrace), (_) => tsplus_module_30.shutdown(_, __tsplusTrace), __tsplusTrace));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream toQueueOfElements\n */\nfunction toQueueOfElements_1(capacity = 2, __tsplusTrace) {\n return (stream) => {\n return tsplus_module_1.flatMap(queue => tsplus_module_1.map(() => queue, __tsplusTrace)(tsplus_module_19.forkScoped(runIntoQueueElementsScoped_1(() => queue)(stream), __tsplusTrace)), __tsplusTrace)(tsplus_module_2.acquireRelease(() => tsplus_module_32.makeBounded(capacity, __tsplusTrace), (_) => tsplus_module_30.shutdown(_, __tsplusTrace), __tsplusTrace));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream toQueueSliding\n */\nexport function toQueueSliding(capacity = 2, __tsplusTrace) {\n return (stream) => {\n return tsplus_module_1.flatMap(queue => tsplus_module_1.map(() => queue, __tsplusTrace)(tsplus_module_33.fork(runIntoQueueScoped_1(queue, __tsplusTrace)(stream), __tsplusTrace)), __tsplusTrace)(tsplus_module_2.acquireRelease(() => tsplus_module_32.makeSliding(capacity, __tsplusTrace), (_) => tsplus_module_30.shutdown(_, __tsplusTrace), __tsplusTrace));\n };\n}\n/**\n * Converts the stream into an unbounded managed queue. After the managed queue\n * is used, the queue will never again produce values and should be discarded.\n *\n * @tsplus getter fncts.io.Stream toQueueUnbounded\n */\nfunction toQueueUnbounded_1(stream, __tsplusTrace) {\n return tsplus_module_1.flatMap(queue => tsplus_module_1.map(() => queue, __tsplusTrace)(tsplus_module_33.fork(runIntoQueueScoped_1(queue, __tsplusTrace)(stream), __tsplusTrace)), __tsplusTrace)(tsplus_module_2.acquireRelease(() => tsplus_module_32.makeUnbounded(__tsplusTrace), (_) => tsplus_module_30.shutdown(_, __tsplusTrace), __tsplusTrace));\n}\n/**\n * @tsplus getter fncts.io.Stream toReadableStream\n */\nexport function toReadableStream(self, __tsplusTrace) {\n let pull;\n let scope;\n return new ReadableStream({\n start(controller) {\n scope = tsplus_module_36.getOrThrow(tsplus_module_31.unsafeRun(tsplus_module_68.make));\n pull = tsplus_module_1.asUnit(tsplus_module_1.catchAll((error) => tsplus_module_22.match(() => tsplus_module_1.succeed(() => controller.close(), __tsplusTrace), (error) => tsplus_module_1.succeed(() => controller.error(error), __tsplusTrace))(error), __tsplusTrace)(tsplus_module_1.tapErrorCause(() => scope.close(() => tsplus_module_41.unit), __tsplusTrace)(tsplus_module_1.tap((chunk) => tsplus_module_1.succeed(() => tsplus_module_14.forEach((a) => {\n controller.enqueue(a);\n })(chunk), __tsplusTrace), __tsplusTrace)(tsplus_module_36.getOrThrow(tsplus_module_31.unsafeRun(tsplus_module_69.provideScope(scope)(toPull_1(self, __tsplusTrace))))))), __tsplusTrace);\n },\n pull() {\n return tsplus_module_31.unsafeRunPromise(pull, __tsplusTrace);\n },\n cancel() {\n return tsplus_module_31.unsafeRunPromise(scope.close(() => tsplus_module_41.unit), __tsplusTrace);\n },\n });\n}\n/**\n * @tsplus static fncts.io.StreamOps unfold\n */\nexport function unfold(s, f, __tsplusTrace) {\n return unfoldChunk_1(s, (s) => tsplus_module_39.map(([a, s]) => tuple(tsplus_module_21.single(a), s))(f(s)), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.StreamOps unfoldChunk\n */\nfunction unfoldChunk_1(s, f, __tsplusTrace) {\n return new Stream(tsplus_module_12.defer(() => unfoldChunkLoop(s, f, __tsplusTrace)));\n}\n/**\n * Creates a stream by effectfully peeling off the \"layers\" of a value of type `S`\n *\n * @tsplus static fncts.io.StreamOps unfoldChunkIO\n */\nfunction unfoldChunkIO_1(s, f, __tsplusTrace) {\n return new Stream(unfoldChunkIOLoop(s, f, __tsplusTrace));\n}\nfunction unfoldChunkIOLoop(s, f, __tsplusTrace) {\n return tsplus_module_12.unwrap(() => tsplus_module_1.map((m) => tsplus_module_22.match(() => tsplus_module_12.unit, ([as, s]) => tsplus_module_13.flatMap(() => unfoldChunkIOLoop(s, f, __tsplusTrace))(tsplus_module_12.writeNow(as)))(m), __tsplusTrace)(f(s)));\n}\nfunction unfoldChunkLoop(s, f, __tsplusTrace) {\n return tsplus_module_22.match(() => tsplus_module_12.unit, ([as, s]) => tsplus_module_13.flatMap(() => unfoldChunkLoop(s, f, __tsplusTrace))(tsplus_module_12.writeNow(as)))(f(s));\n}\n/**\n * Creates a stream by effectfully peeling off the \"layers\" of a value of type `S`\n *\n * @tsplus static fncts.io.StreamOps unfoldIO\n */\nfunction unfoldIO_1(s, f, __tsplusTrace) {\n return unfoldChunkIO_1(s, (_) => tsplus_module_1.map((m) => tsplus_module_39.map(([a, s]) => tuple(tsplus_module_21.single(a), s))(m), __tsplusTrace)(f(_)), __tsplusTrace);\n}\n/**\n * Creates a stream produced from an IO\n *\n * @tsplus static fncts.io.StreamOps unwrap\n */\nfunction unwrap_1(stream, __tsplusTrace) {\n return flatten_1(fromIO_1(stream, __tsplusTrace), __tsplusTrace);\n}\n/**\n * Creates a stream produced from a managed\n *\n * @tsplus static fncts.io.StreamOps unwrapScoped\n */\nfunction unwrapScoped_1(stream, __tsplusTrace) {\n return flatten_1(scoped_1(() => stream, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus getter fncts.io.Stream zipWithIndex\n */\nexport function zipWithIndex_(self, __tsplusTrace) {\n return mapAccum_1(0, (index, a) => [index + 1, [a, index]], __tsplusTrace)(self);\n}\n/**\n * Zips the two streams so that when a value is emitted by either of the two\n * streams, it is combined with the latest value from the other stream to\n * produce a result.\n *\n * Note: tracking the latest value is done on a per-chunk basis. That means\n * that emitted elements that are not the last value in chunks will never be\n * used for zipping.\n *\n * @tsplus pipeable fncts.io.Stream zipWithLatest\n */\nexport function zipWithLatest(fb, f, __tsplusTrace) {\n return (fa) => {\n function pullNonEmpty(pull, __tsplusTrace) {\n return tsplus_module_1.flatMap((chunk) => (tsplus_module_14.isNonEmpty(chunk) ? pullNonEmpty(pull, __tsplusTrace) : tsplus_module_1.succeedNow(chunk, __tsplusTrace)), __tsplusTrace)(pull);\n }\n return fromPull_1(tsplus_module_1.flatMap(left => tsplus_module_1.flatMap(right => toPull_1(flatMap_1(([l, r, leftFirst]) => flatMap_1((latest) => concat_1(flatMap_1(fromChunkNow_1, __tsplusTrace)(mapIO_1((ab) => tsplus_module_6.match((leftChunk) => tsplus_module_17.modify(([_, rightLatest]) => tuple(tsplus_module_14.map((a) => f(a, rightLatest))(leftChunk), tuple(tsplus_module_14.unsafeGet(leftChunk.length - 1)(leftChunk), rightLatest)), __tsplusTrace)(latest), (rightChunk) => tsplus_module_17.modify(([leftLatest, _]) => tuple(tsplus_module_14.map((b) => f(leftLatest, b))(rightChunk), tuple(leftLatest, tsplus_module_14.unsafeGet(rightChunk.length - 1)(rightChunk))), __tsplusTrace)(latest))(ab), __tsplusTrace)(mergeEither_1(repeatIOMaybe_1(right, __tsplusTrace), __tsplusTrace)(repeatIOMaybe_1(left, __tsplusTrace)))), __tsplusTrace)(fromChunk_1(() => leftFirst\n ? tsplus_module_14.map((b) => f(tsplus_module_14.unsafeGet(l.length - 1)(l), b))(r)\n : tsplus_module_14.map((a) => f(a, tsplus_module_14.unsafeGet(r.length - 1)(r)))(l), __tsplusTrace)), __tsplusTrace)(fromIO_1(tsplus_module_8.make(() => tuple(tsplus_module_14.unsafeGet(l.length - 1)(l), tsplus_module_14.unsafeGet(r.length - 1)(r)), __tsplusTrace), __tsplusTrace)), __tsplusTrace)(fromIOMaybe_1(tsplus_module_28.raceWith(() => right, (leftDone, rightFiber) => tsplus_module_1.zipWith(tsplus_module_24.join(rightFiber, __tsplusTrace), (l, r) => tuple(l, r, true), __tsplusTrace)(tsplus_module_1.fromExitNow(leftDone, __tsplusTrace)), (rightDone, leftFiber) => tsplus_module_1.zipWith(tsplus_module_24.join(leftFiber, __tsplusTrace), (r, l) => tuple(l, r, false), __tsplusTrace)(tsplus_module_1.fromExitNow(rightDone, __tsplusTrace)), __tsplusTrace)(left), __tsplusTrace)), __tsplusTrace), __tsplusTrace)(tsplus_module_1.map(pullNonEmpty, __tsplusTrace)(toPull_1(fb, __tsplusTrace))), __tsplusTrace)(tsplus_module_1.map(pullNonEmpty, __tsplusTrace)(toPull_1(fa, __tsplusTrace))), __tsplusTrace);\n };\n}\n//# sourceMappingURL=api.js.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,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,CAAC,EAAE,CAAC,EAAE,cAAc,EAAE,cAAc,CAAC,EAAE,cAAc,CAAC,cAAcU,0BAAiB,eAAe,QAAQ,UAAU,eAAezB,iBAAgB,QAAQ0B,yBAAiB,KAAK,YAAY,cAAc,GAAG,GAAG,OAAA,GAAA,0BAAA,OAAY,GAAG,GAAG,KAAK,EAAE,cAAc,CAAC1B,iBAAgB,YAAY,UAAU,cAAc,CAAC,GAAG,WAAW,cAAcA,iBAAgB,QAAQ0B,yBAAiB,KAAK,WAAW,cAAc,GAAG,GAAG,OAAA,GAAA,0BAAA,OAAY,GAAG,GAAG,MAAM,EAAE,cAAc,CAAC1B,iBAAgB,YAAY,WAAW,cAAc,CAAC,EAAE,cAAc,CAAC,KAAK,EAAE,cAAc,CAAC,EAAE,cAAc,EAAE,cAAc,CAACA,iBAAgB,IAAI,cAAc,cAAc,CAAC,SAAS,IAAI,cAAc,CAAC,CAAC,EAAE,cAAc,CAACA,iBAAgB,IAAI,cAAc,cAAc,CAAC,SAAS,IAAI,cAAc,CAAC,CAAC,EAAE,cAAc"}
|
|
1
|
+
{"version":3,"file":"api.cjs","names":["tsplus_module_1","tsplus_module_2","tsplus_module_3","tsplus_module_4","tsplus_module_6","tsplus_module_5","tsplus_module_11","tsplus_module_7","tsplus_module_8","ScheduleEnd","tsplus_module_9","tsplus_module_10","tsplus_module_12","tsplus_module_13","UpstreamEnd","tsplus_module_14","tsplus_module_15","tsplus_module_16","tsplus_module_17","tsplus_module_19","tsplus_module_18","tsplus_module_23","tsplus_module_22","tsplus_module_21","tsplus_module_20","tsplus_module_28","tsplus_module_24","tsplus_module_25","tsplus_module_26","tsplus_module_27","Stream","tsplus_module_29","tsplus_module_30","tsplus_module_31","tsplus_module_32","tsplus_module_33","tsplus_module_35","tsplus_module_34","tsplus_module_36","tsplus_module_39","tsplus_module_40","tuple","tsplus_module_41","tsplus_module_44","tsplus_module_42","tsplus_module_43","tsplus_module_45","tsplus_module_37","tsplus_module_38","tsplus_module_46","tsplus_module_47","tsplus_module_48","tsplus_module_49","tsplus_module_50","tsplus_module_51","identity","tsplus_module_52","DEFAULT_CHUNK_SIZE","tsplus_module_53","tsplus_module_54","tsplus_module_55","tsplus_module_56","tsplus_module_57","tsplus_module_58","tsplus_module_59","tsplus_module_60","tsplus_module_61","tsplus_module_62","tsplus_module_63","tsplus_module_64","tsplus_module_65","tsplus_module_66","tsplus_module_67","tsplus_module_68","tsplus_module_69"],"sources":["../../esm/Stream/api.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/Stream/api.ts\";\nimport * as tsplus_module_1 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_2 from \"@fncts/io/IO/api/acquireRelease\";\nimport * as tsplus_module_3 from \"@fncts/io/IO/api/acquireReleaseExit\";\nimport * as tsplus_module_4 from \"@fncts/io/Schedule/api\";\nimport * as tsplus_module_5 from \"@fncts/base/data/Maybe/constructors\";\nimport * as tsplus_module_6 from \"@fncts/base/data/Either/destructors\";\nimport * as tsplus_module_7 from \"@fncts/io/Stream/internal/Handoff\";\nimport * as tsplus_module_8 from \"@fncts/io/Ref/constructors\";\nimport * as tsplus_module_9 from \"@fncts/base/collection/immutable/Conc/api/empty\";\nimport * as tsplus_module_10 from \"@fncts/io/Schedule/api/driver\";\nimport * as tsplus_module_11 from \"@fncts/io/IO/api/all\";\nimport * as tsplus_module_12 from \"@fncts/io/Channel/api\";\nimport * as tsplus_module_13 from \"@fncts/io/Channel/core-api\";\nimport * as tsplus_module_14 from \"@fncts/base/collection/immutable/Conc/api\";\nimport * as tsplus_module_15 from \"@fncts/io/Ref/api/set\";\nimport * as tsplus_module_16 from \"@fncts/io/Ref/api/get\";\nimport * as tsplus_module_17 from \"@fncts/io/Ref/api/modify\";\nimport * as tsplus_module_18 from \"@fncts/io/Channel/api/runScoped\";\nimport * as tsplus_module_19 from \"@fncts/io/IO/api/forkScoped\";\nimport * as tsplus_module_20 from \"@fncts/base/data/Either/constructors\";\nimport * as tsplus_module_21 from \"@fncts/base/collection/immutable/Conc/constructors\";\nimport * as tsplus_module_22 from \"@fncts/base/data/Maybe/destructors\";\nimport * as tsplus_module_23 from \"@fncts/io/Stream/internal/SinkEndReason\";\nimport * as tsplus_module_24 from \"@fncts/io/Fiber/api/join\";\nimport * as tsplus_module_25 from \"@fncts/io/Fiber/api/interrupt\";\nimport * as tsplus_module_26 from \"@fncts/io/IO/api/forkDaemon\";\nimport * as tsplus_module_27 from \"@fncts/base/data/Cause/api\";\nimport * as tsplus_module_28 from \"@fncts/io/IO/api/raceWith\";\nimport * as tsplus_module_29 from \"@fncts/io/Stream/internal/Take\";\nimport * as tsplus_module_30 from \"@fncts/io/Queue/api/operations\";\nimport * as tsplus_module_31 from \"@fncts/io/IO/runtime\";\nimport * as tsplus_module_32 from \"@fncts/io/Queue/constructors\";\nimport * as tsplus_module_33 from \"@fncts/io/IO/api/fork\";\nimport * as tsplus_module_34 from \"@fncts/io/Hub/api\";\nimport * as tsplus_module_35 from \"@fncts/base/collection/immutable/Conc/api/replicate\";\nimport * as tsplus_module_36 from \"@fncts/base/data/Exit/api\";\nimport * as tsplus_module_37 from \"@fncts/io/Future/api\";\nimport * as tsplus_module_38 from \"@fncts/io/Future/constructors\";\nimport * as tsplus_module_39 from \"@fncts/base/data/Maybe/api\";\nimport * as tsplus_module_40 from \"@fncts/base/collection/Iterable/constructors\";\nimport * as tsplus_module_41 from \"@fncts/base/data/Exit/constructors\";\nimport * as tsplus_module_42 from \"@fncts/io/Stream/internal/DebounceState\";\nimport * as tsplus_module_43 from \"@fncts/io/Clock/api\";\nimport * as tsplus_module_44 from \"@fncts/io/IO/api/transplant\";\nimport * as tsplus_module_45 from \"@fncts/base/collection/immutable/HashMap/api\";\nimport * as tsplus_module_46 from \"@fncts/io/Semaphore/constructors\";\nimport * as tsplus_module_47 from \"@fncts/base/data/Predicate/api\";\nimport * as tsplus_module_48 from \"@fncts/io/Sink/api\";\nimport * as tsplus_module_49 from \"@fncts/io/Fiber/api/poll\";\nimport * as tsplus_module_50 from \"@fncts/io/IO/api/environment\";\nimport * as tsplus_module_51 from \"@fncts/io/collection/immutable/Conc/findIO\";\nimport * as tsplus_module_52 from \"@fncts/base/data/Exit/definition\";\nimport * as tsplus_module_53 from \"@fncts/io/Stream/internal/Pull\";\nimport * as tsplus_module_54 from \"@fncts/io/Queue/api/takeBetween\";\nimport * as tsplus_module_55 from \"@fncts/io/Channel/api/interruptWhen\";\nimport * as tsplus_module_56 from \"@fncts/io/Channel/api/mapOutConcurrentIO\";\nimport * as tsplus_module_57 from \"@fncts/io/Channel/api/mergeMap\";\nimport * as tsplus_module_58 from \"@fncts/io/Channel/api/mergeWith\";\nimport * as tsplus_module_59 from \"@fncts/io/Channel/internal/MergeDecision\";\nimport * as tsplus_module_60 from \"@fncts/io/Layer/MemoMap\";\nimport * as tsplus_module_61 from \"@fncts/io/Layer/api\";\nimport * as tsplus_module_62 from \"@fncts/io/Channel/api/runDrain\";\nimport * as tsplus_module_63 from \"@fncts/base/collection/immutable/Conc/definition\";\nimport * as tsplus_module_64 from \"@fncts/base/data/Maybe/definition\";\nimport * as tsplus_module_65 from \"@fncts/base/data/exceptions\";\nimport * as tsplus_module_66 from \"@fncts/io/IO/api/interrupt\";\nimport * as tsplus_module_67 from \"@fncts/io/Channel/api/toPull\";\nimport * as tsplus_module_68 from \"@fncts/io/Scope/api\";\nimport * as tsplus_module_69 from \"@fncts/io/IO/api/provideScope\";\nexport const aggregateAsyncWithin = aggregateAsyncWithin_1;\nexport const aggregateAsyncWithinEither = aggregateAsyncWithinEither_1;\nexport const asyncInterrupt = asyncInterrupt_1;\nexport const asyncMaybe = asyncMaybe_1;\nexport const broadcastedQueues = broadcastedQueues_1;\nexport const broadcastedQueuesDynamic = broadcastedQueuesDynamic_1;\nexport const catchAll = catchAll_1;\nexport const catchAllCause = catchAllCause_1;\nexport const chunks = chunks_1;\nexport const concat = concat_1;\nexport const crossWith = crossWith_1;\nexport const defer = defer_1;\nexport const distributedWithDynamic = distributedWithDynamic_1;\nexport const drain = drain_1;\nexport const drop = drop_1;\nexport const dropWhile = dropWhile_1;\nexport const flatMap = flatMap_1;\nexport const zipRight = zipRight_1;\nexport const ensuring = ensuring_1;\nexport const environment = environment_1;\nexport const execute = execute_1;\nexport const failCauseNow = failCauseNow_1;\nexport const failNow = failNow_1;\nexport const filterMap = filterMap_1;\nexport const flatten = flatten_1;\nexport const flattenChunks = flattenChunks_1;\nexport const flattenExitOption = flattenExitOption_1;\nexport const flattenTake = flattenTake_1;\nexport const forever = forever_1;\nexport const fromChunk = fromChunk_1;\nexport const fromChunkNow = fromChunkNow_1;\nexport const fromIO = fromIO_1;\nexport const fromIOMaybe = fromIOMaybe_1;\nexport const fromPull = fromPull_1;\nexport const fromQueue = fromQueue_1;\nexport const fromQueueWithShutdown = fromQueueWithShutdown_1;\nexport const halt = halt_1;\nexport const interleaveWith = interleaveWith_1;\nexport const map = map_1;\nexport const mapAccum = mapAccum_1;\nexport const mapAccumIO = mapAccumIO_1;\nexport const mapChunks = mapChunks_1;\nexport const mapConcatChunk = mapConcatChunk_1;\nexport const mapError = mapError_1;\nexport const mapIO = mapIO_1;\nexport const merge = merge_1;\nexport const mergeEither = mergeEither_1;\nexport const mergeMap = mergeMap_1;\nexport const mergeWith = mergeWith_1;\nexport const orElse = orElse_1;\nexport const pipeThrough = pipeThrough_1;\nexport const pipeThroughChannelOrFail = pipeThroughChannelOrFail_1;\nexport const provideEnvironment = provideEnvironment_1;\nexport const provideLayer = provideLayer_1;\nexport const repeatIOChunkMaybe = repeatIOChunkMaybe_1;\nexport const repeatIOMaybe = repeatIOMaybe_1;\nexport const run = run_1;\nexport const runForeachScoped = runForeachScoped_1;\nexport const runIntoHubScoped = runIntoHubScoped_1;\nexport const runIntoQueueElementsScoped = runIntoQueueElementsScoped_1;\nexport const runIntoQueueScoped = runIntoQueueScoped_1;\nexport const runScoped = runScoped_1;\nexport const scanIO = scanIO_1;\nexport const scanReduceIO = scanReduceIO_1;\nexport const scoped = scoped_1;\nexport const succeedNow = succeedNow_1;\nexport const tap = tap_1;\nexport const tapError = tapError_1;\nexport const throttleEnforceIO = throttleEnforceIO_1;\nexport const toHub = toHub_1;\nexport const toPull = toPull_1;\nexport const toQueue = toQueue_1;\nexport const toQueueOfElements = toQueueOfElements_1;\nexport const toQueueUnbounded = toQueueUnbounded_1;\nexport const unfoldChunk = unfoldChunk_1;\nexport const unfoldChunkIO = unfoldChunkIO_1;\nexport const unfoldIO = unfoldIO_1;\nexport const unwrap = unwrap_1;\nexport const unwrapScoped = unwrapScoped_1;\nimport { identity, tuple } from \"@fncts/base/data/function\";\nimport { DEFAULT_CHUNK_SIZE, Stream } from \"./definition.js\";\nimport { Handoff } from \"./internal/Handoff.js\";\nimport { ScheduleEnd, UpstreamEnd } from \"./internal/SinkEndReason.js\";\n/**\n * Submerges the error case of an `Either` into the `Stream`.\n *\n * @tsplus getter fncts.io.Stream absolve\n */\nexport function absolve(self, __tsplusTrace) {\n return mapIO_1((either) => tsplus_module_1.fromEither(() => either, __tsplusTrace), __tsplusTrace)(self);\n}\n/**\n * Creates a stream from a single value that will get cleaned up after the\n * stream is consumed\n *\n * @tsplus static fncts.io.StreamOps acquireRelease\n */\nexport function acquireRelease(acquire, release, __tsplusTrace) {\n return scoped_1(() => tsplus_module_2.acquireRelease(() => acquire, release, __tsplusTrace), __tsplusTrace);\n}\n/**\n * Creates a stream from a single value that will get cleaned up after the\n * stream is consumed\n *\n * @tsplus static fncts.io.StreamOps acquireReleaseExit\n */\nexport function acquireReleaseExit(acquire, release, __tsplusTrace) {\n return scoped_1(() => tsplus_module_3.acquireReleaseExit(() => acquire, release, __tsplusTrace), __tsplusTrace);\n}\n/**\n * Aggregates elements of this stream using the provided sink for as long\n * as the downstream operators on the stream are busy.\n *\n * This operator divides the stream into two asynchronous \"islands\". Operators upstream\n * of this operator run on one fiber, while downstream operators run on another. Whenever\n * the downstream fiber is busy processing elements, the upstream fiber will feed elements\n * into the sink until it signals completion.\n *\n * Any sink can be used here, but see `Sink.foldWeightedM` and `Sink.foldUntilM` for\n * sinks that cover the common usecases.\n *\n * @tsplus pipeable fncts.io.Stream aggregateAsync\n */\nexport function aggregateAsync(sink, __tsplusTrace) {\n return (stream) => {\n return aggregateAsyncWithin_1(sink, tsplus_module_4.forever, __tsplusTrace)(stream);\n };\n}\n/**\n * Like `aggregateAsyncWithinEither`, but only returns the `Right` results.\n *\n * @tsplus pipeable fncts.io.Stream aggregateAsyncWithin\n */\nfunction aggregateAsyncWithin_1(sink, schedule, __tsplusTrace) {\n return (stream) => {\n return filterMap_1((cb) => tsplus_module_6.match(() => tsplus_module_5.nothing(__tsplusTrace), tsplus_module_5.just)(cb), __tsplusTrace)(aggregateAsyncWithinEither_1(sink, schedule, __tsplusTrace)(stream));\n };\n}\n/**\n * Aggregates elements using the provided sink until it completes, or until the\n * delay signalled by the schedule has passed.\n *\n * This operator divides the stream into two asynchronous islands. Operators upstream\n * of this operator run on one fiber, while downstream operators run on another. Elements\n * will be aggregated by the sink until the downstream fiber pulls the aggregated value,\n * or until the schedule's delay has passed.\n *\n * Aggregated elements will be fed into the schedule to determine the delays between\n * pulls.\n *\n * @tsplus pipeable fncts.io.Stream aggregateAsyncWithinEither\n */\nfunction aggregateAsyncWithinEither_1(sink, schedule, __tsplusTrace) {\n return (stream) => {\n const deps = tsplus_module_11.all([\n tsplus_module_7.make(),\n tsplus_module_8.make(() => new ScheduleEnd(), __tsplusTrace),\n tsplus_module_8.make(() => tsplus_module_9.empty(), __tsplusTrace),\n tsplus_module_10.driver(schedule, __tsplusTrace),\n tsplus_module_8.make(() => false, __tsplusTrace),\n ]);\n return flatMap_1(([handoff, sinkEndReason, sinkLeftovers, scheduleDriver, consumed]) => {\n const handoffProducer = tsplus_module_12.readWithCause((_in) => tsplus_module_13.zipRight(handoffProducer)(tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_7.emit(_in))(handoff))), (cause) => tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_7.halt(cause))(handoff)), (_) => tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_7.end(new UpstreamEnd()))(handoff)));\n const handoffConsumer = tsplus_module_12.unwrap(() => tsplus_module_1.flatMap((leftovers) => {\n if (tsplus_module_14.isNonEmpty(leftovers)) {\n return tsplus_module_1.zipRight(tsplus_module_1.succeedNow(tsplus_module_13.zipRight(handoffConsumer)(tsplus_module_12.writeNow(leftovers)), __tsplusTrace), __tsplusTrace)(tsplus_module_15.set(true, __tsplusTrace)(consumed));\n }\n else {\n return tsplus_module_1.map((signal) => tsplus_module_7.matchSignal({\n Emit: ({ els }) => tsplus_module_13.zipRight(handoffConsumer)(tsplus_module_13.zipRight(tsplus_module_12.writeNow(els))(tsplus_module_12.fromIO(() => tsplus_module_15.set(true, __tsplusTrace)(consumed)))),\n Halt: ({ error }) => tsplus_module_13.failCause(() => error),\n End: ({ reason }) => {\n if (reason._tag === \"ScheduleEnd\" /* SinkEndReasonTag.ScheduleEnd */) {\n return tsplus_module_12.unwrap(() => tsplus_module_1.map((p) => p\n ? tsplus_module_12.fromIO(() => tsplus_module_15.set(new ScheduleEnd(), __tsplusTrace)(sinkEndReason))\n : tsplus_module_13.zipRight(handoffConsumer)(tsplus_module_12.fromIO(() => tsplus_module_15.set(new ScheduleEnd(), __tsplusTrace)(sinkEndReason))), __tsplusTrace)(tsplus_module_16.get(consumed, __tsplusTrace)));\n }\n else {\n return tsplus_module_12.fromIO(() => tsplus_module_15.set(reason, __tsplusTrace)(sinkEndReason));\n }\n },\n })(signal), __tsplusTrace)(tsplus_module_7.take(handoff));\n }\n }, __tsplusTrace)(tsplus_module_17.getAndSet(tsplus_module_9.empty(), __tsplusTrace)(sinkLeftovers)));\n function timeout(lastB, __tsplusTrace) {\n return scheduleDriver.next(lastB, __tsplusTrace);\n }\n const scheduledAggregator = (sinkFiber, scheduleFiber) => {\n const forkSink = tsplus_module_1.zipRight(tsplus_module_19.forkScoped(tsplus_module_18.runScoped(tsplus_module_12.doneCollect(tsplus_module_12.pipeToOrFail(sink.channel)(handoffConsumer))), __tsplusTrace), __tsplusTrace)(tsplus_module_15.set(false, __tsplusTrace)(consumed));\n function handleSide(leftovers, b, c, __tsplusTrace) {\n return tsplus_module_12.unwrap(() => tsplus_module_1.zipRight(tsplus_module_1.map((reason) => tsplus_module_23.matchSinkEndReason({\n ScheduleEnd: () => tsplus_module_12.unwrapScoped(() => tsplus_module_1.flatMap(consumed_ => tsplus_module_1.flatMap(sinkFiber => tsplus_module_1.map(scheduleFiber => {\n const toWrite = tsplus_module_22.match(() => tsplus_module_21.make(tsplus_module_20.right(b, __tsplusTrace)), (c) => tsplus_module_21.make(tsplus_module_20.right(b, __tsplusTrace), tsplus_module_20.left(c, __tsplusTrace)))(c);\n return consumed_\n ? tsplus_module_13.zipRight(scheduledAggregator(sinkFiber, scheduleFiber))(tsplus_module_12.write(() => toWrite)) : scheduledAggregator(sinkFiber, scheduleFiber);\n }, __tsplusTrace)(tsplus_module_19.forkScoped(timeout(tsplus_module_5.just(b, __tsplusTrace), __tsplusTrace), __tsplusTrace)), __tsplusTrace)(forkSink), __tsplusTrace)(tsplus_module_16.get(consumed, __tsplusTrace))),\n UpstreamEnd: () => tsplus_module_12.unwrap(() => tsplus_module_1.map((p) => (p ? tsplus_module_12.write(() => tsplus_module_21.make(tsplus_module_20.right(b, __tsplusTrace))) : tsplus_module_12.unit), __tsplusTrace)(tsplus_module_16.get(consumed, __tsplusTrace))),\n })(reason), __tsplusTrace)(tsplus_module_16.get(sinkEndReason, __tsplusTrace)), __tsplusTrace)(tsplus_module_15.set(tsplus_module_14.flatten(leftovers), __tsplusTrace)(sinkLeftovers)));\n }\n return tsplus_module_12.unwrap(() => tsplus_module_28.raceWith(() => tsplus_module_24.join(scheduleFiber, __tsplusTrace), (sinkExit, scheduleFiber) => tsplus_module_1.zipRight(tsplus_module_1.map(([leftovers, b]) => handleSide(leftovers, b, tsplus_module_5.nothing(__tsplusTrace), __tsplusTrace), __tsplusTrace)(tsplus_module_1.fromExit(() => sinkExit, __tsplusTrace)), __tsplusTrace)(tsplus_module_25.interrupt(scheduleFiber)), (scheduleExit, sinkFiber) => tsplus_module_1.matchCauseIO((cause) => tsplus_module_6.match(() => tsplus_module_1.zipRight(tsplus_module_1.map(([leftovers, b]) => handleSide(leftovers, b, tsplus_module_5.nothing(__tsplusTrace), __tsplusTrace), __tsplusTrace)(tsplus_module_24.join(sinkFiber, __tsplusTrace)), __tsplusTrace)(tsplus_module_26.forkDaemon(tsplus_module_7.offer(tsplus_module_7.end(new ScheduleEnd()))(handoff), __tsplusTrace)), (cause) => tsplus_module_1.zipRight(tsplus_module_1.map(([leftovers, b]) => handleSide(leftovers, b, tsplus_module_5.nothing(__tsplusTrace), __tsplusTrace), __tsplusTrace)(tsplus_module_24.join(sinkFiber, __tsplusTrace)), __tsplusTrace)(tsplus_module_26.forkDaemon(tsplus_module_7.offer(tsplus_module_7.halt(cause))(handoff), __tsplusTrace)))(tsplus_module_27.failureOrCause(cause)), (c) => tsplus_module_1.zipRight(tsplus_module_1.map(([leftovers, b]) => handleSide(leftovers, b, tsplus_module_5.just(c, __tsplusTrace), __tsplusTrace), __tsplusTrace)(tsplus_module_24.join(sinkFiber, __tsplusTrace)), __tsplusTrace)(tsplus_module_26.forkDaemon(tsplus_module_7.offer(tsplus_module_7.end(new ScheduleEnd()))(handoff), __tsplusTrace)), __tsplusTrace)(tsplus_module_1.fromExit(() => scheduleExit, __tsplusTrace)), __tsplusTrace)(tsplus_module_24.join(sinkFiber, __tsplusTrace)));\n };\n return unwrapScoped_1(tsplus_module_1.flatMap(() => tsplus_module_1.flatMap(sinkFiber => tsplus_module_1.map(scheduleFiber => new Stream(scheduledAggregator(sinkFiber, scheduleFiber)), __tsplusTrace)(tsplus_module_19.forkScoped(timeout(tsplus_module_5.nothing(__tsplusTrace), __tsplusTrace), __tsplusTrace)), __tsplusTrace)(tsplus_module_19.forkScoped(tsplus_module_18.runScoped(tsplus_module_12.doneCollect(tsplus_module_12.pipeToOrFail(sink.channel)(handoffConsumer))), __tsplusTrace)), __tsplusTrace)(tsplus_module_19.forkScoped(tsplus_module_18.runScoped(tsplus_module_12.pipeTo(handoffProducer)(stream.channel)), __tsplusTrace)), __tsplusTrace);\n }, __tsplusTrace)(fromIO_1(deps, __tsplusTrace));\n };\n}\n/**\n * Maps the success values of this stream to the specified constant value.\n *\n * @tsplus pipeable fncts.io.Stream as\n */\nexport function as(b, __tsplusTrace) {\n return (stream) => {\n return map_1(() => b(), __tsplusTrace)(stream);\n };\n}\n/**\n * @tsplus static fncts.io.StreamOps async\n */\nexport function async(register, outputBuffer = 16, __tsplusTrace) {\n return asyncMaybe_1((cb) => {\n register(cb);\n return tsplus_module_5.nothing(__tsplusTrace);\n }, outputBuffer, __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.StreamOps asyncInterrupt\n */\nfunction asyncInterrupt_1(register, outputBuffer = 16, __tsplusTrace) {\n return unwrapScoped_1(tsplus_module_1.flatMap(output => tsplus_module_1.flatMap(runtime => tsplus_module_1.map(eitherStream => tsplus_module_6.match((canceler) => {\n const loop = tsplus_module_12.unwrap(() => tsplus_module_1.match((maybeError) => tsplus_module_22.match(() => tsplus_module_13.endNow(undefined), tsplus_module_12.failNow)(maybeError), (as) => tsplus_module_13.zipRight(loop)(tsplus_module_12.writeNow(as)), __tsplusTrace)(tsplus_module_1.flatMap((take) => tsplus_module_29.done(take), __tsplusTrace)(tsplus_module_30.take(output, __tsplusTrace))));\n return ensuring_1(canceler, __tsplusTrace)(new Stream(loop));\n }, (stream) => unwrap_1(tsplus_module_1.as(() => stream, __tsplusTrace)(tsplus_module_30.shutdown(output, __tsplusTrace)), __tsplusTrace))(eitherStream), __tsplusTrace)(tsplus_module_1.succeed(() => register((k, cb) => {\n const effect = tsplus_module_1.flatMap((a) => tsplus_module_30.offer(a, __tsplusTrace)(output), __tsplusTrace)(tsplus_module_29.fromPull(k));\n const fiber = runtime.makeFiber(effect, __tsplusTrace);\n if (cb) {\n fiber.addObserver(cb);\n }\n fiber.start(effect);\n }), __tsplusTrace)), __tsplusTrace)(tsplus_module_31.runtime(__tsplusTrace)), __tsplusTrace)(tsplus_module_2.acquireRelease(() => tsplus_module_32.makeBounded(outputBuffer, __tsplusTrace), (queue) => tsplus_module_30.shutdown(queue, __tsplusTrace), __tsplusTrace)), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.StreamOps asyncIO\n */\nexport function asyncIO(register, outputBuffer = 16, __tsplusTrace) {\n return new Stream(tsplus_module_12.unwrapScoped(() => tsplus_module_1.flatMap(output => tsplus_module_1.flatMap(runtime => tsplus_module_1.map(() => {\n const loop = tsplus_module_12.unwrap(() => tsplus_module_1.matchCauseIO((cause) => tsplus_module_1.as(() => tsplus_module_6.match((maybeError) => tsplus_module_22.match(() => tsplus_module_13.endNow(undefined), tsplus_module_12.failNow)(maybeError), tsplus_module_13.failCauseNow)(tsplus_module_27.failureOrCause(cause)), __tsplusTrace)(tsplus_module_30.shutdown(output, __tsplusTrace)), (as) => tsplus_module_1.succeed(() => tsplus_module_13.zipRight(loop)(tsplus_module_12.writeNow(as)), __tsplusTrace), __tsplusTrace)(tsplus_module_1.flatMap((take) => tsplus_module_29.done(take), __tsplusTrace)(tsplus_module_30.take(output, __tsplusTrace))));\n return loop;\n }, __tsplusTrace)(register((k, cb) => {\n const io = tsplus_module_1.flatMap((a) => tsplus_module_30.offer(a, __tsplusTrace)(output), __tsplusTrace)(tsplus_module_29.fromPull(k));\n const fiber = runtime.makeFiber(io, __tsplusTrace);\n if (cb) {\n fiber.addObserver(cb);\n }\n fiber.start(io);\n })), __tsplusTrace)(tsplus_module_31.runtime(__tsplusTrace)), __tsplusTrace)(tsplus_module_2.acquireRelease(() => tsplus_module_32.makeBounded(outputBuffer, __tsplusTrace), (_) => tsplus_module_30.shutdown(_, __tsplusTrace), __tsplusTrace))));\n}\n/**\n * Creates a stream from an asynchronous callback that can be called multiple times.\n * The registration of the callback can possibly return the stream synchronously.\n * The optionality of the error type `E` can be used to signal the end of the stream,\n * by setting it to `None`.\n *\n * @tsplus static fncts.io.StreamOps asyncMaybe\n */\nfunction asyncMaybe_1(register, outputBuffer = 16, __tsplusTrace) {\n return asyncInterrupt_1((k) => tsplus_module_22.match(() => tsplus_module_20.left(tsplus_module_1.unit, __tsplusTrace), tsplus_module_20.right)(register(k)), outputBuffer, __tsplusTrace);\n}\n/**\n * Returns a stream whose failure and success channels have been mapped by\n * the specified pair of functions, `f` and `g`.\n *\n * @tsplus pipeable fncts.io.Stream bimap\n */\nexport function bimap(f, g, __tsplusTrace) {\n return (stream) => map_1(g, __tsplusTrace)(mapError_1(f, __tsplusTrace)(stream));\n}\n/**\n * Fan out the stream, producing a list of streams that have the same elements as this stream.\n * The driver stream will only ever advance of the `maximumLag` chunks before the\n * slowest downstream stream.\n *\n * @tsplus pipeable fncts.io.Stream broadcast\n */\nexport function broadcast(n, maximumLag, __tsplusTrace) {\n return (stream) => {\n return tsplus_module_1.map((c) => tsplus_module_14.map((hub) => flattenTake_1(fromQueueWithShutdown_1(hub), __tsplusTrace))(c), __tsplusTrace)(broadcastedQueues_1(n, maximumLag, __tsplusTrace)(stream));\n };\n}\n/**\n * Fan out the stream, producing a dynamic number of streams that have the same elements as this stream.\n * The driver stream will only ever advance of the `maximumLag` chunks before the\n * slowest downstream stream.\n *\n * @tsplus pipeable fncts.io.Stream broadcastDynamic\n */\nexport function broadcastDynamic(maximumLag, __tsplusTrace) {\n return (stream) => {\n return tsplus_module_1.map((scoped) => flattenTake_1(flatMap_1(fromQueue_1, __tsplusTrace)(scoped_1(() => scoped, __tsplusTrace)), __tsplusTrace), __tsplusTrace)(broadcastedQueuesDynamic_1(maximumLag, __tsplusTrace)(stream));\n };\n}\n/**\n * Converts the stream to a managed list of queues. Every value will be replicated to every queue with the\n * slowest queue being allowed to buffer `maximumLag` chunks before the driver is backpressured.\n *\n * Queues can unsubscribe from upstream by shutting down.\n *\n * @tsplus pipeable fncts.io.Stream broadcastedQueues\n */\nfunction broadcastedQueues_1(n, maximumLag, __tsplusTrace) {\n return (self) => {\n return tsplus_module_1.flatMap(hub => tsplus_module_1.flatMap(queues => tsplus_module_1.map(() => queues, __tsplusTrace)(tsplus_module_33.fork(runIntoHubScoped_1(hub, __tsplusTrace)(self), __tsplusTrace)), __tsplusTrace)(tsplus_module_1.sequenceIterable(tsplus_module_35.replicate(n, tsplus_module_34.subscribe(hub, __tsplusTrace)), __tsplusTrace)), __tsplusTrace)(tsplus_module_34.makeBounded(maximumLag, __tsplusTrace));\n };\n}\n/**\n * Converts the stream to a managed dynamic amount of queues. Every chunk will be replicated to every queue with the\n * slowest queue being allowed to buffer `maximumLag` chunks before the driver is backpressured.\n *\n * Queues can unsubscribe from upstream by shutting down.\n *\n * @tsplus pipeable fncts.io.Stream broadcastedQueuesDynamic\n */\nfunction broadcastedQueuesDynamic_1(maximumLag, __tsplusTrace) {\n return (stream) => {\n return tsplus_module_1.map((hub) => tsplus_module_34.subscribe(hub, __tsplusTrace), __tsplusTrace)(toHub_1(maximumLag, __tsplusTrace)(stream));\n };\n}\n/**\n * Allows a faster producer to progress independently of a slower consumer by buffering\n * up to `capacity` elements in a queue.\n *\n * @tsplus pipeable fncts.io.Stream buffer\n */\nexport function buffer(capacity, __tsplusTrace) {\n return (stream) => {\n const queue = toQueueOfElements_1(capacity, __tsplusTrace)(stream);\n return new Stream(tsplus_module_12.unwrapScoped(() => tsplus_module_1.map((queue) => {\n const process = tsplus_module_13.flatMap((exit) => tsplus_module_36.match((cause) => tsplus_module_22.match(() => tsplus_module_13.endNow(undefined), tsplus_module_13.failCauseNow)(tsplus_module_27.flipCauseOption(cause)), (value) => tsplus_module_13.zipRight(process)(tsplus_module_12.writeNow(tsplus_module_21.single(value))))(exit))(tsplus_module_12.fromIO(() => tsplus_module_30.take(queue, __tsplusTrace)));\n return process;\n }, __tsplusTrace)(queue)));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream bufferChunks\n */\nexport function bufferChunks(capacity, __tsplusTrace) {\n return (stream) => {\n const queue = toQueue_1(capacity, __tsplusTrace)(stream);\n return new Stream(tsplus_module_12.unwrapScoped(() => tsplus_module_1.map((queue) => {\n const process = tsplus_module_13.flatMap((take) => tsplus_module_29.match(tsplus_module_13.endNow(undefined), tsplus_module_13.failCauseNow, (value) => tsplus_module_13.zipRight(process)(tsplus_module_12.writeNow(value)))(take))(tsplus_module_12.fromIO(() => tsplus_module_30.take(queue, __tsplusTrace)));\n return process;\n }, __tsplusTrace)(queue)));\n };\n}\nfunction bufferSignalConsumer(queue, __tsplusTrace) {\n const process = tsplus_module_13.flatMap(([take, promise]) => tsplus_module_13.zipRight(tsplus_module_29.match(tsplus_module_13.endNow(undefined), tsplus_module_13.failCauseNow, (value) => tsplus_module_13.zipRight(process)(tsplus_module_12.writeNow(value)))(take))(tsplus_module_12.fromIO(() => tsplus_module_37.succeed_(undefined, __tsplusTrace)(promise))))(tsplus_module_12.fromIO(() => tsplus_module_30.take(queue, __tsplusTrace)));\n return process;\n}\nfunction bufferSignalProducer(queue, ref, __tsplusTrace) {\n const terminate = (take) => tsplus_module_12.fromIO(() => tsplus_module_1.flatMap(latch => tsplus_module_1.flatMap(() => tsplus_module_1.flatMap(p => tsplus_module_1.flatMap(() => tsplus_module_1.flatMap(() => tsplus_module_1.map(() => void 0, __tsplusTrace)(tsplus_module_37.wait(p, __tsplusTrace)), __tsplusTrace)(tsplus_module_15.set(p, __tsplusTrace)(ref)), __tsplusTrace)(tsplus_module_30.offer(tuple(take, p), __tsplusTrace)(queue)), __tsplusTrace)(tsplus_module_38.make(__tsplusTrace)), __tsplusTrace)(tsplus_module_37.wait(latch, __tsplusTrace)), __tsplusTrace)(tsplus_module_16.get(ref, __tsplusTrace)));\n return tsplus_module_12.readWith((inp) => tsplus_module_13.zipRight(bufferSignalProducer(queue, ref, __tsplusTrace))(tsplus_module_12.fromIO(() => tsplus_module_1.flatMap(p => tsplus_module_1.flatMap(added => tsplus_module_1.map(() => void 0, __tsplusTrace)(tsplus_module_1.when(() => added, __tsplusTrace)(tsplus_module_15.set(p, __tsplusTrace)(ref))), __tsplusTrace)(tsplus_module_30.offer(tuple(tsplus_module_29.chunk(inp), p), __tsplusTrace)(queue)), __tsplusTrace)(tsplus_module_38.make(__tsplusTrace)))), (e) => terminate(tsplus_module_29.fail(e)), () => terminate(tsplus_module_29.end));\n}\n/**\n * Allows a faster producer to progress independently of a slower consumer by buffering\n * elements into an unbounded queue.\n *\n * @tsplus getter fncts.io.Stream bufferUnbounded\n */\nexport function bufferUnbounded(stream, __tsplusTrace) {\n const queue = toQueueUnbounded_1(stream, __tsplusTrace);\n return new Stream(tsplus_module_12.unwrapScoped(() => tsplus_module_1.map((queue) => {\n const process = tsplus_module_13.flatMap((take) => tsplus_module_29.match(tsplus_module_13.endNow(undefined), tsplus_module_13.failCauseNow, (value) => tsplus_module_13.zipRight(process)(tsplus_module_12.writeNow(value)))(take))(tsplus_module_12.fromIO(() => tsplus_module_30.take(queue, __tsplusTrace)));\n return process;\n }, __tsplusTrace)(queue)));\n}\n/**\n * Switches over to the stream produced by the provided function in case this one\n * fails with a typed error.\n *\n * @tsplus pipeable fncts.io.Stream catchAll\n */\nfunction catchAll_1(f, __tsplusTrace) {\n return (stream) => {\n return catchAllCause_1((cause) => tsplus_module_6.match(f, failCauseNow_1)(tsplus_module_27.failureOrCause(cause)), __tsplusTrace)(stream);\n };\n}\n/**\n * Switches over to the stream produced by the provided function in case this one\n * fails. Allows recovery from all causes of failure, including interruption if the\n * stream is uninterruptible.\n *\n * @tsplus pipeable fncts.io.Stream catchAllCause\n */\nfunction catchAllCause_1(f, __tsplusTrace) {\n return (stream) => {\n const channel = tsplus_module_12.catchAllCause((cause) => f(cause).channel)(stream.channel);\n return new Stream(channel);\n };\n}\n/**\n * Switches over to the stream produced by the provided function in case this one\n * fails with some typed error.\n *\n * @tsplus pipeable fncts.io.Stream catchJust\n */\nexport function catchJust(pf, __tsplusTrace) {\n return (stream) => {\n return catchAll_1((e) => tsplus_module_39.getOrElse(() => failNow_1(e, __tsplusTrace))(pf(e)), __tsplusTrace)(stream);\n };\n}\n/**\n * Switches over to the stream produced by the provided function in case this one\n * fails with some errors. Allows recovery from all causes of failure, including interruption if the\n * stream is uninterruptible.\n *\n * @tsplus pipeable fncts.io.Stream catchJustCause\n */\nexport function catchJustCause(pf, __tsplusTrace) {\n return (stream) => {\n return catchAllCause_1((cause) => tsplus_module_39.getOrElse(() => failCauseNow_1(cause, __tsplusTrace))(pf(cause)), __tsplusTrace)(stream);\n };\n}\n/**\n * Returns a new stream that only emits elements that are not equal to the\n * previous element emitted, using the specified function to determine\n * whether two elements are equal.\n *\n * @tsplus pipeable fncts.io.Stream changesWith\n */\nexport function changesWith(f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.pipeTo(changesWithWriter(f, tsplus_module_5.nothing(__tsplusTrace), __tsplusTrace))(stream.channel));\n };\n}\nfunction changesWithWriter(f, last, __tsplusTrace) {\n return tsplus_module_12.readWithCause((chunk) => {\n const [newLast, newChunk] = tsplus_module_14.foldLeft([last, tsplus_module_9.empty()], ([maybeLast, os], o1) => tsplus_module_22.match(() => [tsplus_module_5.just(o1, __tsplusTrace), tsplus_module_14.append(o1)(os)], (o) => (f(o, o1) ? [tsplus_module_5.just(o1, __tsplusTrace), os] : [tsplus_module_5.just(o1, __tsplusTrace), tsplus_module_14.append(o1)(os)]))(maybeLast))(chunk);\n return tsplus_module_13.zipRight(changesWithWriter(f, newLast, __tsplusTrace))(tsplus_module_12.writeNow(newChunk));\n }, tsplus_module_13.failCauseNow, () => tsplus_module_12.unit);\n}\n/**\n * Exposes the underlying chunks of the stream as a stream of chunks of elements\n *\n * @tsplus getter fncts.io.Stream chunks\n */\nfunction chunks_1(stream, __tsplusTrace) {\n return mapChunks_1(tsplus_module_21.single, __tsplusTrace)(stream);\n}\n/**\n * Performs the specified stream transformation with the chunk structure of\n * the stream exposed.\n *\n * @tsplus pipeable fncts.io.Stream chunksWith\n */\nexport function chunksWith(f, __tsplusTrace) {\n return (self) => {\n return flattenChunks_1(f(chunks_1(self, __tsplusTrace)), __tsplusTrace);\n };\n}\n/**\n * Transforms all elements of the stream for as long as the specified partial function is defined.\n *\n * @tsplus pipeable fncts.io.Stream collectWhile\n */\nexport function collectWhile(pf, __tsplusTrace) {\n return (stream) => {\n const loop = tsplus_module_12.readWith((inp) => {\n const mapped = tsplus_module_14.collectWhile(pf)(inp);\n if (mapped.length === inp.length) {\n return tsplus_module_13.zipRight(loop)(tsplus_module_12.writeNow(mapped));\n }\n else {\n return tsplus_module_12.writeNow(mapped);\n }\n }, tsplus_module_12.failNow, tsplus_module_13.succeedNow);\n return new Stream(tsplus_module_12.pipeTo(loop)(stream.channel));\n };\n}\n/**\n * Effectfully transforms all elements of the stream for as long as the specified partial function is defined.\n */\nexport function collectWhileIO(stream, pf, __tsplusTrace) {\n return new Stream(tsplus_module_12.pipeTo(collectWhileIOLoop(tsplus_module_40.empty()[Symbol.iterator](), pf, __tsplusTrace))(stream.channel));\n}\nfunction collectWhileIOLoop(iterator, pf, __tsplusTrace) {\n const next = iterator.next();\n if (next.done) {\n return tsplus_module_12.readWithCause((elem) => collectWhileIOLoop(elem[Symbol.iterator](), pf, __tsplusTrace), tsplus_module_13.failCauseNow, tsplus_module_13.succeedNow);\n }\n else {\n return tsplus_module_12.unwrap(() => tsplus_module_22.match(() => tsplus_module_1.succeedNow(tsplus_module_12.unit, __tsplusTrace), (b) => tsplus_module_1.map((b) => tsplus_module_13.zipRight(collectWhileIOLoop(iterator, pf, __tsplusTrace))(tsplus_module_12.writeNow(tsplus_module_21.single(b))), __tsplusTrace)(b))(pf(next.value)));\n }\n}\n/**\n * Combines the elements from this stream and the specified stream by repeatedly applying the\n * function `f` to extract an element using both sides and conceptually \"offer\"\n * it to the destination stream. `f` can maintain some internal state to control\n * the combining process, with the initial state being specified by `s`.\n *\n * Where possible, prefer `Stream#combineChunks` for a more efficient implementation.\n *\n * @tsplus pipeable fncts.io.Stream combine\n */\nexport function combine(that, s, f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.unwrapScoped(() => tsplus_module_1.map(([left, right, latchL, latchR]) => {\n const pullLeft = tsplus_module_1.flatMap(tsplus_module_1.fromExitNow, __tsplusTrace)(tsplus_module_1.zipRight(tsplus_module_7.take(left), __tsplusTrace)(tsplus_module_7.offer(undefined)(latchL)));\n const pullRight = tsplus_module_1.flatMap(tsplus_module_1.fromExitNow, __tsplusTrace)(tsplus_module_1.zipRight(tsplus_module_7.take(right), __tsplusTrace)(tsplus_module_7.offer(undefined)(latchR)));\n return unfoldIO_1(s, (s) => tsplus_module_1.flatMap((exit) => tsplus_module_1.optional(tsplus_module_1.fromExitNow(exit, __tsplusTrace), __tsplusTrace), __tsplusTrace)(f(s, pullLeft, pullRight)), __tsplusTrace)\n .channel;\n }, __tsplusTrace)(tsplus_module_1.flatMap(left => tsplus_module_1.flatMap(right => tsplus_module_1.flatMap(latchL => tsplus_module_1.flatMap(latchR => tsplus_module_1.flatMap(() => tsplus_module_1.map(() => tuple(left, right, latchL, latchR), __tsplusTrace)(tsplus_module_33.fork(tsplus_module_18.runScoped(tsplus_module_12.pipeTo(combineProducer(right, latchR, __tsplusTrace))(tsplus_module_12.concatMap(tsplus_module_12.writeChunk)(that.channel))), __tsplusTrace)), __tsplusTrace)(tsplus_module_33.fork(tsplus_module_18.runScoped(tsplus_module_12.pipeTo(combineProducer(left, latchL, __tsplusTrace))(tsplus_module_12.concatMap(tsplus_module_12.writeChunk)(stream.channel))), __tsplusTrace)), __tsplusTrace)(tsplus_module_7.make()), __tsplusTrace)(tsplus_module_7.make()), __tsplusTrace)(tsplus_module_7.make()), __tsplusTrace)(tsplus_module_7.make()))));\n };\n}\n/**\n * Combines the chunks from this stream and the specified stream by repeatedly applying the\n * function `f` to extract a chunk using both sides and conceptually \"offer\"\n * it to the destination stream. `f` can maintain some internal state to control\n * the combining process, with the initial state being specified by `s`.\n *\n * @tsplus pipeable fncts.io.Stream combineChunks\n */\nexport function combineChunks(that, s, f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.unwrapScoped(() => tsplus_module_1.map(([left, right, latchL, latchR]) => {\n const pullLeft = tsplus_module_1.flatMap((take) => tsplus_module_29.done(take), __tsplusTrace)(tsplus_module_1.zipRight(tsplus_module_7.take(left), __tsplusTrace)(tsplus_module_7.offer(undefined)(latchL)));\n const pullRight = tsplus_module_1.flatMap((take) => tsplus_module_29.done(take), __tsplusTrace)(tsplus_module_1.zipRight(tsplus_module_7.take(right), __tsplusTrace)(tsplus_module_7.offer(undefined)(latchR)));\n return unfoldChunkIO_1(s, (s) => tsplus_module_1.flatMap((exit) => tsplus_module_1.optional(tsplus_module_1.fromExit(() => exit, __tsplusTrace), __tsplusTrace), __tsplusTrace)(f(s, pullLeft, pullRight)), __tsplusTrace)\n .channel;\n }, __tsplusTrace)(tsplus_module_1.flatMap(left => tsplus_module_1.flatMap(right => tsplus_module_1.flatMap(latchL => tsplus_module_1.flatMap(latchR => tsplus_module_1.flatMap(() => tsplus_module_1.map(() => tuple(left, right, latchL, latchR), __tsplusTrace)(tsplus_module_33.fork(tsplus_module_18.runScoped(tsplus_module_12.pipeTo(combineChunksProducer(right, latchR, __tsplusTrace))(that.channel)), __tsplusTrace)), __tsplusTrace)(tsplus_module_33.fork(tsplus_module_18.runScoped(tsplus_module_12.pipeTo(combineChunksProducer(left, latchL, __tsplusTrace))(stream.channel)), __tsplusTrace)), __tsplusTrace)(tsplus_module_7.make()), __tsplusTrace)(tsplus_module_7.make()), __tsplusTrace)(tsplus_module_7.make()), __tsplusTrace)(tsplus_module_7.make()))));\n };\n}\nfunction combineChunksProducer(handoff, latch, __tsplusTrace) {\n return tsplus_module_13.zipRight(tsplus_module_12.readWithCause((chunk) => tsplus_module_13.zipRight(combineChunksProducer(handoff, latch, __tsplusTrace))(tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_29.chunk(chunk))(handoff))), (cause) => tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_29.failCause(cause))(handoff)), () => tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_29.end)(handoff))))(tsplus_module_12.fromIO(() => tsplus_module_7.take(latch)));\n}\nfunction combineProducer(handoff, latch, __tsplusTrace) {\n return tsplus_module_13.zipRight(tsplus_module_12.readWithCause((value) => tsplus_module_13.zipRight(combineProducer(handoff, latch, __tsplusTrace))(tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_41.succeed(value, __tsplusTrace))(handoff))), (cause) => tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_41.failCause(tsplus_module_27.map(tsplus_module_5.just)(cause), __tsplusTrace))(handoff)), () => tsplus_module_13.zipRight(combineProducer(handoff, latch, __tsplusTrace))(tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_41.fail(tsplus_module_5.nothing(__tsplusTrace), __tsplusTrace))(handoff)))))(tsplus_module_12.fromIO(() => tsplus_module_7.take(latch)));\n}\n/**\n * Concatenates the specified stream with this stream, resulting in a stream\n * that emits the elements from this stream and then the elements from the specified stream.\n *\n * @tsplus pipeable fncts.io.Stream concat\n */\nfunction concat_1(that, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_13.zipRight(that.channel)(stream.channel));\n };\n}\n/**\n * Provides some of the environment required to run this effect,\n * leaving the remainder `R0`.\n *\n * @tsplus pipeable fncts.io.Stream contramapEnvironment\n */\nexport function contramapEnvironment(f, __tsplusTrace) {\n return (ra) => {\n return flatMap_1((r0) => provideEnvironment_1(f(r0), __tsplusTrace)(ra), __tsplusTrace)(environment_1(__tsplusTrace));\n };\n}\n/**\n * Composes this stream with the specified stream to create a cartesian product of elements.\n * The `that` stream would be run multiple times, for every element in the `this` stream.\n *\n * @tsplus pipeable fncts.io.Stream cross\n */\nexport function cross(that, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.concatMap((as) => tsplus_module_12.mapOut((bs) => tsplus_module_14.flatMap((a) => tsplus_module_14.map((b) => tuple(a, b))(bs))(as))(that.channel))(stream.channel));\n };\n}\n/**\n * Composes this stream with the specified stream to create a cartesian product of elements\n * with a specified function.\n * The `fb` stream would be run multiple times, for every element in the `fa` stream.\n *\n * @tsplus pipeable fncts.io.Stream crossWith\n */\nfunction crossWith_1(fb, f, __tsplusTrace) {\n return (fa) => {\n return flatMap_1((a) => map_1((b) => f(a, b), __tsplusTrace)(fb), __tsplusTrace)(fa);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream debounce\n */\nexport function debounce(duration, __tsplusTrace) {\n return (stream) => {\n return unwrap_1(tsplus_module_44.transplant((grafter) => tsplus_module_1.map(handoff => {\n function enqueue(last, __tsplusTrace) {\n return tsplus_module_1.map((f) => consumer(tsplus_module_42.previous(f), __tsplusTrace), __tsplusTrace)(grafter.graft(tsplus_module_33.fork(tsplus_module_1.as(() => last, __tsplusTrace)(tsplus_module_43.sleep(duration, __tsplusTrace)), __tsplusTrace), __tsplusTrace));\n }\n const producer = tsplus_module_12.readWithCause((inp) => tsplus_module_22.match(() => producer, (last) => tsplus_module_13.zipRight(producer)(tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_7.emit(tsplus_module_21.single(last)))(handoff))))(tsplus_module_14.last(inp)), (cause) => tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_7.halt(cause))(handoff)), () => tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_7.end(new UpstreamEnd()))(handoff)));\n function consumer(state, __tsplusTrace) {\n return tsplus_module_12.unwrap(() => tsplus_module_42.match({\n NotStarted: () => tsplus_module_1.map((signal) => tsplus_module_7.matchSignal({\n Emit: ({ els }) => tsplus_module_12.unwrap(() => enqueue(els, __tsplusTrace)),\n Halt: ({ error }) => tsplus_module_13.failCauseNow(error),\n End: () => tsplus_module_12.unit,\n })(signal), __tsplusTrace)(tsplus_module_7.take(handoff)),\n Current: ({ fiber }) => tsplus_module_1.map((signal) => tsplus_module_7.matchSignal({\n Emit: ({ els }) => tsplus_module_12.unwrap(() => enqueue(els, __tsplusTrace)),\n Halt: ({ error }) => tsplus_module_13.failCauseNow(error),\n End: () => tsplus_module_12.unit,\n })(signal), __tsplusTrace)(tsplus_module_24.join(fiber, __tsplusTrace)),\n Previous: ({ fiber }) => tsplus_module_28.raceWith(() => tsplus_module_7.take(handoff), (ex, current) => tsplus_module_36.match((cause) => tsplus_module_1.as(() => tsplus_module_13.failCauseNow(cause), __tsplusTrace)(tsplus_module_25.interrupt(current)), (chunk) => tsplus_module_1.succeedNow(tsplus_module_13.zipRight(consumer(tsplus_module_42.current(current), __tsplusTrace))(tsplus_module_12.writeNow(chunk)), __tsplusTrace))(ex), (ex, previous) => tsplus_module_36.match((cause) => tsplus_module_1.as(() => tsplus_module_13.failCauseNow(cause), __tsplusTrace)(tsplus_module_25.interrupt(previous)), (signal) => tsplus_module_7.matchSignal({\n Emit: ({ els }) => tsplus_module_1.zipRight(enqueue(els, __tsplusTrace), __tsplusTrace)(tsplus_module_25.interrupt(previous)),\n Halt: ({ error }) => tsplus_module_1.as(() => tsplus_module_13.failCauseNow(error), __tsplusTrace)(tsplus_module_25.interrupt(previous)),\n End: () => tsplus_module_1.map((chunk) => tsplus_module_13.zipRight(tsplus_module_12.unit)(tsplus_module_12.writeNow(chunk)), __tsplusTrace)(tsplus_module_24.join(previous, __tsplusTrace)),\n })(signal))(ex), __tsplusTrace)(tsplus_module_24.join(fiber, __tsplusTrace)),\n })(state));\n }\n return zipRight_1(new Stream(consumer(tsplus_module_42.notStarted, __tsplusTrace)), __tsplusTrace)(scoped_1(() => tsplus_module_33.fork(tsplus_module_18.runScoped(tsplus_module_12.pipeTo(producer)(stream.channel)), __tsplusTrace), __tsplusTrace));\n }, __tsplusTrace)(tsplus_module_7.make()), __tsplusTrace), __tsplusTrace);\n };\n}\n/**\n * Switches to the provided stream in case this one is empty.\n *\n * @tsplus pipeable fncts.io.Stream defaultIfEmpty\n */\nexport function defaultIfEmpty(fb, __tsplusTrace) {\n return (fa) => {\n return new Stream(tsplus_module_12.pipeTo(defaultIfEmptyWriter(fb, __tsplusTrace))(fa.channel));\n };\n}\nfunction defaultIfEmptyWriter(fb, __tsplusTrace) {\n return tsplus_module_12.readWith((i) => tsplus_module_14.isEmpty(i) ? defaultIfEmptyWriter(fb, __tsplusTrace) : tsplus_module_13.zipRight(tsplus_module_12.id())(tsplus_module_12.writeNow(i)), tsplus_module_12.failNow, () => fb.channel);\n}\n/**\n * @tsplus static fncts.io.StreamOps defer\n */\nfunction defer_1(self) {\n return new Stream(tsplus_module_12.defer(() => self().channel));\n}\n/**\n * More powerful version of `broadcast`. Allows to provide a function that determines what\n * queues should receive which elements. The decide function will receive the indices of the queues\n * in the resulting list.\n *\n * @tsplus pipeable fncts.io.Stream distributedWith\n */\nexport function distributedWith(n, maximumLag, decide, __tsplusTrace) {\n return (self) => {\n return tsplus_module_1.flatMap((p) => tsplus_module_1.flatMap((next) => tsplus_module_1.flatMap((entries) => {\n const [mappings, queues] = tsplus_module_14.foldRight([tsplus_module_45.empty(), tsplus_module_9.empty()], ([mapping, queue], [mappings, queues]) => [tsplus_module_45.set(mapping[0], mapping[1])(mappings), tsplus_module_14.append(queue)(queues)])(entries);\n return tsplus_module_1.as(() => queues, __tsplusTrace)(tsplus_module_37.succeed_((a) => tsplus_module_1.map((f) => (key) => f(tsplus_module_39.toUndefined(tsplus_module_45.get(key)(mappings))), __tsplusTrace)(decide(a)), __tsplusTrace)(p));\n }, __tsplusTrace)(tsplus_module_1.sequenceIterable(tsplus_module_14.map((id) => tsplus_module_1.map(([key, queue]) => [[key, id], queue], __tsplusTrace)(next))(tsplus_module_21.range(0, n)), __tsplusTrace)), __tsplusTrace)(distributedWithDynamic_1(maximumLag, (a) => tsplus_module_1.flatMap((f) => f(a), __tsplusTrace)(tsplus_module_37.wait(p, __tsplusTrace)), () => tsplus_module_1.unit, __tsplusTrace)(self)), __tsplusTrace)(tsplus_module_38.make(__tsplusTrace));\n };\n}\n/**\n * More powerful version of `ZStream#distributedWith`. This returns a function that will produce\n * new queues and corresponding indices.\n * You can also provide a function that will be executed after the final events are enqueued in all queues.\n * Shutdown of the queues is handled by the driver.\n * Downstream users can also shutdown queues manually. In this case the driver will\n * continue but no longer backpressure on them.\n *\n * @tsplus pipeable fncts.io.Stream distributedWithDynamic\n */\nfunction distributedWithDynamic_1(maximumLag, decide, done = () => tsplus_module_1.unit, __tsplusTrace) {\n return (self) => {\n const offer = (queuesRef) => (a) => tsplus_module_1.flatMap(shouldProcess => tsplus_module_1.flatMap(queues => tsplus_module_1.flatMap((ids) => (tsplus_module_14.isNonEmpty(ids) ? tsplus_module_17.update((map) => tsplus_module_45.removeMany(ids)(map), __tsplusTrace)(queuesRef) : tsplus_module_1.unit), __tsplusTrace)(tsplus_module_1.foldLeft(queues, tsplus_module_9.empty(), (b, [id, queue]) => {\n if (shouldProcess(id)) {\n return tsplus_module_1.matchCauseIO((c) => (tsplus_module_27.interrupted(c) ? tsplus_module_1.succeedNow(tsplus_module_14.append(id)(b), __tsplusTrace) : tsplus_module_1.failCauseNow(c, __tsplusTrace)), () => tsplus_module_1.succeedNow(b, __tsplusTrace), __tsplusTrace)(tsplus_module_30.offer(tsplus_module_41.succeed(a, __tsplusTrace), __tsplusTrace)(queue));\n }\n else {\n return tsplus_module_1.succeedNow(b, __tsplusTrace);\n }\n }, __tsplusTrace)), __tsplusTrace)(tsplus_module_16.get(queuesRef, __tsplusTrace)), __tsplusTrace)(decide(a));\n return tsplus_module_1.flatMap(queuesRef => tsplus_module_1.map(add => add, __tsplusTrace)(tsplus_module_1.flatMap(queuesLock => tsplus_module_1.flatMap(newQueue => {\n const finalize = (endTake) => queuesLock.withPermit(tsplus_module_1.asUnit(tsplus_module_1.flatMap(() => tsplus_module_1.flatMap(queues => tsplus_module_1.flatMap(() => tsplus_module_1.map(() => void 0, __tsplusTrace)(done(endTake)), __tsplusTrace)(tsplus_module_1.foreach(queues, (queue) => tsplus_module_1.catchJustCause((c) => (tsplus_module_27.interrupted(c) ? tsplus_module_5.just(tsplus_module_1.unit, __tsplusTrace) : tsplus_module_5.nothing(__tsplusTrace)), __tsplusTrace)(tsplus_module_30.offer(endTake, __tsplusTrace)(queue)), __tsplusTrace)), __tsplusTrace)(tsplus_module_1.map((map) => tsplus_module_45.values(map), __tsplusTrace)(tsplus_module_16.get(queuesRef, __tsplusTrace))), __tsplusTrace)(tsplus_module_15.set(tsplus_module_1.flatMap(queue => tsplus_module_1.flatMap(() => {\n const id = Symbol();\n return tsplus_module_1.map(() => tuple(id, queue), __tsplusTrace)(tsplus_module_17.update((map) => tsplus_module_45.set(id, queue)(map), __tsplusTrace)(queuesRef));\n }, __tsplusTrace)(tsplus_module_30.offer(endTake, __tsplusTrace)(queue)), __tsplusTrace)(tsplus_module_32.makeBounded(1, __tsplusTrace)), __tsplusTrace)(newQueue)), __tsplusTrace));\n return tsplus_module_1.map(() => queuesLock.withPermit(tsplus_module_1.flatten(tsplus_module_16.get(newQueue, __tsplusTrace), __tsplusTrace)), __tsplusTrace)(tsplus_module_33.fork(tsplus_module_1.matchCauseIO((cause) => finalize(tsplus_module_41.failCause(tsplus_module_27.map(tsplus_module_5.just)(cause), __tsplusTrace)), () => finalize(tsplus_module_41.fail(tsplus_module_5.nothing(__tsplusTrace), __tsplusTrace)), __tsplusTrace)(runForeachScoped_1(offer(queuesRef), __tsplusTrace)(self)), __tsplusTrace));\n }, __tsplusTrace)(tsplus_module_8.make(() => tsplus_module_1.flatMap(queue => tsplus_module_1.flatMap(id => tsplus_module_1.map(() => tuple(id, queue), __tsplusTrace)(tsplus_module_17.update((map) => tsplus_module_45.set(id, queue)(map), __tsplusTrace)(queuesRef)), __tsplusTrace)(tsplus_module_1.succeed(() => Symbol(), __tsplusTrace)), __tsplusTrace)(tsplus_module_32.makeBounded(maximumLag, __tsplusTrace)), __tsplusTrace)), __tsplusTrace)(tsplus_module_46.makeSemaphore(1, __tsplusTrace))), __tsplusTrace)(tsplus_module_2.acquireRelease(() => tsplus_module_8.make(() => tsplus_module_45.empty(), __tsplusTrace), (ref) => tsplus_module_1.flatMap((qs) => tsplus_module_1.foreach(tsplus_module_45.values(qs), (q) => tsplus_module_30.shutdown(q, __tsplusTrace), __tsplusTrace), __tsplusTrace)(tsplus_module_16.get(ref, __tsplusTrace)), __tsplusTrace));\n };\n}\n/**\n * Converts this stream to a stream that executes its effects but emits no\n * elements. Useful for sequencing effects using streams.\n *\n * @tsplus getter fncts.io.Stream drain\n */\nfunction drain_1(fa, __tsplusTrace) {\n return new Stream(tsplus_module_12.drain(fa.channel));\n}\n/**\n * Drops the specified number of elements from this stream.\n *\n * @tsplus pipeable fncts.io.Stream drop\n */\nfunction drop_1(n, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.pipeTo(dropLoop(n, __tsplusTrace))(stream.channel));\n };\n}\nfunction dropLoop(r, __tsplusTrace) {\n return tsplus_module_12.readWith((inp) => {\n const dropped = tsplus_module_14.drop(r)(inp);\n const leftover = Math.max(0, r - inp.length);\n const more = tsplus_module_14.isEmpty(inp) || leftover > 0;\n return more ? dropLoop(leftover, __tsplusTrace) : tsplus_module_13.zipRight(tsplus_module_12.id())(tsplus_module_12.write(() => dropped));\n }, tsplus_module_12.failNow, () => tsplus_module_12.unit);\n}\n/**\n * Drops all elements of the stream until the specified predicate evaluates\n * to `true`.\n *\n * @tsplus pipeable fncts.io.Stream dropUntil\n */\nexport function dropUntil(p, __tsplusTrace) {\n return (stream) => {\n return drop_1(1, __tsplusTrace)(dropWhile_1(tsplus_module_47.invert(p), __tsplusTrace)(stream));\n };\n}\n/**\n * Drops all elements of the stream for as long as the specified predicate\n * evaluates to `true`.\n *\n * @tsplus pipeable fncts.io.Stream dropWhile\n */\nfunction dropWhile_1(p, __tsplusTrace) {\n return (stream) => {\n return pipeThrough_1(tsplus_module_48.makeDropWhile(p, __tsplusTrace), __tsplusTrace)(stream);\n };\n}\n/**\n * Returns a stream whose failures and successes have been lifted into an\n * `Either`. The resulting stream cannot fail, because the failures have\n * been exposed as part of the `Either` success case.\n *\n * @note the stream will end as soon as the first error occurs.\n *\n * @tsplus getter fncts.io.Stream either\n */\nexport function either(stream, __tsplusTrace) {\n return catchAll_1((e) => succeedNow_1(tsplus_module_20.left(e, __tsplusTrace), __tsplusTrace), __tsplusTrace)(map_1(tsplus_module_20.right, __tsplusTrace)(stream));\n}\n/**\n * Returns a stream made of the concatenation in strict order of all the streams\n * produced by passing each element of this stream to `f`\n *\n * @tsplus pipeable fncts.io.Stream flatMap\n */\nfunction flatMap_1(f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.concatMap((as) => tsplus_module_14.foldLeft(tsplus_module_12.unit, (s, a) => tsplus_module_13.flatMap(() => a)(s))(tsplus_module_14.map((a) => f(a).channel)(as)))(stream.channel));\n };\n}\n/**\n * Composes this stream with the specified stream to create a cartesian product of elements,\n * but keeps only elements from this stream.\n * The `that` stream would be run multiple times, for every element in the `this` stream.\n *\n * @tsplus pipeable fncts.io.Stream zipLeft\n */\nexport function zipLeft(that, __tsplusTrace) {\n return (stream) => {\n return crossWith_1(that, (a, _) => a, __tsplusTrace)(stream);\n };\n}\n/**\n * Composes this stream with the specified stream to create a cartesian product of elements,\n * but keeps only elements from the other stream.\n * The `that` stream would be run multiple times, for every element in the `this` stream.\n *\n * @tsplus pipeable fncts.io.Stream zipRight\n */\nfunction zipRight_1(that, __tsplusTrace) {\n return (stream) => {\n return crossWith_1(that, (_, b) => b, __tsplusTrace)(stream);\n };\n}\n/**\n * @tsplus static fncts.io.StreamOps empty\n */\nconst empty_1 = fromChunkNow_1(tsplus_module_9.empty(), fileName_1 + \":1234:70\");\nexport const empty = empty_1;\n/**\n * Halts the evaluation of this stream when the provided IO completes. The given IO\n * will be forked as part of the returned stream, and its success will be discarded.\n *\n * An element in the process of being pulled will not be interrupted when the IO\n * completes. See `interruptWhen` for this behavior.\n *\n * If the IO completes with a failure, the stream will emit that failure.\n *\n * @tsplus pipeable fncts.io.Stream endWhen\n */\nexport function endWhen(io, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.unwrapScoped(() => tsplus_module_1.map((fiber) => tsplus_module_12.pipeTo(endWhenWriter(fiber, __tsplusTrace))(stream.channel), __tsplusTrace)(tsplus_module_19.forkScoped(io, __tsplusTrace))));\n };\n}\nfunction endWhenWriter(fiber, __tsplusTrace) {\n return tsplus_module_12.unwrap(() => tsplus_module_1.map((maybeExit) => tsplus_module_22.match(() => tsplus_module_12.readWith((inp) => tsplus_module_13.zipRight(endWhenWriter(fiber, __tsplusTrace))(tsplus_module_12.writeNow(inp)), tsplus_module_12.failNow, () => tsplus_module_12.unit), (exit) => tsplus_module_36.match(tsplus_module_13.failCauseNow, () => tsplus_module_12.unit)(exit))(maybeExit), __tsplusTrace)(tsplus_module_49.poll(fiber, __tsplusTrace)));\n}\n/**\n * @tsplus pipeable fncts.io.Stream ensuring\n */\nfunction ensuring_1(finalizer, __tsplusTrace) {\n return (self) => {\n return new Stream(tsplus_module_12.ensuring(finalizer)(self.channel));\n };\n}\n/**\n * @tsplus static fncts.io.StreamOps environment\n */\nfunction environment_1(__tsplusTrace) {\n return fromIO_1(tsplus_module_50.environment(__tsplusTrace), __tsplusTrace);\n}\n/**\n * Accesses the environment of the stream.\n *\n * @tsplus static fncts.io.StreamOps environmentWith\n */\nexport function environmentWith(f, __tsplusTrace) {\n return map_1(f, __tsplusTrace)(environment_1(__tsplusTrace));\n}\n/**\n * Accesses the environment of the stream in the context of an effect.\n *\n * @tsplus static fncts.io.StreamOps environmentWithIO\n */\nexport function environmentWithIO(f, __tsplusTrace) {\n return mapIO_1(f, __tsplusTrace)(environment_1(__tsplusTrace));\n}\n/**\n * Accesses the environment of the stream in the context of a stream.\n *\n * @tsplus static fncts.io.StreamOps environmentWithStream\n */\nexport function environmentWithStream(f, __tsplusTrace) {\n return flatMap_1(f, __tsplusTrace)(environment_1(__tsplusTrace));\n}\n/**\n * Creates a stream that executes the specified effect but emits no elements.\n *\n * @tsplus static fncts.io.StreamOps execute\n */\nfunction execute_1(io, __tsplusTrace) {\n return drain_1(fromIO_1(io, __tsplusTrace), __tsplusTrace);\n}\n/**\n * Halt a stream with the specified error\n *\n * @tsplus static fncts.io.StreamOps fail\n */\nexport function fail(error, __tsplusTrace) {\n return new Stream(tsplus_module_12.fail(error));\n}\n/**\n * The stream that always halts with `cause`.\n *\n * @tsplus static fncts.io.StreamOps failCause\n */\nexport function failCause(cause, __tsplusTrace) {\n return fromIO_1(tsplus_module_1.failCause(cause, __tsplusTrace), __tsplusTrace);\n}\n/**\n * The stream that always halts with `cause`.\n *\n * @tsplus static fncts.io.StreamOps failCauseNow\n */\nfunction failCauseNow_1(cause, __tsplusTrace) {\n return fromIO_1(tsplus_module_1.failCauseNow(cause, __tsplusTrace), __tsplusTrace);\n}\n/**\n * Halt a stream with the specified error\n *\n * @tsplus static fncts.io.StreamOps failNow\n */\nfunction failNow_1(error, __tsplusTrace) {\n return new Stream(tsplus_module_12.failNow(error));\n}\nexport function filter(predicate, __tsplusTrace) {\n return (fa) => {\n return mapChunks_1((chunk) => tsplus_module_14.filter(predicate)(chunk), __tsplusTrace)(fa);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream filterIO\n */\nexport function filterIO(f, __tsplusTrace) {\n return (fa) => {\n return new Stream(tsplus_module_12.pipeTo(filterIOLoop(tsplus_module_40.empty()[Symbol.iterator](), f, __tsplusTrace))(fa.channel));\n };\n}\nfunction filterIOLoop(iterator, f, __tsplusTrace) {\n const next = iterator.next();\n if (next.done) {\n return tsplus_module_12.readWithCause((elem) => filterIOLoop(elem[Symbol.iterator](), f, __tsplusTrace), tsplus_module_13.failCauseNow, tsplus_module_13.succeedNow);\n }\n else {\n return tsplus_module_12.unwrap(() => tsplus_module_1.map((b) => b\n ? tsplus_module_13.zipRight(filterIOLoop(iterator, f, __tsplusTrace))(tsplus_module_12.writeNow(tsplus_module_21.single(next.value))) : filterIOLoop(iterator, f, __tsplusTrace), __tsplusTrace)(f(next.value)));\n }\n}\n/**\n * @tsplus pipeable fncts.io.Stream filterMap\n */\nfunction filterMap_1(f, __tsplusTrace) {\n return (fa) => {\n return mapChunks_1((chunk) => tsplus_module_14.filterMap(f)(chunk), __tsplusTrace)(fa);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream filterMapIO\n */\nexport function filterMapIO(f, __tsplusTrace) {\n return (fa) => {\n return new Stream(tsplus_module_12.pipeTo(filterMapIOLoop(tsplus_module_40.empty()[Symbol.iterator](), f, __tsplusTrace))(fa.channel));\n };\n}\nfunction filterMapIOLoop(iterator, f, __tsplusTrace) {\n const next = iterator.next();\n if (next.done) {\n return tsplus_module_12.readWithCause((elem) => filterMapIOLoop(elem[Symbol.iterator](), f, __tsplusTrace), tsplus_module_13.failCauseNow, tsplus_module_13.succeedNow);\n }\n else {\n return tsplus_module_12.unwrap(() => tsplus_module_1.map((b) => tsplus_module_22.match(() => filterMapIOLoop(iterator, f, __tsplusTrace), (b) => tsplus_module_13.zipRight(filterMapIOLoop(iterator, f, __tsplusTrace))(tsplus_module_12.writeNow(tsplus_module_21.single(b))))(b), __tsplusTrace)(f(next.value)));\n }\n}\n/**\n * Finds the first element emitted by this stream that satisfies the provided predicate.\n *\n * @tsplus pipeable fncts.io.Stream find\n */\nexport function find(p, __tsplusTrace) {\n return (stream) => {\n const loop = tsplus_module_12.readWith((inp) => tsplus_module_22.match(() => loop, (a) => tsplus_module_12.writeNow(tsplus_module_21.single(a)))(tsplus_module_14.find(p)(inp)), tsplus_module_12.failNow, () => tsplus_module_12.unit);\n return new Stream(tsplus_module_12.pipeTo(loop)(stream.channel));\n };\n}\n/**\n * Finds the first element emitted by this stream that satisfies the provided effectful predicate.\n *\n * @tsplus pipeable fncts.io.Stream findIO\n */\nexport function findIO(f, __tsplusTrace) {\n return (stream) => {\n const loop = tsplus_module_12.readWith((inp) => tsplus_module_12.unwrap(() => tsplus_module_1.map((maybeA) => tsplus_module_22.match(() => loop, (a) => tsplus_module_12.writeNow(tsplus_module_21.single(a)))(maybeA), __tsplusTrace)(tsplus_module_51.findIO(f, __tsplusTrace)(inp))), tsplus_module_12.failNow, () => tsplus_module_12.unit);\n return new Stream(tsplus_module_12.pipeTo(loop)(stream.channel));\n };\n}\n/**\n * Flattens this stream-of-streams into a stream made of the concatenation in\n * strict order of all the streams.\n *\n * @tsplus getter fncts.io.Stream flatten\n */\nfunction flatten_1(self, __tsplusTrace) {\n return flatMap_1(identity, __tsplusTrace)(self);\n}\n/**\n * Submerges the chunks carried by this stream into the stream's structure, while\n * still preserving them.\n *\n * @tsplus getter fncts.io.Stream flattenChunks\n */\nfunction flattenChunks_1(stream, __tsplusTrace) {\n return new Stream(tsplus_module_12.mapOut((c) => tsplus_module_14.flatten(c))(stream.channel));\n}\n/**\n * Unwraps `Exit` values that also signify end-of-stream by failing with `None`.\n *\n * For `Exit<E, A>` values that do not signal end-of-stream, prefer:\n *\n * @tsplus getter fncts.io.Stream flattenExitOption\n */\nfunction flattenExitOption_1(stream, __tsplusTrace) {\n const processChunk = (chunk, cont) => {\n const [toEmit, rest] = tsplus_module_14.splitWhere((_) => !tsplus_module_52.isSuccess(_))(chunk);\n const next = tsplus_module_22.match(() => cont, (exit) => tsplus_module_36.match((cause) => tsplus_module_22.match(() => tsplus_module_13.endNow(undefined), tsplus_module_13.failCauseNow)(tsplus_module_27.flipCauseOption(cause)), () => tsplus_module_13.endNow(undefined))(exit))(tsplus_module_14.head(rest));\n return tsplus_module_13.zipRight(next)(tsplus_module_12.writeNow(tsplus_module_14.filterMap((exit) => tsplus_module_36.match(() => tsplus_module_5.nothing(__tsplusTrace), tsplus_module_5.just)(exit))(toEmit)));\n };\n const process = tsplus_module_12.readWithCause((chunk) => processChunk(chunk, process), tsplus_module_13.failCauseNow, (_) => tsplus_module_13.endNow(undefined));\n return new Stream(tsplus_module_12.pipeTo(process)(stream.channel));\n}\n/**\n * Unwraps `Exit` values and flatten chunks that also signify end-of-stream by failing with `None`.\n *\n * @tsplus getter fncts.io.Stream flattenTake\n */\nfunction flattenTake_1(stream, __tsplusTrace) {\n return flattenChunks_1(flattenExitOption_1(map_1((take) => take.exit, __tsplusTrace)(stream), __tsplusTrace), __tsplusTrace);\n}\n/**\n * Repeats this stream forever.\n *\n * @tsplus getter fncts.io.Stream forever\n */\nfunction forever_1(stream, __tsplusTrace) {\n return new Stream(tsplus_module_12.repeated(stream.channel));\n}\n/**\n * @tsplus static fncts.io.StreamOps fromAsyncIterable\n */\nexport function fromAsyncIterable(iterable, __tsplusTrace) {\n return new Stream(fromAsyncIterableLoop(iterable[Symbol.asyncIterator](), __tsplusTrace));\n}\nfunction fromAsyncIterableLoop(iterator, __tsplusTrace) {\n return tsplus_module_12.unwrap(() => tsplus_module_1.async((k) => {\n iterator\n .next()\n .then((result) => result.done\n ? k(tsplus_module_1.succeedNow(tsplus_module_13.end(() => undefined), __tsplusTrace))\n : k(tsplus_module_1.succeedNow(tsplus_module_13.zipRight(fromAsyncIterableLoop(iterator, __tsplusTrace))(tsplus_module_12.writeNow(tsplus_module_21.single(result.value))), __tsplusTrace)));\n }));\n}\n/**\n * Creates a stream from a `Chunk` of values\n *\n * @tsplus static fncts.io.StreamOps fromChunk\n */\nfunction fromChunk_1(c, __tsplusTrace) {\n return new Stream(tsplus_module_12.unwrap(() => tsplus_module_1.succeedNow(tsplus_module_12.write(c), __tsplusTrace)));\n}\n/**\n * Creates a stream from a `Chunk` of values\n *\n * @tsplus static fncts.io.StreamOps fromChunkNow\n */\nfunction fromChunkNow_1(c, __tsplusTrace) {\n return new Stream(tsplus_module_12.defer(() => (tsplus_module_14.isEmpty(c) ? tsplus_module_12.unit : tsplus_module_12.writeNow(c))));\n}\n/**\n * @tsplus static fncts.io.StreamOps fromHub\n */\nexport function fromHub(hub, maxChunkSize = DEFAULT_CHUNK_SIZE, __tsplusTrace) {\n return flatMap_1((queue) => fromQueueWithShutdown_1(queue, maxChunkSize, __tsplusTrace), __tsplusTrace)(scoped_1(() => tsplus_module_34.subscribe(hub(), __tsplusTrace), __tsplusTrace));\n}\n/**\n * @tsplus static fncts.io.StreamOps fromHubScoped\n */\nexport function fromHubScoped(hub, maxChunkSize = DEFAULT_CHUNK_SIZE, __tsplusTrace) {\n return tsplus_module_1.defer(() => tsplus_module_1.map((queue) => fromQueueWithShutdown_1(queue, maxChunkSize, __tsplusTrace), __tsplusTrace)(tsplus_module_34.subscribe(hub(), __tsplusTrace)), __tsplusTrace);\n}\n/**\n * Creates a stream from an effect producing a value of type `A`\n *\n * @tsplus static fncts.io.StreamOps fromIO\n */\nfunction fromIO_1(fa, __tsplusTrace) {\n return fromIOMaybe_1(tsplus_module_1.mapError(tsplus_module_5.just, __tsplusTrace)(fa), __tsplusTrace);\n}\n/**\n * Creates a stream from an effect producing a value of type `A` or an empty Stream\n *\n * @tsplus static fncts.io.StreamOps fromIOMaybe\n */\nfunction fromIOMaybe_1(fa, __tsplusTrace) {\n return new Stream(tsplus_module_12.unwrap(() => tsplus_module_1.match((maybeError) => tsplus_module_22.match(() => tsplus_module_12.unit, tsplus_module_12.failNow)(maybeError), (a) => tsplus_module_12.writeNow(tsplus_module_21.single(a)), __tsplusTrace)(fa)));\n}\n/**\n * @tsplus static fncts.io.StreamOps fromIterable\n */\nexport function fromIterable(iterable, maxChunkSize = DEFAULT_CHUNK_SIZE, __tsplusTrace) {\n return unwrap_1(tsplus_module_1.succeed(() => {\n const loop = (iterator) => tsplus_module_12.unwrap(() => tsplus_module_1.succeed(() => {\n let result = iterator.next();\n if (result.done) {\n return tsplus_module_12.unit;\n }\n if (maxChunkSize === 1) {\n return tsplus_module_13.zipRight(loop(iterator))(tsplus_module_12.writeNow(tsplus_module_21.single(result.value)));\n }\n else {\n const out = Array(maxChunkSize);\n out[0] = result.value;\n let count = 1;\n while (count < maxChunkSize && !(result = iterator.next()).done) {\n out[count] = result.value;\n count++;\n }\n return tsplus_module_13.zipRight(loop(iterator))(tsplus_module_12.writeNow(tsplus_module_21.from(out)));\n }\n }, __tsplusTrace));\n return new Stream(loop(iterable[Symbol.iterator]()));\n }, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.StreamOps fromIterableSingle\n */\nexport function fromIterableSingle(iterable, __tsplusTrace) {\n return flatMap_1((iterator) => repeatIOMaybe_1(tsplus_module_1.defer(() => {\n const value = iterator.next();\n if (value.done) {\n return tsplus_module_1.failNow(tsplus_module_5.nothing(__tsplusTrace), __tsplusTrace);\n }\n else {\n return tsplus_module_1.succeedNow(value.value, __tsplusTrace);\n }\n }, __tsplusTrace), __tsplusTrace), __tsplusTrace)(fromIO_1(tsplus_module_1.succeed(() => iterable[Symbol.iterator](), __tsplusTrace), __tsplusTrace));\n}\n/**\n * @tsplus static fncts.io.StreamOps fromPull\n */\nfunction fromPull_1(scopedPull, __tsplusTrace) {\n return unwrapScoped_1(tsplus_module_1.map((pull) => repeatIOChunkMaybe_1(pull, __tsplusTrace), __tsplusTrace)(scopedPull), __tsplusTrace);\n}\n/**\n * Creates a stream from a `Queue` of values\n *\n * @tsplus static fncts.io.StreamOps fromQueue\n */\nfunction fromQueue_1(queue, maxChunkSize = DEFAULT_CHUNK_SIZE, __tsplusTrace) {\n return repeatIOChunkMaybe_1(tsplus_module_1.catchAllCause((c) => tsplus_module_1.flatMap((down) => {\n if (down && tsplus_module_27.interrupted(c)) {\n return tsplus_module_53.end;\n }\n else {\n return tsplus_module_53.failCause(c);\n }\n }, __tsplusTrace)(tsplus_module_30.isShutdown(queue, __tsplusTrace)), __tsplusTrace)(tsplus_module_1.map(tsplus_module_21.from, __tsplusTrace)(tsplus_module_54.takeBetween(1, maxChunkSize, __tsplusTrace)(queue))), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.StreamOps fromQueueWithShutdown\n */\nfunction fromQueueWithShutdown_1(queue, maxChunkSize = DEFAULT_CHUNK_SIZE, __tsplusTrace) {\n return ensuring_1(tsplus_module_30.shutdown(queue, __tsplusTrace), __tsplusTrace)(fromQueue_1(queue, maxChunkSize, __tsplusTrace));\n}\n/**\n * @tsplus static fncts.io.StreamOps fromReadableStream\n */\nexport function fromReadableStream(evaluate, onError) {\n return unwrapScoped_1(tsplus_module_1.map((reader) => repeatIOMaybe_1(tsplus_module_1.flatMap(({ done, value }) => done ? tsplus_module_1.failNow(tsplus_module_5.nothing(fileName_1 + \":1782:38\"), fileName_1 + \":1782:30\") : tsplus_module_1.succeedNow(value, fileName_1 + \":1782:57\"), fileName_1 + \":1781:88\")(tsplus_module_1.fromPromiseCatch(() => reader.read(), (reason) => tsplus_module_5.just(onError(reason), fileName_1 + \":1781:62\"), fileName_1 + \":1781:30\")), fileName_1 + \":1780:29\"), fileName_1 + \":1779:11\")(tsplus_module_2.acquireRelease(() => tsplus_module_1.succeed(() => evaluate().getReader(), fileName_1 + \":1777:7\"), (reader) => tsplus_module_1.fromPromiseHalt(() => reader.cancel(), fileName_1 + \":1778:53\"), fileName_1 + \":1778:22\")), fileName_1 + \":1776:29\");\n}\n/**\n * Halt a stream with the specified exception\n *\n * @tsplus static fncts.io.StreamOps halt\n */\nfunction halt_1(u, __tsplusTrace) {\n return new Stream(tsplus_module_12.halt(u));\n}\n/**\n * Halt a stream with the specified exception\n *\n * @tsplus static fncts.io.StreamOps haltNow\n */\nexport function haltNow(u, __tsplusTrace) {\n return new Stream(tsplus_module_12.halt(() => u));\n}\n/**\n * Halts the evaluation of this stream when the provided IO completes. The\n * given IO will be forked as part of the returned stream, and its success\n * will be discarded.\n *\n * An element in the process of being pulled will not be interrupted when the\n * IO completes. See `interruptWhen` for this behavior.\n *\n * If the IO completes with a failure, the stream will emit that failure.\n *\n * @tsplus pipeable fncts.io.Stream haltWhen\n */\nexport function haltWhen(io, __tsplusTrace) {\n return (fa) => {\n return new Stream(tsplus_module_12.unwrapScoped(() => tsplus_module_1.map((fiber) => tsplus_module_12.pipeTo(haltWhenWriter(fiber, __tsplusTrace))(fa.channel), __tsplusTrace)(tsplus_module_19.forkScoped(io, __tsplusTrace))));\n };\n}\n/**\n * Halts the evaluation of this stream when the provided promise resolves.\n *\n * If the promise completes with a failure, the stream will emit that failure.\n *\n * @tsplus pipeable fncts.io.Stream haltWhen\n */\nexport function haltWhenFuture(future, __tsplusTrace) {\n return (fa) => {\n return new Stream(tsplus_module_12.pipeTo(haltWhenFutureWriter(future, __tsplusTrace))(fa.channel));\n };\n}\nfunction haltWhenFutureWriter(future, __tsplusTrace) {\n return tsplus_module_12.unwrap(() => tsplus_module_1.map((maybeIO) => tsplus_module_22.match(() => tsplus_module_12.readWith((i) => tsplus_module_13.zipRight(haltWhenFutureWriter(future, __tsplusTrace))(tsplus_module_12.writeNow(i)), tsplus_module_12.failNow, () => tsplus_module_12.unit), (io) => tsplus_module_12.unwrap(() => tsplus_module_1.match(tsplus_module_12.failNow, () => tsplus_module_12.unit, __tsplusTrace)(io)))(maybeIO), __tsplusTrace)(tsplus_module_37.poll(future, __tsplusTrace)));\n}\nfunction haltWhenWriter(fiber, __tsplusTrace) {\n return tsplus_module_12.unwrap(() => tsplus_module_1.map((maybeExit) => tsplus_module_22.match(() => tsplus_module_12.readWith((i) => tsplus_module_13.zipRight(haltWhenWriter(fiber, __tsplusTrace))(tsplus_module_12.writeNow(i)), tsplus_module_12.failNow, () => tsplus_module_12.unit), (exit) => tsplus_module_36.match(tsplus_module_13.failCauseNow, () => tsplus_module_12.unit)(exit))(maybeExit), __tsplusTrace)(tsplus_module_49.poll(fiber, __tsplusTrace)));\n}\n/**\n * @tsplus pipeable fncts.io.Stream interleave\n */\nexport function interleave(sb, __tsplusTrace) {\n return (sa) => {\n return interleaveWith_1(sb, forever_1(fromChunk_1(() => tsplus_module_21.make(true, false), __tsplusTrace), __tsplusTrace), __tsplusTrace)(sa);\n };\n}\n/**\n * Combines this stream and the specified stream deterministically using the\n * stream of boolean values `b` to control which stream to pull from next.\n * `true` indicates to pull from this stream and `false` indicates to pull\n * from the specified stream. Only consumes as many elements as requested by\n * `b`. If either this stream or the specified stream are exhausted further\n * requests for values from that stream will be ignored.\n *\n * @tsplus pipeable fncts.io.Stream interleaveWith\n */\nfunction interleaveWith_1(sb, b, __tsplusTrace) {\n return (sa) => {\n return new Stream(tsplus_module_12.unwrapScoped(() => tsplus_module_1.map(([left, right]) => {\n const process = (leftDone, rightDone) => tsplus_module_12.readWithCause((b) => {\n if (b && !leftDone) {\n return tsplus_module_13.flatMap((take) => tsplus_module_29.match(rightDone ? tsplus_module_12.unit : process(true, rightDone), tsplus_module_13.failCauseNow, (chunk) => tsplus_module_13.zipRight(process(leftDone, rightDone))(tsplus_module_12.writeNow(chunk)))(take))(tsplus_module_12.fromIO(() => tsplus_module_7.take(left)));\n }\n if (!b && !rightDone) {\n return tsplus_module_13.flatMap((take) => tsplus_module_29.match(leftDone ? tsplus_module_12.unit : process(leftDone, true), tsplus_module_13.failCauseNow, (chunk) => tsplus_module_13.zipRight(process(leftDone, rightDone))(tsplus_module_12.writeNow(chunk)))(take))(tsplus_module_12.fromIO(() => tsplus_module_7.take(right)));\n }\n return process(leftDone, rightDone);\n }, tsplus_module_13.failCauseNow, () => tsplus_module_12.unit);\n return tsplus_module_12.pipeTo(process(false, false))(tsplus_module_12.concatMap(tsplus_module_12.writeChunk)(b.channel));\n }, __tsplusTrace)(tsplus_module_1.flatMap(left => tsplus_module_1.flatMap(right => tsplus_module_1.flatMap(() => tsplus_module_1.map(() => tuple(left, right), __tsplusTrace)(tsplus_module_33.fork(tsplus_module_18.runScoped(tsplus_module_12.pipeTo(interleaveWithProducer(right, __tsplusTrace))(tsplus_module_12.concatMap(tsplus_module_12.writeChunk)(sb.channel))), __tsplusTrace)), __tsplusTrace)(tsplus_module_33.fork(tsplus_module_18.runScoped(tsplus_module_12.pipeTo(interleaveWithProducer(left, __tsplusTrace))(tsplus_module_12.concatMap(tsplus_module_12.writeChunk)(sa.channel))), __tsplusTrace)), __tsplusTrace)(tsplus_module_7.make()), __tsplusTrace)(tsplus_module_7.make()))));\n };\n}\nfunction interleaveWithProducer(handoff, __tsplusTrace) {\n return tsplus_module_12.readWithCause((value) => tsplus_module_13.zipRight(interleaveWithProducer(handoff, __tsplusTrace))(tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_29.single(value))(handoff))), (cause) => tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_29.failCause(cause))(handoff)), () => tsplus_module_12.fromIO(() => tsplus_module_7.offer(tsplus_module_29.end)(handoff)));\n}\n/**\n * Interrupts the evaluation of this stream when the provided IO completes. The given\n * IO will be forked as part of this stream, and its success will be discarded. This\n * combinator will also interrupt any in-progress element being pulled from upstream.\n *\n * If the IO completes with a failure before the stream completes, the returned stream\n * will emit that failure.\n *\n * @tsplus pipeable fncts.io.Stream interruptWhen\n */\nexport function interruptWhen(io, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_55.interruptWhen(io)(stream.channel));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream interruptWhen\n */\nexport function interruptWhenFuture(future, __tsplusTrace) {\n return (fa) => {\n return new Stream(tsplus_module_55.interruptWhenFuture(future)(fa.channel));\n };\n}\n/**\n * Intersperse stream with provided element\n */\nexport function intersperse(stream, middle, __tsplusTrace) {\n return new Stream(tsplus_module_12.pipeTo(intersperseWriter(middle, true, __tsplusTrace))(stream.channel));\n}\nfunction intersperseWriter(middle, isFirst, __tsplusTrace) {\n return tsplus_module_12.readWith((inp) => {\n const builder = tsplus_module_14.builder();\n let flagResult = isFirst;\n tsplus_module_14.forEach((a) => {\n if (flagResult) {\n flagResult = false;\n builder.append(a);\n }\n else {\n builder.append(middle);\n builder.append(a);\n }\n })(inp);\n return tsplus_module_13.zipRight(intersperseWriter(middle, flagResult, __tsplusTrace))(tsplus_module_12.writeNow(builder.result()));\n }, tsplus_module_12.failNow, () => tsplus_module_12.unit);\n}\n/**\n * Transforms the elements of this stream using the supplied function.\n *\n * @tsplus pipeable fncts.io.Stream map\n */\nfunction map_1(f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.mapOut((as) => tsplus_module_14.map(f)(as))(stream.channel));\n };\n}\n/**\n * Statefully maps over the elements of this stream to produce new elements.\n *\n * @tsplus pipeable fncts.io.Stream mapAccum\n */\nfunction mapAccum_1(s, f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.pipeTo(mapAccumAccumulator(s, f, __tsplusTrace))(stream.channel));\n };\n}\nfunction mapAccumAccumulator(currS, f, __tsplusTrace) {\n return tsplus_module_12.readWith((inp) => {\n const [nextS, bs] = tsplus_module_14.mapAccum(currS, f)(inp);\n return tsplus_module_13.zipRight(mapAccumAccumulator(nextS, f, __tsplusTrace))(tsplus_module_12.writeNow(bs));\n }, tsplus_module_12.failNow, () => tsplus_module_12.unit);\n}\n/**\n * Statefully and effectfully maps over the elements of this stream to produce\n * new elements.\n *\n * @tsplus pipeable fncts.io.Stream mapAccumIO\n */\nfunction mapAccumIO_1(s, f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.pipeTo(mapAccumIOAccumulator(s, f, __tsplusTrace))(stream.channel));\n };\n}\nfunction mapAccumIOAccumulator(s, f, __tsplusTrace) {\n return tsplus_module_12.readWith((inp) => tsplus_module_12.unwrap(() => tsplus_module_1.defer(() => {\n const outputChunk = tsplus_module_14.builder();\n const emit = (b) => tsplus_module_1.succeed(() => {\n outputChunk.append(b);\n }, __tsplusTrace);\n return tsplus_module_1.match((e) => {\n const partialResult = outputChunk.result();\n return tsplus_module_14.isNonEmpty(partialResult) ? tsplus_module_13.zipRight(tsplus_module_12.failNow(e))(tsplus_module_12.writeNow(partialResult))\n : tsplus_module_12.failNow(e);\n }, (s) => tsplus_module_13.zipRight(mapAccumIOAccumulator(s, f, __tsplusTrace))(tsplus_module_12.writeNow(outputChunk.result())), __tsplusTrace)(tsplus_module_1.foldLeft(inp, s, (s1, a) => tsplus_module_1.flatMap(([b, s2]) => tsplus_module_1.as(() => s2, __tsplusTrace)(emit(b)), __tsplusTrace)(f(s1, a)), __tsplusTrace));\n }, __tsplusTrace)), tsplus_module_12.failNow, () => tsplus_module_12.unit);\n}\n/**\n * Transforms the chunks emitted by this stream.\n *\n * @tsplus pipeable fncts.io.Stream mapChunks\n */\nfunction mapChunks_1(f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.mapOut(f)(stream.channel));\n };\n}\n/**\n * Effectfully transforms the chunks emitted by this stream.\n *\n * @tsplus pipeable fncts.io.Stream mapChunksIO\n */\nexport function mapChunksIO(f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.mapOutIO(f)(stream.channel));\n };\n}\n/**\n * Maps each element to an iterable, and flattens the iterables into the\n * output of this stream.\n *\n * @tsplus pipeable fncts.io.Stream mapConcat\n */\nexport function mapConcat(f, __tsplusTrace) {\n return (stream) => {\n return mapConcatChunk_1((a) => tsplus_module_21.from(f(a)), __tsplusTrace)(stream);\n };\n}\n/**\n * Maps each element to a chunk, and flattens the chunks into the output of\n * this stream.\n *\n * @tsplus pipeable fncts.io.Stream mapConcatChunk\n */\nfunction mapConcatChunk_1(f, __tsplusTrace) {\n return (stream) => {\n return mapChunks_1((c) => tsplus_module_14.flatMap(f)(c), __tsplusTrace)(stream);\n };\n}\n/**\n * Effectfully maps each element to a chunk, and flattens the chunks into\n * the output of this stream.\n *\n * @tsplus pipeable fncts.io.Stream mapConcatChunkIO\n */\nexport function mapConcatChunkIO(f, __tsplusTrace) {\n return (stream) => {\n return mapConcatChunk_1(identity, __tsplusTrace)(mapIO_1(f, __tsplusTrace)(stream));\n };\n}\n/**\n * Effectfully maps each element to an iterable, and flattens the iterables into\n * the output of this stream.\n *\n * @tsplus pipeable fncts.io.Stream mapConcatIO\n */\nexport function mapConcatIO(f, __tsplusTrace) {\n return (stream) => {\n return mapConcatChunk_1(identity, __tsplusTrace)(mapIO_1((a) => tsplus_module_1.map(tsplus_module_21.from, __tsplusTrace)(f(a)), __tsplusTrace)(stream));\n };\n}\n/**\n * Transforms the errors emitted by this stream using `f`.\n *\n * @tsplus pipeable fncts.io.Stream mapError\n */\nfunction mapError_1(f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.mapError(f)(stream.channel));\n };\n}\n/**\n * Transforms the full causes of failures emitted by this stream.\n *\n * @tsplus pipeable fncts.io.Stream mapErrorCause\n */\nexport function mapErrorCause(f, __tsplusTrace) {\n return (fa) => {\n return new Stream(tsplus_module_12.mapErrorCause(f)(fa.channel));\n };\n}\n/**\n * Maps over elements of the stream with the specified effectful function.\n *\n * @tsplus pipeable fncts.io.Stream mapIO\n */\nfunction mapIO_1(f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.pipeTo(mapIOLoop(tsplus_module_40.empty()[Symbol.iterator](), f, __tsplusTrace))(stream.channel));\n };\n}\n/**\n * Maps over elements of the stream with the specified effectful function,\n * executing up to `n` invocations of `f` concurrently. Transformed elements\n * will be emitted in the original order.\n *\n * @note This combinator destroys the chunking structure. It's recommended to use chunkN afterwards.\n *\n * @tsplus pipeable fncts.io.Stream mapIOConcurrently\n */\nexport function mapIOConcurrently(n, f, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.mapOut(tsplus_module_21.single)(tsplus_module_56.mapOutConcurrentIO(n, f)(tsplus_module_12.concatMap(tsplus_module_12.writeChunk)(stream.channel))));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream mapIOConcurrentlyUnordered\n */\nexport function mapIOConcurrentlyUnordered(n, f) {\n return (self) => {\n return pipeThroughChannelOrFail_1(tsplus_module_57.mergeMap((inp) => fromIO_1(f(inp), fileName_1 + \":2223:41\").channel, n, 16)(tsplus_module_12.concatMap((chunk) => tsplus_module_12.writeChunk(chunk))(tsplus_module_12.id())))(self);\n };\n}\nfunction mapIOLoop(iterator, f, __tsplusTrace) {\n const next = iterator.next();\n if (next.done) {\n return tsplus_module_12.readWithCause((elem) => mapIOLoop(elem[Symbol.iterator](), f, __tsplusTrace), tsplus_module_13.failCauseNow, tsplus_module_13.succeedNow);\n }\n else {\n return tsplus_module_12.unwrap(() => tsplus_module_1.map((b) => tsplus_module_13.zipRight(mapIOLoop(iterator, f, __tsplusTrace))(tsplus_module_12.writeNow(tsplus_module_21.single(b))), __tsplusTrace)(f(next.value)));\n }\n}\n/**\n * Merges this stream and the specified stream together.\n *\n * New produced stream will terminate when both specified stream terminate if\n * no termination strategy is specified.\n *\n * @tsplus pipeable fncts.io.Stream merge\n */\nfunction merge_1(that, strategy = \"Both\", __tsplusTrace) {\n return (self) => {\n return mergeWith_1(that, identity, identity, strategy, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream mergeEither\n */\nfunction mergeEither_1(fb, __tsplusTrace) {\n return (fa) => {\n return mergeWith_1(fb, tsplus_module_20.left, tsplus_module_20.right)(fa);\n };\n}\n/**\n * Merges this stream and the specified stream together. New produced stream\n * will terminate when either stream terminates.\n *\n * @tsplus pipeable fncts.io.Stream mergeHaltEither\n */\nexport function mergeHaltEither(that, __tsplusTrace) {\n return (self) => {\n return merge_1(that, \"Either\", __tsplusTrace)(self);\n };\n}\n/**\n * Merges this stream and the specified stream together. New produced stream\n * will terminate when this stream terminates.\n *\n * @tsplus pipeable fncts.io.Stream mergeHaltLeft\n */\nexport function mergeHaltLeft(that, __tsplusTrace) {\n return (self) => {\n return merge_1(that, \"Left\", __tsplusTrace)(self);\n };\n}\n/**\n * Merges this stream and the specified stream together. New produced stream\n * will terminate when the specified stream terminates.\n *\n * @tsplus pipeable fncts.io.Stream mergeHaltRight\n */\nexport function mergeHaltRight(that, __tsplusTrace) {\n return (self) => {\n return merge_1(that, \"Right\", __tsplusTrace)(self);\n };\n}\n/**\n * Merges this stream and the specified stream together, discarding the values\n * from the right stream.\n *\n * @tsplus pipeable fncts.io.Stream mergeLeft\n */\nexport function mergeLeft(that, __tsplusTrace) {\n return (self) => {\n return merge_1(drain_1(that, __tsplusTrace))(self);\n };\n}\n/**\n * Maps each element of this stream to another stream and returns the\n * non-deterministic merge of those streams, executing up to `n` inner streams\n * concurrently. Up to `bufferSize` elements of the produced streams may be\n * buffered in memory by this operator.\n *\n * @tsplus pipeable fncts.io.Stream mergeMap\n */\nfunction mergeMap_1(f, n, bufferSize = 16, __tsplusTrace) {\n return (ma) => {\n return new Stream(tsplus_module_57.mergeMap((a) => f(a).channel, n, bufferSize)(tsplus_module_12.concatMap(tsplus_module_12.writeChunk)(ma.channel)));\n };\n}\n/**\n * Maps over elements of the stream with the specified effectful function,\n * executing up to `n` invocations of `f` concurrently. The element order\n * is not enforced by this combinator, and elements may be reordered.\n *\n * @tsplus pipeable fncts.io.Stream mergeMapIO\n */\nexport function mergeMapIO(f, n, bufferSize = 16, __tsplusTrace) {\n return (stream) => {\n return mergeMap_1((a) => fromIO_1(f(a), __tsplusTrace), n, bufferSize, __tsplusTrace)(stream);\n };\n}\n/**\n * Merges this stream and the specified stream together, discarding the values\n * from the left stream.\n *\n * @tsplus pipeable fncts.io.Stream mergeRight\n */\nexport function mergeRight(that, __tsplusTrace) {\n return (self) => {\n return merge_1(that)(drain_1(self, __tsplusTrace));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream mergeWith\n */\nfunction mergeWith_1(sb, l, r, strategy = \"Both\", __tsplusTrace) {\n return (sa) => {\n return new Stream(tsplus_module_58.mergeWith(map_1(r, __tsplusTrace)(sb).channel, mergeWithHandler(strategy === \"Either\" || strategy === \"Left\", __tsplusTrace), mergeWithHandler(strategy === \"Either\" || strategy === \"Right\", __tsplusTrace))(map_1(l, __tsplusTrace)(sa)\n .channel));\n };\n}\nfunction mergeWithHandler(terminate, __tsplusTrace) {\n return (exit) => terminate || !tsplus_module_52.isSuccess(exit) ? tsplus_module_59.done(tsplus_module_1.fromExitNow(exit, __tsplusTrace)) : tsplus_module_59.wait(tsplus_module_1.fromExitNow);\n}\n/**\n * Runs the specified effect if this stream fails, providing the error to the effect if it exists.\n *\n * Note: Unlike `IO.onError`, there is no guarantee that the provided effect will not be interrupted.\n *\n * @tsplus pipeable fncts.io.Stream onError\n */\nexport function onError(cleanup, __tsplusTrace) {\n return (stream) => {\n return catchAllCause_1((cause) => fromIO_1(tsplus_module_1.zipRight(tsplus_module_1.failCauseNow(cause, __tsplusTrace), __tsplusTrace)(cleanup(cause)), __tsplusTrace), __tsplusTrace)(stream);\n };\n}\n/**\n * Switches to the provided stream in case this one fails with a typed error.\n *\n * See also Stream#catchAll\n *\n * @tsplus pipeable fncts.io.Stream orElse\n */\nfunction orElse_1(that, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.orElse(that().channel)(stream.channel));\n };\n}\n/**\n * Switches to the provided stream in case this one fails with a typed error.\n *\n * See also ZStream#catchAll\n *\n * @tsplus pipeable fncts.io.Stream orElseEither\n */\nexport function orElseEither(that, __tsplusTrace) {\n return (stream) => {\n return orElse_1(() => map_1(tsplus_module_20.right, __tsplusTrace)(that()), __tsplusTrace)(map_1(tsplus_module_20.left, __tsplusTrace)(stream));\n };\n}\n/**\n * Fails with given error in case this one fails with a typed error.\n *\n * See also Stream#catchAll\n *\n * @tsplus pipeable fncts.io.Stream orElseFail\n */\nexport function orElseFail(e, __tsplusTrace) {\n return (stream) => {\n return orElse_1(() => failNow_1(e(), __tsplusTrace), __tsplusTrace)(stream);\n };\n}\n/**\n * Switches to the provided stream in case this one fails with the `None` value.\n *\n * See also Stream#catchAll.\n */\nexport function orElseOptional(stream, that, __tsplusTrace) {\n return catchAll_1((maybeError) => tsplus_module_22.match(() => that(), (e) => failNow_1(tsplus_module_5.just(e, __tsplusTrace), __tsplusTrace))(maybeError), __tsplusTrace)(stream);\n}\n/**\n * Succeeds with the specified value if this one fails with a typed error.\n *\n * @tsplus pipeable fncts.io.Stream orElseSucceed\n */\nexport function orElseSucceed(a, __tsplusTrace) {\n return (stream) => {\n return orElse_1(() => succeedNow_1(a(), __tsplusTrace), __tsplusTrace)(stream);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream pipeThrough\n */\nfunction pipeThrough_1(sa, __tsplusTrace) {\n return (ma) => {\n return new Stream(tsplus_module_12.pipeToOrFail(sa.channel)(ma.channel));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream pipeThroughChannelOrFail\n */\nfunction pipeThroughChannelOrFail_1(channel) {\n return (self) => {\n return new Stream(tsplus_module_12.pipeToOrFail(channel)(self.channel));\n };\n}\n/**\n * Provides the stream with its required environment, which eliminates\n * its dependency on `R`.\n *\n * @tsplus pipeable fncts.io.Stream provideEnvironment\n */\nfunction provideEnvironment_1(r, __tsplusTrace) {\n return (ra) => {\n return new Stream(tsplus_module_12.provideEnvironment(() => r)(ra.channel));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream provideLayer\n */\nfunction provideLayer_1(layer, __tsplusTrace) {\n return (self) => {\n return new Stream(tsplus_module_12.unwrapScoped(() => tsplus_module_1.map((r) => tsplus_module_12.provideEnvironment(() => r)(self.channel), __tsplusTrace)(tsplus_module_60.build(layer, __tsplusTrace))));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream provideSomeLayer\n */\nexport function provideSomeLayer(layer, __tsplusTrace) {\n return (self) => {\n // @ts-expect-error\n return provideLayer_1(tsplus_module_61.and(layer, __tsplusTrace)(tsplus_module_61.environment(__tsplusTrace)), __tsplusTrace)(self);\n };\n}\n/**\n * Re-chunks the elements of the stream into chunks of\n * `n` elements each.\n * The last chunk might contain less than `n` elements\n *\n * @tsplus pipeable fncts.io.Stream rechunk\n */\nexport function rechunk(n, __tsplusTrace) {\n return (stream) => {\n return new Stream(tsplus_module_12.pipeTo(rechunkProcess(new Rechunker(n), n, __tsplusTrace))(stream.channel));\n };\n}\nclass Rechunker {\n n;\n builder = [];\n pos = 0;\n constructor(n) {\n this.n = n;\n }\n write(elem) {\n this.builder.push(elem);\n this.pos += 1;\n if (this.pos === this.n) {\n const result = this.builder;\n this.builder = [];\n this.pos = 0;\n return tsplus_module_21.from(result);\n }\n return null;\n }\n emitOfNotEmpty() {\n if (this.pos !== 0) {\n return tsplus_module_12.writeNow(tsplus_module_21.from(this.builder));\n }\n else {\n return tsplus_module_12.unit;\n }\n }\n get isEmpty() {\n return this.pos === 0;\n }\n}\nfunction rechunkProcess(rechunker, target, __tsplusTrace) {\n return tsplus_module_12.readWithCause((chunk) => {\n if (chunk.length === target && rechunker.isEmpty) {\n return tsplus_module_13.zipRight(rechunkProcess(rechunker, target, __tsplusTrace))(tsplus_module_12.writeNow(chunk));\n }\n else if (chunk.length > 0) {\n const chunks = [];\n let result = null;\n let i = 0;\n while (i < chunk.length) {\n while (i < chunk.length && result === null) {\n result = rechunker.write(tsplus_module_14.unsafeGet(i)(chunk));\n i += 1;\n }\n if (result !== null) {\n chunks.push(result);\n result = null;\n }\n }\n return tsplus_module_13.zipRight(rechunkProcess(rechunker, target, __tsplusTrace))(tsplus_module_12.writeAll(chunks));\n }\n else {\n return rechunkProcess(rechunker, target, __tsplusTrace);\n }\n }, (cause) => tsplus_module_13.zipRight(tsplus_module_13.failCauseNow(cause))(rechunker.emitOfNotEmpty()), () => rechunker.emitOfNotEmpty());\n}\n/**\n * Creates a stream from an effect producing a value of type `A` which repeats forever.\n *\n * @tsplus static fncts.io.StreamOps repeatIO\n */\nexport function repeatIO(fa, __tsplusTrace) {\n return repeatIOMaybe_1(tsplus_module_1.mapError(tsplus_module_5.just, __tsplusTrace)(fa), __tsplusTrace);\n}\n/**\n * Creates a stream from an effect producing chunks of `A` values which repeats forever.\n *\n * @tsplus static fncts.io.StreamOps repeatIOChunk\n */\nexport function repeatIOChunk(fa, __tsplusTrace) {\n return repeatIOChunkMaybe_1(tsplus_module_1.mapError(tsplus_module_5.just, __tsplusTrace)(fa), __tsplusTrace);\n}\n/**\n * Creates a stream from an effect producing chunks of `A` values until it fails with None.\n *\n * @tsplus static fncts.io.StreamOps repeatIOChunkMaybe\n */\nfunction repeatIOChunkMaybe_1(fa, __tsplusTrace) {\n return unfoldChunkIO_1(undefined, (_) => tsplus_module_1.catchAll((maybeError) => tsplus_module_22.match(() => tsplus_module_1.succeedNow(tsplus_module_5.nothing(__tsplusTrace), __tsplusTrace), tsplus_module_1.failNow)(maybeError), __tsplusTrace)(tsplus_module_1.map((chunk) => tsplus_module_5.just(tuple(chunk, undefined), __tsplusTrace), __tsplusTrace)(fa)), __tsplusTrace);\n}\n/**\n * Creates a stream from an effect producing values of type `A` until it fails with None.\n *\n * @tsplus static fncts.io.StreamOps repeatIOMaybe\n */\nfunction repeatIOMaybe_1(fa, __tsplusTrace) {\n return repeatIOChunkMaybe_1(tsplus_module_1.map(tsplus_module_21.single, __tsplusTrace)(fa), __tsplusTrace);\n}\n/**\n * Repeats the provided value infinitely.\n *\n * @tsplus static fncts.io.StreamOps repeatValue\n */\nexport function repeatValue(a, __tsplusTrace) {\n return new Stream(tsplus_module_12.repeated(tsplus_module_12.writeNow(tsplus_module_21.single(a))));\n}\n/**\n * Runs the sink on the stream to produce either the sink's result or an error.\n *\n * @tsplus pipeable fncts.io.Stream run\n */\nfunction run_1(sink, __tsplusTrace) {\n return (stream) => {\n return tsplus_module_62.runDrain(tsplus_module_12.pipeToOrFail(sink.channel)(stream.channel));\n };\n}\n/**\n * Runs the stream and collects all of its elements to a chunk.\n *\n * @tsplus getter fncts.io.Stream runCollect\n */\nexport function runCollect(stream, __tsplusTrace) {\n return run_1(tsplus_module_48.makeCollectAll(__tsplusTrace), __tsplusTrace)(stream);\n}\n/**\n * Runs the stream and collects ignore its elements.\n *\n * @tsplus getter fncts.io.Stream runDrain\n */\nexport function runDrain(stream, __tsplusTrace) {\n return run_1(tsplus_module_48.drain, __tsplusTrace)(stream);\n}\n/**\n * @tsplus pipeable fncts.io.Stream runForeachScoped\n */\nfunction runForeachScoped_1(f, __tsplusTrace) {\n return (self) => {\n return runScoped_1(tsplus_module_48.makeForeach(f, __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * Like `into`, but provides the result as a `Managed` to allow for scope\n * composition.\n *\n * @tsplus pipeable fncts.io.Stream runIntoElementsScoped\n */\nexport function runIntoElementsScoped_(queue, __tsplusTrace) {\n return (stream) => {\n const writer = tsplus_module_12.readWith((inp) => tsplus_module_13.zipRight(writer)(tsplus_module_14.foldLeft(tsplus_module_12.unit, (channel, a) => tsplus_module_13.zipRight(tsplus_module_12.writeNow(tsplus_module_41.succeed(a, __tsplusTrace)))(channel))(inp)), (err) => tsplus_module_12.writeNow(tsplus_module_41.fail(tsplus_module_5.just(err, __tsplusTrace), __tsplusTrace)), () => tsplus_module_12.writeNow(tsplus_module_41.fail(tsplus_module_5.nothing(__tsplusTrace), __tsplusTrace)));\n return tsplus_module_1.asUnit(tsplus_module_18.runScoped(tsplus_module_12.drain(tsplus_module_12.mapOutIO((exit) => tsplus_module_30.offer(exit, __tsplusTrace)(queue))(tsplus_module_12.pipeTo(writer)(stream.channel)))), __tsplusTrace);\n };\n}\n/**\n * Like `Stream#runIntoHub`, but provides the result as a `Managed` to allow for scope\n * composition.\n *\n * @tsplus pipeable fncts.io.Stream runIntoHubScoped\n */\nfunction runIntoHubScoped_1(hub, __tsplusTrace) {\n return (stream) => {\n return runIntoQueueScoped_1(hub, __tsplusTrace)(stream);\n };\n}\n/**\n * Like runIntoQueue, but provides the result as a scoped IO\n * to allow for scope composition.\n *\n * @tsplus pipeable fncts.io.Stream runIntoQueueElementsScoped\n */\nfunction runIntoQueueElementsScoped_1(queue) {\n return (self) => {\n return tsplus_module_1.defer(() => {\n const queue0 = queue();\n const writer = tsplus_module_12.readWithCause((inp) => tsplus_module_13.zipRight(writer)(tsplus_module_12.fromIO(() => tsplus_module_30.offerAll(tsplus_module_14.map((a) => tsplus_module_41.succeed(a, fileName_1 + \":2744:85\"))(inp), fileName_1 + \":2744:57\")(queue0))), (cause) => tsplus_module_12.fromIO(() => tsplus_module_30.offer(tsplus_module_41.failCause(tsplus_module_27.map((e) => tsplus_module_5.just(e, fileName_1 + \":2745:84\"))(cause), fileName_1 + \":2745:62\"), fileName_1 + \":2745:47\")(queue0)), () => tsplus_module_12.fromIO(() => tsplus_module_30.offer(tsplus_module_41.fail(tsplus_module_5.nothing(fileName_1 + \":2746:60\"), fileName_1 + \":2746:52\"), fileName_1 + \":2746:42\")(queue0)));\n return tsplus_module_1.asUnit(tsplus_module_18.runScoped(tsplus_module_12.drain((tsplus_module_12.pipeTo(writer)(self.channel)))), fileName_1 + \":2749:55\");\n }, fileName_1 + \":2741:20\");\n };\n}\n/**\n * Like `Stream#into`, but provides the result as a `Managed` to allow for scope\n * composition.\n *\n * @tsplus pipeable fncts.io.Stream runIntoQueueScoped\n */\nfunction runIntoQueueScoped_1(queue, __tsplusTrace) {\n return (stream) => {\n const writer = tsplus_module_12.readWithCause((inp) => tsplus_module_13.zipRight(writer)(tsplus_module_12.writeNow(tsplus_module_29.chunk(inp))), (cause) => tsplus_module_12.writeNow(tsplus_module_29.failCause(cause)), (_) => tsplus_module_12.writeNow(tsplus_module_29.end));\n return tsplus_module_1.asUnit(tsplus_module_18.runScoped(tsplus_module_12.drain(tsplus_module_12.mapOutIO((take) => tsplus_module_30.offer(take, __tsplusTrace)(queue))(tsplus_module_12.pipeTo(writer)(stream.channel)))), __tsplusTrace);\n };\n}\n/**\n * Runs the sink on the stream to produce either the sink's result or an error.\n *\n * @tsplus pipeable fncts.io.Stream runScoped\n */\nfunction runScoped_1(sink, __tsplusTrace) {\n return (stream) => {\n return tsplus_module_18.runScoped(tsplus_module_12.drain(tsplus_module_12.pipeToOrFail(sink.channel)(stream.channel)));\n };\n}\n/**\n * Statefully maps over the elements of this stream to produce all intermediate results\n * of type `B` given an initial B.\n *\n * @tsplus pipeable fncts.io.Stream scan\n */\nexport function scan(b, f, __tsplusTrace) {\n return (sa) => {\n return scanIO_1(b, (b, a) => tsplus_module_1.succeedNow(f(b, a), __tsplusTrace), __tsplusTrace)(sa);\n };\n}\n/**\n * Statefully and effectfully maps over the elements of this stream to produce all\n * intermediate results of type `B` given an initial B.\n *\n * @tsplus pipeable fncts.io.Stream scanIO\n */\nfunction scanIO_1(b, f, __tsplusTrace) {\n return (sa) => {\n return concat_1(mapAccumIO_1(b, (b, a) => tsplus_module_1.map((b) => [b, b], __tsplusTrace)(f(b, a)), __tsplusTrace)(sa), __tsplusTrace)(succeedNow_1(b, __tsplusTrace));\n };\n}\n/**\n * Statefully maps over the elements of this stream to produce all\n * intermediate results.\n *\n * @tsplus pipeable fncts.io.Stream scanReduce\n */\nexport function scanReduce(f, __tsplusTrace) {\n return (fa) => {\n return scanReduceIO_1((b, a) => tsplus_module_1.succeedNow(f(b, a), __tsplusTrace), __tsplusTrace)(fa);\n };\n}\n/**\n * Statefully and effectfully maps over the elements of this stream to produce\n * all intermediate results.\n *\n * @tsplus pipeable fncts.io.Stream scanReduceIO\n */\nfunction scanReduceIO_1(f, __tsplusTrace) {\n return (fa) => {\n return mapAccumIO_1(tsplus_module_5.nothing(__tsplusTrace), (s, a) => tsplus_module_22.match(() => tsplus_module_1.succeedNow([a, tsplus_module_5.just(a, __tsplusTrace)], __tsplusTrace), (b) => tsplus_module_1.map((b) => [b, tsplus_module_5.just(b, __tsplusTrace)], __tsplusTrace)(f(b, a)))(s), __tsplusTrace)(fa);\n };\n}\n/**\n * Creates a single-valued stream from a managed resource\n *\n * @tsplus static fncts.io.StreamOps scoped\n */\nfunction scoped_1(stream, __tsplusTrace) {\n return new Stream(tsplus_module_12.scoped(() => tsplus_module_1.map(tsplus_module_21.single, __tsplusTrace)(stream())));\n}\n/**\n * Emits a sliding window of n elements.\n *\n * @tsplus pipeable fncts.io.Stream sliding\n */\nexport function sliding(chunkSize, stepSize, __tsplusTrace) {\n return (self) => {\n return defer_1(() => {\n function slidingChunk(chunk, input) {\n const updatedChunk = tsplus_module_14.concat(input)(chunk);\n const length = updatedChunk.length;\n if (length >= chunkSize) {\n const array = new Array((length - chunkSize) / stepSize + 1);\n let arrayIndex = 0;\n let chunkIndex = 0;\n while (chunkIndex + chunkSize <= length) {\n array[arrayIndex] = tsplus_module_14.slice(chunkIndex, chunkIndex + chunkSize)(updatedChunk);\n arrayIndex += 1;\n chunkIndex += stepSize;\n }\n return [tsplus_module_14.drop(chunkIndex)(updatedChunk), tsplus_module_63.fromArray(array)];\n }\n else {\n return [updatedChunk, tsplus_module_9.empty()];\n }\n }\n function sliding(chunk, written) {\n return tsplus_module_12.readWithCause((input) => {\n const [updatedChunk, out] = slidingChunk(chunk, input);\n if (tsplus_module_14.isEmpty(out)) {\n return sliding(updatedChunk, written);\n }\n else {\n return tsplus_module_13.zipRight(sliding(updatedChunk, true))(tsplus_module_12.writeNow(out));\n }\n }, (err) => {\n const index = written && chunkSize > stepSize ? chunkSize - stepSize : 0;\n if (index >= chunk.length) {\n return tsplus_module_13.failCauseNow(err);\n }\n else {\n return tsplus_module_13.zipRight(tsplus_module_13.failCauseNow(err))(tsplus_module_12.writeNow(tsplus_module_21.single(chunk)));\n }\n }, (done) => {\n const index = written && chunkSize > stepSize ? chunkSize - stepSize : 0;\n if (index >= chunk.length) {\n return tsplus_module_13.succeedNow(done);\n }\n else {\n return tsplus_module_13.zipRight(tsplus_module_13.succeedNow(done))(tsplus_module_12.writeNow(tsplus_module_21.single(chunk)));\n }\n });\n }\n return new Stream(tsplus_module_12.pipeTo(sliding(tsplus_module_9.empty(), false))(self.channel));\n });\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream split\n */\nexport function split(predicate, __tsplusTrace) {\n return (self) => {\n function split(leftovers, input) {\n const [chunk, remaining] = tsplus_module_14.splitWhere(predicate)(tsplus_module_14.concat(input)(leftovers));\n if (tsplus_module_14.isEmpty(chunk) || tsplus_module_14.isEmpty(remaining)) {\n return loop(tsplus_module_14.concat(tsplus_module_14.drop(1)(remaining))(chunk));\n }\n else {\n return tsplus_module_13.zipRight(split(tsplus_module_9.empty(), tsplus_module_14.drop(1)(remaining)))(tsplus_module_12.writeNow(tsplus_module_21.single(chunk)));\n }\n }\n function loop(leftovers) {\n return tsplus_module_12.readWith((input) => split(leftovers, input), tsplus_module_12.failNow, (_) => {\n if (tsplus_module_14.isEmpty(leftovers)) {\n return tsplus_module_12.unit;\n }\n else if (tsplus_module_64.isNothing(tsplus_module_14.find(predicate)(leftovers))) {\n return tsplus_module_13.zipRight(tsplus_module_12.unit)(tsplus_module_12.writeNow(tsplus_module_21.single(leftovers)));\n }\n else {\n return tsplus_module_13.zipRight(tsplus_module_12.unit)(split(tsplus_module_9.empty(), leftovers));\n }\n });\n }\n return new Stream(tsplus_module_12.pipeTo(loop(tsplus_module_9.empty()))(self.channel));\n };\n}\n/**\n * Creates a single-valued pure stream\n *\n * @tsplus static fncts.io.StreamOps succeed\n */\nexport function succeed(a, __tsplusTrace) {\n return fromChunk_1(() => tsplus_module_21.single(a()), __tsplusTrace);\n}\n/**\n * Creates a single-valued pure stream\n *\n * @tsplus static fncts.io.StreamOps succeedNow\n */\nfunction succeedNow_1(o, __tsplusTrace) {\n return fromChunkNow_1(tsplus_module_21.single(o), __tsplusTrace);\n}\n/**\n * Takes the specified number of elements from this stream.\n *\n * @tsplus pipeable fncts.io.Stream take\n */\nexport function take(n, __tsplusTrace) {\n return (stream) => {\n if (n <= 0) {\n return empty_1;\n }\n if (!Number.isInteger(n)) {\n return halt_1(() => new tsplus_module_65.IllegalArgumentError(`${n} should be an integer`, \"Stream.take\"), __tsplusTrace);\n }\n return new Stream(tsplus_module_12.pipeTo(takeLoop(n, __tsplusTrace))(stream.channel));\n };\n}\nfunction takeLoop(n, __tsplusTrace) {\n return tsplus_module_12.readWithCause((inp) => {\n const taken = tsplus_module_14.take(n)(inp);\n const left = Math.max(n - taken.length, 0);\n if (left > 0) {\n return tsplus_module_13.zipRight(takeLoop(left, __tsplusTrace))(tsplus_module_12.writeNow(taken));\n }\n else {\n return tsplus_module_12.writeNow(taken);\n }\n }, tsplus_module_13.failCauseNow, tsplus_module_13.endNow);\n}\n/**\n * Takes all elements of the stream until the specified predicate evaluates\n * to `true`.\n *\n * @tsplus pipeable fncts.io.Stream takeUntil\n */\nexport function takeUntil(p, __tsplusTrace) {\n return (fa) => {\n return new Stream(tsplus_module_12.pipeTo(takeUntilLoop(p, __tsplusTrace))(fa.channel));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream takeUntilIO\n */\nexport function takeUntilIO(f, __tsplusTrace) {\n return (ma) => {\n return new Stream(tsplus_module_12.pipeTo(takeUntilIOLoop(tsplus_module_40.empty()[Symbol.iterator](), f, __tsplusTrace))(ma.channel));\n };\n}\nfunction takeUntilIOLoop(iterator, f, __tsplusTrace) {\n const next = iterator.next();\n if (next.done) {\n return tsplus_module_12.readWithCause((elem) => takeUntilIOLoop(elem[Symbol.iterator](), f, __tsplusTrace), tsplus_module_13.failCauseNow, tsplus_module_13.succeedNow);\n }\n else {\n return tsplus_module_12.unwrap(() => tsplus_module_1.map((b) => b\n ? tsplus_module_12.writeNow(tsplus_module_21.single(next.value))\n : tsplus_module_13.zipRight(takeUntilIOLoop(iterator, f, __tsplusTrace))(tsplus_module_12.writeNow(tsplus_module_21.single(next.value))), __tsplusTrace)(f(next.value)));\n }\n}\nfunction takeUntilLoop(p, __tsplusTrace) {\n return tsplus_module_12.readWith((chunk) => {\n const taken = tsplus_module_14.takeWhile(tsplus_module_47.invert(p))(chunk);\n const last = tsplus_module_14.take(1)(tsplus_module_14.drop(taken.length)(chunk));\n if (tsplus_module_14.isEmpty(last)) {\n return tsplus_module_13.zipRight(takeUntilLoop(p, __tsplusTrace))(tsplus_module_12.writeNow(taken));\n }\n else {\n return tsplus_module_12.writeNow(tsplus_module_14.concat(last)(taken));\n }\n }, tsplus_module_12.failNow, tsplus_module_13.succeedNow);\n}\n/**\n * @tsplus pipeable fncts.io.Stream tap\n */\nfunction tap_1(f, __tsplusTrace) {\n return (ma) => {\n return mapIO_1((a) => tsplus_module_1.as(() => a, __tsplusTrace)(f(a)), __tsplusTrace)(ma);\n };\n}\n/**\n * Returns a stream that effectfully \"peeks\" at the failure and adds an effect\n * to consumption of every element of the stream\n *\n * @tsplus pipeable fncts.io.Stream tapBoth\n */\nexport function tapBoth(f, g, __tsplusTrace) {\n return (self) => {\n return tap_1(g, __tsplusTrace)(tapError_1(f, __tsplusTrace)(self));\n };\n}\n/**\n * Returns a stream that effectfully \"peeks\" at the failure of the stream.\n *\n * @tsplus pipeable fncts.io.Stream tapError\n */\nfunction tapError_1(f, __tsplusTrace) {\n return (self) => {\n return catchAll_1((e) => fromIO_1(f(e), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * Returns a stream that effectfully \"peeks\" at the cause of failure of the\n * stream.\n *\n * @tsplus pipeable fncts.io.Stream tapErrorCause\n */\nexport function tapErrorCause(f, __tsplusTrace) {\n return (self) => {\n return catchAllCause_1((e) => fromIO_1(tsplus_module_1.zipRight(tsplus_module_1.refailCause(() => e, __tsplusTrace), __tsplusTrace)(f(e)), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * Sends all elements emitted by this stream to the specified sink in addition\n * to emitting them.\n *\n * @tsplus pipeable fncts.io.Stream tapSink\n */\nexport function tapSink(sink, __tsplusTrace) {\n return (self) => {\n return flatMap_1(([queue, future]) => {\n const right = flattenTake_1(fromQueue_1(queue, 1, __tsplusTrace), __tsplusTrace);\n const loop = tsplus_module_12.readWithCause((chunk) => tsplus_module_13.zipRight(loop)(tsplus_module_13.zipRight(tsplus_module_12.writeNow(chunk))(tsplus_module_12.fromIO(() => tsplus_module_30.offer(tsplus_module_29.chunk(chunk), __tsplusTrace)(queue)))), (cause) => tsplus_module_12.fromIO(() => tsplus_module_30.offer(tsplus_module_29.failCause(cause), __tsplusTrace)(queue)), () => tsplus_module_12.fromIO(() => tsplus_module_30.offer(tsplus_module_29.end, __tsplusTrace)(queue)));\n return merge_1(execute_1(tsplus_module_66.ensuring(tsplus_module_37.succeed_(undefined, __tsplusTrace)(future), __tsplusTrace)(run_1(sink, __tsplusTrace)(right)), __tsplusTrace), \"Both\", __tsplusTrace)(new Stream(tsplus_module_12.ensuring(tsplus_module_1.zipRight(tsplus_module_37.wait(future, __tsplusTrace), __tsplusTrace)(tsplus_module_26.forkDaemon(tsplus_module_30.offer(tsplus_module_29.end, __tsplusTrace)(queue), __tsplusTrace)))((tsplus_module_12.pipeTo(loop)(self.channel)))));\n }, __tsplusTrace)(fromIO_1(tsplus_module_1.zip(tsplus_module_38.make(__tsplusTrace), __tsplusTrace)(tsplus_module_32.makeBounded(1, __tsplusTrace)), __tsplusTrace));\n };\n}\n/**\n * Throttles the chunks of this stream according to the given bandwidth parameters using the token bucket\n * algorithm. Allows for burst in the processing of elements by allowing the token bucket to accumulate\n * tokens up to a `units + burst` threshold. Chunks that do not meet the bandwidth constraints are dropped.\n * The weight of each chunk is determined by the `costFn` function.\n *\n * @tsplus pipeable fncts.io.Stream throttleEnforce\n */\nexport function throttleEnforce(costFn, units, duration, burst = 0, __tsplusTrace) {\n return (sa) => {\n return throttleEnforceIO_1((chunk) => tsplus_module_1.succeedNow(costFn(chunk), __tsplusTrace), units, duration, burst, __tsplusTrace)(sa);\n };\n}\n/**\n * Throttles the chunks of this stream according to the given bandwidth parameters using the token bucket\n * algorithm. Allows for burst in the processing of elements by allowing the token bucket to accumulate\n * tokens up to a `units + burst` threshold. Chunks that do not meet the bandwidth constraints are dropped.\n * The weight of each chunk is determined by the `costFn` effectful function.\n *\n * @tsplus pipeable fncts.io.Stream throttleEnforceIO\n */\nfunction throttleEnforceIO_1(costFn, units, duration, burst = 0, __tsplusTrace) {\n return (sa) => {\n return new Stream(tsplus_module_13.flatMap((current) => tsplus_module_12.pipeTo(throttleEnforceIOLoop(costFn, units, duration, burst, units, current, __tsplusTrace))(sa.channel))(tsplus_module_12.fromIO(() => tsplus_module_43.currentTime)));\n };\n}\nfunction throttleEnforceIOLoop(costFn, units, duration, burst, tokens, timestamp, __tsplusTrace) {\n return tsplus_module_12.readWith((inp) => tsplus_module_12.unwrap(() => tsplus_module_1.zipWith(tsplus_module_43.currentTime, (weight, current) => {\n const elapsed = current - timestamp;\n const cycles = elapsed / duration;\n const available = (() => {\n const sum = tokens + cycles * units;\n const max = units + burst < 0 ? Number.MAX_SAFE_INTEGER : units + burst;\n return sum < 0 ? max : Math.min(sum, max);\n })();\n return weight <= available\n ? tsplus_module_13.zipRight(throttleEnforceIOLoop(costFn, units, duration, burst, available - weight, current, __tsplusTrace))(tsplus_module_12.writeNow(inp))\n : throttleEnforceIOLoop(costFn, units, duration, burst, available - weight, current, __tsplusTrace);\n }, __tsplusTrace)(costFn(inp))), tsplus_module_12.failNow, () => tsplus_module_12.unit);\n}\n/**\n * Converts the stream to a managed hub of chunks. After the managed hub is used,\n * the hub will never again produce values and should be discarded.\n *\n * @tsplus pipeable fncts.io.Stream toHub\n */\nfunction toHub_1(capacity, __tsplusTrace) {\n return (stream) => {\n return tsplus_module_1.flatMap(hub => tsplus_module_1.map(() => hub, __tsplusTrace)(tsplus_module_33.fork(runIntoHubScoped_1(hub, __tsplusTrace)(stream), __tsplusTrace)), __tsplusTrace)(tsplus_module_2.acquireRelease(() => tsplus_module_34.makeBounded(capacity, __tsplusTrace), (_) => tsplus_module_34.shutdown(_, __tsplusTrace), __tsplusTrace));\n };\n}\n/**\n * Interpret the stream as a managed pull\n *\n * @tsplus getter fncts.io.Stream toPull\n */\nfunction toPull_1(stream, __tsplusTrace) {\n return tsplus_module_1.map((io) => tsplus_module_1.flatMap((r) => tsplus_module_6.match(() => tsplus_module_1.failNow(tsplus_module_5.nothing(__tsplusTrace), __tsplusTrace), tsplus_module_1.succeedNow)(r), __tsplusTrace)(tsplus_module_1.mapError(tsplus_module_5.just, __tsplusTrace)(io)), __tsplusTrace)(tsplus_module_67.toPull(stream.channel));\n}\n/**\n * Converts the stream to a managed queue of chunks. After the managed queue is used,\n * the queue will never again produce values and should be discarded.\n *\n * @tsplus pipeable fncts.io.Stream toQueue\n */\nfunction toQueue_1(capacity = 2, __tsplusTrace) {\n return (stream) => {\n return tsplus_module_1.flatMap(queue => tsplus_module_1.map(() => queue, __tsplusTrace)(tsplus_module_33.fork(runIntoQueueScoped_1(queue, __tsplusTrace)(stream), __tsplusTrace)), __tsplusTrace)(tsplus_module_2.acquireRelease(() => tsplus_module_32.makeBounded(capacity, __tsplusTrace), (_) => tsplus_module_30.shutdown(_, __tsplusTrace), __tsplusTrace));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream toQueueDropping\n */\nexport function toQueueDropping(capacity = 2, __tsplusTrace) {\n return (stream) => {\n return tsplus_module_1.flatMap(queue => tsplus_module_1.map(() => queue, __tsplusTrace)(tsplus_module_33.fork(runIntoQueueScoped_1(queue, __tsplusTrace)(stream), __tsplusTrace)), __tsplusTrace)(tsplus_module_2.acquireRelease(() => tsplus_module_32.makeDropping(capacity, __tsplusTrace), (_) => tsplus_module_30.shutdown(_, __tsplusTrace), __tsplusTrace));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream toQueueOfElements\n */\nfunction toQueueOfElements_1(capacity = 2, __tsplusTrace) {\n return (stream) => {\n return tsplus_module_1.flatMap(queue => tsplus_module_1.map(() => queue, __tsplusTrace)(tsplus_module_19.forkScoped(runIntoQueueElementsScoped_1(() => queue)(stream), __tsplusTrace)), __tsplusTrace)(tsplus_module_2.acquireRelease(() => tsplus_module_32.makeBounded(capacity, __tsplusTrace), (_) => tsplus_module_30.shutdown(_, __tsplusTrace), __tsplusTrace));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Stream toQueueSliding\n */\nexport function toQueueSliding(capacity = 2, __tsplusTrace) {\n return (stream) => {\n return tsplus_module_1.flatMap(queue => tsplus_module_1.map(() => queue, __tsplusTrace)(tsplus_module_33.fork(runIntoQueueScoped_1(queue, __tsplusTrace)(stream), __tsplusTrace)), __tsplusTrace)(tsplus_module_2.acquireRelease(() => tsplus_module_32.makeSliding(capacity, __tsplusTrace), (_) => tsplus_module_30.shutdown(_, __tsplusTrace), __tsplusTrace));\n };\n}\n/**\n * Converts the stream into an unbounded managed queue. After the managed queue\n * is used, the queue will never again produce values and should be discarded.\n *\n * @tsplus getter fncts.io.Stream toQueueUnbounded\n */\nfunction toQueueUnbounded_1(stream, __tsplusTrace) {\n return tsplus_module_1.flatMap(queue => tsplus_module_1.map(() => queue, __tsplusTrace)(tsplus_module_33.fork(runIntoQueueScoped_1(queue, __tsplusTrace)(stream), __tsplusTrace)), __tsplusTrace)(tsplus_module_2.acquireRelease(() => tsplus_module_32.makeUnbounded(__tsplusTrace), (_) => tsplus_module_30.shutdown(_, __tsplusTrace), __tsplusTrace));\n}\n/**\n * @tsplus getter fncts.io.Stream toReadableStream\n */\nexport function toReadableStream(self, __tsplusTrace) {\n let pull;\n let scope;\n return new ReadableStream({\n start(controller) {\n scope = tsplus_module_36.getOrThrow(tsplus_module_31.unsafeRun(tsplus_module_68.make));\n pull = tsplus_module_1.asUnit(tsplus_module_1.catchAll((error) => tsplus_module_22.match(() => tsplus_module_1.succeed(() => controller.close(), __tsplusTrace), (error) => tsplus_module_1.succeed(() => controller.error(error), __tsplusTrace))(error), __tsplusTrace)(tsplus_module_1.tapErrorCause(() => scope.close(() => tsplus_module_41.unit), __tsplusTrace)(tsplus_module_1.tap((chunk) => tsplus_module_1.succeed(() => tsplus_module_14.forEach((a) => {\n controller.enqueue(a);\n })(chunk), __tsplusTrace), __tsplusTrace)(tsplus_module_36.getOrThrow(tsplus_module_31.unsafeRun(tsplus_module_69.provideScope(scope)(toPull_1(self, __tsplusTrace))))))), __tsplusTrace);\n },\n pull() {\n return tsplus_module_31.unsafeRunPromise(pull, __tsplusTrace);\n },\n cancel() {\n return tsplus_module_31.unsafeRunPromise(scope.close(() => tsplus_module_41.unit), __tsplusTrace);\n },\n });\n}\n/**\n * @tsplus static fncts.io.StreamOps unfold\n */\nexport function unfold(s, f, __tsplusTrace) {\n return unfoldChunk_1(s, (s) => tsplus_module_39.map(([a, s]) => tuple(tsplus_module_21.single(a), s))(f(s)), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.StreamOps unfoldChunk\n */\nfunction unfoldChunk_1(s, f, __tsplusTrace) {\n return new Stream(tsplus_module_12.defer(() => unfoldChunkLoop(s, f, __tsplusTrace)));\n}\n/**\n * Creates a stream by effectfully peeling off the \"layers\" of a value of type `S`\n *\n * @tsplus static fncts.io.StreamOps unfoldChunkIO\n */\nfunction unfoldChunkIO_1(s, f, __tsplusTrace) {\n return new Stream(unfoldChunkIOLoop(s, f, __tsplusTrace));\n}\nfunction unfoldChunkIOLoop(s, f, __tsplusTrace) {\n return tsplus_module_12.unwrap(() => tsplus_module_1.map((m) => tsplus_module_22.match(() => tsplus_module_12.unit, ([as, s]) => tsplus_module_13.flatMap(() => unfoldChunkIOLoop(s, f, __tsplusTrace))(tsplus_module_12.writeNow(as)))(m), __tsplusTrace)(f(s)));\n}\nfunction unfoldChunkLoop(s, f, __tsplusTrace) {\n return tsplus_module_22.match(() => tsplus_module_12.unit, ([as, s]) => tsplus_module_13.flatMap(() => unfoldChunkLoop(s, f, __tsplusTrace))(tsplus_module_12.writeNow(as)))(f(s));\n}\n/**\n * Creates a stream by effectfully peeling off the \"layers\" of a value of type `S`\n *\n * @tsplus static fncts.io.StreamOps unfoldIO\n */\nfunction unfoldIO_1(s, f, __tsplusTrace) {\n return unfoldChunkIO_1(s, (_) => tsplus_module_1.map((m) => tsplus_module_39.map(([a, s]) => tuple(tsplus_module_21.single(a), s))(m), __tsplusTrace)(f(_)), __tsplusTrace);\n}\n/**\n * Creates a stream produced from an IO\n *\n * @tsplus static fncts.io.StreamOps unwrap\n */\nfunction unwrap_1(stream, __tsplusTrace) {\n return flatten_1(fromIO_1(stream, __tsplusTrace), __tsplusTrace);\n}\n/**\n * Creates a stream produced from a managed\n *\n * @tsplus static fncts.io.StreamOps unwrapScoped\n */\nfunction unwrapScoped_1(stream, __tsplusTrace) {\n return flatten_1(scoped_1(() => stream, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus getter fncts.io.Stream zipWithIndex\n */\nexport function zipWithIndex_(self, __tsplusTrace) {\n return mapAccum_1(0, (index, a) => [index + 1, [a, index]], __tsplusTrace)(self);\n}\n/**\n * Zips the two streams so that when a value is emitted by either of the two\n * streams, it is combined with the latest value from the other stream to\n * produce a result.\n *\n * Note: tracking the latest value is done on a per-chunk basis. That means\n * that emitted elements that are not the last value in chunks will never be\n * used for zipping.\n *\n * @tsplus pipeable fncts.io.Stream zipWithLatest\n */\nexport function zipWithLatest(fb, f, __tsplusTrace) {\n return (fa) => {\n function pullNonEmpty(pull, __tsplusTrace) {\n return tsplus_module_1.flatMap((chunk) => (tsplus_module_14.isNonEmpty(chunk) ? pullNonEmpty(pull, __tsplusTrace) : tsplus_module_1.succeedNow(chunk, __tsplusTrace)), __tsplusTrace)(pull);\n }\n return fromPull_1(tsplus_module_1.flatMap(left => tsplus_module_1.flatMap(right => toPull_1(flatMap_1(([l, r, leftFirst]) => flatMap_1((latest) => concat_1(flatMap_1(fromChunkNow_1, __tsplusTrace)(mapIO_1((ab) => tsplus_module_6.match((leftChunk) => tsplus_module_17.modify(([_, rightLatest]) => tuple(tsplus_module_14.map((a) => f(a, rightLatest))(leftChunk), tuple(tsplus_module_14.unsafeGet(leftChunk.length - 1)(leftChunk), rightLatest)), __tsplusTrace)(latest), (rightChunk) => tsplus_module_17.modify(([leftLatest, _]) => tuple(tsplus_module_14.map((b) => f(leftLatest, b))(rightChunk), tuple(leftLatest, tsplus_module_14.unsafeGet(rightChunk.length - 1)(rightChunk))), __tsplusTrace)(latest))(ab), __tsplusTrace)(mergeEither_1(repeatIOMaybe_1(right, __tsplusTrace), __tsplusTrace)(repeatIOMaybe_1(left, __tsplusTrace)))), __tsplusTrace)(fromChunk_1(() => leftFirst\n ? tsplus_module_14.map((b) => f(tsplus_module_14.unsafeGet(l.length - 1)(l), b))(r)\n : tsplus_module_14.map((a) => f(a, tsplus_module_14.unsafeGet(r.length - 1)(r)))(l), __tsplusTrace)), __tsplusTrace)(fromIO_1(tsplus_module_8.make(() => tuple(tsplus_module_14.unsafeGet(l.length - 1)(l), tsplus_module_14.unsafeGet(r.length - 1)(r)), __tsplusTrace), __tsplusTrace)), __tsplusTrace)(fromIOMaybe_1(tsplus_module_28.raceWith(() => right, (leftDone, rightFiber) => tsplus_module_1.zipWith(tsplus_module_24.join(rightFiber, __tsplusTrace), (l, r) => tuple(l, r, true), __tsplusTrace)(tsplus_module_1.fromExitNow(leftDone, __tsplusTrace)), (rightDone, leftFiber) => tsplus_module_1.zipWith(tsplus_module_24.join(leftFiber, __tsplusTrace), (r, l) => tuple(l, r, false), __tsplusTrace)(tsplus_module_1.fromExitNow(rightDone, __tsplusTrace)), __tsplusTrace)(left), __tsplusTrace)), __tsplusTrace), __tsplusTrace)(tsplus_module_1.map(pullNonEmpty, __tsplusTrace)(toPull_1(fb, __tsplusTrace))), __tsplusTrace)(tsplus_module_1.map(pullNonEmpty, __tsplusTrace)(toPull_1(fa, __tsplusTrace))), __tsplusTrace);\n };\n}\n//# sourceMappingURL=api.js.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,aAAa;AAsEnB,MAAa,uBAAuB;AACpC,MAAa,6BAA6B;AAC1C,MAAa,iBAAiB;AAC9B,MAAa,aAAa;AAC1B,MAAa,oBAAoB;AACjC,MAAa,2BAA2B;AACxC,MAAa,WAAW;AACxB,MAAa,gBAAgB;AAC7B,MAAa,SAAS;AACtB,MAAa,SAAS;AACtB,MAAa,YAAY;AACzB,MAAa,QAAQ;AACrB,MAAa,yBAAyB;AACtC,MAAa,QAAQ;AACrB,MAAa,OAAO;AACpB,MAAa,YAAY;AACzB,MAAa,UAAU;AACvB,MAAa,WAAW;AACxB,MAAa,WAAW;AACxB,MAAa,cAAc;AAC3B,MAAa,UAAU;AACvB,MAAa,eAAe;AAC5B,MAAa,UAAU;AACvB,MAAa,YAAY;AACzB,MAAa,UAAU;AACvB,MAAa,gBAAgB;AAC7B,MAAa,oBAAoB;AACjC,MAAa,cAAc;AAC3B,MAAa,UAAU;AACvB,MAAa,YAAY;AACzB,MAAa,eAAe;AAC5B,MAAa,SAAS;AACtB,MAAa,cAAc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