effect 2.0.0-next.38 → 2.0.0-next.39

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.
Files changed (767) hide show
  1. package/Bigint/dist/effect-Bigint.esm.js +346 -5
  2. package/Boolean/dist/effect-Boolean.esm.js +230 -5
  3. package/Brand/dist/effect-Brand.esm.js +204 -20
  4. package/Cache/dist/effect-Cache.cjs.dev.js +13 -13
  5. package/Cache/dist/effect-Cache.cjs.prod.js +13 -13
  6. package/Cache/dist/effect-Cache.esm.js +111 -74
  7. package/Cause/dist/effect-Cause.esm.js +668 -33
  8. package/Channel/dist/effect-Channel.cjs.dev.js +36 -36
  9. package/Channel/dist/effect-Channel.cjs.prod.js +36 -36
  10. package/Channel/dist/effect-Channel.esm.js +1001 -107
  11. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.esm.js +112 -3
  12. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.esm.js +60 -3
  13. package/ChannelMergeState/dist/effect-ChannelMergeState.esm.js +101 -3
  14. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.esm.js +84 -3
  15. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.dev.js +28 -28
  16. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.prod.js +28 -28
  17. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.esm.js +47 -91
  18. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.esm.js +84 -3
  19. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.esm.js +83 -3
  20. package/Chunk/dist/effect-Chunk.esm.js +1084 -20
  21. package/Clock/dist/effect-Clock.cjs.dev.js +3 -3
  22. package/Clock/dist/effect-Clock.cjs.prod.js +3 -3
  23. package/Clock/dist/effect-Clock.esm.js +78 -42
  24. package/Config/dist/effect-Config.esm.js +321 -37
  25. package/ConfigError/dist/effect-ConfigError.esm.js +185 -21
  26. package/ConfigProvider/dist/effect-ConfigProvider.esm.js +198 -39
  27. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.esm.js +70 -24
  28. package/ConfigSecret/dist/effect-ConfigSecret.esm.js +63 -22
  29. package/Console/dist/effect-Console.cjs.dev.js +22 -22
  30. package/Console/dist/effect-Console.cjs.prod.js +22 -22
  31. package/Console/dist/effect-Console.esm.js +154 -83
  32. package/Context/dist/effect-Context.esm.js +295 -17
  33. package/Data/dist/effect-Data.esm.js +163 -7
  34. package/DefaultServices/dist/effect-DefaultServices.cjs.dev.js +3 -3
  35. package/DefaultServices/dist/effect-DefaultServices.cjs.prod.js +3 -3
  36. package/DefaultServices/dist/effect-DefaultServices.esm.js +24 -42
  37. package/Deferred/dist/effect-Deferred.esm.js +206 -33
  38. package/Differ/dist/effect-Differ.esm.js +137 -26
  39. package/Duration/dist/effect-Duration.cjs.dev.js +2 -1
  40. package/Duration/dist/effect-Duration.cjs.mjs +1 -0
  41. package/Duration/dist/effect-Duration.cjs.prod.js +2 -1
  42. package/Duration/dist/effect-Duration.esm.js +438 -16
  43. package/Effect/dist/effect-Effect.cjs.dev.js +26 -26
  44. package/Effect/dist/effect-Effect.cjs.prod.js +26 -26
  45. package/Effect/dist/effect-Effect.esm.js +3093 -89
  46. package/Effectable/dist/effect-Effectable.esm.js +77 -10
  47. package/Either/dist/effect-Either.esm.js +442 -13
  48. package/Encoding/dist/effect-Encoding.esm.js +123 -14
  49. package/Equal/dist/effect-Equal.esm.js +57 -6
  50. package/Equivalence/dist/effect-Equivalence.esm.js +196 -2
  51. package/Error/dist/effect-Error.cjs.dev.js +27 -27
  52. package/Error/dist/effect-Error.cjs.prod.js +27 -27
  53. package/Error/dist/effect-Error.esm.js +47 -91
  54. package/ExecutionStrategy/dist/effect-ExecutionStrategy.esm.js +99 -2
  55. package/Exit/dist/effect-Exit.esm.js +332 -33
  56. package/Fiber/dist/effect-Fiber.cjs.dev.js +18 -18
  57. package/Fiber/dist/effect-Fiber.cjs.prod.js +18 -18
  58. package/Fiber/dist/effect-Fiber.esm.js +423 -77
  59. package/FiberId/dist/effect-FiberId.esm.js +161 -20
  60. package/FiberRef/dist/effect-FiberRef.cjs.dev.js +14 -14
  61. package/FiberRef/dist/effect-FiberRef.cjs.prod.js +14 -14
  62. package/FiberRef/dist/effect-FiberRef.esm.js +289 -75
  63. package/FiberRefs/dist/effect-FiberRefs.esm.js +107 -34
  64. package/FiberRefsPatch/dist/effect-FiberRefsPatch.esm.js +76 -35
  65. package/FiberStatus/dist/effect-FiberStatus.esm.js +89 -7
  66. package/Function/dist/effect-Function.esm.js +492 -1
  67. package/GlobalValue/dist/effect-GlobalValue.esm.js +20 -1
  68. package/GroupBy/dist/effect-GroupBy.cjs.dev.js +37 -37
  69. package/GroupBy/dist/effect-GroupBy.cjs.prod.js +37 -37
  70. package/GroupBy/dist/effect-GroupBy.esm.js +63 -108
  71. package/Hash/dist/effect-Hash.esm.js +164 -5
  72. package/HashMap/dist/effect-HashMap.esm.js +287 -18
  73. package/HashSet/dist/effect-HashSet.esm.js +227 -18
  74. package/Hub/dist/effect-Hub.cjs.dev.js +13 -13
  75. package/Hub/dist/effect-Hub.cjs.prod.js +13 -13
  76. package/Hub/dist/effect-Hub.esm.js +148 -74
  77. package/Inspectable/dist/effect-Inspectable.esm.js +38 -1
  78. package/KeyedPool/dist/effect-KeyedPool.cjs.dev.js +14 -14
  79. package/KeyedPool/dist/effect-KeyedPool.cjs.prod.js +14 -14
  80. package/KeyedPool/dist/effect-KeyedPool.esm.js +104 -75
  81. package/Layer/dist/effect-Layer.cjs.dev.js +22 -22
  82. package/Layer/dist/effect-Layer.cjs.prod.js +22 -22
  83. package/Layer/dist/effect-Layer.esm.js +557 -83
  84. package/List/dist/effect-List.esm.js +816 -21
  85. package/LogLevel/dist/effect-LogLevel.esm.js +202 -33
  86. package/LogSpan/dist/effect-LogSpan.esm.js +24 -1
  87. package/Logger/dist/effect-Logger.cjs.dev.js +24 -24
  88. package/Logger/dist/effect-Logger.cjs.prod.js +24 -24
  89. package/Logger/dist/effect-Logger.esm.js +198 -85
  90. package/Metric/dist/effect-Metric.cjs.dev.js +12 -12
  91. package/Metric/dist/effect-Metric.cjs.prod.js +12 -12
  92. package/Metric/dist/effect-Metric.esm.js +395 -71
  93. package/MetricBoundaries/dist/effect-MetricBoundaries.esm.js +52 -22
  94. package/MetricHook/dist/effect-MetricHook.cjs.dev.js +3 -3
  95. package/MetricHook/dist/effect-MetricHook.cjs.prod.js +3 -3
  96. package/MetricHook/dist/effect-MetricHook.esm.js +68 -27
  97. package/MetricKey/dist/effect-MetricKey.cjs.dev.js +4 -4
  98. package/MetricKey/dist/effect-MetricKey.cjs.prod.js +4 -4
  99. package/MetricKey/dist/effect-MetricKey.esm.js +104 -23
  100. package/MetricKeyType/dist/effect-MetricKeyType.cjs.dev.js +3 -3
  101. package/MetricKeyType/dist/effect-MetricKeyType.cjs.prod.js +3 -3
  102. package/MetricKeyType/dist/effect-MetricKeyType.esm.js +147 -18
  103. package/MetricLabel/dist/effect-MetricLabel.esm.js +41 -9
  104. package/MetricPair/dist/effect-MetricPair.esm.js +38 -3
  105. package/MetricPolling/dist/effect-MetricPolling.cjs.dev.js +18 -18
  106. package/MetricPolling/dist/effect-MetricPolling.cjs.prod.js +18 -18
  107. package/MetricPolling/dist/effect-MetricPolling.esm.js +84 -77
  108. package/MetricRegistry/dist/effect-MetricRegistry.cjs.dev.js +5 -5
  109. package/MetricRegistry/dist/effect-MetricRegistry.cjs.prod.js +5 -5
  110. package/MetricRegistry/dist/effect-MetricRegistry.esm.js +28 -33
  111. package/MetricState/dist/effect-MetricState.esm.js +151 -9
  112. package/MutableHashMap/dist/effect-MutableHashMap.esm.js +128 -20
  113. package/MutableHashSet/dist/effect-MutableHashSet.esm.js +90 -21
  114. package/MutableList/dist/effect-MutableList.esm.js +264 -4
  115. package/MutableQueue/dist/effect-MutableQueue.esm.js +187 -22
  116. package/MutableRef/dist/effect-MutableRef.esm.js +156 -9
  117. package/NonEmptyIterable/dist/effect-NonEmptyIterable.esm.js +28 -1
  118. package/Number/dist/effect-Number.esm.js +369 -5
  119. package/Option/dist/effect-Option.esm.js +1071 -15
  120. package/Order/dist/effect-Order.esm.js +263 -2
  121. package/Ordering/dist/effect-Ordering.esm.js +88 -2
  122. package/Pipeable/dist/effect-Pipeable.esm.js +44 -1
  123. package/Pool/dist/effect-Pool.cjs.dev.js +14 -14
  124. package/Pool/dist/effect-Pool.cjs.prod.js +14 -14
  125. package/Pool/dist/effect-Pool.esm.js +104 -75
  126. package/Predicate/dist/effect-Predicate.esm.js +634 -2
  127. package/Queue/dist/effect-Queue.cjs.dev.js +13 -13
  128. package/Queue/dist/effect-Queue.cjs.prod.js +13 -13
  129. package/Queue/dist/effect-Queue.esm.js +328 -74
  130. package/Random/dist/effect-Random.cjs.dev.js +3 -3
  131. package/Random/dist/effect-Random.cjs.prod.js +3 -3
  132. package/Random/dist/effect-Random.esm.js +83 -42
  133. package/ReadonlyArray/dist/effect-ReadonlyArray.esm.js +1445 -19
  134. package/ReadonlyRecord/dist/effect-ReadonlyRecord.esm.js +518 -17
  135. package/RedBlackTree/dist/effect-RedBlackTree.esm.js +314 -22
  136. package/Ref/dist/effect-Ref.esm.js +111 -33
  137. package/Reloadable/dist/effect-Reloadable.cjs.dev.js +23 -23
  138. package/Reloadable/dist/effect-Reloadable.cjs.prod.js +23 -23
  139. package/Reloadable/dist/effect-Reloadable.esm.js +88 -84
  140. package/Request/dist/effect-Request.cjs.dev.js +13 -13
  141. package/Request/dist/effect-Request.cjs.prod.js +13 -13
  142. package/Request/dist/effect-Request.esm.js +160 -74
  143. package/RequestBlock/dist/effect-RequestBlock.cjs.dev.js +28 -28
  144. package/RequestBlock/dist/effect-RequestBlock.cjs.prod.js +28 -28
  145. package/RequestBlock/dist/effect-RequestBlock.esm.js +103 -91
  146. package/RequestResolver/dist/effect-RequestResolver.cjs.dev.js +28 -28
  147. package/RequestResolver/dist/effect-RequestResolver.cjs.prod.js +28 -28
  148. package/RequestResolver/dist/effect-RequestResolver.esm.js +191 -91
  149. package/Resource/dist/effect-Resource.cjs.dev.js +19 -19
  150. package/Resource/dist/effect-Resource.cjs.prod.js +19 -19
  151. package/Resource/dist/effect-Resource.esm.js +70 -79
  152. package/Runtime/dist/effect-Runtime.cjs.dev.js +20 -20
  153. package/Runtime/dist/effect-Runtime.cjs.prod.js +20 -20
  154. package/Runtime/dist/effect-Runtime.esm.js +157 -79
  155. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.dev.js +24 -24
  156. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.prod.js +24 -24
  157. package/RuntimeFlags/dist/effect-RuntimeFlags.esm.js +305 -85
  158. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.esm.js +158 -27
  159. package/STM/dist/effect-STM.cjs.dev.js +41 -41
  160. package/STM/dist/effect-STM.cjs.prod.js +41 -41
  161. package/STM/dist/effect-STM.esm.js +1193 -112
  162. package/Schedule/dist/effect-Schedule.cjs.dev.js +11 -11
  163. package/Schedule/dist/effect-Schedule.cjs.prod.js +11 -11
  164. package/Schedule/dist/effect-Schedule.esm.js +957 -57
  165. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.dev.js +4 -4
  166. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.prod.js +4 -4
  167. package/ScheduleDecision/dist/effect-ScheduleDecision.esm.js +48 -24
  168. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.dev.js +2 -2
  169. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.prod.js +2 -2
  170. package/ScheduleInterval/dist/effect-ScheduleInterval.esm.js +130 -17
  171. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.dev.js +3 -3
  172. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.prod.js +3 -3
  173. package/ScheduleIntervals/dist/effect-ScheduleIntervals.esm.js +105 -23
  174. package/Scheduler/dist/effect-Scheduler.esm.js +326 -34
  175. package/Scope/dist/effect-Scope.cjs.dev.js +12 -12
  176. package/Scope/dist/effect-Scope.cjs.prod.js +12 -12
  177. package/Scope/dist/effect-Scope.esm.js +117 -71
  178. package/ScopedCache/dist/effect-ScopedCache.cjs.dev.js +14 -14
  179. package/ScopedCache/dist/effect-ScopedCache.cjs.prod.js +14 -14
  180. package/ScopedCache/dist/effect-ScopedCache.esm.js +52 -75
  181. package/ScopedRef/dist/effect-ScopedRef.cjs.dev.js +19 -19
  182. package/ScopedRef/dist/effect-ScopedRef.cjs.prod.js +19 -19
  183. package/ScopedRef/dist/effect-ScopedRef.esm.js +71 -79
  184. package/Sink/dist/effect-Sink.cjs.dev.js +32 -32
  185. package/Sink/dist/effect-Sink.cjs.prod.js +32 -32
  186. package/Sink/dist/effect-Sink.esm.js +997 -101
  187. package/SortedMap/dist/effect-SortedMap.esm.js +168 -23
  188. package/SortedSet/dist/effect-SortedSet.esm.js +263 -23
  189. package/Stream/dist/effect-Stream.cjs.dev.js +37 -37
  190. package/Stream/dist/effect-Stream.cjs.prod.js +37 -37
  191. package/Stream/dist/effect-Stream.esm.js +2879 -108
  192. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.esm.js +97 -2
  193. package/String/dist/effect-String.esm.js +600 -17
  194. package/Struct/dist/effect-Struct.esm.js +125 -4
  195. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.dev.js +37 -37
  196. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.prod.js +37 -37
  197. package/SubscriptionRef/dist/effect-SubscriptionRef.esm.js +160 -108
  198. package/Supervisor/dist/effect-Supervisor.cjs.dev.js +24 -24
  199. package/Supervisor/dist/effect-Supervisor.cjs.prod.js +24 -24
  200. package/Supervisor/dist/effect-Supervisor.esm.js +148 -85
  201. package/Symbol/dist/effect-Symbol.esm.js +30 -4
  202. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.dev.js +18 -18
  203. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.prod.js +18 -18
  204. package/SynchronizedRef/dist/effect-SynchronizedRef.esm.js +160 -78
  205. package/TArray/dist/effect-TArray.cjs.dev.js +43 -43
  206. package/TArray/dist/effect-TArray.cjs.prod.js +43 -43
  207. package/TArray/dist/effect-TArray.esm.js +367 -114
  208. package/TDeferred/dist/effect-TDeferred.cjs.dev.js +42 -42
  209. package/TDeferred/dist/effect-TDeferred.cjs.prod.js +42 -42
  210. package/TDeferred/dist/effect-TDeferred.esm.js +63 -113
  211. package/THub/dist/effect-THub.cjs.dev.js +44 -44
  212. package/THub/dist/effect-THub.cjs.prod.js +44 -44
  213. package/THub/dist/effect-THub.esm.js +157 -115
  214. package/TMap/dist/effect-TMap.cjs.dev.js +45 -45
  215. package/TMap/dist/effect-TMap.cjs.prod.js +45 -45
  216. package/TMap/dist/effect-TMap.esm.js +373 -116
  217. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.dev.js +41 -41
  218. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.prod.js +41 -41
  219. package/TPriorityQueue/dist/effect-TPriorityQueue.esm.js +184 -113
  220. package/TQueue/dist/effect-TQueue.cjs.dev.js +44 -44
  221. package/TQueue/dist/effect-TQueue.cjs.prod.js +44 -44
  222. package/TQueue/dist/effect-TQueue.esm.js +293 -115
  223. package/TRandom/dist/effect-TRandom.cjs.dev.js +43 -43
  224. package/TRandom/dist/effect-TRandom.cjs.prod.js +43 -43
  225. package/TRandom/dist/effect-TRandom.esm.js +93 -114
  226. package/TReentrantLock/dist/effect-TReentrantLock.cjs.dev.js +41 -41
  227. package/TReentrantLock/dist/effect-TReentrantLock.cjs.prod.js +41 -41
  228. package/TReentrantLock/dist/effect-TReentrantLock.esm.js +199 -112
  229. package/TRef/dist/effect-TRef.cjs.dev.js +41 -41
  230. package/TRef/dist/effect-TRef.cjs.prod.js +41 -41
  231. package/TRef/dist/effect-TRef.esm.js +116 -112
  232. package/TSemaphore/dist/effect-TSemaphore.cjs.dev.js +43 -43
  233. package/TSemaphore/dist/effect-TSemaphore.cjs.prod.js +43 -43
  234. package/TSemaphore/dist/effect-TSemaphore.esm.js +97 -114
  235. package/TSet/dist/effect-TSet.cjs.dev.js +45 -45
  236. package/TSet/dist/effect-TSet.cjs.prod.js +45 -45
  237. package/TSet/dist/effect-TSet.esm.js +268 -116
  238. package/Take/dist/effect-Take.cjs.dev.js +28 -28
  239. package/Take/dist/effect-Take.cjs.prod.js +28 -28
  240. package/Take/dist/effect-Take.esm.js +190 -91
  241. package/TestAnnotation/dist/effect-TestAnnotation.esm.js +111 -26
  242. package/TestAnnotationMap/dist/effect-TestAnnotationMap.esm.js +101 -2
  243. package/TestAnnotations/dist/effect-TestAnnotations.cjs.dev.js +7 -7
  244. package/TestAnnotations/dist/effect-TestAnnotations.cjs.prod.js +7 -7
  245. package/TestAnnotations/dist/effect-TestAnnotations.esm.js +83 -59
  246. package/TestClock/dist/effect-TestClock.cjs.dev.js +24 -24
  247. package/TestClock/dist/effect-TestClock.cjs.prod.js +24 -24
  248. package/TestClock/dist/effect-TestClock.esm.js +411 -87
  249. package/TestConfig/dist/effect-TestConfig.esm.js +27 -18
  250. package/TestContext/dist/effect-TestContext.cjs.dev.js +31 -31
  251. package/TestContext/dist/effect-TestContext.cjs.prod.js +31 -31
  252. package/TestContext/dist/effect-TestContext.esm.js +29 -98
  253. package/TestLive/dist/effect-TestLive.cjs.dev.js +3 -3
  254. package/TestLive/dist/effect-TestLive.cjs.prod.js +3 -3
  255. package/TestLive/dist/effect-TestLive.esm.js +48 -42
  256. package/TestServices/dist/effect-TestServices.cjs.dev.js +29 -29
  257. package/TestServices/dist/effect-TestServices.cjs.prod.js +29 -29
  258. package/TestServices/dist/effect-TestServices.esm.js +269 -96
  259. package/TestSized/dist/effect-TestSized.esm.js +50 -33
  260. package/Tracer/dist/effect-Tracer.cjs.dev.js +3 -3
  261. package/Tracer/dist/effect-Tracer.cjs.prod.js +3 -3
  262. package/Tracer/dist/effect-Tracer.esm.js +68 -42
  263. package/Tuple/dist/effect-Tuple.esm.js +173 -4
  264. package/Unify/dist/effect-Unify.esm.js +40 -2
  265. package/Utils/dist/effect-Utils.esm.js +352 -3
  266. package/dist/{Cache-e7468f24.cjs.dev.js → Cache-1688e584.cjs.dev.js} +1 -1
  267. package/dist/{Cache-65f7e875.cjs.prod.js → Cache-8f2f2b55.cjs.prod.js} +1 -1
  268. package/dist/{Channel-482334e0.cjs.prod.js → Channel-2ce019f1.cjs.prod.js} +2 -2
  269. package/dist/{Channel-4099f225.cjs.dev.js → Channel-544108d2.cjs.dev.js} +2 -2
  270. package/dist/{ChannelSingleProducerAsyncInput-e1260219.cjs.dev.js → ChannelSingleProducerAsyncInput-62f4749c.cjs.dev.js} +1 -1
  271. package/dist/{ChannelSingleProducerAsyncInput-9d23aac3.cjs.prod.js → ChannelSingleProducerAsyncInput-6e0084c3.cjs.prod.js} +1 -1
  272. package/dist/{Clock-0b777b1b.cjs.prod.js → Clock-09ecce0a.cjs.prod.js} +1 -1
  273. package/dist/{Clock-80bf3b4b.cjs.dev.js → Clock-bec722c1.cjs.dev.js} +1 -1
  274. package/dist/{Console-69b2fba9.cjs.prod.js → Console-150b7b40.cjs.prod.js} +3 -3
  275. package/dist/{Console-ff87924b.cjs.dev.js → Console-4825ee9f.cjs.dev.js} +3 -3
  276. package/dist/{DefaultServices-c1a6b148.cjs.dev.js → DefaultServices-d5740d37.cjs.dev.js} +1 -1
  277. package/dist/{DefaultServices-6a83f0aa.cjs.prod.js → DefaultServices-df7495bb.cjs.prod.js} +1 -1
  278. package/dist/{Duration-011e7325.cjs.prod.js → Duration-0bc08d03.cjs.prod.js} +8 -0
  279. package/dist/{Duration-5ac57eb4.cjs.dev.js → Duration-604874d1.cjs.dev.js} +8 -0
  280. package/dist/{Effect-f0659a90.cjs.prod.js → Effect-1442090f.cjs.prod.js} +9 -9
  281. package/dist/{Effect-8392a3cd.cjs.dev.js → Effect-6e9780e6.cjs.dev.js} +9 -9
  282. package/dist/{Error-5edcd83a.cjs.dev.js → Error-5ab157f2.cjs.dev.js} +1 -1
  283. package/dist/{Error-d7f0de14.cjs.prod.js → Error-e9d25c53.cjs.prod.js} +1 -1
  284. package/dist/{Fiber-c797d281.cjs.dev.js → Fiber-6432d5f7.cjs.dev.js} +3 -3
  285. package/dist/{Fiber-3b2a4091.cjs.prod.js → Fiber-e61b3c65.cjs.prod.js} +3 -3
  286. package/dist/{FiberRef-61cd9abe.cjs.dev.js → FiberRef-1db44a9b.cjs.dev.js} +2 -2
  287. package/dist/{FiberRef-0b332631.cjs.prod.js → FiberRef-efb4a3ac.cjs.prod.js} +2 -2
  288. package/dist/{GroupBy-bd212344.cjs.dev.js → GroupBy-8a8149b4.cjs.dev.js} +1 -1
  289. package/dist/{GroupBy-bb08aeb2.cjs.prod.js → GroupBy-b74084af.cjs.prod.js} +1 -1
  290. package/dist/{Hub-926961e9.cjs.prod.js → Hub-6e64debd.cjs.prod.js} +2 -2
  291. package/dist/{Hub-af0194fd.cjs.dev.js → Hub-74834668.cjs.dev.js} +2 -2
  292. package/dist/{KeyedPool-f7b4675c.cjs.dev.js → KeyedPool-b05481e9.cjs.dev.js} +3 -3
  293. package/dist/{KeyedPool-0ddba691.cjs.prod.js → KeyedPool-cd8abf95.cjs.prod.js} +3 -3
  294. package/dist/{Layer-ec0ab71c.cjs.prod.js → Layer-297269fd.cjs.prod.js} +1 -1
  295. package/dist/{Layer-6ad0ac38.cjs.dev.js → Layer-c69f3fdc.cjs.dev.js} +1 -1
  296. package/dist/{Logger-620f1fa9.cjs.dev.js → Logger-680763c7.cjs.dev.js} +2 -2
  297. package/dist/{Logger-3df1180d.cjs.prod.js → Logger-7a664cc3.cjs.prod.js} +2 -2
  298. package/dist/{Metric-ebc35919.cjs.dev.js → Metric-09d012ff.cjs.dev.js} +1 -1
  299. package/dist/{Metric-9607aa06.cjs.prod.js → Metric-b7563a68.cjs.prod.js} +1 -1
  300. package/dist/{MetricHook-fdc68e37.cjs.dev.js → MetricHook-3104e93b.cjs.dev.js} +1 -1
  301. package/dist/{MetricHook-a742d813.cjs.prod.js → MetricHook-efd05d72.cjs.prod.js} +1 -1
  302. package/dist/{MetricKey-b17b2c9a.cjs.prod.js → MetricKey-9cfcaec8.cjs.prod.js} +1 -1
  303. package/dist/{MetricKey-be3afc49.cjs.dev.js → MetricKey-c3ba437e.cjs.dev.js} +1 -1
  304. package/dist/{MetricKeyType-3dfa6802.cjs.prod.js → MetricKeyType-6d2d9036.cjs.prod.js} +1 -1
  305. package/dist/{MetricKeyType-fba3e0ec.cjs.dev.js → MetricKeyType-c1d7ebe8.cjs.dev.js} +1 -1
  306. package/dist/{MetricPolling-061de6b9.cjs.dev.js → MetricPolling-5af0ff67.cjs.dev.js} +3 -3
  307. package/dist/{MetricPolling-6e5e4b2e.cjs.prod.js → MetricPolling-a0a4e798.cjs.prod.js} +3 -3
  308. package/dist/{MetricRegistry-4df5e56b.cjs.dev.js → MetricRegistry-e4af936b.cjs.dev.js} +1 -1
  309. package/dist/{MetricRegistry-da2c65bd.cjs.prod.js → MetricRegistry-ff6df283.cjs.prod.js} +1 -1
  310. package/dist/{Pool-d8e4142e.cjs.prod.js → Pool-54389592.cjs.prod.js} +1 -1
  311. package/dist/{Pool-e8a79a57.cjs.dev.js → Pool-fe1b506a.cjs.dev.js} +1 -1
  312. package/dist/{Queue-de055f1c.cjs.prod.js → Queue-5f954287.cjs.prod.js} +1 -1
  313. package/dist/{Queue-55a39179.cjs.dev.js → Queue-8d082fe4.cjs.dev.js} +1 -1
  314. package/dist/{Random-d6a2f801.cjs.dev.js → Random-35304046.cjs.dev.js} +1 -1
  315. package/dist/{Random-ade126e8.cjs.prod.js → Random-b4709b6a.cjs.prod.js} +1 -1
  316. package/dist/{Reloadable-5f1ed95c.cjs.prod.js → Reloadable-2b8ba75d.cjs.prod.js} +5 -5
  317. package/dist/{Reloadable-e8bcb00e.cjs.dev.js → Reloadable-b01c9297.cjs.dev.js} +5 -5
  318. package/dist/{Request-45226c5f.cjs.prod.js → Request-53592fe4.cjs.prod.js} +2 -2
  319. package/dist/{Request-9d12c3ba.cjs.dev.js → Request-d3b63af6.cjs.dev.js} +2 -2
  320. package/dist/{RequestBlock-0e9f377b.cjs.dev.js → RequestBlock-1aa4c3bd.cjs.dev.js} +1 -1
  321. package/dist/{RequestBlock-d4c7c31d.cjs.prod.js → RequestBlock-8c3b51d1.cjs.prod.js} +1 -1
  322. package/dist/{RequestResolver-8764ee8c.cjs.prod.js → RequestResolver-133197d5.cjs.prod.js} +2 -2
  323. package/dist/{RequestResolver-b287a04a.cjs.dev.js → RequestResolver-86c21b80.cjs.dev.js} +2 -2
  324. package/dist/{Resource-f95cf55a.cjs.prod.js → Resource-2530fe45.cjs.prod.js} +3 -3
  325. package/dist/{Resource-4f2b627f.cjs.dev.js → Resource-e50b4b25.cjs.dev.js} +3 -3
  326. package/dist/{Runtime-969e6cb2.cjs.prod.js → Runtime-0d643f0c.cjs.prod.js} +1 -1
  327. package/dist/{Runtime-dc0234a0.cjs.dev.js → Runtime-c4b887ff.cjs.dev.js} +1 -1
  328. package/dist/{RuntimeFlags-7a400d83.cjs.prod.js → RuntimeFlags-9d8fac5a.cjs.prod.js} +1 -1
  329. package/dist/{RuntimeFlags-60dfc3f5.cjs.dev.js → RuntimeFlags-f67e3984.cjs.dev.js} +1 -1
  330. package/dist/{STM-b8d9766d.cjs.prod.js → STM-23270be2.cjs.prod.js} +2 -2
  331. package/dist/{STM-af9026e6.cjs.dev.js → STM-5a4c9921.cjs.dev.js} +2 -2
  332. package/dist/{Schedule-58648908.cjs.prod.js → Schedule-0444792d.cjs.prod.js} +1 -1
  333. package/dist/{Schedule-76089454.cjs.dev.js → Schedule-b6c7b49a.cjs.dev.js} +1 -1
  334. package/dist/{ScheduleDecision-fbd6bb79.cjs.prod.js → ScheduleDecision-369f2d2b.cjs.prod.js} +1 -1
  335. package/dist/{ScheduleDecision-9555a6dc.cjs.dev.js → ScheduleDecision-ba8d0e87.cjs.dev.js} +1 -1
  336. package/dist/{ScheduleInterval-3ca6dbb0.cjs.dev.js → ScheduleInterval-51f42533.cjs.dev.js} +1 -1
  337. package/dist/{ScheduleInterval-15c7da05.cjs.prod.js → ScheduleInterval-78037484.cjs.prod.js} +1 -1
  338. package/dist/{ScheduleIntervals-36ff45c1.cjs.dev.js → ScheduleIntervals-b0bfcf3b.cjs.dev.js} +1 -1
  339. package/dist/{ScheduleIntervals-a5bbdb0d.cjs.prod.js → ScheduleIntervals-db13140c.cjs.prod.js} +1 -1
  340. package/dist/{Scope-e3e714b4.cjs.prod.js → Scope-311c7eb9.cjs.prod.js} +1 -1
  341. package/dist/{Scope-820b74b2.cjs.dev.js → Scope-6ba9ec6d.cjs.dev.js} +1 -1
  342. package/dist/{ScopedCache-f9b2f52e.cjs.dev.js → ScopedCache-3f58b125.cjs.dev.js} +5 -5
  343. package/dist/{ScopedCache-467ccc2b.cjs.prod.js → ScopedCache-8f99505c.cjs.prod.js} +5 -5
  344. package/dist/{ScopedRef-b45fd0e8.cjs.prod.js → ScopedRef-7946d287.cjs.prod.js} +1 -1
  345. package/dist/{ScopedRef-735385de.cjs.dev.js → ScopedRef-b92e1633.cjs.dev.js} +1 -1
  346. package/dist/{Sink-dffe83ea.cjs.dev.js → Sink-9f13da17.cjs.dev.js} +1 -1
  347. package/dist/{Sink-cb1bba84.cjs.prod.js → Sink-9f82fc3b.cjs.prod.js} +1 -1
  348. package/dist/{Stream-c348a386.cjs.dev.js → Stream-14325ecb.cjs.dev.js} +2 -2
  349. package/dist/{Stream-39e8de11.cjs.prod.js → Stream-cf262c16.cjs.prod.js} +2 -2
  350. package/dist/{SubscriptionRef-62745b92.cjs.prod.js → SubscriptionRef-aa7bdc5f.cjs.prod.js} +5 -5
  351. package/dist/{SubscriptionRef-53e8686c.cjs.dev.js → SubscriptionRef-d3c1aa07.cjs.dev.js} +5 -5
  352. package/dist/{Supervisor-0ea7382b.cjs.prod.js → Supervisor-21087253.cjs.prod.js} +2 -2
  353. package/dist/{Supervisor-cf21fcaa.cjs.dev.js → Supervisor-40dd7ce5.cjs.dev.js} +2 -2
  354. package/dist/{SynchronizedRef-9e9689e9.cjs.dev.js → SynchronizedRef-3181eb0a.cjs.dev.js} +1 -1
  355. package/dist/{SynchronizedRef-2cc5af97.cjs.prod.js → SynchronizedRef-c6e0884b.cjs.prod.js} +1 -1
  356. package/dist/{TArray-6057170a.cjs.prod.js → TArray-6767b4bd.cjs.prod.js} +1 -1
  357. package/dist/{TArray-0b280c93.cjs.dev.js → TArray-a0a4c6e6.cjs.dev.js} +1 -1
  358. package/dist/{TDeferred-73b5dfc2.cjs.prod.js → TDeferred-a9839479.cjs.prod.js} +3 -3
  359. package/dist/{TDeferred-786b2b13.cjs.dev.js → TDeferred-ac2c4025.cjs.dev.js} +3 -3
  360. package/dist/{THub-810db270.cjs.prod.js → THub-25b77864.cjs.prod.js} +5 -5
  361. package/dist/{THub-bcd35bc0.cjs.dev.js → THub-38053ae1.cjs.dev.js} +5 -5
  362. package/dist/{TMap-7206da08.cjs.prod.js → TMap-91505efa.cjs.prod.js} +1 -1
  363. package/dist/{TMap-06e0747b.cjs.dev.js → TMap-de8ac080.cjs.dev.js} +1 -1
  364. package/dist/{TPriorityQueue-71490af5.cjs.prod.js → TPriorityQueue-00b65d1a.cjs.prod.js} +2 -2
  365. package/dist/{TPriorityQueue-0844551b.cjs.dev.js → TPriorityQueue-96ff0e15.cjs.dev.js} +2 -2
  366. package/dist/{TQueue-67ccf55b.cjs.prod.js → TQueue-5e242ca2.cjs.prod.js} +1 -1
  367. package/dist/{TQueue-5621ef6e.cjs.dev.js → TQueue-707762bf.cjs.dev.js} +1 -1
  368. package/dist/{TRandom-c974e739.cjs.dev.js → TRandom-5eb21d23.cjs.dev.js} +5 -5
  369. package/dist/{TRandom-557dc8e1.cjs.prod.js → TRandom-ec9c7bf7.cjs.prod.js} +5 -5
  370. package/dist/{TReentrantLock-5f7cba2d.cjs.dev.js → TReentrantLock-1b77d76f.cjs.dev.js} +3 -3
  371. package/dist/{TReentrantLock-e6ee830e.cjs.prod.js → TReentrantLock-c5a8401e.cjs.prod.js} +3 -3
  372. package/dist/{TRef-f7b2bc6f.cjs.prod.js → TRef-b87580d7.cjs.prod.js} +1 -1
  373. package/dist/{TRef-38eac0f0.cjs.dev.js → TRef-cf2e8ad7.cjs.dev.js} +1 -1
  374. package/dist/{TSemaphore-28d87428.cjs.prod.js → TSemaphore-29503416.cjs.prod.js} +4 -4
  375. package/dist/{TSemaphore-3cf15f77.cjs.dev.js → TSemaphore-50edec08.cjs.dev.js} +4 -4
  376. package/dist/{TSet-677ac73c.cjs.prod.js → TSet-3c2568e9.cjs.prod.js} +2 -2
  377. package/dist/{TSet-1dca2ef3.cjs.dev.js → TSet-bb4775ca.cjs.dev.js} +2 -2
  378. package/dist/{Take-bfdbd28d.cjs.dev.js → Take-684c9901.cjs.dev.js} +1 -1
  379. package/dist/{Take-e40627bd.cjs.prod.js → Take-b4c91438.cjs.prod.js} +1 -1
  380. package/dist/{TestAnnotations-14444032.cjs.prod.js → TestAnnotations-5db95828.cjs.prod.js} +2 -2
  381. package/dist/{TestAnnotations-ee0f8c79.cjs.dev.js → TestAnnotations-733b39ef.cjs.dev.js} +2 -2
  382. package/dist/{TestClock-30ba14e8.cjs.prod.js → TestClock-89a36b89.cjs.prod.js} +8 -8
  383. package/dist/{TestClock-d782f3ee.cjs.dev.js → TestClock-e2773846.cjs.dev.js} +8 -8
  384. package/dist/{TestContext-eebb1aad.cjs.dev.js → TestContext-3328163e.cjs.dev.js} +4 -4
  385. package/dist/{TestContext-f76f750e.cjs.prod.js → TestContext-917bf305.cjs.prod.js} +4 -4
  386. package/dist/{TestLive-dc458127.cjs.dev.js → TestLive-465ad3ef.cjs.dev.js} +1 -1
  387. package/dist/{TestLive-e5d614fe.cjs.prod.js → TestLive-f3232ac4.cjs.prod.js} +1 -1
  388. package/dist/{TestServices-b3af20a3.cjs.prod.js → TestServices-605f726e.cjs.prod.js} +6 -6
  389. package/dist/{TestServices-7a60d735.cjs.dev.js → TestServices-921e5c42.cjs.dev.js} +6 -6
  390. package/dist/{Tracer-3cd1e3bc.cjs.prod.js → Tracer-d06d0b61.cjs.prod.js} +1 -1
  391. package/dist/{Tracer-435e56fd.cjs.dev.js → Tracer-da182c8c.cjs.dev.js} +1 -1
  392. package/dist/{cache-66637407.cjs.dev.js → cache-6cdc31f7.cjs.dev.js} +3 -3
  393. package/dist/{cache-c88afdc0.cjs.prod.js → cache-ab7bbfbd.cjs.prod.js} +3 -3
  394. package/dist/{circular-d08ca815.cjs.dev.js → circular-4cb0b79d.cjs.dev.js} +5 -5
  395. package/dist/{circular-7eed8a92.cjs.prod.js → circular-5b3558d9.cjs.prod.js} +5 -5
  396. package/dist/{circular-5c436934.cjs.dev.js → circular-78011d6b.cjs.dev.js} +3 -3
  397. package/dist/{circular-c8f8e360.cjs.prod.js → circular-81b4c556.cjs.prod.js} +3 -3
  398. package/dist/{core-20a91d69.cjs.prod.js → core-4ced6e17.cjs.prod.js} +4 -4
  399. package/dist/{core-6e50c01f.cjs.dev.js → core-d9eea905.cjs.dev.js} +4 -4
  400. package/dist/{core-effect-780f9db7.cjs.dev.js → core-effect-a9b8ee08.cjs.dev.js} +4 -4
  401. package/dist/{core-effect-023f4abe.cjs.prod.js → core-effect-bf806dd9.cjs.prod.js} +4 -4
  402. package/dist/{dataSource-7ec08fa5.cjs.prod.js → dataSource-abccc876.cjs.prod.js} +2 -2
  403. package/dist/{dataSource-e56e2a99.cjs.dev.js → dataSource-d5f79f4e.cjs.dev.js} +2 -2
  404. package/dist/declarations/src/Duration.d.ts +5 -0
  405. package/dist/declarations/src/Duration.d.ts.map +1 -1
  406. package/dist/{defaultServices-452aebad.cjs.prod.js → defaultServices-4112c0c9.cjs.prod.js} +1 -1
  407. package/dist/{defaultServices-e9a9b935.cjs.dev.js → defaultServices-60c753dc.cjs.dev.js} +1 -1
  408. package/dist/effect.cjs.dev.js +93 -93
  409. package/dist/effect.cjs.prod.js +93 -93
  410. package/dist/effect.esm.js +283 -197
  411. package/dist/{fiber-2975db3a.cjs.prod.js → fiber-90ffaf8c.cjs.prod.js} +1 -1
  412. package/dist/{fiber-1132297b.cjs.dev.js → fiber-da1a207c.cjs.dev.js} +1 -1
  413. package/dist/{fiberRuntime-9d6d53be.cjs.prod.js → fiberRuntime-1c369a47.cjs.prod.js} +7 -7
  414. package/dist/{fiberRuntime-ac7fae54.cjs.dev.js → fiberRuntime-e9680313.cjs.dev.js} +7 -7
  415. package/dist/{groupBy-f0a83f90.cjs.prod.js → groupBy-0cc85afb.cjs.prod.js} +5 -5
  416. package/dist/{groupBy-e1d3c5e8.cjs.dev.js → groupBy-b204a881.cjs.dev.js} +5 -5
  417. package/dist/{hook-0bf192b2.cjs.prod.js → hook-6c7550dc.cjs.prod.js} +1 -1
  418. package/dist/{hook-9e86d119.cjs.dev.js → hook-822704ea.cjs.dev.js} +1 -1
  419. package/dist/{key-a79acfe7.cjs.prod.js → key-330b98b1.cjs.prod.js} +1 -1
  420. package/dist/{key-6ac569ca.cjs.dev.js → key-a474fc0d.cjs.dev.js} +1 -1
  421. package/dist/{keyType-c1e7cfc5.cjs.dev.js → keyType-1e916ae2.cjs.dev.js} +1 -1
  422. package/dist/{keyType-681c1c4a.cjs.prod.js → keyType-8460e792.cjs.prod.js} +1 -1
  423. package/dist/{layer-f0c8023d.cjs.dev.js → layer-ae8eefad.cjs.dev.js} +9 -9
  424. package/dist/{layer-db9c42be.cjs.prod.js → layer-ffacc2c5.cjs.prod.js} +9 -9
  425. package/dist/{pool-cd9f1284.cjs.dev.js → pool-3f16af61.cjs.dev.js} +4 -4
  426. package/dist/{pool-975b7d21.cjs.prod.js → pool-59a31f55.cjs.prod.js} +4 -4
  427. package/dist/{query-12e387cf.cjs.dev.js → query-193d0a89.cjs.dev.js} +3 -3
  428. package/dist/{query-eb8a7001.cjs.prod.js → query-fe4a82d6.cjs.prod.js} +3 -3
  429. package/dist/{queue-0dbc2b3f.cjs.dev.js → queue-04ae7ec7.cjs.dev.js} +1 -1
  430. package/dist/{queue-f70dda1a.cjs.prod.js → queue-b81aee38.cjs.prod.js} +1 -1
  431. package/dist/{registry-92c00ecd.cjs.prod.js → registry-29905dcc.cjs.prod.js} +2 -2
  432. package/dist/{registry-9e9ae2c7.cjs.dev.js → registry-c883cf52.cjs.dev.js} +2 -2
  433. package/dist/{runtime-f8d0f39b.cjs.dev.js → runtime-3ae98f19.cjs.dev.js} +3 -3
  434. package/dist/{runtime-0ada41f2.cjs.prod.js → runtime-8c3f1bd3.cjs.prod.js} +3 -3
  435. package/dist/{schedule-18b063cb.cjs.dev.js → schedule-479d8fcc.cjs.dev.js} +7 -7
  436. package/dist/{schedule-f918adf5.cjs.prod.js → schedule-7e30db2d.cjs.prod.js} +7 -7
  437. package/dist/{scopedRef-50091b28.cjs.dev.js → scopedRef-16d9d192.cjs.dev.js} +3 -3
  438. package/dist/{scopedRef-d6396f06.cjs.prod.js → scopedRef-40b5bb82.cjs.prod.js} +3 -3
  439. package/dist/{singleProducerAsyncInput-f3dd657f.cjs.dev.js → singleProducerAsyncInput-552122e6.cjs.dev.js} +1 -1
  440. package/dist/{singleProducerAsyncInput-bd600183.cjs.prod.js → singleProducerAsyncInput-c5ff73b7.cjs.prod.js} +1 -1
  441. package/dist/{sink-bb64c8a6.cjs.dev.js → sink-16a1a901.cjs.dev.js} +9 -9
  442. package/dist/{sink-6a1db2b0.cjs.prod.js → sink-c9ae7558.cjs.prod.js} +9 -9
  443. package/dist/{stm-2b8fa344.cjs.dev.js → stm-44f045e5.cjs.dev.js} +3 -3
  444. package/dist/{stm-e3401389.cjs.prod.js → stm-59af7e62.cjs.prod.js} +3 -3
  445. package/dist/{stream-7bc5bfac.cjs.dev.js → stream-84a13e23.cjs.dev.js} +13 -17
  446. package/dist/{stream-22ea5a61.cjs.prod.js → stream-8acbee57.cjs.prod.js} +13 -17
  447. package/dist/{tArray-a211cc29.cjs.prod.js → tArray-a690480d.cjs.prod.js} +3 -3
  448. package/dist/{tArray-36a6e713.cjs.dev.js → tArray-c0a3d1e2.cjs.dev.js} +3 -3
  449. package/dist/{tMap-fd504724.cjs.dev.js → tMap-1c1b10c4.cjs.dev.js} +5 -5
  450. package/dist/{tMap-9c22a2ff.cjs.prod.js → tMap-8dfc92f5.cjs.prod.js} +5 -5
  451. package/dist/{tQueue-4b66ca7b.cjs.prod.js → tQueue-48a29f8b.cjs.prod.js} +4 -4
  452. package/dist/{tQueue-565f8994.cjs.dev.js → tQueue-aaec000f.cjs.dev.js} +4 -4
  453. package/dist/{tRef-565db536.cjs.dev.js → tRef-1df89632.cjs.dev.js} +1 -1
  454. package/dist/{tRef-74dff65b.cjs.prod.js → tRef-cc473a9f.cjs.prod.js} +1 -1
  455. package/dist/{take-05ea3c27.cjs.prod.js → take-906e6ef4.cjs.prod.js} +1 -1
  456. package/dist/{take-f87477f8.cjs.dev.js → take-e1c6b82a.cjs.dev.js} +1 -1
  457. package/{dist/Context-149c432f.esm.js → internal/Context.esm.js} +9 -9
  458. package/internal/Data.esm.js +49 -0
  459. package/internal/Differ/ChunkPatch.esm.js +131 -0
  460. package/internal/Differ/ContextPatch.esm.js +158 -0
  461. package/internal/Differ/HashMapPatch.esm.js +133 -0
  462. package/internal/Differ/HashSetPatch.esm.js +107 -0
  463. package/internal/Differ/OrPatch.esm.js +196 -0
  464. package/internal/Differ.esm.js +130 -0
  465. package/internal/Effectable.esm.js +89 -0
  466. package/internal/Either.esm.js +95 -0
  467. package/internal/Encoding/Base64.esm.js +74 -0
  468. package/internal/Encoding/Base64Url.esm.js +24 -0
  469. package/internal/Encoding/Common.esm.js +21 -0
  470. package/internal/Encoding/Hex.esm.js +55 -0
  471. package/internal/HashMap/array.esm.js +51 -0
  472. package/internal/HashMap/bitwise.esm.js +34 -0
  473. package/internal/HashMap/config.esm.js +16 -0
  474. package/internal/HashMap/keySet.esm.js +8 -0
  475. package/internal/HashMap/node.esm.js +253 -0
  476. package/internal/HashMap.esm.js +366 -0
  477. package/internal/HashSet.esm.js +211 -0
  478. package/internal/Option.esm.js +75 -0
  479. package/{dist/ReadonlyArray-c8b1f51c.esm.js → internal/ReadonlyArray.esm.js} +1 -1
  480. package/internal/RedBlackTree/iterator.esm.js +204 -0
  481. package/internal/RedBlackTree/node.esm.js +43 -0
  482. package/{dist/RedBlackTree-611b3b4c.esm.js → internal/RedBlackTree.esm.js} +65 -655
  483. package/{dist/Stack-765c2298.esm.js → internal/Stack.esm.js} +1 -1
  484. package/internal/blockedRequests.esm.js +365 -0
  485. package/{dist/cache-d62912e6.esm.js → internal/cache.esm.js} +18 -18
  486. package/internal/cause.esm.js +1067 -0
  487. package/internal/channel/channelExecutor.esm.js +692 -0
  488. package/internal/channel/channelState.esm.js +78 -0
  489. package/{dist/childExecutorDecision-a7b466d2.esm.js → internal/channel/childExecutorDecision.esm.js} +3 -17
  490. package/internal/channel/continuation.esm.js +58 -0
  491. package/{dist/mergeDecision-d31cb28c.esm.js → internal/channel/mergeDecision.esm.js} +3 -12
  492. package/{dist/mergeState-1325df20.esm.js → internal/channel/mergeState.esm.js} +3 -17
  493. package/{dist/mergeStrategy-a88b5442.esm.js → internal/channel/mergeStrategy.esm.js} +3 -12
  494. package/{dist/singleProducerAsyncInput-5b2ede75.esm.js → internal/channel/singleProducerAsyncInput.esm.js} +8 -8
  495. package/internal/channel/subexecutor.esm.js +153 -0
  496. package/{dist/upstreamPullRequest-fed99e29.esm.js → internal/channel/upstreamPullRequest.esm.js} +3 -12
  497. package/{dist/upstreamPullStrategy-d5d1aa92.esm.js → internal/channel/upstreamPullStrategy.esm.js} +3 -12
  498. package/internal/channel.esm.js +648 -0
  499. package/internal/clock.esm.js +82 -0
  500. package/internal/completedRequestMap.esm.js +7 -0
  501. package/internal/concurrency.esm.js +47 -0
  502. package/{dist/config-b039b99f.esm.js → internal/config.esm.js} +12 -66
  503. package/{dist/configError-8b2e2999.esm.js → internal/configError.esm.js} +5 -34
  504. package/{dist/pathPatch-f393ab1b.esm.js → internal/configProvider/pathPatch.esm.js} +7 -7
  505. package/{dist/configProvider-c997961d.esm.js → internal/configProvider.esm.js} +16 -79
  506. package/{dist/configSecret-6e9eaf9d.esm.js → internal/configSecret.esm.js} +5 -5
  507. package/internal/console.esm.js +72 -0
  508. package/{dist/core-effect-57445976.esm.js → internal/core-effect.esm.js} +26 -53
  509. package/internal/core-stream.esm.js +293 -0
  510. package/internal/core.esm.js +1745 -0
  511. package/{dist/dataSource-1f41ea46.esm.js → internal/dataSource.esm.js} +9 -8
  512. package/internal/defaultServices/console.esm.js +96 -0
  513. package/internal/defaultServices.esm.js +84 -0
  514. package/internal/deferred.esm.js +37 -0
  515. package/{dist/circular-08fb0138.esm.js → internal/effect/circular.esm.js} +23 -20
  516. package/internal/executionStrategy.esm.js +61 -0
  517. package/{dist/fiber-8fb398f3.esm.js → internal/fiber.esm.js} +15 -121
  518. package/internal/fiberId.esm.js +243 -0
  519. package/internal/fiberMessage.esm.js +54 -0
  520. package/{dist/patch-743d675c.esm.js → internal/fiberRefs/patch.esm.js} +5 -5
  521. package/{dist/fiberRefs-69cce1a0.esm.js → internal/fiberRefs.esm.js} +8 -8
  522. package/{dist/fiberRuntime-bfcf5f49.esm.js → internal/fiberRuntime.esm.js} +152 -1006
  523. package/internal/fiberScope.esm.js +58 -0
  524. package/internal/fiberStatus.esm.js +89 -0
  525. package/{dist/groupBy-d11b31b1.esm.js → internal/groupBy.esm.js} +16 -14
  526. package/{dist/Hub-121dbf51.esm.js → internal/hub.esm.js} +34 -196
  527. package/internal/keyedPool.esm.js +161 -0
  528. package/{dist/circular-e463e1e6.esm.js → internal/layer/circular.esm.js} +10 -8
  529. package/{dist/layer-35828af7.esm.js → internal/layer.esm.js} +21 -65
  530. package/internal/logSpan.esm.js +15 -0
  531. package/internal/logger-circular.esm.js +21 -0
  532. package/internal/logger.esm.js +213 -0
  533. package/{dist/boundaries-52029180.esm.js → internal/metric/boundaries.esm.js} +7 -7
  534. package/{dist/hook-fd61107b.esm.js → internal/metric/hook.esm.js} +10 -10
  535. package/{dist/key-340a2bae.esm.js → internal/metric/key.esm.js} +9 -9
  536. package/{dist/keyType-869d90f8.esm.js → internal/metric/keyType.esm.js} +6 -6
  537. package/{dist/label-0cc6c9a0.esm.js → internal/metric/label.esm.js} +5 -5
  538. package/{dist/pair-5bb3eef4.esm.js → internal/metric/pair.esm.js} +2 -2
  539. package/internal/metric/polling.esm.js +74 -0
  540. package/{dist/registry-c59aeb06.esm.js → internal/metric/registry.esm.js} +8 -8
  541. package/{dist/state-2c6abdb1.esm.js → internal/metric/state.esm.js} +5 -5
  542. package/internal/metric.esm.js +204 -0
  543. package/internal/opCodes/cause.esm.js +31 -0
  544. package/internal/opCodes/channel.esm.js +71 -0
  545. package/internal/opCodes/channelChildExecutorDecision.esm.js +16 -0
  546. package/internal/opCodes/channelMergeDecision.esm.js +11 -0
  547. package/internal/opCodes/channelMergeState.esm.js +16 -0
  548. package/internal/opCodes/channelMergeStrategy.esm.js +11 -0
  549. package/internal/opCodes/channelState.esm.js +21 -0
  550. package/internal/opCodes/channelUpstreamPullRequest.esm.js +11 -0
  551. package/internal/opCodes/channelUpstreamPullStrategy.esm.js +11 -0
  552. package/internal/opCodes/config.esm.js +56 -0
  553. package/internal/opCodes/configError.esm.js +31 -0
  554. package/internal/opCodes/continuation.esm.js +11 -0
  555. package/internal/opCodes/deferred.esm.js +11 -0
  556. package/internal/opCodes/effect.esm.js +71 -0
  557. package/internal/opCodes/layer.esm.js +46 -0
  558. package/internal/opCodes/streamHaltStrategy.esm.js +21 -0
  559. package/{dist/pool-7d5c25ef.esm.js → internal/pool.esm.js} +13 -13
  560. package/{dist/query-242f7fda.esm.js → internal/query.esm.js} +10 -7
  561. package/{dist/queue-f74db567.esm.js → internal/queue.esm.js} +10 -10
  562. package/internal/random.esm.js +58 -0
  563. package/internal/ref.esm.js +121 -0
  564. package/internal/reloadable.esm.js +62 -0
  565. package/internal/request.esm.js +81 -0
  566. package/internal/resource.esm.js +35 -0
  567. package/internal/ringBuffer.esm.js +56 -0
  568. package/{dist/runtime-bcdd4416.esm.js → internal/runtime.esm.js} +19 -17
  569. package/internal/runtimeFlags.esm.js +137 -0
  570. package/internal/runtimeFlagsPatch.esm.js +57 -0
  571. package/internal/schedule/decision.esm.js +45 -0
  572. package/internal/schedule/interval.esm.js +85 -0
  573. package/internal/schedule/intervals.esm.js +135 -0
  574. package/{dist/schedule-566ae18c.esm.js → internal/schedule.esm.js} +26 -25
  575. package/{dist/ScopedCache-8fa7e96d.esm.js → internal/scopedCache.esm.js} +27 -83
  576. package/{dist/scopedRef-0fdefef8.esm.js → internal/scopedRef.esm.js} +10 -10
  577. package/internal/singleShotGen.esm.js +30 -0
  578. package/internal/sink.esm.js +918 -0
  579. package/{dist/core-f6cae6d7.esm.js → internal/stm/core.esm.js} +46 -525
  580. package/internal/stm/opCodes/stm.esm.js +56 -0
  581. package/internal/stm/opCodes/stmState.esm.js +16 -0
  582. package/internal/stm/opCodes/strategy.esm.js +16 -0
  583. package/internal/stm/opCodes/tExit.esm.js +26 -0
  584. package/internal/stm/opCodes/tryCommit.esm.js +11 -0
  585. package/internal/stm/stm/entry.esm.js +47 -0
  586. package/internal/stm/stm/journal.esm.js +96 -0
  587. package/internal/stm/stm/stmState.esm.js +104 -0
  588. package/internal/stm/stm/tExit.esm.js +113 -0
  589. package/internal/stm/stm/tryCommit.esm.js +25 -0
  590. package/internal/stm/stm/txnId.esm.js +15 -0
  591. package/internal/stm/stm/versioned.esm.js +8 -0
  592. package/{dist/stm-6937f6f2.esm.js → internal/stm/stm.esm.js} +16 -14
  593. package/{dist/tArray-79024770.esm.js → internal/stm/tArray.esm.js} +8 -8
  594. package/internal/stm/tDeferred.esm.js +49 -0
  595. package/{dist/THub-573c2fb3.esm.js → internal/stm/tHub.esm.js} +28 -200
  596. package/{dist/tMap-907e37f4.esm.js → internal/stm/tMap.esm.js} +13 -13
  597. package/internal/stm/tPriorityQueue.esm.js +156 -0
  598. package/{dist/tQueue-74395d76.esm.js → internal/stm/tQueue.esm.js} +10 -24
  599. package/internal/stm/tRandom.esm.js +89 -0
  600. package/internal/stm/tReentrantLock.esm.js +216 -0
  601. package/{dist/tRef-fc8ff438.esm.js → internal/stm/tRef.esm.js} +6 -4
  602. package/internal/stm/tSemaphore.esm.js +73 -0
  603. package/internal/stm/tSet.esm.js +113 -0
  604. package/internal/stream/debounceState.esm.js +39 -0
  605. package/internal/stream/emit.esm.js +51 -0
  606. package/internal/stream/haltStrategy.esm.js +74 -0
  607. package/internal/stream/handoff.esm.js +79 -0
  608. package/internal/stream/handoffSignal.esm.js +40 -0
  609. package/internal/stream/pull.esm.js +10 -0
  610. package/internal/stream/sinkEndReason.esm.js +27 -0
  611. package/internal/stream/zipAllState.esm.js +65 -0
  612. package/internal/stream/zipChunksState.esm.js +41 -0
  613. package/{dist/stream-e44fba40.esm.js → internal/stream.esm.js} +399 -770
  614. package/internal/string-utils.esm.js +66 -0
  615. package/internal/subscriptionRef.esm.js +65 -0
  616. package/internal/supervisor/patch.esm.js +156 -0
  617. package/internal/supervisor.esm.js +204 -0
  618. package/{dist/synchronizedRef-1ceb6bd3.esm.js → internal/synchronizedRef.esm.js} +4 -4
  619. package/{dist/take-0d5e0eab.esm.js → internal/take.esm.js} +8 -8
  620. package/internal/testing/suspendedWarningData.esm.js +66 -0
  621. package/internal/testing/warningData.esm.js +75 -0
  622. package/{dist/timeout-4180303d.esm.js → internal/timeout.esm.js} +1 -1
  623. package/internal/tracer.esm.js +61 -0
  624. package/package.json +700 -554
  625. package/dist/Bigint-bf034c1f.esm.js +0 -370
  626. package/dist/Boolean-bf38e241.esm.js +0 -248
  627. package/dist/Brand-f068009f.esm.js +0 -215
  628. package/dist/Cache-27cd0ab7.esm.js +0 -120
  629. package/dist/Cause-5946c7a3.esm.js +0 -730
  630. package/dist/Channel-4bba5096.esm.js +0 -1109
  631. package/dist/ChannelChildExecutorDecision-674b3a48.esm.js +0 -125
  632. package/dist/ChannelMergeDecision-e5f34de0.esm.js +0 -70
  633. package/dist/ChannelMergeState-ae694a7c.esm.js +0 -114
  634. package/dist/ChannelMergeStrategy-9ef51c54.esm.js +0 -95
  635. package/dist/ChannelSingleProducerAsyncInput-1d15a3ec.esm.js +0 -52
  636. package/dist/ChannelUpstreamPullRequest-9b3a6733.esm.js +0 -95
  637. package/dist/ChannelUpstreamPullStrategy-85e1042b.esm.js +0 -94
  638. package/dist/Chunk-4c1f4599.esm.js +0 -1167
  639. package/dist/Clock-f8b987d7.esm.js +0 -88
  640. package/dist/Config-8d8f5a9f.esm.js +0 -358
  641. package/dist/ConfigError-41421a53.esm.js +0 -206
  642. package/dist/ConfigProvider-977168f2.esm.js +0 -220
  643. package/dist/ConfigProviderPathPatch-881ec2b5.esm.js +0 -79
  644. package/dist/ConfigSecret-9d3bf471.esm.js +0 -74
  645. package/dist/Console-9be5cd81.esm.js +0 -247
  646. package/dist/Context-c41aa832.esm.js +0 -312
  647. package/dist/Data-dee529b9.esm.js +0 -224
  648. package/dist/DefaultServices-b70d7e44.esm.js +0 -30
  649. package/dist/Deferred-9010d2ac.esm.js +0 -230
  650. package/dist/Differ-a249bf4d.esm.js +0 -975
  651. package/dist/Duration-98bca14c.esm.js +0 -467
  652. package/dist/Effect-ee05a487.esm.js +0 -3417
  653. package/dist/Effectable-a292d920.esm.js +0 -158
  654. package/dist/Effectable-d9b23ee3.esm.js +0 -89
  655. package/dist/Either-408d23a8.esm.js +0 -163
  656. package/dist/Either-aa46c018.esm.js +0 -473
  657. package/dist/Encoding-d95012ad.esm.js +0 -295
  658. package/dist/Equal-2a99fde3.esm.js +0 -65
  659. package/dist/Equivalence-cf2752b1.esm.js +0 -218
  660. package/dist/Error-083b7b69.esm.js +0 -53
  661. package/dist/ExecutionStrategy-e3775e86.esm.js +0 -168
  662. package/dist/Exit-666b4f01.esm.js +0 -371
  663. package/dist/Fiber-ebef9c60.esm.js +0 -473
  664. package/dist/FiberId-17e50f05.esm.js +0 -422
  665. package/dist/FiberRef-ddf157fd.esm.js +0 -338
  666. package/dist/FiberRefs-f705c1b5.esm.js +0 -122
  667. package/dist/FiberRefsPatch-04e0adc7.esm.js +0 -84
  668. package/dist/FiberStatus-7a24d5ef.esm.js +0 -187
  669. package/dist/Function-12511160.esm.js +0 -516
  670. package/dist/GlobalValue-b5edf230.esm.js +0 -25
  671. package/dist/GroupBy-4c667347.esm.js +0 -72
  672. package/dist/HKT-1990744d.esm.js +0 -5
  673. package/dist/Hash-7910f34f.esm.js +0 -179
  674. package/dist/HashMap-6c230bde.esm.js +0 -327
  675. package/dist/HashSet-69824ba8.esm.js +0 -907
  676. package/dist/HashSet-ae2856c1.esm.js +0 -256
  677. package/dist/Inspectable-b0c51e90.esm.js +0 -45
  678. package/dist/KeyedPool-08ee3618.esm.js +0 -273
  679. package/dist/Layer-8586a429.esm.js +0 -623
  680. package/dist/List-6e58a1e9.esm.js +0 -865
  681. package/dist/LogLevel-5a4fa506.esm.js +0 -222
  682. package/dist/LogSpan-f36e9619.esm.js +0 -42
  683. package/dist/Logger-aafaa76b.esm.js +0 -246
  684. package/dist/Metric-fef02dd6.esm.js +0 -442
  685. package/dist/MetricBoundaries-c8610876.esm.js +0 -61
  686. package/dist/MetricHook-6859801b.esm.js +0 -80
  687. package/dist/MetricKey-d1b96e85.esm.js +0 -118
  688. package/dist/MetricKeyType-4ce20904.esm.js +0 -168
  689. package/dist/MetricLabel-123185d1.esm.js +0 -48
  690. package/dist/MetricPair-840a98b7.esm.js +0 -45
  691. package/dist/MetricPolling-538e65c8.esm.js +0 -167
  692. package/dist/MetricRegistry-1e32438c.esm.js +0 -34
  693. package/dist/MetricState-ccc2e0db.esm.js +0 -172
  694. package/dist/MutableHashMap-02b39969.esm.js +0 -142
  695. package/dist/MutableHashSet-db4f96e8.esm.js +0 -101
  696. package/dist/MutableList-76401868.esm.js +0 -281
  697. package/dist/MutableQueue-446ac662.esm.js +0 -202
  698. package/dist/MutableRef-2734b082.esm.js +0 -176
  699. package/dist/NonEmptyIterable-e78d759e.esm.js +0 -33
  700. package/dist/Number-4b836a09.esm.js +0 -394
  701. package/dist/Option-df40d2b9.esm.js +0 -1135
  702. package/dist/Order-a875fe30.esm.js +0 -293
  703. package/dist/Ordering-079176ff.esm.js +0 -97
  704. package/dist/Pipeable-10760a1d.esm.js +0 -49
  705. package/dist/Pool-f1667f78.esm.js +0 -114
  706. package/dist/Predicate-6b61b95b.esm.js +0 -677
  707. package/dist/Queue-d99be5de.esm.js +0 -362
  708. package/dist/Random-5ed16d23.esm.js +0 -94
  709. package/dist/ReadonlyArray-0a71b226.esm.js +0 -1584
  710. package/dist/ReadonlyRecord-c9f03980.esm.js +0 -544
  711. package/dist/Ref-5eefaff1.esm.js +0 -248
  712. package/dist/Reloadable-e2eba7eb.esm.js +0 -159
  713. package/dist/Request-8b0e9130.esm.js +0 -175
  714. package/dist/RequestBlock-88afac19.esm.js +0 -114
  715. package/dist/RequestResolver-f17a25be.esm.js +0 -213
  716. package/dist/Resource-525ecb8a.esm.js +0 -111
  717. package/dist/Runtime-7b6c0a8b.esm.js +0 -175
  718. package/dist/RuntimeFlags-60048f70.esm.js +0 -344
  719. package/dist/RuntimeFlagsPatch-51f77dce.esm.js +0 -365
  720. package/dist/STM-1ef98d11.esm.js +0 -1321
  721. package/dist/Schedule-8502145c.esm.js +0 -1059
  722. package/dist/ScheduleDecision-e0b221dc.esm.js +0 -99
  723. package/dist/ScheduleInterval-cc7fc624.esm.js +0 -229
  724. package/dist/ScheduleIntervals-c4dc0500.esm.js +0 -252
  725. package/dist/Scheduler-844c1a90.esm.js +0 -343
  726. package/dist/Scope-0253ac82.esm.js +0 -131
  727. package/dist/ScopedRef-d92cda3b.esm.js +0 -80
  728. package/dist/Sink-322b0a96.esm.js +0 -1107
  729. package/dist/SortedMap-e429b26f.esm.js +0 -190
  730. package/dist/SortedSet-ffc2cefd.esm.js +0 -288
  731. package/dist/Stream-a54c82e5.esm.js +0 -3175
  732. package/dist/StreamEmit-bd696ab0.esm.js +0 -5
  733. package/dist/StreamHaltStrategy-592df221.esm.js +0 -201
  734. package/dist/String-5d27ad4c.esm.js +0 -648
  735. package/dist/Struct-b95eb81c.esm.js +0 -134
  736. package/dist/SubscriptionRef-93d8d20b.esm.js +0 -245
  737. package/dist/Supervisor-802f0ad0.esm.js +0 -160
  738. package/dist/Symbol-81368584.esm.js +0 -36
  739. package/dist/SynchronizedRef-5b418159.esm.js +0 -187
  740. package/dist/TArray-e0699120.esm.js +0 -412
  741. package/dist/TDeferred-96a9e821.esm.js +0 -120
  742. package/dist/TMap-0b08af84.esm.js +0 -419
  743. package/dist/TPriorityQueue-a5eb73d4.esm.js +0 -360
  744. package/dist/TQueue-2c224826.esm.js +0 -324
  745. package/dist/TRandom-dbfd1b25.esm.js +0 -192
  746. package/dist/TReentrantLock-83290260.esm.js +0 -435
  747. package/dist/TRef-bb02383a.esm.js +0 -135
  748. package/dist/TSemaphore-9a746009.esm.js +0 -183
  749. package/dist/TSet-91c5d646.esm.js +0 -412
  750. package/dist/Take-880079f7.esm.js +0 -214
  751. package/dist/TestAnnotation-f4477615.esm.js +0 -124
  752. package/dist/TestAnnotationMap-11d08509.esm.js +0 -114
  753. package/dist/TestAnnotations-39f7e011.esm.js +0 -91
  754. package/dist/TestClock-ab72e391.esm.js +0 -565
  755. package/dist/TestConfig-0d2c885c.esm.js +0 -33
  756. package/dist/TestContext-61178585.esm.js +0 -36
  757. package/dist/TestLive-61a5e471.esm.js +0 -55
  758. package/dist/TestServices-310ebe14.esm.js +0 -306
  759. package/dist/TestSized-745ac7e5.esm.js +0 -58
  760. package/dist/Tracer-da65ce12.esm.js +0 -75
  761. package/dist/Tuple-eefd2c03.esm.js +0 -187
  762. package/dist/Types-be3804ad.esm.js +0 -5
  763. package/dist/Unify-118c2d56.esm.js +0 -45
  764. package/dist/Utils-80c21479.esm.js +0 -362
  765. package/dist/core-64ab7ff5.esm.js +0 -3225
  766. package/dist/defaultServices-b9ca1236.esm.js +0 -359
  767. package/dist/sink-637a9670.esm.js +0 -2877
@@ -1,414 +1,43 @@
1
- import { m as map$1, g as flipCauseOption, a as failureOrCause, b as isInterrupted, d as die$2, I as IllegalArgumentException, R as RuntimeException, c as isDieType, h as isRuntimeException, s as squash } from './Cause-5946c7a3.esm.js';
2
- import { D as Done, A as Await } from './ChannelMergeDecision-e5f34de0.esm.js';
3
- import { f as fromIterable$1, o as of, e as empty$1, h as isNonEmpty, s as map$3, D as range$1, l as unsafeFromArray, E as reduceRight, p as prepend$1, i as isEmpty, A as dropWhile$1, g as filter$1, F as filterMap$1, G as filterMapWhile$1, H as findFirst, I as flatMap$3, J as takeWhile$1, K as take$3, d as drop$1, b as appendAll, w as unsafeLast, L as zipWith$2, y as reduce, c as append, C as last$1, x as splitWhere, k as head$1, M as mapAccum$1, m as make$7, u as unsafeGet$1, z as flatten$2, N as isChunk, B as splitAt, O as takeRight$1 } from './Chunk-4c1f4599.esm.js';
4
- import { s as sleep, a as currentTimeMillis } from './Clock-f8b987d7.esm.js';
5
- import { b as add, u as unsafeGet } from './Context-c41aa832.esm.js';
6
- import { m as make$4, _ as _await, s as succeed$2, f as failCause$5, p as poll, a as fail$4 } from './Deferred-9010d2ac.esm.js';
7
- import { t as toMillis, m as millis, c as greaterThan, z as zero } from './Duration-98bca14c.esm.js';
8
- import { w as succeed$1, a4 as die$1, F as dieMessage$1, l as suspend$1, a5 as fail$1, a6 as mapBoth$2, a7 as mapError$1, f as failCause$2, r as map$2, k as flatMap$1, d as flatten$1, j as zipRight$1, b as as$1, N as acquireRelease$1, D as all, V as when$1, A as forkScoped, y as scope, a8 as runtime, a9 as match$1, s as sync$1, e as unit$2, aa as onError$1, J as tap$1, M as gen, ab as transplant, ac as dieSync$1, O as makeSemaphore, m as matchCauseEffect, v as forEach, c as catchAllCause$2, a1 as dropUntil$1, a2 as dropWhile$2, K as context$1, ad as failSync$1, ae as failCauseSync$1, af as findFirst$1, ag as tryPromise, ah as promise, i as isEffect, t as zip$1, X as never$1, ai as orDie$1, aj as matchEffect, x as scoped$1, Q as asUnit, n as forkDaemon, o as ensuring$2, ak as timeoutFail$1, al as timeoutFailCause$1, am as runSync, an as catchTags$1, I as tapErrorCause$1, ao as runPromise, Y as withSpanScoped, T as raceWith, z as zipWith$1, ap as forkIn, aq as reduce$1, a3 as catchSomeCause$1, ar as orElse$2, C as zipLeft$1, as as catchAll$2, at as asSome, au as succeedNone, av as fork } from './Effect-ee05a487.esm.js';
9
- import { b as match, l as left, r as right } from './Either-aa46c018.esm.js';
10
- import { e as equals } from './Equal-2a99fde3.esm.js';
11
- import { n as mapBoth$1, m as match$3, a as failCause$4, f as fail$3, c as isSuccess, s as succeed$4, u as unit$3, e as isFailure } from './Exit-666b4f01.esm.js';
12
- import { j as join, i as interrupt, p as poll$1 } from './Fiber-ebef9c60.esm.js';
13
- import { f as constUndefined, p as pipe, d as dual, i as identity, c as constTrue } from './Function-12511160.esm.js';
14
- import { b as bounded$1, s as subscribe, a as shutdown$1 } from './Hub-121dbf51.esm.js';
15
- import { b as build, c as context$2, m as merge$1 } from './Layer-8586a429.esm.js';
16
- import { e as fromNullable, s as some$1, n as none, b as match$2, g as getOrElse, m as map$4, i as isSome, a as isNone } from './Option-df40d2b9.esm.js';
17
- import { p as pipeArguments } from './Pipeable-10760a1d.esm.js';
18
- import { t as take$2, s as shutdown, b as bounded, m as dropping, n as sliding$1, i as isShutdown, k as takeBetween, c as offerAll, o as offer$1, u as unbounded } from './Queue-d99be5de.esm.js';
19
- import { m as make$3, a as modify, b as getAndSet, s as set, g as get, u as update } from './Ref-5eefaff1.esm.js';
20
- import { r as runPromiseExit } from './Runtime-7b6c0a8b.esm.js';
21
- import { f as forever$1, d as driver, s as spaced } from './Schedule-8502145c.esm.js';
22
- import { m as make$6, c as close, u as use } from './Scope-0253ac82.esm.js';
23
- import { f as fromInput, B as Both } from './StreamHaltStrategy-592df221.esm.js';
24
- import { a as readWithCause, f as flatMap$2, b as fromEffect$1, w as write, u as unwrap$1, c as failCause$3, z as zipRight$2, e as unit$1, p as pipeTo, g as run$1, h as pipeToOrFail, t as toChannel$1, i as collectElements, j as unwrapScoped$1, k as fail$2, r as runScoped$1, l as catchAllCause$1, m as concatMap, n as writeChunk, d as drain$1, o as readWith, s as suspend$2, q as identityChannel, v as succeedNow, x as ensuring$1, y as ensuringWith$1, A as succeed$3, B as mapOut, D as mapOutEffectPar, E as repeated, F as collectAllN, G as interruptWhen$1, H as interruptWhenDeferred$1, I as mapOutEffect, J as mapError$2, K as mapErrorCause$1, L as mergeWith$1, M as mkString$1, N as orDieWith$1, O as orElse$1, P as foldSink, Q as collectLeftover, R as zipRight$3, T as fromEffect$2, U as fail$5, V as fromChannel$1, W as provideContext$1, X as catchAll$1, Y as runDrain$1, Z as collectAll, _ as count, $ as drain$2, a0 as fold, a1 as foldEffect, a2 as forEach$1, a3 as forEachChunk, a4 as forEachWhile, a5 as head, a6 as last, a7 as sum, a8 as scoped$2, a9 as foldCauseChannel, aa as toPull$1, ab as fromInput$1, ac as embedInput, ad as mergeMap, ae as sync$2, af as writeAll } from './sink-637a9670.esm.js';
25
- import { a as BufferSliding } from './mergeStrategy-a88b5442.esm.js';
26
- import { m as make$5 } from './singleProducerAsyncInput-5b2ede75.esm.js';
27
- import './GlobalValue-b5edf230.esm.js';
28
- import './Effectable-a292d920.esm.js';
29
- import './Differ-a249bf4d.esm.js';
30
- import './timeout-4180303d.esm.js';
31
- import { d as done, m as match$4, c as chunk, f as failCause$6, e as end$2, a as fromPull$1, o as of$1 } from './take-0d5e0eab.esm.js';
32
-
33
- /** @internal */
34
- class RingBuffer {
35
- size = 0;
36
- current = 0;
37
- constructor(capacity) {
38
- this.capacity = capacity;
39
- this.array = Array.from({
40
- length: capacity
41
- }, constUndefined);
42
- }
43
- head() {
44
- return fromNullable(this.array[this.current]);
45
- }
46
- lastOrNull() {
47
- if (this.size === 0) {
48
- return undefined;
49
- }
50
- const index = this.current === 0 ? this.array.length - 1 : this.current - 1;
51
- return this.array[index] ?? undefined;
52
- }
53
- put(value) {
54
- this.array[this.current] = value;
55
- this.increment();
56
- }
57
- dropLast() {
58
- if (this.size > 0) {
59
- this.decrement();
60
- this.array[this.current] = undefined;
61
- }
62
- }
63
- toChunk() {
64
- const begin = this.current - this.size;
65
- const newArray = begin < 0 ? [...this.array.slice(this.capacity + begin, this.capacity), ...this.array.slice(0, this.current)] : this.array.slice(begin, this.current);
66
- return fromIterable$1(newArray);
67
- }
68
- increment() {
69
- if (this.size < this.capacity) {
70
- this.size += 1;
71
- }
72
- this.current = (this.current + 1) % this.capacity;
73
- }
74
- decrement() {
75
- this.size -= 1;
76
- if (this.current > 0) {
77
- this.current -= 1;
78
- } else {
79
- this.current = this.capacity - 1;
80
- }
81
- }
82
- }
83
-
84
- /** @internal */
85
-
86
- /** @internal */
87
- const OP_NOT_STARTED = "NotStarted";
88
-
89
- /** @internal */
90
-
91
- /** @internal */
92
- const OP_PREVIOUS = "Previous";
93
-
94
- /** @internal */
95
-
96
- /** @internal */
97
- const OP_CURRENT = "Current";
98
-
99
- /** @internal */
100
-
101
- /** @internal */
102
-
103
- /** @internal */
104
-
105
- /** @internal */
106
- const notStarted = {
107
- _tag: OP_NOT_STARTED
108
- };
109
-
110
- /** @internal */
111
- const previous = fiber => ({
112
- _tag: OP_PREVIOUS,
113
- fiber
114
- });
115
-
116
- /** @internal */
117
- const current = fiber => ({
118
- _tag: OP_CURRENT,
119
- fiber
120
- });
121
-
122
- /** @internal */
123
- const make$2 = emit => {
124
- const ops = {
125
- chunk(as) {
126
- return this(succeed$1(as));
127
- },
128
- die(defect) {
129
- return this(die$1(defect));
130
- },
131
- dieMessage(message) {
132
- return this(dieMessage$1(message));
133
- },
134
- done(exit) {
135
- return this(suspend$1(() => mapBoth$1(exit, {
136
- onFailure: some$1,
137
- onSuccess: of
138
- })));
139
- },
140
- end() {
141
- return this(fail$1(none()));
142
- },
143
- fail(e) {
144
- return this(fail$1(some$1(e)));
145
- },
146
- fromEffect(effect) {
147
- return this(mapBoth$2(effect, {
148
- onFailure: some$1,
149
- onSuccess: of
150
- }));
151
- },
152
- fromEffectChunk(effect) {
153
- return this(pipe(effect, mapError$1(some$1)));
154
- },
155
- halt(cause) {
156
- return this(failCause$2(pipe(cause, map$1(some$1))));
157
- },
158
- single(value) {
159
- return this(succeed$1(of(value)));
160
- }
161
- };
162
- return Object.assign(emit, ops);
163
- };
164
-
165
- /** @internal */
166
- const HandoffTypeId = /*#__PURE__*/Symbol.for("effect/Stream/Handoff");
167
-
168
- /** @internal */
169
-
170
- /**
171
- * A synchronous queue-like abstraction that allows a producer to offer an
172
- * element and wait for it to be taken, and allows a consumer to wait for an
173
- * element to be available.
174
- *
175
- * @internal
176
- */
177
-
178
- /** @internal */
179
- const OP_HANDOFF_STATE_EMPTY = "Empty";
180
-
181
- /** @internal */
182
-
183
- /** @internal */
184
- const OP_HANDOFF_STATE_FULL = "Full";
185
-
186
- /** @internal */
187
-
188
- /** @internal */
189
-
190
- /** @internal */
191
- const handoffStateEmpty = notifyConsumer => ({
192
- _tag: OP_HANDOFF_STATE_EMPTY,
193
- notifyConsumer
194
- });
195
-
196
- /** @internal */
197
- const handoffStateFull = (value, notifyProducer) => ({
198
- _tag: OP_HANDOFF_STATE_FULL,
199
- value,
200
- notifyProducer
201
- });
202
-
203
- /** @internal */
204
- const handoffStateMatch = (onEmpty, onFull) => {
205
- return self => {
206
- switch (self._tag) {
207
- case OP_HANDOFF_STATE_EMPTY:
208
- {
209
- return onEmpty(self.notifyConsumer);
210
- }
211
- case OP_HANDOFF_STATE_FULL:
212
- {
213
- return onFull(self.value, self.notifyProducer);
214
- }
215
- }
216
- };
217
- };
218
-
219
- /** @internal */
220
- const handoffVariance = {
221
- _A: _ => _
222
- };
223
-
224
- /** @internal */
225
- const make$1 = () => pipe(make$4(), flatMap$1(deferred => make$3(handoffStateEmpty(deferred))), map$2(ref => ({
226
- [HandoffTypeId]: handoffVariance,
227
- ref
228
- })));
229
-
230
- /** @internal */
231
- const offer = /*#__PURE__*/dual(2, (self, value) => {
232
- return flatMap$1(make$4(), deferred => flatten$1(modify(self.ref, state => pipe(state, handoffStateMatch(notifyConsumer => [zipRight$1(succeed$2(notifyConsumer, void 0), _await(deferred)), handoffStateFull(value, deferred)], (_, notifyProducer) => [flatMap$1(_await(notifyProducer), () => pipe(self, offer(value))), state])))));
233
- });
234
-
235
- /** @internal */
236
- const take$1 = self => flatMap$1(make$4(), deferred => flatten$1(modify(self.ref, state => pipe(state, handoffStateMatch(notifyConsumer => [flatMap$1(_await(notifyConsumer), () => take$1(self)), state], (value, notifyProducer) => [as$1(succeed$2(notifyProducer, void 0), value), handoffStateEmpty(deferred)])))));
237
-
238
- /** @internal */
239
-
240
- /** @internal */
241
- const OP_EMIT = "Emit";
242
-
243
- /** @internal */
244
-
245
- /** @internal */
246
- const OP_HALT = "Halt";
247
-
248
- /** @internal */
249
-
250
- /** @internal */
251
- const OP_END = "End";
252
-
253
- /** @internal */
254
-
255
- /** @internal */
256
-
257
- /** @internal */
258
-
259
- /** @internal */
260
- const emit = elements => ({
261
- _tag: OP_EMIT,
262
- elements
263
- });
264
-
265
- /** @internal */
266
- const halt = cause => ({
267
- _tag: OP_HALT,
268
- cause
269
- });
270
-
271
- /** @internal */
272
- const end$1 = reason => ({
273
- _tag: OP_END,
274
- reason
275
- });
276
-
277
- /** @internal */
278
- const end = () => fail$1(none());
279
-
280
- /** @internal */
281
- const failCause$1 = cause => mapError$1(failCause$2(cause), some$1);
282
-
283
- /** @internal */
284
-
285
- /** @internal */
286
- const OP_SCHEDULE_END = "ScheduleEnd";
287
-
288
- /** @internal */
289
-
290
- /** @internal */
291
- const OP_UPSTREAM_END = "UpstreamEnd";
292
-
293
- /** @internal */
294
-
295
- /** @internal */
296
-
297
- /** @internal */
298
-
299
- /** @internal */
300
- const ScheduleEnd = {
301
- _tag: OP_SCHEDULE_END
302
- };
303
-
304
- /** @internal */
305
- const UpstreamEnd = {
306
- _tag: OP_UPSTREAM_END
307
- };
308
-
309
- /** @internal */
310
-
311
- /** @internal */
312
- const OP_DRAIN_LEFT = "DrainLeft";
313
-
314
- /** @internal */
315
-
316
- /** @internal */
317
- const OP_DRAIN_RIGHT = "DrainRight";
318
-
319
- /** @internal */
320
-
321
- /** @internal */
322
- const OP_PULL_BOTH$1 = "PullBoth";
323
-
324
- /** @internal */
325
-
326
- /** @internal */
327
- const OP_PULL_LEFT$1 = "PullLeft";
328
-
329
- /** @internal */
330
-
331
- /** @internal */
332
- const OP_PULL_RIGHT$1 = "PullRight";
333
-
334
- /** @internal */
335
-
336
- /** @internal */
337
-
338
- /** @internal */
339
-
340
- /** @internal */
341
-
342
- /** @internal */
343
-
344
- /** @internal */
345
-
346
- /** @internal */
347
- const DrainLeft = {
348
- _tag: OP_DRAIN_LEFT
349
- };
350
-
351
- /** @internal */
352
- const DrainRight = {
353
- _tag: OP_DRAIN_RIGHT
354
- };
355
-
356
- /** @internal */
357
- const PullBoth$1 = {
358
- _tag: OP_PULL_BOTH$1
359
- };
360
-
361
- /** @internal */
362
- const PullLeft$1 = rightChunk => ({
363
- _tag: OP_PULL_LEFT$1,
364
- rightChunk
365
- });
366
-
367
- /** @internal */
368
- const PullRight$1 = leftChunk => ({
369
- _tag: OP_PULL_RIGHT$1,
370
- leftChunk
371
- });
372
-
373
- /** @internal */
374
-
375
- /** @internal */
376
- const OP_PULL_BOTH = "PullBoth";
377
-
378
- /** @internal */
379
-
380
- /** @internal */
381
- const OP_PULL_LEFT = "PullLet";
382
-
383
- /** @internal */
384
-
385
- /** @internal */
386
- const OP_PULL_RIGHT = "PullRight";
387
-
388
- /** @internal */
389
-
390
- /** @internal */
391
-
392
- /** @internal */
393
-
394
- /** @internal */
395
-
396
- /** @internal */
397
- const PullBoth = {
398
- _tag: OP_PULL_BOTH
399
- };
400
-
401
- /** @internal */
402
- const PullLeft = rightChunk => ({
403
- _tag: OP_PULL_LEFT,
404
- rightChunk
405
- });
406
-
407
- /** @internal */
408
- const PullRight = leftChunk => ({
409
- _tag: OP_PULL_RIGHT,
410
- leftChunk
411
- });
1
+ import { flipCauseOption, failureOrCause, map as map$3, isInterrupted, die as die$2, IllegalArgumentException, RuntimeException, isDieType, isRuntimeException, squash } from '../Cause/dist/effect-Cause.esm.js';
2
+ import { Done, Await } from '../ChannelMergeDecision/dist/effect-ChannelMergeDecision.esm.js';
3
+ import { empty as empty$1, isNonEmpty, of, map as map$2, range as range$1, unsafeFromArray, reduceRight, prepend as prepend$1, isEmpty, dropWhile as dropWhile$1, filter as filter$1, filterMap as filterMap$1, filterMapWhile as filterMapWhile$1, findFirst, fromIterable as fromIterable$1, flatMap as flatMap$3, takeWhile as takeWhile$1, take as take$3, drop as drop$1, appendAll, unsafeLast, zipWith as zipWith$2, reduce, append, last as last$1, splitWhere, head as head$1, mapAccum as mapAccum$1, make as make$7, unsafeGet as unsafeGet$1, flatten as flatten$2, isChunk, splitAt, takeRight as takeRight$1 } from '../Chunk/dist/effect-Chunk.esm.js';
4
+ import { sleep, currentTimeMillis } from '../Clock/dist/effect-Clock.esm.js';
5
+ import { add, unsafeGet } from '../Context/dist/effect-Context.esm.js';
6
+ import { make as make$4, succeed as succeed$2, await as _await, failCause as failCause$3, poll, fail as fail$4 } from '../Deferred/dist/effect-Deferred.esm.js';
7
+ import { toMillis, millis, greaterThan, zero } from '../Duration/dist/effect-Duration.esm.js';
8
+ import { acquireRelease as acquireRelease$1, all, when as when$1, flatMap as flatMap$2, zipRight as zipRight$1, succeed as succeed$1, map as map$1, forkScoped, scope, runtime, match as match$1, sync as sync$1, as as as$1, unit as unit$2, onError as onError$1, tap as tap$1, gen, suspend as suspend$1, transplant, die as die$1, dieSync as dieSync$1, dieMessage as dieMessage$1, makeSemaphore, matchCauseEffect, flatten as flatten$1, forEach, catchAllCause as catchAllCause$2, dropUntil as dropUntil$1, dropWhile as dropWhile$2, context as context$1, fail as fail$3, failSync as failSync$1, failCause as failCause$4, failCauseSync as failCauseSync$1, findFirst as findFirst$1, tryPromise, promise, isEffect, mapError as mapError$1, zip as zip$1, never as never$1, orDie as orDie$1, matchEffect, scoped as scoped$1, asUnit, forkDaemon, ensuring as ensuring$2, timeoutFail as timeoutFail$1, timeoutFailCause as timeoutFailCause$1, runSync, catchTags as catchTags$1, tapErrorCause as tapErrorCause$1, runPromise, withSpanScoped, raceWith, zipWith as zipWith$1, forkIn, reduce as reduce$1, catchSomeCause as catchSomeCause$1, orElse as orElse$2, zipLeft as zipLeft$1, catchAll as catchAll$2, asSome, succeedNone, fork } from '../Effect/dist/effect-Effect.esm.js';
9
+ import { match, left, right } from '../Either/dist/effect-Either.esm.js';
10
+ import { equals } from '../Equal/dist/effect-Equal.esm.js';
11
+ import { match as match$3, failCause as failCause$2, fail as fail$2, isSuccess, succeed as succeed$4, unit as unit$3, isFailure } from '../Exit/dist/effect-Exit.esm.js';
12
+ import { join, interrupt, poll as poll$1 } from '../Fiber/dist/effect-Fiber.esm.js';
13
+ import { dual, pipe, identity, constTrue } from '../Function/dist/effect-Function.esm.js';
14
+ import { bounded as bounded$1, subscribe, shutdown as shutdown$1 } from '../Hub/dist/effect-Hub.esm.js';
15
+ import { build, context as context$2, merge as merge$1 } from '../Layer/dist/effect-Layer.esm.js';
16
+ import { none, some as some$1, match as match$2, getOrElse, map as map$4, isSome, isNone } from '../Option/dist/effect-Option.esm.js';
17
+ import { pipeArguments } from '../Pipeable/dist/effect-Pipeable.esm.js';
18
+ import { take as take$2, shutdown, bounded, dropping, sliding as sliding$1, isShutdown, takeBetween, offerAll, offer as offer$1, unbounded } from '../Queue/dist/effect-Queue.esm.js';
19
+ import { make as make$2, getAndSet, set, get, update, modify } from '../Ref/dist/effect-Ref.esm.js';
20
+ import { runPromiseExit } from '../Runtime/dist/effect-Runtime.esm.js';
21
+ import { forever as forever$1, driver, spaced } from '../Schedule/dist/effect-Schedule.esm.js';
22
+ import { make as make$6, close, use } from '../Scope/dist/effect-Scope.esm.js';
23
+ import { Both } from '../StreamHaltStrategy/dist/effect-StreamHaltStrategy.esm.js';
24
+ import { unwrap as unwrap$1, zipRight as zipRight$2, pipeToOrFail, unwrapScoped as unwrapScoped$1, concatMap, writeChunk, drain as drain$1, identityChannel, ensuring as ensuring$1, mapOut, mapOutEffectPar, repeated, interruptWhen as interruptWhen$1, interruptWhenDeferred as interruptWhenDeferred$1, mapOutEffect, mapError as mapError$2, mapErrorCause as mapErrorCause$1, mergeWith as mergeWith$1, orDieWith as orDieWith$1, orElse as orElse$1, catchAll as catchAll$1, runDrain as runDrain$1, scoped as scoped$2, toPull as toPull$1, fromInput as fromInput$1, mergeMap, writeAll } from './channel.esm.js';
25
+ import { run as run$1, runScoped as runScoped$1 } from './channel/channelExecutor.esm.js';
26
+ import { BufferSliding } from './channel/mergeStrategy.esm.js';
27
+ import { make as make$5 } from './channel/singleProducerAsyncInput.esm.js';
28
+ import { readWithCause, flatMap as flatMap$1, fromEffect as fromEffect$1, write, failCause as failCause$1, unit as unit$1, pipeTo, collectElements, fail as fail$1, catchAllCause as catchAllCause$1, readWith, suspend as suspend$2, succeedNow, ensuringWith as ensuringWith$1, succeed as succeed$3, provideContext as provideContext$1, foldCauseChannel, embedInput, sync as sync$2 } from './core-stream.esm.js';
29
+ import { RingBuffer } from './ringBuffer.esm.js';
30
+ import { toChannel as toChannel$1, collectAllN, mkString as mkString$1, foldSink, collectLeftover, zipRight as zipRight$3, fromEffect as fromEffect$2, fail as fail$5, fromChannel as fromChannel$1, collectAll, count, drain as drain$2, fold, foldEffect, forEach as forEach$1, forEachChunk, forEachWhile, head, last, sum } from './sink.esm.js';
31
+ import { OP_CURRENT, OP_PREVIOUS, current, OP_NOT_STARTED, notStarted, previous } from './stream/debounceState.esm.js';
32
+ import { make as make$3 } from './stream/emit.esm.js';
33
+ import { fromInput } from './stream/haltStrategy.esm.js';
34
+ import { make as make$1, offer, take as take$1 } from './stream/handoff.esm.js';
35
+ import { emit, halt, end, OP_END, OP_HALT, OP_EMIT } from './stream/handoffSignal.esm.js';
36
+ import { end as end$1, failCause as failCause$5 } from './stream/pull.esm.js';
37
+ import { ScheduleEnd, OP_SCHEDULE_END, UpstreamEnd, OP_UPSTREAM_END } from './stream/sinkEndReason.esm.js';
38
+ import { PullBoth, OP_PULL_RIGHT, DrainLeft, PullRight, OP_PULL_LEFT, DrainRight, PullLeft, OP_PULL_BOTH, OP_DRAIN_RIGHT, OP_DRAIN_LEFT } from './stream/zipAllState.esm.js';
39
+ import { PullBoth as PullBoth$1, OP_PULL_RIGHT as OP_PULL_RIGHT$1, PullRight as PullRight$1, PullLeft as PullLeft$1, OP_PULL_LEFT as OP_PULL_LEFT$1, OP_PULL_BOTH as OP_PULL_BOTH$1 } from './stream/zipChunksState.esm.js';
40
+ import { done, match as match$4, chunk, failCause as failCause$6, end as end$2, fromPull as fromPull$1, of as of$1 } from './take.esm.js';
412
41
 
413
42
  /** @internal */
414
43
  const StreamSymbolKey = "effect/Stream";
@@ -454,31 +83,31 @@ const aggregateWithin = /*#__PURE__*/dual(3, (self, sink, schedule) => filterMap
454
83
 
455
84
  /** @internal */
456
85
  const aggregateWithinEither = /*#__PURE__*/dual(3, (self, sink, schedule) => {
457
- const layer = all([make$1(), make$3(ScheduleEnd), make$3(empty$1()), driver(schedule), make$3(false), make$3(false)]);
86
+ const layer = all([make$1(), make$2(ScheduleEnd), make$2(empty$1()), driver(schedule), make$2(false), make$2(false)]);
458
87
  return pipe(fromEffect(layer), flatMap(([handoff, sinkEndReason, sinkLeftovers, scheduleDriver, consumed, endAfterEmit]) => {
459
88
  const handoffProducer = readWithCause({
460
- onInput: input => flatMap$2(fromEffect$1(pipe(handoff, offer(emit(input)), when$1(() => isNonEmpty(input)))), () => handoffProducer),
89
+ onInput: input => flatMap$1(fromEffect$1(pipe(handoff, offer(emit(input)), when$1(() => isNonEmpty(input)))), () => handoffProducer),
461
90
  onFailure: cause => fromEffect$1(offer(handoff, halt(cause))),
462
- onDone: () => fromEffect$1(offer(handoff, end$1(UpstreamEnd)))
91
+ onDone: () => fromEffect$1(offer(handoff, end(UpstreamEnd)))
463
92
  });
464
- const handoffConsumer = pipe(getAndSet(sinkLeftovers, empty$1()), flatMap$1(leftovers => {
93
+ const handoffConsumer = pipe(getAndSet(sinkLeftovers, empty$1()), flatMap$2(leftovers => {
465
94
  if (isNonEmpty(leftovers)) {
466
- return pipe(set(consumed, true), zipRight$1(succeed$1(pipe(write(leftovers), flatMap$2(() => handoffConsumer)))));
95
+ return pipe(set(consumed, true), zipRight$1(succeed$1(pipe(write(leftovers), flatMap$1(() => handoffConsumer)))));
467
96
  }
468
- return pipe(take$1(handoff), map$2(signal => {
97
+ return pipe(take$1(handoff), map$1(signal => {
469
98
  switch (signal._tag) {
470
99
  case OP_EMIT:
471
100
  {
472
- return pipe(fromEffect$1(set(consumed, true)), zipRight$2(write(signal.elements)), zipRight$2(fromEffect$1(get(endAfterEmit))), flatMap$2(bool => bool ? unit$1 : handoffConsumer));
101
+ return pipe(fromEffect$1(set(consumed, true)), zipRight$2(write(signal.elements)), zipRight$2(fromEffect$1(get(endAfterEmit))), flatMap$1(bool => bool ? unit$1 : handoffConsumer));
473
102
  }
474
103
  case OP_HALT:
475
104
  {
476
- return failCause$3(signal.cause);
105
+ return failCause$1(signal.cause);
477
106
  }
478
107
  case OP_END:
479
108
  {
480
109
  if (signal.reason._tag === OP_SCHEDULE_END) {
481
- return pipe(get(consumed), map$2(bool => bool ? fromEffect$1(pipe(set(sinkEndReason, ScheduleEnd), zipRight$1(set(endAfterEmit, true)))) : pipe(fromEffect$1(pipe(set(sinkEndReason, ScheduleEnd), zipRight$1(set(endAfterEmit, true)))), flatMap$2(() => handoffConsumer))), unwrap$1);
110
+ return pipe(get(consumed), map$1(bool => bool ? fromEffect$1(pipe(set(sinkEndReason, ScheduleEnd), zipRight$1(set(endAfterEmit, true)))) : pipe(fromEffect$1(pipe(set(sinkEndReason, ScheduleEnd), zipRight$1(set(endAfterEmit, true)))), flatMap$1(() => handoffConsumer))), unwrap$1);
482
111
  }
483
112
  return pipe(set(sinkEndReason, signal.reason), zipRight$1(set(endAfterEmit, true)), fromEffect$1);
484
113
  }
@@ -488,39 +117,39 @@ const aggregateWithinEither = /*#__PURE__*/dual(3, (self, sink, schedule) => {
488
117
  const timeout = lastB => scheduleDriver.next(lastB);
489
118
  const scheduledAggregator = (sinkFiber, scheduleFiber, scope) => {
490
119
  const forkSink = pipe(set(consumed, false), zipRight$1(set(endAfterEmit, false)), zipRight$1(pipe(handoffConsumer, pipeToOrFail(toChannel$1(sink)), collectElements, run$1, forkIn(scope))));
491
- const handleSide = (leftovers, b, c) => pipe(set(sinkLeftovers, flatten$2(leftovers)), zipRight$1(map$2(get(sinkEndReason), reason => {
120
+ const handleSide = (leftovers, b, c) => pipe(set(sinkLeftovers, flatten$2(leftovers)), zipRight$1(map$1(get(sinkEndReason), reason => {
492
121
  switch (reason._tag) {
493
122
  case OP_SCHEDULE_END:
494
123
  {
495
- return pipe(all([get(consumed), forkSink, pipe(timeout(some$1(b)), forkIn(scope))]), map$2(([wasConsumed, sinkFiber, scheduleFiber]) => {
124
+ return pipe(all([get(consumed), forkSink, pipe(timeout(some$1(b)), forkIn(scope))]), map$1(([wasConsumed, sinkFiber, scheduleFiber]) => {
496
125
  const toWrite = pipe(c, match$2({
497
126
  onNone: () => of(right(b)),
498
127
  onSome: c => make$7(right(b), left(c))
499
128
  }));
500
129
  if (wasConsumed) {
501
- return pipe(write(toWrite), flatMap$2(() => scheduledAggregator(sinkFiber, scheduleFiber, scope)));
130
+ return pipe(write(toWrite), flatMap$1(() => scheduledAggregator(sinkFiber, scheduleFiber, scope)));
502
131
  }
503
132
  return scheduledAggregator(sinkFiber, scheduleFiber, scope);
504
133
  }), unwrap$1);
505
134
  }
506
135
  case OP_UPSTREAM_END:
507
136
  {
508
- return pipe(get(consumed), map$2(wasConsumed => wasConsumed ? write(of(right(b))) : unit$1), unwrap$1);
137
+ return pipe(get(consumed), map$1(wasConsumed => wasConsumed ? write(of(right(b))) : unit$1), unwrap$1);
509
138
  }
510
139
  }
511
140
  })), unwrap$1);
512
141
  return unwrap$1(raceWith(join(sinkFiber), join(scheduleFiber), {
513
- onSelfDone: (sinkExit, _) => pipe(interrupt(scheduleFiber), zipRight$1(pipe(suspend$1(() => sinkExit), map$2(([leftovers, b]) => handleSide(leftovers, b, none()))))),
142
+ onSelfDone: (sinkExit, _) => pipe(interrupt(scheduleFiber), zipRight$1(pipe(suspend$1(() => sinkExit), map$1(([leftovers, b]) => handleSide(leftovers, b, none()))))),
514
143
  onOtherDone: (scheduleExit, _) => matchCauseEffect(suspend$1(() => scheduleExit), {
515
144
  onFailure: cause => match(failureOrCause(cause), {
516
- onLeft: () => pipe(handoff, offer(end$1(ScheduleEnd)), forkDaemon, zipRight$1(pipe(join(sinkFiber), map$2(([leftovers, b]) => handleSide(leftovers, b, none()))))),
517
- onRight: cause => pipe(handoff, offer(halt(cause)), forkDaemon, zipRight$1(pipe(join(sinkFiber), map$2(([leftovers, b]) => handleSide(leftovers, b, none())))))
145
+ onLeft: () => pipe(handoff, offer(end(ScheduleEnd)), forkDaemon, zipRight$1(pipe(join(sinkFiber), map$1(([leftovers, b]) => handleSide(leftovers, b, none()))))),
146
+ onRight: cause => pipe(handoff, offer(halt(cause)), forkDaemon, zipRight$1(pipe(join(sinkFiber), map$1(([leftovers, b]) => handleSide(leftovers, b, none())))))
518
147
  }),
519
- onSuccess: c => pipe(handoff, offer(end$1(ScheduleEnd)), forkDaemon, zipRight$1(pipe(join(sinkFiber), map$2(([leftovers, b]) => handleSide(leftovers, b, some$1(c))))))
148
+ onSuccess: c => pipe(handoff, offer(end(ScheduleEnd)), forkDaemon, zipRight$1(pipe(join(sinkFiber), map$1(([leftovers, b]) => handleSide(leftovers, b, some$1(c))))))
520
149
  })
521
150
  }));
522
151
  };
523
- return unwrapScoped(pipe(self, toChannel, pipeTo(handoffProducer), run$1, forkScoped, zipRight$1(pipe(handoffConsumer, pipeToOrFail(toChannel$1(sink)), collectElements, run$1, forkScoped, flatMap$1(sinkFiber => pipe(forkScoped(timeout(none())), flatMap$1(scheduleFiber => pipe(scope, map$2(scope => new StreamImpl(scheduledAggregator(sinkFiber, scheduleFiber, scope)))))))))));
152
+ return unwrapScoped(pipe(self, toChannel, pipeTo(handoffProducer), run$1, forkScoped, zipRight$1(pipe(handoffConsumer, pipeToOrFail(toChannel$1(sink)), collectElements, run$1, forkScoped, flatMap$2(sinkFiber => pipe(forkScoped(timeout(none())), flatMap$2(scheduleFiber => pipe(scope, map$1(scope => new StreamImpl(scheduledAggregator(sinkFiber, scheduleFiber, scope)))))))))));
524
153
  }));
525
154
  });
526
155
 
@@ -534,38 +163,38 @@ const _async = (register, outputBuffer = 16) => asyncOption(cb => {
534
163
  }, outputBuffer);
535
164
 
536
165
  /** @internal */
537
- const asyncEffect = (register, outputBuffer = 16) => pipe(acquireRelease$1(bounded(outputBuffer), queue => shutdown(queue)), flatMap$1(output => pipe(runtime(), flatMap$1(runtime => pipe(register(make$2(k => pipe(fromPull$1(k), flatMap$1(take => offer$1(output, take)), asUnit, runPromiseExit(runtime)).then(exit => {
166
+ const asyncEffect = (register, outputBuffer = 16) => pipe(acquireRelease$1(bounded(outputBuffer), queue => shutdown(queue)), flatMap$2(output => pipe(runtime(), flatMap$2(runtime => pipe(register(make$3(k => pipe(fromPull$1(k), flatMap$2(take => offer$1(output, take)), asUnit, runPromiseExit(runtime)).then(exit => {
538
167
  if (isFailure(exit)) {
539
168
  if (!isInterrupted(exit.cause)) {
540
169
  throw squash(exit.cause);
541
170
  }
542
171
  }
543
- }))), map$2(() => {
544
- const loop = pipe(take$2(output), flatMap$1(done), match$1({
172
+ }))), map$1(() => {
173
+ const loop = pipe(take$2(output), flatMap$2(done), match$1({
545
174
  onFailure: maybeError => pipe(fromEffect$1(shutdown(output)), zipRight$2(match$2(maybeError, {
546
175
  onNone: () => unit$1,
547
- onSome: fail$2
176
+ onSome: fail$1
548
177
  }))),
549
- onSuccess: chunk => pipe(write(chunk), flatMap$2(() => loop))
178
+ onSuccess: chunk => pipe(write(chunk), flatMap$1(() => loop))
550
179
  }), unwrap$1);
551
180
  return loop;
552
181
  }))))), unwrapScoped$1, fromChannel);
553
182
 
554
183
  /** @internal */
555
- const asyncInterrupt = (register, outputBuffer = 16) => pipe(acquireRelease$1(bounded(outputBuffer), queue => shutdown(queue)), flatMap$1(output => pipe(runtime(), flatMap$1(runtime => pipe(sync$1(() => register(make$2(k => pipe(fromPull$1(k), flatMap$1(take => offer$1(output, take)), asUnit, runPromiseExit(runtime)).then(exit => {
184
+ const asyncInterrupt = (register, outputBuffer = 16) => pipe(acquireRelease$1(bounded(outputBuffer), queue => shutdown(queue)), flatMap$2(output => pipe(runtime(), flatMap$2(runtime => pipe(sync$1(() => register(make$3(k => pipe(fromPull$1(k), flatMap$2(take => offer$1(output, take)), asUnit, runPromiseExit(runtime)).then(exit => {
556
185
  if (isFailure(exit)) {
557
186
  if (!isInterrupted(exit.cause)) {
558
187
  throw squash(exit.cause);
559
188
  }
560
189
  }
561
- })))), map$2(match({
190
+ })))), map$1(match({
562
191
  onLeft: canceler => {
563
- const loop = pipe(take$2(output), flatMap$1(done), match$1({
192
+ const loop = pipe(take$2(output), flatMap$2(done), match$1({
564
193
  onFailure: maybeError => zipRight$2(fromEffect$1(shutdown(output)), match$2(maybeError, {
565
194
  onNone: () => unit$1,
566
- onSome: fail$2
195
+ onSome: fail$1
567
196
  })),
568
- onSuccess: chunk => pipe(write(chunk), flatMap$2(() => loop))
197
+ onSuccess: chunk => pipe(write(chunk), flatMap$1(() => loop))
569
198
  }), unwrap$1);
570
199
  return pipe(fromChannel(loop), ensuring(canceler));
571
200
  },
@@ -579,13 +208,13 @@ const asyncOption = (register, outputBuffer = 16) => asyncInterrupt(emit => matc
579
208
  }), outputBuffer);
580
209
 
581
210
  /** @internal */
582
- const asyncScoped = (register, outputBuffer = 16) => pipe(acquireRelease$1(bounded(outputBuffer), queue => shutdown(queue)), flatMap$1(output => pipe(runtime(), flatMap$1(runtime => pipe(register(make$2(k => pipe(fromPull$1(k), flatMap$1(take => offer$1(output, take)), asUnit, runPromiseExit(runtime)).then(exit => {
211
+ const asyncScoped = (register, outputBuffer = 16) => pipe(acquireRelease$1(bounded(outputBuffer), queue => shutdown(queue)), flatMap$2(output => pipe(runtime(), flatMap$2(runtime => pipe(register(make$3(k => pipe(fromPull$1(k), flatMap$2(take => offer$1(output, take)), asUnit, runPromiseExit(runtime)).then(exit => {
583
212
  if (isFailure(exit)) {
584
213
  if (!isInterrupted(exit.cause)) {
585
214
  throw squash(exit.cause);
586
215
  }
587
216
  }
588
- }))), zipRight$1(make$3(false)), flatMap$1(ref => pipe(get(ref), map$2(isDone => isDone ? end() : pipe(take$2(output), flatMap$1(done), onError$1(() => pipe(set(ref, true), zipRight$1(shutdown(output)))))))))))), scoped, flatMap(repeatEffectChunkOption));
217
+ }))), zipRight$1(make$2(false)), flatMap$2(ref => pipe(get(ref), map$1(isDone => isDone ? end$1() : pipe(take$2(output), flatMap$2(done), onError$1(() => pipe(set(ref, true), zipRight$1(shutdown(output)))))))))))), scoped, flatMap(repeatEffectChunkOption));
589
218
 
590
219
  /** @internal */
591
220
  const branchAfter = /*#__PURE__*/dual(3, (self, n, f) => suspend(() => {
@@ -598,7 +227,7 @@ const branchAfter = /*#__PURE__*/dual(3, (self, n, f) => suspend(() => {
598
227
  }
599
228
  return buffering(pipe(acc, appendAll(input)));
600
229
  },
601
- onFailure: fail$2,
230
+ onFailure: fail$1,
602
231
  onDone: () => running(acc, empty$1())
603
232
  });
604
233
  const running = (prefix, leftover) => pipeTo(zipRight$2(write(leftover), identityChannel()), toChannel(f(prefix)));
@@ -606,20 +235,20 @@ const branchAfter = /*#__PURE__*/dual(3, (self, n, f) => suspend(() => {
606
235
  }));
607
236
 
608
237
  /** @internal */
609
- const broadcast = /*#__PURE__*/dual(3, (self, n, maximumLag) => pipe(self, broadcastedQueues(n, maximumLag), map$2(tuple => tuple.map(queue => flattenTake(fromQueue(queue, {
238
+ const broadcast = /*#__PURE__*/dual(3, (self, n, maximumLag) => pipe(self, broadcastedQueues(n, maximumLag), map$1(tuple => tuple.map(queue => flattenTake(fromQueue(queue, {
610
239
  shutdown: true
611
240
  }))))));
612
241
 
613
242
  /** @internal */
614
- const broadcastDynamic = /*#__PURE__*/dual(2, (self, maximumLag) => pipe(self, broadcastedQueuesDynamic(maximumLag), map$2(effect => flattenTake(flatMap(scoped(effect), fromQueue)))));
243
+ const broadcastDynamic = /*#__PURE__*/dual(2, (self, maximumLag) => pipe(self, broadcastedQueuesDynamic(maximumLag), map$1(effect => flattenTake(flatMap(scoped(effect), fromQueue)))));
615
244
 
616
245
  /** @internal */
617
- const broadcastedQueues = /*#__PURE__*/dual(3, (self, n, maximumLag) => flatMap$1(bounded$1(maximumLag), hub => pipe(all(Array.from({
246
+ const broadcastedQueues = /*#__PURE__*/dual(3, (self, n, maximumLag) => flatMap$2(bounded$1(maximumLag), hub => pipe(all(Array.from({
618
247
  length: n
619
248
  }, () => subscribe(hub))), tap$1(() => forkScoped(runIntoHubScoped(self, hub))))));
620
249
 
621
250
  /** @internal */
622
- const broadcastedQueuesDynamic = /*#__PURE__*/dual(2, (self, maximumLag) => map$2(toHub(self, maximumLag), subscribe));
251
+ const broadcastedQueuesDynamic = /*#__PURE__*/dual(2, (self, maximumLag) => map$1(toHub(self, maximumLag), subscribe));
623
252
 
624
253
  /** @internal */
625
254
  const buffer = /*#__PURE__*/dual(2, (self, options) => {
@@ -631,13 +260,13 @@ const buffer = /*#__PURE__*/dual(2, (self, options) => {
631
260
  return bufferSliding(self, options.capacity);
632
261
  }
633
262
  const queue = toQueueOfElements(self, options);
634
- return new StreamImpl(unwrapScoped$1(map$2(queue, queue => {
635
- const process = pipe(fromEffect$1(take$2(queue)), flatMap$2(match$3({
263
+ return new StreamImpl(unwrapScoped$1(map$1(queue, queue => {
264
+ const process = pipe(fromEffect$1(take$2(queue)), flatMap$1(match$3({
636
265
  onFailure: cause => pipe(flipCauseOption(cause), match$2({
637
266
  onNone: () => unit$1,
638
- onSome: failCause$3
267
+ onSome: failCause$1
639
268
  })),
640
- onSuccess: value => flatMap$2(write(of(value)), () => process)
269
+ onSuccess: value => flatMap$1(write(of(value)), () => process)
641
270
  })));
642
271
  return process;
643
272
  })));
@@ -651,11 +280,11 @@ const bufferChunks = /*#__PURE__*/dual(2, (self, options) => {
651
280
  return bufferChunksSliding(self, options.capacity);
652
281
  }
653
282
  const queue = toQueue(self, options);
654
- return new StreamImpl(unwrapScoped$1(map$2(queue, queue => {
655
- const process = pipe(fromEffect$1(take$2(queue)), flatMap$2(match$4({
283
+ return new StreamImpl(unwrapScoped$1(map$1(queue, queue => {
284
+ const process = pipe(fromEffect$1(take$2(queue)), flatMap$1(match$4({
656
285
  onEnd: () => unit$1,
657
- onFailure: failCause$3,
658
- onSuccess: value => pipe(write(value), flatMap$2(() => process))
286
+ onFailure: failCause$1,
287
+ onSuccess: value => pipe(write(value), flatMap$1(() => process))
659
288
  })));
660
289
  return process;
661
290
  })));
@@ -680,11 +309,11 @@ const bufferUnbounded = self => {
680
309
  const queue = toQueue(self, {
681
310
  strategy: "unbounded"
682
311
  });
683
- return new StreamImpl(unwrapScoped$1(map$2(queue, queue => {
684
- const process = pipe(fromEffect$1(take$2(queue)), flatMap$2(match$4({
312
+ return new StreamImpl(unwrapScoped$1(map$1(queue, queue => {
313
+ const process = pipe(fromEffect$1(take$2(queue)), flatMap$1(match$4({
685
314
  onEnd: () => unit$1,
686
- onFailure: failCause$3,
687
- onSuccess: value => flatMap$2(write(value), () => process)
315
+ onFailure: failCause$1,
316
+ onSuccess: value => flatMap$1(write(value), () => process)
688
317
  })));
689
318
  return process;
690
319
  })));
@@ -693,22 +322,22 @@ const bufferUnbounded = self => {
693
322
  /** @internal */
694
323
  const bufferSignal = (scoped, bufferChannel) => {
695
324
  const producer = (queue, ref) => {
696
- const terminate = take => pipe(get(ref), tap$1(_await), zipRight$1(make$4()), flatMap$1(deferred => pipe(offer$1(queue, [take, deferred]), zipRight$1(set(ref, deferred)), zipRight$1(_await(deferred)))), asUnit, fromEffect$1);
325
+ const terminate = take => pipe(get(ref), tap$1(_await), zipRight$1(make$4()), flatMap$2(deferred => pipe(offer$1(queue, [take, deferred]), zipRight$1(set(ref, deferred)), zipRight$1(_await(deferred)))), asUnit, fromEffect$1);
697
326
  return readWithCause({
698
- onInput: input => pipe(make$4(), flatMap$1(deferred => pipe(offer$1(queue, [chunk(input), deferred]), flatMap$1(added => pipe(set(ref, deferred), when$1(() => added))))), asUnit, fromEffect$1, flatMap$2(() => producer(queue, ref))),
327
+ onInput: input => pipe(make$4(), flatMap$2(deferred => pipe(offer$1(queue, [chunk(input), deferred]), flatMap$2(added => pipe(set(ref, deferred), when$1(() => added))))), asUnit, fromEffect$1, flatMap$1(() => producer(queue, ref))),
699
328
  onFailure: error => terminate(failCause$6(error)),
700
329
  onDone: () => terminate(end$2)
701
330
  });
702
331
  };
703
332
  const consumer = queue => {
704
- const process = pipe(fromEffect$1(take$2(queue)), flatMap$2(([take, deferred]) => zipRight$2(fromEffect$1(succeed$2(deferred, void 0)), match$4(take, {
333
+ const process = pipe(fromEffect$1(take$2(queue)), flatMap$1(([take, deferred]) => zipRight$2(fromEffect$1(succeed$2(deferred, void 0)), match$4(take, {
705
334
  onEnd: () => unit$1,
706
- onFailure: failCause$3,
707
- onSuccess: value => pipe(write(value), flatMap$2(() => process))
335
+ onFailure: failCause$1,
336
+ onSuccess: value => pipe(write(value), flatMap$1(() => process))
708
337
  }))));
709
338
  return process;
710
339
  };
711
- return unwrapScoped$1(pipe(scoped, flatMap$1(queue => pipe(make$4(), tap$1(start => succeed$2(start, void 0)), flatMap$1(start => pipe(make$3(start), flatMap$1(ref => pipe(bufferChannel, pipeTo(producer(queue, ref)), runScoped$1, forkScoped)), as$1(consumer(queue))))))));
340
+ return unwrapScoped$1(pipe(scoped, flatMap$2(queue => pipe(make$4(), tap$1(start => succeed$2(start, void 0)), flatMap$2(start => pipe(make$2(start), flatMap$2(ref => pipe(bufferChannel, pipeTo(producer(queue, ref)), runScoped$1, forkScoped)), as$1(consumer(queue))))))));
712
341
  };
713
342
 
714
343
  /** @internal */
@@ -756,9 +385,9 @@ const changesWith = /*#__PURE__*/dual(2, (self, f) => {
756
385
  }
757
386
  return [some$1(output), pipe(outputs, append(output))];
758
387
  });
759
- return flatMap$2(write(newChunk), () => writer(newLast));
388
+ return flatMap$1(write(newChunk), () => writer(newLast));
760
389
  },
761
- onFailure: failCause$3,
390
+ onFailure: failCause$1,
762
391
  onDone: () => unit$1
763
392
  });
764
393
  return new StreamImpl(pipe(toChannel(self), pipeTo(writer(none()))));
@@ -769,11 +398,11 @@ const changesWithEffect = /*#__PURE__*/dual(2, (self, f) => {
769
398
  const writer = last => readWithCause({
770
399
  onInput: input => pipe(input, reduce$1([last, empty$1()], ([option, outputs], output) => {
771
400
  if (isSome(option)) {
772
- return pipe(f(option.value, output), map$2(bool => bool ? [some$1(output), outputs] : [some$1(output), pipe(outputs, append(output))]));
401
+ return pipe(f(option.value, output), map$1(bool => bool ? [some$1(output), outputs] : [some$1(output), pipe(outputs, append(output))]));
773
402
  }
774
403
  return succeed$1([some$1(output), pipe(outputs, append(output))]);
775
- }), fromEffect$1, flatMap$2(([newLast, newChunk]) => pipe(write(newChunk), flatMap$2(() => writer(newLast))))),
776
- onFailure: failCause$3,
404
+ }), fromEffect$1, flatMap$1(([newLast, newChunk]) => pipe(write(newChunk), flatMap$1(() => writer(newLast))))),
405
+ onFailure: failCause$1,
777
406
  onDone: () => unit$1
778
407
  });
779
408
  return new StreamImpl(pipe(toChannel(self), pipeTo(writer(none()))));
@@ -784,14 +413,14 @@ const chunks = self => pipe(self, mapChunks(of));
784
413
 
785
414
  /** @internal */
786
415
  const chunksWith = /*#__PURE__*/dual(2, (self, f) => flattenChunks(f(chunks(self))));
787
- const unsome = effect => catchAll$2(asSome(effect), o => o._tag === "None" ? succeedNone : fail$1(o.value));
416
+ const unsome = effect => catchAll$2(asSome(effect), o => o._tag === "None" ? succeedNone : fail$3(o.value));
788
417
 
789
418
  /** @internal */
790
419
  const combine = /*#__PURE__*/dual(4, (self, that, s, f) => {
791
420
  const producer = (handoff, latch) => pipe(fromEffect$1(take$1(latch)), zipRight$2(readWithCause({
792
- onInput: input => flatMap$2(fromEffect$1(pipe(handoff, offer(succeed$4(input)))), () => producer(handoff, latch)),
793
- onFailure: cause => fromEffect$1(offer(handoff, failCause$4(pipe(cause, map$1(some$1))))),
794
- onDone: () => flatMap$2(fromEffect$1(offer(handoff, fail$3(none()))), () => producer(handoff, latch))
421
+ onInput: input => flatMap$1(fromEffect$1(pipe(handoff, offer(succeed$4(input)))), () => producer(handoff, latch)),
422
+ onFailure: cause => fromEffect$1(offer(handoff, failCause$2(pipe(cause, map$3(some$1))))),
423
+ onDone: () => flatMap$1(fromEffect$1(offer(handoff, fail$2(none()))), () => producer(handoff, latch))
795
424
  })));
796
425
  return new StreamImpl(unwrapScoped$1(gen(function* ($) {
797
426
  const left = yield* $(make$1());
@@ -802,25 +431,25 @@ const combine = /*#__PURE__*/dual(4, (self, that, s, f) => {
802
431
  yield* $(toChannel(that), concatMap(writeChunk), pipeTo(producer(right, latchR)), runScoped$1, forkScoped);
803
432
  const pullLeft = pipe(latchL, offer(void 0),
804
433
  // TODO: remove
805
- zipRight$1(pipe(take$1(left), flatMap$1(exit => suspend$1(() => exit)))));
434
+ zipRight$1(pipe(take$1(left), flatMap$2(exit => suspend$1(() => exit)))));
806
435
  const pullRight = pipe(latchR, offer(void 0),
807
436
  // TODO: remove
808
- zipRight$1(pipe(take$1(right), flatMap$1(exit => suspend$1(() => exit)))));
809
- return toChannel(unfoldEffect(s, s => flatMap$1(f(s, pullLeft, pullRight), unsome)));
437
+ zipRight$1(pipe(take$1(right), flatMap$2(exit => suspend$1(() => exit)))));
438
+ return toChannel(unfoldEffect(s, s => flatMap$2(f(s, pullLeft, pullRight), unsome)));
810
439
  })));
811
440
  });
812
441
 
813
442
  /** @internal */
814
443
  const combineChunks = /*#__PURE__*/dual(4, (self, that, s, f) => {
815
444
  const producer = (handoff, latch) => zipRight$2(fromEffect$1(take$1(latch)), readWithCause({
816
- onInput: input => flatMap$2(fromEffect$1(pipe(handoff, offer(chunk(input)))), () => producer(handoff, latch)),
445
+ onInput: input => flatMap$1(fromEffect$1(pipe(handoff, offer(chunk(input)))), () => producer(handoff, latch)),
817
446
  onFailure: cause => fromEffect$1(offer(handoff, failCause$6(cause))),
818
447
  onDone: () => fromEffect$1(offer(handoff, end$2))
819
448
  }));
820
- return new StreamImpl(pipe(all([make$1(), make$1(), make$1(), make$1()]), tap$1(([left, _, latchL]) => pipe(toChannel(self), pipeTo(producer(left, latchL)), runScoped$1, forkScoped)), tap$1(([_, right, __, latchR]) => pipe(toChannel(that), pipeTo(producer(right, latchR)), runScoped$1, forkScoped)), map$2(([left, right, latchL, latchR]) => {
821
- const pullLeft = pipe(latchL, offer(void 0), zipRight$1(pipe(take$1(left), flatMap$1(done))));
822
- const pullRight = pipe(latchR, offer(void 0), zipRight$1(pipe(take$1(right), flatMap$1(done))));
823
- return toChannel(unfoldChunkEffect(s, s => flatMap$1(f(s, pullLeft, pullRight), unsome)));
449
+ return new StreamImpl(pipe(all([make$1(), make$1(), make$1(), make$1()]), tap$1(([left, _, latchL]) => pipe(toChannel(self), pipeTo(producer(left, latchL)), runScoped$1, forkScoped)), tap$1(([_, right, __, latchR]) => pipe(toChannel(that), pipeTo(producer(right, latchR)), runScoped$1, forkScoped)), map$1(([left, right, latchL, latchR]) => {
450
+ const pullLeft = pipe(latchL, offer(void 0), zipRight$1(pipe(take$1(left), flatMap$2(done))));
451
+ const pullRight = pipe(latchR, offer(void 0), zipRight$1(pipe(take$1(right), flatMap$2(done))));
452
+ return toChannel(unfoldChunkEffect(s, s => flatMap$2(f(s, pullLeft, pullRight), unsome)));
824
453
  }), unwrapScoped$1));
825
454
  });
826
455
 
@@ -843,21 +472,21 @@ const crossRight = /*#__PURE__*/dual(2, (self, that) => flatMap(self, () => that
843
472
  const crossWith = /*#__PURE__*/dual(3, (self, that, f) => pipe(self, flatMap(a => pipe(that, map(b => f(a, b))))));
844
473
 
845
474
  /** @internal */
846
- const debounce = /*#__PURE__*/dual(2, (self, duration) => pipe(make$5(), flatMap$1(input => transplant(grafter => pipe(make$1(), map$2(handoff => {
847
- const enqueue = last => pipe(sleep(duration), as$1(last), fork, grafter, map$2(fiber => consumer(previous(fiber))));
475
+ const debounce = /*#__PURE__*/dual(2, (self, duration) => pipe(make$5(), flatMap$2(input => transplant(grafter => pipe(make$1(), map$1(handoff => {
476
+ const enqueue = last => pipe(sleep(duration), as$1(last), fork, grafter, map$1(fiber => consumer(previous(fiber))));
848
477
  const producer = readWithCause({
849
478
  onInput: input => match$2(last$1(input), {
850
479
  onNone: () => producer,
851
- onSome: last => flatMap$2(fromEffect$1(offer(handoff, emit(of(last)))), () => producer)
480
+ onSome: last => flatMap$1(fromEffect$1(offer(handoff, emit(of(last)))), () => producer)
852
481
  }),
853
482
  onFailure: cause => fromEffect$1(offer(handoff, halt(cause))),
854
- onDone: () => fromEffect$1(offer(handoff, end$1(UpstreamEnd)))
483
+ onDone: () => fromEffect$1(offer(handoff, end(UpstreamEnd)))
855
484
  });
856
485
  const consumer = state => {
857
486
  switch (state._tag) {
858
487
  case OP_NOT_STARTED:
859
488
  {
860
- return pipe(take$1(handoff), map$2(signal => {
489
+ return pipe(take$1(handoff), map$1(signal => {
861
490
  switch (signal._tag) {
862
491
  case OP_EMIT:
863
492
  {
@@ -865,7 +494,7 @@ const debounce = /*#__PURE__*/dual(2, (self, duration) => pipe(make$5(), flatMap
865
494
  }
866
495
  case OP_HALT:
867
496
  {
868
- return failCause$3(signal.cause);
497
+ return failCause$1(signal.cause);
869
498
  }
870
499
  case OP_END:
871
500
  {
@@ -878,11 +507,11 @@ const debounce = /*#__PURE__*/dual(2, (self, duration) => pipe(make$5(), flatMap
878
507
  {
879
508
  return unwrap$1(raceWith(join(state.fiber), take$1(handoff), {
880
509
  onSelfDone: (leftExit, current$1) => match$3(leftExit, {
881
- onFailure: cause => pipe(interrupt(current$1), as$1(failCause$3(cause))),
882
- onSuccess: chunk => succeed$1(pipe(write(chunk), flatMap$2(() => consumer(current(current$1)))))
510
+ onFailure: cause => pipe(interrupt(current$1), as$1(failCause$1(cause))),
511
+ onSuccess: chunk => succeed$1(pipe(write(chunk), flatMap$1(() => consumer(current(current$1)))))
883
512
  }),
884
513
  onOtherDone: (rightExit, previous) => match$3(rightExit, {
885
- onFailure: cause => pipe(interrupt(previous), as$1(failCause$3(cause))),
514
+ onFailure: cause => pipe(interrupt(previous), as$1(failCause$1(cause))),
886
515
  onSuccess: signal => {
887
516
  switch (signal._tag) {
888
517
  case OP_EMIT:
@@ -891,11 +520,11 @@ const debounce = /*#__PURE__*/dual(2, (self, duration) => pipe(make$5(), flatMap
891
520
  }
892
521
  case OP_HALT:
893
522
  {
894
- return pipe(interrupt(previous), as$1(failCause$3(signal.cause)));
523
+ return pipe(interrupt(previous), as$1(failCause$1(signal.cause)));
895
524
  }
896
525
  case OP_END:
897
526
  {
898
- return pipe(join(previous), map$2(chunk => pipe(write(chunk), zipRight$2(unit$1))));
527
+ return pipe(join(previous), map$1(chunk => pipe(write(chunk), zipRight$2(unit$1))));
899
528
  }
900
529
  }
901
530
  }
@@ -904,7 +533,7 @@ const debounce = /*#__PURE__*/dual(2, (self, duration) => pipe(make$5(), flatMap
904
533
  }
905
534
  case OP_CURRENT:
906
535
  {
907
- return pipe(join(state.fiber), map$2(signal => {
536
+ return pipe(join(state.fiber), map$1(signal => {
908
537
  switch (signal._tag) {
909
538
  case OP_EMIT:
910
539
  {
@@ -912,7 +541,7 @@ const debounce = /*#__PURE__*/dual(2, (self, duration) => pipe(make$5(), flatMap
912
541
  }
913
542
  case OP_HALT:
914
543
  {
915
- return failCause$3(signal.cause);
544
+ return failCause$1(signal.cause);
916
545
  }
917
546
  case OP_END:
918
547
  {
@@ -937,12 +566,12 @@ const dieSync = evaluate => fromEffect(dieSync$1(evaluate));
937
566
  const dieMessage = message => fromEffect(dieMessage$1(message));
938
567
 
939
568
  /** @internal */
940
- const distributedWith = /*#__PURE__*/dual(2, (self, options) => pipe(make$4(), flatMap$1(deferred => pipe(self, distributedWithDynamic({
569
+ const distributedWith = /*#__PURE__*/dual(2, (self, options) => pipe(make$4(), flatMap$2(deferred => pipe(self, distributedWithDynamic({
941
570
  maximumLag: options.maximumLag,
942
- decide: a => flatMap$1(_await(deferred), f => f(a))
943
- }), flatMap$1(next => pipe(all(map$3(range$1(0, options.size - 1), id => map$2(next, ([key, queue]) => [[key, id], queue]))), map$2(unsafeFromArray), flatMap$1(entries => {
571
+ decide: a => flatMap$2(_await(deferred), f => f(a))
572
+ }), flatMap$2(next => pipe(all(map$2(range$1(0, options.size - 1), id => map$1(next, ([key, queue]) => [[key, id], queue]))), map$1(unsafeFromArray), flatMap$2(entries => {
944
573
  const [mappings, queues] = reduceRight(entries, [new Map(), empty$1()], ([mappings, queues], [mapping, queue]) => [mappings.set(mapping[0], mapping[1]), pipe(queues, prepend$1(queue))]);
945
- return pipe(succeed$2(deferred, a => map$2(options.decide(a), f => key => pipe(f(mappings.get(key))))), as$1(Array.from(queues)));
574
+ return pipe(succeed$2(deferred, a => map$1(options.decide(a), f => key => pipe(f(mappings.get(key))))), as$1(Array.from(queues)));
946
575
  })))))));
947
576
 
948
577
  /** @internal */
@@ -957,19 +586,19 @@ const newDistributedWithDynamicId = () => {
957
586
 
958
587
  /** @internal */
959
588
  const distributedWithDynamic = /*#__PURE__*/dual(2, (self, options) => distributedWithDynamicCallback(self, options.maximumLag, options.decide, () => unit$2));
960
- const distributedWithDynamicCallback = /*#__PURE__*/dual(4, (self, maximumLag, decide, done) => pipe(acquireRelease$1(make$3(new Map()), (ref, _) => pipe(get(ref), flatMap$1(queues => pipe(queues.values(), forEach(shutdown))))), flatMap$1(queuesRef => gen(function* ($) {
961
- const offer = a => pipe(decide(a), flatMap$1(shouldProcess => pipe(get(queuesRef), flatMap$1(queues => pipe(queues.entries(), reduce$1(empty$1(), (acc, [id, queue]) => {
589
+ const distributedWithDynamicCallback = /*#__PURE__*/dual(4, (self, maximumLag, decide, done) => pipe(acquireRelease$1(make$2(new Map()), (ref, _) => pipe(get(ref), flatMap$2(queues => pipe(queues.values(), forEach(shutdown))))), flatMap$2(queuesRef => gen(function* ($) {
590
+ const offer = a => pipe(decide(a), flatMap$2(shouldProcess => pipe(get(queuesRef), flatMap$2(queues => pipe(queues.entries(), reduce$1(empty$1(), (acc, [id, queue]) => {
962
591
  if (shouldProcess(id)) {
963
592
  return pipe(offer$1(queue, succeed$4(a)), matchCauseEffect({
964
593
  onFailure: cause =>
965
594
  // Ignore all downstream queues that were shut
966
595
  // down and remove them later
967
- isInterrupted(cause) ? succeed$1(pipe(acc, prepend$1(id))) : failCause$2(cause),
596
+ isInterrupted(cause) ? succeed$1(pipe(acc, prepend$1(id))) : failCause$4(cause),
968
597
  onSuccess: () => succeed$1(acc)
969
598
  }));
970
599
  }
971
600
  return succeed$1(acc);
972
- }), flatMap$1(ids => {
601
+ }), flatMap$2(ids => {
973
602
  if (isNonEmpty(ids)) {
974
603
  return pipe(update(queuesRef, map => {
975
604
  for (const id of ids) {
@@ -981,7 +610,7 @@ const distributedWithDynamicCallback = /*#__PURE__*/dual(4, (self, maximumLag, d
981
610
  return unit$2;
982
611
  }))))), asUnit);
983
612
  const queuesLock = yield* $(makeSemaphore(1));
984
- const newQueue = yield* $(make$3(pipe(bounded(maximumLag), flatMap$1(queue => {
613
+ const newQueue = yield* $(make$2(pipe(bounded(maximumLag), flatMap$2(queue => {
985
614
  const id = newDistributedWithDynamicId();
986
615
  return pipe(update(queuesRef, map => map.set(id, queue)), as$1([id, queue]));
987
616
  }))));
@@ -989,13 +618,13 @@ const distributedWithDynamicCallback = /*#__PURE__*/dual(4, (self, maximumLag, d
989
618
  // Make sure that no queues are currently being added
990
619
  queuesLock.withPermits(1)(pipe(set(newQueue, pipe(
991
620
  // All newly created queues should end immediately
992
- bounded(1), tap$1(queue => offer$1(queue, endTake)), flatMap$1(queue => {
621
+ bounded(1), tap$1(queue => offer$1(queue, endTake)), flatMap$2(queue => {
993
622
  const id = newDistributedWithDynamicId();
994
623
  return pipe(update(queuesRef, map => map.set(id, queue)), as$1([id, queue]));
995
- }))), zipRight$1(pipe(get(queuesRef), flatMap$1(map => pipe(fromIterable$1(map.values()), forEach(queue => pipe(offer$1(queue, endTake), catchSomeCause$1(cause => isInterrupted(cause) ? some$1(unit$2) : none()))))))), zipRight$1(done(endTake)), asUnit));
624
+ }))), zipRight$1(pipe(get(queuesRef), flatMap$2(map => pipe(fromIterable$1(map.values()), forEach(queue => pipe(offer$1(queue, endTake), catchSomeCause$1(cause => isInterrupted(cause) ? some$1(unit$2) : none()))))))), zipRight$1(done(endTake)), asUnit));
996
625
  yield* $(self, runForEachScoped(offer), matchCauseEffect({
997
- onFailure: cause => finalize(failCause$4(pipe(cause, map$1(some$1)))),
998
- onSuccess: () => finalize(fail$3(none()))
626
+ onFailure: cause => finalize(failCause$2(pipe(cause, map$3(some$1)))),
627
+ onSuccess: () => finalize(fail$2(none()))
999
628
  }), forkScoped);
1000
629
  return queuesLock.withPermits(1)(flatten$1(get(newQueue)));
1001
630
  }))));
@@ -1004,7 +633,7 @@ const distributedWithDynamicCallback = /*#__PURE__*/dual(4, (self, maximumLag, d
1004
633
  const drain = self => new StreamImpl(drain$1(toChannel(self)));
1005
634
 
1006
635
  /** @internal */
1007
- const drainFork = /*#__PURE__*/dual(2, (self, that) => pipe(fromEffect(make$4()), flatMap(backgroundDied => pipe(scoped(pipe(that, runForEachScoped(() => unit$2), catchAllCause$2(cause => failCause$5(backgroundDied, cause)), forkScoped)), crossRight(pipe(self, interruptWhenDeferred(backgroundDied)))))));
636
+ const drainFork = /*#__PURE__*/dual(2, (self, that) => pipe(fromEffect(make$4()), flatMap(backgroundDied => pipe(scoped(pipe(that, runForEachScoped(() => unit$2), catchAllCause$2(cause => failCause$3(backgroundDied, cause)), forkScoped)), crossRight(pipe(self, interruptWhenDeferred(backgroundDied)))))));
1008
637
 
1009
638
  /** @internal */
1010
639
  const drop = /*#__PURE__*/dual(2, (self, n) => {
@@ -1018,7 +647,7 @@ const drop = /*#__PURE__*/dual(2, (self, n) => {
1018
647
  }
1019
648
  return pipe(write(dropped), zipRight$2(identityChannel()));
1020
649
  },
1021
- onFailure: fail$2,
650
+ onFailure: fail$1,
1022
651
  onDone: () => unit$1
1023
652
  });
1024
653
  return new StreamImpl(pipe(toChannel(self), pipeToOrFail(loop(n))));
@@ -1038,9 +667,9 @@ const dropRight = /*#__PURE__*/dual(2, (self, n) => {
1038
667
  queue.put(elem);
1039
668
  return head;
1040
669
  }));
1041
- return pipe(write(outputs), flatMap$2(() => reader));
670
+ return pipe(write(outputs), flatMap$1(() => reader));
1042
671
  },
1043
- onFailure: fail$2,
672
+ onFailure: fail$1,
1044
673
  onDone: () => unit$1
1045
674
  });
1046
675
  return new StreamImpl(pipe(toChannel(self), pipeToOrFail(reader)));
@@ -1053,14 +682,14 @@ const dropUntil = /*#__PURE__*/dual(2, (self, predicate) => drop(dropWhile(self,
1053
682
  /** @internal */
1054
683
  const dropUntilEffect = /*#__PURE__*/dual(2, (self, predicate) => {
1055
684
  const loop = readWith({
1056
- onInput: input => pipe(dropUntil$1(input, predicate), map$2(unsafeFromArray), map$2(leftover => {
685
+ onInput: input => pipe(dropUntil$1(input, predicate), map$1(unsafeFromArray), map$1(leftover => {
1057
686
  const more = isEmpty(leftover);
1058
687
  if (more) {
1059
688
  return suspend$2(() => loop);
1060
689
  }
1061
690
  return pipe(write(leftover), zipRight$2(identityChannel()));
1062
691
  }), unwrap$1),
1063
- onFailure: fail$2,
692
+ onFailure: fail$1,
1064
693
  onDone: () => unit$1
1065
694
  });
1066
695
  return new StreamImpl(pipe(toChannel(self), pipeToOrFail(loop)));
@@ -1076,7 +705,7 @@ const dropWhile = /*#__PURE__*/dual(2, (self, predicate) => {
1076
705
  }
1077
706
  return zipRight$2(write(output), identityChannel());
1078
707
  },
1079
- onFailure: fail$2,
708
+ onFailure: fail$1,
1080
709
  onDone: succeedNow
1081
710
  });
1082
711
  return new StreamImpl(pipeToOrFail(toChannel(self), loop));
@@ -1085,14 +714,14 @@ const dropWhile = /*#__PURE__*/dual(2, (self, predicate) => {
1085
714
  /** @internal */
1086
715
  const dropWhileEffect = /*#__PURE__*/dual(2, (self, predicate) => {
1087
716
  const loop = readWith({
1088
- onInput: input => pipe(dropWhile$2(input, predicate), map$2(unsafeFromArray), map$2(leftover => {
717
+ onInput: input => pipe(dropWhile$2(input, predicate), map$1(unsafeFromArray), map$1(leftover => {
1089
718
  const more = isEmpty(leftover);
1090
719
  if (more) {
1091
720
  return suspend$2(() => loop);
1092
721
  }
1093
722
  return zipRight$2(write(leftover), identityChannel());
1094
723
  }), unwrap$1),
1095
- onFailure: fail$2,
724
+ onFailure: fail$1,
1096
725
  onDone: () => unit$1
1097
726
  });
1098
727
  return new StreamImpl(pipeToOrFail(toChannel(self), loop));
@@ -1126,13 +755,13 @@ const contextWithStream = f => pipe(context(), flatMap(f));
1126
755
  const execute = effect => drain(fromEffect(effect));
1127
756
 
1128
757
  /** @internal */
1129
- const fail = error => fromEffectOption(fail$1(some$1(error)));
758
+ const fail = error => fromEffectOption(fail$3(some$1(error)));
1130
759
 
1131
760
  /** @internal */
1132
761
  const failSync = evaluate => fromEffectOption(failSync$1(() => some$1(evaluate())));
1133
762
 
1134
763
  /** @internal */
1135
- const failCause = cause => fromEffect(failCause$2(cause));
764
+ const failCause = cause => fromEffect(failCause$4(cause));
1136
765
 
1137
766
  /** @internal */
1138
767
  const failCauseSync = evaluate => fromEffect(failCauseSync$1(evaluate));
@@ -1147,11 +776,11 @@ const filterEffect = /*#__PURE__*/dual(2, (self, f) => {
1147
776
  if (next.done) {
1148
777
  return readWithCause({
1149
778
  onInput: input => loop(input[Symbol.iterator]()),
1150
- onFailure: failCause$3,
779
+ onFailure: failCause$1,
1151
780
  onDone: succeed$3
1152
781
  });
1153
782
  } else {
1154
- return pipe(f(next.value), map$2(bool => bool ? pipe(write(of(next.value)), flatMap$2(() => loop(iterator))) : loop(iterator)), unwrap$1);
783
+ return pipe(f(next.value), map$1(bool => bool ? pipe(write(of(next.value)), flatMap$1(() => loop(iterator))) : loop(iterator)), unwrap$1);
1155
784
  }
1156
785
  };
1157
786
  return new StreamImpl(suspend$2(() => pipe(toChannel(self), pipeTo(loop(empty$1()[Symbol.iterator]())))));
@@ -1167,13 +796,13 @@ const filterMapEffect = /*#__PURE__*/dual(2, (self, pf) => suspend(() => {
1167
796
  if (next.done) {
1168
797
  return readWithCause({
1169
798
  onInput: input => loop(input[Symbol.iterator]()),
1170
- onFailure: failCause$3,
799
+ onFailure: failCause$1,
1171
800
  onDone: succeed$3
1172
801
  });
1173
802
  } else {
1174
803
  return pipe(pf(next.value), match$2({
1175
804
  onNone: () => sync$1(() => loop(iterator)),
1176
- onSome: map$2(a2 => flatMap$2(write(of(a2)), () => loop(iterator)))
805
+ onSome: map$1(a2 => flatMap$1(write(of(a2)), () => loop(iterator)))
1177
806
  }), unwrap$1);
1178
807
  }
1179
808
  };
@@ -1186,11 +815,11 @@ const filterMapWhile = /*#__PURE__*/dual(2, (self, pf) => {
1186
815
  onInput: input => {
1187
816
  const mapped = filterMapWhile$1(input, pf);
1188
817
  if (mapped.length === input.length) {
1189
- return pipe(write(mapped), flatMap$2(() => loop));
818
+ return pipe(write(mapped), flatMap$1(() => loop));
1190
819
  }
1191
820
  return write(mapped);
1192
821
  },
1193
- onFailure: fail$2,
822
+ onFailure: fail$1,
1194
823
  onDone: succeed$3
1195
824
  });
1196
825
  return new StreamImpl(pipe(toChannel(self), pipeToOrFail(loop)));
@@ -1203,13 +832,13 @@ const filterMapWhileEffect = /*#__PURE__*/dual(2, (self, pf) => suspend(() => {
1203
832
  if (next.done) {
1204
833
  return readWithCause({
1205
834
  onInput: input => loop(input[Symbol.iterator]()),
1206
- onFailure: failCause$3,
835
+ onFailure: failCause$1,
1207
836
  onDone: succeed$3
1208
837
  });
1209
838
  } else {
1210
839
  return unwrap$1(match$2(pf(next.value), {
1211
840
  onNone: () => succeed$1(unit$1),
1212
- onSome: map$2(a2 => flatMap$2(write(of(a2)), () => loop(iterator)))
841
+ onSome: map$1(a2 => flatMap$1(write(of(a2)), () => loop(iterator)))
1213
842
  }));
1214
843
  }
1215
844
  };
@@ -1226,7 +855,7 @@ const find = /*#__PURE__*/dual(2, (self, predicate) => {
1226
855
  onNone: () => loop,
1227
856
  onSome: n => write(of(n))
1228
857
  }),
1229
- onFailure: fail$2,
858
+ onFailure: fail$1,
1230
859
  onDone: () => unit$1
1231
860
  });
1232
861
  return new StreamImpl(pipe(toChannel(self), pipeTo(loop)));
@@ -1235,11 +864,11 @@ const find = /*#__PURE__*/dual(2, (self, predicate) => {
1235
864
  /** @internal */
1236
865
  const findEffect = /*#__PURE__*/dual(2, (self, predicate) => {
1237
866
  const loop = readWith({
1238
- onInput: input => pipe(findFirst$1(input, predicate), map$2(match$2({
867
+ onInput: input => pipe(findFirst$1(input, predicate), map$1(match$2({
1239
868
  onNone: () => loop,
1240
869
  onSome: n => write(of(n))
1241
870
  })), unwrap$1),
1242
- onFailure: fail$2,
871
+ onFailure: fail$1,
1243
872
  onDone: () => unit$1
1244
873
  });
1245
874
  return new StreamImpl(pipe(toChannel(self), pipeTo(loop)));
@@ -1251,7 +880,7 @@ const flatMap = /*#__PURE__*/dual(args => typeof args[0] !== "function", (self,
1251
880
  if (options?.switch) {
1252
881
  return matchConcurrency(options?.concurrency, () => flatMapParSwitchBuffer(self, 1, bufferSize, f), n => flatMapParSwitchBuffer(self, n, bufferSize, f));
1253
882
  }
1254
- return matchConcurrency(options?.concurrency, () => new StreamImpl(concatMap(toChannel(self), as => pipe(as, map$3(a => toChannel(f(a))), reduce(unit$1, (left, right) => pipe(left, zipRight$2(right)))))), n => new StreamImpl(pipe(toChannel(self), concatMap(writeChunk), mergeMap(out => toChannel(f(out)), {
883
+ return matchConcurrency(options?.concurrency, () => new StreamImpl(concatMap(toChannel(self), as => pipe(as, map$2(a => toChannel(f(a))), reduce(unit$1, (left, right) => pipe(left, zipRight$2(right)))))), n => new StreamImpl(pipe(toChannel(self), concatMap(writeChunk), mergeMap(out => toChannel(f(out)), {
1255
884
  concurrency: n,
1256
885
  bufferSize
1257
886
  }))));
@@ -1280,8 +909,8 @@ const flatten = /*#__PURE__*/dual(args => isStream(args[0]), (self, options) =>
1280
909
  /** @internal */
1281
910
  const flattenChunks = self => {
1282
911
  const flatten = readWithCause({
1283
- onInput: chunks => flatMap$2(writeChunk(chunks), () => flatten),
1284
- onFailure: failCause$3,
912
+ onInput: chunks => flatMap$1(writeChunk(chunks), () => flatten),
913
+ onFailure: failCause$1,
1285
914
  onDone: () => unit$1
1286
915
  });
1287
916
  return new StreamImpl(pipe(toChannel(self), pipeTo(flatten)));
@@ -1301,16 +930,16 @@ const flattenExitOption = self => {
1301
930
  onSome: match$3({
1302
931
  onFailure: cause => match$2(flipCauseOption(cause), {
1303
932
  onNone: () => unit$1,
1304
- onSome: failCause$3
933
+ onSome: failCause$1
1305
934
  }),
1306
935
  onSuccess: () => unit$1
1307
936
  })
1308
937
  }));
1309
- return pipe(write(pipe(toEmit, filterMap$1(exit => isSuccess(exit) ? some$1(exit.value) : none()))), flatMap$2(() => next));
938
+ return pipe(write(pipe(toEmit, filterMap$1(exit => isSuccess(exit) ? some$1(exit.value) : none()))), flatMap$1(() => next));
1310
939
  };
1311
940
  const process = readWithCause({
1312
941
  onInput: chunk => processChunk(chunk, process),
1313
- onFailure: cause => failCause$3(cause),
942
+ onFailure: cause => failCause$1(cause),
1314
943
  onDone: () => unit$1
1315
944
  });
1316
945
  return new StreamImpl(pipe(toChannel(self), pipeTo(process)));
@@ -1326,10 +955,10 @@ const flattenTake = self => flattenChunks(flattenExitOption(pipe(self, map(take
1326
955
  const forever = self => new StreamImpl(repeated(toChannel(self)));
1327
956
 
1328
957
  /** @internal */
1329
- const fromAsyncIterable = (iterable, onError) => pipe(acquireRelease$1(sync$1(() => iterable[Symbol.asyncIterator]()), iterator => iterator.return ? promise(async () => iterator.return()) : unit$2), map$2(iterator => repeatEffectOption(pipe(tryPromise({
958
+ const fromAsyncIterable = (iterable, onError) => pipe(acquireRelease$1(sync$1(() => iterable[Symbol.asyncIterator]()), iterator => iterator.return ? promise(async () => iterator.return()) : unit$2), map$1(iterator => repeatEffectOption(pipe(tryPromise({
1330
959
  try: async () => iterator.next(),
1331
960
  catch: reason => some$1(onError(reason))
1332
- }), flatMap$1(result => result.done ? fail$1(none()) : succeed$1(result.value))))), unwrapScoped);
961
+ }), flatMap$2(result => result.done ? fail$3(none()) : succeed$1(result.value))))), unwrapScoped);
1333
962
 
1334
963
  /** @internal */
1335
964
  const fromChannel = channel => new StreamImpl(channel);
@@ -1348,15 +977,15 @@ const fromChunk = chunk => new StreamImpl(isEmpty(chunk) ? unit$1 : write(chunk)
1348
977
  /** @internal */
1349
978
  const fromChunkHub = (hub, options) => {
1350
979
  if (options?.scoped) {
1351
- const effect = map$2(subscribe(hub), fromChunkQueue);
1352
- return options.shutdown ? map$2(effect, ensuring(shutdown$1(hub))) : effect;
980
+ const effect = map$1(subscribe(hub), fromChunkQueue);
981
+ return options.shutdown ? map$1(effect, ensuring(shutdown$1(hub))) : effect;
1353
982
  }
1354
983
  const stream = flatMap(scoped(subscribe(hub)), fromChunkQueue);
1355
984
  return options?.shutdown ? ensuring(stream, shutdown$1(hub)) : stream;
1356
985
  };
1357
986
 
1358
987
  /** @internal */
1359
- const fromChunkQueue = (queue, options) => pipe(take$2(queue), catchAllCause$2(cause => pipe(isShutdown(queue), flatMap$1(isShutdown => isShutdown && isInterrupted(cause) ? end() : failCause$1(cause)))), repeatEffectChunkOption, options?.shutdown ? ensuring(shutdown(queue)) : identity);
988
+ const fromChunkQueue = (queue, options) => pipe(take$2(queue), catchAllCause$2(cause => pipe(isShutdown(queue), flatMap$2(isShutdown => isShutdown && isInterrupted(cause) ? end$1() : failCause$5(cause)))), repeatEffectChunkOption, options?.shutdown ? ensuring(shutdown(queue)) : identity);
1360
989
 
1361
990
  /** @internal */
1362
991
  const fromChunks = (...chunks) => pipe(fromIterable(chunks), flatMap(fromChunk));
@@ -1368,7 +997,7 @@ const fromEffect = effect => pipe(effect, mapError$1(some$1), fromEffectOption);
1368
997
  const fromEffectOption = effect => new StreamImpl(unwrap$1(match$1(effect, {
1369
998
  onFailure: match$2({
1370
999
  onNone: () => unit$1,
1371
- onSome: fail$2
1000
+ onSome: fail$1
1372
1001
  }),
1373
1002
  onSuccess: a => write(of(a))
1374
1003
  })));
@@ -1377,11 +1006,11 @@ const fromEffectOption = effect => new StreamImpl(unwrap$1(match$1(effect, {
1377
1006
  const fromHub = (hub, options) => {
1378
1007
  const maxChunkSize = options?.maxChunkSize ?? DefaultChunkSize;
1379
1008
  if (options?.scoped) {
1380
- const effect = map$2(subscribe(hub), queue => fromQueue(queue, {
1009
+ const effect = map$1(subscribe(hub), queue => fromQueue(queue, {
1381
1010
  maxChunkSize,
1382
1011
  shutdown: true
1383
1012
  }));
1384
- return options.shutdown ? map$2(effect, ensuring(shutdown$1(hub))) : effect;
1013
+ return options.shutdown ? map$1(effect, ensuring(shutdown$1(hub))) : effect;
1385
1014
  }
1386
1015
  const stream = flatMap(scoped(subscribe(hub)), queue => fromQueue(queue, {
1387
1016
  maxChunkSize
@@ -1393,7 +1022,7 @@ const fromHub = (hub, options) => {
1393
1022
  const fromIterable = iterable => suspend(() => isChunk(iterable) ? fromChunk(iterable) : fromIteratorSucceed(iterable[Symbol.iterator]()));
1394
1023
 
1395
1024
  /** @internal */
1396
- const fromIterableEffect = effect => pipe(effect, map$2(fromIterable), unwrap);
1025
+ const fromIterableEffect = effect => pipe(effect, map$1(fromIterable), unwrap);
1397
1026
 
1398
1027
  /** @internal */
1399
1028
  const fromIteratorSucceed = (iterator, maxChunkSize = DefaultChunkSize) => {
@@ -1405,7 +1034,7 @@ const fromIteratorSucceed = (iterator, maxChunkSize = DefaultChunkSize) => {
1405
1034
  if (next.done) {
1406
1035
  return unit$1;
1407
1036
  }
1408
- return pipe(write(of(next.value)), flatMap$2(() => loop(iterator)));
1037
+ return pipe(write(of(next.value)), flatMap$1(() => loop(iterator)));
1409
1038
  }
1410
1039
  builder = [];
1411
1040
  let count = 0;
@@ -1415,7 +1044,7 @@ const fromIteratorSucceed = (iterator, maxChunkSize = DefaultChunkSize) => {
1415
1044
  count = count + 1;
1416
1045
  }
1417
1046
  if (count > 0) {
1418
- return pipe(write(unsafeFromArray(builder)), flatMap$2(() => loop(iterator)));
1047
+ return pipe(write(unsafeFromArray(builder)), flatMap$1(() => loop(iterator)));
1419
1048
  }
1420
1049
  return unit$1;
1421
1050
  }), unwrap$1);
@@ -1424,30 +1053,30 @@ const fromIteratorSucceed = (iterator, maxChunkSize = DefaultChunkSize) => {
1424
1053
  };
1425
1054
 
1426
1055
  /** @internal */
1427
- const fromPull = effect => pipe(effect, map$2(repeatEffectChunkOption), unwrapScoped);
1056
+ const fromPull = effect => pipe(effect, map$1(repeatEffectChunkOption), unwrapScoped);
1428
1057
 
1429
1058
  /** @internal */
1430
- const fromQueue = (queue, options) => pipe(takeBetween(queue, 1, options?.maxChunkSize ?? DefaultChunkSize), catchAllCause$2(cause => pipe(isShutdown(queue), flatMap$1(isShutdown => isShutdown && isInterrupted(cause) ? end() : failCause$1(cause)))), repeatEffectChunkOption, options?.shutdown ? ensuring(shutdown(queue)) : identity);
1059
+ const fromQueue = (queue, options) => pipe(takeBetween(queue, 1, options?.maxChunkSize ?? DefaultChunkSize), catchAllCause$2(cause => pipe(isShutdown(queue), flatMap$2(isShutdown => isShutdown && isInterrupted(cause) ? end$1() : failCause$5(cause)))), repeatEffectChunkOption, options?.shutdown ? ensuring(shutdown(queue)) : identity);
1431
1060
 
1432
1061
  /** @internal */
1433
- const fromSchedule = schedule => pipe(driver(schedule), map$2(driver => repeatEffectOption(driver.next(void 0))), unwrap);
1062
+ const fromSchedule = schedule => pipe(driver(schedule), map$1(driver => repeatEffectOption(driver.next(void 0))), unwrap);
1434
1063
 
1435
1064
  /** @internal */
1436
- const fromReadableStream = (evaluate, onError) => unwrapScoped(map$2(acquireRelease$1(sync$1(() => evaluate().getReader()), reader => promise(() => reader.cancel())), reader => repeatEffectOption(flatMap$1(tryPromise({
1065
+ const fromReadableStream = (evaluate, onError) => unwrapScoped(map$1(acquireRelease$1(sync$1(() => evaluate().getReader()), reader => promise(() => reader.cancel())), reader => repeatEffectOption(flatMap$2(tryPromise({
1437
1066
  try: () => reader.read(),
1438
1067
  catch: reason => some$1(onError(reason))
1439
1068
  }), ({
1440
1069
  done,
1441
1070
  value
1442
- }) => done ? fail$1(none()) : succeed$1(value)))));
1071
+ }) => done ? fail$3(none()) : succeed$1(value)))));
1443
1072
 
1444
1073
  /** @internal */
1445
- const fromReadableStreamByob = (evaluate, onError, allocSize = 4096) => unwrapScoped(map$2(acquireRelease$1(sync$1(() => evaluate().getReader({
1074
+ const fromReadableStreamByob = (evaluate, onError, allocSize = 4096) => unwrapScoped(map$1(acquireRelease$1(sync$1(() => evaluate().getReader({
1446
1075
  mode: "byob"
1447
1076
  })), reader => promise(() => reader.cancel())), reader => catchAll(forever(readChunkStreamByobReader(reader, onError, allocSize)), error => typeof error === "object" && error !== null && "_tag" in error && error._tag === "EOF" ? empty : fail(error))));
1448
1077
  const readChunkStreamByobReader = (reader, onError, size) => {
1449
1078
  const buffer = new ArrayBuffer(size);
1450
- return paginateEffect(0, offset => flatMap$1(tryPromise({
1079
+ return paginateEffect(0, offset => flatMap$2(tryPromise({
1451
1080
  try: () => reader.read(new Uint8Array(buffer, offset, buffer.byteLength - offset)),
1452
1081
  catch: reason => onError(reason)
1453
1082
  }), ({
@@ -1455,7 +1084,7 @@ const readChunkStreamByobReader = (reader, onError, size) => {
1455
1084
  value
1456
1085
  }) => {
1457
1086
  if (done) {
1458
- return fail$1({
1087
+ return fail$3({
1459
1088
  _tag: "EOF"
1460
1089
  });
1461
1090
  }
@@ -1521,15 +1150,15 @@ const groupAdjacentBy = /*#__PURE__*/dual(2, (self, f) => {
1521
1150
  const groupAdjacent = state => readWithCause({
1522
1151
  onInput: input => {
1523
1152
  const [updatedState, output] = groupAdjacentByChunk(state, input);
1524
- return isEmpty(output) ? groupAdjacent(updatedState) : flatMap$2(write(output), () => groupAdjacent(updatedState));
1153
+ return isEmpty(output) ? groupAdjacent(updatedState) : flatMap$1(write(output), () => groupAdjacent(updatedState));
1525
1154
  },
1526
1155
  onFailure: cause => match$2(state, {
1527
- onNone: () => failCause$3(cause),
1528
- onSome: output => flatMap$2(write(of(output)), () => failCause$3(cause))
1156
+ onNone: () => failCause$1(cause),
1157
+ onSome: output => flatMap$1(write(of(output)), () => failCause$1(cause))
1529
1158
  }),
1530
1159
  onDone: done => match$2(state, {
1531
1160
  onNone: () => succeedNow(done),
1532
- onSome: output => flatMap$2(write(of(output)), () => succeedNow(done))
1161
+ onSome: output => flatMap$1(write(of(output)), () => succeedNow(done))
1533
1162
  })
1534
1163
  });
1535
1164
  return new StreamImpl(pipeToOrFail(toChannel(self), groupAdjacent(none())));
@@ -1543,18 +1172,18 @@ const groupedWithin = /*#__PURE__*/dual(3, (self, chunkSize, duration) => aggreg
1543
1172
 
1544
1173
  /** @internal */
1545
1174
  const haltWhen = /*#__PURE__*/dual(2, (self, effect) => {
1546
- const writer = fiber => pipe(poll$1(fiber), map$2(match$2({
1175
+ const writer = fiber => pipe(poll$1(fiber), map$1(match$2({
1547
1176
  onNone: () => readWith({
1548
- onInput: input => flatMap$2(write(input), () => writer(fiber)),
1549
- onFailure: fail$2,
1177
+ onInput: input => flatMap$1(write(input), () => writer(fiber)),
1178
+ onFailure: fail$1,
1550
1179
  onDone: () => unit$1
1551
1180
  }),
1552
1181
  onSome: match$3({
1553
- onFailure: failCause$3,
1182
+ onFailure: failCause$1,
1554
1183
  onSuccess: () => unit$1
1555
1184
  })
1556
1185
  })), unwrap$1);
1557
- return new StreamImpl(pipe(forkScoped(effect), map$2(fiber => pipe(toChannel(self), pipeTo(writer(fiber)))), unwrapScoped$1));
1186
+ return new StreamImpl(pipe(forkScoped(effect), map$1(fiber => pipe(toChannel(self), pipeTo(writer(fiber)))), unwrapScoped$1));
1558
1187
  });
1559
1188
 
1560
1189
  /** @internal */
@@ -1562,14 +1191,14 @@ const haltAfter = /*#__PURE__*/dual(2, (self, duration) => pipe(self, haltWhen(s
1562
1191
 
1563
1192
  /** @internal */
1564
1193
  const haltWhenDeferred = /*#__PURE__*/dual(2, (self, deferred) => {
1565
- const writer = pipe(poll(deferred), map$2(match$2({
1194
+ const writer = pipe(poll(deferred), map$1(match$2({
1566
1195
  onNone: () => readWith({
1567
- onInput: input => pipe(write(input), flatMap$2(() => writer)),
1568
- onFailure: fail$2,
1196
+ onInput: input => pipe(write(input), flatMap$1(() => writer)),
1197
+ onFailure: fail$1,
1569
1198
  onDone: () => unit$1
1570
1199
  }),
1571
1200
  onSome: effect => unwrap$1(match$1(effect, {
1572
- onFailure: fail$2,
1201
+ onFailure: fail$1,
1573
1202
  onSuccess: () => unit$1
1574
1203
  }))
1575
1204
  })), unwrap$1);
@@ -1585,30 +1214,30 @@ const interleave = /*#__PURE__*/dual(2, (self, that) => pipe(self, interleaveWit
1585
1214
  /** @internal */
1586
1215
  const interleaveWith = /*#__PURE__*/dual(3, (self, that, decider) => {
1587
1216
  const producer = handoff => readWithCause({
1588
- onInput: value => flatMap$2(fromEffect$1(offer(handoff, of$1(value))), () => producer(handoff)),
1217
+ onInput: value => flatMap$1(fromEffect$1(offer(handoff, of$1(value))), () => producer(handoff)),
1589
1218
  onFailure: cause => fromEffect$1(offer(handoff, failCause$6(cause))),
1590
1219
  onDone: () => fromEffect$1(offer(handoff, end$2))
1591
1220
  });
1592
- return new StreamImpl(unwrapScoped$1(pipe(make$1(), zip$1(make$1()), tap$1(([left]) => pipe(toChannel(self), concatMap(writeChunk), pipeTo(producer(left)), runScoped$1, forkScoped)), tap$1(([_, right]) => pipe(toChannel(that), concatMap(writeChunk), pipeTo(producer(right)), runScoped$1, forkScoped)), map$2(([left, right]) => {
1221
+ return new StreamImpl(unwrapScoped$1(pipe(make$1(), zip$1(make$1()), tap$1(([left]) => pipe(toChannel(self), concatMap(writeChunk), pipeTo(producer(left)), runScoped$1, forkScoped)), tap$1(([_, right]) => pipe(toChannel(that), concatMap(writeChunk), pipeTo(producer(right)), runScoped$1, forkScoped)), map$1(([left, right]) => {
1593
1222
  const process = (leftDone, rightDone) => readWithCause({
1594
1223
  onInput: bool => {
1595
1224
  if (bool && !leftDone) {
1596
- return pipe(fromEffect$1(take$1(left)), flatMap$2(match$4({
1225
+ return pipe(fromEffect$1(take$1(left)), flatMap$1(match$4({
1597
1226
  onEnd: () => rightDone ? unit$1 : process(true, rightDone),
1598
- onFailure: failCause$3,
1599
- onSuccess: chunk => pipe(write(chunk), flatMap$2(() => process(leftDone, rightDone)))
1227
+ onFailure: failCause$1,
1228
+ onSuccess: chunk => pipe(write(chunk), flatMap$1(() => process(leftDone, rightDone)))
1600
1229
  })));
1601
1230
  }
1602
1231
  if (!bool && !rightDone) {
1603
- return pipe(fromEffect$1(take$1(right)), flatMap$2(match$4({
1232
+ return pipe(fromEffect$1(take$1(right)), flatMap$1(match$4({
1604
1233
  onEnd: () => leftDone ? unit$1 : process(leftDone, true),
1605
- onFailure: failCause$3,
1606
- onSuccess: chunk => pipe(write(chunk), flatMap$2(() => process(leftDone, rightDone)))
1234
+ onFailure: failCause$1,
1235
+ onSuccess: chunk => pipe(write(chunk), flatMap$1(() => process(leftDone, rightDone)))
1607
1236
  })));
1608
1237
  }
1609
1238
  return process(leftDone, rightDone);
1610
1239
  },
1611
- onFailure: failCause$3,
1240
+ onFailure: failCause$1,
1612
1241
  onDone: () => unit$1
1613
1242
  });
1614
1243
  return pipe(toChannel(decider), concatMap(writeChunk), pipeTo(process(false, false)));
@@ -1630,9 +1259,9 @@ const intersperse = /*#__PURE__*/dual(2, (self, element) => new StreamImpl(pipe(
1630
1259
  builder.push(output);
1631
1260
  }
1632
1261
  }
1633
- return pipe(write(unsafeFromArray(builder)), flatMap$2(() => writer(flagResult)));
1262
+ return pipe(write(unsafeFromArray(builder)), flatMap$1(() => writer(flagResult)));
1634
1263
  },
1635
- onFailure: failCause$3,
1264
+ onFailure: failCause$1,
1636
1265
  onDone: () => unit$1
1637
1266
  });
1638
1267
  return writer(true);
@@ -1661,16 +1290,16 @@ const iterate = (value, next) => unfold(value, a => some$1([a, next(a)]));
1661
1290
  const make = (...as) => fromIterable(as);
1662
1291
 
1663
1292
  /** @internal */
1664
- const map = /*#__PURE__*/dual(2, (self, f) => new StreamImpl(pipe(toChannel(self), mapOut(map$3(f)))));
1293
+ const map = /*#__PURE__*/dual(2, (self, f) => new StreamImpl(pipe(toChannel(self), mapOut(map$2(f)))));
1665
1294
 
1666
1295
  /** @internal */
1667
1296
  const mapAccum = /*#__PURE__*/dual(3, (self, s, f) => {
1668
1297
  const accumulator = s => readWith({
1669
1298
  onInput: input => {
1670
1299
  const [nextS, chunk] = mapAccum$1(input, s, f);
1671
- return flatMap$2(write(chunk), () => accumulator(nextS));
1300
+ return flatMap$1(write(chunk), () => accumulator(nextS));
1672
1301
  },
1673
- onFailure: fail$2,
1302
+ onFailure: fail$1,
1674
1303
  onDone: () => unit$1
1675
1304
  });
1676
1305
  return new StreamImpl(pipe(toChannel(self), pipeTo(accumulator(s))));
@@ -1684,17 +1313,17 @@ const mapAccumEffect = /*#__PURE__*/dual(3, (self, s, f) => suspend(() => {
1684
1313
  const emit = output => sync$1(() => {
1685
1314
  outputs.push(output);
1686
1315
  });
1687
- return pipe(input, reduce$1(s, (s, a) => pipe(f(s, a), flatMap$1(([s, a]) => pipe(emit(a), as$1(s))))), match$1({
1316
+ return pipe(input, reduce$1(s, (s, a) => pipe(f(s, a), flatMap$2(([s, a]) => pipe(emit(a), as$1(s))))), match$1({
1688
1317
  onFailure: error => {
1689
1318
  if (outputs.length !== 0) {
1690
- return zipRight$2(write(unsafeFromArray(outputs)), fail$2(error));
1319
+ return zipRight$2(write(unsafeFromArray(outputs)), fail$1(error));
1691
1320
  }
1692
- return fail$2(error);
1321
+ return fail$1(error);
1693
1322
  },
1694
- onSuccess: s => flatMap$2(write(unsafeFromArray(outputs)), () => accumulator(s))
1323
+ onSuccess: s => flatMap$1(write(unsafeFromArray(outputs)), () => accumulator(s))
1695
1324
  }));
1696
1325
  }), unwrap$1),
1697
- onFailure: fail$2,
1326
+ onFailure: fail$1,
1698
1327
  onDone: () => unit$1
1699
1328
  });
1700
1329
  return new StreamImpl(pipe(toChannel(self), pipeToOrFail(accumulator(s))));
@@ -1719,7 +1348,7 @@ const mapConcatChunk = /*#__PURE__*/dual(2, (self, f) => pipe(self, mapChunks(fl
1719
1348
  const mapConcatChunkEffect = /*#__PURE__*/dual(2, (self, f) => pipe(self, mapEffectSequential(f), mapConcatChunk(identity)));
1720
1349
 
1721
1350
  /** @internal */
1722
- const mapConcatEffect = /*#__PURE__*/dual(2, (self, f) => pipe(self, mapEffectSequential(a => pipe(f(a), map$2(fromIterable$1))), mapConcatChunk(identity)));
1351
+ const mapConcatEffect = /*#__PURE__*/dual(2, (self, f) => pipe(self, mapEffectSequential(a => pipe(f(a), map$1(fromIterable$1))), mapConcatChunk(identity)));
1723
1352
 
1724
1353
  /** @internal */
1725
1354
  const mapEffectSequential = /*#__PURE__*/dual(2, (self, f) => {
@@ -1728,12 +1357,12 @@ const mapEffectSequential = /*#__PURE__*/dual(2, (self, f) => {
1728
1357
  if (next.done) {
1729
1358
  return readWithCause({
1730
1359
  onInput: elem => loop(elem[Symbol.iterator]()),
1731
- onFailure: failCause$3,
1360
+ onFailure: failCause$1,
1732
1361
  onDone: succeed$3
1733
1362
  });
1734
1363
  } else {
1735
1364
  const value = next.value;
1736
- return unwrap$1(map$2(f(value), a2 => flatMap$2(write(of(a2)), () => loop(iterator))));
1365
+ return unwrap$1(map$1(f(value), a2 => flatMap$1(write(of(a2)), () => loop(iterator))));
1737
1366
  }
1738
1367
  };
1739
1368
  return new StreamImpl(pipe(toChannel(self), pipeTo(suspend$2(() => loop(empty$1()[Symbol.iterator]())))));
@@ -1790,7 +1419,7 @@ const mkString = self => run(self, mkString$1);
1790
1419
  const never = /*#__PURE__*/fromEffect(never$1);
1791
1420
 
1792
1421
  /** @internal */
1793
- const onError = /*#__PURE__*/dual(2, (self, cleanup) => pipe(self, catchAllCause(cause => fromEffect(pipe(cleanup(cause), zipRight$1(failCause$2(cause)))))));
1422
+ const onError = /*#__PURE__*/dual(2, (self, cleanup) => pipe(self, catchAllCause(cause => fromEffect(pipe(cleanup(cause), zipRight$1(failCause$4(cause)))))));
1794
1423
 
1795
1424
  /** @internal */
1796
1425
  const onDone = /*#__PURE__*/dual(2, (self, cleanup) => new StreamImpl(pipe(toChannel(self), ensuringWith$1(exit => isSuccess(exit) ? cleanup() : unit$2))));
@@ -1825,7 +1454,7 @@ const orElseIfEmptyStream = /*#__PURE__*/dual(2, (self, stream) => {
1825
1454
  }
1826
1455
  return pipe(write(input), zipRight$2(identityChannel()));
1827
1456
  },
1828
- onFailure: fail$2,
1457
+ onFailure: fail$1,
1829
1458
  onDone: () => suspend$2(() => toChannel(stream()))
1830
1459
  });
1831
1460
  return new StreamImpl(pipe(toChannel(self), pipeTo(writer)));
@@ -1846,7 +1475,7 @@ const paginateChunk = (s, f) => {
1846
1475
  const page = f(s);
1847
1476
  return match$2(page[1], {
1848
1477
  onNone: () => zipRight$2(write(page[0]), unit$1),
1849
- onSome: s => flatMap$2(write(page[0]), () => loop(s))
1478
+ onSome: s => flatMap$1(write(page[0]), () => loop(s))
1850
1479
  });
1851
1480
  };
1852
1481
  return new StreamImpl(suspend$2(() => loop(s)));
@@ -1854,34 +1483,34 @@ const paginateChunk = (s, f) => {
1854
1483
 
1855
1484
  /** @internal */
1856
1485
  const paginateChunkEffect = (s, f) => {
1857
- const loop = s => unwrap$1(map$2(f(s), ([chunk, option]) => match$2(option, {
1486
+ const loop = s => unwrap$1(map$1(f(s), ([chunk, option]) => match$2(option, {
1858
1487
  onNone: () => zipRight$2(write(chunk), unit$1),
1859
- onSome: s => flatMap$2(write(chunk), () => loop(s))
1488
+ onSome: s => flatMap$1(write(chunk), () => loop(s))
1860
1489
  })));
1861
1490
  return new StreamImpl(suspend$2(() => loop(s)));
1862
1491
  };
1863
1492
 
1864
1493
  /** @internal */
1865
- const paginateEffect = (s, f) => paginateChunkEffect(s, s => pipe(f(s), map$2(([a, s]) => [of(a), s])));
1494
+ const paginateEffect = (s, f) => paginateChunkEffect(s, s => pipe(f(s), map$1(([a, s]) => [of(a), s])));
1866
1495
 
1867
1496
  /** @internal */
1868
1497
  const peel = /*#__PURE__*/dual(2, (self, sink) => {
1869
1498
  const OP_EMIT = "Emit";
1870
1499
  const OP_HALT = "Halt";
1871
1500
  const OP_END = "End";
1872
- return pipe(make$4(), flatMap$1(deferred => pipe(make$1(), map$2(handoff => {
1501
+ return pipe(make$4(), flatMap$2(deferred => pipe(make$1(), map$1(handoff => {
1873
1502
  const consumer = foldSink(collectLeftover(sink), {
1874
1503
  onFailure: error => zipRight$3(fromEffect$2(fail$4(deferred, error)), fail$5(error)),
1875
1504
  onSuccess: ([z, leftovers]) => {
1876
1505
  const loop = readWithCause({
1877
- onInput: elements => flatMap$2(fromEffect$1(offer(handoff, {
1506
+ onInput: elements => flatMap$1(fromEffect$1(offer(handoff, {
1878
1507
  _tag: OP_EMIT,
1879
1508
  elements
1880
1509
  })), () => loop),
1881
1510
  onFailure: cause => zipRight$2(fromEffect$1(offer(handoff, {
1882
1511
  _tag: OP_HALT,
1883
1512
  cause
1884
- })), failCause$3(cause)),
1513
+ })), failCause$1(cause)),
1885
1514
  onDone: _ => zipRight$2(fromEffect$1(offer(handoff, {
1886
1515
  _tag: OP_END
1887
1516
  })), unit$1)
@@ -1892,15 +1521,15 @@ const peel = /*#__PURE__*/dual(2, (self, sink) => {
1892
1521
  })))), zipRight$2(loop)));
1893
1522
  }
1894
1523
  });
1895
- const producer = pipe(take$1(handoff), map$2(signal => {
1524
+ const producer = pipe(take$1(handoff), map$1(signal => {
1896
1525
  switch (signal._tag) {
1897
1526
  case OP_EMIT:
1898
1527
  {
1899
- return pipe(write(signal.elements), flatMap$2(() => producer));
1528
+ return pipe(write(signal.elements), flatMap$1(() => producer));
1900
1529
  }
1901
1530
  case OP_HALT:
1902
1531
  {
1903
- return failCause$3(signal.cause);
1532
+ return failCause$1(signal.cause);
1904
1533
  }
1905
1534
  case OP_END:
1906
1535
  {
@@ -1908,7 +1537,7 @@ const peel = /*#__PURE__*/dual(2, (self, sink) => {
1908
1537
  }
1909
1538
  }
1910
1539
  }), unwrap$1);
1911
- return pipe(self, tapErrorCause(cause => failCause$5(deferred, cause)), run(consumer), forkScoped, zipRight$1(_await(deferred)), map$2(z => [z, new StreamImpl(producer)]));
1540
+ return pipe(self, tapErrorCause(cause => failCause$3(deferred, cause)), run(consumer), forkScoped, zipRight$1(_await(deferred)), map$1(z => [z, new StreamImpl(producer)]));
1912
1541
  }))), flatten$1);
1913
1542
  });
1914
1543
 
@@ -1923,7 +1552,7 @@ const partitionEither = /*#__PURE__*/dual(args => typeof args[1] === "function",
1923
1552
  onLeft: () => succeed$1(n => n === 0),
1924
1553
  onRight: () => succeed$1(n => n === 1)
1925
1554
  })
1926
- }), flatMap$1(([queue1, queue2]) => succeed$1([filterMap(flattenExitOption(fromQueue(queue1, {
1555
+ }), flatMap$2(([queue1, queue2]) => succeed$1([filterMap(flattenExitOption(fromQueue(queue1, {
1927
1556
  shutdown: true
1928
1557
  })), _ => match(_, {
1929
1558
  onLeft: some$1,
@@ -1951,7 +1580,7 @@ const prepend = /*#__PURE__*/dual(2, (self, values) => new StreamImpl(zipRight$2
1951
1580
  const provideContext = /*#__PURE__*/dual(2, (self, context) => new StreamImpl(pipe(toChannel(self), provideContext$1(context))));
1952
1581
 
1953
1582
  /** @internal */
1954
- const provideLayer = /*#__PURE__*/dual(2, (self, layer) => new StreamImpl(unwrapScoped$1(pipe(build(layer), map$2(env => pipe(toChannel(self), provideContext$1(env)))))));
1583
+ const provideLayer = /*#__PURE__*/dual(2, (self, layer) => new StreamImpl(unwrapScoped$1(pipe(build(layer), map$1(env => pipe(toChannel(self), provideContext$1(env)))))));
1955
1584
 
1956
1585
  /** @internal */
1957
1586
  const provideService = /*#__PURE__*/dual(3, (self, tag, resource) => provideServiceEffect(self, tag, succeed$1(resource)));
@@ -1978,7 +1607,7 @@ const range = (min, max, chunkSize = DefaultChunkSize) => suspend(() => {
1978
1607
  const go = (min, max, chunkSize) => {
1979
1608
  const remaining = max - min + 1;
1980
1609
  if (remaining > chunkSize) {
1981
- return pipe(write(range$1(min, min + chunkSize - 1)), flatMap$2(() => go(min + chunkSize, max, chunkSize)));
1610
+ return pipe(write(range$1(min, min + chunkSize - 1)), flatMap$1(() => go(min + chunkSize, max, chunkSize)));
1982
1611
  }
1983
1612
  return write(range$1(min, min + remaining - 1));
1984
1613
  };
@@ -1996,7 +1625,7 @@ const rechunk = /*#__PURE__*/dual(2, (self, n) => suspend(() => {
1996
1625
  const rechunkProcess = (rechunker, target) => readWithCause({
1997
1626
  onInput: chunk => {
1998
1627
  if (chunk.length === target && rechunker.isEmpty()) {
1999
- return flatMap$2(write(chunk), () => rechunkProcess(rechunker, target));
1628
+ return flatMap$1(write(chunk), () => rechunkProcess(rechunker, target));
2000
1629
  }
2001
1630
  if (chunk.length > 0) {
2002
1631
  const chunks = [];
@@ -2012,11 +1641,11 @@ const rechunkProcess = (rechunker, target) => readWithCause({
2012
1641
  result = undefined;
2013
1642
  }
2014
1643
  }
2015
- return flatMap$2(writeAll(...chunks), () => rechunkProcess(rechunker, target));
1644
+ return flatMap$1(writeAll(...chunks), () => rechunkProcess(rechunker, target));
2016
1645
  }
2017
1646
  return suspend$2(() => rechunkProcess(rechunker, target));
2018
1647
  },
2019
- onFailure: cause => zipRight$2(rechunker.emitIfNotEmpty(), failCause$3(cause)),
1648
+ onFailure: cause => zipRight$2(rechunker.emitIfNotEmpty(), failCause$1(cause)),
2020
1649
  onDone: () => rechunker.emitIfNotEmpty()
2021
1650
  });
2022
1651
 
@@ -2054,8 +1683,8 @@ const refineOrDie = /*#__PURE__*/dual(2, (self, pf) => pipe(self, refineOrDieWit
2054
1683
 
2055
1684
  /** @internal */
2056
1685
  const refineOrDieWith = /*#__PURE__*/dual(3, (self, pf, f) => new StreamImpl(catchAll$1(toChannel(self), error => match$2(pf(error), {
2057
- onNone: () => failCause$3(die$2(f(error))),
2058
- onSome: fail$2
1686
+ onNone: () => failCause$1(die$2(f(error))),
1687
+ onSome: fail$1
2059
1688
  }))));
2060
1689
 
2061
1690
  /** @internal */
@@ -2071,13 +1700,13 @@ const repeatEffect = effect => repeatEffectOption(pipe(effect, mapError$1(some$1
2071
1700
  const repeatEffectChunk = effect => repeatEffectChunkOption(pipe(effect, mapError$1(some$1)));
2072
1701
 
2073
1702
  /** @internal */
2074
- const repeatEffectChunkOption = effect => unfoldChunkEffect(effect, effect => pipe(map$2(effect, chunk => some$1([chunk, effect])), catchAll$2(match$2({
1703
+ const repeatEffectChunkOption = effect => unfoldChunkEffect(effect, effect => pipe(map$1(effect, chunk => some$1([chunk, effect])), catchAll$2(match$2({
2075
1704
  onNone: () => succeed$1(none()),
2076
- onSome: fail$1
1705
+ onSome: fail$3
2077
1706
  }))));
2078
1707
 
2079
1708
  /** @internal */
2080
- const repeatEffectOption = effect => repeatEffectChunkOption(pipe(effect, map$2(of)));
1709
+ const repeatEffectOption = effect => repeatEffectChunkOption(pipe(effect, map$1(of)));
2081
1710
 
2082
1711
  /** @internal */
2083
1712
  const repeatEither = /*#__PURE__*/dual(2, (self, schedule) => repeatWith(self, schedule, {
@@ -2093,19 +1722,19 @@ const repeatElements = /*#__PURE__*/dual(2, (self, schedule) => filterMap(repeat
2093
1722
 
2094
1723
  /** @internal */
2095
1724
  const repeatElementsWith = /*#__PURE__*/dual(3, (self, schedule, options) => {
2096
- const driver$1 = pipe(driver(schedule), map$2(driver => {
1725
+ const driver$1 = pipe(driver(schedule), map$1(driver => {
2097
1726
  const feed = input => match$2(head$1(input), {
2098
1727
  onNone: () => loop,
2099
1728
  onSome: a => zipRight$2(write(of(options.onElement(a))), step(pipe(input, drop$1(1)), a))
2100
1729
  });
2101
1730
  const step = (input, a) => {
2102
- const advance = pipe(driver.next(a), as$1(pipe(write(of(options.onElement(a))), flatMap$2(() => step(input, a)))));
2103
- const reset = pipe(driver.last(), orDie$1, flatMap$1(b => pipe(driver.reset(), map$2(() => pipe(write(of(options.onSchedule(b))), zipRight$2(feed(input)))))));
1731
+ const advance = pipe(driver.next(a), as$1(pipe(write(of(options.onElement(a))), flatMap$1(() => step(input, a)))));
1732
+ const reset = pipe(driver.last(), orDie$1, flatMap$2(b => pipe(driver.reset(), map$1(() => pipe(write(of(options.onSchedule(b))), zipRight$2(feed(input)))))));
2104
1733
  return pipe(advance, orElse$2(() => reset), unwrap$1);
2105
1734
  };
2106
1735
  const loop = readWith({
2107
1736
  onInput: feed,
2108
- onFailure: fail$2,
1737
+ onFailure: fail$1,
2109
1738
  onDone: () => unit$1
2110
1739
  });
2111
1740
  return loop;
@@ -2118,12 +1747,12 @@ const repeatValue = value => new StreamImpl(repeated(write(of(value))));
2118
1747
 
2119
1748
  /** @internal */
2120
1749
  const repeatWith = /*#__PURE__*/dual(3, (self, schedule, options) => {
2121
- return pipe(driver(schedule), map$2(driver => {
2122
- const scheduleOutput = pipe(driver.last(), orDie$1, map$2(options.onSchedule));
1750
+ return pipe(driver(schedule), map$1(driver => {
1751
+ const scheduleOutput = pipe(driver.last(), orDie$1, map$1(options.onSchedule));
2123
1752
  const process = pipe(self, map(options.onElement), toChannel);
2124
1753
  const loop = unwrap$1(match$1(driver.next(void 0), {
2125
1754
  onFailure: () => unit$1,
2126
- onSuccess: () => pipe(process, zipRight$2(pipe(scheduleOutput, map$2(c => pipe(write(of(c)), flatMap$2(() => loop))), unwrap$1)))
1755
+ onSuccess: () => pipe(process, zipRight$2(pipe(scheduleOutput, map$1(c => pipe(write(of(c)), flatMap$1(() => loop))), unwrap$1)))
2127
1756
  }));
2128
1757
  return new StreamImpl(pipe(process, zipRight$2(loop)));
2129
1758
  }), unwrap);
@@ -2135,13 +1764,13 @@ const repeatWithSchedule = (value, schedule) => repeatEffectWithSchedule(succeed
2135
1764
  /** @internal */
2136
1765
  const repeatEffectWithSchedule = (effect, schedule) => flatMap(fromEffect(zip$1(effect, driver(schedule))), ([a, driver]) => concat(succeed(a), unfoldEffect(a, s => matchEffect(driver.next(s), {
2137
1766
  onFailure: succeed$1,
2138
- onSuccess: () => map$2(effect, nextA => some$1([nextA, nextA]))
1767
+ onSuccess: () => map$1(effect, nextA => some$1([nextA, nextA]))
2139
1768
  }))));
2140
1769
 
2141
1770
  /** @internal */
2142
- const retry = /*#__PURE__*/dual(2, (self, schedule) => unwrap(map$2(driver(schedule), driver => {
1771
+ const retry = /*#__PURE__*/dual(2, (self, schedule) => unwrap(map$1(driver(schedule), driver => {
2143
1772
  const loop = catchAll(self, error => unwrap(matchEffect(driver.next(error), {
2144
- onFailure: () => fail$1(error),
1773
+ onFailure: () => fail$3(error),
2145
1774
  onSuccess: () => succeed$1(pipe(loop, tap(() => driver.reset())))
2146
1775
  })));
2147
1776
  return loop;
@@ -2216,9 +1845,9 @@ const runIntoQueue = /*#__PURE__*/dual(2, (self, queue) => pipe(self, runIntoQue
2216
1845
  /** @internal */
2217
1846
  const runIntoQueueElementsScoped = /*#__PURE__*/dual(2, (self, queue) => {
2218
1847
  const writer = readWithCause({
2219
- onInput: input => flatMap$2(fromEffect$1(offerAll(queue, map$3(input, succeed$4))), () => writer),
2220
- onFailure: cause => fromEffect$1(offer$1(queue, failCause$4(map$1(cause, some$1)))),
2221
- onDone: () => fromEffect$1(offer$1(queue, fail$3(none())))
1848
+ onInput: input => flatMap$1(fromEffect$1(offerAll(queue, map$2(input, succeed$4))), () => writer),
1849
+ onFailure: cause => fromEffect$1(offer$1(queue, failCause$2(map$3(cause, some$1)))),
1850
+ onDone: () => fromEffect$1(offer$1(queue, fail$2(none())))
2222
1851
  });
2223
1852
  return pipe(pipeTo(toChannel(self), writer), drain$1, runScoped$1, asUnit);
2224
1853
  });
@@ -2226,7 +1855,7 @@ const runIntoQueueElementsScoped = /*#__PURE__*/dual(2, (self, queue) => {
2226
1855
  /** @internal */
2227
1856
  const runIntoQueueScoped = /*#__PURE__*/dual(2, (self, queue) => {
2228
1857
  const writer = readWithCause({
2229
- onInput: input => flatMap$2(write(chunk(input)), () => writer),
1858
+ onInput: input => flatMap$1(write(chunk(input)), () => writer),
2230
1859
  onFailure: cause => write(failCause$6(cause)),
2231
1860
  onDone: () => write(end$2)
2232
1861
  });
@@ -2257,7 +1886,7 @@ const scanReduceEffect = /*#__PURE__*/dual(2, (self, f) => pipe(self, mapAccumEf
2257
1886
  }
2258
1887
  case "Some":
2259
1888
  {
2260
- return pipe(f(option.value, a), map$2(b => [some$1(b), b]));
1889
+ return pipe(f(option.value, a), map$1(b => [some$1(b), b]));
2261
1890
  }
2262
1891
  }
2263
1892
  })));
@@ -2275,23 +1904,23 @@ const scheduleWith = /*#__PURE__*/dual(3, (self, schedule, options) => {
2275
1904
  if (next.done) {
2276
1905
  return readWithCause({
2277
1906
  onInput: chunk => loop(driver, chunk[Symbol.iterator]()),
2278
- onFailure: failCause$3,
1907
+ onFailure: failCause$1,
2279
1908
  onDone: succeedNow
2280
1909
  });
2281
1910
  }
2282
1911
  return unwrap$1(matchEffect(driver.next(next.value), {
2283
- onFailure: () => pipe(driver.last(), orDie$1, map$2(b => pipe(write(make$7(options.onElement(next.value), options.onSchedule(b))), flatMap$2(() => loop(driver, iterator)))), zipLeft$1(driver.reset())),
2284
- onSuccess: () => succeed$1(pipe(write(of(options.onElement(next.value))), flatMap$2(() => loop(driver, iterator))))
1912
+ onFailure: () => pipe(driver.last(), orDie$1, map$1(b => pipe(write(make$7(options.onElement(next.value), options.onSchedule(b))), flatMap$1(() => loop(driver, iterator)))), zipLeft$1(driver.reset())),
1913
+ onSuccess: () => succeed$1(pipe(write(of(options.onElement(next.value))), flatMap$1(() => loop(driver, iterator))))
2285
1914
  }));
2286
1915
  };
2287
- return new StreamImpl(pipe(fromEffect$1(driver(schedule)), flatMap$2(driver => pipe(toChannel(self), pipeTo(loop(driver, empty$1()[Symbol.iterator]()))))));
1916
+ return new StreamImpl(pipe(fromEffect$1(driver(schedule)), flatMap$1(driver => pipe(toChannel(self), pipeTo(loop(driver, empty$1()[Symbol.iterator]()))))));
2288
1917
  });
2289
1918
 
2290
1919
  /** @internal */
2291
- const scanEffect = /*#__PURE__*/dual(3, (self, s, f) => new StreamImpl(pipe(write(of(s)), flatMap$2(() => toChannel(pipe(self, mapAccumEffect(s, (s, a) => pipe(f(s, a), map$2(s => [s, s])))))))));
1920
+ const scanEffect = /*#__PURE__*/dual(3, (self, s, f) => new StreamImpl(pipe(write(of(s)), flatMap$1(() => toChannel(pipe(self, mapAccumEffect(s, (s, a) => pipe(f(s, a), map$1(s => [s, s])))))))));
2292
1921
 
2293
1922
  /** @internal */
2294
- const scoped = effect => new StreamImpl(ensuring$1(scoped$2(pipe(effect, map$2(of))), unit$2));
1923
+ const scoped = effect => new StreamImpl(ensuring$1(scoped$2(pipe(effect, map$1(of))), unit$2));
2295
1924
 
2296
1925
  /** @internal */
2297
1926
  const some = self => pipe(self, mapError(some$1), someOrFail(() => none()));
@@ -2319,7 +1948,7 @@ const slidingSize = /*#__PURE__*/dual(3, (self, chunkSize, stepSize) => {
2319
1948
  if (queueSize < chunkSize) {
2320
1949
  const items = queue.toChunk();
2321
1950
  const result = isEmpty(items) ? empty$1() : of(items);
2322
- return pipe(write(result), flatMap$2(() => channelEnd));
1951
+ return pipe(write(result), flatMap$1(() => channelEnd));
2323
1952
  }
2324
1953
  const lastEmitIndex = queueSize - (queueSize - chunkSize) % stepSize;
2325
1954
  if (lastEmitIndex === queueSize) {
@@ -2328,10 +1957,10 @@ const slidingSize = /*#__PURE__*/dual(3, (self, chunkSize, stepSize) => {
2328
1957
  const leftovers = queueSize - (lastEmitIndex - chunkSize + stepSize);
2329
1958
  const lastItems = pipe(queue.toChunk(), takeRight$1(leftovers));
2330
1959
  const result = isEmpty(lastItems) ? empty$1() : of(lastItems);
2331
- return pipe(write(result), flatMap$2(() => channelEnd));
1960
+ return pipe(write(result), flatMap$1(() => channelEnd));
2332
1961
  };
2333
1962
  const reader = queueSize => readWithCause({
2334
- onInput: input => flatMap$2(write(filterMap$1(input, (element, index) => {
1963
+ onInput: input => flatMap$1(write(filterMap$1(input, (element, index) => {
2335
1964
  queue.put(element);
2336
1965
  const currentIndex = queueSize + index + 1;
2337
1966
  if (currentIndex < chunkSize || (currentIndex - chunkSize) % stepSize > 0) {
@@ -2339,7 +1968,7 @@ const slidingSize = /*#__PURE__*/dual(3, (self, chunkSize, stepSize) => {
2339
1968
  }
2340
1969
  return some$1(queue.toChunk());
2341
1970
  })), () => reader(queueSize + input.length)),
2342
- onFailure: cause => emitOnStreamEnd(queueSize, failCause$3(cause)),
1971
+ onFailure: cause => emitOnStreamEnd(queueSize, failCause$1(cause)),
2343
1972
  onDone: () => emitOnStreamEnd(queueSize, unit$1)
2344
1973
  });
2345
1974
  return pipe(toChannel(self), pipeTo(reader(0)));
@@ -2353,11 +1982,11 @@ const split = /*#__PURE__*/dual(2, (self, predicate) => {
2353
1982
  if (isEmpty(chunk) || isEmpty(remaining)) {
2354
1983
  return loop(pipe(chunk, appendAll(pipe(remaining, drop$1(1)))));
2355
1984
  }
2356
- return pipe(write(of(chunk)), flatMap$2(() => split(empty$1(), pipe(remaining, drop$1(1)))));
1985
+ return pipe(write(of(chunk)), flatMap$1(() => split(empty$1(), pipe(remaining, drop$1(1)))));
2357
1986
  };
2358
1987
  const loop = leftovers => readWith({
2359
1988
  onInput: input => split(leftovers, input),
2360
- onFailure: fail$2,
1989
+ onFailure: fail$1,
2361
1990
  onDone: () => {
2362
1991
  if (isEmpty(leftovers)) {
2363
1992
  return unit$1;
@@ -2391,11 +2020,11 @@ const splitOnChunk = /*#__PURE__*/dual(2, (self, delimiter) => {
2391
2020
  return [concatenated, equals(a, pipe(delimiter, unsafeGet$1(0))) ? 1 : 0];
2392
2021
  }));
2393
2022
  const output = buffer === undefined ? empty$1() : unsafeFromArray(buffer);
2394
- return flatMap$2(write(output), () => next(isNonEmpty(carry) ? some$1(carry) : none(), delimiterCursor));
2023
+ return flatMap$1(write(output), () => next(isNonEmpty(carry) ? some$1(carry) : none(), delimiterCursor));
2395
2024
  },
2396
2025
  onFailure: cause => match$2(leftover, {
2397
- onNone: () => failCause$3(cause),
2398
- onSome: chunk => zipRight$2(write(of(chunk)), failCause$3(cause))
2026
+ onNone: () => failCause$1(cause),
2027
+ onSome: chunk => zipRight$2(write(of(chunk)), failCause$1(cause))
2399
2028
  }),
2400
2029
  onDone: done => match$2(leftover, {
2401
2030
  onNone: () => succeed$3(done),
@@ -2411,7 +2040,7 @@ const splitLines = self => suspend(() => {
2411
2040
  let midCRLF = false;
2412
2041
  const splitLinesChunk = chunk => {
2413
2042
  const chunkBuilder = [];
2414
- map$3(chunk, str => {
2043
+ map$2(chunk, str => {
2415
2044
  if (str.length !== 0) {
2416
2045
  let from = 0;
2417
2046
  let indexOfCR = str.indexOf("\r");
@@ -2471,10 +2100,10 @@ const splitLines = self => suspend(() => {
2471
2100
  const loop = readWithCause({
2472
2101
  onInput: input => {
2473
2102
  const out = splitLinesChunk(input);
2474
- return isEmpty(out) ? loop : flatMap$2(write(out), () => loop);
2103
+ return isEmpty(out) ? loop : flatMap$1(write(out), () => loop);
2475
2104
  },
2476
- onFailure: cause => stringBuilder.length === 0 ? failCause$3(cause) : flatMap$2(write(of(stringBuilder)), () => failCause$3(cause)),
2477
- onDone: done => stringBuilder.length === 0 ? succeed$3(done) : flatMap$2(write(of(stringBuilder)), () => succeed$3(done))
2105
+ onFailure: cause => stringBuilder.length === 0 ? failCause$1(cause) : flatMap$1(write(of(stringBuilder)), () => failCause$1(cause)),
2106
+ onDone: done => stringBuilder.length === 0 ? succeed$3(done) : flatMap$1(write(of(stringBuilder)), () => succeed$3(done))
2478
2107
  });
2479
2108
  return new StreamImpl(pipeTo(toChannel(self), loop));
2480
2109
  });
@@ -2499,11 +2128,11 @@ const take = /*#__PURE__*/dual(2, (self, n) => {
2499
2128
  const leftover = Math.max(0, n - taken.length);
2500
2129
  const more = leftover > 0;
2501
2130
  if (more) {
2502
- return pipe(write(taken), flatMap$2(() => loop(leftover)));
2131
+ return pipe(write(taken), flatMap$1(() => loop(leftover)));
2503
2132
  }
2504
2133
  return write(taken);
2505
2134
  },
2506
- onFailure: fail$2,
2135
+ onFailure: fail$1,
2507
2136
  onDone: succeed$3
2508
2137
  });
2509
2138
  return new StreamImpl(pipe(toChannel(self), pipeToOrFail(0 < n ? loop(n) : unit$1)));
@@ -2514,7 +2143,7 @@ const takeRight = /*#__PURE__*/dual(2, (self, n) => {
2514
2143
  if (n <= 0) {
2515
2144
  return empty;
2516
2145
  }
2517
- return new StreamImpl(pipe(succeed$1(new RingBuffer(n)), map$2(queue => {
2146
+ return new StreamImpl(pipe(succeed$1(new RingBuffer(n)), map$1(queue => {
2518
2147
  const reader = readWith({
2519
2148
  onInput: input => {
2520
2149
  for (const element of input) {
@@ -2522,7 +2151,7 @@ const takeRight = /*#__PURE__*/dual(2, (self, n) => {
2522
2151
  }
2523
2152
  return reader;
2524
2153
  },
2525
- onFailure: fail$2,
2154
+ onFailure: fail$1,
2526
2155
  onDone: () => pipe(write(queue.toChunk()), zipRight$2(unit$1))
2527
2156
  });
2528
2157
  return pipe(toChannel(self), pipeTo(reader));
@@ -2536,11 +2165,11 @@ const takeUntil = /*#__PURE__*/dual(2, (self, predicate) => {
2536
2165
  const taken = pipe(input, takeWhile$1(a => !predicate(a)));
2537
2166
  const last = pipe(input, drop$1(taken.length), take$3(1));
2538
2167
  if (isEmpty(last)) {
2539
- return pipe(write(taken), flatMap$2(() => loop));
2168
+ return pipe(write(taken), flatMap$1(() => loop));
2540
2169
  }
2541
2170
  return write(pipe(taken, appendAll(last)));
2542
2171
  },
2543
- onFailure: fail$2,
2172
+ onFailure: fail$1,
2544
2173
  onDone: succeed$3
2545
2174
  });
2546
2175
  return new StreamImpl(pipe(toChannel(self), pipeToOrFail(loop)));
@@ -2553,11 +2182,11 @@ const takeUntilEffect = /*#__PURE__*/dual(2, (self, predicate) => {
2553
2182
  if (next.done) {
2554
2183
  return readWithCause({
2555
2184
  onInput: elem => loop(elem[Symbol.iterator]()),
2556
- onFailure: failCause$3,
2185
+ onFailure: failCause$1,
2557
2186
  onDone: succeed$3
2558
2187
  });
2559
2188
  }
2560
- return pipe(predicate(next.value), map$2(bool => bool ? write(of(next.value)) : pipe(write(of(next.value)), flatMap$2(() => loop(iterator)))), unwrap$1);
2189
+ return pipe(predicate(next.value), map$1(bool => bool ? write(of(next.value)) : pipe(write(of(next.value)), flatMap$1(() => loop(iterator)))), unwrap$1);
2561
2190
  };
2562
2191
  return new StreamImpl(pipe(toChannel(self), pipeTo(loop(empty$1()[Symbol.iterator]()))));
2563
2192
  });
@@ -2569,11 +2198,11 @@ const takeWhile = /*#__PURE__*/dual(2, (self, predicate) => {
2569
2198
  const taken = pipe(input, takeWhile$1(predicate));
2570
2199
  const more = taken.length === input.length;
2571
2200
  if (more) {
2572
- return pipe(write(taken), flatMap$2(() => loop));
2201
+ return pipe(write(taken), flatMap$1(() => loop));
2573
2202
  }
2574
2203
  return write(taken);
2575
2204
  },
2576
- onFailure: fail$2,
2205
+ onFailure: fail$1,
2577
2206
  onDone: succeed$3
2578
2207
  });
2579
2208
  return new StreamImpl(pipe(toChannel(self), pipeToOrFail(loop)));
@@ -2589,13 +2218,13 @@ const tapBoth = /*#__PURE__*/dual(2, (self, {
2589
2218
  }) => pipe(self, tapError(onFailure), tap(onSuccess)));
2590
2219
 
2591
2220
  /** @internal */
2592
- const tapError = /*#__PURE__*/dual(2, (self, f) => catchAll(self, error => fromEffect(zipRight$1(f(error), fail$1(error)))));
2221
+ const tapError = /*#__PURE__*/dual(2, (self, f) => catchAll(self, error => fromEffect(zipRight$1(f(error), fail$3(error)))));
2593
2222
 
2594
2223
  /** @internal */
2595
2224
  const tapErrorCause = /*#__PURE__*/dual(2, (self, f) => {
2596
2225
  const loop = readWithCause({
2597
- onInput: chunk => flatMap$2(write(chunk), () => loop),
2598
- onFailure: cause => fromEffect$1(zipRight$1(f(cause), failCause$2(cause))),
2226
+ onInput: chunk => flatMap$1(write(chunk), () => loop),
2227
+ onFailure: cause => fromEffect$1(zipRight$1(f(cause), failCause$4(cause))),
2599
2228
  onDone: succeedNow
2600
2229
  });
2601
2230
  return new StreamImpl(pipe(toChannel(self), pipeTo(loop)));
@@ -2608,12 +2237,12 @@ const tapSink = /*#__PURE__*/dual(2, (self, sink) => pipe(fromEffect(all([bounde
2608
2237
  }));
2609
2238
  const loop = readWithCause({
2610
2239
  onInput: chunk$1 => pipe(fromEffect$1(offer$1(queue, chunk(chunk$1))), foldCauseChannel({
2611
- onFailure: () => flatMap$2(write(chunk$1), () => identityChannel()),
2612
- onSuccess: () => flatMap$2(write(chunk$1), () => loop)
2240
+ onFailure: () => flatMap$1(write(chunk$1), () => identityChannel()),
2241
+ onSuccess: () => flatMap$1(write(chunk$1), () => loop)
2613
2242
  })),
2614
2243
  onFailure: cause => pipe(fromEffect$1(offer$1(queue, failCause$6(cause))), foldCauseChannel({
2615
- onFailure: () => failCause$3(cause),
2616
- onSuccess: () => failCause$3(cause)
2244
+ onFailure: () => failCause$1(cause),
2245
+ onSuccess: () => failCause$1(cause)
2617
2246
  })),
2618
2247
  onDone: () => pipe(fromEffect$1(offer$1(queue, end$2)), foldCauseChannel({
2619
2248
  onFailure: () => unit$1,
@@ -2638,26 +2267,26 @@ const throttleEffect = /*#__PURE__*/dual(2, (self, options) => {
2638
2267
  });
2639
2268
  const throttleEnforceEffect = (self, cost, units, duration, burst) => {
2640
2269
  const loop = (tokens, timestampMillis) => readWithCause({
2641
- onInput: input => pipe(cost(input), zip$1(currentTimeMillis), map$2(([weight, currentTimeMillis]) => {
2270
+ onInput: input => pipe(cost(input), zip$1(currentTimeMillis), map$1(([weight, currentTimeMillis]) => {
2642
2271
  const elapsed = currentTimeMillis - timestampMillis;
2643
2272
  const cycles = elapsed / toMillis(duration);
2644
2273
  const sum = tokens + cycles * units;
2645
2274
  const max = units + burst < 0 ? Number.POSITIVE_INFINITY : units + burst;
2646
2275
  const available = sum < 0 ? max : Math.min(sum, max);
2647
2276
  if (weight <= available) {
2648
- return pipe(write(input), flatMap$2(() => loop(available - weight, currentTimeMillis)));
2277
+ return pipe(write(input), flatMap$1(() => loop(available - weight, currentTimeMillis)));
2649
2278
  }
2650
2279
  return loop(tokens, timestampMillis);
2651
2280
  }), unwrap$1),
2652
- onFailure: failCause$3,
2281
+ onFailure: failCause$1,
2653
2282
  onDone: () => unit$1
2654
2283
  });
2655
- const throttled = pipe(currentTimeMillis, map$2(currentTimeMillis => loop(units, currentTimeMillis)), unwrap$1);
2284
+ const throttled = pipe(currentTimeMillis, map$1(currentTimeMillis => loop(units, currentTimeMillis)), unwrap$1);
2656
2285
  return new StreamImpl(pipe(toChannel(self), pipeToOrFail(throttled)));
2657
2286
  };
2658
2287
  const throttleShapeEffect = (self, costFn, units, duration, burst) => {
2659
2288
  const loop = (tokens, timestampMillis) => readWithCause({
2660
- onInput: input => pipe(costFn(input), zip$1(currentTimeMillis), map$2(([weight, currentTimeMillis]) => {
2289
+ onInput: input => pipe(costFn(input), zip$1(currentTimeMillis), map$1(([weight, currentTimeMillis]) => {
2661
2290
  const elapsed = currentTimeMillis - timestampMillis;
2662
2291
  const cycles = elapsed / toMillis(duration);
2663
2292
  const sum = tokens + cycles * units;
@@ -2667,14 +2296,14 @@ const throttleShapeEffect = (self, costFn, units, duration, burst) => {
2667
2296
  const waitCycles = remaining >= 0 ? 0 : -remaining / units;
2668
2297
  const delay = millis(Math.max(0, waitCycles * toMillis(duration)));
2669
2298
  if (greaterThan(delay, zero)) {
2670
- return pipe(fromEffect$1(sleep(delay)), zipRight$2(write(input)), flatMap$2(() => loop(remaining, currentTimeMillis)));
2299
+ return pipe(fromEffect$1(sleep(delay)), zipRight$2(write(input)), flatMap$1(() => loop(remaining, currentTimeMillis)));
2671
2300
  }
2672
- return flatMap$2(write(input), () => loop(remaining, currentTimeMillis));
2301
+ return flatMap$1(write(input), () => loop(remaining, currentTimeMillis));
2673
2302
  }), unwrap$1),
2674
- onFailure: failCause$3,
2303
+ onFailure: failCause$1,
2675
2304
  onDone: () => unit$1
2676
2305
  });
2677
- const throttled = pipe(currentTimeMillis, map$2(currentTimeMillis => loop(units, currentTimeMillis)), unwrap$1);
2306
+ const throttled = pipe(currentTimeMillis, map$1(currentTimeMillis => loop(units, currentTimeMillis)), unwrap$1);
2678
2307
  return new StreamImpl(pipe(toChannel(self), pipeToOrFail(throttled)));
2679
2308
  };
2680
2309
 
@@ -2682,7 +2311,7 @@ const throttleShapeEffect = (self, costFn, units, duration, burst) => {
2682
2311
  const tick = interval => repeatWithSchedule(void 0, spaced(interval));
2683
2312
 
2684
2313
  /** @internal */
2685
- const timeout = /*#__PURE__*/dual(2, (self, duration) => pipe(toPull(self), map$2(timeoutFail$1({
2314
+ const timeout = /*#__PURE__*/dual(2, (self, duration) => pipe(toPull(self), map$1(timeoutFail$1({
2686
2315
  onTimeout: () => none(),
2687
2316
  duration
2688
2317
  })), fromPull));
@@ -2691,8 +2320,8 @@ const timeout = /*#__PURE__*/dual(2, (self, duration) => pipe(toPull(self), map$
2691
2320
  const timeoutFail = /*#__PURE__*/dual(3, (self, error, duration) => pipe(self, timeoutTo(duration, failSync(error))));
2692
2321
 
2693
2322
  /** @internal */
2694
- const timeoutFailCause = /*#__PURE__*/dual(3, (self, cause, duration) => pipe(toPull(self), map$2(timeoutFailCause$1({
2695
- onTimeout: () => map$1(cause(), some$1),
2323
+ const timeoutFailCause = /*#__PURE__*/dual(3, (self, cause, duration) => pipe(toPull(self), map$1(timeoutFailCause$1({
2324
+ onTimeout: () => map$3(cause(), some$1),
2696
2325
  duration
2697
2326
  })), fromPull));
2698
2327
 
@@ -2706,8 +2335,8 @@ const timeoutTo = /*#__PURE__*/dual(3, (self, duration, that) => {
2706
2335
  const toHub = /*#__PURE__*/dual(2, (self, capacity) => pipe(acquireRelease$1(bounded$1(capacity), hub => shutdown$1(hub)), tap$1(hub => pipe(self, runIntoHubScoped(hub), forkScoped))));
2707
2336
 
2708
2337
  /** @internal */
2709
- const toPull = self => map$2(toPull$1(toChannel(self)), pull => pipe(pull, mapError$1(some$1), flatMap$1(match({
2710
- onLeft: () => fail$1(none()),
2338
+ const toPull = self => map$1(toPull$1(toChannel(self)), pull => pipe(pull, mapError$1(some$1), flatMap$2(match({
2339
+ onLeft: () => fail$3(none()),
2711
2340
  onRight: succeed$1
2712
2341
  }))));
2713
2342
 
@@ -2725,7 +2354,7 @@ const toReadableStream = source => {
2725
2354
  start(controller) {
2726
2355
  scope = runSync(make$6());
2727
2356
  pull = pipe(toPull(source), use(scope), runSync, tap$1(chunk => sync$1(() => {
2728
- map$3(chunk, a => {
2357
+ map$2(chunk, a => {
2729
2358
  controller.enqueue(a);
2730
2359
  });
2731
2360
  })), tapErrorCause$1(() => close(scope, unit$3)), catchTags$1({
@@ -2759,13 +2388,13 @@ const transduce = /*#__PURE__*/dual(2, (self, sink) => {
2759
2388
  const leftover = leftovers.ref;
2760
2389
  if (isEmpty(leftover)) {
2761
2390
  return readWith({
2762
- onInput: input => pipe(write(input), flatMap$2(() => buffer)),
2763
- onFailure: fail$2,
2391
+ onInput: input => pipe(write(input), flatMap$1(() => buffer)),
2392
+ onFailure: fail$1,
2764
2393
  onDone: succeedNow
2765
2394
  });
2766
2395
  }
2767
2396
  leftovers.ref = empty$1();
2768
- return pipe(writeChunk(leftover), flatMap$2(() => buffer));
2397
+ return pipe(writeChunk(leftover), flatMap$1(() => buffer));
2769
2398
  });
2770
2399
  const concatAndGet = chunk => {
2771
2400
  const leftover = leftovers.ref;
@@ -2774,15 +2403,15 @@ const transduce = /*#__PURE__*/dual(2, (self, sink) => {
2774
2403
  return concatenated;
2775
2404
  };
2776
2405
  const upstreamMarker = readWith({
2777
- onInput: input => flatMap$2(write(input), () => upstreamMarker),
2778
- onFailure: fail$2,
2406
+ onInput: input => flatMap$1(write(input), () => upstreamMarker),
2407
+ onFailure: fail$1,
2779
2408
  onDone: done => zipRight$2(sync$2(() => {
2780
2409
  upstreamDone.ref = true;
2781
2410
  }), succeedNow(done))
2782
2411
  });
2783
- const transducer = pipe(sink, toChannel$1, collectElements, flatMap$2(([leftover, z]) => pipe(succeed$3([upstreamDone.ref, concatAndGet(leftover)]), flatMap$2(([done, newLeftovers]) => {
2412
+ const transducer = pipe(sink, toChannel$1, collectElements, flatMap$1(([leftover, z]) => pipe(succeed$3([upstreamDone.ref, concatAndGet(leftover)]), flatMap$1(([done, newLeftovers]) => {
2784
2413
  const nextChannel = done && isEmpty(newLeftovers) ? unit$1 : transducer;
2785
- return pipe(write(of(z)), flatMap$2(() => nextChannel));
2414
+ return pipe(write(of(z)), flatMap$1(() => nextChannel));
2786
2415
  }))));
2787
2416
  return pipe(toChannel(self), pipeTo(upstreamMarker), pipeTo(buffer), pipeToOrFail(transducer));
2788
2417
  });
@@ -2796,22 +2425,22 @@ const unfold = (s, f) => unfoldChunk(s, s => pipe(f(s), map$4(([a, s]) => [of(a)
2796
2425
  const unfoldChunk = (s, f) => {
2797
2426
  const loop = s => match$2(f(s), {
2798
2427
  onNone: () => unit$1,
2799
- onSome: ([chunk, s]) => flatMap$2(write(chunk), () => loop(s))
2428
+ onSome: ([chunk, s]) => flatMap$1(write(chunk), () => loop(s))
2800
2429
  });
2801
2430
  return new StreamImpl(suspend$2(() => loop(s)));
2802
2431
  };
2803
2432
 
2804
2433
  /** @internal */
2805
2434
  const unfoldChunkEffect = (s, f) => suspend(() => {
2806
- const loop = s => unwrap$1(map$2(f(s), match$2({
2435
+ const loop = s => unwrap$1(map$1(f(s), match$2({
2807
2436
  onNone: () => unit$1,
2808
- onSome: ([chunk, s]) => flatMap$2(write(chunk), () => loop(s))
2437
+ onSome: ([chunk, s]) => flatMap$1(write(chunk), () => loop(s))
2809
2438
  })));
2810
2439
  return new StreamImpl(loop(s));
2811
2440
  });
2812
2441
 
2813
2442
  /** @internal */
2814
- const unfoldEffect = (s, f) => unfoldChunkEffect(s, s => pipe(f(s), map$2(map$4(([a, s]) => [of(a), s]))));
2443
+ const unfoldEffect = (s, f) => unfoldChunkEffect(s, s => pipe(f(s), map$1(map$4(([a, s]) => [of(a), s]))));
2815
2444
 
2816
2445
  /** @internal */
2817
2446
  const unit = /*#__PURE__*/succeed(void 0);
@@ -2904,33 +2533,33 @@ const zipAllSortedByKeyWith = /*#__PURE__*/dual(2, (self, options) => {
2904
2533
  case OP_DRAIN_LEFT:
2905
2534
  {
2906
2535
  return pipe(pullLeft, match$1({
2907
- onFailure: fail$3,
2908
- onSuccess: leftChunk => succeed$4([map$3(leftChunk, ([k, a]) => [k, options.onSelf(a)]), DrainLeft])
2536
+ onFailure: fail$2,
2537
+ onSuccess: leftChunk => succeed$4([map$2(leftChunk, ([k, a]) => [k, options.onSelf(a)]), DrainLeft])
2909
2538
  }));
2910
2539
  }
2911
2540
  case OP_DRAIN_RIGHT:
2912
2541
  {
2913
2542
  return pipe(pullRight, match$1({
2914
- onFailure: fail$3,
2915
- onSuccess: rightChunk => succeed$4([map$3(rightChunk, ([k, a2]) => [k, options.onOther(a2)]), DrainRight])
2543
+ onFailure: fail$2,
2544
+ onSuccess: rightChunk => succeed$4([map$2(rightChunk, ([k, a2]) => [k, options.onOther(a2)]), DrainRight])
2916
2545
  }));
2917
2546
  }
2918
- case OP_PULL_BOTH$1:
2547
+ case OP_PULL_BOTH:
2919
2548
  {
2920
2549
  return pipe(unsome(pullLeft), zip$1(unsome(pullRight), {
2921
2550
  concurrent: true
2922
2551
  }), matchEffect({
2923
- onFailure: error => succeed$1(fail$3(some$1(error))),
2552
+ onFailure: error => succeed$1(fail$2(some$1(error))),
2924
2553
  onSuccess: ([leftOption, rightOption]) => {
2925
2554
  if (isSome(leftOption) && isSome(rightOption)) {
2926
2555
  if (isEmpty(leftOption.value) && isEmpty(rightOption.value)) {
2927
- return pull(PullBoth$1, pullLeft, pullRight);
2556
+ return pull(PullBoth, pullLeft, pullRight);
2928
2557
  }
2929
2558
  if (isEmpty(leftOption.value)) {
2930
- return pull(PullLeft$1(rightOption.value), pullLeft, pullRight);
2559
+ return pull(PullLeft(rightOption.value), pullLeft, pullRight);
2931
2560
  }
2932
2561
  if (isEmpty(rightOption.value)) {
2933
- return pull(PullRight$1(leftOption.value), pullLeft, pullRight);
2562
+ return pull(PullRight(leftOption.value), pullLeft, pullRight);
2934
2563
  }
2935
2564
  return succeed$1(succeed$4(merge(leftOption.value, rightOption.value)));
2936
2565
  }
@@ -2938,36 +2567,36 @@ const zipAllSortedByKeyWith = /*#__PURE__*/dual(2, (self, options) => {
2938
2567
  if (isEmpty(leftOption.value)) {
2939
2568
  return pull(DrainLeft, pullLeft, pullRight);
2940
2569
  }
2941
- return succeed$1(succeed$4([pipe(leftOption.value, map$3(([k, a]) => [k, options.onSelf(a)])), DrainLeft]));
2570
+ return succeed$1(succeed$4([pipe(leftOption.value, map$2(([k, a]) => [k, options.onSelf(a)])), DrainLeft]));
2942
2571
  }
2943
2572
  if (isNone(leftOption) && isSome(rightOption)) {
2944
2573
  if (isEmpty(rightOption.value)) {
2945
2574
  return pull(DrainRight, pullLeft, pullRight);
2946
2575
  }
2947
- return succeed$1(succeed$4([pipe(rightOption.value, map$3(([k, a2]) => [k, options.onOther(a2)])), DrainRight]));
2576
+ return succeed$1(succeed$4([pipe(rightOption.value, map$2(([k, a2]) => [k, options.onOther(a2)])), DrainRight]));
2948
2577
  }
2949
- return succeed$1(fail$3(none()));
2578
+ return succeed$1(fail$2(none()));
2950
2579
  }
2951
2580
  }));
2952
2581
  }
2953
- case OP_PULL_LEFT$1:
2582
+ case OP_PULL_LEFT:
2954
2583
  {
2955
2584
  return matchEffect(pullLeft, {
2956
2585
  onFailure: match$2({
2957
- onNone: () => succeed$1(succeed$4([pipe(state.rightChunk, map$3(([k, a2]) => [k, options.onOther(a2)])), DrainRight])),
2958
- onSome: error => succeed$1(fail$3(some$1(error)))
2586
+ onNone: () => succeed$1(succeed$4([pipe(state.rightChunk, map$2(([k, a2]) => [k, options.onOther(a2)])), DrainRight])),
2587
+ onSome: error => succeed$1(fail$2(some$1(error)))
2959
2588
  }),
2960
- onSuccess: leftChunk => isEmpty(leftChunk) ? pull(PullLeft$1(state.rightChunk), pullLeft, pullRight) : succeed$1(succeed$4(merge(leftChunk, state.rightChunk)))
2589
+ onSuccess: leftChunk => isEmpty(leftChunk) ? pull(PullLeft(state.rightChunk), pullLeft, pullRight) : succeed$1(succeed$4(merge(leftChunk, state.rightChunk)))
2961
2590
  });
2962
2591
  }
2963
- case OP_PULL_RIGHT$1:
2592
+ case OP_PULL_RIGHT:
2964
2593
  {
2965
2594
  return matchEffect(pullRight, {
2966
2595
  onFailure: match$2({
2967
- onNone: () => succeed$1(succeed$4([map$3(state.leftChunk, ([k, a]) => [k, options.onSelf(a)]), DrainLeft])),
2968
- onSome: error => succeed$1(fail$3(some$1(error)))
2596
+ onNone: () => succeed$1(succeed$4([map$2(state.leftChunk, ([k, a]) => [k, options.onSelf(a)]), DrainLeft])),
2597
+ onSome: error => succeed$1(fail$2(some$1(error)))
2969
2598
  }),
2970
- onSuccess: rightChunk => isEmpty(rightChunk) ? pull(PullRight$1(state.leftChunk), pullLeft, pullRight) : succeed$1(succeed$4(merge(state.leftChunk, rightChunk)))
2599
+ onSuccess: rightChunk => isEmpty(rightChunk) ? pull(PullRight(state.leftChunk), pullLeft, pullRight) : succeed$1(succeed$4(merge(state.leftChunk, rightChunk)))
2971
2600
  });
2972
2601
  }
2973
2602
  }
@@ -2999,13 +2628,13 @@ const zipAllSortedByKeyWith = /*#__PURE__*/dual(2, (self, options) => {
2999
2628
  k2 = rightTuple[0];
3000
2629
  a2 = rightTuple[1];
3001
2630
  } else if (hasNext(leftChunk, leftIndex)) {
3002
- state = PullRight$1(pipe(leftChunk, drop$1(leftIndex + 1)));
2631
+ state = PullRight(pipe(leftChunk, drop$1(leftIndex + 1)));
3003
2632
  loop = false;
3004
2633
  } else if (hasNext(rightChunk, rightIndex)) {
3005
- state = PullLeft$1(pipe(rightChunk, drop$1(rightIndex + 1)));
2634
+ state = PullLeft(pipe(rightChunk, drop$1(rightIndex + 1)));
3006
2635
  loop = false;
3007
2636
  } else {
3008
- state = PullBoth$1;
2637
+ state = PullBoth;
3009
2638
  loop = false;
3010
2639
  }
3011
2640
  } else if (compare < 0) {
@@ -3023,7 +2652,7 @@ const zipAllSortedByKeyWith = /*#__PURE__*/dual(2, (self, options) => {
3023
2652
  rightTuple = pipe(rightChunk, unsafeGet$1(rightIndex));
3024
2653
  rightBuilder.push(rightTuple);
3025
2654
  }
3026
- state = PullLeft$1(unsafeFromArray(rightBuilder));
2655
+ state = PullLeft(unsafeFromArray(rightBuilder));
3027
2656
  loop = false;
3028
2657
  }
3029
2658
  } else {
@@ -3041,14 +2670,14 @@ const zipAllSortedByKeyWith = /*#__PURE__*/dual(2, (self, options) => {
3041
2670
  leftTuple = pipe(leftChunk, unsafeGet$1(leftIndex));
3042
2671
  leftBuilder.push(leftTuple);
3043
2672
  }
3044
- state = PullRight$1(unsafeFromArray(leftBuilder));
2673
+ state = PullRight(unsafeFromArray(leftBuilder));
3045
2674
  loop = false;
3046
2675
  }
3047
2676
  }
3048
2677
  }
3049
2678
  return [unsafeFromArray(builder), state];
3050
2679
  };
3051
- return combineChunks(self, options.other, PullBoth$1, pull);
2680
+ return combineChunks(self, options.other, PullBoth, pull);
3052
2681
  });
3053
2682
 
3054
2683
  /** @internal */
@@ -3058,77 +2687,77 @@ const zipAllWith = /*#__PURE__*/dual(2, (self, options) => {
3058
2687
  case OP_DRAIN_LEFT:
3059
2688
  {
3060
2689
  return matchEffect(pullLeft, {
3061
- onFailure: error => succeed$1(fail$3(error)),
3062
- onSuccess: leftChunk => succeed$1(succeed$4([map$3(leftChunk, options.onSelf), DrainLeft]))
2690
+ onFailure: error => succeed$1(fail$2(error)),
2691
+ onSuccess: leftChunk => succeed$1(succeed$4([map$2(leftChunk, options.onSelf), DrainLeft]))
3063
2692
  });
3064
2693
  }
3065
2694
  case OP_DRAIN_RIGHT:
3066
2695
  {
3067
2696
  return matchEffect(pullRight, {
3068
- onFailure: error => succeed$1(fail$3(error)),
3069
- onSuccess: rightChunk => succeed$1(succeed$4([map$3(rightChunk, options.onOther), DrainRight]))
2697
+ onFailure: error => succeed$1(fail$2(error)),
2698
+ onSuccess: rightChunk => succeed$1(succeed$4([map$2(rightChunk, options.onOther), DrainRight]))
3070
2699
  });
3071
2700
  }
3072
- case OP_PULL_BOTH$1:
2701
+ case OP_PULL_BOTH:
3073
2702
  {
3074
2703
  return pipe(unsome(pullLeft), zip$1(unsome(pullRight), {
3075
2704
  concurrent: true
3076
2705
  }), matchEffect({
3077
- onFailure: error => succeed$1(fail$3(some$1(error))),
2706
+ onFailure: error => succeed$1(fail$2(some$1(error))),
3078
2707
  onSuccess: ([leftOption, rightOption]) => {
3079
2708
  if (isSome(leftOption) && isSome(rightOption)) {
3080
2709
  if (isEmpty(leftOption.value) && isEmpty(rightOption.value)) {
3081
- return pull(PullBoth$1, pullLeft, pullRight);
2710
+ return pull(PullBoth, pullLeft, pullRight);
3082
2711
  }
3083
2712
  if (isEmpty(leftOption.value)) {
3084
- return pull(PullLeft$1(rightOption.value), pullLeft, pullRight);
2713
+ return pull(PullLeft(rightOption.value), pullLeft, pullRight);
3085
2714
  }
3086
2715
  if (isEmpty(rightOption.value)) {
3087
- return pull(PullRight$1(leftOption.value), pullLeft, pullRight);
2716
+ return pull(PullRight(leftOption.value), pullLeft, pullRight);
3088
2717
  }
3089
2718
  return succeed$1(succeed$4(zip(leftOption.value, rightOption.value, options.onBoth)));
3090
2719
  }
3091
2720
  if (isSome(leftOption) && isNone(rightOption)) {
3092
- return succeed$1(succeed$4([map$3(leftOption.value, options.onSelf), DrainLeft]));
2721
+ return succeed$1(succeed$4([map$2(leftOption.value, options.onSelf), DrainLeft]));
3093
2722
  }
3094
2723
  if (isNone(leftOption) && isSome(rightOption)) {
3095
- return succeed$1(succeed$4([map$3(rightOption.value, options.onOther), DrainRight]));
2724
+ return succeed$1(succeed$4([map$2(rightOption.value, options.onOther), DrainRight]));
3096
2725
  }
3097
- return succeed$1(fail$3(none()));
2726
+ return succeed$1(fail$2(none()));
3098
2727
  }
3099
2728
  }));
3100
2729
  }
3101
- case OP_PULL_LEFT$1:
2730
+ case OP_PULL_LEFT:
3102
2731
  {
3103
2732
  return matchEffect(pullLeft, {
3104
2733
  onFailure: match$2({
3105
- onNone: () => succeed$1(succeed$4([map$3(state.rightChunk, options.onOther), DrainRight])),
3106
- onSome: error => succeed$1(fail$3(some$1(error)))
2734
+ onNone: () => succeed$1(succeed$4([map$2(state.rightChunk, options.onOther), DrainRight])),
2735
+ onSome: error => succeed$1(fail$2(some$1(error)))
3107
2736
  }),
3108
2737
  onSuccess: leftChunk => {
3109
2738
  if (isEmpty(leftChunk)) {
3110
- return pull(PullLeft$1(state.rightChunk), pullLeft, pullRight);
2739
+ return pull(PullLeft(state.rightChunk), pullLeft, pullRight);
3111
2740
  }
3112
2741
  if (isEmpty(state.rightChunk)) {
3113
- return pull(PullRight$1(leftChunk), pullLeft, pullRight);
2742
+ return pull(PullRight(leftChunk), pullLeft, pullRight);
3114
2743
  }
3115
2744
  return succeed$1(succeed$4(zip(leftChunk, state.rightChunk, options.onBoth)));
3116
2745
  }
3117
2746
  });
3118
2747
  }
3119
- case OP_PULL_RIGHT$1:
2748
+ case OP_PULL_RIGHT:
3120
2749
  {
3121
2750
  return matchEffect(pullRight, {
3122
2751
  onFailure: match$2({
3123
- onNone: () => succeed$1(succeed$4([map$3(state.leftChunk, options.onSelf), DrainLeft])),
3124
- onSome: error => succeed$1(fail$3(some$1(error)))
2752
+ onNone: () => succeed$1(succeed$4([map$2(state.leftChunk, options.onSelf), DrainLeft])),
2753
+ onSome: error => succeed$1(fail$2(some$1(error)))
3125
2754
  }),
3126
2755
  onSuccess: rightChunk => {
3127
2756
  if (isEmpty(rightChunk)) {
3128
- return pull(PullRight$1(state.leftChunk), pullLeft, pullRight);
2757
+ return pull(PullRight(state.leftChunk), pullLeft, pullRight);
3129
2758
  }
3130
2759
  if (isEmpty(state.leftChunk)) {
3131
- return pull(PullLeft$1(rightChunk), pullLeft, pullRight);
2760
+ return pull(PullLeft(rightChunk), pullLeft, pullRight);
3132
2761
  }
3133
2762
  return succeed$1(succeed$4(zip(state.leftChunk, rightChunk, options.onBoth)));
3134
2763
  }
@@ -3142,20 +2771,20 @@ const zipAllWith = /*#__PURE__*/dual(2, (self, options) => {
3142
2771
  case "Left":
3143
2772
  {
3144
2773
  if (isEmpty(either.left)) {
3145
- return [output, PullBoth$1];
2774
+ return [output, PullBoth];
3146
2775
  }
3147
- return [output, PullRight$1(either.left)];
2776
+ return [output, PullRight(either.left)];
3148
2777
  }
3149
2778
  case "Right":
3150
2779
  {
3151
2780
  if (isEmpty(either.right)) {
3152
- return [output, PullBoth$1];
2781
+ return [output, PullBoth];
3153
2782
  }
3154
- return [output, PullLeft$1(either.right)];
2783
+ return [output, PullLeft(either.right)];
3155
2784
  }
3156
2785
  }
3157
2786
  };
3158
- return combineChunks(self, options.other, PullBoth$1, pull);
2787
+ return combineChunks(self, options.other, PullBoth, pull);
3159
2788
  });
3160
2789
 
3161
2790
  /** @internal */
@@ -3163,13 +2792,13 @@ const zipLatest = /*#__PURE__*/dual(2, (self, that) => pipe(self, zipLatestWith(
3163
2792
 
3164
2793
  /** @internal */
3165
2794
  const zipLatestWith = /*#__PURE__*/dual(3, (self, that, f) => {
3166
- const pullNonEmpty = pull => pipe(pull, flatMap$1(chunk => isEmpty(chunk) ? pullNonEmpty(pull) : succeed$1(chunk)));
3167
- return pipe(toPull(self), map$2(pullNonEmpty), zip$1(pipe(toPull(that), map$2(pullNonEmpty))), flatMap$1(([left, right]) => pipe(fromEffectOption(raceWith(left, right, {
2795
+ const pullNonEmpty = pull => pipe(pull, flatMap$2(chunk => isEmpty(chunk) ? pullNonEmpty(pull) : succeed$1(chunk)));
2796
+ return pipe(toPull(self), map$1(pullNonEmpty), zip$1(pipe(toPull(that), map$1(pullNonEmpty))), flatMap$2(([left, right]) => pipe(fromEffectOption(raceWith(left, right, {
3168
2797
  onSelfDone: (leftDone, rightFiber) => pipe(suspend$1(() => leftDone), zipWith$1(join(rightFiber), (l, r) => [l, r, true])),
3169
2798
  onOtherDone: (rightDone, leftFiber) => pipe(suspend$1(() => rightDone), zipWith$1(join(leftFiber), (l, r) => [r, l, false]))
3170
- })), flatMap(([l, r, leftFirst]) => pipe(fromEffect(make$3([unsafeLast(l), unsafeLast(r)])), flatMap(latest => pipe(fromChunk(leftFirst ? pipe(r, map$3(a2 => f(unsafeLast(l), a2))) : pipe(l, map$3(a => f(a, unsafeLast(r))))), concat(pipe(repeatEffectOption(left), mergeEither(repeatEffectOption(right)), mapEffectSequential(match({
3171
- onLeft: leftChunk => pipe(modify(latest, ([_, rightLatest]) => [pipe(leftChunk, map$3(a => f(a, rightLatest))), [unsafeLast(leftChunk), rightLatest]])),
3172
- onRight: rightChunk => pipe(modify(latest, ([leftLatest, _]) => [pipe(rightChunk, map$3(a2 => f(leftLatest, a2))), [leftLatest, unsafeLast(rightChunk)]]))
2799
+ })), flatMap(([l, r, leftFirst]) => pipe(fromEffect(make$2([unsafeLast(l), unsafeLast(r)])), flatMap(latest => pipe(fromChunk(leftFirst ? pipe(r, map$2(a2 => f(unsafeLast(l), a2))) : pipe(l, map$2(a => f(a, unsafeLast(r))))), concat(pipe(repeatEffectOption(left), mergeEither(repeatEffectOption(right)), mapEffectSequential(match({
2800
+ onLeft: leftChunk => pipe(modify(latest, ([_, rightLatest]) => [pipe(leftChunk, map$2(a => f(a, rightLatest))), [unsafeLast(leftChunk), rightLatest]])),
2801
+ onRight: rightChunk => pipe(modify(latest, ([leftLatest, _]) => [pipe(rightChunk, map$2(a2 => f(leftLatest, a2))), [leftLatest, unsafeLast(rightChunk)]]))
3173
2802
  })), flatMap(fromChunk))))))), toPull)), fromPull);
3174
2803
  });
3175
2804
 
@@ -3196,54 +2825,54 @@ const zipWith = /*#__PURE__*/dual(3, (self, that, f) => pipe(self, zipWithChunks
3196
2825
  const zipWithChunks = /*#__PURE__*/dual(3, (self, that, f) => {
3197
2826
  const pull = (state, pullLeft, pullRight) => {
3198
2827
  switch (state._tag) {
3199
- case OP_PULL_BOTH:
2828
+ case OP_PULL_BOTH$1:
3200
2829
  {
3201
2830
  return pipe(unsome(pullLeft), zip$1(unsome(pullRight), {
3202
2831
  concurrent: true
3203
2832
  }), matchEffect({
3204
- onFailure: error => succeed$1(fail$3(some$1(error))),
2833
+ onFailure: error => succeed$1(fail$2(some$1(error))),
3205
2834
  onSuccess: ([leftOption, rightOption]) => {
3206
2835
  if (isSome(leftOption) && isSome(rightOption)) {
3207
2836
  if (isEmpty(leftOption.value) && isEmpty(rightOption.value)) {
3208
- return pull(PullBoth, pullLeft, pullRight);
2837
+ return pull(PullBoth$1, pullLeft, pullRight);
3209
2838
  }
3210
2839
  if (isEmpty(leftOption.value)) {
3211
- return pull(PullLeft(rightOption.value), pullLeft, pullRight);
2840
+ return pull(PullLeft$1(rightOption.value), pullLeft, pullRight);
3212
2841
  }
3213
2842
  if (isEmpty(rightOption.value)) {
3214
- return pull(PullRight(leftOption.value), pullLeft, pullRight);
2843
+ return pull(PullRight$1(leftOption.value), pullLeft, pullRight);
3215
2844
  }
3216
2845
  return succeed$1(succeed$4(zip(leftOption.value, rightOption.value)));
3217
2846
  }
3218
- return succeed$1(fail$3(none()));
2847
+ return succeed$1(fail$2(none()));
3219
2848
  }
3220
2849
  }));
3221
2850
  }
3222
- case OP_PULL_LEFT:
2851
+ case OP_PULL_LEFT$1:
3223
2852
  {
3224
2853
  return matchEffect(pullLeft, {
3225
- onFailure: error => succeed$1(fail$3(error)),
2854
+ onFailure: error => succeed$1(fail$2(error)),
3226
2855
  onSuccess: leftChunk => {
3227
2856
  if (isEmpty(leftChunk)) {
3228
- return pull(PullLeft(state.rightChunk), pullLeft, pullRight);
2857
+ return pull(PullLeft$1(state.rightChunk), pullLeft, pullRight);
3229
2858
  }
3230
2859
  if (isEmpty(state.rightChunk)) {
3231
- return pull(PullRight(leftChunk), pullLeft, pullRight);
2860
+ return pull(PullRight$1(leftChunk), pullLeft, pullRight);
3232
2861
  }
3233
2862
  return succeed$1(succeed$4(zip(leftChunk, state.rightChunk)));
3234
2863
  }
3235
2864
  });
3236
2865
  }
3237
- case OP_PULL_RIGHT:
2866
+ case OP_PULL_RIGHT$1:
3238
2867
  {
3239
2868
  return matchEffect(pullRight, {
3240
- onFailure: error => succeed$1(fail$3(error)),
2869
+ onFailure: error => succeed$1(fail$2(error)),
3241
2870
  onSuccess: rightChunk => {
3242
2871
  if (isEmpty(rightChunk)) {
3243
- return pull(PullRight(state.leftChunk), pullLeft, pullRight);
2872
+ return pull(PullRight$1(state.leftChunk), pullLeft, pullRight);
3244
2873
  }
3245
2874
  if (isEmpty(state.leftChunk)) {
3246
- return pull(PullLeft(rightChunk), pullLeft, pullRight);
2875
+ return pull(PullLeft$1(rightChunk), pullLeft, pullRight);
3247
2876
  }
3248
2877
  return succeed$1(succeed$4(zip(state.leftChunk, rightChunk)));
3249
2878
  }
@@ -3257,20 +2886,20 @@ const zipWithChunks = /*#__PURE__*/dual(3, (self, that, f) => {
3257
2886
  case "Left":
3258
2887
  {
3259
2888
  if (isEmpty(either.left)) {
3260
- return [output, PullBoth];
2889
+ return [output, PullBoth$1];
3261
2890
  }
3262
- return [output, PullRight(either.left)];
2891
+ return [output, PullRight$1(either.left)];
3263
2892
  }
3264
2893
  case "Right":
3265
2894
  {
3266
2895
  if (isEmpty(either.right)) {
3267
- return [output, PullBoth];
2896
+ return [output, PullBoth$1];
3268
2897
  }
3269
- return [output, PullLeft(either.right)];
2898
+ return [output, PullLeft$1(either.right)];
3270
2899
  }
3271
2900
  }
3272
2901
  };
3273
- return pipe(self, combineChunks(that, PullBoth, pull));
2902
+ return pipe(self, combineChunks(that, PullBoth$1, pull));
3274
2903
  });
3275
2904
 
3276
2905
  /** @internal */
@@ -3282,9 +2911,9 @@ const zipWithNext = self => {
3282
2911
  onInput: input => {
3283
2912
  const [newLast, chunk] = mapAccum$1(input, last, (prev, curr) => [some$1(curr), pipe(prev, map$4(a => [a, curr]))]);
3284
2913
  const output = filterMap$1(chunk, option => isSome(option) ? some$1([option.value[0], some$1(option.value[1])]) : none());
3285
- return flatMap$2(write(output), () => process(newLast));
2914
+ return flatMap$1(write(output), () => process(newLast));
3286
2915
  },
3287
- onFailure: failCause$3,
2916
+ onFailure: failCause$1,
3288
2917
  onDone: () => match$2(last, {
3289
2918
  onNone: () => unit$1,
3290
2919
  onSome: value => zipRight$2(write(of([value, none()])), unit$1)
@@ -3352,4 +2981,4 @@ const encodeText = self => suspend(() => {
3352
2981
  return map(self, s => encoder.encode(s));
3353
2982
  });
3354
2983
 
3355
- export { empty as $, chunksWith as A, combine as B, combineChunks as C, DefaultChunkSize as D, concat as E, concatAll as F, cross as G, crossLeft as H, crossRight as I, crossWith as J, debounce as K, die as L, dieSync as M, dieMessage as N, distributedWith as O, distributedWithDynamic as P, drain as Q, drainFork as R, StreamTypeId as S, drop as T, dropRight as U, dropUntil as V, dropUntilEffect as W, dropWhile as X, dropWhileEffect as Y, either as Z, _async as _, acquireRelease as a, mapAccum as a$, ensuring as a0, ensuringWith as a1, context as a2, contextWith as a3, contextWithEffect as a4, contextWithStream as a5, execute as a6, fail as a7, failSync as a8, failCause as a9, fromEffectOption as aA, fromHub as aB, fromIterable as aC, fromIterableEffect as aD, fromIteratorSucceed as aE, fromPull as aF, fromQueue as aG, fromReadableStream as aH, fromReadableStreamByob as aI, fromSchedule as aJ, groupAdjacentBy as aK, grouped as aL, groupedWithin as aM, haltAfter as aN, haltWhen as aO, haltWhenDeferred as aP, identityStream as aQ, interleave as aR, interleaveWith as aS, intersperse as aT, intersperseAffixes as aU, interruptAfter as aV, interruptWhen as aW, interruptWhenDeferred as aX, iterate as aY, make as aZ, map as a_, failCauseSync as aa, filter as ab, filterEffect as ac, filterMap as ad, filterMapEffect as ae, filterMapWhile as af, filterMapWhileEffect as ag, finalizer as ah, find as ai, findEffect as aj, flatMap as ak, flatten as al, flattenChunks as am, flattenEffect as an, flattenExitOption as ao, flattenIterables as ap, flattenTake as aq, forever as ar, fromAsyncIterable as as, fromChannel as at, toChannel as au, fromChunk as av, fromChunkHub as aw, fromChunkQueue as ax, fromChunks as ay, fromEffect as az, aggregate as b, run as b$, mapAccumEffect as b0, mapBoth as b1, mapChunks as b2, mapChunksEffect as b3, mapConcat as b4, mapConcatChunk as b5, mapConcatChunkEffect as b6, mapConcatEffect as b7, mapError as b8, mapErrorCause as b9, pipeThrough as bA, pipeThroughChannel as bB, pipeThroughChannelOrFail as bC, prepend as bD, provideContext as bE, provideLayer as bF, provideService as bG, provideServiceEffect as bH, provideServiceStream as bI, mapInputContext as bJ, provideSomeLayer as bK, range as bL, rechunk as bM, refineOrDie as bN, refineOrDieWith as bO, repeat as bP, repeatEffect as bQ, repeatEffectChunk as bR, repeatEffectChunkOption as bS, repeatEffectOption as bT, repeatEffectWithSchedule as bU, repeatEither as bV, repeatElements as bW, repeatElementsWith as bX, repeatValue as bY, repeatWith as bZ, retry as b_, merge as ba, mergeAll as bb, mergeWith as bc, mergeEither as bd, mergeLeft as be, mergeRight as bf, mkString as bg, never as bh, onError as bi, onDone as bj, orDie as bk, orDieWith as bl, orElse as bm, orElseEither as bn, orElseFail as bo, orElseIfEmpty as bp, orElseIfEmptyChunk as bq, orElseIfEmptyStream as br, orElseSucceed as bs, paginate as bt, paginateChunk as bu, paginateChunkEffect as bv, paginateEffect as bw, partition as bx, partitionEither as by, peel as bz, aggregateWithin as c, toQueue as c$, runCollect as c0, runCount as c1, runDrain as c2, runFold as c3, runFoldEffect as c4, runFoldScoped as c5, runFoldScopedEffect as c6, runFoldWhile as c7, runFoldWhileEffect as c8, runFoldWhileScoped as c9, someOrElse as cA, someOrFail as cB, split as cC, splitOnChunk as cD, splitLines as cE, succeed as cF, sync as cG, suspend as cH, take as cI, takeRight as cJ, takeUntil as cK, takeUntilEffect as cL, takeWhile as cM, tap as cN, tapBoth as cO, tapError as cP, tapErrorCause as cQ, tapSink as cR, throttle as cS, throttleEffect as cT, tick as cU, timeout as cV, timeoutFail as cW, timeoutFailCause as cX, timeoutTo as cY, toHub as cZ, toPull as c_, runFoldWhileScopedEffect as ca, runForEach as cb, runForEachChunk as cc, runForEachChunkScoped as cd, runForEachScoped as ce, runForEachWhile as cf, runForEachWhileScoped as cg, runHead as ch, runIntoHub as ci, runIntoHubScoped as cj, runIntoQueue as ck, runIntoQueueElementsScoped as cl, runIntoQueueScoped as cm, runLast as cn, runScoped as co, runSum as cp, scan as cq, scanEffect as cr, scanReduce as cs, scanReduceEffect as ct, schedule as cu, scheduleWith as cv, scoped as cw, sliding as cx, slidingSize as cy, some as cz, aggregateWithinEither as d, toQueueOfElements as d0, toReadableStream as d1, transduce as d2, unfold as d3, unfoldChunk as d4, unfoldChunkEffect as d5, unfoldEffect as d6, unit as d7, unwrap as d8, unwrapScoped as d9, zipWithIndex as dA, Do as dB, bind as dC, bindTo as dD, let_ as dE, decodeText as dF, encodeText as dG, mapEffectSequential as dH, distributedWithDynamicCallback as dI, matchConcurrency as dJ, mapEffectPar as dK, channelToStream as dL, updateService as da, when as db, whenCase as dc, whenCaseEffect as dd, whenEffect as de, withSpan as df, zip as dg, zipFlatten as dh, zipAll as di, zipAllLeft as dj, zipAllRight as dk, zipAllSortedByKey as dl, zipAllSortedByKeyLeft as dm, zipAllSortedByKeyRight as dn, zipAllSortedByKeyWith as dp, zipAllWith as dq, zipLatest as dr, zipLatestWith as ds, zipLeft as dt, zipRight as du, zipWith as dv, zipWithChunks as dw, zipWithNext as dx, zipWithPrevious as dy, zipWithPreviousAndNext as dz, as as e, asyncEffect as f, asyncInterrupt as g, asyncOption as h, asyncScoped as i, branchAfter as j, broadcast as k, broadcastDynamic as l, broadcastedQueues as m, broadcastedQueuesDynamic as n, buffer as o, bufferChunks as p, catchAll as q, catchAllCause as r, catchSome as s, catchTag as t, catchTags as u, catchSomeCause as v, changes as w, changesWith as x, changesWithEffect as y, chunks as z };
2984
+ export { DefaultChunkSize, Do, StreamImpl, StreamTypeId, _async, acquireRelease, aggregate, aggregateWithin, aggregateWithinEither, as, asyncEffect, asyncInterrupt, asyncOption, asyncScoped, bind, bindTo, branchAfter, broadcast, broadcastDynamic, broadcastedQueues, broadcastedQueuesDynamic, buffer, bufferChunks, catchAll, catchAllCause, catchSome, catchSomeCause, catchTag, catchTags, changes, changesWith, changesWithEffect, channelToStream, chunks, chunksWith, combine, combineChunks, concat, concatAll, context, contextWith, contextWithEffect, contextWithStream, cross, crossLeft, crossRight, crossWith, debounce, decodeText, die, dieMessage, dieSync, distributedWith, distributedWithDynamic, distributedWithDynamicCallback, drain, drainFork, drop, dropRight, dropUntil, dropUntilEffect, dropWhile, dropWhileEffect, either, empty, encodeText, ensuring, ensuringWith, execute, fail, failCause, failCauseSync, failSync, filter, filterEffect, filterMap, filterMapEffect, filterMapWhile, filterMapWhileEffect, finalizer, find, findEffect, flatMap, flatten, flattenChunks, flattenEffect, flattenExitOption, flattenIterables, flattenTake, forever, fromAsyncIterable, fromChannel, fromChunk, fromChunkHub, fromChunkQueue, fromChunks, fromEffect, fromEffectOption, fromHub, fromIterable, fromIterableEffect, fromIteratorSucceed, fromPull, fromQueue, fromReadableStream, fromReadableStreamByob, fromSchedule, groupAdjacentBy, grouped, groupedWithin, haltAfter, haltWhen, haltWhenDeferred, identityStream, interleave, interleaveWith, interruptAfter, interruptWhen, interruptWhenDeferred, intersperse, intersperseAffixes, isStream, iterate, let_, make, map, mapAccum, mapAccumEffect, mapBoth, mapChunks, mapChunksEffect, mapConcat, mapConcatChunk, mapConcatChunkEffect, mapConcatEffect, mapEffectPar, mapEffectSequential, mapError, mapErrorCause, mapInputContext, matchConcurrency, merge, mergeAll, mergeEither, mergeLeft, mergeRight, mergeWith, mkString, never, onDone, onError, orDie, orDieWith, orElse, orElseEither, orElseFail, orElseIfEmpty, orElseIfEmptyChunk, orElseIfEmptyStream, orElseSucceed, paginate, paginateChunk, paginateChunkEffect, paginateEffect, partition, partitionEither, peel, pipeThrough, pipeThroughChannel, pipeThroughChannelOrFail, prepend, provideContext, provideLayer, provideService, provideServiceEffect, provideServiceStream, provideSomeLayer, range, rechunk, refineOrDie, refineOrDieWith, repeat, repeatEffect, repeatEffectChunk, repeatEffectChunkOption, repeatEffectOption, repeatEffectWithSchedule, repeatEither, repeatElements, repeatElementsWith, repeatValue, repeatWith, repeatWithSchedule, retry, run, runCollect, runCount, runDrain, runFold, runFoldEffect, runFoldScoped, runFoldScopedEffect, runFoldWhile, runFoldWhileEffect, runFoldWhileScoped, runFoldWhileScopedEffect, runForEach, runForEachChunk, runForEachChunkScoped, runForEachScoped, runForEachWhile, runForEachWhileScoped, runHead, runIntoHub, runIntoHubScoped, runIntoQueue, runIntoQueueElementsScoped, runIntoQueueScoped, runLast, runScoped, runSum, scan, scanEffect, scanReduce, scanReduceEffect, schedule, scheduleWith, scoped, sliding, slidingSize, some, someOrElse, someOrFail, split, splitLines, splitOnChunk, succeed, suspend, sync, take, takeRight, takeUntil, takeUntilEffect, takeWhile, tap, tapBoth, tapError, tapErrorCause, tapSink, throttle, throttleEffect, tick, timeout, timeoutFail, timeoutFailCause, timeoutTo, toChannel, toHub, toPull, toQueue, toQueueOfElements, toReadableStream, transduce, unfold, unfoldChunk, unfoldChunkEffect, unfoldEffect, unit, unwrap, unwrapScoped, updateService, when, whenCase, whenCaseEffect, whenEffect, withSpan, zip, zipAll, zipAllLeft, zipAllRight, zipAllSortedByKey, zipAllSortedByKeyLeft, zipAllSortedByKeyRight, zipAllSortedByKeyWith, zipAllWith, zipFlatten, zipLatest, zipLatestWith, zipLeft, zipRight, zipWith, zipWithChunks, zipWithIndex, zipWithNext, zipWithPrevious, zipWithPreviousAndNext };