@cloudbase/js-sdk 3.4.6 → 3.4.7

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 (779) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/ai/dist/index.esm.js +2 -3
  3. package/ai/dist/index.esm.js.map +1 -0
  4. package/ai/dist/index.js +2 -21
  5. package/ai/dist/index.js.map +1 -0
  6. package/apis/dist/index.esm.js +2 -3
  7. package/apis/dist/index.esm.js.map +1 -0
  8. package/apis/dist/index.js +2 -21
  9. package/apis/dist/index.js.map +1 -0
  10. package/app/dist/index.esm.js +2 -11
  11. package/app/dist/index.esm.js.map +1 -0
  12. package/app/dist/index.js +2 -18
  13. package/app/dist/index.js.map +1 -0
  14. package/auth/dist/index.esm.js +3 -8
  15. package/auth/dist/index.esm.js.LICENSE.txt +12 -0
  16. package/auth/dist/index.esm.js.map +1 -0
  17. package/auth/dist/index.js +3 -13
  18. package/auth/dist/index.js.LICENSE.txt +12 -0
  19. package/auth/dist/index.js.map +1 -0
  20. package/cloudrun/dist/index.esm.js +2 -3
  21. package/cloudrun/dist/index.esm.js.map +1 -0
  22. package/cloudrun/dist/index.js +2 -21
  23. package/cloudrun/dist/index.js.map +1 -0
  24. package/container/dist/index.esm.js +2 -8
  25. package/container/dist/index.esm.js.map +1 -0
  26. package/container/dist/index.js +2 -13
  27. package/container/dist/index.js.map +1 -0
  28. package/database/package.json +34 -4
  29. package/dist/index.cjs.js +3 -38
  30. package/dist/index.cjs.js.LICENSE.txt +12 -0
  31. package/dist/index.cjs.js.map +1 -0
  32. package/dist/index.esm.js +3 -33
  33. package/dist/index.esm.js.LICENSE.txt +12 -0
  34. package/dist/index.esm.js.map +1 -0
  35. package/functions/dist/index.esm.js +2 -8
  36. package/functions/dist/index.esm.js.map +1 -0
  37. package/functions/dist/index.js +2 -13
  38. package/functions/dist/index.js.map +1 -0
  39. package/miniprogram_dist/ai.js +1 -1
  40. package/miniprogram_dist/apis.js +1 -1
  41. package/miniprogram_dist/app.js +1 -1
  42. package/miniprogram_dist/auth.js +1 -1
  43. package/miniprogram_dist/cloudrun.js +1 -1
  44. package/miniprogram_dist/container.js +1 -1
  45. package/miniprogram_dist/database.js +1 -1
  46. package/miniprogram_dist/functions.js +1 -1
  47. package/miniprogram_dist/index.js +1 -1
  48. package/miniprogram_dist/model.js +1 -1
  49. package/miniprogram_dist/mysql.js +1 -1
  50. package/miniprogram_dist/oauth.js +2 -1
  51. package/miniprogram_dist/realtime.js +1 -1
  52. package/miniprogram_dist/storage.js +1 -1
  53. package/model/dist/index.esm.js +2 -3
  54. package/model/dist/index.esm.js.map +1 -0
  55. package/model/dist/index.js +2 -21
  56. package/model/dist/index.js.map +1 -0
  57. package/mysql/dist/index.esm.js +2 -3
  58. package/mysql/dist/index.esm.js.map +1 -0
  59. package/mysql/dist/index.js +2 -21
  60. package/mysql/dist/index.js.map +1 -0
  61. package/oauth/dist/index.esm.js +3 -3
  62. package/oauth/dist/index.esm.js.LICENSE.txt +12 -0
  63. package/oauth/dist/index.esm.js.map +1 -0
  64. package/oauth/dist/index.js +3 -21
  65. package/oauth/dist/index.js.LICENSE.txt +12 -0
  66. package/oauth/dist/index.js.map +1 -0
  67. package/package.json +29 -47
  68. package/realtime/dist/index.esm.js +2 -8
  69. package/realtime/dist/index.esm.js.map +1 -0
  70. package/realtime/dist/index.js +2 -13
  71. package/realtime/dist/index.js.map +1 -0
  72. package/storage/dist/index.esm.js +2 -4
  73. package/storage/dist/index.esm.js.map +1 -0
  74. package/storage/dist/index.js +2 -9
  75. package/storage/dist/index.js.map +1 -0
  76. package/types/analytics.d.ts +51 -0
  77. package/types/container.d.ts +93 -0
  78. package/{node_modules/@cloudbase/types → types}/package.json +1 -1
  79. package/{node_modules/@cloudbase/utilities → utilities}/package.json +2 -2
  80. package/ai/src/index.d.ts +0 -1
  81. package/ai/src/index.ts +0 -1
  82. package/apis/src/index.d.ts +0 -1
  83. package/apis/src/index.ts +0 -1
  84. package/app/src/index.ts +0 -17
  85. package/auth/src/index.d.ts +0 -2
  86. package/auth/src/index.ts +0 -8
  87. package/cloudrun/src/index.d.ts +0 -1
  88. package/cloudrun/src/index.ts +0 -1
  89. package/container/src/index.d.ts +0 -2
  90. package/container/src/index.ts +0 -8
  91. package/database/dist/index.d.ts +0 -3
  92. package/database/dist/index.esm.js +0 -503
  93. package/database/dist/index.js +0 -509
  94. package/database/src/index.d.ts +0 -3
  95. package/database/src/index.ts +0 -486
  96. package/functions/src/index.d.ts +0 -2
  97. package/functions/src/index.ts +0 -8
  98. package/model/src/index.d.ts +0 -1
  99. package/model/src/index.ts +0 -1
  100. package/mysql/src/index.d.ts +0 -1
  101. package/mysql/src/index.ts +0 -1
  102. package/node_modules/@cloudbase/ai/.eslintrc.js +0 -15
  103. package/node_modules/@cloudbase/ai/dist/cjs/AI.d.ts +0 -27
  104. package/node_modules/@cloudbase/ai/dist/cjs/AI.js +0 -224
  105. package/node_modules/@cloudbase/ai/dist/cjs/bot/index.d.ts +0 -41
  106. package/node_modules/@cloudbase/ai/dist/cjs/bot/index.js +0 -376
  107. package/node_modules/@cloudbase/ai/dist/cjs/bot/types.d.ts +0 -144
  108. package/node_modules/@cloudbase/ai/dist/cjs/bot/types.js +0 -3
  109. package/node_modules/@cloudbase/ai/dist/cjs/eventsource_parser/index.d.ts +0 -2
  110. package/node_modules/@cloudbase/ai/dist/cjs/eventsource_parser/index.js +0 -6
  111. package/node_modules/@cloudbase/ai/dist/cjs/eventsource_parser/parse.d.ts +0 -2
  112. package/node_modules/@cloudbase/ai/dist/cjs/eventsource_parser/parse.js +0 -126
  113. package/node_modules/@cloudbase/ai/dist/cjs/eventsource_parser/stream.d.ts +0 -5
  114. package/node_modules/@cloudbase/ai/dist/cjs/eventsource_parser/stream.js +0 -40
  115. package/node_modules/@cloudbase/ai/dist/cjs/eventsource_parser/types.d.ts +0 -16
  116. package/node_modules/@cloudbase/ai/dist/cjs/eventsource_parser/types.js +0 -3
  117. package/node_modules/@cloudbase/ai/dist/cjs/index.d.ts +0 -40
  118. package/node_modules/@cloudbase/ai/dist/cjs/index.js +0 -187
  119. package/node_modules/@cloudbase/ai/dist/cjs/models/Ark/index.d.ts +0 -10
  120. package/node_modules/@cloudbase/ai/dist/cjs/models/Ark/index.js +0 -130
  121. package/node_modules/@cloudbase/ai/dist/cjs/models/Ark/type.d.ts +0 -71
  122. package/node_modules/@cloudbase/ai/dist/cjs/models/Ark/type.js +0 -3
  123. package/node_modules/@cloudbase/ai/dist/cjs/models/DashScope/index.d.ts +0 -10
  124. package/node_modules/@cloudbase/ai/dist/cjs/models/DashScope/index.js +0 -130
  125. package/node_modules/@cloudbase/ai/dist/cjs/models/DashScope/type.d.ts +0 -74
  126. package/node_modules/@cloudbase/ai/dist/cjs/models/DashScope/type.js +0 -3
  127. package/node_modules/@cloudbase/ai/dist/cjs/models/DeepSeek/index.d.ts +0 -10
  128. package/node_modules/@cloudbase/ai/dist/cjs/models/DeepSeek/index.js +0 -126
  129. package/node_modules/@cloudbase/ai/dist/cjs/models/Default/index.d.ts +0 -10
  130. package/node_modules/@cloudbase/ai/dist/cjs/models/Default/index.js +0 -122
  131. package/node_modules/@cloudbase/ai/dist/cjs/models/HunYuan/index.d.ts +0 -10
  132. package/node_modules/@cloudbase/ai/dist/cjs/models/HunYuan/index.js +0 -135
  133. package/node_modules/@cloudbase/ai/dist/cjs/models/HunYuan/type.d.ts +0 -74
  134. package/node_modules/@cloudbase/ai/dist/cjs/models/HunYuan/type.js +0 -3
  135. package/node_modules/@cloudbase/ai/dist/cjs/models/HunYuan/util.d.ts +0 -4
  136. package/node_modules/@cloudbase/ai/dist/cjs/models/HunYuan/util.js +0 -56
  137. package/node_modules/@cloudbase/ai/dist/cjs/models/HunYuanBeta/index.d.ts +0 -10
  138. package/node_modules/@cloudbase/ai/dist/cjs/models/HunYuanBeta/index.js +0 -127
  139. package/node_modules/@cloudbase/ai/dist/cjs/models/HunYuanExp/index.d.ts +0 -10
  140. package/node_modules/@cloudbase/ai/dist/cjs/models/HunYuanExp/index.js +0 -125
  141. package/node_modules/@cloudbase/ai/dist/cjs/models/HunYuanOpen/index.d.ts +0 -10
  142. package/node_modules/@cloudbase/ai/dist/cjs/models/HunYuanOpen/index.js +0 -127
  143. package/node_modules/@cloudbase/ai/dist/cjs/models/Moonshot/index.d.ts +0 -10
  144. package/node_modules/@cloudbase/ai/dist/cjs/models/Moonshot/index.js +0 -130
  145. package/node_modules/@cloudbase/ai/dist/cjs/models/Moonshot/type.d.ts +0 -85
  146. package/node_modules/@cloudbase/ai/dist/cjs/models/Moonshot/type.js +0 -3
  147. package/node_modules/@cloudbase/ai/dist/cjs/models/Yi/index.d.ts +0 -10
  148. package/node_modules/@cloudbase/ai/dist/cjs/models/Yi/index.js +0 -133
  149. package/node_modules/@cloudbase/ai/dist/cjs/models/Yi/type.d.ts +0 -75
  150. package/node_modules/@cloudbase/ai/dist/cjs/models/Yi/type.js +0 -3
  151. package/node_modules/@cloudbase/ai/dist/cjs/models/ZhiPu/index.d.ts +0 -10
  152. package/node_modules/@cloudbase/ai/dist/cjs/models/ZhiPu/index.js +0 -139
  153. package/node_modules/@cloudbase/ai/dist/cjs/models/ZhiPu/type.d.ts +0 -71
  154. package/node_modules/@cloudbase/ai/dist/cjs/models/ZhiPu/type.js +0 -3
  155. package/node_modules/@cloudbase/ai/dist/cjs/models/image-model.d.ts +0 -18
  156. package/node_modules/@cloudbase/ai/dist/cjs/models/image-model.js +0 -85
  157. package/node_modules/@cloudbase/ai/dist/cjs/models/index.d.ts +0 -26
  158. package/node_modules/@cloudbase/ai/dist/cjs/models/index.js +0 -42
  159. package/node_modules/@cloudbase/ai/dist/cjs/models/model.d.ts +0 -40
  160. package/node_modules/@cloudbase/ai/dist/cjs/models/model.js +0 -481
  161. package/node_modules/@cloudbase/ai/dist/cjs/type.d.ts +0 -190
  162. package/node_modules/@cloudbase/ai/dist/cjs/type.js +0 -10
  163. package/node_modules/@cloudbase/ai/dist/cjs/utils.d.ts +0 -38
  164. package/node_modules/@cloudbase/ai/dist/cjs/utils.js +0 -263
  165. package/node_modules/@cloudbase/ai/dist/esm/AI.d.ts +0 -27
  166. package/node_modules/@cloudbase/ai/dist/esm/AI.js +0 -198
  167. package/node_modules/@cloudbase/ai/dist/esm/bot/index.d.ts +0 -41
  168. package/node_modules/@cloudbase/ai/dist/esm/bot/index.js +0 -373
  169. package/node_modules/@cloudbase/ai/dist/esm/bot/types.d.ts +0 -144
  170. package/node_modules/@cloudbase/ai/dist/esm/bot/types.js +0 -2
  171. package/node_modules/@cloudbase/ai/dist/esm/eventsource_parser/index.d.ts +0 -2
  172. package/node_modules/@cloudbase/ai/dist/esm/eventsource_parser/index.js +0 -2
  173. package/node_modules/@cloudbase/ai/dist/esm/eventsource_parser/parse.d.ts +0 -2
  174. package/node_modules/@cloudbase/ai/dist/esm/eventsource_parser/parse.js +0 -122
  175. package/node_modules/@cloudbase/ai/dist/esm/eventsource_parser/stream.d.ts +0 -5
  176. package/node_modules/@cloudbase/ai/dist/esm/eventsource_parser/stream.js +0 -37
  177. package/node_modules/@cloudbase/ai/dist/esm/eventsource_parser/types.d.ts +0 -16
  178. package/node_modules/@cloudbase/ai/dist/esm/eventsource_parser/types.js +0 -2
  179. package/node_modules/@cloudbase/ai/dist/esm/index.d.ts +0 -40
  180. package/node_modules/@cloudbase/ai/dist/esm/index.js +0 -152
  181. package/node_modules/@cloudbase/ai/dist/esm/models/Ark/index.d.ts +0 -10
  182. package/node_modules/@cloudbase/ai/dist/esm/models/Ark/index.js +0 -127
  183. package/node_modules/@cloudbase/ai/dist/esm/models/Ark/type.d.ts +0 -71
  184. package/node_modules/@cloudbase/ai/dist/esm/models/Ark/type.js +0 -2
  185. package/node_modules/@cloudbase/ai/dist/esm/models/DashScope/index.d.ts +0 -10
  186. package/node_modules/@cloudbase/ai/dist/esm/models/DashScope/index.js +0 -127
  187. package/node_modules/@cloudbase/ai/dist/esm/models/DashScope/type.d.ts +0 -74
  188. package/node_modules/@cloudbase/ai/dist/esm/models/DashScope/type.js +0 -2
  189. package/node_modules/@cloudbase/ai/dist/esm/models/DeepSeek/index.d.ts +0 -10
  190. package/node_modules/@cloudbase/ai/dist/esm/models/DeepSeek/index.js +0 -123
  191. package/node_modules/@cloudbase/ai/dist/esm/models/Default/index.d.ts +0 -10
  192. package/node_modules/@cloudbase/ai/dist/esm/models/Default/index.js +0 -119
  193. package/node_modules/@cloudbase/ai/dist/esm/models/HunYuan/index.d.ts +0 -10
  194. package/node_modules/@cloudbase/ai/dist/esm/models/HunYuan/index.js +0 -132
  195. package/node_modules/@cloudbase/ai/dist/esm/models/HunYuan/type.d.ts +0 -74
  196. package/node_modules/@cloudbase/ai/dist/esm/models/HunYuan/type.js +0 -2
  197. package/node_modules/@cloudbase/ai/dist/esm/models/HunYuan/util.d.ts +0 -4
  198. package/node_modules/@cloudbase/ai/dist/esm/models/HunYuan/util.js +0 -51
  199. package/node_modules/@cloudbase/ai/dist/esm/models/HunYuanBeta/index.d.ts +0 -10
  200. package/node_modules/@cloudbase/ai/dist/esm/models/HunYuanBeta/index.js +0 -124
  201. package/node_modules/@cloudbase/ai/dist/esm/models/HunYuanExp/index.d.ts +0 -10
  202. package/node_modules/@cloudbase/ai/dist/esm/models/HunYuanExp/index.js +0 -122
  203. package/node_modules/@cloudbase/ai/dist/esm/models/HunYuanOpen/index.d.ts +0 -10
  204. package/node_modules/@cloudbase/ai/dist/esm/models/HunYuanOpen/index.js +0 -124
  205. package/node_modules/@cloudbase/ai/dist/esm/models/Moonshot/index.d.ts +0 -10
  206. package/node_modules/@cloudbase/ai/dist/esm/models/Moonshot/index.js +0 -127
  207. package/node_modules/@cloudbase/ai/dist/esm/models/Moonshot/type.d.ts +0 -85
  208. package/node_modules/@cloudbase/ai/dist/esm/models/Moonshot/type.js +0 -2
  209. package/node_modules/@cloudbase/ai/dist/esm/models/Yi/index.d.ts +0 -10
  210. package/node_modules/@cloudbase/ai/dist/esm/models/Yi/index.js +0 -130
  211. package/node_modules/@cloudbase/ai/dist/esm/models/Yi/type.d.ts +0 -75
  212. package/node_modules/@cloudbase/ai/dist/esm/models/Yi/type.js +0 -2
  213. package/node_modules/@cloudbase/ai/dist/esm/models/ZhiPu/index.d.ts +0 -10
  214. package/node_modules/@cloudbase/ai/dist/esm/models/ZhiPu/index.js +0 -136
  215. package/node_modules/@cloudbase/ai/dist/esm/models/ZhiPu/type.d.ts +0 -71
  216. package/node_modules/@cloudbase/ai/dist/esm/models/ZhiPu/type.js +0 -2
  217. package/node_modules/@cloudbase/ai/dist/esm/models/image-model.d.ts +0 -18
  218. package/node_modules/@cloudbase/ai/dist/esm/models/image-model.js +0 -82
  219. package/node_modules/@cloudbase/ai/dist/esm/models/index.d.ts +0 -26
  220. package/node_modules/@cloudbase/ai/dist/esm/models/index.js +0 -27
  221. package/node_modules/@cloudbase/ai/dist/esm/models/model.d.ts +0 -40
  222. package/node_modules/@cloudbase/ai/dist/esm/models/model.js +0 -478
  223. package/node_modules/@cloudbase/ai/dist/esm/type.d.ts +0 -190
  224. package/node_modules/@cloudbase/ai/dist/esm/type.js +0 -7
  225. package/node_modules/@cloudbase/ai/dist/esm/utils.d.ts +0 -38
  226. package/node_modules/@cloudbase/ai/dist/esm/utils.js +0 -252
  227. package/node_modules/@cloudbase/ai/dist/miniprogram/index.js +0 -2
  228. package/node_modules/@cloudbase/ai/dist/miniprogram/index.js.LICENSE.txt +0 -22
  229. package/node_modules/@cloudbase/ai/package.json +0 -32
  230. package/node_modules/@cloudbase/apis/.eslintrc.js +0 -15
  231. package/node_modules/@cloudbase/apis/dist/cjs/callApis.d.ts +0 -20
  232. package/node_modules/@cloudbase/apis/dist/cjs/callApis.js +0 -154
  233. package/node_modules/@cloudbase/apis/dist/cjs/index.d.ts +0 -5
  234. package/node_modules/@cloudbase/apis/dist/cjs/index.js +0 -53
  235. package/node_modules/@cloudbase/apis/dist/cjs/type.d.ts +0 -14
  236. package/node_modules/@cloudbase/apis/dist/cjs/type.js +0 -3
  237. package/node_modules/@cloudbase/apis/dist/esm/callApis.d.ts +0 -20
  238. package/node_modules/@cloudbase/apis/dist/esm/callApis.js +0 -148
  239. package/node_modules/@cloudbase/apis/dist/esm/index.d.ts +0 -5
  240. package/node_modules/@cloudbase/apis/dist/esm/index.js +0 -35
  241. package/node_modules/@cloudbase/apis/dist/esm/type.d.ts +0 -14
  242. package/node_modules/@cloudbase/apis/dist/esm/type.js +0 -2
  243. package/node_modules/@cloudbase/apis/dist/miniprogram/index.js +0 -1
  244. package/node_modules/@cloudbase/apis/package.json +0 -28
  245. package/node_modules/@cloudbase/app/.eslintrc.js +0 -12
  246. package/node_modules/@cloudbase/app/dist/cjs/constants/common.d.ts +0 -38
  247. package/node_modules/@cloudbase/app/dist/cjs/constants/common.js +0 -103
  248. package/node_modules/@cloudbase/app/dist/cjs/index.d.ts +0 -65
  249. package/node_modules/@cloudbase/app/dist/cjs/index.js +0 -340
  250. package/node_modules/@cloudbase/app/dist/cjs/index.node.d.ts +0 -6
  251. package/node_modules/@cloudbase/app/dist/cjs/index.node.js +0 -27
  252. package/node_modules/@cloudbase/app/dist/cjs/libs/adapter-node/constants.d.ts +0 -33
  253. package/node_modules/@cloudbase/app/dist/cjs/libs/adapter-node/constants.js +0 -38
  254. package/node_modules/@cloudbase/app/dist/cjs/libs/adapter-node/context.d.ts +0 -17
  255. package/node_modules/@cloudbase/app/dist/cjs/libs/adapter-node/context.js +0 -189
  256. package/node_modules/@cloudbase/app/dist/cjs/libs/adapter-node/index.d.ts +0 -25
  257. package/node_modules/@cloudbase/app/dist/cjs/libs/adapter-node/index.js +0 -150
  258. package/node_modules/@cloudbase/app/dist/cjs/libs/adapter-node/metadata.d.ts +0 -14
  259. package/node_modules/@cloudbase/app/dist/cjs/libs/adapter-node/metadata.js +0 -130
  260. package/node_modules/@cloudbase/app/dist/cjs/libs/adapter-node/request.d.ts +0 -41
  261. package/node_modules/@cloudbase/app/dist/cjs/libs/adapter-node/request.js +0 -521
  262. package/node_modules/@cloudbase/app/dist/cjs/libs/adapter-node/tool.d.ts +0 -2
  263. package/node_modules/@cloudbase/app/dist/cjs/libs/adapter-node/tool.js +0 -354
  264. package/node_modules/@cloudbase/app/dist/cjs/libs/adapter-node/types.d.ts +0 -102
  265. package/node_modules/@cloudbase/app/dist/cjs/libs/adapter-node/types.js +0 -3
  266. package/node_modules/@cloudbase/app/dist/cjs/libs/adapter-node/utils.d.ts +0 -37
  267. package/node_modules/@cloudbase/app/dist/cjs/libs/adapter-node/utils.js +0 -286
  268. package/node_modules/@cloudbase/app/dist/cjs/libs/adapter-node/wx.d.ts +0 -39
  269. package/node_modules/@cloudbase/app/dist/cjs/libs/adapter-node/wx.js +0 -272
  270. package/node_modules/@cloudbase/app/dist/cjs/libs/adapter.d.ts +0 -3
  271. package/node_modules/@cloudbase/app/dist/cjs/libs/adapter.js +0 -163
  272. package/node_modules/@cloudbase/app/dist/cjs/libs/cache.d.ts +0 -6
  273. package/node_modules/@cloudbase/app/dist/cjs/libs/cache.js +0 -38
  274. package/node_modules/@cloudbase/app/dist/cjs/libs/component.d.ts +0 -3
  275. package/node_modules/@cloudbase/app/dist/cjs/libs/component.js +0 -126
  276. package/node_modules/@cloudbase/app/dist/cjs/libs/lang.d.ts +0 -23
  277. package/node_modules/@cloudbase/app/dist/cjs/libs/lang.js +0 -59
  278. package/node_modules/@cloudbase/app/dist/cjs/libs/request.d.ts +0 -62
  279. package/node_modules/@cloudbase/app/dist/cjs/libs/request.js +0 -480
  280. package/node_modules/@cloudbase/app/dist/esm/constants/common.d.ts +0 -38
  281. package/node_modules/@cloudbase/app/dist/esm/constants/common.js +0 -91
  282. package/node_modules/@cloudbase/app/dist/esm/index.d.ts +0 -65
  283. package/node_modules/@cloudbase/app/dist/esm/index.js +0 -335
  284. package/node_modules/@cloudbase/app/dist/esm/index.node.d.ts +0 -6
  285. package/node_modules/@cloudbase/app/dist/esm/index.node.js +0 -19
  286. package/node_modules/@cloudbase/app/dist/esm/libs/adapter-node/constants.d.ts +0 -33
  287. package/node_modules/@cloudbase/app/dist/esm/libs/adapter-node/constants.js +0 -35
  288. package/node_modules/@cloudbase/app/dist/esm/libs/adapter-node/context.d.ts +0 -17
  289. package/node_modules/@cloudbase/app/dist/esm/libs/adapter-node/context.js +0 -181
  290. package/node_modules/@cloudbase/app/dist/esm/libs/adapter-node/index.d.ts +0 -25
  291. package/node_modules/@cloudbase/app/dist/esm/libs/adapter-node/index.js +0 -120
  292. package/node_modules/@cloudbase/app/dist/esm/libs/adapter-node/metadata.d.ts +0 -14
  293. package/node_modules/@cloudbase/app/dist/esm/libs/adapter-node/metadata.js +0 -123
  294. package/node_modules/@cloudbase/app/dist/esm/libs/adapter-node/request.d.ts +0 -41
  295. package/node_modules/@cloudbase/app/dist/esm/libs/adapter-node/request.js +0 -495
  296. package/node_modules/@cloudbase/app/dist/esm/libs/adapter-node/tool.d.ts +0 -2
  297. package/node_modules/@cloudbase/app/dist/esm/libs/adapter-node/tool.js +0 -350
  298. package/node_modules/@cloudbase/app/dist/esm/libs/adapter-node/types.d.ts +0 -102
  299. package/node_modules/@cloudbase/app/dist/esm/libs/adapter-node/types.js +0 -2
  300. package/node_modules/@cloudbase/app/dist/esm/libs/adapter-node/utils.d.ts +0 -37
  301. package/node_modules/@cloudbase/app/dist/esm/libs/adapter-node/utils.js +0 -264
  302. package/node_modules/@cloudbase/app/dist/esm/libs/adapter-node/wx.d.ts +0 -39
  303. package/node_modules/@cloudbase/app/dist/esm/libs/adapter-node/wx.js +0 -237
  304. package/node_modules/@cloudbase/app/dist/esm/libs/adapter.d.ts +0 -3
  305. package/node_modules/@cloudbase/app/dist/esm/libs/adapter.js +0 -136
  306. package/node_modules/@cloudbase/app/dist/esm/libs/cache.d.ts +0 -6
  307. package/node_modules/@cloudbase/app/dist/esm/libs/cache.js +0 -32
  308. package/node_modules/@cloudbase/app/dist/esm/libs/component.d.ts +0 -3
  309. package/node_modules/@cloudbase/app/dist/esm/libs/component.js +0 -121
  310. package/node_modules/@cloudbase/app/dist/esm/libs/lang.d.ts +0 -23
  311. package/node_modules/@cloudbase/app/dist/esm/libs/lang.js +0 -54
  312. package/node_modules/@cloudbase/app/dist/esm/libs/request.d.ts +0 -62
  313. package/node_modules/@cloudbase/app/dist/esm/libs/request.js +0 -475
  314. package/node_modules/@cloudbase/app/dist/miniprogram/index.js +0 -2
  315. package/node_modules/@cloudbase/app/dist/miniprogram/index.js.LICENSE.txt +0 -7
  316. package/node_modules/@cloudbase/app/package.json +0 -59
  317. package/node_modules/@cloudbase/auth/.eslintrc.js +0 -15
  318. package/node_modules/@cloudbase/auth/dist/cjs/adapter.d.ts +0 -2
  319. package/node_modules/@cloudbase/auth/dist/cjs/adapter.js +0 -272
  320. package/node_modules/@cloudbase/auth/dist/cjs/index.d.ts +0 -283
  321. package/node_modules/@cloudbase/auth/dist/cjs/index.js +0 -3018
  322. package/node_modules/@cloudbase/auth/dist/cjs/type.d.ts +0 -258
  323. package/node_modules/@cloudbase/auth/dist/cjs/type.js +0 -6
  324. package/node_modules/@cloudbase/auth/dist/cjs/utilities.d.ts +0 -7
  325. package/node_modules/@cloudbase/auth/dist/cjs/utilities.js +0 -23
  326. package/node_modules/@cloudbase/auth/dist/cjs/utils.d.ts +0 -5
  327. package/node_modules/@cloudbase/auth/dist/cjs/utils.js +0 -60
  328. package/node_modules/@cloudbase/auth/dist/cjs/v1-compat.d.ts +0 -77
  329. package/node_modules/@cloudbase/auth/dist/cjs/v1-compat.js +0 -423
  330. package/node_modules/@cloudbase/auth/dist/esm/adapter.d.ts +0 -2
  331. package/node_modules/@cloudbase/auth/dist/esm/adapter.js +0 -268
  332. package/node_modules/@cloudbase/auth/dist/esm/index.d.ts +0 -283
  333. package/node_modules/@cloudbase/auth/dist/esm/index.js +0 -3008
  334. package/node_modules/@cloudbase/auth/dist/esm/type.d.ts +0 -258
  335. package/node_modules/@cloudbase/auth/dist/esm/type.js +0 -3
  336. package/node_modules/@cloudbase/auth/dist/esm/utilities.d.ts +0 -7
  337. package/node_modules/@cloudbase/auth/dist/esm/utilities.js +0 -8
  338. package/node_modules/@cloudbase/auth/dist/esm/utils.d.ts +0 -5
  339. package/node_modules/@cloudbase/auth/dist/esm/utils.js +0 -52
  340. package/node_modules/@cloudbase/auth/dist/esm/v1-compat.d.ts +0 -77
  341. package/node_modules/@cloudbase/auth/dist/esm/v1-compat.js +0 -419
  342. package/node_modules/@cloudbase/auth/dist/miniprogram/index.js +0 -1
  343. package/node_modules/@cloudbase/auth/package.json +0 -31
  344. package/node_modules/@cloudbase/cloudrun/.eslintrc.js +0 -15
  345. package/node_modules/@cloudbase/cloudrun/dist/cjs/index.d.ts +0 -4
  346. package/node_modules/@cloudbase/cloudrun/dist/cjs/index.js +0 -154
  347. package/node_modules/@cloudbase/cloudrun/dist/esm/index.d.ts +0 -4
  348. package/node_modules/@cloudbase/cloudrun/dist/esm/index.js +0 -149
  349. package/node_modules/@cloudbase/cloudrun/package.json +0 -30
  350. package/node_modules/@cloudbase/container/.eslintrc.js +0 -15
  351. package/node_modules/@cloudbase/container/.prettierrc.js +0 -41
  352. package/node_modules/@cloudbase/container/dist/cjs/constants/index.d.ts +0 -1
  353. package/node_modules/@cloudbase/container/dist/cjs/constants/index.js +0 -5
  354. package/node_modules/@cloudbase/container/dist/cjs/go_wams_exec.d.ts +0 -2
  355. package/node_modules/@cloudbase/container/dist/cjs/go_wams_exec.js +0 -538
  356. package/node_modules/@cloudbase/container/dist/cjs/index.d.ts +0 -13
  357. package/node_modules/@cloudbase/container/dist/cjs/index.js +0 -343
  358. package/node_modules/@cloudbase/container/dist/cjs/utils/index.d.ts +0 -3
  359. package/node_modules/@cloudbase/container/dist/cjs/utils/index.js +0 -83
  360. package/node_modules/@cloudbase/container/dist/cjs/utils/loader.d.ts +0 -8
  361. package/node_modules/@cloudbase/container/dist/cjs/utils/loader.js +0 -186
  362. package/node_modules/@cloudbase/container/dist/cjs/utils/request.d.ts +0 -12
  363. package/node_modules/@cloudbase/container/dist/cjs/utils/request.js +0 -106
  364. package/node_modules/@cloudbase/container/dist/esm/constants/index.d.ts +0 -1
  365. package/node_modules/@cloudbase/container/dist/esm/constants/index.js +0 -2
  366. package/node_modules/@cloudbase/container/dist/esm/go_wams_exec.d.ts +0 -2
  367. package/node_modules/@cloudbase/container/dist/esm/go_wams_exec.js +0 -536
  368. package/node_modules/@cloudbase/container/dist/esm/index.d.ts +0 -13
  369. package/node_modules/@cloudbase/container/dist/esm/index.js +0 -338
  370. package/node_modules/@cloudbase/container/dist/esm/utils/index.d.ts +0 -3
  371. package/node_modules/@cloudbase/container/dist/esm/utils/index.js +0 -77
  372. package/node_modules/@cloudbase/container/dist/esm/utils/loader.d.ts +0 -8
  373. package/node_modules/@cloudbase/container/dist/esm/utils/loader.js +0 -178
  374. package/node_modules/@cloudbase/container/dist/esm/utils/request.d.ts +0 -12
  375. package/node_modules/@cloudbase/container/dist/esm/utils/request.js +0 -102
  376. package/node_modules/@cloudbase/container/package.json +0 -30
  377. package/node_modules/@cloudbase/database/README.md +0 -119
  378. package/node_modules/@cloudbase/database/package.json +0 -36
  379. package/node_modules/@cloudbase/database/tsconfig.test.json +0 -15
  380. package/node_modules/@cloudbase/functions/.eslintrc.js +0 -15
  381. package/node_modules/@cloudbase/functions/dist/cjs/index.d.ts +0 -2
  382. package/node_modules/@cloudbase/functions/dist/cjs/index.js +0 -223
  383. package/node_modules/@cloudbase/functions/dist/esm/index.d.ts +0 -2
  384. package/node_modules/@cloudbase/functions/dist/esm/index.js +0 -219
  385. package/node_modules/@cloudbase/functions/package.json +0 -32
  386. package/node_modules/@cloudbase/model/.eslintrc.js +0 -15
  387. package/node_modules/@cloudbase/model/dist/cjs/index.d.ts +0 -5
  388. package/node_modules/@cloudbase/model/dist/cjs/index.js +0 -144
  389. package/node_modules/@cloudbase/model/dist/esm/index.d.ts +0 -5
  390. package/node_modules/@cloudbase/model/dist/esm/index.js +0 -125
  391. package/node_modules/@cloudbase/model/package.json +0 -29
  392. package/node_modules/@cloudbase/mysql/.eslintrc.js +0 -6
  393. package/node_modules/@cloudbase/mysql/dist/cjs/index.d.ts +0 -4
  394. package/node_modules/@cloudbase/mysql/dist/cjs/index.d.ts.map +0 -1
  395. package/node_modules/@cloudbase/mysql/dist/cjs/index.js +0 -173
  396. package/node_modules/@cloudbase/mysql/dist/esm/index.d.ts +0 -3
  397. package/node_modules/@cloudbase/mysql/dist/esm/index.js +0 -155
  398. package/node_modules/@cloudbase/mysql/package.json +0 -30
  399. package/node_modules/@cloudbase/oauth/.eslintrc.js +0 -15
  400. package/node_modules/@cloudbase/oauth/dist/cjs/auth/apis.d.ts +0 -142
  401. package/node_modules/@cloudbase/oauth/dist/cjs/auth/apis.js +0 -1280
  402. package/node_modules/@cloudbase/oauth/dist/cjs/auth/auth-error.d.ts +0 -22
  403. package/node_modules/@cloudbase/oauth/dist/cjs/auth/auth-error.js +0 -278
  404. package/node_modules/@cloudbase/oauth/dist/cjs/auth/consts.d.ts +0 -139
  405. package/node_modules/@cloudbase/oauth/dist/cjs/auth/consts.js +0 -147
  406. package/node_modules/@cloudbase/oauth/dist/cjs/auth/models.d.ts +0 -557
  407. package/node_modules/@cloudbase/oauth/dist/cjs/auth/models.js +0 -3
  408. package/node_modules/@cloudbase/oauth/dist/cjs/captcha/captcha-dom.d.ts +0 -3
  409. package/node_modules/@cloudbase/oauth/dist/cjs/captcha/captcha-dom.js +0 -223
  410. package/node_modules/@cloudbase/oauth/dist/cjs/captcha/captcha.d.ts +0 -42
  411. package/node_modules/@cloudbase/oauth/dist/cjs/captcha/captcha.js +0 -205
  412. package/node_modules/@cloudbase/oauth/dist/cjs/index.d.ts +0 -22
  413. package/node_modules/@cloudbase/oauth/dist/cjs/index.js +0 -107
  414. package/node_modules/@cloudbase/oauth/dist/cjs/oauth2client/consts.d.ts +0 -20
  415. package/node_modules/@cloudbase/oauth/dist/cjs/oauth2client/consts.js +0 -26
  416. package/node_modules/@cloudbase/oauth/dist/cjs/oauth2client/interface.d.ts +0 -15
  417. package/node_modules/@cloudbase/oauth/dist/cjs/oauth2client/interface.js +0 -10
  418. package/node_modules/@cloudbase/oauth/dist/cjs/oauth2client/models.d.ts +0 -74
  419. package/node_modules/@cloudbase/oauth/dist/cjs/oauth2client/models.js +0 -3
  420. package/node_modules/@cloudbase/oauth/dist/cjs/oauth2client/oauth2client.d.ts +0 -129
  421. package/node_modules/@cloudbase/oauth/dist/cjs/oauth2client/oauth2client.js +0 -1174
  422. package/node_modules/@cloudbase/oauth/dist/cjs/utils/base64.d.ts +0 -9
  423. package/node_modules/@cloudbase/oauth/dist/cjs/utils/base64.js +0 -112
  424. package/node_modules/@cloudbase/oauth/dist/cjs/utils/encrypt.d.ts +0 -4
  425. package/node_modules/@cloudbase/oauth/dist/cjs/utils/encrypt.js +0 -26
  426. package/node_modules/@cloudbase/oauth/dist/cjs/utils/encryptlong/index.d.ts +0 -546
  427. package/node_modules/@cloudbase/oauth/dist/cjs/utils/encryptlong/index.js +0 -2982
  428. package/node_modules/@cloudbase/oauth/dist/cjs/utils/function/single-promise.d.ts +0 -6
  429. package/node_modules/@cloudbase/oauth/dist/cjs/utils/function/single-promise.js +0 -94
  430. package/node_modules/@cloudbase/oauth/dist/cjs/utils/index.d.ts +0 -2
  431. package/node_modules/@cloudbase/oauth/dist/cjs/utils/index.js +0 -56
  432. package/node_modules/@cloudbase/oauth/dist/cjs/utils/mp.d.ts +0 -2
  433. package/node_modules/@cloudbase/oauth/dist/cjs/utils/mp.js +0 -66
  434. package/node_modules/@cloudbase/oauth/dist/cjs/utils/urlSearchParams.d.ts +0 -13
  435. package/node_modules/@cloudbase/oauth/dist/cjs/utils/urlSearchParams.js +0 -66
  436. package/node_modules/@cloudbase/oauth/dist/cjs/utils/uuid.d.ts +0 -1
  437. package/node_modules/@cloudbase/oauth/dist/cjs/utils/uuid.js +0 -12
  438. package/node_modules/@cloudbase/oauth/dist/esm/auth/apis.d.ts +0 -142
  439. package/node_modules/@cloudbase/oauth/dist/esm/auth/apis.js +0 -768
  440. package/node_modules/@cloudbase/oauth/dist/esm/auth/auth-error.d.ts +0 -22
  441. package/node_modules/@cloudbase/oauth/dist/esm/auth/auth-error.js +0 -255
  442. package/node_modules/@cloudbase/oauth/dist/esm/auth/consts.d.ts +0 -139
  443. package/node_modules/@cloudbase/oauth/dist/esm/auth/consts.js +0 -144
  444. package/node_modules/@cloudbase/oauth/dist/esm/auth/models.d.ts +0 -557
  445. package/node_modules/@cloudbase/oauth/dist/esm/auth/models.js +0 -2
  446. package/node_modules/@cloudbase/oauth/dist/esm/captcha/captcha-dom.d.ts +0 -3
  447. package/node_modules/@cloudbase/oauth/dist/esm/captcha/captcha-dom.js +0 -130
  448. package/node_modules/@cloudbase/oauth/dist/esm/captcha/captcha.d.ts +0 -42
  449. package/node_modules/@cloudbase/oauth/dist/esm/captcha/captcha.js +0 -104
  450. package/node_modules/@cloudbase/oauth/dist/esm/index.d.ts +0 -22
  451. package/node_modules/@cloudbase/oauth/dist/esm/index.js +0 -64
  452. package/node_modules/@cloudbase/oauth/dist/esm/oauth2client/consts.d.ts +0 -20
  453. package/node_modules/@cloudbase/oauth/dist/esm/oauth2client/consts.js +0 -22
  454. package/node_modules/@cloudbase/oauth/dist/esm/oauth2client/interface.d.ts +0 -15
  455. package/node_modules/@cloudbase/oauth/dist/esm/oauth2client/interface.js +0 -3
  456. package/node_modules/@cloudbase/oauth/dist/esm/oauth2client/models.d.ts +0 -74
  457. package/node_modules/@cloudbase/oauth/dist/esm/oauth2client/models.js +0 -2
  458. package/node_modules/@cloudbase/oauth/dist/esm/oauth2client/oauth2client.d.ts +0 -129
  459. package/node_modules/@cloudbase/oauth/dist/esm/oauth2client/oauth2client.js +0 -711
  460. package/node_modules/@cloudbase/oauth/dist/esm/utils/base64.d.ts +0 -9
  461. package/node_modules/@cloudbase/oauth/dist/esm/utils/base64.js +0 -104
  462. package/node_modules/@cloudbase/oauth/dist/esm/utils/encrypt.d.ts +0 -4
  463. package/node_modules/@cloudbase/oauth/dist/esm/utils/encrypt.js +0 -18
  464. package/node_modules/@cloudbase/oauth/dist/esm/utils/encryptlong/index.d.ts +0 -546
  465. package/node_modules/@cloudbase/oauth/dist/esm/utils/encryptlong/index.js +0 -2953
  466. package/node_modules/@cloudbase/oauth/dist/esm/utils/function/single-promise.d.ts +0 -6
  467. package/node_modules/@cloudbase/oauth/dist/esm/utils/function/single-promise.js +0 -34
  468. package/node_modules/@cloudbase/oauth/dist/esm/utils/index.d.ts +0 -2
  469. package/node_modules/@cloudbase/oauth/dist/esm/utils/index.js +0 -51
  470. package/node_modules/@cloudbase/oauth/dist/esm/utils/mp.d.ts +0 -2
  471. package/node_modules/@cloudbase/oauth/dist/esm/utils/mp.js +0 -61
  472. package/node_modules/@cloudbase/oauth/dist/esm/utils/urlSearchParams.d.ts +0 -13
  473. package/node_modules/@cloudbase/oauth/dist/esm/utils/urlSearchParams.js +0 -58
  474. package/node_modules/@cloudbase/oauth/dist/esm/utils/uuid.d.ts +0 -1
  475. package/node_modules/@cloudbase/oauth/dist/esm/utils/uuid.js +0 -8
  476. package/node_modules/@cloudbase/oauth/dist/miniprogram/index.js +0 -1
  477. package/node_modules/@cloudbase/oauth/package.json +0 -20
  478. package/node_modules/@cloudbase/realtime/.eslintrc.js +0 -15
  479. package/node_modules/@cloudbase/realtime/dist/cjs/common.d.ts +0 -4
  480. package/node_modules/@cloudbase/realtime/dist/cjs/common.js +0 -22
  481. package/node_modules/@cloudbase/realtime/dist/cjs/error.d.ts +0 -36
  482. package/node_modules/@cloudbase/realtime/dist/cjs/error.js +0 -106
  483. package/node_modules/@cloudbase/realtime/dist/cjs/index.d.ts +0 -2
  484. package/node_modules/@cloudbase/realtime/dist/cjs/index.js +0 -36
  485. package/node_modules/@cloudbase/realtime/dist/cjs/listener.d.ts +0 -14
  486. package/node_modules/@cloudbase/realtime/dist/cjs/listener.js +0 -18
  487. package/node_modules/@cloudbase/realtime/dist/cjs/message.d.ts +0 -3
  488. package/node_modules/@cloudbase/realtime/dist/cjs/message.js +0 -13
  489. package/node_modules/@cloudbase/realtime/dist/cjs/snapshot.d.ts +0 -17
  490. package/node_modules/@cloudbase/realtime/dist/cjs/snapshot.js +0 -45
  491. package/node_modules/@cloudbase/realtime/dist/cjs/utils.d.ts +0 -1
  492. package/node_modules/@cloudbase/realtime/dist/cjs/utils.js +0 -9
  493. package/node_modules/@cloudbase/realtime/dist/cjs/virtual-websocket-client.d.ts +0 -62
  494. package/node_modules/@cloudbase/realtime/dist/cjs/virtual-websocket-client.js +0 -960
  495. package/node_modules/@cloudbase/realtime/dist/cjs/websocket-client.d.ts +0 -78
  496. package/node_modules/@cloudbase/realtime/dist/cjs/websocket-client.js +0 -750
  497. package/node_modules/@cloudbase/realtime/dist/cjs/ws-event.d.ts +0 -126
  498. package/node_modules/@cloudbase/realtime/dist/cjs/ws-event.js +0 -141
  499. package/node_modules/@cloudbase/realtime/dist/esm/common.d.ts +0 -4
  500. package/node_modules/@cloudbase/realtime/dist/esm/common.js +0 -15
  501. package/node_modules/@cloudbase/realtime/dist/esm/error.d.ts +0 -36
  502. package/node_modules/@cloudbase/realtime/dist/esm/error.js +0 -100
  503. package/node_modules/@cloudbase/realtime/dist/esm/index.d.ts +0 -2
  504. package/node_modules/@cloudbase/realtime/dist/esm/index.js +0 -32
  505. package/node_modules/@cloudbase/realtime/dist/esm/listener.d.ts +0 -14
  506. package/node_modules/@cloudbase/realtime/dist/esm/listener.js +0 -15
  507. package/node_modules/@cloudbase/realtime/dist/esm/message.d.ts +0 -3
  508. package/node_modules/@cloudbase/realtime/dist/esm/message.js +0 -8
  509. package/node_modules/@cloudbase/realtime/dist/esm/snapshot.d.ts +0 -17
  510. package/node_modules/@cloudbase/realtime/dist/esm/snapshot.js +0 -42
  511. package/node_modules/@cloudbase/realtime/dist/esm/utils.d.ts +0 -1
  512. package/node_modules/@cloudbase/realtime/dist/esm/utils.js +0 -5
  513. package/node_modules/@cloudbase/realtime/dist/esm/virtual-websocket-client.d.ts +0 -62
  514. package/node_modules/@cloudbase/realtime/dist/esm/virtual-websocket-client.js +0 -954
  515. package/node_modules/@cloudbase/realtime/dist/esm/websocket-client.d.ts +0 -78
  516. package/node_modules/@cloudbase/realtime/dist/esm/websocket-client.js +0 -747
  517. package/node_modules/@cloudbase/realtime/dist/esm/ws-event.d.ts +0 -126
  518. package/node_modules/@cloudbase/realtime/dist/esm/ws-event.js +0 -137
  519. package/node_modules/@cloudbase/realtime/package.json +0 -29
  520. package/node_modules/@cloudbase/storage/.eslintrc.js +0 -15
  521. package/node_modules/@cloudbase/storage/dist/cjs/index.d.ts +0 -195
  522. package/node_modules/@cloudbase/storage/dist/cjs/index.js +0 -1426
  523. package/node_modules/@cloudbase/storage/dist/cjs/supabase/errors.d.ts +0 -20
  524. package/node_modules/@cloudbase/storage/dist/cjs/supabase/errors.js +0 -65
  525. package/node_modules/@cloudbase/storage/dist/cjs/supabase/types.d.ts +0 -64
  526. package/node_modules/@cloudbase/storage/dist/cjs/supabase/types.js +0 -3
  527. package/node_modules/@cloudbase/storage/dist/esm/index.d.ts +0 -195
  528. package/node_modules/@cloudbase/storage/dist/esm/index.js +0 -1422
  529. package/node_modules/@cloudbase/storage/dist/esm/supabase/errors.d.ts +0 -20
  530. package/node_modules/@cloudbase/storage/dist/esm/supabase/errors.js +0 -61
  531. package/node_modules/@cloudbase/storage/dist/esm/supabase/types.d.ts +0 -64
  532. package/node_modules/@cloudbase/storage/dist/esm/supabase/types.js +0 -2
  533. package/node_modules/@cloudbase/storage/package.json +0 -28
  534. package/node_modules/@cloudbase/types/index.js +0 -1
  535. package/node_modules/@cloudbase/utilities/.eslintrc.js +0 -15
  536. package/oauth/src/index.d.ts +0 -1
  537. package/oauth/src/index.ts +0 -1
  538. package/realtime/src/index.d.ts +0 -2
  539. package/realtime/src/index.ts +0 -8
  540. package/storage/src/index.d.ts +0 -2
  541. package/storage/src/index.js +0 -5
  542. package/storage/src/index.ts +0 -4
  543. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/aggregate.d.ts +0 -0
  544. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/aggregate.js +0 -0
  545. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/collection.d.ts +0 -0
  546. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/collection.js +0 -0
  547. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/command.d.ts +0 -0
  548. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/command.js +0 -0
  549. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/commands/logic.d.ts +0 -0
  550. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/commands/logic.js +0 -0
  551. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/commands/query.d.ts +0 -0
  552. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/commands/query.js +0 -0
  553. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/commands/update.d.ts +0 -0
  554. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/commands/update.js +0 -0
  555. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/config/app.config.d.ts +0 -0
  556. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/config/app.config.js +0 -0
  557. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/config/error.config.d.ts +0 -0
  558. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/config/error.config.js +0 -0
  559. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/const/code.d.ts +0 -0
  560. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/const/code.js +0 -0
  561. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/constant.d.ts +0 -0
  562. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/constant.js +0 -0
  563. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/document.d.ts +0 -0
  564. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/document.js +0 -0
  565. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/geo/index.d.ts +0 -0
  566. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/geo/index.js +0 -0
  567. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/geo/interface.d.ts +0 -0
  568. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/geo/interface.js +0 -0
  569. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/geo/lineString.d.ts +0 -0
  570. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/geo/lineString.js +0 -0
  571. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/geo/multiLineString.d.ts +0 -0
  572. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/geo/multiLineString.js +0 -0
  573. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/geo/multiPoint.d.ts +0 -0
  574. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/geo/multiPoint.js +0 -0
  575. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/geo/multiPolygon.d.ts +0 -0
  576. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/geo/multiPolygon.js +0 -0
  577. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/geo/point.d.ts +0 -0
  578. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/geo/point.js +0 -0
  579. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/geo/polygon.d.ts +0 -0
  580. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/geo/polygon.js +0 -0
  581. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/helper/symbol.d.ts +0 -0
  582. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/helper/symbol.js +0 -0
  583. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/index.d.ts +0 -0
  584. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/index.js +0 -0
  585. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/lib/util.d.ts +0 -0
  586. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/lib/util.js +0 -0
  587. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/operator-map.d.ts +0 -0
  588. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/operator-map.js +0 -0
  589. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/query.d.ts +0 -0
  590. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/query.js +0 -0
  591. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/regexp/index.d.ts +0 -0
  592. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/regexp/index.js +0 -0
  593. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/serializer/common.d.ts +0 -0
  594. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/serializer/common.js +0 -0
  595. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/serializer/datatype.d.ts +0 -0
  596. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/serializer/datatype.js +0 -0
  597. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/serializer/query.d.ts +0 -0
  598. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/serializer/query.js +0 -0
  599. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/serializer/update.d.ts +0 -0
  600. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/serializer/update.js +0 -0
  601. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/serverDate/index.d.ts +0 -0
  602. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/serverDate/index.js +0 -0
  603. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/transaction/collection.d.ts +0 -0
  604. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/transaction/collection.js +0 -0
  605. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/transaction/document.d.ts +0 -0
  606. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/transaction/document.js +0 -0
  607. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/transaction/index.d.ts +0 -0
  608. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/transaction/index.js +0 -0
  609. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/transaction/query.d.ts +0 -0
  610. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/transaction/query.js +0 -0
  611. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/typings/index.d.ts +0 -0
  612. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/typings/index.js +0 -0
  613. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/typings/realtime.d.ts +0 -0
  614. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/typings/realtime.js +0 -0
  615. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/util.d.ts +0 -0
  616. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/util.js +0 -0
  617. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/utils/error.d.ts +0 -0
  618. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/utils/error.js +0 -0
  619. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/utils/msg.d.ts +0 -0
  620. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/utils/msg.js +0 -0
  621. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/utils/symbol.d.ts +0 -0
  622. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/utils/symbol.js +0 -0
  623. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/utils/type.d.ts +0 -0
  624. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/utils/type.js +0 -0
  625. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/utils/utils.d.ts +0 -0
  626. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/utils/utils.js +0 -0
  627. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/validate.d.ts +0 -0
  628. /package/{node_modules/@cloudbase/database → database}/dist/commonjs/validate.js +0 -0
  629. /package/{node_modules/@cloudbase/database → database}/dist/esm/aggregate.d.ts +0 -0
  630. /package/{node_modules/@cloudbase/database → database}/dist/esm/aggregate.js +0 -0
  631. /package/{node_modules/@cloudbase/database → database}/dist/esm/collection.d.ts +0 -0
  632. /package/{node_modules/@cloudbase/database → database}/dist/esm/collection.js +0 -0
  633. /package/{node_modules/@cloudbase/database → database}/dist/esm/command.d.ts +0 -0
  634. /package/{node_modules/@cloudbase/database → database}/dist/esm/command.js +0 -0
  635. /package/{node_modules/@cloudbase/database → database}/dist/esm/commands/logic.d.ts +0 -0
  636. /package/{node_modules/@cloudbase/database → database}/dist/esm/commands/logic.js +0 -0
  637. /package/{node_modules/@cloudbase/database → database}/dist/esm/commands/query.d.ts +0 -0
  638. /package/{node_modules/@cloudbase/database → database}/dist/esm/commands/query.js +0 -0
  639. /package/{node_modules/@cloudbase/database → database}/dist/esm/commands/update.d.ts +0 -0
  640. /package/{node_modules/@cloudbase/database → database}/dist/esm/commands/update.js +0 -0
  641. /package/{node_modules/@cloudbase/database → database}/dist/esm/config/app.config.d.ts +0 -0
  642. /package/{node_modules/@cloudbase/database → database}/dist/esm/config/app.config.js +0 -0
  643. /package/{node_modules/@cloudbase/database → database}/dist/esm/config/error.config.d.ts +0 -0
  644. /package/{node_modules/@cloudbase/database → database}/dist/esm/config/error.config.js +0 -0
  645. /package/{node_modules/@cloudbase/database → database}/dist/esm/const/code.d.ts +0 -0
  646. /package/{node_modules/@cloudbase/database → database}/dist/esm/const/code.js +0 -0
  647. /package/{node_modules/@cloudbase/database → database}/dist/esm/constant.d.ts +0 -0
  648. /package/{node_modules/@cloudbase/database → database}/dist/esm/constant.js +0 -0
  649. /package/{node_modules/@cloudbase/database → database}/dist/esm/document.d.ts +0 -0
  650. /package/{node_modules/@cloudbase/database → database}/dist/esm/document.js +0 -0
  651. /package/{node_modules/@cloudbase/database → database}/dist/esm/geo/index.d.ts +0 -0
  652. /package/{node_modules/@cloudbase/database → database}/dist/esm/geo/index.js +0 -0
  653. /package/{node_modules/@cloudbase/database → database}/dist/esm/geo/interface.d.ts +0 -0
  654. /package/{node_modules/@cloudbase/database → database}/dist/esm/geo/interface.js +0 -0
  655. /package/{node_modules/@cloudbase/database → database}/dist/esm/geo/lineString.d.ts +0 -0
  656. /package/{node_modules/@cloudbase/database → database}/dist/esm/geo/lineString.js +0 -0
  657. /package/{node_modules/@cloudbase/database → database}/dist/esm/geo/multiLineString.d.ts +0 -0
  658. /package/{node_modules/@cloudbase/database → database}/dist/esm/geo/multiLineString.js +0 -0
  659. /package/{node_modules/@cloudbase/database → database}/dist/esm/geo/multiPoint.d.ts +0 -0
  660. /package/{node_modules/@cloudbase/database → database}/dist/esm/geo/multiPoint.js +0 -0
  661. /package/{node_modules/@cloudbase/database → database}/dist/esm/geo/multiPolygon.d.ts +0 -0
  662. /package/{node_modules/@cloudbase/database → database}/dist/esm/geo/multiPolygon.js +0 -0
  663. /package/{node_modules/@cloudbase/database → database}/dist/esm/geo/point.d.ts +0 -0
  664. /package/{node_modules/@cloudbase/database → database}/dist/esm/geo/point.js +0 -0
  665. /package/{node_modules/@cloudbase/database → database}/dist/esm/geo/polygon.d.ts +0 -0
  666. /package/{node_modules/@cloudbase/database → database}/dist/esm/geo/polygon.js +0 -0
  667. /package/{node_modules/@cloudbase/database → database}/dist/esm/helper/symbol.d.ts +0 -0
  668. /package/{node_modules/@cloudbase/database → database}/dist/esm/helper/symbol.js +0 -0
  669. /package/{node_modules/@cloudbase/database → database}/dist/esm/index.d.ts +0 -0
  670. /package/{node_modules/@cloudbase/database → database}/dist/esm/index.js +0 -0
  671. /package/{node_modules/@cloudbase/database → database}/dist/esm/lib/util.d.ts +0 -0
  672. /package/{node_modules/@cloudbase/database → database}/dist/esm/lib/util.js +0 -0
  673. /package/{node_modules/@cloudbase/database → database}/dist/esm/operator-map.d.ts +0 -0
  674. /package/{node_modules/@cloudbase/database → database}/dist/esm/operator-map.js +0 -0
  675. /package/{node_modules/@cloudbase/database → database}/dist/esm/query.d.ts +0 -0
  676. /package/{node_modules/@cloudbase/database → database}/dist/esm/query.js +0 -0
  677. /package/{node_modules/@cloudbase/database → database}/dist/esm/regexp/index.d.ts +0 -0
  678. /package/{node_modules/@cloudbase/database → database}/dist/esm/regexp/index.js +0 -0
  679. /package/{node_modules/@cloudbase/database → database}/dist/esm/serializer/common.d.ts +0 -0
  680. /package/{node_modules/@cloudbase/database → database}/dist/esm/serializer/common.js +0 -0
  681. /package/{node_modules/@cloudbase/database → database}/dist/esm/serializer/datatype.d.ts +0 -0
  682. /package/{node_modules/@cloudbase/database → database}/dist/esm/serializer/datatype.js +0 -0
  683. /package/{node_modules/@cloudbase/database → database}/dist/esm/serializer/query.d.ts +0 -0
  684. /package/{node_modules/@cloudbase/database → database}/dist/esm/serializer/query.js +0 -0
  685. /package/{node_modules/@cloudbase/database → database}/dist/esm/serializer/update.d.ts +0 -0
  686. /package/{node_modules/@cloudbase/database → database}/dist/esm/serializer/update.js +0 -0
  687. /package/{node_modules/@cloudbase/database → database}/dist/esm/serverDate/index.d.ts +0 -0
  688. /package/{node_modules/@cloudbase/database → database}/dist/esm/serverDate/index.js +0 -0
  689. /package/{node_modules/@cloudbase/database → database}/dist/esm/transaction/collection.d.ts +0 -0
  690. /package/{node_modules/@cloudbase/database → database}/dist/esm/transaction/collection.js +0 -0
  691. /package/{node_modules/@cloudbase/database → database}/dist/esm/transaction/document.d.ts +0 -0
  692. /package/{node_modules/@cloudbase/database → database}/dist/esm/transaction/document.js +0 -0
  693. /package/{node_modules/@cloudbase/database → database}/dist/esm/transaction/index.d.ts +0 -0
  694. /package/{node_modules/@cloudbase/database → database}/dist/esm/transaction/index.js +0 -0
  695. /package/{node_modules/@cloudbase/database → database}/dist/esm/transaction/query.d.ts +0 -0
  696. /package/{node_modules/@cloudbase/database → database}/dist/esm/transaction/query.js +0 -0
  697. /package/{node_modules/@cloudbase/database → database}/dist/esm/typings/index.d.ts +0 -0
  698. /package/{node_modules/@cloudbase/database → database}/dist/esm/typings/index.js +0 -0
  699. /package/{node_modules/@cloudbase/database → database}/dist/esm/typings/realtime.d.ts +0 -0
  700. /package/{node_modules/@cloudbase/database → database}/dist/esm/typings/realtime.js +0 -0
  701. /package/{node_modules/@cloudbase/database → database}/dist/esm/util.d.ts +0 -0
  702. /package/{node_modules/@cloudbase/database → database}/dist/esm/util.js +0 -0
  703. /package/{node_modules/@cloudbase/database → database}/dist/esm/utils/error.d.ts +0 -0
  704. /package/{node_modules/@cloudbase/database → database}/dist/esm/utils/error.js +0 -0
  705. /package/{node_modules/@cloudbase/database → database}/dist/esm/utils/msg.d.ts +0 -0
  706. /package/{node_modules/@cloudbase/database → database}/dist/esm/utils/msg.js +0 -0
  707. /package/{node_modules/@cloudbase/database → database}/dist/esm/utils/symbol.d.ts +0 -0
  708. /package/{node_modules/@cloudbase/database → database}/dist/esm/utils/symbol.js +0 -0
  709. /package/{node_modules/@cloudbase/database → database}/dist/esm/utils/type.d.ts +0 -0
  710. /package/{node_modules/@cloudbase/database → database}/dist/esm/utils/type.js +0 -0
  711. /package/{node_modules/@cloudbase/database → database}/dist/esm/utils/utils.d.ts +0 -0
  712. /package/{node_modules/@cloudbase/database → database}/dist/esm/utils/utils.js +0 -0
  713. /package/{node_modules/@cloudbase/database → database}/dist/esm/validate.d.ts +0 -0
  714. /package/{node_modules/@cloudbase/database → database}/dist/esm/validate.js +0 -0
  715. /package/{app/src → dist}/index.d.ts +0 -0
  716. /package/{node_modules/@cloudbase/types → types}/auth.d.ts +0 -0
  717. /package/{node_modules/@cloudbase/types → types}/cache.d.ts +0 -0
  718. /package/{node_modules/@cloudbase/types → types}/cloudrun.d.ts +0 -0
  719. /package/{node_modules/@cloudbase/types → types}/component.d.ts +0 -0
  720. /package/{node_modules/@cloudbase/types → types}/database.d.ts +0 -0
  721. /package/{node_modules/@cloudbase/types → types}/events.d.ts +0 -0
  722. /package/{node_modules/@cloudbase/types → types}/functions.d.ts +0 -0
  723. /package/{node_modules/@cloudbase/types → types}/index.d.ts +0 -0
  724. /package/{node_modules/@cloudbase/types → types}/realtime.d.ts +0 -0
  725. /package/{node_modules/@cloudbase/types → types}/request.d.ts +0 -0
  726. /package/{node_modules/@cloudbase/types → types}/storage.d.ts +0 -0
  727. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/adapters/index.d.ts +0 -0
  728. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/adapters/index.js +0 -0
  729. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/adapters/platforms/web.d.ts +0 -0
  730. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/adapters/platforms/web.js +0 -0
  731. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/constants/common.d.ts +0 -0
  732. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/constants/common.js +0 -0
  733. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/constants/errors.d.ts +0 -0
  734. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/constants/errors.js +0 -0
  735. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/constants/index.d.ts +0 -0
  736. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/constants/index.js +0 -0
  737. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/helpers/decorators.d.ts +0 -0
  738. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/helpers/decorators.js +0 -0
  739. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/helpers/index.d.ts +0 -0
  740. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/helpers/index.js +0 -0
  741. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/index.d.ts +0 -0
  742. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/index.js +0 -0
  743. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/libs/abortController.d.ts +0 -0
  744. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/libs/abortController.js +0 -0
  745. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/libs/cache.d.ts +0 -0
  746. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/libs/cache.js +0 -0
  747. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/libs/events.d.ts +0 -0
  748. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/libs/events.js +0 -0
  749. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/libs/langEvent.d.ts +0 -0
  750. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/libs/langEvent.js +0 -0
  751. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/libs/util.d.ts +0 -0
  752. /package/{node_modules/@cloudbase/utilities → utilities}/dist/cjs/libs/util.js +0 -0
  753. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/adapters/index.d.ts +0 -0
  754. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/adapters/index.js +0 -0
  755. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/adapters/platforms/web.d.ts +0 -0
  756. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/adapters/platforms/web.js +0 -0
  757. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/constants/common.d.ts +0 -0
  758. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/constants/common.js +0 -0
  759. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/constants/errors.d.ts +0 -0
  760. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/constants/errors.js +0 -0
  761. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/constants/index.d.ts +0 -0
  762. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/constants/index.js +0 -0
  763. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/helpers/decorators.d.ts +0 -0
  764. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/helpers/decorators.js +0 -0
  765. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/helpers/index.d.ts +0 -0
  766. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/helpers/index.js +0 -0
  767. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/index.d.ts +0 -0
  768. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/index.js +0 -0
  769. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/libs/abortController.d.ts +0 -0
  770. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/libs/abortController.js +0 -0
  771. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/libs/cache.d.ts +0 -0
  772. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/libs/cache.js +0 -0
  773. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/libs/events.d.ts +0 -0
  774. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/libs/events.js +0 -0
  775. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/libs/langEvent.d.ts +0 -0
  776. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/libs/langEvent.js +0 -0
  777. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/libs/util.d.ts +0 -0
  778. /package/{node_modules/@cloudbase/utilities → utilities}/dist/esm/libs/util.js +0 -0
  779. /package/{node_modules/@cloudbase/utilities → utilities}/dist/miniprogram/index.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","mappings":"sBAAA,IAIIA,EAJY,EAAQ,KAITC,CAHJ,EAAQ,MAGY,YAE/BC,EAAOC,QAAUH,C,iBCNjB,IAAII,EAAY,EAAQ,MACpBC,EAAa,EAAQ,MACrBC,EAAU,EAAQ,MAClBC,EAAU,EAAQ,MAClBC,EAAU,EAAQ,MAStB,SAASC,EAAKC,GACZ,IAAIC,GAAS,EACTC,EAAoB,MAAXF,EAAkB,EAAIA,EAAQE,OAG3C,IADAC,KAAKC,UACIH,EAAQC,GAAQ,CACvB,IAAIG,EAAQL,EAAQC,GACpBE,KAAKG,IAAID,EAAM,GAAIA,EAAM,GAC3B,CACF,CAGAN,EAAKQ,UAAUH,MAAQV,EACvBK,EAAKQ,UAAkB,OAAIZ,EAC3BI,EAAKQ,UAAUC,IAAMZ,EACrBG,EAAKQ,UAAUE,IAAMZ,EACrBE,EAAKQ,UAAUD,IAAMR,EAErBN,EAAOC,QAAUM,C,gBC/BjB,IAAIW,EAAiB,EAAQ,MACzBC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3B,GAAMpkB,KAAKgmB,SAJT,I,cAIF7O,EAAAC,OACApX,KAAKygB,WAAa,EAGlBzgB,KAAKkmB,cAAgB1P,YAAW,WAC9BkB,QAAQoF,MAAM,kBACVpI,EAAKgM,WAtnBW,GAunBlBhM,EAAKgM,YAAc,EACnBhM,EAAKmP,WAAU,IAGfnP,EAAKsN,yBAAwB,EAEjC,GAAGhiB,KAAK0lB,QAAQC,UAAUW,yB,6BAEtBtmB,KAAKygB,WAhoBa,GAioBpBzgB,KAAKygB,YAAc,EACnBzgB,KAAK6jB,aAEL7jB,KAAKwT,MAAMgM,EAAe6D,oB,6BAKpC,GACAgD,EAAY,EAAIrmB,KAAK0lB,QAAQC,UAAUY,qBAE3C,EA8BFlG,CAAA,CAtqBA,GC7FMmG,EAAuB,CAC3BC,OAAQ,WACRC,OAAM,WACE,IFJiBtG,EEIjBjJ,EAAuBnX,KAAK2mB,SAA1BC,EAAOzP,EAAAyP,QAAE5G,EAAO7I,EAAA6I,QFJDI,EEKZwG,EAAQ7G,QFJrBA,EAAUK,EEKRD,EAAWH,EACb,GAGI6G,EAAiC,CACrCnH,KAAM,WACNoH,MAAM,EACNJ,OAAM,WACJ1mB,KAAKI,UAAU2mB,cAAgB1G,CACjC,GAGF,IACE2G,UAAUC,kBAAkBJ,GAC5BG,UAAUE,aAAaV,E,CACvB,MAAOjb,GAAI,CAxBN,IAAM4b,EA0BP,SAA2BC,GAC/B,IACEA,EAAIH,kBAAkBJ,GACtBO,EAAIF,aAAaV,E,CACjB,MAAOjb,GACPmM,QAAQyE,KAAK5Q,E,CAEjB,EA/BA,IACGkH,OAAe0U,iBAAmBA,C,CACnC,MAAO5b,GAAG,C","sources":["webpack://@cloudbase/js-sdk/../../node_modules/lodash/_DataView.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_Hash.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_ListCache.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_Map.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_MapCache.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_Promise.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_Set.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_Stack.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_Symbol.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_Uint8Array.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_WeakMap.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_arrayEach.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_arrayFilter.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_arrayLikeKeys.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_arrayMap.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_arrayPush.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_assignValue.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_assocIndexOf.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_baseAssign.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_baseAssignIn.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_baseAssignValue.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_baseClone.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_baseCreate.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_baseGet.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_baseGetAllKeys.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_baseGetTag.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_baseIsArguments.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_baseIsMap.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_baseIsNative.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_baseIsSet.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_baseIsTypedArray.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_baseKeys.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_baseKeysIn.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_baseSet.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_baseSlice.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_baseTimes.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_baseToString.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_baseUnary.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_baseUnset.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_castPath.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_cloneArrayBuffer.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_cloneBuffer.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_cloneDataView.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_cloneRegExp.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_cloneSymbol.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_cloneTypedArray.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_copyArray.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_copyObject.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_copySymbols.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_copySymbolsIn.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_coreJsData.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_defineProperty.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_freeGlobal.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_getAllKeys.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_getAllKeysIn.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_getMapData.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_getNative.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_getPrototype.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_getRawTag.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_getSymbols.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_getSymbolsIn.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_getTag.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_getValue.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_hashClear.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_hashDelete.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_hashGet.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_hashHas.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_hashSet.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_initCloneArray.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_initCloneByTag.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_initCloneObject.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_isIndex.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_isKey.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_isKeyable.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_isMasked.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_isPrototype.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_listCacheClear.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_listCacheDelete.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_listCacheGet.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_listCacheHas.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_listCacheSet.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_mapCacheClear.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_mapCacheDelete.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_mapCacheGet.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_mapCacheHas.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_mapCacheSet.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_memoizeCapped.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_nativeCreate.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_nativeKeys.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_nativeKeysIn.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_nodeUtil.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_objectToString.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_overArg.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_parent.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_root.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_stackClear.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_stackDelete.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_stackGet.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_stackHas.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_stackSet.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_stringToPath.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_toKey.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/_toSource.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/cloneDeep.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/eq.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/isArguments.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/isArray.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/isArrayLike.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/isBuffer.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/isFunction.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/isLength.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/isMap.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/isObject.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/isObjectLike.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/isSet.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/isSymbol.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/isTypedArray.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/keys.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/keysIn.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/last.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/memoize.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/set.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/stubArray.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/stubFalse.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/toString.js","webpack://@cloudbase/js-sdk/../../node_modules/lodash/unset.js","webpack://@cloudbase/js-sdk/webpack/bootstrap","webpack://@cloudbase/js-sdk/webpack/runtime/compat get default export","webpack://@cloudbase/js-sdk/webpack/runtime/define property getters","webpack://@cloudbase/js-sdk/webpack/runtime/global","webpack://@cloudbase/js-sdk/webpack/runtime/hasOwnProperty shorthand","webpack://@cloudbase/js-sdk/webpack/runtime/node module decorator","webpack://@cloudbase/js-sdk/message.ts","webpack://@cloudbase/js-sdk/listener.ts","webpack://@cloudbase/js-sdk/virtual-websocket-client.ts","webpack://@cloudbase/js-sdk/snapshot.ts","webpack://@cloudbase/js-sdk/error.ts","webpack://@cloudbase/js-sdk/utils.ts","webpack://@cloudbase/js-sdk/ws-event.ts","webpack://@cloudbase/js-sdk/common.ts","webpack://@cloudbase/js-sdk/websocket-client.ts","webpack://@cloudbase/js-sdk/index.ts"],"sourcesContent":["var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nmodule.exports = DataView;\n","var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nmodule.exports = Promise;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n","var ListCache = require('./_ListCache'),\n stackClear = require('./_stackClear'),\n stackDelete = require('./_stackDelete'),\n stackGet = require('./_stackGet'),\n stackHas = require('./_stackHas'),\n stackSet = require('./_stackSet');\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nmodule.exports = Uint8Array;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nmodule.exports = WeakMap;\n","/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n\nmodule.exports = arrayEach;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n","var baseTimes = require('./_baseTimes'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isIndex = require('./_isIndex'),\n isTypedArray = require('./isTypedArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = arrayLikeKeys;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nmodule.exports = arrayPush;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignValue;\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n","var copyObject = require('./_copyObject'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n}\n\nmodule.exports = baseAssign;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n}\n\nmodule.exports = baseAssignIn;\n","var defineProperty = require('./_defineProperty');\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nmodule.exports = baseAssignValue;\n","var Stack = require('./_Stack'),\n arrayEach = require('./_arrayEach'),\n assignValue = require('./_assignValue'),\n baseAssign = require('./_baseAssign'),\n baseAssignIn = require('./_baseAssignIn'),\n cloneBuffer = require('./_cloneBuffer'),\n copyArray = require('./_copyArray'),\n copySymbols = require('./_copySymbols'),\n copySymbolsIn = require('./_copySymbolsIn'),\n getAllKeys = require('./_getAllKeys'),\n getAllKeysIn = require('./_getAllKeysIn'),\n getTag = require('./_getTag'),\n initCloneArray = require('./_initCloneArray'),\n initCloneByTag = require('./_initCloneByTag'),\n initCloneObject = require('./_initCloneObject'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isMap = require('./isMap'),\n isObject = require('./isObject'),\n isSet = require('./isSet'),\n keys = require('./keys'),\n keysIn = require('./keysIn');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] =\ncloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\ncloneableTags[boolTag] = cloneableTags[dateTag] =\ncloneableTags[float32Tag] = cloneableTags[float64Tag] =\ncloneableTags[int8Tag] = cloneableTags[int16Tag] =\ncloneableTags[int32Tag] = cloneableTags[mapTag] =\ncloneableTags[numberTag] = cloneableTags[objectTag] =\ncloneableTags[regexpTag] = cloneableTags[setTag] =\ncloneableTags[stringTag] = cloneableTags[symbolTag] =\ncloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\ncloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] =\ncloneableTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n}\n\nmodule.exports = baseClone;\n","var isObject = require('./isObject');\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\nmodule.exports = baseCreate;\n","var castPath = require('./_castPath'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n}\n\nmodule.exports = baseGet;\n","var arrayPush = require('./_arrayPush'),\n isArray = require('./isArray');\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nmodule.exports = baseGetAllKeys;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]';\n\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\nfunction baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n}\n\nmodule.exports = baseIsMap;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar setTag = '[object Set]';\n\n/**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\nfunction baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n}\n\nmodule.exports = baseIsSet;\n","var baseGetTag = require('./_baseGetTag'),\n isLength = require('./isLength'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n","var isPrototype = require('./_isPrototype'),\n nativeKeys = require('./_nativeKeys');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeys;\n","var isObject = require('./isObject'),\n isPrototype = require('./_isPrototype'),\n nativeKeysIn = require('./_nativeKeysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeysIn;\n","var assignValue = require('./_assignValue'),\n castPath = require('./_castPath'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\nfunction baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n return object;\n }\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n}\n\nmodule.exports = baseSet;\n","/**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\nfunction baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n}\n\nmodule.exports = baseSlice;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nmodule.exports = baseTimes;\n","var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","var castPath = require('./_castPath'),\n last = require('./last'),\n parent = require('./_parent'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\nfunction baseUnset(object, path) {\n path = castPath(path, object);\n object = parent(object, path);\n return object == null || delete object[toKey(last(path))];\n}\n\nmodule.exports = baseUnset;\n","var isArray = require('./isArray'),\n isKey = require('./_isKey'),\n stringToPath = require('./_stringToPath'),\n toString = require('./toString');\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nmodule.exports = castPath;\n","var Uint8Array = require('./_Uint8Array');\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\nmodule.exports = cloneArrayBuffer;\n","var root = require('./_root');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\nmodule.exports = cloneBuffer;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n\nmodule.exports = cloneDataView;\n","/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\nfunction cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n}\n\nmodule.exports = cloneRegExp;\n","var Symbol = require('./_Symbol');\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n\nmodule.exports = cloneSymbol;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nmodule.exports = cloneTypedArray;\n","/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\nmodule.exports = copyArray;\n","var assignValue = require('./_assignValue'),\n baseAssignValue = require('./_baseAssignValue');\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nmodule.exports = copyObject;\n","var copyObject = require('./_copyObject'),\n getSymbols = require('./_getSymbols');\n\n/**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n}\n\nmodule.exports = copySymbols;\n","var copyObject = require('./_copyObject'),\n getSymbolsIn = require('./_getSymbolsIn');\n\n/**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n}\n\nmodule.exports = copySymbolsIn;\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","var getNative = require('./_getNative');\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nmodule.exports = defineProperty;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbols = require('./_getSymbols'),\n keys = require('./keys');\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nmodule.exports = getAllKeys;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbolsIn = require('./_getSymbolsIn'),\n keysIn = require('./keysIn');\n\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\n\nmodule.exports = getAllKeysIn;\n","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var overArg = require('./_overArg');\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nmodule.exports = getPrototype;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","var arrayFilter = require('./_arrayFilter'),\n stubArray = require('./stubArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\nmodule.exports = getSymbols;\n","var arrayPush = require('./_arrayPush'),\n getPrototype = require('./_getPrototype'),\n getSymbols = require('./_getSymbols'),\n stubArray = require('./stubArray');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n};\n\nmodule.exports = getSymbolsIn;\n","var DataView = require('./_DataView'),\n Map = require('./_Map'),\n Promise = require('./_Promise'),\n Set = require('./_Set'),\n WeakMap = require('./_WeakMap'),\n baseGetTag = require('./_baseGetTag'),\n toSource = require('./_toSource');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nmodule.exports = getTag;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n}\n\nmodule.exports = initCloneArray;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer'),\n cloneDataView = require('./_cloneDataView'),\n cloneRegExp = require('./_cloneRegExp'),\n cloneSymbol = require('./_cloneSymbol'),\n cloneTypedArray = require('./_cloneTypedArray');\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n}\n\nmodule.exports = initCloneByTag;\n","var baseCreate = require('./_baseCreate'),\n getPrototype = require('./_getPrototype'),\n isPrototype = require('./_isPrototype');\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\nmodule.exports = initCloneObject;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n","var isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n}\n\nmodule.exports = isKey;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","var memoize = require('./memoize');\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n}\n\nmodule.exports = memoizeCapped;\n","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n","var overArg = require('./_overArg');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nmodule.exports = nativeKeys;\n","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = nativeKeysIn;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;\n","var baseGet = require('./_baseGet'),\n baseSlice = require('./_baseSlice');\n\n/**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\nfunction parent(object, path) {\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n}\n\nmodule.exports = parent;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","var ListCache = require('./_ListCache');\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nmodule.exports = stackClear;\n","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nmodule.exports = stackDelete;\n","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nmodule.exports = stackGet;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nmodule.exports = stackHas;\n","var ListCache = require('./_ListCache'),\n Map = require('./_Map'),\n MapCache = require('./_MapCache');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nmodule.exports = stackSet;\n","var memoizeCapped = require('./_memoizeCapped');\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n});\n\nmodule.exports = stringToPath;\n","var isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = toKey;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","var baseClone = require('./_baseClone');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\nfunction cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = cloneDeep;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","var isFunction = require('./isFunction'),\n isLength = require('./isLength');\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n","var root = require('./_root'),\n stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","var baseIsMap = require('./_baseIsMap'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n\n/**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\nmodule.exports = isMap;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseIsSet = require('./_baseIsSet'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsSet = nodeUtil && nodeUtil.isSet;\n\n/**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\nvar isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\nmodule.exports = isSet;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var baseIsTypedArray = require('./_baseIsTypedArray'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeys = require('./_baseKeys'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeysIn = require('./_baseKeysIn'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nmodule.exports = keysIn;\n","/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n}\n\nmodule.exports = last;\n","var MapCache = require('./_MapCache');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\n\nmodule.exports = memoize;\n","var baseSet = require('./_baseSet');\n\n/**\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\n * it's created. Arrays are created for missing index properties while objects\n * are created for all other missing properties. Use `_.setWith` to customize\n * `path` creation.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.set(object, 'a[0].b.c', 4);\n * console.log(object.a[0].b.c);\n * // => 4\n *\n * _.set(object, ['x', '0', 'y', 'z'], 5);\n * console.log(object.x[0].y.z);\n * // => 5\n */\nfunction set(object, path, value) {\n return object == null ? object : baseSet(object, path, value);\n}\n\nmodule.exports = set;\n","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nmodule.exports = stubArray;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n","var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n","var baseUnset = require('./_baseUnset');\n\n/**\n * Removes the property at `path` of `object`.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 7 } }] };\n * _.unset(object, 'a[0].b.c');\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n *\n * _.unset(object, ['a', '0', 'b', 'c']);\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n */\nfunction unset(object, path) {\n return object == null ? true : baseUnset(object, path);\n}\n\nmodule.exports = unset;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","import {\n IResponseMessage,\n IResponseMessageInitEventMsg,\n} from '@cloudbase/types/realtime'\n\nexport function genRequestId(prefix = '') {\n return `${prefix ? `${prefix}_` : ''}${+new Date()}_${Math.random()}`\n}\n\nexport function isInitEventMessage(msg: IResponseMessage): msg is IResponseMessageInitEventMsg {\n return msg.msgType === 'INIT_EVENT'\n}\n","import { VirtualWebSocketClient } from './virtual-websocket-client'\nimport {\n IRealtimeListenerConstructorOptions,\n DBRealtimeListener,\n} from '@cloudbase/types/realtime'\n\n// =============== Realtime Listener (Public) ====================\n\ninterface IRealtimeListenerOptions extends IRealtimeListenerConstructorOptions {\n // init\n close: () => void\n // debug\n debug?: boolean\n virtualClient?: VirtualWebSocketClient\n}\n\nexport class RealtimeListener implements DBRealtimeListener {\n close: () => void\n onChange: (res: any) => void\n onError: (error: any) => void\n\n constructor(options: IRealtimeListenerOptions) {\n this.close = options.close\n this.onChange = options.onChange\n this.onError = options.onError\n\n if (options.debug) {\n Object.defineProperty(this, 'virtualClient', {\n get: () => options.virtualClient,\n })\n }\n }\n}\n","import set from 'lodash/set'\nimport unset from 'lodash/unset'\nimport cloneDeep from 'lodash/cloneDeep'\nimport { genRequestId } from './message'\nimport {\n IResponseMessage,\n IRequestMessageInitWatchMsg,\n IResponseMessageInitEventMsg,\n IDBEvent,\n IRequestMessageRebuildWatchMsg,\n IRequestMessageCloseWatchMsg,\n IRequestMsgType,\n IResponseMessageNextEventMsg,\n IRequestMessageCheckLastMsg,\n IWatchOptions,\n} from '@cloudbase/types/realtime'\nimport {\n ISingleDBEvent,\n} from '@cloudbase/types/database'\nimport { RealtimeListener } from './listener'\nimport { Snapshot } from './snapshot'\nimport { IWSSendOptions, ILoginResult } from './websocket-client'\nimport {\n ERR_CODE,\n CloudSDKError,\n isTimeoutError,\n CancelledError,\n isCancelledError,\n isRealtimeErrorMessageError,\n RealtimeErrorMessageError,\n TimeoutError,\n} from './error'\nimport { sleep } from './utils'\n\n// =============== Realtime Virtual WebSocket Client (Internal) ====================\n\ninterface IVirtualWebSocketClientConstructorOptions extends IWatchOptions {\n envId?: string\n collectionName: string\n query: string\n limit?: number\n orderBy?: Record<string, string>\n send: <T = any>(opts: IWSSendOptions) => Promise<T>\n login: (envId?: string, refresh?: boolean) => Promise<any>\n isWSConnected: () => boolean\n onceWSConnected: () => Promise<void>\n getWaitExpectedTimeoutLength: () => number\n onWatchStart: (client: VirtualWebSocketClient, queryID: string) => void\n onWatchClose: (client: VirtualWebSocketClient, queryID: string) => void\n debug?: boolean\n}\n\ninterface IWatchSessionInfo {\n queryID: string\n currentEventId: number\n currentDocs: Record<string, any>[]\n expectEventId?: number\n}\n\ninterface IHandleCommonErrorOptions {\n onSignError: (e: RealtimeErrorMessageError) => void\n onTimeoutError: (e: TimeoutError) => void\n onCancelledError: (e: CancelledError) => void\n onNotRetryableError: (e: RealtimeErrorMessageError) => void\n onUnknownError: (e: any) => void\n}\n\ninterface IHandleWatchEstablishmentErrorOptions {\n operationName: 'INIT_WATCH' | 'REBUILD_WATCH'\n resolve: (value?: PromiseLike<void> | undefined) => void\n reject: (e: any) => void\n}\n\nenum WatchStatus {\n LOGGINGIN = 'LOGGINGIN',\n INITING = 'INITING',\n REBUILDING = 'REBUILDING',\n ACTIVE = 'ACTIVE',\n ERRORED = 'ERRORED',\n CLOSING = 'CLOSING',\n CLOSED = 'CLOSED',\n PAUSED = 'PAUSED',\n RESUMING = 'RESUMING'\n}\n\nconst DEFAULT_WAIT_TIME_ON_UNKNOWN_ERROR = 100\nconst DEFAULT_MAX_AUTO_RETRY_ON_ERROR = 2\nconst DEFAULT_MAX_SEND_ACK_AUTO_RETRY_ON_ERROR = 2\nconst DEFAULT_SEND_ACK_DEBOUNCE_TIMEOUT = 10 * 1000\nconst DEFAULT_INIT_WATCH_TIMEOUT = 10 * 1000\nconst DEFAULT_REBUILD_WATCH_TIMEOUT = 10 * 1000\n\nexport class VirtualWebSocketClient {\n // passed over\n watchId: string\n // own\n listener: RealtimeListener\n private envId?: string\n private collectionName: string\n private query: string\n private limit: number\n private orderBy: Record<string, string>\n private send: <T = any>(opts: IWSSendOptions) => Promise<T>\n private login: (envId?: string, refresh?: boolean) => Promise<any>\n private isWSConnected: () => boolean\n private onceWSConnected: () => Promise<void>\n private getWaitExpectedTimeoutLength: () => number\n private onWatchStart: (\n client: VirtualWebSocketClient,\n queryID: string\n ) => void\n private onWatchClose: (\n client: VirtualWebSocketClient,\n queryID: string\n ) => void\n private debug?: boolean\n\n private watchStatus: WatchStatus = WatchStatus.INITING\n private availableRetries: Partial<Record<IRequestMsgType, number>>\n private ackTimeoutId?: number\n private initWatchPromise?: Promise<void>\n private rebuildWatchPromise?: Promise<void>\n\n // obtained\n private sessionInfo?: IWatchSessionInfo\n\n // internal\n private waitExpectedTimeoutId?: number\n\n constructor(options: IVirtualWebSocketClientConstructorOptions) {\n this.watchId = `watchid_${+new Date()}_${Math.random()}`\n this.envId = options.envId\n this.collectionName = options.collectionName\n this.query = options.query\n this.limit = options.limit\n this.orderBy = options.orderBy\n this.send = options.send\n this.login = options.login\n this.isWSConnected = options.isWSConnected\n this.onceWSConnected = options.onceWSConnected\n this.getWaitExpectedTimeoutLength = options.getWaitExpectedTimeoutLength\n this.onWatchStart = options.onWatchStart\n this.onWatchClose = options.onWatchClose\n this.debug = options.debug\n\n this.availableRetries = {\n INIT_WATCH: DEFAULT_MAX_AUTO_RETRY_ON_ERROR,\n REBUILD_WATCH: DEFAULT_MAX_AUTO_RETRY_ON_ERROR,\n CHECK_LAST: DEFAULT_MAX_SEND_ACK_AUTO_RETRY_ON_ERROR,\n }\n\n this.listener = new RealtimeListener({\n close: () => {\n this.closeWatch()\n },\n onChange: options.onChange,\n onError: options.onError,\n debug: this.debug,\n virtualClient: this,\n })\n\n this.initWatch()\n }\n\n onMessage(msg: IResponseMessage) {\n // watchStatus sanity check\n switch (this.watchStatus) {\n case WatchStatus.PAUSED: {\n // ignore all but error message\n if (msg.msgType !== 'ERROR') {\n return\n }\n break\n }\n case WatchStatus.LOGGINGIN:\n case WatchStatus.INITING:\n case WatchStatus.REBUILDING: {\n console.warn(`[realtime listener] internal non-fatal error: unexpected message received while ${this.watchStatus}`)\n return\n }\n case WatchStatus.CLOSED: {\n console.warn('[realtime listener] internal non-fatal error: unexpected message received when the watch has closed')\n return\n }\n case WatchStatus.ERRORED: {\n console.warn('[realtime listener] internal non-fatal error: unexpected message received when the watch has ended with error')\n return\n }\n }\n\n if (!this.sessionInfo) {\n console.warn('[realtime listener] internal non-fatal error: sessionInfo not found while message is received.')\n return\n }\n\n this.scheduleSendACK()\n\n switch (msg.msgType) {\n case 'NEXT_EVENT': {\n // if (process.env.DEBUG) {\n // @ts-ignore\n // if (wx._ignore) {\n console.warn(`nextevent ${msg.msgData.currEvent} ignored`, msg)\n // @ts-ignore\n // wx._ignore = false\n // return\n // }\n // }\n\n this.handleServerEvents(msg)\n break\n }\n case 'CHECK_EVENT': {\n if (this.sessionInfo.currentEventId < msg.msgData.currEvent) {\n // client eventID < server eventID:\n // there might be one or more pending events not yet received but sent by the server\n this.sessionInfo.expectEventId = msg.msgData.currEvent\n this.clearWaitExpectedEvent()\n // @ts-ignore\n this.waitExpectedTimeoutId = setTimeout(() => {\n // must rebuild watch\n this.rebuildWatch()\n }, this.getWaitExpectedTimeoutLength())\n\n console.log(`[realtime] waitExpectedTimeoutLength ${this.getWaitExpectedTimeoutLength()}`)\n }\n break\n }\n case 'ERROR': {\n // receive server error\n this.closeWithError(new CloudSDKError({\n errCode: ERR_CODE.SDK_DATABASE_REALTIME_LISTENER_SERVER_ERROR_MSG as string,\n errMsg: `${msg.msgData.code} - ${msg.msgData.message}`,\n }))\n break\n }\n default: {\n console.warn(\n `[realtime listener] virtual client receive unexpected msg ${msg.msgType}: `,\n msg\n )\n break\n }\n }\n }\n\n closeWithError(error: any) {\n this.watchStatus = WatchStatus.ERRORED\n this.clearACKSchedule()\n this.listener.onError(error)\n this.onWatchClose(\n this,\n (this.sessionInfo?.queryID) || ''\n )\n\n console.log(`[realtime] client closed (${this.collectionName} ${this.query}) (watchId ${this.watchId})`)\n }\n\n pause() {\n this.watchStatus = WatchStatus.PAUSED\n console.log(`[realtime] client paused (${this.collectionName} ${this.query}) (watchId ${this.watchId})`)\n }\n\n\n async resume(): Promise<void> {\n this.watchStatus = WatchStatus.RESUMING\n\n console.log(`[realtime] client resuming with ${\n this.sessionInfo ? 'REBUILD_WATCH' : 'INIT_WATCH'\n } (${this.collectionName} ${this.query}) (${this.watchId})`)\n\n try {\n await (this.sessionInfo ? this.rebuildWatch() : this.initWatch())\n\n console.log(`[realtime] client successfully resumed (${this.collectionName} ${this.query}) (${this.watchId})`)\n } catch (e) {\n console.error(\n `[realtime] client resume failed (${this.collectionName} ${this.query}) (${this.watchId})`,\n e\n )\n }\n }\n\n private wsLogin = async (\n envId?: string,\n refresh?: boolean\n ): Promise<ILoginResult> => {\n this.watchStatus = WatchStatus.LOGGINGIN\n const loginResult = await this.login(envId, refresh)\n if (!this.envId) {\n this.envId = loginResult.envId\n }\n return loginResult\n }\n\n private initWatch = async (forceRefreshLogin?: boolean): Promise<void> => {\n if (this.initWatchPromise !== null && this.initWatchPromise !== undefined) {\n return this.initWatchPromise\n }\n\n this.initWatchPromise = new Promise<void>((resolve, reject) => {\n void (async () => {\n try {\n if (this.watchStatus === WatchStatus.PAUSED) {\n console.log('[realtime] initWatch cancelled on pause')\n return resolve()\n }\n\n const { envId } = await this.wsLogin(this.envId, forceRefreshLogin)\n if ((this.watchStatus as WatchStatus) === WatchStatus.PAUSED) {\n console.log('[realtime] initWatch cancelled on pause')\n return resolve()\n }\n\n this.watchStatus = WatchStatus.INITING\n\n const initWatchMsg: IRequestMessageInitWatchMsg = {\n watchId: this.watchId,\n requestId: genRequestId(),\n msgType: 'INIT_WATCH',\n msgData: {\n envId,\n collName: this.collectionName,\n query: this.query,\n limit: this.limit,\n orderBy: this.orderBy,\n },\n }\n\n const initEventMsg = await this.send<IResponseMessageInitEventMsg>({\n msg: initWatchMsg,\n waitResponse: true,\n skipOnMessage: true,\n timeout: DEFAULT_INIT_WATCH_TIMEOUT,\n })\n\n const { events, currEvent } = initEventMsg.msgData\n\n this.sessionInfo = {\n queryID: initEventMsg.msgData.queryID,\n currentEventId: currEvent - 1,\n currentDocs: [],\n }\n\n // FIX: in initEvent message, all events have id 0, which is inconsistent with currEvent\n if (events.length > 0) {\n for (const e of events) {\n e.ID = currEvent\n }\n this.handleServerEvents(initEventMsg)\n } else {\n this.sessionInfo.currentEventId = currEvent\n const snapshot = new Snapshot({\n id: currEvent,\n docChanges: [],\n docs: [],\n type: 'init',\n })\n this.listener.onChange(snapshot)\n this.scheduleSendACK()\n }\n this.onWatchStart(this, this.sessionInfo.queryID)\n this.watchStatus = WatchStatus.ACTIVE\n this.availableRetries.INIT_WATCH = DEFAULT_MAX_AUTO_RETRY_ON_ERROR\n resolve()\n } catch (e) {\n this.handleWatchEstablishmentError(e, {\n operationName: 'INIT_WATCH',\n resolve,\n reject,\n })\n }\n })()\n })\n\n let success = false\n\n try {\n await this.initWatchPromise\n success = true\n } finally {\n this.initWatchPromise = undefined\n }\n console.log(`[realtime] initWatch ${success ? 'success' : 'fail'}`)\n }\n\n private rebuildWatch = async (forceRefreshLogin?: boolean): Promise<void> => {\n if (this.rebuildWatchPromise !== null && this.rebuildWatchPromise !== undefined) {\n return this.rebuildWatchPromise\n }\n\n this.rebuildWatchPromise = new Promise<void>((resolve, reject) => {\n void (async () => {\n try {\n if (this.watchStatus === WatchStatus.PAUSED) {\n console.log('[realtime] rebuildWatch cancelled on pause')\n return resolve()\n }\n const { envId } = await this.wsLogin(this.envId, forceRefreshLogin)\n\n if (!this.sessionInfo) {\n throw new Error('can not rebuildWatch without a successful initWatch (lack of sessionInfo)')\n }\n\n if ((this.watchStatus as WatchStatus) === WatchStatus.PAUSED) {\n console.log('[realtime] rebuildWatch cancelled on pause')\n return resolve()\n }\n\n this.watchStatus = WatchStatus.REBUILDING\n\n const rebuildWatchMsg: IRequestMessageRebuildWatchMsg = {\n watchId: this.watchId,\n requestId: genRequestId(),\n msgType: 'REBUILD_WATCH',\n msgData: {\n envId,\n collName: this.collectionName,\n queryID: this.sessionInfo.queryID,\n eventID: this.sessionInfo.currentEventId,\n },\n }\n\n const nextEventMsg = await this.send<IResponseMessageNextEventMsg>({\n msg: rebuildWatchMsg,\n waitResponse: true,\n skipOnMessage: false,\n timeout: DEFAULT_REBUILD_WATCH_TIMEOUT,\n })\n\n this.handleServerEvents(nextEventMsg)\n\n this.watchStatus = WatchStatus.ACTIVE\n this.availableRetries.REBUILD_WATCH = DEFAULT_MAX_AUTO_RETRY_ON_ERROR\n resolve()\n } catch (e) {\n this.handleWatchEstablishmentError(e, {\n operationName: 'REBUILD_WATCH',\n resolve,\n reject,\n })\n }\n })()\n })\n\n let success = false\n\n try {\n await this.rebuildWatchPromise\n success = true\n } finally {\n this.rebuildWatchPromise = undefined\n }\n\n console.log(`[realtime] rebuildWatch ${success ? 'success' : 'fail'}`)\n }\n\n private handleWatchEstablishmentError = async (\n e: any,\n options: IHandleWatchEstablishmentErrorOptions\n ) => {\n const isInitWatch = options.operationName === 'INIT_WATCH'\n\n const abortWatch = () => {\n // mock temp comment\n this.closeWithError(new CloudSDKError({\n errCode: isInitWatch\n ? (ERR_CODE.SDK_DATABASE_REALTIME_LISTENER_INIT_WATCH_FAIL as string)\n : (ERR_CODE.SDK_DATABASE_REALTIME_LISTENER_REBUILD_WATCH_FAIL as string),\n errMsg: e,\n }))\n options.reject(e)\n }\n\n const retry = (refreshLogin?: boolean) => {\n if (this.useRetryTicket(options.operationName)) {\n if (isInitWatch) {\n this.initWatchPromise = undefined\n options.resolve(this.initWatch(refreshLogin))\n } else {\n this.rebuildWatchPromise = undefined\n options.resolve(this.rebuildWatch(refreshLogin))\n }\n } else {\n abortWatch()\n }\n }\n\n this.handleCommonError(e, {\n onSignError: () => retry(true),\n onTimeoutError: () => retry(false),\n onNotRetryableError: abortWatch,\n onCancelledError: options.reject,\n onUnknownError: () => {\n (async () => {\n try {\n const onWSDisconnected = async () => {\n this.pause()\n await this.onceWSConnected()\n retry(true)\n }\n\n if (!this.isWSConnected()) {\n await onWSDisconnected()\n } else {\n await sleep(DEFAULT_WAIT_TIME_ON_UNKNOWN_ERROR)\n if (this.watchStatus === WatchStatus.PAUSED) {\n // cancel\n options.reject(new CancelledError(`${options.operationName} cancelled due to pause after unknownError`))\n } else if (!this.isWSConnected()) {\n await onWSDisconnected()\n } else {\n retry(false)\n }\n }\n } catch (e) {\n // unexpected error while handling error, in order to provide maximum effort on SEAMINGLESS FAULT TOLERANCE, just retry\n retry(true)\n }\n })()\n },\n })\n }\n\n private closeWatch = async () => {\n const queryId = this.sessionInfo ? this.sessionInfo.queryID : ''\n\n if (this.watchStatus !== WatchStatus.ACTIVE) {\n this.watchStatus = WatchStatus.CLOSED\n this.onWatchClose(this, queryId)\n return\n }\n\n try {\n this.watchStatus = WatchStatus.CLOSING\n\n const closeWatchMsg: IRequestMessageCloseWatchMsg = {\n watchId: this.watchId,\n requestId: genRequestId(),\n msgType: 'CLOSE_WATCH',\n msgData: null,\n }\n\n await this.send({\n msg: closeWatchMsg,\n })\n\n this.sessionInfo = undefined\n this.watchStatus = WatchStatus.CLOSED\n } catch (e) {\n this.closeWithError(new CloudSDKError({\n errCode: ERR_CODE.SDK_DATABASE_REALTIME_LISTENER_CLOSE_WATCH_FAIL as string,\n errMsg: e,\n }))\n } finally {\n this.onWatchClose(this, queryId)\n }\n }\n\n private scheduleSendACK = () => {\n this.clearACKSchedule()\n\n // TODO: should we check status after timeout\n // @ts-ignore\n this.ackTimeoutId = setTimeout(() => {\n if (this.waitExpectedTimeoutId) {\n this.scheduleSendACK()\n } else {\n this.sendACK()\n }\n }, DEFAULT_SEND_ACK_DEBOUNCE_TIMEOUT)\n }\n\n private clearACKSchedule = () => {\n if (this.ackTimeoutId) {\n clearTimeout(this.ackTimeoutId)\n }\n }\n\n private sendACK = async (): Promise<void> => {\n try {\n if (this.watchStatus !== WatchStatus.ACTIVE) {\n this.scheduleSendACK()\n return\n }\n\n if (!this.sessionInfo) {\n console.warn('[realtime listener] can not send ack without a successful initWatch (lack of sessionInfo)')\n return\n }\n\n const ackMsg: IRequestMessageCheckLastMsg = {\n watchId: this.watchId,\n requestId: genRequestId(),\n msgType: 'CHECK_LAST',\n msgData: {\n queryID: this.sessionInfo.queryID,\n eventID: this.sessionInfo.currentEventId,\n },\n }\n\n await this.send({\n msg: ackMsg,\n })\n\n this.scheduleSendACK()\n } catch (e) {\n // TODO: refactor\n if (isRealtimeErrorMessageError(e)) {\n const msg = e.payload\n switch (msg.msgData.code) {\n // signature error -> retry with refreshed signature\n case 'CHECK_LOGIN_FAILED':\n case 'SIGN_EXPIRED_ERROR':\n case 'SIGN_INVALID_ERROR':\n case 'SIGN_PARAM_INVALID': {\n this.rebuildWatch()\n return\n }\n // other -> throw\n case 'QUERYID_INVALID_ERROR':\n case 'SYS_ERR':\n case 'INVALIID_ENV':\n case 'COLLECTION_PERMISSION_DENIED': {\n // must throw\n this.closeWithError(new CloudSDKError({\n errCode: ERR_CODE.SDK_DATABASE_REALTIME_LISTENER_CHECK_LAST_FAIL as string,\n errMsg: msg.msgData.code,\n }))\n return\n }\n default: {\n break\n }\n }\n }\n\n // maybe retryable\n if (\n this.availableRetries.CHECK_LAST\n && this.availableRetries.CHECK_LAST > 0\n ) {\n this.availableRetries.CHECK_LAST -= 1\n this.scheduleSendACK()\n } else {\n this.closeWithError(new CloudSDKError({\n errCode: ERR_CODE.SDK_DATABASE_REALTIME_LISTENER_CHECK_LAST_FAIL as string,\n errMsg: e,\n }))\n }\n }\n }\n\n private handleCommonError = (\n e: any,\n options: IHandleCommonErrorOptions\n ): void => {\n if (isRealtimeErrorMessageError(e)) {\n const msg = e.payload\n switch (msg.msgData.code) {\n // signature error -> retry with refreshed signature\n case 'CHECK_LOGIN_FAILED':\n case 'SIGN_EXPIRED_ERROR':\n case 'SIGN_INVALID_ERROR':\n case 'SIGN_PARAM_INVALID': {\n options.onSignError(e)\n return\n }\n // not-retryable error -> throw\n case 'QUERYID_INVALID_ERROR':\n case 'SYS_ERR':\n case 'INVALIID_ENV':\n case 'COLLECTION_PERMISSION_DENIED': {\n options.onNotRetryableError(e)\n return\n }\n default: {\n options.onNotRetryableError(e)\n return\n }\n }\n } else if (isTimeoutError(e)) {\n // timeout error\n options.onTimeoutError(e)\n return\n } else if (isCancelledError(e)) {\n // cancelled error\n options.onCancelledError(e)\n return\n }\n\n // unknown error\n options.onUnknownError(e)\n }\n\n // credit a retry chance from availableRetries\n private useRetryTicket(operationName: IRequestMsgType): boolean {\n if (\n this.availableRetries[operationName]\n && this.availableRetries[operationName]! > 0\n ) {\n this.availableRetries[operationName]! -= 1\n console.log(`[realtime] ${operationName} use a retry ticket, now only ${this.availableRetries[operationName]} retry left`)\n\n return true\n }\n return false\n }\n\n private async handleServerEvents(msg: IResponseMessageInitEventMsg | IResponseMessageNextEventMsg) {\n try {\n this.scheduleSendACK()\n await this.handleServerEventsInternel(msg)\n this.postHandleServerEventsValidityCheck(msg)\n } catch (e) {\n // TODO: report\n console.error(\n '[realtime listener] internal non-fatal error: handle server events failed with error: ',\n e\n )\n throw e\n }\n }\n\n private async handleServerEventsInternel(msg: IResponseMessageInitEventMsg | IResponseMessageNextEventMsg) {\n const { requestId } = msg\n\n const { events } = msg.msgData\n const { msgType } = msg\n\n if (!events.length || !this.sessionInfo) {\n return\n }\n\n const { sessionInfo } = this\n\n let allChangeEvents: ISingleDBEvent[]\n try {\n allChangeEvents = events.map(getPublicEvent)\n } catch (e) {\n this.closeWithError(new CloudSDKError({\n errCode: ERR_CODE.SDK_DATABASE_REALTIME_LISTENER_RECEIVE_INVALID_SERVER_DATA as string,\n errMsg: e,\n }))\n return\n }\n\n // aggregate docs\n let docs = [...sessionInfo.currentDocs]\n let initEncountered = false\n for (let i = 0, len = allChangeEvents.length; i < len; i++) {\n const change = allChangeEvents[i]\n\n if (sessionInfo.currentEventId >= change.id) {\n if (!allChangeEvents[i - 1] || change.id > allChangeEvents[i - 1].id) {\n // duplicate event, dropable\n // TODO: report\n // if (process.env.DEBUG) {\n console.warn(`[realtime] duplicate event received, cur ${sessionInfo.currentEventId} but got ${change.id}`)\n // }\n } else {\n // allChangeEvents should be in ascending order according to eventId, this should never happens, must report a non-fatal error\n console.error(`[realtime listener] server non-fatal error: events out of order (the latter event's id is smaller than that of the former) (requestId ${requestId})`)\n }\n continue\n } else if (sessionInfo.currentEventId === change.id - 1) {\n // correct sequence\n // first handle dataType then queueType:\n // 1. dataType: we ONLY populate change.doc if neccessary\n // 2. queueType: we build the data snapshot\n\n switch (change.dataType) {\n case 'update': {\n // only need to populate change.doc when it is not provided\n if (!change.doc) {\n switch (change.queueType) {\n case 'update':\n case 'dequeue': {\n const localDoc = docs.find(doc => doc._id === change.docId)\n if (localDoc) {\n // a partial update\n const doc = cloneDeep(localDoc)\n\n if (change.updatedFields) {\n Object.keys(change.updatedFields).forEach((fieldPath) => {\n set(doc, fieldPath, change.updatedFields[fieldPath])\n })\n }\n\n if (change.removedFields) {\n for (const fieldPath of change.removedFields) {\n unset(doc, fieldPath)\n }\n }\n\n change.doc = doc\n } else {\n // TODO report\n console.error('[realtime listener] internal non-fatal server error: unexpected update dataType event where no doc is associated.')\n }\n break\n }\n case 'enqueue': {\n // doc is provided by server, this should never occur\n const err = new CloudSDKError({\n errCode: ERR_CODE.SDK_DATABASE_REALTIME_LISTENER_UNEXPECTED_FATAL_ERROR as string,\n errMsg: `HandleServerEvents: full doc is not provided with dataType=\"update\" and queueType=\"enqueue\" (requestId ${msg.requestId})`,\n })\n this.closeWithError(err)\n throw err\n }\n default: {\n break\n }\n }\n }\n break\n }\n case 'replace': {\n // validation\n if (!change.doc) {\n // doc is provided by server, this should never occur\n const err = new CloudSDKError({\n errCode: ERR_CODE.SDK_DATABASE_REALTIME_LISTENER_UNEXPECTED_FATAL_ERROR as string,\n errMsg: `HandleServerEvents: full doc is not provided with dataType=\"replace\" (requestId ${msg.requestId})`,\n })\n this.closeWithError(err)\n throw err\n }\n break\n }\n case 'remove': {\n const doc = docs.find(doc => doc._id === change.docId)\n if (doc) {\n change.doc = doc\n } else {\n // TODO report\n console.error('[realtime listener] internal non-fatal server error: unexpected remove event where no doc is associated.')\n }\n break\n }\n case 'limit': {\n if (!change.doc) {\n switch (change.queueType) {\n case 'dequeue': {\n const doc = docs.find(doc => doc._id === change.docId)\n if (doc) {\n change.doc = doc\n } else {\n console.error('[realtime listener] internal non-fatal server error: unexpected limit dataType event where no doc is associated.')\n }\n break\n }\n case 'enqueue': {\n // doc is provided by server, this should never occur\n const err = new CloudSDKError({\n errCode: ERR_CODE.SDK_DATABASE_REALTIME_LISTENER_UNEXPECTED_FATAL_ERROR as string,\n errMsg: `HandleServerEvents: full doc is not provided with dataType=\"limit\" and queueType=\"enqueue\" (requestId ${msg.requestId})`,\n })\n this.closeWithError(err)\n throw err\n }\n default: {\n break\n }\n }\n }\n break\n }\n }\n\n switch (change.queueType) {\n case 'init': {\n if (!initEncountered) {\n initEncountered = true\n docs = [change.doc]\n } else {\n docs.push(change.doc)\n }\n break\n }\n case 'enqueue': {\n docs.push(change.doc)\n break\n }\n case 'dequeue': {\n const ind = docs.findIndex(doc => doc._id === change.docId)\n if (ind > -1) {\n docs.splice(ind, 1)\n } else {\n // TODO report\n console.error('[realtime listener] internal non-fatal server error: unexpected dequeue event where no doc is associated.')\n }\n break\n }\n case 'update': {\n const ind = docs.findIndex(doc => doc._id === change.docId)\n if (ind > -1) {\n docs[ind] = change.doc\n } else {\n // TODO report\n console.error('[realtime listener] internal non-fatal server error: unexpected queueType update event where no doc is associated.')\n }\n break\n }\n }\n\n if (\n i === len - 1\n || (allChangeEvents[i + 1] && allChangeEvents[i + 1].id !== change.id)\n ) {\n // a shallow slice creates a shallow snapshot\n const docsSnapshot = [...docs]\n\n // we slice first cause' if there're allChangeEvents that are of the same id after this change, we don't want to involve it for it is unexpected invalid order\n const docChanges = allChangeEvents\n .slice(0, i + 1)\n .filter(c => c.id === change.id)\n\n // all changes of this event has been handle, we could dispatch the event now\n this.sessionInfo.currentEventId = change.id\n this.sessionInfo.currentDocs = docs\n\n const snapshot = new Snapshot({\n id: change.id,\n docChanges,\n docs: docsSnapshot,\n msgType,\n })\n\n this.listener.onChange(snapshot)\n }\n } else {\n // out-of-order event\n // if (process.env.DEBUG) {\n // TODO: report\n console.warn(`[realtime listener] event received is out of order, cur ${this.sessionInfo.currentEventId} but got ${change.id}`)\n // }\n // rebuild watch\n await this.rebuildWatch()\n return\n }\n }\n }\n\n private postHandleServerEventsValidityCheck(msg: IResponseMessageInitEventMsg | IResponseMessageNextEventMsg) {\n if (!this.sessionInfo) {\n console.error('[realtime listener] internal non-fatal error: sessionInfo lost after server event handling, this should never occur')\n return\n }\n\n if (\n this.sessionInfo.expectEventId\n && this.sessionInfo.currentEventId >= this.sessionInfo.expectEventId\n ) {\n this.clearWaitExpectedEvent()\n }\n\n if (this.sessionInfo.currentEventId < msg.msgData.currEvent) {\n console.warn('[realtime listener] internal non-fatal error: client eventId does not match with server event id after server event handling')\n return\n }\n }\n\n private clearWaitExpectedEvent() {\n if (this.waitExpectedTimeoutId) {\n clearTimeout(this.waitExpectedTimeoutId)\n this.waitExpectedTimeoutId = undefined\n }\n }\n}\n\nfunction getPublicEvent(event: IDBEvent): ISingleDBEvent {\n const e: ISingleDBEvent = {\n id: event.ID,\n dataType: event.DataType,\n queueType: event.QueueType,\n docId: event.DocID,\n doc: event.Doc && event.Doc !== '{}' ? JSON.parse(event.Doc) : undefined,\n }\n\n if (event.DataType === 'update') {\n // @ts-ignore\n if (event.UpdatedFields) {\n e.updatedFields = JSON.parse(event.UpdatedFields)\n }\n // TODO: wait for tcb to change removedFields to RemovedFields\n // @ts-ignore\n if (event.removedFields || event.RemovedFields) {\n // @ts-ignore\n // e.removedFields = event.removedFields\n // ? JSON.parse(event.removedFields)\n // : JSON.parse(event.RemovedFields)\n e.removedFields = JSON.parse(event.removedFields)\n }\n }\n\n return e\n}\n","import { SnapshotType, ISnapshot } from '@cloudbase/types/realtime'\nimport { ISingleDBEvent } from '@cloudbase/types/database'\n\n// =============== Realtime Snapshot / Change Event (Public) ====================\n\ninterface ISnapshotConstructorOptions {\n id: number\n docChanges: ISingleDBEvent[]\n docs: Record<string, any>[]\n type?: SnapshotType\n // EJSON: any\n msgType?: String\n}\n\nexport class Snapshot implements ISnapshot {\n id!: number\n docChanges!: ISingleDBEvent[]\n docs!: Record<string, any>[]\n type?: 'init'\n // EJSON: any\n\n constructor(options: ISnapshotConstructorOptions) {\n const { id, docChanges, docs, msgType, type } = options\n\n let cachedDocChanges: ISingleDBEvent[]\n let cachedDocs: Record<string, any>[]\n\n Object.defineProperties(this, {\n id: {\n get: () => id,\n enumerable: true,\n },\n docChanges: {\n get: () => {\n if (!cachedDocChanges) {\n cachedDocChanges = JSON.parse(JSON.stringify(docChanges))\n }\n return cachedDocChanges\n },\n enumerable: true,\n },\n docs: {\n get: () => {\n if (!cachedDocs) {\n cachedDocs = JSON.parse(JSON.stringify(docs))\n }\n return cachedDocs\n },\n enumerable: true,\n },\n msgType: {\n get: () => msgType,\n enumerable: true,\n },\n type: {\n get: () => type,\n enumerable: true,\n },\n })\n }\n}\n","import { IGenericError } from '@cloudbase/types'\nimport { IResponseMessageErrorMsg } from '@cloudbase/types/realtime'\n\nexport class RealtimeErrorMessageError extends Error {\n isRealtimeErrorMessageError = true\n payload: IResponseMessageErrorMsg\n\n constructor(serverErrorMsg: IResponseMessageErrorMsg) {\n super(`Watch Error ${JSON.stringify(serverErrorMsg.msgData)} (requestid: ${\n serverErrorMsg.requestId\n })`)\n this.payload = serverErrorMsg\n }\n}\n\nexport const isRealtimeErrorMessageError = (e: any): e is RealtimeErrorMessageError => e?.isRealtimeErrorMessageError\n\nexport class TimeoutError extends Error\n implements IGenericError<'timeout', null> {\n type = 'timeout' as const\n payload = null\n generic = true\n}\n\nexport const isTimeoutError = (e: any): e is TimeoutError => e.type === 'timeout'\n\nexport class CancelledError extends Error\n implements IGenericError<'cancelled', null> {\n type = 'cancelled' as const\n payload = null\n generic = true\n}\n\nexport const isCancelledError = (e: any): e is CancelledError => e.type === 'cancelled'\n\nexport class CloudSDKError extends Error {\n public errCode = 'UNKNOWN_ERROR'\n public errMsg: string\n\n public requestID?: string\n\n constructor(options: IErrorConstructorOptions) {\n super(options.errMsg)\n\n Object.defineProperties(this, {\n message: {\n get() {\n return (\n `errCode: ${this.errCode} ${ERR_CODE[this.errCode]\n || ''} | errMsg: ${this.errMsg}`\n )\n },\n set(msg: string) {\n this.errMsg = msg\n },\n },\n })\n\n this.errCode = options.errCode || 'UNKNOWN_ERROR'\n this.errMsg = options.errMsg\n }\n\n get message() {\n return `errCode: ${this.errCode} | errMsg: ${this.errMsg}`\n }\n\n set message(msg: string) {\n this.errMsg = msg\n }\n}\n\ninterface IErrorConstructorOptions {\n errCode?: string\n errMsg: string\n}\n\nexport const ERR_CODE: { [key: string]: string | number } = {\n // \"-1\": \"\",\n UNKNOWN_ERROR: 'UNKNOWN_ERROR',\n SDK_DATABASE_REALTIME_LISTENER_INIT_WATCH_FAIL:\n 'SDK_DATABASE_REALTIME_LISTENER_INIT_WATCH_FAIL',\n // \"realtime listener init watch fail\",\n SDK_DATABASE_REALTIME_LISTENER_RECONNECT_WATCH_FAIL:\n 'SDK_DATABASE_REALTIME_LISTENER_RECONNECT_WATCH_FAIL',\n // \"realtime listener reconnect watch fail\",\n SDK_DATABASE_REALTIME_LISTENER_REBUILD_WATCH_FAIL:\n 'SDK_DATABASE_REALTIME_LISTENER_REBUILD_WATCH_FAIL',\n // \"realtime listener rebuild watch fail\",\n SDK_DATABASE_REALTIME_LISTENER_CLOSE_WATCH_FAIL:\n 'SDK_DATABASE_REALTIME_LISTENER_CLOSE_WATCH_FAIL',\n // \"realtime listener rebuild watch fail\",\n SDK_DATABASE_REALTIME_LISTENER_SERVER_ERROR_MSG:\n 'SDK_DATABASE_REALTIME_LISTENER_SERVER_ERROR_MSG',\n // \"realtime listener receive server error msg\",\n SDK_DATABASE_REALTIME_LISTENER_RECEIVE_INVALID_SERVER_DATA:\n 'SDK_DATABASE_REALTIME_LISTENER_RECEIVE_INVALID_SERVER_DATA',\n // \"realtime listener receive invalid server data\",\n SDK_DATABASE_REALTIME_LISTENER_WEBSOCKET_CONNECTION_ERROR:\n 'SDK_DATABASE_REALTIME_LISTENER_WEBSOCKET_CONNECTION_ERROR',\n // \"realtime listener websocket connection error\",\n SDK_DATABASE_REALTIME_LISTENER_WEBSOCKET_CONNECTION_CLOSED:\n 'SDK_DATABASE_REALTIME_LISTENER_WEBSOCKET_CONNECTION_CLOSED',\n // \"realtime listener websocket connection closed\",\n SDK_DATABASE_REALTIME_LISTENER_CHECK_LAST_FAIL:\n 'SDK_DATABASE_REALTIME_LISTENER_CHECK_LAST_FAIL',\n // \"realtime listener check last fail\",\n SDK_DATABASE_REALTIME_LISTENER_UNEXPECTED_FATAL_ERROR:\n 'SDK_DATABASE_REALTIME_LISTENER_UNEXPECTED_FATAL_ERROR',\n // \"realtime listener unexpected fatal error\"\n}\n","export const sleep = (ms = 0) => new Promise(r => setTimeout(r, ms))\n","import { ERR_CODE, CloudSDKError } from './error'\n\nexport const CLOSE_EVENT_CODE_INFO = {\n 1000: {\n code: 1000,\n name: 'Normal Closure',\n description:\n 'Normal closure; the connection successfully completed whatever purpose for which it was created.',\n },\n 1001: {\n code: 1001,\n name: 'Going Away',\n description:\n 'The endpoint is going away, either because of a server failure or because the browser is navigating away from the page that opened the connection.',\n },\n 1002: {\n code: 1002,\n name: 'Protocol Error',\n description:\n 'The endpoint is terminating the connection due to a protocol error.',\n },\n 1003: {\n code: 1003,\n name: 'Unsupported Data',\n description:\n 'The connection is being terminated because the endpoint received data of a type it cannot accept (for example, a text-only endpoint received binary data).',\n },\n 1005: {\n code: 1005,\n name: 'No Status Received',\n description:\n 'Indicates that no status code was provided even though one was expected.',\n },\n 1006: {\n code: 1006,\n name: 'Abnormal Closure',\n description:\n 'Used to indicate that a connection was closed abnormally (that is, with no close frame being sent) when a status code is expected.',\n },\n 1007: {\n code: 1007,\n name: 'Invalid frame payload data',\n description:\n 'The endpoint is terminating the connection because a message was received that contained inconsistent data (e.g., non-UTF-8 data within a text message).',\n },\n 1008: {\n code: 1008,\n name: 'Policy Violation',\n description:\n 'The endpoint is terminating the connection because it received a message that violates its policy. This is a generic status code, used when codes 1003 and 1009 are not suitable.',\n },\n 1009: {\n code: 1009,\n name: 'Message too big',\n description:\n 'The endpoint is terminating the connection because a data frame was received that is too large.',\n },\n 1010: {\n code: 1010,\n name: 'Missing Extension',\n description:\n 'The client is terminating the connection because it expected the server to negotiate one or more extension, but the server didn\\'t.',\n },\n 1011: {\n code: 1011,\n name: 'Internal Error',\n description:\n 'The server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request.',\n },\n 1012: {\n code: 1012,\n name: 'Service Restart',\n description:\n 'The server is terminating the connection because it is restarting.',\n },\n 1013: {\n code: 1013,\n name: 'Try Again Later',\n description:\n 'The server is terminating the connection due to a temporary condition, e.g. it is overloaded and is casting off some of its clients.',\n },\n 1014: {\n code: 1014,\n name: 'Bad Gateway',\n description:\n 'The server was acting as a gateway or proxy and received an invalid response from the upstream server. This is similar to 502 HTTP Status Code.',\n },\n 1015: {\n code: 1015,\n name: 'TLS Handshake',\n description:\n 'Indicates that the connection was closed due to a failure to perform a TLS handshake (e.g., the server certificate can\\'t be verified).',\n },\n // custom\n 3000: {\n code: 3000,\n name: 'Reconnect WebSocket',\n description:\n 'The client is terminating the connection because it wants to reconnect',\n },\n 3001: {\n code: 3001,\n name: 'No Realtime Listeners',\n description:\n 'The client is terminating the connection because no more realtime listeners exist',\n },\n 3002: {\n code: 3002,\n name: 'Heartbeat Ping Error',\n description:\n 'The client is terminating the connection due to its failure in sending heartbeat messages',\n },\n 3003: {\n code: 3003,\n name: 'Heartbeat Pong Timeout Error',\n description:\n 'The client is terminating the connection because no heartbeat response is received from the server',\n },\n 3050: {\n code: 3050,\n name: 'Server Close',\n description:\n 'The client is terminating the connection because no heartbeat response is received from the server',\n },\n}\n\nexport enum CloseEventCode {\n // spec\n NormalClosure = 1000,\n GoingAway = 1001,\n ProtocolError = 1002,\n UnsupportedData = 1003,\n NoStatusReceived = 1005,\n AbnormalClosure = 1006,\n InvalidFramePayloadData = 1007,\n PolicyViolation = 1008,\n MessageTooBig = 1009,\n MissingExtension = 1010,\n InternalError = 1011,\n ServiceRestart = 1012,\n TryAgainLater = 1013,\n BadGateway = 1014,\n TLSHandshake = 1015,\n // custom - client close itself\n ReconnectWebSocket = 3000,\n NoRealtimeListeners = 3001,\n HeartbeatPingError = 3002,\n HeartbeatPongTimeoutError = 3003,\n // custom - server close\n NoAuthentication = 3050\n}\n\nexport const getWSCloseError = (code: CloseEventCode, reason?: string) => {\n const info = CLOSE_EVENT_CODE_INFO[code]\n const errMsg = !info\n ? `code ${code}`\n : `${info.name}, code ${code}, reason ${reason || info.description}`\n return new CloudSDKError({\n errCode: ERR_CODE.SDK_DATABASE_REALTIME_LISTENER_WEBSOCKET_CONNECTION_CLOSED as string,\n errMsg,\n })\n}\n","let wsClass = null\nlet runtime = 'web'\n\nexport function getWsClass() {\n return wsClass\n}\nexport function setWsClass(val: any) {\n wsClass = val\n}\n\nexport function getRuntime() {\n return runtime\n}\nexport function setRuntime(val: string) {\n runtime = val\n}\n","import { VirtualWebSocketClient } from './virtual-websocket-client'\nimport { genRequestId } from './message'\nimport {\n IDatabaseServiceContext,\n} from '@cloudbase/types/database'\nimport {\n IWatchOptions,\n DBRealtimeListener,\n IRequestMessage,\n IResponseMessage,\n IRequestMessagePingMsg,\n IRequestMessageLoginMsg,\n IResponseMessageLoginResMsg,\n IRequestMessageLoginData,\n} from '@cloudbase/types/realtime'\nimport {\n CloseEventCode,\n CLOSE_EVENT_CODE_INFO,\n getWSCloseError,\n} from './ws-event'\n\nimport { ERR_CODE, TimeoutError, RealtimeErrorMessageError, CloudSDKError } from './error'\nimport { getWsClass, getRuntime } from './common'\nimport { sleep } from './utils'\n\nexport interface IRealtimeWebSocketClientConstructorOptions {\n maxReconnect?: number\n reconnectInterval?: number\n context: IDatabaseServiceContext\n}\n\nexport interface ISignature {\n envId: string\n secretVersion: number\n signStr: string\n wsUrl: string\n expireTS: number\n}\n\nexport interface ILoginInfo {\n loggedIn: boolean\n loggingInPromise?: Promise<ILoginResult>\n loginStartTS?: number\n loginResult?: ILoginResult\n}\n\nexport interface ILoginResult {\n envId: string\n}\n\nexport interface IWSSendOptions {\n msg: IRequestMessage\n waitResponse?: boolean\n // when waitResponse is set to true, if skipOnMessage is true, general onMessage handler will be skipped\n skipOnMessage?: boolean\n timeout?: number\n}\n\nexport interface IWSWatchOptions extends IWatchOptions {\n envId?: string\n collectionName: string\n query: string\n limit?: number\n orderBy?: Record<string, string>\n}\n\ninterface IResolveReject {\n resolve: (value?: any | PromiseLike<any> | undefined) => void\n reject: (reason?: any) => void\n}\n\ninterface IResponseWaitSpec extends IResolveReject {\n skipOnMessage?: boolean\n}\n\ninterface IWsSign {\n signStr: string,\n wsUrl: string,\n secretVersion: string\n envId: string\n expiredTs: number\n}\n\nconst WS_READY_STATE = {\n CONNECTING: 0,\n OPEN: 1,\n CLOSING: 2,\n CLOSED: 3,\n}\n\nconst MAX_RTT_OBSERVED = 3\nconst DEFAULT_EXPECTED_EVENT_WAIT_TIME = 5000\nconst DEFAULT_UNTRUSTED_RTT_THRESHOLD = 10000\nconst DEFAULT_MAX_RECONNECT = 5\nconst DEFAULT_WS_RECONNECT_INTERVAL = 10000\n// const DEFAULT_WS_RECONNECT_MAX_VALID_INTERVAL = 3 * 60 * 1000\nconst DEFAULT_PING_FAIL_TOLERANCE = 2\nconst DEFAULT_PONG_MISS_TOLERANCE = 2\nconst DEFAULT_LOGIN_TIMEOUT = 5000\n\nexport class RealtimeWebSocketClient {\n private virtualWSClient: Set<VirtualWebSocketClient> = new Set()\n // after listener initWatch, the listener has the queryID and can store it here\n private queryIdClientMap: Map<string, VirtualWebSocketClient> = new Map()\n private watchIdClientMap: Map<string, VirtualWebSocketClient> = new Map()\n private maxReconnect: number\n private reconnectInterval: number\n private context: IDatabaseServiceContext\n private ws?: any\n private lastPingSendTS?: number\n private pingFailed = 0\n private pongMissed = 0\n private pingTimeoutId?: number\n private pongTimeoutId?: number\n private logins: Map<string /* envId */, ILoginInfo> = new Map()\n private wsInitPromise?: Promise<void>\n private wsReadySubsribers: IResolveReject[] = []\n private wsResponseWait: Map<\n string /* requestId */,\n IResponseWaitSpec\n > = new Map()\n private rttObserved: number[] = []\n private reconnectState: boolean\n // obtained from the first getSignature with no envId provided\n private wsSign: IWsSign\n\n constructor(options: IRealtimeWebSocketClientConstructorOptions) {\n this.maxReconnect = options.maxReconnect || DEFAULT_MAX_RECONNECT\n this.reconnectInterval = options.reconnectInterval || DEFAULT_WS_RECONNECT_INTERVAL\n this.context = options.context\n }\n\n clearHeartbeat() {\n this.pingTimeoutId && clearTimeout(this.pingTimeoutId)\n this.pongTimeoutId && clearTimeout(this.pongTimeoutId)\n }\n\n send = async <T = any>(opts: IWSSendOptions): Promise<T> => new Promise<T>((_resolve, _reject) => {\n void (async () => {\n let timeoutId: number\n let hasResolved = false\n let hasRejected = false\n\n const resolve: typeof _resolve = (value?: T | PromiseLike<T> | undefined) => {\n hasResolved = true\n timeoutId && clearTimeout(timeoutId)\n _resolve(value)\n }\n\n const reject: typeof _reject = (error: any) => {\n hasRejected = true\n timeoutId && clearTimeout(timeoutId)\n _reject(error)\n }\n\n if (opts.timeout) {\n // @ts-ignore\n timeoutId = setTimeout(() => {\n (async () => {\n if (!hasResolved || !hasRejected) {\n // wait another immediate timeout to allow the success/fail callback to be invoked if ws has already got the result,\n // this is because the timer is registered before ws.send\n await sleep(0)\n if (!hasResolved || !hasRejected) {\n reject(new TimeoutError('wsclient.send timedout'))\n }\n }\n })()\n }, opts.timeout)\n }\n\n try {\n if (this.wsInitPromise !== undefined || this.wsInitPromise !== null) {\n await this.wsInitPromise\n }\n\n if (!this.ws) {\n reject(new Error('invalid state: ws connection not exists, can not send message'))\n return\n }\n\n if (this.ws.readyState !== WS_READY_STATE.OPEN) {\n reject(new Error(`ws readyState invalid: ${this.ws.readyState}, can not send message`))\n return\n }\n\n if (opts.waitResponse) {\n const respWaitSpec: IResponseWaitSpec = {\n resolve,\n reject,\n skipOnMessage: opts.skipOnMessage,\n }\n this.wsResponseWait.set(opts.msg.requestId, respWaitSpec)\n }\n\n // console.log('send msg:', opts.msg)\n try {\n await this.ws.send(JSON.stringify(opts.msg))\n if (!opts.waitResponse) {\n resolve(void 0)\n }\n } catch (err) {\n if (err) {\n reject(err)\n if (opts.waitResponse) {\n this.wsResponseWait.delete(opts.msg.requestId)\n }\n }\n }\n } catch (e) {\n reject(e)\n }\n })()\n })\n\n close(code: CloseEventCode) {\n this.clearHeartbeat()\n\n if (this.ws) {\n this.ws.close(code, CLOSE_EVENT_CODE_INFO[code].name)\n this.ws = undefined\n }\n }\n\n closeAllClients = (error: any) => {\n this.virtualWSClient.forEach((client) => {\n client.closeWithError(error)\n })\n }\n\n pauseClients = (clients?: Set<VirtualWebSocketClient>) => {\n (clients || this.virtualWSClient).forEach((client) => {\n client.pause()\n })\n }\n\n resumeClients = (clients?: Set<VirtualWebSocketClient>) => {\n (clients || this.virtualWSClient).forEach((client) => {\n client.resume()\n })\n }\n\n watch(options: IWSWatchOptions): DBRealtimeListener {\n if (!this.ws && (this.wsInitPromise === undefined || this.wsInitPromise === null)) {\n this.initWebSocketConnection(false)\n }\n\n const virtualClient = new VirtualWebSocketClient({\n ...options,\n send: this.send,\n login: this.webLogin,\n isWSConnected: this.isWSConnected,\n onceWSConnected: this.onceWSConnected,\n getWaitExpectedTimeoutLength: this.getWaitExpectedTimeoutLength,\n onWatchStart: this.onWatchStart,\n onWatchClose: this.onWatchClose,\n debug: true,\n })\n this.virtualWSClient.add(virtualClient)\n this.watchIdClientMap.set(virtualClient.watchId, virtualClient)\n return virtualClient.listener\n }\n\n private initWebSocketConnection = async (\n reconnect: boolean,\n availableRetries: number = this.maxReconnect\n ): Promise<void> => {\n // 当前处于正在重连中的状态\n if (reconnect && this.reconnectState) {\n return // 忽略\n }\n\n if (reconnect) {\n this.reconnectState = true // 重连状态开始\n }\n\n if (this.wsInitPromise !== undefined && this.wsInitPromise !== null) {\n // there already exists a websocket initiation, just wait for it\n return this.wsInitPromise\n }\n\n if (reconnect) {\n this.pauseClients()\n }\n\n this.close(CloseEventCode.ReconnectWebSocket)\n\n this.wsInitPromise = new Promise<void>((resolve, reject) => {\n (async () => {\n try {\n const wsSign = await this.getWsSign()\n\n await new Promise((success) => {\n const url = wsSign.wsUrl || 'wss://tcb-ws.tencentcloudapi.com'\n const wsClass = getWsClass()\n /* eslint-disable-next-line */\n this.ws = wsClass ? new wsClass(url) : new WebSocket(url)\n success(void 0)\n })\n\n if (this.ws.connect) {\n await this.ws.connect()\n }\n\n await this.initWebSocketEvent()\n resolve()\n\n if (reconnect) {\n this.resumeClients()\n this.reconnectState = false // 重连状态结束\n }\n } catch (e) {\n console.error('[realtime] initWebSocketConnection connect fail', e)\n\n if (availableRetries > 0) {\n // this is an optimization, in case of network offline, we don't need to stubbornly sleep for sometime,\n // we only need to wait for the network to be back online, this ensures minimum downtime\n // const { isConnected } = await getNetworkStatus()\n const isConnected = true\n\n this.wsInitPromise = undefined\n\n if (isConnected) {\n await sleep(this.reconnectInterval)\n if (reconnect) {\n this.reconnectState = false // 重连异常也算重连状态结束\n }\n }\n\n resolve(this.initWebSocketConnection(reconnect, availableRetries - 1))\n } else {\n reject(e)\n\n if (reconnect) {\n this.closeAllClients(new CloudSDKError({\n errCode: ERR_CODE.SDK_DATABASE_REALTIME_LISTENER_RECONNECT_WATCH_FAIL as string,\n errMsg: e,\n }))\n }\n }\n }\n })()\n })\n\n try {\n await this.wsInitPromise\n this.wsReadySubsribers.forEach(({ resolve }) => resolve())\n } catch (e) {\n this.wsReadySubsribers.forEach(({ reject }) => reject())\n } finally {\n this.wsInitPromise = undefined\n this.wsReadySubsribers = []\n }\n }\n\n private initWebSocketEvent = () => new Promise<void>((resolve, reject) => {\n if (!this.ws) {\n throw new Error('can not initWebSocketEvent, ws not exists')\n }\n\n let wsOpened = false\n\n this.ws.onopen = (event) => {\n console.warn('[realtime] ws event: open', event)\n wsOpened = true\n resolve()\n }\n\n this.ws.onerror = (event) => {\n // all logins are invalid after disconnection\n this.logins = new Map()\n\n // error写进file\n\n if (!wsOpened) {\n console.error('[realtime] ws open failed with ws event: error', event)\n reject(event)\n } else {\n console.error('[realtime] ws event: error', event)\n\n this.clearHeartbeat()\n this.virtualWSClient.forEach(client => client.closeWithError(new CloudSDKError({\n errCode: ERR_CODE.SDK_DATABASE_REALTIME_LISTENER_WEBSOCKET_CONNECTION_ERROR as string,\n errMsg: event,\n })))\n }\n }\n\n // TODO: reconnect\n this.ws.onclose = (closeEvent) => {\n console.warn('[realtime] ws event: close', closeEvent)\n // all logins are invalid after disconnection\n this.logins = new Map()\n\n this.clearHeartbeat()\n switch (closeEvent.code) {\n case CloseEventCode.ReconnectWebSocket: {\n // just ignore\n break\n }\n case CloseEventCode.NoRealtimeListeners: {\n // quit\n break\n }\n case CloseEventCode.HeartbeatPingError:\n case CloseEventCode.HeartbeatPongTimeoutError:\n case CloseEventCode.NormalClosure:\n case CloseEventCode.AbnormalClosure: {\n // Normal Closure and Abnormal Closure:\n // expected closure, most likely dispatched by wechat client,\n // since this is the status code dispatched in case of network failure,\n // we should retry\n\n if (this.maxReconnect > 0) {\n this.initWebSocketConnection(true, this.maxReconnect)\n } else {\n this.closeAllClients(getWSCloseError(closeEvent.code))\n }\n break\n }\n case CloseEventCode.NoAuthentication: {\n this.closeAllClients(getWSCloseError(closeEvent.code, closeEvent.reason))\n break\n }\n default: {\n // we should retry by default\n if (this.maxReconnect > 0) {\n this.initWebSocketConnection(true, this.maxReconnect)\n } else {\n this.closeAllClients(getWSCloseError(closeEvent.code))\n }\n }\n }\n }\n\n this.ws.onmessage = (res) => {\n // 支付宝小程序会返回res.data.data或res.message\n // 微信小程序返回res.data\n const rawMsg = res.data?.data || res.data\n\n // reset & restart heartbeat\n this.heartbeat()\n\n let msg: IResponseMessage\n\n try {\n msg = typeof rawMsg === 'string' ? JSON.parse(rawMsg as string) : rawMsg\n } catch (e) {\n throw new Error(`[realtime] onMessage parse res.data error: ${e}`)\n }\n\n if (msg.msgType === 'ERROR') {\n // 找到当前监听,并将error返回\n let virtualWatch = null\n this.virtualWSClient.forEach((item) => {\n if (item.watchId === msg.watchId) {\n virtualWatch = item\n }\n })\n\n if (virtualWatch) {\n virtualWatch.listener.onError(msg)\n }\n }\n\n const responseWaitSpec = this.wsResponseWait.get(msg.requestId)\n if (responseWaitSpec) {\n try {\n if (msg.msgType === 'ERROR') {\n responseWaitSpec.reject(new RealtimeErrorMessageError(msg))\n } else {\n responseWaitSpec.resolve(msg)\n }\n } catch (e) {\n console.error(\n 'ws onMessage responseWaitSpec.resolve(msg) errored:',\n e\n )\n } finally {\n this.wsResponseWait.delete(msg.requestId)\n }\n if (responseWaitSpec.skipOnMessage) {\n return\n }\n }\n\n if (msg.msgType === 'PONG') {\n if (this.lastPingSendTS) {\n const rtt = Date.now() - this.lastPingSendTS\n if (rtt > DEFAULT_UNTRUSTED_RTT_THRESHOLD) {\n console.warn(`[realtime] untrusted rtt observed: ${rtt}`)\n return\n }\n if (this.rttObserved.length >= MAX_RTT_OBSERVED) {\n this.rttObserved.splice(\n 0,\n this.rttObserved.length - MAX_RTT_OBSERVED + 1\n )\n }\n this.rttObserved.push(rtt)\n }\n return\n }\n\n let client = msg.watchId && this.watchIdClientMap.get(msg.watchId)\n if (client) {\n client.onMessage(msg)\n } else {\n console.error(\n `[realtime] no realtime listener found responsible for watchId ${msg.watchId}: `,\n msg\n )\n switch (msg.msgType) {\n case 'INIT_EVENT':\n case 'NEXT_EVENT':\n case 'CHECK_EVENT': {\n client = this.queryIdClientMap.get(msg.msgData.queryID)\n if (client) {\n client.onMessage(msg)\n }\n break\n }\n default: {\n for (const [, client] of Array.from(this.watchIdClientMap.entries())) {\n client.onMessage(msg)\n break\n }\n }\n }\n }\n }\n\n this.heartbeat()\n })\n\n private isWSConnected = (): boolean => Boolean(this.ws && this.ws.readyState === WS_READY_STATE.OPEN)\n\n private onceWSConnected = async (): Promise<void> => {\n if (this.isWSConnected()) {\n return\n }\n\n if (this.wsInitPromise !== null && this.wsInitPromise !== undefined) {\n return this.wsInitPromise\n }\n\n return new Promise<void>((resolve, reject) => {\n this.wsReadySubsribers.push({\n resolve,\n reject,\n })\n })\n }\n\n private webLogin = async (\n envId?: string,\n refresh?: boolean\n ): Promise<any> => {\n if (!refresh) {\n if (envId) {\n const loginInfo = this.logins.get(envId)\n if (loginInfo) {\n if (loginInfo.loggedIn && loginInfo.loginResult) {\n return loginInfo.loginResult\n } if (loginInfo.loggingInPromise !== null && loginInfo.loggingInPromise !== undefined) {\n return loginInfo.loggingInPromise\n }\n }\n } else {\n const emptyEnvLoginInfo = this.logins.get('')\n if (emptyEnvLoginInfo?.loggingInPromise !== null && emptyEnvLoginInfo?.loggingInPromise !== undefined) {\n return emptyEnvLoginInfo.loggingInPromise\n }\n }\n }\n\n const promise = new Promise<ILoginResult>((resolve, reject) => {\n (async () => {\n try {\n const wsSign = await this.getWsSign()\n\n const msgData: IRequestMessageLoginData = {\n envId: wsSign.envId || '',\n accessToken: '', // 已废弃字段\n referrer: 'web',\n sdkVersion: '',\n dataVersion: '',\n }\n const loginMsg: IRequestMessageLoginMsg = {\n watchId: undefined,\n requestId: genRequestId(),\n msgType: 'LOGIN',\n msgData,\n exMsgData: {\n runtime: getRuntime(),\n signStr: wsSign.signStr,\n secretVersion: wsSign.secretVersion,\n },\n }\n const loginResMsg = await this.send<IResponseMessageLoginResMsg>({\n msg: loginMsg,\n waitResponse: true,\n skipOnMessage: true,\n timeout: DEFAULT_LOGIN_TIMEOUT,\n })\n\n if (!loginResMsg.msgData.code) {\n // login success\n resolve({\n envId: wsSign.envId,\n })\n } else {\n // login failed\n reject(new Error(`${loginResMsg.msgData.code} ${loginResMsg.msgData.message}`))\n }\n } catch (e) {\n reject(e)\n }\n })()\n })\n\n let loginInfo = envId && this.logins.get(envId)\n\n const loginStartTS = Date.now()\n\n if (loginInfo) {\n loginInfo.loggedIn = false\n loginInfo.loggingInPromise = promise\n loginInfo.loginStartTS = loginStartTS\n } else {\n loginInfo = {\n loggedIn: false,\n loggingInPromise: promise,\n loginStartTS,\n }\n this.logins.set(envId || '', loginInfo)\n }\n\n try {\n const loginResult = await promise\n const curLoginInfo = envId && this.logins.get(envId)\n if (\n curLoginInfo\n && curLoginInfo === loginInfo\n && curLoginInfo.loginStartTS === loginStartTS\n ) {\n loginInfo.loggedIn = true\n loginInfo.loggingInPromise = undefined\n loginInfo.loginStartTS = undefined\n loginInfo.loginResult = loginResult\n return loginResult\n } if (curLoginInfo) {\n if (curLoginInfo.loggedIn && curLoginInfo.loginResult) {\n return curLoginInfo.loginResult\n } if (curLoginInfo.loggingInPromise !== null && curLoginInfo.loggingInPromise !== undefined) {\n return curLoginInfo.loggingInPromise\n }\n throw new Error('ws unexpected login info')\n } else {\n throw new Error('ws login info reset')\n }\n } catch (e) {\n loginInfo.loggedIn = false\n loginInfo.loggingInPromise = undefined\n loginInfo.loginStartTS = undefined\n loginInfo.loginResult = undefined\n throw e\n }\n }\n\n private getWsSign = async (): Promise<IWsSign> => {\n if (this.wsSign && this.wsSign.expiredTs > Date.now()) {\n return this.wsSign\n }\n const expiredTs = Date.now() + 60000\n const res = await this.context.appConfig.request.send('auth.wsWebSign', { runtime: getRuntime() })\n\n if (res.code) {\n throw new Error(`[tcb-js-sdk] 获取实时数据推送登录票据失败: ${res.code}`)\n }\n\n if (res.data) {\n const { signStr, wsUrl, secretVersion, envId } = res.data\n return {\n signStr,\n wsUrl,\n secretVersion,\n envId,\n expiredTs,\n }\n }\n throw new Error('[tcb-js-sdk] 获取实时数据推送登录票据失败')\n }\n\n private getWaitExpectedTimeoutLength = () => {\n if (!this.rttObserved.length) {\n return DEFAULT_EXPECTED_EVENT_WAIT_TIME\n }\n\n // 1.5 * RTT\n return (\n (this.rttObserved.reduce((acc, cur) => acc + cur)\n / this.rttObserved.length)\n * 1.5\n )\n }\n\n private heartbeat(immediate?: boolean) {\n this.clearHeartbeat()\n // @ts-ignore\n this.pingTimeoutId = setTimeout(\n () => {\n (\n async () => {\n try {\n if (!this.ws || this.ws.readyState !== WS_READY_STATE.OPEN) {\n // no need to ping\n return\n }\n\n this.lastPingSendTS = Date.now()\n await this.ping()\n this.pingFailed = 0\n\n // @ts-ignore\n this.pongTimeoutId = setTimeout(() => {\n console.error('pong timed out')\n if (this.pongMissed < DEFAULT_PONG_MISS_TOLERANCE) {\n this.pongMissed += 1\n this.heartbeat(true)\n } else {\n // logical perceived connection lost, even though websocket did not receive error or close event\n this.initWebSocketConnection(true)\n }\n }, this.context.appConfig.realtimePongWaitTimeout)\n } catch (e) {\n if (this.pingFailed < DEFAULT_PING_FAIL_TOLERANCE) {\n this.pingFailed += 1\n this.heartbeat()\n } else {\n this.close(CloseEventCode.HeartbeatPingError)\n }\n }\n }\n )()\n },\n immediate ? 0 : this.context.appConfig.realtimePingInterval\n )\n }\n\n private ping = async () => {\n const msg: IRequestMessagePingMsg = {\n watchId: undefined,\n requestId: genRequestId(),\n msgType: 'PING',\n msgData: null,\n }\n await this.send({\n msg,\n })\n }\n\n private onWatchStart = (client: VirtualWebSocketClient, queryID: string) => {\n this.queryIdClientMap.set(queryID, client)\n }\n\n private onWatchClose = (client: VirtualWebSocketClient, queryID: string) => {\n if (queryID) {\n this.queryIdClientMap.delete(queryID)\n }\n this.watchIdClientMap.delete(client.watchId)\n this.virtualWSClient.delete(client)\n\n if (!this.virtualWSClient.size) {\n // no more existing watch, we should release the websocket connection\n this.close(CloseEventCode.NoRealtimeListeners)\n }\n }\n}\n","import { ICloudbase } from '@cloudbase/types'\nimport { RealtimeWebSocketClient } from './websocket-client'\nimport { setWsClass, setRuntime } from './common'\nimport { ICloudbaseComponent, ICloudbaseHook } from '@cloudbase/types/component'\n\ndeclare const cloudbase: ICloudbase\n\nconst hook: ICloudbaseHook = {\n target: 'database',\n entity() {\n const { adapter, runtime } = this.platform\n setWsClass(adapter.wsClass)\n setRuntime(runtime)\n },\n}\n\nconst component: ICloudbaseComponent = {\n name: 'realtime',\n IIFE: true,\n entity() {\n this.prototype.wsClientClass = RealtimeWebSocketClient\n },\n}\n\ntry {\n cloudbase.registerComponent(component)\n cloudbase.registerHook(hook)\n} catch (e) {}\n\nexport function registerRealtime(app: Pick<ICloudbase, 'registerComponent'|'registerHook'>) {\n try {\n app.registerComponent(component)\n app.registerHook(hook)\n } catch (e) {\n console.warn(e)\n }\n}\n"],"names":["DataView","getNative","module","exports","hashClear","hashDelete","hashGet","hashHas","hashSet","Hash","entries","index","length","this","clear","entry","set","prototype","get","has","listCacheClear","listCacheDelete","listCacheGet","listCacheHas","listCacheSet","ListCache","Map","mapCacheClear","mapCacheDelete","mapCacheGet","mapCacheHas","mapCacheSet","MapCache","Promise","Set","stackClear","stackDelete","stackGet","stackHas","stackSet","Stack","data","__data__","size","Symbol","Uint8Array","WeakMap","array","iteratee","predicate","resIndex","result","value","baseTimes","isArguments","isArray","isBuffer","isIndex","isTypedArray","hasOwnProperty","Object","inherited","isArr","isArg","isBuff","isType","skipIndexes","String","key","call","push","Array","values","offset","baseAssignValue","eq","object","objValue","undefined","copyObject","keys","source","keysIn","defineProperty","arrayEach","assignValue","baseAssign","baseAssignIn","cloneBuffer","copyArray","copySymbols","copySymbolsIn","getAllKeys","getAllKeysIn","getTag","initCloneArray","initCloneByTag","initCloneObject","isMap","isObject","isSet","argsTag","funcTag","objectTag","cloneableTags","baseClone","bitmask","customizer","stack","isDeep","isFlat","isFull","tag","isFunc","stacked","forEach","subValue","add","props","objectCreate","create","baseCreate","proto","castPath","toKey","path","arrayPush","keysFunc","symbolsFunc","getRawTag","objectToString","symToStringTag","toStringTag","baseGetTag","isObjectLike","isFunction","isMasked","toSource","reIsHostCtor","funcProto","Function","objectProto","funcToString","toString","reIsNative","RegExp","replace","test","isLength","typedArrayTags","isPrototype","nativeKeys","nativeKeysIn","isProto","lastIndex","nested","newValue","start","end","n","arrayMap","isSymbol","symbolProto","symbolToString","baseToString","func","last","parent","isKey","stringToPath","arrayBuffer","constructor","byteLength","root","freeExports","nodeType","freeModule","Buffer","allocUnsafe","buffer","slice","copy","cloneArrayBuffer","dataView","byteOffset","reFlags","regexp","exec","symbolValueOf","valueOf","symbol","typedArray","isNew","getSymbols","getSymbolsIn","coreJsData","e","freeGlobal","g","baseGetAllKeys","isKeyable","map","baseIsNative","getValue","getPrototype","overArg","getPrototypeOf","nativeObjectToString","isOwn","unmasked","arrayFilter","stubArray","propertyIsEnumerable","nativeGetSymbols","getOwnPropertySymbols","mapTag","promiseTag","setTag","weakMapTag","dataViewTag","dataViewCtorString","mapCtorString","promiseCtorString","setCtorString","weakMapCtorString","ArrayBuffer","resolve","Ctor","ctorString","nativeCreate","input","cloneDataView","cloneRegExp","cloneSymbol","cloneTypedArray","reIsUint","type","reIsDeepProp","reIsPlainProp","uid","maskSrcKey","IE_PROTO","assocIndexOf","splice","pop","getMapData","memoize","cache","freeProcess","process","nodeUtil","require","types","binding","transform","arg","baseGet","baseSlice","freeSelf","self","pairs","LARGE_ARRAY_SIZE","memoizeCapped","rePropName","reEscapeChar","string","charCodeAt","match","number","quote","subString","CLONE_DEEP_FLAG","other","baseIsArguments","arguments","stubFalse","baseIsMap","baseUnary","nodeIsMap","baseIsSet","nodeIsSet","baseIsTypedArray","nodeIsTypedArray","arrayLikeKeys","baseKeys","isArrayLike","baseKeysIn","resolver","TypeError","memoized","args","apply","Cache","baseSet","baseUnset","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","id","loaded","__webpack_modules__","getter","__esModule","d","a","definition","o","enumerable","globalThis","window","obj","prop","nmd","paths","children","genRequestId","prefix","concat","Date","Math","random","WatchStatus","RealtimeListener","options","close","onChange","onError","debug","virtualClient","Snapshot","cachedDocChanges","cachedDocs","docChanges","docs","msgType","defineProperties","JSON","parse","stringify","RealtimeErrorMessageError","_super","serverErrorMsg","_this","msgData","requestId","isRealtimeErrorMessageError","payload","__extends","Error","TimeoutError","generic","CancelledError","CloudSDKError","errMsg","errCode","message","ERR_CODE","msg","UNKNOWN_ERROR","SDK_DATABASE_REALTIME_LISTENER_INIT_WATCH_FAIL","SDK_DATABASE_REALTIME_LISTENER_RECONNECT_WATCH_FAIL","SDK_DATABASE_REALTIME_LISTENER_REBUILD_WATCH_FAIL","SDK_DATABASE_REALTIME_LISTENER_CLOSE_WATCH_FAIL","SDK_DATABASE_REALTIME_LISTENER_SERVER_ERROR_MSG","SDK_DATABASE_REALTIME_LISTENER_RECEIVE_INVALID_SERVER_DATA","SDK_DATABASE_REALTIME_LISTENER_WEBSOCKET_CONNECTION_ERROR","SDK_DATABASE_REALTIME_LISTENER_WEBSOCKET_CONNECTION_CLOSED","SDK_DATABASE_REALTIME_LISTENER_CHECK_LAST_FAIL","SDK_DATABASE_REALTIME_LISTENER_UNEXPECTED_FATAL_ERROR","sleep","ms","r","setTimeout","VirtualWebSocketClient","watchStatus","INITING","wsLogin","envId","refresh","__awaiter","LOGGINGIN","login","loginResult","_a","sent","initWatch","forceRefreshLogin","initWatchPromise","reject","PAUSED","console","log","_b","initWatchMsg","watchId","collName","collectionName","query","limit","orderBy","send","waitResponse","skipOnMessage","timeout","initEventMsg","events","currEvent","sessionInfo","queryID","currentEventId","currentDocs","_i","events_1","ID","handleServerEvents","snapshot","listener","scheduleSendACK","onWatchStart","ACTIVE","availableRetries","INIT_WATCH","handleWatchEstablishmentError","e_1","operationName","success","rebuildWatch","rebuildWatchPromise","REBUILDING","rebuildWatchMsg","eventID","nextEventMsg","REBUILD_WATCH","e_2","isInitWatch","abortWatch","closeWithError","retry","refreshLogin","useRetryTicket","handleCommonError","onSignError","onTimeoutError","onNotRetryableError","onCancelledError","onUnknownError","onWSDisconnected","pause","onceWSConnected","isWSConnected","closeWatch","queryId","CLOSED","onWatchClose","CLOSING","closeWatchMsg","e_4","clearACKSchedule","ackTimeoutId","waitExpectedTimeoutId","sendACK","clearTimeout","ackMsg","warn","e_5","code","CHECK_LAST","isTimeoutError","isCancelledError","getWaitExpectedTimeoutLength","onMessage","ERRORED","expectEventId","clearWaitExpectedEvent","error","resume","RESUMING","e_6","handleServerEventsInternel","postHandleServerEventsValidityCheck","e_7","allChangeEvents","getPublicEvent","__spreadArray","initEncountered","i","len","change","dataType","doc","queueType","localDoc","find","_id","docId","doc_1","cloneDeep","updatedFields","fieldPath","removedFields","unset","err","this_1","ind","findIndex","docsSnapshot","filter","c","_c","event","DataType","QueueType","DocID","Doc","UpdatedFields","RemovedFields","CloseEventCode","CLOSE_EVENT_CODE_INFO","name","description","getWSCloseError","reason","info","wsClass","runtime","getWsClass","getRuntime","setRuntime","val","RealtimeWebSocketClient","virtualWSClient","queryIdClientMap","watchIdClientMap","pingFailed","pongMissed","logins","wsReadySubsribers","wsResponseWait","rttObserved","opts","_resolve","_reject","hasResolved","hasRejected","timeoutId","wsInitPromise","ws","readyState","respWaitSpec","err_1","delete","closeAllClients","client","pauseClients","clients","resumeClients","initWebSocketConnection","reconnect","maxReconnect","reconnectState","ReconnectWebSocket","getWsSign","wsSign_1","url","wsUrl","WebSocket","connect","initWebSocketEvent","e_3","reconnectInterval","wsOpened","onopen","onerror","clearHeartbeat","onclose","closeEvent","NoRealtimeListeners","HeartbeatPingError","HeartbeatPongTimeoutError","NormalClosure","AbnormalClosure","NoAuthentication","onmessage","res","rawMsg","heartbeat","virtualWatch_1","item","responseWaitSpec","from","lastPingSendTS","rtt","now","Boolean","webLogin","loginInfo_1","loggedIn","loggingInPromise","emptyEnvLoginInfo","promise","wsSign","accessToken","referrer","sdkVersion","dataVersion","loginMsg","exMsgData","signStr","secretVersion","loginResMsg","loginInfo","loginStartTS","curLoginInfo","expiredTs","context","appConfig","request","reduce","acc","cur","ping","pingTimeoutId","pongTimeoutId","watch","__assign","immediate","realtimePongWaitTimeout","realtimePingInterval","hook","target","entity","platform","adapter","component","IIFE","wsClientClass","cloudbase","registerComponent","registerHook","registerRealtime","app"],"sourceRoot":""}