diff --git a/.eslintrc.js b/.eslintrc.js index d75c57d9..edbb76cf 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -8,26 +8,34 @@ const a11yOff = Object.keys(require("eslint-plugin-jsx-a11y").rules).reduce( module.exports = { env: { - browser: true, + browser: true }, extends: [ "airbnb", "airbnb/hooks", "plugin:@typescript-eslint/recommended", - "plugin:prettier/recommended", + "plugin:prettier/recommended" + ], + ignorePatterns: [ + "public/*", + "dist/*", + "/*.js", + "/*.ts", + "/plugins/*.ts", + "/plugins/*.mjs", + "/themes/**/*.ts" ], - ignorePatterns: ["public/*", "dist/*", "/*.js", "/*.ts"], parser: "@typescript-eslint/parser", parserOptions: { project: "./tsconfig.json", - tsconfigRootDir: "./", + tsconfigRootDir: "./" }, settings: { "import/resolver": { typescript: { - project: "./tsconfig.json", - }, - }, + project: "./tsconfig.json" + } + } }, plugins: ["@typescript-eslint", "import", "prettier"], rules: { @@ -37,7 +45,7 @@ module.exports = { "react/destructuring-assignment": "off", "no-underscore-dangle": "off", "@typescript-eslint/no-explicit-any": "off", - "no-console": "off", + "no-console": ["warn", { allow: ["warn", "error", "debug", "info"] }], "@typescript-eslint/no-this-alias": "off", "import/prefer-default-export": "off", "@typescript-eslint/no-empty-function": "off", @@ -52,18 +60,19 @@ module.exports = { "no-await-in-loop": "off", "no-nested-ternary": "off", "prefer-destructuring": "off", + "no-param-reassign": "off", "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }], "react/jsx-filename-extension": [ "error", - { extensions: [".js", ".tsx", ".jsx"] }, + { extensions: [".js", ".tsx", ".jsx"] } ], "import/extensions": [ "error", "ignorePackages", { ts: "never", - tsx: "never", - }, + tsx: "never" + } ], "import/order": [ "error", @@ -74,14 +83,14 @@ module.exports = { "internal", ["sibling", "parent"], "index", - "unknown", + "unknown" ], "newlines-between": "always", alphabetize: { order: "asc", - caseInsensitive: true, - }, - }, + caseInsensitive: true + } + } ], "sort-imports": [ "error", @@ -90,9 +99,9 @@ module.exports = { ignoreDeclarationSort: true, ignoreMemberSort: false, memberSyntaxSortOrder: ["none", "all", "multiple", "single"], - allowSeparatedGroups: true, - }, + allowSeparatedGroups: true + } ], - ...a11yOff, - }, + ...a11yOff + } }; diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index a4092e52..926899a8 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -85,28 +85,10 @@ Here are some tips to make sure that your pull requests are :pinched_fingers: fi ### Language Contributions Language contributions help movie-web massively, allowing people worldwide to use our app! -Like most apps, our translations are stored in `.json` files. Each language string has a unique key (For example, `notFound.genericTitle`) that references a language string in the appropriate language file. +We use weblate for crowdsourcing our translations. [Click here to go to our translation tool.](https://weblate.movie-web.app/projects/movie-web/website/) -Each language file is called `translation.json` and is stored in the `src/setup/languages//` folder. For example, the English language file is located at `src/setup/languages/en/translation.json`. - -> **Warning** -> -> Before you start a translation, please: -> - Check there isn't an existing GitHub [issue](https://github.com/movie-web/movie-web/issues) or [pull request](https://github.com/movie-web/movie-web/pulls) open for the language. -> - Make sure we aren't in the middle of a new feature update. When releasing major versions, we only accept changes to translations once the new version is complete. Otherwise, the language files would need to be updated. -> -> Please speak to us before starting a language PR. We want to use your time effectively. - -To make a translation: - - Copy the `en` folder inside the `src/setup/languages` folder - - Rename the copied folder to the 2-letter code for the country/language which is being translated. - - [Click this link to see a list of codes](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes). Use the codes in the `639-1` column! - - For example, Arabic is `ar` - - Edit the language strings inside the `translation.json` file - - **Do not** edit the keys. Only edit the values. - - e.g. in `"stopEditing": "Stop editing",` - only change the `Stop editing` part, not the `stopEditing` part. - - In the `src/setup/i18n.ts` file: - - Import your new translation file, e.g. `import ar from "./locales/ar/translation.json";` - - Add your translation to the `locales` object (Look at other languages for an example) - -Once you have completed your translation, please open a pull request. We do not accept partial translations, so please ensure every language string is translated to the intended language. +1. First make sure you make an account. (click the link above) +2. Click the language you want to help translate, if it's not listed you can click the plus top left to add a new language. +3. In the top right of the screen, click "translate" +4. Here you will be prompted a key to translate, fill in a translation and proceed to the next item by pressing "save and continue". +5. Thats all there is to it, every translation will eventually come through and be pushed with an update. This usually doesn't take longer than a week. diff --git a/.github/logo-dark.svg b/.github/logo-dark.svg new file mode 100644 index 00000000..e0258f10 --- /dev/null +++ b/.github/logo-dark.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/.github/logo-light.svg b/.github/logo-light.svg new file mode 100644 index 00000000..dc5a242f --- /dev/null +++ b/.github/logo-light.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/.github/workflows/deploying.yml b/.github/workflows/deploying.yml index 532bb67e..cd8a6b57 100644 --- a/.github/workflows/deploying.yml +++ b/.github/workflows/deploying.yml @@ -6,49 +6,92 @@ on: - master jobs: - build: - name: Build + build_pwa: + name: Build PWA runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v3 + + - uses: pnpm/action-setup@v2 + with: + version: 8 + + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'pnpm' + + - name: Install pnpm packages + run: pnpm install + + - name: Build project + run: pnpm run build:pwa + + - name: Upload production-ready build files + uses: actions/upload-artifact@v3 + with: + name: pwa + path: ./dist + + build: + name: Build + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - uses: pnpm/action-setup@v2 + with: + version: 8 - name: Install Node.js uses: actions/setup-node@v3 with: node-version: 18 - cache: 'yarn' - - - name: Install Yarn packages - run: yarn install + cache: 'pnpm' + + - name: Install pnpm packages + run: pnpm install - name: Build project - run: yarn build + run: pnpm run build - name: Upload production-ready build files uses: actions/upload-artifact@v3 with: - name: production-files + name: normal path: ./dist release: name: Release - needs: build + needs: [build, build_pwa] runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v3 - - name: Download artifact + - name: Download PWA artifact uses: actions/download-artifact@v3 with: - name: production-files - path: ./dist + name: pwa + path: ./dist_pwa - - name: Zip files - run: cd dist && zip -r ../movie-web.zip . + - name: Zip PWA files + run: cd dist_pwa && zip -r ../movie-web.pwa.zip . + + - name: Download normal artifact + uses: actions/download-artifact@v3 + with: + name: normal + path: ./dist_normal + + - name: Zip normal files + run: cd dist_normal && zip -r ../movie-web.zip . - name: Get version id: package-version @@ -65,7 +108,18 @@ jobs: draft: false prerelease: false - - name: Upload Release Asset + - name: Upload release (PWA) + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./movie-web.pwa.zip + asset_name: movie-web.pwa.zip + asset_content_type: application/zip + + - name: Upload Release (Normal) id: upload-release-asset uses: actions/upload-release-asset@v1 env: diff --git a/.github/workflows/linting_testing.yml b/.github/workflows/linting_testing.yml index 12428aff..4b2c2caa 100644 --- a/.github/workflows/linting_testing.yml +++ b/.github/workflows/linting_testing.yml @@ -15,18 +15,22 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 - + + - uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Install Node.js uses: actions/setup-node@v3 with: node-version: 18 - cache: 'yarn' - - - name: Install Yarn packages - run: yarn install + cache: 'pnpm' + + - name: Install pnpm packages + run: pnpm install - name: Run ESLint - run: yarn lint + run: pnpm run lint building: name: Build project @@ -36,14 +40,18 @@ jobs: - name: Checkout code uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Install Node.js uses: actions/setup-node@v3 with: node-version: 18 - cache: 'yarn' + cache: 'pnpm' - - name: Install Yarn packages - run: yarn install + - name: Install pnpm packages + run: pnpm install - name: Build Project - run: yarn build + run: pnpm run build diff --git a/.gitignore b/.gitignore index 2e63f929..a666cf99 100644 --- a/.gitignore +++ b/.gitignore @@ -20,9 +20,9 @@ dev-dist .env.production.local npm-debug.log* -yarn-debug.log* -yarn-error.log* +# other package managers +yarn.lock package-lock.json # config diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..bf2e7648 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +shamefully-hoist=true diff --git a/.vscode/settings.json b/.vscode/settings.json index 279011fe..741f0c0a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,5 +4,8 @@ "eslint.format.enable": true, "[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[typescriptreact]": { + "editor.defaultFormatter": "dbaeumer.vscode-eslint" } -} +} \ No newline at end of file diff --git a/README.md b/README.md index d613badb..fdc4776d 100644 --- a/README.md +++ b/README.md @@ -1,81 +1,95 @@ -

movie-web

+

+

-GitHub Workflow Status -GitHub license -GitHub forks -GitHub stars
-Discord Server + +
+ 🔵 discord 🟢 website

+

-movie-web is a web app for watching movies easily. Check it out at **[movie-web.app](https://movie-web.app)**. +# ⚡What is movie-web? + +movie-web is a web app for watching movies easily. Check it out at movie-web.app. This service works by displaying video files from third-party providers inside an intuitive and aesthetic user interface. -Features include: +# 🔥Features -- 🕑 Saving of your progress so you can come back to a video at any time! -- 🔖 Bookmarks to keep track of videos you would like to watch. -- 🎞️ Easy switching between seasons and episodes for a TV series; binge away! -- ✖️ Supports multiple types of content including movies, TV shows and Anime (coming soon™️) +- Automatic saving of progress - optionally synced to an account. +- Bookmark shows or movies, keep track of what you want to watch. +- Minimalistic interface that only shows whats required - no algorithm to consume you. -## Goals of movie-web +## 🍄 Philosophy -- No ads -- No BS: just a search bar and a video player -- No responsibility on the hoster, no databases or api's hosted by us, just a static site +This project is meant to be simple and easy to use. Keep features minimal but polished. +We do not want this project to be yet another bulky streaming site, instead it aims for minimalism. -## Self-hosting +On top of that, hosting should be as cheap and simple as possible. Just a static website with a proxy, with an optional backend if you want cross-device syncing. -A simple guide has been written to assist in hosting your own instance of movie-web. +Content is fetched from third parties and scraping is done fully done on the client. This means that the hoster has no files or media on their server. All files are streamed directly from the third parties. -Check it out here: [https://github.com/movie-web/movie-web/blob/dev/SELFHOSTING.md](https://github.com/movie-web/movie-web/blob/dev/SELFHOSTING.md) +## ⚠️ Limitations -## Running locally for development +- Due to being a static site, there can be no SSR +- To keep it cheap to host, amount of proxied requests need to be kept to a minimum +- Also to keep it cheap, no content must ever be streamed through the proxy. So only streams not protected by CORS headers. -To run this project locally for contributing or testing, run the following commands: -
note: must use yarn to install packages and run NodeJS 16
+# 🧬 Running locally for development +To run locally, you must first clone the repository. After that run the following commands in the root of the repository: ```bash -git clone https://github.com/movie-web/movie-web -cd movie-web -yarn install -yarn dev +pnpm install +pnpm run dev ``` -To build production files, simply run `yarn build`. +You have to also make an `.env` file to configure your environment. Inspire it from the content of `example.env`. -You'll need to deploy a cloudflare service worker as well. Check the [selfhosting guide](https://github.com/movie-web/movie-web/blob/dev/SELFHOSTING.md) on how to run the service worker. Afterwards you can make a `.env` file and put in the URL. (see `example.env` for an example) +To build production files, run: +```bash +pnpm build +``` -

Contributing - GitHub issues -GitHub pull requests

+> [!TIP] +> You must use pnpm (`npm i -g pnpm`) and run NodeJS 20 -Check out [this project's issues](https://github.com/movie-web/movie-web/issues) for inspiration for contribution. Pull requests are always welcome. +# 🥔 Selfhosting -**All pull requests must be merged into the `dev` branch. it will then be deployed with the next version** +A simple guide has been written to assist in hosting your own instance of movie-web. Check it out below -## Credits +|[Selfhosting guide](https://docs.movie-web.app)| +|---| + + +# 🤝 Contributors This project would not be possible without our amazing contributors and the community. -GitHub contributors - -
-@JamesHawkinss for original concept. -
- -
-@JipFr for initial work on movie-cli. -
- -
-@mrjvs for leading the port to React, and for the beautiful design. -
- -
-@binaryoverload for help rewriting the application into React and making the README look ✨ pretty ✨. -
- -
-@lem6ns for helpfully implementing extra scrapers. -
+ + + + + + + + + + + + +
+
+ @JamesHawkinss +
+
+ @JipFr +
+
+ @mrjvs +
+
+ @binaryoverload +
+
+ @lem6ns +
diff --git a/SELFHOSTING.md b/SELFHOSTING.md deleted file mode 100644 index e27a102d..00000000 --- a/SELFHOSTING.md +++ /dev/null @@ -1,41 +0,0 @@ -# Self-hosting tutorial - -> **Note** -> We **do not** provide support on how to self-host. If you can't figure it out then tough luck. Please do not make GitHub issues or ask in our Discord server for support on how to self-host. - -So you would like to self-host. This app is made of two parts: - - The proxy - - The client - -## Hosting the proxy - -The proxy is made as a Cloudflare worker. Cloudflare has a generous free plan, so you don't need to pay anything unless you get hundreds of users. - -1. Create a Cloudflare account at [https://dash.cloudflare.com](https://dash.cloudflare.com). -2. Navigate to `Workers`. -3. If it asks you, choose a subdomain. -4. If it asks for a workers plan, press "Continue with free". -5. Create a new service with a name of your choice. Must be type `HTTP handler`. -6. On the service page, Click `Quick edit`. -7. Remove the template code in the quick edit window. -7. Download the `worker.js` file from the latest release of the proxy: [https://github.com/movie-web/simple-proxy/releases/latest](https://github.com/movie-web/simple-proxy/releases/latest). -8. Open the downloaded `worker.js` file in Notepad, Visual Studio Code or similar. -9. Copy the text contents of the `worker.js` file. -10. Paste the text contents into the edit screen of the Cloudflare service worker. -11. Click `Save and deploy` and confirm. - -Your proxy is now hosted on Cloudflare. Note the url of your worker as you will need it later. - -## Hosting the client - -1. Download the file `movie-web.zip` from the latest release: [https://github.com/movie-web/movie-web/releases/latest](https://github.com/movie-web/movie-web/releases/latest). -2. Extract the zip file so you can edit the files. -3. Open `config.js` in Notepad, Visual Studio Code or similar. -4. Put your Cloudflare proxy URL in-between the double quotes of `VITE_CORS_PROXY_URL: ""`. Make sure to not have a slash at the end of your URL. - - Example (THIS IS AN EXAMPLE, IT WON'T WORK FOR YOU): `VITE_CORS_PROXY_URL: "https://test-proxy.test.workers.dev"` -5. Put your TMDB read access token inside the quotes of `VITE_TMDB_READ_API_KEY: ""`. You can generate it for free at [https://www.themoviedb.org/settings/api](https://www.themoviedb.org/settings/api). -6. Save the file - -Your client has now been prepared, you can now host it with any static website hosting (Common ones include [GitHub Pages](https://pages.github.com/), [Netlify](https://www.netlify.com/) and [Vercel](https://vercel.com/) but any will work!). -It doesn't require PHP, it's just a standard static page. diff --git a/dockerfile b/dockerfile index 5288bf8b..52b585fa 100644 --- a/dockerfile +++ b/dockerfile @@ -1,10 +1,15 @@ FROM node:16.15-alpine as build WORKDIR /app -ENV PATH /app/node_modules/.bin:$PATH -COPY package*.json ./ -RUN yarn install +ENV PNPM_HOME="/pnpm" +ENV PATH="$PNPM_HOME:$PATH" +RUN corepack enable + +COPY package.json ./ +COPY pnpm-lock.yaml ./ +RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile + COPY . ./ -RUN yarn build +RUN pnpm run build # production environment FROM nginx:stable-alpine diff --git a/example.env b/example.env index d191d741..38c690a5 100644 --- a/example.env +++ b/example.env @@ -1,3 +1,8 @@ +VITE_TMDB_READ_API_KEY=... +VITE_OPENSEARCH_ENABLED=false + # make sure the cors proxy url does NOT have a slash at the end VITE_CORS_PROXY_URL=... -VITE_TMDB_READ_API_KEY=... + +# make sure the domain does NOT have a slash at the end +VITE_APP_DOMAIN=http://localhost:5173 diff --git a/index.html b/index.html index 23063c5a..4bfec5d1 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - + - + @@ -33,6 +33,28 @@ movie-web + + {{#if opensearchEnabled }} + + + + + + {{/if}} diff --git a/package.json b/package.json index 4a79c0c1..85c6502b 100644 --- a/package.json +++ b/package.json @@ -1,48 +1,18 @@ { "name": "movie-web", - "version": "3.2.6", + "version": "4.0.0", "private": true, "homepage": "https://movie-web.app", - "dependencies": { - "@formkit/auto-animate": "^1.0.0-beta.5", - "@headlessui/react": "^1.5.0", - "@react-spring/web": "^9.7.1", - "@sentry/integrations": "^7.49.0", - "@sentry/react": "^7.49.0", - "@use-gesture/react": "^10.2.24", - "core-js": "^3.29.1", - "crypto-js": "^4.1.1", - "dompurify": "^3.0.1", - "fscreen": "^1.2.0", - "fuse.js": "^6.4.6", - "hls.js": "^1.0.7", - "i18next": "^22.4.5", - "i18next-browser-languagedetector": "^7.0.1", - "json5": "^2.2.0", - "lodash.throttle": "^4.1.1", - "nanoid": "^4.0.0", - "ofetch": "^1.0.0", - "pako": "^2.1.0", - "react": "^17.0.2", - "react-dom": "^17.0.2", - "react-ga4": "^2.0.0", - "react-helmet": "^6.1.0", - "react-i18next": "^12.1.1", - "react-router-dom": "^5.2.0", - "react-stickynode": "^4.1.0", - "react-transition-group": "^4.4.5", - "react-use": "^17.4.0", - "subsrt-ts": "^2.1.1", - "unpacker": "^1.0.1" - }, "scripts": { "dev": "vite", "build": "vite build", + "build:pwa": "cross-env VITE_PWA_ENABLED=true vite build", "test": "vitest run", "preview": "vite preview", "lint": "eslint --ext .tsx,.ts src", "lint:fix": "eslint --fix --ext .tsx,.ts src", - "lint:report": "eslint --ext .tsx,.ts --output-file eslint_report.json --format json src" + "lint:report": "eslint --ext .tsx,.ts --output-file eslint_report.json --format json src", + "preinstall": "npx -y only-allow pnpm" }, "browserslist": { "production": [ @@ -55,15 +25,51 @@ "last 1 safari version" ] }, + "dependencies": { + "@formkit/auto-animate": "^0.7.0", + "@headlessui/react": "^1.5.0", + "@movie-web/providers": "^1.1.5", + "@noble/hashes": "^1.3.2", + "@react-spring/web": "^9.7.1", + "@scure/bip39": "^1.2.1", + "@sozialhelden/ietf-language-tags": "^5.4.2", + "@types/node-forge": "^1.3.8", + "classnames": "^2.3.2", + "core-js": "^3.29.1", + "dompurify": "^3.0.1", + "flag-icons": "^6.11.1", + "focus-trap-react": "^10.2.3", + "fscreen": "^1.2.0", + "fuse.js": "^6.4.6", + "hls.js": "^1.0.7", + "i18next": "^22.4.5", + "immer": "^10.0.2", + "iso-639-1": "^3.1.0", + "lodash.isequal": "^4.5.0", + "node-forge": "^1.3.1", + "ofetch": "^1.0.0", + "react": "^17.0.2", + "react-dom": "^17.0.2", + "react-ga4": "^2.0.0", + "react-google-recaptcha-v3": "^1.10.1", + "react-helmet-async": "^1.3.0", + "react-i18next": "^12.1.1", + "react-router-dom": "^5.2.0", + "react-sticky-el": "^2.1.0", + "react-use": "^17.4.0", + "slugify": "^1.6.6", + "subsrt-ts": "^2.1.1", + "zustand": "^4.3.9" + }, "devDependencies": { "@babel/core": "^7.21.3", "@babel/preset-env": "^7.20.2", "@babel/preset-typescript": "^7.21.0", - "@tailwindcss/line-clamp": "^0.4.2", "@types/chromecast-caf-sender": "^1.0.5", "@types/crypto-js": "^4.1.1", "@types/dompurify": "^2.4.0", "@types/fscreen": "^1.0.1", + "@types/lodash.isequal": "^4.5.8", "@types/lodash.throttle": "^4.1.7", "@types/node": "^17.0.15", "@types/pako": "^2.0.0", @@ -78,6 +84,7 @@ "@typescript-eslint/parser": "^5.13.0", "@vitejs/plugin-react": "^3.1.0", "autoprefixer": "^10.4.13", + "cross-env": "^7.0.3", "eslint": "^8.10.0", "eslint-config-airbnb": "19.0.4", "eslint-config-prettier": "^8.6.0", @@ -87,19 +94,30 @@ "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-react": "7.29.4", "eslint-plugin-react-hooks": "4.3.0", + "glob": "^10.3.3", + "handlebars": "^4.7.7", "jsdom": "^21.1.0", "postcss": "^8.4.20", "prettier": "^2.5.1", "prettier-plugin-tailwindcss": "^0.1.7", "tailwind-scrollbar": "^2.0.1", "tailwindcss": "^3.2.4", + "tailwindcss-themer": "^3.1.0", + "type-fest": "^4.3.3", "typescript": "^4.6.4", - "vite": "^4.0.1", + "vite": "^4.4.12", "vite-plugin-checker": "^0.5.6", "vite-plugin-package-version": "^1.0.2", - "vite-plugin-pwa": "^0.14.4", - "vitest": "^0.28.5", - "workbox-build": "^6.5.4", - "workbox-window": "^6.5.4" + "vite-plugin-pwa": "^0.16.5", + "vite-plugin-static-copy": "^0.16.0", + "vitest": "^0.28.5" + }, + "pnpm": { + "overrides": { + "get-func-name@<2.0.1": ">=2.0.1", + "postcss@<8.4.31": ">=8.4.31", + "@babel/traverse@<7.23.2": ">=7.23.2", + "crypto-js@<4.2.0": ">=4.2.0" + } } } diff --git a/plugins/.gitignore b/plugins/.gitignore new file mode 100644 index 00000000..e9ee2f2d --- /dev/null +++ b/plugins/.gitignore @@ -0,0 +1 @@ +figmaTokens.json diff --git a/plugins/figmaTokensToThemeTokens.mjs b/plugins/figmaTokensToThemeTokens.mjs new file mode 100644 index 00000000..5be386d0 --- /dev/null +++ b/plugins/figmaTokensToThemeTokens.mjs @@ -0,0 +1,43 @@ +/** + * This script turns output from the figma plugin "style to JSON" into a usuable theme. + * It expects a format of "themes/{NAME}/anythinghere" + */ + +import fs from "fs"; + +const fileLocation = "./figmaTokens.json"; +const theme = "blue"; + +const fileContents = fs.readFileSync(fileLocation, { + encoding: "utf-8" +}); +const tokens = JSON.parse(fileContents); + +const themeTokens = tokens.themes[theme]; +const output = {}; + +function setKey(obj, key, defaultVal) { + const realKey = key.match(/^\d+$/g) ? "c" + key : key; + if (obj[key]) return obj[key]; + obj[realKey] = defaultVal; + return obj[realKey]; +} + +function handleToken(token, path) { + if (typeof token.name === "string" && typeof token.description === "string") { + let ref = output; + const lastKey = path.pop(); + path.forEach((v) => { + ref = setKey(ref, v, {}); + }); + setKey(ref, lastKey, token.hex); + return; + } + + for (let key in token) { + handleToken(token[key], [...path, key]); + } +} + +handleToken(themeTokens, []); +console.log(JSON.stringify(output, null, 2)); diff --git a/plugins/handlebars.ts b/plugins/handlebars.ts new file mode 100644 index 00000000..a8ab0170 --- /dev/null +++ b/plugins/handlebars.ts @@ -0,0 +1,41 @@ +import { globSync } from "glob"; +import { viteStaticCopy } from 'vite-plugin-static-copy' +import { PluginOption } from "vite"; +import Handlebars from "handlebars"; +import path from "path"; + +export const handlebars = (options: { vars?: Record } = {}): PluginOption[] => { + const files = globSync("src/assets/**/**.hbs"); + + function render(content: string): string { + const template = Handlebars.compile(content); + return template(options?.vars ?? {}); + } + + return [ + { + name: 'hbs-templating', + enforce: "pre", + transformIndexHtml: { + order: 'pre', + handler(html) { + return render(html); + } + }, + }, + viteStaticCopy({ + silent: true, + targets: files.map(file => ({ + src: file, + dest: '', + rename: path.basename(file).slice(0, -4), // remove .hbs file extension + transform: { + encoding: 'utf8', + handler(content: string) { + return render(content); + } + } + })) + }) + ] +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 00000000..1b318e25 --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,6795 @@ +lockfileVersion: '6.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +overrides: + get-func-name@<2.0.1: '>=2.0.1' + postcss@<8.4.31: '>=8.4.31' + '@babel/traverse@<7.23.2': '>=7.23.2' + crypto-js@<4.2.0: '>=4.2.0' + +dependencies: + '@formkit/auto-animate': + specifier: ^0.7.0 + version: 0.7.0 + '@headlessui/react': + specifier: ^1.5.0 + version: 1.7.17(react-dom@17.0.2)(react@17.0.2) + '@movie-web/providers': + specifier: ^1.1.5 + version: 1.1.5 + '@noble/hashes': + specifier: ^1.3.2 + version: 1.3.2 + '@react-spring/web': + specifier: ^9.7.1 + version: 9.7.3(react-dom@17.0.2)(react@17.0.2) + '@scure/bip39': + specifier: ^1.2.1 + version: 1.2.1 + '@sozialhelden/ietf-language-tags': + specifier: ^5.4.2 + version: 5.4.2 + '@types/node-forge': + specifier: ^1.3.8 + version: 1.3.8 + classnames: + specifier: ^2.3.2 + version: 2.3.2 + core-js: + specifier: ^3.29.1 + version: 3.32.1 + dompurify: + specifier: ^3.0.1 + version: 3.0.5 + flag-icons: + specifier: ^6.11.1 + version: 6.11.1 + focus-trap-react: + specifier: ^10.2.3 + version: 10.2.3(prop-types@15.8.1)(react-dom@17.0.2)(react@17.0.2) + fscreen: + specifier: ^1.2.0 + version: 1.2.0 + fuse.js: + specifier: ^6.4.6 + version: 6.6.2 + hls.js: + specifier: ^1.0.7 + version: 1.4.11 + i18next: + specifier: ^22.4.5 + version: 22.5.1 + immer: + specifier: ^10.0.2 + version: 10.0.2 + iso-639-1: + specifier: ^3.1.0 + version: 3.1.0 + lodash.isequal: + specifier: ^4.5.0 + version: 4.5.0 + node-forge: + specifier: ^1.3.1 + version: 1.3.1 + ofetch: + specifier: ^1.0.0 + version: 1.3.3 + react: + specifier: ^17.0.2 + version: 17.0.2 + react-dom: + specifier: ^17.0.2 + version: 17.0.2(react@17.0.2) + react-ga4: + specifier: ^2.0.0 + version: 2.1.0 + react-google-recaptcha-v3: + specifier: ^1.10.1 + version: 1.10.1(react-dom@17.0.2)(react@17.0.2) + react-helmet-async: + specifier: ^1.3.0 + version: 1.3.0(react-dom@17.0.2)(react@17.0.2) + react-i18next: + specifier: ^12.1.1 + version: 12.3.1(i18next@22.5.1)(react-dom@17.0.2)(react@17.0.2) + react-router-dom: + specifier: ^5.2.0 + version: 5.3.4(react@17.0.2) + react-sticky-el: + specifier: ^2.1.0 + version: 2.1.0(react-dom@17.0.2)(react@17.0.2) + react-use: + specifier: ^17.4.0 + version: 17.4.0(react-dom@17.0.2)(react@17.0.2) + slugify: + specifier: ^1.6.6 + version: 1.6.6 + subsrt-ts: + specifier: ^2.1.1 + version: 2.1.1 + zustand: + specifier: ^4.3.9 + version: 4.4.1(@types/react@17.0.65)(immer@10.0.2)(react@17.0.2) + +devDependencies: + '@babel/core': + specifier: ^7.21.3 + version: 7.22.11 + '@babel/preset-env': + specifier: ^7.20.2 + version: 7.22.14(@babel/core@7.22.11) + '@babel/preset-typescript': + specifier: ^7.21.0 + version: 7.22.11(@babel/core@7.22.11) + '@types/chromecast-caf-sender': + specifier: ^1.0.5 + version: 1.0.5 + '@types/crypto-js': + specifier: ^4.1.1 + version: 4.1.1 + '@types/dompurify': + specifier: ^2.4.0 + version: 2.4.0 + '@types/fscreen': + specifier: ^1.0.1 + version: 1.0.1 + '@types/lodash.isequal': + specifier: ^4.5.8 + version: 4.5.8 + '@types/lodash.throttle': + specifier: ^4.1.7 + version: 4.1.7 + '@types/node': + specifier: ^17.0.15 + version: 17.0.45 + '@types/pako': + specifier: ^2.0.0 + version: 2.0.0 + '@types/react': + specifier: ^17.0.39 + version: 17.0.65 + '@types/react-dom': + specifier: ^17.0.11 + version: 17.0.20 + '@types/react-helmet': + specifier: ^6.1.6 + version: 6.1.6 + '@types/react-router': + specifier: ^5.1.20 + version: 5.1.20 + '@types/react-router-dom': + specifier: ^5.3.3 + version: 5.3.3 + '@types/react-stickynode': + specifier: ^4.0.0 + version: 4.0.0 + '@types/react-transition-group': + specifier: ^4.4.5 + version: 4.4.6 + '@typescript-eslint/eslint-plugin': + specifier: ^5.13.0 + version: 5.62.0(@typescript-eslint/parser@5.62.0)(eslint@8.48.0)(typescript@4.9.5) + '@typescript-eslint/parser': + specifier: ^5.13.0 + version: 5.62.0(eslint@8.48.0)(typescript@4.9.5) + '@vitejs/plugin-react': + specifier: ^3.1.0 + version: 3.1.0(vite@4.4.12) + autoprefixer: + specifier: ^10.4.13 + version: 10.4.15(postcss@8.4.31) + cross-env: + specifier: ^7.0.3 + version: 7.0.3 + eslint: + specifier: ^8.10.0 + version: 8.48.0 + eslint-config-airbnb: + specifier: 19.0.4 + version: 19.0.4(eslint-plugin-import@2.28.1)(eslint-plugin-jsx-a11y@6.7.1)(eslint-plugin-react-hooks@4.3.0)(eslint-plugin-react@7.29.4)(eslint@8.48.0) + eslint-config-prettier: + specifier: ^8.6.0 + version: 8.10.0(eslint@8.48.0) + eslint-import-resolver-typescript: + specifier: ^2.5.0 + version: 2.7.1(eslint-plugin-import@2.28.1)(eslint@8.48.0) + eslint-plugin-import: + specifier: ^2.27.5 + version: 2.28.1(@typescript-eslint/parser@5.62.0)(eslint-import-resolver-typescript@2.7.1)(eslint@8.48.0) + eslint-plugin-jsx-a11y: + specifier: ^6.5.1 + version: 6.7.1(eslint@8.48.0) + eslint-plugin-prettier: + specifier: ^4.2.1 + version: 4.2.1(eslint-config-prettier@8.10.0)(eslint@8.48.0)(prettier@2.8.8) + eslint-plugin-react: + specifier: 7.29.4 + version: 7.29.4(eslint@8.48.0) + eslint-plugin-react-hooks: + specifier: 4.3.0 + version: 4.3.0(eslint@8.48.0) + glob: + specifier: ^10.3.3 + version: 10.3.4 + handlebars: + specifier: ^4.7.7 + version: 4.7.8 + jsdom: + specifier: ^21.1.0 + version: 21.1.2 + postcss: + specifier: '>=8.4.31' + version: 8.4.31 + prettier: + specifier: ^2.5.1 + version: 2.8.8 + prettier-plugin-tailwindcss: + specifier: ^0.1.7 + version: 0.1.13(prettier@2.8.8) + tailwind-scrollbar: + specifier: ^2.0.1 + version: 2.1.0(tailwindcss@3.3.3) + tailwindcss: + specifier: ^3.2.4 + version: 3.3.3 + tailwindcss-themer: + specifier: ^3.1.0 + version: 3.1.0(tailwindcss@3.3.3) + type-fest: + specifier: ^4.3.3 + version: 4.3.3 + typescript: + specifier: ^4.6.4 + version: 4.9.5 + vite: + specifier: ^4.4.12 + version: 4.4.12(@types/node@17.0.45) + vite-plugin-checker: + specifier: ^0.5.6 + version: 0.5.6(eslint@8.48.0)(typescript@4.9.5)(vite@4.4.12) + vite-plugin-package-version: + specifier: ^1.0.2 + version: 1.0.2(vite@4.4.12) + vite-plugin-pwa: + specifier: ^0.16.5 + version: 0.16.5(vite@4.4.12)(workbox-build@7.0.0)(workbox-window@7.0.0) + vite-plugin-static-copy: + specifier: ^0.16.0 + version: 0.16.0(vite@4.4.12) + vitest: + specifier: ^0.28.5 + version: 0.28.5(jsdom@21.1.2) + +packages: + + /@aashutoshrathi/word-wrap@1.2.6: + resolution: {integrity: sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==} + engines: {node: '>=0.10.0'} + dev: true + + /@alloc/quick-lru@5.2.0: + resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==} + engines: {node: '>=10'} + dev: true + + /@ampproject/remapping@2.2.1: + resolution: {integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==} + engines: {node: '>=6.0.0'} + dependencies: + '@jridgewell/gen-mapping': 0.3.3 + '@jridgewell/trace-mapping': 0.3.19 + dev: true + + /@apideck/better-ajv-errors@0.3.6(ajv@8.12.0): + resolution: {integrity: sha512-P+ZygBLZtkp0qqOAJJVX4oX/sFo5JR3eBWwwuqHHhK0GIgQOKWrAfiAaWX0aArHkRWHMuggFEgAZNxVPwPZYaA==} + engines: {node: '>=10'} + peerDependencies: + ajv: '>=8' + dependencies: + ajv: 8.12.0 + json-schema: 0.4.0 + jsonpointer: 5.0.1 + leven: 3.1.0 + dev: true + + /@babel/code-frame@7.22.13: + resolution: {integrity: sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/highlight': 7.22.13 + chalk: 2.4.2 + dev: true + + /@babel/compat-data@7.22.9: + resolution: {integrity: sha512-5UamI7xkUcJ3i9qVDS+KFDEK8/7oJ55/sJMB1Ge7IEapr7KfdfV/HErR+koZwOfd+SgtFKOKRhRakdg++DcJpQ==} + engines: {node: '>=6.9.0'} + dev: true + + /@babel/core@7.22.11: + resolution: {integrity: sha512-lh7RJrtPdhibbxndr6/xx0w8+CVlY5FJZiaSz908Fpy+G0xkBFTvwLcKJFF4PJxVfGhVWNebikpWGnOoC71juQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@ampproject/remapping': 2.2.1 + '@babel/code-frame': 7.22.13 + '@babel/generator': 7.22.10 + '@babel/helper-compilation-targets': 7.22.10 + '@babel/helper-module-transforms': 7.22.9(@babel/core@7.22.11) + '@babel/helpers': 7.22.11 + '@babel/parser': 7.22.14 + '@babel/template': 7.22.5 + '@babel/traverse': 7.23.2 + '@babel/types': 7.22.11 + convert-source-map: 1.9.0 + debug: 4.3.4 + gensync: 1.0.0-beta.2 + json5: 2.2.3 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/generator@7.22.10: + resolution: {integrity: sha512-79KIf7YiWjjdZ81JnLujDRApWtl7BxTqWD88+FFdQEIOG8LJ0etDOM7CXuIgGJa55sGOwZVwuEsaLEm0PJ5/+A==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.22.11 + '@jridgewell/gen-mapping': 0.3.3 + '@jridgewell/trace-mapping': 0.3.19 + jsesc: 2.5.2 + dev: true + + /@babel/generator@7.23.0: + resolution: {integrity: sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.23.0 + '@jridgewell/gen-mapping': 0.3.3 + '@jridgewell/trace-mapping': 0.3.19 + jsesc: 2.5.2 + dev: true + + /@babel/helper-annotate-as-pure@7.22.5: + resolution: {integrity: sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.22.11 + dev: true + + /@babel/helper-builder-binary-assignment-operator-visitor@7.22.10: + resolution: {integrity: sha512-Av0qubwDQxC56DoUReVDeLfMEjYYSN1nZrTUrWkXd7hpU73ymRANkbuDm3yni9npkn+RXy9nNbEJZEzXr7xrfQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.22.11 + dev: true + + /@babel/helper-compilation-targets@7.22.10: + resolution: {integrity: sha512-JMSwHD4J7SLod0idLq5PKgI+6g/hLD/iuWBq08ZX49xE14VpVEojJ5rHWptpirV2j020MvypRLAXAO50igCJ5Q==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/compat-data': 7.22.9 + '@babel/helper-validator-option': 7.22.5 + browserslist: 4.21.10 + lru-cache: 5.1.1 + semver: 6.3.1 + dev: true + + /@babel/helper-create-class-features-plugin@7.22.11(@babel/core@7.22.11): + resolution: {integrity: sha512-y1grdYL4WzmUDBRGK0pDbIoFd7UZKoDurDzWEoNMYoj1EL+foGRQNyPWDcC+YyegN5y1DUsFFmzjGijB3nSVAQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-annotate-as-pure': 7.22.5 + '@babel/helper-environment-visitor': 7.22.5 + '@babel/helper-function-name': 7.22.5 + '@babel/helper-member-expression-to-functions': 7.22.5 + '@babel/helper-optimise-call-expression': 7.22.5 + '@babel/helper-replace-supers': 7.22.9(@babel/core@7.22.11) + '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + semver: 6.3.1 + dev: true + + /@babel/helper-create-regexp-features-plugin@7.22.9(@babel/core@7.22.11): + resolution: {integrity: sha512-+svjVa/tFwsNSG4NEy1h85+HQ5imbT92Q5/bgtS7P0GTQlP8WuFdqsiABmQouhiFGyV66oGxZFpeYHza1rNsKw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-annotate-as-pure': 7.22.5 + regexpu-core: 5.3.2 + semver: 6.3.1 + dev: true + + /@babel/helper-define-polyfill-provider@0.4.2(@babel/core@7.22.11): + resolution: {integrity: sha512-k0qnnOqHn5dK9pZpfD5XXZ9SojAITdCKRn2Lp6rnDGzIbaP0rHyMPk/4wsSxVBVz4RfN0q6VpXWP2pDGIoQ7hw==} + peerDependencies: + '@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-compilation-targets': 7.22.10 + '@babel/helper-plugin-utils': 7.22.5 + debug: 4.3.4 + lodash.debounce: 4.0.8 + resolve: 1.22.4 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/helper-environment-visitor@7.22.20: + resolution: {integrity: sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==} + engines: {node: '>=6.9.0'} + dev: true + + /@babel/helper-environment-visitor@7.22.5: + resolution: {integrity: sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q==} + engines: {node: '>=6.9.0'} + dev: true + + /@babel/helper-function-name@7.22.5: + resolution: {integrity: sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/template': 7.22.5 + '@babel/types': 7.22.11 + dev: true + + /@babel/helper-function-name@7.23.0: + resolution: {integrity: sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/template': 7.22.15 + '@babel/types': 7.23.0 + dev: true + + /@babel/helper-hoist-variables@7.22.5: + resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.22.11 + dev: true + + /@babel/helper-member-expression-to-functions@7.22.5: + resolution: {integrity: sha512-aBiH1NKMG0H2cGZqspNvsaBe6wNGjbJjuLy29aU+eDZjSbbN53BaxlpB02xm9v34pLTZ1nIQPFYn2qMZoa5BQQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.22.11 + dev: true + + /@babel/helper-module-imports@7.22.5: + resolution: {integrity: sha512-8Dl6+HD/cKifutF5qGd/8ZJi84QeAKh+CEe1sBzz8UayBBGg1dAIJrdHOcOM5b2MpzWL2yuotJTtGjETq0qjXg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.22.11 + dev: true + + /@babel/helper-module-transforms@7.22.9(@babel/core@7.22.11): + resolution: {integrity: sha512-t+WA2Xn5K+rTeGtC8jCsdAH52bjggG5TKRuRrAGNM/mjIbO4GxvlLMFOEz9wXY5I2XQ60PMFsAG2WIcG82dQMQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-environment-visitor': 7.22.5 + '@babel/helper-module-imports': 7.22.5 + '@babel/helper-simple-access': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + '@babel/helper-validator-identifier': 7.22.5 + dev: true + + /@babel/helper-optimise-call-expression@7.22.5: + resolution: {integrity: sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.22.11 + dev: true + + /@babel/helper-plugin-utils@7.22.5: + resolution: {integrity: sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==} + engines: {node: '>=6.9.0'} + dev: true + + /@babel/helper-remap-async-to-generator@7.22.9(@babel/core@7.22.11): + resolution: {integrity: sha512-8WWC4oR4Px+tr+Fp0X3RHDVfINGpF3ad1HIbrc8A77epiR6eMMc6jsgozkzT2uDiOOdoS9cLIQ+XD2XvI2WSmQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-annotate-as-pure': 7.22.5 + '@babel/helper-environment-visitor': 7.22.5 + '@babel/helper-wrap-function': 7.22.10 + dev: true + + /@babel/helper-replace-supers@7.22.9(@babel/core@7.22.11): + resolution: {integrity: sha512-LJIKvvpgPOPUThdYqcX6IXRuIcTkcAub0IaDRGCZH0p5GPUp7PhRU9QVgFcDDd51BaPkk77ZjqFwh6DZTAEmGg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-environment-visitor': 7.22.5 + '@babel/helper-member-expression-to-functions': 7.22.5 + '@babel/helper-optimise-call-expression': 7.22.5 + dev: true + + /@babel/helper-simple-access@7.22.5: + resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.22.11 + dev: true + + /@babel/helper-skip-transparent-expression-wrappers@7.22.5: + resolution: {integrity: sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.22.11 + dev: true + + /@babel/helper-split-export-declaration@7.22.6: + resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.22.11 + dev: true + + /@babel/helper-string-parser@7.22.5: + resolution: {integrity: sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==} + engines: {node: '>=6.9.0'} + dev: true + + /@babel/helper-validator-identifier@7.22.20: + resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==} + engines: {node: '>=6.9.0'} + dev: true + + /@babel/helper-validator-identifier@7.22.5: + resolution: {integrity: sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==} + engines: {node: '>=6.9.0'} + dev: true + + /@babel/helper-validator-option@7.22.5: + resolution: {integrity: sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw==} + engines: {node: '>=6.9.0'} + dev: true + + /@babel/helper-wrap-function@7.22.10: + resolution: {integrity: sha512-OnMhjWjuGYtdoO3FmsEFWvBStBAe2QOgwOLsLNDjN+aaiMD8InJk1/O3HSD8lkqTjCgg5YI34Tz15KNNA3p+nQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-function-name': 7.22.5 + '@babel/template': 7.22.5 + '@babel/types': 7.22.11 + dev: true + + /@babel/helpers@7.22.11: + resolution: {integrity: sha512-vyOXC8PBWaGc5h7GMsNx68OH33cypkEDJCHvYVVgVbbxJDROYVtexSk0gK5iCF1xNjRIN2s8ai7hwkWDq5szWg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/template': 7.22.5 + '@babel/traverse': 7.23.2 + '@babel/types': 7.22.11 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/highlight@7.22.13: + resolution: {integrity: sha512-C/BaXcnnvBCmHTpz/VGZ8jgtE2aYlW4hxDhseJAWZb7gqGM/qtCK6iZUb0TyKFf7BOUsBH7Q7fkRsDRhg1XklQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-validator-identifier': 7.22.5 + chalk: 2.4.2 + js-tokens: 4.0.0 + dev: true + + /@babel/parser@7.22.14: + resolution: {integrity: sha512-1KucTHgOvaw/LzCVrEOAyXkr9rQlp0A1HiHRYnSUE9dmb8PvPW7o5sscg+5169r54n3vGlbx6GevTE/Iw/P3AQ==} + engines: {node: '>=6.0.0'} + hasBin: true + dependencies: + '@babel/types': 7.22.11 + dev: true + + /@babel/parser@7.23.0: + resolution: {integrity: sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==} + engines: {node: '>=6.0.0'} + hasBin: true + dependencies: + '@babel/types': 7.23.0 + dev: true + + /@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-NP1M5Rf+u2Gw9qfSO4ihjcTGW5zXTi36ITLd4/EoAcEhIZ0yjMqmftDNl3QC19CX7olhrjpyU454g/2W7X0jvQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-31Bb65aZaUwqCbWMnZPduIZxCBngHFlzyN6Dq6KAJjtx+lx6ohKHubc61OomYi7XwVD4Ol0XCVz4h+pYFR048g==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.13.0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 + '@babel/plugin-transform-optional-chaining': 7.22.12(@babel/core@7.22.11) + dev: true + + /@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2(@babel/core@7.22.11): + resolution: {integrity: sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + dev: true + + /@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.22.11): + resolution: {integrity: sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.22.11): + resolution: {integrity: sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.22.11): + resolution: {integrity: sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-dynamic-import@7.8.3(@babel/core@7.22.11): + resolution: {integrity: sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-export-namespace-from@7.8.3(@babel/core@7.22.11): + resolution: {integrity: sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-import-assertions@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-rdV97N7KqsRzeNGoWUOK6yUsWarLjE5Su/Snk9IYPU9CwkWHs4t+rTGOvffTR8XGkJMTAdLfO0xVnXm8wugIJg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-import-attributes@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-KwvoWDeNKPETmozyFE0P2rOLqh39EoQHNjqizrI5B8Vt0ZNS7M56s7dAiAqbYfiAYOuIzIh96z3iR2ktgu3tEg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.22.11): + resolution: {integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.22.11): + resolution: {integrity: sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-jsx@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.22.11): + resolution: {integrity: sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.22.11): + resolution: {integrity: sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.22.11): + resolution: {integrity: sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.22.11): + resolution: {integrity: sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.22.11): + resolution: {integrity: sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.22.11): + resolution: {integrity: sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.22.11): + resolution: {integrity: sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.22.11): + resolution: {integrity: sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-typescript@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-1mS2o03i7t1c6VzH6fdQ3OA8tcEIxwG18zIPRp+UY1Ihv6W+XZzBCVxExF9upussPXJ0xE9XRHwMoNs1ep/nRQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-syntax-unicode-sets-regex@7.18.6(@babel/core@7.22.11): + resolution: {integrity: sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-create-regexp-features-plugin': 7.22.9(@babel/core@7.22.11) + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-arrow-functions@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-26lTNXoVRdAnsaDXPpvCNUq+OVWEVC6bx7Vvz9rC53F2bagUWW4u4ii2+h8Fejfh7RYqPxn+libeFBBck9muEw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-async-generator-functions@7.22.11(@babel/core@7.22.11): + resolution: {integrity: sha512-0pAlmeRJn6wU84zzZsEOx1JV1Jf8fqO9ok7wofIJwUnplYo247dcd24P+cMJht7ts9xkzdtB0EPHmOb7F+KzXw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-environment-visitor': 7.22.5 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-remap-async-to-generator': 7.22.9(@babel/core@7.22.11) + '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.22.11) + dev: true + + /@babel/plugin-transform-async-to-generator@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-b1A8D8ZzE/VhNDoV1MSJTnpKkCG5bJo+19R4o4oy03zM7ws8yEMK755j61Dc3EyvdysbqH5BOOTquJ7ZX9C6vQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-module-imports': 7.22.5 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-remap-async-to-generator': 7.22.9(@babel/core@7.22.11) + dev: true + + /@babel/plugin-transform-block-scoped-functions@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-tdXZ2UdknEKQWKJP1KMNmuF5Lx3MymtMN/pvA+p/VEkhK8jVcQ1fzSy8KM9qRYhAf2/lV33hoMPKI/xaI9sADA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-block-scoping@7.22.10(@babel/core@7.22.11): + resolution: {integrity: sha512-1+kVpGAOOI1Albt6Vse7c8pHzcZQdQKW+wJH+g8mCaszOdDVwRXa/slHPqIw+oJAJANTKDMuM2cBdV0Dg618Vg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-class-properties@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-nDkQ0NfkOhPTq8YCLiWNxp1+f9fCobEjCb0n8WdbNUBc4IB5V7P1QnX9IjpSoquKrXF5SKojHleVNs2vGeHCHQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-create-class-features-plugin': 7.22.11(@babel/core@7.22.11) + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-class-static-block@7.22.11(@babel/core@7.22.11): + resolution: {integrity: sha512-GMM8gGmqI7guS/llMFk1bJDkKfn3v3C4KHK9Yg1ey5qcHcOlKb0QvcMrgzvxo+T03/4szNh5lghY+fEC98Kq9g==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.12.0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-create-class-features-plugin': 7.22.11(@babel/core@7.22.11) + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.22.11) + dev: true + + /@babel/plugin-transform-classes@7.22.6(@babel/core@7.22.11): + resolution: {integrity: sha512-58EgM6nuPNG6Py4Z3zSuu0xWu2VfodiMi72Jt5Kj2FECmaYk1RrTXA45z6KBFsu9tRgwQDwIiY4FXTt+YsSFAQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-annotate-as-pure': 7.22.5 + '@babel/helper-compilation-targets': 7.22.10 + '@babel/helper-environment-visitor': 7.22.5 + '@babel/helper-function-name': 7.22.5 + '@babel/helper-optimise-call-expression': 7.22.5 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-replace-supers': 7.22.9(@babel/core@7.22.11) + '@babel/helper-split-export-declaration': 7.22.6 + globals: 11.12.0 + dev: true + + /@babel/plugin-transform-computed-properties@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-4GHWBgRf0krxPX+AaPtgBAlTgTeZmqDynokHOX7aqqAB4tHs3U2Y02zH6ETFdLZGcg9UQSD1WCmkVrE9ErHeOg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/template': 7.22.5 + dev: true + + /@babel/plugin-transform-destructuring@7.22.10(@babel/core@7.22.11): + resolution: {integrity: sha512-dPJrL0VOyxqLM9sritNbMSGx/teueHF/htMKrPT7DNxccXxRDPYqlgPFFdr8u+F+qUZOkZoXue/6rL5O5GduEw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-dotall-regex@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-5/Yk9QxCQCl+sOIB1WelKnVRxTJDSAIxtJLL2/pqL14ZVlbH0fUQUZa/T5/UnQtBNgghR7mfB8ERBKyKPCi7Vw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-create-regexp-features-plugin': 7.22.9(@babel/core@7.22.11) + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-duplicate-keys@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-dEnYD+9BBgld5VBXHnF/DbYGp3fqGMsyxKbtD1mDyIA7AkTSpKXFhCVuj/oQVOoALfBs77DudA0BE4d5mcpmqw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-dynamic-import@7.22.11(@babel/core@7.22.11): + resolution: {integrity: sha512-g/21plo58sfteWjaO0ZNVb+uEOkJNjAaHhbejrnBmu011l/eNDScmkbjCC3l4FKb10ViaGU4aOkFznSu2zRHgA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/core@7.22.11) + dev: true + + /@babel/plugin-transform-exponentiation-operator@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-vIpJFNM/FjZ4rh1myqIya9jXwrwwgFRHPjT3DkUA9ZLHuzox8jiXkOLvwm1H+PQIP3CqfC++WPKeuDi0Sjdj1g==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-builder-binary-assignment-operator-visitor': 7.22.10 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-export-namespace-from@7.22.11(@babel/core@7.22.11): + resolution: {integrity: sha512-xa7aad7q7OiT8oNZ1mU7NrISjlSkVdMbNxn9IuLZyL9AJEhs1Apba3I+u5riX1dIkdptP5EKDG5XDPByWxtehw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/core@7.22.11) + dev: true + + /@babel/plugin-transform-for-of@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-3kxQjX1dU9uudwSshyLeEipvrLjBCVthCgeTp6CzE/9JYrlAIaeekVxRpCWsDDfYTfRZRoCeZatCQvwo+wvK8A==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-function-name@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-UIzQNMS0p0HHiQm3oelztj+ECwFnj+ZRV4KnguvlsD2of1whUeM6o7wGNj6oLwcDoAXQ8gEqfgC24D+VdIcevg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-compilation-targets': 7.22.10 + '@babel/helper-function-name': 7.22.5 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-json-strings@7.22.11(@babel/core@7.22.11): + resolution: {integrity: sha512-CxT5tCqpA9/jXFlme9xIBCc5RPtdDq3JpkkhgHQqtDdiTnTI0jtZ0QzXhr5DILeYifDPp2wvY2ad+7+hLMW5Pw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.22.11) + dev: true + + /@babel/plugin-transform-literals@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-fTLj4D79M+mepcw3dgFBTIDYpbcB9Sm0bpm4ppXPaO+U+PKFFyV9MGRvS0gvGw62sd10kT5lRMKXAADb9pWy8g==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-logical-assignment-operators@7.22.11(@babel/core@7.22.11): + resolution: {integrity: sha512-qQwRTP4+6xFCDV5k7gZBF3C31K34ut0tbEcTKxlX/0KXxm9GLcO14p570aWxFvVzx6QAfPgq7gaeIHXJC8LswQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.22.11) + dev: true + + /@babel/plugin-transform-member-expression-literals@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-RZEdkNtzzYCFl9SE9ATaUMTj2hqMb4StarOJLrZRbqqU4HSBE7UlBw9WBWQiDzrJZJdUWiMTVDI6Gv/8DPvfew==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-modules-amd@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-R+PTfLTcYEmb1+kK7FNkhQ1gP4KgjpSO6HfH9+f8/yfp2Nt3ggBjiVpRwmwTlfqZLafYKJACy36yDXlEmI9HjQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-module-transforms': 7.22.9(@babel/core@7.22.11) + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-modules-commonjs@7.22.11(@babel/core@7.22.11): + resolution: {integrity: sha512-o2+bg7GDS60cJMgz9jWqRUsWkMzLCxp+jFDeDUT5sjRlAxcJWZ2ylNdI7QQ2+CH5hWu7OnN+Cv3htt7AkSf96g==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-module-transforms': 7.22.9(@babel/core@7.22.11) + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-simple-access': 7.22.5 + dev: true + + /@babel/plugin-transform-modules-systemjs@7.22.11(@babel/core@7.22.11): + resolution: {integrity: sha512-rIqHmHoMEOhI3VkVf5jQ15l539KrwhzqcBO6wdCNWPWc/JWt9ILNYNUssbRpeq0qWns8svuw8LnMNCvWBIJ8wA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-hoist-variables': 7.22.5 + '@babel/helper-module-transforms': 7.22.9(@babel/core@7.22.11) + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-validator-identifier': 7.22.5 + dev: true + + /@babel/plugin-transform-modules-umd@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-+S6kzefN/E1vkSsKx8kmQuqeQsvCKCd1fraCM7zXm4SFoggI099Tr4G8U81+5gtMdUeMQ4ipdQffbKLX0/7dBQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-module-transforms': 7.22.9(@babel/core@7.22.11) + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-named-capturing-groups-regex@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-YgLLKmS3aUBhHaxp5hi1WJTgOUb/NCuDHzGT9z9WTt3YG+CPRhJs6nprbStx6DnWM4dh6gt7SU3sZodbZ08adQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-create-regexp-features-plugin': 7.22.9(@babel/core@7.22.11) + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-new-target@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-AsF7K0Fx/cNKVyk3a+DW0JLo+Ua598/NxMRvxDnkpCIGFh43+h/v2xyhRUYf6oD8gE4QtL83C7zZVghMjHd+iw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-nullish-coalescing-operator@7.22.11(@babel/core@7.22.11): + resolution: {integrity: sha512-YZWOw4HxXrotb5xsjMJUDlLgcDXSfO9eCmdl1bgW4+/lAGdkjaEvOnQ4p5WKKdUgSzO39dgPl0pTnfxm0OAXcg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.22.11) + dev: true + + /@babel/plugin-transform-numeric-separator@7.22.11(@babel/core@7.22.11): + resolution: {integrity: sha512-3dzU4QGPsILdJbASKhF/V2TVP+gJya1PsueQCxIPCEcerqF21oEcrob4mzjsp2Py/1nLfF5m+xYNMDpmA8vffg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.22.11) + dev: true + + /@babel/plugin-transform-object-rest-spread@7.22.11(@babel/core@7.22.11): + resolution: {integrity: sha512-nX8cPFa6+UmbepISvlf5jhQyaC7ASs/7UxHmMkuJ/k5xSHvDPPaibMo+v3TXwU/Pjqhep/nFNpd3zn4YR59pnw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/compat-data': 7.22.9 + '@babel/core': 7.22.11 + '@babel/helper-compilation-targets': 7.22.10 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.22.11) + '@babel/plugin-transform-parameters': 7.22.5(@babel/core@7.22.11) + dev: true + + /@babel/plugin-transform-object-super@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-klXqyaT9trSjIUrcsYIfETAzmOEZL3cBYqOYLJxBHfMFFggmXOv+NYSX/Jbs9mzMVESw/WycLFPRx8ba/b2Ipw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-replace-supers': 7.22.9(@babel/core@7.22.11) + dev: true + + /@babel/plugin-transform-optional-catch-binding@7.22.11(@babel/core@7.22.11): + resolution: {integrity: sha512-rli0WxesXUeCJnMYhzAglEjLWVDF6ahb45HuprcmQuLidBJFWjNnOzssk2kuc6e33FlLaiZhG/kUIzUMWdBKaQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.22.11) + dev: true + + /@babel/plugin-transform-optional-chaining@7.22.12(@babel/core@7.22.11): + resolution: {integrity: sha512-7XXCVqZtyFWqjDsYDY4T45w4mlx1rf7aOgkc/Ww76xkgBiOlmjPkx36PBLHa1k1rwWvVgYMPsbuVnIamx2ZQJw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 + '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.22.11) + dev: true + + /@babel/plugin-transform-parameters@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-AVkFUBurORBREOmHRKo06FjHYgjrabpdqRSwq6+C7R5iTCZOsM4QbcB27St0a4U6fffyAOqh3s/qEfybAhfivg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-private-methods@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-PPjh4gyrQnGe97JTalgRGMuU4icsZFnWkzicB/fUtzlKUqvsWBKEpPPfr5a2JiyirZkHxnAqkQMO5Z5B2kK3fA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-create-class-features-plugin': 7.22.11(@babel/core@7.22.11) + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-private-property-in-object@7.22.11(@babel/core@7.22.11): + resolution: {integrity: sha512-sSCbqZDBKHetvjSwpyWzhuHkmW5RummxJBVbYLkGkaiTOWGxml7SXt0iWa03bzxFIx7wOj3g/ILRd0RcJKBeSQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-annotate-as-pure': 7.22.5 + '@babel/helper-create-class-features-plugin': 7.22.11(@babel/core@7.22.11) + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.22.11) + dev: true + + /@babel/plugin-transform-property-literals@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-TiOArgddK3mK/x1Qwf5hay2pxI6wCZnvQqrFSqbtg1GLl2JcNMitVH/YnqjP+M31pLUeTfzY1HAXFDnUBV30rQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-react-jsx-self@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-nTh2ogNUtxbiSbxaT4Ds6aXnXEipHweN9YRgOX/oNXdf0cCrGn/+2LozFa3lnPV5D90MkjhgckCPBrsoSc1a7g==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-react-jsx-source@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-yIiRO6yobeEIaI0RTbIr8iAK9FcBHLtZq0S89ZPjDLQXBA4xvghaKqI0etp/tF3htTM0sazJKKLz9oEiGRtu7w==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-regenerator@7.22.10(@babel/core@7.22.11): + resolution: {integrity: sha512-F28b1mDt8KcT5bUyJc/U9nwzw6cV+UmTeRlXYIl2TNqMMJif0Jeey9/RQ3C4NOd2zp0/TRsDns9ttj2L523rsw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + regenerator-transform: 0.15.2 + dev: true + + /@babel/plugin-transform-reserved-words@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-DTtGKFRQUDm8svigJzZHzb/2xatPc6TzNvAIJ5GqOKDsGFYgAskjRulbR/vGsPKq3OPqtexnz327qYpP57RFyA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-shorthand-properties@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-vM4fq9IXHscXVKzDv5itkO1X52SmdFBFcMIBZ2FRn2nqVYqw6dBexUgMvAjHW+KXpPPViD/Yo3GrDEBaRC0QYA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-spread@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-5ZzDQIGyvN4w8+dMmpohL6MBo+l2G7tfC/O2Dg7/hjpgeWvUx8FzfeOKxGog9IimPa4YekaQ9PlDqTLOljkcxg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 + dev: true + + /@babel/plugin-transform-sticky-regex@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-zf7LuNpHG0iEeiyCNwX4j3gDg1jgt1k3ZdXBKbZSoA3BbGQGvMiSvfbZRR3Dr3aeJe3ooWFZxOOG3IRStYp2Bw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-template-literals@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-5ciOehRNf+EyUeewo8NkbQiUs4d6ZxiHo6BcBcnFlgiJfu16q0bQUw9Jvo0b0gBKFG1SMhDSjeKXSYuJLeFSMA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-typeof-symbol@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-bYkI5lMzL4kPii4HHEEChkD0rkc+nvnlR6+o/qdqR6zrm0Sv/nodmyLhlq2DO0YKLUNd2VePmPRjJXSBh9OIdA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-typescript@7.22.11(@babel/core@7.22.11): + resolution: {integrity: sha512-0E4/L+7gfvHub7wsbTv03oRtD69X31LByy44fGmFzbZScpupFByMcgCJ0VbBTkzyjSJKuRoGN8tcijOWKTmqOA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-annotate-as-pure': 7.22.5 + '@babel/helper-create-class-features-plugin': 7.22.11(@babel/core@7.22.11) + '@babel/helper-plugin-utils': 7.22.5 + '@babel/plugin-syntax-typescript': 7.22.5(@babel/core@7.22.11) + dev: true + + /@babel/plugin-transform-unicode-escapes@7.22.10(@babel/core@7.22.11): + resolution: {integrity: sha512-lRfaRKGZCBqDlRU3UIFovdp9c9mEvlylmpod0/OatICsSfuQ9YFthRo1tpTkGsklEefZdqlEFdY4A2dwTb6ohg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-unicode-property-regex@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-HCCIb+CbJIAE6sXn5CjFQXMwkCClcOfPCzTlilJ8cUatfzwHlWQkbtV0zD338u9dZskwvuOYTuuaMaA8J5EI5A==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-create-regexp-features-plugin': 7.22.9(@babel/core@7.22.11) + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-unicode-regex@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-028laaOKptN5vHJf9/Arr/HiJekMd41hOEZYvNsrsXqJ7YPYuX2bQxh31fkZzGmq3YqHRJzYFFAVYvKfMPKqyg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-create-regexp-features-plugin': 7.22.9(@babel/core@7.22.11) + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/plugin-transform-unicode-sets-regex@7.22.5(@babel/core@7.22.11): + resolution: {integrity: sha512-lhMfi4FC15j13eKrh3DnYHjpGj6UKQHtNKTbtc1igvAhRy4+kLhV07OpLcsN0VgDEw/MjAvJO4BdMJsHwMhzCg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-create-regexp-features-plugin': 7.22.9(@babel/core@7.22.11) + '@babel/helper-plugin-utils': 7.22.5 + dev: true + + /@babel/preset-env@7.22.14(@babel/core@7.22.11): + resolution: {integrity: sha512-daodMIoVo+ol/g+//c/AH+szBkFj4STQUikvBijRGL72Ph+w+AMTSh55DUETe8KJlPlDT1k/mp7NBfOuiWmoig==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/compat-data': 7.22.9 + '@babel/core': 7.22.11 + '@babel/helper-compilation-targets': 7.22.10 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-validator-option': 7.22.5 + '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-proposal-private-property-in-object': 7.21.0-placeholder-for-preset-env.2(@babel/core@7.22.11) + '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.22.11) + '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.22.11) + '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.22.11) + '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/core@7.22.11) + '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/core@7.22.11) + '@babel/plugin-syntax-import-assertions': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-syntax-import-attributes': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.22.11) + '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.22.11) + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.22.11) + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.22.11) + '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.22.11) + '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.22.11) + '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.22.11) + '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.22.11) + '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.22.11) + '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.22.11) + '@babel/plugin-syntax-unicode-sets-regex': 7.18.6(@babel/core@7.22.11) + '@babel/plugin-transform-arrow-functions': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-async-generator-functions': 7.22.11(@babel/core@7.22.11) + '@babel/plugin-transform-async-to-generator': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-block-scoped-functions': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-block-scoping': 7.22.10(@babel/core@7.22.11) + '@babel/plugin-transform-class-properties': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-class-static-block': 7.22.11(@babel/core@7.22.11) + '@babel/plugin-transform-classes': 7.22.6(@babel/core@7.22.11) + '@babel/plugin-transform-computed-properties': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-destructuring': 7.22.10(@babel/core@7.22.11) + '@babel/plugin-transform-dotall-regex': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-duplicate-keys': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-dynamic-import': 7.22.11(@babel/core@7.22.11) + '@babel/plugin-transform-exponentiation-operator': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-export-namespace-from': 7.22.11(@babel/core@7.22.11) + '@babel/plugin-transform-for-of': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-function-name': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-json-strings': 7.22.11(@babel/core@7.22.11) + '@babel/plugin-transform-literals': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-logical-assignment-operators': 7.22.11(@babel/core@7.22.11) + '@babel/plugin-transform-member-expression-literals': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-modules-amd': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-modules-commonjs': 7.22.11(@babel/core@7.22.11) + '@babel/plugin-transform-modules-systemjs': 7.22.11(@babel/core@7.22.11) + '@babel/plugin-transform-modules-umd': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-named-capturing-groups-regex': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-new-target': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-nullish-coalescing-operator': 7.22.11(@babel/core@7.22.11) + '@babel/plugin-transform-numeric-separator': 7.22.11(@babel/core@7.22.11) + '@babel/plugin-transform-object-rest-spread': 7.22.11(@babel/core@7.22.11) + '@babel/plugin-transform-object-super': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-optional-catch-binding': 7.22.11(@babel/core@7.22.11) + '@babel/plugin-transform-optional-chaining': 7.22.12(@babel/core@7.22.11) + '@babel/plugin-transform-parameters': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-private-methods': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-private-property-in-object': 7.22.11(@babel/core@7.22.11) + '@babel/plugin-transform-property-literals': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-regenerator': 7.22.10(@babel/core@7.22.11) + '@babel/plugin-transform-reserved-words': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-shorthand-properties': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-spread': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-sticky-regex': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-template-literals': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-typeof-symbol': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-unicode-escapes': 7.22.10(@babel/core@7.22.11) + '@babel/plugin-transform-unicode-property-regex': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-unicode-regex': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-unicode-sets-regex': 7.22.5(@babel/core@7.22.11) + '@babel/preset-modules': 0.1.6-no-external-plugins(@babel/core@7.22.11) + '@babel/types': 7.22.11 + babel-plugin-polyfill-corejs2: 0.4.5(@babel/core@7.22.11) + babel-plugin-polyfill-corejs3: 0.8.3(@babel/core@7.22.11) + babel-plugin-polyfill-regenerator: 0.5.2(@babel/core@7.22.11) + core-js-compat: 3.32.1 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/preset-modules@0.1.6-no-external-plugins(@babel/core@7.22.11): + resolution: {integrity: sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==} + peerDependencies: + '@babel/core': ^7.0.0-0 || ^8.0.0-0 <8.0.0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/types': 7.22.11 + esutils: 2.0.3 + dev: true + + /@babel/preset-typescript@7.22.11(@babel/core@7.22.11): + resolution: {integrity: sha512-tWY5wyCZYBGY7IlalfKI1rLiGlIfnwsRHZqlky0HVv8qviwQ1Uo/05M6+s+TcTCVa6Bmoo2uJW5TMFX6Wa4qVg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-validator-option': 7.22.5 + '@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-modules-commonjs': 7.22.11(@babel/core@7.22.11) + '@babel/plugin-transform-typescript': 7.22.11(@babel/core@7.22.11) + dev: true + + /@babel/regjsgen@0.8.0: + resolution: {integrity: sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==} + dev: true + + /@babel/runtime@7.22.11: + resolution: {integrity: sha512-ee7jVNlWN09+KftVOu9n7S8gQzD/Z6hN/I8VBRXW4P1+Xe7kJGXMwu8vds4aGIMHZnNbdpSWCfZZtinytpcAvA==} + engines: {node: '>=6.9.0'} + dependencies: + regenerator-runtime: 0.14.0 + + /@babel/template@7.22.15: + resolution: {integrity: sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': 7.22.13 + '@babel/parser': 7.23.0 + '@babel/types': 7.23.0 + dev: true + + /@babel/template@7.22.5: + resolution: {integrity: sha512-X7yV7eiwAxdj9k94NEylvbVHLiVG1nvzCV2EAowhxLTwODV1jl9UzZ48leOC0sH7OnuHrIkllaBgneUykIcZaw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': 7.22.13 + '@babel/parser': 7.22.14 + '@babel/types': 7.22.11 + dev: true + + /@babel/traverse@7.23.2: + resolution: {integrity: sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': 7.22.13 + '@babel/generator': 7.23.0 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-function-name': 7.23.0 + '@babel/helper-hoist-variables': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + '@babel/parser': 7.23.0 + '@babel/types': 7.23.0 + debug: 4.3.4 + globals: 11.12.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/types@7.22.11: + resolution: {integrity: sha512-siazHiGuZRz9aB9NpHy9GOs9xiQPKnMzgdr493iI1M67vRXpnEq8ZOOKzezC5q7zwuQ6sDhdSp4SD9ixKSqKZg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-string-parser': 7.22.5 + '@babel/helper-validator-identifier': 7.22.5 + to-fast-properties: 2.0.0 + dev: true + + /@babel/types@7.23.0: + resolution: {integrity: sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-string-parser': 7.22.5 + '@babel/helper-validator-identifier': 7.22.20 + to-fast-properties: 2.0.0 + dev: true + + /@esbuild/android-arm64@0.18.20: + resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + requiresBuild: true + dev: true + optional: true + + /@esbuild/android-arm@0.18.20: + resolution: {integrity: sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==} + engines: {node: '>=12'} + cpu: [arm] + os: [android] + requiresBuild: true + dev: true + optional: true + + /@esbuild/android-x64@0.18.20: + resolution: {integrity: sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + requiresBuild: true + dev: true + optional: true + + /@esbuild/darwin-arm64@0.18.20: + resolution: {integrity: sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@esbuild/darwin-x64@0.18.20: + resolution: {integrity: sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@esbuild/freebsd-arm64@0.18.20: + resolution: {integrity: sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + /@esbuild/freebsd-x64@0.18.20: + resolution: {integrity: sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-arm64@0.18.20: + resolution: {integrity: sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-arm@0.18.20: + resolution: {integrity: sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-ia32@0.18.20: + resolution: {integrity: sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-loong64@0.18.20: + resolution: {integrity: sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==} + engines: {node: '>=12'} + cpu: [loong64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-mips64el@0.18.20: + resolution: {integrity: sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-ppc64@0.18.20: + resolution: {integrity: sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-riscv64@0.18.20: + resolution: {integrity: sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-s390x@0.18.20: + resolution: {integrity: sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-x64@0.18.20: + resolution: {integrity: sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@esbuild/netbsd-x64@0.18.20: + resolution: {integrity: sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + requiresBuild: true + dev: true + optional: true + + /@esbuild/openbsd-x64@0.18.20: + resolution: {integrity: sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + requiresBuild: true + dev: true + optional: true + + /@esbuild/sunos-x64@0.18.20: + resolution: {integrity: sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + requiresBuild: true + dev: true + optional: true + + /@esbuild/win32-arm64@0.18.20: + resolution: {integrity: sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@esbuild/win32-ia32@0.18.20: + resolution: {integrity: sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@esbuild/win32-x64@0.18.20: + resolution: {integrity: sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@eslint-community/eslint-utils@4.4.0(eslint@8.48.0): + resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 + dependencies: + eslint: 8.48.0 + eslint-visitor-keys: 3.4.3 + dev: true + + /@eslint-community/regexpp@4.8.0: + resolution: {integrity: sha512-JylOEEzDiOryeUnFbQz+oViCXS0KsvR1mvHkoMiu5+UiBvy+RYX7tzlIIIEstF/gVa2tj9AQXk3dgnxv6KxhFg==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + dev: true + + /@eslint/eslintrc@2.1.2: + resolution: {integrity: sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + ajv: 6.12.6 + debug: 4.3.4 + espree: 9.6.1 + globals: 13.21.0 + ignore: 5.2.4 + import-fresh: 3.3.0 + js-yaml: 4.1.0 + minimatch: 3.1.2 + strip-json-comments: 3.1.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@eslint/js@8.48.0: + resolution: {integrity: sha512-ZSjtmelB7IJfWD2Fvb7+Z+ChTIKWq6kjda95fLcQKNS5aheVHn4IkfgRQE3sIIzTcSLwLcLZUD9UBt+V7+h+Pw==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dev: true + + /@formkit/auto-animate@0.7.0: + resolution: {integrity: sha512-RczHUr0AhRPssREoNdRjLfk2b/id9/DFnbIq18QM8L7E4zNV3XH+WO480EZ46BQHDEsv76YPJ0JbG2Y2i3GfXw==} + dev: false + + /@headlessui/react@1.7.17(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-4am+tzvkqDSSgiwrsEpGWqgGo9dz8qU5M3znCkC4PgkpY4HcCZzEDEvozltGGGHIKl9jbXbZPSH5TWn4sWJdow==} + engines: {node: '>=10'} + peerDependencies: + react: ^16 || ^17 || ^18 + react-dom: ^16 || ^17 || ^18 + dependencies: + client-only: 0.0.1 + react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + dev: false + + /@humanwhocodes/config-array@0.11.11: + resolution: {integrity: sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA==} + engines: {node: '>=10.10.0'} + dependencies: + '@humanwhocodes/object-schema': 1.2.1 + debug: 4.3.4 + minimatch: 3.1.2 + transitivePeerDependencies: + - supports-color + dev: true + + /@humanwhocodes/module-importer@1.0.1: + resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} + engines: {node: '>=12.22'} + dev: true + + /@humanwhocodes/object-schema@1.2.1: + resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} + dev: true + + /@isaacs/cliui@8.0.2: + resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} + engines: {node: '>=12'} + dependencies: + string-width: 5.1.2 + string-width-cjs: /string-width@4.2.3 + strip-ansi: 7.1.0 + strip-ansi-cjs: /strip-ansi@6.0.1 + wrap-ansi: 8.1.0 + wrap-ansi-cjs: /wrap-ansi@7.0.0 + dev: true + + /@jridgewell/gen-mapping@0.3.3: + resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==} + engines: {node: '>=6.0.0'} + dependencies: + '@jridgewell/set-array': 1.1.2 + '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/trace-mapping': 0.3.19 + dev: true + + /@jridgewell/resolve-uri@3.1.1: + resolution: {integrity: sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==} + engines: {node: '>=6.0.0'} + dev: true + + /@jridgewell/set-array@1.1.2: + resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==} + engines: {node: '>=6.0.0'} + dev: true + + /@jridgewell/source-map@0.3.5: + resolution: {integrity: sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==} + dependencies: + '@jridgewell/gen-mapping': 0.3.3 + '@jridgewell/trace-mapping': 0.3.19 + dev: true + + /@jridgewell/sourcemap-codec@1.4.15: + resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} + dev: true + + /@jridgewell/trace-mapping@0.3.19: + resolution: {integrity: sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==} + dependencies: + '@jridgewell/resolve-uri': 3.1.1 + '@jridgewell/sourcemap-codec': 1.4.15 + dev: true + + /@movie-web/providers@1.1.5: + resolution: {integrity: sha512-JnqU6nVsEZ83UVcsizqzcr/vtwvHHlZt9vYwGiJEAyaUgaXJPZz3C90qzaRZ8CVWydUTRAmjRP3daRFtC1nKHw==} + dependencies: + cheerio: 1.0.0-rc.12 + crypto-js: 4.2.0 + form-data: 4.0.0 + iso-639-1: 3.1.0 + nanoid: 3.3.6 + node-fetch: 2.7.0 + unpacker: 1.0.1 + transitivePeerDependencies: + - encoding + dev: false + + /@noble/hashes@1.3.2: + resolution: {integrity: sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==} + engines: {node: '>= 16'} + dev: false + + /@nodelib/fs.scandir@2.1.5: + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} + engines: {node: '>= 8'} + dependencies: + '@nodelib/fs.stat': 2.0.5 + run-parallel: 1.2.0 + dev: true + + /@nodelib/fs.stat@2.0.5: + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} + engines: {node: '>= 8'} + dev: true + + /@nodelib/fs.walk@1.2.8: + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} + engines: {node: '>= 8'} + dependencies: + '@nodelib/fs.scandir': 2.1.5 + fastq: 1.15.0 + dev: true + + /@pkgjs/parseargs@0.11.0: + resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} + engines: {node: '>=14'} + requiresBuild: true + dev: true + optional: true + + /@react-spring/animated@9.7.3(react@17.0.2): + resolution: {integrity: sha512-5CWeNJt9pNgyvuSzQH+uy2pvTg8Y4/OisoscZIR8/ZNLIOI+CatFBhGZpDGTF/OzdNFsAoGk3wiUYTwoJ0YIvw==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + dependencies: + '@react-spring/shared': 9.7.3(react@17.0.2) + '@react-spring/types': 9.7.3 + react: 17.0.2 + dev: false + + /@react-spring/core@9.7.3(react@17.0.2): + resolution: {integrity: sha512-IqFdPVf3ZOC1Cx7+M0cXf4odNLxDC+n7IN3MDcVCTIOSBfqEcBebSv+vlY5AhM0zw05PDbjKrNmBpzv/AqpjnQ==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + dependencies: + '@react-spring/animated': 9.7.3(react@17.0.2) + '@react-spring/shared': 9.7.3(react@17.0.2) + '@react-spring/types': 9.7.3 + react: 17.0.2 + dev: false + + /@react-spring/shared@9.7.3(react@17.0.2): + resolution: {integrity: sha512-NEopD+9S5xYyQ0pGtioacLhL2luflh6HACSSDUZOwLHoxA5eku1UPuqcJqjwSD6luKjjLfiLOspxo43FUHKKSA==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + dependencies: + '@react-spring/types': 9.7.3 + react: 17.0.2 + dev: false + + /@react-spring/types@9.7.3: + resolution: {integrity: sha512-Kpx/fQ/ZFX31OtlqVEFfgaD1ACzul4NksrvIgYfIFq9JpDHFwQkMVZ10tbo0FU/grje4rcL4EIrjekl3kYwgWw==} + dev: false + + /@react-spring/web@9.7.3(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-BXt6BpS9aJL/QdVqEIX9YoUy8CE6TJrU0mNCqSoxdXlIeNcEBWOfIyE6B14ENNsyQKS3wOWkiJfco0tCr/9tUg==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 + dependencies: + '@react-spring/animated': 9.7.3(react@17.0.2) + '@react-spring/core': 9.7.3(react@17.0.2) + '@react-spring/shared': 9.7.3(react@17.0.2) + '@react-spring/types': 9.7.3 + react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + dev: false + + /@rollup/plugin-babel@5.3.1(@babel/core@7.22.11)(rollup@2.79.1): + resolution: {integrity: sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q==} + engines: {node: '>= 10.0.0'} + peerDependencies: + '@babel/core': ^7.0.0 + '@types/babel__core': ^7.1.9 + rollup: ^1.20.0||^2.0.0 + peerDependenciesMeta: + '@types/babel__core': + optional: true + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-module-imports': 7.22.5 + '@rollup/pluginutils': 3.1.0(rollup@2.79.1) + rollup: 2.79.1 + dev: true + + /@rollup/plugin-node-resolve@11.2.1(rollup@2.79.1): + resolution: {integrity: sha512-yc2n43jcqVyGE2sqV5/YCmocy9ArjVAP/BeXyTtADTBBX6V0e5UMqwO8CdQ0kzjb6zu5P1qMzsScCMRvE9OlVg==} + engines: {node: '>= 10.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0 + dependencies: + '@rollup/pluginutils': 3.1.0(rollup@2.79.1) + '@types/resolve': 1.17.1 + builtin-modules: 3.3.0 + deepmerge: 4.3.1 + is-module: 1.0.0 + resolve: 1.22.4 + rollup: 2.79.1 + dev: true + + /@rollup/plugin-replace@2.4.2(rollup@2.79.1): + resolution: {integrity: sha512-IGcu+cydlUMZ5En85jxHH4qj2hta/11BHq95iHEyb2sbgiN0eCdzvUcHw5gt9pBL5lTi4JDYJ1acCoMGpTvEZg==} + peerDependencies: + rollup: ^1.20.0 || ^2.0.0 + dependencies: + '@rollup/pluginutils': 3.1.0(rollup@2.79.1) + magic-string: 0.25.9 + rollup: 2.79.1 + dev: true + + /@rollup/pluginutils@3.1.0(rollup@2.79.1): + resolution: {integrity: sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==} + engines: {node: '>= 8.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0 + dependencies: + '@types/estree': 0.0.39 + estree-walker: 1.0.1 + picomatch: 2.3.1 + rollup: 2.79.1 + dev: true + + /@scure/base@1.1.3: + resolution: {integrity: sha512-/+SgoRjLq7Xlf0CWuLHq2LUZeL/w65kfzAPG5NH9pcmBhs+nunQTn4gvdwgMTIXnt9b2C/1SeL2XiysZEyIC9Q==} + dev: false + + /@scure/bip39@1.2.1: + resolution: {integrity: sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==} + dependencies: + '@noble/hashes': 1.3.2 + '@scure/base': 1.1.3 + dev: false + + /@sozialhelden/ietf-language-tags@5.4.2: + resolution: {integrity: sha512-aCN7bVOfX9sBN0EHyWJT14H8bx+VYBo8tdcynai35wgoxKMfVtgEECkQ1gs8nEL6GHGes8lPIfo6AjIch44N3w==} + dependencies: + lodash.compact: 3.0.1 + typescript: 4.9.5 + dev: false + + /@surma/rollup-plugin-off-main-thread@2.2.3: + resolution: {integrity: sha512-lR8q/9W7hZpMWweNiAKU7NQerBnzQQLvi8qnTDU/fxItPhtZVMbPV3lbCwjhIlNBe9Bbr5V+KHshvWmVSG9cxQ==} + dependencies: + ejs: 3.1.9 + json5: 2.2.3 + magic-string: 0.25.9 + string.prototype.matchall: 4.0.9 + dev: true + + /@tootallnate/once@2.0.0: + resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==} + engines: {node: '>= 10'} + dev: true + + /@types/chai-subset@1.3.3: + resolution: {integrity: sha512-frBecisrNGz+F4T6bcc+NLeolfiojh5FxW2klu669+8BARtyQv2C/GkNW6FUodVe4BroGMP/wER/YDGc7rEllw==} + dependencies: + '@types/chai': 4.3.5 + dev: true + + /@types/chai@4.3.5: + resolution: {integrity: sha512-mEo1sAde+UCE6b2hxn332f1g1E8WfYRu6p5SvTKr2ZKC1f7gFJXk4h5PyGP9Dt6gCaG8y8XhwnXWC6Iy2cmBng==} + dev: true + + /@types/chrome@0.0.244: + resolution: {integrity: sha512-pC8kBWuUqGhG6S5d3E44a2f1TA2XHX/sXfCIrrDpA4K65Ozzw3mYQjuvMOTdSUCx4HjJhp4zuZh6fKOH3UdA1g==} + dependencies: + '@types/filesystem': 0.0.32 + '@types/har-format': 1.2.12 + dev: true + + /@types/chromecast-caf-sender@1.0.5: + resolution: {integrity: sha512-8d6RRCOYYiKzDyFJKAYKOp7Eo0kUfj9imnLQj0uuh/QGSz8euL9OOeKmh8XizqTcKW5tXva6li0mRYtnvzVIcA==} + dependencies: + '@types/chrome': 0.0.244 + dev: true + + /@types/crypto-js@4.1.1: + resolution: {integrity: sha512-BG7fQKZ689HIoc5h+6D2Dgq1fABRa0RbBWKBd9SP/MVRVXROflpm5fhwyATX5duFmbStzyzyycPB8qUYKDH3NA==} + dev: true + + /@types/dompurify@2.4.0: + resolution: {integrity: sha512-IDBwO5IZhrKvHFUl+clZxgf3hn2b/lU6H1KaBShPkQyGJUQ0xwebezIPSuiyGwfz1UzJWQl4M7BDxtHtCCPlTg==} + dependencies: + '@types/trusted-types': 2.0.3 + dev: true + + /@types/estree@0.0.39: + resolution: {integrity: sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==} + dev: true + + /@types/filesystem@0.0.32: + resolution: {integrity: sha512-Yuf4jR5YYMR2DVgwuCiP11s0xuVRyPKmz8vo6HBY3CGdeMj8af93CFZX+T82+VD1+UqHOxTq31lO7MI7lepBtQ==} + dependencies: + '@types/filewriter': 0.0.29 + dev: true + + /@types/filewriter@0.0.29: + resolution: {integrity: sha512-BsPXH/irW0ht0Ji6iw/jJaK8Lj3FJemon2gvEqHKpCdDCeemHa+rI3WBGq5z7cDMZgoLjY40oninGxqk+8NzNQ==} + dev: true + + /@types/fscreen@1.0.1: + resolution: {integrity: sha512-hV2d0BreihMGtrg+EdAFOIl/O2EL5vhAheHJUztGE/lPFZIN8ZCpGFL8hCbtyi1CfhKjDRCf47sHjP+FwJ4q0Q==} + dev: true + + /@types/har-format@1.2.12: + resolution: {integrity: sha512-P20p/YBrqUBmzD6KhIQ8EiY4/RRzlekL4eCvfQnulFPfjmiGxKIoyCeI7qam5I7oKH3P8EU4ptEi0EfyGoLysw==} + dev: true + + /@types/history@4.7.11: + resolution: {integrity: sha512-qjDJRrmvBMiTx+jyLxvLfJU7UznFuokDv4f3WRuriHKERccVpFU+8XMQUAbDzoiJCsmexxRExQeMwwCdamSKDA==} + dev: true + + /@types/js-cookie@2.2.7: + resolution: {integrity: sha512-aLkWa0C0vO5b4Sr798E26QgOkss68Un0bLjs7u9qxzPT5CG+8DuNTffWES58YzJs3hrVAOs1wonycqEBqNJubA==} + dev: false + + /@types/json-schema@7.0.12: + resolution: {integrity: sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==} + dev: true + + /@types/json5@0.0.29: + resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==} + dev: true + + /@types/lodash.isequal@4.5.8: + resolution: {integrity: sha512-uput6pg4E/tj2LGxCZo9+y27JNyB2OZuuI/T5F+ylVDYuqICLG2/ktjxx0v6GvVntAf8TvEzeQLcV0ffRirXuA==} + dependencies: + '@types/lodash': 4.14.197 + dev: true + + /@types/lodash.throttle@4.1.7: + resolution: {integrity: sha512-znwGDpjCHQ4FpLLx19w4OXDqq8+OvREa05H89obtSyXyOFKL3dDjCslsmfBz0T2FU8dmf5Wx1QvogbINiGIu9g==} + dependencies: + '@types/lodash': 4.14.197 + dev: true + + /@types/lodash@4.14.197: + resolution: {integrity: sha512-BMVOiWs0uNxHVlHBgzTIqJYmj+PgCo4euloGF+5m4okL3rEYzM2EEv78mw8zWSMM57dM7kVIgJ2QDvwHSoCI5g==} + dev: true + + /@types/node-forge@1.3.8: + resolution: {integrity: sha512-vGXshY9vim9CJjrpcS5raqSjEfKlJcWy2HNdgUasR66fAnVEYarrf1ULV4nfvpC1nZq/moA9qyqBcu83x+Jlrg==} + dependencies: + '@types/node': 17.0.45 + dev: false + + /@types/node@17.0.45: + resolution: {integrity: sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==} + + /@types/pako@2.0.0: + resolution: {integrity: sha512-10+iaz93qR5WYxTo+PMifD5TSxiOtdRaxBf7INGGXMQgTCu8Z/7GYWYFUOS3q/G0nE5boj1r4FEB+WSy7s5gbA==} + dev: true + + /@types/prop-types@15.7.5: + resolution: {integrity: sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==} + + /@types/react-dom@17.0.20: + resolution: {integrity: sha512-4pzIjSxDueZZ90F52mU3aPoogkHIoSIDG+oQ+wQK7Cy2B9S+MvOqY0uEA/qawKz381qrEDkvpwyt8Bm31I8sbA==} + dependencies: + '@types/react': 17.0.65 + dev: true + + /@types/react-helmet@6.1.6: + resolution: {integrity: sha512-ZKcoOdW/Tg+kiUbkFCBtvDw0k3nD4HJ/h/B9yWxN4uDO8OkRksWTO+EL+z/Qu3aHTeTll3Ro0Cc/8UhwBCMG5A==} + dependencies: + '@types/react': 17.0.65 + dev: true + + /@types/react-router-dom@5.3.3: + resolution: {integrity: sha512-kpqnYK4wcdm5UaWI3fLcELopqLrHgLqNsdpHauzlQktfkHL3npOSwtj1Uz9oKBAzs7lFtVkV8j83voAz2D8fhw==} + dependencies: + '@types/history': 4.7.11 + '@types/react': 17.0.65 + '@types/react-router': 5.1.20 + dev: true + + /@types/react-router@5.1.20: + resolution: {integrity: sha512-jGjmu/ZqS7FjSH6owMcD5qpq19+1RS9DeVRqfl1FeBMxTDQAGwlMWOcs52NDoXaNKyG3d1cYQFMs9rCrb88o9Q==} + dependencies: + '@types/history': 4.7.11 + '@types/react': 17.0.65 + dev: true + + /@types/react-stickynode@4.0.0: + resolution: {integrity: sha512-PKkmOzF6WCNuyIKrvhidGeUPLfe8htPwfEljKnQBF4bA5v74ADvXtwkjavOH8i6aCSw9J14AyDDl1Ul0VNQJUg==} + dependencies: + '@types/react': 17.0.65 + dev: true + + /@types/react-transition-group@4.4.6: + resolution: {integrity: sha512-VnCdSxfcm08KjsJVQcfBmhEQAPnLB8G08hAxn39azX1qYBQ/5RVQuoHuKIcfKOdncuaUvEpFKFzEvbtIMsfVew==} + dependencies: + '@types/react': 17.0.65 + dev: true + + /@types/react@17.0.65: + resolution: {integrity: sha512-oxur785xZYHvnI7TRS61dXbkIhDPnGfsXKv0cNXR/0ml4SipRIFpSMzA7HMEfOywFwJ5AOnPrXYTEiTRUQeGlQ==} + dependencies: + '@types/prop-types': 15.7.5 + '@types/scheduler': 0.16.3 + csstype: 3.1.2 + + /@types/resolve@1.17.1: + resolution: {integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==} + dependencies: + '@types/node': 17.0.45 + dev: true + + /@types/scheduler@0.16.3: + resolution: {integrity: sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==} + + /@types/semver@7.5.1: + resolution: {integrity: sha512-cJRQXpObxfNKkFAZbJl2yjWtJCqELQIdShsogr1d2MilP8dKD9TE/nEKHkJgUNHdGKCQaf9HbIynuV2csLGVLg==} + dev: true + + /@types/trusted-types@2.0.3: + resolution: {integrity: sha512-NfQ4gyz38SL8sDNrSixxU2Os1a5xcdFxipAFxYEuLUlvU2uDwS4NUpsImcf1//SlWItCVMMLiylsxbmNMToV/g==} + dev: true + + /@typescript-eslint/eslint-plugin@5.62.0(@typescript-eslint/parser@5.62.0)(eslint@8.48.0)(typescript@4.9.5): + resolution: {integrity: sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + '@typescript-eslint/parser': ^5.0.0 + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@eslint-community/regexpp': 4.8.0 + '@typescript-eslint/parser': 5.62.0(eslint@8.48.0)(typescript@4.9.5) + '@typescript-eslint/scope-manager': 5.62.0 + '@typescript-eslint/type-utils': 5.62.0(eslint@8.48.0)(typescript@4.9.5) + '@typescript-eslint/utils': 5.62.0(eslint@8.48.0)(typescript@4.9.5) + debug: 4.3.4 + eslint: 8.48.0 + graphemer: 1.4.0 + ignore: 5.2.4 + natural-compare-lite: 1.4.0 + semver: 7.5.4 + tsutils: 3.21.0(typescript@4.9.5) + typescript: 4.9.5 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/parser@5.62.0(eslint@8.48.0)(typescript@4.9.5): + resolution: {integrity: sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/scope-manager': 5.62.0 + '@typescript-eslint/types': 5.62.0 + '@typescript-eslint/typescript-estree': 5.62.0(typescript@4.9.5) + debug: 4.3.4 + eslint: 8.48.0 + typescript: 4.9.5 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/scope-manager@5.62.0: + resolution: {integrity: sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + '@typescript-eslint/types': 5.62.0 + '@typescript-eslint/visitor-keys': 5.62.0 + dev: true + + /@typescript-eslint/type-utils@5.62.0(eslint@8.48.0)(typescript@4.9.5): + resolution: {integrity: sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: '*' + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/typescript-estree': 5.62.0(typescript@4.9.5) + '@typescript-eslint/utils': 5.62.0(eslint@8.48.0)(typescript@4.9.5) + debug: 4.3.4 + eslint: 8.48.0 + tsutils: 3.21.0(typescript@4.9.5) + typescript: 4.9.5 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/types@5.62.0: + resolution: {integrity: sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dev: true + + /@typescript-eslint/typescript-estree@5.62.0(typescript@4.9.5): + resolution: {integrity: sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/types': 5.62.0 + '@typescript-eslint/visitor-keys': 5.62.0 + debug: 4.3.4 + globby: 11.1.0 + is-glob: 4.0.3 + semver: 7.5.4 + tsutils: 3.21.0(typescript@4.9.5) + typescript: 4.9.5 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/utils@5.62.0(eslint@8.48.0)(typescript@4.9.5): + resolution: {integrity: sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.48.0) + '@types/json-schema': 7.0.12 + '@types/semver': 7.5.1 + '@typescript-eslint/scope-manager': 5.62.0 + '@typescript-eslint/types': 5.62.0 + '@typescript-eslint/typescript-estree': 5.62.0(typescript@4.9.5) + eslint: 8.48.0 + eslint-scope: 5.1.1 + semver: 7.5.4 + transitivePeerDependencies: + - supports-color + - typescript + dev: true + + /@typescript-eslint/visitor-keys@5.62.0: + resolution: {integrity: sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + '@typescript-eslint/types': 5.62.0 + eslint-visitor-keys: 3.4.3 + dev: true + + /@vitejs/plugin-react@3.1.0(vite@4.4.12): + resolution: {integrity: sha512-AfgcRL8ZBhAlc3BFdigClmTUMISmmzHn7sB2h9U1odvc5U/MjWXsAaz18b/WoppUTDBzxOJwo2VdClfUcItu9g==} + engines: {node: ^14.18.0 || >=16.0.0} + peerDependencies: + vite: ^4.1.0-beta.0 + dependencies: + '@babel/core': 7.22.11 + '@babel/plugin-transform-react-jsx-self': 7.22.5(@babel/core@7.22.11) + '@babel/plugin-transform-react-jsx-source': 7.22.5(@babel/core@7.22.11) + magic-string: 0.27.0 + react-refresh: 0.14.0 + vite: 4.4.12(@types/node@17.0.45) + transitivePeerDependencies: + - supports-color + dev: true + + /@vitest/expect@0.28.5: + resolution: {integrity: sha512-gqTZwoUTwepwGIatnw4UKpQfnoyV0Z9Czn9+Lo2/jLIt4/AXLTn+oVZxlQ7Ng8bzcNkR+3DqLJ08kNr8jRmdNQ==} + dependencies: + '@vitest/spy': 0.28.5 + '@vitest/utils': 0.28.5 + chai: 4.3.8 + dev: true + + /@vitest/runner@0.28.5: + resolution: {integrity: sha512-NKkHtLB+FGjpp5KmneQjTcPLWPTDfB7ie+MmF1PnUBf/tGe2OjGxWyB62ySYZ25EYp9krR5Bw0YPLS/VWh1QiA==} + dependencies: + '@vitest/utils': 0.28.5 + p-limit: 4.0.0 + pathe: 1.1.1 + dev: true + + /@vitest/spy@0.28.5: + resolution: {integrity: sha512-7if6rsHQr9zbmvxN7h+gGh2L9eIIErgf8nSKYDlg07HHimCxp4H6I/X/DPXktVPPLQfiZ1Cw2cbDIx9fSqDjGw==} + dependencies: + tinyspy: 1.1.1 + dev: true + + /@vitest/utils@0.28.5: + resolution: {integrity: sha512-UyZdYwdULlOa4LTUSwZ+Paz7nBHGTT72jKwdFSV4IjHF1xsokp+CabMdhjvVhYwkLfO88ylJT46YMilnkSARZA==} + dependencies: + cli-truncate: 3.1.0 + diff: 5.1.0 + loupe: 2.3.6 + picocolors: 1.0.0 + pretty-format: 27.5.1 + dev: true + + /@xobotyi/scrollbar-width@1.9.5: + resolution: {integrity: sha512-N8tkAACJx2ww8vFMneJmaAgmjAG1tnVBZJRLRcx061tmsLRZHSEZSLuGWnwPtunsSLvSqXQ2wfp7Mgqg1I+2dQ==} + dev: false + + /abab@2.0.6: + resolution: {integrity: sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==} + dev: true + + /acorn-globals@7.0.1: + resolution: {integrity: sha512-umOSDSDrfHbTNPuNpC2NSnnA3LUrqpevPb4T9jRx4MagXNS0rs+gwiTcAvqCRmsD6utzsrzNt+ebm00SNWiC3Q==} + dependencies: + acorn: 8.10.0 + acorn-walk: 8.2.0 + dev: true + + /acorn-jsx@5.3.2(acorn@8.10.0): + resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} + peerDependencies: + acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 + dependencies: + acorn: 8.10.0 + dev: true + + /acorn-walk@8.2.0: + resolution: {integrity: sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==} + engines: {node: '>=0.4.0'} + dev: true + + /acorn@8.10.0: + resolution: {integrity: sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==} + engines: {node: '>=0.4.0'} + hasBin: true + dev: true + + /agent-base@6.0.2: + resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==} + engines: {node: '>= 6.0.0'} + dependencies: + debug: 4.3.4 + transitivePeerDependencies: + - supports-color + dev: true + + /ajv@6.12.6: + resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} + dependencies: + fast-deep-equal: 3.1.3 + fast-json-stable-stringify: 2.1.0 + json-schema-traverse: 0.4.1 + uri-js: 4.4.1 + dev: true + + /ajv@8.12.0: + resolution: {integrity: sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==} + dependencies: + fast-deep-equal: 3.1.3 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + uri-js: 4.4.1 + dev: true + + /ansi-escapes@4.3.2: + resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==} + engines: {node: '>=8'} + dependencies: + type-fest: 0.21.3 + dev: true + + /ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + dev: true + + /ansi-regex@6.0.1: + resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} + engines: {node: '>=12'} + dev: true + + /ansi-styles@3.2.1: + resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} + engines: {node: '>=4'} + dependencies: + color-convert: 1.9.3 + dev: true + + /ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + dependencies: + color-convert: 2.0.1 + dev: true + + /ansi-styles@5.2.0: + resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} + engines: {node: '>=10'} + dev: true + + /ansi-styles@6.2.1: + resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} + engines: {node: '>=12'} + dev: true + + /any-promise@1.3.0: + resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==} + dev: true + + /anymatch@3.1.3: + resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} + engines: {node: '>= 8'} + dependencies: + normalize-path: 3.0.0 + picomatch: 2.3.1 + dev: true + + /arg@5.0.2: + resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==} + dev: true + + /argparse@2.0.1: + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + dev: true + + /aria-query@5.3.0: + resolution: {integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==} + dependencies: + dequal: 2.0.3 + dev: true + + /array-buffer-byte-length@1.0.0: + resolution: {integrity: sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==} + dependencies: + call-bind: 1.0.2 + is-array-buffer: 3.0.2 + dev: true + + /array-includes@3.1.6: + resolution: {integrity: sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.0 + es-abstract: 1.22.1 + get-intrinsic: 1.2.1 + is-string: 1.0.7 + dev: true + + /array-union@2.1.0: + resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} + engines: {node: '>=8'} + dev: true + + /array.prototype.findlastindex@1.2.3: + resolution: {integrity: sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.0 + es-abstract: 1.22.1 + es-shim-unscopables: 1.0.0 + get-intrinsic: 1.2.1 + dev: true + + /array.prototype.flat@1.3.1: + resolution: {integrity: sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.0 + es-abstract: 1.22.1 + es-shim-unscopables: 1.0.0 + dev: true + + /array.prototype.flatmap@1.3.1: + resolution: {integrity: sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.0 + es-abstract: 1.22.1 + es-shim-unscopables: 1.0.0 + dev: true + + /arraybuffer.prototype.slice@1.0.1: + resolution: {integrity: sha512-09x0ZWFEjj4WD8PDbykUwo3t9arLn8NIzmmYEJFpYekOAQjpkGSyrQhNoRTcwwcFRu+ycWF78QZ63oWTqSjBcw==} + engines: {node: '>= 0.4'} + dependencies: + array-buffer-byte-length: 1.0.0 + call-bind: 1.0.2 + define-properties: 1.2.0 + get-intrinsic: 1.2.1 + is-array-buffer: 3.0.2 + is-shared-array-buffer: 1.0.2 + dev: true + + /assertion-error@1.1.0: + resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==} + dev: true + + /ast-types-flow@0.0.7: + resolution: {integrity: sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==} + dev: true + + /async@3.2.4: + resolution: {integrity: sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==} + dev: true + + /asynckit@0.4.0: + resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} + + /at-least-node@1.0.0: + resolution: {integrity: sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==} + engines: {node: '>= 4.0.0'} + dev: true + + /autoprefixer@10.4.15(postcss@8.4.31): + resolution: {integrity: sha512-KCuPB8ZCIqFdA4HwKXsvz7j6gvSDNhDP7WnUjBleRkKjPdvCmHFuQ77ocavI8FT6NdvlBnE2UFr2H4Mycn8Vew==} + engines: {node: ^10 || ^12 || >=14} + hasBin: true + peerDependencies: + postcss: '>=8.4.31' + dependencies: + browserslist: 4.21.10 + caniuse-lite: 1.0.30001525 + fraction.js: 4.3.5 + normalize-range: 0.1.2 + picocolors: 1.0.0 + postcss: 8.4.31 + postcss-value-parser: 4.2.0 + dev: true + + /available-typed-arrays@1.0.5: + resolution: {integrity: sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==} + engines: {node: '>= 0.4'} + dev: true + + /axe-core@4.7.2: + resolution: {integrity: sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g==} + engines: {node: '>=4'} + dev: true + + /axobject-query@3.2.1: + resolution: {integrity: sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==} + dependencies: + dequal: 2.0.3 + dev: true + + /babel-plugin-polyfill-corejs2@0.4.5(@babel/core@7.22.11): + resolution: {integrity: sha512-19hwUH5FKl49JEsvyTcoHakh6BE0wgXLLptIyKZ3PijHc/Ci521wygORCUCCred+E/twuqRyAkE02BAWPmsHOg==} + peerDependencies: + '@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0 + dependencies: + '@babel/compat-data': 7.22.9 + '@babel/core': 7.22.11 + '@babel/helper-define-polyfill-provider': 0.4.2(@babel/core@7.22.11) + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + dev: true + + /babel-plugin-polyfill-corejs3@0.8.3(@babel/core@7.22.11): + resolution: {integrity: sha512-z41XaniZL26WLrvjy7soabMXrfPWARN25PZoriDEiLMxAp50AUW3t35BGQUMg5xK3UrpVTtagIDklxYa+MhiNA==} + peerDependencies: + '@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-define-polyfill-provider': 0.4.2(@babel/core@7.22.11) + core-js-compat: 3.32.1 + transitivePeerDependencies: + - supports-color + dev: true + + /babel-plugin-polyfill-regenerator@0.5.2(@babel/core@7.22.11): + resolution: {integrity: sha512-tAlOptU0Xj34V1Y2PNTL4Y0FOJMDB6bZmoW39FeCQIhigGLkqu3Fj6uiXpxIf6Ij274ENdYx64y6Au+ZKlb1IA==} + peerDependencies: + '@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0 + dependencies: + '@babel/core': 7.22.11 + '@babel/helper-define-polyfill-provider': 0.4.2(@babel/core@7.22.11) + transitivePeerDependencies: + - supports-color + dev: true + + /balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + dev: true + + /binary-extensions@2.2.0: + resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} + engines: {node: '>=8'} + dev: true + + /boolbase@1.0.0: + resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==} + dev: false + + /brace-expansion@1.1.11: + resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} + dependencies: + balanced-match: 1.0.2 + concat-map: 0.0.1 + dev: true + + /brace-expansion@2.0.1: + resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} + dependencies: + balanced-match: 1.0.2 + dev: true + + /braces@3.0.2: + resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} + engines: {node: '>=8'} + dependencies: + fill-range: 7.0.1 + dev: true + + /browserslist@4.21.10: + resolution: {integrity: sha512-bipEBdZfVH5/pwrvqc+Ub0kUPVfGUhlKxbvfD+z1BDnPEO/X98ruXGA1WP5ASpAFKan7Qr6j736IacbZQuAlKQ==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + dependencies: + caniuse-lite: 1.0.30001525 + electron-to-chromium: 1.4.508 + node-releases: 2.0.13 + update-browserslist-db: 1.0.11(browserslist@4.21.10) + dev: true + + /buffer-from@1.1.2: + resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} + dev: true + + /builtin-modules@3.3.0: + resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==} + engines: {node: '>=6'} + dev: true + + /cac@6.7.14: + resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} + engines: {node: '>=8'} + dev: true + + /call-bind@1.0.2: + resolution: {integrity: sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==} + dependencies: + function-bind: 1.1.1 + get-intrinsic: 1.2.1 + dev: true + + /callsites@3.1.0: + resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} + engines: {node: '>=6'} + dev: true + + /camelcase-css@2.0.1: + resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==} + engines: {node: '>= 6'} + dev: true + + /caniuse-lite@1.0.30001525: + resolution: {integrity: sha512-/3z+wB4icFt3r0USMwxujAqRvaD/B7rvGTsKhbhSQErVrJvkZCLhgNLJxU8MevahQVH6hCU9FsHdNUFbiwmE7Q==} + dev: true + + /chai@4.3.8: + resolution: {integrity: sha512-vX4YvVVtxlfSZ2VecZgFUTU5qPCYsobVI2O9FmwEXBhDigYGQA6jRXCycIs1yJnnWbZ6/+a2zNIF5DfVCcJBFQ==} + engines: {node: '>=4'} + dependencies: + assertion-error: 1.1.0 + check-error: 1.0.2 + deep-eql: 4.1.3 + get-func-name: 3.0.0 + loupe: 2.3.6 + pathval: 1.1.1 + type-detect: 4.0.8 + dev: true + + /chalk@2.4.2: + resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} + engines: {node: '>=4'} + dependencies: + ansi-styles: 3.2.1 + escape-string-regexp: 1.0.5 + supports-color: 5.5.0 + dev: true + + /chalk@4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} + engines: {node: '>=10'} + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + dev: true + + /check-error@1.0.2: + resolution: {integrity: sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA==} + dev: true + + /cheerio-select@2.1.0: + resolution: {integrity: sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==} + dependencies: + boolbase: 1.0.0 + css-select: 5.1.0 + css-what: 6.1.0 + domelementtype: 2.3.0 + domhandler: 5.0.3 + domutils: 3.1.0 + dev: false + + /cheerio@1.0.0-rc.12: + resolution: {integrity: sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==} + engines: {node: '>= 6'} + dependencies: + cheerio-select: 2.1.0 + dom-serializer: 2.0.0 + domhandler: 5.0.3 + domutils: 3.1.0 + htmlparser2: 8.0.2 + parse5: 7.1.2 + parse5-htmlparser2-tree-adapter: 7.0.0 + dev: false + + /chokidar@3.5.3: + resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==} + engines: {node: '>= 8.10.0'} + dependencies: + anymatch: 3.1.3 + braces: 3.0.2 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.6.0 + optionalDependencies: + fsevents: 2.3.3 + dev: true + + /classnames@2.3.2: + resolution: {integrity: sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==} + dev: false + + /cli-truncate@3.1.0: + resolution: {integrity: sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + slice-ansi: 5.0.0 + string-width: 5.1.2 + dev: true + + /client-only@0.0.1: + resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==} + dev: false + + /color-convert@1.9.3: + resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} + dependencies: + color-name: 1.1.3 + dev: true + + /color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + dependencies: + color-name: 1.1.4 + dev: true + + /color-name@1.1.3: + resolution: {integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==} + dev: true + + /color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + dev: true + + /color-string@1.9.1: + resolution: {integrity: sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==} + dependencies: + color-name: 1.1.4 + simple-swizzle: 0.2.2 + dev: true + + /color@4.2.3: + resolution: {integrity: sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==} + engines: {node: '>=12.5.0'} + dependencies: + color-convert: 2.0.1 + color-string: 1.9.1 + dev: true + + /combined-stream@1.0.8: + resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} + engines: {node: '>= 0.8'} + dependencies: + delayed-stream: 1.0.0 + + /commander@2.20.3: + resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} + dev: true + + /commander@4.1.1: + resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} + engines: {node: '>= 6'} + dev: true + + /commander@8.3.0: + resolution: {integrity: sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==} + engines: {node: '>= 12'} + dev: true + + /common-tags@1.8.2: + resolution: {integrity: sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==} + engines: {node: '>=4.0.0'} + dev: true + + /concat-map@0.0.1: + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + dev: true + + /confusing-browser-globals@1.0.11: + resolution: {integrity: sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==} + dev: true + + /convert-source-map@1.9.0: + resolution: {integrity: sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==} + dev: true + + /copy-to-clipboard@3.3.3: + resolution: {integrity: sha512-2KV8NhB5JqC3ky0r9PMCAZKbUHSwtEo4CwCs0KXgruG43gX5PMqDEBbVU4OUzw2MuAWUfsuFmWvEKG5QRfSnJA==} + dependencies: + toggle-selection: 1.0.6 + dev: false + + /core-js-compat@3.32.1: + resolution: {integrity: sha512-GSvKDv4wE0bPnQtjklV101juQ85g6H3rm5PDP20mqlS5j0kXF3pP97YvAu5hl+uFHqMictp3b2VxOHljWMAtuA==} + dependencies: + browserslist: 4.21.10 + dev: true + + /core-js@3.32.1: + resolution: {integrity: sha512-lqufgNn9NLnESg5mQeYsxQP5w7wrViSj0jr/kv6ECQiByzQkrn1MKvV0L3acttpDqfQrHLwr2KCMgX5b8X+lyQ==} + requiresBuild: true + dev: false + + /cross-env@7.0.3: + resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==} + engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'} + hasBin: true + dependencies: + cross-spawn: 7.0.3 + dev: true + + /cross-spawn@7.0.3: + resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + engines: {node: '>= 8'} + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + dev: true + + /crypto-js@4.2.0: + resolution: {integrity: sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==} + dev: false + + /crypto-random-string@2.0.0: + resolution: {integrity: sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==} + engines: {node: '>=8'} + dev: true + + /css-in-js-utils@3.1.0: + resolution: {integrity: sha512-fJAcud6B3rRu+KHYk+Bwf+WFL2MDCJJ1XG9x137tJQ0xYxor7XziQtuGFbWNdqrvF4Tk26O3H73nfVqXt/fW1A==} + dependencies: + hyphenate-style-name: 1.0.4 + dev: false + + /css-select@5.1.0: + resolution: {integrity: sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==} + dependencies: + boolbase: 1.0.0 + css-what: 6.1.0 + domhandler: 5.0.3 + domutils: 3.1.0 + nth-check: 2.1.1 + dev: false + + /css-tree@1.1.3: + resolution: {integrity: sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==} + engines: {node: '>=8.0.0'} + dependencies: + mdn-data: 2.0.14 + source-map: 0.6.1 + dev: false + + /css-what@6.1.0: + resolution: {integrity: sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==} + engines: {node: '>= 6'} + dev: false + + /cssesc@3.0.0: + resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==} + engines: {node: '>=4'} + hasBin: true + dev: true + + /cssstyle@3.0.0: + resolution: {integrity: sha512-N4u2ABATi3Qplzf0hWbVCdjenim8F3ojEXpBDF5hBpjzW182MjNGLqfmQ0SkSPeQ+V86ZXgeH8aXj6kayd4jgg==} + engines: {node: '>=14'} + dependencies: + rrweb-cssom: 0.6.0 + dev: true + + /csstype@3.1.2: + resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==} + + /damerau-levenshtein@1.0.8: + resolution: {integrity: sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==} + dev: true + + /data-urls@4.0.0: + resolution: {integrity: sha512-/mMTei/JXPqvFqQtfyTowxmJVwr2PVAeCcDxyFf6LhoOu/09TX2OX3kb2wzi4DMXcfj4OItwDOnhl5oziPnT6g==} + engines: {node: '>=14'} + dependencies: + abab: 2.0.6 + whatwg-mimetype: 3.0.0 + whatwg-url: 12.0.1 + dev: true + + /debug@3.2.7: + resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.1.3 + dev: true + + /debug@4.3.4: + resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.1.2 + dev: true + + /decimal.js@10.4.3: + resolution: {integrity: sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==} + dev: true + + /deep-eql@4.1.3: + resolution: {integrity: sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==} + engines: {node: '>=6'} + dependencies: + type-detect: 4.0.8 + dev: true + + /deep-is@0.1.4: + resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} + dev: true + + /deepmerge@4.3.1: + resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} + engines: {node: '>=0.10.0'} + dev: true + + /define-properties@1.2.0: + resolution: {integrity: sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==} + engines: {node: '>= 0.4'} + dependencies: + has-property-descriptors: 1.0.0 + object-keys: 1.1.1 + dev: true + + /delayed-stream@1.0.0: + resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} + engines: {node: '>=0.4.0'} + + /dequal@2.0.3: + resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} + engines: {node: '>=6'} + dev: true + + /destr@2.0.1: + resolution: {integrity: sha512-M1Ob1zPSIvlARiJUkKqvAZ3VAqQY6Jcuth/pBKQ2b1dX/Qx0OnJ8Vux6J2H5PTMQeRzWrrbTu70VxBfv/OPDJA==} + dev: false + + /didyoumean@1.2.2: + resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==} + dev: true + + /diff@5.1.0: + resolution: {integrity: sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==} + engines: {node: '>=0.3.1'} + dev: true + + /dir-glob@3.0.1: + resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} + engines: {node: '>=8'} + dependencies: + path-type: 4.0.0 + dev: true + + /dlv@1.1.3: + resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==} + dev: true + + /doctrine@2.1.0: + resolution: {integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==} + engines: {node: '>=0.10.0'} + dependencies: + esutils: 2.0.3 + dev: true + + /doctrine@3.0.0: + resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} + engines: {node: '>=6.0.0'} + dependencies: + esutils: 2.0.3 + dev: true + + /dom-serializer@2.0.0: + resolution: {integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==} + dependencies: + domelementtype: 2.3.0 + domhandler: 5.0.3 + entities: 4.5.0 + dev: false + + /domelementtype@2.3.0: + resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==} + dev: false + + /domexception@4.0.0: + resolution: {integrity: sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==} + engines: {node: '>=12'} + dependencies: + webidl-conversions: 7.0.0 + dev: true + + /domhandler@5.0.3: + resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==} + engines: {node: '>= 4'} + dependencies: + domelementtype: 2.3.0 + dev: false + + /dompurify@3.0.5: + resolution: {integrity: sha512-F9e6wPGtY+8KNMRAVfxeCOHU0/NPWMSENNq4pQctuXRqqdEPW7q3CrLbR5Nse044WwacyjHGOMlvNsBe1y6z9A==} + dev: false + + /domutils@3.1.0: + resolution: {integrity: sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==} + dependencies: + dom-serializer: 2.0.0 + domelementtype: 2.3.0 + domhandler: 5.0.3 + dev: false + + /eastasianwidth@0.2.0: + resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} + dev: true + + /ejs@3.1.9: + resolution: {integrity: sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==} + engines: {node: '>=0.10.0'} + hasBin: true + dependencies: + jake: 10.8.7 + dev: true + + /electron-to-chromium@1.4.508: + resolution: {integrity: sha512-FFa8QKjQK/A5QuFr2167myhMesGrhlOBD+3cYNxO9/S4XzHEXesyTD/1/xF644gC8buFPz3ca6G1LOQD0tZrrg==} + dev: true + + /emoji-regex@8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + dev: true + + /emoji-regex@9.2.2: + resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} + dev: true + + /entities@4.5.0: + resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} + engines: {node: '>=0.12'} + + /error-stack-parser@2.1.4: + resolution: {integrity: sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==} + dependencies: + stackframe: 1.3.4 + dev: false + + /es-abstract@1.22.1: + resolution: {integrity: sha512-ioRRcXMO6OFyRpyzV3kE1IIBd4WG5/kltnzdxSCqoP8CMGs/Li+M1uF5o7lOkZVFjDs+NLesthnF66Pg/0q0Lw==} + engines: {node: '>= 0.4'} + dependencies: + array-buffer-byte-length: 1.0.0 + arraybuffer.prototype.slice: 1.0.1 + available-typed-arrays: 1.0.5 + call-bind: 1.0.2 + es-set-tostringtag: 2.0.1 + es-to-primitive: 1.2.1 + function.prototype.name: 1.1.6 + get-intrinsic: 1.2.1 + get-symbol-description: 1.0.0 + globalthis: 1.0.3 + gopd: 1.0.1 + has: 1.0.3 + has-property-descriptors: 1.0.0 + has-proto: 1.0.1 + has-symbols: 1.0.3 + internal-slot: 1.0.5 + is-array-buffer: 3.0.2 + is-callable: 1.2.7 + is-negative-zero: 2.0.2 + is-regex: 1.1.4 + is-shared-array-buffer: 1.0.2 + is-string: 1.0.7 + is-typed-array: 1.1.12 + is-weakref: 1.0.2 + object-inspect: 1.12.3 + object-keys: 1.1.1 + object.assign: 4.1.4 + regexp.prototype.flags: 1.5.0 + safe-array-concat: 1.0.0 + safe-regex-test: 1.0.0 + string.prototype.trim: 1.2.7 + string.prototype.trimend: 1.0.6 + string.prototype.trimstart: 1.0.6 + typed-array-buffer: 1.0.0 + typed-array-byte-length: 1.0.0 + typed-array-byte-offset: 1.0.0 + typed-array-length: 1.0.4 + unbox-primitive: 1.0.2 + which-typed-array: 1.1.11 + dev: true + + /es-set-tostringtag@2.0.1: + resolution: {integrity: sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==} + engines: {node: '>= 0.4'} + dependencies: + get-intrinsic: 1.2.1 + has: 1.0.3 + has-tostringtag: 1.0.0 + dev: true + + /es-shim-unscopables@1.0.0: + resolution: {integrity: sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==} + dependencies: + has: 1.0.3 + dev: true + + /es-to-primitive@1.2.1: + resolution: {integrity: sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==} + engines: {node: '>= 0.4'} + dependencies: + is-callable: 1.2.7 + is-date-object: 1.0.5 + is-symbol: 1.0.4 + dev: true + + /esbuild@0.18.20: + resolution: {integrity: sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==} + engines: {node: '>=12'} + hasBin: true + requiresBuild: true + optionalDependencies: + '@esbuild/android-arm': 0.18.20 + '@esbuild/android-arm64': 0.18.20 + '@esbuild/android-x64': 0.18.20 + '@esbuild/darwin-arm64': 0.18.20 + '@esbuild/darwin-x64': 0.18.20 + '@esbuild/freebsd-arm64': 0.18.20 + '@esbuild/freebsd-x64': 0.18.20 + '@esbuild/linux-arm': 0.18.20 + '@esbuild/linux-arm64': 0.18.20 + '@esbuild/linux-ia32': 0.18.20 + '@esbuild/linux-loong64': 0.18.20 + '@esbuild/linux-mips64el': 0.18.20 + '@esbuild/linux-ppc64': 0.18.20 + '@esbuild/linux-riscv64': 0.18.20 + '@esbuild/linux-s390x': 0.18.20 + '@esbuild/linux-x64': 0.18.20 + '@esbuild/netbsd-x64': 0.18.20 + '@esbuild/openbsd-x64': 0.18.20 + '@esbuild/sunos-x64': 0.18.20 + '@esbuild/win32-arm64': 0.18.20 + '@esbuild/win32-ia32': 0.18.20 + '@esbuild/win32-x64': 0.18.20 + dev: true + + /escalade@3.1.1: + resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} + engines: {node: '>=6'} + dev: true + + /escape-string-regexp@1.0.5: + resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==} + engines: {node: '>=0.8.0'} + dev: true + + /escape-string-regexp@4.0.0: + resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} + engines: {node: '>=10'} + dev: true + + /escodegen@2.1.0: + resolution: {integrity: sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==} + engines: {node: '>=6.0'} + hasBin: true + dependencies: + esprima: 4.0.1 + estraverse: 5.3.0 + esutils: 2.0.3 + optionalDependencies: + source-map: 0.6.1 + dev: true + + /eslint-config-airbnb-base@15.0.0(eslint-plugin-import@2.28.1)(eslint@8.48.0): + resolution: {integrity: sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==} + engines: {node: ^10.12.0 || >=12.0.0} + peerDependencies: + eslint: ^7.32.0 || ^8.2.0 + eslint-plugin-import: ^2.25.2 + dependencies: + confusing-browser-globals: 1.0.11 + eslint: 8.48.0 + eslint-plugin-import: 2.28.1(@typescript-eslint/parser@5.62.0)(eslint-import-resolver-typescript@2.7.1)(eslint@8.48.0) + object.assign: 4.1.4 + object.entries: 1.1.7 + semver: 6.3.1 + dev: true + + /eslint-config-airbnb@19.0.4(eslint-plugin-import@2.28.1)(eslint-plugin-jsx-a11y@6.7.1)(eslint-plugin-react-hooks@4.3.0)(eslint-plugin-react@7.29.4)(eslint@8.48.0): + resolution: {integrity: sha512-T75QYQVQX57jiNgpF9r1KegMICE94VYwoFQyMGhrvc+lB8YF2E/M/PYDaQe1AJcWaEgqLE+ErXV1Og/+6Vyzew==} + engines: {node: ^10.12.0 || ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^7.32.0 || ^8.2.0 + eslint-plugin-import: ^2.25.3 + eslint-plugin-jsx-a11y: ^6.5.1 + eslint-plugin-react: ^7.28.0 + eslint-plugin-react-hooks: ^4.3.0 + dependencies: + eslint: 8.48.0 + eslint-config-airbnb-base: 15.0.0(eslint-plugin-import@2.28.1)(eslint@8.48.0) + eslint-plugin-import: 2.28.1(@typescript-eslint/parser@5.62.0)(eslint-import-resolver-typescript@2.7.1)(eslint@8.48.0) + eslint-plugin-jsx-a11y: 6.7.1(eslint@8.48.0) + eslint-plugin-react: 7.29.4(eslint@8.48.0) + eslint-plugin-react-hooks: 4.3.0(eslint@8.48.0) + object.assign: 4.1.4 + object.entries: 1.1.7 + dev: true + + /eslint-config-prettier@8.10.0(eslint@8.48.0): + resolution: {integrity: sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==} + hasBin: true + peerDependencies: + eslint: '>=7.0.0' + dependencies: + eslint: 8.48.0 + dev: true + + /eslint-import-resolver-node@0.3.9: + resolution: {integrity: sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==} + dependencies: + debug: 3.2.7 + is-core-module: 2.13.0 + resolve: 1.22.4 + transitivePeerDependencies: + - supports-color + dev: true + + /eslint-import-resolver-typescript@2.7.1(eslint-plugin-import@2.28.1)(eslint@8.48.0): + resolution: {integrity: sha512-00UbgGwV8bSgUv34igBDbTOtKhqoRMy9bFjNehT40bXg6585PNIct8HhXZ0SybqB9rWtXj9crcku8ndDn/gIqQ==} + engines: {node: '>=4'} + peerDependencies: + eslint: '*' + eslint-plugin-import: '*' + dependencies: + debug: 4.3.4 + eslint: 8.48.0 + eslint-plugin-import: 2.28.1(@typescript-eslint/parser@5.62.0)(eslint-import-resolver-typescript@2.7.1)(eslint@8.48.0) + glob: 7.2.3 + is-glob: 4.0.3 + resolve: 1.22.4 + tsconfig-paths: 3.14.2 + transitivePeerDependencies: + - supports-color + dev: true + + /eslint-module-utils@2.8.0(@typescript-eslint/parser@5.62.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@2.7.1)(eslint@8.48.0): + resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==} + engines: {node: '>=4'} + peerDependencies: + '@typescript-eslint/parser': '*' + eslint: '*' + eslint-import-resolver-node: '*' + eslint-import-resolver-typescript: '*' + eslint-import-resolver-webpack: '*' + peerDependenciesMeta: + '@typescript-eslint/parser': + optional: true + eslint: + optional: true + eslint-import-resolver-node: + optional: true + eslint-import-resolver-typescript: + optional: true + eslint-import-resolver-webpack: + optional: true + dependencies: + '@typescript-eslint/parser': 5.62.0(eslint@8.48.0)(typescript@4.9.5) + debug: 3.2.7 + eslint: 8.48.0 + eslint-import-resolver-node: 0.3.9 + eslint-import-resolver-typescript: 2.7.1(eslint-plugin-import@2.28.1)(eslint@8.48.0) + transitivePeerDependencies: + - supports-color + dev: true + + /eslint-plugin-import@2.28.1(@typescript-eslint/parser@5.62.0)(eslint-import-resolver-typescript@2.7.1)(eslint@8.48.0): + resolution: {integrity: sha512-9I9hFlITvOV55alzoKBI+K9q74kv0iKMeY6av5+umsNwayt59fz692daGyjR+oStBQgx6nwR9rXldDev3Clw+A==} + engines: {node: '>=4'} + peerDependencies: + '@typescript-eslint/parser': '*' + eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 + peerDependenciesMeta: + '@typescript-eslint/parser': + optional: true + dependencies: + '@typescript-eslint/parser': 5.62.0(eslint@8.48.0)(typescript@4.9.5) + array-includes: 3.1.6 + array.prototype.findlastindex: 1.2.3 + array.prototype.flat: 1.3.1 + array.prototype.flatmap: 1.3.1 + debug: 3.2.7 + doctrine: 2.1.0 + eslint: 8.48.0 + eslint-import-resolver-node: 0.3.9 + eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.62.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@2.7.1)(eslint@8.48.0) + has: 1.0.3 + is-core-module: 2.13.0 + is-glob: 4.0.3 + minimatch: 3.1.2 + object.fromentries: 2.0.7 + object.groupby: 1.0.1 + object.values: 1.1.7 + semver: 6.3.1 + tsconfig-paths: 3.14.2 + transitivePeerDependencies: + - eslint-import-resolver-typescript + - eslint-import-resolver-webpack + - supports-color + dev: true + + /eslint-plugin-jsx-a11y@6.7.1(eslint@8.48.0): + resolution: {integrity: sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==} + engines: {node: '>=4.0'} + peerDependencies: + eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 + dependencies: + '@babel/runtime': 7.22.11 + aria-query: 5.3.0 + array-includes: 3.1.6 + array.prototype.flatmap: 1.3.1 + ast-types-flow: 0.0.7 + axe-core: 4.7.2 + axobject-query: 3.2.1 + damerau-levenshtein: 1.0.8 + emoji-regex: 9.2.2 + eslint: 8.48.0 + has: 1.0.3 + jsx-ast-utils: 3.3.5 + language-tags: 1.0.5 + minimatch: 3.1.2 + object.entries: 1.1.7 + object.fromentries: 2.0.7 + semver: 6.3.1 + dev: true + + /eslint-plugin-prettier@4.2.1(eslint-config-prettier@8.10.0)(eslint@8.48.0)(prettier@2.8.8): + resolution: {integrity: sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==} + engines: {node: '>=12.0.0'} + peerDependencies: + eslint: '>=7.28.0' + eslint-config-prettier: '*' + prettier: '>=2.0.0' + peerDependenciesMeta: + eslint-config-prettier: + optional: true + dependencies: + eslint: 8.48.0 + eslint-config-prettier: 8.10.0(eslint@8.48.0) + prettier: 2.8.8 + prettier-linter-helpers: 1.0.0 + dev: true + + /eslint-plugin-react-hooks@4.3.0(eslint@8.48.0): + resolution: {integrity: sha512-XslZy0LnMn+84NEG9jSGR6eGqaZB3133L8xewQo3fQagbQuGt7a63gf+P1NGKZavEYEC3UXaWEAA/AqDkuN6xA==} + engines: {node: '>=10'} + peerDependencies: + eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 + dependencies: + eslint: 8.48.0 + dev: true + + /eslint-plugin-react@7.29.4(eslint@8.48.0): + resolution: {integrity: sha512-CVCXajliVh509PcZYRFyu/BoUEz452+jtQJq2b3Bae4v3xBUWPLCmtmBM+ZinG4MzwmxJgJ2M5rMqhqLVn7MtQ==} + engines: {node: '>=4'} + peerDependencies: + eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 + dependencies: + array-includes: 3.1.6 + array.prototype.flatmap: 1.3.1 + doctrine: 2.1.0 + eslint: 8.48.0 + estraverse: 5.3.0 + jsx-ast-utils: 3.3.5 + minimatch: 3.1.2 + object.entries: 1.1.7 + object.fromentries: 2.0.7 + object.hasown: 1.1.3 + object.values: 1.1.7 + prop-types: 15.8.1 + resolve: 2.0.0-next.4 + semver: 6.3.1 + string.prototype.matchall: 4.0.9 + dev: true + + /eslint-scope@5.1.1: + resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==} + engines: {node: '>=8.0.0'} + dependencies: + esrecurse: 4.3.0 + estraverse: 4.3.0 + dev: true + + /eslint-scope@7.2.2: + resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + esrecurse: 4.3.0 + estraverse: 5.3.0 + dev: true + + /eslint-visitor-keys@3.4.3: + resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dev: true + + /eslint@8.48.0: + resolution: {integrity: sha512-sb6DLeIuRXxeM1YljSe1KEx9/YYeZFQWcV8Rq9HfigmdDEugjLEVEa1ozDjL6YDjBpQHPJxJzze+alxi4T3OLg==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + hasBin: true + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.48.0) + '@eslint-community/regexpp': 4.8.0 + '@eslint/eslintrc': 2.1.2 + '@eslint/js': 8.48.0 + '@humanwhocodes/config-array': 0.11.11 + '@humanwhocodes/module-importer': 1.0.1 + '@nodelib/fs.walk': 1.2.8 + ajv: 6.12.6 + chalk: 4.1.2 + cross-spawn: 7.0.3 + debug: 4.3.4 + doctrine: 3.0.0 + escape-string-regexp: 4.0.0 + eslint-scope: 7.2.2 + eslint-visitor-keys: 3.4.3 + espree: 9.6.1 + esquery: 1.5.0 + esutils: 2.0.3 + fast-deep-equal: 3.1.3 + file-entry-cache: 6.0.1 + find-up: 5.0.0 + glob-parent: 6.0.2 + globals: 13.21.0 + graphemer: 1.4.0 + ignore: 5.2.4 + imurmurhash: 0.1.4 + is-glob: 4.0.3 + is-path-inside: 3.0.3 + js-yaml: 4.1.0 + json-stable-stringify-without-jsonify: 1.0.1 + levn: 0.4.1 + lodash.merge: 4.6.2 + minimatch: 3.1.2 + natural-compare: 1.4.0 + optionator: 0.9.3 + strip-ansi: 6.0.1 + text-table: 0.2.0 + transitivePeerDependencies: + - supports-color + dev: true + + /espree@9.6.1: + resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + acorn: 8.10.0 + acorn-jsx: 5.3.2(acorn@8.10.0) + eslint-visitor-keys: 3.4.3 + dev: true + + /esprima@4.0.1: + resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} + engines: {node: '>=4'} + hasBin: true + dev: true + + /esquery@1.5.0: + resolution: {integrity: sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==} + engines: {node: '>=0.10'} + dependencies: + estraverse: 5.3.0 + dev: true + + /esrecurse@4.3.0: + resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} + engines: {node: '>=4.0'} + dependencies: + estraverse: 5.3.0 + dev: true + + /estraverse@4.3.0: + resolution: {integrity: sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==} + engines: {node: '>=4.0'} + dev: true + + /estraverse@5.3.0: + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} + engines: {node: '>=4.0'} + dev: true + + /estree-walker@1.0.1: + resolution: {integrity: sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==} + dev: true + + /esutils@2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} + engines: {node: '>=0.10.0'} + dev: true + + /fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + /fast-diff@1.3.0: + resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==} + dev: true + + /fast-glob@3.3.1: + resolution: {integrity: sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==} + engines: {node: '>=8.6.0'} + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.5 + dev: true + + /fast-json-stable-stringify@2.1.0: + resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} + dev: true + + /fast-levenshtein@2.0.6: + resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} + dev: true + + /fast-loops@1.1.3: + resolution: {integrity: sha512-8EZzEP0eKkEEVX+drtd9mtuQ+/QrlfW/5MlwcwK5Nds6EkZ/tRzEexkzUY2mIssnAyVLT+TKHuRXmFNNXYUd6g==} + dev: false + + /fast-shallow-equal@1.0.0: + resolution: {integrity: sha512-HPtaa38cPgWvaCFmRNhlc6NG7pv6NUHqjPgVAkWGoB9mQMwYB27/K0CvOM5Czy+qpT3e8XJ6Q4aPAnzpNpzNaw==} + dev: false + + /fastest-stable-stringify@2.0.2: + resolution: {integrity: sha512-bijHueCGd0LqqNK9b5oCMHc0MluJAx0cwqASgbWMvkO01lCYgIhacVRLcaDz3QnyYIRNJRDwMb41VuT6pHJ91Q==} + dev: false + + /fastq@1.15.0: + resolution: {integrity: sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==} + dependencies: + reusify: 1.0.4 + dev: true + + /file-entry-cache@6.0.1: + resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} + engines: {node: ^10.12.0 || >=12.0.0} + dependencies: + flat-cache: 3.1.0 + dev: true + + /filelist@1.0.4: + resolution: {integrity: sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==} + dependencies: + minimatch: 5.1.6 + dev: true + + /fill-range@7.0.1: + resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} + engines: {node: '>=8'} + dependencies: + to-regex-range: 5.0.1 + dev: true + + /find-up@5.0.0: + resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} + engines: {node: '>=10'} + dependencies: + locate-path: 6.0.0 + path-exists: 4.0.0 + dev: true + + /flag-icons@6.11.1: + resolution: {integrity: sha512-c2UMJTFZoVQ47/sE1mb+9b5S1pi8SjXsx0MR063O31GV+O2EN4FMwMdEYSQItpien2bl9w1viLUoo2R3r6OK3g==} + dev: false + + /flat-cache@3.1.0: + resolution: {integrity: sha512-OHx4Qwrrt0E4jEIcI5/Xb+f+QmJYNj2rrK8wiIdQOIrB9WrrJL8cjZvXdXuBTkkEwEqLycb5BeZDV1o2i9bTew==} + engines: {node: '>=12.0.0'} + dependencies: + flatted: 3.2.7 + keyv: 4.5.3 + rimraf: 3.0.2 + dev: true + + /flatted@3.2.7: + resolution: {integrity: sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==} + dev: true + + /focus-trap-react@10.2.3(prop-types@15.8.1)(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-YXBpFu/hIeSu6NnmV2xlXzOYxuWkoOtar9jzgp3lOmjWLWY59C/b8DtDHEAV4SPU07Nd/t+nS/SBNGkhUBFmEw==} + peerDependencies: + prop-types: ^15.8.1 + react: '>=16.3.0' + react-dom: '>=16.3.0' + dependencies: + focus-trap: 7.5.4 + prop-types: 15.8.1 + react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + tabbable: 6.2.0 + dev: false + + /focus-trap@7.5.4: + resolution: {integrity: sha512-N7kHdlgsO/v+iD/dMoJKtsSqs5Dz/dXZVebRgJw23LDk+jMi/974zyiOYDziY2JPp8xivq9BmUGwIJMiuSBi7w==} + dependencies: + tabbable: 6.2.0 + dev: false + + /for-each@0.3.3: + resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==} + dependencies: + is-callable: 1.2.7 + dev: true + + /foreground-child@3.1.1: + resolution: {integrity: sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==} + engines: {node: '>=14'} + dependencies: + cross-spawn: 7.0.3 + signal-exit: 4.1.0 + dev: true + + /form-data@4.0.0: + resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==} + engines: {node: '>= 6'} + dependencies: + asynckit: 0.4.0 + combined-stream: 1.0.8 + mime-types: 2.1.35 + + /fraction.js@4.3.5: + resolution: {integrity: sha512-58DncB2bO/8ZvTHapG7U2KEbeFFyUbbrFFkHakecpdUSqJrQnEuBeTUPEggIVkx5cnugZJ4IVzk2Nbb32MOxBg==} + dev: true + + /fs-extra@11.1.1: + resolution: {integrity: sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==} + engines: {node: '>=14.14'} + dependencies: + graceful-fs: 4.2.11 + jsonfile: 6.1.0 + universalify: 2.0.0 + dev: true + + /fs-extra@9.1.0: + resolution: {integrity: sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==} + engines: {node: '>=10'} + dependencies: + at-least-node: 1.0.0 + graceful-fs: 4.2.11 + jsonfile: 6.1.0 + universalify: 2.0.0 + dev: true + + /fs.realpath@1.0.0: + resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} + dev: true + + /fscreen@1.2.0: + resolution: {integrity: sha512-hlq4+BU0hlPmwsFjwGGzZ+OZ9N/wq9Ljg/sq3pX+2CD7hrJsX9tJgWWK/wiNTFM212CLHWhicOoqwXyZGGetJg==} + dev: false + + /fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /function-bind@1.1.1: + resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} + dev: true + + /function.prototype.name@1.1.6: + resolution: {integrity: sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.0 + es-abstract: 1.22.1 + functions-have-names: 1.2.3 + dev: true + + /functions-have-names@1.2.3: + resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==} + dev: true + + /fuse.js@6.6.2: + resolution: {integrity: sha512-cJaJkxCCxC8qIIcPBF9yGxY0W/tVZS3uEISDxhYIdtk8OL93pe+6Zj7LjCqVV4dzbqcriOZ+kQ/NE4RXZHsIGA==} + engines: {node: '>=10'} + dev: false + + /gensync@1.0.0-beta.2: + resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} + engines: {node: '>=6.9.0'} + dev: true + + /get-func-name@3.0.0: + resolution: {integrity: sha512-6lB4zp64YzgT5KVoAuY0vBXQXNObRmelzfVCpx2dHkGVskX8WwjxTVd/kGUsVzxuOpSEF9BcD54ChSKMVjSsfQ==} + engines: {node: '>= 12'} + dev: true + + /get-intrinsic@1.2.1: + resolution: {integrity: sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==} + dependencies: + function-bind: 1.1.1 + has: 1.0.3 + has-proto: 1.0.1 + has-symbols: 1.0.3 + dev: true + + /get-own-enumerable-property-symbols@3.0.2: + resolution: {integrity: sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==} + dev: true + + /get-symbol-description@1.0.0: + resolution: {integrity: sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + get-intrinsic: 1.2.1 + dev: true + + /glob-parent@5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} + dependencies: + is-glob: 4.0.3 + dev: true + + /glob-parent@6.0.2: + resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} + engines: {node: '>=10.13.0'} + dependencies: + is-glob: 4.0.3 + dev: true + + /glob@10.3.4: + resolution: {integrity: sha512-6LFElP3A+i/Q8XQKEvZjkEWEOTgAIALR9AO2rwT8bgPhDd1anmqDJDZ6lLddI4ehxxxR1S5RIqKe1uapMQfYaQ==} + engines: {node: '>=16 || 14 >=14.17'} + hasBin: true + dependencies: + foreground-child: 3.1.1 + jackspeak: 2.3.1 + minimatch: 9.0.3 + minipass: 7.0.3 + path-scurry: 1.10.1 + dev: true + + /glob@7.1.6: + resolution: {integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==} + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.1.2 + once: 1.4.0 + path-is-absolute: 1.0.1 + dev: true + + /glob@7.2.3: + resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.1.2 + once: 1.4.0 + path-is-absolute: 1.0.1 + dev: true + + /globals@11.12.0: + resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==} + engines: {node: '>=4'} + dev: true + + /globals@13.21.0: + resolution: {integrity: sha512-ybyme3s4yy/t/3s35bewwXKOf7cvzfreG2lH0lZl0JB7I4GxRP2ghxOK/Nb9EkRXdbBXZLfq/p/0W2JUONB/Gg==} + engines: {node: '>=8'} + dependencies: + type-fest: 0.20.2 + dev: true + + /globalthis@1.0.3: + resolution: {integrity: sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==} + engines: {node: '>= 0.4'} + dependencies: + define-properties: 1.2.0 + dev: true + + /globby@11.1.0: + resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} + engines: {node: '>=10'} + dependencies: + array-union: 2.1.0 + dir-glob: 3.0.1 + fast-glob: 3.3.1 + ignore: 5.2.4 + merge2: 1.4.1 + slash: 3.0.0 + dev: true + + /gopd@1.0.1: + resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} + dependencies: + get-intrinsic: 1.2.1 + dev: true + + /graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + dev: true + + /graphemer@1.4.0: + resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} + dev: true + + /handlebars@4.7.8: + resolution: {integrity: sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==} + engines: {node: '>=0.4.7'} + hasBin: true + dependencies: + minimist: 1.2.8 + neo-async: 2.6.2 + source-map: 0.6.1 + wordwrap: 1.0.0 + optionalDependencies: + uglify-js: 3.17.4 + dev: true + + /has-bigints@1.0.2: + resolution: {integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==} + dev: true + + /has-flag@3.0.0: + resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==} + engines: {node: '>=4'} + dev: true + + /has-flag@4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + dev: true + + /has-property-descriptors@1.0.0: + resolution: {integrity: sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==} + dependencies: + get-intrinsic: 1.2.1 + dev: true + + /has-proto@1.0.1: + resolution: {integrity: sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==} + engines: {node: '>= 0.4'} + dev: true + + /has-symbols@1.0.3: + resolution: {integrity: sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==} + engines: {node: '>= 0.4'} + dev: true + + /has-tostringtag@1.0.0: + resolution: {integrity: sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==} + engines: {node: '>= 0.4'} + dependencies: + has-symbols: 1.0.3 + dev: true + + /has@1.0.3: + resolution: {integrity: sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==} + engines: {node: '>= 0.4.0'} + dependencies: + function-bind: 1.1.1 + dev: true + + /history@4.10.1: + resolution: {integrity: sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew==} + dependencies: + '@babel/runtime': 7.22.11 + loose-envify: 1.4.0 + resolve-pathname: 3.0.0 + tiny-invariant: 1.3.1 + tiny-warning: 1.0.3 + value-equal: 1.0.1 + dev: false + + /hls.js@1.4.11: + resolution: {integrity: sha512-rhPSUMACcIBbcUnwWnIcRgGXqJJt0xBRxvhzl99XpGHtnnLKjbczmmBmUuQueAQcbL3SdN7D5peAObR18VrhvQ==} + dev: false + + /hoist-non-react-statics@3.3.2: + resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==} + dependencies: + react-is: 16.13.1 + dev: false + + /html-encoding-sniffer@3.0.0: + resolution: {integrity: sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==} + engines: {node: '>=12'} + dependencies: + whatwg-encoding: 2.0.0 + dev: true + + /html-parse-stringify@3.0.1: + resolution: {integrity: sha512-KknJ50kTInJ7qIScF3jeaFRpMpE8/lfiTdzf/twXyPBLAGrLRTmkz3AdTnKeh40X8k9L2fdYwEp/42WGXIRGcg==} + dependencies: + void-elements: 3.1.0 + dev: false + + /htmlparser2@8.0.2: + resolution: {integrity: sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==} + dependencies: + domelementtype: 2.3.0 + domhandler: 5.0.3 + domutils: 3.1.0 + entities: 4.5.0 + dev: false + + /http-proxy-agent@5.0.0: + resolution: {integrity: sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==} + engines: {node: '>= 6'} + dependencies: + '@tootallnate/once': 2.0.0 + agent-base: 6.0.2 + debug: 4.3.4 + transitivePeerDependencies: + - supports-color + dev: true + + /https-proxy-agent@5.0.1: + resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==} + engines: {node: '>= 6'} + dependencies: + agent-base: 6.0.2 + debug: 4.3.4 + transitivePeerDependencies: + - supports-color + dev: true + + /hyphenate-style-name@1.0.4: + resolution: {integrity: sha512-ygGZLjmXfPHj+ZWh6LwbC37l43MhfztxetbFCoYTM2VjkIUpeHgSNn7QIyVFj7YQ1Wl9Cbw5sholVJPzWvC2MQ==} + dev: false + + /i18next@22.5.1: + resolution: {integrity: sha512-8TGPgM3pAD+VRsMtUMNknRz3kzqwp/gPALrWMsDnmC1mKqJwpWyooQRLMcbTwq8z8YwSmuj+ZYvc+xCuEpkssA==} + dependencies: + '@babel/runtime': 7.22.11 + dev: false + + /iconv-lite@0.6.3: + resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} + engines: {node: '>=0.10.0'} + dependencies: + safer-buffer: 2.1.2 + dev: true + + /idb@7.1.1: + resolution: {integrity: sha512-gchesWBzyvGHRO9W8tzUWFDycow5gwjvFKfyV9FF32Y7F50yZMp7mP+T2mJIWFx49zicqyC4uefHM17o6xKIVQ==} + dev: true + + /ignore@5.2.4: + resolution: {integrity: sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==} + engines: {node: '>= 4'} + dev: true + + /immer@10.0.2: + resolution: {integrity: sha512-Rx3CqeqQ19sxUtYV9CU911Vhy8/721wRFnJv3REVGWUmoAcIwzifTsdmJte/MV+0/XpM35LZdQMBGkRIoLPwQA==} + dev: false + + /import-fresh@3.3.0: + resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} + engines: {node: '>=6'} + dependencies: + parent-module: 1.0.1 + resolve-from: 4.0.0 + dev: true + + /imurmurhash@0.1.4: + resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} + engines: {node: '>=0.8.19'} + dev: true + + /inflight@1.0.6: + resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} + dependencies: + once: 1.4.0 + wrappy: 1.0.2 + dev: true + + /inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + dev: true + + /inline-style-prefixer@6.0.4: + resolution: {integrity: sha512-FwXmZC2zbeeS7NzGjJ6pAiqRhXR0ugUShSNb6GApMl6da0/XGc4MOJsoWAywia52EEWbXNSy0pzkwz/+Y+swSg==} + dependencies: + css-in-js-utils: 3.1.0 + fast-loops: 1.1.3 + dev: false + + /internal-slot@1.0.5: + resolution: {integrity: sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==} + engines: {node: '>= 0.4'} + dependencies: + get-intrinsic: 1.2.1 + has: 1.0.3 + side-channel: 1.0.4 + dev: true + + /invariant@2.2.4: + resolution: {integrity: sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==} + dependencies: + loose-envify: 1.4.0 + dev: false + + /is-array-buffer@3.0.2: + resolution: {integrity: sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==} + dependencies: + call-bind: 1.0.2 + get-intrinsic: 1.2.1 + is-typed-array: 1.1.12 + dev: true + + /is-arrayish@0.3.2: + resolution: {integrity: sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==} + dev: true + + /is-bigint@1.0.4: + resolution: {integrity: sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==} + dependencies: + has-bigints: 1.0.2 + dev: true + + /is-binary-path@2.1.0: + resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} + engines: {node: '>=8'} + dependencies: + binary-extensions: 2.2.0 + dev: true + + /is-boolean-object@1.1.2: + resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + has-tostringtag: 1.0.0 + dev: true + + /is-callable@1.2.7: + resolution: {integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==} + engines: {node: '>= 0.4'} + dev: true + + /is-core-module@2.13.0: + resolution: {integrity: sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==} + dependencies: + has: 1.0.3 + dev: true + + /is-date-object@1.0.5: + resolution: {integrity: sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==} + engines: {node: '>= 0.4'} + dependencies: + has-tostringtag: 1.0.0 + dev: true + + /is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} + engines: {node: '>=0.10.0'} + dev: true + + /is-fullwidth-code-point@3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + dev: true + + /is-fullwidth-code-point@4.0.0: + resolution: {integrity: sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==} + engines: {node: '>=12'} + dev: true + + /is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + dependencies: + is-extglob: 2.1.1 + dev: true + + /is-module@1.0.0: + resolution: {integrity: sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==} + dev: true + + /is-negative-zero@2.0.2: + resolution: {integrity: sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==} + engines: {node: '>= 0.4'} + dev: true + + /is-number-object@1.0.7: + resolution: {integrity: sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==} + engines: {node: '>= 0.4'} + dependencies: + has-tostringtag: 1.0.0 + dev: true + + /is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + dev: true + + /is-obj@1.0.1: + resolution: {integrity: sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==} + engines: {node: '>=0.10.0'} + dev: true + + /is-path-inside@3.0.3: + resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} + engines: {node: '>=8'} + dev: true + + /is-potential-custom-element-name@1.0.1: + resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==} + dev: true + + /is-regex@1.1.4: + resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + has-tostringtag: 1.0.0 + dev: true + + /is-regexp@1.0.0: + resolution: {integrity: sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==} + engines: {node: '>=0.10.0'} + dev: true + + /is-shared-array-buffer@1.0.2: + resolution: {integrity: sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==} + dependencies: + call-bind: 1.0.2 + dev: true + + /is-stream@2.0.1: + resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} + engines: {node: '>=8'} + dev: true + + /is-string@1.0.7: + resolution: {integrity: sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==} + engines: {node: '>= 0.4'} + dependencies: + has-tostringtag: 1.0.0 + dev: true + + /is-symbol@1.0.4: + resolution: {integrity: sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==} + engines: {node: '>= 0.4'} + dependencies: + has-symbols: 1.0.3 + dev: true + + /is-typed-array@1.1.12: + resolution: {integrity: sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==} + engines: {node: '>= 0.4'} + dependencies: + which-typed-array: 1.1.11 + dev: true + + /is-weakref@1.0.2: + resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==} + dependencies: + call-bind: 1.0.2 + dev: true + + /isarray@0.0.1: + resolution: {integrity: sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==} + dev: false + + /isarray@2.0.5: + resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==} + dev: true + + /isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + dev: true + + /iso-639-1@3.1.0: + resolution: {integrity: sha512-rWcHp9dcNbxa5C8jA/cxFlWNFNwy5Vup0KcFvgA8sPQs9ZeJHj/Eq0Y8Yz2eL8XlWYpxw4iwh9FfTeVxyqdRMw==} + engines: {node: '>=6.0'} + dev: false + + /jackspeak@2.3.1: + resolution: {integrity: sha512-4iSY3Bh1Htv+kLhiiZunUhQ+OYXIn0ze3ulq8JeWrFKmhPAJSySV2+kdtRh2pGcCeF0s6oR8Oc+pYZynJj4t8A==} + engines: {node: '>=14'} + dependencies: + '@isaacs/cliui': 8.0.2 + optionalDependencies: + '@pkgjs/parseargs': 0.11.0 + dev: true + + /jake@10.8.7: + resolution: {integrity: sha512-ZDi3aP+fG/LchyBzUM804VjddnwfSfsdeYkwt8NcbKRvo4rFkjhs456iLFn3k2ZUWvNe4i48WACDbza8fhq2+w==} + engines: {node: '>=10'} + hasBin: true + dependencies: + async: 3.2.4 + chalk: 4.1.2 + filelist: 1.0.4 + minimatch: 3.1.2 + dev: true + + /jest-worker@26.6.2: + resolution: {integrity: sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==} + engines: {node: '>= 10.13.0'} + dependencies: + '@types/node': 17.0.45 + merge-stream: 2.0.0 + supports-color: 7.2.0 + dev: true + + /jiti@1.19.3: + resolution: {integrity: sha512-5eEbBDQT/jF1xg6l36P+mWGGoH9Spuy0PCdSr2dtWRDGC6ph/w9ZCL4lmESW8f8F7MwT3XKescfP0wnZWAKL9w==} + hasBin: true + dev: true + + /js-cookie@2.2.1: + resolution: {integrity: sha512-HvdH2LzI/EAZcUwA8+0nKNtWHqS+ZmijLA30RwZA0bo7ToCckjK5MkGhjED9KoRcXO6BaGI3I9UIzSA1FKFPOQ==} + dev: false + + /js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + + /js-yaml@4.1.0: + resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} + hasBin: true + dependencies: + argparse: 2.0.1 + dev: true + + /jsdom@21.1.2: + resolution: {integrity: sha512-sCpFmK2jv+1sjff4u7fzft+pUh2KSUbUrEHYHyfSIbGTIcmnjyp83qg6qLwdJ/I3LpTXx33ACxeRL7Lsyc6lGQ==} + engines: {node: '>=14'} + peerDependencies: + canvas: ^2.5.0 + peerDependenciesMeta: + canvas: + optional: true + dependencies: + abab: 2.0.6 + acorn: 8.10.0 + acorn-globals: 7.0.1 + cssstyle: 3.0.0 + data-urls: 4.0.0 + decimal.js: 10.4.3 + domexception: 4.0.0 + escodegen: 2.1.0 + form-data: 4.0.0 + html-encoding-sniffer: 3.0.0 + http-proxy-agent: 5.0.0 + https-proxy-agent: 5.0.1 + is-potential-custom-element-name: 1.0.1 + nwsapi: 2.2.7 + parse5: 7.1.2 + rrweb-cssom: 0.6.0 + saxes: 6.0.0 + symbol-tree: 3.2.4 + tough-cookie: 4.1.3 + w3c-xmlserializer: 4.0.0 + webidl-conversions: 7.0.0 + whatwg-encoding: 2.0.0 + whatwg-mimetype: 3.0.0 + whatwg-url: 12.0.1 + ws: 8.13.0 + xml-name-validator: 4.0.0 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + dev: true + + /jsesc@0.5.0: + resolution: {integrity: sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==} + hasBin: true + dev: true + + /jsesc@2.5.2: + resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==} + engines: {node: '>=4'} + hasBin: true + dev: true + + /json-buffer@3.0.1: + resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} + dev: true + + /json-schema-traverse@0.4.1: + resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} + dev: true + + /json-schema-traverse@1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + dev: true + + /json-schema@0.4.0: + resolution: {integrity: sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==} + dev: true + + /json-stable-stringify-without-jsonify@1.0.1: + resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} + dev: true + + /json5@1.0.2: + resolution: {integrity: sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==} + hasBin: true + dependencies: + minimist: 1.2.8 + dev: true + + /json5@2.2.3: + resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} + engines: {node: '>=6'} + hasBin: true + dev: true + + /jsonc-parser@3.2.0: + resolution: {integrity: sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==} + dev: true + + /jsonfile@6.1.0: + resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} + dependencies: + universalify: 2.0.0 + optionalDependencies: + graceful-fs: 4.2.11 + dev: true + + /jsonpointer@5.0.1: + resolution: {integrity: sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==} + engines: {node: '>=0.10.0'} + dev: true + + /jsx-ast-utils@3.3.5: + resolution: {integrity: sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==} + engines: {node: '>=4.0'} + dependencies: + array-includes: 3.1.6 + array.prototype.flat: 1.3.1 + object.assign: 4.1.4 + object.values: 1.1.7 + dev: true + + /just-unique@4.2.0: + resolution: {integrity: sha512-cxQGGUiit6CGUpuuiezY8N4m1wgF4o7127rXEXDFcxeDUFfdV7gSkwA26Fe2wWBiNQq2SZOgN4gSmMxB/StA8Q==} + dev: true + + /keyv@4.5.3: + resolution: {integrity: sha512-QCiSav9WaX1PgETJ+SpNnx2PRRapJ/oRSXM4VO5OGYGSjrxbKPVFVhB3l2OCbLCk329N8qyAtsJjSjvVBWzEug==} + dependencies: + json-buffer: 3.0.1 + dev: true + + /language-subtag-registry@0.3.22: + resolution: {integrity: sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==} + dev: true + + /language-tags@1.0.5: + resolution: {integrity: sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==} + dependencies: + language-subtag-registry: 0.3.22 + dev: true + + /leven@3.1.0: + resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==} + engines: {node: '>=6'} + dev: true + + /levn@0.4.1: + resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} + engines: {node: '>= 0.8.0'} + dependencies: + prelude-ls: 1.2.1 + type-check: 0.4.0 + dev: true + + /lilconfig@2.1.0: + resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==} + engines: {node: '>=10'} + dev: true + + /lines-and-columns@1.2.4: + resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} + dev: true + + /local-pkg@0.4.3: + resolution: {integrity: sha512-SFppqq5p42fe2qcZQqqEOiVRXl+WCP1MdT6k7BDEW1j++sp5fIY+/fdRQitvKgB5BrBcmrs5m/L0v2FrU5MY1g==} + engines: {node: '>=14'} + dev: true + + /locate-path@6.0.0: + resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} + engines: {node: '>=10'} + dependencies: + p-locate: 5.0.0 + dev: true + + /lodash.compact@3.0.1: + resolution: {integrity: sha512-2ozeiPi+5eBXW1CLtzjk8XQFhQOEMwwfxblqeq6EGyTxZJ1bPATqilY0e6g2SLQpP4KuMeuioBhEnWz5Pr7ICQ==} + dev: false + + /lodash.debounce@4.0.8: + resolution: {integrity: sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==} + dev: true + + /lodash.isequal@4.5.0: + resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==} + dev: false + + /lodash.merge@4.6.2: + resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} + dev: true + + /lodash.mergewith@4.6.2: + resolution: {integrity: sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ==} + dev: true + + /lodash.pick@4.4.0: + resolution: {integrity: sha512-hXt6Ul/5yWjfklSGvLQl8vM//l3FtyHZeuelpzK6mm99pNvN9yTDruNZPEJZD1oWrqo+izBmB7oUfWgcCX7s4Q==} + dev: true + + /lodash.sortby@4.7.0: + resolution: {integrity: sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==} + dev: true + + /lodash@4.17.21: + resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} + dev: true + + /loose-envify@1.4.0: + resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} + hasBin: true + dependencies: + js-tokens: 4.0.0 + + /loupe@2.3.6: + resolution: {integrity: sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA==} + dependencies: + get-func-name: 3.0.0 + dev: true + + /lru-cache@10.0.1: + resolution: {integrity: sha512-IJ4uwUTi2qCccrioU6g9g/5rvvVl13bsdczUUcqbciD9iLr095yj8DQKdObriEvuNSx325N1rV1O0sJFszx75g==} + engines: {node: 14 || >=16.14} + dev: true + + /lru-cache@5.1.1: + resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} + dependencies: + yallist: 3.1.1 + dev: true + + /lru-cache@6.0.0: + resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} + engines: {node: '>=10'} + dependencies: + yallist: 4.0.0 + dev: true + + /magic-string@0.25.9: + resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==} + dependencies: + sourcemap-codec: 1.4.8 + dev: true + + /magic-string@0.27.0: + resolution: {integrity: sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==} + engines: {node: '>=12'} + dependencies: + '@jridgewell/sourcemap-codec': 1.4.15 + dev: true + + /mdn-data@2.0.14: + resolution: {integrity: sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==} + dev: false + + /merge-stream@2.0.0: + resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} + dev: true + + /merge2@1.4.1: + resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} + engines: {node: '>= 8'} + dev: true + + /micromatch@4.0.5: + resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==} + engines: {node: '>=8.6'} + dependencies: + braces: 3.0.2 + picomatch: 2.3.1 + dev: true + + /mime-db@1.52.0: + resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} + engines: {node: '>= 0.6'} + + /mime-types@2.1.35: + resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} + engines: {node: '>= 0.6'} + dependencies: + mime-db: 1.52.0 + + /minimatch@3.1.2: + resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} + dependencies: + brace-expansion: 1.1.11 + dev: true + + /minimatch@5.1.6: + resolution: {integrity: sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==} + engines: {node: '>=10'} + dependencies: + brace-expansion: 2.0.1 + dev: true + + /minimatch@9.0.3: + resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + brace-expansion: 2.0.1 + dev: true + + /minimist@1.2.8: + resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} + dev: true + + /minipass@7.0.3: + resolution: {integrity: sha512-LhbbwCfz3vsb12j/WkWQPZfKTsgqIe1Nf/ti1pKjYESGLHIVjWU96G9/ljLH4F9mWNVhlQOm0VySdAWzf05dpg==} + engines: {node: '>=16 || 14 >=14.17'} + dev: true + + /mlly@1.4.1: + resolution: {integrity: sha512-SCDs78Q2o09jiZiE2WziwVBEqXQ02XkGdUy45cbJf+BpYRIjArXRJ1Wbowxkb+NaM9DWvS3UC9GiO/6eqvQ/pg==} + dependencies: + acorn: 8.10.0 + pathe: 1.1.1 + pkg-types: 1.0.3 + ufo: 1.3.0 + dev: true + + /ms@2.1.2: + resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} + dev: true + + /ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + dev: true + + /mz@2.7.0: + resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==} + dependencies: + any-promise: 1.3.0 + object-assign: 4.1.1 + thenify-all: 1.6.0 + dev: true + + /nano-css@5.3.5(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-vSB9X12bbNu4ALBu7nigJgRViZ6ja3OU7CeuiV1zMIbXOdmkLahgtPmh3GBOlDxbKY0CitqlPdOReGlBLSp+yg==} + peerDependencies: + react: '*' + react-dom: '*' + dependencies: + css-tree: 1.1.3 + csstype: 3.1.2 + fastest-stable-stringify: 2.0.2 + inline-style-prefixer: 6.0.4 + react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + rtl-css-js: 1.16.1 + sourcemap-codec: 1.4.8 + stacktrace-js: 2.0.2 + stylis: 4.3.0 + dev: false + + /nanoid@3.3.6: + resolution: {integrity: sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + /natural-compare-lite@1.4.0: + resolution: {integrity: sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==} + dev: true + + /natural-compare@1.4.0: + resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} + dev: true + + /neo-async@2.6.2: + resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==} + dev: true + + /node-fetch-native@1.4.0: + resolution: {integrity: sha512-F5kfEj95kX8tkDhUCYdV8dg3/8Olx/94zB8+ZNthFs6Bz31UpUi8Xh40TN3thLwXgrwXry1pEg9lJ++tLWTcqA==} + dev: false + + /node-fetch@2.7.0: + resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} + engines: {node: 4.x || >=6.0.0} + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + dependencies: + whatwg-url: 5.0.0 + dev: false + + /node-forge@1.3.1: + resolution: {integrity: sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==} + engines: {node: '>= 6.13.0'} + dev: false + + /node-releases@2.0.13: + resolution: {integrity: sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==} + dev: true + + /normalize-path@3.0.0: + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} + engines: {node: '>=0.10.0'} + dev: true + + /normalize-range@0.1.2: + resolution: {integrity: sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==} + engines: {node: '>=0.10.0'} + dev: true + + /npm-run-path@4.0.1: + resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==} + engines: {node: '>=8'} + dependencies: + path-key: 3.1.1 + dev: true + + /nth-check@2.1.1: + resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==} + dependencies: + boolbase: 1.0.0 + dev: false + + /nwsapi@2.2.7: + resolution: {integrity: sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==} + dev: true + + /object-assign@4.1.1: + resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} + engines: {node: '>=0.10.0'} + + /object-hash@3.0.0: + resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==} + engines: {node: '>= 6'} + dev: true + + /object-inspect@1.12.3: + resolution: {integrity: sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==} + dev: true + + /object-keys@1.1.1: + resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==} + engines: {node: '>= 0.4'} + dev: true + + /object.assign@4.1.4: + resolution: {integrity: sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.0 + has-symbols: 1.0.3 + object-keys: 1.1.1 + dev: true + + /object.entries@1.1.7: + resolution: {integrity: sha512-jCBs/0plmPsOnrKAfFQXRG2NFjlhZgjjcBLSmTnEhU8U6vVTsVe8ANeQJCHTl3gSsI4J+0emOoCgoKlmQPMgmA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.0 + es-abstract: 1.22.1 + dev: true + + /object.fromentries@2.0.7: + resolution: {integrity: sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.0 + es-abstract: 1.22.1 + dev: true + + /object.groupby@1.0.1: + resolution: {integrity: sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ==} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.0 + es-abstract: 1.22.1 + get-intrinsic: 1.2.1 + dev: true + + /object.hasown@1.1.3: + resolution: {integrity: sha512-fFI4VcYpRHvSLXxP7yiZOMAd331cPfd2p7PFDVbgUsYOfCT3tICVqXWngbjr4m49OvsBwUBQ6O2uQoJvy3RexA==} + dependencies: + define-properties: 1.2.0 + es-abstract: 1.22.1 + dev: true + + /object.values@1.1.7: + resolution: {integrity: sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.0 + es-abstract: 1.22.1 + dev: true + + /ofetch@1.3.3: + resolution: {integrity: sha512-s1ZCMmQWXy4b5K/TW9i/DtiN8Ku+xCiHcjQ6/J/nDdssirrQNOoB165Zu8EqLMA2lln1JUth9a0aW9Ap2ctrUg==} + dependencies: + destr: 2.0.1 + node-fetch-native: 1.4.0 + ufo: 1.3.0 + dev: false + + /once@1.4.0: + resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + dependencies: + wrappy: 1.0.2 + dev: true + + /optionator@0.9.3: + resolution: {integrity: sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==} + engines: {node: '>= 0.8.0'} + dependencies: + '@aashutoshrathi/word-wrap': 1.2.6 + deep-is: 0.1.4 + fast-levenshtein: 2.0.6 + levn: 0.4.1 + prelude-ls: 1.2.1 + type-check: 0.4.0 + dev: true + + /p-limit@3.1.0: + resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} + engines: {node: '>=10'} + dependencies: + yocto-queue: 0.1.0 + dev: true + + /p-limit@4.0.0: + resolution: {integrity: sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + yocto-queue: 1.0.0 + dev: true + + /p-locate@5.0.0: + resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} + engines: {node: '>=10'} + dependencies: + p-limit: 3.1.0 + dev: true + + /parent-module@1.0.1: + resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} + engines: {node: '>=6'} + dependencies: + callsites: 3.1.0 + dev: true + + /parse5-htmlparser2-tree-adapter@7.0.0: + resolution: {integrity: sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==} + dependencies: + domhandler: 5.0.3 + parse5: 7.1.2 + dev: false + + /parse5@7.1.2: + resolution: {integrity: sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==} + dependencies: + entities: 4.5.0 + + /path-exists@4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} + engines: {node: '>=8'} + dev: true + + /path-is-absolute@1.0.1: + resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} + engines: {node: '>=0.10.0'} + dev: true + + /path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + dev: true + + /path-parse@1.0.7: + resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} + dev: true + + /path-scurry@1.10.1: + resolution: {integrity: sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + lru-cache: 10.0.1 + minipass: 7.0.3 + dev: true + + /path-to-regexp@1.8.0: + resolution: {integrity: sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==} + dependencies: + isarray: 0.0.1 + dev: false + + /path-type@4.0.0: + resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} + engines: {node: '>=8'} + dev: true + + /pathe@1.1.1: + resolution: {integrity: sha512-d+RQGp0MAYTIaDBIMmOfMwz3E+LOZnxx1HZd5R18mmCZY0QBlK0LDZfPc8FW8Ed2DlvsuE6PRjroDY+wg4+j/Q==} + dev: true + + /pathval@1.1.1: + resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} + dev: true + + /picocolors@1.0.0: + resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} + dev: true + + /picomatch@2.3.1: + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} + engines: {node: '>=8.6'} + dev: true + + /pify@2.3.0: + resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==} + engines: {node: '>=0.10.0'} + dev: true + + /pirates@4.0.6: + resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==} + engines: {node: '>= 6'} + dev: true + + /pkg-types@1.0.3: + resolution: {integrity: sha512-nN7pYi0AQqJnoLPC9eHFQ8AcyaixBUOwvqc5TDnIKCMEE6I0y8P7OKA7fPexsXGCGxQDl/cmrLAp26LhcwxZ4A==} + dependencies: + jsonc-parser: 3.2.0 + mlly: 1.4.1 + pathe: 1.1.1 + dev: true + + /postcss-import@15.1.0(postcss@8.4.31): + resolution: {integrity: sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==} + engines: {node: '>=14.0.0'} + peerDependencies: + postcss: '>=8.4.31' + dependencies: + postcss: 8.4.31 + postcss-value-parser: 4.2.0 + read-cache: 1.0.0 + resolve: 1.22.4 + dev: true + + /postcss-js@4.0.1(postcss@8.4.31): + resolution: {integrity: sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==} + engines: {node: ^12 || ^14 || >= 16} + peerDependencies: + postcss: '>=8.4.31' + dependencies: + camelcase-css: 2.0.1 + postcss: 8.4.31 + dev: true + + /postcss-load-config@4.0.1(postcss@8.4.31): + resolution: {integrity: sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==} + engines: {node: '>= 14'} + peerDependencies: + postcss: '>=8.4.31' + ts-node: '>=9.0.0' + peerDependenciesMeta: + postcss: + optional: true + ts-node: + optional: true + dependencies: + lilconfig: 2.1.0 + postcss: 8.4.31 + yaml: 2.3.2 + dev: true + + /postcss-nested@6.0.1(postcss@8.4.31): + resolution: {integrity: sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==} + engines: {node: '>=12.0'} + peerDependencies: + postcss: '>=8.4.31' + dependencies: + postcss: 8.4.31 + postcss-selector-parser: 6.0.13 + dev: true + + /postcss-selector-parser@6.0.13: + resolution: {integrity: sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==} + engines: {node: '>=4'} + dependencies: + cssesc: 3.0.0 + util-deprecate: 1.0.2 + dev: true + + /postcss-value-parser@4.2.0: + resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==} + dev: true + + /postcss@8.4.31: + resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==} + engines: {node: ^10 || ^12 || >=14} + dependencies: + nanoid: 3.3.6 + picocolors: 1.0.0 + source-map-js: 1.0.2 + dev: true + + /prelude-ls@1.2.1: + resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} + engines: {node: '>= 0.8.0'} + dev: true + + /prettier-linter-helpers@1.0.0: + resolution: {integrity: sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==} + engines: {node: '>=6.0.0'} + dependencies: + fast-diff: 1.3.0 + dev: true + + /prettier-plugin-tailwindcss@0.1.13(prettier@2.8.8): + resolution: {integrity: sha512-/EKQURUrxLu66CMUg4+1LwGdxnz8of7IDvrSLqEtDqhLH61SAlNNUSr90UTvZaemujgl3OH/VHg+fyGltrNixw==} + engines: {node: '>=12.17.0'} + peerDependencies: + prettier: '>=2.2.0' + dependencies: + prettier: 2.8.8 + dev: true + + /prettier@2.8.8: + resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==} + engines: {node: '>=10.13.0'} + hasBin: true + dev: true + + /pretty-bytes@5.6.0: + resolution: {integrity: sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==} + engines: {node: '>=6'} + dev: true + + /pretty-bytes@6.1.1: + resolution: {integrity: sha512-mQUvGU6aUFQ+rNvTIAcZuWGRT9a6f6Yrg9bHs4ImKF+HZCEK+plBvnAZYSIQztknZF2qnzNtr6F8s0+IuptdlQ==} + engines: {node: ^14.13.1 || >=16.0.0} + dev: true + + /pretty-format@27.5.1: + resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + ansi-regex: 5.0.1 + ansi-styles: 5.2.0 + react-is: 17.0.2 + dev: true + + /prop-types@15.8.1: + resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==} + dependencies: + loose-envify: 1.4.0 + object-assign: 4.1.1 + react-is: 16.13.1 + + /psl@1.9.0: + resolution: {integrity: sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==} + dev: true + + /punycode@2.3.0: + resolution: {integrity: sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==} + engines: {node: '>=6'} + dev: true + + /querystringify@2.2.0: + resolution: {integrity: sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==} + dev: true + + /queue-microtask@1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + dev: true + + /randombytes@2.1.0: + resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==} + dependencies: + safe-buffer: 5.2.1 + dev: true + + /react-dom@17.0.2(react@17.0.2): + resolution: {integrity: sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==} + peerDependencies: + react: 17.0.2 + dependencies: + loose-envify: 1.4.0 + object-assign: 4.1.1 + react: 17.0.2 + scheduler: 0.20.2 + dev: false + + /react-fast-compare@3.2.2: + resolution: {integrity: sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==} + dev: false + + /react-ga4@2.1.0: + resolution: {integrity: sha512-ZKS7PGNFqqMd3PJ6+C2Jtz/o1iU9ggiy8Y8nUeksgVuvNISbmrQtJiZNvC/TjDsqD0QlU5Wkgs7i+w9+OjHhhQ==} + dev: false + + /react-google-recaptcha-v3@1.10.1(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-K3AYzSE0SasTn+XvV2tq+6YaxM+zQypk9rbCgG4OVUt7Rh4ze9basIKefoBz9sC0CNslJj9N1uwTTgRMJQbQJQ==} + peerDependencies: + react: ^16.3 || ^17.0 || ^18.0 + react-dom: ^17.0 || ^18.0 + dependencies: + hoist-non-react-statics: 3.3.2 + react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + dev: false + + /react-helmet-async@1.3.0(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-9jZ57/dAn9t3q6hneQS0wukqC2ENOBgMNVEhb/ZG9ZSxUetzVIw4iAmEU38IaVg3QGYauQPhSeUTuIUtFglWpg==} + peerDependencies: + react: ^16.6.0 || ^17.0.0 || ^18.0.0 + react-dom: ^16.6.0 || ^17.0.0 || ^18.0.0 + dependencies: + '@babel/runtime': 7.22.11 + invariant: 2.2.4 + prop-types: 15.8.1 + react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + react-fast-compare: 3.2.2 + shallowequal: 1.1.0 + dev: false + + /react-i18next@12.3.1(i18next@22.5.1)(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-5v8E2XjZDFzK7K87eSwC7AJcAkcLt5xYZ4+yTPDAW1i7C93oOY1dnr4BaQM7un4Hm+GmghuiPvevWwlca5PwDA==} + peerDependencies: + i18next: '>= 19.0.0' + react: '>= 16.8.0' + react-dom: '*' + react-native: '*' + peerDependenciesMeta: + react-dom: + optional: true + react-native: + optional: true + dependencies: + '@babel/runtime': 7.22.11 + html-parse-stringify: 3.0.1 + i18next: 22.5.1 + react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + dev: false + + /react-is@16.13.1: + resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} + + /react-is@17.0.2: + resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==} + dev: true + + /react-refresh@0.14.0: + resolution: {integrity: sha512-wViHqhAd8OHeLS/IRMJjTSDHF3U9eWi62F/MledQGPdJGDhodXJ9PBLNGr6WWL7qlH12Mt3TyTpbS+hGXMjCzQ==} + engines: {node: '>=0.10.0'} + dev: true + + /react-router-dom@5.3.4(react@17.0.2): + resolution: {integrity: sha512-m4EqFMHv/Ih4kpcBCONHbkT68KoAeHN4p3lAGoNryfHi0dMy0kCzEZakiKRsvg5wHZ/JLrLW8o8KomWiz/qbYQ==} + peerDependencies: + react: '>=15' + dependencies: + '@babel/runtime': 7.22.11 + history: 4.10.1 + loose-envify: 1.4.0 + prop-types: 15.8.1 + react: 17.0.2 + react-router: 5.3.4(react@17.0.2) + tiny-invariant: 1.3.1 + tiny-warning: 1.0.3 + dev: false + + /react-router@5.3.4(react@17.0.2): + resolution: {integrity: sha512-Ys9K+ppnJah3QuaRiLxk+jDWOR1MekYQrlytiXxC1RyfbdsZkS5pvKAzCCr031xHixZwpnsYNT5xysdFHQaYsA==} + peerDependencies: + react: '>=15' + dependencies: + '@babel/runtime': 7.22.11 + history: 4.10.1 + hoist-non-react-statics: 3.3.2 + loose-envify: 1.4.0 + path-to-regexp: 1.8.0 + prop-types: 15.8.1 + react: 17.0.2 + react-is: 16.13.1 + tiny-invariant: 1.3.1 + tiny-warning: 1.0.3 + dev: false + + /react-sticky-el@2.1.0(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-oo+a2GedF4QMfCfm20e9gD+RuuQp/ngvwGMUXAXpST+h4WnmKhuv7x6MQ4X/e3AHiLYgE0zDyJo1Pzo8m51KpA==} + peerDependencies: + react: '>=16.3.0' + react-dom: '>=16.3.0' + dependencies: + react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + dev: false + + /react-universal-interface@0.6.2(react@17.0.2)(tslib@2.6.2): + resolution: {integrity: sha512-dg8yXdcQmvgR13RIlZbTRQOoUrDciFVoSBZILwjE2LFISxZZ8loVJKAkuzswl5js8BHda79bIb2b84ehU8IjXw==} + peerDependencies: + react: '*' + tslib: '*' + dependencies: + react: 17.0.2 + tslib: 2.6.2 + dev: false + + /react-use@17.4.0(react-dom@17.0.2)(react@17.0.2): + resolution: {integrity: sha512-TgbNTCA33Wl7xzIJegn1HndB4qTS9u03QUwyNycUnXaweZkE4Kq2SB+Yoxx8qbshkZGYBDvUXbXWRUmQDcZZ/Q==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 + dependencies: + '@types/js-cookie': 2.2.7 + '@xobotyi/scrollbar-width': 1.9.5 + copy-to-clipboard: 3.3.3 + fast-deep-equal: 3.1.3 + fast-shallow-equal: 1.0.0 + js-cookie: 2.2.1 + nano-css: 5.3.5(react-dom@17.0.2)(react@17.0.2) + react: 17.0.2 + react-dom: 17.0.2(react@17.0.2) + react-universal-interface: 0.6.2(react@17.0.2)(tslib@2.6.2) + resize-observer-polyfill: 1.5.1 + screenfull: 5.2.0 + set-harmonic-interval: 1.0.1 + throttle-debounce: 3.0.1 + ts-easing: 0.2.0 + tslib: 2.6.2 + dev: false + + /react@17.0.2: + resolution: {integrity: sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==} + engines: {node: '>=0.10.0'} + dependencies: + loose-envify: 1.4.0 + object-assign: 4.1.1 + dev: false + + /read-cache@1.0.0: + resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==} + dependencies: + pify: 2.3.0 + dev: true + + /readdirp@3.6.0: + resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} + engines: {node: '>=8.10.0'} + dependencies: + picomatch: 2.3.1 + dev: true + + /regenerate-unicode-properties@10.1.0: + resolution: {integrity: sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==} + engines: {node: '>=4'} + dependencies: + regenerate: 1.4.2 + dev: true + + /regenerate@1.4.2: + resolution: {integrity: sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==} + dev: true + + /regenerator-runtime@0.14.0: + resolution: {integrity: sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==} + + /regenerator-transform@0.15.2: + resolution: {integrity: sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==} + dependencies: + '@babel/runtime': 7.22.11 + dev: true + + /regexp.prototype.flags@1.5.0: + resolution: {integrity: sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.0 + functions-have-names: 1.2.3 + dev: true + + /regexpu-core@5.3.2: + resolution: {integrity: sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==} + engines: {node: '>=4'} + dependencies: + '@babel/regjsgen': 0.8.0 + regenerate: 1.4.2 + regenerate-unicode-properties: 10.1.0 + regjsparser: 0.9.1 + unicode-match-property-ecmascript: 2.0.0 + unicode-match-property-value-ecmascript: 2.1.0 + dev: true + + /regjsparser@0.9.1: + resolution: {integrity: sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==} + hasBin: true + dependencies: + jsesc: 0.5.0 + dev: true + + /require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + dev: true + + /requires-port@1.0.0: + resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==} + dev: true + + /resize-observer-polyfill@1.5.1: + resolution: {integrity: sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==} + dev: false + + /resolve-from@4.0.0: + resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} + engines: {node: '>=4'} + dev: true + + /resolve-pathname@3.0.0: + resolution: {integrity: sha512-C7rARubxI8bXFNB/hqcp/4iUeIXJhJZvFPFPiSPRnhU5UPxzMFIl+2E6yY6c4k9giDJAhtV+enfA+G89N6Csng==} + dev: false + + /resolve@1.22.4: + resolution: {integrity: sha512-PXNdCiPqDqeUou+w1C2eTQbNfxKSuMxqTCuvlmmMsk1NWHL5fRrhY6Pl0qEYYc6+QqGClco1Qj8XnjPego4wfg==} + hasBin: true + dependencies: + is-core-module: 2.13.0 + path-parse: 1.0.7 + supports-preserve-symlinks-flag: 1.0.0 + dev: true + + /resolve@2.0.0-next.4: + resolution: {integrity: sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==} + hasBin: true + dependencies: + is-core-module: 2.13.0 + path-parse: 1.0.7 + supports-preserve-symlinks-flag: 1.0.0 + dev: true + + /reusify@1.0.4: + resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + dev: true + + /rimraf@3.0.2: + resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} + hasBin: true + dependencies: + glob: 7.2.3 + dev: true + + /rollup-plugin-terser@7.0.2(rollup@2.79.1): + resolution: {integrity: sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==} + deprecated: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser + peerDependencies: + rollup: ^2.0.0 + dependencies: + '@babel/code-frame': 7.22.13 + jest-worker: 26.6.2 + rollup: 2.79.1 + serialize-javascript: 4.0.0 + terser: 5.19.3 + dev: true + + /rollup@2.79.1: + resolution: {integrity: sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==} + engines: {node: '>=10.0.0'} + hasBin: true + optionalDependencies: + fsevents: 2.3.3 + dev: true + + /rollup@3.28.1: + resolution: {integrity: sha512-R9OMQmIHJm9znrU3m3cpE8uhN0fGdXiawME7aZIpQqvpS/85+Vt1Hq1/yVIcYfOmaQiHjvXkQAoJukvLpau6Yw==} + engines: {node: '>=14.18.0', npm: '>=8.0.0'} + hasBin: true + optionalDependencies: + fsevents: 2.3.3 + dev: true + + /rrweb-cssom@0.6.0: + resolution: {integrity: sha512-APM0Gt1KoXBz0iIkkdB/kfvGOwC4UuJFeG/c+yV7wSc7q96cG/kJ0HiYCnzivD9SB53cLV1MlHFNfOuPaadYSw==} + dev: true + + /rtl-css-js@1.16.1: + resolution: {integrity: sha512-lRQgou1mu19e+Ya0LsTvKrVJ5TYUbqCVPAiImX3UfLTenarvPUl1QFdvu5Z3PYmHT9RCcwIfbjRQBntExyj3Zg==} + dependencies: + '@babel/runtime': 7.22.11 + dev: false + + /run-parallel@1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + dependencies: + queue-microtask: 1.2.3 + dev: true + + /safe-array-concat@1.0.0: + resolution: {integrity: sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ==} + engines: {node: '>=0.4'} + dependencies: + call-bind: 1.0.2 + get-intrinsic: 1.2.1 + has-symbols: 1.0.3 + isarray: 2.0.5 + dev: true + + /safe-buffer@5.2.1: + resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} + dev: true + + /safe-regex-test@1.0.0: + resolution: {integrity: sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==} + dependencies: + call-bind: 1.0.2 + get-intrinsic: 1.2.1 + is-regex: 1.1.4 + dev: true + + /safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + dev: true + + /saxes@6.0.0: + resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==} + engines: {node: '>=v12.22.7'} + dependencies: + xmlchars: 2.2.0 + dev: true + + /scheduler@0.20.2: + resolution: {integrity: sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==} + dependencies: + loose-envify: 1.4.0 + object-assign: 4.1.1 + dev: false + + /screenfull@5.2.0: + resolution: {integrity: sha512-9BakfsO2aUQN2K9Fdbj87RJIEZ82Q9IGim7FqM5OsebfoFC6ZHXgDq/KvniuLTPdeM8wY2o6Dj3WQ7KeQCj3cA==} + engines: {node: '>=0.10.0'} + dev: false + + /semver@6.3.1: + resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} + hasBin: true + dev: true + + /semver@7.5.4: + resolution: {integrity: sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==} + engines: {node: '>=10'} + hasBin: true + dependencies: + lru-cache: 6.0.0 + dev: true + + /serialize-javascript@4.0.0: + resolution: {integrity: sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==} + dependencies: + randombytes: 2.1.0 + dev: true + + /set-harmonic-interval@1.0.1: + resolution: {integrity: sha512-AhICkFV84tBP1aWqPwLZqFvAwqEoVA9kxNMniGEUvzOlm4vLmOFLiTT3UZ6bziJTy4bOVpzWGTfSCbmaayGx8g==} + engines: {node: '>=6.9'} + dev: false + + /shallowequal@1.1.0: + resolution: {integrity: sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==} + dev: false + + /shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + dependencies: + shebang-regex: 3.0.0 + dev: true + + /shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + dev: true + + /side-channel@1.0.4: + resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==} + dependencies: + call-bind: 1.0.2 + get-intrinsic: 1.2.1 + object-inspect: 1.12.3 + dev: true + + /siginfo@2.0.0: + resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} + dev: true + + /signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + dev: true + + /simple-swizzle@0.2.2: + resolution: {integrity: sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==} + dependencies: + is-arrayish: 0.3.2 + dev: true + + /slash@3.0.0: + resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} + engines: {node: '>=8'} + dev: true + + /slice-ansi@5.0.0: + resolution: {integrity: sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==} + engines: {node: '>=12'} + dependencies: + ansi-styles: 6.2.1 + is-fullwidth-code-point: 4.0.0 + dev: true + + /slugify@1.6.6: + resolution: {integrity: sha512-h+z7HKHYXj6wJU+AnS/+IH8Uh9fdcX1Lrhg1/VMdf9PwoBQXFcXiAdsy2tSK0P6gKwJLXp02r90ahUCqHk9rrw==} + engines: {node: '>=8.0.0'} + dev: false + + /source-map-js@1.0.2: + resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} + engines: {node: '>=0.10.0'} + dev: true + + /source-map-support@0.5.21: + resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} + dependencies: + buffer-from: 1.1.2 + source-map: 0.6.1 + dev: true + + /source-map@0.5.6: + resolution: {integrity: sha512-MjZkVp0NHr5+TPihLcadqnlVoGIoWo4IBHptutGh9wI3ttUYvCG26HkSuDi+K6lsZ25syXJXcctwgyVCt//xqA==} + engines: {node: '>=0.10.0'} + dev: false + + /source-map@0.6.1: + resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} + engines: {node: '>=0.10.0'} + + /source-map@0.8.0-beta.0: + resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==} + engines: {node: '>= 8'} + dependencies: + whatwg-url: 7.1.0 + dev: true + + /sourcemap-codec@1.4.8: + resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==} + deprecated: Please use @jridgewell/sourcemap-codec instead + + /stack-generator@2.0.10: + resolution: {integrity: sha512-mwnua/hkqM6pF4k8SnmZ2zfETsRUpWXREfA/goT8SLCV4iOFa4bzOX2nDipWAZFPTjLvQB82f5yaodMVhK0yJQ==} + dependencies: + stackframe: 1.3.4 + dev: false + + /stackback@0.0.2: + resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} + dev: true + + /stackframe@1.3.4: + resolution: {integrity: sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==} + dev: false + + /stacktrace-gps@3.1.2: + resolution: {integrity: sha512-GcUgbO4Jsqqg6RxfyTHFiPxdPqF+3LFmQhm7MgCuYQOYuWyqxo5pwRPz5d/u6/WYJdEnWfK4r+jGbyD8TSggXQ==} + dependencies: + source-map: 0.5.6 + stackframe: 1.3.4 + dev: false + + /stacktrace-js@2.0.2: + resolution: {integrity: sha512-Je5vBeY4S1r/RnLydLl0TBTi3F2qdfWmYsGvtfZgEI+SCprPppaIhQf5nGcal4gI4cGpCV/duLcAzT1np6sQqg==} + dependencies: + error-stack-parser: 2.1.4 + stack-generator: 2.0.10 + stacktrace-gps: 3.1.2 + dev: false + + /std-env@3.4.3: + resolution: {integrity: sha512-f9aPhy8fYBuMN+sNfakZV18U39PbalgjXG3lLB9WkaYTxijru61wb57V9wxxNthXM5Sd88ETBWi29qLAsHO52Q==} + dev: true + + /string-width@4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + dev: true + + /string-width@5.1.2: + resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} + engines: {node: '>=12'} + dependencies: + eastasianwidth: 0.2.0 + emoji-regex: 9.2.2 + strip-ansi: 7.1.0 + dev: true + + /string.prototype.matchall@4.0.9: + resolution: {integrity: sha512-6i5hL3MqG/K2G43mWXWgP+qizFW/QH/7kCNN13JrJS5q48FN5IKksLDscexKP3dnmB6cdm9jlNgAsWNLpSykmA==} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.0 + es-abstract: 1.22.1 + get-intrinsic: 1.2.1 + has-symbols: 1.0.3 + internal-slot: 1.0.5 + regexp.prototype.flags: 1.5.0 + side-channel: 1.0.4 + dev: true + + /string.prototype.trim@1.2.7: + resolution: {integrity: sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.0 + es-abstract: 1.22.1 + dev: true + + /string.prototype.trimend@1.0.6: + resolution: {integrity: sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.0 + es-abstract: 1.22.1 + dev: true + + /string.prototype.trimstart@1.0.6: + resolution: {integrity: sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==} + dependencies: + call-bind: 1.0.2 + define-properties: 1.2.0 + es-abstract: 1.22.1 + dev: true + + /stringify-object@3.3.0: + resolution: {integrity: sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw==} + engines: {node: '>=4'} + dependencies: + get-own-enumerable-property-symbols: 3.0.2 + is-obj: 1.0.1 + is-regexp: 1.0.0 + dev: true + + /strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + dependencies: + ansi-regex: 5.0.1 + dev: true + + /strip-ansi@7.1.0: + resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} + engines: {node: '>=12'} + dependencies: + ansi-regex: 6.0.1 + dev: true + + /strip-bom@3.0.0: + resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} + engines: {node: '>=4'} + dev: true + + /strip-comments@2.0.1: + resolution: {integrity: sha512-ZprKx+bBLXv067WTCALv8SSz5l2+XhpYCsVtSqlMnkAXMWDq+/ekVbl1ghqP9rUHTzv6sm/DwCOiYutU/yp1fw==} + engines: {node: '>=10'} + dev: true + + /strip-json-comments@3.1.1: + resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} + engines: {node: '>=8'} + dev: true + + /strip-literal@1.3.0: + resolution: {integrity: sha512-PugKzOsyXpArk0yWmUwqOZecSO0GH0bPoctLcqNDH9J04pVW3lflYE0ujElBGTloevcxF5MofAOZ7C5l2b+wLg==} + dependencies: + acorn: 8.10.0 + dev: true + + /stylis@4.3.0: + resolution: {integrity: sha512-E87pIogpwUsUwXw7dNyU4QDjdgVMy52m+XEOPEKUn161cCzWjjhPSQhByfd1CcNvrOLnXQ6OnnZDwnJrz/Z4YQ==} + dev: false + + /subsrt-ts@2.1.1: + resolution: {integrity: sha512-E+GiLNG4L82yRDswd4ys34OUfJLNN6ZBdtefE7ftn/WJchjvyJ9dNXuXYviNglrqiCqNyayGGUZE3v9aL7zIYg==} + hasBin: true + dev: false + + /sucrase@3.34.0: + resolution: {integrity: sha512-70/LQEZ07TEcxiU2dz51FKaE6hCTWC6vr7FOk3Gr0U60C3shtAN+H+BFr9XlYe5xqf3RA8nrc+VIwzCfnxuXJw==} + engines: {node: '>=8'} + hasBin: true + dependencies: + '@jridgewell/gen-mapping': 0.3.3 + commander: 4.1.1 + glob: 7.1.6 + lines-and-columns: 1.2.4 + mz: 2.7.0 + pirates: 4.0.6 + ts-interface-checker: 0.1.13 + dev: true + + /supports-color@5.5.0: + resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} + engines: {node: '>=4'} + dependencies: + has-flag: 3.0.0 + dev: true + + /supports-color@7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} + dependencies: + has-flag: 4.0.0 + dev: true + + /supports-preserve-symlinks-flag@1.0.0: + resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} + engines: {node: '>= 0.4'} + dev: true + + /symbol-tree@3.2.4: + resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==} + dev: true + + /tabbable@6.2.0: + resolution: {integrity: sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==} + dev: false + + /tailwind-scrollbar@2.1.0(tailwindcss@3.3.3): + resolution: {integrity: sha512-zpvY5mDs0130YzYjZKBiDaw32rygxk5RyJ4KmeHjGnwkvbjm/PszON1m4Bbt2DkMRIXlXsfNevykAESgURN4KA==} + engines: {node: '>=12.13.0'} + peerDependencies: + tailwindcss: 3.x + dependencies: + tailwindcss: 3.3.3 + dev: true + + /tailwindcss-themer@3.1.0(tailwindcss@3.3.3): + resolution: {integrity: sha512-IfgxpCxWm5rRK3Q7aTvVyhQ/7tyyn8EJl5tFak5tS+/n8oXT7OGfv8praYepR7+IsM92waAuBDZng1HgnstrYA==} + peerDependencies: + tailwindcss: ^3.1.0 + dependencies: + color: 4.2.3 + just-unique: 4.2.0 + lodash.merge: 4.6.2 + lodash.mergewith: 4.6.2 + tailwindcss: 3.3.3 + dev: true + + /tailwindcss@3.3.3: + resolution: {integrity: sha512-A0KgSkef7eE4Mf+nKJ83i75TMyq8HqY3qmFIJSWy8bNt0v1lG7jUcpGpoTFxAwYcWOphcTBLPPJg+bDfhDf52w==} + engines: {node: '>=14.0.0'} + hasBin: true + dependencies: + '@alloc/quick-lru': 5.2.0 + arg: 5.0.2 + chokidar: 3.5.3 + didyoumean: 1.2.2 + dlv: 1.1.3 + fast-glob: 3.3.1 + glob-parent: 6.0.2 + is-glob: 4.0.3 + jiti: 1.19.3 + lilconfig: 2.1.0 + micromatch: 4.0.5 + normalize-path: 3.0.0 + object-hash: 3.0.0 + picocolors: 1.0.0 + postcss: 8.4.31 + postcss-import: 15.1.0(postcss@8.4.31) + postcss-js: 4.0.1(postcss@8.4.31) + postcss-load-config: 4.0.1(postcss@8.4.31) + postcss-nested: 6.0.1(postcss@8.4.31) + postcss-selector-parser: 6.0.13 + resolve: 1.22.4 + sucrase: 3.34.0 + transitivePeerDependencies: + - ts-node + dev: true + + /temp-dir@2.0.0: + resolution: {integrity: sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==} + engines: {node: '>=8'} + dev: true + + /tempy@0.6.0: + resolution: {integrity: sha512-G13vtMYPT/J8A4X2SjdtBTphZlrp1gKv6hZiOjw14RCWg6GbHuQBGtjlx75xLbYV/wEc0D7G5K4rxKP/cXk8Bw==} + engines: {node: '>=10'} + dependencies: + is-stream: 2.0.1 + temp-dir: 2.0.0 + type-fest: 0.16.0 + unique-string: 2.0.0 + dev: true + + /terser@5.19.3: + resolution: {integrity: sha512-pQzJ9UJzM0IgmT4FAtYI6+VqFf0lj/to58AV0Xfgg0Up37RyPG7Al+1cepC6/BVuAxR9oNb41/DL4DEoHJvTdg==} + engines: {node: '>=10'} + hasBin: true + dependencies: + '@jridgewell/source-map': 0.3.5 + acorn: 8.10.0 + commander: 2.20.3 + source-map-support: 0.5.21 + dev: true + + /text-table@0.2.0: + resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} + dev: true + + /thenify-all@1.6.0: + resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==} + engines: {node: '>=0.8'} + dependencies: + thenify: 3.3.1 + dev: true + + /thenify@3.3.1: + resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==} + dependencies: + any-promise: 1.3.0 + dev: true + + /throttle-debounce@3.0.1: + resolution: {integrity: sha512-dTEWWNu6JmeVXY0ZYoPuH5cRIwc0MeGbJwah9KUNYSJwommQpCzTySTpEe8Gs1J23aeWEuAobe4Ag7EHVt/LOg==} + engines: {node: '>=10'} + dev: false + + /tiny-invariant@1.3.1: + resolution: {integrity: sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw==} + + /tiny-warning@1.0.3: + resolution: {integrity: sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==} + dev: false + + /tinybench@2.5.0: + resolution: {integrity: sha512-kRwSG8Zx4tjF9ZiyH4bhaebu+EDz1BOx9hOigYHlUW4xxI/wKIUQUqo018UlU4ar6ATPBsaMrdbKZ+tmPdohFA==} + dev: true + + /tinypool@0.3.1: + resolution: {integrity: sha512-zLA1ZXlstbU2rlpA4CIeVaqvWq41MTWqLY3FfsAXgC8+f7Pk7zroaJQxDgxn1xNudKW6Kmj4808rPFShUlIRmQ==} + engines: {node: '>=14.0.0'} + dev: true + + /tinyspy@1.1.1: + resolution: {integrity: sha512-UVq5AXt/gQlti7oxoIg5oi/9r0WpF7DGEVwXgqWSMmyN16+e3tl5lIvTaOpJ3TAtu5xFzWccFRM4R5NaWHF+4g==} + engines: {node: '>=14.0.0'} + dev: true + + /to-fast-properties@2.0.0: + resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==} + engines: {node: '>=4'} + dev: true + + /to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + dependencies: + is-number: 7.0.0 + dev: true + + /toggle-selection@1.0.6: + resolution: {integrity: sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ==} + dev: false + + /tough-cookie@4.1.3: + resolution: {integrity: sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==} + engines: {node: '>=6'} + dependencies: + psl: 1.9.0 + punycode: 2.3.0 + universalify: 0.2.0 + url-parse: 1.5.10 + dev: true + + /tr46@0.0.3: + resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} + dev: false + + /tr46@1.0.1: + resolution: {integrity: sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==} + dependencies: + punycode: 2.3.0 + dev: true + + /tr46@4.1.1: + resolution: {integrity: sha512-2lv/66T7e5yNyhAAC4NaKe5nVavzuGJQVVtRYLyQ2OI8tsJ61PMLlelehb0wi2Hx6+hT/OJUWZcw8MjlSRnxvw==} + engines: {node: '>=14'} + dependencies: + punycode: 2.3.0 + dev: true + + /ts-easing@0.2.0: + resolution: {integrity: sha512-Z86EW+fFFh/IFB1fqQ3/+7Zpf9t2ebOAxNI/V6Wo7r5gqiqtxmgTlQ1qbqQcjLKYeSHPTsEmvlJUDg/EuL0uHQ==} + dev: false + + /ts-interface-checker@0.1.13: + resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} + dev: true + + /tsconfig-paths@3.14.2: + resolution: {integrity: sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==} + dependencies: + '@types/json5': 0.0.29 + json5: 1.0.2 + minimist: 1.2.8 + strip-bom: 3.0.0 + dev: true + + /tslib@1.14.1: + resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} + dev: true + + /tslib@2.6.2: + resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} + dev: false + + /tsutils@3.21.0(typescript@4.9.5): + resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} + engines: {node: '>= 6'} + peerDependencies: + typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta' + dependencies: + tslib: 1.14.1 + typescript: 4.9.5 + dev: true + + /type-check@0.4.0: + resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} + engines: {node: '>= 0.8.0'} + dependencies: + prelude-ls: 1.2.1 + dev: true + + /type-detect@4.0.8: + resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==} + engines: {node: '>=4'} + dev: true + + /type-fest@0.16.0: + resolution: {integrity: sha512-eaBzG6MxNzEn9kiwvtre90cXaNLkmadMWa1zQMs3XORCXNbsH/OewwbxC5ia9dCxIxnTAsSxXJaa/p5y8DlvJg==} + engines: {node: '>=10'} + dev: true + + /type-fest@0.20.2: + resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} + engines: {node: '>=10'} + dev: true + + /type-fest@0.21.3: + resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==} + engines: {node: '>=10'} + dev: true + + /type-fest@4.3.3: + resolution: {integrity: sha512-bxhiFii6BBv6UiSDq7uKTMyADT9unXEl3ydGefndVLxFeB44LRbT4K7OJGDYSyDrKnklCC1Pre68qT2wbUl2Aw==} + engines: {node: '>=16'} + dev: true + + /typed-array-buffer@1.0.0: + resolution: {integrity: sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + get-intrinsic: 1.2.1 + is-typed-array: 1.1.12 + dev: true + + /typed-array-byte-length@1.0.0: + resolution: {integrity: sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + for-each: 0.3.3 + has-proto: 1.0.1 + is-typed-array: 1.1.12 + dev: true + + /typed-array-byte-offset@1.0.0: + resolution: {integrity: sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==} + engines: {node: '>= 0.4'} + dependencies: + available-typed-arrays: 1.0.5 + call-bind: 1.0.2 + for-each: 0.3.3 + has-proto: 1.0.1 + is-typed-array: 1.1.12 + dev: true + + /typed-array-length@1.0.4: + resolution: {integrity: sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==} + dependencies: + call-bind: 1.0.2 + for-each: 0.3.3 + is-typed-array: 1.1.12 + dev: true + + /typescript@4.9.5: + resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} + engines: {node: '>=4.2.0'} + hasBin: true + + /ufo@1.3.0: + resolution: {integrity: sha512-bRn3CsoojyNStCZe0BG0Mt4Nr/4KF+rhFlnNXybgqt5pXHNFRlqinSoQaTrGyzE4X8aHplSb+TorH+COin9Yxw==} + + /uglify-js@3.17.4: + resolution: {integrity: sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==} + engines: {node: '>=0.8.0'} + hasBin: true + requiresBuild: true + dev: true + optional: true + + /unbox-primitive@1.0.2: + resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} + dependencies: + call-bind: 1.0.2 + has-bigints: 1.0.2 + has-symbols: 1.0.3 + which-boxed-primitive: 1.0.2 + dev: true + + /unicode-canonical-property-names-ecmascript@2.0.0: + resolution: {integrity: sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==} + engines: {node: '>=4'} + dev: true + + /unicode-match-property-ecmascript@2.0.0: + resolution: {integrity: sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==} + engines: {node: '>=4'} + dependencies: + unicode-canonical-property-names-ecmascript: 2.0.0 + unicode-property-aliases-ecmascript: 2.1.0 + dev: true + + /unicode-match-property-value-ecmascript@2.1.0: + resolution: {integrity: sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==} + engines: {node: '>=4'} + dev: true + + /unicode-property-aliases-ecmascript@2.1.0: + resolution: {integrity: sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==} + engines: {node: '>=4'} + dev: true + + /unique-string@2.0.0: + resolution: {integrity: sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==} + engines: {node: '>=8'} + dependencies: + crypto-random-string: 2.0.0 + dev: true + + /universalify@0.2.0: + resolution: {integrity: sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==} + engines: {node: '>= 4.0.0'} + dev: true + + /universalify@2.0.0: + resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==} + engines: {node: '>= 10.0.0'} + dev: true + + /unpacker@1.0.1: + resolution: {integrity: sha512-0HTljwp8+JBdITpoHcK1LWi7X9U2BspUmWv78UWZh7NshYhbh1nec8baY/iSbe2OQTZ2bhAtVdnr6/BTD0DKVg==} + dev: false + + /upath@1.2.0: + resolution: {integrity: sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==} + engines: {node: '>=4'} + dev: true + + /update-browserslist-db@1.0.11(browserslist@4.21.10): + resolution: {integrity: sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==} + hasBin: true + peerDependencies: + browserslist: '>= 4.21.0' + dependencies: + browserslist: 4.21.10 + escalade: 3.1.1 + picocolors: 1.0.0 + dev: true + + /uri-js@4.4.1: + resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} + dependencies: + punycode: 2.3.0 + dev: true + + /url-parse@1.5.10: + resolution: {integrity: sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==} + dependencies: + querystringify: 2.2.0 + requires-port: 1.0.0 + dev: true + + /use-sync-external-store@1.2.0(react@17.0.2): + resolution: {integrity: sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + dependencies: + react: 17.0.2 + dev: false + + /util-deprecate@1.0.2: + resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} + dev: true + + /value-equal@1.0.1: + resolution: {integrity: sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw==} + dev: false + + /vite-node@0.28.5(@types/node@17.0.45): + resolution: {integrity: sha512-LmXb9saMGlrMZbXTvOveJKwMTBTNUH66c8rJnQ0ZPNX+myPEol64+szRzXtV5ORb0Hb/91yq+/D3oERoyAt6LA==} + engines: {node: '>=v14.16.0'} + hasBin: true + dependencies: + cac: 6.7.14 + debug: 4.3.4 + mlly: 1.4.1 + pathe: 1.1.1 + picocolors: 1.0.0 + source-map: 0.6.1 + source-map-support: 0.5.21 + vite: 4.4.12(@types/node@17.0.45) + transitivePeerDependencies: + - '@types/node' + - less + - lightningcss + - sass + - stylus + - sugarss + - supports-color + - terser + dev: true + + /vite-plugin-checker@0.5.6(eslint@8.48.0)(typescript@4.9.5)(vite@4.4.12): + resolution: {integrity: sha512-ftRyON0gORUHDxcDt2BErmsikKSkfvl1i2DoP6Jt2zDO9InfvM6tqO1RkXhSjkaXEhKPea6YOnhFaZxW3BzudQ==} + engines: {node: '>=14.16'} + peerDependencies: + eslint: '>=7' + meow: ^9.0.0 + optionator: ^0.9.1 + stylelint: '>=13' + typescript: '*' + vite: '>=2.0.0' + vls: '*' + vti: '*' + vue-tsc: '*' + peerDependenciesMeta: + eslint: + optional: true + meow: + optional: true + optionator: + optional: true + stylelint: + optional: true + typescript: + optional: true + vls: + optional: true + vti: + optional: true + vue-tsc: + optional: true + dependencies: + '@babel/code-frame': 7.22.13 + ansi-escapes: 4.3.2 + chalk: 4.1.2 + chokidar: 3.5.3 + commander: 8.3.0 + eslint: 8.48.0 + fast-glob: 3.3.1 + fs-extra: 11.1.1 + lodash.debounce: 4.0.8 + lodash.pick: 4.4.0 + npm-run-path: 4.0.1 + strip-ansi: 6.0.1 + tiny-invariant: 1.3.1 + typescript: 4.9.5 + vite: 4.4.12(@types/node@17.0.45) + vscode-languageclient: 7.0.0 + vscode-languageserver: 7.0.0 + vscode-languageserver-textdocument: 1.0.8 + vscode-uri: 3.0.7 + dev: true + + /vite-plugin-package-version@1.0.2(vite@4.4.12): + resolution: {integrity: sha512-xCJMR0KD4rqSUwINyHJlLizio2VzYzaMrRkqC9xWaVGXgw1lIrzdD+wBUf1XDM8EhL1JoQ7aykLOfKrlZd1SoQ==} + peerDependencies: + vite: '>=2.0.0-beta.69' + dependencies: + vite: 4.4.12(@types/node@17.0.45) + dev: true + + /vite-plugin-pwa@0.16.5(vite@4.4.12)(workbox-build@7.0.0)(workbox-window@7.0.0): + resolution: {integrity: sha512-Ahol4dwhMP2UHPQXkllSlXbihOaDFnvBIDPmAxoSZ1EObBUJGP4CMRyCyAVkIHjd6/H+//vH0DM2ON+XxHr81g==} + engines: {node: '>=16.0.0'} + peerDependencies: + vite: ^3.1.0 || ^4.0.0 + workbox-build: ^7.0.0 + workbox-window: ^7.0.0 + dependencies: + debug: 4.3.4 + fast-glob: 3.3.1 + pretty-bytes: 6.1.1 + vite: 4.4.12(@types/node@17.0.45) + workbox-build: 7.0.0 + workbox-window: 7.0.0 + transitivePeerDependencies: + - supports-color + dev: true + + /vite-plugin-static-copy@0.16.0(vite@4.4.12): + resolution: {integrity: sha512-dMVEg5Z2SwYRgQnHZaeokvSKB4p/TOTf65JU4sP3U6ccSBsukqdtDOjpmT+xzTFHAA8WJjcS31RMLjUdWQCBzw==} + engines: {node: ^14.18.0 || >=16.0.0} + peerDependencies: + vite: ^3.0.0 || ^4.0.0 + dependencies: + chokidar: 3.5.3 + fast-glob: 3.3.1 + fs-extra: 11.1.1 + picocolors: 1.0.0 + vite: 4.4.12(@types/node@17.0.45) + dev: true + + /vite@4.4.12(@types/node@17.0.45): + resolution: {integrity: sha512-KtPlUbWfxzGVul8Nut8Gw2Qe8sBzWY+8QVc5SL8iRFnpnrcoCaNlzO40c1R6hPmcdTwIPEDkq0Y9+27a5tVbdQ==} + engines: {node: ^14.18.0 || >=16.0.0} + hasBin: true + peerDependencies: + '@types/node': '>= 14' + less: '*' + lightningcss: ^1.21.0 + sass: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 + peerDependenciesMeta: + '@types/node': + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + dependencies: + '@types/node': 17.0.45 + esbuild: 0.18.20 + postcss: 8.4.31 + rollup: 3.28.1 + optionalDependencies: + fsevents: 2.3.3 + dev: true + + /vitest@0.28.5(jsdom@21.1.2): + resolution: {integrity: sha512-pyCQ+wcAOX7mKMcBNkzDwEHRGqQvHUl0XnoHR+3Pb1hytAHISgSxv9h0gUiSiYtISXUU3rMrKiKzFYDrI6ZIHA==} + engines: {node: '>=v14.16.0'} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@vitest/browser': '*' + '@vitest/ui': '*' + happy-dom: '*' + jsdom: '*' + peerDependenciesMeta: + '@edge-runtime/vm': + optional: true + '@vitest/browser': + optional: true + '@vitest/ui': + optional: true + happy-dom: + optional: true + jsdom: + optional: true + dependencies: + '@types/chai': 4.3.5 + '@types/chai-subset': 1.3.3 + '@types/node': 17.0.45 + '@vitest/expect': 0.28.5 + '@vitest/runner': 0.28.5 + '@vitest/spy': 0.28.5 + '@vitest/utils': 0.28.5 + acorn: 8.10.0 + acorn-walk: 8.2.0 + cac: 6.7.14 + chai: 4.3.8 + debug: 4.3.4 + jsdom: 21.1.2 + local-pkg: 0.4.3 + pathe: 1.1.1 + picocolors: 1.0.0 + source-map: 0.6.1 + std-env: 3.4.3 + strip-literal: 1.3.0 + tinybench: 2.5.0 + tinypool: 0.3.1 + tinyspy: 1.1.1 + vite: 4.4.12(@types/node@17.0.45) + vite-node: 0.28.5(@types/node@17.0.45) + why-is-node-running: 2.2.2 + transitivePeerDependencies: + - less + - lightningcss + - sass + - stylus + - sugarss + - supports-color + - terser + dev: true + + /void-elements@3.1.0: + resolution: {integrity: sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==} + engines: {node: '>=0.10.0'} + dev: false + + /vscode-jsonrpc@6.0.0: + resolution: {integrity: sha512-wnJA4BnEjOSyFMvjZdpiOwhSq9uDoK8e/kpRJDTaMYzwlkrhG1fwDIZI94CLsLzlCK5cIbMMtFlJlfR57Lavmg==} + engines: {node: '>=8.0.0 || >=10.0.0'} + dev: true + + /vscode-languageclient@7.0.0: + resolution: {integrity: sha512-P9AXdAPlsCgslpP9pRxYPqkNYV7Xq8300/aZDpO35j1fJm/ncize8iGswzYlcvFw5DQUx4eVk+KvfXdL0rehNg==} + engines: {vscode: ^1.52.0} + dependencies: + minimatch: 3.1.2 + semver: 7.5.4 + vscode-languageserver-protocol: 3.16.0 + dev: true + + /vscode-languageserver-protocol@3.16.0: + resolution: {integrity: sha512-sdeUoAawceQdgIfTI+sdcwkiK2KU+2cbEYA0agzM2uqaUy2UpnnGHtWTHVEtS0ES4zHU0eMFRGN+oQgDxlD66A==} + dependencies: + vscode-jsonrpc: 6.0.0 + vscode-languageserver-types: 3.16.0 + dev: true + + /vscode-languageserver-textdocument@1.0.8: + resolution: {integrity: sha512-1bonkGqQs5/fxGT5UchTgjGVnfysL0O8v1AYMBjqTbWQTFn721zaPGDYFkOKtfDgFiSgXM3KwaG3FMGfW4Ed9Q==} + dev: true + + /vscode-languageserver-types@3.16.0: + resolution: {integrity: sha512-k8luDIWJWyenLc5ToFQQMaSrqCHiLwyKPHKPQZ5zz21vM+vIVUSvsRpcbiECH4WR88K2XZqc4ScRcZ7nk/jbeA==} + dev: true + + /vscode-languageserver@7.0.0: + resolution: {integrity: sha512-60HTx5ID+fLRcgdHfmz0LDZAXYEV68fzwG0JWwEPBode9NuMYTIxuYXPg4ngO8i8+Ou0lM7y6GzaYWbiDL0drw==} + hasBin: true + dependencies: + vscode-languageserver-protocol: 3.16.0 + dev: true + + /vscode-uri@3.0.7: + resolution: {integrity: sha512-eOpPHogvorZRobNqJGhapa0JdwaxpjVvyBp0QIUMRMSf8ZAlqOdEquKuRmw9Qwu0qXtJIWqFtMkmvJjUZmMjVA==} + dev: true + + /w3c-xmlserializer@4.0.0: + resolution: {integrity: sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==} + engines: {node: '>=14'} + dependencies: + xml-name-validator: 4.0.0 + dev: true + + /webidl-conversions@3.0.1: + resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} + dev: false + + /webidl-conversions@4.0.2: + resolution: {integrity: sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==} + dev: true + + /webidl-conversions@7.0.0: + resolution: {integrity: sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==} + engines: {node: '>=12'} + dev: true + + /whatwg-encoding@2.0.0: + resolution: {integrity: sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==} + engines: {node: '>=12'} + dependencies: + iconv-lite: 0.6.3 + dev: true + + /whatwg-mimetype@3.0.0: + resolution: {integrity: sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==} + engines: {node: '>=12'} + dev: true + + /whatwg-url@12.0.1: + resolution: {integrity: sha512-Ed/LrqB8EPlGxjS+TrsXcpUond1mhccS3pchLhzSgPCnTimUCKj3IZE75pAs5m6heB2U2TMerKFUXheyHY+VDQ==} + engines: {node: '>=14'} + dependencies: + tr46: 4.1.1 + webidl-conversions: 7.0.0 + dev: true + + /whatwg-url@5.0.0: + resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} + dependencies: + tr46: 0.0.3 + webidl-conversions: 3.0.1 + dev: false + + /whatwg-url@7.1.0: + resolution: {integrity: sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==} + dependencies: + lodash.sortby: 4.7.0 + tr46: 1.0.1 + webidl-conversions: 4.0.2 + dev: true + + /which-boxed-primitive@1.0.2: + resolution: {integrity: sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==} + dependencies: + is-bigint: 1.0.4 + is-boolean-object: 1.1.2 + is-number-object: 1.0.7 + is-string: 1.0.7 + is-symbol: 1.0.4 + dev: true + + /which-typed-array@1.1.11: + resolution: {integrity: sha512-qe9UWWpkeG5yzZ0tNYxDmd7vo58HDBc39mZ0xWWpolAGADdFOzkfamWLDxkOWcvHQKVmdTyQdLD4NOfjLWTKew==} + engines: {node: '>= 0.4'} + dependencies: + available-typed-arrays: 1.0.5 + call-bind: 1.0.2 + for-each: 0.3.3 + gopd: 1.0.1 + has-tostringtag: 1.0.0 + dev: true + + /which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + dependencies: + isexe: 2.0.0 + dev: true + + /why-is-node-running@2.2.2: + resolution: {integrity: sha512-6tSwToZxTOcotxHeA+qGCq1mVzKR3CwcJGmVcY+QE8SHy6TnpFnh8PAvPNHYr7EcuVeG0QSMxtYCuO1ta/G/oA==} + engines: {node: '>=8'} + hasBin: true + dependencies: + siginfo: 2.0.0 + stackback: 0.0.2 + dev: true + + /wordwrap@1.0.0: + resolution: {integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==} + dev: true + + /workbox-background-sync@7.0.0: + resolution: {integrity: sha512-S+m1+84gjdueM+jIKZ+I0Lx0BDHkk5Nu6a3kTVxP4fdj3gKouRNmhO8H290ybnJTOPfBDtTMXSQA/QLTvr7PeA==} + dependencies: + idb: 7.1.1 + workbox-core: 7.0.0 + dev: true + + /workbox-broadcast-update@7.0.0: + resolution: {integrity: sha512-oUuh4jzZrLySOo0tC0WoKiSg90bVAcnE98uW7F8GFiSOXnhogfNDGZelPJa+6KpGBO5+Qelv04Hqx2UD+BJqNQ==} + dependencies: + workbox-core: 7.0.0 + dev: true + + /workbox-build@7.0.0: + resolution: {integrity: sha512-CttE7WCYW9sZC+nUYhQg3WzzGPr4IHmrPnjKiu3AMXsiNQKx+l4hHl63WTrnicLmKEKHScWDH8xsGBdrYgtBzg==} + engines: {node: '>=16.0.0'} + dependencies: + '@apideck/better-ajv-errors': 0.3.6(ajv@8.12.0) + '@babel/core': 7.22.11 + '@babel/preset-env': 7.22.14(@babel/core@7.22.11) + '@babel/runtime': 7.22.11 + '@rollup/plugin-babel': 5.3.1(@babel/core@7.22.11)(rollup@2.79.1) + '@rollup/plugin-node-resolve': 11.2.1(rollup@2.79.1) + '@rollup/plugin-replace': 2.4.2(rollup@2.79.1) + '@surma/rollup-plugin-off-main-thread': 2.2.3 + ajv: 8.12.0 + common-tags: 1.8.2 + fast-json-stable-stringify: 2.1.0 + fs-extra: 9.1.0 + glob: 7.2.3 + lodash: 4.17.21 + pretty-bytes: 5.6.0 + rollup: 2.79.1 + rollup-plugin-terser: 7.0.2(rollup@2.79.1) + source-map: 0.8.0-beta.0 + stringify-object: 3.3.0 + strip-comments: 2.0.1 + tempy: 0.6.0 + upath: 1.2.0 + workbox-background-sync: 7.0.0 + workbox-broadcast-update: 7.0.0 + workbox-cacheable-response: 7.0.0 + workbox-core: 7.0.0 + workbox-expiration: 7.0.0 + workbox-google-analytics: 7.0.0 + workbox-navigation-preload: 7.0.0 + workbox-precaching: 7.0.0 + workbox-range-requests: 7.0.0 + workbox-recipes: 7.0.0 + workbox-routing: 7.0.0 + workbox-strategies: 7.0.0 + workbox-streams: 7.0.0 + workbox-sw: 7.0.0 + workbox-window: 7.0.0 + transitivePeerDependencies: + - '@types/babel__core' + - supports-color + dev: true + + /workbox-cacheable-response@7.0.0: + resolution: {integrity: sha512-0lrtyGHn/LH8kKAJVOQfSu3/80WDc9Ma8ng0p2i/5HuUndGttH+mGMSvOskjOdFImLs2XZIimErp7tSOPmu/6g==} + dependencies: + workbox-core: 7.0.0 + dev: true + + /workbox-core@7.0.0: + resolution: {integrity: sha512-81JkAAZtfVP8darBpfRTovHg8DGAVrKFgHpOArZbdFd78VqHr5Iw65f2guwjE2NlCFbPFDoez3D3/6ZvhI/rwQ==} + dev: true + + /workbox-expiration@7.0.0: + resolution: {integrity: sha512-MLK+fogW+pC3IWU9SFE+FRStvDVutwJMR5if1g7oBJx3qwmO69BNoJQVaMXq41R0gg3MzxVfwOGKx3i9P6sOLQ==} + dependencies: + idb: 7.1.1 + workbox-core: 7.0.0 + dev: true + + /workbox-google-analytics@7.0.0: + resolution: {integrity: sha512-MEYM1JTn/qiC3DbpvP2BVhyIH+dV/5BjHk756u9VbwuAhu0QHyKscTnisQuz21lfRpOwiS9z4XdqeVAKol0bzg==} + dependencies: + workbox-background-sync: 7.0.0 + workbox-core: 7.0.0 + workbox-routing: 7.0.0 + workbox-strategies: 7.0.0 + dev: true + + /workbox-navigation-preload@7.0.0: + resolution: {integrity: sha512-juWCSrxo/fiMz3RsvDspeSLGmbgC0U9tKqcUPZBCf35s64wlaLXyn2KdHHXVQrb2cqF7I0Hc9siQalainmnXJA==} + dependencies: + workbox-core: 7.0.0 + dev: true + + /workbox-precaching@7.0.0: + resolution: {integrity: sha512-EC0vol623LJqTJo1mkhD9DZmMP604vHqni3EohhQVwhJlTgyKyOkMrZNy5/QHfOby+39xqC01gv4LjOm4HSfnA==} + dependencies: + workbox-core: 7.0.0 + workbox-routing: 7.0.0 + workbox-strategies: 7.0.0 + dev: true + + /workbox-range-requests@7.0.0: + resolution: {integrity: sha512-SxAzoVl9j/zRU9OT5+IQs7pbJBOUOlriB8Gn9YMvi38BNZRbM+RvkujHMo8FOe9IWrqqwYgDFBfv6sk76I1yaQ==} + dependencies: + workbox-core: 7.0.0 + dev: true + + /workbox-recipes@7.0.0: + resolution: {integrity: sha512-DntcK9wuG3rYQOONWC0PejxYYIDHyWWZB/ueTbOUDQgefaeIj1kJ7pdP3LZV2lfrj8XXXBWt+JDRSw1lLLOnww==} + dependencies: + workbox-cacheable-response: 7.0.0 + workbox-core: 7.0.0 + workbox-expiration: 7.0.0 + workbox-precaching: 7.0.0 + workbox-routing: 7.0.0 + workbox-strategies: 7.0.0 + dev: true + + /workbox-routing@7.0.0: + resolution: {integrity: sha512-8YxLr3xvqidnbVeGyRGkaV4YdlKkn5qZ1LfEePW3dq+ydE73hUUJJuLmGEykW3fMX8x8mNdL0XrWgotcuZjIvA==} + dependencies: + workbox-core: 7.0.0 + dev: true + + /workbox-strategies@7.0.0: + resolution: {integrity: sha512-dg3qJU7tR/Gcd/XXOOo7x9QoCI9nk74JopaJaYAQ+ugLi57gPsXycVdBnYbayVj34m6Y8ppPwIuecrzkpBVwbA==} + dependencies: + workbox-core: 7.0.0 + dev: true + + /workbox-streams@7.0.0: + resolution: {integrity: sha512-moVsh+5to//l6IERWceYKGiftc+prNnqOp2sgALJJFbnNVpTXzKISlTIsrWY+ogMqt+x1oMazIdHj25kBSq/HQ==} + dependencies: + workbox-core: 7.0.0 + workbox-routing: 7.0.0 + dev: true + + /workbox-sw@7.0.0: + resolution: {integrity: sha512-SWfEouQfjRiZ7GNABzHUKUyj8pCoe+RwjfOIajcx6J5mtgKkN+t8UToHnpaJL5UVVOf5YhJh+OHhbVNIHe+LVA==} + dev: true + + /workbox-window@7.0.0: + resolution: {integrity: sha512-j7P/bsAWE/a7sxqTzXo3P2ALb1reTfZdvVp6OJ/uLr/C2kZAMvjeWGm8V4htQhor7DOvYg0sSbFN2+flT5U0qA==} + dependencies: + '@types/trusted-types': 2.0.3 + workbox-core: 7.0.0 + dev: true + + /wrap-ansi@7.0.0: + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} + engines: {node: '>=10'} + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + dev: true + + /wrap-ansi@8.1.0: + resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} + engines: {node: '>=12'} + dependencies: + ansi-styles: 6.2.1 + string-width: 5.1.2 + strip-ansi: 7.1.0 + dev: true + + /wrappy@1.0.2: + resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} + dev: true + + /ws@8.13.0: + resolution: {integrity: sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + dev: true + + /xml-name-validator@4.0.0: + resolution: {integrity: sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==} + engines: {node: '>=12'} + dev: true + + /xmlchars@2.2.0: + resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==} + dev: true + + /yallist@3.1.1: + resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} + dev: true + + /yallist@4.0.0: + resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} + dev: true + + /yaml@2.3.2: + resolution: {integrity: sha512-N/lyzTPaJasoDmfV7YTrYCI0G/3ivm/9wdG0aHuheKowWQwGTsK0Eoiw6utmzAnI6pkJa0DUVygvp3spqqEKXg==} + engines: {node: '>= 14'} + dev: true + + /yocto-queue@0.1.0: + resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} + engines: {node: '>=10'} + dev: true + + /yocto-queue@1.0.0: + resolution: {integrity: sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==} + engines: {node: '>=12.20'} + dev: true + + /zustand@4.4.1(@types/react@17.0.65)(immer@10.0.2)(react@17.0.2): + resolution: {integrity: sha512-QCPfstAS4EBiTQzlaGP1gmorkh/UL1Leaj2tdj+zZCZ/9bm0WS7sI2wnfD5lpOszFqWJ1DcPnGoY8RDL61uokw==} + engines: {node: '>=12.7.0'} + peerDependencies: + '@types/react': '>=16.8' + immer: '>=9.0' + react: '>=16.8' + peerDependenciesMeta: + '@types/react': + optional: true + immer: + optional: true + react: + optional: true + dependencies: + '@types/react': 17.0.65 + immer: 10.0.2 + react: 17.0.2 + use-sync-external-store: 1.2.0(react@17.0.2) + dev: false diff --git a/public/_headers b/public/_headers index 1216e42d..0f4e3f29 100644 --- a/public/_headers +++ b/public/_headers @@ -3,3 +3,11 @@ X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff Referrer-Policy: origin-when-cross-origin + Cache-Control: public, max-age=0, s-maxage=0, must-revalidate + +/manifest.webmanifest + Content-Type: application/manifest+json + +# assets get a long cache instead of no cache +/assets/* + Cache-Control: public, max-age=31536000, s-maxage=31536000, immutable diff --git a/public/_redirects b/public/_redirects index 7797f7c6..ee9870cf 100644 --- a/public/_redirects +++ b/public/_redirects @@ -1 +1,2 @@ +/assets/* /assets/:splat 200 /* /index.html 200 diff --git a/public/config.js b/public/config.js index c08704c2..68a9ca3f 100644 --- a/public/config.js +++ b/public/config.js @@ -1,5 +1,19 @@ window.__CONFIG__ = { - // url must NOT end with a slash - VITE_CORS_PROXY_URL: "", - VITE_TMDB_READ_API_KEY: "" + // The URL for the CORS proxy, the URL must NOT end with a slash! + VITE_CORS_PROXY_URL: "CHANGEME", + + // The READ API key to access TMDB + VITE_TMDB_READ_API_KEY: "CHANGEME", + + // The DMCA email displayed in the footer, null to hide the DMCA link + VITE_DMCA_EMAIL: null, + + // Whether to disable hash-based routing, leave this as false if you don't know what this is + VITE_NORMAL_ROUTER: false, + + // The backend URL to communicate with, defaults to the movie-web hosted one at backend.movie-web.app + VITE_BACKEND_URL: null, + + // A comma separated list of disallowed IDs in the case of a DMCA claim - in the format "series-" and "movie-" + VITE_DISALLOWED_IDS: "" }; diff --git a/public/lightbar-images/fishie.png b/public/lightbar-images/fishie.png new file mode 100644 index 00000000..8c528ba4 Binary files /dev/null and b/public/lightbar-images/fishie.png differ diff --git a/public/lightbar-images/santa.png b/public/lightbar-images/santa.png new file mode 100644 index 00000000..fd799ee2 Binary files /dev/null and b/public/lightbar-images/santa.png differ diff --git a/public/lightbar-images/snowflake.svg b/public/lightbar-images/snowflake.svg new file mode 100644 index 00000000..50d9c382 --- /dev/null +++ b/public/lightbar-images/snowflake.svg @@ -0,0 +1,45 @@ + + + + + + + + \ No newline at end of file diff --git a/public/skull.svg b/public/skull.svg new file mode 100644 index 00000000..02c4741b --- /dev/null +++ b/public/skull.svg @@ -0,0 +1 @@ + diff --git a/src/__tests__/providers/providers.test.ts b/src/__tests__/providers/providers.test.ts deleted file mode 100644 index 350d4255..00000000 --- a/src/__tests__/providers/providers.test.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { describe, it } from "vitest"; - -import "@/backend"; -import { testData } from "@/__tests__/providers/testdata"; -import { getProviders } from "@/backend/helpers/register"; -import { runProvider } from "@/backend/helpers/run"; -import { MWMediaType } from "@/backend/metadata/types/mw"; - -describe("providers", () => { - const providers = getProviders(); - - it("have at least one provider", ({ expect }) => { - expect(providers.length).toBeGreaterThan(0); - }); - - for (const provider of providers) { - describe(provider.displayName, () => { - it("must have at least one type", async ({ expect }) => { - expect(provider.type.length).toBeGreaterThan(0); - }); - - if (provider.type.includes(MWMediaType.MOVIE)) { - it("must work with movies", async ({ expect }) => { - const movie = testData.find((v) => v.meta.type === MWMediaType.MOVIE); - if (!movie) throw new Error("no movie to test with"); - const results = await runProvider(provider, { - media: movie, - progress() {}, - type: movie.meta.type as any, - }); - expect(results).toBeTruthy(); - }); - } - - if (provider.type.includes(MWMediaType.SERIES)) { - it("must work with series", async ({ expect }) => { - const show = testData.find((v) => v.meta.type === MWMediaType.SERIES); - if (show?.meta.type !== MWMediaType.SERIES) - throw new Error("no show to test with"); - const results = await runProvider(provider, { - media: show, - progress() {}, - type: show.meta.type as MWMediaType.SERIES, - episode: show.meta.seasonData.episodes[0].id, - season: show.meta.seasons[0].id, - }); - expect(results).toBeTruthy(); - }); - } - }); - } -}); diff --git a/src/__tests__/providers/testdata.ts b/src/__tests__/providers/testdata.ts deleted file mode 100644 index 6db686e3..00000000 --- a/src/__tests__/providers/testdata.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { DetailedMeta } from "@/backend/metadata/getmeta"; -import { MWMediaType } from "@/backend/metadata/types/mw"; - -export const testData: DetailedMeta[] = [ - { - imdbId: "tt10954562", - tmdbId: "572716", - meta: { - id: "439596", - title: "Hamilton", - type: MWMediaType.MOVIE, - year: "2020", - seasons: undefined, - }, - }, - { - imdbId: "tt11126994", - tmdbId: "94605", - meta: { - id: "222333", - title: "Arcane", - type: MWMediaType.SERIES, - year: "2021", - seasons: [ - { - id: "230301", - number: 1, - title: "Season 1", - }, - ], - seasonData: { - id: "230301", - number: 1, - title: "Season 1", - episodes: [ - { - id: "4243445", - number: 1, - title: "Welcome to the Playground", - }, - ], - }, - }, - }, -]; diff --git a/src/__tests__/subtitles/subtitles.test.ts b/src/__tests__/subtitles/subtitles.test.ts deleted file mode 100644 index 69934f8f..00000000 --- a/src/__tests__/subtitles/subtitles.test.ts +++ /dev/null @@ -1,152 +0,0 @@ -import { describe, it } from "vitest"; - -import { - getMWCaptionTypeFromUrl, - isSupportedSubtitle, - parseSubtitles, -} from "@/backend/helpers/captions"; -import { MWCaptionType } from "@/backend/helpers/streams"; - -import { - ass, - multilineSubtitlesTestVtt, - srt, - visibleSubtitlesTestVtt, - vtt, -} from "./testdata"; - -describe("subtitles", () => { - it("should return true if given url ends with a known subtitle type", ({ - expect, - }) => { - expect(isSupportedSubtitle("https://example.com/test.srt")).toBe(true); - expect(isSupportedSubtitle("https://example.com/test.vtt")).toBe(true); - expect(isSupportedSubtitle("https://example.com/test.txt")).toBe(false); - }); - - it("should return corresponding MWCaptionType", ({ expect }) => { - expect(getMWCaptionTypeFromUrl("https://example.com/test.srt")).toBe( - MWCaptionType.SRT - ); - expect(getMWCaptionTypeFromUrl("https://example.com/test.vtt")).toBe( - MWCaptionType.VTT - ); - expect(getMWCaptionTypeFromUrl("https://example.com/test.txt")).toBe( - MWCaptionType.UNKNOWN - ); - }); - - it("should throw when empty text is given", ({ expect }) => { - expect(() => parseSubtitles("")).toThrow("Given text is empty"); - }); - - it("should parse srt", ({ expect }) => { - const parsed = parseSubtitles(srt); - const parsedSrt = [ - { - type: "caption", - index: 1, - start: 0, - end: 0, - duration: 0, - content: "Test", - text: "Test", - }, - { - type: "caption", - index: 2, - start: 0, - end: 0, - duration: 0, - content: "Test", - text: "Test", - }, - ]; - expect(parsed).toHaveLength(2); - expect(parsed).toEqual(parsedSrt); - }); - - it("should parse vtt", ({ expect }) => { - const parsed = parseSubtitles(vtt); - const parsedVtt = [ - { - type: "caption", - index: 1, - start: 0, - end: 4000, - duration: 4000, - content: "Where did he go?", - text: "Where did he go?", - }, - { - type: "caption", - index: 2, - start: 3000, - end: 6500, - duration: 3500, - content: "I think he went down this lane.", - text: "I think he went down this lane.", - }, - { - type: "caption", - index: 3, - start: 4000, - end: 6500, - duration: 2500, - content: "What are you waiting for?", - text: "What are you waiting for?", - }, - ]; - expect(parsed).toHaveLength(3); - expect(parsed).toEqual(parsedVtt); - }); - - it("should parse ass", ({ expect }) => { - const parsed = parseSubtitles(ass); - expect(parsed).toHaveLength(3); - }); - - it("should delay subtitles when given a delay", ({ expect }) => { - const videoTime = 11; - let delayedSeconds = 0; - const parsed = parseSubtitles(visibleSubtitlesTestVtt); - const isVisible = (start: number, end: number, delay: number): boolean => { - const delayedStart = start / 1000 + delay; - const delayedEnd = end / 1000 + delay; - return ( - Math.max(0, delayedStart) <= videoTime && - Math.max(0, delayedEnd) >= videoTime - ); - }; - const visibleSubtitles = parsed.filter((c) => - isVisible(c.start, c.end, delayedSeconds) - ); - expect(visibleSubtitles).toHaveLength(1); - - delayedSeconds = 10; - const delayedVisibleSubtitles = parsed.filter((c) => - isVisible(c.start, c.end, delayedSeconds) - ); - expect(delayedVisibleSubtitles).toHaveLength(1); - - delayedSeconds = -10; - const delayedVisibleSubtitles2 = parsed.filter((c) => - isVisible(c.start, c.end, delayedSeconds) - ); - expect(delayedVisibleSubtitles2).toHaveLength(1); - - delayedSeconds = -20; - const delayedVisibleSubtitles3 = parsed.filter((c) => - isVisible(c.start, c.end, delayedSeconds) - ); - expect(delayedVisibleSubtitles3).toHaveLength(1); - }); - - it("should parse multiline captions", ({ expect }) => { - const parsed = parseSubtitles(multilineSubtitlesTestVtt); - - expect(parsed[0].text).toBe(`- Test 1\n- Test 2\n- Test 3`); - expect(parsed[1].text).toBe(`- Test 4`); - expect(parsed[2].text).toBe(`- Test 6`); - }); -}); diff --git a/src/__tests__/subtitles/testdata.ts b/src/__tests__/subtitles/testdata.ts deleted file mode 100644 index 2cf71004..00000000 --- a/src/__tests__/subtitles/testdata.ts +++ /dev/null @@ -1,68 +0,0 @@ -const srt = ` -1 -00:00:00,000 --> 00:00:00,000 -Test - -2 -00:00:00,000 --> 00:00:00,000 -Test -`; -const vtt = ` -WEBVTT - -00:00:00.000 --> 00:00:04.000 position:10%,line-left align:left size:35% -Where did he go? - -00:00:03.000 --> 00:00:06.500 position:90% align:right size:35% -I think he went down this lane. - -00:00:04.000 --> 00:00:06.500 position:45%,line-right align:center size:35% -What are you waiting for? -`; -const ass = `[Script Info] -; Generated by Ebby.co -Title: -Original Script: -ScriptType: v4.00+ -Collisions: Normal -PlayResX: 384 -PlayResY: 288 -PlayDepth: 0 -Timer: 100.0 -WrapStyle: 0 - -[v4+ Styles] -Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding -Style: Default, Arial, 16, &H00FFFFFF, &H00000000, &H00000000, &H00000000, 0, 0, 0, 0, 100, 100, 0, 0, 1, 1, 0, 2, 15, 15, 15, 0 - -[Events] -Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text -Dialogue: 0,0:00:10.00,0:00:20.00,Default,,0000,0000,0000,,This is the first subtitle. -Dialogue: 0,0:00:30.00,0:00:34.00,Default,,0000,0000,0000,,This is the second. -Dialogue: 0,0:00:34.00,0:00:35.00,Default,,0000,0000,0000,,Third`; - -const visibleSubtitlesTestVtt = `WEBVTT - -00:00:00.000 --> 00:00:10.000 position:10%,line-left align:left size:35% -Test 1 - -00:00:10.000 --> 00:00:20.000 position:90% align:right size:35% -Test 2 - -00:00:20.000 --> 00:00:31.000 position:45%,line-right align:center size:35% -Test 3 -`; - -const multilineSubtitlesTestVtt = `WEBVTT - -00:00:00.000 --> 00:00:10.000 -- Test 1\n- Test 2\n- Test 3 - -00:00:10.000 --> 00:00:20.000 -- Test 4 - -00:00:20.000 --> 00:00:31.000 -- Test 6 -`; - -export { vtt, srt, ass, visibleSubtitlesTestVtt, multilineSubtitlesTestVtt }; diff --git a/src/setup/index.css b/src/assets/css/index.css similarity index 88% rename from src/setup/index.css rename to src/assets/css/index.css index c17b8258..74eb1270 100644 --- a/src/setup/index.css +++ b/src/assets/css/index.css @@ -4,7 +4,7 @@ html, body { - @apply bg-denim-100 font-open-sans text-denim-700 overflow-x-hidden; + @apply bg-background-main font-open-sans text-type-text; min-height: 100vh; min-height: 100dvh; } @@ -30,10 +30,18 @@ body[data-no-select] { user-select: none; } +html[data-no-scroll], html[data-no-scroll] body { + overflow: hidden; +} + .roll { animation: roll 1s; } +.roll-infinite { + animation: roll 2s infinite; +} + @keyframes roll { from { transform: rotate(0deg); @@ -60,6 +68,16 @@ body[data-no-select] { height: 60vh; } +.h-screen { + height: 100vh; + height: 100dvh; +} + +.min-h-screen { + min-height: 100vh; + min-height: 100dvh; +} + /*generated with Input range slider CSS style generator (version 20211225) https://toughengineer.github.io/demo/slider-styler*/ :root { @@ -185,7 +203,7 @@ input[type=range].styled-slider.slider-progress::-ms-fill-lower { } ::-webkit-scrollbar-thumb { - background-color: theme("colors.denim-500"); + background-color: theme("colors.video.context.border"); border: 5px solid transparent; border-left: 0; background-clip: content-box; @@ -194,4 +212,13 @@ input[type=range].styled-slider.slider-progress::-ms-fill-lower { ::-webkit-scrollbar { /* For some reason the styles don't get applied without the width */ width: 13px; -} \ No newline at end of file +} + +.grecaptcha-badge { + display: none !important; +} + +.tabbable:focus-visible { + outline: 2px solid theme('colors.themePreview.primary'); + box-shadow: 0 0 10px theme('colors.themePreview.secondary'); +} diff --git a/src/assets/languages.ts b/src/assets/languages.ts new file mode 100644 index 00000000..7fb52914 --- /dev/null +++ b/src/assets/languages.ts @@ -0,0 +1,25 @@ +import cs from "@/assets/locales/cs.json"; +import de from "@/assets/locales/de.json"; +import en from "@/assets/locales/en.json"; +import fr from "@/assets/locales/fr.json"; +import it from "@/assets/locales/it.json"; +import nl from "@/assets/locales/nl.json"; +import pirate from "@/assets/locales/pirate.json"; +import pl from "@/assets/locales/pl.json"; +import tr from "@/assets/locales/tr.json"; +import vi from "@/assets/locales/vi.json"; +import zh from "@/assets/locales/zh.json"; + +export const locales = { + en, + cs, + de, + fr, + it, + nl, + pl, + tr, + vi, + zh, + pirate, +}; diff --git a/src/assets/locales/cs.json b/src/assets/locales/cs.json new file mode 100644 index 00000000..f121aeb0 --- /dev/null +++ b/src/assets/locales/cs.json @@ -0,0 +1,71 @@ +{ + "global": { + "name": "movie-web" + }, + "home": { + "search": { + "allResults": "To je vše co máme!", + "sectionTitle": "Výsledky vyhledávání", + "noResults": "Nemohli jsme nic najít!", + "failed": "Nepodařilo se najít média, zkuste to znovu!", + "loading": "Načítání...", + "placeholder": "Co si přejete sledovat?" + }, + "bookmarks": { + "sectionTitle": "Záložky" + }, + "continueWatching": { + "sectionTitle": "Pokračujte ve sledování" + } + }, + "media": { + "types": { + "movie": "Film", + "show": "Seriál" + }, + "episodeDisplay": "S{{season}} E{{episode}}" + }, + "player": { + "playbackError": { + "title": "Jejda, rozbilo se to!" + }, + "metadata": { + "notFound": { + "badge": "Nenalezeno", + "homeButton": "Zpátky domů", + "title": "Nemohli jsme najít Vaše média.", + "text": "Nemohli jsme najít média o které jste požádali. Buďto jsme ho nemohli najít, nebo jste manipulovali s URL." + } + }, + "menus": { + "captions": { + "customChoice": "Nahrát titulky", + "customizeLabel": "Upravit", + "title": "Titulky" + }, + "sources": { + "title": "Zdroje" + }, + "episodes": { + "button": "Epizody", + "loadingTitle": "Načítání...", + "loadingList": "Načítání..." + } + }, + "back": { + "default": "Zpátky domů", + "short": "Zpět" + } + }, + "notFound": { + "badge": "Nenalezeno", + "goHome": "Zpátky domů", + "title": "Tuto stránku se nepodařilo najít", + "message": "Dívali jsme se všude: pod koši, ve skříni, za proxy, ale nakonec jsme nemohli najít stránku, kterou hledáte." + }, + "navigation": { + "banner": { + "offline": "Zkontrolujte své internetové připojení" + } + } +} diff --git a/src/assets/locales/de.json b/src/assets/locales/de.json new file mode 100644 index 00000000..c6d02de3 --- /dev/null +++ b/src/assets/locales/de.json @@ -0,0 +1,71 @@ +{ + "global": { + "name": "movie-web" + }, + "home": { + "search": { + "allResults": "Das ist alles, was wir haben!", + "sectionTitle": "Suchergebnisse", + "noResults": "Wir haben nichts gefunden!", + "failed": "Das Medium wurde nicht gefunden, bitte versuchen Sie es erneut!", + "loading": "Wird geladen...", + "placeholder": "Was willst du gucken?" + }, + "bookmarks": { + "sectionTitle": "Favoriten" + }, + "continueWatching": { + "sectionTitle": "Weiter ansehen" + } + }, + "media": { + "types": { + "movie": "Film", + "show": "Serie" + }, + "episodeDisplay": "S{{season}} E{{episode}}" + }, + "player": { + "playbackError": { + "title": "Hoppla, etwas ist schiefgegangen!" + }, + "metadata": { + "notFound": { + "badge": "Nicht gefunden", + "homeButton": "Zurück zur Startseite", + "title": "Das Medium konnte nicht gefunden werden.", + "text": "Wir konnten die angeforderten Medien nicht finden." + } + }, + "menus": { + "captions": { + "customChoice": "Untertitel hochladen", + "customizeLabel": "Bearbeiten", + "title": "Untertitel" + }, + "sources": { + "title": "Quellen" + }, + "episodes": { + "button": "Folgen", + "loadingTitle": "Wird geladen...", + "loadingList": "Wird geladen..." + } + }, + "back": { + "default": "Zurück zur Startseite", + "short": "Rückmeldung" + } + }, + "notFound": { + "badge": "Nicht gefunden", + "goHome": "Zurück zur Startseite", + "title": "Diese Seite kann nicht gefunden werden", + "message": "Wir haben überall gesucht, aber am Ende konnten wir die gesuchte Seite nicht finden." + }, + "navigation": { + "banner": { + "offline": "Internetverbindung ist instabil" + } + } +} diff --git a/src/assets/locales/en.json b/src/assets/locales/en.json new file mode 100644 index 00000000..6c6c3e9c --- /dev/null +++ b/src/assets/locales/en.json @@ -0,0 +1,417 @@ +{ + "auth": { + "deviceNameLabel": "Device name", + "deviceNamePlaceholder": "Personal phone", + "hasAccount": "Already have an account? <0>Login here.", + "createAccount": "Don't have an account yet? <0>Create an account.", + "register": { + "information": { + "title": "Account information", + "color1": "Profile color one", + "color2": "Profile color two", + "icon": "User icon", + "header": "Enter a name for your device and pick colours and a user icon of your choosing", + "next": "Next" + } + }, + "login": { + "title": "Login to your account", + "description": "Please enter your passphrase to login to your account", + "validationError": "Incorrect or incomplete passphrase", + "deviceLengthError": "Please enter a device name", + "submit": "Login", + "passphraseLabel": "12-Word passphrase", + "passphrasePlaceholder": "Passphrase" + }, + "generate": { + "title": "Your passphrase", + "next": "I have saved my passphrase", + "description": "Your passphrase acts as your username and password. Make sure to keep it safe as you will need to enter it to login to your account" + }, + "trust": { + "title": "Do you trust this server?", + "host": "You are connecting to <0>{{hostname}} - please confirm you trust it before making an account", + "failed": { + "title": "Failed to reach server", + "text": "Did you configure it correctly?" + }, + "yes": "I trust this server", + "no": "Go back" + }, + "verify": { + "title": "Confirm your passphrase", + "description": "Please enter your passphrase from earlier to confirm you have saved it and to create your account", + "invalidData": "Data is not valid", + "noMatch": "Passphrase doesn't match", + "recaptchaFailed": "ReCaptcha validation failed", + "passphraseLabel": "Your 12-word passphrase", + "register": "Create account" + } + }, + "errors": { + "details": "Error details", + "reloadPage": "Reload the page", + "showError": "Show error details", + "badge": "It broke", + "title": "We encountered an error!" + }, + "notFound": { + "badge": "Not found", + "title": "Couldn't find that page", + "message": "We looked everywhere: under the bins, in the closet, behind the proxy but ultimately couldn't find the page you are looking for.", + "goHome": "Back to home" + }, + "global": { + "name": "movie-web", + "pages": { + "pagetitle": "{{title}} - movie-web", + "dmca": "DMCA", + "settings": "Settings", + "about": "About", + "login": "Login", + "register": "Register" + } + }, + "media": { + "types": { + "movie": "Movie", + "show": "Show" + }, + "episodeDisplay": "S{{season}} E{{episode}}" + }, + "player": { + "scraping": { + "notFound": { + "badge": "Not found", + "title": "We couldn't find that", + "text": "We have searched through our providers and cannot find the media you are looking for! We do not host the media and have no control over what is available. Please click 'Show details' below for more details.", + "homeButton": "Go home", + "detailsButton": "Show details" + }, + "items": { + "pending": "Checking for videos...", + "notFound": "Doesn't have the video", + "failure": "Error occurred" + } + }, + "casting": { + "enabled": "Casting to device..." + }, + "playbackError": { + "badge": "Playback error", + "title": "Failed to play video!", + "text": "There was an error trying to play the media. Please try again.", + "homeButton": "Go home", + "errors": { + "errorAborted": "The fetching of the media was aborted by the user's request.", + "errorNetwork": "Some kind of network error occurred which prevented the media from being successfully fetched, despite having previously been available.", + "errorDecode": "Despite having previously been determined to be usable, an error occurred while trying to decode the media resource, resulting in an error.", + "errorNotSupported": "The media or media provider object is not supported.", + "errorGenericMedia": "Unknown media error occurred." + } + }, + "metadata": { + "notFound": { + "badge": "Not found", + "title": "Couldn't find that media.", + "text": "We couldn't find the media you requested. Either it's been removed or you tampered with the URL.", + "homeButton": "Back to home" + }, + "failed": { + "badge": "Failed", + "title": "Failed to load metadata", + "text": "Could not load the media's metadata from TMDB. Please check whether TMDB is down or blocked on your internet connection.", + "homeButton": "Go home" + } + }, + "back": { + "default": "Back to home", + "short": "Back" + }, + "time": { + "regular": "{{timeWatched}} / {{duration}}", + "shortRegular": "{{timeWatched}}", + "remaining": "{{timeLeft}} left • Finish at {{timeFinished, datetime}}", + "shortRemaining": "-{{timeLeft}}" + }, + "nextEpisode": { + "next": "Next episode", + "cancel": "Cancel" + }, + "menus": { + "settings": { + "videoSection": "Video settings", + "experienceSection": "Viewing experience", + "enableCaptions": "Enable captions", + "captionItem": "Caption settings", + "sourceItem": "Video sources", + "playbackItem": "Playback settings", + "downloadItem": "Download", + "qualityItem": "Quality" + }, + "episodes": { + "button": "Episodes", + "loadingTitle": "Loading...", + "loadingList": "Loading...", + "loadingError": "Error loading season", + "emptyState": "There are no episodes in this season, check back later!", + "episodeBadge": "E{{episode}}" + }, + "sources": { + "title": "Sources", + "unknownOption": "Unknown", + "noStream": { + "title": "No stream", + "text": "This source has no streams for this movie or show." + }, + "noEmbeds": { + "title": "No embeds found", + "text": "We were unable to find any embeds, please try a different source." + }, + "failed": { + "title": "Failed to scrape", + "text": "There was an error while trying to find any videos, please try a different source." + } + }, + "captions": { + "title": "Captions", + "customizeLabel": "Customize", + "settings": { + "fixCapitals": "Fix capitalization", + "delay": "Caption delay" + }, + "customChoice": "Select caption from file", + "offChoice": "Off", + "unknownLanguage": "Unknown" + }, + "downloads": { + "title": "Download", + "disclaimer": "Downloads are taken directly from the provider. movie-web does not have control over how the downloads are provided.", + "hlsExplanation": "This media is a HLS stream which cannot be downloaded on movie-web.", + "downloadVideo": "Download video", + "downloadCaption": "Download current caption", + "onPc": { + "1": "On PC, click the download button then, on the new page, right click the video and select Save video as", + "title": "Downloading on PC", + "shortTitle": "Download / PC" + }, + "onAndroid": { + "1": "To download on Android, click the download button then, on the new page, tap and hold on the video, then select save.", + "title": "Downloading on Android", + "shortTitle": "Download / Android" + }, + "onIos": { + "1": "To download on iOS, click the download button then, on the new page, click , then Save to Files .", + "title": "Downloading on iOS", + "shortTitle": "Download / iOS" + } + }, + "playback": { + "title": "Playback settings", + "speedLabel": "Playback speed" + }, + "quality": { + "title": "Quality", + "automaticLabel": "Automatic quality", + "hint": "You can try <0>switching source to get different quality options.", + "iosNoQuality": "Due to Apple-defined limitations, quality selection is not available on iOS for this source. You can try <0>switching to another source to get different quality options." + } + } + }, + "home": { + "mediaList": { + "stopEditing": "Stop editing" + }, + "titles": { + "morning": { + "default": "What would you like to watch this morning?", + "extra": ["I hear Before Sunrise is good"] + }, + "day": { + "default": "What would you like to watch this afternoon?", + "extra": [] + }, + "night": { + "default": "What would you like to watch tonight?", + "extra": ["Tired? I hear The Exorcist is good."] + } + }, + "search": { + "loading": "Loading...", + "sectionTitle": "Search results", + "allResults": "That's all we have!", + "noResults": "We couldn't find anything!", + "failed": "Failed to find media, try again!", + "placeholder": "What do you want to watch?" + }, + "continueWatching": { + "sectionTitle": "Continue Watching" + }, + "bookmarks": { + "sectionTitle": "Bookmarks" + } + }, + "overlays": { + "close": "Close" + }, + "screens": { + "loadingUser": "Loading your profile", + "loadingApp": "Loading application", + "loadingUserError": { + "text": "Failed to load your profile", + "textWithReset": "Failed to load your profile from your custom server, want to reset back to the default server?", + "reset": "Reset custom server", + "logout": "Logout" + }, + "migration": { + "failed": "Failed to migrate your data.", + "inProgress": "Please hold, we are migrating your data. This shouldn't take long." + }, + "dmca": { + "title": "DMCA", + "text": "Welcome to movie-web's DMCA contact page! We respect intellectual property rights and want to address any copyright concerns swiftly. If you believe your copyrighted work has been improperly used on our platform, please send a detailed DMCA notice to the email below. Please include a description of the copyrighted material, your contact details, and a statement of good faith belief. We're committed to resolving these matters promptly and appreciate your cooperation in keeping movie-web a place that respects creativity and copyrights." + } + }, + "navigation": { + "banner": { + "offline": "Check your internet connection" + }, + "menu": { + "register": "Sync to cloud", + "settings": "Settings", + "about": "About us", + "donation": "Donate", + "support": "Support", + "logout": "Log out" + } + }, + "actions": { + "copy": "Copy", + "copied": "Copied" + }, + "settings": { + "unsaved": "You have unsaved changes", + "reset": "Reset", + "save": "Save", + "sidebar": { + "info": { + "title": "App information", + "hostname": "Hostname", + "backendUrl": "Backend URL", + "userId": "User ID", + "notLoggedIn": "You are not logged in", + "appVersion": "App version", + "backendVersion": "Backend version", + "unknownVersion": "Unknown", + "secure": "Secure", + "insecure": "Insecure" + } + }, + "appearance": { + "title": "Appearance", + "activeTheme": "Active", + "themes": { + "default": "Default", + "blue": "Blue", + "teal": "Teal", + "red": "Red", + "gray": "Gray" + } + }, + "account": { + "title": "Account", + "register": { + "title": "Sync to the cloud", + "text": "Share your watch progress between devices and keep them synced.", + "cta": "Get started" + }, + "profile": { + "title": "Edit profile picture", + "firstColor": "Profile color one", + "secondColor": "Profile color two", + "userIcon": "User icon", + "finish": "Finish editing" + }, + "devices": { + "title": "Devices", + "failed": "Failed to load sessions", + "deviceNameLabel": "Device name", + "removeDevice": "Remove" + }, + "accountDetails": { + "editProfile": "Edit", + "deviceNameLabel": "Device name", + "deviceNamePlaceholder": "Personal phone", + "logoutButton": "Log out" + }, + "actions": { + "title": "Actions", + "delete": { + "title": "Delete account", + "text": "This action is irreversible. All data will be deleted and nothing can be recovered.", + "button": "Delete account", + "confirmTitle": "Are you sure?", + "confirmDescription": "Are you sure you want to delete your account? All your data will be lost!", + "confirmButton": "Delete account" + } + } + }, + "locale": { + "title": "Locale", + "language": "Application language", + "languageDescription": "Language applied to the entire application." + }, + "captions": { + "title": "Captions", + "previewQuote": "I must not fear. Fear is the mind-killer.", + "backgroundLabel": "Background opacity", + "textSizeLabel": "Text size", + "colorLabel": "Color" + }, + "connections": { + "title": "Connections", + "workers": { + "label": "Use custom proxy workers", + "description": "To make the application function, all traffic is routed through proxies. Enable this if you want to bring your own workers.", + "urlLabel": "Worker URLs", + "emptyState": "No workers yet, add one below", + "urlPlaceholder": "https://", + "addButton": "Add new worker" + }, + "server": { + "label": "Custom server", + "description": "If you would like to connect to a custom backend to store your data, enable this and provide the URL.", + "urlLabel": "Custom server URL" + } + } + }, + "about": { + "title": "About movie-web", + "description": "movie-web is a web application that searches the internet for streams. The team aims for a mostly minimalistic approach to consuming content.", + "faqTitle": "Common questions", + "q1": { + "title": "Where does the content come from?", + "body": "movie-web does not host any content. When you click on something to watch, the internet is searched for the selected media (On the loading screen and in the 'video sources' tab you can see which source you're using). Media never gets uploaded by movie-web, everything is through this searching mechanism." + }, + "q2": { + "title": "Where can I request a show or movie?", + "body": "It's not possible to request a show or movie, movie-web does not manage any content. All content is viewed through sources on the internet." + }, + "q3": { + "title": "The search results display the show or movie, why can't I play it?", + "body": "Our search results are powered by The Movie Database (TMDB) and display regardless of whether our sources actually have the content." + } + }, + "footer": { + "tagline": "Watch your favourite shows and movies with this open source streaming app.", + "links": { + "github": "GitHub", + "dmca": "DMCA", + "discord": "Discord" + }, + "legal": { + "disclaimer": "Disclaimer", + "disclaimerText": "movie-web does not host any files, it merely links to 3rd party services. Legal issues should be taken up with the file hosts and providers. movie-web is not responsible for any media files shown by the video providers." + } + } +} diff --git a/src/assets/locales/fr.json b/src/assets/locales/fr.json new file mode 100644 index 00000000..dff002f7 --- /dev/null +++ b/src/assets/locales/fr.json @@ -0,0 +1,71 @@ +{ + "global": { + "name": "movie-web" + }, + "home": { + "search": { + "allResults": "C'est tout ce que nous avons !", + "sectionTitle": "Résultats de la recherche", + "noResults": "Nous n'avons rien trouvé !", + "failed": "Le média n'a pas été trouvé, veuillez réessayez !", + "loading": "Chargement...", + "placeholder": "Que voulez-vous voir ?" + }, + "bookmarks": { + "sectionTitle": "Favoris" + }, + "continueWatching": { + "sectionTitle": "Continuer le visionnage" + } + }, + "media": { + "types": { + "movie": "Film", + "show": "Série" + }, + "episodeDisplay": "S{{season}} E{{episode}}" + }, + "player": { + "playbackError": { + "title": "Oups, c'est coupé !" + }, + "metadata": { + "notFound": { + "badge": "Introuvable", + "homeButton": "Retour à l'accueil", + "title": "Impossible de trouver ce média.", + "text": "Nous n'avons pas trouvé le média que vous avez demandé. Soit il a été supprimé, soit vous avez modifié l'URL." + } + }, + "menus": { + "captions": { + "customChoice": "Télécharger des sous-titres", + "customizeLabel": "Personnaliser", + "title": "Sous-titres" + }, + "sources": { + "title": "Sources" + }, + "episodes": { + "button": "Épisodes", + "loadingTitle": "Chargement...", + "loadingList": "Chargement..." + } + }, + "back": { + "default": "Retour à la page d'accueil", + "short": "Retour" + } + }, + "notFound": { + "badge": "Introuvable", + "goHome": "Retour à l'accueil", + "title": "Impossible de trouver cette page", + "message": "Nous avons cherché partout : sous les poubelles, dans le placard, derrière le proxy, mais nous n'avons finalement pas trouvé la page que vous cherchez." + }, + "navigation": { + "banner": { + "offline": "Vérifiez votre connexion internet" + } + } +} diff --git a/src/assets/locales/it.json b/src/assets/locales/it.json new file mode 100644 index 00000000..1507eb05 --- /dev/null +++ b/src/assets/locales/it.json @@ -0,0 +1,71 @@ +{ + "global": { + "name": "movie-web" + }, + "home": { + "search": { + "allResults": "Ecco tutto ciò che abbiamo!", + "sectionTitle": "Risultati della ricerca", + "noResults": "Non abbiamo trovato nulla!", + "failed": "Impossibile trovare i media, riprova!", + "loading": "Caricamento...", + "placeholder": "Cosa vuoi guardare?" + }, + "bookmarks": { + "sectionTitle": "Segnalibri" + }, + "continueWatching": { + "sectionTitle": "Continua a guardare" + } + }, + "media": { + "types": { + "movie": "Film", + "show": "Serie" + }, + "episodeDisplay": "S{{season}} E{{episode}}" + }, + "player": { + "playbackError": { + "title": "Ops, qualcosa si è rotto!" + }, + "metadata": { + "notFound": { + "badge": "Non trovato", + "homeButton": "Torna alla home", + "title": "Impossibile trovare quel media.", + "text": "Non siamo riusciti a trovare il media richiesto. È stato rimosso o hai manomesso l'URL." + } + }, + "menus": { + "captions": { + "customChoice": "Carica sottotitolo", + "customizeLabel": "Personalizza", + "title": "Sottotitoli" + }, + "sources": { + "title": "Fonti" + }, + "episodes": { + "button": "Episodi", + "loadingTitle": "Caricamento...", + "loadingList": "Caricamento..." + } + }, + "back": { + "default": "Torna alla home", + "short": "Indietro" + } + }, + "notFound": { + "badge": "Non trovato", + "goHome": "Torna alla home", + "title": "Impossibile trovare quella pagina", + "message": "Abbiamo cercato ovunque: sotto i bidoni, nell'armadio, dietro il proxy, ma alla fine non siamo riusciti a trovare la pagina che stai cercando." + }, + "navigation": { + "banner": { + "offline": "Controlla la tua connessione internet" + } + } +} diff --git a/src/assets/locales/nl.json b/src/assets/locales/nl.json new file mode 100644 index 00000000..47249d9f --- /dev/null +++ b/src/assets/locales/nl.json @@ -0,0 +1,76 @@ +{ + "auth": { + "deviceNameLabel": "Toestel naam", + "deviceNamePlaceholder": "Huistelefoon", + "hasAccount": "Heb je al een account? <0>Log hier in." + }, + "global": { + "name": "movie-web" + }, + "home": { + "bookmarks": { + "sectionTitle": "Opgeslagen" + }, + "continueWatching": { + "sectionTitle": "Kijk verder" + }, + "search": { + "allResults": "Dat is het!", + "failed": "Het is niet gelukt de media te laden, probeer het nog eens!", + "loading": "Aan het zoeken...", + "noResults": "We konden helaas niets vinden!", + "placeholder": "Wat wil je graag kijken?", + "sectionTitle": "Zoekresultaten" + } + }, + "media": { + "episodeDisplay": "S{{season}} A{{episode}}", + "types": { + "movie": "Films", + "show": "Series" + } + }, + "navigation": { + "banner": { + "offline": "Controleer je internetverbinding" + } + }, + "notFound": { + "badge": "Pagina niet gevonden", + "goHome": "Naar de home-pagina", + "message": "We hebben echt alles geprobeerd, zelfs tijdrijzen; echter hebben we deze pagina helaas niet kunnen vinden.", + "title": "Pagina niet gevonden" + }, + "player": { + "back": { + "default": "Naar de home-pagina", + "short": "Terug" + }, + "menus": { + "captions": { + "customChoice": "Ondertiteling uploaden", + "customizeLabel": "Instellingen", + "title": "Ondertiteling" + }, + "episodes": { + "button": "Afleveringen", + "loadingList": "Aan het zoeken...", + "loadingTitle": "Aan het zoeken..." + }, + "sources": { + "title": "Bronnen" + } + }, + "metadata": { + "notFound": { + "badge": "Pagina niet gevonden", + "homeButton": "Naar de home-pagina", + "text": "We konden dit stukje media niet vinden. Het is mogelijk verwijderd, of jij hebt zelf de URL aangepast.", + "title": "We konden deze media niet vinden." + } + }, + "playbackError": { + "title": "Oeps, hier ging iets mis!" + } + } +} diff --git a/src/assets/locales/pirate.json b/src/assets/locales/pirate.json new file mode 100644 index 00000000..0abcc5d5 --- /dev/null +++ b/src/assets/locales/pirate.json @@ -0,0 +1,374 @@ +{ + "actions": { + "copied": "Copied", + "copy": "Copy" + }, + "auth": { + "deviceNameLabel": "Ship name", + "deviceNamePlaceholder": "Muad'Dib's Pirate Ship", + "generate": { + "description": "If ye lose this, ye be a silly goose and will be posted on the wall of shame™️", + "title": "Yer Passphrase" + }, + "login": { + "description": "Arr, ye be askin' for the key to me top-secret lair, also known as The Fortress of Wordsmithery, accessed only by recitin' the sacred incantation of the 12-word passphrase!", + "passphraseLabel": "12-Word Passphrase", + "passphrasePlaceholder": "Passphrase", + "submit": "Hoist Anchor", + "title": "Hoist the Jolly Roger", + "validationError": "Arr, incorrect or incomplete passphrase" + }, + "register": { + "information": { + "color1": "First Mate color", + "color2": "Second Mate color", + "header": "Enter a moniker for yer ship and choose a pirate icon and colors, arrr!", + "icon": "Pirate icon", + "title": "Pirate Account information" + } + }, + "trust": { + "failed": { + "text": "Did ye configure it correctly?", + "title": "Failed to reach the backend" + }, + "host": "Do ye trust <0>{{hostname}}?", + "no": "Abandon Ship", + "title": "Do ye trust this ship?", + "yes": "Trust" + }, + "verify": { + "description": "If ye already lost it, how will ye ever be able to take care of a wee buccaneer?", + "invalidData": "Data be not valid", + "noMatch": "Passphrase doesn't match", + "passphraseLabel": "Yer passphrase", + "recaptchaFailed": "ReCaptcha validation failed", + "register": "Register", + "title": "Enter yer passphrase" + } + }, + "errors": { + "badge": "Shiver me timbers", + "details": "Error details", + "reloadPage": "Reload the page", + "title": "That be an error, Captain" + }, + "footer": { + "legal": { + "disclaimer": "Disclaimer", + "disclaimerText": "movie-web does not host any files, it merely links to 3rd party services. Legal issues should be taken up with the file hosts and providers. movie-web be not responsible for any media files shown by the video providers." + }, + "links": { + "discord": "Discord", + "dmca": "DMCA", + "github": "GitHub" + }, + "tagline": "Watch yer favorite shows and movies with this open source streaming ship." + }, + "global": { + "name": "movie-web", + "pages": { + "about": "About", + "dmca": "DMCA", + "login": "Login", + "pagetitle": "{{title}} - movie-web", + "register": "Register", + "settings": "Settings" + } + }, + "home": { + "bookmarks": { + "sectionTitle": "Bookmarks" + }, + "continueWatching": { + "sectionTitle": "Continue Watchin'" + }, + "mediaList": { + "stopEditing": "Stop editin'" + }, + "search": { + "allResults": "That's all we have, me heartie!", + "failed": "Failed to find media, try again!", + "loading": "Loading...", + "noResults": "We couldn't find anythin', arrr!", + "placeholder": "What do ye want to watch?", + "sectionTitle": "Searchin' results" + } + }, + "media": { + "episodeDisplay": "S{{season}} E{{episode}}", + "types": { + "movie": "Film", + "show": "Show" + } + }, + "navigation": { + "banner": { + "offline": "Check yer internet connection" + }, + "menu": { + "about": "About us", + "logout": "Abandon ship", + "register": "Sync to the cloud", + "settings": "Settings", + "support": "Support" + } + }, + "notFound": { + "badge": "Not found", + "goHome": "Back to home port", + "message": "We looked everywhere: under the bins, in the closet, behind the proxy but ultimately couldn't find the treasure map ye be lookin' for.", + "title": "Couldn't find that treasure map" + }, + "overlays": { + "close": "Close" + }, + "player": { + "back": { + "default": "Back to home port", + "short": "Back" + }, + "menus": { + "captions": { + "customChoice": "Upload sea shanties", + "customizeLabel": "Customize", + "offChoice": "Off", + "settings": { + "delay": "Shanty delay", + "fixCapitals": "Fix capitalization" + }, + "title": "Sea Shanties", + "unknownLanguage": "Unknown" + }, + "downloads": { + "disclaimer": "Downloads be taken directly from the provider. movie-web does not have control over how the downloads be provided.", + "downloadCaption": "Download sea shanty", + "downloadVideo": "Download film", + "hlsExplanation": "Insert explanation for why ye can't download HLS here", + "onAndroid": { + "1": "To download on Android, tap and hold on the film, then select save.", + "shortTitle": "Download / Android", + "title": "Downloadin' on Android" + }, + "onIos": { + "1": "To download on iOS, click , then Save to Files . All that's left to do now be to pick a nice and cozy chest for yer film!", + "shortTitle": "Download / iOS", + "title": "Downloadin' on iOS" + }, + "onPc": { + "1": "On PC, right click the film and select Save film as", + "shortTitle": "Download / PC", + "title": "Downloadin' on PC" + }, + "title": "Buried Treasure" + }, + "episodes": { + "button": "Episodes", + "emptyState": "There be no episodes in this season, check back later!", + "episodeBadge": "E{{episode}}", + "loadingError": "Error loadin' season", + "loadingList": "Loading...", + "loadingTitle": "Loading..." + }, + "playback": { + "speedLabel": "Playback speed", + "title": "Playback settings" + }, + "quality": { + "automaticLabel": "Automatic quality", + "hint": "Ye can try <0>switchin' source to get different quality options.", + "iosNoQuality": "Due to Apple-defined limitations, quality selection be not available on iOS for this source. Ye can try <0>switchin' to another source to get different quality options.", + "title": "Quality" + }, + "settings": { + "captionItem": "Sea Shanty settings", + "downloadItem": "Buried Treasure", + "enableCaptions": "Enable Sea Shanties", + "experienceSection": "Viewing Experience", + "playbackItem": "Playback settings", + "qualityItem": "Quality", + "sourceItem": "Video sources", + "videoSection": "Video settings" + }, + "sources": { + "failed": { + "text": "We were unable to find any videos for this source. Don't come bitchin' to us about it, just try another source.", + "title": "Failed to scrape" + }, + "noEmbeds": { + "text": "We were unable to find any embeds for this source, please try another.", + "title": "No embeds found" + }, + "noStream": { + "text": "This source has no streams for this film or show.", + "title": "No stream" + }, + "title": "Sources", + "unknownOption": "Unknown" + } + }, + "metadata": { + "failed": { + "badge": "Failed", + "homeButton": "Go home port", + "text": "Oh, me apologies, sweetie! The itty-bitty movie-web did its utmost bestest, but alas, no wucky videos to be spotted anywhere (´⊙ω⊙`) Please don't be angwy, wittle movie-web ish twying so hard. Can ye find it in yer heart to forgive? UwU 💖", + "title": "Failed to load meta data" + }, + "notFound": { + "badge": "Not found", + "homeButton": "Back to home port", + "text": "We couldn't find the media ye requested. Either it's been removed or ye tampered with the URL.", + "title": "Couldn't find that media." + } + }, + "nextEpisode": { + "cancel": "Cancel", + "next": "Next episode" + }, + "playbackError": { + "badge": "Not found", + "errors": { + "errorAborted": "The fetchin' of the associated resource was aborted by the user's request.", + "errorDecode": "Despite havin' previously been determined to be usable, an error occurred while tryin' to decode the media resource, resultin' in an error.", + "errorGenericMedia": "Unknown media error occurred", + "errorNetwork": "Some kind of network error occurred which prevented the media from bein' successfully fetched, despite havin' previously been available.", + "errorNotSupported": "The associated resource or media provider object has been found to be unsuitable." + }, + "homeButton": "Go home port", + "text": "Oh, me apologies, sweetie! The itty-bitty movie-web did its utmost bestest, but alas, no wucky videos to be spotted anywhere (´⊙ω⊙`) Please don't be angwy, wittle movie-web ish twying so hard. Can ye find it in yer heart to forgive? UwU 💖", + "title": "Whoops, it broke!" + }, + "scraping": { + "items": { + "failure": "Error occurred", + "notFound": "Doesn't have the video", + "pending": "Checkin' for videos..." + }, + "notFound": { + "badge": "Not found", + "homeButton": "Go home port", + "text": "Oh, me apologies, sweetie! The itty-bitty movie-web did its utmost bestest, but alas, no wucky videos to be spotted anywhere (´⊙ω⊙`) Please don't be angwy, wittle movie-web ish twying so hard. Can ye find it in yer heart to forgive? UwU 💖", + "title": "Goo goo gaa gaa" + } + }, + "time": { + "regular": "{{timeWatched}} / {{duration}}", + "remaining": "{{timeLeft}} left • Finish at {{timeFinished, datetime}}", + "shortRegular": "{{timeWatched}}", + "shortRemaining": "-{{timeLeft}}" + } + }, + "screens": { + "dmca": { + "text": "In an effort to address the copyright concerns associated with the website known as \"movie-web,\" the DMCA, or Digital Jolly Roger Copyright Act, has been initiated to safeguard the intellectual property rights of content creators by reportin' infringements on this platform, thereby adherin' to legal protocols for takedown requests, which, like, ye know, it's all about, like, maintainin' the integrity of intellectual property, and, um, makin' sure, like, creators get their fair share, but then, it's, like, this intricate dance of digital legalities, where ye have to, uh, like, navigate this labyrinth of code and bytes and, uh, send, ye know, these, like, electronic documents that, um, point out the, uh, alleged infringement, and it's, like, this whole, like, teeter-totter of legality, where ye're, like, balancin', um, the rights of the, ye know, creators and the, um, operation of this, like, online, uh, entity, and, like, the DMCA, it's, like, this, um, powerful tool, but, uh, it's also, like, this, um, complex puzzle, where, ye know, ye're, like, seekin' justice in the digital wilderness, and, uh, strivin' for harmony amidst the chaos of the internet, and, um, yeah, that's, like, the whole, like, DMCA-ing thing with movie-web, ye know?", + "title": "DMCA" + }, + "loadingApp": "Loadin' application", + "loadingUser": "Loadin' yer pirate profile", + "loadingUserError": { + "reset": "Reset custom ship", + "text": "Failed to load yer pirate profile", + "textWithReset": "Failed to load yer pirate profile from yer custom ship, want to reset back to default?" + }, + "migration": { + "failed": "Failed to migrate yer booty.", + "inProgress": "Please hold, we be migratin' yer booty. This shouldn't take long." + } + }, + "settings": { + "account": { + "accountDetails": { + "deviceNameLabel": "Ship name", + "deviceNamePlaceholder": "Fremen tablet", + "editProfile": "Edit", + "logoutButton": "Abandon ship" + }, + "actions": { + "delete": { + "button": "Abandon Account", + "confirmButton": "Abandon Account", + "confirmDescription": "Arrr ye sure ye want to abandon yer account? All yer booty will be lost!", + "confirmTitle": "Arrr ye sure?", + "text": "This action be irreversible. All booty will be deleted and nothin' can be recovered.", + "title": "Abandon Account" + }, + "title": "Actions" + }, + "devices": { + "deviceNameLabel": "Ship name", + "failed": "Failed to load sessions", + "removeDevice": "Abandon ship", + "title": "Shipmates" + }, + "profile": { + "finish": "Finish editing", + "firstColor": "First color", + "secondColor": "Second color", + "title": "Edit Pirate Portrait", + "userIcon": "Pirate icon" + }, + "register": { + "cta": "Get started", + "text": "Instantly share yer watch progress between devices and keep 'em synced.", + "title": "Sync to the Cloud" + }, + "title": "Treasure Chest" + }, + "appearance": { + "activeTheme": "Active", + "themes": { + "blue": "Blue", + "default": "Default", + "gray": "Gray", + "red": "Red", + "teal": "Teal" + }, + "title": "Appearance" + }, + "captions": { + "backgroundLabel": "Background opacity", + "colorLabel": "Color", + "previewQuote": "I must not fear. Fear be the mind-killer.", + "textSizeLabel": "Text size", + "title": "Captions" + }, + "connections": { + "server": { + "description": "To make the application function, all traffic be routed through proxies. Enable this if ye want to bring yer own sailors.", + "label": "Custom ship", + "urlLabel": "Custom ship URL" + }, + "title": "Connections", + "workers": { + "addButton": "Recruit new sailor", + "description": "To make the application function, all traffic be routed through proxies. Enable this if ye want to bring yer own sailors.", + "emptyState": "No sailors yet, add one below", + "label": "Use custom proxy sailors", + "urlLabel": "Sailor URLs", + "urlPlaceholder": "https://" + } + }, + "locale": { + "language": "Application language", + "languageDescription": "Language applied to the entire application.", + "title": "Locale" + }, + "reset": "Reset", + "save": "Save", + "sidebar": { + "info": { + "appVersion": "App version", + "backendUrl": "Backend URL", + "backendVersion": "Backend version", + "hostname": "Ship name", + "insecure": "Insecure", + "notLoggedIn": "Not logged in", + "secure": "Secure", + "title": "App information", + "unknownVersion": "Unknown", + "userId": "Pirate ID" + } + }, + "unsaved": "Ye have unsaved changes" + } +} diff --git a/src/assets/locales/pl.json b/src/assets/locales/pl.json new file mode 100644 index 00000000..eb84442f --- /dev/null +++ b/src/assets/locales/pl.json @@ -0,0 +1,74 @@ +{ + "global": { + "name": "movie-web" + }, + "home": { + "search": { + "allResults": "To wszystko co mamy!", + "sectionTitle": "Wyniki wyszukiwania", + "noResults": "Nie mogliśmy niczego znaleźć!", + "failed": "Nie udało się znaleźć mediów, Spróbuj ponownie!", + "loading": "Wczytywanie...", + "placeholder": "Co chciałbyś obejrzeć?" + }, + "bookmarks": { + "sectionTitle": "Zakładki" + }, + "continueWatching": { + "sectionTitle": "Kontynuuj oglądanie" + } + }, + "media": { + "types": { + "movie": "Filmy", + "show": "Seriale" + }, + "episodeDisplay": "S{{season}} E{{episode}}" + }, + "player": { + "playbackError": { + "title": "Ups, popsuło się!" + }, + "metadata": { + "notFound": { + "badge": "Nie znaleziono", + "homeButton": "Wróć na stronę główną", + "title": "Nie można znaleźć multimediów.", + "text": "Nie mogliśmy znaleźć rządanych multimediów. Albo zostały usunięte, albo grzebałeś przy adresie URL." + } + }, + "menus": { + "captions": { + "customChoice": "Załącz", + "customizeLabel": "Personalizuj", + "title": "Napisy" + }, + "sources": { + "title": "Źródła" + }, + "episodes": { + "button": "Odcinki", + "loadingTitle": "Wczytywanie...", + "loadingList": "Wczytywanie..." + } + }, + "back": { + "default": "Wróć na stronę główną", + "short": "Wróć" + } + }, + "notFound": { + "badge": "Nie znaleziono", + "goHome": "Wróć na stronę główną", + "title": "Nie można znaleźć tej strony", + "message": "Szukaliśmy wszędzie: w koszu, w szafie a nawet w piwnicy, ale nie byliśmy w stanie znaleźć strony której szukasz." + }, + "navigation": { + "banner": { + "offline": "Sprawdź swoje połączenie sieciowe" + } + }, + "overlays": { + "close": "Zamknąć" + } +} diff --git a/src/assets/locales/tr.json b/src/assets/locales/tr.json new file mode 100644 index 00000000..2605174e --- /dev/null +++ b/src/assets/locales/tr.json @@ -0,0 +1,74 @@ +{ + "global": { + "name": "movie-web" + }, + "home": { + "search": { + "allResults": "Bu kadarını bulabildik!", + "sectionTitle": "Arama sonuçları", + "noResults": "Hiçbir şey bulamadık!", + "failed": "Medya bulunamadı, tekrar deneyin!", + "loading": "Yükleniyor...", + "placeholder": "Ne izlemek istersiniz?" + }, + "bookmarks": { + "sectionTitle": "Yerimleri" + }, + "continueWatching": { + "sectionTitle": "İzlemeye devam edin" + } + }, + "media": { + "types": { + "movie": "Film", + "show": "Dizi" + }, + "episodeDisplay": "S{{season}} B{{episode}}" + }, + "player": { + "playbackError": { + "title": "Hay aksi, bozuldu!" + }, + "metadata": { + "notFound": { + "badge": "Bulunamadı", + "homeButton": "Geri", + "title": "Medya bulunamadı.", + "text": "İstediğiniz medyayı bulamadık. URL'i yanlış girdiniz ya da medya kaldırıldı." + } + }, + "menus": { + "captions": { + "customChoice": "Altyazı yükle", + "customizeLabel": "Kişiselleştirme", + "title": "Altyazılar" + }, + "sources": { + "title": "Kaynaklar" + }, + "episodes": { + "button": "Bölümler", + "loadingTitle": "Yükleniyor...", + "loadingList": "Yükleniyor..." + } + }, + "back": { + "default": "Ana sayfaya dön", + "short": "Geri" + } + }, + "notFound": { + "badge": "Bulunamadı", + "goHome": "Geri", + "title": "Sayfa bulunamadı", + "message": "Her yere baktık: bazanın altına, dolabın içine hatta ara sunucuya ama maalesef aradığınız sayfayı bulamadık." + }, + "navigation": { + "banner": { + "offline": "İnternet bağlantınızı kontrol ediniz" + } + }, + "overlays": { + "close": "Kapat" + } +} diff --git a/src/assets/locales/vi.json b/src/assets/locales/vi.json new file mode 100644 index 00000000..fcf6ceed --- /dev/null +++ b/src/assets/locales/vi.json @@ -0,0 +1,71 @@ +{ + "global": { + "name": "movie-web" + }, + "home": { + "search": { + "allResults": "Đó là tất cả chúng tôi có!", + "sectionTitle": "Kết quả tìm kiếm", + "noResults": "Chúng tôi không thể tìm thấy gì!", + "failed": "Không thể tìm thấy nội dung, hãy thử lại!", + "loading": "Đang tải...", + "placeholder": "Bạn muốn xem gì?" + }, + "bookmarks": { + "sectionTitle": "Đánh dấu" + }, + "continueWatching": { + "sectionTitle": "Tiếp tục xem" + } + }, + "media": { + "types": { + "movie": "Phim", + "show": "Chương trình truyền hình" + }, + "episodeDisplay": "M{{season}} T{{episode}}" + }, + "player": { + "playbackError": { + "title": "Rất tiếc, đã hỏng!" + }, + "metadata": { + "notFound": { + "badge": "Không tìm thấy", + "homeButton": "Quay lại trang chính", + "title": "Không thể tìm thấy nội dung.", + "text": "Chúng tôi không thể tìm thấy nội dung mà bạn yêu cầu. Hoặc là nó đã bị xóa, hoặc bạn đã xáo trộn URL." + } + }, + "menus": { + "captions": { + "customChoice": "Tải phụ đề lên", + "customizeLabel": "Tùy chỉnh", + "title": "Phụ đề" + }, + "sources": { + "title": "Nguồn" + }, + "episodes": { + "button": "Tập", + "loadingTitle": "Đang tải...", + "loadingList": "Đang tải..." + } + }, + "back": { + "default": "Quay lại trang chính", + "short": "Quay lại" + } + }, + "notFound": { + "badge": "Không tìm thấy", + "goHome": "Quay lại trang chính", + "title": "Không thể tìm thấy trang", + "message": "Chúng tôi đã tìm kiếm khắp nơi: dưới thùng rác, trong tủ quần áo, đằng sau máy chủ proxy nhưng vẫn không thể tìm thấy trang bạn đang tìm kiếm." + }, + "navigation": { + "banner": { + "offline": "Hãy kiểm tra kết nối Internet của bạn" + } + } +} diff --git a/src/assets/locales/zh.json b/src/assets/locales/zh.json new file mode 100644 index 00000000..12f341bc --- /dev/null +++ b/src/assets/locales/zh.json @@ -0,0 +1,71 @@ +{ + "global": { + "name": "movie-web" + }, + "home": { + "search": { + "allResults": "以上是我们能找到的所有结果!", + "sectionTitle": "搜索结果", + "noResults": "我们找不到任何结果!", + "failed": "查找媒体失败,请重试!", + "loading": "载入中……", + "placeholder": "您想看些什么?" + }, + "bookmarks": { + "sectionTitle": "书签" + }, + "continueWatching": { + "sectionTitle": "继续观看" + } + }, + "media": { + "types": { + "movie": "电影", + "show": "连续剧" + }, + "episodeDisplay": "第{{season}}季 第{{episode}}集" + }, + "player": { + "playbackError": { + "title": "哎呀,出问题了!" + }, + "metadata": { + "notFound": { + "badge": "未找到", + "homeButton": "返回首页", + "title": "无法找到媒体.", + "text": "我们无法找到您请求的媒体。它可能已被删除,或您篡改了 URL." + } + }, + "menus": { + "captions": { + "customChoice": "上传字幕", + "customizeLabel": "自定义", + "title": "字幕" + }, + "sources": { + "title": "视频源" + }, + "episodes": { + "button": "分集", + "loadingTitle": "载入中……", + "loadingList": "载入中……" + } + }, + "back": { + "default": "返回首页", + "short": "返回" + } + }, + "notFound": { + "badge": "未找到", + "goHome": "返回首页", + "title": "无法找到页面", + "message": "我们已经到处找过了:不管是垃圾桶下、橱柜里或是代理之后。但最终并没有发现您查找的页面。" + }, + "navigation": { + "banner": { + "offline": "检查您的互联网连接" + } + } +} diff --git a/src/assets/templates/opensearch.xml.hbs b/src/assets/templates/opensearch.xml.hbs new file mode 100644 index 00000000..e0ce3a5a --- /dev/null +++ b/src/assets/templates/opensearch.xml.hbs @@ -0,0 +1,6 @@ + + movie-web + The place for your favorite movies & shows + UTF-8 + + diff --git a/src/backend/accounts/auth.ts b/src/backend/accounts/auth.ts new file mode 100644 index 00000000..2237be58 --- /dev/null +++ b/src/backend/accounts/auth.ts @@ -0,0 +1,35 @@ +import { ofetch } from "ofetch"; + +export interface SessionResponse { + id: string; + userId: string; + createdAt: string; + accessedAt: string; + device: string; + userAgent: string; +} +export interface LoginResponse { + session: SessionResponse; + token: string; +} + +export function getAuthHeaders(token: string): Record { + return { + authorization: `Bearer ${token}`, + }; +} + +export async function accountLogin( + url: string, + id: string, + deviceName: string +): Promise { + return ofetch("/auth/login", { + method: "POST", + body: { + id, + device: deviceName, + }, + baseURL: url, + }); +} diff --git a/src/backend/accounts/bookmarks.ts b/src/backend/accounts/bookmarks.ts new file mode 100644 index 00000000..84f8a459 --- /dev/null +++ b/src/backend/accounts/bookmarks.ts @@ -0,0 +1,64 @@ +import { ofetch } from "ofetch"; + +import { getAuthHeaders } from "@/backend/accounts/auth"; +import { BookmarkResponse } from "@/backend/accounts/user"; +import { AccountWithToken } from "@/stores/auth"; +import { BookmarkMediaItem } from "@/stores/bookmarks"; + +export interface BookmarkMetaInput { + title: string; + year: number; + poster?: string; + type: string; +} + +export interface BookmarkInput { + tmdbId: string; + meta: BookmarkMetaInput; +} + +export function bookmarkMediaToInput( + tmdbId: string, + item: BookmarkMediaItem +): BookmarkInput { + return { + meta: { + title: item.title, + type: item.type, + poster: item.poster, + year: item.year ?? 0, + }, + tmdbId, + }; +} + +export async function addBookmark( + url: string, + account: AccountWithToken, + input: BookmarkInput +) { + return ofetch( + `/users/${account.userId}/bookmarks/${input.tmdbId}`, + { + method: "POST", + headers: getAuthHeaders(account.token), + baseURL: url, + body: input, + } + ); +} + +export async function removeBookmark( + url: string, + account: AccountWithToken, + id: string +) { + return ofetch<{ tmdbId: string }>( + `/users/${account.userId}/bookmarks/${id}`, + { + method: "DELETE", + headers: getAuthHeaders(account.token), + baseURL: url, + } + ); +} diff --git a/src/backend/accounts/crypto.ts b/src/backend/accounts/crypto.ts new file mode 100644 index 00000000..f753ba27 --- /dev/null +++ b/src/backend/accounts/crypto.ts @@ -0,0 +1,131 @@ +import { pbkdf2Async } from "@noble/hashes/pbkdf2"; +import { sha256 } from "@noble/hashes/sha256"; +import { generateMnemonic, validateMnemonic } from "@scure/bip39"; +import { wordlist } from "@scure/bip39/wordlists/english"; +import forge from "node-forge"; + +type Keys = { + privateKey: Uint8Array; + publicKey: Uint8Array; + seed: Uint8Array; +}; + +async function seedFromMnemonic(mnemonic: string) { + return pbkdf2Async(sha256, mnemonic, "mnemonic", { + c: 2048, + dkLen: 32, + }); +} + +export function verifyValidMnemonic(mnemonic: string) { + return validateMnemonic(mnemonic, wordlist); +} + +export async function keysFromMnemonic(mnemonic: string): Promise { + const seed = await seedFromMnemonic(mnemonic); + + const { privateKey, publicKey } = forge.pki.ed25519.generateKeyPair({ + seed, + }); + + return { + privateKey, + publicKey, + seed, + }; +} + +export function genMnemonic(): string { + return generateMnemonic(wordlist); +} + +export async function signCode( + code: string, + privateKey: Uint8Array +): Promise { + return forge.pki.ed25519.sign({ + encoding: "utf8", + message: code, + privateKey, + }); +} + +export function bytesToBase64(bytes: Uint8Array) { + return forge.util.encode64(String.fromCodePoint(...bytes)); +} + +export function bytesToBase64Url(bytes: Uint8Array): string { + return bytesToBase64(bytes) + .replace(/\//g, "_") + .replace(/\+/g, "-") + .replace(/=+$/, ""); +} + +export async function signChallenge(keys: Keys, challengeCode: string) { + const signature = await signCode(challengeCode, keys.privateKey); + return bytesToBase64Url(signature); +} + +export function base64ToBuffer(data: string) { + return forge.util.binary.base64.decode(data); +} + +export function base64ToStringBuffer(data: string) { + return forge.util.createBuffer(base64ToBuffer(data)); +} + +export function stringBufferToBase64(buffer: forge.util.ByteStringBuffer) { + return forge.util.encode64(buffer.getBytes()); +} + +export async function encryptData(data: string, secret: Uint8Array) { + if (secret.byteLength !== 32) + throw new Error("Secret must be at least 256-bit"); + + const iv = await new Promise((resolve, reject) => { + forge.random.getBytes(16, (err, bytes) => { + if (err) reject(err); + resolve(bytes); + }); + }); + + const cipher = forge.cipher.createCipher( + "AES-GCM", + forge.util.createBuffer(secret) + ); + cipher.start({ + iv, + tagLength: 128, + }); + cipher.update(forge.util.createBuffer(data, "utf8")); + cipher.finish(); + + const encryptedData = cipher.output; + const tag = cipher.mode.tag; + + return `${forge.util.encode64(iv)}.${stringBufferToBase64( + encryptedData + )}.${stringBufferToBase64(tag)}` as const; +} + +export function decryptData(data: string, secret: Uint8Array) { + if (secret.byteLength !== 32) throw new Error("Secret must be 256-bit"); + + const [iv, encryptedData, tag] = data.split("."); + + const decipher = forge.cipher.createDecipher( + "AES-GCM", + forge.util.createBuffer(secret) + ); + decipher.start({ + iv: base64ToStringBuffer(iv), + tag: base64ToStringBuffer(tag), + tagLength: 128, + }); + decipher.update(base64ToStringBuffer(encryptedData)); + const pass = decipher.finish(); + + if (!pass) throw new Error("Error decrypting data"); + + return decipher.output.toString(); +} diff --git a/src/backend/accounts/import.ts b/src/backend/accounts/import.ts new file mode 100644 index 00000000..c09123cb --- /dev/null +++ b/src/backend/accounts/import.ts @@ -0,0 +1,33 @@ +import { ofetch } from "ofetch"; + +import { getAuthHeaders } from "@/backend/accounts/auth"; +import { AccountWithToken } from "@/stores/auth"; + +import { BookmarkInput } from "./bookmarks"; +import { ProgressInput } from "./progress"; + +export function importProgress( + url: string, + account: AccountWithToken, + progressItems: ProgressInput[] +) { + return ofetch(`/users/${account.userId}/progress/import`, { + method: "PUT", + body: progressItems, + baseURL: url, + headers: getAuthHeaders(account.token), + }); +} + +export function importBookmarks( + url: string, + account: AccountWithToken, + bookmarks: BookmarkInput[] +) { + return ofetch(`/users/${account.userId}/bookmarks`, { + method: "PUT", + body: bookmarks, + baseURL: url, + headers: getAuthHeaders(account.token), + }); +} diff --git a/src/backend/accounts/login.ts b/src/backend/accounts/login.ts new file mode 100644 index 00000000..6b18a086 --- /dev/null +++ b/src/backend/accounts/login.ts @@ -0,0 +1,48 @@ +import { ofetch } from "ofetch"; + +import { SessionResponse } from "@/backend/accounts/auth"; + +export interface ChallengeTokenResponse { + challenge: string; +} + +export async function getLoginChallengeToken( + url: string, + publicKey: string +): Promise { + return ofetch("/auth/login/start", { + method: "POST", + body: { + publicKey, + }, + baseURL: url, + }); +} + +export interface LoginResponse { + session: SessionResponse; + token: string; +} + +export interface LoginInput { + publicKey: string; + challenge: { + code: string; + signature: string; + }; + device: string; +} + +export async function loginAccount( + url: string, + data: LoginInput +): Promise { + return ofetch("/auth/login/complete", { + method: "POST", + body: { + namespace: "movie-web", + ...data, + }, + baseURL: url, + }); +} diff --git a/src/backend/accounts/meta.ts b/src/backend/accounts/meta.ts new file mode 100644 index 00000000..0886dc11 --- /dev/null +++ b/src/backend/accounts/meta.ts @@ -0,0 +1,15 @@ +import { ofetch } from "ofetch"; + +export interface MetaResponse { + version: string; + name: string; + description?: string; + hasCaptcha: boolean; + captchaClientKey?: string; +} + +export async function getBackendMeta(url: string): Promise { + return ofetch("/meta", { + baseURL: url, + }); +} diff --git a/src/backend/accounts/progress.ts b/src/backend/accounts/progress.ts new file mode 100644 index 00000000..037e4c56 --- /dev/null +++ b/src/backend/accounts/progress.ts @@ -0,0 +1,115 @@ +import { ofetch } from "ofetch"; + +import { getAuthHeaders } from "@/backend/accounts/auth"; +import { ProgressResponse } from "@/backend/accounts/user"; +import { AccountWithToken } from "@/stores/auth"; +import { ProgressMediaItem, ProgressUpdateItem } from "@/stores/progress"; + +export interface ProgressInput { + meta?: { + title: string; + year: number; + poster?: string; + type: string; + }; + tmdbId: string; + watched: number; + duration: number; + seasonId?: string; + episodeId?: string; + seasonNumber?: number; + episodeNumber?: number; + updatedAt?: string; +} + +export function progressUpdateItemToInput( + item: ProgressUpdateItem +): ProgressInput { + return { + duration: item.progress?.duration ?? 0, + watched: item.progress?.watched ?? 0, + tmdbId: item.tmdbId, + meta: { + title: item.title ?? "", + type: item.type ?? "", + year: item.year ?? NaN, + poster: item.poster, + }, + episodeId: item.episodeId, + seasonId: item.seasonId, + episodeNumber: item.episodeNumber, + seasonNumber: item.seasonNumber, + }; +} + +export function progressMediaItemToInputs( + tmdbId: string, + item: ProgressMediaItem +): ProgressInput[] { + if (item.type === "show") { + return Object.entries(item.episodes).flatMap(([_, episode]) => ({ + duration: item.progress?.duration ?? episode.progress.duration, + watched: item.progress?.watched ?? episode.progress.watched, + tmdbId, + meta: { + title: item.title ?? "", + type: item.type ?? "", + year: item.year ?? NaN, + poster: item.poster, + }, + episodeId: episode.id, + seasonId: episode.seasonId, + episodeNumber: episode.number, + seasonNumber: item.seasons[episode.seasonId].number, + updatedAt: new Date(episode.updatedAt).toISOString(), + })); + } + return [ + { + duration: item.progress?.duration ?? 0, + watched: item.progress?.watched ?? 0, + tmdbId, + updatedAt: new Date(item.updatedAt).toISOString(), + meta: { + title: item.title ?? "", + type: item.type ?? "", + year: item.year ?? NaN, + poster: item.poster, + }, + }, + ]; +} + +export async function setProgress( + url: string, + account: AccountWithToken, + input: ProgressInput +) { + return ofetch( + `/users/${account.userId}/progress/${input.tmdbId}`, + { + method: "PUT", + headers: getAuthHeaders(account.token), + baseURL: url, + body: input, + } + ); +} + +export async function removeProgress( + url: string, + account: AccountWithToken, + id: string, + episodeId?: string, + seasonId?: string +) { + await ofetch(`/users/${account.userId}/progress/${id}`, { + method: "DELETE", + headers: getAuthHeaders(account.token), + baseURL: url, + body: { + episodeId, + seasonId, + }, + }); +} diff --git a/src/backend/accounts/register.ts b/src/backend/accounts/register.ts new file mode 100644 index 00000000..1adfcd08 --- /dev/null +++ b/src/backend/accounts/register.ts @@ -0,0 +1,55 @@ +import { ofetch } from "ofetch"; + +import { SessionResponse } from "@/backend/accounts/auth"; +import { UserResponse } from "@/backend/accounts/user"; + +export interface ChallengeTokenResponse { + challenge: string; +} + +export async function getRegisterChallengeToken( + url: string, + captchaToken?: string +): Promise { + return ofetch("/auth/register/start", { + method: "POST", + body: { + captchaToken, + }, + baseURL: url, + }); +} + +export interface RegisterResponse { + user: UserResponse; + session: SessionResponse; + token: string; +} + +export interface RegisterInput { + publicKey: string; + challenge: { + code: string; + signature: string; + }; + device: string; + profile: { + colorA: string; + colorB: string; + icon: string; + }; +} + +export async function registerAccount( + url: string, + data: RegisterInput +): Promise { + return ofetch("/auth/register/complete", { + method: "POST", + body: { + namespace: "movie-web", + ...data, + }, + baseURL: url, + }); +} diff --git a/src/backend/accounts/sessions.ts b/src/backend/accounts/sessions.ts new file mode 100644 index 00000000..b2adc3d8 --- /dev/null +++ b/src/backend/accounts/sessions.ts @@ -0,0 +1,49 @@ +import { ofetch } from "ofetch"; + +import { getAuthHeaders } from "@/backend/accounts/auth"; +import { AccountWithToken } from "@/stores/auth"; + +export interface SessionResponse { + id: string; + userId: string; + createdAt: string; + accessedAt: string; + device: string; + userAgent: string; +} + +export interface SessionUpdate { + deviceName: string; +} + +export async function getSessions(url: string, account: AccountWithToken) { + return ofetch(`/users/${account.userId}/sessions`, { + headers: getAuthHeaders(account.token), + baseURL: url, + }); +} + +export async function updateSession( + url: string, + account: AccountWithToken, + update: SessionUpdate +) { + return ofetch(`/sessions/${account.sessionId}`, { + method: "PATCH", + headers: getAuthHeaders(account.token), + body: update, + baseURL: url, + }); +} + +export async function removeSession( + url: string, + token: string, + sessionId: string +) { + return ofetch(`/sessions/${sessionId}`, { + method: "DELETE", + headers: getAuthHeaders(token), + baseURL: url, + }); +} diff --git a/src/backend/accounts/settings.ts b/src/backend/accounts/settings.ts new file mode 100644 index 00000000..8205b931 --- /dev/null +++ b/src/backend/accounts/settings.ts @@ -0,0 +1,37 @@ +import { ofetch } from "ofetch"; + +import { getAuthHeaders } from "@/backend/accounts/auth"; +import { AccountWithToken } from "@/stores/auth"; + +export interface SettingsInput { + applicationLanguage?: string; + applicationTheme?: string | null; + defaultSubtitleLanguage?: string; +} + +export interface SettingsResponse { + applicationTheme?: string | null; + applicationLanguage?: string | null; + defaultSubtitleLanguage?: string | null; +} + +export function updateSettings( + url: string, + account: AccountWithToken, + settings: SettingsInput +) { + return ofetch(`/users/${account.userId}/settings`, { + method: "PUT", + body: settings, + baseURL: url, + headers: getAuthHeaders(account.token), + }); +} + +export function getSettings(url: string, account: AccountWithToken) { + return ofetch(`/users/${account.userId}/settings`, { + method: "GET", + baseURL: url, + headers: getAuthHeaders(account.token), + }); +} diff --git a/src/backend/accounts/user.ts b/src/backend/accounts/user.ts new file mode 100644 index 00000000..b13aba9f --- /dev/null +++ b/src/backend/accounts/user.ts @@ -0,0 +1,171 @@ +import { ofetch } from "ofetch"; + +import { SessionResponse, getAuthHeaders } from "@/backend/accounts/auth"; +import { AccountWithToken } from "@/stores/auth"; +import { BookmarkMediaItem } from "@/stores/bookmarks"; +import { ProgressMediaItem } from "@/stores/progress"; + +export interface UserResponse { + id: string; + namespace: string; + name: string; + roles: string[]; + createdAt: string; + profile: { + colorA: string; + colorB: string; + icon: string; + }; +} + +export interface UserEdit { + profile?: { + colorA: string; + colorB: string; + icon: string; + }; +} + +export interface BookmarkResponse { + tmdbId: string; + meta: { + title: string; + year: number; + poster?: string; + type: "show" | "movie"; + }; + updatedAt: string; +} + +export interface ProgressResponse { + tmdbId: string; + season: { + id?: string; + number?: number; + }; + episode: { + id?: string; + number?: number; + }; + meta: { + title: string; + year: number; + poster?: string; + type: "show" | "movie"; + }; + duration: string; + watched: string; + updatedAt: string; +} + +export function bookmarkResponsesToEntries(responses: BookmarkResponse[]) { + const entries = responses.map((bookmark) => { + const item: BookmarkMediaItem = { + ...bookmark.meta, + updatedAt: new Date(bookmark.updatedAt).getTime(), + }; + return [bookmark.tmdbId, item] as const; + }); + + return Object.fromEntries(entries); +} + +export function progressResponsesToEntries(responses: ProgressResponse[]) { + const items: Record = {}; + + responses.forEach((v) => { + if (!items[v.tmdbId]) { + items[v.tmdbId] = { + title: v.meta.title, + poster: v.meta.poster, + type: v.meta.type, + updatedAt: new Date(v.updatedAt).getTime(), + episodes: {}, + seasons: {}, + year: v.meta.year, + }; + } + + const item = items[v.tmdbId]; + if (item.type === "movie") { + item.progress = { + duration: Number(v.duration), + watched: Number(v.watched), + }; + } + + if (item.type === "show" && v.season.id && v.episode.id) { + item.seasons[v.season.id] = { + id: v.season.id, + number: v.season.number ?? 0, + title: "", + }; + item.episodes[v.episode.id] = { + id: v.episode.id, + number: v.episode.number ?? 0, + title: "", + progress: { + duration: Number(v.duration), + watched: Number(v.watched), + }, + seasonId: v.season.id, + updatedAt: new Date(v.updatedAt).getTime(), + }; + } + }); + + return items; +} + +export async function getUser( + url: string, + token: string +): Promise<{ user: UserResponse; session: SessionResponse }> { + return ofetch<{ user: UserResponse; session: SessionResponse }>( + "/users/@me", + { + headers: getAuthHeaders(token), + baseURL: url, + } + ); +} + +export async function editUser( + url: string, + account: AccountWithToken, + object: UserEdit +): Promise<{ user: UserResponse; session: SessionResponse }> { + return ofetch<{ user: UserResponse; session: SessionResponse }>( + `/users/${account.userId}`, + { + method: "PATCH", + headers: getAuthHeaders(account.token), + body: object, + baseURL: url, + } + ); +} + +export async function deleteUser( + url: string, + account: AccountWithToken +): Promise { + return ofetch(`/users/${account.userId}`, { + headers: getAuthHeaders(account.token), + baseURL: url, + }); +} + +export async function getBookmarks(url: string, account: AccountWithToken) { + return ofetch(`/users/${account.userId}/bookmarks`, { + headers: getAuthHeaders(account.token), + baseURL: url, + }); +} + +export async function getProgress(url: string, account: AccountWithToken) { + return ofetch(`/users/${account.userId}/progress`, { + headers: getAuthHeaders(account.token), + baseURL: url, + }); +} diff --git a/src/backend/embeds/.gitkeep b/src/backend/embeds/.gitkeep deleted file mode 100644 index f42d5aa9..00000000 --- a/src/backend/embeds/.gitkeep +++ /dev/null @@ -1 +0,0 @@ -embed scrapers go here diff --git a/src/backend/embeds/mp4upload.ts b/src/backend/embeds/mp4upload.ts deleted file mode 100644 index 3902e20b..00000000 --- a/src/backend/embeds/mp4upload.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { MWEmbedType } from "@/backend/helpers/embed"; -import { registerEmbedScraper } from "@/backend/helpers/register"; -import { MWStreamQuality, MWStreamType } from "@/backend/helpers/streams"; - -import { proxiedFetch } from "../helpers/fetch"; - -registerEmbedScraper({ - id: "mp4upload", - displayName: "mp4upload", - for: MWEmbedType.MP4UPLOAD, - rank: 170, - async getStream({ url }) { - const embed = await proxiedFetch(url); - - const playerSrcRegex = - /(?<=player\.src\()\s*{\s*type:\s*"[^"]+",\s*src:\s*"([^"]+)"\s*}\s*(?=\);)/s; - - const playerSrc = embed.match(playerSrcRegex); - - const streamUrl = playerSrc[1]; - - if (!streamUrl) throw new Error("Stream url not found"); - - return { - embedId: MWEmbedType.MP4UPLOAD, - streamUrl, - quality: MWStreamQuality.Q1080P, - captions: [], - type: MWStreamType.MP4, - }; - }, -}); diff --git a/src/backend/embeds/playm4u.ts b/src/backend/embeds/playm4u.ts deleted file mode 100644 index 1e5c3ca4..00000000 --- a/src/backend/embeds/playm4u.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { MWEmbedType } from "@/backend/helpers/embed"; -import { registerEmbedScraper } from "@/backend/helpers/register"; -import { MWStreamQuality, MWStreamType } from "@/backend/helpers/streams"; - -registerEmbedScraper({ - id: "playm4u", - displayName: "playm4u", - for: MWEmbedType.PLAYM4U, - rank: 0, - async getStream() { - // throw new Error("Oh well 2") - return { - embedId: "", - streamUrl: "", - quality: MWStreamQuality.Q1080P, - captions: [], - type: MWStreamType.MP4, - }; - }, -}); diff --git a/src/backend/embeds/streamm4u.ts b/src/backend/embeds/streamm4u.ts deleted file mode 100644 index abdc1486..00000000 --- a/src/backend/embeds/streamm4u.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { MWEmbedType } from "@/backend/helpers/embed"; -import { proxiedFetch } from "@/backend/helpers/fetch"; -import { registerEmbedScraper } from "@/backend/helpers/register"; -import { - MWEmbedStream, - MWStreamQuality, - MWStreamType, -} from "@/backend/helpers/streams"; - -const HOST = "streamm4u.club"; -const URL_BASE = `https://${HOST}`; -const URL_API = `${URL_BASE}/api`; -const URL_API_SOURCE = `${URL_API}/source`; - -async function scrape(embed: string) { - const sources: MWEmbedStream[] = []; - - const embedID = embed.split("/").pop(); - - console.log(`${URL_API_SOURCE}/${embedID}`); - const json = await proxiedFetch(`${URL_API_SOURCE}/${embedID}`, { - method: "POST", - body: `r=&d=${HOST}`, - }); - - if (json.success) { - const streams = json.data; - - for (const stream of streams) { - sources.push({ - embedId: "", - streamUrl: stream.file as string, - quality: stream.label as MWStreamQuality, - type: stream.type as MWStreamType, - captions: [], - }); - } - } - - return sources; -} - -// TODO check out 403 / 404 on successfully returned video stream URLs -registerEmbedScraper({ - id: "streamm4u", - displayName: "streamm4u", - for: MWEmbedType.STREAMM4U, - rank: 100, - async getStream({ progress, url }) { - // const scrapingThreads = []; - // const streams = []; - - const sources = (await scrape(url)).sort( - (a, b) => - Number(b.quality.replace("p", "")) - Number(a.quality.replace("p", "")) - ); - // const preferredSourceIndex = 0; - const preferredSource = sources[0]; - - if (!preferredSource) throw new Error("No source found"); - - progress(100); - - return preferredSource; - }, -}); diff --git a/src/backend/embeds/streamsb.ts b/src/backend/embeds/streamsb.ts deleted file mode 100644 index e91b43c7..00000000 --- a/src/backend/embeds/streamsb.ts +++ /dev/null @@ -1,211 +0,0 @@ -import Base64 from "crypto-js/enc-base64"; -import Utf8 from "crypto-js/enc-utf8"; - -import { MWEmbedType } from "@/backend/helpers/embed"; -import { proxiedFetch } from "@/backend/helpers/fetch"; -import { registerEmbedScraper } from "@/backend/helpers/register"; -import { - MWCaptionType, - MWStreamQuality, - MWStreamType, -} from "@/backend/helpers/streams"; - -const qualityOrder = [ - MWStreamQuality.Q1080P, - MWStreamQuality.Q720P, - MWStreamQuality.Q480P, - MWStreamQuality.Q360P, -]; - -async function fetchCaptchaToken(domain: string, recaptchaKey: string) { - const domainHash = Base64.stringify(Utf8.parse(domain)).replace(/=/g, "."); - - const recaptchaRender = await proxiedFetch( - `https://www.google.com/recaptcha/api.js?render=${recaptchaKey}` - ); - - const vToken = recaptchaRender.substring( - recaptchaRender.indexOf("/releases/") + 10, - recaptchaRender.indexOf("/recaptcha__en.js") - ); - - const recaptchaAnchor = await proxiedFetch( - `https://www.google.com/recaptcha/api2/anchor?ar=1&hl=en&size=invisible&cb=flicklax&k=${recaptchaKey}&co=${domainHash}&v=${vToken}` - ); - - const cToken = new DOMParser() - .parseFromString(recaptchaAnchor, "text/html") - .getElementById("recaptcha-token") - ?.getAttribute("value"); - - if (!cToken) throw new Error("Unable to find cToken"); - - const payload = { - v: vToken, - reason: "q", - k: recaptchaKey, - c: cToken, - sa: "", - co: domain, - }; - - const tokenData = await proxiedFetch( - `https://www.google.com/recaptcha/api2/reload?${new URLSearchParams( - payload - ).toString()}`, - { - headers: { referer: "https://www.google.com/recaptcha/api2/" }, - method: "POST", - } - ); - - const token = tokenData.match('rresp","(.+?)"'); - return token ? token[1] : null; -} - -registerEmbedScraper({ - id: "streamsb", - displayName: "StreamSB", - for: MWEmbedType.STREAMSB, - rank: 150, - async getStream({ url, progress }) { - /* Url variations - - domain.com/{id}?.html - - domain.com/{id} - - domain.com/embed-{id} - - domain.com/d/{id} - - domain.com/e/{id} - - domain.com/e/{id}-embed - */ - const streamsbUrl = url - .replace(".html", "") - .replace("embed-", "") - .replace("e/", "") - .replace("d/", ""); - - const parsedUrl = new URL(streamsbUrl); - const base = await proxiedFetch( - `${parsedUrl.origin}/d${parsedUrl.pathname}` - ); - - progress(20); - - // Parse captions from url - const captionUrl = parsedUrl.searchParams.get("caption_1"); - const captionLang = parsedUrl.searchParams.get("sub_1"); - - const basePage = new DOMParser().parseFromString(base, "text/html"); - - const downloadVideoFunctions = basePage.querySelectorAll( - "[onclick^=download_video]" - ); - - let dlDetails = []; - for (const func of downloadVideoFunctions) { - const funcContents = func.getAttribute("onclick"); - const regExpFunc = /download_video\('(.+?)','(.+?)','(.+?)'\)/; - const matchesFunc = regExpFunc.exec(funcContents ?? ""); - if (matchesFunc !== null) { - const quality = func.querySelector("span")?.textContent; - const regExpQuality = /(.+?) \((.+?)\)/; - const matchesQuality = regExpQuality.exec(quality ?? ""); - if (matchesQuality !== null) { - dlDetails.push({ - parameters: [matchesFunc[1], matchesFunc[2], matchesFunc[3]], - quality: { - label: matchesQuality[1].trim(), - size: matchesQuality[2], - }, - }); - } - } - } - - dlDetails = dlDetails.sort((a, b) => { - const aQuality = qualityOrder.indexOf(a.quality.label as MWStreamQuality); - const bQuality = qualityOrder.indexOf(b.quality.label as MWStreamQuality); - return aQuality - bQuality; - }); - - progress(40); - - let dls = await Promise.all( - dlDetails.map(async (dl) => { - const getDownload = await proxiedFetch( - `/dl?op=download_orig&id=${dl.parameters[0]}&mode=${dl.parameters[1]}&hash=${dl.parameters[2]}`, - { - baseURL: parsedUrl.origin, - } - ); - - const downloadPage = new DOMParser().parseFromString( - getDownload, - "text/html" - ); - - const recaptchaKey = downloadPage - .querySelector(".g-recaptcha") - ?.getAttribute("data-sitekey"); - if (!recaptchaKey) throw new Error("Unable to get captcha key"); - - const captchaToken = await fetchCaptchaToken( - parsedUrl.origin, - recaptchaKey - ); - if (!captchaToken) throw new Error("Unable to get captcha token"); - - const dlForm = new FormData(); - dlForm.append("op", "download_orig"); - dlForm.append("id", dl.parameters[0]); - dlForm.append("mode", dl.parameters[1]); - dlForm.append("hash", dl.parameters[2]); - dlForm.append("g-recaptcha-response", captchaToken); - - const download = await proxiedFetch( - `/dl?op=download_orig&id=${dl.parameters[0]}&mode=${dl.parameters[1]}&hash=${dl.parameters[2]}`, - { - baseURL: parsedUrl.origin, - method: "POST", - body: dlForm, - } - ); - - const dlLink = new DOMParser() - .parseFromString(download, "text/html") - .querySelector(".btn.btn-light.btn-lg") - ?.getAttribute("href"); - - return { - quality: dl.quality.label as MWStreamQuality, - url: dlLink, - size: dl.quality.size, - captions: - captionUrl && captionLang - ? [ - { - url: captionUrl, - langIso: captionLang, - type: MWCaptionType.VTT, - }, - ] - : [], - }; - }) - ); - dls = dls.filter((d) => !!d.url); - - progress(60); - - // TODO: Quality selection for embed scrapers - const dl = dls[0]; - if (!dl.url) throw new Error("No stream url found"); - - return { - embedId: MWEmbedType.STREAMSB, - streamUrl: dl.url, - quality: dl.quality, - captions: dl.captions, - type: MWStreamType.MP4, - }; - }, -}); diff --git a/src/backend/embeds/upcloud.ts b/src/backend/embeds/upcloud.ts deleted file mode 100644 index be1228f5..00000000 --- a/src/backend/embeds/upcloud.ts +++ /dev/null @@ -1,135 +0,0 @@ -import { AES, enc } from "crypto-js"; - -import { MWEmbedType } from "@/backend/helpers/embed"; -import { registerEmbedScraper } from "@/backend/helpers/register"; -import { - MWCaptionType, - MWStreamQuality, - MWStreamType, -} from "@/backend/helpers/streams"; - -import { proxiedFetch } from "../helpers/fetch"; - -interface StreamRes { - server: number; - sources: string; - tracks: { - file: string; - kind: "captions" | "thumbnails"; - label: string; - }[]; -} - -function isJSON(json: string) { - try { - JSON.parse(json); - return true; - } catch { - return false; - } -} - -function extractKey(script: string): [number, number][] | null { - const startOfSwitch = script.lastIndexOf("switch"); - const endOfCases = script.indexOf("partKeyStartPosition"); - const switchBody = script.slice(startOfSwitch, endOfCases); - - const nums: [number, number][] = []; - const matches = switchBody.matchAll( - /:[a-zA-Z0-9]+=([a-zA-Z0-9]+),[a-zA-Z0-9]+=([a-zA-Z0-9]+);/g - ); - for (const match of matches) { - const innerNumbers: number[] = []; - for (const varMatch of [match[1], match[2]]) { - const regex = new RegExp(`${varMatch}=0x([a-zA-Z0-9]+)`, "g"); - const varMatches = [...script.matchAll(regex)]; - const lastMatch = varMatches[varMatches.length - 1]; - if (!lastMatch) return null; - const number = parseInt(lastMatch[1], 16); - innerNumbers.push(number); - } - - nums.push([innerNumbers[0], innerNumbers[1]]); - } - - return nums; -} - -registerEmbedScraper({ - id: "upcloud", - displayName: "UpCloud", - for: MWEmbedType.UPCLOUD, - rank: 200, - async getStream({ url }) { - // Example url: https://dokicloud.one/embed-4/{id}?z= - const parsedUrl = new URL(url.replace("embed-5", "embed-4")); - - const dataPath = parsedUrl.pathname.split("/"); - const dataId = dataPath[dataPath.length - 1]; - - const streamRes = await proxiedFetch( - `${parsedUrl.origin}/ajax/embed-4/getSources?id=${dataId}`, - { - headers: { - Referer: parsedUrl.origin, - "X-Requested-With": "XMLHttpRequest", - }, - } - ); - - let sources: { file: string; type: string } | null = null; - - if (!isJSON(streamRes.sources)) { - const scriptJs = await proxiedFetch( - `https://rabbitstream.net/js/player/prod/e4-player.min.js`, - { - responseType: "text" as any, - } - ); - const decryptionKey = extractKey(scriptJs); - if (!decryptionKey) throw new Error("Key extraction failed"); - - let extractedKey = ""; - let strippedSources = streamRes.sources; - let totalledOffset = 0; - decryptionKey.forEach(([a, b]) => { - const start = a + totalledOffset; - const end = start + b; - extractedKey += streamRes.sources.slice(start, end); - strippedSources = strippedSources.replace( - streamRes.sources.substring(start, end), - "" - ); - totalledOffset += b; - }); - - const decryptedStream = AES.decrypt( - strippedSources, - extractedKey - ).toString(enc.Utf8); - const parsedStream = JSON.parse(decryptedStream)[0]; - if (!parsedStream) throw new Error("No stream found"); - sources = parsedStream; - } - - if (!sources) throw new Error("upcloud source not found"); - - return { - embedId: MWEmbedType.UPCLOUD, - streamUrl: sources.file, - quality: MWStreamQuality.Q1080P, - type: MWStreamType.HLS, - captions: streamRes.tracks - .filter((sub) => sub.kind === "captions") - .map((sub) => { - return { - langIso: sub.label, - url: sub.file, - type: sub.file.endsWith("vtt") - ? MWCaptionType.VTT - : MWCaptionType.UNKNOWN, - }; - }), - }; - }, -}); diff --git a/src/backend/helpers/captions.ts b/src/backend/helpers/captions.ts deleted file mode 100644 index cafd633a..00000000 --- a/src/backend/helpers/captions.ts +++ /dev/null @@ -1,62 +0,0 @@ -import DOMPurify from "dompurify"; -import { convert, detect, list, parse } from "subsrt-ts"; -import { ContentCaption } from "subsrt-ts/dist/types/handler"; - -import { mwFetch, proxiedFetch } from "@/backend/helpers/fetch"; -import { MWCaption, MWCaptionType } from "@/backend/helpers/streams"; - -export const customCaption = "external-custom"; -export function makeCaptionId(caption: MWCaption, isLinked: boolean): string { - return isLinked ? `linked-${caption.langIso}` : `external-${caption.langIso}`; -} -export const subtitleTypeList = list().map((type) => `.${type}`); -export function isSupportedSubtitle(url: string): boolean { - return subtitleTypeList.some((type) => url.endsWith(type)); -} - -export function getMWCaptionTypeFromUrl(url: string): MWCaptionType { - if (!isSupportedSubtitle(url)) return MWCaptionType.UNKNOWN; - const type = subtitleTypeList.find((t) => url.endsWith(t)); - if (!type) return MWCaptionType.UNKNOWN; - return type.slice(1) as MWCaptionType; -} - -export const sanitize = DOMPurify.sanitize; -export async function getCaptionUrl(caption: MWCaption): Promise { - let captionBlob: Blob; - if (caption.url.startsWith("blob:")) { - // custom subtitle - captionBlob = await (await fetch(caption.url)).blob(); - } else if (caption.needsProxy) { - captionBlob = await proxiedFetch(caption.url, { - responseType: "blob" as any, - }); - } else { - captionBlob = await mwFetch(caption.url, { - responseType: "blob" as any, - }); - } - // convert to vtt for track element source which will be used in PiP mode - const text = await captionBlob.text(); - const vtt = convert(text, "vtt"); - return URL.createObjectURL(new Blob([vtt], { type: "text/vtt" })); -} - -export function revokeCaptionBlob(url: string | undefined) { - if (url && url.startsWith("blob:")) { - URL.revokeObjectURL(url); - } -} - -export function parseSubtitles(text: string): ContentCaption[] { - const textTrimmed = text.trim(); - if (textTrimmed === "") { - throw new Error("Given text is empty"); - } - if (detect(textTrimmed) === "") { - throw new Error("Invalid subtitle format"); - } - return parse(textTrimmed).filter( - (cue) => cue.type === "caption" - ) as ContentCaption[]; -} diff --git a/src/backend/helpers/embed.ts b/src/backend/helpers/embed.ts deleted file mode 100644 index 1ec3362c..00000000 --- a/src/backend/helpers/embed.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { MWEmbedStream } from "./streams"; - -export enum MWEmbedType { - M4UFREE = "m4ufree", - STREAMM4U = "streamm4u", - PLAYM4U = "playm4u", - UPCLOUD = "upcloud", - STREAMSB = "streamsb", - MP4UPLOAD = "mp4upload", -} - -export type MWEmbed = { - type: MWEmbedType; - url: string; -}; - -export type MWEmbedContext = { - progress(percentage: number): void; - url: string; -}; - -export type MWEmbedScraper = { - id: string; - displayName: string; - for: MWEmbedType; - rank: number; - disabled?: boolean; - - getStream(ctx: MWEmbedContext): Promise; -}; diff --git a/src/backend/helpers/fetch.ts b/src/backend/helpers/fetch.ts index 16cde080..fca9ab89 100644 --- a/src/backend/helpers/fetch.ts +++ b/src/backend/helpers/fetch.ts @@ -1,18 +1,9 @@ import { FetchOptions, FetchResponse, ofetch } from "ofetch"; -import { conf } from "@/setup/config"; +import { getLoadbalancedProxyUrl } from "@/utils/providers"; -let proxyUrlIndex = Math.floor(Math.random() * conf().PROXY_URLS.length); - -// round robins all proxy urls -function getProxyUrl(): string { - const url = conf().PROXY_URLS[proxyUrlIndex]; - proxyUrlIndex = (proxyUrlIndex + 1) % conf().PROXY_URLS.length; - return url; -} - -type P = Parameters>; -type R = ReturnType>; +type P = Parameters>; +type R = ReturnType>; const baseFetch = ofetch.create({ retry: 0, @@ -50,13 +41,17 @@ export function proxiedFetch(url: string, ops: P[1] = {}): R { Object.entries(ops?.params ?? {}).forEach(([k, v]) => { parsedUrl.searchParams.set(k, v); }); + Object.entries(ops?.query ?? {}).forEach(([k, v]) => { + parsedUrl.searchParams.set(k, v); + }); - return baseFetch(getProxyUrl(), { + return baseFetch(getLoadbalancedProxyUrl(), { ...ops, baseURL: undefined, params: { destination: parsedUrl.toString(), }, + query: {}, }); } @@ -84,7 +79,7 @@ export function rawProxiedFetch( parsedUrl.searchParams.set(k, v); }); - return baseFetch.raw(getProxyUrl(), { + return baseFetch.raw(getLoadbalancedProxyUrl(), { ...ops, baseURL: undefined, params: { diff --git a/src/backend/helpers/provider.ts b/src/backend/helpers/provider.ts deleted file mode 100644 index 58dea7d4..00000000 --- a/src/backend/helpers/provider.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { MWEmbed } from "./embed"; -import { MWStream } from "./streams"; -import { DetailedMeta } from "../metadata/getmeta"; -import { MWMediaType } from "../metadata/types/mw"; - -export type MWProviderScrapeResult = { - stream?: MWStream; - embeds: MWEmbed[]; -}; - -type MWProviderBase = { - progress(percentage: number): void; - media: DetailedMeta; -}; -type MWProviderTypeSpecific = - | { - type: MWMediaType.MOVIE | MWMediaType.ANIME; - episode?: undefined; - season?: undefined; - } - | { - type: MWMediaType.SERIES; - episode: string; - season: string; - }; -export type MWProviderContext = MWProviderTypeSpecific & MWProviderBase; - -export type MWProvider = { - id: string; - displayName: string; - rank: number; - disabled?: boolean; - type: MWMediaType[]; - - scrape(ctx: MWProviderContext): Promise; -}; diff --git a/src/backend/helpers/register.ts b/src/backend/helpers/register.ts deleted file mode 100644 index 9d3f76c2..00000000 --- a/src/backend/helpers/register.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { MWEmbedScraper, MWEmbedType } from "./embed"; -import { MWProvider } from "./provider"; - -let providers: MWProvider[] = []; -let embeds: MWEmbedScraper[] = []; - -export function registerProvider(provider: MWProvider) { - if (provider.disabled) return; - providers.push(provider); -} -export function registerEmbedScraper(embed: MWEmbedScraper) { - if (embed.disabled) return; - embeds.push(embed); -} - -export function initializeScraperStore() { - // sort by ranking - providers = providers.sort((a, b) => b.rank - a.rank); - embeds = embeds.sort((a, b) => b.rank - a.rank); - - // check for invalid ranks - let lastRank: null | number = null; - providers.forEach((v) => { - if (lastRank === null) { - lastRank = v.rank; - return; - } - if (lastRank === v.rank) - throw new Error(`Duplicate rank number for provider ${v.id}`); - lastRank = v.rank; - }); - lastRank = null; - providers.forEach((v) => { - if (lastRank === null) { - lastRank = v.rank; - return; - } - if (lastRank === v.rank) - throw new Error(`Duplicate rank number for embed scraper ${v.id}`); - lastRank = v.rank; - }); - - // check for duplicate ids - const providerIds = providers.map((v) => v.id); - if ( - providerIds.length > 0 && - new Set(providerIds).size !== providerIds.length - ) - throw new Error("Duplicate IDS in providers"); - const embedIds = embeds.map((v) => v.id); - if (embedIds.length > 0 && new Set(embedIds).size !== embedIds.length) - throw new Error("Duplicate IDS in embed scrapers"); - - // check for duplicate embed types - const embedTypes = embeds.map((v) => v.for); - if (embedTypes.length > 0 && new Set(embedTypes).size !== embedTypes.length) - throw new Error("Duplicate types in embed scrapers"); -} - -export function getProviders(): MWProvider[] { - return providers; -} - -export function getEmbeds(): MWEmbedScraper[] { - return embeds; -} - -export function getEmbedScraperByType( - type: MWEmbedType -): MWEmbedScraper | null { - return getEmbeds().find((v) => v.for === type) ?? null; -} diff --git a/src/backend/helpers/report.ts b/src/backend/helpers/report.ts new file mode 100644 index 00000000..f9ac89a6 --- /dev/null +++ b/src/backend/helpers/report.ts @@ -0,0 +1,140 @@ +import { ScrapeMedia } from "@movie-web/providers"; +import { ofetch } from "ofetch"; +import { useCallback } from "react"; + +import { ScrapingItems, ScrapingSegment } from "@/hooks/useProviderScrape"; +import { PlayerMeta } from "@/stores/player/slices/source"; + +// for anybody who cares - these are anonymous metrics. +// They are just used for figuring out if providers are broken or not +const metricsEndpoint = "https://backend.movie-web.app/metrics/providers"; + +export type ProviderMetric = { + tmdbId: string; + type: string; + title: string; + seasonId?: string; + episodeId?: string; + status: "failed" | "notfound" | "success"; + providerId: string; + embedId?: string; + errorMessage?: string; + fullError?: string; +}; + +function getStackTrace(error: Error, lines: number) { + const topMessage = error.toString(); + const stackTraceLines = (error.stack ?? "").split("\n", lines + 1); + stackTraceLines.pop(); + return `${topMessage}\n\n${stackTraceLines.join("\n")}`; +} + +export async function reportProviders(items: ProviderMetric[]): Promise { + return ofetch(metricsEndpoint, { + method: "POST", + body: { + items, + }, + }); +} + +const segmentStatusMap: Record< + ScrapingSegment["status"], + ProviderMetric["status"] | null +> = { + success: "success", + notfound: "notfound", + failure: "failed", + pending: null, + waiting: null, +}; + +export function scrapeSourceOutputToProviderMetric( + media: PlayerMeta, + providerId: string, + embedId: string | null, + status: ProviderMetric["status"], + err: unknown | null +): ProviderMetric { + const episodeId = media.episode?.tmdbId; + const seasonId = media.season?.tmdbId; + let error: undefined | Error; + if (err instanceof Error) error = err; + + return { + status, + providerId, + title: media.title, + tmdbId: media.tmdbId, + type: media.type, + embedId: embedId ?? undefined, + episodeId, + seasonId, + errorMessage: error?.message, + fullError: error ? getStackTrace(error, 5) : undefined, + }; +} + +export function scrapeSegmentToProviderMetric( + media: ScrapeMedia, + providerId: string, + segment: ScrapingSegment +): ProviderMetric | null { + const status = segmentStatusMap[segment.status]; + if (!status) return null; + let episodeId: string | undefined; + let seasonId: string | undefined; + if (media.type === "show") { + episodeId = media.episode.tmdbId; + seasonId = media.season.tmdbId; + } + let error: undefined | Error; + if (segment.error instanceof Error) error = segment.error; + + return { + status, + providerId, + title: media.title, + tmdbId: media.tmdbId, + type: media.type, + embedId: segment.embedId, + episodeId, + seasonId, + errorMessage: segment.reason ?? error?.message, + fullError: error ? getStackTrace(error, 5) : undefined, + }; +} + +export function scrapePartsToProviderMetric( + media: ScrapeMedia, + order: ScrapingItems[], + sources: Record +): ProviderMetric[] { + const output: ProviderMetric[] = []; + + order.forEach((orderItem) => { + const source = sources[orderItem.id]; + orderItem.children.forEach((embedId) => { + const embed = sources[embedId]; + if (!embed.embedId) return; + const metric = scrapeSegmentToProviderMetric(media, source.id, embed); + if (!metric) return; + output.push(metric); + }); + + const metric = scrapeSegmentToProviderMetric(media, source.id, source); + if (!metric) return; + output.push(metric); + }); + + return output; +} + +export function useReportProviders() { + const report = useCallback((items: ProviderMetric[]) => { + if (items.length === 0) return; + reportProviders(items); + }, []); + + return { report }; +} diff --git a/src/backend/helpers/run.ts b/src/backend/helpers/run.ts deleted file mode 100644 index f2f9bc9c..00000000 --- a/src/backend/helpers/run.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { MWEmbed, MWEmbedContext, MWEmbedScraper } from "./embed"; -import { - MWProvider, - MWProviderContext, - MWProviderScrapeResult, -} from "./provider"; -import { getEmbedScraperByType } from "./register"; -import { MWStream } from "./streams"; - -function sortProviderResult( - ctx: MWProviderScrapeResult -): MWProviderScrapeResult { - ctx.embeds = ctx.embeds - .map<[MWEmbed, MWEmbedScraper | null]>((v) => [ - v, - v.type ? getEmbedScraperByType(v.type) : null, - ]) - .sort(([, a], [, b]) => (b?.rank ?? 0) - (a?.rank ?? 0)) - .map((v) => v[0]); - return ctx; -} - -export async function runProvider( - provider: MWProvider, - ctx: MWProviderContext -): Promise { - try { - const data = await provider.scrape(ctx); - return sortProviderResult(data); - } catch (err) { - console.error("Failed to run provider", err, { - id: provider.id, - ctx: { ...ctx }, - }); - throw err; - } -} - -export async function runEmbedScraper( - scraper: MWEmbedScraper, - ctx: MWEmbedContext -): Promise { - try { - return await scraper.getStream(ctx); - } catch (err) { - console.error("Failed to run embed scraper", { - id: scraper.id, - ctx: { ...ctx }, - }); - throw err; - } -} diff --git a/src/backend/helpers/scrape.ts b/src/backend/helpers/scrape.ts deleted file mode 100644 index 5f1a100c..00000000 --- a/src/backend/helpers/scrape.ts +++ /dev/null @@ -1,173 +0,0 @@ -import { MWProviderContext, MWProviderScrapeResult } from "./provider"; -import { getEmbedScraperByType, getProviders } from "./register"; -import { runEmbedScraper, runProvider } from "./run"; -import { MWStream } from "./streams"; -import { DetailedMeta } from "../metadata/getmeta"; -import { MWMediaType } from "../metadata/types/mw"; - -interface MWProgressData { - type: "embed" | "provider"; - id: string; - eventId: string; - percentage: number; - errored: boolean; -} -interface MWNextData { - id: string; - eventId: string; - type: "embed" | "provider"; -} - -type MWProviderRunContextBase = { - media: DetailedMeta; - onProgress?: (data: MWProgressData) => void; - onNext?: (data: MWNextData) => void; -}; -type MWProviderRunContextTypeSpecific = - | { - type: MWMediaType.MOVIE | MWMediaType.ANIME; - episode: undefined; - season: undefined; - } - | { - type: MWMediaType.SERIES; - episode: string; - season: string; - }; - -export type MWProviderRunContext = MWProviderRunContextBase & - MWProviderRunContextTypeSpecific; - -async function findBestEmbedStream( - result: MWProviderScrapeResult, - providerId: string, - ctx: MWProviderRunContext -): Promise { - if (result.stream) { - return { - ...result.stream, - providerId, - embedId: providerId, - }; - } - - let embedNum = 0; - for (const embed of result.embeds) { - embedNum += 1; - if (!embed.type) continue; - const scraper = getEmbedScraperByType(embed.type); - if (!scraper) throw new Error(`Type for embed not found: ${embed.type}`); - - const eventId = [providerId, scraper.id, embedNum].join("|"); - - ctx.onNext?.({ id: scraper.id, type: "embed", eventId }); - - let stream: MWStream; - try { - stream = await runEmbedScraper(scraper, { - url: embed.url, - progress(num) { - ctx.onProgress?.({ - errored: false, - eventId, - id: scraper.id, - percentage: num, - type: "embed", - }); - }, - }); - } catch { - ctx.onProgress?.({ - errored: true, - eventId, - id: scraper.id, - percentage: 100, - type: "embed", - }); - continue; - } - - ctx.onProgress?.({ - errored: false, - eventId, - id: scraper.id, - percentage: 100, - type: "embed", - }); - - stream.providerId = providerId; - return stream; - } - - return null; -} - -export async function findBestStream( - ctx: MWProviderRunContext -): Promise { - const providers = getProviders(); - - for (const provider of providers) { - const eventId = provider.id; - ctx.onNext?.({ id: provider.id, type: "provider", eventId }); - let result: MWProviderScrapeResult; - try { - let context: MWProviderContext; - if (ctx.type === MWMediaType.SERIES) { - context = { - media: ctx.media, - type: ctx.type, - episode: ctx.episode, - season: ctx.season, - progress(num) { - ctx.onProgress?.({ - percentage: num, - eventId, - errored: false, - id: provider.id, - type: "provider", - }); - }, - }; - } else { - context = { - media: ctx.media, - type: ctx.type, - progress(num) { - ctx.onProgress?.({ - percentage: num, - eventId, - errored: false, - id: provider.id, - type: "provider", - }); - }, - }; - } - result = await runProvider(provider, context); - } catch (err) { - ctx.onProgress?.({ - percentage: 100, - errored: true, - eventId, - id: provider.id, - type: "provider", - }); - continue; - } - - ctx.onProgress?.({ - errored: false, - id: provider.id, - eventId, - percentage: 100, - type: "provider", - }); - - const stream = await findBestEmbedStream(result, provider.id, ctx); - if (!stream) continue; - return stream; - } - - return null; -} diff --git a/src/backend/helpers/streams.ts b/src/backend/helpers/streams.ts deleted file mode 100644 index 95b40503..00000000 --- a/src/backend/helpers/streams.ts +++ /dev/null @@ -1,46 +0,0 @@ -export enum MWStreamType { - MP4 = "mp4", - HLS = "hls", -} - -// subsrt-ts supported types -export enum MWCaptionType { - VTT = "vtt", - SRT = "srt", - LRC = "lrc", - SBV = "sbv", - SUB = "sub", - SSA = "ssa", - ASS = "ass", - JSON = "json", - UNKNOWN = "unknown", -} - -export enum MWStreamQuality { - Q360P = "360p", - Q540P = "540p", - Q480P = "480p", - Q720P = "720p", - Q1080P = "1080p", - QUNKNOWN = "unknown", -} - -export type MWCaption = { - needsProxy?: boolean; - url: string; - type: MWCaptionType; - langIso: string; -}; - -export type MWStream = { - streamUrl: string; - type: MWStreamType; - quality: MWStreamQuality; - providerId?: string; - embedId?: string; - captions: MWCaption[]; -}; - -export type MWEmbedStream = MWStream & { - embedId: string; -}; diff --git a/src/backend/helpers/subs.ts b/src/backend/helpers/subs.ts new file mode 100644 index 00000000..b39a0ced --- /dev/null +++ b/src/backend/helpers/subs.ts @@ -0,0 +1,33 @@ +import { list } from "subsrt-ts"; + +import { proxiedFetch } from "@/backend/helpers/fetch"; +import { convertSubtitlesToSrt } from "@/components/player/utils/captions"; +import { CaptionListItem } from "@/stores/player/slices/source"; +import { SimpleCache } from "@/utils/cache"; + +export const subtitleTypeList = list().map((type) => `.${type}`); +const downloadCache = new SimpleCache(); +downloadCache.setCompare((a, b) => a === b); +const expirySeconds = 24 * 60 * 60; + +/** + * Always returns SRT + */ +export async function downloadCaption( + caption: CaptionListItem +): Promise { + const cached = downloadCache.get(caption.url); + if (cached) return cached; + + let data: string | undefined; + if (caption.needsProxy) { + data = await proxiedFetch(caption.url, { responseType: "text" }); + } else { + data = await fetch(caption.url).then((v) => v.text()); + } + if (!data) throw new Error("failed to get caption data"); + + const output = convertSubtitlesToSrt(data); + downloadCache.set(caption.url, output, expirySeconds); + return output; +} diff --git a/src/backend/index.ts b/src/backend/index.ts deleted file mode 100644 index 5fe33bd4..00000000 --- a/src/backend/index.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { initializeScraperStore } from "./helpers/register"; - -// providers -// import "./providers/gdriveplayer"; -import "./providers/flixhq"; -import "./providers/superstream"; -import "./providers/netfilm"; -import "./providers/m4ufree"; -import "./providers/hdwatched"; -import "./providers/2embed"; -import "./providers/sflix"; -import "./providers/gomovies"; -import "./providers/kissasian"; -import "./providers/streamflix"; -import "./providers/remotestream"; - -// embeds -import "./embeds/streamm4u"; -import "./embeds/playm4u"; -import "./embeds/upcloud"; -import "./embeds/streamsb"; -import "./embeds/mp4upload"; - -initializeScraperStore(); diff --git a/src/backend/metadata/getmeta.ts b/src/backend/metadata/getmeta.ts index 3893db53..db210ffc 100644 --- a/src/backend/metadata/getmeta.ts +++ b/src/backend/metadata/getmeta.ts @@ -2,22 +2,23 @@ import { FetchError } from "ofetch"; import { formatJWMeta, mediaTypeToJW } from "./justwatch"; import { + TMDBIdToUrlId, TMDBMediaToMediaType, formatTMDBMeta, getEpisodes, - getExternalIds, getMediaDetails, getMediaPoster, getMovieFromExternalId, mediaTypeToTMDB, } from "./tmdb"; import { - JWMediaResult, + JWDetailedMeta, JWSeasonMetaResult, JW_API_BASE, } from "./types/justwatch"; import { MWMediaMeta, MWMediaType } from "./types/mw"; import { + TMDBContentTypes, TMDBMediaResult, TMDBMovieData, TMDBSeasonMetaResult, @@ -25,23 +26,6 @@ import { } from "./types/tmdb"; import { makeUrl, proxiedFetch } from "../helpers/fetch"; -type JWExternalIdType = - | "eidr" - | "imdb_latest" - | "imdb" - | "tmdb_latest" - | "tmdb" - | "tms"; - -interface JWExternalId { - provider: JWExternalIdType; - external_id: string; -} - -interface JWDetailedMeta extends JWMediaResult { - external_ids: JWExternalId[]; -} - export interface DetailedMeta { meta: MWMediaMeta; imdbId?: string; @@ -90,8 +74,7 @@ export async function getMetaFromId( if (!details) return null; - const externalIds = await getExternalIds(id, mediaTypeToTMDB(type)); - const imdbId = externalIds.imdb_id ?? undefined; + const imdbId = details.external_ids.imdb_id ?? undefined; let seasonData: TMDBSeasonMetaResult | undefined; @@ -180,29 +163,14 @@ export async function getLegacyMetaFromId( }; } -export function TMDBMediaToId(media: MWMediaMeta): string { - return ["tmdb", mediaTypeToTMDB(media.type), media.id].join("-"); -} - -export function decodeTMDBId( - paramId: string -): { id: string; type: MWMediaType } | null { - const [prefix, type, id] = paramId.split("-", 3); - if (prefix !== "tmdb") return null; - let mediaType; - try { - mediaType = TMDBMediaToMediaType(type); - } catch { - return null; - } - return { - type: mediaType, - id, - }; -} - export function isLegacyUrl(url: string): boolean { - if (url.startsWith("/media/JW")) return true; + if (url.startsWith("/media/JW") || url.startsWith("/media/tmdb-show")) + return true; + return false; +} + +export function isLegacyMediaType(url: string): boolean { + if (url.startsWith("/media/tmdb-show")) return true; return false; } @@ -213,8 +181,21 @@ export async function convertLegacyUrl( const urlParts = url.split("/").slice(2); const [, type, id] = urlParts[0].split("-", 3); + const suffix = urlParts + .slice(1) + .map((v) => `/${v}`) + .join(""); - const mediaType = TMDBMediaToMediaType(type); + if (isLegacyMediaType(url)) { + const details = await getMediaDetails(id, TMDBContentTypes.TV); + return `/media/${TMDBIdToUrlId( + MWMediaType.SERIES, + details.id.toString(), + details.name + )}${suffix}`; + } + + const mediaType = TMDBMediaToMediaType(type as TMDBContentTypes); const meta = await getLegacyMetaFromId(mediaType, id); if (!meta) return undefined; @@ -224,10 +205,12 @@ export async function convertLegacyUrl( // movies always have an imdb id on tmdb if (imdbId && mediaType === MWMediaType.MOVIE) { const movieId = await getMovieFromExternalId(imdbId); - if (movieId) return `/media/tmdb-movie-${movieId}`; - } + if (movieId) { + return `/media/${TMDBIdToUrlId(mediaType, movieId, meta.meta.title)}`; + } - if (tmdbId) { - return `/media/tmdb-${type}-${tmdbId}`; + if (tmdbId) { + return `/media/${TMDBIdToUrlId(mediaType, tmdbId, meta.meta.title)}`; + } } } diff --git a/src/backend/metadata/search.ts b/src/backend/metadata/search.ts index 0d8f561f..a162dd3a 100644 --- a/src/backend/metadata/search.ts +++ b/src/backend/metadata/search.ts @@ -1,27 +1,27 @@ import { SimpleCache } from "@/utils/cache"; +import { MediaItem } from "@/utils/mediaTypes"; import { - formatTMDBMeta, + formatTMDBMetaToMediaItem, formatTMDBSearchResult, - mediaTypeToTMDB, - searchMedia, + multiSearch, } from "./tmdb"; -import { MWMediaMeta, MWQuery } from "./types/mw"; +import { MWQuery } from "./types/mw"; -const cache = new SimpleCache(); +const cache = new SimpleCache(); cache.setCompare((a, b) => { - return a.type === b.type && a.searchQuery.trim() === b.searchQuery.trim(); + return a.searchQuery.trim() === b.searchQuery.trim(); }); cache.initialize(); -export async function searchForMedia(query: MWQuery): Promise { - if (cache.has(query)) return cache.get(query) as MWMediaMeta[]; - const { searchQuery, type } = query; +export async function searchForMedia(query: MWQuery): Promise { + if (cache.has(query)) return cache.get(query) as MediaItem[]; + const { searchQuery } = query; - const data = await searchMedia(searchQuery, mediaTypeToTMDB(type)); - const results = data.results.map((v) => { - const formattedResult = formatTMDBSearchResult(v, mediaTypeToTMDB(type)); - return formatTMDBMeta(formattedResult); + const data = await multiSearch(searchQuery); + const results = data.map((v) => { + const formattedResult = formatTMDBSearchResult(v, v.media_type); + return formatTMDBMetaToMediaItem(formattedResult); }); cache.set(query, results, 3600); // cache results for 1 hour diff --git a/src/backend/metadata/tmdb.ts b/src/backend/metadata/tmdb.ts index 9b38d995..9a87eb19 100644 --- a/src/backend/metadata/tmdb.ts +++ b/src/backend/metadata/tmdb.ts @@ -1,37 +1,50 @@ +import slugify from "slugify"; + import { conf } from "@/setup/config"; +import { MediaItem } from "@/utils/mediaTypes"; import { MWMediaMeta, MWMediaType, MWSeasonMeta } from "./types/mw"; import { ExternalIdMovieSearchResult, TMDBContentTypes, TMDBEpisodeShort, - TMDBExternalIds, TMDBMediaResult, TMDBMovieData, - TMDBMovieExternalIds, - TMDBMovieResponse, - TMDBMovieResult, + TMDBMovieSearchResult, + TMDBSearchResult, TMDBSeason, TMDBSeasonMetaResult, TMDBShowData, - TMDBShowExternalIds, - TMDBShowResponse, - TMDBShowResult, + TMDBShowSearchResult, } from "./types/tmdb"; import { mwFetch } from "../helpers/fetch"; export function mediaTypeToTMDB(type: MWMediaType): TMDBContentTypes { - if (type === MWMediaType.MOVIE) return "movie"; - if (type === MWMediaType.SERIES) return "show"; + if (type === MWMediaType.MOVIE) return TMDBContentTypes.MOVIE; + if (type === MWMediaType.SERIES) return TMDBContentTypes.TV; throw new Error("unsupported type"); } -export function TMDBMediaToMediaType(type: string): MWMediaType { +export function mediaItemTypeToMediaType(type: MediaItem["type"]): MWMediaType { if (type === "movie") return MWMediaType.MOVIE; if (type === "show") return MWMediaType.SERIES; throw new Error("unsupported type"); } +export function TMDBMediaToMediaType(type: TMDBContentTypes): MWMediaType { + if (type === TMDBContentTypes.MOVIE) return MWMediaType.MOVIE; + if (type === TMDBContentTypes.TV) return MWMediaType.SERIES; + throw new Error("unsupported type"); +} + +export function TMDBMediaToMediaItemType( + type: TMDBContentTypes +): MediaItem["type"] { + if (type === TMDBContentTypes.MOVIE) return "movie"; + if (type === TMDBContentTypes.TV) return "show"; + throw new Error("unsupported type"); +} + export function formatTMDBMeta( media: TMDBMediaResult, season?: TMDBSeasonMetaResult @@ -74,8 +87,41 @@ export function formatTMDBMeta( }; } +export function formatTMDBMetaToMediaItem(media: TMDBMediaResult): MediaItem { + const type = TMDBMediaToMediaItemType(media.object_type); + + return { + title: media.title, + id: media.id.toString(), + year: media.original_release_year ?? 0, + poster: media.poster, + type, + }; +} + +export function TMDBIdToUrlId( + type: MWMediaType, + tmdbId: string, + title: string +) { + return [ + "tmdb", + mediaTypeToTMDB(type), + tmdbId, + slugify(title, { lower: true, strict: true }), + ].join("-"); +} + export function TMDBMediaToId(media: MWMediaMeta): string { - return ["tmdb", mediaTypeToTMDB(media.type), media.id].join("-"); + return TMDBIdToUrlId(media.type, media.id, media.title); +} + +export function mediaItemToId(media: MediaItem): string { + return TMDBIdToUrlId( + mediaItemTypeToMediaType(media.type), + media.id, + media.title + ); } export function decodeTMDBId( @@ -85,7 +131,7 @@ export function decodeTMDBId( if (prefix !== "tmdb") return null; let mediaType; try { - mediaType = TMDBMediaToMediaType(type); + mediaType = TMDBMediaToMediaType(type as TMDBContentTypes); } catch { return null; } @@ -113,52 +159,57 @@ async function get(url: string, params?: object): Promise { return res; } -export async function searchMedia( - query: string, - type: TMDBContentTypes -): Promise { - let data; +export async function multiSearch( + query: string +): Promise<(TMDBMovieSearchResult | TMDBShowSearchResult)[]> { + const data = await get("search/multi", { + query, + include_adult: false, + language: "en-US", + page: 1, + }); + // filter out results that aren't movies or shows + const results = data.results.filter( + (r) => + r.media_type === TMDBContentTypes.MOVIE || + r.media_type === TMDBContentTypes.TV + ); + return results; +} - switch (type) { - case "movie": - data = await get("search/movie", { - query, - include_adult: false, - language: "en-US", - page: 1, - }); - break; - case "show": - data = await get("search/tv", { - query, - include_adult: false, - language: "en-US", - page: 1, - }); - break; - default: - throw new Error("Invalid media type"); - } +export async function generateQuickSearchMediaUrl( + query: string +): Promise { + const data = await multiSearch(query); + if (data.length === 0) return undefined; + const result = data[0]; + const title = + result.media_type === TMDBContentTypes.MOVIE ? result.title : result.name; - return data; + return `/media/${TMDBIdToUrlId( + TMDBMediaToMediaType(result.media_type), + result.id.toString(), + title + )}`; } // Conditional type which for inferring the return type based on the content type -type MediaDetailReturn = T extends "movie" - ? TMDBMovieData - : T extends "show" - ? TMDBShowData - : never; +type MediaDetailReturn = + T extends TMDBContentTypes.MOVIE + ? TMDBMovieData + : T extends TMDBContentTypes.TV + ? TMDBShowData + : never; export function getMediaDetails< T extends TMDBContentTypes, TReturn = MediaDetailReturn >(id: string, type: T): Promise { - if (type === "movie") { - return get(`/movie/${id}`); + if (type === TMDBContentTypes.MOVIE) { + return get(`/movie/${id}`, { append_to_response: "external_ids" }); } - if (type === "show") { - return get(`/tv/${id}`); + if (type === TMDBContentTypes.TV) { + return get(`/tv/${id}`, { append_to_response: "external_ids" }); } throw new Error("Invalid media type"); } @@ -179,26 +230,6 @@ export async function getEpisodes( })); } -export async function getExternalIds( - id: string, - type: TMDBContentTypes -): Promise { - let data; - - switch (type) { - case "movie": - data = await get(`/movie/${id}/external_ids`); - break; - case "show": - data = await get(`/tv/${id}/external_ids`); - break; - default: - throw new Error("Invalid media type"); - } - - return data; -} - export async function getMovieFromExternalId( imdbId: string ): Promise { @@ -213,12 +244,12 @@ export async function getMovieFromExternalId( } export function formatTMDBSearchResult( - result: TMDBShowResult | TMDBMovieResult, + result: TMDBMovieSearchResult | TMDBShowSearchResult, mediatype: TMDBContentTypes ): TMDBMediaResult { const type = TMDBMediaToMediaType(mediatype); if (type === MWMediaType.SERIES) { - const show = result as TMDBShowResult; + const show = result as TMDBShowSearchResult; return { title: show.name, poster: getMediaPoster(show.poster_path), @@ -227,7 +258,8 @@ export function formatTMDBSearchResult( object_type: mediatype, }; } - const movie = result as TMDBMovieResult; + + const movie = result as TMDBMovieSearchResult; return { title: movie.title, diff --git a/src/backend/metadata/types/justwatch.ts b/src/backend/metadata/types/justwatch.ts index cb3ac092..b55e9e24 100644 --- a/src/backend/metadata/types/justwatch.ts +++ b/src/backend/metadata/types/justwatch.ts @@ -46,3 +46,20 @@ export type JWSeasonMetaResult = { season_number: number; episodes: JWEpisodeShort[]; }; + +export type JWExternalIdType = + | "eidr" + | "imdb_latest" + | "imdb" + | "tmdb_latest" + | "tmdb" + | "tms"; + +export interface JWExternalId { + provider: JWExternalIdType; + external_id: string; +} + +export interface JWDetailedMeta extends JWMediaResult { + external_ids: JWExternalId[]; +} diff --git a/src/backend/metadata/types/mw.ts b/src/backend/metadata/types/mw.ts index e7cc26fe..3f0f452f 100644 --- a/src/backend/metadata/types/mw.ts +++ b/src/backend/metadata/types/mw.ts @@ -43,7 +43,6 @@ export type MWMediaMeta = MWMediaMetaBase & MWMediaMetaSpecific; export interface MWQuery { searchQuery: string; - type: MWMediaType; } export interface DetailedMeta { diff --git a/src/backend/metadata/types/tmdb.ts b/src/backend/metadata/types/tmdb.ts index 843786f4..19a85c54 100644 --- a/src/backend/metadata/types/tmdb.ts +++ b/src/backend/metadata/types/tmdb.ts @@ -1,4 +1,7 @@ -export type TMDBContentTypes = "movie" | "show"; +export enum TMDBContentTypes { + MOVIE = "movie", + TV = "tv", +} export type TMDBSeasonShort = { title: string; @@ -121,6 +124,9 @@ export interface TMDBShowData { type: string; vote_average: number; vote_count: number; + external_ids: { + imdb_id: string | null; + }; } export interface TMDBMovieData { @@ -169,6 +175,9 @@ export interface TMDBMovieData { video: boolean; vote_average: number; vote_count: number; + external_ids: { + imdb_id: string | null; + }; } export interface TMDBEpisodeResult { @@ -183,54 +192,6 @@ export interface TMDBEpisodeResult { }; } -export interface TMDBShowResult { - adult: boolean; - backdrop_path: string | null; - genre_ids: number[]; - id: number; - origin_country: string[]; - original_language: string; - original_name: string; - overview: string; - popularity: number; - poster_path: string | null; - first_air_date: string; - name: string; - vote_average: number; - vote_count: number; -} - -export interface TMDBShowResponse { - page: number; - results: TMDBShowResult[]; - total_pages: number; - total_results: number; -} - -export interface TMDBMovieResult { - adult: boolean; - backdrop_path: string | null; - genre_ids: number[]; - id: number; - original_language: string; - original_title: string; - overview: string; - popularity: number; - poster_path: string | null; - release_date: string; - title: string; - video: boolean; - vote_average: number; - vote_count: number; -} - -export interface TMDBMovieResponse { - page: number; - results: TMDBMovieResult[]; - total_pages: number; - total_results: number; -} - export interface TMDBEpisode { air_date: string; episode_number: number; @@ -259,30 +220,6 @@ export interface TMDBSeason { season_number: number; } -export interface TMDBShowExternalIds { - id: number; - imdb_id: null | string; - freebase_mid: null | string; - freebase_id: null | string; - tvdb_id: number; - tvrage_id: null | string; - wikidata_id: null | string; - facebook_id: null | string; - instagram_id: null | string; - twitter_id: null | string; -} - -export interface TMDBMovieExternalIds { - id: number; - imdb_id: null | string; - wikidata_id: null | string; - facebook_id: null | string; - instagram_id: null | string; - twitter_id: null | string; -} - -export type TMDBExternalIds = TMDBShowExternalIds | TMDBMovieExternalIds; - export interface ExternalIdMovieSearchResult { movie_results: { adult: boolean; @@ -306,3 +243,46 @@ export interface ExternalIdMovieSearchResult { tv_episode_results: any[]; tv_season_results: any[]; } + +export interface TMDBMovieSearchResult { + adult: boolean; + backdrop_path: string; + id: number; + title: string; + original_language: string; + original_title: string; + overview: string; + poster_path: string; + media_type: TMDBContentTypes.MOVIE; + genre_ids: number[]; + popularity: number; + release_date: string; + video: boolean; + vote_average: number; + vote_count: number; +} + +export interface TMDBShowSearchResult { + adult: boolean; + backdrop_path: string; + id: number; + name: string; + original_language: string; + original_name: string; + overview: string; + poster_path: string; + media_type: TMDBContentTypes.TV; + genre_ids: number[]; + popularity: number; + first_air_date: string; + vote_average: number; + vote_count: number; + origin_country: string[]; +} + +export interface TMDBSearchResult { + page: number; + results: (TMDBMovieSearchResult | TMDBShowSearchResult)[]; + total_pages: number; + total_results: number; +} diff --git a/src/backend/providers/2embed.ts b/src/backend/providers/2embed.ts deleted file mode 100644 index 507d5a2d..00000000 --- a/src/backend/providers/2embed.ts +++ /dev/null @@ -1,252 +0,0 @@ -import Base64 from "crypto-js/enc-base64"; -import Utf8 from "crypto-js/enc-utf8"; - -import { proxiedFetch, rawProxiedFetch } from "../helpers/fetch"; -import { registerProvider } from "../helpers/register"; -import { - MWCaptionType, - MWStreamQuality, - MWStreamType, -} from "../helpers/streams"; -import { MWMediaType } from "../metadata/types/mw"; - -const twoEmbedBase = "https://www.2embed.to"; - -async function fetchCaptchaToken(recaptchaKey: string) { - const domainHash = Base64.stringify(Utf8.parse(twoEmbedBase)).replace( - /=/g, - "." - ); - - const recaptchaRender = await proxiedFetch( - `https://www.google.com/recaptcha/api.js?render=${recaptchaKey}` - ); - - const vToken = recaptchaRender.substring( - recaptchaRender.indexOf("/releases/") + 10, - recaptchaRender.indexOf("/recaptcha__en.js") - ); - - const recaptchaAnchor = await proxiedFetch( - `https://www.google.com/recaptcha/api2/anchor?ar=1&hl=en&size=invisible&cb=flicklax&k=${recaptchaKey}&co=${domainHash}&v=${vToken}` - ); - - const cToken = new DOMParser() - .parseFromString(recaptchaAnchor, "text/html") - .getElementById("recaptcha-token") - ?.getAttribute("value"); - - if (!cToken) throw new Error("Unable to find cToken"); - - const payload = { - v: vToken, - reason: "q", - k: recaptchaKey, - c: cToken, - sa: "", - co: twoEmbedBase, - }; - - const tokenData = await proxiedFetch( - `https://www.google.com/recaptcha/api2/reload?${new URLSearchParams( - payload - ).toString()}`, - { - headers: { referer: "https://www.google.com/recaptcha/api2/" }, - method: "POST", - } - ); - - const token = tokenData.match('rresp","(.+?)"'); - return token ? token[1] : null; -} - -interface IEmbedRes { - link: string; - sources: []; - tracks: []; - type: string; -} - -interface IStreamData { - status: string; - message: string; - type: string; - token: string; - result: - | { - Original: { - label: string; - file: string; - url: string; - }; - } - | { - label: string; - size: number; - url: string; - }[]; -} - -interface ISubtitles { - url: string; - lang: string; -} - -async function fetchStream(sourceId: string, captchaToken: string) { - const embedRes = await proxiedFetch( - `${twoEmbedBase}/ajax/embed/play?id=${sourceId}&_token=${captchaToken}`, - { - headers: { - Referer: twoEmbedBase, - }, - } - ); - - // Link format: https://rabbitstream.net/embed-4/{data-id}?z= - const rabbitStreamUrl = new URL(embedRes.link); - - const dataPath = rabbitStreamUrl.pathname.split("/"); - const dataId = dataPath[dataPath.length - 1]; - - // https://rabbitstream.net/embed/m-download/{data-id} - const download = await proxiedFetch( - `${rabbitStreamUrl.origin}/embed/m-download/${dataId}`, - { - headers: { - referer: twoEmbedBase, - }, - } - ); - - const downloadPage = new DOMParser().parseFromString(download, "text/html"); - - const streamlareEl = Array.from( - downloadPage.querySelectorAll(".dls-brand") - ).find((el) => el.textContent?.trim() === "Streamlare"); - if (!streamlareEl) throw new Error("Unable to find streamlare element"); - - const streamlareUrl = - streamlareEl.nextElementSibling?.querySelector("a")?.href; - if (!streamlareUrl) throw new Error("Unable to parse streamlare url"); - - const subtitles: ISubtitles[] = []; - const subtitlesDropdown = downloadPage.querySelectorAll( - "#user_menu .dropdown-item" - ); - subtitlesDropdown.forEach((item) => { - const url = item.getAttribute("href"); - const lang = item.textContent?.trim().replace("Download", "").trim(); - if (url && lang) subtitles.push({ url, lang }); - }); - - const streamlare = await proxiedFetch(streamlareUrl); - - const streamlarePage = new DOMParser().parseFromString( - streamlare, - "text/html" - ); - - const csrfToken = streamlarePage - .querySelector("head > meta:nth-child(3)") - ?.getAttribute("content"); - - if (!csrfToken) throw new Error("Unable to find CSRF token"); - - const videoId = streamlareUrl.match("/[ve]/([^?#&/]+)")?.[1]; - if (!videoId) throw new Error("Unable to get streamlare video id"); - - const streamRes = await proxiedFetch( - `${new URL(streamlareUrl).origin}/api/video/download/get`, - { - method: "POST", - body: JSON.stringify({ - id: videoId, - }), - headers: { - "X-Requested-With": "XMLHttpRequest", - "X-CSRF-Token": csrfToken, - }, - } - ); - - if (streamRes.message !== "OK") throw new Error("Unable to fetch stream"); - - const streamData = Array.isArray(streamRes.result) - ? streamRes.result[0] - : streamRes.result.Original; - if (!streamData) throw new Error("Unable to get stream data"); - - const followStream = await rawProxiedFetch(streamData.url, { - method: "HEAD", - referrer: new URL(streamlareUrl).origin, - }); - - const finalStreamUrl = followStream.headers.get("X-Final-Destination"); - return { url: finalStreamUrl, subtitles }; -} - -registerProvider({ - id: "2embed", - displayName: "2Embed", - rank: 125, - type: [MWMediaType.MOVIE, MWMediaType.SERIES], - disabled: true, // Disabled, not working - async scrape({ media, episode, progress }) { - let embedUrl = `${twoEmbedBase}/embed/tmdb/movie?id=${media.tmdbId}`; - - if (media.meta.type === MWMediaType.SERIES) { - const seasonNumber = media.meta.seasonData.number; - const episodeNumber = media.meta.seasonData.episodes.find( - (e) => e.id === episode - )?.number; - - embedUrl = `${twoEmbedBase}/embed/tmdb/tv?id=${media.tmdbId}&s=${seasonNumber}&e=${episodeNumber}`; - } - - const embed = await proxiedFetch(embedUrl); - progress(20); - - const embedPage = new DOMParser().parseFromString(embed, "text/html"); - - const pageServerItems = Array.from( - embedPage.querySelectorAll(".item-server") - ); - const pageStreamItem = pageServerItems.find((item) => - item.textContent?.includes("Vidcloud") - ); - - const sourceId = pageStreamItem - ? pageStreamItem.getAttribute("data-id") - : null; - if (!sourceId) throw new Error("Unable to get source id"); - - const siteKey = embedPage - .querySelector("body") - ?.getAttribute("data-recaptcha-key"); - if (!siteKey) throw new Error("Unable to get site key"); - - const captchaToken = await fetchCaptchaToken(siteKey); - if (!captchaToken) throw new Error("Unable to fetch captcha token"); - progress(35); - - const stream = await fetchStream(sourceId, captchaToken); - if (!stream.url) throw new Error("Unable to find stream url"); - - return { - embeds: [], - stream: { - streamUrl: stream.url, - quality: MWStreamQuality.QUNKNOWN, - type: MWStreamType.MP4, - captions: stream.subtitles.map((sub) => { - return { - langIso: sub.lang, - url: `https://cc.2cdns.com${new URL(sub.url).pathname}`, - type: MWCaptionType.VTT, - }; - }), - }, - }; - }, -}); diff --git a/src/backend/providers/flixhq/common.ts b/src/backend/providers/flixhq/common.ts deleted file mode 100644 index a4e6b639..00000000 --- a/src/backend/providers/flixhq/common.ts +++ /dev/null @@ -1 +0,0 @@ -export const flixHqBase = "https://flixhq.to"; diff --git a/src/backend/providers/flixhq/index.ts b/src/backend/providers/flixhq/index.ts deleted file mode 100644 index a30e6772..00000000 --- a/src/backend/providers/flixhq/index.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { MWEmbedType } from "@/backend/helpers/embed"; -import { registerProvider } from "@/backend/helpers/register"; -import { MWMediaType } from "@/backend/metadata/types/mw"; -import { - getFlixhqSourceDetails, - getFlixhqSources, -} from "@/backend/providers/flixhq/scrape"; -import { getFlixhqId } from "@/backend/providers/flixhq/search"; - -registerProvider({ - id: "flixhq", - displayName: "FlixHQ", - rank: 100, - type: [MWMediaType.MOVIE, MWMediaType.SERIES], - async scrape({ media }) { - const id = await getFlixhqId(media.meta); - if (!id) throw new Error("flixhq no matching item found"); - - // TODO tv shows not supported. just need to scrape the specific episode sources - - const sources = await getFlixhqSources(id); - const upcloudStream = sources.find( - (v) => v.embed.toLowerCase() === "upcloud" - ); - if (!upcloudStream) throw new Error("upcloud stream not found for flixhq"); - - return { - embeds: [ - { - type: MWEmbedType.UPCLOUD, - url: await getFlixhqSourceDetails(upcloudStream.episodeId), - }, - ], - }; - }, -}); diff --git a/src/backend/providers/flixhq/scrape.ts b/src/backend/providers/flixhq/scrape.ts deleted file mode 100644 index 3ca32732..00000000 --- a/src/backend/providers/flixhq/scrape.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { proxiedFetch } from "@/backend/helpers/fetch"; -import { flixHqBase } from "@/backend/providers/flixhq/common"; - -export async function getFlixhqSources(id: string) { - const type = id.split("/")[0]; - const episodeParts = id.split("-"); - const episodeId = episodeParts[episodeParts.length - 1]; - - const data = await proxiedFetch( - `/ajax/${type}/episodes/${episodeId}`, - { - baseURL: flixHqBase, - } - ); - const doc = new DOMParser().parseFromString(data, "text/html"); - - const sourceLinks = [...doc.querySelectorAll(".nav-item > a")].map((el) => { - const embedTitle = el.getAttribute("title"); - const linkId = el.getAttribute("data-linkid"); - if (!embedTitle || !linkId) throw new Error("invalid sources"); - return { - embed: embedTitle, - episodeId: linkId, - }; - }); - - return sourceLinks; -} - -export async function getFlixhqSourceDetails( - sourceId: string -): Promise { - const jsonData = await proxiedFetch>( - `/ajax/sources/${sourceId}`, - { - baseURL: flixHqBase, - } - ); - - return jsonData.link; -} diff --git a/src/backend/providers/flixhq/search.ts b/src/backend/providers/flixhq/search.ts deleted file mode 100644 index 64db2407..00000000 --- a/src/backend/providers/flixhq/search.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { proxiedFetch } from "@/backend/helpers/fetch"; -import { MWMediaMeta } from "@/backend/metadata/types/mw"; -import { flixHqBase } from "@/backend/providers/flixhq/common"; -import { compareTitle } from "@/utils/titleMatch"; - -export async function getFlixhqId(meta: MWMediaMeta): Promise { - const searchResults = await proxiedFetch( - `/search/${meta.title.replaceAll(/[^a-z0-9A-Z]/g, "-")}`, - { - baseURL: flixHqBase, - } - ); - - const doc = new DOMParser().parseFromString(searchResults, "text/html"); - const items = [...doc.querySelectorAll(".film_list-wrap > div.flw-item")].map( - (el) => { - const id = el - .querySelector("div.film-poster > a") - ?.getAttribute("href") - ?.slice(1); - const title = el - .querySelector("div.film-detail > h2 > a") - ?.getAttribute("title"); - const year = el.querySelector( - "div.film-detail > div.fd-infor > span:nth-child(1)" - )?.textContent; - - if (!id || !title || !year) return null; - return { - id, - title, - year, - }; - } - ); - - const matchingItem = items.find( - (v) => v && compareTitle(meta.title, v.title) && meta.year === v.year - ); - - if (!matchingItem) return null; - return matchingItem.id; -} diff --git a/src/backend/providers/gdriveplayer.ts b/src/backend/providers/gdriveplayer.ts deleted file mode 100644 index c184fea7..00000000 --- a/src/backend/providers/gdriveplayer.ts +++ /dev/null @@ -1,107 +0,0 @@ -import CryptoJS from "crypto-js"; -import { unpack } from "unpacker"; - -import { registerProvider } from "@/backend/helpers/register"; -import { MWStreamQuality } from "@/backend/helpers/streams"; -import { MWMediaType } from "@/backend/metadata/types/mw"; - -import { proxiedFetch } from "../helpers/fetch"; - -const format = { - stringify: (cipher: any) => { - const ct = cipher.ciphertext.toString(CryptoJS.enc.Base64); - const iv = cipher.iv.toString() || ""; - const salt = cipher.salt.toString() || ""; - return JSON.stringify({ - ct, - iv, - salt, - }); - }, - parse: (jsonStr: string) => { - const json = JSON.parse(jsonStr); - const ciphertext = CryptoJS.enc.Base64.parse(json.ct); - const iv = CryptoJS.enc.Hex.parse(json.iv) || ""; - const salt = CryptoJS.enc.Hex.parse(json.s) || ""; - - const cipher = CryptoJS.lib.CipherParams.create({ - ciphertext, - iv, - salt, - }); - return cipher; - }, -}; - -registerProvider({ - id: "gdriveplayer", - displayName: "gdriveplayer", - disabled: true, - rank: 69, - type: [MWMediaType.MOVIE], - - async scrape({ progress, media: { imdbId } }) { - if (!imdbId) throw new Error("not enough info"); - progress(10); - const streamRes = await proxiedFetch( - "https://database.gdriveplayer.us/player.php", - { - params: { - imdb: imdbId, - }, - } - ); - progress(90); - const page = new DOMParser().parseFromString(streamRes, "text/html"); - - const script: HTMLElement | undefined = Array.from( - page.querySelectorAll("script") - ).find((e) => e.textContent?.includes("eval")); - - if (!script || !script.textContent) { - throw new Error("Could not find stream"); - } - - /// NOTE: this code requires re-write, it's not safe - const data = unpack(script.textContent) - .split("var data=\\'")[1] - .split("\\'")[0] - .replace(/\\/g, ""); - const decryptedData = unpack( - CryptoJS.AES.decrypt( - data, - "alsfheafsjklNIWORNiolNIOWNKLNXakjsfwnBdwjbwfkjbJjkopfjweopjASoiwnrflakefneiofrt", - { format } - ).toString(CryptoJS.enc.Utf8) - ); - - // eslint-disable-next-line - const sources = JSON.parse( - JSON.stringify( - eval( - decryptedData - .split("sources:")[1] - .split(",image")[0] - .replace(/\\/g, "") - .replace(/document\.referrer/g, '""') - ) - ) - ); - const source = sources[sources.length - 1]; - /// END - - let quality; - if (source.label === "720p") quality = MWStreamQuality.Q720P; - else quality = MWStreamQuality.QUNKNOWN; - - return { - stream: { - streamUrl: `https:${source.file}`, - type: source.type, - quality, - captions: [], - }, - embeds: [], - }; - }, -}); diff --git a/src/backend/providers/gomovies.ts b/src/backend/providers/gomovies.ts deleted file mode 100644 index 169fcee7..00000000 --- a/src/backend/providers/gomovies.ts +++ /dev/null @@ -1,162 +0,0 @@ -import { MWEmbedType } from "../helpers/embed"; -import { proxiedFetch } from "../helpers/fetch"; -import { registerProvider } from "../helpers/register"; -import { MWMediaType } from "../metadata/types/mw"; - -const gomoviesBase = "https://gomovies.sx"; - -registerProvider({ - id: "gomovies", - displayName: "GOmovies", - rank: 200, - type: [MWMediaType.MOVIE, MWMediaType.SERIES], - - async scrape({ media, episode }) { - const search = await proxiedFetch("/ajax/search", { - baseURL: gomoviesBase, - method: "POST", - body: JSON.stringify({ - keyword: media.meta.title, - }), - headers: { - "X-Requested-With": "XMLHttpRequest", - }, - }); - - const searchPage = new DOMParser().parseFromString(search, "text/html"); - const mediaElements = searchPage.querySelectorAll("a.nav-item"); - - const mediaData = Array.from(mediaElements).map((movieEl) => { - const name = movieEl?.querySelector("h3.film-name")?.textContent; - const year = movieEl?.querySelector( - "div.film-infor span:first-of-type" - )?.textContent; - const path = movieEl.getAttribute("href"); - return { name, year, path }; - }); - - const targetMedia = mediaData.find( - (m) => - m.name === media.meta.title && - (media.meta.type === MWMediaType.MOVIE - ? m.year === media.meta.year - : true) - ); - if (!targetMedia?.path) throw new Error("Media not found"); - - // Example movie path: /movie/watch-{slug}-{id} - // Example series path: /tv/watch-{slug}-{id} - let mediaId = targetMedia.path.split("-").pop()?.replace("/", ""); - - let sources = null; - if (media.meta.type === MWMediaType.SERIES) { - const seasons = await proxiedFetch( - `/ajax/v2/tv/seasons/${mediaId}`, - { - baseURL: gomoviesBase, - headers: { - "X-Requested-With": "XMLHttpRequest", - }, - } - ); - - const seasonsEl = new DOMParser() - .parseFromString(seasons, "text/html") - .querySelectorAll(".ss-item"); - - const seasonsData = [...seasonsEl].map((season) => ({ - number: season.innerHTML.replace("Season ", ""), - dataId: season.getAttribute("data-id"), - })); - - const seasonNumber = media.meta.seasonData.number; - const targetSeason = seasonsData.find( - (season) => +season.number === seasonNumber - ); - if (!targetSeason) throw new Error("Season not found"); - - const episodes = await proxiedFetch( - `/ajax/v2/season/episodes/${targetSeason.dataId}`, - { - baseURL: gomoviesBase, - headers: { - "X-Requested-With": "XMLHttpRequest", - }, - } - ); - - const episodesEl = new DOMParser() - .parseFromString(episodes, "text/html") - .querySelectorAll(".eps-item"); - - const episodesData = Array.from(episodesEl).map((ep) => ({ - dataId: ep.getAttribute("data-id"), - number: ep - .querySelector("strong") - ?.textContent?.replace("Eps", "") - .replace(":", "") - .trim(), - })); - - const episodeNumber = media.meta.seasonData.episodes.find( - (e) => e.id === episode - )?.number; - - const targetEpisode = episodesData.find((ep) => - ep.number ? +ep.number === episodeNumber : false - ); - - if (!targetEpisode?.dataId) throw new Error("Episode not found"); - - mediaId = targetEpisode.dataId; - - sources = await proxiedFetch(`/ajax/v2/episode/servers/${mediaId}`, { - baseURL: gomoviesBase, - headers: { - "X-Requested-With": "XMLHttpRequest", - }, - }); - } else { - sources = await proxiedFetch(`/ajax/movie/episodes/${mediaId}`, { - baseURL: gomoviesBase, - headers: { - "X-Requested-With": "XMLHttpRequest", - }, - }); - } - - const upcloud = new DOMParser() - .parseFromString(sources, "text/html") - .querySelector('a[title*="upcloud" i]'); - - const upcloudDataId = - upcloud?.getAttribute("data-id") ?? upcloud?.getAttribute("data-linkid"); - - if (!upcloudDataId) throw new Error("Upcloud source not available"); - - const upcloudSource = await proxiedFetch<{ - type: "iframe" | string; - link: string; - sources: []; - title: string; - tracks: []; - }>(`/ajax/sources/${upcloudDataId}`, { - baseURL: gomoviesBase, - headers: { - "X-Requested-With": "XMLHttpRequest", - }, - }); - - if (!upcloudSource.link || upcloudSource.type !== "iframe") - throw new Error("No upcloud stream found"); - - return { - embeds: [ - { - type: MWEmbedType.UPCLOUD, - url: upcloudSource.link, - }, - ], - }; - }, -}); diff --git a/src/backend/providers/hdwatched.ts b/src/backend/providers/hdwatched.ts deleted file mode 100644 index 533f711d..00000000 --- a/src/backend/providers/hdwatched.ts +++ /dev/null @@ -1,198 +0,0 @@ -import { proxiedFetch } from "../helpers/fetch"; -import { MWProviderContext } from "../helpers/provider"; -import { registerProvider } from "../helpers/register"; -import { MWStreamQuality, MWStreamType } from "../helpers/streams"; -import { MWMediaType } from "../metadata/types/mw"; - -const hdwatchedBase = "https://www.hdwatched.xyz"; - -const qualityMap: Record = { - 360: MWStreamQuality.Q360P, - 540: MWStreamQuality.Q540P, - 480: MWStreamQuality.Q480P, - 720: MWStreamQuality.Q720P, - 1080: MWStreamQuality.Q1080P, -}; - -interface SearchRes { - title: string; - year?: number; - href: string; - id: string; -} - -function getStreamFromEmbed(stream: string) { - const embedPage = new DOMParser().parseFromString(stream, "text/html"); - const source = embedPage.querySelector("#vjsplayer > source"); - if (!source) { - throw new Error("Unable to fetch stream"); - } - - const streamSrc = source.getAttribute("src"); - const streamRes = source.getAttribute("res"); - - if (!streamSrc || !streamRes) throw new Error("Unable to find stream"); - - return { - streamUrl: streamSrc, - quality: - streamRes && typeof +streamRes === "number" - ? qualityMap[+streamRes] - : MWStreamQuality.QUNKNOWN, - }; -} - -async function fetchMovie(targetSource: SearchRes) { - const stream = await proxiedFetch(`/embed/${targetSource.id}`, { - baseURL: hdwatchedBase, - }); - - const embedPage = new DOMParser().parseFromString(stream, "text/html"); - const source = embedPage.querySelector("#vjsplayer > source"); - if (!source) { - throw new Error("Unable to fetch movie stream"); - } - - return getStreamFromEmbed(stream); -} - -async function fetchSeries( - targetSource: SearchRes, - { media, episode, progress }: MWProviderContext -) { - if (media.meta.type !== MWMediaType.SERIES) - throw new Error("Media type mismatch"); - - const seasonNumber = media.meta.seasonData.number; - const episodeNumber = media.meta.seasonData.episodes.find( - (e) => e.id === episode - )?.number; - - if (!seasonNumber || !episodeNumber) - throw new Error("Unable to get season or episode number"); - - const seriesPage = await proxiedFetch( - `${targetSource.href}?season=${media.meta.seasonData.number}`, - { - baseURL: hdwatchedBase, - } - ); - - const seasonPage = new DOMParser().parseFromString(seriesPage, "text/html"); - const pageElements = seasonPage.querySelectorAll("div.i-container"); - - const seriesList: SearchRes[] = []; - pageElements.forEach((pageElement) => { - const href = pageElement.querySelector("a")?.getAttribute("href") || ""; - const title = - pageElement?.querySelector("span.content-title")?.textContent || ""; - - seriesList.push({ - title, - href, - id: href.split("/")[2], // Format: /free/{id}/{series-slug}-season-{season-number}-episode-{episode-number} - }); - }); - - const targetEpisode = seriesList.find( - (episodeEl) => - episodeEl.title.trim().toLowerCase() === `episode ${episodeNumber}` - ); - - if (!targetEpisode) throw new Error("Unable to find episode"); - - progress(70); - - const stream = await proxiedFetch(`/embed/${targetEpisode.id}`, { - baseURL: hdwatchedBase, - }); - - const embedPage = new DOMParser().parseFromString(stream, "text/html"); - const source = embedPage.querySelector("#vjsplayer > source"); - if (!source) { - throw new Error("Unable to fetch movie stream"); - } - - return getStreamFromEmbed(stream); -} - -registerProvider({ - id: "hdwatched", - displayName: "HDwatched", - rank: 150, - disabled: true, // very slow, haven't seen it work for a while - type: [MWMediaType.MOVIE, MWMediaType.SERIES], - async scrape(options) { - const { media, progress } = options; - if (!media.imdbId) throw new Error("not enough info"); - if (!this.type.includes(media.meta.type)) { - throw new Error("Unsupported type"); - } - - const search = await proxiedFetch(`/search/${media.imdbId}`, { - baseURL: hdwatchedBase, - }); - - const searchPage = new DOMParser().parseFromString(search, "text/html"); - const pageElements = searchPage.querySelectorAll("div.i-container"); - - const searchList: SearchRes[] = []; - pageElements.forEach((pageElement) => { - const href = pageElement.querySelector("a")?.getAttribute("href") || ""; - const title = - pageElement?.querySelector("span.content-title")?.textContent || ""; - const year = - parseInt( - pageElement - ?.querySelector("div.duration") - ?.textContent?.trim() - ?.split(" ") - ?.pop() || "", - 10 - ) || 0; - - searchList.push({ - title, - year, - href, - id: href.split("/")[2], // Format: /free/{id}/{movie-slug} or /series/{id}/{series-slug} - }); - }); - - progress(20); - - const targetSource = searchList.find( - (source) => source.year === (media.meta.year ? +media.meta.year : 0) // Compare year to make the search more robust - ); - - if (!targetSource) { - throw new Error("Could not find stream"); - } - - progress(40); - - if (media.meta.type === MWMediaType.SERIES) { - const series = await fetchSeries(targetSource, options); - return { - embeds: [], - stream: { - streamUrl: series.streamUrl, - quality: series.quality, - type: MWStreamType.MP4, - captions: [], - }, - }; - } - - const movie = await fetchMovie(targetSource); - return { - embeds: [], - stream: { - streamUrl: movie.streamUrl, - quality: movie.quality, - type: MWStreamType.MP4, - captions: [], - }, - }; - }, -}); diff --git a/src/backend/providers/kissasian.ts b/src/backend/providers/kissasian.ts deleted file mode 100644 index a95e05ab..00000000 --- a/src/backend/providers/kissasian.ts +++ /dev/null @@ -1,119 +0,0 @@ -import { MWEmbedType } from "../helpers/embed"; -import { proxiedFetch } from "../helpers/fetch"; -import { registerProvider } from "../helpers/register"; -import { MWMediaType } from "../metadata/types/mw"; - -const kissasianBase = "https://kissasian.li"; - -const embedProviders = [ - { - type: MWEmbedType.MP4UPLOAD, - id: "mp", - }, - { - type: MWEmbedType.STREAMSB, - id: "sb", - }, -]; - -registerProvider({ - id: "kissasian", - displayName: "KissAsian", - rank: 130, - type: [MWMediaType.MOVIE, MWMediaType.SERIES], - - async scrape({ media, episode, progress }) { - let seasonNumber = ""; - let episodeNumber = ""; - - if (media.meta.type === MWMediaType.SERIES) { - seasonNumber = - media.meta.seasonData.number === 1 - ? "" - : `${media.meta.seasonData.number}`; - episodeNumber = `${ - media.meta.seasonData.episodes.find((e) => e.id === episode)?.number ?? - "" - }`; - } - - const searchForm = new FormData(); - searchForm.append("keyword", `${media.meta.title} ${seasonNumber}`.trim()); - searchForm.append("type", "Drama"); - - const search = await proxiedFetch("/Search/SearchSuggest", { - baseURL: kissasianBase, - method: "POST", - body: searchForm, - }); - - const searchPage = new DOMParser().parseFromString(search, "text/html"); - - const dramas = Array.from(searchPage.querySelectorAll("a")).map((drama) => { - return { - name: drama.textContent, - url: drama.href, - }; - }); - - const targetDrama = - dramas.find( - (d) => d.name?.toLowerCase() === media.meta.title.toLowerCase() - ) ?? dramas[0]; - if (!targetDrama) throw new Error("Drama not found"); - - progress(30); - - const drama = await proxiedFetch(targetDrama.url); - - const dramaPage = new DOMParser().parseFromString(drama, "text/html"); - - const episodesEl = dramaPage.querySelectorAll("tbody tr:not(:first-child)"); - - const episodes = Array.from(episodesEl) - .map((ep) => { - const number = ep - ?.querySelector("td.episodeSub a") - ?.textContent?.split("Episode")[1] - ?.trim(); - const url = ep?.querySelector("td.episodeSub a")?.getAttribute("href"); - return { number, url }; - }) - .filter((e) => !!e.url); - - const targetEpisode = - media.meta.type === MWMediaType.MOVIE - ? episodes[0] - : episodes.find((e) => e.number === `${episodeNumber}`); - if (!targetEpisode?.url) throw new Error("Episode not found"); - - progress(70); - - let embeds = await Promise.all( - embedProviders.map(async (provider) => { - const watch = await proxiedFetch( - `${targetEpisode.url}&s=${provider.id}`, - { - baseURL: kissasianBase, - } - ); - - const watchPage = new DOMParser().parseFromString(watch, "text/html"); - - const embedUrl = watchPage - .querySelector("iframe[id=my_video_1]") - ?.getAttribute("src"); - - return { - type: provider.type, - url: embedUrl ?? "", - }; - }) - ); - embeds = embeds.filter((e) => e.url !== ""); - - return { - embeds, - }; - }, -}); diff --git a/src/backend/providers/m4ufree.ts b/src/backend/providers/m4ufree.ts deleted file mode 100644 index b9d5aef0..00000000 --- a/src/backend/providers/m4ufree.ts +++ /dev/null @@ -1,236 +0,0 @@ -import { MWEmbed, MWEmbedType } from "@/backend/helpers/embed"; - -import { proxiedFetch } from "../helpers/fetch"; -import { registerProvider } from "../helpers/register"; -import { MWMediaType } from "../metadata/types/mw"; - -const HOST = "m4ufree.com"; -const URL_BASE = `https://${HOST}`; -const URL_SEARCH = `${URL_BASE}/search`; -const URL_AJAX = `${URL_BASE}/ajax`; -const URL_AJAX_TV = `${URL_BASE}/ajaxtv`; - -// * Years can be in one of 4 formats: -// * - "startyear" (for movies, EX: 2022) -// * - "startyear-" (for TV series which has not ended, EX: 2022-) -// * - "startyear-endyear" (for TV series which has ended, EX: 2022-2023) -// * - "startyearendyear" (for TV series which has ended, EX: 20222023) -const REGEX_TITLE_AND_YEAR = /(.*) \(?(\d*|\d*-|\d*-\d*)\)?$/; -const REGEX_TYPE = /.*-(movie|tvshow)-online-free-m4ufree\.html/; -const REGEX_COOKIES = /XSRF-TOKEN=(.*?);.*laravel_session=(.*?);/; -const REGEX_SEASON_EPISODE = /S(\d*)-E(\d*)/; - -function toDom(html: string) { - return new DOMParser().parseFromString(html, "text/html"); -} - -registerProvider({ - id: "m4ufree", - displayName: "m4ufree", - rank: -1, - disabled: true, // Disables because the redirector URLs it returns will throw 404 / 403 depending on if you view it in the browser or fetch it respectively. It just does not work. - type: [MWMediaType.MOVIE, MWMediaType.SERIES], - - async scrape({ media, type, episode: episodeId, season: seasonId }) { - const season = - media.meta.seasons?.find((s) => s.id === seasonId)?.number || 1; - const episode = - media.meta.type === MWMediaType.SERIES - ? media.meta.seasonData.episodes.find((ep) => ep.id === episodeId) - ?.number || 1 - : undefined; - - const embeds: MWEmbed[] = []; - - /* -, { - responseType: "text" as any, - } - */ - const responseText = await proxiedFetch( - `${URL_SEARCH}/${encodeURIComponent(media.meta.title)}.html` - ); - let dom = toDom(responseText); - - const searchResults = [...dom.querySelectorAll(".item")] - .map((element) => { - const tooltipText = element.querySelector(".tiptitle p")?.innerHTML; - if (!tooltipText) return; - - let regexResult = REGEX_TITLE_AND_YEAR.exec(tooltipText); - - if (!regexResult || !regexResult[1] || !regexResult[2]) { - return; - } - - const title = regexResult[1]; - const year = Number(regexResult[2].slice(0, 4)); // * Some media stores the start AND end year. Only need start year - const a = element.querySelector("a"); - if (!a) return; - const href = a.href; - - regexResult = REGEX_TYPE.exec(href); - - if (!regexResult || !regexResult[1]) { - return; - } - - let scraperDeterminedType = regexResult[1]; - - scraperDeterminedType = - scraperDeterminedType === "tvshow" ? "show" : "movie"; // * Map to Trakt type - - return { type: scraperDeterminedType, title, year, href }; - }) - .filter((item) => item); - - const mediaInResults = searchResults.find( - (item) => - item && - item.title === media.meta.title && - item.year.toString() === media.meta.year - ); - - if (!mediaInResults) { - // * Nothing found - return { - embeds, - }; - } - - let cookies: string | null = ""; - const responseTextFromMedia = await proxiedFetch( - mediaInResults.href, - { - onResponse(context) { - cookies = context.response.headers.get("X-Set-Cookie"); - }, - } - ); - dom = toDom(responseTextFromMedia); - - let regexResult = REGEX_COOKIES.exec(cookies); - - if (!regexResult || !regexResult[1] || !regexResult[2]) { - // * DO SOMETHING? - throw new Error("No regexResults, yikesssssss kinda gross idk"); - } - - const cookieHeader = `XSRF-TOKEN=${regexResult[1]}; laravel_session=${regexResult[2]}`; - - const token = dom - .querySelector('meta[name="csrf-token"]') - ?.getAttribute("content"); - if (!token) return { embeds }; - - if (type === MWMediaType.SERIES) { - // * Get the season/episode data - const episodes = [...dom.querySelectorAll(".episode")] - .map((element) => { - regexResult = REGEX_SEASON_EPISODE.exec(element.innerHTML); - - if (!regexResult || !regexResult[1] || !regexResult[2]) { - return; - } - - const newEpisode = Number(regexResult[1]); - const newSeason = Number(regexResult[2]); - - return { - id: element.getAttribute("idepisode"), - episode: newEpisode, - season: newSeason, - }; - }) - .filter((item) => item); - - const ep = episodes.find( - (newEp) => newEp && newEp.episode === episode && newEp.season === season - ); - if (!ep) return { embeds }; - - const form = `idepisode=${ep.id}&_token=${token}`; - - const response = await proxiedFetch(URL_AJAX_TV, { - method: "POST", - headers: { - Accept: "*/*", - "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "en-US,en;q=0.9", - "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", - "X-Requested-With": "XMLHttpRequest", - "Sec-CH-UA": - '"Not?A_Brand";v="8", "Chromium";v="108", "Microsoft Edge";v="108"', - "Sec-CH-UA-Mobile": "?0", - "Sec-CH-UA-Platform": '"Linux"', - "Sec-Fetch-Site": "same-origin", - "Sec-Fetch-Mode": "cors", - "Sec-Fetch-Dest": "empty", - "X-Cookie": cookieHeader, - "X-Origin": URL_BASE, - "X-Referer": mediaInResults.href, - }, - body: form, - }); - - dom = toDom(response); - } - - const servers = [...dom.querySelectorAll(".singlemv")].map((element) => - element.getAttribute("data") - ); - - for (const server of servers) { - const form = `m4u=${server}&_token=${token}`; - - const response = await proxiedFetch(URL_AJAX, { - method: "POST", - headers: { - Accept: "*/*", - "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "en-US,en;q=0.9", - "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", - "X-Requested-With": "XMLHttpRequest", - "Sec-CH-UA": - '"Not?A_Brand";v="8", "Chromium";v="108", "Microsoft Edge";v="108"', - "Sec-CH-UA-Mobile": "?0", - "Sec-CH-UA-Platform": '"Linux"', - "Sec-Fetch-Site": "same-origin", - "Sec-Fetch-Mode": "cors", - "Sec-Fetch-Dest": "empty", - "X-Cookie": cookieHeader, - "X-Origin": URL_BASE, - "X-Referer": mediaInResults.href, - }, - body: form, - }); - - const serverDom = toDom(response); - - const link = serverDom.querySelector("iframe")?.src; - - const getEmbedType = (url: string) => { - if (url.startsWith("https://streamm4u.club")) - return MWEmbedType.STREAMM4U; - if (url.startsWith("https://play.playm4u.xyz")) - return MWEmbedType.PLAYM4U; - return null; - }; - - if (!link) continue; - - const embedType = getEmbedType(link); - if (embedType) { - embeds.push({ - url: link, - type: embedType, - }); - } - } - - console.log(embeds); - return { - embeds, - }; - }, -}); diff --git a/src/backend/providers/netfilm.ts b/src/backend/providers/netfilm.ts deleted file mode 100644 index 54016733..00000000 --- a/src/backend/providers/netfilm.ts +++ /dev/null @@ -1,154 +0,0 @@ -import { proxiedFetch } from "../helpers/fetch"; -import { registerProvider } from "../helpers/register"; -import { - MWCaptionType, - MWStreamQuality, - MWStreamType, -} from "../helpers/streams"; -import { MWMediaType } from "../metadata/types/mw"; - -const netfilmBase = "https://net-film.vercel.app"; - -const qualityMap: Record = { - 360: MWStreamQuality.Q360P, - 540: MWStreamQuality.Q540P, - 480: MWStreamQuality.Q480P, - 720: MWStreamQuality.Q720P, - 1080: MWStreamQuality.Q1080P, -}; - -registerProvider({ - id: "netfilm", - displayName: "NetFilm", - rank: 15, - type: [MWMediaType.MOVIE, MWMediaType.SERIES], - disabled: true, // The creator has asked us (very nicely) to leave him alone. Until (if) we self-host, netfilm should remain disabled - - async scrape({ media, episode, progress }) { - if (!this.type.includes(media.meta.type)) { - throw new Error("Unsupported type"); - } - // search for relevant item - const searchResponse = await proxiedFetch( - `/api/search?keyword=${encodeURIComponent(media.meta.title)}`, - { - baseURL: netfilmBase, - } - ); - - const searchResults = searchResponse.data.results; - progress(25); - - if (media.meta.type === MWMediaType.MOVIE) { - const foundItem = searchResults.find((v: any) => { - return v.name === media.meta.title && v.releaseTime === media.meta.year; - }); - if (!foundItem) throw new Error("No watchable item found"); - const netfilmId = foundItem.id; - - // get stream info from media - progress(75); - const watchInfo = await proxiedFetch( - `/api/episode?id=${netfilmId}`, - { - baseURL: netfilmBase, - } - ); - - const data = watchInfo.data; - - // get best quality source - const source: { url: string; quality: number } = data.qualities.reduce( - (p: any, c: any) => (c.quality > p.quality ? c : p) - ); - - const mappedCaptions = data.subtitles.map((sub: Record) => ({ - needsProxy: false, - url: sub.url.replace("https://convert-srt-to-vtt.vercel.app/?url=", ""), - type: MWCaptionType.SRT, - langIso: sub.language, - })); - - return { - embeds: [], - stream: { - streamUrl: source.url - .replace("akm-cdn", "aws-cdn") - .replace("gg-cdn", "aws-cdn"), - quality: qualityMap[source.quality], - type: MWStreamType.HLS, - captions: mappedCaptions, - }, - }; - } - - if (media.meta.type !== MWMediaType.SERIES) - throw new Error("Unsupported type"); - - const desiredSeason = media.meta.seasonData.number; - - const searchItems = searchResults - .filter((v: any) => { - return v.name.includes(media.meta.title); - }) - .map((v: any) => { - return { - ...v, - season: parseInt(v.name.split(" ").at(-1), 10) || 1, - }; - }); - - const foundItem = searchItems.find((v: any) => { - return v.season === desiredSeason; - }); - - progress(50); - const seasonDetail = await proxiedFetch( - `/api/detail?id=${foundItem.id}&category=${foundItem.categoryTag[0].id}`, - { - baseURL: netfilmBase, - } - ); - - const episodeNo = media.meta.seasonData.episodes.find( - (v: any) => v.id === episode - )?.number; - const episodeData = seasonDetail.data.episodeVo.find( - (v: any) => v.seriesNo === episodeNo - ); - - progress(75); - const episodeStream = await proxiedFetch( - `/api/episode?id=${foundItem.id}&category=1&episode=${episodeData.id}`, - { - baseURL: netfilmBase, - } - ); - - const data = episodeStream.data; - - // get best quality source - const source: { url: string; quality: number } = data.qualities.reduce( - (p: any, c: any) => (c.quality > p.quality ? c : p) - ); - - const mappedCaptions = data.subtitles.map((sub: Record) => ({ - needsProxy: false, - url: sub.url.replace("https://convert-srt-to-vtt.vercel.app/?url=", ""), - type: MWCaptionType.SRT, - langIso: sub.language, - })); - - return { - embeds: [], - stream: { - streamUrl: source.url - .replace("akm-cdn", "aws-cdn") - .replace("gg-cdn", "aws-cdn"), - quality: qualityMap[source.quality], - type: MWStreamType.HLS, - captions: mappedCaptions, - }, - }; - }, -}); diff --git a/src/backend/providers/remotestream.ts b/src/backend/providers/remotestream.ts deleted file mode 100644 index 093069e8..00000000 --- a/src/backend/providers/remotestream.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { mwFetch } from "@/backend/helpers/fetch"; -import { registerProvider } from "@/backend/helpers/register"; -import { MWStreamQuality, MWStreamType } from "@/backend/helpers/streams"; -import { MWMediaType } from "@/backend/metadata/types/mw"; - -const remotestreamBase = `https://fsa.remotestre.am`; - -registerProvider({ - id: "remotestream", - displayName: "Remote Stream", - disabled: false, - rank: 55, - type: [MWMediaType.MOVIE, MWMediaType.SERIES], - - async scrape({ media, episode, progress }) { - if (!this.type.includes(media.meta.type)) { - throw new Error("Unsupported type"); - } - - progress(30); - const type = media.meta.type === MWMediaType.MOVIE ? "Movies" : "Shows"; - let playlistLink = `${remotestreamBase}/${type}/${media.tmdbId}`; - - if (media.meta.type === MWMediaType.SERIES) { - const seasonNumber = media.meta.seasonData.number; - const episodeNumber = media.meta.seasonData.episodes.find( - (e) => e.id === episode - )?.number; - - playlistLink += `/${seasonNumber}/${episodeNumber}/${episodeNumber}.m3u8`; - } else { - playlistLink += `/${media.tmdbId}.m3u8`; - } - - const streamRes = await mwFetch(playlistLink); - if (streamRes.type !== "application/x-mpegurl") - throw new Error("No watchable item found"); - progress(90); - return { - embeds: [], - stream: { - streamUrl: playlistLink, - quality: MWStreamQuality.QUNKNOWN, - type: MWStreamType.HLS, - captions: [], - }, - }; - }, -}); diff --git a/src/backend/providers/sflix.ts b/src/backend/providers/sflix.ts deleted file mode 100644 index db331e3c..00000000 --- a/src/backend/providers/sflix.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { proxiedFetch } from "../helpers/fetch"; -import { registerProvider } from "../helpers/register"; -import { MWStreamQuality, MWStreamType } from "../helpers/streams"; -import { MWMediaType } from "../metadata/types/mw"; - -const sflixBase = "https://sflix.video"; - -registerProvider({ - id: "sflix", - displayName: "Sflix", - rank: 50, - disabled: true, // domain dead - type: [MWMediaType.MOVIE, MWMediaType.SERIES], - async scrape({ media, episode, progress }) { - let searchQuery = `${media.meta.title} `; - - if (media.meta.type === MWMediaType.MOVIE) - searchQuery += media.meta.year ?? ""; - - if (media.meta.type === MWMediaType.SERIES) - searchQuery += `S${String(media.meta.seasonData.number).padStart( - 2, - "0" - )}`; - - const search = await proxiedFetch( - `/?s=${encodeURIComponent(searchQuery)}`, - { - baseURL: sflixBase, - } - ); - const searchPage = new DOMParser().parseFromString(search, "text/html"); - - const moviePageUrl = searchPage - .querySelector(".movies-list .ml-item:first-child a") - ?.getAttribute("href"); - if (!moviePageUrl) throw new Error("Movie does not exist"); - - progress(25); - - const movie = await proxiedFetch(moviePageUrl); - const moviePage = new DOMParser().parseFromString(movie, "text/html"); - - progress(45); - - let outerEmbedSrc = null; - if (media.meta.type === MWMediaType.MOVIE) { - outerEmbedSrc = moviePage - .querySelector("iframe") - ?.getAttribute("data-lazy-src"); - } else if (media.meta.type === MWMediaType.SERIES) { - const series = Array.from(moviePage.querySelectorAll(".desc p a")).map( - (a) => ({ - title: a.getAttribute("title"), - link: a.getAttribute("href"), - }) - ); - - const episodeNumber = media.meta.seasonData.episodes.find( - (e) => e.id === episode - )?.number; - - const targetSeries = series.find((s) => - s.title?.endsWith(String(episodeNumber).padStart(2, "0")) - ); - if (!targetSeries) throw new Error("Episode does not exist"); - - outerEmbedSrc = targetSeries.link; - } - if (!outerEmbedSrc) throw new Error("Outer embed source not found"); - - progress(65); - - const outerEmbed = await proxiedFetch(outerEmbedSrc); - const outerEmbedPage = new DOMParser().parseFromString( - outerEmbed, - "text/html" - ); - - const embedSrc = outerEmbedPage - .querySelector("iframe") - ?.getAttribute("src"); - if (!embedSrc) throw new Error("Embed source not found"); - - const embed = await proxiedFetch(embedSrc); - - const streamUrl = embed.match(/file\s*:\s*"([^"]+\.mp4)"/)?.[1]; - if (!streamUrl) throw new Error("Unable to get stream"); - - return { - embeds: [], - stream: { - streamUrl, - quality: MWStreamQuality.Q1080P, - type: MWStreamType.MP4, - captions: [], - }, - }; - }, -}); diff --git a/src/backend/providers/streamflix.ts b/src/backend/providers/streamflix.ts deleted file mode 100644 index d4488b03..00000000 --- a/src/backend/providers/streamflix.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { proxiedFetch } from "@/backend/helpers/fetch"; -import { registerProvider } from "@/backend/helpers/register"; -import { - MWCaptionType, - MWStreamQuality, - MWStreamType, -} from "@/backend/helpers/streams"; -import { MWMediaType } from "@/backend/metadata/types/mw"; - -const streamflixBase = "https://us-west2-compute-proxied.streamflix.one"; - -const qualityMap: Record = { - 360: MWStreamQuality.Q360P, - 540: MWStreamQuality.Q540P, - 480: MWStreamQuality.Q480P, - 720: MWStreamQuality.Q720P, - 1080: MWStreamQuality.Q1080P, -}; - -registerProvider({ - id: "streamflix", - displayName: "StreamFlix", - disabled: false, - rank: 69, - type: [MWMediaType.MOVIE, MWMediaType.SERIES], - - async scrape({ media, episode, progress }) { - if (!this.type.includes(media.meta.type)) { - throw new Error("Unsupported type"); - } - - progress(30); - const type = media.meta.type === MWMediaType.MOVIE ? "movies" : "tv"; - let seasonNumber: number | undefined; - let episodeNumber: number | undefined; - - if (media.meta.type === MWMediaType.SERIES) { - // can't do type === "tv" here :( - seasonNumber = media.meta.seasonData.number; - episodeNumber = media.meta.seasonData.episodes.find( - (e: any) => e.id === episode - )?.number; - } - - const streamRes = await proxiedFetch(`/api/player/${type}`, { - baseURL: streamflixBase, - params: { - id: media.tmdbId, - s: seasonNumber, - e: episodeNumber, - }, - }); - if (!streamRes.headers.Referer) throw new Error("No watchable item found"); - progress(90); - return { - embeds: [], - stream: { - streamUrl: streamRes.sources[0].url, - quality: qualityMap[streamRes.sources[0].quality], - type: MWStreamType.HLS, - captions: streamRes.subtitles.map((s: Record) => ({ - needsProxy: true, - url: s.url, - type: MWCaptionType.VTT, - langIso: s.lang, - })), - }, - }; - }, -}); diff --git a/src/backend/providers/superstream/LICENSE b/src/backend/providers/superstream/LICENSE deleted file mode 100644 index 3f5347b0..00000000 --- a/src/backend/providers/superstream/LICENSE +++ /dev/null @@ -1,680 +0,0 @@ -Credit goes to @ImZaw and @Blatzar from https://github.com/recloudstream/cloudstream -All files in the current directory (src/providers/list/superstream) are derived from https://github.com/recloudstream/cloudstream-extensions/blob/master/SuperStream/src/main/kotlin/com/lagradost/SuperStream.kt -Below is the license associated with the source of the derived work. - - - - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Use with the GNU Affero General Public License. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - Copyright (C) - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. diff --git a/src/backend/providers/superstream/index.ts b/src/backend/providers/superstream/index.ts deleted file mode 100644 index b984cc48..00000000 --- a/src/backend/providers/superstream/index.ts +++ /dev/null @@ -1,275 +0,0 @@ -import CryptoJS from "crypto-js"; -import { customAlphabet } from "nanoid"; - -import { - getMWCaptionTypeFromUrl, - isSupportedSubtitle, -} from "@/backend/helpers/captions"; -import { proxiedFetch } from "@/backend/helpers/fetch"; -import { registerProvider } from "@/backend/helpers/register"; -import { - MWCaption, - MWCaptionType, - MWStreamQuality, - MWStreamType, -} from "@/backend/helpers/streams"; -import { MWMediaType } from "@/backend/metadata/types/mw"; -import { compareTitle } from "@/utils/titleMatch"; - -const nanoid = customAlphabet("0123456789abcdef", 32); - -const qualityMap = { - "360p": MWStreamQuality.Q360P, - "480p": MWStreamQuality.Q480P, - "720p": MWStreamQuality.Q720P, - "1080p": MWStreamQuality.Q1080P, -}; -type QualityInMap = keyof typeof qualityMap; - -// CONSTANTS, read below (taken from og) -// We do not want content scanners to notice this scraping going on so we've hidden all constants -// The source has its origins in China so I added some extra security with banned words -// Mayhaps a tiny bit unethical, but this source is just too good :) -// If you are copying this code please use precautions so they do not change their api. -const iv = atob("d0VpcGhUbiE="); -const key = atob("MTIzZDZjZWRmNjI2ZHk1NDIzM2FhMXc2"); -const apiUrls = [ - atob("aHR0cHM6Ly9zaG93Ym94LnNoZWd1Lm5ldC9hcGkvYXBpX2NsaWVudC9pbmRleC8="), - atob("aHR0cHM6Ly9tYnBhcGkuc2hlZ3UubmV0L2FwaS9hcGlfY2xpZW50L2luZGV4Lw=="), -]; -const appKey = atob("bW92aWVib3g="); -const appId = atob("Y29tLnRkby5zaG93Ym94"); -const captionsDomains = [ - atob("bWJwaW1hZ2VzLmNodWF4aW4uY29t"), - atob("aW1hZ2VzLnNoZWd1Lm5ldA=="), -]; - -// cryptography stuff -const crypto = { - encrypt(str: string) { - return CryptoJS.TripleDES.encrypt(str, CryptoJS.enc.Utf8.parse(key), { - iv: CryptoJS.enc.Utf8.parse(iv), - }).toString(); - }, - getVerify(str: string, str2: string, str3: string) { - if (str) { - return CryptoJS.MD5( - CryptoJS.MD5(str2).toString() + str3 + str - ).toString(); - } - return null; - }, -}; - -// get expire time -const expiry = () => Math.floor(Date.now() / 1000 + 60 * 60 * 12); - -// sending requests -const get = (data: object, altApi = false) => { - const defaultData = { - childmode: "0", - app_version: "11.5", - appid: appId, - lang: "en", - expired_date: `${expiry()}`, - platform: "android", - channel: "Website", - }; - const encryptedData = crypto.encrypt( - JSON.stringify({ - ...defaultData, - ...data, - }) - ); - const appKeyHash = CryptoJS.MD5(appKey).toString(); - const verify = crypto.getVerify(encryptedData, appKey, key); - const body = JSON.stringify({ - app_key: appKeyHash, - verify, - encrypt_data: encryptedData, - }); - const b64Body = btoa(body); - - const formatted = new URLSearchParams(); - formatted.append("data", b64Body); - formatted.append("appid", "27"); - formatted.append("platform", "android"); - formatted.append("version", "129"); - formatted.append("medium", "Website"); - - const requestUrl = altApi ? apiUrls[1] : apiUrls[0]; - return proxiedFetch(requestUrl, { - method: "POST", - parseResponse: JSON.parse, - headers: { - Platform: "android", - "Content-Type": "application/x-www-form-urlencoded", - }, - body: `${formatted.toString()}&token${nanoid()}`, - }); -}; - -// Find best resolution -const getBestQuality = (list: any[]) => { - return ( - list.find((quality: any) => quality.quality === "1080p" && quality.path) ?? - list.find((quality: any) => quality.quality === "720p" && quality.path) ?? - list.find((quality: any) => quality.quality === "480p" && quality.path) ?? - list.find((quality: any) => quality.quality === "360p" && quality.path) - ); -}; - -const convertSubtitles = (subtitleGroup: any): MWCaption | null => { - let subtitles = subtitleGroup.subtitles; - subtitles = subtitles - .map((subFile: any) => { - const filePath = subFile.file_path - .replace(captionsDomains[0], captionsDomains[1]) - .replace(/\s/g, "+") - .replace(/[()]/g, (c: string) => { - return `%${c.charCodeAt(0).toString(16)}`; - }); - const supported = isSupportedSubtitle(filePath); - if (!supported) return null; - const type = getMWCaptionTypeFromUrl(filePath); - return { - ...subFile, - file_path: filePath, - type: type as MWCaptionType, - }; - }) - .filter(Boolean); - - if (subtitles.length === 0) return null; - const subFile = subtitles[0]; - return { - needsProxy: true, - langIso: subtitleGroup.language, - url: subFile.file_path, - type: subFile.type, - }; -}; - -registerProvider({ - id: "superstream", - displayName: "Superstream", - rank: 300, - type: [MWMediaType.MOVIE, MWMediaType.SERIES], - - async scrape({ media, episode, progress }) { - // Find Superstream ID for show - const searchQuery = { - module: "Search4", - page: "1", - type: "all", - keyword: media.meta.title, - pagelimit: "20", - }; - const searchRes = (await get(searchQuery, true)).data.list; - progress(33); - - const superstreamEntry = searchRes.find( - (res: any) => - compareTitle(res.title, media.meta.title) && - res.year === Number(media.meta.year) - ); - - if (!superstreamEntry) throw new Error("No entry found on SuperStream"); - const superstreamId = superstreamEntry.id; - - // Movie logic - if (media.meta.type === MWMediaType.MOVIE) { - const apiQuery = { - uid: "", - module: "Movie_downloadurl_v3", - mid: superstreamId, - oss: "1", - group: "", - }; - - const mediaRes = (await get(apiQuery)).data; - progress(50); - - const hdQuality = getBestQuality(mediaRes.list); - - if (!hdQuality) throw new Error("No quality could be found."); - - const subtitleApiQuery = { - fid: hdQuality.fid, - uid: "", - module: "Movie_srt_list_v2", - mid: superstreamId, - }; - - const subtitleRes = (await get(subtitleApiQuery)).data; - - const mappedCaptions = subtitleRes.list - .map(convertSubtitles) - .filter(Boolean); - - return { - embeds: [], - stream: { - streamUrl: hdQuality.path, - quality: qualityMap[hdQuality.quality as QualityInMap], - type: MWStreamType.MP4, - captions: mappedCaptions, - }, - }; - } - - if (media.meta.type !== MWMediaType.SERIES) - throw new Error("Unsupported type"); - - // Fetch requested episode - const apiQuery = { - uid: "", - module: "TV_downloadurl_v3", - tid: superstreamId, - season: media.meta.seasonData.number.toString(), - episode: ( - media.meta.seasonData.episodes.find( - (episodeInfo) => episodeInfo.id === episode - )?.number ?? 1 - ).toString(), - oss: "1", - group: "", - }; - - const mediaRes = (await get(apiQuery)).data; - progress(66); - - const hdQuality = getBestQuality(mediaRes.list); - - if (!hdQuality) throw new Error("No quality could be found."); - - const subtitleApiQuery = { - fid: hdQuality.fid, - uid: "", - module: "TV_srt_list_v2", - episode: - media.meta.seasonData.episodes.find( - (episodeInfo) => episodeInfo.id === episode - )?.number ?? 1, - tid: superstreamId, - season: media.meta.seasonData.number.toString(), - }; - - const subtitleRes = (await get(subtitleApiQuery)).data; - const mappedCaptions = subtitleRes.list - .map(convertSubtitles) - .filter(Boolean); - - return { - embeds: [], - stream: { - quality: qualityMap[ - hdQuality.quality as QualityInMap - ] as MWStreamQuality, - streamUrl: hdQuality.path, - type: MWStreamType.MP4, - captions: mappedCaptions, - }, - }; - }, -}); diff --git a/src/components/Avatar.tsx b/src/components/Avatar.tsx new file mode 100644 index 00000000..7a7b4882 --- /dev/null +++ b/src/components/Avatar.tsx @@ -0,0 +1,90 @@ +import classNames from "classnames"; +import { useMemo } from "react"; + +import { base64ToBuffer, decryptData } from "@/backend/accounts/crypto"; +import { Icon, Icons } from "@/components/Icon"; +import { UserIcon } from "@/components/UserIcon"; +import { AccountProfile } from "@/pages/parts/auth/AccountCreatePart"; +import { useAuthStore } from "@/stores/auth"; + +export interface AvatarProps { + profile: AccountProfile["profile"]; + sizeClass?: string; + iconClass?: string; + bottom?: React.ReactNode; +} + +export function Avatar(props: AvatarProps) { + return ( +
+
+ +
+ {props.bottom ? ( +
+ {props.bottom} +
+ ) : null} +
+ ); +} + +export function UserAvatar(props: { + sizeClass?: string; + iconClass?: string; + bottom?: React.ReactNode; + withName?: boolean; +}) { + const auth = useAuthStore(); + + const bufferSeed = useMemo( + () => + auth.account && auth.account.seed + ? base64ToBuffer(auth.account.seed) + : null, + [auth] + ); + + if (!auth.account || auth.account === null) return null; + + const deviceName = bufferSeed + ? decryptData(auth.account.deviceName, bufferSeed) + : "..."; + + return ( + <> + + {props.withName && bufferSeed ? ( + + {deviceName.length >= 20 + ? `${deviceName.slice(0, 20 - 1)}…` + : deviceName} + + ) : null} + + ); +} + +export function NoUserAvatar(props: { iconClass?: string }) { + return ( +
+ +
+ ); +} diff --git a/src/components/Banner.tsx b/src/components/Banner.tsx deleted file mode 100644 index 044bc524..00000000 --- a/src/components/Banner.tsx +++ /dev/null @@ -1,28 +0,0 @@ -import { Icon, Icons } from "@/components/Icon"; -import { useBanner } from "@/hooks/useBanner"; - -export function Banner(props: { children: React.ReactNode; type: "error" }) { - const [ref] = useBanner("internet"); - const styles = { - error: "bg-[#C93957] text-white", - }; - const icons = { - error: Icons.CIRCLE_EXCLAMATION, - }; - - return ( -
-
-
- -
{props.children}
-
-
-
- ); -} diff --git a/src/components/Button.tsx b/src/components/Button.tsx deleted file mode 100644 index eefeef01..00000000 --- a/src/components/Button.tsx +++ /dev/null @@ -1,26 +0,0 @@ -import { ReactNode } from "react"; - -import { Icon, Icons } from "@/components/Icon"; - -interface Props { - icon?: Icons; - onClick?: () => void; - children?: ReactNode; -} - -export function Button(props: Props) { - return ( - - ); -} diff --git a/src/components/CaptionColorSelector.tsx b/src/components/CaptionColorSelector.tsx deleted file mode 100644 index 7df66320..00000000 --- a/src/components/CaptionColorSelector.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import { useSettings } from "@/state/settings"; - -import { Icon, Icons } from "./Icon"; - -export const colors = ["#ffffff", "#00ffff", "#ffff00"]; -export default function CaptionColorSelector({ color }: { color: string }) { - const { captionSettings, setCaptionColor } = useSettings(); - return ( -
setCaptionColor(color)} - > -
- -
- ); -} diff --git a/src/components/FlagIcon.tsx b/src/components/FlagIcon.tsx new file mode 100644 index 00000000..d512e6e0 --- /dev/null +++ b/src/components/FlagIcon.tsx @@ -0,0 +1,46 @@ +import classNames from "classnames"; +import "flag-icons/css/flag-icons.min.css"; + +export interface FlagIconProps { + countryCode?: string; +} + +// Country code overrides +const countryOverrides: Record = { + en: "gb", + cs: "cz", + el: "gr", + fa: "ir", + ko: "kr", + he: "il", + ze: "cn", + ar: "sa", + ja: "jp", + bs: "ba", + vi: "vn", + zh: "cn", + sl: "si", +}; + +export function FlagIcon(props: FlagIconProps) { + let countryCode = + (props.countryCode || "")?.split("-").pop()?.toLowerCase() || ""; + if (countryOverrides[countryCode]) + countryCode = countryOverrides[countryCode]; + + if (countryCode === "pirate") + return ( +
+ +
+ ); + + return ( + + ); +} diff --git a/src/components/Icon.tsx b/src/components/Icon.tsx index af71ab4e..71e6b556 100644 --- a/src/components/Icon.tsx +++ b/src/components/Icon.tsx @@ -9,6 +9,7 @@ export enum Icons { ARROW_LEFT = "arrowLeft", ARROW_RIGHT = "arrowRight", CHEVRON_DOWN = "chevronDown", + CHEVRON_UP = "chevronUp", CHEVRON_RIGHT = "chevronRight", CHEVRON_LEFT = "chevronLeft", CLAPPER_BOARD = "clapperBoard", @@ -41,6 +42,25 @@ export enum Icons { PICTURE_IN_PICTURE = "pictureInPicture", CHECKMARK = "checkmark", TACHOMETER = "tachometer", + MAIL = "mail", + CIRCLE_CHECK = "circle_check", + SKIP_EPISODE = "skip_episode", + MORE_VERTICAL = "more_vertical", + IOS_SHARE = "ios_share", + IOS_FILES = "ios_files", + WAND = "wand", + COPY = "copy", + USER = "user", + UP_DOWN_ARROW = "up_down_arrow", + RISING_STAR = "rising_star", + SETTINGS = "settings", + COINS = "coins", + LOGOUT = "logout", + MENU = "menu", + LOCK = "lock", + UNLOCK = "unlock", + DONATION = "donation", + CIRCLE_QUESTION = "circle_question", } export interface IconProps { @@ -55,8 +75,9 @@ const iconList: Record = { eyeSlash: ``, arrowLeft: ``, chevronDown: ``, + chevronUp: ``, chevronRight: ``, - chevronLeft: ``, + chevronLeft: ``, clapperBoard: ``, film: ``, dragon: ``, @@ -89,6 +110,25 @@ const iconList: Record = { pictureInPicture: ``, checkmark: ``, tachometer: ``, + mail: ``, + circle_check: ``, + skip_episode: ``, + more_vertical: ``, + ios_share: ``, + ios_files: ``, + wand: ``, + copy: ``, + user: ``, + up_down_arrow: ``, + rising_star: ``, + settings: ``, + coins: ``, + logout: ``, + menu: ``, + lock: ``, + unlock: ``, + donation: ``, + circle_question: ``, }; function ChromeCastButton() { diff --git a/src/components/LinksDropdown.tsx b/src/components/LinksDropdown.tsx new file mode 100644 index 00000000..24115d21 --- /dev/null +++ b/src/components/LinksDropdown.tsx @@ -0,0 +1,173 @@ +import classNames from "classnames"; +import { useCallback, useEffect, useMemo, useState } from "react"; +import { useTranslation } from "react-i18next"; +import { useHistory } from "react-router-dom"; + +import { base64ToBuffer, decryptData } from "@/backend/accounts/crypto"; +import { UserAvatar } from "@/components/Avatar"; +import { Icon, Icons } from "@/components/Icon"; +import { Transition } from "@/components/utils/Transition"; +import { useAuth } from "@/hooks/auth/useAuth"; +import { conf } from "@/setup/config"; +import { useAuthStore } from "@/stores/auth"; + +function Divider() { + return
; +} + +function GoToLink(props: { + children: React.ReactNode; + href?: string; + className?: string; + onClick?: () => void; +}) { + const history = useHistory(); + + const goTo = (href: string) => { + if (href.startsWith("http")) window.open(href, "_blank"); + else history.push(href); + }; + + return ( + { + evt.preventDefault(); + if (props.href) goTo(props.href); + else props.onClick?.(); + }} + className={props.className} + > + {props.children} + + ); +} + +function DropdownLink(props: { + children: React.ReactNode; + href?: string; + icon?: Icons; + highlight?: boolean; + className?: string; + onClick?: () => void; +}) { + return ( + + {props.icon ? : null} + {props.children} + + ); +} + +function CircleDropdownLink(props: { icon: Icons; href: string }) { + return ( + + + + ); +} + +export function LinksDropdown(props: { children: React.ReactNode }) { + const { t } = useTranslation(); + const [open, setOpen] = useState(false); + const deviceName = useAuthStore((s) => s.account?.deviceName); + const seed = useAuthStore((s) => s.account?.seed); + const bufferSeed = useMemo( + () => (seed ? base64ToBuffer(seed) : null), + [seed] + ); + const { logout } = useAuth(); + + useEffect(() => { + function onWindowClick(evt: MouseEvent) { + if ((evt.target as HTMLElement).closest(".is-dropdown")) return; + setOpen(false); + } + + window.addEventListener("click", onWindowClick); + return () => window.removeEventListener("click", onWindowClick); + }, []); + + const toggleOpen = useCallback(() => { + setOpen((s) => !s); + }, []); + + return ( +
+
evt.key === "Enter" && toggleOpen()} + > + {props.children} + +
+ +
+ {deviceName && bufferSeed ? ( + + + {decryptData(deviceName, bufferSeed)} + + ) : ( + + {t("navigation.menu.register")} + + )} + + + {t("navigation.menu.settings")} + + + {t("navigation.menu.about")} + + + {t("navigation.menu.donation")} + + {deviceName ? ( + + {t("navigation.menu.logout")} + + ) : null} + +
+ + + +
+
+
+
+ ); +} diff --git a/src/components/Overlay.tsx b/src/components/Overlay.tsx deleted file mode 100644 index 2129f68d..00000000 --- a/src/components/Overlay.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { Helmet } from "react-helmet"; - -import { Transition } from "@/components/Transition"; - -export function Overlay(props: { children: React.ReactNode }) { - return ( - <> - - - -
- - {props.children} -
- - ); -} diff --git a/src/components/SearchBar.tsx b/src/components/SearchBar.tsx deleted file mode 100644 index 431de337..00000000 --- a/src/components/SearchBar.tsx +++ /dev/null @@ -1,81 +0,0 @@ -import { useState } from "react"; -import { useTranslation } from "react-i18next"; - -import { MWMediaType, MWQuery } from "@/backend/metadata/types/mw"; - -import { DropdownButton } from "./buttons/DropdownButton"; -import { Icon, Icons } from "./Icon"; -import { TextInputControl } from "./text-inputs/TextInputControl"; - -export interface SearchBarProps { - buttonText?: string; - placeholder?: string; - onChange: (value: MWQuery, force: boolean) => void; - onUnFocus: () => void; - value: MWQuery; -} - -export function SearchBarInput(props: SearchBarProps) { - const { t } = useTranslation(); - - const [dropdownOpen, setDropdownOpen] = useState(false); - function setSearch(value: string) { - props.onChange( - { - ...props.value, - searchQuery: value, - }, - false - ); - } - function setType(type: string) { - props.onChange( - { - ...props.value, - type: type as MWMediaType, - }, - true - ); - } - - return ( -
-
- -
- - setSearch(val)} - value={props.value.searchQuery} - className="w-full flex-1 bg-transparent px-4 py-4 pl-12 text-white placeholder-denim-700 focus:outline-none sm:py-4 sm:pr-2" - placeholder={props.placeholder} - /> - -
- setDropdownOpen(val)} - selectedItem={props.value.type} - setSelectedItem={(val) => setType(val)} - options={[ - { - id: MWMediaType.MOVIE, - name: t("searchBar.movie"), - icon: Icons.FILM, - }, - { - id: MWMediaType.SERIES, - name: t("searchBar.series"), - icon: Icons.CLAPPER_BOARD, - }, - ]} - onClick={() => setDropdownOpen((old) => !old)} - > - {props.buttonText || t("searchBar.search")} - -
-
- ); -} diff --git a/src/components/Slider.tsx b/src/components/Slider.tsx deleted file mode 100644 index 39b63e6e..00000000 --- a/src/components/Slider.tsx +++ /dev/null @@ -1,47 +0,0 @@ -import { ChangeEventHandler, useEffect, useRef } from "react"; - -export type SliderProps = { - label?: string; - min: number; - max: number; - step: number; - value?: number; - valueDisplay?: string; - onChange: ChangeEventHandler; -}; - -export function Slider(props: SliderProps) { - const ref = useRef(null); - useEffect(() => { - const e = ref.current as HTMLInputElement; - e.style.setProperty("--value", e.value); - e.style.setProperty("--min", e.min === "" ? "0" : e.min); - e.style.setProperty("--max", e.max === "" ? "100" : e.max); - e.addEventListener("input", () => e.style.setProperty("--value", e.value)); - }, [ref]); - - return ( -
-
- {props.label ? ( - - ) : null} - -
-
-
- {props.valueDisplay ?? props.value} -
-
-
- ); -} diff --git a/src/components/UserIcon.tsx b/src/components/UserIcon.tsx new file mode 100644 index 00000000..a3d30421 --- /dev/null +++ b/src/components/UserIcon.tsx @@ -0,0 +1,35 @@ +import { memo } from "react"; + +import { Icon, Icons } from "@/components/Icon"; + +export enum UserIcons { + USER_GROUP = "userGroup", + COUCH = "couch", + MOBILE = "mobile", + TICKET = "ticket", + HANDCUFFS = "handcuffs", +} + +export interface UserIconProps { + icon: UserIcons; + className?: string; +} + +const iconList: Record = { + userGroup: ``, + couch: ``, + mobile: ``, + ticket: ``, + handcuffs: ``, +}; + +export const UserIcon = memo((props: UserIconProps) => { + const icon = iconList[props.icon]; + if (!icon) return ; + return ( + + ); +}); diff --git a/src/components/buttons/Button.tsx b/src/components/buttons/Button.tsx new file mode 100644 index 00000000..0490189f --- /dev/null +++ b/src/components/buttons/Button.tsx @@ -0,0 +1,131 @@ +import classNames from "classnames"; +import { ReactNode, useCallback } from "react"; +import { useHistory } from "react-router-dom"; + +import { Icon, Icons } from "@/components/Icon"; +import { Spinner } from "@/components/layout/Spinner"; + +interface Props { + icon?: Icons; + onClick?: () => void; + children?: ReactNode; + theme?: "white" | "purple" | "secondary" | "danger"; + padding?: string; + className?: string; + href?: string; + disabled?: boolean; + download?: string; + loading?: boolean; +} + +export function Button(props: Props) { + const history = useHistory(); + const { onClick, href, loading } = props; + const cb = useCallback(() => { + if (loading) return; + if (href) history.push(href); + else onClick?.(); + }, [onClick, href, history, loading]); + + let colorClasses = "bg-white hover:bg-gray-200 text-black"; + if (props.theme === "purple") + colorClasses = "bg-buttons-purple hover:bg-buttons-purpleHover text-white"; + if (props.theme === "secondary") + colorClasses = + "bg-buttons-cancel hover:bg-buttons-cancelHover transition-colors duration-100 text-white"; + if (props.theme === "danger") + colorClasses = "bg-buttons-danger hover:bg-buttons-dangerHover text-white"; + + let classes = classNames( + "tabbable cursor-pointer inline-flex items-center justify-center rounded-lg font-medium transition-[transform,background-color] duration-100 active:scale-105 md:px-8", + props.padding ?? "px-4 py-3", + props.className, + colorClasses, + props.disabled ? "cursor-not-allowed bg-opacity-60 text-opacity-60" : null + ); + + if (props.disabled) + classes = classes + .split(" ") + .filter( + (className) => + !className.startsWith("hover:") && !className.startsWith("active:") + ) + .join(" "); + + const content = ( + <> + {props.icon && !props.loading ? ( + + + + ) : null} + {props.loading ? ( + + + + ) : null} + {props.children} + + ); + + if ( + props.href && + (props.href.startsWith("https://") || props.href?.startsWith("data:")) + ) + return ( + + {content} + + ); + + if (props.href) + return ( + + {content} + + ); + + return ( + + ); +} + +// Sometimes you can't use normal button, due to not having access to a useHistory context +// When that happens, use this! +interface ButtonPlainProps { + onClick?: () => void; + children?: ReactNode; + theme?: "white" | "purple" | "secondary"; + className?: string; +} + +export function ButtonPlain(props: ButtonPlainProps) { + let colorClasses = "bg-white hover:bg-gray-200 text-black"; + if (props.theme === "purple") + colorClasses = "bg-buttons-purple hover:bg-buttons-purpleHover text-white"; + if (props.theme === "secondary") + colorClasses = + "bg-buttons-cancel hover:bg-buttons-cancelHover transition-colors duration-100 text-white"; + + const classes = classNames( + "cursor-pointer inline-flex items-center justify-center rounded-lg font-medium transition-[transform,background-color] duration-100 active:scale-105 md:px-8", + "px-4 py-3", + props.className, + colorClasses + ); + + return ( + + ); +} diff --git a/src/components/buttons/ButtonControl.tsx b/src/components/buttons/ButtonControl.tsx deleted file mode 100644 index 41e67f4c..00000000 --- a/src/components/buttons/ButtonControl.tsx +++ /dev/null @@ -1,17 +0,0 @@ -export interface ButtonControlProps { - onClick?: () => void; - children?: React.ReactNode; - className?: string; -} - -export function ButtonControl({ - onClick, - children, - className, -}: ButtonControlProps) { - return ( - - ); -} diff --git a/src/components/buttons/DropdownButton.tsx b/src/components/buttons/DropdownButton.tsx deleted file mode 100644 index 8e252231..00000000 --- a/src/components/buttons/DropdownButton.tsx +++ /dev/null @@ -1,136 +0,0 @@ -import React, { - MouseEventHandler, - SyntheticEvent, - useEffect, - useState, -} from "react"; - -import { Icon, Icons } from "@/components/Icon"; -import { BackdropContainer, useBackdrop } from "@/components/layout/Backdrop"; - -import { ButtonControl, ButtonControlProps } from "./ButtonControl"; - -export interface OptionItem { - id: string; - name: string; - icon: Icons; -} - -interface DropdownButtonProps extends ButtonControlProps { - icon: Icons; - open: boolean; - setOpen: (open: boolean) => void; - selectedItem: string; - setSelectedItem: (value: string) => void; - options: Array; -} - -export interface OptionProps { - option: OptionItem; - onClick: MouseEventHandler; - tabIndex?: number; -} - -function Option({ option, onClick, tabIndex }: OptionProps) { - return ( -
- - - -
- ); -} - -export const DropdownButton = React.forwardRef< - HTMLDivElement, - DropdownButtonProps ->((props: DropdownButtonProps, ref) => { - const [setBackdrop, backdropProps, highlightedProps] = useBackdrop(); - const [delayedSelectedId, setDelayedSelectedId] = useState( - props.selectedItem - ); - - useEffect(() => { - let id: ReturnType; - - if (props.open) { - setDelayedSelectedId(props.selectedItem); - } else { - id = setTimeout(() => { - setDelayedSelectedId(props.selectedItem); - }, 200); - } - return () => { - if (id) clearTimeout(id); - }; - /* eslint-disable-next-line */ - }, [props.open]); - - const selectedItem: OptionItem = props.options.find( - (opt) => opt.id === props.selectedItem - ) || { id: "movie", name: "movie", icon: Icons.ARROW_LEFT }; - - useEffect(() => { - setBackdrop(props.open); - /* eslint-disable-next-line */ - }, [props.open]); - - const onOptionClick = (e: SyntheticEvent, option: OptionItem) => { - e.stopPropagation(); - props.setSelectedItem(option.id); - props.setOpen(false); - }; - - return ( -
-
- props.setOpen(false)} - {...backdropProps} - > - - - {selectedItem.name} - - -
- {props.options - .filter((opt) => opt.id !== delayedSelectedId) - .map((opt) => ( -
-
-
-
- ); -}); diff --git a/src/components/buttons/EditButton.tsx b/src/components/buttons/EditButton.tsx index 4571af10..793fb7c3 100644 --- a/src/components/buttons/EditButton.tsx +++ b/src/components/buttons/EditButton.tsx @@ -4,8 +4,6 @@ import { useTranslation } from "react-i18next"; import { Icon, Icons } from "@/components/Icon"; -import { ButtonControl } from "./ButtonControl"; - export interface EditButtonProps { editing: boolean; onEdit?: (editing: boolean) => void; @@ -20,19 +18,20 @@ export function EditButton(props: EditButtonProps) { }, [props]); return ( - {props.editing ? ( - {t("media.stopEditing")} + {t("home.mediaList.stopEditing")} ) : ( )} - + ); } diff --git a/src/components/buttons/IconButton.tsx b/src/components/buttons/IconButton.tsx deleted file mode 100644 index 0a33a878..00000000 --- a/src/components/buttons/IconButton.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import { Icon, Icons } from "@/components/Icon"; - -import { ButtonControl, ButtonControlProps } from "./ButtonControl"; - -export interface IconButtonProps extends ButtonControlProps { - icon: Icons; -} - -export function IconButton(props: IconButtonProps) { - return ( - - - {props.children} - - ); -} diff --git a/src/components/buttons/IconPatch.tsx b/src/components/buttons/IconPatch.tsx index d51f20b1..302d14b2 100644 --- a/src/components/buttons/IconPatch.tsx +++ b/src/components/buttons/IconPatch.tsx @@ -7,23 +7,25 @@ export interface IconPatchProps { className?: string; icon: Icons; transparent?: boolean; + downsized?: boolean; } export function IconPatch(props: IconPatchProps) { const clickableClasses = props.clickable - ? "cursor-pointer hover:scale-110 hover:bg-denim-600 hover:text-white active:scale-125" + ? "cursor-pointer hover:scale-110 hover:bg-pill-backgroundHover hover:text-white active:scale-125" : ""; const transparentClasses = props.transparent ? "bg-opacity-0 hover:bg-opacity-50" : ""; const activeClasses = props.active - ? "border-bink-600 bg-bink-100 text-bink-600" + ? "bg-pill-backgroundHover text-white" : ""; + const sizeClasses = props.downsized ? "h-10 w-10" : "h-12 w-12"; return (
diff --git a/src/components/buttons/Toggle.tsx b/src/components/buttons/Toggle.tsx new file mode 100644 index 00000000..cdca03d6 --- /dev/null +++ b/src/components/buttons/Toggle.tsx @@ -0,0 +1,23 @@ +import classNames from "classnames"; + +export function Toggle(props: { onClick: () => void; enabled?: boolean }) { + return ( + + ); +} diff --git a/src/components/form/ColorPicker.tsx b/src/components/form/ColorPicker.tsx new file mode 100644 index 00000000..6143e992 --- /dev/null +++ b/src/components/form/ColorPicker.tsx @@ -0,0 +1,40 @@ +import classNames from "classnames"; + +import { Icon, Icons } from "../Icon"; + +const colors = ["#0A54FF", "#CF2E68", "#F9DD7F", "#7652DD", "#2ECFA8"]; +export const initialColor = colors[0]; + +export function ColorPicker(props: { + label: string; + value: string; + onInput: (v: string) => void; +}) { + return ( +
+ {props.label ? ( +

{props.label}

+ ) : null} + +
+ {colors.map((color) => { + return ( + + ); + })} +
+
+ ); +} diff --git a/src/components/Dropdown.tsx b/src/components/form/Dropdown.tsx similarity index 54% rename from src/components/Dropdown.tsx rename to src/components/form/Dropdown.tsx index aff10ea4..febe923f 100644 --- a/src/components/Dropdown.tsx +++ b/src/components/form/Dropdown.tsx @@ -6,6 +6,7 @@ import { Icon, Icons } from "@/components/Icon"; export interface OptionItem { id: string; name: string; + leftIcon?: React.ReactNode; } interface DropdownProps { @@ -18,16 +19,19 @@ export function Dropdown(props: DropdownProps) { return (
- {({ open }) => ( + {() => ( <> - - {props.selectedItem.name} + + + {props.selectedItem.leftIcon + ? props.selectedItem.leftIcon + : null} + {props.selectedItem.name} + @@ -37,17 +41,20 @@ export function Dropdown(props: DropdownProps) { leaveFrom="opacity-100" leaveTo="opacity-0" > - + {props.options.map((opt) => ( - `relative cursor-default select-none py-2 pl-10 pr-4 ${ - active ? "bg-denim-400 text-bink-700" : "text-white" + `cursor-pointer flex gap-4 items-center relative select-none py-3 pl-4 pr-4 ${ + active + ? "bg-background-secondaryHover text-type-link" + : "text-white" }` } key={opt.id} value={opt} > + {opt.leftIcon ? opt.leftIcon : null} {opt.name} ))} diff --git a/src/components/form/IconPicker.tsx b/src/components/form/IconPicker.tsx new file mode 100644 index 00000000..5e218cb6 --- /dev/null +++ b/src/components/form/IconPicker.tsx @@ -0,0 +1,47 @@ +import classNames from "classnames"; + +import { UserIcon, UserIcons } from "../UserIcon"; + +const icons = [ + UserIcons.USER_GROUP, + UserIcons.COUCH, + UserIcons.MOBILE, + UserIcons.TICKET, + UserIcons.HANDCUFFS, +]; +export const initialIcon = icons[0]; + +export function IconPicker(props: { + label: string; + value: UserIcons; + onInput: (v: UserIcons) => void; +}) { + return ( +
+ {props.label ? ( +

{props.label}

+ ) : null} + +
+ {icons.map((icon) => { + return ( + + ); + })} +
+
+ ); +} diff --git a/src/components/form/PassphraseDisplay.tsx b/src/components/form/PassphraseDisplay.tsx new file mode 100644 index 00000000..b6ea0a0f --- /dev/null +++ b/src/components/form/PassphraseDisplay.tsx @@ -0,0 +1,55 @@ +import { useRef, useState } from "react"; +import { useTranslation } from "react-i18next"; +import { useCopyToClipboard, useMountedState } from "react-use"; + +import { Icon, Icons } from "../Icon"; + +export function PassphraseDisplay(props: { mnemonic: string }) { + const { t } = useTranslation(); + const individualWords = props.mnemonic.split(" "); + + const [, copy] = useCopyToClipboard(); + + const [hasCopied, setHasCopied] = useState(false); + const isMounted = useMountedState(); + + const timeout = useRef>(); + + function copyMnemonic() { + copy(props.mnemonic); + setHasCopied(true); + if (timeout.current) clearTimeout(timeout.current); + timeout.current = setTimeout(() => isMounted() && setHasCopied(false), 500); + } + + return ( +
+
+

Passphrase

+ +
+
+ {individualWords.map((word, i) => ( +
+ {word} +
+ ))} +
+
+ ); +} diff --git a/src/components/form/SearchBar.tsx b/src/components/form/SearchBar.tsx new file mode 100644 index 00000000..717f964d --- /dev/null +++ b/src/components/form/SearchBar.tsx @@ -0,0 +1,64 @@ +import c from "classnames"; +import { forwardRef, useState } from "react"; + +import { Flare } from "@/components/utils/Flare"; + +import { Icon, Icons } from "../Icon"; +import { TextInputControl } from "../text-inputs/TextInputControl"; + +export interface SearchBarProps { + placeholder?: string; + onChange: (value: string, force: boolean) => void; + onUnFocus: () => void; + value: string; +} + +export const SearchBarInput = forwardRef( + (props, ref) => { + const [focused, setFocused] = useState(false); + + function setSearch(value: string) { + props.onChange(value, false); + } + + return ( + + + +
+ +
+ + { + setFocused(false); + props.onUnFocus(); + }} + onFocus={() => setFocused(true)} + onChange={(val) => setSearch(val)} + value={props.value} + className="w-full flex-1 bg-transparent px-4 py-4 pl-12 text-search-text placeholder-search-placeholder focus:outline-none sm:py-4 sm:pr-2" + placeholder={props.placeholder} + /> +
+
+ ); + } +); diff --git a/src/components/layout/Backdrop.tsx b/src/components/layout/Backdrop.tsx deleted file mode 100644 index 0286880e..00000000 --- a/src/components/layout/Backdrop.tsx +++ /dev/null @@ -1,114 +0,0 @@ -import React, { createRef, useEffect, useState } from "react"; -import { createPortal } from "react-dom"; - -import { useFade } from "@/hooks/useFade"; - -interface BackdropProps { - onClick?: (e: MouseEvent) => void; - onBackdropHide?: () => void; - active?: boolean; -} - -export function useBackdrop(): [ - (state: boolean) => void, - BackdropProps, - { style: any } -] { - const [backdrop, setBackdropState] = useState(false); - const [isHighlighted, setisHighlighted] = useState(false); - - const setBackdrop = (state: boolean) => { - setBackdropState(state); - if (state) setisHighlighted(true); - }; - - const backdropProps: BackdropProps = { - active: backdrop, - onBackdropHide() { - setisHighlighted(false); - }, - }; - - const highlightedProps = { - style: isHighlighted - ? { - zIndex: "1000", - position: "relative", - } - : {}, - }; - - return [setBackdrop, backdropProps, highlightedProps]; -} - -function Backdrop(props: BackdropProps) { - const clickEvent = props.onClick || (() => {}); - const animationEvent = props.onBackdropHide || (() => {}); - const [isVisible, setVisible, fadeProps] = useFade(); - - useEffect(() => { - setVisible(!!props.active); - /* eslint-disable-next-line */ - }, [props.active, setVisible]); - - useEffect(() => { - if (!isVisible) animationEvent(); - /* eslint-disable-next-line */ - }, [isVisible]); - - if (!isVisible) return null; - - return ( -
clickEvent(e.nativeEvent)} - /> - ); -} - -export function BackdropContainer( - props: { - children: React.ReactNode; - } & BackdropProps -) { - const root = createRef(); - const copy = createRef(); - - useEffect(() => { - let frame = -1; - function poll() { - if (root.current && copy.current) { - const rect = root.current.getBoundingClientRect(); - copy.current.style.top = `${rect.top}px`; - copy.current.style.left = `${rect.left}px`; - copy.current.style.width = `${rect.width}px`; - copy.current.style.height = `${rect.height}px`; - } - frame = window.requestAnimationFrame(poll); - } - poll(); - return () => { - window.cancelAnimationFrame(frame); - }; - // we dont want this to run only on mount, dont care about ref updates - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [root, copy]); - - return ( -
- {createPortal( -
- -
- {props.children} -
-
, - document.body - )} -
{props.children}
-
- ); -} diff --git a/src/components/layout/Box.tsx b/src/components/layout/Box.tsx new file mode 100644 index 00000000..d1e30026 --- /dev/null +++ b/src/components/layout/Box.tsx @@ -0,0 +1,9 @@ +import { ReactNode } from "react"; + +export function Box(props: { children?: ReactNode }) { + return ( +
+ {props.children} +
+ ); +} diff --git a/src/components/layout/BrandPill.tsx b/src/components/layout/BrandPill.tsx index 3c7e1fea..27a10ecc 100644 --- a/src/components/layout/BrandPill.tsx +++ b/src/components/layout/BrandPill.tsx @@ -1,3 +1,4 @@ +import classNames from "classnames"; import { useTranslation } from "react-i18next"; import { Icon, Icons } from "@/components/Icon"; @@ -5,16 +6,19 @@ import { Icon, Icons } from "@/components/Icon"; export function BrandPill(props: { clickable?: boolean; hideTextOnMobile?: boolean; + backgroundClass?: string; }) { const { t } = useTranslation(); return (
-

- {props.error.name} - {props.error.description} -

-

{props.error.path}

-
- ); -} - -interface ErrorMessageProps { - error?: { - name: string; - description: string; - path: string; - }; - localSize?: boolean; - children?: React.ReactNode; -} - -export function ErrorMessage(props: ErrorMessageProps) { - const { t } = useTranslation(); - - return ( -
-
- - {t("media.errors.genericTitle")} - {props.children ? ( -

{props.children}

- ) : ( -

- - - - -

- )} -
- {props.error ? : null} -
- ); -} - -interface ErrorBoundaryState { - hasError: boolean; - error?: { - name: string; - description: string; - path: string; - }; -} - -export class ErrorBoundary extends Component< - Record, - ErrorBoundaryState -> { - constructor(props: { children: any }) { - super(props); - this.state = { - hasError: false, - }; - } - - static getDerivedStateFromError() { - return { - hasError: true, - }; - } - - componentDidCatch(error: any, errorInfo: any) { - console.error("Render error caught", error, errorInfo); - if (error instanceof Error) { - const realError: Error = error as Error; - this.setState((s) => ({ - ...s, - hasError: true, - error: { - name: realError.name, - description: realError.message, - path: errorInfo.componentStack.split("\n")[1], - }, - })); - } - } - - render() { - if (!this.state.hasError) return this.props.children as any; - - return ; - } -} diff --git a/src/components/layout/Footer.tsx b/src/components/layout/Footer.tsx new file mode 100644 index 00000000..e51c08cf --- /dev/null +++ b/src/components/layout/Footer.tsx @@ -0,0 +1,109 @@ +import { useCallback } from "react"; +import { useTranslation } from "react-i18next"; +import { useHistory } from "react-router-dom"; +import type { RequireExactlyOne } from "type-fest"; + +import { Icon, Icons } from "@/components/Icon"; +import { BrandPill } from "@/components/layout/BrandPill"; +import { WideContainer } from "@/components/layout/WideContainer"; +import { shouldHaveDmcaPage } from "@/pages/Dmca"; +import { conf } from "@/setup/config"; + +// to and href are mutually exclusive +type FooterLinkProps = RequireExactlyOne< + { + children: React.ReactNode; + icon: Icons; + to: string; + href: string; + }, + "to" | "href" +>; + +function FooterLink(props: FooterLinkProps) { + const history = useHistory(); + + const navigateTo = useCallback(() => { + if (!props.to) return; + + history.push(props.to); + }, [history, props.to]); + + return ( + + + {props.children} + + ); +} + +function Dmca() { + const { t } = useTranslation(); + + if (!shouldHaveDmcaPage()) return null; + + return ( + + {t("footer.links.dmca")} + + ); +} + +export function Footer() { + const { t } = useTranslation(); + + return ( +
+ +
+
+ +
+

{t("footer.tagline")}

+
+
+

+ {t("footer.legal.disclaimer")} +

+

{t("footer.legal.disclaimerText")}

+
+
+ + {t("footer.links.github")} + + + {t("footer.links.discord")} + +
+ +
+
+
+ +
+
+
+ ); +} + +export function FooterView(props: { + children: React.ReactNode; + className?: string; +}) { + return ( +
+
{props.children}
+
+
+ ); +} diff --git a/src/components/layout/IconPill.tsx b/src/components/layout/IconPill.tsx new file mode 100644 index 00000000..6530e773 --- /dev/null +++ b/src/components/layout/IconPill.tsx @@ -0,0 +1,13 @@ +import { Icon, Icons } from "@/components/Icon"; + +export function IconPill(props: { icon: Icons; children?: React.ReactNode }) { + return ( +
+ + {props.children} +
+ ); +} diff --git a/src/components/layout/LargeCard.tsx b/src/components/layout/LargeCard.tsx new file mode 100644 index 00000000..dbc010af --- /dev/null +++ b/src/components/layout/LargeCard.tsx @@ -0,0 +1,58 @@ +import classNames from "classnames"; + +export function LargeCard(props: { + children: React.ReactNode; + top?: React.ReactNode; +}) { + return ( +
+ {props.top ? ( +
+ {props.top} +
+ ) : null} +
+ {props.children} +
+
+ ); +} + +export function LargeCardText(props: { + title: string; + children?: React.ReactNode; + icon?: React.ReactNode; +}) { + return ( +
+
+ {props.icon ? ( +
{props.icon}
+ ) : null} +

{props.title}

+ {props.children ? ( +
{props.children}
+ ) : null} +
+
+ ); +} + +export function LargeCardButtons(props: { + children: React.ReactNode; + splitAlign?: boolean; +}) { + return ( +
+
+ {props.children} +
+
+ ); +} diff --git a/src/components/layout/Loading.tsx b/src/components/layout/Loading.tsx index cff6a503..4c4c62bd 100644 --- a/src/components/layout/Loading.tsx +++ b/src/components/layout/Loading.tsx @@ -8,10 +8,10 @@ export function Loading(props: LoadingProps) {
-
-
-
-
+
+
+
+
{props.text && props.text.length ? (

{props.text}

diff --git a/src/components/layout/Modal.tsx b/src/components/layout/Modal.tsx deleted file mode 100644 index 11ed75b7..00000000 --- a/src/components/layout/Modal.tsx +++ /dev/null @@ -1,50 +0,0 @@ -import { ReactNode } from "react"; -import { createPortal } from "react-dom"; - -import { Overlay } from "@/components/Overlay"; -import { Transition } from "@/components/Transition"; - -interface Props { - show: boolean; - children?: ReactNode; -} - -export function ModalFrame(props: Props) { - return ( - - - - {props.children} - - - - ); -} - -export function Modal(props: Props) { - return createPortal( - {props.children}, - document.body - ); -} - -export function ModalCard(props: { className?: string; children?: ReactNode }) { - return ( -
- {props.children} -
- ); -} diff --git a/src/components/layout/Navigation.tsx b/src/components/layout/Navigation.tsx index a9a3e0c1..d7cec107 100644 --- a/src/components/layout/Navigation.tsx +++ b/src/components/layout/Navigation.tsx @@ -1,77 +1,113 @@ -import { ReactNode, useState } from "react"; +import classNames from "classnames"; import { Link } from "react-router-dom"; +import { NoUserAvatar, UserAvatar } from "@/components/Avatar"; import { IconPatch } from "@/components/buttons/IconPatch"; import { Icons } from "@/components/Icon"; -import { useBannerSize } from "@/hooks/useBanner"; +import { LinksDropdown } from "@/components/LinksDropdown"; +import { Lightbar } from "@/components/utils/Lightbar"; +import { useAuth } from "@/hooks/auth/useAuth"; +import { BlurEllipsis } from "@/pages/layouts/SubPageLayout"; import { conf } from "@/setup/config"; -import SettingsModal from "@/views/SettingsModal"; +import { useBannerSize } from "@/stores/banner"; import { BrandPill } from "./BrandPill"; export interface NavigationProps { - children?: ReactNode; bg?: boolean; + noLightbar?: boolean; + doBackground?: boolean; } export function Navigation(props: NavigationProps) { const bannerHeight = useBannerSize(); - const [showModal, setShowModal] = useState(false); + const { loggedIn } = useAuth(); + return ( -
-
+ <> + {/* lightbar */} + {!props.noLightbar ? (
-
-
-
-
- - - +
+
- {props.children}
+ ) : null} + + {/* backgrounds - these are seperate because of z-index issues */} +
- { - setShowModal(true); - }} - /> - + +
+ ) : null} + - setShowModal(false)} /> -
+ + {/* content */} +
+
+
+
+ + + + + + + + + +
+
+ + {loggedIn ? : } + +
+
+
+
+ ); } diff --git a/src/components/layout/Paper.tsx b/src/components/layout/Paper.tsx deleted file mode 100644 index a87895ae..00000000 --- a/src/components/layout/Paper.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import { ReactNode } from "react"; - -export interface PaperProps { - children?: ReactNode; - className?: string; -} - -export function Paper(props: PaperProps) { - return ( -
- {props.children} -
- ); -} diff --git a/src/components/layout/ProgressRing.tsx b/src/components/layout/ProgressRing.tsx index 6e3f93ac..d0e680a9 100644 --- a/src/components/layout/ProgressRing.tsx +++ b/src/components/layout/ProgressRing.tsx @@ -14,7 +14,7 @@ export function ProgressRing(props: Props) { viewBox="0 0 100 100" >
-

+

{props.icon ? ( diff --git a/src/components/layout/SettingsCard.tsx b/src/components/layout/SettingsCard.tsx new file mode 100644 index 00000000..a8d78eca --- /dev/null +++ b/src/components/layout/SettingsCard.tsx @@ -0,0 +1,37 @@ +import classNames from "classnames"; + +export function SettingsCard(props: { + children: React.ReactNode; + className?: string; + paddingClass?: string; +}) { + return ( +

+ {props.children} +
+ ); +} + +export function SolidSettingsCard(props: { + children: React.ReactNode; + className?: string; + paddingClass?: string; +}) { + return ( +
+ {props.children} +
+ ); +} diff --git a/src/components/layout/Sidebar.tsx b/src/components/layout/Sidebar.tsx new file mode 100644 index 00000000..2386af49 --- /dev/null +++ b/src/components/layout/Sidebar.tsx @@ -0,0 +1,47 @@ +import classNames from "classnames"; + +import { Icon, Icons } from "@/components/Icon"; + +export function SidebarSection(props: { + title: string; + children: React.ReactNode; + className?: string; +}) { + return ( +
+

+ {props.title} +

+ {props.children} +
+ ); +} + +export function SidebarLink(props: { + children: React.ReactNode; + icon: Icons; + active?: boolean; + onClick?: () => void; +}) { + return ( + + ); +} diff --git a/src/components/layout/Spinner.css b/src/components/layout/Spinner.css index 51721285..aa7cc1bc 100644 --- a/src/components/layout/Spinner.css +++ b/src/components/layout/Spinner.css @@ -1,5 +1,4 @@ .spinner { - font-size: 48px; width: 1em; height: 1em; border: 0.12em solid var(--color,white); diff --git a/src/components/layout/ThinContainer.tsx b/src/components/layout/ThinContainer.tsx index e1672f63..f7f90acb 100644 --- a/src/components/layout/ThinContainer.tsx +++ b/src/components/layout/ThinContainer.tsx @@ -8,7 +8,7 @@ interface ThinContainerProps { export function ThinContainer(props: ThinContainerProps) { return (
diff --git a/src/components/layout/WideContainer.tsx b/src/components/layout/WideContainer.tsx index f7d745fe..bcccd5e5 100644 --- a/src/components/layout/WideContainer.tsx +++ b/src/components/layout/WideContainer.tsx @@ -3,14 +3,15 @@ import { ReactNode } from "react"; interface WideContainerProps { classNames?: string; children?: ReactNode; + ultraWide?: boolean; } export function WideContainer(props: WideContainerProps) { return (
{props.children}
diff --git a/src/components/media/EpisodeButton.tsx b/src/components/media/EpisodeButton.tsx deleted file mode 100644 index 76e38c85..00000000 --- a/src/components/media/EpisodeButton.tsx +++ /dev/null @@ -1,25 +0,0 @@ -export interface EpisodeProps { - progress?: number; - episodeNumber: number; - onClick?: () => void; - active?: boolean; -} - -export function Episode(props: EpisodeProps) { - return ( -
-
- {props.episodeNumber} -
- ); -} diff --git a/src/components/media/MediaCard.tsx b/src/components/media/MediaCard.tsx index 9e127e35..32708285 100644 --- a/src/components/media/MediaCard.tsx +++ b/src/components/media/MediaCard.tsx @@ -1,15 +1,17 @@ +import classNames from "classnames"; import { useTranslation } from "react-i18next"; import { Link } from "react-router-dom"; -import { TMDBMediaToId } from "@/backend/metadata/getmeta"; -import { MWMediaMeta } from "@/backend/metadata/types/mw"; +import { mediaItemToId } from "@/backend/metadata/tmdb"; import { DotList } from "@/components/text/DotList"; +import { Flare } from "@/components/utils/Flare"; +import { MediaItem } from "@/utils/mediaTypes"; import { IconPatch } from "../buttons/IconPatch"; import { Icons } from "../Icon"; export interface MediaCardProps { - media: MWMediaMeta; + media: MediaItem; linkable?: boolean; series?: { episode: number; @@ -35,25 +37,37 @@ function MediaCardContent({ const canLink = linkable && !closable; - const dotListContent = [t(`media.${media.type}`)]; - if (media.year) dotListContent.push(media.year); + const dotListContent = [t(`media.types.${media.type}`)]; + if (media.year) dotListContent.push(media.year.toFixed()); return ( -
e.key === "Enter" && e.currentTarget.click()} > -
+

- {t("seasons.seasonAndEpisode", { + {t("media.episodeDisplay", { season: series.season || 1, episode: series.episode, })} @@ -82,19 +95,19 @@ function MediaCardContent({ {percentage !== undefined ? ( <>

-
+
closable && onClose?.()} icon={Icons.X} /> @@ -121,8 +134,8 @@ function MediaCardContent({ {media.title} -
-
+ + ); } @@ -132,7 +145,7 @@ export function MediaCard(props: MediaCardProps) { const canLink = props.linkable && !props.closable; let link = canLink - ? `/media/${encodeURIComponent(TMDBMediaToId(props.media))}` + ? `/media/${encodeURIComponent(mediaItemToId(props.media))}` : "#"; if (canLink && props.series) { if (props.series.season === 0 && !props.series.episodeId) { @@ -146,7 +159,14 @@ export function MediaCard(props: MediaCardProps) { if (!props.linkable) return {content}; return ( - + {content} ); diff --git a/src/components/media/MediaGrid.tsx b/src/components/media/MediaGrid.tsx index a9f75b22..17bd4c7a 100644 --- a/src/components/media/MediaGrid.tsx +++ b/src/components/media/MediaGrid.tsx @@ -7,7 +7,10 @@ interface MediaGridProps { export const MediaGrid = forwardRef( (props, ref) => { return ( -
+
{props.children}
); diff --git a/src/components/media/WatchedMediaCard.tsx b/src/components/media/WatchedMediaCard.tsx index ade1612a..b9a28e39 100644 --- a/src/components/media/WatchedMediaCard.tsx +++ b/src/components/media/WatchedMediaCard.tsx @@ -1,44 +1,49 @@ import { useMemo } from "react"; -import { MWMediaMeta } from "@/backend/metadata/types/mw"; -import { useWatchedContext } from "@/state/watched"; +import { useProgressStore } from "@/stores/progress"; +import { + ShowProgressResult, + shouldShowProgress, +} from "@/stores/progress/utils"; +import { MediaItem } from "@/utils/mediaTypes"; import { MediaCard } from "./MediaCard"; +function formatSeries(series?: ShowProgressResult | null) { + if (!series || !series.episode || !series.season) return undefined; + return { + episode: series.episode?.number, + season: series.season?.number, + episodeId: series.episode?.id, + seasonId: series.season?.id, + }; +} + export interface WatchedMediaCardProps { - media: MWMediaMeta; + media: MediaItem; closable?: boolean; onClose?: () => void; } -function formatSeries( - obj: - | { episodeId: string; seasonId: string; episode: number; season: number } - | undefined -) { - if (!obj) return undefined; - return { - season: obj.season, - episode: obj.episode, - episodeId: obj.episodeId, - seasonId: obj.seasonId, - }; -} - export function WatchedMediaCard(props: WatchedMediaCardProps) { - const { watched } = useWatchedContext(); - const watchedMedia = useMemo(() => { - return watched.items - .sort((a, b) => b.watchedAt - a.watchedAt) - .find((v) => v.item.meta.id === props.media.id); - }, [watched, props.media]); + const progressItems = useProgressStore((s) => s.items); + const item = useMemo(() => { + return progressItems[props.media.id]; + }, [progressItems, props.media]); + const itemToDisplay = useMemo( + () => (item ? shouldShowProgress(item) : null), + [item] + ); + const percentage = itemToDisplay?.show + ? (itemToDisplay.progress.watched / itemToDisplay.progress.duration) * 100 + : undefined; return ( diff --git a/src/components/overlays/Modal.tsx b/src/components/overlays/Modal.tsx new file mode 100644 index 00000000..d1534b42 --- /dev/null +++ b/src/components/overlays/Modal.tsx @@ -0,0 +1,42 @@ +import { ReactNode, useCallback } from "react"; +import { Helmet } from "react-helmet-async"; + +import { OverlayPortal } from "@/components/overlays/OverlayDisplay"; +import { useQueryParam } from "@/hooks/useQueryParams"; + +export function useModal(id: string) { + const [currentModal, setCurrentModal] = useQueryParam("m"); + const show = useCallback(() => setCurrentModal(id), [id, setCurrentModal]); + const hide = useCallback(() => setCurrentModal(null), [setCurrentModal]); + return { + id, + isShown: currentModal === id, + show, + hide, + }; +} + +export function ModalCard(props: { children?: ReactNode }) { + return ( +
+
+ {props.children} +
+
+ ); +} + +export function Modal(props: { id: string; children?: ReactNode }) { + const modal = useModal(props.id); + + return ( + + + + +
+ {props.children} +
+
+ ); +} diff --git a/src/components/overlays/OverlayAnchor.tsx b/src/components/overlays/OverlayAnchor.tsx new file mode 100644 index 00000000..4939ab1d --- /dev/null +++ b/src/components/overlays/OverlayAnchor.tsx @@ -0,0 +1,20 @@ +import classNames from "classnames"; +import { ReactNode } from "react"; + +interface Props { + id: string; + children?: ReactNode; + className?: string; +} + +export function OverlayAnchor(props: Props) { + return ( +
+
+ {props.children} +
+ ); +} diff --git a/src/components/overlays/OverlayDisplay.tsx b/src/components/overlays/OverlayDisplay.tsx new file mode 100644 index 00000000..bf6152fa --- /dev/null +++ b/src/components/overlays/OverlayDisplay.tsx @@ -0,0 +1,110 @@ +import classNames from "classnames"; +import FocusTrap from "focus-trap-react"; +import { ReactNode, useCallback, useEffect, useRef, useState } from "react"; +import { createPortal } from "react-dom"; + +import { Transition } from "@/components/utils/Transition"; +import { + useInternalOverlayRouter, + useRouterAnchorUpdate, +} from "@/hooks/useOverlayRouter"; + +export interface OverlayProps { + id: string; + children?: ReactNode; + darken?: boolean; +} + +export function OverlayDisplay(props: { children: ReactNode }) { + const router = useInternalOverlayRouter("hello world :)"); + const refRouter = useRef(router); + + // close router on first mount, we dont want persist routes for overlays + useEffect(() => { + const r = refRouter.current; + r.close(); + return () => { + r.close(); + }; + }, []); + return
{props.children}
; +} + +export function OverlayPortal(props: { + children?: ReactNode; + darken?: boolean; + show?: boolean; + close?: () => void; +}) { + const [portalElement, setPortalElement] = useState(null); + const ref = useRef(null); + const close = props.close; + + useEffect(() => { + const element = ref.current?.closest(".popout-location"); + setPortalElement(element ?? document.body); + }, []); + + return ( +
+ {portalElement + ? createPortal( + + +
+ +
+ + + {/* a tabable index that does nothing - used so focus trap doesn't error when nothing is rendered yet */} +
+ {props.children} + +
+ +
, + portalElement + ) + : null} +
+ ); +} + +export function Overlay(props: OverlayProps) { + const router = useInternalOverlayRouter(props.id); + const realClose = router.close; + + // listen for anchor updates + useRouterAnchorUpdate(props.id); + + const close = useCallback(() => { + realClose(); + }, [realClose]); + + return ( + + {props.children} + + ); +} diff --git a/src/components/overlays/OverlayPage.tsx b/src/components/overlays/OverlayPage.tsx new file mode 100644 index 00000000..f15ebaa1 --- /dev/null +++ b/src/components/overlays/OverlayPage.tsx @@ -0,0 +1,60 @@ +import classNames from "classnames"; +import { ReactNode, useEffect, useMemo } from "react"; + +import { + Transition, + TransitionAnimations, +} from "@/components/utils/Transition"; +import { useIsMobile } from "@/hooks/useIsMobile"; +import { useInternalOverlayRouter } from "@/hooks/useOverlayRouter"; +import { useOverlayStore } from "@/stores/overlay/store"; + +interface Props { + id: string; + path: string; + children?: ReactNode; + className?: string; + height: number; + width: number; +} + +export function OverlayPage(props: Props) { + const router = useInternalOverlayRouter(props.id); + const backwards = router.showBackwardsTransition(props.path); + const show = router.isCurrentPage(props.path); + const registerRoute = useOverlayStore((s) => s.registerRoute); + const path = useMemo(() => router.makePath(props.path), [props.path, router]); + const { isMobile } = useIsMobile(); + + useEffect(() => { + registerRoute({ + id: path, + width: props.width, + height: props.height, + }); + }, [props.height, props.width, path, registerRoute]); + + const width = !isMobile ? `${props.width}px` : "100%"; + let animation: TransitionAnimations = "none"; + if (backwards === "yes" || backwards === "no") + animation = backwards === "yes" ? "slide-full-left" : "slide-full-right"; + + return ( + +
+ {props.children} +
+
+ ); +} diff --git a/src/components/overlays/OverlayRouter.tsx b/src/components/overlays/OverlayRouter.tsx new file mode 100644 index 00000000..47aaed71 --- /dev/null +++ b/src/components/overlays/OverlayRouter.tsx @@ -0,0 +1,101 @@ +import { a, easings, useSpring } from "@react-spring/web"; +import { ReactNode, useEffect, useMemo, useRef } from "react"; + +import { OverlayAnchorPosition } from "@/components/overlays/positions/OverlayAnchorPosition"; +import { OverlayMobilePosition } from "@/components/overlays/positions/OverlayMobilePosition"; +import { Flare } from "@/components/utils/Flare"; +import { useIsMobile } from "@/hooks/useIsMobile"; +import { useInternalOverlayRouter } from "@/hooks/useOverlayRouter"; +import { useOverlayStore } from "@/stores/overlay/store"; + +interface OverlayRouterProps { + children?: ReactNode; + id: string; +} + +function RouterBase(props: { id: string; children: ReactNode }) { + const ref = useRef(null); + const { isMobile } = useIsMobile(); + + const routes = useOverlayStore((s) => s.routes); + const router = useInternalOverlayRouter(props.id); + const routeMeta = useMemo( + () => routes[router.currentRoute ?? ""], + [routes, router] + ); + + const [dimensions, api] = useSpring( + () => ({ + from: { + height: `${routeMeta?.height ?? 0}px`, + width: isMobile ? "100%" : `${routeMeta?.width ?? 0}px`, + }, + config: { + easing: easings.linear, + }, + }), + [] + ); + + const currentState = useRef(null); + useEffect(() => { + const data = { + height: routeMeta?.height, + width: routeMeta?.width, + isMobile, + }; + const dataStr = JSON.stringify(data); + if (dataStr !== currentState.current) { + const oldData = currentState.current + ? JSON.parse(currentState.current) + : null; + currentState.current = dataStr; + if (data.isMobile) { + api.set({ + width: "100%", + }); + api.start({ + height: `${routeMeta?.height ?? 0}px`, + }); + } else if (oldData?.height === undefined && data.height !== undefined) { + api.set({ + height: `${routeMeta?.height ?? 0}px`, + width: `${routeMeta?.width ?? 0}px`, + }); + } else { + api.start({ + height: `${routeMeta?.height ?? 0}px`, + width: `${routeMeta?.width ?? 0}px`, + }); + } + } + }, [routeMeta?.height, routeMeta?.width, isMobile, api]); + + return ( + + + + + {props.children} + + + + ); +} + +export function OverlayRouter(props: OverlayRouterProps) { + const { isMobile } = useIsMobile(); + const content = {props.children}; + + if (isMobile) return {content}; + return {content}; +} diff --git a/src/components/popout/positions/FloatingCardAnchorPosition.tsx b/src/components/overlays/positions/OverlayAnchorPosition.tsx similarity index 50% rename from src/components/popout/positions/FloatingCardAnchorPosition.tsx rename to src/components/overlays/positions/OverlayAnchorPosition.tsx index b3041b6d..028f721d 100644 --- a/src/components/popout/positions/FloatingCardAnchorPosition.tsx +++ b/src/components/overlays/positions/OverlayAnchorPosition.tsx @@ -1,28 +1,27 @@ +import classNames from "classnames"; import { ReactNode, useCallback, useEffect, useRef, useState } from "react"; -import { createFloatingAnchorEvent } from "@/components/popout/FloatingAnchor"; +import { useOverlayStore } from "@/stores/overlay/store"; interface AnchorPositionProps { children?: ReactNode; - id: string; className?: string; } -export function FloatingCardAnchorPosition(props: AnchorPositionProps) { +function useCalculatePositions() { + const anchorPoint = useOverlayStore((s) => s.anchorPoint); const ref = useRef(null); const [left, setLeft] = useState(0); const [top, setTop] = useState(0); const [cardRect, setCardRect] = useState(null); - const [anchorRect, setAnchorRect] = useState(null); const calculateAndSetCoords = useCallback( - (anchor: DOMRect, card: DOMRect) => { - const buttonCenter = anchor.left + anchor.width / 2; - const bottomReal = window.innerHeight - anchor.bottom; + (anchor: typeof anchorPoint, card: DOMRect) => { + if (!anchor) return; + const buttonCenter = anchor.x + anchor.w / 2; + const bottomReal = window.innerHeight - (anchor.y + anchor.h); - setTop( - window.innerHeight - bottomReal - anchor.height - card.height - 30 - ); + setTop(window.innerHeight - bottomReal - anchor.h - card.height - 30); setLeft( Math.min( buttonCenter - card.width / 2, @@ -34,9 +33,9 @@ export function FloatingCardAnchorPosition(props: AnchorPositionProps) { ); useEffect(() => { - if (!anchorRect || !cardRect) return; - calculateAndSetCoords(anchorRect, cardRect); - }, [anchorRect, calculateAndSetCoords, cardRect]); + if (!anchorPoint || !cardRect) return; + calculateAndSetCoords(anchorPoint, cardRect); + }, [anchorPoint, calculateAndSetCoords, cardRect]); useEffect(() => { if (!ref.current) return; @@ -52,17 +51,11 @@ export function FloatingCardAnchorPosition(props: AnchorPositionProps) { }; }, []); - useEffect(() => { - const evtStr = createFloatingAnchorEvent(props.id); - if ((window as any)[evtStr]) setAnchorRect((window as any)[evtStr]); - function listen(ev: CustomEvent) { - setAnchorRect(ev.detail); - } - document.addEventListener(evtStr, listen as any); - return () => { - document.removeEventListener(evtStr, listen as any); - }; - }, [props.id]); + return [ref, left, top] as const; +} + +export function OverlayAnchorPosition(props: AnchorPositionProps) { + const [ref, left, top] = useCalculatePositions(); return (
{props.children}
diff --git a/src/components/overlays/positions/OverlayMobilePosition.tsx b/src/components/overlays/positions/OverlayMobilePosition.tsx new file mode 100644 index 00000000..53b21000 --- /dev/null +++ b/src/components/overlays/positions/OverlayMobilePosition.tsx @@ -0,0 +1,37 @@ +import classNames from "classnames"; +import { ReactNode } from "react"; +import { useTranslation } from "react-i18next"; + +import { useInternalOverlayRouter } from "@/hooks/useOverlayRouter"; + +interface MobilePositionProps { + children?: ReactNode; + className?: string; +} + +export function OverlayMobilePosition(props: MobilePositionProps) { + const router = useInternalOverlayRouter("hello world :)"); + const { t } = useTranslation(); + + return ( +
+ {props.children} + + {/* Close button */} + + {/* Gradient to hide the progress */} +
+
+ ); +} diff --git a/src/components/player/Player.tsx b/src/components/player/Player.tsx new file mode 100644 index 00000000..df8e807a --- /dev/null +++ b/src/components/player/Player.tsx @@ -0,0 +1,11 @@ +export * from "./atoms"; +export * from "./base/Container"; +export * from "./base/TopControls"; +export * from "./base/CenterControls"; +export * from "./base/BottomControls"; +export * from "./base/BlackOverlay"; +export * from "./base/BackLink"; +export * from "./base/LeftSideControls"; +export * from "./base/CenterMobileControls"; +export * from "./base/SubtitleView"; +export * from "./internals/BookmarkButton"; diff --git a/src/components/player/README.md b/src/components/player/README.md new file mode 100644 index 00000000..404e138a --- /dev/null +++ b/src/components/player/README.md @@ -0,0 +1,31 @@ +# Video player component + +Video player is quite a complex component, so here is a rundown of all the parts + +# Composable parts +These parts can be used to build any shape of a video player. + - `/atoms`- any ui element that controls the player. (Seekbar, Pause button, quality selection, etc) + - `/base` - base components that are used to build a player. Like the main container + +# internal parts +These parts are internally used, they aren't exported. Do not use them outside of player internals. + +### `/display` +The display interface, abstraction on how to actually play the content (e.g Video element, chrome casting, etc) + - It must be completely seperate from any react code + - It must not interact with state, pass async data back with events + +### `/internals` +Internal components that are always rendered on every player. + - Only components that are always present on the player instance, they must never unmount + +### `/utils` +miscellaneous logic, put anything that is unique to the video player internals. + +### `/hooks` +Hooks only used for video player. + - only exception is usePlayer, as its used outside of the player to control the player + +### `~/src/stores/player` +State for the video player. + - Only parts related to the video player may utilize the state diff --git a/src/components/player/atoms/Airplay.tsx b/src/components/player/atoms/Airplay.tsx new file mode 100644 index 00000000..0d517fc8 --- /dev/null +++ b/src/components/player/atoms/Airplay.tsx @@ -0,0 +1,17 @@ +import { Icons } from "@/components/Icon"; +import { VideoPlayerButton } from "@/components/player/internals/Button"; +import { usePlayerStore } from "@/stores/player/store"; + +export function Airplay() { + const canAirplay = usePlayerStore((s) => s.interface.canAirplay); + const display = usePlayerStore((s) => s.display); + + if (!canAirplay) return null; + + return ( + display?.startAirplay()} + icon={Icons.AIRPLAY} + /> + ); +} diff --git a/src/components/player/atoms/AutoPlayStart.tsx b/src/components/player/atoms/AutoPlayStart.tsx new file mode 100644 index 00000000..7ae99e88 --- /dev/null +++ b/src/components/player/atoms/AutoPlayStart.tsx @@ -0,0 +1,34 @@ +import { useCallback } from "react"; + +import { Icon, Icons } from "@/components/Icon"; +import { playerStatus } from "@/stores/player/slices/source"; +import { usePlayerStore } from "@/stores/player/store"; + +export function AutoPlayStart() { + const display = usePlayerStore((s) => s.display); + const isPlaying = usePlayerStore((s) => s.mediaPlaying.isPlaying); + const isLoading = usePlayerStore((s) => s.mediaPlaying.isLoading); + const hasPlayedOnce = usePlayerStore((s) => s.mediaPlaying.hasPlayedOnce); + const status = usePlayerStore((s) => s.status); + + const handleClick = useCallback(() => { + display?.play(); + }, [display]); + + if (hasPlayedOnce) return null; + if (isPlaying) return null; + if (isLoading) return null; + if (status !== playerStatus.PLAYING) return null; + + return ( +
+ +
+ ); +} diff --git a/src/components/player/atoms/CastingNotification.tsx b/src/components/player/atoms/CastingNotification.tsx new file mode 100644 index 00000000..9c4e423b --- /dev/null +++ b/src/components/player/atoms/CastingNotification.tsx @@ -0,0 +1,22 @@ +import { useTranslation } from "react-i18next"; + +import { Icon, Icons } from "@/components/Icon"; +import { usePlayerStore } from "@/stores/player/store"; + +export function CastingNotification() { + const { t } = useTranslation(); + const isLoading = usePlayerStore((s) => s.mediaPlaying.isLoading); + const display = usePlayerStore((s) => s.display); + const isCasting = display?.getType() === "casting"; + + if (isLoading || !isCasting) return null; + + return ( +
+
+ +
+

{t("player.casting.enabled")}

+
+ ); +} diff --git a/src/video/components/actions/ChromecastAction.tsx b/src/components/player/atoms/Chromecast.tsx similarity index 65% rename from src/video/components/actions/ChromecastAction.tsx rename to src/components/player/atoms/Chromecast.tsx index 56106177..f096eea3 100644 --- a/src/video/components/actions/ChromecastAction.tsx +++ b/src/components/player/atoms/Chromecast.tsx @@ -1,20 +1,17 @@ import { useCallback, useEffect, useRef, useState } from "react"; import { Icons } from "@/components/Icon"; -import { VideoPlayerIconButton } from "@/video/components/parts/VideoPlayerIconButton"; -import { useVideoPlayerDescriptor } from "@/video/state/hooks"; -import { useMisc } from "@/video/state/logic/misc"; +import { VideoPlayerButton } from "@/components/player/internals/Button"; +import { usePlayerStore } from "@/stores/player/store"; -interface Props { +export interface ChromecastProps { className?: string; } -export function ChromecastAction(props: Props) { +export function Chromecast(props: ChromecastProps) { const [hidden, setHidden] = useState(false); - const descriptor = useVideoPlayerDescriptor(); - const misc = useMisc(descriptor); - const isCasting = misc.isCasting; - const ref = useRef(null); + const isCasting = usePlayerStore((s) => s.interface.isCasting); + const ref = useRef(null); const setButtonVisibility = useCallback( (tag: HTMLElement) => { @@ -41,7 +38,7 @@ export function ChromecastAction(props: Props) { }, [setButtonVisibility]); return ( -