@fncts/io 0.0.11 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1041) hide show
  1. package/Cached/api.d.ts +3 -4
  2. package/Channel/UpstreamPullStrategy/definition.d.ts +1 -1
  3. package/Channel/api/interruptWhen.d.ts +1 -1
  4. package/Channel/api/mapOutIOC.d.ts +2 -2
  5. package/Channel/api/mergeAll.d.ts +1 -1
  6. package/Channel/api/mergeAllUnboundedWith.d.ts +1 -1
  7. package/Channel/api/mergeAllWith.d.ts +3 -3
  8. package/Channel/api/mergeMap.d.ts +1 -1
  9. package/Channel/api/mergeWith.d.ts +3 -3
  10. package/Channel/api/runScoped.d.ts +1 -2
  11. package/Channel/api/toPull.d.ts +2 -3
  12. package/Channel/api/zipC.d.ts +3 -3
  13. package/Channel/api.d.ts +56 -57
  14. package/Channel/core-api.d.ts +12 -12
  15. package/Channel/definition.d.ts +36 -22
  16. package/Channel/internal/AsyncInputConsumer.d.ts +1 -1
  17. package/Channel/internal/AsyncInputProducer.d.ts +1 -1
  18. package/Channel/internal/ChannelExecutor.d.ts +5 -5
  19. package/Channel/internal/ChannelState.d.ts +1 -1
  20. package/Channel/internal/MergeDecision.d.ts +2 -2
  21. package/Channel/internal/MergeState.d.ts +2 -2
  22. package/Channel/internal/SingleProducerAsyncInput.d.ts +5 -5
  23. package/Clock/api.d.ts +3 -3
  24. package/Clock/definition.d.ts +2 -2
  25. package/Clock/live.d.ts +3 -3
  26. package/Console/api.d.ts +1 -1
  27. package/Fiber/FiberContext.d.ts +12 -12
  28. package/Fiber/api/await.d.ts +2 -2
  29. package/Fiber/api/awaitAll.d.ts +2 -2
  30. package/Fiber/api/children.d.ts +1 -1
  31. package/Fiber/api/collectAll.d.ts +3 -3
  32. package/Fiber/api/evalOn.d.ts +1 -1
  33. package/Fiber/api/evalOnIO.d.ts +1 -1
  34. package/Fiber/api/fromIO.d.ts +1 -1
  35. package/Fiber/api/id.d.ts +2 -2
  36. package/Fiber/api/inheritRefs.d.ts +1 -1
  37. package/Fiber/api/interrupt.d.ts +2 -2
  38. package/Fiber/api/interruptAll.d.ts +3 -3
  39. package/Fiber/api/interruptAs.d.ts +3 -3
  40. package/Fiber/api/join.d.ts +1 -1
  41. package/Fiber/api/joinAll.d.ts +1 -1
  42. package/Fiber/api/mapFiber.d.ts +1 -1
  43. package/Fiber/api/mapIO.d.ts +2 -2
  44. package/Fiber/api/poll.d.ts +3 -3
  45. package/Fiber/api/zipWith.d.ts +1 -1
  46. package/Fiber/constructors.d.ts +8 -8
  47. package/Fiber/definition.d.ts +4 -4
  48. package/FiberRef/api/locallyScoped.d.ts +1 -2
  49. package/FiberRef/api/locallyScopedWith.d.ts +1 -2
  50. package/FiberRef/api.d.ts +8 -8
  51. package/FiberRef/constructors.d.ts +2 -3
  52. package/FiberRef/unsafe.d.ts +11 -5
  53. package/FiberRefs/api.d.ts +4 -4
  54. package/FiberRefs/definition.d.ts +3 -3
  55. package/FiberRefs/join.d.ts +2 -2
  56. package/FiberScope/constructors.d.ts +1 -1
  57. package/FiberScope/definition.d.ts +1 -1
  58. package/FiberState/api.d.ts +1 -1
  59. package/FiberState/constructors.d.ts +3 -3
  60. package/FiberState/definition.d.ts +3 -3
  61. package/FiberStatus/constructors.d.ts +1 -1
  62. package/FiberStatus/definition.d.ts +1 -1
  63. package/Future/api.d.ts +18 -18
  64. package/Future/constructors.d.ts +3 -3
  65. package/Future/definition.d.ts +2 -2
  66. package/Hub/api.d.ts +22 -23
  67. package/Hub/definition.d.ts +6 -7
  68. package/Hub/internal.d.ts +1 -2
  69. package/IO/api/acquireRelease.d.ts +2 -3
  70. package/IO/api/acquireReleaseExit.d.ts +3 -4
  71. package/IO/api/acquireReleaseInterruptible.d.ts +2 -3
  72. package/IO/api/acquireReleaseInterruptibleExit.d.ts +3 -4
  73. package/IO/api/addFinalizer.d.ts +2 -3
  74. package/IO/api/addFinalizerExit.d.ts +2 -3
  75. package/IO/api/asyncIO.d.ts +1 -1
  76. package/IO/api/bracket.d.ts +2 -2
  77. package/IO/api/bracketExit.d.ts +3 -3
  78. package/IO/api/clockWith.d.ts +1 -1
  79. package/IO/api/concurrency.d.ts +4 -4
  80. package/IO/api/concurrentFinalizers.d.ts +1 -2
  81. package/IO/api/consoleWith.d.ts +2 -2
  82. package/IO/api/core-scope.d.ts +4 -4
  83. package/IO/api/ensuringChildren.d.ts +1 -1
  84. package/IO/api/environment.d.ts +10 -12
  85. package/IO/api/foreachC.d.ts +2 -2
  86. package/IO/api/foreachExec.d.ts +1 -1
  87. package/IO/api/forkScoped.d.ts +1 -2
  88. package/IO/api/fulfill.d.ts +1 -1
  89. package/IO/api/interrupt.d.ts +8 -8
  90. package/IO/api/onExit.d.ts +2 -2
  91. package/IO/api/onTermination.d.ts +4 -4
  92. package/IO/api/provideLayer.d.ts +1 -1
  93. package/IO/api/provideSomeLayer.d.ts +1 -1
  94. package/IO/api/race.d.ts +1 -1
  95. package/IO/api/raceFirst.d.ts +1 -1
  96. package/IO/api/randomWith.d.ts +2 -2
  97. package/IO/api/repeat.d.ts +6 -6
  98. package/IO/api/retry.d.ts +5 -5
  99. package/IO/api/schedule.d.ts +3 -3
  100. package/IO/api/scope.d.ts +1 -2
  101. package/IO/api/scopeWith.d.ts +1 -2
  102. package/IO/api/scoped.d.ts +3 -4
  103. package/IO/api/sequenceT.d.ts +4 -4
  104. package/IO/api/sleep.d.ts +2 -2
  105. package/IO/api/stateful.d.ts +3 -4
  106. package/IO/api/timeout.d.ts +4 -4
  107. package/IO/api/withEarlyRelease.d.ts +1 -2
  108. package/IO/api/withFinalizer.d.ts +1 -2
  109. package/IO/api/withFinalizerExit.d.ts +2 -3
  110. package/IO/api/withRuntimeConfig.d.ts +2 -2
  111. package/IO/api/zipC.d.ts +4 -4
  112. package/IO/api.d.ts +94 -94
  113. package/IO/definition.d.ts +44 -34
  114. package/IO/runtime.d.ts +29 -16
  115. package/IOEnv/definition.d.ts +2 -3
  116. package/IOEnv/live.d.ts +1 -1
  117. package/IOEnv/services.d.ts +1 -1
  118. package/IOSpec.d.ts +7 -8
  119. package/Layer/MemoMap.d.ts +8 -9
  120. package/Layer/api.d.ts +41 -43
  121. package/Layer/definition.d.ts +22 -16
  122. package/Logger/api.d.ts +2 -2
  123. package/Logger/definition.d.ts +4 -4
  124. package/Queue/api/dimapIO.d.ts +6 -6
  125. package/Queue/api/filterInputIO.d.ts +6 -6
  126. package/Queue/api/filterOutputIO.d.ts +8 -8
  127. package/Queue/api/operations.d.ts +10 -10
  128. package/Queue/api/poll.d.ts +2 -2
  129. package/Queue/api/takeBetween.d.ts +1 -1
  130. package/Queue/api/zipWithIO.d.ts +9 -9
  131. package/Queue/constructors.d.ts +4 -4
  132. package/Queue/definition.d.ts +10 -10
  133. package/Queue/internal.d.ts +1 -1
  134. package/Queue/strategy.d.ts +10 -10
  135. package/Random/api.d.ts +8 -8
  136. package/Random/definition.d.ts +5 -5
  137. package/Random/live.d.ts +5 -5
  138. package/Ref/Atomic/Atomic.d.ts +4 -4
  139. package/Ref/Atomic/api.d.ts +11 -11
  140. package/Ref/Derived.d.ts +4 -4
  141. package/Ref/DerivedAll.d.ts +4 -4
  142. package/Ref/Synchronized/api.d.ts +16 -16
  143. package/Ref/Synchronized/constructors.d.ts +2 -2
  144. package/Ref/Synchronized/definition.d.ts +3 -3
  145. package/Ref/api/collect.d.ts +2 -2
  146. package/Ref/api/dimap.d.ts +8 -8
  147. package/Ref/api/filter.d.ts +3 -3
  148. package/Ref/api/get.d.ts +1 -1
  149. package/Ref/api/match.d.ts +1 -1
  150. package/Ref/api/matchAll.d.ts +1 -1
  151. package/Ref/api/modify.d.ts +10 -10
  152. package/Ref/api/set.d.ts +1 -1
  153. package/Ref/constructors.d.ts +3 -3
  154. package/Ref/definition.d.ts +15 -15
  155. package/RuntimeConfig.d.ts +2 -2
  156. package/STM/api/core-api.d.ts +5 -5
  157. package/STM/api/core-constructors.d.ts +9 -9
  158. package/STM/api.d.ts +60 -72
  159. package/STM/definition.d.ts +10 -9
  160. package/STM/driver.d.ts +2 -2
  161. package/STM/internal/CommitState.d.ts +1 -1
  162. package/STM/internal/Journal.d.ts +7 -6
  163. package/STM/internal/TryCommit.d.ts +1 -1
  164. package/Schedule/Decision.d.ts +10 -4
  165. package/Schedule/Driver.d.ts +4 -4
  166. package/Schedule/api/driver.d.ts +1 -1
  167. package/Schedule/api.d.ts +85 -73
  168. package/Schedule/definition.d.ts +1 -1
  169. package/Scope/Finalizer/definition.d.ts +3 -3
  170. package/Scope/ReleaseMap/api/releaseAll.d.ts +2 -2
  171. package/Scope/ReleaseMap/api.d.ts +7 -7
  172. package/Scope/ReleaseMap/definition.d.ts +3 -3
  173. package/Scope/api.d.ts +9 -10
  174. package/Scope/definition.d.ts +2 -2
  175. package/ScopedRef/api.d.ts +2 -3
  176. package/ScopedRef/definition.d.ts +1 -2
  177. package/Sink/api.d.ts +73 -74
  178. package/State/api.d.ts +2 -3
  179. package/Stream/api/zipAllWith.d.ts +3 -3
  180. package/Stream/api/zipWith.d.ts +1 -1
  181. package/Stream/api/zipWithChunks.d.ts +4 -4
  182. package/Stream/api.d.ts +171 -166
  183. package/Stream/definition.d.ts +3 -3
  184. package/Stream/internal/Handoff.d.ts +2 -2
  185. package/Stream/internal/Pull.d.ts +2 -2
  186. package/Stream/internal/Take.d.ts +4 -4
  187. package/Stream/internal/util.d.ts +1 -1
  188. package/Supervisor/api.d.ts +3 -3
  189. package/Supervisor/constructors.d.ts +6 -6
  190. package/Supervisor/definition.d.ts +3 -3
  191. package/TExit/constructors.d.ts +1 -1
  192. package/TExit/definition.d.ts +1 -1
  193. package/TFuture/api.d.ts +7 -7
  194. package/TFuture/constructors.d.ts +4 -4
  195. package/TFuture/definition.d.ts +3 -3
  196. package/TReentrantLock/api.d.ts +18 -19
  197. package/TReentrantLock/definition.d.ts +2 -2
  198. package/TRef/api.d.ts +15 -15
  199. package/TRef/constructors.d.ts +5 -5
  200. package/TRef/definition.d.ts +2 -2
  201. package/TSemaphore/api.d.ts +7 -7
  202. package/TSemaphore/constructors.d.ts +1 -1
  203. package/TSemaphore/definition.d.ts +1 -1
  204. package/_cjs/Cached/api.cjs +5 -5
  205. package/_cjs/Cached/api.cjs.map +1 -1
  206. package/_cjs/Channel/api/interruptWhen.cjs +1 -1
  207. package/_cjs/Channel/api/interruptWhen.cjs.map +1 -1
  208. package/_cjs/Channel/api/mapOutIOC.cjs +2 -2
  209. package/_cjs/Channel/api/mapOutIOC.cjs.map +1 -1
  210. package/_cjs/Channel/api/mergeAllWith.cjs +11 -11
  211. package/_cjs/Channel/api/mergeAllWith.cjs.map +1 -1
  212. package/_cjs/Channel/api/mergeWith.cjs +5 -5
  213. package/_cjs/Channel/api/mergeWith.cjs.map +1 -1
  214. package/_cjs/Channel/api/run.cjs +3 -1
  215. package/_cjs/Channel/api/run.cjs.map +1 -1
  216. package/_cjs/Channel/api.cjs +7 -7
  217. package/_cjs/Channel/api.cjs.map +1 -1
  218. package/_cjs/Channel/core-api.cjs.map +1 -1
  219. package/_cjs/Channel/definition.cjs.map +1 -1
  220. package/_cjs/Channel/internal/ChannelExecutor.cjs +6 -6
  221. package/_cjs/Channel/internal/ChannelExecutor.cjs.map +1 -1
  222. package/_cjs/Channel/internal/ChannelState.cjs +2 -1
  223. package/_cjs/Channel/internal/ChannelState.cjs.map +1 -1
  224. package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs +16 -16
  225. package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs.map +1 -1
  226. package/_cjs/Clock/live.cjs.map +1 -1
  227. package/_cjs/Console/api.cjs +5 -3
  228. package/_cjs/Console/api.cjs.map +1 -1
  229. package/_cjs/Fiber/FiberContext.cjs +8 -10
  230. package/_cjs/Fiber/FiberContext.cjs.map +1 -1
  231. package/_cjs/Fiber/api/await.cjs +1 -1
  232. package/_cjs/Fiber/api/await.cjs.map +1 -1
  233. package/_cjs/Fiber/api/awaitAll.cjs +2 -4
  234. package/_cjs/Fiber/api/awaitAll.cjs.map +1 -1
  235. package/_cjs/Fiber/api/children.cjs +1 -1
  236. package/_cjs/Fiber/api/children.cjs.map +1 -1
  237. package/_cjs/Fiber/api/collectAll.cjs +2 -4
  238. package/_cjs/Fiber/api/collectAll.cjs.map +1 -1
  239. package/_cjs/Fiber/api/evalOn.cjs +1 -1
  240. package/_cjs/Fiber/api/evalOn.cjs.map +1 -1
  241. package/_cjs/Fiber/api/evalOnIO.cjs +2 -4
  242. package/_cjs/Fiber/api/evalOnIO.cjs.map +1 -1
  243. package/_cjs/Fiber/api/fromIO.cjs +2 -4
  244. package/_cjs/Fiber/api/fromIO.cjs.map +1 -1
  245. package/_cjs/Fiber/api/id.cjs +1 -1
  246. package/_cjs/Fiber/api/id.cjs.map +1 -1
  247. package/_cjs/Fiber/api/inheritRefs.cjs +1 -1
  248. package/_cjs/Fiber/api/inheritRefs.cjs.map +1 -1
  249. package/_cjs/Fiber/api/interrupt.cjs +2 -4
  250. package/_cjs/Fiber/api/interrupt.cjs.map +1 -1
  251. package/_cjs/Fiber/api/interruptAll.cjs +4 -5
  252. package/_cjs/Fiber/api/interruptAll.cjs.map +1 -1
  253. package/_cjs/Fiber/api/interruptAs.cjs +1 -1
  254. package/_cjs/Fiber/api/interruptAs.cjs.map +1 -1
  255. package/_cjs/Fiber/api/interruptFork.cjs +1 -1
  256. package/_cjs/Fiber/api/interruptFork.cjs.map +1 -1
  257. package/_cjs/Fiber/api/join.cjs +2 -4
  258. package/_cjs/Fiber/api/join.cjs.map +1 -1
  259. package/_cjs/Fiber/api/joinAll.cjs +2 -4
  260. package/_cjs/Fiber/api/joinAll.cjs.map +1 -1
  261. package/_cjs/Fiber/api/mapFiber.cjs +2 -4
  262. package/_cjs/Fiber/api/mapFiber.cjs.map +1 -1
  263. package/_cjs/Fiber/api/mapIO.cjs +4 -5
  264. package/_cjs/Fiber/api/mapIO.cjs.map +1 -1
  265. package/_cjs/Fiber/api/poll.cjs +1 -1
  266. package/_cjs/Fiber/api/poll.cjs.map +1 -1
  267. package/_cjs/Fiber/api/zipWith.cjs +2 -4
  268. package/_cjs/Fiber/api/zipWith.cjs.map +1 -1
  269. package/_cjs/Fiber/constructors.cjs +10 -11
  270. package/_cjs/Fiber/constructors.cjs.map +1 -1
  271. package/_cjs/FiberRef/api/locallyScoped.cjs +2 -4
  272. package/_cjs/FiberRef/api/locallyScoped.cjs.map +1 -1
  273. package/_cjs/FiberRef/api/locallyScopedWith.cjs +2 -4
  274. package/_cjs/FiberRef/api/locallyScopedWith.cjs.map +1 -1
  275. package/_cjs/FiberRef/api.cjs +13 -14
  276. package/_cjs/FiberRef/api.cjs.map +1 -1
  277. package/_cjs/FiberRef/constructors.cjs +4 -6
  278. package/_cjs/FiberRef/constructors.cjs.map +1 -1
  279. package/_cjs/FiberRef/unsafe.cjs +9 -1
  280. package/_cjs/FiberRef/unsafe.cjs.map +1 -1
  281. package/_cjs/Future/api.cjs +30 -31
  282. package/_cjs/Future/api.cjs.map +1 -1
  283. package/_cjs/Future/constructors.cjs +4 -5
  284. package/_cjs/Future/constructors.cjs.map +1 -1
  285. package/_cjs/Hub/api.cjs +44 -44
  286. package/_cjs/Hub/api.cjs.map +1 -1
  287. package/_cjs/Hub/internal.cjs +16 -24
  288. package/_cjs/Hub/internal.cjs.map +1 -1
  289. package/_cjs/IO/api/acquireRelease.cjs +2 -4
  290. package/_cjs/IO/api/acquireRelease.cjs.map +1 -1
  291. package/_cjs/IO/api/acquireReleaseExit.cjs +1 -1
  292. package/_cjs/IO/api/acquireReleaseExit.cjs.map +1 -1
  293. package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs +1 -1
  294. package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs.map +1 -1
  295. package/_cjs/IO/api/addFinalizer.cjs +1 -1
  296. package/_cjs/IO/api/addFinalizer.cjs.map +1 -1
  297. package/_cjs/IO/api/addFinalizerExit.cjs +5 -11
  298. package/_cjs/IO/api/addFinalizerExit.cjs.map +1 -1
  299. package/_cjs/IO/api/asyncIO.cjs +5 -7
  300. package/_cjs/IO/api/asyncIO.cjs.map +1 -1
  301. package/_cjs/IO/api/bracket.cjs +2 -2
  302. package/_cjs/IO/api/bracket.cjs.map +1 -1
  303. package/_cjs/IO/api/bracketExit.cjs +2 -4
  304. package/_cjs/IO/api/bracketExit.cjs.map +1 -1
  305. package/_cjs/IO/api/concurrency.cjs +7 -7
  306. package/_cjs/IO/api/concurrency.cjs.map +1 -1
  307. package/_cjs/IO/api/concurrentFinalizers.cjs +2 -4
  308. package/_cjs/IO/api/concurrentFinalizers.cjs.map +1 -1
  309. package/_cjs/IO/api/consoleWith.cjs +3 -3
  310. package/_cjs/IO/api/consoleWith.cjs.map +1 -1
  311. package/_cjs/IO/api/core-scope.cjs +4 -4
  312. package/_cjs/IO/api/core-scope.cjs.map +1 -1
  313. package/_cjs/IO/api/ensuringChildren.cjs +2 -4
  314. package/_cjs/IO/api/ensuringChildren.cjs.map +1 -1
  315. package/_cjs/IO/api/environment.cjs +6 -8
  316. package/_cjs/IO/api/environment.cjs.map +1 -1
  317. package/_cjs/IO/api/foreachC.cjs +25 -27
  318. package/_cjs/IO/api/foreachC.cjs.map +1 -1
  319. package/_cjs/IO/api/foreachExec.cjs +2 -4
  320. package/_cjs/IO/api/foreachExec.cjs.map +1 -1
  321. package/_cjs/IO/api/forkIn.cjs +1 -1
  322. package/_cjs/IO/api/forkIn.cjs.map +1 -1
  323. package/_cjs/IO/api/forkScoped.cjs +1 -1
  324. package/_cjs/IO/api/forkScoped.cjs.map +1 -1
  325. package/_cjs/IO/api/fulfill.cjs +2 -4
  326. package/_cjs/IO/api/fulfill.cjs.map +1 -1
  327. package/_cjs/IO/api/interrupt.cjs +13 -13
  328. package/_cjs/IO/api/interrupt.cjs.map +1 -1
  329. package/_cjs/IO/api/memoize.cjs +4 -8
  330. package/_cjs/IO/api/memoize.cjs.map +1 -1
  331. package/_cjs/IO/api/onExit.cjs +2 -2
  332. package/_cjs/IO/api/onExit.cjs.map +1 -1
  333. package/_cjs/IO/api/onTermination.cjs +2 -2
  334. package/_cjs/IO/api/onTermination.cjs.map +1 -1
  335. package/_cjs/IO/api/once.cjs +1 -1
  336. package/_cjs/IO/api/once.cjs.map +1 -1
  337. package/_cjs/IO/api/provideLayer.cjs +2 -4
  338. package/_cjs/IO/api/provideLayer.cjs.map +1 -1
  339. package/_cjs/IO/api/provideSomeLayer.cjs +2 -3
  340. package/_cjs/IO/api/provideSomeLayer.cjs.map +1 -1
  341. package/_cjs/IO/api/race.cjs +4 -6
  342. package/_cjs/IO/api/race.cjs.map +1 -1
  343. package/_cjs/IO/api/raceFirst.cjs +2 -4
  344. package/_cjs/IO/api/raceFirst.cjs.map +1 -1
  345. package/_cjs/IO/api/randomWith.cjs +3 -3
  346. package/_cjs/IO/api/randomWith.cjs.map +1 -1
  347. package/_cjs/IO/api/repeat.cjs +10 -11
  348. package/_cjs/IO/api/repeat.cjs.map +1 -1
  349. package/_cjs/IO/api/retry.cjs +8 -9
  350. package/_cjs/IO/api/retry.cjs.map +1 -1
  351. package/_cjs/IO/api/schedule.cjs +6 -7
  352. package/_cjs/IO/api/schedule.cjs.map +1 -1
  353. package/_cjs/IO/api/scope.cjs +1 -1
  354. package/_cjs/IO/api/scope.cjs.map +1 -1
  355. package/_cjs/IO/api/scopeWith.cjs +2 -4
  356. package/_cjs/IO/api/scopeWith.cjs.map +1 -1
  357. package/_cjs/IO/api/scoped.cjs +4 -5
  358. package/_cjs/IO/api/scoped.cjs.map +1 -1
  359. package/_cjs/IO/api/stateful.cjs +1 -1
  360. package/_cjs/IO/api/stateful.cjs.map +1 -1
  361. package/_cjs/IO/api/timeout.cjs +3 -4
  362. package/_cjs/IO/api/timeout.cjs.map +1 -1
  363. package/_cjs/IO/api/withChildren.cjs +1 -1
  364. package/_cjs/IO/api/withChildren.cjs.map +1 -1
  365. package/_cjs/IO/api/withEarlyRelease.cjs +2 -4
  366. package/_cjs/IO/api/withEarlyRelease.cjs.map +1 -1
  367. package/_cjs/IO/api/withFinalizer.cjs +2 -2
  368. package/_cjs/IO/api/withFinalizer.cjs.map +1 -1
  369. package/_cjs/IO/api/withFinalizerExit.cjs +2 -4
  370. package/_cjs/IO/api/withFinalizerExit.cjs.map +1 -1
  371. package/_cjs/IO/api/withRuntimeConfig.cjs +2 -4
  372. package/_cjs/IO/api/withRuntimeConfig.cjs.map +1 -1
  373. package/_cjs/IO/api/zipC.cjs +5 -6
  374. package/_cjs/IO/api/zipC.cjs.map +1 -1
  375. package/_cjs/IO/api.cjs +112 -112
  376. package/_cjs/IO/api.cjs.map +1 -1
  377. package/_cjs/IO/definition.cjs +5 -8
  378. package/_cjs/IO/definition.cjs.map +1 -1
  379. package/_cjs/IO/runtime.cjs +69 -21
  380. package/_cjs/IO/runtime.cjs.map +1 -1
  381. package/_cjs/IOEnv/live.cjs +3 -1
  382. package/_cjs/IOEnv/live.cjs.map +1 -1
  383. package/_cjs/Layer/MemoMap.cjs +45 -62
  384. package/_cjs/Layer/MemoMap.cjs.map +1 -1
  385. package/_cjs/Layer/api.cjs +84 -83
  386. package/_cjs/Layer/api.cjs.map +1 -1
  387. package/_cjs/Layer/definition.cjs +14 -7
  388. package/_cjs/Layer/definition.cjs.map +1 -1
  389. package/_cjs/Queue/api/dimapIO.cjs +14 -14
  390. package/_cjs/Queue/api/dimapIO.cjs.map +1 -1
  391. package/_cjs/Queue/api/filterInputIO.cjs +6 -6
  392. package/_cjs/Queue/api/filterInputIO.cjs.map +1 -1
  393. package/_cjs/Queue/api/filterOutputIO.cjs +6 -6
  394. package/_cjs/Queue/api/filterOutputIO.cjs.map +1 -1
  395. package/_cjs/Queue/api/operations.cjs +13 -13
  396. package/_cjs/Queue/api/operations.cjs.map +1 -1
  397. package/_cjs/Queue/api/poll.cjs +2 -4
  398. package/_cjs/Queue/api/poll.cjs.map +1 -1
  399. package/_cjs/Queue/api/takeBetween.cjs +10 -12
  400. package/_cjs/Queue/api/takeBetween.cjs.map +1 -1
  401. package/_cjs/Queue/api/zipWithIO.cjs +12 -12
  402. package/_cjs/Queue/api/zipWithIO.cjs.map +1 -1
  403. package/_cjs/Queue/constructors.cjs +8 -10
  404. package/_cjs/Queue/constructors.cjs.map +1 -1
  405. package/_cjs/Queue/internal.cjs +17 -17
  406. package/_cjs/Queue/internal.cjs.map +1 -1
  407. package/_cjs/Queue/strategy.cjs +16 -20
  408. package/_cjs/Queue/strategy.cjs.map +1 -1
  409. package/_cjs/Random/api.cjs +15 -13
  410. package/_cjs/Random/api.cjs.map +1 -1
  411. package/_cjs/Random/live.cjs +4 -4
  412. package/_cjs/Random/live.cjs.map +1 -1
  413. package/_cjs/Ref/Atomic/Atomic.cjs.map +1 -1
  414. package/_cjs/Ref/Atomic/api.cjs +19 -21
  415. package/_cjs/Ref/Atomic/api.cjs.map +1 -1
  416. package/_cjs/Ref/Derived.cjs.map +1 -1
  417. package/_cjs/Ref/DerivedAll.cjs +1 -1
  418. package/_cjs/Ref/DerivedAll.cjs.map +1 -1
  419. package/_cjs/Ref/Synchronized/api.cjs +25 -26
  420. package/_cjs/Ref/Synchronized/api.cjs.map +1 -1
  421. package/_cjs/Ref/Synchronized/constructors.cjs +8 -14
  422. package/_cjs/Ref/Synchronized/constructors.cjs.map +1 -1
  423. package/_cjs/Ref/Synchronized/definition.cjs +1 -1
  424. package/_cjs/Ref/Synchronized/definition.cjs.map +1 -1
  425. package/_cjs/Ref/api/collect.cjs +1 -1
  426. package/_cjs/Ref/api/collect.cjs.map +1 -1
  427. package/_cjs/Ref/api/dimap.cjs +12 -12
  428. package/_cjs/Ref/api/dimap.cjs.map +1 -1
  429. package/_cjs/Ref/api/filter.cjs +2 -2
  430. package/_cjs/Ref/api/filter.cjs.map +1 -1
  431. package/_cjs/Ref/api/get.cjs +1 -1
  432. package/_cjs/Ref/api/get.cjs.map +1 -1
  433. package/_cjs/Ref/api/modify.cjs +29 -30
  434. package/_cjs/Ref/api/modify.cjs.map +1 -1
  435. package/_cjs/Ref/api/set.cjs +1 -1
  436. package/_cjs/Ref/api/set.cjs.map +1 -1
  437. package/_cjs/Ref/constructors.cjs +3 -4
  438. package/_cjs/Ref/constructors.cjs.map +1 -1
  439. package/_cjs/STM/api/core-api.cjs +8 -8
  440. package/_cjs/STM/api/core-api.cjs.map +1 -1
  441. package/_cjs/STM/api/core-constructors.cjs +6 -6
  442. package/_cjs/STM/api/core-constructors.cjs.map +1 -1
  443. package/_cjs/STM/api.cjs +129 -148
  444. package/_cjs/STM/api.cjs.map +1 -1
  445. package/_cjs/STM/definition.cjs.map +1 -1
  446. package/_cjs/STM/driver.cjs +10 -6
  447. package/_cjs/STM/driver.cjs.map +1 -1
  448. package/_cjs/STM/internal/Journal.cjs +20 -22
  449. package/_cjs/STM/internal/Journal.cjs.map +1 -1
  450. package/_cjs/Schedule/Decision.cjs +17 -0
  451. package/_cjs/Schedule/Decision.cjs.map +1 -1
  452. package/_cjs/Schedule/api/driver.cjs +18 -21
  453. package/_cjs/Schedule/api/driver.cjs.map +1 -1
  454. package/_cjs/Schedule/api.cjs +205 -180
  455. package/_cjs/Schedule/api.cjs.map +1 -1
  456. package/_cjs/Scope/Finalizer/definition.cjs +4 -6
  457. package/_cjs/Scope/Finalizer/definition.cjs.map +1 -1
  458. package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs +3 -5
  459. package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs.map +1 -1
  460. package/_cjs/Scope/ReleaseMap/api.cjs +14 -15
  461. package/_cjs/Scope/ReleaseMap/api.cjs.map +1 -1
  462. package/_cjs/Scope/ReleaseMap/constructors.cjs +1 -1
  463. package/_cjs/Scope/ReleaseMap/constructors.cjs.map +1 -1
  464. package/_cjs/Scope/ReleaseMap/definition.cjs +2 -4
  465. package/_cjs/Scope/ReleaseMap/definition.cjs.map +1 -1
  466. package/_cjs/Scope/api.cjs +20 -30
  467. package/_cjs/Scope/api.cjs.map +1 -1
  468. package/_cjs/ScopedRef/api.cjs +14 -22
  469. package/_cjs/ScopedRef/api.cjs.map +1 -1
  470. package/_cjs/Sink/api.cjs +92 -88
  471. package/_cjs/Sink/api.cjs.map +1 -1
  472. package/_cjs/State/api.cjs +5 -7
  473. package/_cjs/State/api.cjs.map +1 -1
  474. package/_cjs/Stream/api/zipAllWith.cjs +22 -24
  475. package/_cjs/Stream/api/zipAllWith.cjs.map +1 -1
  476. package/_cjs/Stream/api/zipWith.cjs +2 -2
  477. package/_cjs/Stream/api/zipWith.cjs.map +1 -1
  478. package/_cjs/Stream/api/zipWithChunks.cjs +20 -22
  479. package/_cjs/Stream/api/zipWithChunks.cjs.map +1 -1
  480. package/_cjs/Stream/api.cjs +436 -419
  481. package/_cjs/Stream/api.cjs.map +1 -1
  482. package/_cjs/Stream/internal/Handoff.cjs +12 -12
  483. package/_cjs/Stream/internal/Handoff.cjs.map +1 -1
  484. package/_cjs/Stream/internal/Pull.cjs +1 -1
  485. package/_cjs/Stream/internal/Pull.cjs.map +1 -1
  486. package/_cjs/Stream/internal/Take.cjs +1 -1
  487. package/_cjs/Stream/internal/Take.cjs.map +1 -1
  488. package/_cjs/Supervisor/api.cjs +3 -1
  489. package/_cjs/Supervisor/api.cjs.map +1 -1
  490. package/_cjs/Supervisor/constructors.cjs +14 -8
  491. package/_cjs/Supervisor/constructors.cjs.map +1 -1
  492. package/_cjs/TFuture/api.cjs +10 -10
  493. package/_cjs/TFuture/api.cjs.map +1 -1
  494. package/_cjs/TFuture/constructors.cjs +4 -4
  495. package/_cjs/TFuture/constructors.cjs.map +1 -1
  496. package/_cjs/TFuture/definition.cjs +2 -4
  497. package/_cjs/TFuture/definition.cjs.map +1 -1
  498. package/_cjs/TReentrantLock/api.cjs +41 -42
  499. package/_cjs/TReentrantLock/api.cjs.map +1 -1
  500. package/_cjs/TRef/api.cjs +40 -40
  501. package/_cjs/TRef/api.cjs.map +1 -1
  502. package/_cjs/TRef/constructors.cjs +6 -6
  503. package/_cjs/TRef/constructors.cjs.map +1 -1
  504. package/_cjs/TSemaphore/api.cjs +20 -21
  505. package/_cjs/TSemaphore/api.cjs.map +1 -1
  506. package/_cjs/TSemaphore/constructors.cjs +2 -2
  507. package/_cjs/TSemaphore/constructors.cjs.map +1 -1
  508. package/_cjs/TSemaphore/definition.cjs +2 -4
  509. package/_cjs/TSemaphore/definition.cjs.map +1 -1
  510. package/_cjs/collection/immutable/Conc/dropUntilIO.cjs +1 -1
  511. package/_cjs/collection/immutable/Conc/dropUntilIO.cjs.map +1 -1
  512. package/_cjs/collection/immutable/Conc/dropWhileIO.cjs +1 -1
  513. package/_cjs/collection/immutable/Conc/dropWhileIO.cjs.map +1 -1
  514. package/_cjs/collection/immutable/Conc/filterIO.cjs +5 -7
  515. package/_cjs/collection/immutable/Conc/filterIO.cjs.map +1 -1
  516. package/_cjs/collection/immutable/Conc/findIO.cjs +7 -9
  517. package/_cjs/collection/immutable/Conc/findIO.cjs.map +1 -1
  518. package/_cjs/collection/immutable/Conc/mapIO.cjs +3 -5
  519. package/_cjs/collection/immutable/Conc/mapIO.cjs.map +1 -1
  520. package/_cjs/collection/immutable/Conc/takeWhileIO.cjs +7 -9
  521. package/_cjs/collection/immutable/Conc/takeWhileIO.cjs.map +1 -1
  522. package/_cjs/collection/immutable/Conc.cjs +26 -0
  523. package/_cjs/collection/immutable/Conc.cjs.map +1 -1
  524. package/_cjs/data/Exit/foreachIO.cjs +2 -4
  525. package/_cjs/data/Exit/foreachIO.cjs.map +1 -1
  526. package/_cjs/global.cjs +6 -0
  527. package/_cjs/global.cjs.map +1 -0
  528. package/_cjs/index.cjs +6 -0
  529. package/_cjs/index.cjs.map +1 -0
  530. package/_cjs/internal/Scheduler.cjs +64 -14
  531. package/_cjs/internal/Scheduler.cjs.map +1 -1
  532. package/_mjs/Cached/api.mjs +5 -5
  533. package/_mjs/Cached/api.mjs.map +1 -1
  534. package/_mjs/Channel/api/interruptWhen.mjs +1 -1
  535. package/_mjs/Channel/api/interruptWhen.mjs.map +1 -1
  536. package/_mjs/Channel/api/mapOutIOC.mjs +2 -2
  537. package/_mjs/Channel/api/mapOutIOC.mjs.map +1 -1
  538. package/_mjs/Channel/api/mergeAllWith.mjs +11 -11
  539. package/_mjs/Channel/api/mergeAllWith.mjs.map +1 -1
  540. package/_mjs/Channel/api/mergeWith.mjs +6 -5
  541. package/_mjs/Channel/api/mergeWith.mjs.map +1 -1
  542. package/_mjs/Channel/api/run.mjs +2 -1
  543. package/_mjs/Channel/api/run.mjs.map +1 -1
  544. package/_mjs/Channel/api.mjs +7 -7
  545. package/_mjs/Channel/api.mjs.map +1 -1
  546. package/_mjs/Channel/core-api.mjs.map +1 -1
  547. package/_mjs/Channel/definition.mjs.map +1 -1
  548. package/_mjs/Channel/internal/ChannelExecutor.mjs +6 -6
  549. package/_mjs/Channel/internal/ChannelExecutor.mjs.map +1 -1
  550. package/_mjs/Channel/internal/ChannelState.mjs +2 -1
  551. package/_mjs/Channel/internal/ChannelState.mjs.map +1 -1
  552. package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs +16 -16
  553. package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs.map +1 -1
  554. package/_mjs/Clock/live.mjs.map +1 -1
  555. package/_mjs/Console/api.mjs +4 -3
  556. package/_mjs/Console/api.mjs.map +1 -1
  557. package/_mjs/Fiber/FiberContext.mjs +9 -9
  558. package/_mjs/Fiber/FiberContext.mjs.map +1 -1
  559. package/_mjs/Fiber/api/await.mjs +1 -1
  560. package/_mjs/Fiber/api/await.mjs.map +1 -1
  561. package/_mjs/Fiber/api/awaitAll.mjs +2 -3
  562. package/_mjs/Fiber/api/awaitAll.mjs.map +1 -1
  563. package/_mjs/Fiber/api/children.mjs +1 -1
  564. package/_mjs/Fiber/api/children.mjs.map +1 -1
  565. package/_mjs/Fiber/api/collectAll.mjs +2 -3
  566. package/_mjs/Fiber/api/collectAll.mjs.map +1 -1
  567. package/_mjs/Fiber/api/evalOn.mjs +1 -1
  568. package/_mjs/Fiber/api/evalOn.mjs.map +1 -1
  569. package/_mjs/Fiber/api/evalOnIO.mjs +2 -3
  570. package/_mjs/Fiber/api/evalOnIO.mjs.map +1 -1
  571. package/_mjs/Fiber/api/fromIO.mjs +2 -3
  572. package/_mjs/Fiber/api/fromIO.mjs.map +1 -1
  573. package/_mjs/Fiber/api/id.mjs +1 -1
  574. package/_mjs/Fiber/api/id.mjs.map +1 -1
  575. package/_mjs/Fiber/api/inheritRefs.mjs +1 -1
  576. package/_mjs/Fiber/api/inheritRefs.mjs.map +1 -1
  577. package/_mjs/Fiber/api/interrupt.mjs +2 -3
  578. package/_mjs/Fiber/api/interrupt.mjs.map +1 -1
  579. package/_mjs/Fiber/api/interruptAll.mjs +4 -5
  580. package/_mjs/Fiber/api/interruptAll.mjs.map +1 -1
  581. package/_mjs/Fiber/api/interruptAs.mjs +1 -1
  582. package/_mjs/Fiber/api/interruptAs.mjs.map +1 -1
  583. package/_mjs/Fiber/api/interruptFork.mjs +1 -1
  584. package/_mjs/Fiber/api/interruptFork.mjs.map +1 -1
  585. package/_mjs/Fiber/api/join.mjs +2 -3
  586. package/_mjs/Fiber/api/join.mjs.map +1 -1
  587. package/_mjs/Fiber/api/joinAll.mjs +2 -3
  588. package/_mjs/Fiber/api/joinAll.mjs.map +1 -1
  589. package/_mjs/Fiber/api/mapFiber.mjs +2 -3
  590. package/_mjs/Fiber/api/mapFiber.mjs.map +1 -1
  591. package/_mjs/Fiber/api/mapIO.mjs +4 -5
  592. package/_mjs/Fiber/api/mapIO.mjs.map +1 -1
  593. package/_mjs/Fiber/api/poll.mjs +1 -1
  594. package/_mjs/Fiber/api/poll.mjs.map +1 -1
  595. package/_mjs/Fiber/api/zipWith.mjs +2 -3
  596. package/_mjs/Fiber/api/zipWith.mjs.map +1 -1
  597. package/_mjs/Fiber/constructors.mjs +10 -11
  598. package/_mjs/Fiber/constructors.mjs.map +1 -1
  599. package/_mjs/FiberRef/api/locallyScoped.mjs +2 -3
  600. package/_mjs/FiberRef/api/locallyScoped.mjs.map +1 -1
  601. package/_mjs/FiberRef/api/locallyScopedWith.mjs +2 -3
  602. package/_mjs/FiberRef/api/locallyScopedWith.mjs.map +1 -1
  603. package/_mjs/FiberRef/api.mjs +13 -14
  604. package/_mjs/FiberRef/api.mjs.map +1 -1
  605. package/_mjs/FiberRef/constructors.mjs +4 -5
  606. package/_mjs/FiberRef/constructors.mjs.map +1 -1
  607. package/_mjs/FiberRef/unsafe.mjs +6 -0
  608. package/_mjs/FiberRef/unsafe.mjs.map +1 -1
  609. package/_mjs/Future/api.mjs +30 -31
  610. package/_mjs/Future/api.mjs.map +1 -1
  611. package/_mjs/Future/constructors.mjs +4 -5
  612. package/_mjs/Future/constructors.mjs.map +1 -1
  613. package/_mjs/Hub/api.mjs +44 -44
  614. package/_mjs/Hub/api.mjs.map +1 -1
  615. package/_mjs/Hub/internal.mjs +16 -24
  616. package/_mjs/Hub/internal.mjs.map +1 -1
  617. package/_mjs/IO/api/acquireRelease.mjs +2 -3
  618. package/_mjs/IO/api/acquireRelease.mjs.map +1 -1
  619. package/_mjs/IO/api/acquireReleaseExit.mjs +1 -1
  620. package/_mjs/IO/api/acquireReleaseExit.mjs.map +1 -1
  621. package/_mjs/IO/api/acquireReleaseInterruptibleExit.mjs +1 -1
  622. package/_mjs/IO/api/acquireReleaseInterruptibleExit.mjs.map +1 -1
  623. package/_mjs/IO/api/addFinalizer.mjs +1 -1
  624. package/_mjs/IO/api/addFinalizer.mjs.map +1 -1
  625. package/_mjs/IO/api/addFinalizerExit.mjs +5 -10
  626. package/_mjs/IO/api/addFinalizerExit.mjs.map +1 -1
  627. package/_mjs/IO/api/asyncIO.mjs +5 -6
  628. package/_mjs/IO/api/asyncIO.mjs.map +1 -1
  629. package/_mjs/IO/api/bracket.mjs +2 -2
  630. package/_mjs/IO/api/bracket.mjs.map +1 -1
  631. package/_mjs/IO/api/bracketExit.mjs +2 -3
  632. package/_mjs/IO/api/bracketExit.mjs.map +1 -1
  633. package/_mjs/IO/api/concurrency.mjs +7 -7
  634. package/_mjs/IO/api/concurrency.mjs.map +1 -1
  635. package/_mjs/IO/api/concurrentFinalizers.mjs +2 -3
  636. package/_mjs/IO/api/concurrentFinalizers.mjs.map +1 -1
  637. package/_mjs/IO/api/consoleWith.mjs +3 -3
  638. package/_mjs/IO/api/consoleWith.mjs.map +1 -1
  639. package/_mjs/IO/api/core-scope.mjs +4 -4
  640. package/_mjs/IO/api/core-scope.mjs.map +1 -1
  641. package/_mjs/IO/api/ensuringChildren.mjs +2 -3
  642. package/_mjs/IO/api/ensuringChildren.mjs.map +1 -1
  643. package/_mjs/IO/api/environment.mjs +6 -8
  644. package/_mjs/IO/api/environment.mjs.map +1 -1
  645. package/_mjs/IO/api/foreachC.mjs +25 -26
  646. package/_mjs/IO/api/foreachC.mjs.map +1 -1
  647. package/_mjs/IO/api/foreachExec.mjs +2 -3
  648. package/_mjs/IO/api/foreachExec.mjs.map +1 -1
  649. package/_mjs/IO/api/forkIn.mjs +1 -1
  650. package/_mjs/IO/api/forkIn.mjs.map +1 -1
  651. package/_mjs/IO/api/forkScoped.mjs +1 -1
  652. package/_mjs/IO/api/forkScoped.mjs.map +1 -1
  653. package/_mjs/IO/api/fulfill.mjs +2 -3
  654. package/_mjs/IO/api/fulfill.mjs.map +1 -1
  655. package/_mjs/IO/api/interrupt.mjs +13 -13
  656. package/_mjs/IO/api/interrupt.mjs.map +1 -1
  657. package/_mjs/IO/api/memoize.mjs +4 -8
  658. package/_mjs/IO/api/memoize.mjs.map +1 -1
  659. package/_mjs/IO/api/onExit.mjs +2 -2
  660. package/_mjs/IO/api/onExit.mjs.map +1 -1
  661. package/_mjs/IO/api/onTermination.mjs +2 -2
  662. package/_mjs/IO/api/onTermination.mjs.map +1 -1
  663. package/_mjs/IO/api/once.mjs +1 -1
  664. package/_mjs/IO/api/once.mjs.map +1 -1
  665. package/_mjs/IO/api/provideLayer.mjs +2 -3
  666. package/_mjs/IO/api/provideLayer.mjs.map +1 -1
  667. package/_mjs/IO/api/provideSomeLayer.mjs +2 -3
  668. package/_mjs/IO/api/provideSomeLayer.mjs.map +1 -1
  669. package/_mjs/IO/api/race.mjs +4 -5
  670. package/_mjs/IO/api/race.mjs.map +1 -1
  671. package/_mjs/IO/api/raceFirst.mjs +2 -3
  672. package/_mjs/IO/api/raceFirst.mjs.map +1 -1
  673. package/_mjs/IO/api/randomWith.mjs +3 -3
  674. package/_mjs/IO/api/randomWith.mjs.map +1 -1
  675. package/_mjs/IO/api/repeat.mjs +10 -11
  676. package/_mjs/IO/api/repeat.mjs.map +1 -1
  677. package/_mjs/IO/api/retry.mjs +8 -9
  678. package/_mjs/IO/api/retry.mjs.map +1 -1
  679. package/_mjs/IO/api/schedule.mjs +6 -7
  680. package/_mjs/IO/api/schedule.mjs.map +1 -1
  681. package/_mjs/IO/api/scope.mjs +1 -1
  682. package/_mjs/IO/api/scope.mjs.map +1 -1
  683. package/_mjs/IO/api/scopeWith.mjs +2 -3
  684. package/_mjs/IO/api/scopeWith.mjs.map +1 -1
  685. package/_mjs/IO/api/scoped.mjs +4 -5
  686. package/_mjs/IO/api/scoped.mjs.map +1 -1
  687. package/_mjs/IO/api/stateful.mjs +1 -1
  688. package/_mjs/IO/api/stateful.mjs.map +1 -1
  689. package/_mjs/IO/api/timeout.mjs +3 -4
  690. package/_mjs/IO/api/timeout.mjs.map +1 -1
  691. package/_mjs/IO/api/withChildren.mjs +1 -1
  692. package/_mjs/IO/api/withChildren.mjs.map +1 -1
  693. package/_mjs/IO/api/withEarlyRelease.mjs +2 -3
  694. package/_mjs/IO/api/withEarlyRelease.mjs.map +1 -1
  695. package/_mjs/IO/api/withFinalizer.mjs +2 -2
  696. package/_mjs/IO/api/withFinalizer.mjs.map +1 -1
  697. package/_mjs/IO/api/withFinalizerExit.mjs +2 -3
  698. package/_mjs/IO/api/withFinalizerExit.mjs.map +1 -1
  699. package/_mjs/IO/api/withRuntimeConfig.mjs +2 -3
  700. package/_mjs/IO/api/withRuntimeConfig.mjs.map +1 -1
  701. package/_mjs/IO/api/zipC.mjs +5 -6
  702. package/_mjs/IO/api/zipC.mjs.map +1 -1
  703. package/_mjs/IO/api.mjs +112 -112
  704. package/_mjs/IO/api.mjs.map +1 -1
  705. package/_mjs/IO/definition.mjs +3 -5
  706. package/_mjs/IO/definition.mjs.map +1 -1
  707. package/_mjs/IO/runtime.mjs +61 -18
  708. package/_mjs/IO/runtime.mjs.map +1 -1
  709. package/_mjs/IOEnv/live.mjs +2 -1
  710. package/_mjs/IOEnv/live.mjs.map +1 -1
  711. package/_mjs/Layer/MemoMap.mjs +43 -60
  712. package/_mjs/Layer/MemoMap.mjs.map +1 -1
  713. package/_mjs/Layer/api.mjs +84 -84
  714. package/_mjs/Layer/api.mjs.map +1 -1
  715. package/_mjs/Layer/definition.mjs +14 -7
  716. package/_mjs/Layer/definition.mjs.map +1 -1
  717. package/_mjs/Queue/api/dimapIO.mjs +14 -14
  718. package/_mjs/Queue/api/dimapIO.mjs.map +1 -1
  719. package/_mjs/Queue/api/filterInputIO.mjs +6 -6
  720. package/_mjs/Queue/api/filterInputIO.mjs.map +1 -1
  721. package/_mjs/Queue/api/filterOutputIO.mjs +6 -6
  722. package/_mjs/Queue/api/filterOutputIO.mjs.map +1 -1
  723. package/_mjs/Queue/api/operations.mjs +13 -13
  724. package/_mjs/Queue/api/operations.mjs.map +1 -1
  725. package/_mjs/Queue/api/poll.mjs +2 -3
  726. package/_mjs/Queue/api/poll.mjs.map +1 -1
  727. package/_mjs/Queue/api/takeBetween.mjs +10 -11
  728. package/_mjs/Queue/api/takeBetween.mjs.map +1 -1
  729. package/_mjs/Queue/api/zipWithIO.mjs +12 -12
  730. package/_mjs/Queue/api/zipWithIO.mjs.map +1 -1
  731. package/_mjs/Queue/constructors.mjs +8 -9
  732. package/_mjs/Queue/constructors.mjs.map +1 -1
  733. package/_mjs/Queue/internal.mjs +17 -17
  734. package/_mjs/Queue/internal.mjs.map +1 -1
  735. package/_mjs/Queue/strategy.mjs +16 -20
  736. package/_mjs/Queue/strategy.mjs.map +1 -1
  737. package/_mjs/Random/api.mjs +14 -13
  738. package/_mjs/Random/api.mjs.map +1 -1
  739. package/_mjs/Random/live.mjs +4 -4
  740. package/_mjs/Random/live.mjs.map +1 -1
  741. package/_mjs/Ref/Atomic/Atomic.mjs.map +1 -1
  742. package/_mjs/Ref/Atomic/api.mjs +19 -20
  743. package/_mjs/Ref/Atomic/api.mjs.map +1 -1
  744. package/_mjs/Ref/Derived.mjs.map +1 -1
  745. package/_mjs/Ref/DerivedAll.mjs +1 -1
  746. package/_mjs/Ref/DerivedAll.mjs.map +1 -1
  747. package/_mjs/Ref/Synchronized/api.mjs +25 -26
  748. package/_mjs/Ref/Synchronized/api.mjs.map +1 -1
  749. package/_mjs/Ref/Synchronized/constructors.mjs +8 -13
  750. package/_mjs/Ref/Synchronized/constructors.mjs.map +1 -1
  751. package/_mjs/Ref/Synchronized/definition.mjs +1 -1
  752. package/_mjs/Ref/Synchronized/definition.mjs.map +1 -1
  753. package/_mjs/Ref/api/collect.mjs +1 -1
  754. package/_mjs/Ref/api/collect.mjs.map +1 -1
  755. package/_mjs/Ref/api/dimap.mjs +12 -12
  756. package/_mjs/Ref/api/dimap.mjs.map +1 -1
  757. package/_mjs/Ref/api/filter.mjs +2 -2
  758. package/_mjs/Ref/api/filter.mjs.map +1 -1
  759. package/_mjs/Ref/api/get.mjs +1 -1
  760. package/_mjs/Ref/api/get.mjs.map +1 -1
  761. package/_mjs/Ref/api/modify.mjs +29 -30
  762. package/_mjs/Ref/api/modify.mjs.map +1 -1
  763. package/_mjs/Ref/api/set.mjs +1 -1
  764. package/_mjs/Ref/api/set.mjs.map +1 -1
  765. package/_mjs/Ref/constructors.mjs +3 -4
  766. package/_mjs/Ref/constructors.mjs.map +1 -1
  767. package/_mjs/STM/api/core-api.mjs +8 -8
  768. package/_mjs/STM/api/core-api.mjs.map +1 -1
  769. package/_mjs/STM/api/core-constructors.mjs +6 -6
  770. package/_mjs/STM/api/core-constructors.mjs.map +1 -1
  771. package/_mjs/STM/api.mjs +122 -142
  772. package/_mjs/STM/api.mjs.map +1 -1
  773. package/_mjs/STM/definition.mjs.map +1 -1
  774. package/_mjs/STM/driver.mjs +9 -6
  775. package/_mjs/STM/driver.mjs.map +1 -1
  776. package/_mjs/STM/internal/Journal.mjs +20 -21
  777. package/_mjs/STM/internal/Journal.mjs.map +1 -1
  778. package/_mjs/Schedule/Decision.mjs +9 -0
  779. package/_mjs/Schedule/Decision.mjs.map +1 -1
  780. package/_mjs/Schedule/api/driver.mjs +17 -20
  781. package/_mjs/Schedule/api/driver.mjs.map +1 -1
  782. package/_mjs/Schedule/api.mjs +198 -177
  783. package/_mjs/Schedule/api.mjs.map +1 -1
  784. package/_mjs/Scope/Finalizer/definition.mjs +4 -5
  785. package/_mjs/Scope/Finalizer/definition.mjs.map +1 -1
  786. package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs +3 -4
  787. package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs.map +1 -1
  788. package/_mjs/Scope/ReleaseMap/api.mjs +14 -15
  789. package/_mjs/Scope/ReleaseMap/api.mjs.map +1 -1
  790. package/_mjs/Scope/ReleaseMap/constructors.mjs +1 -1
  791. package/_mjs/Scope/ReleaseMap/constructors.mjs.map +1 -1
  792. package/_mjs/Scope/ReleaseMap/definition.mjs +2 -3
  793. package/_mjs/Scope/ReleaseMap/definition.mjs.map +1 -1
  794. package/_mjs/Scope/api.mjs +20 -30
  795. package/_mjs/Scope/api.mjs.map +1 -1
  796. package/_mjs/ScopedRef/api.mjs +14 -22
  797. package/_mjs/ScopedRef/api.mjs.map +1 -1
  798. package/_mjs/Sink/api.mjs +92 -88
  799. package/_mjs/Sink/api.mjs.map +1 -1
  800. package/_mjs/State/api.mjs +5 -6
  801. package/_mjs/State/api.mjs.map +1 -1
  802. package/_mjs/Stream/api/zipAllWith.mjs +22 -23
  803. package/_mjs/Stream/api/zipAllWith.mjs.map +1 -1
  804. package/_mjs/Stream/api/zipWith.mjs +2 -2
  805. package/_mjs/Stream/api/zipWith.mjs.map +1 -1
  806. package/_mjs/Stream/api/zipWithChunks.mjs +20 -21
  807. package/_mjs/Stream/api/zipWithChunks.mjs.map +1 -1
  808. package/_mjs/Stream/api.mjs +430 -417
  809. package/_mjs/Stream/api.mjs.map +1 -1
  810. package/_mjs/Stream/internal/Handoff.mjs +12 -12
  811. package/_mjs/Stream/internal/Handoff.mjs.map +1 -1
  812. package/_mjs/Stream/internal/Pull.mjs +1 -1
  813. package/_mjs/Stream/internal/Pull.mjs.map +1 -1
  814. package/_mjs/Stream/internal/Take.mjs +1 -1
  815. package/_mjs/Stream/internal/Take.mjs.map +1 -1
  816. package/_mjs/Supervisor/api.mjs +2 -1
  817. package/_mjs/Supervisor/api.mjs.map +1 -1
  818. package/_mjs/Supervisor/constructors.mjs +9 -6
  819. package/_mjs/Supervisor/constructors.mjs.map +1 -1
  820. package/_mjs/TFuture/api.mjs +10 -10
  821. package/_mjs/TFuture/api.mjs.map +1 -1
  822. package/_mjs/TFuture/constructors.mjs +4 -4
  823. package/_mjs/TFuture/constructors.mjs.map +1 -1
  824. package/_mjs/TFuture/definition.mjs +2 -3
  825. package/_mjs/TFuture/definition.mjs.map +1 -1
  826. package/_mjs/TReentrantLock/api.mjs +41 -42
  827. package/_mjs/TReentrantLock/api.mjs.map +1 -1
  828. package/_mjs/TRef/api.mjs +40 -40
  829. package/_mjs/TRef/api.mjs.map +1 -1
  830. package/_mjs/TRef/constructors.mjs +6 -6
  831. package/_mjs/TRef/constructors.mjs.map +1 -1
  832. package/_mjs/TSemaphore/api.mjs +17 -18
  833. package/_mjs/TSemaphore/api.mjs.map +1 -1
  834. package/_mjs/TSemaphore/constructors.mjs +2 -2
  835. package/_mjs/TSemaphore/constructors.mjs.map +1 -1
  836. package/_mjs/TSemaphore/definition.mjs +2 -3
  837. package/_mjs/TSemaphore/definition.mjs.map +1 -1
  838. package/_mjs/collection/immutable/Conc/dropUntilIO.mjs +1 -1
  839. package/_mjs/collection/immutable/Conc/dropUntilIO.mjs.map +1 -1
  840. package/_mjs/collection/immutable/Conc/dropWhileIO.mjs +1 -1
  841. package/_mjs/collection/immutable/Conc/dropWhileIO.mjs.map +1 -1
  842. package/_mjs/collection/immutable/Conc/filterIO.mjs +5 -6
  843. package/_mjs/collection/immutable/Conc/filterIO.mjs.map +1 -1
  844. package/_mjs/collection/immutable/Conc/findIO.mjs +7 -8
  845. package/_mjs/collection/immutable/Conc/findIO.mjs.map +1 -1
  846. package/_mjs/collection/immutable/Conc/mapIO.mjs +3 -4
  847. package/_mjs/collection/immutable/Conc/mapIO.mjs.map +1 -1
  848. package/_mjs/collection/immutable/Conc/takeWhileIO.mjs +7 -8
  849. package/_mjs/collection/immutable/Conc/takeWhileIO.mjs.map +1 -1
  850. package/_mjs/collection/immutable/Conc.mjs +2 -0
  851. package/_mjs/collection/immutable/Conc.mjs.map +1 -1
  852. package/_mjs/data/Exit/foreachIO.mjs +2 -3
  853. package/_mjs/data/Exit/foreachIO.mjs.map +1 -1
  854. package/_mjs/global.mjs +2 -0
  855. package/_mjs/global.mjs.map +1 -0
  856. package/_mjs/index.mjs +2 -0
  857. package/_mjs/index.mjs.map +1 -0
  858. package/_mjs/internal/Scheduler.mjs +62 -15
  859. package/_mjs/internal/Scheduler.mjs.map +1 -1
  860. package/_src/Cached/api.ts +4 -3
  861. package/_src/Channel/api/interruptWhen.ts +1 -1
  862. package/_src/Channel/api/mapOutIOC.ts +2 -2
  863. package/_src/Channel/api/mergeAll.ts +1 -1
  864. package/_src/Channel/api/mergeAllUnboundedWith.ts +1 -1
  865. package/_src/Channel/api/mergeAllWith.ts +3 -3
  866. package/_src/Channel/api/mergeMap.ts +1 -1
  867. package/_src/Channel/api/mergeWith.ts +9 -9
  868. package/_src/Channel/api/runScoped.ts +1 -1
  869. package/_src/Channel/api/toPull.ts +1 -1
  870. package/_src/Channel/api/zipC.ts +3 -3
  871. package/_src/Channel/api.ts +73 -73
  872. package/_src/Channel/core-api.ts +11 -13
  873. package/_src/Channel/definition.ts +19 -19
  874. package/_src/Channel/internal/MergeDecision.ts +1 -1
  875. package/_src/Clock/live.ts +1 -1
  876. package/_src/Console/api.ts +1 -1
  877. package/_src/Fiber/FiberContext.ts +10 -8
  878. package/_src/Fiber/api/await.ts +1 -1
  879. package/_src/Fiber/api/awaitAll.ts +1 -1
  880. package/_src/Fiber/api/children.ts +1 -1
  881. package/_src/Fiber/api/collectAll.ts +4 -1
  882. package/_src/Fiber/api/evalOn.ts +6 -1
  883. package/_src/Fiber/api/evalOnIO.ts +2 -1
  884. package/_src/Fiber/api/fromIO.ts +1 -1
  885. package/_src/Fiber/api/id.ts +1 -1
  886. package/_src/Fiber/api/inheritRefs.ts +1 -1
  887. package/_src/Fiber/api/interrupt.ts +1 -1
  888. package/_src/Fiber/api/interruptAll.ts +2 -2
  889. package/_src/Fiber/api/interruptAs.ts +1 -1
  890. package/_src/Fiber/api/join.ts +1 -1
  891. package/_src/Fiber/api/joinAll.ts +1 -1
  892. package/_src/Fiber/api/mapFiber.ts +5 -1
  893. package/_src/Fiber/api/mapIO.ts +6 -2
  894. package/_src/Fiber/api/poll.ts +1 -1
  895. package/_src/Fiber/api/zipWith.ts +1 -0
  896. package/_src/Fiber/constructors.ts +5 -5
  897. package/_src/Fiber/definition.ts +1 -1
  898. package/_src/FiberRef/api/locallyScoped.ts +1 -1
  899. package/_src/FiberRef/api/locallyScopedWith.ts +5 -1
  900. package/_src/FiberRef/api.ts +7 -7
  901. package/_src/FiberRef/constructors.ts +4 -2
  902. package/_src/FiberRef/unsafe.ts +7 -0
  903. package/_src/Future/api.ts +24 -16
  904. package/_src/Future/constructors.ts +2 -2
  905. package/_src/Hub/api.ts +50 -23
  906. package/_src/Hub/definition.ts +6 -6
  907. package/_src/Hub/internal.ts +15 -15
  908. package/_src/IO/api/acquireRelease.ts +2 -1
  909. package/_src/IO/api/acquireReleaseExit.ts +1 -1
  910. package/_src/IO/api/acquireReleaseInterruptible.ts +1 -1
  911. package/_src/IO/api/acquireReleaseInterruptibleExit.ts +1 -1
  912. package/_src/IO/api/addFinalizer.ts +1 -4
  913. package/_src/IO/api/addFinalizerExit.ts +6 -5
  914. package/_src/IO/api/asyncIO.ts +4 -1
  915. package/_src/IO/api/bracket.ts +2 -1
  916. package/_src/IO/api/bracketExit.ts +2 -1
  917. package/_src/IO/api/concurrency.ts +6 -3
  918. package/_src/IO/api/concurrentFinalizers.ts +1 -1
  919. package/_src/IO/api/consoleWith.ts +1 -1
  920. package/_src/IO/api/core-scope.ts +1 -1
  921. package/_src/IO/api/ensuringChildren.ts +3 -2
  922. package/_src/IO/api/environment.ts +9 -11
  923. package/_src/IO/api/foreachC.ts +33 -6
  924. package/_src/IO/api/foreachExec.ts +1 -0
  925. package/_src/IO/api/forkScoped.ts +1 -1
  926. package/_src/IO/api/fulfill.ts +1 -1
  927. package/_src/IO/api/interrupt.ts +13 -5
  928. package/_src/IO/api/memoize.ts +3 -3
  929. package/_src/IO/api/onExit.ts +2 -1
  930. package/_src/IO/api/onTermination.ts +2 -2
  931. package/_src/IO/api/provideLayer.ts +1 -0
  932. package/_src/IO/api/provideSomeLayer.ts +1 -3
  933. package/_src/IO/api/race.ts +6 -2
  934. package/_src/IO/api/raceFirst.ts +6 -2
  935. package/_src/IO/api/randomWith.ts +1 -1
  936. package/_src/IO/api/repeat.ts +7 -7
  937. package/_src/IO/api/retry.ts +7 -7
  938. package/_src/IO/api/schedule.ts +4 -3
  939. package/_src/IO/api/scope.ts +1 -1
  940. package/_src/IO/api/scopeWith.ts +1 -1
  941. package/_src/IO/api/scoped.ts +2 -2
  942. package/_src/IO/api/sequenceT.ts +1 -1
  943. package/_src/IO/api/stateful.ts +1 -1
  944. package/_src/IO/api/timeout.ts +5 -1
  945. package/_src/IO/api/withChildren.ts +1 -1
  946. package/_src/IO/api/withEarlyRelease.ts +4 -1
  947. package/_src/IO/api/withFinalizer.ts +2 -1
  948. package/_src/IO/api/withFinalizerExit.ts +2 -1
  949. package/_src/IO/api/withRuntimeConfig.ts +5 -1
  950. package/_src/IO/api/zipC.ts +7 -2
  951. package/_src/IO/api.ts +125 -75
  952. package/_src/IO/definition.ts +32 -27
  953. package/_src/IO/runtime.ts +66 -12
  954. package/_src/IOEnv/definition.ts +1 -1
  955. package/_src/Layer/MemoMap.ts +41 -34
  956. package/_src/Layer/api.ts +82 -49
  957. package/_src/Layer/definition.ts +11 -8
  958. package/_src/Queue/api/dimapIO.ts +21 -11
  959. package/_src/Queue/api/filterInputIO.ts +6 -4
  960. package/_src/Queue/api/filterOutputIO.ts +8 -6
  961. package/_src/Queue/api/operations.ts +28 -10
  962. package/_src/Queue/api/poll.ts +4 -1
  963. package/_src/Queue/api/takeBetween.ts +6 -1
  964. package/_src/Queue/api/zipWithIO.ts +13 -10
  965. package/_src/Queue/constructors.ts +4 -4
  966. package/_src/Queue/definition.ts +10 -10
  967. package/_src/Queue/internal.ts +7 -7
  968. package/_src/Queue/strategy.ts +18 -10
  969. package/_src/Random/api.ts +5 -5
  970. package/_src/Random/definition.ts +5 -5
  971. package/_src/Random/live.ts +4 -4
  972. package/_src/Ref/Atomic/Atomic.ts +3 -3
  973. package/_src/Ref/Atomic/api.ts +10 -10
  974. package/_src/Ref/Derived.ts +3 -3
  975. package/_src/Ref/DerivedAll.ts +3 -3
  976. package/_src/Ref/Synchronized/api.ts +33 -18
  977. package/_src/Ref/Synchronized/constructors.ts +5 -5
  978. package/_src/Ref/Synchronized/definition.ts +2 -2
  979. package/_src/Ref/api/collect.ts +1 -0
  980. package/_src/Ref/api/dimap.ts +7 -0
  981. package/_src/Ref/api/filter.ts +2 -0
  982. package/_src/Ref/api/get.ts +5 -2
  983. package/_src/Ref/api/modify.ts +21 -9
  984. package/_src/Ref/api/set.ts +5 -1
  985. package/_src/Ref/constructors.ts +2 -2
  986. package/_src/Ref/definition.ts +14 -14
  987. package/_src/STM/api/core-api.ts +20 -7
  988. package/_src/STM/api/core-constructors.ts +7 -7
  989. package/_src/STM/api.ts +150 -116
  990. package/_src/STM/definition.ts +6 -6
  991. package/_src/STM/driver.ts +3 -3
  992. package/_src/STM/internal/Journal.ts +25 -16
  993. package/_src/Schedule/Decision.ts +10 -3
  994. package/_src/Schedule/Driver.ts +2 -2
  995. package/_src/Schedule/api/driver.ts +6 -6
  996. package/_src/Schedule/api.ts +182 -82
  997. package/_src/Schedule/definition.ts +1 -1
  998. package/_src/Scope/Finalizer/definition.ts +2 -2
  999. package/_src/Scope/ReleaseMap/api/releaseAll.ts +6 -1
  1000. package/_src/Scope/ReleaseMap/api.ts +15 -5
  1001. package/_src/Scope/ReleaseMap/definition.ts +1 -1
  1002. package/_src/Scope/api.ts +23 -15
  1003. package/_src/ScopedRef/api.ts +12 -17
  1004. package/_src/ScopedRef/definition.ts +1 -1
  1005. package/_src/Sink/api.ts +111 -85
  1006. package/_src/State/api.ts +1 -1
  1007. package/_src/Stream/api/zipAllWith.ts +5 -2
  1008. package/_src/Stream/api/zipWith.ts +2 -1
  1009. package/_src/Stream/api/zipWithChunks.ts +5 -2
  1010. package/_src/Stream/api.ts +484 -216
  1011. package/_src/Stream/definition.ts +3 -3
  1012. package/_src/Stream/internal/Take.ts +1 -1
  1013. package/_src/Supervisor/constructors.ts +7 -3
  1014. package/_src/TFuture/api.ts +5 -5
  1015. package/_src/TFuture/constructors.ts +2 -2
  1016. package/_src/TFuture/definition.ts +1 -1
  1017. package/_src/TReentrantLock/api.ts +18 -18
  1018. package/_src/TRef/api.ts +36 -14
  1019. package/_src/TRef/constructors.ts +4 -4
  1020. package/_src/TSemaphore/api.ts +7 -7
  1021. package/_src/TSemaphore/constructors.ts +1 -1
  1022. package/_src/TSemaphore/definition.ts +1 -1
  1023. package/_src/collection/immutable/Conc/filterIO.ts +5 -1
  1024. package/_src/collection/immutable/Conc/findIO.ts +6 -1
  1025. package/_src/collection/immutable/Conc/mapIO.ts +1 -1
  1026. package/_src/collection/immutable/Conc/takeWhileIO.ts +5 -1
  1027. package/_src/collection/immutable/Conc.ts +2 -0
  1028. package/_src/data/Exit/foreachIO.ts +1 -0
  1029. package/_src/global.ts +149 -0
  1030. package/_src/index.ts +42 -0
  1031. package/_src/internal/Scheduler.ts +59 -15
  1032. package/collection/immutable/Conc/filterIO.d.ts +1 -1
  1033. package/collection/immutable/Conc/findIO.d.ts +2 -2
  1034. package/collection/immutable/Conc/mapIO.d.ts +1 -1
  1035. package/collection/immutable/Conc/takeWhileIO.d.ts +1 -1
  1036. package/collection/immutable/Conc.d.ts +2 -0
  1037. package/data/Exit/foreachIO.d.ts +2 -2
  1038. package/global.d.ts +149 -0
  1039. package/index.d.ts +40 -0
  1040. package/internal/Scheduler.d.ts +18 -1
  1041. package/package.json +3 -3
@@ -25,7 +25,8 @@ exports.catchAll_ = exports.catchAllCause_ = void 0;
25
25
  exports.catchJustCause_ = catchJustCause_;
26
26
  exports.catchJust_ = catchJust_;
27
27
  exports.changesWith_ = changesWith_;
28
- exports.chunks = chunks;
28
+ exports.chunks = void 0;
29
+ exports.chunksWith = chunksWith;
29
30
  exports.collectWhileIO_ = collectWhileIO_;
30
31
  exports.collectWhile_ = collectWhile_;
31
32
  exports.combineChunks_ = combineChunks_;
@@ -81,7 +82,8 @@ exports.mapConcat_ = mapConcat_;
81
82
  exports.mapErrorCause_ = mapErrorCause_;
82
83
  exports.mapError_ = void 0;
83
84
  exports.mapIOC_ = mapIOC_;
84
- exports.mergeEither_ = exports.map_ = exports.mapIO_ = void 0;
85
+ exports.map_ = exports.mapIO_ = void 0;
86
+ exports.mergeEither_ = void 0;
85
87
  exports.mergeMapIO_ = mergeMapIO_;
86
88
  exports.mergeMap_ = void 0;
87
89
  exports.mergeWithHandler = mergeWithHandler;
@@ -252,6 +254,8 @@ var _function = /*#__PURE__*/require("@fncts/base/data/function");
252
254
 
253
255
  var _definition2 = /*#__PURE__*/require("./definition.cjs");
254
256
 
257
+ var _Handoff2 = /*#__PURE__*/require("./internal/Handoff.cjs");
258
+
255
259
  var _SinkEndReason2 = /*#__PURE__*/require("./internal/SinkEndReason.cjs");
256
260
 
257
261
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -279,6 +283,8 @@ const catchAllCause_ = catchAllCause_1;
279
283
  exports.catchAllCause_ = catchAllCause_;
280
284
  const flatMap_ = flatMap_1;
281
285
  exports.flatMap_ = flatMap_;
286
+ const chunks = chunks_1;
287
+ exports.chunks = chunks;
282
288
  const concat_ = concat_1;
283
289
  exports.concat_ = concat_;
284
290
  const crossWith_ = crossWith_1;
@@ -407,8 +413,8 @@ exports.unwrapScoped = unwrapScoped;
407
413
  *
408
414
  * @tsplus getter fncts.io.Stream absolve
409
415
  */
410
- function absolve(self) {
411
- return mapIO_1(self, either => tsplus_module_1.fromEither(() => either, fileName_1 + ":25:46"));
416
+ function absolve(self, __tsplusTrace) {
417
+ return mapIO_1(self, either => tsplus_module_1.fromEither(() => either, __tsplusTrace), __tsplusTrace);
412
418
  }
413
419
  /**
414
420
  * Aggregates elements of this stream using the provided sink for as long
@@ -426,8 +432,8 @@ function absolve(self) {
426
432
  */
427
433
 
428
434
 
429
- function aggregateAsync_(stream, sink) {
430
- return aggregateAsyncWithin_1(stream, sink, tsplus_module_2.forever);
435
+ function aggregateAsync_(stream, sink, __tsplusTrace) {
436
+ return aggregateAsyncWithin_1(stream, sink, tsplus_module_2.forever, __tsplusTrace);
431
437
  }
432
438
  /**
433
439
  * Like `aggregateAsyncWithinEither`, but only returns the `Right` results.
@@ -436,8 +442,8 @@ function aggregateAsync_(stream, sink) {
436
442
  */
437
443
 
438
444
 
439
- function aggregateAsyncWithin_1(stream, sink, schedule) {
440
- return filterMap_1(aggregateAsyncWithinEither_1(stream, sink, schedule), cb => tsplus_module_4.match_(cb, () => tsplus_module_3.nothing(), tsplus_module_3.just));
445
+ function aggregateAsyncWithin_1(stream, sink, schedule, __tsplusTrace) {
446
+ return filterMap_1(aggregateAsyncWithinEither_1(stream, sink, schedule, __tsplusTrace), cb => tsplus_module_4.match_(cb, () => tsplus_module_3.nothing(), tsplus_module_3.just), __tsplusTrace);
441
447
  }
442
448
  /**
443
449
  * Aggregates elements using the provided sink until it completes, or until the
@@ -455,18 +461,18 @@ function aggregateAsyncWithin_1(stream, sink, schedule) {
455
461
  */
456
462
 
457
463
 
458
- function aggregateAsyncWithinEither_1(stream, sink, schedule) {
459
- const deps = tsplus_module_9.sequenceT(tsplus_module_5.make(), tsplus_module_6.make(() => new _SinkEndReason2.ScheduleEnd()), tsplus_module_6.make(() => tsplus_module_7.empty()), tsplus_module_8.driver(schedule, fileName_1 + ":87:13"), tsplus_module_6.make(() => false));
460
- return flatMap_1(fromIO_1(deps), ([handoff, sinkEndReason, sinkLeftovers, scheduleDriver, consumed]) => {
464
+ function aggregateAsyncWithinEither_1(stream, sink, schedule, __tsplusTrace) {
465
+ const deps = tsplus_module_9.sequenceT(tsplus_module_5.make(), tsplus_module_6.make(() => new _SinkEndReason2.ScheduleEnd(), __tsplusTrace), tsplus_module_6.make(() => tsplus_module_7.empty(), __tsplusTrace), tsplus_module_8.driver(schedule, __tsplusTrace), tsplus_module_6.make(() => false, __tsplusTrace));
466
+ return flatMap_1(fromIO_1(deps, __tsplusTrace), ([handoff, sinkEndReason, sinkLeftovers, scheduleDriver, consumed]) => {
461
467
  const handoffProducer = tsplus_module_10.readWithCause(_in => tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_5.emit(_in))), handoffProducer), cause => tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_5.halt(cause))), _ => tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_5.end(new _SinkEndReason2.UpstreamEnd()))));
462
- const handoffConsumer = tsplus_module_10.unwrap(() => tsplus_module_1.flatMap_(tsplus_module_15.getAndSet_(sinkLeftovers, tsplus_module_7.empty()), leftovers => {
468
+ const handoffConsumer = tsplus_module_10.unwrap(() => tsplus_module_1.flatMap_(tsplus_module_15.getAndSet_(sinkLeftovers, tsplus_module_7.empty(), __tsplusTrace), leftovers => {
463
469
  if (tsplus_module_12.isNonEmpty(leftovers)) {
464
- return tsplus_module_1.apSecond_(tsplus_module_13.set_(consumed, true), tsplus_module_1.succeedNow(tsplus_module_11.apSecond_(tsplus_module_10.writeNow(leftovers), handoffConsumer), fileName_1 + ":101:52"), fileName_1 + ":101:38");
470
+ return tsplus_module_1.apSecond_(tsplus_module_13.set_(consumed, true, __tsplusTrace), tsplus_module_1.succeedNow(tsplus_module_11.apSecond_(tsplus_module_10.writeNow(leftovers), handoffConsumer), __tsplusTrace), __tsplusTrace);
465
471
  } else {
466
472
  return tsplus_module_1.map_(tsplus_module_5.take(handoff), signal => tsplus_module_5.matchSignal_(signal, {
467
473
  Emit: ({
468
474
  els
469
- }) => tsplus_module_11.apSecond_(tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_13.set_(consumed, true)), tsplus_module_10.writeNow(els)), handoffConsumer),
475
+ }) => tsplus_module_11.apSecond_(tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_13.set_(consumed, true, __tsplusTrace)), tsplus_module_10.writeNow(els)), handoffConsumer),
470
476
  Halt: ({
471
477
  error
472
478
  }) => tsplus_module_11.failCause(() => error),
@@ -476,37 +482,37 @@ function aggregateAsyncWithinEither_1(stream, sink, schedule) {
476
482
  if (reason._tag === "ScheduleEnd"
477
483
  /* SinkEndReasonTag.ScheduleEnd */
478
484
  ) {
479
- return tsplus_module_10.unwrap(() => tsplus_module_1.map_(tsplus_module_14.get(consumed), p => p ? tsplus_module_10.fromIO(() => tsplus_module_13.set_(sinkEndReason, new _SinkEndReason2.ScheduleEnd())) : tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_13.set_(sinkEndReason, new _SinkEndReason2.ScheduleEnd())), handoffConsumer), fileName_1 + ":110:37"));
485
+ return tsplus_module_10.unwrap(() => tsplus_module_1.map_(tsplus_module_14.get(consumed, __tsplusTrace), p => p ? tsplus_module_10.fromIO(() => tsplus_module_13.set_(sinkEndReason, new _SinkEndReason2.ScheduleEnd(), __tsplusTrace)) : tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_13.set_(sinkEndReason, new _SinkEndReason2.ScheduleEnd(), __tsplusTrace)), handoffConsumer), __tsplusTrace));
480
486
  } else {
481
- return tsplus_module_10.fromIO(() => tsplus_module_13.set_(sinkEndReason, reason));
487
+ return tsplus_module_10.fromIO(() => tsplus_module_13.set_(sinkEndReason, reason, __tsplusTrace));
482
488
  }
483
489
  }
484
- }), fileName_1 + ":103:34");
490
+ }), __tsplusTrace);
485
491
  }
486
- }, fileName_1 + ":99:55"));
492
+ }, __tsplusTrace));
487
493
 
488
- function timeout(lastB) {
489
- return scheduleDriver.next(lastB, fileName_1 + ":127:33");
494
+ function timeout(lastB, __tsplusTrace) {
495
+ return scheduleDriver.next(lastB, __tsplusTrace);
490
496
  }
491
497
 
492
498
  const scheduledAggregator = (sinkFiber, scheduleFiber) => {
493
- const forkSink = tsplus_module_1.apSecond_(tsplus_module_13.set_(consumed, false), tsplus_module_17.forkScoped(tsplus_module_16.runScoped(tsplus_module_10.doneCollect(tsplus_module_10.pipeToOrFail_(handoffConsumer, sink.channel))), fileName_1 + ":135:95"), fileName_1 + ":135:30");
499
+ const forkSink = tsplus_module_1.apSecond_(tsplus_module_13.set_(consumed, false, __tsplusTrace), tsplus_module_17.forkScoped(tsplus_module_16.runScoped(tsplus_module_10.doneCollect(tsplus_module_10.pipeToOrFail_(handoffConsumer, sink.channel))), __tsplusTrace), __tsplusTrace);
494
500
 
495
- function handleSide(leftovers, b, c) {
496
- return tsplus_module_10.unwrap(() => tsplus_module_1.apSecond_(tsplus_module_13.set_(sinkLeftovers, tsplus_module_12.flatten(leftovers)), tsplus_module_1.map_(tsplus_module_14.get(sinkEndReason), reason => tsplus_module_21.matchSinkEndReason_(reason, {
497
- ScheduleEnd: () => tsplus_module_10.unwrapScoped(() => tsplus_module_1.flatMap_(tsplus_module_14.get(consumed), consumed_ => tsplus_module_1.flatMap_(forkSink, sinkFiber => tsplus_module_1.map_(tsplus_module_17.forkScoped(timeout(tsplus_module_3.just(b)), fileName_1 + ":147:63"), scheduleFiber => {
501
+ function handleSide(leftovers, b, c, __tsplusTrace) {
502
+ return tsplus_module_10.unwrap(() => tsplus_module_1.apSecond_(tsplus_module_13.set_(sinkLeftovers, tsplus_module_12.flatten(leftovers), __tsplusTrace), tsplus_module_1.map_(tsplus_module_14.get(sinkEndReason, __tsplusTrace), reason => tsplus_module_21.matchSinkEndReason_(reason, {
503
+ ScheduleEnd: () => tsplus_module_10.unwrapScoped(() => tsplus_module_1.flatMap_(tsplus_module_14.get(consumed, __tsplusTrace), consumed_ => tsplus_module_1.flatMap_(forkSink, sinkFiber => tsplus_module_1.map_(tsplus_module_17.forkScoped(timeout(tsplus_module_3.just(b), __tsplusTrace), __tsplusTrace), scheduleFiber => {
498
504
  const toWrite = tsplus_module_20.match_(c, () => tsplus_module_19.make(tsplus_module_18.right(b)), c => tsplus_module_19.make(tsplus_module_18.right(b), tsplus_module_18.left(c)));
499
505
  return consumed_ ? tsplus_module_11.apSecond_(tsplus_module_10.write(() => toWrite), scheduledAggregator(sinkFiber, scheduleFiber)) : scheduledAggregator(sinkFiber, scheduleFiber);
500
- }, fileName_1 + ":147:46"), fileName_1 + ":146:46"), fileName_1 + ":145:46")),
501
- UpstreamEnd: () => tsplus_module_10.unwrap(() => tsplus_module_1.map_(tsplus_module_14.get(consumed), p => p ? tsplus_module_10.write(() => tsplus_module_19.make(tsplus_module_18.right(b))) : tsplus_module_10.unit, fileName_1 + ":158:50"))
502
- }), fileName_1 + ":140:34"), fileName_1 + ":139:49"));
506
+ }, __tsplusTrace), __tsplusTrace), __tsplusTrace)),
507
+ UpstreamEnd: () => tsplus_module_10.unwrap(() => tsplus_module_1.map_(tsplus_module_14.get(consumed, __tsplusTrace), p => p ? tsplus_module_10.write(() => tsplus_module_19.make(tsplus_module_18.right(b))) : tsplus_module_10.unit, __tsplusTrace))
508
+ }), __tsplusTrace), __tsplusTrace));
503
509
  }
504
510
 
505
- return tsplus_module_10.unwrap(() => tsplus_module_24.raceWith_(tsplus_module_22.join(sinkFiber), () => tsplus_module_22.join(scheduleFiber), (sinkExit, scheduleFiber) => tsplus_module_1.apSecond_(tsplus_module_23.interrupt(scheduleFiber), tsplus_module_1.map_(tsplus_module_1.fromExit(() => sinkExit, fileName_1 + ":169:24"), ([leftovers, b]) => handleSide(leftovers, b, tsplus_module_3.nothing()), fileName_1 + ":169:38"), fileName_1 + ":168:38"), (scheduleExit, sinkFiber) => tsplus_module_1.matchCauseIO_(tsplus_module_1.fromExit(() => scheduleExit, fileName_1 + ":171:24"), cause => tsplus_module_4.match_(tsplus_module_25.failureOrCause(cause), () => tsplus_module_1.apSecond_(tsplus_module_24.forkDaemon(tsplus_module_5.offer(handoff, tsplus_module_5.end(new _SinkEndReason2.ScheduleEnd())), fileName_1 + ":175:72"), tsplus_module_1.map_(tsplus_module_22.join(sinkFiber), ([leftovers, b]) => handleSide(leftovers, b, tsplus_module_3.nothing()), fileName_1 + ":176:39"), fileName_1 + ":175:85"), cause => tsplus_module_1.apSecond_(tsplus_module_24.forkDaemon(tsplus_module_5.offer(handoff, tsplus_module_5.halt(cause)), fileName_1 + ":178:61"), tsplus_module_1.map_(tsplus_module_22.join(sinkFiber), ([leftovers, b]) => handleSide(leftovers, b, tsplus_module_3.nothing()), fileName_1 + ":179:39"), fileName_1 + ":178:74")), c => tsplus_module_1.apSecond_(tsplus_module_24.forkDaemon(tsplus_module_5.offer(handoff, tsplus_module_5.end(new _SinkEndReason2.ScheduleEnd())), fileName_1 + ":182:68"), tsplus_module_1.map_(tsplus_module_22.join(sinkFiber), ([leftovers, b]) => handleSide(leftovers, b, tsplus_module_3.just(c)), fileName_1 + ":183:35"), fileName_1 + ":182:81"), fileName_1 + ":171:51"), fileName_1 + ":165:32"));
511
+ return tsplus_module_10.unwrap(() => tsplus_module_24.raceWith_(tsplus_module_22.join(sinkFiber, __tsplusTrace), () => tsplus_module_22.join(scheduleFiber, __tsplusTrace), (sinkExit, scheduleFiber) => tsplus_module_1.apSecond_(tsplus_module_23.interrupt(scheduleFiber, __tsplusTrace), tsplus_module_1.map_(tsplus_module_1.fromExit(() => sinkExit, __tsplusTrace), ([leftovers, b]) => handleSide(leftovers, b, tsplus_module_3.nothing(), __tsplusTrace), __tsplusTrace), __tsplusTrace), (scheduleExit, sinkFiber) => tsplus_module_1.matchCauseIO_(tsplus_module_1.fromExit(() => scheduleExit, __tsplusTrace), cause => tsplus_module_4.match_(tsplus_module_25.failureOrCause(cause), () => tsplus_module_1.apSecond_(tsplus_module_24.forkDaemon(tsplus_module_5.offer(handoff, tsplus_module_5.end(new _SinkEndReason2.ScheduleEnd())), __tsplusTrace), tsplus_module_1.map_(tsplus_module_22.join(sinkFiber, __tsplusTrace), ([leftovers, b]) => handleSide(leftovers, b, tsplus_module_3.nothing(), __tsplusTrace), __tsplusTrace), __tsplusTrace), cause => tsplus_module_1.apSecond_(tsplus_module_24.forkDaemon(tsplus_module_5.offer(handoff, tsplus_module_5.halt(cause)), __tsplusTrace), tsplus_module_1.map_(tsplus_module_22.join(sinkFiber, __tsplusTrace), ([leftovers, b]) => handleSide(leftovers, b, tsplus_module_3.nothing(), __tsplusTrace), __tsplusTrace), __tsplusTrace)), c => tsplus_module_1.apSecond_(tsplus_module_24.forkDaemon(tsplus_module_5.offer(handoff, tsplus_module_5.end(new _SinkEndReason2.ScheduleEnd())), __tsplusTrace), tsplus_module_1.map_(tsplus_module_22.join(sinkFiber, __tsplusTrace), ([leftovers, b]) => handleSide(leftovers, b, tsplus_module_3.just(c), __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace));
506
512
  };
507
513
 
508
- return unwrapScoped_1(tsplus_module_1.flatMap_(tsplus_module_17.forkScoped(tsplus_module_16.runScoped(tsplus_module_10.pipeTo_(stream.channel, handoffProducer)), fileName_1 + ":191:59"), () => tsplus_module_1.flatMap_(tsplus_module_17.forkScoped(tsplus_module_16.runScoped(tsplus_module_10.doneCollect(tsplus_module_10.pipeToOrFail_(handoffConsumer, sink.channel))), fileName_1 + ":192:97"), sinkFiber => tsplus_module_1.map_(tsplus_module_17.forkScoped(timeout(tsplus_module_3.nothing()), fileName_1 + ":193:51"), scheduleFiber => new _definition2.Stream(scheduledAggregator(sinkFiber, scheduleFiber)), fileName_1 + ":193:32"), fileName_1 + ":192:32"), fileName_1 + ":191:10"));
509
- });
514
+ return unwrapScoped_1(tsplus_module_1.flatMap_(tsplus_module_17.forkScoped(tsplus_module_16.runScoped(tsplus_module_10.pipeTo_(stream.channel, handoffProducer)), __tsplusTrace), () => tsplus_module_1.flatMap_(tsplus_module_17.forkScoped(tsplus_module_16.runScoped(tsplus_module_10.doneCollect(tsplus_module_10.pipeToOrFail_(handoffConsumer, sink.channel))), __tsplusTrace), sinkFiber => tsplus_module_1.map_(tsplus_module_17.forkScoped(timeout(tsplus_module_3.nothing(), __tsplusTrace), __tsplusTrace), scheduleFiber => new _definition2.Stream(scheduledAggregator(sinkFiber, scheduleFiber)), __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace);
515
+ }, __tsplusTrace);
510
516
  }
511
517
  /**
512
518
  * Composes this stream with the specified stream to create a cartesian product of elements,
@@ -517,8 +523,8 @@ function aggregateAsyncWithinEither_1(stream, sink, schedule) {
517
523
  */
518
524
 
519
525
 
520
- function apFirst_(stream, that) {
521
- return crossWith_1(stream, that, (a, _) => a);
526
+ function apFirst_(stream, that, __tsplusTrace) {
527
+ return crossWith_1(stream, that, (a, _) => a, __tsplusTrace);
522
528
  }
523
529
  /**
524
530
  * Composes this stream with the specified stream to create a cartesian product of elements,
@@ -529,8 +535,8 @@ function apFirst_(stream, that) {
529
535
  */
530
536
 
531
537
 
532
- function apSecond_1(stream, that) {
533
- return crossWith_1(stream, that, (_, b) => b);
538
+ function apSecond_1(stream, that, __tsplusTrace) {
539
+ return crossWith_1(stream, that, (_, b) => b, __tsplusTrace);
534
540
  }
535
541
  /**
536
542
  * Maps the success values of this stream to the specified constant value.
@@ -539,22 +545,22 @@ function apSecond_1(stream, that) {
539
545
  */
540
546
 
541
547
 
542
- function as_(stream, b) {
543
- return map_1(stream, () => b());
548
+ function as_(stream, b, __tsplusTrace) {
549
+ return map_1(stream, () => b(), __tsplusTrace);
544
550
  }
545
551
  /**
546
552
  * @tsplus static fncts.io.StreamOps asyncInterrupt
547
553
  */
548
554
 
549
555
 
550
- function asyncInterrupt_1(register, outputBuffer = 16) {
551
- return unwrapScoped_1(tsplus_module_1.flatMap_(tsplus_module_30.acquireRelease(() => tsplus_module_29.makeBounded(outputBuffer), queue => tsplus_module_27.shutdown(queue)), output => tsplus_module_1.flatMap_(tsplus_module_28.runtime(fileName_1 + ":249:40"), runtime => tsplus_module_1.map_(tsplus_module_1.succeed(() => register((k, cb) => {
552
- const effect = tsplus_module_1.flatMap_(tsplus_module_26.fromPull(k), a => tsplus_module_27.offer_(output, a), fileName_1 + ":253:52");
553
- return runtime.unsafeRunAsyncWith(effect, cb || _function.constVoid, fileName_1 + ":254:46");
554
- }), fileName_1 + ":251:19"), eitherStream => tsplus_module_4.match_(eitherStream, canceler => {
555
- const loop = tsplus_module_10.unwrap(() => tsplus_module_1.match_(tsplus_module_1.flatMap_(tsplus_module_27.take(output), take => tsplus_module_26.done(take), fileName_1 + ":262:23"), maybeError => tsplus_module_20.match_(maybeError, () => tsplus_module_11.endNow(undefined), tsplus_module_10.failNow), as => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(as), loop), fileName_1 + ":263:21"));
556
- return ensuring_1(new _definition2.Stream(loop), canceler);
557
- }, stream => unwrap_1(tsplus_module_1.as_(tsplus_module_27.shutdown(output), () => stream))), fileName_1 + ":250:29"), fileName_1 + ":249:29"), fileName_1 + ":248:29"));
556
+ function asyncInterrupt_1(register, outputBuffer = 16, __tsplusTrace) {
557
+ return unwrapScoped_1(tsplus_module_1.flatMap_(tsplus_module_30.acquireRelease(() => tsplus_module_29.makeBounded(outputBuffer, __tsplusTrace), queue => tsplus_module_27.shutdown(queue, __tsplusTrace), __tsplusTrace), output => tsplus_module_1.flatMap_(tsplus_module_28.runtime(__tsplusTrace), runtime => tsplus_module_1.map_(tsplus_module_1.succeed(() => register((k, cb) => {
558
+ const effect = tsplus_module_1.flatMap_(tsplus_module_26.fromPull(k), a => tsplus_module_27.offer_(output, a, __tsplusTrace), __tsplusTrace);
559
+ return runtime.unsafeRunAsyncWith(effect, cb || _function.constVoid, __tsplusTrace);
560
+ }), __tsplusTrace), eitherStream => tsplus_module_4.match_(eitherStream, canceler => {
561
+ const loop = tsplus_module_10.unwrap(() => tsplus_module_1.match_(tsplus_module_1.flatMap_(tsplus_module_27.take(output, __tsplusTrace), take => tsplus_module_26.done(take), __tsplusTrace), maybeError => tsplus_module_20.match_(maybeError, () => tsplus_module_11.endNow(undefined), tsplus_module_10.failNow), as => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(as), loop), __tsplusTrace));
562
+ return ensuring_1(new _definition2.Stream(loop), canceler, __tsplusTrace);
563
+ }, stream => unwrap_1(tsplus_module_1.as_(tsplus_module_27.shutdown(output, __tsplusTrace), () => stream, __tsplusTrace), __tsplusTrace)), __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace);
558
564
  }
559
565
  /**
560
566
  * Creates a stream from an asynchronous callback that can be called multiple times.
@@ -566,30 +572,30 @@ function asyncInterrupt_1(register, outputBuffer = 16) {
566
572
  */
567
573
 
568
574
 
569
- function asyncMaybe_1(register, outputBuffer = 16) {
570
- return asyncInterrupt_1(k => tsplus_module_20.match_(register(k), () => tsplus_module_18.left(tsplus_module_1.unit), tsplus_module_18.right), outputBuffer);
575
+ function asyncMaybe_1(register, outputBuffer = 16, __tsplusTrace) {
576
+ return asyncInterrupt_1(k => tsplus_module_20.match_(register(k), () => tsplus_module_18.left(tsplus_module_1.unit), tsplus_module_18.right), outputBuffer, __tsplusTrace);
571
577
  }
572
578
  /**
573
579
  * @tsplus static fncts.io.StreamOps async
574
580
  */
575
581
 
576
582
 
577
- function async(register, outputBuffer = 16) {
583
+ function async(register, outputBuffer = 16, __tsplusTrace) {
578
584
  return asyncMaybe_1(cb => {
579
585
  register(cb);
580
586
  return tsplus_module_3.nothing();
581
- }, outputBuffer);
587
+ }, outputBuffer, __tsplusTrace);
582
588
  }
583
589
  /**
584
590
  * @tsplus static fncts.io.StreamOps asyncIO
585
591
  */
586
592
 
587
593
 
588
- function asyncIO(register, outputBuffer = 16) {
589
- return new _definition2.Stream(tsplus_module_10.unwrapScoped(() => tsplus_module_1.flatMap_(tsplus_module_30.acquireRelease(() => tsplus_module_29.makeBounded(outputBuffer), _ => tsplus_module_27.shutdown(_)), output => tsplus_module_1.flatMap_(tsplus_module_28.runtime(fileName_1 + ":319:37"), runtime => tsplus_module_1.map_(register((k, cb) => runtime.unsafeRunAsyncWith(tsplus_module_1.flatMap_(tsplus_module_26.fromPull(k), a => tsplus_module_27.offer_(output, a), fileName_1 + ":323:39"), cb || _function.constVoid, fileName_1 + ":322:39")), () => {
590
- const loop = tsplus_module_10.unwrap(() => tsplus_module_1.matchCauseIO_(tsplus_module_1.flatMap_(tsplus_module_27.take(output), take => tsplus_module_26.done(take), fileName_1 + ":330:21"), cause => tsplus_module_1.as_(tsplus_module_27.shutdown(output), () => tsplus_module_4.match_(tsplus_module_25.failureOrCause(cause), maybeError => tsplus_module_20.match_(maybeError, () => tsplus_module_11.endNow(undefined), tsplus_module_10.failNow), tsplus_module_11.failCauseNow)), as => tsplus_module_1.succeed(() => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(as), loop), fileName_1 + ":339:33"), fileName_1 + ":331:26"));
594
+ function asyncIO(register, outputBuffer = 16, __tsplusTrace) {
595
+ return new _definition2.Stream(tsplus_module_10.unwrapScoped(() => tsplus_module_1.flatMap_(tsplus_module_30.acquireRelease(() => tsplus_module_29.makeBounded(outputBuffer, __tsplusTrace), _ => tsplus_module_27.shutdown(_, __tsplusTrace), __tsplusTrace), output => tsplus_module_1.flatMap_(tsplus_module_28.runtime(__tsplusTrace), runtime => tsplus_module_1.map_(register((k, cb) => runtime.unsafeRunAsyncWith(tsplus_module_1.flatMap_(tsplus_module_26.fromPull(k), a => tsplus_module_27.offer_(output, a, __tsplusTrace), __tsplusTrace), cb || _function.constVoid, __tsplusTrace)), () => {
596
+ const loop = tsplus_module_10.unwrap(() => tsplus_module_1.matchCauseIO_(tsplus_module_1.flatMap_(tsplus_module_27.take(output, __tsplusTrace), take => tsplus_module_26.done(take), __tsplusTrace), cause => tsplus_module_1.as_(tsplus_module_27.shutdown(output, __tsplusTrace), () => tsplus_module_4.match_(tsplus_module_25.failureOrCause(cause), maybeError => tsplus_module_20.match_(maybeError, () => tsplus_module_11.endNow(undefined), tsplus_module_10.failNow), tsplus_module_11.failCauseNow), __tsplusTrace), as => tsplus_module_1.succeed(() => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(as), loop), __tsplusTrace), __tsplusTrace));
591
597
  return loop;
592
- }, fileName_1 + ":320:10"), fileName_1 + ":319:26"), fileName_1 + ":318:26")));
598
+ }, __tsplusTrace), __tsplusTrace), __tsplusTrace)));
593
599
  }
594
600
  /**
595
601
  * Returns a stream whose failure and success channels have been mapped by
@@ -597,8 +603,8 @@ function asyncIO(register, outputBuffer = 16) {
597
603
  */
598
604
 
599
605
 
600
- function bimap_(stream, f, g) {
601
- return map_1(mapError_1(stream, f), g);
606
+ function bimap_(stream, f, g, __tsplusTrace) {
607
+ return map_1(mapError_1(stream, f, __tsplusTrace), g, __tsplusTrace);
602
608
  }
603
609
  /**
604
610
  * Creates a stream from a single value that will get cleaned up after the
@@ -608,8 +614,8 @@ function bimap_(stream, f, g) {
608
614
  */
609
615
 
610
616
 
611
- function acquireRelease_(acquire, release) {
612
- return scoped_1(tsplus_module_30.acquireRelease(() => acquire, release));
617
+ function acquireRelease_(acquire, release, __tsplusTrace) {
618
+ return scoped_1(tsplus_module_30.acquireRelease(() => acquire, release, __tsplusTrace), __tsplusTrace);
613
619
  }
614
620
  /**
615
621
  * Creates a stream from a single value that will get cleaned up after the
@@ -619,8 +625,8 @@ function acquireRelease_(acquire, release) {
619
625
  */
620
626
 
621
627
 
622
- function acquireReleaseExit_(acquire, release) {
623
- return scoped_1(tsplus_module_31.acquireReleaseExit(() => acquire, release, fileName_1 + ":379:45"));
628
+ function acquireReleaseExit_(acquire, release, __tsplusTrace) {
629
+ return scoped_1(tsplus_module_31.acquireReleaseExit(() => acquire, release, __tsplusTrace), __tsplusTrace);
624
630
  }
625
631
  /**
626
632
  * Fan out the stream, producing a list of streams that have the same elements as this stream.
@@ -631,8 +637,8 @@ function acquireReleaseExit_(acquire, release) {
631
637
  */
632
638
 
633
639
 
634
- function broadcast_(stream, n, maximumLag) {
635
- return tsplus_module_1.map_(broadcastedQueues_1(stream, n, maximumLag), c => tsplus_module_12.map_(c, hub => flattenTake_1(fromQueueWithShutdown_1(hub))), fileName_1 + ":396:9");
640
+ function broadcast_(stream, n, maximumLag, __tsplusTrace) {
641
+ return tsplus_module_1.map_(broadcastedQueues_1(stream, n, maximumLag, __tsplusTrace), c => tsplus_module_12.map_(c, hub => flattenTake_1(fromQueueWithShutdown_1(hub), __tsplusTrace)), __tsplusTrace);
636
642
  }
637
643
  /**
638
644
  * Fan out the stream, producing a dynamic number of streams that have the same elements as this stream.
@@ -643,8 +649,8 @@ function broadcast_(stream, n, maximumLag) {
643
649
  */
644
650
 
645
651
 
646
- function broadcastDynamic_(stream, maximumLag) {
647
- return tsplus_module_1.map_(broadcastedQueuesDynamic_1(stream, maximumLag), scoped => flattenTake_1(flatMap_1(scoped_1(scoped), fromQueue_1)), fileName_1 + ":412:9");
652
+ function broadcastDynamic_(stream, maximumLag, __tsplusTrace) {
653
+ return tsplus_module_1.map_(broadcastedQueuesDynamic_1(stream, maximumLag, __tsplusTrace), scoped => flattenTake_1(flatMap_1(scoped_1(scoped, __tsplusTrace), fromQueue_1, __tsplusTrace), __tsplusTrace), __tsplusTrace);
648
654
  }
649
655
  /**
650
656
  * Converts the stream to a managed list of queues. Every value will be replicated to every queue with the
@@ -656,8 +662,8 @@ function broadcastDynamic_(stream, maximumLag) {
656
662
  */
657
663
 
658
664
 
659
- function broadcastedQueues_1(stream, n, maximumLag) {
660
- return tsplus_module_1.flatMap_(tsplus_module_32.makeBounded(maximumLag), hub => tsplus_module_1.flatMap_(tsplus_module_1.sequenceIterable(tsplus_module_33.replicate(n, tsplus_module_32.subscribe(hub))), queues => tsplus_module_1.map_(tsplus_module_1.fork(runIntoHubScoped_1(stream, hub), fileName_1 + ":431:35"), () => queues, fileName_1 + ":431:6"), fileName_1 + ":430:21"), fileName_1 + ":429:21");
665
+ function broadcastedQueues_1(stream, n, maximumLag, __tsplusTrace) {
666
+ return tsplus_module_1.flatMap_(tsplus_module_32.makeBounded(maximumLag, __tsplusTrace), hub => tsplus_module_1.flatMap_(tsplus_module_1.sequenceIterable(tsplus_module_33.replicate(n, tsplus_module_32.subscribe(hub, __tsplusTrace)), __tsplusTrace), queues => tsplus_module_1.map_(tsplus_module_1.fork(runIntoHubScoped_1(stream, hub, __tsplusTrace), __tsplusTrace), () => queues, __tsplusTrace), __tsplusTrace), __tsplusTrace);
661
667
  }
662
668
  /**
663
669
  * Converts the stream to a managed dynamic amount of queues. Every chunk will be replicated to every queue with the
@@ -669,8 +675,8 @@ function broadcastedQueues_1(stream, n, maximumLag) {
669
675
  */
670
676
 
671
677
 
672
- function broadcastedQueuesDynamic_1(stream, maximumLag) {
673
- return tsplus_module_1.map_(toHub_1(stream, maximumLag), hub => tsplus_module_32.subscribe(hub), fileName_1 + ":448:38");
678
+ function broadcastedQueuesDynamic_1(stream, maximumLag, __tsplusTrace) {
679
+ return tsplus_module_1.map_(toHub_1(stream, maximumLag, __tsplusTrace), hub => tsplus_module_32.subscribe(hub, __tsplusTrace), __tsplusTrace);
674
680
  }
675
681
  /**
676
682
  * Allows a faster producer to progress independently of a slower consumer by buffering
@@ -680,24 +686,24 @@ function broadcastedQueuesDynamic_1(stream, maximumLag) {
680
686
  */
681
687
 
682
688
 
683
- function buffer_(stream, capacity) {
684
- const queue = toQueueOfElements_1(stream, capacity);
689
+ function buffer_(stream, capacity, __tsplusTrace) {
690
+ const queue = toQueueOfElements_1(stream, capacity, __tsplusTrace);
685
691
  return new _definition2.Stream(tsplus_module_10.unwrapScoped(() => tsplus_module_1.map_(queue, queue => {
686
- const process = tsplus_module_11.flatMap_(tsplus_module_10.fromIO(() => tsplus_module_27.take(queue)), exit => tsplus_module_34.match_(exit, cause => tsplus_module_20.match_(tsplus_module_25.flipCauseOption(cause), () => tsplus_module_11.endNow(undefined), tsplus_module_11.failCauseNow), value => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(tsplus_module_19.single(value)), process)));
692
+ const process = tsplus_module_11.flatMap_(tsplus_module_10.fromIO(() => tsplus_module_27.take(queue, __tsplusTrace)), exit => tsplus_module_34.match_(exit, cause => tsplus_module_20.match_(tsplus_module_25.flipCauseOption(cause), () => tsplus_module_11.endNow(undefined), tsplus_module_11.failCauseNow), value => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(tsplus_module_19.single(value)), process)));
687
693
  return process;
688
- }, fileName_1 + ":461:16")));
694
+ }, __tsplusTrace)));
689
695
  }
690
696
  /**
691
697
  * @tsplus fluent fncts.io.Stream bufferChunks
692
698
  */
693
699
 
694
700
 
695
- function bufferChunks_(stream, capacity) {
696
- const queue = toQueue_1(stream, capacity);
701
+ function bufferChunks_(stream, capacity, __tsplusTrace) {
702
+ const queue = toQueue_1(stream, capacity, __tsplusTrace);
697
703
  return new _definition2.Stream(tsplus_module_10.unwrapScoped(() => tsplus_module_1.map_(queue, queue => {
698
- const process = tsplus_module_11.flatMap_(tsplus_module_10.fromIO(() => tsplus_module_27.take(queue)), take => tsplus_module_26.match_(take, tsplus_module_11.endNow(undefined), tsplus_module_11.failCauseNow, value => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(value), process)));
704
+ const process = tsplus_module_11.flatMap_(tsplus_module_10.fromIO(() => tsplus_module_27.take(queue, __tsplusTrace)), take => tsplus_module_26.match_(take, tsplus_module_11.endNow(undefined), tsplus_module_11.failCauseNow, value => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(value), process)));
699
705
  return process;
700
- }, fileName_1 + ":483:16")));
706
+ }, __tsplusTrace)));
701
707
  }
702
708
  /**
703
709
  * Allows a faster producer to progress independently of a slower consumer by buffering
@@ -707,22 +713,22 @@ function bufferChunks_(stream, capacity) {
707
713
  */
708
714
 
709
715
 
710
- function bufferUnbounded(stream) {
711
- const queue = toQueueUnbounded_1(stream);
716
+ function bufferUnbounded(stream, __tsplusTrace) {
717
+ const queue = toQueueUnbounded_1(stream, __tsplusTrace);
712
718
  return new _definition2.Stream(tsplus_module_10.unwrapScoped(() => tsplus_module_1.map_(queue, queue => {
713
- const process = tsplus_module_11.flatMap_(tsplus_module_10.fromIO(() => tsplus_module_27.take(queue)), take => tsplus_module_26.match_(take, tsplus_module_11.endNow(undefined), tsplus_module_11.failCauseNow, value => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(value), process)));
719
+ const process = tsplus_module_11.flatMap_(tsplus_module_10.fromIO(() => tsplus_module_27.take(queue, __tsplusTrace)), take => tsplus_module_26.match_(take, tsplus_module_11.endNow(undefined), tsplus_module_11.failCauseNow, value => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(value), process)));
714
720
  return process;
715
- }, fileName_1 + ":508:16")));
721
+ }, __tsplusTrace)));
716
722
  }
717
723
 
718
- function bufferSignalProducer(queue, ref) {
719
- const terminate = take => tsplus_module_10.fromIO(() => tsplus_module_1.flatMap_(tsplus_module_14.get(ref), latch => tsplus_module_1.flatMap_(tsplus_module_35.wait(latch), () => tsplus_module_1.flatMap_(tsplus_module_36.make(), p => tsplus_module_1.flatMap_(tsplus_module_27.offer_(queue, (0, _function.tuple)(take, p)), () => tsplus_module_1.flatMap_(tsplus_module_13.set_(ref, p), () => tsplus_module_1.map_(tsplus_module_35.wait(p), () => void 0, fileName_1 + ":535:10"), fileName_1 + ":534:10"), fileName_1 + ":533:10"), fileName_1 + ":532:20"), fileName_1 + ":531:10"), fileName_1 + ":530:24"));
724
+ function bufferSignalProducer(queue, ref, __tsplusTrace) {
725
+ const terminate = take => tsplus_module_10.fromIO(() => tsplus_module_1.flatMap_(tsplus_module_14.get(ref, __tsplusTrace), latch => tsplus_module_1.flatMap_(tsplus_module_35.wait(latch, __tsplusTrace), () => tsplus_module_1.flatMap_(tsplus_module_36.make(__tsplusTrace), p => tsplus_module_1.flatMap_(tsplus_module_27.offer_(queue, (0, _function.tuple)(take, p), __tsplusTrace), () => tsplus_module_1.flatMap_(tsplus_module_13.set_(ref, p, __tsplusTrace), () => tsplus_module_1.map_(tsplus_module_35.wait(p, __tsplusTrace), () => void 0, __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace));
720
726
 
721
- return tsplus_module_10.readWith(inp => tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_1.flatMap_(tsplus_module_36.make(), p => tsplus_module_1.flatMap_(tsplus_module_27.offer_(queue, (0, _function.tuple)(tsplus_module_26.chunk(inp), p)), added => tsplus_module_1.map_(tsplus_module_1.when_(tsplus_module_13.set_(ref, p), () => added, fileName_1 + ":544:28"), () => void 0, fileName_1 + ":544:12"), fileName_1 + ":543:26"), fileName_1 + ":542:26")), bufferSignalProducer(queue, ref)), e => terminate(tsplus_module_26.fail(e)), () => terminate(tsplus_module_26.end));
727
+ return tsplus_module_10.readWith(inp => tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_1.flatMap_(tsplus_module_36.make(__tsplusTrace), p => tsplus_module_1.flatMap_(tsplus_module_27.offer_(queue, (0, _function.tuple)(tsplus_module_26.chunk(inp), p), __tsplusTrace), added => tsplus_module_1.map_(tsplus_module_1.when_(tsplus_module_13.set_(ref, p, __tsplusTrace), () => added, __tsplusTrace), () => void 0, __tsplusTrace), __tsplusTrace), __tsplusTrace)), bufferSignalProducer(queue, ref, __tsplusTrace)), e => terminate(tsplus_module_26.fail(e)), () => terminate(tsplus_module_26.end));
722
728
  }
723
729
 
724
- function bufferSignalConsumer(queue) {
725
- const process = tsplus_module_11.flatMap_(tsplus_module_10.fromIO(() => tsplus_module_27.take(queue)), ([take, promise]) => tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_35.succeed_(promise, undefined)), tsplus_module_26.match_(take, tsplus_module_11.endNow(undefined), tsplus_module_11.failCauseNow, value => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(value), process))));
730
+ function bufferSignalConsumer(queue, __tsplusTrace) {
731
+ const process = tsplus_module_11.flatMap_(tsplus_module_10.fromIO(() => tsplus_module_27.take(queue, __tsplusTrace)), ([take, promise]) => tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_35.succeed_(promise, undefined, __tsplusTrace)), tsplus_module_26.match_(take, tsplus_module_11.endNow(undefined), tsplus_module_11.failCauseNow, value => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(value), process))));
726
732
  return process;
727
733
  }
728
734
  /**
@@ -733,8 +739,8 @@ function bufferSignalConsumer(queue) {
733
739
  */
734
740
 
735
741
 
736
- function catchAll_1(stream, f) {
737
- return catchAllCause_1(stream, cause => tsplus_module_4.match_(tsplus_module_25.failureOrCause(cause), f, failCauseNow_1));
742
+ function catchAll_1(stream, f, __tsplusTrace) {
743
+ return catchAllCause_1(stream, cause => tsplus_module_4.match_(tsplus_module_25.failureOrCause(cause), f, failCauseNow_1), __tsplusTrace);
738
744
  }
739
745
  /**
740
746
  * Switches over to the stream produced by the provided function in case this one
@@ -745,7 +751,7 @@ function catchAll_1(stream, f) {
745
751
  */
746
752
 
747
753
 
748
- function catchAllCause_1(stream, f) {
754
+ function catchAllCause_1(stream, f, __tsplusTrace) {
749
755
  const channel = tsplus_module_10.catchAllCause_(stream.channel, cause => f(cause).channel);
750
756
  return new _definition2.Stream(channel);
751
757
  }
@@ -757,8 +763,8 @@ function catchAllCause_1(stream, f) {
757
763
  */
758
764
 
759
765
 
760
- function catchJust_(stream, pf) {
761
- return catchAll_1(stream, e => tsplus_module_37.getOrElse_(pf(e), () => failNow_1(e)));
766
+ function catchJust_(stream, pf, __tsplusTrace) {
767
+ return catchAll_1(stream, e => tsplus_module_37.getOrElse_(pf(e), () => failNow_1(e, __tsplusTrace)), __tsplusTrace);
762
768
  }
763
769
  /**
764
770
  * Switches over to the stream produced by the provided function in case this one
@@ -769,8 +775,8 @@ function catchJust_(stream, pf) {
769
775
  */
770
776
 
771
777
 
772
- function catchJustCause_(stream, pf) {
773
- return catchAllCause_1(stream, cause => tsplus_module_37.getOrElse_(pf(cause), () => failCauseNow_1(cause)));
778
+ function catchJustCause_(stream, pf, __tsplusTrace) {
779
+ return catchAllCause_1(stream, cause => tsplus_module_37.getOrElse_(pf(cause), () => failCauseNow_1(cause, __tsplusTrace)), __tsplusTrace);
774
780
  }
775
781
  /**
776
782
  * Returns a stream made of the concatenation in strict order of all the streams
@@ -780,7 +786,7 @@ function catchJustCause_(stream, pf) {
780
786
  */
781
787
 
782
788
 
783
- function flatMap_1(stream, f) {
789
+ function flatMap_1(stream, f, __tsplusTrace) {
784
790
  return new _definition2.Stream(tsplus_module_10.concatMap_(stream.channel, as => tsplus_module_12.foldLeft_(tsplus_module_12.map_(as, a => f(a).channel), tsplus_module_10.unit, (s, a) => tsplus_module_11.flatMap_(s, () => a))));
785
791
  }
786
792
  /**
@@ -790,14 +796,25 @@ function flatMap_1(stream, f) {
790
796
  */
791
797
 
792
798
 
793
- function chunks(stream) {
794
- return mapChunks_1(stream, tsplus_module_19.single);
799
+ function chunks_1(stream, __tsplusTrace) {
800
+ return mapChunks_1(stream, tsplus_module_19.single, __tsplusTrace);
801
+ }
802
+ /**
803
+ * Performs the specified stream transformation with the chunk structure of
804
+ * the stream exposed.
805
+ *
806
+ * @tsplus fluent fncts.io.Stream chunksWith
807
+ */
808
+
809
+
810
+ function chunksWith(self, f, __tsplusTrace) {
811
+ return flattenChunks_1(f(chunks_1(self, __tsplusTrace)), __tsplusTrace);
795
812
  }
796
813
 
797
- function changesWithWriter(f, last) {
814
+ function changesWithWriter(f, last, __tsplusTrace) {
798
815
  return tsplus_module_10.readWithCause(chunk => {
799
816
  const [newLast, newChunk] = tsplus_module_12.foldLeft_(chunk, [last, tsplus_module_7.empty()], ([maybeLast, os], o1) => tsplus_module_20.match_(maybeLast, () => [tsplus_module_3.just(o1), tsplus_module_12.append_(os, o1)], o => f(o, o1) ? [tsplus_module_3.just(o1), os] : [tsplus_module_3.just(o1), tsplus_module_12.append_(os, o1)]));
800
- return tsplus_module_11.apSecond_(tsplus_module_10.writeNow(newChunk), changesWithWriter(f, newLast));
817
+ return tsplus_module_11.apSecond_(tsplus_module_10.writeNow(newChunk), changesWithWriter(f, newLast, __tsplusTrace));
801
818
  }, tsplus_module_11.failCauseNow, () => tsplus_module_10.unit);
802
819
  }
803
820
  /**
@@ -809,8 +826,8 @@ function changesWithWriter(f, last) {
809
826
  */
810
827
 
811
828
 
812
- function changesWith_(stream, f) {
813
- return new _definition2.Stream(tsplus_module_10.pipeTo_(stream.channel, changesWithWriter(f, tsplus_module_3.nothing())));
829
+ function changesWith_(stream, f, __tsplusTrace) {
830
+ return new _definition2.Stream(tsplus_module_10.pipeTo_(stream.channel, changesWithWriter(f, tsplus_module_3.nothing(), __tsplusTrace)));
814
831
  }
815
832
  /**
816
833
  * Transforms all elements of the stream for as long as the specified partial function is defined.
@@ -819,7 +836,7 @@ function changesWith_(stream, f) {
819
836
  */
820
837
 
821
838
 
822
- function collectWhile_(stream, pf) {
839
+ function collectWhile_(stream, pf, __tsplusTrace) {
823
840
  const loop = tsplus_module_10.readWith(inp => {
824
841
  const mapped = tsplus_module_12.collectWhile_(inp, pf);
825
842
 
@@ -836,22 +853,22 @@ function collectWhile_(stream, pf) {
836
853
  */
837
854
 
838
855
 
839
- function collectWhileIO_(stream, pf) {
840
- return new _definition2.Stream(tsplus_module_10.pipeTo_(stream.channel, collectWhileIOLoop(tsplus_module_38.empty()[Symbol.iterator](), pf)));
856
+ function collectWhileIO_(stream, pf, __tsplusTrace) {
857
+ return new _definition2.Stream(tsplus_module_10.pipeTo_(stream.channel, collectWhileIOLoop(tsplus_module_38.empty()[Symbol.iterator](), pf, __tsplusTrace)));
841
858
  }
842
859
 
843
- function collectWhileIOLoop(iterator, pf) {
860
+ function collectWhileIOLoop(iterator, pf, __tsplusTrace) {
844
861
  const next = iterator.next();
845
862
 
846
863
  if (next.done) {
847
- return tsplus_module_10.readWithCause(elem => collectWhileIOLoop(elem[Symbol.iterator](), pf), tsplus_module_11.failCauseNow, tsplus_module_11.succeedNow);
864
+ return tsplus_module_10.readWithCause(elem => collectWhileIOLoop(elem[Symbol.iterator](), pf, __tsplusTrace), tsplus_module_11.failCauseNow, tsplus_module_11.succeedNow);
848
865
  } else {
849
- return tsplus_module_10.unwrap(() => tsplus_module_20.match_(pf(next.value), () => tsplus_module_1.succeedNow(tsplus_module_10.unit, fileName_1 + ":730:28"), b => tsplus_module_1.map_(b, b => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(tsplus_module_19.single(b)), collectWhileIOLoop(iterator, pf)), fileName_1 + ":731:21")));
866
+ return tsplus_module_10.unwrap(() => tsplus_module_20.match_(pf(next.value), () => tsplus_module_1.succeedNow(tsplus_module_10.unit, __tsplusTrace), b => tsplus_module_1.map_(b, b => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(tsplus_module_19.single(b)), collectWhileIOLoop(iterator, pf, __tsplusTrace)), __tsplusTrace)));
850
867
  }
851
868
  }
852
869
 
853
- function combineProducer(handoff, latch) {
854
- return tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_5.take(latch)), tsplus_module_10.readWithCause(value => tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_39.succeed(value))), combineProducer(handoff, latch)), cause => tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_39.failCause(tsplus_module_25.map_(cause, tsplus_module_3.just)))), () => tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_39.fail(tsplus_module_3.nothing()))), combineProducer(handoff, latch))));
870
+ function combineProducer(handoff, latch, __tsplusTrace) {
871
+ return tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_5.take(latch)), tsplus_module_10.readWithCause(value => tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_39.succeed(value))), combineProducer(handoff, latch, __tsplusTrace)), cause => tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_39.failCause(tsplus_module_25.map_(cause, tsplus_module_3.just)))), () => tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_39.fail(tsplus_module_3.nothing()))), combineProducer(handoff, latch, __tsplusTrace))));
855
872
  }
856
873
  /**
857
874
  * Combines the elements from this stream and the specified stream by repeatedly applying the
@@ -865,16 +882,16 @@ function combineProducer(handoff, latch) {
865
882
  */
866
883
 
867
884
 
868
- function combine_(stream, that, s, f) {
869
- return new _definition2.Stream(tsplus_module_10.unwrapScoped(() => tsplus_module_1.map_(tsplus_module_1.flatMap_(tsplus_module_5.make(), left => tsplus_module_1.flatMap_(tsplus_module_5.make(), right => tsplus_module_1.flatMap_(tsplus_module_5.make(), latchL => tsplus_module_1.flatMap_(tsplus_module_5.make(), latchR => tsplus_module_1.flatMap_(tsplus_module_1.fork(tsplus_module_16.runScoped(tsplus_module_10.pipeTo_(tsplus_module_10.concatMap_(stream.channel, tsplus_module_10.writeChunk), combineProducer(left, latchL))), fileName_1 + ":777:103"), () => tsplus_module_1.map_(tsplus_module_1.fork(tsplus_module_16.runScoped(tsplus_module_10.pipeTo_(tsplus_module_10.concatMap_(that.channel, tsplus_module_10.writeChunk), combineProducer(right, latchR))), fileName_1 + ":778:102"), () => (0, _function.tuple)(left, right, latchL, latchR), fileName_1 + ":778:10"), fileName_1 + ":777:10"), fileName_1 + ":776:25"), fileName_1 + ":775:25"), fileName_1 + ":774:25"), fileName_1 + ":773:25"), ([left, right, latchL, latchR]) => {
870
- const pullLeft = tsplus_module_1.flatMap_(tsplus_module_1.apSecond_(tsplus_module_5.offer(latchL, undefined), tsplus_module_5.take(left), fileName_1 + ":781:59"), tsplus_module_1.fromExitNow, fileName_1 + ":781:78");
871
- const pullRight = tsplus_module_1.flatMap_(tsplus_module_1.apSecond_(tsplus_module_5.offer(latchR, undefined), tsplus_module_5.take(right), fileName_1 + ":782:59"), tsplus_module_1.fromExitNow, fileName_1 + ":782:79");
872
- return unfoldIO_1(s, s => tsplus_module_1.flatMap_(f(s, pullLeft, pullRight), exit => tsplus_module_1.optional(tsplus_module_1.fromExitNow(exit, fileName_1 + ":783:100")), fileName_1 + ":783:75")).channel;
873
- }, fileName_1 + ":780:13")));
885
+ function combine_(stream, that, s, f, __tsplusTrace) {
886
+ return new _definition2.Stream(tsplus_module_10.unwrapScoped(() => tsplus_module_1.map_(tsplus_module_1.flatMap_(tsplus_module_5.make(), left => tsplus_module_1.flatMap_(tsplus_module_5.make(), right => tsplus_module_1.flatMap_(tsplus_module_5.make(), latchL => tsplus_module_1.flatMap_(tsplus_module_5.make(), latchR => tsplus_module_1.flatMap_(tsplus_module_1.fork(tsplus_module_16.runScoped(tsplus_module_10.pipeTo_(tsplus_module_10.concatMap_(stream.channel, tsplus_module_10.writeChunk), combineProducer(left, latchL, __tsplusTrace))), __tsplusTrace), () => tsplus_module_1.map_(tsplus_module_1.fork(tsplus_module_16.runScoped(tsplus_module_10.pipeTo_(tsplus_module_10.concatMap_(that.channel, tsplus_module_10.writeChunk), combineProducer(right, latchR, __tsplusTrace))), __tsplusTrace), () => (0, _function.tuple)(left, right, latchL, latchR), __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace), ([left, right, latchL, latchR]) => {
887
+ const pullLeft = tsplus_module_1.flatMap_(tsplus_module_1.apSecond_(tsplus_module_5.offer(latchL, undefined), tsplus_module_5.take(left), __tsplusTrace), tsplus_module_1.fromExitNow, __tsplusTrace);
888
+ const pullRight = tsplus_module_1.flatMap_(tsplus_module_1.apSecond_(tsplus_module_5.offer(latchR, undefined), tsplus_module_5.take(right), __tsplusTrace), tsplus_module_1.fromExitNow, __tsplusTrace);
889
+ return unfoldIO_1(s, s => tsplus_module_1.flatMap_(f(s, pullLeft, pullRight), exit => tsplus_module_1.optional(tsplus_module_1.fromExitNow(exit, __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace).channel;
890
+ }, __tsplusTrace)));
874
891
  }
875
892
 
876
- function combineChunksProducer(handoff, latch) {
877
- return tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_5.take(latch)), tsplus_module_10.readWithCause(chunk => tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_26.chunk(chunk))), combineChunksProducer(handoff, latch)), cause => tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_26.failCause(cause))), () => tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_26.end)), combineChunksProducer(handoff, latch))));
893
+ function combineChunksProducer(handoff, latch, __tsplusTrace) {
894
+ return tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_5.take(latch)), tsplus_module_10.readWithCause(chunk => tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_26.chunk(chunk))), combineChunksProducer(handoff, latch, __tsplusTrace)), cause => tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_26.failCause(cause))), () => tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_26.end)), combineChunksProducer(handoff, latch, __tsplusTrace))));
878
895
  }
879
896
  /**
880
897
  * Combines the chunks from this stream and the specified stream by repeatedly applying the
@@ -886,12 +903,12 @@ function combineChunksProducer(handoff, latch) {
886
903
  */
887
904
 
888
905
 
889
- function combineChunks_(stream, that, s, f) {
890
- return new _definition2.Stream(tsplus_module_10.unwrapScoped(() => tsplus_module_1.map_(tsplus_module_1.flatMap_(tsplus_module_5.make(), left => tsplus_module_1.flatMap_(tsplus_module_5.make(), right => tsplus_module_1.flatMap_(tsplus_module_5.make(), latchL => tsplus_module_1.flatMap_(tsplus_module_5.make(), latchR => tsplus_module_1.flatMap_(tsplus_module_1.fork(tsplus_module_16.runScoped(tsplus_module_10.pipeTo_(stream.channel, combineChunksProducer(left, latchL))), fileName_1 + ":828:79"), () => tsplus_module_1.map_(tsplus_module_1.fork(tsplus_module_16.runScoped(tsplus_module_10.pipeTo_(that.channel, combineChunksProducer(right, latchR))), fileName_1 + ":829:78"), () => (0, _function.tuple)(left, right, latchL, latchR), fileName_1 + ":829:10"), fileName_1 + ":828:10"), fileName_1 + ":827:25"), fileName_1 + ":826:25"), fileName_1 + ":825:25"), fileName_1 + ":824:25"), ([left, right, latchL, latchR]) => {
891
- const pullLeft = tsplus_module_1.flatMap_(tsplus_module_1.apSecond_(tsplus_module_5.offer(latchL, undefined), tsplus_module_5.take(left), fileName_1 + ":834:20"), take => tsplus_module_26.done(take), fileName_1 + ":835:19");
892
- const pullRight = tsplus_module_1.flatMap_(tsplus_module_1.apSecond_(tsplus_module_5.offer(latchR, undefined), tsplus_module_5.take(right), fileName_1 + ":838:20"), take => tsplus_module_26.done(take), fileName_1 + ":839:19");
893
- return unfoldChunkIO_1(s, s => tsplus_module_1.flatMap_(f(s, pullLeft, pullRight), exit => tsplus_module_1.optional(tsplus_module_1.fromExit(() => exit, fileName_1 + ":840:102")), fileName_1 + ":840:80")).channel;
894
- }, fileName_1 + ":831:13")));
906
+ function combineChunks_(stream, that, s, f, __tsplusTrace) {
907
+ return new _definition2.Stream(tsplus_module_10.unwrapScoped(() => tsplus_module_1.map_(tsplus_module_1.flatMap_(tsplus_module_5.make(), left => tsplus_module_1.flatMap_(tsplus_module_5.make(), right => tsplus_module_1.flatMap_(tsplus_module_5.make(), latchL => tsplus_module_1.flatMap_(tsplus_module_5.make(), latchR => tsplus_module_1.flatMap_(tsplus_module_1.fork(tsplus_module_16.runScoped(tsplus_module_10.pipeTo_(stream.channel, combineChunksProducer(left, latchL, __tsplusTrace))), __tsplusTrace), () => tsplus_module_1.map_(tsplus_module_1.fork(tsplus_module_16.runScoped(tsplus_module_10.pipeTo_(that.channel, combineChunksProducer(right, latchR, __tsplusTrace))), __tsplusTrace), () => (0, _function.tuple)(left, right, latchL, latchR), __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace), ([left, right, latchL, latchR]) => {
908
+ const pullLeft = tsplus_module_1.flatMap_(tsplus_module_1.apSecond_(tsplus_module_5.offer(latchL, undefined), tsplus_module_5.take(left), __tsplusTrace), take => tsplus_module_26.done(take), __tsplusTrace);
909
+ const pullRight = tsplus_module_1.flatMap_(tsplus_module_1.apSecond_(tsplus_module_5.offer(latchR, undefined), tsplus_module_5.take(right), __tsplusTrace), take => tsplus_module_26.done(take), __tsplusTrace);
910
+ return unfoldChunkIO_1(s, s => tsplus_module_1.flatMap_(f(s, pullLeft, pullRight), exit => tsplus_module_1.optional(tsplus_module_1.fromExit(() => exit, __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace).channel;
911
+ }, __tsplusTrace)));
895
912
  }
896
913
  /**
897
914
  * Concatenates the specified stream with this stream, resulting in a stream
@@ -901,7 +918,7 @@ function combineChunks_(stream, that, s, f) {
901
918
  */
902
919
 
903
920
 
904
- function concat_1(stream, that) {
921
+ function concat_1(stream, that, __tsplusTrace) {
905
922
  return new _definition2.Stream(tsplus_module_11.apSecond_(stream.channel, that.channel));
906
923
  }
907
924
  /**
@@ -912,7 +929,7 @@ function concat_1(stream, that) {
912
929
  */
913
930
 
914
931
 
915
- function cross_(stream, that) {
932
+ function cross_(stream, that, __tsplusTrace) {
916
933
  return new _definition2.Stream(tsplus_module_10.concatMap_(stream.channel, as => tsplus_module_10.mapOut_(that.channel, bs => tsplus_module_12.flatMap_(as, a => tsplus_module_12.map_(bs, b => (0, _function.tuple)(a, b))))));
917
934
  }
918
935
  /**
@@ -924,8 +941,8 @@ function cross_(stream, that) {
924
941
  */
925
942
 
926
943
 
927
- function crossWith_1(fa, fb, f) {
928
- return flatMap_1(fa, a => map_1(fb, b => f(a, b)));
944
+ function crossWith_1(fa, fb, f, __tsplusTrace) {
945
+ return flatMap_1(fa, a => map_1(fb, b => f(a, b), __tsplusTrace), __tsplusTrace);
929
946
  }
930
947
  /**
931
948
  * Provides some of the environment required to run this effect,
@@ -935,64 +952,64 @@ function crossWith_1(fa, fb, f) {
935
952
  */
936
953
 
937
954
 
938
- function contramapEnvironment_(ra, f) {
939
- return flatMap_1(environment_1(), r0 => provideEnvironment_1(ra, f(r0)));
955
+ function contramapEnvironment_(ra, f, __tsplusTrace) {
956
+ return flatMap_1(environment_1(__tsplusTrace), r0 => provideEnvironment_1(ra, f(r0), __tsplusTrace), __tsplusTrace);
940
957
  }
941
958
  /**
942
959
  * @tsplus fluent fncts.io.Stream debounce
943
960
  */
944
961
 
945
962
 
946
- function debounce_(stream, duration) {
963
+ function debounce_(stream, duration, __tsplusTrace) {
947
964
  return unwrap_1(tsplus_module_24.transplant(grafter => tsplus_module_1.map_(tsplus_module_5.make(), handoff => {
948
- function enqueue(last) {
949
- return tsplus_module_1.map_(grafter(tsplus_module_1.fork(tsplus_module_1.as_(tsplus_module_41.sleep(duration, fileName_1 + ":912:37"), () => last), fileName_1 + ":912:56")), f => consumer(tsplus_module_40.previous(f)), fileName_1 + ":912:66");
965
+ function enqueue(last, __tsplusTrace) {
966
+ return tsplus_module_1.map_(grafter(tsplus_module_1.fork(tsplus_module_1.as_(tsplus_module_41.sleep(duration, __tsplusTrace), () => last, __tsplusTrace), __tsplusTrace)), f => consumer(tsplus_module_40.previous(f), __tsplusTrace), __tsplusTrace);
950
967
  }
951
968
 
952
969
  const producer = tsplus_module_10.readWithCause(inp => tsplus_module_20.match_(tsplus_module_12.last(inp), () => producer, last => tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_5.emit(tsplus_module_19.single(last)))), producer)), cause => tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_5.halt(cause))), () => tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_5.end(new _SinkEndReason2.UpstreamEnd()))));
953
970
 
954
- function consumer(state) {
971
+ function consumer(state, __tsplusTrace) {
955
972
  return tsplus_module_10.unwrap(() => tsplus_module_40.match_(state, {
956
973
  NotStarted: () => tsplus_module_1.map_(tsplus_module_5.take(handoff), signal => tsplus_module_5.matchSignal_(signal, {
957
974
  Emit: ({
958
975
  els
959
- }) => tsplus_module_10.unwrap(() => enqueue(els)),
976
+ }) => tsplus_module_10.unwrap(() => enqueue(els, __tsplusTrace)),
960
977
  Halt: ({
961
978
  error
962
979
  }) => tsplus_module_11.failCauseNow(error),
963
980
  End: () => tsplus_module_10.unit
964
- }), fileName_1 + ":927:33"),
981
+ }), __tsplusTrace),
965
982
  Current: ({
966
983
  fiber
967
- }) => tsplus_module_1.map_(tsplus_module_22.join(fiber), signal => tsplus_module_5.matchSignal_(signal, {
984
+ }) => tsplus_module_1.map_(tsplus_module_22.join(fiber, __tsplusTrace), signal => tsplus_module_5.matchSignal_(signal, {
968
985
  Emit: ({
969
986
  els
970
- }) => tsplus_module_10.unwrap(() => enqueue(els)),
987
+ }) => tsplus_module_10.unwrap(() => enqueue(els, __tsplusTrace)),
971
988
  Halt: ({
972
989
  error
973
990
  }) => tsplus_module_11.failCauseNow(error),
974
991
  End: () => tsplus_module_10.unit
975
- }), fileName_1 + ":935:31"),
992
+ }), __tsplusTrace),
976
993
  Previous: ({
977
994
  fiber
978
- }) => tsplus_module_24.raceWith_(tsplus_module_22.join(fiber), () => tsplus_module_5.take(handoff), (ex, current) => tsplus_module_34.match_(ex, cause => tsplus_module_1.as_(tsplus_module_23.interrupt(current), () => tsplus_module_11.failCauseNow(cause)), chunk => tsplus_module_1.succeedNow(tsplus_module_11.apSecond_(tsplus_module_10.writeNow(chunk), consumer(tsplus_module_40.current(current))), fileName_1 + ":949:38")), (ex, previous) => tsplus_module_34.match_(ex, cause => tsplus_module_1.as_(tsplus_module_23.interrupt(previous), () => tsplus_module_11.failCauseNow(cause)), signal => tsplus_module_5.matchSignal_(signal, {
995
+ }) => tsplus_module_24.raceWith_(tsplus_module_22.join(fiber, __tsplusTrace), () => tsplus_module_5.take(handoff), (ex, current) => tsplus_module_34.match_(ex, cause => tsplus_module_1.as_(tsplus_module_23.interrupt(current, __tsplusTrace), () => tsplus_module_11.failCauseNow(cause), __tsplusTrace), chunk => tsplus_module_1.succeedNow(tsplus_module_11.apSecond_(tsplus_module_10.writeNow(chunk), consumer(tsplus_module_40.current(current), __tsplusTrace)), __tsplusTrace)), (ex, previous) => tsplus_module_34.match_(ex, cause => tsplus_module_1.as_(tsplus_module_23.interrupt(previous, __tsplusTrace), () => tsplus_module_11.failCauseNow(cause), __tsplusTrace), signal => tsplus_module_5.matchSignal_(signal, {
979
996
  Emit: ({
980
997
  els
981
- }) => tsplus_module_1.apSecond_(tsplus_module_23.interrupt(previous), enqueue(els), fileName_1 + ":956:73"),
998
+ }) => tsplus_module_1.apSecond_(tsplus_module_23.interrupt(previous, __tsplusTrace), enqueue(els, __tsplusTrace), __tsplusTrace),
982
999
  Halt: ({
983
1000
  error
984
- }) => tsplus_module_1.as_(tsplus_module_23.interrupt(previous), () => tsplus_module_11.failCauseNow(error)),
985
- End: () => tsplus_module_1.map_(tsplus_module_22.join(previous), chunk => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(chunk), tsplus_module_10.unit), fileName_1 + ":958:55")
986
- })), fileName_1 + ":943:36")
1001
+ }) => tsplus_module_1.as_(tsplus_module_23.interrupt(previous, __tsplusTrace), () => tsplus_module_11.failCauseNow(error), __tsplusTrace),
1002
+ End: () => tsplus_module_1.map_(tsplus_module_22.join(previous, __tsplusTrace), chunk => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(chunk), tsplus_module_10.unit), __tsplusTrace)
1003
+ })), __tsplusTrace)
987
1004
  }));
988
1005
  }
989
1006
 
990
- return apSecond_1(scoped_1(tsplus_module_1.fork(tsplus_module_16.runScoped(tsplus_module_10.pipeTo_(stream.channel, producer)), fileName_1 + ":966:71")), new _definition2.Stream(consumer(tsplus_module_40.notStarted)));
991
- }, fileName_1 + ":910:26"), fileName_1 + ":908:18"));
1007
+ return apSecond_1(scoped_1(tsplus_module_1.fork(tsplus_module_16.runScoped(tsplus_module_10.pipeTo_(stream.channel, producer)), __tsplusTrace), __tsplusTrace), new _definition2.Stream(consumer(tsplus_module_40.notStarted, __tsplusTrace)), __tsplusTrace);
1008
+ }, __tsplusTrace), __tsplusTrace), __tsplusTrace);
992
1009
  }
993
1010
 
994
- function defaultIfEmptyWriter(fb) {
995
- return tsplus_module_10.readWith(i => tsplus_module_12.isEmpty(i) ? defaultIfEmptyWriter(fb) : tsplus_module_11.apSecond_(tsplus_module_10.writeNow(i), tsplus_module_10.id()), tsplus_module_10.failNow, () => fb.channel);
1011
+ function defaultIfEmptyWriter(fb, __tsplusTrace) {
1012
+ return tsplus_module_10.readWith(i => tsplus_module_12.isEmpty(i) ? defaultIfEmptyWriter(fb, __tsplusTrace) : tsplus_module_11.apSecond_(tsplus_module_10.writeNow(i), tsplus_module_10.id()), tsplus_module_10.failNow, () => fb.channel);
996
1013
  }
997
1014
  /**
998
1015
  * Switches to the provided stream in case this one is empty.
@@ -1001,8 +1018,8 @@ function defaultIfEmptyWriter(fb) {
1001
1018
  */
1002
1019
 
1003
1020
 
1004
- function defaultIfEmpty_(fa, fb) {
1005
- return new _definition2.Stream(tsplus_module_10.pipeTo_(fa.channel, defaultIfEmptyWriter(fb)));
1021
+ function defaultIfEmpty_(fa, fb, __tsplusTrace) {
1022
+ return new _definition2.Stream(tsplus_module_10.pipeTo_(fa.channel, defaultIfEmptyWriter(fb, __tsplusTrace)));
1006
1023
  }
1007
1024
  /**
1008
1025
  * More powerful version of `broadcast`. Allows to provide a function that determines what
@@ -1013,11 +1030,11 @@ function defaultIfEmpty_(fa, fb) {
1013
1030
  */
1014
1031
 
1015
1032
 
1016
- function distributedWith_(self, n, maximumLag, decide) {
1017
- return tsplus_module_1.flatMap_(tsplus_module_36.make(), p => tsplus_module_1.flatMap_(distributedWithDynamic_1(self, maximumLag, a => tsplus_module_1.flatMap_(tsplus_module_35.wait(p), f => f(a), fileName_1 + ":1014:31"), () => tsplus_module_1.unit), next => tsplus_module_1.flatMap_(tsplus_module_1.sequenceIterable(tsplus_module_12.map_(tsplus_module_19.range(0, n), id => tsplus_module_1.map_(next, ([key, queue]) => [[key, id], queue], fileName_1 + ":1019:48"))), entries => {
1033
+ function distributedWith_(self, n, maximumLag, decide, __tsplusTrace) {
1034
+ return tsplus_module_1.flatMap_(tsplus_module_36.make(__tsplusTrace), p => tsplus_module_1.flatMap_(distributedWithDynamic_1(self, maximumLag, a => tsplus_module_1.flatMap_(tsplus_module_35.wait(p, __tsplusTrace), f => f(a), __tsplusTrace), () => tsplus_module_1.unit, __tsplusTrace), next => tsplus_module_1.flatMap_(tsplus_module_1.sequenceIterable(tsplus_module_12.map_(tsplus_module_19.range(0, n), id => tsplus_module_1.map_(next, ([key, queue]) => [[key, id], queue], __tsplusTrace)), __tsplusTrace), entries => {
1018
1035
  const [mappings, queues] = tsplus_module_12.foldRight_(entries, [tsplus_module_42.makeDefault(), tsplus_module_7.empty()], ([mapping, queue], [mappings, queues]) => [tsplus_module_42.set_(mappings, mapping[0], mapping[1]), tsplus_module_12.append_(queues, queue)]);
1019
- return tsplus_module_1.as_(tsplus_module_35.succeed_(p, a => tsplus_module_1.map_(decide(a), f => key => f(tsplus_module_37.toUndefined(tsplus_module_42.get_(mappings, key))), fileName_1 + ":1025:48")), () => queues);
1020
- }, fileName_1 + ":1020:18"), fileName_1 + ":1017:15"), fileName_1 + ":1010:77");
1036
+ return tsplus_module_1.as_(tsplus_module_35.succeed_(p, a => tsplus_module_1.map_(decide(a), f => key => f(tsplus_module_37.toUndefined(tsplus_module_42.get_(mappings, key))), __tsplusTrace), __tsplusTrace), () => queues, __tsplusTrace);
1037
+ }, __tsplusTrace), __tsplusTrace), __tsplusTrace);
1021
1038
  }
1022
1039
  /**
1023
1040
  * More powerful version of `ZStream#distributedWith`. This returns a function that will produce
@@ -1031,23 +1048,23 @@ function distributedWith_(self, n, maximumLag, decide) {
1031
1048
  */
1032
1049
 
1033
1050
 
1034
- function distributedWithDynamic_1(self, maximumLag, decide, done = () => tsplus_module_1.unit) {
1035
- const offer = queuesRef => a => tsplus_module_1.flatMap_(decide(a), shouldProcess => tsplus_module_1.flatMap_(tsplus_module_14.get(queuesRef), queues => tsplus_module_1.flatMap_(tsplus_module_1.foldLeft_(queues, tsplus_module_7.empty(), (b, [id, queue]) => {
1051
+ function distributedWithDynamic_1(self, maximumLag, decide, done = () => tsplus_module_1.unit, __tsplusTrace) {
1052
+ const offer = queuesRef => a => tsplus_module_1.flatMap_(decide(a), shouldProcess => tsplus_module_1.flatMap_(tsplus_module_14.get(queuesRef, __tsplusTrace), queues => tsplus_module_1.flatMap_(tsplus_module_1.foldLeft_(queues, tsplus_module_7.empty(), (b, [id, queue]) => {
1036
1053
  if (shouldProcess(id)) {
1037
- return tsplus_module_1.matchCauseIO_(tsplus_module_27.offer_(queue, tsplus_module_39.succeed(a)), c => tsplus_module_25.interrupted(c) ? tsplus_module_1.succeedNow(tsplus_module_12.append_(b, id), fileName_1 + ":1055:52") : tsplus_module_1.failCauseNow(c, fileName_1 + ":1055:84"), () => tsplus_module_1.succeedNow(b, fileName_1 + ":1056:34"), fileName_1 + ":1054:61");
1054
+ return tsplus_module_1.matchCauseIO_(tsplus_module_27.offer_(queue, tsplus_module_39.succeed(a), __tsplusTrace), c => tsplus_module_25.interrupted(c) ? tsplus_module_1.succeedNow(tsplus_module_12.append_(b, id), __tsplusTrace) : tsplus_module_1.failCauseNow(c, __tsplusTrace), () => tsplus_module_1.succeedNow(b, __tsplusTrace), __tsplusTrace);
1038
1055
  } else {
1039
- return tsplus_module_1.succeedNow(b, fileName_1 + ":1059:33");
1056
+ return tsplus_module_1.succeedNow(b, __tsplusTrace);
1040
1057
  }
1041
- }, fileName_1 + ":1052:20"), ids => tsplus_module_12.isNonEmpty(ids) ? tsplus_module_15.update_(queuesRef, map => tsplus_module_42.removeMany_(map, ids)) : tsplus_module_1.unit, fileName_1 + ":1061:19"), fileName_1 + ":1050:30"), fileName_1 + ":1049:30");
1058
+ }, __tsplusTrace), ids => tsplus_module_12.isNonEmpty(ids) ? tsplus_module_15.update_(queuesRef, map => tsplus_module_42.removeMany_(map, ids), __tsplusTrace) : tsplus_module_1.unit, __tsplusTrace), __tsplusTrace), __tsplusTrace);
1042
1059
 
1043
- return tsplus_module_1.flatMap_(tsplus_module_30.acquireRelease(() => tsplus_module_6.make(() => tsplus_module_42.makeDefault()), ref => tsplus_module_1.flatMap_(tsplus_module_14.get(ref), qs => tsplus_module_1.foreach_(tsplus_module_42.values(qs), q => tsplus_module_27.shutdown(q), fileName_1 + ":1068:43"), fileName_1 + ":1068:24")), queuesRef => tsplus_module_1.map_(tsplus_module_1.flatMap_(tsplus_module_45.atomically(tsplus_module_44.make(1)), queuesLock => tsplus_module_1.flatMap_(tsplus_module_6.make(() => tsplus_module_1.flatMap_(tsplus_module_29.makeBounded(maximumLag), queue => tsplus_module_1.flatMap_(tsplus_module_1.succeed(() => Symbol(), fileName_1 + ":1079:41"), id => tsplus_module_1.map_(tsplus_module_15.update_(queuesRef, map => tsplus_module_42.set_(map, id, queue)), () => (0, _function.tuple)(id, queue), fileName_1 + ":1080:16"), fileName_1 + ":1079:30"), fileName_1 + ":1078:30")), newQueue => {
1044
- const finalize = endTake => tsplus_module_43.withPermitSelf(queuesLock)(tsplus_module_1.asUnit(tsplus_module_1.flatMap_(tsplus_module_13.set_(newQueue, tsplus_module_1.flatMap_(tsplus_module_29.makeBounded(1), queue => tsplus_module_1.flatMap_(tsplus_module_27.offer_(queue, endTake), () => {
1060
+ return tsplus_module_1.flatMap_(tsplus_module_30.acquireRelease(() => tsplus_module_6.make(() => tsplus_module_42.makeDefault(), __tsplusTrace), ref => tsplus_module_1.flatMap_(tsplus_module_14.get(ref, __tsplusTrace), qs => tsplus_module_1.foreach_(tsplus_module_42.values(qs), q => tsplus_module_27.shutdown(q, __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace), queuesRef => tsplus_module_1.map_(tsplus_module_1.flatMap_(tsplus_module_45.atomically(tsplus_module_44.make(1, __tsplusTrace), __tsplusTrace), queuesLock => tsplus_module_1.flatMap_(tsplus_module_6.make(() => tsplus_module_1.flatMap_(tsplus_module_29.makeBounded(maximumLag, __tsplusTrace), queue => tsplus_module_1.flatMap_(tsplus_module_1.succeed(() => Symbol(), __tsplusTrace), id => tsplus_module_1.map_(tsplus_module_15.update_(queuesRef, map => tsplus_module_42.set_(map, id, queue), __tsplusTrace), () => (0, _function.tuple)(id, queue), __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace), newQueue => {
1061
+ const finalize = endTake => tsplus_module_43.withPermit(queuesLock, __tsplusTrace)(tsplus_module_1.asUnit(tsplus_module_1.flatMap_(tsplus_module_13.set_(newQueue, tsplus_module_1.flatMap_(tsplus_module_29.makeBounded(1, __tsplusTrace), queue => tsplus_module_1.flatMap_(tsplus_module_27.offer_(queue, endTake, __tsplusTrace), () => {
1045
1062
  const id = Symbol();
1046
- return tsplus_module_1.map_(tsplus_module_15.update_(queuesRef, map => tsplus_module_42.set_(map, id, queue)), () => (0, _function.tuple)(id, queue), fileName_1 + ":1093:20");
1047
- }, fileName_1 + ":1091:20"), fileName_1 + ":1090:34")), () => tsplus_module_1.flatMap_(tsplus_module_1.map_(tsplus_module_14.get(queuesRef), map => tsplus_module_42.values(map), fileName_1 + ":1099:53"), queues => tsplus_module_1.flatMap_(tsplus_module_1.foreach_(queues, queue => tsplus_module_1.catchJustCause_(tsplus_module_27.offer_(queue, endTake), c => tsplus_module_25.interrupted(c) ? tsplus_module_3.just(tsplus_module_1.unit) : tsplus_module_3.nothing()), fileName_1 + ":1101:31"), () => tsplus_module_1.map_(done(endTake), () => void 0, fileName_1 + ":1107:20"), fileName_1 + ":1100:20"), fileName_1 + ":1099:35"), fileName_1 + ":1097:23")));
1063
+ return tsplus_module_1.map_(tsplus_module_15.update_(queuesRef, map => tsplus_module_42.set_(map, id, queue), __tsplusTrace), () => (0, _function.tuple)(id, queue), __tsplusTrace);
1064
+ }, __tsplusTrace), __tsplusTrace), __tsplusTrace), () => tsplus_module_1.flatMap_(tsplus_module_1.map_(tsplus_module_14.get(queuesRef, __tsplusTrace), map => tsplus_module_42.values(map), __tsplusTrace), queues => tsplus_module_1.flatMap_(tsplus_module_1.foreach_(queues, queue => tsplus_module_1.catchJustCause_(tsplus_module_27.offer_(queue, endTake, __tsplusTrace), c => tsplus_module_25.interrupted(c) ? tsplus_module_3.just(tsplus_module_1.unit) : tsplus_module_3.nothing(), __tsplusTrace), __tsplusTrace), () => tsplus_module_1.map_(done(endTake), () => void 0, __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace));
1048
1065
 
1049
- return tsplus_module_1.map_(tsplus_module_1.fork(tsplus_module_1.matchCauseIO_(runForeachScoped_1(self, offer(queuesRef)), cause => finalize(tsplus_module_39.failCause(tsplus_module_25.map_(cause, tsplus_module_3.just))), () => finalize(tsplus_module_39.fail(tsplus_module_3.nothing())), fileName_1 + ":1113:63"), fileName_1 + ":1116:12"), () => tsplus_module_43.withPermitSelf(queuesLock)(tsplus_module_1.flatten(tsplus_module_14.get(newQueue))), fileName_1 + ":1112:10");
1050
- }, fileName_1 + ":1075:29"), fileName_1 + ":1074:29"), add => add, fileName_1 + ":1072:18"), fileName_1 + ":1066:24");
1066
+ return tsplus_module_1.map_(tsplus_module_1.fork(tsplus_module_1.matchCauseIO_(runForeachScoped_1(self, offer(queuesRef), __tsplusTrace), cause => finalize(tsplus_module_39.failCause(tsplus_module_25.map_(cause, tsplus_module_3.just))), () => finalize(tsplus_module_39.fail(tsplus_module_3.nothing())), __tsplusTrace), __tsplusTrace), () => tsplus_module_43.withPermit(queuesLock, __tsplusTrace)(tsplus_module_1.flatten(tsplus_module_14.get(newQueue, __tsplusTrace), __tsplusTrace)), __tsplusTrace);
1067
+ }, __tsplusTrace), __tsplusTrace), add => add, __tsplusTrace), __tsplusTrace);
1051
1068
  }
1052
1069
  /**
1053
1070
  * Converts this stream to a stream that executes its effects but emits no
@@ -1057,16 +1074,16 @@ function distributedWithDynamic_1(self, maximumLag, decide, done = () => tsplus_
1057
1074
  */
1058
1075
 
1059
1076
 
1060
- function drain(fa) {
1077
+ function drain(fa, __tsplusTrace) {
1061
1078
  return new _definition2.Stream(tsplus_module_10.drain(fa.channel));
1062
1079
  }
1063
1080
 
1064
- function dropLoop(r) {
1081
+ function dropLoop(r, __tsplusTrace) {
1065
1082
  return tsplus_module_10.readWith(inp => {
1066
1083
  const dropped = tsplus_module_12.drop_(inp, r);
1067
1084
  const leftover = Math.max(0, r - inp.length);
1068
1085
  const more = tsplus_module_12.isEmpty(inp) || leftover > 0;
1069
- return more ? dropLoop(leftover) : tsplus_module_11.apSecond_(tsplus_module_10.write(() => dropped), tsplus_module_10.id());
1086
+ return more ? dropLoop(leftover, __tsplusTrace) : tsplus_module_11.apSecond_(tsplus_module_10.write(() => dropped), tsplus_module_10.id());
1070
1087
  }, tsplus_module_10.failNow, () => tsplus_module_10.unit);
1071
1088
  }
1072
1089
  /**
@@ -1076,8 +1093,8 @@ function dropLoop(r) {
1076
1093
  */
1077
1094
 
1078
1095
 
1079
- function drop_1(stream, n) {
1080
- return new _definition2.Stream(tsplus_module_10.pipeTo_(stream.channel, dropLoop(n)));
1096
+ function drop_1(stream, n, __tsplusTrace) {
1097
+ return new _definition2.Stream(tsplus_module_10.pipeTo_(stream.channel, dropLoop(n, __tsplusTrace)));
1081
1098
  }
1082
1099
  /**
1083
1100
  * Drops all elements of the stream for as long as the specified predicate
@@ -1087,8 +1104,8 @@ function drop_1(stream, n) {
1087
1104
  */
1088
1105
 
1089
1106
 
1090
- function dropWhile_1(stream, p) {
1091
- return pipeThrough_1(stream, tsplus_module_46.makeDropWhile(p, fileName_1 + ":1166:43"));
1107
+ function dropWhile_1(stream, p, __tsplusTrace) {
1108
+ return pipeThrough_1(stream, tsplus_module_46.makeDropWhile(p, __tsplusTrace), __tsplusTrace);
1092
1109
  }
1093
1110
  /**
1094
1111
  * Drops all elements of the stream until the specified predicate evaluates
@@ -1098,8 +1115,8 @@ function dropWhile_1(stream, p) {
1098
1115
  */
1099
1116
 
1100
1117
 
1101
- function dropUntil_(stream, p) {
1102
- return drop_1(dropWhile_1(stream, tsplus_module_47.invert(p)), 1);
1118
+ function dropUntil_(stream, p, __tsplusTrace) {
1119
+ return drop_1(dropWhile_1(stream, tsplus_module_47.invert(p), __tsplusTrace), 1, __tsplusTrace);
1103
1120
  }
1104
1121
  /**
1105
1122
  * Returns a stream whose failures and successes have been lifted into an
@@ -1112,20 +1129,20 @@ function dropUntil_(stream, p) {
1112
1129
  */
1113
1130
 
1114
1131
 
1115
- function either(stream) {
1116
- return catchAll_1(map_1(stream, tsplus_module_18.right), e => succeedNow_1(tsplus_module_18.left(e)));
1132
+ function either(stream, __tsplusTrace) {
1133
+ return catchAll_1(map_1(stream, tsplus_module_18.right, __tsplusTrace), e => succeedNow_1(tsplus_module_18.left(e), __tsplusTrace), __tsplusTrace);
1117
1134
  }
1118
1135
  /**
1119
1136
  * @tsplus static fncts.io.StreamOps empty
1120
1137
  */
1121
1138
 
1122
1139
 
1123
- const empty_1 = /*#__PURE__*/fromChunkNow_1( /*#__PURE__*/tsplus_module_7.empty());
1140
+ const empty_1 = /*#__PURE__*/fromChunkNow_1( /*#__PURE__*/tsplus_module_7.empty(), fileName_1 + ":1267:70");
1124
1141
  const empty = empty_1;
1125
1142
  exports.empty = empty;
1126
1143
 
1127
- function endWhenWriter(fiber) {
1128
- return tsplus_module_10.unwrap(() => tsplus_module_1.map_(tsplus_module_48.poll(fiber), maybeExit => tsplus_module_20.match_(maybeExit, () => tsplus_module_10.readWith(inp => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(inp), endWhenWriter(fiber)), tsplus_module_10.failNow, () => tsplus_module_10.unit), exit => tsplus_module_34.match_(exit, tsplus_module_11.failCauseNow, () => tsplus_module_10.unit)), fileName_1 + ":1201:19"));
1144
+ function endWhenWriter(fiber, __tsplusTrace) {
1145
+ return tsplus_module_10.unwrap(() => tsplus_module_1.map_(tsplus_module_48.poll(fiber, __tsplusTrace), maybeExit => tsplus_module_20.match_(maybeExit, () => tsplus_module_10.readWith(inp => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(inp), endWhenWriter(fiber, __tsplusTrace)), tsplus_module_10.failNow, () => tsplus_module_10.unit), exit => tsplus_module_34.match_(exit, tsplus_module_11.failCauseNow, () => tsplus_module_10.unit)), __tsplusTrace));
1129
1146
  }
1130
1147
  /**
1131
1148
  * Halts the evaluation of this stream when the provided IO completes. The given IO
@@ -1140,15 +1157,15 @@ function endWhenWriter(fiber) {
1140
1157
  */
1141
1158
 
1142
1159
 
1143
- function endWhen_(stream, io) {
1144
- return new _definition2.Stream(tsplus_module_10.unwrapScoped(() => tsplus_module_1.map_(tsplus_module_17.forkScoped(io, fileName_1 + ":1227:44"), fiber => tsplus_module_10.pipeTo_(stream.channel, endWhenWriter(fiber)), fileName_1 + ":1227:59")));
1160
+ function endWhen_(stream, io, __tsplusTrace) {
1161
+ return new _definition2.Stream(tsplus_module_10.unwrapScoped(() => tsplus_module_1.map_(tsplus_module_17.forkScoped(io, __tsplusTrace), fiber => tsplus_module_10.pipeTo_(stream.channel, endWhenWriter(fiber, __tsplusTrace)), __tsplusTrace)));
1145
1162
  }
1146
1163
  /**
1147
1164
  * @tsplus fluent fncts.io.Stream ensuring
1148
1165
  */
1149
1166
 
1150
1167
 
1151
- function ensuring_1(self, finalizer) {
1168
+ function ensuring_1(self, finalizer, __tsplusTrace) {
1152
1169
  return new _definition2.Stream(tsplus_module_10.ensuring_(self.channel, finalizer));
1153
1170
  }
1154
1171
  /**
@@ -1156,8 +1173,8 @@ function ensuring_1(self, finalizer) {
1156
1173
  */
1157
1174
 
1158
1175
 
1159
- function environment_1() {
1160
- return fromIO_1(tsplus_module_49.environment(fileName_1 + ":1241:38"));
1176
+ function environment_1(__tsplusTrace) {
1177
+ return fromIO_1(tsplus_module_49.environment(__tsplusTrace), __tsplusTrace);
1161
1178
  }
1162
1179
  /**
1163
1180
  * Accesses the environment of the stream.
@@ -1166,8 +1183,8 @@ function environment_1() {
1166
1183
  */
1167
1184
 
1168
1185
 
1169
- function environmentWith(f) {
1170
- return map_1(environment_1(), f);
1186
+ function environmentWith(f, __tsplusTrace) {
1187
+ return map_1(environment_1(__tsplusTrace), f, __tsplusTrace);
1171
1188
  }
1172
1189
  /**
1173
1190
  * Accesses the environment of the stream in the context of an effect.
@@ -1176,8 +1193,8 @@ function environmentWith(f) {
1176
1193
  */
1177
1194
 
1178
1195
 
1179
- function environmentWithIO(f) {
1180
- return mapIO_1(environment_1(), f);
1196
+ function environmentWithIO(f, __tsplusTrace) {
1197
+ return mapIO_1(environment_1(__tsplusTrace), f, __tsplusTrace);
1181
1198
  }
1182
1199
  /**
1183
1200
  * Accesses the environment of the stream in the context of a stream.
@@ -1186,8 +1203,8 @@ function environmentWithIO(f) {
1186
1203
  */
1187
1204
 
1188
1205
 
1189
- function environmentWithStream(f) {
1190
- return flatMap_1(environment_1(), f);
1206
+ function environmentWithStream(f, __tsplusTrace) {
1207
+ return flatMap_1(environment_1(__tsplusTrace), f, __tsplusTrace);
1191
1208
  }
1192
1209
  /**
1193
1210
  * Halt a stream with the specified error
@@ -1196,7 +1213,7 @@ function environmentWithStream(f) {
1196
1213
  */
1197
1214
 
1198
1215
 
1199
- function failNow_1(error) {
1216
+ function failNow_1(error, __tsplusTrace) {
1200
1217
  return new _definition2.Stream(tsplus_module_10.failNow(error));
1201
1218
  }
1202
1219
  /**
@@ -1206,7 +1223,7 @@ function failNow_1(error) {
1206
1223
  */
1207
1224
 
1208
1225
 
1209
- function fail(error) {
1226
+ function fail(error, __tsplusTrace) {
1210
1227
  return new _definition2.Stream(tsplus_module_10.fail(error));
1211
1228
  }
1212
1229
  /**
@@ -1216,8 +1233,8 @@ function fail(error) {
1216
1233
  */
1217
1234
 
1218
1235
 
1219
- function failCauseNow_1(cause) {
1220
- return fromIO_1(tsplus_module_1.failCauseNow(cause, fileName_1 + ":1295:39"));
1236
+ function failCauseNow_1(cause, __tsplusTrace) {
1237
+ return fromIO_1(tsplus_module_1.failCauseNow(cause, __tsplusTrace), __tsplusTrace);
1221
1238
  }
1222
1239
  /**
1223
1240
  * The stream that always halts with `cause`.
@@ -1226,29 +1243,29 @@ function failCauseNow_1(cause) {
1226
1243
  */
1227
1244
 
1228
1245
 
1229
- function failCause(cause) {
1230
- return fromIO_1(tsplus_module_1.failCause(cause, fileName_1 + ":1304:36"));
1246
+ function failCause(cause, __tsplusTrace) {
1247
+ return fromIO_1(tsplus_module_1.failCause(cause, __tsplusTrace), __tsplusTrace);
1231
1248
  }
1232
1249
 
1233
- function filter_(fa, predicate) {
1234
- return mapChunks_1(fa, chunk => tsplus_module_12.filter_(chunk, predicate));
1250
+ function filter_(fa, predicate, __tsplusTrace) {
1251
+ return mapChunks_1(fa, chunk => tsplus_module_12.filter_(chunk, predicate), __tsplusTrace);
1235
1252
  }
1236
1253
  /**
1237
1254
  * @tsplus fluent fncts.io.Stream filterIO
1238
1255
  */
1239
1256
 
1240
1257
 
1241
- function filterIO_(fa, f) {
1242
- return new _definition2.Stream(tsplus_module_10.pipeTo_(fa.channel, filterIOLoop(tsplus_module_38.empty()[Symbol.iterator](), f)));
1258
+ function filterIO_(fa, f, __tsplusTrace) {
1259
+ return new _definition2.Stream(tsplus_module_10.pipeTo_(fa.channel, filterIOLoop(tsplus_module_38.empty()[Symbol.iterator](), f, __tsplusTrace)));
1243
1260
  }
1244
1261
 
1245
- function filterIOLoop(iterator, f) {
1262
+ function filterIOLoop(iterator, f, __tsplusTrace) {
1246
1263
  const next = iterator.next();
1247
1264
 
1248
1265
  if (next.done) {
1249
- return tsplus_module_10.readWithCause(elem => filterIOLoop(elem[Symbol.iterator](), f), tsplus_module_11.failCauseNow, tsplus_module_11.succeedNow);
1266
+ return tsplus_module_10.readWithCause(elem => filterIOLoop(elem[Symbol.iterator](), f, __tsplusTrace), tsplus_module_11.failCauseNow, tsplus_module_11.succeedNow);
1250
1267
  } else {
1251
- return tsplus_module_10.unwrap(() => tsplus_module_1.map_(f(next.value), b => b ? tsplus_module_11.apSecond_(tsplus_module_10.writeNow(tsplus_module_19.single(next.value)), filterIOLoop(iterator, f)) : filterIOLoop(iterator, f), fileName_1 + ":1339:24"));
1268
+ return tsplus_module_10.unwrap(() => tsplus_module_1.map_(f(next.value), b => b ? tsplus_module_11.apSecond_(tsplus_module_10.writeNow(tsplus_module_19.single(next.value)), filterIOLoop(iterator, f, __tsplusTrace)) : filterIOLoop(iterator, f, __tsplusTrace), __tsplusTrace));
1252
1269
  }
1253
1270
  }
1254
1271
  /**
@@ -1256,25 +1273,25 @@ function filterIOLoop(iterator, f) {
1256
1273
  */
1257
1274
 
1258
1275
 
1259
- function filterMap_1(fa, f) {
1260
- return mapChunks_1(fa, chunk => tsplus_module_12.filterMap_(chunk, f));
1276
+ function filterMap_1(fa, f, __tsplusTrace) {
1277
+ return mapChunks_1(fa, chunk => tsplus_module_12.filterMap_(chunk, f), __tsplusTrace);
1261
1278
  }
1262
1279
  /**
1263
1280
  * @tsplus fluent fncts.io.Stream filterMapIO
1264
1281
  */
1265
1282
 
1266
1283
 
1267
- function filterMapIO_(fa, f) {
1268
- return new _definition2.Stream(tsplus_module_10.pipeTo_(fa.channel, filterMapIOLoop(tsplus_module_38.empty()[Symbol.iterator](), f)));
1284
+ function filterMapIO_(fa, f, __tsplusTrace) {
1285
+ return new _definition2.Stream(tsplus_module_10.pipeTo_(fa.channel, filterMapIOLoop(tsplus_module_38.empty()[Symbol.iterator](), f, __tsplusTrace)));
1269
1286
  }
1270
1287
 
1271
- function filterMapIOLoop(iterator, f) {
1288
+ function filterMapIOLoop(iterator, f, __tsplusTrace) {
1272
1289
  const next = iterator.next();
1273
1290
 
1274
1291
  if (next.done) {
1275
- return tsplus_module_10.readWithCause(elem => filterMapIOLoop(elem[Symbol.iterator](), f), tsplus_module_11.failCauseNow, tsplus_module_11.succeedNow);
1292
+ return tsplus_module_10.readWithCause(elem => filterMapIOLoop(elem[Symbol.iterator](), f, __tsplusTrace), tsplus_module_11.failCauseNow, tsplus_module_11.succeedNow);
1276
1293
  } else {
1277
- return tsplus_module_10.unwrap(() => tsplus_module_1.map_(f(next.value), b => tsplus_module_20.match_(b, () => filterMapIOLoop(iterator, f), b => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(tsplus_module_19.single(b)), filterMapIOLoop(iterator, f))), fileName_1 + ":1378:24"));
1294
+ return tsplus_module_10.unwrap(() => tsplus_module_1.map_(f(next.value), b => tsplus_module_20.match_(b, () => filterMapIOLoop(iterator, f, __tsplusTrace), b => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(tsplus_module_19.single(b)), filterMapIOLoop(iterator, f, __tsplusTrace))), __tsplusTrace));
1278
1295
  }
1279
1296
  }
1280
1297
  /**
@@ -1284,7 +1301,7 @@ function filterMapIOLoop(iterator, f) {
1284
1301
  */
1285
1302
 
1286
1303
 
1287
- function find_(stream, p) {
1304
+ function find_(stream, p, __tsplusTrace) {
1288
1305
  const loop = tsplus_module_10.readWith(inp => tsplus_module_20.match_(tsplus_module_12.find_(inp, p), () => loop, a => tsplus_module_10.writeNow(tsplus_module_19.single(a))), tsplus_module_10.failNow, () => tsplus_module_10.unit);
1289
1306
  return new _definition2.Stream(tsplus_module_10.pipeTo_(stream.channel, loop));
1290
1307
  }
@@ -1295,8 +1312,8 @@ function find_(stream, p) {
1295
1312
  */
1296
1313
 
1297
1314
 
1298
- function findIO_(stream, f) {
1299
- const loop = tsplus_module_10.readWith(inp => tsplus_module_10.unwrap(() => tsplus_module_1.map_(tsplus_module_50.findIO_(inp, f), maybeA => tsplus_module_20.match_(maybeA, () => loop, a => tsplus_module_10.writeNow(tsplus_module_19.single(a))), fileName_1 + ":1418:26")), tsplus_module_10.failNow, () => tsplus_module_10.unit);
1315
+ function findIO_(stream, f, __tsplusTrace) {
1316
+ const loop = tsplus_module_10.readWith(inp => tsplus_module_10.unwrap(() => tsplus_module_1.map_(tsplus_module_50.findIO_(inp, f, __tsplusTrace), maybeA => tsplus_module_20.match_(maybeA, () => loop, a => tsplus_module_10.writeNow(tsplus_module_19.single(a))), __tsplusTrace)), tsplus_module_10.failNow, () => tsplus_module_10.unit);
1300
1317
  return new _definition2.Stream(tsplus_module_10.pipeTo_(stream.channel, loop));
1301
1318
  }
1302
1319
  /**
@@ -1307,8 +1324,8 @@ function findIO_(stream, f) {
1307
1324
  */
1308
1325
 
1309
1326
 
1310
- function flatten_1(self) {
1311
- return flatMap_1(self, _function.identity);
1327
+ function flatten_1(self, __tsplusTrace) {
1328
+ return flatMap_1(self, _function.identity, __tsplusTrace);
1312
1329
  }
1313
1330
  /**
1314
1331
  * Unwraps `Exit` values that also signify end-of-stream by failing with `None`.
@@ -1319,7 +1336,7 @@ function flatten_1(self) {
1319
1336
  */
1320
1337
 
1321
1338
 
1322
- function flattenExitOption_1(stream) {
1339
+ function flattenExitOption_1(stream, __tsplusTrace) {
1323
1340
  const processChunk = (chunk, cont) => {
1324
1341
  const [toEmit, rest] = tsplus_module_12.splitWhere_(chunk, _ => !tsplus_module_51.isSuccess(_));
1325
1342
  const next = tsplus_module_20.match_(tsplus_module_12.head(rest), () => cont, exit => tsplus_module_34.match_(exit, cause => tsplus_module_20.match_(tsplus_module_25.flipCauseOption(cause), () => tsplus_module_11.endNow(undefined), tsplus_module_11.failCauseNow), () => tsplus_module_11.endNow(undefined)));
@@ -1336,8 +1353,8 @@ function flattenExitOption_1(stream) {
1336
1353
  */
1337
1354
 
1338
1355
 
1339
- function flattenTake_1(stream) {
1340
- return flattenChunks_1(flattenExitOption_1(map_1(stream, take => take.exit)));
1356
+ function flattenTake_1(stream, __tsplusTrace) {
1357
+ return flattenChunks_1(flattenExitOption_1(map_1(stream, take => take.exit, __tsplusTrace), __tsplusTrace), __tsplusTrace);
1341
1358
  }
1342
1359
  /**
1343
1360
  * Submerges the chunks carried by this stream into the stream's structure, while
@@ -1347,7 +1364,7 @@ function flattenTake_1(stream) {
1347
1364
  */
1348
1365
 
1349
1366
 
1350
- function flattenChunks_1(stream) {
1367
+ function flattenChunks_1(stream, __tsplusTrace) {
1351
1368
  return new _definition2.Stream(tsplus_module_10.mapOut_(stream.channel, c => tsplus_module_12.flatten(c)));
1352
1369
  }
1353
1370
  /**
@@ -1357,7 +1374,7 @@ function flattenChunks_1(stream) {
1357
1374
  */
1358
1375
 
1359
1376
 
1360
- function forever_1(stream) {
1377
+ function forever_1(stream, __tsplusTrace) {
1361
1378
  return new _definition2.Stream(tsplus_module_10.repeated(stream.channel));
1362
1379
  }
1363
1380
  /**
@@ -1367,7 +1384,7 @@ function forever_1(stream) {
1367
1384
  */
1368
1385
 
1369
1386
 
1370
- function fromChunkNow_1(c) {
1387
+ function fromChunkNow_1(c, __tsplusTrace) {
1371
1388
  return new _definition2.Stream(tsplus_module_10.defer(() => tsplus_module_12.isEmpty(c) ? tsplus_module_10.unit : tsplus_module_10.writeNow(c)));
1372
1389
  }
1373
1390
  /**
@@ -1377,8 +1394,8 @@ function fromChunkNow_1(c) {
1377
1394
  */
1378
1395
 
1379
1396
 
1380
- function fromChunk_1(c) {
1381
- return new _definition2.Stream(tsplus_module_10.unwrap(() => tsplus_module_1.succeedNow(tsplus_module_10.write(c), fileName_1 + ":1518:49")));
1397
+ function fromChunk_1(c, __tsplusTrace) {
1398
+ return new _definition2.Stream(tsplus_module_10.unwrap(() => tsplus_module_1.succeedNow(tsplus_module_10.write(c), __tsplusTrace)));
1382
1399
  }
1383
1400
  /**
1384
1401
  * Creates a single-valued stream from a managed resource
@@ -1387,8 +1404,8 @@ function fromChunk_1(c) {
1387
1404
  */
1388
1405
 
1389
1406
 
1390
- function scoped_1(stream) {
1391
- return new _definition2.Stream(tsplus_module_10.scoped(() => tsplus_module_1.map_(stream, tsplus_module_19.single, fileName_1 + ":1527:46")));
1407
+ function scoped_1(stream, __tsplusTrace) {
1408
+ return new _definition2.Stream(tsplus_module_10.scoped(() => tsplus_module_1.map_(stream, tsplus_module_19.single, __tsplusTrace)));
1392
1409
  }
1393
1410
  /**
1394
1411
  * Creates a stream from an effect producing a value of type `A`
@@ -1397,8 +1414,8 @@ function scoped_1(stream) {
1397
1414
  */
1398
1415
 
1399
1416
 
1400
- function fromIO_1(fa) {
1401
- return fromIOMaybe_1(tsplus_module_1.mapError_(fa, tsplus_module_3.just, fileName_1 + ":1536:40"));
1417
+ function fromIO_1(fa, __tsplusTrace) {
1418
+ return fromIOMaybe_1(tsplus_module_1.mapError_(fa, tsplus_module_3.just, __tsplusTrace), __tsplusTrace);
1402
1419
  }
1403
1420
  /**
1404
1421
  * Creates a stream from an effect producing a value of type `A` or an empty Stream
@@ -1407,13 +1424,13 @@ function fromIO_1(fa) {
1407
1424
  */
1408
1425
 
1409
1426
 
1410
- function fromIOMaybe_1(fa) {
1411
- return new _definition2.Stream(tsplus_module_10.unwrap(() => tsplus_module_1.match_(fa, maybeError => tsplus_module_20.match_(maybeError, () => tsplus_module_10.unit, tsplus_module_10.failNow), a => tsplus_module_10.writeNow(tsplus_module_19.single(a)), fileName_1 + ":1547:15")));
1427
+ function fromIOMaybe_1(fa, __tsplusTrace) {
1428
+ return new _definition2.Stream(tsplus_module_10.unwrap(() => tsplus_module_1.match_(fa, maybeError => tsplus_module_20.match_(maybeError, () => tsplus_module_10.unit, tsplus_module_10.failNow), a => tsplus_module_10.writeNow(tsplus_module_19.single(a)), __tsplusTrace)));
1412
1429
  }
1413
1430
 
1414
- function fromAsyncIterableLoop(iterator) {
1431
+ function fromAsyncIterableLoop(iterator, __tsplusTrace) {
1415
1432
  return tsplus_module_10.unwrap(() => tsplus_module_1.async(k => {
1416
- iterator.next().then(result => result.done ? k(tsplus_module_1.succeedNow(tsplus_module_11.end(() => undefined), fileName_1 + ":1564:30")) : k(tsplus_module_1.succeedNow(tsplus_module_11.apSecond_(tsplus_module_10.writeNow(tsplus_module_19.single(result.value)), fromAsyncIterableLoop(iterator)), fileName_1 + ":1565:30")));
1433
+ iterator.next().then(result => result.done ? k(tsplus_module_1.succeedNow(tsplus_module_11.end(() => undefined), __tsplusTrace)) : k(tsplus_module_1.succeedNow(tsplus_module_11.apSecond_(tsplus_module_10.writeNow(tsplus_module_19.single(result.value)), fromAsyncIterableLoop(iterator, __tsplusTrace)), __tsplusTrace)));
1417
1434
  }));
1418
1435
  }
1419
1436
  /**
@@ -1421,15 +1438,15 @@ function fromAsyncIterableLoop(iterator) {
1421
1438
  */
1422
1439
 
1423
1440
 
1424
- function fromAsyncIterable(iterable) {
1425
- return new _definition2.Stream(fromAsyncIterableLoop(iterable[Symbol.asyncIterator]()));
1441
+ function fromAsyncIterable(iterable, __tsplusTrace) {
1442
+ return new _definition2.Stream(fromAsyncIterableLoop(iterable[Symbol.asyncIterator](), __tsplusTrace));
1426
1443
  }
1427
1444
  /**
1428
1445
  * @tsplus static fncts.io.StreamOps fromIterable
1429
1446
  */
1430
1447
 
1431
1448
 
1432
- function fromIterable(iterable, maxChunkSize = _definition2.DEFAULT_CHUNK_SIZE) {
1449
+ function fromIterable(iterable, maxChunkSize = _definition2.DEFAULT_CHUNK_SIZE, __tsplusTrace) {
1433
1450
  return unwrap_1(tsplus_module_1.succeed(() => {
1434
1451
  const loop = iterator => tsplus_module_10.unwrap(() => tsplus_module_1.succeed(() => {
1435
1452
  let result = iterator.next();
@@ -1452,34 +1469,34 @@ function fromIterable(iterable, maxChunkSize = _definition2.DEFAULT_CHUNK_SIZE)
1452
1469
 
1453
1470
  return tsplus_module_11.apSecond_(tsplus_module_10.writeNow(tsplus_module_19.from(out)), loop(iterator));
1454
1471
  }
1455
- }, fileName_1 + ":1586:21"));
1472
+ }, __tsplusTrace));
1456
1473
 
1457
1474
  return new _definition2.Stream(loop(iterable[Symbol.iterator]()));
1458
- }, fileName_1 + ":1583:15"));
1475
+ }, __tsplusTrace), __tsplusTrace);
1459
1476
  }
1460
1477
  /**
1461
1478
  * @tsplus static fncts.io.StreamOps fromIterableSingle
1462
1479
  */
1463
1480
 
1464
1481
 
1465
- function fromIterableSingle(iterable) {
1466
- return flatMap_1(fromIO_1(tsplus_module_1.succeed(() => iterable[Symbol.iterator](), fileName_1 + ":1614:34")), iterator => repeatIOMaybe_1(tsplus_module_1.defer(() => {
1482
+ function fromIterableSingle(iterable, __tsplusTrace) {
1483
+ return flatMap_1(fromIO_1(tsplus_module_1.succeed(() => iterable[Symbol.iterator](), __tsplusTrace), __tsplusTrace), iterator => repeatIOMaybe_1(tsplus_module_1.defer(() => {
1467
1484
  const value = iterator.next();
1468
1485
 
1469
1486
  if (value.done) {
1470
- return tsplus_module_1.failNow(tsplus_module_3.nothing(), fileName_1 + ":1619:28");
1487
+ return tsplus_module_1.failNow(tsplus_module_3.nothing(), __tsplusTrace);
1471
1488
  } else {
1472
- return tsplus_module_1.succeedNow(value.value, fileName_1 + ":1621:31");
1489
+ return tsplus_module_1.succeedNow(value.value, __tsplusTrace);
1473
1490
  }
1474
- }, fileName_1 + ":1616:15")));
1491
+ }, __tsplusTrace), __tsplusTrace), __tsplusTrace);
1475
1492
  }
1476
1493
  /**
1477
1494
  * @tsplus static fncts.io.StreamOps fromPull
1478
1495
  */
1479
1496
 
1480
1497
 
1481
- function fromPull_1(scopedPull) {
1482
- return unwrapScoped_1(tsplus_module_1.map_(scopedPull, pull => repeatIOChunkMaybe_1(pull), fileName_1 + ":1632:44"));
1498
+ function fromPull_1(scopedPull, __tsplusTrace) {
1499
+ return unwrapScoped_1(tsplus_module_1.map_(scopedPull, pull => repeatIOChunkMaybe_1(pull, __tsplusTrace), __tsplusTrace), __tsplusTrace);
1483
1500
  }
1484
1501
  /**
1485
1502
  * Creates a stream from a `Queue` of values
@@ -1488,22 +1505,22 @@ function fromPull_1(scopedPull) {
1488
1505
  */
1489
1506
 
1490
1507
 
1491
- function fromQueue_1(queue, maxChunkSize = _definition2.DEFAULT_CHUNK_SIZE) {
1492
- return repeatIOChunkMaybe_1(tsplus_module_1.catchAllCause_(tsplus_module_1.map_(tsplus_module_53.takeBetween_(queue, 1, maxChunkSize), tsplus_module_19.from, fileName_1 + ":1647:11"), c => tsplus_module_1.flatMap_(tsplus_module_27.isShutdown(queue), down => {
1508
+ function fromQueue_1(queue, maxChunkSize = _definition2.DEFAULT_CHUNK_SIZE, __tsplusTrace) {
1509
+ return repeatIOChunkMaybe_1(tsplus_module_1.catchAllCause_(tsplus_module_1.map_(tsplus_module_53.takeBetween_(queue, 1, maxChunkSize, __tsplusTrace), tsplus_module_19.from, __tsplusTrace), c => tsplus_module_1.flatMap_(tsplus_module_27.isShutdown(queue, __tsplusTrace), down => {
1493
1510
  if (down && tsplus_module_25.interrupted(c)) {
1494
1511
  return tsplus_module_52.end;
1495
1512
  } else {
1496
1513
  return tsplus_module_52.failCause(c);
1497
1514
  }
1498
- }, fileName_1 + ":1649:33"), fileName_1 + ":1648:21"));
1515
+ }, __tsplusTrace), __tsplusTrace), __tsplusTrace);
1499
1516
  }
1500
1517
  /**
1501
1518
  * @tsplus static fncts.io.StreamOps fromQueueWithShutdown
1502
1519
  */
1503
1520
 
1504
1521
 
1505
- function fromQueueWithShutdown_1(queue, maxChunkSize = _definition2.DEFAULT_CHUNK_SIZE) {
1506
- return ensuring_1(fromQueue_1(queue, maxChunkSize), tsplus_module_27.shutdown(queue));
1522
+ function fromQueueWithShutdown_1(queue, maxChunkSize = _definition2.DEFAULT_CHUNK_SIZE, __tsplusTrace) {
1523
+ return ensuring_1(fromQueue_1(queue, maxChunkSize, __tsplusTrace), tsplus_module_27.shutdown(queue, __tsplusTrace), __tsplusTrace);
1507
1524
  }
1508
1525
  /**
1509
1526
  * Halt a stream with the specified exception
@@ -1512,7 +1529,7 @@ function fromQueueWithShutdown_1(queue, maxChunkSize = _definition2.DEFAULT_CHUN
1512
1529
  */
1513
1530
 
1514
1531
 
1515
- function haltNow(u) {
1532
+ function haltNow(u, __tsplusTrace) {
1516
1533
  return new _definition2.Stream(tsplus_module_10.halt(() => u));
1517
1534
  }
1518
1535
  /**
@@ -1522,12 +1539,12 @@ function haltNow(u) {
1522
1539
  */
1523
1540
 
1524
1541
 
1525
- function halt_1(u) {
1542
+ function halt_1(u, __tsplusTrace) {
1526
1543
  return new _definition2.Stream(tsplus_module_10.halt(u));
1527
1544
  }
1528
1545
 
1529
- function haltWhenWriter(fiber) {
1530
- return tsplus_module_10.unwrap(() => tsplus_module_1.map_(tsplus_module_48.poll(fiber), maybeExit => tsplus_module_20.match_(maybeExit, () => tsplus_module_10.readWith(i => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(i), haltWhenWriter(fiber)), tsplus_module_10.failNow, () => tsplus_module_10.unit), exit => tsplus_module_34.match_(exit, tsplus_module_11.failCauseNow, () => tsplus_module_10.unit)), fileName_1 + ":1692:19"));
1546
+ function haltWhenWriter(fiber, __tsplusTrace) {
1547
+ return tsplus_module_10.unwrap(() => tsplus_module_1.map_(tsplus_module_48.poll(fiber, __tsplusTrace), maybeExit => tsplus_module_20.match_(maybeExit, () => tsplus_module_10.readWith(i => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(i), haltWhenWriter(fiber, __tsplusTrace)), tsplus_module_10.failNow, () => tsplus_module_10.unit), exit => tsplus_module_34.match_(exit, tsplus_module_11.failCauseNow, () => tsplus_module_10.unit)), __tsplusTrace));
1531
1548
  }
1532
1549
  /**
1533
1550
  * Halts the evaluation of this stream when the provided IO completes. The
@@ -1543,12 +1560,12 @@ function haltWhenWriter(fiber) {
1543
1560
  */
1544
1561
 
1545
1562
 
1546
- function haltWhen_(fa, io) {
1547
- return new _definition2.Stream(tsplus_module_10.unwrapScoped(() => tsplus_module_1.map_(tsplus_module_17.forkScoped(io, fileName_1 + ":1719:44"), fiber => tsplus_module_10.pipeTo_(fa.channel, haltWhenWriter(fiber)), fileName_1 + ":1719:59")));
1563
+ function haltWhen_(fa, io, __tsplusTrace) {
1564
+ return new _definition2.Stream(tsplus_module_10.unwrapScoped(() => tsplus_module_1.map_(tsplus_module_17.forkScoped(io, __tsplusTrace), fiber => tsplus_module_10.pipeTo_(fa.channel, haltWhenWriter(fiber, __tsplusTrace)), __tsplusTrace)));
1548
1565
  }
1549
1566
 
1550
- function haltWhenFutureWriter(future) {
1551
- return tsplus_module_10.unwrap(() => tsplus_module_1.map_(tsplus_module_35.poll(future), maybeIO => tsplus_module_20.match_(maybeIO, () => tsplus_module_10.readWith(i => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(i), haltWhenFutureWriter(future)), tsplus_module_10.failNow, () => tsplus_module_10.unit), io => tsplus_module_10.unwrap(() => tsplus_module_1.match_(io, tsplus_module_10.failNow, () => tsplus_module_10.unit, fileName_1 + ":1734:40"))), fileName_1 + ":1726:20"));
1567
+ function haltWhenFutureWriter(future, __tsplusTrace) {
1568
+ return tsplus_module_10.unwrap(() => tsplus_module_1.map_(tsplus_module_35.poll(future, __tsplusTrace), maybeIO => tsplus_module_20.match_(maybeIO, () => tsplus_module_10.readWith(i => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(i), haltWhenFutureWriter(future, __tsplusTrace)), tsplus_module_10.failNow, () => tsplus_module_10.unit), io => tsplus_module_10.unwrap(() => tsplus_module_1.match_(io, tsplus_module_10.failNow, () => tsplus_module_10.unit, __tsplusTrace))), __tsplusTrace));
1552
1569
  }
1553
1570
  /**
1554
1571
  * Halts the evaluation of this stream when the provided promise resolves.
@@ -1559,20 +1576,20 @@ function haltWhenFutureWriter(future) {
1559
1576
  */
1560
1577
 
1561
1578
 
1562
- function haltWhenFuture_(fa, future) {
1563
- return new _definition2.Stream(tsplus_module_10.pipeTo_(fa.channel, haltWhenFutureWriter(future)));
1579
+ function haltWhenFuture_(fa, future, __tsplusTrace) {
1580
+ return new _definition2.Stream(tsplus_module_10.pipeTo_(fa.channel, haltWhenFutureWriter(future, __tsplusTrace)));
1564
1581
  }
1565
1582
  /**
1566
1583
  * @tsplus fluent fncts.io.Stream interleave
1567
1584
  */
1568
1585
 
1569
1586
 
1570
- function interleave_(sa, sb) {
1571
- return interleaveWith_1(sa, sb, forever_1(fromChunk_1(() => tsplus_module_19.make(true, false))));
1587
+ function interleave_(sa, sb, __tsplusTrace) {
1588
+ return interleaveWith_1(sa, sb, forever_1(fromChunk_1(() => tsplus_module_19.make(true, false), __tsplusTrace), __tsplusTrace), __tsplusTrace);
1572
1589
  }
1573
1590
 
1574
- function interleaveWithProducer(handoff) {
1575
- return tsplus_module_10.readWithCause(value => tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_26.single(value))), interleaveWithProducer(handoff)), cause => tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_26.failCause(cause))), () => tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_26.end)));
1591
+ function interleaveWithProducer(handoff, __tsplusTrace) {
1592
+ return tsplus_module_10.readWithCause(value => tsplus_module_11.apSecond_(tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_26.single(value))), interleaveWithProducer(handoff, __tsplusTrace)), cause => tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_26.failCause(cause))), () => tsplus_module_10.fromIO(() => tsplus_module_5.offer(handoff, tsplus_module_26.end)));
1576
1593
  }
1577
1594
  /**
1578
1595
  * Combines this stream and the specified stream deterministically using the
@@ -1586,8 +1603,8 @@ function interleaveWithProducer(handoff) {
1586
1603
  */
1587
1604
 
1588
1605
 
1589
- function interleaveWith_1(sa, sb, b) {
1590
- return new _definition2.Stream(tsplus_module_10.unwrapScoped(() => tsplus_module_1.map_(tsplus_module_1.flatMap_(tsplus_module_5.make(), left => tsplus_module_1.flatMap_(tsplus_module_5.make(), right => tsplus_module_1.flatMap_(tsplus_module_1.fork(tsplus_module_16.runScoped(tsplus_module_10.pipeTo_(tsplus_module_10.concatMap_(sa.channel, tsplus_module_10.writeChunk), interleaveWithProducer(left))), fileName_1 + ":1789:98"), () => tsplus_module_1.map_(tsplus_module_1.fork(tsplus_module_16.runScoped(tsplus_module_10.pipeTo_(tsplus_module_10.concatMap_(sb.channel, tsplus_module_10.writeChunk), interleaveWithProducer(right))), fileName_1 + ":1790:99"), () => (0, _function.tuple)(left, right), fileName_1 + ":1790:10"), fileName_1 + ":1789:10"), fileName_1 + ":1788:24"), fileName_1 + ":1787:24"), ([left, right]) => {
1606
+ function interleaveWith_1(sa, sb, b, __tsplusTrace) {
1607
+ return new _definition2.Stream(tsplus_module_10.unwrapScoped(() => tsplus_module_1.map_(tsplus_module_1.flatMap_(tsplus_module_5.make(), left => tsplus_module_1.flatMap_(tsplus_module_5.make(), right => tsplus_module_1.flatMap_(tsplus_module_1.fork(tsplus_module_16.runScoped(tsplus_module_10.pipeTo_(tsplus_module_10.concatMap_(sa.channel, tsplus_module_10.writeChunk), interleaveWithProducer(left, __tsplusTrace))), __tsplusTrace), () => tsplus_module_1.map_(tsplus_module_1.fork(tsplus_module_16.runScoped(tsplus_module_10.pipeTo_(tsplus_module_10.concatMap_(sb.channel, tsplus_module_10.writeChunk), interleaveWithProducer(right, __tsplusTrace))), __tsplusTrace), () => (0, _function.tuple)(left, right), __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace), ([left, right]) => {
1591
1608
  const process = (leftDone, rightDone) => tsplus_module_10.readWithCause(b => {
1592
1609
  if (b && !leftDone) {
1593
1610
  return tsplus_module_11.flatMap_(tsplus_module_10.fromIO(() => tsplus_module_5.take(left)), take => tsplus_module_26.match_(take, rightDone ? tsplus_module_10.unit : process(true, rightDone), tsplus_module_11.failCauseNow, chunk => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(chunk), process(leftDone, rightDone))));
@@ -1601,10 +1618,10 @@ function interleaveWith_1(sa, sb, b) {
1601
1618
  }, tsplus_module_11.failCauseNow, () => tsplus_module_10.unit);
1602
1619
 
1603
1620
  return tsplus_module_10.pipeTo_(tsplus_module_10.concatMap_(b.channel, tsplus_module_10.writeChunk), process(false, false));
1604
- }, fileName_1 + ":1792:13")));
1621
+ }, __tsplusTrace)));
1605
1622
  }
1606
1623
 
1607
- function intersperseWriter(middle, isFirst) {
1624
+ function intersperseWriter(middle, isFirst, __tsplusTrace) {
1608
1625
  return tsplus_module_10.readWith(inp => {
1609
1626
  const builder = tsplus_module_12.builder();
1610
1627
  let flagResult = isFirst;
@@ -1617,7 +1634,7 @@ function intersperseWriter(middle, isFirst) {
1617
1634
  builder.append(a);
1618
1635
  }
1619
1636
  });
1620
- return tsplus_module_11.apSecond_(tsplus_module_10.writeNow(builder.result()), intersperseWriter(middle, flagResult));
1637
+ return tsplus_module_11.apSecond_(tsplus_module_10.writeNow(builder.result()), intersperseWriter(middle, flagResult, __tsplusTrace));
1621
1638
  }, tsplus_module_10.failNow, () => tsplus_module_10.unit);
1622
1639
  }
1623
1640
  /**
@@ -1625,8 +1642,8 @@ function intersperseWriter(middle, isFirst) {
1625
1642
  */
1626
1643
 
1627
1644
 
1628
- function intersperse_(stream, middle) {
1629
- return new _definition2.Stream(tsplus_module_10.pipeTo_(stream.channel, intersperseWriter(middle, true)));
1645
+ function intersperse_(stream, middle, __tsplusTrace) {
1646
+ return new _definition2.Stream(tsplus_module_10.pipeTo_(stream.channel, intersperseWriter(middle, true, __tsplusTrace)));
1630
1647
  }
1631
1648
  /**
1632
1649
  * Interrupts the evaluation of this stream when the provided IO completes. The given
@@ -1640,7 +1657,7 @@ function intersperse_(stream, middle) {
1640
1657
  */
1641
1658
 
1642
1659
 
1643
- function interruptWhen_(stream, io) {
1660
+ function interruptWhen_(stream, io, __tsplusTrace) {
1644
1661
  return new _definition2.Stream(tsplus_module_54.interruptWhen_(stream.channel, io));
1645
1662
  }
1646
1663
  /**
@@ -1648,7 +1665,7 @@ function interruptWhen_(stream, io) {
1648
1665
  */
1649
1666
 
1650
1667
 
1651
- function interruptWhenFuture_(fa, future) {
1668
+ function interruptWhenFuture_(fa, future, __tsplusTrace) {
1652
1669
  return new _definition2.Stream(tsplus_module_54.interruptWhenFuture_(fa.channel, future));
1653
1670
  }
1654
1671
  /**
@@ -1658,14 +1675,14 @@ function interruptWhenFuture_(fa, future) {
1658
1675
  */
1659
1676
 
1660
1677
 
1661
- function map_1(stream, f) {
1678
+ function map_1(stream, f, __tsplusTrace) {
1662
1679
  return new _definition2.Stream(tsplus_module_10.mapOut_(stream.channel, as => tsplus_module_12.map_(as, f)));
1663
1680
  }
1664
1681
 
1665
- function mapAccumAccumulator(currS, f) {
1682
+ function mapAccumAccumulator(currS, f, __tsplusTrace) {
1666
1683
  return tsplus_module_10.readWith(inp => {
1667
1684
  const [nextS, bs] = tsplus_module_12.mapAccum_(inp, currS, f);
1668
- return tsplus_module_11.apSecond_(tsplus_module_10.writeNow(bs), mapAccumAccumulator(nextS, f));
1685
+ return tsplus_module_11.apSecond_(tsplus_module_10.writeNow(bs), mapAccumAccumulator(nextS, f, __tsplusTrace));
1669
1686
  }, tsplus_module_10.failNow, () => tsplus_module_10.unit);
1670
1687
  }
1671
1688
  /**
@@ -1675,23 +1692,23 @@ function mapAccumAccumulator(currS, f) {
1675
1692
  */
1676
1693
 
1677
1694
 
1678
- function mapAccum_1(stream, s, f) {
1679
- return new _definition2.Stream(tsplus_module_10.pipeTo_(stream.channel, mapAccumAccumulator(s, f)));
1695
+ function mapAccum_1(stream, s, f, __tsplusTrace) {
1696
+ return new _definition2.Stream(tsplus_module_10.pipeTo_(stream.channel, mapAccumAccumulator(s, f, __tsplusTrace)));
1680
1697
  }
1681
1698
 
1682
- function mapAccumIOAccumulator(s, f) {
1699
+ function mapAccumIOAccumulator(s, f, __tsplusTrace) {
1683
1700
  return tsplus_module_10.readWith(inp => tsplus_module_10.unwrap(() => tsplus_module_1.defer(() => {
1684
1701
  const outputChunk = tsplus_module_12.builder();
1685
1702
 
1686
1703
  const emit = b => tsplus_module_1.succeed(() => {
1687
1704
  outputChunk.append(b);
1688
- }, fileName_1 + ":1928:23");
1705
+ }, __tsplusTrace);
1689
1706
 
1690
- return tsplus_module_1.match_(tsplus_module_1.foldLeft_(inp, s, (s1, a) => tsplus_module_1.flatMap_(f(s1, a), ([b, s2]) => tsplus_module_1.as_(emit(b), () => s2), fileName_1 + ":1931:65"), fileName_1 + ":1931:29"), e => {
1707
+ return tsplus_module_1.match_(tsplus_module_1.foldLeft_(inp, s, (s1, a) => tsplus_module_1.flatMap_(f(s1, a), ([b, s2]) => tsplus_module_1.as_(emit(b), () => s2, __tsplusTrace), __tsplusTrace), __tsplusTrace), e => {
1691
1708
  const partialResult = outputChunk.result();
1692
1709
  return tsplus_module_12.isNonEmpty(partialResult) ? tsplus_module_11.apSecond_(tsplus_module_10.writeNow(partialResult), tsplus_module_10.failNow(e)) : tsplus_module_10.failNow(e);
1693
- }, s => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(outputChunk.result()), mapAccumIOAccumulator(s, f)), fileName_1 + ":1931:101");
1694
- }, fileName_1 + ":1925:17")), tsplus_module_10.failNow, () => tsplus_module_10.unit);
1710
+ }, s => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(outputChunk.result()), mapAccumIOAccumulator(s, f, __tsplusTrace)), __tsplusTrace);
1711
+ }, __tsplusTrace)), tsplus_module_10.failNow, () => tsplus_module_10.unit);
1695
1712
  }
1696
1713
  /**
1697
1714
  * Statefully and effectfully maps over the elements of this stream to produce
@@ -1701,8 +1718,8 @@ function mapAccumIOAccumulator(s, f) {
1701
1718
  */
1702
1719
 
1703
1720
 
1704
- function mapAccumIO_1(stream, s, f) {
1705
- return new _definition2.Stream(tsplus_module_10.pipeTo_(stream.channel, mapAccumIOAccumulator(s, f)));
1721
+ function mapAccumIO_1(stream, s, f, __tsplusTrace) {
1722
+ return new _definition2.Stream(tsplus_module_10.pipeTo_(stream.channel, mapAccumIOAccumulator(s, f, __tsplusTrace)));
1706
1723
  }
1707
1724
  /**
1708
1725
  * Transforms the chunks emitted by this stream.
@@ -1711,7 +1728,7 @@ function mapAccumIO_1(stream, s, f) {
1711
1728
  */
1712
1729
 
1713
1730
 
1714
- function mapChunks_1(stream, f) {
1731
+ function mapChunks_1(stream, f, __tsplusTrace) {
1715
1732
  return new _definition2.Stream(tsplus_module_10.mapOut_(stream.channel, f));
1716
1733
  }
1717
1734
  /**
@@ -1721,7 +1738,7 @@ function mapChunks_1(stream, f) {
1721
1738
  */
1722
1739
 
1723
1740
 
1724
- function mapChunksIO_(stream, f) {
1741
+ function mapChunksIO_(stream, f, __tsplusTrace) {
1725
1742
  return new _definition2.Stream(tsplus_module_10.mapOutIO_(stream.channel, f));
1726
1743
  }
1727
1744
  /**
@@ -1732,8 +1749,8 @@ function mapChunksIO_(stream, f) {
1732
1749
  */
1733
1750
 
1734
1751
 
1735
- function mapConcat_(stream, f) {
1736
- return mapConcatChunk_1(stream, a => tsplus_module_19.from(f(a)));
1752
+ function mapConcat_(stream, f, __tsplusTrace) {
1753
+ return mapConcatChunk_1(stream, a => tsplus_module_19.from(f(a)), __tsplusTrace);
1737
1754
  }
1738
1755
  /**
1739
1756
  * Maps each element to a chunk, and flattens the chunks into the output of
@@ -1743,8 +1760,8 @@ function mapConcat_(stream, f) {
1743
1760
  */
1744
1761
 
1745
1762
 
1746
- function mapConcatChunk_1(stream, f) {
1747
- return mapChunks_1(stream, c => tsplus_module_12.flatMap_(c, f));
1763
+ function mapConcatChunk_1(stream, f, __tsplusTrace) {
1764
+ return mapChunks_1(stream, c => tsplus_module_12.flatMap_(c, f), __tsplusTrace);
1748
1765
  }
1749
1766
  /**
1750
1767
  * Effectfully maps each element to a chunk, and flattens the chunks into
@@ -1754,8 +1771,8 @@ function mapConcatChunk_1(stream, f) {
1754
1771
  */
1755
1772
 
1756
1773
 
1757
- function mapConcatChunkIO_(stream, f) {
1758
- return mapConcatChunk_1(mapIO_1(stream, f), _function.identity);
1774
+ function mapConcatChunkIO_(stream, f, __tsplusTrace) {
1775
+ return mapConcatChunk_1(mapIO_1(stream, f, __tsplusTrace), _function.identity, __tsplusTrace);
1759
1776
  }
1760
1777
  /**
1761
1778
  * Effectfully maps each element to an iterable, and flattens the iterables into
@@ -1765,8 +1782,8 @@ function mapConcatChunkIO_(stream, f) {
1765
1782
  */
1766
1783
 
1767
1784
 
1768
- function mapConcatIO_(stream, f) {
1769
- return mapConcatChunk_1(mapIO_1(stream, a => tsplus_module_1.map_(f(a), tsplus_module_19.from, fileName_1 + ":2025:38")), _function.identity);
1785
+ function mapConcatIO_(stream, f, __tsplusTrace) {
1786
+ return mapConcatChunk_1(mapIO_1(stream, a => tsplus_module_1.map_(f(a), tsplus_module_19.from, __tsplusTrace), __tsplusTrace), _function.identity, __tsplusTrace);
1770
1787
  }
1771
1788
  /**
1772
1789
  * Transforms the errors emitted by this stream using `f`.
@@ -1775,7 +1792,7 @@ function mapConcatIO_(stream, f) {
1775
1792
  */
1776
1793
 
1777
1794
 
1778
- function mapError_1(stream, f) {
1795
+ function mapError_1(stream, f, __tsplusTrace) {
1779
1796
  return new _definition2.Stream(tsplus_module_10.mapError_(stream.channel, f));
1780
1797
  }
1781
1798
  /**
@@ -1785,7 +1802,7 @@ function mapError_1(stream, f) {
1785
1802
  */
1786
1803
 
1787
1804
 
1788
- function mapErrorCause_(fa, f) {
1805
+ function mapErrorCause_(fa, f, __tsplusTrace) {
1789
1806
  return new _definition2.Stream(tsplus_module_10.mapErrorCause_(fa.channel, f));
1790
1807
  }
1791
1808
  /**
@@ -1795,17 +1812,17 @@ function mapErrorCause_(fa, f) {
1795
1812
  */
1796
1813
 
1797
1814
 
1798
- function mapIO_1(stream, f) {
1799
- return new _definition2.Stream(tsplus_module_10.pipeTo_(stream.channel, mapIOLoop(tsplus_module_38.empty()[Symbol.iterator](), f)));
1815
+ function mapIO_1(stream, f, __tsplusTrace) {
1816
+ return new _definition2.Stream(tsplus_module_10.pipeTo_(stream.channel, mapIOLoop(tsplus_module_38.empty()[Symbol.iterator](), f, __tsplusTrace)));
1800
1817
  }
1801
1818
 
1802
- function mapIOLoop(iterator, f) {
1819
+ function mapIOLoop(iterator, f, __tsplusTrace) {
1803
1820
  const next = iterator.next();
1804
1821
 
1805
1822
  if (next.done) {
1806
- return tsplus_module_10.readWithCause(elem => mapIOLoop(elem[Symbol.iterator](), f), tsplus_module_11.failCauseNow, tsplus_module_11.succeedNow);
1823
+ return tsplus_module_10.readWithCause(elem => mapIOLoop(elem[Symbol.iterator](), f, __tsplusTrace), tsplus_module_11.failCauseNow, tsplus_module_11.succeedNow);
1807
1824
  } else {
1808
- return tsplus_module_10.unwrap(() => tsplus_module_1.map_(f(next.value), b => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(tsplus_module_19.single(b)), mapIOLoop(iterator, f)), fileName_1 + ":2071:24"));
1825
+ return tsplus_module_10.unwrap(() => tsplus_module_1.map_(f(next.value), b => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(tsplus_module_19.single(b)), mapIOLoop(iterator, f, __tsplusTrace)), __tsplusTrace));
1809
1826
  }
1810
1827
  }
1811
1828
  /**
@@ -1819,7 +1836,7 @@ function mapIOLoop(iterator, f) {
1819
1836
  */
1820
1837
 
1821
1838
 
1822
- function mapIOC_(stream, n, f) {
1839
+ function mapIOC_(stream, n, f, __tsplusTrace) {
1823
1840
  return new _definition2.Stream(tsplus_module_10.mapOut_(tsplus_module_55.mapOutIOC_(tsplus_module_10.concatMap_(stream.channel, tsplus_module_10.writeChunk), n, f), tsplus_module_19.single));
1824
1841
  }
1825
1842
  /**
@@ -1832,7 +1849,7 @@ function mapIOC_(stream, n, f) {
1832
1849
  */
1833
1850
 
1834
1851
 
1835
- function mergeMap_1(ma, f, n, bufferSize = 16) {
1852
+ function mergeMap_1(ma, f, n, bufferSize = 16, __tsplusTrace) {
1836
1853
  return new _definition2.Stream(tsplus_module_56.mergeMap_(tsplus_module_10.concatMap_(ma.channel, tsplus_module_10.writeChunk), a => f(a).channel, n, bufferSize));
1837
1854
  }
1838
1855
  /**
@@ -1844,28 +1861,28 @@ function mergeMap_1(ma, f, n, bufferSize = 16) {
1844
1861
  */
1845
1862
 
1846
1863
 
1847
- function mergeMapIO_(stream, f, n, bufferSize = 16) {
1848
- return mergeMap_1(stream, a => fromIO_1(f(a)), n, bufferSize);
1864
+ function mergeMapIO_(stream, f, n, bufferSize = 16, __tsplusTrace) {
1865
+ return mergeMap_1(stream, a => fromIO_1(f(a), __tsplusTrace), n, bufferSize, __tsplusTrace);
1849
1866
  }
1850
1867
  /**
1851
1868
  * @tsplus fluent fncts.io.Stream mergeEither
1852
1869
  */
1853
1870
 
1854
1871
 
1855
- function mergeEither_1(fa, fb) {
1872
+ function mergeEither_1(fa, fb, __tsplusTrace) {
1856
1873
  return mergeWith_1(fa, fb, tsplus_module_18.left, tsplus_module_18.right);
1857
1874
  }
1858
1875
 
1859
- function mergeWithHandler(terminate) {
1860
- return exit => terminate || !tsplus_module_51.isSuccess(exit) ? tsplus_module_57.done(tsplus_module_1.fromExitNow(exit, fileName_1 + ":2140:71")) : tsplus_module_57.wait(tsplus_module_1.fromExitNow);
1876
+ function mergeWithHandler(terminate, __tsplusTrace) {
1877
+ return exit => terminate || !tsplus_module_51.isSuccess(exit) ? tsplus_module_57.done(tsplus_module_1.fromExitNow(exit, __tsplusTrace)) : tsplus_module_57.wait(tsplus_module_1.fromExitNow);
1861
1878
  }
1862
1879
  /**
1863
1880
  * @tsplus fluent fncts.io.Stream mergeWith
1864
1881
  */
1865
1882
 
1866
1883
 
1867
- function mergeWith_1(sa, sb, l, r, strategy = "Both") {
1868
- return new _definition2.Stream(tsplus_module_58.mergeWith_(map_1(sa, l).channel, map_1(sb, r).channel, mergeWithHandler(strategy === "Either" || strategy === "Left"), mergeWithHandler(strategy === "Either" || strategy === "Right")));
1884
+ function mergeWith_1(sa, sb, l, r, strategy = "Both", __tsplusTrace) {
1885
+ return new _definition2.Stream(tsplus_module_58.mergeWith_(map_1(sa, l, __tsplusTrace).channel, map_1(sb, r, __tsplusTrace).channel, mergeWithHandler(strategy === "Either" || strategy === "Left", __tsplusTrace), mergeWithHandler(strategy === "Either" || strategy === "Right", __tsplusTrace)));
1869
1886
  }
1870
1887
  /**
1871
1888
  * Runs the specified effect if this stream fails, providing the error to the effect if it exists.
@@ -1876,8 +1893,8 @@ function mergeWith_1(sa, sb, l, r, strategy = "Both") {
1876
1893
  */
1877
1894
 
1878
1895
 
1879
- function onError_(stream, cleanup) {
1880
- return catchAllCause_1(stream, cause => fromIO_1(tsplus_module_1.apSecond_(cleanup(cause), tsplus_module_1.failCauseNow(cause, fileName_1 + ":2177:88"), fileName_1 + ":2177:72")));
1896
+ function onError_(stream, cleanup, __tsplusTrace) {
1897
+ return catchAllCause_1(stream, cause => fromIO_1(tsplus_module_1.apSecond_(cleanup(cause), tsplus_module_1.failCauseNow(cause, __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace);
1881
1898
  }
1882
1899
  /**
1883
1900
  * Switches to the provided stream in case this one fails with a typed error.
@@ -1888,7 +1905,7 @@ function onError_(stream, cleanup) {
1888
1905
  */
1889
1906
 
1890
1907
 
1891
- function orElse_1(stream, that) {
1908
+ function orElse_1(stream, that, __tsplusTrace) {
1892
1909
  return new _definition2.Stream(tsplus_module_10.orElse_(stream.channel, that().channel));
1893
1910
  }
1894
1911
  /**
@@ -1900,8 +1917,8 @@ function orElse_1(stream, that) {
1900
1917
  */
1901
1918
 
1902
1919
 
1903
- function orElseEither_(stream, that) {
1904
- return orElse_1(map_1(stream, tsplus_module_18.left), () => map_1(that(), tsplus_module_18.right));
1920
+ function orElseEither_(stream, that, __tsplusTrace) {
1921
+ return orElse_1(map_1(stream, tsplus_module_18.left, __tsplusTrace), () => map_1(that(), tsplus_module_18.right, __tsplusTrace), __tsplusTrace);
1905
1922
  }
1906
1923
  /**
1907
1924
  * Fails with given error in case this one fails with a typed error.
@@ -1912,8 +1929,8 @@ function orElseEither_(stream, that) {
1912
1929
  */
1913
1930
 
1914
1931
 
1915
- function orElseFail_(stream, e) {
1916
- return orElse_1(stream, () => failNow_1(e()));
1932
+ function orElseFail_(stream, e, __tsplusTrace) {
1933
+ return orElse_1(stream, () => failNow_1(e(), __tsplusTrace), __tsplusTrace);
1917
1934
  }
1918
1935
  /**
1919
1936
  * Switches to the provided stream in case this one fails with the `None` value.
@@ -1922,8 +1939,8 @@ function orElseFail_(stream, e) {
1922
1939
  */
1923
1940
 
1924
1941
 
1925
- function orElseOptional_(stream, that) {
1926
- return catchAll_1(stream, maybeError => tsplus_module_20.match_(maybeError, () => that(), e => failNow_1(tsplus_module_3.just(e))));
1942
+ function orElseOptional_(stream, that, __tsplusTrace) {
1943
+ return catchAll_1(stream, maybeError => tsplus_module_20.match_(maybeError, () => that(), e => failNow_1(tsplus_module_3.just(e), __tsplusTrace)), __tsplusTrace);
1927
1944
  }
1928
1945
  /**
1929
1946
  * Succeeds with the specified value if this one fails with a typed error.
@@ -1932,15 +1949,15 @@ function orElseOptional_(stream, that) {
1932
1949
  */
1933
1950
 
1934
1951
 
1935
- function orElseSucceed_(stream, a) {
1936
- return orElse_1(stream, () => succeedNow_1(a()));
1952
+ function orElseSucceed_(stream, a, __tsplusTrace) {
1953
+ return orElse_1(stream, () => succeedNow_1(a(), __tsplusTrace), __tsplusTrace);
1937
1954
  }
1938
1955
  /**
1939
1956
  * @tsplus fluent fncts.io.Stream pipeThrough
1940
1957
  */
1941
1958
 
1942
1959
 
1943
- function pipeThrough_1(ma, sa) {
1960
+ function pipeThrough_1(ma, sa, __tsplusTrace) {
1944
1961
  return new _definition2.Stream(tsplus_module_10.pipeToOrFail_(ma.channel, sa.channel));
1945
1962
  }
1946
1963
  /**
@@ -1951,7 +1968,7 @@ function pipeThrough_1(ma, sa) {
1951
1968
  */
1952
1969
 
1953
1970
 
1954
- function provideEnvironment_1(ra, r) {
1971
+ function provideEnvironment_1(ra, r, __tsplusTrace) {
1955
1972
  return new _definition2.Stream(tsplus_module_10.provideEnvironment_(ra.channel, () => r));
1956
1973
  }
1957
1974
  /**
@@ -1960,7 +1977,7 @@ function provideEnvironment_1(ra, r) {
1960
1977
 
1961
1978
 
1962
1979
  function provideLayer_1(self, layer, __tsplusTrace) {
1963
- return new _definition2.Stream(tsplus_module_10.unwrapScoped(() => tsplus_module_1.map_(tsplus_module_59.build(layer), r => tsplus_module_10.provideEnvironment_(self.channel, () => r), __tsplusTrace)));
1980
+ return new _definition2.Stream(tsplus_module_10.unwrapScoped(() => tsplus_module_1.map_(tsplus_module_59.build(layer, __tsplusTrace), r => tsplus_module_10.provideEnvironment_(self.channel, () => r), __tsplusTrace)));
1964
1981
  }
1965
1982
  /**
1966
1983
  * @tsplus fluent fncts.io.Stream provideSomeLayer
@@ -1969,7 +1986,7 @@ function provideLayer_1(self, layer, __tsplusTrace) {
1969
1986
 
1970
1987
  function provideSomeLayer_(self, layer, __tsplusTrace) {
1971
1988
  // @ts-expect-error
1972
- return provideLayer_1(self, tsplus_module_60.and_(tsplus_module_60.environment(), layer), __tsplusTrace);
1989
+ return provideLayer_1(self, tsplus_module_60.and_(tsplus_module_60.environment(__tsplusTrace), layer, __tsplusTrace), __tsplusTrace);
1973
1990
  }
1974
1991
 
1975
1992
  class Rechunker {
@@ -2007,10 +2024,10 @@ class Rechunker {
2007
2024
 
2008
2025
  }
2009
2026
 
2010
- function rechunkProcess(rechunker, target) {
2027
+ function rechunkProcess(rechunker, target, __tsplusTrace) {
2011
2028
  return tsplus_module_10.readWithCause(chunk => {
2012
2029
  if (chunk.length === target && rechunker.isEmpty) {
2013
- return tsplus_module_11.apSecond_(tsplus_module_10.writeNow(chunk), rechunkProcess(rechunker, target));
2030
+ return tsplus_module_11.apSecond_(tsplus_module_10.writeNow(chunk), rechunkProcess(rechunker, target, __tsplusTrace));
2014
2031
  } else if (chunk.length > 0) {
2015
2032
  const chunks = [];
2016
2033
  let result = null;
@@ -2028,9 +2045,9 @@ function rechunkProcess(rechunker, target) {
2028
2045
  }
2029
2046
  }
2030
2047
 
2031
- return tsplus_module_11.apSecond_(tsplus_module_10.writeAll(chunks), rechunkProcess(rechunker, target));
2048
+ return tsplus_module_11.apSecond_(tsplus_module_10.writeAll(chunks), rechunkProcess(rechunker, target, __tsplusTrace));
2032
2049
  } else {
2033
- return rechunkProcess(rechunker, target);
2050
+ return rechunkProcess(rechunker, target, __tsplusTrace);
2034
2051
  }
2035
2052
  }, cause => tsplus_module_11.apSecond_(rechunker.emitOfNotEmpty(), tsplus_module_11.failCauseNow(cause)), () => rechunker.emitOfNotEmpty());
2036
2053
  }
@@ -2043,8 +2060,8 @@ function rechunkProcess(rechunker, target) {
2043
2060
  */
2044
2061
 
2045
2062
 
2046
- function rechunk_(stream, n) {
2047
- return new _definition2.Stream(tsplus_module_10.pipeTo_(stream.channel, rechunkProcess(new Rechunker(n), n)));
2063
+ function rechunk_(stream, n, __tsplusTrace) {
2064
+ return new _definition2.Stream(tsplus_module_10.pipeTo_(stream.channel, rechunkProcess(new Rechunker(n), n, __tsplusTrace)));
2048
2065
  }
2049
2066
  /**
2050
2067
  * Repeats the provided value infinitely.
@@ -2053,7 +2070,7 @@ function rechunk_(stream, n) {
2053
2070
  */
2054
2071
 
2055
2072
 
2056
- function repeatValue(a) {
2073
+ function repeatValue(a, __tsplusTrace) {
2057
2074
  return new _definition2.Stream(tsplus_module_10.repeated(tsplus_module_10.writeNow(tsplus_module_19.single(a))));
2058
2075
  }
2059
2076
  /**
@@ -2063,8 +2080,8 @@ function repeatValue(a) {
2063
2080
  */
2064
2081
 
2065
2082
 
2066
- function repeatIO(fa) {
2067
- return repeatIOMaybe_1(tsplus_module_1.mapError_(fa, tsplus_module_3.just, fileName_1 + ":2382:42"));
2083
+ function repeatIO(fa, __tsplusTrace) {
2084
+ return repeatIOMaybe_1(tsplus_module_1.mapError_(fa, tsplus_module_3.just, __tsplusTrace), __tsplusTrace);
2068
2085
  }
2069
2086
  /**
2070
2087
  * Creates a stream from an effect producing values of type `A` until it fails with None.
@@ -2073,8 +2090,8 @@ function repeatIO(fa) {
2073
2090
  */
2074
2091
 
2075
2092
 
2076
- function repeatIOMaybe_1(fa) {
2077
- return repeatIOChunkMaybe_1(tsplus_module_1.map_(fa, tsplus_module_19.single, fileName_1 + ":2391:35"));
2093
+ function repeatIOMaybe_1(fa, __tsplusTrace) {
2094
+ return repeatIOChunkMaybe_1(tsplus_module_1.map_(fa, tsplus_module_19.single, __tsplusTrace), __tsplusTrace);
2078
2095
  }
2079
2096
  /**
2080
2097
  * Creates a stream from an effect producing chunks of `A` values which repeats forever.
@@ -2083,8 +2100,8 @@ function repeatIOMaybe_1(fa) {
2083
2100
  */
2084
2101
 
2085
2102
 
2086
- function repeatIOChunk(fa) {
2087
- return repeatIOChunkMaybe_1(tsplus_module_1.mapError_(fa, tsplus_module_3.just, fileName_1 + ":2400:40"));
2103
+ function repeatIOChunk(fa, __tsplusTrace) {
2104
+ return repeatIOChunkMaybe_1(tsplus_module_1.mapError_(fa, tsplus_module_3.just, __tsplusTrace), __tsplusTrace);
2088
2105
  }
2089
2106
  /**
2090
2107
  * Creates a stream from an effect producing chunks of `A` values until it fails with None.
@@ -2093,8 +2110,8 @@ function repeatIOChunk(fa) {
2093
2110
  */
2094
2111
 
2095
2112
 
2096
- function repeatIOChunkMaybe_1(fa) {
2097
- return unfoldChunkIO_1(undefined, _ => tsplus_module_1.catchAll_(tsplus_module_1.map_(fa, chunk => tsplus_module_3.just((0, _function.tuple)(chunk, undefined)), fileName_1 + ":2411:11"), maybeError => tsplus_module_20.match_(maybeError, () => tsplus_module_1.succeedNow(tsplus_module_3.nothing(), fileName_1 + ":2412:69"), tsplus_module_1.failNow), fileName_1 + ":2412:16"));
2113
+ function repeatIOChunkMaybe_1(fa, __tsplusTrace) {
2114
+ return unfoldChunkIO_1(undefined, _ => tsplus_module_1.catchAll_(tsplus_module_1.map_(fa, chunk => tsplus_module_3.just((0, _function.tuple)(chunk, undefined)), __tsplusTrace), maybeError => tsplus_module_20.match_(maybeError, () => tsplus_module_1.succeedNow(tsplus_module_3.nothing(), __tsplusTrace), tsplus_module_1.failNow), __tsplusTrace), __tsplusTrace);
2098
2115
  }
2099
2116
  /**
2100
2117
  * Runs the sink on the stream to produce either the sink's result or an error.
@@ -2103,7 +2120,7 @@ function repeatIOChunkMaybe_1(fa) {
2103
2120
  */
2104
2121
 
2105
2122
 
2106
- function run_1(stream, sink) {
2123
+ function run_1(stream, sink, __tsplusTrace) {
2107
2124
  return tsplus_module_61.runDrain(tsplus_module_10.pipeToOrFail_(stream.channel, sink.channel));
2108
2125
  }
2109
2126
  /**
@@ -2113,8 +2130,8 @@ function run_1(stream, sink) {
2113
2130
  */
2114
2131
 
2115
2132
 
2116
- function runCollect(stream) {
2117
- return run_1(stream, tsplus_module_46.makeCollectAll());
2133
+ function runCollect(stream, __tsplusTrace) {
2134
+ return run_1(stream, tsplus_module_46.makeCollectAll(__tsplusTrace), __tsplusTrace);
2118
2135
  }
2119
2136
  /**
2120
2137
  * Runs the stream and collects ignore its elements.
@@ -2123,16 +2140,16 @@ function runCollect(stream) {
2123
2140
  */
2124
2141
 
2125
2142
 
2126
- function runDrain(stream) {
2127
- return run_1(stream, tsplus_module_46.drain);
2143
+ function runDrain(stream, __tsplusTrace) {
2144
+ return run_1(stream, tsplus_module_46.drain, __tsplusTrace);
2128
2145
  }
2129
2146
  /**
2130
2147
  * @tsplus fluent fncts.io.Stream runForeachScoped
2131
2148
  */
2132
2149
 
2133
2150
 
2134
- function runForeachScoped_1(self, f) {
2135
- return runScoped_1(self, tsplus_module_46.makeForeach(f, fileName_1 + ":2453:37"));
2151
+ function runForeachScoped_1(self, f, __tsplusTrace) {
2152
+ return runScoped_1(self, tsplus_module_46.makeForeach(f, __tsplusTrace), __tsplusTrace);
2136
2153
  }
2137
2154
  /**
2138
2155
  * Like `into`, but provides the result as a `Managed` to allow for scope
@@ -2142,9 +2159,9 @@ function runForeachScoped_1(self, f) {
2142
2159
  */
2143
2160
 
2144
2161
 
2145
- function runIntoElementsScoped_1(stream, queue) {
2162
+ function runIntoElementsScoped_1(stream, queue, __tsplusTrace) {
2146
2163
  const writer = tsplus_module_10.readWith(inp => tsplus_module_11.apSecond_(tsplus_module_12.foldLeft_(inp, tsplus_module_10.unit, (channel, a) => tsplus_module_11.apSecond_(channel, tsplus_module_10.writeNow(tsplus_module_39.succeed(a)))), writer), err => tsplus_module_10.writeNow(tsplus_module_39.fail(tsplus_module_3.just(err))), () => tsplus_module_10.writeNow(tsplus_module_39.fail(tsplus_module_3.nothing())));
2147
- return tsplus_module_1.asUnit(tsplus_module_16.runScoped(tsplus_module_10.drain(tsplus_module_10.mapOutIO_(tsplus_module_10.pipeTo_(stream.channel, writer), exit => tsplus_module_27.offer_(queue, exit)))));
2164
+ return tsplus_module_1.asUnit(tsplus_module_16.runScoped(tsplus_module_10.drain(tsplus_module_10.mapOutIO_(tsplus_module_10.pipeTo_(stream.channel, writer), exit => tsplus_module_27.offer_(queue, exit, __tsplusTrace)))), __tsplusTrace);
2148
2165
  }
2149
2166
  /**
2150
2167
  * Like `Stream#into`, but provides the result as a `Managed` to allow for scope
@@ -2154,9 +2171,9 @@ function runIntoElementsScoped_1(stream, queue) {
2154
2171
  */
2155
2172
 
2156
2173
 
2157
- function runIntoQueueScoped_1(stream, queue) {
2174
+ function runIntoQueueScoped_1(stream, queue, __tsplusTrace) {
2158
2175
  const writer = tsplus_module_10.readWithCause(inp => tsplus_module_11.apSecond_(tsplus_module_10.writeNow(tsplus_module_26.chunk(inp)), writer), cause => tsplus_module_10.writeNow(tsplus_module_26.failCause(cause)), _ => tsplus_module_10.writeNow(tsplus_module_26.end));
2159
- return tsplus_module_1.asUnit(tsplus_module_16.runScoped(tsplus_module_10.drain(tsplus_module_10.mapOutIO_(tsplus_module_10.pipeTo_(stream.channel, writer), take => tsplus_module_27.offer_(queue, take)))));
2176
+ return tsplus_module_1.asUnit(tsplus_module_16.runScoped(tsplus_module_10.drain(tsplus_module_10.mapOutIO_(tsplus_module_10.pipeTo_(stream.channel, writer), take => tsplus_module_27.offer_(queue, take, __tsplusTrace)))), __tsplusTrace);
2160
2177
  }
2161
2178
  /**
2162
2179
  * Like `Stream#runIntoHub`, but provides the result as a `Managed` to allow for scope
@@ -2166,8 +2183,8 @@ function runIntoQueueScoped_1(stream, queue) {
2166
2183
  */
2167
2184
 
2168
2185
 
2169
- function runIntoHubScoped_1(stream, hub) {
2170
- return runIntoQueueScoped_1(stream, tsplus_module_32.toQueue(hub));
2186
+ function runIntoHubScoped_1(stream, hub, __tsplusTrace) {
2187
+ return runIntoQueueScoped_1(stream, tsplus_module_32.toQueue(hub, __tsplusTrace), __tsplusTrace);
2171
2188
  }
2172
2189
  /**
2173
2190
  * Runs the sink on the stream to produce either the sink's result or an error.
@@ -2176,7 +2193,7 @@ function runIntoHubScoped_1(stream, hub) {
2176
2193
  */
2177
2194
 
2178
2195
 
2179
- function runScoped_1(stream, sink) {
2196
+ function runScoped_1(stream, sink, __tsplusTrace) {
2180
2197
  return tsplus_module_16.runScoped(tsplus_module_10.drain(tsplus_module_10.pipeToOrFail_(stream.channel, sink.channel)));
2181
2198
  }
2182
2199
  /**
@@ -2187,8 +2204,8 @@ function runScoped_1(stream, sink) {
2187
2204
  */
2188
2205
 
2189
2206
 
2190
- function scan_(sa, b, f) {
2191
- return scanIO_1(sa, b, (b, a) => tsplus_module_1.succeedNow(f(b, a), fileName_1 + ":2531:46"));
2207
+ function scan_(sa, b, f, __tsplusTrace) {
2208
+ return scanIO_1(sa, b, (b, a) => tsplus_module_1.succeedNow(f(b, a), __tsplusTrace), __tsplusTrace);
2192
2209
  }
2193
2210
  /**
2194
2211
  * Statefully and effectfully maps over the elements of this stream to produce all
@@ -2198,8 +2215,8 @@ function scan_(sa, b, f) {
2198
2215
  */
2199
2216
 
2200
2217
 
2201
- function scanIO_1(sa, b, f) {
2202
- return concat_1(succeedNow_1(b), mapAccumIO_1(sa, b, (b, a) => tsplus_module_1.map_(f(b, a), b => [b, b], fileName_1 + ":2545:76")));
2218
+ function scanIO_1(sa, b, f, __tsplusTrace) {
2219
+ return concat_1(succeedNow_1(b, __tsplusTrace), mapAccumIO_1(sa, b, (b, a) => tsplus_module_1.map_(f(b, a), b => [b, b], __tsplusTrace), __tsplusTrace), __tsplusTrace);
2203
2220
  }
2204
2221
  /**
2205
2222
  * Statefully maps over the elements of this stream to produce all
@@ -2209,8 +2226,8 @@ function scanIO_1(sa, b, f) {
2209
2226
  */
2210
2227
 
2211
2228
 
2212
- function scanReduce_(fa, f) {
2213
- return scanReduceIO_1(fa, (b, a) => tsplus_module_1.succeedNow(f(b, a), fileName_1 + ":2555:49"));
2229
+ function scanReduce_(fa, f, __tsplusTrace) {
2230
+ return scanReduceIO_1(fa, (b, a) => tsplus_module_1.succeedNow(f(b, a), __tsplusTrace), __tsplusTrace);
2214
2231
  }
2215
2232
  /**
2216
2233
  * Statefully and effectfully maps over the elements of this stream to produce
@@ -2220,8 +2237,8 @@ function scanReduce_(fa, f) {
2220
2237
  */
2221
2238
 
2222
2239
 
2223
- function scanReduceIO_1(fa, f) {
2224
- return mapAccumIO_1(fa, tsplus_module_3.nothing(), (s, a) => tsplus_module_20.match_(s, () => tsplus_module_1.succeedNow([a, tsplus_module_3.just(a)], fileName_1 + ":2570:26"), b => tsplus_module_1.map_(f(b, a), b => [b, tsplus_module_3.just(b)], fileName_1 + ":2571:25")));
2240
+ function scanReduceIO_1(fa, f, __tsplusTrace) {
2241
+ return mapAccumIO_1(fa, tsplus_module_3.nothing(), (s, a) => tsplus_module_20.match_(s, () => tsplus_module_1.succeedNow([a, tsplus_module_3.just(a)], __tsplusTrace), b => tsplus_module_1.map_(f(b, a), b => [b, tsplus_module_3.just(b)], __tsplusTrace)), __tsplusTrace);
2225
2242
  }
2226
2243
  /**
2227
2244
  * Creates a single-valued pure stream
@@ -2230,8 +2247,8 @@ function scanReduceIO_1(fa, f) {
2230
2247
  */
2231
2248
 
2232
2249
 
2233
- function succeedNow_1(o) {
2234
- return fromChunkNow_1(tsplus_module_19.single(o));
2250
+ function succeedNow_1(o, __tsplusTrace) {
2251
+ return fromChunkNow_1(tsplus_module_19.single(o), __tsplusTrace);
2235
2252
  }
2236
2253
  /**
2237
2254
  * Creates a single-valued pure stream
@@ -2240,17 +2257,17 @@ function succeedNow_1(o) {
2240
2257
  */
2241
2258
 
2242
2259
 
2243
- function succeed(a) {
2244
- return fromChunk_1(() => tsplus_module_19.single(a()));
2260
+ function succeed(a, __tsplusTrace) {
2261
+ return fromChunk_1(() => tsplus_module_19.single(a()), __tsplusTrace);
2245
2262
  }
2246
2263
 
2247
- function takeLoop(n) {
2264
+ function takeLoop(n, __tsplusTrace) {
2248
2265
  return tsplus_module_10.readWithCause(inp => {
2249
2266
  const taken = tsplus_module_12.take_(inp, n);
2250
2267
  const left = Math.max(n - taken.length, 0);
2251
2268
 
2252
2269
  if (left > 0) {
2253
- return tsplus_module_11.apSecond_(tsplus_module_10.writeNow(taken), takeLoop(left));
2270
+ return tsplus_module_11.apSecond_(tsplus_module_10.writeNow(taken), takeLoop(left, __tsplusTrace));
2254
2271
  } else {
2255
2272
  return tsplus_module_10.writeNow(taken);
2256
2273
  }
@@ -2263,43 +2280,43 @@ function takeLoop(n) {
2263
2280
  */
2264
2281
 
2265
2282
 
2266
- function take_(stream, n) {
2283
+ function take_(stream, n, __tsplusTrace) {
2267
2284
  if (n <= 0) {
2268
2285
  return empty_1;
2269
2286
  }
2270
2287
 
2271
2288
  if (!Number.isInteger(n)) {
2272
- return halt_1(() => new tsplus_module_62.IllegalArgumentError(`${n} should be an integer`, "Stream.take"));
2289
+ return halt_1(() => new tsplus_module_62.IllegalArgumentError(`${n} should be an integer`, "Stream.take"), __tsplusTrace);
2273
2290
  }
2274
2291
 
2275
- return new _definition2.Stream(tsplus_module_10.pipeTo_(stream.channel, takeLoop(n)));
2292
+ return new _definition2.Stream(tsplus_module_10.pipeTo_(stream.channel, takeLoop(n, __tsplusTrace)));
2276
2293
  }
2277
2294
  /**
2278
2295
  * @tsplus fluent fncts.io.Stream takeUntilIO
2279
2296
  */
2280
2297
 
2281
2298
 
2282
- function takeUntilIO_(ma, f) {
2283
- return new _definition2.Stream(tsplus_module_10.pipeTo_(ma.channel, takeUntilIOLoop(tsplus_module_38.empty()[Symbol.iterator](), f)));
2299
+ function takeUntilIO_(ma, f, __tsplusTrace) {
2300
+ return new _definition2.Stream(tsplus_module_10.pipeTo_(ma.channel, takeUntilIOLoop(tsplus_module_38.empty()[Symbol.iterator](), f, __tsplusTrace)));
2284
2301
  }
2285
2302
 
2286
- function takeUntilIOLoop(iterator, f) {
2303
+ function takeUntilIOLoop(iterator, f, __tsplusTrace) {
2287
2304
  const next = iterator.next();
2288
2305
 
2289
2306
  if (next.done) {
2290
- return tsplus_module_10.readWithCause(elem => takeUntilIOLoop(elem[Symbol.iterator](), f), tsplus_module_11.failCauseNow, tsplus_module_11.succeedNow);
2307
+ return tsplus_module_10.readWithCause(elem => takeUntilIOLoop(elem[Symbol.iterator](), f, __tsplusTrace), tsplus_module_11.failCauseNow, tsplus_module_11.succeedNow);
2291
2308
  } else {
2292
- return tsplus_module_10.unwrap(() => tsplus_module_1.map_(f(next.value), b => b ? tsplus_module_10.writeNow(tsplus_module_19.single(next.value)) : tsplus_module_11.apSecond_(tsplus_module_10.writeNow(tsplus_module_19.single(next.value)), takeUntilIOLoop(iterator, f)), fileName_1 + ":2648:24"));
2309
+ return tsplus_module_10.unwrap(() => tsplus_module_1.map_(f(next.value), b => b ? tsplus_module_10.writeNow(tsplus_module_19.single(next.value)) : tsplus_module_11.apSecond_(tsplus_module_10.writeNow(tsplus_module_19.single(next.value)), takeUntilIOLoop(iterator, f, __tsplusTrace)), __tsplusTrace));
2293
2310
  }
2294
2311
  }
2295
2312
 
2296
- function takeUntilLoop(p) {
2313
+ function takeUntilLoop(p, __tsplusTrace) {
2297
2314
  return tsplus_module_10.readWith(chunk => {
2298
2315
  const taken = tsplus_module_12.takeWhile_(chunk, tsplus_module_47.invert(p));
2299
2316
  const last = tsplus_module_12.take_(tsplus_module_12.drop_(chunk, taken.length), 1);
2300
2317
 
2301
2318
  if (tsplus_module_12.isEmpty(last)) {
2302
- return tsplus_module_11.apSecond_(tsplus_module_10.writeNow(taken), takeUntilLoop(p));
2319
+ return tsplus_module_11.apSecond_(tsplus_module_10.writeNow(taken), takeUntilLoop(p, __tsplusTrace));
2303
2320
  } else {
2304
2321
  return tsplus_module_10.writeNow(tsplus_module_12.concat_(taken, last));
2305
2322
  }
@@ -2313,16 +2330,16 @@ function takeUntilLoop(p) {
2313
2330
  */
2314
2331
 
2315
2332
 
2316
- function takeUntil_(fa, p) {
2317
- return new _definition2.Stream(tsplus_module_10.pipeTo_(fa.channel, takeUntilLoop(p)));
2333
+ function takeUntil_(fa, p, __tsplusTrace) {
2334
+ return new _definition2.Stream(tsplus_module_10.pipeTo_(fa.channel, takeUntilLoop(p, __tsplusTrace)));
2318
2335
  }
2319
2336
  /**
2320
2337
  * @tsplus fluent fncts.io.Stream tap
2321
2338
  */
2322
2339
 
2323
2340
 
2324
- function tap_(ma, f) {
2325
- return mapIO_1(ma, a => tsplus_module_1.as_(f(a), () => a));
2341
+ function tap_(ma, f, __tsplusTrace) {
2342
+ return mapIO_1(ma, a => tsplus_module_1.as_(f(a), () => a, __tsplusTrace), __tsplusTrace);
2326
2343
  }
2327
2344
  /**
2328
2345
  * Throttles the chunks of this stream according to the given bandwidth parameters using the token bucket
@@ -2334,11 +2351,11 @@ function tap_(ma, f) {
2334
2351
  */
2335
2352
 
2336
2353
 
2337
- function throttleEnforce_(sa, costFn, units, duration, burst = 0) {
2338
- return throttleEnforceIO_1(sa, chunk => tsplus_module_1.succeedNow(costFn(chunk), fileName_1 + ":2705:55"), units, duration, burst);
2354
+ function throttleEnforce_(sa, costFn, units, duration, burst = 0, __tsplusTrace) {
2355
+ return throttleEnforceIO_1(sa, chunk => tsplus_module_1.succeedNow(costFn(chunk), __tsplusTrace), units, duration, burst, __tsplusTrace);
2339
2356
  }
2340
2357
 
2341
- function throttleEnforceIOLoop(costFn, units, duration, burst, tokens, timestamp) {
2358
+ function throttleEnforceIOLoop(costFn, units, duration, burst, tokens, timestamp, __tsplusTrace) {
2342
2359
  return tsplus_module_10.readWith(inp => tsplus_module_10.unwrap(() => tsplus_module_1.zipWith_(costFn(inp), tsplus_module_41.currentTime, (weight, current) => {
2343
2360
  const elapsed = current - timestamp;
2344
2361
  const cycles = elapsed / duration;
@@ -2349,8 +2366,8 @@ function throttleEnforceIOLoop(costFn, units, duration, burst, tokens, timestamp
2349
2366
  return sum < 0 ? max : Math.min(sum, max);
2350
2367
  })();
2351
2368
 
2352
- return weight <= available ? tsplus_module_11.apSecond_(tsplus_module_10.writeNow(inp), throttleEnforceIOLoop(costFn, units, duration, burst, available - weight, current)) : throttleEnforceIOLoop(costFn, units, duration, burst, available - weight, current);
2353
- })), tsplus_module_10.failNow, () => tsplus_module_10.unit);
2369
+ return weight <= available ? tsplus_module_11.apSecond_(tsplus_module_10.writeNow(inp), throttleEnforceIOLoop(costFn, units, duration, burst, available - weight, current, __tsplusTrace)) : throttleEnforceIOLoop(costFn, units, duration, burst, available - weight, current, __tsplusTrace);
2370
+ }, __tsplusTrace)), tsplus_module_10.failNow, () => tsplus_module_10.unit);
2354
2371
  }
2355
2372
  /**
2356
2373
  * Throttles the chunks of this stream according to the given bandwidth parameters using the token bucket
@@ -2362,8 +2379,8 @@ function throttleEnforceIOLoop(costFn, units, duration, burst, tokens, timestamp
2362
2379
  */
2363
2380
 
2364
2381
 
2365
- function throttleEnforceIO_1(sa, costFn, units, duration, burst = 0) {
2366
- return new _definition2.Stream(tsplus_module_11.flatMap_(tsplus_module_10.fromIO(() => tsplus_module_41.currentTime), current => tsplus_module_10.pipeTo_(sa.channel, throttleEnforceIOLoop(costFn, units, duration, burst, units, current))));
2382
+ function throttleEnforceIO_1(sa, costFn, units, duration, burst = 0, __tsplusTrace) {
2383
+ return new _definition2.Stream(tsplus_module_11.flatMap_(tsplus_module_10.fromIO(() => tsplus_module_41.currentTime), current => tsplus_module_10.pipeTo_(sa.channel, throttleEnforceIOLoop(costFn, units, duration, burst, units, current, __tsplusTrace))));
2367
2384
  }
2368
2385
  /**
2369
2386
  * Converts the stream to a managed hub of chunks. After the managed hub is used,
@@ -2373,8 +2390,8 @@ function throttleEnforceIO_1(sa, costFn, units, duration, burst = 0) {
2373
2390
  */
2374
2391
 
2375
2392
 
2376
- function toHub_1(stream, capacity) {
2377
- return tsplus_module_1.flatMap_(tsplus_module_30.acquireRelease(() => tsplus_module_32.makeBounded(capacity), _ => tsplus_module_32.shutdown(_)), hub => tsplus_module_1.map_(tsplus_module_1.fork(runIntoHubScoped_1(stream, hub), fileName_1 + ":2772:35"), () => hub, fileName_1 + ":2772:6"), fileName_1 + ":2771:18");
2393
+ function toHub_1(stream, capacity, __tsplusTrace) {
2394
+ return tsplus_module_1.flatMap_(tsplus_module_30.acquireRelease(() => tsplus_module_32.makeBounded(capacity, __tsplusTrace), _ => tsplus_module_32.shutdown(_, __tsplusTrace), __tsplusTrace), hub => tsplus_module_1.map_(tsplus_module_1.fork(runIntoHubScoped_1(stream, hub, __tsplusTrace), __tsplusTrace), () => hub, __tsplusTrace), __tsplusTrace);
2378
2395
  }
2379
2396
  /**
2380
2397
  * Interpret the stream as a managed pull
@@ -2383,8 +2400,8 @@ function toHub_1(stream, capacity) {
2383
2400
  */
2384
2401
 
2385
2402
 
2386
- function toPull_1(stream) {
2387
- return tsplus_module_1.map_(tsplus_module_63.toPull(stream.channel), io => tsplus_module_1.flatMap_(tsplus_module_1.mapError_(io, tsplus_module_3.just, fileName_1 + ":2784:16"), r => tsplus_module_4.match_(r, () => tsplus_module_1.failNow(tsplus_module_3.nothing(), fileName_1 + ":2784:68"), tsplus_module_1.succeedNow), fileName_1 + ":2784:36"), fileName_1 + ":2783:35");
2403
+ function toPull_1(stream, __tsplusTrace) {
2404
+ return tsplus_module_1.map_(tsplus_module_63.toPull(stream.channel), io => tsplus_module_1.flatMap_(tsplus_module_1.mapError_(io, tsplus_module_3.just, __tsplusTrace), r => tsplus_module_4.match_(r, () => tsplus_module_1.failNow(tsplus_module_3.nothing(), __tsplusTrace), tsplus_module_1.succeedNow), __tsplusTrace), __tsplusTrace);
2388
2405
  }
2389
2406
  /**
2390
2407
  * Converts the stream to a managed queue of chunks. After the managed queue is used,
@@ -2394,32 +2411,32 @@ function toPull_1(stream) {
2394
2411
  */
2395
2412
 
2396
2413
 
2397
- function toQueue_1(stream, capacity = 2) {
2398
- return tsplus_module_1.flatMap_(tsplus_module_30.acquireRelease(() => tsplus_module_29.makeBounded(capacity), _ => tsplus_module_27.shutdown(_)), queue => tsplus_module_1.map_(tsplus_module_1.fork(runIntoQueueScoped_1(stream, queue), fileName_1 + ":2797:39"), () => queue, fileName_1 + ":2797:6"), fileName_1 + ":2796:20");
2414
+ function toQueue_1(stream, capacity = 2, __tsplusTrace) {
2415
+ return tsplus_module_1.flatMap_(tsplus_module_30.acquireRelease(() => tsplus_module_29.makeBounded(capacity, __tsplusTrace), _ => tsplus_module_27.shutdown(_, __tsplusTrace), __tsplusTrace), queue => tsplus_module_1.map_(tsplus_module_1.fork(runIntoQueueScoped_1(stream, queue, __tsplusTrace), __tsplusTrace), () => queue, __tsplusTrace), __tsplusTrace);
2399
2416
  }
2400
2417
  /**
2401
2418
  * @tsplus fluent fncts.io.Stream toQueueDropping
2402
2419
  */
2403
2420
 
2404
2421
 
2405
- function toQueueDropping_(stream, capacity = 2) {
2406
- return tsplus_module_1.flatMap_(tsplus_module_30.acquireRelease(() => tsplus_module_29.makeDropping(capacity), _ => tsplus_module_27.shutdown(_)), queue => tsplus_module_1.map_(tsplus_module_1.fork(runIntoQueueScoped_1(stream, queue), fileName_1 + ":2811:39"), () => queue, fileName_1 + ":2811:6"), fileName_1 + ":2810:20");
2422
+ function toQueueDropping_(stream, capacity = 2, __tsplusTrace) {
2423
+ return tsplus_module_1.flatMap_(tsplus_module_30.acquireRelease(() => tsplus_module_29.makeDropping(capacity, __tsplusTrace), _ => tsplus_module_27.shutdown(_, __tsplusTrace), __tsplusTrace), queue => tsplus_module_1.map_(tsplus_module_1.fork(runIntoQueueScoped_1(stream, queue, __tsplusTrace), __tsplusTrace), () => queue, __tsplusTrace), __tsplusTrace);
2407
2424
  }
2408
2425
  /**
2409
2426
  * @tsplus fluent fncts.io.Stream toQueueOfElements
2410
2427
  */
2411
2428
 
2412
2429
 
2413
- function toQueueOfElements_1(stream, capacity = 2) {
2414
- return tsplus_module_1.flatMap_(tsplus_module_30.acquireRelease(() => tsplus_module_29.makeBounded(capacity), _ => tsplus_module_27.shutdown(_)), queue => tsplus_module_1.map_(tsplus_module_1.fork(runIntoElementsScoped_1(stream, queue), fileName_1 + ":2825:42"), () => queue, fileName_1 + ":2825:6"), fileName_1 + ":2824:20");
2430
+ function toQueueOfElements_1(stream, capacity = 2, __tsplusTrace) {
2431
+ return tsplus_module_1.flatMap_(tsplus_module_30.acquireRelease(() => tsplus_module_29.makeBounded(capacity, __tsplusTrace), _ => tsplus_module_27.shutdown(_, __tsplusTrace), __tsplusTrace), queue => tsplus_module_1.map_(tsplus_module_1.fork(runIntoElementsScoped_1(stream, queue, __tsplusTrace), __tsplusTrace), () => queue, __tsplusTrace), __tsplusTrace);
2415
2432
  }
2416
2433
  /**
2417
2434
  * @tsplus fluent fncts.io.Stream toQueueSliding
2418
2435
  */
2419
2436
 
2420
2437
 
2421
- function toQueueSliding_(stream, capacity = 2) {
2422
- return tsplus_module_1.flatMap_(tsplus_module_30.acquireRelease(() => tsplus_module_29.makeSliding(capacity), _ => tsplus_module_27.shutdown(_)), queue => tsplus_module_1.map_(tsplus_module_1.fork(runIntoQueueScoped_1(stream, queue), fileName_1 + ":2839:39"), () => queue, fileName_1 + ":2839:6"), fileName_1 + ":2838:20");
2438
+ function toQueueSliding_(stream, capacity = 2, __tsplusTrace) {
2439
+ return tsplus_module_1.flatMap_(tsplus_module_30.acquireRelease(() => tsplus_module_29.makeSliding(capacity, __tsplusTrace), _ => tsplus_module_27.shutdown(_, __tsplusTrace), __tsplusTrace), queue => tsplus_module_1.map_(tsplus_module_1.fork(runIntoQueueScoped_1(stream, queue, __tsplusTrace), __tsplusTrace), () => queue, __tsplusTrace), __tsplusTrace);
2423
2440
  }
2424
2441
  /**
2425
2442
  * Converts the stream into an unbounded managed queue. After the managed queue
@@ -2429,12 +2446,12 @@ function toQueueSliding_(stream, capacity = 2) {
2429
2446
  */
2430
2447
 
2431
2448
 
2432
- function toQueueUnbounded_1(stream) {
2433
- return tsplus_module_1.flatMap_(tsplus_module_30.acquireRelease(() => tsplus_module_29.makeUnbounded(), _ => tsplus_module_27.shutdown(_)), queue => tsplus_module_1.map_(tsplus_module_1.fork(runIntoQueueScoped_1(stream, queue), fileName_1 + ":2853:39"), () => queue, fileName_1 + ":2853:6"), fileName_1 + ":2852:20");
2449
+ function toQueueUnbounded_1(stream, __tsplusTrace) {
2450
+ return tsplus_module_1.flatMap_(tsplus_module_30.acquireRelease(() => tsplus_module_29.makeUnbounded(__tsplusTrace), _ => tsplus_module_27.shutdown(_, __tsplusTrace), __tsplusTrace), queue => tsplus_module_1.map_(tsplus_module_1.fork(runIntoQueueScoped_1(stream, queue, __tsplusTrace), __tsplusTrace), () => queue, __tsplusTrace), __tsplusTrace);
2434
2451
  }
2435
2452
 
2436
- function unfoldChunkIOLoop(s, f) {
2437
- return tsplus_module_10.unwrap(() => tsplus_module_1.map_(f(s), m => tsplus_module_20.match_(m, () => tsplus_module_10.unit, ([as, s]) => tsplus_module_11.flatMap_(tsplus_module_10.writeNow(as), () => unfoldChunkIOLoop(s, f))), fileName_1 + ":2863:13"));
2453
+ function unfoldChunkIOLoop(s, f, __tsplusTrace) {
2454
+ return tsplus_module_10.unwrap(() => tsplus_module_1.map_(f(s), m => tsplus_module_20.match_(m, () => tsplus_module_10.unit, ([as, s]) => tsplus_module_11.flatMap_(tsplus_module_10.writeNow(as), () => unfoldChunkIOLoop(s, f, __tsplusTrace))), __tsplusTrace));
2438
2455
  }
2439
2456
  /**
2440
2457
  * Creates a stream by effectfully peeling off the "layers" of a value of type `S`
@@ -2443,8 +2460,8 @@ function unfoldChunkIOLoop(s, f) {
2443
2460
  */
2444
2461
 
2445
2462
 
2446
- function unfoldChunkIO_1(s, f) {
2447
- return new _definition2.Stream(unfoldChunkIOLoop(s, f));
2463
+ function unfoldChunkIO_1(s, f, __tsplusTrace) {
2464
+ return new _definition2.Stream(unfoldChunkIOLoop(s, f, __tsplusTrace));
2448
2465
  }
2449
2466
  /**
2450
2467
  * Creates a stream by effectfully peeling off the "layers" of a value of type `S`
@@ -2453,28 +2470,28 @@ function unfoldChunkIO_1(s, f) {
2453
2470
  */
2454
2471
 
2455
2472
 
2456
- function unfoldIO_1(s, f) {
2457
- return unfoldChunkIO_1(s, _ => tsplus_module_1.map_(f(_), m => tsplus_module_37.map_(m, ([a, s]) => (0, _function.tuple)(tsplus_module_19.single(a), s)), fileName_1 + ":2887:42"));
2473
+ function unfoldIO_1(s, f, __tsplusTrace) {
2474
+ return unfoldChunkIO_1(s, _ => tsplus_module_1.map_(f(_), m => tsplus_module_37.map_(m, ([a, s]) => (0, _function.tuple)(tsplus_module_19.single(a), s)), __tsplusTrace), __tsplusTrace);
2458
2475
  }
2459
2476
 
2460
- function unfoldChunkLoop(s, f) {
2461
- return tsplus_module_20.match_(f(s), () => tsplus_module_10.unit, ([as, s]) => tsplus_module_11.flatMap_(tsplus_module_10.writeNow(as), () => unfoldChunkLoop(s, f)));
2477
+ function unfoldChunkLoop(s, f, __tsplusTrace) {
2478
+ return tsplus_module_20.match_(f(s), () => tsplus_module_10.unit, ([as, s]) => tsplus_module_11.flatMap_(tsplus_module_10.writeNow(as), () => unfoldChunkLoop(s, f, __tsplusTrace)));
2462
2479
  }
2463
2480
  /**
2464
2481
  * @tsplus static fncts.io.StreamOps unfoldChunk
2465
2482
  */
2466
2483
 
2467
2484
 
2468
- function unfoldChunk_1(s, f) {
2469
- return new _definition2.Stream(tsplus_module_10.defer(() => unfoldChunkLoop(s, f)));
2485
+ function unfoldChunk_1(s, f, __tsplusTrace) {
2486
+ return new _definition2.Stream(tsplus_module_10.defer(() => unfoldChunkLoop(s, f, __tsplusTrace)));
2470
2487
  }
2471
2488
  /**
2472
2489
  * @tsplus static fncts.io.StreamOps unfold
2473
2490
  */
2474
2491
 
2475
2492
 
2476
- function unfold(s, f) {
2477
- return unfoldChunk_1(s, s => tsplus_module_37.map_(f(s), ([a, s]) => (0, _function.tuple)(tsplus_module_19.single(a), s)));
2493
+ function unfold(s, f, __tsplusTrace) {
2494
+ return unfoldChunk_1(s, s => tsplus_module_37.map_(f(s), ([a, s]) => (0, _function.tuple)(tsplus_module_19.single(a), s)), __tsplusTrace);
2478
2495
  }
2479
2496
  /**
2480
2497
  * Creates a stream produced from an IO
@@ -2483,8 +2500,8 @@ function unfold(s, f) {
2483
2500
  */
2484
2501
 
2485
2502
 
2486
- function unwrap_1(stream) {
2487
- return flatten_1(fromIO_1(stream));
2503
+ function unwrap_1(stream, __tsplusTrace) {
2504
+ return flatten_1(fromIO_1(stream, __tsplusTrace), __tsplusTrace);
2488
2505
  }
2489
2506
  /**
2490
2507
  * Creates a stream produced from a managed
@@ -2493,16 +2510,16 @@ function unwrap_1(stream) {
2493
2510
  */
2494
2511
 
2495
2512
 
2496
- function unwrapScoped_1(stream) {
2497
- return flatten_1(scoped_1(stream));
2513
+ function unwrapScoped_1(stream, __tsplusTrace) {
2514
+ return flatten_1(scoped_1(stream, __tsplusTrace), __tsplusTrace);
2498
2515
  }
2499
2516
  /**
2500
2517
  * @tsplus getter fncts.io.Stream zipWithIndex
2501
2518
  */
2502
2519
 
2503
2520
 
2504
- function zipWithIndex_(self, __tsPlusTrace) {
2505
- return mapAccum_1(self, 0, (index, a) => [index + 1, [a, index]]);
2521
+ function zipWithIndex_(self, __tsplusTrace) {
2522
+ return mapAccum_1(self, 0, (index, a) => [index + 1, [a, index]], __tsplusTrace);
2506
2523
  }
2507
2524
  /**
2508
2525
  * Zips the two streams so that when a value is emitted by either of the two
@@ -2517,11 +2534,11 @@ function zipWithIndex_(self, __tsPlusTrace) {
2517
2534
  */
2518
2535
 
2519
2536
 
2520
- function zipWithLatest_(fa, fb, f) {
2521
- function pullNonEmpty(pull) {
2522
- return tsplus_module_1.flatMap_(pull, chunk => tsplus_module_12.isNonEmpty(chunk) ? pullNonEmpty(pull) : tsplus_module_1.succeedNow(chunk, fileName_1 + ":2961:90"), fileName_1 + ":2961:24");
2537
+ function zipWithLatest_(fa, fb, f, __tsplusTrace) {
2538
+ function pullNonEmpty(pull, __tsplusTrace) {
2539
+ return tsplus_module_1.flatMap_(pull, chunk => tsplus_module_12.isNonEmpty(chunk) ? pullNonEmpty(pull, __tsplusTrace) : tsplus_module_1.succeedNow(chunk, __tsplusTrace), __tsplusTrace);
2523
2540
  }
2524
2541
 
2525
- return fromPull_1(tsplus_module_1.flatMap_(tsplus_module_1.map_(toPull_1(fa), pullNonEmpty, fileName_1 + ":2965:36"), left => tsplus_module_1.flatMap_(tsplus_module_1.map_(toPull_1(fb), pullNonEmpty, fileName_1 + ":2966:36"), right => toPull_1(flatMap_1(fromIOMaybe_1(tsplus_module_24.raceWith_(left, () => right, (leftDone, rightFiber) => tsplus_module_1.zipWith_(tsplus_module_1.fromExitNow(leftDone, fileName_1 + ":2971:53"), tsplus_module_22.join(rightFiber), (l, r) => (0, _function.tuple)(l, r, true)), (rightDone, leftFiber) => tsplus_module_1.zipWith_(tsplus_module_1.fromExitNow(rightDone, fileName_1 + ":2972:53"), tsplus_module_22.join(leftFiber), (r, l) => (0, _function.tuple)(l, r, false)), fileName_1 + ":2969:24")), ([l, r, leftFirst]) => flatMap_1(fromIO_1(tsplus_module_6.make(() => (0, _function.tuple)(tsplus_module_12.unsafeGet_(l, l.length - 1), tsplus_module_12.unsafeGet_(r, r.length - 1)))), latest => concat_1(fromChunk_1(() => leftFirst ? tsplus_module_12.map_(r, b => f(tsplus_module_12.unsafeGet_(l, l.length - 1), b)) : tsplus_module_12.map_(l, a => f(a, tsplus_module_12.unsafeGet_(r, r.length - 1)))), flatMap_1(mapIO_1(mergeEither_1(repeatIOMaybe_1(left), repeatIOMaybe_1(right)), ab => tsplus_module_4.match_(ab, leftChunk => tsplus_module_15.modify_(latest, ([_, rightLatest]) => (0, _function.tuple)(tsplus_module_12.map_(leftChunk, a => f(a, rightLatest)), (0, _function.tuple)(tsplus_module_12.unsafeGet_(leftChunk, leftChunk.length - 1), rightLatest))), rightChunk => tsplus_module_15.modify_(latest, ([leftLatest, _]) => (0, _function.tuple)(tsplus_module_12.map_(rightChunk, b => f(leftLatest, b)), (0, _function.tuple)(leftLatest, tsplus_module_12.unsafeGet_(rightChunk, rightChunk.length - 1)))))), fromChunkNow_1))))), fileName_1 + ":2966:22"), fileName_1 + ":2965:22"));
2542
+ return fromPull_1(tsplus_module_1.flatMap_(tsplus_module_1.map_(toPull_1(fa, __tsplusTrace), pullNonEmpty, __tsplusTrace), left => tsplus_module_1.flatMap_(tsplus_module_1.map_(toPull_1(fb, __tsplusTrace), pullNonEmpty, __tsplusTrace), right => toPull_1(flatMap_1(fromIOMaybe_1(tsplus_module_24.raceWith_(left, () => right, (leftDone, rightFiber) => tsplus_module_1.zipWith_(tsplus_module_1.fromExitNow(leftDone, __tsplusTrace), tsplus_module_22.join(rightFiber, __tsplusTrace), (l, r) => (0, _function.tuple)(l, r, true), __tsplusTrace), (rightDone, leftFiber) => tsplus_module_1.zipWith_(tsplus_module_1.fromExitNow(rightDone, __tsplusTrace), tsplus_module_22.join(leftFiber, __tsplusTrace), (r, l) => (0, _function.tuple)(l, r, false), __tsplusTrace), __tsplusTrace), __tsplusTrace), ([l, r, leftFirst]) => flatMap_1(fromIO_1(tsplus_module_6.make(() => (0, _function.tuple)(tsplus_module_12.unsafeGet_(l, l.length - 1), tsplus_module_12.unsafeGet_(r, r.length - 1)), __tsplusTrace), __tsplusTrace), latest => concat_1(fromChunk_1(() => leftFirst ? tsplus_module_12.map_(r, b => f(tsplus_module_12.unsafeGet_(l, l.length - 1), b)) : tsplus_module_12.map_(l, a => f(a, tsplus_module_12.unsafeGet_(r, r.length - 1))), __tsplusTrace), flatMap_1(mapIO_1(mergeEither_1(repeatIOMaybe_1(left, __tsplusTrace), repeatIOMaybe_1(right, __tsplusTrace), __tsplusTrace), ab => tsplus_module_4.match_(ab, leftChunk => tsplus_module_15.modify_(latest, ([_, rightLatest]) => (0, _function.tuple)(tsplus_module_12.map_(leftChunk, a => f(a, rightLatest)), (0, _function.tuple)(tsplus_module_12.unsafeGet_(leftChunk, leftChunk.length - 1), rightLatest)), __tsplusTrace), rightChunk => tsplus_module_15.modify_(latest, ([leftLatest, _]) => (0, _function.tuple)(tsplus_module_12.map_(rightChunk, b => f(leftLatest, b)), (0, _function.tuple)(leftLatest, tsplus_module_12.unsafeGet_(rightChunk, rightChunk.length - 1))), __tsplusTrace)), __tsplusTrace), fromChunkNow_1, __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace);
2526
2543
  }
2527
2544
  //# sourceMappingURL=api.cjs.map