diff --git a/.github/workflows/js-check-tests.yml b/.github/workflows/js-check-tests.yml deleted file mode 100644 index 15f3be53c..000000000 --- a/.github/workflows/js-check-tests.yml +++ /dev/null @@ -1,75 +0,0 @@ -name: JS check (svelte-check) - -on: - push: - paths: - - "js/**" - - "tasks/**" - # - "!js/src/lib/interfaces/**" - -jobs: - build: - - runs-on: ubuntu-latest - - timeout-minutes: 10 - - steps: - - uses: actions/checkout@v1 - - name: Get changed files - id: changed-files - uses: tj-actions/changed-files@v35 - with: - diff_relative: true - path: "js" - files: | - **/*.ts - **/*.js - **/*.mjs - **/*.svelte - - name: Use Node.js - uses: actions/setup-node@v1 - with: - node-version: 18 - - working-directory: js - run: | - npm ci - - name: Check style - working-directory: js - run: | - if [ -z "${{ steps.changed-files.outputs.all_changed_files }}" ] - then - echo "no changed files to test" - else - npm run prettier ${{ steps.changed-files.outputs.all_changed_files }}; - npm run lint ${{ steps.changed-files.outputs.all_changed_files }}; - git diff | head -n 100; - git diff --name-only --exit-code - fi - - name: Check svelte - working-directory: js - run: | - npm run check - - name: Build front - working-directory: js - run: | - npm run build - - # CD of static site - - name: Netlify install - working-directory: js - run: | - npm i netlify-cli - - - name: Netlify find out whether push to prod - if: endsWith(github.ref, '/main') - run: | - echo "NETLIFY_EXTRA_FLAG=--prod" >> $GITHUB_ENV - - - name: Netlify deploy - working-directory: js - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: 69b9df00-bfdd-4499-bd7f-6add4d703d99 - run: | - npx netlify deploy --auth "$NETLIFY_AUTH_TOKEN" --dir ./build/ --site ${NETLIFY_SITE_ID} ${NETLIFY_EXTRA_FLAG} diff --git a/.github/workflows/js-interfaces-tests.yml b/.github/workflows/js-interfaces-tests.yml deleted file mode 100644 index 6139d71d3..000000000 --- a/.github/workflows/js-interfaces-tests.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: JS Interfaces - -on: - push: - paths: - - "js/**" - - "js/src/lib/interfaces/**" - - -jobs: - build: - - runs-on: ubuntu-latest - - timeout-minutes: 10 - - steps: - - uses: actions/checkout@v1 - - name: Use Node.js - uses: actions/setup-node@v1 - with: - node-version: 18 - - working-directory: js - run: | - npm ci - - name: Check that code compiles - working-directory: ./js/src/lib/interfaces - run: | - time npx tsc *.ts --lib es6,es2016,es2017,es2018,esnext --target es2018 --module commonjs --outDir dist - - name: Run export-tasks script - working-directory: js - run: | - npm run export-task - # copy/paste this JSON output to any repo that might need it. diff --git a/.github/workflows/manual_lint.yml b/.github/workflows/manual_lint.yml deleted file mode 100644 index 3f7b99efc..000000000 --- a/.github/workflows/manual_lint.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Manual lint - -# Could do on:pull_request with path on js/** to do it automatically -on: - workflow_dispatch: - -env: - node_version: 18 - -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true - -defaults: - run: - working-directory: js - -jobs: - manual_lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ env.node_version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ env.node_version }} - - run: npm install - - run: git config --global user.name machineuser - - run: git config --global user.email tech@huggingface.co - - run: npm run format - - run: git add . - - run: git commit -m "🚨 Run prettier" - - run: git push diff --git a/.github/workflows/update-moon-landing.yml b/.github/workflows/update-moon-landing.yml deleted file mode 100644 index 6bb8dfba3..000000000 --- a/.github/workflows/update-moon-landing.yml +++ /dev/null @@ -1,45 +0,0 @@ -# Github Action that creates or updates a PR on moon-landing -# to update hub-docs there. -# -# - if existing PR: update the PR -# - if no PR: create new PR - -on: - push: - branches: - - main - -jobs: - createPullRequest: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - repository: huggingface/moon-landing - ref: "main" - token: ${{ secrets.MOONLANDING_PUSH }} - path: "moon-landing" - submodules: true - - - name: Make changes to pull request - run: cd moon-landing/server/hub-docs && git checkout origin/main - - - name: Create Pull Request - id: cpr - uses: peter-evans/create-pull-request@v4 - with: - path: "moon-landing" - token: ${{ secrets.MOONLANDING_PUSH }} - commit-message: ⬆️ Upgrade hub-docs with https://github.com/huggingface/hub-docs/commit/${{ github.sha }} - committer: machineuser - author: machineuser - signoff: false - branch: upgrade-hub-docs - delete-branch: true - title: "⬆️ Upgrade hub-docs" - body: | - Upgrade hub-docs - - Auto-generated by [create-pull-request][1] - - [1]: https://github.com/peter-evans/create-pull-request - draft: false diff --git a/docs/assets/ml-agents/ml-agents-demo.gif b/docs/assets/ml-agents/ml-agents-demo.gif deleted file mode 100644 index e5cbb6d82..000000000 Binary files a/docs/assets/ml-agents/ml-agents-demo.gif and /dev/null differ diff --git a/docs/assets/sagemaker/cover.png b/docs/assets/sagemaker/cover.png deleted file mode 100644 index be2bdef52..000000000 Binary files a/docs/assets/sagemaker/cover.png and /dev/null differ diff --git a/docs/hub/models-tasks.md b/docs/hub/models-tasks.md index 7037d067b..4a6cc1758 100644 --- a/docs/hub/models-tasks.md +++ b/docs/hub/models-tasks.md @@ -83,4 +83,4 @@ You can add an icon in the [lib/Icons](https://github.com/huggingface/huggingfac Once the task is in production, what could be more exciting than implementing some way for users to play directly with the models in their browser? 🤩 You can find all the widgets [here](https://huggingface.co/spaces/huggingfacejs/inference-widgets). -If you would be interested in contributing with a widget, you can look at the [implementation](https://github.com/huggingface/huggingface.js/tree/main/packages/widgets/src/lib/components/InferenceWidget/widgets) of all the widgets. +If you would be interested in contributing with a widget, you can look at the [implementation](https://github.com/huggingface/huggingface.js/tree/main/packages/widgets) of all the widgets. diff --git a/docs/hub/models-widgets.md b/docs/hub/models-widgets.md index 0aca86684..2a9094cf4 100644 --- a/docs/hub/models-widgets.md +++ b/docs/hub/models-widgets.md @@ -86,7 +86,7 @@ widget: - src: nested/directory/sample1.flac ``` -We provide example inputs for some languages and most widget types in [the DefaultWidget.ts file](https://github.com/huggingface/huggingface.js/blob/main/packages/tasks/src/default-widget-inputs.ts). If some examples are missing, we welcome PRs from the community to add them! +We provide example inputs for some languages and most widget types in [the default-widget-inputs.ts file](https://github.com/huggingface/huggingface.js/blob/main/packages/tasks/src/default-widget-inputs.ts). If some examples are missing, we welcome PRs from the community to add them! ## Example outputs diff --git a/js/.eslintrc.cjs b/js/.eslintrc.cjs deleted file mode 100644 index 47251b4b6..000000000 --- a/js/.eslintrc.cjs +++ /dev/null @@ -1,159 +0,0 @@ -module.exports = { - root: true, - parser: "@typescript-eslint/parser", - plugins: [ - "@typescript-eslint", - // "align-assignments", - "github", - "import", - "unused-imports", - ], - parserOptions: { - ecmaVersion: 2022, - sourceType: "module", - tsconfigRootDir: __dirname, - project: ["./tsconfig.json"], - extraFileExtensions: [".svelte"], - }, - env: { - es6: true, - browser: true, - }, - ignorePatterns: [".eslintrc.cjs"], - extends: [ - "eslint:recommended", - "plugin:@typescript-eslint/recommended", - "plugin:import/recommended", - "plugin:import/typescript", - ], - overrides: [ - { - files: ["*.svelte"], - parser: "svelte-eslint-parser", - parserOptions: { - parser: "@typescript-eslint/parser", - }, - extends: [ - "plugin:svelte/recommended", - "plugin:svelte/prettier", - "prettier", // Disable all eslint style-related rules for svelte files - ], - rules: { - "svelte/valid-compile": "off", - "svelte/no-at-html-tags": "off", - "svelte/no-unused-svelte-ignore": "off", - "no-self-assign": "off", - "@typescript-eslint/no-shadow": "off", - "@typescript-eslint/no-floating-promises": "off", - "@typescript-eslint/key-spacing": "off", - "import/order": [ - "error", - { - "newlines-between": "always", - "groups": ["type", "builtin", "external", "parent", "sibling", "index"], - }, - ], - }, - }, - ], - rules: { - /// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin - "@typescript-eslint/consistent-type-imports": ["error"], - "@typescript-eslint/key-spacing": ["error", { align: "value" }], - "@typescript-eslint/member-delimiter-style": ["error", { singleline: { requireLast: true } }], - "@typescript-eslint/no-floating-promises": ["error", { ignoreIIFE: true, ignoreVoid: true }], - "@typescript-eslint/no-misused-promises": ["error", { checksVoidReturn: false }], - "@typescript-eslint/no-unused-vars": ["warn", { args: "none" }], - "@typescript-eslint/restrict-template-expressions": [ - "error", - { - allowNullish: true, - allowAny: true, - allowNever: true, - allowBoolean: true, - allowNumber: true, - allowRegExp: true, - }, - ], - - /// https://github.com/lucasefe/eslint-plugin-align-assignments - // "align-assignments/align-assignments": ["error"], - - /// https://github.com/benmosher/eslint-plugin-import - // "import/first": ["error"], - "import/order": ["error"], - - "unused-imports/no-unused-imports": "error", - - "@typescript-eslint/no-invalid-this": ["error"], - - "@typescript-eslint/no-shadow": "error", - - /// https://eslint.org/docs/rules/ - "indent": ["error", "tab", { SwitchCase: 1 }], - "no-constant-condition": ["error", { checkLoops: false }], - "operator-linebreak": ["error", "before", { overrides: { "=": "after" } }], - "no-mixed-spaces-and-tabs": "off", - "@typescript-eslint/class-literal-property-style": ["error", "fields"], - "@typescript-eslint/ban-types": ["warn"], - "@typescript-eslint/consistent-type-assertions": [ - "warn", - { - assertionStyle: "as", - objectLiteralTypeAssertions: "allow-as-parameter", - }, - ], - "@typescript-eslint/consistent-type-definitions": ["error", "interface"], - "@typescript-eslint/explicit-module-boundary-types": ["error"], - "@typescript-eslint/method-signature-style": ["error"], - "@typescript-eslint/naming-convention": [ - "error", - { - selector: "default", - format: null, - leadingUnderscore: "allowSingleOrDouble", - trailingUnderscore: "allowSingleOrDouble", - }, - - { - selector: "variable", - format: ["camelCase", "UPPER_CASE"], - leadingUnderscore: "allowSingleOrDouble", - trailingUnderscore: "allowSingleOrDouble", - }, - { - selector: "typeLike", - format: ["PascalCase"], - leadingUnderscore: "allowSingleOrDouble", - trailingUnderscore: "allowSingleOrDouble", - }, - { - selector: "enumMember", - format: ["camelCase", "PascalCase", "UPPER_CASE"], - }, - ], - "@typescript-eslint/no-empty-function": "off", - "@typescript-eslint/no-inferrable-types": "off", - "@typescript-eslint/no-namespace": "off", - "@typescript-eslint/prefer-for-of": ["warn"], - "@typescript-eslint/prefer-optional-chain": ["error"], - "@typescript-eslint/prefer-ts-expect-error": ["warn"], - "@typescript-eslint/unified-signatures": ["warn"], - - /// https://github.com/github/eslint-plugin-github - "github/async-currenttarget": ["error"], - "github/async-preventdefault": ["error"], - "github/array-foreach": ["error"], - "github/prefer-observers": ["error"], - "github/no-dataset": ["off"], - - "eqeqeq": ["error"], - "curly": ["error", "all"], - "no-empty": ["warn"], - "no-undef": "off", - "no-unneeded-ternary": ["error", { defaultAssignment: false }], - "no-useless-escape": ["warn"], - "no-var": ["error"], - "prefer-const": ["warn"], - }, -}; diff --git a/js/.gitignore b/js/.gitignore deleted file mode 100644 index 2d66ec056..000000000 --- a/js/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -.DS_Store -node_modules -/.svelte-kit -/package diff --git a/js/.netlify/state.json b/js/.netlify/state.json deleted file mode 100644 index d2a4efd90..000000000 --- a/js/.netlify/state.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "siteId": "69b9df00-bfdd-4499-bd7f-6add4d703d99" -} diff --git a/js/.prettierignore b/js/.prettierignore deleted file mode 100644 index 31b89c527..000000000 --- a/js/.prettierignore +++ /dev/null @@ -1,5 +0,0 @@ -.svelte-kit/** -static/** -build/** -node_modules/** -*.md \ No newline at end of file diff --git a/js/.prettierrc.cjs b/js/.prettierrc.cjs deleted file mode 100644 index 5bc0a057d..000000000 --- a/js/.prettierrc.cjs +++ /dev/null @@ -1,14 +0,0 @@ -const path = require("path"); -const tailwindConfig = path.join(__dirname, "./tailwind.config.cjs"); - -module.exports = { - arrowParens: "avoid", - quoteProps: "consistent", - trailingComma: "es5", - useTabs: true, - tabWidth: 2, - printWidth: 120, - overrides: [{ files: "*.svelte", options: { parser: "svelte" } }], - tailwindConfig, - plugins: [require("prettier-plugin-svelte"), require("prettier-plugin-tailwindcss")], -}; diff --git a/js/README.md b/js/README.md deleted file mode 100644 index 996bfe0d1..000000000 --- a/js/README.md +++ /dev/null @@ -1,32 +0,0 @@ -# huggingface-widgets - -Open-source version of the inference widgets from huggingface.co - -> Built with Svelte and SvelteKit - -**Demo page:** https://huggingface-widgets.netlify.app/ - -## Documentation - -For now checkout the Pull Request's description: https://github.com/huggingface/huggingface_hub/pull/87 - -TODO: write more documentation - -## How to develop - -Once you've created a project and installed dependencies with `npm ci` (or -`pnpm install --frozen-lockfile` or `yarn install --frozen-lockfile`), start a -development server: - -```bash -npm run dev - -# or start the server and open the app in a new browser tab -npm run dev -- --open -``` - -## Build for production - -```bash -npm run build -``` diff --git a/js/package-lock.json b/js/package-lock.json deleted file mode 100644 index 30036405f..000000000 --- a/js/package-lock.json +++ /dev/null @@ -1,7557 +0,0 @@ -{ - "name": "huggingface-widgets", - "version": "0.0.1", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "name": "huggingface-widgets", - "version": "0.0.1", - "devDependencies": { - "@sveltejs/adapter-static": "^1.0.0-next.13", - "@sveltejs/kit": "1.0.0-next.173", - "@tailwindcss/forms": "^0.4.1", - "@tailwindcss/line-clamp": "^0.4.0", - "@types/tailwindcss": "^2.2.1", - "@typescript-eslint/eslint-plugin": "^5.59.11", - "@typescript-eslint/parser": "^5.59.11", - "autoprefixer": "^10.4.8", - "eslint": "^8.43.0", - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-github": "^4.3.5", - "eslint-plugin-import": "^2.25.4", - "eslint-plugin-svelte": "^2.15.0", - "eslint-plugin-unused-imports": "^2.0.0", - "postcss": "^8.4.16", - "postcss-load-config": "^3.0.1", - "prettier": "2.3.0", - "prettier-plugin-svelte": "^2.10.1", - "prettier-plugin-tailwindcss": "^0.3.0", - "svelte": "^3.59.2", - "svelte-check": "^3.4.4", - "svelte-preprocess": "^5.0.4", - "tailwindcss": "^3.1.8", - "tslib": "^2.0.0", - "tsm": "^2.2.2", - "typescript": "^5.1.3" - } - }, - "node_modules/@aashutoshrathi/word-wrap": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", - "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", - "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.7.0.tgz", - "integrity": "sha512-+HencqxU7CFJnQb7IKtuNBqS6Yx3Tz4kOL8BJXo+JyeiBm5MEX6pO8onXDkjrkCRlfYXS1Axro15ZjVFe9YgsA==", - "dev": true, - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.2.tgz", - "integrity": "sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==", - "dev": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/js": { - "version": "8.43.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.43.0.tgz", - "integrity": "sha512-s2UHCoiXfxMvmfzqoN+vrQ84ahUSYde9qNO1MdxmoEhyHWsfmwOpFlwYV+ePJEVc7gFnATGUi376WowX1N7tFg==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz", - "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==", - "dev": true, - "dependencies": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", - "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=10.10.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", - "dev": true - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", - "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", - "dev": true, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", - "dev": true - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.19", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz", - "integrity": "sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==", - "dev": true, - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@rollup/pluginutils": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.0.tgz", - "integrity": "sha512-2WUyJNRkyH5p487pGnn4tWAsxhEFKN/pT8CMgHshd5H+IXkOnKvKZwsz5ZWz+YCXkleZRAU5kwbfgF8CPfDRqA==", - "dev": true, - "dependencies": { - "estree-walker": "^2.0.1", - "picomatch": "^2.2.2" - }, - "engines": { - "node": ">= 8.0.0" - } - }, - "node_modules/@sveltejs/adapter-static": { - "version": "1.0.0-next.13", - "resolved": "https://registry.npmjs.org/@sveltejs/adapter-static/-/adapter-static-1.0.0-next.13.tgz", - "integrity": "sha512-zaXJlWK9JfrjrE6nG5etB8kf4DSkbE3H8Ql6gmCk3WjdvpY85a60TMYBU9OK2iunkqpHnPYiMUGEnOGYmWlLYA==", - "dev": true - }, - "node_modules/@sveltejs/kit": { - "version": "1.0.0-next.173", - "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-1.0.0-next.173.tgz", - "integrity": "sha512-gOnRwCw9O+dXfpUe8GO9PEe20TWiIpgIDjG3zabCjMUV2XLpOsvPCO9j65xCPce00RljQGBuwn+NTYKteg2jvw==", - "dev": true, - "dependencies": { - "@sveltejs/vite-plugin-svelte": "^1.0.0-next.24", - "cheap-watch": "^1.0.4", - "sade": "^1.7.4", - "vite": "^2.5.7" - }, - "bin": { - "svelte-kit": "svelte-kit.js" - }, - "engines": { - "node": "^12.20 || >=14.13" - }, - "peerDependencies": { - "svelte": "^3.43.0" - } - }, - "node_modules/@sveltejs/vite-plugin-svelte": { - "version": "1.0.0-next.40", - "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-1.0.0-next.40.tgz", - "integrity": "sha512-DtXF01fYGEJkbC7GntU/7jaq9M1SwyyNCkbDA+cfQSXRpm3H7zbu0M80wSQBSpntdd+hgSdxKCxv4GgX6/zI6w==", - "dev": true, - "dependencies": { - "@rollup/pluginutils": "^4.2.0", - "debug": "^4.3.3", - "kleur": "^4.1.4", - "magic-string": "^0.26.1", - "svelte-hmr": "^0.14.11" - }, - "engines": { - "node": "^14.13.1 || >= 16" - }, - "peerDependencies": { - "diff-match-patch": "^1.0.5", - "svelte": "^3.44.0", - "vite": "^2.7.0" - }, - "peerDependenciesMeta": { - "diff-match-patch": { - "optional": true - } - } - }, - "node_modules/@tailwindcss/forms": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.4.1.tgz", - "integrity": "sha512-gS9xjCmJjUBz/eP12QlENPLnf0tCx68oYE3mri0GMP5jdtVwLbGUNSRpjsp6NzLAZzZy3ueOwrcqB78Ax6Z84A==", - "dev": true, - "dependencies": { - "mini-svg-data-uri": "^1.2.3" - }, - "peerDependencies": { - "tailwindcss": ">=3.0.0 || >= 3.0.0-alpha.1" - } - }, - "node_modules/@tailwindcss/line-clamp": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/line-clamp/-/line-clamp-0.4.0.tgz", - "integrity": "sha512-HQZo6gfx1D0+DU3nWlNLD5iA6Ef4JAXh0LeD8lOGrJwEDBwwJNKQza6WoXhhY1uQrxOuU8ROxV7CqiQV4CoiLw==", - "dev": true, - "peerDependencies": { - "tailwindcss": ">=2.0.0 || >=3.0.0 || >=3.0.0-alpha.1" - } - }, - "node_modules/@types/json-schema": { - "version": "7.0.12", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", - "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==", - "dev": true - }, - "node_modules/@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true - }, - "node_modules/@types/pug": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@types/pug/-/pug-2.0.6.tgz", - "integrity": "sha512-SnHmG9wN1UVmagJOnyo/qkk0Z7gejYxOYYmaAwr5u2yFYfsupN3sg10kyzN8Hep/2zbHxCnsumxOoRIRMBwKCg==", - "dev": true - }, - "node_modules/@types/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-cJRQXpObxfNKkFAZbJl2yjWtJCqELQIdShsogr1d2MilP8dKD9TE/nEKHkJgUNHdGKCQaf9HbIynuV2csLGVLg==", - "dev": true - }, - "node_modules/@types/tailwindcss": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@types/tailwindcss/-/tailwindcss-2.2.1.tgz", - "integrity": "sha512-raLwtQF+uul9lsvs7+GUizeNrpxRqbnckIu/va5hzPPwZsImZunkyLFAS/1rwEHhhvFMNiMJmTiP5PPGa0oNJA==", - "dev": true - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.11.tgz", - "integrity": "sha512-XxuOfTkCUiOSyBWIvHlUraLw/JT/6Io1365RO6ZuI88STKMavJZPNMU0lFcUTeQXEhHiv64CbxYxBNoDVSmghg==", - "dev": true, - "dependencies": { - "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.59.11", - "@typescript-eslint/type-utils": "5.59.11", - "@typescript-eslint/utils": "5.59.11", - "debug": "^4.3.4", - "grapheme-splitter": "^1.0.4", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.11.tgz", - "integrity": "sha512-s9ZF3M+Nym6CAZEkJJeO2TFHHDsKAM3ecNkLuH4i4s8/RCPnF5JRip2GyviYkeEAcwGMJxkqG9h2dAsnA1nZpA==", - "dev": true, - "dependencies": { - "@typescript-eslint/scope-manager": "5.59.11", - "@typescript-eslint/types": "5.59.11", - "@typescript-eslint/typescript-estree": "5.59.11", - "debug": "^4.3.4" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.11.tgz", - "integrity": "sha512-dHFOsxoLFtrIcSj5h0QoBT/89hxQONwmn3FOQ0GOQcLOOXm+MIrS8zEAhs4tWl5MraxCY3ZJpaXQQdFMc2Tu+Q==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "5.59.11", - "@typescript-eslint/visitor-keys": "5.59.11" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.11.tgz", - "integrity": "sha512-LZqVY8hMiVRF2a7/swmkStMYSoXMFlzL6sXV6U/2gL5cwnLWQgLEG8tjWPpaE4rMIdZ6VKWwcffPlo1jPfk43g==", - "dev": true, - "dependencies": { - "@typescript-eslint/typescript-estree": "5.59.11", - "@typescript-eslint/utils": "5.59.11", - "debug": "^4.3.4", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "*" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/types": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.11.tgz", - "integrity": "sha512-epoN6R6tkvBYSc+cllrz+c2sOFWkbisJZWkOE+y3xHtvYaOE6Wk6B8e114McRJwFRjGvYdJwLXQH5c9osME/AA==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.11.tgz", - "integrity": "sha512-YupOpot5hJO0maupJXixi6l5ETdrITxeo5eBOeuV7RSKgYdU3G5cxO49/9WRnJq9EMrB7AuTSLH/bqOsXi7wPA==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "5.59.11", - "@typescript-eslint/visitor-keys": "5.59.11", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.11.tgz", - "integrity": "sha512-didu2rHSOMUdJThLk4aZ1Or8IcO3HzCw/ZvEjTTIfjIrcdd5cvSIwwDy2AOlE7htSNp7QIZ10fLMyRCveesMLg==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.59.11", - "@typescript-eslint/types": "5.59.11", - "@typescript-eslint/typescript-estree": "5.59.11", - "eslint-scope": "^5.1.1", - "semver": "^7.3.7" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.11.tgz", - "integrity": "sha512-KGYniTGG3AMTuKF9QBD7EIrvufkB6O6uX3knP73xbKLMpH+QRPcgnCxjWXSHjMRuOxFLovljqQgQpR0c7GvjoA==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "5.59.11", - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/acorn-node": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz", - "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==", - "dev": true, - "dependencies": { - "acorn": "^7.0.0", - "acorn-walk": "^7.0.0", - "xtend": "^4.0.2" - } - }, - "node_modules/acorn-walk": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", - "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/anymatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", - "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", - "dev": true, - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/arg": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", - "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", - "dev": true - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/array-buffer-byte-length": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", - "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "is-array-buffer": "^3.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array-includes": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", - "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "is-string": "^1.0.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/array.prototype.flat": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", - "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/arraybuffer.prototype.slice": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.1.tgz", - "integrity": "sha512-09x0ZWFEjj4WD8PDbykUwo3t9arLn8NIzmmYEJFpYekOAQjpkGSyrQhNoRTcwwcFRu+ycWF78QZ63oWTqSjBcw==", - "dev": true, - "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" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/autoprefixer": { - "version": "10.4.8", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.8.tgz", - "integrity": "sha512-75Jr6Q/XpTqEf6D2ltS5uMewJIx5irCU1oBYJrWjFenq/m12WRRrz6g15L1EIoYvPLXTbEry7rDOwrcYNj77xw==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/autoprefixer" - } - ], - "dependencies": { - "browserslist": "^4.21.3", - "caniuse-lite": "^1.0.30001373", - "fraction.js": "^4.2.0", - "normalize-range": "^0.1.2", - "picocolors": "^1.0.0", - "postcss-value-parser": "^4.2.0" - }, - "bin": { - "autoprefixer": "bin/autoprefixer" - }, - "engines": { - "node": "^10 || ^12 || >=14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/available-typed-arrays": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "node_modules/binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browserslist": { - "version": "4.21.3", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.3.tgz", - "integrity": "sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - } - ], - "dependencies": { - "caniuse-lite": "^1.0.30001370", - "electron-to-chromium": "^1.4.202", - "node-releases": "^2.0.6", - "update-browserslist-db": "^1.0.5" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/camelcase-css": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", - "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001385", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001385.tgz", - "integrity": "sha512-MpiCqJGhBkHgpyimE9GWmZTnyHyEEM35u115bD3QBrXpjvL/JgcP8cUhKJshfmg4OtEHFenifcK5sZayEw5tvQ==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - } - ] - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/cheap-watch": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/cheap-watch/-/cheap-watch-1.0.4.tgz", - "integrity": "sha512-QR/9FrtRL5fjfUJBhAKCdi0lSRQ3rVRRum3GF9wDKp2TJbEIMGhUEr2yU8lORzm9Isdjx7/k9S0DFDx+z5VGtw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/cssesc": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", - "dev": true, - "bin": { - "cssesc": "bin/cssesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "node_modules/define-properties": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", - "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", - "dev": true, - "dependencies": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/defined": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz", - "integrity": "sha512-Y2caI5+ZwS5c3RiNDJ6u53VhQHv+hHKwhkI1iHvceKUHw9Df6EK2zRLfjejRgMuCuxK7PfSWIMwWecceVvThjQ==", - "dev": true - }, - "node_modules/detect-indent": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz", - "integrity": "sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/detective": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/detective/-/detective-5.2.1.tgz", - "integrity": "sha512-v9XE1zRnz1wRtgurGu0Bs8uHKFSTdteYZNbIPFVhUZ39L/S79ppMpdmVOZAnoz1jfEFodc48n6MX483Xo3t1yw==", - "dev": true, - "dependencies": { - "acorn-node": "^1.8.2", - "defined": "^1.0.0", - "minimist": "^1.2.6" - }, - "bin": { - "detective": "bin/detective.js" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/didyoumean": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", - "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==", - "dev": true - }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/dlv": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", - "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", - "dev": true - }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/electron-to-chromium": { - "version": "1.4.235", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.235.tgz", - "integrity": "sha512-eNU2SmVZYTzYVA5aAWmhAJbdVil5/8H5nMq6kGD0Yxd4k2uKIuT8YmS46I0QXY7iOoPPcb6jjem9/2xyuH5+XQ==", - "dev": true - }, - "node_modules/es-abstract": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.1.tgz", - "integrity": "sha512-ioRRcXMO6OFyRpyzV3kE1IIBd4WG5/kltnzdxSCqoP8CMGs/Li+M1uF5o7lOkZVFjDs+NLesthnF66Pg/0q0Lw==", - "dev": true, - "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.5", - "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.10", - "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.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-set-tostringtag": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", - "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.3", - "has": "^1.0.3", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-shim-unscopables": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", - "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", - "dev": true, - "dependencies": { - "has": "^1.0.3" - } - }, - "node_modules/es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es6-promise": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-3.3.1.tgz", - "integrity": "sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==", - "dev": true - }, - "node_modules/esbuild": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.14.27.tgz", - "integrity": "sha512-MZQt5SywZS3hA9fXnMhR22dv0oPGh6QtjJRIYbgL1AeqAoQZE+Qn5ppGYQAoHv/vq827flj4tIJ79Mrdiwk46Q==", - "dev": true, - "hasInstallScript": true, - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "esbuild-android-64": "0.14.27", - "esbuild-android-arm64": "0.14.27", - "esbuild-darwin-64": "0.14.27", - "esbuild-darwin-arm64": "0.14.27", - "esbuild-freebsd-64": "0.14.27", - "esbuild-freebsd-arm64": "0.14.27", - "esbuild-linux-32": "0.14.27", - "esbuild-linux-64": "0.14.27", - "esbuild-linux-arm": "0.14.27", - "esbuild-linux-arm64": "0.14.27", - "esbuild-linux-mips64le": "0.14.27", - "esbuild-linux-ppc64le": "0.14.27", - "esbuild-linux-riscv64": "0.14.27", - "esbuild-linux-s390x": "0.14.27", - "esbuild-netbsd-64": "0.14.27", - "esbuild-openbsd-64": "0.14.27", - "esbuild-sunos-64": "0.14.27", - "esbuild-windows-32": "0.14.27", - "esbuild-windows-64": "0.14.27", - "esbuild-windows-arm64": "0.14.27" - } - }, - "node_modules/esbuild-android-64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.14.27.tgz", - "integrity": "sha512-LuEd4uPuj/16Y8j6kqy3Z2E9vNY9logfq8Tq+oTE2PZVuNs3M1kj5Qd4O95ee66yDGb3isaOCV7sOLDwtMfGaQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-android-arm64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.27.tgz", - "integrity": "sha512-E8Ktwwa6vX8q7QeJmg8yepBYXaee50OdQS3BFtEHKrzbV45H4foMOeEE7uqdjGQZFBap5VAqo7pvjlyA92wznQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-darwin-64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.27.tgz", - "integrity": "sha512-czw/kXl/1ZdenPWfw9jDc5iuIYxqUxgQ/Q+hRd4/3udyGGVI31r29LCViN2bAJgGvQkqyLGVcG03PJPEXQ5i2g==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-darwin-arm64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.27.tgz", - "integrity": "sha512-BEsv2U2U4o672oV8+xpXNxN9bgqRCtddQC6WBh4YhXKDcSZcdNh7+6nS+DM2vu7qWIWNA4JbRG24LUUYXysimQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-freebsd-64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.27.tgz", - "integrity": "sha512-7FeiFPGBo+ga+kOkDxtPmdPZdayrSzsV9pmfHxcyLKxu+3oTcajeZlOO1y9HW+t5aFZPiv7czOHM4KNd0tNwCA==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-freebsd-arm64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.27.tgz", - "integrity": "sha512-8CK3++foRZJluOWXpllG5zwAVlxtv36NpHfsbWS7TYlD8S+QruXltKlXToc/5ZNzBK++l6rvRKELu/puCLc7jA==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-32": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.27.tgz", - "integrity": "sha512-qhNYIcT+EsYSBClZ5QhLzFzV5iVsP1YsITqblSaztr3+ZJUI+GoK8aXHyzKd7/CKKuK93cxEMJPpfi1dfsOfdw==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.27.tgz", - "integrity": "sha512-ESjck9+EsHoTaKWlFKJpPZRN26uiav5gkI16RuI8WBxUdLrrAlYuYSndxxKgEn1csd968BX/8yQZATYf/9+/qg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-arm": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.27.tgz", - "integrity": "sha512-JnnmgUBdqLQO9hoNZQqNHFWlNpSX82vzB3rYuCJMhtkuaWQEmQz6Lec1UIxJdC38ifEghNTBsF9bbe8dFilnCw==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-arm64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.27.tgz", - "integrity": "sha512-no6Mi17eV2tHlJnqBHRLekpZ2/VYx+NfGxKcBE/2xOMYwctsanCaXxw4zapvNrGE9X38vefVXLz6YCF8b1EHiQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-mips64le": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.27.tgz", - "integrity": "sha512-NolWP2uOvIJpbwpsDbwfeExZOY1bZNlWE/kVfkzLMsSgqeVcl5YMen/cedRe9mKnpfLli+i0uSp7N+fkKNU27A==", - "cpu": [ - "mips64el" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-ppc64le": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.27.tgz", - "integrity": "sha512-/7dTjDvXMdRKmsSxKXeWyonuGgblnYDn0MI1xDC7J1VQXny8k1qgNp6VmrlsawwnsymSUUiThhkJsI+rx0taNA==", - "cpu": [ - "ppc64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-riscv64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.27.tgz", - "integrity": "sha512-D+aFiUzOJG13RhrSmZgrcFaF4UUHpqj7XSKrIiCXIj1dkIkFqdrmqMSOtSs78dOtObWiOrFCDDzB24UyeEiNGg==", - "cpu": [ - "riscv64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-linux-s390x": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.27.tgz", - "integrity": "sha512-CD/D4tj0U4UQjELkdNlZhQ8nDHU5rBn6NGp47Hiz0Y7/akAY5i0oGadhEIg0WCY/HYVXFb3CsSPPwaKcTOW3bg==", - "cpu": [ - "s390x" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-netbsd-64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.27.tgz", - "integrity": "sha512-h3mAld69SrO1VoaMpYl3a5FNdGRE/Nqc+E8VtHOag4tyBwhCQXxtvDDOAKOUQexBGca0IuR6UayQ4ntSX5ij1Q==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-openbsd-64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.27.tgz", - "integrity": "sha512-xwSje6qIZaDHXWoPpIgvL+7fC6WeubHHv18tusLYMwL+Z6bEa4Pbfs5IWDtQdHkArtfxEkIZz77944z8MgDxGw==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-sunos-64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.27.tgz", - "integrity": "sha512-/nBVpWIDjYiyMhuqIqbXXsxBc58cBVH9uztAOIfWShStxq9BNBik92oPQPJ57nzWXRNKQUEFWr4Q98utDWz7jg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-windows-32": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.27.tgz", - "integrity": "sha512-Q9/zEjhZJ4trtWhFWIZvS/7RUzzi8rvkoaS9oiizkHTTKd8UxFwn/Mm2OywsAfYymgUYm8+y2b+BKTNEFxUekw==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-windows-64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.27.tgz", - "integrity": "sha512-b3y3vTSl5aEhWHK66ngtiS/c6byLf6y/ZBvODH1YkBM+MGtVL6jN38FdHUsZasCz9gFwYs/lJMVY9u7GL6wfYg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-windows-arm64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.27.tgz", - "integrity": "sha512-I/reTxr6TFMcR5qbIkwRGvldMIaiBu2+MP0LlD7sOlNXrfqIl9uNjsuxFPGEG4IRomjfQ5q8WT+xlF/ySVkqKg==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "8.43.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.43.0.tgz", - "integrity": "sha512-aaCpf2JqqKesMFGgmRPessmVKjcGXqdlAYLLC3THM8t5nBRZRQ+st5WM/hoJXkdioEXLLbXgclUpM0TXo5HX5Q==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.4.0", - "@eslint/eslintrc": "^2.0.3", - "@eslint/js": "8.43.0", - "@humanwhocodes/config-array": "^0.11.10", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.0", - "eslint-visitor-keys": "^3.4.1", - "espree": "^9.5.2", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "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.1", - "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", - "text-table": "^0.2.0" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-config-prettier": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.3.0.tgz", - "integrity": "sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew==", - "dev": true, - "bin": { - "eslint-config-prettier": "bin/cli.js" - }, - "peerDependencies": { - "eslint": ">=7.0.0" - } - }, - "node_modules/eslint-import-resolver-node": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", - "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", - "dev": true, - "dependencies": { - "debug": "^3.2.7", - "is-core-module": "^2.13.0", - "resolve": "^1.22.4" - } - }, - "node_modules/eslint-import-resolver-node/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-module-utils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", - "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", - "dev": true, - "dependencies": { - "debug": "^3.2.7" - }, - "engines": { - "node": ">=4" - }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - } - } - }, - "node_modules/eslint-module-utils/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-plugin-escompat": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-escompat/-/eslint-plugin-escompat-3.4.0.tgz", - "integrity": "sha512-ufTPv8cwCxTNoLnTZBFTQ5SxU2w7E7wiMIS7PSxsgP1eAxFjtSaoZ80LRn64hI8iYziE6kJG6gX/ZCJVxh48Bg==", - "dev": true, - "dependencies": { - "browserslist": "^4.21.0" - }, - "peerDependencies": { - "eslint": ">=5.14.1" - } - }, - "node_modules/eslint-plugin-eslint-comments": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.2.0.tgz", - "integrity": "sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ==", - "dev": true, - "dependencies": { - "escape-string-regexp": "^1.0.5", - "ignore": "^5.0.5" - }, - "engines": { - "node": ">=6.5.0" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=4.19.1" - } - }, - "node_modules/eslint-plugin-eslint-comments/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/eslint-plugin-filenames": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-filenames/-/eslint-plugin-filenames-1.3.2.tgz", - "integrity": "sha512-tqxJTiEM5a0JmRCUYQmxw23vtTxrb2+a3Q2mMOPhFxvt7ZQQJmdiuMby9B/vUAuVMghyP7oET+nIf6EO6CBd/w==", - "dev": true, - "dependencies": { - "lodash.camelcase": "4.3.0", - "lodash.kebabcase": "4.1.1", - "lodash.snakecase": "4.1.1", - "lodash.upperfirst": "4.3.1" - }, - "peerDependencies": { - "eslint": "*" - } - }, - "node_modules/eslint-plugin-github": { - "version": "4.3.5", - "resolved": "https://registry.npmjs.org/eslint-plugin-github/-/eslint-plugin-github-4.3.5.tgz", - "integrity": "sha512-3OPCn/kkFcTq1aYgJJVKzqzmcOn432eaup79TQ5mpWA11JXgF/KvVmIS1RF6har/gMueINMq1P5wDEFS6YQ/Pw==", - "dev": true, - "dependencies": { - "@typescript-eslint/eslint-plugin": "^5.1.0", - "@typescript-eslint/parser": "^5.1.0", - "eslint-config-prettier": ">=8.0.0", - "eslint-plugin-escompat": "^3.1.0", - "eslint-plugin-eslint-comments": "^3.2.0", - "eslint-plugin-filenames": "^1.3.2", - "eslint-plugin-i18n-text": "^1.0.1", - "eslint-plugin-import": "^2.25.2", - "eslint-plugin-no-only-tests": "^2.6.0", - "eslint-plugin-prettier": "^3.3.1", - "eslint-rule-documentation": ">=1.0.0", - "prettier": "^2.2.1", - "svg-element-attributes": "^1.3.1" - }, - "bin": { - "eslint-ignore-errors": "bin/eslint-ignore-errors.js" - }, - "peerDependencies": { - "eslint": "^8.0.1" - } - }, - "node_modules/eslint-plugin-i18n-text": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-i18n-text/-/eslint-plugin-i18n-text-1.0.1.tgz", - "integrity": "sha512-3G3UetST6rdqhqW9SfcfzNYMpQXS7wNkJvp6dsXnjzGiku6Iu5hl3B0kmk6lIcFPwYjhQIY+tXVRtK9TlGT7RA==", - "dev": true, - "peerDependencies": { - "eslint": ">=5.0.0" - } - }, - "node_modules/eslint-plugin-import": { - "version": "2.25.4", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.25.4.tgz", - "integrity": "sha512-/KJBASVFxpu0xg1kIBn9AUa8hQVnszpwgE7Ld0lKAlx7Ie87yzEzCgSkekt+le/YVhiaosO4Y14GDAOc41nfxA==", - "dev": true, - "dependencies": { - "array-includes": "^3.1.4", - "array.prototype.flat": "^1.2.5", - "debug": "^2.6.9", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.6", - "eslint-module-utils": "^2.7.2", - "has": "^1.0.3", - "is-core-module": "^2.8.0", - "is-glob": "^4.0.3", - "minimatch": "^3.0.4", - "object.values": "^1.1.5", - "resolve": "^1.20.0", - "tsconfig-paths": "^3.12.0" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" - } - }, - "node_modules/eslint-plugin-import/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/eslint-plugin-import/node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eslint-plugin-import/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/eslint-plugin-no-only-tests": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-2.6.0.tgz", - "integrity": "sha512-T9SmE/g6UV1uZo1oHAqOvL86XWl7Pl2EpRpnLI8g/bkJu+h7XBCB+1LnubRZ2CUQXj805vh4/CYZdnqtVaEo2Q==", - "dev": true, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/eslint-plugin-prettier": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.1.tgz", - "integrity": "sha512-htg25EUYUeIhKHXjOinK4BgCcDwtLHjqaxCDsMy5nbnUMkKFvIhMVCp+5GFUXQ4Nr8lBsPqtGAqBenbpFqAA2g==", - "dev": true, - "dependencies": { - "prettier-linter-helpers": "^1.0.0" - }, - "engines": { - "node": ">=6.0.0" - }, - "peerDependencies": { - "eslint": ">=5.0.0", - "prettier": ">=1.13.0" - }, - "peerDependenciesMeta": { - "eslint-config-prettier": { - "optional": true - } - } - }, - "node_modules/eslint-plugin-svelte": { - "version": "2.15.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-svelte/-/eslint-plugin-svelte-2.15.0.tgz", - "integrity": "sha512-29RfdKqEPdrT6vRK66Tn8u9UlM0Kxq/JfLtmdimMbvHfb3tXMNyYN0sW5ontQRFea7mf5qH/mr1kDMzz0vOFHw==", - "dev": true, - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.4.14", - "debug": "^4.3.1", - "eslint-utils": "^3.0.0", - "esutils": "^2.0.3", - "known-css-properties": "^0.26.0", - "postcss": "^8.4.5", - "postcss-load-config": "^3.1.4", - "postcss-safe-parser": "^6.0.0", - "svelte-eslint-parser": "^0.22.0" - }, - "engines": { - "node": "^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ota-meshi" - }, - "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0-0", - "svelte": "^3.37.0" - }, - "peerDependenciesMeta": { - "svelte": { - "optional": true - } - } - }, - "node_modules/eslint-plugin-unused-imports": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-2.0.0.tgz", - "integrity": "sha512-3APeS/tQlTrFa167ThtP0Zm0vctjr4M44HMpeg1P4bK6wItarumq0Ma82xorMKdFsWpphQBlRPzw/pxiVELX1A==", - "dev": true, - "dependencies": { - "eslint-rule-composer": "^0.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "@typescript-eslint/eslint-plugin": "^5.0.0", - "eslint": "^8.0.0" - }, - "peerDependenciesMeta": { - "@typescript-eslint/eslint-plugin": { - "optional": true - } - } - }, - "node_modules/eslint-rule-composer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz", - "integrity": "sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==", - "dev": true, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/eslint-rule-documentation": { - "version": "1.0.23", - "resolved": "https://registry.npmjs.org/eslint-rule-documentation/-/eslint-rule-documentation-1.0.23.tgz", - "integrity": "sha512-pWReu3fkohwyvztx/oQWWgld2iad25TfUdi6wvhhaDPIQjHU/pyvlKgXFw1kX31SQK2Nq9MH+vRDWB0ZLy8fYw==", - "dev": true, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^2.0.0" - }, - "engines": { - "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=5" - } - }, - "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint/node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/espree": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", - "dev": true, - "dependencies": { - "acorn": "^8.9.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/espree/node_modules/acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/esquery": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", - "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", - "dev": true, - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", - "dev": true - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "node_modules/fast-diff": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", - "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", - "dev": true - }, - "node_modules/fast-glob": { - "version": "3.2.11", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz", - "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "node_modules/fastq": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", - "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", - "dev": true, - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "dev": true, - "dependencies": { - "flat-cache": "^3.0.4" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", - "dev": true, - "dependencies": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "dev": true - }, - "node_modules/for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "dev": true, - "dependencies": { - "is-callable": "^1.1.3" - } - }, - "node_modules/fraction.js": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", - "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==", - "dev": true, - "engines": { - "node": "*" - }, - "funding": { - "type": "patreon", - "url": "https://www.patreon.com/infusion" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true - }, - "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "node_modules/function.prototype.name": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0", - "functions-have-names": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-intrinsic": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", - "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/glob": { - "version": "7.1.7", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", - "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/globals": { - "version": "13.21.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.21.0.tgz", - "integrity": "sha512-ybyme3s4yy/t/3s35bewwXKOf7cvzfreG2lH0lZl0JB7I4GxRP2ghxOK/Nb9EkRXdbBXZLfq/p/0W2JUONB/Gg==", - "dev": true, - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", - "dev": true, - "dependencies": { - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true - }, - "node_modules/grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", - "dev": true - }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true - }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, - "node_modules/immutable": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.3.tgz", - "integrity": "sha512-808ZFYMsIRAjLAu5xkKo0TsbY9LBy9H5MazTKIEHerNkg0ymgilGfBPMR/3G7d/ihGmuK2Hw8S1izY2d3kd3wA==", - "dev": true, - "optional": true, - "peer": true - }, - "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/internal-slot": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", - "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.2.0", - "has": "^1.0.3", - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-array-buffer": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", - "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.0", - "is-typed-array": "^1.1.10" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, - "dependencies": { - "has-bigints": "^1.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-core-module": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz", - "integrity": "sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==", - "dev": true, - "dependencies": { - "has": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz", - "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==", - "dev": true, - "dependencies": { - "which-typed-array": "^1.1.11" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "node_modules/json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "dev": true, - "dependencies": { - "minimist": "^1.2.0" - }, - "bin": { - "json5": "lib/cli.js" - } - }, - "node_modules/kleur": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.4.tgz", - "integrity": "sha512-8QADVssbrFjivHWQU7KkMgptGTl6WAcSdlbBPY4uNF+mWr6DGcKrvY2w4FQJoXch7+fKMjj0dRrL75vk3k23OA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/known-css-properties": { - "version": "0.26.0", - "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.26.0.tgz", - "integrity": "sha512-5FZRzrZzNTBruuurWpvZnvP9pum+fe0HcK8z/ooo+U+Hmp4vtbyp1/QDsqmufirXy4egGzbaH/y2uCZf+6W5Kg==", - "dev": true - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/lilconfig": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.6.tgz", - "integrity": "sha512-9JROoBW7pobfsx+Sq2JsASvCo6Pfo6WWoUW79HuB1BCoBXD4PLWJPqDF6fNj67pqBYTbAHkE57M1kS/+L1neOg==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.camelcase": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", - "dev": true - }, - "node_modules/lodash.kebabcase": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz", - "integrity": "sha512-N8XRTIMMqqDgSy4VLKPnJ/+hpGZN+PHQiJnSenYqPaVV/NCqEogTnAdZLQiGKhxX+JCs8waWq2t1XHWKOmlY8g==", - "dev": true - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "node_modules/lodash.snakecase": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", - "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==", - "dev": true - }, - "node_modules/lodash.upperfirst": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz", - "integrity": "sha512-sReKOYJIJf74dhJONhU4e0/shzi1trVbSWDOhKYE5XV2O+H7Sb2Dihwuc7xWxVl+DgFPyTqIN3zMfT9cq5iWDg==", - "dev": true - }, - "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/magic-string": { - "version": "0.26.1", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.26.1.tgz", - "integrity": "sha512-ndThHmvgtieXe8J/VGPjG+Apu7v7ItcD5mhEIvOscWjPF/ccOiLxHaSuCAS2G+3x4GKsAbT8u7zdyamupui8Tg==", - "dev": true, - "dependencies": { - "sourcemap-codec": "^1.4.8" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/micromatch": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", - "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", - "dev": true, - "dependencies": { - "braces": "^3.0.1", - "picomatch": "^2.2.3" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/min-indent": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", - "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/mini-svg-data-uri": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.3.3.tgz", - "integrity": "sha512-+fA2oRcR1dJI/7ITmeQJDrYWks0wodlOz0pAEhKYJ2IVc1z0AnwJUsKY2fzFmPAM3Jo9J0rBx8JAA9QQSJ5PuA==", - "dev": true, - "bin": { - "mini-svg-data-uri": "cli.js" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", - "dev": true - }, - "node_modules/mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "dev": true, - "dependencies": { - "minimist": "^1.2.6" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, - "node_modules/mri": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/mri/-/mri-1.1.6.tgz", - "integrity": "sha512-oi1b3MfbyGa7FJMP9GmLTttni5JoICpYBRlq+x5V16fZbLsnL9N3wFqqIm/nIG43FjUFkFh9Epzp/kzUGUnJxQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/nanoid": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", - "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", - "dev": true, - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "node_modules/natural-compare-lite": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", - "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", - "dev": true - }, - "node_modules/node-releases": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", - "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==", - "dev": true - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/normalize-range": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", - "integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-hash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", - "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, - "node_modules/object-inspect": { - "version": "1.12.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", - "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.assign": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", - "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object.values": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", - "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/optionator": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", - "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", - "dev": true, - "dependencies": { - "@aashutoshrathi/word-wrap": "^1.2.3", - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true - }, - "node_modules/picomatch": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", - "integrity": "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==", - "dev": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss": { - "version": "8.4.16", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.16.tgz", - "integrity": "sha512-ipHE1XBvKzm5xI7hiHCZJCSugxvsdq2mPnsq5+UF+VHCjiBvtDrlxJfMBToWaP9D5XlgNmcFGqoHmUn0EYEaRQ==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - } - ], - "dependencies": { - "nanoid": "^3.3.4", - "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/postcss-import": { - "version": "14.1.0", - "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-14.1.0.tgz", - "integrity": "sha512-flwI+Vgm4SElObFVPpTIT7SU7R3qk2L7PyduMcokiaVKuWv9d/U+Gm/QAd8NDLuykTWTkcrjOeD2Pp1rMeBTGw==", - "dev": true, - "dependencies": { - "postcss-value-parser": "^4.0.0", - "read-cache": "^1.0.0", - "resolve": "^1.1.7" - }, - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "postcss": "^8.0.0" - } - }, - "node_modules/postcss-js": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.0.tgz", - "integrity": "sha512-77QESFBwgX4irogGVPgQ5s07vLvFqWr228qZY+w6lW599cRlK/HmnlivnnVUxkjHnCu4J16PDMHcH+e+2HbvTQ==", - "dev": true, - "dependencies": { - "camelcase-css": "^2.0.1" - }, - "engines": { - "node": "^12 || ^14 || >= 16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - "peerDependencies": { - "postcss": "^8.3.3" - } - }, - "node_modules/postcss-load-config": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.4.tgz", - "integrity": "sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==", - "dev": true, - "dependencies": { - "lilconfig": "^2.0.5", - "yaml": "^1.10.2" - }, - "engines": { - "node": ">= 10" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - "peerDependencies": { - "postcss": ">=8.0.9", - "ts-node": ">=9.0.0" - }, - "peerDependenciesMeta": { - "postcss": { - "optional": true - }, - "ts-node": { - "optional": true - } - } - }, - "node_modules/postcss-nested": { - "version": "5.0.6", - "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-5.0.6.tgz", - "integrity": "sha512-rKqm2Fk0KbA8Vt3AdGN0FB9OBOMDVajMG6ZCf/GoHgdxUJ4sBFp0A/uMIRm+MJUdo33YXEtjqIz8u7DAp8B7DA==", - "dev": true, - "dependencies": { - "postcss-selector-parser": "^6.0.6" - }, - "engines": { - "node": ">=12.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - "peerDependencies": { - "postcss": "^8.2.14" - } - }, - "node_modules/postcss-safe-parser": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-6.0.0.tgz", - "integrity": "sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ==", - "dev": true, - "engines": { - "node": ">=12.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - "peerDependencies": { - "postcss": "^8.3.3" - } - }, - "node_modules/postcss-selector-parser": { - "version": "6.0.10", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz", - "integrity": "sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==", - "dev": true, - "dependencies": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/postcss-value-parser": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", - "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", - "dev": true - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/prettier": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.0.tgz", - "integrity": "sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w==", - "dev": true, - "bin": { - "prettier": "bin-prettier.js" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", - "dev": true, - "dependencies": { - "fast-diff": "^1.1.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/prettier-plugin-svelte": { - "version": "2.10.1", - "resolved": "https://registry.npmjs.org/prettier-plugin-svelte/-/prettier-plugin-svelte-2.10.1.tgz", - "integrity": "sha512-Wlq7Z5v2ueCubWo0TZzKc9XHcm7TDxqcuzRuGd0gcENfzfT4JZ9yDlCbEgxWgiPmLHkBjfOtpAWkcT28MCDpUQ==", - "dev": true, - "peerDependencies": { - "prettier": "^1.16.4 || ^2.0.0", - "svelte": "^3.2.0 || ^4.0.0-next.0" - } - }, - "node_modules/prettier-plugin-tailwindcss": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.3.0.tgz", - "integrity": "sha512-009/Xqdy7UmkcTBpwlq7jsViDqXAYSOMLDrHAdTMlVZOrKfM2o9Ci7EMWTMZ7SkKBFTG04UM9F9iM2+4i6boDA==", - "dev": true, - "engines": { - "node": ">=12.17.0" - }, - "peerDependencies": { - "@ianvs/prettier-plugin-sort-imports": "*", - "@prettier/plugin-pug": "*", - "@shopify/prettier-plugin-liquid": "*", - "@shufo/prettier-plugin-blade": "*", - "@trivago/prettier-plugin-sort-imports": "*", - "prettier": ">=2.2.0", - "prettier-plugin-astro": "*", - "prettier-plugin-css-order": "*", - "prettier-plugin-import-sort": "*", - "prettier-plugin-jsdoc": "*", - "prettier-plugin-marko": "*", - "prettier-plugin-organize-attributes": "*", - "prettier-plugin-organize-imports": "*", - "prettier-plugin-style-order": "*", - "prettier-plugin-svelte": "*", - "prettier-plugin-twig-melody": "*" - }, - "peerDependenciesMeta": { - "@ianvs/prettier-plugin-sort-imports": { - "optional": true - }, - "@prettier/plugin-pug": { - "optional": true - }, - "@shopify/prettier-plugin-liquid": { - "optional": true - }, - "@shufo/prettier-plugin-blade": { - "optional": true - }, - "@trivago/prettier-plugin-sort-imports": { - "optional": true - }, - "prettier-plugin-astro": { - "optional": true - }, - "prettier-plugin-css-order": { - "optional": true - }, - "prettier-plugin-import-sort": { - "optional": true - }, - "prettier-plugin-jsdoc": { - "optional": true - }, - "prettier-plugin-marko": { - "optional": true - }, - "prettier-plugin-organize-attributes": { - "optional": true - }, - "prettier-plugin-organize-imports": { - "optional": true - }, - "prettier-plugin-style-order": { - "optional": true - }, - "prettier-plugin-svelte": { - "optional": true - }, - "prettier-plugin-twig-melody": { - "optional": true - } - } - }, - "node_modules/punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/quick-lru": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", - "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/read-cache": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", - "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", - "dev": true, - "dependencies": { - "pify": "^2.3.0" - } - }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/regexp.prototype.flags": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", - "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "functions-have-names": "^1.2.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve": { - "version": "1.22.4", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.4.tgz", - "integrity": "sha512-PXNdCiPqDqeUou+w1C2eTQbNfxKSuMxqTCuvlmmMsk1NWHL5fRrhY6Pl0qEYYc6+QqGClco1Qj8XnjPego4wfg==", - "dev": true, - "dependencies": { - "is-core-module": "^2.13.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true, - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/rollup": { - "version": "2.70.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.70.1.tgz", - "integrity": "sha512-CRYsI5EuzLbXdxC6RnYhOuRdtz4bhejPMSWjsFLfVM/7w/85n2szZv6yExqUXsBdz5KT8eoubeyDUDjhLHEslA==", - "dev": true, - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=10.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/sade": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/sade/-/sade-1.7.4.tgz", - "integrity": "sha512-y5yauMD93rX840MwUJr7C1ysLFBgMspsdTo4UVrDg3fXDvtwOyIqykhVAAm6fk/3au77773itJStObgK+LKaiA==", - "dev": true, - "dependencies": { - "mri": "^1.1.0" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/safe-array-concat": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.0.tgz", - "integrity": "sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.0", - "has-symbols": "^1.0.3", - "isarray": "^2.0.5" - }, - "engines": { - "node": ">=0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safe-regex-test": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", - "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "is-regex": "^1.1.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/sander": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/sander/-/sander-0.5.1.tgz", - "integrity": "sha512-3lVqBir7WuKDHGrKRDn/1Ye3kwpXaDOMsiRP1wd6wpZW56gJhsbp5RqQpA6JG/P+pkXizygnr1dKR8vzWaVsfA==", - "dev": true, - "dependencies": { - "es6-promise": "^3.1.2", - "graceful-fs": "^4.1.3", - "mkdirp": "^0.5.1", - "rimraf": "^2.5.2" - } - }, - "node_modules/sander/node_modules/rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - } - }, - "node_modules/sass": { - "version": "1.66.1", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.66.1.tgz", - "integrity": "sha512-50c+zTsZOJVgFfTgwwEzkjA3/QACgdNsKueWPyAR0mRINIvLAStVQBbPg14iuqEQ74NPDbXzJARJ/O4SI1zftA==", - "dev": true, - "optional": true, - "peer": true, - "dependencies": { - "chokidar": ">=3.0.0 <4.0.0", - "immutable": "^4.0.0", - "source-map-js": ">=0.6.2 <2.0.0" - }, - "bin": { - "sass": "sass.js" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/sorcery": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/sorcery/-/sorcery-0.11.0.tgz", - "integrity": "sha512-J69LQ22xrQB1cIFJhPfgtLuI6BpWRiWu1Y3vSsIwK/eAScqJxd/+CJlUuHQRdX2C9NGFamq+KqNywGgaThwfHw==", - "dev": true, - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.4.14", - "buffer-crc32": "^0.2.5", - "minimist": "^1.2.0", - "sander": "^0.5.0" - }, - "bin": { - "sorcery": "bin/sorcery" - } - }, - "node_modules/source-map-js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sourcemap-codec": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", - "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", - "dev": true - }, - "node_modules/string.prototype.trim": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", - "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimend": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", - "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", - "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/strip-indent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", - "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", - "dev": true, - "dependencies": { - "min-indent": "^1.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/svelte": { - "version": "3.59.2", - "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.59.2.tgz", - "integrity": "sha512-vzSyuGr3eEoAtT/A6bmajosJZIUWySzY2CzB3w2pgPvnkUjGqlDnsNnA0PMO+mMAhuyMul6C2uuZzY6ELSkzyA==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/svelte-check": { - "version": "3.4.4", - "resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-3.4.4.tgz", - "integrity": "sha512-Uys9+R65cj8TmP8f5UpS7B2xKpNLYNxEWJsA5ZoKcWq/uwvABFF7xS6iPQGLoa7hxz0DS6xU60YFpmq06E4JxA==", - "dev": true, - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.17", - "chokidar": "^3.4.1", - "fast-glob": "^3.2.7", - "import-fresh": "^3.2.1", - "picocolors": "^1.0.0", - "sade": "^1.7.4", - "svelte-preprocess": "^5.0.3", - "typescript": "^5.0.3" - }, - "bin": { - "svelte-check": "bin/svelte-check" - }, - "peerDependencies": { - "svelte": "^3.55.0 || ^4.0.0-next.0 || ^4.0.0" - } - }, - "node_modules/svelte-check/node_modules/typescript": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", - "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/svelte-eslint-parser": { - "version": "0.22.4", - "resolved": "https://registry.npmjs.org/svelte-eslint-parser/-/svelte-eslint-parser-0.22.4.tgz", - "integrity": "sha512-3ra5jhS9u1LaeqvxuMSKbCiB4WXB4BZODFHDQWdGfGJMC42UMouXH3XppFjdsOPsWNZj/kT/SfyiXbieE/cTnA==", - "dev": true, - "dependencies": { - "eslint-scope": "^7.0.0", - "eslint-visitor-keys": "^3.0.0", - "espree": "^9.0.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ota-meshi" - }, - "peerDependencies": { - "svelte": "^3.37.0" - } - }, - "node_modules/svelte-hmr": { - "version": "0.14.11", - "resolved": "https://registry.npmjs.org/svelte-hmr/-/svelte-hmr-0.14.11.tgz", - "integrity": "sha512-R9CVfX6DXxW1Kn45Jtmx+yUe+sPhrbYSUp7TkzbW0jI5fVPn6lsNG9NEs5dFg5qRhFNAoVdRw5qQDLALNKhwbQ==", - "dev": true, - "engines": { - "node": "^12.20 || ^14.13.1 || >= 16" - }, - "peerDependencies": { - "svelte": ">=3.19.0" - } - }, - "node_modules/svelte-preprocess": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/svelte-preprocess/-/svelte-preprocess-5.0.4.tgz", - "integrity": "sha512-ABia2QegosxOGsVlsSBJvoWeXy1wUKSfF7SWJdTjLAbx/Y3SrVevvvbFNQqrSJw89+lNSsM58SipmZJ5SRi5iw==", - "dev": true, - "hasInstallScript": true, - "dependencies": { - "@types/pug": "^2.0.6", - "detect-indent": "^6.1.0", - "magic-string": "^0.27.0", - "sorcery": "^0.11.0", - "strip-indent": "^3.0.0" - }, - "engines": { - "node": ">= 14.10.0" - }, - "peerDependencies": { - "@babel/core": "^7.10.2", - "coffeescript": "^2.5.1", - "less": "^3.11.3 || ^4.0.0", - "postcss": "^7 || ^8", - "postcss-load-config": "^2.1.0 || ^3.0.0 || ^4.0.0", - "pug": "^3.0.0", - "sass": "^1.26.8", - "stylus": "^0.55.0", - "sugarss": "^2.0.0 || ^3.0.0 || ^4.0.0", - "svelte": "^3.23.0 || ^4.0.0-next.0 || ^4.0.0", - "typescript": ">=3.9.5 || ^4.0.0 || ^5.0.0" - }, - "peerDependenciesMeta": { - "@babel/core": { - "optional": true - }, - "coffeescript": { - "optional": true - }, - "less": { - "optional": true - }, - "postcss": { - "optional": true - }, - "postcss-load-config": { - "optional": true - }, - "pug": { - "optional": true - }, - "sass": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "typescript": { - "optional": true - } - } - }, - "node_modules/svelte-preprocess/node_modules/magic-string": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.27.0.tgz", - "integrity": "sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==", - "dev": true, - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.4.13" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/svg-element-attributes": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/svg-element-attributes/-/svg-element-attributes-1.3.1.tgz", - "integrity": "sha512-Bh05dSOnJBf3miNMqpsormfNtfidA/GxQVakhtn0T4DECWKeXQRQUceYjJ+OxYiiLdGe4Jo9iFV8wICFapFeIA==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/tailwindcss": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.1.8.tgz", - "integrity": "sha512-YSneUCZSFDYMwk+TGq8qYFdCA3yfBRdBlS7txSq0LUmzyeqRe3a8fBQzbz9M3WS/iFT4BNf/nmw9mEzrnSaC0g==", - "dev": true, - "dependencies": { - "arg": "^5.0.2", - "chokidar": "^3.5.3", - "color-name": "^1.1.4", - "detective": "^5.2.1", - "didyoumean": "^1.2.2", - "dlv": "^1.1.3", - "fast-glob": "^3.2.11", - "glob-parent": "^6.0.2", - "is-glob": "^4.0.3", - "lilconfig": "^2.0.6", - "normalize-path": "^3.0.0", - "object-hash": "^3.0.0", - "picocolors": "^1.0.0", - "postcss": "^8.4.14", - "postcss-import": "^14.1.0", - "postcss-js": "^4.0.0", - "postcss-load-config": "^3.1.4", - "postcss-nested": "5.0.6", - "postcss-selector-parser": "^6.0.10", - "postcss-value-parser": "^4.2.0", - "quick-lru": "^5.1.1", - "resolve": "^1.22.1" - }, - "bin": { - "tailwind": "lib/cli.js", - "tailwindcss": "lib/cli.js" - }, - "engines": { - "node": ">=12.13.0" - }, - "peerDependencies": { - "postcss": "^8.0.9" - } - }, - "node_modules/tailwindcss/node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/tsconfig-paths": { - "version": "3.14.2", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", - "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", - "dev": true, - "dependencies": { - "@types/json5": "^0.0.29", - "json5": "^1.0.2", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - } - }, - "node_modules/tslib": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.2.0.tgz", - "integrity": "sha512-gS9GVHRU+RGn5KQM2rllAlR3dU6m7AcpJKdtH8gFvQiC4Otgk98XnmMU+nZenHt/+VhnBPWwgrJsyrdcw6i23w==", - "dev": true - }, - "node_modules/tsm": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/tsm/-/tsm-2.2.2.tgz", - "integrity": "sha512-bXkt675NbbqfwRHSSn8kSNEEHvoIUFDM9G6tUENkjEKpAEbrEzieO3PxUiRJylMw8fEGpcf5lSjadzzz12pc2A==", - "dev": true, - "dependencies": { - "esbuild": "^0.14.0" - }, - "bin": { - "tsm": "bin.js" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "dependencies": { - "tslib": "^1.8.1" - }, - "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" - } - }, - "node_modules/tsutils/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/typed-array-buffer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz", - "integrity": "sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.1", - "is-typed-array": "^1.1.10" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/typed-array-byte-length": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz", - "integrity": "sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "has-proto": "^1.0.1", - "is-typed-array": "^1.1.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-byte-offset": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", - "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", - "dev": true, - "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.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-length": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", - "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "is-typed-array": "^1.1.9" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typescript": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz", - "integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.5.tgz", - "integrity": "sha512-dteFFpCyvuDdr9S/ff1ISkKt/9YZxKjI9WlRR99c180GaztJtRa/fn18FdxGVKVsnPY7/a/FDN68mcvUmP4U7Q==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - } - ], - "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - }, - "bin": { - "browserslist-lint": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true - }, - "node_modules/vite": { - "version": "2.9.16", - "resolved": "https://registry.npmjs.org/vite/-/vite-2.9.16.tgz", - "integrity": "sha512-X+6q8KPyeuBvTQV8AVSnKDvXoBMnTx8zxh54sOwmmuOdxkjMmEJXH2UEchA+vTMps1xw9vL64uwJOWryULg7nA==", - "dev": true, - "dependencies": { - "esbuild": "^0.14.27", - "postcss": "^8.4.13", - "resolve": "^1.22.0", - "rollup": ">=2.59.0 <2.78.0" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": ">=12.2.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - }, - "peerDependencies": { - "less": "*", - "sass": "*", - "stylus": "*" - }, - "peerDependenciesMeta": { - "less": { - "optional": true - }, - "sass": { - "optional": true - }, - "stylus": { - "optional": true - } - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dev": true, - "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-typed-array": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.11.tgz", - "integrity": "sha512-qe9UWWpkeG5yzZ0tNYxDmd7vo58HDBc39mZ0xWWpolAGADdFOzkfamWLDxkOWcvHQKVmdTyQdLD4NOfjLWTKew==", - "dev": true, - "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" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true - }, - "node_modules/xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true, - "engines": { - "node": ">=0.4" - } - }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - }, - "dependencies": { - "@aashutoshrathi/word-wrap": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", - "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", - "dev": true - }, - "@eslint-community/eslint-utils": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", - "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^3.3.0" - } - }, - "@eslint-community/regexpp": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.7.0.tgz", - "integrity": "sha512-+HencqxU7CFJnQb7IKtuNBqS6Yx3Tz4kOL8BJXo+JyeiBm5MEX6pO8onXDkjrkCRlfYXS1Axro15ZjVFe9YgsA==", - "dev": true - }, - "@eslint/eslintrc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.2.tgz", - "integrity": "sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==", - "dev": true, - "requires": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - } - }, - "@eslint/js": { - "version": "8.43.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.43.0.tgz", - "integrity": "sha512-s2UHCoiXfxMvmfzqoN+vrQ84ahUSYde9qNO1MdxmoEhyHWsfmwOpFlwYV+ePJEVc7gFnATGUi376WowX1N7tFg==", - "dev": true - }, - "@humanwhocodes/config-array": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz", - "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==", - "dev": true, - "requires": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", - "minimatch": "^3.0.5" - } - }, - "@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true - }, - "@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", - "dev": true - }, - "@jridgewell/resolve-uri": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", - "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", - "dev": true - }, - "@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", - "dev": true - }, - "@jridgewell/trace-mapping": { - "version": "0.3.19", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz", - "integrity": "sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==", - "dev": true, - "requires": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - } - }, - "@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true - }, - "@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "requires": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - } - }, - "@rollup/pluginutils": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.0.tgz", - "integrity": "sha512-2WUyJNRkyH5p487pGnn4tWAsxhEFKN/pT8CMgHshd5H+IXkOnKvKZwsz5ZWz+YCXkleZRAU5kwbfgF8CPfDRqA==", - "dev": true, - "requires": { - "estree-walker": "^2.0.1", - "picomatch": "^2.2.2" - } - }, - "@sveltejs/adapter-static": { - "version": "1.0.0-next.13", - "resolved": "https://registry.npmjs.org/@sveltejs/adapter-static/-/adapter-static-1.0.0-next.13.tgz", - "integrity": "sha512-zaXJlWK9JfrjrE6nG5etB8kf4DSkbE3H8Ql6gmCk3WjdvpY85a60TMYBU9OK2iunkqpHnPYiMUGEnOGYmWlLYA==", - "dev": true - }, - "@sveltejs/kit": { - "version": "1.0.0-next.173", - "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-1.0.0-next.173.tgz", - "integrity": "sha512-gOnRwCw9O+dXfpUe8GO9PEe20TWiIpgIDjG3zabCjMUV2XLpOsvPCO9j65xCPce00RljQGBuwn+NTYKteg2jvw==", - "dev": true, - "requires": { - "@sveltejs/vite-plugin-svelte": "^1.0.0-next.24", - "cheap-watch": "^1.0.4", - "sade": "^1.7.4", - "vite": "^2.5.7" - } - }, - "@sveltejs/vite-plugin-svelte": { - "version": "1.0.0-next.40", - "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-1.0.0-next.40.tgz", - "integrity": "sha512-DtXF01fYGEJkbC7GntU/7jaq9M1SwyyNCkbDA+cfQSXRpm3H7zbu0M80wSQBSpntdd+hgSdxKCxv4GgX6/zI6w==", - "dev": true, - "requires": { - "@rollup/pluginutils": "^4.2.0", - "debug": "^4.3.3", - "kleur": "^4.1.4", - "magic-string": "^0.26.1", - "svelte-hmr": "^0.14.11" - } - }, - "@tailwindcss/forms": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.4.1.tgz", - "integrity": "sha512-gS9xjCmJjUBz/eP12QlENPLnf0tCx68oYE3mri0GMP5jdtVwLbGUNSRpjsp6NzLAZzZy3ueOwrcqB78Ax6Z84A==", - "dev": true, - "requires": { - "mini-svg-data-uri": "^1.2.3" - } - }, - "@tailwindcss/line-clamp": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/line-clamp/-/line-clamp-0.4.0.tgz", - "integrity": "sha512-HQZo6gfx1D0+DU3nWlNLD5iA6Ef4JAXh0LeD8lOGrJwEDBwwJNKQza6WoXhhY1uQrxOuU8ROxV7CqiQV4CoiLw==", - "dev": true, - "requires": {} - }, - "@types/json-schema": { - "version": "7.0.12", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", - "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==", - "dev": true - }, - "@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true - }, - "@types/pug": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@types/pug/-/pug-2.0.6.tgz", - "integrity": "sha512-SnHmG9wN1UVmagJOnyo/qkk0Z7gejYxOYYmaAwr5u2yFYfsupN3sg10kyzN8Hep/2zbHxCnsumxOoRIRMBwKCg==", - "dev": true - }, - "@types/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-cJRQXpObxfNKkFAZbJl2yjWtJCqELQIdShsogr1d2MilP8dKD9TE/nEKHkJgUNHdGKCQaf9HbIynuV2csLGVLg==", - "dev": true - }, - "@types/tailwindcss": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@types/tailwindcss/-/tailwindcss-2.2.1.tgz", - "integrity": "sha512-raLwtQF+uul9lsvs7+GUizeNrpxRqbnckIu/va5hzPPwZsImZunkyLFAS/1rwEHhhvFMNiMJmTiP5PPGa0oNJA==", - "dev": true - }, - "@typescript-eslint/eslint-plugin": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.11.tgz", - "integrity": "sha512-XxuOfTkCUiOSyBWIvHlUraLw/JT/6Io1365RO6ZuI88STKMavJZPNMU0lFcUTeQXEhHiv64CbxYxBNoDVSmghg==", - "dev": true, - "requires": { - "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.59.11", - "@typescript-eslint/type-utils": "5.59.11", - "@typescript-eslint/utils": "5.59.11", - "debug": "^4.3.4", - "grapheme-splitter": "^1.0.4", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - } - }, - "@typescript-eslint/parser": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.11.tgz", - "integrity": "sha512-s9ZF3M+Nym6CAZEkJJeO2TFHHDsKAM3ecNkLuH4i4s8/RCPnF5JRip2GyviYkeEAcwGMJxkqG9h2dAsnA1nZpA==", - "dev": true, - "requires": { - "@typescript-eslint/scope-manager": "5.59.11", - "@typescript-eslint/types": "5.59.11", - "@typescript-eslint/typescript-estree": "5.59.11", - "debug": "^4.3.4" - } - }, - "@typescript-eslint/scope-manager": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.11.tgz", - "integrity": "sha512-dHFOsxoLFtrIcSj5h0QoBT/89hxQONwmn3FOQ0GOQcLOOXm+MIrS8zEAhs4tWl5MraxCY3ZJpaXQQdFMc2Tu+Q==", - "dev": true, - "requires": { - "@typescript-eslint/types": "5.59.11", - "@typescript-eslint/visitor-keys": "5.59.11" - } - }, - "@typescript-eslint/type-utils": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.11.tgz", - "integrity": "sha512-LZqVY8hMiVRF2a7/swmkStMYSoXMFlzL6sXV6U/2gL5cwnLWQgLEG8tjWPpaE4rMIdZ6VKWwcffPlo1jPfk43g==", - "dev": true, - "requires": { - "@typescript-eslint/typescript-estree": "5.59.11", - "@typescript-eslint/utils": "5.59.11", - "debug": "^4.3.4", - "tsutils": "^3.21.0" - } - }, - "@typescript-eslint/types": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.11.tgz", - "integrity": "sha512-epoN6R6tkvBYSc+cllrz+c2sOFWkbisJZWkOE+y3xHtvYaOE6Wk6B8e114McRJwFRjGvYdJwLXQH5c9osME/AA==", - "dev": true - }, - "@typescript-eslint/typescript-estree": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.11.tgz", - "integrity": "sha512-YupOpot5hJO0maupJXixi6l5ETdrITxeo5eBOeuV7RSKgYdU3G5cxO49/9WRnJq9EMrB7AuTSLH/bqOsXi7wPA==", - "dev": true, - "requires": { - "@typescript-eslint/types": "5.59.11", - "@typescript-eslint/visitor-keys": "5.59.11", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - } - }, - "@typescript-eslint/utils": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.11.tgz", - "integrity": "sha512-didu2rHSOMUdJThLk4aZ1Or8IcO3HzCw/ZvEjTTIfjIrcdd5cvSIwwDy2AOlE7htSNp7QIZ10fLMyRCveesMLg==", - "dev": true, - "requires": { - "@eslint-community/eslint-utils": "^4.2.0", - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.59.11", - "@typescript-eslint/types": "5.59.11", - "@typescript-eslint/typescript-estree": "5.59.11", - "eslint-scope": "^5.1.1", - "semver": "^7.3.7" - }, - "dependencies": { - "eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dev": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - } - }, - "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true - } - } - }, - "@typescript-eslint/visitor-keys": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.11.tgz", - "integrity": "sha512-KGYniTGG3AMTuKF9QBD7EIrvufkB6O6uX3knP73xbKLMpH+QRPcgnCxjWXSHjMRuOxFLovljqQgQpR0c7GvjoA==", - "dev": true, - "requires": { - "@typescript-eslint/types": "5.59.11", - "eslint-visitor-keys": "^3.3.0" - } - }, - "acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true - }, - "acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "requires": {} - }, - "acorn-node": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz", - "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==", - "dev": true, - "requires": { - "acorn": "^7.0.0", - "acorn-walk": "^7.0.0", - "xtend": "^4.0.2" - } - }, - "acorn-walk": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", - "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", - "dev": true - }, - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "anymatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", - "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", - "dev": true, - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "arg": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", - "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", - "dev": true - }, - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "array-buffer-byte-length": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", - "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "is-array-buffer": "^3.0.1" - } - }, - "array-includes": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", - "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "is-string": "^1.0.7" - } - }, - "array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true - }, - "array.prototype.flat": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", - "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - } - }, - "arraybuffer.prototype.slice": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.1.tgz", - "integrity": "sha512-09x0ZWFEjj4WD8PDbykUwo3t9arLn8NIzmmYEJFpYekOAQjpkGSyrQhNoRTcwwcFRu+ycWF78QZ63oWTqSjBcw==", - "dev": true, - "requires": { - "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" - } - }, - "autoprefixer": { - "version": "10.4.8", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.8.tgz", - "integrity": "sha512-75Jr6Q/XpTqEf6D2ltS5uMewJIx5irCU1oBYJrWjFenq/m12WRRrz6g15L1EIoYvPLXTbEry7rDOwrcYNj77xw==", - "dev": true, - "requires": { - "browserslist": "^4.21.3", - "caniuse-lite": "^1.0.30001373", - "fraction.js": "^4.2.0", - "normalize-range": "^0.1.2", - "picocolors": "^1.0.0", - "postcss-value-parser": "^4.2.0" - } - }, - "available-typed-arrays": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", - "dev": true - }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "dev": true - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "requires": { - "fill-range": "^7.0.1" - } - }, - "browserslist": { - "version": "4.21.3", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.3.tgz", - "integrity": "sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ==", - "dev": true, - "requires": { - "caniuse-lite": "^1.0.30001370", - "electron-to-chromium": "^1.4.202", - "node-releases": "^2.0.6", - "update-browserslist-db": "^1.0.5" - } - }, - "buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", - "dev": true - }, - "call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dev": true, - "requires": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - } - }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true - }, - "camelcase-css": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", - "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", - "dev": true - }, - "caniuse-lite": { - "version": "1.0.30001385", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001385.tgz", - "integrity": "sha512-MpiCqJGhBkHgpyimE9GWmZTnyHyEEM35u115bD3QBrXpjvL/JgcP8cUhKJshfmg4OtEHFenifcK5sZayEw5tvQ==", - "dev": true - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "cheap-watch": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/cheap-watch/-/cheap-watch-1.0.4.tgz", - "integrity": "sha512-QR/9FrtRL5fjfUJBhAKCdi0lSRQ3rVRRum3GF9wDKp2TJbEIMGhUEr2yU8lORzm9Isdjx7/k9S0DFDx+z5VGtw==", - "dev": true - }, - "chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "dev": true, - "requires": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "fsevents": "~2.3.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true - }, - "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, - "cssesc": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", - "dev": true - }, - "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, - "requires": { - "ms": "2.1.2" - } - }, - "deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "define-properties": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", - "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", - "dev": true, - "requires": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - } - }, - "defined": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz", - "integrity": "sha512-Y2caI5+ZwS5c3RiNDJ6u53VhQHv+hHKwhkI1iHvceKUHw9Df6EK2zRLfjejRgMuCuxK7PfSWIMwWecceVvThjQ==", - "dev": true - }, - "detect-indent": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz", - "integrity": "sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==", - "dev": true - }, - "detective": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/detective/-/detective-5.2.1.tgz", - "integrity": "sha512-v9XE1zRnz1wRtgurGu0Bs8uHKFSTdteYZNbIPFVhUZ39L/S79ppMpdmVOZAnoz1jfEFodc48n6MX483Xo3t1yw==", - "dev": true, - "requires": { - "acorn-node": "^1.8.2", - "defined": "^1.0.0", - "minimist": "^1.2.6" - } - }, - "didyoumean": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", - "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==", - "dev": true - }, - "dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, - "requires": { - "path-type": "^4.0.0" - } - }, - "dlv": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", - "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", - "dev": true - }, - "doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "electron-to-chromium": { - "version": "1.4.235", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.235.tgz", - "integrity": "sha512-eNU2SmVZYTzYVA5aAWmhAJbdVil5/8H5nMq6kGD0Yxd4k2uKIuT8YmS46I0QXY7iOoPPcb6jjem9/2xyuH5+XQ==", - "dev": true - }, - "es-abstract": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.1.tgz", - "integrity": "sha512-ioRRcXMO6OFyRpyzV3kE1IIBd4WG5/kltnzdxSCqoP8CMGs/Li+M1uF5o7lOkZVFjDs+NLesthnF66Pg/0q0Lw==", - "dev": true, - "requires": { - "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.5", - "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.10", - "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.10" - } - }, - "es-set-tostringtag": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", - "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", - "dev": true, - "requires": { - "get-intrinsic": "^1.1.3", - "has": "^1.0.3", - "has-tostringtag": "^1.0.0" - } - }, - "es-shim-unscopables": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", - "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", - "dev": true, - "requires": { - "has": "^1.0.3" - } - }, - "es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - } - }, - "es6-promise": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-3.3.1.tgz", - "integrity": "sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==", - "dev": true - }, - "esbuild": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.14.27.tgz", - "integrity": "sha512-MZQt5SywZS3hA9fXnMhR22dv0oPGh6QtjJRIYbgL1AeqAoQZE+Qn5ppGYQAoHv/vq827flj4tIJ79Mrdiwk46Q==", - "dev": true, - "requires": { - "esbuild-android-64": "0.14.27", - "esbuild-android-arm64": "0.14.27", - "esbuild-darwin-64": "0.14.27", - "esbuild-darwin-arm64": "0.14.27", - "esbuild-freebsd-64": "0.14.27", - "esbuild-freebsd-arm64": "0.14.27", - "esbuild-linux-32": "0.14.27", - "esbuild-linux-64": "0.14.27", - "esbuild-linux-arm": "0.14.27", - "esbuild-linux-arm64": "0.14.27", - "esbuild-linux-mips64le": "0.14.27", - "esbuild-linux-ppc64le": "0.14.27", - "esbuild-linux-riscv64": "0.14.27", - "esbuild-linux-s390x": "0.14.27", - "esbuild-netbsd-64": "0.14.27", - "esbuild-openbsd-64": "0.14.27", - "esbuild-sunos-64": "0.14.27", - "esbuild-windows-32": "0.14.27", - "esbuild-windows-64": "0.14.27", - "esbuild-windows-arm64": "0.14.27" - } - }, - "esbuild-android-64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.14.27.tgz", - "integrity": "sha512-LuEd4uPuj/16Y8j6kqy3Z2E9vNY9logfq8Tq+oTE2PZVuNs3M1kj5Qd4O95ee66yDGb3isaOCV7sOLDwtMfGaQ==", - "dev": true, - "optional": true - }, - "esbuild-android-arm64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.27.tgz", - "integrity": "sha512-E8Ktwwa6vX8q7QeJmg8yepBYXaee50OdQS3BFtEHKrzbV45H4foMOeEE7uqdjGQZFBap5VAqo7pvjlyA92wznQ==", - "dev": true, - "optional": true - }, - "esbuild-darwin-64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.27.tgz", - "integrity": "sha512-czw/kXl/1ZdenPWfw9jDc5iuIYxqUxgQ/Q+hRd4/3udyGGVI31r29LCViN2bAJgGvQkqyLGVcG03PJPEXQ5i2g==", - "dev": true, - "optional": true - }, - "esbuild-darwin-arm64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.27.tgz", - "integrity": "sha512-BEsv2U2U4o672oV8+xpXNxN9bgqRCtddQC6WBh4YhXKDcSZcdNh7+6nS+DM2vu7qWIWNA4JbRG24LUUYXysimQ==", - "dev": true, - "optional": true - }, - "esbuild-freebsd-64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.27.tgz", - "integrity": "sha512-7FeiFPGBo+ga+kOkDxtPmdPZdayrSzsV9pmfHxcyLKxu+3oTcajeZlOO1y9HW+t5aFZPiv7czOHM4KNd0tNwCA==", - "dev": true, - "optional": true - }, - "esbuild-freebsd-arm64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.27.tgz", - "integrity": "sha512-8CK3++foRZJluOWXpllG5zwAVlxtv36NpHfsbWS7TYlD8S+QruXltKlXToc/5ZNzBK++l6rvRKELu/puCLc7jA==", - "dev": true, - "optional": true - }, - "esbuild-linux-32": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.27.tgz", - "integrity": "sha512-qhNYIcT+EsYSBClZ5QhLzFzV5iVsP1YsITqblSaztr3+ZJUI+GoK8aXHyzKd7/CKKuK93cxEMJPpfi1dfsOfdw==", - "dev": true, - "optional": true - }, - "esbuild-linux-64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.27.tgz", - "integrity": "sha512-ESjck9+EsHoTaKWlFKJpPZRN26uiav5gkI16RuI8WBxUdLrrAlYuYSndxxKgEn1csd968BX/8yQZATYf/9+/qg==", - "dev": true, - "optional": true - }, - "esbuild-linux-arm": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.27.tgz", - "integrity": "sha512-JnnmgUBdqLQO9hoNZQqNHFWlNpSX82vzB3rYuCJMhtkuaWQEmQz6Lec1UIxJdC38ifEghNTBsF9bbe8dFilnCw==", - "dev": true, - "optional": true - }, - "esbuild-linux-arm64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.27.tgz", - "integrity": "sha512-no6Mi17eV2tHlJnqBHRLekpZ2/VYx+NfGxKcBE/2xOMYwctsanCaXxw4zapvNrGE9X38vefVXLz6YCF8b1EHiQ==", - "dev": true, - "optional": true - }, - "esbuild-linux-mips64le": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.27.tgz", - "integrity": "sha512-NolWP2uOvIJpbwpsDbwfeExZOY1bZNlWE/kVfkzLMsSgqeVcl5YMen/cedRe9mKnpfLli+i0uSp7N+fkKNU27A==", - "dev": true, - "optional": true - }, - "esbuild-linux-ppc64le": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.27.tgz", - "integrity": "sha512-/7dTjDvXMdRKmsSxKXeWyonuGgblnYDn0MI1xDC7J1VQXny8k1qgNp6VmrlsawwnsymSUUiThhkJsI+rx0taNA==", - "dev": true, - "optional": true - }, - "esbuild-linux-riscv64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.27.tgz", - "integrity": "sha512-D+aFiUzOJG13RhrSmZgrcFaF4UUHpqj7XSKrIiCXIj1dkIkFqdrmqMSOtSs78dOtObWiOrFCDDzB24UyeEiNGg==", - "dev": true, - "optional": true - }, - "esbuild-linux-s390x": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.27.tgz", - "integrity": "sha512-CD/D4tj0U4UQjELkdNlZhQ8nDHU5rBn6NGp47Hiz0Y7/akAY5i0oGadhEIg0WCY/HYVXFb3CsSPPwaKcTOW3bg==", - "dev": true, - "optional": true - }, - "esbuild-netbsd-64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.27.tgz", - "integrity": "sha512-h3mAld69SrO1VoaMpYl3a5FNdGRE/Nqc+E8VtHOag4tyBwhCQXxtvDDOAKOUQexBGca0IuR6UayQ4ntSX5ij1Q==", - "dev": true, - "optional": true - }, - "esbuild-openbsd-64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.27.tgz", - "integrity": "sha512-xwSje6qIZaDHXWoPpIgvL+7fC6WeubHHv18tusLYMwL+Z6bEa4Pbfs5IWDtQdHkArtfxEkIZz77944z8MgDxGw==", - "dev": true, - "optional": true - }, - "esbuild-sunos-64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.27.tgz", - "integrity": "sha512-/nBVpWIDjYiyMhuqIqbXXsxBc58cBVH9uztAOIfWShStxq9BNBik92oPQPJ57nzWXRNKQUEFWr4Q98utDWz7jg==", - "dev": true, - "optional": true - }, - "esbuild-windows-32": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.27.tgz", - "integrity": "sha512-Q9/zEjhZJ4trtWhFWIZvS/7RUzzi8rvkoaS9oiizkHTTKd8UxFwn/Mm2OywsAfYymgUYm8+y2b+BKTNEFxUekw==", - "dev": true, - "optional": true - }, - "esbuild-windows-64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.27.tgz", - "integrity": "sha512-b3y3vTSl5aEhWHK66ngtiS/c6byLf6y/ZBvODH1YkBM+MGtVL6jN38FdHUsZasCz9gFwYs/lJMVY9u7GL6wfYg==", - "dev": true, - "optional": true - }, - "esbuild-windows-arm64": { - "version": "0.14.27", - "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.27.tgz", - "integrity": "sha512-I/reTxr6TFMcR5qbIkwRGvldMIaiBu2+MP0LlD7sOlNXrfqIl9uNjsuxFPGEG4IRomjfQ5q8WT+xlF/ySVkqKg==", - "dev": true, - "optional": true - }, - "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "dev": true - }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true - }, - "eslint": { - "version": "8.43.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.43.0.tgz", - "integrity": "sha512-aaCpf2JqqKesMFGgmRPessmVKjcGXqdlAYLLC3THM8t5nBRZRQ+st5WM/hoJXkdioEXLLbXgclUpM0TXo5HX5Q==", - "dev": true, - "requires": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.4.0", - "@eslint/eslintrc": "^2.0.3", - "@eslint/js": "8.43.0", - "@humanwhocodes/config-array": "^0.11.10", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.0", - "eslint-visitor-keys": "^3.4.1", - "espree": "^9.5.2", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "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.1", - "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", - "text-table": "^0.2.0" - }, - "dependencies": { - "glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "requires": { - "is-glob": "^4.0.3" - } - } - } - }, - "eslint-config-prettier": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.3.0.tgz", - "integrity": "sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew==", - "dev": true, - "requires": {} - }, - "eslint-import-resolver-node": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", - "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", - "dev": true, - "requires": { - "debug": "^3.2.7", - "is-core-module": "^2.13.0", - "resolve": "^1.22.4" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - } - } - }, - "eslint-module-utils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", - "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", - "dev": true, - "requires": { - "debug": "^3.2.7" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - } - } - }, - "eslint-plugin-escompat": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-escompat/-/eslint-plugin-escompat-3.4.0.tgz", - "integrity": "sha512-ufTPv8cwCxTNoLnTZBFTQ5SxU2w7E7wiMIS7PSxsgP1eAxFjtSaoZ80LRn64hI8iYziE6kJG6gX/ZCJVxh48Bg==", - "dev": true, - "requires": { - "browserslist": "^4.21.0" - } - }, - "eslint-plugin-eslint-comments": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.2.0.tgz", - "integrity": "sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ==", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.5", - "ignore": "^5.0.5" - }, - "dependencies": { - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true - } - } - }, - "eslint-plugin-filenames": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-filenames/-/eslint-plugin-filenames-1.3.2.tgz", - "integrity": "sha512-tqxJTiEM5a0JmRCUYQmxw23vtTxrb2+a3Q2mMOPhFxvt7ZQQJmdiuMby9B/vUAuVMghyP7oET+nIf6EO6CBd/w==", - "dev": true, - "requires": { - "lodash.camelcase": "4.3.0", - "lodash.kebabcase": "4.1.1", - "lodash.snakecase": "4.1.1", - "lodash.upperfirst": "4.3.1" - } - }, - "eslint-plugin-github": { - "version": "4.3.5", - "resolved": "https://registry.npmjs.org/eslint-plugin-github/-/eslint-plugin-github-4.3.5.tgz", - "integrity": "sha512-3OPCn/kkFcTq1aYgJJVKzqzmcOn432eaup79TQ5mpWA11JXgF/KvVmIS1RF6har/gMueINMq1P5wDEFS6YQ/Pw==", - "dev": true, - "requires": { - "@typescript-eslint/eslint-plugin": "^5.1.0", - "@typescript-eslint/parser": "^5.1.0", - "eslint-config-prettier": ">=8.0.0", - "eslint-plugin-escompat": "^3.1.0", - "eslint-plugin-eslint-comments": "^3.2.0", - "eslint-plugin-filenames": "^1.3.2", - "eslint-plugin-i18n-text": "^1.0.1", - "eslint-plugin-import": "^2.25.2", - "eslint-plugin-no-only-tests": "^2.6.0", - "eslint-plugin-prettier": "^3.3.1", - "eslint-rule-documentation": ">=1.0.0", - "prettier": "^2.2.1", - "svg-element-attributes": "^1.3.1" - } - }, - "eslint-plugin-i18n-text": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-i18n-text/-/eslint-plugin-i18n-text-1.0.1.tgz", - "integrity": "sha512-3G3UetST6rdqhqW9SfcfzNYMpQXS7wNkJvp6dsXnjzGiku6Iu5hl3B0kmk6lIcFPwYjhQIY+tXVRtK9TlGT7RA==", - "dev": true, - "requires": {} - }, - "eslint-plugin-import": { - "version": "2.25.4", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.25.4.tgz", - "integrity": "sha512-/KJBASVFxpu0xg1kIBn9AUa8hQVnszpwgE7Ld0lKAlx7Ie87yzEzCgSkekt+le/YVhiaosO4Y14GDAOc41nfxA==", - "dev": true, - "requires": { - "array-includes": "^3.1.4", - "array.prototype.flat": "^1.2.5", - "debug": "^2.6.9", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.6", - "eslint-module-utils": "^2.7.2", - "has": "^1.0.3", - "is-core-module": "^2.8.0", - "is-glob": "^4.0.3", - "minimatch": "^3.0.4", - "object.values": "^1.1.5", - "resolve": "^1.20.0", - "tsconfig-paths": "^3.12.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - } - } - }, - "eslint-plugin-no-only-tests": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-2.6.0.tgz", - "integrity": "sha512-T9SmE/g6UV1uZo1oHAqOvL86XWl7Pl2EpRpnLI8g/bkJu+h7XBCB+1LnubRZ2CUQXj805vh4/CYZdnqtVaEo2Q==", - "dev": true - }, - "eslint-plugin-prettier": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.1.tgz", - "integrity": "sha512-htg25EUYUeIhKHXjOinK4BgCcDwtLHjqaxCDsMy5nbnUMkKFvIhMVCp+5GFUXQ4Nr8lBsPqtGAqBenbpFqAA2g==", - "dev": true, - "requires": { - "prettier-linter-helpers": "^1.0.0" - } - }, - "eslint-plugin-svelte": { - "version": "2.15.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-svelte/-/eslint-plugin-svelte-2.15.0.tgz", - "integrity": "sha512-29RfdKqEPdrT6vRK66Tn8u9UlM0Kxq/JfLtmdimMbvHfb3tXMNyYN0sW5ontQRFea7mf5qH/mr1kDMzz0vOFHw==", - "dev": true, - "requires": { - "@jridgewell/sourcemap-codec": "^1.4.14", - "debug": "^4.3.1", - "eslint-utils": "^3.0.0", - "esutils": "^2.0.3", - "known-css-properties": "^0.26.0", - "postcss": "^8.4.5", - "postcss-load-config": "^3.1.4", - "postcss-safe-parser": "^6.0.0", - "svelte-eslint-parser": "^0.22.0" - } - }, - "eslint-plugin-unused-imports": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-2.0.0.tgz", - "integrity": "sha512-3APeS/tQlTrFa167ThtP0Zm0vctjr4M44HMpeg1P4bK6wItarumq0Ma82xorMKdFsWpphQBlRPzw/pxiVELX1A==", - "dev": true, - "requires": { - "eslint-rule-composer": "^0.3.0" - } - }, - "eslint-rule-composer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz", - "integrity": "sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==", - "dev": true - }, - "eslint-rule-documentation": { - "version": "1.0.23", - "resolved": "https://registry.npmjs.org/eslint-rule-documentation/-/eslint-rule-documentation-1.0.23.tgz", - "integrity": "sha512-pWReu3fkohwyvztx/oQWWgld2iad25TfUdi6wvhhaDPIQjHU/pyvlKgXFw1kX31SQK2Nq9MH+vRDWB0ZLy8fYw==", - "dev": true - }, - "eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", - "dev": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - } - }, - "eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^2.0.0" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true - } - } - }, - "eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true - }, - "espree": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", - "dev": true, - "requires": { - "acorn": "^8.9.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - }, - "dependencies": { - "acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", - "dev": true - } - } - }, - "esquery": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", - "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", - "dev": true, - "requires": { - "estraverse": "^5.1.0" - } - }, - "esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "requires": { - "estraverse": "^5.2.0" - } - }, - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - }, - "estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", - "dev": true - }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true - }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "fast-diff": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", - "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", - "dev": true - }, - "fast-glob": { - "version": "3.2.11", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz", - "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - } - }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "fastq": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", - "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", - "dev": true, - "requires": { - "reusify": "^1.0.4" - } - }, - "file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "dev": true, - "requires": { - "flat-cache": "^3.0.4" - } - }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "requires": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - } - }, - "flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", - "dev": true, - "requires": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" - } - }, - "flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "dev": true - }, - "for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "dev": true, - "requires": { - "is-callable": "^1.1.3" - } - }, - "fraction.js": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", - "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==", - "dev": true - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true - }, - "fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "optional": true - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "function.prototype.name": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0", - "functions-have-names": "^1.2.2" - } - }, - "functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true - }, - "get-intrinsic": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", - "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3" - } - }, - "get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - } - }, - "glob": { - "version": "7.1.7", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", - "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - }, - "globals": { - "version": "13.21.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.21.0.tgz", - "integrity": "sha512-ybyme3s4yy/t/3s35bewwXKOf7cvzfreG2lH0lZl0JB7I4GxRP2ghxOK/Nb9EkRXdbBXZLfq/p/0W2JUONB/Gg==", - "dev": true, - "requires": { - "type-fest": "^0.20.2" - } - }, - "globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", - "dev": true, - "requires": { - "define-properties": "^1.1.3" - } - }, - "globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, - "requires": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - } - }, - "gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dev": true, - "requires": { - "get-intrinsic": "^1.1.3" - } - }, - "graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true - }, - "grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", - "dev": true - }, - "graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", - "dev": true, - "requires": { - "get-intrinsic": "^1.1.1" - } - }, - "has-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", - "dev": true - }, - "has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "dev": true - }, - "has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "dev": true, - "requires": { - "has-symbols": "^1.0.2" - } - }, - "ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", - "dev": true - }, - "immutable": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.3.tgz", - "integrity": "sha512-808ZFYMsIRAjLAu5xkKo0TsbY9LBy9H5MazTKIEHerNkg0ymgilGfBPMR/3G7d/ihGmuK2Hw8S1izY2d3kd3wA==", - "dev": true, - "optional": true, - "peer": true - }, - "import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, - "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "internal-slot": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", - "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", - "dev": true, - "requires": { - "get-intrinsic": "^1.2.0", - "has": "^1.0.3", - "side-channel": "^1.0.4" - } - }, - "is-array-buffer": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", - "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.0", - "is-typed-array": "^1.1.10" - } - }, - "is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, - "requires": { - "has-bigints": "^1.0.1" - } - }, - "is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "requires": { - "binary-extensions": "^2.0.0" - } - }, - "is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true - }, - "is-core-module": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz", - "integrity": "sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==", - "dev": true, - "requires": { - "has": "^1.0.3" - } - }, - "is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true - }, - "is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", - "dev": true - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - }, - "is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true - }, - "is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2" - } - }, - "is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dev": true, - "requires": { - "has-symbols": "^1.0.2" - } - }, - "is-typed-array": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz", - "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==", - "dev": true, - "requires": { - "which-typed-array": "^1.1.11" - } - }, - "is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2" - } - }, - "isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "requires": { - "argparse": "^2.0.1" - } - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "dev": true, - "requires": { - "minimist": "^1.2.0" - } - }, - "kleur": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.4.tgz", - "integrity": "sha512-8QADVssbrFjivHWQU7KkMgptGTl6WAcSdlbBPY4uNF+mWr6DGcKrvY2w4FQJoXch7+fKMjj0dRrL75vk3k23OA==", - "dev": true - }, - "known-css-properties": { - "version": "0.26.0", - "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.26.0.tgz", - "integrity": "sha512-5FZRzrZzNTBruuurWpvZnvP9pum+fe0HcK8z/ooo+U+Hmp4vtbyp1/QDsqmufirXy4egGzbaH/y2uCZf+6W5Kg==", - "dev": true - }, - "levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - } - }, - "lilconfig": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.6.tgz", - "integrity": "sha512-9JROoBW7pobfsx+Sq2JsASvCo6Pfo6WWoUW79HuB1BCoBXD4PLWJPqDF6fNj67pqBYTbAHkE57M1kS/+L1neOg==", - "dev": true - }, - "locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "requires": { - "p-locate": "^5.0.0" - } - }, - "lodash.camelcase": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", - "dev": true - }, - "lodash.kebabcase": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz", - "integrity": "sha512-N8XRTIMMqqDgSy4VLKPnJ/+hpGZN+PHQiJnSenYqPaVV/NCqEogTnAdZLQiGKhxX+JCs8waWq2t1XHWKOmlY8g==", - "dev": true - }, - "lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "lodash.snakecase": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", - "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==", - "dev": true - }, - "lodash.upperfirst": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz", - "integrity": "sha512-sReKOYJIJf74dhJONhU4e0/shzi1trVbSWDOhKYE5XV2O+H7Sb2Dihwuc7xWxVl+DgFPyTqIN3zMfT9cq5iWDg==", - "dev": true - }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "magic-string": { - "version": "0.26.1", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.26.1.tgz", - "integrity": "sha512-ndThHmvgtieXe8J/VGPjG+Apu7v7ItcD5mhEIvOscWjPF/ccOiLxHaSuCAS2G+3x4GKsAbT8u7zdyamupui8Tg==", - "dev": true, - "requires": { - "sourcemap-codec": "^1.4.8" - } - }, - "merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true - }, - "micromatch": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", - "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", - "dev": true, - "requires": { - "braces": "^3.0.1", - "picomatch": "^2.2.3" - } - }, - "min-indent": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", - "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", - "dev": true - }, - "mini-svg-data-uri": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.3.3.tgz", - "integrity": "sha512-+fA2oRcR1dJI/7ITmeQJDrYWks0wodlOz0pAEhKYJ2IVc1z0AnwJUsKY2fzFmPAM3Jo9J0rBx8JAA9QQSJ5PuA==", - "dev": true - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", - "dev": true - }, - "mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "dev": true, - "requires": { - "minimist": "^1.2.6" - } - }, - "mri": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/mri/-/mri-1.1.6.tgz", - "integrity": "sha512-oi1b3MfbyGa7FJMP9GmLTttni5JoICpYBRlq+x5V16fZbLsnL9N3wFqqIm/nIG43FjUFkFh9Epzp/kzUGUnJxQ==", - "dev": true - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "nanoid": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", - "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", - "dev": true - }, - "natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "natural-compare-lite": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", - "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", - "dev": true - }, - "node-releases": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", - "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==", - "dev": true - }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true - }, - "normalize-range": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", - "integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=", - "dev": true - }, - "object-hash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", - "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", - "dev": true - }, - "object-inspect": { - "version": "1.12.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", - "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", - "dev": true - }, - "object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true - }, - "object.assign": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", - "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - } - }, - "object.values": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", - "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, - "requires": { - "wrappy": "1" - } - }, - "optionator": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", - "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", - "dev": true, - "requires": { - "@aashutoshrathi/word-wrap": "^1.2.3", - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0" - } - }, - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - }, - "p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "requires": { - "p-limit": "^3.0.2" - } - }, - "parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "requires": { - "callsites": "^3.0.0" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true - }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true - }, - "path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true - }, - "picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true - }, - "picomatch": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", - "integrity": "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==", - "dev": true - }, - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", - "dev": true - }, - "postcss": { - "version": "8.4.16", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.16.tgz", - "integrity": "sha512-ipHE1XBvKzm5xI7hiHCZJCSugxvsdq2mPnsq5+UF+VHCjiBvtDrlxJfMBToWaP9D5XlgNmcFGqoHmUn0EYEaRQ==", - "dev": true, - "requires": { - "nanoid": "^3.3.4", - "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" - } - }, - "postcss-import": { - "version": "14.1.0", - "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-14.1.0.tgz", - "integrity": "sha512-flwI+Vgm4SElObFVPpTIT7SU7R3qk2L7PyduMcokiaVKuWv9d/U+Gm/QAd8NDLuykTWTkcrjOeD2Pp1rMeBTGw==", - "dev": true, - "requires": { - "postcss-value-parser": "^4.0.0", - "read-cache": "^1.0.0", - "resolve": "^1.1.7" - } - }, - "postcss-js": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.0.tgz", - "integrity": "sha512-77QESFBwgX4irogGVPgQ5s07vLvFqWr228qZY+w6lW599cRlK/HmnlivnnVUxkjHnCu4J16PDMHcH+e+2HbvTQ==", - "dev": true, - "requires": { - "camelcase-css": "^2.0.1" - } - }, - "postcss-load-config": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.4.tgz", - "integrity": "sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==", - "dev": true, - "requires": { - "lilconfig": "^2.0.5", - "yaml": "^1.10.2" - } - }, - "postcss-nested": { - "version": "5.0.6", - "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-5.0.6.tgz", - "integrity": "sha512-rKqm2Fk0KbA8Vt3AdGN0FB9OBOMDVajMG6ZCf/GoHgdxUJ4sBFp0A/uMIRm+MJUdo33YXEtjqIz8u7DAp8B7DA==", - "dev": true, - "requires": { - "postcss-selector-parser": "^6.0.6" - } - }, - "postcss-safe-parser": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-6.0.0.tgz", - "integrity": "sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ==", - "dev": true, - "requires": {} - }, - "postcss-selector-parser": { - "version": "6.0.10", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz", - "integrity": "sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==", - "dev": true, - "requires": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - } - }, - "postcss-value-parser": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", - "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", - "dev": true - }, - "prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true - }, - "prettier": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.0.tgz", - "integrity": "sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w==", - "dev": true - }, - "prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", - "dev": true, - "requires": { - "fast-diff": "^1.1.2" - } - }, - "prettier-plugin-svelte": { - "version": "2.10.1", - "resolved": "https://registry.npmjs.org/prettier-plugin-svelte/-/prettier-plugin-svelte-2.10.1.tgz", - "integrity": "sha512-Wlq7Z5v2ueCubWo0TZzKc9XHcm7TDxqcuzRuGd0gcENfzfT4JZ9yDlCbEgxWgiPmLHkBjfOtpAWkcT28MCDpUQ==", - "dev": true, - "requires": {} - }, - "prettier-plugin-tailwindcss": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.3.0.tgz", - "integrity": "sha512-009/Xqdy7UmkcTBpwlq7jsViDqXAYSOMLDrHAdTMlVZOrKfM2o9Ci7EMWTMZ7SkKBFTG04UM9F9iM2+4i6boDA==", - "dev": true, - "requires": {} - }, - "punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", - "dev": true - }, - "queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true - }, - "quick-lru": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", - "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", - "dev": true - }, - "read-cache": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", - "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", - "dev": true, - "requires": { - "pify": "^2.3.0" - } - }, - "readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "requires": { - "picomatch": "^2.2.1" - } - }, - "regexp.prototype.flags": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", - "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "functions-have-names": "^1.2.3" - } - }, - "resolve": { - "version": "1.22.4", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.4.tgz", - "integrity": "sha512-PXNdCiPqDqeUou+w1C2eTQbNfxKSuMxqTCuvlmmMsk1NWHL5fRrhY6Pl0qEYYc6+QqGClco1Qj8XnjPego4wfg==", - "dev": true, - "requires": { - "is-core-module": "^2.13.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - } - }, - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true - }, - "reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true - }, - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, - "rollup": { - "version": "2.70.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.70.1.tgz", - "integrity": "sha512-CRYsI5EuzLbXdxC6RnYhOuRdtz4bhejPMSWjsFLfVM/7w/85n2szZv6yExqUXsBdz5KT8eoubeyDUDjhLHEslA==", - "dev": true, - "requires": { - "fsevents": "~2.3.2" - } - }, - "run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "requires": { - "queue-microtask": "^1.2.2" - } - }, - "sade": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/sade/-/sade-1.7.4.tgz", - "integrity": "sha512-y5yauMD93rX840MwUJr7C1ysLFBgMspsdTo4UVrDg3fXDvtwOyIqykhVAAm6fk/3au77773itJStObgK+LKaiA==", - "dev": true, - "requires": { - "mri": "^1.1.0" - } - }, - "safe-array-concat": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.0.tgz", - "integrity": "sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.0", - "has-symbols": "^1.0.3", - "isarray": "^2.0.5" - } - }, - "safe-regex-test": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", - "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "is-regex": "^1.1.4" - } - }, - "sander": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/sander/-/sander-0.5.1.tgz", - "integrity": "sha512-3lVqBir7WuKDHGrKRDn/1Ye3kwpXaDOMsiRP1wd6wpZW56gJhsbp5RqQpA6JG/P+pkXizygnr1dKR8vzWaVsfA==", - "dev": true, - "requires": { - "es6-promise": "^3.1.2", - "graceful-fs": "^4.1.3", - "mkdirp": "^0.5.1", - "rimraf": "^2.5.2" - }, - "dependencies": { - "rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - } - } - }, - "sass": { - "version": "1.66.1", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.66.1.tgz", - "integrity": "sha512-50c+zTsZOJVgFfTgwwEzkjA3/QACgdNsKueWPyAR0mRINIvLAStVQBbPg14iuqEQ74NPDbXzJARJ/O4SI1zftA==", - "dev": true, - "optional": true, - "peer": true, - "requires": { - "chokidar": ">=3.0.0 <4.0.0", - "immutable": "^4.0.0", - "source-map-js": ">=0.6.2 <2.0.0" - } - }, - "semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true - }, - "side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dev": true, - "requires": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - } - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true - }, - "sorcery": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/sorcery/-/sorcery-0.11.0.tgz", - "integrity": "sha512-J69LQ22xrQB1cIFJhPfgtLuI6BpWRiWu1Y3vSsIwK/eAScqJxd/+CJlUuHQRdX2C9NGFamq+KqNywGgaThwfHw==", - "dev": true, - "requires": { - "@jridgewell/sourcemap-codec": "^1.4.14", - "buffer-crc32": "^0.2.5", - "minimist": "^1.2.0", - "sander": "^0.5.0" - } - }, - "source-map-js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", - "dev": true - }, - "sourcemap-codec": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", - "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", - "dev": true - }, - "string.prototype.trim": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", - "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "string.prototype.trimend": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", - "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "string.prototype.trimstart": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", - "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true - }, - "strip-indent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", - "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", - "dev": true, - "requires": { - "min-indent": "^1.0.0" - } - }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true - }, - "svelte": { - "version": "3.59.2", - "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.59.2.tgz", - "integrity": "sha512-vzSyuGr3eEoAtT/A6bmajosJZIUWySzY2CzB3w2pgPvnkUjGqlDnsNnA0PMO+mMAhuyMul6C2uuZzY6ELSkzyA==", - "dev": true - }, - "svelte-check": { - "version": "3.4.4", - "resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-3.4.4.tgz", - "integrity": "sha512-Uys9+R65cj8TmP8f5UpS7B2xKpNLYNxEWJsA5ZoKcWq/uwvABFF7xS6iPQGLoa7hxz0DS6xU60YFpmq06E4JxA==", - "dev": true, - "requires": { - "@jridgewell/trace-mapping": "^0.3.17", - "chokidar": "^3.4.1", - "fast-glob": "^3.2.7", - "import-fresh": "^3.2.1", - "picocolors": "^1.0.0", - "sade": "^1.7.4", - "svelte-preprocess": "^5.0.3", - "typescript": "^5.0.3" - }, - "dependencies": { - "typescript": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", - "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", - "dev": true - } - } - }, - "svelte-eslint-parser": { - "version": "0.22.4", - "resolved": "https://registry.npmjs.org/svelte-eslint-parser/-/svelte-eslint-parser-0.22.4.tgz", - "integrity": "sha512-3ra5jhS9u1LaeqvxuMSKbCiB4WXB4BZODFHDQWdGfGJMC42UMouXH3XppFjdsOPsWNZj/kT/SfyiXbieE/cTnA==", - "dev": true, - "requires": { - "eslint-scope": "^7.0.0", - "eslint-visitor-keys": "^3.0.0", - "espree": "^9.0.0" - } - }, - "svelte-hmr": { - "version": "0.14.11", - "resolved": "https://registry.npmjs.org/svelte-hmr/-/svelte-hmr-0.14.11.tgz", - "integrity": "sha512-R9CVfX6DXxW1Kn45Jtmx+yUe+sPhrbYSUp7TkzbW0jI5fVPn6lsNG9NEs5dFg5qRhFNAoVdRw5qQDLALNKhwbQ==", - "dev": true, - "requires": {} - }, - "svelte-preprocess": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/svelte-preprocess/-/svelte-preprocess-5.0.4.tgz", - "integrity": "sha512-ABia2QegosxOGsVlsSBJvoWeXy1wUKSfF7SWJdTjLAbx/Y3SrVevvvbFNQqrSJw89+lNSsM58SipmZJ5SRi5iw==", - "dev": true, - "requires": { - "@types/pug": "^2.0.6", - "detect-indent": "^6.1.0", - "magic-string": "^0.27.0", - "sorcery": "^0.11.0", - "strip-indent": "^3.0.0" - }, - "dependencies": { - "magic-string": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.27.0.tgz", - "integrity": "sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==", - "dev": true, - "requires": { - "@jridgewell/sourcemap-codec": "^1.4.13" - } - } - } - }, - "svg-element-attributes": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/svg-element-attributes/-/svg-element-attributes-1.3.1.tgz", - "integrity": "sha512-Bh05dSOnJBf3miNMqpsormfNtfidA/GxQVakhtn0T4DECWKeXQRQUceYjJ+OxYiiLdGe4Jo9iFV8wICFapFeIA==", - "dev": true - }, - "tailwindcss": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.1.8.tgz", - "integrity": "sha512-YSneUCZSFDYMwk+TGq8qYFdCA3yfBRdBlS7txSq0LUmzyeqRe3a8fBQzbz9M3WS/iFT4BNf/nmw9mEzrnSaC0g==", - "dev": true, - "requires": { - "arg": "^5.0.2", - "chokidar": "^3.5.3", - "color-name": "^1.1.4", - "detective": "^5.2.1", - "didyoumean": "^1.2.2", - "dlv": "^1.1.3", - "fast-glob": "^3.2.11", - "glob-parent": "^6.0.2", - "is-glob": "^4.0.3", - "lilconfig": "^2.0.6", - "normalize-path": "^3.0.0", - "object-hash": "^3.0.0", - "picocolors": "^1.0.0", - "postcss": "^8.4.14", - "postcss-import": "^14.1.0", - "postcss-js": "^4.0.0", - "postcss-load-config": "^3.1.4", - "postcss-nested": "5.0.6", - "postcss-selector-parser": "^6.0.10", - "postcss-value-parser": "^4.2.0", - "quick-lru": "^5.1.1", - "resolve": "^1.22.1" - }, - "dependencies": { - "glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "requires": { - "is-glob": "^4.0.3" - } - } - } - }, - "text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "requires": { - "is-number": "^7.0.0" - } - }, - "tsconfig-paths": { - "version": "3.14.2", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", - "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", - "dev": true, - "requires": { - "@types/json5": "^0.0.29", - "json5": "^1.0.2", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - } - }, - "tslib": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.2.0.tgz", - "integrity": "sha512-gS9GVHRU+RGn5KQM2rllAlR3dU6m7AcpJKdtH8gFvQiC4Otgk98XnmMU+nZenHt/+VhnBPWwgrJsyrdcw6i23w==", - "dev": true - }, - "tsm": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/tsm/-/tsm-2.2.2.tgz", - "integrity": "sha512-bXkt675NbbqfwRHSSn8kSNEEHvoIUFDM9G6tUENkjEKpAEbrEzieO3PxUiRJylMw8fEGpcf5lSjadzzz12pc2A==", - "dev": true, - "requires": { - "esbuild": "^0.14.0" - } - }, - "tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "requires": { - "tslib": "^1.8.1" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } - } - }, - "type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1" - } - }, - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true - }, - "typed-array-buffer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz", - "integrity": "sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.1", - "is-typed-array": "^1.1.10" - } - }, - "typed-array-byte-length": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz", - "integrity": "sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "has-proto": "^1.0.1", - "is-typed-array": "^1.1.10" - } - }, - "typed-array-byte-offset": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", - "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", - "dev": true, - "requires": { - "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.10" - } - }, - "typed-array-length": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", - "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "is-typed-array": "^1.1.9" - } - }, - "typescript": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz", - "integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==", - "dev": true - }, - "unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - } - }, - "update-browserslist-db": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.5.tgz", - "integrity": "sha512-dteFFpCyvuDdr9S/ff1ISkKt/9YZxKjI9WlRR99c180GaztJtRa/fn18FdxGVKVsnPY7/a/FDN68mcvUmP4U7Q==", - "dev": true, - "requires": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - } - }, - "uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "requires": { - "punycode": "^2.1.0" - } - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true - }, - "vite": { - "version": "2.9.16", - "resolved": "https://registry.npmjs.org/vite/-/vite-2.9.16.tgz", - "integrity": "sha512-X+6q8KPyeuBvTQV8AVSnKDvXoBMnTx8zxh54sOwmmuOdxkjMmEJXH2UEchA+vTMps1xw9vL64uwJOWryULg7nA==", - "dev": true, - "requires": { - "esbuild": "^0.14.27", - "fsevents": "~2.3.2", - "postcss": "^8.4.13", - "resolve": "^1.22.0", - "rollup": ">=2.59.0 <2.78.0" - } - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dev": true, - "requires": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - } - }, - "which-typed-array": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.11.tgz", - "integrity": "sha512-qe9UWWpkeG5yzZ0tNYxDmd7vo58HDBc39mZ0xWWpolAGADdFOzkfamWLDxkOWcvHQKVmdTyQdLD4NOfjLWTKew==", - "dev": true, - "requires": { - "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" - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true - }, - "xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", - "dev": true - }, - "yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true - } - } -} diff --git a/js/package.json b/js/package.json deleted file mode 100644 index 5be1397d1..000000000 --- a/js/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "huggingface-widgets", - "version": "0.0.1", - "scripts": { - "dev": "svelte-kit dev", - "build": "svelte-kit build", - "preview": "svelte-kit preview", - "check": "svelte-check --tsconfig ./tsconfig.json", - "check:watch": "svelte-check --tsconfig ./tsconfig.json --watch", - "lint": "eslint --quiet --fix --ext .js,.mjs,.ts,.svelte", - "lint:all": "npm run lint src", - "prettier": "prettier --write", - "prettier:all": "prettier --write src", - "format:all": "npm run prettier src && npm run lint:all", - "export-task": "tsm src/scripts/export-tasks.ts" - }, - "devDependencies": { - "@sveltejs/adapter-static": "^1.0.0-next.13", - "@sveltejs/kit": "1.0.0-next.173", - "@tailwindcss/forms": "^0.4.1", - "@tailwindcss/line-clamp": "^0.4.0", - "@types/tailwindcss": "^2.2.1", - "@typescript-eslint/eslint-plugin": "^5.59.11", - "@typescript-eslint/parser": "^5.59.11", - "autoprefixer": "^10.4.8", - "eslint": "^8.43.0", - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-github": "^4.3.5", - "eslint-plugin-import": "^2.25.4", - "eslint-plugin-svelte": "^2.15.0", - "eslint-plugin-unused-imports": "^2.0.0", - "postcss": "^8.4.16", - "postcss-load-config": "^3.0.1", - "prettier": "2.3.0", - "prettier-plugin-svelte": "^2.10.1", - "prettier-plugin-tailwindcss": "^0.3.0", - "svelte": "^3.59.2", - "svelte-check": "^3.4.4", - "svelte-preprocess": "^5.0.4", - "tailwindcss": "^3.1.8", - "tslib": "^2.0.0", - "tsm": "^2.2.2", - "typescript": "^5.1.3" - }, - "type": "module" -} diff --git a/js/postcss.config.cjs b/js/postcss.config.cjs deleted file mode 100644 index e873f1a4f..000000000 --- a/js/postcss.config.cjs +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -}; diff --git a/js/src/app.html b/js/src/app.html deleted file mode 100644 index 9ef9f9ce2..000000000 --- a/js/src/app.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - %svelte.head% - - -
%svelte.body%
- - diff --git a/js/src/global.d.ts b/js/src/global.d.ts deleted file mode 100644 index 63908c66c..000000000 --- a/js/src/global.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/js/src/lib/components/DemoThemeSwitcher/DemoThemeSwitcher.svelte b/js/src/lib/components/DemoThemeSwitcher/DemoThemeSwitcher.svelte deleted file mode 100644 index 48b656859..000000000 --- a/js/src/lib/components/DemoThemeSwitcher/DemoThemeSwitcher.svelte +++ /dev/null @@ -1,61 +0,0 @@ - - - -
- {#if darkMode} - - {:else} - - {/if} -
diff --git a/js/src/lib/components/Icons/IconAudioClassification.svelte b/js/src/lib/components/Icons/IconAudioClassification.svelte deleted file mode 100644 index 963570923..000000000 --- a/js/src/lib/components/Icons/IconAudioClassification.svelte +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconAudioToAudio.svelte b/js/src/lib/components/Icons/IconAudioToAudio.svelte deleted file mode 100644 index ae5c4aeef..000000000 --- a/js/src/lib/components/Icons/IconAudioToAudio.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconAutomaticSpeechRecognition.svelte b/js/src/lib/components/Icons/IconAutomaticSpeechRecognition.svelte deleted file mode 100644 index 01b18c541..000000000 --- a/js/src/lib/components/Icons/IconAutomaticSpeechRecognition.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconAzureML.svelte b/js/src/lib/components/Icons/IconAzureML.svelte deleted file mode 100644 index 3fc373b4b..000000000 --- a/js/src/lib/components/Icons/IconAzureML.svelte +++ /dev/null @@ -1,40 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconCaretDown.svelte b/js/src/lib/components/Icons/IconCaretDown.svelte deleted file mode 100644 index ae3574382..000000000 --- a/js/src/lib/components/Icons/IconCaretDown.svelte +++ /dev/null @@ -1,19 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconCaretDownV2.svelte b/js/src/lib/components/Icons/IconCaretDownV2.svelte deleted file mode 100644 index f8b4baac5..000000000 --- a/js/src/lib/components/Icons/IconCaretDownV2.svelte +++ /dev/null @@ -1,11 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconCode.svelte b/js/src/lib/components/Icons/IconCode.svelte deleted file mode 100644 index a84e7b970..000000000 --- a/js/src/lib/components/Icons/IconCode.svelte +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconConversational.svelte b/js/src/lib/components/Icons/IconConversational.svelte deleted file mode 100644 index 38e01c10b..000000000 --- a/js/src/lib/components/Icons/IconConversational.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconCross.svelte b/js/src/lib/components/Icons/IconCross.svelte deleted file mode 100644 index ae6b04ffc..000000000 --- a/js/src/lib/components/Icons/IconCross.svelte +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconDepthEstimation.svelte b/js/src/lib/components/Icons/IconDepthEstimation.svelte deleted file mode 100644 index 83362801b..000000000 --- a/js/src/lib/components/Icons/IconDepthEstimation.svelte +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconDocumentQuestionAnswering.svelte b/js/src/lib/components/Icons/IconDocumentQuestionAnswering.svelte deleted file mode 100644 index 6c1c84297..000000000 --- a/js/src/lib/components/Icons/IconDocumentQuestionAnswering.svelte +++ /dev/null @@ -1,13 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconFeatureExtraction.svelte b/js/src/lib/components/Icons/IconFeatureExtraction.svelte deleted file mode 100644 index c1806a76a..000000000 --- a/js/src/lib/components/Icons/IconFeatureExtraction.svelte +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconFile.svelte b/js/src/lib/components/Icons/IconFile.svelte deleted file mode 100644 index 0d50da5d5..000000000 --- a/js/src/lib/components/Icons/IconFile.svelte +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconFillMask.svelte b/js/src/lib/components/Icons/IconFillMask.svelte deleted file mode 100644 index e096d5a8c..000000000 --- a/js/src/lib/components/Icons/IconFillMask.svelte +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconGraphML.svelte b/js/src/lib/components/Icons/IconGraphML.svelte deleted file mode 100644 index 6000b5ab3..000000000 --- a/js/src/lib/components/Icons/IconGraphML.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconImageClassification.svelte b/js/src/lib/components/Icons/IconImageClassification.svelte deleted file mode 100644 index fa83eb205..000000000 --- a/js/src/lib/components/Icons/IconImageClassification.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconImageSegmentation.svelte b/js/src/lib/components/Icons/IconImageSegmentation.svelte deleted file mode 100644 index d84e55c74..000000000 --- a/js/src/lib/components/Icons/IconImageSegmentation.svelte +++ /dev/null @@ -1,24 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconImageToImage.svelte b/js/src/lib/components/Icons/IconImageToImage.svelte deleted file mode 100644 index 1ea332d30..000000000 --- a/js/src/lib/components/Icons/IconImageToImage.svelte +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconImageToText.svelte b/js/src/lib/components/Icons/IconImageToText.svelte deleted file mode 100644 index 8263c0801..000000000 --- a/js/src/lib/components/Icons/IconImageToText.svelte +++ /dev/null @@ -1,28 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconInfo.svelte b/js/src/lib/components/Icons/IconInfo.svelte deleted file mode 100644 index 6b5a9b1f9..000000000 --- a/js/src/lib/components/Icons/IconInfo.svelte +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconLightning.svelte b/js/src/lib/components/Icons/IconLightning.svelte deleted file mode 100644 index 91d87c2cc..000000000 --- a/js/src/lib/components/Icons/IconLightning.svelte +++ /dev/null @@ -1,18 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconMagicWand.svelte b/js/src/lib/components/Icons/IconMagicWand.svelte deleted file mode 100644 index 7aa63b2a2..000000000 --- a/js/src/lib/components/Icons/IconMagicWand.svelte +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconMaximize.svelte b/js/src/lib/components/Icons/IconMaximize.svelte deleted file mode 100644 index 872037067..000000000 --- a/js/src/lib/components/Icons/IconMaximize.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconMicrophone.svelte b/js/src/lib/components/Icons/IconMicrophone.svelte deleted file mode 100644 index d46385493..000000000 --- a/js/src/lib/components/Icons/IconMicrophone.svelte +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconObjectDetection.svelte b/js/src/lib/components/Icons/IconObjectDetection.svelte deleted file mode 100644 index ae1e1a7a6..000000000 --- a/js/src/lib/components/Icons/IconObjectDetection.svelte +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconQuestionAnswering.svelte b/js/src/lib/components/Icons/IconQuestionAnswering.svelte deleted file mode 100644 index b57d90ac4..000000000 --- a/js/src/lib/components/Icons/IconQuestionAnswering.svelte +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - diff --git a/js/src/lib/components/Icons/IconReinforcementLearning.svelte b/js/src/lib/components/Icons/IconReinforcementLearning.svelte deleted file mode 100644 index 802dc2437..000000000 --- a/js/src/lib/components/Icons/IconReinforcementLearning.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconRobotics.svelte b/js/src/lib/components/Icons/IconRobotics.svelte deleted file mode 100644 index 6f354638e..000000000 --- a/js/src/lib/components/Icons/IconRobotics.svelte +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconRow.svelte b/js/src/lib/components/Icons/IconRow.svelte deleted file mode 100644 index 7710d2b52..000000000 --- a/js/src/lib/components/Icons/IconRow.svelte +++ /dev/null @@ -1,16 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconSentenceSimilarity.svelte b/js/src/lib/components/Icons/IconSentenceSimilarity.svelte deleted file mode 100644 index def158c73..000000000 --- a/js/src/lib/components/Icons/IconSentenceSimilarity.svelte +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconSpin.svelte b/js/src/lib/components/Icons/IconSpin.svelte deleted file mode 100644 index 2afa35d83..000000000 --- a/js/src/lib/components/Icons/IconSpin.svelte +++ /dev/null @@ -1,30 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconSummarization.svelte b/js/src/lib/components/Icons/IconSummarization.svelte deleted file mode 100644 index 8c0ee2fc5..000000000 --- a/js/src/lib/components/Icons/IconSummarization.svelte +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconTableQuestionAnswering.svelte b/js/src/lib/components/Icons/IconTableQuestionAnswering.svelte deleted file mode 100644 index c11027345..000000000 --- a/js/src/lib/components/Icons/IconTableQuestionAnswering.svelte +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconTabularClassification.svelte b/js/src/lib/components/Icons/IconTabularClassification.svelte deleted file mode 100644 index d4ce233b1..000000000 --- a/js/src/lib/components/Icons/IconTabularClassification.svelte +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconTabularRegression.svelte b/js/src/lib/components/Icons/IconTabularRegression.svelte deleted file mode 100644 index ed4355c5d..000000000 --- a/js/src/lib/components/Icons/IconTabularRegression.svelte +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconText2textGeneration.svelte b/js/src/lib/components/Icons/IconText2textGeneration.svelte deleted file mode 100644 index ed5a2c6c7..000000000 --- a/js/src/lib/components/Icons/IconText2textGeneration.svelte +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconTextClassification.svelte b/js/src/lib/components/Icons/IconTextClassification.svelte deleted file mode 100644 index e747e6d2d..000000000 --- a/js/src/lib/components/Icons/IconTextClassification.svelte +++ /dev/null @@ -1,33 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconTextGeneration.svelte b/js/src/lib/components/Icons/IconTextGeneration.svelte deleted file mode 100644 index fa0153e0d..000000000 --- a/js/src/lib/components/Icons/IconTextGeneration.svelte +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconTextToImage.svelte b/js/src/lib/components/Icons/IconTextToImage.svelte deleted file mode 100644 index a7adab86f..000000000 --- a/js/src/lib/components/Icons/IconTextToImage.svelte +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconTextToSpeech.svelte b/js/src/lib/components/Icons/IconTextToSpeech.svelte deleted file mode 100644 index 7c533cfcb..000000000 --- a/js/src/lib/components/Icons/IconTextToSpeech.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconTextToVideo.svelte b/js/src/lib/components/Icons/IconTextToVideo.svelte deleted file mode 100644 index 3082ea2e6..000000000 --- a/js/src/lib/components/Icons/IconTextToVideo.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconTokenClassification.svelte b/js/src/lib/components/Icons/IconTokenClassification.svelte deleted file mode 100644 index 27f3d3625..000000000 --- a/js/src/lib/components/Icons/IconTokenClassification.svelte +++ /dev/null @@ -1,33 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconTranslation.svelte b/js/src/lib/components/Icons/IconTranslation.svelte deleted file mode 100644 index c0d344420..000000000 --- a/js/src/lib/components/Icons/IconTranslation.svelte +++ /dev/null @@ -1,24 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconUnconditionalImageGeneration.svelte b/js/src/lib/components/Icons/IconUnconditionalImageGeneration.svelte deleted file mode 100644 index 880d6ae9c..000000000 --- a/js/src/lib/components/Icons/IconUnconditionalImageGeneration.svelte +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconVideoClassification.svelte b/js/src/lib/components/Icons/IconVideoClassification.svelte deleted file mode 100644 index 669a372ca..000000000 --- a/js/src/lib/components/Icons/IconVideoClassification.svelte +++ /dev/null @@ -1,24 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconVoiceActivityDetection.svelte b/js/src/lib/components/Icons/IconVoiceActivityDetection.svelte deleted file mode 100644 index c896fee50..000000000 --- a/js/src/lib/components/Icons/IconVoiceActivityDetection.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/js/src/lib/components/Icons/IconZeroShotClassification.svelte b/js/src/lib/components/Icons/IconZeroShotClassification.svelte deleted file mode 100644 index ebbe940ef..000000000 --- a/js/src/lib/components/Icons/IconZeroShotClassification.svelte +++ /dev/null @@ -1,51 +0,0 @@ - - - diff --git a/js/src/lib/components/InferenceWidget/InferenceWidget.svelte b/js/src/lib/components/InferenceWidget/InferenceWidget.svelte deleted file mode 100644 index 188d02e39..000000000 --- a/js/src/lib/components/InferenceWidget/InferenceWidget.svelte +++ /dev/null @@ -1,97 +0,0 @@ - - -{#if widgetComponent} - -{/if} diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetAddSentenceBtn/WidgetAddSentenceBtn.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetAddSentenceBtn/WidgetAddSentenceBtn.svelte deleted file mode 100644 index 7eca76ae4..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetAddSentenceBtn/WidgetAddSentenceBtn.svelte +++ /dev/null @@ -1,12 +0,0 @@ - - -{#if !isDisabled} - - -{/if} diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetAudioTrack/WidgetAudioTrack.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetAudioTrack/WidgetAudioTrack.svelte deleted file mode 100644 index b17f29a56..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetAudioTrack/WidgetAudioTrack.svelte +++ /dev/null @@ -1,17 +0,0 @@ - - -
- {#if $$slots.default} - - {:else if label.length} -
{label}
- {/if} - -
diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetBloomDecoding/WidgetBloomDecoding.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetBloomDecoding/WidgetBloomDecoding.svelte deleted file mode 100644 index 19d630645..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetBloomDecoding/WidgetBloomDecoding.svelte +++ /dev/null @@ -1,55 +0,0 @@ - - - (isPromptTipOpen = false)} /> - -
-
-
- sampling - -
-
-
-
-
- greedy -
-
- - (isPromptTipOpen = true)} - >ⓘ BLOOM prompting tips - {#if isPromptTipOpen} -
- A good prompt: Do NOT talk to Bloom as an entity, it's not a chatbot but a webpage/blog/article completion - model. For the best behaviours: MIMIC a few words of a webpage similar to the content you want to generate. - Start a sentence as if YOU were writing a blog, webpage, math post, coding article and Bloom will generate a - coherent follow-up. -
- {/if} -
-
-

- {description} -

-
diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetCheckbox/WidgetCheckbox.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetCheckbox/WidgetCheckbox.svelte deleted file mode 100644 index e4e975e81..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetCheckbox/WidgetCheckbox.svelte +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetDropzone/WidgetDropzone.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetDropzone/WidgetDropzone.svelte deleted file mode 100644 index aea21e282..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetDropzone/WidgetDropzone.svelte +++ /dev/null @@ -1,89 +0,0 @@ - - - - -
{ - fileInput.click(); - }} - on:dragenter={() => { - isDragging = true; - }} - on:dragleave={() => { - isDragging = false; - }} - on:dragover|preventDefault - on:drop|preventDefault={onDrop} -> - {#if !imgSrc && !isDisabled} - {label} - {:else} -
- -
- {/if} - {#if isLoading} -
- -
- {/if} -
diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetExample.ts b/js/src/lib/components/InferenceWidget/shared/WidgetExample.ts deleted file mode 100644 index ffbcc6335..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetExample.ts +++ /dev/null @@ -1,114 +0,0 @@ -type TableData = Record; - -//#region outputs -export type WidgetExampleOutputLabels = Array<{ label: string; score: number; }>; -export interface WidgetExampleOutputAnswerScore { - answer: string; - score: number; -} -export interface WidgetExampleOutputText { - text: string; -} -export interface WidgetExampleOutputUrl { - url: string; -} - -export type WidgetExampleOutput = - | WidgetExampleOutputLabels - | WidgetExampleOutputAnswerScore - | WidgetExampleOutputText - | WidgetExampleOutputUrl; -//#endregion - -export interface WidgetExampleBase { - example_title?: string; - group?: string; - /** - * Potential overrides to API parameters for this specific example - * (takes precedences over the model card metadata's inference.parameters) - */ - parameters?: { - /// token-classification - aggregation_strategy?: string; - /// text-generation - top_k?: number; - top_p?: number; - temperature?: number; - max_new_tokens?: number; - do_sample?: boolean; - /// text-to-image - negative_prompt?: string; - guidance_scale?: number; - num_inference_steps?: number; - }; - /** - * Optional output - */ - output?: TOutput; -} - -export interface WidgetExampleTextInput extends WidgetExampleBase { - text: string; -} - -export interface WidgetExampleTextAndContextInput - extends WidgetExampleTextInput { - context: string; -} - -export interface WidgetExampleTextAndTableInput extends WidgetExampleTextInput { - table: TableData; -} - -export interface WidgetExampleAssetInput extends WidgetExampleBase { - src: string; -} -export interface WidgetExampleAssetAndPromptInput - extends WidgetExampleAssetInput { - prompt: string; -} - -export type WidgetExampleAssetAndTextInput = WidgetExampleAssetInput & - WidgetExampleTextInput; - -export type WidgetExampleAssetAndZeroShotInput = WidgetExampleAssetInput & - WidgetExampleZeroShotTextInput; - -export interface WidgetExampleStructuredDataInput extends WidgetExampleBase { - structured_data: TableData; -} - -export interface WidgetExampleTableDataInput extends WidgetExampleBase { - table: TableData; -} - -export interface WidgetExampleZeroShotTextInput extends WidgetExampleTextInput { - text: string; - candidate_labels: string; - multi_class: boolean; -} - -export interface WidgetExampleSentenceSimilarityInput - extends WidgetExampleBase { - source_sentence: string; - sentences: string[]; -} - -//#endregion - -export type WidgetExample = - | WidgetExampleTextInput - | WidgetExampleTextAndContextInput - | WidgetExampleTextAndTableInput - | WidgetExampleAssetInput - | WidgetExampleAssetAndPromptInput - | WidgetExampleAssetAndTextInput - | WidgetExampleAssetAndZeroShotInput - | WidgetExampleStructuredDataInput - | WidgetExampleTableDataInput - | WidgetExampleZeroShotTextInput - | WidgetExampleSentenceSimilarityInput; - -type KeysOfUnion = T extends any ? keyof T : never; - -export type WidgetExampleAttribute = KeysOfUnion; diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetFileInput/WidgetFileInput.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetFileInput/WidgetFileInput.svelte deleted file mode 100644 index cc2e027a2..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetFileInput/WidgetFileInput.svelte +++ /dev/null @@ -1,56 +0,0 @@ - - -{#if !isDisabled} -
{ - isDragging = true; - }} - on:dragover|preventDefault - on:dragleave={() => { - isDragging = false; - }} - on:drop|preventDefault={e => { - isDragging = false; - fileInput.files = e.dataTransfer?.files ?? null; - onChange(); - }} - > - -
-{/if} diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetFooter/WidgetFooter.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetFooter/WidgetFooter.svelte deleted file mode 100644 index e66ab03a2..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetFooter/WidgetFooter.svelte +++ /dev/null @@ -1,33 +0,0 @@ - - -
- {#if !isDisabled} - - {/if} - -
-{#if outputJson && isOutputJsonVisible} -
{outputJson}
-{/if} diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetHeader/WidgetHeader.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetHeader/WidgetHeader.svelte deleted file mode 100644 index bb618fe82..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetHeader/WidgetHeader.svelte +++ /dev/null @@ -1,51 +0,0 @@ - - -
- {#if !noTitle} - {#if title} -
- {title} -
- {:else} -
- {#if !isDisabled} - - Inference API - {:else} - Inference Examples - {/if} -
- - - - {/if} - {/if} -
-
- {#if pipeline && task} - - - - {/if} - -
diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetInfo/WidgetInfo.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetInfo/WidgetInfo.svelte deleted file mode 100644 index a91d2db04..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetInfo/WidgetInfo.svelte +++ /dev/null @@ -1,116 +0,0 @@ - - -
-
- {#if model.id === "bigscience/bloom"} -
-
- Powered by  - AzureML -
-
-
- {@html getStatusReport(modelLoadInfo, azureState, true)} -
-
- {:else if computeTime} - Computation time on {getComputeTypeMsg()}: {computeTime} - {:else if (model.inference === InferenceDisplayability.Yes || model.pipeline_tag === "reinforcement-learning") && !modelTooBig} - {@html getStatusReport(modelLoadInfo, state)} - {:else if model.inference === InferenceDisplayability.ExplicitOptOut} - Inference API has been turned off for this model. - {:else if model.inference === InferenceDisplayability.CustomCode} - Inference API does not yet support model repos that contain custom code. - {:else if model.inference === InferenceDisplayability.LibraryNotDetected} - - Unable to determine this model's library. Check the - - docs - . - - {:else if model.inference === InferenceDisplayability.PipelineNotDetected} - - Unable to determine this model’s pipeline type. Check the - - docs - . - - {:else if model.inference === InferenceDisplayability.PipelineLibraryPairNotSupported} - - Inference API does not yet support {model.library_name} models for this pipeline type. - - {:else if modelTooBig} - - Model is too large to load onto the free Inference API. To try the model, launch it on Inference Endpoints - instead. - - {:else} - - - Inference API is disabled for an unknown reason. Please open a - Discussion in the Community tab. - - {/if} -
- {#if error} -
{error}
- {/if} -
diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetInputSamples/WidgetInputSamples.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetInputSamples/WidgetInputSamples.svelte deleted file mode 100644 index 3abf629fa..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetInputSamples/WidgetInputSamples.svelte +++ /dev/null @@ -1,98 +0,0 @@ - - - - -
- -
-
{title}
- -
- - {#if isOptionsVisible} -
-
- {#each inputSamples as { example_title }, i} - -
_previewInputSample(i)} - on:click={() => _applyInputSample(i)} - > - {example_title} -
- {/each} -
-
- {/if} -
diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetInputSamplesGroup/WidgetInputSamplesGroup.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetInputSamplesGroup/WidgetInputSamplesGroup.svelte deleted file mode 100644 index b3fd31186..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetInputSamplesGroup/WidgetInputSamplesGroup.svelte +++ /dev/null @@ -1,81 +0,0 @@ - - - - -
- -
-
{title}
- -
- - {#if isOptionsVisible} -
-
- {#each inputGroups as inputGroup, i} - -
chooseInputGroup(i)} - > - {inputGroup} -
- {/each} -
-
- {/if} -
diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetLabel/WidgetLabel.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetLabel/WidgetLabel.svelte deleted file mode 100644 index 03f1e5c9e..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetLabel/WidgetLabel.svelte +++ /dev/null @@ -1,13 +0,0 @@ - - - diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetModelLoading/WidgetModelLoading.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetModelLoading/WidgetModelLoading.svelte deleted file mode 100644 index c345f9775..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetModelLoading/WidgetModelLoading.svelte +++ /dev/null @@ -1,38 +0,0 @@ - - -
-
-
- - Model is loading -
-
diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetOuputConvoBubble/WidgetOutputConvoBubble.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetOuputConvoBubble/WidgetOutputConvoBubble.svelte deleted file mode 100644 index 31ab4efa5..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetOuputConvoBubble/WidgetOutputConvoBubble.svelte +++ /dev/null @@ -1,12 +0,0 @@ - - -
- {text} -
diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetOutputChart/WidgetOutputChart.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetOutputChart/WidgetOutputChart.svelte deleted file mode 100644 index 7d3b810a8..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetOutputChart/WidgetOutputChart.svelte +++ /dev/null @@ -1,57 +0,0 @@ - - - -{#if output.length} -
- - {#each output as { score, color }, index} - -
mouseover(index)} - on:mouseout={mouseout} - > -
-
- {output[index][labelField]} -
- {score.toFixed(3)} -
- {/each} -
-{/if} diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetOutputConvo/WidgetOutputConvo.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetOutputConvo/WidgetOutputConvo.svelte deleted file mode 100644 index 77d56af5e..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetOutputConvo/WidgetOutputConvo.svelte +++ /dev/null @@ -1,33 +0,0 @@ - - -
-
- Input a message to start chatting with - {modelId}. -
-
- {#each output as exchange} - - - {/each} -
-
diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetOutputTableQA/WidgetOutputTableQA.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetOutputTableQA/WidgetOutputTableQA.svelte deleted file mode 100644 index 410fc55c3..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetOutputTableQA/WidgetOutputTableQA.svelte +++ /dev/null @@ -1,52 +0,0 @@ - - -
- {#if isAnswerOnlyOutput} - {output.answer} - {:else} - - {#if output.cells.length} - {output.cells.length} - match{output.cells.length > 1 ? "es" : ""} - : - {:else} - No matches - {/if} - - {#if output.cells.length} - {#each output.cells as answer} - {answer} - {/each} - {#if output.aggregator !== "NONE"} - {output.aggregator} - {/if} - {/if} - {/if} -
diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetOutputText/WidgetOutputText.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetOutputText/WidgetOutputText.svelte deleted file mode 100644 index e1d051506..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetOutputText/WidgetOutputText.svelte +++ /dev/null @@ -1,10 +0,0 @@ - - -{#if output.length} -

- {output} -

-{/if} diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetOutputTokens/WidgetOutputTokens.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetOutputTokens/WidgetOutputTokens.svelte deleted file mode 100644 index d0d3f6fdd..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetOutputTokens/WidgetOutputTokens.svelte +++ /dev/null @@ -1,94 +0,0 @@ - - -{#if text && output.length} - -
- {@html render(text, output)} -
-{/if} diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetQuickInput/WidgetQuickInput.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetQuickInput/WidgetQuickInput.svelte deleted file mode 100644 index 3a60295b8..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetQuickInput/WidgetQuickInput.svelte +++ /dev/null @@ -1,29 +0,0 @@ - - -
- - -
diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetRadio/WidgetRadio.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetRadio/WidgetRadio.svelte deleted file mode 100644 index 7cfb06a49..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetRadio/WidgetRadio.svelte +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetRealtimeRecorder/Recorder.ts b/js/src/lib/components/InferenceWidget/shared/WidgetRealtimeRecorder/Recorder.ts deleted file mode 100644 index 14aa77274..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetRealtimeRecorder/Recorder.ts +++ /dev/null @@ -1,103 +0,0 @@ -export default class Recorder { - // see developers.google.com/web/updates/2016/01/mediarecorder - type: "audio" | "video" = "audio"; - private apiToken: string | undefined; - private audioContext: AudioContext; - private isLoggedIn = false; - private isModelLoaded = false; - private isEmptyBuffer = false; - private modelId: string; - private onError: (err: string) => void; - private updateModelLoading: (isLoading: boolean, estimatedTime?: number) => void; - private renderText: (txt: string) => void; - private renderWarning: (warning: string) => void; - private socket: WebSocket; - private stream: MediaStream; - - constructor( - modelId: string, - apiToken: string | undefined, - renderText: (txt: string) => void, - renderWarning: (warning: string) => void, - onError: (err: string) => void, - updateModelLoading: (isLoading: boolean, estimatedTime?: number) => void - ) { - this.modelId = modelId; - this.apiToken = apiToken || ""; - this.renderText = renderText; - this.renderWarning = renderWarning; - this.onError = onError; - this.updateModelLoading = updateModelLoading; - } - - async start(): Promise { - const constraints: MediaStreamConstraints = this.type === "video" ? { audio: true, video: true } : { audio: true }; - this.stream = await navigator.mediaDevices.getUserMedia(constraints); - - this.socket = new WebSocket(`wss://api-inference.huggingface.co/asr/live/cpu/${this.modelId}`); - - this.socket.onerror = _ => { - this.onError("Webscoket connection error"); - }; - - this.socket.onopen = _ => { - this.socket.send(`Bearer ${this.apiToken}`); - }; - - this.updateModelLoading(true); - - this.socket.onmessage = (e: MessageEvent) => { - const data = JSON.parse(e.data); - if (data.type === "status" && data.message === "Successful login") { - this.isLoggedIn = true; - } else if (data.type === "status" && !!data.estimated_time && !this.isModelLoaded) { - this.updateModelLoading(true, data.estimated_time); - } else { - // data.type === "results" - this.isModelLoaded = true; - if (data.text) { - this.renderText(data.text); - } else if (!this.isEmptyBuffer) { - this.renderWarning("result was empty"); - } - } - }; - - this.audioContext = new AudioContext(); - await this.audioContext.audioWorklet.addModule("/audioProcessor.js"); - const microphone = this.audioContext.createMediaStreamSource(this.stream); - const dataExtractor = new AudioWorkletNode(this.audioContext, "AudioDataExtractor"); - microphone.connect(dataExtractor).connect(this.audioContext.destination); - - dataExtractor.port.onmessage = event => { - const { buffer, sampling_rate: samplingRate } = event.data; - this.isEmptyBuffer = buffer.reduce((sum: number, x: number) => sum + x) === 0; - if (this.isModelLoaded && this.isEmptyBuffer) { - this.renderWarning("🎤 input is empty: try speaking louder 🗣️ & make sure correct mic source is selected"); - } - const base64: string = btoa(String.fromCharCode(...new Uint8Array(buffer.buffer))); - const message = { - raw: base64, - sampling_rate: samplingRate, - }; - if (this.isLoggedIn) { - try { - this.socket.send(JSON.stringify(message)); - } catch (e) { - this.onError(`Error sending data to websocket: ${e}`); - } - } - }; - } - - stop(): void { - this.isLoggedIn = false; - void this.audioContext?.close(); - this.socket?.close(); - if (this.stream) { - for (const t of this.stream.getTracks()) { - t.stop(); - } - } - } -} diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetRealtimeRecorder/WidgetRealtimeRecorder.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetRealtimeRecorder/WidgetRealtimeRecorder.svelte deleted file mode 100644 index 347ed134a..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetRealtimeRecorder/WidgetRealtimeRecorder.svelte +++ /dev/null @@ -1,97 +0,0 @@ - - - - -{#if isRecording} -
- {#if warning} -

{warning}

- {:else} -

{txt}

- {/if} -
-{/if} diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetRecorder/Recorder.ts b/js/src/lib/components/InferenceWidget/shared/WidgetRecorder/Recorder.ts deleted file mode 100644 index c79ac1901..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetRecorder/Recorder.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { delay } from "../../../../utils/ViewUtils"; - -export default class Recorder { - // see developers.google.com/web/updates/2016/01/mediarecorder - type: "audio" | "video" = "audio"; - private stream: MediaStream; - private mediaRecorder: MediaRecorder; - private recordedBlobs: Blob[] = []; - public outputBlob?: Blob; - - get desiredMimeType(): string { - return this.type === "video" ? "video/webm" : "audio/webm"; - } - get mimeType(): string { - return this.mediaRecorder.mimeType; - } - async start(): Promise { - this.recordedBlobs = []; - - const constraints: MediaStreamConstraints = this.type === "video" ? { audio: true, video: true } : { audio: true }; - this.stream = await navigator.mediaDevices.getUserMedia(constraints); - this.startRecording(); - } - private startRecording() { - this.outputBlob = undefined; - this.mediaRecorder = new MediaRecorder(this.stream, { - mimeType: this.desiredMimeType, - }); - this.mediaRecorder.onstop = this.handleStop.bind(this); - this.mediaRecorder.ondataavailable = this.handleDataAvailable.bind(this); - this.mediaRecorder.start(10); // timeslice in ms - } - handleStop(): void {} - handleDataAvailable(evt: BlobEvent): void { - if (evt.data && evt.data.size > 0) { - this.recordedBlobs.push(evt.data); - } - } - async stopRecording(): Promise { - if (this.mediaRecorder) { - this.mediaRecorder.stop(); - } - if (this.stream) { - for (const t of this.stream.getTracks()) { - t.stop(); // Stop stream. - } - } - - // handle stopRecording gets called before this.mediaRecorder is initialized - if (!this.mediaRecorder) { - return new Blob(this.recordedBlobs); - } - - await delay(30); - // Wait for the last blob in handleDataAvailable. - // Alternative: hook into `onstop` event. - const superBuffer = new Blob(this.recordedBlobs, { - type: this.mimeType, - }); - this.outputBlob = superBuffer; - return superBuffer; - } -} diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetRecorder/WidgetRecorder.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetRecorder/WidgetRecorder.svelte deleted file mode 100644 index 620b5fafb..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetRecorder/WidgetRecorder.svelte +++ /dev/null @@ -1,63 +0,0 @@ - - - diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetShortcutRunLabel/WidgetShortcutRunLabel.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetShortcutRunLabel/WidgetShortcutRunLabel.svelte deleted file mode 100644 index 322663467..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetShortcutRunLabel/WidgetShortcutRunLabel.svelte +++ /dev/null @@ -1,22 +0,0 @@ - - -{#if !isDisabled} - -{/if} diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetState/WidgetState.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetState/WidgetState.svelte deleted file mode 100644 index 94be11f7b..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetState/WidgetState.svelte +++ /dev/null @@ -1,17 +0,0 @@ - - -
-
-
- This model is currently loaded and running on the Inference API. -
-
- ⚠️ This model could not be loaded by the inference API. ⚠️ -
-
- This model can be loaded on the Inference API on-demand. -
-
-
diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetSubmitBtn/WidgetSubmitBtn.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetSubmitBtn/WidgetSubmitBtn.svelte deleted file mode 100644 index 23678d6bf..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetSubmitBtn/WidgetSubmitBtn.svelte +++ /dev/null @@ -1,37 +0,0 @@ - - - - -{#if !isDisabled} - -{/if} diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetTableInput/WidgetTableInput.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetTableInput/WidgetTableInput.svelte deleted file mode 100644 index fc05b8a06..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetTableInput/WidgetTableInput.svelte +++ /dev/null @@ -1,112 +0,0 @@ - - -
- {#if table.length > 1} - - - - {#each table[0] as header, x} - - {/each} - - - - {#each table.slice(1) as row, y} - - {#each row as cell, x} - - {/each} - - {/each} - -
editCell(e, [x, 0])} - > - {header} -
editCell(e, [x, y + 1])}>{cell}
- {/if} -
- -
- {#if canAddRow} - - {/if} - {#if canAddCol} - - {/if} - -
diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetTextInput/WidgetTextInput.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetTextInput/WidgetTextInput.svelte deleted file mode 100644 index 50665b478..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetTextInput/WidgetTextInput.svelte +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetTextarea/WidgetTextarea.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetTextarea/WidgetTextarea.svelte deleted file mode 100644 index 8f54e5005..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetTextarea/WidgetTextarea.svelte +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - - - - - diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetTimer/WidgetTimer.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetTimer/WidgetTimer.svelte deleted file mode 100644 index 2d41e1ac5..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetTimer/WidgetTimer.svelte +++ /dev/null @@ -1,35 +0,0 @@ - - -{#if shouldDisplay && !isDisabled} - {counterHuman} -{/if} diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetWrapper/WidgetWrapper.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetWrapper/WidgetWrapper.svelte deleted file mode 100644 index c57c6ad1e..000000000 --- a/js/src/lib/components/InferenceWidget/shared/WidgetWrapper/WidgetWrapper.svelte +++ /dev/null @@ -1,154 +0,0 @@ - - -{#if isDisabled && !inputSamples.length} - - -{:else} -
- {#if isMaximized} - - {/if} - - {#if !!inputGroups.length} -
- - {#if inputGroups.length > 1} - group)} - /> - {/if} - -
- {/if} -
- - - {#if modelLoading.isLoading} - - {/if} - - -
-{/if} diff --git a/js/src/lib/components/InferenceWidget/shared/consts.ts b/js/src/lib/components/InferenceWidget/shared/consts.ts deleted file mode 100644 index 2f7a0e0eb..000000000 --- a/js/src/lib/components/InferenceWidget/shared/consts.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Color palette for obj-det & img-seg widgets - */ -export const COLORS = [ - { - color: "red", - hex: "#f87171", - }, - { - color: "green", - hex: "#4ade80", - }, - { - color: "yellow", - hex: "#facc15", - }, - { - color: "blue", - hex: "#60a5fa", - }, - { - color: "orange", - hex: "#fb923c", - }, - { - color: "purple", - hex: "#c084fc", - }, - { - color: "cyan", - hex: "#22d3ee", - }, - { - color: "lime", - hex: "#a3e635", - }, -] as const; diff --git a/js/src/lib/components/InferenceWidget/shared/helpers.ts b/js/src/lib/components/InferenceWidget/shared/helpers.ts deleted file mode 100644 index 0057eb122..000000000 --- a/js/src/lib/components/InferenceWidget/shared/helpers.ts +++ /dev/null @@ -1,241 +0,0 @@ -import type { ModelData } from "../../../interfaces/Types"; -import { randomItem, parseJSON } from "../../../utils/ViewUtils"; -import type { WidgetExample, WidgetExampleAttribute } from "./WidgetExample"; -import type { ModelLoadInfo, TableData } from "./types"; -import { LoadState } from "./types"; - -const KEYS_TEXT: WidgetExampleAttribute[] = ["text", "context", "candidate_labels"]; -const KEYS_TABLE: WidgetExampleAttribute[] = ["table", "structured_data"]; -type QueryParamVal = string | null | boolean | (string | number)[][]; - -export function getQueryParamVal(key: WidgetExampleAttribute): QueryParamVal { - const searchParams = new URL(window.location.href).searchParams; - const value = searchParams.get(key); - if (KEYS_TEXT.includes(key)) { - return value; - } else if (KEYS_TABLE.includes(key)) { - const table = convertDataToTable((parseJSON(value) as TableData) ?? {}); - return table; - } else if (key === "multi_class") { - return value === "true"; - } - return value; -} - -export function getWidgetExample( - model: ModelData, - validateExample: (sample: WidgetExample) => sample is TWidgetExample -): TWidgetExample | undefined { - const validExamples = model.widgetData?.filter( - (sample): sample is TWidgetExample => sample && validateExample(sample) - ); - return validExamples?.length ? randomItem(validExamples) : undefined; -} - -// Update current url search params, keeping existing keys intact. -export function updateUrl(obj: Partial>): void { - if (!window) { - return; - } - - const sp = new URL(window.location.href).searchParams; - for (const [k, v] of Object.entries(obj)) { - if (v === undefined) { - sp.delete(k); - } else { - sp.set(k, v); - } - } - const path = `${window.location.pathname}?${sp.toString()}`; - window.history.replaceState(null, "", path); -} - -// Run through our own proxy to bypass CORS: -function proxify(url: string): string { - return url.startsWith(`http://localhost`) || new URL(url).host === window.location.host - ? url - : `https://widgets.hf.co/proxy?url=${url}`; -} - -// Get BLOB from a given URL after proxifying the URL -export async function getBlobFromUrl(url: string): Promise { - const proxiedUrl = proxify(url); - const res = await fetch(proxiedUrl); - const blob = await res.blob(); - return blob; -} - -interface Success { - computeTime: string; - output: T; - outputJson: string; - response: Response; - status: "success"; -} - -interface LoadingModel { - error: string; - estimatedTime: number; - status: "loading-model"; -} - -interface Error { - error: string; - status: "error"; -} - -interface CacheNotFound { - status: "cache not found"; -} - -type Result = Success | LoadingModel | Error | CacheNotFound; - -export async function callInferenceApi( - url: string, - repoId: string, - requestBody: Record, - apiToken = "", - outputParsingFn: (x: unknown) => T, - waitForModel = false, // If true, the server will only respond once the model has been loaded on the inference API, - includeCredentials = false, - isOnLoadCall = false, // If true, the server will try to answer from cache and not do anything if not - useCache = true -): Promise> { - const contentType = - "file" in requestBody && "type" in requestBody["file"] ? requestBody["file"]["type"] : "application/json"; - - const headers = new Headers(); - headers.set("Content-Type", contentType); - if (apiToken) { - headers.set("Authorization", `Bearer ${apiToken}`); - } - if (waitForModel) { - headers.set("X-Wait-For-Model", "true"); - } - if (useCache === false) { - headers.set("X-Use-Cache", "false"); - } - if (isOnLoadCall) { - headers.set("X-Load-Model", "0"); - } - - const reqBody: File | string = "file" in requestBody ? requestBody.file : JSON.stringify(requestBody); - - const response = await fetch(`${url}/models/${repoId}`, { - method: "POST", - body: reqBody, - headers, - credentials: includeCredentials ? "include" : "same-origin", - }); - - if (response.ok) { - // Success - const computeTime = response.headers.has("x-compute-time") - ? `${response.headers.get("x-compute-time")} s` - : `cached`; - const isMediaContent = (response.headers.get("content-type")?.search(/^(?:audio|image)/i) ?? -1) !== -1; - - const body = !isMediaContent ? await response.json() : await response.blob(); - - try { - const output = outputParsingFn(body); - const outputJson = !isMediaContent ? JSON.stringify(body, null, 2) : ""; - return { computeTime, output, outputJson, response, status: "success" }; - } catch (e) { - if (isOnLoadCall && body.error === "not loaded yet") { - return { status: "cache not found" }; - } - // Invalid output - const error = `API Implementation Error: ${e.message}`; - return { error, status: "error" }; - } - } else { - // Error - const bodyText = await response.text(); - const body = parseJSON>(bodyText) ?? {}; - - if ( - body["error"] - && response.status === 503 - && body["estimated_time"] !== null - && body["estimated_time"] !== undefined - ) { - // Model needs loading - return { error: body["error"], estimatedTime: body["estimated_time"], status: "loading-model" }; - } else { - // Other errors - const { status, statusText } = response; - return { error: body["error"] ?? body["traceback"] ?? `${status} ${statusText}`, status: "error" }; - } - } -} - -export async function getModelLoadInfo( - url: string, - repoId: string, - includeCredentials = false -): Promise { - const response = await fetch(`${url}/status/${repoId}`, { - credentials: includeCredentials ? "include" : "same-origin", - }); - const output = await response.json(); - if (response.ok && typeof output === "object" && output.loaded !== undefined) { - // eslint-disable-next-line @typescript-eslint/naming-convention - const { state, compute_type } = output; - return { compute_type, state }; - } else { - console.warn(response.status, output.error); - return { state: LoadState.Error }; - } -} - -// Extend Inference API requestBody with user supplied Inference API parameters -export function addInferenceParameters(requestBody: Record, model: ModelData): void { - const inference = model?.cardData?.inference; - if (typeof inference === "object") { - const inferenceParameters = inference?.parameters; - if (inferenceParameters) { - if (requestBody.parameters) { - requestBody.parameters = { ...requestBody.parameters, ...inferenceParameters }; - } else { - requestBody.parameters = inferenceParameters; - } - } - } -} - -/* - * Converts table from [[Header0, Header1, Header2], [Column0Val0, Column1Val0, Column2Val0], ...] - * to {Header0: [ColumnVal0, ...], Header1: [Column1Val0, ...], Header2: [Column2Val0, ...]} - */ -export function convertTableToData(table: (string | number)[][]): TableData { - return Object.fromEntries( - table[0].map((cell, x) => { - return [ - cell, - table - .slice(1) - .flat() - .filter((_, i) => i % table[0].length === x) - .map(v => String(v)), // some models can only handle strings (no numbers) - ]; - }) - ); -} - -/* - * Converts data from {Header0: [ColumnVal0, ...], Header1: [Column1Val0, ...], Header2: [Column2Val0, ...]} - * to [[Header0, Header1, Header2], [Column0Val0, Column1Val0, Column2Val0], ...] - */ -export function convertDataToTable(data: TableData): (string | number)[][] { - const dataArray = Object.entries(data); // [header, cell[]][] - const nbCols = dataArray.length; - const nbRows = (dataArray[0]?.[1]?.length ?? 0) + 1; - return Array(nbRows) - .fill("") - .map((_, y) => - Array(nbCols) - .fill("") - .map((__, x) => (y === 0 ? dataArray[x][0] : dataArray[x][1][y - 1])) - ); -} diff --git a/js/src/lib/components/InferenceWidget/shared/inputValidation.ts b/js/src/lib/components/InferenceWidget/shared/inputValidation.ts deleted file mode 100644 index c4d879dba..000000000 --- a/js/src/lib/components/InferenceWidget/shared/inputValidation.ts +++ /dev/null @@ -1,87 +0,0 @@ -import type { - WidgetExample, - WidgetExampleAssetAndPromptInput, - WidgetExampleAssetAndTextInput, - WidgetExampleAssetAndZeroShotInput, - WidgetExampleAssetInput, - WidgetExampleSentenceSimilarityInput, - WidgetExampleStructuredDataInput, - WidgetExampleTableDataInput, - WidgetExampleTextAndContextInput, - WidgetExampleTextAndTableInput, - WidgetExampleTextInput, - WidgetExampleZeroShotTextInput, -} from "./WidgetExample"; - -export function isTextInput(sample: WidgetExample): sample is WidgetExampleTextInput { - return "text" in sample; -} - -export function isTextAndContextInput( - sample: WidgetExample -): sample is WidgetExampleTextAndContextInput { - return isTextInput(sample) && "context" in sample; -} - -export function isAssetInput(sample: WidgetExample): sample is WidgetExampleAssetInput { - return "src" in sample; -} - -export function isAssetAndPromptInput( - sample: WidgetExample -): sample is WidgetExampleAssetAndPromptInput { - return isAssetInput(sample) && "prompt" in sample && typeof sample.prompt === "string"; -} - -export function isAssetAndTextInput( - sample: WidgetExample -): sample is WidgetExampleAssetAndTextInput { - return isAssetInput(sample) && isTextInput(sample); -} - -export function isStructuredDataInput( - sample: WidgetExample -): sample is WidgetExampleStructuredDataInput { - return "structured_data" in sample; -} - -export function isTableDataInput( - sample: WidgetExample -): sample is WidgetExampleTableDataInput { - return "table" in sample; -} - -function _isZeroShotTextInput( - sample: WidgetExample -): sample is Exclude, "text"> { - return "candidate_labels" in sample && "multi_class" in sample; -} - -export function isZeroShotTextInput( - sample: WidgetExample -): sample is WidgetExampleZeroShotTextInput { - return isTextInput(sample) && _isZeroShotTextInput(sample); -} - -export function isSentenceSimilarityInput( - sample: WidgetExample -): sample is WidgetExampleSentenceSimilarityInput { - return "source_sentence" in sample && "sentences" in sample; -} - -export function isTextAndTableInput( - sample: WidgetExample -): sample is WidgetExampleTextAndTableInput { - return ( - isTextInput(sample) - && "table" in sample - && Array.isArray(sample.table) - && sample.table.every(r => Array.isArray(r) && r.every(c => typeof c === "string" || typeof c === "number")) - ); -} - -export function isAssetAndZeroShotInput( - sample: WidgetExample -): sample is WidgetExampleAssetAndZeroShotInput { - return isAssetInput(sample) && _isZeroShotTextInput(sample); -} diff --git a/js/src/lib/components/InferenceWidget/shared/outputValidation.ts b/js/src/lib/components/InferenceWidget/shared/outputValidation.ts deleted file mode 100644 index 570aa1db4..000000000 --- a/js/src/lib/components/InferenceWidget/shared/outputValidation.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type { - WidgetExampleOutputLabels, - WidgetExampleOutputAnswerScore, - WidgetExampleOutputText, - WidgetExampleOutputUrl, -} from "./WidgetExample"; - -export function isValidOutputLabels(arg: unknown): arg is WidgetExampleOutputLabels { - return Array.isArray(arg) && arg.every(x => typeof x.label === "string" && typeof x.score === "number"); -} - -export function isValidOutputAnswerScore(arg: unknown): arg is WidgetExampleOutputAnswerScore { - return !!arg && typeof arg === "object" && typeof arg["answer"] === "string" && typeof arg["score"] === "number"; -} - -export function isValidOutputText(arg: unknown): arg is WidgetExampleOutputText { - return !!arg && typeof arg === "object" && typeof arg["text"] === "string"; -} - -export function isValidOutputUrl(arg: unknown): arg is WidgetExampleOutputUrl { - return !!arg && typeof arg === "object" && typeof arg["url"] === "string" && arg["url"].startsWith("https://"); -} diff --git a/js/src/lib/components/InferenceWidget/shared/types.ts b/js/src/lib/components/InferenceWidget/shared/types.ts deleted file mode 100644 index 37750d5cd..000000000 --- a/js/src/lib/components/InferenceWidget/shared/types.ts +++ /dev/null @@ -1,68 +0,0 @@ -import type { ModelData } from "../../../interfaces/Types"; -import type { WidgetExampleOutput } from "./WidgetExample"; - -export interface WidgetProps { - apiToken?: string; - apiUrl: string; - callApiOnMount: boolean; - model: ModelData; - noTitle: boolean; - shouldUpdateUrl: boolean; - includeCredentials: boolean; - isLoggedIn?: boolean; -} - -export interface InferenceRunOpts { - withModelLoading?: boolean; - isOnLoadCall?: boolean; - useCache?: boolean; - exampleOutput?: TOutput; -} - -export interface ExampleRunOpts { - isPreview?: boolean; - inferenceOpts?: InferenceRunOpts; -} - -export enum LoadState { - Loadable = "Loadable", - Loaded = "Loaded", - TooBig = "TooBig", - Error = "error", -} - -export enum ComputeType { - CPU = "cpu", - GPU = "gpu", -} - -export interface ModelLoadInfo { - state: LoadState; - compute_type?: ComputeType; -} - -export type TableData = Record; - -export type HighlightCoordinates = Record; - -interface Box { - xmin: number; - ymin: number; - xmax: number; - ymax: number; -} - -export interface DetectedObject { - box: Box; - label: string; - score: number; - color?: string; -} -export interface ImageSegment { - label: string; - score: number; - mask: string; - color?: string; - imgData?: ImageData; - bitmap?: ImageBitmap; -} diff --git a/js/src/lib/components/InferenceWidget/stores.ts b/js/src/lib/components/InferenceWidget/stores.ts deleted file mode 100644 index f5a8cfd6b..000000000 --- a/js/src/lib/components/InferenceWidget/stores.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { writable } from "svelte/store"; -import type { ModelLoadInfo } from "./shared/types"; - -export const modelLoadStates = writable>({}); diff --git a/js/src/lib/components/InferenceWidget/widgets/AudioClassificationWidget/AudioClassificationWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/AudioClassificationWidget/AudioClassificationWidget.svelte deleted file mode 100644 index ddc1d4eed..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/AudioClassificationWidget/AudioClassificationWidget.svelte +++ /dev/null @@ -1,199 +0,0 @@ - - - - -
- - {#if fileUrl} - - {/if} - { - getOutput(); - }} - /> - {#if warning} -
{warning}
- {/if} - -
- - - -
diff --git a/js/src/lib/components/InferenceWidget/widgets/AudioToAudioWidget/AudioToAudioWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/AudioToAudioWidget/AudioToAudioWidget.svelte deleted file mode 100644 index a791205bc..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/AudioToAudioWidget/AudioToAudioWidget.svelte +++ /dev/null @@ -1,189 +0,0 @@ - - - - -
- - {#if fileUrl} - - {/if} - { - getOutput(); - }} - /> - -
- - {#each output as item} -
- {item.label}: - -
- {/each} -
-
diff --git a/js/src/lib/components/InferenceWidget/widgets/AutomaticSpeechRecognitionWidget/AutomaticSpeechRecognitionWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/AutomaticSpeechRecognitionWidget/AutomaticSpeechRecognitionWidget.svelte deleted file mode 100644 index 61404f7db..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/AutomaticSpeechRecognitionWidget/AutomaticSpeechRecognitionWidget.svelte +++ /dev/null @@ -1,222 +0,0 @@ - - - - -
- - {#if !isRealtimeRecording} - {#if fileUrl} - - {/if} - { - getOutput(); - }} - /> - {#if warning} -
{warning}
- {/if} - {/if} - -
- - - -
diff --git a/js/src/lib/components/InferenceWidget/widgets/ConversationalWidget/ConversationalWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/ConversationalWidget/ConversationalWidget.svelte deleted file mode 100644 index 3f4926b53..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/ConversationalWidget/ConversationalWidget.svelte +++ /dev/null @@ -1,186 +0,0 @@ - - - - - -
- { - getOutput(); - }} - submitButtonLabel="Send" - /> - -
-
diff --git a/js/src/lib/components/InferenceWidget/widgets/FeatureExtractionWidget/DataTable.ts b/js/src/lib/components/InferenceWidget/widgets/FeatureExtractionWidget/DataTable.ts deleted file mode 100644 index 551868a38..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/FeatureExtractionWidget/DataTable.ts +++ /dev/null @@ -1,43 +0,0 @@ -export class DataTable { - max: number; - min: number; - std: number; - - constructor(public body: number[] | number[][]) { - const all = this.body.flat(); - this.max = Math.max(...all); - this.min = Math.min(...all); - this.std = this.max - this.min; - } - - get isArrLevel0(): boolean { - return isArrLevel0(this.body); - } - - get oneDim(): number[] { - return this.body as number[]; - } - get twoDim(): number[][] { - return this.body as number[][]; - } - - bg(value: number): string { - if (value > this.min + this.std * 0.7) { - return "bg-green-100 dark:bg-green-800"; - } - if (value > this.min + this.std * 0.6) { - return "bg-green-50 dark:bg-green-900"; - } - if (value < this.min + this.std * 0.3) { - return "bg-red-100 dark:bg-red-800"; - } - if (value < this.min + this.std * 0.4) { - return "bg-red-50 dark:bg-red-900"; - } - return ""; - } -} - -function isArrLevel0(x: number[] | number[][]): x is number[] { - return typeof x[0] === "number"; -} diff --git a/js/src/lib/components/InferenceWidget/widgets/FeatureExtractionWidget/FeatureExtractionWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/FeatureExtractionWidget/FeatureExtractionWidget.svelte deleted file mode 100644 index e1f70bbfd..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/FeatureExtractionWidget/FeatureExtractionWidget.svelte +++ /dev/null @@ -1,196 +0,0 @@ - - - - -
- { - getOutput(); - }} - /> - -
- - {#if output} - {#if output.isArrLevel0} -
- - {#each range(numOfRows(output.oneDim.length)) as i} - - {#each range(SINGLE_DIM_COLS) as j} - {#if j * numOfRows(output.oneDim.length) + i < output.oneDim.length} - - - {/if} - {/each} - - {/each} -
- {j * numOfRows(output.oneDim.length) + i} - - {output.oneDim[j * numOfRows(output.oneDim.length) + i].toFixed(3)} -
-
- {:else} -
- - - - {/each} - - {#each output.twoDim as column, i} - - - {#each column as x} - - {/each} - - {/each} -
- {#each range(output.twoDim[0].length) as j} - {j}
{i} - {x.toFixed(3)} -
-
- {/if} - {/if} -
-
diff --git a/js/src/lib/components/InferenceWidget/widgets/FillMaskWidget/FillMaskWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/FillMaskWidget/FillMaskWidget.svelte deleted file mode 100644 index 15df02d22..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/FillMaskWidget/FillMaskWidget.svelte +++ /dev/null @@ -1,171 +0,0 @@ - - - - -
- {#if model.pipeline_tag === "fill-mask"} -
- Mask token: {model.mask_token} -
- {/if} - - { - getOutput(); - }} - /> - -
- - - -
diff --git a/js/src/lib/components/InferenceWidget/widgets/ImageClassificationWidget/ImageClassificationWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/ImageClassificationWidget/ImageClassificationWidget.svelte deleted file mode 100644 index 5fedff38c..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/ImageClassificationWidget/ImageClassificationWidget.svelte +++ /dev/null @@ -1,173 +0,0 @@ - - - - -
- (error = e)} - > - {#if imgSrc} - - {/if} - - - {#if imgSrc} - {#if imgSrc} -
- -
- {/if} - {/if} - - {#if warning} -
{warning}
- {/if} - -
- - - -
diff --git a/js/src/lib/components/InferenceWidget/widgets/ImageSegmentationWidget/Canvas.svelte b/js/src/lib/components/InferenceWidget/widgets/ImageSegmentationWidget/Canvas.svelte deleted file mode 100644 index d171732e2..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/ImageSegmentationWidget/Canvas.svelte +++ /dev/null @@ -1,75 +0,0 @@ - - - - -
-
- -
- {#if output.length} - - mousemove(e, width, height)} - on:mouseout={mouseout} - /> - {/if} -
diff --git a/js/src/lib/components/InferenceWidget/widgets/ImageSegmentationWidget/ImageSegmentationWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/ImageSegmentationWidget/ImageSegmentationWidget.svelte deleted file mode 100644 index b3228981f..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/ImageSegmentationWidget/ImageSegmentationWidget.svelte +++ /dev/null @@ -1,281 +0,0 @@ - - - - -
- (error = e)} - > - {#if imgSrc} - - {/if} - - - {#if imgSrc} - - {/if} - - {#if warning} -
{warning}
- {/if} - - -
- - - -
diff --git a/js/src/lib/components/InferenceWidget/widgets/ImageToImageWidget/ImageToImageWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/ImageToImageWidget/ImageToImageWidget.svelte deleted file mode 100644 index 4fd727d2f..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/ImageToImageWidget/ImageToImageWidget.svelte +++ /dev/null @@ -1,203 +0,0 @@ - - - - -
- (error = e)} - > - {#if imgSrc} - - {/if} - - - {#if imgSrc} - {#if imgSrc} -
- -
- {/if} - {/if} - - - { - getOutput(); - }} - /> - -
- - {#if output.length} -
- -
- {/if} -
-
diff --git a/js/src/lib/components/InferenceWidget/widgets/ImageToTextWidget/ImageToTextWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/ImageToTextWidget/ImageToTextWidget.svelte deleted file mode 100644 index 8da450246..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/ImageToTextWidget/ImageToTextWidget.svelte +++ /dev/null @@ -1,162 +0,0 @@ - - - - -
- (error = e)} - > - {#if imgSrc} - - {/if} - - - {#if imgSrc} - {#if imgSrc} -
- -
- {/if} - {/if} - - {#if warning} -
{warning}
- {/if} - -
- - {#if model?.pipeline_tag !== "text-generation"} - - {/if} - -
diff --git a/js/src/lib/components/InferenceWidget/widgets/ObjectDetectionWidget/ObjectDetectionWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/ObjectDetectionWidget/ObjectDetectionWidget.svelte deleted file mode 100644 index cc13ee491..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/ObjectDetectionWidget/ObjectDetectionWidget.svelte +++ /dev/null @@ -1,193 +0,0 @@ - - - - -
- (error = e)} - > - {#if imgSrc} - - {/if} - - - {#if imgSrc} - - {/if} - - {#if warning} -
{warning}
- {/if} - -
- - - -
diff --git a/js/src/lib/components/InferenceWidget/widgets/ObjectDetectionWidget/SvgBoundingBoxes.svelte b/js/src/lib/components/InferenceWidget/widgets/ObjectDetectionWidget/SvgBoundingBoxes.svelte deleted file mode 100644 index 13121c05f..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/ObjectDetectionWidget/SvgBoundingBoxes.svelte +++ /dev/null @@ -1,93 +0,0 @@ - - - -
-
- -
- - - {#each boxes as { rect, color, index }} - - mouseover(index)} - on:mouseout={mouseout} - /> - {/each} - -
diff --git a/js/src/lib/components/InferenceWidget/widgets/QuestionAnsweringWidget/QuestionAnsweringWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/QuestionAnsweringWidget/QuestionAnsweringWidget.svelte deleted file mode 100644 index 3926af51a..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/QuestionAnsweringWidget/QuestionAnsweringWidget.svelte +++ /dev/null @@ -1,174 +0,0 @@ - - - - -
- { - getOutput(); - }} - /> - - -
- - {#if output} -
- {output.answer} - {output.score.toFixed(3)} -
- {/if} -
-
diff --git a/js/src/lib/components/InferenceWidget/widgets/ReinforcementLearningWidget/ReinforcementLearningWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/ReinforcementLearningWidget/ReinforcementLearningWidget.svelte deleted file mode 100644 index ab424347e..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/ReinforcementLearningWidget/ReinforcementLearningWidget.svelte +++ /dev/null @@ -1,62 +0,0 @@ - - - -
- -
- {#if replay === Replay.Available} - -
-
diff --git a/js/src/lib/components/InferenceWidget/widgets/SentenceSimilarityWidget/SentenceSimilarityWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/SentenceSimilarityWidget/SentenceSimilarityWidget.svelte deleted file mode 100644 index 3c1a7736f..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/SentenceSimilarityWidget/SentenceSimilarityWidget.svelte +++ /dev/null @@ -1,188 +0,0 @@ - - - - -
- - - {#each Array(nComparisonSentences - 1) as _, idx} - - {/each} - { - nComparisonSentences++; - }} - /> - { - getOutput(); - }} - /> - -
- - {#if output.length} - - {/if} - -
diff --git a/js/src/lib/components/InferenceWidget/widgets/SummarizationWidget/SummarizationWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/SummarizationWidget/SummarizationWidget.svelte deleted file mode 100644 index 278b613ca..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/SummarizationWidget/SummarizationWidget.svelte +++ /dev/null @@ -1,137 +0,0 @@ - - - - -
- - { - getOutput(); - }} - /> - -
- - - -
diff --git a/js/src/lib/components/InferenceWidget/widgets/TableQuestionAnsweringWidget/TableQuestionAnsweringWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/TableQuestionAnsweringWidget/TableQuestionAnsweringWidget.svelte deleted file mode 100644 index ad44a2596..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/TableQuestionAnsweringWidget/TableQuestionAnsweringWidget.svelte +++ /dev/null @@ -1,192 +0,0 @@ - - - - -
- { - getOutput(); - }} - /> - -
- {#if output} - - {/if} - {#if table.length > 1 || table[0].length > 1} - - {/if} -
-
-
diff --git a/js/src/lib/components/InferenceWidget/widgets/TabularDataWidget/TabularDataWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/TabularDataWidget/TabularDataWidget.svelte deleted file mode 100644 index 577957e79..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/TabularDataWidget/TabularDataWidget.svelte +++ /dev/null @@ -1,221 +0,0 @@ - - - - -
-
- {#if table.length > 1 || table[1]?.length > 1} - - {/if} -
- { - getOutput(); - }} - /> - -
- -
diff --git a/js/src/lib/components/InferenceWidget/widgets/TextGenerationWidget/TextGenerationWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/TextGenerationWidget/TextGenerationWidget.svelte deleted file mode 100644 index 06d41530b..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/TextGenerationWidget/TextGenerationWidget.svelte +++ /dev/null @@ -1,263 +0,0 @@ - - - - -
- - {#if model.id === "bigscience/bloom"} - - {/if} -
- { - getOutput({ useCache }); - }} - /> - -
- -
-
- {#if warning} -
{warning}
- {/if} - {#if isBloomLoginRequired} -
- - Please - login - or - - register to try BLOOM 🌸 -
- {/if} - -
- - {#if model?.pipeline_tag !== "text-generation"} - - - {/if} - -
diff --git a/js/src/lib/components/InferenceWidget/widgets/TextToImageWidget/TextToImageWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/TextToImageWidget/TextToImageWidget.svelte deleted file mode 100644 index 726571caf..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/TextToImageWidget/TextToImageWidget.svelte +++ /dev/null @@ -1,147 +0,0 @@ - - - - -
- getOutput()} /> - -
- - {#if output.length} -
- -
- {/if} -
-
diff --git a/js/src/lib/components/InferenceWidget/widgets/TextToSpeechWidget/TextToSpeechWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/TextToSpeechWidget/TextToSpeechWidget.svelte deleted file mode 100644 index 1db684456..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/TextToSpeechWidget/TextToSpeechWidget.svelte +++ /dev/null @@ -1,139 +0,0 @@ - - - - -
- - { - getOutput(); - }} - /> - -
- - {#if output.length} - - {/if} - -
diff --git a/js/src/lib/components/InferenceWidget/widgets/TokenClassificationWidget/TokenClassificationWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/TokenClassificationWidget/TokenClassificationWidget.svelte deleted file mode 100644 index 2e5559665..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/TokenClassificationWidget/TokenClassificationWidget.svelte +++ /dev/null @@ -1,260 +0,0 @@ - - - - -
- - { - getOutput(); - }} - /> - {#if warning} -
{warning}
- {/if} - -
- - - -
diff --git a/js/src/lib/components/InferenceWidget/widgets/VisualQuestionAnsweringWidget/VisualQuestionAnsweringWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/VisualQuestionAnsweringWidget/VisualQuestionAnsweringWidget.svelte deleted file mode 100644 index 9af6ec96f..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/VisualQuestionAnsweringWidget/VisualQuestionAnsweringWidget.svelte +++ /dev/null @@ -1,204 +0,0 @@ - - - - -
- (error = e)} - > - {#if imgSrc} - - {/if} - - - {#if imgSrc} - {#if imgSrc} -
- -
- {/if} - {/if} - - { - getOutput(); - }} - /> - -
- - {#if output} - - {/if} - -
diff --git a/js/src/lib/components/InferenceWidget/widgets/ZeroShotImageClassificationWidget/ZeroShotImageClassificationWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/ZeroShotImageClassificationWidget/ZeroShotImageClassificationWidget.svelte deleted file mode 100644 index 1be2154db..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/ZeroShotImageClassificationWidget/ZeroShotImageClassificationWidget.svelte +++ /dev/null @@ -1,224 +0,0 @@ - - - - -
- (error = e)} - > - {#if imgSrc} - - {/if} - - - {#if imgSrc} - {#if imgSrc} -
- -
- {/if} - {/if} - - - { - getOutput(); - }} - /> - -
- - {#if output.length} - - {/if} - -
diff --git a/js/src/lib/components/InferenceWidget/widgets/ZeroShowClassificationWidget/ZeroShotClassificationWidget.svelte b/js/src/lib/components/InferenceWidget/widgets/ZeroShowClassificationWidget/ZeroShotClassificationWidget.svelte deleted file mode 100644 index 9b6d30b5e..000000000 --- a/js/src/lib/components/InferenceWidget/widgets/ZeroShowClassificationWidget/ZeroShotClassificationWidget.svelte +++ /dev/null @@ -1,188 +0,0 @@ - - - - -
- - - - { - getOutput(); - }} - /> - {#if warning} -
{warning}
- {/if} - -
- - {#if output.length} - - {/if} - -
diff --git a/js/src/lib/components/PipelineIcon/PipelineIcon.svelte b/js/src/lib/components/PipelineIcon/PipelineIcon.svelte deleted file mode 100644 index 1eaba4674..000000000 --- a/js/src/lib/components/PipelineIcon/PipelineIcon.svelte +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/js/src/lib/components/PipelineTag/PipelineTag.svelte b/js/src/lib/components/PipelineTag/PipelineTag.svelte deleted file mode 100644 index 8e83fbeef..000000000 --- a/js/src/lib/components/PipelineTag/PipelineTag.svelte +++ /dev/null @@ -1,14 +0,0 @@ - - -
- - - {PIPELINE_DATA[pipeline].name ?? pipeline} - -
diff --git a/js/src/lib/inferenceSnippets/inputs.ts b/js/src/lib/inferenceSnippets/inputs.ts deleted file mode 100644 index 88615dbd9..000000000 --- a/js/src/lib/inferenceSnippets/inputs.ts +++ /dev/null @@ -1,128 +0,0 @@ -import type { PipelineType, ModelData } from "../interfaces/Types"; - -const inputsZeroShotClassification = () => - `"Hi, I recently bought a device from your company but it is not working as advertised and I would like to get reimbursed!"`; - -const inputsTranslation = () => `"Меня зовут Вольфганг и я живу в Берлине"`; - -const inputsSummarization = () => - `"The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building, and the tallest structure in Paris. Its base is square, measuring 125 metres (410 ft) on each side. During its construction, the Eiffel Tower surpassed the Washington Monument to become the tallest man-made structure in the world, a title it held for 41 years until the Chrysler Building in New York City was finished in 1930. It was the first structure to reach a height of 300 metres. Due to the addition of a broadcasting aerial at the top of the tower in 1957, it is now taller than the Chrysler Building by 5.2 metres (17 ft). Excluding transmitters, the Eiffel Tower is the second tallest free-standing structure in France after the Millau Viaduct."`; - -const inputsConversational = () => - `{ - "past_user_inputs": ["Which movie is the best ?"], - "generated_responses": ["It is Die Hard for sure."], - "text": "Can you explain why ?" - }`; - -const inputsTableQuestionAnswering = () => - `{ - "query": "How many stars does the transformers repository have?", - "table": { - "Repository": ["Transformers", "Datasets", "Tokenizers"], - "Stars": ["36542", "4512", "3934"], - "Contributors": ["651", "77", "34"], - "Programming language": [ - "Python", - "Python", - "Rust, Python and NodeJS" - ] - } - }`; - -const inputsQuestionAnswering = () => - `{ - "question": "What is my name?", - "context": "My name is Clara and I live in Berkeley." - }`; - -const inputsTextClassification = () => `"I like you. I love you"`; - -const inputsTokenClassification = () => `"My name is Sarah Jessica Parker but you can call me Jessica"`; - -const inputsTextGeneration = () => `"Can you please let us know more details about your "`; - -const inputsText2TextGeneration = () => `"The answer to the universe is"`; - -const inputsFillMask = (model: ModelData) => `"The answer to the universe is ${model.mask_token}."`; - -const inputsSentenceSimilarity = () => - `{ - "source_sentence": "That is a happy person", - "sentences": [ - "That is a happy dog", - "That is a very happy person", - "Today is a sunny day" - ] - }`; - -const inputsFeatureExtraction = () => `"Today is a sunny day and I will get some ice cream."`; - -const inputsImageClassification = () => `"cats.jpg"`; - -const inputsImageToText = () => `"cats.jpg"`; - -const inputsImageSegmentation = () => `"cats.jpg"`; - -const inputsObjectDetection = () => `"cats.jpg"`; - -const inputsAudioToAudio = () => `"sample1.flac"`; - -const inputsAudioClassification = () => `"sample1.flac"`; - -const inputsTextToImage = () => `"Astronaut riding a horse"`; - -const inputsTextToSpeech = () => `"The answer to the universe is 42"`; - -const inputsTextToAudio = () => `"liquid drum and bass, atmospheric synths, airy sounds"`; - -const inputsAutomaticSpeechRecognition = () => `"sample1.flac"`; - -const modelInputSnippets: { - [key in PipelineType]?: (model: ModelData) => string; -} = { - "audio-to-audio": inputsAudioToAudio, - "audio-classification": inputsAudioClassification, - "automatic-speech-recognition": inputsAutomaticSpeechRecognition, - "conversational": inputsConversational, - "feature-extraction": inputsFeatureExtraction, - "fill-mask": inputsFillMask, - "image-classification": inputsImageClassification, - "image-to-text": inputsImageToText, - "image-segmentation": inputsImageSegmentation, - "object-detection": inputsObjectDetection, - "question-answering": inputsQuestionAnswering, - "sentence-similarity": inputsSentenceSimilarity, - "summarization": inputsSummarization, - "table-question-answering": inputsTableQuestionAnswering, - "text-classification": inputsTextClassification, - "text-generation": inputsTextGeneration, - "text-to-image": inputsTextToImage, - "text-to-speech": inputsTextToSpeech, - "text-to-audio": inputsTextToAudio, - "text2text-generation": inputsText2TextGeneration, - "token-classification": inputsTokenClassification, - "translation": inputsTranslation, - "zero-shot-classification": inputsZeroShotClassification, -}; - -// Use noWrap to put the whole snippet on a single line (removing new lines and tabulations) -// Use noQuotes to strip quotes from start & end (example: "abc" -> abc) -export function getModelInputSnippet(model: ModelData, noWrap = false, noQuotes = false): string { - if (model.pipeline_tag) { - const inputs = modelInputSnippets[model.pipeline_tag]; - if (inputs) { - let result = inputs(model); - if (noWrap) { - result = result.replace(/(?:(?:\r?\n|\r)\t*)|\t+/g, " "); - } - if (noQuotes) { - const REGEX_QUOTES = /^"(.+)"$/s; - const match = result.match(REGEX_QUOTES); - result = match ? match[1] : result; - } - return result; - } - } - return "No input example has been defined for this model task."; -} diff --git a/js/src/lib/inferenceSnippets/serveCurl.ts b/js/src/lib/inferenceSnippets/serveCurl.ts deleted file mode 100644 index f7c5a35b9..000000000 --- a/js/src/lib/inferenceSnippets/serveCurl.ts +++ /dev/null @@ -1,62 +0,0 @@ -import type { PipelineType, ModelData } from "../interfaces/Types"; -import { getModelInputSnippet } from "./inputs"; - -export const snippetBasic = (model: ModelData, accessToken: string): string => - `curl https://api-inference.huggingface.co/models/${model.id} \\ - -X POST \\ - -d '{"inputs": ${getModelInputSnippet(model, true)}}' \\ - -H 'Content-Type: application/json' \\ - -H "Authorization: Bearer ${accessToken || `{API_TOKEN}`}" -`; - -export const snippetZeroShotClassification = (model: ModelData, accessToken: string): string => - `curl https://api-inference.huggingface.co/models/${model.id} \\ - -X POST \\ - -d '{"inputs": ${getModelInputSnippet(model, true)}, "parameters": {"candidate_labels": ["refund", "legal", "faq"]}}' \\ - -H 'Content-Type: application/json' \\ - -H "Authorization: Bearer ${accessToken || `{API_TOKEN}`}" -`; - -export const snippetFile = (model: ModelData, accessToken: string): string => - `curl https://api-inference.huggingface.co/models/${model.id} \\ - -X POST \\ - --data-binary '@${getModelInputSnippet(model, true, true)}' \\ - -H "Authorization: Bearer ${accessToken || `{API_TOKEN}`}" -`; - -export const curlSnippets: Partial string>> = { - // Same order as in js/src/lib/interfaces/Types.ts - "text-classification": snippetBasic, - "token-classification": snippetBasic, - "table-question-answering": snippetBasic, - "question-answering": snippetBasic, - "zero-shot-classification": snippetZeroShotClassification, - "translation": snippetBasic, - "summarization": snippetBasic, - "conversational": snippetBasic, - "feature-extraction": snippetBasic, - "text-generation": snippetBasic, - "text2text-generation": snippetBasic, - "fill-mask": snippetBasic, - "sentence-similarity": snippetBasic, - "automatic-speech-recognition": snippetFile, - "text-to-image": snippetBasic, - "text-to-speech": snippetBasic, - "text-to-audio": snippetBasic, - "audio-to-audio": snippetFile, - "audio-classification": snippetFile, - "image-classification": snippetFile, - "image-to-text": snippetFile, - "object-detection": snippetFile, - "image-segmentation": snippetFile, -}; - -export function getCurlInferenceSnippet(model: ModelData, accessToken: string): string { - return model.pipeline_tag && model.pipeline_tag in curlSnippets - ? curlSnippets[model.pipeline_tag]?.(model, accessToken) ?? "" - : ""; -} - -export function hasCurlInferenceSnippet(model: ModelData): boolean { - return !!model.pipeline_tag && model.pipeline_tag in curlSnippets; -} diff --git a/js/src/lib/inferenceSnippets/serveJs.ts b/js/src/lib/inferenceSnippets/serveJs.ts deleted file mode 100644 index e436f1db3..000000000 --- a/js/src/lib/inferenceSnippets/serveJs.ts +++ /dev/null @@ -1,149 +0,0 @@ -import type { PipelineType, ModelData } from "../interfaces/Types"; -import { getModelInputSnippet } from "./inputs"; - -export const snippetBasic = (model: ModelData, accessToken: string): string => - `async function query(data) { - const response = await fetch( - "https://api-inference.huggingface.co/models/${model.id}", - { - headers: { Authorization: "Bearer ${accessToken || `{API_TOKEN}`}" }, - method: "POST", - body: JSON.stringify(data), - } - ); - const result = await response.json(); - return result; -} - -query({"inputs": ${getModelInputSnippet(model)}}).then((response) => { - console.log(JSON.stringify(response)); -});`; - -export const snippetZeroShotClassification = (model: ModelData, accessToken: string): string => - `async function query(data) { - const response = await fetch( - "https://api-inference.huggingface.co/models/${model.id}", - { - headers: { Authorization: "Bearer ${accessToken || `{API_TOKEN}`}" }, - method: "POST", - body: JSON.stringify(data), - } - ); - const result = await response.json(); - return result; -} - -query({"inputs": ${getModelInputSnippet( - model - )}, "parameters": {"candidate_labels": ["refund", "legal", "faq"]}}).then((response) => { - console.log(JSON.stringify(response)); -});`; - -export const snippetTextToImage = (model: ModelData, accessToken: string): string => - `async function query(data) { - const response = await fetch( - "https://api-inference.huggingface.co/models/${model.id}", - { - headers: { Authorization: "Bearer ${accessToken || `{API_TOKEN}`}" }, - method: "POST", - body: JSON.stringify(data), - } - ); - const result = await response.blob(); - return result; -} -query({"inputs": ${getModelInputSnippet(model)}}).then((response) => { - // Use image -});`; - -export const snippetTextToAudio = (model: ModelData, accessToken: string): string => { - const commonSnippet = `async function query(data) { - const response = await fetch( - "https://api-inference.huggingface.co/models/${model.id}", - { - headers: { Authorization: "Bearer ${accessToken || `{API_TOKEN}`}" }, - method: "POST", - body: JSON.stringify(data), - } - );`; - if (model.library_name === "transformers") { - return ( - commonSnippet - + ` - const result = await response.blob(); - return result; - } - query({"inputs": ${getModelInputSnippet(model)}}).then((response) => { - // Returns a byte object of the Audio wavform. Use it directly! - });` - ); - } else { - return ( - commonSnippet - + ` - const result = await response.json(); - return result; - } - - query({"inputs": ${getModelInputSnippet(model)}}).then((response) => { - console.log(JSON.stringify(response)); - });` - ); - } -}; - -export const snippetFile = (model: ModelData, accessToken: string): string => - `async function query(filename) { - const data = fs.readFileSync(filename); - const response = await fetch( - "https://api-inference.huggingface.co/models/${model.id}", - { - headers: { Authorization: "Bearer ${accessToken || `{API_TOKEN}`}" }, - method: "POST", - body: data, - } - ); - const result = await response.json(); - return result; -} - -query(${getModelInputSnippet(model)}).then((response) => { - console.log(JSON.stringify(response)); -});`; - -export const jsSnippets: Partial string>> = { - // Same order as in js/src/lib/interfaces/Types.ts - "text-classification": snippetBasic, - "token-classification": snippetBasic, - "table-question-answering": snippetBasic, - "question-answering": snippetBasic, - "zero-shot-classification": snippetZeroShotClassification, - "translation": snippetBasic, - "summarization": snippetBasic, - "conversational": snippetBasic, - "feature-extraction": snippetBasic, - "text-generation": snippetBasic, - "text2text-generation": snippetBasic, - "fill-mask": snippetBasic, - "sentence-similarity": snippetBasic, - "automatic-speech-recognition": snippetFile, - "text-to-image": snippetTextToImage, - "text-to-speech": snippetTextToAudio, - "text-to-audio": snippetTextToAudio, - "audio-to-audio": snippetFile, - "audio-classification": snippetFile, - "image-classification": snippetFile, - "image-to-text": snippetFile, - "object-detection": snippetFile, - "image-segmentation": snippetFile, -}; - -export function getJsInferenceSnippet(model: ModelData, accessToken: string): string { - return model.pipeline_tag && model.pipeline_tag in jsSnippets - ? jsSnippets[model.pipeline_tag]?.(model, accessToken) ?? "" - : ""; -} - -export function hasJsInferenceSnippet(model: ModelData): boolean { - return !!model.pipeline_tag && model.pipeline_tag in jsSnippets; -} diff --git a/js/src/lib/inferenceSnippets/servePython.ts b/js/src/lib/inferenceSnippets/servePython.ts deleted file mode 100644 index 053e9bf5a..000000000 --- a/js/src/lib/inferenceSnippets/servePython.ts +++ /dev/null @@ -1,114 +0,0 @@ -import type { ModelData } from "../interfaces/Types"; -import type { PipelineType } from "../interfaces/Types"; -import { getModelInputSnippet } from "./inputs"; - -export const snippetZeroShotClassification = (model: ModelData): string => - `def query(payload): - response = requests.post(API_URL, headers=headers, json=payload) - return response.json() - -output = query({ - "inputs": ${getModelInputSnippet(model)}, - "parameters": {"candidate_labels": ["refund", "legal", "faq"]}, -})`; - -export const snippetBasic = (model: ModelData): string => - `def query(payload): - response = requests.post(API_URL, headers=headers, json=payload) - return response.json() - -output = query({ - "inputs": ${getModelInputSnippet(model)}, -})`; - -export const snippetFile = (model: ModelData): string => - `def query(filename): - with open(filename, "rb") as f: - data = f.read() - response = requests.post(API_URL, headers=headers, data=data) - return response.json() - -output = query(${getModelInputSnippet(model)})`; - -export const snippetTextToImage = (model: ModelData): string => - `def query(payload): - response = requests.post(API_URL, headers=headers, json=payload) - return response.content -image_bytes = query({ - "inputs": ${getModelInputSnippet(model)}, -}) -# You can access the image with PIL.Image for example -import io -from PIL import Image -image = Image.open(io.BytesIO(image_bytes))`; - -export const snippetTextToAudio = (model: ModelData): string => { - // Transformers TTS pipeline and api-inference-community (AIC) pipeline outputs are diverged - // with the latest update to inference-api (IA). - // Transformers IA returns a byte object (wav file), whereas AIC returns wav and sampling_rate. - if (model.library_name === "transformers") { - return `def query(payload): - response = requests.post(API_URL, headers=headers, json=payload) - return response.content - -audio_bytes = query({ - "inputs": ${getModelInputSnippet(model)}, -}) -# You can access the audio with IPython.display for example -from IPython.display import Audio -Audio(audio_bytes)`; - } else { - return `def query(payload): - response = requests.post(API_URL, headers=headers, json=payload) - return response.json() - -audio, sampling_rate = query({ - "inputs": ${getModelInputSnippet(model)}, -}) -# You can access the audio with IPython.display for example -from IPython.display import Audio -Audio(audio, rate=sampling_rate)`; - } -}; -export const pythonSnippets: Partial string>> = { - // Same order as in js/src/lib/interfaces/Types.ts - "text-classification": snippetBasic, - "token-classification": snippetBasic, - "table-question-answering": snippetBasic, - "question-answering": snippetBasic, - "zero-shot-classification": snippetZeroShotClassification, - "translation": snippetBasic, - "summarization": snippetBasic, - "conversational": snippetBasic, - "feature-extraction": snippetBasic, - "text-generation": snippetBasic, - "text2text-generation": snippetBasic, - "fill-mask": snippetBasic, - "sentence-similarity": snippetBasic, - "automatic-speech-recognition": snippetFile, - "text-to-image": snippetTextToImage, - "text-to-speech": snippetTextToAudio, - "text-to-audio": snippetTextToAudio, - "audio-to-audio": snippetFile, - "audio-classification": snippetFile, - "image-classification": snippetFile, - "image-to-text": snippetFile, - "object-detection": snippetFile, - "image-segmentation": snippetFile, -}; - -export function getPythonInferenceSnippet(model: ModelData, accessToken: string): string { - const body = - model.pipeline_tag && model.pipeline_tag in pythonSnippets ? pythonSnippets[model.pipeline_tag]?.(model) ?? "" : ""; - - return `import requests - -API_URL = "https://api-inference.huggingface.co/models/${model.id}" -headers = {"Authorization": ${accessToken ? `"Bearer ${accessToken}"` : `f"Bearer {API_TOKEN}"`}} - -${body}`; -} - -export function hasPythonInferenceSnippet(model: ModelData): boolean { - return !!model.pipeline_tag && model.pipeline_tag in pythonSnippets; -} diff --git a/js/src/lib/interfaces/DefaultWidget.ts b/js/src/lib/interfaces/DefaultWidget.ts deleted file mode 100644 index fca7616fa..000000000 --- a/js/src/lib/interfaces/DefaultWidget.ts +++ /dev/null @@ -1,718 +0,0 @@ -import type { WidgetExample } from "../components/InferenceWidget/shared/WidgetExample"; -import type { PipelineType } from "./Types"; - -type LanguageCode = string; - -type PerLanguageMapping = Map; - -/// NOTE TO CONTRIBUTORS: -/// -/// When adding sample inputs for a new language, you don't -/// necessarily have to translate the inputs from existing languages. -/// (which were quite random to begin with) -/// -/// i.e. Feel free to be creative and provide better samples. -// - -/// The placeholder will be replaced by the correct mask token -/// in the following examples, depending on the model type -/// -/// see [INTERNAL] github.com/huggingface/moon-landing/blob/c5c3d45fe0ab27347b3ab27bdad646ef20732351/server/lib/App.ts#L254 -// - -const MAPPING_EN: PerLanguageMapping = new Map([ - ["text-classification", [`I like you. I love you`]], - [ - "token-classification", - [ - `My name is Wolfgang and I live in Berlin`, - `My name is Sarah and I live in London`, - `My name is Clara and I live in Berkeley, California.`, - ], - ], - [ - "table-question-answering", - [ - { - text: `How many stars does the transformers repository have?`, - table: { - "Repository": ["Transformers", "Datasets", "Tokenizers"], - "Stars": [36542, 4512, 3934], - "Contributors": [651, 77, 34], - "Programming language": ["Python", "Python", "Rust, Python and NodeJS"], - }, - }, - ], - ], - [ - "question-answering", - [ - { - text: `Where do I live?`, - context: `My name is Wolfgang and I live in Berlin`, - }, - { - text: `Where do I live?`, - context: `My name is Sarah and I live in London`, - }, - { - text: `What's my name?`, - context: `My name is Clara and I live in Berkeley.`, - }, - { - text: `Which name is also used to describe the Amazon rainforest in English?`, - context: `The Amazon rainforest (Portuguese: Floresta Amazônica or Amazônia; Spanish: Selva Amazónica, Amazonía or usually Amazonia; French: Forêt amazonienne; Dutch: Amazoneregenwoud), also known in English as Amazonia or the Amazon Jungle, is a moist broadleaf forest that covers most of the Amazon basin of South America. This basin encompasses 7,000,000 square kilometres (2,700,000 sq mi), of which 5,500,000 square kilometres (2,100,000 sq mi) are covered by the rainforest. This region includes territory belonging to nine nations. The majority of the forest is contained within Brazil, with 60% of the rainforest, followed by Peru with 13%, Colombia with 10%, and with minor amounts in Venezuela, Ecuador, Bolivia, Guyana, Suriname and French Guiana. States or departments in four nations contain "Amazonas" in their names. The Amazon represents over half of the planet's remaining rainforests, and comprises the largest and most biodiverse tract of tropical rainforest in the world, with an estimated 390 billion individual trees divided into 16,000 species.`, - }, - ], - ], - [ - "zero-shot-classification", - [ - { - text: "I have a problem with my iphone that needs to be resolved asap!!", - candidate_labels: "urgent, not urgent, phone, tablet, computer", - multi_class: true, - }, - { - text: "Last week I upgraded my iOS version and ever since then my phone has been overheating whenever I use your app.", - candidate_labels: "mobile, website, billing, account access", - multi_class: false, - }, - { - text: "A new model offers an explanation for how the Galilean satellites formed around the solar system’s largest world. Konstantin Batygin did not set out to solve one of the solar system’s most puzzling mysteries when he went for a run up a hill in Nice, France. Dr. Batygin, a Caltech researcher, best known for his contributions to the search for the solar system’s missing “Planet Nine,” spotted a beer bottle. At a steep, 20 degree grade, he wondered why it wasn’t rolling down the hill. He realized there was a breeze at his back holding the bottle in place. Then he had a thought that would only pop into the mind of a theoretical astrophysicist: “Oh! This is how Europa formed.” Europa is one of Jupiter’s four large Galilean moons. And in a paper published Monday in the Astrophysical Journal, Dr. Batygin and a co-author, Alessandro Morbidelli, a planetary scientist at the Côte d’Azur Observatory in France, present a theory explaining how some moons form around gas giants like Jupiter and Saturn, suggesting that millimeter-sized grains of hail produced during the solar system’s formation became trapped around these massive worlds, taking shape one at a time into the potentially habitable moons we know today.", - candidate_labels: "space & cosmos, scientific discovery, microbiology, robots, archeology", - multi_class: true, - }, - ], - ], - ["translation", [`My name is Wolfgang and I live in Berlin`, `My name is Sarah and I live in London`]], - [ - "summarization", - [ - `The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building, and the tallest structure in Paris. Its base is square, measuring 125 metres (410 ft) on each side. During its construction, the Eiffel Tower surpassed the Washington Monument to become the tallest man-made structure in the world, a title it held for 41 years until the Chrysler Building in New York City was finished in 1930. It was the first structure to reach a height of 300 metres. Due to the addition of a broadcasting aerial at the top of the tower in 1957, it is now taller than the Chrysler Building by 5.2 metres (17 ft). Excluding transmitters, the Eiffel Tower is the second tallest free-standing structure in France after the Millau Viaduct.`, - ], - ], - [ - "conversational", - [ - `Hey my name is Julien! How are you?`, - `Hey my name is Thomas! How are you?`, - `Hey my name is Mariama! How are you?`, - `Hey my name is Clara! How are you?`, - `Hey my name is Julien! How are you?`, - `Hi.`, - ], - ], - [ - "text-generation", - [ - `My name is Julien and I like to`, - `My name is Thomas and my main`, - `My name is Mariama, my favorite`, - `My name is Clara and I am`, - `My name is Lewis and I like to`, - `My name is Merve and my favorite`, - `My name is Teven and I am`, - `Once upon a time,`, - ], - ], - ["fill-mask", [`Paris is the of France.`, `The goal of life is .`]], - [ - "sentence-similarity", - [ - { - source_sentence: "That is a happy person", - sentences: ["That is a happy dog", "That is a very happy person", "Today is a sunny day"], - }, - ], - ], -]); - -const MAPPING_ZH: PerLanguageMapping = new Map([ - ["text-classification", [`我喜欢你。 我爱你`]], - ["token-classification", [`我叫沃尔夫冈,我住在柏林。`, `我叫萨拉,我住在伦敦。`, `我叫克拉拉,我住在加州伯克利。`]], - [ - "question-answering", - [ - { - text: `我住在哪里?`, - context: `我叫沃尔夫冈,我住在柏林。`, - }, - { - text: `我住在哪里?`, - context: `我叫萨拉,我住在伦敦。`, - }, - { - text: `我的名字是什么?`, - context: `我叫克拉拉,我住在伯克利。`, - }, - ], - ], - ["translation", [`我叫沃尔夫冈,我住在柏林。`, `我叫萨拉,我住在伦敦。`]], - [ - "zero-shot-classification", - [ - { - text: "房间干净明亮,非常不错", - candidate_labels: "这是一条差评, 这是一条好评", - }, - ], - ], - [ - "summarization", - [ - `该塔高324米(1063英尺),与一幢81层的建筑物一样高,是巴黎最高的建筑物。 它的底座是方形的,每边长125米(410英尺)。 在建造过程中,艾菲尔铁塔超过了华盛顿纪念碑,成为世界上最高的人造结构,它保持了41年的头衔,直到1930年纽约市的克莱斯勒大楼竣工。这是第一个到达300米高度的结构。 由于1957年在塔顶增加了广播天线,因此它现在比克莱斯勒大厦高5.2米(17英尺)。 除发射器外,艾菲尔铁塔是法国第二高的独立式建筑,仅次于米劳高架桥。`, - ], - ], - [ - "text-generation", - [`我叫朱利安,我喜欢`, `我叫托马斯,我的主要`, `我叫玛丽亚,我最喜欢的`, `我叫克拉拉,我是`, `从前,`], - ], - ["fill-mask", [`巴黎是国的首都。`, `生活的真谛是。`]], - [ - "sentence-similarity", - [ - { - source_sentence: "那是 個快樂的人", - sentences: ["那是 條快樂的狗", "那是 個非常幸福的人", "今天是晴天"], - }, - ], - ], -]); - -const MAPPING_FR: PerLanguageMapping = new Map([ - ["text-classification", [`Je t'apprécie beaucoup. Je t'aime.`]], - ["token-classification", [`Mon nom est Wolfgang et je vis à Berlin`]], - [ - "question-answering", - [ - { - text: `Où est-ce que je vis?`, - context: `Mon nom est Wolfgang et je vis à Berlin`, - }, - ], - ], - ["translation", [`Mon nom est Wolfgang et je vis à Berlin`]], - [ - "summarization", - [ - `La tour fait 324 mètres (1,063 pieds) de haut, environ la même hauteur qu'un immeuble de 81 étages, et est la plus haute structure de Paris. Sa base est carrée, mesurant 125 mètres (410 pieds) sur chaque côté. Durant sa construction, la tour Eiffel surpassa le Washington Monument pour devenir la plus haute structure construite par l'homme dans le monde, un titre qu'elle conserva pendant 41 ans jusqu'à l'achèvement du Chrysler Building à New-York City en 1930. Ce fut la première structure à atteindre une hauteur de 300 mètres. Avec l'ajout d'une antenne de radiodiffusion au sommet de la tour Eiffel en 1957, celle-ci redevint plus haute que le Chrysler Building de 5,2 mètres (17 pieds). En excluant les transmetteurs, elle est la seconde plus haute stucture autoportante de France après le viaduc de Millau.`, - ], - ], - ["text-generation", [`Mon nom est Julien et j'aime`, `Mon nom est Thomas et mon principal`, `Il était une fois`]], - ["fill-mask", [`Paris est la de la France.`]], - [ - "sentence-similarity", - [ - { - source_sentence: "C'est une personne heureuse", - sentences: [ - "C'est un chien heureux", - "C'est une personne très heureuse", - "Aujourd'hui est une journée ensoleillée", - ], - }, - ], - ], -]); - -const MAPPING_ES: PerLanguageMapping = new Map([ - ["text-classification", [`Te quiero. Te amo.`]], - ["token-classification", [`Me llamo Wolfgang y vivo en Berlin`]], - [ - "question-answering", - [ - { - text: `¿Dónde vivo?`, - context: `Me llamo Wolfgang y vivo en Berlin`, - }, - { - text: `¿Quién inventó el submarino?`, - context: `Isaac Peral fue un murciano que inventó el submarino`, - }, - { - text: `¿Cuántas personas hablan español?`, - context: `El español es el segundo idioma más hablado del mundo con más de 442 millones de hablantes`, - }, - ], - ], - [ - "translation", - [ - `Me llamo Wolfgang y vivo en Berlin`, - `Los ingredientes de una tortilla de patatas son: huevos, patatas y cebolla`, - ], - ], - [ - "summarization", - [ - `La torre tiene 324 metros (1.063 pies) de altura, aproximadamente la misma altura que un edificio de 81 pisos y la estructura más alta de París. Su base es cuadrada, mide 125 metros (410 pies) a cada lado. Durante su construcción, la Torre Eiffel superó al Washington Monument para convertirse en la estructura artificial más alta del mundo, un título que mantuvo durante 41 años hasta que el Chrysler Building en la ciudad de Nueva York se terminó en 1930. Fue la primera estructura en llegar Una altura de 300 metros. Debido a la adición de una antena de transmisión en la parte superior de la torre en 1957, ahora es más alta que el Chrysler Building en 5,2 metros (17 pies). Excluyendo los transmisores, la Torre Eiffel es la segunda estructura independiente más alta de Francia después del Viaducto de Millau.`, - ], - ], - [ - "text-generation", - [ - `Me llamo Julien y me gusta`, - `Me llamo Thomas y mi principal`, - `Me llamo Manuel y trabajo en`, - `Érase una vez,`, - `Si tú me dices ven, `, - ], - ], - ["fill-mask", [`Mi nombre es y vivo en Nueva York.`, `El español es un idioma muy en el mundo.`]], - [ - "sentence-similarity", - [ - { - source_sentence: "Esa es una persona feliz", - sentences: ["Ese es un perro feliz", "Esa es una persona muy feliz", "Hoy es un día soleado"], - }, - ], - ], -]); - -const MAPPING_RU: PerLanguageMapping = new Map([ - ["text-classification", [`Ты мне нравишься. Я тебя люблю`]], - ["token-classification", [`Меня зовут Вольфганг и я живу в Берлине`]], - [ - "question-answering", - [ - { - text: `Где живу?`, - context: `Меня зовут Вольфганг и я живу в Берлине`, - }, - ], - ], - ["translation", [`Меня зовут Вольфганг и я живу в Берлине`]], - [ - "summarization", - [ - `Высота башни составляет 324 метра (1063 фута), примерно такая же высота, как у 81-этажного здания, и самое высокое сооружение в Париже. Его основание квадратно, размером 125 метров (410 футов) с любой стороны. Во время строительства Эйфелева башня превзошла монумент Вашингтона, став самым высоким искусственным сооружением в мире, и этот титул она удерживала в течение 41 года до завершения строительство здания Крайслер в Нью-Йорке в 1930 году. Это первое сооружение которое достигло высоты 300 метров. Из-за добавления вещательной антенны на вершине башни в 1957 году она сейчас выше здания Крайслер на 5,2 метра (17 футов). За исключением передатчиков, Эйфелева башня является второй самой высокой отдельно стоящей структурой во Франции после виадука Мийо.`, - ], - ], - ["text-generation", [`Меня зовут Жюльен и`, `Меня зовут Томас и мой основной`, `Однажды`]], - ["fill-mask", [`Меня зовут и я инженер живущий в Нью-Йорке.`]], - [ - "sentence-similarity", - [ - { - source_sentence: "Это счастливый человек", - sentences: ["Это счастливая собака", "Это очень счастливый человек", "Сегодня солнечный день"], - }, - ], - ], -]); - -const MAPPING_UK: PerLanguageMapping = new Map([ - ["translation", [`Мене звати Вольфґанґ і я живу в Берліні.`]], - ["fill-mask", [`Мене звати .`]], -]); - -const MAPPING_IT: PerLanguageMapping = new Map([ - ["text-classification", [`Mi piaci. Ti amo`]], - [ - "token-classification", - [ - `Mi chiamo Wolfgang e vivo a Berlino`, - `Mi chiamo Sarah e vivo a Londra`, - `Mi chiamo Clara e vivo a Berkeley in California.`, - ], - ], - [ - "question-answering", - [ - { - text: `Dove vivo?`, - context: `Mi chiamo Wolfgang e vivo a Berlino`, - }, - { - text: `Dove vivo?`, - context: `Mi chiamo Sarah e vivo a Londra`, - }, - { - text: `Come mio chiamo?`, - context: `Mi chiamo Clara e vivo a Berkeley.`, - }, - ], - ], - ["translation", [`Mi chiamo Wolfgang e vivo a Berlino`, `Mi chiamo Sarah e vivo a Londra`]], - [ - "summarization", - [ - `La torre degli Asinelli è una delle cosiddette due torri di Bologna, simbolo della città, situate in piazza di porta Ravegnana, all'incrocio tra le antiche strade San Donato (ora via Zamboni), San Vitale, Maggiore e Castiglione. Eretta, secondo la tradizione, fra il 1109 e il 1119 dal nobile Gherardo Asinelli, la torre è alta 97,20 metri, pende verso ovest per 2,23 metri e presenta all'interno una scalinata composta da 498 gradini. Ancora non si può dire con certezza quando e da chi fu costruita la torre degli Asinelli. Si presume che la torre debba il proprio nome a Gherardo Asinelli, il nobile cavaliere di fazione ghibellina al quale se ne attribuisce la costruzione, iniziata secondo una consolidata tradizione l'11 ottobre 1109 e terminata dieci anni dopo, nel 1119.`, - ], - ], - [ - "text-generation", - [ - `Mi chiamo Loreto e mi piace`, - `Mi chiamo Thomas e il mio principale`, - `Mi chiamo Marianna, la mia cosa preferita`, - `Mi chiamo Clara e sono`, - `C'era una volta`, - ], - ], - ["fill-mask", [`Roma è la d'Italia.`, `Lo scopo della vita è .`]], - [ - "sentence-similarity", - [ - { - source_sentence: "Questa è una persona felice", - sentences: ["Questo è un cane felice", "Questa è una persona molto felice", "Oggi è una giornata di sole"], - }, - ], - ], -]); - -const MAPPING_FA: PerLanguageMapping = new Map([ - [ - "text-classification", - [`پروژه به موقع تحویل شد و همه چیز خوب بود.`, `سیب‌زمینی بی‌کیفیت بود.`, `قیمت و کیفیت عالی`, `خوب نبود اصلا`], - ], - [ - "token-classification", - [ - `این سریال به صورت رسمی در تاریخ دهم می ۲۰۱۱ توسط شبکه فاکس برای پخش رزرو شد.`, - `دفتر مرکزی شرکت پارس‌مینو در شهر اراک در استان مرکزی قرار دارد.`, - `وی در سال ۲۰۱۳ درگذشت و مسئول خاکسپاری و اقوامش برای او مراسم یادبود گرفتند.`, - ], - ], - [ - "question-answering", - [ - { - text: `من کجا زندگی میکنم؟`, - context: `نام من پژمان است و در گرگان زندگی میکنم.`, - }, - { - text: `نامم چیست و کجا زندگی می‌کنم؟`, - context: `اسمم سارا است و در آفریقای جنوبی زندگی میکنم.`, - }, - { - text: `نام من چیست؟`, - context: `من مریم هستم و در تبریز زندگی می‌کنم.`, - }, - { - text: `بیشترین مساحت جنگل آمازون در کدام کشور است؟`, - context: [ - "آمازون نام بزرگ‌ترین جنگل بارانی جهان است که در شمال آمریکای جنوبی قرار گرفته و بیشتر آن در خاک برزیل و پرو", - "جای دارد. بیش از نیمی از همه جنگل‌های بارانی باقی‌مانده در جهان در آمازون قرار دارد.", - "مساحت جنگل‌های آمازون ۵٫۵ میلیون کیلومتر مربع است که بین ۹ کشور تقسیم شده‌است.", - ].join("\n"), - }, - ], - ], - [ - "translation", - [ - "بیشتر مساحت جنگل‌های آمازون در حوضه آبریز رود آمازون و ۱۱۰۰ شاخه آن واقع شده‌است.", - "مردمان نَبَطی از هزاره‌های یکم و دوم پیش از میلاد در این منطقه زندگی می‌کردند.", - ], - ], - [ - "summarization", - [ - [ - "شاهنامه اثر حکیم ابوالقاسم فردوسی توسی، حماسه‌ای منظوم، بر حسب دست نوشته‌های ", - "موجود دربرگیرنده نزدیک به ۵۰٬۰۰۰ بیت تا نزدیک به ۶۱٬۰۰۰ بیت و یکی از ", - "بزرگ‌ترین و برجسته‌ترین سروده‌های حماسی جهان است که سرایش آن دست‌آوردِ ", - "دست‌کم سی سال کارِ پیوستهٔ این سخن‌سرای نامدار ایرانی است. موضوع این شاهکار ادبی،", - " افسانه‌ها و تاریخ ایران از آغاز تا حملهٔ عرب‌ها به ایران در سدهٔ هفتم میلادی است", - " (شاهنامه از سه بخش اسطوره، پهلوانی و تاریخی تشکیل شده‌است) که در چهار", - " دودمان پادشاهیِ پیشدادیان، کیانیان، اشکانیان و ساسانیان گنجانده می‌شود.", - " شاهنامه بر وزن «فَعولُن فعولن فعولن فَعَلْ»، در بحرِ مُتَقارِبِ مثمَّنِ محذوف نگاشته شده‌است.", - "هنگامی که زبان دانش و ادبیات در ایران زبان عربی بود، فردوسی، با سرودن شاهنامه", - " با ویژگی‌های هدف‌مندی که داشت، زبان پارسی را زنده و پایدار کرد. یکی از ", - " بن‌مایه‌های مهمی که فردوسی برای سرودن شاهنامه از آن استفاده کرد،", - " شاهنامهٔ ابومنصوری بود. شاهنامه نفوذ بسیاری در جهت‌گیری ", - " فرهنگ فارسی و نیز بازتاب‌های شکوه‌مندی در ادبیات جهان داشته‌است و شاعران ", - " بزرگی مانند گوته و ویکتور هوگو از آن به نیکی یاد کرده‌اند.", - ].join("\n"), - ], - ], - ["text-generation", ["اسم من نازنین است و من", "روزی روزگاری"]], - [ - "fill-mask", - [ - `زندگی یک سوال است و این که چگونه کنیم پاسخ این سوال!`, - `زندگی از مرگ پرسید: چرا همه من را دارند اما از تو متنفرند؟`, - ], - ], -]); - -const MAPPING_AR: PerLanguageMapping = new Map([ - ["text-classification", [`أحبك. أهواك`]], - [ - "token-classification", - [`إسمي محمد وأسكن في برلين`, `إسمي ساره وأسكن في لندن`, `إسمي سامي وأسكن في القدس في فلسطين.`], - ], - [ - "question-answering", - [ - { - text: `أين أسكن؟`, - context: `إسمي محمد وأسكن في بيروت`, - }, - { - text: `أين أسكن؟`, - context: `إسمي ساره وأسكن في لندن`, - }, - { - text: `ما اسمي؟`, - context: `اسمي سعيد وأسكن في حيفا.`, - }, - { - text: `ما لقب خالد بن الوليد بالعربية؟`, - context: `خالد بن الوليد من أبطال وقادة الفتح الإسلامي وقد تحدثت عنه اللغات الإنجليزية والفرنسية والإسبانية ولقب بسيف الله المسلول.`, - }, - ], - ], - ["translation", [`إسمي محمد وأسكن في برلين`, `إسمي ساره وأسكن في لندن`]], - [ - "summarization", - [ - `تقع الأهرامات في الجيزة قرب القاهرة في مصر وقد بنيت منذ عدة قرون، وقيل إنها كانت قبورا للفراعنة وتم بناؤها بعملية هندسية رائعة واستقدمت حجارتها من جبل المقطم وتم نقلها بالسفن أو على الرمل، وما تزال شامخة ويقصدها السياح من كافة أرجاء المعمورة.`, - ], - ], - [ - "text-generation", - [ - `إسمي محمد وأحب أن`, - `دع المكارم لا ترحل لبغيتها - واقعد فإنك أنت الطاعم الكاسي.`, - `لماذا نحن هنا؟`, - `القدس مدينة تاريخية، بناها الكنعانيون في`, - `كان يا ما كان في قديم الزمان`, - ], - ], - ["fill-mask", [`باريس فرنسا.`, `فلسفة الحياة هي .`]], - [ - "sentence-similarity", - [ - { - source_sentence: "هذا شخص سعيد", - sentences: ["هذا كلب سعيد", "هذا شخص سعيد جدا", "اليوم هو يوم مشمس"], - }, - ], - ], -]); - -const MAPPING_BN: PerLanguageMapping = new Map([ - ["text-classification", [`বাঙালির ঘরে ঘরে আজ নবান্ন উৎসব।`]], - [ - "token-classification", - [`আমার নাম জাহিদ এবং আমি ঢাকায় বাস করি।`, `তিনি গুগলে চাকরী করেন।`, `আমার নাম সুস্মিতা এবং আমি কলকাতায় বাস করি।`], - ], - ["translation", [`আমার নাম জাহিদ, আমি রংপুরে বাস করি।`, `আপনি কী আজকে বাসায় আসবেন?`]], - [ - "summarization", - [ - `‘ইকোনমিস্ট’ লিখেছে, অ্যান্টিবডির চার মাস স্থায়ী হওয়ার খবরটি দুই কারণে আনন্দের। অ্যান্টিবডি যত দিন পর্যন্ত শরীরে টিকবে, তত দিন সংক্রমণ থেকে সুরক্ষিত থাকা সম্ভব। অর্থাৎ, এমন এক টিকার প্রয়োজন হবে, যা অ্যান্টিবডির উত্পাদনকে প্ররোচিত করতে পারে এবং দীর্ঘস্থায়ী সুরক্ষা দিতে পারে। এগুলো খুঁজে বের করাও সহজ। এটি আভাস দেয়, ব্যাপক হারে অ্যান্টিবডি শনাক্তকরণ ফলাফল মোটামুটি নির্ভুল হওয়া উচিত। দ্বিতীয় আরেকটি গবেষণার নেতৃত্ব দিয়েছেন যুক্তরাজ্যের মেডিকেল রিসার্চ কাউন্সিলের (এমআরসি) ইমিউনোলজিস্ট তাও দং। তিনি টি-সেল শনাক্তকরণে কাজ করেছেন। টি-সেল শনাক্তকরণের প্রক্রিয়া অবশ্য অ্যান্টিবডির মতো এত আলোচিত নয়। তবে সংক্রমণের বিরুদ্ধে লড়াই এবং দীর্ঘমেয়াদি সুরক্ষায় সমান গুরুত্বপূর্ণ ভূমিকা পালন করে। গবেষণাসংক্রান্ত নিবন্ধ প্রকাশিত হয়েছে ‘নেচার ইমিউনোলজি’ সাময়িকীতে। তাঁরা বলছেন, গবেষণার ক্ষেত্রে কোভিড-১৯ মৃদু সংক্রমণের শিকার ২৮ ব্যক্তির রক্তের নমুনা, ১৪ জন গুরুতর অসুস্থ ও ১৬ জন সুস্থ ব্যক্তির রক্তের নমুনা পরীক্ষা করেছেন। গবেষণা নিবন্ধে বলা হয়, সংক্রমিত ব্যক্তিদের ক্ষেত্রে টি-সেলের তীব্র প্রতিক্রিয়া তাঁরা দেখেছেন। এ ক্ষেত্রে মৃদু ও গুরুতর অসুস্থ ব্যক্তিদের ক্ষেত্রে প্রতিক্রিয়ার ভিন্নতা পাওয়া গেছে।`, - ], - ], - ["text-generation", [`আমি রতন এবং আমি`, `তুমি যদি চাও তবে`, `মিথিলা আজকে বড্ড`]], - ["fill-mask", [`আমি বাংলায় গাই।`, `আমি খুব ভালোবাসি। `]], - [ - "question-answering", - [ - { - text: `প্রথম এশিয়া কাপ ক্রিকেট টুর্নামেন্ট কোথায় অনুষ্ঠিত হয় ?`, - context: `প্রথম টুর্নামেন্ট অনুষ্ঠিত হয় ১৯৮৪ সালে সংযুক্ত আরব আমিরাত এর শারজাহ তে যেখানে কাউন্সিলের মূল অফিস ছিল (১৯৯৫ পর্যন্ত)। ভারত শ্রীলঙ্কার সাথে আন্তরিকতাহীন ক্রিকেট সম্পর্কের কারণে ১৯৮৬ সালের টুর্নামেন্ট বর্জন করে। ১৯৯৩ সালে ভারত ও পাকিস্তান এর মধ্যে রাজনৈতিক অস্থিরতার কারণে এটি বাতিল হয়ে যায়। শ্রীলঙ্কা এশিয়া কাপ শুরু থেকে অংশ গ্রহণ করে আসছে। আন্তর্জাতিক ক্রিকেট কাউন্সিল নিয়ম করে দিয়েছে যে এশিয়া কাপের সকল খেলা অনুষ্ঠিত হবে অফিসিয়াল একদিনের আন্তর্জাতিক ক্রিকেট হিসেবে। এসিসি ঘোষনা অনুযায়ী প্রতি দুই বছর পর পর টুর্নামেন্ট অনুষ্ঠিত হয় ২০০৮ সাল থেকে।`, - }, - { - text: `ভারতীয় বাঙালি কথাসাহিত্যিক মহাশ্বেতা দেবীর মৃত্যু কবে হয় ?`, - context: `২০১৬ সালের ২৩ জুলাই হৃদরোগে আক্রান্ত হয়ে মহাশ্বেতা দেবী কলকাতার বেল ভিউ ক্লিনিকে ভর্তি হন। সেই বছরই ২৮ জুলাই একাধিক অঙ্গ বিকল হয়ে তাঁর মৃত্যু ঘটে। তিনি মধুমেহ, সেপ্টিসেমিয়া ও মূত্র সংক্রমণ রোগেও ভুগছিলেন।`, - }, - { - text: `মাস্টারদা সূর্যকুমার সেনের বাবার নাম কী ছিল ?`, - context: `সূর্য সেন ১৮৯৪ সালের ২২ মার্চ চট্টগ্রামের রাউজান থানার নোয়াপাড়ায় অর্থনৈতিক ভাবে অস্বচ্ছল পরিবারে জন্মগ্রহণ করেন। তাঁর পিতার নাম রাজমনি সেন এবং মাতার নাম শশী বালা সেন। রাজমনি সেনের দুই ছেলে আর চার মেয়ে। সূর্য সেন তাঁদের পরিবারের চতুর্থ সন্তান। দুই ছেলের নাম সূর্য ও কমল। চার মেয়ের নাম বরদাসুন্দরী, সাবিত্রী, ভানুমতী ও প্রমিলা। শৈশবে পিতা মাতাকে হারানো সূর্য সেন কাকা গৌরমনি সেনের কাছে মানুষ হয়েছেন। সূর্য সেন ছেলেবেলা থেকেই খুব মনোযোগী ভাল ছাত্র ছিলেন এবং ধর্মভাবাপন্ন গম্ভীর প্রকৃতির ছিলেন।`, - }, - ], - ], - [ - "sentence-similarity", - [ - { - source_sentence: "সে একজন সুখী ব্যক্তি", - sentences: ["সে হ্যাপি কুকুর", "সে খুব সুখী মানুষ", "আজ একটি রৌদ্রোজ্জ্বল দিন"], - }, - ], - ], -]); - -const MAPPING_MN: PerLanguageMapping = new Map([ - ["text-classification", [`Би чамд хайртай`]], - [ - "token-classification", - [ - `Намайг Дорж гэдэг. Би Улаанбаатарт амьдардаг.`, - `Намайг Ганбат гэдэг. Би Увс аймагт төрсөн.`, - `Манай улс таван хошуу малтай.`, - ], - ], - [ - "question-answering", - [ - { - text: `Та хаана амьдардаг вэ?`, - context: `Намайг Дорж гэдэг. Би Улаанбаатарт амьдардаг.`, - }, - { - text: `Таныг хэн гэдэг вэ?`, - context: `Намайг Дорж гэдэг. Би Улаанбаатарт амьдардаг.`, - }, - { - text: `Миний нэрийг хэн гэдэг вэ?`, - context: `Намайг Ганбат гэдэг. Би Увс аймагт төрсөн.`, - }, - ], - ], - ["translation", [`Намайг Дорж гэдэг. Би Улаанбаатарт амьдардаг.`, `Намайг Ганбат гэдэг. Би Увс аймагт төрсөн.`]], - [ - "summarization", - [ - `Монгол Улс (1992 оноос хойш) — дорно болон төв Азид оршдог бүрэн эрхт улс. Хойд талаараа Орос, бусад талаараа Хятад улстай хиллэдэг далайд гарцгүй орон. Нийслэл — Улаанбаатар хот. Алтайн нуруунаас Хянган, Соёноос Говь хүрсэн 1 сая 566 мянган км2 уудам нутагтай, дэлхийд нутаг дэвсгэрийн хэмжээгээр 19-рт жагсдаг. 2015 оны эхэнд Монгол Улсын хүн ам 3 сая хүрсэн (135-р олон). Үндсэндээ монгол үндэстэн (95 хувь), мөн хасаг, тува хүн байна. 16-р зуунаас хойш буддын шашин, 20-р зуунаас шашингүй байдал дэлгэрсэн ба албан хэрэгт монгол хэлээр харилцана.`, - ], - ], - [ - "text-generation", - [`Намайг Дорж гэдэг. Би`, `Хамгийн сайн дуучин бол`, `Миний дуртай хамтлаг бол`, `Эрт урьдын цагт`], - ], - ["fill-mask", [`Монгол улсын Улаанбаатар хотоос ярьж байна.`, `Миний амьдралын зорилго бол .`]], - [ - "automatic-speech-recognition", - [ - { - label: `Common Voice Train Example`, - src: `https://cdn-media.huggingface.co/common_voice/train/common_voice_mn_18577472.wav`, - }, - { - label: `Common Voice Test Example`, - src: `https://cdn-media.huggingface.co/common_voice/test/common_voice_mn_18577346.wav`, - }, - ], - ], - [ - "text-to-speech", - [ - `Би Монгол улсын иргэн.`, - `Энэхүү жишээ нь цаанаа ямар ч утга агуулаагүй болно`, - `Сар шинэдээ сайхан шинэлэж байна уу?`, - ], - ], - [ - "sentence-similarity", - [ - { - source_sentence: "Энэ бол аз жаргалтай хүн юм", - sentences: ["Энэ бол аз жаргалтай нохой юм", "Энэ бол маш их аз жаргалтай хүн юм", "Өнөөдөр нарлаг өдөр байна"], - }, - ], - ], -]); - -const MAPPING_SI: PerLanguageMapping = new Map([ - ["translation", [`සිංහල ඉතා අලංකාර භාෂාවකි.`, `මෙම තාක්ෂණය භාවිතා කරන ඔබට ස්තූතියි.`]], - ["fill-mask", [`මම ගෙදර .`, ` ඉගෙනීමට ගියාය.`]], -]); - -const MAPPING_DE: PerLanguageMapping = new Map([ - [ - "question-answering", - [ - { - text: `Wo wohne ich?`, - context: `Mein Name ist Wolfgang und ich lebe in Berlin`, - }, - { - text: `Welcher Name wird auch verwendet, um den Amazonas-Regenwald auf Englisch zu beschreiben?`, - context: `Der Amazonas-Regenwald, auf Englisch auch als Amazonien oder Amazonas-Dschungel bekannt, ist ein feuchter Laubwald, der den größten Teil des Amazonas-Beckens Südamerikas bedeckt. Dieses Becken umfasst 7.000.000 Quadratkilometer (2.700.000 Quadratmeilen), von denen 5.500.000 Quadratkilometer (2.100.000 Quadratmeilen) vom Regenwald bedeckt sind. Diese Region umfasst Gebiete von neun Nationen. Der größte Teil des Waldes befindet sich in Brasilien mit 60% des Regenwaldes, gefolgt von Peru mit 13%, Kolumbien mit 10% und geringen Mengen in Venezuela, Ecuador, Bolivien, Guyana, Suriname und Französisch-Guayana. Staaten oder Abteilungen in vier Nationen enthalten "Amazonas" in ihren Namen. Der Amazonas repräsentiert mehr als die Hälfte der verbleibenden Regenwälder des Planeten und umfasst den größten und artenreichsten tropischen Regenwald der Welt mit geschätzten 390 Milliarden Einzelbäumen, die in 16.000 Arten unterteilt sind.`, - }, - ], - ], - [ - "sentence-similarity", - [ - { - source_sentence: "Das ist eine glückliche Person", - sentences: [ - "Das ist ein glücklicher Hund", - "Das ist eine sehr glückliche Person", - "Heute ist ein sonniger Tag", - ], - }, - ], - ], -]); - -const MAPPING_DV: PerLanguageMapping = new Map([ - ["text-classification", [`އަހަރެން ގަޔާވޭ. އަހަރެން ލޯބިވޭ`]], - [ - "token-classification", - [ - `އަހަރެންގެ ނަމަކީ އަހުމަދު އަދި އަހަރެން ދިރިއުޅެނީ މާލޭގަ`, - `އަހަރެންގެ ނަމަކީ ސާރާ އަދި އަހަރެން ދިރިއުޅެނީ އުތީމުގަ`, - `އަހަރެންގެ ނަމަކީ އައިޝާ އަދި އަހަރެން ދިރިއުޅެނީ ފޭދޫ، އައްޑޫގަ`, - ], - ], - [ - "question-answering", - [ - { - text: `އަހަރެން ދިރިއުޅެނީ ކޮންތާކު؟`, - context: `އަހަރެންގެ ނަމަކީ އަހުމަދު އަދި އަހަރެން ދިރިއުޅެނީ މާލޭގަ`, - }, - { - text: `އަހަރެން ދިރިއުޅެނީ ކޮންތާކު؟`, - context: `އަހަރެންގެ ނަމަކީ ސާރާ އަދި އަހަރެން ދިރިއުޅެނީ އުތީމުގަ`, - }, - { - text: `އަހަރެންގެ ނަމަކީ ކޮބާ؟`, - context: `އަހަރެންގެ ނަމަކީ އައިޝާ އަދި އަހަރެން ދިރިއުޅެނީ ފޭދޫގަ`, - }, - { - text: `އެމޭޒަން ރެއިންފޮރެސްޓް ސިފަކޮށްދިނުމަށް އިނގިރޭސި ބަހުން ބޭނުންކުރާނީ ކޮންނަމެއް؟`, - context: `އެމޭޒަން ރެއިންފޮރެސްޓް (ޕޯޗުޖީޒް: ފްލޮރެސްޓާ އެމަސޮނިކާ ނުވަތަ އެމަސޮނިއާ؛ ސްޕެނިޝް: ސެލްވާ އެމަސޮނިކާ, އެމަސޮނިއާ ނޫނީ އާންމުކޮށް އެމަޒޯނިއާ؛ ފްރެންޗް: ފޮރޭ އެމެޒޮނިއެން؛ ޑަޗް: އެމެޒޯންރޭގެވައުޑް)، އިގިރޭސި ބަހުން ބުނާ އެމެޒޯނިއާ ނުވަތަ ދަ އެމޭޒަން ޖަންގަލް އަކީ, ސައުތު އެމެރިކާގެ އެމޭޒަން ބޭސިން ސަރަހައްދުގެ ބޮޑުބައެއްގައި ހިމެނޭ މޮއިސްޓް ބޮރޯޑްލީފް ފޮރެސްޓެއެކެވެ. އެމޭޒަން ބޭސިން ސަރަހައްދުގެ ބޮޑު މިނަކީ 7 މިލިއަން އަކަ ކިލޯމީޓަރ (2.7 މިލިއަން އަކަ މައިލް(. މީގެ ތެރެއިން 5.5 މިލިއަން އަކަ ކިލޯމީޓަރ (2.1 މިލިއަން އަކަ މައިލް) އަކީ މި ފޮރެސްޓެވެ. މި ސަރަހައްދުގައި 9 ގައުމަކަށް ނިސްބަތްވާ ޓެރިޓަރީ ހިމެނެއެވެ. 60% އާއިއެކެ އެންމެ ބޮޑު ބައެއް ނިސްބަތްވަނީ ބްރެޒިލްއަށެވެ. އޭގެ ފަހުތުން 13% އާއެކު ޕެރޫ އާއި 10% އާއެކު ކޮލަމްބިއާ އަދި ކުޑަ ބައެއް ހިމެނޭ ގޮތުން ވެނެޒުއެލާ, އެކްއަޑޯ, ބޮލިވިއާ, ގުޔާނާ, ސުރިނާމް އަދި ފްރެންޗް ގްއާނާ އަށް ވެސް ނިސްބަތްވެއެވެ. މީގެ ތެރެއިން 4 ގައުމެއްގައި "އެމެޒޮނާސް" ހިމަނައިގެން ސްޓޭޓް ނުވަތަ ޑިޕާޓްމަންޓް އަކަށް ނަންދީފައިވެއެވެ. މުޅި ދުނިޔޭގައި ބާކީ ހުރި ރެއިންފޮރެސްޓްގެ ތެރެއިން ދެބައިކުޅަ އެއްބަޔަށްވުރެބޮޑުވަރެއް އެމޭޒޮން ރެއިންފޮރެސްޓް ހިއްސާކުރެއެވެ. މިއީ މުޅި ދުނިޔެއިން އެންމޮ ބޮޑު އަދި އެންމެ ބައޮޑައިވަރސް ރެއިންފޮރެސްޓް ޓްރެކްޓެވެ. ލަފާކުރެވޭ ގޮތުން 16 ހާސް ސްޕީޝީސްއަށް ބެހިގެންވާ 390 މިލިއަން ވައްތަރުގެ ގަސް މިތާގައި ހިމެނެއެވެ`, - }, - ], - ], - [ - "translation", - [ - `އަހަރެންގެ ނަމަކީ އަހުމަދު އަދި އަހަރެން ދިރިއުޅެނީ މާލޭގަ`, - `އަހަރެންގެ ނަމަކީ ސާރާ އަދި އަހަރެން ދިރިއުޅެނީ އުތީމުގަ`, - ], - ], - [ - "summarization", - [ - `ޓަވަރުގެ އުސްމިނަކީ 324 މީޓަރު، އެއީ ގާތްގަނޑަކަށް 81 ބުރީގެ އިމާރާތަކާއި އެއްވަރެވެ. އެއީ ޕެރިސްގައި ހުރި އެންމެ އުސް އިމާރާތެވެ. އޭގެ ހަތަރެސްކަނަށް ހުރި ބުޑުގެ ދިގުމިނަކީ ކޮންމެ ފަރާތަކުން 125 މީޓަރެވެ. (410 ފޫޓު) އައިފިލް ޓަވަރު ބިނާކުރި އިރު، ވޮޝިންގްޓަން މޮނިއުމެންޓްގެ އުސްމިން ފަހަނައަޅާ ގޮސް، ދުނިޔޭގައި މީހުން އުފެއްދި ތަންތަނުގެ ތެރެއިން އެންމެ އުސް ތަނުގެ ލަގަބު ލިބުނެވެ. އަދި 1930 ގައި ނިއު ޔޯކްގެ ކްރައިސްލަރ ބިލްޑިންގް ބިނާކުރުމާއި ހަމައަށް 41 އަހަރު ވަންދެން މިލަގަބު ހިފެހެއްޓިއެވެ. މިއީ 300 މީޓަރަށް ވުރެ އުސްކޮށް އިމާރާތްކުރެވުނު ފުރަތަމަ ތަނެވެ. 1957 ގައި ޓަވަރުގެ އެންމެ މަތީގައި ހަރުކުރެވުނު ބްރޯޑްކާސްޓިންގ އޭރިއަލްގެ ސަބަބުން މިހާރު މި ޓަވަރު ކްރައިސްލަރ ބިލްޑިންގއަށް ވުރެ 5.2 މީޓަރ (17 ފޫޓު) އުހެވެ. މި ޓްރާންސްމިޓަރު ނުލާ، އައިފިލް ޓަވަރަކީ، މިލާއު ވިއާޑަކްޓަށް ފަހު ފްރާންސްގައި ހުރި 2 ވަނައަށް އެންމެ އުސް ފްރީސްޓޭންޑިންގ އިމާރާތެވެ`, - ], - ], - [ - "text-generation", - [ - `އަހަރެންގެ ނަމަކީ ޔޫސުފް އަދި އަހަރެންގެ މައިގަނޑު`, - `އަހަރެންގެ ނަމަކީ މަރިއަމް، އަހަރެން އެންމެ ގަޔާވާ`, - `އަހަރެންގެ ނަމަކީ ފާތުމަތު އަދި އަހަރެން`, - `،އެއް ޒަމާނެއްގައި`, - ], - ], - ["fill-mask", [`. މާލެ އަކީ ދިވެހިރާއްޖޭގެ`, `ގަރުދިޔައަކީ ދިވެހިންގެ މެދުގައި ކެއުމެއް.`]], -]); - -export const MAPPING_DEFAULT_WIDGET = new Map([ - ["en", MAPPING_EN], - ["zh", MAPPING_ZH], - ["fr", MAPPING_FR], - ["es", MAPPING_ES], - ["ru", MAPPING_RU], - ["uk", MAPPING_UK], - ["it", MAPPING_IT], - ["fa", MAPPING_FA], - ["ar", MAPPING_AR], - ["bn", MAPPING_BN], - ["mn", MAPPING_MN], - ["si", MAPPING_SI], - ["de", MAPPING_DE], - ["dv", MAPPING_DV], -]); diff --git a/js/src/lib/interfaces/InferenceDisplayability.ts b/js/src/lib/interfaces/InferenceDisplayability.ts deleted file mode 100644 index 06f3fd403..000000000 --- a/js/src/lib/interfaces/InferenceDisplayability.ts +++ /dev/null @@ -1,14 +0,0 @@ -export enum InferenceDisplayability { - /** - * Yes - */ - Yes = "Yes", - /** - * And then, all the possible reasons why it's no: - */ - ExplicitOptOut = "ExplicitOptOut", - CustomCode = "CustomCode", - LibraryNotDetected = "LibraryNotDetected", - PipelineNotDetected = "PipelineNotDetected", - PipelineLibraryPairNotSupported = "PipelineLibraryPairNotSupported", -} diff --git a/js/src/lib/interfaces/Libraries.ts b/js/src/lib/interfaces/Libraries.ts deleted file mode 100644 index c93eb590e..000000000 --- a/js/src/lib/interfaces/Libraries.ts +++ /dev/null @@ -1,813 +0,0 @@ -/* eslint-disable @typescript-eslint/naming-convention */ -import type { ModelData } from "./Types"; - -/** - * Add your new library here. - * - * This is for modeling (= architectures) libraries, not for file formats (like ONNX, etc). - * File formats live in an enum inside the internal codebase. - */ -export enum ModelLibrary { - "adapter-transformers" = "Adapter Transformers", - "allennlp" = "allenNLP", - "asteroid" = "Asteroid", - "bertopic" = "BERTopic", - "diffusers" = "Diffusers", - "doctr" = "docTR", - "espnet" = "ESPnet", - "fairseq" = "Fairseq", - "flair" = "Flair", - "keras" = "Keras", - "k2" = "K2", - "nemo" = "NeMo", - "open_clip" = "OpenCLIP", - "paddlenlp" = "PaddleNLP", - "peft" = "PEFT", - "pyannote-audio" = "pyannote.audio", - "sample-factory" = "Sample Factory", - "sentence-transformers" = "Sentence Transformers", - "sklearn" = "Scikit-learn", - "spacy" = "spaCy", - "span-marker" = "SpanMarker", - "speechbrain" = "speechbrain", - "tensorflowtts" = "TensorFlowTTS", - "timm" = "Timm", - "fastai" = "fastai", - "transformers" = "Transformers", - "transformers.js" = "Transformers.js", - "stanza" = "Stanza", - "fasttext" = "fastText", - "stable-baselines3" = "Stable-Baselines3", - "ml-agents" = "ML-Agents", - "pythae" = "Pythae", - "mindspore" = "MindSpore", -} - -export type ModelLibraryKey = keyof typeof ModelLibrary; -export const ALL_MODEL_LIBRARY_KEYS = Object.keys(ModelLibrary) as ModelLibraryKey[]; - -const EXCLUDE_THOSE_LIBRARIES_FROM_DISPLAY: ModelLibraryKey[] = ["doctr", "k2", "mindspore", "tensorflowtts"]; - -export const ALL_DISPLAY_MODEL_LIBRARY_KEYS = ALL_MODEL_LIBRARY_KEYS.filter( - k => !EXCLUDE_THOSE_LIBRARIES_FROM_DISPLAY.includes(k) -); - -/** - * Elements configurable by a model library. - */ -export interface LibraryUiElement { - /** - * Name displayed on the main - * call-to-action button on the model page. - */ - btnLabel: string; - /** - * Repo name - */ - repoName: string; - /** - * URL to library's repo - */ - repoUrl: string; - /** - * URL to library's docs - */ - docsUrl?: string; - /** - * Code snippet displayed on model page - */ - snippets: (model: ModelData) => string[]; -} - -function nameWithoutNamespace(modelId: string): string { - const splitted = modelId.split("/"); - return splitted.length === 1 ? splitted[0] : splitted[1]; -} - -//#region snippets - -const adapter_transformers = (model: ModelData) => [ - `from transformers import ${model.config?.adapter_transformers?.model_class} - -model = ${model.config?.adapter_transformers?.model_class}.from_pretrained("${model.config?.adapter_transformers?.model_name}") -model.load_adapter("${model.id}", source="hf")`, -]; - -const allennlpUnknown = (model: ModelData) => [ - `import allennlp_models -from allennlp.predictors.predictor import Predictor - -predictor = Predictor.from_path("hf://${model.id}")`, -]; - -const allennlpQuestionAnswering = (model: ModelData) => [ - `import allennlp_models -from allennlp.predictors.predictor import Predictor - -predictor = Predictor.from_path("hf://${model.id}") -predictor_input = {"passage": "My name is Wolfgang and I live in Berlin", "question": "Where do I live?"} -predictions = predictor.predict_json(predictor_input)`, -]; - -const allennlp = (model: ModelData) => { - if (model.tags?.includes("question-answering")) { - return allennlpQuestionAnswering(model); - } - return allennlpUnknown(model); -}; - -const asteroid = (model: ModelData) => [ - `from asteroid.models import BaseModel - -model = BaseModel.from_pretrained("${model.id}")`, -]; - -function get_base_diffusers_model(model: ModelData): string { - return model.cardData?.base_model ?? "fill-in-base-model"; -} - -const bertopic = (model: ModelData) => [ - `from bertopic import BERTopic - -model = BERTopic.load("${model.id}")`, -]; - -const diffusers_default = (model: ModelData) => [ - `from diffusers import DiffusionPipeline - -pipeline = DiffusionPipeline.from_pretrained("${model.id}")`, -]; - -const diffusers_controlnet = (model: ModelData) => [ - `from diffusers import ControlNetModel, StableDiffusionControlNetPipeline - -controlnet = ControlNetModel.from_pretrained("${model.id}") -pipeline = StableDiffusionControlNetPipeline.from_pretrained( - "${get_base_diffusers_model(model)}", controlnet=controlnet -)`, -]; - -const diffusers_lora = (model: ModelData) => [ - `from diffusers import DiffusionPipeline - -pipeline = DiffusionPipeline.from_pretrained("${get_base_diffusers_model(model)}") -pipeline.load_lora_weights("${model.id}")`, -]; - -const diffusers_textual_inversion = (model: ModelData) => [ - `from diffusers import DiffusionPipeline - -pipeline = DiffusionPipeline.from_pretrained("${get_base_diffusers_model(model)}") -pipeline.load_textual_inversion("${model.id}")`, -]; - -const diffusers = (model: ModelData) => { - if (model.tags?.includes("controlnet")) { - return diffusers_controlnet(model); - } else if (model.tags?.includes("lora")) { - return diffusers_lora(model); - } else if (model.tags?.includes("textual_inversion")) { - return diffusers_textual_inversion(model); - } else { - return diffusers_default(model); - } -}; - -const espnetTTS = (model: ModelData) => [ - `from espnet2.bin.tts_inference import Text2Speech - -model = Text2Speech.from_pretrained("${model.id}") - -speech, *_ = model("text to generate speech from")`, -]; - -const espnetASR = (model: ModelData) => [ - `from espnet2.bin.asr_inference import Speech2Text - -model = Speech2Text.from_pretrained( - "${model.id}" -) - -speech, rate = soundfile.read("speech.wav") -text, *_ = model(speech)[0]`, -]; - -const espnetUnknown = () => [`unknown model type (must be text-to-speech or automatic-speech-recognition)`]; - -const espnet = (model: ModelData) => { - if (model.tags?.includes("text-to-speech")) { - return espnetTTS(model); - } else if (model.tags?.includes("automatic-speech-recognition")) { - return espnetASR(model); - } - return espnetUnknown(); -}; - -const fairseq = (model: ModelData) => [ - `from fairseq.checkpoint_utils import load_model_ensemble_and_task_from_hf_hub - -models, cfg, task = load_model_ensemble_and_task_from_hf_hub( - "${model.id}" -)`, -]; - -const flair = (model: ModelData) => [ - `from flair.models import SequenceTagger - -tagger = SequenceTagger.load("${model.id}")`, -]; - -const keras = (model: ModelData) => [ - `from huggingface_hub import from_pretrained_keras - -model = from_pretrained_keras("${model.id}") -`, -]; - -const open_clip = (model: ModelData) => [ - `import open_clip - -model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:${model.id}') -tokenizer = open_clip.get_tokenizer('hf-hub:${model.id}')`, -]; - -const paddlenlp = (model: ModelData) => { - if (model.config?.architectures?.[0]) { - const architecture = model.config.architectures[0]; - return [ - [ - `from paddlenlp.transformers import AutoTokenizer, ${architecture}`, - "", - `tokenizer = AutoTokenizer.from_pretrained("${model.id}"${ - model.private ? ", use_auth_token=True" : "" - }, from_hf_hub=True)`, - `model = ${architecture}.from_pretrained("${model.id}"${ - model.private ? ", use_auth_token=True" : "" - }, from_hf_hub=True)`, - ].join("\n"), - ]; - } else { - return [ - [ - `# ⚠️ Type of model unknown`, - `from paddlenlp.transformers import AutoTokenizer, AutoModel`, - "", - `tokenizer = AutoTokenizer.from_pretrained("${model.id}"${ - model.private ? ", use_auth_token=True" : "" - }, from_hf_hub=True)`, - `model = AutoModel.from_pretrained("${model.id}"${ - model.private ? ", use_auth_token=True" : "" - }, from_hf_hub=True)`, - ].join("\n"), - ]; - } -}; - -const pyannote_audio_pipeline = (model: ModelData) => [ - `from pyannote.audio import Pipeline - -pipeline = Pipeline.from_pretrained("${model.id}") - -# inference on the whole file -pipeline("file.wav") - -# inference on an excerpt -from pyannote.core import Segment -excerpt = Segment(start=2.0, end=5.0) - -from pyannote.audio import Audio -waveform, sample_rate = Audio().crop("file.wav", excerpt) -pipeline({"waveform": waveform, "sample_rate": sample_rate})`, -]; - -const pyannote_audio_model = (model: ModelData) => [ - `from pyannote.audio import Model, Inference - -model = Model.from_pretrained("${model.id}") -inference = Inference(model) - -# inference on the whole file -inference("file.wav") - -# inference on an excerpt -from pyannote.core import Segment -excerpt = Segment(start=2.0, end=5.0) -inference.crop("file.wav", excerpt)`, -]; - -const pyannote_audio = (model: ModelData) => { - if (model.tags?.includes("pyannote-audio-pipeline")) { - return pyannote_audio_pipeline(model); - } - return pyannote_audio_model(model); -}; - -const tensorflowttsTextToMel = (model: ModelData) => [ - `from tensorflow_tts.inference import AutoProcessor, TFAutoModel - -processor = AutoProcessor.from_pretrained("${model.id}") -model = TFAutoModel.from_pretrained("${model.id}") -`, -]; - -const tensorflowttsMelToWav = (model: ModelData) => [ - `from tensorflow_tts.inference import TFAutoModel - -model = TFAutoModel.from_pretrained("${model.id}") -audios = model.inference(mels) -`, -]; - -const tensorflowttsUnknown = (model: ModelData) => [ - `from tensorflow_tts.inference import TFAutoModel - -model = TFAutoModel.from_pretrained("${model.id}") -`, -]; - -const tensorflowtts = (model: ModelData) => { - if (model.tags?.includes("text-to-mel")) { - return tensorflowttsTextToMel(model); - } else if (model.tags?.includes("mel-to-wav")) { - return tensorflowttsMelToWav(model); - } - return tensorflowttsUnknown(model); -}; - -const timm = (model: ModelData) => [ - `import timm - -model = timm.create_model("hf_hub:${model.id}", pretrained=True)`, -]; - -const skopsPickle = (model: ModelData, modelFile: string) => { - return [ - `import joblib -from skops.hub_utils import download -download("${model.id}", "path_to_folder") -model = joblib.load( - "${modelFile}" -) -# only load pickle files from sources you trust -# read more about it here https://skops.readthedocs.io/en/stable/persistence.html`, - ]; -}; - -const skopsFormat = (model: ModelData, modelFile: string) => { - return [ - `from skops.hub_utils import download -from skops.io import load -download("${model.id}", "path_to_folder") -# make sure model file is in skops format -# if model is a pickle file, make sure it's from a source you trust -model = load("path_to_folder/${modelFile}")`, - ]; -}; - -const skopsJobLib = (model: ModelData) => { - return [ - `from huggingface_hub import hf_hub_download -import joblib -model = joblib.load( - hf_hub_download("${model.id}", "sklearn_model.joblib") -) -# only load pickle files from sources you trust -# read more about it here https://skops.readthedocs.io/en/stable/persistence.html`, - ]; -}; - -const sklearn = (model: ModelData) => { - if (model.tags?.includes("skops")) { - const skopsmodelFile = model.config?.sklearn?.filename; - const skopssaveFormat = model.config?.sklearn?.model_format; - if (skopssaveFormat === "pickle") { - return skopsPickle(model, skopsmodelFile); - } else { - return skopsFormat(model, skopsmodelFile); - } - } else { - return skopsJobLib(model); - } -}; - -const fastai = (model: ModelData) => [ - `from huggingface_hub import from_pretrained_fastai - -learn = from_pretrained_fastai("${model.id}")`, -]; - -const sampleFactory = (model: ModelData) => [ - `python -m sample_factory.huggingface.load_from_hub -r ${model.id} -d ./train_dir`, -]; - -const sentenceTransformers = (model: ModelData) => [ - `from sentence_transformers import SentenceTransformer - -model = SentenceTransformer("${model.id}")`, -]; - -const spacy = (model: ModelData) => [ - `!pip install https://huggingface.co/${model.id}/resolve/main/${nameWithoutNamespace(model.id)}-any-py3-none-any.whl - -# Using spacy.load(). -import spacy -nlp = spacy.load("${nameWithoutNamespace(model.id)}") - -# Importing as module. -import ${nameWithoutNamespace(model.id)} -nlp = ${nameWithoutNamespace(model.id)}.load()`, -]; - -const span_marker = (model: ModelData) => [ - `from span_marker import SpanMarkerModel - -model = SpanMarkerModel.from_pretrained("${model.id}")`, -]; - -const stanza = (model: ModelData) => [ - `import stanza - -stanza.download("${nameWithoutNamespace(model.id).replace("stanza-", "")}") -nlp = stanza.Pipeline("${nameWithoutNamespace(model.id).replace("stanza-", "")}")`, -]; - -const speechBrainMethod = (speechbrainInterface: string) => { - switch (speechbrainInterface) { - case "EncoderClassifier": - return "classify_file"; - case "EncoderDecoderASR": - case "EncoderASR": - return "transcribe_file"; - case "SpectralMaskEnhancement": - return "enhance_file"; - case "SepformerSeparation": - return "separate_file"; - default: - return undefined; - } -}; - -const speechbrain = (model: ModelData) => { - const speechbrainInterface = model.config?.speechbrain?.interface; - if (speechbrainInterface === undefined) { - return [`# interface not specified in config.json`]; - } - - const speechbrainMethod = speechBrainMethod(speechbrainInterface); - if (speechbrainMethod === undefined) { - return [`# interface in config.json invalid`]; - } - - return [ - `from speechbrain.pretrained import ${speechbrainInterface} -model = ${speechbrainInterface}.from_hparams( - "${model.id}" -) -model.${speechbrainMethod}("file.wav")`, - ]; -}; - -const transformers = (model: ModelData) => { - const info = model.transformersInfo; - if (!info) { - return [`# ⚠️ Type of model unknown`]; - } - const remote_code_snippet = info.custom_class ? ", trust_remote_code=True" : ""; - - let autoSnippet: string; - if (info.processor) { - const varName = - info.processor === "AutoTokenizer" - ? "tokenizer" - : info.processor === "AutoFeatureExtractor" - ? "extractor" - : "processor"; - autoSnippet = [ - "# Load model directly", - `from transformers import ${info.processor}, ${info.auto_model}`, - "", - `${varName} = ${info.processor}.from_pretrained("${model.id}"` + remote_code_snippet + ")", - `model = ${info.auto_model}.from_pretrained("${model.id}"` + remote_code_snippet + ")", - ].join("\n"); - } else { - autoSnippet = [ - "# Load model directly", - `from transformers import ${info.auto_model}`, - `model = ${info.auto_model}.from_pretrained("${model.id}"` + remote_code_snippet + ")", - ].join("\n"); - } - - if (model.pipeline_tag) { - const pipelineSnippet = [ - "# Use a pipeline as a high-level helper", - "from transformers import pipeline", - "", - `pipe = pipeline("${model.pipeline_tag}", model="${model.id}"` + remote_code_snippet + ")", - ].join("\n"); - return [pipelineSnippet, autoSnippet]; - } - return [autoSnippet]; -}; - -const transformersJS = (model: ModelData) => { - if (!model.pipeline_tag) { - return [`// ⚠️ Unknown pipeline tag`]; - } - - const libName = "@xenova/transformers"; - - return [ - `// npm i ${libName} -import { pipeline } from '${libName}'; - -// Allocate pipeline -const pipe = await pipeline('${model.pipeline_tag}', '${model.id}');`, - ]; -}; - -const peftTask = (peftTaskType?: string) => { - switch (peftTaskType) { - case "CAUSAL_LM": - return "CausalLM"; - case "SEQ_2_SEQ_LM": - return "Seq2SeqLM"; - case "TOKEN_CLS": - return "TokenClassification"; - case "SEQ_CLS": - return "SequenceClassification"; - default: - return undefined; - } -}; - -const peft = (model: ModelData) => { - const { base_model_name: peftBaseModel, task_type: peftTaskType } = model.config?.peft ?? {}; - const pefttask = peftTask(peftTaskType); - if (!pefttask) { - return [`Task type is invalid.`]; - } - if (!peftBaseModel) { - return [`Base model is not found.`]; - } - - return [ - `from peft import PeftModel, PeftConfig -from transformers import AutoModelFor${pefttask} - -config = PeftConfig.from_pretrained("${model.id}") -model = AutoModelFor${pefttask}.from_pretrained("${peftBaseModel}") -model = PeftModel.from_pretrained(model, "${model.id}")`, - ]; -}; - -const fasttext = (model: ModelData) => [ - `from huggingface_hub import hf_hub_download -import fasttext - -model = fasttext.load_model(hf_hub_download("${model.id}", "model.bin"))`, -]; - -const stableBaselines3 = (model: ModelData) => [ - `from huggingface_sb3 import load_from_hub -checkpoint = load_from_hub( - repo_id="${model.id}", - filename="{MODEL FILENAME}.zip", -)`, -]; - -const nemoDomainResolver = (domain: string, model: ModelData): string[] | undefined => { - switch (domain) { - case "ASR": - return [ - `import nemo.collections.asr as nemo_asr -asr_model = nemo_asr.models.ASRModel.from_pretrained("${model.id}") - -transcriptions = asr_model.transcribe(["file.wav"])`, - ]; - default: - return undefined; - } -}; - -const mlAgents = (model: ModelData) => [`mlagents-load-from-hf --repo-id="${model.id}" --local-dir="./downloads"`]; - -const nemo = (model: ModelData) => { - let command: string[] | undefined = undefined; - // Resolve the tag to a nemo domain/sub-domain - if (model.tags?.includes("automatic-speech-recognition")) { - command = nemoDomainResolver("ASR", model); - } - - return command ?? [`# tag did not correspond to a valid NeMo domain.`]; -}; - -const pythae = (model: ModelData) => [ - `from pythae.models import AutoModel - -model = AutoModel.load_from_hf_hub("${model.id}")`, -]; - -//#endregion - -export const MODEL_LIBRARIES_UI_ELEMENTS: Partial> = { - "adapter-transformers": { - btnLabel: "Adapter Transformers", - repoName: "adapter-transformers", - repoUrl: "https://github.com/Adapter-Hub/adapter-transformers", - docsUrl: "https://huggingface.co/docs/hub/adapter-transformers", - snippets: adapter_transformers, - }, - "allennlp": { - btnLabel: "AllenNLP", - repoName: "AllenNLP", - repoUrl: "https://github.com/allenai/allennlp", - docsUrl: "https://huggingface.co/docs/hub/allennlp", - snippets: allennlp, - }, - "asteroid": { - btnLabel: "Asteroid", - repoName: "Asteroid", - repoUrl: "https://github.com/asteroid-team/asteroid", - docsUrl: "https://huggingface.co/docs/hub/asteroid", - snippets: asteroid, - }, - "bertopic": { - btnLabel: "BERTopic", - repoName: "BERTopic", - repoUrl: "https://github.com/MaartenGr/BERTopic", - snippets: bertopic, - }, - "diffusers": { - btnLabel: "Diffusers", - repoName: "🤗/diffusers", - repoUrl: "https://github.com/huggingface/diffusers", - docsUrl: "https://huggingface.co/docs/hub/diffusers", - snippets: diffusers, - }, - "espnet": { - btnLabel: "ESPnet", - repoName: "ESPnet", - repoUrl: "https://github.com/espnet/espnet", - docsUrl: "https://huggingface.co/docs/hub/espnet", - snippets: espnet, - }, - "fairseq": { - btnLabel: "Fairseq", - repoName: "fairseq", - repoUrl: "https://github.com/pytorch/fairseq", - snippets: fairseq, - }, - "flair": { - btnLabel: "Flair", - repoName: "Flair", - repoUrl: "https://github.com/flairNLP/flair", - docsUrl: "https://huggingface.co/docs/hub/flair", - snippets: flair, - }, - "keras": { - btnLabel: "Keras", - repoName: "Keras", - repoUrl: "https://github.com/keras-team/keras", - docsUrl: "https://huggingface.co/docs/hub/keras", - snippets: keras, - }, - "nemo": { - btnLabel: "NeMo", - repoName: "NeMo", - repoUrl: "https://github.com/NVIDIA/NeMo", - snippets: nemo, - }, - "open_clip": { - btnLabel: "OpenCLIP", - repoName: "OpenCLIP", - repoUrl: "https://github.com/mlfoundations/open_clip", - snippets: open_clip, - }, - "paddlenlp": { - btnLabel: "paddlenlp", - repoName: "PaddleNLP", - repoUrl: "https://github.com/PaddlePaddle/PaddleNLP", - docsUrl: "https://huggingface.co/docs/hub/paddlenlp", - snippets: paddlenlp, - }, - "peft": { - btnLabel: "PEFT", - repoName: "PEFT", - repoUrl: "https://github.com/huggingface/peft", - snippets: peft, - }, - "pyannote-audio": { - btnLabel: "pyannote.audio", - repoName: "pyannote-audio", - repoUrl: "https://github.com/pyannote/pyannote-audio", - snippets: pyannote_audio, - }, - "sentence-transformers": { - btnLabel: "sentence-transformers", - repoName: "sentence-transformers", - repoUrl: "https://github.com/UKPLab/sentence-transformers", - docsUrl: "https://huggingface.co/docs/hub/sentence-transformers", - snippets: sentenceTransformers, - }, - "sklearn": { - btnLabel: "Scikit-learn", - repoName: "Scikit-learn", - repoUrl: "https://github.com/scikit-learn/scikit-learn", - snippets: sklearn, - }, - "fastai": { - btnLabel: "fastai", - repoName: "fastai", - repoUrl: "https://github.com/fastai/fastai", - docsUrl: "https://huggingface.co/docs/hub/fastai", - snippets: fastai, - }, - "spacy": { - btnLabel: "spaCy", - repoName: "spaCy", - repoUrl: "https://github.com/explosion/spaCy", - docsUrl: "https://huggingface.co/docs/hub/spacy", - snippets: spacy, - }, - "span-marker": { - btnLabel: "SpanMarker", - repoName: "SpanMarkerNER", - repoUrl: "https://github.com/tomaarsen/SpanMarkerNER", - docsUrl: "https://huggingface.co/docs/hub/span_marker", - snippets: span_marker, - }, - "speechbrain": { - btnLabel: "speechbrain", - repoName: "speechbrain", - repoUrl: "https://github.com/speechbrain/speechbrain", - docsUrl: "https://huggingface.co/docs/hub/speechbrain", - snippets: speechbrain, - }, - "stanza": { - btnLabel: "Stanza", - repoName: "stanza", - repoUrl: "https://github.com/stanfordnlp/stanza", - docsUrl: "https://huggingface.co/docs/hub/stanza", - snippets: stanza, - }, - "tensorflowtts": { - btnLabel: "TensorFlowTTS", - repoName: "TensorFlowTTS", - repoUrl: "https://github.com/TensorSpeech/TensorFlowTTS", - snippets: tensorflowtts, - }, - "timm": { - btnLabel: "timm", - repoName: "pytorch-image-models", - repoUrl: "https://github.com/rwightman/pytorch-image-models", - docsUrl: "https://huggingface.co/docs/hub/timm", - snippets: timm, - }, - "transformers": { - btnLabel: "Transformers", - repoName: "🤗/transformers", - repoUrl: "https://github.com/huggingface/transformers", - docsUrl: "https://huggingface.co/docs/hub/transformers", - snippets: transformers, - }, - "transformers.js": { - btnLabel: "Transformers.js", - repoName: "transformers.js", - repoUrl: "https://github.com/xenova/transformers.js", - docsUrl: "https://huggingface.co/docs/hub/transformers-js", - snippets: transformersJS, - }, - "fasttext": { - btnLabel: "fastText", - repoName: "fastText", - repoUrl: "https://fasttext.cc/", - snippets: fasttext, - }, - "sample-factory": { - btnLabel: "sample-factory", - repoName: "sample-factory", - repoUrl: "https://github.com/alex-petrenko/sample-factory", - docsUrl: "https://huggingface.co/docs/hub/sample-factory", - snippets: sampleFactory, - }, - "stable-baselines3": { - btnLabel: "stable-baselines3", - repoName: "stable-baselines3", - repoUrl: "https://github.com/huggingface/huggingface_sb3", - docsUrl: "https://huggingface.co/docs/hub/stable-baselines3", - snippets: stableBaselines3, - }, - "ml-agents": { - btnLabel: "ml-agents", - repoName: "ml-agents", - repoUrl: "https://github.com/huggingface/ml-agents", - docsUrl: "https://huggingface.co/docs/hub/ml-agents", - snippets: mlAgents, - }, - "pythae": { - btnLabel: "pythae", - repoName: "pythae", - repoUrl: "https://github.com/clementchadebec/benchmark_VAE", - snippets: pythae, - }, -} as const; diff --git a/js/src/lib/interfaces/LibrariesToTasks.ts b/js/src/lib/interfaces/LibrariesToTasks.ts deleted file mode 100644 index 7180428b1..000000000 --- a/js/src/lib/interfaces/LibrariesToTasks.ts +++ /dev/null @@ -1,47 +0,0 @@ -import type { ModelLibraryKey } from "./Libraries"; -import type { PipelineType } from "./Types"; - -/** - * Mapping from library name (excluding Transformers) to its supported tasks. - * Inference API should be disabled for all other (library, task) pairs beyond this mapping. - * As an exception, we assume Transformers supports all inference tasks. - * This mapping is generated automatically by "python-api-export-tasks" action in huggingface/api-inference-community repo upon merge. - * Ref: https://github.com/huggingface/api-inference-community/pull/158 - */ -export const LIBRARY_TASK_MAPPING_EXCLUDING_TRANSFORMERS: Partial> = { - "adapter-transformers": ["question-answering", "text-classification", "token-classification"], - "allennlp": ["question-answering"], - "asteroid": [ - // "audio-source-separation", - "audio-to-audio", - ], - "bertopic": ["text-classification"], - "diffusers": ["image-to-image", "text-to-image"], - "doctr": ["object-detection"], - "espnet": ["text-to-speech", "automatic-speech-recognition"], - "fairseq": ["text-to-speech", "audio-to-audio"], - "fastai": ["image-classification"], - "fasttext": ["feature-extraction", "text-classification"], - "flair": ["token-classification"], - "k2": ["automatic-speech-recognition"], - "keras": ["image-classification"], - "nemo": ["automatic-speech-recognition"], - "open_clip": ["zero-shot-classification", "zero-shot-image-classification"], - "paddlenlp": ["conversational", "fill-mask", "summarization", "zero-shot-classification"], - "peft": ["text-generation"], - "pyannote-audio": ["automatic-speech-recognition"], - "sentence-transformers": ["feature-extraction", "sentence-similarity"], - "sklearn": ["tabular-classification", "tabular-regression", "text-classification"], - "spacy": ["token-classification", "text-classification", "sentence-similarity"], - "span-marker": ["token-classification"], - "speechbrain": [ - "audio-classification", - "audio-to-audio", - "automatic-speech-recognition", - "text-to-speech", - "text2text-generation", - ], - "stanza": ["token-classification"], - "timm": ["image-classification"], - "mindspore": ["image-classification"], -}; diff --git a/js/src/lib/interfaces/README.md b/js/src/lib/interfaces/README.md deleted file mode 100644 index 2efb422f9..000000000 --- a/js/src/lib/interfaces/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# Interfaces - -This folder contains the definition files (written in Typescript) for the huggingface.co hub's: -- **pipeline types** a.k.a. **task types** (used to determine which widget to display on the model page, and which inference API to run) -- **default widget inputs** (when they aren't provided in the model card) -- definitions and UI elements for **third party libraries**. - -Please add to any of those definitions by opening a PR. Thanks 🔥 - - -⚠️ The hub's definitive doc is at https://huggingface.co/docs/hub. - -## Feedback (feature requests, bugs, etc.) is super welcome 💙💚💛💜♥️🧡 diff --git a/js/src/lib/interfaces/Types.ts b/js/src/lib/interfaces/Types.ts deleted file mode 100644 index c97024c89..000000000 --- a/js/src/lib/interfaces/Types.ts +++ /dev/null @@ -1,751 +0,0 @@ -import type { WidgetExample } from "../components/InferenceWidget/shared/WidgetExample"; -import type { InferenceDisplayability } from "./InferenceDisplayability"; - -// Warning: order of modalities here determine how they are listed on the /tasks page -export const MODALITIES = ["cv", "nlp", "audio", "tabular", "multimodal", "rl", "other"] as const; - -export type Modality = typeof MODALITIES[number]; - -export const MODALITY_LABELS: Record = { - multimodal: "Multimodal", - nlp: "Natural Language Processing", - audio: "Audio", - cv: "Computer Vision", - rl: "Reinforcement Learning", - tabular: "Tabular", - other: "Other", -}; - -/** - * Public interface for a sub task. - * - * This can be used in a model card's `model-index` metadata. - * and is more granular classification that can grow significantly - * over time as new tasks are added. - */ -export interface SubTask { - /** - * type of the task (e.g. audio-source-separation) - */ - type: string; - /** - * displayed name of the task (e.g. Audio Source Separation) - */ - name: string; -} - -/** - * Public interface for a PipelineData. - * - * This information corresponds to a pipeline type (aka task) - * in the Hub. - */ -export interface PipelineData { - /** - * displayed name of the task (e.g. Text Classification) - */ - name: string; - subtasks?: SubTask[]; - modality: Modality; - /** - * color for the tag icon. - */ - color: "blue" | "green" | "indigo" | "orange" | "red" | "yellow"; - /** - * whether to hide in /models filters - */ - hideInModels?: boolean; - /** - * whether to hide in /datasets filters - */ - hideInDatasets?: boolean; -} - -function ensureRecordOfPipelines(record: Record): Record { - return record; -} - -/// Coarse-grained taxonomy of tasks -/// -/// This type is used in multiple places in the Hugging Face -/// ecosystem: -/// - To determine which widget to show. -/// - To determine which endpoint of Inference API to use. -/// - As filters at the left of models and datasets page. -/// -/// Note that this is sensitive to order. -/// For each domain, the order should be of decreasing specificity. -/// This will impact the default pipeline tag of a model when not -/// specified. -export const PIPELINE_DATA = ensureRecordOfPipelines({ - "text-classification": { - name: "Text Classification", - subtasks: [ - { - type: "acceptability-classification", - name: "Acceptability Classification", - }, - { - type: "entity-linking-classification", - name: "Entity Linking Classification", - }, - { - type: "fact-checking", - name: "Fact Checking", - }, - { - type: "intent-classification", - name: "Intent Classification", - }, - { - type: "language-identification", - name: "Language Identification", - }, - { - type: "multi-class-classification", - name: "Multi Class Classification", - }, - { - type: "multi-label-classification", - name: "Multi Label Classification", - }, - { - type: "multi-input-text-classification", - name: "Multi-input Text Classification", - }, - { - type: "natural-language-inference", - name: "Natural Language Inference", - }, - { - type: "semantic-similarity-classification", - name: "Semantic Similarity Classification", - }, - { - type: "sentiment-classification", - name: "Sentiment Classification", - }, - { - type: "topic-classification", - name: "Topic Classification", - }, - { - type: "semantic-similarity-scoring", - name: "Semantic Similarity Scoring", - }, - { - type: "sentiment-scoring", - name: "Sentiment Scoring", - }, - { - type: "sentiment-analysis", - name: "Sentiment Analysis", - }, - { - type: "hate-speech-detection", - name: "Hate Speech Detection", - }, - { - type: "text-scoring", - name: "Text Scoring", - }, - ], - modality: "nlp", - color: "orange", - }, - "token-classification": { - name: "Token Classification", - subtasks: [ - { - type: "named-entity-recognition", - name: "Named Entity Recognition", - }, - { - type: "part-of-speech", - name: "Part of Speech", - }, - { - type: "parsing", - name: "Parsing", - }, - { - type: "lemmatization", - name: "Lemmatization", - }, - { - type: "word-sense-disambiguation", - name: "Word Sense Disambiguation", - }, - { - type: "coreference-resolution", - name: "Coreference-resolution", - }, - ], - modality: "nlp", - color: "blue", - }, - "table-question-answering": { - name: "Table Question Answering", - modality: "nlp", - color: "green", - }, - "question-answering": { - name: "Question Answering", - subtasks: [ - { - type: "extractive-qa", - name: "Extractive QA", - }, - { - type: "open-domain-qa", - name: "Open Domain QA", - }, - { - type: "closed-domain-qa", - name: "Closed Domain QA", - }, - ], - modality: "nlp", - color: "blue", - }, - "zero-shot-classification": { - name: "Zero-Shot Classification", - modality: "nlp", - color: "yellow", - }, - "translation": { - name: "Translation", - modality: "nlp", - color: "green", - }, - "summarization": { - name: "Summarization", - subtasks: [ - { - type: "news-articles-summarization", - name: "News Articles Summarization", - }, - { - type: "news-articles-headline-generation", - name: "News Articles Headline Generation", - }, - ], - modality: "nlp", - color: "indigo", - }, - "conversational": { - name: "Conversational", - subtasks: [ - { - type: "dialogue-generation", - name: "Dialogue Generation", - }, - ], - modality: "nlp", - color: "green", - }, - "feature-extraction": { - name: "Feature Extraction", - modality: "multimodal", - color: "red", - }, - "text-generation": { - name: "Text Generation", - subtasks: [ - { - type: "dialogue-modeling", - name: "Dialogue Modeling", - }, - { - type: "language-modeling", - name: "Language Modeling", - }, - ], - modality: "nlp", - color: "indigo", - }, - "text2text-generation": { - name: "Text2Text Generation", - subtasks: [ - { - type: "text-simplification", - name: "Text simplification", - }, - { - type: "explanation-generation", - name: "Explanation Generation", - }, - { - type: "abstractive-qa", - name: "Abstractive QA", - }, - { - type: "open-domain-abstractive-qa", - name: "Open Domain Abstractive QA", - }, - { - type: "closed-domain-qa", - name: "Closed Domain QA", - }, - { - type: "open-book-qa", - name: "Open Book QA", - }, - { - type: "closed-book-qa", - name: "Closed Book QA", - }, - ], - modality: "nlp", - color: "indigo", - }, - "fill-mask": { - name: "Fill-Mask", - subtasks: [ - { - type: "slot-filling", - name: "Slot Filling", - }, - { - type: "masked-language-modeling", - name: "Masked Language Modeling", - }, - ], - modality: "nlp", - color: "red", - }, - "sentence-similarity": { - name: "Sentence Similarity", - modality: "nlp", - color: "yellow", - }, - "text-to-speech": { - name: "Text-to-Speech", - modality: "audio", - color: "yellow", - }, - "text-to-audio": { - name: "Text-to-Audio", - modality: "audio", - color: "yellow", - }, - "automatic-speech-recognition": { - name: "Automatic Speech Recognition", - modality: "audio", - color: "yellow", - }, - "audio-to-audio": { - name: "Audio-to-Audio", - modality: "audio", - color: "blue", - }, - "audio-classification": { - name: "Audio Classification", - subtasks: [ - { - type: "keyword-spotting", - name: "Keyword Spotting", - }, - { - type: "speaker-identification", - name: "Speaker Identification", - }, - { - type: "audio-intent-classification", - name: "Audio Intent Classification", - }, - { - type: "audio-emotion-recognition", - name: "Audio Emotion Recognition", - }, - { - type: "audio-language-identification", - name: "Audio Language Identification", - }, - ], - modality: "audio", - color: "green", - }, - "voice-activity-detection": { - name: "Voice Activity Detection", - modality: "audio", - color: "red", - }, - "depth-estimation": { - name: "Depth Estimation", - modality: "cv", - color: "yellow", - }, - "image-classification": { - name: "Image Classification", - subtasks: [ - { - type: "multi-label-image-classification", - name: "Multi Label Image Classification", - }, - { - type: "multi-class-image-classification", - name: "Multi Class Image Classification", - }, - ], - modality: "cv", - color: "blue", - }, - "object-detection": { - name: "Object Detection", - subtasks: [ - { - type: "face-detection", - name: "Face Detection", - }, - { - type: "vehicle-detection", - name: "Vehicle Detection", - }, - ], - modality: "cv", - color: "yellow", - }, - "image-segmentation": { - name: "Image Segmentation", - subtasks: [ - { - type: "instance-segmentation", - name: "Instance Segmentation", - }, - { - type: "semantic-segmentation", - name: "Semantic Segmentation", - }, - { - type: "panoptic-segmentation", - name: "Panoptic Segmentation", - }, - ], - modality: "cv", - color: "green", - }, - "text-to-image": { - name: "Text-to-Image", - modality: "multimodal", - color: "yellow", - }, - "image-to-text": { - name: "Image-to-Text", - subtasks: [ - { - type: "image-captioning", - name: "Image Captioning", - }, - ], - modality: "multimodal", - color: "red", - }, - "image-to-image": { - name: "Image-to-Image", - modality: "cv", - color: "indigo", - }, - "unconditional-image-generation": { - name: "Unconditional Image Generation", - modality: "cv", - color: "green", - }, - "video-classification": { - name: "Video Classification", - modality: "cv", - color: "blue", - }, - "reinforcement-learning": { - name: "Reinforcement Learning", - modality: "rl", - color: "red", - }, - "robotics": { - name: "Robotics", - modality: "rl", - subtasks: [ - { - type: "grasping", - name: "Grasping", - }, - { - type: "task-planning", - name: "Task Planning", - }, - ], - color: "blue", - }, - "tabular-classification": { - name: "Tabular Classification", - modality: "tabular", - subtasks: [ - { - type: "tabular-multi-class-classification", - name: "Tabular Multi Class Classification", - }, - { - type: "tabular-multi-label-classification", - name: "Tabular Multi Label Classification", - }, - ], - color: "blue", - }, - "tabular-regression": { - name: "Tabular Regression", - modality: "tabular", - subtasks: [ - { - type: "tabular-single-column-regression", - name: "Tabular Single Column Regression", - }, - ], - color: "blue", - }, - "tabular-to-text": { - name: "Tabular to Text", - modality: "tabular", - subtasks: [ - { - type: "rdf-to-text", - name: "RDF to text", - }, - ], - color: "blue", - hideInModels: true, - }, - "table-to-text": { - name: "Table to Text", - modality: "nlp", - color: "blue", - hideInModels: true, - }, - "multiple-choice": { - name: "Multiple Choice", - subtasks: [ - { - type: "multiple-choice-qa", - name: "Multiple Choice QA", - }, - { - type: "multiple-choice-coreference-resolution", - name: "Multiple Choice Coreference Resolution", - }, - ], - modality: "nlp", - color: "blue", - hideInModels: true, - }, - "text-retrieval": { - name: "Text Retrieval", - subtasks: [ - { - type: "document-retrieval", - name: "Document Retrieval", - }, - { - type: "utterance-retrieval", - name: "Utterance Retrieval", - }, - { - type: "entity-linking-retrieval", - name: "Entity Linking Retrieval", - }, - { - type: "fact-checking-retrieval", - name: "Fact Checking Retrieval", - }, - ], - modality: "nlp", - color: "indigo", - hideInModels: true, - }, - "time-series-forecasting": { - name: "Time Series Forecasting", - modality: "tabular", - subtasks: [ - { - type: "univariate-time-series-forecasting", - name: "Univariate Time Series Forecasting", - }, - { - type: "multivariate-time-series-forecasting", - name: "Multivariate Time Series Forecasting", - }, - ], - color: "blue", - hideInModels: true, - }, - "text-to-video": { - name: "Text-to-Video", - modality: "multimodal", - color: "green", - }, - "visual-question-answering": { - name: "Visual Question Answering", - subtasks: [ - { - type: "visual-question-answering", - name: "Visual Question Answering", - }, - ], - modality: "multimodal", - color: "red", - }, - "document-question-answering": { - name: "Document Question Answering", - subtasks: [ - { - type: "document-question-answering", - name: "Document Question Answering", - }, - ], - modality: "multimodal", - color: "blue", - hideInDatasets: true, - }, - "zero-shot-image-classification": { - name: "Zero-Shot Image Classification", - modality: "cv", - color: "yellow", - }, - "graph-ml": { - name: "Graph Machine Learning", - modality: "multimodal", - color: "green", - }, - "other": { - name: "Other", - modality: "other", - color: "blue", - hideInModels: true, - hideInDatasets: true, - }, -}); - -export type PipelineType = keyof typeof PIPELINE_DATA; -export const ALL_PIPELINE_TYPES = Object.keys(PIPELINE_DATA) as PipelineType[]; -export const ALL_PIPELINE_TYPES_SET = new Set(ALL_PIPELINE_TYPES); - -export const ALL_SUBTASKS = Object.values(PIPELINE_DATA).flatMap(data => data.subtasks ?? []); -export const ALL_SUBTASK_TYPES = ALL_SUBTASKS.map(s => s.type); -export const ALL_SUBTASK_TYPES_SET = new Set(ALL_SUBTASK_TYPES); - -export const TAG_NFAA_CONTENT = "not-for-all-audiences"; -export const TAG_TEXT_GENERATION_INFERENCE = "text-generation-inference"; -export const TAG_CUSTOM_CODE = "custom_code"; - -/** - * Tags that are suggested inside the metadata GUI - * (above model card or dataset card editor) - * - * Usually tags for domains or industries. - * - * Let's keep their number not too high to not spread out models/datasets too much. - */ -export const OTHER_TAGS_SUGGESTIONS = [ - "chemistry", - "biology", - "finance", - "legal", - "music", - "art", - "code", - "climate", - "medical", - TAG_NFAA_CONTENT, -]; - -/** - * Public interface for model metadata - */ -export interface ModelData { - /** - * id of model (e.g. 'user/repo_name') - */ - id: string; - /** - * Kept for backward compatibility - */ - modelId?: string; - /** - * Whether or not to enable inference widget for this model - */ - inference: InferenceDisplayability; - /** - * is this model private? - */ - private?: boolean; - /** - * this dictionary has useful information about the model configuration - */ - config?: Record; - /** - * all the model tags - */ - tags?: string[]; - /** - * transformers-specific info to display in the code sample. - */ - transformersInfo?: TransformersInfo; - /** - * Pipeline type - */ - pipeline_tag?: PipelineType | undefined; - /** - * for relevant models, get mask token - */ - mask_token?: string | undefined; - /** - * Example data that will be fed into the widget. - * - * can be set in the model card metadata (under `widget`), - * or by default in `DefaultWidget.ts` - */ - widgetData?: WidgetExample[] | undefined; - /** - * Parameters that will be used by the widget when calling Inference API - * https://huggingface.co/docs/api-inference/detailed_parameters - * - * can be set in the model card metadata (under `inference/parameters`) - * Example: - * inference: - * parameters: - * key: val - */ - cardData?: { - inference?: - | boolean - | { - parameters?: Record; - }; - base_model?: string; - }; - /** - * Library name - * Example: transformers, SpeechBrain, Stanza, etc. - */ - library_name?: string; -} - -/** - * transformers-specific info to display in the code sample. - */ -export interface TransformersInfo { - /** - * e.g. AutoModelForSequenceClassification - */ - auto_model: string; - /** - * if set in config.json's auto_map - */ - custom_class?: string; - /** - * e.g. text-classification - */ - pipeline_tag?: PipelineType; - /** - * e.g. "AutoTokenizer" | "AutoFeatureExtractor" | "AutoProcessor" - */ - processor?: string; -} diff --git a/js/src/lib/utils/ViewUtils.ts b/js/src/lib/utils/ViewUtils.ts deleted file mode 100644 index 0af35844a..000000000 --- a/js/src/lib/utils/ViewUtils.ts +++ /dev/null @@ -1,119 +0,0 @@ -import type { PipelineType } from "../interfaces/Types"; - -const ESCAPED = { - '"': """, - "'": "'", - "&": "&", - "<": "<", - ">": ">", -}; - -/** - * Returns a function that clamps input value to range [min <= x <= max]. - */ -export function clamp(x: number, min: number, max: number): number { - return Math.max(min, Math.min(x, max)); -} - -/** - * HTML escapes the passed string - */ -export function escape(html: unknown): string { - return String(html).replace(/["'&<>]/g, match => ESCAPED[match]); -} - -/** - * Returns a promise that will resolve after the specified time - * @param ms Number of ms to wait - */ -export function delay(ms: number): Promise { - return new Promise(resolve => { - setTimeout(() => resolve(), ms); - }); -} - -/** - * "Real" modulo (always >= 0), not remainder. - */ -export function mod(a: number, n: number): number { - return ((a % n) + n) % n; -} - -/** - * Sum of elements in array - */ -export function sum(arr: number[]): number { - return arr.reduce((a, b) => a + b, 0); -} - -/** - * Return a random item from an array - */ -export function randomItem(arr: T[]): T { - return arr[Math.floor(Math.random() * arr.length)]; -} - -/** - * Safely parse JSON - */ -export function parseJSON(x: unknown): T | undefined { - if (!x || typeof x !== "string") { - return undefined; - } - try { - return JSON.parse(x); - } catch (e) { - if (e instanceof SyntaxError) { - console.error(e.name); - } else { - console.error(e.message); - } - return undefined; - } -} - -/* - * Return true if an HTML element is scrolled all the way - */ -export function isFullyScrolled(elt: HTMLElement): boolean { - return elt.scrollHeight - Math.abs(elt.scrollTop) === elt.clientHeight; -} - -/* - * Smoothly scroll an element all the way - */ -export function scrollToMax(elt: HTMLElement, axis: "x" | "y" = "y"): void { - elt.scroll({ - behavior: "smooth", - left: axis === "x" ? elt.scrollWidth : undefined, - top: axis === "y" ? elt.scrollHeight : undefined, - }); -} - -/* - * Converts hex string to rgb array (i.e. [r,g,b]) - * original from https://stackoverflow.com/a/39077686/6558628 - */ -export function hexToRgb(hex: string): number[] { - return ( - hex - .replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, (_, r, g, b) => "#" + r + r + g + g + b + b) - .substring(1) - .match(/.{2}/g) - ?.map(x => parseInt(x, 16)) || [0, 0, 0] - ); -} - -// Get the Task id corresponding to the modelPipeline (should be === in 99% cases) -export function getPipelineTask(modelPipeline: PipelineType): string { - return modelPipeline === "text2text-generation" ? "text-generation" : modelPipeline; -} - -/* -* For Tailwind: -bg-blue-100 border-blue-100 dark:bg-blue-800 dark:border-blue-800 -bg-green-100 border-green-100 dark:bg-green-800 dark:border-green-800 -bg-yellow-100 border-yellow-100 dark:bg-yellow-800 dark:border-yellow-800 -bg-purple-100 border-purple-100 dark:bg-purple-800 dark:border-purple-800 -bg-red-100 border-red-100 dark:bg-red-800 dark:border-red-800 -*/ diff --git a/js/src/routes/[...model].svelte b/js/src/routes/[...model].svelte deleted file mode 100644 index 087a2c660..000000000 --- a/js/src/routes/[...model].svelte +++ /dev/null @@ -1,60 +0,0 @@ - - - - -← Back to index - - -
- {#if model} - - -
-			{JSON.stringify(model, null, 2)}
-		
- {:else} -
Error. Probably non existent model. {message}
- {/if} -
diff --git a/js/src/routes/__layout.svelte b/js/src/routes/__layout.svelte deleted file mode 100644 index fd328954f..000000000 --- a/js/src/routes/__layout.svelte +++ /dev/null @@ -1,7 +0,0 @@ - - -
- -
diff --git a/js/src/routes/index.svelte b/js/src/routes/index.svelte deleted file mode 100644 index c21accf2d..000000000 --- a/js/src/routes/index.svelte +++ /dev/null @@ -1,562 +0,0 @@ - - -
- - -
-

Showcase of all types of disabled inference

-
- {#each modelsDisabled as model} - - {/each} -
-
- -
-

Showcase of all types of disabled inference with example outputs

-
- {#each modelsDisabledWithExamples as model} - - {/each} -
-
- -
-

Showcase of all types of inference widgets running

-
- {#each models as model} - - {/each} -
-
-
diff --git a/js/src/scripts/export-tasks.ts b/js/src/scripts/export-tasks.ts deleted file mode 100644 index 3ad983c90..000000000 --- a/js/src/scripts/export-tasks.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { PIPELINE_DATA } from "../lib/interfaces/Types"; - -const DISABLE_HIDE_IN_DATASETS = process.argv.slice(2).includes("---no-hide-in-datasets") ?? true; - -interface ExportedPipelineData { - type: string; - subtasks?: string[]; -} - -(async () => { - const tasks = Object.fromEntries( - Object.entries(PIPELINE_DATA) - .map(([k, v]) => { - if (!DISABLE_HIDE_IN_DATASETS && v.hideInDatasets) { - return; - } - // eslint-disable-next-line @typescript-eslint/consistent-type-assertions - return [ - k, - { - type: v.modality, - subtasks: v.subtasks?.map(sub => sub.type), - } as ExportedPipelineData, - ]; - }) - .filter((x): x is [string, ExportedPipelineData] => !!x) - .sort((a, b) => a[0].toString().localeCompare(b[0].toString())) - /// ^ remove this line when you don't need tasks.json sorted - ); - - console.log(JSON.stringify(tasks, null, " ")); -})(); diff --git a/js/src/tailwind.css b/js/src/tailwind.css deleted file mode 100644 index 8f335baed..000000000 --- a/js/src/tailwind.css +++ /dev/null @@ -1,226 +0,0 @@ -@tailwind base; - -@layer base { - html.dark { - --scrollbarBG: #020011; - --thumbBG: #374151; - } - .dark *::-webkit-scrollbar { - width: 11px; - height: 11px; - } - .dark * { - scrollbar-width: thin; - scrollbar-color: var(--thumbBG) var(--scrollbarBG); - } - - .dark input, - .dark textarea, - .dark [contenteditable] { - caret-color: white !important; - } - - .dark *::-webkit-scrollbar-track { - background: var(--scrollbarBG); - } - .dark *::-webkit-scrollbar-thumb { - background-color: var(--thumbBG); - border-radius: 6px; - border: 3px solid var(--scrollbarBG); - } - /* .dark input:-internal-autofill-selected { - @apply bg-gray-925; - } */ - .dark .bg-white { - @apply bg-gray-950; - } - .dark .text-black { - @apply text-gray-200; - } - .dark .text-gray-900 { - @apply text-gray-200; - } - .dark .text-gray-800 { - @apply text-gray-300; - } - .dark .text-gray-700 { - @apply text-gray-300; - } - .dark .text-gray-600 { - @apply text-gray-350; - } - .dark .text-gray-500 { - @apply text-gray-400; - } - .dark .border-gray-200, - .dark .border-gray-100, - .dark .border, - .dark .border-b { - @apply border-gray-850; - } -} - -@tailwind components; - -@layer components { - .btn, - .btn-widget { - @apply inline-flex cursor-pointer select-none items-center justify-center whitespace-nowrap rounded-lg border bg-gradient-to-b px-3 py-1 focus:outline-none focus:ring; - } - .btn { - @apply border-gray-200 from-white to-gray-100 text-gray-800 hover:shadow-inner dark:border-gray-900 dark:from-gray-800 dark:to-gray-950 dark:text-gray-200 dark:hover:from-gray-700; - } - .btn-widget { - @apply h-8 from-gray-50 to-gray-200 hover:from-gray-100 dark:border-gray-900 dark:from-gray-800 dark:to-gray-950 dark:hover:from-gray-700; - } - .btn:disabled, - .btn-widget:disabled { - @apply cursor-not-allowed opacity-50; - } - .btn.btn-lg { - @apply px-4 py-1.5 font-semibold; - } - .overview-card-wrapper { - @apply from-gray-50-to-white rounded-lg border border-gray-100 bg-gradient-to-r via-white text-base shadow-sm hover:via-gray-50 hover:to-gray-100 dark:border-gray-900 dark:via-gray-950 dark:hover:from-gray-950 dark:hover:via-gray-925 dark:hover:to-gray-925; - } - .overview-card-wrapper.white { - @apply from-white to-white dark:from-gray-925 dark:to-gray-950; - } - .tab { - @apply -mb-px flex cursor-pointer select-none items-center border-r border-gray-200 px-4 text-center; - } - .tab:not(.active) { - @apply hover:text-gray-700; - } - .tab.active { - @apply flex items-center border-r border-gray-200 bg-white px-4 text-center font-semibold; - } - .tab-alternate { - @apply flex h-full items-center whitespace-nowrap border-b-2 border-transparent px-2.5 font-medium text-gray-600 dark:text-gray-400 sm:px-3.5; - } - .tab-alternate:not(.active) { - @apply hover:border-gray-200 dark:hover:border-gray-800; - } - .tab-alternate.active { - @apply border-gray-700 font-semibold text-gray-800 dark:border-gray-400; - } - .tag { - @apply mr-1 mb-1 inline-flex h-7 max-w-full flex-none items-center overflow-hidden truncate rounded-lg border border-transparent bg-gradient-to-b text-sm dark:border-gray-900 md:mr-1.5 md:mb-1.5; - } - .tag > span { - @apply px-2; - } - .tag.inactive { - @apply filter-grayscale opacity-50; - } - .tag-blue { - @apply from-blue-50 to-blue-50 text-blue-800 hover:to-blue-100 dark:from-gray-925 dark:to-gray-925 dark:text-gray-300 dark:hover:to-gray-950; - } - .tag-ghost { - @apply from-transparent to-transparent text-gray-400 hover:from-gray-100 hover:to-gray-100 hover:text-gray-600; - } - .tag-green { - @apply from-green-50 to-green-50 text-green-800 hover:to-green-100 dark:from-gray-925 dark:to-gray-925 dark:text-gray-300 dark:hover:to-gray-950; - } - .tag-indigo { - @apply from-indigo-50 to-indigo-50 text-indigo-800 hover:to-indigo-100 dark:from-gray-925 dark:to-gray-925 dark:text-gray-300 dark:hover:to-gray-950; - } - .tag-orange { - @apply from-orange-50 to-orange-50 text-orange-800 hover:to-orange-100 dark:from-gray-925 dark:to-gray-925 dark:text-gray-300 dark:hover:to-gray-950; - } - .tag-purple { - @apply from-purple-50 to-purple-50 text-purple-800 hover:to-purple-100 dark:from-gray-925 dark:to-gray-925 dark:text-gray-300 dark:hover:to-gray-950; - } - .tag-red { - @apply from-red-50 to-red-50 text-red-800 hover:to-red-100 dark:from-gray-925 dark:to-gray-925 dark:text-gray-300 dark:hover:to-gray-950; - } - .tag-yellow { - @apply from-yellow-50 text-yellow-800 hover:to-yellow-100 dark:from-gray-925 dark:to-gray-925 dark:text-gray-300 dark:hover:to-gray-950; - } - .tag-white { - @apply border-gray-100 from-white to-white text-gray-700 hover:to-gray-100 dark:border-gray-900 dark:from-gray-925 dark:to-gray-925 dark:text-gray-300 dark:hover:to-gray-950; - } - .tag-ico { - @apply flex h-7 w-8 flex-none items-center bg-gradient-to-t to-white pl-2 dark:to-gray-950; - } - .tag-ico-blue { - @apply from-blue-50 text-blue-500 dark:from-gray-925; - } - .tag-ico-green { - @apply from-green-50 text-green-500 dark:from-gray-925; - } - .tag-ico-indigo { - @apply from-indigo-50 text-indigo-500 dark:from-gray-925; - } - .tag-ico-orange { - @apply from-orange-50 text-orange-500 dark:from-gray-925; - } - .tag-ico-purple { - @apply from-purple-50 text-purple-500 dark:from-gray-925; - } - .tag-ico-red { - @apply from-red-50 text-red-500 dark:from-gray-925; - } - .tag-ico-yellow { - @apply from-yellow-50 text-yellow-500 dark:from-gray-925; - } - .form-input:not([type="checkbox"]) { - @apply border-2 border-gray-200 shadow-sm - focus:border-blue-300 focus:ring focus:ring-blue-200 - focus:ring-opacity-50 dark:border-gray-700 dark:bg-gray-950; - } - .form-input:not([type="radio"]):not([type="checkbox"]) { - @apply mt-1 block w-full rounded-md; - } - .form-input[type="radio"] { - @apply mt-2 mr-1.5 h-3.5 w-3.5; - } - .form-input[type="checkbox"] { - @apply rounded border-transparent bg-gray-200 text-blue-500 focus:border-transparent focus:ring-1 focus:ring-gray-200 focus:ring-offset-2; - } - .form-input[type="checkbox"]:checked { - @apply bg-blue-500; - } - .form-input:disabled { - @apply cursor-not-allowed opacity-50; - } - .form-input-alt { - @apply h-10 rounded-lg border border-gray-200 px-3 placeholder-gray-400 shadow-inner outline-none focus:shadow-inner focus:ring-1 focus:ring-inset focus:ring-indigo-200 dark:bg-gray-925 dark:focus:ring-indigo-50; - } -} - -@tailwind utilities; - -@layer utilities { - .filter-none { - filter: none; - } - .filter-grayscale { - filter: grayscale(100%); - } - .from-gray-50-to-white { - @apply from-gray-50 to-white dark:from-gray-925 dark:to-gray-950; - } - - .from-gray-100-to-white { - @apply from-gray-100 to-white dark:from-gray-925 dark:to-gray-925; - } - .min-h-main { - min-height: calc(100vh - theme(spacing.16) - 1px); - } -} -.alert { - @apply rounded-md border border-blue-100 bg-blue-50 py-2 px-3 text-blue-900 dark:border-blue-700 dark:bg-blue-800 dark:text-blue-200; -} -.alert a { - @apply underline; -} -.alert-error { - @apply border-red-100 bg-red-50 text-red-900 dark:border-red-700 dark:bg-red-800 dark:text-red-200; -} -.alert-success { - @apply border-green-100 bg-green-50 text-green-900; -} -.alert-warning { - @apply border-yellow-100 bg-yellow-50 text-yellow-900; -} diff --git a/js/static/audioProcessor.js b/js/static/audioProcessor.js deleted file mode 100644 index 5e51d28a5..000000000 --- a/js/static/audioProcessor.js +++ /dev/null @@ -1,39 +0,0 @@ -// for js/src/lib/components/InferenceWidget/shared/WidgetRealtimeRecorder/Recorder.ts -class AudioDataExtractor extends AudioWorkletProcessor { - _updateIntervalInMS; - _sampleInFrames; - _index; - _buffer; - - constructor() { - super(); - this._updateIntervalInMS = 50; - this._sampleInFrames = parseInt((this._updateIntervalInMS / 1000.0) * sampleRate); - this._index = 0; - this._buffer = new Float32Array(this._sampleInFrames); - } - - process(inputs, outputs, parameters) { - // Note that the input will be down-mixed to mono; however, if no inputs are - // connected then zero channels will be passed in. - if (inputs.length > 0 && inputs[0].length > 0) { - const rest = this._buffer.length - this._index; - if (rest < inputs[0][0].length) { - this._buffer.set(inputs[0][0].slice(0, rest), this._index); - this.port.postMessage({ - buffer: this._buffer.slice(0), - sampling_rate: sampleRate, - }); - this._buffer.fill(0); - this._index = inputs[0][0].length - rest; - } else { - this._buffer.set(inputs[0][0], this._index); - this._index += inputs[0][0].length; - } - } - - return true; - } -} - -registerProcessor("AudioDataExtractor", AudioDataExtractor); diff --git a/js/static/cats.jpg b/js/static/cats.jpg deleted file mode 100644 index e131e8ecd..000000000 Binary files a/js/static/cats.jpg and /dev/null differ diff --git a/js/static/favicon.png b/js/static/favicon.png deleted file mode 100644 index 825b9e65a..000000000 Binary files a/js/static/favicon.png and /dev/null differ diff --git a/js/static/output.json b/js/static/output.json deleted file mode 100644 index 291fdd71f..000000000 --- a/js/static/output.json +++ /dev/null @@ -1 +0,0 @@ -[{"score": 0.9094286561012268, "label": "blanket", "mask": "iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAAAAAAQuoM4AAAV0UlEQVR4nO2d6XYcqw5GC6+8/yuTHz3VwCBAoIFvr3tPnLjdBrFLDEXRIR4PwvvPxLcShPpLw+VvtLcFt7CxUYx/ILzm/UKedvyXLQP1F8SmssA+OnGSgbVfS3sVU+HC4xd+35jXlQD1umCXkKsdmBr07/G+LG/7BP71ERkDFw997RCOW5kmJUDAAEdy0NasjwFf4wgQrGXUQXXN+uiCgWrGBOLsz5l4C4gEaIWRhtHYqK9lGI0lA2mI6x/xOEwswN67YJWFBCdkFgen8XccsM4j4bDh6t9x2CgoaOTRqDrTzKuY8fZ3raUFR2e6UNuerzHgs05IimpR61IXt90PJ+981dMRvblBZ4PmF6KRA52hs0ET27GAbuKhVaYebpOQS8V05mxwga6izuZEBjRO4o5HBp07MgubEVSWFzjjdicE0pmk4ekdbTwfKSI/lgI0ERIraXc0tuljRzTwQsJEhS39fCgJmCfEQiJU1tzKBNQ5U9NOx+COHufTQ0Iz9jesFbDgF3ZB0HiOmYZvzZVG/YQ3H2uxf6taPLz/m/p1KqdnSuFvrmL0pz8cv2ghulgN+DdAf/De3ZHwc3Z8XTChe32TO4oh8T1QYMmhCdVfokPA33JiwsPihMzAczMqWXRy0YIxIAfh9NVH6e9oOV8H9L2dzAtciOE3311xOhJPBvztqTnNqPpLnz4yDtnxy0QxzostpeXE7ysGmTQJCYlFo4afPo7EFrHvQg1knMf1rmwtzCy5iy0BclO6ubmvgEHq2MAk4+3QfevhlKUkArKZgYqcS5CcPRNbqLcLPq0r6w6OfXzH919fCgyPL9ayWQJ0zJ/zC8w+zttnYEb5WeibG6HUVGSH/BdSu0+UMtIeLEsarIG6GJe6a7eBflbMeyMuIGfAbsfUbGDbE2P+DTXSH8uprXzHr8fbl9baYkeGWp57C/LQ/bdrYe4Hd+2DtatuqAtesMGRMlNJ3/7NfMc51vz70LegN6V9U1PW8sbb0ntspqBV//oaatZTQM9HPNr2VSS3CW4wLdFvX2l1qKNtJj6Gdnt8hhja6r09twIG/cdeVXuz9sZZ+RwkU3CdGhjKyUUH566o8P0GFj+IyxJglwZqV+9L8Sppb5rO3TC9ozFNe9lAF8wtOLQfsCPhdv62My4T4HEYSoIFmhun+8MKx3ZxgQTRwcXV3ML2xoDm26iEgyu0sX0Wf1wrqXSuFXNP4zW0/DiqTPnoD0TPLPDn7t/tTs6yQxQdJMCjMVQi56GF80aXTAFybbHAvyzTY+VDwKY4qT2QT0DA6cdQMBTACuRAqRUw1xzTyku/VShcAivQIqVYwOPIbO1ietffSK/t2dI5EXNm3wvCIRbKBTz4j88SPg8vh3kBc7foKvHS/0lJlz0io60/3Mzqr1dBYs+TfPoFPA6uZod9s4mJRFjpYzV0wfP2mXL2a5gAl4nfdrzXpRi5xXdCUryPmZnQBPBvJdlxUrFp5QWUPmaGBvyrET5/tKUSeQHn4aFZ7UGJ+uk1wmPARGn5CmSmB/Z/pTwe+H7djH08C74W1q3dLe/eAQQcI/N0ZLwtwyzTsRbyof0nG7SnOb5HQd8bR2IdkChI1/HVk+RTsFhlnUxyuwq4Is4NirQrOMc/6MfHfaF6cQZsFaTt9DikP82kb9SpGfVVqBdz2shvfoS2HbTOnQUvnYbOa0P4N4d3XGd1wexBLV8piv1j+Sggv8wQcI4N4XKbO3GUpUbC5z+Q8Mb3nCP2yKyzgXTyINPv6OG25Ep73S584sGZAVcH8rX9R23zUQumtgJL4BJQLIpzf/FAAmzbl7ktowLuffm2AAOTnATsmK5BvywIDY1LBmxSEBEugehUCOl1QFo/sU90224FXn7u+W/og++E845o8qRtxtMbiumpbfpn9opbjffe/fuW/GqQ9osiX42Tl+5+AX3zqnjrMyHbhouHcCCEV9qWYfaMXfPgrRCm0PN+nvlmwMaHmbaCu967xjFFSxeMuAF2PD8XrBZ0wT8gIAXW3M/yEeFuuAuI4CRhNBARvtCQAbceAm5d+ZmgCybCZSAS4BUICESBgFToKbD4yvs+1d37dghIhsmV87tsr99JwHj6L0jz2wg0Is7vRE7od86AcI9CqO9Go24ogn7HYeWUfF2Ud6kSvOr5OAOvQMAuMhtayFZBvw8nASMOkegDNg1wzoDQrwv4NwKWYfoIia9ABxAQiAIBgSg6Z8GGVinMFFQb8bWcpUjA12eXfL/SjYEi6iYeRwxxPAO2fNj4qdGeP2OrRX+l1Xs8nGpeAQwsXTCpCeLjr+GU827tGbS3qq2rRTUNz6gmpYjZ71xe0YZy/a51Ul9YncTjFbrBDHjaQ0M9kNYBvmu3hszpWCUq/eJn5jraOvozyrWG2ocLyuGcBXeqdx0E6m9O5D8uYmhbiH5Gnq0twuMLreCpXiZC70E5X0WYWuLzfvEwoF+q0voLrZn2LjhO+uAVtOOW9IwBOeUzph36X26ENyN48A9SjiAroDH/MsDAASQFdPNYIgzsR+64WIP24QMH+ZHajuWtwQztYNSFiIBoK/BBYAzoZuh3BQPBLpYLaFk/w0VXy+IuGE3olJad8RfWzoKt+1cOlvXadfMNS0cEVgrooIGK0XJQvyaSwWgNwkIBPbQPUuAXpkXRdWPArVrHOZWs1TIgXJYBffhXiZaPSpYhCkMNBY7maAFrfeQQUF+3SsAdcsMGlWx4IIH4ykVjQP9N457m7E+7Pb5GwD3881zLrsEHRcElXbDnlgEl6t5iEgIIdM++aj8Y5wtY/2ANO/ipSRsDs//yj04+H3Cv9vJb26HVp9JAMBIXojs+v8Fra+y4K3949TMXmXjwzIIDTugBJUp2DNyK29K5UricBoTn9k8qS71OY+l9f6fhrgABR0icIfnnNWwC+LxTzFmr0528z5d/bi9coJG3dz8T+ychmHdsAXtav73hwCy4+zkUYIfpw4q/Y0Qjn6OebvyFY36NBm/Fxduf3tmlnuvg+KSkeOBsFJ8suN4YNiO8S7nF6d2Vq2yHEDDDuRsG4XfGigZl3Y7l3sBalscwpBne7Vj1T46zjPvr68qa6ir6vGDlENrD1aW36HJjF9BVI3ygNYarqq9K99xb8l01wofN+t7jWFhlbgG3WIzxz7pW5H8oyZ+B/mqkCH4BXXbCYBZ4LrgO8ZJydOUtzPl/a38dAFeQAcGDlRnpj/3X+cun/mqkiL/pe67N460+VZZW+G/Cb/O1FuiqMhTWVnjOGNBTozma3FJYnT0mTUJgIKAxaxYMA22yvN2wDFPH08VUYX1VISAXO+VJRiBgHZpaG+VJTiAggW2Sm8BFNEvAbdoMjDFJQGf+OauOJmY8lITmAmQmbEj16B+lTvZnIRI14BPQpXhfXFdOEs4MGL7/cQihXtZToEj58VgmFb81E4VPQF+bsBLUDbQdAZnSM2ZA9ynCt4FCZWftgoPtJmDAbvWlSo5bcQ1sMBFZDs4HZMb9UJgZxnXAz/8cQ6qdSQPFCj3wYYW3N2J6H+3QPt7WGnIXDcaAjXi8KSc5bICArfgzULS0ELAZbwbKlhUCtmNviFdAetbOJaCrRqnhaD1QvJzIgEAUCNjDVvl+LkwCokVAHzwCbuef740xKxl9KCkcx5bBZruDJIt8LVgy4HYJ8CDUWb5tTYBJSC8erjoFFwkE7KZmoILWraChhIMCekgD3Vg3UEX5xgTc2r86Klo4i47SoQveFR3+QcAR0AGM4+UT02PrMZK7y6MkAToRML7/3zAtiHBQBUMCamnB+PuiWKT4+KuWGixHSwJ0MQYcCKaadtiWIQEdNF+U3hG8O0MC6ujArga1CwUFJRkYA+rQ7+5f51soqYx/7tuIegVU02BP42K4fDMUXgrWczOwU0A1/qV41fBRxKJ/UXWNHNM1BlR0HHTeqhhf34zVV1K+Dbi4BbpHQD36VbLa5Q/re1ecYnodsG3+CgM10iGgogTIC81ArNqMcdOnXUC3/pGBgUNcBWoW0J5/nxLXvaGaRZzXaEayGS+/u1VAe/7d5iLllzYpVX2xwWAtp20d0GZEY6DnKuq+QvNoebC5SUCrbdOY14jVVNKCxrG8DCN3sLbob2dCSTaxLKAUSprOB4YFnJaCKm8cLn/YJai4o9owPlcV8qkdINMgUFO8MrCFMVDf7P5CwxlwHtaHd3S4rpHXR0X3vNufzWBPLjXP29sMbQcjfbnNDDi9aft/QdAxtKIyVtZXVX/vQTy9/fyyBgH1xFVxajm3iJ6AFegv5OdKO79D+7sZzICat6OYcO5KX5F/9oXkv+e5pcC8gPc30hLbNfoplpybroZle5w1K+BdbS2oNkNnyCbxcvBaZcr5KFf+Ci/fKpx3ujZvxdQf6ulv5/hIhM0GFseAY8PLKVho1Pj4Qjl8E/f7tLgOdR0Q/t1JFiVev6GouNMYrGN5FqxEOxFygS33r4keyQQDLd1Rx9OP5PclhvNLtZi4tkGftf6GoxC2eP2rEUYie6pkJN8U/vxs7sWXJynUhHF1RrlVvOPXqwldBSYBm9+suiNaVQCX92iXY4vM9KeLGVIklwFVeffFogI6I/lg4O730LtlJiFGogbYYG3x4S4Y/vHh9dyt1tlGBoObEYAuEhY2XHNpAS2OtcBaYkkTuoGmMiCui4kIjRR8fFCNZnwOAUPyyw5MZUBrmNqc3yTSezdqaPyxBBkBVXZ2KgtVxF6JibwOPy5sSiVriS54NnaWYVqeEf+9crB+6IIn4jYB1iFXPSfgxrHjxlAoe5LZYIL31wVftpGpwE4n3EyI6do1nPdiaDMC+ewR6muXoTGaaQbi1rdtyJCAlGop3TulMJo5xvYFtv+0r0kI2/IoL5rKUmOkrD3PCrvajhWyfwFkFsfNUwbUqpzWcmVYW1w7Aqoa1AEu7AgIVrE0BUJA8GClgXYENDaSAjTsCFgFhrKxMJSOBLyBScsA63Yy+hUQDLHKQDsbUhUWyTWLDltHBgRZVihoZTtWc/5DwuQgTA9kRkBtM0r4J8bk/W1Ou2D4x82slORHwHNvAf/4mWSgGwFdfIi0auYY6ON0LEufjWWX/HHO7G+qrSVLNU+UVVsi1BbOATJHYfVH3HwXnGpcRw2ujefydP9HBR/HYWcdMEe64lM6C/DifCb++LWezIDaMki7Ttpq4JRT4uuNuPEuOFttGGiElIBmGs/I8Wc2SjlKZy2NjgHrtcUw0AY2u+A9csoWmBQQ/mmkr1USAqpr3ltnShv5oQdeTpc45jKgkYnHlvQ0jTkB7WU2XDElzAkIFNNxrZkT0F4+sZezV/JcB1TXwt8GVFcyMI6hDAj/9NPeRvoF/CRA+OcS/QIC1xi5F4z0Z4P2CddDQI1NrbFMIEHHhP+xacRNY6tZ/XAT0So9IccYEHDRdcnfBfRzufqpiWuQAQETfWMeI7Ngyzj+rMIf3SPuewZUM3QHhuj5jK43jrtgNYnH+0U9oB+64CV47oRHry4I6Jq56nOk9vtCtKdrVVHXtzKs8fML523jYIys4zHg1sR5x3XGoTHfHXTB3oiXP15fM+ZA7m7lJqCnHhiHI3yJXC3LH1HXGTBoGgYK0+3g5BD+ucp5D3zXLkXBF5VX45/KUoFezDXndRa8X8JYA+Ka5SqgueunhrsKDcEaDaYPM3S9Dsi6YOUB5oBwGHgT0FWL6akMSpLF7zKMulDrgOFge1bcdsHwLwdTP9z44UE5vG5IVVYPXcXhUTBmaxUaDPSZATH7qMBkYJIQjoYc+BDQQ9N5qINZGoeYDwF1DVF7UJn+tJWJXp5WIRpr6q4LVqnfVrQ1gDcBoR+ReSnwiLHh7X0JiPRHZ6KBLe3gSUDo19QBzDSQjpc7IXCvHfpO/Yl7y+8C2pwEQ78u6LflUg9P8gTdQxeMrvfDvECEwt+GsC+gEf1WlLL9d/SNA8PjX/oxL6AN/TyCLvg44N+ZnliIx8/2bhgj3e8aJsdi0vTU8mYE6HemMxjdq4FMwU+t8NhYirFm3+yodsejo2CMsbe6EA39nJCahBhoXANFNEPPp8vw/fbkLFh986ovoClEo2lxGcbg5GN+DzwSk/af5auPQQHt6acewZCmBVTcxgbT3xLGcpJcUK1lQJv6YQ6cxZiANv1bwWBkWn+c7ZLKrAPq/GQL6JdjPDJSR3bkFqI1Ggj/UrBFRabJDd0JsevfvJa1G5MPxsaA4AKvfyI22xHQ/sXODndIJEKcFVBZe2P578GEkAgE2UYGhH5PpoRkfZyzkxA9s2DIl2JSVJZPhdVnQCS/JOJR4RJV+TKMeJxZuKaVb51C/l9Sb3J6gY+wHMdROHRBrguO/uJ8Cma5TumoL40DteGZCqUiA15vAwWNd2HG+Nao1mrxuBrg5hLMokHAe5SprWWI2HCayutVfKev6CZ/7tG6NHS/7L//CCQgNvzExzKbyjEOVFMGqeW5Wi2/DDPdixhjXPF7QCNLW0RuHTC+/8PzoYvAKAUB514Ip3eHgcogtDybHLXDV2fJgY5XNdVmZ2s/mWUY6Afe1MaATvZcgDbWtZDIJASDPvUsM7Am4BxXYKB12FpQaBkGBmqnkgLZMqSQgBgFqqfYRHztp35DKpBiTZKQWIZB+rNBfluc4SN6IZ8hcgZyNmL1Y+g4pwuwzyBzDsf/vX31DYcOUX8+9gDAmRldcLx+GWAfyFKfBTfbc/8B6AfyYBkGiLJCQKRAkGWCgLjNBuisyIAwEmSZIeDtKQ/4B/LMuRMSjuM79IN/oMDEW3Ehwj5Qo34nhEMizINBBsIYEPaAeWAhGojCOQb8HesEABHGDBgvfwBAgSJgy7F25JcDcBxzxoA4VxyQYRPwIh0UBERIk5COQ5uTp54CcIcrA6ZSHvIgqEITcPHHcYN9mLsQ/ToFFf6BLJOfC4Z7oAxuxQFRICAQBQICUSAgEAUCAlEgIBAFAgJRiAJiPQ/MARkQiAIBgSgQEIgCAYEoRAGxtxTMARkQiMIkIJZpQB/IgEAUmoAYAoJJIAMCUXgExBAQdIIMCESBgEAUCAhEIQmISTCYBTIgEAUCAlF4BEQfDTpBBgSiQEAgCgQEokBAIAoEBKJAQCAKBASiQEAgCgQEolAExH0OMA2mDAhHQR/ogoEoEBCIAgGBKBAQiAIBgSgQEIgCAYEoFAFx7gGYBjIgEAUCAlEgIBAFAgJRuATEbgTQBTIgEIVLQCzVgC6QAYEoEBCIAgGBKBAQiAIBgSj4qC4gCklA6AVmQcuAMBBMAmNAIApRQKRAMAdkQCAKVUCkQDAFfFomEAVdMBAFAgJRyAKilwUzYMmAkBP0wiEg/APd0AXMaRbhH+inIQMmRYN+YIjQKtD5+UvIB0ZpFvD4Ogj9wDg9k5BXtwv/AAPds2D4Bzjo6YIBYAO34oAoEBCIAgGBKBAQiAIBgSgQEIgCAYEoEBCIAgGBKBAQiPIfyIxO1mCMdhsAAAAASUVORK5CYII="}, {"score": 0.9940965175628662, "label": "cat", "mask": "iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAAAAAAQuoM4AAAJMUlEQVR4nO3d3ZLiNhCAUZHa939lcgGzC4MBG6zulnXOVVKpyoj1ty2Zn6E1AAAAAAAAAAAAAAAAAAAAeOGUvQD2db77t/qXt/4KWe389L/Uvcx1V8Y2z+u7KHqliy6Ljd7ld6PWJa+1Gj6yob6rOpe9zkr40Pb8WqHrXmYhfOKj+C6KXPkiy2CzL9q7KnHtSyyCrb6vr7VW4uoXWALb7BTfj+QCBDiYnfNrLbkBAQ6lQ36tpVYgwHF0qq+1zAwEOIqO+bWWF4IAh9C5vtbSSvgv58eySUB/IT9jgQlYX1gaGTEIsLzI0RSfgwCLi94Zo4MQYGUp57LYJNyEFJZzXxD7U03AupLuS1toFQIsK6+/FtiFAItKza+1sDIEWFN6f63FxOEmhKfOx30FkNdKDMCrvokIsKBK+bXWNxJbcD3V+uu6IBOwnHL9tdaxEwGWUzLA1isVAVZTtb+L3XsRYDG1+2u7FyPAWsr313Zuxl1wKSP0t+8iBVjJEP3tu0xbcB2D5HexVzgCLGOo/i52qEeAVQzYX2vtp6DzpyEJsIhR+/s2ITchfOm7vzoCrGHcAfjl2gVYwsj9fbd6AVYwdn9frV+ABYze3zePQID5xu/vC56GSXeQ/j4sSYDZDtJfa5/FJMBkB+qvtQ96EmCygwXYtiYlwFzH66+1tiUrAeY6aICttZVtCTDVkfu7eBeYADMdv7/W3jQmwERz9Nfaq8wEmGee/tptaOe7fxNgnqkCbNfWzj//fH0PtQDTzNbfgpMA8+ivtebdMCQTYBID8EKAOfR35QyYQX5/mYAJ9PePAEklwHgG4A0BhtPfLQFG098dAZJKgKQSYDA78D0BkkqApBIgqQQYyxHwFwGSSoCkEiCpBEgqAZJKgKHcBP8mQFIJMJIB+ECApBJgIAPwkQBJJcA4BuACAYbR3xIBkkqAUQzARQIklQCDGIDLBEgqAZJKgKT6k70ABnXzq02/Od/6DakxjnYP8tDNpw9QgDGOFeByNR89RmdANnsytU6fTDMTMMZxJuDrYjY/TgHGOESA62LZ9lAFGGPkADc3suXBOgPyxvYZteUwKEBe+2iPXJ+gLTjGsFvwV4GseNQCjDFqgF/38e6BCzDEtP21d4/dGZDOXkcsQJ7bZ398eUciQPp7UaAACfB8CAqQEM8SFGCEUW+Cd7VcoAB5aufn6BaHoLfkE+f0uBmYgIT6PQa9EhJhzDNgRBtnE5BMJwGSSoCkEiCpBBjAPchzAiSVAEklQFIJkFQCJJUA+xvzJjiIAPsb8/X2oFULkFQCJJUAWRR1bhBgfyPehISdWwXIgrj7JgF2N+AADLxvFyCpBMiDyCcuBUgqAfY23hEw9JUbAZJKgPwS+9K1AEklwM6GOwIGv3dHgNyJfu+YALkV/t5FAZJKgNyIf/O2X1DJXxmfHTAB+xrpJjjlsysC5Crns1MCJJUASSXArgY6AiZ9elmAtNbyPj0vQFIJkNYSf32IAGmZv75mzF+cM4pB7kEyI/BS3PRyZ5AteHbJe6AAOxpkB04lQFIJcHLZd6EC7McOvIIA55Y9AAXYUfrFfS9/iQIklQBnlj8ABTizAv0JkFwCnFeFAShAcgmQVAKcVokdWIDkEuCsagxAAZJLgJMqMgAF2FOVi1yZAOdU5u+GAEklQFIJcEpldmABkkuApBIgqQQ4ozpHQAGSS4CkEmBHVX81QqEdWIDkEiCpBEgqAZJKgKQSIKkEOKFKTw8JsKNKz7dVJUBSCXBGhfZgAU6pToEC7Mkh8C0BzqnMCBTgpKoUKMBZFSlQgNOqUaAA51WiQAF2Vfs2uEKBAiSVAGdWYAQKsK/ae3CBAgU4t/QCBdhZ8RGYToCkEuDksvdgAZJKgL1VPwQmj0ABkkqA08sdgQLsrvoenFugAEktUICkEmB/5ffgzBEoQFIJMIAR+JwAaS2xQAFGqD8C0woUIBdJBQqQVAIMMcAenDQCBUgqAfIjZQQKkL8yChQg/yQUKEBuxBcoQG6FFyjAENmfPVsveqUC5F5wgQLkl9gCBRhhnB24teDVCpAHkQUKkEeBBQqQBXEFCjDAWEfA1lrgkgXIonNQggLkiZgCBcgzIQUKkKcitmEB8kL/BAXIS70THOHTMqMb8FmYez0jMQF5q+cUFCAr9EtQgKzSq0ABsk6nIegmpL/hb0Lu7FyMCUgqAbLNzvNcgGy0b4ECZKtdb0cEyHY7FihAUgmQVAIklQBJJUC22/HVEAGy2Z6vxnktOMBBXgzu0sqfHv9TRna6+/vSe0LZgkklwABjnXP8fkAm4gzIg1P7Owe7D++xdodhjXUf/BPFWYBHMVSAoU3Ygg/tZjMtSoDH81PddZKdShdoC44RGMHjJd34w0Ob8DTM0SzkU3nKCDBGWAOLP+hUN0EBzqFsgWUXdjRBh8BX13P1EiKjMAHnUXIjFuChvElsZYG+qotO6s1AAR7J+77WFei74uhl3UHQd8XxiVXdrErQd8XRT6WToABntKLAqBEoQJb5tkz6WXMO9G2ZTECAk6oyAgU4qyIFCjBIpac+KhHgtGq8OUaAUUpc7ntvl+Qb08nVv0ABzuz9VO5eoACntqLAzgkKMEzBQ2CBJ2MEOLnsAgXIWz0LFODskk8GAgwT8KRar5g6Ll2A08t9h74ASd2EBUjqnbAAowx8BGyt3/IFSOoxUIBBSv+e3FX6PAIB0lZu3l0KFGCM6gMwrUABHsdX9yBZBQowRMQA/PIeOKnAku8ROpwB+mtrV7lzMb6o5hiGHSQCDNB9AA6bnzPgEez1+cqUjAU4uh0/3ptxHyLAAB1HS41Pl39BgCPbO7+EESjACJ3G1P7/2/gCBTisvN13zwJHP0KMYuGanV79x7dyP/4RfOPD9+4v7O8/9jpfKb1yJbutQIBxzu3Fn/eGBPtes+ARKMAy1ibY+5Kt+7abvX6aAIt6lkHEBVuRoACncVdD0OUKLFCAI7gEEXit3hcoQHp6W+Be4Xgimk/sNrgEyJKwnVGALIp6oc8ZkOd+ToKnfvfiAuSls0YAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADg3v/QMQZyh+Lm/wAAAABJRU5ErkJggg=="}, {"score": 0.9986692667007446, "label": "remote", "mask": "iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAAAAAAQuoM4AAACXElEQVR4nO3aQW7CQAxAUah6/yvTRUspbYF44mRmnPdWLCIUyV+eBHE6AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHWde9/AU5frh7Fvk3Z9Jnt5fclfIqxo16k2dXejwIK2HurK5u4psJ7tZpqa3hcFlpM70i2iu6PAapImunl5Vwos5n31N+zWHhW1Byg8ErQdaR3jcwbX0rABrT7yhAOUH5negtfrj1SxDSg/koU2oP7IFj2CIVUkQAuQdLNtQD8DFjNbgBQjQLoKBDjCI6ATuJq5NqD+ypkqQP3VM1OA+ito/R9S9yK/kpZvwM7vIPqraY4NqL6yAqPttALFV9qgG1B1RzFggOI7ktECVN/BDBCg5o6sa4DSI9JA4muw9PjUYwOqj2+7B6g+ftotQOHxn1AXrQ+B4uORTTeg8Hgl1khkBaqPBYKZLClQeSwXreVpgdIjKtzMowLFR4uWbn41KD0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICxfQAbvBpwkLMhSQAAAABJRU5ErkJggg=="}, {"score": 0.9994757771492004, "label": "remote", "mask": "iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAAAAAAQuoM4AAAC3ElEQVR4nO3cy26EMBBFQRLl/3+ZrLKAsQFLbt9opmo17FDrxJiHsm0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAO/nK30CH2DfzLnLYIrtfz9MuslYSu2HI8N+9Z0+gbe2Xx6y+aOs1OjNuM+sgGVa65018EyAaynwRIBVpPaIAIv0+tPlkQCJEmANC91DAlxNmgcCLKGypwRIlACJEiBRAiRKgKv5HuFAgEQJkCgBLuYKfCRAogRYwYuQxwRIlACJEiBRAiRKgEQJkCgBruU59IkAC3gM+JwAiRLgUq7AZwIk6id9Ap/E+vfKCriO/hoESJQAl7EAtghwFf01CZAoAS5iAWwTIFECnM+r4AECJEqAa9gCdgiQKAESJUCiBEiUAIkSIFECJEqARAlwCc+hewRIlACJEiBRAlzBFrBLgEQJkCgBEiVAogS4gHuQPgESJUCiBEiUAOvZAl4QIFECnM4/RhghQKIESJQAiRJgOTfBVwRIlACJEiBRAiRKgEQJcLbzixA3wZcESJQAiRJgMVfgawIkSoCT+RhrjACJEmAtW8AbAiRKgEQJkCgBEiVAogQ4l8eAgwRYS5A3BEiUAGt5EH1DgEQJcCpbvlECJEqARAmQKAESJUCiBFjKY8A7AiRKgEQJkCgBTmXPN0qAcylwkAAn++oe0CLA2UQ3xLgK/H0TY7j3zKjGvpktAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/cL1CMGuKspT2EAAAAAElFTkSuQmCC"}, {"score": 0.9722069501876831, "label": "couch", "mask": "iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAAAAAAQuoM4AAAS4klEQVR4nO2dSbbbOAwAqby+/5XVC9vfljWYpABiYNWik05+bBIogYOmZS3gjUX1031l/J91A2BuFl/HA/yhVQadJZwK6BVnomiBgJPhzWsEdIs3VXRAQL9MYSACemOmPZhSyn/WDYANG/1WaRnd6UcFdMZy8X85oQK6YafbDP6xEe0ZcQMdJntx2Sp4Ieqgx0wzBPtmfSu4phyUETAMCe0rrILBGAT0zrruf5cIFiEBWDY56h+KPWYaAeOxNXDd/9EpDlPNEByFl2PL9mxdk1MO1zGsgkPz0q/2rPGy/WcO4ExIOI4lWuovXXCVcgRMRJ2BvjKOgFlomd85SjoCBmMp5WD4bcZN2lmEhOJIta6lrZvCg4ChWJeyqV4O91UaQcBYrEsq/RAwGsvB7zo/yMcg7GYuANe8fRO/ValYrkkQMAb6o62RCAzBMVif141kmPZtQMAw5ByrGIKdM67k2ZjA5Vi+GTjk2ozuCOibkWXJxEAEdE72KRICwh8WJZBFiGMshBjtAwJ6xHS3b6wRDMEOSbfbfAECgikICF+Mrb8I6A/rEXgZ2QAEhD0DFWQV7A7rAvhijBlcDQMnjHlsEEOwM4ZOwH4xoC0Mwa7wZN8DbT+ogHCJ9iGBgK5wOB4pG4iAvpjOQOaAvvA3CSylaB4XVECoQG9tjoBQhZaCbEQf8oj2+OmJ0xFYEeaAnyy7W7/Hhse3fyqxQMA3J+kfGCHfApZS5KMxtYCfZzuvcj8qRgH8K6XIxmNKAVsTPShGUfwTDciEixCvefbargM+XyF7k9kEDJTlCNx/zOUEAi5riSCe/xYe8vXQ6vZ/n3oOKJTUETEK6t+DGwHiTAjc58ZpEgT0QegCWJ4K9nQCAV0Q3b9SylKWnm6kXoSESWuYhl5x1onrm5uogCDIXsLH2Lyc/ljmVbBUXVEPUYoCWEq5eoviWRATV8Aw/iVh/Q7Vpu6dZcPJHFD+xVGBqkqgpl7xQ7eTsdZewGXzy4N+G+WTSQFs4zQDfwZuViVWc8BqUVrap1JKmAE28ONVTu+/fl8GF+Sy84pm6iRSPz6ZBKzmL6zDh+DOcP+eJE6Zx/iMFfCOJD8UVPKPGaAyAwQUU+NCQbflbzfnOf2JqXiHQ1nAQdH1mkSv7XKE7ka0dAKGJ/TeCLwc/vb0Zybi3Wu9CqgS2eNFu9MkOm2WL6QEtAy200Q7bZYzbu4Djg/yrr26TZA7J3P8SbNaKrIP6CF42m3oPkm9a1jm645u0BmWZTW07+NE4tiva+GgaUcf5OEgNuEVjK4KuFjP+dayrL6Td9S2Me89CEZ7BVx+nHDOR4c1pxH6/qzJQvnBMxLN+4CLrzdZRIPYfbCUdgFnDOCMfdbneQ9do4DkogrCVMEjSInvCZEDn5RYWgWcNROz9ludZWkScN48zNtzbRiCTUFs+7viYtC0X1qhFeY9oQJWImXMIvpp8Wk5siePWn2kJg9UE1TAatBKAwSsBwMVkJ5cZ6cmXISpAVbBbXBJlTAMwc38uhqIAtgCAnaAYnK0CEjcayBKTVABe7iQDP/aQECwYX0s5hAQTHg8UXpdh2/DVL0hGrIj9oDKhlvkvh6hfvCXODkby10B1zoFD/Zut/f1Pn7A8m73JtiLFuPm1TDr8y9O1fn58cvm54IYyOMmb/N6ifO9c8Fno2r7h4YS8KJ7MTrggecQKLkIeUjd+7AZwYYoE6ip/mnahlm/Qn80tWvNzvL5a/j6Eb4Dw2msgIrPhQmTOwqgCM8HrDVvRH+UuDkzcdXrMAeRB7qfjPDMQPNge9GKQMx51OnRswgRzAH+zY7tuWD8mx5TAcP5B+IY3hOST798PdLHTMCEyUrYJX2shuCYyWIKKI5JBYxpH3yzOS3ReSlTlDemO8HilcU+kXrx03ABg2eJ8yClFMnrgUYPwRMlKS3XNavxDUJjK2AK/eK9tl2UKmHqQzF0FZwjQ6eP5phijVzXyfpQDByCc+g3NfVeVa+Jx1VA/AtPS4mvvViKx7NBJa0zjLqLl4cJSAEMTscMt2ZBzKM5oIrOFdbPkXiUgJkK4FlMM/Xxm/4V/o9/OWgIzpybCbi1wXQ5F1zHVMBc/uXqzQDO/V3HDMHZMnbcn2y9fHN7h/3sA9YxQ3C+zOxPYObroyjnw7D6ueCkmfkKW9JellIEzzAePlpIW8C8mdkELm83Zc9wb+L0eCakooCJs1LKJjOZeyosyPcj1LQEzJySF+/QJe6tuB+vWD0/WGERkjgbcJ8vo4UFnFS+MM8Wbkb9GkfZfcC0eZgV/WtsZQWc4prgI1ahh4XNh/giZJ4iOMFm9ICDSvxU3DSFYIKOjuii/LngCRJTytmrT1IxpD8KFyNMMRuaoY9DULkaZgoFQQQuyYcTxlQR7orrYIoCP6iTVMB2prgnZNRBpiNgqlTUkqrTw4o8FRAOGDfJYA4oRKr6NxAVAedLRrIeD1xlUQHb2F14lUy94WjMAVPnZC1lOX9EILSiIGD+5Hz2MOOe4Mg+MQQ3sb7eC/8i/9GmjHwFzJySV2l4nOxecnd2DOwD1rO7xiKpfkNnFQzB1ezyknH6NxwuSL1Fxs6O7RNzwFou85JIxMFdERcwq3/X5On16EOJRUglJ4lJVPpsQMA6TkVLZuDw7rAKruIiL40v54Mt0hUwaS6SdmvH+HouLOAsidqSbBgeCg8ngjcGRxKLkDquDy1KYDcICKZIPh0r+QB8GakUfbco5HIVMP1Vwpf9yzAIm/RBTMDs+pUJDLSAOWADGCgPAsITmyMIAVvIXAKNmo+ATeQ10KrxCNhG1rWW2cGDgI1cGRi6BBqBgK2k3O+0O3SkBMyYlTPOFaQENkMF7CHb4WZ44MgImHJYuuKkv0HDYFm4RS7JDxp3aaKGwXTiICFg1MBDKebz1vtD8HTDbynl8qCLtRKxbi2LEHmsc9qCeVu5LVOcKUeEbqiAnaCZDLcFnDYR+44HfEejfYvvCjitf4ddXwM6aAxDcD+HB18oBR20FQFvcFz+HWS1Eg8tvXlb5sQj8IOT8MWIiwcB71XAGHGGYzz4d09Ar/7ZrwWsv78GH228I6BT/9a1eIku/CTrIuTj4DBx0f8B4KSF+U7FrZf/q/tl0MwNAd2NwEc2rOXjFauvHxjR8t17XZ3h5dBJMwQfLzzWj/++Yz4k+F4y7Jwb+4CuDvFdN5bNHy9HPyLQhbCPbHNzePQL6Cu8x3b97tzdXlx9g68IbXEjYJJFyPnw+/sfevYkP91zQE9pu7fv7KYYTEmvgK78u/vvUdCOTgE9+SdAv4LJAjGePgFdhV2kflEEjegSMJ9/Gga6ipJbegT0FFm5+Rs10ITgZ0IkrRFei3g6TB3TISCRTYCbJLYL6Kbp8nSUQAbumzQLmNg/dgQNaDwX7Ew/DV+aunjeAGeR2mN1rC3bb26rgO6jKkBLYiiYzXwrFHwV7Bf3bhoVk++4hBZQJ8k/PnU9/G3zx8CDpsuxnI3ATlP8vA7RWbD2LC4CGLgCqoXv+oN/iLUsr//4x0MrwwqouWNy46M95LQei9Z+BbdFQE/B9TB6XOEpVhfYNzNoBVT2j8sDFdkGN6iA2nQauBz+1jPmzYwpoNMB2DybHVi3uUFA66a+GeBfzVc4PQy8s90iiFgBebCBJAZ15fMr6wV0UwC9qOGlHXexTWy8Cjgq77++5+Dvgyq5WO6bV5+Kc1MAnXAo2/r3DJol1iMXbj4q/Aa1FdBNMMdFqudSg7/zM2vRPVmThlr1JxTw+FU0tz/BJ94rYJhAirIrYXlrmlmC6yqgH/9MDFj6v9tP5H5gdWgleTybLjeS4/1JvebE24aBVFQJyFHcT5RZo1WOg1XAKOmEWmoEpACCGhUC4t8USKW58cTebwE9+RdxBI7Y5hsspU2ZH9swnuyDjFxXQPybCJtkXwrozb/JRrPRiKW7JU/BtmFAEwkD18YT5gioTqC6LWNgEwgIpiCgPpFK4PBp/5WA3tYgYQlk4PCkXwiIf1IQyXMYgmHL4KPlXEAO20kZm/hTAR36F2kq9YnDUF4ytL1nAkYLGgSFOSDsGFl9EBD2DDQwkIBRp4ARGWfgiYBMASdnmAD/wqhGARzKqJNygYbgqIQ5xL8Y0+5/UeJDARzOEDOogHDKiGH4X9whAvTRf3hqlIcTMQJbsZSiGX6GYKhArxAeC8ioDF9oKUEFVCfJ7EHJQASESnSG4cNFCCMwHLEolPMgq+Akw1h8xB38ENDuZSUQidf4KKPLZwV8GcgIDBX8vRXqFv/tPwT/oJYbL7B4sl8Fe/SPyYFvbjjzLaDlixMhLP3WfAkYVD8OG2u6E7B8DG9us3g5Ai9VP2WJ27iK0hn+IPuAp8yR3MQsAQrg2cH13WCvJdBvYEXpCz/ngsGUsEPwQVlZ3NZAOCVSBfxw7mTZO8lgl4kIFfDvDOHDr6tX8HI+OxqRKuCTyzLnsQZyUFwQR8BKtTwaOAWp9wFbrGIUNqE36hEEbCxqLIYj8R6CE41diboShe5j/k/AVElL1ZncvAQkZXpMENv+Sc9TwGwxctWf9FPStvdjbomzDQNeuXWAPW6zc1UwRPBVdfLF98XtOC/l+txWWFwZmDHARSbGSUPjTMCUYZa/LxigFrHjO+OhWUrxVgEzxVk2sqyCoQ3hI5shOC9rka+84gNLoqFhi7MheGCgH9599l/quzViSgXMyNcFQbd2epWPZOaACTmwrftsmfZIgoApOdDmzglbRdIK6GxyO7Y5Pl075E/AQG2uIlt/Wjjpu8uQPBchaymrt6JxC5fBtsZjiv+V8jc9SJS0RF0RxV9c/n3OTv01D4Rxl+J/m8WRu+Z1kqUfCnhbDKdcBTuLcSkjm/Tzm3xFJ9+ZEF/x9UjTWkT7Pv+vChg/e/F7MABHQcrxkPI/vM1wEqCsRK45IPpV4idQWwFjF0DKXz0NodKVIs0iBPke1MahYSWiug5JMgT7L37+GljfIs0amENAf9mNgAsDUwiIf380hcKDgRsBY65B/A+/pZRBR0njlzgwMHoFXIPoV3zWafs2bQS0b04r8VqsSsBwxK6AAQOuScRwbAUM1oNgzdWmJxzmIYy7EW0eOm/0BaT22Xxa7x6IKSDy7em+8bd2gatzQiT2HDAUXje5qr1aTl4ReYuQ1wPGaOUXXv1rQr4TESsg/snSEk/xbnwLGCC5AZpowJ2oWEZ0VwG9pzfOmY+h3IuK4dWB0YbgqPo5HoFLsTRwL2DUFENIDjd33B6uYQ8O5YgKxKWhhaJZONyIdvrmmrD6KSMSF6sHFwWaAwb2TzO3Yqsym/geC+gx1x7bZE/4TYGY54KDoVYAo9tX4gzB4Y90DYRjUvtxosdTEAHRb4/8MWlhYIAhGPkO0QiLwfaH/wqIf4dkCYt7ATMEWqEPSmGp/FjBQul7CM5g3577LxHUi8vwQdizgHn0+0jruvllw3Xu80Rjw8kQnLS3ZrxWrJcr18ugj8pI3ffI1UnPFTAVNYk9eKtl+kpwdquT9eUI6QP/G+3Hg59+74+/l22Wgwr4OSfHuzdWsRh7XczpYabfCGRzy2XyZfNmtw+If1AuBNT2A/8cMzA5RhWQi1t8c5Ee4cxdLLW0ZoG4F4HT7Aun76ICrkpXXCh8JoTlegi23g0EM0bVieFzQAogfDJaQPyLwkmmpBN4eb5HaAR+XwuCfqFYyjNlu4t5BL/j8hNFDHx1AfvioldCfpzxFjAQ7xKgd65e+2IE9EvBwYViQvy65qf7azEPavh50VmPgcgHtfzchumQCf+gGoV9QPyDen4LiE+giPsb0yE38gJSMaGB3wJyRQwowhAMpiAgmCK+CmYKCC1IV0D8gyaEBcQ/aKNCwHqpuNkSWpGsgOgHzQgKiH/QDtswYEqNgHWljQIIHVABwZQqASluoIVYBURS6IEhGEypE5DyBkpQAcEUBARTpARkkIYuqIBgipSA3DkCXVABwRQEBFMqBWSNATpQAcEUBART2AcEU6iAYAoCgikICKZUCsiJDtCBCgimICCYIiQguzDQR52ATAFBCYZgMAUBwRQEBFMQEExBQDClSkAWwaAFFRBMQUAwBQHBFAQEUxAQTEFAMAUBwRQEBFNqBGQfGtSgAoIpQgJSJKEPKiCYgoBgCgKCKQgIpiAgmIKAYAoCgikICKbwnhAwhQoIpiAgmFIjII++AjWogGAKAoIpCAimICCYgoBgCgKCKdyUBKZQAcEUBARTEBBMQUAwhRdWgylcjACmMASDKQgIplQJWDEGs1kNXVABwRQEBFPEBGQMhh54VReYIrUIAeiibgjGQFCicg7420AchR5YBYMpXIwAptQK+EMw/IM+lmp1llLWkx0Z9INe6gX8+xfff4B+0E+7gB8Goh7cpWMRsu5+A9BLzyp43fwCcIOubZh1LfgHInTMAQHk4EwImIKAYAoCgikICKYgIJiCgGAKAoIp/wO8XkDX1xI8jQAAAABJRU5ErkJggg=="}, {"score": 0.9994235038757324, "label": "cat", "mask": "iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAAAAAAQuoM4AAAK1klEQVR4nO3d3ZLaxhaAUXHK7//KnIsk9oxHgBDdvX+01kXKjise0frYLRCT2TYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAEm7RB5DUfds2q7OAJd5z//NLCzSX9f3h/v23Vmgqy/vNfeffWaKZfkUfQLC94ljo0gGqL94V95d3u7viGi1zoQlo3mV0jQC1l9YFtpdP67vAEgVqPwENv9z+F30Ak+kvueYB6i+73gGO6M8l4FS9AyS91gEagPl1DtAFYAGNAxzSnwE4Wcv3AY2+Oro9wwe312158uk1AY2+cjoFKL+CGr0ImdCfHXi6NhPQ+KupywTUX1FNAtRfVT0C1F9ZHa4B5VdYgwk4sT9pT1f+jYbJjZRfn+xqb8EmVHmVn+FL8qu8QBUUnIDGXif1XoQs7k/uc5ULcHkQCpyqXID0Ui3AgHlkBM5ULcAIdwnOUyzAoBQUOE2xAKMocJZa77NGdlBrpcootazBc6jUWlVRaFHjt8FCi1VGnWvA+P4yHEI7VZ7UWc59lfUqo8iCZulvK7NiVZRYzkT5bdtWZNGKSLyW2bL7KvGyFZN1JTPXt215162clB9IzV4f4yQMUH5Xki1A9V1Msjei9Xc1qSag/K4n0au5SvklWrbikqxkpfjSLFoLCdayVnxbijXrI/wasFx+DBX9KrhgfwbgSLNX83dgu1+oYH76G2vqcn7v6+eXKtif/AabuKA/8rq9+PMC9DfazBX9VtiPL6Q/tkWvgnfOW8X89DfB9GvA/S9QsT/5zRCzqgX7k98cIetarz/5zRKwsvLjj/VrW64/+c20enXlxzeL17daf/KbbekKV8tPf/MtXOJy+elvgWVrXC4/9S2xaJnlx741C12sP/Wts2StS/WnvqVWLHel/uS32PwFlx9PTP+mJP3xTPR3xWWivwAC/E1/EWYHWGcH1l8IE/Bf+osxOcAyA1B/QeYGWKY/okwNUH+84hqQUAIk1MwAC+3AXoNEmRhgof4IYwveNgMw0LwADUAOMAEJNS1AA5AjTEBCzQrQAOQQE5BQAtw28zrQpACrndFqx9uHCfiPuwRjzAmw4tmseMwNTLkJVfVcuiO3ni34C/vwejMCLHwaCx96URMCLH0SSx98ReMDLH4Kix9+Oa4B/6bApYa/8Otw/rwaXmf0Wnfob5PgOrbgXU2eRwUMfqo3OnGG4BJjJ2Cj/lo9lsRswQ+5L7LC0I2m3xmzD89mAj7V7ymVjQCfU+BkIwNsebJaPqhEBl7ktD1VLgQnsgW/1vaZlcG4ABufpsYPLdywAFufpNYPLpYtmFACPMQInGVUgN3PUPfHF8YEPEiBcwjwKAVOIcDDFDiDAI/z+awJBt1musypcVtuMBPwPZd5pq0y5hl9qdNiCI40ZDUv1d8mwZFswYQaEeDVBuD1HvBEJiChBgRoHnCeCUgoAZ5h6A/zeYBOBh/49elfkKa/L2/OpTkmXvr0PdUk5/rnw/h6YLfxR+m96EF6BLj/KO7f/mTskQpwkA8XMnN/f1NgRp+9CMnR30GSyeijAJP0d7Qs/yu6hD4JsNw5uBmC6TR4I/qdqgYmWO7pl9MHAdY8A+MSrPn4szl/OtKs/4mHMOjY7eifq78Fn6nAxWAap89ElgH4QUqfPwQdf+zje8GF3fI8ja7rbIBNztxta/NQiqp+DThgE3RBGKl6gENIMM7JALNsW6PKkWCU2hNwYDYKjFE6wKHRKDDEuQBz7MCDk1FghNITcLC3C5Ts504FmGMAjvdmUPob4MwiJulvxvk//tDUN8aJCZikvykOZ6W/Qd6/Fde5v9du27bd1TfO22uZpr9JFTx/fNIb7d0tuHt/z/9e/Q33ZoDt+2Ox9wK8Qn/SXuqtAK/QH2tVvBMy+aMrT/72NM/APt4JMMnyG3+d1JuA8/tT+EL1AqSVNwLMsQOvGE8Pv4bZOFy1CbgmAaEtUy3ARXyPyCrHA0yxA6/rQoFrHA4wRX+0Ywt+ZGcEmorjHQ0wxwBcWoDcVjABH1PgAgcDvOAA/Pn1BDmBCfjM7eFvGCTiZ7ycFpHAPe5LX0KlAEXQ0KEtWH/M4hqQUAIk1JEA7cBMU2YC6q+nAwHmGID0VGYC0pMACVUlQJeATb0O0CUgE1WZgDRVJEA7cFcvA7QDM1ONCWgAtlUiQP319SpAOzBTVZiABmBjLwI0AJmrwgSksecBGoBMZgIS6mmABiCzmYCEehagAch0TwLUH/PZggn1OMA0A9CNkM5MQEI9DDDNAKS1/BPQDtzaowDTDED99ZZ/AtJa9gANwOYeBJhlB9Zfd9knIM3lDtAAbG8/wCw7MO3tBqg/Vkm9BduB+9sL0ABkmdQTkP4ESKjMAboEvICdAF0Csk7mCcgFCJBQiQN0CXgFiQPkCvIGaABeQt4AuYS0ARqA15A2QK5BgIT6FX0ADxzcgf/ctbFl11R6At6/3DV0A7GmncGR4VS+mmd7x2gGVvTzrGXo73lMj45QgQXl3ILPpZTiqcN7cgbIZRQM0KDr5GeArqRYqN4ENABbSRngsyGsv15SBvgkMv01sxNg4ovA+9P+Eh84j2S9F7zH9Gso5Ra8n5r+OsoZ4D+x3b/tuPprafe6KdG5/n18B47JNWBBSSfgb/8NwUTPCUbK/yLkvt3k19f+tlXzhNuCC9rfgmNP5e0mpctIeg14pkDVVpQwwJMh6a+kBwEWPJs1r1svL+EE3Lbt1DNAgRUlDPD++x/0lzDA7X7X32VkDND8u5D8d0KOKvi6iawTkMt4ODeK7YLmX1E9tmD5ldViC9ZfXeUnoPhqqz4B9Vdc7Qkov/JKT0D91Vd4Asqvg7IByq+HogHKr4vHZzLxrRD59VHxRYj+Gqm3BcuvlWoByq+ZYluw/rqpFaD+2ikVoP76KRUg/RR6EWL+dVRnAuqvpSrfEyK/pupMQFoqEqAB2FWNAPXXVokA9ddXhQD111iFAGmsQIAGYGcPA3TaWSH/BPRMaC19gPrrLfmHEeTXXeIAxXcFWQNU30WkCVBx15QgQOldWXSA6ru42ADld3mRAcqPZxFM/lC+/NiWT8D/qrvLj23bns+hwSNQc/y0agKqj12zAvwnuPvX38BPT9s4vwdLjmOmTED5cdToALXHW54H8+YerD7eNXACyo/3jftIvv44If33hNDb8wBNNSYbNgG1yhkvApQVc72agApkKi9CCPUyQCOQmUZNQJ1yyusApcVErgEJJUBCCZBQgwJ0ocg5BwIUF/PYggklQEKNCdAuzUkmIKEESCgBEkqAhBIgoQRIKAESSoCEEiChBEgoARJKgIQSIKEESCgBEkqAhDoQ4OSfGcelmYCEEiChBEgoARJKgIQSIKEESCgBEkqAhBIgoQRIKAESakyAPq/ASSYgoQRIKAESalCALgI5xwQklAAJJUBCCZBQAiSUnxVHKBOQUH5SEqFMQEIJkFB+XjChTEBCCZBQPhFNKBOQUAIklAAJJUBCuRVHqCMByotpbMGEEiChPg3Q9sxHPgzwtt1umzshnHYowOdj7mYOctqvAX+H/DjNixBCHZ1e+1d5Zh8fOjoBd1PTH5+yBRNKgIQ6vov+dRVo+2WEsxNQfwxxPEDJMcEbE/D24Ndw3jtb8G3nV/CRt64BdcdobzZ1P/HfwGNvvgq+bfpjJG9EE+rdAI0/AAAAAAAAAAAAyOf/t2IXblO/ArwAAAAASUVORK5CYII="}] \ No newline at end of file diff --git a/js/svelte.config.js b/js/svelte.config.js deleted file mode 100644 index 2876d5ba0..000000000 --- a/js/svelte.config.js +++ /dev/null @@ -1,19 +0,0 @@ -import preprocess from "svelte-preprocess"; -import adapter from "@sveltejs/adapter-static"; - -/** @type {import('@sveltejs/kit').Config} */ -const config = { - // Consult https://github.com/sveltejs/svelte-preprocess - // for more information about preprocessors - preprocess: preprocess({ - defaults: { script: "typescript" }, - postcss: true, - }), - kit: { - // hydrate the
element in src/app.html - target: "#svelte", - adapter: adapter(), - }, -}; - -export default config; diff --git a/js/tailwind.config.cjs b/js/tailwind.config.cjs deleted file mode 100644 index 747fcfab8..000000000 --- a/js/tailwind.config.cjs +++ /dev/null @@ -1,46 +0,0 @@ -const defaultTheme = require('tailwindcss/defaultTheme'); -const colors = require('tailwindcss/colors'); - -module.exports = { - content: [ - "./src/**/*.{html,js,svelte,ts}", - ], - darkMode: 'class', - theme: { - container: { - center: true, - padding: { DEFAULT: '1rem' }, - }, - extend: { - colors: { - green: colors.emerald, - yellow: colors.amber, - purple: colors.violet, - gray: { - 350: '#b3bcc9', - // Dark blue - // 925: '#131f3d', - // 950: '#0a1226', - // Darker - 850: '#141c2e', - 925: '#101623', - 950: '#0b0f19', - // Darkest - // 925: '#081122', - // 950: '#000511', - }, - }, - gridTemplateRows: { - full: '100%', - }, - fontFamily: { - sans: ['Source Sans Pro', ...defaultTheme.fontFamily.sans], - mono: ['IBM Plex Mono', ...defaultTheme.fontFamily.mono], - }, - }, - }, - plugins: [ - require('@tailwindcss/forms'), - require('@tailwindcss/line-clamp'), - ], -}; diff --git a/js/tsconfig.json b/js/tsconfig.json deleted file mode 100644 index 025694ba3..000000000 --- a/js/tsconfig.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "compilerOptions": { - "target": "es2022", - "module": "es2022", - "outDir": "dist/", - "sourceMap": true, - "alwaysStrict": true, - "noImplicitOverride": true, - "strictFunctionTypes": true, - "strictNullChecks": true, - "strictBindCallApply": true, - "experimentalDecorators": true, - "moduleResolution": "node", - } -} diff --git a/tasks-contribution-guide.md b/tasks-contribution-guide.md deleted file mode 100644 index 7d8d6023b..000000000 --- a/tasks-contribution-guide.md +++ /dev/null @@ -1,3 +0,0 @@ -## Contributing to Tasks - -Please refer to [this page](https://github.com/huggingface/huggingface.js/blob/main/packages/tasks/README.md). \ No newline at end of file diff --git a/tasks/assets/audio-classification/audio.wav b/tasks/assets/audio-classification/audio.wav deleted file mode 100644 index 1d32c8b22..000000000 Binary files a/tasks/assets/audio-classification/audio.wav and /dev/null differ diff --git a/tasks/assets/audio-to-audio/input.wav b/tasks/assets/audio-to-audio/input.wav deleted file mode 100644 index d54c44b89..000000000 Binary files a/tasks/assets/audio-to-audio/input.wav and /dev/null differ diff --git a/tasks/assets/audio-to-audio/label-0.wav b/tasks/assets/audio-to-audio/label-0.wav deleted file mode 100644 index c1f5d8b3c..000000000 Binary files a/tasks/assets/audio-to-audio/label-0.wav and /dev/null differ diff --git a/tasks/assets/audio-to-audio/label-1.wav b/tasks/assets/audio-to-audio/label-1.wav deleted file mode 100644 index 45cf2f622..000000000 Binary files a/tasks/assets/audio-to-audio/label-1.wav and /dev/null differ diff --git a/tasks/assets/automatic-speech-recognition/input.flac b/tasks/assets/automatic-speech-recognition/input.flac deleted file mode 100644 index 837cd984f..000000000 Binary files a/tasks/assets/automatic-speech-recognition/input.flac and /dev/null differ diff --git a/tasks/assets/automatic-speech-recognition/wav2vec2.png b/tasks/assets/automatic-speech-recognition/wav2vec2.png deleted file mode 100644 index 18509daee..000000000 Binary files a/tasks/assets/automatic-speech-recognition/wav2vec2.png and /dev/null differ diff --git a/tasks/assets/contribution-guide/anatomy.png b/tasks/assets/contribution-guide/anatomy.png deleted file mode 100644 index 1fc7805e8..000000000 Binary files a/tasks/assets/contribution-guide/anatomy.png and /dev/null differ diff --git a/tasks/assets/contribution-guide/libraries.png b/tasks/assets/contribution-guide/libraries.png deleted file mode 100644 index edd918535..000000000 Binary files a/tasks/assets/contribution-guide/libraries.png and /dev/null differ diff --git a/tasks/assets/depth-estimation/depth-estimation-input.jpg b/tasks/assets/depth-estimation/depth-estimation-input.jpg deleted file mode 100644 index e131e8ecd..000000000 Binary files a/tasks/assets/depth-estimation/depth-estimation-input.jpg and /dev/null differ diff --git a/tasks/assets/depth-estimation/depth-estimation-output.png b/tasks/assets/depth-estimation/depth-estimation-output.png deleted file mode 100644 index 07c24e3ac..000000000 Binary files a/tasks/assets/depth-estimation/depth-estimation-output.png and /dev/null differ diff --git a/tasks/assets/document-question-answering/document-question-answering-input.png b/tasks/assets/document-question-answering/document-question-answering-input.png deleted file mode 100644 index eee883c95..000000000 Binary files a/tasks/assets/document-question-answering/document-question-answering-input.png and /dev/null differ diff --git a/tasks/assets/image-classification/image-classification-input.jpeg b/tasks/assets/image-classification/image-classification-input.jpeg deleted file mode 100644 index 2d981e4de..000000000 Binary files a/tasks/assets/image-classification/image-classification-input.jpeg and /dev/null differ diff --git a/tasks/assets/image-segmentation/image-segmentation-input.jpeg b/tasks/assets/image-segmentation/image-segmentation-input.jpeg deleted file mode 100644 index 2d981e4de..000000000 Binary files a/tasks/assets/image-segmentation/image-segmentation-input.jpeg and /dev/null differ diff --git a/tasks/assets/image-segmentation/image-segmentation-output.png b/tasks/assets/image-segmentation/image-segmentation-output.png deleted file mode 100644 index 71ec57b94..000000000 Binary files a/tasks/assets/image-segmentation/image-segmentation-output.png and /dev/null differ diff --git a/tasks/assets/image-to-image/image-to-image-input.jpeg b/tasks/assets/image-to-image/image-to-image-input.jpeg deleted file mode 100644 index b59d26c8d..000000000 Binary files a/tasks/assets/image-to-image/image-to-image-input.jpeg and /dev/null differ diff --git a/tasks/assets/image-to-image/image-to-image-output.png b/tasks/assets/image-to-image/image-to-image-output.png deleted file mode 100644 index aaa37f451..000000000 Binary files a/tasks/assets/image-to-image/image-to-image-output.png and /dev/null differ diff --git a/tasks/assets/image-to-image/pix2pix_examples.jpg b/tasks/assets/image-to-image/pix2pix_examples.jpg deleted file mode 100644 index b1f24d5ef..000000000 Binary files a/tasks/assets/image-to-image/pix2pix_examples.jpg and /dev/null differ diff --git a/tasks/assets/image-to-text/savanna.jpg b/tasks/assets/image-to-text/savanna.jpg deleted file mode 100644 index 05aa4513c..000000000 Binary files a/tasks/assets/image-to-text/savanna.jpg and /dev/null differ diff --git a/tasks/assets/object-detection/object-detection-input.jpg b/tasks/assets/object-detection/object-detection-input.jpg deleted file mode 100644 index 2d981e4de..000000000 Binary files a/tasks/assets/object-detection/object-detection-input.jpg and /dev/null differ diff --git a/tasks/assets/object-detection/object-detection-output.jpg b/tasks/assets/object-detection/object-detection-output.jpg deleted file mode 100644 index 7d36fd687..000000000 Binary files a/tasks/assets/object-detection/object-detection-output.jpg and /dev/null differ diff --git a/tasks/assets/table-question-answering/tableQA.jpg b/tasks/assets/table-question-answering/tableQA.jpg deleted file mode 100755 index 5e81fda2f..000000000 Binary files a/tasks/assets/table-question-answering/tableQA.jpg and /dev/null differ diff --git a/tasks/assets/text-to-image/image.jpeg b/tasks/assets/text-to-image/image.jpeg deleted file mode 100644 index c570f905d..000000000 Binary files a/tasks/assets/text-to-image/image.jpeg and /dev/null differ diff --git a/tasks/assets/text-to-speech/audio.wav b/tasks/assets/text-to-speech/audio.wav deleted file mode 100644 index 1f7f8dc5d..000000000 Binary files a/tasks/assets/text-to-speech/audio.wav and /dev/null differ diff --git a/tasks/assets/text-to-video/text-to-video-output.gif b/tasks/assets/text-to-video/text-to-video-output.gif deleted file mode 100644 index 9f1ac1d4c..000000000 Binary files a/tasks/assets/text-to-video/text-to-video-output.gif and /dev/null differ diff --git a/tasks/assets/unconditional-image-generation/unconditional-image-generation-output.jpeg b/tasks/assets/unconditional-image-generation/unconditional-image-generation-output.jpeg deleted file mode 100755 index 06cee6c4a..000000000 Binary files a/tasks/assets/unconditional-image-generation/unconditional-image-generation-output.jpeg and /dev/null differ diff --git a/tasks/assets/video-classification/video-classification-input.gif b/tasks/assets/video-classification/video-classification-input.gif deleted file mode 100644 index 83f69e53a..000000000 Binary files a/tasks/assets/video-classification/video-classification-input.gif and /dev/null differ diff --git a/tasks/assets/visual-question-answering/elephant.jpeg b/tasks/assets/visual-question-answering/elephant.jpeg deleted file mode 100644 index 8cc45cd4e..000000000 Binary files a/tasks/assets/visual-question-answering/elephant.jpeg and /dev/null differ diff --git a/tasks/assets/zero-shot-image-classification/image-classification-input.jpeg b/tasks/assets/zero-shot-image-classification/image-classification-input.jpeg deleted file mode 100644 index 2d981e4de..000000000 Binary files a/tasks/assets/zero-shot-image-classification/image-classification-input.jpeg and /dev/null differ diff --git a/tasks/src/Types.ts b/tasks/src/Types.ts deleted file mode 100644 index 4ad16b069..000000000 --- a/tasks/src/Types.ts +++ /dev/null @@ -1,58 +0,0 @@ -import type { ModelLibraryKey } from "../../js/src/lib/interfaces/Libraries"; -import type { PipelineType } from "../../js/src/lib/interfaces/Types"; - -export interface ExampleRepo { - description: string; - id: string; -} - -export type TaskDemoEntry = { - filename: string; - type: "audio"; -} | { - data: Array<{ - label: string; - score: number; - }>; - type: "chart"; -} | { - filename: string; - type: "img"; -} | { - table: string[][]; - type: "tabular"; -} | { - content: string; - label: string; - type: "text"; -} | { - text: string; - tokens: Array<{ - end: number; - start: number; - type: string; - }>; - type: "text-with-tokens"; -} ; - -export interface TaskDemo { - inputs: TaskDemoEntry[]; - outputs: TaskDemoEntry[]; -} - -export interface TaskData { - datasets: ExampleRepo[]; - demo: TaskDemo; - id: PipelineType; - isPlaceholder?: boolean; - label: string; - libraries: ModelLibraryKey[]; - metrics: ExampleRepo[]; - models: ExampleRepo[]; - spaces: ExampleRepo[]; - summary: string; - widgetModels: string[]; - youtubeId?: string; -} - -export type TaskDataCustom = Omit; diff --git a/tasks/src/audio-classification/about.md b/tasks/src/audio-classification/about.md deleted file mode 100644 index 72f84ccad..000000000 --- a/tasks/src/audio-classification/about.md +++ /dev/null @@ -1,85 +0,0 @@ -## Use Cases - -### Command Recognition - -Command recognition or keyword spotting classifies utterances into a predefined set of commands. This is often done on-device for fast response time. - -As an example, using the Google Speech Commands dataset, given an input, a model can classify which of the following commands the user is typing: - -``` -'yes', 'no', 'up', 'down', 'left', 'right', 'on', 'off', 'stop', 'go', 'unknown', 'silence' -``` - -Speechbrain models can easily perform this task with just a couple of lines of code! - -```python -from speechbrain.pretrained import EncoderClassifier -model = EncoderClassifier.from_hparams( - "speechbrain/google_speech_command_xvector" -) -model.classify_file("file.wav") -``` - -### Language Identification - -Datasets such as VoxLingua107 allow anyone to train language identification models for up to 107 languages! This can be extremely useful as a preprocessing step for other systems. Here's an example [model](https://huggingface.co/TalTechNLP/voxlingua107-epaca-tdnn)trained on VoxLingua107. - -### Emotion recognition - -Emotion recognition is self explanatory. In addition to trying the widgets, you can use the Inference API to perform audio classification. Here is a simple example that uses a [HuBERT](https://huggingface.co/superb/hubert-large-superb-er) model fine-tuned for this task. - -```python -import json -import requests - -headers = {"Authorization": f"Bearer {API_TOKEN}"} -API_URL = "https://api-inference.huggingface.co/models/superb/hubert-large-superb-er" - -def query(filename): - with open(filename, "rb") as f: - data = f.read() - response = requests.request("POST", API_URL, headers=headers, data=data) - return json.loads(response.content.decode("utf-8")) - -data = query("sample1.flac") -# [{'label': 'neu', 'score': 0.60}, -# {'label': 'hap', 'score': 0.20}, -# {'label': 'ang', 'score': 0.13}, -# {'label': 'sad', 'score': 0.07}] -``` - -You can use [huggingface.js](https://github.com/huggingface/huggingface.js) to infer with audio classification models on Hugging Face Hub. - -```javascript -import { HfInference } from "@huggingface/inference"; - -const inference = new HfInference(HF_ACCESS_TOKEN); -await inference.audioClassification({ - data: await (await fetch("sample.flac")).blob(), - model: "facebook/mms-lid-126", -}) -``` - -### Speaker Identification - -Speaker Identification is classifying the audio of the person speaking. Speakers are usually predefined. You can try out this task with [this model](https://huggingface.co/superb/wav2vec2-base-superb-sid). A useful dataset for this task is VoxCeleb1. - -## Solving audio classification for your own data - -We have some great news! You can do fine-tuning (transfer learning) to train a well-performing model without requiring as much data. Pretrained models such as Wav2Vec2 and HuBERT exist. [Facebook's Wav2Vec2 XLS-R model](https://ai.facebook.com/blog/wav2vec-20-learning-the-structure-of-speech-from-raw-audio/) is a large multilingual model trained on 128 languages and with 436K hours of speech. - -## Useful Resources - -Would you like to learn more about the topic? Awesome! Here you can find some curated resources that you may find helpful! - -### Notebooks - -- [PyTorch](https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/audio_classification.ipynb) - -### Scripts for training - -- [PyTorch](https://github.com/huggingface/transformers/tree/main/examples/pytorch/audio-classification) - -### Documentation - -- [Audio classification task guide](https://huggingface.co/docs/transformers/tasks/audio_classification) \ No newline at end of file diff --git a/tasks/src/audio-classification/data.ts b/tasks/src/audio-classification/data.ts deleted file mode 100644 index 5701abd34..000000000 --- a/tasks/src/audio-classification/data.ts +++ /dev/null @@ -1,77 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "A benchmark of 10 different audio tasks.", - id: "superb", - }, - ], - demo: { - inputs: [ - { - filename: "audio.wav", - type: "audio", - }, - ], - outputs: [ - { - data: [ - { - label: "Up", - score: 0.2, - }, - { - label: "Down", - score: 0.8, - }, - ], - type: "chart", - }, - ], - }, - metrics: [ - { - description: "", - id: "accuracy", - }, - { - description: "", - id: "recall", - }, - { - description: "", - id: "precision", - }, - { - description: "", - id: "f1", - }, - ], - models: [ - { - description: "An easy-to-use model for Command Recognition.", - id: "speechbrain/google_speech_command_xvector", - }, - { - description: "An Emotion Recognition model.", - id: "ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition", - }, - { - description: "A language identification model.", - id: "facebook/mms-lid-126", - }, - ], - spaces: [ - { - description: "An application that can predict the language spoken in a given audio.", - id: "akhaliq/Speechbrain-audio-classification", - }, - ], - summary: - "Audio classification is the task of assigning a label or class to a given audio. It can be used for recognizing which command a user is giving or the emotion of a statement, as well as identifying a speaker.", - widgetModels: ["facebook/mms-lid-126"], - youtubeId: "KWwzcmG98Ds", -}; - -export default taskData; diff --git a/tasks/src/audio-to-audio/about.md b/tasks/src/audio-to-audio/about.md deleted file mode 100644 index 2365efbe4..000000000 --- a/tasks/src/audio-to-audio/about.md +++ /dev/null @@ -1,55 +0,0 @@ -## Use Cases - -### Speech Enhancement (Noise removal) - -Speech Enhancement is a bit self explanatory. It improves (or enhances) the quality of an audio by removing noise. There are multiple libraries to solve this task, such as Speechbrain, Asteroid and ESPNet. Here is a simple example using Speechbrain - -```python -from speechbrain.pretrained import SpectralMaskEnhancement -model = SpectralMaskEnhancement.from_hparams( - "speechbrain/mtl-mimic-voicebank" -) -model.enhance_file("file.wav") -``` - -Alternatively, you can use the [Inference API](https://huggingface.co/inference-api) to solve this task - -```python -import json -import requests - -headers = {"Authorization": f"Bearer {API_TOKEN}"} -API_URL = "https://api-inference.huggingface.co/models/speechbrain/mtl-mimic-voicebank" - -def query(filename): - with open(filename, "rb") as f: - data = f.read() - response = requests.request("POST", API_URL, headers=headers, data=data) - return json.loads(response.content.decode("utf-8")) - -data = query("sample1.flac") -``` -You can use [huggingface.js](https://github.com/huggingface/huggingface.js) to infer with audio-to-audio models on Hugging Face Hub. - -```javascript -import { HfInference } from "@huggingface/inference"; - -const inference = new HfInference(HF_ACCESS_TOKEN); -await inference.audioToAudio({ - data: await (await fetch("sample.flac")).blob(), - model: "speechbrain/sepformer-wham", -}) -``` - -### Audio Source Separation - -Audio Source Separation allows you to isolate different sounds from individual sources. For example, if you have an audio file with multiple people speaking, you can get an audio file for each of them. You can then use an Automatic Speech Recognition system to extract the text from each of these sources as an initial step for your system! - -Audio-to-Audio can also be used to remove noise from audio files: you get one audio for the person speaking and another audio for the noise. This can also be useful when you have multi-person audio with some noise: yyou can get one audio for each person and then one audio for the noise. - -## Training a model for your own data - -If you want to learn how to train models for the Audio-to-Audio task, we recommend the following tutorials: - -- [Speech Enhancement](https://speechbrain.github.io/tutorial_enhancement.html) -- [Source Separation](https://speechbrain.github.io/tutorial_separation.html) diff --git a/tasks/src/audio-to-audio/data.ts b/tasks/src/audio-to-audio/data.ts deleted file mode 100644 index d74bae33b..000000000 --- a/tasks/src/audio-to-audio/data.ts +++ /dev/null @@ -1,63 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "512-element X-vector embeddings of speakers from CMU ARCTIC dataset.", - id: "Matthijs/cmu-arctic-xvectors", - }, - ], - demo: { - inputs: [ - { - filename: "input.wav", - type: "audio", - }, - ], - outputs: [ - { - filename: "label-0.wav", - type: "audio", - }, - { - filename: "label-1.wav", - type: "audio", - }, - ], - }, - metrics: [ - { - description: "The Signal-to-Noise ratio is the relationship between the target signal level and the background noise level. It is calculated as the logarithm of the target signal divided by the background noise, in decibels.", - id: "snri", - }, - { - description: "The Signal-to-Distortion ratio is the relationship between the target signal and the sum of noise, interference, and artifact errors", - id: "sdri", - }, - ], - models: [ - { - description: "A solid model of audio source separation.", - id: "speechbrain/sepformer-wham", - }, - { - description: "A speech enhancement model.", - id: "speechbrain/metricgan-plus-voicebank", - }, - ], - spaces: [ - { - description: "An application for speech separation.", - id: "younver/speechbrain-speech-separation", - }, - { - description: "An application for audio style transfer.", - id: "nakas/audio-diffusion_style_transfer", - }, - ], - summary: "Audio-to-Audio is a family of tasks in which the input is an audio and the output is one or multiple generated audios. Some example tasks are speech enhancement and source separation.", - widgetModels: ["speechbrain/sepformer-wham"], - youtubeId: "iohj7nCCYoM", -}; - -export default taskData; diff --git a/tasks/src/automatic-speech-recognition/about.md b/tasks/src/automatic-speech-recognition/about.md deleted file mode 100644 index fd7bb1d0b..000000000 --- a/tasks/src/automatic-speech-recognition/about.md +++ /dev/null @@ -1,86 +0,0 @@ -## Use Cases - -### Virtual Speech Assistants - -Many edge devices have an embedded virtual assistant to interact with the end users better. These assistances rely on ASR models to recognize different voice commands to perform various tasks. For instance, you can ask your phone for dialing a phone number, ask a general question, or schedule a meeting. - -### Caption Generation - -A caption generation model takes audio as input from sources to generate automatic captions through transcription, for live-streamed or recorded videos. This can help with content accessibility. For example, an audience watching a video that includes a non-native language, can rely on captions to interpret the content. It can also help with information retention at online-classes environments improving knowledge assimilation while reading and taking notes faster. - -## Task Variants - -### Multilingual ASR - -Multilingual ASR models can convert audio inputs with multiple languages into transcripts. Some multilingual ASR models include [language identification](https://huggingface.co/tasks/audio-classification) blocks to improve the performance. - -The use of Multilingual ASR has become popular, the idea of maintaining just a single model for all language can simplify the production pipeline. Take a look at [Whisper](https://huggingface.co/openai/whisper-large-v2) to get an idea on how 100+ languages can be processed by a single model. - -## Inference - -The Hub contains over [~9,000 ASR models](https://huggingface.co/models?pipeline_tag=automatic-speech-recognition&sort=downloads) that you can use right away by trying out the widgets directly in the browser or calling the models as a service using the Inference API. Here is a simple code snippet to do exactly this: - -```python -import json -import requests - -headers = {"Authorization": f"Bearer {API_TOKEN}"} -API_URL = "https://api-inference.huggingface.co/models/openai/whisper-large-v2" - -def query(filename): - with open(filename, "rb") as f: - data = f.read() - response = requests.request("POST", API_URL, headers=headers, data=data) - return json.loads(response.content.decode("utf-8")) - -data = query("sample1.flac") -``` - -You can also use libraries such as [transformers](https://huggingface.co/models?library=transformers&pipeline_tag=automatic-speech-recognition&sort=downloads), [speechbrain](https://huggingface.co/models?library=speechbrain&pipeline_tag=automatic-speech-recognition&sort=downloads), [NeMo](https://huggingface.co/models?pipeline_tag=automatic-speech-recognition&library=nemo&sort=downloads) and [espnet](https://huggingface.co/models?library=espnet&pipeline_tag=automatic-speech-recognition&sort=downloads) if you want one-click managed Inference without any hassle. - -```python -from transformers import pipeline - -with open("sample.flac", "rb") as f: - data = f.read() - -pipe = pipeline("automatic-speech-recognition", "openai/whisper-large-v2") -pipe("sample.flac") -# {'text': "GOING ALONG SLUSHY COUNTRY ROADS AND SPEAKING TO DAMP AUDIENCES IN DRAUGHTY SCHOOL ROOMS DAY AFTER DAY FOR A FORTNIGHT HE'LL HAVE TO PUT IN AN APPEARANCE AT SOME PLACE OF WORSHIP ON SUNDAY MORNING AND HE CAN COME TO US IMMEDIATELY AFTERWARDS"} -``` - -You can use [huggingface.js](https://github.com/huggingface/huggingface.js) to transcribe text with javascript using models on Hugging Face Hub. - -```javascript -import { HfInference } from "@huggingface/inference"; - -const inference = new HfInference(HF_ACCESS_TOKEN); -await inference.automaticSpeechRecognition({ - data: await (await fetch("sample.flac")).blob(), - model: "openai/whisper-large-v2", -}) -``` - -## Solving ASR for your own data - -We have some great news! You can fine-tune (transfer learning) a foundational speech model on a specific language without tonnes of data. Pretrained models such as Whisper, Wav2Vec2-MMS and HuBERT exist. [OpenAI's Whisper model](https://huggingface.co/openai/whisper-large-v2) is a large multilingual model trained on 100+ languages and with 680K hours of speech. - -The following detailed [blog post](https://huggingface.co/blog/fine-tune-whisper) shows how to fine-tune a pre-trained Whisper checkpoint on labeled data for ASR. With the right data and strategy you can fine-tune a high-performant model on a free Google Colab instance too. We suggest to read the blog post for more info! - -## Hugging Face Whisper Event - -On December 2022, over 450 participants collaborated, fine-tuned and shared 600+ ASR Whisper models in 100+ different languages. You can compare these models on the event's speech recognition [leaderboard](https://huggingface.co/spaces/whisper-event/leaderboard?dataset=mozilla-foundation%2Fcommon_voice_11_0&config=ar&split=test). - -These events help democratize ASR for all languages, including low-resource languages. In addition to the trained models, the [event](https://github.com/huggingface/community-events/tree/main/whisper-fine-tuning-event) helps to build practical collaborative knowledge. - -## Useful Resources -- [Fine-tuning MetaAI's MMS Adapter Models for Multi-Lingual ASR](https://huggingface.co/blog/mms_adapters) -- [Making automatic speech recognition work on large files with Wav2Vec2 in 🤗 Transformers](https://huggingface.co/blog/asr-chunking) -- [Boosting Wav2Vec2 with n-grams in 🤗 Transformers](https://huggingface.co/blog/wav2vec2-with-ngram) -- [ML for Audio Study Group - Intro to Audio and ASR Deep Dive](https://www.youtube.com/watch?v=D-MH6YjuIlE) -- [Massively Multilingual ASR: 50 Languages, 1 Model, 1 Billion Parameters](https://arxiv.org/pdf/2007.03001.pdf) -- An ASR toolkit made by [NVIDIA: NeMo](https://github.com/NVIDIA/NeMo) with code and pretrained models useful for new ASR models. Watch the [introductory video](https://www.youtube.com/embed/wBgpMf_KQVw) for an overview. -- [An introduction to SpeechT5, a multi-purpose speech recognition and synthesis model](https://huggingface.co/blog/speecht5) -- [A guide on Fine-tuning Whisper For Multilingual ASR with 🤗Transformers](https://huggingface.co/blog/fine-tune-whisper) -- [Automatic speech recognition task guide](https://huggingface.co/docs/transformers/tasks/asr) -- [Speech Synthesis, Recognition, and More With SpeechT5](https://huggingface.co/blog/speecht5) diff --git a/tasks/src/automatic-speech-recognition/data.ts b/tasks/src/automatic-speech-recognition/data.ts deleted file mode 100644 index 061018241..000000000 --- a/tasks/src/automatic-speech-recognition/data.ts +++ /dev/null @@ -1,77 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "18,000 hours of multilingual audio-text dataset in 108 languages.", - id: "mozilla-foundation/common_voice_13_0", - }, - { - description: "An English dataset with 1,000 hours of data.", - id: "librispeech_asr", - }, - { - description: "High quality, multi-speaker audio data and their transcriptions in various languages.", - id: "openslr", - }, - ], - demo: { - inputs: [ - { - filename: "input.flac", - type: "audio", - }, - ], - outputs: [ - { - /// GOING ALONG SLUSHY COUNTRY ROADS AND SPEAKING TO DAMP AUDIENCES I - label: "Transcript", - content: "Going along slushy country roads and speaking to damp audiences in...", - type: "text", - }, - ], - }, - metrics: [ - { - description: "", - id: "wer", - }, - { - description: "", - id: "cer", - }, - ], - models: [ - { - description: "A powerful ASR model by OpenAI.", - id: "openai/whisper-large-v2", - }, - { - description: "A good generic ASR model by MetaAI.", - id: "facebook/wav2vec2-base-960h", - }, - { - description: "An end-to-end model that performs ASR and Speech Translation by MetaAI.", - id: "facebook/s2t-small-mustc-en-fr-st", - }, - ], - spaces: [ - { - description: "A powerful general-purpose speech recognition application.", - id: "openai/whisper", - }, - { - description: "Fastest speech recognition application.", - id: "sanchit-gandhi/whisper-jax", - }, - { - description: "An application that transcribes speeches in YouTube videos.", - id: "jeffistyping/Youtube-Whisperer", - }, - ], - summary: "Automatic Speech Recognition (ASR), also known as Speech to Text (STT), is the task of transcribing a given audio to text. It has many applications, such as voice user interfaces.", - widgetModels: ["openai/whisper-large-v2"], - youtubeId: "TksaY_FDgnk", -}; - -export default taskData; diff --git a/tasks/src/const.ts b/tasks/src/const.ts deleted file mode 100644 index 283f7544d..000000000 --- a/tasks/src/const.ts +++ /dev/null @@ -1,51 +0,0 @@ -import type { ModelLibraryKey } from "../../js/src/lib/interfaces/Libraries"; -import type { PipelineType } from "../../js/src/lib/interfaces/Types"; - -/* - * Model libraries compatible with each ML task - */ -export const TASKS_MODEL_LIBRARIES: Record = { - "audio-classification": ["speechbrain", "transformers"], - "audio-to-audio": ["asteroid", "speechbrain"], - "automatic-speech-recognition": ["espnet", "nemo", "speechbrain", "transformers", "transformers.js"], - "conversational": ["transformers"], - "depth-estimation": ["transformers"], - "document-question-answering": ["transformers"], - "feature-extraction": ["sentence-transformers", "transformers", "transformers.js"], - "fill-mask": ["transformers", "transformers.js"], - "graph-ml": ["transformers"], - "image-classification": ["keras", "timm", "transformers", "transformers.js"], - "image-segmentation": ["transformers", "transformers.js"], - "image-to-image": [], - "image-to-text": ["transformers.js"], - "video-classification": [], - "multiple-choice": ["transformers"], - "object-detection": ["transformers", "transformers.js"], - "other": [], - "question-answering": ["adapter-transformers", "allennlp", "transformers", "transformers.js"], - "robotics": [], - "reinforcement-learning": ["transformers", "stable-baselines3", "ml-agents", "sample-factory"], - "sentence-similarity": ["sentence-transformers", "spacy", "transformers.js"], - "summarization": ["transformers", "transformers.js"], - "table-question-answering": ["transformers"], - "table-to-text": ["transformers"], - "tabular-classification": ["sklearn"], - "tabular-regression": ["sklearn"], - "tabular-to-text": ["transformers"], - "text-classification": ["adapter-transformers", "spacy", "transformers", "transformers.js"], - "text-generation": ["transformers", "transformers.js"], - "text-retrieval": [], - "text-to-image": [], - "text-to-speech": ["espnet", "tensorflowtts", "transformers"], - "text-to-audio": ["transformers"], - "text-to-video": [], - "text2text-generation": ["transformers", "transformers.js"], - "time-series-forecasting": [], - "token-classification": ["adapter-transformers", "flair", "spacy", "span-marker", "stanza", "transformers", "transformers.js"], - "translation": ["transformers", "transformers.js"], - "unconditional-image-generation": [], - "visual-question-answering": [], - "voice-activity-detection": [], - "zero-shot-classification": ["transformers", "transformers.js"], - "zero-shot-image-classification": ["transformers.js"], -}; diff --git a/tasks/src/conversational/about.md b/tasks/src/conversational/about.md deleted file mode 100644 index 840be0b10..000000000 --- a/tasks/src/conversational/about.md +++ /dev/null @@ -1,50 +0,0 @@ -## Use Cases - -### Chatbot 💬 - -Chatbots are used to have conversations instead of providing direct contact with a live human. They are used to provide customer service, sales, and can even be used to play games (see [ELIZA](https://en.wikipedia.org/wiki/ELIZA) from 1966 for one of the earliest examples). - -## Voice Assistants 🎙️ - -Conversational response models are used as part of voice assistants to provide appropriate responses to voice based queries. - -## Inference - -You can infer with Conversational models with the 🤗 Transformers library using the `conversational` pipeline. This pipeline takes a conversation prompt or a list of conversations and generates responses for each prompt. The models that this pipeline can use are models that have been fine-tuned on a multi-turn conversational task (see https://huggingface.co/models?filter=conversational for a list of updated Conversational models). - -```python -from transformers import pipeline, Conversation -converse = pipeline("conversational") - -conversation_1 = Conversation("Going to the movies tonight - any suggestions?") -conversation_2 = Conversation("What's the last book you have read?") -converse([conversation_1, conversation_2]) - -## Output: -## Conversation 1 -## user >> Going to the movies tonight - any suggestions? -## bot >> The Big Lebowski , -## Conversation 2 -## user >> What's the last book you have read? -## bot >> The Last Question -``` - -You can use [huggingface.js](https://github.com/huggingface/huggingface.js) to infer with conversational models on Hugging Face Hub. - -```javascript -import { HfInference } from "@huggingface/inference"; - -const inference = new HfInference(HF_ACCESS_TOKEN); -await inference.conversational({ - model: 'facebook/blenderbot-400M-distill', - inputs: "Going to the movies tonight - any suggestions?" -}) -``` - -## Useful Resources - -- Learn how ChatGPT and InstructGPT work in this blog: [Illustrating Reinforcement Learning from Human Feedback (RLHF)](https://huggingface.co/blog/rlhf) -- [Reinforcement Learning from Human Feedback From Zero to ChatGPT](https://www.youtube.com/watch?v=EAd4oQtEJOM) -- [A guide on Dialog Agents](https://huggingface.co/blog/dialog-agents) - -This page was made possible thanks to the efforts of [Viraat Aryabumi](https://huggingface.co/viraat). \ No newline at end of file diff --git a/tasks/src/conversational/data.ts b/tasks/src/conversational/data.ts deleted file mode 100644 index 8cf90889a..000000000 --- a/tasks/src/conversational/data.ts +++ /dev/null @@ -1,62 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "A dataset of 7k conversations explicitly designed to exhibit multiple conversation modes: displaying personality, having empathy, and demonstrating knowledge.", - id: "blended_skill_talk", - }, - { - description: "ConvAI is a dataset of human-to-bot conversations labeled for quality. This data can be used to train a metric for evaluating dialogue systems", - id: "conv_ai_2", - }, - { - description: "EmpatheticDialogues, is a dataset of 25k conversations grounded in emotional situations", - id: "empathetic_dialogues", - }, - ], - demo: { - inputs: [ - { - label: "Input", - content: "Hey my name is Julien! How are you?", - type: "text", - }, - - ], - outputs: [ - { - label: "Answer", - content: "Hi Julien! My name is Julia! I am well.", - type: "text", - }, - ], - }, - metrics: [ - { - description: "BLEU score is calculated by counting the number of shared single or subsequent tokens between the generated sequence and the reference. Subsequent n tokens are called “n-grams”. Unigram refers to a single token while bi-gram refers to token pairs and n-grams refer to n subsequent tokens. The score ranges from 0 to 1, where 1 means the translation perfectly matched and 0 did not match at all", - id: "bleu", - }, - ], - models: [ - { - description: "A faster and smaller model than the famous BERT model.", - id: "facebook/blenderbot-400M-distill", - }, - { - description: "DialoGPT is a large-scale pretrained dialogue response generation model for multiturn conversations.", - id: "microsoft/DialoGPT-large", - }, - ], - spaces: [ - { - description: "A chatbot based on Blender model.", - id: "EXFINITE/BlenderBot-UI", - }, - ], - summary: "Conversational response modelling is the task of generating conversational text that is relevant, coherent and knowledgable given a prompt. These models have applications in chatbots, and as a part of voice assistants", - widgetModels: ["facebook/blenderbot-400M-distill"], - youtubeId: "", -}; - -export default taskData; diff --git a/tasks/src/depth-estimation/about.md b/tasks/src/depth-estimation/about.md deleted file mode 100644 index c8689a54e..000000000 --- a/tasks/src/depth-estimation/about.md +++ /dev/null @@ -1,38 +0,0 @@ -## Use Cases -Depth estimation models can be used to estimate the depth of different objects present in an image. - -### Estimation of Volumetric Information -Depth estimation models are widely used to study volumetric formation of objects present inside an image. This is an important use case in the domain of computer graphics. - -### 3D Representation - -Depth estimation models can also be used to develop a 3D representation from a 2D image. - -## Inference - -With the `transformers` library, you can use the `depth-estimation` pipeline to infer with image classification models. You can initialize the pipeline with a model id from the Hub. If you do not provide a model id it will initialize with [Intel/dpt-large](https://huggingface.co/Intel/dpt-large) by default. When calling the pipeline you just need to specify a path, http link or an image loaded in PIL. Additionally, you can find a comprehensive list of various depth estimation models at [this link](https://huggingface.co/models?pipeline_tag=depth-estimation). - -```python -from transformers import pipeline - -estimator = pipeline(task="depth-estimation", model="Intel/dpt-large") -result = estimator(images="http://images.cocodataset.org/val2017/000000039769.jpg") -result - -# {'predicted_depth': tensor([[[ 6.3199, 6.3629, 6.4148, ..., 10.4104, 10.5109, 10.3847], -# [ 6.3850, 6.3615, 6.4166, ..., 10.4540, 10.4384, 10.4554], -# [ 6.3519, 6.3176, 6.3575, ..., 10.4247, 10.4618, 10.4257], -# ..., -# [22.3772, 22.4624, 22.4227, ..., 22.5207, 22.5593, 22.5293], -# [22.5073, 22.5148, 22.5114, ..., 22.6604, 22.6344, 22.5871], -# [22.5176, 22.5275, 22.5218, ..., 22.6282, 22.6216, 22.6108]]]), -# 'depth': } - -# You can visualize the result just by calling `result["depth"]`. -``` - - -## Useful Resources - -- [Monocular depth estimation task guide](https://huggingface.co/docs/transformers/tasks/monocular_depth_estimation) - diff --git a/tasks/src/depth-estimation/data.ts b/tasks/src/depth-estimation/data.ts deleted file mode 100644 index caeb3ea98..000000000 --- a/tasks/src/depth-estimation/data.ts +++ /dev/null @@ -1,52 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "NYU Depth V2 Dataset: Video dataset containing both RGB and depth sensor data", - id: "sayakpaul/nyu_depth_v2", - }, - ], - demo: { - inputs: [ - { - filename: "depth-estimation-input.jpg", - type: "img", - }, - ], - outputs: [ - { - filename: "depth-estimation-output.png", - type: "img", - }, - ], - }, - metrics: [], - models: [ - { - // TO DO: write description - description: "Strong Depth Estimation model trained on 1.4 million images.", - id: "Intel/dpt-large", - }, - { - // TO DO: write description - description: "Strong Depth Estimation model trained on the KITTI dataset.", - id: "vinvino02/glpn-kitti", - }, - ], - spaces: [ - { - description: "An application that predicts the depth of an image and then reconstruct the 3D model as voxels.", - id: "radames/dpt-depth-estimation-3d-voxels", - }, - { - description: "An application that can estimate the depth in a given image.", - id: "keras-io/Monocular-Depth-Estimation", - }, - ], - summary: "Depth estimation is the task of predicting depth of the objects present in an image.", - widgetModels: [""], - youtubeId: "", -}; - -export default taskData; diff --git a/tasks/src/document-question-answering/about.md b/tasks/src/document-question-answering/about.md deleted file mode 100644 index 09607187f..000000000 --- a/tasks/src/document-question-answering/about.md +++ /dev/null @@ -1,54 +0,0 @@ -## Use Cases - -Document Question Answering models can be used to answer natural language questions about documents. Typically, document QA models consider textual, layout and potentially visual information. This is useful when the question requires some understanding of the visual aspects of the document. -Nevertheless, certain document QA models can work without document images. Hence the task is not limited to visually-rich documents and allows users to ask questions based on spreadsheets, text PDFs, etc! - -### Document Parsing - -One of the most popular use cases of document question answering models is the parsing of structured documents. For example, you can extract the name, address, and other information from a form. You can also use the model to extract information from a table, or even a resume. - -### Invoice Information Extraction - -Another very popular use case is invoice information extraction. For example, you can extract the invoice number, the invoice date, the total amount, the VAT number, and the invoice recipient. - -## Inference - -You can infer with Document QA models with the 🤗 Transformers library using the [`document-question-answering` pipeline](https://huggingface.co/docs/transformers/en/main_classes/pipelines#transformers.DocumentQuestionAnsweringPipeline). If no model checkpoint is given, the pipeline will be initialized with [`impira/layoutlm-document-qa`](https://huggingface.co/impira/layoutlm-document-qa). This pipeline takes question(s) and document(s) as input, and returns the answer. -👉 Note that the question answering task solved here is extractive: the model extracts the answer from a context (the document). - - -```python -from transformers import pipeline -from PIL import Image - -pipe = pipeline("document-question-answering", model="naver-clova-ix/donut-base-finetuned-docvqa") - -question = "What is the purchase amount?" -image = Image.open("your-document.png") - -pipe(image=image, question=question) - -## [{'answer': '20,000$'}] -``` - -## Useful Resources - -Would you like to learn more about Document QA? Awesome! Here are some curated resources that you may find helpful! - -- [Document Visual Question Answering (DocVQA) challenge](https://rrc.cvc.uab.es/?ch=17) -- [DocVQA: A Dataset for Document Visual Question Answering](https://arxiv.org/abs/2007.00398) (Dataset paper) -- [ICDAR 2021 Competition on Document Visual Question Answering](https://lilianweng.github.io/lil-log/2020/10/29/open-domain-question-answering.html) (Conference paper) -- [HuggingFace's Document Question Answering pipeline](https://huggingface.co/docs/transformers/en/main_classes/pipelines#transformers.DocumentQuestionAnsweringPipeline) -- [Github repo: DocQuery - Document Query Engine Powered by Large Language Models](https://github.com/impira/docquery) - -### Notebooks - -- [Fine-tuning Donut on DocVQA dataset](https://github.com/NielsRogge/Transformers-Tutorials/tree/0ea77f29d01217587d7e32a848f3691d9c15d6ab/Donut/DocVQA) -- [Fine-tuning LayoutLMv2 on DocVQA dataset](https://github.com/NielsRogge/Transformers-Tutorials/tree/1b4bad710c41017d07a8f63b46a12523bfd2e835/LayoutLMv2/DocVQA) -- [Accelerating Document AI](https://huggingface.co/blog/document-ai) - -### Documentation - -- [Document question answering task guide](https://huggingface.co/docs/transformers/tasks/document_question_answering) - -The contents of this page are contributed by [Eliott Zemour](https://huggingface.co/eliolio) and reviewed by [Kwadwo Agyapon-Ntra](https://huggingface.co/KayO) and [Ankur Goyal](https://huggingface.co/ankrgyl). \ No newline at end of file diff --git a/tasks/src/document-question-answering/data.ts b/tasks/src/document-question-answering/data.ts deleted file mode 100644 index f3eef05a5..000000000 --- a/tasks/src/document-question-answering/data.ts +++ /dev/null @@ -1,67 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - // TODO write proper description - description: "Dataset from the 2020 DocVQA challenge. The documents are taken from the UCSF Industry Documents Library.", - id: "eliolio/docvqa", - }, - ], - demo: { - inputs: [ - { - label: "Question", - content: "What is the idea behind the consumer relations efficiency team?", - type: "text", - }, - { - filename: "document-question-answering-input.png", - type: "img", - }, - ], - outputs: [ - { - label: "Answer", - content: "Balance cost efficiency with quality customer service", - type: "text", - }, - ], - }, - metrics: [ - { - description: "The evaluation metric for the DocVQA challenge is the Average Normalized Levenshtein Similarity (ANLS). This metric is flexible to character regognition errors and compares the predicted answer with the ground truth answer.", - id: "anls", - }, - { - description: "Exact Match is a metric based on the strict character match of the predicted answer and the right answer. For answers predicted correctly, the Exact Match will be 1. Even if only one character is different, Exact Match will be 0", - id: "exact-match", - }, - ], - models: [ - { - description: "A LayoutLM model for the document QA task, fine-tuned on DocVQA and SQuAD2.0.", - id: "impira/layoutlm-document-qa", - }, - { - description: "A special model for OCR-free Document QA task. Donut model fine-tuned on DocVQA.", - id: "naver-clova-ix/donut-base-finetuned-docvqa", - }, - ], - spaces: [ - { - description: "A robust document question answering application.", - id: "impira/docquery", - }, - { - description: "An application that can answer questions from invoices.", - id: "impira/invoices", - }, - ], - summary: "Document Question Answering (also known as Document Visual Question Answering) is the task of answering questions on document images. Document question answering models take a (document, question) pair as input and return an answer in natural language. Models usually rely on multi-modal features, combining text, position of words (bounding-boxes) and image.", - widgetModels: ["impira/layoutlm-document-qa"], - youtubeId: "", -}; - - -export default taskData; diff --git a/tasks/src/feature-extraction/about.md b/tasks/src/feature-extraction/about.md deleted file mode 100644 index d8817b86d..000000000 --- a/tasks/src/feature-extraction/about.md +++ /dev/null @@ -1,35 +0,0 @@ -## About the Task - -Feature extraction is the task of building features intended to be informative from a given dataset, -facilitating the subsequent learning and generalization steps in various domains of machine learning. - -## Use Cases -Feature extraction can be used to do transfer learning in natural language processing, computer vision and audio models. - -## Inference - -#### Feature Extraction - -```python -from transformers import pipeline -checkpoint = "facebook/bart-base" -feature_extractor = pipeline("feature-extraction",framework="pt",model=checkpoint) -text = "Transformers is an awesome library!" - -#Reducing along the first dimension to get a 768 dimensional array -feature_extractor(text,return_tensors = "pt")[0].numpy().mean(axis=0) - -'''tensor([[[ 2.5834, 2.7571, 0.9024, ..., 1.5036, -0.0435, -0.8603], - [-1.2850, -1.0094, -2.0826, ..., 1.5993, -0.9017, 0.6426], - [ 0.9082, 0.3896, -0.6843, ..., 0.7061, 0.6517, 1.0550], - ..., - [ 0.6919, -1.1946, 0.2438, ..., 1.3646, -1.8661, -0.1642], - [-0.1701, -2.0019, -0.4223, ..., 0.3680, -1.9704, -0.0068], - [ 0.2520, -0.6869, -1.0582, ..., 0.5198, -2.2106, 0.4547]]])''' -``` - -## Useful resources - -- [Documentation for feature extractor of 🤗Transformers](https://huggingface.co/docs/transformers/main_classes/feature_extractor) - - diff --git a/tasks/src/feature-extraction/data.ts b/tasks/src/feature-extraction/data.ts deleted file mode 100644 index 0f8ae8c53..000000000 --- a/tasks/src/feature-extraction/data.ts +++ /dev/null @@ -1,57 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "Wikipedia dataset containing cleaned articles of all languages. Can be used to train `feature-extraction` models.", - id:"wikipedia", - }, - ], - demo: { - inputs: [ - { - label: "Input", - content: - "India, officially the Republic of India, is a country in South Asia.", - type: "text", - }, - - ], - outputs: [ - { - table: [ - ["Dimension 1", "Dimension 2", "Dimension 3"], - ["2.583383083343506", "2.757075071334839", "0.9023529887199402"], - ["8.29393482208252", "1.1071064472198486", "2.03399395942688"], - ["-0.7754912972450256", "-1.647324562072754", "-0.6113331913948059"], - ["0.07087723910808563", "1.5942802429199219", "1.4610432386398315"], - - ], - type: "tabular", - }, - ], - }, - metrics: [ - { - description: "", - id: "", - }, - ], - models: [ - { - description: "A powerful feature extraction model for natural language processing tasks.", - id: "facebook/bart-base", - }, - { - description: "A strong feature extraction model for coding tasks.", - id: "microsoft/codebert-base", - }, - ], - spaces: [ - - ], - summary: "Feature extraction refers to the process of transforming raw data into numerical features that can be processed while preserving the information in the original dataset.", - widgetModels: ["facebook/bart-base"], -}; - -export default taskData; diff --git a/tasks/src/fill-mask/about.md b/tasks/src/fill-mask/about.md deleted file mode 100644 index c31538696..000000000 --- a/tasks/src/fill-mask/about.md +++ /dev/null @@ -1,51 +0,0 @@ -## Use Cases - -### Domain Adaptation 👩‍⚕️ - -Masked language models do not require labelled data! They are trained by masking a couple of words in sentences and the model is expected to guess the masked word. This makes it very practical! - -For example, masked language modeling is used to train large models for domain-specific problems. If you have to work on a domain-specific task, such as retrieving information from medical research papers, you can train a masked language model using those papers. 📄 - -The resulting model has a statistical understanding of the language used in medical research papers, and can be further trained in a process called fine-tuning to solve different tasks, such as [Text Classification](/tasks/text-classification) or [Question Answering](/tasks/question-answering) to build a medical research papers information extraction system. 👩‍⚕️ Pre-training on domain-specific data tends to yield better results (see [this paper](https://arxiv.org/abs/2007.15779) for an example). - -If you don't have the data to train a masked language model, you can also use an existing [domain-specific masked language model](https://huggingface.co/microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract-fulltext) from the Hub and fine-tune it with your smaller task dataset. That's the magic of Open Source and sharing your work! 🎉 - -## Inference with Fill-Mask Pipeline - -You can use the 🤗 Transformers library `fill-mask` pipeline to do inference with masked language models. If a model name is not provided, the pipeline will be initialized with [distilroberta-base](/distilroberta-base). You can provide masked text and it will return a list of possible mask values ​​ranked according to the score. - -```python -from transformers import pipeline - -classifier = pipeline("fill-mask") -classifier("Paris is the of France.") - -# [{'score': 0.7, 'sequence': 'Paris is the capital of France.'}, -# {'score': 0.2, 'sequence': 'Paris is the birthplace of France.'}, -# {'score': 0.1, 'sequence': 'Paris is the heart of France.'}] -``` - -## Useful Resources - -Would you like to learn more about the topic? Awesome! Here you can find some curated resources that can be helpful to you! - -- [Course Chapter on Fine-tuning a Masked Language Model](https://huggingface.co/course/chapter7/3?fw=pt) -- [Workshop on Pretraining Language Models and CodeParrot](https://www.youtube.com/watch?v=ExUR7w6xe94) -- [BERT 101: State Of The Art NLP Model Explained](https://huggingface.co/blog/bert-101) -- [Nyströmformer: Approximating self-attention in linear time and memory via the Nyström method](https://huggingface.co/blog/nystromformer) - -### Notebooks - -- [Pre-training an MLM for JAX/Flax](https://github.com/huggingface/notebooks/blob/master/examples/masked_language_modeling_flax.ipynb) -- [Masked language modeling in TensorFlow](https://github.com/huggingface/notebooks/blob/master/examples/language_modeling-tf.ipynb) -- [Masked language modeling in PyTorch](https://github.com/huggingface/notebooks/blob/master/examples/language_modeling.ipynb) - -### Scripts for training - -- [PyTorch](https://github.com/huggingface/transformers/tree/main/examples/pytorch/language-modeling) -- [Flax](https://github.com/huggingface/transformers/tree/main/examples/flax/language-modeling) -- [TensorFlow](https://github.com/huggingface/transformers/tree/main/examples/tensorflow/language-modeling) - -### Documentation - -- [Masked language modeling task guide](https://huggingface.co/docs/transformers/tasks/masked_language_modeling) \ No newline at end of file diff --git a/tasks/src/fill-mask/data.ts b/tasks/src/fill-mask/data.ts deleted file mode 100644 index 52aeadc65..000000000 --- a/tasks/src/fill-mask/data.ts +++ /dev/null @@ -1,77 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "A common dataset that is used to train models for many languages.", - id: "wikipedia", - }, - { - description: "A large English dataset with text crawled from the web.", - id: "c4", - }, - ], - demo: { - inputs: [ - { - label: "Input", - content: "The barked at me", - type: "text", - }, - - ], - outputs: [ - { - type: "chart", - data: [ - { - label: "wolf", - score: 0.487, - }, - { - label: "dog", - score: 0.061, - }, - { - label: "cat", - score: 0.058, - }, - { - label: "fox", - score: 0.047, - }, - { - label: "squirrel", - score: 0.025, - }, - ], - }, - ], - }, - metrics: [ - { - description: "Cross Entropy is a metric that calculates the difference between two probability distributions. Each probability distribution is the distribution of predicted words", - id: "cross_entropy", - }, - { - description: "Perplexity is the exponential of the cross-entropy loss. It evaluates the probabilities assigned to the next word by the model. Lower perplexity indicates better performance", - id: "perplexity", - }, - ], - models: [ - { - description: "A faster and smaller model than the famous BERT model.", - id: "distilbert-base-uncased", - }, - { - description: "A multilingual model trained on 100 languages.", - id: "xlm-roberta-base", - }, - ], - spaces: [], - summary: "Masked language modeling is the task of masking some of the words in a sentence and predicting which words should replace those masks. These models are useful when we want to get a statistical understanding of the language in which the model is trained in.", - widgetModels: ["distilroberta-base"], - youtubeId: "mqElG5QJWUg", -}; - -export default taskData; diff --git a/tasks/src/image-classification/about.md b/tasks/src/image-classification/about.md deleted file mode 100644 index c612ddd1f..000000000 --- a/tasks/src/image-classification/about.md +++ /dev/null @@ -1,48 +0,0 @@ -## Use Cases -Image classification models can be used when we are not interested in specific instances of objects with location information or their shape. - -### Keyword Classification -Image classification models are used widely in stock photography to assign each image a keyword. - -### Image Search - -Models trained in image classification can improve user experience by organizing and categorizing photo galleries on the phone or in the cloud, on multiple keywords or tags. - -## Inference - -With the `transformers` library, you can use the `image-classification` pipeline to infer with image classification models. You can initialize the pipeline with a model id from the Hub. If you do not provide a model id it will initialize with [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) by default. When calling the pipeline you just need to specify a path, http link or an image loaded in PIL. You can also provide a `top_k` parameter which determines how many results it should return. - -```python -from transformers import pipeline -clf = pipeline("image-classification") -clf("path_to_a_cat_image") - -[{'label': 'tabby cat', 'score': 0.731}, -... -] -``` - -You can use [huggingface.js](https://github.com/huggingface/huggingface.js) to classify images using models on Hugging Face Hub. - -```javascript -import { HfInference } from "@huggingface/inference"; - -const inference = new HfInference(HF_ACCESS_TOKEN); -await inference.imageClassification({ - data: await (await fetch('https://picsum.photos/300/300')).blob(), - model: 'microsoft/resnet-50', -}) -``` - -## Useful Resources - -- [Let's Play Pictionary with Machine Learning!](https://www.youtube.com/watch?v=LS9Y2wDVI0k) -- [Fine-Tune ViT for Image Classification with 🤗Transformers](https://huggingface.co/blog/fine-tune-vit) -- [Walkthrough of Computer Vision Ecosystem in Hugging Face - CV Study Group](https://www.youtube.com/watch?v=oL-xmufhZM8) -- [Computer Vision Study Group: Swin Transformer](https://www.youtube.com/watch?v=Ngikt-K1Ecc) -- [Computer Vision Study Group: Masked Autoencoders Paper Walkthrough](https://www.youtube.com/watch?v=Ngikt-K1Ecc) -- [Image classification task guide](https://huggingface.co/docs/transformers/tasks/image_classification) - -### Creating your own image classifier in just a few minutes - -With [HuggingPics](https://github.com/nateraw/huggingpics), you can fine-tune Vision Transformers for anything using images found on the web. This project downloads images of classes defined by you, trains a model, and pushes it to the Hub. You even get to try out the model directly with a working widget in the browser, ready to be shared with all your friends! diff --git a/tasks/src/image-classification/data.ts b/tasks/src/image-classification/data.ts deleted file mode 100644 index ba05d52ca..000000000 --- a/tasks/src/image-classification/data.ts +++ /dev/null @@ -1,88 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - // TODO write proper description - description: "Benchmark dataset used for image classification with images that belong to 100 classes.", - id: "cifar100", - }, - { - // TODO write proper description - description: "Dataset consisting of images of garments.", - id: "fashion_mnist", - }, - ], - demo: { - inputs: [ - { - filename: "image-classification-input.jpeg", - type: "img", - }, - ], - outputs: [ - { - type: "chart", - data: [ - { - label: "Egyptian cat", - score: 0.514, - }, - { - label: "Tabby cat", - score: 0.193, - }, - { - label: "Tiger cat", - score: 0.068, - }, - ], - }, - ], - }, - metrics: [ - { - description: "", - id: "accuracy", - }, - { - description: "", - id: "recall", - }, - { - description: "", - id: "precision", - }, - { - description: "", - id: "f1", - }, - - ], - models: [ - { - description: "A strong image classification model.", - id: "google/vit-base-patch16-224", - }, - { - description: "A robust image classification model.", - id: "facebook/deit-base-distilled-patch16-224", - }, - { - description: "A strong image classification model.", - id: "facebook/convnext-large-224", - }, - ], - spaces: [ - { - // TO DO: write description - description: "An application that classifies what a given image is about.", - id: "nielsr/perceiver-image-classification", - }, - ], - summary: "Image classification is the task of assigning a label or class to an entire image. Images are expected to have only one class for each image. Image classification models take an image as input and return a prediction about which class the image belongs to.", - widgetModels: ["google/vit-base-patch16-224"], - youtubeId: "tjAIM7BOYhw", -}; - -export default taskData; diff --git a/tasks/src/image-segmentation/about.md b/tasks/src/image-segmentation/about.md deleted file mode 100644 index ed6bf992b..000000000 --- a/tasks/src/image-segmentation/about.md +++ /dev/null @@ -1,63 +0,0 @@ -## Use Cases - -### Autonomous Driving - -Segmentation models are used to identify road patterns such as lanes and obstacles for safer driving. - -### Background Removal - -Image Segmentation models are used in cameras to erase the background of certain objects and apply filters to them. - -### Medical Imaging - -Image Segmentation models are used to distinguish organs or tissues, improving medical imaging workflows. Models are used to segment dental instances, analyze X-Ray scans or even segment cells for pathological diagnosis. This [dataset](https://github.com/v7labs/covid-19-xray-dataset) contains images of lungs of healthy patients and patients with COVID-19 segmented with masks. Another [segmentation dataset](https://ivdm3seg.weebly.com/data.html) contains segmented MRI data of the lower spine to analyze the effect of spaceflight simulation. - -## Task Variants - -### Semantic Segmentation - -Semantic Segmentation is the task of segmenting parts of an image that belong to the same class. Semantic Segmentation models make predictions for each pixel and return the probabilities of the classes for each pixel. These models are evaluated on Mean Intersection Over Union (Mean IoU). - -### Instance Segmentation - -Instance Segmentation is the variant of Image Segmentation where every distinct object is segmented, instead of one segment per class. - -### Panoptic Segmentation - -Panoptic Segmentation is the Image Segmentation task that segments the image both by instance and by class, assigning each pixel a different instance of the class. - -## Inference - -You can infer with Image Segmentation models using the `image-segmentation` pipeline. You need to install [timm](https://github.com/rwightman/pytorch-image-models) first. - -```python -!pip install timm -model = pipeline("image-segmentation") -model("cat.png") -#[{'label': 'cat', -# 'mask': mask_code, -# 'score': 0.999} -# ...] -``` - -You can use [huggingface.js](https://github.com/huggingface/huggingface.js) to infer image segmentation models on Hugging Face Hub. - -```javascript -import { HfInference } from "@huggingface/inference"; - -const inference = new HfInference(HF_ACCESS_TOKEN); -await inference.imageSegmentation({ - data: await (await fetch('https://picsum.photos/300/300')).blob(), - model: 'facebook/detr-resnet-50-panoptic', -}) -``` - -## Useful Resources - -Would you like to learn more about image segmentation? Great! Here you can find some curated resources that you may find helpful! - -- [Fine-Tune a Semantic Segmentation Model with a Custom Dataset](https://huggingface.co/blog/fine-tune-segformer) -- [Walkthrough of Computer Vision Ecosystem in Hugging Face - CV Study Group](https://www.youtube.com/watch?v=oL-xmufhZM8) -- [A Guide on Universal Image Segmentation with Mask2Former and OneFormer](https://huggingface.co/blog/mask2former) -- [Zero-shot image segmentation with CLIPSeg](https://huggingface.co/blog/clipseg-zero-shot) -- [Semantic segmentation task guide](https://huggingface.co/docs/transformers/tasks/semantic_segmentation) \ No newline at end of file diff --git a/tasks/src/image-segmentation/data.ts b/tasks/src/image-segmentation/data.ts deleted file mode 100644 index 008c9a2be..000000000 --- a/tasks/src/image-segmentation/data.ts +++ /dev/null @@ -1,96 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "Scene segmentation dataset.", - id: "scene_parse_150", - }, - ], - demo: { - inputs: [ - { - filename: "image-segmentation-input.jpeg", - type: "img", - }, - ], - outputs: [ - { - filename: "image-segmentation-output.png", - type: "img", - }, - ], - }, - metrics: [ - { - description: "Average Precision (AP) is the Area Under the PR Curve (AUC-PR). It is calculated for each semantic class separately", - id: "Average Precision", - }, - { - description: "Mean Average Precision (mAP) is the overall average of the AP values", - id: "Mean Average Precision", - }, - { - description: "Intersection over Union (IoU) is the overlap of segmentation masks. Mean IoU is the average of the IoU of all semantic classes", - id: "Mean Intersection over Union", - }, - { - description: "APα is the Average Precision at the IoU threshold of a α value, for example, AP50 and AP75", - id: "APα", - }, - ], - models: [ - { - // TO DO: write description - description: "Solid panoptic segmentation model trained on the COCO 2017 benchmark dataset.", - id: "facebook/detr-resnet-50-panoptic", - }, - { - description: "Semantic segmentation model trained on ADE20k benchmark dataset.", - id: "microsoft/beit-large-finetuned-ade-640-640", - }, - { - description: "Semantic segmentation model trained on ADE20k benchmark dataset with 512x512 resolution.", - id: "nvidia/segformer-b0-finetuned-ade-512-512", - }, - { - description: "Semantic segmentation model trained Cityscapes dataset.", - id: "facebook/mask2former-swin-large-cityscapes-semantic", - }, - { - description: "Panoptic segmentation model trained COCO (common objects) dataset.", - id: "facebook/mask2former-swin-large-coco-panoptic", - }, - ], - spaces: [ - { - description: "A semantic segmentation application that can predict unseen instances out of the box.", - id: "facebook/ov-seg", - }, - { - description: "One of the strongest segmentation applications.", - id: "jbrinkma/segment-anything", - }, - { - description: "A semantic segmentation application that predicts human silhouettes.", - id: "keras-io/Human-Part-Segmentation", - }, - { - description: "An instance segmentation application to predict neuronal cell types from microscopy images.", - id: "rashmi/sartorius-cell-instance-segmentation", - }, - { - description: "An application that segments videos.", - id: "ArtGAN/Segment-Anything-Video", - }, - { - description: "An panoptic segmentation application built for outdoor environments.", - id: "segments/panoptic-segment-anything", - }, - ], - summary: "Image Segmentation divides an image into segments where each pixel in the image is mapped to an object. This task has multiple variants such as instance segmentation, panoptic segmentation and semantic segmentation.", - widgetModels: ["facebook/detr-resnet-50-panoptic"], - youtubeId: "dKE8SIt9C-w", -}; - -export default taskData; diff --git a/tasks/src/image-to-image/about.md b/tasks/src/image-to-image/about.md deleted file mode 100644 index 6c37d82c5..000000000 --- a/tasks/src/image-to-image/about.md +++ /dev/null @@ -1,81 +0,0 @@ -## Use Cases - -### Style transfer - -One of the most popular use cases of image to image is the style transfer. Style transfer models can convert a regular photography into a painting in the style of a famous painter. - -## Task Variants - -### Image inpainting - -Image inpainting is widely used during photography editing to remove unwanted objects, such as poles, wires or sensor -dust. - -### Image colorization - -Old, black and white images can be brought up to life using an image colorization model. - -### Super Resolution - -Super resolution models increase the resolution of an image, allowing for higher quality viewing and printing. - -## Inference - -You can use pipelines for image-to-image in 🧨diffusers library to easily use image-to-image models. See an example for `StableDiffusionImg2ImgPipeline` below. - -```python -from PIL import Image -from diffusers import StableDiffusionImg2ImgPipeline - -model_id_or_path = "runwayml/stable-diffusion-v1-5" -pipe = StableDiffusionImg2ImgPipeline.from_pretrained(model_id_or_path, torch_dtype=torch.float16) -pipe = pipe.to(cuda) - -init_image = Image.open("mountains_image.jpeg").convert("RGB").resize((768, 512)) -prompt = "A fantasy landscape, trending on artstation" - -images = pipe(prompt=prompt, image=init_image, strength=0.75, guidance_scale=7.5).images -images[0].save("fantasy_landscape.png") -``` - -You can use [huggingface.js](https://github.com/huggingface/huggingface.js) to infer image-to-image models on Hugging Face Hub. - -```javascript -import { HfInference } from "@huggingface/inference"; - -const inference = new HfInference(HF_ACCESS_TOKEN); -await inference.imageToImage({ - data: await (await fetch('image')).blob(), - model: "timbrooks/instruct-pix2pix", - parameters: { - prompt: "Deblur this image" - } -}) -``` - -## ControlNet - -Controlling outputs of diffusion models only with a text prompt is a challenging problem. ControlNet is a neural network type that provides an image based control to diffusion models. These controls can be edges or landmarks in an image. - -Many ControlNet models were trained in our community event, JAX Diffusers sprint. You can see the full list of the ControlNet models available [here](https://huggingface.co/spaces/jax-diffusers-event/leaderboard). - -## Most Used Model for the Task - -Pix2Pix is a popular model used for image to image translation tasks. It is based on a conditional-GAN (generative adversarial network) where instead of a noise vector a 2D image is given as input. More information about Pix2Pix can be retrieved from this [link](https://phillipi.github.io/pix2pix/) where the associated paper and the GitHub repository can be found. - - -Below images show some of the examples shared in the paper that can be obtained using Pix2Pix. There are various cases this model can be applied on. It is capable of relatively simpler things, e.g. converting a grayscale image to its colored version. But more importantly, it can generate realistic pictures from rough sketches (can be seen in the purse example) or from painting-like images (can be seen in the street and facade examples below). - -Alt text - - -## Useful Resources - -- [Train your ControlNet with diffusers 🧨](https://huggingface.co/blog/train-your-controlnet) -- [Ultra fast ControlNet with 🧨 Diffusers](https://huggingface.co/blog/controlnet) - -## References - -[1] P. Isola, J. -Y. Zhu, T. Zhou and A. A. Efros, "Image-to-Image Translation with Conditional Adversarial Networks," 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017, pp. 5967-5976, doi: 10.1109/CVPR.2017.632. - -This page was made possible thanks to the efforts of [Paul Gafton](https://github.com/Paul92) and [Osman Alenbey](https://huggingface.co/osman93). diff --git a/tasks/src/image-to-image/data.ts b/tasks/src/image-to-image/data.ts deleted file mode 100644 index 846924c0c..000000000 --- a/tasks/src/image-to-image/data.ts +++ /dev/null @@ -1,97 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "Synthetic dataset, for image relighting", - id: "VIDIT", - }, - { - description: "Multiple images of celebrities, used for facial expression translation", - id: "huggan/CelebA-faces", - }, - ], - demo: { - inputs: [ - { - filename: "image-to-image-input.jpeg", - type: "img", - }, - ], - outputs: [ - { - filename: "image-to-image-output.png", - type: "img", - }, - ], - }, - isPlaceholder: false, - metrics: [ - { - description: "Peak Signal to Noise Ratio (PSNR) is an approximation of the human perception, considering the ratio of the absolute intensity with respect to the variations. Measured in dB, a high value indicates a high fidelity.", - id: "PSNR", - }, - { - description: "Structural Similarity Index (SSIM) is a perceptual metric which compares the luminance, contrast and structure of two images. The values of SSIM range between -1 and 1, and higher values indicate closer resemblance to the original image.", - id: "SSIM", - }, - { - description: "Inception Score (IS) is an analysis of the labels predicted by an image classification model when presented with a sample of the generated images.", - id: "IS", - }, - ], - models: [ - { - description: "A model that enhances images captured in low light conditions.", - id: "keras-io/low-light-image-enhancement", - }, - { - description: "A model that increases the resolution of an image.", - id: "keras-io/super-resolution", - }, - { - description: "A model that creates a set of variations of the input image in the style of DALL-E using Stable Diffusion.", - id: "lambdalabs/sd-image-variations-diffusers", - }, - { - description: "A model that generates images based on segments in the input image and the text prompt.", - id: "mfidabel/controlnet-segment-anything", - }, - { - description: "A model that takes an image and an instruction to edit the image.", - id: "timbrooks/instruct-pix2pix", - }, - ], - spaces: [ - { - description: "Image enhancer application for low light.", - id: "keras-io/low-light-image-enhancement", - }, - { - description: "Style transfer application.", - id: "keras-io/neural-style-transfer", - }, - { - description: "An application that generates images based on segment control.", - id: "mfidabel/controlnet-segment-anything", - }, - { - description: "Image generation application that takes image control and text prompt.", - id: "hysts/ControlNet", - }, - { - description: "Colorize any image using this app.", - id: "ioclab/brightness-controlnet", - }, - { - description: "Edit images with instructions.", - id: "timbrooks/instruct-pix2pix", - }, - - ], - summary: "Image-to-image is the task of transforming a source image to match the characteristics of a target image or a target image domain. Any image manipulation and enhancement is possible with image to image models.", - widgetModels: ["lllyasviel/sd-controlnet-canny"], - youtubeId: "", -}; - -export default taskData; diff --git a/tasks/src/image-to-text/about.md b/tasks/src/image-to-text/about.md deleted file mode 100644 index 98ef1cf39..000000000 --- a/tasks/src/image-to-text/about.md +++ /dev/null @@ -1,58 +0,0 @@ -## Use Cases -### Image Captioning -Image Captioning is the process of generating textual description of an image. -This can help the visually impaired people to understand what's happening in their surroundings. - -### Optical Character Recognition (OCR) -OCR models convert the text present in an image, e.g. a scanned document, to text. - - - -## Pix2Struct - -Pix2Struct is a state-of-the-art model built and released by Google AI. The model itself has to be trained on a downstream task to be used. These tasks include, captioning UI components, images including text, visual questioning infographics, charts, scientific diagrams and more. You can find these models on recommended models of this page. - -## Inference -### Image Captioning -You can use the 🤗 Transformers library's `image-to-text` pipeline to generate caption for the Image input. -```python -from transformers import pipeline - -captioner = pipeline("image-to-text",model="Salesforce/blip-image-captioning-base") -captioner("https://huggingface.co/datasets/Narsil/image_dummy/resolve/main/parrots.png") -## [{'generated_text': 'two birds are standing next to each other '}] -``` - -### OCR -This code snippet uses Microsoft’s TrOCR, an encoder-decoder model consisting of an image Transformer encoder and a text Transformer decoder for state-of-the-art optical character recognition (OCR) on single-text line images. -```python -from transformers import TrOCRProcessor, VisionEncoderDecoderModel - -processor = TrOCRProcessor.from_pretrained('microsoft/trocr-base-handwritten') -model = VisionEncoderDecoderModel.from_pretrained('microsoft/trocr-base-handwritten') -pixel_values = processor(images="image.jpeg", return_tensors="pt").pixel_values - -generated_ids = model.generate(pixel_values) -generated_text = processor.batch_decode(generated_ids, skip_special_tokens=True)[0] - -``` - -You can use [huggingface.js](https://github.com/huggingface/huggingface.js) to infer image-to-text models on Hugging Face Hub. - -```javascript -import { HfInference } from "@huggingface/inference"; - -const inference = new HfInference(HF_ACCESS_TOKEN); -await inference.imageToText({ - data: await (await fetch('https://picsum.photos/300/300')).blob(), - model: 'Salesforce/blip-image-captioning-base', -}) -``` - -## Useful Resources -- [Image Captioning](https://huggingface.co/docs/transformers/main/en/tasks/image_captioning) -- [Image captioning use case](https://blog.google/outreach-initiatives/accessibility/get-image-descriptions/) -- [Train Image Captioning model on your dataset](https://github.com/NielsRogge/Transformers-Tutorials/blob/master/GIT/Fine_tune_GIT_on_an_image_captioning_dataset.ipynb) -- [Train OCR model on your dataset ](https://github.com/NielsRogge/Transformers-Tutorials/tree/master/TrOCR) - -This page was made possible thanks to efforts of [Sukesh Perla](https://huggingface.co/hitchhiker3010) and [Johannes Kolbe](https://huggingface.co/johko). diff --git a/tasks/src/image-to-text/data.ts b/tasks/src/image-to-text/data.ts deleted file mode 100644 index 8dfeddf14..000000000 --- a/tasks/src/image-to-text/data.ts +++ /dev/null @@ -1,87 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - // TODO write proper description - description: "Dataset from 12M image-text of Reddit", - id: "red_caps", - }, - { - // TODO write proper description - description: "Dataset from 3.3M images of Google", - id: "datasets/conceptual_captions", - }, - - ], - demo: { - inputs: [ - { - filename: "savanna.jpg", - type: "img", - }, - ], - outputs: [ - { - label: "Detailed description", - content: "a herd of giraffes and zebras grazing in a field", - type: "text", - }, - ], - }, - metrics: [], - models: [ - { - description: "A robust image captioning model.", - id: "Salesforce/blip-image-captioning-large", - }, - { - description: "A strong image captioning model.", - id: "nlpconnect/vit-gpt2-image-captioning", - }, - { - description: "A strong optical character recognition model.", - id: "microsoft/trocr-base-printed", - }, - { - description: "A strong visual question answering model for scientific diagrams.", - id: "google/pix2struct-ai2d-base", - }, - { - description: "A strong captioning model for UI components.", - id: "google/pix2struct-widget-captioning-base", - }, - { - description: "A captioning model for images that contain text.", - id: "google/pix2struct-textcaps-base", - }, - ], - spaces: [ - { - description: "A robust image captioning application.", - id: "flax-community/image-captioning", - }, - { - description: "An application that transcribes handwritings into text.", - id: "nielsr/TrOCR-handwritten", - }, - { - description: "An application that can caption images and answer questions about a given image.", - id: "Salesforce/BLIP", - }, - { - description: "An application that can caption images and answer questions with a conversational agent.", - id: "Salesforce/BLIP2", - }, - { - description: "An image captioning application that demonstrates the effect of noise on captions.", - id: "johko/capdec-image-captioning", - }, - ], - summary: "Image to text models output a text from a given image. Image captioning or optical character recognition can be considered as the most common applications of image to text.", - widgetModels: ["Salesforce/blip-image-captioning-base"], - youtubeId: "", -}; - - -export default taskData; diff --git a/tasks/src/object-detection/about.md b/tasks/src/object-detection/about.md deleted file mode 100644 index 30f229524..000000000 --- a/tasks/src/object-detection/about.md +++ /dev/null @@ -1,36 +0,0 @@ -## Use Cases - -### Autonomous Driving - -Object Detection is widely used in computer vision for autonomous driving. Self-driving cars use Object Detection models to detect pedestrians, bicycles, traffic lights and road signs to decide which step to take. - -### Object Tracking in Matches - -Object Detection models are widely used in sports where the ball or a player is tracked for monitoring and refereeing during matches. - -### Image Search - -Object Detection models are widely used in image search. Smartphones use Object Detection models to detect entities (such as specific places or objects) and allow the user to search for the entity on the Internet. - -### Object Counting - -Object Detection models are used to count instances of objects in a given image, this can include counting the objects in warehouses or stores, or counting the number of visitors in a store. They are also used to manage crowds at events to prevent disasters. - -## Inference - -You can infer with Object Detection models through the `object-detection` pipeline. When calling the pipeline you just need to specify a path or http link to an image. - -```python -model = pipeline("object-detection") - -model("path_to_cat_image") - -# [{'label': 'blanket', -# 'mask': mask_string, -# 'score': 0.917}, -#...] -``` - -# Useful Resources -- [Walkthrough of Computer Vision Ecosystem in Hugging Face - CV Study Group](https://www.youtube.com/watch?v=oL-xmufhZM8) -- [Object detection task guide](https://huggingface.co/docs/transformers/tasks/object_detection) \ No newline at end of file diff --git a/tasks/src/object-detection/data.ts b/tasks/src/object-detection/data.ts deleted file mode 100644 index 498e1a394..000000000 --- a/tasks/src/object-detection/data.ts +++ /dev/null @@ -1,73 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - // TODO write proper description - description: "Widely used benchmark dataset for multiple Vision tasks.", - id: "merve/coco2017", - }, - ], - demo: { - inputs: [ - { - filename: "object-detection-input.jpg", - type: "img", - }, - ], - outputs: [ - { - filename: "object-detection-output.jpg", - type: "img", - }, - ], - }, - metrics: [ - { - description: "The Average Precision (AP) metric is the Area Under the PR Curve (AUC-PR). It is calculated for each class separately", - id: "Average Precision", - }, - { - description: "The Mean Average Precision (mAP) metric is the overall average of the AP values", - id: "Mean Average Precision", - }, - { - description: "The APα metric is the Average Precision at the IoU threshold of a α value, for example, AP50 and AP75", - id: "APα", - }, - ], - models: [ - { - // TO DO: write description - description: "Solid object detection model trained on the benchmark dataset COCO 2017.", - id: "facebook/detr-resnet-50", - }, - { - description: "Strong object detection model trained on ImageNet-21k dataset.", - id: "microsoft/beit-base-patch16-224-pt22k-ft22k", - }, - ], - spaces: [ - { - description: "An object detection application that can detect unseen objects out of the box.", - id: "adirik/OWL-ViT", - }, - { - description: "An application that contains various object detection models to try from.", - id: "Gradio-Blocks/Object-Detection-With-DETR-and-YOLOS", - }, - { - description: "An application that shows multiple cutting edge techniques for object detection and tracking.", - id: "kadirnar/torchyolo", - }, - { - description: "An object tracking, segmentation and inpainting application.", - id: "VIPLab/Track-Anything", - }, - ], - summary: "Object Detection models allow users to identify objects of certain defined classes. Object detection models receive an image as input and output the images with bounding boxes and labels on detected objects.", - widgetModels: ["facebook/detr-resnet-50"], - youtubeId: "WdAeKSOpxhw", -}; - -export default taskData; diff --git a/tasks/src/placeholder/about.md b/tasks/src/placeholder/about.md deleted file mode 100644 index 792db3c74..000000000 --- a/tasks/src/placeholder/about.md +++ /dev/null @@ -1,15 +0,0 @@ -## Use Cases - -You can contribute this area with common use cases of the task! - -## Task Variants - -This place can be filled with variants of this task if there's any. - -## Inference - -This section should have useful information about how to pull a model from Hugging Face Hub that is a part of a library specialized in a task and use it. - -## Useful Resources - -In this area, you can insert useful resources about how to train or use a model for this task. diff --git a/tasks/src/placeholder/data.ts b/tasks/src/placeholder/data.ts deleted file mode 100644 index 1bfb17d68..000000000 --- a/tasks/src/placeholder/data.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [], - demo: { - inputs: [], - outputs: [], - }, - isPlaceholder: true, - metrics: [], - models: [], - spaces: [], - summary: "", - widgetModels: [], - youtubeId: undefined, -}; - -export default taskData; diff --git a/tasks/src/question-answering/about.md b/tasks/src/question-answering/about.md deleted file mode 100644 index f0b229b9f..000000000 --- a/tasks/src/question-answering/about.md +++ /dev/null @@ -1,56 +0,0 @@ -## Use Cases - -### Frequently Asked Questions - -You can use Question Answering (QA) models to automate the response to frequently asked questions by using a knowledge base (documents) as context. Answers to customer questions can be drawn from those documents. - -⚡⚡ If you’d like to save inference time, you can first use [passage ranking models](/tasks/sentence-similarity) to see which document might contain the answer to the question and iterate over that document with the QA model instead. - -## Task Variants -There are different QA variants based on the inputs and outputs: - -- **Extractive QA:** The model **extracts** the answer from a context. The context here could be a provided text, a table or even HTML! This is usually solved with BERT-like models. -- **Open Generative QA:** The model **generates** free text directly based on the context. You can learn more about the Text Generation task in [its page](/tasks/text-generation). -- **Closed Generative QA:** In this case, no context is provided. The answer is completely generated by a model. - -The schema above illustrates extractive, open book QA. The model takes a context and the question and extracts the answer from the given context. - -You can also differentiate QA models depending on whether they are open-domain or closed-domain. Open-domain models are not restricted to a specific domain, while closed-domain models are restricted to a specific domain (e.g. legal, medical documents). - -## Inference - -You can infer with QA models with the 🤗 Transformers library using the `question-answering` pipeline. If no model checkpoint is given, the pipeline will be initialized with `distilbert-base-cased-distilled-squad`. This pipeline takes a question and a context from which the answer will be extracted and returned. - -```python -from transformers import pipeline - -qa_model = pipeline("question-answering") -question = "Where do I live?" -context = "My name is Merve and I live in İstanbul." -qa_model(question = question, context = context) -## {'answer': 'İstanbul', 'end': 39, 'score': 0.953, 'start': 31} -``` - -## Useful Resources - -Would you like to learn more about QA? Awesome! Here are some curated resources that you may find helpful! - -- [Course Chapter on Question Answering](https://huggingface.co/course/chapter7/7?fw=pt) -- [Question Answering Workshop](https://www.youtube.com/watch?v=Ihgk8kGLpIE&ab_channel=HuggingFace) -- [How to Build an Open-Domain Question Answering System?](https://lilianweng.github.io/lil-log/2020/10/29/open-domain-question-answering.html) -- [Blog Post: ELI5 A Model for Open Domain Long Form Question Answering](https://yjernite.github.io/lfqa.html) - -### Notebooks - -- [PyTorch](https://github.com/huggingface/notebooks/blob/master/examples/question_answering.ipynb) -- [TensorFlow](https://github.com/huggingface/notebooks/blob/main/examples/question_answering-tf.ipynb) - -### Scripts for training - -- [PyTorch](https://github.com/huggingface/transformers/tree/main/examples/pytorch/question-answering) -- [TensorFlow](https://github.com/huggingface/transformers/tree/main/examples/tensorflow/question-answering) -- [Flax](https://github.com/huggingface/transformers/tree/main/examples/flax/question-answering) - -### Documentation - -- [Question answering task guide](https://huggingface.co/docs/transformers/tasks/question_answering) \ No newline at end of file diff --git a/tasks/src/question-answering/data.ts b/tasks/src/question-answering/data.ts deleted file mode 100644 index 5c4b756ff..000000000 --- a/tasks/src/question-answering/data.ts +++ /dev/null @@ -1,69 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - // TODO write proper description - description: "A famous question answering dataset based on English articles from Wikipedia.", - id: "squad_v2", - }, - { - // TODO write proper description - description: "A dataset of aggregated anonymized actual queries issued to the Google search engine.", - id: "natural_questions", - }, - ], - demo: { - inputs: [ - { - label: "Question", - content: "Which name is also used to describe the Amazon rainforest in English?", - type: "text", - }, - { - label: "Context", - content: "The Amazon rainforest, also known in English as Amazonia or the Amazon Jungle", - type: "text", - }, - ], - outputs: [ - { - label: "Answer", - content: "Amazonia", - type: "text", - }, - ], - }, - metrics: [ - { - description: "Exact Match is a metric based on the strict character match of the predicted answer and the right answer. For answers predicted correctly, the Exact Match will be 1. Even if only one character is different, Exact Match will be 0", - id: "exact-match", - }, - { - description: " The F1-Score metric is useful if we value both false positives and false negatives equally. The F1-Score is calculated on each word in the predicted sequence against the correct answer", - id: "f1", - }, - ], - models: [ - { - description: "A robust baseline model for most question answering domains.", - id: "deepset/roberta-base-squad2", - }, - { - description: "A special model that can answer questions from tables!", - id: "google/tapas-base-finetuned-wtq", - }, - ], - spaces: [ - { - description: "An application that can answer a long question from Wikipedia.", - id: "deepset/wikipedia-assistant", - }, - ], - summary: "Question Answering models can retrieve the answer to a question from a given text, which is useful for searching for an answer in a document. Some question answering models can generate answers without context!", - widgetModels: ["deepset/roberta-base-squad2"], - youtubeId: "ajPx5LwJD-I", -}; - - -export default taskData; diff --git a/tasks/src/reinforcement-learning/about.md b/tasks/src/reinforcement-learning/about.md deleted file mode 100644 index e5c4c0377..000000000 --- a/tasks/src/reinforcement-learning/about.md +++ /dev/null @@ -1,176 +0,0 @@ -## Use Cases - -### Gaming - -Reinforcement learning is known for its application to video games. Since the games provide a safe environment for the agent to be trained in the sense that it is perfectly defined and controllable, this makes them perfect candidates for experimentation and will help a lot to learn about the capabilities and limitations of various RL algorithms. - - -There are many videos on the Internet where a game-playing reinforcement learning agent starts with a terrible gaming strategy due to random initialization of its settings, but over iterations, the agent gets better and better with each episode of the training. This [paper](https://arxiv.org/abs/1912.10944) mainly investigates the performance of RL in popular games such as Minecraft or Dota2. The agent's performance can exceed a human player's, although there are still some challenges mainly related to efficiency in constructing the gaming policy of the reinforcement learning agent. - - -### Trading and Finance -Reinforcement learning is the science to train computers to make decisions and thus has a novel use in trading and finance. All time-series models are helpful in predicting prices, volume and future sales of a product or a stock. Reinforcement based automated agents can decide to sell, buy or hold a stock. It shifts the impact of AI in this field to real time decision making rather than just prediction of prices. The glossary given below will clear some parameters to as to how we can train a model to take these decisions. - - - -## Task Variants - -### Model Based RL -In model based reinforcement learning techniques intend to create a model of the environment, learn the state transition probabilities and the reward function, to find the optimal action. Some typical examples for model based reinforcement learning algorithms are dynamic programming, value iteration and policy iteration. - - -### Model Free RL -In model free reinforcement learning, agent decides on optimal actions based on its experience in the environment and the reward it collects from it. This is one of the most commonly used algorithms beneficial in complex environments, where modeling of state transition probabilities and reward functions are difficult. Some of the examples of model free reinforcement learning are SARSA, Q-Learning, actor-critic and proximal policy optimization (PPO) algorithms. - - -## Glossary - - - - -**Agent:** The learner and the decision maker. - - -**Environment:** The part of the world the agent interacts, comprising everything outside the agent. - - -Observations and states are the information our agent gets from the environment. In the case of a video game, it can be a frame (a screenshot). In the case of the trading agent, it can be the value of a certain stock. - - -**State:** Complete description of the state of the environment with no hidden information. - - -**Observation:** Partial description of the state, in a partially observed environment. - - - -**Action:** The decision taken by the agent. - -**Reward:** The numerical feedback signal that the agent receives from the environment based on the chosen action. - - -**Return:** Cumulative Reward. In the simplest case, the return is the sum of the rewards. - - -**Episode:** For some applications there is a natural notion of final time step. In this case, there is a starting point and an ending point (a terminal state). This creates an episode: a list of States, Actions, Rewards, and new States. For instance, think about Chess: an episode begins at the initial board position and ends when the game is over. - -**Policy:** The Policy is the brain of the Agent, it’s the function that tells what action to take given the state. So it defines the agent’s behavior at a given time. Reinforcement learning methods specify how the agent’s policy is changed as a result of its experience. - -## Inference - -Inference in reinforcement learning differs from other modalities, in which there's a model and test data. In reinforcement learning, once you have trained an agent in an environment, you try to run the trained agent for additional steps to get the average reward. - -A typical training cycle consists of gathering experience from the environment, training the agent, and running the agent on a test environment to obtain average reward. Below there's a snippet on how you can interact with the environment using the `gymnasium` library, train an agent using `stable-baselines3`, evalute the agent on test environment and infer actions from the trained agent. - - -```python -# Here we are running 20 episodes of CartPole-v1 environment, taking random actions -import gymnasium as gym - -env = gym.make("CartPole-v1") -observation, info = env.reset() - -for _ in range(20): - action = env.action_space.sample() # samples random action from action sample space - - # the agent takes the action - observation, reward, terminated, truncated, info = env.step(action) - - -# if the agent reaches terminal state, we reset the environment -if terminated or truncated: - - print("Environment is reset") - observation = env.reset() - -env.close() -``` - -Below snippet shows how to train a PPO model on LunarLander-v2 environment using `stable-baselines3` library and saving the model -```python -from stable_baselines3 import PPO - -# initialize the environment - -env = gym.make("LunarLander-v2") - -# initialize the model - -model = PPO(policy = "MlpPolicy", - env = env, - n_steps = 1024, - batch_size = 64, - n_epochs = 4, - verbose = 1) - -# train the model for 1000 time steps -model.learn(total_timesteps = 1000) - -# Saving the model in desired directory -model_name = "PPO-LunarLander-v2" -model.save(model_name) -``` -Below code shows how to evaluate an agent trained using `stable-baselines3` -```python -# Loading a saved model and evaluating the model for 10 episodes -from stable_baselines3.common.evaluation import evaluate_policy -from stable_baselines3 import PPO - - -env = gym.make("LunarLander-v2") -# Loading the saved model -model = PPO.load("PPO-LunarLander-v2",env=env) - -# Initializating the evaluation environment -eval_env = gym.make("LunarLander-v2") - -# Running the trained agent on eval_env for 10 time steps and getting the mean reward -mean_reward, std_reward = evaluate_policy(model, eval_env, n_eval_episodes = 10, - deterministic=True) - -print(f"mean_reward={mean_reward:.2f} +/- {std_reward}") -``` - -Below code snippet shows how to infer actions from an agent trained using `stable-baselines3` - -```python -from stable_baselines3.common.evaluation import evaluate_policy -from stable_baselines3 import PPO - -# Loading the saved model -model = PPO.load("PPO-LunarLander-v2",env=env) - -# Getting the environment from the trained agent -env = model.get_env() - -obs = env.reset() -for i in range(1000): - # getting action predictions from the trained agent - action, _states = model.predict(obs, deterministic=True) - - # taking the predicted action in the environment to observe next state and rewards - obs, rewards, dones, info = env.step(action) -``` - -For more information, you can check out the documentations of the respective libraries. - -[Gymnasium Documentation](https://gymnasium.farama.org/) -[Stable Baselines Documentation](https://stable-baselines3.readthedocs.io/en/master/) - -## Useful Resources - -Would you like to learn more about the topic? Awesome! Here you can find some curated resources that you may find helpful! - -- [HuggingFace Deep Reinforcement Learning Class](https://github.com/huggingface/deep-rl-class) -- [Introduction to Deep Reinforcement Learning](https://huggingface.co/blog/deep-rl-intro) -- [Stable Baselines Integration with HuggingFace](https://huggingface.co/blog/sb3) -- Learn how reinforcement learning is used in conversational agents in this blog: [Illustrating Reinforcement Learning from Human Feedback (RLHF)](https://huggingface.co/blog/rlhf) -- [Reinforcement Learning from Human Feedback From Zero to ChatGPT](https://www.youtube.com/watch?v=EAd4oQtEJOM) -- [Guide on Multi-Agent Competition Systems](https://huggingface.co/blog/aivsai) - -### Notebooks -- [Train a Deep Reinforcement Learning lander agent to land correctly on the Moon 🌕 using Stable-Baselines3](https://github.com/huggingface/deep-rl-class/blob/main/notebooks/unit1/unit1.ipynb) -- [Introduction to Unity MLAgents](https://github.com/huggingface/deep-rl-class/blob/main/notebooks/unit5/unit5.ipynb) -- [Training Decision Transformers with 🤗 transformers](https://github.com/huggingface/blog/blob/main/notebooks/101_train-decision-transformers.ipynb) - -This page was made possible thanks to the efforts of [Ram Ananth](https://huggingface.co/RamAnanth1), [Emilio Lehoucq](https://huggingface.co/emiliol), [Sagar Mathpal](https://huggingface.co/sagarmathpal) and [Osman Alenbey](https://huggingface.co/osman93). diff --git a/tasks/src/reinforcement-learning/data.ts b/tasks/src/reinforcement-learning/data.ts deleted file mode 100644 index 5a204777a..000000000 --- a/tasks/src/reinforcement-learning/data.ts +++ /dev/null @@ -1,78 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: - "A curation of widely used datasets for Data Driven Deep Reinforcement Learning (D4RL)", - id: "edbeeching/decision_transformer_gym_replay", - }, - ], - demo: { - inputs: [ - { - label: "State", - content: "Red traffic light, pedestrians are about to pass.", - type: "text", - }, - ], - outputs: [ - { - label: "Action", - content: "Stop the car.", - type: "text", - }, - { - label: "Next State", - content: "Yellow light, pedestrians have crossed.", - type: "text", - }, - ], - }, - metrics: [ - { - description: - "Accumulated reward across all time steps discounted by a factor that ranges between 0 and 1 and determines how much the agent optimizes for future relative to immediate rewards. Measures how good is the policy ultimately found by a given algorithm considering uncertainty over the future.", - id: "Discounted Total Reward", - }, - { - description: - "Average return obtained after running the policy for a certain number of evaluation episodes. As opposed to total reward, mean reward considers how much reward a given algorithm receives while learning.", - id: "Mean Reward", - }, - { - description: - "Measures how good a given algorithm is after a predefined time. Some algorithms may be guaranteed to converge to optimal behavior across many time steps. However, an agent that reaches an acceptable level of optimality after a given time horizon may be preferable to one that ultimately reaches optimality but takes a long time.", - id: "Level of Performance After Some Time", - }, - ], - models: [ - { - description: - "A Reinforcement Learning model trained on expert data from the Gym Hopper environment", - - id: "edbeeching/decision-transformer-gym-hopper-expert", - }, - { - description: - "A PPO agent playing seals/CartPole-v0 using the stable-baselines3 library and the RL Zoo.", - id: "HumanCompatibleAI/ppo-seals-CartPole-v0", - }, - ], - spaces: [ - { - description: "An application for a cute puppy agent learning to catch a stick.", - id: "ThomasSimonini/Huggy", - }, - { - description: "An application to play Snowball Fight with a reinforcement learning agent.", - id: "ThomasSimonini/SnowballFight", - }, - ], - summary: - "Reinforcement learning is the computational approach of learning from action by interacting with an environment through trial and error and receiving rewards (negative or positive) as feedback", - widgetModels: [], - youtubeId: "q0BiUn5LiBc", -}; - -export default taskData; diff --git a/tasks/src/sentence-similarity/about.md b/tasks/src/sentence-similarity/about.md deleted file mode 100644 index ee536235d..000000000 --- a/tasks/src/sentence-similarity/about.md +++ /dev/null @@ -1,97 +0,0 @@ -## Use Cases 🔍 - -### Information Retrieval - -You can extract information from documents using Sentence Similarity models. The first step is to rank documents using Passage Ranking models. You can then get to the top ranked document and search it with Sentence Similarity models by selecting the sentence that has the most similarity to the input query. - -## The Sentence Transformers library - -The [Sentence Transformers](https://www.sbert.net/) library is very powerful for calculating embeddings of sentences, paragraphs, and entire documents. An embedding is just a vector representation of a text and is useful for finding how similar two texts are. - -You can find and use [hundreds of Sentence Transformers](https://huggingface.co/models?library=sentence-transformers&sort=downloads) models from the Hub by directly using the library, playing with the widgets in the browser or using the Inference API. - -## Task Variants - -### Passage Ranking - -Passage Ranking is the task of ranking documents based on their relevance to a given query. The task is evaluated on Mean Reciprocal Rank. These models take one query and multiple documents and return ranked documents according to the relevancy to the query. 📄 - -You can infer with Passage Ranking models using the [Inference API](https://huggingface.co/inference-api). The Passage Ranking model inputs are a query for which we look for relevancy in the documents and the documents we want to search. The model will return scores according to the relevancy of these documents for the query. - -```python -import json -import requests - -API_URL = "https://api-inference.huggingface.co/models/sentence-transformers/msmarco-distilbert-base-tas-b" -headers = {"Authorization": f"Bearer {api_token}"} - -def query(payload): - response = requests.post(API_URL, headers=headers, json=payload) - return response.json() - -data = query( - { - "inputs": { - "source_sentence": "That is a happy person", - "sentences": [ - "That is a happy dog", - "That is a very happy person", - "Today is a sunny day" - ] - } - } -## [0.853, 0.981, 0.655] -``` - -### Semantic Textual Similarity - -Semantic Textual Similarity is the task of evaluating how similar two texts are in terms of meaning. These models take a source sentence and a list of sentences in which we will look for similarities and will return a list of similarity scores. The benchmark dataset is the [Semantic Textual Similarity Benchmark](http://ixa2.si.ehu.eus/stswiki/index.php/STSbenchmark). The task is evaluated on Pearson’s Rank Correlation. - -```python -import json -import requests - -API_URL = "https://api-inference.huggingface.co/models/sentence-transformers/all-MiniLM-L6-v2" -headers = {"Authorization": f"Bearer {api_token}"} - -def query(payload): - response = requests.post(API_URL, headers=headers, json=payload) - return response.json() - -data = query( - { - "inputs": { - "source_sentence": "I'm very happy", - "sentences":["I'm filled with happiness", "I'm happy"] - } - }) - -## [0.605, 0.894] -``` - -You can also infer with the models in the Hub using Sentence Transformer models. - -```python -pip install -U sentence-transformers - -from sentence_transformers import SentenceTransformer, util -sentences = ["I'm happy", "I'm full of happiness"] - -model = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2') - -#Compute embedding for both lists -embedding_1= model.encode(sentences[0], convert_to_tensor=True) -embedding_2 = model.encode(sentences[1], convert_to_tensor=True) - -util.pytorch_cos_sim(embedding_1, embedding_2) -## tensor([[0.6003]]) -``` - -## Useful Resources - -Would you like to learn more about Sentence Transformers and Sentence Similarity? Awesome! Here you can find some curated resources that you may find helpful! - -- [Sentence Transformers Documentation](https://www.sbert.net/) -- [Sentence Transformers in the Hub](https://huggingface.co/blog/sentence-transformers-in-the-hub) -- [Building a Playlist Generator with Sentence Transformers](https://huggingface.co/blog/playlist-generator) -- [Getting Started With Embeddings](https://huggingface.co/blog/getting-started-with-embeddings) diff --git a/tasks/src/sentence-similarity/data.ts b/tasks/src/sentence-similarity/data.ts deleted file mode 100644 index c3a2f5f20..000000000 --- a/tasks/src/sentence-similarity/data.ts +++ /dev/null @@ -1,100 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "Bing queries with relevant passages from various web sources.", - id: "ms_marco", - }, - - ], - demo: { - inputs: [ - - - { - label: "Source sentence", - content: "Machine learning is so easy.", - type: "text", - }, - { - label: "Sentences to compare to", - content: "Deep learning is so straightforward.", - type: "text", - }, - { - label: "", - content: "This is so difficult, like rocket science.", - type: "text", - }, - { - label: "", - content: "I can't believe how much I struggled with this.", - type: "text", - }, - - ], - outputs: [ - { - type: "chart", - data: [ - { - label: "Deep learning is so straightforward.", - score: 0.623, - }, - { - label: "This is so difficult, like rocket science.", - score: 0.413, - }, - { - label: "I can't believe how much I struggled with this.", - score: 0.256, - }, - ], - }, - ], - }, - metrics: [ - { - description: "Reciprocal Rank is a measure used to rank the relevancy of documents given a set of documents. Reciprocal Rank is the reciprocal of the rank of the document retrieved, meaning, if the rank is 3, the Reciprocal Rank is 0.33. If the rank is 1, the Reciprocal Rank is 1", - id: "Mean Reciprocal Rank", - }, - { - description: "The similarity of the embeddings is evaluated mainly on cosine similarity. It is calculated as the cosine of the angle between two vectors. It is particularly useful when your texts are not the same length", - id: "Cosine Similarity", - }, - ], - models: [ - { - description: "This model works well for sentences and paragraphs and can be used for clustering/grouping and semantic searches.", - id: "sentence-transformers/all-mpnet-base-v2", - }, - { - description: "A multilingual model trained for FAQ retrieval.", - id: "clips/mfaq", - }, - ], - spaces: [ - { - description: "An application that leverages sentence similarity to answer questions from YouTube videos.", - id: "Gradio-Blocks/Ask_Questions_To_YouTube_Videos", - }, - { - description: "An application that retrieves relevant PubMed abstracts for a given online article which can be used as further references.", - id: "Gradio-Blocks/pubmed-abstract-retriever", - }, - { - description: "An application that leverages sentence similarity to summarize text.", - id: "nickmuchi/article-text-summarizer", - }, - { - description: "A guide that explains how Sentence Transformers can be used for semantic search.", - id: "sentence-transformers/Sentence_Transformers_for_semantic_search", - }, - ], - summary: "Sentence Similarity is the task of determining how similar two texts are. Sentence similarity models convert input texts into vectors (embeddings) that capture semantic information and calculate how close (similar) they are between them. This task is particularly useful for information retrieval and clustering/grouping.", - widgetModels: ["sentence-transformers/all-MiniLM-L6-v2"], - youtubeId: "VCZq5AkbNEU", -}; - -export default taskData; diff --git a/tasks/src/summarization/about.md b/tasks/src/summarization/about.md deleted file mode 100644 index 00370c2f6..000000000 --- a/tasks/src/summarization/about.md +++ /dev/null @@ -1,57 +0,0 @@ -## Use Cases - -### Research Paper Summarization 🧐 - -Research papers can be summarized to allow researchers to spend less time selecting which articles to read. There are several approaches you can take for a task like this: - -1. Use an existing extractive summarization model on the Hub to do inference. -2. Pick an existing language model trained for academic papers. This model can then be trained in a process called fine-tuning so it can solve the summarization task. -3. Use a sequence-to-sequence model like [T5](https://huggingface.co/docs/transformers/model_doc/t5) for abstractive text summarization. - -## Inference - -You can use the 🤗 Transformers library `summarization` pipeline to infer with existing Summarization models. If no model name is provided the pipeline will be initialized with [sshleifer/distilbart-cnn-12-6](https://huggingface.co/sshleifer/distilbart-cnn-12-6). - -```python -from transformers import pipeline - -classifier = pipeline("summarization") -classifier("Paris is the capital and most populous city of France, with an estimated population of 2,175,601 residents as of 2018, in an area of more than 105 square kilometres (41 square miles). The City of Paris is the centre and seat of government of the region and province of Île-de-France, or Paris Region, which has an estimated population of 12,174,880, or about 18 percent of the population of France as of 2017.") -## [{ "summary_text": " Paris is the capital and most populous city of France..." }] -``` - -You can use [huggingface.js](https://github.com/huggingface/huggingface.js) to infer summarization models on Hugging Face Hub. - -```javascript -import { HfInference } from "@huggingface/inference"; - -const inference = new HfInference(HF_ACCESS_TOKEN); -const inputs = "Paris is the capital and most populous city of France, with an estimated population of 2,175,601 residents as of 2018, in an area of more than 105 square kilometres (41 square miles). The City of Paris is the centre and seat of government of the region and province of Île-de-France, or Paris Region, which has an estimated population of 12,174,880, or about 18 percent of the population of France as of 2017." - -await inference.summarization({ - model: 'sshleifer/distilbart-cnn-12-6', - inputs -}) -``` - -## Useful Resources - -Would you like to learn more about the topic? Awesome! Here you can find some curated resources that you may find helpful! - -- [Course Chapter on Summarization](https://huggingface.co/course/chapter7/5?fw=pt) -- [Distributed Training: Train BART/T5 for Summarization using 🤗 Transformers and Amazon SageMaker](https://huggingface.co/blog/sagemaker-distributed-training-seq2seq) - -### Notebooks - -- [PyTorch](https://github.com/huggingface/notebooks/blob/master/examples/summarization.ipynb) -- [TensorFlow](https://github.com/huggingface/notebooks/blob/master/examples/summarization-tf.ipynb) - -### Scripts for training - -- [PyTorch](https://github.com/huggingface/transformers/tree/main/examples/pytorch/summarization) -- [TensorFlow](https://github.com/huggingface/transformers/tree/main/examples/tensorflow/summarization) -- [Flax](https://github.com/huggingface/transformers/tree/main/examples/flax/summarization) - -### Documentation - -- [Summarization task guide](https://huggingface.co/docs/transformers/tasks/summarization) \ No newline at end of file diff --git a/tasks/src/summarization/data.ts b/tasks/src/summarization/data.ts deleted file mode 100644 index d6926701f..000000000 --- a/tasks/src/summarization/data.ts +++ /dev/null @@ -1,72 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "News articles in five different languages along with their summaries. Widely used for benchmarking multilingual summarization models.", - id: "mlsum", - }, - { - description: "English conversations and their summaries. Useful for benchmarking conversational agents.", - id: "samsum", - }, - ], - demo: { - inputs: [ - { - label: "Input", - content: - "The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building, and the tallest structure in Paris. Its base is square, measuring 125 metres (410 ft) on each side. It was the first structure to reach a height of 300 metres. Excluding transmitters, the Eiffel Tower is the second tallest free-standing structure in France after the Millau Viaduct.", - type: "text", - }, - - ], - outputs: [ - { - label: "Output", - content: - "The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building. It was the first structure to reach a height of 300 metres.", - type: "text", - }, - ], - }, - metrics: [ - { - description: "The generated sequence is compared against its summary, and the overlap of tokens are counted. ROUGE-N refers to overlap of N subsequent tokens, ROUGE-1 refers to overlap of single tokens and ROUGE-2 is the overlap of two subsequent tokens.", - id: "rouge", - }, - ], - models: [ - { - description: "A strong summarization model trained on English news articles. Excels at generating factual summaries.", - id: "facebook/bart-large-cnn", - }, - { - description: "A summarization model trained on medical articles.", - id: "google/bigbird-pegasus-large-pubmed", - }, - ], - spaces: [ - { - description: "An application that can summarize long paragraphs.", - id: "pszemraj/summarize-long-text", - }, - { - description: "A much needed summarization application for terms and conditions.", - id: "ml6team/distilbart-tos-summarizer-tosdr", - }, - { - description: "An application that summarizes long documents.", - id: "pszemraj/document-summarization", - }, - { - description: "An application that can detect errors in abstractive summarization.", - id: "ml6team/post-processing-summarization", - }, - ], - summary: "Summarization is the task of producing a shorter version of a document while preserving its important information. Some models can extract text from the original input, while other models can generate entirely new text.", - widgetModels: ["sshleifer/distilbart-cnn-12-6"], - youtubeId: "yHnr5Dk2zCI", -}; - -export default taskData; diff --git a/tasks/src/table-question-answering/about.md b/tasks/src/table-question-answering/about.md deleted file mode 100644 index b4fd55f87..000000000 --- a/tasks/src/table-question-answering/about.md +++ /dev/null @@ -1,43 +0,0 @@ -## Use Cases - -### SQL execution - -You can use the Table Question Answering models to simulate SQL execution by inputting a table. - -### Table Question Answering - -Table Question Answering models are capable of answering questions based on a table. - -## Task Variants - -This place can be filled with variants of this task if there's any. - -## Inference - -You can infer with TableQA models using the 🤗 Transformers library. - -```python -from transformers import pipeline -import pandas as pd - -# prepare table + question -data = {"Actors": ["Brad Pitt", "Leonardo Di Caprio", "George Clooney"], "Number of movies": ["87", "53", "69"]} -table = pd.DataFrame.from_dict(data) -question = "how many movies does Leonardo Di Caprio have?" - -# pipeline model -# Note: you must to install torch-scatter first. -tqa = pipeline(task="table-question-answering", model="google/tapas-large-finetuned-wtq") - -# result - -print(tqa(table=table, query=query)['cells'][0]) -#53 - -``` - -## Useful Resources - -In this area, you can insert useful resources about how to train or use a model for this task. - -This task page is complete thanks to the efforts of [Hao Kim Tieu](https://huggingface.co/haotieu). 🦸 \ No newline at end of file diff --git a/tasks/src/table-question-answering/data.ts b/tasks/src/table-question-answering/data.ts deleted file mode 100644 index 9086985a7..000000000 --- a/tasks/src/table-question-answering/data.ts +++ /dev/null @@ -1,63 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "The WikiTableQuestions dataset is a large-scale dataset for the task of question answering on semi-structured tables.", - id: "wikitablequestions", - }, - { - description: "WikiSQL is a dataset of 80654 hand-annotated examples of questions and SQL queries distributed across 24241 tables from Wikipedia.", - id: "wikisql", - }, - ], - demo: { - inputs: [ - { table: [ - ["Rank", "Name", "No.of reigns", "Combined days"], - ["1", "lou Thesz", "3", "3749"], - ["2", "Ric Flair", "8", "3103"], - ["3", "Harley Race", "7", "1799"], - ], - type: "tabular" }, - - { label: "Question", - content: "What is the number of reigns for Harley Race?", - type: "text" }, - ], - outputs: [ - { label: "Result", - content: "7", - type: "text" }, - ], - }, - metrics: - [ - { description: "Checks whether the predicted answer(s) is the same as the ground-truth answer(s).", - id: "Denotation Accuracy" }, - ], - models: - [ - { - description: "A table question answering model that is capable of neural SQL execution, i.e., employ TAPEX to execute a SQL query on a given table.", - id: "microsoft/tapex-base", - }, - { - description: "A robust table question answering model.", - id: "google/tapas-base-finetuned-wtq", - - }, - ], - spaces: [ - { - description: "An application that answers questions based on table CSV files.", - id: "katanaml/table-query", - - }, - ], - summary: "Table Question Answering (Table QA) is the answering a question about an information on a given table.", - widgetModels: ["google/tapas-base-finetuned-wtq"], -}; - - -export default taskData; diff --git a/tasks/src/tabular-classification/about.md b/tasks/src/tabular-classification/about.md deleted file mode 100644 index 17ba99456..000000000 --- a/tasks/src/tabular-classification/about.md +++ /dev/null @@ -1,67 +0,0 @@ -## About the Task - -Tabular classification is the task of assigning a label or class given a limited number of attributes. For example, the input can be data related to a customer (balance of the customer, the time being a customer, or more) and the output can be whether the customer will churn from the service or not. -There are three types of categorical variables: - -- Binary variables: Variables that can take two values, like yes or no, open or closed. The task of predicting binary variables is called binary classification. -- Ordinal variables: Variables with a ranking relationship, e.g., good, insignificant, and bad product reviews. The task of predicting ordinal variables is called ordinal classification. -- Nominal variables: Variables with no ranking relationship among them, e.g., predicting an animal from their weight and height, where categories are cat, dog, or bird. The task of predicting nominal variables is called multinomial classification. - -## Use Cases - -### Fraud Detection -Tabular classification models can be used in detecting fraudulent credit card transactions, where the features could be the amount of the transaction and the account balance, and the target to predict could be whether the transaction is fraudulent or not. This is an example of binary classification. - -### Churn Prediction -Tabular classification models can be used in predicting customer churn in telecommunication. An example dataset for the task is hosted [here](https://huggingface.co/datasets/scikit-learn/churn-prediction). - - -# Model Hosting and Inference - -You can use [skops](https://skops.readthedocs.io/) for model hosting and inference on the Hugging Face Hub. This library is built to improve production workflows of various libraries that are used to train tabular models, including [sklearn](https://scikit-learn.org/stable/) and [xgboost](https://xgboost.readthedocs.io/en/stable/). Using `skops` you can: -- Easily use inference API, -- Build neat UIs with one line of code, -- Programmatically create model cards, -- Securely serialize your scikit-learn model. (See limitations of using pickle [here](https://huggingface.co/docs/hub/security-pickle).) - -You can push your model as follows: - -```python -from skops import hub_utils -# initialize a repository with a trained model -local_repo = "/path_to_new_repo" -hub_utils.init(model, dst=local_repo) -# push to Hub! -hub_utils.push("username/my-awesome-model", source=local_repo) -``` - -Once the model is pushed, you can infer easily. - -```python -import skops.hub_utils as hub_utils -import pandas as pd -data = pd.DataFrame(your_data) -# Load the model from the Hub -res = hub_utils.get_model_output("username/my-awesome-model", data) -``` - -You can launch a UI for your model with only one line of code! - -```python -import gradio as gr -gr.Interface.load("huggingface/username/my-awesome-model").launch() -``` - - -## Useful Resources - -- Check out the [scikit-learn organization](https://huggingface.co/scikit-learn) to learn more about different algorithms used for this task. -- [Skops documentation](https://skops.readthedocs.io/en/latest/) -- [Skops announcement blog](https://huggingface.co/blog/skops) -- [Notebook: Persisting your scikit-learn model using skops](https://www.kaggle.com/code/unofficialmerve/persisting-your-scikit-learn-model-using-skops) -- Check out [interactive sklearn examples](https://huggingface.co/sklearn-docs) built with ❤️ using Gradio. - - -### Training your own model in just a few seconds - -We have built a [baseline trainer](https://huggingface.co/spaces/scikit-learn/baseline-trainer) application to which you can drag and drop your dataset. It will train a baseline and push it to your Hugging Face Hub profile with a model card containing information about the model. \ No newline at end of file diff --git a/tasks/src/tabular-classification/data.ts b/tasks/src/tabular-classification/data.ts deleted file mode 100644 index 02a09c061..000000000 --- a/tasks/src/tabular-classification/data.ts +++ /dev/null @@ -1,69 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "A comprehensive curation of datasets covering all benchmarks.", - id: "inria-soda/tabular-benchmark", - }, - ], - demo: { - inputs: [ - { - table: [ - ["Glucose", "Blood Pressure ", "Skin Thickness", "Insulin", "BMI"], - ["148", "72", "35", "0", "33.6"], - ["150", "50", "30", "0", "35.1"], - ["141", "60", "29", "1", "39.2"], - ], - type: "tabular", - }, - ], - outputs: [ - { - table: [["Diabetes"], ["1"], ["1"], ["0"]], - type: "tabular", - }, - ], - }, - metrics: [ - { - description: "", - id: "accuracy", - }, - { - description: "", - id: "recall", - }, - { - description: "", - id: "precision", - }, - { - description: "", - id: "f1", - }, - ], - models: [ - { - description: "Breast cancer prediction model based on decision trees.", - id: "scikit-learn/cancer-prediction-trees", - }, - ], - spaces: [ - { - description: "An application that can predict defective products on a production line.", - id: "scikit-learn/tabular-playground", - }, - { - description: "An application that compares various tabular classification techniques on different datasets.", - id: "scikit-learn/classification", - }, - ], - summary: - "Tabular classification is the task of classifying a target category (a group) based on set of attributes.", - widgetModels: ["scikit-learn/tabular-playground"], - youtubeId: "", -}; - -export default taskData; diff --git a/tasks/src/tabular-regression/about.md b/tasks/src/tabular-regression/about.md deleted file mode 100644 index 5ff59ca8d..000000000 --- a/tasks/src/tabular-regression/about.md +++ /dev/null @@ -1,91 +0,0 @@ -## About the Task - -Tabular regression is the task of predicting a numerical value given a set of attributes/features. *Tabular* meaning that data is stored in a table (like an excel sheet), and each sample is contained in its own row. The features used to predict our target can be both numerical and categorical. However, including categorical features often requires additional preprocessing/feature engineering (a few models do accept categorical features directly, like [CatBoost](https://catboost.ai/)). An example of tabular regression would be predicting the weight of a fish given its' species and length. - -## Use Cases - -### Sales Prediction: a Use Case for Predicting a Continuous Target Variable - Here the objective is to predict a continuous variable based on a set of input variable(s). For example, predicting `sales` of an ice cream shop based on `temperature` of weather and `duration of hours` shop was open. Here we can build a regression model with `temperature` and `duration of hours` as input variable and `sales` as target variable. - -### Missing Value Imputation for Other Tabular Tasks - In real-world applications, due to human error or other reasons, some of the input values can be missing or there might not be any recorded data. Considering the example above, say the shopkeeper's watch was broken and they forgot to calculate the `hours` for which the shop was open. This will lead to a missing value in their dataset. In this case, missing values could be replaced it with zero, or average hours for which the shop is kept open. Another approach we can try is to use `temperature` and `sales` variables to predict the `hours` variable here. - - - -## Model Training - -A simple regression model can be created using `sklearn` as follows: - -```python -#set the input features -X = data[["Feature 1", "Feature 2", "Feature 3"]] -#set the target variable -y = data["Target Variable"] -#initialize the model -model = LinearRegression() -#Fit the model -model.fit(X, y) -``` - - -# Model Hosting and Inference - -You can use [skops](https://skops.readthedocs.io/) for model hosting and inference on the Hugging Face Hub. This library is built to improve production workflows of various libraries that are used to train tabular models, including [sklearn](https://scikit-learn.org/stable/) and [xgboost](https://xgboost.readthedocs.io/en/stable/). Using `skops` you can: -- Easily use inference API, -- Build neat UIs with one line of code, -- Programmatically create model cards, -- Securely serialize your models. (See limitations of using pickle [here](https://huggingface.co/docs/hub/security-pickle).) - -You can push your model as follows: - -```python -from skops import hub_utils -# initialize a repository with a trained model -local_repo = "/path_to_new_repo" -hub_utils.init(model, dst=local_repo) -# push to Hub! -hub_utils.push("username/my-awesome-model", source=local_repo) -``` - -Once the model is pushed, you can infer easily. - -```python -import skops.hub_utils as hub_utils -import pandas as pd -data = pd.DataFrame(your_data) -# Load the model from the Hub -res = hub_utils.get_model_output("username/my-awesome-model", data) -``` - -You can launch a UI for your model with only one line of code! - -```python -import gradio as gr -gr.Interface.load("huggingface/username/my-awesome-model").launch() -``` - -## Useful Resources - -- [Skops documentation](https://skops.readthedocs.io/en/stable/index.html) - -- Check out [interactive sklearn examples](https://huggingface.co/sklearn-docs) built with ❤️ using Gradio. -- [Notebook: Persisting your scikit-learn model using skops](https://www.kaggle.com/code/unofficialmerve/persisting-your-scikit-learn-model-using-skops) - - -- For starting with tabular regression: - - Doing [Exploratory Data Analysis](https://neptune.ai/blog/exploratory-data-analysis-for-tabular-data) for tabular data. - - The data considered here consists of details of Olympic athletes and medal results from Athens 1896 to Rio 2016. - - Here you can learn more about how to explore and analyse the data and visualize them in order to get a better understanding of dataset. - - Building your [first ML model](https://www.kaggle.com/code/dansbecker/your-first-machine-learning-model). - -- Intermediate level tutorials on tabular regression: - - [A Short Chronology of Deep Learning for Tabular Data](https://sebastianraschka.com/blog/2022/deep-learning-for-tabular-data.html) by Sebastian Raschka. - - - -### Training your own model in just a few seconds - -We have built a [baseline trainer](https://huggingface.co/spaces/scikit-learn/baseline-trainer) application to which you can drag and drop your dataset. It will train a baseline and push it to your Hugging Face Hub profile with a model card containing information about the model. - -This page was made possible thanks to efforts of [Brenden Connors](https://huggingface.co/brendenc) and [Ayush Bihani](https://huggingface.co/hsuyab). - diff --git a/tasks/src/tabular-regression/data.ts b/tasks/src/tabular-regression/data.ts deleted file mode 100644 index ec7dcc888..000000000 --- a/tasks/src/tabular-regression/data.ts +++ /dev/null @@ -1,58 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "A comprehensive curation of datasets covering all benchmarks.", - id: "inria-soda/tabular-benchmark", - }, - ], - demo: { - inputs: [ - { - table: [ - ["Car Name", "Horsepower", "Weight"], - ["ford torino", "140", "3,449"], - ["amc hornet", "97", "2,774"], - ["toyota corolla", "65", "1,773"], - - ], - type: "tabular", - }, - ], - outputs: [ - { - table: [["MPG (miles per gallon)"], ["17"], ["18"], ["31"]], - type: "tabular", - }, - ], - }, - metrics: [ - { - description: "", - id: "mse", - }, - { - description: "Coefficient of determination (or R-squared) is a measure of how well the model fits the data. Higher R-squared is considered a better fit.", - id: "r-squared", - }, - ], - models: [ - { - description: "Fish weight prediction based on length measurements and species.", - id: "scikit-learn/Fish-Weight", - }, - ], - spaces: [ - { - description: "An application that can predict weight of a fish based on set of attributes.", - id: "scikit-learn/fish-weight-prediction", - }, - ], - summary: - "Tabular regression is the task of predicting a numerical value given a set of attributes.", - widgetModels: ["scikit-learn/Fish-Weight"], - youtubeId: "", -}; - -export default taskData; diff --git a/tasks/src/tasksData.ts b/tasks/src/tasksData.ts deleted file mode 100644 index 1de5acc6e..000000000 --- a/tasks/src/tasksData.ts +++ /dev/null @@ -1,104 +0,0 @@ -import { type PipelineType, PIPELINE_DATA } from "../../js/src/lib/interfaces/Types"; -import type { TaskDataCustom, TaskData } from "./Types"; - -import audioClassification from "./audio-classification/data"; -import audioToAudio from "./audio-to-audio/data"; -import automaticSpeechRecognition from "./automatic-speech-recognition/data"; -import conversational from "./conversational/data"; -import documentQuestionAnswering from "./document-question-answering/data"; -import featureExtraction from "./feature-extraction/data"; -import fillMask from "./fill-mask/data"; -import imageClassification from "./image-classification/data"; -import imageToImage from "./image-to-image/data"; -import imageToText from "./image-to-text/data"; -import imageSegmentation from "./image-segmentation/data"; -import objectDetection from "./object-detection/data"; -import depthEstimation from "./depth-estimation/data"; -import placeholder from "./placeholder/data"; -import reinforcementLearning from "./reinforcement-learning/data"; -import questionAnswering from "./question-answering/data"; -import sentenceSimilarity from "./sentence-similarity/data"; -import summarization from "./summarization/data"; -import tableQuestionAnswering from "./table-question-answering/data"; -import tabularClassification from "./tabular-classification/data"; -import tabularRegression from "./tabular-regression/data"; -import textToImage from "./text-to-image/data"; -import textToSpeech from "./text-to-speech/data"; -import tokenClassification from "./token-classification/data"; -import translation from "./translation/data"; -import textClassification from "./text-classification/data"; -import textGeneration from "./text-generation/data"; -import textToVideo from "./text-to-video/data"; -import unconditionalImageGeneration from "./unconditional-image-generation/data"; -import videoClassification from "./video-classification/data"; -import visualQuestionAnswering from "./visual-question-answering/data"; -import zeroShotClassification from "./zero-shot-classification/data"; -import zeroShotImageClassification from "./zero-shot-image-classification/data"; -import { TASKS_MODEL_LIBRARIES } from "./const"; - -// To make comparisons easier, task order is the same as in const.ts -// Tasks set to undefined won't have an associated task page. -// Tasks that call getData() without the second argument will -// have a "placeholder" page. -export const TASKS_DATA: Record = { - "audio-classification": getData("audio-classification", audioClassification), - "audio-to-audio": getData("audio-to-audio", audioToAudio), - "automatic-speech-recognition": getData("automatic-speech-recognition", automaticSpeechRecognition), - "conversational": getData("conversational", conversational), - "depth-estimation": getData("depth-estimation", depthEstimation), - "document-question-answering": getData("document-question-answering", documentQuestionAnswering), - "feature-extraction": getData("feature-extraction", featureExtraction), - "fill-mask": getData("fill-mask", fillMask), - "graph-ml": undefined, - "image-classification": getData("image-classification", imageClassification), - "image-segmentation": getData("image-segmentation", imageSegmentation), - "image-to-image": getData("image-to-image", imageToImage), - "image-to-text": getData("image-to-text", imageToText), - "multiple-choice": undefined, - "object-detection": getData("object-detection", objectDetection), - "video-classification": getData("video-classification", videoClassification), - "other": undefined, - "question-answering": getData("question-answering", questionAnswering), - "reinforcement-learning": getData("reinforcement-learning", reinforcementLearning), - "robotics": undefined, - "sentence-similarity": getData("sentence-similarity", sentenceSimilarity), - "summarization": getData("summarization", summarization), - "table-question-answering": getData("table-question-answering", tableQuestionAnswering), - "table-to-text": undefined, - "tabular-classification": getData("tabular-classification", tabularClassification), - "tabular-regression": getData("tabular-regression", tabularRegression), - "tabular-to-text": undefined, - "text-classification": getData("text-classification", textClassification), - "text-generation": getData("text-generation", textGeneration), - "text-retrieval": undefined, - "text-to-image": getData("text-to-image", textToImage), - "text-to-speech": getData("text-to-speech", textToSpeech), - "text-to-audio": undefined, - "text-to-video": getData("text-to-video", textToVideo), - "text2text-generation": undefined, - "time-series-forecasting": undefined, - "token-classification": getData("token-classification", tokenClassification), - "translation": getData("translation", translation), - "unconditional-image-generation": getData("unconditional-image-generation", unconditionalImageGeneration), - "visual-question-answering": getData("visual-question-answering", visualQuestionAnswering), - "voice-activity-detection": undefined, - "zero-shot-classification": getData("zero-shot-classification", zeroShotClassification), - "zero-shot-image-classification": getData("zero-shot-image-classification", zeroShotImageClassification), -} as const; - -/* - * Return the whole TaskData object for a certain task. - * If the partialTaskData argument is left undefined, - * the default placholder data will be used. - */ -function getData( - type: PipelineType, - partialTaskData: TaskDataCustom = placeholder -): TaskData { - return { - ...partialTaskData, - id: type, - label: PIPELINE_DATA[type].name, - libraries: TASKS_MODEL_LIBRARIES[type], - }; -} diff --git a/tasks/src/text-classification/about.md b/tasks/src/text-classification/about.md deleted file mode 100644 index 564d2e4cc..000000000 --- a/tasks/src/text-classification/about.md +++ /dev/null @@ -1,171 +0,0 @@ -## Use Cases - -### Sentiment Analysis on Customer Reviews - -You can track the sentiments of your customers from the product reviews using sentiment analysis models. This can help understand churn and retention by grouping reviews by sentiment, to later analyze the text and make strategic decisions based on this knowledge. - -## Task Variants - -### Natural Language Inference (NLI) - -In NLI the model determines the relationship between two given texts. Concretely, the model takes a premise and a hypothesis and returns a class that can either be: - -- **entailment**, which means the hypothesis is true. -- **contraction**, which means the hypothesis is false. -- **neutral**, which means there's no relation between the hypothesis and the premise. - -The benchmark dataset for this task is GLUE (General Language Understanding Evaluation). NLI models have different variants, such as Multi-Genre NLI, Question NLI and Winograd NLI. - -### Multi-Genre NLI (MNLI) - -MNLI is used for general NLI. Here are som examples: - -``` -Example 1: - Premise: A man inspects the uniform of a figure in some East Asian country. - Hypothesis: The man is sleeping. - Label: Contradiction - -Example 2: - Premise: Soccer game with multiple males playing. - Hypothesis: Some men are playing a sport. - Label: Entailment -``` - -#### Inference - -You can use the 🤗 Transformers library `text-classification` pipeline to infer with NLI models. - -```python -from transformers import pipeline - -classifier = pipeline("text-classification", model = "roberta-large-mnli") -classifier("A soccer game with multiple males playing. Some men are playing a sport.") -## [{'label': 'ENTAILMENT', 'score': 0.98}] -``` - -### Question Natural Language Inference (QNLI) - -QNLI is the task of determining if the answer to a certain question can be found in a given document. If the answer can be found the label is “entailment”. If the answer cannot be found the label is “not entailment". - -``` -Question: What percentage of marine life died during the extinction? -Sentence: It is also known as the “Great Dying” because it is considered the largest mass extinction in the Earth’s history. -Label: not entailment - -Question: Who was the London Weekend Television’s Managing Director? -Sentence: The managing director of London Weekend Television (LWT), Greg Dyke, met with the representatives of the "big five" football clubs in England in 1990. -Label: entailment -``` - -#### Inference - -You can use the 🤗 Transformers library `text-classification` pipeline to infer with QNLI models. The model returns the label and the confidence. - -```python -from transformers import pipeline - -classifier = pipeline("text-classification", model = "cross-encoder/qnli-electra-base") -classifier("Where is the capital of France?, Paris is the capital of France.") -## [{'label': 'entailment', 'score': 0.997}] -``` - -### Sentiment Analysis - -In Sentiment Analysis, the classes can be polarities like positive, negative, neutral, or sentiments such as happiness or anger. - -#### Inference - -You can use the 🤗 Transformers library with the `sentiment-analysis` pipeline to infer with Sentiment Analysis models. The model returns the label with the score. - -```python -from transformers import pipeline - -classifier = pipeline("sentiment-analysis") -classifier("I loved Star Wars so much!") -## [{'label': 'POSITIVE', 'score': 0.99} -``` - -### Quora Question Pairs - -Quora Question Pairs models assess whether two provided questions are paraphrases of each other. The model takes two questions and returns a binary value, with 0 being mapped to “not paraphrase” and 1 to “paraphrase". The benchmark dataset is [Quora Question Pairs](https://huggingface.co/datasets/glue/viewer/qqp/test) inside the [GLUE benchmark](https://huggingface.co/datasets/glue). The dataset consists of question pairs and their labels. - -``` -Question1: “How can I increase the speed of my internet connection while using a VPN?” -Question2: How can Internet speed be increased by hacking through DNS? -Label: Not paraphrase - -Question1: “What can make Physics easy to learn?” -Question2: “How can you make physics easy to learn?” -Label: Paraphrase -``` - -#### Inference - -You can use the 🤗 Transformers library `text-classification` pipeline to infer with QQPI models. - -```python -from transformers import pipeline - -classifier = pipeline("text-classification", model = "textattack/bert-base-uncased-QQP") -classifier("Which city is the capital of France?, Where is the capital of France?") -## [{'label': 'paraphrase', 'score': 0.998}] -``` - -You can use [huggingface.js](https://github.com/huggingface/huggingface.js) to infer text classification models on Hugging Face Hub. - -```javascript -import { HfInference } from "@huggingface/inference"; - -const inference = new HfInference(HF_ACCESS_TOKEN); -await inference.conversational({ - model: 'distilbert-base-uncased-finetuned-sst-2-english', - inputs: "I love this movie!" -}) -``` -### Grammatical Correctness - -Linguistic Acceptability is the task of assessing the grammatical acceptability of a sentence. The classes in this task are “acceptable” and “unacceptable”. The benchmark dataset used for this task is [Corpus of Linguistic Acceptability (CoLA)](https://huggingface.co/datasets/glue/viewer/cola/test). The dataset consists of texts and their labels. - -``` -Example: Books were sent to each other by the students. -Label: Unacceptable - -Example: She voted for herself. -Label: Acceptable. -``` - -#### Inference - -```python -from transformers import pipeline - -classifier = pipeline("text-classification", model = "textattack/distilbert-base-uncased-CoLA") -classifier("I will walk to home when I went through the bus.") -## [{'label': 'unacceptable', 'score': 0.95}] -``` - -## Useful Resources - -Would you like to learn more about the topic? Awesome! Here you can find some curated resources that you may find helpful! - -- [Course Chapter on Fine-tuning a Text Classification Model](https://huggingface.co/course/chapter3/1?fw=pt) -- [Getting Started with Sentiment Analysis using Python](https://huggingface.co/blog/sentiment-analysis-python) -- [Sentiment Analysis on Encrypted Data with Homomorphic Encryption](https://huggingface.co/blog/sentiment-analysis-fhe) -- [Leveraging Hugging Face for complex text classification use cases](https://huggingface.co/blog/classification-use-cases) - -### Notebooks - -- [PyTorch](https://github.com/huggingface/notebooks/blob/master/examples/text_classification.ipynb) -- [TensorFlow](https://github.com/huggingface/notebooks/blob/master/examples/text_classification-tf.ipynb) -- [Flax](https://github.com/huggingface/notebooks/blob/master/examples/text_classification_flax.ipynb) - -### Scripts for training - -- [PyTorch](https://github.com/huggingface/transformers/tree/main/examples/pytorch/text-classification) -- [TensorFlow](https://github.com/huggingface/transformers/tree/main/examples/tensorflow/text-classification) -- [Flax](https://github.com/huggingface/transformers/tree/main/examples/flax/text-classification) - -### Documentation - -- [Text classification task guide](https://huggingface.co/docs/transformers/tasks/sequence_classification) \ No newline at end of file diff --git a/tasks/src/text-classification/data.ts b/tasks/src/text-classification/data.ts deleted file mode 100644 index 61a2fd69b..000000000 --- a/tasks/src/text-classification/data.ts +++ /dev/null @@ -1,90 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "A widely used dataset used to benchmark multiple variants of text classification.", - id: "glue", - }, - { - description: "A text classification dataset used to benchmark natural language inference models", - id: "snli", - }, - ], - demo: { - inputs: [ - { - label: "Input", - content: "I love Hugging Face!", - type: "text", - }, - - ], - outputs: [ - { - type: "chart", - data: [ - { - label: "POSITIVE", - score: 0.90, - }, - { - label: "NEUTRAL", - score: 0.10, - }, - { - label: "NEGATIVE", - score: 0.00, - }, - ], - }, - ], - }, - metrics: [ - { - description: "", - id: "accuracy", - }, - { - description: "", - id: "recall", - }, - { - description: "", - id: "precision", - }, - { - description: "The F1 metric is the harmonic mean of the precision and recall. It can be calculated as: F1 = 2 * (precision * recall) / (precision + recall)", - id: "f1", - }, - ], - models: [ - { - description: "A robust model trained for sentiment analysis.", - id: "distilbert-base-uncased-finetuned-sst-2-english", - }, - { - description: "Multi-genre natural language inference model.", - id: "roberta-large-mnli", - }, - ], - spaces: [ - { - description: "An application that can classify financial sentiment.", - id: "IoannisTr/Tech_Stocks_Trading_Assistant", - }, - { - description: "A dashboard that contains various text classification tasks.", - id: "miesnerjacob/Multi-task-NLP", - }, - { - description: "An application that analyzes user reviews in healthcare.", - id: "spacy/healthsea-demo", - }, - ], - summary: "Text Classification is the task of assigning a label or class to a given text. Some use cases are sentiment analysis, natural language inference, and assessing grammatical correctness.", - widgetModels: ["distilbert-base-uncased-finetuned-sst-2-english"], - youtubeId: "leNG9fN9FQU", -}; - -export default taskData; diff --git a/tasks/src/text-generation/about.md b/tasks/src/text-generation/about.md deleted file mode 100644 index 119a81589..000000000 --- a/tasks/src/text-generation/about.md +++ /dev/null @@ -1,128 +0,0 @@ -This task covers guides on both [text-generation](https://huggingface.co/models?pipeline_tag=text-generation&sort=downloads) and [text-to-text generation](https://huggingface.co/models?pipeline_tag=text2text-generation&sort=downloads) models. Popular large language models that are used for chats or following instructions are also covered in this task. You can find the list of selected open-source large language models [here](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard), ranked by their performance scores. - -## Use Cases - -### Instruction Models - -A model trained for text generation can be later adapted to follow instructions. One of the most used open-source models for instruction is OpenAssistant, which you can try [at Hugging Chat](https://huggingface.co/chat). - -### Code Generation - -A Text Generation model, also known as a causal language model, can be trained on code from scratch to help the programmers in their repetitive coding tasks. One of the most popular open-source models for code generation is StarCoder, which can generate code in 80+ languages. You can try it [here](https://huggingface.co/spaces/bigcode/bigcode-playground). - -### Stories Generation - -A story generation model can receive an input like "Once upon a time" and proceed to create a story-like text based on those first words. You can try [this application](https://huggingface.co/spaces/mosaicml/mpt-7b-storywriter) which contains a model trained on story generation, by MosaicML. - -If your generative model training data is different than your use case, you can train a causal language model from scratch. Learn how to do it in the free transformers [course](https://huggingface.co/course/chapter7/6?fw=pt)! - -## Task Variants - -### Completion Generation Models - -A popular variant of Text Generation models predicts the next word given a bunch of words. Word by word a longer text is formed that results in for example: - -- Given an incomplete sentence, complete it. -- Continue a story given the first sentences. -- Provided a code description, generate the code. - -The most popular models for this task are GPT-based models or [Llama series](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf). These models are trained on data that has no labels, so you just need plain text to train your own model. You can train text generation models to generate a wide variety of documents, from code to stories. - -### Text-to-Text Generation Models - -These models are trained to learn the mapping between a pair of texts (e.g. translation from one language to another). The most popular variants of these models are [FLAN-T5](https://huggingface.co/google/flan-t5-xxl), and [BART](https://huggingface.co/docs/transformers/model_doc/bart). Text-to-Text models are trained with multi-tasking capabilities, they can accomplish a wide range of tasks, including summarization, translation, and text classification. - -## Inference - -You can use the 🤗 Transformers library `text-generation` pipeline to do inference with Text Generation models. It takes an incomplete text and returns multiple outputs with which the text can be completed. - -```python -from transformers import pipeline -generator = pipeline('text-generation', model = 'gpt2') -generator("Hello, I'm a language model", max_length = 30, num_return_sequences=3) -## [{'generated_text': "Hello, I'm a language modeler. So while writing this, when I went out to meet my wife or come home she told me that my"}, -## {'generated_text': "Hello, I'm a language modeler. I write and maintain software in Python. I love to code, and that includes coding things that require writing"}, ... -``` - - -[Text-to-Text generation models](https://huggingface.co/models?pipeline_tag=text2text-generation&sort=downloads) have a separate pipeline called `text2text-generation`. This pipeline takes an input containing the sentence including the task and returns the output of the accomplished task. - -```python -from transformers import pipeline - -text2text_generator = pipeline("text2text-generation") -text2text_generator("question: What is 42 ? context: 42 is the answer to life, the universe and everything") -[{'generated_text': 'the answer to life, the universe and everything'}] - -text2text_generator("translate from English to French: I'm very happy") -[{'generated_text': 'Je suis très heureux'}] -``` - -You can use [huggingface.js](https://github.com/huggingface/huggingface.js) to infer text classification models on Hugging Face Hub. - -```javascript -import { HfInference } from "@huggingface/inference"; - -const inference = new HfInference(HF_ACCESS_TOKEN); -await inference.conversational({ - model: 'distilbert-base-uncased-finetuned-sst-2-english', - inputs: "I love this movie!" -}) -``` - -## Text Generation Inference - -[Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) is an open-source toolkit for serving LLMs tackling challenges such as response time. TGI powers inference solutions like [Inference Endpoints](https://huggingface.co/inference-endpoints) and [Hugging Chat](https://huggingface.co/chat/), as well as multiple community projects. You can use it to deploy any supported open-source large language model of your choice. - -## ChatUI Spaces - -Hugging Face Spaces includes templates to easily deploy your own instance of a specific application. [ChatUI](https://github.com/huggingface/chat-ui) is an open-source interface that enables serving conversational interface for large language models and can be deployed with few clicks at Spaces. TGI powers these Spaces under the hood for faster inference. Thanks to the template, you can deploy your own instance based on a large language model with only a few clicks and customize it. Learn more about it [here](https://huggingface.co/docs/hub/spaces-sdks-docker-chatui) and create your large language model instance [here](https://huggingface.co/new-space?template=huggingchat/chat-ui-template). - -![ChatUI](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/blog/os_llms/docker_chat.png) - - -## Useful Resources - -Would you like to learn more about the topic? Awesome! Here you can find some curated resources that you may find helpful! - -### Tools within Hugging Face Ecosystem -- You can use [PEFT](https://github.com/huggingface/peft) to adapt large language models in efficient way. -- [ChatUI](https://github.com/huggingface/chat-ui) is the open-source interface to conversate with Large Language Models. -- [text-generation-inferface](https://github.com/huggingface/text-generation-inference) -- [HuggingChat](https://huggingface.co/chat/) is a chat interface powered by Hugging Face to chat with powerful models like Llama 2 70B. - -### Documentation -- [PEFT documentation](https://huggingface.co/docs/peft/index) -- [ChatUI Docker Spaces](https://huggingface.co/docs/hub/spaces-sdks-docker-chatui) -- [Causal language modeling task guide](https://huggingface.co/docs/transformers/tasks/language_modeling) -- [Text generation strategies](https://huggingface.co/docs/transformers/generation_strategies) - -### Course and Blogs -- [Course Chapter on Training a causal language model from scratch](https://huggingface.co/course/chapter7/6?fw=pt) -- [TO Discussion with Victor Sanh](https://www.youtube.com/watch?v=Oy49SCW_Xpw&ab_channel=HuggingFace) -- [Hugging Face Course Workshops: Pretraining Language Models & CodeParrot](https://www.youtube.com/watch?v=ExUR7w6xe94&ab_channel=HuggingFace) -- [Training CodeParrot 🦜 from Scratch](https://huggingface.co/blog/codeparrot) -- [How to generate text: using different decoding methods for language generation with Transformers](https://huggingface.co/blog/how-to-generate) -- [Guiding Text Generation with Constrained Beam Search in 🤗 Transformers](https://huggingface.co/blog/constrained-beam-search) -- [Code generation with Hugging Face](https://huggingface.co/spaces/codeparrot/code-generation-models) -- [🌸 Introducing The World's Largest Open Multilingual Language Model: BLOOM 🌸](https://huggingface.co/blog/bloom) -- [The Technology Behind BLOOM Training](https://huggingface.co/blog/bloom-megatron-deepspeed) -- [Faster Text Generation with TensorFlow and XLA](https://huggingface.co/blog/tf-xla-generate) -- [Assisted Generation: a new direction toward low-latency text generation](https://huggingface.co/blog/assisted-generation) -- [Introducing RWKV - An RNN with the advantages of a transformer](https://huggingface.co/blog/rwkv) -- [Creating a Coding Assistant with StarCoder](https://huggingface.co/blog/starchat-alpha) -- [StarCoder: A State-of-the-Art LLM for Code](https://huggingface.co/blog/starcoder) -- [Open-Source Text Generation & LLM Ecosystem at Hugging Face](https://huggingface.co/blog/os-llms) -- [Llama 2 is at Hugging Face](https://huggingface.co/blog/llama2) - -### Notebooks - -- [Training a CLM in Flax](https://github.com/huggingface/notebooks/blob/master/examples/causal_language_modeling_flax.ipynb) -- [Training a CLM in TensorFlow](https://github.com/huggingface/notebooks/blob/master/examples/language_modeling_from_scratch-tf.ipynb) -- [Training a CLM in PyTorch](https://github.com/huggingface/notebooks/blob/master/examples/language_modeling_from_scratch.ipynb) - -### Scripts for training - -- [Training a CLM in PyTorch](https://github.com/huggingface/transformers/tree/main/examples/pytorch/language-modeling) -- [Training a CLM in TensorFlow](https://github.com/huggingface/transformers/tree/main/examples/tensorflow/language-modeling) -- [Text Generation in PyTorch](https://github.com/huggingface/transformers/tree/main/examples/pytorch/text-generation) diff --git a/tasks/src/text-generation/data.ts b/tasks/src/text-generation/data.ts deleted file mode 100644 index 7ea972865..000000000 --- a/tasks/src/text-generation/data.ts +++ /dev/null @@ -1,124 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "A large multilingual dataset of text crawled from the web.", - id: "mc4", - }, - { - description: "Diverse open-source data consisting of 22 smaller high-quality datasets. It was used to train GPT-Neo.", - id: "the_pile", - }, - { - description: "A crowd-sourced instruction dataset to develop an AI assistant.", - id: "OpenAssistant/oasst1", - }, - { - description: "A crowd-sourced instruction dataset created by Databricks employees.", - id: "databricks/databricks-dolly-15k", - }, - ], - demo: { - inputs: [ - { - label: "Input", - content: - "Once upon a time,", - type: "text", - }, - - ], - outputs: [ - { - label: "Output", - content: - "Once upon a time, we knew that our ancestors were on the verge of extinction. The great explorers and poets of the Old World, from Alexander the Great to Chaucer, are dead and gone. A good many of our ancient explorers and poets have", - type: "text", - }, - ], - }, - metrics: [ - { - description: "Cross Entropy is a metric that calculates the difference between two probability distributions. Each probability distribution is the distribution of predicted words", - id: "Cross Entropy", - }, - { - description: "The Perplexity metric is the exponential of the cross-entropy loss. It evaluates the probabilities assigned to the next word by the model. Lower perplexity indicates better performance", - id: "Perplexity", - }, - ], - models: [ - { - description: "A large language model trained for text generation.", - id: "bigscience/bloom-560m", - }, - { - description: "A large code generation model that can generate code in 80+ languages.", - id: "bigcode/starcoder", - }, - { - description: "A model trained to follow instructions, uses Pythia-12b as base model.", - id: "databricks/dolly-v2-12b", - }, - { - description: "A model trained to follow instructions curated by community, uses Pythia-12b as base model.", - id: "OpenAssistant/oasst-sft-4-pythia-12b-epoch-3.5", - }, - { - description: "A large language model trained to generate text in English.", - id: "stabilityai/stablelm-tuned-alpha-7b", - }, - { - description: "A model trained to follow instructions, based on mosaicml/mpt-7b.", - id: "mosaicml/mpt-7b-instruct", - }, - { - description: "A large language model trained to generate text in English.", - id: "EleutherAI/pythia-12b", - }, - { - description: "A large text-to-text model trained to follow instructions.", - id: "google/flan-ul2", - }, - { - description: "A large and powerful text generation model.", - id: "tiiuae/falcon-40b", - }, - { - description: "State-of-the-art open-source large language model.", - id: "meta-llama/Llama-2-70b-hf", - }, - ], - spaces: [ - { - description: "A robust text generation model that can perform various tasks through natural language prompting.", - id: "huggingface/bloom_demo", - }, - { - description: "An text generation based application that can write code for 80+ languages.", - id: "bigcode/bigcode-playground", - }, - { - description: "An text generation based application for conversations.", - id: "h2oai/h2ogpt-chatbot", - }, - { - description: "An text generation application that combines OpenAI and Hugging Face models.", - id: "microsoft/HuggingGPT", - }, - { - description: "An text generation application that uses StableLM-tuned-alpha-7b.", - id: "stabilityai/stablelm-tuned-alpha-chat", - }, - { - description: "An UI that uses StableLM-tuned-alpha-7b.", - id: "togethercomputer/OpenChatKit", - }, - ], - summary: "Generating text is the task of producing new text. These models can, for example, fill in incomplete text or paraphrase.", - widgetModels: ["tiiuae/falcon-7b-instruct"], - youtubeId: "Vpjb1lu0MDk", -}; - -export default taskData; diff --git a/tasks/src/text-to-image/about.md b/tasks/src/text-to-image/about.md deleted file mode 100644 index 6d442bbb6..000000000 --- a/tasks/src/text-to-image/about.md +++ /dev/null @@ -1,65 +0,0 @@ -## Use Cases -### Data Generation - -Businesses can generate data for their their use cases by inputting text and getting image outputs. - -### Immersive Conversational Chatbots - -Chatbots can be made more immersive if they provide contextual images based on the input provided by the user. - -### Creative Ideas for Fashion Industry - -Different patterns can be generated to obtain unique pieces of fashion. Text-to-image models make creations easier for designers to conceptualize their design before actually implementing it. - -### Architecture Industry - -Architects can utilise the models to construct an environment based out on the requirements of the floor plan. This can also include the furniture that has to be placed in that environment. - -## Task Variants - -You can contribute variants of this task [here](https://github.com/huggingface/huggingface.js/blob/main/packages/tasks/src/tasks/text-to-image/about.md). - - -## Inference - -You can use diffusers pipelines to infer with `text-to-image` models. -```python -from diffusers import StableDiffusionPipeline, EulerDiscreteScheduler - -model_id = "stabilityai/stable-diffusion-2" -scheduler = EulerDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler") -pipe = StableDiffusionPipeline.from_pretrained(model_id, scheduler=scheduler, torch_dtype=torch.float16) -pipe = pipe.to("cuda") - -prompt = "a photo of an astronaut riding a horse on mars" -image = pipe(prompt).images[0] -``` - -You can use [huggingface.js](https://github.com/huggingface/huggingface.js) to infer text-to-image models on Hugging Face Hub. - -```javascript -import { HfInference } from "@huggingface/inference"; - -const inference = new HfInference(HF_ACCESS_TOKEN); -await inference.textToImage({ - model: 'stabilityai/stable-diffusion-2', - inputs: 'award winning high resolution photo of a giant tortoise/((ladybird)) hybrid, [trending on artstation]', - parameters: { - negative_prompt: 'blurry', - } -}) -``` - -## Useful Resources -- [Hugging Face Diffusion Models Course](https://github.com/huggingface/diffusion-models-class) -- [Getting Started with Diffusers](https://huggingface.co/docs/diffusers/index) -- [Text-to-Image Generation](https://huggingface.co/docs/diffusers/using-diffusers/conditional_image_generation) -- [MinImagen - Build Your Own Imagen Text-to-Image Model](https://www.assemblyai.com/blog/minimagen-build-your-own-imagen-text-to-image-model/) -- [Using LoRA for Efficient Stable Diffusion Fine-Tuning](https://huggingface.co/blog/lora) -- [Using Stable Diffusion with Core ML on Apple Silicon](https://huggingface.co/blog/diffusers-coreml) -- [A guide on Vector Quantized Diffusion](https://huggingface.co/blog/vq-diffusion) -- [🧨 Stable Diffusion in JAX/Flax](https://huggingface.co/blog/stable_diffusion_jax) -- [Running IF with 🧨 diffusers on a Free Tier Google Colab](https://huggingface.co/blog/if) - - -This page was made possible thanks to the efforts of [Ishan Dutta](https://huggingface.co/ishandutta), [Enrique Elias Ubaldo](https://huggingface.co/herrius) and [Oğuz Akif](https://huggingface.co/oguzakif). \ No newline at end of file diff --git a/tasks/src/text-to-image/data.ts b/tasks/src/text-to-image/data.ts deleted file mode 100644 index ebfd75d7e..000000000 --- a/tasks/src/text-to-image/data.ts +++ /dev/null @@ -1,88 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "RedCaps is a large-scale dataset of 12M image-text pairs collected from Reddit.", - id: "red_caps", - }, - { - description: "Conceptual Captions is a dataset consisting of ~3.3M images annotated with captions.", - id: "conceptual_captions", - }, - ], - demo: { - inputs: [ - { - label: "Input", - content: "A city above clouds, pastel colors, Victorian style", - type: "text", - }, - ], - outputs: [ - { - filename: "image.jpeg", - type: "img", - }, - ], - }, - metrics: [ - { - description: "The Inception Score (IS) measure assesses diversity and meaningfulness. It uses a generated image sample to predict its label. A higher score signifies more diverse and meaningful images.", - id: "IS", - }, - { - description: "The Fréchet Inception Distance (FID) calculates the distance between distributions between synthetic and real samples. A lower FID score indicates better similarity between the distributions of real and generated images.", - id: "FID", - }, - { - description: "R-precision assesses how the generated image aligns with the provided text description. It uses the generated images as queries to retrieve relevant text descriptions. The top 'r' relevant descriptions are selected and used to calculate R-precision as r/R, where 'R' is the number of ground truth descriptions associated with the generated images. A higher R-precision value indicates a better model.", - id: "R-Precision", - }, - ], - models: [ - { - description: "A latent text-to-image diffusion model capable of generating photo-realistic images given any text input.", - id: "CompVis/stable-diffusion-v1-4", - }, - { - description: "A model that can be used to generate images based on text prompts. The DALL·E Mega model is the largest version of DALLE Mini.", - id: "dalle-mini/dalle-mega", - }, - { - description: "A text-to-image model that can generate coherent text inside image.", - id: "DeepFloyd/IF-I-XL-v1.0", - }, - { - description: "A powerful text-to-image model.", - id: "kakaobrain/karlo-v1-alpha", - }, - ], - spaces: [ - { - description: "A powerful text-to-image application.", - id: "stabilityai/stable-diffusion", - }, - { - description: "An text-to-image application that can generate coherent text inside the image.", - id: "DeepFloyd/IF", - }, - { - description: "An powerful text-to-image application that can generate images.", - id: "kakaobrain/karlo", - }, - { - description: "An powerful text-to-image application that can generates 3D representations.", - id: "hysts/Shap-E", - }, - { - description: "A strong application for `text-to-image`, `image-to-image` and image inpainting.", - id: "ArtGAN/Stable-Diffusion-ControlNet-WebUI", - }, - ], - summary: "Generates images from input text. These models can be used to generate and modify images based on text prompts.", - widgetModels: ["CompVis/stable-diffusion-v1-4"], - youtubeId: "", -}; - -export default taskData; diff --git a/tasks/src/text-to-speech/about.md b/tasks/src/text-to-speech/about.md deleted file mode 100644 index 7c3f0c720..000000000 --- a/tasks/src/text-to-speech/about.md +++ /dev/null @@ -1,63 +0,0 @@ -## Use Cases - -Text-to-Speech (TTS) models can be used in any speech-enabled application that requires converting text to speech imitating human voice. - -### Voice Assistants - -TTS models are used to create voice assistants on smart devices. These models are a better alternative compared to concatenative methods where the assistant is built by recording sounds and mapping them, since the outputs in TTS models contain elements in natural speech such as emphasis. - -### Announcement Systems - -TTS models are widely used in airport and public transportation announcement systems to convert the announcement of a given text into speech. - -## Inference API - -The Hub contains over [1500 TTS models](https://huggingface.co/models?pipeline_tag=text-to-speech&sort=downloads) that you can use right away by trying out the widgets directly in the browser or calling the models as a service using the Inference API. Here is a simple code snippet to get you started: - -```python -import json -import requests - -headers = {"Authorization": f"Bearer {API_TOKEN}"} -API_URL = "https://api-inference.huggingface.co/models/microsoft/speecht5_tts" - -def query(payload): - response = requests.post(API_URL, headers=headers, json=payload) - return response - -output = query({"text_inputs": "This is a test"}) -``` - -You can also use libraries such as [espnet](https://huggingface.co/models?library=espnet&pipeline_tag=text-to-speech&sort=downloads) or [transformers](https://huggingface.co/models?pipeline_tag=text-to-speech&library=transformers&sort=trending) if you want to handle the Inference directly. - -## Direct Inference - -Now, you can also use the Text-to-Speech pipeline in Transformers to synthesise high quality voice. - -```python -from transformers import pipeline - -synthesizer = pipeline("text-to-speech", "suno/bark") - -synthesizer("Look I am generating speech in three lines of code!") -``` - - -You can use [huggingface.js](https://github.com/huggingface/huggingface.js) to infer summarization models on Hugging Face Hub. - -```javascript -import { HfInference } from "@huggingface/inference"; - -const inference = new HfInference(HF_ACCESS_TOKEN); -await inference.textToSpeech({ - model: 'facebook/mms-tts', - inputs: "text to generate speech from" -}) -``` - -## Useful Resources -- [ML for Audio Study Group - Text to Speech Deep Dive](https://www.youtube.com/watch?v=aLBedWj-5CQ) -- [An introduction to SpeechT5, a multi-purpose speech recognition and synthesis model](https://huggingface.co/blog/speecht5). -- [A guide on Fine-tuning Whisper For Multilingual ASR with 🤗Transformers](https://huggingface.co/blog/fine-tune-whisper) -- [Speech Synthesis, Recognition, and More With SpeechT5](https://huggingface.co/blog/speecht5) - diff --git a/tasks/src/text-to-speech/data.ts b/tasks/src/text-to-speech/data.ts deleted file mode 100644 index b189b09e7..000000000 --- a/tasks/src/text-to-speech/data.ts +++ /dev/null @@ -1,70 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "Thousands of short audio clips of a single speaker.", - id: "lj_speech", - }, - { - description: "Multi-speaker English dataset.", - id: "LibriTTS", - }, - ], - demo: { - inputs: [ - { - label: "Input", - content: - "I love audio models on the Hub!", - type: "text", - }, - - ], - outputs: [ - { - filename: "audio.wav", - type: "audio", - }, - ], - }, - metrics: [ - { - description: "The Mel Cepstral Distortion (MCD) metric is used to calculate the quality of generated speech.", - id: "mel cepstral distortion", - }, - ], - models: [ - { - description: "A powerful TTS model.", - id: "suno/bark", - }, - { - description: "A massively multi-lingual TTS model.", - id: "facebook/mms-tts", - }, - { - description: "An end-to-end speech synthesis model.", - id: "microsoft/speecht5_tts", - }, - ], - spaces: [ - { - description: "An application for generate highly realistic, multilingual speech.", - id: "suno/bark", - }, - { - description: "An application that contains multiple speech synthesis models for various languages and accents.", - id: "coqui/CoquiTTS", - }, - { - description: "An application that synthesizes speech for various speaker types.", - id: "Matthijs/speecht5-tts-demo", - }, - ], - summary: "Text-to-Speech (TTS) is the task of generating natural sounding speech given text input. TTS models can be extended to have a single model that generates speech for multiple speakers and multiple languages.", - widgetModels: ["microsoft/speecht5_tts"], - youtubeId: "NW62DpzJ274", -}; - -export default taskData; diff --git a/tasks/src/text-to-video/about.md b/tasks/src/text-to-video/about.md deleted file mode 100644 index 43eecacad..000000000 --- a/tasks/src/text-to-video/about.md +++ /dev/null @@ -1,36 +0,0 @@ -## Use Cases - -### Script-based Video Generation -Text-to-video models can be used to create short-form video content from a provided text script. These models can be used to create engaging and informative marketing videos. For example, a company could use a text-to-video model to create a video that explains how their product works. - - -### Content format conversion -Text-to-video models can be used to generate videos from long-form text, including blog posts, articles, and text files. Text-to-video models can be used to create educational videos that are more engaging and interactive. An example of this is creating a video that explains a complex concept from an article. - -### Voice-overs and Speech -Text-to-video models can be used to create an AI newscaster to deliver daily news, or for a film-maker to create a short film or a music video. - - -## Task Variants -Text-to-video models have different variants based on inputs and outputs. - -### Text-to-video Editing -One text-to-video task is generating text-based video style and local attribute editing. Text-to-video editing models can make it easier to perform tasks like cropping, stabilization, color correction, resizing and audio editing consistently. - -### Text-to-video Search -Text-to-video search is the task of retrieving videos that are relevant to a given text query. This can be challenging, as videos are a complex medium that can contain a lot of information. By using semantic analysis to extract the meaning of the text query, visual analysis to extract features from the videos, such as the objects and actions that are present in the video, and temporal analysis to categorize relationships between the objects and actions in the video, we can determine which videos are most likely to be relevant to the text query. - -### Text-driven Video Prediction -Text-driven video prediction is the task of generating a video sequence from a text description. Text description can be anything from a simple sentence to a detailed story. The goal of this task is to generate a video that is both visually realistic and semantically consistent with the text description. - -### Video Translation -Text-to-video translation models can translate videos from one language to another or allow to query the multilingual text-video model with non-English sentences. This can be useful for people who want to watch videos in a language that they don't understand, especially when multi-lingual captions are available for training. - -## Inference -Contribute an inference snippet for text-to-video here! - -## Useful Resources - -In this area, you can insert useful resources about how to train or use a model for this task. - -- [Text-to-Video: The Task, Challenges and the Current State](https://huggingface.co/blog/text-to-video) \ No newline at end of file diff --git a/tasks/src/text-to-video/data.ts b/tasks/src/text-to-video/data.ts deleted file mode 100644 index 2cb2fe408..000000000 --- a/tasks/src/text-to-video/data.ts +++ /dev/null @@ -1,97 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "Microsoft Research Video to Text is a large-scale dataset for open domain video captioning", - id: "iejMac/CLIP-MSR-VTT", - }, - { - description: "UCF101 Human Actions dataset consists of 13,320 video clips from YouTube, with 101 classes.", - id: "quchenyuan/UCF101-ZIP", - }, - { - description: "A high-quality dataset for human action recognition in YouTube videos.", - id: "nateraw/kinetics", - }, - { - description: "A dataset of video clips of humans performing pre-defined basic actions with everyday objects.", - id: "HuggingFaceM4/something_something_v2", - }, - { - description: "This dataset consists of text-video pairs and contains noisy samples with irrelevant video descriptions", - id: "HuggingFaceM4/webvid", - }, - { - description: "A dataset of short Flickr videos for the temporal localization of events with descriptions.", - id: "iejMac/CLIP-DiDeMo", - }, - ], - demo: { - inputs: [ - { - label: "Input", - content: - "Darth Vader is surfing on the waves.", - type: "text", - }, - ], - outputs: [ - { - filename: "text-to-video-output.gif", - type: "img", - }, - ], - }, - metrics: [ - { - description: "Inception Score uses an image classification model that predicts class labels and evaluates how distinct and diverse the images are. A higher score indicates better video generation.", - id: "is", - }, - { - description: "Frechet Inception Distance uses an image classification model to obtain image embeddings. The metric compares mean and standard deviation of the embeddings of real and generated images. A smaller score indicates better video generation.", - id: "fid", - }, - { - description: "Frechet Video Distance uses a model that captures coherence for changes in frames and the quality of each frame. A smaller score indicates better video generation.", - id: "fvd", - }, - { - description: "CLIPSIM measures similarity between video frames and text using an image-text similarity model. A higher score indicates better video generation.", - id: "clipsim", - }, - ], - models: [ - { - description: "A strong model for video generation.", - id: "PAIR/text2video-zero-controlnet-canny-arcane", - }, - { - description: "A robust model for text-to-video generation.", - id: "damo-vilab/text-to-video-ms-1.7b", - }, - { - description: "A text-to-video generation model with high quality and smooth outputs.", - id: "cerspense/zeroscope_v2_576w", - }, - ], - spaces: [ - { - description: "An application that generates video from text.", - id: "fffiloni/zeroscope", - }, - { - description: "An application that generates video from image and text.", - id: "TempoFunk/makeavid-sd-jax", - }, - { - description: "An application that generates videos from text and provides multi-model support.", - id: "ArtGAN/Video-Diffusion-WebUI", - }, - ], - summary: "Text-to-video models can be used in any application that requires generating consistent sequence of images from text. ", - widgetModels: [], - youtubeId: undefined, -}; - -export default taskData; diff --git a/tasks/src/token-classification/about.md b/tasks/src/token-classification/about.md deleted file mode 100644 index 40a01ea9c..000000000 --- a/tasks/src/token-classification/about.md +++ /dev/null @@ -1,78 +0,0 @@ -## Use Cases - -### Information Extraction from Invoices - -You can extract entities of interest from invoices automatically using Named Entity Recognition (NER) models. Invoices can be read with Optical Character Recognition models and the output can be used to do inference with NER models. In this way, important information such as date, company name, and other named entities can be extracted. - -## Task Variants - -### Named Entity Recognition (NER) - -NER is the task of recognizing named entities in a text. These entities can be the names of people, locations, or organizations. The task is formulated as labeling each token with a class for each named entity and a class named "0" for tokens that do not contain any entities. The input for this task is text and the output is the annotated text with named entities. - -#### Inference - -You can use the 🤗 Transformers library `ner` pipeline to infer with NER models. - -```python -from transformers import pipeline - -classifier = pipeline("ner") -classifier("Hello I'm Omar and I live in Zürich.") -``` - - - -### Part-of-Speech (PoS) Tagging -In PoS tagging, the model recognizes parts of speech, such as nouns, pronouns, adjectives, or verbs, in a given text. The task is formulated as labeling each word with a part of the speech. - -#### Inference - -You can use the 🤗 Transformers library `token-classification` pipeline with a POS tagging model of your choice. The model will return a json with PoS tags for each token. - -```python -from transformers import pipeline - -classifier = pipeline("token-classification", model = "vblagoje/bert-english-uncased-finetuned-pos") -classifier("Hello I'm Omar and I live in Zürich.") -``` - -This is not limited to transformers! You can also use other libraries such as Stanza, spaCy, and Flair to do inference! Here is an example using a canonical [spaCy](https://hf.co/blog/spacy) model. - -```python -!pip install https://huggingface.co/spacy/en_core_web_sm/resolve/main/en_core_web_sm-any-py3-none-any.whl - -import en_core_web_sm - -nlp = en_core_web_sm.load() -doc = nlp("I'm Omar and I live in Zürich.") -for token in doc: - print(token.text, token.pos_, token.dep_, token.ent_type_) - -## I PRON nsubj -## 'm AUX ROOT -## Omar PROPN attr PERSON -### ... -``` - -## Useful Resources - -Would you like to learn more about token classification? Great! Here you can find some curated resources that you may find helpful! - -- [Course Chapter on Token Classification](https://huggingface.co/course/chapter7/2?fw=pt) -- [Blog post: Welcome spaCy to the Hugging Face Hub](https://huggingface.co/blog/spacy) - -### Notebooks - -- [PyTorch](https://github.com/huggingface/notebooks/blob/master/examples/token_classification.ipynb) -- [TensorFlow](https://github.com/huggingface/notebooks/blob/master/examples/token_classification-tf.ipynb) - -### Scripts for training - -- [PyTorch](https://github.com/huggingface/transformers/tree/main/examples/pytorch/token-classification) -- [TensorFlow](https://github.com/huggingface/transformers/tree/main/examples/tensorflow) -- [Flax](https://github.com/huggingface/transformers/tree/main/examples/flax/token-classification) - -### Documentation - -- [Token classification task guide](https://huggingface.co/docs/transformers/tasks/token_classification) \ No newline at end of file diff --git a/tasks/src/token-classification/data.ts b/tasks/src/token-classification/data.ts deleted file mode 100644 index 375e6cdac..000000000 --- a/tasks/src/token-classification/data.ts +++ /dev/null @@ -1,83 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "A widely used dataset useful to benchmark named entity recognition models.", - id: "conll2003", - }, - { - description: "A multilingual dataset of Wikipedia articles annotated for named entity recognition in over 150 different languages.", - id: "wikiann", - }, - ], - demo: { - inputs: [ - { - label: "Input", - content: - "My name is Omar and I live in Zürich.", - type: "text", - }, - - ], - outputs: [ - { - text: "My name is Omar and I live in Zürich.", - tokens: [ - { - type: "PERSON", - start: 11, - end: 15, - }, - { - type: "GPE", - start: 30, - end: 36, - }, - ], - type: "text-with-tokens", - }, - ], - }, - metrics: [ - { - description: "", - id: "accuracy", - }, - { - description: "", - id: "recall", - - }, - { - description: "", - id: "precision", - }, - { - description: "", - id: "f1", - }, - ], - models: [ - { - description: "A robust performance model to identify people, locations, organizations and names of miscellaneous entities.", - id: "dslim/bert-base-NER", - }, - { - description: "Flair models are typically the state of the art in named entity recognition tasks.", - id: "flair/ner-english", - }, - ], - spaces: [ - { - description: "An application that can recognizes entities, extracts noun chunks and recognizes various linguistic features of each token.", - id: "spacy/gradio_pipeline_visualizer", - }, - ], - summary: "Token classification is a natural language understanding task in which a label is assigned to some tokens in a text. Some popular token classification subtasks are Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. NER models could be trained to identify specific entities in a text, such as dates, individuals and places; and PoS tagging would identify, for example, which words in a text are verbs, nouns, and punctuation marks.", - widgetModels: ["dslim/bert-base-NER"], - youtubeId: "wVHdVlPScxA", -}; - -export default taskData; diff --git a/tasks/src/translation/about.md b/tasks/src/translation/about.md deleted file mode 100644 index 45afd9c7e..000000000 --- a/tasks/src/translation/about.md +++ /dev/null @@ -1,65 +0,0 @@ -## Use Cases - -You can find over a thousand Translation models on the Hub, but sometimes you might not find a model for the language pair you are interested in. When this happen, you can use a pretrained multilingual Translation model like [mBART](https://huggingface.co/facebook/mbart-large-cc25) and further train it on your own data in a process called fine-tuning. - -### Multilingual conversational agents - -Translation models can be used to build conversational agents across different languages. This can be done in two ways. - -- **Translate the dataset to a new language.** You can translate a dataset of intents (inputs) and responses to the target language. You can then train a new intent classification model with this new dataset. This allows you to proofread responses in the target language and have better control of the chatbot's outputs. - -* **Translate the input and output of the agent.** You can use a Translation model in user inputs so that the chatbot can process it. You can then translate the output of the chatbot into the language of the user. This approach might be less reliable as the chatbot will generate responses that were not defined before. - -## Inference - -You can use the 🤗 Transformers library with the `translation_xx_to_yy` pattern where xx is the source language code and yy is the target language code. The default model for the pipeline is [t5-base](https://huggingface.co/t5-base) which under the hood adds a task prefix indicating the task itself, e.g. “translate: English to French”. - -```python -from transformers import pipeline -en_fr_translator = pipeline("translation_en_to_fr") -en_fr_translator("How old are you?") -## [{'translation_text': ' quel âge êtes-vous?'}] -``` - -If you’d like to use a specific model checkpoint that is from one specific language to another, you can also directly use the `translation` pipeline. - -```python -from transformers import pipeline - -model_checkpoint = "Helsinki-NLP/opus-mt-en-fr" -translator = pipeline("translation", model=model_checkpoint) -translator("How are you?") -# [{'translation_text': 'Comment allez-vous ?'}] -``` - -You can use [huggingface.js](https://github.com/huggingface/huggingface.js) to infer translation models on Hugging Face Hub. - -```javascript -import { HfInference } from "@huggingface/inference"; - -const inference = new HfInference(HF_ACCESS_TOKEN); -await inference.translation({ - model: 't5-base', - inputs: 'My name is Wolfgang and I live in Berlin' -}) -``` - -## Useful Resources - -Would you like to learn more about Translation? Great! Here you can find some curated resources that you may find helpful! - -- [Course Chapter on Translation](https://huggingface.co/course/chapter7/4?fw=pt) - -### Notebooks - -- [PyTorch](https://github.com/huggingface/notebooks/blob/master/examples/translation.ipynb) -- [TensorFlow](https://github.com/huggingface/notebooks/blob/master/examples/translation-tf.ipynb) - -### Scripts for training - -- [PyTorch](https://github.com/huggingface/transformers/tree/main/examples/pytorch/translation) -- [TensorFlow](https://github.com/huggingface/transformers/tree/main/examples/tensorflow/translation) - -### Documentation - -- [Translation task guide](https://huggingface.co/docs/transformers/tasks/translation) \ No newline at end of file diff --git a/tasks/src/translation/data.ts b/tasks/src/translation/data.ts deleted file mode 100644 index 95818a69a..000000000 --- a/tasks/src/translation/data.ts +++ /dev/null @@ -1,68 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "A dataset of copyright-free books translated into 16 different languages.", - id: "opus_books", - }, - { - description: "An example of translation between programming languages. This dataset consists of functions in Java and C#.", - id: "code_x_glue_cc_code_to_code_trans", - }, - ], - demo: { - inputs: [ - { - label: "Input", - content: - "My name is Omar and I live in Zürich.", - type: "text", - }, - - ], - outputs: [ - { - label: "Output", - content: - "Mein Name ist Omar und ich wohne in Zürich.", - type: "text", - }, - ], - }, - metrics: [ - { - description: "BLEU score is calculated by counting the number of shared single or subsequent tokens between the generated sequence and the reference. Subsequent n tokens are called “n-grams”. Unigram refers to a single token while bi-gram refers to token pairs and n-grams refer to n subsequent tokens. The score ranges from 0 to 1, where 1 means the translation perfectly matched and 0 did not match at all", - id: "bleu", - }, - { - description: "", - id: "sacrebleu", - }, - ], - models: [ - { - description: "A model that translates from English to French.", - id: "Helsinki-NLP/opus-mt-en-fr", - }, - { - description: "A general-purpose Transformer that can be used to translate from English to German, French, or Romanian.", - id: "t5-base", - }, - ], - spaces: [ - { - description: "An application that can translate between 100 languages.", - id: "Iker/Translate-100-languages", - }, - { - description: "An application that can translate between English, Spanish and Hindi.", - id: "EuroPython2022/Translate-with-Bloom", - }, - ], - summary: "Translation is the task of converting text from one language to another.", - widgetModels: ["t5-small"], - youtubeId: "1JvfrvZgi6c", -}; - -export default taskData; diff --git a/tasks/src/unconditional-image-generation/about.md b/tasks/src/unconditional-image-generation/about.md deleted file mode 100644 index d971a5349..000000000 --- a/tasks/src/unconditional-image-generation/about.md +++ /dev/null @@ -1,45 +0,0 @@ -## About the Task - -Unconditional image generation is the task of generating new images without any specific input. The main goal of this is to create novel, original images that are not based on existing images. -This can be used for a variety of applications, such as creating new artistic images, improving image recognition algorithms, or generating photorealistic images for virtual reality environments. - -Unconditional image generation models usually start with a *seed* that generates a *random noise vector*. The model will then use this vector to create an output image similar to the images used for training the model. - -An example of unconditional image generation would be generating the image of a face on a model trained with the [CelebA dataset](https://huggingface.co/datasets/huggan/CelebA-HQ) or [generating a butterfly](https://huggingface.co/spaces/huggan/butterfly-gan) on a model trained with the [Smithsonian Butterflies dataset](https://huggingface.co/datasets/ceyda/smithsonian_butterflies). - -[Generative adversarial networks](https://en.wikipedia.org/wiki/Generative_adversarial_network) and [Diffusion](https://huggingface.co/docs/diffusers/index) are common architectures for this task. - -## Use Cases - -Unconditional image generation can be used for a variety of applications. - -### Artistic Expression -Unconditional image generation can be used to create novel, original artwork that is not based on any existing images. This can be used to explore new creative possibilities and produce unique, imaginative images. - -### Data Augmentation -Unconditional image generation models can be used to generate new images to improve the performance of image recognition algorithms. This makes algorithms more robust and able to handle a broader range of images. - -### Virtual Reality -Unconditional image generation models can be used to create photorealistic images that can be used in virtual reality environments. This makes the VR experience more immersive and realistic. - -### Medical Imaging -Unconditional image generation models can generate new medical images, such as CT or MRI scans, that can be used to train and evaluate medical imaging algorithms. This can improve the accuracy and reliability of these algorithms. - -### Industrial Design -Unconditional image generation models can generate new designs for products, such as clothing or furniture, that are not based on any existing designs. This way, designers can explore new creative possibilities and produce unique, innovative designs. - -## Model Hosting and Inference - -This section should have useful information about Model Hosting and Inference - -## Useful Resources - -- [Hugging Face Diffusion Models Course](https://github.com/huggingface/diffusion-models-class) -- [Getting Started with Diffusers](https://huggingface.co/docs/diffusers/index) -- [Unconditional Image Generation Training](https://huggingface.co/docs/diffusers/training/unconditional_training) - -### Training your own model in just a few seconds - -In this area, you can insert useful information about training the model - -This page was made possible thanks to the efforts of [Someet Sahoo](https://huggingface.co/Someet24) and [Juan Carlos Piñeros](https://huggingface.co/juancopi81). \ No newline at end of file diff --git a/tasks/src/unconditional-image-generation/data.ts b/tasks/src/unconditional-image-generation/data.ts deleted file mode 100644 index 7446a3be9..000000000 --- a/tasks/src/unconditional-image-generation/data.ts +++ /dev/null @@ -1,66 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "The CIFAR-100 dataset consists of 60000 32x32 colour images in 100 classes, with 600 images per class.", - id: "cifar100", - }, - { - description: "Multiple images of celebrities, used for facial expression translation.", - id: "CelebA", - }, - ], - demo: { - inputs: [ - { - label: "Seed", - content: "42", - type: "text", - }, - { - label: "Number of images to generate:", - content: "4", - type: "text", - }, - ], - outputs: [ - { - filename: "unconditional-image-generation-output.jpeg", - type: "img", - }, - ], - }, - metrics: [ - { - description: "The inception score (IS) evaluates the quality of generated images. It measures the diversity of the generated images (the model predictions are evenly distributed across all possible labels) and their 'distinction' or 'sharpness' (the model confidently predicts a single label for each image).", - id: "Inception score (IS)", - }, - { - description: "The Fréchet Inception Distance (FID) evaluates the quality of images created by a generative model by calculating the distance between feature vectors for real and generated images.", - id: "Frećhet Inception Distance (FID)", - }, - ], - models: [ - { - description: "High-quality image generation model trained on the CIFAR-10 dataset. It synthesizes images of the ten classes presented in the dataset using diffusion probabilistic models, a class of latent variable models inspired by considerations from nonequilibrium thermodynamics.", - id: "google/ddpm-cifar10-32", - }, - { - description: "High-quality image generation model trained on the 256x256 CelebA-HQ dataset. It synthesizes images of faces using diffusion probabilistic models, a class of latent variable models inspired by considerations from nonequilibrium thermodynamics.", - id: "google/ddpm-celebahq-256", - }, - ], - spaces: [ - { - description: "An application that can generate realistic faces.", - id: "CompVis/celeba-latent-diffusion", - }, - ], - summary: "Unconditional image generation is the task of generating images with no condition in any context (like a prompt text or another image). Once trained, the model will create images that resemble its training data distribution.", - widgetModels: [""], - // TODO: Add related video - youtubeId: "", -}; - -export default taskData; diff --git a/tasks/src/video-classification/about.md b/tasks/src/video-classification/about.md deleted file mode 100644 index f9f0f7bf8..000000000 --- a/tasks/src/video-classification/about.md +++ /dev/null @@ -1,53 +0,0 @@ -## Use Cases -Video classification models can be used to categorize what a video is all about. - -### Activity Recognition -Video classification models are used to perform activity recognition which is useful for fitness applications. Activity recognition is also helpful for vision-impaired individuals especially when they're commuting. - -### Video Search -Models trained in video classification can improve user experience by organizing and categorizing video galleries on the phone or in the cloud, on multiple keywords or tags. - -## Inference - -Below you can find code for inferring with a pre-trained video classification model. - -```python -from transformers import VideoMAEFeatureExtractor, VideoMAEForVideoClassification -from pytorchvideo.transforms import UniformTemporalSubsample -from pytorchvideo.data.encoded_video import EncodedVideo - - -# Load the video. -video = EncodedVideo.from_path("path_to_video.mp4") -video_data = video.get_clip(start_sec=0, end_sec=4.0)["video"] - -# Sub-sample a fixed set of frames and convert them to a NumPy array. -num_frames = 16 -subsampler = UniformTemporalSubsample(num_frames) -subsampled_frames = subsampler(video_data) -video_data_np = subsampled_frames.numpy().transpose(1, 2, 3, 0) - -# Preprocess the video frames. -inputs = feature_extractor(list(video_data_np), return_tensors="pt") - -# Run inference -with torch.no_grad(): - outputs = model(**inputs) - logits = outputs.logits - -# Model predicts one of the 400 Kinetics 400 classes -predicted_label = logits.argmax(-1).item() -print(model.config.id2label[predicted_label]) -# `eating spaghetti` (if you chose this video: -# https://hf.co/datasets/nielsr/video-demo/resolve/main/eating_spaghetti.mp4) -``` - -## Useful Resources - -- [Developing a simple video classification model](https://keras.io/examples/vision/video_classification) -- [Video classification with Transformers](https://keras.io/examples/vision/video_transformers) -- [Building a video archive](https://www.youtube.com/watch?v=_IeS1m8r6SY) -- [Video classification task guide](https://huggingface.co/docs/transformers/tasks/video_classification) - -### Creating your own video classifier in minutes -- [Fine-tuning tutorial notebook (PyTorch)](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/video_classification.ipynb) diff --git a/tasks/src/video-classification/data.ts b/tasks/src/video-classification/data.ts deleted file mode 100644 index 9e51e7820..000000000 --- a/tasks/src/video-classification/data.ts +++ /dev/null @@ -1,84 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - // TODO write proper description - description: "Benchmark dataset used for video classification with videos that belong to 400 classes.", - id: "kinetics400", - }, - ], - demo: { - inputs: [ - { - filename: "video-classification-input.gif", - type: "img", - }, - ], - outputs: [ - { - type: "chart", - data: [ - { - label: "Playing Guitar", - score: 0.514, - }, - { - label: "Playing Tennis", - score: 0.193, - }, - { - label: "Cooking", - score: 0.068, - }, - ], - }, - ], - }, - metrics: [ - { - description: "", - id: "accuracy", - }, - { - description: "", - id: "recall", - }, - { - description: "", - id: "precision", - }, - { - description: "", - id: "f1", - }, - - ], - models: [ - { - // TO DO: write description - description: "Strong Video Classification model trained on the Kinects 400 dataset.", - id: "MCG-NJU/videomae-base-finetuned-kinetics", - }, - { - // TO DO: write description - description: "Strong Video Classification model trained on the Kinects 400 dataset.", - id: "microsoft/xclip-base-patch32", - }, - ], - spaces: [ - { - description: "An application that classifies video at different timestamps.", - id: "nateraw/lavila", - }, - { - description: "An application that classifies video.", - id: "fcakyon/video-classification", - }, - ], - summary: "Video classification is the task of assigning a label or class to an entire video. Videos are expected to have only one class for each video. Video classification models take a video as input and return a prediction about which class the video belongs to.", - widgetModels: [], - youtubeId: "", -}; - -export default taskData; diff --git a/tasks/src/visual-question-answering/about.md b/tasks/src/visual-question-answering/about.md deleted file mode 100644 index 17d3d5fc7..000000000 --- a/tasks/src/visual-question-answering/about.md +++ /dev/null @@ -1,43 +0,0 @@ -## Use Cases - -### Aid the Visually Impaired Persons -VQA models can be used to reduce visual barriers for visually impaired individuals by allowing them to get information about images from the web and the real world. - -### Education -VQA models can be used to improve experiences at museums by allowing observers to directly ask questions they interested in. - -### Improved Image Retrieval -Visual question answering models can be used to retrieve images with specific characteristics. For example, the user can ask "Is there a dog?" to find all images with dogs from a set of images. - -### Video Search -Specific snippets/timestamps of a video can be retrieved based on search queries. For example, the user can ask "At which part of the video does the guitar appear?" and get a specific timestamp range from the whole video. - -## Task Variants - -### Video Question Answering -Video Question Answering aims to answer questions asked about the content of a video. - -## Inference - -You can infer with Visual Question Answering models using the `vqa` (or `visual-question-answering`) pipeline. This pipeline requires [the Python Image Library (PIL)](https://pillow.readthedocs.io/en/stable/) to process images. You can install it with (`pip install pillow`). - -```python -from PIL import Image -from transformers import pipeline - -vqa_pipeline = pipeline("visual-question-answering") - -image = Image.open("elephant.jpeg") -question = "Is there an elephant?" - -vqa_pipeline(image, question, top_k=1) -#[{'score': 0.9998154044151306, 'answer': 'yes'}] -``` - -## Useful Resources - -- [An introduction to Visual Question Answering - AllenAI](https://blog.allenai.org/vanilla-vqa-adcaaaa94336) -- [Multi Modal Framework (MMF) - Meta Research](https://mmf.sh/docs/getting_started/video_overview/) - -The contents of this page are contributed by [ -Bharat Raghunathan](https://huggingface.co/bharat-raghunathan) and [Jose Londono Botero](https://huggingface.co/jlondonobo). \ No newline at end of file diff --git a/tasks/src/visual-question-answering/data.ts b/tasks/src/visual-question-answering/data.ts deleted file mode 100644 index 1c4b17338..000000000 --- a/tasks/src/visual-question-answering/data.ts +++ /dev/null @@ -1,90 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - description: "A widely used dataset containing questions (with answers) about images.", - id: "Graphcore/vqa", - }, - { - description: "A dataset to benchmark visual reasoning based on text in images.", - id: "textvqa", - } - ], - demo: { - inputs: [ - { - filename: "elephant.jpeg", - type: "img", - }, - { - label: "Question", - content: "What is in this image?", - type: "text", - }, - ], - outputs: [ - { - type: "chart", - data: [ - { - label: "elephant", - score: 0.97, - }, - { - label: "elephants", - score: 0.06, - }, - { - label: "animal", - score: 0.003, - }, - ], - }, - ], - }, - isPlaceholder: false, - metrics: [ - { - description: "", - id: "accuracy", - }, - { - description: "Measures how much a predicted answer differs from the ground truth based on the difference in their semantic meaning.", - id: "wu-palmer similarity", - }, - ], - models: [ - { - description: "A visual question answering model trained to convert charts and plots to text.", - id: "google/deplot", - }, - { - description: "A visual question answering model trained for mathematical reasoning and chart derendering from images.", - id: "google/matcha-base ", - }, - { - description: "A strong visual question answering that answers questions from book covers.", - id: "google/pix2struct-ocrvqa-large", - }, - ], - spaces: [ - { - description: "An application that can answer questions based on images.", - id: "nielsr/vilt-vqa", - }, - { - description: "An application that can caption images and answer questions about a given image. ", - id: "Salesforce/BLIP", - }, - { - description: "An application that can caption images and answer questions about a given image. ", - id: "vumichien/Img2Prompt", - }, - ], - summary: "Visual Question Answering is the task of answering open-ended questions based on an image. They output natural language responses to natural language questions.", - widgetModels: ["dandelin/vilt-b32-finetuned-vqa"], - youtubeId: "", -}; - -export default taskData; diff --git a/tasks/src/zero-shot-classification/about.md b/tasks/src/zero-shot-classification/about.md deleted file mode 100644 index eba7d1c23..000000000 --- a/tasks/src/zero-shot-classification/about.md +++ /dev/null @@ -1,39 +0,0 @@ -## About the Task - -Zero Shot Classification is the task of predicting a class that wasn't seen by the model during training. This method, which leverages a pre-trained language model, can be thought of as an instance of [transfer learning](https://www.youtube.com/watch?v=BqqfQnyjmgg) which generally refers to using a model trained for one task in a different application than what it was originally trained for. This is particularly useful for situations where the amount of labeled data is small. - -In zero shot classification, we provide the model with a prompt and a sequence of text that describes what we want our model to do, in natural language. Zero-shot classification excludes any examples of the desired task being completed. This differs from single or few-shot classification, as these tasks include a single or a few examples of the selected task. - -Zero, single and few-shot classification seem to be an emergent feature of large language models. This feature seems to come about around model sizes of +100M parameters. The effectiveness of a model at a zero, single or few-shot task seems to scale with model size, meaning that larger models (models with more trainable parameters or layers) generally do better at this task. - - -Here is an example of a zero-shot prompt for classifying the sentiment of a sequence of text: -``` -Classify the following input text into one of the following three categories: [positive, negative, neutral] - -Input Text: Hugging Face is awesome for making all of these -state of the art models available! -Sentiment: positive - -``` - -One great example of this task with a nice off-the-shelf model is available at the widget of this page, where the user can input a sequence of text and candidate labels to the model. This is a *word level* example of zero shot classification, more elaborate and lengthy generations are available with larger models. Testing these models out and getting a feel for prompt engineering is the best way to learn how to use them. - -## Inference -You can use the 🤗 Transformers library zero-shot-classification pipeline to infer with zero shot text classification models. - -```python -from transformers import pipeline - -pipe = pipeline(model="facebook/bart-large-mnli") -pipe("I have a problem with my iphone that needs to be resolved asap!", - candidate_labels=["urgent", "not urgent", "phone", "tablet", "computer"], -) -# output ->>> {'sequence': 'I have a problem with my iphone that needs to be resolved asap!!', 'labels': ['urgent', 'phone', 'computer', 'not urgent', 'tablet'], 'scores': [0.504, 0.479, 0.013, 0.003, 0.002]} -``` - -## Useful Resources -- [Zero Shot Learning](https://joeddav.github.io/blog/2020/05/29/ZSL.html) -- [Hugging Face on Transfer Learning](https://huggingface.co/course/en/chapter1/4?fw=pt#transfer-learning) - diff --git a/tasks/src/zero-shot-classification/data.ts b/tasks/src/zero-shot-classification/data.ts deleted file mode 100644 index e5709820a..000000000 --- a/tasks/src/zero-shot-classification/data.ts +++ /dev/null @@ -1,66 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - - datasets: [ - { - description: "A widely used dataset used to benchmark multiple variants of text classification.", - id: "glue", - }, - { - description: "The Multi-Genre Natural Language Inference (MultiNLI) corpus is a crowd-sourced collection of 433k sentence pairs annotated with textual entailment information.", - id: "MultiNLI", - }, - { - description: "FEVER is a publicly available dataset for fact extraction and verification against textual sources.", - id: "FEVER", - }, - ], - demo: { - inputs: [ - { - label: "Text Input", - content: "Dune is the best movie ever.", - type: "text", - }, - { - label: "Candidate Labels", - content: "CINEMA, ART, MUSIC", - type: "text", - }, - - ], - outputs: [ - { - type: "chart", - data: [ - { - label: "CINEMA", - score: 0.90, - }, - { - label: "ART", - score: 0.10, - }, - { - label: "MUSIC", - score: 0.00, - }, - ], - }, - ], - }, - metrics: [], - models: [ - { - description: - "Powerful zero-shot text classification model", - id: "facebook/bart-large-mnli", - }, - ], - spaces: [], - summary: "Zero-shot text classification is a task in natural language processing where a model is trained on a set of labeled examples but is then able to classify new examples from previously unseen classes.", - widgetModels: ["facebook/bart-large-mnli"], -}; - -export default taskData; diff --git a/tasks/src/zero-shot-image-classification/about.md b/tasks/src/zero-shot-image-classification/about.md deleted file mode 100644 index 5ebcd05d6..000000000 --- a/tasks/src/zero-shot-image-classification/about.md +++ /dev/null @@ -1,68 +0,0 @@ -## About the Task - -Zero-shot image classification is a computer vision task to classify images into one of several classes, without any prior training or knowledge of the classes. - -Zero shot image classification works by transferring knowledge learnt during training of one model, to classify novel classes that was not present in the training data. So this is a variation of [transfer learning](https://www.youtube.com/watch?v=BqqfQnyjmgg). For instance, a model trained to differentiate cars from airplanes can be used to classify images of ships. - -The data in this learning paradigm consists of - -- Seen data - images and their corresponding labels -- Unseen data - only labels and no images -- Auxiliary information - additional information given to the model during training connecting the unseen and seen data. This can be in the form of textual description or word embeddings. - - -## Use Cases - -### Image Retrieval -Zero-shot learning resolves several challenges in image retrieval systems. For example, with the rapid growth of categories on the web, it is challenging to index images based on unseen categories. With zero-shot learning we can associate unseen categories to images by exploiting attributes to model the relationships among visual features and labels. - -### Action Recognition -Action recognition is the task of identifying when a person in an image/video is performing a given action from a set of actions. If all the possible actions are not known beforehand, conventional deep learning models fail. With zero-shot learning, for a given domain of a set of actions, we can create a mapping connecting low-level features and a semantic description of auxiliary data to classify unknown classes of actions. - - -## Task Variants - -You can contribute variants of this task [here](https://github.com/huggingface/huggingface.js/blob/main/packages/tasks/src/tasks/zero-shot-image-classification/about.md). - -## Inference - -The model can be loaded with the zero-shot-image-classification pipeline like so: -```python -from transformers import pipeline -# More models in the model hub. -model_name = "openai/clip-vit-large-patch14-336" -classifier = pipeline("zero-shot-image-classification", model = model_name) -``` -You can then use this pipeline to classify images into any of the class names you specify. You can specify more than two class labels too. -```python -image_to_classify = "path_to_cat_and_dog_image.jpeg" -labels_for_classification = ["cat and dog", - "lion and cheetah", - "rabbit and lion"] -scores = classifier(image_to_classify, - candidate_labels = labels_for_classification) -``` -The classifier would return a list of dictionaries after the inference which is stored in the variable `scores` in the code snippet above. Variable `scores` would look as follows: -```python -[{'score': 0.9950482249259949, 'label': 'cat and dog'}, -{'score': 0.004863627254962921, 'label': 'rabbit and lion'}, -{'score': 8.816882473183796e-05, 'label': 'lion and cheetah'}] -``` -The dictionary at the zeroth index of the list will contain the label with the highest score. -```python -print(f"The highest score is {scores[0]['score']:.3f} for the label {scores[0]['label']}") -``` -The output from the print statement above would look as follows: -``` -The highest probability is 0.995 for the label cat and dog -``` - -## Useful Resources - -You can contribute useful resources about this task [here](https://github.com/huggingface/huggingface.js/blob/main/packages/tasks/src/tasks/zero-shot-image-classification/about.md). - -Check out [Zero-shot image classification task guide](https://huggingface.co/docs/transformers/tasks/zero_shot_image_classification). - -This page was made possible thanks to the efforts of [Shamima Hossain](https://huggingface.co/Shamima), [Haider Zaidi -](https://huggingface.co/chefhaider) and [Paarth Bhatnagar](https://huggingface.co/Paarth). - diff --git a/tasks/src/zero-shot-image-classification/data.ts b/tasks/src/zero-shot-image-classification/data.ts deleted file mode 100644 index 7588ea308..000000000 --- a/tasks/src/zero-shot-image-classification/data.ts +++ /dev/null @@ -1,79 +0,0 @@ -import type { TaskDataCustom } from "../Types"; - -const taskData: TaskDataCustom = { - datasets: [ - { - // TODO write proper description - description: "", - id: "", - }, - ], - demo: { - inputs: [ - { - filename: "image-classification-input.jpeg", - type: "img", - }, - { - label: "Classes", - content: "cat, dog, bird", - type: "text", - }, - ], - outputs: [ - { - type: "chart", - data: [ - { - label: "Cat", - score: 0.664, - }, - { - label: "Dog", - score: 0.329, - }, - { - label: "Bird", - score: 0.008, - }, - ], - }, - ], - }, - metrics: [ - { - description: - "Computes the number of times the correct label appears in top K labels predicted", - id: "top-K accuracy", - }, - ], - models: [ - { - description: - "Robust image classification model trained on publicly available image-caption data.", - id: "openai/clip-vit-base-patch16", - }, - { - description: - "Robust image classification model trained on publicly available image-caption data trained on additional high pixel data for better performance.", - id: "openai/clip-vit-large-patch14-336", - }, - { - description: - "Strong image classification model for biomedical domain.", - id: "microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224", - }, - ], - spaces: [ - { - description: "An application that leverages zero shot image classification to find best captions to generate an image. ", - id: "pharma/CLIP-Interrogator", - }, - ], - summary: - "Zero shot image classification is the task of classifying previously unseen classes during training of a model.", - widgetModels: ["openai/clip-vit-large-patch14-336"], - youtubeId: "", -}; - -export default taskData;