@socialgen_user/socialgen 0.0.0-stage → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (655) hide show
  1. package/.output/nitro.json +15 -0
  2. package/.output/public/_nuxt/CM9bCtzQ.js +1 -0
  3. package/.output/public/_nuxt/CQBXt-Xj.js +4 -0
  4. package/.output/public/_nuxt/DGzMDps5.js +1 -0
  5. package/.output/public/_nuxt/DKdpYrB7.js +1 -0
  6. package/.output/public/_nuxt/DoO7LZEh.js +1 -0
  7. package/.output/public/_nuxt/NcMxVlo_.js +1 -0
  8. package/.output/public/_nuxt/_LypH0D7.js +1 -0
  9. package/.output/public/_nuxt/_mode_.XsuGEG0A.css +1 -0
  10. package/.output/public/_nuxt/builds/latest.json +1 -0
  11. package/.output/public/_nuxt/builds/meta/a8a06f55-e1a4-4d58-a8ac-5c8f3e91d730.json +1 -0
  12. package/.output/public/_nuxt/error-404.DL_4WIao.css +1 -0
  13. package/.output/public/_nuxt/error-500.I1Dtv2V5.css +1 -0
  14. package/.output/public/_nuxt/pages.Df3hoeGN.css +1 -0
  15. package/.output/public/audio/cyber_future_tech.mp3 +0 -0
  16. package/.output/public/audio/dark_phonk_pulse.mp3 +0 -0
  17. package/.output/public/audio/deep_finance_groove.mp3 +0 -0
  18. package/.output/public/audio/lofi_viral_study.mp3 +0 -0
  19. package/.output/public/audio/motivation_cinematic.mp3 +0 -0
  20. package/.output/public/videos/cyber_blue.mp4 +0 -0
  21. package/.output/public/videos/cyber_matrix_stream.mp4 +0 -0
  22. package/.output/public/videos/cyber_pulse.mp4 +0 -0
  23. package/.output/public/videos/dark_luxury_particles.mp4 +0 -0
  24. package/.output/public/videos/default_bg.mp4 +0 -0
  25. package/.output/public/videos/emerald_flow.mp4 +0 -0
  26. package/.output/public/videos/financial_pulse_flow.mp4 +0 -0
  27. package/.output/public/videos/neon_cyber_grid.mp4 +0 -0
  28. package/.output/server/chunks/_/error-500.mjs +19 -0
  29. package/.output/server/chunks/_/error-500.mjs.map +1 -0
  30. package/.output/server/chunks/_/nitro.mjs +5712 -0
  31. package/.output/server/chunks/_/nitro.mjs.map +1 -0
  32. package/.output/server/chunks/_/storage.mjs +44 -0
  33. package/.output/server/chunks/_/storage.mjs.map +1 -0
  34. package/.output/server/chunks/_/topicMatrix.mjs +147 -0
  35. package/.output/server/chunks/_/topicMatrix.mjs.map +1 -0
  36. package/.output/server/chunks/build/TableCard-Cvso4Mm4.mjs +399 -0
  37. package/.output/server/chunks/build/TableCard-Cvso4Mm4.mjs.map +1 -0
  38. package/.output/server/chunks/build/_mode_-MljTmkD8.mjs +65 -0
  39. package/.output/server/chunks/build/_mode_-MljTmkD8.mjs.map +1 -0
  40. package/.output/server/chunks/build/_mode_-styles.CcOMAYS9.mjs +8 -0
  41. package/.output/server/chunks/build/_mode_-styles.CcOMAYS9.mjs.map +1 -0
  42. package/.output/server/chunks/build/client.precomputed.mjs +4 -0
  43. package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
  44. package/.output/server/chunks/build/entry-styles.BUuHzwjd.mjs +8 -0
  45. package/.output/server/chunks/build/entry-styles.BUuHzwjd.mjs.map +1 -0
  46. package/.output/server/chunks/build/error-404-D7pndyXD.mjs +403 -0
  47. package/.output/server/chunks/build/error-404-D7pndyXD.mjs.map +1 -0
  48. package/.output/server/chunks/build/error-404-styles.ir-5M2eu.mjs +8 -0
  49. package/.output/server/chunks/build/error-404-styles.ir-5M2eu.mjs.map +1 -0
  50. package/.output/server/chunks/build/error-500-D0twnCBi.mjs +76 -0
  51. package/.output/server/chunks/build/error-500-D0twnCBi.mjs.map +1 -0
  52. package/.output/server/chunks/build/error-500-styles.DiQTnuqt.mjs +8 -0
  53. package/.output/server/chunks/build/error-500-styles.DiQTnuqt.mjs.map +1 -0
  54. package/.output/server/chunks/build/index-styles.CQioNwpv.mjs +8 -0
  55. package/.output/server/chunks/build/index-styles.CQioNwpv.mjs.map +1 -0
  56. package/.output/server/chunks/build/pages-BIiRN2UV.mjs +599 -0
  57. package/.output/server/chunks/build/pages-BIiRN2UV.mjs.map +1 -0
  58. package/.output/server/chunks/build/server.mjs +1115 -0
  59. package/.output/server/chunks/build/server.mjs.map +1 -0
  60. package/.output/server/chunks/build/styles.mjs +11 -0
  61. package/.output/server/chunks/build/styles.mjs.map +1 -0
  62. package/.output/server/chunks/build/v3-CmUYmHkx.mjs +22 -0
  63. package/.output/server/chunks/build/v3-CmUYmHkx.mjs.map +1 -0
  64. package/.output/server/chunks/routes/api/auto-topic.post.mjs +263 -0
  65. package/.output/server/chunks/routes/api/auto-topic.post.mjs.map +1 -0
  66. package/.output/server/chunks/routes/api/copy-prompt.get.mjs +125 -0
  67. package/.output/server/chunks/routes/api/copy-prompt.get.mjs.map +1 -0
  68. package/.output/server/chunks/routes/api/download.get.mjs +35 -0
  69. package/.output/server/chunks/routes/api/download.get.mjs.map +1 -0
  70. package/.output/server/chunks/routes/api/files/_...path_.get.mjs +36 -0
  71. package/.output/server/chunks/routes/api/files/_...path_.get.mjs.map +1 -0
  72. package/.output/server/chunks/routes/api/generate.post.mjs +441 -0
  73. package/.output/server/chunks/routes/api/generate.post.mjs.map +1 -0
  74. package/.output/server/chunks/routes/api/media.get.mjs +48 -0
  75. package/.output/server/chunks/routes/api/media.get.mjs.map +1 -0
  76. package/.output/server/chunks/routes/api/open-folder.post.mjs +29 -0
  77. package/.output/server/chunks/routes/api/open-folder.post.mjs.map +1 -0
  78. package/.output/server/chunks/routes/api/render-data.get.mjs +34 -0
  79. package/.output/server/chunks/routes/api/render-data.get.mjs.map +1 -0
  80. package/.output/server/chunks/routes/api/status.get.mjs +26 -0
  81. package/.output/server/chunks/routes/api/status.get.mjs.map +1 -0
  82. package/.output/server/chunks/routes/api/upload-media.post.mjs +75 -0
  83. package/.output/server/chunks/routes/api/upload-media.post.mjs.map +1 -0
  84. package/.output/server/chunks/routes/renderer.mjs +462 -0
  85. package/.output/server/chunks/routes/renderer.mjs.map +1 -0
  86. package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
  87. package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
  88. package/.output/server/index.mjs +39 -0
  89. package/.output/server/index.mjs.map +1 -0
  90. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/decode-codepoint.js +72 -0
  91. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/decode.js +497 -0
  92. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/escape.js +117 -0
  93. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/generated/decode-data-html.js +7 -0
  94. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/generated/decode-data-xml.js +7 -0
  95. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/package.json +3 -0
  96. package/.output/server/node_modules/.nitro/entities@6.0.1/package.json +118 -0
  97. package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/decode-codepoint.js +77 -0
  98. package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/decode.js +568 -0
  99. package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/generated/decode-data-html.js +7 -0
  100. package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/generated/decode-data-xml.js +7 -0
  101. package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/internal/bin-trie-flags.js +21 -0
  102. package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/internal/decode-shared.js +31 -0
  103. package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/package.json +3 -0
  104. package/.output/server/node_modules/.nitro/entities@7.0.1/package.json +120 -0
  105. package/.output/server/node_modules/.nitro/minimatch@5.1.9/lib/path.js +4 -0
  106. package/.output/server/node_modules/.nitro/minimatch@5.1.9/minimatch.js +996 -0
  107. package/.output/server/node_modules/.nitro/minimatch@5.1.9/package.json +35 -0
  108. package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/assert-valid-pattern.js +14 -0
  109. package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/ast.js +747 -0
  110. package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/brace-expressions.js +152 -0
  111. package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/escape.js +22 -0
  112. package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/index.js +1023 -0
  113. package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/package.json +3 -0
  114. package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/unescape.js +24 -0
  115. package/.output/server/node_modules/.nitro/minimatch@9.0.9/package.json +82 -0
  116. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/_stream_duplex.js +131 -0
  117. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/_stream_passthrough.js +47 -0
  118. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/_stream_readable.js +1019 -0
  119. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/_stream_transform.js +214 -0
  120. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/_stream_writable.js +685 -0
  121. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/internal/streams/BufferList.js +78 -0
  122. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/internal/streams/destroy.js +84 -0
  123. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/internal/streams/stream.js +1 -0
  124. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/package.json +52 -0
  125. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/passthrough.js +1 -0
  126. package/.output/server/node_modules/.nitro/readable-stream@2.3.8/readable.js +19 -0
  127. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/shims/process.js +19 -0
  128. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/add-abort-signal.js +52 -0
  129. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/buffer_list.js +157 -0
  130. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/compose.js +194 -0
  131. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/destroy.js +290 -0
  132. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/duplex.js +143 -0
  133. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/duplexify.js +378 -0
  134. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/end-of-stream.js +286 -0
  135. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/from.js +98 -0
  136. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/legacy.js +94 -0
  137. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/operators.js +457 -0
  138. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/passthrough.js +39 -0
  139. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/pipeline.js +471 -0
  140. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/readable.js +1290 -0
  141. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/state.js +39 -0
  142. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/transform.js +180 -0
  143. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/utils.js +327 -0
  144. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/writable.js +819 -0
  145. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/validators.js +530 -0
  146. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/ours/errors.js +343 -0
  147. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/ours/index.js +65 -0
  148. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/ours/primordials.js +124 -0
  149. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/ours/util/inspect.js +55 -0
  150. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/ours/util.js +148 -0
  151. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/stream/promises.js +43 -0
  152. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/stream.js +143 -0
  153. package/.output/server/node_modules/.nitro/readable-stream@4.8.0/package.json +89 -0
  154. package/.output/server/node_modules/.nitro/safe-buffer@5.1.2/index.js +62 -0
  155. package/.output/server/node_modules/.nitro/safe-buffer@5.1.2/package.json +37 -0
  156. package/.output/server/node_modules/.nitro/safe-buffer@5.2.1/index.js +65 -0
  157. package/.output/server/node_modules/.nitro/safe-buffer@5.2.1/package.json +51 -0
  158. package/.output/server/node_modules/.nitro/string_decoder@1.1.1/lib/string_decoder.js +296 -0
  159. package/.output/server/node_modules/.nitro/string_decoder@1.1.1/package.json +31 -0
  160. package/.output/server/node_modules/.nitro/string_decoder@1.3.0/lib/string_decoder.js +296 -0
  161. package/.output/server/node_modules/.nitro/string_decoder@1.3.0/package.json +34 -0
  162. package/.output/server/node_modules/@babel/parser/lib/index.js +14990 -0
  163. package/.output/server/node_modules/@babel/parser/package.json +50 -0
  164. package/.output/server/node_modules/@google/genai/dist/node/index.mjs +32052 -0
  165. package/.output/server/node_modules/@google/genai/package.json +175 -0
  166. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6806 -0
  167. package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
  168. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +729 -0
  169. package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
  170. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1460 -0
  171. package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
  172. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/api.js +2 -0
  173. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/app.js +2 -0
  174. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/component.js +2 -0
  175. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/context.js +2 -0
  176. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/hooks.js +2 -0
  177. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/index.js +22 -0
  178. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/util.js +2 -0
  179. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/const.js +5 -0
  180. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/env.js +17 -0
  181. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/index.js +45 -0
  182. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/plugin.js +2 -0
  183. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/proxy.js +111 -0
  184. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/time.js +28 -0
  185. package/.output/server/node_modules/@vue/devtools-api/package.json +37 -0
  186. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1937 -0
  187. package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
  188. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +7260 -0
  189. package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
  190. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1932 -0
  191. package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
  192. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +951 -0
  193. package/.output/server/node_modules/@vue/server-renderer/package.json +53 -0
  194. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +657 -0
  195. package/.output/server/node_modules/@vue/shared/package.json +47 -0
  196. package/.output/server/node_modules/abort-controller/dist/abort-controller.js +127 -0
  197. package/.output/server/node_modules/abort-controller/package.json +97 -0
  198. package/.output/server/node_modules/agent-base/dist/helpers.js +66 -0
  199. package/.output/server/node_modules/agent-base/dist/index.js +178 -0
  200. package/.output/server/node_modules/agent-base/package.json +46 -0
  201. package/.output/server/node_modules/archiver/index.js +84 -0
  202. package/.output/server/node_modules/archiver/lib/core.js +974 -0
  203. package/.output/server/node_modules/archiver/lib/error.js +40 -0
  204. package/.output/server/node_modules/archiver/lib/plugins/json.js +110 -0
  205. package/.output/server/node_modules/archiver/lib/plugins/tar.js +167 -0
  206. package/.output/server/node_modules/archiver/lib/plugins/zip.js +120 -0
  207. package/.output/server/node_modules/archiver/package.json +60 -0
  208. package/.output/server/node_modules/archiver-utils/file.js +209 -0
  209. package/.output/server/node_modules/archiver-utils/index.js +155 -0
  210. package/.output/server/node_modules/archiver-utils/package.json +48 -0
  211. package/.output/server/node_modules/async/dist/async.js +6061 -0
  212. package/.output/server/node_modules/async/package.json +75 -0
  213. package/.output/server/node_modules/b4a/index.js +193 -0
  214. package/.output/server/node_modules/b4a/package.json +54 -0
  215. package/.output/server/node_modules/balanced-match/index.js +62 -0
  216. package/.output/server/node_modules/balanced-match/package.json +48 -0
  217. package/.output/server/node_modules/base64-js/index.js +150 -0
  218. package/.output/server/node_modules/base64-js/package.json +47 -0
  219. package/.output/server/node_modules/bignumber.js/bignumber.js +2922 -0
  220. package/.output/server/node_modules/bignumber.js/package.json +60 -0
  221. package/.output/server/node_modules/brace-expansion/index.js +633 -0
  222. package/.output/server/node_modules/brace-expansion/package.json +52 -0
  223. package/.output/server/node_modules/buffer-crc32/dist/index.cjs +306 -0
  224. package/.output/server/node_modules/buffer-crc32/package.json +54 -0
  225. package/.output/server/node_modules/buffer-equal-constant-time/index.js +41 -0
  226. package/.output/server/node_modules/buffer-equal-constant-time/package.json +21 -0
  227. package/.output/server/node_modules/compress-commons/lib/archivers/archive-entry.js +16 -0
  228. package/.output/server/node_modules/compress-commons/lib/archivers/archive-output-stream.js +118 -0
  229. package/.output/server/node_modules/compress-commons/lib/archivers/zip/constants.js +71 -0
  230. package/.output/server/node_modules/compress-commons/lib/archivers/zip/general-purpose-bit.js +101 -0
  231. package/.output/server/node_modules/compress-commons/lib/archivers/zip/unix-stat.js +53 -0
  232. package/.output/server/node_modules/compress-commons/lib/archivers/zip/util.js +74 -0
  233. package/.output/server/node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js +413 -0
  234. package/.output/server/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js +437 -0
  235. package/.output/server/node_modules/compress-commons/lib/compress-commons.js +13 -0
  236. package/.output/server/node_modules/compress-commons/lib/util/index.js +27 -0
  237. package/.output/server/node_modules/compress-commons/package.json +46 -0
  238. package/.output/server/node_modules/core-util-is/lib/util.js +107 -0
  239. package/.output/server/node_modules/core-util-is/package.json +38 -0
  240. package/.output/server/node_modules/crc-32/crc32.js +115 -0
  241. package/.output/server/node_modules/crc-32/package.json +67 -0
  242. package/.output/server/node_modules/crc32-stream/lib/crc32-stream.js +48 -0
  243. package/.output/server/node_modules/crc32-stream/lib/deflate-crc32-stream.js +62 -0
  244. package/.output/server/node_modules/crc32-stream/lib/index.js +14 -0
  245. package/.output/server/node_modules/crc32-stream/package.json +45 -0
  246. package/.output/server/node_modules/data-uri-to-buffer/dist/index.js +53 -0
  247. package/.output/server/node_modules/data-uri-to-buffer/package.json +62 -0
  248. package/.output/server/node_modules/debug/package.json +64 -0
  249. package/.output/server/node_modules/debug/src/browser.js +272 -0
  250. package/.output/server/node_modules/debug/src/common.js +292 -0
  251. package/.output/server/node_modules/debug/src/index.js +10 -0
  252. package/.output/server/node_modules/debug/src/node.js +263 -0
  253. package/.output/server/node_modules/devalue/index.js +17 -0
  254. package/.output/server/node_modules/devalue/package.json +39 -0
  255. package/.output/server/node_modules/devalue/src/base64.js +60 -0
  256. package/.output/server/node_modules/devalue/src/constants.js +12 -0
  257. package/.output/server/node_modules/devalue/src/operations.js +221 -0
  258. package/.output/server/node_modules/devalue/src/parse.js +279 -0
  259. package/.output/server/node_modules/devalue/src/stringify.js +433 -0
  260. package/.output/server/node_modules/devalue/src/uneval.js +698 -0
  261. package/.output/server/node_modules/devalue/src/utils.js +190 -0
  262. package/.output/server/node_modules/ecdsa-sig-formatter/package.json +46 -0
  263. package/.output/server/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js +187 -0
  264. package/.output/server/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js +23 -0
  265. package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  266. package/.output/server/node_modules/estree-walker/package.json +37 -0
  267. package/.output/server/node_modules/event-target-shim/dist/event-target-shim.js +871 -0
  268. package/.output/server/node_modules/event-target-shim/package.json +82 -0
  269. package/.output/server/node_modules/events-universal/default.js +1 -0
  270. package/.output/server/node_modules/events-universal/package.json +39 -0
  271. package/.output/server/node_modules/extend/index.js +117 -0
  272. package/.output/server/node_modules/extend/package.json +42 -0
  273. package/.output/server/node_modules/fast-fifo/fixed-size.js +39 -0
  274. package/.output/server/node_modules/fast-fifo/index.js +48 -0
  275. package/.output/server/node_modules/fast-fifo/package.json +28 -0
  276. package/.output/server/node_modules/fetch-blob/file.js +49 -0
  277. package/.output/server/node_modules/fetch-blob/from.js +100 -0
  278. package/.output/server/node_modules/fetch-blob/index.js +250 -0
  279. package/.output/server/node_modules/fetch-blob/package.json +56 -0
  280. package/.output/server/node_modules/fetch-blob/streams.cjs +51 -0
  281. package/.output/server/node_modules/formdata-polyfill/esm.min.js +40 -0
  282. package/.output/server/node_modules/formdata-polyfill/package.json +50 -0
  283. package/.output/server/node_modules/gaxios/build/cjs/src/common.js +311 -0
  284. package/.output/server/node_modules/gaxios/build/cjs/src/gaxios.js +564 -0
  285. package/.output/server/node_modules/gaxios/build/cjs/src/index.js +48 -0
  286. package/.output/server/node_modules/gaxios/build/cjs/src/interceptor.js +22 -0
  287. package/.output/server/node_modules/gaxios/build/cjs/src/retry.js +165 -0
  288. package/.output/server/node_modules/gaxios/build/cjs/src/util.cjs +16 -0
  289. package/.output/server/node_modules/gaxios/package.json +105 -0
  290. package/.output/server/node_modules/gcp-metadata/build/src/gcp-residency.js +114 -0
  291. package/.output/server/node_modules/gcp-metadata/build/src/index.js +402 -0
  292. package/.output/server/node_modules/gcp-metadata/package.json +77 -0
  293. package/.output/server/node_modules/glob/dist/commonjs/glob.js +247 -0
  294. package/.output/server/node_modules/glob/dist/commonjs/has-magic.js +27 -0
  295. package/.output/server/node_modules/glob/dist/commonjs/ignore.js +119 -0
  296. package/.output/server/node_modules/glob/dist/commonjs/index.js +68 -0
  297. package/.output/server/node_modules/glob/dist/commonjs/package.json +3 -0
  298. package/.output/server/node_modules/glob/dist/commonjs/pattern.js +219 -0
  299. package/.output/server/node_modules/glob/dist/commonjs/processor.js +301 -0
  300. package/.output/server/node_modules/glob/dist/commonjs/walker.js +387 -0
  301. package/.output/server/node_modules/glob/package.json +99 -0
  302. package/.output/server/node_modules/google-auth-library/build/src/auth/authclient.js +286 -0
  303. package/.output/server/node_modules/google-auth-library/build/src/auth/awsclient.js +154 -0
  304. package/.output/server/node_modules/google-auth-library/build/src/auth/awsrequestsigner.js +213 -0
  305. package/.output/server/node_modules/google-auth-library/build/src/auth/baseexternalclient.js +477 -0
  306. package/.output/server/node_modules/google-auth-library/build/src/auth/certificatesubjecttokensupplier.js +223 -0
  307. package/.output/server/node_modules/google-auth-library/build/src/auth/computeclient.js +118 -0
  308. package/.output/server/node_modules/google-auth-library/build/src/auth/defaultawssecuritycredentialssupplier.js +199 -0
  309. package/.output/server/node_modules/google-auth-library/build/src/auth/downscopedclient.js +273 -0
  310. package/.output/server/node_modules/google-auth-library/build/src/auth/envDetect.js +97 -0
  311. package/.output/server/node_modules/google-auth-library/build/src/auth/executable-response.js +178 -0
  312. package/.output/server/node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.js +233 -0
  313. package/.output/server/node_modules/google-auth-library/build/src/auth/externalclient.js +68 -0
  314. package/.output/server/node_modules/google-auth-library/build/src/auth/filesubjecttokensupplier.js +84 -0
  315. package/.output/server/node_modules/google-auth-library/build/src/auth/gdchclient.js +307 -0
  316. package/.output/server/node_modules/google-auth-library/build/src/auth/googleauth.js +921 -0
  317. package/.output/server/node_modules/google-auth-library/build/src/auth/iam.js +44 -0
  318. package/.output/server/node_modules/google-auth-library/build/src/auth/identitypoolclient.js +131 -0
  319. package/.output/server/node_modules/google-auth-library/build/src/auth/idtokenclient.js +56 -0
  320. package/.output/server/node_modules/google-auth-library/build/src/auth/impersonated.js +197 -0
  321. package/.output/server/node_modules/google-auth-library/build/src/auth/jwtaccess.js +201 -0
  322. package/.output/server/node_modules/google-auth-library/build/src/auth/jwtclient.js +301 -0
  323. package/.output/server/node_modules/google-auth-library/build/src/auth/loginticket.js +60 -0
  324. package/.output/server/node_modules/google-auth-library/build/src/auth/oauth2client.js +820 -0
  325. package/.output/server/node_modules/google-auth-library/build/src/auth/oauth2common.js +189 -0
  326. package/.output/server/node_modules/google-auth-library/build/src/auth/passthrough.js +60 -0
  327. package/.output/server/node_modules/google-auth-library/build/src/auth/pluggable-auth-client.js +220 -0
  328. package/.output/server/node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.js +174 -0
  329. package/.output/server/node_modules/google-auth-library/build/src/auth/refreshclient.js +160 -0
  330. package/.output/server/node_modules/google-auth-library/build/src/auth/stscredentials.js +107 -0
  331. package/.output/server/node_modules/google-auth-library/build/src/auth/urlsubjecttokensupplier.js +71 -0
  332. package/.output/server/node_modules/google-auth-library/build/src/crypto/browser/crypto.js +127 -0
  333. package/.output/server/node_modules/google-auth-library/build/src/crypto/crypto.js +54 -0
  334. package/.output/server/node_modules/google-auth-library/build/src/crypto/node/crypto.js +88 -0
  335. package/.output/server/node_modules/google-auth-library/build/src/crypto/shared.js +32 -0
  336. package/.output/server/node_modules/google-auth-library/build/src/gtoken/errorWithCode.js +25 -0
  337. package/.output/server/node_modules/google-auth-library/build/src/gtoken/getCredentials.js +132 -0
  338. package/.output/server/node_modules/google-auth-library/build/src/gtoken/getToken.js +66 -0
  339. package/.output/server/node_modules/google-auth-library/build/src/gtoken/googleToken.js +125 -0
  340. package/.output/server/node_modules/google-auth-library/build/src/gtoken/jwsSign.js +54 -0
  341. package/.output/server/node_modules/google-auth-library/build/src/gtoken/revokeToken.js +34 -0
  342. package/.output/server/node_modules/google-auth-library/build/src/gtoken/tokenHandler.js +97 -0
  343. package/.output/server/node_modules/google-auth-library/build/src/index.js +88 -0
  344. package/.output/server/node_modules/google-auth-library/build/src/shared.cjs +22 -0
  345. package/.output/server/node_modules/google-auth-library/build/src/util.js +176 -0
  346. package/.output/server/node_modules/google-auth-library/package.json +90 -0
  347. package/.output/server/node_modules/google-logging-utils/build/src/colours.js +81 -0
  348. package/.output/server/node_modules/google-logging-utils/build/src/index.js +31 -0
  349. package/.output/server/node_modules/google-logging-utils/build/src/logging-utils.js +437 -0
  350. package/.output/server/node_modules/google-logging-utils/package.json +45 -0
  351. package/.output/server/node_modules/graceful-fs/clone.js +23 -0
  352. package/.output/server/node_modules/graceful-fs/graceful-fs.js +448 -0
  353. package/.output/server/node_modules/graceful-fs/legacy-streams.js +118 -0
  354. package/.output/server/node_modules/graceful-fs/package.json +52 -0
  355. package/.output/server/node_modules/graceful-fs/polyfills.js +355 -0
  356. package/.output/server/node_modules/has-flag/index.js +8 -0
  357. package/.output/server/node_modules/has-flag/package.json +46 -0
  358. package/.output/server/node_modules/hookable/dist/index.mjs +257 -0
  359. package/.output/server/node_modules/hookable/package.json +54 -0
  360. package/.output/server/node_modules/https-proxy-agent/dist/index.js +180 -0
  361. package/.output/server/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
  362. package/.output/server/node_modules/https-proxy-agent/package.json +50 -0
  363. package/.output/server/node_modules/inherits/inherits.js +9 -0
  364. package/.output/server/node_modules/inherits/inherits_browser.js +27 -0
  365. package/.output/server/node_modules/inherits/package.json +29 -0
  366. package/.output/server/node_modules/is-stream/index.js +28 -0
  367. package/.output/server/node_modules/is-stream/package.json +42 -0
  368. package/.output/server/node_modules/isarray/index.js +5 -0
  369. package/.output/server/node_modules/isarray/package.json +45 -0
  370. package/.output/server/node_modules/json-bigint/index.js +12 -0
  371. package/.output/server/node_modules/json-bigint/lib/parse.js +443 -0
  372. package/.output/server/node_modules/json-bigint/lib/stringify.js +384 -0
  373. package/.output/server/node_modules/json-bigint/package.json +34 -0
  374. package/.output/server/node_modules/jwa/index.js +266 -0
  375. package/.output/server/node_modules/jwa/package.json +37 -0
  376. package/.output/server/node_modules/jws/index.js +22 -0
  377. package/.output/server/node_modules/jws/lib/data-stream.js +55 -0
  378. package/.output/server/node_modules/jws/lib/sign-stream.js +83 -0
  379. package/.output/server/node_modules/jws/lib/tostring.js +10 -0
  380. package/.output/server/node_modules/jws/lib/verify-stream.js +125 -0
  381. package/.output/server/node_modules/jws/package.json +34 -0
  382. package/.output/server/node_modules/lazystream/lib/lazystream.js +54 -0
  383. package/.output/server/node_modules/lazystream/package.json +46 -0
  384. package/.output/server/node_modules/lodash/_Hash.js +32 -0
  385. package/.output/server/node_modules/lodash/_ListCache.js +32 -0
  386. package/.output/server/node_modules/lodash/_Map.js +7 -0
  387. package/.output/server/node_modules/lodash/_MapCache.js +32 -0
  388. package/.output/server/node_modules/lodash/_Set.js +7 -0
  389. package/.output/server/node_modules/lodash/_SetCache.js +27 -0
  390. package/.output/server/node_modules/lodash/_Symbol.js +6 -0
  391. package/.output/server/node_modules/lodash/_apply.js +21 -0
  392. package/.output/server/node_modules/lodash/_arrayIncludes.js +17 -0
  393. package/.output/server/node_modules/lodash/_arrayIncludesWith.js +22 -0
  394. package/.output/server/node_modules/lodash/_arrayLikeKeys.js +49 -0
  395. package/.output/server/node_modules/lodash/_arrayMap.js +21 -0
  396. package/.output/server/node_modules/lodash/_arrayPush.js +20 -0
  397. package/.output/server/node_modules/lodash/_assocIndexOf.js +21 -0
  398. package/.output/server/node_modules/lodash/_baseDifference.js +67 -0
  399. package/.output/server/node_modules/lodash/_baseFindIndex.js +24 -0
  400. package/.output/server/node_modules/lodash/_baseFlatten.js +38 -0
  401. package/.output/server/node_modules/lodash/_baseGetTag.js +28 -0
  402. package/.output/server/node_modules/lodash/_baseIndexOf.js +20 -0
  403. package/.output/server/node_modules/lodash/_baseIsArguments.js +18 -0
  404. package/.output/server/node_modules/lodash/_baseIsNaN.js +12 -0
  405. package/.output/server/node_modules/lodash/_baseIsNative.js +47 -0
  406. package/.output/server/node_modules/lodash/_baseIsTypedArray.js +60 -0
  407. package/.output/server/node_modules/lodash/_baseKeysIn.js +33 -0
  408. package/.output/server/node_modules/lodash/_baseRest.js +17 -0
  409. package/.output/server/node_modules/lodash/_baseSetToString.js +22 -0
  410. package/.output/server/node_modules/lodash/_baseTimes.js +20 -0
  411. package/.output/server/node_modules/lodash/_baseUnary.js +14 -0
  412. package/.output/server/node_modules/lodash/_baseUniq.js +72 -0
  413. package/.output/server/node_modules/lodash/_cacheHas.js +13 -0
  414. package/.output/server/node_modules/lodash/_coreJsData.js +6 -0
  415. package/.output/server/node_modules/lodash/_createSet.js +19 -0
  416. package/.output/server/node_modules/lodash/_defineProperty.js +11 -0
  417. package/.output/server/node_modules/lodash/_freeGlobal.js +4 -0
  418. package/.output/server/node_modules/lodash/_getMapData.js +18 -0
  419. package/.output/server/node_modules/lodash/_getNative.js +17 -0
  420. package/.output/server/node_modules/lodash/_getPrototype.js +6 -0
  421. package/.output/server/node_modules/lodash/_getRawTag.js +46 -0
  422. package/.output/server/node_modules/lodash/_getValue.js +13 -0
  423. package/.output/server/node_modules/lodash/_hashClear.js +15 -0
  424. package/.output/server/node_modules/lodash/_hashDelete.js +17 -0
  425. package/.output/server/node_modules/lodash/_hashGet.js +30 -0
  426. package/.output/server/node_modules/lodash/_hashHas.js +23 -0
  427. package/.output/server/node_modules/lodash/_hashSet.js +23 -0
  428. package/.output/server/node_modules/lodash/_isFlattenable.js +20 -0
  429. package/.output/server/node_modules/lodash/_isIndex.js +25 -0
  430. package/.output/server/node_modules/lodash/_isIterateeCall.js +30 -0
  431. package/.output/server/node_modules/lodash/_isKeyable.js +15 -0
  432. package/.output/server/node_modules/lodash/_isMasked.js +20 -0
  433. package/.output/server/node_modules/lodash/_isPrototype.js +18 -0
  434. package/.output/server/node_modules/lodash/_listCacheClear.js +13 -0
  435. package/.output/server/node_modules/lodash/_listCacheDelete.js +35 -0
  436. package/.output/server/node_modules/lodash/_listCacheGet.js +19 -0
  437. package/.output/server/node_modules/lodash/_listCacheHas.js +16 -0
  438. package/.output/server/node_modules/lodash/_listCacheSet.js +26 -0
  439. package/.output/server/node_modules/lodash/_mapCacheClear.js +21 -0
  440. package/.output/server/node_modules/lodash/_mapCacheDelete.js +18 -0
  441. package/.output/server/node_modules/lodash/_mapCacheGet.js +16 -0
  442. package/.output/server/node_modules/lodash/_mapCacheHas.js +16 -0
  443. package/.output/server/node_modules/lodash/_mapCacheSet.js +22 -0
  444. package/.output/server/node_modules/lodash/_nativeCreate.js +6 -0
  445. package/.output/server/node_modules/lodash/_nativeKeysIn.js +20 -0
  446. package/.output/server/node_modules/lodash/_nodeUtil.js +30 -0
  447. package/.output/server/node_modules/lodash/_objectToString.js +22 -0
  448. package/.output/server/node_modules/lodash/_overArg.js +15 -0
  449. package/.output/server/node_modules/lodash/_overRest.js +36 -0
  450. package/.output/server/node_modules/lodash/_root.js +9 -0
  451. package/.output/server/node_modules/lodash/_setCacheAdd.js +19 -0
  452. package/.output/server/node_modules/lodash/_setCacheHas.js +14 -0
  453. package/.output/server/node_modules/lodash/_setToArray.js +18 -0
  454. package/.output/server/node_modules/lodash/_setToString.js +14 -0
  455. package/.output/server/node_modules/lodash/_shortOut.js +37 -0
  456. package/.output/server/node_modules/lodash/_strictIndexOf.js +23 -0
  457. package/.output/server/node_modules/lodash/_toSource.js +26 -0
  458. package/.output/server/node_modules/lodash/constant.js +26 -0
  459. package/.output/server/node_modules/lodash/defaults.js +64 -0
  460. package/.output/server/node_modules/lodash/difference.js +33 -0
  461. package/.output/server/node_modules/lodash/eq.js +37 -0
  462. package/.output/server/node_modules/lodash/flatten.js +22 -0
  463. package/.output/server/node_modules/lodash/identity.js +21 -0
  464. package/.output/server/node_modules/lodash/isArguments.js +36 -0
  465. package/.output/server/node_modules/lodash/isArray.js +26 -0
  466. package/.output/server/node_modules/lodash/isArrayLike.js +33 -0
  467. package/.output/server/node_modules/lodash/isArrayLikeObject.js +33 -0
  468. package/.output/server/node_modules/lodash/isBuffer.js +38 -0
  469. package/.output/server/node_modules/lodash/isFunction.js +37 -0
  470. package/.output/server/node_modules/lodash/isLength.js +35 -0
  471. package/.output/server/node_modules/lodash/isObject.js +31 -0
  472. package/.output/server/node_modules/lodash/isObjectLike.js +29 -0
  473. package/.output/server/node_modules/lodash/isPlainObject.js +62 -0
  474. package/.output/server/node_modules/lodash/isTypedArray.js +27 -0
  475. package/.output/server/node_modules/lodash/keysIn.js +32 -0
  476. package/.output/server/node_modules/lodash/noop.js +17 -0
  477. package/.output/server/node_modules/lodash/package.json +19 -0
  478. package/.output/server/node_modules/lodash/stubFalse.js +18 -0
  479. package/.output/server/node_modules/lodash/union.js +26 -0
  480. package/.output/server/node_modules/lru-cache/dist/commonjs/index.js +1546 -0
  481. package/.output/server/node_modules/lru-cache/dist/commonjs/package.json +3 -0
  482. package/.output/server/node_modules/lru-cache/package.json +116 -0
  483. package/.output/server/node_modules/lucide-vue-next/dist/cjs/lucide-vue-next.js +21273 -0
  484. package/.output/server/node_modules/lucide-vue-next/package.json +64 -0
  485. package/.output/server/node_modules/minipass/dist/commonjs/index.js +1038 -0
  486. package/.output/server/node_modules/minipass/dist/commonjs/package.json +3 -0
  487. package/.output/server/node_modules/minipass/package.json +77 -0
  488. package/.output/server/node_modules/ms/index.js +162 -0
  489. package/.output/server/node_modules/ms/package.json +38 -0
  490. package/.output/server/node_modules/node-domexception/index.js +16 -0
  491. package/.output/server/node_modules/node-domexception/package.json +29 -0
  492. package/.output/server/node_modules/node-fetch/package.json +131 -0
  493. package/.output/server/node_modules/node-fetch/src/body.js +397 -0
  494. package/.output/server/node_modules/node-fetch/src/errors/abort-error.js +10 -0
  495. package/.output/server/node_modules/node-fetch/src/errors/base.js +17 -0
  496. package/.output/server/node_modules/node-fetch/src/errors/fetch-error.js +26 -0
  497. package/.output/server/node_modules/node-fetch/src/headers.js +267 -0
  498. package/.output/server/node_modules/node-fetch/src/index.js +417 -0
  499. package/.output/server/node_modules/node-fetch/src/request.js +313 -0
  500. package/.output/server/node_modules/node-fetch/src/response.js +160 -0
  501. package/.output/server/node_modules/node-fetch/src/utils/get-search.js +9 -0
  502. package/.output/server/node_modules/node-fetch/src/utils/is-redirect.js +11 -0
  503. package/.output/server/node_modules/node-fetch/src/utils/is.js +87 -0
  504. package/.output/server/node_modules/node-fetch/src/utils/multipart-parser.js +432 -0
  505. package/.output/server/node_modules/node-fetch/src/utils/referrer.js +340 -0
  506. package/.output/server/node_modules/normalize-path/index.js +35 -0
  507. package/.output/server/node_modules/normalize-path/package.json +77 -0
  508. package/.output/server/node_modules/p-retry/index.js +85 -0
  509. package/.output/server/node_modules/p-retry/package.json +51 -0
  510. package/.output/server/node_modules/parse5/dist/common/doctype.js +114 -0
  511. package/.output/server/node_modules/parse5/dist/common/error-codes.js +63 -0
  512. package/.output/server/node_modules/parse5/dist/common/foreign-content.js +228 -0
  513. package/.output/server/node_modules/parse5/dist/common/html.js +523 -0
  514. package/.output/server/node_modules/parse5/dist/common/token.js +20 -0
  515. package/.output/server/node_modules/parse5/dist/common/unicode.js +62 -0
  516. package/.output/server/node_modules/parse5/dist/index.js +42 -0
  517. package/.output/server/node_modules/parse5/dist/parser/formatting-element-list.js +110 -0
  518. package/.output/server/node_modules/parse5/dist/parser/index.js +3245 -0
  519. package/.output/server/node_modules/parse5/dist/parser/open-element-stack.js +324 -0
  520. package/.output/server/node_modules/parse5/dist/serializer/index.js +168 -0
  521. package/.output/server/node_modules/parse5/dist/tokenizer/index.js +2710 -0
  522. package/.output/server/node_modules/parse5/dist/tokenizer/preprocessor.js +196 -0
  523. package/.output/server/node_modules/parse5/dist/tree-adapters/default.js +173 -0
  524. package/.output/server/node_modules/parse5/package.json +50 -0
  525. package/.output/server/node_modules/path-scurry/dist/commonjs/index.js +2014 -0
  526. package/.output/server/node_modules/path-scurry/dist/commonjs/package.json +3 -0
  527. package/.output/server/node_modules/path-scurry/package.json +89 -0
  528. package/.output/server/node_modules/playwright/index.mjs +18 -0
  529. package/.output/server/node_modules/playwright/package.json +50 -0
  530. package/.output/server/node_modules/playwright-core/browsers.json +52 -0
  531. package/.output/server/node_modules/playwright-core/index.js +17 -0
  532. package/.output/server/node_modules/playwright-core/index.mjs +28 -0
  533. package/.output/server/node_modules/playwright-core/lib/bootstrap.js +149 -0
  534. package/.output/server/node_modules/playwright-core/lib/coreBundle.js +78764 -0
  535. package/.output/server/node_modules/playwright-core/lib/utilsBundle.js +92408 -0
  536. package/.output/server/node_modules/playwright-core/package.json +34 -0
  537. package/.output/server/node_modules/process/index.js +2 -0
  538. package/.output/server/node_modules/process/package.json +27 -0
  539. package/.output/server/node_modules/process-nextick-args/index.js +45 -0
  540. package/.output/server/node_modules/process-nextick-args/package.json +25 -0
  541. package/.output/server/node_modules/readdir-glob/index.js +243 -0
  542. package/.output/server/node_modules/readdir-glob/package.json +43 -0
  543. package/.output/server/node_modules/retry/index.js +1 -0
  544. package/.output/server/node_modules/retry/lib/retry.js +100 -0
  545. package/.output/server/node_modules/retry/lib/retry_operation.js +162 -0
  546. package/.output/server/node_modules/retry/package.json +36 -0
  547. package/.output/server/node_modules/source-map-js/lib/array-set.js +123 -0
  548. package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +136 -0
  549. package/.output/server/node_modules/source-map-js/lib/base64.js +68 -0
  550. package/.output/server/node_modules/source-map-js/lib/binary-search.js +115 -0
  551. package/.output/server/node_modules/source-map-js/lib/mapping-list.js +84 -0
  552. package/.output/server/node_modules/source-map-js/lib/quick-sort.js +211 -0
  553. package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1314 -0
  554. package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +486 -0
  555. package/.output/server/node_modules/source-map-js/lib/source-node.js +446 -0
  556. package/.output/server/node_modules/source-map-js/lib/util.js +613 -0
  557. package/.output/server/node_modules/source-map-js/package.json +78 -0
  558. package/.output/server/node_modules/source-map-js/source-map.js +10 -0
  559. package/.output/server/node_modules/streamx/index.js +1314 -0
  560. package/.output/server/node_modules/streamx/lib/errors.js +47 -0
  561. package/.output/server/node_modules/streamx/package.json +51 -0
  562. package/.output/server/node_modules/supports-color/index.js +135 -0
  563. package/.output/server/node_modules/supports-color/package.json +53 -0
  564. package/.output/server/node_modules/tar-stream/constants.js +14 -0
  565. package/.output/server/node_modules/tar-stream/extract.js +418 -0
  566. package/.output/server/node_modules/tar-stream/headers.js +322 -0
  567. package/.output/server/node_modules/tar-stream/index.js +2 -0
  568. package/.output/server/node_modules/tar-stream/pack.js +287 -0
  569. package/.output/server/node_modules/tar-stream/package.json +50 -0
  570. package/.output/server/node_modules/text-decoder/index.js +64 -0
  571. package/.output/server/node_modules/text-decoder/lib/pass-through-decoder.js +19 -0
  572. package/.output/server/node_modules/text-decoder/lib/utf8-decoder.js +185 -0
  573. package/.output/server/node_modules/text-decoder/package.json +39 -0
  574. package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
  575. package/.output/server/node_modules/ufo/package.json +48 -0
  576. package/.output/server/node_modules/unhead/dist/index.mjs +9 -0
  577. package/.output/server/node_modules/unhead/dist/plugins.mjs +103 -0
  578. package/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
  579. package/.output/server/node_modules/unhead/dist/server.mjs +191 -0
  580. package/.output/server/node_modules/unhead/dist/shared/unhead.0TIQaUam.mjs +244 -0
  581. package/.output/server/node_modules/unhead/dist/shared/unhead.AtIkjM2B.mjs +166 -0
  582. package/.output/server/node_modules/unhead/dist/shared/unhead.AvDFlk_u.mjs +39 -0
  583. package/.output/server/node_modules/unhead/dist/shared/unhead.B0o2oYhg.mjs +317 -0
  584. package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
  585. package/.output/server/node_modules/unhead/dist/shared/unhead.ByHeIeZd.mjs +184 -0
  586. package/.output/server/node_modules/unhead/dist/shared/unhead.C-69jnXc.mjs +44 -0
  587. package/.output/server/node_modules/unhead/dist/shared/unhead.ChXiQvI8.mjs +76 -0
  588. package/.output/server/node_modules/unhead/dist/shared/unhead.DWXHYkPf.mjs +366 -0
  589. package/.output/server/node_modules/unhead/dist/shared/unhead.h_KkEIE6.mjs +196 -0
  590. package/.output/server/node_modules/unhead/dist/shared/unhead.ylJpsHyA.mjs +255 -0
  591. package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
  592. package/.output/server/node_modules/unhead/package.json +106 -0
  593. package/.output/server/node_modules/util-deprecate/node.js +6 -0
  594. package/.output/server/node_modules/util-deprecate/package.json +27 -0
  595. package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
  596. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  597. package/.output/server/node_modules/vue/index.js +7 -0
  598. package/.output/server/node_modules/vue/index.mjs +1 -0
  599. package/.output/server/node_modules/vue/package.json +112 -0
  600. package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
  601. package/.output/server/node_modules/vue-bundle-renderer/dist/dependencies-VCG-RX19.mjs +118 -0
  602. package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +673 -0
  603. package/.output/server/node_modules/vue-bundle-renderer/package.json +66 -0
  604. package/.output/server/node_modules/vue-router/dist/devtools-C3Hva4Qk.mjs +1220 -0
  605. package/.output/server/node_modules/vue-router/dist/vue-router.mjs +1561 -0
  606. package/.output/server/node_modules/vue-router/package.json +156 -0
  607. package/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
  608. package/.output/server/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js +4737 -0
  609. package/.output/server/node_modules/web-streams-polyfill/package.json +83 -0
  610. package/.output/server/node_modules/ws/lib/buffer-util.js +142 -0
  611. package/.output/server/node_modules/ws/lib/constants.js +19 -0
  612. package/.output/server/node_modules/ws/lib/event-target.js +292 -0
  613. package/.output/server/node_modules/ws/lib/extension.js +203 -0
  614. package/.output/server/node_modules/ws/lib/limiter.js +55 -0
  615. package/.output/server/node_modules/ws/lib/permessage-deflate.js +530 -0
  616. package/.output/server/node_modules/ws/lib/receiver.js +751 -0
  617. package/.output/server/node_modules/ws/lib/sender.js +610 -0
  618. package/.output/server/node_modules/ws/lib/stream.js +161 -0
  619. package/.output/server/node_modules/ws/lib/subprotocol.js +62 -0
  620. package/.output/server/node_modules/ws/lib/validation.js +152 -0
  621. package/.output/server/node_modules/ws/lib/websocket-server.js +565 -0
  622. package/.output/server/node_modules/ws/lib/websocket.js +1471 -0
  623. package/.output/server/node_modules/ws/package.json +74 -0
  624. package/.output/server/node_modules/ws/wrapper.mjs +21 -0
  625. package/.output/server/node_modules/zip-stream/index.js +187 -0
  626. package/.output/server/node_modules/zip-stream/package.json +49 -0
  627. package/.output/server/node_modules/zod/index.js +4 -0
  628. package/.output/server/node_modules/zod/package.json +118 -0
  629. package/.output/server/node_modules/zod/v3/ZodError.js +133 -0
  630. package/.output/server/node_modules/zod/v3/errors.js +9 -0
  631. package/.output/server/node_modules/zod/v3/external.js +6 -0
  632. package/.output/server/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  633. package/.output/server/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  634. package/.output/server/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  635. package/.output/server/node_modules/zod/v3/helpers/util.js +133 -0
  636. package/.output/server/node_modules/zod/v3/locales/en.js +109 -0
  637. package/.output/server/node_modules/zod/v3/types.js +3693 -0
  638. package/.output/server/package.json +99 -0
  639. package/README.md +81 -2
  640. package/bin/cli.js +138 -0
  641. package/data/history.json +17 -0
  642. package/package.json +39 -4
  643. package/public/audio/cyber_future_tech.mp3 +0 -0
  644. package/public/audio/dark_phonk_pulse.mp3 +0 -0
  645. package/public/audio/deep_finance_groove.mp3 +0 -0
  646. package/public/audio/lofi_viral_study.mp3 +0 -0
  647. package/public/audio/motivation_cinematic.mp3 +0 -0
  648. package/public/videos/cyber_blue.mp4 +0 -0
  649. package/public/videos/cyber_matrix_stream.mp4 +0 -0
  650. package/public/videos/cyber_pulse.mp4 +0 -0
  651. package/public/videos/dark_luxury_particles.mp4 +0 -0
  652. package/public/videos/default_bg.mp4 +0 -0
  653. package/public/videos/emerald_flow.mp4 +0 -0
  654. package/public/videos/financial_pulse_flow.mp4 +0 -0
  655. package/public/videos/neon_cyber_grid.mp4 +0 -0
@@ -0,0 +1,820 @@
1
+ "use strict";
2
+ // Copyright 2019 Google LLC
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.OAuth2Client = exports.ClientAuthentication = exports.CertificateFormat = exports.CodeChallengeMethod = void 0;
17
+ const gaxios_1 = require("gaxios");
18
+ const querystring = require("querystring");
19
+ const stream = require("stream");
20
+ const formatEcdsa = require("ecdsa-sig-formatter");
21
+ const util_1 = require("../util");
22
+ const crypto_1 = require("../crypto/crypto");
23
+ const authclient_1 = require("./authclient");
24
+ const loginticket_1 = require("./loginticket");
25
+ var CodeChallengeMethod;
26
+ (function (CodeChallengeMethod) {
27
+ CodeChallengeMethod["Plain"] = "plain";
28
+ CodeChallengeMethod["S256"] = "S256";
29
+ })(CodeChallengeMethod || (exports.CodeChallengeMethod = CodeChallengeMethod = {}));
30
+ var CertificateFormat;
31
+ (function (CertificateFormat) {
32
+ CertificateFormat["PEM"] = "PEM";
33
+ CertificateFormat["JWK"] = "JWK";
34
+ })(CertificateFormat || (exports.CertificateFormat = CertificateFormat = {}));
35
+ /**
36
+ * The client authentication type. Supported values are basic, post, and none.
37
+ * https://datatracker.ietf.org/doc/html/rfc7591#section-2
38
+ */
39
+ var ClientAuthentication;
40
+ (function (ClientAuthentication) {
41
+ ClientAuthentication["ClientSecretPost"] = "ClientSecretPost";
42
+ ClientAuthentication["ClientSecretBasic"] = "ClientSecretBasic";
43
+ ClientAuthentication["None"] = "None";
44
+ })(ClientAuthentication || (exports.ClientAuthentication = ClientAuthentication = {}));
45
+ class OAuth2Client extends authclient_1.AuthClient {
46
+ redirectUri;
47
+ certificateCache = {};
48
+ certificateExpiry = null;
49
+ certificateCacheFormat = CertificateFormat.PEM;
50
+ refreshTokenPromises = new Map();
51
+ endpoints;
52
+ issuers;
53
+ clientAuthentication;
54
+ // TODO: refactor tests to make this private
55
+ _clientId;
56
+ // TODO: refactor tests to make this private
57
+ _clientSecret;
58
+ refreshHandler;
59
+ /**
60
+ * An OAuth2 Client for Google APIs.
61
+ *
62
+ * @param options The OAuth2 Client Options. Passing an `clientId` directly is **@DEPRECATED**.
63
+ * @param clientSecret **@DEPRECATED**. Provide a {@link OAuth2ClientOptions `OAuth2ClientOptions`} object in the first parameter instead.
64
+ * @param redirectUri **@DEPRECATED**. Provide a {@link OAuth2ClientOptions `OAuth2ClientOptions`} object in the first parameter instead.
65
+ */
66
+ constructor(options = {},
67
+ /**
68
+ * @deprecated - provide a {@link OAuth2ClientOptions `OAuth2ClientOptions`} object in the first parameter instead
69
+ */
70
+ clientSecret,
71
+ /**
72
+ * @deprecated - provide a {@link OAuth2ClientOptions `OAuth2ClientOptions`} object in the first parameter instead
73
+ */
74
+ redirectUri) {
75
+ super(typeof options === 'object' ? options : {});
76
+ if (typeof options !== 'object') {
77
+ options = {
78
+ clientId: options,
79
+ clientSecret,
80
+ redirectUri,
81
+ };
82
+ }
83
+ this._clientId = options.clientId || options.client_id;
84
+ this._clientSecret = options.clientSecret || options.client_secret;
85
+ this.redirectUri = options.redirectUri || options.redirect_uris?.[0];
86
+ this.endpoints = {
87
+ tokenInfoUrl: 'https://oauth2.googleapis.com/tokeninfo',
88
+ oauth2AuthBaseUrl: 'https://accounts.google.com/o/oauth2/v2/auth',
89
+ oauth2TokenUrl: 'https://oauth2.googleapis.com/token',
90
+ oauth2RevokeUrl: 'https://oauth2.googleapis.com/revoke',
91
+ oauth2FederatedSignonPemCertsUrl: 'https://www.googleapis.com/oauth2/v1/certs',
92
+ oauth2FederatedSignonJwkCertsUrl: 'https://www.googleapis.com/oauth2/v3/certs',
93
+ oauth2IapPublicKeyUrl: 'https://www.gstatic.com/iap/verify/public_key',
94
+ ...options.endpoints,
95
+ };
96
+ this.clientAuthentication =
97
+ options.clientAuthentication || ClientAuthentication.ClientSecretPost;
98
+ this.issuers = options.issuers || [
99
+ 'accounts.google.com',
100
+ 'https://accounts.google.com',
101
+ this.universeDomain,
102
+ ];
103
+ }
104
+ /**
105
+ * @deprecated use instance's {@link OAuth2Client.endpoints}
106
+ */
107
+ static GOOGLE_TOKEN_INFO_URL = 'https://oauth2.googleapis.com/tokeninfo';
108
+ /**
109
+ * Clock skew - five minutes in seconds
110
+ */
111
+ static CLOCK_SKEW_SECS_ = 300;
112
+ /**
113
+ * The default max Token Lifetime is one day in seconds
114
+ */
115
+ static DEFAULT_MAX_TOKEN_LIFETIME_SECS_ = 86400;
116
+ /**
117
+ * Generates URL for consent page landing.
118
+ * @param opts Options.
119
+ * @return URL to consent page.
120
+ */
121
+ generateAuthUrl(opts = {}) {
122
+ if (opts.code_challenge_method && !opts.code_challenge) {
123
+ throw new Error('If a code_challenge_method is provided, code_challenge must be included.');
124
+ }
125
+ opts.response_type = opts.response_type || 'code';
126
+ opts.client_id = opts.client_id || this._clientId;
127
+ opts.redirect_uri = opts.redirect_uri || this.redirectUri;
128
+ // Allow scopes to be passed either as array or a string
129
+ if (Array.isArray(opts.scope)) {
130
+ opts.scope = opts.scope.join(' ');
131
+ }
132
+ const rootUrl = this.endpoints.oauth2AuthBaseUrl.toString();
133
+ return (rootUrl +
134
+ '?' +
135
+ querystring.stringify(opts));
136
+ }
137
+ generateCodeVerifier() {
138
+ // To make the code compatible with browser SubtleCrypto we need to make
139
+ // this method async.
140
+ throw new Error('generateCodeVerifier is removed, please use generateCodeVerifierAsync instead.');
141
+ }
142
+ /**
143
+ * Convenience method to automatically generate a code_verifier, and its
144
+ * resulting SHA256. If used, this must be paired with a S256
145
+ * code_challenge_method.
146
+ *
147
+ * For a full example see:
148
+ * https://github.com/googleapis/google-auth-library-nodejs/blob/main/samples/oauth2-codeVerifier.js
149
+ */
150
+ async generateCodeVerifierAsync() {
151
+ // base64 encoding uses 6 bits per character, and we want to generate128
152
+ // characters. 6*128/8 = 96.
153
+ const crypto = (0, crypto_1.createCrypto)();
154
+ const randomString = crypto.randomBytesBase64(96);
155
+ // The valid characters in the code_verifier are [A-Z]/[a-z]/[0-9]/
156
+ // "-"/"."/"_"/"~". Base64 encoded strings are pretty close, so we're just
157
+ // swapping out a few chars.
158
+ const codeVerifier = randomString
159
+ .replace(/\+/g, '~')
160
+ .replace(/=/g, '_')
161
+ .replace(/\//g, '-');
162
+ // Generate the base64 encoded SHA256
163
+ const unencodedCodeChallenge = await crypto.sha256DigestBase64(codeVerifier);
164
+ // We need to use base64UrlEncoding instead of standard base64
165
+ const codeChallenge = unencodedCodeChallenge
166
+ .split('=')[0]
167
+ .replace(/\+/g, '-')
168
+ .replace(/\//g, '_');
169
+ return { codeVerifier, codeChallenge };
170
+ }
171
+ getToken(codeOrOptions, callback) {
172
+ const options = typeof codeOrOptions === 'string' ? { code: codeOrOptions } : codeOrOptions;
173
+ if (callback) {
174
+ this.getTokenAsync(options).then(r => callback(null, r.tokens, r.res), e => callback(e, null, e.response));
175
+ }
176
+ else {
177
+ return this.getTokenAsync(options);
178
+ }
179
+ }
180
+ async getTokenAsync(options) {
181
+ const url = this.endpoints.oauth2TokenUrl.toString();
182
+ const headers = new Headers();
183
+ const values = {
184
+ client_id: options.client_id || this._clientId,
185
+ code_verifier: options.codeVerifier,
186
+ code: options.code,
187
+ grant_type: 'authorization_code',
188
+ redirect_uri: options.redirect_uri || this.redirectUri,
189
+ };
190
+ if (this.clientAuthentication === ClientAuthentication.ClientSecretBasic) {
191
+ const basic = Buffer.from(`${this._clientId}:${this._clientSecret}`);
192
+ headers.set('authorization', `Basic ${basic.toString('base64')}`);
193
+ }
194
+ if (this.clientAuthentication === ClientAuthentication.ClientSecretPost) {
195
+ values.client_secret = this._clientSecret;
196
+ }
197
+ const opts = {
198
+ ...OAuth2Client.RETRY_CONFIG,
199
+ method: 'POST',
200
+ url,
201
+ data: new URLSearchParams((0, util_1.removeUndefinedValuesInObject)(values)),
202
+ headers,
203
+ };
204
+ authclient_1.AuthClient.setMethodName(opts, 'getTokenAsync');
205
+ const res = await this.transporter.request(opts);
206
+ const tokens = res.data;
207
+ if (res.data && res.data.expires_in) {
208
+ tokens.expiry_date = new Date().getTime() + res.data.expires_in * 1000;
209
+ delete tokens.expires_in;
210
+ }
211
+ this.emit('tokens', tokens);
212
+ return { tokens, res };
213
+ }
214
+ /**
215
+ * Refreshes the access token.
216
+ * @param refresh_token Existing refresh token.
217
+ * @private
218
+ */
219
+ async refreshToken(refreshToken) {
220
+ if (!refreshToken) {
221
+ return this.refreshTokenNoCache(refreshToken);
222
+ }
223
+ // If a request to refresh using the same token has started,
224
+ // return the same promise.
225
+ if (this.refreshTokenPromises.has(refreshToken)) {
226
+ return this.refreshTokenPromises.get(refreshToken);
227
+ }
228
+ const p = this.refreshTokenNoCache(refreshToken).then(r => {
229
+ this.refreshTokenPromises.delete(refreshToken);
230
+ return r;
231
+ }, e => {
232
+ this.refreshTokenPromises.delete(refreshToken);
233
+ throw e;
234
+ });
235
+ this.refreshTokenPromises.set(refreshToken, p);
236
+ return p;
237
+ }
238
+ async refreshTokenNoCache(refreshToken) {
239
+ if (!refreshToken) {
240
+ throw new Error('No refresh token is set.');
241
+ }
242
+ const url = this.endpoints.oauth2TokenUrl.toString();
243
+ const data = {
244
+ refresh_token: refreshToken,
245
+ client_id: this._clientId,
246
+ client_secret: this._clientSecret,
247
+ grant_type: 'refresh_token',
248
+ };
249
+ let res;
250
+ try {
251
+ const opts = {
252
+ ...OAuth2Client.RETRY_CONFIG,
253
+ method: 'POST',
254
+ url,
255
+ data: new URLSearchParams((0, util_1.removeUndefinedValuesInObject)(data)),
256
+ };
257
+ authclient_1.AuthClient.setMethodName(opts, 'refreshTokenNoCache');
258
+ // request for new token
259
+ res = await this.transporter.request(opts);
260
+ }
261
+ catch (e) {
262
+ if (e instanceof gaxios_1.GaxiosError &&
263
+ e.message === 'invalid_grant' &&
264
+ e.response?.data &&
265
+ /ReAuth/i.test(e.response.data.error_description)) {
266
+ e.message = JSON.stringify(e.response.data);
267
+ }
268
+ throw e;
269
+ }
270
+ const tokens = res.data;
271
+ // TODO: de-duplicate this code from a few spots
272
+ if (res.data && res.data.expires_in) {
273
+ tokens.expiry_date = new Date().getTime() + res.data.expires_in * 1000;
274
+ delete tokens.expires_in;
275
+ }
276
+ this.emit('tokens', tokens);
277
+ return { tokens, res };
278
+ }
279
+ refreshAccessToken(callback) {
280
+ if (callback) {
281
+ this.refreshAccessTokenAsync().then(r => callback(null, r.credentials, r.res), callback);
282
+ }
283
+ else {
284
+ return this.refreshAccessTokenAsync();
285
+ }
286
+ }
287
+ async refreshAccessTokenAsync() {
288
+ const r = await this.refreshToken(this.credentials.refresh_token);
289
+ const tokens = r.tokens;
290
+ tokens.refresh_token = this.credentials.refresh_token;
291
+ this.credentials = tokens;
292
+ return { credentials: this.credentials, res: r.res };
293
+ }
294
+ getAccessToken(callback) {
295
+ if (callback) {
296
+ this.getAccessTokenAsync().then(r => callback(null, r.token, r.res), callback);
297
+ }
298
+ else {
299
+ return this.getAccessTokenAsync();
300
+ }
301
+ }
302
+ async getAccessTokenAsync() {
303
+ const shouldRefresh = !this.credentials.access_token || this.isTokenExpiring();
304
+ if (shouldRefresh) {
305
+ if (!this.credentials.refresh_token) {
306
+ if (this.refreshHandler) {
307
+ const refreshedAccessToken = await this.processAndValidateRefreshHandler();
308
+ if (refreshedAccessToken?.access_token) {
309
+ this.setCredentials(refreshedAccessToken);
310
+ return { token: this.credentials.access_token };
311
+ }
312
+ }
313
+ else {
314
+ throw new Error('No refresh token or refresh handler callback is set.');
315
+ }
316
+ }
317
+ const r = await this.refreshAccessTokenAsync();
318
+ if (!r.credentials || (r.credentials && !r.credentials.access_token)) {
319
+ throw new Error('Could not refresh access token.');
320
+ }
321
+ return { token: r.credentials.access_token, res: r.res };
322
+ }
323
+ else {
324
+ return { token: this.credentials.access_token };
325
+ }
326
+ }
327
+ /**
328
+ * The main authentication interface. It takes an optional url which when
329
+ * present is the endpoint being accessed, and returns a Promise which
330
+ * resolves with authorization header fields.
331
+ *
332
+ * In OAuth2Client, the result has the form:
333
+ * { authorization: 'Bearer <access_token_value>' }
334
+ */
335
+ async getRequestHeaders(url) {
336
+ const headers = (await this.getRequestMetadataAsync(url)).headers;
337
+ return headers;
338
+ }
339
+ async getRequestMetadataAsync(url) {
340
+ url;
341
+ const thisCreds = this.credentials;
342
+ if (!thisCreds.access_token &&
343
+ !thisCreds.refresh_token &&
344
+ !this.apiKey &&
345
+ !this.refreshHandler) {
346
+ throw new Error('No access, refresh token, API key or refresh handler callback is set.');
347
+ }
348
+ if (thisCreds.access_token && !this.isTokenExpiring()) {
349
+ thisCreds.token_type = thisCreds.token_type || 'Bearer';
350
+ const headers = new Headers({
351
+ authorization: thisCreds.token_type + ' ' + thisCreds.access_token,
352
+ });
353
+ return { headers: this.addSharedMetadataHeaders(headers) };
354
+ }
355
+ // If refreshHandler exists, call processAndValidateRefreshHandler().
356
+ if (this.refreshHandler) {
357
+ const refreshedAccessToken = await this.processAndValidateRefreshHandler();
358
+ if (refreshedAccessToken?.access_token) {
359
+ this.setCredentials(refreshedAccessToken);
360
+ const headers = new Headers({
361
+ authorization: 'Bearer ' + this.credentials.access_token,
362
+ });
363
+ return { headers: this.addSharedMetadataHeaders(headers) };
364
+ }
365
+ }
366
+ if (this.apiKey) {
367
+ return { headers: new Headers({ 'X-Goog-Api-Key': this.apiKey }) };
368
+ }
369
+ let r = null;
370
+ let tokens = null;
371
+ try {
372
+ r = await this.refreshToken(thisCreds.refresh_token);
373
+ tokens = r.tokens;
374
+ }
375
+ catch (err) {
376
+ const e = err;
377
+ if (e.response &&
378
+ (e.response.status === 403 || e.response.status === 404)) {
379
+ e.message = `Could not refresh access token: ${e.message}`;
380
+ }
381
+ throw e;
382
+ }
383
+ const credentials = this.credentials;
384
+ credentials.token_type = credentials.token_type || 'Bearer';
385
+ tokens.refresh_token = credentials.refresh_token;
386
+ this.credentials = tokens;
387
+ const headers = new Headers({
388
+ authorization: credentials.token_type + ' ' + tokens.access_token,
389
+ });
390
+ return { headers: this.addSharedMetadataHeaders(headers), res: r.res };
391
+ }
392
+ /**
393
+ * Generates an URL to revoke the given token.
394
+ * @param token The existing token to be revoked.
395
+ *
396
+ * @deprecated use instance method {@link OAuth2Client.getRevokeTokenURL}
397
+ */
398
+ static getRevokeTokenUrl(token) {
399
+ return new OAuth2Client().getRevokeTokenURL(token).toString();
400
+ }
401
+ /**
402
+ * Generates a URL to revoke the given token.
403
+ *
404
+ * @param token The existing token to be revoked.
405
+ */
406
+ getRevokeTokenURL(token) {
407
+ const url = new URL(this.endpoints.oauth2RevokeUrl);
408
+ url.searchParams.append('token', token);
409
+ return url;
410
+ }
411
+ revokeToken(token, callback) {
412
+ const opts = {
413
+ ...OAuth2Client.RETRY_CONFIG,
414
+ url: this.getRevokeTokenURL(token).toString(),
415
+ method: 'POST',
416
+ };
417
+ authclient_1.AuthClient.setMethodName(opts, 'revokeToken');
418
+ if (callback) {
419
+ this.transporter
420
+ .request(opts)
421
+ .then(r => callback(null, r), callback);
422
+ }
423
+ else {
424
+ return this.transporter.request(opts);
425
+ }
426
+ }
427
+ revokeCredentials(callback) {
428
+ if (callback) {
429
+ this.revokeCredentialsAsync().then(res => callback(null, res), callback);
430
+ }
431
+ else {
432
+ return this.revokeCredentialsAsync();
433
+ }
434
+ }
435
+ async revokeCredentialsAsync() {
436
+ const token = this.credentials.access_token;
437
+ this.credentials = {};
438
+ if (token) {
439
+ return this.revokeToken(token);
440
+ }
441
+ else {
442
+ throw new Error('No access token to revoke.');
443
+ }
444
+ }
445
+ request(opts, callback) {
446
+ if (callback) {
447
+ this.requestAsync(opts).then(r => callback(null, r), e => {
448
+ return callback(e, e.response);
449
+ });
450
+ }
451
+ else {
452
+ return this.requestAsync(opts);
453
+ }
454
+ }
455
+ async requestAsync(opts, reAuthRetried = false) {
456
+ try {
457
+ const r = await this.getRequestMetadataAsync();
458
+ opts.headers = gaxios_1.Gaxios.mergeHeaders(opts.headers);
459
+ this.addUserProjectAndAuthHeaders(opts.headers, r.headers);
460
+ if (this.apiKey) {
461
+ opts.headers.set('X-Goog-Api-Key', this.apiKey);
462
+ }
463
+ return await this.transporter.request(opts);
464
+ }
465
+ catch (e) {
466
+ const res = e.response;
467
+ if (res) {
468
+ const statusCode = res.status;
469
+ // Retry the request for metadata if the following criteria are true:
470
+ // - We haven't already retried. It only makes sense to retry once.
471
+ // - The response was a 401 or a 403
472
+ // - The request didn't send a readableStream
473
+ // - An access_token and refresh_token were available, but either no
474
+ // expiry_date was available or the forceRefreshOnFailure flag is set.
475
+ // The absent expiry_date case can happen when developers stash the
476
+ // access_token and refresh_token for later use, but the access_token
477
+ // fails on the first try because it's expired. Some developers may
478
+ // choose to enable forceRefreshOnFailure to mitigate time-related
479
+ // errors.
480
+ // Or the following criteria are true:
481
+ // - We haven't already retried. It only makes sense to retry once.
482
+ // - The response was a 401 or a 403
483
+ // - The request didn't send a readableStream
484
+ // - No refresh_token was available
485
+ // - An access_token and a refreshHandler callback were available, but
486
+ // either no expiry_date was available or the forceRefreshOnFailure
487
+ // flag is set. The access_token fails on the first try because it's
488
+ // expired. Some developers may choose to enable forceRefreshOnFailure
489
+ // to mitigate time-related errors.
490
+ const mayRequireRefresh = this.credentials &&
491
+ this.credentials.access_token &&
492
+ this.credentials.refresh_token &&
493
+ (!this.credentials.expiry_date || this.forceRefreshOnFailure);
494
+ const mayRequireRefreshWithNoRefreshToken = this.credentials &&
495
+ this.credentials.access_token &&
496
+ !this.credentials.refresh_token &&
497
+ (!this.credentials.expiry_date || this.forceRefreshOnFailure) &&
498
+ this.refreshHandler;
499
+ const isReadableStream = res.config.data instanceof stream.Readable;
500
+ const isAuthErr = statusCode === 401 || statusCode === 403;
501
+ if (!reAuthRetried &&
502
+ isAuthErr &&
503
+ !isReadableStream &&
504
+ mayRequireRefresh) {
505
+ await this.refreshAccessTokenAsync();
506
+ return this.requestAsync(opts, true);
507
+ }
508
+ else if (!reAuthRetried &&
509
+ isAuthErr &&
510
+ !isReadableStream &&
511
+ mayRequireRefreshWithNoRefreshToken) {
512
+ const refreshedAccessToken = await this.processAndValidateRefreshHandler();
513
+ if (refreshedAccessToken?.access_token) {
514
+ this.setCredentials(refreshedAccessToken);
515
+ }
516
+ return this.requestAsync(opts, true);
517
+ }
518
+ }
519
+ throw e;
520
+ }
521
+ }
522
+ verifyIdToken(options, callback) {
523
+ // This function used to accept two arguments instead of an options object.
524
+ // Check the types to help users upgrade with less pain.
525
+ // This check can be removed after a 2.0 release.
526
+ if (callback && typeof callback !== 'function') {
527
+ throw new Error('This method accepts an options object as the first parameter, which includes the idToken, audience, and maxExpiry.');
528
+ }
529
+ if (callback) {
530
+ this.verifyIdTokenAsync(options).then(r => callback(null, r), callback);
531
+ }
532
+ else {
533
+ return this.verifyIdTokenAsync(options);
534
+ }
535
+ }
536
+ async verifyIdTokenAsync(options) {
537
+ if (!options.idToken) {
538
+ throw new Error('The verifyIdToken method requires an ID Token');
539
+ }
540
+ const response = await this.getFederatedSignonCertsAsync();
541
+ const login = await this.verifySignedJwtWithCertsAsync(options.idToken, response.certs, options.audience, this.issuers, options.maxExpiry);
542
+ return login;
543
+ }
544
+ /**
545
+ * Obtains information about the provisioned access token. Especially useful
546
+ * if you want to check the scopes that were provisioned to a given token.
547
+ *
548
+ * @param accessToken Required. The Access Token for which you want to get
549
+ * user info.
550
+ */
551
+ async getTokenInfo(accessToken) {
552
+ const { data } = await this.transporter.request({
553
+ ...OAuth2Client.RETRY_CONFIG,
554
+ method: 'POST',
555
+ headers: {
556
+ 'content-type': 'application/x-www-form-urlencoded;charset=UTF-8',
557
+ authorization: `Bearer ${accessToken}`,
558
+ },
559
+ url: this.endpoints.tokenInfoUrl.toString(),
560
+ });
561
+ const info = Object.assign({
562
+ expiry_date: new Date().getTime() + data.expires_in * 1000,
563
+ scopes: data.scope.split(' '),
564
+ }, data);
565
+ delete info.expires_in;
566
+ delete info.scope;
567
+ return info;
568
+ }
569
+ getFederatedSignonCerts(callback) {
570
+ if (callback) {
571
+ this.getFederatedSignonCertsAsync().then(r => callback(null, r.certs, r.res), callback);
572
+ }
573
+ else {
574
+ return this.getFederatedSignonCertsAsync();
575
+ }
576
+ }
577
+ async getFederatedSignonCertsAsync() {
578
+ const nowTime = new Date().getTime();
579
+ const format = (0, crypto_1.hasBrowserCrypto)()
580
+ ? CertificateFormat.JWK
581
+ : CertificateFormat.PEM;
582
+ if (this.certificateExpiry &&
583
+ nowTime < this.certificateExpiry.getTime() &&
584
+ this.certificateCacheFormat === format) {
585
+ return { certs: this.certificateCache, format };
586
+ }
587
+ let res;
588
+ let url;
589
+ switch (format) {
590
+ case CertificateFormat.PEM:
591
+ url = this.endpoints.oauth2FederatedSignonPemCertsUrl.toString();
592
+ break;
593
+ case CertificateFormat.JWK:
594
+ url = this.endpoints.oauth2FederatedSignonJwkCertsUrl.toString();
595
+ break;
596
+ default:
597
+ throw new Error(`Unsupported certificate format ${format}`);
598
+ }
599
+ try {
600
+ const opts = {
601
+ ...OAuth2Client.RETRY_CONFIG,
602
+ url,
603
+ };
604
+ authclient_1.AuthClient.setMethodName(opts, 'getFederatedSignonCertsAsync');
605
+ res = await this.transporter.request(opts);
606
+ }
607
+ catch (e) {
608
+ if (e instanceof Error) {
609
+ e.message = `Failed to retrieve verification certificates: ${e.message}`;
610
+ }
611
+ throw e;
612
+ }
613
+ const cacheControl = res?.headers.get('cache-control');
614
+ let cacheAge = -1;
615
+ if (cacheControl) {
616
+ const maxAge = /max-age=(?<maxAge>[0-9]+)/.exec(cacheControl)?.groups
617
+ ?.maxAge;
618
+ if (maxAge) {
619
+ // Cache results with max-age (in seconds)
620
+ cacheAge = Number(maxAge) * 1000; // milliseconds
621
+ }
622
+ }
623
+ let certificates = {};
624
+ switch (format) {
625
+ case CertificateFormat.PEM:
626
+ certificates = res.data;
627
+ break;
628
+ case CertificateFormat.JWK:
629
+ for (const key of res.data.keys) {
630
+ certificates[key.kid] = key;
631
+ }
632
+ break;
633
+ default:
634
+ throw new Error(`Unsupported certificate format ${format}`);
635
+ }
636
+ const now = new Date();
637
+ this.certificateExpiry =
638
+ cacheAge === -1 ? null : new Date(now.getTime() + cacheAge);
639
+ this.certificateCache = certificates;
640
+ this.certificateCacheFormat = format;
641
+ return { certs: certificates, format, res };
642
+ }
643
+ getIapPublicKeys(callback) {
644
+ if (callback) {
645
+ this.getIapPublicKeysAsync().then(r => callback(null, r.pubkeys, r.res), callback);
646
+ }
647
+ else {
648
+ return this.getIapPublicKeysAsync();
649
+ }
650
+ }
651
+ async getIapPublicKeysAsync() {
652
+ let res;
653
+ const url = this.endpoints.oauth2IapPublicKeyUrl.toString();
654
+ try {
655
+ const opts = {
656
+ ...OAuth2Client.RETRY_CONFIG,
657
+ url,
658
+ };
659
+ authclient_1.AuthClient.setMethodName(opts, 'getIapPublicKeysAsync');
660
+ res = await this.transporter.request(opts);
661
+ }
662
+ catch (e) {
663
+ if (e instanceof Error) {
664
+ e.message = `Failed to retrieve verification certificates: ${e.message}`;
665
+ }
666
+ throw e;
667
+ }
668
+ return { pubkeys: res.data, res };
669
+ }
670
+ verifySignedJwtWithCerts() {
671
+ // To make the code compatible with browser SubtleCrypto we need to make
672
+ // this method async.
673
+ throw new Error('verifySignedJwtWithCerts is removed, please use verifySignedJwtWithCertsAsync instead.');
674
+ }
675
+ /**
676
+ * Verify the id token is signed with the correct certificate
677
+ * and is from the correct audience.
678
+ * @param jwt The jwt to verify (The ID Token in this case).
679
+ * @param certs The array of certs to test the jwt against.
680
+ * @param requiredAudience The audience to test the jwt against.
681
+ * @param issuers The allowed issuers of the jwt (Optional).
682
+ * @param maxExpiry The max expiry the certificate can be (Optional).
683
+ * @return Returns a promise resolving to LoginTicket on verification.
684
+ */
685
+ async verifySignedJwtWithCertsAsync(jwt, certs, requiredAudience, issuers, maxExpiry) {
686
+ const crypto = (0, crypto_1.createCrypto)();
687
+ if (!maxExpiry) {
688
+ maxExpiry = OAuth2Client.DEFAULT_MAX_TOKEN_LIFETIME_SECS_;
689
+ }
690
+ const segments = jwt.split('.');
691
+ if (segments.length !== 3) {
692
+ throw new Error('Wrong number of segments in token: ' + jwt);
693
+ }
694
+ const signed = segments[0] + '.' + segments[1];
695
+ let signature = segments[2];
696
+ let envelope;
697
+ let payload;
698
+ try {
699
+ envelope = JSON.parse(crypto.decodeBase64StringUtf8(segments[0]));
700
+ }
701
+ catch (err) {
702
+ if (err instanceof Error) {
703
+ err.message = `Can't parse token envelope: ${segments[0]}': ${err.message}`;
704
+ }
705
+ throw err;
706
+ }
707
+ if (!envelope) {
708
+ throw new Error("Can't parse token envelope: " + segments[0]);
709
+ }
710
+ try {
711
+ payload = JSON.parse(crypto.decodeBase64StringUtf8(segments[1]));
712
+ }
713
+ catch (err) {
714
+ if (err instanceof Error) {
715
+ err.message = `Can't parse token payload '${segments[0]}`;
716
+ }
717
+ throw err;
718
+ }
719
+ if (!payload) {
720
+ throw new Error("Can't parse token payload: " + segments[1]);
721
+ }
722
+ if (!Object.prototype.hasOwnProperty.call(certs, envelope.kid)) {
723
+ // If this is not present, then there's no reason to attempt verification
724
+ throw new Error('No pem found for envelope: ' + JSON.stringify(envelope));
725
+ }
726
+ const cert = certs[envelope.kid];
727
+ if (envelope.alg === 'ES256') {
728
+ signature = formatEcdsa.joseToDer(signature, 'ES256').toString('base64');
729
+ }
730
+ const verified = await crypto.verify(cert, signed, signature);
731
+ if (!verified) {
732
+ throw new Error('Invalid token signature: ' + jwt);
733
+ }
734
+ if (!payload.iat) {
735
+ throw new Error('No issue time in token: ' + JSON.stringify(payload));
736
+ }
737
+ if (!payload.exp) {
738
+ throw new Error('No expiration time in token: ' + JSON.stringify(payload));
739
+ }
740
+ const iat = Number(payload.iat);
741
+ if (isNaN(iat))
742
+ throw new Error('iat field using invalid format');
743
+ const exp = Number(payload.exp);
744
+ if (isNaN(exp))
745
+ throw new Error('exp field using invalid format');
746
+ const now = new Date().getTime() / 1000;
747
+ if (exp >= now + maxExpiry) {
748
+ throw new Error('Expiration time too far in future: ' + JSON.stringify(payload));
749
+ }
750
+ const earliest = iat - OAuth2Client.CLOCK_SKEW_SECS_;
751
+ const latest = exp + OAuth2Client.CLOCK_SKEW_SECS_;
752
+ if (now < earliest) {
753
+ throw new Error('Token used too early, ' +
754
+ now +
755
+ ' < ' +
756
+ earliest +
757
+ ': ' +
758
+ JSON.stringify(payload));
759
+ }
760
+ if (now > latest) {
761
+ throw new Error('Token used too late, ' +
762
+ now +
763
+ ' > ' +
764
+ latest +
765
+ ': ' +
766
+ JSON.stringify(payload));
767
+ }
768
+ if (issuers && issuers.indexOf(payload.iss) < 0) {
769
+ throw new Error('Invalid issuer, expected one of [' +
770
+ issuers +
771
+ '], but got ' +
772
+ payload.iss);
773
+ }
774
+ // Check the audience matches if we have one
775
+ if (typeof requiredAudience !== 'undefined' && requiredAudience !== null) {
776
+ const aud = payload.aud;
777
+ let audVerified = false;
778
+ // If the requiredAudience is an array, check if it contains token
779
+ // audience
780
+ if (requiredAudience.constructor === Array) {
781
+ audVerified = requiredAudience.indexOf(aud) > -1;
782
+ }
783
+ else {
784
+ audVerified = aud === requiredAudience;
785
+ }
786
+ if (!audVerified) {
787
+ throw new Error('Wrong recipient, payload audience != requiredAudience');
788
+ }
789
+ }
790
+ return new loginticket_1.LoginTicket(envelope, payload);
791
+ }
792
+ /**
793
+ * Returns a promise that resolves with AccessTokenResponse type if
794
+ * refreshHandler is defined.
795
+ * If not, nothing is returned.
796
+ */
797
+ async processAndValidateRefreshHandler() {
798
+ if (this.refreshHandler) {
799
+ const accessTokenResponse = await this.refreshHandler();
800
+ if (!accessTokenResponse.access_token) {
801
+ throw new Error('No access token is returned by the refreshHandler callback.');
802
+ }
803
+ return accessTokenResponse;
804
+ }
805
+ return;
806
+ }
807
+ /**
808
+ * Returns true if a token is expired or will expire within
809
+ * eagerRefreshThresholdMillismilliseconds.
810
+ * If there is no expiry time, assumes the token is not expired or expiring.
811
+ */
812
+ isTokenExpiring() {
813
+ const expiryDate = this.credentials.expiry_date;
814
+ return expiryDate
815
+ ? expiryDate <= new Date().getTime() + this.eagerRefreshThresholdMillis
816
+ : false;
817
+ }
818
+ }
819
+ exports.OAuth2Client = OAuth2Client;
820
+ //# sourceMappingURL=oauth2client.js.map