🎥 Make videos programmatically with React
container packages working on Cloud Run
Matt Mcgillivray972070bb242f
diff --git a/packages/gcp/containers/renderMedia/Dockerfile b/packages/gcp/containers/renderMedia/Dockerfilenew file mode 100644index 0000000000..d10687a211--- /dev/null+++ b/packages/gcp/containers/renderMedia/Dockerfile@@ -0,0 +1,26 @@+FROM node:alpine++RUN apk add --no-cache \+ chromium \+ nss \+ freetype \+ freetype-dev \+ harfbuzz \+ ca-certificates \+ ttf-freefont \+ ffmpeg \+ font-noto-emoji++ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \+ PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser++WORKDIR /usr/app++COPY package*.json ./+COPY dist ./dist++RUN npm i++EXPOSE 8080++CMD ["npm", "run", "start"]\ No newline at end of filediff --git a/packages/gcp/containers/renderMedia/package.json b/packages/gcp/containers/renderMedia/package.jsonnew file mode 100644index 0000000000..0d0fa8397b--- /dev/null+++ b/packages/gcp/containers/renderMedia/package.json@@ -0,0 +1,12 @@+{+ "name": "gcp-cloud-run-render-media",+ "version": "0.1.0",+ "description": "Render media on Cloud Run",+ "main": "dist/index.js",+ "scripts": {+ "start": "functions-framework --target=renderMediaSingleThread"+ },+ "dependencies": {+ "@google-cloud/functions-framework": "^3.1.3"+ }+}diff --git a/packages/gcp/containers/renderStill/Dockerfile b/packages/gcp/containers/renderStill/Dockerfilenew file mode 100644index 0000000000..d10687a211--- /dev/null+++ b/packages/gcp/containers/renderStill/Dockerfile@@ -0,0 +1,26 @@+FROM node:alpine++RUN apk add --no-cache \+ chromium \+ nss \+ freetype \+ freetype-dev \+ harfbuzz \+ ca-certificates \+ ttf-freefont \+ ffmpeg \+ font-noto-emoji++ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \+ PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser++WORKDIR /usr/app++COPY package*.json ./+COPY dist ./dist++RUN npm i++EXPOSE 8080++CMD ["npm", "run", "start"]\ No newline at end of filediff --git a/packages/gcp/containers/renderStill/package.json b/packages/gcp/containers/renderStill/package.jsonnew file mode 100644index 0000000000..17b8476fad--- /dev/null+++ b/packages/gcp/containers/renderStill/package.json@@ -0,0 +1,12 @@+{+ "name": "gcp-cloud-run-render-still",+ "version": "0.1.0",+ "description": "Render a still on Cloud Run",+ "main": "dist/index.js",+ "scripts": {+ "start": "functions-framework --target=renderStillSingleThread"+ },+ "dependencies": {+ "@google-cloud/functions-framework": "^3.1.3"+ }+}diff --git a/packages/gcp/package.json b/packages/gcp/package.jsonindex f4077a7814..08662183f4 100644--- a/packages/gcp/package.json+++ b/packages/gcp/package.json@@ -4,17 +4,18 @@"description": "GCP alternative to lambda rendering","main": "dist/index.js","scripts": {- "build": "tsc",+ "build": "pnpm run build-container-renderStill && pnpm run build-container-renderMedia","start": "functions-framework --target=TypescriptFunction","prestart": "pnpm run build",- "buildlambda": "ts-node src/bundle-lambda.ts",- "gcp-build": "npm run build"+ "build-container-renderStill": "ts-node src/admin/bundle-renderLogic.ts renderStill",+ "build-container-renderMedia": "ts-node src/admin/bundle-renderLogic.ts renderMedia"},"dependencies": {"@google-cloud/functions-framework": "^3.1.3","@remotion/renderer": "3.3.36","remotion": "3.3.36",- "@remotion/bundler": "3.3.36"+ "@remotion/bundler": "3.3.36",+ "@google-cloud/storage": "^6.9.1"},"devDependencies": {"prettier-plugin-organize-imports": "^3.2.2",diff --git a/packages/gcp/readme.md b/packages/gcp/readme.mdindex 82cdde4aeb..712716425d 100644--- a/packages/gcp/readme.md+++ b/packages/gcp/readme.md@@ -1,16 +1,47 @@-`pnpm run buildlambda` will trigger a build command, which will bundle all the required code into one index.js file, and place it in `./container/dist/index.js`.+from the root, `pnpm i && pnpm build` will trigger a build command for all packages. For the GCP package, this will bundle the required code into `containers/renderStill` and `containers/renderMedia`.+Each /container folder contains a package.json that lists functions-framework as a dependency, and a Dockerfile that will build the container. Functions-framework is a nodejs framework that allows you to run nodejs code in a containerized environment.-the `/container` folder contains a package.json that lists functions-framework as a dependency, and a Dockerfile that will build a container. Functions-framework is a nodejs framework that allows you to run nodejs code in a containerized environment.+This can be build and deployed to Cloud Run. Cloud Run is a serverless container platform that allows you to run containers in a managed environment.-This container can be built and run locally, using-`docker build -t umungobungo/gcp-bundle-0.0.3 .`--Or, it can be deployed to Cloud Run. Cloud Run is a serverless container platform that allows you to run containers in a managed environment.--### Push image to Google Container Registry+### Push images to Google Container RegistryTo start, you need to create a project in the Google Cloud Console, and create a repository in the Google Container Registry, and push the container to the registry using-`gcloud builds submit --tag australia-southeast1-docker.pkg.dev/remotion-lambda/repo1/docker:0.0.1`+for renderStill:+`gcloud builds submit --tag australia-southeast1-docker.pkg.dev/remotion-lambda/repo1/render-still:0.1.0`+for renderMedia:+`gcloud builds submit --tag australia-southeast1-docker.pkg.dev/remotion-lambda/repo1/render-media:0.1.0`### Deploy to Cloud RunNavigate to Cloud Run, and click "Create Service". Select "Container Registry", and select the image you just pushed. You can select `Allow unauthenticated invocations` to ignore security for now. Click "Create".+To update the image running on Cloud Run, you can click "Edit & Deploy new revision" and select the new image.+++### Run the services+Within the Cloud Run service, you can see the URL of the service. You can run the service by sending a POST request to the URL with the following body example:++#### Render Media Body:+```+{+ "composition": "HelloWorld",+ "serveUrl": "https://remotionlambda-11kow3vq6f.s3.us-east-1.amazonaws.com/sites/xmycbufjs3/index.html",+ "codec": "h264",+ "inputProps": {+ "titleText": "Welcome to Remotion",+ "titleColor": "black"+ },+ "outputBucket": "remotionlambda-test",+ "outputFile": "outFolder/mediaOutput.mp4"+}+```+#### Render Still Body:+```+{+ "composition": "StillRender",+ "serveUrl": "https://remotionlambda-11kow3vq6f.s3.us-east-1.amazonaws.com/sites/xmycbufjs3/index.html",+ "inputProps": {+ "text": "Created on Cloud Run™️"+ },+ "outputBucket": "remotionlambda-test",+ "outputFile": "outFolder/stillOutput.png"+}+```\ No newline at end of filediff --git a/packages/gcp/src/bundle-lambda.ts b/packages/gcp/src/admin/bundle-renderLogic.tssimilarity index 59%rename from packages/gcp/src/bundle-lambda.tsrename to packages/gcp/src/admin/bundle-renderLogic.tsindex 3b1d903b46..550323babd 100644--- a/packages/gcp/src/bundle-lambda.ts+++ b/packages/gcp/src/admin/bundle-renderLogic.ts@@ -4,8 +4,18 @@ import fs from 'fs';import path from 'path';import zl = require('zip-lib');-const bundleLambda = async () => {- const outdir = path.join(__dirname, '..', 'container', '/', 'dist');+const bundleRenderLogic = async () => {+ let renderTypeParam = process.argv[2];++ if (renderTypeParam === undefined) {+ throw new Error('renderTypeParam is undefined');+ }++ if (renderTypeParam !== 'renderStill' && renderTypeParam !== 'renderMedia') {+ throw new Error('renderTypeParam must be either renderStill or renderMedia');+ }++ const outdir = path.join(__dirname, '../../containers/', renderTypeParam, '/dist');fs.mkdirSync(outdir, {recursive: true,});@@ -14,7 +24,7 @@ const bundleLambda = async () => {(fs.rmSync ?? fs.rmdirSync)(outdir, {recursive: true});fs.mkdirSync(outdir, {recursive: true});const template = require.resolve(- path.join(__dirname, 'index')+ path.join(__dirname, '../index'));await BundlerInternals.esbuild.build({@@ -30,13 +40,8 @@ const bundleLambda = async () => {const compositorFile = `${outdir}/compositor`;fs.copyFileSync(x64BinaryPath, compositorFile);++ console.log(renderTypeParam + ' bundled.');};-bundleLambda()- .then(() => {- console.log('Lambda bundled for gcp');- })- .catch((err) => {- console.log(err);- process.exit(1);- });+bundleRenderLogic()diff --git a/packages/gcp/src/functions/render-media-single-thread.ts b/packages/gcp/src/functions/render-media-single-thread.tsnew file mode 100644index 0000000000..d71b5df198--- /dev/null+++ b/packages/gcp/src/functions/render-media-single-thread.ts@@ -0,0 +1,39 @@+import * as ff from '@google-cloud/functions-framework';+import { getCompositionFromBody } from '../helpers/get-composition-from-body';+import { renderMedia } from '@remotion/renderer';+import { Storage } from '@google-cloud/storage';++{/*+ example JSON body: {+ "composition": "HelloWorld",+ "serveUrl": "https://remotionlambda-11kow3vq6f.s3.us-east-1.amazonaws.com/sites/xmycbufjs3/index.html",+ "codec": "h264",+ "inputProps": {+ "titleText": "Welcome to Remotion",+ "titleColor": "black"+ },+ "outputBucket": "remotionlambda-test",+ "outputFile": "outFolder/mediaOutput.mp4"+ }+*/}++export const renderMediaSingleThread = async (req: ff.Request, res: ff.Response) => {+ const composition = await getCompositionFromBody(req.body.serveUrl, req.body.composition);++ const tempFilePath = '/tmp/output.mp4'++ await renderMedia({+ composition: composition,+ serveUrl: req.body.serveUrl,+ codec: req.body.codec,+ outputLocation: tempFilePath,+ inputProps: req.body.inputProps,+ });++ const storage = new Storage();++ await storage.bucket(req.body.outputBucket).upload(tempFilePath, { destination: req.body.outputFile });++ console.log('output uploaded to ', req.body.outputBucket);+ res.send('OK');+};\ No newline at end of filediff --git a/packages/gcp/src/functions/render-still-single-thread.ts b/packages/gcp/src/functions/render-still-single-thread.tsnew file mode 100644index 0000000000..7efc105ec7--- /dev/null+++ b/packages/gcp/src/functions/render-still-single-thread.ts@@ -0,0 +1,37 @@+import * as ff from '@google-cloud/functions-framework';+import { getCompositionFromBody } from '../helpers/get-composition-from-body';+import { renderStill } from '@remotion/renderer';+import { Storage } from '@google-cloud/storage';++{/*+ example JSON body: {+ "composition": "StillRender",+ "serveUrl": "https://remotionlambda-11kow3vq6f.s3.us-east-1.amazonaws.com/sites/xmycbufjs3/index.html",+ "inputProps": {+ "text": "Created on Cloud Run™️"+ },+ "outputBucket": "remotionlambda-test",+ "outputFile": "outFolder/stillOutput.png"+ }+*/}++export const renderStillSingleThread = async (req: ff.Request, res: ff.Response) => {+ const composition = await getCompositionFromBody(req.body.serveUrl, req.body.composition);++ const tempFilePath = '/tmp/still.png'++ await renderStill({+ composition: composition,+ serveUrl: req.body.serveUrl,+ output: tempFilePath,+ inputProps: req.body.inputProps,+ });++ const storage = new Storage();++ await storage.bucket(req.body.outputBucket).upload(tempFilePath, { destination: req.body.outputFile });++ console.log('output uploaded to ', req.body.outputBucket);++ res.send('OK');+};\ No newline at end of filediff --git a/packages/gcp/src/helpers/get-browser-instance.ts b/packages/gcp/src/helpers/get-browser-instance.tsdeleted file mode 100644index 38c4f91386..0000000000--- a/packages/gcp/src/helpers/get-browser-instance.ts+++ /dev/null@@ -1,67 +0,0 @@-import type {ChromiumOptions} from '@remotion/renderer';-import {openBrowser} from '@remotion/renderer';-// import type {Await} from '../../shared/await';-import {executablePath} from './get-chromium-executable-path';--type Await<T> = T extends PromiseLike<infer U> ? U : T;--let _browserInstance: Await<ReturnType<typeof openBrowser>> | null;--let launching = false;--const waitForLaunched = () => {- return new Promise<void>((resolve, reject) => {- const check = () =>- setTimeout(() => {- if (launching) {- resolve();- } else {- check();- }- }, 16);-- setTimeout(() => reject(new Error('Timeout launching browser')), 5000);- check();- });-};--export const getBrowserInstance = async (- shouldDumpIo: boolean,- chromiumOptions: ChromiumOptions-): ReturnType<typeof openBrowser> => {- if (launching) {- await waitForLaunched();- if (!_browserInstance) {- throw new Error('expected to launch');- }-- return _browserInstance;- }-- if (_browserInstance) {- return _browserInstance;- }-- launching = true;-- const execPath = await executablePath();-- const actualChromiumOptions: ChromiumOptions = {- ...chromiumOptions,- // Override the `null` value, which might come from CLI with swANGLE- gl: chromiumOptions.gl ?? 'swangle',- };-- _browserInstance = await openBrowser('chrome', {- browserExecutable: execPath,- shouldDumpIo,- chromiumOptions: actualChromiumOptions,- });- _browserInstance.on('disconnected', () => {- console.log('Browser disconnected / crashed');- _browserInstance?.close(true).catch(() => undefined);- _browserInstance = null;- });- launching = false;- return _browserInstance;-};diff --git a/packages/gcp/src/helpers/get-chromium-executable-path.ts b/packages/gcp/src/helpers/get-chromium-executable-path.tsdeleted file mode 100644index a95a055492..0000000000--- a/packages/gcp/src/helpers/get-chromium-executable-path.ts+++ /dev/null@@ -1,16 +0,0 @@-if (- /^AWS_Lambda_nodejs(?:10|12|14|16|18)[.]x$/.test(- process.env.AWS_EXECUTION_ENV ?? ''- ) === true-) {- if (process.env.FONTCONFIG_PATH === undefined) {- process.env.FONTCONFIG_PATH = '/opt';- process.env.FONTCONFIG_FILE = '/opt/fonts.conf';- }-- process.env.LD_LIBRARY_PATH = '/opt/lib:/opt/bin';-}--export const executablePath = async (): Promise<string | undefined> => {- return '/usr/bin/chromium-browser';-};diff --git a/packages/gcp/src/helpers/get-composition-from-body.ts b/packages/gcp/src/helpers/get-composition-from-body.tsnew file mode 100644index 0000000000..82e1b77cb2--- /dev/null+++ b/packages/gcp/src/helpers/get-composition-from-body.ts@@ -0,0 +1,12 @@+import { getCompositions } from '@remotion/renderer';++export const getCompositionFromBody = async (serveUrl: string, compositionName: string) => {+ const comps = await getCompositions(serveUrl);+ const composition = comps.find((comp) => comp.id === compositionName);++ if (!composition) {+ throw new Error(`Composition not found: ${compositionName}`);+ } else {+ return composition;+ }+};\ No newline at end of filediff --git a/packages/gcp/src/index.ts b/packages/gcp/src/index.tsindex 96e05d08e4..a3f50de6a8 100644--- a/packages/gcp/src/index.ts+++ b/packages/gcp/src/index.ts@@ -1,27 +1,4 @@-import * as ff from '@google-cloud/functions-framework';-// import {getCompositions} from '@remotion/renderer';-import {getBrowserInstance} from './helpers/get-browser-instance';-import { existsSync } from 'node:fs';+import { renderMediaSingleThread } from "./functions/render-media-single-thread";+import { renderStillSingleThread } from "./functions/render-still-single-thread";-export const functionStart = async (req: ff.Request, res: ff.Response) => {- const AWSUrl =- 'https://remotionlambda-11kow3vq6f.s3.us-east-1.amazonaws.com/sites/xmycbufjs3/index.html';- const GCPUrl =- 'https://storage.googleapis.com/remotionlambda-test/sites/xmycbufjs3/index.html';-- // GCP isn't working, perhaps because because index.html references script files with a relative path, and it needs to be referencing these files with a full URL?- // At least the AWS url works- // const comps = await getCompositions(AWSUrl);- // console.log('comps', comps);-- const browserInstance = await getBrowserInstance(true, {});- console.log('browserInstance', browserInstance);-- if (existsSync('/usr/bin/chromium-browser')) {- console.log('The path exists.');- } else {- console.log('The path does not exist.');- }-- res.send('OK');-};+export { renderMediaSingleThread, renderStillSingleThread}\ No newline at end of filediff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex e5775b9667..e67702b266 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -537,6 +537,7 @@ importers:packages/gcp:specifiers:'@google-cloud/functions-framework': ^3.1.3+ '@google-cloud/storage': ^6.9.1'@remotion/bundler': 3.3.36'@remotion/compositor-linux-x64-musl': 3.3.36'@remotion/renderer': 3.3.36@@ -547,6 +548,7 @@ importers:zip-lib: ^0.7.2dependencies:'@google-cloud/functions-framework': 3.1.3+ '@google-cloud/storage': 6.9.1'@remotion/bundler': link:../bundler'@remotion/renderer': link:../rendererremotion: link:../core@@ -557,6 +559,24 @@ importers:typescript: 4.7.2zip-lib: 0.7.2+ packages/gcp/container:+ specifiers:+ '@google-cloud/functions-framework': ^3.1.3+ dependencies:+ '@google-cloud/functions-framework': 3.1.3++ packages/gcp/containers/renderMedia:+ specifiers:+ '@google-cloud/functions-framework': ^3.1.3+ dependencies:+ '@google-cloud/functions-framework': 3.1.3++ packages/gcp/containers/renderStill:+ specifiers:+ '@google-cloud/functions-framework': ^3.1.3+ dependencies:+ '@google-cloud/functions-framework': 3.1.3+packages/gif:specifiers:'@jonny/eslint-config': 3.0.266@@ -6789,6 +6809,50 @@ packages:- supports-colordev: false+ /@google-cloud/paginator/3.0.7:+ resolution: {integrity: sha512-jJNutk0arIQhmpUUQJPJErsojqo834KcyB6X7a1mxuic8i1tKXxde8E69IZxNZawRIlZdIK2QY4WALvlK5MzYQ==}+ engines: {node: '>=10'}+ dependencies:+ arrify: 2.0.1+ extend: 3.0.2+ dev: false++ /@google-cloud/projectify/3.0.0:+ resolution: {integrity: sha512-HRkZsNmjScY6Li8/kb70wjGlDDyLkVk3KvoEo9uIoxSjYLJasGiCch9+PqRVDOCGUFvEIqyogl+BeqILL4OJHA==}+ engines: {node: '>=12.0.0'}+ dev: false++ /@google-cloud/promisify/3.0.1:+ resolution: {integrity: sha512-z1CjRjtQyBOYL+5Qr9DdYIfrdLBe746jRTYfaYU6MeXkqp7UfYs/jX16lFFVzZ7PGEJvqZNqYUEtb1mvDww4pA==}+ engines: {node: '>=12'}+ dev: false++ /@google-cloud/storage/6.9.1:+ resolution: {integrity: sha512-mhbRfrDgV7qM8HGn12p3dpT87Azt94s9YRzr8qR+o/ptksAkCApspzlNS2mUEeoXUMmnpwcdF2GGNpd4+6NuVw==}+ engines: {node: '>=12'}+ dependencies:+ '@google-cloud/paginator': 3.0.7+ '@google-cloud/projectify': 3.0.0+ '@google-cloud/promisify': 3.0.1+ abort-controller: 3.0.0+ async-retry: 1.3.3+ compressible: 2.0.18+ duplexify: 4.1.2+ ent: 2.2.0+ extend: 3.0.2+ gaxios: 5.0.2+ google-auth-library: 8.7.0+ mime: 3.0.0+ mime-types: 2.1.34+ p-limit: 3.1.0+ retry-request: 5.0.2+ teeny-request: 8.0.2+ uuid: 8.3.2+ transitivePeerDependencies:+ - encoding+ - supports-color+ dev: false+/@hapi/hoek/9.2.1:resolution: {integrity: sha512-gfta+H8aziZsm8pZa0vj04KO6biEiisppNgA1kbJvFrrWu9Vm7eaUEy76DIxsuTaWvti5fkJVhllWc6ZTE+Mdw==}@@ -8709,7 +8773,6 @@ packages:/@tootallnate/once/2.0.0:resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==}engines: {node: '>= 10'}- dev: true/@trysound/sax/0.2.0:resolution: {integrity: sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==}@@ -10150,6 +10213,12 @@ packages:/async-limiter/1.0.1:resolution: {integrity: sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==}+ /async-retry/1.3.3:+ resolution: {integrity: sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==}+ dependencies:+ retry: 0.13.1+ dev: false+/async/3.2.4:resolution: {integrity: sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==}@@ -10460,6 +10529,10 @@ packages:/big.js/5.2.2:resolution: {integrity: sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==}+ /bignumber.js/9.1.1:+ resolution: {integrity: sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig==}+ dev: false+/binary-extensions/2.2.0:resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==}engines: {node: '>=8'}@@ -10605,6 +10678,10 @@ packages:/buffer-crc32/0.2.13:resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==}+ /buffer-equal-constant-time/1.0.1:+ resolution: {integrity: sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=}+ dev: false+/buffer-from/1.1.2:resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==}@@ -12249,6 +12326,15 @@ packages:resolution: {integrity: sha512-CEj8FwwNA4cVH2uFCoHUrmojhYh1vmCdOaneKJXwkeY1i9jnlslVo9dx+hQ5Hl9GnH/Bwy/IjxAyOePyPKYnzA==}dev: false+ /duplexify/4.1.2:+ resolution: {integrity: sha512-fz3OjcNCHmRP12MJoZMPglx8m4rrFP8rovnk4vT8Fs+aonZoCwGg10dSsQsfP/E62eZcPTMSMP6686fu9Qlqtw==}+ dependencies:+ end-of-stream: 1.4.4+ inherits: 2.0.4+ readable-stream: 3.6.0+ stream-shift: 1.0.1+ dev: false+/eastasianwidth/0.2.0:resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}dev: false@@ -12260,6 +12346,12 @@ packages:safer-buffer: 2.1.2dev: false+ /ecdsa-sig-formatter/1.0.11:+ resolution: {integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==}+ dependencies:+ safe-buffer: 5.2.1+ dev: false+/ee-first/1.1.1:resolution: {integrity: sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=}@@ -12309,6 +12401,10 @@ packages:graceful-fs: 4.2.10tapable: 2.2.1+ /ent/2.2.0:+ resolution: {integrity: sha512-GHrMyVZQWvTIdDtpiEXdHZnFQKzeO09apj8Cbl4pKWy4i0Oprcq17usfDt5aO63swf0JOeMWjWQE/LzgSRuWpA==}+ dev: false+/entities/2.2.0:resolution: {integrity: sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==}dev: false@@ -13337,6 +13433,10 @@ packages:/fast-levenshtein/2.0.6:resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}+ /fast-text-encoding/1.0.6:+ resolution: {integrity: sha512-VhXlQgj9ioXCqGstD37E/HBeqEGV/qOD/kmbVG8h5xKBYvM1L3lR1Zn4555cQ8GkYbJa8aJSipLPndE1k6zK2w==}+ dev: false+/fast-url-parser/1.1.3:resolution: {integrity: sha1-9K8+qfNNiicc9YrSs3WfQx8LMY0=}dependencies:@@ -13777,6 +13877,30 @@ packages:strip-ansi: 3.0.1wide-align: 1.1.3+ /gaxios/5.0.2:+ resolution: {integrity: sha512-TjtV2AJOZoMQqRYoy5eM8cCQogYwazWNYLQ72QB0kwa6vHHruYkGmhhyrlzbmgNHK1dNnuP2WSH81urfzyN2Og==}+ engines: {node: '>=12'}+ dependencies:+ extend: 3.0.2+ https-proxy-agent: 5.0.1+ is-stream: 2.0.1+ node-fetch: 2.6.7+ transitivePeerDependencies:+ - encoding+ - supports-color+ dev: false++ /gcp-metadata/5.2.0:+ resolution: {integrity: sha512-aFhhvvNycky2QyhG+dcfEdHBF0FRbYcf39s6WNHUDysKSrbJ5vuFbjydxBcmewtXeV248GP8dWT3ByPNxsyHCw==}+ engines: {node: '>=12'}+ dependencies:+ gaxios: 5.0.2+ json-bigint: 1.0.0+ transitivePeerDependencies:+ - encoding+ - supports-color+ dev: false+/gensync/1.0.0-beta.2:resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}engines: {node: '>=6.9.0'}@@ -14033,6 +14157,32 @@ packages:delegate: 3.2.0dev: false+ /google-auth-library/8.7.0:+ resolution: {integrity: sha512-1M0NG5VDIvJZEnstHbRdckLZESoJwguinwN8Dhae0j2ZKIQFIV63zxm6Fo6nM4xkgqUr2bbMtV5Dgo+Hy6oo0Q==}+ engines: {node: '>=12'}+ dependencies:+ arrify: 2.0.1+ base64-js: 1.5.1+ ecdsa-sig-formatter: 1.0.11+ fast-text-encoding: 1.0.6+ gaxios: 5.0.2+ gcp-metadata: 5.2.0+ gtoken: 6.1.2+ jws: 4.0.0+ lru-cache: 6.0.0+ transitivePeerDependencies:+ - encoding+ - supports-color+ dev: false++ /google-p12-pem/4.0.1:+ resolution: {integrity: sha512-WPkN4yGtz05WZ5EhtlxNDWPhC4JIic6G8ePitwUWy4l+XPVYec+a0j0Ts47PDtW59y3RwAhUd9/h9ZZ63px6RQ==}+ engines: {node: '>=12.0.0'}+ hasBin: true+ dependencies:+ node-forge: 1.3.1+ dev: false+/gopd/1.0.1:resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==}dependencies:@@ -14094,6 +14244,18 @@ packages:strip-bom-string: 1.0.0dev: false+ /gtoken/6.1.2:+ resolution: {integrity: sha512-4ccGpzz7YAr7lxrT2neugmXQ3hP9ho2gcaityLVkiUecAiwiy60Ii8gRbZeOsXV19fYaRjgBSshs8kXw+NKCPQ==}+ engines: {node: '>=12.0.0'}+ dependencies:+ gaxios: 5.0.2+ google-p12-pem: 4.0.1+ jws: 4.0.0+ transitivePeerDependencies:+ - encoding+ - supports-color+ dev: false+/gzip-size/5.1.1:resolution: {integrity: sha512-FNHi6mmoHvs1mxZAds4PpdCS6QG8B4C1krxJsMutgxl5t3+GlRTzzI3NEkifXx2pVsOvJdOGSmIgDhQ55FwdPA==}engines: {node: '>=6'}@@ -14475,7 +14637,6 @@ packages:debug: 4.3.4transitivePeerDependencies:- supports-color- dev: true/http-proxy-middleware/2.0.4_@[email protected]:resolution: {integrity: sha512-m/4FxX17SUvz4lJ5WPXOHDUuCwIqXLfLHs1s0uZ3oYjhoXlx9csYxaOa0ElDEJ+h8Q4iJ1s+lTMbiCa4EXIJqg==}@@ -14541,7 +14702,6 @@ packages:debug: 4.3.4transitivePeerDependencies:- supports-color- dev: true/human-signals/2.1.0:resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==}@@ -15383,6 +15543,12 @@ packages:engines: {node: '>=4'}hasBin: true+ /json-bigint/1.0.0:+ resolution: {integrity: sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==}+ dependencies:+ bignumber.js: 9.1.1+ dev: false+/json-buffer/3.0.0:resolution: {integrity: sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=}dev: false@@ -15488,6 +15654,21 @@ packages:array-includes: 3.1.5object.assign: 4.1.2+ /jwa/2.0.0:+ resolution: {integrity: sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==}+ dependencies:+ buffer-equal-constant-time: 1.0.1+ ecdsa-sig-formatter: 1.0.11+ safe-buffer: 5.2.1+ dev: false++ /jws/4.0.0:+ resolution: {integrity: sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==}+ dependencies:+ jwa: 2.0.0+ safe-buffer: 5.2.1+ dev: false+/keyv/3.1.0:resolution: {integrity: sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==}dependencies:@@ -16455,6 +16636,12 @@ packages:engines: {node: '>=4.0.0'}hasBin: true+ /mime/3.0.0:+ resolution: {integrity: sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==}+ engines: {node: '>=10.0.0'}+ hasBin: true+ dev: false+/mimic-fn/2.1.0:resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}engines: {node: '>=6'}@@ -19577,6 +19764,16 @@ packages:resolution: {integrity: sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==}engines: {node: '>=0.12'}+ /retry-request/5.0.2:+ resolution: {integrity: sha512-wfI3pk7EE80lCIXprqh7ym48IHYdwmAAzESdbU8Q9l7pnRCk9LEhpbOTNKjz6FARLm/Bl5m+4F0ABxOkYUujSQ==}+ engines: {node: '>=12'}+ dependencies:+ debug: 4.3.4+ extend: 3.0.2+ transitivePeerDependencies:+ - supports-color+ dev: false+/retry/0.12.0:resolution: {integrity: sha1-G0KmJmoh8HQh0bC1S33BZ7AcATs=}engines: {node: '>= 4'}@@ -20377,6 +20574,16 @@ packages:readable-stream: 3.6.0dev: false+ /stream-events/1.0.5:+ resolution: {integrity: sha512-E1GUzBSgvct8Jsb3v2X15pjzN1tYebtbLaMg+eBOUOAxgbLoSbT2NS91ckc5lJD1KfLjId+jXJRgo0qnV5Nerg==}+ dependencies:+ stubs: 3.0.0+ dev: false++ /stream-shift/1.0.1:+ resolution: {integrity: sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==}+ dev: false+/strict-uri-encode/2.0.0:resolution: {integrity: sha1-ucczDHBChi9rFC3CdLvMWGbONUY=}engines: {node: '>=4'}@@ -20578,6 +20785,10 @@ packages:through: 2.3.8dev: false+ /stubs/3.0.0:+ resolution: {integrity: sha512-PdHt7hHUJKxvTCgbKX9C1V/ftOcjJQgz8BZwNfV5c4B6dcGqlpelTbJ999jBGZ2jYiPAwcX5dP6oBwVlBlUbxw==}+ dev: false+/style-loader/[email protected]:resolution: {integrity: sha512-Z0gYUJmzZ6ZdRUqpg1r8GsaFKypE+3xAzuFeMuoHgjc9KZv3wMyCRjQIWEbhoFSq7+7yoHXySDJyyWQaPajeiQ==}engines: {node: '>= 10.13.0'}@@ -20780,6 +20991,20 @@ packages:yallist: 4.0.0dev: false+ /teeny-request/8.0.2:+ resolution: {integrity: sha512-34pe0a4zASseXZCKdeTiIZqSKA8ETHb1EwItZr01PAR3CLPojeAKgSjzeNS4373gi59hNulyDrPKEbh2zO9sCg==}+ engines: {node: '>=12'}+ dependencies:+ http-proxy-agent: 5.0.0+ https-proxy-agent: 5.0.1+ node-fetch: 2.6.7+ stream-events: 1.0.5+ uuid: 9.0.0+ transitivePeerDependencies:+ - encoding+ - supports-color+ dev: false+/temp-dir/1.0.0:resolution: {integrity: sha1-CnwOom06Oa+n4OvqnB/AvE2qAR0=}engines: {node: '>=4'}@@ -21886,6 +22111,11 @@ packages:hasBin: truedev: false+ /uuid/9.0.0:+ resolution: {integrity: sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==}+ hasBin: true+ dev: false+/v8-compile-cache-lib/3.0.1:resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==}dev: true