rubico 2.8.1 → 2.8.3

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 (368) hide show
  1. package/README.md +10 -10
  2. package/dist/Transducer.es.js +5 -4
  3. package/dist/Transducer.es.min.js +5 -4
  4. package/dist/Transducer.js +5 -4
  5. package/dist/Transducer.min.js +6 -5
  6. package/dist/Transducer.mjs +5 -4
  7. package/dist/__.es.js +5 -4
  8. package/dist/__.es.min.js +5 -4
  9. package/dist/__.js +5 -4
  10. package/dist/__.min.js +6 -5
  11. package/dist/__.mjs +5 -4
  12. package/dist/all.es.js +5 -4
  13. package/dist/all.es.min.js +5 -4
  14. package/dist/all.js +5 -4
  15. package/dist/all.min.js +6 -5
  16. package/dist/all.mjs +5 -4
  17. package/dist/always.es.js +5 -4
  18. package/dist/always.es.min.js +5 -4
  19. package/dist/always.js +5 -4
  20. package/dist/always.min.js +6 -5
  21. package/dist/always.mjs +5 -4
  22. package/dist/and.es.js +5 -4
  23. package/dist/and.es.min.js +5 -4
  24. package/dist/and.js +5 -4
  25. package/dist/and.min.js +6 -5
  26. package/dist/and.mjs +5 -4
  27. package/dist/assign.es.js +5 -4
  28. package/dist/assign.es.min.js +5 -4
  29. package/dist/assign.js +5 -4
  30. package/dist/assign.min.js +6 -5
  31. package/dist/assign.mjs +5 -4
  32. package/dist/compose.es.js +5 -4
  33. package/dist/compose.es.min.js +5 -4
  34. package/dist/compose.js +5 -4
  35. package/dist/compose.min.js +6 -5
  36. package/dist/compose.mjs +5 -4
  37. package/dist/curry.es.js +5 -4
  38. package/dist/curry.es.min.js +5 -4
  39. package/dist/curry.js +5 -4
  40. package/dist/curry.min.js +6 -5
  41. package/dist/curry.mjs +5 -4
  42. package/dist/eq.es.js +5 -4
  43. package/dist/eq.es.min.js +5 -4
  44. package/dist/eq.js +5 -4
  45. package/dist/eq.min.js +6 -5
  46. package/dist/eq.mjs +5 -4
  47. package/dist/every.es.js +5 -4
  48. package/dist/every.es.min.js +6 -5
  49. package/dist/every.js +5 -4
  50. package/dist/every.min.js +6 -5
  51. package/dist/every.mjs +5 -4
  52. package/dist/filter.es.js +5 -4
  53. package/dist/filter.es.min.js +5 -4
  54. package/dist/filter.js +5 -4
  55. package/dist/filter.min.js +6 -5
  56. package/dist/filter.mjs +5 -4
  57. package/dist/flatMap.es.js +5 -4
  58. package/dist/flatMap.es.min.js +6 -5
  59. package/dist/flatMap.js +5 -4
  60. package/dist/flatMap.min.js +6 -5
  61. package/dist/flatMap.mjs +5 -4
  62. package/dist/forEach.es.js +5 -4
  63. package/dist/forEach.es.min.js +5 -4
  64. package/dist/forEach.js +5 -4
  65. package/dist/forEach.min.js +6 -5
  66. package/dist/forEach.mjs +5 -4
  67. package/dist/get.es.js +5 -4
  68. package/dist/get.es.min.js +5 -4
  69. package/dist/get.js +5 -4
  70. package/dist/get.min.js +6 -5
  71. package/dist/get.mjs +5 -4
  72. package/dist/gt.es.js +5 -4
  73. package/dist/gt.es.min.js +5 -4
  74. package/dist/gt.js +5 -4
  75. package/dist/gt.min.js +6 -5
  76. package/dist/gt.mjs +5 -4
  77. package/dist/gte.es.js +5 -4
  78. package/dist/gte.es.min.js +5 -4
  79. package/dist/gte.js +5 -4
  80. package/dist/gte.min.js +6 -5
  81. package/dist/gte.mjs +5 -4
  82. package/dist/lt.es.js +5 -4
  83. package/dist/lt.es.min.js +5 -4
  84. package/dist/lt.js +5 -4
  85. package/dist/lt.min.js +6 -5
  86. package/dist/lt.mjs +5 -4
  87. package/dist/lte.es.js +5 -4
  88. package/dist/lte.es.min.js +5 -4
  89. package/dist/lte.js +5 -4
  90. package/dist/lte.min.js +6 -5
  91. package/dist/lte.mjs +5 -4
  92. package/dist/map.es.js +5 -4
  93. package/dist/map.es.min.js +6 -5
  94. package/dist/map.js +5 -4
  95. package/dist/map.min.js +6 -5
  96. package/dist/map.mjs +5 -4
  97. package/dist/not.es.js +5 -4
  98. package/dist/not.es.min.js +5 -4
  99. package/dist/not.js +5 -4
  100. package/dist/not.min.js +6 -5
  101. package/dist/not.mjs +5 -4
  102. package/dist/omit.es.js +5 -4
  103. package/dist/omit.es.min.js +5 -4
  104. package/dist/omit.js +5 -4
  105. package/dist/omit.min.js +6 -5
  106. package/dist/omit.mjs +5 -4
  107. package/dist/or.es.js +5 -4
  108. package/dist/or.es.min.js +5 -4
  109. package/dist/or.js +5 -4
  110. package/dist/or.min.js +6 -5
  111. package/dist/or.mjs +5 -4
  112. package/dist/pick.es.js +5 -4
  113. package/dist/pick.es.min.js +5 -4
  114. package/dist/pick.js +5 -4
  115. package/dist/pick.min.js +6 -5
  116. package/dist/pick.mjs +5 -4
  117. package/dist/pipe.es.js +5 -4
  118. package/dist/pipe.es.min.js +5 -4
  119. package/dist/pipe.js +5 -4
  120. package/dist/pipe.min.js +6 -5
  121. package/dist/pipe.mjs +5 -4
  122. package/dist/reduce.es.js +5 -4
  123. package/dist/reduce.es.min.js +5 -4
  124. package/dist/reduce.js +5 -4
  125. package/dist/reduce.min.js +6 -5
  126. package/dist/reduce.mjs +5 -4
  127. package/dist/rubico.es.js +5 -4
  128. package/dist/rubico.es.min.js +6 -5
  129. package/dist/rubico.global.js +5 -4
  130. package/dist/rubico.global.min.js +6 -5
  131. package/dist/rubico.js +5 -4
  132. package/dist/rubico.min.js +6 -5
  133. package/dist/rubico.mjs +5 -4
  134. package/dist/set.es.js +5 -4
  135. package/dist/set.es.min.js +5 -4
  136. package/dist/set.js +5 -4
  137. package/dist/set.min.js +6 -5
  138. package/dist/set.mjs +5 -4
  139. package/dist/some.es.js +5 -4
  140. package/dist/some.es.min.js +6 -5
  141. package/dist/some.js +5 -4
  142. package/dist/some.min.js +6 -5
  143. package/dist/some.mjs +5 -4
  144. package/dist/switchCase.es.js +5 -4
  145. package/dist/switchCase.es.min.js +5 -4
  146. package/dist/switchCase.js +5 -4
  147. package/dist/switchCase.min.js +6 -5
  148. package/dist/switchCase.mjs +5 -4
  149. package/dist/tap.es.js +5 -4
  150. package/dist/tap.es.min.js +5 -4
  151. package/dist/tap.js +5 -4
  152. package/dist/tap.min.js +6 -5
  153. package/dist/tap.mjs +5 -4
  154. package/dist/thunkify.es.js +5 -4
  155. package/dist/thunkify.es.min.js +5 -4
  156. package/dist/thunkify.js +5 -4
  157. package/dist/thunkify.min.js +6 -5
  158. package/dist/thunkify.mjs +5 -4
  159. package/dist/transform.es.js +5 -4
  160. package/dist/transform.es.min.js +5 -4
  161. package/dist/transform.js +5 -4
  162. package/dist/transform.min.js +6 -5
  163. package/dist/transform.mjs +5 -4
  164. package/dist/tryCatch.es.js +5 -4
  165. package/dist/tryCatch.es.min.js +5 -4
  166. package/dist/tryCatch.js +5 -4
  167. package/dist/tryCatch.min.js +6 -5
  168. package/dist/tryCatch.mjs +5 -4
  169. package/dist/x/append.es.js +5 -4
  170. package/dist/x/append.es.min.js +5 -4
  171. package/dist/x/append.js +5 -4
  172. package/dist/x/append.min.js +6 -5
  173. package/dist/x/append.mjs +5 -4
  174. package/dist/x/callProp.es.js +5 -4
  175. package/dist/x/callProp.es.min.js +5 -4
  176. package/dist/x/callProp.js +5 -4
  177. package/dist/x/callProp.min.js +6 -5
  178. package/dist/x/callProp.mjs +5 -4
  179. package/dist/x/defaultsDeep.es.js +5 -4
  180. package/dist/x/defaultsDeep.es.min.js +5 -4
  181. package/dist/x/defaultsDeep.js +5 -4
  182. package/dist/x/defaultsDeep.min.js +6 -5
  183. package/dist/x/defaultsDeep.mjs +5 -4
  184. package/dist/x/differenceWith.es.js +5 -4
  185. package/dist/x/differenceWith.es.min.js +6 -5
  186. package/dist/x/differenceWith.js +5 -4
  187. package/dist/x/differenceWith.min.js +6 -5
  188. package/dist/x/differenceWith.mjs +5 -4
  189. package/dist/x/filterOut.es.js +5 -4
  190. package/dist/x/filterOut.es.min.js +5 -4
  191. package/dist/x/filterOut.js +5 -4
  192. package/dist/x/filterOut.min.js +6 -5
  193. package/dist/x/filterOut.mjs +5 -4
  194. package/dist/x/find.es.js +5 -4
  195. package/dist/x/find.es.min.js +5 -4
  196. package/dist/x/find.js +5 -4
  197. package/dist/x/find.min.js +6 -5
  198. package/dist/x/find.mjs +5 -4
  199. package/dist/x/findIndex.es.js +5 -4
  200. package/dist/x/findIndex.es.min.js +5 -4
  201. package/dist/x/findIndex.js +5 -4
  202. package/dist/x/findIndex.min.js +6 -5
  203. package/dist/x/findIndex.mjs +5 -4
  204. package/dist/x/first.es.js +5 -4
  205. package/dist/x/first.es.min.js +5 -4
  206. package/dist/x/first.js +5 -4
  207. package/dist/x/first.min.js +6 -5
  208. package/dist/x/first.mjs +5 -4
  209. package/dist/x/flatten.es.js +5 -4
  210. package/dist/x/flatten.es.min.js +6 -5
  211. package/dist/x/flatten.js +5 -4
  212. package/dist/x/flatten.min.js +6 -5
  213. package/dist/x/flatten.mjs +5 -4
  214. package/dist/x/groupBy.es.js +5 -4
  215. package/dist/x/groupBy.es.min.js +5 -4
  216. package/dist/x/groupBy.js +5 -4
  217. package/dist/x/groupBy.min.js +6 -5
  218. package/dist/x/groupBy.mjs +5 -4
  219. package/dist/x/has.es.js +5 -4
  220. package/dist/x/has.es.min.js +5 -4
  221. package/dist/x/has.js +5 -4
  222. package/dist/x/has.min.js +6 -5
  223. package/dist/x/has.mjs +5 -4
  224. package/dist/x/identity.es.js +5 -4
  225. package/dist/x/identity.es.min.js +5 -4
  226. package/dist/x/identity.js +5 -4
  227. package/dist/x/identity.min.js +6 -5
  228. package/dist/x/identity.mjs +5 -4
  229. package/dist/x/includes.es.js +5 -4
  230. package/dist/x/includes.es.min.js +5 -4
  231. package/dist/x/includes.js +5 -4
  232. package/dist/x/includes.min.js +6 -5
  233. package/dist/x/includes.mjs +5 -4
  234. package/dist/x/isDeepEqual.es.js +5 -4
  235. package/dist/x/isDeepEqual.es.min.js +5 -4
  236. package/dist/x/isDeepEqual.js +5 -4
  237. package/dist/x/isDeepEqual.min.js +6 -5
  238. package/dist/x/isDeepEqual.mjs +5 -4
  239. package/dist/x/isEmpty.es.js +5 -4
  240. package/dist/x/isEmpty.es.min.js +5 -4
  241. package/dist/x/isEmpty.js +5 -4
  242. package/dist/x/isEmpty.min.js +6 -5
  243. package/dist/x/isEmpty.mjs +5 -4
  244. package/dist/x/isEqual.es.js +5 -4
  245. package/dist/x/isEqual.es.min.js +5 -4
  246. package/dist/x/isEqual.js +5 -4
  247. package/dist/x/isEqual.min.js +6 -5
  248. package/dist/x/isEqual.mjs +5 -4
  249. package/dist/x/isFunction.es.js +5 -4
  250. package/dist/x/isFunction.es.min.js +5 -4
  251. package/dist/x/isFunction.js +5 -4
  252. package/dist/x/isFunction.min.js +6 -5
  253. package/dist/x/isFunction.mjs +5 -4
  254. package/dist/x/isIn.es.js +5 -4
  255. package/dist/x/isIn.es.min.js +5 -4
  256. package/dist/x/isIn.js +5 -4
  257. package/dist/x/isIn.min.js +6 -5
  258. package/dist/x/isIn.mjs +5 -4
  259. package/dist/x/isObject.es.js +5 -4
  260. package/dist/x/isObject.es.min.js +5 -4
  261. package/dist/x/isObject.js +5 -4
  262. package/dist/x/isObject.min.js +6 -5
  263. package/dist/x/isObject.mjs +5 -4
  264. package/dist/x/isString.es.js +5 -4
  265. package/dist/x/isString.es.min.js +5 -4
  266. package/dist/x/isString.js +5 -4
  267. package/dist/x/isString.min.js +6 -5
  268. package/dist/x/isString.mjs +5 -4
  269. package/dist/x/keys.es.js +5 -4
  270. package/dist/x/keys.es.min.js +5 -4
  271. package/dist/x/keys.js +5 -4
  272. package/dist/x/keys.min.js +6 -5
  273. package/dist/x/keys.mjs +5 -4
  274. package/dist/x/last.es.js +5 -4
  275. package/dist/x/last.es.min.js +5 -4
  276. package/dist/x/last.js +5 -4
  277. package/dist/x/last.min.js +6 -5
  278. package/dist/x/last.mjs +5 -4
  279. package/dist/x/maxBy.es.js +5 -4
  280. package/dist/x/maxBy.es.min.js +5 -4
  281. package/dist/x/maxBy.js +5 -4
  282. package/dist/x/maxBy.min.js +6 -5
  283. package/dist/x/maxBy.mjs +5 -4
  284. package/dist/x/noop.es.js +5 -4
  285. package/dist/x/noop.es.min.js +5 -4
  286. package/dist/x/noop.js +5 -4
  287. package/dist/x/noop.min.js +6 -5
  288. package/dist/x/noop.mjs +5 -4
  289. package/dist/x/pluck.es.js +5 -4
  290. package/dist/x/pluck.es.min.js +6 -5
  291. package/dist/x/pluck.js +5 -4
  292. package/dist/x/pluck.min.js +6 -5
  293. package/dist/x/pluck.mjs +5 -4
  294. package/dist/x/prepend.es.js +5 -4
  295. package/dist/x/prepend.es.min.js +5 -4
  296. package/dist/x/prepend.js +5 -4
  297. package/dist/x/prepend.min.js +6 -5
  298. package/dist/x/prepend.mjs +5 -4
  299. package/dist/x/size.es.js +5 -4
  300. package/dist/x/size.es.min.js +5 -4
  301. package/dist/x/size.js +5 -4
  302. package/dist/x/size.min.js +6 -5
  303. package/dist/x/size.mjs +5 -4
  304. package/dist/x/trace.es.js +5 -4
  305. package/dist/x/trace.es.min.js +5 -4
  306. package/dist/x/trace.js +5 -4
  307. package/dist/x/trace.min.js +6 -5
  308. package/dist/x/trace.mjs +5 -4
  309. package/dist/x/unionWith.es.js +5 -4
  310. package/dist/x/unionWith.es.min.js +5 -4
  311. package/dist/x/unionWith.js +5 -4
  312. package/dist/x/unionWith.min.js +6 -5
  313. package/dist/x/unionWith.mjs +5 -4
  314. package/dist/x/uniq.es.js +5 -4
  315. package/dist/x/uniq.es.min.js +5 -4
  316. package/dist/x/uniq.js +5 -4
  317. package/dist/x/uniq.min.js +6 -5
  318. package/dist/x/uniq.mjs +5 -4
  319. package/dist/x/unless.es.js +5 -4
  320. package/dist/x/unless.es.min.js +5 -4
  321. package/dist/x/unless.js +5 -4
  322. package/dist/x/unless.min.js +6 -5
  323. package/dist/x/unless.mjs +5 -4
  324. package/dist/x/values.es.js +5 -4
  325. package/dist/x/values.es.min.js +5 -4
  326. package/dist/x/values.js +5 -4
  327. package/dist/x/values.min.js +6 -5
  328. package/dist/x/values.mjs +5 -4
  329. package/dist/x/when.es.js +5 -4
  330. package/dist/x/when.es.min.js +5 -4
  331. package/dist/x/when.js +5 -4
  332. package/dist/x/when.min.js +6 -5
  333. package/dist/x/when.mjs +5 -4
  334. package/es.js +5 -4
  335. package/index.js +5 -4
  336. package/package.json +1 -1
  337. package/thunkify.js +9 -3
  338. package/x/append.js +1 -1
  339. package/x/callProp.js +1 -1
  340. package/x/defaultsDeep.js +1 -1
  341. package/x/differenceWith.js +2 -2
  342. package/x/find.js +1 -1
  343. package/x/findIndex.js +1 -1
  344. package/x/first.js +1 -1
  345. package/x/flatten.js +1 -1
  346. package/x/groupBy.js +2 -2
  347. package/x/has.js +1 -1
  348. package/x/identity.js +1 -1
  349. package/x/includes.js +1 -1
  350. package/x/isDeepEqual.js +2 -2
  351. package/x/isEmpty.js +1 -1
  352. package/x/isFunction.js +1 -1
  353. package/x/isIn.js +2 -2
  354. package/x/isObject.js +1 -1
  355. package/x/isString.js +1 -1
  356. package/x/keys.js +1 -1
  357. package/x/last.js +1 -1
  358. package/x/maxBy.js +2 -2
  359. package/x/noop.js +1 -1
  360. package/x/pluck.js +1 -1
  361. package/x/prepend.js +1 -1
  362. package/x/size.js +1 -1
  363. package/x/trace.js +1 -1
  364. package/x/unionWith.js +2 -2
  365. package/x/uniq.js +1 -1
  366. package/x/unless.js +1 -1
  367. package/x/values.js +1 -1
  368. package/x/when.js +1 -1
@@ -1,7 +1,8 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
  const __=Symbol.for("placeholder"),curry2ResolveArg0=(r,n)=>function(e){return r(e,n)},curry2ResolveArg1=(r,n)=>function(e){return r(n,e)},curry2=function(r,n,e){return n==__?curry2ResolveArg0(r,e):curry2ResolveArg1(r,n)},promiseAll=Promise.all.bind(Promise),funcApply=(r,n)=>r(...n),isArray=Array.isArray,isPromise=r=>null!=r&&"function"==typeof r.then,areAnyValuesPromises=function(r){if(isArray(r)){const n=r.length;let e=-1;for(;++e<n;){const n=r[e];if(isPromise(n))return!0}return!1}for(const n in r){const e=r[n];if(isPromise(e))return!0}return!1},funcConcat=(r,n)=>function(...e){const o=r(...e);return isPromise(o)?o.then(n):n(o)},compose=function(...r){if("function"==typeof r[0])return r.reduceRight(funcConcat);const n=r.pop().reduceRight(funcConcat);return 0==r.length?n:areAnyValuesPromises(r)?promiseAll(r).then(curry2(funcApply,n,__)):n(...r)};export default compose;
package/dist/compose.js CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
 
8
9
  (function (root, compose) {
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
 
8
- !function(n,t){"object"==typeof module?module.exports=t:"function"==typeof define?define(()=>t):n.compose=t}("object"==typeof globalThis?globalThis:this,function(){"use strict";const n=Symbol.for("placeholder"),t=Promise.all.bind(Promise),e=(n,t)=>n(...t),o=Array.isArray,r=n=>null!=n&&"function"==typeof n.then,i=(n,t)=>function(...e){const o=n(...e);return r(o)?o.then(t):t(o)};return function(...u){if("function"==typeof u[0])return u.reduceRight(i);const c=u.pop().reduceRight(i);return 0==u.length?c:function(n){if(o(n)){const t=n.length;let e=-1;for(;++e<t;){const t=n[e];if(r(t))return!0}return!1}for(const t in n){const e=n[t];if(r(e))return!0}return!1}(u)?t(u).then((f=e,l=n,(s=c)==n?((n,t)=>function(e){return n(e,t)})(f,l):((n,t)=>function(e){return n(t,e)})(f,s))):c(...u);var f,s,l}}());
9
+ !function(n,t){"object"==typeof module?module.exports=t:"function"==typeof define?define((()=>t)):n.compose=t}("object"==typeof globalThis?globalThis:this,function(){"use strict";const n=Symbol.for("placeholder"),t=Promise.all.bind(Promise),e=(n,t)=>n(...t),o=Array.isArray,r=n=>null!=n&&"function"==typeof n.then,i=(n,t)=>function(...e){const o=n(...e);return r(o)?o.then(t):t(o)};return function(...u){if("function"==typeof u[0])return u.reduceRight(i);const c=u.pop().reduceRight(i);return 0==u.length?c:function(n){if(o(n)){const t=n.length;let e=-1;for(;++e<t;){const t=n[e];if(r(t))return!0}return!1}for(const t in n){const e=n[t];if(r(e))return!0}return!1}(u)?t(u).then((f=e,l=n,(s=c)==n?((n,t)=>function(e){return n(e,t)})(f,l):((n,t)=>function(e){return n(t,e)})(f,s))):c(...u);var f,s,l}}());
package/dist/compose.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
  const __ = Symbol.for('placeholder')
8
9
 
package/dist/curry.es.js CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
 
8
9
  const isArray = Array.isArray
@@ -1,7 +1,8 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
  const isArray=Array.isArray,isPromise=r=>null!=r&&"function"==typeof r.then,areAnyValuesPromises=function(r){if(isArray(r)){const e=r.length;let u=-1;for(;++u<e;){const e=r[u];if(isPromise(e))return!0}return!1}for(const e in r){const u=r[e];if(isPromise(u))return!0}return!1},promiseAll=Promise.all.bind(Promise),__=Symbol.for("placeholder"),curry4ResolveArg0=(r,e,u,n)=>function(t){return r(t,e,u,n)},curry4ResolveArg1=(r,e,u,n)=>function(t){return r(e,t,u,n)},curry4ResolveArg2=(r,e,u,n)=>function(t){return r(e,u,t,n)},curry4ResolveArg3=(r,e,u,n)=>function(t){return r(e,u,n,t)},curry4=function(r,e,u,n,t){return e==__?curry4ResolveArg0(r,u,n,t):u==__?curry4ResolveArg1(r,e,n,t):n==__?curry4ResolveArg2(r,e,u,t):curry4ResolveArg3(r,e,u,n)},curry3ResolveArg0=(r,e,u)=>function(n){return r(n,e,u)},curry3ResolveArg1=(r,e,u)=>function(n){return r(e,n,u)},curry3ResolveArg2=(r,e,u)=>function(n){return r(e,u,n)},curry3=function(r,e,u,n){return e==__?curry3ResolveArg0(r,u,n):u==__?curry3ResolveArg1(r,e,n):curry3ResolveArg2(r,e,u)},funcApply2=(r,e,u)=>r.apply(e,u),_curryArity=(r,e,u,n)=>function(...t){const y=n.length,c=t.length,i=[];let s=-1,l=-1,o=0;for(;++s<y;){const y=n[s];if(y==__&&(l+=1)<c){const r=t[l];r==__&&(o+=1),i.push(r)}else i.push(y);if(i.length==r)return areAnyValuesPromises(i)?0==o?promiseAll(i).then(curry3(funcApply2,e,u,__)):promiseAll(i).then(curry4(curryArity,r,e,u,__)):0==o?e.apply(u,i):curryArity(r,e,u,i)}for(;++l<c;){const n=t[l];if(n==__&&(o+=1),i.push(n),i.length==r)return areAnyValuesPromises(i)?0==o?promiseAll(i).then(curry3(funcApply2,e,u,__)):promiseAll(i).then(curry4(curryArity,r,e,u,__)):0==o?e.apply(u,i):curryArity(r,e,u,i)}return areAnyValuesPromises(i)?promiseAll(i).then(curry4(curryArity,r,e,u,__)):curryArity(r,e,u,i)},curryArity=function(r,e,u,n){const t=n.length;if(t<r)return _curryArity(r,e,u,n);let y=-1;for(;++y<t;){if(n[y]==__)return _curryArity(r,e,u,n)}return e.apply(u,n)},curry=(r,...e)=>areAnyValuesPromises(e)?promiseAll(e).then(curry4(curryArity,r.length,r,this,__)):curryArity(r.length,r,this,e);curry.arity=function(r,e,...u){return areAnyValuesPromises(u)?promiseAll(u).then(curry4(curryArity,r,e,this,__)):curryArity(r,e,this,u)},curry.call=function(r,e,...u){return areAnyValuesPromises(u)?promiseAll(u).then(curry4(curryArity,r.length,r,e,__)):curryArity(r.length,r,e,u)};export default curry;
package/dist/curry.js CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
 
8
9
  (function (root, curry) {
package/dist/curry.min.js CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
 
8
- !function(n,t){"object"==typeof module?module.exports=t:"function"==typeof define?define(()=>t):n.curry=t}("object"==typeof globalThis?globalThis:this,function(){"use strict";const n=Array.isArray,t=n=>null!=n&&"function"==typeof n.then,e=function(e){if(n(e)){const n=e.length;let r=-1;for(;++r<n;){const n=e[r];if(t(n))return!0}return!1}for(const n in e){const r=e[n];if(t(r))return!0}return!1},r=Promise.all.bind(Promise),o=Symbol.for("placeholder"),u=function(n,t,e,r,u){return t==o?((n,t,e,r)=>function(o){return n(o,t,e,r)})(n,e,r,u):e==o?((n,t,e,r)=>function(o){return n(t,o,e,r)})(n,t,r,u):r==o?((n,t,e,r)=>function(o){return n(t,e,o,r)})(n,t,e,u):((n,t,e,r)=>function(o){return n(t,e,r,o)})(n,t,e,r)},i=function(n,t,e,r){return t==o?((n,t,e)=>function(r){return n(r,t,e)})(n,e,r):e==o?((n,t,e)=>function(r){return n(t,r,e)})(n,t,r):((n,t,e)=>function(r){return n(t,e,r)})(n,t,e)},f=(n,t,e)=>n.apply(t,e),c=(n,t,c,h)=>function(...s){const p=h.length,y=s.length,a=[];let g=-1,b=-1,d=0;for(;++g<p;){const p=h[g];if(p==o&&(b+=1)<y){const n=s[b];n==o&&(d+=1),a.push(n)}else a.push(p);if(a.length==n)return e(a)?0==d?r(a).then(i(f,t,c,o)):r(a).then(u(l,n,t,c,o)):0==d?t.apply(c,a):l(n,t,c,a)}for(;++b<y;){const h=s[b];if(h==o&&(d+=1),a.push(h),a.length==n)return e(a)?0==d?r(a).then(i(f,t,c,o)):r(a).then(u(l,n,t,c,o)):0==d?t.apply(c,a):l(n,t,c,a)}return e(a)?r(a).then(u(l,n,t,c,o)):l(n,t,c,a)},l=function(n,t,e,r){const u=r.length;if(u<n)return c(n,t,e,r);let i=-1;for(;++i<u;){if(r[i]==o)return c(n,t,e,r)}return t.apply(e,r)},h=(n,...t)=>e(t)?r(t).then(u(l,n.length,n,this,o)):l(n.length,n,this,t);return h.arity=function(n,t,...i){return e(i)?r(i).then(u(l,n,t,this,o)):l(n,t,this,i)},h.call=function(n,t,...i){return e(i)?r(i).then(u(l,n.length,n,t,o)):l(n.length,n,t,i)},h}());
9
+ !function(n,t){"object"==typeof module?module.exports=t:"function"==typeof define?define((()=>t)):n.curry=t}("object"==typeof globalThis?globalThis:this,function(){"use strict";const n=Array.isArray,t=n=>null!=n&&"function"==typeof n.then,e=function(e){if(n(e)){const n=e.length;let r=-1;for(;++r<n;){const n=e[r];if(t(n))return!0}return!1}for(const n in e){const r=e[n];if(t(r))return!0}return!1},r=Promise.all.bind(Promise),o=Symbol.for("placeholder"),u=function(n,t,e,r,u){return t==o?((n,t,e,r)=>function(o){return n(o,t,e,r)})(n,e,r,u):e==o?((n,t,e,r)=>function(o){return n(t,o,e,r)})(n,t,r,u):r==o?((n,t,e,r)=>function(o){return n(t,e,o,r)})(n,t,e,u):((n,t,e,r)=>function(o){return n(t,e,r,o)})(n,t,e,r)},i=function(n,t,e,r){return t==o?((n,t,e)=>function(r){return n(r,t,e)})(n,e,r):e==o?((n,t,e)=>function(r){return n(t,r,e)})(n,t,r):((n,t,e)=>function(r){return n(t,e,r)})(n,t,e)},f=(n,t,e)=>n.apply(t,e),c=(n,t,c,h)=>function(...s){const p=h.length,y=s.length,a=[];let g=-1,b=-1,d=0;for(;++g<p;){const p=h[g];if(p==o&&(b+=1)<y){const n=s[b];n==o&&(d+=1),a.push(n)}else a.push(p);if(a.length==n)return e(a)?0==d?r(a).then(i(f,t,c,o)):r(a).then(u(l,n,t,c,o)):0==d?t.apply(c,a):l(n,t,c,a)}for(;++b<y;){const h=s[b];if(h==o&&(d+=1),a.push(h),a.length==n)return e(a)?0==d?r(a).then(i(f,t,c,o)):r(a).then(u(l,n,t,c,o)):0==d?t.apply(c,a):l(n,t,c,a)}return e(a)?r(a).then(u(l,n,t,c,o)):l(n,t,c,a)},l=function(n,t,e,r){const u=r.length;if(u<n)return c(n,t,e,r);let i=-1;for(;++i<u;){if(r[i]==o)return c(n,t,e,r)}return t.apply(e,r)},h=(n,...t)=>e(t)?r(t).then(u(l,n.length,n,this,o)):l(n.length,n,this,t);return h.arity=function(n,t,...i){return e(i)?r(i).then(u(l,n,t,this,o)):l(n,t,this,i)},h.call=function(n,t,...i){return e(i)?r(i).then(u(l,n.length,n,t,o)):l(n.length,n,t,i)},h}());
package/dist/curry.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
 
8
9
  const isArray = Array.isArray
package/dist/eq.es.js CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
 
8
9
  const isPromise = value => value != null && typeof value.then == 'function'
package/dist/eq.es.min.js CHANGED
@@ -1,7 +1,8 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
  const isPromise=r=>null!=r&&"function"==typeof r.then,isArray=Array.isArray,areAnyValuesPromises=function(r){if(isArray(r)){const e=r.length;let s=-1;for(;++s<e;){const e=r[s];if(isPromise(e))return!0}return!1}for(const e in r){const s=r[e];if(isPromise(s))return!0}return!1},__=Symbol.for("placeholder"),curry4ResolveArg0=(r,e,s,o)=>function(t){return r(t,e,s,o)},curry4ResolveArg1=(r,e,s,o)=>function(t){return r(e,t,s,o)},curry4ResolveArg2=(r,e,s,o)=>function(t){return r(e,s,t,o)},curry4ResolveArg3=(r,e,s,o)=>function(t){return r(e,s,o,t)},curry4=function(r,e,s,o,t){return e==__?curry4ResolveArg0(r,s,o,t):s==__?curry4ResolveArg1(r,e,o,t):o==__?curry4ResolveArg2(r,e,s,t):curry4ResolveArg3(r,e,s,o)},curryArgs4ResolveArgs0=(r,e,s,o)=>function(...t){return r(t,e,s,o)},curryArgs4ResolveArgs1=(r,e,s,o)=>function(...t){return r(e,t,s,o)},curryArgs4ResolveArgs2=(r,e,s,o)=>function(...t){return r(e,s,t,o)},curryArgs4ResolveArgs3=(r,e,s,o)=>function(...t){return r(e,s,o,t)},curryArgs4=function(r,e,s,o,t){return e==__?curryArgs4ResolveArgs0(r,s,o,t):s==__?curryArgs4ResolveArgs1(r,e,o,t):o==__?curryArgs4ResolveArgs2(r,e,s,t):curryArgs4ResolveArgs3(r,e,s,o)},spread2=r=>function([e,s]){return r(e,s)},promiseAll=Promise.all.bind(Promise),leftResolverRightResolverCompare=function(r,e,s,o){const t=s(...r),n=o(...r);return isPromise(t)||isPromise(n)?promiseAll([t,n]).then(spread2(e)):e(t,n)},leftResolverRightValueCompare=function(r,e,s,o){const t=s(...r);return isPromise(t)||isPromise(o)?promiseAll([t,o]).then(spread2(e)):e(t,o)},leftValueRightResolverCompare=function(r,e,s,o){const t=o(...r);return isPromise(s)||isPromise(t)?promiseAll([s,t]).then(spread2(e)):e(s,t)},ComparisonOperator=r=>function(...e){const s=e.pop(),o=e.pop(),t="function"==typeof o,n="function"==typeof s;return t&&n?0==e.length?curryArgs4(leftResolverRightResolverCompare,__,r,o,s):areAnyValuesPromises(e)?promiseAll(e).then(curry4(leftResolverRightResolverCompare,__,r,o,s)):leftResolverRightResolverCompare(e,r,o,s):t?0==e.length?curryArgs4(leftResolverRightValueCompare,__,r,o,s):areAnyValuesPromises(e)?promiseAll(e).then(curry4(leftResolverRightValueCompare,__,r,o,s)):leftResolverRightValueCompare(e,r,o,s):n?0==e.length?curryArgs4(leftValueRightResolverCompare,__,r,o,s):areAnyValuesPromises(e)?promiseAll(e).then(curry4(leftValueRightResolverCompare,__,r,o,s)):leftValueRightResolverCompare(e,r,o,s):isPromise(o)||isPromise(s)?promiseAll([o,s]).then(spread2(r)):r(o,s)},equals=function(r,e){return r==e},eq=ComparisonOperator(equals);export default eq;
package/dist/eq.js CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
 
8
9
  (function (root, eq) {
package/dist/eq.min.js CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
 
8
- !function(n,t){"object"==typeof module?module.exports=t:"function"==typeof define?define(()=>t):n.eq=t}("object"==typeof globalThis?globalThis:this,function(){"use strict";const n=n=>null!=n&&"function"==typeof n.then,t=Array.isArray,e=function(e){if(t(e)){const t=e.length;let r=-1;for(;++r<t;){const t=e[r];if(n(t))return!0}return!1}for(const t in e){const r=e[t];if(n(r))return!0}return!1},r=Symbol.for("placeholder"),o=function(n,t,e,o,u){return t==r?((n,t,e,r)=>function(o){return n(o,t,e,r)})(n,e,o,u):e==r?((n,t,e,r)=>function(o){return n(t,o,e,r)})(n,t,o,u):o==r?((n,t,e,r)=>function(o){return n(t,e,o,r)})(n,t,e,u):((n,t,e,r)=>function(o){return n(t,e,r,o)})(n,t,e,o)},u=function(n,t,e,o,u){return t==r?((n,t,e,r)=>function(...o){return n(o,t,e,r)})(n,e,o,u):e==r?((n,t,e,r)=>function(...o){return n(t,o,e,r)})(n,t,o,u):o==r?((n,t,e,r)=>function(...o){return n(t,e,o,r)})(n,t,e,u):((n,t,e,r)=>function(...o){return n(t,e,r,o)})(n,t,e,o)},f=n=>function([t,e]){return n(t,e)},i=Promise.all.bind(Promise),c=function(t,e,r,o){const u=r(...t),c=o(...t);return n(u)||n(c)?i([u,c]).then(f(e)):e(u,c)},l=function(t,e,r,o){const u=r(...t);return n(u)||n(o)?i([u,o]).then(f(e)):e(u,o)},s=function(t,e,r,o){const u=o(...t);return n(r)||n(u)?i([r,u]).then(f(e)):e(r,u)};var h;return h=function(n,t){return n==t},function(...t){const p=t.pop(),y=t.pop(),a="function"==typeof y,b="function"==typeof p;return a&&b?0==t.length?u(c,r,h,y,p):e(t)?i(t).then(o(c,r,h,y,p)):c(t,h,y,p):a?0==t.length?u(l,r,h,y,p):e(t)?i(t).then(o(l,r,h,y,p)):l(t,h,y,p):b?0==t.length?u(s,r,h,y,p):e(t)?i(t).then(o(s,r,h,y,p)):s(t,h,y,p):n(y)||n(p)?i([y,p]).then(f(h)):h(y,p)}}());
9
+ !function(n,t){"object"==typeof module?module.exports=t:"function"==typeof define?define((()=>t)):n.eq=t}("object"==typeof globalThis?globalThis:this,function(){"use strict";const n=n=>null!=n&&"function"==typeof n.then,t=Array.isArray,e=function(e){if(t(e)){const t=e.length;let r=-1;for(;++r<t;){const t=e[r];if(n(t))return!0}return!1}for(const t in e){const r=e[t];if(n(r))return!0}return!1},r=Symbol.for("placeholder"),o=function(n,t,e,o,u){return t==r?((n,t,e,r)=>function(o){return n(o,t,e,r)})(n,e,o,u):e==r?((n,t,e,r)=>function(o){return n(t,o,e,r)})(n,t,o,u):o==r?((n,t,e,r)=>function(o){return n(t,e,o,r)})(n,t,e,u):((n,t,e,r)=>function(o){return n(t,e,r,o)})(n,t,e,o)},u=function(n,t,e,o,u){return t==r?((n,t,e,r)=>function(...o){return n(o,t,e,r)})(n,e,o,u):e==r?((n,t,e,r)=>function(...o){return n(t,o,e,r)})(n,t,o,u):o==r?((n,t,e,r)=>function(...o){return n(t,e,o,r)})(n,t,e,u):((n,t,e,r)=>function(...o){return n(t,e,r,o)})(n,t,e,o)},f=n=>function([t,e]){return n(t,e)},i=Promise.all.bind(Promise),c=function(t,e,r,o){const u=r(...t),c=o(...t);return n(u)||n(c)?i([u,c]).then(f(e)):e(u,c)},l=function(t,e,r,o){const u=r(...t);return n(u)||n(o)?i([u,o]).then(f(e)):e(u,o)},s=function(t,e,r,o){const u=o(...t);return n(r)||n(u)?i([r,u]).then(f(e)):e(r,u)};var h;return h=function(n,t){return n==t},function(...t){const p=t.pop(),y=t.pop(),a="function"==typeof y,b="function"==typeof p;return a&&b?0==t.length?u(c,r,h,y,p):e(t)?i(t).then(o(c,r,h,y,p)):c(t,h,y,p):a?0==t.length?u(l,r,h,y,p):e(t)?i(t).then(o(l,r,h,y,p)):l(t,h,y,p):b?0==t.length?u(s,r,h,y,p):e(t)?i(t).then(o(s,r,h,y,p)):s(t,h,y,p):n(y)||n(p)?i([y,p]).then(f(h)):h(y,p)}}());
package/dist/eq.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
 
8
9
  const isPromise = value => value != null && typeof value.then == 'function'
package/dist/every.es.js CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
 
8
9
  const isPromise = value => value != null && typeof value.then == 'function'
@@ -1,7 +1,8 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
- const isPromise=r=>null!=r&&"function"==typeof r.then,__=Symbol.for("placeholder"),curry2ResolveArg0=(r,e)=>function(t){return r(t,e)},curry2ResolveArg1=(r,e)=>function(t){return r(e,t)},curry2=function(r,e,t){return e==__?curry2ResolveArg0(r,t):curry2ResolveArg1(r,e)},isArray=Array.isArray,curry3ResolveArg0=(r,e,t)=>function(n){return r(n,e,t)},curry3ResolveArg1=(r,e,t)=>function(n){return r(e,n,t)},curry3ResolveArg2=(r,e,t)=>function(n){return r(e,t,n)},curry3=function(r,e,t,n){return e==__?curry3ResolveArg0(r,t,n):t==__?curry3ResolveArg1(r,e,n):curry3ResolveArg2(r,e,t)},promiseAll=Promise.all.bind(Promise),callPropUnary=(r,e,t)=>r[e](t),arrayEvery=function(r,e){const t=r.length,n=[];let o=-1;for(;++o<t;){const t=e(r[o]);if(isPromise(t))n.push(t);else if(!t)return!1}return 0==n.length||promiseAll(n).then(curry3(callPropUnary,__,"every",Boolean))},iteratorEvery=function(r,e){const t=[];for(const n of r){const r=e(n);if(isPromise(r))t.push(r);else if(!r)return!1}return 0==t.length||promiseAll(t).then(curry3(callPropUnary,__,"every",Boolean))},SelfReferencingPromise=function(r){const e=r.then(r=>[r,e]);return e},promiseRace=Promise.race.bind(Promise),asyncIteratorEvery=async function(r,e,t,n=20){let o=await r.next();for(;!o.done;){if(t.size>=n){const[r,e]=await promiseRace(t);if(t.delete(e),!r)return!1}const c=e(o.value);if(isPromise(c))t.add(SelfReferencingPromise(c));else if(!c)return!1;o=await r.next()}for(;t.size>0;){const[r,e]=await promiseRace(t);if(t.delete(e),!r)return!1}return!0},objectValues=Object.values,reducerAllSync=(r,e,t)=>!!e&&r(t),reducerEvery=r=>function(e,t){return!1!==e&&(isPromise(e)?e.then(curry3(reducerAllSync,r,__,t)):!!e&&r(t))},symbolIterator=Symbol.iterator,symbolAsyncIterator=Symbol.asyncIterator,_every=function(r,e){return isArray(r)?arrayEvery(r,e):null==r?e(r):"function"==typeof r[symbolIterator]?iteratorEvery(r[symbolIterator](),e):"function"==typeof r[symbolAsyncIterator]?asyncIteratorEvery(r[symbolAsyncIterator](),e,new Set):"function"==typeof r.reduce?r.reduce(reducerEvery(e),!0):r.constructor==Object?arrayEvery(objectValues(r),e):e(r)},every=function(r,e){return"function"==typeof r?curry2(_every,__,r):isPromise(r)?r.then(curry2(_every,__,e)):_every(r,e)};export default every;
8
+ const isPromise=r=>null!=r&&"function"==typeof r.then,__=Symbol.for("placeholder"),curry2ResolveArg0=(r,e)=>function(t){return r(t,e)},curry2ResolveArg1=(r,e)=>function(t){return r(e,t)},curry2=function(r,e,t){return e==__?curry2ResolveArg0(r,t):curry2ResolveArg1(r,e)},isArray=Array.isArray,curry3ResolveArg0=(r,e,t)=>function(n){return r(n,e,t)},curry3ResolveArg1=(r,e,t)=>function(n){return r(e,n,t)},curry3ResolveArg2=(r,e,t)=>function(n){return r(e,t,n)},curry3=function(r,e,t,n){return e==__?curry3ResolveArg0(r,t,n):t==__?curry3ResolveArg1(r,e,n):curry3ResolveArg2(r,e,t)},promiseAll=Promise.all.bind(Promise),callPropUnary=(r,e,t)=>r[e](t),arrayEvery=function(r,e){const t=r.length,n=[];let o=-1;for(;++o<t;){const t=e(r[o]);if(isPromise(t))n.push(t);else if(!t)return!1}return 0==n.length||promiseAll(n).then(curry3(callPropUnary,__,"every",Boolean))},iteratorEvery=function(r,e){const t=[];for(const n of r){const r=e(n);if(isPromise(r))t.push(r);else if(!r)return!1}return 0==t.length||promiseAll(t).then(curry3(callPropUnary,__,"every",Boolean))},SelfReferencingPromise=function(r){const e=r.then((r=>[r,e]));return e},promiseRace=Promise.race.bind(Promise),asyncIteratorEvery=async function(r,e,t,n=20){let o=await r.next();for(;!o.done;){if(t.size>=n){const[r,e]=await promiseRace(t);if(t.delete(e),!r)return!1}const c=e(o.value);if(isPromise(c))t.add(SelfReferencingPromise(c));else if(!c)return!1;o=await r.next()}for(;t.size>0;){const[r,e]=await promiseRace(t);if(t.delete(e),!r)return!1}return!0},objectValues=Object.values,reducerAllSync=(r,e,t)=>!!e&&r(t),reducerEvery=r=>function(e,t){return!1!==e&&(isPromise(e)?e.then(curry3(reducerAllSync,r,__,t)):!!e&&r(t))},symbolIterator=Symbol.iterator,symbolAsyncIterator=Symbol.asyncIterator,_every=function(r,e){return isArray(r)?arrayEvery(r,e):null==r?e(r):"function"==typeof r[symbolIterator]?iteratorEvery(r[symbolIterator](),e):"function"==typeof r[symbolAsyncIterator]?asyncIteratorEvery(r[symbolAsyncIterator](),e,new Set):"function"==typeof r.reduce?r.reduce(reducerEvery(e),!0):r.constructor==Object?arrayEvery(objectValues(r),e):e(r)},every=function(r,e){return"function"==typeof r?curry2(_every,__,r):isPromise(r)?r.then(curry2(_every,__,e)):_every(r,e)};export default every;
package/dist/every.js CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
 
8
9
  (function (root, every) {
package/dist/every.min.js CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
 
8
- !function(n,t){"object"==typeof module?module.exports=t:"function"==typeof define?define(()=>t):n.every=t}("object"==typeof globalThis?globalThis:this,function(){"use strict";const n=n=>null!=n&&"function"==typeof n.then,t=Symbol.for("placeholder"),e=function(n,e,o){return e==t?((n,t)=>function(e){return n(e,t)})(n,o):((n,t)=>function(e){return n(t,e)})(n,e)},o=Array.isArray,r=function(n,e,o,r){return e==t?((n,t,e)=>function(o){return n(o,t,e)})(n,o,r):o==t?((n,t,e)=>function(o){return n(t,o,e)})(n,e,r):((n,t,e)=>function(o){return n(t,e,o)})(n,e,o)},u=Promise.all.bind(Promise),i=(n,t,e)=>n[t](e),f=function(e,o){const f=e.length,c=[];let s=-1;for(;++s<f;){const t=o(e[s]);if(n(t))c.push(t);else if(!t)return!1}return 0==c.length||u(c).then(r(i,t,"every",Boolean))},c=function(n){const t=n.then(n=>[n,t]);return t},s=Promise.race.bind(Promise),l=Object.values,a=(n,t,e)=>!!t&&n(e),y=Symbol.iterator,h=Symbol.asyncIterator,d=function(e,d){return o(e)?f(e,d):null==e?d(e):"function"==typeof e[y]?function(e,o){const f=[];for(const t of e){const e=o(t);if(n(e))f.push(e);else if(!e)return!1}return 0==f.length||u(f).then(r(i,t,"every",Boolean))}(e[y](),d):"function"==typeof e[h]?async function(t,e,o,r=20){let u=await t.next();for(;!u.done;){if(o.size>=r){const[n,t]=await s(o);if(o.delete(t),!n)return!1}const i=e(u.value);if(n(i))o.add(c(i));else if(!i)return!1;u=await t.next()}for(;o.size>0;){const[n,t]=await s(o);if(o.delete(t),!n)return!1}return!0}(e[h](),d,new Set):"function"==typeof e.reduce?e.reduce((e=>function(o,u){return!1!==o&&(n(o)?o.then(r(a,e,t,u)):!!o&&e(u))})(d),!0):e.constructor==Object?f(l(e),d):d(e)};return function(o,r){return"function"==typeof o?e(d,t,o):n(o)?o.then(e(d,t,r)):d(o,r)}}());
9
+ !function(n,t){"object"==typeof module?module.exports=t:"function"==typeof define?define((()=>t)):n.every=t}("object"==typeof globalThis?globalThis:this,function(){"use strict";const n=n=>null!=n&&"function"==typeof n.then,t=Symbol.for("placeholder"),e=function(n,e,o){return e==t?((n,t)=>function(e){return n(e,t)})(n,o):((n,t)=>function(e){return n(t,e)})(n,e)},o=Array.isArray,r=function(n,e,o,r){return e==t?((n,t,e)=>function(o){return n(o,t,e)})(n,o,r):o==t?((n,t,e)=>function(o){return n(t,o,e)})(n,e,r):((n,t,e)=>function(o){return n(t,e,o)})(n,e,o)},u=Promise.all.bind(Promise),i=(n,t,e)=>n[t](e),f=function(e,o){const f=e.length,c=[];let s=-1;for(;++s<f;){const t=o(e[s]);if(n(t))c.push(t);else if(!t)return!1}return 0==c.length||u(c).then(r(i,t,"every",Boolean))},c=function(n){const t=n.then((n=>[n,t]));return t},s=Promise.race.bind(Promise),l=Object.values,a=(n,t,e)=>!!t&&n(e),y=Symbol.iterator,h=Symbol.asyncIterator,d=function(e,d){return o(e)?f(e,d):null==e?d(e):"function"==typeof e[y]?function(e,o){const f=[];for(const t of e){const e=o(t);if(n(e))f.push(e);else if(!e)return!1}return 0==f.length||u(f).then(r(i,t,"every",Boolean))}(e[y](),d):"function"==typeof e[h]?async function(t,e,o,r=20){let u=await t.next();for(;!u.done;){if(o.size>=r){const[n,t]=await s(o);if(o.delete(t),!n)return!1}const i=e(u.value);if(n(i))o.add(c(i));else if(!i)return!1;u=await t.next()}for(;o.size>0;){const[n,t]=await s(o);if(o.delete(t),!n)return!1}return!0}(e[h](),d,new Set):"function"==typeof e.reduce?e.reduce((e=>function(o,u){return!1!==o&&(n(o)?o.then(r(a,e,t,u)):!!o&&e(u))})(d),!0):e.constructor==Object?f(l(e),d):d(e)};return function(o,r){return"function"==typeof o?e(d,t,o):n(o)?o.then(e(d,t,r)):d(o,r)}}());
package/dist/every.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
 
8
9
  const isPromise = value => value != null && typeof value.then == 'function'
package/dist/filter.es.js CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
  const __ = Symbol.for('placeholder')
8
9
 
@@ -1,7 +1,8 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
  const __=Symbol.for("placeholder"),curry2ResolveArg0=(r,t)=>function(n){return r(n,t)},curry2ResolveArg1=(r,t)=>function(n){return r(t,n)},curry2=function(r,t,n){return t==__?curry2ResolveArg0(r,n):curry2ResolveArg1(r,t)},symbolIterator=Symbol.iterator,FilteringIterator=(r,t)=>({[symbolIterator](){return this},next(){let n=r.next();for(;!n.done;){const{value:e}=n;if(t(e))return{value:e,done:!1};n=r.next()}return n}}),isPromise=r=>null!=r&&"function"==typeof r.then,symbolAsyncIterator=Symbol.asyncIterator,FilteringAsyncIterator=(r,t)=>({isAsyncIteratorDone:!1,[symbolAsyncIterator](){return this},async next(){for(;!this.isAsyncIteratorDone;){const{value:n,done:e}=await r.next();if(e)this.isAsyncIteratorDone=!0;else{const r=t(n);if(isPromise(r)?await r:r)return{value:n,done:!1}}}return{value:void 0,done:!0}}}),isArray=Array.isArray,curry4ResolveArg0=(r,t,n,e)=>function(o){return r(o,t,n,e)},curry4ResolveArg1=(r,t,n,e)=>function(o){return r(t,o,n,e)},curry4ResolveArg2=(r,t,n,e)=>function(o){return r(t,n,o,e)},curry4ResolveArg3=(r,t,n,e)=>function(o){return r(t,n,e,o)},curry4=function(r,t,n,e,o){return t==__?curry4ResolveArg0(r,n,e,o):n==__?curry4ResolveArg1(r,t,e,o):e==__?curry4ResolveArg2(r,t,n,o):curry4ResolveArg3(r,t,n,e)},promiseAll=Promise.all.bind(Promise),arrayExtendMap=function(r,t,n,e){const o=t.length;let i=r.length-1;for(;++e<o;)r[++i]=n(t[e],e,r);return r},arrayFilterByConditions=function(r,t,n,e){const o=r.length;let i=-1;for(;++n<o;)e[++i]&&t.push(r[n]);return t},arrayFilter=function(r,t){const n=r.length,e=[];let o=-1,i=-1;for(;++o<n;){const n=r[o],u=t(n,o,r);if(isPromise(u))return promiseAll(arrayExtendMap([u],r,t,o)).then(curry4(arrayFilterByConditions,r,e,o-1,__));u&&(e[++i]=n)}return e},curry3ResolveArg0=(r,t,n)=>function(e){return r(e,t,n)},curry3ResolveArg1=(r,t,n)=>function(e){return r(t,e,n)},curry3ResolveArg2=(r,t,n)=>function(e){return r(t,n,e)},curry3=function(r,t,n,e){return t==__?curry3ResolveArg0(r,n,e):n==__?curry3ResolveArg1(r,t,e):curry3ResolveArg2(r,t,n)},callPropUnary=(r,t,n)=>r[t](n),stringFilter=function(r,t){const n=arrayFilter(r,t);return isPromise(n)?n.then(curry3(callPropUnary,__,"join","")):n.join("")},always=r=>function(){return r},thunkConditional=(r,t,n)=>r?t():n(),thunkify1=(r,t)=>function(){return r(t)},noop=function(){},setFilter=function(r,t){const n=new Set,e=n.add.bind(n),o=[];for(const i of r){const u=t(i,i,r);isPromise(u)?o.push(u.then(curry3(thunkConditional,__,thunkify1(e,i),noop))):u&&n.add(i)}return 0==o.length?n:promiseAll(o).then(always(n))},thunkify4=(r,t,n,e,o)=>function(){return r(t,n,e,o)},callPropBinary=(r,t,n,e)=>r[t](n,e),mapFilter=function(r,t){const n=new Map,e=[];for(const[o,i]of r){const u=t(i,o,r);isPromise(u)?e.push(u.then(curry3(thunkConditional,__,thunkify4(callPropBinary,n,"set",o,i),noop))):u&&n.set(o,i)}return 0==e.length?n:promiseAll(e).then(always(n))},objectSetIf=function(r,t,n,e){e&&(r[t]=n)},objectFilter=function(r,t){const n={},e=[];for(const o in r){const i=r[o],u=t(i,o,r);isPromise(u)?e.push(u.then(curry4(objectSetIf,n,o,r[o],__))):u&&(n[o]=i)}return 0==e.length?n:promiseAll(e).then(always(n))},_filter=function(r,t){return isArray(r)?arrayFilter(r,t):null==r?r:"string"==typeof r||r.constructor==String?stringFilter(r,t):r.constructor==Set?setFilter(r,t):r.constructor==Map?mapFilter(r,t):"function"==typeof r.filter?r.filter(t):"function"==typeof r[symbolIterator]?FilteringIterator(r[symbolIterator](),t):"function"==typeof r[symbolAsyncIterator]?FilteringAsyncIterator(r[symbolAsyncIterator](),t):r.constructor==Object?objectFilter(r,t):r},filter=function(r,t){return"function"==typeof r?curry2(_filter,__,r):isPromise(r)?r.then(curry2(_filter,__,t)):_filter(r,t)};export default filter;
package/dist/filter.js CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
 
8
9
  (function (root, filter) {
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
 
8
- !function(n,t){"object"==typeof module?module.exports=t:"function"==typeof define?define(()=>t):n.filter=t}("object"==typeof globalThis?globalThis:this,function(){"use strict";const n=Symbol.for("placeholder"),t=function(t,e,o){return e==n?((n,t)=>function(e){return n(e,t)})(t,o):((n,t)=>function(e){return n(t,e)})(t,e)},e=Symbol.iterator,o=(n,t)=>({[e](){return this},next(){let e=n.next();for(;!e.done;){const{value:o}=e;if(t(o))return{value:o,done:!1};e=n.next()}return e}}),r=n=>null!=n&&"function"==typeof n.then,u=Symbol.asyncIterator,c=(n,t)=>({isAsyncIteratorDone:!1,[u](){return this},async next(){for(;!this.isAsyncIteratorDone;){const{value:e,done:o}=await n.next();if(o)this.isAsyncIteratorDone=!0;else{const n=t(e);if(r(n)?await n:n)return{value:e,done:!1}}}return{value:void 0,done:!0}}}),i=Array.isArray,f=function(t,e,o,r,u){return e==n?((n,t,e,o)=>function(r){return n(r,t,e,o)})(t,o,r,u):o==n?((n,t,e,o)=>function(r){return n(t,r,e,o)})(t,e,r,u):r==n?((n,t,e,o)=>function(r){return n(t,e,r,o)})(t,e,o,u):((n,t,e,o)=>function(r){return n(t,e,o,r)})(t,e,o,r)},s=Promise.all.bind(Promise),l=function(n,t,e,o){const r=t.length;let u=n.length-1;for(;++o<r;)n[++u]=e(t[o],o,n);return n},h=function(n,t,e,o){const r=n.length;let u=-1;for(;++e<r;)o[++u]&&t.push(n[e]);return t},a=function(t,e){const o=t.length,u=[];let c=-1,i=-1;for(;++c<o;){const o=t[c],a=e(o,c,t);if(r(a))return s(l([a],t,e,c)).then(f(h,t,u,c-1,n));a&&(u[++i]=o)}return u},y=function(t,e,o,r){return e==n?((n,t,e)=>function(o){return n(o,t,e)})(t,o,r):o==n?((n,t,e)=>function(o){return n(t,o,e)})(t,e,r):((n,t,e)=>function(o){return n(t,e,o)})(t,e,o)},d=(n,t,e)=>n[t](e),p=n=>function(){return n},g=(n,t,e)=>n?t():e(),b=(n,t)=>function(){return n(t)},m=function(){},v=(n,t,e,o,r)=>function(){return n(t,e,o,r)},x=(n,t,e,o)=>n[t](e,o),S=function(n,t,e,o){o&&(n[t]=e)},j=function(t,l){return i(t)?a(t,l):null==t?t:"string"==typeof t||t.constructor==String?function(t,e){const o=a(t,e);return r(o)?o.then(y(d,n,"join","")):o.join("")}(t,l):t.constructor==Set?function(t,e){const o=new Set,u=o.add.bind(o),c=[];for(const i of t){const f=e(i,i,t);r(f)?c.push(f.then(y(g,n,b(u,i),m))):f&&o.add(i)}return 0==c.length?o:s(c).then(p(o))}(t,l):t.constructor==Map?function(t,e){const o=new Map,u=[];for(const[c,i]of t){const f=e(i,c,t);r(f)?u.push(f.then(y(g,n,v(x,o,"set",c,i),m))):f&&o.set(c,i)}return 0==u.length?o:s(u).then(p(o))}(t,l):"function"==typeof t.filter?t.filter(l):"function"==typeof t[e]?o(t[e](),l):"function"==typeof t[u]?c(t[u](),l):t.constructor==Object?function(t,e){const o={},u=[];for(const c in t){const i=t[c],s=e(i,c,t);r(s)?u.push(s.then(f(S,o,c,t[c],n))):s&&(o[c]=i)}return 0==u.length?o:s(u).then(p(o))}(t,l):t};return function(e,o){return"function"==typeof e?t(j,n,e):r(e)?e.then(t(j,n,o)):j(e,o)}}());
9
+ !function(n,t){"object"==typeof module?module.exports=t:"function"==typeof define?define((()=>t)):n.filter=t}("object"==typeof globalThis?globalThis:this,function(){"use strict";const n=Symbol.for("placeholder"),t=function(t,e,o){return e==n?((n,t)=>function(e){return n(e,t)})(t,o):((n,t)=>function(e){return n(t,e)})(t,e)},e=Symbol.iterator,o=(n,t)=>({[e](){return this},next(){let e=n.next();for(;!e.done;){const{value:o}=e;if(t(o))return{value:o,done:!1};e=n.next()}return e}}),r=n=>null!=n&&"function"==typeof n.then,u=Symbol.asyncIterator,c=(n,t)=>({isAsyncIteratorDone:!1,[u](){return this},async next(){for(;!this.isAsyncIteratorDone;){const{value:e,done:o}=await n.next();if(o)this.isAsyncIteratorDone=!0;else{const n=t(e);if(r(n)?await n:n)return{value:e,done:!1}}}return{value:void 0,done:!0}}}),i=Array.isArray,f=function(t,e,o,r,u){return e==n?((n,t,e,o)=>function(r){return n(r,t,e,o)})(t,o,r,u):o==n?((n,t,e,o)=>function(r){return n(t,r,e,o)})(t,e,r,u):r==n?((n,t,e,o)=>function(r){return n(t,e,r,o)})(t,e,o,u):((n,t,e,o)=>function(r){return n(t,e,o,r)})(t,e,o,r)},s=Promise.all.bind(Promise),l=function(n,t,e,o){const r=t.length;let u=n.length-1;for(;++o<r;)n[++u]=e(t[o],o,n);return n},h=function(n,t,e,o){const r=n.length;let u=-1;for(;++e<r;)o[++u]&&t.push(n[e]);return t},a=function(t,e){const o=t.length,u=[];let c=-1,i=-1;for(;++c<o;){const o=t[c],a=e(o,c,t);if(r(a))return s(l([a],t,e,c)).then(f(h,t,u,c-1,n));a&&(u[++i]=o)}return u},y=function(t,e,o,r){return e==n?((n,t,e)=>function(o){return n(o,t,e)})(t,o,r):o==n?((n,t,e)=>function(o){return n(t,o,e)})(t,e,r):((n,t,e)=>function(o){return n(t,e,o)})(t,e,o)},d=(n,t,e)=>n[t](e),p=n=>function(){return n},g=(n,t,e)=>n?t():e(),b=(n,t)=>function(){return n(t)},m=function(){},v=(n,t,e,o,r)=>function(){return n(t,e,o,r)},x=(n,t,e,o)=>n[t](e,o),S=function(n,t,e,o){o&&(n[t]=e)},j=function(t,l){return i(t)?a(t,l):null==t?t:"string"==typeof t||t.constructor==String?function(t,e){const o=a(t,e);return r(o)?o.then(y(d,n,"join","")):o.join("")}(t,l):t.constructor==Set?function(t,e){const o=new Set,u=o.add.bind(o),c=[];for(const i of t){const f=e(i,i,t);r(f)?c.push(f.then(y(g,n,b(u,i),m))):f&&o.add(i)}return 0==c.length?o:s(c).then(p(o))}(t,l):t.constructor==Map?function(t,e){const o=new Map,u=[];for(const[c,i]of t){const f=e(i,c,t);r(f)?u.push(f.then(y(g,n,v(x,o,"set",c,i),m))):f&&o.set(c,i)}return 0==u.length?o:s(u).then(p(o))}(t,l):"function"==typeof t.filter?t.filter(l):"function"==typeof t[e]?o(t[e](),l):"function"==typeof t[u]?c(t[u](),l):t.constructor==Object?function(t,e){const o={},u=[];for(const c in t){const i=t[c],s=e(i,c,t);r(s)?u.push(s.then(f(S,o,c,t[c],n))):s&&(o[c]=i)}return 0==u.length?o:s(u).then(p(o))}(t,l):t};return function(e,o){return"function"==typeof e?t(j,n,e):r(e)?e.then(t(j,n,o)):j(e,o)}}());
package/dist/filter.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
  const __ = Symbol.for('placeholder')
8
9
 
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
 
8
9
  const isPromise = value => value != null && typeof value.then == 'function'
@@ -1,7 +1,8 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
- const isPromise=e=>null!=e&&"function"==typeof e.then,isArray=Array.isArray,objectValues=Object.values,objectProto=Object.prototype,nativeObjectToString=objectProto.toString,objectToString=e=>nativeObjectToString.call(e),generatorFunctionTag="[object GeneratorFunction]",isGeneratorFunction=e=>objectToString(e)==generatorFunctionTag,asyncGeneratorFunctionTag="[object AsyncGeneratorFunction]",isAsyncGeneratorFunction=e=>objectToString(e)==asyncGeneratorFunctionTag,__=Symbol.for("placeholder"),curry3ResolveArg0=(e,r,t)=>function(n){return e(n,r,t)},curry3ResolveArg1=(e,r,t)=>function(n){return e(r,n,t)},curry3ResolveArg2=(e,r,t)=>function(n){return e(r,t,n)},curry3=function(e,r,t,n){return r==__?curry3ResolveArg0(e,t,n):t==__?curry3ResolveArg1(e,r,n):curry3ResolveArg2(e,r,t)},iteratorReduceAsync=async function(e,r,t){let n=e.next();if(n.done)return t;for(;!n.done;)t=r(t,n.value),isPromise(t)&&(t=await t),n=e.next();return t},iteratorReduce=function(e,r,t){let n=e.next();if(n.done)return t;for(void 0===t&&(t=n.value,n=e.next());!n.done;){if(t=r(t,n.value),isPromise(t))return t.then(curry3(iteratorReduceAsync,e,r,__));n=e.next()}return t},asyncIteratorReduce=async function(e,r,t){let n=await e.next();if(n.done)return t;for(void 0===t&&(t=n.value,n=await e.next());!n.done;)t=await r(t,n.value),n=await e.next();return t},symbolIterator=Symbol.iterator,symbolAsyncIterator=Symbol.asyncIterator,curry2ResolveArg0=(e,r)=>function(t){return e(t,r)},curry2ResolveArg1=(e,r)=>function(t){return e(r,t)},curry2=function(e,r,t){return r==__?curry2ResolveArg0(e,t):curry2ResolveArg1(e,r)},curryArgs3ResolveArgs0=(e,r,t)=>function(...n){return e(n,r,t)},curryArgs3ResolveArgs1=(e,r,t)=>function(...n){return e(r,n,t)},curryArgs3ResolveArgs2=(e,r,t)=>function(...n){return e(r,t,n)},curryArgs3=function(e,r,t,n){return r==__?curryArgs3ResolveArgs0(e,t,n):t==__?curryArgs3ResolveArgs1(e,r,n):curryArgs3ResolveArgs2(e,r,t)},curry4ResolveArg0=(e,r,t,n)=>function(o){return e(o,r,t,n)},curry4ResolveArg1=(e,r,t,n)=>function(o){return e(r,o,t,n)},curry4ResolveArg2=(e,r,t,n)=>function(o){return e(r,t,o,n)},curry4ResolveArg3=(e,r,t,n)=>function(o){return e(r,t,n,o)},curry4=function(e,r,t,n,o){return r==__?curry4ResolveArg0(e,t,n,o):t==__?curry4ResolveArg1(e,r,n,o):n==__?curry4ResolveArg2(e,r,t,o):curry4ResolveArg3(e,r,t,n)},arrayReduceAsync=async function(e,r,t,n){const o=e.length;for(;++n<o;)t=r(t,e[n],n,e),isPromise(t)&&(t=await t);return t},arrayReduce=function(e,r,t){const n=e.length;let o=-1;for(void 0===t&&(t=e[++o]);++o<n;)if(t=r(t,e[o],o,e),isPromise(t))return t.then(curry4(arrayReduceAsync,e,r,__,o));return t},curry5ResolveArg0=(e,r,t,n,o)=>function(c){return e(c,r,t,n,o)},curry5ResolveArg1=(e,r,t,n,o)=>function(c){return e(r,c,t,n,o)},curry5ResolveArg2=(e,r,t,n,o)=>function(c){return e(r,t,c,n,o)},curry5ResolveArg3=(e,r,t,n,o)=>function(c){return e(r,t,n,c,o)},curry5ResolveArg4=(e,r,t,n,o)=>function(c){return e(r,t,n,o,c)},curry5=function(e,r,t,n,o,c){return r==__?curry5ResolveArg0(e,t,n,o,c):t==__?curry5ResolveArg1(e,r,n,o,c):n==__?curry5ResolveArg2(e,r,t,o,c):o==__?curry5ResolveArg3(e,r,t,n,c):curry5ResolveArg4(e,r,t,n,o)},objectKeys=Object.keys,objectReduceAsync=async function(e,r,t,n,o){const c=n.length;for(;++o<c;){const c=n[o];t=r(t,e[c],c,e),isPromise(t)&&(t=await t)}return t},objectReduce=function(e,r,t){const n=objectKeys(e),o=n.length;let c=-1;for(void 0===t&&(t=e[n[++c]]);++c<o;){const o=n[c];if(t=r(t,e[o],o,e),isPromise(t))return t.then(curry5(objectReduceAsync,e,r,__,n,c))}return t},mapReduceAsync=async function(e,r,t,n){for(const[o,c]of n)t=r(t,c,o,e),isPromise(t)&&(t=await t);return t},mapReduce=function(e,r,t){const n=e.entries();if(void 0===t){const e=n.next();if(e.done)return t;t=e.value[1]}for(const[o,c]of n)if(t=r(t,c,o,e),isPromise(t))return t.then(curry4(mapReduceAsync,e,r,__,n));return t},reducerConcat=(e,r)=>function(t,n){const o=e(t,n);return isPromise(o)?o.then(curry2(r,__,n)):r(o,n)},genericReduce=function(e,r,t){return isArray(e)?arrayReduce(e,r,t):null==e?void 0===t?curry2(r,e,__):r(t,e):e.constructor==Map?mapReduce(e,r,t):"function"==typeof e[symbolIterator]?iteratorReduce(e[symbolIterator](),r,t):"function"==typeof e[symbolAsyncIterator]?asyncIteratorReduce(e[symbolAsyncIterator](),r,t):"function"==typeof e.reduce?e.reduce(r,t):"function"==typeof e.chain?e.chain(curry2(r,t,__)):"function"==typeof e.flatMap?e.flatMap(curry2(r,t,__)):e.constructor==Object?objectReduce(e,r,t):void 0===t?curry2(r,e,__):r(t,e)},arrayPush=function(e,r){return e.push(r),e},FlatMappingIterator=function(e,r){let t=[],n=0;return{[symbolIterator](){return this},next(){if(n<t.length){const e=t[n];return n+=1,{value:e,done:!1}}const o=e.next();if(o.done)return o;const c=genericReduce(r(o.value),arrayPush,[]);return c.length>1&&(t=c,n=1),{value:c[0],done:!1}}}},promiseRace=Promise.race.bind(Promise),sleep=e=>new Promise(r=>{setTimeout(r,e)}),FlatMappingAsyncIterator=function(e,r){const t=[],n=new Set;return{isAsyncIteratorDone:!1,[symbolAsyncIterator](){return this},toString:()=>"[object FlatMappingAsyncIterator]",async next(){for(;!this.isAsyncIteratorDone||t.length>0||n.size>0;){if(!this.isAsyncIteratorDone){const{value:o,done:c}=await e.next();if(c)this.isAsyncIteratorDone=c;else{const e=r(o);if(isPromise(e)){const r=e.then(curry3(genericReduce,__,arrayPush,t)).then(()=>n.delete(r));n.add(r)}else{const r=genericReduce(e,arrayPush,t);if(isPromise(r)){const e=r.then(()=>n.delete(e));n.add(e)}}}}if(t.length>0)return{value:t.shift(),done:!1};n.size>0&&await promiseRace([sleep(1e3),...n])}return{value:void 0,done:!0}}}},always=e=>function(){return e},getArg1=(e,r)=>r,identity=e=>e,promiseAll=Promise.all.bind(Promise),funcConcatSync=(e,r)=>function(...t){return r(e(...t))},asyncIteratorForEach=async function(e,r){const t=[];for await(const n of e){const e=r(n);isPromise(e)&&t.push(e)}return 0==t.length?e:promiseAll(t).then(always(e))},arrayFlatten=function(e){const r=e.length,t=[],n=[];let o=-1;for(;++o<r;){const r=e[o];if(isArray(r)){const e=r.length;let t=-1;for(;++t<e;)n.push(r[t])}else if(null==r)n.push(r);else if("function"==typeof r.then)t.push(r.then(curry2(arrayPush,n,__)));else if("function"==typeof r[symbolIterator])for(const e of r)n.push(e);else if("function"==typeof r[symbolAsyncIterator])t.push(asyncIteratorForEach(r[symbolAsyncIterator](),curry2(arrayPush,n,__)));else if("function"==typeof r.chain){const e=r.chain(identity);isPromise(e)?t.push(e.then(curry2(arrayPush,n,__))):n.push(e)}else if("function"==typeof r.flatMap){const e=r.flatMap(identity);isPromise(e)?t.push(e.then(curry2(arrayPush,n,__))):n.push(e)}else if("function"==typeof r.reduce){const e=r.reduce(funcConcatSync(getArg1,curry2(arrayPush,n,__)),null);isPromise(e)&&t.push(e)}else if(r.constructor==Object)for(const e in r)n.push(r[e]);else n.push(r)}return 0==t.length?n:promiseAll(t).then(always(n))},arrayMap=function(e,r){const t=e.length,n=Array(t);let o=-1,c=!1;for(;++o<t;){const t=r(e[o],o,e);isPromise(t)&&(c=!0),n[o]=t}return c?promiseAll(n):n},arrayFlatMap=function(e,r){const t=arrayMap(e,r);return isPromise(t)?t.then(arrayFlatten):arrayFlatten(t)},promiseObjectAllExecutor=e=>function(r){const t={};let n=0;for(const o in e){const c=e[o];isPromise(c)?(n+=1,c.then((e=>function(o){t[e]=o,n-=1,0==n&&r(t)})(o))):t[o]=c}0==n&&r(t)},promiseObjectAll=e=>new Promise(promiseObjectAllExecutor(e)),objectMap=function(e,r){const t={};let n=!1;for(const o in e){const c=r(e[o],o,e);isPromise(c)&&(n=!0),t[o]=c}return n?promiseObjectAll(t):t},objectAssign=Object.assign,objectFlatten=function(e){const r=[],t={},n=curry2(objectAssign,t,__),o=funcConcatSync(getArg1,n);for(const c in e){const s=e[c];if(null!=s)if("function"==typeof s[symbolIterator])for(const e of s)objectAssign(t,e);else if("function"==typeof s[symbolAsyncIterator])r.push(asyncIteratorForEach(s[symbolAsyncIterator](),n));else if("function"==typeof s.chain){const e=s.chain(identity);isPromise(e)?r.push(e.then(n)):objectAssign(t,e)}else if("function"==typeof s.flatMap){const e=s.flatMap(identity);isPromise(e)?r.push(e.then(n)):n(e)}else if("function"==typeof s.reduce){const e=s.reduce(o,null);isPromise(e)&&r.push(e)}else objectAssign(t,s)}return 0==r.length?t:promiseAll(r).then(()=>t)},objectFlatMap=function(e,r){const t=objectMap(e,r);return isPromise(t)?t.then(objectFlatten):objectFlatten(t)},callPropUnary=(e,r,t)=>e[r](t),setMap=function(e,r){const t=new Set,n=[];for(const o of e){const c=r(o,o,e);isPromise(c)?n.push(c.then(curry3(callPropUnary,t,"add",__))):t.add(c)}return 0==n.length?t:promiseAll(n).then(always(t))},setFlatten=function(e){e.size;const r=[],t=new Set,n=(e,r)=>t.add(r),o=curry3(callPropUnary,t,"add",__);for(const c of e)if(isArray(c)){const e=c.length;let r=-1;for(;++r<e;)t.add(c[r])}else if(null==c)t.add(c);else if("function"==typeof c[symbolIterator])for(const e of c)t.add(e);else if("function"==typeof c[symbolAsyncIterator])r.push(asyncIteratorForEach(c[symbolAsyncIterator](),o));else if("function"==typeof c.chain){const e=c.chain(identity);isPromise(e)?r.push(e.then(o)):t.add(e)}else if("function"==typeof c.flatMap){const e=c.flatMap(identity);isPromise(e)?r.push(e.then(o)):t.add(e)}else if("function"==typeof c.reduce){const e=c.reduce(n,null);isPromise(e)&&r.push(e)}else if(c.constructor==Object)for(const e in c)t.add(c[e]);else t.add(c);return 0==r.length?t:promiseAll(r).then(()=>t)},setFlatMap=function(e,r){const t=setMap(e,r);return isPromise(t)?t.then(setFlatten):setFlatten(t)},funcConcat=(e,r)=>function(...t){const n=e(...t);return isPromise(n)?n.then(r):r(n)},arrayJoin=(e,r)=>e.join(r),arrayFlattenToString=funcConcat(arrayFlatten,curry2(arrayJoin,__,"")),stringFlatMap=function(e,r){const t=arrayMap(e,r);return isPromise(t)?t.then(arrayFlattenToString):arrayFlattenToString(t)},_flatMap=function(e,r){if(isArray(e))return arrayFlatMap(e,r);if(null==e)return r(e);if("function"==typeof e.then)return e.then(r);if("function"==typeof e.next)return symbolIterator in e?FlatMappingIterator(e,r):FlatMappingAsyncIterator(e,r);if("function"==typeof e.chain)return e.chain(r);if("function"==typeof e.flatMap)return e.flatMap(r);const t=e.constructor;return t==Object?objectFlatMap(e,r):t==Set?setFlatMap(e,r):"string"==typeof e||t==String?stringFlatMap(e,r):r(e)},flatMap=(e,r)=>"function"==typeof e?curry2(_flatMap,__,e):isPromise(e)?e.then(curry2(_flatMap,__,r)):_flatMap(e,r);export default flatMap;
8
+ const isPromise=e=>null!=e&&"function"==typeof e.then,isArray=Array.isArray,objectValues=Object.values,objectProto=Object.prototype,nativeObjectToString=objectProto.toString,objectToString=e=>nativeObjectToString.call(e),generatorFunctionTag="[object GeneratorFunction]",isGeneratorFunction=e=>objectToString(e)==generatorFunctionTag,asyncGeneratorFunctionTag="[object AsyncGeneratorFunction]",isAsyncGeneratorFunction=e=>objectToString(e)==asyncGeneratorFunctionTag,__=Symbol.for("placeholder"),curry3ResolveArg0=(e,r,t)=>function(n){return e(n,r,t)},curry3ResolveArg1=(e,r,t)=>function(n){return e(r,n,t)},curry3ResolveArg2=(e,r,t)=>function(n){return e(r,t,n)},curry3=function(e,r,t,n){return r==__?curry3ResolveArg0(e,t,n):t==__?curry3ResolveArg1(e,r,n):curry3ResolveArg2(e,r,t)},iteratorReduceAsync=async function(e,r,t){let n=e.next();if(n.done)return t;for(;!n.done;)t=r(t,n.value),isPromise(t)&&(t=await t),n=e.next();return t},iteratorReduce=function(e,r,t){let n=e.next();if(n.done)return t;for(void 0===t&&(t=n.value,n=e.next());!n.done;){if(t=r(t,n.value),isPromise(t))return t.then(curry3(iteratorReduceAsync,e,r,__));n=e.next()}return t},asyncIteratorReduce=async function(e,r,t){let n=await e.next();if(n.done)return t;for(void 0===t&&(t=n.value,n=await e.next());!n.done;)t=await r(t,n.value),n=await e.next();return t},symbolIterator=Symbol.iterator,symbolAsyncIterator=Symbol.asyncIterator,curry2ResolveArg0=(e,r)=>function(t){return e(t,r)},curry2ResolveArg1=(e,r)=>function(t){return e(r,t)},curry2=function(e,r,t){return r==__?curry2ResolveArg0(e,t):curry2ResolveArg1(e,r)},curryArgs3ResolveArgs0=(e,r,t)=>function(...n){return e(n,r,t)},curryArgs3ResolveArgs1=(e,r,t)=>function(...n){return e(r,n,t)},curryArgs3ResolveArgs2=(e,r,t)=>function(...n){return e(r,t,n)},curryArgs3=function(e,r,t,n){return r==__?curryArgs3ResolveArgs0(e,t,n):t==__?curryArgs3ResolveArgs1(e,r,n):curryArgs3ResolveArgs2(e,r,t)},curry4ResolveArg0=(e,r,t,n)=>function(o){return e(o,r,t,n)},curry4ResolveArg1=(e,r,t,n)=>function(o){return e(r,o,t,n)},curry4ResolveArg2=(e,r,t,n)=>function(o){return e(r,t,o,n)},curry4ResolveArg3=(e,r,t,n)=>function(o){return e(r,t,n,o)},curry4=function(e,r,t,n,o){return r==__?curry4ResolveArg0(e,t,n,o):t==__?curry4ResolveArg1(e,r,n,o):n==__?curry4ResolveArg2(e,r,t,o):curry4ResolveArg3(e,r,t,n)},arrayReduceAsync=async function(e,r,t,n){const o=e.length;for(;++n<o;)t=r(t,e[n],n,e),isPromise(t)&&(t=await t);return t},arrayReduce=function(e,r,t){const n=e.length;let o=-1;for(void 0===t&&(t=e[++o]);++o<n;)if(t=r(t,e[o],o,e),isPromise(t))return t.then(curry4(arrayReduceAsync,e,r,__,o));return t},curry5ResolveArg0=(e,r,t,n,o)=>function(c){return e(c,r,t,n,o)},curry5ResolveArg1=(e,r,t,n,o)=>function(c){return e(r,c,t,n,o)},curry5ResolveArg2=(e,r,t,n,o)=>function(c){return e(r,t,c,n,o)},curry5ResolveArg3=(e,r,t,n,o)=>function(c){return e(r,t,n,c,o)},curry5ResolveArg4=(e,r,t,n,o)=>function(c){return e(r,t,n,o,c)},curry5=function(e,r,t,n,o,c){return r==__?curry5ResolveArg0(e,t,n,o,c):t==__?curry5ResolveArg1(e,r,n,o,c):n==__?curry5ResolveArg2(e,r,t,o,c):o==__?curry5ResolveArg3(e,r,t,n,c):curry5ResolveArg4(e,r,t,n,o)},objectKeys=Object.keys,objectReduceAsync=async function(e,r,t,n,o){const c=n.length;for(;++o<c;){const c=n[o];t=r(t,e[c],c,e),isPromise(t)&&(t=await t)}return t},objectReduce=function(e,r,t){const n=objectKeys(e),o=n.length;let c=-1;for(void 0===t&&(t=e[n[++c]]);++c<o;){const o=n[c];if(t=r(t,e[o],o,e),isPromise(t))return t.then(curry5(objectReduceAsync,e,r,__,n,c))}return t},mapReduceAsync=async function(e,r,t,n){for(const[o,c]of n)t=r(t,c,o,e),isPromise(t)&&(t=await t);return t},mapReduce=function(e,r,t){const n=e.entries();if(void 0===t){const e=n.next();if(e.done)return t;t=e.value[1]}for(const[o,c]of n)if(t=r(t,c,o,e),isPromise(t))return t.then(curry4(mapReduceAsync,e,r,__,n));return t},reducerConcat=(e,r)=>function(t,n){const o=e(t,n);return isPromise(o)?o.then(curry2(r,__,n)):r(o,n)},genericReduce=function(e,r,t){return isArray(e)?arrayReduce(e,r,t):null==e?void 0===t?curry2(r,e,__):r(t,e):e.constructor==Map?mapReduce(e,r,t):"function"==typeof e[symbolIterator]?iteratorReduce(e[symbolIterator](),r,t):"function"==typeof e[symbolAsyncIterator]?asyncIteratorReduce(e[symbolAsyncIterator](),r,t):"function"==typeof e.reduce?e.reduce(r,t):"function"==typeof e.chain?e.chain(curry2(r,t,__)):"function"==typeof e.flatMap?e.flatMap(curry2(r,t,__)):e.constructor==Object?objectReduce(e,r,t):void 0===t?curry2(r,e,__):r(t,e)},arrayPush=function(e,r){return e.push(r),e},FlatMappingIterator=function(e,r){let t=[],n=0;return{[symbolIterator](){return this},next(){if(n<t.length){const e=t[n];return n+=1,{value:e,done:!1}}const o=e.next();if(o.done)return o;const c=genericReduce(r(o.value),arrayPush,[]);return c.length>1&&(t=c,n=1),{value:c[0],done:!1}}}},promiseRace=Promise.race.bind(Promise),sleep=e=>new Promise((r=>{setTimeout(r,e)})),FlatMappingAsyncIterator=function(e,r){const t=[],n=new Set;return{isAsyncIteratorDone:!1,[symbolAsyncIterator](){return this},toString:()=>"[object FlatMappingAsyncIterator]",async next(){for(;!this.isAsyncIteratorDone||t.length>0||n.size>0;){if(!this.isAsyncIteratorDone){const{value:o,done:c}=await e.next();if(c)this.isAsyncIteratorDone=c;else{const e=r(o);if(isPromise(e)){const r=e.then(curry3(genericReduce,__,arrayPush,t)).then((()=>n.delete(r)));n.add(r)}else{const r=genericReduce(e,arrayPush,t);if(isPromise(r)){const e=r.then((()=>n.delete(e)));n.add(e)}}}}if(t.length>0)return{value:t.shift(),done:!1};n.size>0&&await promiseRace([sleep(1e3),...n])}return{value:void 0,done:!0}}}},always=e=>function(){return e},getArg1=(e,r)=>r,identity=e=>e,promiseAll=Promise.all.bind(Promise),funcConcatSync=(e,r)=>function(...t){return r(e(...t))},asyncIteratorForEach=async function(e,r){const t=[];for await(const n of e){const e=r(n);isPromise(e)&&t.push(e)}return 0==t.length?e:promiseAll(t).then(always(e))},arrayFlatten=function(e){const r=e.length,t=[],n=[];let o=-1;for(;++o<r;){const r=e[o];if(isArray(r)){const e=r.length;let t=-1;for(;++t<e;)n.push(r[t])}else if(null==r)n.push(r);else if("function"==typeof r.then)t.push(r.then(curry2(arrayPush,n,__)));else if("function"==typeof r[symbolIterator])for(const e of r)n.push(e);else if("function"==typeof r[symbolAsyncIterator])t.push(asyncIteratorForEach(r[symbolAsyncIterator](),curry2(arrayPush,n,__)));else if("function"==typeof r.chain){const e=r.chain(identity);isPromise(e)?t.push(e.then(curry2(arrayPush,n,__))):n.push(e)}else if("function"==typeof r.flatMap){const e=r.flatMap(identity);isPromise(e)?t.push(e.then(curry2(arrayPush,n,__))):n.push(e)}else if("function"==typeof r.reduce){const e=r.reduce(funcConcatSync(getArg1,curry2(arrayPush,n,__)),null);isPromise(e)&&t.push(e)}else if(r.constructor==Object)for(const e in r)n.push(r[e]);else n.push(r)}return 0==t.length?n:promiseAll(t).then(always(n))},arrayMap=function(e,r){const t=e.length,n=Array(t);let o=-1,c=!1;for(;++o<t;){const t=r(e[o],o,e);isPromise(t)&&(c=!0),n[o]=t}return c?promiseAll(n):n},arrayFlatMap=function(e,r){const t=arrayMap(e,r);return isPromise(t)?t.then(arrayFlatten):arrayFlatten(t)},promiseObjectAllExecutor=e=>function(r){const t={};let n=0;for(const o in e){const c=e[o];isPromise(c)?(n+=1,c.then((e=>function(o){t[e]=o,n-=1,0==n&&r(t)})(o))):t[o]=c}0==n&&r(t)},promiseObjectAll=e=>new Promise(promiseObjectAllExecutor(e)),objectMap=function(e,r){const t={};let n=!1;for(const o in e){const c=r(e[o],o,e);isPromise(c)&&(n=!0),t[o]=c}return n?promiseObjectAll(t):t},objectAssign=Object.assign,objectFlatten=function(e){const r=[],t={},n=curry2(objectAssign,t,__),o=funcConcatSync(getArg1,n);for(const c in e){const s=e[c];if(null!=s)if("function"==typeof s[symbolIterator])for(const e of s)objectAssign(t,e);else if("function"==typeof s[symbolAsyncIterator])r.push(asyncIteratorForEach(s[symbolAsyncIterator](),n));else if("function"==typeof s.chain){const e=s.chain(identity);isPromise(e)?r.push(e.then(n)):objectAssign(t,e)}else if("function"==typeof s.flatMap){const e=s.flatMap(identity);isPromise(e)?r.push(e.then(n)):n(e)}else if("function"==typeof s.reduce){const e=s.reduce(o,null);isPromise(e)&&r.push(e)}else objectAssign(t,s)}return 0==r.length?t:promiseAll(r).then((()=>t))},objectFlatMap=function(e,r){const t=objectMap(e,r);return isPromise(t)?t.then(objectFlatten):objectFlatten(t)},callPropUnary=(e,r,t)=>e[r](t),setMap=function(e,r){const t=new Set,n=[];for(const o of e){const c=r(o,o,e);isPromise(c)?n.push(c.then(curry3(callPropUnary,t,"add",__))):t.add(c)}return 0==n.length?t:promiseAll(n).then(always(t))},setFlatten=function(e){e.size;const r=[],t=new Set,n=(e,r)=>t.add(r),o=curry3(callPropUnary,t,"add",__);for(const c of e)if(isArray(c)){const e=c.length;let r=-1;for(;++r<e;)t.add(c[r])}else if(null==c)t.add(c);else if("function"==typeof c[symbolIterator])for(const e of c)t.add(e);else if("function"==typeof c[symbolAsyncIterator])r.push(asyncIteratorForEach(c[symbolAsyncIterator](),o));else if("function"==typeof c.chain){const e=c.chain(identity);isPromise(e)?r.push(e.then(o)):t.add(e)}else if("function"==typeof c.flatMap){const e=c.flatMap(identity);isPromise(e)?r.push(e.then(o)):t.add(e)}else if("function"==typeof c.reduce){const e=c.reduce(n,null);isPromise(e)&&r.push(e)}else if(c.constructor==Object)for(const e in c)t.add(c[e]);else t.add(c);return 0==r.length?t:promiseAll(r).then((()=>t))},setFlatMap=function(e,r){const t=setMap(e,r);return isPromise(t)?t.then(setFlatten):setFlatten(t)},funcConcat=(e,r)=>function(...t){const n=e(...t);return isPromise(n)?n.then(r):r(n)},arrayJoin=(e,r)=>e.join(r),arrayFlattenToString=funcConcat(arrayFlatten,curry2(arrayJoin,__,"")),stringFlatMap=function(e,r){const t=arrayMap(e,r);return isPromise(t)?t.then(arrayFlattenToString):arrayFlattenToString(t)},_flatMap=function(e,r){if(isArray(e))return arrayFlatMap(e,r);if(null==e)return r(e);if("function"==typeof e.then)return e.then(r);if("function"==typeof e.next)return symbolIterator in e?FlatMappingIterator(e,r):FlatMappingAsyncIterator(e,r);if("function"==typeof e.chain)return e.chain(r);if("function"==typeof e.flatMap)return e.flatMap(r);const t=e.constructor;return t==Object?objectFlatMap(e,r):t==Set?setFlatMap(e,r):"string"==typeof e||t==String?stringFlatMap(e,r):r(e)},flatMap=(e,r)=>"function"==typeof e?curry2(_flatMap,__,e):isPromise(e)?e.then(curry2(_flatMap,__,r)):_flatMap(e,r);export default flatMap;
package/dist/flatMap.js CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
 
8
9
  (function (root, flatMap) {
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
 
8
- !function(n,t){"object"==typeof module?module.exports=t:"function"==typeof define?define(()=>t):n.flatMap=t}("object"==typeof globalThis?globalThis:this,function(){"use strict";const n=n=>null!=n&&"function"==typeof n.then,t=Array.isArray,e=(Object.values,Object.prototype.toString,Symbol.for("placeholder")),o=function(n,t,o,r){return t==e?((n,t,e)=>function(o){return n(o,t,e)})(n,o,r):o==e?((n,t,e)=>function(o){return n(t,o,e)})(n,t,r):((n,t,e)=>function(o){return n(t,e,o)})(n,t,o)},r=async function(t,e,o){let r=t.next();if(r.done)return o;for(;!r.done;)o=e(o,r.value),n(o)&&(o=await o),r=t.next();return o},u=Symbol.iterator,f=Symbol.asyncIterator,c=function(n,t,o){return t==e?((n,t)=>function(e){return n(e,t)})(n,o):((n,t)=>function(e){return n(t,e)})(n,t)},i=function(n,t,o,r,u){return t==e?((n,t,e,o)=>function(r){return n(r,t,e,o)})(n,o,r,u):o==e?((n,t,e,o)=>function(r){return n(t,r,e,o)})(n,t,r,u):r==e?((n,t,e,o)=>function(r){return n(t,e,r,o)})(n,t,o,u):((n,t,e,o)=>function(r){return n(t,e,o,r)})(n,t,o,r)},s=async function(t,e,o,r){const u=t.length;for(;++r<u;)o=e(o,t[r],r,t),n(o)&&(o=await o);return o},l=function(n,t,o,r,u,f){return t==e?((n,t,e,o,r)=>function(u){return n(u,t,e,o,r)})(n,o,r,u,f):o==e?((n,t,e,o,r)=>function(u){return n(t,u,e,o,r)})(n,t,r,u,f):r==e?((n,t,e,o,r)=>function(u){return n(t,e,u,o,r)})(n,t,o,u,f):u==e?((n,t,e,o,r)=>function(u){return n(t,e,o,u,r)})(n,t,o,r,f):((n,t,e,o,r)=>function(u){return n(t,e,o,r,u)})(n,t,o,r,u)},a=Object.keys,h=async function(t,e,o,r,u){const f=r.length;for(;++u<f;){const f=r[u];o=e(o,t[f],f,t),n(o)&&(o=await o)}return o},p=async function(t,e,o,r){for(const[u,f]of r)o=e(o,f,u,t),n(o)&&(o=await o);return o},d=function(d,y,g){return t(d)?function(t,o,r){const u=t.length;let f=-1;for(void 0===r&&(r=t[++f]);++f<u;)if(r=o(r,t[f],f,t),n(r))return r.then(i(s,t,o,e,f));return r}(d,y,g):null==d?void 0===g?c(y,d,e):y(g,d):d.constructor==Map?function(t,o,r){const u=t.entries();if(void 0===r){const n=u.next();if(n.done)return r;r=n.value[1]}for(const[f,c]of u)if(r=o(r,c,f,t),n(r))return r.then(i(p,t,o,e,u));return r}(d,y,g):"function"==typeof d[u]?function(t,u,f){let c=t.next();if(c.done)return f;for(void 0===f&&(f=c.value,c=t.next());!c.done;){if(f=u(f,c.value),n(f))return f.then(o(r,t,u,e));c=t.next()}return f}(d[u](),y,g):"function"==typeof d[f]?async function(n,t,e){let o=await n.next();if(o.done)return e;for(void 0===e&&(e=o.value,o=await n.next());!o.done;)e=await t(e,o.value),o=await n.next();return e}(d[f](),y,g):"function"==typeof d.reduce?d.reduce(y,g):"function"==typeof d.chain?d.chain(c(y,g,e)):"function"==typeof d.flatMap?d.flatMap(c(y,g,e)):d.constructor==Object?function(t,o,r){const u=a(t),f=u.length;let c=-1;for(void 0===r&&(r=t[u[++c]]);++c<f;){const f=u[c];if(r=o(r,t[f],f,t),n(r))return r.then(l(h,t,o,e,u,c))}return r}(d,y,g):void 0===g?c(y,d,e):y(g,d)},y=function(n,t){return n.push(t),n},g=Promise.race.bind(Promise),v=n=>new Promise(t=>{setTimeout(t,n)}),b=n=>function(){return n},w=(n,t)=>t,x=n=>n,M=Promise.all.bind(Promise),j=(n,t)=>function(...e){return t(n(...e))},m=async function(t,e){const o=[];for await(const r of t){const t=e(r);n(t)&&o.push(t)}return 0==o.length?t:M(o).then(b(t))},S=function(o){const r=o.length,i=[],s=[];let l=-1;for(;++l<r;){const r=o[l];if(t(r)){const n=r.length;let t=-1;for(;++t<n;)s.push(r[t])}else if(null==r)s.push(r);else if("function"==typeof r.then)i.push(r.then(c(y,s,e)));else if("function"==typeof r[u])for(const n of r)s.push(n);else if("function"==typeof r[f])i.push(m(r[f](),c(y,s,e)));else if("function"==typeof r.chain){const t=r.chain(x);n(t)?i.push(t.then(c(y,s,e))):s.push(t)}else if("function"==typeof r.flatMap){const t=r.flatMap(x);n(t)?i.push(t.then(c(y,s,e))):s.push(t)}else if("function"==typeof r.reduce){const t=r.reduce(j(w,c(y,s,e)),null);n(t)&&i.push(t)}else if(r.constructor==Object)for(const n in r)s.push(r[n]);else s.push(r)}return 0==i.length?s:M(i).then(b(s))},A=function(t,e){const o=t.length,r=Array(o);let u=-1,f=!1;for(;++u<o;){const o=e(t[u],u,t);n(o)&&(f=!0),r[u]=o}return f?M(r):r},O=t=>new Promise((t=>function(e){const o={};let r=0;for(const u in t){const f=t[u];n(f)?(r+=1,f.then((n=>function(t){o[n]=t,r-=1,0==r&&e(o)})(u))):o[u]=f}0==r&&e(o)})(t)),I=Object.assign,P=function(t){const o=[],r={},i=c(I,r,e),s=j(w,i);for(const e in t){const c=t[e];if(null!=c)if("function"==typeof c[u])for(const n of c)I(r,n);else if("function"==typeof c[f])o.push(m(c[f](),i));else if("function"==typeof c.chain){const t=c.chain(x);n(t)?o.push(t.then(i)):I(r,t)}else if("function"==typeof c.flatMap){const t=c.flatMap(x);n(t)?o.push(t.then(i)):i(t)}else if("function"==typeof c.reduce){const t=c.reduce(s,null);n(t)&&o.push(t)}else I(r,c)}return 0==o.length?r:M(o).then(()=>r)},D=function(t,e){const o=function(t,e){const o={};let r=!1;for(const u in t){const f=e(t[u],u,t);n(f)&&(r=!0),o[u]=f}return r?O(o):o}(t,e);return n(o)?o.then(P):P(o)},z=(n,t,e)=>n[t](e),T=function(r){r.size;const c=[],i=new Set,s=(n,t)=>i.add(t),l=o(z,i,"add",e);for(const e of r)if(t(e)){const n=e.length;let t=-1;for(;++t<n;)i.add(e[t])}else if(null==e)i.add(e);else if("function"==typeof e[u])for(const n of e)i.add(n);else if("function"==typeof e[f])c.push(m(e[f](),l));else if("function"==typeof e.chain){const t=e.chain(x);n(t)?c.push(t.then(l)):i.add(t)}else if("function"==typeof e.flatMap){const t=e.flatMap(x);n(t)?c.push(t.then(l)):i.add(t)}else if("function"==typeof e.reduce){const t=e.reduce(s,null);n(t)&&c.push(t)}else if(e.constructor==Object)for(const n in e)i.add(e[n]);else i.add(e);return 0==c.length?i:M(c).then(()=>i)},k=function(t,r){const u=function(t,r){const u=new Set,f=[];for(const c of t){const i=r(c,c,t);n(i)?f.push(i.then(o(z,u,"add",e))):u.add(i)}return 0==f.length?u:M(f).then(b(u))}(t,r);return n(u)?u.then(T):T(u)},F=(q=S,B=c((n,t)=>n.join(t),e,""),function(...t){const e=q(...t);return n(e)?e.then(B):B(e)});var q,B;const C=function(r,c){if(t(r))return function(t,e){const o=A(t,e);return n(o)?o.then(S):S(o)}(r,c);if(null==r)return c(r);if("function"==typeof r.then)return r.then(c);if("function"==typeof r.next)return u in r?function(n,t){let e=[],o=0;return{[u](){return this},next(){if(o<e.length){const n=e[o];return o+=1,{value:n,done:!1}}const r=n.next();if(r.done)return r;const u=d(t(r.value),y,[]);return u.length>1&&(e=u,o=1),{value:u[0],done:!1}}}}(r,c):function(t,r){const u=[],c=new Set;return{isAsyncIteratorDone:!1,[f](){return this},toString:()=>"[object FlatMappingAsyncIterator]",async next(){for(;!this.isAsyncIteratorDone||u.length>0||c.size>0;){if(!this.isAsyncIteratorDone){const{value:f,done:i}=await t.next();if(i)this.isAsyncIteratorDone=i;else{const t=r(f);if(n(t)){const n=t.then(o(d,e,y,u)).then(()=>c.delete(n));c.add(n)}else{const e=d(t,y,u);if(n(e)){const n=e.then(()=>c.delete(n));c.add(n)}}}}if(u.length>0)return{value:u.shift(),done:!1};c.size>0&&await g([v(1e3),...c])}return{value:void 0,done:!0}}}}(r,c);if("function"==typeof r.chain)return r.chain(c);if("function"==typeof r.flatMap)return r.flatMap(c);const i=r.constructor;return i==Object?D(r,c):i==Set?k(r,c):"string"==typeof r||i==String?function(t,e){const o=A(t,e);return n(o)?o.then(F):F(o)}(r,c):c(r)};return(t,o)=>"function"==typeof t?c(C,e,t):n(t)?t.then(c(C,e,o)):C(t,o)}());
9
+ !function(n,t){"object"==typeof module?module.exports=t:"function"==typeof define?define((()=>t)):n.flatMap=t}("object"==typeof globalThis?globalThis:this,function(){"use strict";const n=n=>null!=n&&"function"==typeof n.then,t=Array.isArray,e=(Object.values,Object.prototype.toString,Symbol.for("placeholder")),o=function(n,t,o,r){return t==e?((n,t,e)=>function(o){return n(o,t,e)})(n,o,r):o==e?((n,t,e)=>function(o){return n(t,o,e)})(n,t,r):((n,t,e)=>function(o){return n(t,e,o)})(n,t,o)},r=async function(t,e,o){let r=t.next();if(r.done)return o;for(;!r.done;)o=e(o,r.value),n(o)&&(o=await o),r=t.next();return o},u=Symbol.iterator,f=Symbol.asyncIterator,c=function(n,t,o){return t==e?((n,t)=>function(e){return n(e,t)})(n,o):((n,t)=>function(e){return n(t,e)})(n,t)},i=function(n,t,o,r,u){return t==e?((n,t,e,o)=>function(r){return n(r,t,e,o)})(n,o,r,u):o==e?((n,t,e,o)=>function(r){return n(t,r,e,o)})(n,t,r,u):r==e?((n,t,e,o)=>function(r){return n(t,e,r,o)})(n,t,o,u):((n,t,e,o)=>function(r){return n(t,e,o,r)})(n,t,o,r)},s=async function(t,e,o,r){const u=t.length;for(;++r<u;)o=e(o,t[r],r,t),n(o)&&(o=await o);return o},l=Object.keys,a=async function(t,e,o,r,u){const f=r.length;for(;++u<f;){const f=r[u];o=e(o,t[f],f,t),n(o)&&(o=await o)}return o},h=async function(t,e,o,r){for(const[u,f]of r)o=e(o,f,u,t),n(o)&&(o=await o);return o},p=function(p,d,y){return t(p)?function(t,o,r){const u=t.length;let f=-1;for(void 0===r&&(r=t[++f]);++f<u;)if(r=o(r,t[f],f,t),n(r))return r.then(i(s,t,o,e,f));return r}(p,d,y):null==p?void 0===y?c(d,p,e):d(y,p):p.constructor==Map?function(t,o,r){const u=t.entries();if(void 0===r){const n=u.next();if(n.done)return r;r=n.value[1]}for(const[f,c]of u)if(r=o(r,c,f,t),n(r))return r.then(i(h,t,o,e,u));return r}(p,d,y):"function"==typeof p[u]?function(t,u,f){let c=t.next();if(c.done)return f;for(void 0===f&&(f=c.value,c=t.next());!c.done;){if(f=u(f,c.value),n(f))return f.then(o(r,t,u,e));c=t.next()}return f}(p[u](),d,y):"function"==typeof p[f]?async function(n,t,e){let o=await n.next();if(o.done)return e;for(void 0===e&&(e=o.value,o=await n.next());!o.done;)e=await t(e,o.value),o=await n.next();return e}(p[f](),d,y):"function"==typeof p.reduce?p.reduce(d,y):"function"==typeof p.chain?p.chain(c(d,y,e)):"function"==typeof p.flatMap?p.flatMap(c(d,y,e)):p.constructor==Object?function(t,o,r){const u=l(t),f=u.length;let c=-1;for(void 0===r&&(r=t[u[++c]]);++c<f;){const f=u[c];if(r=o(r,t[f],f,t),n(r))return r.then((i=a,h=o,p=e,d=u,y=c,(s=t)==e?((n,t,e,o,r)=>function(u){return n(u,t,e,o,r)})(i,h,p,d,y):h==e?((n,t,e,o,r)=>function(u){return n(t,u,e,o,r)})(i,s,p,d,y):p==e?((n,t,e,o,r)=>function(u){return n(t,e,u,o,r)})(i,s,h,d,y):d==e?((n,t,e,o,r)=>function(u){return n(t,e,o,u,r)})(i,s,h,p,y):((n,t,e,o,r)=>function(u){return n(t,e,o,r,u)})(i,s,h,p,d)))}var i,s,h,p,d,y;return r}(p,d,y):void 0===y?c(d,p,e):d(y,p)},d=function(n,t){return n.push(t),n},y=Promise.race.bind(Promise),g=n=>new Promise((t=>{setTimeout(t,n)})),v=n=>function(){return n},b=(n,t)=>t,w=n=>n,x=Promise.all.bind(Promise),M=(n,t)=>function(...e){return t(n(...e))},j=async function(t,e){const o=[];for await(const r of t){const t=e(r);n(t)&&o.push(t)}return 0==o.length?t:x(o).then(v(t))},m=function(o){const r=o.length,i=[],s=[];let l=-1;for(;++l<r;){const r=o[l];if(t(r)){const n=r.length;let t=-1;for(;++t<n;)s.push(r[t])}else if(null==r)s.push(r);else if("function"==typeof r.then)i.push(r.then(c(d,s,e)));else if("function"==typeof r[u])for(const n of r)s.push(n);else if("function"==typeof r[f])i.push(j(r[f](),c(d,s,e)));else if("function"==typeof r.chain){const t=r.chain(w);n(t)?i.push(t.then(c(d,s,e))):s.push(t)}else if("function"==typeof r.flatMap){const t=r.flatMap(w);n(t)?i.push(t.then(c(d,s,e))):s.push(t)}else if("function"==typeof r.reduce){const t=r.reduce(M(b,c(d,s,e)),null);n(t)&&i.push(t)}else if(r.constructor==Object)for(const n in r)s.push(r[n]);else s.push(r)}return 0==i.length?s:x(i).then(v(s))},S=function(t,e){const o=t.length,r=Array(o);let u=-1,f=!1;for(;++u<o;){const o=e(t[u],u,t);n(o)&&(f=!0),r[u]=o}return f?x(r):r},A=t=>new Promise((t=>function(e){const o={};let r=0;for(const u in t){const f=t[u];n(f)?(r+=1,f.then((n=>function(t){o[n]=t,r-=1,0==r&&e(o)})(u))):o[u]=f}0==r&&e(o)})(t)),O=Object.assign,I=function(t){const o=[],r={},i=c(O,r,e),s=M(b,i);for(const e in t){const c=t[e];if(null!=c)if("function"==typeof c[u])for(const n of c)O(r,n);else if("function"==typeof c[f])o.push(j(c[f](),i));else if("function"==typeof c.chain){const t=c.chain(w);n(t)?o.push(t.then(i)):O(r,t)}else if("function"==typeof c.flatMap){const t=c.flatMap(w);n(t)?o.push(t.then(i)):i(t)}else if("function"==typeof c.reduce){const t=c.reduce(s,null);n(t)&&o.push(t)}else O(r,c)}return 0==o.length?r:x(o).then((()=>r))},P=function(t,e){const o=function(t,e){const o={};let r=!1;for(const u in t){const f=e(t[u],u,t);n(f)&&(r=!0),o[u]=f}return r?A(o):o}(t,e);return n(o)?o.then(I):I(o)},D=(n,t,e)=>n[t](e),z=function(r){r.size;const c=[],i=new Set,s=(n,t)=>i.add(t),l=o(D,i,"add",e);for(const e of r)if(t(e)){const n=e.length;let t=-1;for(;++t<n;)i.add(e[t])}else if(null==e)i.add(e);else if("function"==typeof e[u])for(const n of e)i.add(n);else if("function"==typeof e[f])c.push(j(e[f](),l));else if("function"==typeof e.chain){const t=e.chain(w);n(t)?c.push(t.then(l)):i.add(t)}else if("function"==typeof e.flatMap){const t=e.flatMap(w);n(t)?c.push(t.then(l)):i.add(t)}else if("function"==typeof e.reduce){const t=e.reduce(s,null);n(t)&&c.push(t)}else if(e.constructor==Object)for(const n in e)i.add(e[n]);else i.add(e);return 0==c.length?i:x(c).then((()=>i))},T=function(t,r){const u=function(t,r){const u=new Set,f=[];for(const c of t){const i=r(c,c,t);n(i)?f.push(i.then(o(D,u,"add",e))):u.add(i)}return 0==f.length?u:x(f).then(v(u))}(t,r);return n(u)?u.then(z):z(u)},k=(F=m,q=c(((n,t)=>n.join(t)),e,""),function(...t){const e=F(...t);return n(e)?e.then(q):q(e)});var F,q;const B=function(r,c){if(t(r))return function(t,e){const o=S(t,e);return n(o)?o.then(m):m(o)}(r,c);if(null==r)return c(r);if("function"==typeof r.then)return r.then(c);if("function"==typeof r.next)return u in r?function(n,t){let e=[],o=0;return{[u](){return this},next(){if(o<e.length){const n=e[o];return o+=1,{value:n,done:!1}}const r=n.next();if(r.done)return r;const u=p(t(r.value),d,[]);return u.length>1&&(e=u,o=1),{value:u[0],done:!1}}}}(r,c):function(t,r){const u=[],c=new Set;return{isAsyncIteratorDone:!1,[f](){return this},toString:()=>"[object FlatMappingAsyncIterator]",async next(){for(;!this.isAsyncIteratorDone||u.length>0||c.size>0;){if(!this.isAsyncIteratorDone){const{value:f,done:i}=await t.next();if(i)this.isAsyncIteratorDone=i;else{const t=r(f);if(n(t)){const n=t.then(o(p,e,d,u)).then((()=>c.delete(n)));c.add(n)}else{const e=p(t,d,u);if(n(e)){const n=e.then((()=>c.delete(n)));c.add(n)}}}}if(u.length>0)return{value:u.shift(),done:!1};c.size>0&&await y([g(1e3),...c])}return{value:void 0,done:!0}}}}(r,c);if("function"==typeof r.chain)return r.chain(c);if("function"==typeof r.flatMap)return r.flatMap(c);const i=r.constructor;return i==Object?P(r,c):i==Set?T(r,c):"string"==typeof r||i==String?function(t,e){const o=S(t,e);return n(o)?o.then(k):k(o)}(r,c):c(r)};return(t,o)=>"function"==typeof t?c(B,e,t):n(t)?t.then(c(B,e,o)):B(t,o)}());
package/dist/flatMap.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
- * rubico v2.8.1
3
- * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2026 Richard Tong
5
- * rubico may be freely distributed under the MIT license.
2
+ * Rubico v2.8.3
3
+ * https://rubico.land/
4
+ *
5
+ * © Richard Yufei Tong, King of Software
6
+ * Rubico may be freely distributed under the CFOSS license.
6
7
  */
7
8
 
8
9
  const isPromise = value => value != null && typeof value.then == 'function'