iter-fest 0.1.1-main.c619924 → 0.1.1-main.cc53108

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (469) hide show
  1. package/README.md +212 -33
  2. package/dist/chunk-2DE3J4J7.mjs +35 -0
  3. package/dist/chunk-2DE3J4J7.mjs.map +1 -0
  4. package/dist/chunk-3S6LCGE6.mjs +10 -0
  5. package/dist/chunk-3S6LCGE6.mjs.map +1 -0
  6. package/dist/chunk-4RT2FROS.mjs +10 -0
  7. package/dist/chunk-4RT2FROS.mjs.map +1 -0
  8. package/dist/chunk-4ZBMXHD6.mjs +10 -0
  9. package/dist/chunk-4ZBMXHD6.mjs.map +1 -0
  10. package/dist/{chunk-UIEKIMLW.mjs → chunk-AN54W42O.mjs} +8 -5
  11. package/dist/chunk-AN54W42O.mjs.map +1 -0
  12. package/dist/chunk-ANRVAYLW.mjs +35 -0
  13. package/dist/chunk-ANRVAYLW.mjs.map +1 -0
  14. package/dist/chunk-AOZVPHE4.mjs +10 -0
  15. package/dist/chunk-AOZVPHE4.mjs.map +1 -0
  16. package/dist/chunk-BSAPKNNZ.mjs +16 -0
  17. package/dist/chunk-BSAPKNNZ.mjs.map +1 -0
  18. package/dist/chunk-BWMXKULC.mjs +46 -0
  19. package/dist/chunk-BWMXKULC.mjs.map +1 -0
  20. package/dist/chunk-CNCNQPK3.mjs +16 -0
  21. package/dist/chunk-CNCNQPK3.mjs.map +1 -0
  22. package/dist/chunk-CNKIGQUS.mjs +10 -0
  23. package/dist/chunk-CNKIGQUS.mjs.map +1 -0
  24. package/dist/chunk-EIIP7YWB.mjs +27 -0
  25. package/dist/chunk-EIIP7YWB.mjs.map +1 -0
  26. package/dist/{chunk-KONB7TV6.mjs → chunk-EQZQP6GW.mjs} +8 -5
  27. package/dist/chunk-EQZQP6GW.mjs.map +1 -0
  28. package/dist/chunk-EUVK4YM7.mjs +25 -0
  29. package/dist/chunk-EUVK4YM7.mjs.map +1 -0
  30. package/dist/chunk-FBST4AUL.mjs +10 -0
  31. package/dist/chunk-FBST4AUL.mjs.map +1 -0
  32. package/dist/chunk-FEEBFWAI.mjs +24 -0
  33. package/dist/chunk-FEEBFWAI.mjs.map +1 -0
  34. package/dist/chunk-FMIHIL6A.mjs +10 -0
  35. package/dist/chunk-FMIHIL6A.mjs.map +1 -0
  36. package/dist/chunk-GFJGWVES.mjs +10 -0
  37. package/dist/chunk-GFJGWVES.mjs.map +1 -0
  38. package/dist/{chunk-27NJVC7K.mjs → chunk-H27CTQGV.mjs} +8 -5
  39. package/dist/chunk-H27CTQGV.mjs.map +1 -0
  40. package/dist/{chunk-MDBK7ND5.mjs → chunk-H5ARVU55.mjs} +8 -5
  41. package/dist/chunk-H5ARVU55.mjs.map +1 -0
  42. package/dist/{chunk-WKIRSZXX.mjs → chunk-IZXDQ25M.mjs} +8 -5
  43. package/dist/chunk-IZXDQ25M.mjs.map +1 -0
  44. package/dist/chunk-J3FQSENW.mjs +10 -0
  45. package/dist/chunk-J3FQSENW.mjs.map +1 -0
  46. package/dist/chunk-K4RCFPTZ.mjs +10 -0
  47. package/dist/chunk-K4RCFPTZ.mjs.map +1 -0
  48. package/dist/chunk-KYMTQJIJ.mjs +10 -0
  49. package/dist/chunk-KYMTQJIJ.mjs.map +1 -0
  50. package/dist/chunk-LB3MK3EU.mjs +10 -0
  51. package/dist/chunk-LB3MK3EU.mjs.map +1 -0
  52. package/dist/chunk-LIMQXDFK.mjs +10 -0
  53. package/dist/chunk-LIMQXDFK.mjs.map +1 -0
  54. package/dist/chunk-MO7HMLOZ.mjs +24 -0
  55. package/dist/chunk-MO7HMLOZ.mjs.map +1 -0
  56. package/dist/chunk-MYSNSDM7.mjs +13 -0
  57. package/dist/chunk-MYSNSDM7.mjs.map +1 -0
  58. package/dist/chunk-NZRXO7EY.mjs +24 -0
  59. package/dist/chunk-NZRXO7EY.mjs.map +1 -0
  60. package/dist/chunk-OCK7PKGO.mjs +23 -0
  61. package/dist/chunk-OCK7PKGO.mjs.map +1 -0
  62. package/dist/chunk-ODPKEUIR.mjs +10 -0
  63. package/dist/chunk-ODPKEUIR.mjs.map +1 -0
  64. package/dist/chunk-OWUGLCQB.mjs +10 -0
  65. package/dist/chunk-OWUGLCQB.mjs.map +1 -0
  66. package/dist/chunk-P4OSZLEH.mjs +15 -0
  67. package/dist/chunk-P4OSZLEH.mjs.map +1 -0
  68. package/dist/chunk-PGJSIDLV.mjs +25 -0
  69. package/dist/chunk-PGJSIDLV.mjs.map +1 -0
  70. package/dist/chunk-QLVU73KN.mjs +10 -0
  71. package/dist/chunk-QLVU73KN.mjs.map +1 -0
  72. package/dist/chunk-R6SXIXMH.mjs +10 -0
  73. package/dist/chunk-R6SXIXMH.mjs.map +1 -0
  74. package/dist/chunk-TDHR35S7.mjs +10 -0
  75. package/dist/chunk-TDHR35S7.mjs.map +1 -0
  76. package/dist/chunk-TQCZXEK7.mjs +10 -0
  77. package/dist/chunk-TQCZXEK7.mjs.map +1 -0
  78. package/dist/chunk-VCKLUCOT.mjs +10 -0
  79. package/dist/chunk-VCKLUCOT.mjs.map +1 -0
  80. package/dist/chunk-VIMGYUMQ.mjs +10 -0
  81. package/dist/chunk-VIMGYUMQ.mjs.map +1 -0
  82. package/dist/chunk-WUFMEPOM.mjs +10 -0
  83. package/dist/chunk-WUFMEPOM.mjs.map +1 -0
  84. package/dist/chunk-XQDGXAAF.mjs +10 -0
  85. package/dist/chunk-XQDGXAAF.mjs.map +1 -0
  86. package/dist/chunk-YJSIVBF7.mjs +22 -0
  87. package/dist/chunk-YJSIVBF7.mjs.map +1 -0
  88. package/dist/chunk-YLERARWI.mjs +10 -0
  89. package/dist/chunk-YLERARWI.mjs.map +1 -0
  90. package/dist/iter-fest.asyncGeneratorWithLastValue.d.mts +6 -0
  91. package/dist/iter-fest.asyncGeneratorWithLastValue.d.ts +6 -0
  92. package/dist/iter-fest.asyncGeneratorWithLastValue.js +59 -0
  93. package/dist/iter-fest.asyncGeneratorWithLastValue.js.map +1 -0
  94. package/dist/iter-fest.asyncGeneratorWithLastValue.mjs +7 -0
  95. package/dist/iter-fest.asyncIteratorDrop.d.mts +12 -0
  96. package/dist/iter-fest.asyncIteratorDrop.d.ts +12 -0
  97. package/dist/iter-fest.asyncIteratorDrop.js +44 -0
  98. package/dist/iter-fest.asyncIteratorDrop.js.map +1 -0
  99. package/dist/iter-fest.asyncIteratorDrop.mjs +7 -0
  100. package/dist/iter-fest.asyncIteratorEvery.d.mts +25 -0
  101. package/dist/iter-fest.asyncIteratorEvery.d.ts +25 -0
  102. package/dist/iter-fest.asyncIteratorEvery.js +44 -0
  103. package/dist/iter-fest.asyncIteratorEvery.js.map +1 -0
  104. package/dist/iter-fest.asyncIteratorEvery.mjs +7 -0
  105. package/dist/iter-fest.asyncIteratorFilter.d.mts +18 -0
  106. package/dist/iter-fest.asyncIteratorFilter.d.ts +18 -0
  107. package/dist/iter-fest.asyncIteratorFilter.js +44 -0
  108. package/dist/iter-fest.asyncIteratorFilter.js.map +1 -0
  109. package/dist/iter-fest.asyncIteratorFilter.mjs +7 -0
  110. package/dist/iter-fest.asyncIteratorFind.d.mts +14 -0
  111. package/dist/iter-fest.asyncIteratorFind.d.ts +14 -0
  112. package/dist/iter-fest.asyncIteratorFind.js +44 -0
  113. package/dist/iter-fest.asyncIteratorFind.js.map +1 -0
  114. package/dist/iter-fest.asyncIteratorFind.mjs +7 -0
  115. package/dist/iter-fest.asyncIteratorFlatMap.d.mts +12 -0
  116. package/dist/iter-fest.asyncIteratorFlatMap.d.ts +12 -0
  117. package/dist/iter-fest.asyncIteratorFlatMap.js +44 -0
  118. package/dist/iter-fest.asyncIteratorFlatMap.js.map +1 -0
  119. package/dist/iter-fest.asyncIteratorFlatMap.mjs +7 -0
  120. package/dist/iter-fest.asyncIteratorForEach.d.mts +10 -0
  121. package/dist/iter-fest.asyncIteratorForEach.d.ts +10 -0
  122. package/dist/iter-fest.asyncIteratorForEach.js +44 -0
  123. package/dist/iter-fest.asyncIteratorForEach.js.map +1 -0
  124. package/dist/iter-fest.asyncIteratorForEach.mjs +7 -0
  125. package/dist/iter-fest.asyncIteratorMap.d.mts +10 -0
  126. package/dist/iter-fest.asyncIteratorMap.d.ts +10 -0
  127. package/dist/iter-fest.asyncIteratorMap.js +44 -0
  128. package/dist/iter-fest.asyncIteratorMap.js.map +1 -0
  129. package/dist/iter-fest.asyncIteratorMap.mjs +7 -0
  130. package/dist/iter-fest.asyncIteratorReduce.d.mts +23 -0
  131. package/dist/iter-fest.asyncIteratorReduce.d.ts +23 -0
  132. package/dist/iter-fest.asyncIteratorReduce.js +44 -0
  133. package/dist/iter-fest.asyncIteratorReduce.js.map +1 -0
  134. package/dist/iter-fest.asyncIteratorReduce.mjs +7 -0
  135. package/dist/iter-fest.asyncIteratorSome.d.mts +10 -0
  136. package/dist/iter-fest.asyncIteratorSome.d.ts +10 -0
  137. package/dist/iter-fest.asyncIteratorSome.js +44 -0
  138. package/dist/iter-fest.asyncIteratorSome.js.map +1 -0
  139. package/dist/iter-fest.asyncIteratorSome.mjs +7 -0
  140. package/dist/iter-fest.asyncIteratorTake.d.mts +12 -0
  141. package/dist/iter-fest.asyncIteratorTake.d.ts +12 -0
  142. package/dist/iter-fest.asyncIteratorTake.js +44 -0
  143. package/dist/iter-fest.asyncIteratorTake.js.map +1 -0
  144. package/dist/iter-fest.asyncIteratorTake.mjs +7 -0
  145. package/dist/iter-fest.asyncIteratorToArray.d.mts +13 -0
  146. package/dist/iter-fest.asyncIteratorToArray.d.ts +13 -0
  147. package/dist/iter-fest.asyncIteratorToArray.js +44 -0
  148. package/dist/iter-fest.asyncIteratorToArray.js.map +1 -0
  149. package/dist/iter-fest.asyncIteratorToArray.mjs +7 -0
  150. package/dist/iter-fest.asyncIteratorToAsyncIterable.d.mts +3 -0
  151. package/dist/iter-fest.asyncIteratorToAsyncIterable.d.ts +3 -0
  152. package/dist/{iter-fest.iterableConcat.js → iter-fest.asyncIteratorToAsyncIterable.js} +15 -16
  153. package/dist/iter-fest.asyncIteratorToAsyncIterable.js.map +1 -0
  154. package/dist/iter-fest.asyncIteratorToAsyncIterable.mjs +7 -0
  155. package/dist/iter-fest.d.mts +44 -21
  156. package/dist/iter-fest.d.ts +44 -21
  157. package/dist/iter-fest.generatorWithLastValue.d.mts +6 -0
  158. package/dist/iter-fest.generatorWithLastValue.d.ts +6 -0
  159. package/dist/iter-fest.generatorWithLastValue.js +59 -0
  160. package/dist/iter-fest.generatorWithLastValue.js.map +1 -0
  161. package/dist/iter-fest.generatorWithLastValue.mjs +7 -0
  162. package/dist/iter-fest.iterableWritableStream.d.mts +7 -0
  163. package/dist/iter-fest.iterableWritableStream.d.ts +7 -0
  164. package/dist/{iter-fest.observableValues.js → iter-fest.iterableWritableStream.js} +39 -57
  165. package/dist/iter-fest.iterableWritableStream.js.map +1 -0
  166. package/dist/iter-fest.iterableWritableStream.mjs +7 -0
  167. package/dist/{iter-fest.iterableAt.d.ts → iter-fest.iteratorAt.d.mts} +2 -2
  168. package/dist/{iter-fest.iterableAt.d.mts → iter-fest.iteratorAt.d.ts} +2 -2
  169. package/dist/{iter-fest.iterableAt.js → iter-fest.iteratorAt.js} +21 -10
  170. package/dist/iter-fest.iteratorAt.js.map +1 -0
  171. package/dist/iter-fest.iteratorAt.mjs +9 -0
  172. package/dist/iter-fest.iteratorConcat.d.mts +16 -0
  173. package/dist/iter-fest.iteratorConcat.d.ts +16 -0
  174. package/dist/iter-fest.iteratorConcat.js +56 -0
  175. package/dist/iter-fest.iteratorConcat.js.map +1 -0
  176. package/dist/iter-fest.iteratorConcat.mjs +8 -0
  177. package/dist/iter-fest.iteratorDrop.d.mts +12 -0
  178. package/dist/iter-fest.iteratorDrop.d.ts +12 -0
  179. package/dist/iter-fest.iteratorDrop.js +44 -0
  180. package/dist/iter-fest.iteratorDrop.js.map +1 -0
  181. package/dist/iter-fest.iteratorDrop.mjs +7 -0
  182. package/dist/iter-fest.iteratorEntries.d.mts +6 -0
  183. package/dist/iter-fest.iteratorEntries.d.ts +6 -0
  184. package/dist/{iter-fest.iterableEntries.js → iter-fest.iteratorEntries.js} +22 -9
  185. package/dist/iter-fest.iteratorEntries.js.map +1 -0
  186. package/dist/iter-fest.iteratorEntries.mjs +8 -0
  187. package/dist/iter-fest.iteratorEvery.d.mts +25 -0
  188. package/dist/iter-fest.iteratorEvery.d.ts +25 -0
  189. package/dist/iter-fest.iteratorEvery.js +44 -0
  190. package/dist/iter-fest.iteratorEvery.js.map +1 -0
  191. package/dist/iter-fest.iteratorEvery.mjs +7 -0
  192. package/dist/iter-fest.iteratorFilter.d.mts +18 -0
  193. package/dist/iter-fest.iteratorFilter.d.ts +18 -0
  194. package/dist/iter-fest.iteratorFilter.js +44 -0
  195. package/dist/iter-fest.iteratorFilter.js.map +1 -0
  196. package/dist/iter-fest.iteratorFilter.mjs +7 -0
  197. package/dist/iter-fest.iteratorFind.d.mts +14 -0
  198. package/dist/iter-fest.iteratorFind.d.ts +14 -0
  199. package/dist/iter-fest.iteratorFind.js +44 -0
  200. package/dist/iter-fest.iteratorFind.js.map +1 -0
  201. package/dist/iter-fest.iteratorFind.mjs +7 -0
  202. package/dist/iter-fest.iteratorFind.mjs.map +1 -0
  203. package/dist/{iter-fest.iterableFindIndex.d.mts → iter-fest.iteratorFindIndex.d.mts} +4 -4
  204. package/dist/{iter-fest.iterableFindIndex.d.ts → iter-fest.iteratorFindIndex.d.ts} +4 -4
  205. package/dist/{iter-fest.iterableFindIndex.js → iter-fest.iteratorFindIndex.js} +23 -10
  206. package/dist/iter-fest.iteratorFindIndex.js.map +1 -0
  207. package/dist/iter-fest.iteratorFindIndex.mjs +8 -0
  208. package/dist/iter-fest.iteratorFindIndex.mjs.map +1 -0
  209. package/dist/{iter-fest.iterableFindLast.d.mts → iter-fest.iteratorFindLast.d.mts} +5 -5
  210. package/dist/{iter-fest.iterableFindLast.d.ts → iter-fest.iteratorFindLast.d.ts} +5 -5
  211. package/dist/{iter-fest.iterableFindLast.js → iter-fest.iteratorFindLast.js} +23 -10
  212. package/dist/iter-fest.iteratorFindLast.js.map +1 -0
  213. package/dist/iter-fest.iteratorFindLast.mjs +8 -0
  214. package/dist/iter-fest.iteratorFindLast.mjs.map +1 -0
  215. package/dist/{iter-fest.iterableFindLastIndex.d.mts → iter-fest.iteratorFindLastIndex.d.mts} +4 -4
  216. package/dist/{iter-fest.iterableFindLastIndex.d.ts → iter-fest.iteratorFindLastIndex.d.ts} +4 -4
  217. package/dist/{iter-fest.iterableFindLastIndex.js → iter-fest.iteratorFindLastIndex.js} +23 -10
  218. package/dist/iter-fest.iteratorFindLastIndex.js.map +1 -0
  219. package/dist/iter-fest.iteratorFindLastIndex.mjs +8 -0
  220. package/dist/iter-fest.iteratorFindLastIndex.mjs.map +1 -0
  221. package/dist/iter-fest.iteratorFlatMap.d.mts +12 -0
  222. package/dist/iter-fest.iteratorFlatMap.d.ts +12 -0
  223. package/dist/iter-fest.iteratorFlatMap.js +44 -0
  224. package/dist/iter-fest.iteratorFlatMap.js.map +1 -0
  225. package/dist/iter-fest.iteratorFlatMap.mjs +7 -0
  226. package/dist/iter-fest.iteratorFlatMap.mjs.map +1 -0
  227. package/dist/iter-fest.iteratorForEach.d.mts +10 -0
  228. package/dist/iter-fest.iteratorForEach.d.ts +10 -0
  229. package/dist/iter-fest.iteratorForEach.js +44 -0
  230. package/dist/iter-fest.iteratorForEach.js.map +1 -0
  231. package/dist/iter-fest.iteratorForEach.mjs +7 -0
  232. package/dist/iter-fest.iteratorForEach.mjs.map +1 -0
  233. package/dist/iter-fest.iteratorFrom.d.mts +12 -0
  234. package/dist/iter-fest.iteratorFrom.d.ts +12 -0
  235. package/dist/iter-fest.iteratorFrom.js +44 -0
  236. package/dist/iter-fest.iteratorFrom.js.map +1 -0
  237. package/dist/iter-fest.iteratorFrom.mjs +7 -0
  238. package/dist/iter-fest.iteratorFrom.mjs.map +1 -0
  239. package/dist/iter-fest.iteratorIncludes.d.mts +9 -0
  240. package/dist/iter-fest.iteratorIncludes.d.ts +9 -0
  241. package/dist/{iter-fest.iterableIncludes.js → iter-fest.iteratorIncludes.js} +21 -10
  242. package/dist/iter-fest.iteratorIncludes.js.map +1 -0
  243. package/dist/iter-fest.iteratorIncludes.mjs +9 -0
  244. package/dist/iter-fest.iteratorIncludes.mjs.map +1 -0
  245. package/dist/iter-fest.iteratorIndexOf.d.mts +9 -0
  246. package/dist/iter-fest.iteratorIndexOf.d.ts +9 -0
  247. package/dist/{iter-fest.iterableIndexOf.js → iter-fest.iteratorIndexOf.js} +21 -10
  248. package/dist/iter-fest.iteratorIndexOf.js.map +1 -0
  249. package/dist/iter-fest.iteratorIndexOf.mjs +9 -0
  250. package/dist/iter-fest.iteratorIndexOf.mjs.map +1 -0
  251. package/dist/iter-fest.iteratorJoin.d.mts +8 -0
  252. package/dist/iter-fest.iteratorJoin.d.ts +8 -0
  253. package/dist/{iter-fest.iterableToString.js → iter-fest.iteratorJoin.js} +21 -15
  254. package/dist/iter-fest.iteratorJoin.js.map +1 -0
  255. package/dist/iter-fest.iteratorJoin.mjs +8 -0
  256. package/dist/iter-fest.iteratorJoin.mjs.map +1 -0
  257. package/dist/iter-fest.iteratorKeys.d.mts +6 -0
  258. package/dist/iter-fest.iteratorKeys.d.ts +6 -0
  259. package/dist/{iter-fest.iterableKeys.js → iter-fest.iteratorKeys.js} +22 -9
  260. package/dist/iter-fest.iteratorKeys.js.map +1 -0
  261. package/dist/iter-fest.iteratorKeys.mjs +8 -0
  262. package/dist/iter-fest.iteratorKeys.mjs.map +1 -0
  263. package/dist/iter-fest.iteratorMap.d.mts +10 -0
  264. package/dist/iter-fest.iteratorMap.d.ts +10 -0
  265. package/dist/iter-fest.iteratorMap.js +44 -0
  266. package/dist/iter-fest.iteratorMap.js.map +1 -0
  267. package/dist/iter-fest.iteratorMap.mjs +7 -0
  268. package/dist/iter-fest.iteratorMap.mjs.map +1 -0
  269. package/dist/{iter-fest.iterableReduce.d.mts → iter-fest.iteratorReduce.d.mts} +13 -9
  270. package/dist/{iter-fest.iterableReduce.d.ts → iter-fest.iteratorReduce.d.ts} +13 -9
  271. package/dist/iter-fest.iteratorReduce.js +44 -0
  272. package/dist/iter-fest.iteratorReduce.js.map +1 -0
  273. package/dist/iter-fest.iteratorReduce.mjs +7 -0
  274. package/dist/iter-fest.iteratorReduce.mjs.map +1 -0
  275. package/dist/{iter-fest.iterableSlice.d.mts → iter-fest.iteratorSlice.d.mts} +8 -8
  276. package/dist/{iter-fest.iterableSlice.d.ts → iter-fest.iteratorSlice.d.ts} +8 -8
  277. package/dist/{iter-fest.iterableSlice.js → iter-fest.iteratorSlice.js} +21 -10
  278. package/dist/iter-fest.iteratorSlice.js.map +1 -0
  279. package/dist/iter-fest.iteratorSlice.mjs +9 -0
  280. package/dist/iter-fest.iteratorSlice.mjs.map +1 -0
  281. package/dist/iter-fest.iteratorSome.d.mts +10 -0
  282. package/dist/iter-fest.iteratorSome.d.ts +10 -0
  283. package/dist/iter-fest.iteratorSome.js +44 -0
  284. package/dist/iter-fest.iteratorSome.js.map +1 -0
  285. package/dist/iter-fest.iteratorSome.mjs +7 -0
  286. package/dist/iter-fest.iteratorSome.mjs.map +1 -0
  287. package/dist/iter-fest.iteratorTake.d.mts +12 -0
  288. package/dist/iter-fest.iteratorTake.d.ts +12 -0
  289. package/dist/iter-fest.iteratorTake.js +44 -0
  290. package/dist/iter-fest.iteratorTake.js.map +1 -0
  291. package/dist/iter-fest.iteratorTake.mjs +7 -0
  292. package/dist/iter-fest.iteratorTake.mjs.map +1 -0
  293. package/dist/iter-fest.iteratorToArray.d.mts +13 -0
  294. package/dist/iter-fest.iteratorToArray.d.ts +13 -0
  295. package/dist/iter-fest.iteratorToArray.js +44 -0
  296. package/dist/iter-fest.iteratorToArray.js.map +1 -0
  297. package/dist/iter-fest.iteratorToArray.mjs +7 -0
  298. package/dist/iter-fest.iteratorToArray.mjs.map +1 -0
  299. package/dist/iter-fest.iteratorToAsync.d.mts +10 -0
  300. package/dist/iter-fest.iteratorToAsync.d.ts +10 -0
  301. package/dist/iter-fest.iteratorToAsync.js +44 -0
  302. package/dist/iter-fest.iteratorToAsync.js.map +1 -0
  303. package/dist/iter-fest.iteratorToAsync.mjs +7 -0
  304. package/dist/iter-fest.iteratorToAsync.mjs.map +1 -0
  305. package/dist/{iter-fest.iterableToSpliced.d.mts → iter-fest.iteratorToSpliced.d.mts} +3 -3
  306. package/dist/{iter-fest.iterableToSpliced.d.ts → iter-fest.iteratorToSpliced.d.ts} +3 -3
  307. package/dist/{iter-fest.iterableToSpliced.js → iter-fest.iteratorToSpliced.js} +21 -10
  308. package/dist/iter-fest.iteratorToSpliced.js.map +1 -0
  309. package/dist/iter-fest.iteratorToSpliced.mjs +9 -0
  310. package/dist/iter-fest.iteratorToSpliced.mjs.map +1 -0
  311. package/dist/iter-fest.iteratorToString.d.mts +6 -0
  312. package/dist/iter-fest.iteratorToString.d.ts +6 -0
  313. package/dist/{iter-fest.iterableJoin.js → iter-fest.iteratorToString.js} +27 -9
  314. package/dist/iter-fest.iteratorToString.js.map +1 -0
  315. package/dist/iter-fest.iteratorToString.mjs +9 -0
  316. package/dist/iter-fest.iteratorToString.mjs.map +1 -0
  317. package/dist/iter-fest.js +442 -227
  318. package/dist/iter-fest.js.map +1 -1
  319. package/dist/iter-fest.mjs +162 -70
  320. package/dist/{iter-fest.observableValues.d.mts → iter-fest.observableSubscribeAsReadable.d.mts} +2 -2
  321. package/dist/{iter-fest.observableValues.d.ts → iter-fest.observableSubscribeAsReadable.d.ts} +2 -2
  322. package/dist/iter-fest.observableSubscribeAsReadable.js +51 -0
  323. package/dist/iter-fest.observableSubscribeAsReadable.js.map +1 -0
  324. package/dist/iter-fest.observableSubscribeAsReadable.mjs +7 -0
  325. package/dist/iter-fest.observableSubscribeAsReadable.mjs.map +1 -0
  326. package/dist/iter-fest.readableStreamFrom.d.mts +3 -0
  327. package/dist/iter-fest.readableStreamFrom.d.ts +3 -0
  328. package/dist/{iter-fest.iterableFilter.js → iter-fest.readableStreamFrom.js} +21 -17
  329. package/dist/iter-fest.readableStreamFrom.js.map +1 -0
  330. package/dist/iter-fest.readableStreamFrom.mjs +7 -0
  331. package/dist/iter-fest.readableStreamFrom.mjs.map +1 -0
  332. package/dist/iter-fest.readerValues.d.mts +3 -0
  333. package/dist/iter-fest.readerValues.d.ts +3 -0
  334. package/dist/{iter-fest.iterableEvery.js → iter-fest.readerValues.js} +24 -18
  335. package/dist/iter-fest.readerValues.js.map +1 -0
  336. package/dist/iter-fest.readerValues.mjs +7 -0
  337. package/dist/iter-fest.readerValues.mjs.map +1 -0
  338. package/package.json +337 -107
  339. package/dist/chunk-27NJVC7K.mjs.map +0 -1
  340. package/dist/chunk-44W7OTNE.mjs +0 -12
  341. package/dist/chunk-44W7OTNE.mjs.map +0 -1
  342. package/dist/chunk-5CHMNKXJ.mjs +0 -20
  343. package/dist/chunk-5CHMNKXJ.mjs.map +0 -1
  344. package/dist/chunk-5CRMPYKD.mjs +0 -19
  345. package/dist/chunk-5CRMPYKD.mjs.map +0 -1
  346. package/dist/chunk-6C3P4TNK.mjs +0 -19
  347. package/dist/chunk-6C3P4TNK.mjs.map +0 -1
  348. package/dist/chunk-EZC33HE6.mjs +0 -15
  349. package/dist/chunk-EZC33HE6.mjs.map +0 -1
  350. package/dist/chunk-GWZF5BB7.mjs +0 -16
  351. package/dist/chunk-GWZF5BB7.mjs.map +0 -1
  352. package/dist/chunk-HYU4EN7J.mjs +0 -20
  353. package/dist/chunk-HYU4EN7J.mjs.map +0 -1
  354. package/dist/chunk-JU353VSE.mjs +0 -16
  355. package/dist/chunk-JU353VSE.mjs.map +0 -1
  356. package/dist/chunk-KONB7TV6.mjs.map +0 -1
  357. package/dist/chunk-MDBK7ND5.mjs.map +0 -1
  358. package/dist/chunk-MNLOWKTC.mjs +0 -19
  359. package/dist/chunk-MNLOWKTC.mjs.map +0 -1
  360. package/dist/chunk-QDUX45ZP.mjs +0 -64
  361. package/dist/chunk-QDUX45ZP.mjs.map +0 -1
  362. package/dist/chunk-TEI3K6GT.mjs +0 -21
  363. package/dist/chunk-TEI3K6GT.mjs.map +0 -1
  364. package/dist/chunk-UIEKIMLW.mjs.map +0 -1
  365. package/dist/chunk-V6OWQQ3Q.mjs +0 -20
  366. package/dist/chunk-V6OWQQ3Q.mjs.map +0 -1
  367. package/dist/chunk-WKIRSZXX.mjs.map +0 -1
  368. package/dist/chunk-XKBVB2JN.mjs +0 -12
  369. package/dist/chunk-XKBVB2JN.mjs.map +0 -1
  370. package/dist/chunk-XW34KZRY.mjs +0 -17
  371. package/dist/chunk-XW34KZRY.mjs.map +0 -1
  372. package/dist/chunk-Y5M2C7NQ.mjs +0 -13
  373. package/dist/chunk-Y5M2C7NQ.mjs.map +0 -1
  374. package/dist/chunk-ZUBHGSCW.mjs +0 -18
  375. package/dist/chunk-ZUBHGSCW.mjs.map +0 -1
  376. package/dist/iter-fest.iterableAt.js.map +0 -1
  377. package/dist/iter-fest.iterableAt.mjs +0 -8
  378. package/dist/iter-fest.iterableConcat.d.mts +0 -16
  379. package/dist/iter-fest.iterableConcat.d.ts +0 -16
  380. package/dist/iter-fest.iterableConcat.js.map +0 -1
  381. package/dist/iter-fest.iterableConcat.mjs +0 -7
  382. package/dist/iter-fest.iterableEntries.d.mts +0 -6
  383. package/dist/iter-fest.iterableEntries.d.ts +0 -6
  384. package/dist/iter-fest.iterableEntries.js.map +0 -1
  385. package/dist/iter-fest.iterableEntries.mjs +0 -7
  386. package/dist/iter-fest.iterableEvery.d.mts +0 -24
  387. package/dist/iter-fest.iterableEvery.d.ts +0 -24
  388. package/dist/iter-fest.iterableEvery.js.map +0 -1
  389. package/dist/iter-fest.iterableEvery.mjs +0 -7
  390. package/dist/iter-fest.iterableFilter.d.mts +0 -16
  391. package/dist/iter-fest.iterableFilter.d.ts +0 -16
  392. package/dist/iter-fest.iterableFilter.js.map +0 -1
  393. package/dist/iter-fest.iterableFilter.mjs +0 -7
  394. package/dist/iter-fest.iterableFind.d.mts +0 -15
  395. package/dist/iter-fest.iterableFind.d.ts +0 -15
  396. package/dist/iter-fest.iterableFind.js +0 -43
  397. package/dist/iter-fest.iterableFind.js.map +0 -1
  398. package/dist/iter-fest.iterableFind.mjs +0 -7
  399. package/dist/iter-fest.iterableFindIndex.js.map +0 -1
  400. package/dist/iter-fest.iterableFindIndex.mjs +0 -7
  401. package/dist/iter-fest.iterableFindLast.js.map +0 -1
  402. package/dist/iter-fest.iterableFindLast.mjs +0 -7
  403. package/dist/iter-fest.iterableFindLastIndex.js.map +0 -1
  404. package/dist/iter-fest.iterableFindLastIndex.mjs +0 -7
  405. package/dist/iter-fest.iterableForEach.d.mts +0 -10
  406. package/dist/iter-fest.iterableForEach.d.ts +0 -10
  407. package/dist/iter-fest.iterableForEach.js +0 -40
  408. package/dist/iter-fest.iterableForEach.js.map +0 -1
  409. package/dist/iter-fest.iterableForEach.mjs +0 -7
  410. package/dist/iter-fest.iterableIncludes.d.mts +0 -9
  411. package/dist/iter-fest.iterableIncludes.d.ts +0 -9
  412. package/dist/iter-fest.iterableIncludes.js.map +0 -1
  413. package/dist/iter-fest.iterableIncludes.mjs +0 -8
  414. package/dist/iter-fest.iterableIndexOf.d.mts +0 -9
  415. package/dist/iter-fest.iterableIndexOf.d.ts +0 -9
  416. package/dist/iter-fest.iterableIndexOf.js.map +0 -1
  417. package/dist/iter-fest.iterableIndexOf.mjs +0 -8
  418. package/dist/iter-fest.iterableJoin.d.mts +0 -8
  419. package/dist/iter-fest.iterableJoin.d.ts +0 -8
  420. package/dist/iter-fest.iterableJoin.js.map +0 -1
  421. package/dist/iter-fest.iterableJoin.mjs +0 -7
  422. package/dist/iter-fest.iterableKeys.d.mts +0 -6
  423. package/dist/iter-fest.iterableKeys.d.ts +0 -6
  424. package/dist/iter-fest.iterableKeys.js.map +0 -1
  425. package/dist/iter-fest.iterableKeys.mjs +0 -7
  426. package/dist/iter-fest.iterableMap.d.mts +0 -8
  427. package/dist/iter-fest.iterableMap.d.ts +0 -8
  428. package/dist/iter-fest.iterableMap.js +0 -39
  429. package/dist/iter-fest.iterableMap.js.map +0 -1
  430. package/dist/iter-fest.iterableMap.mjs +0 -7
  431. package/dist/iter-fest.iterableReduce.js +0 -41
  432. package/dist/iter-fest.iterableReduce.js.map +0 -1
  433. package/dist/iter-fest.iterableReduce.mjs +0 -7
  434. package/dist/iter-fest.iterableSlice.js.map +0 -1
  435. package/dist/iter-fest.iterableSlice.mjs +0 -8
  436. package/dist/iter-fest.iterableSome.d.mts +0 -12
  437. package/dist/iter-fest.iterableSome.d.ts +0 -12
  438. package/dist/iter-fest.iterableSome.js +0 -43
  439. package/dist/iter-fest.iterableSome.js.map +0 -1
  440. package/dist/iter-fest.iterableSome.mjs +0 -7
  441. package/dist/iter-fest.iterableToSpliced.js.map +0 -1
  442. package/dist/iter-fest.iterableToSpliced.mjs +0 -8
  443. package/dist/iter-fest.iterableToString.d.mts +0 -6
  444. package/dist/iter-fest.iterableToString.d.ts +0 -6
  445. package/dist/iter-fest.iterableToString.js.map +0 -1
  446. package/dist/iter-fest.iterableToString.mjs +0 -8
  447. package/dist/iter-fest.observableValues.js.map +0 -1
  448. package/dist/iter-fest.observableValues.mjs +0 -7
  449. /package/dist/{iter-fest.iterableAt.mjs.map → iter-fest.asyncGeneratorWithLastValue.mjs.map} +0 -0
  450. /package/dist/{iter-fest.iterableConcat.mjs.map → iter-fest.asyncIteratorDrop.mjs.map} +0 -0
  451. /package/dist/{iter-fest.iterableEntries.mjs.map → iter-fest.asyncIteratorEvery.mjs.map} +0 -0
  452. /package/dist/{iter-fest.iterableEvery.mjs.map → iter-fest.asyncIteratorFilter.mjs.map} +0 -0
  453. /package/dist/{iter-fest.iterableFilter.mjs.map → iter-fest.asyncIteratorFind.mjs.map} +0 -0
  454. /package/dist/{iter-fest.iterableFind.mjs.map → iter-fest.asyncIteratorFlatMap.mjs.map} +0 -0
  455. /package/dist/{iter-fest.iterableFindIndex.mjs.map → iter-fest.asyncIteratorForEach.mjs.map} +0 -0
  456. /package/dist/{iter-fest.iterableFindLast.mjs.map → iter-fest.asyncIteratorMap.mjs.map} +0 -0
  457. /package/dist/{iter-fest.iterableFindLastIndex.mjs.map → iter-fest.asyncIteratorReduce.mjs.map} +0 -0
  458. /package/dist/{iter-fest.iterableForEach.mjs.map → iter-fest.asyncIteratorSome.mjs.map} +0 -0
  459. /package/dist/{iter-fest.iterableIncludes.mjs.map → iter-fest.asyncIteratorTake.mjs.map} +0 -0
  460. /package/dist/{iter-fest.iterableIndexOf.mjs.map → iter-fest.asyncIteratorToArray.mjs.map} +0 -0
  461. /package/dist/{iter-fest.iterableJoin.mjs.map → iter-fest.asyncIteratorToAsyncIterable.mjs.map} +0 -0
  462. /package/dist/{iter-fest.iterableKeys.mjs.map → iter-fest.generatorWithLastValue.mjs.map} +0 -0
  463. /package/dist/{iter-fest.iterableMap.mjs.map → iter-fest.iterableWritableStream.mjs.map} +0 -0
  464. /package/dist/{iter-fest.iterableReduce.mjs.map → iter-fest.iteratorAt.mjs.map} +0 -0
  465. /package/dist/{iter-fest.iterableSlice.mjs.map → iter-fest.iteratorConcat.mjs.map} +0 -0
  466. /package/dist/{iter-fest.iterableSome.mjs.map → iter-fest.iteratorDrop.mjs.map} +0 -0
  467. /package/dist/{iter-fest.iterableToSpliced.mjs.map → iter-fest.iteratorEntries.mjs.map} +0 -0
  468. /package/dist/{iter-fest.iterableToString.mjs.map → iter-fest.iteratorEvery.mjs.map} +0 -0
  469. /package/dist/{iter-fest.observableValues.mjs.map → iter-fest.iteratorFilter.mjs.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/Observable.ts","../src/SymbolObservable.ts","../src/private/toIntegerOrInfinity.ts","../src/iterableAt.ts","../src/iterableConcat.ts","../src/iterableEntries.ts","../src/iterableEvery.ts","../src/iterableFilter.ts","../src/iterableFind.ts","../src/iterableFindIndex.ts","../src/iterableFindLast.ts","../src/iterableFindLastIndex.ts","../src/iterableForEach.ts","../src/iterableIncludes.ts","../src/iterableIndexOf.ts","../src/iterableJoin.ts","../src/iterableKeys.ts","../src/iterableMap.ts","../src/iterableReduce.ts","../src/iterableSlice.ts","../src/iterableSome.ts","../src/iterableToSpliced.ts","../src/iterableToString.ts","../src/iteratorToIterable.ts","../src/observableFromAsync.ts","../src/private/withResolvers.ts","../src/observableValues.ts"],"sourcesContent":["export * from './Observable';\nexport * from './SymbolObservable';\nexport * from './iterableAt';\nexport * from './iterableConcat';\nexport * from './iterableEntries';\nexport * from './iterableEvery';\nexport * from './iterableFilter';\nexport * from './iterableFind';\nexport * from './iterableFindIndex';\nexport * from './iterableFindLast';\nexport * from './iterableFindLastIndex';\nexport * from './iterableForEach';\nexport * from './iterableIncludes';\nexport * from './iterableIndexOf';\nexport * from './iterableJoin';\nexport * from './iterableKeys';\nexport * from './iterableMap';\nexport * from './iterableReduce';\nexport * from './iterableSlice';\nexport * from './iterableSome';\nexport * from './iterableToSpliced';\nexport * from './iterableToString';\nexport * from './iteratorToIterable';\nexport * from './observableFromAsync';\nexport * from './observableValues';\n","// @ts-expect-error core-js is not typed.\nimport CoreJSObservable from 'core-js-pure/full/observable';\n\nimport { SymbolObservable } from './SymbolObservable';\n\nexport interface SubscriptionObserver<T> {\n /** Sends the next value in the sequence */\n next(value: T): void;\n\n /** Sends the sequence error */\n error(errorValue: unknown): void;\n\n /** Sends the completion notification */\n complete(): void;\n\n /** A boolean value indicating whether the subscription is closed */\n get closed(): boolean;\n}\n\nexport interface Subscription {\n /** Cancels the subscription */\n unsubscribe(): void;\n\n /** A boolean value indicating whether the subscription is closed */\n get closed(): boolean;\n}\n\nexport type SubscriberFunction<T> = (observer: SubscriptionObserver<T>) => (() => void) | Subscription | void;\n\nexport type CompleteFunction = () => void;\nexport type ErrorFunction = (errorValue: unknown) => void;\nexport type NextFunction<T> = (value: T) => void;\nexport type StartFunction = (subscription: Subscription) => void;\n\nexport interface Observer<T> {\n /** Receives a completion notification */\n complete?(): void;\n\n /** Receives the sequence error */\n error?(errorValue: unknown): void;\n\n /** Receives the next value in the sequence */\n next?(value: T): void;\n\n /** Receives the subscription object when `subscribe` is called */\n start?(subscription: Subscription): void;\n}\n\nexport class Observable<T> extends CoreJSObservable {\n constructor(subscriber: SubscriberFunction<T>) {\n super(subscriber);\n }\n\n /** Subscribes to the sequence with an observer */\n subscribe(observer: Observer<T>): Subscription;\n\n /** Subscribes to the sequence with callbacks */\n subscribe(\n onNext: NextFunction<T>,\n onError?: ErrorFunction | undefined,\n onComplete?: CompleteFunction | undefined\n ): Subscription;\n\n subscribe(\n observerOrOnNext: Observer<T> | NextFunction<T>,\n onError?: ErrorFunction | undefined,\n onComplete?: CompleteFunction | undefined\n ): Subscription {\n return super.subscribe(observerOrOnNext, onError, onComplete);\n }\n\n /** Returns itself */\n [SymbolObservable](): Observable<T> {\n return this;\n }\n\n /** Converts items to an Observable */\n static of<T>(...items: T[]): Observable<T> {\n return CoreJSObservable.of(...items);\n }\n\n /** Converts an iterable to an Observable */\n static from<T>(iterable: Iterable<T>): Observable<T>;\n\n /** Converts an observable to an Observable */\n static from<T>(observable: Observable<T>): Observable<T>;\n\n static from<T>(iterableOrObservable: Iterable<T> | Observable<T>): Observable<T> {\n return CoreJSObservable.from(iterableOrObservable);\n }\n}\n","// @ts-expect-error core-js is not typed.\nimport CoreJSSymbolObservable from 'core-js-pure/features/symbol/observable';\n\nconst SymbolObservable: unique symbol = CoreJSSymbolObservable;\n\nexport { SymbolObservable };\n","export default function toIntegerOrInfinity(value: number): number {\n if (value === Infinity || value === -Infinity) {\n return value;\n }\n\n return ~~value;\n}\n","import toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Returns the item located at the specified index.\n *\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\nexport function iterableAt<T>(iterable: Iterable<T>, index: number): T | undefined {\n let currentIndex = 0;\n\n index = toIntegerOrInfinity(index);\n\n if (!isFinite(index)) {\n return;\n }\n\n if (index < 0) {\n throw new TypeError('index cannot be a negative finite number');\n }\n\n for (const value of iterable) {\n if (currentIndex++ === index) {\n return value;\n }\n }\n\n return undefined;\n}\n","/**\n * Combines two or more iterables.\n * This method returns a new iterable without modifying any existing iterables.\n *\n * @param items Additional iterables and/or items to add to the end of the iterable.\n */\nexport function iterableConcat<T>(iterable: Iterable<T>, ...items: Iterable<T>[]): IterableIterator<T>;\n\n/**\n * Combines two or more iterables.\n * This method returns a new iterable without modifying any existing iterables.\n *\n * @param items Additional iterables and/or items to add to the end of the iterable.\n */\nexport function iterableConcat<T>(iterable: Iterable<T>, ...items: (T | Iterable<T>)[]): IterableIterator<T>;\n\nexport function* iterableConcat<T>(iterable: Iterable<T>, ...items: (T | Iterable<T>)[]): IterableIterator<T> {\n yield* iterable;\n\n for (const item of items) {\n if (item && typeof item === 'object' && Symbol.iterator in item) {\n yield* item;\n } else {\n yield item;\n }\n }\n}\n","/**\n * Returns an iterable of key, value pairs for every entry in the iterable\n */\nexport function* iterableEntries<T>(iterable: Iterable<T>): IterableIterator<[number, T]> {\n let index = 0;\n\n for (const value of iterable) {\n yield [index++, value];\n }\n}\n","/**\n * Determines whether all the members of an iterable satisfy the specified test.\n *\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the iterable until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the iterable.\n *\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\nexport function iterableEvery<T, S extends T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => value is S,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): iterable is S[];\n\n/**\n * Determines whether all the members of an iterable satisfy the specified test.\n *\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the iterable until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the iterable.\n *\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n */\nexport function iterableEvery<T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): boolean;\n\nexport function iterableEvery<T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg: any = undefined\n): boolean {\n let index = 0;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iterable) {\n if (!boundPredicate(value, index++, iterable)) {\n return false;\n }\n }\n\n return true;\n}\n","/**\n * Returns the elements of an iterable that meet the condition specified in a callback function.\n *\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the iterable.\n * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n */\nexport function iterableFilter<T, S extends T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => value is S,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: unknown\n): IterableIterator<S>;\n\n/**\n * Returns the elements of an iterable that meet the condition specified in a callback function.\n *\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the iterable.\n * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n */\nexport function iterableFilter<T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): IterableIterator<T>;\n\nexport function* iterableFilter<T, S extends T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: unknown\n): IterableIterator<S> {\n let index = 0;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iterable) {\n if (boundPredicate(value, index++, iterable)) {\n yield value as S;\n }\n }\n}\n","/**\n * Returns the value of the first element in the iterable where predicate is true, and undefined\n * otherwise.\n *\n * @param predicate find calls predicate once for each element of the iterable, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n *\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\nexport function iterableFind<T, S extends T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, obj: Iterable<T>) => value is S,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): S | undefined;\n\nexport function iterableFind<T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, obj: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): T | undefined;\n\nexport function iterableFind<T, S extends T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, obj: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): S | undefined {\n let index = 0;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iterable) {\n if (boundPredicate(value, index++, iterable)) {\n return value as S;\n }\n }\n\n return undefined;\n}\n","/**\n * Returns the index of the first element in the iterable where predicate is true, and -1\n * otherwise.\n *\n * @param predicate find calls predicate once for each element of the iterable, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n *\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\nexport function iterableFindIndex<T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, obj: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): number {\n let index = 0;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iterable) {\n if (boundPredicate(value, index, iterable)) {\n return index;\n }\n\n index++;\n }\n\n return -1;\n}\n","/**\n * Returns the value of the last element in the iterable where predicate is true, and undefined\n * otherwise.\n *\n * @param predicate findLast calls predicate once for each element of the iterable, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n *\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\nexport function iterableFindLast<T, S extends T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => value is S,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): S | undefined;\n\nexport function iterableFindLast<T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): T | undefined;\n\nexport function iterableFindLast<T, S extends T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): S | undefined {\n let index = 0;\n let last: S | undefined;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iterable) {\n if (boundPredicate(value, index++, iterable)) {\n last = value as S;\n }\n }\n\n return last;\n}\n","/**\n * Returns the index of the last element in the iterable where predicate is true, and -1\n * otherwise.\n *\n * @param predicate findLastIndex calls predicate once for each element of the iterable, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n *\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\nexport function iterableFindLastIndex<T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): number {\n let index = 0;\n let lastIndex: number = -1;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iterable) {\n if (boundPredicate(value, index, iterable)) {\n lastIndex = index;\n }\n\n index++;\n }\n\n return lastIndex;\n}\n","/**\n * Performs the specified action for each element in an iterable.\n *\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the iterable.\n *\n * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\nexport function iterableForEach<T>(\n iterable: Iterable<T>,\n callbackfn: (value: T, index: number, iterable: Iterable<T>) => void,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): void {\n let index = 0;\n\n if (typeof callbackfn !== 'function') {\n throw new TypeError(`${callbackfn} is not a function`);\n }\n\n const boundCallbackfn = callbackfn.bind(thisArg);\n\n for (const value of iterable) {\n boundCallbackfn(value, index++, iterable);\n }\n}\n","import toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Determines whether an iterable includes a certain element, returning true or false as appropriate.\n *\n * @param searchElement The element to search for.\n * @param fromIndex The position in this iterable at which to begin searching for searchElement.\n */\nexport function iterableIncludes<T>(iterable: Iterable<T>, searchElement: T, fromIndex: number = 0): boolean {\n let index = 0;\n\n fromIndex = toIntegerOrInfinity(fromIndex);\n\n if (fromIndex !== Infinity) {\n fromIndex = fromIndex === -Infinity ? 0 : fromIndex;\n\n if (fromIndex < 0) {\n // TODO: Support negative fromIndex.\n throw new TypeError('fromIndex cannot be a negative finite number');\n }\n\n for (const item of iterable) {\n if (index++ >= fromIndex && Object.is(item, searchElement)) {\n return true;\n }\n }\n }\n\n return false;\n}\n","import toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Returns the index of the first occurrence of a value in an iterable, or -1 if it is not present.\n *\n * @param searchElement The value to locate in the iterable.\n * @param fromIndex The iterable index at which to begin the search. If fromIndex is omitted, the search starts at index 0.\n */\nexport function iterableIndexOf<T>(iterable: Iterable<T>, searchElement: T, fromIndex: number = 0): number {\n let index = 0;\n\n fromIndex = toIntegerOrInfinity(fromIndex);\n\n if (fromIndex !== Infinity) {\n fromIndex = fromIndex === -Infinity ? 0 : fromIndex;\n\n if (fromIndex < 0) {\n // TODO: Support negative fromIndex.\n throw new TypeError('fromIndex cannot be a negative finite number');\n }\n\n for (const item of iterable) {\n if (index >= fromIndex && Object.is(item, searchElement)) {\n return index;\n }\n\n index++;\n }\n }\n\n return -1;\n}\n","/**\n * Adds all the elements of an iterable into a string, separated by the specified separator string.\n *\n * @param separator A string used to separate one element of the iterable from the next in the resulting string. If omitted, the iterable elements are separated with a comma.\n */\nexport function iterableJoin<T>(iterable: Iterable<T>, separator: string = ','): string {\n let index = 0;\n let result = '';\n\n for (const item of iterable) {\n if (index) {\n result += separator;\n }\n\n if (typeof item !== 'undefined' && item !== null) {\n result += item;\n }\n\n index++;\n }\n\n return result;\n}\n","/**\n * Returns an iterable of keys in the iterable\n */\nexport function* iterableKeys<T>(iterable: Iterable<T>): IterableIterator<number> {\n let index = 0;\n\n for (const _ of iterable) {\n yield index++;\n }\n}\n","/**\n * Calls a defined callback function on each element of an array, and returns an array that contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\nexport function* iterableMap<T, U>(\n iterable: Iterable<T>,\n callbackfn: (value: T, index: number, array: Iterable<T>) => U,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): IterableIterator<U> {\n let index = 0;\n\n if (typeof callbackfn !== 'function') {\n throw new TypeError(`${callbackfn} is not a function`);\n }\n\n for (const value of iterable) {\n yield callbackfn.call(thisArg, value, index++, iterable);\n }\n}\n","/**\n * Calls the specified callback function for all the elements in an iterable. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n *\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the iterable.\n *\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an iterable value.\n */\nexport function iterableReduce<T>(\n iterable: Iterable<T>,\n callbackfn: (previousValue: T, currentValue: T, currentIndex: number, iterable: Iterable<T>) => T\n): T;\n\nexport function iterableReduce<T>(\n iterable: Iterable<T>,\n callbackfn: (previousValue: T, currentValue: T, currentIndex: number, iterable: Iterable<T>) => T,\n initialValue: T\n): T;\n\n/**\n * Calls the specified callback function for all the elements in an iterable. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n *\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the iterable.\n *\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n */\n\nexport function iterableReduce<T, U>(\n iterable: Iterable<T>,\n callbackfn: (previousValue: U, currentValue: T, currentIndex: number, iterable: Iterable<T>) => U,\n initialValue: U\n): U;\n\nexport function iterableReduce<T, U = undefined>(\n iterable: Iterable<T>,\n callbackfn: (previousValue: U | undefined, currentValue: T, currentIndex: number, iterable: Iterable<T>) => U,\n initialValue?: U\n): U | undefined {\n let index = 0;\n let previousValue: U | undefined = initialValue;\n\n if (typeof callbackfn !== 'function') {\n throw new TypeError(`${callbackfn} is not a function`);\n }\n\n for (const currentValue of iterable) {\n previousValue = callbackfn(previousValue, currentValue, index++, iterable);\n }\n\n return previousValue;\n}\n","import toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Returns a copy of a section of an iterable.\n * For both start and end, a negative index can be used to indicate an offset from the end of the iterable.\n * For example, -2 refers to the second to last element of the iterable.\n *\n * @param start The beginning index of the specified portion of the iterable.\n * If start is undefined, then the slice begins at index 0.\n *\n * @param end The end index of the specified portion of the iterable. This is exclusive of the element at the index 'end'.\n * If end is undefined, then the slice extends to the end of the iterable.\n */\nexport function* iterableSlice<T>(iterable: Iterable<T>, start: number = 0, end: number = Infinity): Iterable<T> {\n let index = 0;\n\n start = toIntegerOrInfinity(start);\n start = start === -Infinity ? 0 : start;\n end = toIntegerOrInfinity(end);\n end = end === -Infinity ? 0 : end;\n\n if (start < 0) {\n throw new TypeError('start cannot be a negative finite number');\n }\n\n if (end < 0) {\n throw new TypeError('end cannot be a negative finite number');\n }\n\n if (start === Infinity) {\n return;\n }\n\n for (const item of iterable) {\n if (index >= start && index < end) {\n yield item;\n }\n\n index++;\n\n if (index > end) {\n break;\n }\n }\n}\n","/**\n * Determines whether the specified callback function returns true for any element of an iterable.\n *\n * @param predicate\n * A function that accepts up to three arguments. The some method calls the predicate function for each element in the iterable until the predicate returns a value which is coercible to the Boolean value true, or until the end of the iterable.\n *\n * @param thisArg\n * An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n */\nexport function iterableSome<T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg: any = undefined\n): boolean {\n let index = 0;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iterable) {\n if (boundPredicate(value, index++, iterable)) {\n return true;\n }\n }\n\n return false;\n}\n","import toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @param items Elements to insert into the copied array in place of the deleted elements.\n * @returns The copied array.\n */\nexport function iterableToSpliced<T>(\n iterable: Iterable<T>,\n start?: number | undefined,\n deleteCount?: number | undefined,\n ...items: T[]\n): Iterable<T>;\n\n/**\n * Copies an array and removes elements while returning the remaining elements.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @returns A copy of the original array with the remaining elements.\n */\nexport function iterableToSpliced<T>(\n iterable: Iterable<T>,\n start?: number | undefined,\n deleteCount?: number | undefined\n): Iterable<T>;\n\nexport function* iterableToSpliced<T>(\n iterable: Iterable<T>,\n start: number = 0,\n deleteCount: number = 0,\n ...items: T[]\n): Iterable<T> {\n let index = 0;\n\n start = toIntegerOrInfinity(start);\n start = start === -Infinity ? 0 : start;\n\n if (start < 0) {\n throw new TypeError('start cannot be a negative finite number');\n }\n\n let inserted = false;\n\n for (const item of iterable) {\n if (index + 1 > start && !inserted) {\n yield* items;\n inserted = true;\n }\n\n if (index < start || index >= start + deleteCount) {\n yield item;\n }\n\n index++;\n }\n\n if (!inserted) {\n yield* items;\n }\n}\n","import { iterableJoin } from './iterableJoin';\n\n/**\n * Returns a string representation of an iterable.\n */\nexport function iterableToString<T>(iterable: Iterable<T>): string {\n return iterableJoin(iterable);\n}\n","export function iteratorToIterable<T>(iterator: Iterator<T>): IterableIterator<T> {\n const iterableIterator: IterableIterator<T> = {\n [Symbol.iterator]: () => iterableIterator,\n next: iterator.next.bind(iterator),\n ...(iterator.return ? { return: iterator.return.bind(iterator) } : {}),\n ...(iterator.throw ? { throw: iterator.throw.bind(iterator) } : {})\n };\n\n return iterableIterator;\n}\n","import { Observable } from './Observable';\n\nexport function observableFromAsync<T>(iterable: AsyncIterable<T>): Observable<T> {\n return new Observable(subscriber => {\n let closed = false;\n\n (async function () {\n try {\n for await (const value of iterable) {\n if (closed) {\n break;\n }\n\n subscriber.next(value);\n }\n\n subscriber.complete();\n } catch (error) {\n subscriber.error(error);\n }\n })();\n\n return () => {\n closed = true;\n };\n });\n}\n","// @ts-expect-error \"core-js\" is not typed.\nimport coreJSPromiseWithResolvers from 'core-js-pure/full/promise/with-resolvers';\n\nexport default function withResolvers<T>(): PromiseWithResolvers<T> {\n return coreJSPromiseWithResolvers();\n}\n","import withResolvers from './private/withResolvers';\n\nimport { Observable } from './Observable';\n\nconst COMPLETE = Symbol('complete');\nconst NEXT = Symbol('next');\nconst THROW = Symbol('throw');\n\ntype Entry<T> = [typeof COMPLETE] | [typeof NEXT, T] | [typeof THROW, unknown];\n\nexport function observableValues<T>(observable: Observable<T>): AsyncIterableIterator<T> {\n const queue: Entry<T>[] = [];\n let deferred = withResolvers<Entry<T>>();\n\n const push = (entry: Entry<T>) => {\n queue.push(entry);\n deferred.resolve(entry);\n deferred = withResolvers();\n };\n\n const subscription = observable.subscribe({\n complete() {\n push([COMPLETE]);\n },\n error(err: unknown) {\n push([THROW, err]);\n },\n next(value: T) {\n push([NEXT, value]);\n }\n });\n\n const asyncIterableIterator: AsyncIterableIterator<T> = {\n [Symbol.asyncIterator]() {\n return this;\n },\n async next(): Promise<IteratorResult<T>> {\n let entry = queue.shift();\n\n if (!entry) {\n entry = await deferred.promise;\n queue.shift();\n }\n\n switch (entry[0]) {\n case COMPLETE:\n return { done: true, value: undefined };\n\n case THROW:\n throw entry[1];\n\n case NEXT:\n return { done: false, value: entry[1] };\n }\n },\n async return() {\n subscription.unsubscribe();\n\n return { done: true, value: undefined };\n },\n async throw() {\n subscription.unsubscribe();\n\n return { done: true, value: undefined };\n }\n };\n\n return asyncIterableIterator;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,IAAAA,qBAA6B;;;ACA7B,wBAAmC;AAEnC,IAAM,mBAAkC,kBAAAC;;;AD6CjC,IAAM,aAAN,cAA4B,mBAAAC,QAAiB;AAAA,EAClD,YAAY,YAAmC;AAC7C,UAAM,UAAU;AAAA,EAClB;AAAA,EAYA,UACE,kBACA,SACA,YACc;AACd,WAAO,MAAM,UAAU,kBAAkB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AAA,IACpB;AAAA,EACF,CAAC;AAED,QAAM,wBAAkD;AAAA,IACtD,CAAC,OAAO,aAAa,IAAI;AACvB,aAAO;AAAA,IACT;AAAA,IACA,MAAM,OAAmC;AACvC,UAAI,QAAQ,MAAM,MAAM;AAExB,UAAI,CAAC,OAAO;AACV,gBAAQ,MAAM,SAAS;AACvB,cAAM,MAAM;AAAA,MACd;AAEA,cAAQ,MAAM,CAAC,GAAG;AAAA,QAChB,KAAK;AACH,iBAAO,EAAE,MAAM,MAAM,OAAO,OAAU;AAAA,QAExC,KAAK;AACH,gBAAM,MAAM,CAAC;AAAA,QAEf,KAAK;AACH,iBAAO,EAAE,MAAM,OAAO,OAAO,MAAM,CAAC,EAAE;AAAA,MAC1C;AAAA,IACF;AAAA,IACA,MAAM,SAAS;AACb,mBAAa,YAAY;AAEzB,aAAO,EAAE,MAAM,MAAM,OAAO,OAAU;AAAA,IACxC;AAAA,IACA,MAAM,QAAQ;AACZ,mBAAa,YAAY;AAEzB,aAAO,EAAE,MAAM,MAAM,OAAO,OAAU;AAAA,IACxC;AAAA,EACF;AAEA,SAAO;AACT;","names":["import_observable","CoreJSSymbolObservable","CoreJSObservable","coreJSPromiseWithResolvers"]}
1
+ {"version":3,"sources":["../src/index.ts","../src/Observable.ts","../src/SymbolObservable.ts","../src/asyncGeneratorWithLastValue.ts","../src/asyncIteratorDrop.ts","../src/asyncIteratorEvery.ts","../src/asyncIteratorFilter.ts","../src/asyncIteratorFind.ts","../src/asyncIteratorFlatMap.ts","../src/asyncIteratorForEach.ts","../src/asyncIteratorMap.ts","../src/asyncIteratorReduce.ts","../src/asyncIteratorSome.ts","../src/asyncIteratorTake.ts","../src/asyncIteratorToArray.ts","../src/asyncIteratorToAsyncIterable.ts","../src/generatorWithLastValue.ts","../src/private/withResolvers.ts","../src/iterableWritableStream.ts","../src/iteratorToIterable.ts","../src/private/toIntegerOrInfinity.ts","../src/iteratorAt.ts","../src/iteratorConcat.ts","../src/iteratorDrop.ts","../src/iteratorEntries.ts","../src/iteratorEvery.ts","../src/iteratorFilter.ts","../src/iteratorFind.ts","../src/iteratorFindIndex.ts","../src/iteratorFindLast.ts","../src/iteratorFindLastIndex.ts","../src/iteratorFlatMap.ts","../src/iteratorForEach.ts","../src/iteratorFrom.ts","../src/iteratorIncludes.ts","../src/iteratorIndexOf.ts","../src/iteratorJoin.ts","../src/iteratorKeys.ts","../src/iteratorMap.ts","../src/iteratorReduce.ts","../src/iteratorSlice.ts","../src/iteratorSome.ts","../src/iteratorTake.ts","../src/iteratorToArray.ts","../src/iteratorToAsync.ts","../src/iteratorToSpliced.ts","../src/iteratorToString.ts","../src/observableFromAsync.ts","../src/observableSubscribeAsReadable.ts","../src/readableStreamFrom.ts","../src/readerValues.ts"],"sourcesContent":["export * from './Observable';\nexport * from './SymbolObservable';\nexport * from './asyncGeneratorWithLastValue';\nexport * from './asyncIteratorDrop';\nexport * from './asyncIteratorEvery';\nexport * from './asyncIteratorFilter';\nexport * from './asyncIteratorFind';\nexport * from './asyncIteratorFlatMap';\nexport * from './asyncIteratorForEach';\nexport * from './asyncIteratorMap';\nexport * from './asyncIteratorReduce';\nexport * from './asyncIteratorSome';\nexport * from './asyncIteratorTake';\nexport * from './asyncIteratorToArray';\nexport * from './asyncIteratorToAsyncIterable';\nexport * from './generatorWithLastValue';\nexport * from './iterableWritableStream';\nexport * from './iteratorAt';\nexport * from './iteratorConcat';\nexport * from './iteratorDrop';\nexport * from './iteratorEntries';\nexport * from './iteratorEvery';\nexport * from './iteratorFilter';\nexport * from './iteratorFind';\nexport * from './iteratorFindIndex';\nexport * from './iteratorFindLast';\nexport * from './iteratorFindLastIndex';\nexport * from './iteratorFlatMap';\nexport * from './iteratorForEach';\nexport * from './iteratorFrom';\nexport * from './iteratorIncludes';\nexport * from './iteratorIndexOf';\nexport * from './iteratorJoin';\nexport * from './iteratorKeys';\nexport * from './iteratorMap';\nexport * from './iteratorReduce';\nexport * from './iteratorSlice';\nexport * from './iteratorSome';\nexport * from './iteratorTake';\nexport * from './iteratorToArray';\nexport * from './iteratorToAsync';\nexport * from './iteratorToIterable';\nexport * from './iteratorToSpliced';\nexport * from './iteratorToString';\nexport * from './observableFromAsync';\nexport * from './observableSubscribeAsReadable';\nexport * from './readableStreamFrom';\nexport * from './readerValues';\n","// @ts-expect-error core-js is not typed.\nimport CoreJSObservable from 'core-js-pure/full/observable';\n\nimport { SymbolObservable } from './SymbolObservable';\n\nexport interface SubscriptionObserver<T> {\n /** Sends the next value in the sequence */\n next(value: T): void;\n\n /** Sends the sequence error */\n error(errorValue: unknown): void;\n\n /** Sends the completion notification */\n complete(): void;\n\n /** A boolean value indicating whether the subscription is closed */\n get closed(): boolean;\n}\n\nexport interface Subscription {\n /** Cancels the subscription */\n unsubscribe(): void;\n\n /** A boolean value indicating whether the subscription is closed */\n get closed(): boolean;\n}\n\nexport type SubscriberFunction<T> = (observer: SubscriptionObserver<T>) => (() => void) | Subscription | void;\n\nexport type CompleteFunction = () => void;\nexport type ErrorFunction = (errorValue: unknown) => void;\nexport type NextFunction<T> = (value: T) => void;\nexport type StartFunction = (subscription: Subscription) => void;\n\nexport interface Observer<T> {\n /** Receives a completion notification */\n complete?(): void;\n\n /** Receives the sequence error */\n error?(errorValue: unknown): void;\n\n /** Receives the next value in the sequence */\n next?(value: T): void;\n\n /** Receives the subscription object when `subscribe` is called */\n start?(subscription: Subscription): void;\n}\n\nexport class Observable<T> extends CoreJSObservable {\n constructor(subscriber: SubscriberFunction<T>) {\n super(subscriber);\n }\n\n /** Subscribes to the sequence with an observer */\n subscribe(observer: Observer<T>): Subscription;\n\n /** Subscribes to the sequence with callbacks */\n subscribe(\n onNext: NextFunction<T>,\n onError?: ErrorFunction | undefined,\n onComplete?: CompleteFunction | undefined\n ): Subscription;\n\n subscribe(\n observerOrOnNext: Observer<T> | NextFunction<T>,\n onError?: ErrorFunction | undefined,\n onComplete?: CompleteFunction | undefined\n ): Subscription {\n return super.subscribe(observerOrOnNext, onError, onComplete);\n }\n\n /** Returns itself */\n [SymbolObservable](): Observable<T> {\n return this;\n }\n\n /** Converts items to an Observable */\n static of<T>(...items: T[]): Observable<T> {\n return CoreJSObservable.of(...items);\n }\n\n /** Converts an iterable to an Observable */\n static from<T>(iterable: Iterable<T>): Observable<T>;\n\n /** Converts an observable to an Observable */\n static from<T>(observable: Observable<T>): Observable<T>;\n\n static from<T>(iterableOrObservable: Iterable<T> | Observable<T>): Observable<T> {\n return CoreJSObservable.from(iterableOrObservable);\n }\n}\n","// @ts-expect-error core-js is not typed.\nimport CoreJSSymbolObservable from 'core-js-pure/features/symbol/observable';\n\nconst SymbolObservable: unique symbol = CoreJSSymbolObservable;\n\nexport { SymbolObservable };\n","const STILL_ITERATING = Symbol();\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type AsyncGeneratorWithLastValue<T = unknown, TReturn = any, TNext = unknown> = AsyncGenerator<\n T,\n TReturn,\n TNext\n> & {\n lastValue(): TReturn;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function asyncGeneratorWithLastValue<T = unknown, TReturn = any, TNext = unknown>(\n generator: AsyncGenerator<T, TReturn, TNext>\n): AsyncGeneratorWithLastValue<T, TReturn, TNext> {\n let lastValue: typeof STILL_ITERATING | TReturn = STILL_ITERATING;\n\n const asyncGeneratorWithLastValue = {\n [Symbol.asyncIterator]() {\n return asyncGeneratorWithLastValue;\n },\n lastValue(): TReturn {\n if (lastValue === STILL_ITERATING) {\n throw new Error('Iteration has not complete yet, cannot get last value.');\n }\n\n return lastValue;\n },\n async next(next: TNext) {\n const result = await generator.next(next);\n\n if (result.done) {\n lastValue = result.value;\n }\n\n return result;\n },\n return(value: TReturn) {\n return generator.return(value);\n },\n throw(error: unknown) {\n return generator.throw(error);\n }\n };\n\n return asyncGeneratorWithLastValue;\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport drop from 'core-js-pure/full/async-iterator/drop';\n\n/**\n * `drop` takes an integer as an argument. It skips the given number of elements produced by the underlying iterator before itself producing any remaining elements.\n *\n * @param limit\n *\n * @return Returns an iterator of items after the limit.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorDrop<T>(asyncIterator: AsyncIterator<T>, limit: number): AsyncIterator<T> {\n return drop(asyncIterator, limit);\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport every from 'core-js-pure/full/async-iterator/every';\n\n/**\n * Determines whether all the members of an iterator satisfy the specified test.\n *\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the iterator until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorEvery<T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<boolean>\n): Promise<boolean>;\n\n/**\n * Determines whether all the members of an iterator satisfy the specified test.\n *\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the iterator until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the iterator.\n *\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorEvery<T>(\n iterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<unknown>\n): Promise<boolean>;\n\nexport function asyncIteratorEvery<T>(\n iterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<unknown>\n): Promise<boolean> {\n return every(iterator, predicate);\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport filter from 'core-js-pure/full/async-iterator/filter';\n\n/**\n * Returns the elements of an iterator that meet the condition specified in a callback function.\n *\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorFilter<T, S extends T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => value is S\n): AsyncIterableIterator<S>;\n\n/**\n * Returns the elements of an iterator that meet the condition specified in a callback function.\n *\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorFilter<T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => unknown\n): AsyncIterableIterator<T>;\n\nexport function asyncIteratorFilter<T, S extends T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => unknown\n): AsyncIterableIterator<S> {\n return filter(asyncIterator, predicate);\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport find from 'core-js-pure/full/async-iterator/find';\n\n/**\n * Returns the value of the first element in the iterator where predicate is true, and undefined\n * otherwise.\n *\n * @param predicate find calls predicate once for each element of the iterator, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorFind<T, S extends T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<boolean>\n): Promise<S | undefined>;\n\nexport function asyncIteratorFind<T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<unknown>\n): Promise<T | undefined>;\n\nexport function asyncIteratorFind<T, S extends T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<unknown>\n): Promise<S | undefined> {\n return find(asyncIterator, predicate);\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport flatMap from 'core-js-pure/full/async-iterator/flat-map';\n\n/**\n * `.flatMap` takes a mapping function as an argument. It returns an iterator that produces all elements of the iterators produced by applying the mapping function to the elements produced by the underlying iterator.\n *\n * @param mapperFn\n *\n * @return Returns an iterator of flat values.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorFlatMap<T, U>(\n asyncIterator: AsyncIterator<T>,\n mapperFn: (value: T, index: number) => Promise<U>\n): AsyncIterator<T> {\n return flatMap(asyncIterator, mapperFn);\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport forEach from 'core-js-pure/full/async-iterator/for-each';\n\n/**\n * Performs the specified action for each element in an iterator.\n *\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorForEach<T>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (value: T, index: number) => Promise<void>\n): Promise<void> {\n return forEach(asyncIterator, callbackfn);\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport map from 'core-js-pure/full/async-iterator/map';\n\n/**\n * Calls a defined callback function on each element of an array, and returns an array that contains the results.\n *\n * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorMap<T, U>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (value: T, index: number) => U\n): AsyncIterableIterator<U> {\n return map(asyncIterator, callbackfn);\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport reduce from 'core-js-pure/full/async-iterator/reduce';\n\n/**\n * Calls the specified callback function for all the elements in an iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n *\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the iterator.\n *\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an iterator value.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorReduce<T>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => Promise<T>\n): Promise<T>;\n\nexport function asyncIteratorReduce<T>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => Promise<T>,\n initialValue: T\n): T;\n\n/**\n * Calls the specified callback function for all the elements in an iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n *\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the iterator.\n *\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorReduce<T, U>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (previousValue: U, currentValue: T, currentIndex: number) => Promise<U>,\n initialValue: U\n): U;\n\nexport function asyncIteratorReduce<T, U = undefined>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (previousValue: U | undefined, currentValue: T, currentIndex: number) => Promise<U>,\n initialValue?: U\n): Promise<U | undefined> {\n return reduce(asyncIterator, callbackfn, initialValue);\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport some from 'core-js-pure/full/async-iterator/some';\n\n/**\n * Determines whether the specified callback function returns true for any element of an iterable.\n *\n * @param predicate A function that accepts up to three arguments. The some method calls the predicate function for each element in the iterable until the predicate returns a value which is coercible to the Boolean value true, or until the end of the iterable.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorSome<T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<unknown>\n): Promise<boolean> {\n return some(asyncIterator, predicate);\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport take from 'core-js-pure/full/async-iterator/take';\n\n/**\n * `take` takes an integer as an argument. It returns an iterator that produces, at most, the given number of elements produced by the underlying iterator.\n *\n * @param limit\n *\n * @return Returns an iterator with items from the original iterator from 0 until the limit.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorTake<T>(asyncIterator: AsyncIterator<T>, limit: number): AsyncIterator<T> {\n return take(asyncIterator, limit);\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport toArray from 'core-js-pure/full/async-iterator/to-array';\n\ntype AsyncIteratorLike<T> = Pick<AsyncIterator<T>, 'next'>;\n\n/**\n * When you have a non-infinite iterator which you wish to transform into an array, you can do so with the builtin toArray method.\n *\n * @param limit\n *\n * @return Returns an Array containing the values from the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorToArray<T>(asyncIteratorLike: AsyncIteratorLike<T>): Promise<T[]> {\n return toArray(asyncIteratorLike);\n}\n","export function asyncIteratorToAsyncIterable<T>(asyncIterator: AsyncIterator<T>): AsyncIterableIterator<T> {\n const asyncIterableIterator: AsyncIterableIterator<T> = {\n [Symbol.asyncIterator]: () => asyncIterableIterator,\n next: asyncIterator.next.bind(asyncIterator),\n ...(asyncIterator.return ? { return: asyncIterator.return.bind(asyncIterator) } : {}),\n ...(asyncIterator.throw ? { throw: asyncIterator.throw.bind(asyncIterator) } : {})\n };\n\n return asyncIterableIterator;\n}\n","const STILL_ITERATING = Symbol();\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type GeneratorWithLastValue<T = unknown, TReturn = any, TNext = unknown> = Generator<T, TReturn, TNext> & {\n lastValue(): TReturn;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function generatorWithLastValue<T = unknown, TReturn = any, TNext = unknown>(\n generator: Generator<T, TReturn, TNext>\n): GeneratorWithLastValue<T, TReturn, TNext> {\n let lastValue: typeof STILL_ITERATING | TReturn = STILL_ITERATING;\n\n const generatorWithLastValue = {\n [Symbol.iterator]() {\n return generatorWithLastValue;\n },\n lastValue(): TReturn {\n if (lastValue === STILL_ITERATING) {\n throw new Error('Iteration has not complete yet, cannot get last value.');\n }\n\n return lastValue;\n },\n next(next: TNext) {\n const result = generator.next(next);\n\n if (result.done) {\n lastValue = result.value;\n }\n\n return result;\n },\n return(value: TReturn) {\n return generator.return(value);\n },\n throw(error: unknown) {\n return generator.throw(error);\n }\n };\n\n return generatorWithLastValue;\n}\n","// @ts-expect-error \"core-js\" is not typed.\nimport coreJSPromiseWithResolvers from 'core-js-pure/full/promise/with-resolvers';\n\nexport default function withResolvers<T>(): PromiseWithResolvers<T> {\n return coreJSPromiseWithResolvers();\n}\n","import withResolvers from './private/withResolvers';\n\nconst CLOSE = Symbol();\n\nexport class IterableWritableStream<T> extends WritableStream<T> {\n constructor() {\n super({\n close: () => {\n this.#buffer.push(CLOSE);\n this.#writeResolvers.resolve();\n },\n write: (chunk: T) => {\n this.#buffer.push(chunk);\n this.#writeResolvers.resolve();\n this.#writeResolvers = withResolvers();\n }\n });\n }\n\n #buffer: (T | typeof CLOSE)[] = [];\n #writeResolvers: PromiseWithResolvers<void> = withResolvers();\n\n [Symbol.asyncIterator](): AsyncIterator<T> {\n return {\n next: async () => {\n while (!this.#buffer.length) {\n await this.#writeResolvers.promise;\n }\n\n const value = this.#buffer[0] as T | typeof CLOSE;\n\n if (value === CLOSE) {\n return { done: true, value: undefined };\n }\n\n // If it is not CLOSE, remove it from the queue.\n this.#buffer.shift();\n\n // Idle here so concurrent iteration has a chance to pick up the next value in a round robin fashion.\n await undefined;\n\n return { done: false, value };\n }\n };\n }\n}\n","export function iteratorToIterable<T>(iterator: Iterator<T>): IterableIterator<T> {\n const iterableIterator: IterableIterator<T> = {\n [Symbol.iterator]: () => iterableIterator,\n next: iterator.next.bind(iterator),\n ...(iterator.return ? { return: iterator.return.bind(iterator) } : {}),\n ...(iterator.throw ? { throw: iterator.throw.bind(iterator) } : {})\n };\n\n return iterableIterator;\n}\n","export default function toIntegerOrInfinity(value: number): number {\n if (value === Infinity || value === -Infinity) {\n return value;\n }\n\n return ~~value;\n}\n","import { iteratorToIterable } from './iteratorToIterable';\nimport toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Returns the item located at the specified index.\n *\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\nexport function iteratorAt<T>(iterator: Iterator<T>, index: number): T | undefined {\n let currentIndex = 0;\n\n index = toIntegerOrInfinity(index);\n\n if (!isFinite(index)) {\n return;\n }\n\n if (index < 0) {\n throw new TypeError('index cannot be a negative finite number');\n }\n\n for (const value of iteratorToIterable(iterator)) {\n if (currentIndex++ === index) {\n return value;\n }\n }\n\n return undefined;\n}\n","import { iteratorToIterable } from './iteratorToIterable';\n\nfunction isIterator<T>(value: unknown): value is Iterator<T> {\n return !!value && typeof value === 'object' && Symbol.iterator in value;\n}\n\n/**\n * Combines two or more iterators.\n * This method returns a new iterator without modifying any existing iterators.\n *\n * @param items Additional iterators and/or items to add to the end of the iterator.\n */\nexport function iteratorConcat<T>(iterator: Iterator<T>, ...items: Iterator<T>[]): IterableIterator<T>;\n\n/**\n * Combines two or more iterators.\n * This method returns a new iterator without modifying any existing iterators.\n *\n * @param items Additional iterators and/or items to add to the end of the iterator.\n */\nexport function iteratorConcat<T>(iterator: Iterator<T>, ...items: (T | Iterator<T>)[]): IterableIterator<T>;\n\nexport function* iteratorConcat<T>(iterator: Iterator<T>, ...items: (T | Iterator<T>)[]): IterableIterator<T> {\n yield* iteratorToIterable(iterator);\n\n for (const item of items) {\n if (isIterator(item)) {\n yield* iteratorToIterable(item);\n } else {\n yield item;\n }\n }\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport drop from 'core-js-pure/full/iterator/drop';\n\n/**\n * `drop` takes an integer as an argument. It skips the given number of elements produced by the underlying iterator before itself producing any remaining elements.\n *\n * @param limit\n *\n * @return Returns an iterator of items after the limit.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorDrop<T>(iterator: Iterator<T>, limit: number): Iterator<T> {\n return drop(iterator, limit);\n}\n","import { iteratorToIterable } from './iteratorToIterable';\n\n/**\n * Returns an iterator of key, value pairs for every entry in the iterator\n */\nexport function* iteratorEntries<T>(iterator: Iterator<T>): IterableIterator<[number, T]> {\n let index = 0;\n\n for (const value of iteratorToIterable(iterator)) {\n yield [index++, value];\n }\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport every from 'core-js-pure/full/iterator/every';\n\n/**\n * Determines whether all the members of an iterator satisfy the specified test.\n *\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the iterator until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorEvery<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => value is S\n): iterator is Iterator<S>;\n\n/**\n * Determines whether all the members of an iterator satisfy the specified test.\n *\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the iterator until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the iterator.\n *\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorEvery<T>(iterator: Iterator<T>, predicate: (value: T, index: number) => unknown): boolean;\n\nexport function iteratorEvery<T>(iterator: Iterator<T>, predicate: (value: T, index: number) => unknown): boolean {\n return every(iterator, predicate);\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport filter from 'core-js-pure/full/iterator/filter';\n\n/**\n * Returns the elements of an iterator that meet the condition specified in a callback function.\n *\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorFilter<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => value is S\n): IterableIterator<S>;\n\n/**\n * Returns the elements of an iterator that meet the condition specified in a callback function.\n *\n * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorFilter<T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => unknown\n): IterableIterator<T>;\n\nexport function iteratorFilter<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => unknown\n): IterableIterator<S> {\n return filter(iterator, predicate);\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport find from 'core-js-pure/full/iterator/find';\n\n/**\n * Returns the value of the first element in the iterator where predicate is true, and undefined\n * otherwise.\n *\n * @param predicate find calls predicate once for each element of the iterator, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorFind<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => value is S\n): S | undefined;\n\nexport function iteratorFind<T>(iterator: Iterator<T>, predicate: (value: T, index: number) => unknown): T | undefined;\n\nexport function iteratorFind<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => unknown\n): S | undefined {\n return find(iterator, predicate);\n}\n","import { iteratorToIterable } from './iteratorToIterable';\n\n/**\n * Returns the index of the first element in the iterator where predicate is true, and -1\n * otherwise.\n *\n * @param predicate find calls predicate once for each element of the iterator, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n *\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\nexport function iteratorFindIndex<T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number, obj: Iterator<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): number {\n let index = 0;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iteratorToIterable(iterator)) {\n if (boundPredicate(value, index, iterator)) {\n return index;\n }\n\n index++;\n }\n\n return -1;\n}\n","import { iteratorToIterable } from './iteratorToIterable';\n\n/**\n * Returns the value of the last element in the iterator where predicate is true, and undefined\n * otherwise.\n *\n * @param predicate findLast calls predicate once for each element of the iterator, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n *\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\nexport function iteratorFindLast<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number, iterator: Iterator<T>) => value is S,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): S | undefined;\n\nexport function iteratorFindLast<T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number, iterator: Iterator<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): T | undefined;\n\nexport function iteratorFindLast<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number, iterator: Iterator<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): S | undefined {\n let index = 0;\n let last: S | undefined;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iteratorToIterable(iterator)) {\n if (boundPredicate(value, index++, iterator)) {\n last = value as S;\n }\n }\n\n return last;\n}\n","import { iteratorToIterable } from './iteratorToIterable';\n\n/**\n * Returns the index of the last element in the iterator where predicate is true, and -1\n * otherwise.\n *\n * @param predicate findLastIndex calls predicate once for each element of the iterator, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n *\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\nexport function iteratorFindLastIndex<T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number, iterator: Iterator<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): number {\n let index = 0;\n let lastIndex: number = -1;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iteratorToIterable(iterator)) {\n if (boundPredicate(value, index, iterator)) {\n lastIndex = index;\n }\n\n index++;\n }\n\n return lastIndex;\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport flatMap from 'core-js-pure/full/iterator/flat-map';\n\n/**\n * `.flatMap` takes a mapping function as an argument. It returns an iterator that produces all elements of the iterators produced by applying the mapping function to the elements produced by the underlying iterator.\n *\n * @param mapperFn\n *\n * @return Returns an iterator of flat values.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorFlatMap<T, U>(iterator: Iterator<T>, mapperFn: (value: T, index: number) => U): Iterator<T> {\n return flatMap(iterator, mapperFn);\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport forEach from 'core-js-pure/full/iterator/for-each';\n\n/**\n * Performs the specified action for each element in an iterator.\n *\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorForEach<T>(iterator: Iterator<T>, callbackfn: (value: T, index: number) => void): void {\n forEach(iterator, callbackfn);\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport from from 'core-js-pure/full/iterator/from';\n\n/**\n * `.from` is a static method (unlike the others listed above) which takes an object as an argument. This method allows wrapping \"iterator-like\" objects with an iterator.\n *\n * @param limit\n *\n * @return Returns the object if it is already an iterator, returns a wrapping iterator if the passed object implements a callable @@iterator property.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorFrom<T>(iteratorLike: Iterator<T>): Iterator<T> {\n return from(iteratorLike);\n}\n","import { iteratorToIterable } from './iteratorToIterable';\nimport toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Determines whether an iterator includes a certain element, returning true or false as appropriate.\n *\n * @param searchElement The element to search for.\n * @param fromIndex The position in this iterator at which to begin searching for searchElement.\n */\nexport function iteratorIncludes<T>(iterator: Iterator<T>, searchElement: T, fromIndex: number = 0): boolean {\n let index = 0;\n\n fromIndex = toIntegerOrInfinity(fromIndex);\n\n if (fromIndex !== Infinity) {\n fromIndex = fromIndex === -Infinity ? 0 : fromIndex;\n\n if (fromIndex < 0) {\n // TODO: Support negative fromIndex.\n throw new TypeError('fromIndex cannot be a negative finite number');\n }\n\n for (const item of iteratorToIterable(iterator)) {\n if (index++ >= fromIndex && Object.is(item, searchElement)) {\n return true;\n }\n }\n }\n\n return false;\n}\n","import { iteratorToIterable } from './iteratorToIterable';\nimport toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Returns the index of the first occurrence of a value in an iterator, or -1 if it is not present.\n *\n * @param searchElement The value to locate in the iterator.\n * @param fromIndex The iterator index at which to begin the search. If fromIndex is omitted, the search starts at index 0.\n */\nexport function iteratorIndexOf<T>(iterator: Iterator<T>, searchElement: T, fromIndex: number = 0): number {\n let index = 0;\n\n fromIndex = toIntegerOrInfinity(fromIndex);\n\n if (fromIndex !== Infinity) {\n fromIndex = fromIndex === -Infinity ? 0 : fromIndex;\n\n if (fromIndex < 0) {\n // TODO: Support negative fromIndex.\n throw new TypeError('fromIndex cannot be a negative finite number');\n }\n\n for (const item of iteratorToIterable(iterator)) {\n if (index >= fromIndex && Object.is(item, searchElement)) {\n return index;\n }\n\n index++;\n }\n }\n\n return -1;\n}\n","import { iteratorToIterable } from './iteratorToIterable';\n\n/**\n * Adds all the elements of an iterator into a string, separated by the specified separator string.\n *\n * @param separator A string used to separate one element of the iterator from the next in the resulting string. If omitted, the iterator elements are separated with a comma.\n */\nexport function iteratorJoin<T>(iterator: Iterator<T>, separator: string = ','): string {\n let index = 0;\n let result = '';\n\n for (const item of iteratorToIterable(iterator)) {\n if (index) {\n result += separator;\n }\n\n if (typeof item !== 'undefined' && item !== null) {\n result += item;\n }\n\n index++;\n }\n\n return result;\n}\n","import { iteratorToIterable } from './iteratorToIterable';\n\n/**\n * Returns an iterator of keys in the iterator\n */\nexport function* iteratorKeys<T>(iterator: Iterator<T>): IterableIterator<number> {\n let index = 0;\n\n for (const _ of iteratorToIterable(iterator)) {\n yield index++;\n }\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport map from 'core-js-pure/full/iterator/map';\n\n/**\n * Calls a defined callback function on each element of an array, and returns an array that contains the results.\n *\n * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorMap<T, U>(\n iterator: Iterator<T>,\n callbackfn: (value: T, index: number) => U\n): IterableIterator<U> {\n return map(iterator, callbackfn);\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport reduce from 'core-js-pure/full/iterator/reduce';\n\n/**\n * Calls the specified callback function for all the elements in an iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n *\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the iterator.\n *\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an iterator value.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorReduce<T>(\n iterator: Iterator<T>,\n callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T\n): T;\n\nexport function iteratorReduce<T>(\n iterator: Iterator<T>,\n callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T,\n initialValue: T\n): T;\n\n/**\n * Calls the specified callback function for all the elements in an iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n *\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the iterator.\n *\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorReduce<T, U>(\n iterator: Iterator<T>,\n callbackfn: (previousValue: U, currentValue: T, currentIndex: number) => U,\n initialValue: U\n): U;\n\nexport function iteratorReduce<T, U = undefined>(\n iterator: Iterator<T>,\n callbackfn: (previousValue: U | undefined, currentValue: T, currentIndex: number) => U,\n initialValue?: U\n): U | undefined {\n return reduce(iterator, callbackfn, initialValue);\n}\n","import { iteratorToIterable } from './iteratorToIterable';\nimport toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Returns a copy of a section of an iterator.\n * For both start and end, a negative index can be used to indicate an offset from the end of the iterator.\n * For example, -2 refers to the second to last element of the iterator.\n *\n * @param start The beginning index of the specified portion of the iterator.\n * If start is undefined, then the slice begins at index 0.\n *\n * @param end The end index of the specified portion of the iterator. This is exclusive of the element at the index 'end'.\n * If end is undefined, then the slice extends to the end of the iterator.\n */\nexport function* iteratorSlice<T>(\n iterator: Iterator<T>,\n start: number = 0,\n end: number = Infinity\n): IterableIterator<T> {\n let index = 0;\n\n start = toIntegerOrInfinity(start);\n start = start === -Infinity ? 0 : start;\n end = toIntegerOrInfinity(end);\n end = end === -Infinity ? 0 : end;\n\n if (start < 0) {\n throw new TypeError('start cannot be a negative finite number');\n }\n\n if (end < 0) {\n throw new TypeError('end cannot be a negative finite number');\n }\n\n if (start === Infinity) {\n return;\n }\n\n for (const item of iteratorToIterable(iterator)) {\n if (index >= start && index < end) {\n yield item;\n }\n\n index++;\n\n if (index > end) {\n break;\n }\n }\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport some from 'core-js-pure/full/iterator/some';\n\n/**\n * Determines whether the specified callback function returns true for any element of an iterable.\n *\n * @param predicate A function that accepts up to three arguments. The some method calls the predicate function for each element in the iterable until the predicate returns a value which is coercible to the Boolean value true, or until the end of the iterable.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorSome<T>(iterator: Iterator<T>, predicate: (value: T, index: number) => unknown): boolean {\n return some(iterator, predicate);\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport take from 'core-js-pure/full/iterator/take';\n\n/**\n * `take` takes an integer as an argument. It returns an iterator that produces, at most, the given number of elements produced by the underlying iterator.\n *\n * @param limit\n *\n * @return Returns an iterator with items from the original iterator from 0 until the limit.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorTake<T>(iterator: Iterator<T>, limit: number): Iterator<T> {\n return take(iterator, limit);\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport toArray from 'core-js-pure/full/iterator/to-array';\n\ntype IteratorLike<T> = Pick<Iterator<T>, 'next'>;\n\n/**\n * When you have a non-infinite iterator which you wish to transform into an array, you can do so with the builtin toArray method.\n *\n * @param limit\n *\n * @return Returns an Array containing the values from the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorToArray<T>(iteratorLike: IteratorLike<T>): T[] {\n return toArray(iteratorLike);\n}\n","// @ts-expect-error core-js-pure is not typed.\nimport toAsync from 'core-js-pure/full/iterator/to-async';\n\n/**\n * Converts an iterator into async iterator.\n *\n * @return Returns an async iterator.\n *\n * @link https://github.com/tc39/proposal-async-iterator-helpers/blob/main/README.md\n */\nexport function iteratorToAsync<T>(iterator: Iterator<T>): AsyncIterator<T> {\n return toAsync(iterator);\n}\n","import { iteratorToIterable } from './iteratorToIterable';\nimport toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @param items Elements to insert into the copied array in place of the deleted elements.\n * @returns The copied array.\n */\nexport function iteratorToSpliced<T>(\n iterator: Iterator<T>,\n start?: number | undefined,\n deleteCount?: number | undefined,\n ...items: T[]\n): IterableIterator<T>;\n\n/**\n * Copies an array and removes elements while returning the remaining elements.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @returns A copy of the original array with the remaining elements.\n */\nexport function iteratorToSpliced<T>(\n iterator: Iterator<T>,\n start?: number | undefined,\n deleteCount?: number | undefined\n): IterableIterator<T>;\n\nexport function* iteratorToSpliced<T>(\n iterator: Iterator<T>,\n start: number = 0,\n deleteCount: number = 0,\n ...items: T[]\n): IterableIterator<T> {\n let index = 0;\n\n start = toIntegerOrInfinity(start);\n start = start === -Infinity ? 0 : start;\n\n if (start < 0) {\n throw new TypeError('start cannot be a negative finite number');\n }\n\n let inserted = false;\n\n for (const item of iteratorToIterable(iterator)) {\n if (index + 1 > start && !inserted) {\n yield* items;\n inserted = true;\n }\n\n if (index < start || index >= start + deleteCount) {\n yield item;\n }\n\n index++;\n }\n\n if (!inserted) {\n yield* items;\n }\n}\n","import { iteratorJoin } from './iteratorJoin';\n\n/**\n * Returns a string representation of an iterator.\n */\nexport function iteratorToString<T>(iterator: Iterator<T>): string {\n return iteratorJoin(iterator);\n}\n","import { Observable } from './Observable';\n\nexport function observableFromAsync<T>(iterable: AsyncIterable<T>): Observable<T> {\n return new Observable(subscriber => {\n let closed = false;\n\n (async function () {\n try {\n for await (const value of iterable) {\n if (closed) {\n break;\n }\n\n subscriber.next(value);\n }\n\n subscriber.complete();\n } catch (error) {\n subscriber.error(error);\n }\n })();\n\n return () => {\n closed = true;\n };\n });\n}\n","import type { Observable, Subscription } from './Observable';\n\nexport function observableSubscribeAsReadable<T>(observable: Observable<T>): ReadableStream<T> {\n let subscription: Subscription;\n\n return new ReadableStream<T>({\n cancel() {\n subscription.unsubscribe();\n },\n start(controller) {\n subscription = observable.subscribe({\n complete() {\n controller.close();\n },\n error(err: unknown) {\n controller.error(err);\n },\n next(value) {\n controller.enqueue(value);\n }\n });\n }\n });\n}\n","function isIterable(iterable: unknown): iterable is Iterable<unknown> {\n return !!(iterable && typeof iterable === 'object' && Symbol.iterator in iterable);\n}\n\nexport function readableStreamFrom<T>(anyIterable: AsyncIterable<T> | Iterable<T>): ReadableStream<T> {\n const iterator = isIterable(anyIterable) ? anyIterable[Symbol.iterator]() : anyIterable[Symbol.asyncIterator]();\n\n return new ReadableStream({\n async pull(controller) {\n const result = await iterator.next();\n\n if (result.done) {\n controller.close();\n } else {\n controller.enqueue(result.value);\n }\n }\n });\n}\n","export function readerValues<T>(reader: ReadableStreamDefaultReader<T>): AsyncIterableIterator<T> {\n const iterable: AsyncIterableIterator<T> = {\n [Symbol.asyncIterator]() {\n return iterable;\n },\n async next(): Promise<IteratorResult<T>> {\n const result = await Promise.race([reader.read(), reader.closed]);\n\n if (!result || result.done) {\n return { done: true, value: undefined };\n }\n\n return { value: result.value };\n },\n async return() {\n // Throw inside for-loop is return().\n reader.cancel();\n\n return { done: true, value: undefined };\n }\n };\n\n return iterable;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,IAAAA,qBAA6B;;;ACA7B,wBAAmC;AAEnC,IAAM,mBAAkC,kBAAAC;;;AD6CjC,IAAM,aAAN,cAA4B,mBAAAC,QAAiB;AAAA,EAClD,YAAY,YAAmC;AAC7C,UAAM,UAAU;AAAA,EAClB;AAAA,EAYA,UACE,kBACA,SACA,YACc;AACd,WAAO,MAAM,UAAU,kBAAkB,SAAS,UAAU;AAAA,EAC9D;AAAA;AAAA,EAGA,CAAC,gBAAgB,IAAmB;AAClC,WAAO;AAAA,EACT;AAAA;AAAA,EAGA,OAAO,MAAS,OAA2B;AACzC,WAAO,mBAAAA,QAAiB,GAAG,GAAG,KAAK;AAAA,EACrC;AAAA,EAQA,OAAO,KAAQ,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AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF,CAAC;AACH;;;ACvBA,SAAS,WAAW,UAAkD;AACpE,SAAO,CAAC,EAAE,YAAY,OAAO,aAAa,YAAY,OAAO,YAAY;AAC3E;AAEO,SAAS,mBAAsB,aAAgE;AACpG,QAAM,WAAW,WAAW,WAAW,IAAI,YAAY,OAAO,QAAQ,EAAE,IAAI,YAAY,OAAO,aAAa,EAAE;AAE9G,SAAO,IAAI,eAAe;AAAA,IACxB,MAAM,KAAK,YAAY;AACrB,YAAM,SAAS,MAAM,SAAS,KAAK;AAEnC,UAAI,OAAO,MAAM;AACf,mBAAW,MAAM;AAAA,MACnB,OAAO;AACL,mBAAW,QAAQ,OAAO,KAAK;AAAA,MACjC;AAAA,IACF;AAAA,EACF,CAAC;AACH;;;AClBO,SAAS,aAAgB,QAAkE;AAChG,QAAM,WAAqC;AAAA,IACzC,CAAC,OAAO,aAAa,IAAI;AACvB,aAAO;AAAA,IACT;AAAA,IACA,MAAM,OAAmC;AACvC,YAAM,SAAS,MAAM,QAAQ,KAAK,CAAC,OAAO,KAAK,GAAG,OAAO,MAAM,CAAC;AAEhE,UAAI,CAAC,UAAU,OAAO,MAAM;AAC1B,eAAO,EAAE,MAAM,MAAM,OAAO,OAAU;AAAA,MACxC;AAEA,aAAO,EAAE,OAAO,OAAO,MAAM;AAAA,IAC/B;AAAA,IACA,MAAM,SAAS;AAEb,aAAO,OAAO;AAEd,aAAO,EAAE,MAAM,MAAM,OAAO,OAAU;AAAA,IACxC;AAAA,EACF;AAEA,SAAO;AACT;","names":["import_observable","CoreJSSymbolObservable","CoreJSObservable","asyncGeneratorWithLastValue","drop","every","filter","find","flatMap","forEach","map","reduce","some","take","toArray","STILL_ITERATING","generatorWithLastValue","coreJSPromiseWithResolvers","import_drop","drop","import_every","every","import_filter","filter","import_find","find","import_flat_map","flatMap","import_for_each","forEach","from","import_map","map","import_reduce","reduce","import_some","some","import_take","take","import_to_array","toArray","toAsync"]}
@@ -1,24 +1,9 @@
1
1
  import {
2
- observableValues
3
- } from "./chunk-QDUX45ZP.mjs";
2
+ iteratorToSpliced
3
+ } from "./chunk-IZXDQ25M.mjs";
4
4
  import {
5
- iterableReduce
6
- } from "./chunk-XW34KZRY.mjs";
7
- import {
8
- iterableSlice
9
- } from "./chunk-KONB7TV6.mjs";
10
- import {
11
- iterableSome
12
- } from "./chunk-6C3P4TNK.mjs";
13
- import {
14
- iterableToSpliced
15
- } from "./chunk-WKIRSZXX.mjs";
16
- import {
17
- iterableToString
18
- } from "./chunk-Y5M2C7NQ.mjs";
19
- import {
20
- iteratorToIterable
21
- } from "./chunk-MNDAEMYM.mjs";
5
+ iteratorToString
6
+ } from "./chunk-MYSNSDM7.mjs";
22
7
  import {
23
8
  observableFromAsync
24
9
  } from "./chunk-FEOLYD5R.mjs";
@@ -29,76 +14,183 @@ import {
29
14
  SymbolObservable
30
15
  } from "./chunk-OJMT4K3R.mjs";
31
16
  import {
32
- iterableFindLast
33
- } from "./chunk-V6OWQQ3Q.mjs";
17
+ observableSubscribeAsReadable
18
+ } from "./chunk-EIIP7YWB.mjs";
19
+ import {
20
+ readableStreamFrom
21
+ } from "./chunk-YJSIVBF7.mjs";
22
+ import {
23
+ readerValues
24
+ } from "./chunk-EUVK4YM7.mjs";
25
+ import {
26
+ iteratorKeys
27
+ } from "./chunk-CNCNQPK3.mjs";
34
28
  import {
35
- iterableFindLastIndex
36
- } from "./chunk-TEI3K6GT.mjs";
29
+ iteratorMap
30
+ } from "./chunk-XQDGXAAF.mjs";
37
31
  import {
38
- iterableForEach
39
- } from "./chunk-JU353VSE.mjs";
32
+ iteratorReduce
33
+ } from "./chunk-LIMQXDFK.mjs";
40
34
  import {
41
- iterableIncludes
42
- } from "./chunk-27NJVC7K.mjs";
35
+ iteratorSlice
36
+ } from "./chunk-EQZQP6GW.mjs";
43
37
  import {
44
- iterableIndexOf
45
- } from "./chunk-UIEKIMLW.mjs";
38
+ iteratorSome
39
+ } from "./chunk-3S6LCGE6.mjs";
46
40
  import {
47
- iterableJoin
48
- } from "./chunk-5CHMNKXJ.mjs";
41
+ iteratorTake
42
+ } from "./chunk-VCKLUCOT.mjs";
49
43
  import {
50
- iterableKeys
51
- } from "./chunk-XKBVB2JN.mjs";
44
+ iteratorToArray
45
+ } from "./chunk-YLERARWI.mjs";
52
46
  import {
53
- iterableMap
54
- } from "./chunk-EZC33HE6.mjs";
47
+ iteratorToAsync
48
+ } from "./chunk-WUFMEPOM.mjs";
55
49
  import {
56
- iterableAt
57
- } from "./chunk-MDBK7ND5.mjs";
50
+ iteratorFindLast
51
+ } from "./chunk-NZRXO7EY.mjs";
52
+ import {
53
+ iteratorFindLastIndex
54
+ } from "./chunk-PGJSIDLV.mjs";
55
+ import {
56
+ iteratorFlatMap
57
+ } from "./chunk-VIMGYUMQ.mjs";
58
+ import {
59
+ iteratorForEach
60
+ } from "./chunk-FMIHIL6A.mjs";
61
+ import {
62
+ iteratorFrom
63
+ } from "./chunk-KYMTQJIJ.mjs";
64
+ import {
65
+ iteratorIncludes
66
+ } from "./chunk-H27CTQGV.mjs";
67
+ import {
68
+ iteratorIndexOf
69
+ } from "./chunk-AN54W42O.mjs";
70
+ import {
71
+ iteratorJoin
72
+ } from "./chunk-FEEBFWAI.mjs";
73
+ import {
74
+ iteratorAt
75
+ } from "./chunk-H5ARVU55.mjs";
58
76
  import "./chunk-W5NEOEVE.mjs";
59
77
  import {
60
- iterableConcat
61
- } from "./chunk-GWZF5BB7.mjs";
78
+ iteratorConcat
79
+ } from "./chunk-OCK7PKGO.mjs";
80
+ import {
81
+ iteratorDrop
82
+ } from "./chunk-R6SXIXMH.mjs";
83
+ import {
84
+ iteratorEntries
85
+ } from "./chunk-BSAPKNNZ.mjs";
86
+ import {
87
+ iteratorEvery
88
+ } from "./chunk-OWUGLCQB.mjs";
89
+ import {
90
+ iteratorFilter
91
+ } from "./chunk-TDHR35S7.mjs";
92
+ import {
93
+ iteratorFind
94
+ } from "./chunk-FBST4AUL.mjs";
95
+ import {
96
+ iteratorFindIndex
97
+ } from "./chunk-MO7HMLOZ.mjs";
98
+ import {
99
+ iteratorToIterable
100
+ } from "./chunk-MNDAEMYM.mjs";
101
+ import {
102
+ asyncIteratorMap
103
+ } from "./chunk-LB3MK3EU.mjs";
104
+ import {
105
+ asyncIteratorReduce
106
+ } from "./chunk-QLVU73KN.mjs";
107
+ import {
108
+ asyncIteratorSome
109
+ } from "./chunk-ODPKEUIR.mjs";
110
+ import {
111
+ asyncIteratorTake
112
+ } from "./chunk-AOZVPHE4.mjs";
113
+ import {
114
+ asyncIteratorToArray
115
+ } from "./chunk-TQCZXEK7.mjs";
116
+ import {
117
+ asyncIteratorToAsyncIterable
118
+ } from "./chunk-P4OSZLEH.mjs";
119
+ import {
120
+ generatorWithLastValue
121
+ } from "./chunk-2DE3J4J7.mjs";
122
+ import {
123
+ IterableWritableStream
124
+ } from "./chunk-BWMXKULC.mjs";
125
+ import {
126
+ asyncGeneratorWithLastValue
127
+ } from "./chunk-ANRVAYLW.mjs";
128
+ import {
129
+ asyncIteratorDrop
130
+ } from "./chunk-K4RCFPTZ.mjs";
62
131
  import {
63
- iterableEntries
64
- } from "./chunk-44W7OTNE.mjs";
132
+ asyncIteratorEvery
133
+ } from "./chunk-4RT2FROS.mjs";
65
134
  import {
66
- iterableEvery
67
- } from "./chunk-5CRMPYKD.mjs";
135
+ asyncIteratorFilter
136
+ } from "./chunk-4ZBMXHD6.mjs";
68
137
  import {
69
- iterableFilter
70
- } from "./chunk-ZUBHGSCW.mjs";
138
+ asyncIteratorFind
139
+ } from "./chunk-CNKIGQUS.mjs";
71
140
  import {
72
- iterableFind
73
- } from "./chunk-MNLOWKTC.mjs";
141
+ asyncIteratorFlatMap
142
+ } from "./chunk-GFJGWVES.mjs";
74
143
  import {
75
- iterableFindIndex
76
- } from "./chunk-HYU4EN7J.mjs";
144
+ asyncIteratorForEach
145
+ } from "./chunk-J3FQSENW.mjs";
77
146
  export {
147
+ IterableWritableStream,
78
148
  Observable,
79
149
  SymbolObservable,
80
- iterableAt,
81
- iterableConcat,
82
- iterableEntries,
83
- iterableEvery,
84
- iterableFilter,
85
- iterableFind,
86
- iterableFindIndex,
87
- iterableFindLast,
88
- iterableFindLastIndex,
89
- iterableForEach,
90
- iterableIncludes,
91
- iterableIndexOf,
92
- iterableJoin,
93
- iterableKeys,
94
- iterableMap,
95
- iterableReduce,
96
- iterableSlice,
97
- iterableSome,
98
- iterableToSpliced,
99
- iterableToString,
150
+ asyncGeneratorWithLastValue,
151
+ asyncIteratorDrop,
152
+ asyncIteratorEvery,
153
+ asyncIteratorFilter,
154
+ asyncIteratorFind,
155
+ asyncIteratorFlatMap,
156
+ asyncIteratorForEach,
157
+ asyncIteratorMap,
158
+ asyncIteratorReduce,
159
+ asyncIteratorSome,
160
+ asyncIteratorTake,
161
+ asyncIteratorToArray,
162
+ asyncIteratorToAsyncIterable,
163
+ generatorWithLastValue,
164
+ iteratorAt,
165
+ iteratorConcat,
166
+ iteratorDrop,
167
+ iteratorEntries,
168
+ iteratorEvery,
169
+ iteratorFilter,
170
+ iteratorFind,
171
+ iteratorFindIndex,
172
+ iteratorFindLast,
173
+ iteratorFindLastIndex,
174
+ iteratorFlatMap,
175
+ iteratorForEach,
176
+ iteratorFrom,
177
+ iteratorIncludes,
178
+ iteratorIndexOf,
179
+ iteratorJoin,
180
+ iteratorKeys,
181
+ iteratorMap,
182
+ iteratorReduce,
183
+ iteratorSlice,
184
+ iteratorSome,
185
+ iteratorTake,
186
+ iteratorToArray,
187
+ iteratorToAsync,
100
188
  iteratorToIterable,
189
+ iteratorToSpliced,
190
+ iteratorToString,
101
191
  observableFromAsync,
102
- observableValues
192
+ observableSubscribeAsReadable,
193
+ readableStreamFrom,
194
+ readerValues
103
195
  };
104
196
  //# sourceMappingURL=iter-fest.mjs.map
@@ -2,6 +2,6 @@ import { Observable } from './iter-fest.observable.mjs';
2
2
  import 'core-js-pure/full/observable';
3
3
  import './iter-fest.symbolObservable.mjs';
4
4
 
5
- declare function observableValues<T>(observable: Observable<T>): AsyncIterableIterator<T>;
5
+ declare function observableSubscribeAsReadable<T>(observable: Observable<T>): ReadableStream<T>;
6
6
 
7
- export { observableValues };
7
+ export { observableSubscribeAsReadable };
@@ -2,6 +2,6 @@ import { Observable } from './iter-fest.observable.js';
2
2
  import 'core-js-pure/full/observable';
3
3
  import './iter-fest.symbolObservable.js';
4
4
 
5
- declare function observableValues<T>(observable: Observable<T>): AsyncIterableIterator<T>;
5
+ declare function observableSubscribeAsReadable<T>(observable: Observable<T>): ReadableStream<T>;
6
6
 
7
- export { observableValues };
7
+ export { observableSubscribeAsReadable };
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/observableSubscribeAsReadable.ts
21
+ var observableSubscribeAsReadable_exports = {};
22
+ __export(observableSubscribeAsReadable_exports, {
23
+ observableSubscribeAsReadable: () => observableSubscribeAsReadable
24
+ });
25
+ module.exports = __toCommonJS(observableSubscribeAsReadable_exports);
26
+ function observableSubscribeAsReadable(observable) {
27
+ let subscription;
28
+ return new ReadableStream({
29
+ cancel() {
30
+ subscription.unsubscribe();
31
+ },
32
+ start(controller) {
33
+ subscription = observable.subscribe({
34
+ complete() {
35
+ controller.close();
36
+ },
37
+ error(err) {
38
+ controller.error(err);
39
+ },
40
+ next(value) {
41
+ controller.enqueue(value);
42
+ }
43
+ });
44
+ }
45
+ });
46
+ }
47
+ // Annotate the CommonJS export names for ESM import in node:
48
+ 0 && (module.exports = {
49
+ observableSubscribeAsReadable
50
+ });
51
+ //# sourceMappingURL=iter-fest.observableSubscribeAsReadable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/observableSubscribeAsReadable.ts"],"sourcesContent":["import type { Observable, Subscription } from './Observable';\n\nexport function observableSubscribeAsReadable<T>(observable: Observable<T>): ReadableStream<T> {\n let subscription: Subscription;\n\n return new ReadableStream<T>({\n cancel() {\n subscription.unsubscribe();\n },\n start(controller) {\n subscription = observable.subscribe({\n complete() {\n controller.close();\n },\n error(err: unknown) {\n controller.error(err);\n },\n next(value) {\n controller.enqueue(value);\n }\n });\n }\n });\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,SAAS,8BAAiC,YAA8C;AAC7F,MAAI;AAEJ,SAAO,IAAI,eAAkB;AAAA,IAC3B,SAAS;AACP,mBAAa,YAAY;AAAA,IAC3B;AAAA,IACA,MAAM,YAAY;AAChB,qBAAe,WAAW,UAAU;AAAA,QAClC,WAAW;AACT,qBAAW,MAAM;AAAA,QACnB;AAAA,QACA,MAAM,KAAc;AAClB,qBAAW,MAAM,GAAG;AAAA,QACtB;AAAA,QACA,KAAK,OAAO;AACV,qBAAW,QAAQ,KAAK;AAAA,QAC1B;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF,CAAC;AACH;","names":[]}
@@ -0,0 +1,7 @@
1
+ import {
2
+ observableSubscribeAsReadable
3
+ } from "./chunk-EIIP7YWB.mjs";
4
+ export {
5
+ observableSubscribeAsReadable
6
+ };
7
+ //# sourceMappingURL=iter-fest.observableSubscribeAsReadable.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,3 @@
1
+ declare function readableStreamFrom<T>(anyIterable: AsyncIterable<T> | Iterable<T>): ReadableStream<T>;
2
+
3
+ export { readableStreamFrom };
@@ -0,0 +1,3 @@
1
+ declare function readableStreamFrom<T>(anyIterable: AsyncIterable<T> | Iterable<T>): ReadableStream<T>;
2
+
3
+ export { readableStreamFrom };