diff --git a/.github/workflows/hub-publish.yml b/.github/workflows/hub-publish.yml index f00c0613e..7848922ea 100644 --- a/.github/workflows/hub-publish.yml +++ b/.github/workflows/hub-publish.yml @@ -87,9 +87,9 @@ jobs: echo "Checksum Verification Failed: The local @huggingface/tasks package differs from the remote version. Release halted. Local Checksum: $LOCAL_CHECKSUM, Remote Checksum: $REMOTE_CHECKSUM" exit 1 fi - echo "Checksum Verification Successful: The local and remote @huggingface/tasks packages are consistent. Proceeding with the @huggingface/widgets package release. Local Checksum: $LOCAL_CHECKSUM, Remote Checksum: $REMOTE_CHECKSUM." + echo "Checksum Verification Successful: The local and remote @huggingface/tasks packages are consistent. Local Checksum: $LOCAL_CHECKSUM, Remote Checksum: $REMOTE_CHECKSUM." working-directory: packages/tasks - +f - run: pnpm publish --no-git-checks . env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/inference-publish.yml b/.github/workflows/inference-publish.yml index ee346c24c..bde76eafa 100644 --- a/.github/workflows/inference-publish.yml +++ b/.github/workflows/inference-publish.yml @@ -87,7 +87,7 @@ jobs: echo "Checksum Verification Failed: The local @huggingface/tasks package differs from the remote version. Release halted. Local Checksum: $LOCAL_CHECKSUM, Remote Checksum: $REMOTE_CHECKSUM" exit 1 fi - echo "Checksum Verification Successful: The local and remote @huggingface/tasks packages are consistent. Proceeding with the @huggingface/widgets package release. Local Checksum: $LOCAL_CHECKSUM, Remote Checksum: $REMOTE_CHECKSUM." + echo "Checksum Verification Successful: The local and remote @huggingface/tasks packages are consistent. Local Checksum: $LOCAL_CHECKSUM, Remote Checksum: $REMOTE_CHECKSUM." working-directory: packages/tasks - run: pnpm publish --no-git-checks . diff --git a/.github/workflows/sync-widgets-demo.yml b/.github/workflows/sync-widgets-demo.yml deleted file mode 100644 index ef3d4336f..000000000 --- a/.github/workflows/sync-widgets-demo.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: Sync Widgets Demo -on: - workflow_dispatch: - # push: - # branches: - # - main - # paths: - # - "packages/widgets/**" - # - "packages/tasks/**" - # - "package.json" - # - "pnpm-lock.yaml" - # - ".github/workflows/sync-widgets-demo.yml" - -jobs: - sync: - runs-on: ubuntu-latest - timeout-minutes: 10 - - steps: - - uses: actions/checkout@v4 - name: "Clone" - with: - path: "local-demo" - - - name: "Clone remote demo" - run: | - git clone https://huggingface.co/spaces/huggingfacejs/inference-widgets - # Set huggingface token in git credentials - git config --global user.name machineuser - git config --global user.email infra+machineuser@huggingface.co - - echo "machine huggingface.co login hf password ${{ secrets.HF_DEMO_TOKEN }}" >> ~/.netrc - - - name: "Copy demo files" - run: | - rm -rf inference-widgets/packages - mkdir -p inference-widgets/packages - cp -r local-demo/packages/shared inference-widgets/packages - cp -r local-demo/packages/widgets inference-widgets/packages - cp -r local-demo/packages/tasks inference-widgets/packages - cp -r local-demo/packages/inference inference-widgets/packages - cp -r local-demo/packages/jinja inference-widgets/packages - cp local-demo/package.json inference-widgets/package.json - cp local-demo/pnpm-lock.yaml inference-widgets/pnpm-lock.yaml - - - name: "Commit and push" - run: | - cd inference-widgets - git add . - git commit -m "Sync widgets demo" - git push diff --git a/.github/workflows/widgets-publish.yml b/.github/workflows/widgets-publish.yml deleted file mode 100644 index 502ffebe5..000000000 --- a/.github/workflows/widgets-publish.yml +++ /dev/null @@ -1,176 +0,0 @@ -name: Widgets - Version and Release - -on: - workflow_dispatch: - inputs: - newversion: - type: choice - description: "Semantic Version Bump Type" - default: patch - options: - - patch - - minor - - major - -defaults: - run: - working-directory: packages/widgets - -concurrency: - group: "push-to-main" - -jobs: - version_and_release: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - # Needed to push the tag and the commit on the main branch, otherwise we get: - # > Run git push --follow-tags - # remote: error: GH006: Protected branch update failed for refs/heads/main. - # remote: error: Changes must be made through a pull request. Required status check "lint" is expected. - token: ${{ secrets.BOT_ACCESS_TOKEN }} - - run: corepack enable - - uses: actions/setup-node@v3 - with: - node-version: "20" - cache: "pnpm" - cache-dependency-path: | - packages/widgets/pnpm-lock.yaml - # setting a registry enables the NODE_AUTH_TOKEN env variable where we can set an npm token. REQUIRED - registry-url: "https://registry.npmjs.org" - - run: pnpm install - - run: git config --global user.name machineuser - - run: git config --global user.email infra+machineuser@huggingface.co - - run: | - PACKAGE_VERSION=$(node -p "require('./package.json').version") - BUMPED_VERSION=$(node -p "require('semver').inc('$PACKAGE_VERSION', '${{ github.event.inputs.newversion }}')") - # Update package.json with the new version - node -e "const fs = require('fs'); const package = JSON.parse(fs.readFileSync('./package.json')); package.version = '$BUMPED_VERSION'; fs.writeFileSync('./package.json', JSON.stringify(package, null, '\t') + '\n');" - git commit . -m "🔖 @huggingface/widgets $BUMPED_VERSION" - git tag "widgets-v$BUMPED_VERSION" - - - name: Make sure that the latest version of @huggingface/tasks is consistent with the local version - run: | - LOCAL_TASKS_VERSION=$(node -p "require('./package.json').version") - REMOTE_TASKS_VERSION=$(npm view @huggingface/tasks version) - - # If the versions are different, error - if [ "$LOCAL_TASKS_VERSION" != "$REMOTE_TASKS_VERSION" ]; then - echo "Error: The local @huggingface/tasks package version ($LOCAL_TASKS_VERSION) differs from the remote version ($REMOTE_TASKS_VERSION). Release halted." - exit 1 - fi - - npm pack @huggingface/tasks - mv huggingface-tasks-$LOCAL_TASKS_VERSION.tgz tasks-local.tgz - - npm pack @huggingface/tasks@$REMOTE_TASKS_VERSION - mv huggingface-tasks-$REMOTE_TASKS_VERSION.tgz tasks-remote.tgz - - # Compute checksum of local tar. We need to extract both tar since the remote compression might be different - tar -xf tasks-local.tgz - LOCAL_CHECKSUM=$(cd package && tar --mtime='1970-01-01' --mode=755 -cf - . | sha256sum | cut -d' ' -f1) - echo "Local package checksum: $LOCAL_CHECKSUM" - - rm -Rf package - - tar -xf tasks-remote.tgz - REMOTE_CHECKSUM=$(cd package && tar --mtime='1970-01-01' --mode=755 -cf - . | sha256sum | cut -d' ' -f1) - echo "Remote package checksum: $REMOTE_CHECKSUM" - - rm -Rf package - - if [ "$LOCAL_CHECKSUM" != "$REMOTE_CHECKSUM" ]; then - echo "Checksum Verification Failed: The local @huggingface/tasks package differs from the remote version. Release halted. Local Checksum: $LOCAL_CHECKSUM, Remote Checksum: $REMOTE_CHECKSUM" - exit 1 - fi - echo "Checksum Verification Successful: The local and remote @huggingface/tasks packages are consistent. Proceeding with the @huggingface/widgets package release. Local Checksum: $LOCAL_CHECKSUM, Remote Checksum: $REMOTE_CHECKSUM." - working-directory: packages/tasks - - - name: Make sure that the latest version of @huggingface/jinja is consistent with the local version - run: | - LOCAL_JINJA_VERSION=$(node -p "require('./package.json').version") - REMOTE_JINJA_VERSION=$(npm view @huggingface/jinja version) - - # If the versions are different, error - if [ "$LOCAL_JINJA_VERSION" != "$REMOTE_JINJA_VERSION" ]; then - echo "Error: The local @huggingface/jinja package version ($LOCAL_JINJA_VERSION) differs from the remote version ($REMOTE_JINJA_VERSION). Release halted." - exit 1 - fi - - npm pack @huggingface/jinja - mv huggingface-jinja-$LOCAL_JINJA_VERSION.tgz jinja-local.tgz - - npm pack @huggingface/jinja@$REMOTE_JINJA_VERSION - mv huggingface-jinja-$REMOTE_JINJA_VERSION.tgz jinja-remote.tgz - - # Compute checksum of local tar. We need to extract both tar since the remote compression might be different - tar -xf jinja-local.tgz - LOCAL_CHECKSUM=$(cd package && tar --mtime='1970-01-01' --mode=755 -cf - . | sha256sum | cut -d' ' -f1) - echo "Local package checksum: $LOCAL_CHECKSUM" - - rm -Rf package - - tar -xf jinja-remote.tgz - REMOTE_CHECKSUM=$(cd package && tar --mtime='1970-01-01' --mode=755 -cf - . | sha256sum | cut -d' ' -f1) - echo "Remote package checksum: $REMOTE_CHECKSUM" - - rm -Rf package - - if [ "$LOCAL_CHECKSUM" != "$REMOTE_CHECKSUM" ]; then - echo "Checksum Verification Failed: The local @huggingface/jinja package differs from the remote version. Release halted. Local Checksum: $LOCAL_CHECKSUM, Remote Checksum: $REMOTE_CHECKSUM" - exit 1 - fi - echo "Checksum Verification Successful: The local and remote @huggingface/jinja packages are consistent. Proceeding with the @huggingface/widgets package release. Local Checksum: $LOCAL_CHECKSUM, Remote Checksum: $REMOTE_CHECKSUM." - working-directory: packages/jinja - - - name: Make sure that the latest version of @huggingface/inference is consistent with the local version - run: | - LOCAL_INFERENCE_VERSION=$(node -p "require('./package.json').version") - REMOTE_INFERENCE_VERSION=$(npm view @huggingface/inference version) - - # If the versions are different, error - if [ "$LOCAL_INFERENCE_VERSION" != "$REMOTE_INFERENCE_VERSION" ]; then - echo "Error: The local @huggingface/inference package version ($LOCAL_INFERENCE_VERSION) differs from the remote version ($REMOTE_INFERENCE_VERSION). Release halted." - exit 1 - fi - - npm pack @huggingface/inference - mv huggingface-inference-$LOCAL_INFERENCE_VERSION.tgz inference-local.tgz - - npm pack @huggingface/inference@$REMOTE_INFERENCE_VERSION - mv huggingface-inference-$REMOTE_INFERENCE_VERSION.tgz inference-remote.tgz - - # Compute checksum of local tar. We need to extract both tar since the remote compression might be different - tar -xf inference-local.tgz - LOCAL_CHECKSUM=$(cd package && tar --mtime='1970-01-01' --mode=755 -cf - . | sha256sum | cut -d' ' -f1) - echo "Local package checksum: $LOCAL_CHECKSUM" - - rm -Rf package - - tar -xf inference-remote.tgz - REMOTE_CHECKSUM=$(cd package && tar --mtime='1970-01-01' --mode=755 -cf - . | sha256sum | cut -d' ' -f1) - echo "Remote package checksum: $REMOTE_CHECKSUM" - - rm -Rf package - - if [ "$LOCAL_CHECKSUM" != "$REMOTE_CHECKSUM" ]; then - echo "Checksum Verification Failed: The local @huggingface/inference package differs from the remote version. Release halted. Local Checksum: $LOCAL_CHECKSUM, Remote Checksum: $REMOTE_CHECKSUM" - exit 1 - fi - echo "Checksum Verification Successful: The local and remote @huggingface/inference packages are consistent. Proceeding with the @huggingface/widgets package release. Local Checksum: $LOCAL_CHECKSUM, Remote Checksum: $REMOTE_CHECKSUM." - working-directory: packages/inference - - - run: pnpm publish --no-git-checks . - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - run: git pull --rebase && git push --follow-tags - # hack - reuse actions/setup-node@v3 just to set a new registry - - uses: actions/setup-node@v3 - with: - node-version: "20" - registry-url: "https://npm.pkg.github.com" - # Disable for now, until github supports PATs for writing github packages (https://github.com/github/roadmap/issues/558) - # - run: pnpm publish --no-git-checks . - # env: - # NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/packages/widgets/.eslintignore b/packages/widgets/.eslintignore deleted file mode 100644 index 03cc13658..000000000 --- a/packages/widgets/.eslintignore +++ /dev/null @@ -1,14 +0,0 @@ -.DS_Store -node_modules -/dist -/build -/.svelte-kit -/package -.env -.env.* -!.env.example - -# Ignore files for PNPM, NPM and YARN -pnpm-lock.yaml -package-lock.json -yarn.lock diff --git a/packages/widgets/.gitignore b/packages/widgets/.gitignore deleted file mode 100644 index ac7211b40..000000000 --- a/packages/widgets/.gitignore +++ /dev/null @@ -1,11 +0,0 @@ -.DS_Store -node_modules -/build -/dist -/.svelte-kit -/package -.env -.env.* -!.env.example -vite.config.js.timestamp-* -vite.config.ts.timestamp-* diff --git a/packages/widgets/.prettierignore b/packages/widgets/.prettierignore deleted file mode 100644 index 03cc13658..000000000 --- a/packages/widgets/.prettierignore +++ /dev/null @@ -1,14 +0,0 @@ -.DS_Store -node_modules -/dist -/build -/.svelte-kit -/package -.env -.env.* -!.env.example - -# Ignore files for PNPM, NPM and YARN -pnpm-lock.yaml -package-lock.json -yarn.lock diff --git a/packages/widgets/README.md b/packages/widgets/README.md deleted file mode 100644 index ce8094301..000000000 --- a/packages/widgets/README.md +++ /dev/null @@ -1,53 +0,0 @@ -# Huggingface Widgets - -**Note: this package is no longer maintained.** - -Open-source version of the inference widgets from huggingface.co - -> Built with Svelte and SvelteKit - -**Demo page:** https://huggingface.co/spaces/huggingfacejs/inference-widgets - -## Publishing - -Because `@huggingface/widgets` depends on `@huggingface/tasks`, you need to publish `@huggingface/tasks` first, and then `@huggingface/widgets`. There should be a CI check to prevent publishing `@huggingface/widgets` if `@huggingface/tasks` hasn't been published yet. - -## Demo - -You can run the demo locally: - -```console -pnpm install -pnpm dev --open -``` - -If you are submitting a PR, make sure that you run `format` & `lint` before submitting the PR: - -```console -pnpm format -pnpm lint -``` - -If you want to try the "Sign-in with HF" feature locally, you will need to https://huggingface.co/settings/applications/new an OAuth application with `"openid"`, `"profile"` and `"inference-api"` scopes and `http://localhost:5173/auth/callback/huggingface` as the redirect URL. - -Then you can create a `.env.local` file with the following content: - -```env -OAUTH_CLIENT_ID=... -OAUTH_CLIENT_SECRET=... -``` - -If you want to try the "Sign-in with HF" feature in a Space, you can just duplicate https://huggingface.co/spaces/huggingfacejs/inference-widgets, it should work out of the box thanks to the metadata in the `README.md` file. - -## Testing for moon (for huggingface admins) - -```console -pnpm i -pnpm build -``` - -And then inside moon, run the following command for both `server` & `front`: - -```console -npm i --save @huggingface/widgets@ -``` diff --git a/packages/widgets/package.json b/packages/widgets/package.json deleted file mode 100644 index 0c656e1aa..000000000 --- a/packages/widgets/package.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "name": "@huggingface/widgets", - "packageManager": "pnpm@8.10.5", - "version": "0.2.12", - "publishConfig": { - "access": "public" - }, - "scripts": { - "dev": "vite dev --mode app", - "build": "vite build --mode app && vite build --mode lib && vite build --mode lib --ssr && npm run package", - "preview": "vite preview --mode app", - "package": "publint", - "prepublishOnly": "npm run build", - "check": "svelte-check --tsconfig ./tsconfig.json src,static", - "check:watch": "svelte-check --tsconfig ./tsconfig.json --watch src,static", - "lint": "eslint --quiet --fix --ext .cjs,.ts .", - "lint:check": "eslint --ext .cjs,.ts .", - "format": "prettier --write .", - "format:check": "prettier --check ." - }, - "type": "module", - "module": "./dist/server/index.js", - "main": "./dist/server/index.cjs", - "types": "./dist/client/index.d.ts", - "source": "src/lib/index.ts", - "exports": { - ".": { - "types": "./dist/client/index.d.ts", - "node": { - "require": "./dist/server/index.cjs", - "import": "./dist/server/index.js" - }, - "browser": { - "import": "./dist/client/index.js", - "require": "./dist/client/index.cjs" - }, - "svelte": "./src/lib/index.ts" - } - }, - "files": [ - "dist", - "src", - "!dist/**/*.test.*", - "!dist/**/*.spec.*", - "static/audioProcessor.js" - ], - "dependencies": { - "@huggingface/inference": "workspace:^", - "@huggingface/tasks": "workspace:^", - "marked": "^12.0.2" - }, - "peerDependencies": { - "svelte": "^3.59.2" - }, - "devDependencies": { - "@auth/core": "^0.18.3", - "@auth/sveltekit": "^0.3.14", - "@fontsource/ibm-plex-mono": "^5.0.8", - "@fontsource/source-sans-pro": "^5.0.8", - "@sveltejs/adapter-node": "^1.3.1", - "@sveltejs/kit": "^1.27.4", - "@sveltejs/package": "^2.0.0", - "@sveltejs/vite-plugin-svelte": "2.5.3", - "@tailwindcss/forms": "^0.5.7", - "@types/node": "20", - "autoprefixer": "^10.4.16", - "postcss": "^8.4.31", - "publint": "^0.1.9", - "svelte": "^3.59.2", - "svelte-check": "^3.6.0", - "svelte-preprocess": "^5.1.1", - "tailwindcss": "^3.4.1", - "tslib": "^2.4.1", - "vite": "^4.5.0", - "vite-plugin-dts": "^3.6.4" - } -} diff --git a/packages/widgets/pnpm-lock.yaml b/packages/widgets/pnpm-lock.yaml deleted file mode 100644 index 21e41edeb..000000000 --- a/packages/widgets/pnpm-lock.yaml +++ /dev/null @@ -1,2150 +0,0 @@ -lockfileVersion: '6.0' - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false - -dependencies: - '@huggingface/inference': - specifier: workspace:^ - version: link:../inference - '@huggingface/tasks': - specifier: workspace:^ - version: link:../tasks - marked: - specifier: ^12.0.2 - version: 12.0.2 - -devDependencies: - '@auth/core': - specifier: ^0.18.3 - version: 0.18.3 - '@auth/sveltekit': - specifier: ^0.3.14 - version: 0.3.14(@sveltejs/kit@1.27.4)(svelte@3.59.2) - '@fontsource/ibm-plex-mono': - specifier: ^5.0.8 - version: 5.0.8 - '@fontsource/source-sans-pro': - specifier: ^5.0.8 - version: 5.0.8 - '@sveltejs/adapter-node': - specifier: ^1.3.1 - version: 1.3.1(@sveltejs/kit@1.27.4) - '@sveltejs/kit': - specifier: ^1.27.4 - version: 1.27.4(svelte@3.59.2)(vite@4.5.0) - '@sveltejs/package': - specifier: ^2.0.0 - version: 2.0.0(svelte@3.59.2)(typescript@5.3.3) - '@sveltejs/vite-plugin-svelte': - specifier: 2.5.3 - version: 2.5.3(svelte@3.59.2)(vite@4.5.0) - '@tailwindcss/forms': - specifier: ^0.5.7 - version: 0.5.7(tailwindcss@3.4.1) - '@types/node': - specifier: '20' - version: 20.10.1 - autoprefixer: - specifier: ^10.4.16 - version: 10.4.16(postcss@8.4.31) - postcss: - specifier: ^8.4.31 - version: 8.4.31 - publint: - specifier: ^0.1.9 - version: 0.1.9 - svelte: - specifier: ^3.59.2 - version: 3.59.2 - svelte-check: - specifier: ^3.6.0 - version: 3.6.0(postcss@8.4.31)(svelte@3.59.2) - svelte-preprocess: - specifier: ^5.1.1 - version: 5.1.1(postcss@8.4.31)(svelte@3.59.2)(typescript@5.3.3) - tailwindcss: - specifier: ^3.4.1 - version: 3.4.1 - tslib: - specifier: ^2.4.1 - version: 2.4.1 - vite: - specifier: ^4.5.0 - version: 4.5.0(@types/node@20.10.1) - vite-plugin-dts: - specifier: ^3.6.4 - version: 3.6.4(@types/node@20.10.1)(typescript@5.3.3)(vite@4.5.0) - -packages: - - /@alloc/quick-lru@5.2.0: - resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==} - engines: {node: '>=10'} - dev: true - - /@auth/core@0.18.3: - resolution: {integrity: sha512-YXQWxi3pKxngt+2vo3dq8+wDANlUH8nhQgX6EVdd3Enfe3vweBtHqzaWrtWzQnVb8wdGxdhxaoOlYroEBE+/yw==} - peerDependencies: - nodemailer: ^6.8.0 - peerDependenciesMeta: - nodemailer: - optional: true - dependencies: - '@panva/hkdf': 1.1.1 - cookie: 0.5.0 - jose: 5.1.2 - oauth4webapi: 2.4.0 - preact: 10.11.3 - preact-render-to-string: 5.2.3(preact@10.11.3) - dev: true - - /@auth/sveltekit@0.3.14(@sveltejs/kit@1.27.4)(svelte@3.59.2): - resolution: {integrity: sha512-Ealyi4uM4V42tk4UhhRQ+iZKah0OOp12siXwgDsCj1uBOCeZwL97RkvdMDX7pg18zBP/h2qFAuMWjW5q7bSYxA==} - peerDependencies: - '@sveltejs/kit': ^1.0.0 - svelte: ^3.54.0 || ^4.0.0 - dependencies: - '@auth/core': 0.18.3 - '@sveltejs/kit': 1.27.4(svelte@3.59.2)(vite@4.5.0) - svelte: 3.59.2 - transitivePeerDependencies: - - nodemailer - dev: true - - /@babel/helper-string-parser@7.23.4: - resolution: {integrity: sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==} - engines: {node: '>=6.9.0'} - dev: true - - /@babel/helper-validator-identifier@7.22.20: - resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==} - engines: {node: '>=6.9.0'} - dev: true - - /@babel/parser@7.23.5: - resolution: {integrity: sha512-hOOqoiNXrmGdFbhgCzu6GiURxUgM27Xwd/aPuu8RfHEZPBzL1Z54okAHAQjXfcQNwvrlkAmAp4SlRTZ45vlthQ==} - engines: {node: '>=6.0.0'} - hasBin: true - dependencies: - '@babel/types': 7.23.5 - dev: true - - /@babel/types@7.23.5: - resolution: {integrity: sha512-ON5kSOJwVO6xXVRTvOI0eOnWe7VdUcIpsovGo9U/Br4Ie4UVFQTboO2cYnDhAGU6Fp+UxSiT+pMft0SMHfuq6w==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/helper-string-parser': 7.23.4 - '@babel/helper-validator-identifier': 7.22.20 - to-fast-properties: 2.0.0 - dev: true - - /@esbuild/android-arm64@0.18.20: - resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==} - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - requiresBuild: true - dev: true - optional: true - - /@esbuild/android-arm@0.18.20: - resolution: {integrity: sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==} - engines: {node: '>=12'} - cpu: [arm] - os: [android] - requiresBuild: true - dev: true - optional: true - - /@esbuild/android-x64@0.18.20: - resolution: {integrity: sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==} - engines: {node: '>=12'} - cpu: [x64] - os: [android] - requiresBuild: true - dev: true - optional: true - - /@esbuild/darwin-arm64@0.18.20: - resolution: {integrity: sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@esbuild/darwin-x64@0.18.20: - resolution: {integrity: sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@esbuild/freebsd-arm64@0.18.20: - resolution: {integrity: sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==} - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/freebsd-x64@0.18.20: - resolution: {integrity: sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-arm64@0.18.20: - resolution: {integrity: sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-arm@0.18.20: - resolution: {integrity: sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==} - engines: {node: '>=12'} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-ia32@0.18.20: - resolution: {integrity: sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==} - engines: {node: '>=12'} - cpu: [ia32] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-loong64@0.18.20: - resolution: {integrity: sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==} - engines: {node: '>=12'} - cpu: [loong64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-mips64el@0.18.20: - resolution: {integrity: sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==} - engines: {node: '>=12'} - cpu: [mips64el] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-ppc64@0.18.20: - resolution: {integrity: sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-riscv64@0.18.20: - resolution: {integrity: sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==} - engines: {node: '>=12'} - cpu: [riscv64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-s390x@0.18.20: - resolution: {integrity: sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==} - engines: {node: '>=12'} - cpu: [s390x] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-x64@0.18.20: - resolution: {integrity: sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/netbsd-x64@0.18.20: - resolution: {integrity: sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==} - engines: {node: '>=12'} - cpu: [x64] - os: [netbsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/openbsd-x64@0.18.20: - resolution: {integrity: sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==} - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/sunos-x64@0.18.20: - resolution: {integrity: sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [sunos] - requiresBuild: true - dev: true - optional: true - - /@esbuild/win32-arm64@0.18.20: - resolution: {integrity: sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@esbuild/win32-ia32@0.18.20: - resolution: {integrity: sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==} - engines: {node: '>=12'} - cpu: [ia32] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@esbuild/win32-x64@0.18.20: - resolution: {integrity: sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@fastify/busboy@2.1.0: - resolution: {integrity: sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==} - engines: {node: '>=14'} - dev: true - - /@fontsource/ibm-plex-mono@5.0.8: - resolution: {integrity: sha512-AoR7K2YtlGKy3LApyLYjqjyz0o8XtkRvbB/juMsGSGNayBBAly140ykZls+VxcXjZSLQpp2RyxKo6lYOuHPmUw==} - dev: true - - /@fontsource/source-sans-pro@5.0.8: - resolution: {integrity: sha512-5U2UvIYRkCMozZ388gCE73PEpa2MFgN/0t9O4a1FF7bGT/MIneQWSL1XpWZ8iMVYdh6ntxRf3iFA6slCIuFgkg==} - dev: true - - /@jridgewell/gen-mapping@0.3.3: - resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==} - engines: {node: '>=6.0.0'} - dependencies: - '@jridgewell/set-array': 1.1.2 - '@jridgewell/sourcemap-codec': 1.4.15 - '@jridgewell/trace-mapping': 0.3.20 - dev: true - - /@jridgewell/resolve-uri@3.1.1: - resolution: {integrity: sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==} - engines: {node: '>=6.0.0'} - dev: true - - /@jridgewell/set-array@1.1.2: - resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==} - engines: {node: '>=6.0.0'} - dev: true - - /@jridgewell/sourcemap-codec@1.4.15: - resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} - dev: true - - /@jridgewell/trace-mapping@0.3.20: - resolution: {integrity: sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==} - dependencies: - '@jridgewell/resolve-uri': 3.1.1 - '@jridgewell/sourcemap-codec': 1.4.15 - dev: true - - /@microsoft/api-extractor-model@7.28.2(@types/node@20.10.1): - resolution: {integrity: sha512-vkojrM2fo3q4n4oPh4uUZdjJ2DxQ2+RnDQL/xhTWSRUNPF6P4QyrvY357HBxbnltKcYu+nNNolVqc6TIGQ73Ig==} - dependencies: - '@microsoft/tsdoc': 0.14.2 - '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 3.61.0(@types/node@20.10.1) - transitivePeerDependencies: - - '@types/node' - dev: true - - /@microsoft/api-extractor@7.38.3(@types/node@20.10.1): - resolution: {integrity: sha512-xt9iYyC5f39281j77JTA9C3ISJpW1XWkCcnw+2vM78CPnro6KhPfwQdPDfwS5JCPNuq0grm8cMdPUOPvrchDWw==} - hasBin: true - dependencies: - '@microsoft/api-extractor-model': 7.28.2(@types/node@20.10.1) - '@microsoft/tsdoc': 0.14.2 - '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 3.61.0(@types/node@20.10.1) - '@rushstack/rig-package': 0.5.1 - '@rushstack/ts-command-line': 4.17.1 - colors: 1.2.5 - lodash: 4.17.21 - resolve: 1.22.8 - semver: 7.5.4 - source-map: 0.6.1 - typescript: 5.0.4 - transitivePeerDependencies: - - '@types/node' - dev: true - - /@microsoft/tsdoc-config@0.16.2: - resolution: {integrity: sha512-OGiIzzoBLgWWR0UdRJX98oYO+XKGf7tiK4Zk6tQ/E4IJqGCe7dvkTvgDZV5cFJUzLGDOjeAXrnZoA6QkVySuxw==} - dependencies: - '@microsoft/tsdoc': 0.14.2 - ajv: 6.12.6 - jju: 1.4.0 - resolve: 1.19.0 - dev: true - - /@microsoft/tsdoc@0.14.2: - resolution: {integrity: sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==} - dev: true - - /@nodelib/fs.scandir@2.1.5: - resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} - engines: {node: '>= 8'} - dependencies: - '@nodelib/fs.stat': 2.0.5 - run-parallel: 1.2.0 - dev: true - - /@nodelib/fs.stat@2.0.5: - resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} - engines: {node: '>= 8'} - dev: true - - /@nodelib/fs.walk@1.2.8: - resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} - engines: {node: '>= 8'} - dependencies: - '@nodelib/fs.scandir': 2.1.5 - fastq: 1.15.0 - dev: true - - /@panva/hkdf@1.1.1: - resolution: {integrity: sha512-dhPeilub1NuIG0X5Kvhh9lH4iW3ZsHlnzwgwbOlgwQ2wG1IqFzsgHqmKPk3WzsdWAeaxKJxgM0+W433RmN45GA==} - dev: true - - /@polka/url@1.0.0-next.23: - resolution: {integrity: sha512-C16M+IYz0rgRhWZdCmK+h58JMv8vijAA61gmz2rspCSwKwzBebpdcsiUmwrtJRdphuY30i6BSLEOP8ppbNLyLg==} - dev: true - - /@rollup/plugin-commonjs@25.0.7(rollup@3.29.4): - resolution: {integrity: sha512-nEvcR+LRjEjsaSsc4x3XZfCCvZIaSMenZu/OiwOKGN2UhQpAYI7ru7czFvyWbErlpoGjnSX3D5Ch5FcMA3kRWQ==} - engines: {node: '>=14.0.0'} - peerDependencies: - rollup: ^2.68.0||^3.0.0||^4.0.0 - peerDependenciesMeta: - rollup: - optional: true - dependencies: - '@rollup/pluginutils': 5.0.5(rollup@3.29.4) - commondir: 1.0.1 - estree-walker: 2.0.2 - glob: 8.1.0 - is-reference: 1.2.1 - magic-string: 0.30.5 - rollup: 3.29.4 - dev: true - - /@rollup/plugin-json@6.0.1(rollup@3.29.4): - resolution: {integrity: sha512-RgVfl5hWMkxN1h/uZj8FVESvPuBJ/uf6ly6GTj0GONnkfoBN5KC0MSz+PN2OLDgYXMhtG0mWpTrkiOjoxAIevw==} - engines: {node: '>=14.0.0'} - peerDependencies: - rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 - peerDependenciesMeta: - rollup: - optional: true - dependencies: - '@rollup/pluginutils': 5.0.5(rollup@3.29.4) - rollup: 3.29.4 - dev: true - - /@rollup/plugin-node-resolve@15.2.3(rollup@3.29.4): - resolution: {integrity: sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ==} - engines: {node: '>=14.0.0'} - peerDependencies: - rollup: ^2.78.0||^3.0.0||^4.0.0 - peerDependenciesMeta: - rollup: - optional: true - dependencies: - '@rollup/pluginutils': 5.0.5(rollup@3.29.4) - '@types/resolve': 1.20.2 - deepmerge: 4.3.1 - is-builtin-module: 3.2.1 - is-module: 1.0.0 - resolve: 1.22.8 - rollup: 3.29.4 - dev: true - - /@rollup/pluginutils@5.0.5(rollup@3.29.4): - resolution: {integrity: sha512-6aEYR910NyP73oHiJglti74iRyOwgFU4x3meH/H8OJx6Ry0j6cOVZ5X/wTvub7G7Ao6qaHBEaNsV3GLJkSsF+Q==} - engines: {node: '>=14.0.0'} - peerDependencies: - rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 - peerDependenciesMeta: - rollup: - optional: true - dependencies: - '@types/estree': 1.0.5 - estree-walker: 2.0.2 - picomatch: 2.3.1 - rollup: 3.29.4 - dev: true - - /@rushstack/node-core-library@3.61.0(@types/node@20.10.1): - resolution: {integrity: sha512-tdOjdErme+/YOu4gPed3sFS72GhtWCgNV9oDsHDnoLY5oDfwjKUc9Z+JOZZ37uAxcm/OCahDHfuu2ugqrfWAVQ==} - peerDependencies: - '@types/node': '*' - peerDependenciesMeta: - '@types/node': - optional: true - dependencies: - '@types/node': 20.10.1 - colors: 1.2.5 - fs-extra: 7.0.1 - import-lazy: 4.0.0 - jju: 1.4.0 - resolve: 1.22.8 - semver: 7.5.4 - z-schema: 5.0.5 - dev: true - - /@rushstack/rig-package@0.5.1: - resolution: {integrity: sha512-pXRYSe29TjRw7rqxD4WS3HN/sRSbfr+tJs4a9uuaSIBAITbUggygdhuG0VrO0EO+QqH91GhYMN4S6KRtOEmGVA==} - dependencies: - resolve: 1.22.8 - strip-json-comments: 3.1.1 - dev: true - - /@rushstack/ts-command-line@4.17.1: - resolution: {integrity: sha512-2jweO1O57BYP5qdBGl6apJLB+aRIn5ccIRTPDyULh0KMwVzFqWtw6IZWt1qtUoZD/pD2RNkIOosH6Cq45rIYeg==} - dependencies: - '@types/argparse': 1.0.38 - argparse: 1.0.10 - colors: 1.2.5 - string-argv: 0.3.2 - dev: true - - /@sveltejs/adapter-node@1.3.1(@sveltejs/kit@1.27.4): - resolution: {integrity: sha512-A0VgRQDCDPzdLNoiAbcOxGw4zT1Mc+n1LwT1OmO350R7WxrEqdMUChPPOd1iMfIDWlP4ie6E2d/WQf5es2d4Zw==} - peerDependencies: - '@sveltejs/kit': ^1.0.0 - dependencies: - '@rollup/plugin-commonjs': 25.0.7(rollup@3.29.4) - '@rollup/plugin-json': 6.0.1(rollup@3.29.4) - '@rollup/plugin-node-resolve': 15.2.3(rollup@3.29.4) - '@sveltejs/kit': 1.27.4(svelte@3.59.2)(vite@4.5.0) - rollup: 3.29.4 - dev: true - - /@sveltejs/kit@1.27.4(svelte@3.59.2)(vite@4.5.0): - resolution: {integrity: sha512-Vxl8Jf0C1+/8i/slsxFOnwJntCBDLueO/O6GJ0390KUnyW3Zs+4ZiIinD+cEcYnJPQQ9CRzVSr9Bn6DbmTn4Dw==} - engines: {node: ^16.14 || >=18} - hasBin: true - requiresBuild: true - peerDependencies: - svelte: ^3.54.0 || ^4.0.0-next.0 || ^5.0.0-next.0 - vite: ^4.0.0 - dependencies: - '@sveltejs/vite-plugin-svelte': 2.5.3(svelte@3.59.2)(vite@4.5.0) - '@types/cookie': 0.5.4 - cookie: 0.5.0 - devalue: 4.3.2 - esm-env: 1.0.0 - kleur: 4.1.5 - magic-string: 0.30.5 - mrmime: 1.0.1 - sade: 1.8.1 - set-cookie-parser: 2.6.0 - sirv: 2.0.3 - svelte: 3.59.2 - tiny-glob: 0.2.9 - undici: 5.26.5 - vite: 4.5.0(@types/node@20.10.1) - transitivePeerDependencies: - - supports-color - dev: true - - /@sveltejs/package@2.0.0(svelte@3.59.2)(typescript@5.3.3): - resolution: {integrity: sha512-sANz/dJibOHOe83hl8pFWUSypqefdYwPp6SUr0SmJxTNQFB5dDECEqwAwoy28DWCQFYl7DU+C1hKkTXyuKOdug==} - engines: {node: ^16.14 || >=18} - hasBin: true - peerDependencies: - svelte: ^3.44.0 - dependencies: - chokidar: 3.5.3 - kleur: 4.1.5 - sade: 1.8.1 - svelte: 3.59.2 - svelte2tsx: 0.6.25(svelte@3.59.2)(typescript@5.3.3) - transitivePeerDependencies: - - typescript - dev: true - - /@sveltejs/vite-plugin-svelte-inspector@1.0.4(@sveltejs/vite-plugin-svelte@2.5.3)(svelte@3.59.2)(vite@4.5.0): - resolution: {integrity: sha512-zjiuZ3yydBtwpF3bj0kQNV0YXe+iKE545QGZVTaylW3eAzFr+pJ/cwK8lZEaRp4JtaJXhD5DyWAV4AxLh6DgaQ==} - engines: {node: ^14.18.0 || >= 16} - peerDependencies: - '@sveltejs/vite-plugin-svelte': ^2.2.0 - svelte: ^3.54.0 || ^4.0.0 - vite: ^4.0.0 - dependencies: - '@sveltejs/vite-plugin-svelte': 2.5.3(svelte@3.59.2)(vite@4.5.0) - debug: 4.3.4 - svelte: 3.59.2 - vite: 4.5.0(@types/node@20.10.1) - transitivePeerDependencies: - - supports-color - dev: true - - /@sveltejs/vite-plugin-svelte@2.5.3(svelte@3.59.2)(vite@4.5.0): - resolution: {integrity: sha512-erhNtXxE5/6xGZz/M9eXsmI7Pxa6MS7jyTy06zN3Ck++ldrppOnOlJwHHTsMC7DHDQdgUp4NAc4cDNQ9eGdB/w==} - engines: {node: ^14.18.0 || >= 16} - peerDependencies: - svelte: ^3.54.0 || ^4.0.0 || ^5.0.0-next.0 - vite: ^4.0.0 - dependencies: - '@sveltejs/vite-plugin-svelte-inspector': 1.0.4(@sveltejs/vite-plugin-svelte@2.5.3)(svelte@3.59.2)(vite@4.5.0) - debug: 4.3.4 - deepmerge: 4.3.1 - kleur: 4.1.5 - magic-string: 0.30.5 - svelte: 3.59.2 - svelte-hmr: 0.15.3(svelte@3.59.2) - vite: 4.5.0(@types/node@20.10.1) - vitefu: 0.2.5(vite@4.5.0) - transitivePeerDependencies: - - supports-color - dev: true - - /@tailwindcss/forms@0.5.7(tailwindcss@3.4.1): - resolution: {integrity: sha512-QE7X69iQI+ZXwldE+rzasvbJiyV/ju1FGHH0Qn2W3FKbuYtqp8LKcy6iSw79fVUT5/Vvf+0XgLCeYVG+UV6hOw==} - peerDependencies: - tailwindcss: '>=3.0.0 || >= 3.0.0-alpha.1' - dependencies: - mini-svg-data-uri: 1.4.4 - tailwindcss: 3.4.1 - dev: true - - /@types/argparse@1.0.38: - resolution: {integrity: sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==} - dev: true - - /@types/cookie@0.5.4: - resolution: {integrity: sha512-7z/eR6O859gyWIAjuvBWFzNURmf2oPBmJlfVWkwehU5nzIyjwBsTh7WMmEEV4JFnHuQ3ex4oyTvfKzcyJVDBNA==} - dev: true - - /@types/estree@1.0.5: - resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} - dev: true - - /@types/node@20.10.1: - resolution: {integrity: sha512-T2qwhjWwGH81vUEx4EXmBKsTJRXFXNZTL4v0gi01+zyBmCwzE6TyHszqX01m+QHTEq+EZNo13NeJIdEqf+Myrg==} - dependencies: - undici-types: 5.26.5 - dev: true - - /@types/pug@2.0.9: - resolution: {integrity: sha512-Yg4LkgFYvn1faISbDNWmcAC1XoDT8IoMUFspp5mnagKk+UvD2N0IWt5A7GRdMubsNWqgCLmrkf8rXkzNqb4szA==} - dev: true - - /@types/resolve@1.20.2: - resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} - dev: true - - /@volar/language-core@1.11.1: - resolution: {integrity: sha512-dOcNn3i9GgZAcJt43wuaEykSluAuOkQgzni1cuxLxTV0nJKanQztp7FxyswdRILaKH+P2XZMPRp2S4MV/pElCw==} - dependencies: - '@volar/source-map': 1.11.1 - dev: true - - /@volar/source-map@1.11.1: - resolution: {integrity: sha512-hJnOnwZ4+WT5iupLRnuzbULZ42L7BWWPMmruzwtLhJfpDVoZLjNBxHDi2sY2bgZXCKlpU5XcsMFoYrsQmPhfZg==} - dependencies: - muggle-string: 0.3.1 - dev: true - - /@volar/typescript@1.11.1: - resolution: {integrity: sha512-iU+t2mas/4lYierSnoFOeRFQUhAEMgsFuQxoxvwn5EdQopw43j+J27a4lt9LMInx1gLJBC6qL14WYGlgymaSMQ==} - dependencies: - '@volar/language-core': 1.11.1 - path-browserify: 1.0.1 - dev: true - - /@vue/compiler-core@3.3.9: - resolution: {integrity: sha512-+/Lf68Vr/nFBA6ol4xOtJrW+BQWv3QWKfRwGSm70jtXwfhZNF4R/eRgyVJYoxFRhdCTk/F6g99BP0ffPgZihfQ==} - dependencies: - '@babel/parser': 7.23.5 - '@vue/shared': 3.3.9 - estree-walker: 2.0.2 - source-map-js: 1.0.2 - dev: true - - /@vue/compiler-dom@3.3.9: - resolution: {integrity: sha512-nfWubTtLXuT4iBeDSZ5J3m218MjOy42Vp2pmKVuBKo2/BLcrFUX8nCSr/bKRFiJ32R8qbdnnnBgRn9AdU5v0Sg==} - dependencies: - '@vue/compiler-core': 3.3.9 - '@vue/shared': 3.3.9 - dev: true - - /@vue/language-core@1.8.24(typescript@5.3.3): - resolution: {integrity: sha512-2ClHvij0WlsDWryPzXJCSpPc6rusZFNoVtRZGgGGkKCmKuIREDDKmH8j+1tYyxPYyH0qL6pZ6+IHD8KIm5nWAw==} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@volar/language-core': 1.11.1 - '@volar/source-map': 1.11.1 - '@vue/compiler-dom': 3.3.9 - '@vue/shared': 3.3.9 - computeds: 0.0.1 - minimatch: 9.0.3 - muggle-string: 0.3.1 - path-browserify: 1.0.1 - typescript: 5.3.3 - vue-template-compiler: 2.7.15 - dev: true - - /@vue/shared@3.3.9: - resolution: {integrity: sha512-ZE0VTIR0LmYgeyhurPTpy4KzKsuDyQbMSdM49eKkMnT5X4VfFBLysMzjIZhLEFQYjjOVVfbvUDHckwjDFiO2eA==} - dev: true - - /ajv@6.12.6: - resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} - dependencies: - fast-deep-equal: 3.1.3 - fast-json-stable-stringify: 2.1.0 - json-schema-traverse: 0.4.1 - uri-js: 4.4.1 - dev: true - - /any-promise@1.3.0: - resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==} - dev: true - - /anymatch@3.1.3: - resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} - engines: {node: '>= 8'} - dependencies: - normalize-path: 3.0.0 - picomatch: 2.3.1 - dev: true - - /arg@5.0.2: - resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==} - dev: true - - /argparse@1.0.10: - resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} - dependencies: - sprintf-js: 1.0.3 - dev: true - - /autoprefixer@10.4.16(postcss@8.4.31): - resolution: {integrity: sha512-7vd3UC6xKp0HLfua5IjZlcXvGAGy7cBAXTg2lyQ/8WpNhd6SiZ8Be+xm3FyBSYJx5GKcpRCzBh7RH4/0dnY+uQ==} - engines: {node: ^10 || ^12 || >=14} - hasBin: true - peerDependencies: - postcss: ^8.1.0 - dependencies: - browserslist: 4.22.1 - caniuse-lite: 1.0.30001563 - fraction.js: 4.3.7 - normalize-range: 0.1.2 - picocolors: 1.0.0 - postcss: 8.4.31 - postcss-value-parser: 4.2.0 - dev: true - - /balanced-match@1.0.2: - resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - dev: true - - /binary-extensions@2.2.0: - resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} - engines: {node: '>=8'} - dev: true - - /brace-expansion@1.1.11: - resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} - dependencies: - balanced-match: 1.0.2 - concat-map: 0.0.1 - dev: true - - /brace-expansion@2.0.1: - resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} - dependencies: - balanced-match: 1.0.2 - dev: true - - /braces@3.0.2: - resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} - engines: {node: '>=8'} - dependencies: - fill-range: 7.0.1 - dev: true - - /browserslist@4.22.1: - resolution: {integrity: sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==} - engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} - hasBin: true - dependencies: - caniuse-lite: 1.0.30001563 - electron-to-chromium: 1.4.588 - node-releases: 2.0.13 - update-browserslist-db: 1.0.13(browserslist@4.22.1) - dev: true - - /buffer-crc32@0.2.13: - resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==} - dev: true - - /builtin-modules@3.3.0: - resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==} - engines: {node: '>=6'} - dev: true - - /callsites@3.1.0: - resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} - engines: {node: '>=6'} - dev: true - - /camelcase-css@2.0.1: - resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==} - engines: {node: '>= 6'} - dev: true - - /caniuse-lite@1.0.30001563: - resolution: {integrity: sha512-na2WUmOxnwIZtwnFI2CZ/3er0wdNzU7hN+cPYz/z2ajHThnkWjNBOpEPP4n+4r2WPM847JaMotaJE3bnfzjyKw==} - dev: true - - /chokidar@3.5.3: - resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==} - engines: {node: '>= 8.10.0'} - dependencies: - anymatch: 3.1.3 - braces: 3.0.2 - glob-parent: 5.1.2 - is-binary-path: 2.1.0 - is-glob: 4.0.3 - normalize-path: 3.0.0 - readdirp: 3.6.0 - optionalDependencies: - fsevents: 2.3.3 - dev: true - - /colors@1.2.5: - resolution: {integrity: sha512-erNRLao/Y3Fv54qUa0LBB+//Uf3YwMUmdJinN20yMXm9zdKKqH9wt7R9IIVZ+K7ShzfpLV/Zg8+VyrBJYB4lpg==} - engines: {node: '>=0.1.90'} - dev: true - - /commander@4.1.1: - resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} - engines: {node: '>= 6'} - dev: true - - /commander@9.5.0: - resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==} - engines: {node: ^12.20.0 || >=14} - requiresBuild: true - dev: true - optional: true - - /commondir@1.0.1: - resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==} - dev: true - - /computeds@0.0.1: - resolution: {integrity: sha512-7CEBgcMjVmitjYo5q8JTJVra6X5mQ20uTThdK+0kR7UEaDrAWEQcRiBtWJzga4eRpP6afNwwLsX2SET2JhVB1Q==} - dev: true - - /concat-map@0.0.1: - resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} - dev: true - - /cookie@0.5.0: - resolution: {integrity: sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==} - engines: {node: '>= 0.6'} - dev: true - - /cssesc@3.0.0: - resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==} - engines: {node: '>=4'} - hasBin: true - dev: true - - /de-indent@1.0.2: - resolution: {integrity: sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==} - dev: true - - /debug@4.3.4: - resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} - engines: {node: '>=6.0'} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - dependencies: - ms: 2.1.2 - dev: true - - /dedent-js@1.0.1: - resolution: {integrity: sha512-OUepMozQULMLUmhxS95Vudo0jb0UchLimi3+pQ2plj61Fcy8axbP9hbiD4Sz6DPqn6XG3kfmziVfQ1rSys5AJQ==} - dev: true - - /deepmerge@4.3.1: - resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} - engines: {node: '>=0.10.0'} - dev: true - - /detect-indent@6.1.0: - resolution: {integrity: sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==} - engines: {node: '>=8'} - dev: true - - /devalue@4.3.2: - resolution: {integrity: sha512-KqFl6pOgOW+Y6wJgu80rHpo2/3H07vr8ntR9rkkFIRETewbf5GaYYcakYfiKz89K+sLsuPkQIZaXDMjUObZwWg==} - dev: true - - /didyoumean@1.2.2: - resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==} - dev: true - - /dlv@1.1.3: - resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==} - dev: true - - /electron-to-chromium@1.4.588: - resolution: {integrity: sha512-soytjxwbgcCu7nh5Pf4S2/4wa6UIu+A3p03U2yVr53qGxi1/VTR3ENI+p50v+UxqqZAfl48j3z55ud7VHIOr9w==} - dev: true - - /es6-promise@3.3.1: - resolution: {integrity: sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==} - dev: true - - /esbuild@0.18.20: - resolution: {integrity: sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==} - engines: {node: '>=12'} - hasBin: true - requiresBuild: true - optionalDependencies: - '@esbuild/android-arm': 0.18.20 - '@esbuild/android-arm64': 0.18.20 - '@esbuild/android-x64': 0.18.20 - '@esbuild/darwin-arm64': 0.18.20 - '@esbuild/darwin-x64': 0.18.20 - '@esbuild/freebsd-arm64': 0.18.20 - '@esbuild/freebsd-x64': 0.18.20 - '@esbuild/linux-arm': 0.18.20 - '@esbuild/linux-arm64': 0.18.20 - '@esbuild/linux-ia32': 0.18.20 - '@esbuild/linux-loong64': 0.18.20 - '@esbuild/linux-mips64el': 0.18.20 - '@esbuild/linux-ppc64': 0.18.20 - '@esbuild/linux-riscv64': 0.18.20 - '@esbuild/linux-s390x': 0.18.20 - '@esbuild/linux-x64': 0.18.20 - '@esbuild/netbsd-x64': 0.18.20 - '@esbuild/openbsd-x64': 0.18.20 - '@esbuild/sunos-x64': 0.18.20 - '@esbuild/win32-arm64': 0.18.20 - '@esbuild/win32-ia32': 0.18.20 - '@esbuild/win32-x64': 0.18.20 - dev: true - - /escalade@3.1.1: - resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} - engines: {node: '>=6'} - dev: true - - /esm-env@1.0.0: - resolution: {integrity: sha512-Cf6VksWPsTuW01vU9Mk/3vRue91Zevka5SjyNf3nEpokFRuqt/KjUQoGAwq9qMmhpLTHmXzSIrFRw8zxWzmFBA==} - dev: true - - /estree-walker@2.0.2: - resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} - dev: true - - /fast-deep-equal@3.1.3: - resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} - dev: true - - /fast-glob@3.3.2: - resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} - engines: {node: '>=8.6.0'} - dependencies: - '@nodelib/fs.stat': 2.0.5 - '@nodelib/fs.walk': 1.2.8 - glob-parent: 5.1.2 - merge2: 1.4.1 - micromatch: 4.0.5 - dev: true - - /fast-json-stable-stringify@2.1.0: - resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} - dev: true - - /fastq@1.15.0: - resolution: {integrity: sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==} - dependencies: - reusify: 1.0.4 - dev: true - - /fill-range@7.0.1: - resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} - engines: {node: '>=8'} - dependencies: - to-regex-range: 5.0.1 - dev: true - - /fraction.js@4.3.7: - resolution: {integrity: sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==} - dev: true - - /fs-extra@7.0.1: - resolution: {integrity: sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==} - engines: {node: '>=6 <7 || >=8'} - dependencies: - graceful-fs: 4.2.11 - jsonfile: 4.0.0 - universalify: 0.1.2 - dev: true - - /fs.realpath@1.0.0: - resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} - dev: true - - /fsevents@2.3.3: - resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} - engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /function-bind@1.1.2: - resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} - dev: true - - /glob-parent@5.1.2: - resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} - engines: {node: '>= 6'} - dependencies: - is-glob: 4.0.3 - dev: true - - /glob-parent@6.0.2: - resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} - engines: {node: '>=10.13.0'} - dependencies: - is-glob: 4.0.3 - dev: true - - /glob@7.1.6: - resolution: {integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==} - dependencies: - fs.realpath: 1.0.0 - inflight: 1.0.6 - inherits: 2.0.4 - minimatch: 3.1.2 - once: 1.4.0 - path-is-absolute: 1.0.1 - dev: true - - /glob@7.2.3: - resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} - dependencies: - fs.realpath: 1.0.0 - inflight: 1.0.6 - inherits: 2.0.4 - minimatch: 3.1.2 - once: 1.4.0 - path-is-absolute: 1.0.1 - dev: true - - /glob@8.1.0: - resolution: {integrity: sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==} - engines: {node: '>=12'} - dependencies: - fs.realpath: 1.0.0 - inflight: 1.0.6 - inherits: 2.0.4 - minimatch: 5.1.6 - once: 1.4.0 - dev: true - - /globalyzer@0.1.0: - resolution: {integrity: sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==} - dev: true - - /globrex@0.1.2: - resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==} - dev: true - - /graceful-fs@4.2.11: - resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} - dev: true - - /hasown@2.0.0: - resolution: {integrity: sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==} - engines: {node: '>= 0.4'} - dependencies: - function-bind: 1.1.2 - dev: true - - /he@1.2.0: - resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==} - hasBin: true - dev: true - - /ignore-walk@5.0.1: - resolution: {integrity: sha512-yemi4pMf51WKT7khInJqAvsIGzoqYXblnsz0ql8tM+yi1EKYTY1evX4NAbJrLL/Aanr2HyZeluqU+Oi7MGHokw==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} - dependencies: - minimatch: 5.1.6 - dev: true - - /import-fresh@3.3.0: - resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} - engines: {node: '>=6'} - dependencies: - parent-module: 1.0.1 - resolve-from: 4.0.0 - dev: true - - /import-lazy@4.0.0: - resolution: {integrity: sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==} - engines: {node: '>=8'} - dev: true - - /inflight@1.0.6: - resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} - dependencies: - once: 1.4.0 - wrappy: 1.0.2 - dev: true - - /inherits@2.0.4: - resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} - dev: true - - /is-binary-path@2.1.0: - resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} - engines: {node: '>=8'} - dependencies: - binary-extensions: 2.2.0 - dev: true - - /is-builtin-module@3.2.1: - resolution: {integrity: sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==} - engines: {node: '>=6'} - dependencies: - builtin-modules: 3.3.0 - dev: true - - /is-core-module@2.13.1: - resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==} - dependencies: - hasown: 2.0.0 - dev: true - - /is-extglob@2.1.1: - resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} - engines: {node: '>=0.10.0'} - dev: true - - /is-glob@4.0.3: - resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} - engines: {node: '>=0.10.0'} - dependencies: - is-extglob: 2.1.1 - dev: true - - /is-module@1.0.0: - resolution: {integrity: sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==} - dev: true - - /is-number@7.0.0: - resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} - engines: {node: '>=0.12.0'} - dev: true - - /is-reference@1.2.1: - resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==} - dependencies: - '@types/estree': 1.0.5 - dev: true - - /jiti@1.21.0: - resolution: {integrity: sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==} - hasBin: true - dev: true - - /jju@1.4.0: - resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==} - dev: true - - /jose@5.1.2: - resolution: {integrity: sha512-X7TOC/d8KPvx4wPUuLHVgTSdoWw0UW5TQOUwhvCvj+ZPfsf9vUPhhksYPjNBWVGPQ/6yd/JrL1gQxBnIDwYdFg==} - dev: true - - /json-schema-traverse@0.4.1: - resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} - dev: true - - /jsonfile@4.0.0: - resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} - optionalDependencies: - graceful-fs: 4.2.11 - dev: true - - /kleur@4.1.5: - resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} - engines: {node: '>=6'} - dev: true - - /kolorist@1.8.0: - resolution: {integrity: sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==} - dev: true - - /lilconfig@2.1.0: - resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==} - engines: {node: '>=10'} - dev: true - - /lilconfig@3.0.0: - resolution: {integrity: sha512-K2U4W2Ff5ibV7j7ydLr+zLAkIg5JJ4lPn1Ltsdt+Tz/IjQ8buJ55pZAxoP34lqIiwtF9iAvtLv3JGv7CAyAg+g==} - engines: {node: '>=14'} - dev: true - - /lines-and-columns@1.2.4: - resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} - dev: true - - /lodash.get@4.4.2: - resolution: {integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==} - dev: true - - /lodash.isequal@4.5.0: - resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==} - dev: true - - /lodash@4.17.21: - resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} - dev: true - - /lower-case@2.0.2: - resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==} - dependencies: - tslib: 2.4.1 - dev: true - - /lru-cache@6.0.0: - resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} - engines: {node: '>=10'} - dependencies: - yallist: 4.0.0 - dev: true - - /magic-string@0.27.0: - resolution: {integrity: sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==} - engines: {node: '>=12'} - dependencies: - '@jridgewell/sourcemap-codec': 1.4.15 - dev: true - - /magic-string@0.30.5: - resolution: {integrity: sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==} - engines: {node: '>=12'} - dependencies: - '@jridgewell/sourcemap-codec': 1.4.15 - dev: true - - /marked@12.0.2: - resolution: {integrity: sha512-qXUm7e/YKFoqFPYPa3Ukg9xlI5cyAtGmyEIzMfW//m6kXwCy2Ps9DYf5ioijFKQ8qyuscrHoY04iJGctu2Kg0Q==} - engines: {node: '>= 18'} - hasBin: true - dev: false - - /merge2@1.4.1: - resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} - engines: {node: '>= 8'} - dev: true - - /micromatch@4.0.5: - resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==} - engines: {node: '>=8.6'} - dependencies: - braces: 3.0.2 - picomatch: 2.3.1 - dev: true - - /min-indent@1.0.1: - resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} - engines: {node: '>=4'} - dev: true - - /mini-svg-data-uri@1.4.4: - resolution: {integrity: sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==} - hasBin: true - dev: true - - /minimatch@3.1.2: - resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} - dependencies: - brace-expansion: 1.1.11 - dev: true - - /minimatch@5.1.6: - resolution: {integrity: sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==} - engines: {node: '>=10'} - dependencies: - brace-expansion: 2.0.1 - dev: true - - /minimatch@9.0.3: - resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==} - engines: {node: '>=16 || 14 >=14.17'} - dependencies: - brace-expansion: 2.0.1 - dev: true - - /minimist@1.2.8: - resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} - dev: true - - /mkdirp@0.5.6: - resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==} - hasBin: true - dependencies: - minimist: 1.2.8 - dev: true - - /mri@1.2.0: - resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} - engines: {node: '>=4'} - dev: true - - /mrmime@1.0.1: - resolution: {integrity: sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==} - engines: {node: '>=10'} - dev: true - - /ms@2.1.2: - resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} - dev: true - - /muggle-string@0.3.1: - resolution: {integrity: sha512-ckmWDJjphvd/FvZawgygcUeQCxzvohjFO5RxTjj4eq8kw359gFF3E1brjfI+viLMxss5JrHTDRHZvu2/tuy0Qg==} - dev: true - - /mz@2.7.0: - resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==} - dependencies: - any-promise: 1.3.0 - object-assign: 4.1.1 - thenify-all: 1.6.0 - dev: true - - /nanoid@3.3.7: - resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} - engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} - hasBin: true - dev: true - - /no-case@3.0.4: - resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==} - dependencies: - lower-case: 2.0.2 - tslib: 2.4.1 - dev: true - - /node-releases@2.0.13: - resolution: {integrity: sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==} - dev: true - - /normalize-path@3.0.0: - resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} - engines: {node: '>=0.10.0'} - dev: true - - /normalize-range@0.1.2: - resolution: {integrity: sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==} - engines: {node: '>=0.10.0'} - dev: true - - /npm-bundled@2.0.1: - resolution: {integrity: sha512-gZLxXdjEzE/+mOstGDqR6b0EkhJ+kM6fxM6vUuckuctuVPh80Q6pw/rSZj9s4Gex9GxWtIicO1pc8DB9KZWudw==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} - dependencies: - npm-normalize-package-bin: 2.0.0 - dev: true - - /npm-normalize-package-bin@2.0.0: - resolution: {integrity: sha512-awzfKUO7v0FscrSpRoogyNm0sajikhBWpU0QMrW09AMi9n1PoKU6WaIqUzuJSQnpciZZmJ/jMZ2Egfmb/9LiWQ==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} - dev: true - - /npm-packlist@5.1.3: - resolution: {integrity: sha512-263/0NGrn32YFYi4J533qzrQ/krmmrWwhKkzwTuM4f/07ug51odoaNjUexxO4vxlzURHcmYMH1QjvHjsNDKLVg==} - engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} - hasBin: true - dependencies: - glob: 8.1.0 - ignore-walk: 5.0.1 - npm-bundled: 2.0.1 - npm-normalize-package-bin: 2.0.0 - dev: true - - /oauth4webapi@2.4.0: - resolution: {integrity: sha512-ZWl8ov8HeGVyc9Icl1cag76HvIcDAp23eIIT+UVGir+dEu8BMgMlvZeZwqLVd0P8DqaumH4N+QLQXN69G1QjSA==} - dev: true - - /object-assign@4.1.1: - resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} - engines: {node: '>=0.10.0'} - dev: true - - /object-hash@3.0.0: - resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==} - engines: {node: '>= 6'} - dev: true - - /once@1.4.0: - resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} - dependencies: - wrappy: 1.0.2 - dev: true - - /parent-module@1.0.1: - resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} - engines: {node: '>=6'} - dependencies: - callsites: 3.1.0 - dev: true - - /pascal-case@3.1.2: - resolution: {integrity: sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==} - dependencies: - no-case: 3.0.4 - tslib: 2.4.1 - dev: true - - /path-browserify@1.0.1: - resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} - dev: true - - /path-is-absolute@1.0.1: - resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} - engines: {node: '>=0.10.0'} - dev: true - - /path-parse@1.0.7: - resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} - dev: true - - /picocolors@1.0.0: - resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} - dev: true - - /picomatch@2.3.1: - resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} - engines: {node: '>=8.6'} - dev: true - - /pify@2.3.0: - resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==} - engines: {node: '>=0.10.0'} - dev: true - - /pirates@4.0.6: - resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==} - engines: {node: '>= 6'} - dev: true - - /postcss-import@15.1.0(postcss@8.4.31): - resolution: {integrity: sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==} - engines: {node: '>=14.0.0'} - peerDependencies: - postcss: ^8.0.0 - dependencies: - postcss: 8.4.31 - postcss-value-parser: 4.2.0 - read-cache: 1.0.0 - resolve: 1.22.8 - dev: true - - /postcss-js@4.0.1(postcss@8.4.31): - resolution: {integrity: sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==} - engines: {node: ^12 || ^14 || >= 16} - peerDependencies: - postcss: ^8.4.21 - dependencies: - camelcase-css: 2.0.1 - postcss: 8.4.31 - dev: true - - /postcss-load-config@4.0.2(postcss@8.4.31): - resolution: {integrity: sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==} - engines: {node: '>= 14'} - peerDependencies: - postcss: '>=8.0.9' - ts-node: '>=9.0.0' - peerDependenciesMeta: - postcss: - optional: true - ts-node: - optional: true - dependencies: - lilconfig: 3.0.0 - postcss: 8.4.31 - yaml: 2.3.4 - dev: true - - /postcss-nested@6.0.1(postcss@8.4.31): - resolution: {integrity: sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==} - engines: {node: '>=12.0'} - peerDependencies: - postcss: ^8.2.14 - dependencies: - postcss: 8.4.31 - postcss-selector-parser: 6.0.13 - dev: true - - /postcss-selector-parser@6.0.13: - resolution: {integrity: sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==} - engines: {node: '>=4'} - dependencies: - cssesc: 3.0.0 - util-deprecate: 1.0.2 - dev: true - - /postcss-value-parser@4.2.0: - resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==} - dev: true - - /postcss@8.4.31: - resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==} - engines: {node: ^10 || ^12 || >=14} - dependencies: - nanoid: 3.3.7 - picocolors: 1.0.0 - source-map-js: 1.0.2 - dev: true - - /preact-render-to-string@5.2.3(preact@10.11.3): - resolution: {integrity: sha512-aPDxUn5o3GhWdtJtW0svRC2SS/l8D9MAgo2+AWml+BhDImb27ALf04Q2d+AHqUUOc6RdSXFIBVa2gxzgMKgtZA==} - peerDependencies: - preact: '>=10' - dependencies: - preact: 10.11.3 - pretty-format: 3.8.0 - dev: true - - /preact@10.11.3: - resolution: {integrity: sha512-eY93IVpod/zG3uMF22Unl8h9KkrcKIRs2EGar8hwLZZDU1lkjph303V9HZBwufh2s736U6VXuhD109LYqPoffg==} - dev: true - - /pretty-format@3.8.0: - resolution: {integrity: sha512-WuxUnVtlWL1OfZFQFuqvnvs6MiAGk9UNsBostyBOB0Is9wb5uRESevA6rnl/rkksXaGX3GzZhPup5d6Vp1nFew==} - dev: true - - /publint@0.1.9: - resolution: {integrity: sha512-O53y7vbePxuGFmEjgcrafMSlDpOJwOkj8YdexOt7yWlv7SB3rXoT3mHknyMJ3lf2UFH5Bmt6tnIkHcOTR6dEoA==} - engines: {node: '>=16'} - hasBin: true - dependencies: - npm-packlist: 5.1.3 - picocolors: 1.0.0 - sade: 1.8.1 - dev: true - - /punycode@2.3.1: - resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} - engines: {node: '>=6'} - dev: true - - /queue-microtask@1.2.3: - resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} - dev: true - - /read-cache@1.0.0: - resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==} - dependencies: - pify: 2.3.0 - dev: true - - /readdirp@3.6.0: - resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} - engines: {node: '>=8.10.0'} - dependencies: - picomatch: 2.3.1 - dev: true - - /resolve-from@4.0.0: - resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} - engines: {node: '>=4'} - dev: true - - /resolve@1.19.0: - resolution: {integrity: sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==} - dependencies: - is-core-module: 2.13.1 - path-parse: 1.0.7 - dev: true - - /resolve@1.22.8: - resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} - hasBin: true - dependencies: - is-core-module: 2.13.1 - path-parse: 1.0.7 - supports-preserve-symlinks-flag: 1.0.0 - dev: true - - /reusify@1.0.4: - resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} - engines: {iojs: '>=1.0.0', node: '>=0.10.0'} - dev: true - - /rimraf@2.7.1: - resolution: {integrity: sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==} - hasBin: true - dependencies: - glob: 7.2.3 - dev: true - - /rollup@3.29.4: - resolution: {integrity: sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==} - engines: {node: '>=14.18.0', npm: '>=8.0.0'} - hasBin: true - optionalDependencies: - fsevents: 2.3.3 - dev: true - - /run-parallel@1.2.0: - resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} - dependencies: - queue-microtask: 1.2.3 - dev: true - - /sade@1.8.1: - resolution: {integrity: sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==} - engines: {node: '>=6'} - dependencies: - mri: 1.2.0 - dev: true - - /sander@0.5.1: - resolution: {integrity: sha512-3lVqBir7WuKDHGrKRDn/1Ye3kwpXaDOMsiRP1wd6wpZW56gJhsbp5RqQpA6JG/P+pkXizygnr1dKR8vzWaVsfA==} - dependencies: - es6-promise: 3.3.1 - graceful-fs: 4.2.11 - mkdirp: 0.5.6 - rimraf: 2.7.1 - dev: true - - /semver@7.5.4: - resolution: {integrity: sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==} - engines: {node: '>=10'} - hasBin: true - dependencies: - lru-cache: 6.0.0 - dev: true - - /set-cookie-parser@2.6.0: - resolution: {integrity: sha512-RVnVQxTXuerk653XfuliOxBP81Sf0+qfQE73LIYKcyMYHG94AuH0kgrQpRDuTZnSmjpysHmzxJXKNfa6PjFhyQ==} - dev: true - - /sirv@2.0.3: - resolution: {integrity: sha512-O9jm9BsID1P+0HOi81VpXPoDxYP374pkOLzACAoyUQ/3OUVndNpsz6wMnY2z+yOxzbllCKZrM+9QrWsv4THnyA==} - engines: {node: '>= 10'} - dependencies: - '@polka/url': 1.0.0-next.23 - mrmime: 1.0.1 - totalist: 3.0.1 - dev: true - - /sorcery@0.11.0: - resolution: {integrity: sha512-J69LQ22xrQB1cIFJhPfgtLuI6BpWRiWu1Y3vSsIwK/eAScqJxd/+CJlUuHQRdX2C9NGFamq+KqNywGgaThwfHw==} - hasBin: true - dependencies: - '@jridgewell/sourcemap-codec': 1.4.15 - buffer-crc32: 0.2.13 - minimist: 1.2.8 - sander: 0.5.1 - dev: true - - /source-map-js@1.0.2: - resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} - engines: {node: '>=0.10.0'} - dev: true - - /source-map@0.6.1: - resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} - engines: {node: '>=0.10.0'} - dev: true - - /sprintf-js@1.0.3: - resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} - dev: true - - /string-argv@0.3.2: - resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==} - engines: {node: '>=0.6.19'} - dev: true - - /strip-indent@3.0.0: - resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} - engines: {node: '>=8'} - dependencies: - min-indent: 1.0.1 - dev: true - - /strip-json-comments@3.1.1: - resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} - engines: {node: '>=8'} - dev: true - - /sucrase@3.34.0: - resolution: {integrity: sha512-70/LQEZ07TEcxiU2dz51FKaE6hCTWC6vr7FOk3Gr0U60C3shtAN+H+BFr9XlYe5xqf3RA8nrc+VIwzCfnxuXJw==} - engines: {node: '>=8'} - hasBin: true - dependencies: - '@jridgewell/gen-mapping': 0.3.3 - commander: 4.1.1 - glob: 7.1.6 - lines-and-columns: 1.2.4 - mz: 2.7.0 - pirates: 4.0.6 - ts-interface-checker: 0.1.13 - dev: true - - /supports-preserve-symlinks-flag@1.0.0: - resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} - engines: {node: '>= 0.4'} - dev: true - - /svelte-check@3.6.0(postcss@8.4.31)(svelte@3.59.2): - resolution: {integrity: sha512-8VfqhfuRJ1sKW+o8isH2kPi0RhjXH1nNsIbCFGyoUHG+ZxVxHYRKcb+S8eaL/1tyj3VGvWYx3Y5+oCUsJgnzcw==} - hasBin: true - peerDependencies: - svelte: ^3.55.0 || ^4.0.0-next.0 || ^4.0.0 || ^5.0.0-next.0 - dependencies: - '@jridgewell/trace-mapping': 0.3.20 - chokidar: 3.5.3 - fast-glob: 3.3.2 - import-fresh: 3.3.0 - picocolors: 1.0.0 - sade: 1.8.1 - svelte: 3.59.2 - svelte-preprocess: 5.1.1(postcss@8.4.31)(svelte@3.59.2)(typescript@5.0.4) - typescript: 5.0.4 - transitivePeerDependencies: - - '@babel/core' - - coffeescript - - less - - postcss - - postcss-load-config - - pug - - sass - - stylus - - sugarss - dev: true - - /svelte-hmr@0.15.3(svelte@3.59.2): - resolution: {integrity: sha512-41snaPswvSf8TJUhlkoJBekRrABDXDMdpNpT2tfHIv4JuhgvHqLMhEPGtaQn0BmbNSTkuz2Ed20DF2eHw0SmBQ==} - engines: {node: ^12.20 || ^14.13.1 || >= 16} - peerDependencies: - svelte: ^3.19.0 || ^4.0.0 - dependencies: - svelte: 3.59.2 - dev: true - - /svelte-preprocess@5.1.1(postcss@8.4.31)(svelte@3.59.2)(typescript@5.0.4): - resolution: {integrity: sha512-p/Dp4hmrBW5mrCCq29lEMFpIJT2FZsRlouxEc5qpbOmXRbaFs7clLs8oKPwD3xCFyZfv1bIhvOzpQkhMEVQdMw==} - engines: {node: '>= 14.10.0'} - requiresBuild: true - 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 || ^5.0.0-next.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 - dependencies: - '@types/pug': 2.0.9 - detect-indent: 6.1.0 - magic-string: 0.27.0 - postcss: 8.4.31 - sorcery: 0.11.0 - strip-indent: 3.0.0 - svelte: 3.59.2 - typescript: 5.0.4 - dev: true - - /svelte-preprocess@5.1.1(postcss@8.4.31)(svelte@3.59.2)(typescript@5.3.3): - resolution: {integrity: sha512-p/Dp4hmrBW5mrCCq29lEMFpIJT2FZsRlouxEc5qpbOmXRbaFs7clLs8oKPwD3xCFyZfv1bIhvOzpQkhMEVQdMw==} - engines: {node: '>= 14.10.0'} - requiresBuild: true - 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 || ^5.0.0-next.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 - dependencies: - '@types/pug': 2.0.9 - detect-indent: 6.1.0 - magic-string: 0.27.0 - postcss: 8.4.31 - sorcery: 0.11.0 - strip-indent: 3.0.0 - svelte: 3.59.2 - typescript: 5.3.3 - dev: true - - /svelte2tsx@0.6.25(svelte@3.59.2)(typescript@5.3.3): - resolution: {integrity: sha512-hhBKL5X9gGvKQAZ9xLoHnbE9Yb00HxEZJlxcj2drxWK+Tpqcs/bnodjSfCGbqEhvNaUXYNbVL7s4dEXT+o0f6w==} - peerDependencies: - svelte: ^3.55 || ^4.0.0-next.0 || ^4.0 || ^5.0.0-next.0 - typescript: ^4.9.4 || ^5.0.0 - dependencies: - dedent-js: 1.0.1 - pascal-case: 3.1.2 - svelte: 3.59.2 - typescript: 5.3.3 - dev: true - - /svelte@3.59.2: - resolution: {integrity: sha512-vzSyuGr3eEoAtT/A6bmajosJZIUWySzY2CzB3w2pgPvnkUjGqlDnsNnA0PMO+mMAhuyMul6C2uuZzY6ELSkzyA==} - engines: {node: '>= 8'} - dev: true - - /tailwindcss@3.4.1: - resolution: {integrity: sha512-qAYmXRfk3ENzuPBakNK0SRrUDipP8NQnEY6772uDhflcQz5EhRdD7JNZxyrFHVQNCwULPBn6FNPp9brpO7ctcA==} - engines: {node: '>=14.0.0'} - hasBin: true - dependencies: - '@alloc/quick-lru': 5.2.0 - arg: 5.0.2 - chokidar: 3.5.3 - didyoumean: 1.2.2 - dlv: 1.1.3 - fast-glob: 3.3.2 - glob-parent: 6.0.2 - is-glob: 4.0.3 - jiti: 1.21.0 - lilconfig: 2.1.0 - micromatch: 4.0.5 - normalize-path: 3.0.0 - object-hash: 3.0.0 - picocolors: 1.0.0 - postcss: 8.4.31 - postcss-import: 15.1.0(postcss@8.4.31) - postcss-js: 4.0.1(postcss@8.4.31) - postcss-load-config: 4.0.2(postcss@8.4.31) - postcss-nested: 6.0.1(postcss@8.4.31) - postcss-selector-parser: 6.0.13 - resolve: 1.22.8 - sucrase: 3.34.0 - transitivePeerDependencies: - - ts-node - dev: true - - /thenify-all@1.6.0: - resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==} - engines: {node: '>=0.8'} - dependencies: - thenify: 3.3.1 - dev: true - - /thenify@3.3.1: - resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==} - dependencies: - any-promise: 1.3.0 - dev: true - - /tiny-glob@0.2.9: - resolution: {integrity: sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==} - dependencies: - globalyzer: 0.1.0 - globrex: 0.1.2 - dev: true - - /to-fast-properties@2.0.0: - resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==} - engines: {node: '>=4'} - dev: true - - /to-regex-range@5.0.1: - resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} - engines: {node: '>=8.0'} - dependencies: - is-number: 7.0.0 - dev: true - - /totalist@3.0.1: - resolution: {integrity: sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==} - engines: {node: '>=6'} - dev: true - - /ts-interface-checker@0.1.13: - resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} - dev: true - - /tslib@2.4.1: - resolution: {integrity: sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==} - dev: true - - /typescript@5.0.4: - resolution: {integrity: sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==} - engines: {node: '>=12.20'} - hasBin: true - dev: true - - /typescript@5.3.3: - resolution: {integrity: sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==} - engines: {node: '>=14.17'} - hasBin: true - dev: true - - /undici-types@5.26.5: - resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - dev: true - - /undici@5.26.5: - resolution: {integrity: sha512-cSb4bPFd5qgR7qr2jYAi0hlX9n5YKK2ONKkLFkxl+v/9BvC0sOpZjBHDBSXc5lWAf5ty9oZdRXytBIHzgUcerw==} - engines: {node: '>=14.0'} - dependencies: - '@fastify/busboy': 2.1.0 - dev: true - - /universalify@0.1.2: - resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==} - engines: {node: '>= 4.0.0'} - dev: true - - /update-browserslist-db@1.0.13(browserslist@4.22.1): - resolution: {integrity: sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==} - hasBin: true - peerDependencies: - browserslist: '>= 4.21.0' - dependencies: - browserslist: 4.22.1 - escalade: 3.1.1 - picocolors: 1.0.0 - dev: true - - /uri-js@4.4.1: - resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} - dependencies: - punycode: 2.3.1 - dev: true - - /util-deprecate@1.0.2: - resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} - dev: true - - /validator@13.11.0: - resolution: {integrity: sha512-Ii+sehpSfZy+At5nPdnyMhx78fEoPDkR2XW/zimHEL3MyGJQOCQ7WeP20jPYRz7ZCpcKLB21NxuXHF3bxjStBQ==} - engines: {node: '>= 0.10'} - dev: true - - /vite-plugin-dts@3.6.4(@types/node@20.10.1)(typescript@5.3.3)(vite@4.5.0): - resolution: {integrity: sha512-yOVhUI/kQhtS6lCXRYYLv2UUf9bftcwQK9ROxCX2ul17poLQs02ctWX7+vXB8GPRzH8VCK3jebEFtPqqijXx6w==} - engines: {node: ^14.18.0 || >=16.0.0} - peerDependencies: - typescript: '*' - vite: '*' - peerDependenciesMeta: - vite: - optional: true - dependencies: - '@microsoft/api-extractor': 7.38.3(@types/node@20.10.1) - '@rollup/pluginutils': 5.0.5(rollup@3.29.4) - '@vue/language-core': 1.8.24(typescript@5.3.3) - debug: 4.3.4 - kolorist: 1.8.0 - typescript: 5.3.3 - vite: 4.5.0(@types/node@20.10.1) - vue-tsc: 1.8.24(typescript@5.3.3) - transitivePeerDependencies: - - '@types/node' - - rollup - - supports-color - dev: true - - /vite@4.5.0(@types/node@20.10.1): - resolution: {integrity: sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==} - engines: {node: ^14.18.0 || >=16.0.0} - hasBin: true - peerDependencies: - '@types/node': '>= 14' - less: '*' - lightningcss: ^1.21.0 - sass: '*' - stylus: '*' - sugarss: '*' - terser: ^5.4.0 - peerDependenciesMeta: - '@types/node': - optional: true - less: - optional: true - lightningcss: - optional: true - sass: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true - dependencies: - '@types/node': 20.10.1 - esbuild: 0.18.20 - postcss: 8.4.31 - rollup: 3.29.4 - optionalDependencies: - fsevents: 2.3.3 - dev: true - - /vitefu@0.2.5(vite@4.5.0): - resolution: {integrity: sha512-SgHtMLoqaeeGnd2evZ849ZbACbnwQCIwRH57t18FxcXoZop0uQu0uzlIhJBlF/eWVzuce0sHeqPcDo+evVcg8Q==} - peerDependencies: - vite: ^3.0.0 || ^4.0.0 || ^5.0.0 - peerDependenciesMeta: - vite: - optional: true - dependencies: - vite: 4.5.0(@types/node@20.10.1) - dev: true - - /vue-template-compiler@2.7.15: - resolution: {integrity: sha512-yQxjxMptBL7UAog00O8sANud99C6wJF+7kgbcwqkvA38vCGF7HWE66w0ZFnS/kX5gSoJr/PQ4/oS3Ne2pW37Og==} - dependencies: - de-indent: 1.0.2 - he: 1.2.0 - dev: true - - /vue-tsc@1.8.24(typescript@5.3.3): - resolution: {integrity: sha512-eH1CSj231OzVEY5Hi7wS6ubzyOEwgr5jCptR0Ddf2SitGcaXIsPVDvrprm3eolCdyhDt3WS1Eb2F4fGX9BsUUw==} - hasBin: true - peerDependencies: - typescript: '*' - dependencies: - '@volar/typescript': 1.11.1 - '@vue/language-core': 1.8.24(typescript@5.3.3) - semver: 7.5.4 - typescript: 5.3.3 - dev: true - - /wrappy@1.0.2: - resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} - dev: true - - /yallist@4.0.0: - resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} - dev: true - - /yaml@2.3.4: - resolution: {integrity: sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==} - engines: {node: '>= 14'} - dev: true - - /z-schema@5.0.5: - resolution: {integrity: sha512-D7eujBWkLa3p2sIpJA0d1pr7es+a7m0vFAnZLlCEKq/Ij2k0MLi9Br2UPxoxdYystm5K1yeBGzub0FlYUEWj2Q==} - engines: {node: '>=8.0.0'} - hasBin: true - dependencies: - lodash.get: 4.4.2 - lodash.isequal: 4.5.0 - validator: 13.11.0 - optionalDependencies: - commander: 9.5.0 - dev: true diff --git a/packages/widgets/postcss.config.js b/packages/widgets/postcss.config.js deleted file mode 100644 index 7b75c83af..000000000 --- a/packages/widgets/postcss.config.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -}; diff --git a/packages/widgets/src/additional-svelte-typings.d.ts b/packages/widgets/src/additional-svelte-typings.d.ts deleted file mode 100644 index 005f3d400..000000000 --- a/packages/widgets/src/additional-svelte-typings.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// eslint-disable-next-line @typescript-eslint/no-namespace, @typescript-eslint/no-unused-vars -declare namespace svelteHTML { - // enhance attributes - // eslint-disable-next-line @typescript-eslint/no-unused-vars - interface HTMLAttributes { - // If you want to use on:beforeinstallprompt - "on:cmdEnter"?: () => void; - } -} diff --git a/packages/widgets/src/app.d.ts b/packages/widgets/src/app.d.ts deleted file mode 100644 index 8b7f8826a..000000000 --- a/packages/widgets/src/app.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -// See https://kit.svelte.dev/docs/types#app -// for information about these interfaces -declare global { - namespace App { - // interface Error {} - // interface Locals {} - // interface PageData {} - // interface Platform {} - } - - export interface Session { - access_token?: string; - } -} - -declare module "@auth/core/types" { - export interface Session { - access_token?: string; - } - - export interface User { - username: string; - } -} - -export {}; diff --git a/packages/widgets/src/app.html b/packages/widgets/src/app.html deleted file mode 100644 index f22aeaad5..000000000 --- a/packages/widgets/src/app.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - %sveltekit.head% - - -
%sveltekit.body%
- - diff --git a/packages/widgets/src/hooks.server.ts b/packages/widgets/src/hooks.server.ts deleted file mode 100644 index 1ff48a19b..000000000 --- a/packages/widgets/src/hooks.server.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { env } from "$env/dynamic/private"; -import { skipCSRFCheck } from "@auth/core"; -import { SvelteKitAuth } from "@auth/sveltekit"; -import type { Handle } from "@sveltejs/kit"; -import { sequence } from "@sveltejs/kit/hooks"; - -const handleSSO = - env.OAUTH_CLIENT_ID && env.OAUTH_CLIENT_SECRET - ? SvelteKitAuth({ - // Should be fine as long as your reverse proxy is configured to only accept traffic with the correct host header - trustHost: true, - /** - * SvelteKit has built-in CSRF protection, so we can skip the check - */ - skipCSRFCheck: skipCSRFCheck, - cookies: { - sessionToken: { - name: "session_token", - options: { - httpOnly: true, - sameSite: "lax", - secure: true, - path: "/", - maxAge: 3600, // The OAuth token's lifetime is 3600 seconds - }, - }, - }, - providers: [ - { - name: "Hugging Face", - id: "huggingface", - type: "oidc", - clientId: env.OAUTH_CLIENT_ID, - clientSecret: env.OAUTH_CLIENT_SECRET, - issuer: "https://huggingface.co", - wellKnown: "https://huggingface.co/.well-known/openid-configuration", - /** Add "inference-api" scope and remove "email" scope */ - authorization: { params: { scope: "openid profile inference-api" } }, - checks: ["state" as never, "pkce" as never], - }, - ], - secret: env.OAUTH_CLIENT_SECRET, - /** - * Get the access_token without an account in DB, to make calls to Inference Endpoints - */ - callbacks: { - jwt({ token, account, profile }) { - return { - ...token, - /** - * account & profile are undefined beyond the first login, in those - * cases `token.access_token` and `token.username` are defined - */ - ...(account && { access_token: account.access_token }), - ...(profile && { username: profile.preferred_username }), - }; - }, - session({ session, token }) { - return { - ...session, - access_token: token.access_token, - user: Object.assign({}, session.user, { - username: token.username, - }), - }; - }, - }, - }) - : null; - -const handleGlobal: Handle = async ({ event, resolve }) => { - const response = await resolve(event); - return response; -}; - -export const handle = handleSSO ? sequence(handleSSO, handleGlobal) : handleGlobal; diff --git a/packages/widgets/src/lib/components/DemoThemeSwitcher/DemoThemeSwitcher.svelte b/packages/widgets/src/lib/components/DemoThemeSwitcher/DemoThemeSwitcher.svelte deleted file mode 100644 index 244e51cc6..000000000 --- a/packages/widgets/src/lib/components/DemoThemeSwitcher/DemoThemeSwitcher.svelte +++ /dev/null @@ -1,60 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconAnyToAny.svelte b/packages/widgets/src/lib/components/Icons/IconAnyToAny.svelte deleted file mode 100644 index 9ebbf1b8c..000000000 --- a/packages/widgets/src/lib/components/Icons/IconAnyToAny.svelte +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/widgets/src/lib/components/Icons/IconAudioClassification.svelte b/packages/widgets/src/lib/components/Icons/IconAudioClassification.svelte deleted file mode 100644 index 963570923..000000000 --- a/packages/widgets/src/lib/components/Icons/IconAudioClassification.svelte +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconAudioToAudio.svelte b/packages/widgets/src/lib/components/Icons/IconAudioToAudio.svelte deleted file mode 100644 index ae5c4aeef..000000000 --- a/packages/widgets/src/lib/components/Icons/IconAudioToAudio.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconAutomaticSpeechRecognition.svelte b/packages/widgets/src/lib/components/Icons/IconAutomaticSpeechRecognition.svelte deleted file mode 100644 index 01b18c541..000000000 --- a/packages/widgets/src/lib/components/Icons/IconAutomaticSpeechRecognition.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconAzureML.svelte b/packages/widgets/src/lib/components/Icons/IconAzureML.svelte deleted file mode 100644 index 3fc373b4b..000000000 --- a/packages/widgets/src/lib/components/Icons/IconAzureML.svelte +++ /dev/null @@ -1,40 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconCaretDown.svelte b/packages/widgets/src/lib/components/Icons/IconCaretDown.svelte deleted file mode 100644 index ae3574382..000000000 --- a/packages/widgets/src/lib/components/Icons/IconCaretDown.svelte +++ /dev/null @@ -1,19 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconCaretDownV2.svelte b/packages/widgets/src/lib/components/Icons/IconCaretDownV2.svelte deleted file mode 100644 index f8b4baac5..000000000 --- a/packages/widgets/src/lib/components/Icons/IconCaretDownV2.svelte +++ /dev/null @@ -1,11 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconCode.svelte b/packages/widgets/src/lib/components/Icons/IconCode.svelte deleted file mode 100644 index a84e7b970..000000000 --- a/packages/widgets/src/lib/components/Icons/IconCode.svelte +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconConversational.svelte b/packages/widgets/src/lib/components/Icons/IconConversational.svelte deleted file mode 100644 index 38e01c10b..000000000 --- a/packages/widgets/src/lib/components/Icons/IconConversational.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconCross.svelte b/packages/widgets/src/lib/components/Icons/IconCross.svelte deleted file mode 100644 index ae6b04ffc..000000000 --- a/packages/widgets/src/lib/components/Icons/IconCross.svelte +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconDepthEstimation.svelte b/packages/widgets/src/lib/components/Icons/IconDepthEstimation.svelte deleted file mode 100644 index 83362801b..000000000 --- a/packages/widgets/src/lib/components/Icons/IconDepthEstimation.svelte +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconDocumentQuestionAnswering.svelte b/packages/widgets/src/lib/components/Icons/IconDocumentQuestionAnswering.svelte deleted file mode 100644 index 6c1c84297..000000000 --- a/packages/widgets/src/lib/components/Icons/IconDocumentQuestionAnswering.svelte +++ /dev/null @@ -1,13 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconFeatureExtraction.svelte b/packages/widgets/src/lib/components/Icons/IconFeatureExtraction.svelte deleted file mode 100644 index c1806a76a..000000000 --- a/packages/widgets/src/lib/components/Icons/IconFeatureExtraction.svelte +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconFile.svelte b/packages/widgets/src/lib/components/Icons/IconFile.svelte deleted file mode 100644 index 0d50da5d5..000000000 --- a/packages/widgets/src/lib/components/Icons/IconFile.svelte +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconFillMask.svelte b/packages/widgets/src/lib/components/Icons/IconFillMask.svelte deleted file mode 100644 index e096d5a8c..000000000 --- a/packages/widgets/src/lib/components/Icons/IconFillMask.svelte +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconGraphML.svelte b/packages/widgets/src/lib/components/Icons/IconGraphML.svelte deleted file mode 100644 index 6000b5ab3..000000000 --- a/packages/widgets/src/lib/components/Icons/IconGraphML.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconHuggingFace.svelte b/packages/widgets/src/lib/components/Icons/IconHuggingFace.svelte deleted file mode 100644 index 325aec971..000000000 --- a/packages/widgets/src/lib/components/Icons/IconHuggingFace.svelte +++ /dev/null @@ -1,56 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconImageAndTextToText.svelte b/packages/widgets/src/lib/components/Icons/IconImageAndTextToText.svelte deleted file mode 100644 index 8263c0801..000000000 --- a/packages/widgets/src/lib/components/Icons/IconImageAndTextToText.svelte +++ /dev/null @@ -1,28 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconImageClassification.svelte b/packages/widgets/src/lib/components/Icons/IconImageClassification.svelte deleted file mode 100644 index fa83eb205..000000000 --- a/packages/widgets/src/lib/components/Icons/IconImageClassification.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconImageFeatureExtraction.svelte b/packages/widgets/src/lib/components/Icons/IconImageFeatureExtraction.svelte deleted file mode 100644 index 38c0a271d..000000000 --- a/packages/widgets/src/lib/components/Icons/IconImageFeatureExtraction.svelte +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconImageSegmentation.svelte b/packages/widgets/src/lib/components/Icons/IconImageSegmentation.svelte deleted file mode 100644 index d84e55c74..000000000 --- a/packages/widgets/src/lib/components/Icons/IconImageSegmentation.svelte +++ /dev/null @@ -1,24 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconImageTo3D.svelte b/packages/widgets/src/lib/components/Icons/IconImageTo3D.svelte deleted file mode 100644 index 83c9d520f..000000000 --- a/packages/widgets/src/lib/components/Icons/IconImageTo3D.svelte +++ /dev/null @@ -1,26 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconImageToImage.svelte b/packages/widgets/src/lib/components/Icons/IconImageToImage.svelte deleted file mode 100644 index 1ea332d30..000000000 --- a/packages/widgets/src/lib/components/Icons/IconImageToImage.svelte +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconImageToText.svelte b/packages/widgets/src/lib/components/Icons/IconImageToText.svelte deleted file mode 100644 index 8263c0801..000000000 --- a/packages/widgets/src/lib/components/Icons/IconImageToText.svelte +++ /dev/null @@ -1,28 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconImageToVideo.svelte b/packages/widgets/src/lib/components/Icons/IconImageToVideo.svelte deleted file mode 100644 index 36c45469d..000000000 --- a/packages/widgets/src/lib/components/Icons/IconImageToVideo.svelte +++ /dev/null @@ -1,12 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconInfo.svelte b/packages/widgets/src/lib/components/Icons/IconInfo.svelte deleted file mode 100644 index 6b5a9b1f9..000000000 --- a/packages/widgets/src/lib/components/Icons/IconInfo.svelte +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconKeypointDetection.svelte b/packages/widgets/src/lib/components/Icons/IconKeypointDetection.svelte deleted file mode 100644 index 312d1b11c..000000000 --- a/packages/widgets/src/lib/components/Icons/IconKeypointDetection.svelte +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/widgets/src/lib/components/Icons/IconLightning.svelte b/packages/widgets/src/lib/components/Icons/IconLightning.svelte deleted file mode 100644 index 91d87c2cc..000000000 --- a/packages/widgets/src/lib/components/Icons/IconLightning.svelte +++ /dev/null @@ -1,18 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconMagicWand.svelte b/packages/widgets/src/lib/components/Icons/IconMagicWand.svelte deleted file mode 100644 index 7aa63b2a2..000000000 --- a/packages/widgets/src/lib/components/Icons/IconMagicWand.svelte +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconMaskGeneration.svelte b/packages/widgets/src/lib/components/Icons/IconMaskGeneration.svelte deleted file mode 100644 index da592745e..000000000 --- a/packages/widgets/src/lib/components/Icons/IconMaskGeneration.svelte +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconMaximize.svelte b/packages/widgets/src/lib/components/Icons/IconMaximize.svelte deleted file mode 100644 index 872037067..000000000 --- a/packages/widgets/src/lib/components/Icons/IconMaximize.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconMicrophone.svelte b/packages/widgets/src/lib/components/Icons/IconMicrophone.svelte deleted file mode 100644 index d46385493..000000000 --- a/packages/widgets/src/lib/components/Icons/IconMicrophone.svelte +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconObjectDetection.svelte b/packages/widgets/src/lib/components/Icons/IconObjectDetection.svelte deleted file mode 100644 index ae1e1a7a6..000000000 --- a/packages/widgets/src/lib/components/Icons/IconObjectDetection.svelte +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconQuestionAnswering.svelte b/packages/widgets/src/lib/components/Icons/IconQuestionAnswering.svelte deleted file mode 100644 index b57d90ac4..000000000 --- a/packages/widgets/src/lib/components/Icons/IconQuestionAnswering.svelte +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - diff --git a/packages/widgets/src/lib/components/Icons/IconRefresh.svelte b/packages/widgets/src/lib/components/Icons/IconRefresh.svelte deleted file mode 100644 index 8d3284c03..000000000 --- a/packages/widgets/src/lib/components/Icons/IconRefresh.svelte +++ /dev/null @@ -1,19 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconReinforcementLearning.svelte b/packages/widgets/src/lib/components/Icons/IconReinforcementLearning.svelte deleted file mode 100644 index 802dc2437..000000000 --- a/packages/widgets/src/lib/components/Icons/IconReinforcementLearning.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconRobotics.svelte b/packages/widgets/src/lib/components/Icons/IconRobotics.svelte deleted file mode 100644 index 6f354638e..000000000 --- a/packages/widgets/src/lib/components/Icons/IconRobotics.svelte +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconRow.svelte b/packages/widgets/src/lib/components/Icons/IconRow.svelte deleted file mode 100644 index 7710d2b52..000000000 --- a/packages/widgets/src/lib/components/Icons/IconRow.svelte +++ /dev/null @@ -1,16 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconSentenceSimilarity.svelte b/packages/widgets/src/lib/components/Icons/IconSentenceSimilarity.svelte deleted file mode 100644 index def158c73..000000000 --- a/packages/widgets/src/lib/components/Icons/IconSentenceSimilarity.svelte +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconSpin.svelte b/packages/widgets/src/lib/components/Icons/IconSpin.svelte deleted file mode 100644 index 2afa35d83..000000000 --- a/packages/widgets/src/lib/components/Icons/IconSpin.svelte +++ /dev/null @@ -1,30 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconSummarization.svelte b/packages/widgets/src/lib/components/Icons/IconSummarization.svelte deleted file mode 100644 index 8c0ee2fc5..000000000 --- a/packages/widgets/src/lib/components/Icons/IconSummarization.svelte +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconTableQuestionAnswering.svelte b/packages/widgets/src/lib/components/Icons/IconTableQuestionAnswering.svelte deleted file mode 100644 index c11027345..000000000 --- a/packages/widgets/src/lib/components/Icons/IconTableQuestionAnswering.svelte +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconTabularClassification.svelte b/packages/widgets/src/lib/components/Icons/IconTabularClassification.svelte deleted file mode 100644 index d4ce233b1..000000000 --- a/packages/widgets/src/lib/components/Icons/IconTabularClassification.svelte +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconTabularRegression.svelte b/packages/widgets/src/lib/components/Icons/IconTabularRegression.svelte deleted file mode 100644 index ed4355c5d..000000000 --- a/packages/widgets/src/lib/components/Icons/IconTabularRegression.svelte +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconText2textGeneration.svelte b/packages/widgets/src/lib/components/Icons/IconText2textGeneration.svelte deleted file mode 100644 index ed5a2c6c7..000000000 --- a/packages/widgets/src/lib/components/Icons/IconText2textGeneration.svelte +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconTextClassification.svelte b/packages/widgets/src/lib/components/Icons/IconTextClassification.svelte deleted file mode 100644 index e747e6d2d..000000000 --- a/packages/widgets/src/lib/components/Icons/IconTextClassification.svelte +++ /dev/null @@ -1,33 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconTextGeneration.svelte b/packages/widgets/src/lib/components/Icons/IconTextGeneration.svelte deleted file mode 100644 index fa0153e0d..000000000 --- a/packages/widgets/src/lib/components/Icons/IconTextGeneration.svelte +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconTextTo3D.svelte b/packages/widgets/src/lib/components/Icons/IconTextTo3D.svelte deleted file mode 100644 index 052acf4b3..000000000 --- a/packages/widgets/src/lib/components/Icons/IconTextTo3D.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconTextToImage.svelte b/packages/widgets/src/lib/components/Icons/IconTextToImage.svelte deleted file mode 100644 index a7adab86f..000000000 --- a/packages/widgets/src/lib/components/Icons/IconTextToImage.svelte +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconTextToSpeech.svelte b/packages/widgets/src/lib/components/Icons/IconTextToSpeech.svelte deleted file mode 100644 index 7c533cfcb..000000000 --- a/packages/widgets/src/lib/components/Icons/IconTextToSpeech.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconTextToVideo.svelte b/packages/widgets/src/lib/components/Icons/IconTextToVideo.svelte deleted file mode 100644 index 3082ea2e6..000000000 --- a/packages/widgets/src/lib/components/Icons/IconTextToVideo.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconTokenClassification.svelte b/packages/widgets/src/lib/components/Icons/IconTokenClassification.svelte deleted file mode 100644 index 27f3d3625..000000000 --- a/packages/widgets/src/lib/components/Icons/IconTokenClassification.svelte +++ /dev/null @@ -1,33 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconTranslation.svelte b/packages/widgets/src/lib/components/Icons/IconTranslation.svelte deleted file mode 100644 index c0d344420..000000000 --- a/packages/widgets/src/lib/components/Icons/IconTranslation.svelte +++ /dev/null @@ -1,24 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconUnconditionalImageGeneration.svelte b/packages/widgets/src/lib/components/Icons/IconUnconditionalImageGeneration.svelte deleted file mode 100644 index 880d6ae9c..000000000 --- a/packages/widgets/src/lib/components/Icons/IconUnconditionalImageGeneration.svelte +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconVideoClassification.svelte b/packages/widgets/src/lib/components/Icons/IconVideoClassification.svelte deleted file mode 100644 index 669a372ca..000000000 --- a/packages/widgets/src/lib/components/Icons/IconVideoClassification.svelte +++ /dev/null @@ -1,24 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconVideoTextToText.svelte b/packages/widgets/src/lib/components/Icons/IconVideoTextToText.svelte deleted file mode 100644 index 766c97ded..000000000 --- a/packages/widgets/src/lib/components/Icons/IconVideoTextToText.svelte +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/widgets/src/lib/components/Icons/IconVoiceActivityDetection.svelte b/packages/widgets/src/lib/components/Icons/IconVoiceActivityDetection.svelte deleted file mode 100644 index c896fee50..000000000 --- a/packages/widgets/src/lib/components/Icons/IconVoiceActivityDetection.svelte +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconZeroShotClassification.svelte b/packages/widgets/src/lib/components/Icons/IconZeroShotClassification.svelte deleted file mode 100644 index ebbe940ef..000000000 --- a/packages/widgets/src/lib/components/Icons/IconZeroShotClassification.svelte +++ /dev/null @@ -1,51 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/Icons/IconZeroShotObjectDetection.svelte b/packages/widgets/src/lib/components/Icons/IconZeroShotObjectDetection.svelte deleted file mode 100644 index a1c7270cd..000000000 --- a/packages/widgets/src/lib/components/Icons/IconZeroShotObjectDetection.svelte +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/InferenceWidget/InferenceWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/InferenceWidget.svelte deleted file mode 100644 index 9a49b5911..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/InferenceWidget.svelte +++ /dev/null @@ -1,109 +0,0 @@ - - -{#if widgetComponent} - -{:else} - - -{/if} diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetAddSentenceBtn/WidgetAddSentenceBtn.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetAddSentenceBtn/WidgetAddSentenceBtn.svelte deleted file mode 100644 index 3495b0abd..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetAddSentenceBtn/WidgetAddSentenceBtn.svelte +++ /dev/null @@ -1,11 +0,0 @@ - - -{#if !isDisabled} - - -{/if} diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetAudioTrack/WidgetAudioTrack.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetAudioTrack/WidgetAudioTrack.svelte deleted file mode 100644 index b17f29a56..000000000 --- a/packages/widgets/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/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetBloomDecoding/WidgetBloomDecoding.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetBloomDecoding/WidgetBloomDecoding.svelte deleted file mode 100644 index 19d630645..000000000 --- a/packages/widgets/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/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetCheckbox/WidgetCheckbox.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetCheckbox/WidgetCheckbox.svelte deleted file mode 100644 index e4e975e81..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetCheckbox/WidgetCheckbox.svelte +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetDropzone/WidgetDropzone.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetDropzone/WidgetDropzone.svelte deleted file mode 100644 index c936d2240..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetDropzone/WidgetDropzone.svelte +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - -
{ - if (!$isLoggedIn) { - popOverOpen = true; - return; - } - 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/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetExamples/WidgetExamples.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetExamples/WidgetExamples.svelte deleted file mode 100644 index 86124db2f..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetExamples/WidgetExamples.svelte +++ /dev/null @@ -1,175 +0,0 @@ - - - - -
- - {#if exampleGroups.length > 1} - group)} - /> - {/if} - - -
- -
-
{title}
- -
- - {#if isOptionsVisible} -
-
- {#each examples as { example_title }, i} - -
_previewInputSample(i)} - on:click={() => _applyWidgetExample(i)} - > - {example_title} -
- {/each} -
-
- {/if} -
-
diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetExamples/WidgetExamplesGroup.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetExamples/WidgetExamplesGroup.svelte deleted file mode 100644 index 2c86fb3c7..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetExamples/WidgetExamplesGroup.svelte +++ /dev/null @@ -1,83 +0,0 @@ - - - - -
- -
-
{selectedGroupName ?? "Groups"}
- -
- - {#if isOptionsVisible} -
-
- {#each groupNames as inputGroup, i} - -
chooseInputGroup(i)} - > - {inputGroup} -
- {/each} -
-
- {/if} -
diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetFileInput/WidgetFileInput.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetFileInput/WidgetFileInput.svelte deleted file mode 100644 index 1fa011127..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetFileInput/WidgetFileInput.svelte +++ /dev/null @@ -1,75 +0,0 @@ - - -{#if !isDisabled} - - - -{/if} diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetFooter/WidgetFooter.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetFooter/WidgetFooter.svelte deleted file mode 100644 index d8b3c9baa..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetFooter/WidgetFooter.svelte +++ /dev/null @@ -1,56 +0,0 @@ - - -
- {#if !isDisabled} - - {/if} - - - -
-{#if outputJson && isOutputJsonVisible} -
{outputJson}
-{/if} diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetHeader/WidgetHeader.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetHeader/WidgetHeader.svelte deleted file mode 100644 index 9120477c1..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetHeader/WidgetHeader.svelte +++ /dev/null @@ -1,106 +0,0 @@ - - -
- {#if !noTitle} - {#if title} -
- {title} -
- {:else} -
- {#if !isDisabled} - - Inference API - {:else} - Inference Examples - {/if} -
- - - - {/if} - {/if} -
-
- {#if pipeline && task} -
- - - -
- {/if} - -
- {#if showReset && !isDisabled} - - {/if} - {#if validExamples.length && applyWidgetExample} - - {/if} -
-
diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetInfo/WidgetInfo.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetInfo/WidgetInfo.svelte deleted file mode 100644 index 214dcbc65..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetInfo/WidgetInfo.svelte +++ /dev/null @@ -1,111 +0,0 @@ - - -
-
- {#if model.id === "bigscience/bloom"} -
-
- Powered by  - AzureML -
-
-
- {@html getStatusReport($modelLoadStates[model.id], azureState)} -
-
- {:else if computeTime} - Computation time on {$modelLoadStates[model.id]?.compute_type ?? ComputeType.CPU}: {computeTime} - {:else if (model.inference === InferenceDisplayability.Yes || model.pipeline_tag === "reinforcement-learning") && !modelTooBig} - {@html getStatusReport($modelLoadStates[model.id], state)} - {:else if model.inference === InferenceDisplayability.ExplicitOptOut} - Inference API (serverless) has been turned off for this model. - {:else if model.inference === InferenceDisplayability.CustomCode} - Inference API (serverless) 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 (serverless) does not yet support {model.library_name} models for this pipeline type. - - {:else if modelTooBig} - - Model is too large to load in Inference API (serverless). To try the model, launch it on Inference Endpoints (dedicated) - instead. - - {:else} - - - Inference API (serverless) is disabled for an unknown reason. Please open a - Discussion in the Community tab. - - {/if} -
- {#if error} -
{error}
- {/if} - {#if modelLoading.isLoading} - - {/if} -
diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetLabel/WidgetLabel.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetLabel/WidgetLabel.svelte deleted file mode 100644 index 03f1e5c9e..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetLabel/WidgetLabel.svelte +++ /dev/null @@ -1,13 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetModelLoading/WidgetModelLoading.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetModelLoading/WidgetModelLoading.svelte deleted file mode 100644 index a8af2c181..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetModelLoading/WidgetModelLoading.svelte +++ /dev/null @@ -1,38 +0,0 @@ - - -
-
-
- - Model is loading -
-
diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetOuputConvoBubble/WidgetOutputConvoBubble.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetOuputConvoBubble/WidgetOutputConvoBubble.svelte deleted file mode 100644 index 289788ba3..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetOuputConvoBubble/WidgetOutputConvoBubble.svelte +++ /dev/null @@ -1,64 +0,0 @@ - - -
- {#each tokens as token} - {@html marked.parse(token.raw, options)} - {/each} -
diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetOutputChart/WidgetOutputChart.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetOutputChart/WidgetOutputChart.svelte deleted file mode 100644 index 8771bd903..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetOutputChart/WidgetOutputChart.svelte +++ /dev/null @@ -1,67 +0,0 @@ - - - -{#if output.length} -
- - {#each output as { score, color }, index} - -
mouseover(index)} - on:mouseout={mouseout} - > -
-
- {text(output[index])} -
- {#if typeof score === "number"} - {score.toFixed(3)} - {/if} -
- {/each} -
-{/if} diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetOutputConvo/WidgetOutputConvo.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetOutputConvo/WidgetOutputConvo.svelte deleted file mode 100644 index 7d6ddc2aa..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetOutputConvo/WidgetOutputConvo.svelte +++ /dev/null @@ -1,39 +0,0 @@ - - -
-
- Input a message to start chatting with - {modelId}. -
-
- {#each messages as message} - {#if message.content} - {@const position = message.role === "user" ? "right" : message.role === "assistant" ? "left" : "center"} - - {/if} - {/each} -
-
diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetOutputTableQA/WidgetOutputTableQA.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetOutputTableQA/WidgetOutputTableQA.svelte deleted file mode 100644 index 410fc55c3..000000000 --- a/packages/widgets/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/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetOutputText/WidgetOutputText.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetOutputText/WidgetOutputText.svelte deleted file mode 100644 index e1d051506..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetOutputText/WidgetOutputText.svelte +++ /dev/null @@ -1,10 +0,0 @@ - - -{#if output.length} -

- {output} -

-{/if} diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetOutputTokens/WidgetOutputTokens.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetOutputTokens/WidgetOutputTokens.svelte deleted file mode 100644 index 58343a2cc..000000000 --- a/packages/widgets/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/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetQuickInput/WidgetQuickInput.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetQuickInput/WidgetQuickInput.svelte deleted file mode 100644 index c31d53754..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetQuickInput/WidgetQuickInput.svelte +++ /dev/null @@ -1,49 +0,0 @@ - - - -
- { - if (!$isLoggedIn) { - popOverOpen = true; - return; - } - dispatch("cmdEnter"); - }} - /> - (popOverOpen = true)} - /> -
-
diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetRadio/WidgetRadio.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetRadio/WidgetRadio.svelte deleted file mode 100644 index 7cfb06a49..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetRadio/WidgetRadio.svelte +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetRealtimeRecorder/Recorder.ts b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetRealtimeRecorder/Recorder.ts deleted file mode 100644 index be0e295d5..000000000 --- a/packages/widgets/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 | undefined; - 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 | undefined; - private stream: MediaStream | undefined; - - 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/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetRealtimeRecorder/WidgetRealtimeRecorder.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetRealtimeRecorder/WidgetRealtimeRecorder.svelte deleted file mode 100644 index d30136d34..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetRealtimeRecorder/WidgetRealtimeRecorder.svelte +++ /dev/null @@ -1,104 +0,0 @@ - - - - -{#if isRecording} -
- {#if warning} -

{warning}

- {:else} -

{txt}

- {/if} -
-{/if} diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetRecorder/Recorder.ts b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetRecorder/Recorder.ts deleted file mode 100644 index c97e6a791..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetRecorder/Recorder.ts +++ /dev/null @@ -1,67 +0,0 @@ -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 { - if (!this.mediaRecorder) { - throw new Error("MediaRecorder not initialized"); - } - 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() { - if (!this.stream) { - throw new Error("Stream not initialized"); - } - 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 new Promise((resolve) => setTimeout(resolve, 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/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetRecorder/WidgetRecorder.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetRecorder/WidgetRecorder.svelte deleted file mode 100644 index 6be598f12..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetRecorder/WidgetRecorder.svelte +++ /dev/null @@ -1,66 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetShortcutRunLabel/WidgetShortcutRunLabel.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetShortcutRunLabel/WidgetShortcutRunLabel.svelte deleted file mode 100644 index 322663467..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetShortcutRunLabel/WidgetShortcutRunLabel.svelte +++ /dev/null @@ -1,22 +0,0 @@ - - -{#if !isDisabled} - -{/if} diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetState/WidgetState.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetState/WidgetState.svelte deleted file mode 100644 index e4f9cfef5..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetState/WidgetState.svelte +++ /dev/null @@ -1,17 +0,0 @@ - - -
-
-
- This model is currently loaded and running on Inference API (serverless). -
-
- ⚠️ This model could not be loaded in Inference API (serverless). ⚠️ -
-
- This model can be loaded in Inference API (serverless). -
-
-
diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetSubmitBtn/WidgetSubmitBtn.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetSubmitBtn/WidgetSubmitBtn.svelte deleted file mode 100644 index b8ec85b28..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetSubmitBtn/WidgetSubmitBtn.svelte +++ /dev/null @@ -1,47 +0,0 @@ - - -{#if !isDisabled} - - - -{/if} diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetTableInput/WidgetTableInput.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetTableInput/WidgetTableInput.svelte deleted file mode 100644 index b513c4ab7..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetTableInput/WidgetTableInput.svelte +++ /dev/null @@ -1,115 +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/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetTextInput/WidgetTextInput.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetTextInput/WidgetTextInput.svelte deleted file mode 100644 index 2670e1ef7..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetTextInput/WidgetTextInput.svelte +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - { - if (!$isLoggedIn) { - popOverOpen = true; - return; - } - dispatch("cmdEnter"); - }} - /> - - - diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetTextarea/WidgetTextarea.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetTextarea/WidgetTextarea.svelte deleted file mode 100644 index cfd3946c8..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetTextarea/WidgetTextarea.svelte +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - { - if (!$isLoggedIn) { - popOverOpen = true; - return; - } - dispatch("cmdEnter"); - }} - bind:this={containerSpanEl} - on:paste|preventDefault={handlePaste} - on:input={updateInnerTextValue} - on:focus={onFocus} - on:blur={() => (isOnFocus = false)} - /> - - - - - diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetTimer/WidgetTimer.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetTimer/WidgetTimer.svelte deleted file mode 100644 index 2d41e1ac5..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetTimer/WidgetTimer.svelte +++ /dev/null @@ -1,35 +0,0 @@ - - -{#if shouldDisplay && !isDisabled} - {counterHuman} -{/if} diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetWrapper/WidgetWrapper.svelte b/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetWrapper/WidgetWrapper.svelte deleted file mode 100644 index ab19581c8..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/WidgetWrapper/WidgetWrapper.svelte +++ /dev/null @@ -1,55 +0,0 @@ - - -{#if $widgetStates?.[model.id]?.noInference} - - -{:else if $modelLoadStates[model.id] || model.inference !== InferenceDisplayability.Yes} -
- {#if isMaximized} - - {/if} - - -{/if} diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/consts.ts b/packages/widgets/src/lib/components/InferenceWidget/shared/consts.ts deleted file mode 100644 index 1ec7359bf..000000000 --- a/packages/widgets/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/packages/widgets/src/lib/components/InferenceWidget/shared/helpers.ts b/packages/widgets/src/lib/components/InferenceWidget/shared/helpers.ts deleted file mode 100644 index ca60f6b1c..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/helpers.ts +++ /dev/null @@ -1,248 +0,0 @@ -import type { ModelData, WidgetExampleAttribute } from "@huggingface/tasks"; -import { parseJSON } from "../../../utils/ViewUtils.js"; -import { ComputeType, type ModelLoadInfo, type TableData } from "./types.js"; -import { LoadState } from "./types.js"; -import { isLoggedIn } from "../stores.js"; -import { get } from "svelte/store"; - -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; -} - -// 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 Inference API (serverless) - 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 && requestBody["file"] && requestBody["file"] instanceof Blob && requestBody["file"].type - ? 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 && get(isLoggedIn)) { - headers.set("X-Use-Cache", "false"); - } - if (isOnLoadCall || !get(isLoggedIn)) { - headers.set("X-Load-Model", "0"); - } - - // `File` is a subtype of `Blob`: therefore, checking for instanceof `Blob` also checks for instanceof `File` - const reqBody: Blob | string = - "file" in requestBody && requestBody["file"] instanceof Blob ? 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: ${String(e).replace(/^Error: /, "")}`; - 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: String(body["error"]), estimatedTime: +body["estimated_time"], status: "loading-model" }; - } else { - // Other errors - const { status, statusText } = response; - return { - error: String(body["error"]) || String(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: { - state: LoadState; - compute_type: ComputeType | Record; - loaded: boolean; - error: Error; - } = await response.json(); - if (response.ok && typeof output === "object" && output.loaded !== undefined) { - // eslint-disable-next-line @typescript-eslint/naming-convention - const compute_type = - typeof output.compute_type === "string" - ? output.compute_type - : output.compute_type["gpu"] - ? ComputeType.GPU - : ComputeType.CPU; - return { compute_type, state: output.state }; - } else { - console.warn(response.status, output.error); - return { state: LoadState.Error }; - } -} - -// Extend requestBody with user supplied parameters for Inference API (serverless) -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/packages/widgets/src/lib/components/InferenceWidget/shared/inputValidation.ts b/packages/widgets/src/lib/components/InferenceWidget/shared/inputValidation.ts deleted file mode 100644 index dc274f418..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/inputValidation.ts +++ /dev/null @@ -1,116 +0,0 @@ -import type { - ChatCompletionInputMessage, - WidgetExampleAssetAndPromptInput, - WidgetExampleAssetAndTextInput, - WidgetExampleAssetAndZeroShotInput, - WidgetExampleAssetInput, - WidgetExampleChatInput, - WidgetExampleSentenceSimilarityInput, - WidgetExampleStructuredDataInput, - WidgetExampleTableDataInput, - WidgetExampleTextAndContextInput, - WidgetExampleTextAndTableInput, - WidgetExampleTextInput, - WidgetExampleZeroShotTextInput, -} from "@huggingface/tasks"; - -export function isObject(arg: unknown): arg is Record { - return !!arg && arg?.constructor === Object; -} -function isStrArray(arg: unknown): arg is string[] { - return Array.isArray(arg) && arg.every((v) => typeof v === "string"); -} - -export function isTextInput(sample: unknown): sample is WidgetExampleTextInput { - return isObject(sample) && "text" in sample && typeof sample.text === "string"; -} - -export function isTextAndContextInput(sample: unknown): sample is WidgetExampleTextAndContextInput { - return isTextInput(sample) && "context" in sample; -} - -export function isAssetInput(sample: unknown): sample is WidgetExampleAssetInput { - return isObject(sample) && "src" in sample && typeof sample.src === "string"; -} - -export function isAssetAndPromptInput(sample: unknown): sample is WidgetExampleAssetAndPromptInput { - return isAssetInput(sample) && "prompt" in sample && typeof sample.prompt === "string"; -} - -export function isAssetAndTextInput(sample: unknown): sample is WidgetExampleAssetAndTextInput { - return isAssetInput(sample) && isTextInput(sample); -} - -export function isStructuredDataInput(sample: unknown): sample is WidgetExampleStructuredDataInput { - /// TODO: check the values' type in sample.structured_data - return ( - isObject(sample) && - "structured_data" in sample && - isObject(sample.structured_data) && - Object.values(sample.structured_data).every((val) => typeof val === "number" || typeof val === "string") - ); -} - -export function isTableDataInput(sample: unknown): sample is WidgetExampleTableDataInput { - return isObject(sample) && "table" in sample; -} - -function _isZeroShotTextInput( - sample: unknown -): sample is Exclude, "text"> { - return ( - isObject(sample) && - "candidate_labels" in sample && - typeof sample.candidate_labels === "string" && - "multi_class" in sample && - typeof sample.multi_class === "boolean" - ); -} - -export function isZeroShotTextInput(sample: unknown): sample is WidgetExampleZeroShotTextInput { - return isTextInput(sample) && _isZeroShotTextInput(sample); -} - -export function isSentenceSimilarityInput( - sample: unknown -): sample is WidgetExampleSentenceSimilarityInput { - return ( - isObject(sample) && - "source_sentence" in sample && - typeof sample.candidate_labels === "string" && - "sentences" in sample && - isStrArray(sample.sentences) - ); -} - -export function isTextAndTableInput(sample: unknown): 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: unknown -): sample is WidgetExampleAssetAndZeroShotInput { - return isAssetInput(sample) && _isZeroShotTextInput(sample); -} - -export function isChatInput(sample: unknown): sample is WidgetExampleChatInput { - return ( - isObject(sample) && - "messages" in sample && - Array.isArray(sample.messages) && - sample.messages.every( - (message): message is ChatCompletionInputMessage => - isObject(message) && - "role" in message && - "content" in message && - typeof message.role === "string" && - ["user", "system", "assistant"].includes(message.role) && - typeof message.content === "string" - ) - ); -} diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/outputValidation.ts b/packages/widgets/src/lib/components/InferenceWidget/shared/outputValidation.ts deleted file mode 100644 index 8492f41c0..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/outputValidation.ts +++ /dev/null @@ -1,35 +0,0 @@ -import type { - WidgetExampleOutputLabels, - WidgetExampleOutputAnswerScore, - WidgetExampleOutputText, - WidgetExampleOutputUrl, -} from "@huggingface/tasks"; - -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" && - "answer" in arg && - typeof arg["answer"] === "string" && - "score" in arg && - typeof arg["score"] === "number" - ); -} - -export function isValidOutputText(arg: unknown): arg is WidgetExampleOutputText { - return !!arg && typeof arg === "object" && "text" in arg && typeof arg["text"] === "string"; -} - -export function isValidOutputUrl(arg: unknown): arg is WidgetExampleOutputUrl { - return ( - !!arg && - typeof arg === "object" && - "url" in arg && - typeof arg["url"] === "string" && - arg["url"].startsWith("https://") - ); -} diff --git a/packages/widgets/src/lib/components/InferenceWidget/shared/types.ts b/packages/widgets/src/lib/components/InferenceWidget/shared/types.ts deleted file mode 100644 index d61f025dc..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/shared/types.ts +++ /dev/null @@ -1,73 +0,0 @@ -import type { ModelData, WidgetExampleOutput } from "@huggingface/tasks"; - -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 interface WidgetState { - isDisabled?: boolean; - noInference?: boolean; - isMaximized?: boolean; -} - -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/packages/widgets/src/lib/components/InferenceWidget/stores.ts b/packages/widgets/src/lib/components/InferenceWidget/stores.ts deleted file mode 100644 index 93a3acb93..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/stores.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { get, writable } from "svelte/store"; -import type { ModelData } from "@huggingface/tasks"; -import type { ModelLoadInfo, WidgetState } from "./shared/types.js"; - -export const modelLoadStates = writable>({}); - -export const widgetNoInference = writable>({}); - -export const isLoggedIn = writable(false); - -export const widgetStates = writable>({}); - -const tgiSupportedModels = writable | undefined>(undefined); - -export async function getTgiSupportedModels(url: string): Promise { - if (!get(tgiSupportedModels)) { - const response = await fetch(`${url}/framework/text-generation-inference`); - const output = await response.json(); - if (response.ok) { - tgiSupportedModels.set( - new Set( - (output as { model_id: string; task: string }[]) - .filter(({ task }) => task === "text-generation") - .map(({ model_id }) => model_id) - ) - ); - } else { - console.warn(response.status, output.error); - } - } - return tgiSupportedModels; -} - -export function updateWidgetState(modelId: ModelData["id"], key: keyof WidgetState, val: boolean): void { - widgetStates.update((states) => { - // Check if the modelId exists, if not initialize it - if (!states[modelId]) { - states[modelId] = {}; - } - // Update the specific property for the given modelId - states[modelId][key] = val; - return states; - }); -} diff --git a/packages/widgets/src/lib/components/InferenceWidget/widgets/AudioClassificationWidget/AudioClassificationWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/AudioClassificationWidget/AudioClassificationWidget.svelte deleted file mode 100644 index fc9542609..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/AudioClassificationWidget/AudioClassificationWidget.svelte +++ /dev/null @@ -1,187 +0,0 @@ - - - - - - - {#if fileUrl} - - {/if} - getOutput()} /> - {#if warning} -
{warning}
- {/if} - - - - - - -
diff --git a/packages/widgets/src/lib/components/InferenceWidget/widgets/AudioToAudioWidget/AudioToAudioWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/AudioToAudioWidget/AudioToAudioWidget.svelte deleted file mode 100644 index 59b8802ff..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/AudioToAudioWidget/AudioToAudioWidget.svelte +++ /dev/null @@ -1,187 +0,0 @@ - - - - - - - {#if fileUrl} - - {/if} - getOutput()} /> - - - - {#each output as item} -
- {item.label}: - -
- {/each} - - -
diff --git a/packages/widgets/src/lib/components/InferenceWidget/widgets/AutomaticSpeechRecognitionWidget/AutomaticSpeechRecognitionWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/AutomaticSpeechRecognitionWidget/AutomaticSpeechRecognitionWidget.svelte deleted file mode 100644 index 540a942c0..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/AutomaticSpeechRecognitionWidget/AutomaticSpeechRecognitionWidget.svelte +++ /dev/null @@ -1,210 +0,0 @@ - - - - - - - {#if !isRealtimeRecording} - {#if fileUrl} - - {/if} - getOutput()} /> - {#if warning} -
{warning}
- {/if} - {/if} - - - - - - -
diff --git a/packages/widgets/src/lib/components/InferenceWidget/widgets/ConversationalWidget/ConversationalWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/ConversationalWidget/ConversationalWidget.svelte deleted file mode 100644 index 14e70c522..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/ConversationalWidget/ConversationalWidget.svelte +++ /dev/null @@ -1,294 +0,0 @@ - - - - - - - handleNewMessage()} - on:cmdEnter={handleNewMessage} - /> - - - - - diff --git a/packages/widgets/src/lib/components/InferenceWidget/widgets/FeatureExtractionWidget/DataTable.ts b/packages/widgets/src/lib/components/InferenceWidget/widgets/FeatureExtractionWidget/DataTable.ts deleted file mode 100644 index 551868a38..000000000 --- a/packages/widgets/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/packages/widgets/src/lib/components/InferenceWidget/widgets/FeatureExtractionWidget/FeatureExtractionWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/FeatureExtractionWidget/FeatureExtractionWidget.svelte deleted file mode 100644 index 2e35b1c1f..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/FeatureExtractionWidget/FeatureExtractionWidget.svelte +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - getOutput()} - on:cmdEnter={() => 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/packages/widgets/src/lib/components/InferenceWidget/widgets/FillMaskWidget/FillMaskWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/FillMaskWidget/FillMaskWidget.svelte deleted file mode 100644 index 5fbf29b69..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/FillMaskWidget/FillMaskWidget.svelte +++ /dev/null @@ -1,153 +0,0 @@ - - - - - - {#if model.pipeline_tag === "fill-mask"} -
- Mask token: {model.mask_token} -
- {/if} - getOutput()} /> - getOutput()} /> - - - - - - -
diff --git a/packages/widgets/src/lib/components/InferenceWidget/widgets/ImageClassificationWidget/ImageClassificationWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/ImageClassificationWidget/ImageClassificationWidget.svelte deleted file mode 100644 index 5a5978d1a..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/ImageClassificationWidget/ImageClassificationWidget.svelte +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - onSelectFile(e.detail)} - on:error={(e) => (error = e.detail)} - > - {#if imgSrc} - - {/if} - - - {#if imgSrc} - {#if imgSrc} -
- -
- {/if} - {/if} - onSelectFile(e.detail)} - /> - {#if warning} -
{warning}
- {/if} - - - - - - -
diff --git a/packages/widgets/src/lib/components/InferenceWidget/widgets/ImageSegmentationWidget/Canvas.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/ImageSegmentationWidget/Canvas.svelte deleted file mode 100644 index 3000d5621..000000000 --- a/packages/widgets/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/packages/widgets/src/lib/components/InferenceWidget/widgets/ImageSegmentationWidget/ImageSegmentationWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/ImageSegmentationWidget/ImageSegmentationWidget.svelte deleted file mode 100644 index 116bf38e2..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/ImageSegmentationWidget/ImageSegmentationWidget.svelte +++ /dev/null @@ -1,280 +0,0 @@ - - - - - - onSelectFile(e.detail)} - on:error={(e) => (error = e.detail)} - > - {#if imgSrc} - - {/if} - - - {#if imgSrc} - - {/if} - onSelectFile(e.detail)} - /> - {#if warning} -
{warning}
- {/if} - - - - - - - -
diff --git a/packages/widgets/src/lib/components/InferenceWidget/widgets/ImageToImageWidget/ImageToImageWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/ImageToImageWidget/ImageToImageWidget.svelte deleted file mode 100644 index aa875c4e7..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/ImageToImageWidget/ImageToImageWidget.svelte +++ /dev/null @@ -1,197 +0,0 @@ - - - - -
- onSelectFile(e.detail)} - on:error={(e) => (error = e.detail)} - > - {#if imgSrc} - - {/if} - - - {#if imgSrc} - {#if imgSrc} -
- -
- {/if} - {/if} - onSelectFile(e.detail)} - /> - getOutput()} - /> - getOutput()} /> -
- - - {#if output.length} -
- -
- {/if} - - -
diff --git a/packages/widgets/src/lib/components/InferenceWidget/widgets/ImageToTextWidget/ImageToTextWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/ImageToTextWidget/ImageToTextWidget.svelte deleted file mode 100644 index b4bcb358f..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/ImageToTextWidget/ImageToTextWidget.svelte +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - onSelectFile(e.detail)} - on:error={(e) => (error = e.detail)} - > - {#if imgSrc} - - {/if} - - - {#if imgSrc} - {#if imgSrc} -
- -
- {/if} - {/if} - onSelectFile(e.detail)} - /> - {#if warning} -
{warning}
- {/if} - - - - {#if model?.pipeline_tag !== "text-generation"} - - {/if} - - -
diff --git a/packages/widgets/src/lib/components/InferenceWidget/widgets/ObjectDetectionWidget/ObjectDetectionWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/ObjectDetectionWidget/ObjectDetectionWidget.svelte deleted file mode 100644 index 539518da8..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/ObjectDetectionWidget/ObjectDetectionWidget.svelte +++ /dev/null @@ -1,191 +0,0 @@ - - - - - - onSelectFile(e.detail)} - on:error={(e) => (error = e.detail)} - > - {#if imgSrc} - - {/if} - - - {#if imgSrc} - - {/if} - onSelectFile(e.detail)} - /> - {#if warning} -
{warning}
- {/if} - - - - - - -
diff --git a/packages/widgets/src/lib/components/InferenceWidget/widgets/ObjectDetectionWidget/SvgBoundingBoxes.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/ObjectDetectionWidget/SvgBoundingBoxes.svelte deleted file mode 100644 index a6ca09c5a..000000000 --- a/packages/widgets/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/packages/widgets/src/lib/components/InferenceWidget/widgets/QuestionAnsweringWidget/QuestionAnsweringWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/QuestionAnsweringWidget/QuestionAnsweringWidget.svelte deleted file mode 100644 index 3d51dc2ab..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/QuestionAnsweringWidget/QuestionAnsweringWidget.svelte +++ /dev/null @@ -1,163 +0,0 @@ - - - - -
- getOutput()} - on:cmdEnter={() => getOutput()} - /> - getOutput()} - /> -
- - - {#if output} -
- {output.answer} - {output.score.toFixed(3)} -
- {/if} - - -
diff --git a/packages/widgets/src/lib/components/InferenceWidget/widgets/ReinforcementLearningWidget/ReinforcementLearningWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/ReinforcementLearningWidget/ReinforcementLearningWidget.svelte deleted file mode 100644 index f98579c52..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/ReinforcementLearningWidget/ReinforcementLearningWidget.svelte +++ /dev/null @@ -1,62 +0,0 @@ - - - -
- -
- {#if replay === Replay.Available} - -
-
diff --git a/packages/widgets/src/lib/components/InferenceWidget/widgets/SentenceSimilarityWidget/SentenceSimilarityWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/SentenceSimilarityWidget/SentenceSimilarityWidget.svelte deleted file mode 100644 index 821088cef..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/SentenceSimilarityWidget/SentenceSimilarityWidget.svelte +++ /dev/null @@ -1,190 +0,0 @@ - - - - -
- getOutput()} - /> - getOutput()} - /> - {#each Array(nComparisonSentences - 1) as _, idx} - getOutput()} - /> - {/each} - { - nComparisonSentences++; - }} - /> - getOutput()} /> -
- - - {#if output.length} - - {/if} - - -
diff --git a/packages/widgets/src/lib/components/InferenceWidget/widgets/SummarizationWidget/SummarizationWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/SummarizationWidget/SummarizationWidget.svelte deleted file mode 100644 index ec611069c..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/SummarizationWidget/SummarizationWidget.svelte +++ /dev/null @@ -1,128 +0,0 @@ - - - - -
- getOutput()} /> - getOutput()} /> -
- - - - - -
diff --git a/packages/widgets/src/lib/components/InferenceWidget/widgets/TableQuestionAnsweringWidget/TableQuestionAnsweringWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/TableQuestionAnsweringWidget/TableQuestionAnsweringWidget.svelte deleted file mode 100644 index 48b1ae703..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/TableQuestionAnsweringWidget/TableQuestionAnsweringWidget.svelte +++ /dev/null @@ -1,189 +0,0 @@ - - - - - - getOutput()} - on:cmdEnter={() => getOutput()} - /> - -
- {#if output} - - {/if} - {#if table.length > 1 || table[0].length > 1} - onChangeTable(e.detail)} {table} {isDisabled} /> - {/if} -
- - - -
diff --git a/packages/widgets/src/lib/components/InferenceWidget/widgets/TabularDataWidget/TabularDataWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/TabularDataWidget/TabularDataWidget.svelte deleted file mode 100644 index 6bbe03432..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/TabularDataWidget/TabularDataWidget.svelte +++ /dev/null @@ -1,211 +0,0 @@ - - - - - -
- {#if table.length > 1 || table[1]?.length > 1} - onChangeTable(e.detail)} - table={tableWithOutput} - canAddCol={false} - bind:scrollTableToRight - /> - {/if} -
- getOutput()} /> - - - -
diff --git a/packages/widgets/src/lib/components/InferenceWidget/widgets/TextGenerationWidget/TextGenerationWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/TextGenerationWidget/TextGenerationWidget.svelte deleted file mode 100644 index 37cc1deed..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/TextGenerationWidget/TextGenerationWidget.svelte +++ /dev/null @@ -1,256 +0,0 @@ - - - - -
- getOutput({ useCache })} - /> - {#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/packages/widgets/src/lib/components/InferenceWidget/widgets/TextToImageWidget/TextToImageWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/TextToImageWidget/TextToImageWidget.svelte deleted file mode 100644 index a16727cfa..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/TextToImageWidget/TextToImageWidget.svelte +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - getOutput()} - on:cmdEnter={() => getOutput()} - /> - - - - {#if output.length} -
- -
- {/if} - - -
diff --git a/packages/widgets/src/lib/components/InferenceWidget/widgets/TextToSpeechWidget/TextToSpeechWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/TextToSpeechWidget/TextToSpeechWidget.svelte deleted file mode 100644 index c36108eb0..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/TextToSpeechWidget/TextToSpeechWidget.svelte +++ /dev/null @@ -1,129 +0,0 @@ - - - - - - getOutput()} /> - getOutput()} /> - - - - {#if output.length} - - {/if} - - - diff --git a/packages/widgets/src/lib/components/InferenceWidget/widgets/TokenClassificationWidget/TokenClassificationWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/TokenClassificationWidget/TokenClassificationWidget.svelte deleted file mode 100644 index 54015c2e9..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/TokenClassificationWidget/TokenClassificationWidget.svelte +++ /dev/null @@ -1,251 +0,0 @@ - - - - - - getOutput()} /> - getOutput()} /> - {#if warning} -
{warning}
- {/if} - - - - - - -
diff --git a/packages/widgets/src/lib/components/InferenceWidget/widgets/VisualQuestionAnsweringWidget/VisualQuestionAnsweringWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/VisualQuestionAnsweringWidget/VisualQuestionAnsweringWidget.svelte deleted file mode 100644 index 3915d7ea0..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/VisualQuestionAnsweringWidget/VisualQuestionAnsweringWidget.svelte +++ /dev/null @@ -1,204 +0,0 @@ - - - - -
- onSelectFile(e.detail)} - on:error={(e) => (error = e.detail)} - > - {#if imgSrc} - - {/if} - - - {#if imgSrc} - {#if imgSrc} -
- -
- {/if} - {/if} - onSelectFile(e.detail)} - /> - getOutput()} - on:cmdEnter={() => getOutput()} - /> -
- - - {#if output} - - {/if} - - -
diff --git a/packages/widgets/src/lib/components/InferenceWidget/widgets/ZeroShotClassificationWidget/ZeroShotClassificationWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/ZeroShotClassificationWidget/ZeroShotClassificationWidget.svelte deleted file mode 100644 index 3c7455235..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/ZeroShotClassificationWidget/ZeroShotClassificationWidget.svelte +++ /dev/null @@ -1,190 +0,0 @@ - - - - -
- getOutput()} - /> - getOutput()} - /> - - getOutput()} /> - {#if warning} -
{warning}
- {/if} -
- - - {#if output.length} - - {/if} - - -
diff --git a/packages/widgets/src/lib/components/InferenceWidget/widgets/ZeroShotImageClassificationWidget/ZeroShotImageClassificationWidget.svelte b/packages/widgets/src/lib/components/InferenceWidget/widgets/ZeroShotImageClassificationWidget/ZeroShotImageClassificationWidget.svelte deleted file mode 100644 index db13d3071..000000000 --- a/packages/widgets/src/lib/components/InferenceWidget/widgets/ZeroShotImageClassificationWidget/ZeroShotImageClassificationWidget.svelte +++ /dev/null @@ -1,207 +0,0 @@ - - - - -
- onSelectFile(e.detail)} - on:error={(e) => (error = e.detail)} - > - {#if imgSrc} - - {/if} - - - {#if imgSrc} - {#if imgSrc} -
- -
- {/if} - {/if} - onSelectFile(e.detail)} - /> - getOutput()} - /> - getOutput()} /> -
- - - {#if output.length} - - {/if} - - -
diff --git a/packages/widgets/src/lib/components/LogInPopover/LogInPopover.svelte b/packages/widgets/src/lib/components/LogInPopover/LogInPopover.svelte deleted file mode 100644 index ccdf26213..000000000 --- a/packages/widgets/src/lib/components/LogInPopover/LogInPopover.svelte +++ /dev/null @@ -1,38 +0,0 @@ - - -
- -
- -{#if open && !$isLoggedIn} - (open = false)}> -
- - Please login with your Hugging Face account to run the widgets. -
- -
-{/if} diff --git a/packages/widgets/src/lib/components/PipelineIcon/PipelineIcon.svelte b/packages/widgets/src/lib/components/PipelineIcon/PipelineIcon.svelte deleted file mode 100644 index 1429e1cb4..000000000 --- a/packages/widgets/src/lib/components/PipelineIcon/PipelineIcon.svelte +++ /dev/null @@ -1,109 +0,0 @@ - - - diff --git a/packages/widgets/src/lib/components/PipelineTag/PipelineTag.svelte b/packages/widgets/src/lib/components/PipelineTag/PipelineTag.svelte deleted file mode 100644 index dc2afad8a..000000000 --- a/packages/widgets/src/lib/components/PipelineTag/PipelineTag.svelte +++ /dev/null @@ -1,16 +0,0 @@ - - -
- - - {pipelineData ? pipelineData.name : pipeline} - -
diff --git a/packages/widgets/src/lib/components/Popover/Popover.svelte b/packages/widgets/src/lib/components/Popover/Popover.svelte deleted file mode 100644 index 3da577156..000000000 --- a/packages/widgets/src/lib/components/Popover/Popover.svelte +++ /dev/null @@ -1,135 +0,0 @@ - - - - - dispatch("close")} on:scroll={() => dispatch("close")} on:click={handleClickDocument} /> - -
-
-
-
-
- -
-
-
-
diff --git a/packages/widgets/src/lib/index.ts b/packages/widgets/src/lib/index.ts deleted file mode 100644 index b98a57ae2..000000000 --- a/packages/widgets/src/lib/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -import InferenceWidget from "./components/InferenceWidget/InferenceWidget.svelte"; -import WidgetOutputChart from "./components/InferenceWidget/shared/WidgetOutputChart/WidgetOutputChart.svelte"; -import WidgetOutputTokens from "./components/InferenceWidget/shared/WidgetOutputTokens/WidgetOutputTokens.svelte"; -import PipelineIcon from "./components/PipelineIcon/PipelineIcon.svelte"; -import { modelLoadStates } from "./components/InferenceWidget/stores.js"; - -export { InferenceWidget, WidgetOutputChart, WidgetOutputTokens, modelLoadStates, PipelineIcon }; diff --git a/packages/widgets/src/lib/utils/ViewUtils.ts b/packages/widgets/src/lib/utils/ViewUtils.ts deleted file mode 100644 index e851e41e4..000000000 --- a/packages/widgets/src/lib/utils/ViewUtils.ts +++ /dev/null @@ -1,202 +0,0 @@ -import type { PipelineType } from "@huggingface/tasks"; -import type { ActionReturn } from "svelte/action"; - -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)); -} - -/** - * Similar to lodash's uniqBy. In case of multiple items with the same key, - * only the first one is kept. - */ -export function uniqBy(items: T[], itemToKey: (item: T) => K): T[] { - const keys = new Set(items.map((item) => itemToKey(item))); - - return items.filter((item) => { - // Will return true if was in set - e.g. was the first item with its key. - return keys.delete(itemToKey(item)); - }); -} - -export function typedKeys(obj: { [k in K]: V }): K[] { - return Object.keys(obj) as K[]; -} - -/** - * HTML escapes the passed string - */ -export function escape(html: unknown): string { - return String(html).replace(/["'&<>]/g, (match) => ESCAPED[match as keyof typeof ESCAPED]); -} - -/** - * 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 if (e instanceof Error) { - console.error(e.message); - } else { - console.error(e); - } - 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): PipelineType { - return modelPipeline === "text2text-generation" ? "text-generation" : modelPipeline; -} - -/** - * Svelte action that will call inference endpoint when a user hits cmd+Enter on a current html element - */ -export function onCmdEnter(node: HTMLElement, opts: { disabled: boolean }): ActionReturn { - let currentOpts = opts; - - function onKeyDown(e: KeyboardEvent) { - if ((node as HTMLInputElement)?.disabled || currentOpts.disabled) { - return; - } - // run inference on cmd+Enter - if (e.key === "Enter" && (e.metaKey || e.ctrlKey)) { - e.preventDefault(); - node.dispatchEvent(new CustomEvent("cmdEnter")); - } - } - node.addEventListener("keydown", onKeyDown); - return { - update(updatedOps: { disabled: boolean }) { - currentOpts = updatedOps; - }, - destroy() { - node.removeEventListener("keydown", onKeyDown); - }, - }; -} - -/** - * A debounce function that works in both browser and Nodejs. - */ -export function debounce(callback: (...rest: T) => unknown, limit: number): (...rest: T) => void { - let timer: ReturnType; - - return function (...rest) { - clearTimeout(timer); - timer = setTimeout(() => { - callback(...rest); - }, limit); - }; -} - -/** - * Teleports the children of a node to another node.... - */ -export function portal(node: HTMLElement, targetNode: HTMLElement): { destroy: () => void } { - const portalChildren = [...node.children]; - targetNode.append(...portalChildren); - return { - destroy() { - for (const portalChild of portalChildren) { - portalChild.remove(); - } - }, - }; -} - -/** - * Teleports the children of a node under the body element - */ -export function portalToBody(node: HTMLElement): { destroy: () => void } { - return portal(node, document.body); -} - -/** -* 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/packages/widgets/src/routes/+layout.server.ts b/packages/widgets/src/routes/+layout.server.ts deleted file mode 100644 index 758e4e196..000000000 --- a/packages/widgets/src/routes/+layout.server.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { env } from "$env/dynamic/private"; -import type { LayoutServerLoad } from "./$types.js"; - -const supportsOAuth = !!env.OAUTH_CLIENT_ID && !!env.OAUTH_CLIENT_SECRET; - -export const load: LayoutServerLoad = async ({ locals }) => { - return { - session: supportsOAuth ? locals.getSession() : undefined, - supportsOAuth, - }; -}; diff --git a/packages/widgets/src/routes/+layout.svelte b/packages/widgets/src/routes/+layout.svelte deleted file mode 100644 index 8924e9430..000000000 --- a/packages/widgets/src/routes/+layout.svelte +++ /dev/null @@ -1,13 +0,0 @@ - - -
- -
diff --git a/packages/widgets/src/routes/+page.svelte b/packages/widgets/src/routes/+page.svelte deleted file mode 100644 index ba2f818ee..000000000 --- a/packages/widgets/src/routes/+page.svelte +++ /dev/null @@ -1,775 +0,0 @@ - - -
- - - {#if data.supportsOAuth} - {#if !data.session} -
- -
- {:else} -
- logged in as {data.session.user?.username} - -
- -
-
- {/if} - {:else} - - {/if} - - -
-

Showcase of all types of inference widgets running

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

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} -
-
-
diff --git a/packages/widgets/src/routes/[...model]/+page.svelte b/packages/widgets/src/routes/[...model]/+page.svelte deleted file mode 100644 index c63519c95..000000000 --- a/packages/widgets/src/routes/[...model]/+page.svelte +++ /dev/null @@ -1,28 +0,0 @@ - - -← Back to index - - -
- {#if data.model} - - -
-			{JSON.stringify(data.model, null, 2)}
-		
- {:else} -
Error. Probably non existent model. {data.message}
- {/if} -
diff --git a/packages/widgets/src/routes/[...model]/+page.ts b/packages/widgets/src/routes/[...model]/+page.ts deleted file mode 100644 index ac2edfd7d..000000000 --- a/packages/widgets/src/routes/[...model]/+page.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { WidgetProps } from "$lib/components/InferenceWidget/shared/types.js"; -import type { Load } from "@sveltejs/kit"; - -export const load: Load = async ({ params, fetch }): Promise<{ model?: WidgetProps["model"]; message?: string }> => { - const url = `https://huggingface.co/api/models/${params.model}`; - try { - const model = await (await fetch(url)).json(); - return { - model, - }; - } catch { - // todo: throw error() instead - return { - message: `Model ${params.model} not found (probably)`, - }; - } -}; diff --git a/packages/widgets/src/tailwind.css b/packages/widgets/src/tailwind.css deleted file mode 100644 index 8f335baed..000000000 --- a/packages/widgets/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/packages/widgets/static/audioProcessor.js b/packages/widgets/static/audioProcessor.js deleted file mode 100644 index f1cde75a5..000000000 --- a/packages/widgets/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/packages/widgets/static/cats.jpg b/packages/widgets/static/cats.jpg deleted file mode 100644 index e131e8ecd..000000000 Binary files a/packages/widgets/static/cats.jpg and /dev/null differ diff --git a/packages/widgets/static/favicon.png b/packages/widgets/static/favicon.png deleted file mode 100644 index 825b9e65a..000000000 Binary files a/packages/widgets/static/favicon.png and /dev/null differ diff --git a/packages/widgets/svelte.config.js b/packages/widgets/svelte.config.js deleted file mode 100644 index 8263d611f..000000000 --- a/packages/widgets/svelte.config.js +++ /dev/null @@ -1,18 +0,0 @@ -import adapter from "@sveltejs/adapter-node"; -import { vitePreprocess } from "@sveltejs/kit/vite"; - -/** @type {import('@sveltejs/kit').Config} */ -const config = { - // Consult https://kit.svelte.dev/docs/integrations#preprocessors - // for more information about preprocessors - preprocess: vitePreprocess(), - - kit: { - // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list. - // If your environment is not supported or you settled on a specific environment, switch out the adapter. - // See https://kit.svelte.dev/docs/adapters for more information about adapters. - adapter: adapter(), - }, -}; - -export default config; diff --git a/packages/widgets/tailwind.config.cjs b/packages/widgets/tailwind.config.cjs deleted file mode 100644 index 10f977a9e..000000000 --- a/packages/widgets/tailwind.config.cjs +++ /dev/null @@ -1,46 +0,0 @@ -// eslint-disable-next-line @typescript-eslint/no-var-requires -const defaultTheme = require("tailwindcss/defaultTheme"); -// eslint-disable-next-line @typescript-eslint/no-var-requires -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], - }, - fontSize: { - smd: "0.94rem", - }, - }, - }, - plugins: [require("@tailwindcss/forms")], -}; diff --git a/packages/widgets/tsconfig.json b/packages/widgets/tsconfig.json deleted file mode 100644 index 0f47472f7..000000000 --- a/packages/widgets/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "./.svelte-kit/tsconfig.json", - "compilerOptions": { - "allowJs": true, - "checkJs": true, - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "resolveJsonModule": true, - "skipLibCheck": true, - "sourceMap": true, - "strict": true - } -} diff --git a/packages/widgets/vite.config.ts b/packages/widgets/vite.config.ts deleted file mode 100644 index 0b4714597..000000000 --- a/packages/widgets/vite.config.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { sveltekit } from "@sveltejs/kit/vite"; -import { svelte } from "@sveltejs/vite-plugin-svelte"; -import sveltePreprocess from "svelte-preprocess"; -import { defineConfig } from "vite"; -import dts from "vite-plugin-dts"; -import { dirname } from "node:path"; -import { fileURLToPath } from "node:url"; - -const __dirname = dirname(fileURLToPath(import.meta.url)); -const isSSR = process.argv.includes("--ssr"); - -export default defineConfig(({ mode }) => { - if (mode === "lib") { - return { - plugins: [ - svelte({ - configFile: false, - extensions: [".svelte"], - - // eslint-disable-next-line - // @ts-ignore see https://github.com/sveltejs/svelte-preprocess/issues/591 - preprocess: sveltePreprocess({ - typescript: { tsconfigFile: `${__dirname}/tsconfig.json` }, - }), - emitCss: false, - compilerOptions: { - hydratable: true, - // @ts-expect-error to check cc @krampstudio - generate: isSSR ? "ssr" : "dom", - }, - }), - dts({ - entryRoot: "src/lib", - }), - ], - build: { - manifest: true, - outDir: `dist/${isSSR ? "server" : "client"}`, - rollupOptions: { - input: { - index: "src/lib/index.ts", - }, - preserveEntrySignatures: "strict", - output: [ - { - preserveModules: true, - format: "cjs", - entryFileNames: "[name].cjs", - }, - { - preserveModules: true, - format: "es", - entryFileNames: "[name].js", - }, - ], - external: ["svelte", /svelte\/(.*)/, "@huggingface/tasks"], - }, - }, - }; - } - - if (mode === "app") { - return { - plugins: [sveltekit()], - }; - } - - return {}; -});