antigravity-mobile-proxy 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (600) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/build-manifest.json +2 -2
  3. package/.next/standalone/.next/prerender-manifest.json +3 -3
  4. package/.next/standalone/.next/required-server-files.json +5 -2
  5. package/.next/standalone/.next/server/app/_global-error/page.js +1 -1
  6. package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
  7. package/.next/standalone/.next/server/app/_global-error.html +2 -2
  8. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  9. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  10. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  12. package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  13. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next/standalone/.next/server/app/_not-found/page.js +1 -1
  15. package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  16. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  17. package/.next/standalone/.next/server/app/api/v1/artifacts/[convId]/[filename]/route.js +2 -2
  18. package/.next/standalone/.next/server/app/api/v1/artifacts/[convId]/[filename]/route.js.nft.json +1 -1
  19. package/.next/standalone/.next/server/app/api/v1/artifacts/[convId]/route.js +2 -2
  20. package/.next/standalone/.next/server/app/api/v1/artifacts/[convId]/route.js.nft.json +1 -1
  21. package/.next/standalone/.next/server/app/api/v1/artifacts/active/[filename]/route.js +2 -2
  22. package/.next/standalone/.next/server/app/api/v1/artifacts/active/[filename]/route.js.nft.json +1 -1
  23. package/.next/standalone/.next/server/app/api/v1/artifacts/active/route.js +2 -2
  24. package/.next/standalone/.next/server/app/api/v1/artifacts/active/route.js.nft.json +1 -1
  25. package/.next/standalone/.next/server/app/api/v1/artifacts/route.js +2 -2
  26. package/.next/standalone/.next/server/app/api/v1/artifacts/route.js.nft.json +1 -1
  27. package/.next/standalone/.next/server/app/api/v1/chat/action/route.js +6 -2
  28. package/.next/standalone/.next/server/app/api/v1/chat/action/route.js.nft.json +1 -1
  29. package/.next/standalone/.next/server/app/api/v1/chat/approve/route.js +6 -2
  30. package/.next/standalone/.next/server/app/api/v1/chat/approve/route.js.nft.json +1 -1
  31. package/.next/standalone/.next/server/app/api/v1/chat/history/route.js +6 -2
  32. package/.next/standalone/.next/server/app/api/v1/chat/history/route.js.nft.json +1 -1
  33. package/.next/standalone/.next/server/app/api/v1/chat/mode/route.js +6 -2
  34. package/.next/standalone/.next/server/app/api/v1/chat/mode/route.js.nft.json +1 -1
  35. package/.next/standalone/.next/server/app/api/v1/chat/new/route.js +6 -2
  36. package/.next/standalone/.next/server/app/api/v1/chat/new/route.js.nft.json +1 -1
  37. package/.next/standalone/.next/server/app/api/v1/chat/reject/route.js +6 -2
  38. package/.next/standalone/.next/server/app/api/v1/chat/reject/route.js.nft.json +1 -1
  39. package/.next/standalone/.next/server/app/api/v1/chat/route.js +6 -2
  40. package/.next/standalone/.next/server/app/api/v1/chat/route.js.nft.json +1 -1
  41. package/.next/standalone/.next/server/app/api/v1/chat/state/route.js +6 -2
  42. package/.next/standalone/.next/server/app/api/v1/chat/state/route.js.nft.json +1 -1
  43. package/.next/standalone/.next/server/app/api/v1/chat/stream/route.js +6 -3
  44. package/.next/standalone/.next/server/app/api/v1/chat/stream/route.js.nft.json +1 -1
  45. package/.next/standalone/.next/server/app/api/v1/conversations/active/route.js +2 -2
  46. package/.next/standalone/.next/server/app/api/v1/conversations/active/route.js.nft.json +1 -1
  47. package/.next/standalone/.next/server/app/api/v1/conversations/route.js +6 -3
  48. package/.next/standalone/.next/server/app/api/v1/conversations/route.js.nft.json +1 -1
  49. package/.next/standalone/.next/server/app/api/v1/conversations/select/route.js +6 -2
  50. package/.next/standalone/.next/server/app/api/v1/conversations/select/route.js.nft.json +1 -1
  51. package/.next/standalone/.next/server/app/api/v1/debug/dom/route.js +6 -2
  52. package/.next/standalone/.next/server/app/api/v1/debug/dom/route.js.nft.json +1 -1
  53. package/.next/standalone/.next/server/app/api/v1/debug/scrape/route.js +6 -2
  54. package/.next/standalone/.next/server/app/api/v1/debug/scrape/route.js.nft.json +1 -1
  55. package/.next/standalone/.next/server/app/api/v1/health/route.js +6 -2
  56. package/.next/standalone/.next/server/app/api/v1/health/route.js.nft.json +1 -1
  57. package/.next/standalone/.next/server/app/api/v1/windows/cdp-start/route.js +2 -2
  58. package/.next/standalone/.next/server/app/api/v1/windows/cdp-start/route.js.nft.json +1 -1
  59. package/.next/standalone/.next/server/app/api/v1/windows/cdp-status/route.js +2 -2
  60. package/.next/standalone/.next/server/app/api/v1/windows/cdp-status/route.js.nft.json +1 -1
  61. package/.next/standalone/.next/server/app/api/v1/windows/close/route.js +6 -2
  62. package/.next/standalone/.next/server/app/api/v1/windows/close/route.js.nft.json +1 -1
  63. package/.next/standalone/.next/server/app/api/v1/windows/open/route.js +6 -2
  64. package/.next/standalone/.next/server/app/api/v1/windows/open/route.js.nft.json +1 -1
  65. package/.next/standalone/.next/server/app/api/v1/windows/recent/route.js +2 -2
  66. package/.next/standalone/.next/server/app/api/v1/windows/recent/route.js.nft.json +1 -1
  67. package/.next/standalone/.next/server/app/api/v1/windows/route.js +6 -2
  68. package/.next/standalone/.next/server/app/api/v1/windows/route.js.nft.json +1 -1
  69. package/.next/standalone/.next/server/app/api/v1/windows/select/route.js +6 -2
  70. package/.next/standalone/.next/server/app/api/v1/windows/select/route.js.nft.json +1 -1
  71. package/.next/standalone/.next/server/app/debug/page.js +1 -1
  72. package/.next/standalone/.next/server/app/debug/page.js.nft.json +1 -1
  73. package/.next/standalone/.next/server/app/debug/page_client-reference-manifest.js +1 -1
  74. package/.next/standalone/.next/server/app/favicon.ico/route.js +1 -1
  75. package/.next/standalone/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  76. package/.next/standalone/.next/server/app/page.js +1 -1
  77. package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
  78. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  79. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0d31b133._.js +3 -0
  80. package/.next/standalone/.next/server/chunks/[root-of-the-server]__133ac672._.js +3 -0
  81. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1535be2d._.js +3 -0
  82. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1ee7d416._.js +3 -0
  83. package/.next/standalone/.next/server/chunks/[root-of-the-server]__22df301c._.js +3 -0
  84. package/.next/standalone/.next/server/chunks/[root-of-the-server]__25f5f8ec._.js +3 -0
  85. package/.next/standalone/.next/server/chunks/[root-of-the-server]__26662154._.js +3 -0
  86. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__2ec5ba30._.js → [root-of-the-server]__3fe6d12c._.js} +2 -2
  87. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4b17d628._.js +3 -0
  88. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4c540a38._.js +3 -0
  89. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__8d2624da._.js → [root-of-the-server]__4d161104._.js} +2 -2
  90. package/.next/standalone/.next/server/chunks/[root-of-the-server]__53c4f34d._.js +3 -0
  91. package/.next/standalone/.next/server/chunks/[root-of-the-server]__68965284._.js +3 -0
  92. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8cb67283._.js +5 -0
  93. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8f5ebbc3._.js +7 -0
  94. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8f8bd59f._.js +20 -0
  95. package/.next/standalone/.next/server/chunks/[root-of-the-server]__9166d84a._.js +3 -0
  96. package/.next/standalone/.next/server/chunks/[root-of-the-server]__94275f7f._.js +3 -0
  97. package/.next/standalone/.next/server/chunks/[root-of-the-server]__c34d50c8._.js +3 -0
  98. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__8fdd2340._.js → [root-of-the-server]__c696771d._.js} +2 -2
  99. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0bd52b41._.js → [root-of-the-server]__cd7ccfdd._.js} +2 -2
  100. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d5818e20._.js +3 -0
  101. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__360475ac._.js → [root-of-the-server]__db7b3604._.js} +2 -2
  102. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__eeb89c13._.js → [root-of-the-server]__dc1db6cb._.js} +2 -2
  103. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__4effd91a._.js → [root-of-the-server]__e9181374._.js} +2 -2
  104. package/.next/standalone/.next/server/chunks/[root-of-the-server]__eb9ef4db._.js +3 -0
  105. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__4448d3d4._.js → [root-of-the-server]__ec32b318._.js} +2 -2
  106. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__7f18ffd0._.js → [root-of-the-server]__f54bea3d._.js} +2 -2
  107. package/.next/standalone/.next/server/chunks/[root-of-the-server]__fabd57e0._.js +3 -0
  108. package/.next/standalone/.next/server/chunks/[root-of-the-server]__fd0215df._.js +3 -0
  109. package/.next/standalone/.next/server/chunks/lib_cdp_connection_ts_075c799e._.js +41 -0
  110. package/.next/standalone/.next/server/chunks/node_modules_151ca6ae._.js +3 -0
  111. package/.next/standalone/.next/server/chunks/node_modules_1f8a2929._.js +3 -0
  112. package/.next/standalone/.next/server/chunks/node_modules_2d9a2f12._.js +4 -0
  113. package/.next/standalone/.next/server/chunks/node_modules_3b486fee._.js +3 -0
  114. package/.next/standalone/.next/server/chunks/node_modules_64199bef._.js +3 -0
  115. package/.next/standalone/.next/server/chunks/node_modules_@puppeteer_browsers_lib_esm_main_83020de3.js +3 -0
  116. package/.next/standalone/.next/server/chunks/node_modules_f81d3958._.js +3 -0
  117. package/.next/standalone/.next/server/chunks/node_modules_next_1402a1da._.js +2 -2
  118. package/.next/standalone/.next/server/chunks/node_modules_yargs_helpers_helpers_mjs_abe15519._.js +3 -0
  119. package/.next/standalone/.next/server/chunks/node_modules_yargs_index_mjs_c4f6f97b._.js +56 -0
  120. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__703e5e24._.js +3 -0
  121. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__edab6069._.js +3 -0
  122. package/.next/standalone/.next/server/chunks/ssr/node_modules_63dba3f8._.js +1 -1
  123. package/.next/standalone/.next/server/pages/500.html +2 -2
  124. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  125. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  126. package/.next/standalone/app/globals.css +20 -14
  127. package/.next/standalone/next.config.js +19 -0
  128. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +46 -0
  129. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/glib-2.0/include/glibconfig.h +221 -0
  130. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +1 -0
  131. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  132. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +42 -0
  133. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +30 -0
  134. package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
  135. package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +46 -0
  136. package/.next/standalone/node_modules/next/dist/build/generate-build-id.js +5 -1
  137. package/.next/standalone/package-lock.json +140 -129
  138. package/.next/standalone/package.json +4 -3
  139. package/.next/standalone/scripts/patch-next.js +69 -0
  140. package/.next/standalone/server.js +1 -1
  141. package/.next/standalone/tsconfig.json +14 -4
  142. package/.next/static/chunks/54866979a976deea.css +1 -0
  143. package/package.json +4 -3
  144. package/.next/standalone/.next/server/chunks/[root-of-the-server]__08f06ee9._.js +0 -3
  145. package/.next/standalone/.next/server/chunks/[root-of-the-server]__15c96786._.js +0 -3
  146. package/.next/standalone/.next/server/chunks/[root-of-the-server]__19ee93c1._.js +0 -3
  147. package/.next/standalone/.next/server/chunks/[root-of-the-server]__324dc867._.js +0 -3
  148. package/.next/standalone/.next/server/chunks/[root-of-the-server]__38025e07._.js +0 -3
  149. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4a837477._.js +0 -3
  150. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4f9fdc77._.js +0 -3
  151. package/.next/standalone/.next/server/chunks/[root-of-the-server]__556e6cd5._.js +0 -3
  152. package/.next/standalone/.next/server/chunks/[root-of-the-server]__6479a312._.js +0 -3
  153. package/.next/standalone/.next/server/chunks/[root-of-the-server]__693625a1._.js +0 -3
  154. package/.next/standalone/.next/server/chunks/[root-of-the-server]__6ec98c1f._.js +0 -3
  155. package/.next/standalone/.next/server/chunks/[root-of-the-server]__7f696ede._.js +0 -3
  156. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8aa4aa02._.js +0 -3
  157. package/.next/standalone/.next/server/chunks/[root-of-the-server]__9d217c47._.js +0 -7
  158. package/.next/standalone/.next/server/chunks/[root-of-the-server]__9e54cdc1._.js +0 -3
  159. package/.next/standalone/.next/server/chunks/[root-of-the-server]__a73e4e4f._.js +0 -3
  160. package/.next/standalone/.next/server/chunks/[root-of-the-server]__cd1b9505._.js +0 -3
  161. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d850c12e._.js +0 -3
  162. package/.next/standalone/.next/server/chunks/[root-of-the-server]__ef121746._.js +0 -3
  163. package/.next/standalone/.next/server/chunks/_7273dcfc._.js +0 -3
  164. package/.next/standalone/.next/server/chunks/_8dd0f398._.js +0 -5
  165. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__4fe85c38._.js +0 -3
  166. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__85930638._.js +0 -3
  167. package/.next/standalone/next.config.ts +0 -10
  168. package/.next/standalone/node_modules/@puppeteer/browsers/package.json +0 -125
  169. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/asyncify-helpers.js +0 -53
  170. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/context-asyncify.js +0 -58
  171. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/context.js +0 -691
  172. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/debug.js +0 -6
  173. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/deferred-promise.js +0 -96
  174. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/errors.js +0 -58
  175. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/esmHelpers.js +0 -19
  176. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/generated/emscripten-module.WASM_RELEASE_SYNC.js +0 -387
  177. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/generated/ffi.WASM_RELEASE_SYNC.js +0 -71
  178. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/index.js +0 -128
  179. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/lifetime.js +0 -227
  180. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/memory.js +0 -41
  181. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/module-asyncify.js +0 -97
  182. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/module-test.js +0 -77
  183. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/module.js +0 -302
  184. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/runtime-asyncify.js +0 -49
  185. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/runtime.js +0 -300
  186. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/types-ffi.js +0 -38
  187. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/types.js +0 -58
  188. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/variants.js +0 -169
  189. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/vm-interface.js +0 -12
  190. package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/package.json +0 -60
  191. package/.next/standalone/node_modules/agent-base/dist/helpers.js +0 -66
  192. package/.next/standalone/node_modules/agent-base/dist/index.js +0 -178
  193. package/.next/standalone/node_modules/agent-base/package.json +0 -46
  194. package/.next/standalone/node_modules/ast-types/def/babel-core.js +0 -256
  195. package/.next/standalone/node_modules/ast-types/def/babel.js +0 -11
  196. package/.next/standalone/node_modules/ast-types/def/core.js +0 -298
  197. package/.next/standalone/node_modules/ast-types/def/es-proposals.js +0 -33
  198. package/.next/standalone/node_modules/ast-types/def/es2020.js +0 -16
  199. package/.next/standalone/node_modules/ast-types/def/es6.js +0 -210
  200. package/.next/standalone/node_modules/ast-types/def/es7.js +0 -34
  201. package/.next/standalone/node_modules/ast-types/def/esprima.js +0 -49
  202. package/.next/standalone/node_modules/ast-types/def/flow.js +0 -292
  203. package/.next/standalone/node_modules/ast-types/def/jsx.js +0 -103
  204. package/.next/standalone/node_modules/ast-types/def/type-annotations.js +0 -40
  205. package/.next/standalone/node_modules/ast-types/def/typescript.js +0 -344
  206. package/.next/standalone/node_modules/ast-types/fork.js +0 -52
  207. package/.next/standalone/node_modules/ast-types/gen/namedTypes.js +0 -6
  208. package/.next/standalone/node_modules/ast-types/lib/equiv.js +0 -154
  209. package/.next/standalone/node_modules/ast-types/lib/node-path.js +0 -411
  210. package/.next/standalone/node_modules/ast-types/lib/path-visitor.js +0 -343
  211. package/.next/standalone/node_modules/ast-types/lib/path.js +0 -331
  212. package/.next/standalone/node_modules/ast-types/lib/scope.js +0 -318
  213. package/.next/standalone/node_modules/ast-types/lib/shared.js +0 -47
  214. package/.next/standalone/node_modules/ast-types/lib/types.js +0 -780
  215. package/.next/standalone/node_modules/ast-types/main.js +0 -53
  216. package/.next/standalone/node_modules/ast-types/package.json +0 -65
  217. package/.next/standalone/node_modules/b4a/index.js +0 -188
  218. package/.next/standalone/node_modules/b4a/package.json +0 -49
  219. package/.next/standalone/node_modules/basic-ftp/dist/Client.js +0 -782
  220. package/.next/standalone/node_modules/basic-ftp/dist/FileInfo.js +0 -92
  221. package/.next/standalone/node_modules/basic-ftp/dist/FtpContext.js +0 -365
  222. package/.next/standalone/node_modules/basic-ftp/dist/ProgressTracker.js +0 -72
  223. package/.next/standalone/node_modules/basic-ftp/dist/StringEncoding.js +0 -2
  224. package/.next/standalone/node_modules/basic-ftp/dist/StringWriter.js +0 -23
  225. package/.next/standalone/node_modules/basic-ftp/dist/index.js +0 -28
  226. package/.next/standalone/node_modules/basic-ftp/dist/netUtils.js +0 -66
  227. package/.next/standalone/node_modules/basic-ftp/dist/parseControlResponse.js +0 -66
  228. package/.next/standalone/node_modules/basic-ftp/dist/parseList.js +0 -79
  229. package/.next/standalone/node_modules/basic-ftp/dist/parseListDOS.js +0 -52
  230. package/.next/standalone/node_modules/basic-ftp/dist/parseListMLSD.js +0 -187
  231. package/.next/standalone/node_modules/basic-ftp/dist/parseListUnix.js +0 -155
  232. package/.next/standalone/node_modules/basic-ftp/dist/transfer.js +0 -318
  233. package/.next/standalone/node_modules/basic-ftp/package.json +0 -52
  234. package/.next/standalone/node_modules/buffer-crc32/index.js +0 -111
  235. package/.next/standalone/node_modules/buffer-crc32/package.json +0 -39
  236. package/.next/standalone/node_modules/cliui/build/lib/index.js +0 -287
  237. package/.next/standalone/node_modules/cliui/build/lib/string-utils.js +0 -27
  238. package/.next/standalone/node_modules/cliui/index.mjs +0 -13
  239. package/.next/standalone/node_modules/cliui/package.json +0 -83
  240. package/.next/standalone/node_modules/data-uri-to-buffer/dist/common.js +0 -54
  241. package/.next/standalone/node_modules/data-uri-to-buffer/dist/node.js +0 -26
  242. package/.next/standalone/node_modules/data-uri-to-buffer/package.json +0 -48
  243. package/.next/standalone/node_modules/debug/package.json +0 -64
  244. package/.next/standalone/node_modules/debug/src/browser.js +0 -272
  245. package/.next/standalone/node_modules/debug/src/common.js +0 -292
  246. package/.next/standalone/node_modules/debug/src/index.js +0 -10
  247. package/.next/standalone/node_modules/debug/src/node.js +0 -263
  248. package/.next/standalone/node_modules/degenerator/dist/compile.js +0 -107
  249. package/.next/standalone/node_modules/degenerator/dist/degenerator.js +0 -156
  250. package/.next/standalone/node_modules/degenerator/dist/index.js +0 -19
  251. package/.next/standalone/node_modules/degenerator/package.json +0 -42
  252. package/.next/standalone/node_modules/end-of-stream/index.js +0 -96
  253. package/.next/standalone/node_modules/end-of-stream/package.json +0 -37
  254. package/.next/standalone/node_modules/escalade/package.json +0 -74
  255. package/.next/standalone/node_modules/escodegen/escodegen.js +0 -2667
  256. package/.next/standalone/node_modules/escodegen/package.json +0 -63
  257. package/.next/standalone/node_modules/esprima/dist/esprima.js +0 -6709
  258. package/.next/standalone/node_modules/esprima/package.json +0 -112
  259. package/.next/standalone/node_modules/estraverse/estraverse.js +0 -805
  260. package/.next/standalone/node_modules/estraverse/package.json +0 -40
  261. package/.next/standalone/node_modules/esutils/lib/ast.js +0 -144
  262. package/.next/standalone/node_modules/esutils/lib/code.js +0 -135
  263. package/.next/standalone/node_modules/esutils/lib/keyword.js +0 -165
  264. package/.next/standalone/node_modules/esutils/lib/utils.js +0 -33
  265. package/.next/standalone/node_modules/esutils/package.json +0 -44
  266. package/.next/standalone/node_modules/events-universal/default.js +0 -1
  267. package/.next/standalone/node_modules/events-universal/package.json +0 -39
  268. package/.next/standalone/node_modules/extract-zip/LICENSE +0 -23
  269. package/.next/standalone/node_modules/extract-zip/cli.js +0 -19
  270. package/.next/standalone/node_modules/extract-zip/index.js +0 -173
  271. package/.next/standalone/node_modules/extract-zip/package.json +0 -80
  272. package/.next/standalone/node_modules/extract-zip/readme.md +0 -57
  273. package/.next/standalone/node_modules/fast-fifo/fixed-size.js +0 -39
  274. package/.next/standalone/node_modules/fast-fifo/index.js +0 -48
  275. package/.next/standalone/node_modules/fast-fifo/package.json +0 -28
  276. package/.next/standalone/node_modules/fd-slicer/index.js +0 -296
  277. package/.next/standalone/node_modules/fd-slicer/package.json +0 -36
  278. package/.next/standalone/node_modules/get-stream/buffer-stream.js +0 -52
  279. package/.next/standalone/node_modules/get-stream/index.js +0 -60
  280. package/.next/standalone/node_modules/get-stream/package.json +0 -50
  281. package/.next/standalone/node_modules/get-uri/dist/data.js +0 -43
  282. package/.next/standalone/node_modules/get-uri/dist/file.js +0 -57
  283. package/.next/standalone/node_modules/get-uri/dist/ftp.js +0 -93
  284. package/.next/standalone/node_modules/get-uri/dist/http-error.js +0 -15
  285. package/.next/standalone/node_modules/get-uri/dist/http.js +0 -191
  286. package/.next/standalone/node_modules/get-uri/dist/https.js +0 -16
  287. package/.next/standalone/node_modules/get-uri/dist/index.js +0 -57
  288. package/.next/standalone/node_modules/get-uri/dist/notfound.js +0 -16
  289. package/.next/standalone/node_modules/get-uri/dist/notmodified.js +0 -17
  290. package/.next/standalone/node_modules/get-uri/package.json +0 -58
  291. package/.next/standalone/node_modules/has-flag/index.js +0 -8
  292. package/.next/standalone/node_modules/has-flag/package.json +0 -46
  293. package/.next/standalone/node_modules/http-proxy-agent/dist/index.js +0 -148
  294. package/.next/standalone/node_modules/http-proxy-agent/package.json +0 -47
  295. package/.next/standalone/node_modules/https-proxy-agent/dist/index.js +0 -180
  296. package/.next/standalone/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -101
  297. package/.next/standalone/node_modules/https-proxy-agent/package.json +0 -50
  298. package/.next/standalone/node_modules/ip-address/dist/address-error.js +0 -12
  299. package/.next/standalone/node_modules/ip-address/dist/common.js +0 -46
  300. package/.next/standalone/node_modules/ip-address/dist/ip-address.js +0 -35
  301. package/.next/standalone/node_modules/ip-address/dist/ipv4.js +0 -360
  302. package/.next/standalone/node_modules/ip-address/dist/ipv6.js +0 -1003
  303. package/.next/standalone/node_modules/ip-address/dist/v4/constants.js +0 -8
  304. package/.next/standalone/node_modules/ip-address/dist/v6/constants.js +0 -76
  305. package/.next/standalone/node_modules/ip-address/dist/v6/helpers.js +0 -45
  306. package/.next/standalone/node_modules/ip-address/dist/v6/regular-expressions.js +0 -95
  307. package/.next/standalone/node_modules/ip-address/package.json +0 -78
  308. package/.next/standalone/node_modules/lru-cache/index.js +0 -1227
  309. package/.next/standalone/node_modules/lru-cache/package.json +0 -96
  310. package/.next/standalone/node_modules/ms/index.js +0 -162
  311. package/.next/standalone/node_modules/ms/package.json +0 -38
  312. package/.next/standalone/node_modules/netmask/lib/netmask.js +0 -208
  313. package/.next/standalone/node_modules/netmask/package.json +0 -36
  314. package/.next/standalone/node_modules/once/once.js +0 -42
  315. package/.next/standalone/node_modules/once/package.json +0 -33
  316. package/.next/standalone/node_modules/pac-proxy-agent/dist/index.js +0 -238
  317. package/.next/standalone/node_modules/pac-proxy-agent/package.json +0 -58
  318. package/.next/standalone/node_modules/pac-resolver/dist/dateRange.js +0 -73
  319. package/.next/standalone/node_modules/pac-resolver/dist/dnsDomainIs.js +0 -30
  320. package/.next/standalone/node_modules/pac-resolver/dist/dnsDomainLevels.js +0 -28
  321. package/.next/standalone/node_modules/pac-resolver/dist/dnsResolve.js +0 -32
  322. package/.next/standalone/node_modules/pac-resolver/dist/index.js +0 -87
  323. package/.next/standalone/node_modules/pac-resolver/dist/ip.js +0 -50
  324. package/.next/standalone/node_modules/pac-resolver/dist/isInNet.js +0 -42
  325. package/.next/standalone/node_modules/pac-resolver/dist/isPlainHostName.js +0 -23
  326. package/.next/standalone/node_modules/pac-resolver/dist/isResolvable.js +0 -23
  327. package/.next/standalone/node_modules/pac-resolver/dist/localHostOrDomainIs.js +0 -40
  328. package/.next/standalone/node_modules/pac-resolver/dist/myIpAddress.js +0 -50
  329. package/.next/standalone/node_modules/pac-resolver/dist/shExpMatch.js +0 -41
  330. package/.next/standalone/node_modules/pac-resolver/dist/timeRange.js +0 -92
  331. package/.next/standalone/node_modules/pac-resolver/dist/util.js +0 -22
  332. package/.next/standalone/node_modules/pac-resolver/dist/weekdayRange.js +0 -91
  333. package/.next/standalone/node_modules/pac-resolver/package.json +0 -47
  334. package/.next/standalone/node_modules/pend/index.js +0 -55
  335. package/.next/standalone/node_modules/pend/package.json +0 -18
  336. package/.next/standalone/node_modules/progress/index.js +0 -1
  337. package/.next/standalone/node_modules/progress/lib/node-progress.js +0 -236
  338. package/.next/standalone/node_modules/progress/package.json +0 -26
  339. package/.next/standalone/node_modules/proxy-agent/dist/index.js +0 -138
  340. package/.next/standalone/node_modules/proxy-agent/package.json +0 -60
  341. package/.next/standalone/node_modules/proxy-from-env/index.js +0 -108
  342. package/.next/standalone/node_modules/proxy-from-env/package.json +0 -34
  343. package/.next/standalone/node_modules/pump/index.js +0 -86
  344. package/.next/standalone/node_modules/pump/package.json +0 -30
  345. package/.next/standalone/node_modules/puppeteer-core/lib/esm/package.json +0 -1
  346. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.js +0 -204
  347. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/BrowserContext.js +0 -182
  348. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/CDPSession.js +0 -68
  349. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/DeviceRequestPrompt.js +0 -34
  350. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.js +0 -90
  351. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.js +0 -1406
  352. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandleSymbol.js +0 -10
  353. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.js +0 -904
  354. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/HTTPRequest.js +0 -461
  355. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/HTTPResponse.js +0 -56
  356. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Input.js +0 -211
  357. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/JSHandle.js +0 -227
  358. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js +0 -1511
  359. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Realm.js +0 -44
  360. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Target.js +0 -49
  361. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/WebWorker.js +0 -106
  362. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/api.js +0 -22
  363. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/locators/locators.js +0 -769
  364. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserConnector.js +0 -83
  365. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Accessibility.js +0 -591
  366. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Binding.js +0 -162
  367. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BluetoothEmulation.js +0 -26
  368. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js +0 -327
  369. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BrowserConnector.js +0 -26
  370. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BrowserContext.js +0 -192
  371. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CdpPreloadScript.js +0 -39
  372. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CdpSession.js +0 -129
  373. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js +0 -244
  374. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Coverage.js +0 -372
  375. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/DeviceRequestPrompt.js +0 -151
  376. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.js +0 -23
  377. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ElementHandle.js +0 -206
  378. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/EmulationManager.js +0 -458
  379. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.js +0 -457
  380. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExtensionTransport.js +0 -175
  381. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Frame.js +0 -358
  382. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameManager.js +0 -455
  383. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameManagerEvents.js +0 -24
  384. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameTree.js +0 -91
  385. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/HTTPRequest.js +0 -195
  386. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/HTTPResponse.js +0 -126
  387. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Input.js +0 -499
  388. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.js +0 -157
  389. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorlds.js +0 -20
  390. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.js +0 -101
  391. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/LifecycleWatcher.js +0 -174
  392. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/NetworkEventManager.js +0 -162
  393. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/NetworkManager.js +0 -601
  394. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js +0 -1011
  395. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.js +0 -69
  396. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Target.js +0 -243
  397. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/TargetManageEvents.js +0 -7
  398. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/TargetManager.js +0 -320
  399. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Tracing.js +0 -110
  400. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/WebWorker.js +0 -73
  401. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.js +0 -43
  402. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.js +0 -216
  403. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js +0 -54
  404. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js +0 -129
  405. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js +0 -39
  406. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/CSSQueryHandler.js +0 -18
  407. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js +0 -133
  408. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js +0 -78
  409. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/CustomQueryHandler.js +0 -114
  410. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js +0 -109
  411. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Device.js +0 -1604
  412. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js +0 -94
  413. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js +0 -128
  414. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js +0 -75
  415. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/GetQueryHandler.js +0 -70
  416. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/HandleIterator.js +0 -142
  417. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/LazyArg.js +0 -23
  418. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManagerEvents.js +0 -21
  419. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js +0 -58
  420. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PQueryHandler.js +0 -18
  421. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PSelectorParser.js +0 -100
  422. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PierceQueryHandler.js +0 -18
  423. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js +0 -98
  424. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js +0 -225
  425. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/ScriptInjector.js +0 -51
  426. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js +0 -69
  427. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.js +0 -24
  428. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/TextQueryHandler.js +0 -15
  429. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js +0 -39
  430. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js +0 -394
  431. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/WaitTask.js +0 -197
  432. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/XPathQueryHandler.js +0 -21
  433. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/common.js +0 -35
  434. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.js +0 -375
  435. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js +0 -24
  436. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.js +0 -9
  437. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/index-browser.js +0 -11
  438. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/index.js +0 -8
  439. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/puppeteer-core.js +0 -41
  440. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js +0 -14
  441. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/AsyncIterableUtil.js +0 -29
  442. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js +0 -105
  443. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/ErrorLike.js +0 -41
  444. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/Function.js +0 -70
  445. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/Mutex.js +0 -46
  446. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/assert.js +0 -18
  447. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.js +0 -232
  448. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/disposable.js +0 -342
  449. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/encoding.js +0 -63
  450. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/incremental-id-generator.js +0 -18
  451. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.js +0 -13
  452. package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/version.js +0 -10
  453. package/.next/standalone/node_modules/puppeteer-core/lib/esm/third_party/mitt/mitt.js +0 -44
  454. package/.next/standalone/node_modules/puppeteer-core/lib/esm/third_party/parsel-js/parsel-js.js +0 -196
  455. package/.next/standalone/node_modules/puppeteer-core/lib/esm/third_party/rxjs/rxjs.js +0 -2887
  456. package/.next/standalone/node_modules/puppeteer-core/package.json +0 -169
  457. package/.next/standalone/node_modules/semver/functions/clean.js +0 -8
  458. package/.next/standalone/node_modules/semver/functions/compare-build.js +0 -9
  459. package/.next/standalone/node_modules/semver/functions/compare-loose.js +0 -5
  460. package/.next/standalone/node_modules/semver/functions/diff.js +0 -60
  461. package/.next/standalone/node_modules/semver/functions/inc.js +0 -21
  462. package/.next/standalone/node_modules/semver/functions/major.js +0 -5
  463. package/.next/standalone/node_modules/semver/functions/minor.js +0 -5
  464. package/.next/standalone/node_modules/semver/functions/patch.js +0 -5
  465. package/.next/standalone/node_modules/semver/functions/prerelease.js +0 -8
  466. package/.next/standalone/node_modules/semver/functions/rcompare.js +0 -5
  467. package/.next/standalone/node_modules/semver/functions/rsort.js +0 -5
  468. package/.next/standalone/node_modules/semver/functions/sort.js +0 -5
  469. package/.next/standalone/node_modules/semver/functions/valid.js +0 -8
  470. package/.next/standalone/node_modules/semver/index.js +0 -91
  471. package/.next/standalone/node_modules/semver/ranges/gtr.js +0 -6
  472. package/.next/standalone/node_modules/semver/ranges/intersects.js +0 -9
  473. package/.next/standalone/node_modules/semver/ranges/ltr.js +0 -6
  474. package/.next/standalone/node_modules/semver/ranges/max-satisfying.js +0 -27
  475. package/.next/standalone/node_modules/semver/ranges/min-satisfying.js +0 -26
  476. package/.next/standalone/node_modules/semver/ranges/min-version.js +0 -63
  477. package/.next/standalone/node_modules/semver/ranges/outside.js +0 -82
  478. package/.next/standalone/node_modules/semver/ranges/simplify.js +0 -49
  479. package/.next/standalone/node_modules/semver/ranges/subset.js +0 -249
  480. package/.next/standalone/node_modules/semver/ranges/to-comparators.js +0 -10
  481. package/.next/standalone/node_modules/semver/ranges/valid.js +0 -13
  482. package/.next/standalone/node_modules/smart-buffer/build/smartbuffer.js +0 -1233
  483. package/.next/standalone/node_modules/smart-buffer/build/utils.js +0 -108
  484. package/.next/standalone/node_modules/smart-buffer/package.json +0 -79
  485. package/.next/standalone/node_modules/socks/build/client/socksclient.js +0 -793
  486. package/.next/standalone/node_modules/socks/build/common/constants.js +0 -108
  487. package/.next/standalone/node_modules/socks/build/common/helpers.js +0 -167
  488. package/.next/standalone/node_modules/socks/build/common/receivebuffer.js +0 -43
  489. package/.next/standalone/node_modules/socks/build/common/util.js +0 -25
  490. package/.next/standalone/node_modules/socks/build/index.js +0 -18
  491. package/.next/standalone/node_modules/socks/package.json +0 -58
  492. package/.next/standalone/node_modules/socks-proxy-agent/dist/index.js +0 -195
  493. package/.next/standalone/node_modules/socks-proxy-agent/package.json +0 -142
  494. package/.next/standalone/node_modules/source-map/lib/array-set.js +0 -121
  495. package/.next/standalone/node_modules/source-map/lib/base64-vlq.js +0 -140
  496. package/.next/standalone/node_modules/source-map/lib/base64.js +0 -67
  497. package/.next/standalone/node_modules/source-map/lib/binary-search.js +0 -111
  498. package/.next/standalone/node_modules/source-map/lib/mapping-list.js +0 -79
  499. package/.next/standalone/node_modules/source-map/lib/quick-sort.js +0 -114
  500. package/.next/standalone/node_modules/source-map/lib/source-map-consumer.js +0 -1145
  501. package/.next/standalone/node_modules/source-map/lib/source-map-generator.js +0 -425
  502. package/.next/standalone/node_modules/source-map/lib/source-node.js +0 -413
  503. package/.next/standalone/node_modules/source-map/lib/util.js +0 -488
  504. package/.next/standalone/node_modules/source-map/package.json +0 -73
  505. package/.next/standalone/node_modules/source-map/source-map.js +0 -8
  506. package/.next/standalone/node_modules/streamx/index.js +0 -1184
  507. package/.next/standalone/node_modules/streamx/package.json +0 -34
  508. package/.next/standalone/node_modules/supports-color/index.js +0 -135
  509. package/.next/standalone/node_modules/supports-color/package.json +0 -53
  510. package/.next/standalone/node_modules/tar-stream/constants.js +0 -14
  511. package/.next/standalone/node_modules/tar-stream/extract.js +0 -406
  512. package/.next/standalone/node_modules/tar-stream/headers.js +0 -321
  513. package/.next/standalone/node_modules/tar-stream/index.js +0 -2
  514. package/.next/standalone/node_modules/tar-stream/pack.js +0 -287
  515. package/.next/standalone/node_modules/tar-stream/package.json +0 -42
  516. package/.next/standalone/node_modules/text-decoder/index.js +0 -64
  517. package/.next/standalone/node_modules/text-decoder/lib/pass-through-decoder.js +0 -19
  518. package/.next/standalone/node_modules/text-decoder/lib/utf8-decoder.js +0 -185
  519. package/.next/standalone/node_modules/text-decoder/package.json +0 -39
  520. package/.next/standalone/node_modules/tslib/package.json +0 -47
  521. package/.next/standalone/node_modules/tslib/tslib.js +0 -484
  522. package/.next/standalone/node_modules/wrappy/package.json +0 -29
  523. package/.next/standalone/node_modules/wrappy/wrappy.js +0 -33
  524. package/.next/standalone/node_modules/ws/lib/buffer-util.js +0 -131
  525. package/.next/standalone/node_modules/ws/lib/constants.js +0 -19
  526. package/.next/standalone/node_modules/ws/lib/event-target.js +0 -292
  527. package/.next/standalone/node_modules/ws/lib/extension.js +0 -203
  528. package/.next/standalone/node_modules/ws/lib/limiter.js +0 -55
  529. package/.next/standalone/node_modules/ws/lib/permessage-deflate.js +0 -528
  530. package/.next/standalone/node_modules/ws/lib/receiver.js +0 -706
  531. package/.next/standalone/node_modules/ws/lib/sender.js +0 -602
  532. package/.next/standalone/node_modules/ws/lib/stream.js +0 -161
  533. package/.next/standalone/node_modules/ws/lib/subprotocol.js +0 -62
  534. package/.next/standalone/node_modules/ws/lib/validation.js +0 -152
  535. package/.next/standalone/node_modules/ws/lib/websocket-server.js +0 -554
  536. package/.next/standalone/node_modules/ws/lib/websocket.js +0 -1393
  537. package/.next/standalone/node_modules/ws/package.json +0 -69
  538. package/.next/standalone/node_modules/ws/wrapper.mjs +0 -8
  539. package/.next/standalone/node_modules/y18n/build/lib/index.js +0 -174
  540. package/.next/standalone/node_modules/y18n/build/lib/platform-shims/node.js +0 -19
  541. package/.next/standalone/node_modules/y18n/index.mjs +0 -8
  542. package/.next/standalone/node_modules/y18n/package.json +0 -70
  543. package/.next/standalone/node_modules/yargs/build/lib/argsert.js +0 -62
  544. package/.next/standalone/node_modules/yargs/build/lib/command.js +0 -449
  545. package/.next/standalone/node_modules/yargs/build/lib/completion-templates.js +0 -48
  546. package/.next/standalone/node_modules/yargs/build/lib/completion.js +0 -243
  547. package/.next/standalone/node_modules/yargs/build/lib/middleware.js +0 -88
  548. package/.next/standalone/node_modules/yargs/build/lib/parse-command.js +0 -32
  549. package/.next/standalone/node_modules/yargs/build/lib/typings/common-types.js +0 -9
  550. package/.next/standalone/node_modules/yargs/build/lib/usage.js +0 -584
  551. package/.next/standalone/node_modules/yargs/build/lib/utils/apply-extends.js +0 -59
  552. package/.next/standalone/node_modules/yargs/build/lib/utils/is-promise.js +0 -5
  553. package/.next/standalone/node_modules/yargs/build/lib/utils/levenshtein.js +0 -34
  554. package/.next/standalone/node_modules/yargs/build/lib/utils/maybe-async-result.js +0 -17
  555. package/.next/standalone/node_modules/yargs/build/lib/utils/obj-filter.js +0 -10
  556. package/.next/standalone/node_modules/yargs/build/lib/utils/process-argv.js +0 -17
  557. package/.next/standalone/node_modules/yargs/build/lib/utils/set-blocking.js +0 -12
  558. package/.next/standalone/node_modules/yargs/build/lib/utils/which-module.js +0 -10
  559. package/.next/standalone/node_modules/yargs/build/lib/validation.js +0 -305
  560. package/.next/standalone/node_modules/yargs/build/lib/yargs-factory.js +0 -1512
  561. package/.next/standalone/node_modules/yargs/build/lib/yerror.js +0 -9
  562. package/.next/standalone/node_modules/yargs/helpers/helpers.mjs +0 -10
  563. package/.next/standalone/node_modules/yargs/index.mjs +0 -8
  564. package/.next/standalone/node_modules/yargs/lib/platform-shims/esm.mjs +0 -73
  565. package/.next/standalone/node_modules/yargs/package.json +0 -123
  566. package/.next/standalone/node_modules/yargs-parser/build/lib/index.js +0 -62
  567. package/.next/standalone/node_modules/yargs-parser/build/lib/string-utils.js +0 -65
  568. package/.next/standalone/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +0 -40
  569. package/.next/standalone/node_modules/yargs-parser/build/lib/yargs-parser-types.js +0 -12
  570. package/.next/standalone/node_modules/yargs-parser/build/lib/yargs-parser.js +0 -1045
  571. package/.next/standalone/node_modules/yargs-parser/package.json +0 -92
  572. package/.next/standalone/node_modules/yauzl/LICENSE +0 -21
  573. package/.next/standalone/node_modules/yauzl/README.md +0 -658
  574. package/.next/standalone/node_modules/yauzl/index.js +0 -796
  575. package/.next/standalone/node_modules/yauzl/package.json +0 -40
  576. package/.next/static/chunks/6f8d5b34a0746c30.css +0 -1
  577. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/classes/comparator.js +0 -0
  578. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/classes/range.js +0 -0
  579. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/classes/semver.js +0 -0
  580. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/cmp.js +0 -0
  581. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/coerce.js +0 -0
  582. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/compare.js +0 -0
  583. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/eq.js +0 -0
  584. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/gt.js +0 -0
  585. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/gte.js +0 -0
  586. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/lt.js +0 -0
  587. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/lte.js +0 -0
  588. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/neq.js +0 -0
  589. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/parse.js +0 -0
  590. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/satisfies.js +0 -0
  591. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/constants.js +0 -0
  592. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/debug.js +0 -0
  593. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/identifiers.js +0 -0
  594. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/lrucache.js +0 -0
  595. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/parse-options.js +0 -0
  596. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/re.js +0 -0
  597. /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/package.json +0 -0
  598. /package/.next/static/{kjjeNNqdepzMMavZeMWoK → standalone-build}/_buildManifest.js +0 -0
  599. /package/.next/static/{kjjeNNqdepzMMavZeMWoK → standalone-build}/_clientMiddlewareManifest.json +0 -0
  600. /package/.next/static/{kjjeNNqdepzMMavZeMWoK → standalone-build}/_ssgManifest.js +0 -0
@@ -1,1233 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const utils_1 = require("./utils");
4
- // The default Buffer size if one is not provided.
5
- const DEFAULT_SMARTBUFFER_SIZE = 4096;
6
- // The default string encoding to use for reading/writing strings.
7
- const DEFAULT_SMARTBUFFER_ENCODING = 'utf8';
8
- class SmartBuffer {
9
- /**
10
- * Creates a new SmartBuffer instance.
11
- *
12
- * @param options { SmartBufferOptions } The SmartBufferOptions to apply to this instance.
13
- */
14
- constructor(options) {
15
- this.length = 0;
16
- this._encoding = DEFAULT_SMARTBUFFER_ENCODING;
17
- this._writeOffset = 0;
18
- this._readOffset = 0;
19
- if (SmartBuffer.isSmartBufferOptions(options)) {
20
- // Checks for encoding
21
- if (options.encoding) {
22
- utils_1.checkEncoding(options.encoding);
23
- this._encoding = options.encoding;
24
- }
25
- // Checks for initial size length
26
- if (options.size) {
27
- if (utils_1.isFiniteInteger(options.size) && options.size > 0) {
28
- this._buff = Buffer.allocUnsafe(options.size);
29
- }
30
- else {
31
- throw new Error(utils_1.ERRORS.INVALID_SMARTBUFFER_SIZE);
32
- }
33
- // Check for initial Buffer
34
- }
35
- else if (options.buff) {
36
- if (Buffer.isBuffer(options.buff)) {
37
- this._buff = options.buff;
38
- this.length = options.buff.length;
39
- }
40
- else {
41
- throw new Error(utils_1.ERRORS.INVALID_SMARTBUFFER_BUFFER);
42
- }
43
- }
44
- else {
45
- this._buff = Buffer.allocUnsafe(DEFAULT_SMARTBUFFER_SIZE);
46
- }
47
- }
48
- else {
49
- // If something was passed but it's not a SmartBufferOptions object
50
- if (typeof options !== 'undefined') {
51
- throw new Error(utils_1.ERRORS.INVALID_SMARTBUFFER_OBJECT);
52
- }
53
- // Otherwise default to sane options
54
- this._buff = Buffer.allocUnsafe(DEFAULT_SMARTBUFFER_SIZE);
55
- }
56
- }
57
- /**
58
- * Creates a new SmartBuffer instance with the provided internal Buffer size and optional encoding.
59
- *
60
- * @param size { Number } The size of the internal Buffer.
61
- * @param encoding { String } The BufferEncoding to use for strings.
62
- *
63
- * @return { SmartBuffer }
64
- */
65
- static fromSize(size, encoding) {
66
- return new this({
67
- size: size,
68
- encoding: encoding
69
- });
70
- }
71
- /**
72
- * Creates a new SmartBuffer instance with the provided Buffer and optional encoding.
73
- *
74
- * @param buffer { Buffer } The Buffer to use as the internal Buffer value.
75
- * @param encoding { String } The BufferEncoding to use for strings.
76
- *
77
- * @return { SmartBuffer }
78
- */
79
- static fromBuffer(buff, encoding) {
80
- return new this({
81
- buff: buff,
82
- encoding: encoding
83
- });
84
- }
85
- /**
86
- * Creates a new SmartBuffer instance with the provided SmartBufferOptions options.
87
- *
88
- * @param options { SmartBufferOptions } The options to use when creating the SmartBuffer instance.
89
- */
90
- static fromOptions(options) {
91
- return new this(options);
92
- }
93
- /**
94
- * Type checking function that determines if an object is a SmartBufferOptions object.
95
- */
96
- static isSmartBufferOptions(options) {
97
- const castOptions = options;
98
- return (castOptions &&
99
- (castOptions.encoding !== undefined || castOptions.size !== undefined || castOptions.buff !== undefined));
100
- }
101
- // Signed integers
102
- /**
103
- * Reads an Int8 value from the current read position or an optionally provided offset.
104
- *
105
- * @param offset { Number } The offset to read data from (optional)
106
- * @return { Number }
107
- */
108
- readInt8(offset) {
109
- return this._readNumberValue(Buffer.prototype.readInt8, 1, offset);
110
- }
111
- /**
112
- * Reads an Int16BE value from the current read position or an optionally provided offset.
113
- *
114
- * @param offset { Number } The offset to read data from (optional)
115
- * @return { Number }
116
- */
117
- readInt16BE(offset) {
118
- return this._readNumberValue(Buffer.prototype.readInt16BE, 2, offset);
119
- }
120
- /**
121
- * Reads an Int16LE value from the current read position or an optionally provided offset.
122
- *
123
- * @param offset { Number } The offset to read data from (optional)
124
- * @return { Number }
125
- */
126
- readInt16LE(offset) {
127
- return this._readNumberValue(Buffer.prototype.readInt16LE, 2, offset);
128
- }
129
- /**
130
- * Reads an Int32BE value from the current read position or an optionally provided offset.
131
- *
132
- * @param offset { Number } The offset to read data from (optional)
133
- * @return { Number }
134
- */
135
- readInt32BE(offset) {
136
- return this._readNumberValue(Buffer.prototype.readInt32BE, 4, offset);
137
- }
138
- /**
139
- * Reads an Int32LE value from the current read position or an optionally provided offset.
140
- *
141
- * @param offset { Number } The offset to read data from (optional)
142
- * @return { Number }
143
- */
144
- readInt32LE(offset) {
145
- return this._readNumberValue(Buffer.prototype.readInt32LE, 4, offset);
146
- }
147
- /**
148
- * Reads a BigInt64BE value from the current read position or an optionally provided offset.
149
- *
150
- * @param offset { Number } The offset to read data from (optional)
151
- * @return { BigInt }
152
- */
153
- readBigInt64BE(offset) {
154
- utils_1.bigIntAndBufferInt64Check('readBigInt64BE');
155
- return this._readNumberValue(Buffer.prototype.readBigInt64BE, 8, offset);
156
- }
157
- /**
158
- * Reads a BigInt64LE value from the current read position or an optionally provided offset.
159
- *
160
- * @param offset { Number } The offset to read data from (optional)
161
- * @return { BigInt }
162
- */
163
- readBigInt64LE(offset) {
164
- utils_1.bigIntAndBufferInt64Check('readBigInt64LE');
165
- return this._readNumberValue(Buffer.prototype.readBigInt64LE, 8, offset);
166
- }
167
- /**
168
- * Writes an Int8 value to the current write position (or at optional offset).
169
- *
170
- * @param value { Number } The value to write.
171
- * @param offset { Number } The offset to write the value at.
172
- *
173
- * @return this
174
- */
175
- writeInt8(value, offset) {
176
- this._writeNumberValue(Buffer.prototype.writeInt8, 1, value, offset);
177
- return this;
178
- }
179
- /**
180
- * Inserts an Int8 value at the given offset value.
181
- *
182
- * @param value { Number } The value to insert.
183
- * @param offset { Number } The offset to insert the value at.
184
- *
185
- * @return this
186
- */
187
- insertInt8(value, offset) {
188
- return this._insertNumberValue(Buffer.prototype.writeInt8, 1, value, offset);
189
- }
190
- /**
191
- * Writes an Int16BE value to the current write position (or at optional offset).
192
- *
193
- * @param value { Number } The value to write.
194
- * @param offset { Number } The offset to write the value at.
195
- *
196
- * @return this
197
- */
198
- writeInt16BE(value, offset) {
199
- return this._writeNumberValue(Buffer.prototype.writeInt16BE, 2, value, offset);
200
- }
201
- /**
202
- * Inserts an Int16BE value at the given offset value.
203
- *
204
- * @param value { Number } The value to insert.
205
- * @param offset { Number } The offset to insert the value at.
206
- *
207
- * @return this
208
- */
209
- insertInt16BE(value, offset) {
210
- return this._insertNumberValue(Buffer.prototype.writeInt16BE, 2, value, offset);
211
- }
212
- /**
213
- * Writes an Int16LE value to the current write position (or at optional offset).
214
- *
215
- * @param value { Number } The value to write.
216
- * @param offset { Number } The offset to write the value at.
217
- *
218
- * @return this
219
- */
220
- writeInt16LE(value, offset) {
221
- return this._writeNumberValue(Buffer.prototype.writeInt16LE, 2, value, offset);
222
- }
223
- /**
224
- * Inserts an Int16LE value at the given offset value.
225
- *
226
- * @param value { Number } The value to insert.
227
- * @param offset { Number } The offset to insert the value at.
228
- *
229
- * @return this
230
- */
231
- insertInt16LE(value, offset) {
232
- return this._insertNumberValue(Buffer.prototype.writeInt16LE, 2, value, offset);
233
- }
234
- /**
235
- * Writes an Int32BE value to the current write position (or at optional offset).
236
- *
237
- * @param value { Number } The value to write.
238
- * @param offset { Number } The offset to write the value at.
239
- *
240
- * @return this
241
- */
242
- writeInt32BE(value, offset) {
243
- return this._writeNumberValue(Buffer.prototype.writeInt32BE, 4, value, offset);
244
- }
245
- /**
246
- * Inserts an Int32BE value at the given offset value.
247
- *
248
- * @param value { Number } The value to insert.
249
- * @param offset { Number } The offset to insert the value at.
250
- *
251
- * @return this
252
- */
253
- insertInt32BE(value, offset) {
254
- return this._insertNumberValue(Buffer.prototype.writeInt32BE, 4, value, offset);
255
- }
256
- /**
257
- * Writes an Int32LE value to the current write position (or at optional offset).
258
- *
259
- * @param value { Number } The value to write.
260
- * @param offset { Number } The offset to write the value at.
261
- *
262
- * @return this
263
- */
264
- writeInt32LE(value, offset) {
265
- return this._writeNumberValue(Buffer.prototype.writeInt32LE, 4, value, offset);
266
- }
267
- /**
268
- * Inserts an Int32LE value at the given offset value.
269
- *
270
- * @param value { Number } The value to insert.
271
- * @param offset { Number } The offset to insert the value at.
272
- *
273
- * @return this
274
- */
275
- insertInt32LE(value, offset) {
276
- return this._insertNumberValue(Buffer.prototype.writeInt32LE, 4, value, offset);
277
- }
278
- /**
279
- * Writes a BigInt64BE value to the current write position (or at optional offset).
280
- *
281
- * @param value { BigInt } The value to write.
282
- * @param offset { Number } The offset to write the value at.
283
- *
284
- * @return this
285
- */
286
- writeBigInt64BE(value, offset) {
287
- utils_1.bigIntAndBufferInt64Check('writeBigInt64BE');
288
- return this._writeNumberValue(Buffer.prototype.writeBigInt64BE, 8, value, offset);
289
- }
290
- /**
291
- * Inserts a BigInt64BE value at the given offset value.
292
- *
293
- * @param value { BigInt } The value to insert.
294
- * @param offset { Number } The offset to insert the value at.
295
- *
296
- * @return this
297
- */
298
- insertBigInt64BE(value, offset) {
299
- utils_1.bigIntAndBufferInt64Check('writeBigInt64BE');
300
- return this._insertNumberValue(Buffer.prototype.writeBigInt64BE, 8, value, offset);
301
- }
302
- /**
303
- * Writes a BigInt64LE value to the current write position (or at optional offset).
304
- *
305
- * @param value { BigInt } The value to write.
306
- * @param offset { Number } The offset to write the value at.
307
- *
308
- * @return this
309
- */
310
- writeBigInt64LE(value, offset) {
311
- utils_1.bigIntAndBufferInt64Check('writeBigInt64LE');
312
- return this._writeNumberValue(Buffer.prototype.writeBigInt64LE, 8, value, offset);
313
- }
314
- /**
315
- * Inserts a Int64LE value at the given offset value.
316
- *
317
- * @param value { BigInt } The value to insert.
318
- * @param offset { Number } The offset to insert the value at.
319
- *
320
- * @return this
321
- */
322
- insertBigInt64LE(value, offset) {
323
- utils_1.bigIntAndBufferInt64Check('writeBigInt64LE');
324
- return this._insertNumberValue(Buffer.prototype.writeBigInt64LE, 8, value, offset);
325
- }
326
- // Unsigned Integers
327
- /**
328
- * Reads an UInt8 value from the current read position or an optionally provided offset.
329
- *
330
- * @param offset { Number } The offset to read data from (optional)
331
- * @return { Number }
332
- */
333
- readUInt8(offset) {
334
- return this._readNumberValue(Buffer.prototype.readUInt8, 1, offset);
335
- }
336
- /**
337
- * Reads an UInt16BE value from the current read position or an optionally provided offset.
338
- *
339
- * @param offset { Number } The offset to read data from (optional)
340
- * @return { Number }
341
- */
342
- readUInt16BE(offset) {
343
- return this._readNumberValue(Buffer.prototype.readUInt16BE, 2, offset);
344
- }
345
- /**
346
- * Reads an UInt16LE value from the current read position or an optionally provided offset.
347
- *
348
- * @param offset { Number } The offset to read data from (optional)
349
- * @return { Number }
350
- */
351
- readUInt16LE(offset) {
352
- return this._readNumberValue(Buffer.prototype.readUInt16LE, 2, offset);
353
- }
354
- /**
355
- * Reads an UInt32BE value from the current read position or an optionally provided offset.
356
- *
357
- * @param offset { Number } The offset to read data from (optional)
358
- * @return { Number }
359
- */
360
- readUInt32BE(offset) {
361
- return this._readNumberValue(Buffer.prototype.readUInt32BE, 4, offset);
362
- }
363
- /**
364
- * Reads an UInt32LE value from the current read position or an optionally provided offset.
365
- *
366
- * @param offset { Number } The offset to read data from (optional)
367
- * @return { Number }
368
- */
369
- readUInt32LE(offset) {
370
- return this._readNumberValue(Buffer.prototype.readUInt32LE, 4, offset);
371
- }
372
- /**
373
- * Reads a BigUInt64BE value from the current read position or an optionally provided offset.
374
- *
375
- * @param offset { Number } The offset to read data from (optional)
376
- * @return { BigInt }
377
- */
378
- readBigUInt64BE(offset) {
379
- utils_1.bigIntAndBufferInt64Check('readBigUInt64BE');
380
- return this._readNumberValue(Buffer.prototype.readBigUInt64BE, 8, offset);
381
- }
382
- /**
383
- * Reads a BigUInt64LE value from the current read position or an optionally provided offset.
384
- *
385
- * @param offset { Number } The offset to read data from (optional)
386
- * @return { BigInt }
387
- */
388
- readBigUInt64LE(offset) {
389
- utils_1.bigIntAndBufferInt64Check('readBigUInt64LE');
390
- return this._readNumberValue(Buffer.prototype.readBigUInt64LE, 8, offset);
391
- }
392
- /**
393
- * Writes an UInt8 value to the current write position (or at optional offset).
394
- *
395
- * @param value { Number } The value to write.
396
- * @param offset { Number } The offset to write the value at.
397
- *
398
- * @return this
399
- */
400
- writeUInt8(value, offset) {
401
- return this._writeNumberValue(Buffer.prototype.writeUInt8, 1, value, offset);
402
- }
403
- /**
404
- * Inserts an UInt8 value at the given offset value.
405
- *
406
- * @param value { Number } The value to insert.
407
- * @param offset { Number } The offset to insert the value at.
408
- *
409
- * @return this
410
- */
411
- insertUInt8(value, offset) {
412
- return this._insertNumberValue(Buffer.prototype.writeUInt8, 1, value, offset);
413
- }
414
- /**
415
- * Writes an UInt16BE value to the current write position (or at optional offset).
416
- *
417
- * @param value { Number } The value to write.
418
- * @param offset { Number } The offset to write the value at.
419
- *
420
- * @return this
421
- */
422
- writeUInt16BE(value, offset) {
423
- return this._writeNumberValue(Buffer.prototype.writeUInt16BE, 2, value, offset);
424
- }
425
- /**
426
- * Inserts an UInt16BE value at the given offset value.
427
- *
428
- * @param value { Number } The value to insert.
429
- * @param offset { Number } The offset to insert the value at.
430
- *
431
- * @return this
432
- */
433
- insertUInt16BE(value, offset) {
434
- return this._insertNumberValue(Buffer.prototype.writeUInt16BE, 2, value, offset);
435
- }
436
- /**
437
- * Writes an UInt16LE value to the current write position (or at optional offset).
438
- *
439
- * @param value { Number } The value to write.
440
- * @param offset { Number } The offset to write the value at.
441
- *
442
- * @return this
443
- */
444
- writeUInt16LE(value, offset) {
445
- return this._writeNumberValue(Buffer.prototype.writeUInt16LE, 2, value, offset);
446
- }
447
- /**
448
- * Inserts an UInt16LE value at the given offset value.
449
- *
450
- * @param value { Number } The value to insert.
451
- * @param offset { Number } The offset to insert the value at.
452
- *
453
- * @return this
454
- */
455
- insertUInt16LE(value, offset) {
456
- return this._insertNumberValue(Buffer.prototype.writeUInt16LE, 2, value, offset);
457
- }
458
- /**
459
- * Writes an UInt32BE value to the current write position (or at optional offset).
460
- *
461
- * @param value { Number } The value to write.
462
- * @param offset { Number } The offset to write the value at.
463
- *
464
- * @return this
465
- */
466
- writeUInt32BE(value, offset) {
467
- return this._writeNumberValue(Buffer.prototype.writeUInt32BE, 4, value, offset);
468
- }
469
- /**
470
- * Inserts an UInt32BE value at the given offset value.
471
- *
472
- * @param value { Number } The value to insert.
473
- * @param offset { Number } The offset to insert the value at.
474
- *
475
- * @return this
476
- */
477
- insertUInt32BE(value, offset) {
478
- return this._insertNumberValue(Buffer.prototype.writeUInt32BE, 4, value, offset);
479
- }
480
- /**
481
- * Writes an UInt32LE value to the current write position (or at optional offset).
482
- *
483
- * @param value { Number } The value to write.
484
- * @param offset { Number } The offset to write the value at.
485
- *
486
- * @return this
487
- */
488
- writeUInt32LE(value, offset) {
489
- return this._writeNumberValue(Buffer.prototype.writeUInt32LE, 4, value, offset);
490
- }
491
- /**
492
- * Inserts an UInt32LE value at the given offset value.
493
- *
494
- * @param value { Number } The value to insert.
495
- * @param offset { Number } The offset to insert the value at.
496
- *
497
- * @return this
498
- */
499
- insertUInt32LE(value, offset) {
500
- return this._insertNumberValue(Buffer.prototype.writeUInt32LE, 4, value, offset);
501
- }
502
- /**
503
- * Writes a BigUInt64BE value to the current write position (or at optional offset).
504
- *
505
- * @param value { Number } The value to write.
506
- * @param offset { Number } The offset to write the value at.
507
- *
508
- * @return this
509
- */
510
- writeBigUInt64BE(value, offset) {
511
- utils_1.bigIntAndBufferInt64Check('writeBigUInt64BE');
512
- return this._writeNumberValue(Buffer.prototype.writeBigUInt64BE, 8, value, offset);
513
- }
514
- /**
515
- * Inserts a BigUInt64BE value at the given offset value.
516
- *
517
- * @param value { Number } The value to insert.
518
- * @param offset { Number } The offset to insert the value at.
519
- *
520
- * @return this
521
- */
522
- insertBigUInt64BE(value, offset) {
523
- utils_1.bigIntAndBufferInt64Check('writeBigUInt64BE');
524
- return this._insertNumberValue(Buffer.prototype.writeBigUInt64BE, 8, value, offset);
525
- }
526
- /**
527
- * Writes a BigUInt64LE value to the current write position (or at optional offset).
528
- *
529
- * @param value { Number } The value to write.
530
- * @param offset { Number } The offset to write the value at.
531
- *
532
- * @return this
533
- */
534
- writeBigUInt64LE(value, offset) {
535
- utils_1.bigIntAndBufferInt64Check('writeBigUInt64LE');
536
- return this._writeNumberValue(Buffer.prototype.writeBigUInt64LE, 8, value, offset);
537
- }
538
- /**
539
- * Inserts a BigUInt64LE value at the given offset value.
540
- *
541
- * @param value { Number } The value to insert.
542
- * @param offset { Number } The offset to insert the value at.
543
- *
544
- * @return this
545
- */
546
- insertBigUInt64LE(value, offset) {
547
- utils_1.bigIntAndBufferInt64Check('writeBigUInt64LE');
548
- return this._insertNumberValue(Buffer.prototype.writeBigUInt64LE, 8, value, offset);
549
- }
550
- // Floating Point
551
- /**
552
- * Reads an FloatBE value from the current read position or an optionally provided offset.
553
- *
554
- * @param offset { Number } The offset to read data from (optional)
555
- * @return { Number }
556
- */
557
- readFloatBE(offset) {
558
- return this._readNumberValue(Buffer.prototype.readFloatBE, 4, offset);
559
- }
560
- /**
561
- * Reads an FloatLE value from the current read position or an optionally provided offset.
562
- *
563
- * @param offset { Number } The offset to read data from (optional)
564
- * @return { Number }
565
- */
566
- readFloatLE(offset) {
567
- return this._readNumberValue(Buffer.prototype.readFloatLE, 4, offset);
568
- }
569
- /**
570
- * Writes a FloatBE value to the current write position (or at optional offset).
571
- *
572
- * @param value { Number } The value to write.
573
- * @param offset { Number } The offset to write the value at.
574
- *
575
- * @return this
576
- */
577
- writeFloatBE(value, offset) {
578
- return this._writeNumberValue(Buffer.prototype.writeFloatBE, 4, value, offset);
579
- }
580
- /**
581
- * Inserts a FloatBE value at the given offset value.
582
- *
583
- * @param value { Number } The value to insert.
584
- * @param offset { Number } The offset to insert the value at.
585
- *
586
- * @return this
587
- */
588
- insertFloatBE(value, offset) {
589
- return this._insertNumberValue(Buffer.prototype.writeFloatBE, 4, value, offset);
590
- }
591
- /**
592
- * Writes a FloatLE value to the current write position (or at optional offset).
593
- *
594
- * @param value { Number } The value to write.
595
- * @param offset { Number } The offset to write the value at.
596
- *
597
- * @return this
598
- */
599
- writeFloatLE(value, offset) {
600
- return this._writeNumberValue(Buffer.prototype.writeFloatLE, 4, value, offset);
601
- }
602
- /**
603
- * Inserts a FloatLE value at the given offset value.
604
- *
605
- * @param value { Number } The value to insert.
606
- * @param offset { Number } The offset to insert the value at.
607
- *
608
- * @return this
609
- */
610
- insertFloatLE(value, offset) {
611
- return this._insertNumberValue(Buffer.prototype.writeFloatLE, 4, value, offset);
612
- }
613
- // Double Floating Point
614
- /**
615
- * Reads an DoublEBE value from the current read position or an optionally provided offset.
616
- *
617
- * @param offset { Number } The offset to read data from (optional)
618
- * @return { Number }
619
- */
620
- readDoubleBE(offset) {
621
- return this._readNumberValue(Buffer.prototype.readDoubleBE, 8, offset);
622
- }
623
- /**
624
- * Reads an DoubleLE value from the current read position or an optionally provided offset.
625
- *
626
- * @param offset { Number } The offset to read data from (optional)
627
- * @return { Number }
628
- */
629
- readDoubleLE(offset) {
630
- return this._readNumberValue(Buffer.prototype.readDoubleLE, 8, offset);
631
- }
632
- /**
633
- * Writes a DoubleBE value to the current write position (or at optional offset).
634
- *
635
- * @param value { Number } The value to write.
636
- * @param offset { Number } The offset to write the value at.
637
- *
638
- * @return this
639
- */
640
- writeDoubleBE(value, offset) {
641
- return this._writeNumberValue(Buffer.prototype.writeDoubleBE, 8, value, offset);
642
- }
643
- /**
644
- * Inserts a DoubleBE value at the given offset value.
645
- *
646
- * @param value { Number } The value to insert.
647
- * @param offset { Number } The offset to insert the value at.
648
- *
649
- * @return this
650
- */
651
- insertDoubleBE(value, offset) {
652
- return this._insertNumberValue(Buffer.prototype.writeDoubleBE, 8, value, offset);
653
- }
654
- /**
655
- * Writes a DoubleLE value to the current write position (or at optional offset).
656
- *
657
- * @param value { Number } The value to write.
658
- * @param offset { Number } The offset to write the value at.
659
- *
660
- * @return this
661
- */
662
- writeDoubleLE(value, offset) {
663
- return this._writeNumberValue(Buffer.prototype.writeDoubleLE, 8, value, offset);
664
- }
665
- /**
666
- * Inserts a DoubleLE value at the given offset value.
667
- *
668
- * @param value { Number } The value to insert.
669
- * @param offset { Number } The offset to insert the value at.
670
- *
671
- * @return this
672
- */
673
- insertDoubleLE(value, offset) {
674
- return this._insertNumberValue(Buffer.prototype.writeDoubleLE, 8, value, offset);
675
- }
676
- // Strings
677
- /**
678
- * Reads a String from the current read position.
679
- *
680
- * @param arg1 { Number | String } The number of bytes to read as a String, or the BufferEncoding to use for
681
- * the string (Defaults to instance level encoding).
682
- * @param encoding { String } The BufferEncoding to use for the string (Defaults to instance level encoding).
683
- *
684
- * @return { String }
685
- */
686
- readString(arg1, encoding) {
687
- let lengthVal;
688
- // Length provided
689
- if (typeof arg1 === 'number') {
690
- utils_1.checkLengthValue(arg1);
691
- lengthVal = Math.min(arg1, this.length - this._readOffset);
692
- }
693
- else {
694
- encoding = arg1;
695
- lengthVal = this.length - this._readOffset;
696
- }
697
- // Check encoding
698
- if (typeof encoding !== 'undefined') {
699
- utils_1.checkEncoding(encoding);
700
- }
701
- const value = this._buff.slice(this._readOffset, this._readOffset + lengthVal).toString(encoding || this._encoding);
702
- this._readOffset += lengthVal;
703
- return value;
704
- }
705
- /**
706
- * Inserts a String
707
- *
708
- * @param value { String } The String value to insert.
709
- * @param offset { Number } The offset to insert the string at.
710
- * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
711
- *
712
- * @return this
713
- */
714
- insertString(value, offset, encoding) {
715
- utils_1.checkOffsetValue(offset);
716
- return this._handleString(value, true, offset, encoding);
717
- }
718
- /**
719
- * Writes a String
720
- *
721
- * @param value { String } The String value to write.
722
- * @param arg2 { Number | String } The offset to write the string at, or the BufferEncoding to use.
723
- * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
724
- *
725
- * @return this
726
- */
727
- writeString(value, arg2, encoding) {
728
- return this._handleString(value, false, arg2, encoding);
729
- }
730
- /**
731
- * Reads a null-terminated String from the current read position.
732
- *
733
- * @param encoding { String } The BufferEncoding to use for the string (Defaults to instance level encoding).
734
- *
735
- * @return { String }
736
- */
737
- readStringNT(encoding) {
738
- if (typeof encoding !== 'undefined') {
739
- utils_1.checkEncoding(encoding);
740
- }
741
- // Set null character position to the end SmartBuffer instance.
742
- let nullPos = this.length;
743
- // Find next null character (if one is not found, default from above is used)
744
- for (let i = this._readOffset; i < this.length; i++) {
745
- if (this._buff[i] === 0x00) {
746
- nullPos = i;
747
- break;
748
- }
749
- }
750
- // Read string value
751
- const value = this._buff.slice(this._readOffset, nullPos);
752
- // Increment internal Buffer read offset
753
- this._readOffset = nullPos + 1;
754
- return value.toString(encoding || this._encoding);
755
- }
756
- /**
757
- * Inserts a null-terminated String.
758
- *
759
- * @param value { String } The String value to write.
760
- * @param arg2 { Number | String } The offset to write the string to, or the BufferEncoding to use.
761
- * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
762
- *
763
- * @return this
764
- */
765
- insertStringNT(value, offset, encoding) {
766
- utils_1.checkOffsetValue(offset);
767
- // Write Values
768
- this.insertString(value, offset, encoding);
769
- this.insertUInt8(0x00, offset + value.length);
770
- return this;
771
- }
772
- /**
773
- * Writes a null-terminated String.
774
- *
775
- * @param value { String } The String value to write.
776
- * @param arg2 { Number | String } The offset to write the string to, or the BufferEncoding to use.
777
- * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
778
- *
779
- * @return this
780
- */
781
- writeStringNT(value, arg2, encoding) {
782
- // Write Values
783
- this.writeString(value, arg2, encoding);
784
- this.writeUInt8(0x00, typeof arg2 === 'number' ? arg2 + value.length : this.writeOffset);
785
- return this;
786
- }
787
- // Buffers
788
- /**
789
- * Reads a Buffer from the internal read position.
790
- *
791
- * @param length { Number } The length of data to read as a Buffer.
792
- *
793
- * @return { Buffer }
794
- */
795
- readBuffer(length) {
796
- if (typeof length !== 'undefined') {
797
- utils_1.checkLengthValue(length);
798
- }
799
- const lengthVal = typeof length === 'number' ? length : this.length;
800
- const endPoint = Math.min(this.length, this._readOffset + lengthVal);
801
- // Read buffer value
802
- const value = this._buff.slice(this._readOffset, endPoint);
803
- // Increment internal Buffer read offset
804
- this._readOffset = endPoint;
805
- return value;
806
- }
807
- /**
808
- * Writes a Buffer to the current write position.
809
- *
810
- * @param value { Buffer } The Buffer to write.
811
- * @param offset { Number } The offset to write the Buffer to.
812
- *
813
- * @return this
814
- */
815
- insertBuffer(value, offset) {
816
- utils_1.checkOffsetValue(offset);
817
- return this._handleBuffer(value, true, offset);
818
- }
819
- /**
820
- * Writes a Buffer to the current write position.
821
- *
822
- * @param value { Buffer } The Buffer to write.
823
- * @param offset { Number } The offset to write the Buffer to.
824
- *
825
- * @return this
826
- */
827
- writeBuffer(value, offset) {
828
- return this._handleBuffer(value, false, offset);
829
- }
830
- /**
831
- * Reads a null-terminated Buffer from the current read poisiton.
832
- *
833
- * @return { Buffer }
834
- */
835
- readBufferNT() {
836
- // Set null character position to the end SmartBuffer instance.
837
- let nullPos = this.length;
838
- // Find next null character (if one is not found, default from above is used)
839
- for (let i = this._readOffset; i < this.length; i++) {
840
- if (this._buff[i] === 0x00) {
841
- nullPos = i;
842
- break;
843
- }
844
- }
845
- // Read value
846
- const value = this._buff.slice(this._readOffset, nullPos);
847
- // Increment internal Buffer read offset
848
- this._readOffset = nullPos + 1;
849
- return value;
850
- }
851
- /**
852
- * Inserts a null-terminated Buffer.
853
- *
854
- * @param value { Buffer } The Buffer to write.
855
- * @param offset { Number } The offset to write the Buffer to.
856
- *
857
- * @return this
858
- */
859
- insertBufferNT(value, offset) {
860
- utils_1.checkOffsetValue(offset);
861
- // Write Values
862
- this.insertBuffer(value, offset);
863
- this.insertUInt8(0x00, offset + value.length);
864
- return this;
865
- }
866
- /**
867
- * Writes a null-terminated Buffer.
868
- *
869
- * @param value { Buffer } The Buffer to write.
870
- * @param offset { Number } The offset to write the Buffer to.
871
- *
872
- * @return this
873
- */
874
- writeBufferNT(value, offset) {
875
- // Checks for valid numberic value;
876
- if (typeof offset !== 'undefined') {
877
- utils_1.checkOffsetValue(offset);
878
- }
879
- // Write Values
880
- this.writeBuffer(value, offset);
881
- this.writeUInt8(0x00, typeof offset === 'number' ? offset + value.length : this._writeOffset);
882
- return this;
883
- }
884
- /**
885
- * Clears the SmartBuffer instance to its original empty state.
886
- */
887
- clear() {
888
- this._writeOffset = 0;
889
- this._readOffset = 0;
890
- this.length = 0;
891
- return this;
892
- }
893
- /**
894
- * Gets the remaining data left to be read from the SmartBuffer instance.
895
- *
896
- * @return { Number }
897
- */
898
- remaining() {
899
- return this.length - this._readOffset;
900
- }
901
- /**
902
- * Gets the current read offset value of the SmartBuffer instance.
903
- *
904
- * @return { Number }
905
- */
906
- get readOffset() {
907
- return this._readOffset;
908
- }
909
- /**
910
- * Sets the read offset value of the SmartBuffer instance.
911
- *
912
- * @param offset { Number } - The offset value to set.
913
- */
914
- set readOffset(offset) {
915
- utils_1.checkOffsetValue(offset);
916
- // Check for bounds.
917
- utils_1.checkTargetOffset(offset, this);
918
- this._readOffset = offset;
919
- }
920
- /**
921
- * Gets the current write offset value of the SmartBuffer instance.
922
- *
923
- * @return { Number }
924
- */
925
- get writeOffset() {
926
- return this._writeOffset;
927
- }
928
- /**
929
- * Sets the write offset value of the SmartBuffer instance.
930
- *
931
- * @param offset { Number } - The offset value to set.
932
- */
933
- set writeOffset(offset) {
934
- utils_1.checkOffsetValue(offset);
935
- // Check for bounds.
936
- utils_1.checkTargetOffset(offset, this);
937
- this._writeOffset = offset;
938
- }
939
- /**
940
- * Gets the currently set string encoding of the SmartBuffer instance.
941
- *
942
- * @return { BufferEncoding } The string Buffer encoding currently set.
943
- */
944
- get encoding() {
945
- return this._encoding;
946
- }
947
- /**
948
- * Sets the string encoding of the SmartBuffer instance.
949
- *
950
- * @param encoding { BufferEncoding } The string Buffer encoding to set.
951
- */
952
- set encoding(encoding) {
953
- utils_1.checkEncoding(encoding);
954
- this._encoding = encoding;
955
- }
956
- /**
957
- * Gets the underlying internal Buffer. (This includes unmanaged data in the Buffer)
958
- *
959
- * @return { Buffer } The Buffer value.
960
- */
961
- get internalBuffer() {
962
- return this._buff;
963
- }
964
- /**
965
- * Gets the value of the internal managed Buffer (Includes managed data only)
966
- *
967
- * @param { Buffer }
968
- */
969
- toBuffer() {
970
- return this._buff.slice(0, this.length);
971
- }
972
- /**
973
- * Gets the String value of the internal managed Buffer
974
- *
975
- * @param encoding { String } The BufferEncoding to display the Buffer as (defaults to instance level encoding).
976
- */
977
- toString(encoding) {
978
- const encodingVal = typeof encoding === 'string' ? encoding : this._encoding;
979
- // Check for invalid encoding.
980
- utils_1.checkEncoding(encodingVal);
981
- return this._buff.toString(encodingVal, 0, this.length);
982
- }
983
- /**
984
- * Destroys the SmartBuffer instance.
985
- */
986
- destroy() {
987
- this.clear();
988
- return this;
989
- }
990
- /**
991
- * Handles inserting and writing strings.
992
- *
993
- * @param value { String } The String value to insert.
994
- * @param isInsert { Boolean } True if inserting a string, false if writing.
995
- * @param arg2 { Number | String } The offset to insert the string at, or the BufferEncoding to use.
996
- * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding).
997
- */
998
- _handleString(value, isInsert, arg3, encoding) {
999
- let offsetVal = this._writeOffset;
1000
- let encodingVal = this._encoding;
1001
- // Check for offset
1002
- if (typeof arg3 === 'number') {
1003
- offsetVal = arg3;
1004
- // Check for encoding
1005
- }
1006
- else if (typeof arg3 === 'string') {
1007
- utils_1.checkEncoding(arg3);
1008
- encodingVal = arg3;
1009
- }
1010
- // Check for encoding (third param)
1011
- if (typeof encoding === 'string') {
1012
- utils_1.checkEncoding(encoding);
1013
- encodingVal = encoding;
1014
- }
1015
- // Calculate bytelength of string.
1016
- const byteLength = Buffer.byteLength(value, encodingVal);
1017
- // Ensure there is enough internal Buffer capacity.
1018
- if (isInsert) {
1019
- this.ensureInsertable(byteLength, offsetVal);
1020
- }
1021
- else {
1022
- this._ensureWriteable(byteLength, offsetVal);
1023
- }
1024
- // Write value
1025
- this._buff.write(value, offsetVal, byteLength, encodingVal);
1026
- // Increment internal Buffer write offset;
1027
- if (isInsert) {
1028
- this._writeOffset += byteLength;
1029
- }
1030
- else {
1031
- // If an offset was given, check to see if we wrote beyond the current writeOffset.
1032
- if (typeof arg3 === 'number') {
1033
- this._writeOffset = Math.max(this._writeOffset, offsetVal + byteLength);
1034
- }
1035
- else {
1036
- // If no offset was given, we wrote to the end of the SmartBuffer so increment writeOffset.
1037
- this._writeOffset += byteLength;
1038
- }
1039
- }
1040
- return this;
1041
- }
1042
- /**
1043
- * Handles writing or insert of a Buffer.
1044
- *
1045
- * @param value { Buffer } The Buffer to write.
1046
- * @param offset { Number } The offset to write the Buffer to.
1047
- */
1048
- _handleBuffer(value, isInsert, offset) {
1049
- const offsetVal = typeof offset === 'number' ? offset : this._writeOffset;
1050
- // Ensure there is enough internal Buffer capacity.
1051
- if (isInsert) {
1052
- this.ensureInsertable(value.length, offsetVal);
1053
- }
1054
- else {
1055
- this._ensureWriteable(value.length, offsetVal);
1056
- }
1057
- // Write buffer value
1058
- value.copy(this._buff, offsetVal);
1059
- // Increment internal Buffer write offset;
1060
- if (isInsert) {
1061
- this._writeOffset += value.length;
1062
- }
1063
- else {
1064
- // If an offset was given, check to see if we wrote beyond the current writeOffset.
1065
- if (typeof offset === 'number') {
1066
- this._writeOffset = Math.max(this._writeOffset, offsetVal + value.length);
1067
- }
1068
- else {
1069
- // If no offset was given, we wrote to the end of the SmartBuffer so increment writeOffset.
1070
- this._writeOffset += value.length;
1071
- }
1072
- }
1073
- return this;
1074
- }
1075
- /**
1076
- * Ensures that the internal Buffer is large enough to read data.
1077
- *
1078
- * @param length { Number } The length of the data that needs to be read.
1079
- * @param offset { Number } The offset of the data that needs to be read.
1080
- */
1081
- ensureReadable(length, offset) {
1082
- // Offset value defaults to managed read offset.
1083
- let offsetVal = this._readOffset;
1084
- // If an offset was provided, use it.
1085
- if (typeof offset !== 'undefined') {
1086
- // Checks for valid numberic value;
1087
- utils_1.checkOffsetValue(offset);
1088
- // Overide with custom offset.
1089
- offsetVal = offset;
1090
- }
1091
- // Checks if offset is below zero, or the offset+length offset is beyond the total length of the managed data.
1092
- if (offsetVal < 0 || offsetVal + length > this.length) {
1093
- throw new Error(utils_1.ERRORS.INVALID_READ_BEYOND_BOUNDS);
1094
- }
1095
- }
1096
- /**
1097
- * Ensures that the internal Buffer is large enough to insert data.
1098
- *
1099
- * @param dataLength { Number } The length of the data that needs to be written.
1100
- * @param offset { Number } The offset of the data to be written.
1101
- */
1102
- ensureInsertable(dataLength, offset) {
1103
- // Checks for valid numberic value;
1104
- utils_1.checkOffsetValue(offset);
1105
- // Ensure there is enough internal Buffer capacity.
1106
- this._ensureCapacity(this.length + dataLength);
1107
- // If an offset was provided and its not the very end of the buffer, copy data into appropriate location in regards to the offset.
1108
- if (offset < this.length) {
1109
- this._buff.copy(this._buff, offset + dataLength, offset, this._buff.length);
1110
- }
1111
- // Adjust tracked smart buffer length
1112
- if (offset + dataLength > this.length) {
1113
- this.length = offset + dataLength;
1114
- }
1115
- else {
1116
- this.length += dataLength;
1117
- }
1118
- }
1119
- /**
1120
- * Ensures that the internal Buffer is large enough to write data.
1121
- *
1122
- * @param dataLength { Number } The length of the data that needs to be written.
1123
- * @param offset { Number } The offset of the data to be written (defaults to writeOffset).
1124
- */
1125
- _ensureWriteable(dataLength, offset) {
1126
- const offsetVal = typeof offset === 'number' ? offset : this._writeOffset;
1127
- // Ensure enough capacity to write data.
1128
- this._ensureCapacity(offsetVal + dataLength);
1129
- // Adjust SmartBuffer length (if offset + length is larger than managed length, adjust length)
1130
- if (offsetVal + dataLength > this.length) {
1131
- this.length = offsetVal + dataLength;
1132
- }
1133
- }
1134
- /**
1135
- * Ensures that the internal Buffer is large enough to write at least the given amount of data.
1136
- *
1137
- * @param minLength { Number } The minimum length of the data needs to be written.
1138
- */
1139
- _ensureCapacity(minLength) {
1140
- const oldLength = this._buff.length;
1141
- if (minLength > oldLength) {
1142
- let data = this._buff;
1143
- let newLength = (oldLength * 3) / 2 + 1;
1144
- if (newLength < minLength) {
1145
- newLength = minLength;
1146
- }
1147
- this._buff = Buffer.allocUnsafe(newLength);
1148
- data.copy(this._buff, 0, 0, oldLength);
1149
- }
1150
- }
1151
- /**
1152
- * Reads a numeric number value using the provided function.
1153
- *
1154
- * @typeparam T { number | bigint } The type of the value to be read
1155
- *
1156
- * @param func { Function(offset: number) => number } The function to read data on the internal Buffer with.
1157
- * @param byteSize { Number } The number of bytes read.
1158
- * @param offset { Number } The offset to read from (optional). When this is not provided, the managed readOffset is used instead.
1159
- *
1160
- * @returns { T } the number value
1161
- */
1162
- _readNumberValue(func, byteSize, offset) {
1163
- this.ensureReadable(byteSize, offset);
1164
- // Call Buffer.readXXXX();
1165
- const value = func.call(this._buff, typeof offset === 'number' ? offset : this._readOffset);
1166
- // Adjust internal read offset if an optional read offset was not provided.
1167
- if (typeof offset === 'undefined') {
1168
- this._readOffset += byteSize;
1169
- }
1170
- return value;
1171
- }
1172
- /**
1173
- * Inserts a numeric number value based on the given offset and value.
1174
- *
1175
- * @typeparam T { number | bigint } The type of the value to be written
1176
- *
1177
- * @param func { Function(offset: T, offset?) => number} The function to write data on the internal Buffer with.
1178
- * @param byteSize { Number } The number of bytes written.
1179
- * @param value { T } The number value to write.
1180
- * @param offset { Number } the offset to write the number at (REQUIRED).
1181
- *
1182
- * @returns SmartBuffer this buffer
1183
- */
1184
- _insertNumberValue(func, byteSize, value, offset) {
1185
- // Check for invalid offset values.
1186
- utils_1.checkOffsetValue(offset);
1187
- // Ensure there is enough internal Buffer capacity. (raw offset is passed)
1188
- this.ensureInsertable(byteSize, offset);
1189
- // Call buffer.writeXXXX();
1190
- func.call(this._buff, value, offset);
1191
- // Adjusts internally managed write offset.
1192
- this._writeOffset += byteSize;
1193
- return this;
1194
- }
1195
- /**
1196
- * Writes a numeric number value based on the given offset and value.
1197
- *
1198
- * @typeparam T { number | bigint } The type of the value to be written
1199
- *
1200
- * @param func { Function(offset: T, offset?) => number} The function to write data on the internal Buffer with.
1201
- * @param byteSize { Number } The number of bytes written.
1202
- * @param value { T } The number value to write.
1203
- * @param offset { Number } the offset to write the number at (REQUIRED).
1204
- *
1205
- * @returns SmartBuffer this buffer
1206
- */
1207
- _writeNumberValue(func, byteSize, value, offset) {
1208
- // If an offset was provided, validate it.
1209
- if (typeof offset === 'number') {
1210
- // Check if we're writing beyond the bounds of the managed data.
1211
- if (offset < 0) {
1212
- throw new Error(utils_1.ERRORS.INVALID_WRITE_BEYOND_BOUNDS);
1213
- }
1214
- utils_1.checkOffsetValue(offset);
1215
- }
1216
- // Default to writeOffset if no offset value was given.
1217
- const offsetVal = typeof offset === 'number' ? offset : this._writeOffset;
1218
- // Ensure there is enough internal Buffer capacity. (raw offset is passed)
1219
- this._ensureWriteable(byteSize, offsetVal);
1220
- func.call(this._buff, value, offsetVal);
1221
- // If an offset was given, check to see if we wrote beyond the current writeOffset.
1222
- if (typeof offset === 'number') {
1223
- this._writeOffset = Math.max(this._writeOffset, offsetVal + byteSize);
1224
- }
1225
- else {
1226
- // If no numeric offset was given, we wrote to the end of the SmartBuffer so increment writeOffset.
1227
- this._writeOffset += byteSize;
1228
- }
1229
- return this;
1230
- }
1231
- }
1232
- exports.SmartBuffer = SmartBuffer;
1233
- //# sourceMappingURL=smartbuffer.js.map