harperdb 3.1.3 → 3.1.4

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 (1486) hide show
  1. package/README.md +1 -1
  2. package/bin/BinObjects.jsc +0 -0
  3. package/bin/harperdb.jsc +0 -0
  4. package/bin/install.jsc +0 -0
  5. package/bin/register.jsc +0 -0
  6. package/bin/run.jsc +0 -0
  7. package/bin/stop.jsc +0 -0
  8. package/bin/upgrade.jsc +0 -0
  9. package/bin/utility.jsc +0 -0
  10. package/bin/version.jsc +0 -0
  11. package/coverage/lcov.info +4044 -4034
  12. package/data_layer/CreateAttributeObject.jsc +0 -0
  13. package/data_layer/CreateTableObject.jsc +0 -0
  14. package/data_layer/DataLayerObjects.jsc +0 -0
  15. package/data_layer/DeleteBeforeObject.jsc +0 -0
  16. package/data_layer/DeleteObject.jsc +0 -0
  17. package/data_layer/DropAttributeObject.jsc +0 -0
  18. package/data_layer/InsertObject.jsc +0 -0
  19. package/data_layer/ReadTransactionLogObject.jsc +0 -0
  20. package/data_layer/SQLSearch.jsc +0 -0
  21. package/data_layer/SearchByConditionsObject.jsc +0 -0
  22. package/data_layer/SearchByHashObject.jsc +0 -0
  23. package/data_layer/SearchObject.jsc +0 -0
  24. package/data_layer/SqlSearchObject.jsc +0 -0
  25. package/data_layer/UpdateObject.jsc +0 -0
  26. package/data_layer/UpsertObject.jsc +0 -0
  27. package/data_layer/bulkLoad.jsc +0 -0
  28. package/data_layer/data_objects/BulkLoadObjects.jsc +0 -0
  29. package/data_layer/data_objects/UpsertObject.jsc +0 -0
  30. package/data_layer/delete.jsc +0 -0
  31. package/data_layer/export.jsc +0 -0
  32. package/data_layer/harperBridge/BridgeMethods.jsc +0 -0
  33. package/data_layer/harperBridge/bridgeUtility/checkForNewAttr.jsc +0 -0
  34. package/data_layer/harperBridge/bridgeUtility/convertOperationToTransaction.jsc +0 -0
  35. package/data_layer/harperBridge/bridgeUtility/evaluateTableGetAttributes.jsc +0 -0
  36. package/data_layer/harperBridge/bridgeUtility/insertUpdateReturnObj.jsc +0 -0
  37. package/data_layer/harperBridge/bridgeUtility/insertUpdateValidate.jsc +0 -0
  38. package/data_layer/harperBridge/harperBridge.jsc +0 -0
  39. package/data_layer/harperBridge/lmdbBridge/LMDBBridge.jsc +0 -0
  40. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/DeleteTransactionsBeforeResults.jsc +0 -0
  41. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateAttribute.jsc +0 -0
  42. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateRecords.jsc +0 -0
  43. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateSchema.jsc +0 -0
  44. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbCreateTable.jsc +0 -0
  45. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbDeleteRecords.jsc +0 -0
  46. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbDeleteRecordsBefore.jsc +0 -0
  47. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbDeleteTransactionLogsBefore.jsc +0 -0
  48. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbDropAttribute.jsc +0 -0
  49. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbDropSchema.jsc +0 -0
  50. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbDropTable.jsc +0 -0
  51. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbGetDataByHash.jsc +0 -0
  52. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbGetDataByValue.jsc +0 -0
  53. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbReadTransactionLog.jsc +0 -0
  54. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbSearchByConditions.jsc +0 -0
  55. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbSearchByHash.jsc +0 -0
  56. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbSearchByValue.jsc +0 -0
  57. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbUpdateRecords.jsc +0 -0
  58. package/data_layer/harperBridge/lmdbBridge/lmdbMethods/lmdbUpsertRecords.jsc +0 -0
  59. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/LMDBCreateAttributeObject.jsc +0 -0
  60. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/LMDBDeleteTransactionObject.jsc +0 -0
  61. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/LMDBInsertTransactionObject.jsc +0 -0
  62. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/LMDBTransactionObject.jsc +0 -0
  63. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/LMDBUpdateTransactionObject.jsc +0 -0
  64. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/LMDBUpsertTransactionObject.jsc +0 -0
  65. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/TableSizeObject.jsc +0 -0
  66. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/ThreadSearchObject.jsc +0 -0
  67. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/initializeHashSearch.jsc +0 -0
  68. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/initializePaths.jsc +0 -0
  69. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbCheckForNewAttributes.jsc +0 -0
  70. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbCreateTransactionsEnvironment.jsc +0 -0
  71. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbDropAllAttributes.jsc +0 -0
  72. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbGetTableSize.jsc +0 -0
  73. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbProcessRows.jsc +0 -0
  74. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbSearch.jsc +0 -0
  75. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbThreadSearch.jsc +0 -0
  76. package/data_layer/harperBridge/lmdbBridge/lmdbUtility/lmdbWriteTransaction.jsc +0 -0
  77. package/data_layer/hdbInfoController.jsc +0 -0
  78. package/data_layer/insert.jsc +0 -0
  79. package/data_layer/readTransactionLog.jsc +0 -0
  80. package/data_layer/schema.jsc +0 -0
  81. package/data_layer/schemaDescribe.jsc +0 -0
  82. package/data_layer/search.jsc +0 -0
  83. package/data_layer/update.jsc +0 -0
  84. package/events/ClusterStatusEmitter.jsc +0 -0
  85. package/events/SioServerStoppedEvent.jsc +0 -0
  86. package/events/SocketClusterStatusEmitter.jsc +0 -0
  87. package/node_modules/@pm2/js-api/node_modules/async/CHANGELOG.md +275 -0
  88. package/node_modules/@pm2/js-api/node_modules/async/LICENSE +19 -0
  89. package/node_modules/@pm2/js-api/node_modules/async/README.md +56 -0
  90. package/node_modules/@pm2/js-api/node_modules/async/all.js +50 -0
  91. package/node_modules/@pm2/js-api/node_modules/async/allLimit.js +42 -0
  92. package/node_modules/@pm2/js-api/node_modules/async/allSeries.js +37 -0
  93. package/node_modules/@pm2/js-api/node_modules/async/any.js +52 -0
  94. package/node_modules/@pm2/js-api/node_modules/async/anyLimit.js +43 -0
  95. package/node_modules/@pm2/js-api/node_modules/async/anySeries.js +38 -0
  96. package/node_modules/@pm2/js-api/node_modules/async/apply.js +68 -0
  97. package/node_modules/@pm2/js-api/node_modules/async/applyEach.js +51 -0
  98. package/node_modules/@pm2/js-api/node_modules/async/applyEachSeries.js +37 -0
  99. package/node_modules/@pm2/js-api/node_modules/async/asyncify.js +110 -0
  100. package/node_modules/@pm2/js-api/node_modules/async/auto.js +289 -0
  101. package/node_modules/@pm2/js-api/node_modules/async/autoInject.js +170 -0
  102. package/node_modules/@pm2/js-api/node_modules/async/bower.json +17 -0
  103. package/node_modules/@pm2/js-api/node_modules/async/cargo.js +94 -0
  104. package/node_modules/@pm2/js-api/node_modules/async/compose.js +58 -0
  105. package/node_modules/@pm2/js-api/node_modules/async/concat.js +43 -0
  106. package/node_modules/@pm2/js-api/node_modules/async/concatLimit.js +65 -0
  107. package/node_modules/@pm2/js-api/node_modules/async/concatSeries.js +36 -0
  108. package/node_modules/@pm2/js-api/node_modules/async/constant.js +66 -0
  109. package/node_modules/@pm2/js-api/node_modules/async/detect.js +61 -0
  110. package/node_modules/@pm2/js-api/node_modules/async/detectLimit.js +48 -0
  111. package/node_modules/@pm2/js-api/node_modules/async/detectSeries.js +38 -0
  112. package/node_modules/@pm2/js-api/node_modules/async/dir.js +43 -0
  113. package/node_modules/@pm2/js-api/node_modules/async/dist/async.js +5609 -0
  114. package/node_modules/@pm2/js-api/node_modules/async/dist/async.min.js +2 -0
  115. package/node_modules/@pm2/js-api/node_modules/async/dist/async.min.map +1 -0
  116. package/node_modules/@pm2/js-api/node_modules/async/doDuring.js +66 -0
  117. package/node_modules/@pm2/js-api/node_modules/async/doUntil.js +39 -0
  118. package/node_modules/@pm2/js-api/node_modules/async/doWhilst.js +59 -0
  119. package/node_modules/@pm2/js-api/node_modules/async/during.js +76 -0
  120. package/node_modules/@pm2/js-api/node_modules/async/each.js +82 -0
  121. package/node_modules/@pm2/js-api/node_modules/async/eachLimit.js +45 -0
  122. package/node_modules/@pm2/js-api/node_modules/async/eachOf.js +111 -0
  123. package/node_modules/@pm2/js-api/node_modules/async/eachOfLimit.js +41 -0
  124. package/node_modules/@pm2/js-api/node_modules/async/eachOfSeries.js +35 -0
  125. package/node_modules/@pm2/js-api/node_modules/async/eachSeries.js +37 -0
  126. package/node_modules/@pm2/js-api/node_modules/async/ensureAsync.js +73 -0
  127. package/node_modules/@pm2/js-api/node_modules/async/every.js +50 -0
  128. package/node_modules/@pm2/js-api/node_modules/async/everyLimit.js +42 -0
  129. package/node_modules/@pm2/js-api/node_modules/async/everySeries.js +37 -0
  130. package/node_modules/@pm2/js-api/node_modules/async/filter.js +45 -0
  131. package/node_modules/@pm2/js-api/node_modules/async/filterLimit.js +37 -0
  132. package/node_modules/@pm2/js-api/node_modules/async/filterSeries.js +35 -0
  133. package/node_modules/@pm2/js-api/node_modules/async/find.js +61 -0
  134. package/node_modules/@pm2/js-api/node_modules/async/findLimit.js +48 -0
  135. package/node_modules/@pm2/js-api/node_modules/async/findSeries.js +38 -0
  136. package/node_modules/@pm2/js-api/node_modules/async/foldl.js +78 -0
  137. package/node_modules/@pm2/js-api/node_modules/async/foldr.js +44 -0
  138. package/node_modules/@pm2/js-api/node_modules/async/forEach.js +82 -0
  139. package/node_modules/@pm2/js-api/node_modules/async/forEachLimit.js +45 -0
  140. package/node_modules/@pm2/js-api/node_modules/async/forEachOf.js +111 -0
  141. package/node_modules/@pm2/js-api/node_modules/async/forEachOfLimit.js +41 -0
  142. package/node_modules/@pm2/js-api/node_modules/async/forEachOfSeries.js +35 -0
  143. package/node_modules/@pm2/js-api/node_modules/async/forEachSeries.js +37 -0
  144. package/node_modules/@pm2/js-api/node_modules/async/forever.js +65 -0
  145. package/node_modules/@pm2/js-api/node_modules/async/groupBy.js +54 -0
  146. package/node_modules/@pm2/js-api/node_modules/async/groupByLimit.js +71 -0
  147. package/node_modules/@pm2/js-api/node_modules/async/groupBySeries.js +37 -0
  148. package/node_modules/@pm2/js-api/node_modules/async/index.js +582 -0
  149. package/node_modules/@pm2/js-api/node_modules/async/inject.js +78 -0
  150. package/node_modules/@pm2/js-api/node_modules/async/internal/DoublyLinkedList.js +88 -0
  151. package/node_modules/@pm2/js-api/node_modules/async/internal/applyEach.js +38 -0
  152. package/node_modules/@pm2/js-api/node_modules/async/internal/breakLoop.js +9 -0
  153. package/node_modules/@pm2/js-api/node_modules/async/internal/consoleFunc.js +42 -0
  154. package/node_modules/@pm2/js-api/node_modules/async/internal/createTester.js +44 -0
  155. package/node_modules/@pm2/js-api/node_modules/async/internal/doLimit.js +12 -0
  156. package/node_modules/@pm2/js-api/node_modules/async/internal/doParallel.js +23 -0
  157. package/node_modules/@pm2/js-api/node_modules/async/internal/doParallelLimit.js +23 -0
  158. package/node_modules/@pm2/js-api/node_modules/async/internal/eachOfLimit.js +74 -0
  159. package/node_modules/@pm2/js-api/node_modules/async/internal/filter.js +75 -0
  160. package/node_modules/@pm2/js-api/node_modules/async/internal/findGetResult.js +10 -0
  161. package/node_modules/@pm2/js-api/node_modules/async/internal/getIterator.js +13 -0
  162. package/node_modules/@pm2/js-api/node_modules/async/internal/initialParams.js +21 -0
  163. package/node_modules/@pm2/js-api/node_modules/async/internal/iterator.js +58 -0
  164. package/node_modules/@pm2/js-api/node_modules/async/internal/map.js +35 -0
  165. package/node_modules/@pm2/js-api/node_modules/async/internal/notId.js +10 -0
  166. package/node_modules/@pm2/js-api/node_modules/async/internal/once.js +15 -0
  167. package/node_modules/@pm2/js-api/node_modules/async/internal/onlyOnce.js +15 -0
  168. package/node_modules/@pm2/js-api/node_modules/async/internal/parallel.js +42 -0
  169. package/node_modules/@pm2/js-api/node_modules/async/internal/queue.js +204 -0
  170. package/node_modules/@pm2/js-api/node_modules/async/internal/reject.js +21 -0
  171. package/node_modules/@pm2/js-api/node_modules/async/internal/setImmediate.js +42 -0
  172. package/node_modules/@pm2/js-api/node_modules/async/internal/slice.js +16 -0
  173. package/node_modules/@pm2/js-api/node_modules/async/internal/withoutIndex.js +12 -0
  174. package/node_modules/@pm2/js-api/node_modules/async/internal/wrapAsync.js +25 -0
  175. package/node_modules/@pm2/js-api/node_modules/async/log.js +41 -0
  176. package/node_modules/@pm2/js-api/node_modules/async/map.js +54 -0
  177. package/node_modules/@pm2/js-api/node_modules/async/mapLimit.js +37 -0
  178. package/node_modules/@pm2/js-api/node_modules/async/mapSeries.js +36 -0
  179. package/node_modules/@pm2/js-api/node_modules/async/mapValues.js +63 -0
  180. package/node_modules/@pm2/js-api/node_modules/async/mapValuesLimit.js +61 -0
  181. package/node_modules/@pm2/js-api/node_modules/async/mapValuesSeries.js +37 -0
  182. package/node_modules/@pm2/js-api/node_modules/async/memoize.js +101 -0
  183. package/node_modules/@pm2/js-api/node_modules/async/nextTick.js +51 -0
  184. package/node_modules/@pm2/js-api/node_modules/async/package.json +110 -0
  185. package/node_modules/@pm2/js-api/node_modules/async/parallel.js +90 -0
  186. package/node_modules/@pm2/js-api/node_modules/async/parallelLimit.js +40 -0
  187. package/node_modules/@pm2/js-api/node_modules/async/priorityQueue.js +98 -0
  188. package/node_modules/@pm2/js-api/node_modules/async/queue.js +130 -0
  189. package/node_modules/@pm2/js-api/node_modules/async/race.js +70 -0
  190. package/node_modules/@pm2/js-api/node_modules/async/reduce.js +78 -0
  191. package/node_modules/@pm2/js-api/node_modules/async/reduceRight.js +44 -0
  192. package/node_modules/@pm2/js-api/node_modules/async/reflect.js +81 -0
  193. package/node_modules/@pm2/js-api/node_modules/async/reflectAll.js +105 -0
  194. package/node_modules/@pm2/js-api/node_modules/async/reject.js +45 -0
  195. package/node_modules/@pm2/js-api/node_modules/async/rejectLimit.js +37 -0
  196. package/node_modules/@pm2/js-api/node_modules/async/rejectSeries.js +35 -0
  197. package/node_modules/@pm2/js-api/node_modules/async/retry.js +156 -0
  198. package/node_modules/@pm2/js-api/node_modules/async/retryable.js +65 -0
  199. package/node_modules/@pm2/js-api/node_modules/async/select.js +45 -0
  200. package/node_modules/@pm2/js-api/node_modules/async/selectLimit.js +37 -0
  201. package/node_modules/@pm2/js-api/node_modules/async/selectSeries.js +35 -0
  202. package/node_modules/@pm2/js-api/node_modules/async/seq.js +91 -0
  203. package/node_modules/@pm2/js-api/node_modules/async/series.js +85 -0
  204. package/node_modules/@pm2/js-api/node_modules/async/setImmediate.js +45 -0
  205. package/node_modules/@pm2/js-api/node_modules/async/some.js +52 -0
  206. package/node_modules/@pm2/js-api/node_modules/async/someLimit.js +43 -0
  207. package/node_modules/@pm2/js-api/node_modules/async/someSeries.js +38 -0
  208. package/node_modules/@pm2/js-api/node_modules/async/sortBy.js +91 -0
  209. package/node_modules/@pm2/js-api/node_modules/async/timeout.js +89 -0
  210. package/node_modules/@pm2/js-api/node_modules/async/times.js +50 -0
  211. package/node_modules/@pm2/js-api/node_modules/async/timesLimit.js +42 -0
  212. package/node_modules/@pm2/js-api/node_modules/async/timesSeries.js +32 -0
  213. package/node_modules/@pm2/js-api/node_modules/async/transform.js +87 -0
  214. package/node_modules/@pm2/js-api/node_modules/async/tryEach.js +81 -0
  215. package/node_modules/@pm2/js-api/node_modules/async/unmemoize.js +25 -0
  216. package/node_modules/@pm2/js-api/node_modules/async/until.js +41 -0
  217. package/node_modules/@pm2/js-api/node_modules/async/waterfall.js +113 -0
  218. package/node_modules/@pm2/js-api/node_modules/async/whilst.js +72 -0
  219. package/node_modules/@pm2/js-api/node_modules/async/wrapSync.js +110 -0
  220. package/node_modules/@pm2/js-api/package.json +3 -1
  221. package/node_modules/ajv/package.json +0 -1
  222. package/node_modules/async/CHANGELOG.md +0 -6
  223. package/node_modules/async/package.json +12 -15
  224. package/node_modules/async-limiter/package.json +1 -0
  225. package/node_modules/{fastify-static → avvio}/.github/dependabot.yml +5 -1
  226. package/node_modules/avvio/.github/workflows/ci.yml +34 -11
  227. package/node_modules/avvio/.taprc +1 -1
  228. package/node_modules/avvio/README.md +17 -15
  229. package/node_modules/avvio/boot.js +15 -9
  230. package/node_modules/avvio/index.d.ts +1 -1
  231. package/node_modules/avvio/node_modules/debug/LICENSE +10 -9
  232. package/node_modules/avvio/node_modules/debug/README.md +24 -1
  233. package/node_modules/avvio/node_modules/debug/package.json +20 -20
  234. package/node_modules/avvio/node_modules/debug/src/common.js +15 -2
  235. package/node_modules/avvio/package.json +15 -15
  236. package/node_modules/avvio/plugin.js +5 -4
  237. package/node_modules/avvio/test/after-and-ready.test.js +27 -27
  238. package/node_modules/avvio/test/after-pass-through.test.js +3 -3
  239. package/node_modules/avvio/test/async-await.test.js +1 -1
  240. package/node_modules/avvio/test/await-after.test.js +12 -12
  241. package/node_modules/avvio/test/await-self.test.js +6 -6
  242. package/node_modules/avvio/test/await-use.test.js +1 -1
  243. package/node_modules/avvio/test/basic.test.js +14 -14
  244. package/node_modules/avvio/test/callbacks.test.js +1 -1
  245. package/node_modules/avvio/test/close.test.js +64 -21
  246. package/node_modules/avvio/test/esm.mjs +1 -1
  247. package/node_modules/avvio/test/events-listeners.test.js +1 -0
  248. package/node_modules/avvio/test/express.test.js +1 -1
  249. package/node_modules/avvio/test/override.test.js +27 -27
  250. package/node_modules/avvio/test/plugin-timeout.test.js +18 -18
  251. package/node_modules/avvio/test/pretty-print.test.js +1 -1
  252. package/node_modules/avvio/test/to-json.test.js +5 -5
  253. package/node_modules/avvio/test/types/index.ts +7 -0
  254. package/node_modules/axios/CHANGELOG.md +0 -23
  255. package/node_modules/axios/README.md +1 -3
  256. package/node_modules/axios/dist/axios.js +1 -21
  257. package/node_modules/axios/dist/axios.map +1 -1
  258. package/node_modules/axios/dist/axios.min.js +2 -2
  259. package/node_modules/axios/dist/axios.min.map +1 -1
  260. package/node_modules/axios/index.d.ts +2 -3
  261. package/node_modules/axios/lib/adapters/http.js +12 -28
  262. package/node_modules/axios/lib/axios.js +0 -3
  263. package/node_modules/axios/package.json +10 -10
  264. package/node_modules/big-integer/BigInteger.d.ts +1 -1
  265. package/node_modules/big-integer/BigInteger.js +2 -2
  266. package/node_modules/big-integer/BigInteger.min.js +1 -1
  267. package/node_modules/big-integer/README.md +2 -1
  268. package/node_modules/big-integer/package.json +15 -15
  269. package/node_modules/clone/README.md +3 -19
  270. package/node_modules/clone/clone.js +1 -7
  271. package/node_modules/clone/package.json +12 -11
  272. package/node_modules/cookie/HISTORY.md +6 -0
  273. package/node_modules/cookie/README.md +49 -20
  274. package/node_modules/cookie/index.js +11 -11
  275. package/node_modules/cookie/package.json +18 -16
  276. package/node_modules/fast-deep-equal/package.json +2 -1
  277. package/node_modules/fast-json-stringify/.github/dependabot.yml +4 -0
  278. package/node_modules/fast-json-stringify/.github/workflows/benchmark.yml +111 -0
  279. package/node_modules/fast-json-stringify/.github/workflows/ci.yml +32 -16
  280. package/node_modules/fast-json-stringify/.taprc +0 -1
  281. package/node_modules/fast-json-stringify/README.md +24 -17
  282. package/node_modules/fast-json-stringify/bench.js +28 -0
  283. package/node_modules/fast-json-stringify/example.js +1 -3
  284. package/node_modules/fast-json-stringify/index.d.ts +1 -0
  285. package/node_modules/fast-json-stringify/index.js +175 -116
  286. package/node_modules/fast-json-stringify/package.json +13 -12
  287. package/node_modules/fast-json-stringify/test/allof.test.js +63 -11
  288. package/node_modules/fast-json-stringify/test/any.test.js +25 -25
  289. package/node_modules/fast-json-stringify/test/anyof.test.js +92 -22
  290. package/node_modules/fast-json-stringify/test/array.test.js +66 -3
  291. package/node_modules/fast-json-stringify/test/basic.test.js +3 -3
  292. package/node_modules/fast-json-stringify/test/date.test.js +1 -1
  293. package/node_modules/fast-json-stringify/test/debug-mode.test.js +4 -4
  294. package/node_modules/fast-json-stringify/test/defaults.test.js +1 -1
  295. package/node_modules/fast-json-stringify/test/enum.test.js +37 -0
  296. package/node_modules/fast-json-stringify/test/inferType.test.js +1 -1
  297. package/node_modules/fast-json-stringify/test/integer.test.js +44 -1
  298. package/node_modules/fast-json-stringify/test/nestedObjects.test.js +1 -1
  299. package/node_modules/fast-json-stringify/test/nullable.test.js +1 -1
  300. package/node_modules/fast-json-stringify/test/oneof.test.js +145 -17
  301. package/node_modules/fast-json-stringify/test/recursion.test.js +180 -0
  302. package/node_modules/fast-json-stringify/test/ref.test.js +54 -7
  303. package/node_modules/fast-json-stringify/test/required.test.js +10 -10
  304. package/node_modules/fast-json-stringify/test/requiresAjv.test.js +48 -0
  305. package/node_modules/fast-json-stringify/test/sanitize.test.js +2 -2
  306. package/node_modules/fast-json-stringify/test/side-effect.test.js +7 -7
  307. package/node_modules/fast-json-stringify/test/types/test.ts +8 -0
  308. package/node_modules/fast-json-stringify/test/typesArray.test.js +26 -26
  309. package/node_modules/fast-json-stringify/test/webpack.test.js +50 -0
  310. package/node_modules/fastify/README.md +3 -3
  311. package/node_modules/fastify/docs/ContentTypeParser.md +0 -21
  312. package/node_modules/fastify/docs/Ecosystem.md +0 -1
  313. package/node_modules/fastify/docs/Request.md +1 -1
  314. package/node_modules/fastify/docs/Server.md +1 -23
  315. package/node_modules/fastify/docs/Serverless.md +10 -17
  316. package/node_modules/fastify/docs/Style-Guide.md +2 -2
  317. package/node_modules/fastify/fastify.js +0 -3
  318. package/node_modules/fastify/lib/contentTypeParser.js +7 -28
  319. package/node_modules/fastify/lib/errors.js +1 -1
  320. package/node_modules/fastify/lib/reply.js +15 -11
  321. package/node_modules/fastify/lib/route.js +1 -1
  322. package/node_modules/fastify/node_modules/semver/package.json +10 -10
  323. package/node_modules/fastify/node_modules/semver/ranges/subset.js +67 -7
  324. package/node_modules/fastify/package.json +11 -11
  325. package/node_modules/fastify/test/content-parser.test.js +7 -179
  326. package/node_modules/fastify/test/custom-parser.test.js +2 -262
  327. package/node_modules/fastify/test/pretty-print.test.js +0 -28
  328. package/node_modules/fastify/test/schema-special-usage.test.js +0 -46
  329. package/node_modules/fastify/test/stream.test.js +0 -90
  330. package/node_modules/fastify/test/types/instance.test-d.ts +0 -2
  331. package/node_modules/fastify/test/types/logger.test-d.ts +3 -8
  332. package/node_modules/fastify/test/types/schema.test-d.ts +1 -41
  333. package/node_modules/fastify/test/versioned-routes.test.js +18 -61
  334. package/node_modules/fastify/types/content-type-parser.d.ts +4 -4
  335. package/node_modules/fastify/types/instance.d.ts +5 -11
  336. package/node_modules/fastify/types/logger.d.ts +1 -1
  337. package/node_modules/fastify/types/route.d.ts +11 -14
  338. package/node_modules/fastify/types/schema.d.ts +4 -4
  339. package/node_modules/{light-my-request → fastify-compress}/.dependabot/config.yml +1 -1
  340. package/node_modules/fastify-compress/.github/workflows/ci.yml +1 -10
  341. package/node_modules/fastify-compress/index.js +0 -12
  342. package/node_modules/fastify-compress/node_modules/mime-db/HISTORY.md +33 -0
  343. package/node_modules/fastify-compress/node_modules/mime-db/README.md +0 -2
  344. package/node_modules/fastify-compress/node_modules/mime-db/db.json +167 -9
  345. package/node_modules/fastify-compress/node_modules/mime-db/package.json +17 -17
  346. package/node_modules/fastify-compress/package.json +11 -11
  347. package/node_modules/fastify-compress/test/test-routes-compress.js +0 -27
  348. package/node_modules/fastify-cors/README.md +11 -18
  349. package/node_modules/fastify-cors/index.d.ts +55 -66
  350. package/node_modules/fastify-cors/index.js +83 -131
  351. package/node_modules/fastify-cors/package.json +11 -11
  352. package/node_modules/fastify-cors/test/cors.test.js +3 -250
  353. package/node_modules/fastify-cors/test/index.test-d.ts +1 -65
  354. package/node_modules/fastify-cors/test/preflight.test.js +1 -61
  355. package/node_modules/{fastify-compress → fastify-error}/.github/dependabot.yml +5 -1
  356. package/node_modules/fastify-error/.github/workflows/ci.yml +24 -8
  357. package/node_modules/fastify-error/README.md +8 -5
  358. package/node_modules/fastify-error/index.d.ts +1 -2
  359. package/node_modules/fastify-error/index.test-d.ts +1 -1
  360. package/node_modules/fastify-error/package.json +12 -12
  361. package/node_modules/fastify-helmet/.dependabot/config.yml +5 -0
  362. package/node_modules/fastify-helmet/.github/workflows/ci.yml +0 -9
  363. package/node_modules/fastify-helmet/README.md +2 -2
  364. package/node_modules/fastify-helmet/benchmarks/express.js +3 -3
  365. package/node_modules/fastify-helmet/benchmarks/koa.js +2 -2
  366. package/node_modules/fastify-helmet/index.js +0 -2
  367. package/node_modules/fastify-helmet/node_modules/fastify-plugin/.github/workflows/ci.yml +18 -0
  368. package/node_modules/fastify-helmet/node_modules/fastify-plugin/.taprc +5 -0
  369. package/node_modules/fastify-helmet/node_modules/fastify-plugin/LICENSE +21 -0
  370. package/node_modules/fastify-helmet/node_modules/fastify-plugin/README.md +144 -0
  371. package/node_modules/fastify-helmet/node_modules/fastify-plugin/package.json +69 -0
  372. package/node_modules/fastify-helmet/node_modules/fastify-plugin/plugin.d.ts +36 -0
  373. package/node_modules/fastify-helmet/node_modules/fastify-plugin/plugin.js +126 -0
  374. package/node_modules/fastify-helmet/node_modules/fastify-plugin/plugin.test-d.ts +72 -0
  375. package/node_modules/fastify-helmet/node_modules/fastify-plugin/stackParser.js +11 -0
  376. package/node_modules/fastify-helmet/node_modules/fastify-plugin/test/bundlers.test.js +85 -0
  377. package/node_modules/fastify-helmet/node_modules/fastify-plugin/test/checkVersion.test.js +73 -0
  378. package/node_modules/fastify-helmet/node_modules/fastify-plugin/test/composite.test.js +16 -0
  379. package/node_modules/fastify-helmet/node_modules/fastify-plugin/test/esm/esm.mjs +34 -0
  380. package/node_modules/fastify-helmet/node_modules/fastify-plugin/test/esm/index.test.js +19 -0
  381. package/node_modules/fastify-helmet/node_modules/fastify-plugin/test/mu1tip1e.composite.test.js +16 -0
  382. package/node_modules/fastify-helmet/node_modules/fastify-plugin/test/stackParser.test.js +48 -0
  383. package/node_modules/fastify-helmet/node_modules/fastify-plugin/test/test.js +307 -0
  384. package/node_modules/fastify-helmet/node_modules/fastify-plugin/tsconfig.json +8 -0
  385. package/node_modules/fastify-helmet/node_modules/semver/CHANGELOG.md +111 -0
  386. package/node_modules/fastify-helmet/node_modules/semver/LICENSE +15 -0
  387. package/node_modules/fastify-helmet/node_modules/semver/README.md +566 -0
  388. package/node_modules/fastify-helmet/node_modules/semver/bin/semver.js +173 -0
  389. package/node_modules/fastify-helmet/node_modules/semver/classes/comparator.js +135 -0
  390. package/node_modules/fastify-helmet/node_modules/semver/classes/index.js +5 -0
  391. package/node_modules/fastify-helmet/node_modules/semver/classes/range.js +510 -0
  392. package/node_modules/fastify-helmet/node_modules/semver/classes/semver.js +287 -0
  393. package/node_modules/fastify-helmet/node_modules/semver/functions/clean.js +6 -0
  394. package/node_modules/fastify-helmet/node_modules/semver/functions/cmp.js +48 -0
  395. package/node_modules/fastify-helmet/node_modules/semver/functions/coerce.js +51 -0
  396. package/node_modules/fastify-helmet/node_modules/semver/functions/compare-build.js +7 -0
  397. package/node_modules/fastify-helmet/node_modules/semver/functions/compare-loose.js +3 -0
  398. package/node_modules/fastify-helmet/node_modules/semver/functions/compare.js +5 -0
  399. package/node_modules/fastify-helmet/node_modules/semver/functions/diff.js +23 -0
  400. package/node_modules/fastify-helmet/node_modules/semver/functions/eq.js +3 -0
  401. package/node_modules/fastify-helmet/node_modules/semver/functions/gt.js +3 -0
  402. package/node_modules/fastify-helmet/node_modules/semver/functions/gte.js +3 -0
  403. package/node_modules/fastify-helmet/node_modules/semver/functions/inc.js +15 -0
  404. package/node_modules/fastify-helmet/node_modules/semver/functions/lt.js +3 -0
  405. package/node_modules/fastify-helmet/node_modules/semver/functions/lte.js +3 -0
  406. package/node_modules/fastify-helmet/node_modules/semver/functions/major.js +3 -0
  407. package/node_modules/fastify-helmet/node_modules/semver/functions/minor.js +3 -0
  408. package/node_modules/fastify-helmet/node_modules/semver/functions/neq.js +3 -0
  409. package/node_modules/fastify-helmet/node_modules/semver/functions/parse.js +33 -0
  410. package/node_modules/fastify-helmet/node_modules/semver/functions/patch.js +3 -0
  411. package/node_modules/fastify-helmet/node_modules/semver/functions/prerelease.js +6 -0
  412. package/node_modules/fastify-helmet/node_modules/semver/functions/rcompare.js +3 -0
  413. package/node_modules/fastify-helmet/node_modules/semver/functions/rsort.js +3 -0
  414. package/node_modules/fastify-helmet/node_modules/semver/functions/satisfies.js +10 -0
  415. package/node_modules/fastify-helmet/node_modules/semver/functions/sort.js +3 -0
  416. package/node_modules/fastify-helmet/node_modules/semver/functions/valid.js +6 -0
  417. package/node_modules/fastify-helmet/node_modules/semver/index.js +48 -0
  418. package/node_modules/fastify-helmet/node_modules/semver/internal/constants.js +17 -0
  419. package/node_modules/fastify-helmet/node_modules/semver/internal/debug.js +9 -0
  420. package/node_modules/fastify-helmet/node_modules/semver/internal/identifiers.js +23 -0
  421. package/node_modules/fastify-helmet/node_modules/semver/internal/parse-options.js +11 -0
  422. package/node_modules/fastify-helmet/node_modules/semver/internal/re.js +182 -0
  423. package/node_modules/fastify-helmet/node_modules/semver/package.json +76 -0
  424. package/node_modules/fastify-helmet/node_modules/semver/preload.js +2 -0
  425. package/node_modules/fastify-helmet/node_modules/semver/range.bnf +16 -0
  426. package/node_modules/fastify-helmet/node_modules/semver/ranges/gtr.js +4 -0
  427. package/node_modules/fastify-helmet/node_modules/semver/ranges/intersects.js +7 -0
  428. package/node_modules/fastify-helmet/node_modules/semver/ranges/ltr.js +4 -0
  429. package/node_modules/fastify-helmet/node_modules/semver/ranges/max-satisfying.js +25 -0
  430. package/node_modules/fastify-helmet/node_modules/semver/ranges/min-satisfying.js +24 -0
  431. package/node_modules/fastify-helmet/node_modules/semver/ranges/min-version.js +60 -0
  432. package/node_modules/fastify-helmet/node_modules/semver/ranges/outside.js +80 -0
  433. package/node_modules/fastify-helmet/node_modules/semver/ranges/simplify.js +44 -0
  434. package/node_modules/fastify-helmet/node_modules/semver/ranges/subset.js +222 -0
  435. package/node_modules/fastify-helmet/node_modules/semver/ranges/to-comparators.js +8 -0
  436. package/node_modules/fastify-helmet/node_modules/semver/ranges/valid.js +11 -0
  437. package/node_modules/fastify-helmet/package.json +17 -17
  438. package/node_modules/fastify-helmet/test.js +0 -27
  439. package/node_modules/fastify-plugin/package.json +0 -1
  440. package/node_modules/{avvio → fastify-static}/.dependabot/config.yml +0 -0
  441. package/node_modules/fastify-static/.github/workflows/ci.yml +1 -10
  442. package/node_modules/fastify-static/README.md +0 -3
  443. package/node_modules/fastify-static/example/public/index.js +1 -1
  444. package/node_modules/fastify-static/example/server-compress.js +2 -5
  445. package/node_modules/fastify-static/example/server-dir-list.js +18 -25
  446. package/node_modules/fastify-static/example/server.js +1 -4
  447. package/node_modules/fastify-static/index.d.ts +2 -2
  448. package/node_modules/fastify-static/index.js +31 -64
  449. package/node_modules/fastify-static/node_modules/glob/README.md +4 -1
  450. package/node_modules/fastify-static/node_modules/glob/common.js +4 -8
  451. package/node_modules/fastify-static/node_modules/glob/glob.js +4 -7
  452. package/node_modules/fastify-static/node_modules/glob/package.json +18 -12
  453. package/node_modules/fastify-static/node_modules/glob/sync.js +4 -7
  454. package/node_modules/fastify-static/package.json +13 -14
  455. package/node_modules/fastify-static/test/dir-list.test.js +1 -5
  456. package/node_modules/fastify-static/test/static.test.js +2 -261
  457. package/node_modules/fastify-static/test/types/index.ts +1 -13
  458. package/node_modules/find-my-way/.taprc +4 -1
  459. package/node_modules/find-my-way/README.md +96 -6
  460. package/node_modules/find-my-way/index.d.ts +6 -5
  461. package/node_modules/find-my-way/index.js +72 -10
  462. package/node_modules/find-my-way/lib/constrainer.js +6 -2
  463. package/node_modules/find-my-way/lib/pretty-print.js +234 -33
  464. package/node_modules/find-my-way/node.js +25 -28
  465. package/node_modules/find-my-way/package.json +11 -11
  466. package/node_modules/find-my-way/test/constraint.custom-versioning.test.js +2 -2
  467. package/node_modules/find-my-way/test/constraint.custom.test.js +72 -10
  468. package/node_modules/find-my-way/test/constraint.default-versioning.test.js +24 -1
  469. package/node_modules/find-my-way/test/constraint.host.test.js +7 -7
  470. package/node_modules/find-my-way/test/constraints.test.js +19 -19
  471. package/node_modules/find-my-way/test/errors.test.js +25 -25
  472. package/node_modules/find-my-way/test/fastify-issue-3129.test.js +35 -0
  473. package/node_modules/find-my-way/test/full-url.test.js +8 -8
  474. package/node_modules/find-my-way/test/host-storage.test.js +15 -15
  475. package/node_modules/find-my-way/test/http2/constraint.host.test.js +45 -0
  476. package/node_modules/find-my-way/test/issue-104.test.js +41 -18
  477. package/node_modules/find-my-way/test/issue-110.test.js +1 -1
  478. package/node_modules/find-my-way/test/issue-132.test.js +9 -9
  479. package/node_modules/find-my-way/test/issue-145.test.js +6 -6
  480. package/node_modules/find-my-way/test/issue-151.test.js +2 -2
  481. package/node_modules/find-my-way/test/issue-17.test.js +92 -12
  482. package/node_modules/find-my-way/test/issue-175.test.js +51 -1
  483. package/node_modules/find-my-way/test/issue-182.test.js +19 -0
  484. package/node_modules/find-my-way/test/issue-28.test.js +21 -21
  485. package/node_modules/find-my-way/test/issue-46.test.js +13 -13
  486. package/node_modules/find-my-way/test/issue-49.test.js +4 -4
  487. package/node_modules/find-my-way/test/issue-59.test.js +1 -1
  488. package/node_modules/find-my-way/test/issue-63.test.js +1 -1
  489. package/node_modules/find-my-way/test/issue-67.test.js +1 -1
  490. package/node_modules/find-my-way/test/max-param-length.test.js +5 -5
  491. package/node_modules/find-my-way/test/methods.test.js +53 -53
  492. package/node_modules/find-my-way/test/on-bad-url.test.js +4 -4
  493. package/node_modules/find-my-way/test/optional-params.test.js +145 -0
  494. package/node_modules/find-my-way/test/path-params-match.test.js +12 -12
  495. package/node_modules/find-my-way/test/pretty-print.test.js +364 -9
  496. package/node_modules/find-my-way/test/regex.test.js +5 -5
  497. package/node_modules/find-my-way/test/routes-registered.test.js +4 -4
  498. package/node_modules/find-my-way/test/server.test.js +23 -23
  499. package/node_modules/find-my-way/test/store.test.js +4 -4
  500. package/node_modules/find-my-way/test/types/router.test-d.ts +62 -0
  501. package/node_modules/follow-redirects/debug.js +2 -1
  502. package/node_modules/follow-redirects/index.js +111 -42
  503. package/node_modules/follow-redirects/package.json +10 -10
  504. package/node_modules/helmet/CHANGELOG.md +27 -3
  505. package/node_modules/helmet/README.md +130 -27
  506. package/node_modules/helmet/dist/index.d.ts +21 -13
  507. package/node_modules/helmet/dist/index.js +111 -52
  508. package/node_modules/helmet/dist/middlewares/content-security-policy/index.d.ts +2 -1
  509. package/node_modules/helmet/dist/middlewares/content-security-policy/index.js +28 -11
  510. package/node_modules/helmet/dist/middlewares/cross-origin-embedder-policy/index.d.ts +3 -0
  511. package/node_modules/helmet/dist/middlewares/cross-origin-embedder-policy/index.js +10 -0
  512. package/node_modules/helmet/dist/middlewares/cross-origin-opener-policy/index.d.ts +6 -0
  513. package/node_modules/helmet/dist/middlewares/cross-origin-opener-policy/index.js +19 -0
  514. package/node_modules/helmet/dist/middlewares/cross-origin-resource-policy/index.d.ts +6 -0
  515. package/node_modules/helmet/dist/middlewares/cross-origin-resource-policy/index.js +19 -0
  516. package/node_modules/helmet/package.json +19 -18
  517. package/node_modules/ieee754/package.json +1 -2
  518. package/node_modules/inherits/package.json +0 -1
  519. package/node_modules/ipaddr.js/Changes.md +20 -0
  520. package/node_modules/ipaddr.js/ipaddr.min.js +1 -1
  521. package/node_modules/ipaddr.js/lib/ipaddr.js +66 -0
  522. package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +1 -0
  523. package/node_modules/ipaddr.js/package.json +10 -10
  524. package/node_modules/{fastify-helmet → light-my-request}/.github/dependabot.yml +5 -1
  525. package/node_modules/light-my-request/.github/workflows/ci.yml +38 -12
  526. package/node_modules/light-my-request/README.md +5 -3
  527. package/node_modules/light-my-request/index.d.ts +6 -3
  528. package/node_modules/light-my-request/lib/parseURL.js +7 -4
  529. package/node_modules/light-my-request/lib/request.js +16 -6
  530. package/node_modules/light-my-request/lib/response.js +24 -11
  531. package/node_modules/light-my-request/node_modules/ajv/.runkit_example.js +23 -0
  532. package/node_modules/light-my-request/node_modules/ajv/LICENSE +22 -0
  533. package/node_modules/light-my-request/node_modules/ajv/README.md +193 -0
  534. package/node_modules/light-my-request/node_modules/ajv/dist/2019.d.ts +17 -0
  535. package/node_modules/light-my-request/node_modules/ajv/dist/2019.js +55 -0
  536. package/node_modules/light-my-request/node_modules/ajv/dist/2019.js.map +1 -0
  537. package/node_modules/light-my-request/node_modules/ajv/dist/2020.d.ts +17 -0
  538. package/node_modules/light-my-request/node_modules/ajv/dist/2020.js +49 -0
  539. package/node_modules/light-my-request/node_modules/ajv/dist/2020.js.map +1 -0
  540. package/node_modules/light-my-request/node_modules/ajv/dist/ajv.d.ts +16 -0
  541. package/node_modules/light-my-request/node_modules/ajv/dist/ajv.js +44 -0
  542. package/node_modules/light-my-request/node_modules/ajv/dist/ajv.js.map +1 -0
  543. package/node_modules/light-my-request/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
  544. package/node_modules/light-my-request/node_modules/ajv/dist/compile/codegen/code.js +155 -0
  545. package/node_modules/light-my-request/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
  546. package/node_modules/light-my-request/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
  547. package/node_modules/light-my-request/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  548. package/node_modules/light-my-request/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
  549. package/node_modules/light-my-request/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
  550. package/node_modules/light-my-request/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  551. package/node_modules/light-my-request/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
  552. package/node_modules/light-my-request/node_modules/ajv/dist/compile/errors.d.ts +13 -0
  553. package/node_modules/light-my-request/node_modules/ajv/dist/compile/errors.js +123 -0
  554. package/node_modules/light-my-request/node_modules/ajv/dist/compile/errors.js.map +1 -0
  555. package/node_modules/light-my-request/node_modules/ajv/dist/compile/index.d.ts +80 -0
  556. package/node_modules/light-my-request/node_modules/ajv/dist/compile/index.js +242 -0
  557. package/node_modules/light-my-request/node_modules/ajv/dist/compile/index.js.map +1 -0
  558. package/node_modules/light-my-request/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
  559. package/node_modules/light-my-request/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
  560. package/node_modules/light-my-request/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
  561. package/node_modules/light-my-request/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
  562. package/node_modules/light-my-request/node_modules/ajv/dist/compile/jtd/serialize.js +218 -0
  563. package/node_modules/light-my-request/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
  564. package/node_modules/light-my-request/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
  565. package/node_modules/light-my-request/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  566. package/node_modules/light-my-request/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
  567. package/node_modules/light-my-request/node_modules/ajv/dist/compile/names.d.ts +20 -0
  568. package/node_modules/light-my-request/node_modules/ajv/dist/compile/names.js +28 -0
  569. package/node_modules/light-my-request/node_modules/ajv/dist/compile/names.js.map +1 -0
  570. package/node_modules/light-my-request/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
  571. package/node_modules/light-my-request/node_modules/ajv/dist/compile/ref_error.js +12 -0
  572. package/node_modules/light-my-request/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
  573. package/node_modules/light-my-request/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
  574. package/node_modules/light-my-request/node_modules/ajv/dist/compile/resolve.js +155 -0
  575. package/node_modules/light-my-request/node_modules/ajv/dist/compile/resolve.js.map +1 -0
  576. package/node_modules/light-my-request/node_modules/ajv/dist/compile/rules.d.ts +28 -0
  577. package/node_modules/light-my-request/node_modules/ajv/dist/compile/rules.js +26 -0
  578. package/node_modules/light-my-request/node_modules/ajv/dist/compile/rules.js.map +1 -0
  579. package/node_modules/light-my-request/node_modules/ajv/dist/compile/util.d.ts +40 -0
  580. package/node_modules/light-my-request/node_modules/ajv/dist/compile/util.js +178 -0
  581. package/node_modules/light-my-request/node_modules/ajv/dist/compile/util.js.map +1 -0
  582. package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
  583. package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  584. package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
  585. package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
  586. package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  587. package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
  588. package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
  589. package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/dataType.js +202 -0
  590. package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
  591. package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
  592. package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  593. package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
  594. package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
  595. package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/index.js +510 -0
  596. package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
  597. package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
  598. package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  599. package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
  600. package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
  601. package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  602. package/node_modules/light-my-request/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
  603. package/node_modules/light-my-request/node_modules/ajv/dist/core.d.ts +173 -0
  604. package/node_modules/light-my-request/node_modules/ajv/dist/core.js +617 -0
  605. package/node_modules/light-my-request/node_modules/ajv/dist/core.js.map +1 -0
  606. package/node_modules/light-my-request/node_modules/ajv/dist/jtd.d.ts +45 -0
  607. package/node_modules/light-my-request/node_modules/ajv/dist/jtd.js +66 -0
  608. package/node_modules/light-my-request/node_modules/ajv/dist/jtd.js.map +1 -0
  609. package/node_modules/light-my-request/node_modules/ajv/dist/refs/data.json +13 -0
  610. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
  611. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  612. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
  613. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  614. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  615. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  616. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  617. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  618. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  619. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  620. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
  621. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  622. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
  623. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  624. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  625. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  626. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  627. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  628. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  629. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  630. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  631. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  632. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  633. package/node_modules/light-my-request/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  634. package/node_modules/light-my-request/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
  635. package/node_modules/light-my-request/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  636. package/node_modules/light-my-request/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
  637. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
  638. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/equal.js +7 -0
  639. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/equal.js.map +1 -0
  640. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
  641. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/parseJson.js +184 -0
  642. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
  643. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
  644. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/quote.js +30 -0
  645. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/quote.js.map +1 -0
  646. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
  647. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/re2.js +6 -0
  648. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/re2.js.map +1 -0
  649. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
  650. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/timestamp.js +42 -0
  651. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
  652. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
  653. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  654. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
  655. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
  656. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/uri.js +6 -0
  657. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/uri.js.map +1 -0
  658. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
  659. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  660. package/node_modules/light-my-request/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
  661. package/node_modules/light-my-request/node_modules/ajv/dist/standalone/index.d.ts +6 -0
  662. package/node_modules/light-my-request/node_modules/ajv/dist/standalone/index.js +90 -0
  663. package/node_modules/light-my-request/node_modules/ajv/dist/standalone/index.js.map +1 -0
  664. package/node_modules/light-my-request/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
  665. package/node_modules/light-my-request/node_modules/ajv/dist/standalone/instance.js +35 -0
  666. package/node_modules/light-my-request/node_modules/ajv/dist/standalone/instance.js.map +1 -0
  667. package/node_modules/light-my-request/node_modules/ajv/dist/types/index.d.ts +183 -0
  668. package/node_modules/light-my-request/node_modules/ajv/dist/types/index.js +3 -0
  669. package/node_modules/light-my-request/node_modules/ajv/dist/types/index.js.map +1 -0
  670. package/node_modules/light-my-request/node_modules/ajv/dist/types/json-schema.d.ts +124 -0
  671. package/node_modules/light-my-request/node_modules/ajv/dist/types/json-schema.js +3 -0
  672. package/node_modules/light-my-request/node_modules/ajv/dist/types/json-schema.js.map +1 -0
  673. package/node_modules/light-my-request/node_modules/ajv/dist/types/jtd-schema.d.ts +169 -0
  674. package/node_modules/light-my-request/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  675. package/node_modules/light-my-request/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
  676. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
  677. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  678. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
  679. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
  680. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  681. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
  682. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
  683. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  684. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
  685. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
  686. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  687. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
  688. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
  689. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  690. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
  691. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
  692. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  693. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
  694. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
  695. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  696. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
  697. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
  698. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  699. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
  700. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
  701. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  702. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
  703. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
  704. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  705. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
  706. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
  707. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  708. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
  709. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
  710. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  711. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
  712. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
  713. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  714. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
  715. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
  716. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  717. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
  718. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
  719. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  720. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
  721. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
  722. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  723. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
  724. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
  725. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  726. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
  727. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
  728. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  729. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
  730. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
  731. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/code.js +131 -0
  732. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
  733. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
  734. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  735. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
  736. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
  737. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  738. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
  739. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
  740. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  741. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
  742. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
  743. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/discriminator/index.js +100 -0
  744. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
  745. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
  746. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  747. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
  748. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
  749. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
  750. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
  751. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
  752. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  753. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
  754. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
  755. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  756. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
  757. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
  758. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  759. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
  760. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
  761. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
  762. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
  763. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
  764. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  765. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
  766. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
  767. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  768. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
  769. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
  770. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  771. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
  772. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
  773. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  774. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
  775. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
  776. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  777. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
  778. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
  779. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
  780. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
  781. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
  782. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
  783. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
  784. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
  785. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
  786. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
  787. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
  788. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
  789. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
  790. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
  791. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
  792. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
  793. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
  794. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  795. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
  796. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
  797. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  798. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
  799. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
  800. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
  801. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
  802. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
  803. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/properties.js +146 -0
  804. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
  805. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
  806. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
  807. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
  808. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
  809. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
  810. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
  811. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
  812. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
  813. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
  814. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
  815. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/values.js +48 -0
  816. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
  817. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
  818. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  819. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
  820. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
  821. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/next.js +8 -0
  822. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
  823. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
  824. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  825. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
  826. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
  827. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  828. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
  829. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
  830. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
  831. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
  832. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
  833. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  834. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
  835. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
  836. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  837. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
  838. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
  839. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/enum.js +47 -0
  840. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
  841. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
  842. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  843. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
  844. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
  845. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  846. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
  847. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
  848. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  849. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
  850. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
  851. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  852. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
  853. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
  854. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  855. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
  856. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
  857. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  858. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
  859. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
  860. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  861. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
  862. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
  863. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/pattern.js +24 -0
  864. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
  865. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
  866. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  867. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
  868. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
  869. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  870. package/node_modules/light-my-request/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
  871. package/node_modules/light-my-request/node_modules/ajv/lib/2019.ts +78 -0
  872. package/node_modules/light-my-request/node_modules/ajv/lib/2020.ts +72 -0
  873. package/node_modules/light-my-request/node_modules/ajv/lib/ajv.ts +67 -0
  874. package/node_modules/light-my-request/node_modules/ajv/lib/compile/codegen/code.ts +168 -0
  875. package/node_modules/light-my-request/node_modules/ajv/lib/compile/codegen/index.ts +832 -0
  876. package/node_modules/light-my-request/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  877. package/node_modules/light-my-request/node_modules/ajv/lib/compile/errors.ts +184 -0
  878. package/node_modules/light-my-request/node_modules/ajv/lib/compile/index.ts +324 -0
  879. package/node_modules/light-my-request/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
  880. package/node_modules/light-my-request/node_modules/ajv/lib/compile/jtd/serialize.ts +260 -0
  881. package/node_modules/light-my-request/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  882. package/node_modules/light-my-request/node_modules/ajv/lib/compile/names.ts +27 -0
  883. package/node_modules/light-my-request/node_modules/ajv/lib/compile/ref_error.ts +13 -0
  884. package/node_modules/light-my-request/node_modules/ajv/lib/compile/resolve.ts +149 -0
  885. package/node_modules/light-my-request/node_modules/ajv/lib/compile/rules.ts +50 -0
  886. package/node_modules/light-my-request/node_modules/ajv/lib/compile/util.ts +213 -0
  887. package/node_modules/light-my-request/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  888. package/node_modules/light-my-request/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  889. package/node_modules/light-my-request/node_modules/ajv/lib/compile/validate/dataType.ts +229 -0
  890. package/node_modules/light-my-request/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  891. package/node_modules/light-my-request/node_modules/ajv/lib/compile/validate/index.ts +573 -0
  892. package/node_modules/light-my-request/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
  893. package/node_modules/light-my-request/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
  894. package/node_modules/light-my-request/node_modules/ajv/lib/core.ts +887 -0
  895. package/node_modules/light-my-request/node_modules/ajv/lib/jtd.ts +129 -0
  896. package/node_modules/light-my-request/node_modules/ajv/lib/refs/data.json +13 -0
  897. package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  898. package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  899. package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  900. package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  901. package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  902. package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  903. package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  904. package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  905. package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
  906. package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
  907. package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
  908. package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
  909. package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  910. package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  911. package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  912. package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
  913. package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
  914. package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  915. package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  916. package/node_modules/light-my-request/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  917. package/node_modules/light-my-request/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  918. package/node_modules/light-my-request/node_modules/ajv/lib/runtime/equal.ts +7 -0
  919. package/node_modules/light-my-request/node_modules/ajv/lib/runtime/parseJson.ts +176 -0
  920. package/node_modules/light-my-request/node_modules/ajv/lib/runtime/quote.ts +31 -0
  921. package/node_modules/light-my-request/node_modules/ajv/lib/runtime/re2.ts +6 -0
  922. package/node_modules/light-my-request/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
  923. package/node_modules/light-my-request/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
  924. package/node_modules/light-my-request/node_modules/ajv/lib/runtime/uri.ts +6 -0
  925. package/node_modules/light-my-request/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
  926. package/node_modules/light-my-request/node_modules/ajv/lib/standalone/index.ts +100 -0
  927. package/node_modules/light-my-request/node_modules/ajv/lib/standalone/instance.ts +36 -0
  928. package/node_modules/light-my-request/node_modules/ajv/lib/types/index.ts +240 -0
  929. package/node_modules/light-my-request/node_modules/ajv/lib/types/json-schema.ts +186 -0
  930. package/node_modules/light-my-request/node_modules/ajv/lib/types/jtd-schema.ts +263 -0
  931. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
  932. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  933. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  934. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
  935. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
  936. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  937. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  938. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
  939. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
  940. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
  941. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
  942. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
  943. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
  944. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
  945. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
  946. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  947. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  948. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  949. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/code.ts +168 -0
  950. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  951. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  952. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
  953. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/discriminator/index.ts +110 -0
  954. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
  955. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
  956. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  957. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
  958. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  959. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  960. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  961. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  962. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
  963. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
  964. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  965. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
  966. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
  967. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
  968. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
  969. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
  970. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  971. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
  972. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
  973. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/properties.ts +177 -0
  974. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
  975. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
  976. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
  977. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/jtd/values.ts +55 -0
  978. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  979. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  980. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  981. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
  982. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
  983. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
  984. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  985. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/enum.ts +52 -0
  986. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  987. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  988. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  989. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
  990. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  991. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  992. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  993. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/pattern.ts +28 -0
  994. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  995. package/node_modules/light-my-request/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
  996. package/node_modules/light-my-request/node_modules/ajv/package.json +161 -0
  997. package/node_modules/light-my-request/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
  998. package/node_modules/light-my-request/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
  999. package/node_modules/light-my-request/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
  1000. package/node_modules/light-my-request/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
  1001. package/node_modules/light-my-request/node_modules/json-schema-traverse/LICENSE +21 -0
  1002. package/node_modules/light-my-request/node_modules/json-schema-traverse/README.md +95 -0
  1003. package/node_modules/light-my-request/node_modules/json-schema-traverse/index.d.ts +40 -0
  1004. package/node_modules/light-my-request/node_modules/json-schema-traverse/index.js +93 -0
  1005. package/node_modules/light-my-request/node_modules/json-schema-traverse/package.json +73 -0
  1006. package/node_modules/light-my-request/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
  1007. package/node_modules/light-my-request/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
  1008. package/node_modules/light-my-request/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
  1009. package/node_modules/light-my-request/package.json +26 -19
  1010. package/node_modules/light-my-request/test/benchmark.js +67 -0
  1011. package/node_modules/light-my-request/test/index.test-d.ts +6 -4
  1012. package/node_modules/light-my-request/test/test.js +103 -14
  1013. package/node_modules/lmdb-store/build/Makefile +1 -1
  1014. package/node_modules/lmdb-store/build/lmdb-store.target.mk +7 -7
  1015. package/node_modules/lodash/package.json +4 -1
  1016. package/node_modules/lru-cache/package.json +1 -0
  1017. package/node_modules/minipass/README.md +7 -7
  1018. package/node_modules/minipass/index.js +18 -3
  1019. package/node_modules/minipass/package.json +11 -11
  1020. package/node_modules/msgpackr-extract/build/Makefile +1 -1
  1021. package/node_modules/node-lmdb/build/Makefile +1 -1
  1022. package/node_modules/{socketcluster-client/node_modules/clone → pm2-sysmonit/node_modules/systeminformation}/LICENSE +7 -5
  1023. package/node_modules/pm2-sysmonit/node_modules/systeminformation/README.md +1075 -0
  1024. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/audio.js +219 -0
  1025. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/battery.js +309 -0
  1026. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/bluetooth.js +183 -0
  1027. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/cli.js +31 -0
  1028. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/cpu.js +1681 -0
  1029. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/docker.js +764 -0
  1030. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/dockerSocket.js +327 -0
  1031. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/filesystem.js +1270 -0
  1032. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/graphics.js +1062 -0
  1033. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/index.d.ts +988 -0
  1034. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/index.js +513 -0
  1035. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/internet.js +240 -0
  1036. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/memory.js +547 -0
  1037. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/network.js +1713 -0
  1038. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/osinfo.js +1161 -0
  1039. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/printer.js +212 -0
  1040. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/processes.js +1257 -0
  1041. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/system.js +829 -0
  1042. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/usb.js +305 -0
  1043. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/users.js +441 -0
  1044. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/util.js +1276 -0
  1045. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/virtualbox.js +107 -0
  1046. package/node_modules/pm2-sysmonit/node_modules/systeminformation/lib/wifi.js +747 -0
  1047. package/node_modules/pm2-sysmonit/node_modules/systeminformation/package.json +135 -0
  1048. package/node_modules/pumpify/node_modules/duplexify/.travis.yml +3 -0
  1049. package/node_modules/pumpify/node_modules/duplexify/index.js +1 -1
  1050. package/node_modules/pumpify/node_modules/duplexify/package.json +10 -10
  1051. package/node_modules/pumpify/node_modules/duplexify/test.js +1 -0
  1052. package/node_modules/require-from-string/index.js +34 -0
  1053. package/node_modules/require-from-string/license +21 -0
  1054. package/node_modules/require-from-string/package.json +61 -0
  1055. package/node_modules/require-from-string/readme.md +56 -0
  1056. package/node_modules/sc-errors/package.json +2 -1
  1057. package/node_modules/secure-json-parse/.github/workflows/ci.yml +16 -1
  1058. package/node_modules/secure-json-parse/index.d.ts +60 -0
  1059. package/node_modules/secure-json-parse/index.test-d.ts +30 -0
  1060. package/node_modules/secure-json-parse/package.json +16 -13
  1061. package/node_modules/send/HISTORY.md +10 -0
  1062. package/node_modules/send/README.md +4 -6
  1063. package/node_modules/send/index.js +7 -3
  1064. package/node_modules/send/node_modules/http-errors/HISTORY.md +11 -0
  1065. package/node_modules/send/node_modules/http-errors/README.md +12 -6
  1066. package/node_modules/send/node_modules/http-errors/index.js +35 -2
  1067. package/node_modules/send/node_modules/http-errors/package.json +24 -24
  1068. package/node_modules/send/node_modules/ms/index.js +3 -3
  1069. package/node_modules/send/node_modules/ms/license.md +1 -1
  1070. package/node_modules/send/node_modules/ms/package.json +16 -15
  1071. package/node_modules/send/node_modules/ms/readme.md +1 -2
  1072. package/node_modules/send/node_modules/setprototypeof/README.md +1 -1
  1073. package/node_modules/send/node_modules/setprototypeof/index.js +1 -1
  1074. package/node_modules/send/node_modules/setprototypeof/package.json +14 -12
  1075. package/node_modules/send/package.json +26 -26
  1076. package/node_modules/socketcluster-client/bower.json +1 -1
  1077. package/node_modules/socketcluster-client/index.js +1 -1
  1078. package/node_modules/socketcluster-client/node_modules/buffer/AUTHORS.md +8 -0
  1079. package/node_modules/socketcluster-client/node_modules/buffer/README.md +0 -6
  1080. package/node_modules/socketcluster-client/node_modules/buffer/index.d.ts +1 -1
  1081. package/node_modules/socketcluster-client/node_modules/buffer/index.js +49 -37
  1082. package/node_modules/socketcluster-client/node_modules/buffer/package.json +36 -22
  1083. package/node_modules/socketcluster-client/node_modules/ieee754/LICENSE +11 -0
  1084. package/node_modules/socketcluster-client/node_modules/ieee754/README.md +51 -0
  1085. package/node_modules/socketcluster-client/node_modules/ieee754/index.d.ts +10 -0
  1086. package/node_modules/socketcluster-client/node_modules/ieee754/index.js +85 -0
  1087. package/node_modules/socketcluster-client/node_modules/ieee754/package.json +87 -0
  1088. package/node_modules/socketcluster-client/node_modules/ws/LICENSE +21 -0
  1089. package/node_modules/socketcluster-client/node_modules/ws/README.md +389 -0
  1090. package/node_modules/socketcluster-client/node_modules/ws/index.js +9 -0
  1091. package/node_modules/socketcluster-client/node_modules/ws/lib/.DS_Store +0 -0
  1092. package/node_modules/socketcluster-client/node_modules/ws/lib/buffer-util.js +72 -0
  1093. package/node_modules/socketcluster-client/node_modules/ws/lib/constants.js +10 -0
  1094. package/node_modules/socketcluster-client/node_modules/ws/lib/event-target.js +170 -0
  1095. package/node_modules/socketcluster-client/node_modules/ws/lib/extension.js +211 -0
  1096. package/node_modules/socketcluster-client/node_modules/ws/lib/permessage-deflate.js +516 -0
  1097. package/node_modules/socketcluster-client/node_modules/ws/lib/receiver.js +513 -0
  1098. package/node_modules/socketcluster-client/node_modules/ws/lib/sender.js +401 -0
  1099. package/node_modules/socketcluster-client/node_modules/ws/lib/validation.js +29 -0
  1100. package/node_modules/socketcluster-client/node_modules/ws/lib/websocket-server.js +350 -0
  1101. package/node_modules/socketcluster-client/node_modules/ws/lib/websocket.js +821 -0
  1102. package/node_modules/socketcluster-client/node_modules/ws/package.json +81 -0
  1103. package/node_modules/socketcluster-client/package.json +17 -18
  1104. package/node_modules/socketcluster-client/socketcluster.js +12 -40
  1105. package/node_modules/socketcluster-client/socketcluster.min.js +2 -2
  1106. package/node_modules/string_decoder/package.json +0 -1
  1107. package/node_modules/systeminformation/CHANGELOG.md +3 -22
  1108. package/node_modules/systeminformation/README.md +1 -4
  1109. package/node_modules/systeminformation/lib/battery.js +26 -104
  1110. package/node_modules/systeminformation/lib/cpu.js +10 -13
  1111. package/node_modules/systeminformation/lib/docker.js +3 -3
  1112. package/node_modules/systeminformation/lib/filesystem.js +59 -86
  1113. package/node_modules/systeminformation/lib/graphics.js +22 -91
  1114. package/node_modules/systeminformation/lib/index.d.ts +11 -48
  1115. package/node_modules/systeminformation/lib/memory.js +1 -1
  1116. package/node_modules/systeminformation/lib/network.js +7 -17
  1117. package/node_modules/systeminformation/lib/osinfo.js +7 -10
  1118. package/node_modules/systeminformation/lib/processes.js +23 -35
  1119. package/node_modules/systeminformation/lib/system.js +5 -5
  1120. package/node_modules/systeminformation/lib/util.js +1 -41
  1121. package/node_modules/systeminformation/package.json +11 -12
  1122. package/node_modules/toidentifier/HISTORY.md +9 -0
  1123. package/node_modules/toidentifier/README.md +3 -3
  1124. package/node_modules/toidentifier/index.js +2 -0
  1125. package/node_modules/toidentifier/package.json +25 -21
  1126. package/node_modules/uri-js/package.json +2 -1
  1127. package/node_modules/util-deprecate/package.json +0 -1
  1128. package/node_modules/vizion/node_modules/async/CHANGELOG.md +275 -0
  1129. package/node_modules/vizion/node_modules/async/LICENSE +19 -0
  1130. package/node_modules/vizion/node_modules/async/README.md +56 -0
  1131. package/node_modules/vizion/node_modules/async/all.js +50 -0
  1132. package/node_modules/vizion/node_modules/async/allLimit.js +42 -0
  1133. package/node_modules/vizion/node_modules/async/allSeries.js +37 -0
  1134. package/node_modules/vizion/node_modules/async/any.js +52 -0
  1135. package/node_modules/vizion/node_modules/async/anyLimit.js +43 -0
  1136. package/node_modules/vizion/node_modules/async/anySeries.js +38 -0
  1137. package/node_modules/vizion/node_modules/async/apply.js +68 -0
  1138. package/node_modules/vizion/node_modules/async/applyEach.js +51 -0
  1139. package/node_modules/vizion/node_modules/async/applyEachSeries.js +37 -0
  1140. package/node_modules/vizion/node_modules/async/asyncify.js +110 -0
  1141. package/node_modules/vizion/node_modules/async/auto.js +289 -0
  1142. package/node_modules/vizion/node_modules/async/autoInject.js +170 -0
  1143. package/node_modules/vizion/node_modules/async/bower.json +17 -0
  1144. package/node_modules/vizion/node_modules/async/cargo.js +94 -0
  1145. package/node_modules/vizion/node_modules/async/compose.js +58 -0
  1146. package/node_modules/vizion/node_modules/async/concat.js +43 -0
  1147. package/node_modules/vizion/node_modules/async/concatLimit.js +65 -0
  1148. package/node_modules/vizion/node_modules/async/concatSeries.js +36 -0
  1149. package/node_modules/vizion/node_modules/async/constant.js +66 -0
  1150. package/node_modules/vizion/node_modules/async/detect.js +61 -0
  1151. package/node_modules/vizion/node_modules/async/detectLimit.js +48 -0
  1152. package/node_modules/vizion/node_modules/async/detectSeries.js +38 -0
  1153. package/node_modules/vizion/node_modules/async/dir.js +43 -0
  1154. package/node_modules/vizion/node_modules/async/dist/async.js +5609 -0
  1155. package/node_modules/vizion/node_modules/async/dist/async.min.js +2 -0
  1156. package/node_modules/vizion/node_modules/async/dist/async.min.map +1 -0
  1157. package/node_modules/vizion/node_modules/async/doDuring.js +66 -0
  1158. package/node_modules/vizion/node_modules/async/doUntil.js +39 -0
  1159. package/node_modules/vizion/node_modules/async/doWhilst.js +59 -0
  1160. package/node_modules/vizion/node_modules/async/during.js +76 -0
  1161. package/node_modules/vizion/node_modules/async/each.js +82 -0
  1162. package/node_modules/vizion/node_modules/async/eachLimit.js +45 -0
  1163. package/node_modules/vizion/node_modules/async/eachOf.js +111 -0
  1164. package/node_modules/vizion/node_modules/async/eachOfLimit.js +41 -0
  1165. package/node_modules/vizion/node_modules/async/eachOfSeries.js +35 -0
  1166. package/node_modules/vizion/node_modules/async/eachSeries.js +37 -0
  1167. package/node_modules/vizion/node_modules/async/ensureAsync.js +73 -0
  1168. package/node_modules/vizion/node_modules/async/every.js +50 -0
  1169. package/node_modules/vizion/node_modules/async/everyLimit.js +42 -0
  1170. package/node_modules/vizion/node_modules/async/everySeries.js +37 -0
  1171. package/node_modules/vizion/node_modules/async/filter.js +45 -0
  1172. package/node_modules/vizion/node_modules/async/filterLimit.js +37 -0
  1173. package/node_modules/vizion/node_modules/async/filterSeries.js +35 -0
  1174. package/node_modules/vizion/node_modules/async/find.js +61 -0
  1175. package/node_modules/vizion/node_modules/async/findLimit.js +48 -0
  1176. package/node_modules/vizion/node_modules/async/findSeries.js +38 -0
  1177. package/node_modules/vizion/node_modules/async/foldl.js +78 -0
  1178. package/node_modules/vizion/node_modules/async/foldr.js +44 -0
  1179. package/node_modules/vizion/node_modules/async/forEach.js +82 -0
  1180. package/node_modules/vizion/node_modules/async/forEachLimit.js +45 -0
  1181. package/node_modules/vizion/node_modules/async/forEachOf.js +111 -0
  1182. package/node_modules/vizion/node_modules/async/forEachOfLimit.js +41 -0
  1183. package/node_modules/vizion/node_modules/async/forEachOfSeries.js +35 -0
  1184. package/node_modules/vizion/node_modules/async/forEachSeries.js +37 -0
  1185. package/node_modules/vizion/node_modules/async/forever.js +65 -0
  1186. package/node_modules/vizion/node_modules/async/groupBy.js +54 -0
  1187. package/node_modules/vizion/node_modules/async/groupByLimit.js +71 -0
  1188. package/node_modules/vizion/node_modules/async/groupBySeries.js +37 -0
  1189. package/node_modules/vizion/node_modules/async/index.js +582 -0
  1190. package/node_modules/vizion/node_modules/async/inject.js +78 -0
  1191. package/node_modules/vizion/node_modules/async/internal/DoublyLinkedList.js +88 -0
  1192. package/node_modules/vizion/node_modules/async/internal/applyEach.js +38 -0
  1193. package/node_modules/vizion/node_modules/async/internal/breakLoop.js +9 -0
  1194. package/node_modules/vizion/node_modules/async/internal/consoleFunc.js +42 -0
  1195. package/node_modules/vizion/node_modules/async/internal/createTester.js +44 -0
  1196. package/node_modules/vizion/node_modules/async/internal/doLimit.js +12 -0
  1197. package/node_modules/vizion/node_modules/async/internal/doParallel.js +23 -0
  1198. package/node_modules/vizion/node_modules/async/internal/doParallelLimit.js +23 -0
  1199. package/node_modules/vizion/node_modules/async/internal/eachOfLimit.js +74 -0
  1200. package/node_modules/vizion/node_modules/async/internal/filter.js +75 -0
  1201. package/node_modules/vizion/node_modules/async/internal/findGetResult.js +10 -0
  1202. package/node_modules/vizion/node_modules/async/internal/getIterator.js +13 -0
  1203. package/node_modules/vizion/node_modules/async/internal/initialParams.js +21 -0
  1204. package/node_modules/vizion/node_modules/async/internal/iterator.js +58 -0
  1205. package/node_modules/vizion/node_modules/async/internal/map.js +35 -0
  1206. package/node_modules/vizion/node_modules/async/internal/notId.js +10 -0
  1207. package/node_modules/vizion/node_modules/async/internal/once.js +15 -0
  1208. package/node_modules/vizion/node_modules/async/internal/onlyOnce.js +15 -0
  1209. package/node_modules/vizion/node_modules/async/internal/parallel.js +42 -0
  1210. package/node_modules/vizion/node_modules/async/internal/queue.js +204 -0
  1211. package/node_modules/vizion/node_modules/async/internal/reject.js +21 -0
  1212. package/node_modules/vizion/node_modules/async/internal/setImmediate.js +42 -0
  1213. package/node_modules/vizion/node_modules/async/internal/slice.js +16 -0
  1214. package/node_modules/vizion/node_modules/async/internal/withoutIndex.js +12 -0
  1215. package/node_modules/vizion/node_modules/async/internal/wrapAsync.js +25 -0
  1216. package/node_modules/vizion/node_modules/async/log.js +41 -0
  1217. package/node_modules/vizion/node_modules/async/map.js +54 -0
  1218. package/node_modules/vizion/node_modules/async/mapLimit.js +37 -0
  1219. package/node_modules/vizion/node_modules/async/mapSeries.js +36 -0
  1220. package/node_modules/vizion/node_modules/async/mapValues.js +63 -0
  1221. package/node_modules/vizion/node_modules/async/mapValuesLimit.js +61 -0
  1222. package/node_modules/vizion/node_modules/async/mapValuesSeries.js +37 -0
  1223. package/node_modules/vizion/node_modules/async/memoize.js +101 -0
  1224. package/node_modules/vizion/node_modules/async/nextTick.js +51 -0
  1225. package/node_modules/vizion/node_modules/async/package.json +110 -0
  1226. package/node_modules/vizion/node_modules/async/parallel.js +90 -0
  1227. package/node_modules/vizion/node_modules/async/parallelLimit.js +40 -0
  1228. package/node_modules/vizion/node_modules/async/priorityQueue.js +98 -0
  1229. package/node_modules/vizion/node_modules/async/queue.js +130 -0
  1230. package/node_modules/vizion/node_modules/async/race.js +70 -0
  1231. package/node_modules/vizion/node_modules/async/reduce.js +78 -0
  1232. package/node_modules/vizion/node_modules/async/reduceRight.js +44 -0
  1233. package/node_modules/vizion/node_modules/async/reflect.js +81 -0
  1234. package/node_modules/vizion/node_modules/async/reflectAll.js +105 -0
  1235. package/node_modules/vizion/node_modules/async/reject.js +45 -0
  1236. package/node_modules/vizion/node_modules/async/rejectLimit.js +37 -0
  1237. package/node_modules/vizion/node_modules/async/rejectSeries.js +35 -0
  1238. package/node_modules/vizion/node_modules/async/retry.js +156 -0
  1239. package/node_modules/vizion/node_modules/async/retryable.js +65 -0
  1240. package/node_modules/vizion/node_modules/async/select.js +45 -0
  1241. package/node_modules/vizion/node_modules/async/selectLimit.js +37 -0
  1242. package/node_modules/vizion/node_modules/async/selectSeries.js +35 -0
  1243. package/node_modules/vizion/node_modules/async/seq.js +91 -0
  1244. package/node_modules/vizion/node_modules/async/series.js +85 -0
  1245. package/node_modules/vizion/node_modules/async/setImmediate.js +45 -0
  1246. package/node_modules/vizion/node_modules/async/some.js +52 -0
  1247. package/node_modules/vizion/node_modules/async/someLimit.js +43 -0
  1248. package/node_modules/vizion/node_modules/async/someSeries.js +38 -0
  1249. package/node_modules/vizion/node_modules/async/sortBy.js +91 -0
  1250. package/node_modules/vizion/node_modules/async/timeout.js +89 -0
  1251. package/node_modules/vizion/node_modules/async/times.js +50 -0
  1252. package/node_modules/vizion/node_modules/async/timesLimit.js +42 -0
  1253. package/node_modules/vizion/node_modules/async/timesSeries.js +32 -0
  1254. package/node_modules/vizion/node_modules/async/transform.js +87 -0
  1255. package/node_modules/vizion/node_modules/async/tryEach.js +81 -0
  1256. package/node_modules/vizion/node_modules/async/unmemoize.js +25 -0
  1257. package/node_modules/vizion/node_modules/async/until.js +41 -0
  1258. package/node_modules/vizion/node_modules/async/waterfall.js +113 -0
  1259. package/node_modules/vizion/node_modules/async/whilst.js +72 -0
  1260. package/node_modules/vizion/node_modules/async/wrapSync.js +110 -0
  1261. package/node_modules/vizion/package.json +3 -1
  1262. package/node_modules/ws/package.json +0 -1
  1263. package/package.json +62 -62
  1264. package/security/JWTObjects.jsc +0 -0
  1265. package/security/auth.jsc +0 -0
  1266. package/security/cryptoHash.jsc +0 -0
  1267. package/security/data_objects/PermissionAttributeResponseObject.jsc +0 -0
  1268. package/security/data_objects/PermissionResponseObject.jsc +0 -0
  1269. package/security/data_objects/PermissionTableResponseObject.jsc +0 -0
  1270. package/security/permissionsTranslator.jsc +0 -0
  1271. package/security/role.jsc +0 -0
  1272. package/security/tokenAuthentication.jsc +0 -0
  1273. package/security/user.jsc +0 -0
  1274. package/server/ClusteringOriginObject.jsc +0 -0
  1275. package/server/JobObject.jsc +0 -0
  1276. package/server/clustering/ClusterStatusObject.jsc +0 -0
  1277. package/server/clustering/NodeObject.jsc +0 -0
  1278. package/server/clustering/clusterUtilities.jsc +0 -0
  1279. package/server/configuration.jsc +0 -0
  1280. package/server/customFunctions/customFunctionsServer.jsc +0 -0
  1281. package/server/customFunctions/helpers/getCORSOptions.jsc +0 -0
  1282. package/server/customFunctions/helpers/getHeaderTimeoutConfig.jsc +0 -0
  1283. package/server/customFunctions/helpers/getServerOptions.jsc +0 -0
  1284. package/server/customFunctions/operations.jsc +0 -0
  1285. package/server/customFunctions/operationsValidation.jsc +0 -0
  1286. package/server/harperdb/hdbServer.jsc +0 -0
  1287. package/server/ipc/IPCClient.jsc +0 -0
  1288. package/server/ipc/hdbIpcServer.jsc +0 -0
  1289. package/server/ipc/serverHandlers.jsc +0 -0
  1290. package/server/ipc/utility/IPCEventObject.jsc +0 -0
  1291. package/server/ipc/utility/ipcUtils.jsc +0 -0
  1292. package/server/jobRunner.jsc +0 -0
  1293. package/server/jobThread.jsc +0 -0
  1294. package/server/jobs.jsc +0 -0
  1295. package/server/serverHelpers/OperationFunctionObject.jsc +0 -0
  1296. package/server/serverHelpers/requestTimePlugin.jsc +0 -0
  1297. package/server/serverHelpers/serverHandlers.jsc +0 -0
  1298. package/server/serverHelpers/serverUtilities.jsc +0 -0
  1299. package/server/socketcluster/Server.jsc +0 -0
  1300. package/server/socketcluster/broker.jsc +0 -0
  1301. package/server/socketcluster/connector/HDBSocketConnector.jsc +0 -0
  1302. package/server/socketcluster/connector/InterNodeSocketConnector.jsc +0 -0
  1303. package/server/socketcluster/connector/SocketConnector.jsc +0 -0
  1304. package/server/socketcluster/connector/spawnSCConnection.jsc +0 -0
  1305. package/server/socketcluster/decisionMatrix/CoreDecisionMatrix.jsc +0 -0
  1306. package/server/socketcluster/decisionMatrix/DecisionMatrixIF.jsc +0 -0
  1307. package/server/socketcluster/decisionMatrix/rules/AssignToHdbChildWorkerRule.jsc +0 -0
  1308. package/server/socketcluster/decisionMatrix/rules/CallRoomMsgHandlerRule.jsc +0 -0
  1309. package/server/socketcluster/decisionMatrix/rules/CleanDataObjectRule.jsc +0 -0
  1310. package/server/socketcluster/decisionMatrix/rules/CommandCollection.jsc +0 -0
  1311. package/server/socketcluster/decisionMatrix/rules/DummyRule.jsc +0 -0
  1312. package/server/socketcluster/decisionMatrix/rules/RulesIF.jsc +0 -0
  1313. package/server/socketcluster/decisionMatrix/rules/StripHdbHeaderRule.jsc +0 -0
  1314. package/server/socketcluster/decisionMatrix/rules/TestRule.jsc +0 -0
  1315. package/server/socketcluster/handlers/NodeConnectionsHandler.jsc +0 -0
  1316. package/server/socketcluster/handlers/SCServer.jsc +0 -0
  1317. package/server/socketcluster/handlers/ServerSocket.jsc +0 -0
  1318. package/server/socketcluster/interNodeConnectionLauncher.jsc +0 -0
  1319. package/server/socketcluster/messageQueue/MessageQueueIF.jsc +0 -0
  1320. package/server/socketcluster/middleware/AuthMiddleware.jsc +0 -0
  1321. package/server/socketcluster/middleware/ConnectionNameCheckMiddleware.jsc +0 -0
  1322. package/server/socketcluster/middleware/GenericMiddleware.jsc +0 -0
  1323. package/server/socketcluster/middleware/MessagePrepMiddleware.jsc +0 -0
  1324. package/server/socketcluster/middleware/MiddlewareFactory.jsc +0 -0
  1325. package/server/socketcluster/middleware/MiddlewareIF.jsc +0 -0
  1326. package/server/socketcluster/middleware/OriginatorCheckMiddleware.jsc +0 -0
  1327. package/server/socketcluster/middleware/RequestDataValidMiddleware.jsc +0 -0
  1328. package/server/socketcluster/middleware/StampOriginatorMiddleware.jsc +0 -0
  1329. package/server/socketcluster/middleware/StampRequestMiddleware.jsc +0 -0
  1330. package/server/socketcluster/observer/EventableIF.jsc +0 -0
  1331. package/server/socketcluster/room/AddUserRoom.jsc +0 -0
  1332. package/server/socketcluster/room/AlterUserRoom.jsc +0 -0
  1333. package/server/socketcluster/room/CoreRoom.jsc +0 -0
  1334. package/server/socketcluster/room/CreateAttributeRoom.jsc +0 -0
  1335. package/server/socketcluster/room/CreateSchemaRoom.jsc +0 -0
  1336. package/server/socketcluster/room/CreateTableRoom.jsc +0 -0
  1337. package/server/socketcluster/room/DropUserRoom.jsc +0 -0
  1338. package/server/socketcluster/room/HDBNodeRoom.jsc +0 -0
  1339. package/server/socketcluster/room/RoomIF.jsc +0 -0
  1340. package/server/socketcluster/room/RoomMessageObjects.jsc +0 -0
  1341. package/server/socketcluster/room/UsersRoom.jsc +0 -0
  1342. package/server/socketcluster/room/WatchHDBWorkersRoom.jsc +0 -0
  1343. package/server/socketcluster/room/WorkerRoom.jsc +0 -0
  1344. package/server/socketcluster/room/roomFactory.jsc +0 -0
  1345. package/server/socketcluster/socketClusterObjects.jsc +0 -0
  1346. package/server/socketcluster/types.jsc +0 -0
  1347. package/server/socketcluster/util/clusterData.jsc +0 -0
  1348. package/server/socketcluster/util/socketClusterUtils.jsc +0 -0
  1349. package/server/socketcluster/worker/ClusterWorker.jsc +0 -0
  1350. package/server/socketcluster/worker/WorkerIF.jsc +0 -0
  1351. package/server/socketcluster/worker/WorkerObjects.jsc +0 -0
  1352. package/server/transactToClusteringUtilities.jsc +0 -0
  1353. package/sqlTranslator/SelectValidator.jsc +0 -0
  1354. package/sqlTranslator/alasqlFunctionImporter.jsc +0 -0
  1355. package/sqlTranslator/conditionPatterns.jsc +0 -0
  1356. package/sqlTranslator/deleteTranslator.jsc +0 -0
  1357. package/sqlTranslator/index.jsc +0 -0
  1358. package/sqlTranslator/sql_statement_bucket.jsc +0 -0
  1359. package/upgrade/EnvironmentVariable.jsc +0 -0
  1360. package/upgrade/UpgradeDirective.jsc +0 -0
  1361. package/upgrade/UpgradeObjects.jsc +0 -0
  1362. package/upgrade/directives/3-0-0.jsc +0 -0
  1363. package/upgrade/directives/3-1-0.jsc +0 -0
  1364. package/upgrade/directives/directivesController.jsc +0 -0
  1365. package/upgrade/directives/upgrade_scripts/3_0_0_reindex_script.jsc +0 -0
  1366. package/upgrade/directivesManager.jsc +0 -0
  1367. package/upgrade/lmdb/nodeLMDB/DBIDefinition.jsc +0 -0
  1368. package/upgrade/lmdb/nodeLMDB/OpenDBIObject.jsc +0 -0
  1369. package/upgrade/lmdb/nodeLMDB/OpenEnvironmentObject.jsc +0 -0
  1370. package/upgrade/lmdb/nodeLMDB/commonErrors.jsc +0 -0
  1371. package/upgrade/lmdb/nodeLMDB/commonUtility.jsc +0 -0
  1372. package/upgrade/lmdb/nodeLMDB/environmentUtility.jsc +0 -0
  1373. package/upgrade/lmdb/nodeLMDB/terms.jsc +0 -0
  1374. package/upgrade/upgradePrompt.jsc +0 -0
  1375. package/upgrade/upgradeUtilities.jsc +0 -0
  1376. package/utility/AWS/AWSConnector.jsc +0 -0
  1377. package/utility/OperationFunctionCaller.jsc +0 -0
  1378. package/utility/common_utils.jsc +0 -0
  1379. package/utility/environment/SystemInformationObject.jsc +0 -0
  1380. package/utility/environment/SystemInformationOperation.jsc +0 -0
  1381. package/utility/environment/environmentManager.jsc +0 -0
  1382. package/utility/environment/systemInformation.jsc +0 -0
  1383. package/utility/errors/commonErrors.jsc +0 -0
  1384. package/utility/errors/hdbError.jsc +0 -0
  1385. package/utility/functions/date/dateFunctions.jsc +0 -0
  1386. package/utility/functions/geo.jsc +0 -0
  1387. package/utility/functions/math/avg.jsc +0 -0
  1388. package/utility/functions/math/count.jsc +0 -0
  1389. package/utility/functions/sql/alaSQLExtension.jsc +0 -0
  1390. package/utility/functions/string/compare.jsc +0 -0
  1391. package/utility/globalSchema.jsc +0 -0
  1392. package/utility/hdbTerms.jsc +0 -0
  1393. package/utility/install/checkJWTTokensExist.jsc +0 -0
  1394. package/utility/install/installer.jsc +0 -0
  1395. package/utility/install_user_permission.jsc +0 -0
  1396. package/utility/lmdb/DBIDefinition.jsc +0 -0
  1397. package/utility/lmdb/DeleteRecordsResponseObject.jsc +0 -0
  1398. package/utility/lmdb/InsertRecordsResponseObject.jsc +0 -0
  1399. package/utility/lmdb/OpenDBIObject.jsc +0 -0
  1400. package/utility/lmdb/OpenEnvironmentObject.jsc +0 -0
  1401. package/utility/lmdb/UpdateRecordsResponseObject.jsc +0 -0
  1402. package/utility/lmdb/UpsertRecordsResponseObject.jsc +0 -0
  1403. package/utility/lmdb/cleanLMDBMap.jsc +0 -0
  1404. package/utility/lmdb/commonUtility.jsc +0 -0
  1405. package/utility/lmdb/deleteUtility.jsc +0 -0
  1406. package/utility/lmdb/environmentUtility.jsc +0 -0
  1407. package/utility/lmdb/searchCursorFunctions.jsc +0 -0
  1408. package/utility/lmdb/searchUtility.jsc +0 -0
  1409. package/utility/lmdb/terms.jsc +0 -0
  1410. package/utility/lmdb/writeUtility.jsc +0 -0
  1411. package/utility/logging/harper_logger.jsc +0 -0
  1412. package/utility/mount_hdb.jsc +0 -0
  1413. package/utility/operation_authorization.jsc +0 -0
  1414. package/utility/password.jsc +0 -0
  1415. package/utility/pm2/servicesConfig.jsc +0 -0
  1416. package/utility/pm2/utilityFunctions.jsc +0 -0
  1417. package/utility/psList.jsc +0 -0
  1418. package/utility/registration/hdb_license.jsc +0 -0
  1419. package/utility/registration/licenseObjects.jsc +0 -0
  1420. package/utility/registration/registrationHandler.jsc +0 -0
  1421. package/utility/scripts/restartHdb.jsc +0 -0
  1422. package/utility/signalling.jsc +0 -0
  1423. package/utility/system_info.jsc +0 -0
  1424. package/validation/bulkDeleteValidator.jsc +0 -0
  1425. package/validation/check_permissions.jsc +0 -0
  1426. package/validation/clustering/configureValidator.jsc +0 -0
  1427. package/validation/common_validators.jsc +0 -0
  1428. package/validation/conditionalDeleteValidator.jsc +0 -0
  1429. package/validation/deleteValidator.jsc +0 -0
  1430. package/validation/fileLoadValidator.jsc +0 -0
  1431. package/validation/insertValidator.jsc +0 -0
  1432. package/validation/nodeSubscriptionValidator.jsc +0 -0
  1433. package/validation/nodeValidator.jsc +0 -0
  1434. package/validation/readLogValidator.jsc +0 -0
  1435. package/validation/registration/license_key_object.jsc +0 -0
  1436. package/validation/role_validation.jsc +0 -0
  1437. package/validation/schemaMetadataValidator.jsc +0 -0
  1438. package/validation/schema_validator.jsc +0 -0
  1439. package/validation/searchValidator.jsc +0 -0
  1440. package/validation/user_validation.jsc +0 -0
  1441. package/validation/validationWrapper.jsc +0 -0
  1442. package/node_modules/axios/lib/helpers/isAxiosError.js +0 -11
  1443. package/node_modules/fastify-helmet/.github/stale.yml +0 -21
  1444. package/node_modules/fastify-static/.github/stale.yml +0 -21
  1445. package/node_modules/fastify-static/example/public2/test.css +0 -4
  1446. package/node_modules/fastify-static/example/public2/test.html +0 -8
  1447. package/node_modules/fastify-static/example/server-multi-dir-list.js +0 -49
  1448. package/node_modules/fastify-static/node_modules/glob/changelog.md +0 -67
  1449. package/node_modules/fastify-static/test/static/.example +0 -1
  1450. package/node_modules/fastify-static/test/static/a .md +0 -1
  1451. package/node_modules/fastify-static/test/static2/bar.html +0 -3
  1452. package/node_modules/fastify-static/test/static2/index.html +0 -3
  1453. package/node_modules/light-my-request/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  1454. package/node_modules/light-my-request/node_modules/readable-stream/GOVERNANCE.md +0 -136
  1455. package/node_modules/light-my-request/node_modules/readable-stream/LICENSE +0 -47
  1456. package/node_modules/light-my-request/node_modules/readable-stream/README.md +0 -106
  1457. package/node_modules/light-my-request/node_modules/readable-stream/errors-browser.js +0 -127
  1458. package/node_modules/light-my-request/node_modules/readable-stream/errors.js +0 -116
  1459. package/node_modules/light-my-request/node_modules/readable-stream/experimentalWarning.js +0 -17
  1460. package/node_modules/light-my-request/node_modules/readable-stream/lib/_stream_duplex.js +0 -139
  1461. package/node_modules/light-my-request/node_modules/readable-stream/lib/_stream_passthrough.js +0 -39
  1462. package/node_modules/light-my-request/node_modules/readable-stream/lib/_stream_readable.js +0 -1124
  1463. package/node_modules/light-my-request/node_modules/readable-stream/lib/_stream_transform.js +0 -201
  1464. package/node_modules/light-my-request/node_modules/readable-stream/lib/_stream_writable.js +0 -697
  1465. package/node_modules/light-my-request/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -207
  1466. package/node_modules/light-my-request/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -210
  1467. package/node_modules/light-my-request/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -105
  1468. package/node_modules/light-my-request/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -104
  1469. package/node_modules/light-my-request/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
  1470. package/node_modules/light-my-request/node_modules/readable-stream/lib/internal/streams/from.js +0 -64
  1471. package/node_modules/light-my-request/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -97
  1472. package/node_modules/light-my-request/node_modules/readable-stream/lib/internal/streams/state.js +0 -27
  1473. package/node_modules/light-my-request/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  1474. package/node_modules/light-my-request/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  1475. package/node_modules/light-my-request/node_modules/readable-stream/package.json +0 -100
  1476. package/node_modules/light-my-request/node_modules/readable-stream/readable-browser.js +0 -9
  1477. package/node_modules/light-my-request/node_modules/readable-stream/readable.js +0 -16
  1478. package/node_modules/socketcluster-client/node_modules/clone/.npmignore +0 -4
  1479. package/node_modules/socketcluster-client/node_modules/clone/README.md +0 -178
  1480. package/node_modules/socketcluster-client/node_modules/clone/clone.iml +0 -10
  1481. package/node_modules/socketcluster-client/node_modules/clone/clone.js +0 -251
  1482. package/node_modules/socketcluster-client/node_modules/clone/package.json +0 -161
  1483. package/node_modules/socketcluster-client/node_modules/sc-errors/README.md +0 -2
  1484. package/node_modules/socketcluster-client/node_modules/sc-errors/decycle.js +0 -79
  1485. package/node_modules/socketcluster-client/node_modules/sc-errors/index.js +0 -340
  1486. package/node_modules/socketcluster-client/node_modules/sc-errors/package.json +0 -55
@@ -1,4 +1,4 @@
1
1
  /**
2
- * SocketCluster JavaScript client v14.3.1
2
+ * SocketCluster JavaScript client v14.2.2
3
3
  */
4
- !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).socketCluster=t()}}(function(){return function i(s,a,c){function u(e,t){if(!a[e]){if(!s[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(h)return h(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var o=a[e]={exports:{}};s[e][0].call(o.exports,function(t){return u(s[e][1][t]||t)},o,o.exports,i,s,a,c)}return a[e].exports}for(var h="function"==typeof require&&require,t=0;t<c.length;t++)u(c[t]);return u}({1:[function(t,e){var r=t("./lib/scclientsocket"),n=t("./lib/factory");e.exports.factory=n,e.exports.SCClientSocket=r,e.exports.Emitter=t("component-emitter"),e.exports.create=function(t){return n.create(t)},e.exports.connect=e.exports.create,e.exports.destroy=function(t){return n.destroy(t)},e.exports.clients=n.clients,e.exports.version="14.3.1"},{"./lib/factory":3,"./lib/scclientsocket":5,"component-emitter":11}],2:[function(t,e){(function(o){function t(){this._internalStorage={},this.isLocalStorageEnabled=this._checkLocalStorageEnabled()}t.prototype._checkLocalStorageEnabled=function(){var e;try{o.localStorage,o.localStorage.setItem("__scLocalStorageTest",1),o.localStorage.removeItem("__scLocalStorageTest")}catch(t){e=t}return!e},t.prototype.saveToken=function(t,e,r,n){this.isLocalStorageEnabled&&o.localStorage?o.localStorage.setItem(t,e):this._internalStorage[t]=e,n&&n(null,e)},t.prototype.removeToken=function(t,e){var r;this.loadToken(t,function(t,e){r=e}),this.isLocalStorageEnabled&&o.localStorage?o.localStorage.removeItem(t):delete this._internalStorage[t],e&&e(null,r)},t.prototype.loadToken=function(t,e){e(null,this.isLocalStorageEnabled&&o.localStorage?o.localStorage.getItem(t):this._internalStorage[t]||null)},e.exports.AuthEngine=t}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(e,r){(function(i){var s=e("./scclientsocket"),t=e("sc-errors"),a=e("uuid"),c=t.InvalidArgumentsError,u={};r.exports={create:function(t){if((t=t||{}).host&&!t.host.match(/[^:]+:\d{2,5}/))throw new c('The host option should include both the hostname and the port number in the format "hostname:port"');if(t.host&&t.hostname)throw new c('The host option should already include the hostname and the port number in the format "hostname:port" - Because of this, you should never use host and hostname options together');if(t.host&&t.port)throw new c('The host option should already include the hostname and the port number in the format "hostname:port" - Because of this, you should never use host and port options together');var e=i.location&&"https:"===location.protocol,r={port:function(t,e){var r=null==t.secure?e:t.secure;return t.port||(i.location&&location.port?location.port:r?443:80)}(t,e),hostname:i.location&&location.hostname||"localhost",path:"/socketcluster/",secure:e,autoConnect:!0,autoReconnect:!0,autoSubscribeOnConnect:!0,connectTimeout:2e4,ackTimeout:1e4,timestampRequests:!1,timestampParam:"t",authEngine:null,authTokenName:"socketCluster.authToken",binaryType:"arraybuffer",multiplex:!0,pubSubBatchDuration:null,cloneData:!1};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);if(r.clientMap=u,!1!==r.multiplex)return r.clientId=function(t){var e=t.secure?"https://":"http://",r="";if(t.query)if("string"==typeof t.query)r=t.query;else{var n=[],o=t.query;for(var i in o)o.hasOwnProperty(i)&&n.push(i+"="+o[i]);n.length&&(r="?"+n.join("&"))}return e+(t.host?t.host:t.hostname+":"+t.port)+t.path+r}(r),u[r.clientId]?r.autoConnect&&u[r.clientId].connect():u[r.clientId]=new s(r),u[r.clientId];r.clientId=a.v4();var o=new s(r);return u[r.clientId]=o},destroy:function(t){t.destroy()},clients:u}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./scclientsocket":5,"sc-errors":20,uuid:22}],4:[function(t,e){function r(t,e){this.socket=t,this.id=e,this.sent=!1}var o=t("sc-errors"),n=o.InvalidActionError;r.prototype._respond=function(t){if(this.sent)throw new n("Response "+this.id+" has already been sent");this.sent=!0,this.socket.send(this.socket.encode(t))},r.prototype.end=function(t){if(this.id){var e={rid:this.id};void 0!==t&&(e.data=t),this._respond(e)}},r.prototype.error=function(t,e){if(this.id){var r=o.dehydrateError(t),n={rid:this.id,error:r};void 0!==e&&(n.data=e),this._respond(n)}},r.prototype.callback=function(t,e){t?this.error(t,e):this.end(e)},e.exports.Response=r},{"sc-errors":20}],5:[function(v,E){(function(s){var a=v("component-emitter"),n=v("sc-channel").SCChannel;v("./response").Response;function i(t){var e=this;function r(t){if(e[t]>n)throw new d("The "+t+" value provided exceeded the maximum amount allowed")}a.call(this),this.id=null,this.state=this.CLOSED,this.authState=this.UNAUTHENTICATED,this.signedAuthToken=null,this.authToken=null,this.pendingReconnect=!1,this.pendingReconnectTimeout=null,this.preparingPendingSubscriptions=!1,this.clientId=t.clientId,this.connectTimeout=t.connectTimeout,this.ackTimeout=t.ackTimeout,this.channelPrefix=t.channelPrefix||null,this.disconnectOnUnload=null==t.disconnectOnUnload||t.disconnectOnUnload,this.authTokenName=t.authTokenName,this.pingTimeout=this.ackTimeout,this.pingTimeoutDisabled=!!t.pingTimeoutDisabled,this.active=!0,this._clientMap=t.clientMap||{};var n=Math.pow(2,31)-1;if(r("connectTimeout"),r("ackTimeout"),this._localEvents={connect:1,connectAbort:1,close:1,disconnect:1,message:1,error:1,raw:1,kickOut:1,subscribe:1,unsubscribe:1,subscribeStateChange:1,authStateChange:1,authenticate:1,deauthenticate:1,removeAuthToken:1,subscribeRequest:1},this.connectAttempts=0,this._emitBuffer=new p,this.channels={},this.options=t,this._cid=1,this.options.callIdGenerator=function(){return e._cid++},this.options.autoReconnect){null==this.options.autoReconnectOptions&&(this.options.autoReconnectOptions={});var o=this.options.autoReconnectOptions;null==o.initialDelay&&(o.initialDelay=1e4),null==o.randomness&&(o.randomness=1e4),null==o.multiplier&&(o.multiplier=1.5),null==o.maxDelay&&(o.maxDelay=6e4)}if(null==this.options.subscriptionRetryOptions&&(this.options.subscriptionRetryOptions={}),this.options.authEngine?this.auth=this.options.authEngine:this.auth=new c,this.options.codecEngine?this.codec=this.options.codecEngine:this.codec=u,this.options.protocol){var i=new d('The "protocol" option does not affect socketcluster-client. If you want to utilize SSL/TLS - use "secure" option instead');this._onSCError(i)}this.options.path=this.options.path.replace(/\/$/,"")+"/",this.options.query=t.query||{},"string"==typeof this.options.query&&(this.options.query=h.parse(this.options.query)),this._channelEmitter=new a,this._unloadHandler=function(){e.disconnect()},b&&this.disconnectOnUnload&&s.addEventListener&&s.addEventListener("beforeunload",this._unloadHandler,!1),(this._clientMap[this.clientId]=this).options.autoConnect&&this.connect()}var c=v("./auth").AuthEngine,u=v("sc-formatter"),e=v("./sctransport").SCTransport,h=v("querystring"),p=v("linked-list"),r=v("buffer/").Buffer,l=v("clone"),f=v("sc-errors"),d=f.InvalidArgumentsError,t=f.InvalidMessageError,o=f.InvalidActionError,y=f.SocketProtocolError,m=f.TimeoutError,g=f.BadConnectionError,b="undefined"!=typeof window;i.prototype=Object.create(a.prototype),i.CONNECTING=i.prototype.CONNECTING=e.prototype.CONNECTING,i.OPEN=i.prototype.OPEN=e.prototype.OPEN,i.CLOSED=i.prototype.CLOSED=e.prototype.CLOSED,i.AUTHENTICATED=i.prototype.AUTHENTICATED="authenticated",i.UNAUTHENTICATED=i.prototype.UNAUTHENTICATED="unauthenticated",i.PENDING=i.prototype.PENDING="pending",i.ignoreStatuses=f.socketProtocolIgnoreStatuses,i.errorStatuses=f.socketProtocolErrorStatuses,i.prototype._privateEventHandlerMap={"#publish":function(t){var e=this._undecorateChannelName(t.channel);this.isSubscribed(e,!0)&&this._channelEmitter.emit(e,t.data)},"#kickOut":function(t){var e=this._undecorateChannelName(t.channel),r=this.channels[e];r&&(a.prototype.emit.call(this,"kickOut",t.message,e),r.emit("kickOut",t.message,e),this._triggerChannelUnsubscribe(r))},"#setAuthToken":function(e,r){var n=this;if(e){this.auth.saveToken(this.authTokenName,e.token,{},function(t){t?(r.error(t),n._onSCError(t)):(n._changeToAuthenticatedState(e.token),r.end())})}else r.error(new t("No token data provided by #setAuthToken event"))},"#removeAuthToken":function(t,r){var n=this;this.auth.removeToken(this.authTokenName,function(t,e){t?(r.error(t),n._onSCError(t)):(a.prototype.emit.call(n,"removeAuthToken",e),n._changeToUnauthenticatedStateAndClearTokens(),r.end())})},"#disconnect":function(t){this.transport.close(t.code,t.data)}},i.prototype.getState=function(){return this.state},i.prototype.getBytesReceived=function(){return this.transport.getBytesReceived()},i.prototype.deauthenticate=function(r){var n=this;this.auth.removeToken(this.authTokenName,function(t,e){t?n._onSCError(t):(a.prototype.emit.call(n,"removeAuthToken",e),n.state!==n.CLOSED&&n.emit("#removeAuthToken"),n._changeToUnauthenticatedStateAndClearTokens()),r&&r(t)})},i.prototype.connect=i.prototype.open=function(){var n=this;if(this.active)this.state===this.CLOSED&&(this.pendingReconnect=!1,this.pendingReconnectTimeout=null,clearTimeout(this._reconnectTimeoutRef),this.state=this.CONNECTING,a.prototype.emit.call(this,"connecting"),this.transport&&this.transport.off(),this.transport=new e(this.auth,this.codec,this.options),this.transport.on("open",function(t){n.state=n.OPEN,n._onSCOpen(t)}),this.transport.on("error",function(t){n._onSCError(t)}),this.transport.on("close",function(t,e){n.state=n.CLOSED,n._onSCClose(t,e)}),this.transport.on("openAbort",function(t,e){n.state=n.CLOSED,n._onSCClose(t,e,!0)}),this.transport.on("event",function(t,e,r){n._onSCEvent(t,e,r)}));else{var t=new o("Cannot connect a destroyed client");this._onSCError(t)}},i.prototype.reconnect=function(t,e){this.disconnect(t,e),this.connect()},i.prototype.disconnect=function(t,e){if("number"!=typeof(t=t||1e3))throw new d("If specified, the code argument must be a number");this.state===this.OPEN||this.state===this.CONNECTING?this.transport.close(t,e):(this.pendingReconnect=!1,this.pendingReconnectTimeout=null,clearTimeout(this._reconnectTimeoutRef))},i.prototype.destroy=function(t,e){b&&s.removeEventListener&&s.removeEventListener("beforeunload",this._unloadHandler,!1),this.active=!1,this.disconnect(t,e),delete this._clientMap[this.clientId]},i.prototype._changeToUnauthenticatedStateAndClearTokens=function(){if(this.authState!==this.UNAUTHENTICATED){var t=this.authState,e=this.signedAuthToken;this.authState=this.UNAUTHENTICATED,this.signedAuthToken=null,this.authToken=null;var r={oldState:t,newState:this.authState};a.prototype.emit.call(this,"authStateChange",r),a.prototype.emit.call(this,"deauthenticate",e)}},i.prototype._changeToAuthenticatedState=function(t){if(this.signedAuthToken=t,this.authToken=this._extractAuthTokenData(t),this.authState!==this.AUTHENTICATED){var e=this.authState;this.authState=this.AUTHENTICATED;var r={oldState:e,newState:this.authState,signedAuthToken:t,authToken:this.authToken};this.preparingPendingSubscriptions||this.processPendingSubscriptions(),a.prototype.emit.call(this,"authStateChange",r)}a.prototype.emit.call(this,"authenticate",t)},i.prototype.decodeBase64=function(t){return r.from(t,"base64").toString("utf8")},i.prototype.encodeBase64=function(t){return r.from(t,"utf8").toString("base64")},i.prototype._extractAuthTokenData=function(t){var e=(t||"").split(".")[1];if(null!=e){var r=e;try{return r=this.decodeBase64(r),JSON.parse(r)}catch(t){return r}}return null},i.prototype.getAuthToken=function(){return this.authToken},i.prototype.getSignedAuthToken=function(){return this.signedAuthToken},i.prototype.authenticate=function(r,n){var o=this;this.emit("#authenticate",r,function(t,e){e&&null!=e.isAuthenticated?e.authError&&(e.authError=f.hydrateError(e.authError)):e={isAuthenticated:o.authState,authError:null},t?("BadConnectionError"!==t.name&&"TimeoutError"!==t.name&&o._changeToUnauthenticatedStateAndClearTokens(),n&&n(t,e)):o.auth.saveToken(o.authTokenName,r,{},function(t){t&&o._onSCError(t),e.isAuthenticated?o._changeToAuthenticatedState(r):o._changeToUnauthenticatedStateAndClearTokens(),n&&n(t,e)})})},i.prototype._tryReconnect=function(t){var e,r=this,n=this.connectAttempts++,o=this.options.autoReconnectOptions;if(null==t||0<n){var i=Math.round(o.initialDelay+(o.randomness||0)*Math.random());e=Math.round(i*Math.pow(o.multiplier,n))}else e=t;e>o.maxDelay&&(e=o.maxDelay),clearTimeout(this._reconnectTimeoutRef),this.pendingReconnect=!0,this.pendingReconnectTimeout=e,this._reconnectTimeoutRef=setTimeout(function(){r.connect()},e)},i.prototype._onSCOpen=function(t){var e=this;this.preparingPendingSubscriptions=!0,t?(this.id=t.id,this.pingTimeout=t.pingTimeout,this.transport.pingTimeout=this.pingTimeout,t.isAuthenticated?this._changeToAuthenticatedState(t.authToken):this._changeToUnauthenticatedStateAndClearTokens()):this._changeToUnauthenticatedStateAndClearTokens(),this.connectAttempts=0,this.options.autoSubscribeOnConnect&&this.processPendingSubscriptions(),a.prototype.emit.call(this,"connect",t,function(){e.processPendingSubscriptions()}),this.state===this.OPEN&&this._flushEmitBuffer()},i.prototype._onSCError=function(t){var e=this;setTimeout(function(){if(e.listeners("error").length<1)throw t;a.prototype.emit.call(e,"error",t)},0)},i.prototype._suspendSubscriptions=function(){var t,e;for(var r in this.channels)this.channels.hasOwnProperty(r)&&(e=(t=this.channels[r]).state===t.SUBSCRIBED||t.state===t.PENDING?t.PENDING:t.UNSUBSCRIBED,this._triggerChannelUnsubscribe(t,e))},i.prototype._abortAllPendingEventsDueToBadConnection=function(t){for(var e,r=this._emitBuffer.head;r;){e=r.next;var n=r.data;clearTimeout(n.timeout),delete n.timeout,r.detach(),r=e;var o=n.callback;if(o){delete n.callback;var i="Event '"+n.event+"' was aborted due to a bad connection",s=new g(i,t);o.call(n,s,n)}n.cid&&this.transport.cancelPendingResponse(n.cid)}},i.prototype._onSCClose=function(t,e,r){if(this.id=null,this.transport&&this.transport.off(),this.pendingReconnect=!1,this.pendingReconnectTimeout=null,clearTimeout(this._reconnectTimeoutRef),this._suspendSubscriptions(),this._abortAllPendingEventsDueToBadConnection(r?"connectAbort":"disconnect"),this.options.autoReconnect&&(4e3===t||4001===t||1005===t?this._tryReconnect(0):1e3!==t&&t<4500&&this._tryReconnect()),r?a.prototype.emit.call(this,"connectAbort",t,e):a.prototype.emit.call(this,"disconnect",t,e),a.prototype.emit.call(this,"close",t,e),!i.ignoreStatuses[t]){var n;n=e?"Socket connection closed with status code "+t+" and reason: "+e:"Socket connection closed with status code "+t;var o=new y(i.errorStatuses[t]||n,t);this._onSCError(o)}},i.prototype._onSCEvent=function(t,e,r){var n=this._privateEventHandlerMap[t];n?n.call(this,e,r):a.prototype.emit.call(this,t,e,function(){r&&r.callback.apply(r,arguments)})},i.prototype.decode=function(t){return this.transport.decode(t)},i.prototype.encode=function(t){return this.transport.encode(t)},i.prototype._flushEmitBuffer=function(){for(var t,e=this._emitBuffer.head;e;){t=e.next;var r=e.data;e.detach(),this.transport.emitObject(r),e=t}},i.prototype._handleEventAckTimeout=function(t,e){e&&e.detach(),delete t.timeout;var r=t.callback;if(r){delete t.callback;var n=new m("Event response for '"+t.event+"' timed out");r.call(t,n,t)}t.cid&&this.transport.cancelPendingResponse(t.cid)},i.prototype._emit=function(t,e,r){var n=this;this.state===this.CLOSED&&this.connect();var o={event:t,callback:r},i=new p.Item;this.options.cloneData?o.data=l(e):o.data=e,(i.data=o).timeout=setTimeout(function(){n._handleEventAckTimeout(o,i)},this.ackTimeout),this._emitBuffer.append(i),this.state===this.OPEN&&this._flushEmitBuffer()},i.prototype.send=function(t){this.transport.send(t)},i.prototype.emit=function(t,e,r){if(null==this._localEvents[t])this._emit(t,e,r);else if("error"===t)a.prototype.emit.call(this,t,e);else{var n=new o('The "'+t+'" event is reserved and cannot be emitted on a client socket');this._onSCError(n)}},i.prototype.publish=function(t,e,r){var n={channel:this._decorateChannelName(t),data:e};this.emit("#publish",n,r)},i.prototype._triggerChannelSubscribe=function(t,e){var r=t.name;if(t.state!==t.SUBSCRIBED){var n=t.state;t.state=t.SUBSCRIBED;var o={channel:r,oldState:n,newState:t.state,subscriptionOptions:e};t.emit("subscribeStateChange",o),t.emit("subscribe",r,e),a.prototype.emit.call(this,"subscribeStateChange",o),a.prototype.emit.call(this,"subscribe",r,e)}},i.prototype._triggerChannelSubscribeFail=function(t,e,r){var n=e.name,o=!e.waitForAuth||this.authState===this.AUTHENTICATED;e.state!==e.UNSUBSCRIBED&&o&&(e.state=e.UNSUBSCRIBED,e.emit("subscribeFail",t,n,r),a.prototype.emit.call(this,"subscribeFail",t,n,r))},i.prototype._cancelPendingSubscribeCallback=function(t){null!=t._pendingSubscriptionCid&&(this.transport.cancelPendingResponse(t._pendingSubscriptionCid),delete t._pendingSubscriptionCid)},i.prototype._decorateChannelName=function(t){return this.channelPrefix&&(t=this.channelPrefix+t),t},i.prototype._undecorateChannelName=function(t){return this.channelPrefix&&0===t.indexOf(this.channelPrefix)?t.replace(this.channelPrefix,""):t},i.prototype._trySubscribe=function(e){var r=this,t=!e.waitForAuth||this.authState===this.AUTHENTICATED;if(this.state===this.OPEN&&!this.preparingPendingSubscriptions&&null==e._pendingSubscriptionCid&&t){var n={noTimeout:!0},o={channel:this._decorateChannelName(e.name)};e.waitForAuth&&(n.waitForAuth=!0,o.waitForAuth=n.waitForAuth),e.data&&(o.data=e.data),e.batch&&(n.batch=!0,o.batch=!0),e._pendingSubscriptionCid=this.transport.emit("#subscribe",o,n,function(t){delete e._pendingSubscriptionCid,t?r._triggerChannelSubscribeFail(t,e,o):r._triggerChannelSubscribe(e,o)}),a.prototype.emit.call(this,"subscribeRequest",e.name,o)}},i.prototype.subscribe=function(t,e){var r=this.channels[t];return r?e&&r.setOptions(e):(r=new n(t,this,e),this.channels[t]=r),r.state===r.UNSUBSCRIBED&&(r.state=r.PENDING,this._trySubscribe(r)),r},i.prototype._triggerChannelUnsubscribe=function(t,e){var r=t.name,n=t.state;if(t.state=e||t.UNSUBSCRIBED,this._cancelPendingSubscribeCallback(t),n===t.SUBSCRIBED){var o={channel:r,oldState:n,newState:t.state};t.emit("subscribeStateChange",o),t.emit("unsubscribe",r),a.prototype.emit.call(this,"subscribeStateChange",o),a.prototype.emit.call(this,"unsubscribe",r)}},i.prototype._tryUnsubscribe=function(t){if(this.state===this.OPEN){var e={noTimeout:!0};t.batch&&(e.batch=!0),this._cancelPendingSubscribeCallback(t);var r=this._decorateChannelName(t.name);this.transport.emit("#unsubscribe",r,e)}},i.prototype.unsubscribe=function(t){var e=this.channels[t];e&&e.state!==e.UNSUBSCRIBED&&(this._triggerChannelUnsubscribe(e),this._tryUnsubscribe(e))},i.prototype.channel=function(t,e){var r=this.channels[t];return r||(r=new n(t,this,e),this.channels[t]=r),r},i.prototype.destroyChannel=function(t){var e=this.channels[t];e&&(e.unwatch(),e.unsubscribe(),delete this.channels[t])},i.prototype.subscriptions=function(t){var e,r=[];for(var n in this.channels)this.channels.hasOwnProperty(n)&&(e=this.channels[n],(t?e&&(e.state===e.SUBSCRIBED||e.state===e.PENDING):e&&e.state===e.SUBSCRIBED)&&r.push(n));return r},i.prototype.isSubscribed=function(t,e){var r=this.channels[t];return e?!!r&&(r.state===r.SUBSCRIBED||r.state===r.PENDING):!!r&&r.state===r.SUBSCRIBED},i.prototype.processPendingSubscriptions=function(){var e=this;this.preparingPendingSubscriptions=!1;var t=[];for(var r in this.channels)if(this.channels.hasOwnProperty(r)){var n=this.channels[r];n.state===n.PENDING&&t.push(n)}t.sort(function(t,e){var r=t.priority||0,n=e.priority||0;return n<r?-1:r<n?1:0}),t.forEach(function(t){e._trySubscribe(t)})},i.prototype.watch=function(t,e){if("function"!=typeof e)throw new d("No handler function was provided");this._channelEmitter.on(t,e)},i.prototype.unwatch=function(t,e){e?this._channelEmitter.removeListener(t,e):this._channelEmitter.removeAllListeners(t)},i.prototype.watchers=function(t){return this._channelEmitter.listeners(t)},E.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./auth":2,"./response":4,"./sctransport":6,"buffer/":9,clone:10,"component-emitter":11,"linked-list":14,querystring:17,"sc-channel":18,"sc-errors":20,"sc-formatter":21}],6:[function(h,p){(function(t){var r,s,i=h("component-emitter"),a=h("./response").Response,o=h("querystring");s=t.WebSocket?(r=t.WebSocket,function(t){return new r(t)}):(r=h("ws"),function(t,e){return new r(t,null,e)});function e(t,e,r){var n=this;this.state=this.CLOSED,this.auth=t,this.codec=e,this.options=r,this.connectTimeout=r.connectTimeout,this.pingTimeout=r.ackTimeout,this.pingTimeoutDisabled=!!r.pingTimeoutDisabled,this.callIdGenerator=r.callIdGenerator,this.authTokenName=r.authTokenName,this._pingTimeoutTicker=null,this._callbackMap={},this._batchSendList=[],this.state=this.CONNECTING;var o=this.uri(),i=s(o,this.options);i.binaryType=this.options.binaryType,(this.socket=i).onopen=function(){n._onOpen()},i.onclose=function(t){var e;e=null==t.code?1005:t.code,n._onClose(e,t.reason)},i.onmessage=function(t){n._onMessage(t.data)},i.onerror=function(){n.state===n.CONNECTING&&n._onClose(1006)},this._connectTimeoutRef=setTimeout(function(){n._onClose(4007),n.socket.close(4007)},this.connectTimeout)}var c=h("sc-errors"),n=c.TimeoutError,u=c.BadConnectionError;e.prototype=Object.create(i.prototype),e.CONNECTING=e.prototype.CONNECTING="connecting",e.OPEN=e.prototype.OPEN="open",e.CLOSED=e.prototype.CLOSED="closed",e.prototype.uri=function(){var t,e=this.options.query||{},r=this.options.secure?"wss":"ws";if(this.options.timestampRequests&&(e[this.options.timestampParam]=(new Date).getTime()),(e=o.encode(e)).length&&(e="?"+e),this.options.host)t=this.options.host;else{var n="";this.options.port&&("wss"==r&&443!==this.options.port||"ws"==r&&80!==this.options.port)&&(n=":"+this.options.port),t=this.options.hostname+n}return r+"://"+t+this.options.path+e},e.prototype._onOpen=function(){var n=this;clearTimeout(this._connectTimeoutRef),this._resetPingTimeout(),this._handshake(function(t,e){var r;t?(r=e&&e.code?e.code:4003,n._onError(t),n._onClose(r,t.toString()),n.socket.close(r)):(n.state=n.OPEN,i.prototype.emit.call(n,"open",e),n._resetPingTimeout())})},e.prototype._handshake=function(n){var e=this;this.auth.loadToken(this.authTokenName,function(t,r){t?n(t):e.emit("#handshake",{authToken:r},{force:!0},function(t,e){e&&(e.authToken=r,e.authError&&(e.authError=c.hydrateError(e.authError))),n(t,e)})})},e.prototype._abortAllPendingEventsDueToBadConnection=function(t){for(var e in this._callbackMap)if(this._callbackMap.hasOwnProperty(e)){var r=this._callbackMap[e];delete this._callbackMap[e],clearTimeout(r.timeout),delete r.timeout;var n="Event '"+r.event+"' was aborted due to a bad connection",o=new u(n,t),i=r.callback;delete r.callback,i.call(r,o,r)}},e.prototype._onClose=function(t,e){delete this.socket.onopen,delete this.socket.onclose,delete this.socket.onmessage,delete this.socket.onerror,clearTimeout(this._connectTimeoutRef),clearTimeout(this._pingTimeoutTicker),clearTimeout(this._batchTimeout),this.state===this.OPEN?(this.state=this.CLOSED,i.prototype.emit.call(this,"close",t,e),this._abortAllPendingEventsDueToBadConnection("disconnect")):this.state===this.CONNECTING&&(this.state=this.CLOSED,i.prototype.emit.call(this,"openAbort",t,e),this._abortAllPendingEventsDueToBadConnection("connectAbort"))},e.prototype._handleEventObject=function(t,e){if(t&&null!=t.event){var r=new a(this,t.cid);i.prototype.emit.call(this,"event",t.event,t.data,r)}else if(t&&null!=t.rid){var n=this._callbackMap[t.rid];if(n&&(clearTimeout(n.timeout),delete n.timeout,delete this._callbackMap[t.rid],n.callback)){var o=c.hydrateError(t.error);n.callback(o,t.data)}}else i.prototype.emit.call(this,"event","raw",e)},e.prototype._onMessage=function(t){i.prototype.emit.call(this,"event","message",t);var e=this.decode(t);if("#1"===e)this._resetPingTimeout(),this.socket.readyState===this.socket.OPEN&&this.sendObject("#2");else if(Array.isArray(e))for(var r=e.length,n=0;n<r;n++)this._handleEventObject(e[n],t);else this._handleEventObject(e,t)},e.prototype._onError=function(t){i.prototype.emit.call(this,"error",t)},e.prototype._resetPingTimeout=function(){if(!this.pingTimeoutDisabled){var t=this;(new Date).getTime(),clearTimeout(this._pingTimeoutTicker),this._pingTimeoutTicker=setTimeout(function(){t._onClose(4e3),t.socket.close(4e3)},this.pingTimeout)}},e.prototype.getBytesReceived=function(){return this.socket.bytesReceived},e.prototype.close=function(t,e){if(t=t||1e3,this.state===this.OPEN){var r={code:t,data:e};this.emit("#disconnect",r),this._onClose(t,e),this.socket.close(t)}else this.state===this.CONNECTING&&(this._onClose(t,e),this.socket.close(t))},e.prototype.emitObject=function(t,e){var r={event:t.event,data:t.data};return t.callback&&(r.cid=t.cid=this.callIdGenerator(),this._callbackMap[t.cid]=t),this.sendObject(r,e),t.cid||null},e.prototype._handleEventAckTimeout=function(t){t.cid&&delete this._callbackMap[t.cid],delete t.timeout;var e=t.callback;if(e){delete t.callback;var r=new n("Event response for '"+t.event+"' timed out");e.call(t,r,t)}},e.prototype.emit=function(t,e,r,n){var o,i,s=this;n?(i=r,o=n):r instanceof Function?(i={},o=r):i=r;var a={event:t,data:e,callback:o};o&&!i.noTimeout&&(a.timeout=setTimeout(function(){s._handleEventAckTimeout(a)},this.options.ackTimeout));var c=null;return this.state!==this.OPEN&&!i.force||(c=this.emitObject(a,i)),c},e.prototype.cancelPendingResponse=function(t){delete this._callbackMap[t]},e.prototype.decode=function(t){return this.codec.decode(t)},e.prototype.encode=function(t){return this.codec.encode(t)},e.prototype.send=function(t){this.socket.readyState!==this.socket.OPEN?this._onClose(1005):this.socket.send(t)},e.prototype.serializeObject=function(t){var e,r;try{e=this.encode(t)}catch(t){r=t,this._onError(r)}return r?null:e},e.prototype.sendObjectBatch=function(t){var e=this;this._batchSendList.push(t),this._batchTimeout||(this._batchTimeout=setTimeout(function(){if(delete e._batchTimeout,e._batchSendList.length){var t=e.serializeObject(e._batchSendList);null!=t&&e.send(t),e._batchSendList=[]}},this.options.pubSubBatchDuration||0))},e.prototype.sendObjectSingle=function(t){var e=this.serializeObject(t);null!=e&&this.send(e)},e.prototype.sendObject=function(t,e){e&&e.batch?this.sendObjectBatch(t):this.sendObjectSingle(t)},p.exports.SCTransport=e}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./response":4,"component-emitter":11,querystring:17,"sc-errors":20,ws:7}],7:[function(t,e){var r,n=(r="undefined"!=typeof WorkerGlobalScope?self:"undefined"!=typeof window&&window||function(){return this}()).WebSocket||r.MozWebSocket;function o(t,e){return e?new n(t,e):new n(t)}n&&(o.prototype=n.prototype),e.exports=n?o:null},{}],8:[function(t,e,r){"use strict";r.byteLength=function(t){var e=p(t),r=e[0],n=e[1];return 3*(r+n)/4-n},r.toByteArray=function(t){var e,r,n=p(t),o=n[0],i=n[1],s=new h(function(t,e,r){return 3*(e+r)/4-r}(0,o,i)),a=0,c=0<i?o-4:o;for(r=0;r<c;r+=4)e=u[t.charCodeAt(r)]<<18|u[t.charCodeAt(r+1)]<<12|u[t.charCodeAt(r+2)]<<6|u[t.charCodeAt(r+3)],s[a++]=e>>16&255,s[a++]=e>>8&255,s[a++]=255&e;2===i&&(e=u[t.charCodeAt(r)]<<2|u[t.charCodeAt(r+1)]>>4,s[a++]=255&e);1===i&&(e=u[t.charCodeAt(r)]<<10|u[t.charCodeAt(r+1)]<<4|u[t.charCodeAt(r+2)]>>2,s[a++]=e>>8&255,s[a++]=255&e);return s},r.fromByteArray=function(t){for(var e,r=t.length,n=r%3,o=[],i=0,s=r-n;i<s;i+=16383)o.push(c(t,i,s<i+16383?s:i+16383));1==n?(e=t[r-1],o.push(a[e>>2]+a[e<<4&63]+"==")):2==n&&(e=(t[r-2]<<8)+t[r-1],o.push(a[e>>10]+a[e>>4&63]+a[e<<2&63]+"="));return o.join("")};for(var a=[],u=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=n.length;o<i;++o)a[o]=n[o],u[n.charCodeAt(o)]=o;function p(t){var e=t.length;if(0<e%4)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,r){for(var n,o,i=[],s=e;s<r;s+=3)n=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),i.push(a[(o=n)>>18&63]+a[o>>12&63]+a[o>>6&63]+a[63&o]);return i.join("")}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},{}],9:[function(j,t,D){(function(p){"use strict";var n=j("base64-js"),i=j("ieee754"),t="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;D.Buffer=p,D.SlowBuffer=function(t){+t!=t&&(t=0);return p.alloc(+t)},D.INSPECT_MAX_BYTES=50;var r=2147483647;function s(t){if(r<t)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,p.prototype),e}function p(t,e,r){if("number"!=typeof t)return o(t,e,r);if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return c(t)}function o(t,e,r){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!p.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|l(t,e),n=s(r),o=n.write(t,e);o!==r&&(n=n.slice(0,o));return n}(t,e);if(ArrayBuffer.isView(t))return u(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(P(t,ArrayBuffer)||t&&P(t.buffer,ArrayBuffer))return function(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r);return Object.setPrototypeOf(n,p.prototype),n}(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return p.from(n,e,r);var o=function(t){if(p.isBuffer(t)){var e=0|h(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!=typeof t.length||R(t.length)?s(0):u(t);if("Buffer"===t.type&&Array.isArray(t.data))return u(t.data)}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return p.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function a(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function c(t){return a(t),s(t<0?0:0|h(t))}function u(t){for(var e=t.length<0?0:0|h(t.length),r=s(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function h(t){if(r<=t)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|t}function l(t,e){if(p.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||P(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=2<arguments.length&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return N(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return U(t).length;default:if(o)return n?-1:N(t).length;e=(""+e).toLowerCase(),o=!0}}function f(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function d(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),R(r=+r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=p.from(e,n)),p.isBuffer(e))return 0===e.length?-1:y(t,e,r,n,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):y(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function y(t,e,r,n,o){var i,s=1,a=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a/=s=2,c/=2,r/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){var h=-1;for(i=r;i<a;i++)if(u(t,i)===u(e,-1===h?0:i-h)){if(-1===h&&(h=i),i-h+1===c)return h*s}else-1!==h&&(i-=i-h),h=-1}else for(a<r+c&&(r=a-c),i=r;0<=i;i--){for(var p=!0,l=0;l<c;l++)if(u(t,i+l)!==u(e,l)){p=!1;break}if(p)return i}return-1}function m(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?o<(n=Number(n))&&(n=o):n=o;var i=e.length;i/2<n&&(n=i/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(R(a))return s;t[r+s]=a}return s}function g(t,e,r,n){return x(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function b(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function v(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,s,a,c,u=t[o],h=null,p=239<u?4:223<u?3:191<u?2:1;if(o+p<=r)switch(p){case 1:u<128&&(h=u);break;case 2:128==(192&(i=t[o+1]))&&127<(c=(31&u)<<6|63&i)&&(h=c);break;case 3:i=t[o+1],s=t[o+2],128==(192&i)&&128==(192&s)&&2047<(c=(15&u)<<12|(63&i)<<6|63&s)&&(c<55296||57343<c)&&(h=c);break;case 4:i=t[o+1],s=t[o+2],a=t[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&65535<(c=(15&u)<<18|(63&i)<<12|(63&s)<<6|63&a)&&c<1114112&&(h=c)}null===h?(h=65533,p=1):65535<h&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),o+=p}return function(t){var e=t.length;if(e<=E)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=E));return r}(n)}D.kMaxLength=r,(p.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&p[Symbol.species]===p&&Object.defineProperty(p,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),p.poolSize=8192,p.from=function(t,e,r){return o(t,e,r)},Object.setPrototypeOf(p.prototype,Uint8Array.prototype),Object.setPrototypeOf(p,Uint8Array),p.alloc=function(t,e,r){return function(t,e,r){return a(t),t<=0?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)}(t,e,r)},p.allocUnsafe=function(t){return c(t)},p.allocUnsafeSlow=function(t){return c(t)},p.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==p.prototype},p.compare=function(t,e){if(P(t,Uint8Array)&&(t=p.from(t,t.offset,t.byteLength)),P(e,Uint8Array)&&(e=p.from(e,e.offset,e.byteLength)),!p.isBuffer(t)||!p.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},p.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return p.alloc(0);var r;if(void 0===e)for(r=e=0;r<t.length;++r)e+=t[r].length;var n=p.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var i=t[r];if(P(i,Uint8Array)&&(i=p.from(i)),!p.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},p.byteLength=l,p.prototype._isBuffer=!0,p.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)f(this,e,e+1);return this},p.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)f(this,e,e+3),f(this,e+1,e+2);return this},p.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)f(this,e,e+7),f(this,e+1,e+6),f(this,e+2,e+5),f(this,e+3,e+4);return this},p.prototype.toLocaleString=p.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?v(this,0,t):function(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":return S(this,e,r);case"utf8":case"utf-8":return v(this,e,r);case"ascii":return w(this,e,r);case"latin1":case"binary":return T(this,e,r);case"base64":return b(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}.apply(this,arguments)},p.prototype.equals=function(t){if(!p.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===p.compare(this,t)},p.prototype.inspect=function(){var t="",e=D.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},t&&(p.prototype[t]=p.prototype.inspect),p.prototype.compare=function(t,e,r,n,o){if(P(t,Uint8Array)&&(t=p.from(t,t.offset,t.byteLength)),!p.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(o<=n&&r<=e)return 0;if(o<=n)return-1;if(r<=e)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(i,s),c=this.slice(n,o),u=t.slice(e,r),h=0;h<a;++h)if(c[h]!==u[h]){i=c[h],s=u[h];break}return i<s?-1:s<i?1:0},p.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},p.prototype.indexOf=function(t,e,r){return d(this,t,e,r,!0)},p.prototype.lastIndexOf=function(t,e,r){return d(this,t,e,r,!1)},p.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||o<r)&&(r=o),0<t.length&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n=n||"utf8";for(var i,s,a,c,u,h,p,l,f,d=!1;;)switch(n){case"hex":return m(this,t,e,r);case"utf8":case"utf-8":return l=e,f=r,x(N(t,(p=this).length-l),p,l,f);case"ascii":return g(this,t,e,r);case"latin1":case"binary":return g(this,t,e,r);case"base64":return c=this,u=e,h=r,x(U(t),c,u,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s=e,a=r,x(function(t,e){for(var r,n,o,i=[],s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,o=r%256,i.push(o),i.push(n);return i}(t,(i=this).length-s),i,s,a);default:if(d)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function w(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function T(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function S(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||n<r)&&(r=n);for(var o="",i=e;i<r;++i)o+=I(t[i]);return o}function k(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function _(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(r<t+e)throw new RangeError("Trying to access beyond buffer length")}function C(t,e,r,n,o,i){if(!p.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(o<e||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function A(t,e,r,n){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function O(t,e,r,n,o){return e=+e,r>>>=0,o||A(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function B(t,e,r,n,o){return e=+e,r>>>=0,o||A(t,0,r,8),i.write(t,e,r,n,52,8),r+8}p.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,p.prototype),n},p.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||_(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},p.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||_(t,e,this.length);for(var n=this[t+--e],o=1;0<e&&(o*=256);)n+=this[t+--e]*o;return n},p.prototype.readUInt8=function(t,e){return t>>>=0,e||_(t,1,this.length),this[t]},p.prototype.readUInt16LE=function(t,e){return t>>>=0,e||_(t,2,this.length),this[t]|this[t+1]<<8},p.prototype.readUInt16BE=function(t,e){return t>>>=0,e||_(t,2,this.length),this[t]<<8|this[t+1]},p.prototype.readUInt32LE=function(t,e){return t>>>=0,e||_(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},p.prototype.readUInt32BE=function(t,e){return t>>>=0,e||_(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},p.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||_(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return(o*=128)<=n&&(n-=Math.pow(2,8*e)),n},p.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||_(t,e,this.length);for(var n=e,o=1,i=this[t+--n];0<n&&(o*=256);)i+=this[t+--n]*o;return(o*=128)<=i&&(i-=Math.pow(2,8*e)),i},p.prototype.readInt8=function(t,e){return t>>>=0,e||_(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},p.prototype.readInt16LE=function(t,e){t>>>=0,e||_(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},p.prototype.readInt16BE=function(t,e){t>>>=0,e||_(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},p.prototype.readInt32LE=function(t,e){return t>>>=0,e||_(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},p.prototype.readInt32BE=function(t,e){return t>>>=0,e||_(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},p.prototype.readFloatLE=function(t,e){return t>>>=0,e||_(t,4,this.length),i.read(this,t,!0,23,4)},p.prototype.readFloatBE=function(t,e){return t>>>=0,e||_(t,4,this.length),i.read(this,t,!1,23,4)},p.prototype.readDoubleLE=function(t,e){return t>>>=0,e||_(t,8,this.length),i.read(this,t,!0,52,8)},p.prototype.readDoubleBE=function(t,e){return t>>>=0,e||_(t,8,this.length),i.read(this,t,!1,52,8)},p.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||C(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},p.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||C(this,t,e,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[e+o]=255&t;0<=--o&&(i*=256);)this[e+o]=t/i&255;return e+r},p.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,1,255,0),this[e]=255&t,e+1},p.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},p.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},p.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},p.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},p.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);C(this,t,e,r,o-1,-o)}var i=0,s=1,a=0;for(this[e]=255&t;++i<r&&(s*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/s>>0)-a&255;return e+r},p.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);C(this,t,e,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[e+i]=255&t;0<=--i&&(s*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/s>>0)-a&255;return e+r},p.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},p.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},p.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},p.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},p.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},p.prototype.writeFloatLE=function(t,e,r){return O(this,t,e,!0,r)},p.prototype.writeFloatBE=function(t,e,r){return O(this,t,e,!1,r)},p.prototype.writeDoubleLE=function(t,e,r){return B(this,t,e,!0,r)},p.prototype.writeDoubleBE=function(t,e,r){return B(this,t,e,!1,r)},p.prototype.copy=function(t,e,r,n){if(!p.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r=r||0,n||0===n||(n=this.length),e>=t.length&&(e=t.length),e=e||0,0<n&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o=n-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var i=o-1;0<=i;--i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return o},p.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!p.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(t=t||0))for(i=e;i<r;++i)this[i]=t;else{var s=p.isBuffer(t)?t:p.from(t,n),a=s.length;if(0===a)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=s[i%a]}return this};var e=/[^+/0-9A-Za-z-_]/g;function I(t){return t<16?"0"+t.toString(16):t.toString(16)}function N(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],s=0;s<n;++s){if(55295<(r=t.charCodeAt(s))&&r<57344){if(!o){if(56319<r){-1<(e-=3)&&i.push(239,191,189);continue}if(s+1===n){-1<(e-=3)&&i.push(239,191,189);continue}o=r;continue}if(r<56320){-1<(e-=3)&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&-1<(e-=3)&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function U(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(e,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function x(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function P(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function R(t){return t!=t}}).call(this,j("buffer").Buffer)},{"base64-js":8,buffer:9,ieee754:12}],10:[function(t,e){(function(k){var t=function(){"use strict";function b(t,e){return null!=e&&t instanceof e}var v,E,w;try{v=Map}catch(t){v=function(){}}try{E=Set}catch(t){E=function(){}}try{w=Promise}catch(t){w=function(){}}function T(t,f,e,d,y){"object"==typeof f&&(e=f.depth,d=f.prototype,y=f.includeNonEnumerable,f=f.circular);var m=[],g=[];return void 0===f&&(f=!0),void 0===e&&(e=1/0),function o(t,i){if(null===t)return null;if(0===i)return t;var s,e;if("object"!=typeof t)return t;if(b(t,v))s=new v;else if(b(t,E))s=new E;else if(b(t,w))s=new w(function(e,r){t.then(function(t){e(o(t,i-1))},function(t){r(o(t,i-1))})});else if(T.__isArray(t))s=[];else if(T.__isRegExp(t))s=new RegExp(t.source,S(t)),t.lastIndex&&(s.lastIndex=t.lastIndex);else if(T.__isDate(t))s=new Date(t.getTime());else{if(void 0!==k&&k.isBuffer(t))return s=new k(t.length),t.copy(s),s;b(t,Error)?s=Object.create(t):void 0===d?(e=Object.getPrototypeOf(t),s=Object.create(e)):(s=Object.create(d),e=d)}if(f){var r=m.indexOf(t);if(-1!=r)return g[r];m.push(t),g.push(s)}for(var n in b(t,v)&&t.forEach(function(t,e){var r=o(e,i-1),n=o(t,i-1);s.set(r,n)}),b(t,E)&&t.forEach(function(t){var e=o(t,i-1);s.add(e)}),t){var a;e&&(a=Object.getOwnPropertyDescriptor(e,n)),a&&null==a.set||(s[n]=o(t[n],i-1))}if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(n=0;n<c.length;n++){var u=c[n];(p=Object.getOwnPropertyDescriptor(t,u))&&!p.enumerable&&!y||(s[u]=o(t[u],i-1),p.enumerable||Object.defineProperty(s,u,{enumerable:!1}))}}if(y){var h=Object.getOwnPropertyNames(t);for(n=0;n<h.length;n++){var p,l=h[n];(p=Object.getOwnPropertyDescriptor(t,l))&&p.enumerable||(s[l]=o(t[l],i-1),Object.defineProperty(s,l,{enumerable:!1}))}}return s}(t,e)}function e(t){return Object.prototype.toString.call(t)}function S(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return T.clonePrototype=function(t){if(null===t)return null;function e(){}return e.prototype=t,new e},T.__objToStr=e,T.__isDate=function(t){return"object"==typeof t&&"[object Date]"===e(t)},T.__isArray=function(t){return"object"==typeof t&&"[object Array]"===e(t)},T.__isRegExp=function(t){return"object"==typeof t&&"[object RegExp]"===e(t)},T.__getRegExpFlags=S,T}();"object"==typeof e&&e.exports&&(e.exports=t)}).call(this,t("buffer").Buffer)},{buffer:9}],11:[function(t,e){function r(t){if(t)return function(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}(t)}void 0!==e&&(e.exports=r),r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<n.length;o++)if((r=n[o])===e||r.fn===e){n.splice(o,1);break}return this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),r=this._callbacks["$"+t];if(r)for(var n=0,o=(r=r.slice(0)).length;n<o;++n)r[n].apply(this,e);return this},r.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},r.prototype.hasListeners=function(t){return!!this.listeners(t).length}},{}],12:[function(t,e,r){r.read=function(t,e,r,n,o){var i,s,a=8*o-n-1,c=(1<<a)-1,u=c>>1,h=-7,p=r?o-1:0,l=r?-1:1,f=t[e+p];for(p+=l,i=f&(1<<-h)-1,f>>=-h,h+=a;0<h;i=256*i+t[e+p],p+=l,h-=8);for(s=i&(1<<-h)-1,i>>=-h,h+=n;0<h;s=256*s+t[e+p],p+=l,h-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),i-=u}return(f?-1:1)*s*Math.pow(2,i-n)},r.write=function(t,e,r,n,o,i){var s,a,c,u=8*i-o-1,h=(1<<u)-1,p=h>>1,l=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:i-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),2<=(e+=1<=s+p?l/c:l*Math.pow(2,1-p))*c&&(s++,c/=2),h<=s+p?(a=0,s=h):1<=s+p?(a=(e*c-1)*Math.pow(2,o),s+=p):(a=e*Math.pow(2,p-1)*Math.pow(2,o),s=0));8<=o;t[r+f]=255&a,f+=d,a/=256,o-=8);for(s=s<<o|a,u+=o;0<u;t[r+f]=255&s,f+=d,s/=256,u-=8);t[r+f-d]|=128*y}},{}],13:[function(t,e){"use strict";var o="An argument without append, prepend, or detach methods was given to `List";function r(){if(arguments.length)return r.from(arguments)}var n=r.prototype;function i(){}r.of=function(){return r.from.call(this,arguments)},r.from=function(t){var e,r,n,o=new this;if(t&&(e=t.length))for(r=-1;++r<e;)null!=(n=t[r])&&o.append(n);return o},n.head=null,n.tail=null,n.toArray=function(){for(var t=this.head,e=[];t;)e.push(t),t=t.next;return e},n.prepend=function(t){if(!t)return!1;if(!t.append||!t.prepend||!t.detach)throw new Error(o+"#prepend`.");var e;return(e=this.head)?e.prepend(t):(t.detach(),(t.list=this).head=t)},n.append=function(t){if(!t)return!1;if(!t.append||!t.prepend||!t.detach)throw new Error(o+"#append`.");var e,r;return(r=this.tail)?r.append(t):(e=this.head)?e.append(t):(t.detach(),(t.list=this).head=t)};var s=(r.Item=i).prototype;s.next=null,s.prev=null,s.list=null,s.detach=function(){var t=this,e=t.list,r=t.prev,n=t.next;return e&&(e.tail===t&&(e.tail=r),e.head===t&&(e.head=n),e.tail===e.head&&(e.tail=null),r&&(r.next=n),n&&(n.prev=r),t.prev=t.next=t.list=null),t},s.prepend=function(t){if(!(t&&t.append&&t.prepend&&t.detach))throw new Error(o+"Item#prepend`.");var e=this,r=e.list,n=e.prev;return!!r&&(t.detach(),n&&((t.prev=n).next=t),t.next=e,t.list=r,e.prev=t,e===r.head&&(r.head=t),r.tail||(r.tail=e),t)},s.append=function(t){if(!(t&&t.append&&t.prepend&&t.detach))throw new Error(o+"Item#append`.");var e=this,r=e.list,n=e.next;return!!r&&(t.detach(),n&&((t.next=n).prev=t),t.prev=e,t.list=r,e.next=t,e!==r.tail&&r.tail||(r.tail=t),t)},e.exports=r},{}],14:[function(t,e){"use strict";e.exports=t("./_source/linked-list.js")},{"./_source/linked-list.js":13}],15:[function(t,e){"use strict";e.exports=function(t,e,r,n){e=e||"&",r=r||"=";var o={};if("string"!=typeof t||0===t.length)return o;var i=/\+/g;t=t.split(e);var s=1e3;n&&"number"==typeof n.maxKeys&&(s=n.maxKeys);var a,c,u=t.length;0<s&&s<u&&(u=s);for(var h=0;h<u;++h){var p,l,f,d,y=t[h].replace(i,"%20"),m=y.indexOf(r);l=0<=m?(p=y.substr(0,m),y.substr(m+1)):(p=y,""),f=decodeURIComponent(p),d=decodeURIComponent(l),a=o,c=f,Object.prototype.hasOwnProperty.call(a,c)?g(o[f])?o[f].push(d):o[f]=[o[f],d]:o[f]=d}return o};var g=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},{}],16:[function(t,e){"use strict";function i(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}}e.exports=function(r,n,o,t){return n=n||"&",o=o||"=",null===r&&(r=void 0),"object"==typeof r?a(c(r),function(t){var e=encodeURIComponent(i(t))+o;return s(r[t])?a(r[t],function(t){return e+encodeURIComponent(i(t))}).join(n):e+encodeURIComponent(i(r[t]))}).join(n):t?encodeURIComponent(i(t))+o+encodeURIComponent(i(r)):""};var s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function a(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}var c=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},{}],17:[function(t,e,r){"use strict";r.decode=r.parse=t("./decode"),r.encode=r.stringify=t("./encode")},{"./decode":15,"./encode":16}],18:[function(t,e){function r(t,e,r){n.call(this),this.PENDING="pending",this.SUBSCRIBED="subscribed",this.UNSUBSCRIBED="unsubscribed",this.name=t,this.state=this.UNSUBSCRIBED,this.client=e,this.options=r||{},this.setOptions(this.options)}var n=t("component-emitter");(r.prototype=Object.create(n.prototype)).setOptions=function(t){t=t||{},this.waitForAuth=t.waitForAuth||!1,this.batch=t.batch||!1,void 0!==t.data&&(this.data=t.data)},r.prototype.getState=function(){return this.state},r.prototype.subscribe=function(t){this.client.subscribe(this.name,t)},r.prototype.unsubscribe=function(){this.client.unsubscribe(this.name)},r.prototype.isSubscribed=function(t){return this.client.isSubscribed(this.name,t)},r.prototype.publish=function(t,e){this.client.publish(this.name,t,e)},r.prototype.watch=function(t){this.client.watch(this.name,t)},r.prototype.unwatch=function(t){this.client.unwatch(this.name,t)},r.prototype.watchers=function(){return this.client.watchers(this.name)},r.prototype.destroy=function(){this.client.destroyChannel(this.name)},e.exports.SCChannel=r},{"component-emitter":11}],19:[function(t,e){e.exports=function(t){var s=[],a=[];return function t(e,r){var n,o,i;if("object"!=typeof e||null===e||e instanceof Boolean||e instanceof Date||e instanceof Number||e instanceof RegExp||e instanceof String)return e;for(n=0;n<s.length;n+=1)if(s[n]===e)return{$ref:a[n]};if(s.push(e),a.push(r),"[object Array]"===Object.prototype.toString.apply(e))for(i=[],n=0;n<e.length;n+=1)i[n]=t(e[n],r+"["+n+"]");else for(o in i={},e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=t(e[o],r+"["+JSON.stringify(o)+"]"));return i}(t,"$")}},{}],20:[function(t,e){var o=t("./decycle"),r=function(){return!this}();function n(t,e){this.name="AuthTokenExpiredError",this.message=t,this.expiry=e,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function i(t){this.name="AuthTokenInvalidError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function s(t,e){this.name="AuthTokenNotBeforeError",this.message=t,this.date=e,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function a(t){this.name="AuthTokenError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function c(t){this.name="AuthError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function u(t,e){this.name="SilentMiddlewareBlockedError",this.message=t,this.type=e,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function h(t){this.name="InvalidActionError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function p(t){this.name="InvalidArgumentsError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function l(t){this.name="InvalidOptionsError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function f(t){this.name="InvalidMessageError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function d(t,e){this.name="SocketProtocolError",this.message=t,this.code=e,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function y(t){this.name="ServerProtocolError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function m(t){this.name="HTTPServerError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function g(t){this.name="ResourceLimitError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function b(t){this.name="TimeoutError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function v(t,e){this.name="BadConnectionError",this.message=t,this.type=e,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function E(t){this.name="BrokerError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function w(t,e){this.name="ProcessExitError",this.message=t,this.code=e,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function T(t){this.name="UnknownError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}n.prototype=Object.create(Error.prototype),i.prototype=Object.create(Error.prototype),s.prototype=Object.create(Error.prototype),a.prototype=Object.create(Error.prototype),c.prototype=Object.create(Error.prototype),u.prototype=Object.create(Error.prototype),h.prototype=Object.create(Error.prototype),p.prototype=Object.create(Error.prototype),l.prototype=Object.create(Error.prototype),f.prototype=Object.create(Error.prototype),d.prototype=Object.create(Error.prototype),y.prototype=Object.create(Error.prototype),m.prototype=Object.create(Error.prototype),g.prototype=Object.create(Error.prototype),b.prototype=Object.create(Error.prototype),v.prototype=Object.create(Error.prototype),E.prototype=Object.create(Error.prototype),w.prototype=Object.create(Error.prototype),T.prototype=Object.create(Error.prototype),e.exports={AuthTokenExpiredError:n,AuthTokenInvalidError:i,AuthTokenNotBeforeError:s,AuthTokenError:a,AuthError:c,SilentMiddlewareBlockedError:u,InvalidActionError:h,InvalidArgumentsError:p,InvalidOptionsError:l,InvalidMessageError:f,SocketProtocolError:d,ServerProtocolError:y,HTTPServerError:m,ResourceLimitError:g,TimeoutError:b,BadConnectionError:v,BrokerError:E,ProcessExitError:w,UnknownError:T},e.exports.socketProtocolErrorStatuses={1001:"Socket was disconnected",1002:"A WebSocket protocol error was encountered",1003:"Server terminated socket because it received invalid data",1005:"Socket closed without status code",1006:"Socket hung up",1007:"Message format was incorrect",1008:"Encountered a policy violation",1009:"Message was too big to process",1010:"Client ended the connection because the server did not comply with extension requirements",1011:"Server encountered an unexpected fatal condition",4e3:"Server ping timed out",4001:"Client pong timed out",4002:"Server failed to sign auth token",4003:"Failed to complete handshake",4004:"Client failed to save auth token",4005:"Did not receive #handshake from client before timeout",4006:"Failed to bind socket to message broker",4007:"Client connection establishment timed out",4008:"Server rejected handshake from client",4009:"Server received a message before the client handshake"},e.exports.socketProtocolIgnoreStatuses={1e3:"Socket closed normally",1001:"Socket hung up"};var S={domain:1,domainEmitter:1,domainThrown:1};e.exports.dehydrateError=function(t,e){var r;if(t&&"object"==typeof t)for(var n in r={message:t.message},e&&(r.stack=t.stack),t)S[n]||(r[n]=t[n]);else r="function"==typeof t?"[function "+(t.name||"anonymous")+"]":t;return o(r)},e.exports.hydrateError=function(t){var e=null;if(null!=t)if("object"==typeof t)for(var r in e=new Error(t.message),t)t.hasOwnProperty(r)&&(e[r]=t[r]);else e=t;return e},e.exports.decycle=o},{"./decycle":19}],21:[function(t,o){(function(r){function e(t,e){if(r.ArrayBuffer&&e instanceof r.ArrayBuffer)return{base64:!0,data:function(t){for(var e=new Uint8Array(t),r=e.length,n="",o=0;o<r;o+=3)n+=i[e[o]>>2],n+=i[(3&e[o])<<4|e[o+1]>>4],n+=i[(15&e[o+1])<<2|e[o+2]>>6],n+=i[63&e[o+2]];return r%3==2?n=n.substring(0,n.length-1)+"=":r%3==1&&(n=n.substring(0,n.length-2)+"=="),n}(e)};if(r.Buffer){if(e instanceof r.Buffer)return{base64:!0,data:e.toString("base64")};if(e&&"Buffer"===e.type&&Array.isArray(e.data))return{base64:!0,data:(r.Buffer.from?r.Buffer.from(e.data):new r.Buffer(e.data)).toString("base64")}}return e}var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=/^[ \n\r\t]*[{\[]/;o.exports.decode=function(t){if(null==t)return null;if("#1"===t||"#2"===t)return t;var e=t.toString();if(!n.test(e))return e;try{return JSON.parse(e)}catch(t){}return e},o.exports.encode=function(t){return"#1"===t||"#2"===t?t:JSON.stringify(t,e)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],22:[function(t,e){var r=t("./v1"),n=t("./v4"),o=n;o.v1=r,o.v4=n,e.exports=o},{"./v1":25,"./v4":26}],23:[function(t,e){for(var o=[],r=0;r<256;++r)o[r]=(r+256).toString(16).substr(1);e.exports=function(t,e){var r=e||0,n=o;return n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]}},{}],24:[function(t,e){var r="undefined"!=typeof crypto&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);e.exports=function(){return r(n),n}}else{var o=new Array(16);e.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),o[e]=t>>>((3&e)<<3)&255;return o}}},{}],25:[function(t,e){var d,y,m=t("./lib/rng"),g=t("./lib/bytesToUuid"),b=0,v=0;e.exports=function(t,e,r){var n=e&&r||0,o=e||[],i=(t=t||{}).node||d,s=void 0!==t.clockseq?t.clockseq:y;if(null==i||null==s){var a=m();null==i&&(i=d=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),null==s&&(s=y=16383&(a[6]<<8|a[7]))}var c=void 0!==t.msecs?t.msecs:(new Date).getTime(),u=void 0!==t.nsecs?t.nsecs:v+1,h=c-b+(u-v)/1e4;if(h<0&&void 0===t.clockseq&&(s=s+1&16383),(h<0||b<c)&&void 0===t.nsecs&&(u=0),1e4<=u)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");b=c,y=s;var p=(1e4*(268435455&(c+=122192928e5))+(v=u))%4294967296;o[n++]=p>>>24&255,o[n++]=p>>>16&255,o[n++]=p>>>8&255,o[n++]=255&p;var l=c/4294967296*1e4&268435455;o[n++]=l>>>8&255,o[n++]=255&l,o[n++]=l>>>24&15|16,o[n++]=l>>>16&255,o[n++]=s>>>8|128,o[n++]=255&s;for(var f=0;f<6;++f)o[n+f]=i[f];return e||g(o)}},{"./lib/bytesToUuid":23,"./lib/rng":24}],26:[function(t,e){var s=t("./lib/rng"),a=t("./lib/bytesToUuid");e.exports=function(t,e,r){var n=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||s)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var i=0;i<16;++i)e[n+i]=o[i];return e||a(o)}},{"./lib/bytesToUuid":23,"./lib/rng":24}]},{},[1])(1)});
4
+ !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).socketCluster=t()}}(function(){return function i(s,a,c){function u(e,t){if(!a[e]){if(!s[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(h)return h(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var o=a[e]={exports:{}};s[e][0].call(o.exports,function(t){return u(s[e][1][t]||t)},o,o.exports,i,s,a,c)}return a[e].exports}for(var h="function"==typeof require&&require,t=0;t<c.length;t++)u(c[t]);return u}({1:[function(t,e){var r=t("./lib/scclientsocket"),n=t("./lib/factory");e.exports.factory=n,e.exports.SCClientSocket=r,e.exports.Emitter=t("component-emitter"),e.exports.create=function(t){return n.create(t)},e.exports.connect=e.exports.create,e.exports.destroy=function(t){return n.destroy(t)},e.exports.clients=n.clients,e.exports.version="14.2.2"},{"./lib/factory":3,"./lib/scclientsocket":5,"component-emitter":11}],2:[function(t,e){(function(o){var t=function(){this._internalStorage={},this.isLocalStorageEnabled=this._checkLocalStorageEnabled()};t.prototype._checkLocalStorageEnabled=function(){var e;try{o.localStorage,o.localStorage.setItem("__scLocalStorageTest",1),o.localStorage.removeItem("__scLocalStorageTest")}catch(t){e=t}return!e},t.prototype.saveToken=function(t,e,r,n){this.isLocalStorageEnabled&&o.localStorage?o.localStorage.setItem(t,e):this._internalStorage[t]=e,n&&n(null,e)},t.prototype.removeToken=function(t,e){var r;this.loadToken(t,function(t,e){r=e}),this.isLocalStorageEnabled&&o.localStorage?o.localStorage.removeItem(t):delete this._internalStorage[t],e&&e(null,r)},t.prototype.loadToken=function(t,e){e(null,this.isLocalStorageEnabled&&o.localStorage?o.localStorage.getItem(t):this._internalStorage[t]||null)},e.exports.AuthEngine=t}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(e,r){(function(c){var u=e("./scclientsocket"),t=e("sc-errors"),h=e("uuid"),p=t.InvalidArgumentsError,l={};r.exports={create:function(t){if((t=t||{}).host&&!t.host.match(/[^:]+:\d{2,5}/))throw new p('The host option should include both the hostname and the port number in the format "hostname:port"');if(t.host&&t.hostname)throw new p('The host option should already include the hostname and the port number in the format "hostname:port" - Because of this, you should never use host and hostname options together');if(t.host&&t.port)throw new p('The host option should already include the hostname and the port number in the format "hostname:port" - Because of this, you should never use host and port options together');var e,r,n,o=c.location&&"https:"===location.protocol,i={port:(e=t,r=o,n=null==e.secure?r:e.secure,e.port||(c.location&&location.port?location.port:n?443:80)),hostname:c.location&&location.hostname||"localhost",path:"/socketcluster/",secure:o,autoConnect:!0,autoReconnect:!0,autoSubscribeOnConnect:!0,connectTimeout:2e4,ackTimeout:1e4,timestampRequests:!1,timestampParam:"t",authEngine:null,authTokenName:"socketCluster.authToken",binaryType:"arraybuffer",multiplex:!0,pubSubBatchDuration:null,cloneData:!1};for(var s in t)t.hasOwnProperty(s)&&(i[s]=t[s]);if(i.clientMap=l,!1!==i.multiplex)return i.clientId=function(t){var e=t.secure?"https://":"http://",r="";if(t.query)if("string"==typeof t.query)r=t.query;else{var n=[],o=t.query;for(var i in o)o.hasOwnProperty(i)&&n.push(i+"="+o[i]);n.length&&(r="?"+n.join("&"))}return e+(t.host?t.host:t.hostname+":"+t.port)+t.path+r}(i),l[i.clientId]?i.autoConnect&&l[i.clientId].connect():l[i.clientId]=new u(i),l[i.clientId];i.clientId=h.v4();var a=new u(i);return l[i.clientId]=a},destroy:function(t){t.destroy()},clients:l}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./scclientsocket":5,"sc-errors":20,uuid:22}],4:[function(t,e){var o=t("sc-errors"),r=o.InvalidActionError,n=function(t,e){this.socket=t,this.id=e,this.sent=!1};n.prototype._respond=function(t){if(this.sent)throw new r("Response "+this.id+" has already been sent");this.sent=!0,this.socket.send(this.socket.encode(t))},n.prototype.end=function(t){if(this.id){var e={rid:this.id};void 0!==t&&(e.data=t),this._respond(e)}},n.prototype.error=function(t,e){if(this.id){var r=o.dehydrateError(t),n={rid:this.id,error:r};void 0!==e&&(n.data=e),this._respond(n)}},n.prototype.callback=function(t,e){t?this.error(t,e):this.end(e)},e.exports.Response=n},{"sc-errors":20}],5:[function(v,E){(function(s){var a=v("component-emitter"),n=v("sc-channel").SCChannel;v("./response").Response;var c=v("./auth").AuthEngine,u=v("sc-formatter"),e=v("./sctransport").SCTransport,h=v("querystring"),p=v("linked-list"),r=v("buffer/").Buffer,l=v("clone"),i=v("sc-errors"),f=i.InvalidArgumentsError,t=i.InvalidMessageError,o=i.InvalidActionError,d=i.SocketProtocolError,y=i.TimeoutError,m=i.BadConnectionError,g="undefined"!=typeof window,b=function(t){var e=this;a.call(this),this.id=null,this.state=this.CLOSED,this.authState=this.UNAUTHENTICATED,this.signedAuthToken=null,this.authToken=null,this.pendingReconnect=!1,this.pendingReconnectTimeout=null,this.preparingPendingSubscriptions=!1,this.clientId=t.clientId,this.connectTimeout=t.connectTimeout,this.ackTimeout=t.ackTimeout,this.channelPrefix=t.channelPrefix||null,this.disconnectOnUnload=null==t.disconnectOnUnload||t.disconnectOnUnload,this.authTokenName=t.authTokenName,this.pingTimeout=this.ackTimeout,this.pingTimeoutDisabled=!!t.pingTimeoutDisabled,this.active=!0,this._clientMap=t.clientMap||{};var r=Math.pow(2,31)-1,n=function(t){if(e[t]>r)throw new f("The "+t+" value provided exceeded the maximum amount allowed")};if(n("connectTimeout"),n("ackTimeout"),this._localEvents={connect:1,connectAbort:1,close:1,disconnect:1,message:1,error:1,raw:1,kickOut:1,subscribe:1,unsubscribe:1,subscribeStateChange:1,authStateChange:1,authenticate:1,deauthenticate:1,removeAuthToken:1,subscribeRequest:1},this.connectAttempts=0,this._emitBuffer=new p,this.channels={},this.options=t,this._cid=1,this.options.callIdGenerator=function(){return e._cid++},this.options.autoReconnect){null==this.options.autoReconnectOptions&&(this.options.autoReconnectOptions={});var o=this.options.autoReconnectOptions;null==o.initialDelay&&(o.initialDelay=1e4),null==o.randomness&&(o.randomness=1e4),null==o.multiplier&&(o.multiplier=1.5),null==o.maxDelay&&(o.maxDelay=6e4)}if(null==this.options.subscriptionRetryOptions&&(this.options.subscriptionRetryOptions={}),this.options.authEngine?this.auth=this.options.authEngine:this.auth=new c,this.options.codecEngine?this.codec=this.options.codecEngine:this.codec=u,this.options.protocol){var i=new f('The "protocol" option does not affect socketcluster-client. If you want to utilize SSL/TLS - use "secure" option instead');this._onSCError(i)}this.options.path=this.options.path.replace(/\/$/,"")+"/",this.options.query=t.query||{},"string"==typeof this.options.query&&(this.options.query=h.parse(this.options.query)),this._channelEmitter=new a,this._unloadHandler=function(){e.disconnect()},g&&this.disconnectOnUnload&&s.addEventListener&&s.addEventListener("beforeunload",this._unloadHandler,!1),(this._clientMap[this.clientId]=this).options.autoConnect&&this.connect()};b.prototype=Object.create(a.prototype),b.CONNECTING=b.prototype.CONNECTING=e.prototype.CONNECTING,b.OPEN=b.prototype.OPEN=e.prototype.OPEN,b.CLOSED=b.prototype.CLOSED=e.prototype.CLOSED,b.AUTHENTICATED=b.prototype.AUTHENTICATED="authenticated",b.UNAUTHENTICATED=b.prototype.UNAUTHENTICATED="unauthenticated",b.PENDING=b.prototype.PENDING="pending",b.ignoreStatuses=i.socketProtocolIgnoreStatuses,b.errorStatuses=i.socketProtocolErrorStatuses,b.prototype._privateEventHandlerMap={"#publish":function(t){var e=this._undecorateChannelName(t.channel);this.isSubscribed(e,!0)&&this._channelEmitter.emit(e,t.data)},"#kickOut":function(t){var e=this._undecorateChannelName(t.channel),r=this.channels[e];r&&(a.prototype.emit.call(this,"kickOut",t.message,e),r.emit("kickOut",t.message,e),this._triggerChannelUnsubscribe(r))},"#setAuthToken":function(e,r){var n=this;if(e){this.auth.saveToken(this.authTokenName,e.token,{},function(t){t?(r.error(t),n._onSCError(t)):(n._changeToAuthenticatedState(e.token),r.end())})}else r.error(new t("No token data provided by #setAuthToken event"))},"#removeAuthToken":function(t,r){var n=this;this.auth.removeToken(this.authTokenName,function(t,e){t?(r.error(t),n._onSCError(t)):(a.prototype.emit.call(n,"removeAuthToken",e),n._changeToUnauthenticatedStateAndClearTokens(),r.end())})},"#disconnect":function(t){this.transport.close(t.code,t.data)}},b.prototype.getState=function(){return this.state},b.prototype.getBytesReceived=function(){return this.transport.getBytesReceived()},b.prototype.deauthenticate=function(r){var n=this;this.auth.removeToken(this.authTokenName,function(t,e){t?n._onSCError(t):(a.prototype.emit.call(n,"removeAuthToken",e),n.state!==n.CLOSED&&n.emit("#removeAuthToken"),n._changeToUnauthenticatedStateAndClearTokens()),r&&r(t)})},b.prototype.connect=b.prototype.open=function(){var n=this;if(this.active)this.state===this.CLOSED&&(this.pendingReconnect=!1,this.pendingReconnectTimeout=null,clearTimeout(this._reconnectTimeoutRef),this.state=this.CONNECTING,a.prototype.emit.call(this,"connecting"),this.transport&&this.transport.off(),this.transport=new e(this.auth,this.codec,this.options),this.transport.on("open",function(t){n.state=n.OPEN,n._onSCOpen(t)}),this.transport.on("error",function(t){n._onSCError(t)}),this.transport.on("close",function(t,e){n.state=n.CLOSED,n._onSCClose(t,e)}),this.transport.on("openAbort",function(t,e){n.state=n.CLOSED,n._onSCClose(t,e,!0)}),this.transport.on("event",function(t,e,r){n._onSCEvent(t,e,r)}));else{var t=new o("Cannot connect a destroyed client");this._onSCError(t)}},b.prototype.reconnect=function(t,e){this.disconnect(t,e),this.connect()},b.prototype.disconnect=function(t,e){if("number"!=typeof(t=t||1e3))throw new f("If specified, the code argument must be a number");this.state===this.OPEN||this.state===this.CONNECTING?this.transport.close(t,e):(this.pendingReconnect=!1,this.pendingReconnectTimeout=null,clearTimeout(this._reconnectTimeoutRef))},b.prototype.destroy=function(t,e){g&&s.removeEventListener&&s.removeEventListener("beforeunload",this._unloadHandler,!1),this.active=!1,this.disconnect(t,e),delete this._clientMap[this.clientId]},b.prototype._changeToUnauthenticatedStateAndClearTokens=function(){if(this.authState!==this.UNAUTHENTICATED){var t=this.authState,e=this.signedAuthToken;this.authState=this.UNAUTHENTICATED,this.signedAuthToken=null,this.authToken=null;var r={oldState:t,newState:this.authState};a.prototype.emit.call(this,"authStateChange",r),a.prototype.emit.call(this,"deauthenticate",e)}},b.prototype._changeToAuthenticatedState=function(t){if(this.signedAuthToken=t,this.authToken=this._extractAuthTokenData(t),this.authState!==this.AUTHENTICATED){var e=this.authState;this.authState=this.AUTHENTICATED;var r={oldState:e,newState:this.authState,signedAuthToken:t,authToken:this.authToken};this.preparingPendingSubscriptions||this.processPendingSubscriptions(),a.prototype.emit.call(this,"authStateChange",r)}a.prototype.emit.call(this,"authenticate",t)},b.prototype.decodeBase64=function(t){return r.from(t,"base64").toString("utf8")},b.prototype.encodeBase64=function(t){return r.from(t,"utf8").toString("base64")},b.prototype._extractAuthTokenData=function(t){var e=(t||"").split(".")[1];if(null!=e){var r=e;try{return r=this.decodeBase64(r),JSON.parse(r)}catch(t){return r}}return null},b.prototype.getAuthToken=function(){return this.authToken},b.prototype.getSignedAuthToken=function(){return this.signedAuthToken},b.prototype.authenticate=function(r,n){var o=this;this.emit("#authenticate",r,function(t,e){e&&null!=e.isAuthenticated?e.authError&&(e.authError=i.hydrateError(e.authError)):e={isAuthenticated:o.authState,authError:null},t?("BadConnectionError"!==t.name&&"TimeoutError"!==t.name&&o._changeToUnauthenticatedStateAndClearTokens(),n&&n(t,e)):o.auth.saveToken(o.authTokenName,r,{},function(t){t&&o._onSCError(t),e.isAuthenticated?o._changeToAuthenticatedState(r):o._changeToUnauthenticatedStateAndClearTokens(),n&&n(t,e)})})},b.prototype._tryReconnect=function(t){var e,r=this,n=this.connectAttempts++,o=this.options.autoReconnectOptions;if(null==t||0<n){var i=Math.round(o.initialDelay+(o.randomness||0)*Math.random());e=Math.round(i*Math.pow(o.multiplier,n))}else e=t;e>o.maxDelay&&(e=o.maxDelay),clearTimeout(this._reconnectTimeoutRef),this.pendingReconnect=!0,this.pendingReconnectTimeout=e,this._reconnectTimeoutRef=setTimeout(function(){r.connect()},e)},b.prototype._onSCOpen=function(t){var e=this;this.preparingPendingSubscriptions=!0,t?(this.id=t.id,this.pingTimeout=t.pingTimeout,this.transport.pingTimeout=this.pingTimeout,t.isAuthenticated?this._changeToAuthenticatedState(t.authToken):this._changeToUnauthenticatedStateAndClearTokens()):this._changeToUnauthenticatedStateAndClearTokens(),this.connectAttempts=0,this.options.autoSubscribeOnConnect&&this.processPendingSubscriptions(),a.prototype.emit.call(this,"connect",t,function(){e.processPendingSubscriptions()}),this.state===this.OPEN&&this._flushEmitBuffer()},b.prototype._onSCError=function(t){var e=this;setTimeout(function(){if(e.listeners("error").length<1)throw t;a.prototype.emit.call(e,"error",t)},0)},b.prototype._suspendSubscriptions=function(){var t,e;for(var r in this.channels)this.channels.hasOwnProperty(r)&&(e=(t=this.channels[r]).state===t.SUBSCRIBED||t.state===t.PENDING?t.PENDING:t.UNSUBSCRIBED,this._triggerChannelUnsubscribe(t,e))},b.prototype._abortAllPendingEventsDueToBadConnection=function(t){for(var e,r=this._emitBuffer.head;r;){e=r.next;var n=r.data;clearTimeout(n.timeout),delete n.timeout,r.detach(),r=e;var o=n.callback;if(o){delete n.callback;var i="Event '"+n.event+"' was aborted due to a bad connection",s=new m(i,t);o.call(n,s,n)}n.cid&&this.transport.cancelPendingResponse(n.cid)}},b.prototype._onSCClose=function(t,e,r){if(this.id=null,this.transport&&this.transport.off(),this.pendingReconnect=!1,this.pendingReconnectTimeout=null,clearTimeout(this._reconnectTimeoutRef),this._suspendSubscriptions(),this._abortAllPendingEventsDueToBadConnection(r?"connectAbort":"disconnect"),this.options.autoReconnect&&(4e3===t||4001===t||1005===t?this._tryReconnect(0):1e3!==t&&t<4500&&this._tryReconnect()),r?a.prototype.emit.call(this,"connectAbort",t,e):a.prototype.emit.call(this,"disconnect",t,e),a.prototype.emit.call(this,"close",t,e),!b.ignoreStatuses[t]){var n;n=e?"Socket connection closed with status code "+t+" and reason: "+e:"Socket connection closed with status code "+t;var o=new d(b.errorStatuses[t]||n,t);this._onSCError(o)}},b.prototype._onSCEvent=function(t,e,r){var n=this._privateEventHandlerMap[t];n?n.call(this,e,r):a.prototype.emit.call(this,t,e,function(){r&&r.callback.apply(r,arguments)})},b.prototype.decode=function(t){return this.transport.decode(t)},b.prototype.encode=function(t){return this.transport.encode(t)},b.prototype._flushEmitBuffer=function(){for(var t,e=this._emitBuffer.head;e;){t=e.next;var r=e.data;e.detach(),this.transport.emitObject(r),e=t}},b.prototype._handleEventAckTimeout=function(t,e){e&&e.detach(),delete t.timeout;var r=t.callback;if(r){delete t.callback;var n=new y("Event response for '"+t.event+"' timed out");r.call(t,n,t)}t.cid&&this.transport.cancelPendingResponse(t.cid)},b.prototype._emit=function(t,e,r){var n=this;this.state===this.CLOSED&&this.connect();var o={event:t,callback:r},i=new p.Item;this.options.cloneData?o.data=l(e):o.data=e,(i.data=o).timeout=setTimeout(function(){n._handleEventAckTimeout(o,i)},this.ackTimeout),this._emitBuffer.append(i),this.state===this.OPEN&&this._flushEmitBuffer()},b.prototype.send=function(t){this.transport.send(t)},b.prototype.emit=function(t,e,r){if(null==this._localEvents[t])this._emit(t,e,r);else if("error"===t)a.prototype.emit.call(this,t,e);else{var n=new o('The "'+t+'" event is reserved and cannot be emitted on a client socket');this._onSCError(n)}},b.prototype.publish=function(t,e,r){var n={channel:this._decorateChannelName(t),data:e};this.emit("#publish",n,r)},b.prototype._triggerChannelSubscribe=function(t,e){var r=t.name;if(t.state!==t.SUBSCRIBED){var n=t.state;t.state=t.SUBSCRIBED;var o={channel:r,oldState:n,newState:t.state,subscriptionOptions:e};t.emit("subscribeStateChange",o),t.emit("subscribe",r,e),a.prototype.emit.call(this,"subscribeStateChange",o),a.prototype.emit.call(this,"subscribe",r,e)}},b.prototype._triggerChannelSubscribeFail=function(t,e,r){var n=e.name,o=!e.waitForAuth||this.authState===this.AUTHENTICATED;e.state!==e.UNSUBSCRIBED&&o&&(e.state=e.UNSUBSCRIBED,e.emit("subscribeFail",t,n,r),a.prototype.emit.call(this,"subscribeFail",t,n,r))},b.prototype._cancelPendingSubscribeCallback=function(t){null!=t._pendingSubscriptionCid&&(this.transport.cancelPendingResponse(t._pendingSubscriptionCid),delete t._pendingSubscriptionCid)},b.prototype._decorateChannelName=function(t){return this.channelPrefix&&(t=this.channelPrefix+t),t},b.prototype._undecorateChannelName=function(t){return this.channelPrefix&&0===t.indexOf(this.channelPrefix)?t.replace(this.channelPrefix,""):t},b.prototype._trySubscribe=function(e){var r=this,t=!e.waitForAuth||this.authState===this.AUTHENTICATED;if(this.state===this.OPEN&&!this.preparingPendingSubscriptions&&null==e._pendingSubscriptionCid&&t){var n={noTimeout:!0},o={channel:this._decorateChannelName(e.name)};e.waitForAuth&&(n.waitForAuth=!0,o.waitForAuth=n.waitForAuth),e.data&&(o.data=e.data),e.batch&&(n.batch=!0,o.batch=!0),e._pendingSubscriptionCid=this.transport.emit("#subscribe",o,n,function(t){delete e._pendingSubscriptionCid,t?r._triggerChannelSubscribeFail(t,e,o):r._triggerChannelSubscribe(e,o)}),a.prototype.emit.call(this,"subscribeRequest",e.name,o)}},b.prototype.subscribe=function(t,e){var r=this.channels[t];return r?e&&r.setOptions(e):(r=new n(t,this,e),this.channels[t]=r),r.state===r.UNSUBSCRIBED&&(r.state=r.PENDING,this._trySubscribe(r)),r},b.prototype._triggerChannelUnsubscribe=function(t,e){var r=t.name,n=t.state;if(t.state=e||t.UNSUBSCRIBED,this._cancelPendingSubscribeCallback(t),n===t.SUBSCRIBED){var o={channel:r,oldState:n,newState:t.state};t.emit("subscribeStateChange",o),t.emit("unsubscribe",r),a.prototype.emit.call(this,"subscribeStateChange",o),a.prototype.emit.call(this,"unsubscribe",r)}},b.prototype._tryUnsubscribe=function(t){if(this.state===this.OPEN){var e={noTimeout:!0};t.batch&&(e.batch=!0),this._cancelPendingSubscribeCallback(t);var r=this._decorateChannelName(t.name);this.transport.emit("#unsubscribe",r,e)}},b.prototype.unsubscribe=function(t){var e=this.channels[t];e&&e.state!==e.UNSUBSCRIBED&&(this._triggerChannelUnsubscribe(e),this._tryUnsubscribe(e))},b.prototype.channel=function(t,e){var r=this.channels[t];return r||(r=new n(t,this,e),this.channels[t]=r),r},b.prototype.destroyChannel=function(t){var e=this.channels[t];e&&(e.unwatch(),e.unsubscribe(),delete this.channels[t])},b.prototype.subscriptions=function(t){var e,r=[];for(var n in this.channels)this.channels.hasOwnProperty(n)&&(e=this.channels[n],(t?e&&(e.state===e.SUBSCRIBED||e.state===e.PENDING):e&&e.state===e.SUBSCRIBED)&&r.push(n));return r},b.prototype.isSubscribed=function(t,e){var r=this.channels[t];return e?!!r&&(r.state===r.SUBSCRIBED||r.state===r.PENDING):!!r&&r.state===r.SUBSCRIBED},b.prototype.processPendingSubscriptions=function(){var e=this;this.preparingPendingSubscriptions=!1;var t=[];for(var r in this.channels)if(this.channels.hasOwnProperty(r)){var n=this.channels[r];n.state===n.PENDING&&t.push(n)}t.sort(function(t,e){var r=t.priority||0,n=e.priority||0;return n<r?-1:r<n?1:0}),t.forEach(function(t){e._trySubscribe(t)})},b.prototype.watch=function(t,e){if("function"!=typeof e)throw new f("No handler function was provided");this._channelEmitter.on(t,e)},b.prototype.unwatch=function(t,e){e?this._channelEmitter.removeListener(t,e):this._channelEmitter.removeAllListeners(t)},b.prototype.watchers=function(t){return this._channelEmitter.listeners(t)},E.exports=b}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./auth":2,"./response":4,"./sctransport":6,"buffer/":9,clone:10,"component-emitter":11,"linked-list":14,querystring:17,"sc-channel":18,"sc-errors":20,"sc-formatter":21}],6:[function(h,p){(function(t){var r,s,i=h("component-emitter"),a=h("./response").Response,o=h("querystring");s=t.WebSocket?(r=t.WebSocket,function(t){return new r(t)}):(r=h("ws"),function(t,e){return new r(t,null,e)});var c=h("sc-errors"),n=c.TimeoutError,u=c.BadConnectionError,e=function(t,e,r){var n=this;this.state=this.CLOSED,this.auth=t,this.codec=e,this.options=r,this.connectTimeout=r.connectTimeout,this.pingTimeout=r.ackTimeout,this.pingTimeoutDisabled=!!r.pingTimeoutDisabled,this.callIdGenerator=r.callIdGenerator,this.authTokenName=r.authTokenName,this._pingTimeoutTicker=null,this._callbackMap={},this._batchSendList=[],this.state=this.CONNECTING;var o=this.uri(),i=s(o,this.options);i.binaryType=this.options.binaryType,(this.socket=i).onopen=function(){n._onOpen()},i.onclose=function(t){var e;e=null==t.code?1005:t.code,n._onClose(e,t.reason)},i.onmessage=function(t){n._onMessage(t.data)},i.onerror=function(){n.state===n.CONNECTING&&n._onClose(1006)},this._connectTimeoutRef=setTimeout(function(){n._onClose(4007),n.socket.close(4007)},this.connectTimeout)};e.prototype=Object.create(i.prototype),e.CONNECTING=e.prototype.CONNECTING="connecting",e.OPEN=e.prototype.OPEN="open",e.CLOSED=e.prototype.CLOSED="closed",e.prototype.uri=function(){var t,e=this.options.query||{},r=this.options.secure?"wss":"ws";if(this.options.timestampRequests&&(e[this.options.timestampParam]=(new Date).getTime()),(e=o.encode(e)).length&&(e="?"+e),this.options.host)t=this.options.host;else{var n="";this.options.port&&("wss"===r&&443!==this.options.port||"ws"===r&&80!==this.options.port)&&(n=":"+this.options.port),t=this.options.hostname+n}return r+"://"+t+this.options.path+e},e.prototype._onOpen=function(){var n=this;clearTimeout(this._connectTimeoutRef),this._resetPingTimeout(),this._handshake(function(t,e){var r;t?(r=e&&e.code?e.code:4003,n._onError(t),n._onClose(r,t.toString()),n.socket.close(r)):(n.state=n.OPEN,i.prototype.emit.call(n,"open",e),n._resetPingTimeout())})},e.prototype._handshake=function(n){var e=this;this.auth.loadToken(this.authTokenName,function(t,r){t?n(t):e.emit("#handshake",{authToken:r},{force:!0},function(t,e){e&&(e.authToken=r,e.authError&&(e.authError=c.hydrateError(e.authError))),n(t,e)})})},e.prototype._abortAllPendingEventsDueToBadConnection=function(t){for(var e in this._callbackMap)if(this._callbackMap.hasOwnProperty(e)){var r=this._callbackMap[e];delete this._callbackMap[e],clearTimeout(r.timeout),delete r.timeout;var n="Event '"+r.event+"' was aborted due to a bad connection",o=new u(n,t),i=r.callback;delete r.callback,i.call(r,o,r)}},e.prototype._onClose=function(t,e){delete this.socket.onopen,delete this.socket.onclose,delete this.socket.onmessage,delete this.socket.onerror,clearTimeout(this._connectTimeoutRef),clearTimeout(this._pingTimeoutTicker),clearTimeout(this._batchTimeout),this.state===this.OPEN?(this.state=this.CLOSED,i.prototype.emit.call(this,"close",t,e),this._abortAllPendingEventsDueToBadConnection("disconnect")):this.state===this.CONNECTING&&(this.state=this.CLOSED,i.prototype.emit.call(this,"openAbort",t,e),this._abortAllPendingEventsDueToBadConnection("connectAbort"))},e.prototype._handleEventObject=function(t,e){if(t&&null!=t.event){var r=new a(this,t.cid);i.prototype.emit.call(this,"event",t.event,t.data,r)}else if(t&&null!=t.rid){var n=this._callbackMap[t.rid];if(n&&(clearTimeout(n.timeout),delete n.timeout,delete this._callbackMap[t.rid],n.callback)){var o=c.hydrateError(t.error);n.callback(o,t.data)}}else i.prototype.emit.call(this,"event","raw",e)},e.prototype._onMessage=function(t){i.prototype.emit.call(this,"event","message",t);var e=this.decode(t);if("#1"===e)this._resetPingTimeout(),this.socket.readyState===this.socket.OPEN&&this.sendObject("#2");else if(Array.isArray(e))for(var r=e.length,n=0;n<r;n++)this._handleEventObject(e[n],t);else this._handleEventObject(e,t)},e.prototype._onError=function(t){i.prototype.emit.call(this,"error",t)},e.prototype._resetPingTimeout=function(){if(!this.pingTimeoutDisabled){var t=this;(new Date).getTime(),clearTimeout(this._pingTimeoutTicker),this._pingTimeoutTicker=setTimeout(function(){t._onClose(4e3),t.socket.close(4e3)},this.pingTimeout)}},e.prototype.getBytesReceived=function(){return this.socket.bytesReceived},e.prototype.close=function(t,e){if(t=t||1e3,this.state===this.OPEN){var r={code:t,data:e};this.emit("#disconnect",r),this._onClose(t,e),this.socket.close(t)}else this.state===this.CONNECTING&&(this._onClose(t,e),this.socket.close(t))},e.prototype.emitObject=function(t,e){var r={event:t.event,data:t.data};return t.callback&&(r.cid=t.cid=this.callIdGenerator(),this._callbackMap[t.cid]=t),this.sendObject(r,e),t.cid||null},e.prototype._handleEventAckTimeout=function(t){t.cid&&delete this._callbackMap[t.cid],delete t.timeout;var e=t.callback;if(e){delete t.callback;var r=new n("Event response for '"+t.event+"' timed out");e.call(t,r,t)}},e.prototype.emit=function(t,e,r,n){var o,i,s=this;n?(i=r,o=n):r instanceof Function?(i={},o=r):i=r;var a={event:t,data:e,callback:o};o&&!i.noTimeout&&(a.timeout=setTimeout(function(){s._handleEventAckTimeout(a)},this.options.ackTimeout));var c=null;return(this.state===this.OPEN||i.force)&&(c=this.emitObject(a,i)),c},e.prototype.cancelPendingResponse=function(t){delete this._callbackMap[t]},e.prototype.decode=function(t){return this.codec.decode(t)},e.prototype.encode=function(t){return this.codec.encode(t)},e.prototype.send=function(t){this.socket.readyState!==this.socket.OPEN?this._onClose(1005):this.socket.send(t)},e.prototype.serializeObject=function(t){var e,r;try{e=this.encode(t)}catch(t){r=t,this._onError(r)}return r?null:e},e.prototype.sendObjectBatch=function(t){var e=this;this._batchSendList.push(t),this._batchTimeout||(this._batchTimeout=setTimeout(function(){if(delete e._batchTimeout,e._batchSendList.length){var t=e.serializeObject(e._batchSendList);null!=t&&e.send(t),e._batchSendList=[]}},this.options.pubSubBatchDuration||0))},e.prototype.sendObjectSingle=function(t){var e=this.serializeObject(t);null!=e&&this.send(e)},e.prototype.sendObject=function(t,e){e&&e.batch?this.sendObjectBatch(t):this.sendObjectSingle(t)},p.exports.SCTransport=e}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./response":4,"component-emitter":11,querystring:17,"sc-errors":20,ws:7}],7:[function(t,e){var r,n=(r="undefined"!=typeof WorkerGlobalScope?self:"undefined"!=typeof window&&window||function(){return this}()).WebSocket||r.MozWebSocket;function o(t,e){return e?new n(t,e):new n(t)}n&&(o.prototype=n.prototype),e.exports=n?o:null},{}],8:[function(t,e,r){"use strict";r.byteLength=function(t){var e=f(t),r=e[0],n=e[1];return 3*(r+n)/4-n},r.toByteArray=function(t){for(var e,r=f(t),n=r[0],o=r[1],i=new l((u=n,h=o,3*(u+h)/4-h)),s=0,a=0<o?n-4:n,c=0;c<a;c+=4)e=p[t.charCodeAt(c)]<<18|p[t.charCodeAt(c+1)]<<12|p[t.charCodeAt(c+2)]<<6|p[t.charCodeAt(c+3)],i[s++]=e>>16&255,i[s++]=e>>8&255,i[s++]=255&e;var u,h;2===o&&(e=p[t.charCodeAt(c)]<<2|p[t.charCodeAt(c+1)]>>4,i[s++]=255&e);1===o&&(e=p[t.charCodeAt(c)]<<10|p[t.charCodeAt(c+1)]<<4|p[t.charCodeAt(c+2)]>>2,i[s++]=e>>8&255,i[s++]=255&e);return i},r.fromByteArray=function(t){for(var e,r=t.length,n=r%3,o=[],i=0,s=r-n;i<s;i+=16383)o.push(c(t,i,s<i+16383?s:i+16383));1===n?(e=t[r-1],o.push(a[e>>2]+a[e<<4&63]+"==")):2===n&&(e=(t[r-2]<<8)+t[r-1],o.push(a[e>>10]+a[e>>4&63]+a[e<<2&63]+"="));return o.join("")};for(var a=[],p=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=n.length;o<i;++o)a[o]=n[o],p[n.charCodeAt(o)]=o;function f(t){var e=t.length;if(0<e%4)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,r){for(var n,o,i=[],s=e;s<r;s+=3)n=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),i.push(a[(o=n)>>18&63]+a[o>>12&63]+a[o>>6&63]+a[63&o]);return i.join("")}p["-".charCodeAt(0)]=62,p["_".charCodeAt(0)]=63},{}],9:[function(t,e,D){(function(p){"use strict";var n=t("base64-js"),i=t("ieee754");D.Buffer=p,D.SlowBuffer=function(t){+t!=t&&(t=0);return p.alloc(+t)},D.INSPECT_MAX_BYTES=50;var r=2147483647;function s(t){if(r<t)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return e.__proto__=p.prototype,e}function p(t,e,r){if("number"!=typeof t)return o(t,e,r);if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return c(t)}function o(t,e,r){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!p.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|l(t,e),n=s(r),o=n.write(t,e);o!==r&&(n=n.slice(0,o));return n}(t,e);if(ArrayBuffer.isView(t))return u(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(R(t,ArrayBuffer)||t&&R(t.buffer,ArrayBuffer))return function(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r);return n.__proto__=p.prototype,n}(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return p.from(n,e,r);var o=function(t){if(p.isBuffer(t)){var e=0|h(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!=typeof t.length||P(t.length)?s(0):u(t);if("Buffer"===t.type&&Array.isArray(t.data))return u(t.data)}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return p.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function a(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function c(t){return a(t),s(t<0?0:0|h(t))}function u(t){for(var e=t.length<0?0:0|h(t.length),r=s(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function h(t){if(r<=t)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|t}function l(t,e){if(p.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||R(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=2<arguments.length&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return N(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return U(t).length;default:if(o)return n?-1:N(t).length;e=(""+e).toLowerCase(),o=!0}}function f(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function d(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),P(r=+r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=p.from(e,n)),p.isBuffer(e))return 0===e.length?-1:y(t,e,r,n,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):y(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function y(t,e,r,n,o){var i,s=1,a=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a/=s=2,c/=2,r/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){var h=-1;for(i=r;i<a;i++)if(u(t,i)===u(e,-1===h?0:i-h)){if(-1===h&&(h=i),i-h+1===c)return h*s}else-1!==h&&(i-=i-h),h=-1}else for(a<r+c&&(r=a-c),i=r;0<=i;i--){for(var p=!0,l=0;l<c;l++)if(u(t,i+l)!==u(e,l)){p=!1;break}if(p)return i}return-1}function m(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?o<(n=Number(n))&&(n=o):n=o;var i=e.length;i/2<n&&(n=i/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(P(a))return s;t[r+s]=a}return s}function g(t,e,r,n){return x(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function b(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function v(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,s,a,c,u=t[o],h=null,p=239<u?4:223<u?3:191<u?2:1;if(o+p<=r)switch(p){case 1:u<128&&(h=u);break;case 2:128==(192&(i=t[o+1]))&&127<(c=(31&u)<<6|63&i)&&(h=c);break;case 3:i=t[o+1],s=t[o+2],128==(192&i)&&128==(192&s)&&2047<(c=(15&u)<<12|(63&i)<<6|63&s)&&(c<55296||57343<c)&&(h=c);break;case 4:i=t[o+1],s=t[o+2],a=t[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&65535<(c=(15&u)<<18|(63&i)<<12|(63&s)<<6|63&a)&&c<1114112&&(h=c)}null===h?(h=65533,p=1):65535<h&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),o+=p}return function(t){var e=t.length;if(e<=E)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=E));return r}(n)}D.kMaxLength=r,(p.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&p[Symbol.species]===p&&Object.defineProperty(p,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),p.poolSize=8192,p.from=function(t,e,r){return o(t,e,r)},p.prototype.__proto__=Uint8Array.prototype,p.__proto__=Uint8Array,p.alloc=function(t,e,r){return o=e,i=r,a(n=t),n<=0?s(n):void 0!==o?"string"==typeof i?s(n).fill(o,i):s(n).fill(o):s(n);var n,o,i},p.allocUnsafe=function(t){return c(t)},p.allocUnsafeSlow=function(t){return c(t)},p.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==p.prototype},p.compare=function(t,e){if(R(t,Uint8Array)&&(t=p.from(t,t.offset,t.byteLength)),R(e,Uint8Array)&&(e=p.from(e,e.offset,e.byteLength)),!p.isBuffer(t)||!p.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},p.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return p.alloc(0);var r;if(void 0===e)for(r=e=0;r<t.length;++r)e+=t[r].length;var n=p.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var i=t[r];if(R(i,Uint8Array)&&(i=p.from(i)),!p.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},p.byteLength=l,p.prototype._isBuffer=!0,p.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)f(this,e,e+1);return this},p.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)f(this,e,e+3),f(this,e+1,e+2);return this},p.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)f(this,e,e+7),f(this,e+1,e+6),f(this,e+2,e+5),f(this,e+3,e+4);return this},p.prototype.toLocaleString=p.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?v(this,0,t):function(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return S(this,e,r);case"utf8":case"utf-8":return v(this,e,r);case"ascii":return w(this,e,r);case"latin1":case"binary":return T(this,e,r);case"base64":return b(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}.apply(this,arguments)},p.prototype.equals=function(t){if(!p.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===p.compare(this,t)},p.prototype.inspect=function(){var t="",e=D.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},p.prototype.compare=function(t,e,r,n,o){if(R(t,Uint8Array)&&(t=p.from(t,t.offset,t.byteLength)),!p.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(o<=n&&r<=e)return 0;if(o<=n)return-1;if(r<=e)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(i,s),c=this.slice(n,o),u=t.slice(e,r),h=0;h<a;++h)if(c[h]!==u[h]){i=c[h],s=u[h];break}return i<s?-1:s<i?1:0},p.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},p.prototype.indexOf=function(t,e,r){return d(this,t,e,r,!0)},p.prototype.lastIndexOf=function(t,e,r){return d(this,t,e,r,!1)},p.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||o<r)&&(r=o),0<t.length&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i,s,a,c,u,h,p,l,f,d=!1;;)switch(n){case"hex":return m(this,t,e,r);case"utf8":case"utf-8":return l=e,f=r,x(N(t,(p=this).length-l),p,l,f);case"ascii":return g(this,t,e,r);case"latin1":case"binary":return g(this,t,e,r);case"base64":return c=this,u=e,h=r,x(U(t),c,u,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s=e,a=r,x(function(t,e){for(var r,n,o,i=[],s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,o=r%256,i.push(o),i.push(n);return i}(t,(i=this).length-s),i,s,a);default:if(d)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function w(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function T(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function S(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||n<r)&&(r=n);for(var o="",i=e;i<r;++i)o+=I(t[i]);return o}function k(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function _(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(r<t+e)throw new RangeError("Trying to access beyond buffer length")}function C(t,e,r,n,o,i){if(!p.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(o<e||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function A(t,e,r,n){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function O(t,e,r,n,o){return e=+e,r>>>=0,o||A(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function B(t,e,r,n,o){return e=+e,r>>>=0,o||A(t,0,r,8),i.write(t,e,r,n,52,8),r+8}p.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return n.__proto__=p.prototype,n},p.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||_(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},p.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||_(t,e,this.length);for(var n=this[t+--e],o=1;0<e&&(o*=256);)n+=this[t+--e]*o;return n},p.prototype.readUInt8=function(t,e){return t>>>=0,e||_(t,1,this.length),this[t]},p.prototype.readUInt16LE=function(t,e){return t>>>=0,e||_(t,2,this.length),this[t]|this[t+1]<<8},p.prototype.readUInt16BE=function(t,e){return t>>>=0,e||_(t,2,this.length),this[t]<<8|this[t+1]},p.prototype.readUInt32LE=function(t,e){return t>>>=0,e||_(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},p.prototype.readUInt32BE=function(t,e){return t>>>=0,e||_(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},p.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||_(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return(o*=128)<=n&&(n-=Math.pow(2,8*e)),n},p.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||_(t,e,this.length);for(var n=e,o=1,i=this[t+--n];0<n&&(o*=256);)i+=this[t+--n]*o;return(o*=128)<=i&&(i-=Math.pow(2,8*e)),i},p.prototype.readInt8=function(t,e){return t>>>=0,e||_(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},p.prototype.readInt16LE=function(t,e){t>>>=0,e||_(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},p.prototype.readInt16BE=function(t,e){t>>>=0,e||_(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},p.prototype.readInt32LE=function(t,e){return t>>>=0,e||_(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},p.prototype.readInt32BE=function(t,e){return t>>>=0,e||_(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},p.prototype.readFloatLE=function(t,e){return t>>>=0,e||_(t,4,this.length),i.read(this,t,!0,23,4)},p.prototype.readFloatBE=function(t,e){return t>>>=0,e||_(t,4,this.length),i.read(this,t,!1,23,4)},p.prototype.readDoubleLE=function(t,e){return t>>>=0,e||_(t,8,this.length),i.read(this,t,!0,52,8)},p.prototype.readDoubleBE=function(t,e){return t>>>=0,e||_(t,8,this.length),i.read(this,t,!1,52,8)},p.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||C(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},p.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||C(this,t,e,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[e+o]=255&t;0<=--o&&(i*=256);)this[e+o]=t/i&255;return e+r},p.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,1,255,0),this[e]=255&t,e+1},p.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},p.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},p.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},p.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},p.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);C(this,t,e,r,o-1,-o)}var i=0,s=1,a=0;for(this[e]=255&t;++i<r&&(s*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/s>>0)-a&255;return e+r},p.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);C(this,t,e,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[e+i]=255&t;0<=--i&&(s*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/s>>0)-a&255;return e+r},p.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},p.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},p.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},p.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},p.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},p.prototype.writeFloatLE=function(t,e,r){return O(this,t,e,!0,r)},p.prototype.writeFloatBE=function(t,e,r){return O(this,t,e,!1,r)},p.prototype.writeDoubleLE=function(t,e,r){return B(this,t,e,!0,r)},p.prototype.writeDoubleBE=function(t,e,r){return B(this,t,e,!1,r)},p.prototype.copy=function(t,e,r,n){if(!p.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),0<n&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o=n-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var i=o-1;0<=i;--i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return o},p.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!p.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var s=p.isBuffer(t)?t:p.from(t,n),a=s.length;if(0===a)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=s[i%a]}return this};var e=/[^+/0-9A-Za-z-_]/g;function I(t){return t<16?"0"+t.toString(16):t.toString(16)}function N(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],s=0;s<n;++s){if(55295<(r=t.charCodeAt(s))&&r<57344){if(!o){if(56319<r){-1<(e-=3)&&i.push(239,191,189);continue}if(s+1===n){-1<(e-=3)&&i.push(239,191,189);continue}o=r;continue}if(r<56320){-1<(e-=3)&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&-1<(e-=3)&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function U(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(e,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function x(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function R(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function P(t){return t!=t}}).call(this,t("buffer").Buffer)},{"base64-js":8,buffer:9,ieee754:12}],10:[function(t,e){(function(k){var t=function(){"use strict";function b(t,e){return null!=e&&t instanceof e}var v,E,w;try{v=Map}catch(t){v=function(){}}try{E=Set}catch(t){E=function(){}}try{w=Promise}catch(t){w=function(){}}function T(t,f,e,d,y){"object"==typeof f&&(e=f.depth,d=f.prototype,y=f.includeNonEnumerable,f=f.circular);var m=[],g=[];return void 0===f&&(f=!0),void 0===e&&(e=1/0),function o(t,i){if(null===t)return null;if(0===i)return t;var s,e;if("object"!=typeof t)return t;if(b(t,v))s=new v;else if(b(t,E))s=new E;else if(b(t,w))s=new w(function(e,r){t.then(function(t){e(o(t,i-1))},function(t){r(o(t,i-1))})});else if(T.__isArray(t))s=[];else if(T.__isRegExp(t))s=new RegExp(t.source,S(t)),t.lastIndex&&(s.lastIndex=t.lastIndex);else if(T.__isDate(t))s=new Date(t.getTime());else{if(void 0!==k&&k.isBuffer(t))return s=new k(t.length),t.copy(s),s;b(t,Error)?s=Object.create(t):void 0===d?(e=Object.getPrototypeOf(t),s=Object.create(e)):(s=Object.create(d),e=d)}if(f){var r=m.indexOf(t);if(-1!=r)return g[r];m.push(t),g.push(s)}for(var n in b(t,v)&&t.forEach(function(t,e){var r=o(e,i-1),n=o(t,i-1);s.set(r,n)}),b(t,E)&&t.forEach(function(t){var e=o(t,i-1);s.add(e)}),t){var a;e&&(a=Object.getOwnPropertyDescriptor(e,n)),a&&null==a.set||(s[n]=o(t[n],i-1))}if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(n=0;n<c.length;n++){var u=c[n];(!(p=Object.getOwnPropertyDescriptor(t,u))||p.enumerable||y)&&(s[u]=o(t[u],i-1),p.enumerable||Object.defineProperty(s,u,{enumerable:!1}))}}if(y){var h=Object.getOwnPropertyNames(t);for(n=0;n<h.length;n++){var p,l=h[n];(p=Object.getOwnPropertyDescriptor(t,l))&&p.enumerable||(s[l]=o(t[l],i-1),Object.defineProperty(s,l,{enumerable:!1}))}}return s}(t,e)}function e(t){return Object.prototype.toString.call(t)}function S(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return T.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},T.__objToStr=e,T.__isDate=function(t){return"object"==typeof t&&"[object Date]"===e(t)},T.__isArray=function(t){return"object"==typeof t&&"[object Array]"===e(t)},T.__isRegExp=function(t){return"object"==typeof t&&"[object RegExp]"===e(t)},T.__getRegExpFlags=S,T}();"object"==typeof e&&e.exports&&(e.exports=t)}).call(this,t("buffer").Buffer)},{buffer:9}],11:[function(t,e){function r(t){if(t)return function(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}(t)}void 0!==e&&(e.exports=r),r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<n.length;o++)if((r=n[o])===e||r.fn===e){n.splice(o,1);break}return this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),r=this._callbacks["$"+t];if(r)for(var n=0,o=(r=r.slice(0)).length;n<o;++n)r[n].apply(this,e);return this},r.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},r.prototype.hasListeners=function(t){return!!this.listeners(t).length}},{}],12:[function(t,e,r){r.read=function(t,e,r,n,o){var i,s,a=8*o-n-1,c=(1<<a)-1,u=c>>1,h=-7,p=r?o-1:0,l=r?-1:1,f=t[e+p];for(p+=l,i=f&(1<<-h)-1,f>>=-h,h+=a;0<h;i=256*i+t[e+p],p+=l,h-=8);for(s=i&(1<<-h)-1,i>>=-h,h+=n;0<h;s=256*s+t[e+p],p+=l,h-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),i-=u}return(f?-1:1)*s*Math.pow(2,i-n)},r.write=function(t,e,r,n,o,i){var s,a,c,u=8*i-o-1,h=(1<<u)-1,p=h>>1,l=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:i-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),2<=(e+=1<=s+p?l/c:l*Math.pow(2,1-p))*c&&(s++,c/=2),h<=s+p?(a=0,s=h):1<=s+p?(a=(e*c-1)*Math.pow(2,o),s+=p):(a=e*Math.pow(2,p-1)*Math.pow(2,o),s=0));8<=o;t[r+f]=255&a,f+=d,a/=256,o-=8);for(s=s<<o|a,u+=o;0<u;t[r+f]=255&s,f+=d,s/=256,u-=8);t[r+f-d]|=128*y}},{}],13:[function(t,e){"use strict";var o="An argument without append, prepend, or detach methods was given to `List";function r(){if(arguments.length)return r.from(arguments)}var n=r.prototype;function i(){}r.of=function(){return r.from.call(this,arguments)},r.from=function(t){var e,r,n,o=new this;if(t&&(e=t.length))for(r=-1;++r<e;)null!=(n=t[r])&&o.append(n);return o},n.head=null,n.tail=null,n.toArray=function(){for(var t=this.head,e=[];t;)e.push(t),t=t.next;return e},n.prepend=function(t){if(!t)return!1;if(!t.append||!t.prepend||!t.detach)throw new Error(o+"#prepend`.");var e;return(e=this.head)?e.prepend(t):(t.detach(),(t.list=this).head=t)},n.append=function(t){if(!t)return!1;if(!t.append||!t.prepend||!t.detach)throw new Error(o+"#append`.");var e,r;return(r=this.tail)?r.append(t):(e=this.head)?e.append(t):(t.detach(),(t.list=this).head=t)};var s=(r.Item=i).prototype;s.next=null,s.prev=null,s.list=null,s.detach=function(){var t=this,e=t.list,r=t.prev,n=t.next;return e&&(e.tail===t&&(e.tail=r),e.head===t&&(e.head=n),e.tail===e.head&&(e.tail=null),r&&(r.next=n),n&&(n.prev=r),t.prev=t.next=t.list=null),t},s.prepend=function(t){if(!(t&&t.append&&t.prepend&&t.detach))throw new Error(o+"Item#prepend`.");var e=this,r=e.list,n=e.prev;return!!r&&(t.detach(),n&&((t.prev=n).next=t),t.next=e,t.list=r,e.prev=t,e===r.head&&(r.head=t),r.tail||(r.tail=e),t)},s.append=function(t){if(!(t&&t.append&&t.prepend&&t.detach))throw new Error(o+"Item#append`.");var e=this,r=e.list,n=e.next;return!!r&&(t.detach(),n&&((t.next=n).prev=t),t.prev=e,t.list=r,e.next=t,e!==r.tail&&r.tail||(r.tail=t),t)},e.exports=r},{}],14:[function(t,e){"use strict";e.exports=t("./_source/linked-list.js")},{"./_source/linked-list.js":13}],15:[function(t,e){"use strict";e.exports=function(t,e,r,n){e=e||"&",r=r||"=";var o={};if("string"!=typeof t||0===t.length)return o;var i=/\+/g;t=t.split(e);var s=1e3;n&&"number"==typeof n.maxKeys&&(s=n.maxKeys);var a,c,u=t.length;0<s&&s<u&&(u=s);for(var h=0;h<u;++h){var p,l,f,d,y=t[h].replace(i,"%20"),m=y.indexOf(r);l=0<=m?(p=y.substr(0,m),y.substr(m+1)):(p=y,""),f=decodeURIComponent(p),d=decodeURIComponent(l),a=o,c=f,Object.prototype.hasOwnProperty.call(a,c)?g(o[f])?o[f].push(d):o[f]=[o[f],d]:o[f]=d}return o};var g=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},{}],16:[function(t,e){"use strict";var i=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};e.exports=function(r,n,o,t){return n=n||"&",o=o||"=",null===r&&(r=void 0),"object"==typeof r?a(c(r),function(t){var e=encodeURIComponent(i(t))+o;return s(r[t])?a(r[t],function(t){return e+encodeURIComponent(i(t))}).join(n):e+encodeURIComponent(i(r[t]))}).join(n):t?encodeURIComponent(i(t))+o+encodeURIComponent(i(r)):""};var s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function a(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}var c=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},{}],17:[function(t,e,r){"use strict";r.decode=r.parse=t("./decode"),r.encode=r.stringify=t("./encode")},{"./decode":15,"./encode":16}],18:[function(t,e){var n=t("component-emitter"),r=function(t,e,r){n.call(this),this.PENDING="pending",this.SUBSCRIBED="subscribed",this.UNSUBSCRIBED="unsubscribed",this.name=t,this.state=this.UNSUBSCRIBED,this.client=e,this.options=r||{},this.setOptions(this.options)};(r.prototype=Object.create(n.prototype)).setOptions=function(t){t||(t={}),this.waitForAuth=t.waitForAuth||!1,this.batch=t.batch||!1,void 0!==t.data&&(this.data=t.data)},r.prototype.getState=function(){return this.state},r.prototype.subscribe=function(t){this.client.subscribe(this.name,t)},r.prototype.unsubscribe=function(){this.client.unsubscribe(this.name)},r.prototype.isSubscribed=function(t){return this.client.isSubscribed(this.name,t)},r.prototype.publish=function(t,e){this.client.publish(this.name,t,e)},r.prototype.watch=function(t){this.client.watch(this.name,t)},r.prototype.unwatch=function(t){this.client.unwatch(this.name,t)},r.prototype.watchers=function(){return this.client.watchers(this.name)},r.prototype.destroy=function(){this.client.destroyChannel(this.name)},e.exports.SCChannel=r},{"component-emitter":11}],19:[function(t,e){e.exports=function(t){var s=[],a=[];return function t(e,r){var n,o,i;if("object"!=typeof e||null===e||e instanceof Boolean||e instanceof Date||e instanceof Number||e instanceof RegExp||e instanceof String)return e;for(n=0;n<s.length;n+=1)if(s[n]===e)return{$ref:a[n]};if(s.push(e),a.push(r),"[object Array]"===Object.prototype.toString.apply(e))for(i=[],n=0;n<e.length;n+=1)i[n]=t(e[n],r+"["+n+"]");else for(o in i={},e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=t(e[o],r+"["+JSON.stringify(o)+"]"));return i}(t,"$")}},{}],20:[function(t,e){var o=t("./decycle"),r=function(){return!this}();function n(t,e){this.name="AuthTokenExpiredError",this.message=t,this.expiry=e,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function i(t){this.name="AuthTokenInvalidError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function s(t,e){this.name="AuthTokenNotBeforeError",this.message=t,this.date=e,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function a(t){this.name="AuthTokenError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function c(t,e){this.name="SilentMiddlewareBlockedError",this.message=t,this.type=e,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function u(t){this.name="InvalidActionError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function h(t){this.name="InvalidArgumentsError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function p(t){this.name="InvalidOptionsError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function l(t){this.name="InvalidMessageError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function f(t,e){this.name="SocketProtocolError",this.message=t,this.code=e,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function d(t){this.name="ServerProtocolError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function y(t){this.name="HTTPServerError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function m(t){this.name="ResourceLimitError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function g(t){this.name="TimeoutError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function b(t,e){this.name="BadConnectionError",this.message=t,this.type=e,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function v(t){this.name="BrokerError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function E(t,e){this.name="ProcessExitError",this.message=t,this.code=e,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}function w(t){this.name="UnknownError",this.message=t,Error.captureStackTrace&&!r?Error.captureStackTrace(this,arguments.callee):this.stack=(new Error).stack}n.prototype=Object.create(Error.prototype),i.prototype=Object.create(Error.prototype),s.prototype=Object.create(Error.prototype),a.prototype=Object.create(Error.prototype),c.prototype=Object.create(Error.prototype),u.prototype=Object.create(Error.prototype),h.prototype=Object.create(Error.prototype),p.prototype=Object.create(Error.prototype),l.prototype=Object.create(Error.prototype),f.prototype=Object.create(Error.prototype),d.prototype=Object.create(Error.prototype),y.prototype=Object.create(Error.prototype),m.prototype=Object.create(Error.prototype),g.prototype=Object.create(Error.prototype),b.prototype=Object.create(Error.prototype),v.prototype=Object.create(Error.prototype),E.prototype=Object.create(Error.prototype),w.prototype=Object.create(Error.prototype),e.exports={AuthTokenExpiredError:n,AuthTokenInvalidError:i,AuthTokenNotBeforeError:s,AuthTokenError:a,SilentMiddlewareBlockedError:c,InvalidActionError:u,InvalidArgumentsError:h,InvalidOptionsError:p,InvalidMessageError:l,SocketProtocolError:f,ServerProtocolError:d,HTTPServerError:y,ResourceLimitError:m,TimeoutError:g,BadConnectionError:b,BrokerError:v,ProcessExitError:E,UnknownError:w},e.exports.socketProtocolErrorStatuses={1001:"Socket was disconnected",1002:"A WebSocket protocol error was encountered",1003:"Server terminated socket because it received invalid data",1005:"Socket closed without status code",1006:"Socket hung up",1007:"Message format was incorrect",1008:"Encountered a policy violation",1009:"Message was too big to process",1010:"Client ended the connection because the server did not comply with extension requirements",1011:"Server encountered an unexpected fatal condition",4e3:"Server ping timed out",4001:"Client pong timed out",4002:"Server failed to sign auth token",4003:"Failed to complete handshake",4004:"Client failed to save auth token",4005:"Did not receive #handshake from client before timeout",4006:"Failed to bind socket to message broker",4007:"Client connection establishment timed out",4008:"Server rejected handshake from client"},e.exports.socketProtocolIgnoreStatuses={1e3:"Socket closed normally",1001:"Socket hung up"};var T={domain:1,domainEmitter:1,domainThrown:1};e.exports.dehydrateError=function(t,e){var r;if(t&&"object"==typeof t)for(var n in r={message:t.message},e&&(r.stack=t.stack),t)T[n]||(r[n]=t[n]);else r="function"==typeof t?"[function "+(t.name||"anonymous")+"]":t;return o(r)},e.exports.hydrateError=function(t){var e=null;if(null!=t)if("object"==typeof t)for(var r in e=new Error(t.message),t)t.hasOwnProperty(r)&&(e[r]=t[r]);else e=t;return e},e.exports.decycle=o},{"./decycle":19}],21:[function(t,o){(function(r){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=/^[ \n\r\t]*[{\[]/,e=function(t,e){if(r.ArrayBuffer&&e instanceof r.ArrayBuffer)return{base64:!0,data:function(t){for(var e=new Uint8Array(t),r=e.length,n="",o=0;o<r;o+=3)n+=i[e[o]>>2],n+=i[(3&e[o])<<4|e[o+1]>>4],n+=i[(15&e[o+1])<<2|e[o+2]>>6],n+=i[63&e[o+2]];return r%3==2?n=n.substring(0,n.length-1)+"=":r%3==1&&(n=n.substring(0,n.length-2)+"=="),n}(e)};if(r.Buffer){if(e instanceof r.Buffer)return{base64:!0,data:e.toString("base64")};if(e&&"Buffer"===e.type&&Array.isArray(e.data))return{base64:!0,data:(r.Buffer.from?r.Buffer.from(e.data):new r.Buffer(e.data)).toString("base64")}}return e};o.exports.decode=function(t){if(null==t)return null;if("#1"===t||"#2"===t)return t;var e=t.toString();if(!n.test(e))return e;try{return JSON.parse(e)}catch(t){}return e},o.exports.encode=function(t){return"#1"===t||"#2"===t?t:JSON.stringify(t,e)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],22:[function(t,e){var r=t("./v1"),n=t("./v4"),o=n;o.v1=r,o.v4=n,e.exports=o},{"./v1":25,"./v4":26}],23:[function(t,e){for(var o=[],r=0;r<256;++r)o[r]=(r+256).toString(16).substr(1);e.exports=function(t,e){var r=e||0,n=o;return n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+"-"+n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]+n[t[r++]]}},{}],24:[function(t,e){var r="undefined"!=typeof crypto&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);e.exports=function(){return r(n),n}}else{var o=new Array(16);e.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),o[e]=t>>>((3&e)<<3)&255;return o}}},{}],25:[function(t,e){var d,y,m=t("./lib/rng"),g=t("./lib/bytesToUuid"),b=0,v=0;e.exports=function(t,e,r){var n=e&&r||0,o=e||[],i=(t=t||{}).node||d,s=void 0!==t.clockseq?t.clockseq:y;if(null==i||null==s){var a=m();null==i&&(i=d=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),null==s&&(s=y=16383&(a[6]<<8|a[7]))}var c=void 0!==t.msecs?t.msecs:(new Date).getTime(),u=void 0!==t.nsecs?t.nsecs:v+1,h=c-b+(u-v)/1e4;if(h<0&&void 0===t.clockseq&&(s=s+1&16383),(h<0||b<c)&&void 0===t.nsecs&&(u=0),1e4<=u)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");b=c,y=s;var p=(1e4*(268435455&(c+=122192928e5))+(v=u))%4294967296;o[n++]=p>>>24&255,o[n++]=p>>>16&255,o[n++]=p>>>8&255,o[n++]=255&p;var l=c/4294967296*1e4&268435455;o[n++]=l>>>8&255,o[n++]=255&l,o[n++]=l>>>24&15|16,o[n++]=l>>>16&255,o[n++]=s>>>8|128,o[n++]=255&s;for(var f=0;f<6;++f)o[n+f]=i[f];return e||g(o)}},{"./lib/bytesToUuid":23,"./lib/rng":24}],26:[function(t,e){var s=t("./lib/rng"),a=t("./lib/bytesToUuid");e.exports=function(t,e,r){var n=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||s)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var i=0;i<16;++i)e[n+i]=o[i];return e||a(o)}},{"./lib/bytesToUuid":23,"./lib/rng":24}]},{},[1])(1)});
@@ -26,7 +26,6 @@
26
26
  "/fastify-static/readable-stream",
27
27
  "/fastify/readable-stream",
28
28
  "/htmlparser2/readable-stream",
29
- "/light-my-request/readable-stream",
30
29
  "/pumpify/readable-stream",
31
30
  "/readable-stream",
32
31
  "/string-to-stream/readable-stream",
@@ -53,8 +53,8 @@ We had to make **several interface changes** to keep systeminformation as consis
53
53
  - `getData()`: support for passing parameters and filters (see section General / getData)
54
54
  - `graphics()`: extended nvidia-smi parsing
55
55
  - `networkInterfaces()`: type detection improved (win - wireless)
56
- - `memLayout()`: extended manufacturer list (decoding)
57
- - `memLayout()`: added ECC flag
56
+ - `memoryLayout()`: extended manufacturer list (decoding)
57
+ - `memoryLayout()`: added ECC flag
58
58
  - `osInfo()`: better fqdn (win)
59
59
  - `osinfo()`: added hypervizor if hyper-v is enabled (win only)
60
60
  - `osInfo()`: added remoteSession (win only)
@@ -77,24 +77,6 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
77
77
 
78
78
  | Version | Date | Comment |
79
79
  | -------------- | -------------- | -------- |
80
- | 5.7.7 | 2021-06-15 | `graphics()` improved detection screen resolution (macOS) |
81
- | 5.7.6 | 2021-06-09 | `battery()` improved detection (additional batteries windows) |
82
- | 5.7.5 | 2021-06-08 | `memLayout()` improved clock speed detection (windows) |
83
- | 5.7.4 | 2021-05-27 | `osInfo()`, `cpu()` improved hypervisor, virtualization detection (windows) |
84
- | 5.7.3 | 2021-05-26 | `osInfo()` improved UEFI detection (windows) |
85
- | 5.7.2 | 2021-05-24 | `system()` virtual detection improvement |
86
- | 5.7.1 | 2021-05-20 | `graphics()` Check for qwMemorySize on Windows |
87
- | 5.7.0 | 2021-05-20 | `diskLayout()` added smartdata for win (if istalled) |
88
- | 5.6.22 | 2021-05-18 | `diskLayout()` fixed to small buffer smartdata (linux) |
89
- | 5.6.21 | 2021-05-14 | `graphics()` fixed dual gpu issue (macOS) |
90
- | 5.6.20 | 2021-05-07 | `system()` fixed vm detection (linux) |
91
- | 5.6.19 | 2021-05-06 | `services()` modified service listing (linux) |
92
- | 5.6.18 | 2021-05-06 | `processes()` fixed Windows mem bug (naming conform to all platforms) |
93
- | 5.6.17 | 2021-05-05 | `networkInterfaces()` fixed Windows XP bug (WMIC NetEnabled) |
94
- | 5.6.16 | 2021-05-05 | `graphics()` fixed compare bug |
95
- | 5.6.15 | 2021-05-05 | restored Node 4.x compatibility |
96
- | 5.6.14 | 2021-05-04 | `networkGatewayDefault()` macOS improvement for active VPN |
97
- | 5.6.13 | 2021-05-04 | `dockerImagesInspect()`, `dockerContainerInspect()`, `dockerContainerProcesses()` security updates |
98
80
  | 5.6.12 | 2021-04-09 | `networkinterfaces()` windows detection fix |
99
81
  | 5.6.11 | 2021-04-08 | `versions()` parameter sanitation |
100
82
  | 5.6.10 | 2021-03-29 | `vboxInfo()` fixed windows bug |
@@ -415,8 +397,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
415
397
  | 3.37.2 | 2018-02-15 | fixed bug `battery().percent` for macOS |
416
398
  | 3.37.1 | 2018-02-13 | fixed bug `battery().ischarging` for macOS |
417
399
  | 3.37.0 | 2018-02-11 | extended FreeBSD support `networkStats()` |
418
- | 3.36.
419
- 0 | 2018-02-11 | extended FreeBSD support `networkConnections()` |
400
+ | 3.36.0 | 2018-02-11 | extended FreeBSD support `networkConnections()` |
420
401
  | 3.35.0 | 2018-02-11 | extended FreeBSD support `processLoad()` |
421
402
  | 3.34.1 | 2018-02-11 | updated docs |
422
403
  | 3.34.0 | 2018-02-10 | first partial FreeBSD support |
@@ -103,7 +103,6 @@ si.cpu()
103
103
 
104
104
  (last 7 major and minor version releases)
105
105
 
106
- - Version 5.7.0: `diskLayout()` added S.M.A.R.T for Windows (if installed)
107
106
  - Version 5.6.0: `cpuTemperature()` added added socket and chipset temp (linux)
108
107
  - Version 5.5.0: `dockerVolumes()` added
109
108
  - Version 5.4.0: `dockerImages()` added
@@ -123,7 +122,6 @@ I was able to test it on several Debian, Raspbian, Ubuntu distributions as well
123
122
 
124
123
  If you have comments, suggestions & reports, please feel free to contact me!
125
124
 
126
-
127
125
  I also created a nice little command line tool called [mmon][mmon-github-url] (micro-monitor) for Linux and macOS, also available via [github][mmon-github-url] and [npm][mmon-npm-url]
128
126
 
129
127
 
@@ -425,7 +423,7 @@ Full function reference with examples can be found at [https://systeminformation
425
423
  | | [0].interfaceType | X | | | X | | SATA, PCIe, ... |
426
424
  | | [0].smartStatus | X | | X | X | | S.M.A.R.T Status (see Known Issues) |
427
425
  | | [0].temperature | X | | | | | S.M.A.R.T temperature |
428
- | | [0].smartData | X | | | X | | full S.M.A.R.T data from smartctl<br>requires at least smartmontools 7.0 |
426
+ | | [0].smartData | X | | | | | full S.M.A.R.T data from smartctl<br>requires at least smartmontools 7.0 |
429
427
  | si.blockDevices(cb) | [{...}] | X | | X | X | | returns array of disks, partitions,<br>raids and roms |
430
428
  | | [0].name | X | | X | X | | name |
431
429
  | | [0].type | X | | X | X | | type |
@@ -960,7 +958,6 @@ Written by Sebastian Hildebrandt [sebhildebrandt](https://github.com/sebhildebra
960
958
  - Ricardo Polo [ricardopolo](https://github.com/ricardopolo)
961
959
  - Miłosz Dźwigała [mily20001](https://github.com/mily20001)
962
960
  - cconley717 [cconley717](https://github.com/cconley717)
963
- - Maria Camila Cubides [MariaCamilaCubides](https://github.com/MariaCamilaCubides)
964
961
 
965
962
  OSX Temperature: credits here are going to:
966
963
 
@@ -27,40 +27,6 @@ const _openbsd = (_platform === 'openbsd');
27
27
  const _netbsd = (_platform === 'netbsd');
28
28
  const _sunos = (_platform === 'sunos');
29
29
 
30
- function parseWinBatteryPart(lines, designCapacity, fullChargeCapacity) {
31
- const result = {};
32
- let status = util.getValue(lines, 'BatteryStatus', '=').trim();
33
- // 1 = "Discharging"
34
- // 2 = "On A/C"
35
- // 3 = "Fully Charged"
36
- // 4 = "Low"
37
- // 5 = "Critical"
38
- // 6 = "Charging"
39
- // 7 = "Charging High"
40
- // 8 = "Charging Low"
41
- // 9 = "Charging Critical"
42
- // 10 = "Undefined"
43
- // 11 = "Partially Charged"
44
- if (status >= 0) {
45
- const statusValue = status ? parseInt(status) : 0;
46
- result.status = statusValue;
47
- result.hasBattery = true;
48
- result.maxCapacity = fullChargeCapacity || parseInt(util.getValue(lines, 'DesignCapacity', '=') || 0);
49
- result.designCapacity = parseInt(util.getValue(lines, 'DesignCapacity', '=') || designCapacity);
50
- result.voltage = parseInt(util.getValue(lines, 'DesignVoltage', '=') || 0) / 1000.0;
51
- result.capacityUnit = 'mWh';
52
- result.percent = parseInt(util.getValue(lines, 'EstimatedChargeRemaining', '=') || 0);
53
- result.currentCapacity = parseInt(result.maxCapacity * result.percent / 100);
54
- result.isCharging = (statusValue >= 6 && statusValue <= 9) || statusValue === 11 || (!(statusValue === 3) && !(statusValue === 1) && result.percent < 100);
55
- result.acConnected = result.ischarging || statusValue === 2;
56
- result.model = util.getValue(lines, 'DeviceID', '=');
57
- } else {
58
- result.status = -1;
59
- }
60
-
61
- return result;
62
- }
63
-
64
30
  module.exports = function (callback) {
65
31
 
66
32
  return new Promise((resolve) => {
@@ -209,76 +175,32 @@ module.exports = function (callback) {
209
175
  }
210
176
  if (_windows) {
211
177
  try {
212
- const workload = [];
213
- workload.push(util.wmic('Path Win32_Battery Get /value'));
214
- workload.push(util.powerShell('(Get-WmiObject -Class BatteryStaticData -Namespace ROOT/WMI).DesignedCapacity'));
215
- workload.push(util.powerShell('(Get-WmiObject -Class BatteryFullChargedCapacity -Namespace ROOT/WMI).FullChargedCapacity'));
216
- util.promiseAll(
217
- workload
218
- ).then(data => {
219
- if (data) {
220
- // let parts = data.results[0].split(/\n\s*\n/);
221
- let parts = data.results[0].split('\r\n');
222
- let batteries = [];
223
- for (let i = 0; i < parts.length; i++) {
224
- const hasValue = value => /\S/.test(value);
225
- if (hasValue(parts[i]) && (!batteries.length || !hasValue(parts[i - 1]))) {
226
- batteries.push([]);
227
- }
228
- if (hasValue(parts[i])) {
229
- batteries[batteries.length - 1].push(parts[i]);
230
- }
231
- }
232
- let designCapacities = data.results[1].split('\r\n');
233
- let fullChargeCapacities = data.results[2].split('\r\n');
234
- if (batteries.length) {
235
- let first = false;
236
- let additionalBatteries = [];
237
- for (let i = 0; i < batteries.length; i++) {
238
- let lines = batteries[i];
239
- const designCapacity = designCapacities && designCapacities.length >= (i + 1) && designCapacities[i] ? util.toInt(designCapacities[i]) : 0;
240
- const fullChargeCapacity = fullChargeCapacities && fullChargeCapacities.length >= (i + 1) && fullChargeCapacities[i] ? util.toInt(fullChargeCapacities[i]) : 0;
241
- const parsed = parseWinBatteryPart(lines, designCapacity, fullChargeCapacity);
242
- if (!first && parsed.status > 0 && parsed.status !== 10) {
243
- result.hasBattery = parsed.hasBattery;
244
- result.maxCapacity = parsed.maxCapacity;
245
- result.designCapacity = parsed.designCapacity;
246
- result.voltage = parsed.voltage;
247
- result.capacityUnit = parsed.capacityUnit;
248
- result.percent = parsed.percent;
249
- result.currentCapacity = parsed.currentCapacity;
250
- result.isCharging = parsed.isCharging;
251
- result.acConnected = parsed.acConnected;
252
- result.model = parsed.model;
253
- first = true;
254
- } else if (parsed.status !== -1) {
255
- additionalBatteries.push(
256
- {
257
- hasBattery: parsed.hasBattery,
258
- maxCapacity: parsed.maxCapacity,
259
- designCapacity: parsed.designCapacity,
260
- voltage: parsed.voltage,
261
- capacityUnit: parsed.capacityUnit,
262
- percent: parsed.percent,
263
- currentCapacity: parsed.currentCapacity,
264
- isCharging: parsed.isCharging,
265
- timeRemaining: null,
266
- acConnected: parsed.acConnected,
267
- model: parsed.model,
268
- type: '',
269
- manufacturer: '',
270
- serial: ''
271
- }
272
- );
273
- }
274
- }
275
- if (!first && additionalBatteries.length) {
276
- result = additionalBatteries[0];
277
- additionalBatteries.shift();
278
- }
279
- if (additionalBatteries.length) {
280
- result.additionalBatteries = additionalBatteries;
281
- }
178
+ util.wmic('Path Win32_Battery Get BatteryStatus, DesignCapacity, EstimatedChargeRemaining, DesignVoltage, FullChargeCapacity /value').then((stdout) => {
179
+ if (stdout) {
180
+ let lines = stdout.split('\r\n');
181
+ let status = util.getValue(lines, 'BatteryStatus', '=').trim();
182
+ // 1 = "Discharging"
183
+ // 2 = "On A/C"
184
+ // 3 = "Fully Charged"
185
+ // 4 = "Low"
186
+ // 5 = "Critical"
187
+ // 6 = "Charging"
188
+ // 7 = "Charging High"
189
+ // 8 = "Charging Low"
190
+ // 9 = "Charging Critical"
191
+ // 10 = "Undefined"
192
+ // 11 = "Partially Charged"
193
+ if (status && status != '10') {
194
+ const statusValue = parseInt(status);
195
+ result.hasBattery = true;
196
+ result.maxCapacity = parseInt(util.getValue(lines, 'DesignCapacity', '=') || 0);
197
+ result.designCapacity = parseInt(util.getValue(lines, 'DesignCapacity', '=') || 0);
198
+ result.voltage = parseInt(util.getValue(lines, 'DesignVoltage', '=') || 0) / 1000.0;
199
+ result.capacityUnit = 'mWh';
200
+ result.percent = parseInt(util.getValue(lines, 'EstimatedChargeRemaining', '=') || 0);
201
+ result.currentCapacity = parseInt(result.maxcapacity * result.percent / 100);
202
+ result.isCharging = (statusValue >= 6 && statusValue <= 9) || statusValue === 11 || (!(statusValue === 3) && !(statusValue === 1) && result.percent < 100);
203
+ result.acConnected = result.ischarging || statusValue === 2;
282
204
  }
283
205
  }
284
206
  if (callback) { callback(result); }