@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.
- package/.output/nitro.json +15 -0
- package/.output/public/_nuxt/CM9bCtzQ.js +1 -0
- package/.output/public/_nuxt/CQBXt-Xj.js +4 -0
- package/.output/public/_nuxt/DGzMDps5.js +1 -0
- package/.output/public/_nuxt/DKdpYrB7.js +1 -0
- package/.output/public/_nuxt/DoO7LZEh.js +1 -0
- package/.output/public/_nuxt/NcMxVlo_.js +1 -0
- package/.output/public/_nuxt/_LypH0D7.js +1 -0
- package/.output/public/_nuxt/_mode_.XsuGEG0A.css +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/a8a06f55-e1a4-4d58-a8ac-5c8f3e91d730.json +1 -0
- package/.output/public/_nuxt/error-404.DL_4WIao.css +1 -0
- package/.output/public/_nuxt/error-500.I1Dtv2V5.css +1 -0
- package/.output/public/_nuxt/pages.Df3hoeGN.css +1 -0
- package/.output/public/audio/cyber_future_tech.mp3 +0 -0
- package/.output/public/audio/dark_phonk_pulse.mp3 +0 -0
- package/.output/public/audio/deep_finance_groove.mp3 +0 -0
- package/.output/public/audio/lofi_viral_study.mp3 +0 -0
- package/.output/public/audio/motivation_cinematic.mp3 +0 -0
- package/.output/public/videos/cyber_blue.mp4 +0 -0
- package/.output/public/videos/cyber_matrix_stream.mp4 +0 -0
- package/.output/public/videos/cyber_pulse.mp4 +0 -0
- package/.output/public/videos/dark_luxury_particles.mp4 +0 -0
- package/.output/public/videos/default_bg.mp4 +0 -0
- package/.output/public/videos/emerald_flow.mp4 +0 -0
- package/.output/public/videos/financial_pulse_flow.mp4 +0 -0
- package/.output/public/videos/neon_cyber_grid.mp4 +0 -0
- package/.output/server/chunks/_/error-500.mjs +19 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/_/nitro.mjs +5712 -0
- package/.output/server/chunks/_/nitro.mjs.map +1 -0
- package/.output/server/chunks/_/storage.mjs +44 -0
- package/.output/server/chunks/_/storage.mjs.map +1 -0
- package/.output/server/chunks/_/topicMatrix.mjs +147 -0
- package/.output/server/chunks/_/topicMatrix.mjs.map +1 -0
- package/.output/server/chunks/build/TableCard-Cvso4Mm4.mjs +399 -0
- package/.output/server/chunks/build/TableCard-Cvso4Mm4.mjs.map +1 -0
- package/.output/server/chunks/build/_mode_-MljTmkD8.mjs +65 -0
- package/.output/server/chunks/build/_mode_-MljTmkD8.mjs.map +1 -0
- package/.output/server/chunks/build/_mode_-styles.CcOMAYS9.mjs +8 -0
- package/.output/server/chunks/build/_mode_-styles.CcOMAYS9.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +4 -0
- package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
- package/.output/server/chunks/build/entry-styles.BUuHzwjd.mjs +8 -0
- package/.output/server/chunks/build/entry-styles.BUuHzwjd.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-D7pndyXD.mjs +403 -0
- package/.output/server/chunks/build/error-404-D7pndyXD.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-styles.ir-5M2eu.mjs +8 -0
- package/.output/server/chunks/build/error-404-styles.ir-5M2eu.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-D0twnCBi.mjs +76 -0
- package/.output/server/chunks/build/error-500-D0twnCBi.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-styles.DiQTnuqt.mjs +8 -0
- package/.output/server/chunks/build/error-500-styles.DiQTnuqt.mjs.map +1 -0
- package/.output/server/chunks/build/index-styles.CQioNwpv.mjs +8 -0
- package/.output/server/chunks/build/index-styles.CQioNwpv.mjs.map +1 -0
- package/.output/server/chunks/build/pages-BIiRN2UV.mjs +599 -0
- package/.output/server/chunks/build/pages-BIiRN2UV.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +1115 -0
- package/.output/server/chunks/build/server.mjs.map +1 -0
- package/.output/server/chunks/build/styles.mjs +11 -0
- package/.output/server/chunks/build/styles.mjs.map +1 -0
- package/.output/server/chunks/build/v3-CmUYmHkx.mjs +22 -0
- package/.output/server/chunks/build/v3-CmUYmHkx.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auto-topic.post.mjs +263 -0
- package/.output/server/chunks/routes/api/auto-topic.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/copy-prompt.get.mjs +125 -0
- package/.output/server/chunks/routes/api/copy-prompt.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/download.get.mjs +35 -0
- package/.output/server/chunks/routes/api/download.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/files/_...path_.get.mjs +36 -0
- package/.output/server/chunks/routes/api/files/_...path_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/generate.post.mjs +441 -0
- package/.output/server/chunks/routes/api/generate.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/media.get.mjs +48 -0
- package/.output/server/chunks/routes/api/media.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/open-folder.post.mjs +29 -0
- package/.output/server/chunks/routes/api/open-folder.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/render-data.get.mjs +34 -0
- package/.output/server/chunks/routes/api/render-data.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/status.get.mjs +26 -0
- package/.output/server/chunks/routes/api/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/upload-media.post.mjs +75 -0
- package/.output/server/chunks/routes/api/upload-media.post.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +462 -0
- package/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/.output/server/index.mjs +39 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/decode-codepoint.js +72 -0
- package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/decode.js +497 -0
- package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/escape.js +117 -0
- package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/package.json +3 -0
- package/.output/server/node_modules/.nitro/entities@6.0.1/package.json +118 -0
- package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/decode-codepoint.js +77 -0
- package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/decode.js +568 -0
- package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/.nitro/entities@7.0.1/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/.nitro/entities@7.0.1/package.json +120 -0
- package/.output/server/node_modules/.nitro/minimatch@5.1.9/lib/path.js +4 -0
- package/.output/server/node_modules/.nitro/minimatch@5.1.9/minimatch.js +996 -0
- package/.output/server/node_modules/.nitro/minimatch@5.1.9/package.json +35 -0
- package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/assert-valid-pattern.js +14 -0
- package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/ast.js +747 -0
- package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/brace-expressions.js +152 -0
- package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/escape.js +22 -0
- package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/index.js +1023 -0
- package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/.nitro/minimatch@9.0.9/dist/commonjs/unescape.js +24 -0
- package/.output/server/node_modules/.nitro/minimatch@9.0.9/package.json +82 -0
- package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/_stream_duplex.js +131 -0
- package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/_stream_passthrough.js +47 -0
- package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/_stream_readable.js +1019 -0
- package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/_stream_transform.js +214 -0
- package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/_stream_writable.js +685 -0
- package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/internal/streams/BufferList.js +78 -0
- package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/internal/streams/destroy.js +84 -0
- package/.output/server/node_modules/.nitro/readable-stream@2.3.8/lib/internal/streams/stream.js +1 -0
- package/.output/server/node_modules/.nitro/readable-stream@2.3.8/package.json +52 -0
- package/.output/server/node_modules/.nitro/readable-stream@2.3.8/passthrough.js +1 -0
- package/.output/server/node_modules/.nitro/readable-stream@2.3.8/readable.js +19 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/shims/process.js +19 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/add-abort-signal.js +52 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/buffer_list.js +157 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/compose.js +194 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/destroy.js +290 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/duplex.js +143 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/duplexify.js +378 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/end-of-stream.js +286 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/from.js +98 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/legacy.js +94 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/operators.js +457 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/passthrough.js +39 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/pipeline.js +471 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/readable.js +1290 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/state.js +39 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/transform.js +180 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/utils.js +327 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/streams/writable.js +819 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/internal/validators.js +530 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/ours/errors.js +343 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/ours/index.js +65 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/ours/primordials.js +124 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/ours/util/inspect.js +55 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/ours/util.js +148 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/stream/promises.js +43 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/lib/stream.js +143 -0
- package/.output/server/node_modules/.nitro/readable-stream@4.8.0/package.json +89 -0
- package/.output/server/node_modules/.nitro/safe-buffer@5.1.2/index.js +62 -0
- package/.output/server/node_modules/.nitro/safe-buffer@5.1.2/package.json +37 -0
- package/.output/server/node_modules/.nitro/safe-buffer@5.2.1/index.js +65 -0
- package/.output/server/node_modules/.nitro/safe-buffer@5.2.1/package.json +51 -0
- package/.output/server/node_modules/.nitro/string_decoder@1.1.1/lib/string_decoder.js +296 -0
- package/.output/server/node_modules/.nitro/string_decoder@1.1.1/package.json +31 -0
- package/.output/server/node_modules/.nitro/string_decoder@1.3.0/lib/string_decoder.js +296 -0
- package/.output/server/node_modules/.nitro/string_decoder@1.3.0/package.json +34 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14990 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@google/genai/dist/node/index.mjs +32052 -0
- package/.output/server/node_modules/@google/genai/package.json +175 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6806 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +729 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1460 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/api.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/app.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/component.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/context.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/hooks.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/index.js +22 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/util.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/const.js +5 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/env.js +17 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/index.js +45 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/plugin.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/proxy.js +111 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/time.js +28 -0
- package/.output/server/node_modules/@vue/devtools-api/package.json +37 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1937 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +7260 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1932 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +951 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +53 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +657 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/abort-controller/dist/abort-controller.js +127 -0
- package/.output/server/node_modules/abort-controller/package.json +97 -0
- package/.output/server/node_modules/agent-base/dist/helpers.js +66 -0
- package/.output/server/node_modules/agent-base/dist/index.js +178 -0
- package/.output/server/node_modules/agent-base/package.json +46 -0
- package/.output/server/node_modules/archiver/index.js +84 -0
- package/.output/server/node_modules/archiver/lib/core.js +974 -0
- package/.output/server/node_modules/archiver/lib/error.js +40 -0
- package/.output/server/node_modules/archiver/lib/plugins/json.js +110 -0
- package/.output/server/node_modules/archiver/lib/plugins/tar.js +167 -0
- package/.output/server/node_modules/archiver/lib/plugins/zip.js +120 -0
- package/.output/server/node_modules/archiver/package.json +60 -0
- package/.output/server/node_modules/archiver-utils/file.js +209 -0
- package/.output/server/node_modules/archiver-utils/index.js +155 -0
- package/.output/server/node_modules/archiver-utils/package.json +48 -0
- package/.output/server/node_modules/async/dist/async.js +6061 -0
- package/.output/server/node_modules/async/package.json +75 -0
- package/.output/server/node_modules/b4a/index.js +193 -0
- package/.output/server/node_modules/b4a/package.json +54 -0
- package/.output/server/node_modules/balanced-match/index.js +62 -0
- package/.output/server/node_modules/balanced-match/package.json +48 -0
- package/.output/server/node_modules/base64-js/index.js +150 -0
- package/.output/server/node_modules/base64-js/package.json +47 -0
- package/.output/server/node_modules/bignumber.js/bignumber.js +2922 -0
- package/.output/server/node_modules/bignumber.js/package.json +60 -0
- package/.output/server/node_modules/brace-expansion/index.js +633 -0
- package/.output/server/node_modules/brace-expansion/package.json +52 -0
- package/.output/server/node_modules/buffer-crc32/dist/index.cjs +306 -0
- package/.output/server/node_modules/buffer-crc32/package.json +54 -0
- package/.output/server/node_modules/buffer-equal-constant-time/index.js +41 -0
- package/.output/server/node_modules/buffer-equal-constant-time/package.json +21 -0
- package/.output/server/node_modules/compress-commons/lib/archivers/archive-entry.js +16 -0
- package/.output/server/node_modules/compress-commons/lib/archivers/archive-output-stream.js +118 -0
- package/.output/server/node_modules/compress-commons/lib/archivers/zip/constants.js +71 -0
- package/.output/server/node_modules/compress-commons/lib/archivers/zip/general-purpose-bit.js +101 -0
- package/.output/server/node_modules/compress-commons/lib/archivers/zip/unix-stat.js +53 -0
- package/.output/server/node_modules/compress-commons/lib/archivers/zip/util.js +74 -0
- package/.output/server/node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js +413 -0
- package/.output/server/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js +437 -0
- package/.output/server/node_modules/compress-commons/lib/compress-commons.js +13 -0
- package/.output/server/node_modules/compress-commons/lib/util/index.js +27 -0
- package/.output/server/node_modules/compress-commons/package.json +46 -0
- package/.output/server/node_modules/core-util-is/lib/util.js +107 -0
- package/.output/server/node_modules/core-util-is/package.json +38 -0
- package/.output/server/node_modules/crc-32/crc32.js +115 -0
- package/.output/server/node_modules/crc-32/package.json +67 -0
- package/.output/server/node_modules/crc32-stream/lib/crc32-stream.js +48 -0
- package/.output/server/node_modules/crc32-stream/lib/deflate-crc32-stream.js +62 -0
- package/.output/server/node_modules/crc32-stream/lib/index.js +14 -0
- package/.output/server/node_modules/crc32-stream/package.json +45 -0
- package/.output/server/node_modules/data-uri-to-buffer/dist/index.js +53 -0
- package/.output/server/node_modules/data-uri-to-buffer/package.json +62 -0
- package/.output/server/node_modules/debug/package.json +64 -0
- package/.output/server/node_modules/debug/src/browser.js +272 -0
- package/.output/server/node_modules/debug/src/common.js +292 -0
- package/.output/server/node_modules/debug/src/index.js +10 -0
- package/.output/server/node_modules/debug/src/node.js +263 -0
- package/.output/server/node_modules/devalue/index.js +17 -0
- package/.output/server/node_modules/devalue/package.json +39 -0
- package/.output/server/node_modules/devalue/src/base64.js +60 -0
- package/.output/server/node_modules/devalue/src/constants.js +12 -0
- package/.output/server/node_modules/devalue/src/operations.js +221 -0
- package/.output/server/node_modules/devalue/src/parse.js +279 -0
- package/.output/server/node_modules/devalue/src/stringify.js +433 -0
- package/.output/server/node_modules/devalue/src/uneval.js +698 -0
- package/.output/server/node_modules/devalue/src/utils.js +190 -0
- package/.output/server/node_modules/ecdsa-sig-formatter/package.json +46 -0
- package/.output/server/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js +187 -0
- package/.output/server/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js +23 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/event-target-shim/dist/event-target-shim.js +871 -0
- package/.output/server/node_modules/event-target-shim/package.json +82 -0
- package/.output/server/node_modules/events-universal/default.js +1 -0
- package/.output/server/node_modules/events-universal/package.json +39 -0
- package/.output/server/node_modules/extend/index.js +117 -0
- package/.output/server/node_modules/extend/package.json +42 -0
- package/.output/server/node_modules/fast-fifo/fixed-size.js +39 -0
- package/.output/server/node_modules/fast-fifo/index.js +48 -0
- package/.output/server/node_modules/fast-fifo/package.json +28 -0
- package/.output/server/node_modules/fetch-blob/file.js +49 -0
- package/.output/server/node_modules/fetch-blob/from.js +100 -0
- package/.output/server/node_modules/fetch-blob/index.js +250 -0
- package/.output/server/node_modules/fetch-blob/package.json +56 -0
- package/.output/server/node_modules/fetch-blob/streams.cjs +51 -0
- package/.output/server/node_modules/formdata-polyfill/esm.min.js +40 -0
- package/.output/server/node_modules/formdata-polyfill/package.json +50 -0
- package/.output/server/node_modules/gaxios/build/cjs/src/common.js +311 -0
- package/.output/server/node_modules/gaxios/build/cjs/src/gaxios.js +564 -0
- package/.output/server/node_modules/gaxios/build/cjs/src/index.js +48 -0
- package/.output/server/node_modules/gaxios/build/cjs/src/interceptor.js +22 -0
- package/.output/server/node_modules/gaxios/build/cjs/src/retry.js +165 -0
- package/.output/server/node_modules/gaxios/build/cjs/src/util.cjs +16 -0
- package/.output/server/node_modules/gaxios/package.json +105 -0
- package/.output/server/node_modules/gcp-metadata/build/src/gcp-residency.js +114 -0
- package/.output/server/node_modules/gcp-metadata/build/src/index.js +402 -0
- package/.output/server/node_modules/gcp-metadata/package.json +77 -0
- package/.output/server/node_modules/glob/dist/commonjs/glob.js +247 -0
- package/.output/server/node_modules/glob/dist/commonjs/has-magic.js +27 -0
- package/.output/server/node_modules/glob/dist/commonjs/ignore.js +119 -0
- package/.output/server/node_modules/glob/dist/commonjs/index.js +68 -0
- package/.output/server/node_modules/glob/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/glob/dist/commonjs/pattern.js +219 -0
- package/.output/server/node_modules/glob/dist/commonjs/processor.js +301 -0
- package/.output/server/node_modules/glob/dist/commonjs/walker.js +387 -0
- package/.output/server/node_modules/glob/package.json +99 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/authclient.js +286 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/awsclient.js +154 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/awsrequestsigner.js +213 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/baseexternalclient.js +477 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/certificatesubjecttokensupplier.js +223 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/computeclient.js +118 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/defaultawssecuritycredentialssupplier.js +199 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/downscopedclient.js +273 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/envDetect.js +97 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/executable-response.js +178 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.js +233 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/externalclient.js +68 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/filesubjecttokensupplier.js +84 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/gdchclient.js +307 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/googleauth.js +921 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/iam.js +44 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/identitypoolclient.js +131 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/idtokenclient.js +56 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/impersonated.js +197 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/jwtaccess.js +201 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/jwtclient.js +301 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/loginticket.js +60 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/oauth2client.js +820 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/oauth2common.js +189 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/passthrough.js +60 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/pluggable-auth-client.js +220 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.js +174 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/refreshclient.js +160 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/stscredentials.js +107 -0
- package/.output/server/node_modules/google-auth-library/build/src/auth/urlsubjecttokensupplier.js +71 -0
- package/.output/server/node_modules/google-auth-library/build/src/crypto/browser/crypto.js +127 -0
- package/.output/server/node_modules/google-auth-library/build/src/crypto/crypto.js +54 -0
- package/.output/server/node_modules/google-auth-library/build/src/crypto/node/crypto.js +88 -0
- package/.output/server/node_modules/google-auth-library/build/src/crypto/shared.js +32 -0
- package/.output/server/node_modules/google-auth-library/build/src/gtoken/errorWithCode.js +25 -0
- package/.output/server/node_modules/google-auth-library/build/src/gtoken/getCredentials.js +132 -0
- package/.output/server/node_modules/google-auth-library/build/src/gtoken/getToken.js +66 -0
- package/.output/server/node_modules/google-auth-library/build/src/gtoken/googleToken.js +125 -0
- package/.output/server/node_modules/google-auth-library/build/src/gtoken/jwsSign.js +54 -0
- package/.output/server/node_modules/google-auth-library/build/src/gtoken/revokeToken.js +34 -0
- package/.output/server/node_modules/google-auth-library/build/src/gtoken/tokenHandler.js +97 -0
- package/.output/server/node_modules/google-auth-library/build/src/index.js +88 -0
- package/.output/server/node_modules/google-auth-library/build/src/shared.cjs +22 -0
- package/.output/server/node_modules/google-auth-library/build/src/util.js +176 -0
- package/.output/server/node_modules/google-auth-library/package.json +90 -0
- package/.output/server/node_modules/google-logging-utils/build/src/colours.js +81 -0
- package/.output/server/node_modules/google-logging-utils/build/src/index.js +31 -0
- package/.output/server/node_modules/google-logging-utils/build/src/logging-utils.js +437 -0
- package/.output/server/node_modules/google-logging-utils/package.json +45 -0
- package/.output/server/node_modules/graceful-fs/clone.js +23 -0
- package/.output/server/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/.output/server/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/.output/server/node_modules/graceful-fs/package.json +52 -0
- package/.output/server/node_modules/graceful-fs/polyfills.js +355 -0
- package/.output/server/node_modules/has-flag/index.js +8 -0
- package/.output/server/node_modules/has-flag/package.json +46 -0
- package/.output/server/node_modules/hookable/dist/index.mjs +257 -0
- package/.output/server/node_modules/hookable/package.json +54 -0
- package/.output/server/node_modules/https-proxy-agent/dist/index.js +180 -0
- package/.output/server/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
- package/.output/server/node_modules/https-proxy-agent/package.json +50 -0
- package/.output/server/node_modules/inherits/inherits.js +9 -0
- package/.output/server/node_modules/inherits/inherits_browser.js +27 -0
- package/.output/server/node_modules/inherits/package.json +29 -0
- package/.output/server/node_modules/is-stream/index.js +28 -0
- package/.output/server/node_modules/is-stream/package.json +42 -0
- package/.output/server/node_modules/isarray/index.js +5 -0
- package/.output/server/node_modules/isarray/package.json +45 -0
- package/.output/server/node_modules/json-bigint/index.js +12 -0
- package/.output/server/node_modules/json-bigint/lib/parse.js +443 -0
- package/.output/server/node_modules/json-bigint/lib/stringify.js +384 -0
- package/.output/server/node_modules/json-bigint/package.json +34 -0
- package/.output/server/node_modules/jwa/index.js +266 -0
- package/.output/server/node_modules/jwa/package.json +37 -0
- package/.output/server/node_modules/jws/index.js +22 -0
- package/.output/server/node_modules/jws/lib/data-stream.js +55 -0
- package/.output/server/node_modules/jws/lib/sign-stream.js +83 -0
- package/.output/server/node_modules/jws/lib/tostring.js +10 -0
- package/.output/server/node_modules/jws/lib/verify-stream.js +125 -0
- package/.output/server/node_modules/jws/package.json +34 -0
- package/.output/server/node_modules/lazystream/lib/lazystream.js +54 -0
- package/.output/server/node_modules/lazystream/package.json +46 -0
- package/.output/server/node_modules/lodash/_Hash.js +32 -0
- package/.output/server/node_modules/lodash/_ListCache.js +32 -0
- package/.output/server/node_modules/lodash/_Map.js +7 -0
- package/.output/server/node_modules/lodash/_MapCache.js +32 -0
- package/.output/server/node_modules/lodash/_Set.js +7 -0
- package/.output/server/node_modules/lodash/_SetCache.js +27 -0
- package/.output/server/node_modules/lodash/_Symbol.js +6 -0
- package/.output/server/node_modules/lodash/_apply.js +21 -0
- package/.output/server/node_modules/lodash/_arrayIncludes.js +17 -0
- package/.output/server/node_modules/lodash/_arrayIncludesWith.js +22 -0
- package/.output/server/node_modules/lodash/_arrayLikeKeys.js +49 -0
- package/.output/server/node_modules/lodash/_arrayMap.js +21 -0
- package/.output/server/node_modules/lodash/_arrayPush.js +20 -0
- package/.output/server/node_modules/lodash/_assocIndexOf.js +21 -0
- package/.output/server/node_modules/lodash/_baseDifference.js +67 -0
- package/.output/server/node_modules/lodash/_baseFindIndex.js +24 -0
- package/.output/server/node_modules/lodash/_baseFlatten.js +38 -0
- package/.output/server/node_modules/lodash/_baseGetTag.js +28 -0
- package/.output/server/node_modules/lodash/_baseIndexOf.js +20 -0
- package/.output/server/node_modules/lodash/_baseIsArguments.js +18 -0
- package/.output/server/node_modules/lodash/_baseIsNaN.js +12 -0
- package/.output/server/node_modules/lodash/_baseIsNative.js +47 -0
- package/.output/server/node_modules/lodash/_baseIsTypedArray.js +60 -0
- package/.output/server/node_modules/lodash/_baseKeysIn.js +33 -0
- package/.output/server/node_modules/lodash/_baseRest.js +17 -0
- package/.output/server/node_modules/lodash/_baseSetToString.js +22 -0
- package/.output/server/node_modules/lodash/_baseTimes.js +20 -0
- package/.output/server/node_modules/lodash/_baseUnary.js +14 -0
- package/.output/server/node_modules/lodash/_baseUniq.js +72 -0
- package/.output/server/node_modules/lodash/_cacheHas.js +13 -0
- package/.output/server/node_modules/lodash/_coreJsData.js +6 -0
- package/.output/server/node_modules/lodash/_createSet.js +19 -0
- package/.output/server/node_modules/lodash/_defineProperty.js +11 -0
- package/.output/server/node_modules/lodash/_freeGlobal.js +4 -0
- package/.output/server/node_modules/lodash/_getMapData.js +18 -0
- package/.output/server/node_modules/lodash/_getNative.js +17 -0
- package/.output/server/node_modules/lodash/_getPrototype.js +6 -0
- package/.output/server/node_modules/lodash/_getRawTag.js +46 -0
- package/.output/server/node_modules/lodash/_getValue.js +13 -0
- package/.output/server/node_modules/lodash/_hashClear.js +15 -0
- package/.output/server/node_modules/lodash/_hashDelete.js +17 -0
- package/.output/server/node_modules/lodash/_hashGet.js +30 -0
- package/.output/server/node_modules/lodash/_hashHas.js +23 -0
- package/.output/server/node_modules/lodash/_hashSet.js +23 -0
- package/.output/server/node_modules/lodash/_isFlattenable.js +20 -0
- package/.output/server/node_modules/lodash/_isIndex.js +25 -0
- package/.output/server/node_modules/lodash/_isIterateeCall.js +30 -0
- package/.output/server/node_modules/lodash/_isKeyable.js +15 -0
- package/.output/server/node_modules/lodash/_isMasked.js +20 -0
- package/.output/server/node_modules/lodash/_isPrototype.js +18 -0
- package/.output/server/node_modules/lodash/_listCacheClear.js +13 -0
- package/.output/server/node_modules/lodash/_listCacheDelete.js +35 -0
- package/.output/server/node_modules/lodash/_listCacheGet.js +19 -0
- package/.output/server/node_modules/lodash/_listCacheHas.js +16 -0
- package/.output/server/node_modules/lodash/_listCacheSet.js +26 -0
- package/.output/server/node_modules/lodash/_mapCacheClear.js +21 -0
- package/.output/server/node_modules/lodash/_mapCacheDelete.js +18 -0
- package/.output/server/node_modules/lodash/_mapCacheGet.js +16 -0
- package/.output/server/node_modules/lodash/_mapCacheHas.js +16 -0
- package/.output/server/node_modules/lodash/_mapCacheSet.js +22 -0
- package/.output/server/node_modules/lodash/_nativeCreate.js +6 -0
- package/.output/server/node_modules/lodash/_nativeKeysIn.js +20 -0
- package/.output/server/node_modules/lodash/_nodeUtil.js +30 -0
- package/.output/server/node_modules/lodash/_objectToString.js +22 -0
- package/.output/server/node_modules/lodash/_overArg.js +15 -0
- package/.output/server/node_modules/lodash/_overRest.js +36 -0
- package/.output/server/node_modules/lodash/_root.js +9 -0
- package/.output/server/node_modules/lodash/_setCacheAdd.js +19 -0
- package/.output/server/node_modules/lodash/_setCacheHas.js +14 -0
- package/.output/server/node_modules/lodash/_setToArray.js +18 -0
- package/.output/server/node_modules/lodash/_setToString.js +14 -0
- package/.output/server/node_modules/lodash/_shortOut.js +37 -0
- package/.output/server/node_modules/lodash/_strictIndexOf.js +23 -0
- package/.output/server/node_modules/lodash/_toSource.js +26 -0
- package/.output/server/node_modules/lodash/constant.js +26 -0
- package/.output/server/node_modules/lodash/defaults.js +64 -0
- package/.output/server/node_modules/lodash/difference.js +33 -0
- package/.output/server/node_modules/lodash/eq.js +37 -0
- package/.output/server/node_modules/lodash/flatten.js +22 -0
- package/.output/server/node_modules/lodash/identity.js +21 -0
- package/.output/server/node_modules/lodash/isArguments.js +36 -0
- package/.output/server/node_modules/lodash/isArray.js +26 -0
- package/.output/server/node_modules/lodash/isArrayLike.js +33 -0
- package/.output/server/node_modules/lodash/isArrayLikeObject.js +33 -0
- package/.output/server/node_modules/lodash/isBuffer.js +38 -0
- package/.output/server/node_modules/lodash/isFunction.js +37 -0
- package/.output/server/node_modules/lodash/isLength.js +35 -0
- package/.output/server/node_modules/lodash/isObject.js +31 -0
- package/.output/server/node_modules/lodash/isObjectLike.js +29 -0
- package/.output/server/node_modules/lodash/isPlainObject.js +62 -0
- package/.output/server/node_modules/lodash/isTypedArray.js +27 -0
- package/.output/server/node_modules/lodash/keysIn.js +32 -0
- package/.output/server/node_modules/lodash/noop.js +17 -0
- package/.output/server/node_modules/lodash/package.json +19 -0
- package/.output/server/node_modules/lodash/stubFalse.js +18 -0
- package/.output/server/node_modules/lodash/union.js +26 -0
- package/.output/server/node_modules/lru-cache/dist/commonjs/index.js +1546 -0
- package/.output/server/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/lru-cache/package.json +116 -0
- package/.output/server/node_modules/lucide-vue-next/dist/cjs/lucide-vue-next.js +21273 -0
- package/.output/server/node_modules/lucide-vue-next/package.json +64 -0
- package/.output/server/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/.output/server/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/minipass/package.json +77 -0
- package/.output/server/node_modules/ms/index.js +162 -0
- package/.output/server/node_modules/ms/package.json +38 -0
- package/.output/server/node_modules/node-domexception/index.js +16 -0
- package/.output/server/node_modules/node-domexception/package.json +29 -0
- package/.output/server/node_modules/node-fetch/package.json +131 -0
- package/.output/server/node_modules/node-fetch/src/body.js +397 -0
- package/.output/server/node_modules/node-fetch/src/errors/abort-error.js +10 -0
- package/.output/server/node_modules/node-fetch/src/errors/base.js +17 -0
- package/.output/server/node_modules/node-fetch/src/errors/fetch-error.js +26 -0
- package/.output/server/node_modules/node-fetch/src/headers.js +267 -0
- package/.output/server/node_modules/node-fetch/src/index.js +417 -0
- package/.output/server/node_modules/node-fetch/src/request.js +313 -0
- package/.output/server/node_modules/node-fetch/src/response.js +160 -0
- package/.output/server/node_modules/node-fetch/src/utils/get-search.js +9 -0
- package/.output/server/node_modules/node-fetch/src/utils/is-redirect.js +11 -0
- package/.output/server/node_modules/node-fetch/src/utils/is.js +87 -0
- package/.output/server/node_modules/node-fetch/src/utils/multipart-parser.js +432 -0
- package/.output/server/node_modules/node-fetch/src/utils/referrer.js +340 -0
- package/.output/server/node_modules/normalize-path/index.js +35 -0
- package/.output/server/node_modules/normalize-path/package.json +77 -0
- package/.output/server/node_modules/p-retry/index.js +85 -0
- package/.output/server/node_modules/p-retry/package.json +51 -0
- package/.output/server/node_modules/parse5/dist/common/doctype.js +114 -0
- package/.output/server/node_modules/parse5/dist/common/error-codes.js +63 -0
- package/.output/server/node_modules/parse5/dist/common/foreign-content.js +228 -0
- package/.output/server/node_modules/parse5/dist/common/html.js +523 -0
- package/.output/server/node_modules/parse5/dist/common/token.js +20 -0
- package/.output/server/node_modules/parse5/dist/common/unicode.js +62 -0
- package/.output/server/node_modules/parse5/dist/index.js +42 -0
- package/.output/server/node_modules/parse5/dist/parser/formatting-element-list.js +110 -0
- package/.output/server/node_modules/parse5/dist/parser/index.js +3245 -0
- package/.output/server/node_modules/parse5/dist/parser/open-element-stack.js +324 -0
- package/.output/server/node_modules/parse5/dist/serializer/index.js +168 -0
- package/.output/server/node_modules/parse5/dist/tokenizer/index.js +2710 -0
- package/.output/server/node_modules/parse5/dist/tokenizer/preprocessor.js +196 -0
- package/.output/server/node_modules/parse5/dist/tree-adapters/default.js +173 -0
- package/.output/server/node_modules/parse5/package.json +50 -0
- package/.output/server/node_modules/path-scurry/dist/commonjs/index.js +2014 -0
- package/.output/server/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/path-scurry/package.json +89 -0
- package/.output/server/node_modules/playwright/index.mjs +18 -0
- package/.output/server/node_modules/playwright/package.json +50 -0
- package/.output/server/node_modules/playwright-core/browsers.json +52 -0
- package/.output/server/node_modules/playwright-core/index.js +17 -0
- package/.output/server/node_modules/playwright-core/index.mjs +28 -0
- package/.output/server/node_modules/playwright-core/lib/bootstrap.js +149 -0
- package/.output/server/node_modules/playwright-core/lib/coreBundle.js +78764 -0
- package/.output/server/node_modules/playwright-core/lib/utilsBundle.js +92408 -0
- package/.output/server/node_modules/playwright-core/package.json +34 -0
- package/.output/server/node_modules/process/index.js +2 -0
- package/.output/server/node_modules/process/package.json +27 -0
- package/.output/server/node_modules/process-nextick-args/index.js +45 -0
- package/.output/server/node_modules/process-nextick-args/package.json +25 -0
- package/.output/server/node_modules/readdir-glob/index.js +243 -0
- package/.output/server/node_modules/readdir-glob/package.json +43 -0
- package/.output/server/node_modules/retry/index.js +1 -0
- package/.output/server/node_modules/retry/lib/retry.js +100 -0
- package/.output/server/node_modules/retry/lib/retry_operation.js +162 -0
- package/.output/server/node_modules/retry/package.json +36 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +123 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +136 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +68 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +115 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +84 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +211 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1314 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +486 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +446 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +613 -0
- package/.output/server/node_modules/source-map-js/package.json +78 -0
- package/.output/server/node_modules/source-map-js/source-map.js +10 -0
- package/.output/server/node_modules/streamx/index.js +1314 -0
- package/.output/server/node_modules/streamx/lib/errors.js +47 -0
- package/.output/server/node_modules/streamx/package.json +51 -0
- package/.output/server/node_modules/supports-color/index.js +135 -0
- package/.output/server/node_modules/supports-color/package.json +53 -0
- package/.output/server/node_modules/tar-stream/constants.js +14 -0
- package/.output/server/node_modules/tar-stream/extract.js +418 -0
- package/.output/server/node_modules/tar-stream/headers.js +322 -0
- package/.output/server/node_modules/tar-stream/index.js +2 -0
- package/.output/server/node_modules/tar-stream/pack.js +287 -0
- package/.output/server/node_modules/tar-stream/package.json +50 -0
- package/.output/server/node_modules/text-decoder/index.js +64 -0
- package/.output/server/node_modules/text-decoder/lib/pass-through-decoder.js +19 -0
- package/.output/server/node_modules/text-decoder/lib/utf8-decoder.js +185 -0
- package/.output/server/node_modules/text-decoder/package.json +39 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
- package/.output/server/node_modules/ufo/package.json +48 -0
- package/.output/server/node_modules/unhead/dist/index.mjs +9 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +103 -0
- package/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +191 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.0TIQaUam.mjs +244 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.AtIkjM2B.mjs +166 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.AvDFlk_u.mjs +39 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.B0o2oYhg.mjs +317 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.ByHeIeZd.mjs +184 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.C-69jnXc.mjs +44 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.ChXiQvI8.mjs +76 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DWXHYkPf.mjs +366 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.h_KkEIE6.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.ylJpsHyA.mjs +255 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/.output/server/node_modules/unhead/package.json +106 -0
- package/.output/server/node_modules/util-deprecate/node.js +6 -0
- package/.output/server/node_modules/util-deprecate/package.json +27 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/dependencies-VCG-RX19.mjs +118 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +673 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +66 -0
- package/.output/server/node_modules/vue-router/dist/devtools-C3Hva4Qk.mjs +1220 -0
- package/.output/server/node_modules/vue-router/dist/vue-router.mjs +1561 -0
- package/.output/server/node_modules/vue-router/package.json +156 -0
- package/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
- package/.output/server/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js +4737 -0
- package/.output/server/node_modules/web-streams-polyfill/package.json +83 -0
- package/.output/server/node_modules/ws/lib/buffer-util.js +142 -0
- package/.output/server/node_modules/ws/lib/constants.js +19 -0
- package/.output/server/node_modules/ws/lib/event-target.js +292 -0
- package/.output/server/node_modules/ws/lib/extension.js +203 -0
- package/.output/server/node_modules/ws/lib/limiter.js +55 -0
- package/.output/server/node_modules/ws/lib/permessage-deflate.js +530 -0
- package/.output/server/node_modules/ws/lib/receiver.js +751 -0
- package/.output/server/node_modules/ws/lib/sender.js +610 -0
- package/.output/server/node_modules/ws/lib/stream.js +161 -0
- package/.output/server/node_modules/ws/lib/subprotocol.js +62 -0
- package/.output/server/node_modules/ws/lib/validation.js +152 -0
- package/.output/server/node_modules/ws/lib/websocket-server.js +565 -0
- package/.output/server/node_modules/ws/lib/websocket.js +1471 -0
- package/.output/server/node_modules/ws/package.json +74 -0
- package/.output/server/node_modules/ws/wrapper.mjs +21 -0
- package/.output/server/node_modules/zip-stream/index.js +187 -0
- package/.output/server/node_modules/zip-stream/package.json +49 -0
- package/.output/server/node_modules/zod/index.js +4 -0
- package/.output/server/node_modules/zod/package.json +118 -0
- package/.output/server/node_modules/zod/v3/ZodError.js +133 -0
- package/.output/server/node_modules/zod/v3/errors.js +9 -0
- package/.output/server/node_modules/zod/v3/external.js +6 -0
- package/.output/server/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/.output/server/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/.output/server/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/.output/server/node_modules/zod/v3/helpers/util.js +133 -0
- package/.output/server/node_modules/zod/v3/locales/en.js +109 -0
- package/.output/server/node_modules/zod/v3/types.js +3693 -0
- package/.output/server/package.json +99 -0
- package/README.md +81 -2
- package/bin/cli.js +138 -0
- package/data/history.json +17 -0
- package/package.json +39 -4
- package/public/audio/cyber_future_tech.mp3 +0 -0
- package/public/audio/dark_phonk_pulse.mp3 +0 -0
- package/public/audio/deep_finance_groove.mp3 +0 -0
- package/public/audio/lofi_viral_study.mp3 +0 -0
- package/public/audio/motivation_cinematic.mp3 +0 -0
- package/public/videos/cyber_blue.mp4 +0 -0
- package/public/videos/cyber_matrix_stream.mp4 +0 -0
- package/public/videos/cyber_pulse.mp4 +0 -0
- package/public/videos/dark_luxury_particles.mp4 +0 -0
- package/public/videos/default_bg.mp4 +0 -0
- package/public/videos/emerald_flow.mp4 +0 -0
- package/public/videos/financial_pulse_flow.mp4 +0 -0
- package/public/videos/neon_cyber_grid.mp4 +0 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2021 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.AwsRequestSigner = void 0;
|
|
17
|
+
const gaxios_1 = require("gaxios");
|
|
18
|
+
const crypto_1 = require("../crypto/crypto");
|
|
19
|
+
/** AWS Signature Version 4 signing algorithm identifier. */
|
|
20
|
+
const AWS_ALGORITHM = 'AWS4-HMAC-SHA256';
|
|
21
|
+
/**
|
|
22
|
+
* The termination string for the AWS credential scope value as defined in
|
|
23
|
+
* https://docs.aws.amazon.com/general/latest/gr/sigv4-create-string-to-sign.html
|
|
24
|
+
*/
|
|
25
|
+
const AWS_REQUEST_TYPE = 'aws4_request';
|
|
26
|
+
/**
|
|
27
|
+
* Implements an AWS API request signer based on the AWS Signature Version 4
|
|
28
|
+
* signing process.
|
|
29
|
+
* https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html
|
|
30
|
+
*/
|
|
31
|
+
class AwsRequestSigner {
|
|
32
|
+
getCredentials;
|
|
33
|
+
region;
|
|
34
|
+
crypto;
|
|
35
|
+
/**
|
|
36
|
+
* Instantiates an AWS API request signer used to send authenticated signed
|
|
37
|
+
* requests to AWS APIs based on the AWS Signature Version 4 signing process.
|
|
38
|
+
* This also provides a mechanism to generate the signed request without
|
|
39
|
+
* sending it.
|
|
40
|
+
* @param getCredentials A mechanism to retrieve AWS security credentials
|
|
41
|
+
* when needed.
|
|
42
|
+
* @param region The AWS region to use.
|
|
43
|
+
*/
|
|
44
|
+
constructor(getCredentials, region) {
|
|
45
|
+
this.getCredentials = getCredentials;
|
|
46
|
+
this.region = region;
|
|
47
|
+
this.crypto = (0, crypto_1.createCrypto)();
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Generates the signed request for the provided HTTP request for calling
|
|
51
|
+
* an AWS API. This follows the steps described at:
|
|
52
|
+
* https://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html
|
|
53
|
+
* @param amzOptions The AWS request options that need to be signed.
|
|
54
|
+
* @return A promise that resolves with the GaxiosOptions containing the
|
|
55
|
+
* signed HTTP request parameters.
|
|
56
|
+
*/
|
|
57
|
+
async getRequestOptions(amzOptions) {
|
|
58
|
+
if (!amzOptions.url) {
|
|
59
|
+
throw new RangeError('"url" is required in "amzOptions"');
|
|
60
|
+
}
|
|
61
|
+
// Stringify JSON requests. This will be set in the request body of the
|
|
62
|
+
// generated signed request.
|
|
63
|
+
const requestPayloadData = typeof amzOptions.data === 'object'
|
|
64
|
+
? JSON.stringify(amzOptions.data)
|
|
65
|
+
: amzOptions.data;
|
|
66
|
+
const url = amzOptions.url;
|
|
67
|
+
const method = amzOptions.method || 'GET';
|
|
68
|
+
const requestPayload = amzOptions.body || requestPayloadData;
|
|
69
|
+
const additionalAmzHeaders = amzOptions.headers;
|
|
70
|
+
const awsSecurityCredentials = await this.getCredentials();
|
|
71
|
+
const uri = new URL(url);
|
|
72
|
+
if (typeof requestPayload !== 'string' && requestPayload !== undefined) {
|
|
73
|
+
throw new TypeError(`'requestPayload' is expected to be a string if provided. Got: ${requestPayload}`);
|
|
74
|
+
}
|
|
75
|
+
const headerMap = await generateAuthenticationHeaderMap({
|
|
76
|
+
crypto: this.crypto,
|
|
77
|
+
host: uri.host,
|
|
78
|
+
canonicalUri: uri.pathname,
|
|
79
|
+
canonicalQuerystring: uri.search.slice(1),
|
|
80
|
+
method,
|
|
81
|
+
region: this.region,
|
|
82
|
+
securityCredentials: awsSecurityCredentials,
|
|
83
|
+
requestPayload,
|
|
84
|
+
additionalAmzHeaders,
|
|
85
|
+
});
|
|
86
|
+
// Append additional optional headers, eg. X-Amz-Target, Content-Type, etc.
|
|
87
|
+
const headers = gaxios_1.Gaxios.mergeHeaders(
|
|
88
|
+
// Add x-amz-date if available.
|
|
89
|
+
headerMap.amzDate ? { 'x-amz-date': headerMap.amzDate } : {}, {
|
|
90
|
+
authorization: headerMap.authorizationHeader,
|
|
91
|
+
host: uri.host,
|
|
92
|
+
}, additionalAmzHeaders || {});
|
|
93
|
+
if (awsSecurityCredentials.token) {
|
|
94
|
+
gaxios_1.Gaxios.mergeHeaders(headers, {
|
|
95
|
+
'x-amz-security-token': awsSecurityCredentials.token,
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
const awsSignedReq = {
|
|
99
|
+
url,
|
|
100
|
+
method: method,
|
|
101
|
+
headers,
|
|
102
|
+
};
|
|
103
|
+
if (requestPayload !== undefined) {
|
|
104
|
+
awsSignedReq.body = requestPayload;
|
|
105
|
+
}
|
|
106
|
+
return awsSignedReq;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.AwsRequestSigner = AwsRequestSigner;
|
|
110
|
+
/**
|
|
111
|
+
* Creates the HMAC-SHA256 hash of the provided message using the
|
|
112
|
+
* provided key.
|
|
113
|
+
*
|
|
114
|
+
* @param crypto The crypto instance used to facilitate cryptographic
|
|
115
|
+
* operations.
|
|
116
|
+
* @param key The HMAC-SHA256 key to use.
|
|
117
|
+
* @param msg The message to hash.
|
|
118
|
+
* @return The computed hash bytes.
|
|
119
|
+
*/
|
|
120
|
+
async function sign(crypto, key, msg) {
|
|
121
|
+
return await crypto.signWithHmacSha256(key, msg);
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Calculates the signing key used to calculate the signature for
|
|
125
|
+
* AWS Signature Version 4 based on:
|
|
126
|
+
* https://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html
|
|
127
|
+
*
|
|
128
|
+
* @param crypto The crypto instance used to facilitate cryptographic
|
|
129
|
+
* operations.
|
|
130
|
+
* @param key The AWS secret access key.
|
|
131
|
+
* @param dateStamp The '%Y%m%d' date format.
|
|
132
|
+
* @param region The AWS region.
|
|
133
|
+
* @param serviceName The AWS service name, eg. sts.
|
|
134
|
+
* @return The signing key bytes.
|
|
135
|
+
*/
|
|
136
|
+
async function getSigningKey(crypto, key, dateStamp, region, serviceName) {
|
|
137
|
+
const kDate = await sign(crypto, `AWS4${key}`, dateStamp);
|
|
138
|
+
const kRegion = await sign(crypto, kDate, region);
|
|
139
|
+
const kService = await sign(crypto, kRegion, serviceName);
|
|
140
|
+
const kSigning = await sign(crypto, kService, 'aws4_request');
|
|
141
|
+
return kSigning;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Generates the authentication header map needed for generating the AWS
|
|
145
|
+
* Signature Version 4 signed request.
|
|
146
|
+
*
|
|
147
|
+
* @param option The options needed to compute the authentication header map.
|
|
148
|
+
* @return The AWS authentication header map which constitutes of the following
|
|
149
|
+
* components: amz-date, authorization header and canonical query string.
|
|
150
|
+
*/
|
|
151
|
+
async function generateAuthenticationHeaderMap(options) {
|
|
152
|
+
const additionalAmzHeaders = gaxios_1.Gaxios.mergeHeaders(options.additionalAmzHeaders);
|
|
153
|
+
const requestPayload = options.requestPayload || '';
|
|
154
|
+
// iam.amazonaws.com host => iam service.
|
|
155
|
+
// sts.us-east-2.amazonaws.com => sts service.
|
|
156
|
+
const serviceName = options.host.split('.')[0];
|
|
157
|
+
const now = new Date();
|
|
158
|
+
// Format: '%Y%m%dT%H%M%SZ'.
|
|
159
|
+
const amzDate = now
|
|
160
|
+
.toISOString()
|
|
161
|
+
.replace(/[-:]/g, '')
|
|
162
|
+
.replace(/\.[0-9]+/, '');
|
|
163
|
+
// Format: '%Y%m%d'.
|
|
164
|
+
const dateStamp = now.toISOString().replace(/[-]/g, '').replace(/T.*/, '');
|
|
165
|
+
// Add AWS token if available.
|
|
166
|
+
if (options.securityCredentials.token) {
|
|
167
|
+
additionalAmzHeaders.set('x-amz-security-token', options.securityCredentials.token);
|
|
168
|
+
}
|
|
169
|
+
// Header keys need to be sorted alphabetically.
|
|
170
|
+
const amzHeaders = gaxios_1.Gaxios.mergeHeaders({
|
|
171
|
+
host: options.host,
|
|
172
|
+
},
|
|
173
|
+
// Previously the date was not fixed with x-amz- and could be provided manually.
|
|
174
|
+
// https://github.com/boto/botocore/blob/879f8440a4e9ace5d3cf145ce8b3d5e5ffb892ef/tests/unit/auth/aws4_testsuite/get-header-value-trim.req
|
|
175
|
+
additionalAmzHeaders.has('date') ? {} : { 'x-amz-date': amzDate }, additionalAmzHeaders);
|
|
176
|
+
let canonicalHeaders = '';
|
|
177
|
+
// TypeScript is missing `Headers#keys` at the time of writing
|
|
178
|
+
const signedHeadersList = [
|
|
179
|
+
...amzHeaders.keys(),
|
|
180
|
+
].sort();
|
|
181
|
+
signedHeadersList.forEach(key => {
|
|
182
|
+
canonicalHeaders += `${key}:${amzHeaders.get(key)}\n`;
|
|
183
|
+
});
|
|
184
|
+
const signedHeaders = signedHeadersList.join(';');
|
|
185
|
+
const payloadHash = await options.crypto.sha256DigestHex(requestPayload);
|
|
186
|
+
// https://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html
|
|
187
|
+
const canonicalRequest = `${options.method.toUpperCase()}\n` +
|
|
188
|
+
`${options.canonicalUri}\n` +
|
|
189
|
+
`${options.canonicalQuerystring}\n` +
|
|
190
|
+
`${canonicalHeaders}\n` +
|
|
191
|
+
`${signedHeaders}\n` +
|
|
192
|
+
`${payloadHash}`;
|
|
193
|
+
const credentialScope = `${dateStamp}/${options.region}/${serviceName}/${AWS_REQUEST_TYPE}`;
|
|
194
|
+
// https://docs.aws.amazon.com/general/latest/gr/sigv4-create-string-to-sign.html
|
|
195
|
+
const stringToSign = `${AWS_ALGORITHM}\n` +
|
|
196
|
+
`${amzDate}\n` +
|
|
197
|
+
`${credentialScope}\n` +
|
|
198
|
+
(await options.crypto.sha256DigestHex(canonicalRequest));
|
|
199
|
+
// https://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html
|
|
200
|
+
const signingKey = await getSigningKey(options.crypto, options.securityCredentials.secretAccessKey, dateStamp, options.region, serviceName);
|
|
201
|
+
const signature = await sign(options.crypto, signingKey, stringToSign);
|
|
202
|
+
// https://docs.aws.amazon.com/general/latest/gr/sigv4-add-signature-to-request.html
|
|
203
|
+
const authorizationHeader = `${AWS_ALGORITHM} Credential=${options.securityCredentials.accessKeyId}/` +
|
|
204
|
+
`${credentialScope}, SignedHeaders=${signedHeaders}, ` +
|
|
205
|
+
`Signature=${(0, crypto_1.fromArrayBufferToHex)(signature)}`;
|
|
206
|
+
return {
|
|
207
|
+
// Do not return x-amz-date if date is available.
|
|
208
|
+
amzDate: additionalAmzHeaders.has('date') ? undefined : amzDate,
|
|
209
|
+
authorizationHeader,
|
|
210
|
+
canonicalQuerystring: options.canonicalQuerystring,
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
//# sourceMappingURL=awsrequestsigner.js.map
|
|
@@ -0,0 +1,477 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2021 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.BaseExternalAccountClient = exports.CLOUD_RESOURCE_MANAGER = exports.EXTERNAL_ACCOUNT_TYPE = exports.EXPIRATION_TIME_OFFSET = void 0;
|
|
17
|
+
const gaxios_1 = require("gaxios");
|
|
18
|
+
const stream = require("stream");
|
|
19
|
+
const authclient_1 = require("./authclient");
|
|
20
|
+
const sts = require("./stscredentials");
|
|
21
|
+
const util_1 = require("../util");
|
|
22
|
+
const shared_cjs_1 = require("../shared.cjs");
|
|
23
|
+
/**
|
|
24
|
+
* The required token exchange grant_type: rfc8693#section-2.1
|
|
25
|
+
*/
|
|
26
|
+
const STS_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:token-exchange';
|
|
27
|
+
/**
|
|
28
|
+
* The requested token exchange requested_token_type: rfc8693#section-2.1
|
|
29
|
+
*/
|
|
30
|
+
const STS_REQUEST_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token';
|
|
31
|
+
/** The default OAuth scope to request when none is provided. */
|
|
32
|
+
const DEFAULT_OAUTH_SCOPE = 'https://www.googleapis.com/auth/cloud-platform';
|
|
33
|
+
/** Default impersonated token lifespan in seconds.*/
|
|
34
|
+
const DEFAULT_TOKEN_LIFESPAN = 3600;
|
|
35
|
+
/**
|
|
36
|
+
* Offset to take into account network delays and server clock skews.
|
|
37
|
+
*/
|
|
38
|
+
exports.EXPIRATION_TIME_OFFSET = 5 * 60 * 1000;
|
|
39
|
+
/**
|
|
40
|
+
* The credentials JSON file type for external account clients.
|
|
41
|
+
* There are 3 types of JSON configs:
|
|
42
|
+
* 1. authorized_user => Google end user credential
|
|
43
|
+
* 2. service_account => Google service account credential
|
|
44
|
+
* 3. external_Account => non-GCP service (eg. AWS, Azure, K8s)
|
|
45
|
+
*/
|
|
46
|
+
exports.EXTERNAL_ACCOUNT_TYPE = 'external_account';
|
|
47
|
+
/**
|
|
48
|
+
* Cloud resource manager URL used to retrieve project information.
|
|
49
|
+
*
|
|
50
|
+
* @deprecated use {@link BaseExternalAccountClient.cloudResourceManagerURL} instead
|
|
51
|
+
**/
|
|
52
|
+
exports.CLOUD_RESOURCE_MANAGER = 'https://cloudresourcemanager.googleapis.com/v1/projects/';
|
|
53
|
+
/** The workforce audience pattern. */
|
|
54
|
+
const WORKFORCE_AUDIENCE_PATTERN = '//iam\\.googleapis\\.com/locations/[^/]+/workforcePools/[^/]+/providers/.+';
|
|
55
|
+
const DEFAULT_TOKEN_URL = 'https://sts.{universeDomain}/v1/token';
|
|
56
|
+
/**
|
|
57
|
+
* Base external account client. This is used to instantiate AuthClients for
|
|
58
|
+
* exchanging external account credentials for GCP access token and authorizing
|
|
59
|
+
* requests to GCP APIs.
|
|
60
|
+
* The base class implements common logic for exchanging various type of
|
|
61
|
+
* external credentials for GCP access token. The logic of determining and
|
|
62
|
+
* retrieving the external credential based on the environment and
|
|
63
|
+
* credential_source will be left for the subclasses.
|
|
64
|
+
*/
|
|
65
|
+
class BaseExternalAccountClient extends authclient_1.AuthClient {
|
|
66
|
+
/**
|
|
67
|
+
* OAuth scopes for the GCP access token to use. When not provided,
|
|
68
|
+
* the default https://www.googleapis.com/auth/cloud-platform is
|
|
69
|
+
* used.
|
|
70
|
+
*/
|
|
71
|
+
scopes;
|
|
72
|
+
projectNumber;
|
|
73
|
+
audience;
|
|
74
|
+
subjectTokenType;
|
|
75
|
+
stsCredential;
|
|
76
|
+
clientAuth;
|
|
77
|
+
credentialSourceType;
|
|
78
|
+
cachedAccessToken;
|
|
79
|
+
serviceAccountImpersonationUrl;
|
|
80
|
+
serviceAccountImpersonationLifetime;
|
|
81
|
+
workforcePoolUserProject;
|
|
82
|
+
configLifetimeRequested;
|
|
83
|
+
tokenUrl;
|
|
84
|
+
/**
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* new URL('https://cloudresourcemanager.googleapis.com/v1/projects/');
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
cloudResourceManagerURL;
|
|
91
|
+
supplierContext;
|
|
92
|
+
/**
|
|
93
|
+
* A pending access token request. Used for concurrent calls.
|
|
94
|
+
*/
|
|
95
|
+
#pendingAccessToken = null;
|
|
96
|
+
/**
|
|
97
|
+
* Instantiate a BaseExternalAccountClient instance using the provided JSON
|
|
98
|
+
* object loaded from an external account credentials file.
|
|
99
|
+
* @param options The external account options object typically loaded
|
|
100
|
+
* from the external account JSON credential file. The camelCased options
|
|
101
|
+
* are aliases for the snake_cased options.
|
|
102
|
+
*/
|
|
103
|
+
constructor(options) {
|
|
104
|
+
super(options);
|
|
105
|
+
const opts = (0, util_1.originalOrCamelOptions)(options);
|
|
106
|
+
const type = opts.get('type');
|
|
107
|
+
if (type && type !== exports.EXTERNAL_ACCOUNT_TYPE) {
|
|
108
|
+
throw new Error(`Expected "${exports.EXTERNAL_ACCOUNT_TYPE}" type but ` +
|
|
109
|
+
`received "${options.type}"`);
|
|
110
|
+
}
|
|
111
|
+
const clientId = opts.get('client_id');
|
|
112
|
+
const clientSecret = opts.get('client_secret');
|
|
113
|
+
this.tokenUrl =
|
|
114
|
+
opts.get('token_url') ??
|
|
115
|
+
DEFAULT_TOKEN_URL.replace('{universeDomain}', this.universeDomain);
|
|
116
|
+
const subjectTokenType = opts.get('subject_token_type');
|
|
117
|
+
const workforcePoolUserProject = opts.get('workforce_pool_user_project');
|
|
118
|
+
const serviceAccountImpersonationUrl = opts.get('service_account_impersonation_url');
|
|
119
|
+
const serviceAccountImpersonation = opts.get('service_account_impersonation');
|
|
120
|
+
const serviceAccountImpersonationLifetime = (0, util_1.originalOrCamelOptions)(serviceAccountImpersonation).get('token_lifetime_seconds');
|
|
121
|
+
this.cloudResourceManagerURL = new URL(opts.get('cloud_resource_manager_url') ||
|
|
122
|
+
`https://cloudresourcemanager.${this.universeDomain}/v1/projects/`);
|
|
123
|
+
if (clientId) {
|
|
124
|
+
this.clientAuth = {
|
|
125
|
+
confidentialClientType: 'basic',
|
|
126
|
+
clientId,
|
|
127
|
+
clientSecret,
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
this.stsCredential = new sts.StsCredentials({
|
|
131
|
+
tokenExchangeEndpoint: this.tokenUrl,
|
|
132
|
+
clientAuthentication: this.clientAuth,
|
|
133
|
+
});
|
|
134
|
+
this.scopes = opts.get('scopes') || [DEFAULT_OAUTH_SCOPE];
|
|
135
|
+
this.cachedAccessToken = null;
|
|
136
|
+
this.audience = opts.get('audience');
|
|
137
|
+
this.subjectTokenType = subjectTokenType;
|
|
138
|
+
this.workforcePoolUserProject = workforcePoolUserProject;
|
|
139
|
+
const workforceAudiencePattern = new RegExp(WORKFORCE_AUDIENCE_PATTERN);
|
|
140
|
+
if (this.workforcePoolUserProject &&
|
|
141
|
+
!this.audience.match(workforceAudiencePattern)) {
|
|
142
|
+
throw new Error('workforcePoolUserProject should not be set for non-workforce pool ' +
|
|
143
|
+
'credentials.');
|
|
144
|
+
}
|
|
145
|
+
this.serviceAccountImpersonationUrl = serviceAccountImpersonationUrl;
|
|
146
|
+
this.serviceAccountImpersonationLifetime =
|
|
147
|
+
serviceAccountImpersonationLifetime;
|
|
148
|
+
if (this.serviceAccountImpersonationLifetime) {
|
|
149
|
+
this.configLifetimeRequested = true;
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
this.configLifetimeRequested = false;
|
|
153
|
+
this.serviceAccountImpersonationLifetime = DEFAULT_TOKEN_LIFESPAN;
|
|
154
|
+
}
|
|
155
|
+
this.projectNumber = this.getProjectNumber(this.audience);
|
|
156
|
+
this.supplierContext = {
|
|
157
|
+
audience: this.audience,
|
|
158
|
+
subjectTokenType: this.subjectTokenType,
|
|
159
|
+
transporter: this.transporter,
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
/** The service account email to be impersonated, if available. */
|
|
163
|
+
getServiceAccountEmail() {
|
|
164
|
+
if (this.serviceAccountImpersonationUrl) {
|
|
165
|
+
if (this.serviceAccountImpersonationUrl.length > 256) {
|
|
166
|
+
/**
|
|
167
|
+
* Prevents DOS attacks.
|
|
168
|
+
* @see {@link https://github.com/googleapis/google-auth-library-nodejs/security/code-scanning/84}
|
|
169
|
+
**/
|
|
170
|
+
throw new RangeError(`URL is too long: ${this.serviceAccountImpersonationUrl}`);
|
|
171
|
+
}
|
|
172
|
+
// Parse email from URL. The formal looks as follows:
|
|
173
|
+
// https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/name@project-id.iam.gserviceaccount.com:generateAccessToken
|
|
174
|
+
const re = /serviceAccounts\/(?<email>[^:]+):generateAccessToken$/;
|
|
175
|
+
const result = re.exec(this.serviceAccountImpersonationUrl);
|
|
176
|
+
return result?.groups?.email || null;
|
|
177
|
+
}
|
|
178
|
+
return null;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Provides a mechanism to inject GCP access tokens directly.
|
|
182
|
+
* When the provided credential expires, a new credential, using the
|
|
183
|
+
* external account options, is retrieved.
|
|
184
|
+
* @param credentials The Credentials object to set on the current client.
|
|
185
|
+
*/
|
|
186
|
+
setCredentials(credentials) {
|
|
187
|
+
super.setCredentials(credentials);
|
|
188
|
+
this.cachedAccessToken = credentials;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* @return A promise that resolves with the current GCP access token
|
|
192
|
+
* response. If the current credential is expired, a new one is retrieved.
|
|
193
|
+
*/
|
|
194
|
+
async getAccessToken() {
|
|
195
|
+
// If cached access token is unavailable or expired, force refresh.
|
|
196
|
+
if (!this.cachedAccessToken || this.isExpired(this.cachedAccessToken)) {
|
|
197
|
+
await this.refreshAccessTokenAsync();
|
|
198
|
+
}
|
|
199
|
+
// Return GCP access token in GetAccessTokenResponse format.
|
|
200
|
+
return {
|
|
201
|
+
token: this.cachedAccessToken.access_token,
|
|
202
|
+
res: this.cachedAccessToken.res,
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* The main authentication interface. It takes an optional url which when
|
|
207
|
+
* present is the endpoint being accessed, and returns a Promise which
|
|
208
|
+
* resolves with authorization header fields.
|
|
209
|
+
*
|
|
210
|
+
* The result has the form:
|
|
211
|
+
* { authorization: 'Bearer <access_token_value>' }
|
|
212
|
+
*/
|
|
213
|
+
async getRequestHeaders() {
|
|
214
|
+
const accessTokenResponse = await this.getAccessToken();
|
|
215
|
+
const headers = new Headers({
|
|
216
|
+
authorization: `Bearer ${accessTokenResponse.token}`,
|
|
217
|
+
});
|
|
218
|
+
return this.addSharedMetadataHeaders(headers);
|
|
219
|
+
}
|
|
220
|
+
request(opts, callback) {
|
|
221
|
+
if (callback) {
|
|
222
|
+
this.requestAsync(opts).then(r => callback(null, r), e => {
|
|
223
|
+
return callback(e, e.response);
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
return this.requestAsync(opts);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* @return A promise that resolves with the project ID corresponding to the
|
|
232
|
+
* current workload identity pool or current workforce pool if
|
|
233
|
+
* determinable. For workforce pool credential, it returns the project ID
|
|
234
|
+
* corresponding to the workforcePoolUserProject.
|
|
235
|
+
* This is introduced to match the current pattern of using the Auth
|
|
236
|
+
* library:
|
|
237
|
+
* const projectId = await auth.getProjectId();
|
|
238
|
+
* const url = `https://dns.googleapis.com/dns/v1/projects/${projectId}`;
|
|
239
|
+
* const res = await client.request({ url });
|
|
240
|
+
* The resource may not have permission
|
|
241
|
+
* (resourcemanager.projects.get) to call this API or the required
|
|
242
|
+
* scopes may not be selected:
|
|
243
|
+
* https://cloud.google.com/resource-manager/reference/rest/v1/projects/get#authorization-scopes
|
|
244
|
+
*/
|
|
245
|
+
async getProjectId() {
|
|
246
|
+
const projectNumber = this.projectNumber || this.workforcePoolUserProject;
|
|
247
|
+
if (this.projectId) {
|
|
248
|
+
// Return previously determined project ID.
|
|
249
|
+
return this.projectId;
|
|
250
|
+
}
|
|
251
|
+
else if (projectNumber) {
|
|
252
|
+
// Preferable not to use request() to avoid retrial policies.
|
|
253
|
+
const headers = await this.getRequestHeaders();
|
|
254
|
+
const opts = {
|
|
255
|
+
...BaseExternalAccountClient.RETRY_CONFIG,
|
|
256
|
+
headers,
|
|
257
|
+
url: `${this.cloudResourceManagerURL.toString()}${projectNumber}`,
|
|
258
|
+
responseType: 'json',
|
|
259
|
+
};
|
|
260
|
+
authclient_1.AuthClient.setMethodName(opts, 'getProjectId');
|
|
261
|
+
const response = await this.transporter.request(opts);
|
|
262
|
+
this.projectId = response.data.projectId;
|
|
263
|
+
return this.projectId;
|
|
264
|
+
}
|
|
265
|
+
return null;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Authenticates the provided HTTP request, processes it and resolves with the
|
|
269
|
+
* returned response.
|
|
270
|
+
* @param opts The HTTP request options.
|
|
271
|
+
* @param reAuthRetried Whether the current attempt is a retry after a failed attempt due to an auth failure.
|
|
272
|
+
* @return A promise that resolves with the successful response.
|
|
273
|
+
*/
|
|
274
|
+
async requestAsync(opts, reAuthRetried = false) {
|
|
275
|
+
let response;
|
|
276
|
+
try {
|
|
277
|
+
const requestHeaders = await this.getRequestHeaders();
|
|
278
|
+
opts.headers = gaxios_1.Gaxios.mergeHeaders(opts.headers);
|
|
279
|
+
this.addUserProjectAndAuthHeaders(opts.headers, requestHeaders);
|
|
280
|
+
response = await this.transporter.request(opts);
|
|
281
|
+
}
|
|
282
|
+
catch (e) {
|
|
283
|
+
const res = e.response;
|
|
284
|
+
if (res) {
|
|
285
|
+
const statusCode = res.status;
|
|
286
|
+
// Retry the request for metadata if the following criteria are true:
|
|
287
|
+
// - We haven't already retried. It only makes sense to retry once.
|
|
288
|
+
// - The response was a 401 or a 403
|
|
289
|
+
// - The request didn't send a readableStream
|
|
290
|
+
// - forceRefreshOnFailure is true
|
|
291
|
+
const isReadableStream = res.config.data instanceof stream.Readable;
|
|
292
|
+
const isAuthErr = statusCode === 401 || statusCode === 403;
|
|
293
|
+
if (!reAuthRetried &&
|
|
294
|
+
isAuthErr &&
|
|
295
|
+
!isReadableStream &&
|
|
296
|
+
this.forceRefreshOnFailure) {
|
|
297
|
+
await this.refreshAccessTokenAsync();
|
|
298
|
+
return await this.requestAsync(opts, true);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
throw e;
|
|
302
|
+
}
|
|
303
|
+
return response;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Forces token refresh, even if unexpired tokens are currently cached.
|
|
307
|
+
* External credentials are exchanged for GCP access tokens via the token
|
|
308
|
+
* exchange endpoint and other settings provided in the client options
|
|
309
|
+
* object.
|
|
310
|
+
* If the service_account_impersonation_url is provided, an additional
|
|
311
|
+
* step to exchange the external account GCP access token for a service
|
|
312
|
+
* account impersonated token is performed.
|
|
313
|
+
* @return A promise that resolves with the fresh GCP access tokens.
|
|
314
|
+
*/
|
|
315
|
+
async refreshAccessTokenAsync() {
|
|
316
|
+
// Use an existing access token request, or cache a new one
|
|
317
|
+
this.#pendingAccessToken =
|
|
318
|
+
this.#pendingAccessToken || this.#internalRefreshAccessTokenAsync();
|
|
319
|
+
try {
|
|
320
|
+
return await this.#pendingAccessToken;
|
|
321
|
+
}
|
|
322
|
+
finally {
|
|
323
|
+
// clear pending access token for future requests
|
|
324
|
+
this.#pendingAccessToken = null;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
async #internalRefreshAccessTokenAsync() {
|
|
328
|
+
// Retrieve the external credential.
|
|
329
|
+
const subjectToken = await this.retrieveSubjectToken();
|
|
330
|
+
// Construct the STS credentials options.
|
|
331
|
+
const stsCredentialsOptions = {
|
|
332
|
+
grantType: STS_GRANT_TYPE,
|
|
333
|
+
audience: this.audience,
|
|
334
|
+
requestedTokenType: STS_REQUEST_TOKEN_TYPE,
|
|
335
|
+
subjectToken,
|
|
336
|
+
subjectTokenType: this.subjectTokenType,
|
|
337
|
+
// generateAccessToken requires the provided access token to have
|
|
338
|
+
// scopes:
|
|
339
|
+
// https://www.googleapis.com/auth/iam or
|
|
340
|
+
// https://www.googleapis.com/auth/cloud-platform
|
|
341
|
+
// The new service account access token scopes will match the user
|
|
342
|
+
// provided ones.
|
|
343
|
+
scope: this.serviceAccountImpersonationUrl
|
|
344
|
+
? [DEFAULT_OAUTH_SCOPE]
|
|
345
|
+
: this.getScopesArray(),
|
|
346
|
+
};
|
|
347
|
+
// Exchange the external credentials for a GCP access token.
|
|
348
|
+
// Client auth is prioritized over passing the workforcePoolUserProject
|
|
349
|
+
// parameter for STS token exchange.
|
|
350
|
+
const additionalOptions = !this.clientAuth && this.workforcePoolUserProject
|
|
351
|
+
? { userProject: this.workforcePoolUserProject }
|
|
352
|
+
: undefined;
|
|
353
|
+
const additionalHeaders = new Headers({
|
|
354
|
+
'x-goog-api-client': this.getMetricsHeaderValue(),
|
|
355
|
+
});
|
|
356
|
+
const stsResponse = await this.stsCredential.exchangeToken(stsCredentialsOptions, additionalHeaders, additionalOptions);
|
|
357
|
+
if (this.serviceAccountImpersonationUrl) {
|
|
358
|
+
this.cachedAccessToken = await this.getImpersonatedAccessToken(stsResponse.access_token);
|
|
359
|
+
}
|
|
360
|
+
else if (stsResponse.expires_in) {
|
|
361
|
+
// Save response in cached access token.
|
|
362
|
+
this.cachedAccessToken = {
|
|
363
|
+
access_token: stsResponse.access_token,
|
|
364
|
+
expiry_date: new Date().getTime() + stsResponse.expires_in * 1000,
|
|
365
|
+
res: stsResponse.res,
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
else {
|
|
369
|
+
// Save response in cached access token.
|
|
370
|
+
this.cachedAccessToken = {
|
|
371
|
+
access_token: stsResponse.access_token,
|
|
372
|
+
res: stsResponse.res,
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
// Save credentials.
|
|
376
|
+
this.credentials = {};
|
|
377
|
+
Object.assign(this.credentials, this.cachedAccessToken);
|
|
378
|
+
delete this.credentials.res;
|
|
379
|
+
// Trigger tokens event to notify external listeners.
|
|
380
|
+
this.emit('tokens', {
|
|
381
|
+
refresh_token: null,
|
|
382
|
+
expiry_date: this.cachedAccessToken.expiry_date,
|
|
383
|
+
access_token: this.cachedAccessToken.access_token,
|
|
384
|
+
token_type: 'Bearer',
|
|
385
|
+
id_token: null,
|
|
386
|
+
});
|
|
387
|
+
// Return the cached access token.
|
|
388
|
+
return this.cachedAccessToken;
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Returns the workload identity pool project number if it is determinable
|
|
392
|
+
* from the audience resource name.
|
|
393
|
+
* @param audience The STS audience used to determine the project number.
|
|
394
|
+
* @return The project number associated with the workload identity pool, if
|
|
395
|
+
* this can be determined from the STS audience field. Otherwise, null is
|
|
396
|
+
* returned.
|
|
397
|
+
*/
|
|
398
|
+
getProjectNumber(audience) {
|
|
399
|
+
// STS audience pattern:
|
|
400
|
+
// //iam.googleapis.com/projects/$PROJECT_NUMBER/locations/...
|
|
401
|
+
const match = audience.match(/\/projects\/([^/]+)/);
|
|
402
|
+
if (!match) {
|
|
403
|
+
return null;
|
|
404
|
+
}
|
|
405
|
+
return match[1];
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Exchanges an external account GCP access token for a service
|
|
409
|
+
* account impersonated access token using iamcredentials
|
|
410
|
+
* GenerateAccessToken API.
|
|
411
|
+
* @param token The access token to exchange for a service account access
|
|
412
|
+
* token.
|
|
413
|
+
* @return A promise that resolves with the service account impersonated
|
|
414
|
+
* credentials response.
|
|
415
|
+
*/
|
|
416
|
+
async getImpersonatedAccessToken(token) {
|
|
417
|
+
const opts = {
|
|
418
|
+
...BaseExternalAccountClient.RETRY_CONFIG,
|
|
419
|
+
url: this.serviceAccountImpersonationUrl,
|
|
420
|
+
method: 'POST',
|
|
421
|
+
headers: {
|
|
422
|
+
'content-type': 'application/json',
|
|
423
|
+
authorization: `Bearer ${token}`,
|
|
424
|
+
},
|
|
425
|
+
data: {
|
|
426
|
+
scope: this.getScopesArray(),
|
|
427
|
+
lifetime: this.serviceAccountImpersonationLifetime + 's',
|
|
428
|
+
},
|
|
429
|
+
responseType: 'json',
|
|
430
|
+
};
|
|
431
|
+
authclient_1.AuthClient.setMethodName(opts, 'getImpersonatedAccessToken');
|
|
432
|
+
const response = await this.transporter.request(opts);
|
|
433
|
+
const successResponse = response.data;
|
|
434
|
+
return {
|
|
435
|
+
access_token: successResponse.accessToken,
|
|
436
|
+
// Convert from ISO format to timestamp.
|
|
437
|
+
expiry_date: new Date(successResponse.expireTime).getTime(),
|
|
438
|
+
res: response,
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* Returns whether the provided credentials are expired or not.
|
|
443
|
+
* If there is no expiry time, assumes the token is not expired or expiring.
|
|
444
|
+
* @param accessToken The credentials to check for expiration.
|
|
445
|
+
* @return Whether the credentials are expired or not.
|
|
446
|
+
*/
|
|
447
|
+
isExpired(accessToken) {
|
|
448
|
+
const now = new Date().getTime();
|
|
449
|
+
return accessToken.expiry_date
|
|
450
|
+
? now >= accessToken.expiry_date - this.eagerRefreshThresholdMillis
|
|
451
|
+
: false;
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* @return The list of scopes for the requested GCP access token.
|
|
455
|
+
*/
|
|
456
|
+
getScopesArray() {
|
|
457
|
+
// Since scopes can be provided as string or array, the type should
|
|
458
|
+
// be normalized.
|
|
459
|
+
if (typeof this.scopes === 'string') {
|
|
460
|
+
return [this.scopes];
|
|
461
|
+
}
|
|
462
|
+
return this.scopes || [DEFAULT_OAUTH_SCOPE];
|
|
463
|
+
}
|
|
464
|
+
getMetricsHeaderValue() {
|
|
465
|
+
const nodeVersion = process.version.replace(/^v/, '');
|
|
466
|
+
const saImpersonation = this.serviceAccountImpersonationUrl !== undefined;
|
|
467
|
+
const credentialSourceType = this.credentialSourceType
|
|
468
|
+
? this.credentialSourceType
|
|
469
|
+
: 'unknown';
|
|
470
|
+
return `gl-node/${nodeVersion} auth/${shared_cjs_1.pkg.version} google-byoid-sdk source/${credentialSourceType} sa-impersonation/${saImpersonation} config-lifetime/${this.configLifetimeRequested}`;
|
|
471
|
+
}
|
|
472
|
+
getTokenUrl() {
|
|
473
|
+
return this.tokenUrl;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
exports.BaseExternalAccountClient = BaseExternalAccountClient;
|
|
477
|
+
//# sourceMappingURL=baseexternalclient.js.map
|