wao 0.12.5 → 0.13.0

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 (614) hide show
  1. package/cjs/aoconnect-base.js +307 -167
  2. package/cjs/armem-base.js +38 -28
  3. package/cjs/bar.js +260 -193
  4. package/cjs/hb.js +418 -0
  5. package/cjs/index.js +7 -0
  6. package/cjs/lua/aos_mainnet.wasm +0 -0
  7. package/cjs/server.js +425 -231
  8. package/cjs/waosm-node.js +1 -22
  9. package/esm/aoconnect-base.js +123 -55
  10. package/esm/armem-base.js +9 -4
  11. package/esm/bar.js +25 -1
  12. package/esm/hb.js +121 -0
  13. package/esm/index.js +2 -1
  14. package/esm/lua/aos_mainnet.wasm +0 -0
  15. package/esm/server.js +172 -21
  16. package/esm/waosm-node.js +0 -21
  17. package/package.json +4 -1
  18. package/esm/.cache/data.mdb +0 -0
  19. package/esm/.cache/lock.mdb +0 -0
  20. package/esm/.db/100040/data/1/123.json +0 -1
  21. package/esm/.db/103252/data/0/13315.json +0 -1
  22. package/esm/.db/103252/data/1/120.json +0 -1
  23. package/esm/.db/103252/data/1/123.json +0 -1
  24. package/esm/.db/105470/data/0/0.json +0 -1
  25. package/esm/.db/105470/data/1/120.json +0 -1
  26. package/esm/.db/105470/data/1/123.json +0 -1
  27. package/esm/.db/105470/data/3/104.json +0 -1
  28. package/esm/.db/105667/data/ppl/bob.json +0 -1
  29. package/esm/.db/105869/data/1/120.json +0 -1
  30. package/esm/.db/105869/data/1/123.json +0 -1
  31. package/esm/.db/106417/data/0/0.json +0 -1
  32. package/esm/.db/106417/data/1/120.json +0 -1
  33. package/esm/.db/106417/data/1/123.json +0 -1
  34. package/esm/.db/113125/data/1/example.json +0 -1
  35. package/esm/.db/116234/data/1/123.json +0 -1
  36. package/esm/.db/119911/data/1/120.json +0 -1
  37. package/esm/.db/119911/data/1/123.json +0 -1
  38. package/esm/.db/122989/data/0/0.json +0 -1
  39. package/esm/.db/122989/data/1/120.json +0 -1
  40. package/esm/.db/122989/data/1/123.json +0 -1
  41. package/esm/.db/125755/data/1/123.json +0 -1
  42. package/esm/.db/126241/data/1/123.json +0 -1
  43. package/esm/.db/129099/data/1/123.json +0 -1
  44. package/esm/.db/129781/data/0/14083.json +0 -1
  45. package/esm/.db/129781/data/1/120.json +0 -1
  46. package/esm/.db/129781/data/1/123.json +0 -1
  47. package/esm/.db/129781/data/15/0.json +0 -1
  48. package/esm/.db/132860/data/0/13315.json +0 -1
  49. package/esm/.db/132860/data/1/120.json +0 -1
  50. package/esm/.db/132860/data/1/123.json +0 -1
  51. package/esm/.db/134721/data/1/123.json +0 -1
  52. package/esm/.db/137408/data/ppl/bob.json +0 -1
  53. package/esm/.db/137556/data/1/123.json +0 -1
  54. package/esm/.db/143417/data/1/123.json +0 -1
  55. package/esm/.db/143799/data/1/123.json +0 -1
  56. package/esm/.db/146558/data/0/0.json +0 -1
  57. package/esm/.db/146558/data/1/120.json +0 -1
  58. package/esm/.db/146558/data/1/123.json +0 -1
  59. package/esm/.db/153145/data/1/123.json +0 -1
  60. package/esm/.db/153912/data/1/example.json +0 -1
  61. package/esm/.db/154536/data/0/13315.json +0 -1
  62. package/esm/.db/154536/data/1/120.json +0 -1
  63. package/esm/.db/154536/data/1/123.json +0 -1
  64. package/esm/.db/158777/data/1/123.json +0 -1
  65. package/esm/.db/170678/data/0/13315.json +0 -1
  66. package/esm/.db/170678/data/1/120.json +0 -1
  67. package/esm/.db/170678/data/1/123.json +0 -1
  68. package/esm/.db/17434/data/1/123.json +0 -1
  69. package/esm/.db/176113/data/1/123.json +0 -1
  70. package/esm/.db/179669/data/0/13315.json +0 -1
  71. package/esm/.db/179669/data/1/120.json +0 -1
  72. package/esm/.db/179669/data/1/123.json +0 -1
  73. package/esm/.db/183368/data/1/120.json +0 -1
  74. package/esm/.db/183368/data/1/123.json +0 -1
  75. package/esm/.db/188491/data/0/14083.json +0 -1
  76. package/esm/.db/188491/data/1/120.json +0 -1
  77. package/esm/.db/188491/data/1/123.json +0 -1
  78. package/esm/.db/188491/data/15/0.json +0 -1
  79. package/esm/.db/189189/data/ppl/bob.json +0 -1
  80. package/esm/.db/195025/data/1/120.json +0 -1
  81. package/esm/.db/195025/data/1/123.json +0 -1
  82. package/esm/.db/19852/data/1/123.json +0 -1
  83. package/esm/.db/204968/data/1/123.json +0 -1
  84. package/esm/.db/207069/data/0/0.json +0 -1
  85. package/esm/.db/207069/data/1/120.json +0 -1
  86. package/esm/.db/207069/data/1/123.json +0 -1
  87. package/esm/.db/211038/data/1/120.json +0 -1
  88. package/esm/.db/211038/data/1/123.json +0 -1
  89. package/esm/.db/211580/data/1/120.json +0 -1
  90. package/esm/.db/211580/data/1/123.json +0 -1
  91. package/esm/.db/214305/data/0/0.json +0 -1
  92. package/esm/.db/214305/data/1/120.json +0 -1
  93. package/esm/.db/214305/data/1/123.json +0 -1
  94. package/esm/.db/214712/data/0/13315.json +0 -1
  95. package/esm/.db/214712/data/1/120.json +0 -1
  96. package/esm/.db/214712/data/1/123.json +0 -1
  97. package/esm/.db/218886/data/0/14083.json +0 -1
  98. package/esm/.db/218886/data/1/120.json +0 -1
  99. package/esm/.db/218886/data/1/123.json +0 -1
  100. package/esm/.db/218886/data/15/0.json +0 -1
  101. package/esm/.db/221009/data/1/123.json +0 -1
  102. package/esm/.db/221818/data/1/120.json +0 -1
  103. package/esm/.db/221818/data/1/123.json +0 -1
  104. package/esm/.db/226668/data/0/13315.json +0 -1
  105. package/esm/.db/226668/data/1/120.json +0 -1
  106. package/esm/.db/226668/data/1/123.json +0 -1
  107. package/esm/.db/226981/data/0/123.json +0 -1
  108. package/esm/.db/235331/data/0/13315.json +0 -1
  109. package/esm/.db/235331/data/1/120.json +0 -1
  110. package/esm/.db/235331/data/1/123.json +0 -1
  111. package/esm/.db/247863/data/1/123.json +0 -1
  112. package/esm/.db/247918/data/0/0.json +0 -1
  113. package/esm/.db/247918/data/1/120.json +0 -1
  114. package/esm/.db/247918/data/1/123.json +0 -1
  115. package/esm/.db/247918/data/3/104.json +0 -1
  116. package/esm/.db/250384/data/1/123.json +0 -1
  117. package/esm/.db/253205/data/1/120.json +0 -1
  118. package/esm/.db/253205/data/1/123.json +0 -1
  119. package/esm/.db/26452/data/1/120.json +0 -1
  120. package/esm/.db/26452/data/1/123.json +0 -1
  121. package/esm/.db/265430/data/1/120.json +0 -1
  122. package/esm/.db/265430/data/1/123.json +0 -1
  123. package/esm/.db/269049/data/0/0.json +0 -1
  124. package/esm/.db/269049/data/1/120.json +0 -1
  125. package/esm/.db/269049/data/1/123.json +0 -1
  126. package/esm/.db/273652/data/0/0.json +0 -1
  127. package/esm/.db/273652/data/1/120.json +0 -1
  128. package/esm/.db/273652/data/1/123.json +0 -1
  129. package/esm/.db/281035/data/0/0.json +0 -1
  130. package/esm/.db/281035/data/1/120.json +0 -1
  131. package/esm/.db/281035/data/1/123.json +0 -1
  132. package/esm/.db/281140/data/0/13315.json +0 -1
  133. package/esm/.db/281140/data/1/120.json +0 -1
  134. package/esm/.db/281140/data/1/123.json +0 -1
  135. package/esm/.db/295732/data/ppl/bob.json +0 -1
  136. package/esm/.db/296113/data/1/123.json +0 -1
  137. package/esm/.db/297154/data/0/13315.json +0 -1
  138. package/esm/.db/297154/data/1/120.json +0 -1
  139. package/esm/.db/297154/data/1/123.json +0 -1
  140. package/esm/.db/304770/data/1/120.json +0 -1
  141. package/esm/.db/304770/data/1/123.json +0 -1
  142. package/esm/.db/3081/data/0/0.json +0 -1
  143. package/esm/.db/3081/data/1/120.json +0 -1
  144. package/esm/.db/3081/data/1/123.json +0 -1
  145. package/esm/.db/310793/data/1/120.json +0 -1
  146. package/esm/.db/310793/data/1/123.json +0 -1
  147. package/esm/.db/317310/data/1/123.json +0 -1
  148. package/esm/.db/317819/data/1/example.json +0 -1
  149. package/esm/.db/319464/data/0/0.json +0 -1
  150. package/esm/.db/319464/data/1/120.json +0 -1
  151. package/esm/.db/319464/data/1/123.json +0 -1
  152. package/esm/.db/32053/data/1/120.json +0 -1
  153. package/esm/.db/32053/data/1/123.json +0 -1
  154. package/esm/.db/322473/data/ppl/bob.json +0 -1
  155. package/esm/.db/323300/data/1/123.json +0 -1
  156. package/esm/.db/323840/data/0/0.json +0 -1
  157. package/esm/.db/323840/data/1/120.json +0 -1
  158. package/esm/.db/323840/data/1/123.json +0 -1
  159. package/esm/.db/326623/data/0/0.json +0 -1
  160. package/esm/.db/326623/data/1/120.json +0 -1
  161. package/esm/.db/326623/data/1/123.json +0 -1
  162. package/esm/.db/328731/data/0/0.json +0 -1
  163. package/esm/.db/328731/data/1/120.json +0 -1
  164. package/esm/.db/328731/data/1/123.json +0 -1
  165. package/esm/.db/334158/data/1/example.json +0 -1
  166. package/esm/.db/334577/data/1/example.json +0 -1
  167. package/esm/.db/3364/data/0/0.json +0 -1
  168. package/esm/.db/3364/data/1/120.json +0 -1
  169. package/esm/.db/3364/data/1/123.json +0 -1
  170. package/esm/.db/339914/data/1/123.json +0 -1
  171. package/esm/.db/34265/data/0/0.json +0 -1
  172. package/esm/.db/34265/data/1/120.json +0 -1
  173. package/esm/.db/34265/data/1/123.json +0 -1
  174. package/esm/.db/346364/data/1/123.json +0 -1
  175. package/esm/.db/349791/data/0/14083.json +0 -1
  176. package/esm/.db/349791/data/1/120.json +0 -1
  177. package/esm/.db/349791/data/1/123.json +0 -1
  178. package/esm/.db/349791/data/15/0.json +0 -1
  179. package/esm/.db/350767/data/ppl/bob.json +0 -1
  180. package/esm/.db/352310/data/0/13315.json +0 -1
  181. package/esm/.db/352310/data/1/120.json +0 -1
  182. package/esm/.db/352310/data/1/123.json +0 -1
  183. package/esm/.db/35438/data/1/123.json +0 -1
  184. package/esm/.db/354670/data/0/13315.json +0 -1
  185. package/esm/.db/354670/data/1/120.json +0 -1
  186. package/esm/.db/354670/data/1/123.json +0 -1
  187. package/esm/.db/354805/data/0/0.json +0 -1
  188. package/esm/.db/354805/data/1/120.json +0 -1
  189. package/esm/.db/354805/data/1/123.json +0 -1
  190. package/esm/.db/358368/data/1/example.json +0 -1
  191. package/esm/.db/358831/data/1/123.json +0 -1
  192. package/esm/.db/360133/data/0/0.json +0 -1
  193. package/esm/.db/360133/data/1/120.json +0 -1
  194. package/esm/.db/360133/data/1/123.json +0 -1
  195. package/esm/.db/364220/data/0/0.json +0 -1
  196. package/esm/.db/364220/data/1/120.json +0 -1
  197. package/esm/.db/364220/data/1/123.json +0 -1
  198. package/esm/.db/367925/data/0/13315.json +0 -1
  199. package/esm/.db/367925/data/1/120.json +0 -1
  200. package/esm/.db/367925/data/1/123.json +0 -1
  201. package/esm/.db/369638/data/1/123.json +0 -1
  202. package/esm/.db/3700/data/1/120.json +0 -1
  203. package/esm/.db/3700/data/1/123.json +0 -1
  204. package/esm/.db/374988/data/0/0.json +0 -1
  205. package/esm/.db/374988/data/1/120.json +0 -1
  206. package/esm/.db/374988/data/1/123.json +0 -1
  207. package/esm/.db/380018/data/1/123.json +0 -1
  208. package/esm/.db/380021/data/1/123.json +0 -1
  209. package/esm/.db/386761/data/1/123.json +0 -1
  210. package/esm/.db/387217/data/0/13315.json +0 -1
  211. package/esm/.db/387217/data/1/120.json +0 -1
  212. package/esm/.db/387217/data/1/123.json +0 -1
  213. package/esm/.db/392652/data/1/123.json +0 -1
  214. package/esm/.db/392692/data/0/13315.json +0 -1
  215. package/esm/.db/392692/data/1/120.json +0 -1
  216. package/esm/.db/392692/data/1/123.json +0 -1
  217. package/esm/.db/396339/data/1/123.json +0 -1
  218. package/esm/.db/404348/data/1/123.json +0 -1
  219. package/esm/.db/405894/data/0/14083.json +0 -1
  220. package/esm/.db/405894/data/1/120.json +0 -1
  221. package/esm/.db/405894/data/1/123.json +0 -1
  222. package/esm/.db/405894/data/15/0.json +0 -1
  223. package/esm/.db/406165/data/1/example.json +0 -1
  224. package/esm/.db/407316/data/ppl/bob.json +0 -1
  225. package/esm/.db/407987/data/1/123.json +0 -1
  226. package/esm/.db/410181/data/1/123.json +0 -1
  227. package/esm/.db/411981/data/1/120.json +0 -1
  228. package/esm/.db/411981/data/1/123.json +0 -1
  229. package/esm/.db/416278/data/1/120.json +0 -1
  230. package/esm/.db/416278/data/1/123.json +0 -1
  231. package/esm/.db/418449/data/1/123.json +0 -1
  232. package/esm/.db/425620/data/1/120.json +0 -1
  233. package/esm/.db/425620/data/1/123.json +0 -1
  234. package/esm/.db/429727/data/1/123.json +0 -1
  235. package/esm/.db/435030/data/1/123.json +0 -1
  236. package/esm/.db/444362/data/1/120.json +0 -1
  237. package/esm/.db/444362/data/1/123.json +0 -1
  238. package/esm/.db/446985/data/1/123.json +0 -1
  239. package/esm/.db/451355/data/1/120.json +0 -1
  240. package/esm/.db/451355/data/1/123.json +0 -1
  241. package/esm/.db/45640/data/1/123.json +0 -1
  242. package/esm/.db/46155/data/0/0.json +0 -1
  243. package/esm/.db/46155/data/0/13315.json +0 -1
  244. package/esm/.db/46155/data/1/120.json +0 -1
  245. package/esm/.db/46155/data/1/123.json +0 -1
  246. package/esm/.db/462799/data/0/0.json +0 -1
  247. package/esm/.db/462799/data/1/120.json +0 -1
  248. package/esm/.db/462799/data/1/123.json +0 -1
  249. package/esm/.db/46528/data/1/123.json +0 -1
  250. package/esm/.db/466476/data/1/123.json +0 -1
  251. package/esm/.db/467578/data/0/0.json +0 -1
  252. package/esm/.db/467578/data/1/120.json +0 -1
  253. package/esm/.db/467578/data/1/123.json +0 -1
  254. package/esm/.db/472245/data/1/123.json +0 -1
  255. package/esm/.db/474238/data/1/example.json +0 -1
  256. package/esm/.db/477291/data/1/123.json +0 -1
  257. package/esm/.db/477375/data/1/120.json +0 -1
  258. package/esm/.db/477375/data/1/123.json +0 -1
  259. package/esm/.db/479960/data/1/123.json +0 -1
  260. package/esm/.db/482327/data/1/123.json +0 -1
  261. package/esm/.db/487117/data/1/example.json +0 -1
  262. package/esm/.db/495075/data/1/123.json +0 -1
  263. package/esm/.db/498660/data/1/123.json +0 -1
  264. package/esm/.db/510578/data/1/123.json +0 -1
  265. package/esm/.db/514521/data/1/123.json +0 -1
  266. package/esm/.db/519111/data/0/0.json +0 -1
  267. package/esm/.db/519111/data/1/120.json +0 -1
  268. package/esm/.db/519111/data/1/123.json +0 -1
  269. package/esm/.db/524536/data/1/120.json +0 -1
  270. package/esm/.db/524536/data/1/123.json +0 -1
  271. package/esm/.db/52751/data/1/example.json +0 -1
  272. package/esm/.db/530599/data/ppl/bob.json +0 -1
  273. package/esm/.db/536579/data/1/123.json +0 -1
  274. package/esm/.db/539183/data/1/123.json +0 -1
  275. package/esm/.db/539222/data/1/example.json +0 -1
  276. package/esm/.db/542071/data/0/0.json +0 -1
  277. package/esm/.db/542071/data/0/13315.json +0 -1
  278. package/esm/.db/542071/data/1/120.json +0 -1
  279. package/esm/.db/542071/data/1/123.json +0 -1
  280. package/esm/.db/542939/data/ppl/bob.json +0 -1
  281. package/esm/.db/547077/data/1/123.json +0 -1
  282. package/esm/.db/547195/data/0/0.json +0 -1
  283. package/esm/.db/547195/data/1/120.json +0 -1
  284. package/esm/.db/547195/data/1/123.json +0 -1
  285. package/esm/.db/548947/data/ppl/bob.json +0 -1
  286. package/esm/.db/551385/data/0/0.json +0 -1
  287. package/esm/.db/551385/data/1/120.json +0 -1
  288. package/esm/.db/551385/data/1/123.json +0 -1
  289. package/esm/.db/553486/data/0/0.json +0 -1
  290. package/esm/.db/553486/data/1/120.json +0 -1
  291. package/esm/.db/553486/data/1/123.json +0 -1
  292. package/esm/.db/554578/data/1/123.json +0 -1
  293. package/esm/.db/555963/data/1/123.json +0 -1
  294. package/esm/.db/556201/data/1/123.json +0 -1
  295. package/esm/.db/565071/data/0/0.json +0 -1
  296. package/esm/.db/565071/data/1/120.json +0 -1
  297. package/esm/.db/565071/data/1/123.json +0 -1
  298. package/esm/.db/569887/data/0/0.json +0 -1
  299. package/esm/.db/569887/data/1/120.json +0 -1
  300. package/esm/.db/569887/data/1/123.json +0 -1
  301. package/esm/.db/572000/data/1/123.json +0 -1
  302. package/esm/.db/572151/data/1/123.json +0 -1
  303. package/esm/.db/573301/data/1/123.json +0 -1
  304. package/esm/.db/579648/data/0/0.json +0 -1
  305. package/esm/.db/579648/data/1/120.json +0 -1
  306. package/esm/.db/579648/data/1/123.json +0 -1
  307. package/esm/.db/579648/data/3/104.json +0 -1
  308. package/esm/.db/582311/data/1/example.json +0 -1
  309. package/esm/.db/587351/data/0/14083.json +0 -1
  310. package/esm/.db/587351/data/1/120.json +0 -1
  311. package/esm/.db/587351/data/1/123.json +0 -1
  312. package/esm/.db/587351/data/15/0.json +0 -1
  313. package/esm/.db/588867/data/0/0.json +0 -1
  314. package/esm/.db/588867/data/1/120.json +0 -1
  315. package/esm/.db/588867/data/1/123.json +0 -1
  316. package/esm/.db/589730/data/1/123.json +0 -1
  317. package/esm/.db/591738/data/0/13315.json +0 -1
  318. package/esm/.db/591738/data/1/120.json +0 -1
  319. package/esm/.db/591738/data/1/123.json +0 -1
  320. package/esm/.db/593460/data/1/123.json +0 -1
  321. package/esm/.db/593771/data/0/0.json +0 -1
  322. package/esm/.db/593771/data/1/120.json +0 -1
  323. package/esm/.db/593771/data/1/123.json +0 -1
  324. package/esm/.db/595304/data/1/123.json +0 -1
  325. package/esm/.db/595772/data/0/13315.json +0 -1
  326. package/esm/.db/595772/data/1/120.json +0 -1
  327. package/esm/.db/595772/data/1/123.json +0 -1
  328. package/esm/.db/596051/data/0/0.json +0 -1
  329. package/esm/.db/596051/data/1/120.json +0 -1
  330. package/esm/.db/596051/data/1/123.json +0 -1
  331. package/esm/.db/601728/data/1/120.json +0 -1
  332. package/esm/.db/601728/data/1/123.json +0 -1
  333. package/esm/.db/619154/data/1/123.json +0 -1
  334. package/esm/.db/620185/data/1/123.json +0 -1
  335. package/esm/.db/623179/data/1/123.json +0 -1
  336. package/esm/.db/623265/data/1/123.json +0 -1
  337. package/esm/.db/630002/data/1/120.json +0 -1
  338. package/esm/.db/630002/data/1/123.json +0 -1
  339. package/esm/.db/631961/data/1/123.json +0 -1
  340. package/esm/.db/635637/data/0/14083.json +0 -1
  341. package/esm/.db/635637/data/1/120.json +0 -1
  342. package/esm/.db/635637/data/1/123.json +0 -1
  343. package/esm/.db/635637/data/15/0.json +0 -1
  344. package/esm/.db/636670/data/1/example.json +0 -1
  345. package/esm/.db/640527/data/0/0.json +0 -1
  346. package/esm/.db/640527/data/1/120.json +0 -1
  347. package/esm/.db/640527/data/1/123.json +0 -1
  348. package/esm/.db/644020/data/0/13315.json +0 -1
  349. package/esm/.db/644020/data/1/120.json +0 -1
  350. package/esm/.db/644020/data/1/123.json +0 -1
  351. package/esm/.db/64462/data/0/14083.json +0 -1
  352. package/esm/.db/64462/data/1/120.json +0 -1
  353. package/esm/.db/64462/data/1/123.json +0 -1
  354. package/esm/.db/64462/data/15/0.json +0 -1
  355. package/esm/.db/645180/data/0/0.json +0 -1
  356. package/esm/.db/645180/data/1/120.json +0 -1
  357. package/esm/.db/645180/data/1/123.json +0 -1
  358. package/esm/.db/646266/data/1/123.json +0 -1
  359. package/esm/.db/650764/data/1/120.json +0 -1
  360. package/esm/.db/650764/data/1/123.json +0 -1
  361. package/esm/.db/654655/data/0/0.json +0 -1
  362. package/esm/.db/654655/data/1/120.json +0 -1
  363. package/esm/.db/654655/data/1/123.json +0 -1
  364. package/esm/.db/658164/data/1/120.json +0 -1
  365. package/esm/.db/658164/data/1/123.json +0 -1
  366. package/esm/.db/65937/data/1/123.json +0 -1
  367. package/esm/.db/659738/data/0/13315.json +0 -1
  368. package/esm/.db/659738/data/1/120.json +0 -1
  369. package/esm/.db/659738/data/1/123.json +0 -1
  370. package/esm/.db/660517/data/0/13315.json +0 -1
  371. package/esm/.db/660517/data/1/120.json +0 -1
  372. package/esm/.db/660517/data/1/123.json +0 -1
  373. package/esm/.db/664564/data/1/123.json +0 -1
  374. package/esm/.db/665125/data/0/0.json +0 -1
  375. package/esm/.db/665125/data/1/120.json +0 -1
  376. package/esm/.db/665125/data/1/123.json +0 -1
  377. package/esm/.db/672001/data/1/example.json +0 -1
  378. package/esm/.db/674620/data/1/123.json +0 -1
  379. package/esm/.db/67532/data/1/123.json +0 -1
  380. package/esm/.db/675670/data/1/120.json +0 -1
  381. package/esm/.db/675670/data/1/123.json +0 -1
  382. package/esm/.db/686538/data/1/123.json +0 -1
  383. package/esm/.db/691017/data/1/123.json +0 -1
  384. package/esm/.db/691716/data/1/120.json +0 -1
  385. package/esm/.db/691716/data/1/123.json +0 -1
  386. package/esm/.db/693105/data/0/14083.json +0 -1
  387. package/esm/.db/693105/data/1/120.json +0 -1
  388. package/esm/.db/693105/data/1/123.json +0 -1
  389. package/esm/.db/693105/data/15/0.json +0 -1
  390. package/esm/.db/694486/data/1/123.json +0 -1
  391. package/esm/.db/702106/data/1/120.json +0 -1
  392. package/esm/.db/702106/data/1/123.json +0 -1
  393. package/esm/.db/7047/data/1/123.json +0 -1
  394. package/esm/.db/705954/data/0/13315.json +0 -1
  395. package/esm/.db/705954/data/1/120.json +0 -1
  396. package/esm/.db/705954/data/1/123.json +0 -1
  397. package/esm/.db/710967/data/1/120.json +0 -1
  398. package/esm/.db/710967/data/1/123.json +0 -1
  399. package/esm/.db/715883/data/0/13315.json +0 -1
  400. package/esm/.db/715883/data/1/120.json +0 -1
  401. package/esm/.db/715883/data/1/123.json +0 -1
  402. package/esm/.db/717358/data/1/120.json +0 -1
  403. package/esm/.db/717358/data/1/123.json +0 -1
  404. package/esm/.db/71999/data/0/13315.json +0 -1
  405. package/esm/.db/71999/data/1/120.json +0 -1
  406. package/esm/.db/71999/data/1/123.json +0 -1
  407. package/esm/.db/720364/data/1/123.json +0 -1
  408. package/esm/.db/727249/data/1/120.json +0 -1
  409. package/esm/.db/727249/data/1/123.json +0 -1
  410. package/esm/.db/728258/data/1/example.json +0 -1
  411. package/esm/.db/728986/data/0/13315.json +0 -1
  412. package/esm/.db/728986/data/1/120.json +0 -1
  413. package/esm/.db/728986/data/1/123.json +0 -1
  414. package/esm/.db/732768/data/1/120.json +0 -1
  415. package/esm/.db/732768/data/1/123.json +0 -1
  416. package/esm/.db/733885/data/1/123.json +0 -1
  417. package/esm/.db/736192/data/0/0.json +0 -1
  418. package/esm/.db/736192/data/1/120.json +0 -1
  419. package/esm/.db/736192/data/1/123.json +0 -1
  420. package/esm/.db/73856/data/0/0.json +0 -1
  421. package/esm/.db/73856/data/1/120.json +0 -1
  422. package/esm/.db/73856/data/1/123.json +0 -1
  423. package/esm/.db/738577/data/1/123.json +0 -1
  424. package/esm/.db/744844/data/1/123.json +0 -1
  425. package/esm/.db/745738/data/1/123.json +0 -1
  426. package/esm/.db/747240/data/1/123.json +0 -1
  427. package/esm/.db/749115/data/0/0.json +0 -1
  428. package/esm/.db/749115/data/1/120.json +0 -1
  429. package/esm/.db/749115/data/1/123.json +0 -1
  430. package/esm/.db/749514/data/0/0.json +0 -1
  431. package/esm/.db/749514/data/1/120.json +0 -1
  432. package/esm/.db/749514/data/1/123.json +0 -1
  433. package/esm/.db/754982/data/1/123.json +0 -1
  434. package/esm/.db/765281/data/0/13315.json +0 -1
  435. package/esm/.db/765281/data/1/120.json +0 -1
  436. package/esm/.db/765281/data/1/123.json +0 -1
  437. package/esm/.db/765521/data/0/14083.json +0 -1
  438. package/esm/.db/765521/data/1/120.json +0 -1
  439. package/esm/.db/765521/data/1/123.json +0 -1
  440. package/esm/.db/765521/data/15/0.json +0 -1
  441. package/esm/.db/766288/data/ppl/bob.json +0 -1
  442. package/esm/.db/766864/data/1/123.json +0 -1
  443. package/esm/.db/770788/data/0/14083.json +0 -1
  444. package/esm/.db/770788/data/1/120.json +0 -1
  445. package/esm/.db/770788/data/1/123.json +0 -1
  446. package/esm/.db/770788/data/15/0.json +0 -1
  447. package/esm/.db/774499/data/1/example.json +0 -1
  448. package/esm/.db/774617/data/ppl/bob.json +0 -1
  449. package/esm/.db/775617/data/1/123.json +0 -1
  450. package/esm/.db/779782/data/1/123.json +0 -1
  451. package/esm/.db/779921/data/1/123.json +0 -1
  452. package/esm/.db/782910/data/1/123.json +0 -1
  453. package/esm/.db/783279/data/0/13315.json +0 -1
  454. package/esm/.db/783279/data/1/120.json +0 -1
  455. package/esm/.db/783279/data/1/123.json +0 -1
  456. package/esm/.db/785515/data/1/123.json +0 -1
  457. package/esm/.db/791284/data/0/0.json +0 -1
  458. package/esm/.db/791284/data/1/120.json +0 -1
  459. package/esm/.db/791284/data/1/123.json +0 -1
  460. package/esm/.db/791361/data/0/14083.json +0 -1
  461. package/esm/.db/791361/data/1/120.json +0 -1
  462. package/esm/.db/791361/data/1/123.json +0 -1
  463. package/esm/.db/791361/data/15/0.json +0 -1
  464. package/esm/.db/791754/data/1/120.json +0 -1
  465. package/esm/.db/791754/data/1/123.json +0 -1
  466. package/esm/.db/792232/data/0/13315.json +0 -1
  467. package/esm/.db/792232/data/1/120.json +0 -1
  468. package/esm/.db/792232/data/1/123.json +0 -1
  469. package/esm/.db/792777/data/0/13315.json +0 -1
  470. package/esm/.db/792777/data/1/120.json +0 -1
  471. package/esm/.db/792777/data/1/123.json +0 -1
  472. package/esm/.db/793249/data/0/123.json +0 -1
  473. package/esm/.db/795512/data/0/0.json +0 -1
  474. package/esm/.db/795512/data/1/120.json +0 -1
  475. package/esm/.db/795512/data/1/123.json +0 -1
  476. package/esm/.db/795512/data/3/104.json +0 -1
  477. package/esm/.db/795957/data/0/0.json +0 -1
  478. package/esm/.db/795957/data/1/120.json +0 -1
  479. package/esm/.db/795957/data/1/123.json +0 -1
  480. package/esm/.db/796663/data/1/123.json +0 -1
  481. package/esm/.db/797304/data/0/0.json +0 -1
  482. package/esm/.db/797304/data/1/120.json +0 -1
  483. package/esm/.db/797304/data/1/123.json +0 -1
  484. package/esm/.db/797304/data/3/104.json +0 -1
  485. package/esm/.db/800834/data/1/123.json +0 -1
  486. package/esm/.db/806421/data/1/120.json +0 -1
  487. package/esm/.db/806421/data/1/123.json +0 -1
  488. package/esm/.db/81623/data/0/14083.json +0 -1
  489. package/esm/.db/81623/data/1/120.json +0 -1
  490. package/esm/.db/81623/data/1/123.json +0 -1
  491. package/esm/.db/81623/data/15/0.json +0 -1
  492. package/esm/.db/81941/data/1/120.json +0 -1
  493. package/esm/.db/81941/data/1/123.json +0 -1
  494. package/esm/.db/820340/data/0/0.json +0 -1
  495. package/esm/.db/820340/data/1/120.json +0 -1
  496. package/esm/.db/820340/data/1/123.json +0 -1
  497. package/esm/.db/821932/data/1/120.json +0 -1
  498. package/esm/.db/821932/data/1/123.json +0 -1
  499. package/esm/.db/823440/data/1/123.json +0 -1
  500. package/esm/.db/823889/data/1/120.json +0 -1
  501. package/esm/.db/823889/data/1/123.json +0 -1
  502. package/esm/.db/823896/data/1/123.json +0 -1
  503. package/esm/.db/836077/data/0/14083.json +0 -1
  504. package/esm/.db/836077/data/1/120.json +0 -1
  505. package/esm/.db/836077/data/1/123.json +0 -1
  506. package/esm/.db/836077/data/15/0.json +0 -1
  507. package/esm/.db/837341/data/1/123.json +0 -1
  508. package/esm/.db/837591/data/0/0.json +0 -1
  509. package/esm/.db/837591/data/1/120.json +0 -1
  510. package/esm/.db/837591/data/1/123.json +0 -1
  511. package/esm/.db/844882/data/1/123.json +0 -1
  512. package/esm/.db/847654/data/1/example.json +0 -1
  513. package/esm/.db/856010/data/0/13315.json +0 -1
  514. package/esm/.db/856010/data/1/120.json +0 -1
  515. package/esm/.db/856010/data/1/123.json +0 -1
  516. package/esm/.db/856047/data/1/120.json +0 -1
  517. package/esm/.db/856047/data/1/123.json +0 -1
  518. package/esm/.db/856820/data/1/123.json +0 -1
  519. package/esm/.db/857266/data/1/123.json +0 -1
  520. package/esm/.db/86017/data/0/13315.json +0 -1
  521. package/esm/.db/86017/data/1/120.json +0 -1
  522. package/esm/.db/86017/data/1/123.json +0 -1
  523. package/esm/.db/862600/data/1/120.json +0 -1
  524. package/esm/.db/862600/data/1/123.json +0 -1
  525. package/esm/.db/871866/data/0/13315.json +0 -1
  526. package/esm/.db/871866/data/1/120.json +0 -1
  527. package/esm/.db/871866/data/1/123.json +0 -1
  528. package/esm/.db/875359/data/0/0.json +0 -1
  529. package/esm/.db/875359/data/1/120.json +0 -1
  530. package/esm/.db/875359/data/1/123.json +0 -1
  531. package/esm/.db/875359/data/3/104.json +0 -1
  532. package/esm/.db/876330/data/1/example.json +0 -1
  533. package/esm/.db/880182/data/1/123.json +0 -1
  534. package/esm/.db/882138/data/0/0.json +0 -1
  535. package/esm/.db/882138/data/1/120.json +0 -1
  536. package/esm/.db/882138/data/1/123.json +0 -1
  537. package/esm/.db/882722/data/1/example.json +0 -1
  538. package/esm/.db/885449/data/ppl/bob.json +0 -1
  539. package/esm/.db/893417/data/1/example.json +0 -1
  540. package/esm/.db/897575/data/1/example.json +0 -1
  541. package/esm/.db/897832/data/0/13315.json +0 -1
  542. package/esm/.db/897832/data/1/120.json +0 -1
  543. package/esm/.db/897832/data/1/123.json +0 -1
  544. package/esm/.db/898043/data/0/0.json +0 -1
  545. package/esm/.db/898043/data/1/120.json +0 -1
  546. package/esm/.db/898043/data/1/123.json +0 -1
  547. package/esm/.db/898201/data/ppl/bob.json +0 -1
  548. package/esm/.db/900442/data/1/123.json +0 -1
  549. package/esm/.db/900800/data/0/0.json +0 -1
  550. package/esm/.db/900800/data/1/120.json +0 -1
  551. package/esm/.db/900800/data/1/123.json +0 -1
  552. package/esm/.db/910535/data/1/120.json +0 -1
  553. package/esm/.db/910535/data/1/123.json +0 -1
  554. package/esm/.db/911132/data/1/120.json +0 -1
  555. package/esm/.db/911132/data/1/123.json +0 -1
  556. package/esm/.db/913152/data/1/120.json +0 -1
  557. package/esm/.db/913152/data/1/123.json +0 -1
  558. package/esm/.db/91378/data/1/123.json +0 -1
  559. package/esm/.db/918654/data/1/example.json +0 -1
  560. package/esm/.db/929039/data/ppl/bob.json +0 -1
  561. package/esm/.db/932648/data/1/123.json +0 -1
  562. package/esm/.db/936016/data/1/example.json +0 -1
  563. package/esm/.db/936843/data/1/123.json +0 -1
  564. package/esm/.db/940099/data/1/example.json +0 -1
  565. package/esm/.db/941807/data/1/120.json +0 -1
  566. package/esm/.db/941807/data/1/123.json +0 -1
  567. package/esm/.db/941934/data/0/14083.json +0 -1
  568. package/esm/.db/941934/data/1/120.json +0 -1
  569. package/esm/.db/941934/data/1/123.json +0 -1
  570. package/esm/.db/941934/data/15/0.json +0 -1
  571. package/esm/.db/943744/data/1/120.json +0 -1
  572. package/esm/.db/943744/data/1/123.json +0 -1
  573. package/esm/.db/955716/data/1/123.json +0 -1
  574. package/esm/.db/956030/data/1/123.json +0 -1
  575. package/esm/.db/956395/data/1/120.json +0 -1
  576. package/esm/.db/956395/data/1/123.json +0 -1
  577. package/esm/.db/956498/data/1/123.json +0 -1
  578. package/esm/.db/957435/data/1/123.json +0 -1
  579. package/esm/.db/958642/data/0/0.json +0 -1
  580. package/esm/.db/958642/data/1/120.json +0 -1
  581. package/esm/.db/958642/data/1/123.json +0 -1
  582. package/esm/.db/960302/data/1/example.json +0 -1
  583. package/esm/.db/964149/data/0/0.json +0 -1
  584. package/esm/.db/964149/data/1/120.json +0 -1
  585. package/esm/.db/964149/data/1/123.json +0 -1
  586. package/esm/.db/965213/data/0/13315.json +0 -1
  587. package/esm/.db/965213/data/1/120.json +0 -1
  588. package/esm/.db/965213/data/1/123.json +0 -1
  589. package/esm/.db/966774/data/1/120.json +0 -1
  590. package/esm/.db/966774/data/1/123.json +0 -1
  591. package/esm/.db/972484/data/1/123.json +0 -1
  592. package/esm/.db/973155/data/1/123.json +0 -1
  593. package/esm/.db/973642/data/1/123.json +0 -1
  594. package/esm/.db/975603/data/0/0.json +0 -1
  595. package/esm/.db/975603/data/1/120.json +0 -1
  596. package/esm/.db/975603/data/1/123.json +0 -1
  597. package/esm/.db/978900/data/0/0.json +0 -1
  598. package/esm/.db/978900/data/1/120.json +0 -1
  599. package/esm/.db/978900/data/1/123.json +0 -1
  600. package/esm/.db/979812/data/0/13315.json +0 -1
  601. package/esm/.db/979812/data/1/120.json +0 -1
  602. package/esm/.db/979812/data/1/123.json +0 -1
  603. package/esm/.db/985666/data/1/example.json +0 -1
  604. package/esm/.db/986784/data/0/0.json +0 -1
  605. package/esm/.db/986784/data/1/120.json +0 -1
  606. package/esm/.db/986784/data/1/123.json +0 -1
  607. package/esm/.db/988463/data/1/120.json +0 -1
  608. package/esm/.db/988463/data/1/123.json +0 -1
  609. package/esm/.db/990386/data/1/120.json +0 -1
  610. package/esm/.db/990386/data/1/123.json +0 -1
  611. package/esm/.db/994488/data/0/0.json +0 -1
  612. package/esm/.db/994488/data/1/120.json +0 -1
  613. package/esm/.db/994488/data/1/123.json +0 -1
  614. package/esm/.db/999130/data/ppl/bob.json +0 -1
@@ -20,8 +20,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
20
20
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
21
21
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
22
22
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
23
- function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
24
23
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
24
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
25
25
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
26
26
  function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
27
27
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
@@ -32,6 +32,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
32
32
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
33
33
  var pkg = (_WarpArBundles$defaul = WarpArBundles["default"]) !== null && _WarpArBundles$defaul !== void 0 ? _WarpArBundles$defaul : WarpArBundles;
34
34
  var DataItem = pkg.DataItem;
35
+ var count = 0;
35
36
  var _default = exports["default"] = function _default() {
36
37
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
37
38
  AR = _ref.AR,
@@ -100,24 +101,49 @@ var _default = exports["default"] = function _default() {
100
101
  var genMsg = /*#__PURE__*/function () {
101
102
  var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(Id, p, data, Tags, from, Owner) {
102
103
  var dry,
104
+ __tags,
105
+ cap,
106
+ _iterator,
107
+ _step,
108
+ _cap$v$name,
109
+ v,
103
110
  _args = arguments;
104
111
  return _regeneratorRuntime().wrap(function _callee$(_context) {
105
112
  while (1) switch (_context.prev = _context.next) {
106
113
  case 0:
107
114
  dry = _args.length > 6 && _args[6] !== undefined ? _args[6] : false;
108
115
  if (!dry) p.height += 1;
116
+ __tags = Tags !== null && Tags !== void 0 && Tags.length ? Tags : [];
117
+ cap = {
118
+ authority: "Authority",
119
+ action: "Action",
120
+ "on-boot": "On-Boot",
121
+ scheduler: "Scheduler",
122
+ module: "Module"
123
+ };
124
+ _iterator = _createForOfIteratorHelper(__tags);
125
+ try {
126
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
127
+ v = _step.value;
128
+ v.name = (_cap$v$name = cap[v.name]) !== null && _cap$v$name !== void 0 ? _cap$v$name : v.name;
129
+ }
130
+ } catch (err) {
131
+ _iterator.e(err);
132
+ } finally {
133
+ _iterator.f();
134
+ }
109
135
  _context.t0 = Id;
110
136
  _context.t1 = p.id;
111
137
  _context.t2 = Owner;
112
138
  _context.t3 = data !== null && data !== void 0 && data.length ? data : "";
113
- _context.next = 8;
139
+ _context.next = 12;
114
140
  return mem.get("height");
115
- case 8:
141
+ case 12:
116
142
  _context.t4 = _context.sent.toString();
117
143
  _context.t5 = Date.now().toString();
118
144
  _context.t6 = p.module;
119
145
  _context.t7 = from;
120
- _context.t8 = Tags !== null && Tags !== void 0 && Tags.length ? Tags : [];
146
+ _context.t8 = __tags;
121
147
  return _context.abrupt("return", {
122
148
  Id: _context.t0,
123
149
  Target: _context.t1,
@@ -130,7 +156,7 @@ var _default = exports["default"] = function _default() {
130
156
  Cron: false,
131
157
  Tags: _context.t8
132
158
  });
133
- case 14:
159
+ case 18:
134
160
  case "end":
135
161
  return _context.stop();
136
162
  }
@@ -256,21 +282,24 @@ var _default = exports["default"] = function _default() {
256
282
  }();
257
283
  var spawn = /*#__PURE__*/function () {
258
284
  var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
259
- var _opt$tags, _opt$memory;
285
+ var _opt$memory;
260
286
  var opt,
261
287
  _yield$mem$getWasm,
262
288
  mod,
263
289
  wasm,
264
290
  format,
265
- ex,
266
- _iterator,
267
- _step,
268
- v,
269
- _yield$ar$dataitem,
270
291
  id,
271
292
  owner,
272
293
  item,
273
294
  __tags,
295
+ msg_owner,
296
+ _yield$ar$httpmsg,
297
+ _opt$tags,
298
+ ex,
299
+ _iterator2,
300
+ _step2,
301
+ v,
302
+ _yield$ar$dataitem,
274
303
  now,
275
304
  t,
276
305
  ext,
@@ -319,6 +348,26 @@ var _default = exports["default"] = function _default() {
319
348
  mod = _yield$mem$getWasm.mod;
320
349
  wasm = _yield$mem$getWasm.wasm;
321
350
  format = _yield$mem$getWasm.format;
351
+ msg_owner = mu.addr;
352
+ if (!ar.isHttpMsg(opt.http_msg)) {
353
+ _context3.next = 26;
354
+ break;
355
+ }
356
+ ;
357
+ _context3.next = 16;
358
+ return ar.httpmsg(opt.http_msg);
359
+ case 16:
360
+ _yield$ar$httpmsg = _context3.sent;
361
+ owner = _yield$ar$httpmsg.owner;
362
+ item = _yield$ar$httpmsg.item;
363
+ __tags = _yield$ar$httpmsg.tags;
364
+ id = opt.http_msg.target;
365
+ opt.tags = (0, _utils.buildTags)(null, __tags);
366
+ opt.data = opt.http_msg.data;
367
+ msg_owner = owner;
368
+ _context3.next = 43;
369
+ break;
370
+ case 26:
322
371
  opt.tags = (0, _utils.buildTags)(null, (0, _ramda.mergeLeft)((0, _utils.tags)((_opt$tags = opt.tags) !== null && _opt$tags !== void 0 ? _opt$tags : []), {
323
372
  "Data-Protocol": "ao",
324
373
  Variant: "ao.TN.1",
@@ -330,16 +379,16 @@ var _default = exports["default"] = function _default() {
330
379
  Authority: mu.addr
331
380
  }));
332
381
  ex = false;
333
- _iterator = _createForOfIteratorHelper(opt.tags);
382
+ _iterator2 = _createForOfIteratorHelper(opt.tags);
334
383
  try {
335
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
336
- v = _step.value;
384
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
385
+ v = _step2.value;
337
386
  if (v.name === "Type") ex = true;
338
387
  }
339
388
  } catch (err) {
340
- _iterator.e(err);
389
+ _iterator2.e(err);
341
390
  } finally {
342
- _iterator.f();
391
+ _iterator2.f();
343
392
  }
344
393
  if (!ex) opt.tags.push({
345
394
  name: "Type",
@@ -349,14 +398,14 @@ var _default = exports["default"] = function _default() {
349
398
  name: "Pushed-For",
350
399
  value: opt["for"]
351
400
  });
352
- _context3.next = 19;
401
+ _context3.next = 34;
353
402
  return ar.dataitem({
354
403
  item: opt.item,
355
404
  data: opt.data,
356
405
  signer: opt.signer,
357
406
  tags: (0, _utils.tags)(opt.tags)
358
407
  });
359
- case 19:
408
+ case 34:
360
409
  _yield$ar$dataitem = _context3.sent;
361
410
  id = _yield$ar$dataitem.id;
362
411
  owner = _yield$ar$dataitem.owner;
@@ -364,23 +413,23 @@ var _default = exports["default"] = function _default() {
364
413
  __tags = _yield$ar$dataitem.tags;
365
414
  opt.tags = (0, _utils.buildTags)(null, __tags);
366
415
  if (opt.item) opt.data = _base64url["default"].decode(item.data);
367
- _context3.next = 28;
416
+ _context3.next = 43;
368
417
  return ar.postItems(item, su.jwk);
369
- case 28:
418
+ case 43:
370
419
  now = Date.now;
371
420
  t = (0, _utils.tags)(opt.tags);
372
421
  ext = t.Extension || "WeaveDrive";
373
422
  wdrive = extensions[ext];
374
423
  handle = null;
375
- _context3.prev = 33;
424
+ _context3.prev = 48;
376
425
  _context3.t0 = AoLoader;
377
426
  _context3.t1 = wasm;
378
427
  _context3.t2 = format;
379
428
  _context3.t3 = wdrive;
380
429
  _context3.t4 = item;
381
- _context3.next = 41;
430
+ _context3.next = 56;
382
431
  return mem.getTx(mod);
383
- case 41:
432
+ case 56:
384
433
  _context3.t5 = _context3.sent;
385
434
  _context3.t6 = {
386
435
  format: _context3.t2,
@@ -388,22 +437,23 @@ var _default = exports["default"] = function _default() {
388
437
  spawn: _context3.t4,
389
438
  module: _context3.t5
390
439
  };
391
- _context3.next = 45;
440
+ _context3.next = 60;
392
441
  return (0, _context3.t0)(_context3.t1, _context3.t6);
393
- case 45:
442
+ case 60:
394
443
  handle = _context3.sent;
395
- _context3.next = 50;
444
+ _context3.next = 66;
396
445
  break;
397
- case 48:
398
- _context3.prev = 48;
399
- _context3.t7 = _context3["catch"](33);
400
- case 50:
446
+ case 63:
447
+ _context3.prev = 63;
448
+ _context3.t7 = _context3["catch"](48);
449
+ console.log(mod, _context3.t7);
450
+ case 66:
401
451
  if (handle) {
402
- _context3.next = 52;
452
+ _context3.next = 68;
403
453
  break;
404
454
  }
405
455
  return _context3.abrupt("return", null);
406
- case 52:
456
+ case 68:
407
457
  _module = null;
408
458
  _module = {
409
459
  handle: handle,
@@ -427,126 +477,126 @@ var _default = exports["default"] = function _default() {
427
477
  results: [id]
428
478
  };
429
479
  if (!memory) {
430
- _context3.next = 62;
480
+ _context3.next = 78;
431
481
  break;
432
482
  }
433
- _context3.next = 103;
483
+ _context3.next = 119;
434
484
  break;
435
- case 62:
485
+ case 78:
436
486
  if (!(_tags["On-Boot"] || true)) {
437
- _context3.next = 102;
487
+ _context3.next = 118;
438
488
  break;
439
489
  }
440
490
  data = "";
441
491
  if (!(_tags["On-Boot"] === "Data")) {
442
- _context3.next = 68;
492
+ _context3.next = 84;
443
493
  break;
444
494
  }
445
495
  data = (_opt$data = opt.data) !== null && _opt$data !== void 0 ? _opt$data : "";
446
- _context3.next = 89;
496
+ _context3.next = 105;
447
497
  break;
448
- case 68:
449
- _context3.next = 70;
498
+ case 84:
499
+ _context3.next = 86;
450
500
  return mem.get("msgs", _tags["On-Boot"]);
451
- case 70:
501
+ case 86:
452
502
  _context3.t10 = _yield$mem$get = _context3.sent;
453
503
  _context3.t9 = _context3.t10 === null;
454
504
  if (_context3.t9) {
455
- _context3.next = 74;
505
+ _context3.next = 90;
456
506
  break;
457
507
  }
458
508
  _context3.t9 = _yield$mem$get === void 0;
459
- case 74:
509
+ case 90:
460
510
  if (!_context3.t9) {
461
- _context3.next = 78;
511
+ _context3.next = 94;
462
512
  break;
463
513
  }
464
514
  _context3.t11 = void 0;
465
- _context3.next = 79;
515
+ _context3.next = 95;
466
516
  break;
467
- case 78:
517
+ case 94:
468
518
  _context3.t11 = _yield$mem$get.data;
469
- case 79:
519
+ case 95:
470
520
  _context3.t12 = _yield$mem$get$data = _context3.t11;
471
521
  _context3.t8 = _context3.t12 !== null;
472
522
  if (!_context3.t8) {
473
- _context3.next = 83;
523
+ _context3.next = 99;
474
524
  break;
475
525
  }
476
526
  _context3.t8 = _yield$mem$get$data !== void 0;
477
- case 83:
527
+ case 99:
478
528
  if (!_context3.t8) {
479
- _context3.next = 87;
529
+ _context3.next = 103;
480
530
  break;
481
531
  }
482
532
  _context3.t13 = _yield$mem$get$data;
483
- _context3.next = 88;
533
+ _context3.next = 104;
484
534
  break;
485
- case 87:
535
+ case 103:
486
536
  _context3.t13 = "";
487
- case 88:
537
+ case 104:
488
538
  data = _context3.t13;
489
- case 89:
490
- _context3.next = 91;
491
- return genMsg(id, p, data, opt.tags, owner, mu.addr, true);
492
- case 91:
539
+ case 105:
540
+ _context3.next = 107;
541
+ return genMsg(id, p, data, opt.tags, owner, msg_owner, true);
542
+ case 107:
493
543
  msg = _context3.sent;
494
- _context3.next = 94;
544
+ _context3.next = 110;
495
545
  return genEnv({
496
546
  pid: p.id,
497
547
  owner: p.owner,
498
548
  module: p.module
499
549
  });
500
- case 94:
550
+ case 110:
501
551
  _env = _context3.sent;
502
- _context3.next = 97;
552
+ _context3.next = 113;
503
553
  return _module.handle(null, msg, _env);
504
- case 97:
554
+ case 113:
505
555
  res = _context3.sent;
506
556
  p.memory = res.Memory;
507
557
  delete res.Memory;
508
- _context3.next = 103;
558
+ _context3.next = 119;
509
559
  break;
510
- case 102:
560
+ case 118:
511
561
  p.height += 1;
512
- case 103:
562
+ case 119:
513
563
  _msg = _objectSpread(_objectSpread({}, (0, _ramda.o)((0, _ramda.dissoc)("signer"), (0, _ramda.dissoc)("memory"))(opt)), {}, {
514
564
  res: res
515
565
  });
516
- _context3.next = 106;
566
+ _context3.next = 122;
517
567
  return mem.set(_msg, "msgs", id);
518
- case 106:
568
+ case 122:
519
569
  if (!_tags["Cron-Interval"]) {
520
- _context3.next = 130;
570
+ _context3.next = 146;
521
571
  break;
522
572
  }
523
573
  _tags$CronInterval$s = _tags["Cron-Interval"].split("-"), _tags$CronInterval$s2 = _slicedToArray(_tags$CronInterval$s, 2), num = _tags$CronInterval$s2[0], unit = _tags$CronInterval$s2[1];
524
574
  _int = 0;
525
575
  _context3.t14 = unit.replace(/s$/, "");
526
- _context3.next = _context3.t14 === "millisecond" ? 112 : _context3.t14 === "second" ? 114 : _context3.t14 === "minute" ? 116 : _context3.t14 === "hour" ? 118 : _context3.t14 === "day" ? 120 : _context3.t14 === "month" ? 122 : _context3.t14 === "year" ? 124 : 126;
576
+ _context3.next = _context3.t14 === "millisecond" ? 128 : _context3.t14 === "second" ? 130 : _context3.t14 === "minute" ? 132 : _context3.t14 === "hour" ? 134 : _context3.t14 === "day" ? 136 : _context3.t14 === "month" ? 138 : _context3.t14 === "year" ? 140 : 142;
527
577
  break;
528
- case 112:
578
+ case 128:
529
579
  _int = num;
530
- return _context3.abrupt("break", 126);
531
- case 114:
580
+ return _context3.abrupt("break", 142);
581
+ case 130:
532
582
  _int = num * 1000;
533
- return _context3.abrupt("break", 126);
534
- case 116:
583
+ return _context3.abrupt("break", 142);
584
+ case 132:
535
585
  _int = num * 1000 * 60;
536
- return _context3.abrupt("break", 126);
537
- case 118:
586
+ return _context3.abrupt("break", 142);
587
+ case 134:
538
588
  _int = num * 1000 * 60 * 60;
539
- return _context3.abrupt("break", 126);
540
- case 120:
589
+ return _context3.abrupt("break", 142);
590
+ case 136:
541
591
  _int = num * 1000 * 60 * 60 * 24;
542
- return _context3.abrupt("break", 126);
543
- case 122:
592
+ return _context3.abrupt("break", 142);
593
+ case 138:
544
594
  _int = num * 1000 * 60 * 60 * 24 * 30;
545
- return _context3.abrupt("break", 126);
546
- case 124:
595
+ return _context3.abrupt("break", 142);
596
+ case 140:
547
597
  _int = num * 1000 * 60 * 60 * 24 * 365;
548
- return _context3.abrupt("break", 126);
549
- case 126:
598
+ return _context3.abrupt("break", 142);
599
+ case 142:
550
600
  cronTags = [];
551
601
  for (_k in _tags) {
552
602
  if (/^Cron-Tag-/.test(_k)) {
@@ -558,16 +608,16 @@ var _default = exports["default"] = function _default() {
558
608
  }
559
609
  p.cronTags = cronTags;
560
610
  p.span = _int;
561
- case 130:
562
- _context3.next = 132;
611
+ case 146:
612
+ _context3.next = 148;
563
613
  return mem.set(p, "env", id);
564
- case 132:
614
+ case 148:
565
615
  return _context3.abrupt("return", id);
566
- case 133:
616
+ case 149:
567
617
  case "end":
568
618
  return _context3.stop();
569
619
  }
570
- }, _callee3, null, [[33, 48]]);
620
+ }, _callee3, null, [[48, 63]]);
571
621
  }));
572
622
  return function spawn() {
573
623
  return _ref8.apply(this, arguments);
@@ -585,7 +635,7 @@ var _default = exports["default"] = function _default() {
585
635
  var _assign = /*#__PURE__*/function () {
586
636
  var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(opt) {
587
637
  var _opt$tags2;
588
- var p, _opt, hash, _yield$ar$dataitem2, id, owner, item, _opt$data2, _ref10, _opt$from, _res$Messages, _res$Spawns, _res$Assignments, data, _tags, from, raw_owner, hashBuffer, msg, _env, _yield$mem$getWasm2, format, mod, wasm, wdrive, res, _msg, _iterator2, _step2, v, _iterator3, _step3, _v, __tags, _iterator4, _step4, _v2, _iterator5, _step5, v2;
638
+ var p, _opt, hash, _yield$ar$dataitem2, id, owner, item, _opt$data2, _ref10, _opt$from, _res$Messages, _res$Spawns, _res$Assignments, data, _tags, from, raw_owner, hashBuffer, msg, _env, _yield$mem$getWasm2, format, mod, wasm, wdrive, res, _msg, _iterator3, _step3, v, _iterator4, _step4, _v, __tags, _iterator5, _step5, _v2, _iterator6, _step6, v2;
589
639
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
590
640
  while (1) switch (_context4.prev = _context4.next) {
591
641
  case 0:
@@ -753,15 +803,15 @@ var _default = exports["default"] = function _default() {
753
803
  _context4.next = 99;
754
804
  return mem.set(_msg, "msgs", opt.message);
755
805
  case 99:
756
- _iterator2 = _createForOfIteratorHelper((_res$Messages = res.Messages) !== null && _res$Messages !== void 0 ? _res$Messages : []);
806
+ _iterator3 = _createForOfIteratorHelper((_res$Messages = res.Messages) !== null && _res$Messages !== void 0 ? _res$Messages : []);
757
807
  _context4.prev = 100;
758
- _iterator2.s();
808
+ _iterator3.s();
759
809
  case 102:
760
- if ((_step2 = _iterator2.n()).done) {
810
+ if ((_step3 = _iterator3.n()).done) {
761
811
  _context4.next = 111;
762
812
  break;
763
813
  }
764
- v = _step2.value;
814
+ v = _step3.value;
765
815
  _context4.next = 106;
766
816
  return mem.get("env", v.Target);
767
817
  case 106:
@@ -787,21 +837,21 @@ var _default = exports["default"] = function _default() {
787
837
  case 113:
788
838
  _context4.prev = 113;
789
839
  _context4.t21 = _context4["catch"](100);
790
- _iterator2.e(_context4.t21);
840
+ _iterator3.e(_context4.t21);
791
841
  case 116:
792
842
  _context4.prev = 116;
793
- _iterator2.f();
843
+ _iterator3.f();
794
844
  return _context4.finish(116);
795
845
  case 119:
796
- _iterator3 = _createForOfIteratorHelper((_res$Spawns = res.Spawns) !== null && _res$Spawns !== void 0 ? _res$Spawns : []);
846
+ _iterator4 = _createForOfIteratorHelper((_res$Spawns = res.Spawns) !== null && _res$Spawns !== void 0 ? _res$Spawns : []);
797
847
  _context4.prev = 120;
798
- _iterator3.s();
848
+ _iterator4.s();
799
849
  case 122:
800
- if ((_step3 = _iterator3.n()).done) {
850
+ if ((_step4 = _iterator4.n()).done) {
801
851
  _context4.next = 129;
802
852
  break;
803
853
  }
804
- _v = _step3.value;
854
+ _v = _step4.value;
805
855
  __tags = (0, _utils.tags)(_v.Tags);
806
856
  _context4.next = 127;
807
857
  return spawn({
@@ -822,30 +872,30 @@ var _default = exports["default"] = function _default() {
822
872
  case 131:
823
873
  _context4.prev = 131;
824
874
  _context4.t22 = _context4["catch"](120);
825
- _iterator3.e(_context4.t22);
875
+ _iterator4.e(_context4.t22);
826
876
  case 134:
827
877
  _context4.prev = 134;
828
- _iterator3.f();
878
+ _iterator4.f();
829
879
  return _context4.finish(134);
830
880
  case 137:
831
- _iterator4 = _createForOfIteratorHelper((_res$Assignments = res.Assignments) !== null && _res$Assignments !== void 0 ? _res$Assignments : []);
881
+ _iterator5 = _createForOfIteratorHelper((_res$Assignments = res.Assignments) !== null && _res$Assignments !== void 0 ? _res$Assignments : []);
832
882
  _context4.prev = 138;
833
- _iterator4.s();
883
+ _iterator5.s();
834
884
  case 140:
835
- if ((_step4 = _iterator4.n()).done) {
885
+ if ((_step5 = _iterator5.n()).done) {
836
886
  _context4.next = 161;
837
887
  break;
838
888
  }
839
- _v2 = _step4.value;
840
- _iterator5 = _createForOfIteratorHelper(_v2.Processes);
889
+ _v2 = _step5.value;
890
+ _iterator6 = _createForOfIteratorHelper(_v2.Processes);
841
891
  _context4.prev = 143;
842
- _iterator5.s();
892
+ _iterator6.s();
843
893
  case 145:
844
- if ((_step5 = _iterator5.n()).done) {
894
+ if ((_step6 = _iterator6.n()).done) {
845
895
  _context4.next = 151;
846
896
  break;
847
897
  }
848
- v2 = _step5.value;
898
+ v2 = _step6.value;
849
899
  _context4.next = 149;
850
900
  return _assign({
851
901
  message: _v2.Message,
@@ -862,10 +912,10 @@ var _default = exports["default"] = function _default() {
862
912
  case 153:
863
913
  _context4.prev = 153;
864
914
  _context4.t23 = _context4["catch"](143);
865
- _iterator5.e(_context4.t23);
915
+ _iterator6.e(_context4.t23);
866
916
  case 156:
867
917
  _context4.prev = 156;
868
- _iterator5.f();
918
+ _iterator6.f();
869
919
  return _context4.finish(156);
870
920
  case 159:
871
921
  _context4.next = 140;
@@ -876,10 +926,10 @@ var _default = exports["default"] = function _default() {
876
926
  case 163:
877
927
  _context4.prev = 163;
878
928
  _context4.t24 = _context4["catch"](138);
879
- _iterator4.e(_context4.t24);
929
+ _iterator5.e(_context4.t24);
880
930
  case 166:
881
931
  _context4.prev = 166;
882
- _iterator4.f();
932
+ _iterator5.f();
883
933
  return _context4.finish(166);
884
934
  case 169:
885
935
  return _context4.abrupt("return", id);
@@ -901,8 +951,7 @@ var _default = exports["default"] = function _default() {
901
951
  }();
902
952
  var message = /*#__PURE__*/function () {
903
953
  var _ref11 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(opt) {
904
- var _opt$item$id, _opt$item, _opt$owner;
905
- var p, ex, id, owner, item, _opt$tags3, _iterator6, _step6, v, _yield$mem$getTx$tags3, _yield$mem$getTx3, pr, module, _yield$ar$dataitem3, _msg;
954
+ var p, id, owner, item, _yield$ar$httpmsg2, _opt$item$id, _opt$item, _opt$owner, _id, _owner, _item, _opt$tags3, _yield$mem$getTx$tags3, _yield$mem$getTx3, pr, module, _yield$ar$dataitem3, _msg, _opt, _ref12, _opt$from2, _opt$http_msg$data, from, data, _tags, msg, _env, _yield$mem$getWasm3, format, mod, wasm, wdrive, res, _msg2;
906
955
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
907
956
  while (1) switch (_context5.prev = _context5.next) {
908
957
  case 0:
@@ -916,24 +965,31 @@ var _default = exports["default"] = function _default() {
916
965
  }
917
966
  return _context5.abrupt("return", null);
918
967
  case 5:
919
- ex = false;
920
- id = (_opt$item$id = opt === null || opt === void 0 || (_opt$item = opt.item) === null || _opt$item === void 0 ? void 0 : _opt$item.id) !== null && _opt$item$id !== void 0 ? _opt$item$id : "";
921
- owner = (_opt$owner = opt.owner) !== null && _opt$owner !== void 0 ? _opt$owner : "";
922
- item = opt.item;
923
- if (!(!opt.item && opt.signer)) {
924
- _context5.next = 46;
968
+ id = "";
969
+ owner = "";
970
+ item = null;
971
+ if (!ar.isHttpMsg(opt.http_msg)) {
972
+ _context5.next = 18;
925
973
  break;
926
974
  }
927
- _iterator6 = _createForOfIteratorHelper(opt.tags);
928
- try {
929
- for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
930
- v = _step6.value;
931
- if (v.name === "Type") ex = true;
932
- }
933
- } catch (err) {
934
- _iterator6.e(err);
935
- } finally {
936
- _iterator6.f();
975
+ ;
976
+ _context5.next = 12;
977
+ return ar.httpmsg(opt.http_msg);
978
+ case 12:
979
+ _yield$ar$httpmsg2 = _context5.sent;
980
+ owner = _yield$ar$httpmsg2.owner;
981
+ item = _yield$ar$httpmsg2.item;
982
+ id = opt.http_msg.target;
983
+ _context5.next = 21;
984
+ break;
985
+ case 18:
986
+ _id = (_opt$item$id = opt === null || opt === void 0 || (_opt$item = opt.item) === null || _opt$item === void 0 ? void 0 : _opt$item.id) !== null && _opt$item$id !== void 0 ? _opt$item$id : "";
987
+ _owner = (_opt$owner = opt.owner) !== null && _opt$owner !== void 0 ? _opt$owner : "";
988
+ _item = opt.item;
989
+ case 21:
990
+ if (!(!opt.item && opt.signer)) {
991
+ _context5.next = 56;
992
+ break;
937
993
  }
938
994
  opt.tags = (0, _utils.buildTags)(null, (0, _ramda.mergeLeft)((0, _utils.tags)((_opt$tags3 = opt.tags) !== null && _opt$tags3 !== void 0 ? _opt$tags3 : []), {
939
995
  "Data-Protocol": "ao",
@@ -942,7 +998,7 @@ var _default = exports["default"] = function _default() {
942
998
  SDK: "aoconnect"
943
999
  }));
944
1000
  if (!opt["for"]) {
945
- _context5.next = 39;
1001
+ _context5.next = 49;
946
1002
  break;
947
1003
  }
948
1004
  opt.tags.push({
@@ -953,71 +1009,155 @@ var _default = exports["default"] = function _default() {
953
1009
  name: "From-Process",
954
1010
  value: opt.from
955
1011
  });
956
- _context5.next = 18;
1012
+ _context5.next = 28;
957
1013
  return mem.getTx(opt.from);
958
- case 18:
1014
+ case 28:
959
1015
  _context5.t2 = _yield$mem$getTx3 = _context5.sent;
960
1016
  _context5.t1 = _context5.t2 === null;
961
1017
  if (_context5.t1) {
962
- _context5.next = 22;
1018
+ _context5.next = 32;
963
1019
  break;
964
1020
  }
965
1021
  _context5.t1 = _yield$mem$getTx3 === void 0;
966
- case 22:
1022
+ case 32:
967
1023
  if (!_context5.t1) {
968
- _context5.next = 26;
1024
+ _context5.next = 36;
969
1025
  break;
970
1026
  }
971
1027
  _context5.t3 = void 0;
972
- _context5.next = 27;
1028
+ _context5.next = 37;
973
1029
  break;
974
- case 26:
1030
+ case 36:
975
1031
  _context5.t3 = _yield$mem$getTx3.tags;
976
- case 27:
1032
+ case 37:
977
1033
  _context5.t4 = _yield$mem$getTx$tags3 = _context5.t3;
978
1034
  _context5.t0 = _context5.t4 !== null;
979
1035
  if (!_context5.t0) {
980
- _context5.next = 31;
1036
+ _context5.next = 41;
981
1037
  break;
982
1038
  }
983
1039
  _context5.t0 = _yield$mem$getTx$tags3 !== void 0;
984
- case 31:
1040
+ case 41:
985
1041
  if (!_context5.t0) {
986
- _context5.next = 35;
1042
+ _context5.next = 45;
987
1043
  break;
988
1044
  }
989
1045
  _context5.t5 = _yield$mem$getTx$tags3;
990
- _context5.next = 36;
1046
+ _context5.next = 46;
991
1047
  break;
992
- case 35:
1048
+ case 45:
993
1049
  _context5.t5 = [];
994
- case 36:
1050
+ case 46:
995
1051
  pr = _context5.t5;
996
1052
  module = (0, _utils.tags)(pr).Module;
997
1053
  if (module) opt.tags.push({
998
1054
  name: "From-Module",
999
1055
  value: module
1000
1056
  });
1001
- case 39:
1057
+ case 49:
1002
1058
  ;
1003
- _context5.next = 42;
1059
+ _context5.next = 52;
1004
1060
  return ar.dataitem({
1005
1061
  data: opt.data,
1006
1062
  signer: opt.signer,
1007
1063
  tags: (0, _utils.tags)(opt.tags),
1008
1064
  target: opt.process
1009
1065
  });
1010
- case 42:
1066
+ case 52:
1011
1067
  _yield$ar$dataitem3 = _context5.sent;
1012
1068
  item = _yield$ar$dataitem3.item;
1013
1069
  id = _yield$ar$dataitem3.id;
1014
1070
  owner = _yield$ar$dataitem3.owner;
1015
- case 46:
1071
+ case 56:
1016
1072
  _msg = (0, _ramda.dissoc)("signer", opt);
1017
- _context5.next = 49;
1073
+ _context5.next = 59;
1018
1074
  return mem.set(_msg, "msgs", id);
1019
- case 49:
1020
- _context5.next = 51;
1075
+ case 59:
1076
+ if (!ar.isHttpMsg(opt.http_msg)) {
1077
+ _context5.next = 114;
1078
+ break;
1079
+ }
1080
+ p.epochs.push([id]);
1081
+ _opt = opt;
1082
+ _context5.prev = 62;
1083
+ // todo: not sure if this is correct
1084
+ from = (_ref12 = (_opt$from2 = _opt.from) !== null && _opt$from2 !== void 0 ? _opt$from2 : opt.from) !== null && _ref12 !== void 0 ? _ref12 : owner;
1085
+ data = (_opt$http_msg$data = opt.http_msg.data) !== null && _opt$http_msg$data !== void 0 ? _opt$http_msg$data : "";
1086
+ _tags = _opt.http_msg.tags; // todo: check if owner=mu.addr right?
1087
+ _context5.next = 68;
1088
+ return genMsg(opt.http_msg, p, data, _tags, from, owner);
1089
+ case 68:
1090
+ msg = _context5.sent;
1091
+ _context5.next = 71;
1092
+ return genEnv({
1093
+ pid: p.id,
1094
+ owner: p.owner,
1095
+ module: p.module
1096
+ });
1097
+ case 71:
1098
+ _env = _context5.sent;
1099
+ if (p.handle) {
1100
+ _context5.next = 95;
1101
+ break;
1102
+ }
1103
+ _context5.next = 75;
1104
+ return mem.getWasm(p.modulea);
1105
+ case 75:
1106
+ _yield$mem$getWasm3 = _context5.sent;
1107
+ format = _yield$mem$getWasm3.format;
1108
+ mod = _yield$mem$getWasm3.mod;
1109
+ wasm = _yield$mem$getWasm3.wasm;
1110
+ wdrive = extensions[p.extention];
1111
+ _context5.t6 = AoLoader;
1112
+ _context5.t7 = wasm;
1113
+ _context5.t8 = format;
1114
+ _context5.t9 = wdrive;
1115
+ _context5.next = 86;
1116
+ return mem.getTx(p.id);
1117
+ case 86:
1118
+ _context5.t10 = _context5.sent.item;
1119
+ _context5.next = 89;
1120
+ return mem.getTx(mod);
1121
+ case 89:
1122
+ _context5.t11 = _context5.sent;
1123
+ _context5.t12 = {
1124
+ format: _context5.t8,
1125
+ WeaveDrive: _context5.t9,
1126
+ spawn: _context5.t10,
1127
+ module: _context5.t11
1128
+ };
1129
+ _context5.next = 93;
1130
+ return (0, _context5.t6)(_context5.t7, _context5.t12);
1131
+ case 93:
1132
+ p.handle = _context5.sent;
1133
+ mem.env[opt.process].handle = p.handle;
1134
+ case 95:
1135
+ _context5.next = 97;
1136
+ return p.handle(p.memory, msg, _env);
1137
+ case 97:
1138
+ res = _context5.sent;
1139
+ p.memory = res.Memory;
1140
+ delete res.Memory;
1141
+ p.results.push(id);
1142
+ _context5.next = 103;
1143
+ return mem.set(p, "env", opt.process);
1144
+ case 103:
1145
+ _msg2 = _objectSpread(_objectSpread({}, (0, _ramda.dissoc)("signer", _opt)), {}, {
1146
+ res: res
1147
+ });
1148
+ _context5.next = 106;
1149
+ return mem.set(_msg2, "msgs", id);
1150
+ case 106:
1151
+ return _context5.abrupt("return", id);
1152
+ case 109:
1153
+ _context5.prev = 109;
1154
+ _context5.t13 = _context5["catch"](62);
1155
+ console.log(_context5.t13);
1156
+ case 112:
1157
+ _context5.next = 116;
1158
+ break;
1159
+ case 114:
1160
+ _context5.next = 116;
1021
1161
  return _assign({
1022
1162
  message_item: item,
1023
1163
  message: id,
@@ -1025,20 +1165,20 @@ var _default = exports["default"] = function _default() {
1025
1165
  from: owner,
1026
1166
  signer: mu.signer
1027
1167
  });
1028
- case 51:
1168
+ case 116:
1029
1169
  return _context5.abrupt("return", id);
1030
- case 52:
1170
+ case 117:
1031
1171
  case "end":
1032
1172
  return _context5.stop();
1033
1173
  }
1034
- }, _callee5);
1174
+ }, _callee5, null, [[62, 109]]);
1035
1175
  }));
1036
1176
  return function message(_x9) {
1037
1177
  return _ref11.apply(this, arguments);
1038
1178
  };
1039
1179
  }();
1040
1180
  var result = /*#__PURE__*/function () {
1041
- var _ref12 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(opt) {
1181
+ var _ref13 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(opt) {
1042
1182
  var _yield$mem$get2;
1043
1183
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
1044
1184
  while (1) switch (_context6.prev = _context6.next) {
@@ -1072,7 +1212,7 @@ var _default = exports["default"] = function _default() {
1072
1212
  }, _callee6);
1073
1213
  }));
1074
1214
  return function result(_x10) {
1075
- return _ref12.apply(this, arguments);
1215
+ return _ref13.apply(this, arguments);
1076
1216
  };
1077
1217
  }();
1078
1218
  return {
@@ -1148,7 +1288,7 @@ var _default = exports["default"] = function _default() {
1148
1288
  result: result,
1149
1289
  results: function () {
1150
1290
  var _results = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(opt) {
1151
- var p, results, _ref14, _ref14$from, from, _ref14$to, to, _ref14$sort, sort, _ref14$limit, limit, _res, count, started, _iterator7, _step7, v;
1291
+ var p, results, _ref15, _ref15$from, from, _ref15$to, to, _ref15$sort, sort, _ref15$limit, limit, _res, count, started, _iterator7, _step7, v;
1152
1292
  return _regeneratorRuntime().wrap(function _callee10$(_context10) {
1153
1293
  while (1) switch (_context10.prev = _context10.next) {
1154
1294
  case 0:
@@ -1165,7 +1305,7 @@ var _default = exports["default"] = function _default() {
1165
1305
  });
1166
1306
  case 5:
1167
1307
  results = (p === null || p === void 0 ? void 0 : p.results) || [];
1168
- _ref14 = opt || {}, _ref14$from = _ref14.from, from = _ref14$from === void 0 ? null : _ref14$from, _ref14$to = _ref14.to, to = _ref14$to === void 0 ? null : _ref14$to, _ref14$sort = _ref14.sort, sort = _ref14$sort === void 0 ? "ASC" : _ref14$sort, _ref14$limit = _ref14.limit, limit = _ref14$limit === void 0 ? 25 : _ref14$limit;
1308
+ _ref15 = opt || {}, _ref15$from = _ref15.from, from = _ref15$from === void 0 ? null : _ref15$from, _ref15$to = _ref15.to, to = _ref15$to === void 0 ? null : _ref15$to, _ref15$sort = _ref15.sort, sort = _ref15$sort === void 0 ? "ASC" : _ref15$sort, _ref15$limit = _ref15.limit, limit = _ref15$limit === void 0 ? 25 : _ref15$limit;
1169
1309
  if (sort === "DESC") results = (0, _ramda.reverse)(results);
1170
1310
  _res = [];
1171
1311
  count = 0;
@@ -1245,7 +1385,7 @@ var _default = exports["default"] = function _default() {
1245
1385
  dryrun: function () {
1246
1386
  var _dryrun = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(opt) {
1247
1387
  var _opt$id, _opt$owner2;
1248
- var p, id, owner, _yield$ar$dataitem4, _opt$data3, cloneMemory, msg, _env, _yield$mem$getWasm3, format, mod, wasm, wdrive, res;
1388
+ var p, id, owner, _yield$ar$dataitem4, _opt$data3, cloneMemory, msg, _env, _yield$mem$getWasm4, format, mod, wasm, wdrive, res;
1249
1389
  return _regeneratorRuntime().wrap(function _callee11$(_context11) {
1250
1390
  while (1) switch (_context11.prev = _context11.next) {
1251
1391
  case 0:
@@ -1260,7 +1400,7 @@ var _default = exports["default"] = function _default() {
1260
1400
  return _context11.abrupt("return", null);
1261
1401
  case 5:
1262
1402
  id = (_opt$id = opt.id) !== null && _opt$id !== void 0 ? _opt$id : "";
1263
- owner = (_opt$owner2 = opt.owner) !== null && _opt$owner2 !== void 0 ? _opt$owner2 : "";
1403
+ owner = (_opt$owner2 = opt.owner) !== null && _opt$owner2 !== void 0 ? _opt$owner2 : mu.addr;
1264
1404
  if (!(!opt.id && opt.signer)) {
1265
1405
  _context11.next = 14;
1266
1406
  break;
@@ -1285,7 +1425,7 @@ var _default = exports["default"] = function _default() {
1285
1425
  });
1286
1426
  };
1287
1427
  _context11.next = 18;
1288
- return genMsg(id, p, (_opt$data3 = opt.data) !== null && _opt$data3 !== void 0 ? _opt$data3 : "", opt.tags, owner, mu.addr, true);
1428
+ return genMsg(id, p, (_opt$data3 = opt.data) !== null && _opt$data3 !== void 0 ? _opt$data3 : "", opt.tags, owner, owner, true);
1289
1429
  case 18:
1290
1430
  msg = _context11.sent;
1291
1431
  _context11.next = 21;
@@ -1303,10 +1443,10 @@ var _default = exports["default"] = function _default() {
1303
1443
  _context11.next = 25;
1304
1444
  return mem.getWasm(p.module);
1305
1445
  case 25:
1306
- _yield$mem$getWasm3 = _context11.sent;
1307
- format = _yield$mem$getWasm3.format;
1308
- mod = _yield$mem$getWasm3.mod;
1309
- wasm = _yield$mem$getWasm3.wasm;
1446
+ _yield$mem$getWasm4 = _context11.sent;
1447
+ format = _yield$mem$getWasm4.format;
1448
+ mod = _yield$mem$getWasm4.mod;
1449
+ wasm = _yield$mem$getWasm4.wasm;
1310
1450
  wdrive = extensions[p.extention];
1311
1451
  _context11.t0 = AoLoader;
1312
1452
  _context11.t1 = wasm;