[
  {
    "path": ".dockerignore",
    "content": "node_modules\nplaywright-report\ncoverage\ndist\ntest-results\n"
  },
  {
    "path": ".eslintrc-auto-import.json",
    "content": "{\n  \"globals\": {\n    \"Component\": true,\n    \"ComponentPublicInstance\": true,\n    \"ComputedRef\": true,\n    \"EffectScope\": true,\n    \"InjectionKey\": true,\n    \"PropType\": true,\n    \"Ref\": true,\n    \"VNode\": true,\n    \"asyncComputed\": true,\n    \"autoResetRef\": true,\n    \"computed\": true,\n    \"computedAsync\": true,\n    \"computedEager\": true,\n    \"computedInject\": true,\n    \"computedWithControl\": true,\n    \"controlledComputed\": true,\n    \"controlledRef\": true,\n    \"createApp\": true,\n    \"createEventHook\": true,\n    \"createGlobalState\": true,\n    \"createInjectionState\": true,\n    \"createReactiveFn\": true,\n    \"createReusableTemplate\": true,\n    \"createSharedComposable\": true,\n    \"createTemplatePromise\": true,\n    \"createUnrefFn\": true,\n    \"customRef\": true,\n    \"debouncedRef\": true,\n    \"debouncedWatch\": true,\n    \"defineAsyncComponent\": true,\n    \"defineComponent\": true,\n    \"eagerComputed\": true,\n    \"effectScope\": true,\n    \"extendRef\": true,\n    \"getCurrentInstance\": true,\n    \"getCurrentScope\": true,\n    \"h\": true,\n    \"ignorableWatch\": true,\n    \"inject\": true,\n    \"isDefined\": true,\n    \"isProxy\": true,\n    \"isReactive\": true,\n    \"isReadonly\": true,\n    \"isRef\": true,\n    \"makeDestructurable\": true,\n    \"markRaw\": true,\n    \"nextTick\": true,\n    \"onActivated\": true,\n    \"onBeforeMount\": true,\n    \"onBeforeRouteLeave\": true,\n    \"onBeforeRouteUpdate\": true,\n    \"onBeforeUnmount\": true,\n    \"onBeforeUpdate\": true,\n    \"onClickOutside\": true,\n    \"onDeactivated\": true,\n    \"onErrorCaptured\": true,\n    \"onKeyStroke\": true,\n    \"onLongPress\": true,\n    \"onMounted\": true,\n    \"onRenderTracked\": true,\n    \"onRenderTriggered\": true,\n    \"onScopeDispose\": true,\n    \"onServerPrefetch\": true,\n    \"onStartTyping\": true,\n    \"onUnmounted\": true,\n    \"onUpdated\": true,\n    \"pausableWatch\": true,\n    \"provide\": true,\n    \"reactify\": true,\n    \"reactifyObject\": true,\n    \"reactive\": true,\n    \"reactiveComputed\": true,\n    \"reactiveOmit\": true,\n    \"reactivePick\": true,\n    \"readonly\": true,\n    \"ref\": true,\n    \"refAutoReset\": true,\n    \"refDebounced\": true,\n    \"refDefault\": true,\n    \"refThrottled\": true,\n    \"refWithControl\": true,\n    \"resolveComponent\": true,\n    \"resolveRef\": true,\n    \"resolveUnref\": true,\n    \"shallowReactive\": true,\n    \"shallowReadonly\": true,\n    \"shallowRef\": true,\n    \"syncRef\": true,\n    \"syncRefs\": true,\n    \"templateRef\": true,\n    \"throttledRef\": true,\n    \"throttledWatch\": true,\n    \"toRaw\": true,\n    \"toReactive\": true,\n    \"toRef\": true,\n    \"toRefs\": true,\n    \"triggerRef\": true,\n    \"tryOnBeforeMount\": true,\n    \"tryOnBeforeUnmount\": true,\n    \"tryOnMounted\": true,\n    \"tryOnScopeDispose\": true,\n    \"tryOnUnmounted\": true,\n    \"unref\": true,\n    \"unrefElement\": true,\n    \"until\": true,\n    \"useActiveElement\": true,\n    \"useAnimate\": true,\n    \"useArrayDifference\": true,\n    \"useArrayEvery\": true,\n    \"useArrayFilter\": true,\n    \"useArrayFind\": true,\n    \"useArrayFindIndex\": true,\n    \"useArrayFindLast\": true,\n    \"useArrayIncludes\": true,\n    \"useArrayJoin\": true,\n    \"useArrayMap\": true,\n    \"useArrayReduce\": true,\n    \"useArraySome\": true,\n    \"useArrayUnique\": true,\n    \"useAsyncQueue\": true,\n    \"useAsyncState\": true,\n    \"useAttrs\": true,\n    \"useBase64\": true,\n    \"useBattery\": true,\n    \"useBluetooth\": true,\n    \"useBreakpoints\": true,\n    \"useBroadcastChannel\": true,\n    \"useBrowserLocation\": true,\n    \"useCached\": true,\n    \"useClipboard\": true,\n    \"useCloned\": true,\n    \"useColorMode\": true,\n    \"useConfirmDialog\": true,\n    \"useCounter\": true,\n    \"useCssModule\": true,\n    \"useCssVar\": true,\n    \"useCssVars\": true,\n    \"useCurrentElement\": true,\n    \"useCycleList\": true,\n    \"useDark\": true,\n    \"useDateFormat\": true,\n    \"useDebounce\": true,\n    \"useDebounceFn\": true,\n    \"useDebouncedRefHistory\": true,\n    \"useDeviceMotion\": true,\n    \"useDeviceOrientation\": true,\n    \"useDevicePixelRatio\": true,\n    \"useDevicesList\": true,\n    \"useDialog\": true,\n    \"useDisplayMedia\": true,\n    \"useDocumentVisibility\": true,\n    \"useDraggable\": true,\n    \"useDropZone\": true,\n    \"useElementBounding\": true,\n    \"useElementByPoint\": true,\n    \"useElementHover\": true,\n    \"useElementSize\": true,\n    \"useElementVisibility\": true,\n    \"useEventBus\": true,\n    \"useEventListener\": true,\n    \"useEventSource\": true,\n    \"useEyeDropper\": true,\n    \"useFavicon\": true,\n    \"useFetch\": true,\n    \"useFileDialog\": true,\n    \"useFileSystemAccess\": true,\n    \"useFocus\": true,\n    \"useFocusWithin\": true,\n    \"useFps\": true,\n    \"useFullscreen\": true,\n    \"useGamepad\": true,\n    \"useGeolocation\": true,\n    \"useI18n\": true,\n    \"useIdle\": true,\n    \"useImage\": true,\n    \"useInfiniteScroll\": true,\n    \"useIntersectionObserver\": true,\n    \"useInterval\": true,\n    \"useIntervalFn\": true,\n    \"useKeyModifier\": true,\n    \"useLastChanged\": true,\n    \"useLink\": true,\n    \"useLoadingBar\": true,\n    \"useLocalStorage\": true,\n    \"useMagicKeys\": true,\n    \"useManualRefHistory\": true,\n    \"useMediaControls\": true,\n    \"useMediaQuery\": true,\n    \"useMemoize\": true,\n    \"useMemory\": true,\n    \"useMessage\": true,\n    \"useMounted\": true,\n    \"useMouse\": true,\n    \"useMouseInElement\": true,\n    \"useMousePressed\": true,\n    \"useMutationObserver\": true,\n    \"useNavigatorLanguage\": true,\n    \"useNetwork\": true,\n    \"useNotification\": true,\n    \"useNow\": true,\n    \"useObjectUrl\": true,\n    \"useOffsetPagination\": true,\n    \"useOnline\": true,\n    \"usePageLeave\": true,\n    \"useParallax\": true,\n    \"useParentElement\": true,\n    \"usePerformanceObserver\": true,\n    \"usePermission\": true,\n    \"usePointer\": true,\n    \"usePointerLock\": true,\n    \"usePointerSwipe\": true,\n    \"usePreferredColorScheme\": true,\n    \"usePreferredContrast\": true,\n    \"usePreferredDark\": true,\n    \"usePreferredLanguages\": true,\n    \"usePreferredReducedMotion\": true,\n    \"usePrevious\": true,\n    \"useRafFn\": true,\n    \"useRefHistory\": true,\n    \"useResizeObserver\": true,\n    \"useRoute\": true,\n    \"useRouter\": true,\n    \"useScreenOrientation\": true,\n    \"useScreenSafeArea\": true,\n    \"useScriptTag\": true,\n    \"useScroll\": true,\n    \"useScrollLock\": true,\n    \"useSessionStorage\": true,\n    \"useShare\": true,\n    \"useSlots\": true,\n    \"useSorted\": true,\n    \"useSpeechRecognition\": true,\n    \"useSpeechSynthesis\": true,\n    \"useStepper\": true,\n    \"useStorage\": true,\n    \"useStorageAsync\": true,\n    \"useStyleTag\": true,\n    \"useSupported\": true,\n    \"useSwipe\": true,\n    \"useTemplateRefsList\": true,\n    \"useTextDirection\": true,\n    \"useTextSelection\": true,\n    \"useTextareaAutosize\": true,\n    \"useThrottle\": true,\n    \"useThrottleFn\": true,\n    \"useThrottledRefHistory\": true,\n    \"useTimeAgo\": true,\n    \"useTimeout\": true,\n    \"useTimeoutFn\": true,\n    \"useTimeoutPoll\": true,\n    \"useTimestamp\": true,\n    \"useTitle\": true,\n    \"useToNumber\": true,\n    \"useToString\": true,\n    \"useToggle\": true,\n    \"useTransition\": true,\n    \"useUrlSearchParams\": true,\n    \"useUserMedia\": true,\n    \"useVModel\": true,\n    \"useVModels\": true,\n    \"useVibrate\": true,\n    \"useVirtualList\": true,\n    \"useWakeLock\": true,\n    \"useWebNotification\": true,\n    \"useWebSocket\": true,\n    \"useWebWorker\": true,\n    \"useWebWorkerFn\": true,\n    \"useWindowFocus\": true,\n    \"useWindowScroll\": true,\n    \"useWindowSize\": true,\n    \"watch\": true,\n    \"watchArray\": true,\n    \"watchAtMost\": true,\n    \"watchDebounced\": true,\n    \"watchDeep\": true,\n    \"watchEffect\": true,\n    \"watchIgnorable\": true,\n    \"watchImmediate\": true,\n    \"watchOnce\": true,\n    \"watchPausable\": true,\n    \"watchPostEffect\": true,\n    \"watchSyncEffect\": true,\n    \"watchThrottled\": true,\n    \"watchTriggerable\": true,\n    \"watchWithFilter\": true,\n    \"whenever\": true,\n    \"toValue\": true\n  }\n}\n"
  },
  {
    "path": ".eslintrc.cjs",
    "content": "/**\n * @type {import('eslint').Linter.Config}\n */\nmodule.exports = {\n  root: true,\n  extends: ['@antfu', './.eslintrc-auto-import.json', '@unocss'],\n\n  rules: {\n    'curly': ['error', 'all'],\n    '@typescript-eslint/semi': ['error', 'always'],\n    '@typescript-eslint/no-use-before-define': ['error', { allowNamedExports: true, functions: false }],\n    'vue/no-empty-component-block': ['error'],\n    'no-restricted-imports': ['error', {\n      paths: [{\n        name: '@vueuse/core',\n        importNames: ['useClipboard'],\n        message: 'Please use local useCopy from src/composable/copy.ts instead of useClipboard.',\n      }],\n    }],\n  },\n};\n"
  },
  {
    "path": ".github/FUNDING.yml",
    "content": "github:\n  - CorentinTh\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/bug-report.yml",
    "content": "name: 🐞 Bug Report\ndescription: File a bug report.\nlabels: ['bug', 'triage']\nassignees:\n  - CorentinTh\nbody:\n  - type: markdown\n    attributes:\n      value: |\n        Thanks for taking the time to fill out this bug report!\n\n  - type: textarea\n    id: bug-description\n    attributes:\n      label: Describe the bug\n      description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks!\n      placeholder: Bug description\n    validations:\n      required: true\n\n  - type: textarea\n    id: what-happened\n    attributes:\n      label: What happened?\n      description: Also tell us, what did you expect to happen? If you have a screenshot, you can paste it here.\n      placeholder: Tell us what you see!\n      value: 'A bug happened!'\n    validations:\n      required: true\n\n  - type: textarea\n    id: version\n    attributes:\n      label: System information\n      description: What is you environment? You can use the `npx envinfo --system --browsers` command to get this information.\n    validations:\n      required: true\n\n  - type: dropdown\n    id: app-type\n    attributes:\n      label: Where did you encounter the bug?\n      options:\n        - Public app (it-tools.tech)\n        - A self hosted\n        - Other (installations, docker, etc.)\n    validations:\n      required: true\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/config.yml",
    "content": "blank_issues_enabled: false\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature-request.yml",
    "content": "name: 🚀 New feature proposal\ndescription: Propose a new feature/enhancement or tool idea for IT-Tools\nlabels: ['enhancement', 'triage']\n\nbody:\n  - type: markdown\n    attributes:\n      value: |\n        Thanks for your interest in the project and taking the time to fill out this feature report!\n\n  - type: dropdown\n    id: request-type\n    attributes:\n      label: What type of request is this?\n      options:\n        - New tool idea\n        - New feature for an existing tool\n        - Deployment or CI/CD improvement\n        - Self-hosting improvement\n        - Other\n    validations:\n      required: true\n\n  - type: textarea\n    id: feature-description\n    attributes:\n      label: Clear and concise description of the feature you are proposing\n      description: A clear and concise description of what the feature is.\n      placeholder: 'Example: a token generator tool'\n    validations:\n      required: true\n\n  - type: textarea\n    id: alternative\n    attributes:\n      label: Is their example of this tool in the wild?\n      description: Provide link to already existing tool (like websites, apps, cli, ...) or npm packages that could be used or provide inspiration for the feature.\n\n  - type: textarea\n    id: additional-context\n    attributes:\n      label: Additional context\n      description: Any other context or screenshots about the feature request here.\n\n  - type: checkboxes\n    id: checkboxes\n    attributes:\n      label: Validations\n      description: Before submitting the issue, please make sure you do the following\n      options:\n        - label: Check the feature is not already implemented in the project.\n          required: true\n        - label: Check that there isn't already an issue that request the same feature to avoid creating a duplicate.\n          required: true\n        - label: Check that the feature can be implemented in a client side only app (IT-Tools is client side only, no server).\n          required: true\n"
  },
  {
    "path": ".github/PULL_REQUEST_TEMPLATE/pull_request_template.md",
    "content": "<!-- Thank you for contributing! -->\n\n### Description\n\n<!-- Please insert your description here and provide especially info about the \"what\" this PR is solving -->\n\n### Additional context\n\n<!-- e.g. is there anything you'd like reviewers to focus on? -->\n\n---\n\n### What is the purpose of this pull request? <!-- (put an \"X\" next to an item) -->\n\n- [ ] Bug fix\n- [ ] New Feature\n- [ ] Documentation update\n- [ ] Other\n\n### Before submitting the PR, please make sure you do the following\n\n- [ ] Submit the PR against the `dev` branch.\n- [ ] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.\n- [ ] Provide a description in this PR that addresses **what** the PR is solving, or reference the issue that it solves (e.g. `fixes #123`).\n- [ ] Ideally, include relevant tests that fail without this PR but pass with it."
  },
  {
    "path": ".github/stale.yml",
    "content": "# Number of days of inactivity before an issue becomes stale\ndaysUntilStale: 60\n# Number of days of inactivity before a stale issue is closed\ndaysUntilClose: 7\n# Issues with these labels will never be considered stale\nexemptLabels:\n  - pinned\n  - security\n# Label to use when marking an issue as stale\nstaleLabel: wontfix\n# Comment to post when marking an issue as stale. Set to `false` to disable\nmarkComment: >\n  This issue has been automatically marked as stale because it has not had\n  recent activity. It will be closed if no further activity occurs. Thank you\n  for your contributions.\n# Comment to post when closing a stale issue. Set to `false` to disable\ncloseComment: false\n"
  },
  {
    "path": ".github/workflows/ci.yml",
    "content": "name: ci\n\non:\n  pull_request:\n  push:\n    branches:\n      - main\n\njobs:\n  ci:\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4\n      - run: corepack enable\n      - uses: actions/setup-node@v3\n        with:\n          node-version: 20\n          cache: 'pnpm'\n\n      - name: Install dependencies\n        run: pnpm i\n\n      - name: Run linters\n        run: pnpm lint\n\n      - name: Run unit test\n        run: pnpm test\n\n      - name: Type check\n        run: pnpm typecheck\n\n      - name: Build the app\n        run: pnpm build\n"
  },
  {
    "path": ".github/workflows/docker-nightly-release.yml",
    "content": "name: Docker nightly release\n\non:\n  workflow_dispatch:\n  schedule:\n    - cron: '0 0 * * *'\n\njobs:\n  check_date:\n    runs-on: ubuntu-latest\n    name: Check latest commit\n    outputs:\n      should_run: ${{ steps.should_run.outputs.should_run }}\n    steps:\n      - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4\n      - name: print latest_commit\n        run: echo ${{ github.sha }}\n\n      - id: should_run\n        continue-on-error: true\n        name: check latest commit is less than a day\n        if: ${{ github.event_name == 'schedule' }}\n        run: test -z $(git rev-list  --after=\"24 hours\"  ${{ github.sha }}) && echo \"::set-output name=should_run::false\"\n\n  ci:\n    runs-on: ubuntu-latest\n    needs: check_date\n    if: ${{ needs.check_date.outputs.should_run != 'false' }}\n\n    steps:\n      - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4\n      - run: corepack enable\n      - uses: actions/setup-node@v3\n        with:\n          node-version: 20\n          cache: 'pnpm'\n\n      - name: Install dependencies\n        run: pnpm i\n\n      - name: Run linters\n        run: pnpm lint\n\n      - name: Run unit test\n        run: pnpm test\n\n      - name: Build the app\n        run: pnpm build\n\n  build:\n    runs-on: ubuntu-latest\n    needs:\n      - ci\n\n    steps:\n      - name: Checkout\n        uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4\n\n      - name: Login to GitHub Container Registry\n        uses: docker/login-action@v3\n        with:\n          registry: ghcr.io\n          username: ${{ github.repository_owner }}\n          password: ${{ secrets.GITHUB_TOKEN }}\n\n      - name: Login to Docker Hub\n        uses: docker/login-action@v3\n        with:\n          username: ${{ secrets.DOCKERHUB_USERNAME }}\n          password: ${{ secrets.DOCKERHUB_TOKEN }}\n\n      - name: Set up QEMU\n        uses: docker/setup-qemu-action@v3\n\n      - name: Set up Docker Buildx\n        uses: docker/setup-buildx-action@v3\n\n      - name: Build and push\n        uses: docker/build-push-action@v5\n        with:\n          context: .\n          file: ./Dockerfile\n          platforms: linux/amd64,linux/arm64\n          push: true\n          tags: |\n            corentinth/it-tools:nightly\n            ghcr.io/corentinth/it-tools:nightly\n"
  },
  {
    "path": ".github/workflows/e2e-tests.yml",
    "content": "name: E2E tests\non:\n  pull_request:\n  push:\n    branches:\n      - main\njobs:\n  test:\n    timeout-minutes: 10\n    runs-on: ubuntu-latest\n    strategy:\n      matrix:\n        shard: [1/3, 2/3, 3/3]\n    steps:\n      - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4\n\n      - run: corepack enable\n\n      - uses: actions/setup-node@v3\n        with:\n          node-version: 20\n          cache: 'pnpm'\n\n      - name: Get Playwright version\n        id: playwright-version\n        run: echo \"PLAYWRIGHT_VERSION=$(jq -r .dependencies.playwright package.json)\" >> \"$GITHUB_OUTPUT\"\n\n      - name: Install dependencies\n        run: pnpm install\n\n      - name: Build app\n        run: pnpm build\n\n      - name: Restore Playwright browsers from cache\n        uses: actions/cache@v3\n        with:\n          path: ~/.cache/ms-playwright\n          key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.PLAYWRIGHT_VERSION }}-${{ hashFiles('**/playwright.config.ts') }}\n          restore-keys: |\n            ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.PLAYWRIGHT_VERSION }}-\n            ${{ runner.os }}-playwright-\n\n      - name: Install Playwright Browsers\n        run: pnpm exec playwright install --with-deps\n\n      - name: Run Playwright tests\n        run: pnpm run test:e2e --shard=${{ matrix.shard }}\n"
  },
  {
    "path": ".github/workflows/releases.yml",
    "content": "name: Release new versions\n\non:\n  push:\n    tags:\n      - 'v*.*.*'\n\njobs:\n  docker-release:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Get release version\n        run: echo \"RELEASE_VERSION=${GITHUB_REF#refs/tags/v}\" >> $GITHUB_ENV\n\n      - name: Checkout\n        uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4\n\n      - name: Login to GitHub Container Registry\n        uses: docker/login-action@v3\n        with:\n          registry: ghcr.io\n          username: ${{ github.repository_owner }}\n          password: ${{ secrets.GITHUB_TOKEN }}\n\n      - name: Login to Docker Hub\n        uses: docker/login-action@v3\n        with:\n          username: ${{ secrets.DOCKERHUB_USERNAME }}\n          password: ${{ secrets.DOCKERHUB_TOKEN }}\n\n      - name: Set up QEMU\n        uses: docker/setup-qemu-action@v3\n\n      - name: Set up Docker Buildx\n        uses: docker/setup-buildx-action@v3\n\n      - name: Build and push\n        uses: docker/build-push-action@v5\n        with:\n          context: .\n          file: ./Dockerfile\n          platforms: linux/amd64,linux/arm64\n          push: true\n          tags: |\n            corentinth/it-tools:latest\n            corentinth/it-tools:${{ env.RELEASE_VERSION }}\n            ghcr.io/corentinth/it-tools:latest\n            ghcr.io/corentinth/it-tools:${{ env.RELEASE_VERSION}}\n\n  github-release:\n    runs-on: ubuntu-latest\n    needs: docker-release\n    steps:\n      - name: Get release version\n        run: echo \"RELEASE_VERSION=${GITHUB_REF#refs/tags/v}\" >> $GITHUB_ENV\n\n      - name: Checkout\n        uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4\n\n      - run: corepack enable\n\n      - uses: actions/setup-node@v3\n        with:\n          node-version: 20\n          cache: 'pnpm'\n\n      - name: Install dependencies\n        run: pnpm i\n\n      - name: Build the app\n        run: pnpm build\n\n      - name: Zip the app\n        run: zip -r it-tools-${{ env.RELEASE_VERSION }}.zip dist/*\n\n      - name: Get changelog\n        id: changelog\n        run: |\n          EOF=$(openssl rand -hex 8)\n          echo \"changelog<<$EOF\" >> $GITHUB_OUTPUT\n          node ./scripts/getLatestChangelog.mjs >> $GITHUB_OUTPUT\n          echo \"$EOF\" >> $GITHUB_OUTPUT\n\n      - name: Create Release\n        uses: softprops/action-gh-release@v1\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n          files: it-tools-${{ env.RELEASE_VERSION }}.zip\n          tag_name: v${{ env.RELEASE_VERSION }}\n          draft: true\n          prerelease: false\n          body: |\n            ## Docker images\n\n            - Docker Hub\n              - `corentinth/it-tools:latest`\n              - `corentinth/it-tools:${{ env.RELEASE_VERSION }}`\n            - GitHub Container Registry\n              - `ghcr.io/corentinth/it-tools:latest`\n              - `ghcr.io/corentinth/it-tools:${{ env.RELEASE_VERSION}}`\n\n            ## Changelog\n\n            ${{ steps.changelog.outputs.changelog }}\n"
  },
  {
    "path": ".gitignore",
    "content": "# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\npnpm-debug.log*\nlerna-debug.log*\n\nnode_modules\n.DS_Store\ndist\ndist-ssr\ncoverage\n*.local\n\n/cypress/videos/\n/cypress/screenshots/\n\n# Editor directories and files\n.vscode/*\n!.vscode/extensions.json\n.idea\n*.suo\n*.ntvs*\n*.njsproj\n*.sln\n*.sw?\n\n.env\n/test-results/\n/playwright-report/\n/playwright/.cache/\n# Webkit with playwright creates a salt file\nsalt"
  },
  {
    "path": ".nvmrc",
    "content": "18.18.2\n"
  },
  {
    "path": ".prettierrc",
    "content": "{\n  \"singleQuote\": true,\n  \"semi\": true,\n  \"tabWidth\": 2,\n  \"trailingComma\": \"all\",\n  \"printWidth\": 120\n}\n"
  },
  {
    "path": ".versionrc",
    "content": "{\n  \"types\": [\n    {\"type\": \"feat\", \"section\": \"Features\"},\n    {\"type\": \"fix\", \"section\": \"Bug Fixes\"},\n    {\"type\": \"docs\", \"section\": \"Documentation\"},\n    {\"type\": \"style\", \"section\": \"Styling\"},\n    {\"type\": \"refactor\", \"section\": \"Refactors\"},\n    {\"type\": \"perf\", \"section\": \"Performance\"},\n    {\"type\": \"test\", \"section\": \"Tests\"},\n    {\"type\": \"build\", \"section\": \"Build System\"},\n    {\"type\": \"ci\", \"section\": \"CI\"},\n    {\"type\": \"revert\", \"section\": \"Reverts\"}\n  ]\n}\n"
  },
  {
    "path": ".vscode/extensions.json",
    "content": "{\n  \"recommendations\": [\"Vue.volar\", \"Vue.vscode-typescript-vue-plugin\", \"dbaeumer.vscode-eslint\", \"lokalise.i18n-ally\"]\n}\n"
  },
  {
    "path": "CHANGELOG.md",
    "content": "# Changelog\n\nAll notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.\n\n## Version 2024.10.22-7ca5933\n\n### Features\n- **new tool**: Regex Tester (and Cheatsheet) (#1030) (f5c4ab1)\n- **new tool**: Markdown to HTML (#916) (87984e2)\n- **new-tool**: add email normalizer (#1243) (318fb6e)\n- **new tools**: JSON to XML and XML to JSON (#1231) (f1a5489)\n- **lorem-ipsum**: add button to refresh text lorem-ipsum (#1213) (e1b4f9a)\n- **base64**: Base64 enhancements (#905) (30144aa)\n\n### Bug fixes\n- **favorites**: store favorites regardless of languages (#1202) (7ca5933)\n- **emoji-picker**: debounced search input (#1181) (76a19d2)\n- **format-transformer**: set overflow for output area width (#787) (b430bae)\n- **jwt-parser**: prevent UI overflow on small screen (#1095) (dd4b7e6)\n\n### Refactoring\n- **regex-tester**: better description (7251700)\n\n### Chores\n- **sponsors**: fern sponsor banners (#1314) (f962c41)\n- **readme**: updated logos (#1294) (6709498)\n\n### Documentation\n- **author**: updated author links (#1316) (1c35ac3)\n\n## Version 2024.05.13-a0bc346\n\n### Features\n- **i18n**: added German translation (#1038) (2c2fb21)\n- **new tool**: Outlook Safelink Decoder (#911) (d3b32cc)\n- **new tool**: ascii art generator (#886) (fe349ad)\n- **i18n**: get locales on build (#880) (dc04615)\n- **i18n**: added vi tools translations (#876) (079aa21)\n- **i18n**: added zh tools translations (#874) (9c6b122)\n- **i18n**: added missing locale files in tools (#863) (7f5fa00)\n- **i18n**: added vietnamese language (#859) (1334bff)\n- **i18n**: added spanish language (#854) (85b50bb)\n- **i18n**: added portuguese language (#813) (c65ffb6)\n- **i18n**: added ukrainian language (#827) (693f362)\n- **new-tool**: yaml formater (#779) (fc06f01)\n- **new-tool**: added unicode conversion utilities (#858) (c46207f)\n\n### Bug fixes\n- **language**: English language cleanup (#1036) (221ddfa)\n- **url-encoder, validation**: typo in validation of url-encoder.vue #1024 (cb5b462)\n- **integer base converter**: support bigint (#872) (9eac9cb)\n- **bcrypt tool**: allow salt rounds up to 100 (#987) (23f82d9)\n\n### Refactoring\n- **lint**: removed extra semi (33e5294)\n- **auto-imports**: regen auto imports (1242842)\n- **home**: lightened tool cards (#882) (a07806c)\n- **home**: removed n-grid to prevent layout shift (#881) (10e56b3)\n- **i18n**: added locales per tool (#861) (95698cb)\n\n### Chores\n- **issues**: prevent empty issues (#1078) (a0bc346)\n- **issues**: removed old issue templates (#1077) (5a7b0f9)\n- **node**: upgraded node version in CI workflows (b59942a)\n- **version**: release 2024.05.10-33e5294 (38d5687)\n- **issues**: improved issues template (2852c30)\n- **issues**: improved bug issue template (#1046) (a799234)\n\n### Documentation\n- **changelog**: update changelog for 2024.05.10-33e5294 (9dfd347)\n\n## Version 2023.12.21-5ed3693\n\n### Features\n\n- **i18n**: improve chinese i18n (#757) (2e56641)\n- **i18n**: add tooltip and favoriteButton i18n (#756) (a1037cf)\n- **i18n**: add Chinese translation base (#718) (8f99eb6)\n- **new tool**: pdf signature checker (#745) (4781920)\n- **new tool**: numeronym generator (#729) (e07e2ae)\n\n### Bug fixes\n\n- **jwt-parser**: jwt claim array support (#799) (5ed3693)\n- **camera-recorder**: stop camera on navigation (#782) (80e46c9)\n- **doc**: updated create new tool command in readme (#762) (7a70dbb)\n- **base64-file-converter**: fix downloading of index.html content without data preambula (#750) (043e4f0)\n- **docker**: rollback armv7 in docker releases (#741) (205e360)\n- **eta**: corrected example (#737) (821cbea)\n\n### Refactoring\n\n- **about, i18n**: improved i18n dx with markdown (#753) (bd3edcb)\n- **token, i18n**: complete fr translation (#752) (de1ee69)\n- **uuid generator**: uuid version picker (#751) (38586ca)\n- **case converter**: no split on lowercase, uppercase and mocking case (#748) (ca43a25)\n- **ui**: replaced legacy n-upload with c-file-upload (#747) (7fe47b3)\n- **token**: added password in token generator keywords (#746) (16ffe6b)\n- **bcrypt**: fix input label align (#721) (093ff31)\n\n### Chores\n\n- **deps**: switched from oui to oui-data for mac address lookup (#693) (0fe9a20)\n- **deps**: update unocss monorepo to ^0.57.0 (#638) (2e396d8)\n- **docker**: added armv7 plateform for docker releases (#722) (fe1de8c)\n\n## Version 2023.11.02-7d94e11\n\n### Features\n\n- **i18n**: language selector (#710) (e86fd96)\n\n### Bug fixes\n\n- **dockerfile**: revert replacement of nginx image with non-privileged one (#716) (7d94e11)\n- **encryption**: alert on decryption error (#711) (02b0d0d)\n\n### Refactoring\n\n- **math-evaluator**: improved description (e87f4b1)\n- **math-evaluator**: improved search and UX (#713) (58de897)\n\n## Version 2023.11.01-e164afb\n\n### Features\n\n- **command-palette**: clear prompt on palette close (#708) (d013696)\n- **command-palette**: added about page in command palette (99b1eb9)\n- **new tool**: random MAC address generator (#657) (cc3425d)\n- **case-converter**: added mocking case (#705) (681f7bf)\n- **date-converter**: added excel date time format (#704) (f5eb7a8)\n- **i18n**: token generator (#688) (02e68d3)\n- **i18n**: home page (#687) (00562ed)\n- **i18n**: support for i18n in .ts files (#683) (ebb4ec4)\n- **i18n**: tool card (#682) (84a4a64)\n- **i18n**: about page (#680) (a2b53c2)\n- **i18n**: 404 page (#679) (35563b8)\n- **new tool**: text to ascii converter (#669) (b2ad4f7)\n- **new tool**: ULID generator (#623) (5c4d775)\n- **new tool**: add wifi qr code generator (#599) (0eedce6)\n- **new tool**: iban validation and parser (#591) (3a63837)\n- **new tool**: text diff and comparator (#588) (81bfe57)\n\n### Bug fixes\n\n- **deps**: fix issue on slugify (#593) (#673) (720201a)\n- **deps**: update dependency monaco-editor to ^0.43.0 (#620) (e371ef7)\n- **deps**: update dependency sql-formatter to v13 (#606) (c7d4562)\n\n### Refactoring\n\n- **ui**: better ui demo preview menu (#664) (015c673)\n- **color-converter**: improved color-converter UX (#701) (abb8335)\n- **docker**: improved docker config (#700) (020e9cb)\n- **c-table**: added description on c-table for accessibility (b408df8)\n- **ci**: reduced timeout in e2e (#666) (88b8818)\n- **ui**: new c-table ui component (#665) (ee4c853)\n- **ui**: removed n-page-header component in user-agent parser (#663) (cbf58fd)\n- **ui**: removed n-p components in about page (#662) (a757a51)\n- **ui**: switched naive tooltip components to custom ones (#661) (025f556)\n- **spelling**: minor corrections to phrasing/spelling (#596) (8a30b6b)\n- **i18n**: merge tools scoped locales with global ones (#612) (233d556)\n- **c-key-value-list**: got rid of table for layout (#611) (7ab9204)\n- **CI**: run e2e against built app and no longer vercel (#610) (18dd140)\n- **bcrypt**: fix typo (#604) (e18bae1)\n\n### Chores\n\n- **deps**: clean unused dependencies (#709) (e164afb)\n- **deps**: update docker/setup-qemu-action action to v3 (#627) (4365226)\n- **deps**: update docker/setup-buildx-action action to v3 (#626) (57ecda1)\n- **deps**: update docker/login-action action to v3 (#625) (d8d7a3b)\n- **deps**: update docker/build-push-action action to v5 (#624) (d36b18f)\n- **deps**: update dependency node to v18.18.2 (#674) (eea9f91)\n- **deps**: update dependency node to v18.18.0 (#636) (2d2dffb)\n- **deps**: update actions/checkout action to v4 (#613) (4972159)\n- **deps**: update dependency unplugin-icons to ^0.17.0 (#609) (f035f48)\n- **deps**: update dependency @intlify/unplugin-vue-i18n to ^0.13.0 (#597) (d1dff42)\n- **deps**: update dependency @antfu/eslint-config to ^0.41.0 (#585) (a9cd91c)\n- **deps**: update dependency typescript to ~5.2.0 (#587) (f3e14fc)\n\n### Doc\n\n- **readme**: added contributors list (#622) (557b304)\n- **hosting**: added cloudron in the other hosting solutions section (#589) (06c3547)\n\n## Version 2023.08.21-6f93cba\n\n### Features\n\n- **copy**: support legacy copy to clipboard for older browser (#581) (6f93cba)\n- **new tool**: string obfuscator (#575) (c58d6e3)\n\n### Bug fixes\n\n- **deps**: update dependency sql-formatter to v12 (#520) (2bcb77a)\n\n### Chores\n\n- **deps**: switched to fucking typescript v5 (#501) (76b2761)\n- **deps**: update dependency @antfu/eslint-config to ^0.40.0 (#552) (6ff9a01)\n- **deps**: update dependency prettier to v3 (#564) (a2b9b15)\n- **deps**: removed @typescript-eslint/parser (#563) (144f86e)\n- **deps**: removed ts-pattern (#565) (0f1f659)\n\n## Version 2023.08.16-9bd4ad4\n\n### Features\n\n- **Case Converter**: Add lowercase and uppercase (#534) (7b6232a)\n- **new tool**: emoji picker (#551) (93f7cf0)\n- **ui**: added c-select in the ui lib (#550) (dfa1ba8)\n- **new-tool**: password strength analyzer (#502) (a9c7b89)\n- **new-tool**: yaml to toml (e29b258)\n- **new-tool**: json to toml (ea50a3f)\n- **new-tool**: toml to yaml (746e5bd)\n- **new-tool**: toml to json (c7d4f11)\n- **command-palette**: random tool action (ec4c533)\n- **config**: allow app to run in a subfolder via BASE_URL (#461) (6304595)\n- **new-tool**: percentage calculator (#456) (b9406a4)\n- **new-tool**: json to csv converter (69f0bd0)\n- **new tool**: xml formatter (#457) (a6bbeae)\n- **chmod-calculator**: added symbolic representation (#455) (f771e7a)\n- **enhancement**: use system dark mode (#458) (cf7b1f0)\n- **phone-parser**: searchable country code select (d2956b6)\n- **new tool**: camera screenshot and recorder (34d8e5c)\n- **base64-string-converter**: switch to encode and decode url safe base64 strings (#392) (0b20f1c)\n\n### Bug fixes\n\n- **deps**: update dependency uuid to v9 (#566) (5e12991)\n- **deps**: update dependency mathjs to v11 (#519) (7924456)\n- **deps**: update dependency @vueuse/router to v10 (#516) (ea0f27c)\n- **copy**: prevent shorthand copy if source is present in useCopy (#559) (86e964a)\n- **c-lib**: hide component library shortcut link in non-dev (#557) (56d74d0)\n- **emoji picker**: fix copy button (#556) (e5d0ba7)\n- **deps**: update dependency @vueuse/head to v1 (#515) (d12dd40)\n- **deps**: update dependency country-code-lookup to ^0.1.0 (#493) (8c72e69)\n- **deps**: update dependency @vueuse/head to ^0.9.0 (#492) (cec9dea)\n- **i18n**: fallback for demo i18n (12d9e5d)\n- **typos**: fixed more typos & uppercase JSON (#475) (9526ed8)\n- **about**: typos and wording (#474) (7068610)\n- **mime-types**: typos (#470) (c4cec9e)\n- **sonar**: took down minor sonar warning (4cbd7ac)\n- **readme**: typo (105b21b)\n- **ipv4-range-expander**: calculate correct for ip addresses where the first octet is lower than 128 (#405) (8c92d56)\n- **ipv4-converter**: removed readonly on input (7aed9c5)\n\n### Refactoring\n\n- **navbar**: consistent spacing in navbar buttons (#507) (30f88fc)\n- **ui**: remove n-text (#506) (72c98a3)\n- **ui**: replaced some n-input to c-input (#505) (05ea545)\n- **json-viewer**: input monospace font (#485) (9125dcf)\n- **search**: command palette design (#463) (bcb98b3)\n- **c-input-text**: force usage of props with default (1e2a35b)\n- **naming**: prevent auto import conflicts for git memo (45c2474)\n- **imports**: removed unnecessary imports to vue (fe61f0f)\n- **ui**: removed all n-space (4d2b037)\n- **ui**: replaced some n-input with c-input-text (f7fc779)\n\n### Chores\n\n- **deps**: update dependency vitest to ^0.34.0 (#562) (9bd4ad4)\n- **deps**: update dependency node to v18.17.1 (#560) (65a9474)\n- **deps**: update dependency unocss to ^0.55.0 (#561) (85cc7a8)\n- **deps**: update dependency @unocss/eslint-config to ^0.55.0 (#553) (4268e25)\n- **deps**: update dependency @intlify/unplugin-vue-i18n to ^0.12.0 (#526) (d1c8880)\n- **deps**: update docker/login-action action to v2 (#512) (99bc84c)\n- **deps**: update dependency jsdom to v22 (#499) (cd5a503)\n- **deps**: update dependency @vitejs/plugin-vue-jsx to v3 (#497) (1a60236)\n- **deps**: update dependency @vitejs/plugin-vue to v4 (#496) (a249421)\n- **deps**: update dependency vite-plugin-pwa to ^0.16.0 (#488) (6498c9b)\n- **deps**: update dependency vite to v4 (#503) (f40d7ec)\n- **ci**: e2e against vercel deployement (#518) (2e28c50)\n- **e2e**: execute e2e against built app (#511) (cf382b5)\n- **deps**: update github/codeql-action action to v2 (#513) (0152583)\n- **deps**: update node.js to v18 (#514) (38cb61d)\n- **deps**: switched from vite-plugin-md to vite-plugin-vue-markdown (#510) (354aed6)\n- **deps**: update dependency workbox-window to v7 (#509) (6b8682f)\n- **deps**: update dependency vite-svg-loader to v4 (#508) (9e8349d)\n- **deps**: update dependency typescript to ~4.9.0 (#481) (f440507)\n- **deps**: update dependency vue-tsc to ^0.40.0 (#490) (b0d9a3e)\n- **deps**: updated unplugin-auto-import (#504) (5c3bebf)\n- **deps**: removed start-server-and-test dependency (8df7cd0)\n- **deps**: update dependency c8 to v8 (#498) (6bda2ca)\n- **deps**: update dependency @types/jsdom to v21 (#495) (994a1c3)\n- **deps**: update node.js to v16.20.1 (#491) (05edaf4)\n- **deps**: update dependency vitest to ^0.32.0 (#489) (49eacea)\n- **deps**: update actions/checkout action to v3 (#494) (3f7d469)\n- **deps**: update dependency unplugin-vue-components to ^0.25.0 (#484) (5f21908)\n- **deps**: update dependency unplugin-auto-import to ^0.16.0 (#483) (6cb0845)\n- **deps**: update dependency unocss to ^0.53.0 (#482) (38710dc)\n- **deps**: update dependency @unocss/eslint-config to ^0.53.0 (#478) (282cfc4)\n- **deps**: added renovate.json (#477) (363c2e4)\n- **i18n**: tool scoped locales (#471) (1b038c7)\n- **wysiwyg-editor**: update tiptap dependencies (732da08)\n- **i18n**: setup i18n plugin config (ebfb872)\n- **config**: netlify deployment support (#443) (93799af)\n- **ci**: shard e2e tests (962a6d6)\n- **lint**: switched to a better lint config (33c9b66)\n\n### Refacor\n\n- **transformers**: use monospace font for JSON and SQL text areas (#476) (ba4876d)\n\n### Documentation\n\n- **ide**: updated vscode extensions settings (#472) (847323c)\n\n### Chors\n\n- **deps**: updated vueuse dependency version (8515c24)\n\n## Version 2023.05.14-77f2efc\n\n### Features\n\n- **list-converter**: a small converter who deals with column based data and do some stuff with it (#387) (83a7b3b)\n- **new tool**: phone parser and normalizer (ce3150c)\n\n### Bug fixes\n\n- **phone-parser**: use default country code (a43c546)\n- **home**: prevent weird blue border on card (3f6c8f0)\n\n### Refactoring\n\n- **ui**: replaced some n-input with c-input-text (77f2efc)\n\n### Chores\n\n- **issues**: updated new tool request issue template (edae4c6)\n\n### Ui-lib\n\n- **new-component**: added text input component in the c-lib (aad8d84)\n- **button**: size variants (401f13f)\n\n## Version 2023.04.23-92bd835\n\n### Features\n\n- **ui-lib**: demo pages for c-lib components (92bd835)\n- **new-tool**: diff of two json objects (362f2fa)\n- **ipv4-range-expander**: expands a given IPv4 start and end address to a valid IPv4 subnet (#366) (df989e2)\n- **date converter**: auto focus main input (6d22025)\n\n### Bug fixes\n\n- **ts**: cleaned legacy typechecking warning (e88c1d5)\n- **mac-address-lookup**: added copy handler on button click (c311e38)\n\n### Refactoring\n\n- **ui-lib**: prevent c-button to shrink (61ece23)\n- **ui**: replaced naive ui cards with custom ones (f080933)\n- **clean**: removed unused lodash import (bb32513)\n- **clean**: removed useless br tags (74073f5)\n- **ui**: getting ride of naive ui buttons (c45bce3)\n\n## Version 2023.04.14-dbad773\n\n### Features\n\n- **new-tool**: http status codes (8355bd2)\n\n### Refactoring\n\n- **uuid-generator**: prevent NaN in quantity (6fb4994)\n\n### Chores\n\n- **release**: create a github release on new version (dbad773)\n- **version**: reset CHANGELOG content to support new format (85cb0ff)\n\n## Version 2023.04.14-f9b77b7\n\n### Features\n\n- **new-tool**: http status codes (8355bd2)\n\n### Refactoring\n\n- **uuid-generator**: prevent NaN in quantity (6fb4994)\n\n### Chores\n\n- **release**: create a github release on new version (f9b77b7)\n- **version**: reset CHANGELOG content to support new format (85cb0ff)\n\n## Version 2023.04.14-2f0d239\n\n### Features\n\n- **new-tool**: http status codes (8355bd2)\n\n### Refactoring\n\n- **uuid-generator**: prevent NaN in quantity (6fb4994)\n\n### Chores\n\n- **release**: create a github release on new version (2f0d239)\n- **version**: reset CHANGELOG content to support new format (85cb0ff)\n\n## Version 2023.04.14-474cae4\n\n### Features\n\n- **new-tool**: http status codes (8355bd2)\n\n### Refactoring\n\n- **uuid-generator**: prevent NaN in quantity (6fb4994)\n\n### Chores\n\n- **release**: create a github release on new version (474cae4)\n- **version**: reset CHANGELOG content to support new format (85cb0ff)\n\n## Version v2023.4.13-dce9ff9\n\n_Diff not available_\n"
  },
  {
    "path": "Dockerfile",
    "content": "# build stage\nFROM node:lts-alpine AS build-stage\n# Set environment variables for non-interactive npm installs\nENV NPM_CONFIG_LOGLEVEL warn\nENV CI true\nWORKDIR /app\nCOPY package.json pnpm-lock.yaml ./\nRUN npm install -g pnpm && pnpm i --frozen-lockfile\nCOPY . .\nRUN pnpm build\n\n# production stage\nFROM nginx:stable-alpine AS production-stage\nCOPY --from=build-stage /app/dist /usr/share/nginx/html\nCOPY nginx.conf /etc/nginx/conf.d/default.conf\nEXPOSE 80\nCMD [\"nginx\", \"-g\", \"daemon off;\"]\n"
  },
  {
    "path": "LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<https://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<https://www.gnu.org/licenses/why-not-lgpl.html>."
  },
  {
    "path": "README.md",
    "content": "<picture>\n    <source srcset=\"./.github/logo-dark.png\" media=\"(prefers-color-scheme: light)\">\n    <source srcset=\"./.github/logo-white.png\" media=\"(prefers-color-scheme: dark)\">\n    <img src=\"./.github/logo-dark.png\" alt=\"logo\">\n</picture>\n\n<p align=\"center\">\nUseful tools for developer and people working in IT. <a href=\"https://it-tools.tech\">Try it!</a>\n</p>\n\n## Functionalities and roadmap\n\nPlease check the [issues](https://github.com/CorentinTh/it-tools/issues) to see if some feature listed to be implemented.\n\nYou have an idea of a tool? Submit a [feature request](https://github.com/CorentinTh/it-tools/issues/new/choose)!\n\n## Self host\n\nSelf host solutions for your homelab\n\n**From docker hub:**\n\n```sh\ndocker run -d --name it-tools --restart unless-stopped -p 8080:80 corentinth/it-tools:latest\n```\n\n**From github packages:**\n\n```sh\ndocker run -d --name it-tools --restart unless-stopped -p 8080:80 ghcr.io/corentinth/it-tools:latest\n```\n\n**Other solutions:**\n\n- [Cloudron](https://www.cloudron.io/store/tech.ittools.cloudron.html)\n- [Tipi](https://www.runtipi.io/docs/apps-available)\n- [Unraid](https://unraid.net/community/apps?q=it-tools)\n\n## Contribute\n\n### Recommended IDE Setup\n\n[VSCode](https://code.visualstudio.com/) with the following extensions:\n\n- [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur)\n- [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).\n- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n- [i18n Ally](https://marketplace.visualstudio.com/items?itemName=lokalise.i18n-ally)\n\nwith the following settings:\n\n```json\n{\n  \"editor.formatOnSave\": false,\n  \"editor.codeActionsOnSave\": {\n    \"source.fixAll.eslint\": true\n  },\n  \"i18n-ally.localesPaths\": [\"locales\", \"src/tools/*/locales\"],\n  \"i18n-ally.keystyle\": \"nested\"\n}\n```\n\n### Type Support for `.vue` Imports in TS\n\nTypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.\n\nIf the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:\n\n1. Disable the built-in TypeScript Extension\n   1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette\n   2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`\n2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.\n\n### Project Setup\n\n```sh\npnpm install\n```\n\n### Compile and Hot-Reload for Development\n\n```sh\npnpm dev\n```\n\n### Type-Check, Compile and Minify for Production\n\n```sh\npnpm build\n```\n\n### Run Unit Tests with [Vitest](https://vitest.dev/)\n\n```sh\npnpm test\n```\n\n### Lint with [ESLint](https://eslint.org/)\n\n```sh\npnpm lint\n```\n\n### Create a new tool\n\nTo create a new tool, there is a script that generate the boilerplate of the new tool, simply run:\n\n```sh\npnpm run script:create:tool my-tool-name\n```\n\nIt will create a directory in `src/tools` with the correct files, and a the import in `src/tools/index.ts`. You will just need to add the imported tool in the proper category and develop the tool.\n\n## Contributors\n\nBig thanks to all the people who have already contributed!\n\n[![contributors](https://contrib.rocks/image?repo=corentinth/it-tools&refresh=1)](https://github.com/corentinth/it-tools/graphs/contributors)\n\n## Credits\n\nCoded with ❤️ by [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=readme).\n\nThis project is continuously deployed using [vercel.com](https://vercel.com).\n\nContributor graph is generated using [contrib.rocks](https://contrib.rocks/preview?repo=corentinth/it-tools).\n\n<a href=\"https://www.producthunt.com/posts/it-tools?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-it&#0045;tools\" target=\"_blank\"><img src=\"https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=345793&theme=light\" alt=\"IT&#0032;Tools - Collection&#0032;of&#0032;handy&#0032;online&#0032;tools&#0032;for&#0032;devs&#0044;&#0032;with&#0032;great&#0032;UX | Product Hunt\" style=\"width: 250px; height: 54px;\" width=\"250\" height=\"54\" /></a>\n<a href=\"https://www.producthunt.com/posts/it-tools?utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-it&#0045;tools\" target=\"_blank\"><img src=\"https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=345793&theme=light&period=daily\" alt=\"IT&#0032;Tools - Collection&#0032;of&#0032;handy&#0032;online&#0032;tools&#0032;for&#0032;devs&#0044;&#0032;with&#0032;great&#0032;UX | Product Hunt\" style=\"width: 250px; height: 54px;\" width=\"250\" height=\"54\" /></a>\n\n## License\n\nThis project is under the [GNU GPLv3](LICENSE).\n"
  },
  {
    "path": "_templates/generator/ui-component/component.demo.ejs.t",
    "content": "---\nto: src/ui/<%= h.changeCase.param(name) %>/<%= h.changeCase.param(name) %>.demo.vue\n---\n<template>\n  <<%= h.changeCase.param(name) %> />\n</template>\n"
  },
  {
    "path": "_templates/generator/ui-component/component.ejs.t",
    "content": "---\nto: src/ui/<%= h.changeCase.param(name) %>/<%= h.changeCase.param(name) %>.vue\n---\n<script lang=\"ts\" setup>\nconst props = withDefaults(defineProps<{ prop?: string }>(), { prop: '' });\nconst { prop } = toRefs(props);\n</script>\n\n<template>\n  <div>\n    {{ prop }}\n  </div>\n</template>\n"
  },
  {
    "path": "auto-imports.d.ts",
    "content": "/* eslint-disable */\n/* prettier-ignore */\n// @ts-nocheck\n// Generated by unplugin-auto-import\nexport {}\ndeclare global {\n  const EffectScope: typeof import('vue')['EffectScope']\n  const asyncComputed: typeof import('@vueuse/core')['asyncComputed']\n  const autoResetRef: typeof import('@vueuse/core')['autoResetRef']\n  const computed: typeof import('vue')['computed']\n  const computedAsync: typeof import('@vueuse/core')['computedAsync']\n  const computedEager: typeof import('@vueuse/core')['computedEager']\n  const computedInject: typeof import('@vueuse/core')['computedInject']\n  const computedWithControl: typeof import('@vueuse/core')['computedWithControl']\n  const controlledComputed: typeof import('@vueuse/core')['controlledComputed']\n  const controlledRef: typeof import('@vueuse/core')['controlledRef']\n  const createApp: typeof import('vue')['createApp']\n  const createEventHook: typeof import('@vueuse/core')['createEventHook']\n  const createGlobalState: typeof import('@vueuse/core')['createGlobalState']\n  const createInjectionState: typeof import('@vueuse/core')['createInjectionState']\n  const createReactiveFn: typeof import('@vueuse/core')['createReactiveFn']\n  const createReusableTemplate: typeof import('@vueuse/core')['createReusableTemplate']\n  const createSharedComposable: typeof import('@vueuse/core')['createSharedComposable']\n  const createTemplatePromise: typeof import('@vueuse/core')['createTemplatePromise']\n  const createUnrefFn: typeof import('@vueuse/core')['createUnrefFn']\n  const customRef: typeof import('vue')['customRef']\n  const debouncedRef: typeof import('@vueuse/core')['debouncedRef']\n  const debouncedWatch: typeof import('@vueuse/core')['debouncedWatch']\n  const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']\n  const defineComponent: typeof import('vue')['defineComponent']\n  const eagerComputed: typeof import('@vueuse/core')['eagerComputed']\n  const effectScope: typeof import('vue')['effectScope']\n  const extendRef: typeof import('@vueuse/core')['extendRef']\n  const getCurrentInstance: typeof import('vue')['getCurrentInstance']\n  const getCurrentScope: typeof import('vue')['getCurrentScope']\n  const h: typeof import('vue')['h']\n  const ignorableWatch: typeof import('@vueuse/core')['ignorableWatch']\n  const inject: typeof import('vue')['inject']\n  const isDefined: typeof import('@vueuse/core')['isDefined']\n  const isProxy: typeof import('vue')['isProxy']\n  const isReactive: typeof import('vue')['isReactive']\n  const isReadonly: typeof import('vue')['isReadonly']\n  const isRef: typeof import('vue')['isRef']\n  const makeDestructurable: typeof import('@vueuse/core')['makeDestructurable']\n  const markRaw: typeof import('vue')['markRaw']\n  const nextTick: typeof import('vue')['nextTick']\n  const onActivated: typeof import('vue')['onActivated']\n  const onBeforeMount: typeof import('vue')['onBeforeMount']\n  const onBeforeRouteLeave: typeof import('vue-router')['onBeforeRouteLeave']\n  const onBeforeRouteUpdate: typeof import('vue-router')['onBeforeRouteUpdate']\n  const onBeforeUnmount: typeof import('vue')['onBeforeUnmount']\n  const onBeforeUpdate: typeof import('vue')['onBeforeUpdate']\n  const onClickOutside: typeof import('@vueuse/core')['onClickOutside']\n  const onDeactivated: typeof import('vue')['onDeactivated']\n  const onErrorCaptured: typeof import('vue')['onErrorCaptured']\n  const onKeyStroke: typeof import('@vueuse/core')['onKeyStroke']\n  const onLongPress: typeof import('@vueuse/core')['onLongPress']\n  const onMounted: typeof import('vue')['onMounted']\n  const onRenderTracked: typeof import('vue')['onRenderTracked']\n  const onRenderTriggered: typeof import('vue')['onRenderTriggered']\n  const onScopeDispose: typeof import('vue')['onScopeDispose']\n  const onServerPrefetch: typeof import('vue')['onServerPrefetch']\n  const onStartTyping: typeof import('@vueuse/core')['onStartTyping']\n  const onUnmounted: typeof import('vue')['onUnmounted']\n  const onUpdated: typeof import('vue')['onUpdated']\n  const pausableWatch: typeof import('@vueuse/core')['pausableWatch']\n  const provide: typeof import('vue')['provide']\n  const reactify: typeof import('@vueuse/core')['reactify']\n  const reactifyObject: typeof import('@vueuse/core')['reactifyObject']\n  const reactive: typeof import('vue')['reactive']\n  const reactiveComputed: typeof import('@vueuse/core')['reactiveComputed']\n  const reactiveOmit: typeof import('@vueuse/core')['reactiveOmit']\n  const reactivePick: typeof import('@vueuse/core')['reactivePick']\n  const readonly: typeof import('vue')['readonly']\n  const ref: typeof import('vue')['ref']\n  const refAutoReset: typeof import('@vueuse/core')['refAutoReset']\n  const refDebounced: typeof import('@vueuse/core')['refDebounced']\n  const refDefault: typeof import('@vueuse/core')['refDefault']\n  const refThrottled: typeof import('@vueuse/core')['refThrottled']\n  const refWithControl: typeof import('@vueuse/core')['refWithControl']\n  const resolveComponent: typeof import('vue')['resolveComponent']\n  const resolveRef: typeof import('@vueuse/core')['resolveRef']\n  const resolveUnref: typeof import('@vueuse/core')['resolveUnref']\n  const shallowReactive: typeof import('vue')['shallowReactive']\n  const shallowReadonly: typeof import('vue')['shallowReadonly']\n  const shallowRef: typeof import('vue')['shallowRef']\n  const syncRef: typeof import('@vueuse/core')['syncRef']\n  const syncRefs: typeof import('@vueuse/core')['syncRefs']\n  const templateRef: typeof import('@vueuse/core')['templateRef']\n  const throttledRef: typeof import('@vueuse/core')['throttledRef']\n  const throttledWatch: typeof import('@vueuse/core')['throttledWatch']\n  const toRaw: typeof import('vue')['toRaw']\n  const toReactive: typeof import('@vueuse/core')['toReactive']\n  const toRef: typeof import('vue')['toRef']\n  const toRefs: typeof import('vue')['toRefs']\n  const toValue: typeof import('vue')['toValue']\n  const triggerRef: typeof import('vue')['triggerRef']\n  const tryOnBeforeMount: typeof import('@vueuse/core')['tryOnBeforeMount']\n  const tryOnBeforeUnmount: typeof import('@vueuse/core')['tryOnBeforeUnmount']\n  const tryOnMounted: typeof import('@vueuse/core')['tryOnMounted']\n  const tryOnScopeDispose: typeof import('@vueuse/core')['tryOnScopeDispose']\n  const tryOnUnmounted: typeof import('@vueuse/core')['tryOnUnmounted']\n  const unref: typeof import('vue')['unref']\n  const unrefElement: typeof import('@vueuse/core')['unrefElement']\n  const until: typeof import('@vueuse/core')['until']\n  const useActiveElement: typeof import('@vueuse/core')['useActiveElement']\n  const useAnimate: typeof import('@vueuse/core')['useAnimate']\n  const useArrayDifference: typeof import('@vueuse/core')['useArrayDifference']\n  const useArrayEvery: typeof import('@vueuse/core')['useArrayEvery']\n  const useArrayFilter: typeof import('@vueuse/core')['useArrayFilter']\n  const useArrayFind: typeof import('@vueuse/core')['useArrayFind']\n  const useArrayFindIndex: typeof import('@vueuse/core')['useArrayFindIndex']\n  const useArrayFindLast: typeof import('@vueuse/core')['useArrayFindLast']\n  const useArrayIncludes: typeof import('@vueuse/core')['useArrayIncludes']\n  const useArrayJoin: typeof import('@vueuse/core')['useArrayJoin']\n  const useArrayMap: typeof import('@vueuse/core')['useArrayMap']\n  const useArrayReduce: typeof import('@vueuse/core')['useArrayReduce']\n  const useArraySome: typeof import('@vueuse/core')['useArraySome']\n  const useArrayUnique: typeof import('@vueuse/core')['useArrayUnique']\n  const useAsyncQueue: typeof import('@vueuse/core')['useAsyncQueue']\n  const useAsyncState: typeof import('@vueuse/core')['useAsyncState']\n  const useAttrs: typeof import('vue')['useAttrs']\n  const useBase64: typeof import('@vueuse/core')['useBase64']\n  const useBattery: typeof import('@vueuse/core')['useBattery']\n  const useBluetooth: typeof import('@vueuse/core')['useBluetooth']\n  const useBreakpoints: typeof import('@vueuse/core')['useBreakpoints']\n  const useBroadcastChannel: typeof import('@vueuse/core')['useBroadcastChannel']\n  const useBrowserLocation: typeof import('@vueuse/core')['useBrowserLocation']\n  const useCached: typeof import('@vueuse/core')['useCached']\n  const useClipboard: typeof import('@vueuse/core')['useClipboard']\n  const useCloned: typeof import('@vueuse/core')['useCloned']\n  const useColorMode: typeof import('@vueuse/core')['useColorMode']\n  const useConfirmDialog: typeof import('@vueuse/core')['useConfirmDialog']\n  const useCounter: typeof import('@vueuse/core')['useCounter']\n  const useCssModule: typeof import('vue')['useCssModule']\n  const useCssVar: typeof import('@vueuse/core')['useCssVar']\n  const useCssVars: typeof import('vue')['useCssVars']\n  const useCurrentElement: typeof import('@vueuse/core')['useCurrentElement']\n  const useCycleList: typeof import('@vueuse/core')['useCycleList']\n  const useDark: typeof import('@vueuse/core')['useDark']\n  const useDateFormat: typeof import('@vueuse/core')['useDateFormat']\n  const useDebounce: typeof import('@vueuse/core')['useDebounce']\n  const useDebounceFn: typeof import('@vueuse/core')['useDebounceFn']\n  const useDebouncedRefHistory: typeof import('@vueuse/core')['useDebouncedRefHistory']\n  const useDeviceMotion: typeof import('@vueuse/core')['useDeviceMotion']\n  const useDeviceOrientation: typeof import('@vueuse/core')['useDeviceOrientation']\n  const useDevicePixelRatio: typeof import('@vueuse/core')['useDevicePixelRatio']\n  const useDevicesList: typeof import('@vueuse/core')['useDevicesList']\n  const useDialog: typeof import('naive-ui')['useDialog']\n  const useDisplayMedia: typeof import('@vueuse/core')['useDisplayMedia']\n  const useDocumentVisibility: typeof import('@vueuse/core')['useDocumentVisibility']\n  const useDraggable: typeof import('@vueuse/core')['useDraggable']\n  const useDropZone: typeof import('@vueuse/core')['useDropZone']\n  const useElementBounding: typeof import('@vueuse/core')['useElementBounding']\n  const useElementByPoint: typeof import('@vueuse/core')['useElementByPoint']\n  const useElementHover: typeof import('@vueuse/core')['useElementHover']\n  const useElementSize: typeof import('@vueuse/core')['useElementSize']\n  const useElementVisibility: typeof import('@vueuse/core')['useElementVisibility']\n  const useEventBus: typeof import('@vueuse/core')['useEventBus']\n  const useEventListener: typeof import('@vueuse/core')['useEventListener']\n  const useEventSource: typeof import('@vueuse/core')['useEventSource']\n  const useEyeDropper: typeof import('@vueuse/core')['useEyeDropper']\n  const useFavicon: typeof import('@vueuse/core')['useFavicon']\n  const useFetch: typeof import('@vueuse/core')['useFetch']\n  const useFileDialog: typeof import('@vueuse/core')['useFileDialog']\n  const useFileSystemAccess: typeof import('@vueuse/core')['useFileSystemAccess']\n  const useFocus: typeof import('@vueuse/core')['useFocus']\n  const useFocusWithin: typeof import('@vueuse/core')['useFocusWithin']\n  const useFps: typeof import('@vueuse/core')['useFps']\n  const useFullscreen: typeof import('@vueuse/core')['useFullscreen']\n  const useGamepad: typeof import('@vueuse/core')['useGamepad']\n  const useGeolocation: typeof import('@vueuse/core')['useGeolocation']\n  const useI18n: typeof import('vue-i18n')['useI18n']\n  const useIdle: typeof import('@vueuse/core')['useIdle']\n  const useImage: typeof import('@vueuse/core')['useImage']\n  const useInfiniteScroll: typeof import('@vueuse/core')['useInfiniteScroll']\n  const useIntersectionObserver: typeof import('@vueuse/core')['useIntersectionObserver']\n  const useInterval: typeof import('@vueuse/core')['useInterval']\n  const useIntervalFn: typeof import('@vueuse/core')['useIntervalFn']\n  const useKeyModifier: typeof import('@vueuse/core')['useKeyModifier']\n  const useLastChanged: typeof import('@vueuse/core')['useLastChanged']\n  const useLink: typeof import('vue-router')['useLink']\n  const useLoadingBar: typeof import('naive-ui')['useLoadingBar']\n  const useLocalStorage: typeof import('@vueuse/core')['useLocalStorage']\n  const useMagicKeys: typeof import('@vueuse/core')['useMagicKeys']\n  const useManualRefHistory: typeof import('@vueuse/core')['useManualRefHistory']\n  const useMediaControls: typeof import('@vueuse/core')['useMediaControls']\n  const useMediaQuery: typeof import('@vueuse/core')['useMediaQuery']\n  const useMemoize: typeof import('@vueuse/core')['useMemoize']\n  const useMemory: typeof import('@vueuse/core')['useMemory']\n  const useMessage: typeof import('naive-ui')['useMessage']\n  const useMounted: typeof import('@vueuse/core')['useMounted']\n  const useMouse: typeof import('@vueuse/core')['useMouse']\n  const useMouseInElement: typeof import('@vueuse/core')['useMouseInElement']\n  const useMousePressed: typeof import('@vueuse/core')['useMousePressed']\n  const useMutationObserver: typeof import('@vueuse/core')['useMutationObserver']\n  const useNavigatorLanguage: typeof import('@vueuse/core')['useNavigatorLanguage']\n  const useNetwork: typeof import('@vueuse/core')['useNetwork']\n  const useNotification: typeof import('naive-ui')['useNotification']\n  const useNow: typeof import('@vueuse/core')['useNow']\n  const useObjectUrl: typeof import('@vueuse/core')['useObjectUrl']\n  const useOffsetPagination: typeof import('@vueuse/core')['useOffsetPagination']\n  const useOnline: typeof import('@vueuse/core')['useOnline']\n  const usePageLeave: typeof import('@vueuse/core')['usePageLeave']\n  const useParallax: typeof import('@vueuse/core')['useParallax']\n  const useParentElement: typeof import('@vueuse/core')['useParentElement']\n  const usePerformanceObserver: typeof import('@vueuse/core')['usePerformanceObserver']\n  const usePermission: typeof import('@vueuse/core')['usePermission']\n  const usePointer: typeof import('@vueuse/core')['usePointer']\n  const usePointerLock: typeof import('@vueuse/core')['usePointerLock']\n  const usePointerSwipe: typeof import('@vueuse/core')['usePointerSwipe']\n  const usePreferredColorScheme: typeof import('@vueuse/core')['usePreferredColorScheme']\n  const usePreferredContrast: typeof import('@vueuse/core')['usePreferredContrast']\n  const usePreferredDark: typeof import('@vueuse/core')['usePreferredDark']\n  const usePreferredLanguages: typeof import('@vueuse/core')['usePreferredLanguages']\n  const usePreferredReducedMotion: typeof import('@vueuse/core')['usePreferredReducedMotion']\n  const usePrevious: typeof import('@vueuse/core')['usePrevious']\n  const useRafFn: typeof import('@vueuse/core')['useRafFn']\n  const useRefHistory: typeof import('@vueuse/core')['useRefHistory']\n  const useResizeObserver: typeof import('@vueuse/core')['useResizeObserver']\n  const useRoute: typeof import('vue-router')['useRoute']\n  const useRouter: typeof import('vue-router')['useRouter']\n  const useScreenOrientation: typeof import('@vueuse/core')['useScreenOrientation']\n  const useScreenSafeArea: typeof import('@vueuse/core')['useScreenSafeArea']\n  const useScriptTag: typeof import('@vueuse/core')['useScriptTag']\n  const useScroll: typeof import('@vueuse/core')['useScroll']\n  const useScrollLock: typeof import('@vueuse/core')['useScrollLock']\n  const useSessionStorage: typeof import('@vueuse/core')['useSessionStorage']\n  const useShare: typeof import('@vueuse/core')['useShare']\n  const useSlots: typeof import('vue')['useSlots']\n  const useSorted: typeof import('@vueuse/core')['useSorted']\n  const useSpeechRecognition: typeof import('@vueuse/core')['useSpeechRecognition']\n  const useSpeechSynthesis: typeof import('@vueuse/core')['useSpeechSynthesis']\n  const useStepper: typeof import('@vueuse/core')['useStepper']\n  const useStorage: typeof import('@vueuse/core')['useStorage']\n  const useStorageAsync: typeof import('@vueuse/core')['useStorageAsync']\n  const useStyleTag: typeof import('@vueuse/core')['useStyleTag']\n  const useSupported: typeof import('@vueuse/core')['useSupported']\n  const useSwipe: typeof import('@vueuse/core')['useSwipe']\n  const useTemplateRefsList: typeof import('@vueuse/core')['useTemplateRefsList']\n  const useTextDirection: typeof import('@vueuse/core')['useTextDirection']\n  const useTextSelection: typeof import('@vueuse/core')['useTextSelection']\n  const useTextareaAutosize: typeof import('@vueuse/core')['useTextareaAutosize']\n  const useThrottle: typeof import('@vueuse/core')['useThrottle']\n  const useThrottleFn: typeof import('@vueuse/core')['useThrottleFn']\n  const useThrottledRefHistory: typeof import('@vueuse/core')['useThrottledRefHistory']\n  const useTimeAgo: typeof import('@vueuse/core')['useTimeAgo']\n  const useTimeout: typeof import('@vueuse/core')['useTimeout']\n  const useTimeoutFn: typeof import('@vueuse/core')['useTimeoutFn']\n  const useTimeoutPoll: typeof import('@vueuse/core')['useTimeoutPoll']\n  const useTimestamp: typeof import('@vueuse/core')['useTimestamp']\n  const useTitle: typeof import('@vueuse/core')['useTitle']\n  const useToNumber: typeof import('@vueuse/core')['useToNumber']\n  const useToString: typeof import('@vueuse/core')['useToString']\n  const useToggle: typeof import('@vueuse/core')['useToggle']\n  const useTransition: typeof import('@vueuse/core')['useTransition']\n  const useUrlSearchParams: typeof import('@vueuse/core')['useUrlSearchParams']\n  const useUserMedia: typeof import('@vueuse/core')['useUserMedia']\n  const useVModel: typeof import('@vueuse/core')['useVModel']\n  const useVModels: typeof import('@vueuse/core')['useVModels']\n  const useVibrate: typeof import('@vueuse/core')['useVibrate']\n  const useVirtualList: typeof import('@vueuse/core')['useVirtualList']\n  const useWakeLock: typeof import('@vueuse/core')['useWakeLock']\n  const useWebNotification: typeof import('@vueuse/core')['useWebNotification']\n  const useWebSocket: typeof import('@vueuse/core')['useWebSocket']\n  const useWebWorker: typeof import('@vueuse/core')['useWebWorker']\n  const useWebWorkerFn: typeof import('@vueuse/core')['useWebWorkerFn']\n  const useWindowFocus: typeof import('@vueuse/core')['useWindowFocus']\n  const useWindowScroll: typeof import('@vueuse/core')['useWindowScroll']\n  const useWindowSize: typeof import('@vueuse/core')['useWindowSize']\n  const watch: typeof import('vue')['watch']\n  const watchArray: typeof import('@vueuse/core')['watchArray']\n  const watchAtMost: typeof import('@vueuse/core')['watchAtMost']\n  const watchDebounced: typeof import('@vueuse/core')['watchDebounced']\n  const watchDeep: typeof import('@vueuse/core')['watchDeep']\n  const watchEffect: typeof import('vue')['watchEffect']\n  const watchIgnorable: typeof import('@vueuse/core')['watchIgnorable']\n  const watchImmediate: typeof import('@vueuse/core')['watchImmediate']\n  const watchOnce: typeof import('@vueuse/core')['watchOnce']\n  const watchPausable: typeof import('@vueuse/core')['watchPausable']\n  const watchPostEffect: typeof import('vue')['watchPostEffect']\n  const watchSyncEffect: typeof import('vue')['watchSyncEffect']\n  const watchThrottled: typeof import('@vueuse/core')['watchThrottled']\n  const watchTriggerable: typeof import('@vueuse/core')['watchTriggerable']\n  const watchWithFilter: typeof import('@vueuse/core')['watchWithFilter']\n  const whenever: typeof import('@vueuse/core')['whenever']\n}\n// for type re-export\ndeclare global {\n  // @ts-ignore\n  export type { Component, ComponentPublicInstance, ComputedRef, InjectionKey, PropType, Ref, VNode } from 'vue'\n}\n// for vue template auto import\nimport { UnwrapRef } from 'vue'\ndeclare module 'vue' {\n  interface ComponentCustomProperties {\n    readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>\n    readonly asyncComputed: UnwrapRef<typeof import('@vueuse/core')['asyncComputed']>\n    readonly autoResetRef: UnwrapRef<typeof import('@vueuse/core')['autoResetRef']>\n    readonly computed: UnwrapRef<typeof import('vue')['computed']>\n    readonly computedAsync: UnwrapRef<typeof import('@vueuse/core')['computedAsync']>\n    readonly computedEager: UnwrapRef<typeof import('@vueuse/core')['computedEager']>\n    readonly computedInject: UnwrapRef<typeof import('@vueuse/core')['computedInject']>\n    readonly computedWithControl: UnwrapRef<typeof import('@vueuse/core')['computedWithControl']>\n    readonly controlledComputed: UnwrapRef<typeof import('@vueuse/core')['controlledComputed']>\n    readonly controlledRef: UnwrapRef<typeof import('@vueuse/core')['controlledRef']>\n    readonly createApp: UnwrapRef<typeof import('vue')['createApp']>\n    readonly createEventHook: UnwrapRef<typeof import('@vueuse/core')['createEventHook']>\n    readonly createGlobalState: UnwrapRef<typeof import('@vueuse/core')['createGlobalState']>\n    readonly createInjectionState: UnwrapRef<typeof import('@vueuse/core')['createInjectionState']>\n    readonly createReactiveFn: UnwrapRef<typeof import('@vueuse/core')['createReactiveFn']>\n    readonly createReusableTemplate: UnwrapRef<typeof import('@vueuse/core')['createReusableTemplate']>\n    readonly createSharedComposable: UnwrapRef<typeof import('@vueuse/core')['createSharedComposable']>\n    readonly createTemplatePromise: UnwrapRef<typeof import('@vueuse/core')['createTemplatePromise']>\n    readonly createUnrefFn: UnwrapRef<typeof import('@vueuse/core')['createUnrefFn']>\n    readonly customRef: UnwrapRef<typeof import('vue')['customRef']>\n    readonly debouncedRef: UnwrapRef<typeof import('@vueuse/core')['debouncedRef']>\n    readonly debouncedWatch: UnwrapRef<typeof import('@vueuse/core')['debouncedWatch']>\n    readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']>\n    readonly defineComponent: UnwrapRef<typeof import('vue')['defineComponent']>\n    readonly eagerComputed: UnwrapRef<typeof import('@vueuse/core')['eagerComputed']>\n    readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']>\n    readonly extendRef: UnwrapRef<typeof import('@vueuse/core')['extendRef']>\n    readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>\n    readonly getCurrentScope: UnwrapRef<typeof import('vue')['getCurrentScope']>\n    readonly h: UnwrapRef<typeof import('vue')['h']>\n    readonly ignorableWatch: UnwrapRef<typeof import('@vueuse/core')['ignorableWatch']>\n    readonly inject: UnwrapRef<typeof import('vue')['inject']>\n    readonly isDefined: UnwrapRef<typeof import('@vueuse/core')['isDefined']>\n    readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>\n    readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>\n    readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']>\n    readonly isRef: UnwrapRef<typeof import('vue')['isRef']>\n    readonly makeDestructurable: UnwrapRef<typeof import('@vueuse/core')['makeDestructurable']>\n    readonly markRaw: UnwrapRef<typeof import('vue')['markRaw']>\n    readonly nextTick: UnwrapRef<typeof import('vue')['nextTick']>\n    readonly onActivated: UnwrapRef<typeof import('vue')['onActivated']>\n    readonly onBeforeMount: UnwrapRef<typeof import('vue')['onBeforeMount']>\n    readonly onBeforeRouteLeave: UnwrapRef<typeof import('vue-router')['onBeforeRouteLeave']>\n    readonly onBeforeRouteUpdate: UnwrapRef<typeof import('vue-router')['onBeforeRouteUpdate']>\n    readonly onBeforeUnmount: UnwrapRef<typeof import('vue')['onBeforeUnmount']>\n    readonly onBeforeUpdate: UnwrapRef<typeof import('vue')['onBeforeUpdate']>\n    readonly onClickOutside: UnwrapRef<typeof import('@vueuse/core')['onClickOutside']>\n    readonly onDeactivated: UnwrapRef<typeof import('vue')['onDeactivated']>\n    readonly onErrorCaptured: UnwrapRef<typeof import('vue')['onErrorCaptured']>\n    readonly onKeyStroke: UnwrapRef<typeof import('@vueuse/core')['onKeyStroke']>\n    readonly onLongPress: UnwrapRef<typeof import('@vueuse/core')['onLongPress']>\n    readonly onMounted: UnwrapRef<typeof import('vue')['onMounted']>\n    readonly onRenderTracked: UnwrapRef<typeof import('vue')['onRenderTracked']>\n    readonly onRenderTriggered: UnwrapRef<typeof import('vue')['onRenderTriggered']>\n    readonly onScopeDispose: UnwrapRef<typeof import('vue')['onScopeDispose']>\n    readonly onServerPrefetch: UnwrapRef<typeof import('vue')['onServerPrefetch']>\n    readonly onStartTyping: UnwrapRef<typeof import('@vueuse/core')['onStartTyping']>\n    readonly onUnmounted: UnwrapRef<typeof import('vue')['onUnmounted']>\n    readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>\n    readonly pausableWatch: UnwrapRef<typeof import('@vueuse/core')['pausableWatch']>\n    readonly provide: UnwrapRef<typeof import('vue')['provide']>\n    readonly reactify: UnwrapRef<typeof import('@vueuse/core')['reactify']>\n    readonly reactifyObject: UnwrapRef<typeof import('@vueuse/core')['reactifyObject']>\n    readonly reactive: UnwrapRef<typeof import('vue')['reactive']>\n    readonly reactiveComputed: UnwrapRef<typeof import('@vueuse/core')['reactiveComputed']>\n    readonly reactiveOmit: UnwrapRef<typeof import('@vueuse/core')['reactiveOmit']>\n    readonly reactivePick: UnwrapRef<typeof import('@vueuse/core')['reactivePick']>\n    readonly readonly: UnwrapRef<typeof import('vue')['readonly']>\n    readonly ref: UnwrapRef<typeof import('vue')['ref']>\n    readonly refAutoReset: UnwrapRef<typeof import('@vueuse/core')['refAutoReset']>\n    readonly refDebounced: UnwrapRef<typeof import('@vueuse/core')['refDebounced']>\n    readonly refDefault: UnwrapRef<typeof import('@vueuse/core')['refDefault']>\n    readonly refThrottled: UnwrapRef<typeof import('@vueuse/core')['refThrottled']>\n    readonly refWithControl: UnwrapRef<typeof import('@vueuse/core')['refWithControl']>\n    readonly resolveComponent: UnwrapRef<typeof import('vue')['resolveComponent']>\n    readonly resolveRef: UnwrapRef<typeof import('@vueuse/core')['resolveRef']>\n    readonly resolveUnref: UnwrapRef<typeof import('@vueuse/core')['resolveUnref']>\n    readonly shallowReactive: UnwrapRef<typeof import('vue')['shallowReactive']>\n    readonly shallowReadonly: UnwrapRef<typeof import('vue')['shallowReadonly']>\n    readonly shallowRef: UnwrapRef<typeof import('vue')['shallowRef']>\n    readonly syncRef: UnwrapRef<typeof import('@vueuse/core')['syncRef']>\n    readonly syncRefs: UnwrapRef<typeof import('@vueuse/core')['syncRefs']>\n    readonly templateRef: UnwrapRef<typeof import('@vueuse/core')['templateRef']>\n    readonly throttledRef: UnwrapRef<typeof import('@vueuse/core')['throttledRef']>\n    readonly throttledWatch: UnwrapRef<typeof import('@vueuse/core')['throttledWatch']>\n    readonly toRaw: UnwrapRef<typeof import('vue')['toRaw']>\n    readonly toReactive: UnwrapRef<typeof import('@vueuse/core')['toReactive']>\n    readonly toRef: UnwrapRef<typeof import('vue')['toRef']>\n    readonly toRefs: UnwrapRef<typeof import('vue')['toRefs']>\n    readonly toValue: UnwrapRef<typeof import('vue')['toValue']>\n    readonly triggerRef: UnwrapRef<typeof import('vue')['triggerRef']>\n    readonly tryOnBeforeMount: UnwrapRef<typeof import('@vueuse/core')['tryOnBeforeMount']>\n    readonly tryOnBeforeUnmount: UnwrapRef<typeof import('@vueuse/core')['tryOnBeforeUnmount']>\n    readonly tryOnMounted: UnwrapRef<typeof import('@vueuse/core')['tryOnMounted']>\n    readonly tryOnScopeDispose: UnwrapRef<typeof import('@vueuse/core')['tryOnScopeDispose']>\n    readonly tryOnUnmounted: UnwrapRef<typeof import('@vueuse/core')['tryOnUnmounted']>\n    readonly unref: UnwrapRef<typeof import('vue')['unref']>\n    readonly unrefElement: UnwrapRef<typeof import('@vueuse/core')['unrefElement']>\n    readonly until: UnwrapRef<typeof import('@vueuse/core')['until']>\n    readonly useActiveElement: UnwrapRef<typeof import('@vueuse/core')['useActiveElement']>\n    readonly useAnimate: UnwrapRef<typeof import('@vueuse/core')['useAnimate']>\n    readonly useArrayDifference: UnwrapRef<typeof import('@vueuse/core')['useArrayDifference']>\n    readonly useArrayEvery: UnwrapRef<typeof import('@vueuse/core')['useArrayEvery']>\n    readonly useArrayFilter: UnwrapRef<typeof import('@vueuse/core')['useArrayFilter']>\n    readonly useArrayFind: UnwrapRef<typeof import('@vueuse/core')['useArrayFind']>\n    readonly useArrayFindIndex: UnwrapRef<typeof import('@vueuse/core')['useArrayFindIndex']>\n    readonly useArrayFindLast: UnwrapRef<typeof import('@vueuse/core')['useArrayFindLast']>\n    readonly useArrayIncludes: UnwrapRef<typeof import('@vueuse/core')['useArrayIncludes']>\n    readonly useArrayJoin: UnwrapRef<typeof import('@vueuse/core')['useArrayJoin']>\n    readonly useArrayMap: UnwrapRef<typeof import('@vueuse/core')['useArrayMap']>\n    readonly useArrayReduce: UnwrapRef<typeof import('@vueuse/core')['useArrayReduce']>\n    readonly useArraySome: UnwrapRef<typeof import('@vueuse/core')['useArraySome']>\n    readonly useArrayUnique: UnwrapRef<typeof import('@vueuse/core')['useArrayUnique']>\n    readonly useAsyncQueue: UnwrapRef<typeof import('@vueuse/core')['useAsyncQueue']>\n    readonly useAsyncState: UnwrapRef<typeof import('@vueuse/core')['useAsyncState']>\n    readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']>\n    readonly useBase64: UnwrapRef<typeof import('@vueuse/core')['useBase64']>\n    readonly useBattery: UnwrapRef<typeof import('@vueuse/core')['useBattery']>\n    readonly useBluetooth: UnwrapRef<typeof import('@vueuse/core')['useBluetooth']>\n    readonly useBreakpoints: UnwrapRef<typeof import('@vueuse/core')['useBreakpoints']>\n    readonly useBroadcastChannel: UnwrapRef<typeof import('@vueuse/core')['useBroadcastChannel']>\n    readonly useBrowserLocation: UnwrapRef<typeof import('@vueuse/core')['useBrowserLocation']>\n    readonly useCached: UnwrapRef<typeof import('@vueuse/core')['useCached']>\n    readonly useClipboard: UnwrapRef<typeof import('@vueuse/core')['useClipboard']>\n    readonly useCloned: UnwrapRef<typeof import('@vueuse/core')['useCloned']>\n    readonly useColorMode: UnwrapRef<typeof import('@vueuse/core')['useColorMode']>\n    readonly useConfirmDialog: UnwrapRef<typeof import('@vueuse/core')['useConfirmDialog']>\n    readonly useCounter: UnwrapRef<typeof import('@vueuse/core')['useCounter']>\n    readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']>\n    readonly useCssVar: UnwrapRef<typeof import('@vueuse/core')['useCssVar']>\n    readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']>\n    readonly useCurrentElement: UnwrapRef<typeof import('@vueuse/core')['useCurrentElement']>\n    readonly useCycleList: UnwrapRef<typeof import('@vueuse/core')['useCycleList']>\n    readonly useDark: UnwrapRef<typeof import('@vueuse/core')['useDark']>\n    readonly useDateFormat: UnwrapRef<typeof import('@vueuse/core')['useDateFormat']>\n    readonly useDebounce: UnwrapRef<typeof import('@vueuse/core')['useDebounce']>\n    readonly useDebounceFn: UnwrapRef<typeof import('@vueuse/core')['useDebounceFn']>\n    readonly useDebouncedRefHistory: UnwrapRef<typeof import('@vueuse/core')['useDebouncedRefHistory']>\n    readonly useDeviceMotion: UnwrapRef<typeof import('@vueuse/core')['useDeviceMotion']>\n    readonly useDeviceOrientation: UnwrapRef<typeof import('@vueuse/core')['useDeviceOrientation']>\n    readonly useDevicePixelRatio: UnwrapRef<typeof import('@vueuse/core')['useDevicePixelRatio']>\n    readonly useDevicesList: UnwrapRef<typeof import('@vueuse/core')['useDevicesList']>\n    readonly useDialog: UnwrapRef<typeof import('naive-ui')['useDialog']>\n    readonly useDisplayMedia: UnwrapRef<typeof import('@vueuse/core')['useDisplayMedia']>\n    readonly useDocumentVisibility: UnwrapRef<typeof import('@vueuse/core')['useDocumentVisibility']>\n    readonly useDraggable: UnwrapRef<typeof import('@vueuse/core')['useDraggable']>\n    readonly useDropZone: UnwrapRef<typeof import('@vueuse/core')['useDropZone']>\n    readonly useElementBounding: UnwrapRef<typeof import('@vueuse/core')['useElementBounding']>\n    readonly useElementByPoint: UnwrapRef<typeof import('@vueuse/core')['useElementByPoint']>\n    readonly useElementHover: UnwrapRef<typeof import('@vueuse/core')['useElementHover']>\n    readonly useElementSize: UnwrapRef<typeof import('@vueuse/core')['useElementSize']>\n    readonly useElementVisibility: UnwrapRef<typeof import('@vueuse/core')['useElementVisibility']>\n    readonly useEventBus: UnwrapRef<typeof import('@vueuse/core')['useEventBus']>\n    readonly useEventListener: UnwrapRef<typeof import('@vueuse/core')['useEventListener']>\n    readonly useEventSource: UnwrapRef<typeof import('@vueuse/core')['useEventSource']>\n    readonly useEyeDropper: UnwrapRef<typeof import('@vueuse/core')['useEyeDropper']>\n    readonly useFavicon: UnwrapRef<typeof import('@vueuse/core')['useFavicon']>\n    readonly useFetch: UnwrapRef<typeof import('@vueuse/core')['useFetch']>\n    readonly useFileDialog: UnwrapRef<typeof import('@vueuse/core')['useFileDialog']>\n    readonly useFileSystemAccess: UnwrapRef<typeof import('@vueuse/core')['useFileSystemAccess']>\n    readonly useFocus: UnwrapRef<typeof import('@vueuse/core')['useFocus']>\n    readonly useFocusWithin: UnwrapRef<typeof import('@vueuse/core')['useFocusWithin']>\n    readonly useFps: UnwrapRef<typeof import('@vueuse/core')['useFps']>\n    readonly useFullscreen: UnwrapRef<typeof import('@vueuse/core')['useFullscreen']>\n    readonly useGamepad: UnwrapRef<typeof import('@vueuse/core')['useGamepad']>\n    readonly useGeolocation: UnwrapRef<typeof import('@vueuse/core')['useGeolocation']>\n    readonly useI18n: UnwrapRef<typeof import('vue-i18n')['useI18n']>\n    readonly useIdle: UnwrapRef<typeof import('@vueuse/core')['useIdle']>\n    readonly useImage: UnwrapRef<typeof import('@vueuse/core')['useImage']>\n    readonly useInfiniteScroll: UnwrapRef<typeof import('@vueuse/core')['useInfiniteScroll']>\n    readonly useIntersectionObserver: UnwrapRef<typeof import('@vueuse/core')['useIntersectionObserver']>\n    readonly useInterval: UnwrapRef<typeof import('@vueuse/core')['useInterval']>\n    readonly useIntervalFn: UnwrapRef<typeof import('@vueuse/core')['useIntervalFn']>\n    readonly useKeyModifier: UnwrapRef<typeof import('@vueuse/core')['useKeyModifier']>\n    readonly useLastChanged: UnwrapRef<typeof import('@vueuse/core')['useLastChanged']>\n    readonly useLink: UnwrapRef<typeof import('vue-router')['useLink']>\n    readonly useLoadingBar: UnwrapRef<typeof import('naive-ui')['useLoadingBar']>\n    readonly useLocalStorage: UnwrapRef<typeof import('@vueuse/core')['useLocalStorage']>\n    readonly useMagicKeys: UnwrapRef<typeof import('@vueuse/core')['useMagicKeys']>\n    readonly useManualRefHistory: UnwrapRef<typeof import('@vueuse/core')['useManualRefHistory']>\n    readonly useMediaControls: UnwrapRef<typeof import('@vueuse/core')['useMediaControls']>\n    readonly useMediaQuery: UnwrapRef<typeof import('@vueuse/core')['useMediaQuery']>\n    readonly useMemoize: UnwrapRef<typeof import('@vueuse/core')['useMemoize']>\n    readonly useMemory: UnwrapRef<typeof import('@vueuse/core')['useMemory']>\n    readonly useMessage: UnwrapRef<typeof import('naive-ui')['useMessage']>\n    readonly useMounted: UnwrapRef<typeof import('@vueuse/core')['useMounted']>\n    readonly useMouse: UnwrapRef<typeof import('@vueuse/core')['useMouse']>\n    readonly useMouseInElement: UnwrapRef<typeof import('@vueuse/core')['useMouseInElement']>\n    readonly useMousePressed: UnwrapRef<typeof import('@vueuse/core')['useMousePressed']>\n    readonly useMutationObserver: UnwrapRef<typeof import('@vueuse/core')['useMutationObserver']>\n    readonly useNavigatorLanguage: UnwrapRef<typeof import('@vueuse/core')['useNavigatorLanguage']>\n    readonly useNetwork: UnwrapRef<typeof import('@vueuse/core')['useNetwork']>\n    readonly useNotification: UnwrapRef<typeof import('naive-ui')['useNotification']>\n    readonly useNow: UnwrapRef<typeof import('@vueuse/core')['useNow']>\n    readonly useObjectUrl: UnwrapRef<typeof import('@vueuse/core')['useObjectUrl']>\n    readonly useOffsetPagination: UnwrapRef<typeof import('@vueuse/core')['useOffsetPagination']>\n    readonly useOnline: UnwrapRef<typeof import('@vueuse/core')['useOnline']>\n    readonly usePageLeave: UnwrapRef<typeof import('@vueuse/core')['usePageLeave']>\n    readonly useParallax: UnwrapRef<typeof import('@vueuse/core')['useParallax']>\n    readonly useParentElement: UnwrapRef<typeof import('@vueuse/core')['useParentElement']>\n    readonly usePerformanceObserver: UnwrapRef<typeof import('@vueuse/core')['usePerformanceObserver']>\n    readonly usePermission: UnwrapRef<typeof import('@vueuse/core')['usePermission']>\n    readonly usePointer: UnwrapRef<typeof import('@vueuse/core')['usePointer']>\n    readonly usePointerLock: UnwrapRef<typeof import('@vueuse/core')['usePointerLock']>\n    readonly usePointerSwipe: UnwrapRef<typeof import('@vueuse/core')['usePointerSwipe']>\n    readonly usePreferredColorScheme: UnwrapRef<typeof import('@vueuse/core')['usePreferredColorScheme']>\n    readonly usePreferredContrast: UnwrapRef<typeof import('@vueuse/core')['usePreferredContrast']>\n    readonly usePreferredDark: UnwrapRef<typeof import('@vueuse/core')['usePreferredDark']>\n    readonly usePreferredLanguages: UnwrapRef<typeof import('@vueuse/core')['usePreferredLanguages']>\n    readonly usePreferredReducedMotion: UnwrapRef<typeof import('@vueuse/core')['usePreferredReducedMotion']>\n    readonly usePrevious: UnwrapRef<typeof import('@vueuse/core')['usePrevious']>\n    readonly useRafFn: UnwrapRef<typeof import('@vueuse/core')['useRafFn']>\n    readonly useRefHistory: UnwrapRef<typeof import('@vueuse/core')['useRefHistory']>\n    readonly useResizeObserver: UnwrapRef<typeof import('@vueuse/core')['useResizeObserver']>\n    readonly useRoute: UnwrapRef<typeof import('vue-router')['useRoute']>\n    readonly useRouter: UnwrapRef<typeof import('vue-router')['useRouter']>\n    readonly useScreenOrientation: UnwrapRef<typeof import('@vueuse/core')['useScreenOrientation']>\n    readonly useScreenSafeArea: UnwrapRef<typeof import('@vueuse/core')['useScreenSafeArea']>\n    readonly useScriptTag: UnwrapRef<typeof import('@vueuse/core')['useScriptTag']>\n    readonly useScroll: UnwrapRef<typeof import('@vueuse/core')['useScroll']>\n    readonly useScrollLock: UnwrapRef<typeof import('@vueuse/core')['useScrollLock']>\n    readonly useSessionStorage: UnwrapRef<typeof import('@vueuse/core')['useSessionStorage']>\n    readonly useShare: UnwrapRef<typeof import('@vueuse/core')['useShare']>\n    readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']>\n    readonly useSorted: UnwrapRef<typeof import('@vueuse/core')['useSorted']>\n    readonly useSpeechRecognition: UnwrapRef<typeof import('@vueuse/core')['useSpeechRecognition']>\n    readonly useSpeechSynthesis: UnwrapRef<typeof import('@vueuse/core')['useSpeechSynthesis']>\n    readonly useStepper: UnwrapRef<typeof import('@vueuse/core')['useStepper']>\n    readonly useStorage: UnwrapRef<typeof import('@vueuse/core')['useStorage']>\n    readonly useStorageAsync: UnwrapRef<typeof import('@vueuse/core')['useStorageAsync']>\n    readonly useStyleTag: UnwrapRef<typeof import('@vueuse/core')['useStyleTag']>\n    readonly useSupported: UnwrapRef<typeof import('@vueuse/core')['useSupported']>\n    readonly useSwipe: UnwrapRef<typeof import('@vueuse/core')['useSwipe']>\n    readonly useTemplateRefsList: UnwrapRef<typeof import('@vueuse/core')['useTemplateRefsList']>\n    readonly useTextDirection: UnwrapRef<typeof import('@vueuse/core')['useTextDirection']>\n    readonly useTextSelection: UnwrapRef<typeof import('@vueuse/core')['useTextSelection']>\n    readonly useTextareaAutosize: UnwrapRef<typeof import('@vueuse/core')['useTextareaAutosize']>\n    readonly useThrottle: UnwrapRef<typeof import('@vueuse/core')['useThrottle']>\n    readonly useThrottleFn: UnwrapRef<typeof import('@vueuse/core')['useThrottleFn']>\n    readonly useThrottledRefHistory: UnwrapRef<typeof import('@vueuse/core')['useThrottledRefHistory']>\n    readonly useTimeAgo: UnwrapRef<typeof import('@vueuse/core')['useTimeAgo']>\n    readonly useTimeout: UnwrapRef<typeof import('@vueuse/core')['useTimeout']>\n    readonly useTimeoutFn: UnwrapRef<typeof import('@vueuse/core')['useTimeoutFn']>\n    readonly useTimeoutPoll: UnwrapRef<typeof import('@vueuse/core')['useTimeoutPoll']>\n    readonly useTimestamp: UnwrapRef<typeof import('@vueuse/core')['useTimestamp']>\n    readonly useTitle: UnwrapRef<typeof import('@vueuse/core')['useTitle']>\n    readonly useToNumber: UnwrapRef<typeof import('@vueuse/core')['useToNumber']>\n    readonly useToString: UnwrapRef<typeof import('@vueuse/core')['useToString']>\n    readonly useToggle: UnwrapRef<typeof import('@vueuse/core')['useToggle']>\n    readonly useTransition: UnwrapRef<typeof import('@vueuse/core')['useTransition']>\n    readonly useUrlSearchParams: UnwrapRef<typeof import('@vueuse/core')['useUrlSearchParams']>\n    readonly useUserMedia: UnwrapRef<typeof import('@vueuse/core')['useUserMedia']>\n    readonly useVModel: UnwrapRef<typeof import('@vueuse/core')['useVModel']>\n    readonly useVModels: UnwrapRef<typeof import('@vueuse/core')['useVModels']>\n    readonly useVibrate: UnwrapRef<typeof import('@vueuse/core')['useVibrate']>\n    readonly useVirtualList: UnwrapRef<typeof import('@vueuse/core')['useVirtualList']>\n    readonly useWakeLock: UnwrapRef<typeof import('@vueuse/core')['useWakeLock']>\n    readonly useWebNotification: UnwrapRef<typeof import('@vueuse/core')['useWebNotification']>\n    readonly useWebSocket: UnwrapRef<typeof import('@vueuse/core')['useWebSocket']>\n    readonly useWebWorker: UnwrapRef<typeof import('@vueuse/core')['useWebWorker']>\n    readonly useWebWorkerFn: UnwrapRef<typeof import('@vueuse/core')['useWebWorkerFn']>\n    readonly useWindowFocus: UnwrapRef<typeof import('@vueuse/core')['useWindowFocus']>\n    readonly useWindowScroll: UnwrapRef<typeof import('@vueuse/core')['useWindowScroll']>\n    readonly useWindowSize: UnwrapRef<typeof import('@vueuse/core')['useWindowSize']>\n    readonly watch: UnwrapRef<typeof import('vue')['watch']>\n    readonly watchArray: UnwrapRef<typeof import('@vueuse/core')['watchArray']>\n    readonly watchAtMost: UnwrapRef<typeof import('@vueuse/core')['watchAtMost']>\n    readonly watchDebounced: UnwrapRef<typeof import('@vueuse/core')['watchDebounced']>\n    readonly watchDeep: UnwrapRef<typeof import('@vueuse/core')['watchDeep']>\n    readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']>\n    readonly watchIgnorable: UnwrapRef<typeof import('@vueuse/core')['watchIgnorable']>\n    readonly watchImmediate: UnwrapRef<typeof import('@vueuse/core')['watchImmediate']>\n    readonly watchOnce: UnwrapRef<typeof import('@vueuse/core')['watchOnce']>\n    readonly watchPausable: UnwrapRef<typeof import('@vueuse/core')['watchPausable']>\n    readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']>\n    readonly watchSyncEffect: UnwrapRef<typeof import('vue')['watchSyncEffect']>\n    readonly watchThrottled: UnwrapRef<typeof import('@vueuse/core')['watchThrottled']>\n    readonly watchTriggerable: UnwrapRef<typeof import('@vueuse/core')['watchTriggerable']>\n    readonly watchWithFilter: UnwrapRef<typeof import('@vueuse/core')['watchWithFilter']>\n    readonly whenever: UnwrapRef<typeof import('@vueuse/core')['whenever']>\n  }\n}\ndeclare module '@vue/runtime-core' {\n  interface ComponentCustomProperties {\n    readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>\n    readonly asyncComputed: UnwrapRef<typeof import('@vueuse/core')['asyncComputed']>\n    readonly autoResetRef: UnwrapRef<typeof import('@vueuse/core')['autoResetRef']>\n    readonly computed: UnwrapRef<typeof import('vue')['computed']>\n    readonly computedAsync: UnwrapRef<typeof import('@vueuse/core')['computedAsync']>\n    readonly computedEager: UnwrapRef<typeof import('@vueuse/core')['computedEager']>\n    readonly computedInject: UnwrapRef<typeof import('@vueuse/core')['computedInject']>\n    readonly computedWithControl: UnwrapRef<typeof import('@vueuse/core')['computedWithControl']>\n    readonly controlledComputed: UnwrapRef<typeof import('@vueuse/core')['controlledComputed']>\n    readonly controlledRef: UnwrapRef<typeof import('@vueuse/core')['controlledRef']>\n    readonly createApp: UnwrapRef<typeof import('vue')['createApp']>\n    readonly createEventHook: UnwrapRef<typeof import('@vueuse/core')['createEventHook']>\n    readonly createGlobalState: UnwrapRef<typeof import('@vueuse/core')['createGlobalState']>\n    readonly createInjectionState: UnwrapRef<typeof import('@vueuse/core')['createInjectionState']>\n    readonly createReactiveFn: UnwrapRef<typeof import('@vueuse/core')['createReactiveFn']>\n    readonly createReusableTemplate: UnwrapRef<typeof import('@vueuse/core')['createReusableTemplate']>\n    readonly createSharedComposable: UnwrapRef<typeof import('@vueuse/core')['createSharedComposable']>\n    readonly createTemplatePromise: UnwrapRef<typeof import('@vueuse/core')['createTemplatePromise']>\n    readonly createUnrefFn: UnwrapRef<typeof import('@vueuse/core')['createUnrefFn']>\n    readonly customRef: UnwrapRef<typeof import('vue')['customRef']>\n    readonly debouncedRef: UnwrapRef<typeof import('@vueuse/core')['debouncedRef']>\n    readonly debouncedWatch: UnwrapRef<typeof import('@vueuse/core')['debouncedWatch']>\n    readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']>\n    readonly defineComponent: UnwrapRef<typeof import('vue')['defineComponent']>\n    readonly eagerComputed: UnwrapRef<typeof import('@vueuse/core')['eagerComputed']>\n    readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']>\n    readonly extendRef: UnwrapRef<typeof import('@vueuse/core')['extendRef']>\n    readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>\n    readonly getCurrentScope: UnwrapRef<typeof import('vue')['getCurrentScope']>\n    readonly h: UnwrapRef<typeof import('vue')['h']>\n    readonly ignorableWatch: UnwrapRef<typeof import('@vueuse/core')['ignorableWatch']>\n    readonly inject: UnwrapRef<typeof import('vue')['inject']>\n    readonly isDefined: UnwrapRef<typeof import('@vueuse/core')['isDefined']>\n    readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>\n    readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>\n    readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']>\n    readonly isRef: UnwrapRef<typeof import('vue')['isRef']>\n    readonly makeDestructurable: UnwrapRef<typeof import('@vueuse/core')['makeDestructurable']>\n    readonly markRaw: UnwrapRef<typeof import('vue')['markRaw']>\n    readonly nextTick: UnwrapRef<typeof import('vue')['nextTick']>\n    readonly onActivated: UnwrapRef<typeof import('vue')['onActivated']>\n    readonly onBeforeMount: UnwrapRef<typeof import('vue')['onBeforeMount']>\n    readonly onBeforeRouteLeave: UnwrapRef<typeof import('vue-router')['onBeforeRouteLeave']>\n    readonly onBeforeRouteUpdate: UnwrapRef<typeof import('vue-router')['onBeforeRouteUpdate']>\n    readonly onBeforeUnmount: UnwrapRef<typeof import('vue')['onBeforeUnmount']>\n    readonly onBeforeUpdate: UnwrapRef<typeof import('vue')['onBeforeUpdate']>\n    readonly onClickOutside: UnwrapRef<typeof import('@vueuse/core')['onClickOutside']>\n    readonly onDeactivated: UnwrapRef<typeof import('vue')['onDeactivated']>\n    readonly onErrorCaptured: UnwrapRef<typeof import('vue')['onErrorCaptured']>\n    readonly onKeyStroke: UnwrapRef<typeof import('@vueuse/core')['onKeyStroke']>\n    readonly onLongPress: UnwrapRef<typeof import('@vueuse/core')['onLongPress']>\n    readonly onMounted: UnwrapRef<typeof import('vue')['onMounted']>\n    readonly onRenderTracked: UnwrapRef<typeof import('vue')['onRenderTracked']>\n    readonly onRenderTriggered: UnwrapRef<typeof import('vue')['onRenderTriggered']>\n    readonly onScopeDispose: UnwrapRef<typeof import('vue')['onScopeDispose']>\n    readonly onServerPrefetch: UnwrapRef<typeof import('vue')['onServerPrefetch']>\n    readonly onStartTyping: UnwrapRef<typeof import('@vueuse/core')['onStartTyping']>\n    readonly onUnmounted: UnwrapRef<typeof import('vue')['onUnmounted']>\n    readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>\n    readonly pausableWatch: UnwrapRef<typeof import('@vueuse/core')['pausableWatch']>\n    readonly provide: UnwrapRef<typeof import('vue')['provide']>\n    readonly reactify: UnwrapRef<typeof import('@vueuse/core')['reactify']>\n    readonly reactifyObject: UnwrapRef<typeof import('@vueuse/core')['reactifyObject']>\n    readonly reactive: UnwrapRef<typeof import('vue')['reactive']>\n    readonly reactiveComputed: UnwrapRef<typeof import('@vueuse/core')['reactiveComputed']>\n    readonly reactiveOmit: UnwrapRef<typeof import('@vueuse/core')['reactiveOmit']>\n    readonly reactivePick: UnwrapRef<typeof import('@vueuse/core')['reactivePick']>\n    readonly readonly: UnwrapRef<typeof import('vue')['readonly']>\n    readonly ref: UnwrapRef<typeof import('vue')['ref']>\n    readonly refAutoReset: UnwrapRef<typeof import('@vueuse/core')['refAutoReset']>\n    readonly refDebounced: UnwrapRef<typeof import('@vueuse/core')['refDebounced']>\n    readonly refDefault: UnwrapRef<typeof import('@vueuse/core')['refDefault']>\n    readonly refThrottled: UnwrapRef<typeof import('@vueuse/core')['refThrottled']>\n    readonly refWithControl: UnwrapRef<typeof import('@vueuse/core')['refWithControl']>\n    readonly resolveComponent: UnwrapRef<typeof import('vue')['resolveComponent']>\n    readonly resolveRef: UnwrapRef<typeof import('@vueuse/core')['resolveRef']>\n    readonly resolveUnref: UnwrapRef<typeof import('@vueuse/core')['resolveUnref']>\n    readonly shallowReactive: UnwrapRef<typeof import('vue')['shallowReactive']>\n    readonly shallowReadonly: UnwrapRef<typeof import('vue')['shallowReadonly']>\n    readonly shallowRef: UnwrapRef<typeof import('vue')['shallowRef']>\n    readonly syncRef: UnwrapRef<typeof import('@vueuse/core')['syncRef']>\n    readonly syncRefs: UnwrapRef<typeof import('@vueuse/core')['syncRefs']>\n    readonly templateRef: UnwrapRef<typeof import('@vueuse/core')['templateRef']>\n    readonly throttledRef: UnwrapRef<typeof import('@vueuse/core')['throttledRef']>\n    readonly throttledWatch: UnwrapRef<typeof import('@vueuse/core')['throttledWatch']>\n    readonly toRaw: UnwrapRef<typeof import('vue')['toRaw']>\n    readonly toReactive: UnwrapRef<typeof import('@vueuse/core')['toReactive']>\n    readonly toRef: UnwrapRef<typeof import('vue')['toRef']>\n    readonly toRefs: UnwrapRef<typeof import('vue')['toRefs']>\n    readonly toValue: UnwrapRef<typeof import('vue')['toValue']>\n    readonly triggerRef: UnwrapRef<typeof import('vue')['triggerRef']>\n    readonly tryOnBeforeMount: UnwrapRef<typeof import('@vueuse/core')['tryOnBeforeMount']>\n    readonly tryOnBeforeUnmount: UnwrapRef<typeof import('@vueuse/core')['tryOnBeforeUnmount']>\n    readonly tryOnMounted: UnwrapRef<typeof import('@vueuse/core')['tryOnMounted']>\n    readonly tryOnScopeDispose: UnwrapRef<typeof import('@vueuse/core')['tryOnScopeDispose']>\n    readonly tryOnUnmounted: UnwrapRef<typeof import('@vueuse/core')['tryOnUnmounted']>\n    readonly unref: UnwrapRef<typeof import('vue')['unref']>\n    readonly unrefElement: UnwrapRef<typeof import('@vueuse/core')['unrefElement']>\n    readonly until: UnwrapRef<typeof import('@vueuse/core')['until']>\n    readonly useActiveElement: UnwrapRef<typeof import('@vueuse/core')['useActiveElement']>\n    readonly useAnimate: UnwrapRef<typeof import('@vueuse/core')['useAnimate']>\n    readonly useArrayDifference: UnwrapRef<typeof import('@vueuse/core')['useArrayDifference']>\n    readonly useArrayEvery: UnwrapRef<typeof import('@vueuse/core')['useArrayEvery']>\n    readonly useArrayFilter: UnwrapRef<typeof import('@vueuse/core')['useArrayFilter']>\n    readonly useArrayFind: UnwrapRef<typeof import('@vueuse/core')['useArrayFind']>\n    readonly useArrayFindIndex: UnwrapRef<typeof import('@vueuse/core')['useArrayFindIndex']>\n    readonly useArrayFindLast: UnwrapRef<typeof import('@vueuse/core')['useArrayFindLast']>\n    readonly useArrayIncludes: UnwrapRef<typeof import('@vueuse/core')['useArrayIncludes']>\n    readonly useArrayJoin: UnwrapRef<typeof import('@vueuse/core')['useArrayJoin']>\n    readonly useArrayMap: UnwrapRef<typeof import('@vueuse/core')['useArrayMap']>\n    readonly useArrayReduce: UnwrapRef<typeof import('@vueuse/core')['useArrayReduce']>\n    readonly useArraySome: UnwrapRef<typeof import('@vueuse/core')['useArraySome']>\n    readonly useArrayUnique: UnwrapRef<typeof import('@vueuse/core')['useArrayUnique']>\n    readonly useAsyncQueue: UnwrapRef<typeof import('@vueuse/core')['useAsyncQueue']>\n    readonly useAsyncState: UnwrapRef<typeof import('@vueuse/core')['useAsyncState']>\n    readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']>\n    readonly useBase64: UnwrapRef<typeof import('@vueuse/core')['useBase64']>\n    readonly useBattery: UnwrapRef<typeof import('@vueuse/core')['useBattery']>\n    readonly useBluetooth: UnwrapRef<typeof import('@vueuse/core')['useBluetooth']>\n    readonly useBreakpoints: UnwrapRef<typeof import('@vueuse/core')['useBreakpoints']>\n    readonly useBroadcastChannel: UnwrapRef<typeof import('@vueuse/core')['useBroadcastChannel']>\n    readonly useBrowserLocation: UnwrapRef<typeof import('@vueuse/core')['useBrowserLocation']>\n    readonly useCached: UnwrapRef<typeof import('@vueuse/core')['useCached']>\n    readonly useClipboard: UnwrapRef<typeof import('@vueuse/core')['useClipboard']>\n    readonly useCloned: UnwrapRef<typeof import('@vueuse/core')['useCloned']>\n    readonly useColorMode: UnwrapRef<typeof import('@vueuse/core')['useColorMode']>\n    readonly useConfirmDialog: UnwrapRef<typeof import('@vueuse/core')['useConfirmDialog']>\n    readonly useCounter: UnwrapRef<typeof import('@vueuse/core')['useCounter']>\n    readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']>\n    readonly useCssVar: UnwrapRef<typeof import('@vueuse/core')['useCssVar']>\n    readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']>\n    readonly useCurrentElement: UnwrapRef<typeof import('@vueuse/core')['useCurrentElement']>\n    readonly useCycleList: UnwrapRef<typeof import('@vueuse/core')['useCycleList']>\n    readonly useDark: UnwrapRef<typeof import('@vueuse/core')['useDark']>\n    readonly useDateFormat: UnwrapRef<typeof import('@vueuse/core')['useDateFormat']>\n    readonly useDebounce: UnwrapRef<typeof import('@vueuse/core')['useDebounce']>\n    readonly useDebounceFn: UnwrapRef<typeof import('@vueuse/core')['useDebounceFn']>\n    readonly useDebouncedRefHistory: UnwrapRef<typeof import('@vueuse/core')['useDebouncedRefHistory']>\n    readonly useDeviceMotion: UnwrapRef<typeof import('@vueuse/core')['useDeviceMotion']>\n    readonly useDeviceOrientation: UnwrapRef<typeof import('@vueuse/core')['useDeviceOrientation']>\n    readonly useDevicePixelRatio: UnwrapRef<typeof import('@vueuse/core')['useDevicePixelRatio']>\n    readonly useDevicesList: UnwrapRef<typeof import('@vueuse/core')['useDevicesList']>\n    readonly useDialog: UnwrapRef<typeof import('naive-ui')['useDialog']>\n    readonly useDisplayMedia: UnwrapRef<typeof import('@vueuse/core')['useDisplayMedia']>\n    readonly useDocumentVisibility: UnwrapRef<typeof import('@vueuse/core')['useDocumentVisibility']>\n    readonly useDraggable: UnwrapRef<typeof import('@vueuse/core')['useDraggable']>\n    readonly useDropZone: UnwrapRef<typeof import('@vueuse/core')['useDropZone']>\n    readonly useElementBounding: UnwrapRef<typeof import('@vueuse/core')['useElementBounding']>\n    readonly useElementByPoint: UnwrapRef<typeof import('@vueuse/core')['useElementByPoint']>\n    readonly useElementHover: UnwrapRef<typeof import('@vueuse/core')['useElementHover']>\n    readonly useElementSize: UnwrapRef<typeof import('@vueuse/core')['useElementSize']>\n    readonly useElementVisibility: UnwrapRef<typeof import('@vueuse/core')['useElementVisibility']>\n    readonly useEventBus: UnwrapRef<typeof import('@vueuse/core')['useEventBus']>\n    readonly useEventListener: UnwrapRef<typeof import('@vueuse/core')['useEventListener']>\n    readonly useEventSource: UnwrapRef<typeof import('@vueuse/core')['useEventSource']>\n    readonly useEyeDropper: UnwrapRef<typeof import('@vueuse/core')['useEyeDropper']>\n    readonly useFavicon: UnwrapRef<typeof import('@vueuse/core')['useFavicon']>\n    readonly useFetch: UnwrapRef<typeof import('@vueuse/core')['useFetch']>\n    readonly useFileDialog: UnwrapRef<typeof import('@vueuse/core')['useFileDialog']>\n    readonly useFileSystemAccess: UnwrapRef<typeof import('@vueuse/core')['useFileSystemAccess']>\n    readonly useFocus: UnwrapRef<typeof import('@vueuse/core')['useFocus']>\n    readonly useFocusWithin: UnwrapRef<typeof import('@vueuse/core')['useFocusWithin']>\n    readonly useFps: UnwrapRef<typeof import('@vueuse/core')['useFps']>\n    readonly useFullscreen: UnwrapRef<typeof import('@vueuse/core')['useFullscreen']>\n    readonly useGamepad: UnwrapRef<typeof import('@vueuse/core')['useGamepad']>\n    readonly useGeolocation: UnwrapRef<typeof import('@vueuse/core')['useGeolocation']>\n    readonly useI18n: UnwrapRef<typeof import('vue-i18n')['useI18n']>\n    readonly useIdle: UnwrapRef<typeof import('@vueuse/core')['useIdle']>\n    readonly useImage: UnwrapRef<typeof import('@vueuse/core')['useImage']>\n    readonly useInfiniteScroll: UnwrapRef<typeof import('@vueuse/core')['useInfiniteScroll']>\n    readonly useIntersectionObserver: UnwrapRef<typeof import('@vueuse/core')['useIntersectionObserver']>\n    readonly useInterval: UnwrapRef<typeof import('@vueuse/core')['useInterval']>\n    readonly useIntervalFn: UnwrapRef<typeof import('@vueuse/core')['useIntervalFn']>\n    readonly useKeyModifier: UnwrapRef<typeof import('@vueuse/core')['useKeyModifier']>\n    readonly useLastChanged: UnwrapRef<typeof import('@vueuse/core')['useLastChanged']>\n    readonly useLink: UnwrapRef<typeof import('vue-router')['useLink']>\n    readonly useLoadingBar: UnwrapRef<typeof import('naive-ui')['useLoadingBar']>\n    readonly useLocalStorage: UnwrapRef<typeof import('@vueuse/core')['useLocalStorage']>\n    readonly useMagicKeys: UnwrapRef<typeof import('@vueuse/core')['useMagicKeys']>\n    readonly useManualRefHistory: UnwrapRef<typeof import('@vueuse/core')['useManualRefHistory']>\n    readonly useMediaControls: UnwrapRef<typeof import('@vueuse/core')['useMediaControls']>\n    readonly useMediaQuery: UnwrapRef<typeof import('@vueuse/core')['useMediaQuery']>\n    readonly useMemoize: UnwrapRef<typeof import('@vueuse/core')['useMemoize']>\n    readonly useMemory: UnwrapRef<typeof import('@vueuse/core')['useMemory']>\n    readonly useMessage: UnwrapRef<typeof import('naive-ui')['useMessage']>\n    readonly useMounted: UnwrapRef<typeof import('@vueuse/core')['useMounted']>\n    readonly useMouse: UnwrapRef<typeof import('@vueuse/core')['useMouse']>\n    readonly useMouseInElement: UnwrapRef<typeof import('@vueuse/core')['useMouseInElement']>\n    readonly useMousePressed: UnwrapRef<typeof import('@vueuse/core')['useMousePressed']>\n    readonly useMutationObserver: UnwrapRef<typeof import('@vueuse/core')['useMutationObserver']>\n    readonly useNavigatorLanguage: UnwrapRef<typeof import('@vueuse/core')['useNavigatorLanguage']>\n    readonly useNetwork: UnwrapRef<typeof import('@vueuse/core')['useNetwork']>\n    readonly useNotification: UnwrapRef<typeof import('naive-ui')['useNotification']>\n    readonly useNow: UnwrapRef<typeof import('@vueuse/core')['useNow']>\n    readonly useObjectUrl: UnwrapRef<typeof import('@vueuse/core')['useObjectUrl']>\n    readonly useOffsetPagination: UnwrapRef<typeof import('@vueuse/core')['useOffsetPagination']>\n    readonly useOnline: UnwrapRef<typeof import('@vueuse/core')['useOnline']>\n    readonly usePageLeave: UnwrapRef<typeof import('@vueuse/core')['usePageLeave']>\n    readonly useParallax: UnwrapRef<typeof import('@vueuse/core')['useParallax']>\n    readonly useParentElement: UnwrapRef<typeof import('@vueuse/core')['useParentElement']>\n    readonly usePerformanceObserver: UnwrapRef<typeof import('@vueuse/core')['usePerformanceObserver']>\n    readonly usePermission: UnwrapRef<typeof import('@vueuse/core')['usePermission']>\n    readonly usePointer: UnwrapRef<typeof import('@vueuse/core')['usePointer']>\n    readonly usePointerLock: UnwrapRef<typeof import('@vueuse/core')['usePointerLock']>\n    readonly usePointerSwipe: UnwrapRef<typeof import('@vueuse/core')['usePointerSwipe']>\n    readonly usePreferredColorScheme: UnwrapRef<typeof import('@vueuse/core')['usePreferredColorScheme']>\n    readonly usePreferredContrast: UnwrapRef<typeof import('@vueuse/core')['usePreferredContrast']>\n    readonly usePreferredDark: UnwrapRef<typeof import('@vueuse/core')['usePreferredDark']>\n    readonly usePreferredLanguages: UnwrapRef<typeof import('@vueuse/core')['usePreferredLanguages']>\n    readonly usePreferredReducedMotion: UnwrapRef<typeof import('@vueuse/core')['usePreferredReducedMotion']>\n    readonly usePrevious: UnwrapRef<typeof import('@vueuse/core')['usePrevious']>\n    readonly useRafFn: UnwrapRef<typeof import('@vueuse/core')['useRafFn']>\n    readonly useRefHistory: UnwrapRef<typeof import('@vueuse/core')['useRefHistory']>\n    readonly useResizeObserver: UnwrapRef<typeof import('@vueuse/core')['useResizeObserver']>\n    readonly useRoute: UnwrapRef<typeof import('vue-router')['useRoute']>\n    readonly useRouter: UnwrapRef<typeof import('vue-router')['useRouter']>\n    readonly useScreenOrientation: UnwrapRef<typeof import('@vueuse/core')['useScreenOrientation']>\n    readonly useScreenSafeArea: UnwrapRef<typeof import('@vueuse/core')['useScreenSafeArea']>\n    readonly useScriptTag: UnwrapRef<typeof import('@vueuse/core')['useScriptTag']>\n    readonly useScroll: UnwrapRef<typeof import('@vueuse/core')['useScroll']>\n    readonly useScrollLock: UnwrapRef<typeof import('@vueuse/core')['useScrollLock']>\n    readonly useSessionStorage: UnwrapRef<typeof import('@vueuse/core')['useSessionStorage']>\n    readonly useShare: UnwrapRef<typeof import('@vueuse/core')['useShare']>\n    readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']>\n    readonly useSorted: UnwrapRef<typeof import('@vueuse/core')['useSorted']>\n    readonly useSpeechRecognition: UnwrapRef<typeof import('@vueuse/core')['useSpeechRecognition']>\n    readonly useSpeechSynthesis: UnwrapRef<typeof import('@vueuse/core')['useSpeechSynthesis']>\n    readonly useStepper: UnwrapRef<typeof import('@vueuse/core')['useStepper']>\n    readonly useStorage: UnwrapRef<typeof import('@vueuse/core')['useStorage']>\n    readonly useStorageAsync: UnwrapRef<typeof import('@vueuse/core')['useStorageAsync']>\n    readonly useStyleTag: UnwrapRef<typeof import('@vueuse/core')['useStyleTag']>\n    readonly useSupported: UnwrapRef<typeof import('@vueuse/core')['useSupported']>\n    readonly useSwipe: UnwrapRef<typeof import('@vueuse/core')['useSwipe']>\n    readonly useTemplateRefsList: UnwrapRef<typeof import('@vueuse/core')['useTemplateRefsList']>\n    readonly useTextDirection: UnwrapRef<typeof import('@vueuse/core')['useTextDirection']>\n    readonly useTextSelection: UnwrapRef<typeof import('@vueuse/core')['useTextSelection']>\n    readonly useTextareaAutosize: UnwrapRef<typeof import('@vueuse/core')['useTextareaAutosize']>\n    readonly useThrottle: UnwrapRef<typeof import('@vueuse/core')['useThrottle']>\n    readonly useThrottleFn: UnwrapRef<typeof import('@vueuse/core')['useThrottleFn']>\n    readonly useThrottledRefHistory: UnwrapRef<typeof import('@vueuse/core')['useThrottledRefHistory']>\n    readonly useTimeAgo: UnwrapRef<typeof import('@vueuse/core')['useTimeAgo']>\n    readonly useTimeout: UnwrapRef<typeof import('@vueuse/core')['useTimeout']>\n    readonly useTimeoutFn: UnwrapRef<typeof import('@vueuse/core')['useTimeoutFn']>\n    readonly useTimeoutPoll: UnwrapRef<typeof import('@vueuse/core')['useTimeoutPoll']>\n    readonly useTimestamp: UnwrapRef<typeof import('@vueuse/core')['useTimestamp']>\n    readonly useTitle: UnwrapRef<typeof import('@vueuse/core')['useTitle']>\n    readonly useToNumber: UnwrapRef<typeof import('@vueuse/core')['useToNumber']>\n    readonly useToString: UnwrapRef<typeof import('@vueuse/core')['useToString']>\n    readonly useToggle: UnwrapRef<typeof import('@vueuse/core')['useToggle']>\n    readonly useTransition: UnwrapRef<typeof import('@vueuse/core')['useTransition']>\n    readonly useUrlSearchParams: UnwrapRef<typeof import('@vueuse/core')['useUrlSearchParams']>\n    readonly useUserMedia: UnwrapRef<typeof import('@vueuse/core')['useUserMedia']>\n    readonly useVModel: UnwrapRef<typeof import('@vueuse/core')['useVModel']>\n    readonly useVModels: UnwrapRef<typeof import('@vueuse/core')['useVModels']>\n    readonly useVibrate: UnwrapRef<typeof import('@vueuse/core')['useVibrate']>\n    readonly useVirtualList: UnwrapRef<typeof import('@vueuse/core')['useVirtualList']>\n    readonly useWakeLock: UnwrapRef<typeof import('@vueuse/core')['useWakeLock']>\n    readonly useWebNotification: UnwrapRef<typeof import('@vueuse/core')['useWebNotification']>\n    readonly useWebSocket: UnwrapRef<typeof import('@vueuse/core')['useWebSocket']>\n    readonly useWebWorker: UnwrapRef<typeof import('@vueuse/core')['useWebWorker']>\n    readonly useWebWorkerFn: UnwrapRef<typeof import('@vueuse/core')['useWebWorkerFn']>\n    readonly useWindowFocus: UnwrapRef<typeof import('@vueuse/core')['useWindowFocus']>\n    readonly useWindowScroll: UnwrapRef<typeof import('@vueuse/core')['useWindowScroll']>\n    readonly useWindowSize: UnwrapRef<typeof import('@vueuse/core')['useWindowSize']>\n    readonly watch: UnwrapRef<typeof import('vue')['watch']>\n    readonly watchArray: UnwrapRef<typeof import('@vueuse/core')['watchArray']>\n    readonly watchAtMost: UnwrapRef<typeof import('@vueuse/core')['watchAtMost']>\n    readonly watchDebounced: UnwrapRef<typeof import('@vueuse/core')['watchDebounced']>\n    readonly watchDeep: UnwrapRef<typeof import('@vueuse/core')['watchDeep']>\n    readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']>\n    readonly watchIgnorable: UnwrapRef<typeof import('@vueuse/core')['watchIgnorable']>\n    readonly watchImmediate: UnwrapRef<typeof import('@vueuse/core')['watchImmediate']>\n    readonly watchOnce: UnwrapRef<typeof import('@vueuse/core')['watchOnce']>\n    readonly watchPausable: UnwrapRef<typeof import('@vueuse/core')['watchPausable']>\n    readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']>\n    readonly watchSyncEffect: UnwrapRef<typeof import('vue')['watchSyncEffect']>\n    readonly watchThrottled: UnwrapRef<typeof import('@vueuse/core')['watchThrottled']>\n    readonly watchTriggerable: UnwrapRef<typeof import('@vueuse/core')['watchTriggerable']>\n    readonly watchWithFilter: UnwrapRef<typeof import('@vueuse/core')['watchWithFilter']>\n    readonly whenever: UnwrapRef<typeof import('@vueuse/core')['whenever']>\n  }\n}\n"
  },
  {
    "path": "components.d.ts",
    "content": "/* eslint-disable */\n/* prettier-ignore */\n// @ts-nocheck\n// Generated by unplugin-vue-components\n// Read more: https://github.com/vuejs/core/pull/3399\nimport '@vue/runtime-core'\n\nexport {}\n\ndeclare module '@vue/runtime-core' {\n  export interface GlobalComponents {\n    '404.page': typeof import('./src/pages/404.page.vue')['default']\n    About: typeof import('./src/pages/About.vue')['default']\n    App: typeof import('./src/App.vue')['default']\n    AsciiTextDrawer: typeof import('./src/tools/ascii-text-drawer/ascii-text-drawer.vue')['default']\n    'Base.layout': typeof import('./src/layouts/base.layout.vue')['default']\n    Base64FileConverter: typeof import('./src/tools/base64-file-converter/base64-file-converter.vue')['default']\n    Base64StringConverter: typeof import('./src/tools/base64-string-converter/base64-string-converter.vue')['default']\n    BasicAuthGenerator: typeof import('./src/tools/basic-auth-generator/basic-auth-generator.vue')['default']\n    Bcrypt: typeof import('./src/tools/bcrypt/bcrypt.vue')['default']\n    BenchmarkBuilder: typeof import('./src/tools/benchmark-builder/benchmark-builder.vue')['default']\n    Bip39Generator: typeof import('./src/tools/bip39-generator/bip39-generator.vue')['default']\n    CAlert: typeof import('./src/ui/c-alert/c-alert.vue')['default']\n    'CAlert.demo': typeof import('./src/ui/c-alert/c-alert.demo.vue')['default']\n    CameraRecorder: typeof import('./src/tools/camera-recorder/camera-recorder.vue')['default']\n    CaseConverter: typeof import('./src/tools/case-converter/case-converter.vue')['default']\n    CButton: typeof import('./src/ui/c-button/c-button.vue')['default']\n    'CButton.demo': typeof import('./src/ui/c-button/c-button.demo.vue')['default']\n    CButtonsSelect: typeof import('./src/ui/c-buttons-select/c-buttons-select.vue')['default']\n    'CButtonsSelect.demo': typeof import('./src/ui/c-buttons-select/c-buttons-select.demo.vue')['default']\n    CCard: typeof import('./src/ui/c-card/c-card.vue')['default']\n    'CCard.demo': typeof import('./src/ui/c-card/c-card.demo.vue')['default']\n    CCollapse: typeof import('./src/ui/c-collapse/c-collapse.vue')['default']\n    'CCollapse.demo': typeof import('./src/ui/c-collapse/c-collapse.demo.vue')['default']\n    CDiffEditor: typeof import('./src/ui/c-diff-editor/c-diff-editor.vue')['default']\n    CFileUpload: typeof import('./src/ui/c-file-upload/c-file-upload.vue')['default']\n    'CFileUpload.demo': typeof import('./src/ui/c-file-upload/c-file-upload.demo.vue')['default']\n    ChmodCalculator: typeof import('./src/tools/chmod-calculator/chmod-calculator.vue')['default']\n    Chronometer: typeof import('./src/tools/chronometer/chronometer.vue')['default']\n    CInputText: typeof import('./src/ui/c-input-text/c-input-text.vue')['default']\n    'CInputText.demo': typeof import('./src/ui/c-input-text/c-input-text.demo.vue')['default']\n    CKeyValueList: typeof import('./src/ui/c-key-value-list/c-key-value-list.vue')['default']\n    CKeyValueListItem: typeof import('./src/ui/c-key-value-list/c-key-value-list-item.vue')['default']\n    CLabel: typeof import('./src/ui/c-label/c-label.vue')['default']\n    CLink: typeof import('./src/ui/c-link/c-link.vue')['default']\n    'CLink.demo': typeof import('./src/ui/c-link/c-link.demo.vue')['default']\n    CMarkdown: typeof import('./src/ui/c-markdown/c-markdown.vue')['default']\n    'CMarkdown.demo': typeof import('./src/ui/c-markdown/c-markdown.demo.vue')['default']\n    CModal: typeof import('./src/ui/c-modal/c-modal.vue')['default']\n    'CModal.demo': typeof import('./src/ui/c-modal/c-modal.demo.vue')['default']\n    CModalValue: typeof import('./src/ui/c-modal-value/c-modal-value.vue')['default']\n    'CModalValue.demo': typeof import('./src/ui/c-modal-value/c-modal-value.demo.vue')['default']\n    CollapsibleToolMenu: typeof import('./src/components/CollapsibleToolMenu.vue')['default']\n    ColorConverter: typeof import('./src/tools/color-converter/color-converter.vue')['default']\n    ColoredCard: typeof import('./src/components/ColoredCard.vue')['default']\n    CommandPalette: typeof import('./src/modules/command-palette/command-palette.vue')['default']\n    CommandPaletteOption: typeof import('./src/modules/command-palette/components/command-palette-option.vue')['default']\n    CrontabGenerator: typeof import('./src/tools/crontab-generator/crontab-generator.vue')['default']\n    CSelect: typeof import('./src/ui/c-select/c-select.vue')['default']\n    'CSelect.demo': typeof import('./src/ui/c-select/c-select.demo.vue')['default']\n    CTable: typeof import('./src/ui/c-table/c-table.vue')['default']\n    'CTable.demo': typeof import('./src/ui/c-table/c-table.demo.vue')['default']\n    CTextCopyable: typeof import('./src/ui/c-text-copyable/c-text-copyable.vue')['default']\n    'CTextCopyable.demo': typeof import('./src/ui/c-text-copyable/c-text-copyable.demo.vue')['default']\n    CTooltip: typeof import('./src/ui/c-tooltip/c-tooltip.vue')['default']\n    'CTooltip.demo': typeof import('./src/ui/c-tooltip/c-tooltip.demo.vue')['default']\n    DateTimeConverter: typeof import('./src/tools/date-time-converter/date-time-converter.vue')['default']\n    'DemoHome.page': typeof import('./src/ui/demo/demo-home.page.vue')['default']\n    DemoWrapper: typeof import('./src/ui/demo/demo-wrapper.vue')['default']\n    DeviceInformation: typeof import('./src/tools/device-information/device-information.vue')['default']\n    DiffViewer: typeof import('./src/tools/json-diff/diff-viewer/diff-viewer.vue')['default']\n    DockerRunToDockerComposeConverter: typeof import('./src/tools/docker-run-to-docker-compose-converter/docker-run-to-docker-compose-converter.vue')['default']\n    DynamicValues: typeof import('./src/tools/benchmark-builder/dynamic-values.vue')['default']\n    Editor: typeof import('./src/tools/html-wysiwyg-editor/editor/editor.vue')['default']\n    EmailNormalizer: typeof import('./src/tools/email-normalizer/email-normalizer.vue')['default']\n    EmojiCard: typeof import('./src/tools/emoji-picker/emoji-card.vue')['default']\n    EmojiGrid: typeof import('./src/tools/emoji-picker/emoji-grid.vue')['default']\n    EmojiPicker: typeof import('./src/tools/emoji-picker/emoji-picker.vue')['default']\n    Encryption: typeof import('./src/tools/encryption/encryption.vue')['default']\n    EtaCalculator: typeof import('./src/tools/eta-calculator/eta-calculator.vue')['default']\n    FavoriteButton: typeof import('./src/components/FavoriteButton.vue')['default']\n    FormatTransformer: typeof import('./src/components/FormatTransformer.vue')['default']\n    GitMemo: typeof import('./src/tools/git-memo/git-memo.vue')['default']\n    'GitMemo.content': typeof import('./src/tools/git-memo/git-memo.content.md')['default']\n    HashText: typeof import('./src/tools/hash-text/hash-text.vue')['default']\n    HmacGenerator: typeof import('./src/tools/hmac-generator/hmac-generator.vue')['default']\n    'Home.page': typeof import('./src/pages/Home.page.vue')['default']\n    HtmlEntities: typeof import('./src/tools/html-entities/html-entities.vue')['default']\n    HtmlWysiwygEditor: typeof import('./src/tools/html-wysiwyg-editor/html-wysiwyg-editor.vue')['default']\n    HttpStatusCodes: typeof import('./src/tools/http-status-codes/http-status-codes.vue')['default']\n    IbanValidatorAndParser: typeof import('./src/tools/iban-validator-and-parser/iban-validator-and-parser.vue')['default']\n    'IconMdi:brushVariant': typeof import('~icons/mdi/brush-variant')['default']\n    'IconMdi:kettleSteamOutline': typeof import('~icons/mdi/kettle-steam-outline')['default']\n    IconMdiChevronDown: typeof import('~icons/mdi/chevron-down')['default']\n    IconMdiChevronRight: typeof import('~icons/mdi/chevron-right')['default']\n    IconMdiClose: typeof import('~icons/mdi/close')['default']\n    IconMdiContentCopy: typeof import('~icons/mdi/content-copy')['default']\n    IconMdiEye: typeof import('~icons/mdi/eye')['default']\n    IconMdiEyeOff: typeof import('~icons/mdi/eye-off')['default']\n    IconMdiHeart: typeof import('~icons/mdi/heart')['default']\n    IconMdiSearch: typeof import('~icons/mdi/search')['default']\n    IconMdiTranslate: typeof import('~icons/mdi/translate')['default']\n    IconMdiTriangleDown: typeof import('~icons/mdi/triangle-down')['default']\n    InputCopyable: typeof import('./src/components/InputCopyable.vue')['default']\n    IntegerBaseConverter: typeof import('./src/tools/integer-base-converter/integer-base-converter.vue')['default']\n    Ipv4AddressConverter: typeof import('./src/tools/ipv4-address-converter/ipv4-address-converter.vue')['default']\n    Ipv4RangeExpander: typeof import('./src/tools/ipv4-range-expander/ipv4-range-expander.vue')['default']\n    Ipv4SubnetCalculator: typeof import('./src/tools/ipv4-subnet-calculator/ipv4-subnet-calculator.vue')['default']\n    Ipv6UlaGenerator: typeof import('./src/tools/ipv6-ula-generator/ipv6-ula-generator.vue')['default']\n    JsonDiff: typeof import('./src/tools/json-diff/json-diff.vue')['default']\n    JsonMinify: typeof import('./src/tools/json-minify/json-minify.vue')['default']\n    JsonToCsv: typeof import('./src/tools/json-to-csv/json-to-csv.vue')['default']\n    JsonToToml: typeof import('./src/tools/json-to-toml/json-to-toml.vue')['default']\n    JsonToXml: typeof import('./src/tools/json-to-xml/json-to-xml.vue')['default']\n    JsonToYaml: typeof import('./src/tools/json-to-yaml-converter/json-to-yaml.vue')['default']\n    JsonViewer: typeof import('./src/tools/json-viewer/json-viewer.vue')['default']\n    JwtParser: typeof import('./src/tools/jwt-parser/jwt-parser.vue')['default']\n    KeycodeInfo: typeof import('./src/tools/keycode-info/keycode-info.vue')['default']\n    ListConverter: typeof import('./src/tools/list-converter/list-converter.vue')['default']\n    LocaleSelector: typeof import('./src/modules/i18n/components/locale-selector.vue')['default']\n    LoremIpsumGenerator: typeof import('./src/tools/lorem-ipsum-generator/lorem-ipsum-generator.vue')['default']\n    MacAddressGenerator: typeof import('./src/tools/mac-address-generator/mac-address-generator.vue')['default']\n    MacAddressLookup: typeof import('./src/tools/mac-address-lookup/mac-address-lookup.vue')['default']\n    MarkdownToHtml: typeof import('./src/tools/markdown-to-html/markdown-to-html.vue')['default']\n    MathEvaluator: typeof import('./src/tools/math-evaluator/math-evaluator.vue')['default']\n    MenuBar: typeof import('./src/tools/html-wysiwyg-editor/editor/menu-bar.vue')['default']\n    MenuBarItem: typeof import('./src/tools/html-wysiwyg-editor/editor/menu-bar-item.vue')['default']\n    MenuIconItem: typeof import('./src/components/MenuIconItem.vue')['default']\n    MenuLayout: typeof import('./src/components/MenuLayout.vue')['default']\n    MetaTagGenerator: typeof import('./src/tools/meta-tag-generator/meta-tag-generator.vue')['default']\n    MimeTypes: typeof import('./src/tools/mime-types/mime-types.vue')['default']\n    NavbarButtons: typeof import('./src/components/NavbarButtons.vue')['default']\n    NCheckbox: typeof import('naive-ui')['NCheckbox']\n    NCollapseTransition: typeof import('naive-ui')['NCollapseTransition']\n    NConfigProvider: typeof import('naive-ui')['NConfigProvider']\n    NDivider: typeof import('naive-ui')['NDivider']\n    NEllipsis: typeof import('naive-ui')['NEllipsis']\n    NH1: typeof import('naive-ui')['NH1']\n    NH3: typeof import('naive-ui')['NH3']\n    NIcon: typeof import('naive-ui')['NIcon']\n    NLayout: typeof import('naive-ui')['NLayout']\n    NLayoutSider: typeof import('naive-ui')['NLayoutSider']\n    NMenu: typeof import('naive-ui')['NMenu']\n    NSpace: typeof import('naive-ui')['NSpace']\n    NTable: typeof import('naive-ui')['NTable']\n    NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default']\n    OtpCodeGeneratorAndValidator: typeof import('./src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue')['default']\n    PasswordStrengthAnalyser: typeof import('./src/tools/password-strength-analyser/password-strength-analyser.vue')['default']\n    PdfSignatureChecker: typeof import('./src/tools/pdf-signature-checker/pdf-signature-checker.vue')['default']\n    PdfSignatureDetails: typeof import('./src/tools/pdf-signature-checker/components/pdf-signature-details.vue')['default']\n    PercentageCalculator: typeof import('./src/tools/percentage-calculator/percentage-calculator.vue')['default']\n    PhoneParserAndFormatter: typeof import('./src/tools/phone-parser-and-formatter/phone-parser-and-formatter.vue')['default']\n    QrCodeGenerator: typeof import('./src/tools/qr-code-generator/qr-code-generator.vue')['default']\n    RandomPortGenerator: typeof import('./src/tools/random-port-generator/random-port-generator.vue')['default']\n    RegexMemo: typeof import('./src/tools/regex-memo/regex-memo.vue')['default']\n    'RegexMemo.content': typeof import('./src/tools/regex-memo/regex-memo.content.md')['default']\n    RegexTester: typeof import('./src/tools/regex-tester/regex-tester.vue')['default']\n    ResultRow: typeof import('./src/tools/ipv4-range-expander/result-row.vue')['default']\n    RomanNumeralConverter: typeof import('./src/tools/roman-numeral-converter/roman-numeral-converter.vue')['default']\n    RouterLink: typeof import('vue-router')['RouterLink']\n    RouterView: typeof import('vue-router')['RouterView']\n    RsaKeyPairGenerator: typeof import('./src/tools/rsa-key-pair-generator/rsa-key-pair-generator.vue')['default']\n    SafelinkDecoder: typeof import('./src/tools/safelink-decoder/safelink-decoder.vue')['default']\n    SlugifyString: typeof import('./src/tools/slugify-string/slugify-string.vue')['default']\n    SpanCopyable: typeof import('./src/components/SpanCopyable.vue')['default']\n    SqlPrettify: typeof import('./src/tools/sql-prettify/sql-prettify.vue')['default']\n    StringObfuscator: typeof import('./src/tools/string-obfuscator/string-obfuscator.vue')['default']\n    SvgPlaceholderGenerator: typeof import('./src/tools/svg-placeholder-generator/svg-placeholder-generator.vue')['default']\n    TemperatureConverter: typeof import('./src/tools/temperature-converter/temperature-converter.vue')['default']\n    TextareaCopyable: typeof import('./src/components/TextareaCopyable.vue')['default']\n    TextDiff: typeof import('./src/tools/text-diff/text-diff.vue')['default']\n    TextStatistics: typeof import('./src/tools/text-statistics/text-statistics.vue')['default']\n    TextToBinary: typeof import('./src/tools/text-to-binary/text-to-binary.vue')['default']\n    TextToNatoAlphabet: typeof import('./src/tools/text-to-nato-alphabet/text-to-nato-alphabet.vue')['default']\n    TextToUnicode: typeof import('./src/tools/text-to-unicode/text-to-unicode.vue')['default']\n    TokenDisplay: typeof import('./src/tools/otp-code-generator-and-validator/token-display.vue')['default']\n    'TokenGenerator.tool': typeof import('./src/tools/token-generator/token-generator.tool.vue')['default']\n    TomlToJson: typeof import('./src/tools/toml-to-json/toml-to-json.vue')['default']\n    TomlToYaml: typeof import('./src/tools/toml-to-yaml/toml-to-yaml.vue')['default']\n    'Tool.layout': typeof import('./src/layouts/tool.layout.vue')['default']\n    ToolCard: typeof import('./src/components/ToolCard.vue')['default']\n    UlidGenerator: typeof import('./src/tools/ulid-generator/ulid-generator.vue')['default']\n    UrlEncoder: typeof import('./src/tools/url-encoder/url-encoder.vue')['default']\n    UrlParser: typeof import('./src/tools/url-parser/url-parser.vue')['default']\n    UserAgentParser: typeof import('./src/tools/user-agent-parser/user-agent-parser.vue')['default']\n    UserAgentResultCards: typeof import('./src/tools/user-agent-parser/user-agent-result-cards.vue')['default']\n    UuidGenerator: typeof import('./src/tools/uuid-generator/uuid-generator.vue')['default']\n    WifiQrCodeGenerator: typeof import('./src/tools/wifi-qr-code-generator/wifi-qr-code-generator.vue')['default']\n    XmlFormatter: typeof import('./src/tools/xml-formatter/xml-formatter.vue')['default']\n    XmlToJson: typeof import('./src/tools/xml-to-json/xml-to-json.vue')['default']\n    YamlToJson: typeof import('./src/tools/yaml-to-json-converter/yaml-to-json.vue')['default']\n    YamlToToml: typeof import('./src/tools/yaml-to-toml/yaml-to-toml.vue')['default']\n    YamlViewer: typeof import('./src/tools/yaml-viewer/yaml-viewer.vue')['default']\n  }\n}\n"
  },
  {
    "path": "env.d.ts",
    "content": "/// <reference types=\"vite/client\" />\n/// <reference types=\"vite-svg-loader\" />\n\ninterface ImportMetaEnv {\n  VITE_PLAUSIBLE_API_HOST: string;\n  VITE_PLAUSIBLE_DOMAIN: string;\n  PACKAGE_VERSION: string;\n  GIT_SHORT_SHA: string;\n  PROD: boolean;\n}\n\ninterface ImportMeta {\n  readonly env: ImportMetaEnv;\n}\n"
  },
  {
    "path": "index.html",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"UTF-8\" />\n    <link rel=\"icon\" href=\"favicon.ico\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n    <title>IT Tools - Handy online tools for developers</title>\n    <meta itemprop=\"name\" content=\"IT Tools - Handy online tools for developers\" />\n    <meta\n      name=\"description\"\n      content=\"Collection of handy online tools for developers, with great UX. IT Tools is a free and open-source collection of handy online tools for developers & people working in IT.\"\n    />\n    <meta\n      itemprop=\"description\"\n      content=\"Collection of handy online tools for developers, with great UX. IT Tools is a free and open-source collection of handy online tools for developers & people working in IT.\"\n    />\n    <link rel=\"author\" href=\"humans.txt\" />\n    <link rel=\"canonical\" href=\"https://it-tools.tech\" />\n\n    <link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"apple-touch-icon.png\" />\n    <link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"favicon-32x32.png\" />\n    <link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"favicon-16x16.png\" />\n    <link rel=\"mask-icon\" href=\"safari-pinned-tab.svg\" color=\"#18a058\" />\n    <meta name=\"msapplication-TileColor\" content=\"#da532c\" />\n    <meta name=\"theme-color\" content=\"#ffffff\" />\n\n    <meta property=\"og:url\" content=\"https://it-tools.tech/\" />\n    <meta property=\"og:type\" content=\"website\" />\n    <meta property=\"og:title\" content=\"IT Tools - Handy online tools for developers\" />\n    <meta\n      property=\"og:description\"\n      content=\"Collection of handy online tools for developers, with great UX. IT Tools is a free and open-source collection of handy online tools for developers & people working in IT.\"\n    />\n    <meta property=\"og:image\" content=\"https://it-tools.tech/banner.png?v=2\" />\n\n    <meta name=\"twitter:card\" content=\"summary_large_image\" />\n    <meta name=\"twitter:site\" content=\"@ittoolsdottech\" />\n    <meta name=\"twitter:creator\" content=\"@cthmsst\" />\n\n    <meta name=\"twitter:title\" content=\"IT Tools - Handy online tools for developers\" />\n    <meta\n      name=\"twitter:description\"\n      content=\"Collection of handy online tools for developers, with great UX. IT Tools is a free and open-source collection of handy online tools for developers & people working in IT.\"\n    />\n    <meta name=\"twitter:image\" content=\"https://it-tools.tech/banner.png?v=2\" />\n    <meta name=\"twitter:image:alt\" content=\"IT Tools - Handy online tools for developers\" />\n  </head>\n  <body>\n    <div id=\"app\"></div>\n    <script type=\"module\" src=\"/src/main.ts\"></script>\n  </body>\n</html>\n"
  },
  {
    "path": "locales/de.yml",
    "content": "'404':\n  notFound: 404 Nicht gefunden\n  sorry: Entschuldigung, diese Seite scheint nicht zu existieren\n  maybe: >-\n    Vielleicht macht der Cache etwas Seltsames. Mit einem erzwungenen Neuladen\n    versuchen?\n  backHome: Zurück zur Startseite\nhome:\n  categories:\n    newestTools: Neueste Tools\n    favoriteTools: Deine Lieblingstools\n    allTools: Alle Tools\n    favoritesDndToolTip: 'Ziehen und Ablegen, um Favoriten neu zu ordnen'\n  subtitle: Praktische Tools für Entwickler\n  toggleMenu: Menü umschalten\n  home: Startseite\n  uiLib: UI-Bibliothek\n  support: Unterstütze die Entwicklung von IT-Tools\n  buyMeACoffee: Kauf mir einen Kaffee\n  follow:\n    title: Magst du IT-Tools?\n    p1: Gib uns einen Stern auf\n    githubRepository: IT-Tools GitHub-Repository\n    p2: oder folge uns auf\n    twitterXAccount: IT-Tools X-Konto\n    thankYou: Vielen Dank!\n  nav:\n    github: GitHub-Repository\n    githubRepository: IT-Tools GitHub-Repository\n    twitterX: X-Konto\n    twitterXAccount: IT-Tools X-Konto\n    about: Über IT-Tools\n    aboutLabel: Über\n    darkMode: Dunkelmodus\n    lightMode: Hellmodus\n    mode: Wechseln zwischen dunklem/hellem Modus\nabout:\n  content: >\n    # Über IT-Tools\n\n    Diese wunderbare Website, erstellt mit ❤ von [Corentin\n    Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=about), sammelt nützliche Tools für\n    Entwickler und Menschen, die in der IT arbeiten. Wenn du sie nützlich\n    findest, teile sie gerne mit Personen, von denen du denkst, dass sie sie\n    ebenfalls nützlich finden könnten, und vergiss nicht, sie in deiner\n    Lesezeichenleiste zu speichern!\n\n    IT-Tools ist Open Source (unter der GPL-3.0-Lizenz) und kostenlos und wird es\n    immer sein, aber es kostet mich Geld, die Website zu hosten und den\n    Domainnamen zu erneuern. Wenn du meine Arbeit unterstützen möchtest und mich\n    ermutigen möchtest, mehr Tools hinzuzufügen, überlege bitte, mich durch\n    [Sponsoring](https://www.buymeacoffee.com/cthmsst) zu unterstützen.\n\n    ## Technologien\n\n    IT-Tools wurde mit Vue.js (Vue 3) und der Naive UI-Komponentenbibliothek\n    erstellt und wird von Vercel gehostet und kontinuierlich bereitgestellt. In\n    einigen Tools werden Drittanbieter-Open-Source-Bibliotheken verwendet. Du\n    findest die vollständige Liste in der\n    [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json)-Datei\n    des Repositorys.\n\n    ## Einen Fehler gefunden? Ein Tool fehlt?\n\n    Wenn du ein Tool benötigst, das hier noch nicht vorhanden ist, und du\n    denkst, dass es nützlich sein könnte, bist du herzlich eingeladen, einen\n    Feature-Request im\n    [Issues-Bereich](https://github.com/CorentinTh/it-tools/issues/new/choose)\n    im GitHub-Repository einzureichen.\n\n    Und wenn du einen Fehler gefunden hast oder etwas nicht wie erwartet\n    funktioniert, melde bitte einen Fehler im\n    [Issues-Bereich](https://github.com/CorentinTh/it-tools/issues/new/choose)\n    im GitHub-Repository.\nfavoriteButton:\n  remove: Aus Favoriten entfernen\n  add: Zu Favoriten hinzufügen\ntoolCard:\n  new: Neu\nsearch:\n  label: Suche\ntools:\n  categories:\n    favorite-tools: Deine Lieblingstools\n    crypto: Krypto\n    converter: Konverter\n    web: Web\n    images and videos: Bilder & Videos\n    development: Entwicklung\n    network: Netzwerk\n    math: Mathematik\n    measurement: Messung\n    text: Text\n    data: Daten\n  password-strength-analyser:\n    title: Passwortstärken-Analysator\n    description: >-\n      Ermittle die Stärke deines Passworts mit diesem Client-seitigen\n      Passwortstärken-Analysator und Tool zur Schätzung der Knackzeit.\n  chronometer:\n    title: Chronometer\n    description: >-\n      Überwache die Dauer einer Sache. Im Grunde ein Chronometer mit einfachen\n      Chronometerfunktionen.\n  token-generator:\n    title: Token-Generator\n    description: >-\n      Generiere eine zufällige Zeichenfolge mit den von dir gewünschten Zeichen,\n      Groß- oder Kleinbuchstaben, Zahlen und/oder Symbolen.\n    uppercase: Großbuchstaben (ABC...)\n    lowercase: Kleinbuchstaben (abc...)\n    numbers: Zahlen (123...)\n    symbols: Symbole (!-;...)\n    length: Länge\n    tokenPlaceholder: Der Token ...\n    copied: Token in die Zwischenablage kopiert\n    button:\n      copy: Kopieren\n      refresh: Aktualisieren\n  percentage-calculator:\n    title: Prozentrechner\n    description: >-\n      Berechne einfach Prozentsätze von einem Wert zu einem anderen Wert oder\n      von einem Prozentsatz zu einem Wert.\n  svg-placeholder-generator:\n    title: SVG-Platzhalter-Generator\n    description: >-\n      Generiere SVG-Bilder, die als Platzhalter in deinen Anwendungen verwendet\n      werden können.\n  json-to-csv:\n    title: JSON zu CSV\n    description: Konvertiere JSON mit automatischer Headererkennung in CSV.\n  camera-recorder:\n    title: Kamera-Rekorder\n    description: Mache ein Foto oder nimm ein Video von deiner Webcam oder Kamera auf.\n  keycode-info:\n    title: Keycode-Info\n    description: >-\n      Finde den JavaScript-Keycode, den Code, den Standort und die Modifikatoren\n      einer beliebigen gedrückten Taste.\n  emoji-picker:\n    title: Emoji-Picker\n    description: >-\n      Einfaches Kopieren und Einfügen von Emojis. Erhalte außerdem den Unicode-\n      und Codepunkt-Wert jedes Emojis.\n  color-converter:\n    title: Farbkonverter\n    description: >-\n      Konvertiere Farben zwischen den verschiedenen Formaten (Hex, RGB, HSL und\n      CSS-Name).\n  bcrypt:\n    title: Bcrypt\n    description: >-\n      Hashen und Vergleichen von Strings mit bcrypt. Bcrypt ist eine auf der\n      Blowfish-Chiffre basierende Hash-Funktion.\n  crontab-generator:\n    title: Crontab-Generator\n    description: >-\n      Überprüfe und generiere Crontab und erhalte die menschenlesbare\n      Beschreibung des Cron-Zeitplans.\n  http-status-codes:\n    title: HTTP-Statuscodes\n    description: Liste aller HTTP-Statuscodes, ihrer Namen und ihrer Bedeutung.\n  sql-prettify:\n    title: SQL verschönern und formatieren\n    description: >-\n      Formatiere und verschönere deine SQL-Abfragen online (unterstützt\n      verschiedene SQL-Dialekte).\n  benchmark-builder:\n    title: Benchmark-Builder\n    description: >-\n      Vergleiche ganz einfach die Ausführungszeit von Aufgaben mit diesem sehr\n      einfachen Online-Benchmark-Builder.\n  git-memo:\n    title: Git-Spickzettel\n    description: >-\n      Git ist eine dezentrale Versionsverwaltungssoftware. Mit diesem\n      Spickzettel hast du schnellen Zugriff auf die gängigsten Git-Befehle.\n  slugify-string:\n    title: Slugify String\n    description: Mache einen String URL-, Dateinamen- und ID-sicher.\n  encryption:\n    title: Text verschlüsseln / entschlüsseln\n    description: >-\n      Verschlüssele und entschlüssele Klartext mithilfe von Kryptoalgorithmen\n      wie AES, TripleDES, Rabbit oder RC4.\n  random-port-generator:\n    title: Zufälliger Port-Generator\n    description: >-\n      Generiere zufällige Portnummern außerhalb des Bereichs der \"bekannten\"\n      Ports (0-1023).\n  yaml-prettify:\n    title: YAML verschönern und formatieren\n    description: Verschönere deinen YAML-String in ein menschenlesbares Format.\n  eta-calculator:\n    title: ETA-Rechner\n    description: >-\n      Ein ETA (Estimated Time of Arrival)-Rechner, um die ungefähre Endzeit\n      einer Aufgabe zu erfahren, z. B. den Zeitpunkt des Endes eines Downloads.\n  roman-numeral-converter:\n    title: Römische Zahlen Konverter\n    description: >-\n      Konvertiere römische Zahlen in Dezimalzahlen und Dezimalzahlen in römische\n      Zahlen.\n  hmac-generator:\n    title: HMAC-Generator\n    description: >-\n      Berechnet einen hashbasierten Nachrichtenauthentifizierungscode (HMAC)\n      unter Verwendung eines geheimen Schlüssels und deiner bevorzugten\n      Hash-Funktion.\n  bip39-generator:\n    title: BIP39-Passphrasengenerator\n    description: >-\n      Generiere BIP39-Passphrasen aus vorhandener oder zufälliger Mnemonik oder\n      erhalte die Mnemonik aus der Passphrase.\n  base64-file-converter:\n    title: Base64-Dateikonverter\n    description: Konvertiere Strings, Dateien oder Bilder in ihre Base64-Repräsentation.\n  list-converter:\n    title: Listenkonverter\n    description: >-\n      Dieses Tool kann spaltenbasierte Daten verarbeiten und verschiedene\n      Änderungen (transponieren, Präfix und Suffix hinzufügen, Liste umkehren,\n      Liste sortieren, Werte in Kleinbuchstaben umwandeln, Werte abschneiden)\n      auf jede Zeile anwenden.\n  base64-string-converter:\n    title: Base64-String-Encoder/Decoder\n    description: Codiere und decodiere Strings einfach in ihre Base64-Repräsentation.\n  toml-to-yaml:\n    title: TOML zu YAML\n    description: Parse und konvertiere TOML zu YAML.\n  math-evaluator:\n    title: Mathematischer Auswerter\n    description: >-\n      Ein Taschenrechner zum Auswerten mathematischer Ausdrücke. Du kannst\n      Funktionen wie sqrt, cos, sin, abs usw. verwenden.\n  json-to-yaml-converter:\n    title: JSON zu YAML\n    description: Konvertiere JSON einfach in YAML mit diesem Live-Online-Konverter.\n  url-parser:\n    title: URL-Parser\n    description: >-\n      Parse eine URL-Zeichenfolge, um alle verschiedenen Teile (Protokoll,\n      Ursprung, Parameter, Port, Benutzername-Passwort usw.) zu erhalten.\n  iban-validator-and-parser:\n    title: IBAN-Validator und -Parser\n    description: >-\n      Validiere und parse IBAN-Nummern. Überprüfe, ob die IBAN gültig ist, und\n      erhalte das Land, BBAN, ob es sich um eine QR-IBAN handelt und das\n      IBAN-freundliche Format.\n  user-agent-parser:\n    title: User-Agent-Parser\n    description: >-\n      Erkenne und parse Browser, Engine, Betriebssystem, CPU und\n      Gerätetyp/-modell aus einer User-Agent-Zeichenfolge.\n  numeronym-generator:\n    title: Numeronym-Generator\n    description: >-\n      Ein Numeronym ist ein Wort, bei dem eine Zahl verwendet wird, um eine\n      Abkürzung zu bilden. Zum Beispiel ist \"i18n\" ein Numeronym für\n      \"internationalization\", wobei 18 für die Anzahl der Buchstaben zwischen\n      dem ersten \"i\" und dem letzten \"n\" im Wort steht.\n  case-converter:\n    title: Fall-Konverter\n    description: >-\n      Ändere den Fall eines Strings und wähle zwischen verschiedenen Formaten\n      aus.\n  html-entities:\n    title: HTML-Entity-Escape\n    description: >-\n      Escape oder unescape HTML-Entitäten (ersetze <, >, &, \" und ' durch ihre\n      HTML-Version).\n  json-prettify:\n    title: JSON verschönern und formatieren\n    description: Verschönere deinen JSON-String in ein menschenlesbares Format.\n  docker-run-to-docker-compose-converter:\n    title: Docker run zu Docker compose Konverter\n    description: Wandle docker run-Befehle in docker-compose-Dateien um!\n  mac-address-lookup:\n    title: MAC-Adressensuche\n    description: Finde den Anbieter und Hersteller eines Geräts anhand seiner MAC-Adresse.\n  mime-types:\n    title: MIME-Typen\n    description: Konvertiere MIME-Typen in Erweiterungen und umgekehrt.\n  toml-to-json:\n    title: TOML zu JSON\n    description: Parse und konvertiere TOML zu JSON.\n  lorem-ipsum-generator:\n    title: Lorem Ipsum Generator\n    description: >-\n      Lorem Ipsum ist ein Platzhaltertext, der häufig verwendet wird, um die\n      visuelle Form eines Dokuments oder einer Schriftart ohne Verwendung von\n      bedeutendem Inhalt zu demonstrieren.\n  qrcode-generator:\n    title: QR-Code-Generator\n    description: >-\n      Generiere und downloade QR-Codes für eine URL oder einfach einen Text und\n      passe die Hintergrund- und Vordergrundfarben an.\n  wifi-qrcode-generator:\n    title: WLAN-QR-Code-Generator\n    description: >-\n      Generiere und lade QR-Codes für schnelle Verbindungen zu WLAN-Netzwerken\n      herunter.\n  xml-formatter:\n    title: XML-Formatter\n    description: Verschönere deinen XML-String in ein menschenlesbares Format.\n  temperature-converter:\n    title: Temperaturkonverter\n    description: >-\n      Temperaturgradumrechnungen für Kelvin, Celsius, Fahrenheit, Rankine,\n      Delisle, Newton, Réaumur und Rømer.\n  chmod-calculator:\n    title: Chmod-Rechner\n    description: >-\n      Berechne deine Chmod-Berechtigungen und -Befehle mit diesem\n      Online-Chmod-Rechner.\n  rsa-key-pair-generator:\n    title: RSA-Schlüsselpaar-Generator\n    description: Generiere neue zufällige RSA-Private- und Public-Key-PEM-Zertifikate.\n  html-wysiwyg-editor:\n    title: HTML-WYSIWYG-Editor\n    description: >-\n      Online-HTML-Editor mit funktionsreichem WYSIWYG-Editor, erhalte sofort den\n      Quellcode des Inhalts.\n  yaml-to-toml:\n    title: YAML zu TOML\n    description: Parse und konvertiere YAML zu TOML.\n  mac-address-generator:\n    title: MAC-Adressen-Generator\n    description: >-\n      Gebe die Menge und das Präfix ein. MAC-Adressen werden in deiner gewählten\n      Schreibweise (Groß- oder Kleinbuchstaben) generiert.\n  json-diff:\n    title: JSON-Unterschied\n    description: Vergleiche zwei JSON-Objekte und erhalte die Unterschiede zwischen ihnen.\n  jwt-parser:\n    title: JWT-Parser\n    description: >-\n      Parse und decodiere deinen JSON-Web-Token (JWT) und zeige dessen Inhalt\n      an.\n  date-converter:\n    title: Datum-Uhrzeit-Konverter\n    description: Konvertiere Datum und Uhrzeit in verschiedene Formate.\n  phone-parser-and-formatter:\n    title: Telefonnummer-Parser und -Formatter\n    description: >-\n      Parse, validiere und formatiere Telefonnummern. Erhalte Informationen zur\n      Telefonnummer, wie z. B. die Landesvorwahl, den Typ usw.\n  ipv4-subnet-calculator:\n    title: IPv4-Subnetzrechner\n    description: >-\n      Parse deine IPv4-CIDR-Blöcke und erhalte alle Informationen, die du über\n      dein Subnetz benötigst.\n  og-meta-generator:\n    title: Open Graph Meta-Generator\n    description: Generiere Open Graph- und Social-HTML-Metatags für deine Website.\n  ipv6-ula-generator:\n    title: IPv6-ULA-Generator\n    description: >-\n      Generiere deine eigenen lokalen, nicht routbaren IP-Adressen in deinem\n      Netzwerk gemäß RFC4193.\n  hash-text:\n    title: Text hashen\n    description: >-\n      Hashe einen Text-String mit der von dir benötigten Funktion: MD5, SHA1,\n      SHA256, SHA224, SHA512, SHA384, SHA3 oder RIPEMD160\n  json-to-toml:\n    title: JSON zu TOML\n    description: Parse und konvertiere JSON zu TOML.\n  device-information:\n    title: Geräteinformationen\n    description: >-\n      Informationen zu deinem aktuellen Gerät (Bildschirmgröße, Pixelverhältnis,\n      Benutzeragent, ...) erhalten.\n  pdf-signature-checker:\n    title: PDF-Signaturprüfer\n    description: >-\n      Überprüfe die Signaturen einer PDF-Datei. Eine signierte PDF-Datei enthält\n      eine oder mehrere Signaturen, die verwendet werden können, um\n      festzustellen, ob der Inhalt der Datei seit dem Zeitpunkt der Signierung\n      geändert wurde.\n  json-minify:\n    title: JSON minifizieren\n    description: >-\n      Minifiziere und komprimiere dein JSON, indem unnötige Leerzeichen entfernt\n      werden.\n  ulid-generator:\n    title: ULID-Generator\n    description: >-\n      Generiere zufällige Universally Unique Lexicographically Sortable\n      Identifier (ULID).\n  string-obfuscator:\n    title: String-Verschleierer\n    description: >-\n      Verschleiere einen String (wie ein Secret, eine IBAN oder ein Token), um\n      ihn weitergeben zu können und identifizierbar zu machen, ohne seinen\n      Inhalt preiszugeben.\n  base-converter:\n    title: Ganzzahl-Basiskonverter\n    description: >-\n      Konvertiere Zahlen zwischen verschiedenen Basen (Dezimal, Hexadezimal,\n      Binär, Oktal, Base64, ...).\n  yaml-to-json-converter:\n    title: YAML zu JSON\n    description: Konvertiere YAML einfach in JSON mit diesem Live-Online-Konverter.\n  uuid-generator:\n    title: UUID-Generator\n    description: >-\n      Ein Universally Unique Identifier (UUID) ist eine 128-Bit-Nummer, die zur\n      Identifizierung von Informationen in Computersystemen verwendet wird. Die\n      Anzahl der möglichen UUIDs beträgt 16^32, was 2^128 oder etwa 3,4x10^38\n      entspricht (was ziemlich viel ist!).\n  ipv4-address-converter:\n    title: IPv4-Adresskonverter\n    description: >-\n      Konvertiere eine IP-Adresse in Dezimal, Binär, Hexadezimal oder sogar in\n      IPv6.\n  text-statistics:\n    title: Textstatistiken\n    description: >-\n      Informationen zu einem Text erhalten, wie die Anzahl der Zeichen, die\n      Anzahl der Wörter, die Größe usw.\n  text-to-nato-alphabet:\n    title: Text zu NATO-Alphabet\n    description: >-\n      Wandle Text in das NATO-Phonetik-Alphabet für die mündliche Übermittlung\n      um.\n  basic-auth-generator:\n    title: Basic-Auth-Generator\n    description: >-\n      Generiere einen Base64-Basic-Auth-Header aus einem Benutzernamen und einem\n      Passwort.\n  text-to-unicode:\n    title: Text zu Unicode\n    description: Parse und konvertiere Text in Unicode und umgekehrt.\n  ipv4-range-expander:\n    title: IPv4-Bereichserweiterer\n    description: >-\n      Bei Angabe einer Start- und End-IPv4-Adresse berechnet dieses Tool ein\n      gültiges IPv4-Netzwerk mit seiner CIDR-Notation.\n  text-diff:\n    title: Textunterschied\n    description: Vergleiche zwei Texte und sieh die Unterschiede zwischen ihnen.\n  otp-generator:\n    title: OTP-Code-Generator\n    description: >-\n      Generiere und validiere zeitbasierte OTPs (Einmalpasswörter) für\n      Multi-Faktor-Authentifizierung.\n  url-encoder:\n    title: Kodieren/Decodieren von URL-formatierten Zeichenfolgen\n    description: >-\n      Kodiere zum URL-kodierten Format (auch als \"prozentkodiert\" bekannt) oder\n      decodiere es.\n  text-to-binary:\n    title: Text zu ASCII-Binär\n    description: Konvertiere Text in seine ASCII-Binärrepräsentation und umgekehrt.\n"
  },
  {
    "path": "locales/en.yml",
    "content": "home:\n  categories:\n    newestTools: Newest tools\n    favoriteTools: 'Your favorite tools'\n    allTools: 'All the tools'\n    favoritesDndToolTip: 'Drag and drop to reorder favorites'\n  subtitle: 'Handy tools for developers'\n  toggleMenu: 'Toggle menu'\n  home: Home\n  uiLib: 'UI Lib'\n  support: 'Support IT-Tools development'\n  buyMeACoffee: 'Buy me a coffee'\n  follow:\n    title: 'You like it-tools?'\n    p1: 'Give us a star on'\n    githubRepository: 'IT-Tools GitHub repository'\n    p2: 'or follow us on'\n    twitterXAccount: 'IT-Tools X account'\n    thankYou: 'Thank you!'\n  nav:\n    github: 'GitHub repository'\n    githubRepository: 'IT-Tools GitHub repository'\n    twitterX: 'X account'\n    twitterXAccount: 'IT Tools X account'\n    about: 'About  IT-Tools'\n    aboutLabel: 'About'\n    darkMode: 'Dark mode'\n    lightMode: 'Light mode'\n    mode: 'Toggle dark/light mode'\nabout:\n  content: >\n    # About IT-Tools\n\n    This wonderful website, made with ❤ by [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=about) , aggregates useful tools for developer and people working in IT. If you find it useful, please feel free to share it to people you think may find it useful too and don't forget to bookmark it in your shortcut bar!\n\n    IT Tools is open-source (under the GPL-3.0 license) and free, and will always be, but it costs me money to host and renew the domain name. If you want to support my work, and encourage me to add more tools, please consider supporting by [sponsoring me](https://www.buymeacoffee.com/cthmsst).\n\n    ## Technologies\n\n    IT Tools is made in Vue.js (Vue 3) with the the Naive UI component library and is hosted and continuously deployed by Vercel. Third-party open-source libraries are used in some tools, you may find the complete list in the [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) file of the repository.\n\n    ## Found a bug? A tool is missing?\n\n    If you need a tool that is currently not present here, and you think can be useful, you are welcome to submit a feature request in the [issues section](https://github.com/CorentinTh/it-tools/issues/new/choose) in the GitHub repository.\n\n    And if you found a bug, or something doesn't work as expected, please file a bug report in the [issues section](https://github.com/CorentinTh/it-tools/issues/new/choose) in the GitHub repository.\n\n404:\n  notFound: '404 Not Found'\n  sorry: 'Sorry, this page does not seem to exist'\n  maybe: 'Maybe the cache is doing tricky things, try force-refreshing?'\n  backHome: 'Back home'\nfavoriteButton:\n  remove: 'Remove from favorites'\n  add: 'Add to favorites'\ntoolCard:\n  new: New\nsearch:\n  label: Search\ntools:\n  categories:\n    favorite-tools: 'Your favorite tools'\n    crypto: Crypto\n    converter: Converter\n    web: Web\n    images and videos: 'Images & Videos'\n    development: Development\n    network: Network\n    math: Math\n    measurement: Measurement\n    text: Text\n    data: Data\n\n  password-strength-analyser:\n    title: Password strength analyser\n    description: Discover the strength of your password with this client-side-only password strength analyser and crack time estimation tool.\n\n  chronometer:\n    title: Chronometer\n    description: Monitor the duration of a thing. Basically a chronometer with simple chronometer features.\n\n  token-generator:\n    title: Token generator\n    description: Generate random string with the chars you want, uppercase or lowercase letters, numbers and/or symbols.\n\n    uppercase: Uppercase (ABC...)\n    lowercase: Lowercase (abc...)\n    numbers: Numbers (123...)\n    symbols: Symbols (!-;...)\n    length: Length\n    tokenPlaceholder: 'The token...'\n    copied: Token copied to the clipboard\n    button:\n      copy: Copy\n      refresh: Refresh\n  percentage-calculator:\n    title: Percentage calculator\n    description: Easily calculate percentages from a value to another value, or from a percentage to a value.\n\n  svg-placeholder-generator:\n    title: SVG placeholder generator\n    description: Generate svg images to use as a placeholder in your applications.\n\n  json-to-csv:\n    title: JSON to CSV\n    description: Convert JSON to CSV with automatic header detection.\n\n  camera-recorder:\n    title: Camera recorder\n    description: Take a picture or record a video from your webcam or camera.\n\n  keycode-info:\n    title: Keycode info\n    description: Find the javascript keycode, code, location and modifiers of any pressed key.\n\n  emoji-picker:\n    title: Emoji picker\n    description: Copy and paste emojis easily and get the unicode and code points value of each emoji.\n\n  color-converter:\n    title: Color converter\n    description: Convert color between the different formats (hex, rgb, hsl and css name)\n\n  bcrypt:\n    title: Bcrypt\n    description: Hash and compare text string using bcrypt. Bcrypt is a password-hashing function based on the Blowfish cipher.\n\n  crontab-generator:\n    title: Crontab generator\n    description: Validate and generate crontab and get the human-readable description of the cron schedule.\n\n  http-status-codes:\n    title: HTTP status codes\n    description: The list of all HTTP status codes, their name, and their meaning.\n\n  sql-prettify:\n    title: SQL prettify and format\n    description: Format and prettify your SQL queries online (it supports various SQL dialects).\n\n  benchmark-builder:\n    title: Benchmark builder\n    description: Easily compare execution time of tasks with this very simple online benchmark builder.\n\n  git-memo:\n    title: Git cheatsheet\n    description: Git is a decentralized version management software. With this cheatsheet, you will have quick access to the most common git commands.\n\n  slugify-string:\n    title: Slugify string\n    description: Make a string url, filename and id safe.\n\n  encryption:\n    title: Encrypt / decrypt text\n    description: Encrypt clear text and decrypt ciphertext using crypto algorithms like AES, TripleDES, Rabbit or RC4.\n\n  random-port-generator:\n    title: Random port generator\n    description: Generate random port numbers outside of the range of \"known\" ports (0-1023).\n\n  yaml-prettify:\n    title: YAML prettify and format\n    description: Prettify your YAML string into a friendly, human-readable format.\n\n  eta-calculator:\n    title: ETA calculator\n    description: An ETA (Estimated Time of Arrival) calculator to determine the approximate end time of a task, for example, the end time and duration of a file download.\n\n  roman-numeral-converter:\n    title: Roman numeral converter\n    description: Convert Roman numerals to numbers and convert numbers to Roman numerals.\n\n  hmac-generator:\n    title: Hmac generator\n    description: Computes a hash-based message authentication code (HMAC) using a secret key and your favorite hashing function.\n\n  bip39-generator:\n    title: BIP39 passphrase generator\n    description: Generate a BIP39 passphrase from an existing or random mnemonic, or get the mnemonic from the passphrase.\n\n  base64-file-converter:\n    title: Base64 file converter\n    description: Convert a string, file, or image into its base64 representation.\n\n  list-converter:\n    title: List converter\n    description: This tool can process column-based data and apply various changes (transpose, add prefix and suffix, reverse list, sort list, lowercase values, truncate values) to each row.\n\n  base64-string-converter:\n    title: Base64 string encoder/decoder\n    description: Simply encode and decode strings into their base64 representation.\n\n  toml-to-yaml:\n    title: TOML to YAML\n    description: Parse and convert TOML to YAML.\n\n  math-evaluator:\n    title: Math evaluator\n    description: A calculator for evaluating mathematical expressions. You can use functions like sqrt, cos, sin, abs, etc.\n\n  json-to-yaml-converter:\n    title: JSON to YAML converter\n    description: Simply convert JSON to YAML with this online live converter.\n\n  url-parser:\n    title: URL parser\n    description: Parse a URL into its separate constituent parts (protocol, origin, params, port, username-password, ...)\n\n  iban-validator-and-parser:\n    title: IBAN validator and parser\n    description: Validate and parse IBAN numbers. Check if an IBAN is valid and get the country, BBAN, if it is a QR-IBAN and the IBAN friendly format.\n\n  user-agent-parser:\n    title: User-agent parser\n    description: Detect and parse Browser, Engine, OS, CPU, and Device type/model from an user-agent string.\n\n  numeronym-generator:\n    title: Numeronym generator\n    description: A numeronym is a word where a number is used to form an abbreviation. For example, \"i18n\" is a numeronym of \"internationalization\" where 18 stands for the number of letters between the first i and the last n in the word.\n\n  case-converter:\n    title: Case converter\n    description: Transform the case of a string and choose between different formats\n\n  html-entities:\n    title: Escape HTML entities\n    description: Escape or unescape HTML entities (replace characters like <,>, &, \" and \\' with their HTML version)\n\n  json-prettify:\n    title: JSON prettify and format\n    description: Prettify your JSON string into a friendly, human-readable format.\n\n  docker-run-to-docker-compose-converter:\n    title: Docker run to Docker compose converter\n    description: Transforms \"docker run\" commands into docker-compose files!\n\n  mac-address-lookup:\n    title: MAC address lookup\n    description: Find the vendor and manufacturer of a device by its MAC address.\n\n  mime-types:\n    title: MIME types\n    description: Convert MIME types to file extensions and vice-versa.\n\n  toml-to-json:\n    title: TOML to JSON\n    description: Parse and convert TOML to JSON.\n\n  lorem-ipsum-generator:\n    title: Lorem ipsum generator\n    description: Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content\n\n  qrcode-generator:\n    title: QR Code generator\n    description: Generate and download a QR code for a URL (or just plain text), and customize the background and foreground colors.\n\n  wifi-qrcode-generator:\n    title: WiFi QR Code generator\n    description: Generate and download QR codes for quick connections to WiFi networks.\n\n  xml-formatter:\n    title: XML formatter\n    description: Prettify your XML string into a friendly, human-readable format.\n\n  temperature-converter:\n    title: Temperature converter\n    description: Degrees temperature conversions for Kelvin, Celsius, Fahrenheit, Rankine, Delisle, Newton, Réaumur, and Rømer.\n\n  chmod-calculator:\n    title: Chmod calculator\n    description: Compute your chmod permissions and commands with this online chmod calculator.\n\n  rsa-key-pair-generator:\n    title: RSA key pair generator\n    description: Generate a new random RSA private and public pem certificate key pair.\n\n  html-wysiwyg-editor:\n    title: HTML WYSIWYG editor\n    description: Online, feature-rich WYSIWYG HTML editor which generates the source code of the content immediately.\n\n  yaml-to-toml:\n    title: YAML to TOML\n    description: Parse and convert YAML to TOML.\n\n  mac-address-generator:\n    title: MAC address generator\n    description: Enter the quantity and prefix. MAC addresses will be generated in your chosen case (uppercase or lowercase)\n\n  json-diff:\n    title: JSON diff\n    description: Compare two JSON objects and get the differences between them.\n\n  jwt-parser:\n    title: JWT parser\n    description: Parse and decode your JSON Web Token (jwt) and display its content.\n\n  date-converter:\n    title: Date-time converter\n    description: Convert date and time into the various different formats\n\n  phone-parser-and-formatter:\n    title: Phone parser and formatter\n    description: Parse, validate and format phone numbers. Get information about the phone number, like the country code, type, etc.\n\n  ipv4-subnet-calculator:\n    title: IPv4 subnet calculator\n    description: Parse your IPv4 CIDR blocks and get all the info you need about your subnet.\n\n  og-meta-generator:\n    title: Open graph meta generator\n    description: Generate open-graph and socials HTML meta tags for your website.\n\n  ipv6-ula-generator:\n    title: IPv6 ULA generator\n    description: Generate your own local, non-routable IP addresses for your network according to RFC4193.\n\n  hash-text:\n    title: Hash text\n    description: 'Hash a text string using the function you need : MD5, SHA1, SHA256, SHA224, SHA512, SHA384, SHA3 or RIPEMD160'\n\n  json-to-toml:\n    title: JSON to TOML\n    description: Parse and convert JSON to TOML.\n\n  device-information:\n    title: Device information\n    description: Get information about your current device (screen size, pixel-ratio, user agent, ...)\n\n  pdf-signature-checker:\n    title: PDF signature checker\n    description: Verify the signatures of a PDF file. A signed PDF file contains one or more signatures that may be used to determine whether the contents of the file have been altered since the file was signed.\n\n  json-minify:\n    title: JSON minify\n    description: Minify and compress your JSON by removing unnecessary whitespace.\n\n  ulid-generator:\n    title: ULID generator\n    description: Generate random Universally Unique Lexicographically Sortable Identifier (ULID).\n\n  string-obfuscator:\n    title: String obfuscator\n    description: Obfuscate a string (like a secret, an IBAN, or a token) to make it shareable and identifiable without revealing its content.\n\n  base-converter:\n    title: Integer base converter\n    description: Convert a number between different bases (decimal, hexadecimal, binary, octal, base64, ...)\n\n  yaml-to-json-converter:\n    title: YAML to JSON converter\n    description: Simply convert YAML to JSON with this online live converter.\n\n  uuid-generator:\n    title: UUIDs generator\n    description: A Universally Unique Identifier (UUID) is a 128-bit number used to identify information in computer systems. The number of possible UUIDs is 16^32, which is 2^128 or about 3.4x10^38 (which is a lot!).\n\n  ipv4-address-converter:\n    title: IPv4 address converter\n    description: Convert an IP address into decimal, binary, hexadecimal, or even an IPv6 representation of it.\n\n  text-statistics:\n    title: Text statistics\n    description: Get information about a text, the number of characters, the number of words, its size in bytes, ...\n\n  text-to-nato-alphabet:\n    title: Text to NATO alphabet\n    description: Transform text into the NATO phonetic alphabet for oral transmission.\n\n  basic-auth-generator:\n    title: Basic auth generator\n    description: Generate a base64 basic auth header from a username and password.\n\n  text-to-unicode:\n    title: Text to Unicode\n    description: Parse and convert text to unicode and vice-versa\n\n  ipv4-range-expander:\n    title: IPv4 range expander\n    description: Given a start and an end IPv4 address, this tool calculates a valid IPv4 subnet along with its CIDR notation.\n\n  text-diff:\n    title: Text diff\n    description: Compare two texts and see the differences between them.\n\n  otp-generator:\n    title: OTP code generator\n    description: Generate and validate time-based OTP (one time password) for multi-factor authentication.\n\n  url-encoder:\n    title: Encode/decode URL-formatted strings\n    description: Encode text to URL-encoded format (also known as \"percent-encoded\"), or decode from it.\n\n  text-to-binary:\n    title: Text to ASCII binary\n    description: Convert text to its ASCII binary representation and vice-versa.\n"
  },
  {
    "path": "locales/es.yml",
    "content": "home:\n  categories:\n    newestTools: Nuevas herramientas\n    favoriteTools: 'Tus herramientas favoritas'\n    allTools: 'Todas las herramientas'\n    favoritesDndToolTip: 'Arrastra y suelta para reordenar favoritos'\n  subtitle: 'Herramientas practicas para desarrolladores'\n  toggleMenu: 'Toggle menu'\n  home: Home\n  uiLib: 'UI Lib'\n  support: 'Apoyar el desarrollo de IT-Tools'\n  buyMeACoffee: 'Buy me a coffee'\n  follow:\n    title: 'Te gustan las it-tools?'\n    p1: 'Danos una estrella en'\n    githubRepository: 'Repositorio de IT-Tools en GitHub'\n    p2: 'o síguenos en'\n    twitterXAccount: 'Cuenta de X de IT-Tools'\n    thankYou: 'Muchas gracias!'\n  nav:\n    github: 'Repositorio en github'\n    githubRepository: 'IT-Tools GitHub repository'\n    twitterX: 'Cuenta de X'\n    twitterXAccount: 'Cuenta de X de IT Tools'\n    about: 'Sobre  IT-Tools'\n    aboutLabel: 'Sobre'\n    darkMode: 'Modo obscuro'\n    lightMode: 'Modo claro'\n    mode: 'Alternar modo oscuro/claro'\nabout:\n  content: >\n    # Sobre IT-Tools\n\n    Este maravilloso sitio web, hecho con ❤ por [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=about) , agrega herramientas útiles para desarrolladores y personas que trabajan en IT. Si lo encuentra útil, no dude en compartirlo con las personas que crea que también pueden encontrarlo útil y ¡no olvide marcarlo como favorito en su barra de accesos directos!\n\n    IT Tools es de código abierto (under the GPL-3.0 license) y gratis, y siempre lo será, pero me cuesta dinero alojar y renovar el nombre de dominio. Si desea apoyar mi trabajo y animarme a agregar más herramientas, considere apoyarme a través de[sponsoring me](https://www.buymeacoffee.com/cthmsst).\n\n    ## Tecnologías\n\n    IT Tools está creado en Vue.js (Vue 3) con la biblioteca de componentes Naive UI y Vercel lo aloja y lo implementa continuamente. En algunas herramientas se utilizan bibliotecas de código abierto de terceros; puede encontrar la lista completa en [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) archivo del repositorio.\n\n    ## ¿Encontraste un error? ¿Falta una herramienta?\n\n    Si necesita una herramienta que actualmente no está presente aquí y cree que puede ser útil, puede enviar una solicitud de función en el [issues section](https://github.com/CorentinTh/it-tools/issues/new/choose) en el repositorio de GitHub.\n\n    Y si encontró un error o algo no funciona como se esperaba, presente un reporte de error en el [issues section](https://github.com/CorentinTh/it-tools/issues/new/choose) en el repositorio de GitHub.\n\n404:\n  notFound: '404 Not Found'\n  sorry: 'Lo sentimos, esta página no parece existir'\n  maybe: 'Tal vez el caché esté haciendo cosas raras, ¿probamos a refrescar forzosamente?'\n  backHome: 'Back home'\nfavoriteButton:\n  remove: 'Quitar de favoritos'\n  add: 'Añadir a favoritos'\ntoolCard:\n  new: Nuevo\nsearch:\n  label: Buscar\ntools:\n  categories:\n    favorite-tools: 'Tus herramientas favoritas'\n    crypto: Crypto\n    converter: Converter\n    web: Web\n    images and videos: 'Images & Videos'\n    development: Development\n    network: Network\n    math: Math\n    measurement: Measurement\n    text: Text\n    data: Data\n"
  },
  {
    "path": "locales/fr.yml",
    "content": "home:\n  categories:\n    newestTools: 'Les nouveaux outils'\n    favoriteTools: 'Vos outils favoris'\n    allTools: 'Tous les outils'\n    favoritesDndToolTip: 'Faites glisser et déposez pour réordonner vos favoris'\n  subtitle: 'Outils pour les développeurs'\n  toggleMenu: 'Menu'\n  home: Accueil\n  uiLib: 'UI Lib'\n  buyMeACoffee: 'Soutenez IT-Tools'\n  follow:\n    title: 'Vous aimez it-tools ?'\n    p1: 'Soutenez-nous avec une star sur'\n    githubRepository: \"le dépôt GitHub d'IT-Tools\"\n    p2: 'ou suivez-nous sur'\n    twitterXAccount: \"le compte X d'IT-Tools\"\n    thankYou: 'Merci !'\n  nav:\n    github: 'Dépôt GitHub'\n    githubRepository: \"Dépôt GitHub d'IT-Tools\"\n    twitterX: 'Compte X'\n    twitterXAccount: \"Compte X d'IT-Tools\"\n    about: \"À propos d'IT-Tools\"\n    aboutLabel: 'À propos'\n    darkMode: 'Mode sombre'\n    lightMode: 'Mode clair'\n    mode: 'Basculer le mode sombre/clair'\nabout:\n  content: >\n    # À propos de IT-Tools\n\n    Ce merveilleux site, fait avec ❤ par [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=about), regroupe des outils utiles pour les développeurs et les personnes travaillant dans l'informatique. Si vous le trouvez utile, n'hésitez pas à le partager et n'oubliez pas de le mettre dans vos favoris !\n\n    IT Tools est open-source (sous licence GPL-3.0) et gratuit, et le restera toujours, mais cela me coûte de l'argent pour l'héberger et renouveler le nom de domaine. Si vous voulez soutenir mon travail, et m'encourager à ajouter plus d'outils, n'hésitez pas à me [soutenir](https://www.buymeacoffee.com/cthmsst).\n\n    ## Technologies\n\n    IT Tools est fait en Vue.js (Vue 3) avec la bibliothèque de composants Naive UI et est hébergé et déployé en continu par Vercel. Des bibliothèques open-source tierces sont utilisées dans certains outils, vous pouvez trouver la liste complète dans le fichier [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) du dépôt.\n\n    ## Vous avez trouvé un bug ? Un outil manque ?\n\n    Si vous avez besoin d'un outil qui n'est pas encore présent ici, et que vous pensez qu'il peut être utile, vous êtes invité à soumettre une demande de fonctionnalité dans la [section issue](https://github.com/CorentinTh/it-tools/issues/new/choose) du dépôt GitHub.\n\n404:\n  notFound: '404 Not Found'\n  sorry: \"Désolé, cette page n'existe pas\"\n  maybe: 'Peut-être que le cache fait des siennes, essayez de forcer le rafraîchissement ?'\n  backHome: \"Retour à l'accueil\"\ntoolCard:\n  new: Nouveau\nsearch:\n  label: Rechercher\ntools:\n  categories:\n    favorite-tools: 'Vos outils favoris'\n    crypto: Cryptographie\n    converter: Convertisseur\n    web: Web\n    images and videos: 'Images & Vidéos'\n    development: Développement\n    network: Réseau\n    math: Math\n    measurement: Mesure\n    text: Texte\n    data: Données\n\n  token-generator:\n    title: Générateur de token\n    description: >-\n      Génère une chaîne aléatoire avec les caractères que vous voulez, lettres\n      majuscules ou minuscules, chiffres et/ou symboles.\n    uppercase: Majuscules (ABC...)\n    lowercase: Minuscules (abc...)\n    numbers: Chiffres (123...)\n    symbols: Symboles (!-;...)\n    button:\n      copy: Copier\n      refresh: Rafraichir\n    copied: Le token a été copié\n    length: Longueur\n    tokenPlaceholder: Le token...\n"
  },
  {
    "path": "locales/no.yml",
    "content": "home:\n  categories:\n    newestTools: Nyeste verktøy\n    favoriteTools: 'Dine favoritt verktøy'\n    allTools: 'Alle verktøyene'\n    favoritesDndToolTip: 'Dra og slipp for å omordne favoritter'\n  subtitle: 'Nyttige verktøy for utviklere'\n  toggleMenu: 'Vekslemenmy'\n  home: Hjem\n  uiLib: 'UI Bib'\n  support: 'Støtt utviklingen av IT-Tools'\n  buyMeACoffee: 'Kjøp en kaffe til meg'\n  follow:\n    title: 'Liker du it-tools?'\n    p1: 'Gi oss en stjerne på'\n    githubRepository: 'IT-Tools GitHub-depotet'\n    p2: 'eller følg oss på'\n    twitterXAccount: 'IT-Tools sin X konto'\n    thankYou: 'Tusen takk!'\n  nav:\n    github: 'GitHub-depot'\n    githubRepository: 'IT-Tools GitHub-depot'\n    twitterX: 'X konto'\n    twitterXAccount: 'IT Tools X konto'\n    about: 'Om  IT-Tools'\n    aboutLabel: 'Om'\n    darkMode: 'Mørk modus'\n    lightMode: 'Lys modus'\n    mode: 'Veksle mørk/lys modus'\nabout:\n  content: >\n    # Om IT-Tools\n\n    Denne vidunderlige nettsiden, laget med ❤ av [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=about) , sammenstiller nyttige verktøy for utviklere og folk som jobber innen IT. Hvis du finner dette nyttig, Del det gjerne med andre som du tror kan få nytte av dette, og ikke glem å lage et bokmerke!\n\n    IT Tools er åpen kildekode (under GPL-3.0 lisensen) og gratis, og det vil det alltid være, men det koster å drifte og å fornye domenet. Hvis du ønsker å støtte arbeidet mitt, og motivere meg til å legge til flere verktøy, gjerne støtt meg ved å [sponse meg](https://www.buymeacoffee.com/cthmsst).\n\n    ## Teknologier\n\n    IT Tools er laget i Vue.js (Vue 3) med Naive UI komponent bibliotektet og er hosted og kontinuerlig deployet av Vercel. Tredjeparts åpen-kildekode biblioteker er brukt i noen verktøy, du kan finne den komplette listen i [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) filen i depoet.\n\n    ## Funnet en feil? Et verktøy som mangler?\n\n    Hvis du trenger et verktøy som foreløpig ikke er tilgjengelig her, og du tenker det kan være nyttig for andre, så er du velkommen til å legge til en funksjonsforespørsel i [problem seksjonen](https://github.com/CorentinTh/it-tools/issues/new/choose) i github-depotet.\n\n    Og hvis du har funnet en feil, eller noe ikke oppfører seg som forventet, vennligst send inn en feilrapport i [problem seksjonen](https://github.com/CorentinTh/it-tools/issues/new/choose) i github-depotet.\n\n404:\n  notFound: '404 ikke funnet'\n  sorry: 'Beklager, denne siden ser ikke ut til å eksistere'\n  maybe: 'Kanskje informasjonskapslene oppfører seg rart, prøvd en tvungen oppfriskning?'\n  backHome: 'Tilbake til start'\nfavoriteButton:\n  remove: 'Fjern fra favoritter'\n  add: 'Legg til favoritter'\ntoolCard:\n  new: Ny\nsearch:\n  label: Søk\ntools:\n  categories:\n    favorite-tools: 'Dine favoritt verktøy'\n    crypto: Krypto\n    converter: Konvertering\n    web: Web\n    images and videos: 'Bilder & Videoer'\n    development: Utvikling\n    network: Nettverk\n    math: Matte\n    measurement: Måling\n    text: Tekst\n    data: Data\n\n  password-strength-analyser:\n    title: Analyseverktøy for passordstyrke\n    description: Oppdag styrken av passordet ditt med dette kun-klient-maskin passordstyrke analyse verktøyet og se den estimerte knekketiden.\n\n  chronometer:\n    title: Kronometer\n    description: Overvåk varigheten av noe. I bunn og grunn et kronometer med enkle funksjoner.\n\n  token-generator:\n    title: Token generator\n    description: Generer en tilfeldig streng med store og/eller små bokstaver, siffer og/eller symboler.\n\n    uppercase: Store bokstaver (ABC...)\n    lowercase: Små bokstaver (abc...)\n    numbers: Siffer (123...)\n    symbols: Symboler (!-;...)\n    length: Lengde\n    tokenPlaceholder: 'Tokenet...'\n    copied: Tokenet er kopiert til utklippstavlen.\n    button:\n      copy: Kopier\n      refresh: Oppfrisk\n  percentage-calculator:\n    title: Prosent kalkulator\n    description: Beregn enkelt prosenter fra en verdi til en annen, eller fra en prosent til en verdi.\n\n  svg-placeholder-generator:\n    title: SVG plassholder generator\n    description: Generer svg bilder til å bruke som plassholder i applikasjonen din.\n\n  json-to-csv:\n    title: JSON til CSV\n    description: Konverter JSON til CSV med automatisk oppdagelse av headeren.\n\n  camera-recorder:\n    title: Kameraopptak\n    description: Ta et bilde eller spill inn en video med webkamera eller kameraet ditt.\n\n  keycode-info:\n    title: Tastekode info\n    description: Finn javascript tastekode, kode, plassering og modifikatorer av hvilken som helst tast.\n\n  emoji-picker:\n    title: Emoji velger\n    description: Klipp og lim emojis og få unicode og kode verdien av hver emoji.\n\n  color-converter:\n    title: Farge konverter\n    description: Konverter farger mellom de forskjellige formatene (hex, rgb, hsl og css navn).\n\n  bcrypt:\n    title: Bcrypt\n    description: Hash og sammenlign tekst ved hjelp av bcrypt. Bcrypt er en passord-hashings funksjon basert på Blowfish cipher.\n\n  crontab-generator:\n    title: Crontab generator\n    description: Verifiser og generer crontab og få den mennesklig leselige beskrivelsen av cron timeplanen.\n\n  http-status-codes:\n    title: HTTP status koder\n    description: Liste over alle HTTP status koder, navnet dems, og betydningen.\n\n  sql-prettify:\n    title: SQL forskjønning and format\n    description: Formater og forskjønn SQL spørringene dine (den støtter forskjellige SQL dialekter).\n\n  benchmark-builder:\n    title: Bygg en referansemåler\n    description: Sammenlign enkelt kjøretiden av oppgaver med denne enkle referansemåls byggeren.\n\n  git-memo:\n    title: Git jukselapp\n    description: Git er en desentralisert versjons håndterings programvare. Med denne jukselappen vil du få kjapp tilgang til de vanligste kommandoene.\n\n  slugify-string:\n    title: Slugify streng\n    description: Lag en trygg url, filbane eller id.\n\n  encryption:\n    title: Krypter / decrypter tekst\n    description: Krypter klartekst og dekrypter ciphertekst ved bruk av krypteringsalgoritmer som AES, TripleDES, Rabbit eller RC4.\n\n  random-port-generator:\n    title: Tilfeldig port generator\n    description: Generer tilfeldige portnumre utenfor scopet av \"kjente\" porter (0-1023).\n\n  yaml-prettify:\n    title: YAML forskjønning og formatering\n    description: Forskjønn YAML strengene dine til et lettlest format.\n\n  eta-calculator:\n    title: ETA kalkulator\n    description: En ETA (Estimert Tid for Ankomst) kalkulator for å anslå den sannsynelige slutt tiden for en oppgave, for eksempel, slutttiden og varigheten av en filnedlastning.\n\n  roman-numeral-converter:\n    title: Romertall konverter\n    description: Konverter romertall til tall eller konverter tall til romertall.\n\n  hmac-generator:\n    title: Hmac generator\n    description: Beregn en hash-basert meldings authentiserings kode (HMAC) ved bruk av en hemmelig nøkkel og din foretrukne hashings funksjon.\n\n  bip39-generator:\n    title: BIP39 nøkkelords generator\n    description: Generer et BIP39 nøkkelord fra en eksisterende eller tilfeldig huskesetning, eller få ut en huskesetning fra nøkkelordet.\n\n  base64-file-converter:\n    title: Base64 fil konverter\n    description: Konverter en base64 streng til fil eller en fil, bilde til en base64 representasjon.\n\n  list-converter:\n    title: Liste konverterer\n    description: Dette verktøyet kan prosessere kolonnebasert data og foreta forskjellige endringer (transposering, legge til prefix og suffix, reversere lister, sortere lister, gjøre om til små bokstaver, trunkere verdier) på hver rad.\n\n  base64-string-converter:\n    title: Base64 string kode/dekoder\n    description: Enkelt kode eller dekode en tekststreng til base64 representasjonen av strengen.\n\n  toml-to-yaml:\n    title: TOML til YAML\n    description: Parser og konverter TOML til YAML.\n\n  math-evaluator:\n    title: Matematikkevaluator\n    description: En Kalkulator for å evaluere matematiske uttrykk. Du kan bruke funksjoner som sqrt, cos, sin, abs, etc.\n\n  json-to-yaml-converter:\n    title: JSON til YAML konverterer\n    description: Enkelt konverter JSON til YAML med dette verktøyet.\n\n  url-parser:\n    title: URL analyse\n    description: Parsere en URL ned til bestanddelene (protokoll, opprinnelse, parametre, port, brukernavn-passord, ...).\n\n  iban-validator-and-parser:\n    title: IBAN validering og analysering\n    description: Valider og parser IBAN numre. Sjekk om et IBAN er gyldig og få landet, BBAN, om det er en QR-IBAN og IBAN i et vennlig format.\n\n  user-agent-parser:\n    title: User-agent analysering\n    description: Detekter og parser nettleser, motor, OS, CPU, og enhet type/modell fra en user-agent tekst streng.\n\n  numeronym-generator:\n    title: Numeronym generator\n    description: Et numeronym er et ord hvor et nummer er brukt til å lage en forkortelse. For eksempel, \"i18n\" er et numeronym for \"internasjonalisering\" hvor 18 står for antall bokstaver mellom første bokstaven i og den siste bokstaven n i ordet.\n\n  case-converter:\n    title: Bokstavkonvertering\n    description: Formater bokstavene med store eller små bokstaver, samt andre format.\n\n  html-entities:\n    title: HTML streng rensing\n    description: Rens bort eller omsvøp HTML entiteter (erstatt tegn som <,>, &, \" and \\' med deres HTML versjon).\n\n  json-prettify:\n    title: JSON forskjønning og formatering\n    description: Forskjønn JSON strenger til et lettlest format.\n\n  docker-run-to-docker-compose-converter:\n    title: Docker run til Docker compose konverter\n    description: Konverter \"docker run\" kommandoer til docker-compose filer!\n\n  mac-address-lookup:\n    title: MAC address oppslagsverk\n    description: Finn forhandler og produsent basert på MAC adressen.\n\n  mime-types:\n    title: MIME typer\n    description: Konverter MIME typer til fil utvidelser og visa-versa.\n\n  toml-to-json:\n    title: TOML til JSON\n    description: Parser og konverter TOML til JSON.\n\n  lorem-ipsum-generator:\n    title: Lorem ipsum generator\n    description: Lorem ipsum er brukt som plassholder tekst, vanligvis brukt til å demonstrere den visuelle formen av et dokument eller font-type uten å måtte ha meningsfult innhold.\n\n  qrcode-generator:\n    title: QR Kode generator\n    description: Generer og last ned en QR kode til en URL (eller ren tekst), og tilpass bakgrunns og forgrunns farger.\n\n  wifi-qrcode-generator:\n    title: WiFi QR Kode generator\n    description: Generer og last ned QR koder for rask tilkobling til wifi nettverket.\n\n  xml-formatter:\n    title: XML formaterer\n    description: Forskjønn en XML streng til et lettlest format.\n\n  temperature-converter:\n    title: Temperatur konverter\n    description: Temperatur konversjoner mellom Kelvin, Celsius, Fahrenheit, Rankine, Delisle, Newton, Réaumur, og Rømer.\n\n  chmod-calculator:\n    title: Chmod kalkulator\n    description: Beregn chmod tillatelser og kommandoer med denne chmod kalkulatoren.\n\n  rsa-key-pair-generator:\n    title: RSA nøkkelpar generator\n    description: Generer et nytt tilfeldig RSA privat og offentlig pem sertifikat nøkkel par.\n\n  html-wysiwyg-editor:\n    title: HTML WYSIWYG editor\n    description: Online, funksjonsrik WYSIWYG HTML editor som genererer kildekoden for innholdet øyeblikkelig.\n\n  yaml-to-toml:\n    title: YAML til TOML\n    description: Parser og konverter YAML til TOML.\n\n  mac-address-generator:\n    title: MAC adresse generator\n    description: Sett inn antall og prefix. MAC addressene blir generert i ønsket format\n\n  json-diff:\n    title: JSON diff\n    description: Sammenlign to JSON objekter og finn forskjellene mellom dem.\n\n  jwt-parser:\n    title: JWT parser\n    description: Parse og dekode et JSON Web Token (jwt) og vis innholdet.\n\n  date-converter:\n    title: Dato-tid konverter\n    description: Konverter dato og tid til forskjellige formater.\n\n  phone-parser-and-formatter:\n    title: Telefon format og parserer\n    description: Parser, valider og formater telefon numre. få innformasjonen om telefon nummeret, slik som landskoden, type etc.\n\n  ipv4-subnet-calculator:\n    title: IPv4 subnet kalkulator\n    description: Parser IPv4 CIDR blokker of åf all info du trenger om subnettet.\n\n  og-meta-generator:\n    title: Open graph meta generator\n    description: Generer open-graph og SoMe HTML meta tagger til nettsiden din.\n\n  ipv6-ula-generator:\n    title: IPv6 ULA generator\n    description: Generer din egen lokale, ikke-rutbare IP adresse til nettverket ditt i henhold til RFC4193.\n\n  hash-text:\n    title: Hash tekst\n    description: 'Hash en tekst streng med en av algoritmene : MD5, SHA1, SHA256, SHA224, SHA512, SHA384, SHA3 eller RIPEMD160'\n\n  json-to-toml:\n    title: JSON til TOML\n    description: Parser og konverter JSON til TOML.\n\n  device-information:\n    title: Enhets informasjon\n    description: Få informasjon om din nåværende enhet (skjermstørrelse, piksel-forhold, user agent, etc.)\n\n  pdf-signature-checker:\n    title: PDF signatur sjekker\n    description: Bekreft signaturen til en PDF fil. En signert PDF fil inneholder en eller flere signaturer som kan bli brukt til å bestemme om en fil har blitt endret etter at den var signert.\n\n  json-minify:\n    title: JSON minifiser\n    description: Minifiser og komprimer JSON ved å fjerne unødvendige mellomrom.\n\n  ulid-generator:\n    title: ULID generator\n    description: Generer tilfeldig Universell Unik Leksikografisk Sorterbar Identifikator (ULID).\n\n  string-obfuscator:\n    title: Streng obfuskator\n    description: Obfusker en streng (som en hemmelighet, en IBAN, eller et token) og gjør den delbar og identifiserbar uten å vise innholdet.\n\n  base-converter:\n    title: Heltalls konverter\n    description: Konverter et heltall mellom forskjellige baser (desimal, hexadesimal, binær, oktal, base64, etc.)\n\n  yaml-to-json-converter:\n    title: YAML til JSON konverter\n    description: Konverterl YAML til JSON.\n\n  uuid-generator:\n    title: UUIDs generator\n    description: En universell Unik Identifikator (UUID) er et 128-bit nummer, brukt til å identifisere informasjon i datasystemer.\n\n  ipv4-address-converter:\n    title: IPv4 adresse konverter\n    description: Konverter en IPv4 adresse til desimal, binær, hexadesimal, eller en IPv6 representasjon.\n\n  text-statistics:\n    title: Tekst statistikk\n    description: Få informasjonen om en tekst, antall karakterer, antall ord, størrelsen i bytes, etc.\n\n  text-to-nato-alphabet:\n    title: Tekst til NATO alfabetet\n    description: Transformer teksten til det NATO fonetiske alfabetet for muntlig gjengivelse.\n\n  basic-auth-generator:\n    title: Basic auth generator\n    description: Generer en base64 basic auth header fra et brukernavn og passord.\n\n  text-to-unicode:\n    title: Tekst til Unicode\n    description: Parser og konverter tekst til unicode og visa-versa\n\n  ipv4-range-expander:\n    title: IPv4 range utvider\n    description: Gitt en start og en slutt IPv4 adresse, kalkulerer dette verktøyet et gyldig IPv4 subnet sammen med sin CIDR notasjon.\n\n  text-diff:\n    title: Tekst diff\n    description: Sammenlign to tekster og vis forskjellen mellom dem.\n\n  otp-generator:\n    title: OTP kode generator\n    description: Generer og valider tidsbasert OTP (one time password) for multi-faktor autentisering.\n\n  url-encoder:\n    title: Kode/dekode URL-formaterte strenger\n    description: Kode tekst til URL-kodet format (også kjent som \"prosent-kodet\"), eller dekode fra det.\n\n  text-to-binary:\n    title: Tekst til ASCII binært\n    description: Konverter tekst til sin ASCII binære representasjon og visa-versa.\n"
  },
  {
    "path": "locales/pt.yml",
    "content": "home:\n  categories:\n    newestTools: 'Novas ferramentas'\n    favoriteTools: 'Suas ferramentas favoritas'\n    allTools: 'Todas as ferramentas'\n    favoritesDndToolTip: 'Arraste e solte para reordenar favoritos'\n  subtitle: 'Ferraentas úteis para desenvolvedores'\n  toggleMenu: 'Menu'\n  home: 'Início'\n  uiLib: 'Biblioteca de UI'\n  support: 'Apoie o desenvolvimento do IT Tools'\n  buyMeACoffee: 'Pague-me um café'\n  follow:\n    title: 'Gostou do it-tools?'\n    p1: 'Dê uma estrela no'\n    githubRepository: 'repositório do IT-Tools no GitHub'\n    p2: 'ou siga nossa'\n    twitterXAccount: 'conta IT-Tools no X'\n    thankYou: 'Obrigado !'\n  nav:\n    github: 'Repositório no GitHub'\n    githubRepository: 'repositório do IT-Tools no GitHub'\n    twitterX: 'Conta no X'\n    twitterXAccount: 'conta do IT Tools no X'\n    about: 'Sobre o IT-Tools'\n    aboutLabel: 'Sobre'\n    darkMode: 'Modo Escuro'\n    lightMode: 'Modo Claro'\n    mode: 'Trocar modo escuro/claro'\nabout:\n  content: >\n    # Sobre o IT-Tools\n\n    Este site maravilhoso, feito com ❤ por [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=about), junta ferramentas úteis para desenvolvedores e outras pessoas que trabalham com TI. Se você achar o site útil, fique à vontade para compartilhar com quem também possa gostar e não esqueça de salvar o bookmark na sua barra de atalhos!\n\n    O IT Tools é código aberto (sob a licença GPL-3.0), é gratuito, e sempre será, mas custa dinheiro para hospedar e renovar o domínio. Se quiser apoiar meu trabalho e me encorajar a adicionar mais ferramentas, por favor considere [ser patrocinador](https://www.buymeacoffee.com/cthmsst).\n\n    ## Tecnologias\n\n    O IT Tools é feito em Vue.js (Vue 3) com a biblioteca de componentes Naive UI e é hospedado pela Vercel. Bibliotecas de código aberto de terceiros são usadas em algumas ferramentas e você pode encontrar a lista completa no arquivo [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) do repositório.\n\n    ## Achou um bug? Está faltando uma ferramenta?\n\n    Se você precisa de uma ferramenta que ainda não existe aqui e acha que pode ser útil, seu pedido será bem vindo na [seção de issues](https://github.com/CorentinTh/it-tools/issues/new/choose) no repositório do GitHub.\n\n    E se você encontrar um bug ou se algo não funcionar como esperado, por favor registre um relato de bug na [seção de issues](https://github.com/CorentinTh/it-tools/issues/new/choose) no GitHub.\n\n404:\n  notFound: '404 Não Encontrado'\n  sorry: 'Desculpe, parece que essa página não existe'\n  maybe: 'Talvez o cache esteja fazendo bobagem, que tal tentar forçar a atualização?'\n  backHome: 'Voltar para o início'\nfavoriteButton:\n  remove: 'Remover dos favoritos'\n  add: 'Adicionar aos favoritos'\ntoolCard:\n  new: 'Novo'\nsearch:\n  label: 'Pesquisar'\ntools:\n  categories:\n    favorite-tools: 'Suas ferramentas favoritas'\n    crypto: 'Cripto'\n    converter: 'Conversores'\n    web: 'Web'\n    images and videos: 'Imagens & Vídeos'\n    development: 'Desenvolvimento'\n    network: 'Rede'\n    math: 'Matemática'\n    measurement: 'Medidas'\n    text: 'Texto'\n    data: 'Dados'\n"
  },
  {
    "path": "locales/uk.yml",
    "content": "home:\n  categories:\n    newestTools: Найновіші інструменти\n    favoriteTools: 'Ваші улюблені інструменти'\n    allTools: 'Усі інструменти'\n    favoritesDndToolTip: 'Перетягніть і відпустіть, щоб змінити порядок улюблених'\n  subtitle: 'Зручні інструменти для розробників'\n  toggleMenu: 'Перемикання меню'\n  home: Головна\n  uiLib: 'UI Бібліотека'\n  support: 'Підтримка розробки IT Tools'\n  buyMeACoffee: 'Купи мені каву'\n  follow:\n    title: 'Вам подобаються інструменти IT?'\n    p1: 'Додайте нам зірку на'\n    githubRepository: 'GitHub-репозиторій IT-Tools'\n    p2: 'або слідкуйте за нами на'\n    twitterXAccount: 'X-акаунт IT-Tools'\n    thankYou: 'Дякуємо!'\n  nav:\n    github: 'GitHub-репозиторій'\n    githubRepository: 'GitHub-репозиторій IT-Tools'\n    twitterX: 'X'\n    twitterXAccount: 'X-акаунт IT-Tools'\n    about: 'Про IT-Tools'\n    aboutLabel: 'Про нас'\n    darkMode: 'Темний режим'\n    lightMode: 'Світлий режим'\n    mode: 'Перемикання темного/світлого режиму'\nabout:\n  content: >\n    # Про IT-Tools\n\n    Цей чудовий вебсайт, створений з ❤ [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=about), агрегує корисні інструменти для розробників і людей, які працюють в сфері IT. Якщо вам це корисно, будь ласка, поділіться цим з людьми, які, на вашу думку, також можуть знайти його корисним, і не забудьте додати його до закладок у вашій панелі швидкого доступу!\n\n    IT Tools є відкритим програмним забезпеченням (під ліцензією GPL-3.0) і безкоштовним, і завжди буде таким, але мені коштує гроші для хостингу і продовження доменного імені. Якщо ви хочете підтримати мою роботу і підтримати мене у додаванні нових інструментів, розгляньте можливість підтримки, [спонсоруючи мене](https://www.buymeacoffee.com/cthmsst).\n\n    ## Технології\n\n    IT Tools виконаний на Vue.js (Vue 3) з використанням бібліотеки компонентів Naive UI і розгортаний за допомогою Vercel. У деяких інструментах використовуються сторонні відкриті бібліотеки, повний список яких ви можете знайти в файлі [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) репозиторію.\n\n    ## Знайшли баг? Відсутній інструмент?\n\n    Якщо вам потрібен інструмент, якого наразі немає тут, і ви вважаєте, що він може бути корисним, ви можете подати запит на додавання функції в [розділі проблем](https://github.com/CorentinTh/it-tools/issues/new/choose) у репозиторії GitHub.\n\n    А якщо ви знайшли баг або щось не працює, як очікувалося, будь ласка, подайте звіт про баг в [розділі проблем](https://github.com/CorentinTh/it-tools/issues/new/choose) у репозиторії GitHub.\n\n404:\n  notFound: '404 Сторінка не знайдена'\n  sorry: 'Вибачте, ця сторінка, схоже, не існує'\n  maybe: 'Можливо, кеш робить хитрощі, спробуйте примусово оновити сторінку?'\n  backHome: 'Повернутися на головну'\nfavoriteButton:\n  remove: 'Вилучити з обраних'\n  add: 'Додати до обраних'\ntoolCard:\n  new: Новий\nsearch:\n  label: Пошук\ntools:\n  categories:\n    favorite-tools: 'Ваші улюблені інструменти'\n    crypto: Крипта\n    converter: Конвертер\n    web: Веб\n    images and videos: 'Зображення та відео'\n    development: Розробка\n    network: Мережа\n    math: Математика\n    measurement: Вимірювання\n    text: Текст\n    data: Дані\n"
  },
  {
    "path": "locales/vi.yml",
    "content": "home:\n  categories:\n    newestTools: Công cụ mới nhất\n    favoriteTools: 'Công cụ yêu thích của bạn'\n    allTools: 'Tất cả công cụ'\n    favoritesDndToolTip: 'Kéo thả để sắp xếp lại yêu thích'\n  subtitle: 'Công cụ cho nhà phát triển.'\n  toggleMenu: 'Chuyển đổi menu'\n  home: Trang chủ\n  uiLib: 'Thư viện UI'\n  support: 'Hỗ trợ phát triển IT Tools'\n  buyMeACoffee: 'Ủng hộ tác giả'\n  follow:\n    title: 'Bạn thích IT-tools?'\n    p1: 'Hãy cho chúng tôi một ngôi sao trên'\n    githubRepository: 'Kho GitHub IT-Tools'\n    p2: 'hoặc theo dõi chúng tôi trên'\n    twitterXAccount: 'Tài khoản X IT-Tools'\n    thankYou: 'Cảm ơn bạn!'\n  nav:\n    github: 'Kho GitHub'\n    githubRepository: 'Kho GitHub IT-Tools'\n    twitterX: 'Tài khoản X'\n    twitterXAccount: 'Tài khoản X IT Tools'\n    about: 'Về IT-Tools'\n    aboutLabel: 'Giới thiệu'\n    darkMode: 'Chế độ tối'\n    lightMode: 'Chế độ sáng'\n    mode: 'Chuyển đổi chế độ tối/sáng'\nabout:\n  content: >\n    # Về IT-Tools\n\n    Website tuyệt vời này, được tạo ra bằng ❤ bởi [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=about), tổng hợp các công cụ hữu ích cho nhà phát triển và những người làm việc trong lĩnh vực IT. Nếu bạn thấy nó hữu ích, xin đừng ngần ngại chia sẻ cho những người mà bạn nghĩ sẽ thấy nó hữu ích và đừng quên đánh dấu nó trong thanh lối tắt của bạn!\n\n    IT Tools là mã nguồn mở (dưới giấy phép GPL-3.0) và miễn phí, và sẽ luôn như vậy, nhưng tôi phải trả tiền để lưu trữ và gia hạn tên miền. Nếu bạn muốn hỗ trợ công việc của tôi, và khích lệ tôi thêm nhiều công cụ hơn, hãy xem xét hỗ trợ bằng cách [tài trợ cho tôi](https://www.buymeacoffee.com/cthmsst).\n\n    ## Công nghệ\n\n    IT Tools được tạo ra bằng Vue.js (Vue 3) với thư viện thành phần Naive UI và được lưu trữ và triển khai liên tục bởi Vercel. Các thư viện mã nguồn mở của bên thứ ba được sử dụng trong một số công cụ, bạn có thể tìm danh sách đầy đủ trong file [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) của kho lưu trữ.\n\n    ## Phát hiện lỗi? Một công cụ bị thiếu?\n\n    Nếu bạn cần một công cụ hiện không có ở đây, và bạn nghĩ rằng nó có thể hữu ích, bạn được chào đón để gửi một yêu cầu tính năng trong [phần vấn đề](https://github.com/CorentinTh/it-tools/issues/new/choose) trong kho GitHub.\n\n    Và nếu bạn phát hiện ra một lỗi, hoặc điều gì đó không hoạt động như mong đợi, xin vui lòng gửi báo cáo lỗi trong [phần vấn đề](https://github.com/CorentinTh/it-tools/issues/new/choose) trong kho GitHub.\n\n404:\n  notFound: '404 Không Tìm Thấy'\n  sorry: 'Xin lỗi, trang này dường như không tồn tại'\n  maybe: 'Lỗi xảy ra có thể do bộ nhớ đệm, hãy (CTRL + F5) để tải lại trang?'\n  backHome: 'Quay về trang chủ'\nfavoriteButton:\n  remove: 'Xóa khỏi mục yêu thích'\n  add: 'Thêm vào mục yêu thích'\ntoolCard:\n  new: Mới\nsearch:\n  label: Tìm kiếm\ntools:\n  categories:\n    favorite-tools: 'Công cụ yêu thích của bạn'\n    crypto: Mã hóa\n    converter: Chuyển đổi\n    web: Web\n    images and videos: 'Hình ảnh & Video'\n    development: Phát triển\n    network: Mạng\n    math: Toán học\n    measurement: Đo lường\n    text: Văn bản\n    data: Dữ liệu\n\n  password-strength-analyser:\n    title: Bộ phân tích độ mạnh mật khẩu\n    description: Khám phá độ mạnh của mật khẩu của bạn với công cụ phân tích độ mạnh mật khẩu chỉ chạy trên phía máy khách và ước tính thời gian phá mật khẩu.\n\n  chronometer:\n    title: Đồng hồ bấm giờ\n    description: Giám sát thời gian của một sự việc. Cơ bản là một đồng hồ bấm giờ với các tính năng đơn giản.\n\n  token-generator:\n    title: Trình tạo mã thông báo\n    description: Tạo chuỗi ngẫu nhiên với các ký tự bạn muốn, chữ hoa hoặc chữ thường, số và/hoặc ký tự đặc biệt.\n\n    uppercase: Chữ hoa (ABC...)\n    lowercase: Chữ thường (abc...)\n    numbers: Số (123...)\n    symbols: Ký tự đặc biệt (!-;...)\n    length: Độ dài\n    tokenPlaceholder: 'Mã thông báo...'\n    copied: Mã thông báo đã được sao chép vào clipboard\n    button:\n      copy: Sao chép\n      refresh: Làm mới\n\n  percentage-calculator:\n    title: Máy tính phần trăm\n    description: Dễ dàng tính toán phần trăm từ một giá trị đến giá trị khác, hoặc từ một phần trăm đến một giá trị.\n\n  svg-placeholder-generator:\n    title: Trình tạo hình ảnh SVG giả định\n    description: Tạo hình ảnh svg để sử dụng làm giả định trong ứng dụng của bạn.\n\n  json-to-csv:\n    title: Chuyển đổi JSON thành CSV\n    description: Chuyển đổi JSON thành CSV với việc tự động phát hiện tiêu đề.\n\n  camera-recorder:\n    title: Ghi lại camera\n    description: Chụp ảnh hoặc quay video từ webcam hoặc máy ảnh của bạn.\n  keycode-info:\n    title: Thông tin Keycode\n    description: Tìm mã keycode, mã, vị trí và các phím điều khiển của bất kỳ phím nào được nhấn.\n\n  emoji-picker:\n    title: Bộ chọn biểu tượng cảm xúc\n    description: Sao chép và dán biểu tượng cảm xúc một cách dễ dàng và nhận giá trị unicode và mã điểm của mỗi biểu tượng cảm xúc.\n\n  color-converter:\n    title: Trình chuyển đổi màu\n    description: Chuyển đổi màu giữa các định dạng khác nhau (hex, rgb, hsl và tên css)\n\n  bcrypt:\n    title: Bcrypt\n    description: Mã hóa và so sánh chuỗi văn bản sử dụng bcrypt. Bcrypt là một hàm mã hóa mật khẩu dựa trên thuật toán Blowfish.\n  crontab-generator:\n    title: Trình tạo Crontab\n    description: Xác thực và tạo crontab và lấy mô tả đọc được của lịch trình cron.\n  http-status-codes:\n    title: Mã trạng thái HTTP\n    description: Danh sách tất cả các mã trạng thái HTTP, tên và ý nghĩa của chúng.\n\n  sql-prettify:\n    title: Định dạng và làm đẹp SQL\n    description: Định dạng và làm đẹp các truy vấn SQL của bạn trực tuyến (hỗ trợ nhiều ngôn ngữ SQL khác nhau).\n\n  benchmark-builder:\n    title: Trình tạo bảng đánh giá\n    description: Dễ dàng so sánh thời gian thực thi của các nhiệm vụ với trình tạo bảng đánh giá trực tuyến đơn giản này.\n  git-memo:\n    title: Lệnh Git\n    description: Git là một phần mềm quản lý phiên bản phân tán. Với bảng ghi chú này, bạn sẽ có thể truy cập nhanh vào các lệnh Git phổ biến nhất.\n\n  slugify-string:\n    title: Chuyển đổi chuỗi thành slug\n    description: Biến đổi chuỗi thành dạng an toàn để sử dụng trong URL, tên file và ID.\n\n  encryption:\n    title: Mã hóa / giải mã văn bản\n    description: Mã hóa và giải mã văn bản rõ bằng cách sử dụng thuật toán mã hóa như AES, TripleDES, Rabbit hoặc RC4.\n\n  random-port-generator:\n    title: Trình tạo số cổng ngẫu nhiên\n    description: Tạo số cổng ngẫu nhiên nằm ngoài phạm vi của các cổng \"biết được\" (0-1023).\n\n  yaml-prettify:\n    title: Định dạng và làm đẹp YAML\n    description: Định dạng chuỗi YAML của bạn thành một định dạng dễ đọc và thân thiện với con người.\n\n  eta-calculator:\n    title: Máy tính ETA\n    description: Một máy tính ETA (Thời gian dự kiến đến) để biết thời gian kết thúc xấp xỉ của một nhiệm vụ, ví dụ như thời điểm kết thúc của một quá trình tải xuống.\n\n  roman-numeral-converter:\n    title: Bộ chuyển đổi số La Mã\n    description: Chuyển đổi số La Mã thành số và chuyển đổi số thành số La Mã.\n\n  hmac-generator:\n    title: Máy tạo HMAC\n    description: Tính toán mã xác thực thông điệp dựa trên hash (HMAC) sử dụng một khóa bí mật và hàm băm yêu thích của bạn.\n\n  bip39-generator:\n    title: Trình tạo BIP39 passphrase\n    description: Tạo BIP39 passphrase từ mnemonic hiện có hoặc ngẫu nhiên, hoặc lấy mnemonic từ passphrase.\n  base64-file-converter:\n    title: Trình chuyển đổi tệp Base64\n    description: Chuyển đổi chuỗi, tệp hoặc hình ảnh thành mã Base64.\n  list-converter:\n    title: Trình chuyển đổi danh sách\n    description: Công cụ này có thể xử lý dữ liệu dựa trên cột và áp dụng các thay đổi khác nhau (đảo ngược, thêm tiền tố và hậu tố, đảo danh sách, sắp xếp danh sách, giảm giá trị thành chữ thường, cắt giá trị) cho mỗi hàng.\n\n  base64-string-converter:\n    title: Trình mã hóa/giải mã chuỗi Base64\n    description: Đơn giản mã hóa và giải mã chuỗi thành mã Base64.\n  toml-to-yaml:\n    title: Chuyển đổi TOML thành YAML\n    description: Phân tích và chuyển đổi TOML thành YAML.\n\n  math-evaluator:\n    title: Trình đánh giá toán học\n    description: Một máy tính để tính toán biểu thức toán học. Bạn có thể sử dụng các hàm như sqrt, cos, sin, abs, v.v.\n\n  json-to-yaml-converter:\n    title: Chuyển đổi JSON sang YAML\n    description: Chuyển đổi đơn giản JSON sang YAML với công cụ chuyển đổi trực tuyến này.\n\n  url-parser:\n    title: Trình phân tích URL\n    description: Phân tích một chuỗi URL để lấy tất cả các phần khác nhau (giao thức, nguồn gốc, tham số, cổng, tên người dùng-mật khẩu, ...)\n\n  iban-validator-and-parser:\n    title: Kiểm tra và phân tích số IBAN\n    description: Xác thực và phân tích số IBAN. Kiểm tra tính hợp lệ của IBAN và lấy thông tin về quốc gia, BBAN, xem có phải là QR-IBAN và định dạng thân thiện của IBAN.\n\n  user-agent-parser:\n    title: Trình phân tích User-agent\n    description: Phát hiện và phân tích trình duyệt, engine, hệ điều hành, CPU và kiểu/mô hình thiết bị từ chuỗi user-agent.\n\n  numeronym-generator:\n    title: Trình tạo Numeronym\n    description: Numeronym là một từ mà một số được sử dụng để tạo thành một từ viết tắt. Ví dụ, \"i18n\" là một numeronym của \"internationalization\" trong đó số 18 đại diện cho số chữ cái giữa chữ i đầu tiên và chữ n cuối cùng trong từ.\n\n  case-converter:\n    title: Chuyển đổi chữ hoa/chữ thường\n    description: Thay đổi kiểu chữ của một chuỗi và chọn giữa các định dạng khác nhau\n  html-entities:\n    title: Thay thế các ký tự HTML\n    description: Thay thế hoặc bỏ thẻ các ký tự HTML (thay thế <,>, &, \" và \\' thành phiên bản HTML tương ứng)\n\n  json-prettify:\n    title: Định dạng và làm đẹp JSON\n    description: Định dạng chuỗi JSON của bạn thành một định dạng dễ đọc và thân thiện với con người.\n\n  docker-run-to-docker-compose-converter:\n    title: Chuyển đổi lệnh docker run thành tệp docker-compose\n    description: Chuyển đổi các lệnh docker run thành tệp docker-compose!\n\n  mac-address-lookup:\n    title: Tra cứu địa chỉ MAC\n    description: Tìm nhà sản xuất và nhà cung cấp của thiết bị dựa trên địa chỉ MAC.\n\n  mime-types:\n    title: Loại Mime\n    description: Chuyển đổi loại mime thành phần mở rộng và ngược lại.\n\n  toml-to-json:\n    title: Chuyển đổi TOML thành JSON\n    description: Phân tích và chuyển đổi TOML thành JSON.\n\n  lorem-ipsum-generator:\n    title: Máy tạo văn bản Lorem ipsum\n    description: Lorem ipsum là một đoạn văn bản giả được sử dụng phổ biến để thể hiện hình thức của một tài liệu hoặc một kiểu chữ mà không cần dựa vào nội dung có ý nghĩa\n\n  qrcode-generator:\n    title: Tạo mã QR\n    description: Tạo và tải xuống mã QR cho một URL hoặc chỉ một đoạn văn bản và tùy chỉnh màu nền và màu chữ.\n\n  wifi-qrcode-generator:\n    title: Tạo mã QR WiFi\n    description: Tạo và tải xuống mã QR để kết nối nhanh đến mạng WiFi.\n\n  xml-formatter:\n    title: Định dạng XML\n    description: Định dạng chuỗi XML của bạn thành một định dạng dễ đọc và thân thiện với con người.\n\n  temperature-converter:\n    title: Bộ chuyển đổi nhiệt độ\n    description: Chuyển đổi độ nhiệt độ cho Kelvin, Celsius, Fahrenheit, Rankine, Delisle, Newton, Réaumur và Rømer.\n\n  chmod-calculator:\n    title: Máy tính Chmod\n    description: Tính toán quyền và lệnh chmod của bạn với máy tính Chmod trực tuyến này.\n  rsa-key-pair-generator:\n    title: Trình tạo cặp khóa RSA\n    description: Tạo các chứng chỉ pem khóa riêng tư và khóa công khai RSA ngẫu nhiên mới.\n\n  html-wysiwyg-editor:\n    title: Trình soạn thảo HTML WYSIWYG\n    description: Trình soạn thảo HTML trực tuyến với trình soạn thảo WYSIWYG đa chức năng, lấy mã nguồn của nội dung ngay lập tức.\n\n  yaml-to-toml:\n    title: YAML sang TOML\n    description: Phân tích và chuyển đổi YAML sang TOML.\n\n  mac-address-generator:\n    title: Trình tạo địa chỉ MAC\n    description: Nhập số lượng và tiền tố. Địa chỉ MAC sẽ được tạo ra theo kiểu chữ hoa hoặc chữ thường theo lựa chọn của bạn\n\n  json-diff:\n    title: So sánh JSON\n    description: So sánh hai đối tượng JSON và lấy ra sự khác biệt giữa chúng.\n\n  jwt-parser:\n    title: Giải mã JWT\n    description: Giải mã và hiển thị nội dung của JSON Web Token (jwt).\n\n  date-converter:\n    title: Chuyển đổi ngày-tháng\n    description: Chuyển đổi ngày và thời gian sang các định dạng khác nhau\n\n  phone-parser-and-formatter:\n    title: Trình phân tích và định dạng số điện thoại\n    description: Phân tích, xác thực và định dạng số điện thoại. Lấy thông tin về số điện thoại, như mã quốc gia, loại, v.v.\n\n  ipv4-subnet-calculator:\n    title: Máy tính mạng con IPv4\n    description: Phân tích các khối CIDR IPv4 của bạn và nhận thông tin về mạng con của bạn.\n\n  og-meta-generator:\n    title: Trình tạo meta Open Graph\n    description: Tạo các thẻ meta HTML Open Graph và mạng xã hội cho trang web của bạn.\n\n  ipv6-ula-generator:\n    title: Trình tạo địa chỉ IPv6 ULA\n    description: Tạo địa chỉ IP cục bộ, không thể định tuyến trên mạng của bạn theo RFC4193.\n\n  hash-text:\n    title: Mã hóa văn bản\n    description: 'Mã hóa một chuỗi văn bản bằng cách sử dụng các hàm bạn cần: MD5, SHA1, SHA256, SHA224, SHA512, SHA384, SHA3 hoặc RIPEMD160'\n  json-to-toml:\n    title: Chuyển đổi JSON sang TOML\n    description: Phân tích và chuyển đổi JSON sang TOML.\n\n  device-information:\n    title: Thông tin thiết bị\n    description: Lấy thông tin về thiết bị hiện tại của bạn (kích thước màn hình, tỷ lệ pixel, user agent, ...)\n\n  pdf-signature-checker:\n    title: Kiểm tra chữ ký PDF\n    description: Xác minh chữ ký của một tệp PDF. Một tệp PDF đã được ký có chứa một hoặc nhiều chữ ký có thể được sử dụng để xác định xem nội dung của tệp đã được thay đổi kể từ khi tệp được ký.\n\n  json-minify:\n    title: Giảm kích thước JSON\n    description: Giảm kích thước và nén JSON của bạn bằng cách loại bỏ khoảng trắng không cần thiết.\n\n  ulid-generator:\n    title: Tạo ULID\n    description: Tạo ngẫu nhiên mã định danh duy nhất có thể sắp xếp theo thứ tự từ điển (ULID).\n  string-obfuscator:\n    title: Mã hóa chuỗi\n    description: Mã hóa một chuỗi (như một bí mật, một IBAN hoặc một mã thông báo) để có thể chia sẻ và nhận dạng mà không tiết lộ nội dung.\n\n  base-converter:\n    title: Chuyển đổi cơ số số nguyên\n    description: Chuyển đổi số giữa các cơ số khác nhau (thập phân, thập lục phân, nhị phân, bát phân, base64, ...)\n\n  yaml-to-json-converter:\n    title: Trình chuyển đổi YAML sang JSON\n    description: Chuyển đổi YAML sang JSON một cách đơn giản với công cụ chuyển đổi trực tuyến này.\n\n  uuid-generator:\n    title: Trình tạo UUID\n    description: Một UUID (Universally Unique Identifier) là một số 128 bit được sử dụng để xác định thông tin trong hệ thống máy tính. Số lượng UUID có thể có là 16^32, tương đương với 2^128 hoặc khoảng 3.4x10^38 (rất lớn!).\n\n  ipv4-address-converter:\n    title: Chuyển đổi địa chỉ Ipv4\n    description: Chuyển đổi địa chỉ ip thành số thập phân, nhị phân, thập lục phân hoặc thậm chí thành ipv6\n\n  text-statistics:\n    title: Thống kê văn bản\n    description: Lấy thông tin về một văn bản, số ký tự, số từ, kích thước của nó, ...\n\n  text-to-nato-alphabet:\n    title: Chuyển đổi văn bản thành bảng chữ cái NATO\n    description: Chuyển đổi văn bản thành bảng chữ cái phiên âm NATO để truyền tải bằng miệng.\n\n  basic-auth-generator:\n    title: Tạo mã xác thực cơ bản\n    description: Tạo một tiêu đề xác thực cơ bản base64 từ tên người dùng và mật khẩu.\n  text-to-unicode:\n    title: Chuyển đổi văn bản thành Unicode\n    description: Phân tích và chuyển đổi văn bản thành Unicode và ngược lại\n\n  ipv4-range-expander:\n    title: Mở rộng dải IPv4\n    description: Cho một địa chỉ IPv4 bắt đầu và kết thúc, công cụ này tính toán một mạng IPv4 hợp lệ với ký hiệu CIDR của nó.\n\n  text-diff:\n    title: So sánh văn bản\n    description: So sánh hai văn bản và xem sự khác biệt giữa chúng.\n\n  otp-generator:\n    title: Tạo mã OTP\n    description: Tạo và xác thực mã OTP (mật khẩu một lần) dựa trên thời gian cho xác thực đa yếu tố.\n\n  url-encoder:\n    title: Mã hóa/giải mã chuỗi định dạng URL\n    description: Mã hóa thành định dạng URL (còn được gọi là \"percent-encoded\") hoặc giải mã từ đó.\n\n  text-to-binary:\n    title: Chuyển đổi văn bản thành nhị phân ASCII\n    description: Chuyển đổi văn bản thành biểu diễn nhị phân ASCII của nó và ngược lại.\n"
  },
  {
    "path": "locales/zh.yml",
    "content": "home:\n  categories:\n    newestTools: '最新工具'\n    favoriteTools: '我的收藏'\n    allTools: '全部工具'\n    favoritesDndToolTip: '拖放重新排列收藏夹'\n  subtitle: '助力开发人员和 IT 工作者'\n  toggleMenu: '切换菜单'\n  home: '主页'\n  uiLib: 'UI 库'\n  support: '支持 IT 工具开发'\n  buyMeACoffee: '赞助'\n  follow:\n    title: '关注我们'\n    p1: '给我们 Star'\n    githubRepository: 'GitHub 仓库'\n    p2: '关注我们的'\n    twitterXAccount: 'IT-Tools X 账号'\n    thankYou: '感谢您的支持！'\n  nav:\n    github: 'GitHub 仓库'\n    githubRepository: 'GitHub 仓库'\n    twitterX: 'Twitter 账号'\n    twitterXAccount: 'IT-Tools X 账号'\n    about: '关于 IT-Tools'\n    aboutLabel: '关于'\n    darkMode: '深色模式'\n    lightMode: '浅色模式'\n    mode: '颜色模式'\nabout:\n  content: >\n    # 关于 IT-Tools\n\n    IT-Tools 由 [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=about) 用 ❤ 开发，汇集了对开发人员和 IT 从业者有用的工具。如果对您有帮助，请将其分享给您的朋友，并且添加到收藏夹中！\n\n    IT-Tools 永久免费且开源（GPL-3.0 许可证），但需要资金用于托管和续订域名。如果您想支持我的工作，并鼓励我添加更多工具，请考虑通过 [赞助我](https://www.buymeacoffee.com/cthmsst) 进行支持。\n\n    ## 技术\n\n    IT-Tools 采用 Vue.js（Vue 3）和 Naive UI 组件库开发，并由 Vercel 托管和持续部署。某些工具使用了第三方开源库，您可以在仓库的 [package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json) 文件中找到完整的列表。\n\n    ## 发现了 Bug？缺少工具？\n\n    如果目前这里没有您需要的工具，并且您认为它可能有用，欢迎在 GitHub 仓库的 [issues](https://github.com/CorentinTh/it-tools/issues/new/choose) 中提交新增功能的请求。\n\n    如果您发现了 Bug，或者某些功能未能按预期工作，请在 GitHub 仓库的 [issues](https://github.com/CorentinTh/it-tools/issues/new/choose) 中提交错误报告。\n\n404:\n  notFound: '404 页面不存在'\n  sorry: '抱歉，该页面似乎不存在'\n  maybe: '也许缓存出现了一些问题，试试强制刷新页面？'\n  backHome: '返回主页'\nfavoriteButton:\n  remove: '取消收藏'\n  add: '加入收藏'\ntoolCard:\n  new: '新'\nsearch:\n  label: '搜索'\ntools:\n  categories:\n    favorite-tools: '我的收藏'\n    crypto: '加密'\n    converter: '转换器'\n    web: Web\n    images and videos: '图片和视频'\n    development: '开发'\n    network: '网络'\n    math: '数学'\n    measurement: '测量'\n    text: '文本'\n    data: '数据'\n\n  password-strength-analyser:\n    title: 密码强度分析仪\n    description: 使用此密码强度分析器和破解时间估计工具来发现密码的强度。\n\n  chronometer:\n    title: 计时器\n    description: 监控事物的持续时间。基本上是一种具有简单计时器功能的计时器。\n  token-generator:\n    title: Token 生成器\n    description: 使用您想要的字符、大写或小写字母、数字和/或符号生成随机字符串。\n\n    uppercase: '大写 (ABC...)'\n    lowercase: '小写 (abc...)'\n    numbers: '数字 (123...)'\n    symbols: '符号 (!-;...)'\n    length: '长度'\n    tokenPlaceholder: '令牌...'\n    copied: 复制到剪贴板\n    button:\n      copy: 复制\n      refresh: 刷新\n  percentage-calculator:\n    title: 百分比计算器\n    description: 轻松计算从一个值到另一个值的百分比，或从百分比到值的百分比。\n\n  svg-placeholder-generator:\n    title: SVG 占位符生成器\n    description: 生成 svg 图像以用作应用程序中的占位符。\n\n  json-to-csv:\n    title: JSON 转 CSV\n    description: 使用自动标头检测将JSON转换为CSV。\n\n  camera-recorder:\n    title: 摄像机记录器\n    description: 从网络摄像头或照相机拍摄照片或录制视频。\n\n  keycode-info:\n    title: Keycode 信息\n    description: 查找任何按下的键的javascript键代码、代码、位置和修饰符。\n\n  emoji-picker:\n    title: Emoji 选择器\n    description: 轻松复制和粘贴Emoji表情符号，并获得每个表情符号的unicode和code points值.\n\n  color-converter:\n    title: Color 选择器\n    description: 在不同格式（十六进制、rgb、hsl和css名称）之间转换颜色\n  bcrypt:\n    title: 加密\n    description: 使用bcrypt对文本字符串进行哈希和比较。Bcrypt是一个基于Blowfish密码的密码哈希函数。\n\n  crontab-generator:\n    title: Crontab 表达式生成\n    description: 验证并生成crontab，并获取cron调度的可读描述。\n\n  http-status-codes:\n    title: HTTP 状态码\n    description: 所有HTTP状态的列表对其名称和含义解释。\n\n  sql-prettify:\n    title: SQL 美化和格式化\n    description: 在线格式化和美化您的 SQL 查询（它支持各种 SQL 方言）。\n\n  benchmark-builder:\n    title: 基准生成器\n    description: 简单的在线基准构建器可以轻松比较任务的执行时间。\n\n  git-memo:\n    title: Git 备忘录\n    description: Git是一种去中心化的版本管理软件。使用此备忘单，您可以快速访问最常见的git命令.\n\n  slugify-string:\n    title: 打乱字符串\n    description: 确保字符串 url、文件名和 id 安全。\n\n  encryption:\n    title: 加密/解密文本\n    description: 使用加密算法（如AES、TripleDES、Rabbit或RC4）加密和解密文本明文。\n\n  random-port-generator:\n    title: 随机端口生成\n    description: 生成“已知”端口范围（0-1023）之外的随机端口号。\n\n  yaml-prettify:\n    title: YAML美化和格式化\n    description: 将YAML字符串修饰为友好的可读格式。\n\n  eta-calculator:\n    title: ETA 计算器\n    description: ETA（估计到达时间）计算器，用于知道任务的近似结束时间，例如下载的结束时刻。\n\n  roman-numeral-converter:\n    title: 罗马数字转换器\n    description: 将罗马数字转换为数字，并将数字转换为罗马数字。\n\n  hmac-generator:\n    title: Hmac 生成器\n    description: 使用密钥和您喜欢的哈希函数计算基于哈希的消息身份验证代码（HMAC）。\n\n  bip39-generator:\n    title: BIP39密码生成器\n    description: 从现有或随机助记符生成BIP39密码短语，或从密码短语获取助记符。\n\n  base64-file-converter:\n    title: Base64 文件转换器\n    description: 将字符串、文件或图像转换为其 Base64 表示形式。\n  list-converter:\n    title: List 转换器\n    description: 该工具可以处理基于数组的数据，并将各种更改（转置、添加前缀和后缀、反向列表、排序列表、小写值、截断值）应用于每一行。\n\n  base64-string-converter:\n    title: Base64 字符串编码/解码\n    description: 将字符串编码和解码为其 Base64 格式表示形式即可。\n\n  toml-to-yaml:\n    title: TOML 到 YAML\n    description: Parse and convert TOML to YAML.\n\n  math-evaluator:\n    title: 数学计算器\n    description: 计算数学表达式的计算器。您可以使用sqrt、cos、sin、abs等函数。\n\n  json-to-yaml-converter:\n    title: JSON到YAML转换器\n    description: 在线转换将JSON转换为YAML。\n\n  url-parser:\n    title: Url分析器\n    description: 解析url字符串以获取所有不同的部分（协议、来源、参数、端口、用户名密码…）\n\n  iban-validator-and-parser:\n    title: IBAN验证器和解析器\n    description: 验证和分析IBAN编号。检查IBAN是否有效，并获取国家BBAN，如果它是QR-IBAN和IBAN友好格式。\n\n  user-agent-parser:\n    title: 用户代理分析器\n    description: 从用户代理字符串中检测和分析浏览器、引擎、操作系统、CPU和设备类型/型号。\n\n  numeronym-generator:\n    title: 数字名称生成器\n    description: 数字名是一个用数字构成缩写的词。例如，“i18n”是“国际化”的名词，其中18表示单词中第一个i和最后一个n之间的字母数。\n\n  case-converter:\n    title: 大小写转换\n    description: 更改字符串的大小写并在不同格式之间进行选择\n\n  html-entities:\n    title: 转义html实体\n    description: 转义或unescape html实体（将<、>、&、“和\\'替换为其html版本）\n\n  json-prettify:\n    title: JSON美化和格式化\n    description: 将JSON字符串修饰为友好的可读格式。\n\n  docker-run-to-docker-compose-converter:\n    title: Docker Run 到 docker-compose 转换器\n    description: 将 docker run 命令行转换为 docker-compose 文件!\n\n  mac-address-lookup:\n    title: MAC地址查找\n    description: 通过设备的MAC地址查找设备的供应商和制造商。\n\n  mime-types:\n    title: mime类型\n    description: 将mime类型转换为扩展，反之亦然。\n\n  toml-to-json:\n    title: TOML 到 JSON\n    description: 解析TOML并将其转换为JSON。\n\n  lorem-ipsum-generator:\n    title: Lorem ipsum生成器\n    description: Lorem ipsum是一种占位符文本，通常用于演示文档或字体的视觉形式，而不依赖于有意义的内容\n\n  qrcode-generator:\n    title: 二维码生成器\n    description: 生成并下载url或文本的QR代码，并自定义背景和前景颜色。\n\n  wifi-qrcode-generator:\n    title: WiFi 二维码生成器\n    description: 生成和下载QR码以快速连接到WiFi网络。\n\n  xml-formatter:\n    title: XML 格式化\n    description: 将XML字符串修饰为友好的可读格式。\n\n  temperature-converter:\n    title: 温度转换器\n    description: 开尔文、摄氏度、华氏度、兰金、德莱尔、牛顿、雷奥穆尔和罗默温度度数转换。\n\n  chmod-calculator:\n    title: Chmod 计算器\n    description: 使用此在线的chmod计算器计算chmod权限和命令。\n\n  rsa-key-pair-generator:\n    title: RSA密钥对生成器\n    description: 生成新的随机RSA私钥和公钥pem证书。\n\n  html-wysiwyg-editor:\n    title: HTML所见即所得编辑器\n    description: 在线HTML编辑器具有功能丰富的所见即所得编辑器，立即获得内容的源代码。\n\n  yaml-to-toml:\n    title: YAML 到 TOML\n    description: 解析YAML并将其转换为TOML。\n\n  mac-address-generator:\n    title: MAC 地址生成器\n    description: 输入数量和前缀。MAC地址将以您选择的大小写（大写或小写）生成\n\n  json-diff:\n    title: JSON 差异比较\n    description: 比较两个JSON对象并获得它们之间的差异。\n  jwt-parser:\n    title: JWT 解析器\n    description: 解析和解码JSON Web Token（jwt）并显示其内容。\n\n  date-converter:\n    title: 日期时间转换器\n    description: 将日期和时间转换为各种不同的格式\n\n  phone-parser-and-formatter:\n    title: 电话分析器和格式化程序\n    description: 解析、验证和格式化电话号码。获取有关电话号码的信息，如国家/地区代码、类型等。\n\n  ipv4-subnet-calculator:\n    title: IPv4子网计算器\n    description: 解析IPv4 CIDR块，并获取有关子网络的所有所需信息。\n\n  og-meta-generator:\n    title: 开放式图形元生成器\n    description: 为您的网站生成开放式图形和社交html元标记。\n\n  ipv6-ula-generator:\n    title: IPv6 ULA生成器\n    description: 根据RFC4193在网络上生成您自己的本地不可路由IP地址。\n\n  hash-text:\n    title: Hash 文本\n    description: '使用所需的函数哈希文本字符串：MD5、SHA1、SHA256、SHA224、SHA512、SHA384、SHA3或RIPEMD160'\n\n  json-to-toml:\n    title: JSON 转 TOML\n    description: 解析JSON并将其转换为TOML。\n\n  device-information:\n    title: 设备信息\n    description: 获取有关当前设备的信息（屏幕大小、像素比率、用户代理…）\n\n  pdf-signature-checker:\n    title: PDF签名检查器\n    description: '验证PDF文件的签名。签名的PDF文件包含一个或多个签名，可用于确定文件的内容在签名后是否已被更改。'\n\n  json-minify:\n    title: JSON 压缩\n    description: 通过删除不必要的空白来缩小和压缩JSON。\n\n  ulid-generator:\n    title: ULID 生成器\n    description: 生成随机的通用唯一词典可排序标识符（ULID）。\n\n  string-obfuscator:\n    title: 字符串混淆器\n    description: 混淆字符串（如秘密、IBAN 或令牌），使其可共享和可识别，而不泄露其内容。\n\n  base-converter:\n    title: 整数基转换器\n    description: 在不同的基数（十进制、十六进制、二进制、八进制、base64…）之间转换数字\n\n  yaml-to-json-converter:\n    title: YAML到JSON转换器\n    description: 使用此在线转换器将YAML转换为JSON。\n\n  uuid-generator:\n    title: UUIDs 生成器\n    description: 通用唯一标识符（UUID）是一个128位数字，用于标识计算机系统中的信息。可能的UUID数量为16^32，即2^128或约3.4x10^38（这是一个很大的数字！）。\n\n  ipv4-address-converter:\n    title: Ipv4地址转换器\n    description: 在ipv6中，将ip地址转换为十进制、二进制、十六进制或事件\n\n  text-statistics:\n    title: 文本统计\n    description: 获取有关文本、字符数、字数、大小等的信息\n\n  text-to-nato-alphabet:\n    title: 文本转北约字母表\n    description: 将文本转换为北约拼音字母以进行口头传播。\n\n  basic-auth-generator:\n    title: 基本身份验证生成器\n    description: 从用户名和密码生成 base64 基本身份验证标头。\n\n  text-to-unicode:\n    title: 文本转 Unicode\n    description: 解析文本并将其转换为 unicode，反之亦然\n\n  ipv4-range-expander:\n    title: IPv4范围扩展器\n    description: 给定起始和结束IPv4地址，此工具使用其CIDR表示法计算有效的IPv4网络。\n\n  text-diff:\n    title: 文本比较\n    description: 比较两个文本并查看它们之间的差异。\n\n  otp-generator:\n    title: OTP代码生成器\n    description: 为多因素身份验证生成和验证基于时间的OTP（一次性密码）。\n\n  url-encoder:\n    title: 编码/解码url格式的字符串\n    description: 编码为url编码格式（也称为“百分比编码”）或从中解码。\n\n  text-to-binary:\n    title: 文本到 ASCII 二进制\n    description: 将文本转换为其 ASCII 二进制表示形式，反之亦然。\n"
  },
  {
    "path": "netlify.toml",
    "content": "[[redirects]]\n  from = \"/*\"\n  to = \"/index.html\"\n  status = 200\n"
  },
  {
    "path": "nginx.conf",
    "content": "server {\n    listen 80;\n    server_name localhost;\n    root /usr/share/nginx/html;\n    index index.html;\n\n    location / {\n        try_files $uri $uri/ /index.html;\n    }\n}"
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"it-tools\",\n  \"type\": \"module\",\n  \"version\": \"2024.10.22-7ca5933\",\n  \"packageManager\": \"pnpm@9.11.0\",\n  \"description\": \"Collection of handy online tools for developers, with great UX. \",\n  \"author\": \"Corentin Th <corentin.thomasset74+it-tools@gmail.com> (https://corentin.tech)\",\n  \"license\": \"GNU GPLv3\",\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"https://github.com/CorentinTh/it-tools\"\n  },\n  \"keywords\": [\n    \"productivity\",\n    \"converter\",\n    \"website\",\n    \"vuejs\",\n    \"tools\",\n    \"frontend\",\n    \"tool\",\n    \"developer-tools\",\n    \"developer-productivity\"\n  ],\n  \"scripts\": {\n    \"dev\": \"vite\",\n    \"build\": \"vue-tsc --noEmit && NODE_OPTIONS=--max_old_space_size=4096 vite build\",\n    \"preview\": \"vite preview --port 5050\",\n    \"test\": \"npm run test:unit\",\n    \"test:unit\": \"vitest --environment jsdom\",\n    \"test:e2e\": \"playwright test\",\n    \"test:e2e:dev\": \"BASE_URL=http://localhost:5173 NO_WEB_SERVER=true playwright test\",\n    \"coverage\": \"vitest run --coverage\",\n    \"typecheck\": \"vue-tsc --noEmit -p tsconfig.vitest.json --composite false\",\n    \"lint\": \"eslint src --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore\",\n    \"script:create:tool\": \"node scripts/create-tool.mjs\",\n    \"script:create:ui\": \"hygen generator ui-component\",\n    \"release\": \"node ./scripts/release.mjs\"\n  },\n  \"dependencies\": {\n    \"@it-tools/bip39\": \"^0.0.4\",\n    \"@it-tools/oggen\": \"^1.3.0\",\n    \"@regexper/render\": \"^1.0.0\",\n    \"@sindresorhus/slugify\": \"^2.2.1\",\n    \"@tabler/icons-vue\": \"^3.20.0\",\n    \"@tiptap/pm\": \"2.1.6\",\n    \"@tiptap/starter-kit\": \"2.1.6\",\n    \"@tiptap/vue-3\": \"2.0.3\",\n    \"@types/figlet\": \"^1.5.8\",\n    \"@types/markdown-it\": \"^13.0.7\",\n    \"@vicons/material\": \"^0.12.0\",\n    \"@vicons/tabler\": \"^0.12.0\",\n    \"@vueuse/core\": \"^10.3.0\",\n    \"@vueuse/head\": \"^1.0.0\",\n    \"@vueuse/router\": \"^10.0.0\",\n    \"bcryptjs\": \"^2.4.3\",\n    \"change-case\": \"^4.1.2\",\n    \"colord\": \"^2.9.3\",\n    \"composerize-ts\": \"^0.6.2\",\n    \"country-code-lookup\": \"^0.1.0\",\n    \"cron-validator\": \"^1.3.1\",\n    \"cronstrue\": \"^2.26.0\",\n    \"crypto-js\": \"^4.1.1\",\n    \"date-fns\": \"^2.29.3\",\n    \"dompurify\": \"^3.0.6\",\n    \"email-normalizer\": \"^1.0.0\",\n    \"emojilib\": \"^3.0.10\",\n    \"figlet\": \"^1.7.0\",\n    \"figue\": \"^1.2.0\",\n    \"fuse.js\": \"^6.6.2\",\n    \"highlight.js\": \"^11.7.0\",\n    \"iarna-toml-esm\": \"^3.0.5\",\n    \"ibantools\": \"^4.3.3\",\n    \"js-base64\": \"^3.7.6\",\n    \"json5\": \"^2.2.3\",\n    \"jwt-decode\": \"^3.1.2\",\n    \"libphonenumber-js\": \"^1.10.28\",\n    \"lodash\": \"^4.17.21\",\n    \"markdown-it\": \"^14.0.0\",\n    \"marked\": \"^10.0.0\",\n    \"mathjs\": \"^11.9.1\",\n    \"mime-types\": \"^2.1.35\",\n    \"monaco-editor\": \"^0.43.0\",\n    \"naive-ui\": \"^2.35.0\",\n    \"netmask\": \"^2.0.2\",\n    \"node-forge\": \"^1.3.1\",\n    \"oui-data\": \"^1.0.10\",\n    \"pdf-signature-reader\": \"^1.4.2\",\n    \"pinia\": \"^2.0.34\",\n    \"plausible-tracker\": \"^0.3.8\",\n    \"qrcode\": \"^1.5.1\",\n    \"randexp\": \"^0.5.3\",\n    \"sql-formatter\": \"^13.0.0\",\n    \"ua-parser-js\": \"^1.0.35\",\n    \"ulid\": \"^2.3.0\",\n    \"unicode-emoji-json\": \"^0.4.0\",\n    \"unplugin-auto-import\": \"^0.16.4\",\n    \"uuid\": \"^9.0.0\",\n    \"vue\": \"^3.3.4\",\n    \"vue-i18n\": \"^9.9.1\",\n    \"vue-router\": \"^4.1.6\",\n    \"vue-shadow-dom\": \"^4.2.0\",\n    \"vue-tsc\": \"^1.8.1\",\n    \"vuedraggable\": \"^4.1.0\",\n    \"xml-formatter\": \"^3.3.2\",\n    \"xml-js\": \"^1.6.11\",\n    \"yaml\": \"^2.2.1\"\n  },\n  \"devDependencies\": {\n    \"@antfu/eslint-config\": \"^0.41.0\",\n    \"@iconify-json/mdi\": \"^1.1.50\",\n    \"@intlify/unplugin-vue-i18n\": \"^2.0.0\",\n    \"@playwright/test\": \"^1.32.3\",\n    \"@rushstack/eslint-patch\": \"^1.2.0\",\n    \"@tsconfig/node18\": \"^18.2.0\",\n    \"@types/bcryptjs\": \"^2.4.2\",\n    \"@types/crypto-js\": \"^4.1.1\",\n    \"@types/dompurify\": \"^3.0.5\",\n    \"@types/jsdom\": \"^21.0.0\",\n    \"@types/lodash\": \"^4.14.192\",\n    \"@types/mime-types\": \"^2.1.1\",\n    \"@types/netmask\": \"^2.0.0\",\n    \"@types/node\": \"^18.15.11\",\n    \"@types/node-forge\": \"^1.3.2\",\n    \"@types/qrcode\": \"^1.5.0\",\n    \"@types/ua-parser-js\": \"^0.7.36\",\n    \"@types/uuid\": \"^9.0.0\",\n    \"@unocss/eslint-config\": \"^0.57.0\",\n    \"@vitejs/plugin-vue\": \"^4.3.2\",\n    \"@vitejs/plugin-vue-jsx\": \"^3.0.2\",\n    \"@vue/compiler-sfc\": \"^3.2.47\",\n    \"@vue/runtime-dom\": \"^3.3.4\",\n    \"@vue/test-utils\": \"^2.3.2\",\n    \"@vue/tsconfig\": \"^0.4.0\",\n    \"consola\": \"^3.0.2\",\n    \"eslint\": \"^8.47.0\",\n    \"hygen\": \"^6.2.11\",\n    \"jsdom\": \"^22.0.0\",\n    \"less\": \"^4.1.3\",\n    \"prettier\": \"^3.0.0\",\n    \"typescript\": \"~5.2.0\",\n    \"unocss\": \"^0.65.1\",\n    \"unocss-preset-scrollbar\": \"^0.2.1\",\n    \"unplugin-icons\": \"^0.17.0\",\n    \"unplugin-vue-components\": \"^0.25.0\",\n    \"vite\": \"^4.4.9\",\n    \"vite-plugin-pwa\": \"^0.16.0\",\n    \"vite-plugin-vue-markdown\": \"^0.23.5\",\n    \"vite-svg-loader\": \"^4.0.0\",\n    \"vitest\": \"^0.34.0\",\n    \"workbox-window\": \"^7.0.0\",\n    \"zx\": \"^7.2.1\"\n  }\n}\n"
  },
  {
    "path": "playwright.config.ts",
    "content": "import { defineConfig, devices } from '@playwright/test';\n\nconst isCI = !!process.env.CI;\nconst baseUrl = process.env.BASE_URL || 'http://localhost:5050';\nconst useWebServer = process.env.NO_WEB_SERVER !== 'true';\n\n/**\n * See https://playwright.dev/docs/test-configuration.\n */\nexport default defineConfig({\n  testDir: './src',\n  testMatch: /\\.e2e\\.(spec\\.)?ts$/,\n  /* Run tests in files in parallel */\n  fullyParallel: true,\n  /* Fail the build on CI if you accidentally left test.only in the source code. */\n  forbidOnly: isCI,\n  /* Retry on CI only */\n  retries: isCI ? 2 : 0,\n  /* Opt out of parallel tests on CI. */\n  workers: isCI ? 1 : undefined,\n  /* Reporter to use. See https://playwright.dev/docs/test-reporters */\n  reporter: 'html',\n  /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */\n  use: {\n    /* Base URL to use in actions like `await page.goto('/')`. */\n    baseURL: baseUrl,\n\n    /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */\n    trace: 'on-first-retry',\n\n    testIdAttribute: 'data-test-id',\n    locale: 'en-GB',\n    timezoneId: 'Europe/Paris',\n  },\n\n  /* Configure projects for major browsers */\n  projects: [\n    {\n      name: 'chromium',\n      use: { ...devices['Desktop Chrome'] },\n    },\n\n    {\n      name: 'firefox',\n      use: { ...devices['Desktop Firefox'] },\n    },\n\n    {\n      name: 'webkit',\n      use: { ...devices['Desktop Safari'] },\n    },\n  ],\n\n  /* Run your local dev server before starting the tests */\n\n  ...(useWebServer\n    && {\n      webServer: {\n        command: 'npm run preview',\n        url: 'http://localhost:5050',\n        reuseExistingServer: !isCI,\n      },\n    }\n  ),\n});\n"
  },
  {
    "path": "public/browserconfig.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<browserconfig>\n    <msapplication>\n        <tile>\n            <square150x150logo src=\"/mstile-150x150.png\"/>\n            <TileColor>#da532c</TileColor>\n        </tile>\n    </msapplication>\n</browserconfig>\n"
  },
  {
    "path": "public/humans.txt",
    "content": "/* TEAM */\nDeveloper: Corentin Thomasset\nSite: https://github.com/CorentinTh\nTwitter: @cthmsst"
  },
  {
    "path": "public/robots.txt",
    "content": "User-agent: *\nDisallow:"
  },
  {
    "path": "renovate.json",
    "content": "{\n  \"$schema\": \"https://docs.renovatebot.com/renovate-schema.json\",\n  \"extends\": [\n    \"config:base\"\n  ]\n}\n"
  },
  {
    "path": "scripts/build-locales-files.mjs",
    "content": "import { existsSync, writeFileSync } from 'node:fs';\nimport { Glob } from 'bun';\nimport _ from 'lodash';\n\nasync function getPathsFromGlobs({ patterns, onlyFiles = true }) {\n  const filePaths = [];\n\n  for (const pattern of patterns) {\n    const glob = new Glob(pattern);\n\n    for await (const filePath of glob.scan({ onlyFiles, cwd: '.' })) {\n      filePaths.push(filePath);\n    }\n  }\n\n  return { filePaths };\n}\n\nfunction getLocaleKey({ filePath }) {\n  const fileName = filePath.split('/').pop();\n  return fileName.replace(/\\.yml$/, '');\n}\n\nasync function createMissingLocaleFile({ localeKey }) {\n  const fileName = `${localeKey}.yml`;\n\n  const { filePaths: localesDirs } = await getPathsFromGlobs({\n    patterns: [\n      'locales',\n      'src/tools/*/locales',\n    ],\n    onlyFiles: false,\n  });\n\n  for (const localesDir of localesDirs) {\n    const filePath = `${localesDir}/${fileName}`;\n\n    if (existsSync(filePath)) {\n      console.log(`Locale file already exists: ${filePath}`);\n      continue;\n    }\n\n    console.log(`Creating missing locale file: ${filePath}`);\n    writeFileSync(filePath, '', 'utf8');\n  }\n}\n\nconst { filePaths } = await getPathsFromGlobs({\n  patterns: [\n    'locales/*.yml',\n    'src/tools/*/locales/*.yml',\n  ],\n});\n\nawait Promise.all(\n  _.chain(filePaths)\n    .map(filePath => getLocaleKey({ filePath }))\n    .uniq()\n    .map(localeKey => createMissingLocaleFile({ localeKey }))\n    .value(),\n);\n"
  },
  {
    "path": "scripts/create-tool.mjs",
    "content": "import { mkdir, readFile, writeFile } from 'fs/promises';\nimport { dirname, join } from 'path';\nimport { fileURLToPath } from 'url';\n\nconst currentDirname = dirname(fileURLToPath(import.meta.url));\n\nconst toolsDir = join(currentDirname, '..', 'src', 'tools');\n// eslint-disable-next-line no-undef\nconst toolName = process.argv[2];\n\nif (!toolName) {\n  throw new Error('Please specify a toolname.');\n}\n\nconst toolNameCamelCase = toolName.replace(/-./g, (x) => x[1].toUpperCase());\nconst toolNameTitleCase = toolName[0].toUpperCase() + toolName.slice(1).replace(/-/g, ' ');\nconst toolDir = join(toolsDir, toolName);\n\nawait mkdir(toolDir);\nconsole.log(`Directory created: ${toolDir}`);\n\nconst createToolFile = async (name, content) => {\n  const filePath = join(toolDir, name);\n  await writeFile(filePath, content.trim());\n  console.log(`File created: ${filePath}`);\n};\n\ncreateToolFile(\n  `${toolName}.vue`,\n  `\n<template>\n  <div>\n    Lorem ipsum\n  </div>\n</template>\n\n<script setup lang=\"ts\">\n\n</script>\n\n<style lang=\"less\" scoped>\n</style>\n`,\n);\n\ncreateToolFile(\n  `index.ts`,\n  `\nimport { ArrowsShuffle } from '@vicons/tabler';\nimport { defineTool } from '../tool';\n\nexport const tool = defineTool({\n  name: '${toolNameTitleCase}',\n  path: '/${toolName}',\n  description: '',\n  keywords: ['${toolName.split('-').join(\"', '\")}'],\n  component: () => import('./${toolName}.vue'),\n  icon: ArrowsShuffle,\n  createdAt: new Date('${new Date().toISOString().split('T')[0]}'),\n});\n`,\n);\n\ncreateToolFile(`${toolName}.service.ts`, ``);\ncreateToolFile(\n  `${toolName}.service.test.ts`,\n  `\nimport { expect, describe, it } from 'vitest';\n// import { } from './${toolName}.service';\n//\n// describe('${toolName}', () => {\n//\n// })\n`,\n);\n\ncreateToolFile(\n  `${toolName}.e2e.spec.ts`,\n  `\nimport { test, expect } from '@playwright/test';\n\ntest.describe('Tool - ${toolNameTitleCase}', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/${toolName}');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('${toolNameTitleCase} - IT Tools');\n  });\n\n  test('', async ({ page }) => {\n\n  });\n});\n  \n`,\n);\n\nconst toolsIndex = join(toolsDir, 'index.ts');\nconst indexContent = await readFile(toolsIndex, { encoding: 'utf-8' }).then((r) => r.split('\\n'));\n\nindexContent.splice(3, 0, `import { tool as ${toolNameCamelCase} } from './${toolName}';`);\nwriteFile(toolsIndex, indexContent.join('\\n'));\nconsole.log(`Added import in: ${toolsIndex}`);\n"
  },
  {
    "path": "scripts/getLatestChangelog.mjs",
    "content": "import { readFile } from 'fs/promises';\n\nconst changelogContent = await readFile('./CHANGELOG.md', 'utf-8');\nconst [, lastChangelog] = changelogContent.split(/^## .*$/gm);\n\nconsole.log(lastChangelog.trim());\n"
  },
  {
    "path": "scripts/release.mjs",
    "content": "import { $, argv } from 'zx';\nimport { consola } from 'consola';\nimport { rawCommitsToMarkdown } from './shared/commits.mjs';\nimport { addToChangelog } from './shared/changelog.mjs';\n\n$.verbose = false;\n\nconst isDryRun = argv['dry-run'] ?? false;\n\nconst now = new Date();\nconst currentShortSha = (await $`git rev-parse --short HEAD`).stdout.trim();\n\nconst calver = now.toISOString().slice(0, 10).replace(/-/g, '.');\nconst version = `${calver}-${currentShortSha}`;\n\nconst { stdout: rawCommits } = await $`git log --pretty=oneline $(git describe --tags --abbrev=0)..HEAD`;\n\nconst markdown = rawCommitsToMarkdown({ rawCommits });\n\nconsola.info(`Changelog: \\n\\n${markdown}\\n\\n`);\n\nif (isDryRun) {\n  consola.info(`[dry-run] Not creating version nor tag`);\n  consola.info('Aborting');\n  process.exit(0);\n}\n\nconst shouldContinue = await consola.prompt(\n  'This script will create a new version and tag, and update the changelog. Continue?',\n  {\n    type: 'confirm',\n  },\n);\n\nif (!shouldContinue) {\n  consola.info('Aborting');\n  process.exit(0);\n}\n\nconsola.info('Updating changelog');\nawait addToChangelog({ changelog: markdown, version });\nconsola.success('Changelog updated');\n\ntry {\n  consola.info('Committing changelog changes');\n  await $`git add CHANGELOG.md`;\n  await $`git commit -m \"docs(changelog): update changelog for ${version}\"`;\n  consola.success('Changelog changes committed');\n\n  consola.info('Creating version and tag');\n  await $`npm version ${version} -m \"chore(version): release ${version}\"`;\n  consola.info('Npm version released with tag');\n} catch (error) {\n  consola.error(error);\n  consola.info('Aborting');\n  process.exit(1);\n}\n"
  },
  {
    "path": "scripts/shared/changelog.mjs",
    "content": "import { readFile, writeFile } from 'fs/promises';\n\nexport { addToChangelog };\n\nasync function addToChangelog({ changelog, version, changelogPath = './CHANGELOG.md' }) {\n  const changelogContent = await readFile(changelogPath, 'utf-8');\n  const versionTitle = `## Version ${version}`;\n\n  if (changelogContent.includes(versionTitle)) {\n    throw new Error(`Version ${version} already exists in the changelog`);\n  }\n\n  const newChangeLogContent = changelogContent.replace('## ', `${versionTitle}\\n\\n${changelog}\\n\\n## `);\n  await writeFile(changelogPath, newChangeLogContent, 'utf-8');\n}\n"
  },
  {
    "path": "scripts/shared/commits.mjs",
    "content": "import _ from 'lodash';\n\nexport { rawCommitsToMarkdown };\n\nconst commitScopesToHumanReadable = {\n  build: 'Build system',\n  chore: 'Chores',\n  ci: 'Continuous integration',\n  docs: 'Documentation',\n  feat: 'Features',\n  fix: 'Bug fixes',\n  infra: 'Infrastucture',\n  perf: 'Performance',\n  refactor: 'Refactoring',\n  test: 'Tests',\n};\n\nconst commitTypesOrder = ['feat', 'fix', 'perf', 'refactor', 'test', 'build', 'ci', 'chore', 'other'];\n\nconst getCommitTypeSortIndex = (type) =>\n  commitTypesOrder.includes(type) ? commitTypesOrder.indexOf(type) : commitTypesOrder.length;\n\nfunction parseCommitLine(commit) {\n  const [sha, ...splittedRawMessage] = commit.trim().split(' ');\n  const rawMessage = splittedRawMessage.join(' ');\n  const { type, scope, subject } = /^(?<type>.*?)(\\((?<scope>.*)\\))?: ?(?<subject>.+)$/.exec(rawMessage)?.groups ?? {};\n\n  return {\n    sha: sha.slice(0, 7),\n    type: type ?? 'other',\n    scope,\n    subject: subject ?? rawMessage,\n  };\n}\n\nfunction commitSectionsToMarkdown({ type, commits }) {\n  return [\n    `### ${commitScopesToHumanReadable[type] ?? _.capitalize(type)}`,\n    ...commits.map(({ sha, scope, subject }) => ['-', scope ? `**${scope}**:` : '', subject, `(${sha})`].join(' ')),\n  ].join('\\n');\n}\n\nfunction rawCommitsToMarkdown({ rawCommits }) {\n  return _.chain(rawCommits)\n    .trim()\n    .split('\\n')\n    .map(parseCommitLine)\n    .groupBy('type')\n    .map((commits, type) => ({ type, commits }))\n    .sortBy(({ type }) => getCommitTypeSortIndex(type))\n    .map(commitSectionsToMarkdown)\n    .join('\\n\\n')\n    .value();\n}\n"
  },
  {
    "path": "src/App.vue",
    "content": "<script setup lang=\"ts\">\nimport { RouterView, useRoute } from 'vue-router';\nimport { NGlobalStyle, NMessageProvider, NNotificationProvider, darkTheme } from 'naive-ui';\nimport { darkThemeOverrides, lightThemeOverrides } from './themes';\nimport { layouts } from './layouts';\nimport { useStyleStore } from './stores/style.store';\n\nconst route = useRoute();\nconst layout = computed(() => route?.meta?.layout ?? layouts.base);\nconst styleStore = useStyleStore();\n\nconst theme = computed(() => (styleStore.isDarkTheme ? darkTheme : null));\nconst themeOverrides = computed(() => (styleStore.isDarkTheme ? darkThemeOverrides : lightThemeOverrides));\n\nconst { locale } = useI18n();\n\nsyncRef(\n  locale,\n  useStorage('locale', locale),\n);\n</script>\n\n<template>\n  <n-config-provider :theme=\"theme\" :theme-overrides=\"themeOverrides\">\n    <NGlobalStyle />\n    <NMessageProvider placement=\"bottom\">\n      <NNotificationProvider placement=\"bottom-right\">\n        <component :is=\"layout\">\n          <RouterView />\n        </component>\n      </NNotificationProvider>\n    </NMessageProvider>\n  </n-config-provider>\n</template>\n\n<style>\nbody {\n  min-height: 100%;\n  margin: 0;\n  padding: 0;\n}\n\nhtml {\n  height: 100%;\n  margin: 0;\n  padding: 0;\n}\n\n* {\n  box-sizing: border-box;\n}\n</style>\n"
  },
  {
    "path": "src/components/CollapsibleToolMenu.vue",
    "content": "<script setup lang=\"ts\">\nimport { useStorage } from '@vueuse/core';\nimport { useThemeVars } from 'naive-ui';\nimport { RouterLink, useRoute } from 'vue-router';\nimport MenuIconItem from './MenuIconItem.vue';\nimport type { Tool, ToolCategory } from '@/tools/tools.types';\n\nconst props = withDefaults(defineProps<{ toolsByCategory?: ToolCategory[] }>(), { toolsByCategory: () => [] });\nconst { toolsByCategory } = toRefs(props);\nconst route = useRoute();\n\nconst makeLabel = (tool: Tool) => () => h(RouterLink, { to: tool.path }, { default: () => tool.name });\nconst makeIcon = (tool: Tool) => () => h(MenuIconItem, { tool });\n\nconst collapsedCategories = useStorage<Record<string, boolean>>(\n  'menu-tool-option:collapsed-categories',\n  {},\n  undefined,\n  {\n    deep: true,\n    serializer: {\n      read: v => (v ? JSON.parse(v) : null),\n      write: v => JSON.stringify(v),\n    },\n  },\n);\n\nfunction toggleCategoryCollapse({ name }: { name: string }) {\n  collapsedCategories.value[name] = !collapsedCategories.value[name];\n}\n\nconst menuOptions = computed(() =>\n  toolsByCategory.value.map(({ name, components }) => ({\n    name,\n    isCollapsed: collapsedCategories.value[name],\n    tools: components.map(tool => ({\n      label: makeLabel(tool),\n      icon: makeIcon(tool),\n      key: tool.path,\n    })),\n  })),\n);\n\nconst themeVars = useThemeVars();\n</script>\n\n<template>\n  <div v-for=\"{ name, tools, isCollapsed } of menuOptions\" :key=\"name\">\n    <div ml-6px mt-12px flex cursor-pointer items-center op-60 @click=\"toggleCategoryCollapse({ name })\">\n      <span :class=\"{ 'rotate-0': isCollapsed, 'rotate-90': !isCollapsed }\" text-16px lh-1 op-50 transition-transform>\n        <icon-mdi-chevron-right />\n      </span>\n\n      <span ml-8px text-13px>\n        {{ name }}\n      </span>\n    </div>\n\n    <n-collapse-transition :show=\"!isCollapsed\">\n      <div class=\"menu-wrapper\">\n        <div class=\"toggle-bar\" @click=\"toggleCategoryCollapse({ name })\" />\n\n        <n-menu\n          class=\"menu\"\n          :value=\"route.path\"\n          :collapsed-width=\"64\"\n          :collapsed-icon-size=\"22\"\n          :options=\"tools\"\n          :indent=\"8\"\n          :default-expand-all=\"true\"\n        />\n      </div>\n    </n-collapse-transition>\n  </div>\n</template>\n\n<style scoped lang=\"less\">\n.menu-wrapper {\n  display: flex;\n  flex-direction: row;\n  .menu {\n    flex: 1;\n    margin-bottom: 5px;\n\n    ::v-deep(.n-menu-item-content::before) {\n      left: 0;\n      right: 13px;\n    }\n  }\n\n  .toggle-bar {\n    width: 24px;\n    opacity: 0.1;\n    transition: opacity ease 0.2s;\n    position: relative;\n    cursor: pointer;\n\n    &::before {\n      width: 2px;\n      height: 100%;\n      content: ' ';\n      background-color: v-bind('themeVars.textColor3');\n      border-radius: 2px;\n      position: absolute;\n      top: 0;\n      left: 14px;\n    }\n\n    &:hover {\n      opacity: 0.5;\n    }\n  }\n}\n</style>\n"
  },
  {
    "path": "src/components/ColoredCard.vue",
    "content": "<script setup lang=\"ts\">\nimport type { Component } from 'vue';\n\nconst props = defineProps<{ icon: Component; title: string }>();\nconst { icon, title } = toRefs(props);\n</script>\n\n<template>\n  <c-card class=\"colored-card\">\n    <n-icon class=\"icon\" size=\"40\" :component=\"icon\" />\n    <n-h3 class=\"title\">\n      <n-ellipsis>{{ title }}</n-ellipsis>\n    </n-h3>\n\n    <div class=\"description\">\n      <n-ellipsis :line-clamp=\"2\" :tooltip=\"false\">\n        <slot />\n      </n-ellipsis>\n    </div>\n  </c-card>\n</template>\n\n<style lang=\"less\" scoped>\n.colored-card {\n  background: rgb(37, 99, 108);\n  background: linear-gradient(48deg, rgba(37, 99, 108, 1) 0%, rgba(59, 149, 111, 1) 60%, rgba(20, 160, 88, 1) 100%);\n  color: #fff;\n  border: none;\n\n  .icon {\n    opacity: 0.7;\n  }\n\n  .title {\n    color: #fff;\n\n    margin: 5px 0;\n  }\n\n  .description {\n    opacity: 0.8;\n\n    margin: 5px 0;\n\n    ::v-deep(a) {\n      color: inherit;\n      text-decoration: underline;\n      font-weight: bold;\n      transition: color ease 0.2s;\n\n      &:hover {\n        color: rgb(20, 20, 20);\n      }\n    }\n  }\n}\n</style>\n"
  },
  {
    "path": "src/components/FavoriteButton.vue",
    "content": "<script setup lang=\"ts\">\nimport { useToolStore } from '@/tools/tools.store';\nimport type { Tool } from '@/tools/tools.types';\n\nconst props = defineProps<{ tool: Tool }>();\n\nconst toolStore = useToolStore();\n\nconst { tool } = toRefs(props);\n\nconst isFavorite = computed(() => toolStore.isToolFavorite({ tool }));\nconst buttonType = computed(() => (isFavorite.value ? 'primary' : 'default'));\n\nfunction toggleFavorite(event: MouseEvent) {\n  event.preventDefault();\n\n  if (toolStore.isToolFavorite({ tool })) {\n    toolStore.removeToolFromFavorites({ tool });\n    return;\n  }\n\n  toolStore.addToolToFavorites({ tool });\n}\n</script>\n\n<template>\n  <c-tooltip :tooltip=\"isFavorite ? $t('favoriteButton.remove') : $t('favoriteButton.add') \">\n    <c-button\n      variant=\"text\"\n      circle\n      :type=\"buttonType\"\n      :style=\"{ opacity: isFavorite ? 1 : 0.2 }\"\n      @click=\"toggleFavorite\"\n    >\n      <icon-mdi-heart />\n    </c-button>\n  </c-tooltip>\n</template>\n"
  },
  {
    "path": "src/components/FormatTransformer.vue",
    "content": "<script setup lang=\"ts\">\nimport _ from 'lodash';\nimport type { UseValidationRule } from '@/composable/validation';\nimport CInputText from '@/ui/c-input-text/c-input-text.vue';\n\nconst props = withDefaults(\n  defineProps<{\n    transformer?: (v: string) => string\n    inputValidationRules?: UseValidationRule<string>[]\n    inputLabel?: string\n    inputPlaceholder?: string\n    inputDefault?: string\n    outputLabel?: string\n    outputLanguage?: string\n  }>(),\n  {\n    transformer: _.identity,\n    inputValidationRules: () => [],\n    inputLabel: 'Input',\n    inputDefault: '',\n    inputPlaceholder: 'Input...',\n    outputLabel: 'Output',\n    outputLanguage: '',\n  },\n);\n\nconst { transformer, inputValidationRules, inputLabel, outputLabel, outputLanguage, inputPlaceholder, inputDefault }\n  = toRefs(props);\n\nconst inputElement = ref<typeof CInputText>();\n\nconst input = ref(inputDefault.value);\nconst output = computed(() => transformer.value(input.value));\n</script>\n\n<template>\n  <CInputText\n    ref=\"inputElement\"\n    v-model:value=\"input\"\n    :placeholder=\"inputPlaceholder\"\n    :label=\"inputLabel\"\n    rows=\"20\"\n    autosize\n    raw-text\n    multiline\n    test-id=\"input\"\n    :validation-rules=\"inputValidationRules\"\n    monospace\n  />\n\n  <div overflow-auto>\n    <div mb-5px>\n      {{ outputLabel }}\n    </div>\n    <textarea-copyable :value=\"output\" :language=\"outputLanguage\" :follow-height-of=\"inputElement?.inputWrapperRef\" />\n  </div>\n</template>\n"
  },
  {
    "path": "src/components/InputCopyable.vue",
    "content": "<script setup lang=\"ts\">\nimport { useVModel } from '@vueuse/core';\nimport { useCopy } from '@/composable/copy';\n\nconst props = defineProps<{ value: string }>();\nconst emit = defineEmits(['update:value']);\n\nconst value = useVModel(props, 'value', emit);\nconst { copy, isJustCopied } = useCopy({ source: value, createToast: false });\nconst tooltipText = computed(() => isJustCopied.value ? 'Copied!' : 'Copy to clipboard');\n</script>\n\n<template>\n  <c-input-text v-model:value=\"value\">\n    <template #suffix>\n      <c-tooltip :tooltip=\"tooltipText\">\n        <c-button circle variant=\"text\" size=\"small\" @click=\"copy()\">\n          <icon-mdi-content-copy />\n        </c-button>\n      </c-tooltip>\n    </template>\n  </c-input-text>\n</template>\n"
  },
  {
    "path": "src/components/MenuIconItem.vue",
    "content": "<script setup lang=\"ts\">\nimport { useThemeVars } from 'naive-ui';\nimport type { Tool } from '@/tools/tools.types';\n\nconst props = defineProps<{ tool: Tool }>();\nconst { tool } = toRefs(props);\n\nconst theme = useThemeVars();\n</script>\n\n<template>\n  <div class=\"menu-icon-item\">\n    <n-icon :component=\"tool.icon\" />\n    <div v-if=\"tool.isNew\" class=\"badge\" />\n  </div>\n</template>\n\n<style lang=\"less\" scoped>\n.menu-icon-item {\n  position: relative;\n\n  .badge {\n    position: absolute;\n    background-color: v-bind('theme.primaryColor');\n    border-radius: 10px;\n    line-height: 1;\n    top: 3px;\n    left: -6px;\n    font-size: 10px;\n\n    height: 6px;\n    width: 6px;\n  }\n}\n</style>\n"
  },
  {
    "path": "src/components/MenuLayout.vue",
    "content": "<script setup lang=\"ts\">\nimport { useStyleStore } from '@/stores/style.store';\n\nconst styleStore = useStyleStore();\nconst { isMenuCollapsed, isSmallScreen } = toRefs(styleStore);\nconst siderPosition = computed(() => (isSmallScreen.value ? 'absolute' : 'static'));\n</script>\n\n<template>\n  <n-layout has-sider>\n    <n-layout-sider\n      bordered\n      collapse-mode=\"width\"\n      :collapsed-width=\"0\"\n      :width=\"240\"\n      :collapsed=\"isMenuCollapsed\"\n      :show-trigger=\"false\"\n      :native-scrollbar=\"false\"\n      :position=\"siderPosition\"\n    >\n      <slot name=\"sider\" />\n    </n-layout-sider>\n    <n-layout class=\"content\">\n      <slot name=\"content\" />\n      <div v-show=\"isSmallScreen && !isMenuCollapsed\" class=\"overlay\" @click=\"isMenuCollapsed = true\" />\n    </n-layout>\n  </n-layout>\n</template>\n\n<style lang=\"less\" scoped>\n.overlay {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  background-color: #00000080;\n  cursor: pointer;\n}\n\n.content {\n  // background-color: #f1f5f9;\n  ::v-deep(.n-layout-scroll-container) {\n    padding: 26px;\n  }\n}\n\n.n-layout {\n  height: 100vh;\n}\n</style>\n"
  },
  {
    "path": "src/components/NavbarButtons.vue",
    "content": "<script setup lang=\"ts\">\nimport { IconBrandGithub, IconBrandX, IconInfoCircle, IconMoon, IconSun } from '@tabler/icons-vue';\nimport { useStyleStore } from '@/stores/style.store';\n\nconst styleStore = useStyleStore();\nconst { isDarkTheme } = toRefs(styleStore);\n</script>\n\n<template>\n  <c-tooltip :tooltip=\"$t('home.nav.github')\" position=\"bottom\">\n    <c-button\n      circle\n      variant=\"text\"\n      href=\"https://github.com/CorentinTh/it-tools\"\n      target=\"_blank\"\n      rel=\"noopener noreferrer\"\n      :aria-label=\"$t('home.nav.githubRepository')\"\n    >\n      <n-icon size=\"25\" :component=\"IconBrandGithub\" />\n    </c-button>\n  </c-tooltip>\n\n  <c-tooltip :tooltip=\"$t('home.nav.twitterX')\" position=\"bottom\">\n    <c-button\n      circle\n      variant=\"text\"\n      href=\"https://x.com/ittoolsdottech\"\n      rel=\"noopener\"\n      target=\"_blank\"\n      :aria-label=\"$t('home.nav.twitterXAccount')\"\n    >\n      <n-icon size=\"25\" :component=\"IconBrandX\" />\n    </c-button>\n  </c-tooltip>\n\n  <c-tooltip :tooltip=\"$t('home.nav.about')\" position=\"bottom\">\n    <c-button circle variant=\"text\" to=\"/about\" :aria-label=\"$t('home.nav.aboutLabel')\">\n      <n-icon size=\"25\" :component=\"IconInfoCircle\" />\n    </c-button>\n  </c-tooltip>\n  <c-tooltip :tooltip=\"isDarkTheme ? $t('home.nav.lightMode') : $t('home.nav.darkMode')\" position=\"bottom\">\n    <c-button circle variant=\"text\" :aria-label=\"$t('home.nav.mode')\" @click=\"() => styleStore.toggleDark()\">\n      <n-icon v-if=\"isDarkTheme\" size=\"25\" :component=\"IconSun\" />\n      <n-icon v-else size=\"25\" :component=\"IconMoon\" />\n    </c-button>\n  </c-tooltip>\n</template>\n\n<style lang=\"less\" scoped>\n.n-button {\n  &:not(:last-child) {\n    margin-right: 5px;\n  }\n}\n</style>\n"
  },
  {
    "path": "src/components/SpanCopyable.vue",
    "content": "<script setup lang=\"ts\">\nimport { useCopy } from '@/composable/copy';\n\nconst props = withDefaults(defineProps<{ value?: string }>(), { value: '' });\nconst { value } = toRefs(props);\n\nconst initialText = 'Copy to clipboard';\n\nconst { copy, isJustCopied } = useCopy({ source: value, createToast: false });\nconst tooltipText = computed(() => isJustCopied.value ? 'Copied!' : initialText);\n</script>\n\n<template>\n  <c-tooltip :tooltip=\"tooltipText\">\n    <span cursor-pointer font-mono @click=\"copy()\">{{ value }}</span>\n  </c-tooltip>\n</template>\n"
  },
  {
    "path": "src/components/TextareaCopyable.vue",
    "content": "<script setup lang=\"ts\">\nimport { Copy } from '@vicons/tabler';\nimport { useElementSize } from '@vueuse/core';\nimport hljs from 'highlight.js/lib/core';\nimport jsonHljs from 'highlight.js/lib/languages/json';\nimport sqlHljs from 'highlight.js/lib/languages/sql';\nimport xmlHljs from 'highlight.js/lib/languages/xml';\nimport yamlHljs from 'highlight.js/lib/languages/yaml';\nimport iniHljs from 'highlight.js/lib/languages/ini';\nimport markdownHljs from 'highlight.js/lib/languages/markdown';\nimport { useCopy } from '@/composable/copy';\n\nconst props = withDefaults(\n  defineProps<{\n    value: string\n    followHeightOf?: HTMLElement | null\n    language?: string\n    copyPlacement?: 'top-right' | 'bottom-right' | 'outside' | 'none'\n    copyMessage?: string\n  }>(),\n  {\n    followHeightOf: null,\n    language: 'txt',\n    copyPlacement: 'top-right',\n    copyMessage: 'Copy to clipboard',\n  },\n);\nhljs.registerLanguage('sql', sqlHljs);\nhljs.registerLanguage('json', jsonHljs);\nhljs.registerLanguage('html', xmlHljs);\nhljs.registerLanguage('xml', xmlHljs);\nhljs.registerLanguage('yaml', yamlHljs);\nhljs.registerLanguage('toml', iniHljs);\nhljs.registerLanguage('markdown', markdownHljs);\n\nconst { value, language, followHeightOf, copyPlacement, copyMessage } = toRefs(props);\nconst { height } = followHeightOf.value ? useElementSize(followHeightOf) : { height: ref(null) };\n\nconst { copy, isJustCopied } = useCopy({ source: value, createToast: false });\nconst tooltipText = computed(() => isJustCopied.value ? 'Copied!' : copyMessage.value);\n</script>\n\n<template>\n  <div style=\"overflow-x: hidden; width: 100%\">\n    <c-card relative>\n      <n-scrollbar\n        x-scrollable\n        trigger=\"none\"\n        :style=\"height ? `min-height: ${height - 40 /* card padding */ + 10 /* negative margin compensation */}px` : ''\"\n      >\n        <n-config-provider :hljs=\"hljs\">\n          <n-code :code=\"value\" :language=\"language\" :trim=\"false\" data-test-id=\"area-content\" />\n        </n-config-provider>\n      </n-scrollbar>\n      <div absolute right-10px top-10px>\n        <c-tooltip v-if=\"value\" :tooltip=\"tooltipText\" position=\"left\">\n          <c-button circle important:h-10 important:w-10 @click=\"copy()\">\n            <n-icon size=\"22\" :component=\"Copy\" />\n          </c-button>\n        </c-tooltip>\n      </div>\n    </c-card>\n    <div v-if=\"copyPlacement === 'outside'\" mt-4 flex justify-center>\n      <c-button @click=\"copy()\">\n        {{ tooltipText }}\n      </c-button>\n    </div>\n  </div>\n</template>\n\n<style lang=\"less\" scoped>\n::v-deep(.n-scrollbar) {\n  padding-bottom: 10px;\n  margin-bottom: -10px;\n}\n</style>\n"
  },
  {
    "path": "src/components/ToolCard.vue",
    "content": "<script setup lang=\"ts\">\nimport { useThemeVars } from 'naive-ui';\nimport FavoriteButton from './FavoriteButton.vue';\nimport type { Tool } from '@/tools/tools.types';\n\nconst props = defineProps<{ tool: Tool & { category: string } }>();\nconst { tool } = toRefs(props);\nconst theme = useThemeVars();\n</script>\n\n<template>\n  <router-link :to=\"tool.path\" class=\"decoration-none\">\n    <c-card class=\"h-full transition transition-duration-0.5s !border-2px !hover:border-primary\">\n      <div flex items-center justify-between>\n        <n-icon class=\"text-neutral-400 dark:text-neutral-600\" size=\"40\" :component=\"tool.icon\" />\n\n        <div flex items-center gap-8px>\n          <div\n            v-if=\"tool.isNew\"\n            class=\"rounded-full px-8px py-3px text-xs text-white dark:text-neutral-800\"\n            :style=\"{\n              'background-color': theme.primaryColor,\n            }\"\n          >\n            {{ $t('toolCard.new') }}\n          </div>\n\n          <FavoriteButton :tool=\"tool\" />\n        </div>\n      </div>\n\n      <div class=\"truncat my-5px text-lg text-black dark:text-white\">\n        {{ tool.name }}\n      </div>\n\n      <div class=\"line-clamp-2 text-neutral-500 dark:text-neutral-400\">\n        {{ tool.description }}\n      </div>\n    </c-card>\n  </router-link>\n</template>\n"
  },
  {
    "path": "src/composable/computed/catchedComputed.ts",
    "content": "import { type Ref, ref, watchEffect } from 'vue';\n\nexport { computedCatch };\n\nfunction computedCatch<T, D>(getter: () => T, { defaultValue }: { defaultValue: D; defaultErrorMessage?: string }): [Ref<T | D>, Ref<string | undefined>];\nfunction computedCatch<T, D>(getter: () => T, { defaultValue, defaultErrorMessage = 'Unknown error' }: { defaultValue?: D; defaultErrorMessage?: string } = {}) {\n  const error = ref<string | undefined>();\n  const value = ref<T | D | undefined>();\n\n  watchEffect(() => {\n    try {\n      error.value = undefined;\n      value.value = getter();\n    }\n    catch (err) {\n      error.value = err instanceof Error ? err.message : err?.toString() ?? defaultErrorMessage;\n      value.value = defaultValue;\n    }\n  });\n\n  return [value, error] as const;\n}\n"
  },
  {
    "path": "src/composable/computedRefreshable.ts",
    "content": "import { computedAsync, watchThrottled } from '@vueuse/core';\nimport { computed, ref, watch } from 'vue';\n\nexport { computedRefreshable, computedRefreshableAsync };\n\nfunction computedRefreshable<T>(getter: () => T, { throttle }: { throttle?: number } = {}) {\n  const dirty = ref(true);\n  let value: T;\n\n  const update = () => (dirty.value = true);\n\n  if (throttle) {\n    watchThrottled(getter, update, { throttle });\n  }\n  else {\n    watch(getter, update);\n  }\n\n  const computedValue = computed(() => {\n    if (dirty.value) {\n      value = getter();\n      dirty.value = false;\n    }\n    return value;\n  });\n\n  return [computedValue, update] as const;\n}\n\nfunction computedRefreshableAsync<T>(getter: () => Promise<T>, defaultValue?: T) {\n  const dirty = ref(true);\n  let value: T;\n\n  const update = () => (dirty.value = true);\n\n  watch(getter, update);\n\n  const computedValue = computedAsync(async () => {\n    if (dirty.value) {\n      value = await getter();\n      dirty.value = false;\n    }\n    return value;\n  }, defaultValue);\n\n  return [computedValue, update] as const;\n}\n"
  },
  {
    "path": "src/composable/copy.ts",
    "content": "// eslint-disable-next-line no-restricted-imports\nimport { useClipboard } from '@vueuse/core';\nimport { useMessage } from 'naive-ui';\nimport type { MaybeRefOrGetter } from 'vue';\n\nexport function useCopy({ source, text = 'Copied to the clipboard', createToast = true }: { source?: MaybeRefOrGetter<string>; text?: string; createToast?: boolean } = {}) {\n  const { copy, copied, ...rest } = useClipboard({\n    source,\n    legacy: true,\n  });\n\n  const message = useMessage();\n\n  return {\n    ...rest,\n    isJustCopied: copied,\n    async copy(content?: string, { notificationMessage }: { notificationMessage?: string } = {}) {\n      if (source) {\n        await copy();\n      }\n      else {\n        await copy(content);\n      }\n\n      if (createToast) {\n        message.success(notificationMessage ?? text);\n      }\n    },\n  };\n}\n"
  },
  {
    "path": "src/composable/debouncedref.ts",
    "content": "import _ from 'lodash';\n\nfunction useDebouncedRef<T>(initialValue: T, delay: number, immediate: boolean = false) {\n  const state = ref(initialValue);\n  const debouncedRef = customRef((track, trigger) => ({\n    get() {\n      track();\n      return state.value;\n    },\n    set: _.debounce(\n      (value) => {\n        state.value = value;\n        trigger();\n      },\n      delay,\n      { leading: immediate },\n    ),\n  }));\n  return debouncedRef;\n}\nexport default useDebouncedRef;\n"
  },
  {
    "path": "src/composable/downloadBase64.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { getMimeTypeFromBase64 } from './downloadBase64';\n\ndescribe('downloadBase64', () => {\n  describe('getMimeTypeFromBase64', () => {\n    it('when the base64 string has a data URI, it returns the mime type', () => {\n      expect(getMimeTypeFromBase64({ base64String: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA' })).to.deep.equal({ mimeType: 'image/png' });\n      expect(getMimeTypeFromBase64({ base64String: 'data:image/jpg;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA' })).to.deep.equal({ mimeType: 'image/jpg' });\n    });\n\n    it('when the base64 string has no data URI, it try to infer the mime type from the signature', () => {\n      // https://en.wikipedia.org/wiki/List_of_file_signatures\n\n      // PNG\n      expect(getMimeTypeFromBase64({ base64String: 'iVBORw0KGgoAAAANSUhEUgAAAAUA' })).to.deep.equal({ mimeType: 'image/png' });\n\n      // GIF\n      expect(getMimeTypeFromBase64({ base64String: 'R0lGODdh' })).to.deep.equal({ mimeType: 'image/gif' });\n      expect(getMimeTypeFromBase64({ base64String: 'R0lGODlh' })).to.deep.equal({ mimeType: 'image/gif' });\n\n      // JPG\n      expect(getMimeTypeFromBase64({ base64String: '/9j/' })).to.deep.equal({ mimeType: 'image/jpg' });\n\n      // PDF\n      expect(getMimeTypeFromBase64({ base64String: 'JVBERi0' })).to.deep.equal({ mimeType: 'application/pdf' });\n    });\n\n    it('when the base64 string has no data URI and no signature, it returns an undefined mimeType', () => {\n      expect(getMimeTypeFromBase64({ base64String: 'JVBERi' })).to.deep.equal({ mimeType: undefined });\n    });\n  });\n});\n"
  },
  {
    "path": "src/composable/downloadBase64.ts",
    "content": "import { extension as getExtensionFromMimeType, extension as getMimeTypeFromExtension } from 'mime-types';\nimport type { Ref } from 'vue';\nimport _ from 'lodash';\n\nexport {\n  getMimeTypeFromBase64,\n  getMimeTypeFromExtension, getExtensionFromMimeType,\n  useDownloadFileFromBase64, useDownloadFileFromBase64Refs,\n  previewImageFromBase64,\n};\n\nconst commonMimeTypesSignatures = {\n  'JVBERi0': 'application/pdf',\n  'R0lGODdh': 'image/gif',\n  'R0lGODlh': 'image/gif',\n  'iVBORw0KGgo': 'image/png',\n  '/9j/': 'image/jpg',\n};\n\nfunction getMimeTypeFromBase64({ base64String }: { base64String: string }) {\n  const [,mimeTypeFromBase64] = base64String.match(/data:(.*?);base64/i) ?? [];\n\n  if (mimeTypeFromBase64) {\n    return { mimeType: mimeTypeFromBase64 };\n  }\n\n  const inferredMimeType = _.find(commonMimeTypesSignatures, (_mimeType, signature) => base64String.startsWith(signature));\n\n  if (inferredMimeType) {\n    return { mimeType: inferredMimeType };\n  }\n\n  return { mimeType: undefined };\n}\n\nfunction getFileExtensionFromMimeType({\n  mimeType,\n  defaultExtension = 'txt',\n}: {\n  mimeType: string | undefined\n  defaultExtension?: string\n}) {\n  if (mimeType) {\n    return getExtensionFromMimeType(mimeType) ?? defaultExtension;\n  }\n\n  return defaultExtension;\n}\n\nfunction downloadFromBase64({ sourceValue, filename, extension, fileMimeType }:\n{ sourceValue: string; filename?: string; extension?: string; fileMimeType?: string }) {\n  if (sourceValue === '') {\n    throw new Error('Base64 string is empty');\n  }\n\n  const defaultExtension = extension ?? 'txt';\n  const { mimeType } = getMimeTypeFromBase64({ base64String: sourceValue });\n  let base64String = sourceValue;\n  if (!mimeType) {\n    const targetMimeType = fileMimeType ?? getMimeTypeFromExtension(defaultExtension);\n    base64String = `data:${targetMimeType};base64,${sourceValue}`;\n  }\n\n  const cleanExtension = extension ?? getFileExtensionFromMimeType(\n    { mimeType, defaultExtension });\n  let cleanFileName = filename ?? `file.${cleanExtension}`;\n  if (extension && !cleanFileName.endsWith(`.${extension}`)) {\n    cleanFileName = `${cleanFileName}.${cleanExtension}`;\n  }\n\n  const a = document.createElement('a');\n  a.href = base64String;\n  a.download = cleanFileName;\n  a.click();\n}\n\nfunction useDownloadFileFromBase64(\n  { source, filename, extension, fileMimeType }:\n  { source: Ref<string>; filename?: string; extension?: string; fileMimeType?: string }) {\n  return {\n    download() {\n      downloadFromBase64({ sourceValue: source.value, filename, extension, fileMimeType });\n    },\n  };\n}\n\nfunction useDownloadFileFromBase64Refs(\n  { source, filename, extension }:\n  { source: Ref<string>; filename?: Ref<string>; extension?: Ref<string> }) {\n  return {\n    download() {\n      downloadFromBase64({ sourceValue: source.value, filename: filename?.value, extension: extension?.value });\n    },\n  };\n}\n\nfunction previewImageFromBase64(base64String: string): HTMLImageElement {\n  if (base64String === '') {\n    throw new Error('Base64 string is empty');\n  }\n\n  const img = document.createElement('img');\n  img.src = base64String;\n\n  const container = document.createElement('div');\n  container.appendChild(img);\n\n  const previewContainer = document.getElementById('previewContainer');\n  if (previewContainer) {\n    previewContainer.innerHTML = '';\n    previewContainer.appendChild(container);\n  }\n  else {\n    throw new Error('Preview container element not found');\n  }\n\n  return img;\n}\n"
  },
  {
    "path": "src/composable/fuzzySearch.ts",
    "content": "import { type MaybeRef, get } from '@vueuse/core';\nimport Fuse from 'fuse.js';\nimport { computed } from 'vue';\n\nexport { useFuzzySearch };\n\nfunction useFuzzySearch<Data>({\n  search,\n  data,\n  options = {},\n}: {\n  search: MaybeRef<string>\n  data: Data[]\n  options?: Fuse.IFuseOptions<Data> & { filterEmpty?: boolean }\n}) {\n  const fuse = new Fuse(data, options);\n  const filterEmpty = options.filterEmpty ?? true;\n\n  const searchResult = computed<Data[]>(() => {\n    const query = get(search);\n\n    if (!filterEmpty && query === '') {\n      return data;\n    }\n\n    return fuse.search(query).map(({ item }) => item);\n  });\n\n  return { searchResult };\n}\n"
  },
  {
    "path": "src/composable/queryParams.ts",
    "content": "import { useRouteQuery } from '@vueuse/router';\nimport { computed } from 'vue';\nimport { useStorage } from '@vueuse/core';\n\nexport { useQueryParam, useQueryParamOrStorage };\n\nconst transformers = {\n  number: {\n    fromQuery: (value: string) => Number(value),\n    toQuery: (value: number) => String(value),\n  },\n  string: {\n    fromQuery: (value: string) => value,\n    toQuery: (value: string) => value,\n  },\n  boolean: {\n    fromQuery: (value: string) => value.toLowerCase() === 'true',\n    toQuery: (value: boolean) => (value ? 'true' : 'false'),\n  },\n  object: {\n    fromQuery: (value: string) => {\n      return JSON.parse(value);\n    },\n    toQuery: (value: object) => JSON.stringify(value),\n  },\n};\n\nfunction useQueryParam<T>({ name, defaultValue }: { name: string; defaultValue: T }) {\n  const type = typeof defaultValue;\n  const transformer = transformers[type as keyof typeof transformers] ?? transformers.string;\n\n  const proxy = useRouteQuery(name, transformer.toQuery(defaultValue as never));\n\n  return computed<T>({\n    get() {\n      return transformer.fromQuery(proxy.value) as unknown as T;\n    },\n    set(value) {\n      proxy.value = transformer.toQuery(value as never);\n    },\n  });\n}\n\nfunction useQueryParamOrStorage<T>({ name, storageName, defaultValue }: { name: string; storageName: string; defaultValue: T }) {\n  const type = typeof defaultValue;\n  const transformer = transformers[type as keyof typeof transformers] ?? transformers.string;\n\n  const storageRef = useStorage(storageName, defaultValue);\n  const proxyDefaultValue = transformer.toQuery(defaultValue as never);\n  const proxy = useRouteQuery(name, proxyDefaultValue);\n\n  const r = ref(defaultValue);\n\n  watch(r,\n    (value) => {\n      proxy.value = transformer.toQuery(value as never);\n      storageRef.value = value as never;\n    },\n    { deep: true });\n\n  r.value = (proxy.value && proxy.value !== proxyDefaultValue\n    ? transformer.fromQuery(proxy.value) as unknown as T\n    : storageRef.value as T) as never;\n\n  return r;\n}\n"
  },
  {
    "path": "src/composable/validation.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { isFalsyOrHasThrown } from './validation';\n\ndescribe('useValidation', () => {\n  describe('isFalsyOrHasThrown', () => {\n    it('should return true if the callback return nil, false or throw', () => {\n      expect(isFalsyOrHasThrown(() => false)).toBe(true);\n      expect(isFalsyOrHasThrown(() => null)).toBe(true);\n      expect(isFalsyOrHasThrown(() => undefined)).toBe(true);\n      expect(isFalsyOrHasThrown(() => {})).toBe(true);\n      expect(\n        isFalsyOrHasThrown(() => {\n          throw new Error('message');\n        }),\n      ).toBe(true);\n    });\n\n    it('should return true for any truthy values and empty string and 0 values', () => {\n      expect(isFalsyOrHasThrown(() => true)).toBe(false);\n      expect(isFalsyOrHasThrown(() => 'string')).toBe(false);\n      expect(isFalsyOrHasThrown(() => 1)).toBe(false);\n      expect(isFalsyOrHasThrown(() => 0)).toBe(false);\n      expect(isFalsyOrHasThrown(() => '')).toBe(false);\n      expect(isFalsyOrHasThrown(() => [])).toBe(false);\n      expect(isFalsyOrHasThrown(() => ({}))).toBe(false);\n    });\n  });\n});\n"
  },
  {
    "path": "src/composable/validation.ts",
    "content": "import { type MaybeRef, get } from '@vueuse/core';\nimport _ from 'lodash';\nimport { type Ref, reactive, watch } from 'vue';\n\ntype ValidatorReturnType = unknown;\ntype GetErrorMessageReturnType = string;\n\nexport interface UseValidationRule<T> {\n  validator: (value: T) => ValidatorReturnType\n  getErrorMessage?: (value: T) => GetErrorMessageReturnType\n  message: string\n}\n\nexport function isFalsyOrHasThrown(cb: () => ValidatorReturnType): boolean {\n  try {\n    const returnValue = cb();\n\n    if (_.isNil(returnValue)) {\n      return true;\n    }\n\n    return returnValue === false;\n  }\n  catch (_) {\n    return true;\n  }\n}\n\nexport function getErrorMessageOrThrown(cb: () => GetErrorMessageReturnType): string {\n  try {\n    return cb() || '';\n  }\n  catch (e: any) {\n    return e.toString();\n  }\n}\n\nexport interface ValidationAttrs {\n  feedback: string\n  validationStatus: string | undefined\n}\n\nexport function useValidation<T>({\n  source,\n  rules,\n  watch: watchRefs = [],\n}: {\n  source: Ref<T>\n  rules: MaybeRef<UseValidationRule<T>[]>\n  watch?: Ref<unknown>[]\n}) {\n  const state = reactive<{\n    message: string\n    status: undefined | 'error'\n    isValid: boolean\n    attrs: ValidationAttrs\n  }>({\n    message: '',\n    status: undefined,\n    isValid: false,\n    attrs: {\n      validationStatus: undefined,\n      feedback: '',\n    },\n  });\n\n  watch(\n    [source, ...watchRefs],\n    () => {\n      state.message = '';\n      state.status = undefined;\n\n      for (const rule of get(rules)) {\n        if (isFalsyOrHasThrown(() => rule.validator(source.value))) {\n          if (rule.getErrorMessage) {\n            const getErrorMessage = rule.getErrorMessage;\n            state.message = rule.message.replace('{0}', getErrorMessageOrThrown(() => getErrorMessage(source.value)));\n          }\n          else {\n            state.message = rule.message;\n          }\n          state.status = 'error';\n        }\n      }\n\n      state.isValid = state.status !== 'error';\n      state.attrs.feedback = state.message;\n      state.attrs.validationStatus = state.status;\n    },\n    { immediate: true },\n  );\n\n  return state;\n}\n"
  },
  {
    "path": "src/config.ts",
    "content": "import { figue } from 'figue';\n\nexport const config = figue({\n  app: {\n    version: {\n      doc: 'Application current version',\n      format: 'string',\n      default: '0.0.0',\n      env: 'PACKAGE_VERSION',\n    },\n    lastCommitSha: {\n      doc: 'Application last commit SHA version',\n      format: 'string',\n      default: '',\n      env: 'VITE_VERCEL_GIT_COMMIT_SHA',\n    },\n    baseUrl: {\n      doc: 'Application base url',\n      format: 'string',\n      default: '/',\n      env: 'BASE_URL',\n    },\n    env: {\n      doc: 'Application current env',\n      format: 'enum',\n      values: ['production', 'development', 'preview', 'test'],\n      default: 'development',\n      env: 'VITE_VERCEL_ENV',\n    },\n  },\n  plausible: {\n    isTrackerEnabled: {\n      doc: 'Is the tracker enabled',\n      format: 'boolean',\n      default: false,\n      env: 'VITE_TRACKER_ENABLED',\n    },\n    domain: {\n      doc: 'Plausible current domain',\n      format: 'string',\n      default: '',\n      env: 'VITE_PLAUSIBLE_DOMAIN',\n    },\n    apiHost: {\n      doc: 'Plausible remote api host',\n      format: 'string',\n      default: '',\n      env: 'VITE_PLAUSIBLE_API_HOST',\n    },\n    trackLocalhost: {\n      doc: 'Enable or disable localhost tracking by plausible',\n      format: 'boolean',\n      default: false,\n    },\n  },\n  showBanner: {\n    doc: 'Show the banner',\n    format: 'boolean',\n    default: false,\n    env: 'VITE_SHOW_BANNER',\n  },\n  showSponsorBanner: {\n    doc: 'Show the sponsor banner',\n    format: 'boolean',\n    default: false,\n    env: 'VITE_SHOW_SPONSOR_BANNER',\n  },\n})\n  .loadEnv({\n    ...import.meta.env,\n    // Because the string 'import.meta.env.PACKAGE_VERSION' is statically replaced during build time (see 'define' in vite.config.ts)\n    PACKAGE_VERSION: import.meta.env.PACKAGE_VERSION,\n  })\n  .validate()\n  .getConfig();\n"
  },
  {
    "path": "src/layouts/base.layout.vue",
    "content": "<script lang=\"ts\" setup>\nimport { NIcon, useThemeVars } from 'naive-ui';\n\nimport { RouterLink } from 'vue-router';\nimport { Heart, Home2, Menu2 } from '@vicons/tabler';\n\nimport { storeToRefs } from 'pinia';\nimport HeroGradient from '../assets/hero-gradient.svg?component';\nimport MenuLayout from '../components/MenuLayout.vue';\nimport NavbarButtons from '../components/NavbarButtons.vue';\nimport { useStyleStore } from '@/stores/style.store';\nimport { config } from '@/config';\nimport type { ToolCategory } from '@/tools/tools.types';\nimport { useToolStore } from '@/tools/tools.store';\nimport { useTracker } from '@/modules/tracker/tracker.services';\nimport CollapsibleToolMenu from '@/components/CollapsibleToolMenu.vue';\n\nconst themeVars = useThemeVars();\nconst styleStore = useStyleStore();\nconst version = config.app.version;\nconst commitSha = config.app.lastCommitSha.slice(0, 7);\n\nconst { tracker } = useTracker();\nconst { t } = useI18n();\n\nconst toolStore = useToolStore();\nconst { favoriteTools, toolsByCategory } = storeToRefs(toolStore);\n\nconst tools = computed<ToolCategory[]>(() => [\n  ...(favoriteTools.value.length > 0 ? [{ name: t('tools.categories.favorite-tools'), components: favoriteTools.value }] : []),\n  ...toolsByCategory.value,\n]);\n</script>\n\n<template>\n  <MenuLayout class=\"menu-layout\" :class=\"{ isSmallScreen: styleStore.isSmallScreen }\">\n    <template #sider>\n      <RouterLink to=\"/\" class=\"hero-wrapper\">\n        <HeroGradient class=\"gradient\" />\n        <div class=\"text-wrapper\">\n          <div class=\"title\">\n            IT - TOOLS\n          </div>\n          <div class=\"divider\" />\n          <div class=\"subtitle\">\n            {{ $t('home.subtitle') }}\n          </div>\n        </div>\n      </RouterLink>\n\n      <div class=\"sider-content\">\n        <div v-if=\"styleStore.isSmallScreen\" flex flex-col items-center>\n          <locale-selector w=\"90%\" />\n\n          <div flex justify-center>\n            <NavbarButtons />\n          </div>\n        </div>\n\n        <CollapsibleToolMenu :tools-by-category=\"tools\" />\n\n        <div class=\"footer\">\n          <div>\n            IT-Tools\n\n            <c-link target=\"_blank\" rel=\"noopener\" :href=\"`https://github.com/CorentinTh/it-tools/tree/v${version}`\">\n              v{{ version }}\n            </c-link>\n\n            <template v-if=\"commitSha && commitSha.length > 0\">\n              -\n              <c-link\n                target=\"_blank\"\n                rel=\"noopener\"\n                type=\"primary\"\n                :href=\"`https://github.com/CorentinTh/it-tools/tree/${commitSha}`\"\n              >\n                {{ commitSha }}\n              </c-link>\n            </template>\n          </div>\n          <div>\n            © {{ new Date().getFullYear() }}\n            <c-link target=\"_blank\" rel=\"noopener\" href=\"https://corentin.tech?utm_source=it-tools&utm_medium=footer\">\n              Corentin Thomasset\n            </c-link>\n          </div>\n        </div>\n      </div>\n    </template>\n\n    <template #content>\n      <div flex items-center justify-center gap-2>\n        <c-button\n          circle\n          variant=\"text\"\n          :aria-label=\"$t('home.toggleMenu')\"\n          @click=\"styleStore.isMenuCollapsed = !styleStore.isMenuCollapsed\"\n        >\n          <NIcon size=\"25\" :component=\"Menu2\" />\n        </c-button>\n\n        <c-tooltip :tooltip=\"$t('home.home')\" position=\"bottom\">\n          <c-button to=\"/\" circle variant=\"text\" :aria-label=\"$t('home.home')\">\n            <NIcon size=\"25\" :component=\"Home2\" />\n          </c-button>\n        </c-tooltip>\n\n        <c-tooltip :tooltip=\"$t('home.uiLib')\" position=\"bottom\">\n          <c-button v-if=\"config.app.env === 'development'\" to=\"/c-lib\" circle variant=\"text\" :aria-label=\"$t('home.uiLib')\">\n            <icon-mdi:brush-variant text-20px />\n          </c-button>\n        </c-tooltip>\n\n        <command-palette />\n\n        <locale-selector v-if=\"!styleStore.isSmallScreen\" />\n\n        <div>\n          <NavbarButtons v-if=\"!styleStore.isSmallScreen\" />\n        </div>\n\n        <c-tooltip position=\"bottom\" :tooltip=\"$t('home.support')\">\n          <c-button\n            round\n            href=\"https://www.buymeacoffee.com/cthmsst\"\n            rel=\"noopener\"\n            target=\"_blank\"\n            class=\"support-button\"\n            :bordered=\"false\"\n            @click=\"() => tracker.trackEvent({ eventName: 'Support button clicked' })\"\n          >\n            {{ $t('home.buyMeACoffee') }}\n            <NIcon v-if=\"!styleStore.isSmallScreen\" :component=\"Heart\" ml-2 />\n          </c-button>\n        </c-tooltip>\n      </div>\n      <slot />\n    </template>\n  </MenuLayout>\n</template>\n\n<style lang=\"less\" scoped>\n// ::v-deep(.n-layout-scroll-container) {\n//     @percent: 4%;\n//     @position: 25px;\n//     @size: 50px;\n//     @color: #eeeeee25;\n//     background-image: radial-gradient(@color @percent, transparent @percent),\n//         radial-gradient(@color @percent, transparent @percent);\n//     background-position: 0 0, @position @position;\n//     background-size: @size @size;\n// }\n\n.support-button {\n  background: rgb(37, 99, 108);\n  background: linear-gradient(48deg, rgba(37, 99, 108, 1) 0%, rgba(59, 149, 111, 1) 60%, rgba(20, 160, 88, 1) 100%);\n  color: #fff !important;\n  transition: padding ease 0.2s !important;\n\n  &:hover {\n    color: #fff;\n    padding-left: 30px;\n    padding-right: 30px;\n  }\n}\n\n.footer {\n  text-align: center;\n  color: #838587;\n  margin-top: 20px;\n  padding: 20px 0;\n}\n\n.sider-content {\n  padding-top: 160px;\n  padding-bottom: 200px;\n}\n\n.hero-wrapper {\n  position: absolute;\n  display: block;\n  left: 0;\n  width: 100%;\n  z-index: 10;\n  overflow: hidden;\n\n  .gradient {\n    margin-top: -65px;\n  }\n\n  .text-wrapper {\n    position: absolute;\n    left: 0;\n    width: 100%;\n    text-align: center;\n    top: 16px;\n    color: #fff;\n\n    .title {\n      font-size: 25px;\n      font-weight: 600;\n    }\n\n    .divider {\n      width: 50px;\n      height: 2px;\n      border-radius: 4px;\n      background-color: v-bind('themeVars.primaryColor');\n      margin: 0 auto 5px;\n    }\n\n    .subtitle {\n      font-size: 16px;\n    }\n  }\n}\n</style>\n"
  },
  {
    "path": "src/layouts/index.ts",
    "content": "import BaseLayout from './base.layout.vue';\nimport ToolLayout from './tool.layout.vue';\n\nexport const layouts = {\n  base: BaseLayout,\n  toolLayout: ToolLayout,\n};\n"
  },
  {
    "path": "src/layouts/tool.layout.vue",
    "content": "<script lang=\"ts\" setup>\nimport { useRoute } from 'vue-router';\nimport { useHead } from '@vueuse/head';\nimport type { HeadObject } from '@vueuse/head';\n\nimport BaseLayout from './base.layout.vue';\nimport FavoriteButton from '@/components/FavoriteButton.vue';\nimport type { Tool } from '@/tools/tools.types';\n\nconst route = useRoute();\n\nconst head = computed<HeadObject>(() => ({\n  title: `${route.meta.name} - IT Tools`,\n  meta: [\n    {\n      name: 'description',\n      content: route.meta?.description as string,\n    },\n    {\n      name: 'keywords',\n      content: ((route.meta.keywords ?? []) as string[]).join(','),\n    },\n  ],\n}));\nuseHead(head);\nconst { t } = useI18n();\n\nconst i18nKey = computed<string>(() => route.path.trim().replace('/', ''));\nconst toolTitle = computed<string>(() => t(`tools.${i18nKey.value}.title`, String(route.meta.name)));\nconst toolDescription = computed<string>(() => t(`tools.${i18nKey.value}.description`, String(route.meta.description)));\n</script>\n\n<template>\n  <BaseLayout>\n    <div class=\"tool-layout\">\n      <div class=\"tool-header\">\n        <div flex flex-nowrap items-center justify-between>\n          <n-h1>\n            {{ toolTitle }}\n          </n-h1>\n\n          <div>\n            <FavoriteButton :tool=\"{ name: route.meta.name, path: route.path } as Tool\" />\n          </div>\n        </div>\n\n        <div class=\"separator\" />\n\n        <div class=\"description\">\n          {{ toolDescription }}\n        </div>\n      </div>\n    </div>\n\n    <div class=\"tool-content\">\n      <slot />\n    </div>\n  </BaseLayout>\n</template>\n\n<style lang=\"less\" scoped>\n.tool-content {\n  display: flex;\n  flex-direction: row;\n  justify-content: center;\n  align-items: flex-start;\n  flex-wrap: wrap;\n  gap: 16px;\n\n  ::v-deep(& > *) {\n    flex: 0 1 600px;\n  }\n}\n\n.tool-layout {\n  max-width: 600px;\n  margin: 0 auto;\n  box-sizing: border-box;\n\n  .tool-header {\n    padding: 40px 0;\n    width: 100%;\n\n    .n-h1 {\n      opacity: 0.9;\n      font-size: 40px;\n      font-weight: 400;\n      margin: 0;\n      line-height: 1;\n    }\n\n    .separator {\n      width: 200px;\n      height: 2px;\n      background: rgb(161, 161, 161);\n      opacity: 0.2;\n\n      margin: 10px 0;\n    }\n\n    .description {\n      margin: 0;\n\n      opacity: 0.7;\n    }\n  }\n}\n</style>\n"
  },
  {
    "path": "src/main.ts",
    "content": "import { createApp } from 'vue';\nimport { createPinia } from 'pinia';\nimport { createHead } from '@vueuse/head';\n\nimport { registerSW } from 'virtual:pwa-register';\nimport shadow from 'vue-shadow-dom';\nimport { plausible } from './plugins/plausible.plugin';\n\nimport 'virtual:uno.css';\n\nimport { naive } from './plugins/naive.plugin';\n\nimport App from './App.vue';\nimport router from './router';\nimport { i18nPlugin } from './plugins/i18n.plugin';\n\nregisterSW();\n\nconst app = createApp(App);\n\napp.use(createPinia());\napp.use(createHead());\napp.use(i18nPlugin);\napp.use(router);\napp.use(naive);\napp.use(plausible);\napp.use(shadow);\n\napp.mount('#app');\n"
  },
  {
    "path": "src/modules/command-palette/command-palette.store.ts",
    "content": "import { defineStore } from 'pinia';\nimport _ from 'lodash';\nimport type { PaletteOption } from './command-palette.types';\nimport { useToolStore } from '@/tools/tools.store';\nimport { useFuzzySearch } from '@/composable/fuzzySearch';\nimport { useStyleStore } from '@/stores/style.store';\n\nimport SunIcon from '~icons/mdi/white-balance-sunny';\nimport GithubIcon from '~icons/mdi/github';\nimport BugIcon from '~icons/mdi/bug-outline';\nimport DiceIcon from '~icons/mdi/dice-5';\nimport InfoIcon from '~icons/mdi/information-outline';\n\nexport const useCommandPaletteStore = defineStore('command-palette', () => {\n  const toolStore = useToolStore();\n  const styleStore = useStyleStore();\n  const router = useRouter();\n  const searchPrompt = ref('');\n\n  const toolsOptions = toolStore.tools.map(tool => ({\n    ...tool,\n    to: tool.path,\n    toolCategory: tool.category,\n    category: 'Tools',\n  }));\n\n  const searchOptions: PaletteOption[] = [\n    ...toolsOptions,\n    {\n      name: 'Random tool',\n      description: 'Get a random tool from the list.',\n      action: () => {\n        const { path } = _.sample(toolStore.tools)!;\n        router.push(path);\n      },\n      icon: DiceIcon,\n      category: 'Tools',\n      keywords: ['random', 'tool', 'pick', 'choose', 'select'],\n      closeOnSelect: true,\n    },\n    {\n      name: 'Toggle dark mode',\n      description: 'Toggle dark mode on or off.',\n      action: () => styleStore.toggleDark(),\n      icon: SunIcon,\n      category: 'Actions',\n      keywords: ['dark', 'theme', 'toggle', 'mode', 'light', 'system'],\n    },\n    {\n      name: 'Github repository',\n      href: 'https://github.com/CorentinTh/it-tools',\n      category: 'External',\n      description: 'View the source code of it-tools on Github.',\n      keywords: ['github', 'repo', 'repository', 'source', 'code'],\n      icon: GithubIcon,\n    },\n    {\n      name: 'Report a bug or an issue',\n      description: 'Report a bug or an issue to help improve it-tools.',\n      href: 'https://github.com/CorentinTh/it-tools/issues/new/choose',\n      category: 'Actions',\n      keywords: ['report', 'issue', 'bug', 'problem', 'error'],\n      icon: BugIcon,\n    },\n    {\n      name: 'About',\n      description: 'Learn more about IT-Tools.',\n      to: '/about',\n      category: 'Pages',\n      keywords: ['about', 'learn', 'more', 'info', 'information'],\n      icon: InfoIcon,\n    },\n  ];\n\n  const { searchResult } = useFuzzySearch({\n    search: searchPrompt,\n    data: searchOptions,\n    options: {\n      keys: [{ name: 'name', weight: 2 }, 'description', 'keywords', 'category'],\n      threshold: 0.3,\n    },\n  });\n\n  const filteredSearchResult = computed(() =>\n    _.chain(searchResult.value).groupBy('category').mapValues(categoryOptions => _.take(categoryOptions, 5)).value());\n\n  return {\n    filteredSearchResult,\n    searchPrompt,\n  };\n});\n"
  },
  {
    "path": "src/modules/command-palette/command-palette.types.ts",
    "content": "import type { Component } from 'vue';\nimport type { RouteLocationRaw } from 'vue-router';\n\nexport interface PaletteOption {\n  name: string\n  description?: string\n  icon?: Component\n  action?: () => void\n  to?: RouteLocationRaw\n  category: string\n  keywords?: string[]\n  href?: string\n  closeOnSelect?: boolean\n}\n"
  },
  {
    "path": "src/modules/command-palette/command-palette.vue",
    "content": "<script setup lang=\"ts\">\nimport { storeToRefs } from 'pinia';\nimport _ from 'lodash';\nimport { useCommandPaletteStore } from './command-palette.store';\nimport type { PaletteOption } from './command-palette.types';\n\nconst isModalOpen = ref(false);\nconst inputRef = ref();\nconst router = useRouter();\nconst isMac = computed(() => window.navigator.userAgent.toLowerCase().includes('mac'));\n\nconst commandPaletteStore = useCommandPaletteStore();\nconst { searchPrompt, filteredSearchResult } = storeToRefs(commandPaletteStore);\n\nconst keys = useMagicKeys({\n  passive: false,\n  onEventFired(e) {\n    if (e.ctrlKey && e.key === 'k' && e.type === 'keydown') {\n      e.preventDefault();\n    }\n\n    if (e.metaKey && e.key === 'k' && e.type === 'keydown') {\n      e.preventDefault();\n    }\n  },\n});\n\nwhenever(isModalOpen, () => inputRef.value?.focus());\n\nwhenever(keys.ctrl_k, open);\nwhenever(keys.meta_k, open);\nwhenever(keys.escape, close);\n\nfunction open() {\n  return isModalOpen.value = true;\n}\n\nfunction close() {\n  isModalOpen.value = false;\n  searchPrompt.value = '';\n}\n\nconst selectedOptionIndex = ref(0);\n\nfunction handleKeydown(event: KeyboardEvent) {\n  const { key } = event;\n  const isEnterPressed = key === 'Enter';\n  const isArrowUpOrDown = ['ArrowUp', 'ArrowDown'].includes(key);\n  const isArrowDown = key === 'ArrowDown';\n\n  if (isArrowUpOrDown) {\n    const increment = isArrowDown ? 1 : -1;\n    const maxIndex = Math.max(_.chain(filteredSearchResult.value).values().flatten().size().value() - 1, 0);\n\n    selectedOptionIndex.value = Math.min(Math.max(selectedOptionIndex.value + increment, 0), maxIndex);\n\n    return;\n  }\n\n  if (isEnterPressed) {\n    const option = _.chain(filteredSearchResult.value)\n      .values()\n      .flatten()\n      .nth(selectedOptionIndex.value)\n      .value();\n\n    activateOption(option);\n  }\n}\n\nfunction getOptionIndex(option: PaletteOption) {\n  return _.chain(filteredSearchResult.value)\n    .values()\n    .flatten()\n    .findIndex(o => o === option)\n    .value();\n}\n\nfunction activateOption(option: PaletteOption) {\n  const { closeOnSelect } = option;\n\n  if (option.action) {\n    option.action();\n\n    if (closeOnSelect) {\n      close();\n    }\n\n    return;\n  }\n\n  const closeAfterNavigation = closeOnSelect || _.isUndefined(closeOnSelect);\n\n  if (option.to) {\n    router.push(option.to);\n\n    if (closeAfterNavigation) {\n      close();\n    }\n    return;\n  }\n\n  if (option.href) {\n    window.open(option.href, '_blank');\n\n    if (closeAfterNavigation) {\n      close();\n    }\n  }\n}\n</script>\n\n<template>\n  <div flex-1>\n    <c-button w-full important:justify-start @click=\"isModalOpen = true\">\n      <span flex items-center gap-3 op-40>\n\n        <icon-mdi-search />\n        {{ $t('search.label') }}\n\n        <span hidden flex-1 border border-current border-op-40 rounded border-solid px-5px py-3px sm:inline>\n          {{ isMac ? 'Cmd' : 'Ctrl' }}&nbsp;+&nbsp;K\n        </span>\n      </span>\n    </c-button>\n\n    <c-modal v-model:open=\"isModalOpen\" class=\"palette-modal\" shadow-xl important:max-w-650px important:pa-12px @keydown=\"handleKeydown\">\n      <c-input-text ref=\"inputRef\" v-model:value=\"searchPrompt\" raw-text placeholder=\"Type to search a tool or a command...\" autofocus clearable />\n\n      <div v-for=\"(options, category) in filteredSearchResult\" :key=\"category\">\n        <div ml-3 mt-3 text-sm font-bold text-primary op-60>\n          {{ category }}\n        </div>\n        <command-palette-option v-for=\"option in options\" :key=\"option.name\" :option=\"option\" :selected=\"selectedOptionIndex === getOptionIndex(option)\" @activated=\"activateOption\" />\n      </div>\n    </c-modal>\n  </div>\n</template>\n\n<style scoped lang=\"less\">\n.c-input-text {\n  font-size: 18px;\n\n  ::v-deep(.input-wrapper) {\n      padding: 4px;\n      padding-left: 18px;\n  }\n}\n\n.c-modal--overlay {\n  align-items: flex-start !important;\n  padding-top: 80px;\n}\n</style>\n"
  },
  {
    "path": "src/modules/command-palette/components/command-palette-option.vue",
    "content": "<script setup lang=\"ts\">\nimport type { PaletteOption } from '../command-palette.types';\n\nconst props = withDefaults(defineProps<{ option: PaletteOption; selected?: boolean }>(), {\n  selected: false,\n});\nconst emit = defineEmits(['activated']);\nconst { option } = toRefs(props);\n\nconst { selected } = toRefs(props);\n</script>\n\n<template>\n  <div\n    role=\"option\"\n    :aria-selected=\"selected\"\n    :class=\"{\n      'text-white': selected,\n      'bg-primary': selected,\n    }\"\n    w-full flex cursor-pointer items-center overflow-hidden rounded pa-3 transition hover:bg-primary hover:text-white\n    @click=\"() => emit('activated', option)\"\n  >\n    <component :is=\"option.icon\" v-if=\"option.icon\" mr-3 h-30px w-30px shrink-0 op-50 />\n\n    <div flex-1 overflow-hidden>\n      <div truncate font-bold lh-tight op-90>\n        {{ option.name }}\n      </div>\n\n      <div v-if=\"option.description\" truncate lh-tight op-60>\n        {{ option.description }}\n      </div>\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/modules/i18n/components/locale-selector.vue",
    "content": "<script setup lang=\"ts\">\nconst { availableLocales, locale } = useI18n();\n\nconst localesLong: Record<string, string> = {\n  en: 'English',\n  de: 'Deutsch',\n  es: 'Español',\n  fr: 'Français',\n  no: 'Norwegian',\n  pt: 'Português',\n  ru: 'Русский',\n  uk: 'Українська',\n  zh: '中文',\n  vi: 'Tiếng Việt',\n};\n\nconst localeOptions = computed(() =>\n  availableLocales.map(locale => ({\n    label: localesLong[locale] ?? locale,\n    value: locale,\n  })),\n);\n</script>\n\n<template>\n  <c-select\n    v-model:value=\"locale\"\n    :options=\"localeOptions\"\n    placeholder=\"Select a language\"\n    w-100px\n  />\n</template>\n"
  },
  {
    "path": "src/modules/shared/date.models.ts",
    "content": "import { format } from 'date-fns';\n\nexport { getUrlFriendlyDateTime };\n\nfunction getUrlFriendlyDateTime({ date = new Date() }: { date?: Date } = {}) {\n  return format(date, 'yyyy-MM-dd-HH-mm-ss');\n}\n"
  },
  {
    "path": "src/modules/shared/number.models.ts",
    "content": "function clamp({ value, min = 0, max = 100 }: { value: number; min?: number; max?: number }) {\n  return Math.min(Math.max(value, min), max);\n}\n\nexport { clamp };\n"
  },
  {
    "path": "src/modules/tracker/tracker.services.ts",
    "content": "import _ from 'lodash';\nimport type Plausible from 'plausible-tracker';\nimport { inject } from 'vue';\n\nexport { createTrackerService, useTracker };\n\nfunction createTrackerService({ plausible }: { plausible: ReturnType<typeof Plausible> }) {\n  return {\n    trackEvent({ eventName }: { eventName: string }) {\n      plausible.trackEvent(eventName);\n    },\n  };\n}\n\nfunction useTracker() {\n  const plausible: ReturnType<typeof Plausible> | undefined = inject('plausible');\n\n  if (_.isNil(plausible)) {\n    throw new TypeError('Plausible must be instantiated');\n  }\n\n  const tracker = createTrackerService({ plausible });\n\n  return {\n    tracker,\n  };\n}\n"
  },
  {
    "path": "src/modules/tracker/tracker.types.ts",
    "content": "import type { createTrackerService } from './tracker.services';\n\nexport type TrackerService = ReturnType<typeof createTrackerService>;\n"
  },
  {
    "path": "src/pages/404.page.vue",
    "content": "<script setup lang=\"ts\">\nimport { useHead } from '@vueuse/head';\n\nuseHead({ title: 'Page not found - IT Tools' });\n</script>\n\n<template>\n  <div mt-20 flex flex-col items-center>\n    <span text-90px lh-1 op-50>\n      <icon-mdi:kettle-steam-outline />\n    </span>\n\n    <h1 m-0 mt-3>\n      {{ $t('404.notFound') }}\n    </h1>\n    <div mt-4 op-60>\n      {{ $t('404.sorry') }}\n    </div>\n    <div mb-8 op-60>\n      {{ $t('404.maybe') }}\n    </div>\n\n    <c-button to=\"/\">\n      {{ $t('404.backHome') }}\n    </c-button>\n  </div>\n</template>\n"
  },
  {
    "path": "src/pages/About.vue",
    "content": "<script setup lang=\"ts\">\nimport { useHead } from '@vueuse/head';\n\nuseHead({ title: 'About - IT Tools' });\n</script>\n\n<template>\n  <c-markdown :markdown=\"$t('about.content')\" mx-auto mt-50px max-w-600px />\n</template>\n"
  },
  {
    "path": "src/pages/Home.page.vue",
    "content": "<script setup lang=\"ts\">\nimport { IconDragDrop, IconHeart } from '@tabler/icons-vue';\nimport { useHead } from '@vueuse/head';\nimport { computed } from 'vue';\nimport Draggable from 'vuedraggable';\nimport ColoredCard from '../components/ColoredCard.vue';\nimport ToolCard from '../components/ToolCard.vue';\nimport { useToolStore } from '@/tools/tools.store';\nimport { config } from '@/config';\n\nconst toolStore = useToolStore();\n\nuseHead({ title: 'IT Tools - Handy online tools for developers' });\nconst { t } = useI18n();\n\nconst favoriteTools = computed(() => toolStore.favoriteTools);\n\n// Update favorite tools order when drag is finished\nfunction onUpdateFavoriteTools() {\n  toolStore.updateFavoriteTools(favoriteTools.value); // Update the store with the new order\n}\n</script>\n\n<template>\n  <div class=\"pt-50px\">\n    <div class=\"grid-wrapper\">\n      <div class=\"grid grid-cols-1 gap-12px lg:grid-cols-3 md:grid-cols-3 sm:grid-cols-2 xl:grid-cols-4\">\n        <ColoredCard v-if=\"config.showBanner\" :title=\"$t('home.follow.title')\" :icon=\"IconHeart\">\n          {{ $t('home.follow.p1') }}\n          <a\n            href=\"https://github.com/CorentinTh/it-tools\"\n            rel=\"noopener\"\n            target=\"_blank\"\n            :aria-label=\"$t('home.follow.githubRepository')\"\n          >GitHub</a>\n          {{ $t('home.follow.p2') }}\n          <a\n            href=\"https://x.com/ittoolsdottech\"\n            rel=\"noopener\"\n            target=\"_blank\"\n            :aria-label=\"$t('home.follow.twitterXAccount')\"\n          >X</a>.\n          {{ $t('home.follow.thankYou') }}\n          <n-icon :component=\"IconHeart\" />\n        </ColoredCard>\n      </div>\n\n      <transition name=\"height\">\n        <div v-if=\"toolStore.favoriteTools.length > 0\">\n          <h3 class=\"mb-5px mt-25px text-neutral-400 font-500\">\n            {{ $t('home.categories.favoriteTools') }}\n            <c-tooltip :tooltip=\"$t('home.categories.favoritesDndToolTip')\">\n              <n-icon :component=\"IconDragDrop\" size=\"18\" />\n            </c-tooltip>\n          </h3>\n          <Draggable\n            :list=\"favoriteTools\"\n            class=\"grid grid-cols-1 gap-12px lg:grid-cols-3 md:grid-cols-3 sm:grid-cols-2 xl:grid-cols-4\"\n            ghost-class=\"ghost-favorites-draggable\"\n            item-key=\"name\"\n            @end=\"onUpdateFavoriteTools\"\n          >\n            <template #item=\"{ element: tool }\">\n              <ToolCard :tool=\"tool\" />\n            </template>\n          </Draggable>\n        </div>\n      </transition>\n\n      <div v-if=\"toolStore.newTools.length > 0\">\n        <h3 class=\"mb-5px mt-25px text-neutral-400 font-500\">\n          {{ t('home.categories.newestTools') }}\n        </h3>\n        <div class=\"grid grid-cols-1 gap-12px lg:grid-cols-3 md:grid-cols-3 sm:grid-cols-2 xl:grid-cols-4\">\n          <ToolCard v-for=\"tool in toolStore.newTools\" :key=\"tool.name\" :tool=\"tool\" />\n        </div>\n      </div>\n\n      <h3 class=\"mb-5px mt-25px text-neutral-400 font-500\">\n        {{ $t('home.categories.allTools') }}\n      </h3>\n      <div class=\"grid grid-cols-1 gap-12px lg:grid-cols-3 md:grid-cols-3 sm:grid-cols-2 xl:grid-cols-4\">\n        <ToolCard v-for=\"tool in toolStore.tools\" :key=\"tool.name\" :tool=\"tool\" />\n      </div>\n    </div>\n  </div>\n</template>\n\n<style scoped lang=\"less\">\n.height-enter-active,\n.height-leave-active {\n  transition: all 0.5s ease-in-out;\n  overflow: hidden;\n  max-height: 500px;\n}\n\n.height-enter-from,\n.height-leave-to {\n  max-height: 42px;\n  overflow: hidden;\n  opacity: 0;\n  margin-bottom: 0;\n}\n\n.ghost-favorites-draggable {\n  opacity: 0.4;\n  background-color: #ccc;\n  border: 2px dashed #666;\n  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);\n  transform: scale(1.1);\n  animation: ghost-favorites-draggable-animation 0.2s ease-out;\n}\n\n@keyframes ghost-favorites-draggable-animation {\n  0% {\n    opacity: 0;\n    transform: scale(0.9);\n  }\n  100% {\n    opacity: 0.4;\n    transform: scale(1.0);\n  }\n}\n</style>\n"
  },
  {
    "path": "src/plugins/i18n.plugin.ts",
    "content": "import messages from '@intlify/unplugin-vue-i18n/messages';\nimport { get } from '@vueuse/core';\nimport type { Plugin } from 'vue';\nimport { createI18n } from 'vue-i18n';\n\nconst i18n = createI18n({\n  legacy: false,\n  locale: 'en',\n  messages,\n});\n\nexport const i18nPlugin: Plugin = {\n  install: (app) => {\n    app.use(i18n);\n  },\n};\n\nexport const translate = function (localeKey: string) {\n  const hasKey = i18n.global.te(localeKey, get(i18n.global.locale));\n  return hasKey ? i18n.global.t(localeKey) : localeKey;\n};\n"
  },
  {
    "path": "src/plugins/naive.plugin.ts",
    "content": "import { create } from 'naive-ui';\n\nexport const naive = create();\n"
  },
  {
    "path": "src/plugins/plausible.plugin.ts",
    "content": "import { noop } from 'lodash';\n\nimport Plausible from 'plausible-tracker';\nimport type { App } from 'vue';\nimport { config } from '@/config';\n\nfunction createFakePlausibleInstance(): Pick<ReturnType<typeof Plausible>, 'trackEvent' | 'enableAutoPageviews'> {\n  return {\n    trackEvent: noop,\n    enableAutoPageviews: () => noop,\n  };\n}\n\nfunction createPlausibleInstance({\n  config,\n}: {\n  config: {\n    isTrackerEnabled: boolean\n    domain: string\n    apiHost: string\n    trackLocalhost: boolean\n  }\n}) {\n  if (config.isTrackerEnabled) {\n    return Plausible(config);\n  }\n\n  return createFakePlausibleInstance();\n}\n\nexport const plausible = {\n  install: (app: App) => {\n    const plausible = createPlausibleInstance({ config: config.plausible });\n    plausible.enableAutoPageviews();\n\n    app.provide('plausible', plausible);\n  },\n};\n"
  },
  {
    "path": "src/router.ts",
    "content": "import { createRouter, createWebHistory } from 'vue-router';\nimport { layouts } from './layouts/index';\nimport HomePage from './pages/Home.page.vue';\nimport NotFound from './pages/404.page.vue';\nimport { tools } from './tools';\nimport { config } from './config';\nimport { routes as demoRoutes } from './ui/demo/demo.routes';\n\nconst toolsRoutes = tools.map(({ path, name, component, ...config }) => ({\n  path,\n  name,\n  component,\n  meta: { isTool: true, layout: layouts.toolLayout, name, ...config },\n}));\nconst toolsRedirectRoutes = tools\n  .filter(({ redirectFrom }) => redirectFrom && redirectFrom.length > 0)\n  .flatMap(\n    ({ path, redirectFrom }) => redirectFrom?.map(redirectSource => ({ path: redirectSource, redirect: path })) ?? [],\n  );\n\nconst router = createRouter({\n  history: createWebHistory(config.app.baseUrl),\n  routes: [\n    {\n      path: '/',\n      name: 'home',\n      component: HomePage,\n    },\n    {\n      path: '/about',\n      name: 'about',\n      component: () => import('./pages/About.vue'),\n    },\n    ...toolsRoutes,\n    ...toolsRedirectRoutes,\n    ...(config.app.env === 'development' ? demoRoutes : []),\n    { path: '/:pathMatch(.*)*', name: 'NotFound', component: NotFound },\n  ],\n});\n\nexport default router;\n"
  },
  {
    "path": "src/shims.d.ts",
    "content": "declare module '*.vue' {\n  import type {  ComponentOptions } from 'vue';\n  const Component: ComponentOptions;\n  export default Component;\n}\n\ndeclare module '*.md' {\n  import type {  ComponentOptions } from 'vue';\n  const Component: ComponentOptions;\n  export default Component;\n}\n\ndeclare module 'iarna-toml-esm' {\n  export const parse: (toml: string) => any;\n  export const stringify: (obj: any) => string;\n}\n\ndeclare module 'emojilib' {\n  const lib: Record<string, string[]>;\n  export default lib;\n}\n\ndeclare module 'unicode-emoji-json' {\n  const emoji: Record<string, {\n    name: string;\n    slug: string;\n    group: string;\n    emoji_version: string;\n    unicode_version: string;\n    skin_tone_support: boolean;\n    skin_tone_support_unicode_version: string;\n  }>;\n  \n  export default emoji;\n}\n\ndeclare module 'pdf-signature-reader' {\n  const verifySignature: (pdf: ArrayBuffer) => ({signatures: SignatureInfo[]});\n\n  export default verifySignature;\n}"
  },
  {
    "path": "src/stores/style.store.ts",
    "content": "import { useDark, useMediaQuery, useStorage, useToggle } from '@vueuse/core';\nimport { defineStore } from 'pinia';\nimport { type Ref, watch } from 'vue';\n\nexport const useStyleStore = defineStore('style', {\n  state: () => {\n    const isDarkTheme = useDark();\n    const toggleDark = useToggle(isDarkTheme);\n    const isSmallScreen = useMediaQuery('(max-width: 700px)');\n    const isMenuCollapsed = useStorage('isMenuCollapsed', isSmallScreen.value) as Ref<boolean>;\n\n    watch(isSmallScreen, v => (isMenuCollapsed.value = v));\n\n    return {\n      isDarkTheme,\n      toggleDark,\n      isMenuCollapsed,\n      isSmallScreen,\n    };\n  },\n});\n"
  },
  {
    "path": "src/themes.ts",
    "content": "import type { GlobalThemeOverrides } from 'naive-ui';\n\nexport const lightThemeOverrides: GlobalThemeOverrides = {\n  Menu: {\n    itemHeight: '32px',\n  },\n\n  Layout: { color: '#f1f5f9' },\n\n  AutoComplete: {\n    peers: {\n      InternalSelectMenu: { height: '500px' },\n    },\n  },\n};\n\nexport const darkThemeOverrides: GlobalThemeOverrides = {\n  common: {\n    primaryColor: '#1ea54cFF',\n    primaryColorHover: '#36AD6AFF',\n    primaryColorPressed: '#0C7A43FF',\n    primaryColorSuppl: '#36AD6AFF',\n  },\n\n  Notification: {\n    color: '#333333',\n  },\n\n  AutoComplete: {\n    peers: {\n      InternalSelectMenu: { height: '500px', color: '#1e1e1e' },\n    },\n  },\n\n  Menu: {\n    itemHeight: '32px',\n  },\n\n  Layout: {\n    color: '#1c1c1c',\n    siderColor: '#232323',\n    siderBorderColor: 'transparent',\n  },\n\n  Card: {\n    color: '#232323',\n    borderColor: '#282828',\n  },\n\n  Table: {\n    tdColor: '#232323',\n    thColor: '#353535',\n  },\n};\n"
  },
  {
    "path": "src/tools/ascii-text-drawer/ascii-text-drawer.vue",
    "content": "<script setup lang=\"ts\">\nimport figlet from 'figlet';\nimport TextareaCopyable from '@/components/TextareaCopyable.vue';\n\nconst input = ref('Ascii ART');\nconst font = useStorage('ascii-text-drawer:font', 'Standard');\nconst width = useStorage('ascii-text-drawer:width', 80);\nconst output = ref('');\nconst errored = ref(false);\nconst processing = ref(false);\n\nfiglet.defaults({ fontPath: '//unpkg.com/figlet@1.6.0/fonts/' });\n\nwatchEffect(async () => {\n  processing.value = true;\n  try {\n    const options: figlet.Options = {\n      font: font.value as figlet.Fonts,\n      width: width.value,\n      whitespaceBreak: true,\n    };\n    output.value = await (new Promise<string>((resolve, reject) =>\n      figlet.text(input.value, options,\n        (err, text) => {\n          if (err) {\n            reject(err);\n            return;\n          }\n\n          resolve(text ?? '');\n        })));\n    errored.value = false;\n  }\n  catch (e: any) {\n    errored.value = true;\n  }\n  processing.value = false;\n});\n\nconst fonts = ['1Row', '3-D', '3D Diagonal', '3D-ASCII', '3x5', '4Max', '5 Line Oblique', 'AMC 3 Line', 'AMC 3 Liv1', 'AMC AAA01', 'AMC Neko', 'AMC Razor', 'AMC Razor2', 'AMC Slash', 'AMC Slider', 'AMC Thin', 'AMC Tubes', 'AMC Untitled', 'ANSI Shadow', 'ASCII New Roman', 'Acrobatic', 'Alligator', 'Alligator2', 'Alpha', 'Alphabet', 'Arrows', 'Avatar', 'B1FF', 'B1FF', 'Banner', 'Banner3-D', 'Banner3', 'Banner4', 'Barbwire', 'Basic', 'Bear', 'Bell', 'Benjamin', 'Big Chief', 'Big Money-ne', 'Big Money-nw', 'Big Money-se', 'Big Money-sw', 'Big', 'Bigfig', 'Binary', 'Block', 'Blocks', 'Bloody', 'Bolger', 'Braced', 'Bright', 'Broadway KB', 'Broadway', 'Bubble', 'Bulbhead', 'Caligraphy', 'Caligraphy2', 'Calvin S', 'Cards', 'Catwalk', 'Chiseled', 'Chunky', 'Coinstak', 'Cola', 'Colossal', 'Computer', 'Contessa', 'Contrast', 'Cosmike', 'Crawford', 'Crawford2', 'Crazy', 'Cricket', 'Cursive', 'Cyberlarge', 'Cybermedium', 'Cybersmall', 'Cygnet', 'DANC4', 'DOS Rebel', 'DWhistled', 'Dancing Font', 'Decimal', 'Def Leppard', 'Delta Corps Priest 1', 'Diamond', 'Diet Cola', 'Digital', 'Doh', 'Doom', 'Dot Matrix', 'Double Shorts', 'Double', 'Dr Pepper', 'Efti Chess', 'Efti Font', 'Efti Italic', 'Efti Piti', 'Efti Robot', 'Efti Wall', 'Efti Water', 'Electronic', 'Elite', 'Epic', 'Fender', 'Filter', 'Fire Font-k', 'Fire Font-s', 'Flipped', 'Flower Power', 'Four Tops', 'Fraktur', 'Fun Face', 'Fun Faces', 'Fuzzy', 'Georgi16', 'Georgia11', 'Ghost', 'Ghoulish', 'Glenyn', 'Goofy', 'Gothic', 'Graceful', 'Gradient', 'Graffiti', 'Greek', 'Heart Left', 'Heart Right', 'Henry 3D', 'Hex', 'Hieroglyphs', 'Hollywood', 'Horizontal Left', 'Horizontal Right', 'ICL-1900', 'Impossible', 'Invita', 'Isometric1', 'Isometric2', 'Isometric3', 'Isometric4', 'Italic', 'Ivrit', 'JS Block Letters', 'JS Bracket Letters', 'JS Capital Curves', 'JS Cursive', 'JS Stick Letters', 'Jacky', 'Jazmine', 'Jerusalem', 'Katakana', 'Kban', 'Keyboard', 'Knob', 'Konto Slant', 'Konto', 'LCD', 'Larry 3D 2', 'Larry 3D', 'Lean', 'Letters', 'Lil Devil', 'Line Blocks', 'Linux', 'Lockergnome', 'Madrid', 'Marquee', 'Maxfour', 'Merlin1', 'Merlin2', 'Mike', 'Mini', 'Mirror', 'Mnemonic', 'Modular', 'Morse', 'Morse2', 'Moscow', 'Mshebrew210', 'Muzzle', 'NScript', 'NT Greek', 'NV Script', 'Nancyj-Fancy', 'Nancyj-Improved', 'Nancyj-Underlined', 'Nancyj', 'Nipples', 'O8', 'OS2', 'Octal', 'Ogre', 'Old Banner', 'Patorjk\\'s Cheese', 'Patorjk-HeX', 'Pawp', 'Peaks Slant', 'Peaks', 'Pebbles', 'Pepper', 'Poison', 'Puffy', 'Puzzle', 'Pyramid', 'Rammstein', 'Rectangles', 'Red Phoenix', 'Relief', 'Relief2', 'Reverse', 'Roman', 'Rot13', 'Rot13', 'Rotated', 'Rounded', 'Rowan Cap', 'Rozzo', 'Runic', 'Runyc', 'S Blood', 'SL Script', 'Santa Clara', 'Script', 'Serifcap', 'Shadow', 'Shimrod', 'Short', 'Slant Relief', 'Slant', 'Slide', 'Small Caps', 'Small Isometric1', 'Small Keyboard', 'Small Poison', 'Small Script', 'Small Shadow', 'Small Slant', 'Small Tengwar', 'Small', 'Soft', 'Speed', 'Spliff', 'Stacey', 'Stampate', 'Stampatello', 'Standard', 'Star Strips', 'Star Wars', 'Stellar', 'Stforek', 'Stick Letters', 'Stop', 'Straight', 'Stronger Than All', 'Sub-Zero', 'Swamp Land', 'Swan', 'Sweet', 'THIS', 'Tanja', 'Tengwar', 'Term', 'Test1', 'The Edge', 'Thick', 'Thin', 'Thorned', 'Three Point', 'Ticks Slant', 'Ticks', 'Tiles', 'Tinker-Toy', 'Tombstone', 'Train', 'Trek', 'Tsalagi', 'Tubular', 'Twisted', 'Two Point', 'USA Flag', 'Univers', 'Varsity', 'Wavy', 'Weird', 'Wet Letter', 'Whimsy', 'Wow'];\n</script>\n\n<template>\n  <c-card style=\"max-width: 600px;\">\n    <c-input-text\n      v-model:value=\"input\"\n      label=\"Your text:\"\n      placeholder=\"Your text to draw\"\n      raw-text\n      multiline\n      rows=\"4\"\n    />\n\n    <n-divider />\n\n    <n-grid cols=\"4\" x-gap=\"12\" w-full>\n      <n-gi span=\"2\">\n        <c-select\n          v-model:value=\"font\"\n          label-position=\"top\"\n          label=\"Font:\"\n          :options=\"fonts\"\n          searchable=\"true\"\n          placeholder=\"Select font to use\"\n        />\n      </n-gi>\n      <n-gi span=\"2\">\n        <n-form-item label=\"Width:\" label-placement=\"top\" label-width=\"100\" :show-feedback=\"false\">\n          <n-input-number v-model:value=\"width\" min=\"0\" max=\"10000\" w-full placeholder=\"Width of the text\" />\n        </n-form-item>\n      </n-gi>\n    </n-grid>\n\n    <n-divider />\n\n    <div v-if=\"processing\" flex items-center justify-center>\n      <n-spin size=\"medium\" />\n      <span class=\"ml-2\">Loading font...</span>\n    </div>\n\n    <c-alert v-if=\"errored\" mt-1 text-center type=\"error\">\n      Current settings resulted in error.\n    </c-alert>\n\n    <n-form-item v-if=\"!processing && !errored\" label=\"Ascii Art text:\">\n      <TextareaCopyable\n        :value=\"output\"\n        mb-1 mt-1\n        copy-placement=\"outside\"\n      />\n    </n-form-item>\n  </c-card>\n</template>\n"
  },
  {
    "path": "src/tools/ascii-text-drawer/index.ts",
    "content": "import { Artboard } from '@vicons/tabler';\nimport { defineTool } from '../tool';\n\nexport const tool = defineTool({\n  name: 'ASCII Art Text Generator',\n  path: '/ascii-text-drawer',\n  description: 'Create ASCII art text with many fonts and styles.',\n  keywords: ['ascii', 'asciiart', 'text', 'drawer'],\n  component: () => import('./ascii-text-drawer.vue'),\n  icon: Artboard,\n  createdAt: new Date('2024-03-03'),\n});\n"
  },
  {
    "path": "src/tools/base64-file-converter/base64-file-converter.vue",
    "content": "<script setup lang=\"ts\">\nimport { useBase64 } from '@vueuse/core';\nimport type { Ref } from 'vue';\nimport { useCopy } from '@/composable/copy';\nimport { getExtensionFromMimeType, getMimeTypeFromBase64, previewImageFromBase64, useDownloadFileFromBase64Refs } from '@/composable/downloadBase64';\nimport { useValidation } from '@/composable/validation';\nimport { isValidBase64 } from '@/utils/base64';\n\nconst fileName = ref('file');\nconst fileExtension = ref('');\nconst base64Input = ref('');\nconst { download } = useDownloadFileFromBase64Refs(\n  {\n    source: base64Input,\n    filename: fileName,\n    extension: fileExtension,\n  });\nconst base64InputValidation = useValidation({\n  source: base64Input,\n  rules: [\n    {\n      message: 'Invalid base 64 string',\n      validator: value => isValidBase64(value.trim()),\n    },\n  ],\n});\n\nwatch(\n  base64Input,\n  (newValue, _) => {\n    const { mimeType } = getMimeTypeFromBase64({ base64String: newValue });\n    if (mimeType) {\n      fileExtension.value = getExtensionFromMimeType(mimeType) || fileExtension.value;\n    }\n  },\n);\n\nfunction previewImage() {\n  if (!base64InputValidation.isValid) {\n    return;\n  }\n  try {\n    const image = previewImageFromBase64(base64Input.value);\n    image.style.maxWidth = '100%';\n    image.style.maxHeight = '400px';\n    const previewContainer = document.getElementById('previewContainer');\n    if (previewContainer) {\n      previewContainer.innerHTML = '';\n      previewContainer.appendChild(image);\n    }\n  }\n  catch (_) {\n    //\n  }\n}\n\nfunction downloadFile() {\n  if (!base64InputValidation.isValid) {\n    return;\n  }\n\n  try {\n    download();\n  }\n  catch (_) {\n    //\n  }\n}\n\nconst fileInput = ref() as Ref<File>;\nconst { base64: fileBase64 } = useBase64(fileInput);\nconst { copy: copyFileBase64 } = useCopy({ source: fileBase64, text: 'Base64 string copied to the clipboard' });\n\nasync function onUpload(file: File) {\n  if (file) {\n    fileInput.value = file;\n  }\n}\n</script>\n\n<template>\n  <c-card title=\"Base64 to file\">\n    <n-grid cols=\"3\" x-gap=\"12\">\n      <n-gi span=\"2\">\n        <c-input-text\n          v-model:value=\"fileName\"\n          label=\"File Name\"\n          placeholder=\"Download filename\"\n          mb-2\n        />\n      </n-gi>\n      <n-gi>\n        <c-input-text\n          v-model:value=\"fileExtension\"\n          label=\"Extension\"\n          placeholder=\"Extension\"\n          mb-2\n        />\n      </n-gi>\n    </n-grid>\n    <c-input-text\n      v-model:value=\"base64Input\"\n      multiline\n      placeholder=\"Put your base64 file string here...\"\n      rows=\"5\"\n      :validation=\"base64InputValidation\"\n      mb-2\n    />\n\n    <div flex justify-center py-2>\n      <div id=\"previewContainer\" />\n    </div>\n\n    <div flex justify-center gap-3>\n      <c-button :disabled=\"base64Input === '' || !base64InputValidation.isValid\" @click=\"previewImage()\">\n        Preview image\n      </c-button>\n      <c-button :disabled=\"base64Input === '' || !base64InputValidation.isValid\" @click=\"downloadFile()\">\n        Download file\n      </c-button>\n    </div>\n  </c-card>\n\n  <c-card title=\"File to base64\">\n    <c-file-upload title=\"Drag and drop a file here, or click to select a file\" @file-upload=\"onUpload\" />\n    <c-input-text :value=\"fileBase64\" multiline readonly placeholder=\"File in base64 will be here\" rows=\"5\" my-2 />\n\n    <div flex justify-center>\n      <c-button @click=\"copyFileBase64()\">\n        Copy\n      </c-button>\n    </div>\n  </c-card>\n</template>\n\n<style lang=\"less\" scoped>\n::v-deep(.n-upload-trigger) {\n  width: 100%;\n}\n</style>\n"
  },
  {
    "path": "src/tools/base64-file-converter/index.ts",
    "content": "import { FileDigit } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.base64-file-converter.title'),\n  path: '/base64-file-converter',\n  description: translate('tools.base64-file-converter.description'),\n  keywords: ['base64', 'converter', 'upload', 'image', 'file', 'conversion', 'web', 'data', 'format'],\n  component: () => import('./base64-file-converter.vue'),\n  icon: FileDigit,\n});\n"
  },
  {
    "path": "src/tools/base64-string-converter/base64-string-converter.vue",
    "content": "<script setup lang=\"ts\">\nimport { useCopy } from '@/composable/copy';\nimport { base64ToText, isValidBase64, textToBase64 } from '@/utils/base64';\nimport { withDefaultOnError } from '@/utils/defaults';\n\nconst encodeUrlSafe = useStorage('base64-string-converter--encode-url-safe', false);\nconst decodeUrlSafe = useStorage('base64-string-converter--decode-url-safe', false);\n\nconst textInput = ref('');\nconst base64Output = computed(() => textToBase64(textInput.value, { makeUrlSafe: encodeUrlSafe.value }));\nconst { copy: copyTextBase64 } = useCopy({ source: base64Output, text: 'Base64 string copied to the clipboard' });\n\nconst base64Input = ref('');\nconst textOutput = computed(() =>\n  withDefaultOnError(() => base64ToText(base64Input.value.trim(), { makeUrlSafe: decodeUrlSafe.value }), ''),\n);\nconst { copy: copyText } = useCopy({ source: textOutput, text: 'String copied to the clipboard' });\nconst b64ValidationRules = [\n  {\n    message: 'Invalid base64 string',\n    validator: (value: string) => isValidBase64(value.trim(), { makeUrlSafe: decodeUrlSafe.value }),\n  },\n];\nconst b64ValidationWatch = [decodeUrlSafe];\n</script>\n\n<template>\n  <c-card title=\"String to base64\">\n    <n-form-item label=\"Encode URL safe\" label-placement=\"left\">\n      <n-switch v-model:value=\"encodeUrlSafe\" />\n    </n-form-item>\n    <c-input-text\n      v-model:value=\"textInput\"\n      multiline\n      placeholder=\"Put your string here...\"\n      rows=\"5\"\n      label=\"String to encode\"\n      raw-text\n      mb-5\n    />\n\n    <c-input-text\n      label=\"Base64 of string\"\n      :value=\"base64Output\"\n      multiline\n      readonly\n      placeholder=\"The base64 encoding of your string will be here\"\n      rows=\"5\"\n      mb-5\n    />\n\n    <div flex justify-center>\n      <c-button @click=\"copyTextBase64()\">\n        Copy base64\n      </c-button>\n    </div>\n  </c-card>\n\n  <c-card title=\"Base64 to string\">\n    <n-form-item label=\"Decode URL safe\" label-placement=\"left\">\n      <n-switch v-model:value=\"decodeUrlSafe\" />\n    </n-form-item>\n    <c-input-text\n      v-model:value=\"base64Input\"\n      multiline\n      placeholder=\"Your base64 string...\"\n      rows=\"5\"\n      :validation-rules=\"b64ValidationRules\"\n      :validation-watch=\"b64ValidationWatch\"\n      label=\"Base64 string to decode\"\n      mb-5\n    />\n\n    <c-input-text\n      v-model:value=\"textOutput\"\n      label=\"Decoded string\"\n      placeholder=\"The decoded string will be here\"\n      multiline\n      rows=\"5\"\n      readonly\n      mb-5\n    />\n\n    <div flex justify-center>\n      <c-button @click=\"copyText()\">\n        Copy decoded string\n      </c-button>\n    </div>\n  </c-card>\n</template>\n"
  },
  {
    "path": "src/tools/base64-string-converter/index.ts",
    "content": "import { FileDigit } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.base64-string-converter.title'),\n  path: '/base64-string-converter',\n  description: translate('tools.base64-string-converter.description'),\n  keywords: ['base64', 'converter', 'conversion', 'web', 'data', 'format', 'atob', 'btoa'],\n  component: () => import('./base64-string-converter.vue'),\n  icon: FileDigit,\n  redirectFrom: ['/file-to-base64', '/base64-converter'],\n});\n"
  },
  {
    "path": "src/tools/basic-auth-generator/basic-auth-generator.vue",
    "content": "<script setup lang=\"ts\">\nimport { useCopy } from '@/composable/copy';\nimport { textToBase64 } from '@/utils/base64';\n\nconst username = ref('');\nconst password = ref('');\nconst header = computed(() => `Authorization: Basic ${textToBase64(`${username.value}:${password.value}`)}`);\n\nconst { copy } = useCopy({ source: header, text: 'Header copied to the clipboard' });\n</script>\n\n<template>\n  <div>\n    <c-input-text v-model:value=\"username\" label=\"Username\" placeholder=\"Your username...\" clearable raw-text mb-5 />\n    <c-input-text\n      v-model:value=\"password\"\n      label=\"Password\"\n      placeholder=\"Your password...\"\n      clearable\n      raw-text\n      mb-2\n      type=\"password\"\n    />\n\n    <c-card>\n      <n-statistic label=\"Authorization header:\" class=\"header\">\n        <n-scrollbar x-scrollable style=\"max-width: 550px; margin-bottom: -10px; padding-bottom: 10px\" trigger=\"none\">\n          {{ header }}\n        </n-scrollbar>\n      </n-statistic>\n    </c-card>\n    <div mt-5 flex justify-center>\n      <c-button @click=\"copy()\">\n        Copy header\n      </c-button>\n    </div>\n  </div>\n</template>\n\n<style lang=\"less\" scoped>\n::v-deep(.n-statistic-value__content) {\n  font-family: monospace;\n  font-size: 17px !important;\n  white-space: nowrap;\n}\n</style>\n"
  },
  {
    "path": "src/tools/basic-auth-generator/index.ts",
    "content": "import { PasswordRound } from '@vicons/material';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.basic-auth-generator.title'),\n  path: '/basic-auth-generator',\n  description: translate('tools.basic-auth-generator.description'),\n  keywords: [\n    'basic',\n    'auth',\n    'generator',\n    'username',\n    'password',\n    'base64',\n    'authentication',\n    'header',\n    'authorization',\n  ],\n  component: () => import('./basic-auth-generator.vue'),\n  icon: PasswordRound,\n});\n"
  },
  {
    "path": "src/tools/bcrypt/bcrypt.vue",
    "content": "<script setup lang=\"ts\">\nimport { compareSync, hashSync } from 'bcryptjs';\nimport { useThemeVars } from 'naive-ui';\nimport { useCopy } from '@/composable/copy';\n\nconst themeVars = useThemeVars();\n\nconst input = ref('');\nconst saltCount = ref(10);\nconst hashed = computed(() => hashSync(input.value, saltCount.value));\nconst { copy } = useCopy({ source: hashed, text: 'Hashed string copied to the clipboard' });\n\nconst compareString = ref('');\nconst compareHash = ref('');\nconst compareMatch = computed(() => compareSync(compareString.value, compareHash.value));\n</script>\n\n<template>\n  <c-card title=\"Hash\">\n    <c-input-text\n      v-model:value=\"input\"\n      placeholder=\"Your string to bcrypt...\"\n      raw-text\n      label=\"Your string: \"\n      label-position=\"left\"\n      label-align=\"right\"\n      label-width=\"120px\"\n      mb-2\n    />\n    <n-form-item label=\"Salt count: \" label-placement=\"left\" label-width=\"120\">\n      <n-input-number v-model:value=\"saltCount\" placeholder=\"Salt rounds...\" :max=\"100\" :min=\"0\" w-full />\n    </n-form-item>\n\n    <c-input-text :value=\"hashed\" readonly text-center />\n\n    <div mt-5 flex justify-center>\n      <c-button @click=\"copy()\">\n        Copy hash\n      </c-button>\n    </div>\n  </c-card>\n\n  <c-card title=\"Compare string with hash\">\n    <n-form label-width=\"120\">\n      <n-form-item label=\"Your string: \" label-placement=\"left\">\n        <c-input-text v-model:value=\"compareString\" placeholder=\"Your string to compare...\" raw-text />\n      </n-form-item>\n      <n-form-item label=\"Your hash: \" label-placement=\"left\">\n        <c-input-text v-model:value=\"compareHash\" placeholder=\"Your hash to compare...\" raw-text />\n      </n-form-item>\n      <n-form-item label=\"Do they match ? \" label-placement=\"left\" :show-feedback=\"false\">\n        <div class=\"compare-result\" :class=\"{ positive: compareMatch }\">\n          {{ compareMatch ? 'Yes' : 'No' }}\n        </div>\n      </n-form-item>\n    </n-form>\n  </c-card>\n</template>\n\n<style lang=\"less\" scoped>\n.compare-result {\n  color: v-bind('themeVars.errorColor');\n\n  &.positive {\n    color: v-bind('themeVars.successColor');\n  }\n}\n</style>\n"
  },
  {
    "path": "src/tools/bcrypt/index.ts",
    "content": "import { LockSquare } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.bcrypt.title'),\n  path: '/bcrypt',\n  description: translate('tools.bcrypt.description'),\n  keywords: ['bcrypt', 'hash', 'compare', 'password', 'salt', 'round', 'storage', 'crypto'],\n  component: () => import('./bcrypt.vue'),\n  icon: LockSquare,\n});\n"
  },
  {
    "path": "src/tools/benchmark-builder/benchmark-builder.models.ts",
    "content": "import _ from 'lodash';\n\nexport { computeAverage, computeVariance, arrayToMarkdownTable };\n\nfunction computeAverage({ data }: { data: number[] }) {\n  if (data.length === 0) {\n    return 0;\n  }\n\n  return _.sum(data) / data.length;\n}\n\nfunction computeVariance({ data }: { data: number[] }) {\n  const mean = computeAverage({ data });\n\n  const squaredDiffs = data.map(value => (value - mean) ** 2);\n\n  return computeAverage({ data: squaredDiffs });\n}\n\nfunction arrayToMarkdownTable({ data, headerMap = {} }: { data: Record<string, unknown>[]; headerMap?: Record<string, string> }) {\n  if (!Array.isArray(data) || data.length === 0) {\n    return '';\n  }\n\n  const headers = Object.keys(data[0]);\n  const rows = data.map(obj => Object.values(obj));\n\n  const headerRow = `| ${headers.map(header => headerMap[header] ?? header).join(' | ')} |`;\n  const separatorRow = `| ${headers.map(() => '---').join(' | ')} |`;\n  const dataRows = rows.map(row => `| ${row.join(' | ')} |`).join('\\n');\n\n  return `${headerRow}\\n${separatorRow}\\n${dataRows}`;\n}\n"
  },
  {
    "path": "src/tools/benchmark-builder/benchmark-builder.vue",
    "content": "<script setup lang=\"ts\">\nimport { Plus, Trash } from '@vicons/tabler';\nimport { useStorage } from '@vueuse/core';\nimport _ from 'lodash';\n\nimport { arrayToMarkdownTable, computeAverage, computeVariance } from './benchmark-builder.models';\nimport DynamicValues from './dynamic-values.vue';\nimport { useCopy } from '@/composable/copy';\n\nconst suites = useStorage('benchmark-builder:suites', [\n  { title: 'Suite 1', data: [5, 10] },\n  { title: 'Suite 2', data: [8, 12] },\n]);\n\nconst unit = useStorage('benchmark-builder:unit', '');\n\nconst round = (v: number) => Math.round(v * 1000) / 1000;\n\nconst results = computed(() => {\n  return suites.value\n    .map(({ data: dirtyData, title }) => {\n      const data = dirtyData.filter(_.isNumber);\n\n      return {\n        title,\n        size: data.length,\n        mean: computeAverage({ data }),\n        variance: computeVariance({ data }),\n      };\n    })\n    .sort((a, b) => a.mean - b.mean)\n    .map(({ mean, variance, size, title }, index, suites) => {\n      const cleanUnit = unit.value.trim();\n      const bestMean: number = suites[0].mean;\n      const deltaWithBestMean = mean - bestMean;\n      const ratioWithBestMean = bestMean === 0 ? '∞' : round(mean / bestMean);\n\n      const comparisonValues: string\n        = (index !== 0 && bestMean !== mean) ? ` (+${round(deltaWithBestMean)}${cleanUnit} ; x${ratioWithBestMean})` : '';\n\n      return {\n        position: index + 1,\n        title,\n        mean: `${round(mean)}${cleanUnit}${comparisonValues}`,\n        variance: `${round(variance)}${cleanUnit}${cleanUnit ? '²' : ''}`,\n        size,\n      };\n    });\n});\n\nconst { copy } = useCopy({ createToast: false });\n\nconst header = {\n  position: 'Position',\n  title: 'Suite',\n  size: 'Samples',\n  mean: 'Mean',\n  variance: 'Variance',\n};\n\nfunction copyAsMarkdown() {\n  copy(arrayToMarkdownTable({ data: results.value, headerMap: header }));\n}\n\nfunction copyAsBulletList() {\n  const bulletList = results.value\n    .flatMap(({ title, ...sections }) => {\n      return [\n        ` - ${title}`,\n        ...Object.entries(sections).map(\n          ([key, value]) => `    - ${header[key as keyof typeof header] ?? key}: ${value}`,\n        ),\n      ];\n    })\n    .join('\\n');\n\n  copy(bulletList);\n}\n</script>\n\n<template>\n  <n-scrollbar style=\"flex: 1\" x-scrollable>\n    <div mb-5 flex flex-1 flex-nowrap justify-center gap-12px>\n      <div v-for=\"(suite, index) of suites\" :key=\"index\">\n        <c-card style=\"width: 294px\">\n          <c-input-text\n            v-model:value=\"suite.title\"\n            label-position=\"left\"\n            label=\"Suite name\"\n            placeholder=\"Suite name...\"\n            clearable\n          />\n\n          <n-divider />\n          <n-form-item label=\"Suite values\" :show-feedback=\"false\">\n            <DynamicValues v-model:values=\"suite.data\" />\n          </n-form-item>\n        </c-card>\n\n        <div flex justify-center>\n          <c-button v-if=\"suites.length > 1\" variant=\"text\" @click=\"suites.splice(index, 1)\">\n            <n-icon :component=\"Trash\" depth=\"3\" mr-2 size=\"18\" />\n            Delete suite\n          </c-button>\n          <c-button\n            variant=\"text\"\n            @click=\"suites.splice(index + 1, 0, { data: [0], title: `Suite ${suites.length + 1}` })\"\n          >\n            <n-icon :component=\"Plus\" depth=\"3\" mr-2 size=\"18\" />\n            Add suite\n          </c-button>\n        </div>\n      </div>\n    </div>\n  </n-scrollbar>\n\n  <div style=\"flex: 0 0 100%\">\n    <div style=\"max-width: 600px; margin: 0 auto\">\n      <div mx-auto max-w-sm flex justify-center gap-3>\n        <c-input-text v-model:value=\"unit\" placeholder=\"Unit (eg: ms)\" label=\"Unit\" label-position=\"left\" mb-4 />\n\n        <c-button\n          @click=\"\n            suites = [\n              { title: 'Suite 1', data: [] },\n              { title: 'Suite 2', data: [] },\n            ]\n          \"\n        >\n          Reset suites\n        </c-button>\n      </div>\n\n      <c-table :data=\"results\" :headers=\"header\" />\n\n      <div mt-5 flex justify-center gap-3>\n        <c-button @click=\"copyAsMarkdown()\">\n          Copy as markdown table\n        </c-button>\n        <c-button @click=\"copyAsBulletList()\">\n          Copy as bullet list\n        </c-button>\n      </div>\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/benchmark-builder/dynamic-values.vue",
    "content": "<script setup lang=\"ts\">\nimport { Plus, Trash } from '@vicons/tabler';\nimport { useTemplateRefsList, useVModel } from '@vueuse/core';\nimport { NInputNumber } from 'naive-ui';\nimport { nextTick } from 'vue';\n\nconst props = defineProps<{ values: (number | null)[] }>();\n\nconst emit = defineEmits(['update:values']);\n\nconst refs = useTemplateRefsList<typeof NInputNumber>();\n\nconst values = useVModel(props, 'values', emit);\n\nasync function addValue() {\n  values.value.push(null);\n  await nextTick();\n  refs.value.at(-1)?.focus();\n}\n\nfunction onInputEnter(index: number) {\n  if (index === values.value.length - 1) {\n    addValue();\n    return;\n  }\n\n  refs.value.at(index + 1)?.focus();\n}\n</script>\n\n<template>\n  <div>\n    <div v-for=\"(value, index) of values\" :key=\"index\" mb-2 flex flex-nowrap gap-2>\n      <NInputNumber\n        :ref=\"refs.set\"\n        v-model:value=\"values[index]\"\n        :show-button=\"false\"\n        placeholder=\"Set your measure...\"\n        autofocus\n        @keydown.enter=\"onInputEnter(index)\"\n      />\n      <c-tooltip tooltip=\"Delete this value\">\n        <c-button circle variant=\"text\" @click=\"values.splice(index, 1)\">\n          <n-icon :component=\"Trash\" depth=\"3\" size=\"18\" />\n        </c-button>\n      </c-tooltip>\n    </div>\n\n    <c-button @click=\"addValue\">\n      <n-icon :component=\"Plus\" depth=\"3\" mr-2 size=\"18\" />\n      Add a measure\n    </c-button>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/benchmark-builder/index.ts",
    "content": "import { SpeedFilled } from '@vicons/material';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.benchmark-builder.title'),\n  path: '/benchmark-builder',\n  description: translate('tools.benchmark-builder.description'),\n  keywords: ['benchmark', 'builder', 'execution', 'duration', 'mean', 'variance'],\n  component: () => import('./benchmark-builder.vue'),\n  icon: SpeedFilled,\n  createdAt: new Date('2023-04-05'),\n});\n"
  },
  {
    "path": "src/tools/bip39-generator/bip39-generator.vue",
    "content": "<script setup lang=\"ts\">\nimport {\n  chineseSimplifiedWordList,\n  chineseTraditionalWordList,\n  czechWordList,\n  englishWordList,\n  entropyToMnemonic,\n  frenchWordList,\n  generateEntropy,\n  italianWordList,\n  japaneseWordList,\n  koreanWordList,\n  mnemonicToEntropy,\n  portugueseWordList,\n  spanishWordList,\n} from '@it-tools/bip39';\nimport { Copy, Refresh } from '@vicons/tabler';\n\nimport { useCopy } from '@/composable/copy';\nimport { useValidation } from '@/composable/validation';\nimport { isNotThrowing } from '@/utils/boolean';\nimport { withDefaultOnError } from '@/utils/defaults';\n\nconst languages = {\n  'English': englishWordList,\n  'Chinese simplified': chineseSimplifiedWordList,\n  'Chinese traditional': chineseTraditionalWordList,\n  'Czech': czechWordList,\n  'French': frenchWordList,\n  'Italian': italianWordList,\n  'Japanese': japaneseWordList,\n  'Korean': koreanWordList,\n  'Portuguese': portugueseWordList,\n  'Spanish': spanishWordList,\n};\n\nconst entropy = ref(generateEntropy());\nconst passphraseInput = ref('');\n\nconst language = ref<keyof typeof languages>('English');\nconst passphrase = computed({\n  get() {\n    return withDefaultOnError(() => entropyToMnemonic(entropy.value, languages[language.value]), passphraseInput.value);\n  },\n  set(value: string) {\n    passphraseInput.value = value;\n    entropy.value = withDefaultOnError(() => mnemonicToEntropy(value, languages[language.value]), '');\n  },\n});\n\nconst entropyValidation = useValidation({\n  source: entropy,\n  rules: [\n    {\n      validator: value => value === '' || (value.length <= 32 && value.length >= 16 && value.length % 4 === 0),\n      message: 'Entropy length should be >= 16, <= 32 and be a multiple of 4',\n    },\n    {\n      validator: value => /^[a-fA-F0-9]*$/.test(value),\n      message: 'Entropy should be an hexadecimal string',\n    },\n  ],\n});\n\nconst mnemonicValidation = useValidation({\n  source: passphrase,\n  rules: [\n    {\n      validator: value => isNotThrowing(() => mnemonicToEntropy(value, languages[language.value])),\n      message: 'Invalid mnemonic',\n    },\n  ],\n});\n\nfunction refreshEntropy() {\n  entropy.value = generateEntropy();\n}\n\nconst { copy: copyEntropy } = useCopy({ source: entropy, text: 'Entropy copied to the clipboard' });\nconst { copy: copyPassphrase } = useCopy({ source: passphrase, text: 'Passphrase copied to the clipboard' });\n</script>\n\n<template>\n  <div>\n    <n-grid cols=\"3\" x-gap=\"12\">\n      <n-gi span=\"1\">\n        <c-select\n          v-model:value=\"language\"\n          searchable\n          label=\"Language:\"\n          :options=\"Object.keys(languages)\"\n        />\n      </n-gi>\n      <n-gi span=\"2\">\n        <n-form-item\n          label=\"Entropy (seed):\"\n          :feedback=\"entropyValidation.message\"\n          :validation-status=\"entropyValidation.status\"\n        >\n          <n-input-group>\n            <c-input-text v-model:value=\"entropy\" placeholder=\"Your string...\" />\n\n            <c-button @click=\"refreshEntropy()\">\n              <n-icon size=\"22\">\n                <Refresh />\n              </n-icon>\n            </c-button>\n            <c-button @click=\"copyEntropy()\">\n              <n-icon size=\"22\">\n                <Copy />\n              </n-icon>\n            </c-button>\n          </n-input-group>\n        </n-form-item>\n      </n-gi>\n    </n-grid>\n    <n-form-item\n      label=\"Passphrase (mnemonic):\"\n      :feedback=\"mnemonicValidation.message\"\n      :validation-status=\"mnemonicValidation.status\"\n    >\n      <n-input-group>\n        <c-input-text v-model:value=\"passphrase\" placeholder=\"Your mnemonic...\" raw-text />\n\n        <c-button @click=\"copyPassphrase()\">\n          <n-icon size=\"22\" :component=\"Copy\" />\n        </c-button>\n      </n-input-group>\n    </n-form-item>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/bip39-generator/index.ts",
    "content": "import { AlignJustified } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.bip39-generator.title'),\n  path: '/bip39-generator',\n  description: translate('tools.bip39-generator.description'),\n  keywords: ['BIP39', 'passphrase', 'generator', 'mnemonic', 'entropy'],\n  component: () => import('./bip39-generator.vue'),\n  icon: AlignJustified,\n});\n"
  },
  {
    "path": "src/tools/camera-recorder/camera-recorder.vue",
    "content": "<script setup lang=\"ts\">\nimport _ from 'lodash';\n\nimport { useMediaRecorder } from './useMediaRecorder';\n\ninterface Media { type: 'image' | 'video'; value: string; createdAt: Date }\n\nconst {\n  videoInputs: cameras,\n  audioInputs: microphones,\n  permissionGranted,\n  isSupported,\n  ensurePermissions,\n} = useDevicesList({\n  requestPermissions: true,\n  constraints: { video: true, audio: true },\n  onUpdated() {\n    refreshCurrentDevices();\n  },\n});\n\nconst video = ref<HTMLVideoElement>();\nconst medias = ref<Media[]>([]);\nconst currentCamera = ref(cameras.value[0]?.deviceId);\nconst currentMicrophone = ref(microphones.value[0]?.deviceId);\nconst permissionCannotBePrompted = ref(false);\n\nconst {\n  stream,\n  start,\n  stop,\n  enabled: isMediaStreamAvailable,\n} = useUserMedia({\n  constraints: computed(() => ({\n    video: { deviceId: currentCamera.value },\n    ...(currentMicrophone.value ? { audio: { deviceId: currentMicrophone.value } } : {}),\n  })),\n  autoSwitch: true,\n});\n\nconst {\n  isRecordingSupported,\n  onRecordAvailable,\n  startRecording,\n  stopRecording,\n  pauseRecording,\n  recordingState,\n  resumeRecording,\n} = useMediaRecorder({\n  stream,\n});\n\nonRecordAvailable((value) => {\n  medias.value.unshift({ type: 'video', value, createdAt: new Date() });\n});\n\nfunction refreshCurrentDevices() {\n  if (_.isNil(currentCamera) || !cameras.value.find(i => i.deviceId === currentCamera.value)) {\n    currentCamera.value = cameras.value[0]?.deviceId;\n  }\n\n  if (_.isNil(microphones) || !microphones.value.find(i => i.deviceId === currentMicrophone.value)) {\n    currentMicrophone.value = microphones.value[0]?.deviceId;\n  }\n}\n\nfunction takeScreenshot() {\n  if (!video.value) {\n    return;\n  }\n\n  const canvas = document.createElement('canvas');\n  canvas.width = video.value.videoWidth;\n  canvas.height = video.value.videoHeight;\n  canvas.getContext('2d')?.drawImage(video.value, 0, 0);\n  const image = canvas.toDataURL('image/png');\n\n  medias.value.unshift({ type: 'image', value: image, createdAt: new Date() });\n}\n\nwatchEffect(() => {\n  if (video.value && stream.value) {\n    video.value.srcObject = stream.value;\n  }\n});\n\nonBeforeUnmount(() => stop());\n\nasync function requestPermissions() {\n  try {\n    await ensurePermissions();\n  }\n  catch (e) {\n    permissionCannotBePrompted.value = true;\n  }\n}\n\nfunction downloadMedia({ type, value, createdAt }: Media) {\n  const link = document.createElement('a');\n  link.href = value;\n  link.download = `${type}-${createdAt.getTime()}.${type === 'image' ? 'png' : 'webm'}`;\n  link.click();\n}\n</script>\n\n<template>\n  <div>\n    <c-card v-if=\"!isSupported\">\n      Your browser does not support recording video from camera\n    </c-card>\n\n    <c-card v-else-if=\"!permissionGranted\" text-center>\n      You need to grant permission to use your camera and microphone\n\n      <c-alert v-if=\"permissionCannotBePrompted\" mt-4 text-left>\n        Your browser has blocked permission request or does not support it. You need to grant permission manually in\n        your browser settings (usually the lock icon in the address bar).\n      </c-alert>\n\n      <div v-else mt-4 flex justify-center>\n        <c-button @click=\"requestPermissions\">\n          Grant permission\n        </c-button>\n      </div>\n    </c-card>\n\n    <c-card v-else>\n      <div flex flex-col gap-2>\n        <c-select\n          v-model:value=\"currentCamera\"\n          label-position=\"left\"\n          label-width=\"60px\"\n          label=\"Video:\"\n          :options=\"cameras.map(({ deviceId, label }) => ({ value: deviceId, label }))\"\n          placeholder=\"Select camera\"\n        />\n        <c-select\n          v-if=\"currentMicrophone && microphones.length > 0\"\n          v-model:value=\"currentMicrophone\"\n          label=\"Audio:\"\n          label-position=\"left\"\n          label-width=\"60px\"\n          :options=\"microphones.map(({ deviceId, label }) => ({ value: deviceId, label }))\"\n          placeholder=\"Select microphone\"\n        />\n      </div>\n\n      <div v-if=\"!isMediaStreamAvailable\" mt-3 flex justify-center>\n        <c-button type=\"primary\" @click=\"start\">\n          Start webcam\n        </c-button>\n      </div>\n\n      <div v-else>\n        <div my-2>\n          <video ref=\"video\" autoplay controls playsinline max-h-full w-full />\n        </div>\n\n        <div flex items-center justify-between gap-2>\n          <c-button :disabled=\"!isMediaStreamAvailable\" @click=\"takeScreenshot\">\n            <span mr-2> <icon-mdi-camera /></span>\n            Take screenshot\n          </c-button>\n\n          <div v-if=\"isRecordingSupported\" flex justify-center gap-2>\n            <c-button v-if=\"recordingState === 'stopped'\" @click=\"startRecording\">\n              <span mr-2> <icon-mdi-video /></span>\n              Start recording\n            </c-button>\n\n            <c-button v-if=\"recordingState === 'recording'\" @click=\"pauseRecording\">\n              <span mr-2> <icon-mdi-pause /></span>\n              Pause\n            </c-button>\n\n            <c-button v-if=\"recordingState === 'paused'\" @click=\"resumeRecording\">\n              <span mr-2> <icon-mdi-play /></span>\n              Resume\n            </c-button>\n\n            <c-button v-if=\"recordingState !== 'stopped'\" type=\"error\" @click=\"stopRecording\">\n              <span mr-2> <icon-mdi-record /></span>\n              Stop\n            </c-button>\n          </div>\n          <div v-else italic op-60>\n            Video recording is not supported in your browser\n          </div>\n        </div>\n      </div>\n    </c-card>\n\n    <div grid grid-cols-2 mt-5 gap-2>\n      <c-card v-for=\"({ type, value, createdAt }, index) in medias\" :key=\"index\">\n        <img v-if=\"type === 'image'\" :src=\"value\" max-h-full w-full alt=\"screenshot\">\n\n        <video v-else :src=\"value\" controls max-h-full w-full />\n\n        <div flex items-center justify-between>\n          <div font-bold>\n            {{ type === 'image' ? 'Screenshot' : 'Video' }}\n          </div>\n\n          <div flex gap-2>\n            <c-button @click=\"downloadMedia({ type, value, createdAt })\">\n              <icon-mdi-download />\n            </c-button>\n\n            <c-button @click=\"medias = medias.filter((_ignored, i) => i !== index)\">\n              <icon-mdi-delete-outline />\n            </c-button>\n          </div>\n        </div>\n      </c-card>\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/camera-recorder/index.ts",
    "content": "import { Camera } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.camera-recorder.title'),\n  path: '/camera-recorder',\n  description: translate('tools.camera-recorder.description'),\n  keywords: ['camera', 'recoder'],\n  component: () => import('./camera-recorder.vue'),\n  icon: Camera,\n  createdAt: new Date('2023-05-15'),\n});\n"
  },
  {
    "path": "src/tools/camera-recorder/useMediaRecorder.ts",
    "content": "import { type Ref, computed, ref } from 'vue';\n\nexport { useMediaRecorder };\n\nfunction useMediaRecorder({ stream }: { stream: Ref<MediaStream | undefined> }): {\n  isRecordingSupported: Ref<boolean>\n  recordingState: Ref<'stopped' | 'recording' | 'paused'>\n  startRecording: () => void\n  stopRecording: () => void\n  pauseRecording: () => void\n  resumeRecording: () => void\n  onRecordAvailable: (cb: (url: string) => void) => void\n} {\n  const isRecordingSupported = computed(() => MediaRecorder.isTypeSupported('video/webm'));\n  const mediaRecorder = ref<MediaRecorder | null>(null);\n  const recordedChunks = ref<Blob[]>([]);\n  const recordAvailable = createEventHook();\n  const recordingState = ref<'stopped' | 'recording' | 'paused'>('stopped');\n\n  const createVideo = () => {\n    const blob = new Blob(recordedChunks.value, { type: 'video/webm' });\n    const url = URL.createObjectURL(blob);\n    recordedChunks.value = [];\n    return url;\n  };\n\n  const startRecording = () => {\n    if (!isRecordingSupported.value) {\n      return;\n    }\n    if (!stream.value) {\n      return;\n    }\n    if (recordingState.value !== 'stopped') {\n      return;\n    }\n\n    mediaRecorder.value = new MediaRecorder(stream.value, { mimeType: 'video/webm' });\n\n    mediaRecorder.value.ondataavailable = (e) => {\n      if (e.data.size > 0) {\n        recordedChunks.value.push(e.data);\n      }\n    };\n\n    mediaRecorder.value.onstop = () => {\n      recordAvailable.trigger(createVideo());\n    };\n\n    if (mediaRecorder.value.state !== 'inactive') {\n      return;\n    }\n\n    mediaRecorder.value.start();\n    recordingState.value = 'recording';\n  };\n\n  const stopRecording = () => {\n    if (!isRecordingSupported.value) {\n      return;\n    }\n    if (!mediaRecorder.value) {\n      return;\n    }\n    if (recordingState.value === 'stopped') {\n      return;\n    }\n\n    mediaRecorder.value.stop();\n    recordingState.value = 'stopped';\n  };\n\n  const pauseRecording = () => {\n    if (!isRecordingSupported.value) {\n      return;\n    }\n    if (!mediaRecorder.value) {\n      return;\n    }\n    if (recordingState.value !== 'recording') {\n      return;\n    }\n\n    mediaRecorder.value.pause();\n    recordingState.value = 'paused';\n  };\n\n  const resumeRecording = () => {\n    if (!isRecordingSupported.value) {\n      return;\n    }\n    if (!mediaRecorder.value) {\n      return;\n    }\n\n    if (recordingState.value !== 'paused') {\n      return;\n    }\n\n    mediaRecorder.value.resume();\n    recordingState.value = 'recording';\n  };\n\n  return {\n    isRecordingSupported,\n    startRecording,\n    stopRecording,\n    pauseRecording,\n    resumeRecording,\n    recordingState,\n\n    onRecordAvailable: recordAvailable.on,\n  };\n}\n"
  },
  {
    "path": "src/tools/case-converter/case-converter.vue",
    "content": "<script setup lang=\"ts\">\nimport {\n  camelCase,\n  capitalCase,\n  constantCase,\n  dotCase,\n  headerCase,\n  noCase,\n  paramCase,\n  pascalCase,\n  pathCase,\n  sentenceCase,\n  snakeCase,\n} from 'change-case';\nimport InputCopyable from '../../components/InputCopyable.vue';\n\nconst baseConfig = {\n  stripRegexp: /[^A-Za-zÀ-ÖØ-öø-ÿ]+/gi,\n};\n\nconst input = ref('lorem ipsum dolor sit amet');\n\nconst formats = computed(() => [\n  {\n    label: 'Lowercase:',\n    value: input.value.toLocaleLowerCase(),\n  },\n  {\n    label: 'Uppercase:',\n    value: input.value.toLocaleUpperCase(),\n  },\n  {\n    label: 'Camelcase:',\n    value: camelCase(input.value, baseConfig),\n  },\n  {\n    label: 'Capitalcase:',\n    value: capitalCase(input.value, baseConfig),\n  },\n  {\n    label: 'Constantcase:',\n    value: constantCase(input.value, baseConfig),\n  },\n  {\n    label: 'Dotcase:',\n    value: dotCase(input.value, baseConfig),\n  },\n  {\n    label: 'Headercase:',\n    value: headerCase(input.value, baseConfig),\n  },\n  {\n    label: 'Nocase:',\n    value: noCase(input.value, baseConfig),\n  },\n  {\n    label: 'Paramcase:',\n    value: paramCase(input.value, baseConfig),\n  },\n  {\n    label: 'Pascalcase:',\n    value: pascalCase(input.value, baseConfig),\n  },\n  {\n    label: 'Pathcase:',\n    value: pathCase(input.value, baseConfig),\n  },\n  {\n    label: 'Sentencecase:',\n    value: sentenceCase(input.value, baseConfig),\n  },\n  {\n    label: 'Snakecase:',\n    value: snakeCase(input.value, baseConfig),\n  },\n  {\n    label: 'Mockingcase:',\n    value: input.value\n      .split('')\n      .map((char, index) => (index % 2 === 0 ? char.toUpperCase() : char.toLowerCase()))\n      .join(''),\n  },\n]);\n\nconst inputLabelAlignmentConfig = {\n  labelPosition: 'left',\n  labelWidth: '120px',\n  labelAlign: 'right',\n};\n</script>\n\n<template>\n  <c-card>\n    <c-input-text\n      v-model:value=\"input\"\n      label=\"Your string:\"\n      placeholder=\"Your string...\"\n      raw-text\n      v-bind=\"inputLabelAlignmentConfig\"\n    />\n\n    <div my-16px divider />\n\n    <InputCopyable\n      v-for=\"format in formats\"\n      :key=\"format.label\"\n      :value=\"format.value\"\n      :label=\"format.label\"\n      v-bind=\"inputLabelAlignmentConfig\"\n      mb-1\n    />\n  </c-card>\n</template>\n"
  },
  {
    "path": "src/tools/case-converter/index.ts",
    "content": "import { LetterCaseToggle } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.case-converter.title'),\n  path: '/case-converter',\n  description: translate('tools.case-converter.description'),\n  keywords: [\n    'case',\n    'converter',\n    'camelCase',\n    'capitalCase',\n    'constantCase',\n    'dotCase',\n    'headerCase',\n    'noCase',\n    'paramCase',\n    'pascalCase',\n    'pathCase',\n    'sentenceCase',\n    'snakeCase',\n  ],\n  component: () => import('./case-converter.vue'),\n  icon: LetterCaseToggle,\n});\n"
  },
  {
    "path": "src/tools/chmod-calculator/chmod-calculator.service.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { computeChmodOctalRepresentation, computeChmodSymbolicRepresentation } from './chmod-calculator.service';\n\ndescribe('chmod-calculator', () => {\n  describe('computeChmodOctalRepresentation', () => {\n    it('get the octal representation from permissions', () => {\n      expect(\n        computeChmodOctalRepresentation({\n          permissions: {\n            owner: { read: true, write: true, execute: true },\n            group: { read: true, write: true, execute: true },\n            public: { read: true, write: true, execute: true },\n          },\n        }),\n      ).to.eql('777');\n\n      expect(\n        computeChmodOctalRepresentation({\n          permissions: {\n            owner: { read: false, write: false, execute: false },\n            group: { read: false, write: false, execute: false },\n            public: { read: false, write: false, execute: false },\n          },\n        }),\n      ).to.eql('000');\n\n      expect(\n        computeChmodOctalRepresentation({\n          permissions: {\n            owner: { read: false, write: true, execute: false },\n            group: { read: false, write: true, execute: true },\n            public: { read: true, write: false, execute: true },\n          },\n        }),\n      ).to.eql('235');\n\n      expect(\n        computeChmodOctalRepresentation({\n          permissions: {\n            owner: { read: true, write: false, execute: false },\n            group: { read: false, write: true, execute: false },\n            public: { read: false, write: false, execute: true },\n          },\n        }),\n      ).to.eql('421');\n\n      expect(\n        computeChmodOctalRepresentation({\n          permissions: {\n            owner: { read: false, write: false, execute: true },\n            group: { read: false, write: true, execute: false },\n            public: { read: true, write: false, execute: false },\n          },\n        }),\n      ).to.eql('124');\n\n      expect(\n        computeChmodOctalRepresentation({\n          permissions: {\n            owner: { read: false, write: true, execute: false },\n            group: { read: false, write: true, execute: false },\n            public: { read: false, write: true, execute: false },\n          },\n        }),\n      ).to.eql('222');\n    });\n\n    it('get the symbolic representation from permissions', () => {\n      expect(\n        computeChmodSymbolicRepresentation({\n          permissions: {\n            owner: { read: true, write: true, execute: true },\n            group: { read: true, write: true, execute: true },\n            public: { read: true, write: true, execute: true },\n          },\n        }),\n      ).to.eql('rwxrwxrwx');\n\n      expect(\n        computeChmodSymbolicRepresentation({\n          permissions: {\n            owner: { read: false, write: false, execute: false },\n            group: { read: false, write: false, execute: false },\n            public: { read: false, write: false, execute: false },\n          },\n        }),\n      ).to.eql('---------');\n\n      expect(\n        computeChmodSymbolicRepresentation({\n          permissions: {\n            owner: { read: false, write: true, execute: false },\n            group: { read: false, write: true, execute: true },\n            public: { read: true, write: false, execute: true },\n          },\n        }),\n      ).to.eql('-w--wxr-x');\n\n      expect(\n        computeChmodSymbolicRepresentation({\n          permissions: {\n            owner: { read: true, write: false, execute: false },\n            group: { read: false, write: true, execute: false },\n            public: { read: false, write: false, execute: true },\n          },\n        }),\n      ).to.eql('r---w---x');\n\n      expect(\n        computeChmodSymbolicRepresentation({\n          permissions: {\n            owner: { read: false, write: false, execute: true },\n            group: { read: false, write: true, execute: false },\n            public: { read: true, write: false, execute: false },\n          },\n        }),\n      ).to.eql('--x-w-r--');\n\n      expect(\n        computeChmodSymbolicRepresentation({\n          permissions: {\n            owner: { read: false, write: true, execute: false },\n            group: { read: false, write: true, execute: false },\n            public: { read: false, write: true, execute: false },\n          },\n        }),\n      ).to.eql('-w--w--w-');\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/chmod-calculator/chmod-calculator.service.ts",
    "content": "import _ from 'lodash';\nimport type { GroupPermissions, Permissions } from './chmod-calculator.types';\n\nexport { computeChmodOctalRepresentation, computeChmodSymbolicRepresentation };\n\nfunction computeChmodOctalRepresentation({ permissions }: { permissions: Permissions }): string {\n  const permissionValue = { read: 4, write: 2, execute: 1 };\n\n  const getGroupPermissionValue = (permission: GroupPermissions) =>\n    _.reduce(permission, (acc, isPermSet, key) => acc + (isPermSet ? _.get(permissionValue, key, 0) : 0), 0);\n\n  return [\n    getGroupPermissionValue(permissions.owner),\n    getGroupPermissionValue(permissions.group),\n    getGroupPermissionValue(permissions.public),\n  ].join('');\n}\n\nfunction computeChmodSymbolicRepresentation({ permissions }: { permissions: Permissions }): string {\n  const permissionValue = { read: 'r', write: 'w', execute: 'x' };\n\n  const getGroupPermissionValue = (permission: GroupPermissions) =>\n    _.reduce(permission, (acc, isPermSet, key) => acc + (isPermSet ? _.get(permissionValue, key, '') : '-'), '');\n\n  return [\n    getGroupPermissionValue(permissions.owner),\n    getGroupPermissionValue(permissions.group),\n    getGroupPermissionValue(permissions.public),\n  ].join('');\n}\n"
  },
  {
    "path": "src/tools/chmod-calculator/chmod-calculator.types.ts",
    "content": "export type Scope = 'read' | 'write' | 'execute';\nexport type Group = 'owner' | 'group' | 'public';\n\nexport type GroupPermissions = {\n  [k in Scope]: boolean;\n};\n\nexport type Permissions = {\n  [k in Group]: GroupPermissions;\n};\n"
  },
  {
    "path": "src/tools/chmod-calculator/chmod-calculator.vue",
    "content": "<script setup lang=\"ts\">\nimport { useThemeVars } from 'naive-ui';\n\nimport InputCopyable from '../../components/InputCopyable.vue';\nimport { computeChmodOctalRepresentation, computeChmodSymbolicRepresentation } from './chmod-calculator.service';\n\nimport type { Group, Scope } from './chmod-calculator.types';\n\nconst themeVars = useThemeVars();\n\nconst scopes: { scope: Scope; title: string }[] = [\n  { scope: 'read', title: 'Read (4)' },\n  { scope: 'write', title: 'Write (2)' },\n  { scope: 'execute', title: 'Execute (1)' },\n];\nconst groups: Group[] = ['owner', 'group', 'public'];\n\nconst permissions = ref({\n  owner: { read: false, write: false, execute: false },\n  group: { read: false, write: false, execute: false },\n  public: { read: false, write: false, execute: false },\n});\n\nconst octal = computed(() => computeChmodOctalRepresentation({ permissions: permissions.value }));\nconst symbolic = computed(() => computeChmodSymbolicRepresentation({ permissions: permissions.value }));\n</script>\n\n<template>\n  <div>\n    <n-table :bordered=\"false\" :bottom-bordered=\"false\" single-column class=\"permission-table\">\n      <thead>\n        <tr>\n          <th class=\"text-center\" scope=\"col\" />\n          <th class=\"text-center\" scope=\"col\">\n            Owner (u)\n          </th>\n          <th class=\"text-center\" scope=\"col\">\n            Group (g)\n          </th>\n          <th class=\"text-center\" scope=\"col\">\n            Public (o)\n          </th>\n        </tr>\n      </thead>\n      <tbody>\n        <tr v-for=\"{ scope, title } of scopes\" :key=\"scope\">\n          <td class=\"line-header\">\n            {{ title }}\n          </td>\n          <td v-for=\"group of groups\" :key=\"group\" class=\"text-center\">\n            <!-- <n-switch v-model:value=\"permissions[group][scope]\" /> -->\n            <n-checkbox v-model:checked=\"permissions[group][scope]\" size=\"large\" />\n          </td>\n        </tr>\n      </tbody>\n    </n-table>\n\n    <div class=\"octal-result\">\n      {{ octal }}\n    </div>\n    <div class=\"octal-result\">\n      {{ symbolic }}\n    </div>\n\n    <InputCopyable :value=\"`chmod ${octal} path`\" readonly />\n  </div>\n</template>\n\n<style lang=\"less\" scoped>\n.octal-result {\n  text-align: center;\n  font-size: 50px;\n  font-family: monospace;\n  color: v-bind('themeVars.primaryColor');\n  margin: 20px 0;\n}\n.permission-table {\n  td,\n  th {\n    padding: 15px;\n\n    @media screen and (max-width: 600px) {\n      padding: 5px;\n    }\n  }\n}\n.line-header {\n  font-weight: bold;\n  text-align: right;\n  max-width: 80px;\n}\n.text-center {\n  text-align: center;\n}\n</style>\n"
  },
  {
    "path": "src/tools/chmod-calculator/index.ts",
    "content": "import { FileInvoice } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.chmod-calculator.title'),\n  path: '/chmod-calculator',\n  description: translate('tools.chmod-calculator.description'),\n  keywords: [\n    'chmod',\n    'calculator',\n    'file',\n    'permission',\n    'files',\n    'directory',\n    'folder',\n    'recursive',\n    'generator',\n    'octal',\n  ],\n  component: () => import('./chmod-calculator.vue'),\n  icon: FileInvoice,\n});\n"
  },
  {
    "path": "src/tools/chronometer/chronometer.service.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { formatMs } from './chronometer.service';\n\ndescribe('chronometer', () => {\n  describe('formatChronometerTime', () => {\n    it('format the elapsed time', () => {\n      expect(formatMs(0)).toEqual('00:00.000');\n      expect(formatMs(1)).toEqual('00:00.001');\n      expect(formatMs(123456)).toEqual('02:03.456');\n      expect(formatMs(12345600)).toEqual('03:25:45.600');\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/chronometer/chronometer.service.ts",
    "content": "export function formatMs(msTotal: number) {\n  const ms = msTotal % 1000;\n  const secs = ((msTotal - ms) / 1000) % 60;\n  const mins = (((msTotal - ms) / 1000 - secs) / 60) % 60;\n  const hrs = (((msTotal - ms) / 1000 - secs) / 60 - mins) / 60;\n  const hrsString = hrs > 0 ? `${hrs.toString().padStart(2, '0')}:` : '';\n\n  return `${hrsString}${mins.toString().padStart(2, '0')}:${secs.toString().padStart(2, '0')}.${ms\n    .toString()\n    .padStart(3, '0')}`;\n}\n"
  },
  {
    "path": "src/tools/chronometer/chronometer.vue",
    "content": "<script setup lang=\"ts\">\nimport { useRafFn } from '@vueuse/core';\n\nimport { formatMs } from './chronometer.service';\n\nconst isRunning = ref(false);\nconst counter = ref(0);\n\nlet previousRafDate = Date.now();\nconst { pause: pauseRaf, resume: resumeRaf } = useRafFn(\n  () => {\n    const deltaMs = Date.now() - previousRafDate;\n    previousRafDate = Date.now();\n    counter.value += deltaMs;\n  },\n  { immediate: false },\n);\n\nfunction resume() {\n  previousRafDate = Date.now();\n  resumeRaf();\n  isRunning.value = true;\n}\n\nfunction pause() {\n  pauseRaf();\n  isRunning.value = false;\n}\n</script>\n\n<template>\n  <div>\n    <c-card>\n      <div class=\"duration\">\n        {{ formatMs(counter) }}\n      </div>\n    </c-card>\n    <div mt-5 flex justify-center gap-3>\n      <c-button v-if=\"!isRunning\" type=\"primary\" @click=\"resume\">\n        Start\n      </c-button>\n      <c-button v-else type=\"warning\" @click=\"pause\">\n        Stop\n      </c-button>\n\n      <c-button @click=\"counter = 0\">\n        Reset\n      </c-button>\n    </div>\n  </div>\n</template>\n\n<style lang=\"less\" scoped>\n.duration {\n  text-align: center;\n  font-size: 40px;\n  font-family: monospace;\n  margin: 20px 0;\n}\n</style>\n"
  },
  {
    "path": "src/tools/chronometer/index.ts",
    "content": "import { TimerOutlined } from '@vicons/material';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.chronometer.title'),\n  path: '/chronometer',\n  description: translate('tools.chronometer.description'),\n  keywords: ['chronometer', 'time', 'lap', 'duration', 'measure', 'pause', 'resume', 'stopwatch'],\n  component: () => import('./chronometer.vue'),\n  icon: TimerOutlined,\n});\n"
  },
  {
    "path": "src/tools/color-converter/color-converter.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - Color converter', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/color-converter');\n  });\n\n  test('Has title', async ({ page }) => {\n    await expect(page).toHaveTitle('Color converter - IT Tools');\n  });\n\n  test('Color is converted from its name to other formats', async ({ page }) => {\n    await page.getByTestId('input-name').fill('olive');\n\n    expect(await page.getByTestId('input-name').inputValue()).toEqual('olive');\n    expect(await page.getByTestId('input-hex').inputValue()).toEqual('#808000');\n    expect(await page.getByTestId('input-rgb').inputValue()).toEqual('rgb(128, 128, 0)');\n    expect(await page.getByTestId('input-hsl').inputValue()).toEqual('hsl(60, 100%, 25%)');\n    expect(await page.getByTestId('input-hwb').inputValue()).toEqual('hwb(60 0% 50%)');\n    expect(await page.getByTestId('input-cmyk').inputValue()).toEqual('device-cmyk(0% 0% 100% 50%)');\n    expect(await page.getByTestId('input-lch').inputValue()).toEqual('lch(52.15% 56.81 99.57)');\n  });\n});\n"
  },
  {
    "path": "src/tools/color-converter/color-converter.models.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { removeAlphaChannelWhenOpaque } from './color-converter.models';\n\ndescribe('color-converter models', () => {\n  describe('removeAlphaChannelWhenOpaque', () => {\n    it('remove alpha channel of an hex color when it is opaque (alpha = 1)', () => {\n      expect(removeAlphaChannelWhenOpaque('#000000ff')).toBe('#000000');\n      expect(removeAlphaChannelWhenOpaque('#ffffffFF')).toBe('#ffffff');\n      expect(removeAlphaChannelWhenOpaque('#000000FE')).toBe('#000000FE');\n      expect(removeAlphaChannelWhenOpaque('#00000000')).toBe('#00000000');\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/color-converter/color-converter.models.ts",
    "content": "import { type Colord, colord } from 'colord';\nimport { withDefaultOnError } from '@/utils/defaults';\nimport { useValidation } from '@/composable/validation';\n\nexport { removeAlphaChannelWhenOpaque, buildColorFormat };\n\nfunction removeAlphaChannelWhenOpaque(hexColor: string) {\n  return hexColor.replace(/^(#(?:[0-9a-f]{3}){1,2})ff$/i, '$1');\n}\n\nfunction buildColorFormat({\n  label,\n  parse = value => colord(value),\n  format,\n  placeholder,\n  invalidMessage = `Invalid ${label.toLowerCase()} format.`,\n  type = 'text',\n}: {\n  label: string\n  parse?: (value: string) => Colord\n  format: (value: Colord) => string\n  placeholder?: string\n  invalidMessage?: string\n  type?: 'text' | 'color-picker'\n}) {\n  const value = ref('');\n\n  return {\n    type,\n    label,\n    parse: (v: string) => withDefaultOnError(() => parse(v), undefined),\n    format,\n    placeholder,\n    value,\n    validation: useValidation({\n      source: value,\n      rules: [\n        {\n          message: invalidMessage,\n          validator: v => withDefaultOnError(() => {\n            if (v === '') {\n              return true;\n            }\n\n            return parse(v).isValid();\n          }, false),\n        },\n      ],\n    }),\n\n  };\n}\n"
  },
  {
    "path": "src/tools/color-converter/color-converter.vue",
    "content": "<script setup lang=\"ts\">\nimport type { Colord } from 'colord';\nimport { colord, extend } from 'colord';\nimport _ from 'lodash';\nimport cmykPlugin from 'colord/plugins/cmyk';\nimport hwbPlugin from 'colord/plugins/hwb';\nimport namesPlugin from 'colord/plugins/names';\nimport lchPlugin from 'colord/plugins/lch';\nimport { buildColorFormat } from './color-converter.models';\n\nextend([cmykPlugin, hwbPlugin, namesPlugin, lchPlugin]);\n\nconst formats = {\n  picker: buildColorFormat({\n    label: 'color picker',\n    format: (v: Colord) => v.toHex(),\n    type: 'color-picker',\n  }),\n  hex: buildColorFormat({\n    label: 'hex',\n    format: (v: Colord) => v.toHex(),\n    placeholder: 'e.g. #ff0000',\n  }),\n  rgb: buildColorFormat({\n    label: 'rgb',\n    format: (v: Colord) => v.toRgbString(),\n    placeholder: 'e.g. rgb(255, 0, 0)',\n  }),\n  hsl: buildColorFormat({\n    label: 'hsl',\n    format: (v: Colord) => v.toHslString(),\n    placeholder: 'e.g. hsl(0, 100%, 50%)',\n  }),\n  hwb: buildColorFormat({\n    label: 'hwb',\n    format: (v: Colord) => v.toHwbString(),\n    placeholder: 'e.g. hwb(0, 0%, 0%)',\n  }),\n  lch: buildColorFormat({\n    label: 'lch',\n    format: (v: Colord) => v.toLchString(),\n    placeholder: 'e.g. lch(53.24, 104.55, 40.85)',\n  }),\n  cmyk: buildColorFormat({\n    label: 'cmyk',\n    format: (v: Colord) => v.toCmykString(),\n    placeholder: 'e.g. cmyk(0, 100%, 100%, 0)',\n  }),\n  name: buildColorFormat({\n    label: 'name',\n    format: (v: Colord) => v.toName({ closest: true }) ?? 'Unknown',\n    placeholder: 'e.g. red',\n  }),\n};\n\nupdateColorValue(colord('#1ea54c'));\n\nfunction updateColorValue(value: Colord | undefined, omitLabel?: string) {\n  if (value === undefined) {\n    return;\n  }\n\n  if (!value.isValid()) {\n    return;\n  }\n\n  _.forEach(formats, ({ value: valueRef, format }, key) => {\n    if (key !== omitLabel) {\n      valueRef.value = format(value);\n    }\n  });\n}\n</script>\n\n<template>\n  <c-card>\n    <template v-for=\"({ label, parse, placeholder, validation, type }, key) in formats\" :key=\"key\">\n      <input-copyable\n        v-if=\"type === 'text'\"\n        v-model:value=\"formats[key].value.value\"\n        :test-id=\"`input-${key}`\"\n        :label=\"`${label}:`\"\n        label-position=\"left\"\n        label-width=\"100px\"\n        label-align=\"right\"\n        :placeholder=\"placeholder\"\n        :validation=\"validation\"\n        raw-text\n        clearable\n        mt-2\n        @update:value=\"(v:string) => updateColorValue(parse(v), key)\"\n      />\n\n      <n-form-item v-else-if=\"type === 'color-picker'\" :label=\"`${label}:`\" label-width=\"100\" label-placement=\"left\" :show-feedback=\"false\">\n        <n-color-picker\n          v-model:value=\"formats[key].value.value\"\n          placement=\"bottom-end\"\n          @update:value=\"(v:string) => updateColorValue(parse(v), key)\"\n        />\n      </n-form-item>\n    </template>\n  </c-card>\n</template>\n"
  },
  {
    "path": "src/tools/color-converter/index.ts",
    "content": "import { Palette } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.color-converter.title'),\n  path: '/color-converter',\n  description: translate('tools.color-converter.description'),\n  keywords: ['color', 'converter'],\n  component: () => import('./color-converter.vue'),\n  icon: Palette,\n  redirectFrom: ['/color-picker-converter'],\n});\n"
  },
  {
    "path": "src/tools/crontab-generator/crontab-generator.vue",
    "content": "<script setup lang=\"ts\">\nimport cronstrue from 'cronstrue';\nimport { isValidCron } from 'cron-validator';\nimport { useStyleStore } from '@/stores/style.store';\n\nfunction isCronValid(v: string) {\n  return isValidCron(v, { allowBlankDay: true, alias: true, seconds: true });\n}\n\nconst styleStore = useStyleStore();\n\nconst cron = ref('40 * * * *');\nconst cronstrueConfig = reactive({\n  verbose: true,\n  dayOfWeekStartIndexZero: true,\n  use24HourTimeFormat: true,\n  throwExceptionOnParseError: true,\n});\n\nconst helpers = [\n  {\n    symbol: '*',\n    meaning: 'Any value',\n    example: '* * * *',\n    equivalent: 'Every minute',\n  },\n  {\n    symbol: '-',\n    meaning: 'Range of values',\n    example: '1-10 * * *',\n    equivalent: 'Minutes 1 through 10',\n  },\n  {\n    symbol: ',',\n    meaning: 'List of values',\n    example: '1,10 * * *',\n    equivalent: 'At minutes 1 and 10',\n  },\n  {\n    symbol: '/',\n    meaning: 'Step values',\n    example: '*/10 * * *',\n    equivalent: 'Every 10 minutes',\n  },\n  {\n    symbol: '@yearly',\n    meaning: 'Once every year at midnight of 1 January',\n    example: '@yearly',\n    equivalent: '0 0 1 1 *',\n  },\n  {\n    symbol: '@annually',\n    meaning: 'Same as @yearly',\n    example: '@annually',\n    equivalent: '0 0 1 1 *',\n  },\n  {\n    symbol: '@monthly',\n    meaning: 'Once a month at midnight on the first day',\n    example: '@monthly',\n    equivalent: '0 0 1 * *',\n  },\n  {\n    symbol: '@weekly',\n    meaning: 'Once a week at midnight on Sunday morning',\n    example: '@weekly',\n    equivalent: '0 0 * * 0',\n  },\n  {\n    symbol: '@daily',\n    meaning: 'Once a day at midnight',\n    example: '@daily',\n    equivalent: '0 0 * * *',\n  },\n  {\n    symbol: '@midnight',\n    meaning: 'Same as @daily',\n    example: '@midnight',\n    equivalent: '0 0 * * *',\n  },\n  {\n    symbol: '@hourly',\n    meaning: 'Once an hour at the beginning of the hour',\n    example: '@hourly',\n    equivalent: '0 * * * *',\n  },\n  {\n    symbol: '@reboot',\n    meaning: 'Run at startup',\n    example: '',\n    equivalent: '',\n  },\n];\n\nconst cronString = computed(() => {\n  if (isCronValid(cron.value)) {\n    return cronstrue.toString(cron.value, cronstrueConfig);\n  }\n  return ' ';\n});\n\nconst cronValidationRules = [\n  {\n    validator: (value: string) => isCronValid(value),\n    message: 'This cron is invalid',\n  },\n];\n</script>\n\n<template>\n  <c-card>\n    <div mx-auto max-w-sm>\n      <c-input-text\n        v-model:value=\"cron\"\n        size=\"large\"\n        placeholder=\"* * * * *\"\n        :validation-rules=\"cronValidationRules\"\n        mb-3\n      />\n    </div>\n\n    <div class=\"cron-string\">\n      {{ cronString }}\n    </div>\n\n    <n-divider />\n\n    <div flex justify-center>\n      <n-form :show-feedback=\"false\" label-width=\"170\" label-placement=\"left\">\n        <n-form-item label=\"Verbose\">\n          <n-switch v-model:value=\"cronstrueConfig.verbose\" />\n        </n-form-item>\n        <n-form-item label=\"Use 24 hour time format\">\n          <n-switch v-model:value=\"cronstrueConfig.use24HourTimeFormat\" />\n        </n-form-item>\n        <n-form-item label=\"Days start at 0\">\n          <n-switch v-model:value=\"cronstrueConfig.dayOfWeekStartIndexZero\" />\n        </n-form-item>\n      </n-form>\n    </div>\n  </c-card>\n  <c-card>\n    <pre>\n┌──────────── [optional] seconds (0 - 59)\n| ┌────────── minute (0 - 59)\n| | ┌──────── hour (0 - 23)\n| | | ┌────── day of month (1 - 31)\n| | | | ┌──── month (1 - 12) OR jan,feb,mar,apr ...\n| | | | | ┌── day of week (0 - 6, sunday=0) OR sun,mon ...\n| | | | | |\n* * * * * * command</pre>\n\n    <div v-if=\"styleStore.isSmallScreen\">\n      <c-card v-for=\"{ symbol, meaning, example, equivalent } in helpers\" :key=\"symbol\" mb-3 important:border-none>\n        <div>\n          Symbol: <strong>{{ symbol }}</strong>\n        </div>\n        <div>\n          Meaning: <strong>{{ meaning }}</strong>\n        </div>\n        <div>\n          Example:\n          <strong><code>{{ example }}</code></strong>\n        </div>\n        <div>\n          Equivalent: <strong>{{ equivalent }}</strong>\n        </div>\n      </c-card>\n    </div>\n\n    <c-table v-else :data=\"helpers\" />\n  </c-card>\n</template>\n\n<style lang=\"less\" scoped>\n::v-deep(input) {\n  font-size: 30px;\n  font-family: monospace;\n  padding: 5px;\n  text-align: center;\n}\n\n.cron-string {\n  text-align: center;\n  font-size: 22px;\n  opacity: 0.8;\n  margin: 5px 0 15px;\n}\n\npre {\n  overflow: auto;\n  padding: 10px 0;\n}\n</style>\n"
  },
  {
    "path": "src/tools/crontab-generator/index.ts",
    "content": "import { Alarm } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.crontab-generator.title'),\n  path: '/crontab-generator',\n  description: translate('tools.crontab-generator.description'),\n  keywords: [\n    'crontab',\n    'generator',\n    'cronjob',\n    'cron',\n    'schedule',\n    'parse',\n    'expression',\n    'year',\n    'month',\n    'week',\n    'day',\n    'minute',\n    'second',\n  ],\n  component: () => import('./crontab-generator.vue'),\n  icon: Alarm,\n});\n"
  },
  {
    "path": "src/tools/date-time-converter/date-time-converter.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Date time converter - json to yaml', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/date-converter');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('Date-time converter - IT Tools');\n  });\n\n  test('Format is auto detected from a date and the date is correctly converted', async ({ page }) => {\n    const initialFormat = await page.getByTestId('date-time-converter-format-select').innerText();\n    expect(initialFormat.trim()).toEqual('Timestamp');\n\n    await page.getByTestId('date-time-converter-input').fill('2023-04-12T23:10:24+02:00');\n\n    const detectedFormat = await page.getByTestId('date-time-converter-format-select').innerText();\n    expect(detectedFormat.trim()).toEqual('ISO 8601');\n\n    expect((await page.getByTestId('JS locale date string').inputValue()).trim()).toEqual(\n      'Wed Apr 12 2023 23:10:24 GMT+0200 (Central European Summer Time)',\n    );\n    expect((await page.getByTestId('ISO 8601').inputValue()).trim()).toEqual('2023-04-12T23:10:24+02:00');\n    expect((await page.getByTestId('ISO 9075').inputValue()).trim()).toEqual('2023-04-12 23:10:24');\n    expect((await page.getByTestId('Unix timestamp').inputValue()).trim()).toEqual('1681333824');\n    expect((await page.getByTestId('RFC 7231').inputValue()).trim()).toEqual('Wed, 12 Apr 2023 21:10:24 GMT');\n    expect((await page.getByTestId('RFC 3339').inputValue()).trim()).toEqual('2023-04-12T23:10:24+02:00');\n    expect((await page.getByTestId('Timestamp').inputValue()).trim()).toEqual('1681333824000');\n    expect((await page.getByTestId('UTC format').inputValue()).trim()).toEqual('Wed, 12 Apr 2023 21:10:24 GMT');\n    expect((await page.getByTestId('Mongo ObjectID').inputValue()).trim()).toEqual('64371e400000000000000000');\n    expect((await page.getByTestId('Excel date/time').inputValue()).trim()).toEqual('45028.88222222222');\n  });\n});\n"
  },
  {
    "path": "src/tools/date-time-converter/date-time-converter.models.test.ts",
    "content": "import { describe, expect, test } from 'vitest';\nimport {\n  dateToExcelFormat,\n  excelFormatToDate,\n  isExcelFormat,\n  isISO8601DateTimeString,\n  isISO9075DateString,\n  isMongoObjectId,\n  isRFC3339DateString,\n  isRFC7231DateString,\n  isTimestamp,\n  isUTCDateString,\n  isUnixTimestamp,\n} from './date-time-converter.models';\n\ndescribe('date-time-converter models', () => {\n  describe('isISO8601DateTimeString', () => {\n    test('should return true for valid ISO 8601 date strings', () => {\n      expect(isISO8601DateTimeString('2021-01-01T00:00:00.000Z')).toBe(true);\n      expect(isISO8601DateTimeString('2023-04-12T14:56:00+01:00')).toBe(true);\n      expect(isISO8601DateTimeString('20230412T145600+0100')).toBe(true);\n      expect(isISO8601DateTimeString('20230412T145600Z')).toBe(true);\n      expect(isISO8601DateTimeString('2016-02-01')).toBe(true);\n      expect(isISO8601DateTimeString('2016')).toBe(true);\n    });\n\n    test('should return false for invalid ISO 8601 date strings', () => {\n      expect(isISO8601DateTimeString()).toBe(false);\n      expect(isISO8601DateTimeString('')).toBe(false);\n      expect(isISO8601DateTimeString('qsdqsd')).toBe(false);\n      expect(isISO8601DateTimeString('2016-02-01-')).toBe(false);\n      expect(isISO8601DateTimeString('2021-01-01T00:00:00.')).toBe(false);\n    });\n  });\n\n  describe('isISO9075DateString', () => {\n    test('should return true for valid ISO 9075 date strings', () => {\n      expect(isISO9075DateString('2022-01-01 12:00:00Z')).toBe(true);\n      expect(isISO9075DateString('2022-01-01 12:00:00.123456Z')).toBe(true);\n      expect(isISO9075DateString('2022-01-01 12:00:00+01:00')).toBe(true);\n      expect(isISO9075DateString('2022-01-01 12:00:00-05:00')).toBe(true);\n    });\n\n    test('should return false for invalid ISO 9075 date strings', () => {\n      expect(isISO9075DateString('2022/01/01T12:00:00Z')).toBe(false);\n      expect(isISO9075DateString('2022-01-01 12:00:00.123456789Z')).toBe(false);\n      expect(isISO9075DateString('2022-01-01 12:00:00+1:00')).toBe(false);\n      expect(isISO9075DateString('2022-01-01 12:00:00-05:')).toBe(false);\n      expect(isISO9075DateString('2022-01-01 12:00:00-05:00:00')).toBe(false);\n      expect(isISO9075DateString('2022-01-01')).toBe(false);\n      expect(isISO9075DateString('12:00:00Z')).toBe(false);\n      expect(isISO9075DateString('2022-01-01T12:00:00Zfoo')).toBe(false);\n    });\n  });\n\n  describe('isRFC3339DateString', () => {\n    test('should return true for valid RFC 3339 date strings', () => {\n      expect(isRFC3339DateString('2022-01-01T12:00:00Z')).toBe(true);\n      expect(isRFC3339DateString('2022-01-01T12:00:00.123456789Z')).toBe(true);\n      expect(isRFC3339DateString('2022-01-01T12:00:00.123456789+01:00')).toBe(true);\n      expect(isRFC3339DateString('2022-01-01T12:00:00-05:00')).toBe(true);\n    });\n\n    test('should return false for invalid RFC 3339 date strings', () => {\n      expect(isRFC3339DateString('2022/01/01T12:00:00Z')).toBe(false);\n      expect(isRFC3339DateString('2022-01-01T12:00:00.123456789+1:00')).toBe(false);\n      expect(isRFC3339DateString('2022-01-01T12:00:00-05:')).toBe(false);\n      expect(isRFC3339DateString('2022-01-01T12:00:00-05:00:00')).toBe(false);\n      expect(isRFC3339DateString('2022-01-01')).toBe(false);\n      expect(isRFC3339DateString('12:00:00Z')).toBe(false);\n      expect(isRFC3339DateString('2022-01-01T12:00:00Zfoo')).toBe(false);\n    });\n  });\n\n  describe('isRFC7231DateString', () => {\n    test('should return true for valid RFC 7231 date strings', () => {\n      expect(isRFC7231DateString('Sun, 06 Nov 1994 08:49:37 GMT')).toBe(true);\n      expect(isRFC7231DateString('Tue, 22 Apr 2014 07:00:00 GMT')).toBe(true);\n    });\n\n    test('should return false for invalid RFC 7231 date strings', () => {\n      expect(isRFC7231DateString('06 Nov 1994 08:49:37 GMT')).toBe(false);\n      expect(isRFC7231DateString('Sun, 06 Nov 94 08:49:37 GMT')).toBe(false);\n      expect(isRFC7231DateString('Sun, 06 Nov 1994 8:49:37 GMT')).toBe(false);\n      expect(isRFC7231DateString('Sun, 06 Nov 1994 08:49:37 GMT-0500')).toBe(false);\n      expect(isRFC7231DateString('Sun, 06 November 1994 08:49:37 GMT')).toBe(false);\n      expect(isRFC7231DateString('Sunday, 06 Nov 1994 08:49:37 GMT')).toBe(false);\n      expect(isRFC7231DateString('06 Nov 1994')).toBe(false);\n    });\n  });\n\n  describe('isUnixTimestamp', () => {\n    test('should return true for valid Unix timestamps', () => {\n      expect(isUnixTimestamp('1649789394')).toBe(true);\n      expect(isUnixTimestamp('1234567890')).toBe(true);\n      expect(isUnixTimestamp('0')).toBe(true);\n    });\n\n    test('should return false for invalid Unix timestamps', () => {\n      expect(isUnixTimestamp('foo')).toBe(false);\n      expect(isUnixTimestamp('')).toBe(false);\n    });\n  });\n\n  describe('isTimestamp', () => {\n    test('should return true for valid Unix timestamps in milliseconds', () => {\n      expect(isTimestamp('1649792026123')).toBe(true);\n      expect(isTimestamp('1234567890000')).toBe(true);\n      expect(isTimestamp('0')).toBe(true);\n    });\n\n    test('should return false for invalid Unix timestamps in milliseconds', () => {\n      expect(isTimestamp('foo')).toBe(false);\n      expect(isTimestamp('')).toBe(false);\n    });\n  });\n\n  describe('isUTCDateString', () => {\n    test('should return true for valid UTC date strings', () => {\n      expect(isUTCDateString('Sun, 06 Nov 1994 08:49:37 GMT')).toBe(true);\n      expect(isUTCDateString('Tue, 22 Apr 2014 07:00:00 GMT')).toBe(true);\n    });\n\n    test('should return false for invalid UTC date strings', () => {\n      expect(isUTCDateString('06 Nov 1994 08:49:37 GMT')).toBe(false);\n      expect(isUTCDateString('16497920261')).toBe(false);\n      expect(isUTCDateString('foo')).toBe(false);\n      expect(isUTCDateString('')).toBe(false);\n    });\n  });\n\n  describe('isMongoObjectId', () => {\n    test('should return true for valid Mongo ObjectIds', () => {\n      expect(isMongoObjectId('507f1f77bcf86cd799439011')).toBe(true);\n      expect(isMongoObjectId('507f1f77bcf86cd799439012')).toBe(true);\n    });\n\n    test('should return false for invalid Mongo ObjectIds', () => {\n      expect(isMongoObjectId('507f1f77bcf86cd79943901')).toBe(false);\n      expect(isMongoObjectId('507f1f77bcf86cd79943901z')).toBe(false);\n      expect(isMongoObjectId('foo')).toBe(false);\n      expect(isMongoObjectId('')).toBe(false);\n    });\n  });\n\n  describe('isExcelFormat', () => {\n    test('an Excel format string is a floating number that can be negative', () => {\n      expect(isExcelFormat('0')).toBe(true);\n      expect(isExcelFormat('1')).toBe(true);\n      expect(isExcelFormat('1.1')).toBe(true);\n      expect(isExcelFormat('-1.1')).toBe(true);\n      expect(isExcelFormat('-1')).toBe(true);\n\n      expect(isExcelFormat('')).toBe(false);\n      expect(isExcelFormat('foo')).toBe(false);\n      expect(isExcelFormat('1.1.1')).toBe(false);\n    });\n  });\n\n  describe('dateToExcelFormat', () => {\n    test('a date in Excel format is the number of days since 01/01/1900', () => {\n      expect(dateToExcelFormat(new Date('2016-05-20T00:00:00.000Z'))).toBe('42510');\n      expect(dateToExcelFormat(new Date('2016-05-20T12:00:00.000Z'))).toBe('42510.5');\n      expect(dateToExcelFormat(new Date('2023-10-31T09:26:06.421Z'))).toBe('45230.39312987268');\n      expect(dateToExcelFormat(new Date('1970-01-01T00:00:00.000Z'))).toBe('25569');\n      expect(dateToExcelFormat(new Date('1800-01-01T00:00:00.000Z'))).toBe('-36522');\n    });\n  });\n\n  describe('excelFormatToDate', () => {\n    test('a date in Excel format is the number of days since 01/01/1900', () => {\n      expect(excelFormatToDate('0')).toEqual(new Date('1899-12-30T00:00:00.000Z'));\n      expect(excelFormatToDate('1')).toEqual(new Date('1899-12-31T00:00:00.000Z'));\n      expect(excelFormatToDate('2')).toEqual(new Date('1900-01-01T00:00:00.000Z'));\n      expect(excelFormatToDate('4242.4242')).toEqual(new Date('1911-08-12T10:10:50.880Z'));\n      expect(excelFormatToDate('42738.22626859954')).toEqual(new Date('2017-01-03T05:25:49.607Z'));\n      expect(excelFormatToDate('-1000')).toEqual(new Date('1897-04-04T00:00:00.000Z'));\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/date-time-converter/date-time-converter.models.ts",
    "content": "import _ from 'lodash';\n\nexport {\n  isISO8601DateTimeString,\n  isISO9075DateString,\n  isRFC3339DateString,\n  isRFC7231DateString,\n  isUnixTimestamp,\n  isTimestamp,\n  isUTCDateString,\n  isMongoObjectId,\n  dateToExcelFormat,\n  excelFormatToDate,\n  isExcelFormat,\n};\n\nconst ISO8601_REGEX\n  = /^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$/;\nconst ISO9075_REGEX\n  = /^([0-9]{4})-([0-9]{2})-([0-9]{2}) ([0-9]{2}):([0-9]{2}):([0-9]{2})(\\.[0-9]{1,6})?(([+-])([0-9]{2}):([0-9]{2})|Z)?$/;\n\nconst RFC3339_REGEX\n  = /^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(\\.[0-9]{1,9})?(([+-])([0-9]{2}):([0-9]{2})|Z)$/;\n\nconst RFC7231_REGEX = /^[A-Za-z]{3},\\s[0-9]{2}\\s[A-Za-z]{3}\\s[0-9]{4}\\s[0-9]{2}:[0-9]{2}:[0-9]{2}\\sGMT$/;\n\nconst EXCEL_FORMAT_REGEX = /^-?\\d+(\\.\\d+)?$/;\n\nfunction createRegexMatcher(regex: RegExp) {\n  return (date?: string) => !_.isNil(date) && regex.test(date);\n}\n\nconst isISO8601DateTimeString = createRegexMatcher(ISO8601_REGEX);\nconst isISO9075DateString = createRegexMatcher(ISO9075_REGEX);\nconst isRFC3339DateString = createRegexMatcher(RFC3339_REGEX);\nconst isRFC7231DateString = createRegexMatcher(RFC7231_REGEX);\nconst isUnixTimestamp = createRegexMatcher(/^[0-9]{1,10}$/);\nconst isTimestamp = createRegexMatcher(/^[0-9]{1,13}$/);\nconst isMongoObjectId = createRegexMatcher(/^[0-9a-fA-F]{24}$/);\n\nconst isExcelFormat = createRegexMatcher(EXCEL_FORMAT_REGEX);\n\nfunction isUTCDateString(date?: string) {\n  if (_.isNil(date)) {\n    return false;\n  }\n\n  try {\n    return new Date(date).toUTCString() === date;\n  }\n  catch (_ignored) {\n    return false;\n  }\n}\n\nfunction dateToExcelFormat(date: Date) {\n  return String(((date.getTime()) / (1000 * 60 * 60 * 24)) + 25569);\n}\n\nfunction excelFormatToDate(excelFormat: string | number) {\n  return new Date((Number(excelFormat) - 25569) * 86400 * 1000);\n}\n"
  },
  {
    "path": "src/tools/date-time-converter/date-time-converter.types.ts",
    "content": "export type ToDateMapper = (value: string) => Date;\n\nexport interface DateFormat {\n  name: string\n  fromDate: (date: Date) => string\n  toDate: (value: string) => Date\n  formatMatcher: (dateString: string) => boolean\n}\n"
  },
  {
    "path": "src/tools/date-time-converter/date-time-converter.vue",
    "content": "<script setup lang=\"ts\">\nimport {\n  formatISO,\n  formatISO9075,\n  formatRFC3339,\n  formatRFC7231,\n  fromUnixTime,\n  getTime,\n  getUnixTime,\n  isDate,\n  isValid,\n  parseISO,\n  parseJSON,\n} from 'date-fns';\nimport type { DateFormat, ToDateMapper } from './date-time-converter.types';\nimport {\n  dateToExcelFormat,\n  excelFormatToDate,\n  isExcelFormat,\n  isISO8601DateTimeString,\n  isISO9075DateString,\n  isMongoObjectId,\n  isRFC3339DateString,\n  isRFC7231DateString,\n  isTimestamp,\n  isUTCDateString,\n  isUnixTimestamp,\n} from './date-time-converter.models';\nimport { withDefaultOnError } from '@/utils/defaults';\nimport { useValidation } from '@/composable/validation';\n\nconst inputDate = ref('');\n\nconst toDate: ToDateMapper = date => new Date(date);\n\nconst formats: DateFormat[] = [\n  {\n    name: 'JS locale date string',\n    fromDate: date => date.toString(),\n    toDate,\n    formatMatcher: () => false,\n  },\n  {\n    name: 'ISO 8601',\n    fromDate: formatISO,\n    toDate: parseISO,\n    formatMatcher: date => isISO8601DateTimeString(date),\n  },\n  {\n    name: 'ISO 9075',\n    fromDate: formatISO9075,\n    toDate: parseISO,\n    formatMatcher: date => isISO9075DateString(date),\n  },\n  {\n    name: 'RFC 3339',\n    fromDate: formatRFC3339,\n    toDate,\n    formatMatcher: date => isRFC3339DateString(date),\n  },\n  {\n    name: 'RFC 7231',\n    fromDate: formatRFC7231,\n    toDate,\n    formatMatcher: date => isRFC7231DateString(date),\n  },\n  {\n    name: 'Unix timestamp',\n    fromDate: date => String(getUnixTime(date)),\n    toDate: sec => fromUnixTime(+sec),\n    formatMatcher: date => isUnixTimestamp(date),\n  },\n  {\n    name: 'Timestamp',\n    fromDate: date => String(getTime(date)),\n    toDate: ms => parseJSON(+ms),\n    formatMatcher: date => isTimestamp(date),\n  },\n  {\n    name: 'UTC format',\n    fromDate: date => date.toUTCString(),\n    toDate,\n    formatMatcher: date => isUTCDateString(date),\n  },\n  {\n    name: 'Mongo ObjectID',\n    fromDate: date => `${Math.floor(date.getTime() / 1000).toString(16)}0000000000000000`,\n    toDate: objectId => new Date(Number.parseInt(objectId.substring(0, 8), 16) * 1000),\n    formatMatcher: date => isMongoObjectId(date),\n  },\n  {\n    name: 'Excel date/time',\n    fromDate: date => dateToExcelFormat(date),\n    toDate: excelFormatToDate,\n    formatMatcher: isExcelFormat,\n  },\n];\n\nconst formatIndex = ref(6);\nconst now = useNow();\n\nconst normalizedDate = computed(() => {\n  if (!inputDate.value) {\n    return now.value;\n  }\n\n  const { toDate } = formats[formatIndex.value];\n\n  try {\n    return toDate(inputDate.value);\n  }\n  catch (_ignored) {\n    return undefined;\n  }\n});\n\nfunction onDateInputChanged(value: string) {\n  const matchingIndex = formats.findIndex(({ formatMatcher }) => formatMatcher(value));\n  if (matchingIndex !== -1) {\n    formatIndex.value = matchingIndex;\n  }\n}\n\nconst validation = useValidation({\n  source: inputDate,\n  watch: [formatIndex],\n  rules: [\n    {\n      message: 'This date is invalid for this format',\n      validator: value =>\n        withDefaultOnError(() => {\n          if (value === '') {\n            return true;\n          }\n\n          const maybeDate = formats[formatIndex.value].toDate(value);\n          return isDate(maybeDate) && isValid(maybeDate);\n        }, false),\n    },\n  ],\n});\n\nfunction formatDateUsingFormatter(formatter: (date: Date) => string, date?: Date) {\n  if (!date || !validation.isValid) {\n    return '';\n  }\n\n  return withDefaultOnError(() => formatter(date), '');\n}\n</script>\n\n<template>\n  <div>\n    <div flex gap-2>\n      <c-input-text\n        v-model:value=\"inputDate\"\n        autofocus\n        placeholder=\"Put your date string here...\"\n        clearable\n        test-id=\"date-time-converter-input\"\n        :validation=\"validation\"\n        @update:value=\"onDateInputChanged\"\n      />\n\n      <c-select\n        v-model:value=\"formatIndex\"\n        style=\"flex: 0 0 170px\"\n        :options=\"formats.map(({ name }, i) => ({ label: name, value: i }))\"\n        data-test-id=\"date-time-converter-format-select\"\n      />\n    </div>\n\n    <n-divider />\n\n    <input-copyable\n      v-for=\"{ name, fromDate } in formats\"\n      :key=\"name\"\n      :label=\"name\"\n      label-width=\"150px\"\n      label-position=\"left\"\n      label-align=\"right\"\n      :value=\"formatDateUsingFormatter(fromDate, normalizedDate)\"\n      placeholder=\"Invalid date...\"\n      :test-id=\"name\"\n      readonly\n      mt-2\n    />\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/date-time-converter/index.ts",
    "content": "import { Calendar } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.date-converter.title'),\n  path: '/date-converter',\n  description: translate('tools.date-converter.description'),\n  keywords: ['date', 'time', 'converter', 'iso', 'utc', 'timezone', 'year', 'month', 'day', 'minute', 'seconde'],\n  component: () => import('./date-time-converter.vue'),\n  icon: Calendar,\n});\n"
  },
  {
    "path": "src/tools/device-information/device-information.vue",
    "content": "<script setup lang=\"ts\">\nimport { useWindowSize } from '@vueuse/core';\n\nconst { width, height } = useWindowSize();\n\nconst sections = [\n  {\n    name: 'Screen',\n    information: [\n      {\n        label: 'Screen size',\n        value: computed(() => `${window.screen.availWidth} x ${window.screen.availHeight}`),\n      },\n      {\n        label: 'Orientation',\n        value: computed(() => window.screen.orientation.type),\n      },\n      {\n        label: 'Orientation angle',\n        value: computed(() => `${window.screen.orientation.angle}°`),\n      },\n      {\n        label: 'Color depth',\n        value: computed(() => `${window.screen.colorDepth} bits`),\n      },\n      {\n        label: 'Pixel ratio',\n        value: computed(() => `${window.devicePixelRatio} dppx`),\n      },\n      {\n        label: 'Window size',\n        value: computed(() => `${width.value} x ${height.value}`),\n      },\n    ],\n  },\n  {\n    name: 'Device',\n    information: [\n      {\n        label: 'Browser vendor',\n        value: computed(() => navigator.vendor),\n      },\n      {\n        label: 'Languages',\n        value: computed(() => navigator.languages.join(', ')),\n      },\n      {\n        label: 'Platform',\n        value: computed(() => navigator.platform),\n      },\n      {\n        label: 'User agent',\n        value: computed(() => navigator.userAgent),\n      },\n    ],\n  },\n];\n</script>\n\n<template>\n  <c-card v-for=\"{ name, information } in sections\" :key=\"name\" :title=\"name\">\n    <n-grid cols=\"1 400:2\" x-gap=\"12\" y-gap=\"12\">\n      <n-gi v-for=\"{ label, value: { value } } in information\" :key=\"label\" class=\"information\">\n        <div class=\"label\">\n          {{ label }}\n        </div>\n\n        <div class=\"value\">\n          <n-ellipsis v-if=\"value\">\n            {{ value }}\n          </n-ellipsis>\n          <div v-else class=\"undefined-value\">\n            unknown\n          </div>\n        </div>\n      </n-gi>\n    </n-grid>\n  </c-card>\n</template>\n\n<style lang=\"less\" scoped>\n.information {\n  padding: 14px 16px;\n  border-radius: 4px;\n  background-color: #aaaaaa11;\n\n  .label {\n    font-size: 14px;\n    opacity: 0.8;\n    line-height: 1;\n    margin-bottom: 5px;\n  }\n  .value {\n    font-size: 20px;\n    font-weight: 400;\n  }\n\n  .undefined-value {\n    opacity: 0.8;\n  }\n}\n</style>\n"
  },
  {
    "path": "src/tools/device-information/index.ts",
    "content": "import { DeviceDesktop } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.device-information.title'),\n  path: '/device-information',\n  description: translate('tools.device-information.description'),\n  keywords: [\n    'device',\n    'information',\n    'screen',\n    'pixel',\n    'ratio',\n    'status',\n    'data',\n    'computer',\n    'size',\n    'user',\n    'agent',\n  ],\n  component: () => import('./device-information.vue'),\n  icon: DeviceDesktop,\n});\n"
  },
  {
    "path": "src/tools/docker-run-to-docker-compose-converter/composerize.d.ts",
    "content": "declare module 'composerize' {\n  const composerize: (arg: string) => string;\n  export default composerize;\n}\n"
  },
  {
    "path": "src/tools/docker-run-to-docker-compose-converter/docker-run-to-docker-compose-converter.vue",
    "content": "<script setup lang=\"ts\">\nimport { MessageType, composerize } from 'composerize-ts';\nimport { withDefaultOnError } from '@/utils/defaults';\nimport { useDownloadFileFromBase64 } from '@/composable/downloadBase64';\nimport { textToBase64 } from '@/utils/base64';\nimport TextareaCopyable from '@/components/TextareaCopyable.vue';\n\nconst dockerRun = ref(\n  'docker run -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro --restart always --log-opt max-size=1g nginx',\n);\n\nconst conversionResult = computed(() =>\n  withDefaultOnError(() => composerize(dockerRun.value.trim()), { yaml: '', messages: [] }),\n);\nconst dockerCompose = computed(() => conversionResult.value.yaml);\nconst notImplemented = computed(() =>\n  conversionResult.value.messages.filter(msg => msg.type === MessageType.notImplemented).map(msg => msg.value),\n);\nconst notComposable = computed(() =>\n  conversionResult.value.messages.filter(msg => msg.type === MessageType.notTranslatable).map(msg => msg.value),\n);\nconst errors = computed(() =>\n  conversionResult.value.messages\n    .filter(msg => msg.type === MessageType.errorDuringConversion)\n    .map(msg => msg.value),\n);\nconst dockerComposeBase64 = computed(() => `data:application/yaml;base64,${textToBase64(dockerCompose.value)}`);\nconst { download } = useDownloadFileFromBase64({ source: dockerComposeBase64, filename: 'docker-compose.yml' });\n</script>\n\n<template>\n  <div>\n    <c-input-text\n      v-model:value=\"dockerRun\"\n      label=\"Your docker run command:\"\n      style=\"font-family: monospace\"\n      multiline\n      raw-text\n      monospace\n      placeholder=\"Your docker run command to convert...\"\n      rows=\"3\"\n    />\n\n    <n-divider />\n\n    <TextareaCopyable :value=\"dockerCompose\" language=\"yaml\" />\n\n    <div mt-5 flex justify-center>\n      <c-button :disabled=\"dockerCompose === ''\" secondary @click=\"download\">\n        Download docker-compose.yml\n      </c-button>\n    </div>\n\n    <div v-if=\"notComposable.length > 0\">\n      <n-alert title=\"This options are not translatable to docker-compose\" type=\"info\" mt-5>\n        <ul>\n          <li v-for=\"(message, index) of notComposable\" :key=\"index\">\n            {{ message }}\n          </li>\n        </ul>\n      </n-alert>\n    </div>\n\n    <div v-if=\"notImplemented.length > 0\">\n      <n-alert\n        title=\"This options are not yet implemented and therefore haven't been translated to docker-compose\"\n        type=\"warning\"\n        mt-5\n      >\n        <ul>\n          <li v-for=\"(message, index) of notImplemented\" :key=\"index\">\n            {{ message }}\n          </li>\n        </ul>\n      </n-alert>\n    </div>\n\n    <div v-if=\"errors.length > 0\">\n      <n-alert title=\"The following errors occured\" type=\"error\" mt-5>\n        <ul>\n          <li v-for=\"(message, index) of errors\" :key=\"index\">\n            {{ message }}\n          </li>\n        </ul>\n      </n-alert>\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/docker-run-to-docker-compose-converter/index.ts",
    "content": "import { BrandDocker } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.docker-run-to-docker-compose-converter.title'),\n  path: '/docker-run-to-docker-compose-converter',\n  description: translate('tools.docker-run-to-docker-compose-converter.description'),\n  keywords: ['docker', 'run', 'compose', 'yaml', 'yml', 'convert', 'deamon'],\n  component: () => import('./docker-run-to-docker-compose-converter.vue'),\n  icon: BrandDocker,\n});\n"
  },
  {
    "path": "src/tools/email-normalizer/email-normalizer.vue",
    "content": "<script setup lang=\"ts\">\nimport { normalizeEmail } from 'email-normalizer';\nimport { withDefaultOnError } from '@/utils/defaults';\nimport { useCopy } from '@/composable/copy';\n\nconst emails = ref('');\nconst normalizedEmails = computed(() => {\n  if (!emails.value) {\n    return '';\n  }\n\n  return emails.value\n    .split('\\n')\n    .map((email) => {\n      return withDefaultOnError(() => normalizeEmail({ email }), `Unable to parse email: ${email}`);\n    })\n    .join('\\n');\n});\n\nconst { copy } = useCopy({ source: normalizedEmails, text: 'Normalized emails copied to the clipboard', createToast: true });\n</script>\n\n<template>\n  <div>\n    <div class=\"mb-2\">\n      Raw emails to normalize:\n    </div>\n    <c-input-text\n      v-model:value=\"emails\"\n      placeholder=\"Put your emails here (one per line)...\"\n      rows=\"3\"\n      multiline\n      autocomplete=\"off\"\n      autocorrect=\"off\"\n      autocapitalize=\"off\"\n      spellcheck=\"false\"\n      autofocus\n      monospace\n    />\n\n    <div class=\"mb-2 mt-4\">\n      Normalized emails:\n    </div>\n    <c-input-text\n      :value=\"normalizedEmails\"\n      placeholder=\"Normalized emails will appear here...\"\n      rows=\"3\"\n      autocomplete=\"off\"\n      autocorrect=\"off\"\n      autocapitalize=\"off\"\n      spellcheck=\"false\"\n      multiline\n      readonly\n      monospace\n    />\n    <div class=\"mt-4 flex justify-center gap-2\">\n      <c-button @click=\"emails = ''\">\n        Clear emails\n      </c-button>\n      <c-button :disabled=\"!normalizedEmails\" @click=\"copy()\">\n        Copy normalized emails\n      </c-button>\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/email-normalizer/index.ts",
    "content": "import { Mail } from '@vicons/tabler';\nimport { defineTool } from '../tool';\n\nexport const tool = defineTool({\n  name: 'Email normalizer',\n  path: '/email-normalizer',\n  description: 'Normalize email addresses to a standard format for easier comparison. Useful for deduplication and data cleaning.',\n  keywords: ['email', 'normalizer'],\n  component: () => import('./email-normalizer.vue'),\n  icon: Mail,\n  createdAt: new Date('2024-08-15'),\n});\n"
  },
  {
    "path": "src/tools/emoji-picker/emoji-card.vue",
    "content": "<script setup lang=\"ts\">\nimport type { EmojiInfo } from './emoji.types';\nimport { useCopy } from '@/composable/copy';\n\nconst props = (defineProps<{ emojiInfo: EmojiInfo }>());\nconst { emojiInfo } = toRefs(props);\n\nconst { copy } = useCopy();\n</script>\n\n<template>\n  <c-card flex items-center gap-3 important:py-8px important:pl-10px important:pr-5px>\n    <div cursor-pointer text-30px @click=\"copy(emojiInfo.emoji, { notificationMessage: `Emoji ${emojiInfo.emoji} copied to the clipboard` })\">\n      {{ emojiInfo.emoji }}\n    </div>\n\n    <div min-w-0 flex-1>\n      <div truncate font-bold>\n        {{ emojiInfo.title }}\n      </div>\n\n      <!-- <div>\n        <c-link>\n          {{ emojiInfo.codePoints }}\n        </c-link>\n      </div>\n      <div />\n      <div rounded op-70>\n        Unicode:  <span border=\"1px solid current op-30\" b-rd-xl px-12px py-4px>{{ emojiInfo.unicode }}</span>\n      </div> -->\n\n      <div flex gap-2 text-xs font-mono op-70>\n        <span cursor-pointer transition hover:text-primary @click=\"copy(emojiInfo.codePoints, { notificationMessage: `Code points '${emojiInfo.codePoints}' copied to the clipboard` })\">\n          {{ emojiInfo.codePoints }}\n        </span>\n        <span cursor-pointer truncate transition hover:text-primary @click=\"copy(emojiInfo.unicode, { notificationMessage: `Unicode '${emojiInfo.unicode}' copied to the clipboard` })\">\n          {{ emojiInfo.unicode }}\n        </span>\n      </div>\n    </div>\n  </c-card>\n</template>\n"
  },
  {
    "path": "src/tools/emoji-picker/emoji-grid.vue",
    "content": "<script setup lang=\"ts\">\nimport type { EmojiInfo } from './emoji.types';\n\nconst props = withDefaults(defineProps<{ emojiInfos?: EmojiInfo[] }>(), { emojiInfos: () => [] });\nconst { emojiInfos } = toRefs(props);\n</script>\n\n<template>\n  <div grid grid-cols-1 gap-2 lg:grid-cols-4 md:grid-cols-3 sm:grid-cols-2 xl:grid-cols-6>\n    <emoji-card v-for=\"emojiInfo in emojiInfos\" :key=\"emojiInfo.name\" :emoji-info=\"emojiInfo\" flex items-center gap-3 />\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/emoji-picker/emoji-picker.vue",
    "content": "<script setup lang=\"ts\">\nimport emojiUnicodeData from 'unicode-emoji-json';\nimport emojiKeywords from 'emojilib';\nimport _ from 'lodash';\nimport type { EmojiInfo } from './emoji.types';\nimport { useFuzzySearch } from '@/composable/fuzzySearch';\nimport useDebouncedRef from '@/composable/debouncedref';\n\nconst escapeUnicode = ({ emoji }: { emoji: string }) => emoji.split('').map(unit => `\\\\u${unit.charCodeAt(0).toString(16).padStart(4, '0')}`).join('');\nconst getEmojiCodePoints = ({ emoji }: { emoji: string }) => emoji.codePointAt(0) ? `0x${emoji.codePointAt(0)?.toString(16)}` : undefined;\n\nconst emojis = _.map(emojiUnicodeData, (emojiInfo, emoji) => ({\n  ...emojiInfo,\n  emoji,\n  title: _.capitalize(emojiInfo.name),\n  keywords: emojiKeywords[emoji as keyof typeof emojiKeywords],\n  codePoints: getEmojiCodePoints({ emoji }),\n  unicode: escapeUnicode({ emoji }),\n}));\n\nconst emojisGroups: { emojiInfos: EmojiInfo[]; group: string }[] = _\n  .chain(emojis)\n  .groupBy('group')\n  .map((emojiInfos, group) => ({ group, emojiInfos }))\n  .value();\n\nconst searchQuery = useDebouncedRef('', 500);\n\nconst { searchResult } = useFuzzySearch({\n  search: searchQuery,\n  data: emojis,\n  options: {\n    keys: ['group', { name: 'name', weight: 3 }, 'keywords', 'unicode', 'codePoints', 'emoji'],\n    threshold: 0.3,\n    useExtendedSearch: true,\n    isCaseSensitive: false,\n  },\n});\n</script>\n\n<template>\n  <div mx-auto max-w-2400px important:flex-1>\n    <div flex items-center gap-3>\n      <c-input-text\n        v-model:value=\"searchQuery\"\n        placeholder=\"Search emojis (e.g. 'smile')...\"\n        mx-auto max-w-600px\n      >\n        <template #prefix>\n          <icon-mdi-search mr-6px color-black op-70 dark:color-white />\n        </template>\n      </c-input-text>\n    </div>\n\n    <div v-if=\"searchQuery.trim().length > 0\">\n      <div\n        v-if=\"searchResult.length === 0\"\n        mt-4\n        text-20px\n        font-bold\n      >\n        No results\n      </div>\n\n      <div v-else>\n        <div mt-4 text-20px font-bold>\n          Search result\n        </div>\n\n        <emoji-grid :emoji-infos=\"searchResult\" />\n      </div>\n    </div>\n\n    <div\n      v-for=\"{ group, emojiInfos } in emojisGroups\"\n      v-else\n      :key=\"group\"\n    >\n      <div mt-4 text-20px font-bold>\n        {{ group }}\n      </div>\n\n      <emoji-grid :emoji-infos=\"emojiInfos\" />\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/emoji-picker/emoji.types.ts",
    "content": "import type emojiUnicodeData from 'unicode-emoji-json';\n\nexport type EmojiInfo = {\n  title: string\n  emoji: string\n  codePoints: string | undefined\n  unicode: string\n} & typeof emojiUnicodeData[string];\n"
  },
  {
    "path": "src/tools/emoji-picker/index.ts",
    "content": "import { MoodSmile } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.emoji-picker.title'),\n  path: '/emoji-picker',\n  description: translate('tools.emoji-picker.description'),\n  keywords: ['emoji', 'picker', 'unicode', 'copy', 'paste'],\n  component: () => import('./emoji-picker.vue'),\n  icon: MoodSmile,\n  createdAt: new Date('2023-08-07'),\n});\n"
  },
  {
    "path": "src/tools/encryption/encryption.vue",
    "content": "<script setup lang=\"ts\">\nimport { AES, RC4, Rabbit, TripleDES, enc } from 'crypto-js';\nimport { computedCatch } from '@/composable/computed/catchedComputed';\n\nconst algos = { AES, TripleDES, Rabbit, RC4 };\n\nconst cypherInput = ref('Lorem ipsum dolor sit amet');\nconst cypherAlgo = ref<keyof typeof algos>('AES');\nconst cypherSecret = ref('my secret key');\nconst cypherOutput = computed(() => algos[cypherAlgo.value].encrypt(cypherInput.value, cypherSecret.value).toString());\n\nconst decryptInput = ref('U2FsdGVkX1/EC3+6P5dbbkZ3e1kQ5o2yzuU0NHTjmrKnLBEwreV489Kr0DIB+uBs');\nconst decryptAlgo = ref<keyof typeof algos>('AES');\nconst decryptSecret = ref('my secret key');\nconst [decryptOutput, decryptError] = computedCatch(() => algos[decryptAlgo.value].decrypt(decryptInput.value, decryptSecret.value).toString(enc.Utf8), {\n  defaultValue: '',\n  defaultErrorMessage: 'Unable to decrypt your text',\n});\n</script>\n\n<template>\n  <c-card title=\"Encrypt\">\n    <div flex gap-3>\n      <c-input-text\n        v-model:value=\"cypherInput\"\n        label=\"Your text:\"\n        placeholder=\"The string to cypher\"\n        rows=\"4\"\n        multiline raw-text monospace autosize flex-1\n      />\n      <div flex flex-1 flex-col gap-2>\n        <c-input-text v-model:value=\"cypherSecret\" label=\"Your secret key:\" clearable raw-text />\n\n        <c-select\n          v-model:value=\"cypherAlgo\"\n          label=\"Encryption algorithm:\"\n          :options=\"Object.keys(algos).map((label) => ({ label, value: label }))\"\n        />\n      </div>\n    </div>\n    <c-input-text\n      label=\"Your text encrypted:\"\n      :value=\"cypherOutput\"\n      rows=\"3\"\n      placeholder=\"Your string hash\"\n      multiline monospace readonly autosize mt-5\n    />\n  </c-card>\n  <c-card title=\"Decrypt\">\n    <div flex gap-3>\n      <c-input-text\n        v-model:value=\"decryptInput\"\n        label=\"Your encrypted text:\"\n        placeholder=\"The string to cypher\"\n        rows=\"4\"\n        multiline raw-text monospace autosize flex-1\n      />\n      <div flex flex-1 flex-col gap-2>\n        <c-input-text v-model:value=\"decryptSecret\" label=\"Your secret key:\" clearable raw-text />\n\n        <c-select\n          v-model:value=\"decryptAlgo\"\n          label=\"Encryption algorithm:\"\n          :options=\"Object.keys(algos).map((label) => ({ label, value: label }))\"\n        />\n      </div>\n    </div>\n    <c-alert v-if=\"decryptError\" type=\"error\" mt-12 title=\"Error while decrypting\">\n      {{ decryptError }}\n    </c-alert>\n    <c-input-text\n      v-else\n      label=\"Your decrypted text:\"\n      :value=\"decryptOutput\"\n      placeholder=\"Your string hash\"\n      rows=\"3\"\n      multiline monospace readonly autosize mt-5\n    />\n  </c-card>\n</template>\n"
  },
  {
    "path": "src/tools/encryption/index.ts",
    "content": "import { Lock } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.encryption.title'),\n  path: '/encryption',\n  description: translate('tools.encryption.description'),\n  keywords: ['cypher', 'encipher', 'text', 'AES', 'TripleDES', 'Rabbit', 'RC4'],\n  component: () => import('./encryption.vue'),\n  icon: Lock,\n  redirectFrom: ['/cypher'],\n});\n"
  },
  {
    "path": "src/tools/eta-calculator/eta-calculator.service.ts",
    "content": "import { formatDuration } from 'date-fns';\n\nexport function formatMsDuration(duration: number) {\n  const ms = Math.floor(duration % 1000);\n  const secs = Math.floor(((duration - ms) / 1000) % 60);\n  const mins = Math.floor((((duration - ms) / 1000 - secs) / 60) % 60);\n  const hrs = Math.floor((((duration - ms) / 1000 - secs) / 60 - mins) / 60);\n\n  return (\n    formatDuration({\n      hours: hrs,\n      minutes: mins,\n      seconds: secs,\n    }) + (ms > 0 ? ` ${ms} ms` : '')\n  );\n}\n"
  },
  {
    "path": "src/tools/eta-calculator/eta-calculator.vue",
    "content": "<script setup lang=\"ts\">\n// Duplicate issue with sub directory\n\nimport { addMilliseconds, formatRelative } from 'date-fns';\n\nimport { enGB } from 'date-fns/locale';\n\nimport { formatMsDuration } from './eta-calculator.service';\n\nconst unitCount = ref(3 * 62);\nconst unitPerTimeSpan = ref(3);\nconst timeSpan = ref(5);\nconst timeSpanUnitMultiplier = ref(60000);\nconst startedAt = ref(Date.now());\n\nconst durationMs = computed(() => {\n  const timeSpanMs = timeSpan.value * timeSpanUnitMultiplier.value;\n\n  return unitCount.value / (unitPerTimeSpan.value / timeSpanMs);\n});\nconst endAt = computed(() =>\n  formatRelative(addMilliseconds(startedAt.value, durationMs.value), Date.now(), { locale: enGB }),\n);\n</script>\n\n<template>\n  <div>\n    <div text-justify op-70>\n      With a concrete example, if you wash 5 plates in 3 minutes and you have 500 plates to wash, it will take you 5\n      hours to wash them all.\n    </div>\n    <n-divider />\n    <div flex gap-2>\n      <n-form-item label=\"Amount of element to consume\" flex-1>\n        <n-input-number v-model:value=\"unitCount\" :min=\"1\" />\n      </n-form-item>\n      <n-form-item label=\"The consumption started at\" flex-1>\n        <n-date-picker v-model:value=\"startedAt\" type=\"datetime\" />\n      </n-form-item>\n    </div>\n\n    <p>Amount of unit consumed by time span</p>\n    <div flex flex-col items-baseline gap-y-2 md:flex-row>\n      <n-input-number v-model:value=\"unitPerTimeSpan\" :min=\"1\" />\n      <div flex items-baseline gap-2>\n        <span ml-2>in</span>\n        <n-input-number v-model:value=\"timeSpan\" min-w-130px :min=\"1\" />\n        <c-select\n          v-model:value=\"timeSpanUnitMultiplier\"\n          min-w-130px\n          :options=\"[\n            { label: 'milliseconds', value: 1 },\n            { label: 'seconds', value: 1000 },\n            { label: 'minutes', value: 1000 * 60 },\n            { label: 'hours', value: 1000 * 60 * 60 },\n            { label: 'days', value: 1000 * 60 * 60 * 24 },\n          ]\"\n        />\n      </div>\n    </div>\n\n    <n-divider />\n    <c-card mb-2>\n      <n-statistic label=\"Total duration\">\n        {{ formatMsDuration(durationMs) }}\n      </n-statistic>\n    </c-card>\n    <c-card>\n      <n-statistic label=\"It will end \">\n        {{ endAt }}\n      </n-statistic>\n    </c-card>\n  </div>\n</template>\n\n<style lang=\"less\" scoped>\n.n-input-number,\n.n-date-picker {\n  width: 100%;\n}\n</style>\n"
  },
  {
    "path": "src/tools/eta-calculator/index.ts",
    "content": "import { Hourglass } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.eta-calculator.title'),\n  path: '/eta-calculator',\n  description: translate('tools.eta-calculator.description'),\n  keywords: ['eta', 'calculator', 'estimated', 'time', 'arrival', 'average'],\n  component: () => import('./eta-calculator.vue'),\n  icon: Hourglass,\n});\n"
  },
  {
    "path": "src/tools/git-memo/git-memo.content.md",
    "content": "## Configuration\n\nSet the global config\n\n```shell\ngit config --global user.name \"[name]\"\ngit config --global user.email \"[email]\"\n```\n\n## Get started\n\nCreate a git repository\n\n```shell\ngit init\n```\n\nClone an existing git repository\n\n```shell\ngit clone [url]\n```\n\n## Commit\n\nCommit all tracked changes\n\n```shell\ngit commit -am \"[commit message]\"\n```\n\nAdd new modifications to the last commit\n\n```shell\ngit commit --amend --no-edit\n```\n\n## I’ve made a mistake\n\nChange last commit message\n\n```shell\ngit commit --amend\n```\n\nUndo most recent commit and keep changes\n\n```shell\ngit reset HEAD~1\n```\n\nUndo the `N` most recent commit and keep changes\n\n```shell\ngit reset HEAD~N\n```\n\nUndo most recent commit and get rid of changes\n\n```shell\ngit reset HEAD~1 --hard\n```\n\nReset branch to remote state\n\n```shell\ngit fetch origin\ngit reset --hard origin/[branch-name]\n```\n\n## Miscellaneous\n\nRenaming the local master branch to main\n\n```shell\ngit branch -m master main\n```\n"
  },
  {
    "path": "src/tools/git-memo/git-memo.vue",
    "content": "<script setup lang=\"ts\">\nimport { useThemeVars } from 'naive-ui';\nimport Memo from './git-memo.content.md';\n\nconst themeVars = useThemeVars();\n</script>\n\n<template>\n  <div>\n    <Memo />\n  </div>\n</template>\n\n<style lang=\"less\" scoped>\n::v-deep(pre) {\n  margin: 0;\n  padding: 15px 22px;\n  background-color: v-bind('themeVars.cardColor');\n  border-radius: 4px;\n  overflow: auto;\n}\n</style>\n"
  },
  {
    "path": "src/tools/git-memo/index.ts",
    "content": "import { BrandGit } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.git-memo.title'),\n  path: '/git-memo',\n  description: translate('tools.git-memo.description'),\n  keywords: ['git', 'push', 'force', 'pull', 'commit', 'amend', 'rebase', 'merge', 'reset', 'soft', 'hard', 'lease'],\n  component: () => import('./git-memo.vue'),\n  icon: BrandGit,\n});\n"
  },
  {
    "path": "src/tools/hash-text/hash-text.service.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { convertHexToBin } from './hash-text.service';\n\ndescribe('hash text', () => {\n  describe('convertHexToBin', () => {\n    it('convert hex to bin', () => {\n      expect(convertHexToBin('')).toEqual('');\n      expect(convertHexToBin('FF')).toEqual('11111111');\n      expect(convertHexToBin('F'.repeat(200))).toEqual('1111'.repeat(200));\n      expect(convertHexToBin('2123006AD00F694CE120')).toEqual(\n        '00100001001000110000000001101010110100000000111101101001010011001110000100100000',\n      );\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/hash-text/hash-text.service.ts",
    "content": "export function convertHexToBin(hex: string) {\n  return hex\n    .trim()\n    .split('')\n    .map(byte => Number.parseInt(byte, 16).toString(2).padStart(4, '0'))\n    .join('');\n}\n"
  },
  {
    "path": "src/tools/hash-text/hash-text.vue",
    "content": "<script setup lang=\"ts\">\nimport type { lib } from 'crypto-js';\nimport { MD5, RIPEMD160, SHA1, SHA224, SHA256, SHA3, SHA384, SHA512, enc } from 'crypto-js';\n\nimport InputCopyable from '../../components/InputCopyable.vue';\nimport { convertHexToBin } from './hash-text.service';\nimport { useQueryParam } from '@/composable/queryParams';\n\nconst algos = {\n  MD5,\n  SHA1,\n  SHA256,\n  SHA224,\n  SHA512,\n  SHA384,\n  SHA3,\n  RIPEMD160,\n} as const;\n\ntype AlgoNames = keyof typeof algos;\ntype Encoding = keyof typeof enc | 'Bin';\nconst algoNames = Object.keys(algos) as AlgoNames[];\nconst encoding = useQueryParam<Encoding>({ defaultValue: 'Hex', name: 'encoding' });\nconst clearText = ref('');\n\nfunction formatWithEncoding(words: lib.WordArray, encoding: Encoding) {\n  if (encoding === 'Bin') {\n    return convertHexToBin(words.toString(enc.Hex));\n  }\n\n  return words.toString(enc[encoding]);\n}\n\nconst hashText = (algo: AlgoNames, value: string) => formatWithEncoding(algos[algo](value), encoding.value);\n</script>\n\n<template>\n  <div>\n    <c-card>\n      <c-input-text v-model:value=\"clearText\" multiline raw-text placeholder=\"Your string to hash...\" rows=\"3\" autosize autofocus label=\"Your text to hash:\" />\n\n      <n-divider />\n\n      <c-select\n        v-model:value=\"encoding\"\n        mb-4\n        label=\"Digest encoding\"\n        :options=\"[\n          {\n            label: 'Binary (base 2)',\n            value: 'Bin',\n          },\n          {\n            label: 'Hexadecimal (base 16)',\n            value: 'Hex',\n          },\n          {\n            label: 'Base64 (base 64)',\n            value: 'Base64',\n          },\n          {\n            label: 'Base64url (base 64 with url safe chars)',\n            value: 'Base64url',\n          },\n        ]\"\n      />\n\n      <div v-for=\"algo in algoNames\" :key=\"algo\" style=\"margin: 5px 0\">\n        <n-input-group>\n          <n-input-group-label style=\"flex: 0 0 120px\">\n            {{ algo }}\n          </n-input-group-label>\n          <InputCopyable :value=\"hashText(algo, clearText)\" readonly />\n        </n-input-group>\n      </div>\n    </c-card>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/hash-text/index.ts",
    "content": "import { EyeOff } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.hash-text.title'),\n  path: '/hash-text',\n  description: translate('tools.hash-text.description'),\n  keywords: [\n    'hash',\n    'digest',\n    'crypto',\n    'security',\n    'text',\n    'MD5',\n    'SHA1',\n    'SHA256',\n    'SHA224',\n    'SHA512',\n    'SHA384',\n    'SHA3',\n    'RIPEMD160',\n  ],\n  component: () => import('./hash-text.vue'),\n  icon: EyeOff,\n  redirectFrom: ['/hash'],\n});\n"
  },
  {
    "path": "src/tools/hmac-generator/hmac-generator.vue",
    "content": "<script setup lang=\"ts\">\nimport type { lib } from 'crypto-js';\nimport {\n  HmacMD5,\n  HmacRIPEMD160,\n  HmacSHA1,\n  HmacSHA224,\n  HmacSHA256,\n  HmacSHA3,\n  HmacSHA384,\n  HmacSHA512,\n  enc,\n} from 'crypto-js';\n\nimport { convertHexToBin } from '../hash-text/hash-text.service';\nimport { useCopy } from '@/composable/copy';\n\nconst algos = {\n  MD5: HmacMD5,\n  RIPEMD160: HmacRIPEMD160,\n  SHA1: HmacSHA1,\n  SHA3: HmacSHA3,\n  SHA224: HmacSHA224,\n  SHA256: HmacSHA256,\n  SHA384: HmacSHA384,\n  SHA512: HmacSHA512,\n} as const;\n\ntype Encoding = keyof typeof enc | 'Bin';\n\nfunction formatWithEncoding(words: lib.WordArray, encoding: Encoding) {\n  if (encoding === 'Bin') {\n    return convertHexToBin(words.toString(enc.Hex));\n  }\n  return words.toString(enc[encoding]);\n}\n\nconst plainText = ref('');\nconst secret = ref('');\nconst hashFunction = ref<keyof typeof algos>('SHA256');\nconst encoding = ref<Encoding>('Hex');\nconst hmac = computed(() =>\n  formatWithEncoding(algos[hashFunction.value](plainText.value, secret.value), encoding.value),\n);\nconst { copy } = useCopy({ source: hmac });\n</script>\n\n<template>\n  <div flex flex-col gap-4>\n    <c-input-text v-model:value=\"plainText\" multiline raw-text placeholder=\"Plain text to compute the hash...\" rows=\"3\" autosize autofocus label=\"Plain text to compute the hash\" />\n    <c-input-text v-model:value=\"secret\" raw-text placeholder=\"Enter the secret key...\" label=\"Secret key\" clearable />\n\n    <div flex gap-2>\n      <c-select\n        v-model:value=\"hashFunction\" label=\"Hashing function\"\n        flex-1\n        placeholder=\"Select an hashing function...\"\n        :options=\"Object.keys(algos).map((label) => ({ label, value: label }))\"\n      />\n      <c-select\n        v-model:value=\"encoding\" label=\"Output encoding\"\n        flex-1\n        placeholder=\"Select the result encoding...\"\n        :options=\"[\n          {\n            label: 'Binary (base 2)',\n            value: 'Bin',\n          },\n          {\n            label: 'Hexadecimal (base 16)',\n            value: 'Hex',\n          },\n          {\n            label: 'Base64 (base 64)',\n            value: 'Base64',\n          },\n          {\n            label: 'Base64-url (base 64 with url safe chars)',\n            value: 'Base64url',\n          },\n        ]\"\n      />\n    </div>\n    <input-copyable v-model:value=\"hmac\" type=\"textarea\" placeholder=\"The result of the HMAC...\" label=\"HMAC of your text\" />\n    <div flex justify-center>\n      <c-button @click=\"copy()\">\n        Copy HMAC\n      </c-button>\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/hmac-generator/index.ts",
    "content": "import { ShortTextRound } from '@vicons/material';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.hmac-generator.title'),\n  path: '/hmac-generator',\n  description: translate('tools.hmac-generator.description'),\n  keywords: ['hmac', 'generator', 'MD5', 'SHA1', 'SHA256', 'SHA224', 'SHA512', 'SHA384', 'SHA3', 'RIPEMD160'],\n  component: () => import('./hmac-generator.vue'),\n  icon: ShortTextRound,\n});\n"
  },
  {
    "path": "src/tools/html-entities/html-entities.vue",
    "content": "<script setup lang=\"ts\">\nimport { escape, unescape } from 'lodash';\n\nimport { useCopy } from '@/composable/copy';\n\nconst escapeInput = ref('<title>IT Tool</title>');\nconst escapeOutput = computed(() => escape(escapeInput.value));\nconst { copy: copyEscaped } = useCopy({ source: escapeOutput });\n\nconst unescapeInput = ref('&lt;title&gt;IT Tool&lt;/title&gt;');\nconst unescapeOutput = computed(() => unescape(unescapeInput.value));\nconst { copy: copyUnescaped } = useCopy({ source: unescapeOutput });\n</script>\n\n<template>\n  <c-card title=\"Escape html entities\">\n    <n-form-item label=\"Your string :\">\n      <c-input-text\n        v-model:value=\"escapeInput\"\n        multiline\n        placeholder=\"The string to escape\"\n        rows=\"3\"\n        autosize\n        raw-text\n      />\n    </n-form-item>\n\n    <n-form-item label=\"Your string escaped :\">\n      <c-input-text\n        multiline\n        readonly\n        placeholder=\"Your string escaped\"\n        :value=\"escapeOutput\"\n        rows=\"3\"\n        autosize\n      />\n    </n-form-item>\n\n    <div flex justify-center>\n      <c-button @click=\"copyEscaped()\">\n        Copy\n      </c-button>\n    </div>\n  </c-card>\n  <c-card title=\"Unescape html entities\">\n    <n-form-item label=\"Your escaped string :\">\n      <c-input-text\n        v-model:value=\"unescapeInput\"\n        multiline\n        placeholder=\"The string to unescape\"\n        rows=\"3\"\n        autosize\n        raw-text\n      />\n    </n-form-item>\n\n    <n-form-item label=\"Your string unescaped :\">\n      <c-input-text\n        :value=\"unescapeOutput\"\n        multiline\n        readonly\n        placeholder=\"Your string unescaped\"\n        rows=\"3\"\n        autosize\n      />\n    </n-form-item>\n\n    <div flex justify-center>\n      <c-button @click=\"copyUnescaped()\">\n        Copy\n      </c-button>\n    </div>\n  </c-card>\n</template>\n"
  },
  {
    "path": "src/tools/html-entities/index.ts",
    "content": "import { Code } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.html-entities.title'),\n  path: '/html-entities',\n  description: translate('tools.html-entities.description'),\n  keywords: ['html', 'entities', 'escape', 'unescape', 'special', 'characters', 'tags'],\n  component: () => import('./html-entities.vue'),\n  icon: Code,\n});\n"
  },
  {
    "path": "src/tools/html-wysiwyg-editor/editor/editor.vue",
    "content": "<script setup lang=\"ts\">\nimport { tryOnBeforeUnmount, useVModel } from '@vueuse/core';\nimport { Editor, EditorContent } from '@tiptap/vue-3';\nimport StarterKit from '@tiptap/starter-kit';\nimport { useThemeVars } from 'naive-ui';\nimport MenuBar from './menu-bar.vue';\n\nconst props = defineProps<{ html: string }>();\nconst emit = defineEmits(['update:html']);\nconst themeVars = useThemeVars();\nconst html = useVModel(props, 'html', emit);\n\nconst editor = new Editor({\n  content: html.value,\n  extensions: [StarterKit],\n});\n\neditor.on('update', ({ editor }) => emit('update:html', editor.getHTML()));\n\ntryOnBeforeUnmount(() => {\n  editor.destroy();\n});\n</script>\n\n<template>\n  <c-card v-if=\"editor\" important:p0>\n    <MenuBar class=\"editor-header\" :editor=\"editor\" />\n    <n-divider style=\"margin-top: 0\" />\n\n    <div px8 pb6>\n      <EditorContent class=\"editor-content\" :editor=\"editor\" />\n    </div>\n  </c-card>\n</template>\n\n<style scoped lang=\"less\">\n::v-deep(.ProseMirror-focused) {\n  outline: none;\n}\n</style>\n\n<style scoped lang=\"less\">\n::v-deep(.ProseMirror) {\n  > * + * {\n    margin-top: 0.75em;\n  }\n\n  p {\n    margin: 0;\n  }\n\n  ul,\n  ol {\n    padding: 0 1rem;\n  }\n\n  h1,\n  h2,\n  h3,\n  h4,\n  h5,\n  h6 {\n    line-height: 1.1;\n  }\n\n  code {\n    background-color: v-bind('themeVars.codeColor');\n    padding: 2px 4px;\n    border-radius: 5px;\n    font-size: 85%;\n  }\n\n  pre {\n    background: v-bind('themeVars.codeColor');\n    font-family: monospace;\n    padding: 0.75rem 1rem;\n    border-radius: 0.5rem;\n\n    code {\n      color: inherit;\n      padding: 0;\n      background: none;\n      font-size: 0.8rem;\n    }\n  }\n\n  mark {\n    background-color: #faf594;\n  }\n\n  img {\n    max-width: 100%;\n    height: auto;\n  }\n\n  hr {\n    margin: 1rem 0;\n  }\n\n  blockquote {\n    padding-left: 1rem;\n    border-left: 2px solid rgba(#0d0d0d, 0.1);\n  }\n\n  hr {\n    border: none;\n    border-top: 2px solid rgba(#0d0d0d, 0.1);\n    margin: 2rem 0;\n  }\n\n  ul[data-type='taskList'] {\n    list-style: none;\n    padding: 0;\n\n    li {\n      display: flex;\n      align-items: center;\n\n      > label {\n        flex: 0 0 auto;\n        margin-right: 0.5rem;\n        user-select: none;\n      }\n\n      > div {\n        flex: 1 1 auto;\n      }\n    }\n  }\n}\n</style>\n"
  },
  {
    "path": "src/tools/html-wysiwyg-editor/editor/menu-bar-item.vue",
    "content": "<script setup lang=\"ts\">\nimport type { Component } from 'vue';\n\nconst props = defineProps<{ icon: Component; title: string; action: () => void; isActive?: () => boolean }>();\nconst { icon, title, action, isActive } = toRefs(props);\n</script>\n\n<template>\n  <c-tooltip :tooltip=\"title\">\n    <c-button circle variant=\"text\" :type=\"isActive?.() ? 'primary' : 'default'\" @click=\"action\">\n      <n-icon :component=\"icon\" />\n    </c-button>\n  </c-tooltip>\n</template>\n"
  },
  {
    "path": "src/tools/html-wysiwyg-editor/editor/menu-bar.vue",
    "content": "<script setup lang=\"ts\">\nimport type { Editor } from '@tiptap/vue-3';\nimport {\n  ArrowBack,\n  ArrowForwardUp,\n  Blockquote,\n  Bold,\n  ClearFormatting,\n  Code,\n  CodePlus,\n  H1,\n  H2,\n  H3,\n  H4,\n  Italic,\n  List,\n  ListNumbers,\n  Strikethrough,\n  TextWrap,\n} from '@vicons/tabler';\nimport type { Component } from 'vue';\nimport MenuBarItem from './menu-bar-item.vue';\n\nconst props = defineProps<{ editor: Editor }>();\nconst { editor } = toRefs(props);\n\ntype MenuItem =\n  | {\n    icon: Component\n    title: string\n    action: () => void\n    isActive?: () => boolean\n    type: 'button'\n  }\n  | { type: 'divider' };\n\nconst items: MenuItem[] = [\n  {\n    type: 'button',\n    icon: Bold,\n    title: 'Bold',\n    action: () => editor.value.chain().focus().toggleBold().run(),\n    isActive: () => editor.value.isActive('bold'),\n  },\n  {\n    type: 'button',\n    icon: Italic,\n    title: 'Italic',\n    action: () => editor.value.chain().focus().toggleItalic().run(),\n    isActive: () => editor.value.isActive('italic'),\n  },\n  {\n    type: 'button',\n    icon: Strikethrough,\n    title: 'Strike',\n    action: () => editor.value.chain().focus().toggleStrike().run(),\n    isActive: () => editor.value.isActive('strike'),\n  },\n  {\n    type: 'button',\n    icon: Code,\n    title: 'Inline code',\n    action: () => editor.value.chain().focus().toggleCode().run(),\n    isActive: () => editor.value.isActive('code'),\n  },\n  {\n    type: 'divider',\n  },\n  {\n    type: 'button',\n    icon: H1,\n    title: 'Heading 1',\n    action: () => editor.value.chain().focus().toggleHeading({ level: 1 }).run(),\n    isActive: () => editor.value.isActive('heading', { level: 1 }),\n  },\n  {\n    type: 'button',\n    icon: H2,\n    title: 'Heading 2',\n    action: () => editor.value.chain().focus().toggleHeading({ level: 2 }).run(),\n    isActive: () => editor.value.isActive('heading', { level: 2 }),\n  },\n  {\n    type: 'button',\n    icon: H3,\n    title: 'Heading 3',\n    action: () => editor.value.chain().focus().toggleHeading({ level: 3 }).run(),\n    isActive: () => editor.value.isActive('heading', { level: 3 }),\n  },\n  {\n    type: 'button',\n    icon: H4,\n    title: 'Heading 4',\n    action: () => editor.value.chain().focus().toggleHeading({ level: 4 }).run(),\n    isActive: () => editor.value.isActive('heading', { level: 4 }),\n  },\n  {\n    type: 'divider',\n  },\n  {\n    type: 'button',\n    icon: List,\n    title: 'Bullet list',\n    action: () => editor.value.chain().focus().toggleBulletList().run(),\n    isActive: () => editor.value.isActive('bulletList'),\n  },\n  {\n    type: 'button',\n    icon: ListNumbers,\n    title: 'Ordered list',\n    action: () => editor.value.chain().focus().toggleOrderedList().run(),\n    isActive: () => editor.value.isActive('orderedList'),\n  },\n  {\n    type: 'button',\n    icon: CodePlus,\n    title: 'Code block',\n    action: () => editor.value.chain().focus().toggleCodeBlock().run(),\n    isActive: () => editor.value.isActive('codeBlock'),\n  },\n\n  {\n    type: 'button',\n    icon: Blockquote,\n    title: 'Blockquote',\n    action: () => editor.value.chain().focus().toggleBlockquote().run(),\n    isActive: () => editor.value.isActive('blockquote'),\n  },\n  {\n    type: 'divider',\n  },\n  {\n    type: 'button',\n    icon: TextWrap,\n    title: 'Hard break',\n    action: () => editor.value.chain().focus().setHardBreak().run(),\n  },\n  {\n    type: 'button',\n    icon: ClearFormatting,\n    title: 'Clear format',\n    action: () => editor.value.chain().focus().clearNodes().unsetAllMarks().run(),\n  },\n\n  {\n    type: 'button',\n    icon: ArrowBack,\n    title: 'Undo',\n    action: () => editor.value.chain().focus().undo().run(),\n  },\n  {\n    type: 'button',\n    icon: ArrowForwardUp,\n    title: 'Redo',\n    action: () => editor.value.chain().focus().redo().run(),\n  },\n];\n</script>\n\n<template>\n  <div flex items-center>\n    <template v-for=\"(item, index) in items\">\n      <n-divider v-if=\"item.type === 'divider'\" :key=\"`divider${index}`\" vertical />\n      <MenuBarItem v-else-if=\"item.type === 'button'\" :key=\"index\" v-bind=\"item\" />\n    </template>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/html-wysiwyg-editor/html-wysiwyg-editor.vue",
    "content": "<script setup lang=\"ts\">\nimport { format } from 'prettier';\nimport htmlParser from 'prettier/plugins/html';\nimport { useStorage } from '@vueuse/core';\nimport Editor from './editor/editor.vue';\nimport TextareaCopyable from '@/components/TextareaCopyable.vue';\n\nconst html = useStorage('html-wysiwyg-editor--html', '<h1>Hey!</h1><p>Welcome to this html wysiwyg editor</p>');\n\nconst formattedHtml = asyncComputed(() => format(html.value, { parser: 'html', plugins: [htmlParser] }), '');\n</script>\n\n<template>\n  <Editor v-model:html=\"html\" />\n  <TextareaCopyable :value=\"formattedHtml\" language=\"html\" />\n</template>\n"
  },
  {
    "path": "src/tools/html-wysiwyg-editor/index.ts",
    "content": "import { Edit } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.html-wysiwyg-editor.title'),\n  path: '/html-wysiwyg-editor',\n  description: translate('tools.html-wysiwyg-editor.description'),\n  keywords: ['html', 'wysiwyg', 'editor', 'p', 'ul', 'ol', 'converter', 'live'],\n  component: () => import('./html-wysiwyg-editor.vue'),\n  icon: Edit,\n});\n"
  },
  {
    "path": "src/tools/http-status-codes/http-status-codes.constants.ts",
    "content": "export const codesByCategories: {\n  category: string\n  codes: {\n    code: number\n    name: string\n    description: string\n    type: 'HTTP' | 'WebDav'\n  }[]\n}[] = [\n  {\n    category: '1xx informational response',\n    codes: [\n      {\n        code: 100,\n        name: 'Continue',\n        description: 'Waiting for the client to emit the body of the request.',\n        type: 'HTTP',\n      },\n      {\n        code: 101,\n        name: 'Switching Protocols',\n        description: 'The server has agreed to change protocol.',\n        type: 'HTTP',\n      },\n      {\n        code: 102,\n        name: 'Processing',\n        description: 'The server is processing the request, but no response is available yet.',\n        type: 'WebDav',\n      },\n      {\n        code: 103,\n        name: 'Early Hints',\n        description: 'The server returns some response headers before final HTTP message.',\n        type: 'HTTP',\n      },\n    ],\n  },\n  {\n    category: '2xx success',\n    codes: [\n      {\n        code: 200,\n        name: 'OK',\n        description: 'Standard response for successful HTTP requests.',\n        type: 'HTTP',\n      },\n      {\n        code: 201,\n        name: 'Created',\n        description: 'The request has been fulfilled, resulting in the creation of a new resource.',\n        type: 'HTTP',\n      },\n      {\n        code: 202,\n        name: 'Accepted',\n        description: 'The request has been accepted for processing, but the processing has not been completed.',\n        type: 'HTTP',\n      },\n      {\n        code: 203,\n        name: 'Non-Authoritative Information',\n        description:\n          'The request is successful but the content of the original request has been modified by a transforming proxy.',\n        type: 'HTTP',\n      },\n      {\n        code: 204,\n        name: 'No Content',\n        description: 'The server successfully processed the request and is not returning any content.',\n        type: 'HTTP',\n      },\n      {\n        code: 205,\n        name: 'Reset Content',\n        description: 'The server indicates to reinitialize the document view which sent this request.',\n        type: 'HTTP',\n      },\n      {\n        code: 206,\n        name: 'Partial Content',\n        description: 'The server is delivering only part of the resource due to a range header sent by the client.',\n        type: 'HTTP',\n      },\n      {\n        code: 207,\n        name: 'Multi-Status',\n        description:\n          'The message body that follows is an XML message and can contain a number of separate response codes.',\n        type: 'WebDav',\n      },\n      {\n        code: 208,\n        name: 'Already Reported',\n        description:\n          'The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response.',\n        type: 'WebDav',\n      },\n      {\n        code: 226,\n        name: 'IM Used',\n        description:\n          'The server has fulfilled a request for the resource, and the response is a representation of the result.',\n        type: 'HTTP',\n      },\n    ],\n  },\n  {\n    category: '3xx redirection',\n    codes: [\n      {\n        code: 300,\n        name: 'Multiple Choices',\n        description: 'Indicates multiple options for the resource that the client may follow.',\n        type: 'HTTP',\n      },\n      {\n        code: 301,\n        name: 'Moved Permanently',\n        description: 'This and all future requests should be directed to the given URI.',\n        type: 'HTTP',\n      },\n      {\n        code: 302,\n        name: 'Found',\n        description: 'Redirect to another URL. This is an example of industry practice contradicting the standard.',\n        type: 'HTTP',\n      },\n      {\n        code: 303,\n        name: 'See Other',\n        description: 'The response to the request can be found under another URI using a GET method.',\n        type: 'HTTP',\n      },\n      {\n        code: 304,\n        name: 'Not Modified',\n        description:\n          'Indicates that the resource has not been modified since the version specified by the request headers.',\n        type: 'HTTP',\n      },\n      {\n        code: 305,\n        name: 'Use Proxy',\n        description:\n          'The requested resource is available only through a proxy, the address for which is provided in the response.',\n        type: 'HTTP',\n      },\n      {\n        code: 306,\n        name: 'Switch Proxy',\n        description: 'No longer used. Originally meant \"Subsequent requests should use the specified proxy.\"',\n        type: 'HTTP',\n      },\n      {\n        code: 307,\n        name: 'Temporary Redirect',\n        description:\n          'In this case, the request should be repeated with another URI; however, future requests should still use the original URI.',\n        type: 'HTTP',\n      },\n      {\n        code: 308,\n        name: 'Permanent Redirect',\n        description: 'The request and all future requests should be repeated using another URI.',\n        type: 'HTTP',\n      },\n    ],\n  },\n  {\n    category: '4xx client error',\n    codes: [\n      {\n        code: 400,\n        name: 'Bad Request',\n        description: 'The server cannot or will not process the request due to an apparent client error.',\n        type: 'HTTP',\n      },\n      {\n        code: 401,\n        name: 'Unauthorized',\n        description:\n          'Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet been provided.',\n        type: 'HTTP',\n      },\n      {\n        code: 402,\n        name: 'Payment Required',\n        description:\n          'Reserved for future use. The original intention was that this code might be used as part of some form of digital cash or micropayment scheme.',\n        type: 'HTTP',\n      },\n      {\n        code: 403,\n        name: 'Forbidden',\n        description:\n          'The request was valid, but the server is refusing action. The user might not have the necessary permissions for a resource.',\n        type: 'HTTP',\n      },\n      {\n        code: 404,\n        name: 'Not Found',\n        description: 'The requested resource could not be found but may be available in the future.',\n        type: 'HTTP',\n      },\n      {\n        code: 405,\n        name: 'Method Not Allowed',\n        description: 'A request method is not supported for the requested resource.',\n        type: 'HTTP',\n      },\n      {\n        code: 406,\n        name: 'Not Acceptable',\n        description:\n          'The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.',\n        type: 'HTTP',\n      },\n      {\n        code: 407,\n        name: 'Proxy Authentication Required',\n        description: 'The client must first authenticate itself with the proxy.',\n        type: 'HTTP',\n      },\n      {\n        code: 408,\n        name: 'Request Timeout',\n        description: 'The server timed out waiting for the request.',\n        type: 'HTTP',\n      },\n      {\n        code: 409,\n        name: 'Conflict',\n        description:\n          'Indicates that the request could not be processed because of conflict in the request, such as an edit conflict.',\n        type: 'HTTP',\n      },\n      {\n        code: 410,\n        name: 'Gone',\n        description: 'Indicates that the resource requested is no longer available and will not be available again.',\n        type: 'HTTP',\n      },\n      {\n        code: 411,\n        name: 'Length Required',\n        description:\n          'The request did not specify the length of its content, which is required by the requested resource.',\n        type: 'HTTP',\n      },\n      {\n        code: 412,\n        name: 'Precondition Failed',\n        description: 'The server does not meet one of the preconditions that the requester put on the request.',\n        type: 'HTTP',\n      },\n      {\n        code: 413,\n        name: 'Payload Too Large',\n        description: 'The request is larger than the server is willing or able to process.',\n        type: 'HTTP',\n      },\n      {\n        code: 414,\n        name: 'URI Too Long',\n        description: 'The URI provided was too long for the server to process.',\n        type: 'HTTP',\n      },\n      {\n        code: 415,\n        name: 'Unsupported Media Type',\n        description: 'The request entity has a media type which the server or resource does not support.',\n        type: 'HTTP',\n      },\n      {\n        code: 416,\n        name: 'Range Not Satisfiable',\n        description: 'The client has asked for a portion of the file, but the server cannot supply that portion.',\n        type: 'HTTP',\n      },\n      {\n        code: 417,\n        name: 'Expectation Failed',\n        description: 'The server cannot meet the requirements of the Expect request-header field.',\n        type: 'HTTP',\n      },\n      {\n        code: 418,\n        name: 'I\\'m a teapot',\n        description: 'The server refuses the attempt to brew coffee with a teapot.',\n        type: 'HTTP',\n      },\n      {\n        code: 421,\n        name: 'Misdirected Request',\n        description: 'The request was directed at a server that is not able to produce a response.',\n        type: 'HTTP',\n      },\n      {\n        code: 422,\n        name: 'Unprocessable Entity',\n        description: 'The request was well-formed but was unable to be followed due to semantic errors.',\n        type: 'HTTP',\n      },\n      {\n        code: 423,\n        name: 'Locked',\n        description: 'The resource that is being accessed is locked.',\n        type: 'HTTP',\n      },\n      {\n        code: 424,\n        name: 'Failed Dependency',\n        description: 'The request failed due to failure of a previous request.',\n        type: 'HTTP',\n      },\n      {\n        code: 425,\n        name: 'Too Early',\n        description: 'Indicates that the server is unwilling to risk processing a request that might be replayed.',\n        type: 'HTTP',\n      },\n      {\n        code: 426,\n        name: 'Upgrade Required',\n        description: 'The client should switch to a different protocol such as TLS/1.0.',\n        type: 'HTTP',\n      },\n      {\n        code: 428,\n        name: 'Precondition Required',\n        description: 'The origin server requires the request to be conditional.',\n        type: 'HTTP',\n      },\n      {\n        code: 429,\n        name: 'Too Many Requests',\n        description: 'The user has sent too many requests in a given amount of time.',\n        type: 'HTTP',\n      },\n      {\n        code: 431,\n        name: 'Request Header Fields Too Large',\n        description:\n          'The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large.',\n        type: 'HTTP',\n      },\n      {\n        code: 451,\n        name: 'Unavailable For Legal Reasons',\n        description:\n          'A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource.',\n        type: 'HTTP',\n      },\n    ],\n  },\n  {\n    category: '5xx server error',\n    codes: [\n      {\n        code: 500,\n        name: 'Internal Server Error',\n        description:\n          'A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.',\n        type: 'HTTP',\n      },\n      {\n        code: 501,\n        name: 'Not Implemented',\n        description:\n          'The server either does not recognize the request method, or it lacks the ability to fulfill the request.',\n        type: 'HTTP',\n      },\n      {\n        code: 502,\n        name: 'Bad Gateway',\n        description:\n          'The server was acting as a gateway or proxy and received an invalid response from the upstream server.',\n        type: 'HTTP',\n      },\n      {\n        code: 503,\n        name: 'Service Unavailable',\n        description: 'The server is currently unavailable (because it is overloaded or down for maintenance).',\n        type: 'HTTP',\n      },\n      {\n        code: 504,\n        name: 'Gateway Timeout',\n        description:\n          'The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.',\n        type: 'HTTP',\n      },\n      {\n        code: 505,\n        name: 'HTTP Version Not Supported',\n        description: 'The server does not support the HTTP protocol version used in the request.',\n        type: 'HTTP',\n      },\n      {\n        code: 506,\n        name: 'Variant Also Negotiates',\n        description: 'Transparent content negotiation for the request results in a circular reference.',\n        type: 'HTTP',\n      },\n      {\n        code: 507,\n        name: 'Insufficient Storage',\n        description: 'The server is unable to store the representation needed to complete the request.',\n        type: 'HTTP',\n      },\n      {\n        code: 508,\n        name: 'Loop Detected',\n        description: 'The server detected an infinite loop while processing the request.',\n        type: 'HTTP',\n      },\n      {\n        code: 510,\n        name: 'Not Extended',\n        description: 'Further extensions to the request are required for the server to fulfill it.',\n        type: 'HTTP',\n      },\n      {\n        code: 511,\n        name: 'Network Authentication Required',\n        description: 'The client needs to authenticate to gain network access.',\n        type: 'HTTP',\n      },\n    ],\n  },\n];\n"
  },
  {
    "path": "src/tools/http-status-codes/http-status-codes.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - Http status codes', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/http-status-codes');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('HTTP status codes - IT Tools');\n  });\n});\n"
  },
  {
    "path": "src/tools/http-status-codes/http-status-codes.vue",
    "content": "<script setup lang=\"ts\">\nimport { codesByCategories } from './http-status-codes.constants';\nimport { useFuzzySearch } from '@/composable/fuzzySearch';\n\nconst search = ref('');\n\nconst { searchResult } = useFuzzySearch({\n  search,\n  data: codesByCategories.flatMap(({ codes, category }) => codes.map(code => ({ ...code, category }))),\n  options: {\n    keys: [{ name: 'code', weight: 3 }, { name: 'name', weight: 2 }, 'description', 'category'],\n  },\n});\n\nconst codesByCategoryFiltered = computed(() => {\n  if (!search.value) {\n    return codesByCategories;\n  }\n\n  return [{ category: 'Search results', codes: searchResult.value }];\n});\n</script>\n\n<template>\n  <div>\n    <c-input-text\n      v-model:value=\"search\"\n      placeholder=\"Search http status...\"\n      autofocus raw-text mb-10\n    />\n\n    <div v-for=\"{ codes, category } of codesByCategoryFiltered\" :key=\"category\" mb-8>\n      <div mb-2 text-xl>\n        {{ category }}\n      </div>\n\n      <c-card v-for=\"{ code, description, name, type } of codes\" :key=\"code\" mb-2>\n        <div text-lg font-bold>\n          {{ code }} {{ name }}\n        </div>\n        <div op-70>\n          {{ description }} {{ type !== 'HTTP' ? `For ${type}.` : '' }}\n        </div>\n      </c-card>\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/http-status-codes/index.ts",
    "content": "import { HttpRound } from '@vicons/material';\nimport { defineTool } from '../tool';\n\nimport { codesByCategories } from './http-status-codes.constants';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.http-status-codes.title'),\n  path: '/http-status-codes',\n  description: translate('tools.http-status-codes.description'),\n  keywords: [\n    'http',\n    'status',\n    'codes',\n    ...codesByCategories.flatMap(({ codes }) => codes.flatMap(({ code, name }) => [String(code), name])),\n  ],\n  component: () => import('./http-status-codes.vue'),\n  icon: HttpRound,\n  createdAt: new Date('2023-04-13'),\n});\n"
  },
  {
    "path": "src/tools/iban-validator-and-parser/iban-validator-and-parser.e2e.spec.ts",
    "content": "import { type Page, expect, test } from '@playwright/test';\n\nasync function extractIbanInfo({ page }: { page: Page }) {\n  const itemsLines = await page\n    .locator('.c-key-value-list__item').all();\n\n  return await Promise.all(\n    itemsLines.map(async item => [\n      (await item.locator('.c-key-value-list__key').textContent() ?? '').trim(),\n      (await item.locator('.c-key-value-list__value').textContent() ?? '').trim(),\n    ]),\n  );\n}\n\ntest.describe('Tool - Iban validator and parser', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/iban-validator-and-parser');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('IBAN validator and parser - IT Tools');\n  });\n\n  test('iban info are extracted from a valid iban', async ({ page }) => {\n    await page.getByTestId('iban-input').fill('DE89370400440532013000');\n\n    const ibanInfo = await extractIbanInfo({ page });\n\n    expect(ibanInfo).toEqual([\n      ['Is IBAN valid ?', 'Yes'],\n      ['Is IBAN a QR-IBAN ?', 'No'],\n      ['Country code', 'DE'],\n      ['BBAN', '370400440532013000'],\n      ['IBAN friendly format', 'DE89 3704 0044 0532 0130 00'],\n    ]);\n  });\n\n  test('invalid iban errors are displayed', async ({ page }) => {\n    await page.getByTestId('iban-input').fill('FR7630006060011234567890189');\n\n    const ibanInfo = await extractIbanInfo({ page });\n\n    expect(ibanInfo).toEqual([\n      ['Is IBAN valid ?', 'No'],\n      ['IBAN errors', 'Wrong account bank branch checksum Wrong IBAN checksum'],\n      ['Is IBAN a QR-IBAN ?', 'No'],\n      ['Country code', 'N/A'],\n      ['BBAN', 'N/A'],\n      ['IBAN friendly format', 'FR76 3000 6060 0112 3456 7890 189'],\n    ]);\n  });\n});\n"
  },
  {
    "path": "src/tools/iban-validator-and-parser/iban-validator-and-parser.service.ts",
    "content": "import { ValidationErrorsIBAN } from 'ibantools';\n\nexport { getFriendlyErrors };\n\nconst ibanErrorToMessage = {\n  [ValidationErrorsIBAN.NoIBANProvided]: 'No IBAN provided',\n  [ValidationErrorsIBAN.NoIBANCountry]: 'No IBAN country',\n  [ValidationErrorsIBAN.WrongBBANLength]: 'Wrong BBAN length',\n  [ValidationErrorsIBAN.WrongBBANFormat]: 'Wrong BBAN format',\n  [ValidationErrorsIBAN.ChecksumNotNumber]: 'Checksum is not a number',\n  [ValidationErrorsIBAN.WrongIBANChecksum]: 'Wrong IBAN checksum',\n  [ValidationErrorsIBAN.WrongAccountBankBranchChecksum]: 'Wrong account bank branch checksum',\n  [ValidationErrorsIBAN.QRIBANNotAllowed]: 'QR-IBAN not allowed',\n};\n\nfunction getFriendlyErrors(errorCodes: ValidationErrorsIBAN[]) {\n  return errorCodes.map(errorCode => ibanErrorToMessage[errorCode]).filter(Boolean);\n}\n"
  },
  {
    "path": "src/tools/iban-validator-and-parser/iban-validator-and-parser.vue",
    "content": "<script setup lang=\"ts\">\nimport { extractIBAN, friendlyFormatIBAN, isQRIBAN, validateIBAN } from 'ibantools';\nimport { getFriendlyErrors } from './iban-validator-and-parser.service';\nimport type { CKeyValueListItems } from '@/ui/c-key-value-list/c-key-value-list.types';\n\nconst rawIban = ref('');\n\nconst ibanInfo = computed<CKeyValueListItems>(() => {\n  const iban = rawIban.value.toUpperCase().replace(/\\s/g, '').replace(/-/g, '');\n\n  if (iban === '') {\n    return [];\n  }\n\n  const { valid: isIbanValid, errorCodes } = validateIBAN(iban);\n  const { countryCode, bban } = extractIBAN(iban);\n  const errors = getFriendlyErrors(errorCodes);\n\n  return [\n\n    {\n      label: 'Is IBAN valid ?',\n      value: isIbanValid,\n      showCopyButton: false,\n    },\n    {\n      label: 'IBAN errors',\n      value: errors.length === 0 ? undefined : errors,\n      hideOnNil: true,\n      showCopyButton: false,\n    },\n    {\n      label: 'Is IBAN a QR-IBAN ?',\n      value: isQRIBAN(iban),\n      showCopyButton: false,\n    },\n    {\n      label: 'Country code',\n      value: countryCode,\n    },\n    {\n      label: 'BBAN',\n      value: bban,\n    },\n    {\n      label: 'IBAN friendly format',\n      value: friendlyFormatIBAN(iban),\n    },\n  ];\n});\n\nconst ibanExamples = [\n  'FR7630006000011234567890189',\n  'DE89370400440532013000',\n  'GB29NWBK60161331926819',\n];\n</script>\n\n<template>\n  <div>\n    <c-input-text v-model:value=\"rawIban\" placeholder=\"Enter an IBAN to check for validity...\" test-id=\"iban-input\" />\n\n    <c-card v-if=\"ibanInfo.length > 0\" mt-5>\n      <c-key-value-list :items=\"ibanInfo\" data-test-id=\"iban-info\" />\n    </c-card>\n\n    <c-card title=\"Valid IBAN examples\" mt-5>\n      <div v-for=\"iban in ibanExamples\" :key=\"iban\">\n        <c-text-copyable :value=\"iban\" font-mono :displayed-value=\"friendlyFormatIBAN(iban)\" />\n      </div>\n    </c-card>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/iban-validator-and-parser/index.ts",
    "content": "import { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\nimport Bank from '~icons/mdi/bank';\n\nexport const tool = defineTool({\n  name: translate('tools.iban-validator-and-parser.title'),\n  path: '/iban-validator-and-parser',\n  description: translate('tools.iban-validator-and-parser.description'),\n  keywords: ['iban', 'validator', 'and', 'parser', 'bic', 'bank'],\n  component: () => import('./iban-validator-and-parser.vue'),\n  icon: Bank,\n  createdAt: new Date('2023-08-26'),\n});\n"
  },
  {
    "path": "src/tools/index.ts",
    "content": "import { tool as base64FileConverter } from './base64-file-converter';\nimport { tool as base64StringConverter } from './base64-string-converter';\nimport { tool as basicAuthGenerator } from './basic-auth-generator';\nimport { tool as emailNormalizer } from './email-normalizer';\n\nimport { tool as asciiTextDrawer } from './ascii-text-drawer';\n\nimport { tool as textToUnicode } from './text-to-unicode';\nimport { tool as safelinkDecoder } from './safelink-decoder';\nimport { tool as xmlToJson } from './xml-to-json';\nimport { tool as jsonToXml } from './json-to-xml';\nimport { tool as regexTester } from './regex-tester';\nimport { tool as regexMemo } from './regex-memo';\nimport { tool as markdownToHtml } from './markdown-to-html';\nimport { tool as pdfSignatureChecker } from './pdf-signature-checker';\nimport { tool as numeronymGenerator } from './numeronym-generator';\nimport { tool as macAddressGenerator } from './mac-address-generator';\nimport { tool as textToBinary } from './text-to-binary';\nimport { tool as ulidGenerator } from './ulid-generator';\nimport { tool as ibanValidatorAndParser } from './iban-validator-and-parser';\nimport { tool as stringObfuscator } from './string-obfuscator';\nimport { tool as textDiff } from './text-diff';\nimport { tool as emojiPicker } from './emoji-picker';\nimport { tool as passwordStrengthAnalyser } from './password-strength-analyser';\nimport { tool as yamlToToml } from './yaml-to-toml';\nimport { tool as jsonToToml } from './json-to-toml';\nimport { tool as tomlToYaml } from './toml-to-yaml';\nimport { tool as tomlToJson } from './toml-to-json';\nimport { tool as jsonToCsv } from './json-to-csv';\nimport { tool as cameraRecorder } from './camera-recorder';\nimport { tool as listConverter } from './list-converter';\nimport { tool as phoneParserAndFormatter } from './phone-parser-and-formatter';\nimport { tool as jsonDiff } from './json-diff';\nimport { tool as ipv4RangeExpander } from './ipv4-range-expander';\nimport { tool as httpStatusCodes } from './http-status-codes';\nimport { tool as yamlToJson } from './yaml-to-json-converter';\nimport { tool as jsonToYaml } from './json-to-yaml-converter';\nimport { tool as ipv6UlaGenerator } from './ipv6-ula-generator';\nimport { tool as ipv4AddressConverter } from './ipv4-address-converter';\nimport { tool as benchmarkBuilder } from './benchmark-builder';\nimport { tool as userAgentParser } from './user-agent-parser';\nimport { tool as ipv4SubnetCalculator } from './ipv4-subnet-calculator';\nimport { tool as dockerRunToDockerComposeConverter } from './docker-run-to-docker-compose-converter';\nimport { tool as htmlWysiwygEditor } from './html-wysiwyg-editor';\nimport { tool as rsaKeyPairGenerator } from './rsa-key-pair-generator';\nimport { tool as textToNatoAlphabet } from './text-to-nato-alphabet';\nimport { tool as slugifyString } from './slugify-string';\nimport { tool as keycodeInfo } from './keycode-info';\nimport { tool as jsonMinify } from './json-minify';\nimport { tool as bcrypt } from './bcrypt';\nimport { tool as bip39 } from './bip39-generator';\nimport { tool as caseConverter } from './case-converter';\nimport { tool as chmodCalculator } from './chmod-calculator';\nimport { tool as chronometer } from './chronometer';\nimport { tool as colorConverter } from './color-converter';\nimport { tool as crontabGenerator } from './crontab-generator';\nimport { tool as dateTimeConverter } from './date-time-converter';\nimport { tool as deviceInformation } from './device-information';\nimport { tool as cypher } from './encryption';\nimport { tool as etaCalculator } from './eta-calculator';\nimport { tool as percentageCalculator } from './percentage-calculator';\nimport { tool as gitMemo } from './git-memo';\nimport { tool as hashText } from './hash-text';\nimport { tool as hmacGenerator } from './hmac-generator';\nimport { tool as htmlEntities } from './html-entities';\nimport { tool as baseConverter } from './integer-base-converter';\nimport { tool as jsonViewer } from './json-viewer';\nimport { tool as jwtParser } from './jwt-parser';\nimport { tool as loremIpsumGenerator } from './lorem-ipsum-generator';\nimport { tool as mathEvaluator } from './math-evaluator';\nimport { tool as metaTagGenerator } from './meta-tag-generator';\nimport { tool as mimeTypes } from './mime-types';\nimport { tool as otpCodeGeneratorAndValidator } from './otp-code-generator-and-validator';\nimport { tool as qrCodeGenerator } from './qr-code-generator';\nimport { tool as wifiQrCodeGenerator } from './wifi-qr-code-generator';\nimport { tool as randomPortGenerator } from './random-port-generator';\nimport { tool as romanNumeralConverter } from './roman-numeral-converter';\nimport { tool as sqlPrettify } from './sql-prettify';\nimport { tool as svgPlaceholderGenerator } from './svg-placeholder-generator';\nimport { tool as temperatureConverter } from './temperature-converter';\nimport { tool as textStatistics } from './text-statistics';\nimport { tool as tokenGenerator } from './token-generator';\nimport type { ToolCategory } from './tools.types';\nimport { tool as urlEncoder } from './url-encoder';\nimport { tool as urlParser } from './url-parser';\nimport { tool as uuidGenerator } from './uuid-generator';\nimport { tool as macAddressLookup } from './mac-address-lookup';\nimport { tool as xmlFormatter } from './xml-formatter';\nimport { tool as yamlViewer } from './yaml-viewer';\n\nexport const toolsByCategory: ToolCategory[] = [\n  {\n    name: 'Crypto',\n    components: [tokenGenerator, hashText, bcrypt, uuidGenerator, ulidGenerator, cypher, bip39, hmacGenerator, rsaKeyPairGenerator, passwordStrengthAnalyser, pdfSignatureChecker],\n  },\n  {\n    name: 'Converter',\n    components: [\n      dateTimeConverter,\n      baseConverter,\n      romanNumeralConverter,\n      base64StringConverter,\n      base64FileConverter,\n      colorConverter,\n      caseConverter,\n      textToNatoAlphabet,\n      textToBinary,\n      textToUnicode,\n      yamlToJson,\n      yamlToToml,\n      jsonToYaml,\n      jsonToToml,\n      listConverter,\n      tomlToJson,\n      tomlToYaml,\n      xmlToJson,\n      jsonToXml,\n      markdownToHtml,\n    ],\n  },\n  {\n    name: 'Web',\n    components: [\n      urlEncoder,\n      htmlEntities,\n      urlParser,\n      deviceInformation,\n      basicAuthGenerator,\n      metaTagGenerator,\n      otpCodeGeneratorAndValidator,\n      mimeTypes,\n      jwtParser,\n      keycodeInfo,\n      slugifyString,\n      htmlWysiwygEditor,\n      userAgentParser,\n      httpStatusCodes,\n      jsonDiff,\n      safelinkDecoder,\n    ],\n  },\n  {\n    name: 'Images and videos',\n    components: [qrCodeGenerator, wifiQrCodeGenerator, svgPlaceholderGenerator, cameraRecorder],\n  },\n  {\n    name: 'Development',\n    components: [\n      gitMemo,\n      randomPortGenerator,\n      crontabGenerator,\n      jsonViewer,\n      jsonMinify,\n      jsonToCsv,\n      sqlPrettify,\n      chmodCalculator,\n      dockerRunToDockerComposeConverter,\n      xmlFormatter,\n      yamlViewer,\n      emailNormalizer,\n      regexTester,\n      regexMemo,\n    ],\n  },\n  {\n    name: 'Network',\n    components: [ipv4SubnetCalculator, ipv4AddressConverter, ipv4RangeExpander, macAddressLookup, macAddressGenerator, ipv6UlaGenerator],\n  },\n  {\n    name: 'Math',\n    components: [mathEvaluator, etaCalculator, percentageCalculator],\n  },\n  {\n    name: 'Measurement',\n    components: [chronometer, temperatureConverter, benchmarkBuilder],\n  },\n  {\n    name: 'Text',\n    components: [\n      loremIpsumGenerator,\n      textStatistics,\n      emojiPicker,\n      stringObfuscator,\n      textDiff,\n      numeronymGenerator,\n      asciiTextDrawer,\n    ],\n  },\n  {\n    name: 'Data',\n    components: [phoneParserAndFormatter, ibanValidatorAndParser],\n  },\n];\n\nexport const tools = toolsByCategory.flatMap(({ components }) => components);\nexport const toolsWithCategory = toolsByCategory.flatMap(({ components, name }) =>\n  components.map(tool => ({ category: name, ...tool })),\n);\n"
  },
  {
    "path": "src/tools/integer-base-converter/index.ts",
    "content": "import { ArrowsLeftRight } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.base-converter.title'),\n  path: '/base-converter',\n  description: translate('tools.base-converter.description'),\n  keywords: ['integer', 'number', 'base', 'conversion', 'decimal', 'hexadecimal', 'binary', 'octal', 'base64'],\n  component: () => import('./integer-base-converter.vue'),\n  icon: ArrowsLeftRight,\n});\n"
  },
  {
    "path": "src/tools/integer-base-converter/integer-base-converter.model.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { convertBase } from './integer-base-converter.model';\n\ndescribe('integer-base-converter', () => {\n  describe('convertBase', () => {\n    describe('when the input and target bases are between 2 and 64', () => {\n      it('should convert integer between different bases', () => {\n        expect(convertBase({ value: '0', fromBase: 2, toBase: 11 })).toEqual('0');\n        expect(convertBase({ value: '0', fromBase: 5, toBase: 2 })).toEqual('0');\n        expect(convertBase({ value: '0', fromBase: 10, toBase: 16 })).toEqual('0');\n        expect(convertBase({ value: '10100101', fromBase: 2, toBase: 16 })).toEqual('a5');\n        expect(convertBase({ value: '192654', fromBase: 10, toBase: 8 })).toEqual('570216');\n        expect(convertBase({ value: 'zz', fromBase: 64, toBase: 10 })).toEqual('2275');\n        expect(convertBase({ value: '42540766411283223938465490632011909384', fromBase: 10, toBase: 10 })).toEqual('42540766411283223938465490632011909384');\n        expect(convertBase({ value: '42540766411283223938465490632011909384', fromBase: 10, toBase: 16 })).toEqual('20010db8000085a300000000ac1f8908');\n        expect(convertBase({ value: '20010db8000085a300000000ac1f8908', fromBase: 16, toBase: 10 })).toEqual('42540766411283223938465490632011909384');\n      });\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/integer-base-converter/integer-base-converter.model.ts",
    "content": "export function convertBase({ value, fromBase, toBase }: { value: string; fromBase: number; toBase: number }) {\n  const range = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ+/'.split('');\n  const fromRange = range.slice(0, fromBase);\n  const toRange = range.slice(0, toBase);\n  let decValue = value\n    .split('')\n    .reverse()\n    .reduce((carry: bigint, digit: string, index: number) => {\n      if (!fromRange.includes(digit)) {\n        throw new Error(`Invalid digit \"${digit}\" for base ${fromBase}.`);\n      }\n      return (carry += BigInt(fromRange.indexOf(digit)) * BigInt(fromBase) ** BigInt(index));\n    }, 0n);\n  let newValue = '';\n  while (decValue > 0) {\n    newValue = toRange[Number(decValue % BigInt(toBase))] + newValue;\n    decValue = (decValue - (decValue % BigInt(toBase))) / BigInt(toBase);\n  }\n  return newValue || '0';\n}\n"
  },
  {
    "path": "src/tools/integer-base-converter/integer-base-converter.vue",
    "content": "<script setup lang=\"ts\">\nimport InputCopyable from '../../components/InputCopyable.vue';\nimport { convertBase } from './integer-base-converter.model';\nimport { getErrorMessageIfThrows } from '@/utils/error';\n\nconst inputProps = {\n  'labelPosition': 'left',\n  'labelWidth': '170px',\n  'labelAlign': 'right',\n  'readonly': true,\n  'mb-2': '',\n} as const;\n\nconst input = ref('42');\nconst inputBase = ref(10);\nconst outputBase = ref(42);\n\nfunction errorlessConvert(...args: Parameters<typeof convertBase>) {\n  try {\n    return convertBase(...args);\n  }\n  catch (err) {\n    return '';\n  }\n}\n\nconst error = computed(() =>\n  getErrorMessageIfThrows(() =>\n    convertBase({ value: input.value, fromBase: inputBase.value, toBase: outputBase.value }),\n  ),\n);\n</script>\n\n<template>\n  <div>\n    <c-card>\n      <c-input-text v-model:value=\"input\" label=\"Input number\" placeholder=\"Put your number here (ex: 42)\" label-position=\"left\" label-width=\"110px\" mb-2 label-align=\"right\" />\n\n      <n-form-item label=\"Input base\" label-placement=\"left\" label-width=\"110\" :show-feedback=\"false\">\n        <n-input-number v-model:value=\"inputBase\" max=\"64\" min=\"2\" placeholder=\"Put your input base here (ex: 10)\" w-full />\n      </n-form-item>\n\n      <n-alert v-if=\"error\" style=\"margin-top: 25px\" type=\"error\">\n        {{ error }}\n      </n-alert>\n      <n-divider />\n\n      <InputCopyable\n        label=\"Binary (2)\"\n        v-bind=\"inputProps\"\n        :value=\"errorlessConvert({ value: input, fromBase: inputBase, toBase: 2 })\"\n        placeholder=\"Binary version will be here...\"\n      />\n\n      <InputCopyable\n        label=\"Octal (8)\"\n        v-bind=\"inputProps\"\n        :value=\"errorlessConvert({ value: input, fromBase: inputBase, toBase: 8 })\"\n        placeholder=\"Octal version will be here...\"\n      />\n\n      <InputCopyable\n        label=\"Decimal (10)\"\n        v-bind=\"inputProps\"\n        :value=\"errorlessConvert({ value: input, fromBase: inputBase, toBase: 10 })\"\n        placeholder=\"Decimal version will be here...\"\n      />\n\n      <InputCopyable\n        label=\"Hexadecimal (16)\"\n        v-bind=\"inputProps\"\n        :value=\"errorlessConvert({ value: input, fromBase: inputBase, toBase: 16 })\"\n        placeholder=\"Hexadecimal version will be here...\"\n      />\n\n      <InputCopyable\n        label=\"Base64 (64)\"\n        v-bind=\"inputProps\"\n        :value=\"errorlessConvert({ value: input, fromBase: inputBase, toBase: 64 })\"\n        placeholder=\"Base64 version will be here...\"\n      />\n\n      <div flex items-baseline>\n        <n-input-group style=\"width: 160px; margin-right: 10px\">\n          <n-input-group-label> Custom: </n-input-group-label>\n          <n-input-number v-model:value=\"outputBase\" max=\"64\" min=\"2\" />\n        </n-input-group>\n\n        <InputCopyable\n          flex-1\n          v-bind=\"inputProps\"\n          :value=\"errorlessConvert({ value: input, fromBase: inputBase, toBase: outputBase })\"\n          :placeholder=\"`Base ${outputBase} will be here...`\"\n        />\n      </div>\n    </c-card>\n  </div>\n</template>\n\n<style lang=\"less\" scoped>\n.n-input-group:not(:first-child) {\n  margin-top: 5px;\n}\n</style>\n"
  },
  {
    "path": "src/tools/ipv4-address-converter/index.ts",
    "content": "import { Binary } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.ipv4-address-converter.title'),\n  path: '/ipv4-address-converter',\n  description: translate('tools.ipv4-address-converter.description'),\n  keywords: ['ipv4', 'address', 'converter', 'decimal', 'hexadecimal', 'binary', 'ipv6'],\n  component: () => import('./ipv4-address-converter.vue'),\n  icon: Binary,\n  createdAt: new Date('2023-04-08'),\n});\n"
  },
  {
    "path": "src/tools/ipv4-address-converter/ipv4-address-converter.service.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { ipv4ToInt, isValidIpv4 } from './ipv4-address-converter.service';\n\ndescribe('ipv4-address-converter', () => {\n  describe('ipv4ToInt', () => {\n    it('should convert an IPv4 address to an integer', () => {\n      expect(ipv4ToInt({ ip: '192.168.0.1' })).toBe(3232235521);\n      expect(ipv4ToInt({ ip: '10.0.0.1' })).toBe(167772161);\n      expect(ipv4ToInt({ ip: '255.255.255.255' })).toBe(4294967295);\n    });\n  });\n\n  describe('isValidIpv4', () => {\n    it('should return true for a valid IP address', () => {\n      expect(isValidIpv4({ ip: '192.168.0.1' })).to.equal(true);\n      expect(isValidIpv4({ ip: '10.0.0.1' })).to.equal(true);\n    });\n\n    it('should return false for an invalid IP address', () => {\n      expect(isValidIpv4({ ip: '256.168.0.1' })).to.equal(false);\n      expect(isValidIpv4({ ip: '192.168.0' })).to.equal(false);\n      expect(isValidIpv4({ ip: '192.168.0.1.2' })).to.equal(false);\n      expect(isValidIpv4({ ip: '192.168.0.1.' })).to.equal(false);\n      expect(isValidIpv4({ ip: '.192.168.0.1' })).to.equal(false);\n      expect(isValidIpv4({ ip: '192.168.0.a' })).to.equal(false);\n    });\n\n    it('should return false for crap as input', () => {\n      expect(isValidIpv4({ ip: '' })).to.equal(false);\n      expect(isValidIpv4({ ip: ' ' })).to.equal(false);\n      expect(isValidIpv4({ ip: 'foo' })).to.equal(false);\n      expect(isValidIpv4({ ip: '-1' })).to.equal(false);\n      expect(isValidIpv4({ ip: '0' })).to.equal(false);\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/ipv4-address-converter/ipv4-address-converter.service.ts",
    "content": "import _ from 'lodash';\n\nexport { ipv4ToInt, ipv4ToIpv6, isValidIpv4 };\n\nfunction ipv4ToInt({ ip }: { ip: string }) {\n  if (!isValidIpv4({ ip })) {\n    return 0;\n  }\n\n  return ip\n    .trim()\n    .split('.')\n    .reduce((acc, part, index) => acc + Number(part) * 256 ** (3 - index), 0);\n}\n\nfunction ipv4ToIpv6({ ip, prefix = '0000:0000:0000:0000:0000:ffff:' }: { ip: string; prefix?: string }) {\n  if (!isValidIpv4({ ip })) {\n    return '';\n  }\n\n  return (\n    prefix\n    + _.chain(ip)\n      .trim()\n      .split('.')\n      .map(part => Number.parseInt(part).toString(16).padStart(2, '0'))\n      .chunk(2)\n      .map(blocks => blocks.join(''))\n      .join(':')\n      .value()\n  );\n}\n\nfunction isValidIpv4({ ip }: { ip: string }) {\n  const cleanIp = ip.trim();\n\n  return /^((25[0-5]|(2[0-4]|1\\d|[1-9]|)\\d)\\.?\\b){4}$/.test(cleanIp);\n}\n"
  },
  {
    "path": "src/tools/ipv4-address-converter/ipv4-address-converter.vue",
    "content": "<script setup lang=\"ts\">\nimport { convertBase } from '../integer-base-converter/integer-base-converter.model';\nimport { ipv4ToInt, ipv4ToIpv6, isValidIpv4 } from './ipv4-address-converter.service';\nimport { useValidation } from '@/composable/validation';\n\nconst rawIpAddress = useStorage('ipv4-converter:ip', '192.168.1.1');\n\nconst convertedSections = computed(() => {\n  const ipInDecimal = ipv4ToInt({ ip: rawIpAddress.value });\n\n  return [\n    {\n      label: 'Decimal: ',\n      value: String(ipInDecimal),\n    },\n    {\n      label: 'Hexadecimal: ',\n      value: convertBase({ fromBase: 10, toBase: 16, value: String(ipInDecimal) }).toUpperCase(),\n    },\n    {\n      label: 'Binary: ',\n      value: convertBase({ fromBase: 10, toBase: 2, value: String(ipInDecimal) }),\n    },\n    {\n      label: 'Ipv6: ',\n      value: ipv4ToIpv6({ ip: rawIpAddress.value }),\n    },\n    {\n      label: 'Ipv6 (short): ',\n      value: ipv4ToIpv6({ ip: rawIpAddress.value, prefix: '::ffff:' }),\n    },\n  ];\n});\n\nconst { attrs: validationAttrs } = useValidation({\n  source: rawIpAddress,\n  rules: [{ message: 'Invalid ipv4 address', validator: ip => isValidIpv4({ ip }) }],\n});\n</script>\n\n<template>\n  <div>\n    <c-input-text v-model:value=\"rawIpAddress\" label=\"The ipv4 address:\" placeholder=\"The ipv4 address...\" />\n\n    <n-divider />\n\n    <input-copyable\n      v-for=\"{ label, value } of convertedSections\"\n      :key=\"label\"\n      :label=\"label\"\n      label-position=\"left\"\n      label-width=\"100px\"\n      label-align=\"right\"\n      mb-2\n      :value=\"validationAttrs.validationStatus === 'error' ? '' : value\"\n      placeholder=\"Set a correct ipv4 address\"\n    />\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/ipv4-range-expander/index.ts",
    "content": "import { UnfoldMoreOutlined } from '@vicons/material';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.ipv4-range-expander.title'),\n  path: '/ipv4-range-expander',\n  description: translate('tools.ipv4-range-expander.description'),\n  keywords: ['ipv4', 'range', 'expander', 'subnet', 'creator', 'cidr'],\n  component: () => import('./ipv4-range-expander.vue'),\n  icon: UnfoldMoreOutlined,\n  createdAt: new Date('2023-04-19'),\n});\n"
  },
  {
    "path": "src/tools/ipv4-range-expander/ipv4-range-expander.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - IPv4 range expander', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/ipv4-range-expander');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('IPv4 range expander - IT Tools');\n  });\n\n  test('Calculates correct for valid input', async ({ page }) => {\n    await page.getByPlaceholder('Start IPv4 address...').fill('192.168.1.1');\n    await page.getByPlaceholder('End IPv4 address...').fill('192.168.7.255');\n\n    expect(await page.getByTestId('start-address.old').textContent()).toEqual('192.168.1.1');\n    expect(await page.getByTestId('start-address.new').textContent()).toEqual('192.168.0.0');\n    expect(await page.getByTestId('end-address.old').textContent()).toEqual('192.168.7.255');\n    expect(await page.getByTestId('end-address.new').textContent()).toEqual('192.168.7.255');\n    expect(await page.getByTestId('addresses-in-range.old').textContent()).toEqual('1,791');\n    expect(await page.getByTestId('addresses-in-range.new').textContent()).toEqual('2,048');\n    expect(await page.getByTestId('cidr.old').textContent()).toEqual('');\n    expect(await page.getByTestId('cidr.new').textContent()).toEqual('192.168.0.0/21');\n  });\n\n  test('Calculates correct for valid input, where first octet is lower than 128', async ({ page }) => {\n    await page.getByPlaceholder('Start IPv4 address...').fill('10.0.0.1');\n    await page.getByPlaceholder('End IPv4 address...').fill('10.0.0.17');\n\n    expect(await page.getByTestId('start-address.old').textContent()).toEqual('10.0.0.1');\n    expect(await page.getByTestId('start-address.new').textContent()).toEqual('10.0.0.0');\n    expect(await page.getByTestId('end-address.old').textContent()).toEqual('10.0.0.17');\n    expect(await page.getByTestId('end-address.new').textContent()).toEqual('10.0.0.31');\n    expect(await page.getByTestId('addresses-in-range.old').textContent()).toEqual('17');\n    expect(await page.getByTestId('addresses-in-range.new').textContent()).toEqual('32');\n    expect(await page.getByTestId('cidr.old').textContent()).toEqual('');\n    expect(await page.getByTestId('cidr.new').textContent()).toEqual('10.0.0.0/27');\n  });\n\n  test('Hides result for invalid input', async ({ page }) => {\n    await page.getByPlaceholder('Start IPv4 address...').fill('192.168.1.1');\n    await page.getByPlaceholder('End IPv4 address...').fill('192.168.0.255');\n\n    await expect(page.getByTestId('result')).not.toBeVisible();\n  });\n});\n"
  },
  {
    "path": "src/tools/ipv4-range-expander/ipv4-range-expander.service.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { calculateCidr } from './ipv4-range-expander.service';\n\ndescribe('ipv4RangeExpander', () => {\n  describe('when there are two valid ipv4 addresses given', () => {\n    it('should calculate valid cidr for given addresses', () => {\n      const result = calculateCidr({ startIp: '192.168.1.1', endIp: '192.168.7.255' });\n\n      expect(result).toBeDefined();\n      expect(result?.oldSize).toEqual(1791);\n      expect(result?.newSize).toEqual(2048);\n      expect(result?.newStart).toEqual('192.168.0.0');\n      expect(result?.newEnd).toEqual('192.168.7.255');\n      expect(result?.newCidr).toEqual('192.168.0.0/21');\n    });\n\n    it('should calculate valid cidr for given addresses, where first octet is lower than 128', () => {\n      const result = calculateCidr({ startIp: '10.0.0.1', endIp: '10.0.0.17' });\n\n      expect(result).toBeDefined();\n      expect(result?.oldSize).toEqual(17);\n      expect(result?.newSize).toEqual(32);\n      expect(result?.newStart).toEqual('10.0.0.0');\n      expect(result?.newEnd).toEqual('10.0.0.31');\n      expect(result?.newCidr).toEqual('10.0.0.0/27');\n    });\n\n    it('should return empty result for invalid input', () => {\n      expect(calculateCidr({ startIp: '192.168.7.1', endIp: '192.168.6.255' })).not.toBeDefined();\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/ipv4-range-expander/ipv4-range-expander.service.ts",
    "content": "import { convertBase } from '../integer-base-converter/integer-base-converter.model';\nimport { ipv4ToInt } from '../ipv4-address-converter/ipv4-address-converter.service';\nimport type { Ipv4RangeExpanderResult } from './ipv4-range-expander.types';\n\nexport { calculateCidr };\n\nfunction bits2ip(ipInt: number) {\n  return `${ipInt >>> 24}.${(ipInt >> 16) & 255}.${(ipInt >> 8) & 255}.${ipInt & 255}`;\n}\n\nfunction getRangesize(start: string, end: string) {\n  if (start == null || end == null) {\n    return -1;\n  }\n\n  return 1 + Number.parseInt(end, 2) - Number.parseInt(start, 2);\n}\n\nfunction getCidr(start: string, end: string) {\n  if (start == null || end == null) {\n    return null;\n  }\n\n  const range = getRangesize(start, end);\n  if (range < 1) {\n    return null;\n  }\n\n  let mask = 32;\n  for (let i = 0; i < 32; i++) {\n    if (start[i] !== end[i]) {\n      mask = i;\n      break;\n    }\n  }\n\n  const newStart = start.substring(0, mask) + '0'.repeat(32 - mask);\n  const newEnd = end.substring(0, mask) + '1'.repeat(32 - mask);\n\n  return { start: newStart, end: newEnd, mask };\n}\n\nfunction calculateCidr({ startIp, endIp }: { startIp: string; endIp: string }) {\n  const start = convertBase({\n    value: ipv4ToInt({ ip: startIp }).toString(),\n    fromBase: 10,\n    toBase: 2,\n  }).padStart(32, '0');\n  const end = convertBase({\n    value: ipv4ToInt({ ip: endIp }).toString(),\n    fromBase: 10,\n    toBase: 2,\n  }).padStart(32, '0');\n\n  const cidr = getCidr(start, end);\n  if (cidr != null) {\n    const result: Ipv4RangeExpanderResult = {};\n    result.newEnd = bits2ip(Number.parseInt(cidr.end, 2));\n    result.newStart = bits2ip(Number.parseInt(cidr.start, 2));\n    result.newCidr = `${result.newStart}/${cidr.mask}`;\n    result.newSize = getRangesize(cidr.start, cidr.end);\n\n    result.oldSize = getRangesize(start, end);\n    return result;\n  }\n\n  return undefined;\n}\n"
  },
  {
    "path": "src/tools/ipv4-range-expander/ipv4-range-expander.types.ts",
    "content": "export interface Ipv4RangeExpanderResult {\n  oldSize?: number\n  newStart?: string\n  newEnd?: string\n  newCidr?: string\n  newSize?: number\n}\n"
  },
  {
    "path": "src/tools/ipv4-range-expander/ipv4-range-expander.vue",
    "content": "<script setup lang=\"ts\">\nimport { Exchange } from '@vicons/tabler';\nimport { isValidIpv4 } from '../ipv4-address-converter/ipv4-address-converter.service';\nimport type { Ipv4RangeExpanderResult } from './ipv4-range-expander.types';\nimport { calculateCidr } from './ipv4-range-expander.service';\nimport ResultRow from './result-row.vue';\nimport { useValidation } from '@/composable/validation';\n\nconst rawStartAddress = useStorage('ipv4-range-expander:startAddress', '192.168.1.1');\nconst rawEndAddress = useStorage('ipv4-range-expander:endAddress', '192.168.6.255');\n\nconst result = computed(() => calculateCidr({ startIp: rawStartAddress.value, endIp: rawEndAddress.value }));\n\nconst calculatedValues: {\n  label: string\n  getOldValue: (result: Ipv4RangeExpanderResult | undefined) => string | undefined\n  getNewValue: (result: Ipv4RangeExpanderResult | undefined) => string | undefined\n}[] = [\n  {\n    label: 'Start address',\n    getOldValue: () => rawStartAddress.value,\n    getNewValue: result => result?.newStart,\n  },\n  {\n    label: 'End address',\n    getOldValue: () => rawEndAddress.value,\n    getNewValue: result => result?.newEnd,\n  },\n  {\n    label: 'Addresses in range',\n    getOldValue: result => result?.oldSize?.toLocaleString(),\n    getNewValue: result => result?.newSize?.toLocaleString(),\n  },\n  {\n    label: 'CIDR',\n    getOldValue: () => '',\n    getNewValue: result => result?.newCidr,\n  },\n];\n\nconst startIpValidation = useValidation({\n  source: rawStartAddress,\n  rules: [{ message: 'Invalid ipv4 address', validator: ip => isValidIpv4({ ip }) }],\n});\nconst endIpValidation = useValidation({\n  source: rawEndAddress,\n  rules: [{ message: 'Invalid ipv4 address', validator: ip => isValidIpv4({ ip }) }],\n});\n\nconst showResult = computed(() => endIpValidation.isValid && startIpValidation.isValid && result.value !== undefined);\n\nfunction onSwitchStartEndClicked() {\n  const tmpStart = rawStartAddress.value;\n  rawStartAddress.value = rawEndAddress.value;\n  rawEndAddress.value = tmpStart;\n}\n</script>\n\n<template>\n  <div>\n    <div mb-4 flex gap-4>\n      <c-input-text\n        v-model:value=\"rawStartAddress\"\n        label=\"Start address\"\n        placeholder=\"Start IPv4 address...\"\n        :validation=\"startIpValidation\"\n        clearable\n      />\n\n      <c-input-text\n        v-model:value=\"rawEndAddress\"\n        label=\"End address\"\n        placeholder=\"End IPv4 address...\"\n        :validation=\"endIpValidation\"\n        clearable\n      />\n    </div>\n\n    <n-table v-if=\"showResult\" data-test-id=\"result\">\n      <thead>\n        <tr>\n          <th scope=\"col\">\n&nbsp;\n          </th>\n          <th scope=\"col\">\n            old value\n          </th>\n          <th scope=\"col\">\n            new value\n          </th>\n        </tr>\n      </thead>\n      <tbody>\n        <ResultRow\n          v-for=\"{ label, getOldValue, getNewValue } in calculatedValues\"\n          :key=\"label\"\n          :label=\"label\"\n          :old-value=\"getOldValue(result)\"\n          :new-value=\"getNewValue(result)\"\n        />\n      </tbody>\n    </n-table>\n    <n-alert\n      v-else-if=\"startIpValidation.isValid && endIpValidation.isValid\"\n      title=\"Invalid combination of start and end IPv4 address\"\n      type=\"error\"\n    >\n      <div my-3 op-70>\n        The end IPv4 address is lower than the start IPv4 address. This is not valid and no result could be calculated.\n        In the most cases the solution to solve this problem is to change start and end address.\n      </div>\n\n      <c-button @click=\"onSwitchStartEndClicked\">\n        <n-icon mr-2 :component=\"Exchange\" depth=\"3\" size=\"22\" />\n        Switch start and end IPv4 address\n      </c-button>\n    </n-alert>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/ipv4-range-expander/result-row.vue",
    "content": "<script setup lang=\"ts\">\nimport _ from 'lodash';\nimport SpanCopyable from '@/components/SpanCopyable.vue';\n\nconst props = withDefaults(defineProps<{ label: string; oldValue?: string; newValue?: string }>(), {\n  label: '',\n  oldValue: '',\n  newValue: '',\n});\nconst { label, oldValue, newValue } = toRefs(props);\n\nconst testId = computed(() => _.kebabCase(label.value));\n</script>\n\n<template>\n  <tr>\n    <td font-bold>\n      {{ label }}\n    </td>\n    <td :data-test-id=\"`${testId}.old`\">\n      <SpanCopyable :value=\"oldValue\" class=\"monospace\" />\n    </td>\n    <td :data-test-id=\"`${testId}.new`\">\n      <SpanCopyable :value=\"newValue\" />\n    </td>\n  </tr>\n</template>\n"
  },
  {
    "path": "src/tools/ipv4-subnet-calculator/index.ts",
    "content": "import { RouterOutlined } from '@vicons/material';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.ipv4-subnet-calculator.title'),\n  path: '/ipv4-subnet-calculator',\n  description: translate('tools.ipv4-subnet-calculator.description'),\n  keywords: ['ipv4', 'subnet', 'calculator', 'mask', 'network', 'cidr', 'netmask', 'bitmask', 'broadcast', 'address'],\n  component: () => import('./ipv4-subnet-calculator.vue'),\n  icon: RouterOutlined,\n});\n"
  },
  {
    "path": "src/tools/ipv4-subnet-calculator/ipv4-subnet-calculator.models.ts",
    "content": "export { getIPClass };\n\nfunction getIPClass({ ip }: { ip: string }) {\n  const [firstOctet] = ip.split('.').map(Number);\n\n  if (firstOctet < 128) {\n    return 'A';\n  }\n  if (firstOctet > 127 && firstOctet < 192) {\n    return 'B';\n  }\n  if (firstOctet > 191 && firstOctet < 224) {\n    return 'C';\n  }\n  if (firstOctet > 223 && firstOctet < 240) {\n    return 'D';\n  }\n  if (firstOctet > 239 && firstOctet < 256) {\n    return 'E';\n  }\n\n  return undefined;\n}\n"
  },
  {
    "path": "src/tools/ipv4-subnet-calculator/ipv4-subnet-calculator.vue",
    "content": "<script setup lang=\"ts\">\nimport { Netmask } from 'netmask';\nimport { useStorage } from '@vueuse/core';\nimport { ArrowLeft, ArrowRight } from '@vicons/tabler';\nimport { getIPClass } from './ipv4-subnet-calculator.models';\nimport { withDefaultOnError } from '@/utils/defaults';\nimport { isNotThrowing } from '@/utils/boolean';\nimport SpanCopyable from '@/components/SpanCopyable.vue';\n\nconst ip = useStorage('ipv4-subnet-calculator:ip', '192.168.0.1/24');\n\nconst getNetworkInfo = (address: string) => new Netmask(address.trim());\n\nconst networkInfo = computed(() => withDefaultOnError(() => getNetworkInfo(ip.value), undefined));\n\nconst ipValidationRules = [\n  {\n    message: 'We cannot parse this address, check the format',\n    validator: (value: string) => isNotThrowing(() => getNetworkInfo(value.trim())),\n  },\n];\n\nconst sections: {\n  label: string\n  getValue: (blocks: Netmask) => string | undefined\n  undefinedFallback?: string\n}[] = [\n  {\n    label: 'Netmask',\n    getValue: block => block.toString(),\n  },\n  {\n    label: 'Network address',\n    getValue: ({ base }) => base,\n  },\n  {\n    label: 'Network mask',\n    getValue: ({ mask }) => mask,\n  },\n  {\n    label: 'Network mask in binary',\n    getValue: ({ bitmask }) => ('1'.repeat(bitmask) + '0'.repeat(32 - bitmask)).match(/.{8}/g)?.join('.') ?? '',\n  },\n  {\n    label: 'CIDR notation',\n    getValue: ({ bitmask }) => `/${bitmask}`,\n  },\n  {\n    label: 'Wildcard mask',\n    getValue: ({ hostmask }) => hostmask,\n  },\n  {\n    label: 'Network size',\n    getValue: ({ size }) => String(size),\n  },\n  {\n    label: 'First address',\n    getValue: ({ first }) => first,\n  },\n  {\n    label: 'Last address',\n    getValue: ({ last }) => last,\n  },\n  {\n    label: 'Broadcast address',\n    getValue: ({ broadcast }) => broadcast,\n    undefinedFallback: 'No broadcast address with this mask',\n  },\n  {\n    label: 'IP class',\n    getValue: ({ base: ip }) => getIPClass({ ip }),\n    undefinedFallback: 'Unknown class type',\n  },\n];\n\nfunction switchToBlock({ count = 1 }: { count?: number }) {\n  const next = networkInfo.value?.next(count);\n\n  if (next) {\n    ip.value = next.toString();\n  }\n}\n</script>\n\n<template>\n  <div>\n    <c-input-text\n      v-model:value=\"ip\"\n      label=\"An IPv4 address with or without mask\"\n      placeholder=\"The ipv4 address...\"\n      :validation-rules=\"ipValidationRules\"\n      mb-4\n    />\n\n    <div v-if=\"networkInfo\">\n      <n-table>\n        <tbody>\n          <tr v-for=\"{ getValue, label, undefinedFallback } in sections\" :key=\"label\">\n            <td font-bold>\n              {{ label }}\n            </td>\n            <td>\n              <SpanCopyable v-if=\"getValue(networkInfo)\" :value=\"getValue(networkInfo)\" />\n              <span v-else op-70>\n                {{ undefinedFallback }}\n              </span>\n            </td>\n          </tr>\n        </tbody>\n      </n-table>\n\n      <div mt-3 flex items-center justify-between>\n        <c-button @click=\"switchToBlock({ count: -1 })\">\n          <n-icon :component=\"ArrowLeft\" />\n          Previous block\n        </c-button>\n        <c-button @click=\"switchToBlock({ count: 1 })\">\n          Next block\n          <n-icon :component=\"ArrowRight\" />\n        </c-button>\n      </div>\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/ipv6-ula-generator/index.ts",
    "content": "import { BuildingFactory } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.ipv6-ula-generator.title'),\n  path: '/ipv6-ula-generator',\n  description: translate('tools.ipv6-ula-generator.description'),\n  keywords: ['ipv6', 'ula', 'generator', 'rfc4193', 'network', 'private'],\n  component: () => import('./ipv6-ula-generator.vue'),\n  icon: BuildingFactory,\n  createdAt: new Date('2023-04-09'),\n});\n"
  },
  {
    "path": "src/tools/ipv6-ula-generator/ipv6-ula-generator.vue",
    "content": "<script setup lang=\"ts\">\nimport { SHA1 } from 'crypto-js';\nimport InputCopyable from '@/components/InputCopyable.vue';\nimport { macAddressValidation } from '@/utils/macAddress';\n\nconst macAddress = ref('20:37:06:12:34:56');\nconst calculatedSections = computed(() => {\n  const timestamp = new Date().getTime();\n  const hex40bit = SHA1(timestamp + macAddress.value)\n    .toString()\n    .substring(30);\n\n  const ula = `fd${hex40bit.substring(0, 2)}:${hex40bit.substring(2, 6)}:${hex40bit.substring(6)}`;\n\n  return [\n    {\n      label: 'IPv6 ULA:',\n      value: `${ula}::/48`,\n    },\n    {\n      label: 'First routable block:',\n      value: `${ula}:0::/64`,\n    },\n    {\n      label: 'Last routable block:',\n      value: `${ula}:ffff::/64`,\n    },\n  ];\n});\n\nconst addressValidation = macAddressValidation(macAddress);\n</script>\n\n<template>\n  <div>\n    <n-alert title=\"Info\" type=\"info\">\n      This tool uses the first method suggested by IETF using the current timestamp plus the mac address, sha1 hashed,\n      and the lower 40 bits to generate your random ULA.\n    </n-alert>\n\n    <c-input-text\n      v-model:value=\"macAddress\"\n      placeholder=\"Type a MAC address\"\n      clearable\n      label=\"MAC address:\"\n      raw-text\n      my-8\n      :validation=\"addressValidation\"\n    />\n\n    <div v-if=\"addressValidation.isValid\">\n      <InputCopyable\n        v-for=\"{ label, value } in calculatedSections\"\n        :key=\"label\"\n        :value=\"value\"\n        :label=\"label\"\n        label-width=\"160px\"\n        label-align=\"right\"\n        label-position=\"left\"\n        readonly\n        mb-2\n      />\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/json-diff/diff-viewer/diff-viewer.models.tsx",
    "content": "import _ from 'lodash';\nimport type { ArrayDifference, Difference, ObjectDifference } from '../json-diff.types';\nimport { useCopy } from '@/composable/copy';\n\nexport function DiffRootViewer({ diff }: { diff: Difference }) {\n  return (\n    <div class={'diffs-viewer'}>\n      <ul>{DiffViewer({ diff, showKeys: false })}</ul>\n    </div>\n  );\n}\n\nfunction DiffViewer({ diff, showKeys = true }: { diff: Difference; showKeys?: boolean }) {\n  const { type, status } = diff;\n\n  if (status === 'updated') {\n    return ComparisonViewer({ diff, showKeys });\n  }\n\n  if (type === 'array') {\n    return ChildrenViewer({ diff, showKeys, showChildrenKeys: false, openTag: '[', closeTag: ']' });\n  }\n\n  if (type === 'object') {\n    return ChildrenViewer({ diff, showKeys, openTag: '{', closeTag: '}' });\n  }\n\n  return LineDiffViewer({ diff, showKeys });\n}\n\nfunction LineDiffViewer({ diff, showKeys }: { diff: Difference; showKeys?: boolean }) {\n  const { value, key, status, oldValue } = diff;\n  const valueToDisplay = status === 'removed' ? oldValue : value;\n\n  return (\n    <li>\n      <span class={[status, 'result']}>\n        {showKeys && (\n          <>\n            <span class={'key'}>{key}</span>\n            {': '}\n          </>\n        )}\n        {Value({ value: valueToDisplay, status })}\n      </span>\n      ,\n    </li>\n  );\n}\n\nfunction ComparisonViewer({ diff, showKeys }: { diff: Difference; showKeys?: boolean }) {\n  const { value, key, oldValue } = diff;\n\n  return (\n    <li class={'updated-line'}>\n      {showKeys && (\n        <>\n          <span class={'key'}>{key}</span>\n          {': '}\n        </>\n      )}\n      {Value({ value: oldValue, status: 'removed' })}\n      {Value({ value, status: 'added' })},\n    </li>\n  );\n}\n\nfunction ChildrenViewer({\n  diff,\n  openTag,\n  closeTag,\n  showKeys,\n  showChildrenKeys = true,\n}: {\n  diff: ArrayDifference | ObjectDifference\n  showKeys: boolean\n  showChildrenKeys?: boolean\n  openTag: string\n  closeTag: string\n}) {\n  const { children, key, status, type } = diff;\n\n  return (\n    <li>\n      <div class={[type, status]} style={{ display: 'inline-block' }}>\n        {showKeys && (\n          <>\n            <span class={'key'}>{key}</span>\n            {': '}\n          </>\n        )}\n\n        {openTag}\n        {children.length > 0 && <ul>{children.map(diff => DiffViewer({ diff, showKeys: showChildrenKeys }))}</ul>}\n        {`${closeTag},`}\n      </div>\n    </li>\n  );\n}\n\nfunction formatValue(value: unknown) {\n  if (_.isNull(value)) {\n    return 'null';\n  }\n\n  return JSON.stringify(value);\n}\n\nfunction Value({ value, status }: { value: unknown; status: string }) {\n  const formatedValue = formatValue(value);\n\n  const { copy } = useCopy({ source: formatedValue });\n\n  return (\n    <span class={['value', status]} onClick={() => copy()}>\n      {formatedValue}\n    </span>\n  );\n}\n"
  },
  {
    "path": "src/tools/json-diff/diff-viewer/diff-viewer.vue",
    "content": "<script lang=\"ts\" setup>\nimport _ from 'lodash';\nimport { diff } from '../json-diff.models';\nimport { DiffRootViewer } from './diff-viewer.models';\nimport { useAppTheme } from '@/ui/theme/themes';\n\nconst props = defineProps<{ leftJson: unknown; rightJson: unknown }>();\nconst onlyShowDifferences = ref(false);\nconst { leftJson, rightJson } = toRefs(props);\nconst appTheme = useAppTheme();\n\nconst result = computed(() =>\n  diff(leftJson.value, rightJson.value, { onlyShowDifferences: onlyShowDifferences.value }),\n);\n\nconst jsonAreTheSame = computed(() => _.isEqual(leftJson.value, rightJson.value));\nconst showResults = computed(() => !_.isUndefined(leftJson.value) && !_.isUndefined(rightJson.value));\n</script>\n\n<template>\n  <div v-if=\"showResults\">\n    <div flex justify-center>\n      <n-form-item label=\"Only show differences\" label-placement=\"left\">\n        <n-switch v-model:value=\"onlyShowDifferences\" />\n      </n-form-item>\n    </div>\n\n    <c-card data-test-id=\"diff-result\">\n      <div v-if=\"jsonAreTheSame\" text-center op-70>\n        The provided JSONs are the same\n      </div>\n      <DiffRootViewer v-else :diff=\"result\" />\n    </c-card>\n  </div>\n</template>\n\n<style lang=\"less\" scoped>\n::v-deep(.diffs-viewer) {\n  color: v-bind('appTheme.text.mutedColor');\n\n  & > ul {\n    padding-left: 0 !important;\n  }\n\n  ul {\n    list-style: none;\n    padding-left: 20px;\n    margin: 0;\n\n    li {\n      .updated-line {\n        padding: 3px 0;\n      }\n\n      .result,\n      .array,\n      .object,\n      .value {\n        &:not(:last-child) {\n          margin-right: 4px;\n        }\n\n        &.added {\n          padding: 3px 5px;\n          border-radius: 4px;\n          background-color: v-bind('appTheme.success.colorFaded');\n          color: v-bind('appTheme.success.color');\n          .key {\n            color: inherit;\n          }\n        }\n\n        &.removed {\n          padding: 3px 5px;\n          border-radius: 4px;\n          background-color: v-bind('appTheme.error.colorFaded');\n          color: v-bind('appTheme.error.color');\n\n          .key {\n            color: inherit;\n          }\n        }\n      }\n\n      .value {\n        cursor: pointer;\n        border: 1px solid transparent;\n        transition: border-color 0.2s ease-in-out;\n\n        &.added:hover {\n          border-color: v-bind('appTheme.success.color');\n        }\n\n        &.removed:hover {\n          border-color: v-bind('appTheme.error.color');\n        }\n      }\n\n      .added .added,\n      .removed .removed {\n        background-color: transparent;\n        color: inherit;\n      }\n\n      .key {\n        font-weight: 500;\n        color: v-bind('appTheme.text.baseColor');\n      }\n    }\n  }\n}\n</style>\n"
  },
  {
    "path": "src/tools/json-diff/index.ts",
    "content": "import { CompareArrowsRound } from '@vicons/material';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.json-diff.title'),\n  path: '/json-diff',\n  description: translate('tools.json-diff.description'),\n  keywords: ['json', 'diff', 'compare', 'difference', 'object', 'data'],\n  component: () => import('./json-diff.vue'),\n  icon: CompareArrowsRound,\n  createdAt: new Date('2023-04-20'),\n});\n"
  },
  {
    "path": "src/tools/json-diff/json-diff.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - JSON diff', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/json-diff');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('JSON diff - IT Tools');\n  });\n\n  test('Identical JSONs have a custom result message', async ({ page }) => {\n    await page.getByTestId('leftJson').fill('{\"foo\":\"bar\"}');\n    await page.getByTestId('rightJson').fill('{   \"foo\":  \"bar\" }  ');\n\n    const result = await page.getByTestId('diff-result').innerText();\n\n    expect(result).toContain('The provided JSONs are the same');\n  });\n\n  test('Different JSONs have differences listed', async ({ page }) => {\n    await page.getByTestId('leftJson').fill('{\"foo\":\"bar\"}');\n    await page.getByTestId('rightJson').fill('{\"foo\":\"buz\",\"baz\":\"qux\"}');\n\n    const result = await page.getByTestId('diff-result').innerText();\n\n    expect(result).toContain('{\\nfoo: \"bar\"\"buz\",\\nbaz: \"qux\",\\n},');\n  });\n\n  test('Different JSONs have only differences listed when \"Only show differences\" is checked', async ({ page }) => {\n    await page.getByTestId('leftJson').fill('{\"foo\":\"bar\"}');\n    await page.getByTestId('rightJson').fill('{\"foo\":\"bar\",\"baz\":\"qux\"}');\n    await page.getByRole('switch').click();\n\n    const result = await page.getByTestId('diff-result').innerText();\n\n    expect(result).toContain('{\\nbaz: \"qux\",\\n},');\n  });\n});\n"
  },
  {
    "path": "src/tools/json-diff/json-diff.models.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { diff } from './json-diff.models';\n\ndescribe('json-diff models', () => {\n  describe('diff', () => {\n    it('list object differences', () => {\n      const obj = { a: 1, b: 2 };\n      const newObj = { a: 1, b: 2, c: 3 };\n      const result = diff(obj, newObj);\n\n      expect(result).toEqual({\n        key: '',\n        type: 'object',\n        children: [\n          {\n            key: 'a',\n            type: 'value',\n            value: 1,\n            oldValue: 1,\n            status: 'unchanged',\n          },\n          {\n            key: 'b',\n            type: 'value',\n            value: 2,\n            oldValue: 2,\n            status: 'unchanged',\n          },\n          {\n            key: 'c',\n            type: 'value',\n            value: 3,\n            oldValue: undefined,\n            status: 'added',\n          },\n        ],\n        oldValue: { a: 1, b: 2 },\n        value: { a: 1, b: 2, c: 3 },\n        status: 'children-updated',\n      });\n    });\n\n    it('list array differences', () => {\n      const obj = [1, 2];\n      const newObj = [1, 2, 3];\n      const result = diff(obj, newObj);\n\n      expect(result).toEqual({\n        key: '',\n        type: 'array',\n        children: [\n          {\n            key: 0,\n            type: 'value',\n            value: 1,\n            oldValue: 1,\n            status: 'unchanged',\n          },\n          {\n            key: 1,\n            type: 'value',\n            value: 2,\n            oldValue: 2,\n            status: 'unchanged',\n          },\n          {\n            key: 2,\n            type: 'value',\n            value: 3,\n            oldValue: undefined,\n            status: 'added',\n          },\n        ],\n        oldValue: [1, 2],\n        value: [1, 2, 3],\n        status: 'children-updated',\n      });\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/json-diff/json-diff.models.ts",
    "content": "import _ from 'lodash';\nimport type { Difference, DifferenceStatus } from './json-diff.types';\n\nexport { diff };\n\nfunction diff(\n  obj: unknown,\n  newObj: unknown,\n  { onlyShowDifferences = false }: { onlyShowDifferences?: boolean } = {},\n): Difference {\n  if (_.isArray(obj) && _.isArray(newObj)) {\n    return {\n      key: '',\n      type: 'array',\n      children: diffArrays(obj, newObj, { onlyShowDifferences }),\n      oldValue: obj,\n      value: newObj,\n      status: getStatus(obj, newObj),\n    };\n  }\n\n  if (_.isObject(obj) && _.isObject(newObj)) {\n    return {\n      key: '',\n      type: 'object',\n      children: diffObjects(obj as Record<string, unknown>, newObj as Record<string, unknown>, { onlyShowDifferences }),\n      oldValue: obj,\n      value: newObj,\n      status: getStatus(obj, newObj),\n    };\n  }\n\n  return {\n    key: '',\n    type: 'value',\n    oldValue: obj,\n    value: newObj,\n    status: getStatus(obj, newObj),\n  };\n}\n\nfunction diffObjects(\n  obj: Record<string, unknown>,\n  newObj: Record<string, unknown>,\n  { onlyShowDifferences = false }: { onlyShowDifferences?: boolean } = {},\n): Difference[] {\n  const keys = Object.keys({ ...obj, ...newObj });\n  return keys\n    .map(key => createDifference(obj?.[key], newObj?.[key], key, { onlyShowDifferences }))\n    .filter(diff => !onlyShowDifferences || diff.status !== 'unchanged');\n}\n\nfunction createDifference(\n  value: unknown,\n  newValue: unknown,\n  key: string | number,\n  { onlyShowDifferences = false }: { onlyShowDifferences?: boolean } = {},\n): Difference {\n  const type = getType(value);\n\n  if (type === 'object') {\n    return {\n      key,\n      type,\n      children: diffObjects(value as Record<string, unknown>, newValue as Record<string, unknown>, {\n        onlyShowDifferences,\n      }),\n      oldValue: value,\n      value: newValue,\n      status: getStatus(value, newValue),\n    };\n  }\n\n  if (type === 'array') {\n    return {\n      key,\n      type,\n      children: diffArrays(value as unknown[], newValue as unknown[], { onlyShowDifferences }),\n      value: newValue,\n      oldValue: value,\n      status: getStatus(value, newValue),\n    };\n  }\n\n  return {\n    key,\n    type,\n    value: newValue,\n    oldValue: value,\n    status: getStatus(value, newValue),\n  };\n}\n\nfunction diffArrays(\n  arr: unknown[],\n  newArr: unknown[],\n  { onlyShowDifferences = false }: { onlyShowDifferences?: boolean } = {},\n): Difference[] {\n  const maxLength = Math.max(0, arr?.length, newArr?.length);\n  return Array.from({ length: maxLength }, (_, i) =>\n    createDifference(arr?.[i], newArr?.[i], i, { onlyShowDifferences }),\n  ).filter(diff => !onlyShowDifferences || diff.status !== 'unchanged');\n}\n\nfunction getType(value: unknown): 'object' | 'array' | 'value' {\n  if (value === null) {\n    return 'value';\n  }\n  if (Array.isArray(value)) {\n    return 'array';\n  }\n  if (typeof value === 'object') {\n    return 'object';\n  }\n  return 'value';\n}\n\nfunction getStatus(value: unknown, newValue: unknown): DifferenceStatus {\n  if (value === undefined) {\n    return 'added';\n  }\n\n  if (newValue === undefined) {\n    return 'removed';\n  }\n\n  const bothAreObjects = getType(value) === 'object' && getType(newValue) === 'object';\n  const bothAreArrays = getType(value) === 'array' && getType(newValue) === 'array';\n  const bothAreDeepEqual = _.isEqual(value, newValue);\n\n  if (bothAreDeepEqual) {\n    return 'unchanged';\n  }\n\n  if (bothAreObjects || bothAreArrays) {\n    return 'children-updated';\n  }\n\n  return 'updated';\n}\n"
  },
  {
    "path": "src/tools/json-diff/json-diff.types.ts",
    "content": "export type DifferenceStatus = 'added' | 'removed' | 'updated' | 'unchanged' | 'children-updated';\n\nexport interface ObjectDifference {\n  key: string | number\n  type: 'object'\n  children: Difference[]\n  status: DifferenceStatus\n  oldValue: unknown\n  value: unknown\n}\n\nexport interface ValueDifference {\n  key: string | number\n  type: 'value'\n  value: unknown\n  oldValue: unknown\n  status: DifferenceStatus\n}\n\nexport interface ArrayDifference {\n  key: number | string\n  type: 'array'\n  children: Difference[]\n  status: DifferenceStatus\n  oldValue: unknown\n  value: unknown\n}\n\nexport type Difference = ObjectDifference | ValueDifference | ArrayDifference;\n"
  },
  {
    "path": "src/tools/json-diff/json-diff.vue",
    "content": "<script setup lang=\"ts\">\nimport JSON5 from 'json5';\n\nimport DiffsViewer from './diff-viewer/diff-viewer.vue';\nimport { withDefaultOnError } from '@/utils/defaults';\nimport { isNotThrowing } from '@/utils/boolean';\n\nconst rawLeftJson = ref('');\nconst rawRightJson = ref('');\n\nconst leftJson = computed(() => withDefaultOnError(() => JSON5.parse(rawLeftJson.value), undefined));\nconst rightJson = computed(() => withDefaultOnError(() => JSON5.parse(rawRightJson.value), undefined));\n\nconst jsonValidationRules = [\n  {\n    validator: (value: string) => value === '' || isNotThrowing(() => JSON5.parse(value)),\n    message: 'Invalid JSON format',\n  },\n];\n</script>\n\n<template>\n  <c-input-text\n    v-model:value=\"rawLeftJson\"\n    :validation-rules=\"jsonValidationRules\"\n    label=\"Your first JSON\"\n    placeholder=\"Paste your first JSON here...\"\n    rows=\"20\"\n    multiline\n    test-id=\"leftJson\"\n    raw-text\n    monospace\n  />\n\n  <c-input-text\n    v-model:value=\"rawRightJson\"\n    :validation-rules=\"jsonValidationRules\"\n    label=\"Your JSON to compare\"\n    placeholder=\"Paste your JSON to compare here...\"\n    rows=\"20\"\n    multiline\n    test-id=\"rightJson\"\n    raw-text\n    monospace\n  />\n\n  <DiffsViewer :left-json=\"leftJson\" :right-json=\"rightJson\" />\n</template>\n"
  },
  {
    "path": "src/tools/json-minify/index.ts",
    "content": "import { Braces } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.json-minify.title'),\n  path: '/json-minify',\n  description: translate('tools.json-minify.description'),\n  keywords: ['json', 'minify', 'format'],\n  component: () => import('./json-minify.vue'),\n  icon: Braces,\n});\n"
  },
  {
    "path": "src/tools/json-minify/json-minify.vue",
    "content": "<script setup lang=\"ts\">\nimport JSON5 from 'json5';\nimport type { UseValidationRule } from '@/composable/validation';\nimport { withDefaultOnError } from '@/utils/defaults';\n\nconst defaultValue = '{\\n\\t\"hello\": [\\n\\t\\t\"world\"\\n\\t]\\n}';\nconst transformer = (value: string) => withDefaultOnError(() => JSON.stringify(JSON5.parse(value), null, 0), '');\n\nconst rules: UseValidationRule<string>[] = [\n  {\n    validator: (v: string) => v === '' || JSON5.parse(v),\n    message: 'Provided JSON is not valid.',\n  },\n];\n</script>\n\n<template>\n  <format-transformer\n    input-label=\"Your raw JSON\"\n    :input-default=\"defaultValue\"\n    input-placeholder=\"Paste your raw JSON here...\"\n    output-label=\"Minified version of your JSON\"\n    output-language=\"json\"\n    :input-validation-rules=\"rules\"\n    :transformer=\"transformer\"\n  />\n</template>\n"
  },
  {
    "path": "src/tools/json-to-csv/index.ts",
    "content": "import { List } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.json-to-csv.title'),\n  path: '/json-to-csv',\n  description: translate('tools.json-to-csv.description'),\n  keywords: ['json', 'to', 'csv', 'convert'],\n  component: () => import('./json-to-csv.vue'),\n  icon: List,\n  createdAt: new Date('2023-06-18'),\n});\n"
  },
  {
    "path": "src/tools/json-to-csv/json-to-csv.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - JSON to CSV', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/json-to-csv');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('JSON to CSV - IT Tools');\n  });\n\n  test('Provided json is converted to csv', async ({ page }) => {\n    await page.getByTestId('input').fill(`\n[\n  {'Age': 18.0, 'Salary': 20000.0, 'Gender': 'Male', 'Country': 'Germany', 'Purchased': 'N'},\n  {'Age': 19.0, 'Salary': 22000.0, 'Gender': 'Female', 'Country': 'France', 'Purchased': 'N'},\n]\n    `);\n\n    const generatedJson = await page.getByTestId('area-content').innerText();\n\n    expect(generatedJson.trim()).toEqual(`\nAge,Salary,Gender,Country,Purchased\n18,20000,Male,Germany,N\n19,22000,Female,France,N\n   `.trim(),\n    );\n  });\n});\n"
  },
  {
    "path": "src/tools/json-to-csv/json-to-csv.service.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { convertArrayToCsv, getHeaders } from './json-to-csv.service';\n\ndescribe('json-to-csv service', () => {\n  describe('getHeaders', () => {\n    it('extracts all the keys from the array of objects', () => {\n      expect(getHeaders({ array: [{ a: 1, b: 2 }, { a: 3, c: 4 }] })).toEqual(['a', 'b', 'c']);\n    });\n\n    it('returns an empty array if the array is empty', () => {\n      expect(getHeaders({ array: [] })).toEqual([]);\n    });\n  });\n\n  describe('convertArrayToCsv', () => {\n    it('converts an array of objects to a CSV string', () => {\n      const array = [\n        { a: 1, b: 2 },\n        { a: 3, b: 4 },\n\n      ];\n\n      expect(convertArrayToCsv({ array })).toMatchInlineSnapshot(`\n        \"a,b\n        1,2\n        3,4\"\n      `);\n    });\n\n    it('converts an array of objects with different keys to a CSV string', () => {\n      const array = [\n        { a: 1, b: 2 },\n        { a: 3, c: 4 },\n      ];\n\n      expect(convertArrayToCsv({ array })).toMatchInlineSnapshot(`\n        \"a,b,c\n        1,2,\n        3,,4\"\n      `);\n    });\n\n    it('when a value is null, it is converted to the string \"null\"', () => {\n      const array = [\n        { a: null, b: 2 },\n      ];\n\n      expect(convertArrayToCsv({ array })).toMatchInlineSnapshot(`\n        \"a,b\n        null,2\"\n      `);\n    });\n\n    it('when a value is undefined, it is converted to an empty string', () => {\n      const array = [\n        { a: undefined, b: 2 },\n        { b: 3 },\n      ];\n\n      expect(convertArrayToCsv({ array })).toMatchInlineSnapshot(`\n        \"a,b\n        ,2\n        ,3\"\n      `);\n    });\n\n    it('when a value contains a comma, it is wrapped in double quotes', () => {\n      const array = [\n        { a: 'hello, world', b: 2 },\n      ];\n\n      expect(convertArrayToCsv({ array })).toMatchInlineSnapshot(`\n        \"a,b\n        \\\\\"hello, world\\\\\",2\"\n      `);\n    });\n\n    it('when a value contains a double quote, it is escaped with another double quote', () => {\n      const array = [\n        { a: 'hello \"world\"', b: 2 },\n      ];\n\n      expect(convertArrayToCsv({ array })).toMatchInlineSnapshot(`\n        \"a,b\n        hello \\\\\\\\\\\\\"world\\\\\\\\\\\\\",2\"\n      `);\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/json-to-csv/json-to-csv.service.ts",
    "content": "export { getHeaders, convertArrayToCsv };\n\nfunction getHeaders({ array }: { array: Record<string, unknown>[] }): string[] {\n  const headers = new Set<string>();\n\n  array.forEach(item => Object.keys(item).forEach(key => headers.add(key)));\n\n  return Array.from(headers);\n}\n\nfunction serializeValue(value: unknown): string {\n  if (value === null) {\n    return 'null';\n  }\n\n  if (value === undefined) {\n    return '';\n  }\n\n  const valueAsString = String(value).replace(/\\n/g, '\\\\n').replace(/\\r/g, '\\\\r').replace(/\"/g, '\\\\\"');\n\n  if (valueAsString.includes(',')) {\n    return `\"${valueAsString}\"`;\n  }\n\n  return valueAsString;\n}\n\nfunction convertArrayToCsv({ array }: { array: Record<string, unknown>[] }): string {\n  const headers = getHeaders({ array });\n\n  const rows = array.map(item => headers.map(header => serializeValue(item[header])));\n\n  return [headers.join(','), ...rows].join('\\n');\n}\n"
  },
  {
    "path": "src/tools/json-to-csv/json-to-csv.vue",
    "content": "<script setup lang=\"ts\">\nimport JSON5 from 'json5';\nimport { convertArrayToCsv } from './json-to-csv.service';\nimport type { UseValidationRule } from '@/composable/validation';\nimport { withDefaultOnError } from '@/utils/defaults';\n\nfunction transformer(value: string) {\n  return withDefaultOnError(() => {\n    if (value === '') {\n      return '';\n    }\n    return convertArrayToCsv({ array: JSON5.parse(value) });\n  }, '');\n}\n\nconst rules: UseValidationRule<string>[] = [\n  {\n    validator: (v: string) => v === '' || JSON5.parse(v),\n    message: 'Provided JSON is not valid.',\n  },\n];\n</script>\n\n<template>\n  <format-transformer\n    input-label=\"Your raw JSON\"\n    input-placeholder=\"Paste your raw JSON here...\"\n    output-label=\"CSV version of your JSON\"\n    :input-validation-rules=\"rules\"\n    :transformer=\"transformer\"\n  />\n</template>\n"
  },
  {
    "path": "src/tools/json-to-toml/index.ts",
    "content": "import { Braces } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.json-to-toml.title'),\n  path: '/json-to-toml',\n  description: translate('tools.json-to-toml.description'),\n  keywords: ['json', 'parse', 'toml', 'convert', 'transform'],\n  component: () => import('./json-to-toml.vue'),\n  icon: Braces,\n  createdAt: new Date('2023-06-23'),\n});\n"
  },
  {
    "path": "src/tools/json-to-toml/json-to-toml.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - JSON to TOML', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/json-to-toml');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('JSON to TOML - IT Tools');\n  });\n\n  test('JSON is parsed and outputs clean TOML', async ({ page }) => {\n    await page.getByTestId('input').fill(`\n{\n   \"foo\": \"bar\",\n   \"list\": {\n      \"name\": \"item\",\n      \"another\": {\n         \"key\": \"value\"\n      }\n   }\n}\n    `.trim());\n\n    const generatedJson = await page.getByTestId('area-content').innerText();\n\n    expect(generatedJson.trim()).toEqual(\n      `\nfoo = \"bar\"\n\n[list]\nname = \"item\"\n\n  [list.another]\n  key = \"value\"\n   `.trim(),\n    );\n  });\n});\n"
  },
  {
    "path": "src/tools/json-to-toml/json-to-toml.vue",
    "content": "<script setup lang=\"ts\">\nimport { stringify as stringifyToml } from 'iarna-toml-esm';\nimport JSON5 from 'json5';\nimport { withDefaultOnError } from '../../utils/defaults';\nimport type { UseValidationRule } from '@/composable/validation';\n\nconst convertJsonToToml = (value: string) => [stringifyToml(JSON5.parse(value))].flat().join('\\n').trim();\n\nconst transformer = (value: string) => value.trim() === '' ? '' : withDefaultOnError(() => convertJsonToToml(value), '');\n\nconst rules: UseValidationRule<string>[] = [\n  {\n    validator: (v: string) => v === '' || JSON5.parse(v),\n    message: 'Provided JSON is not valid.',\n  },\n];\n</script>\n\n<template>\n  <format-transformer\n    input-label=\"Your JSON\"\n    input-placeholder=\"Paste your JSON here...\"\n    output-label=\"TOML from your JSON\"\n    output-language=\"toml\"\n    :input-validation-rules=\"rules\"\n    :transformer=\"transformer\"\n  />\n</template>\n"
  },
  {
    "path": "src/tools/json-to-xml/index.ts",
    "content": "import { Braces } from '@vicons/tabler';\nimport { defineTool } from '../tool';\n\nexport const tool = defineTool({\n  name: 'JSON to XML',\n  path: '/json-to-xml',\n  description: 'Convert JSON to XML',\n  keywords: ['json', 'xml'],\n  component: () => import('./json-to-xml.vue'),\n  icon: Braces,\n  createdAt: new Date('2024-08-09'),\n});\n"
  },
  {
    "path": "src/tools/json-to-xml/json-to-xml.vue",
    "content": "<script setup lang=\"ts\">\nimport convert from 'xml-js';\nimport JSON5 from 'json5';\nimport { withDefaultOnError } from '@/utils/defaults';\nimport type { UseValidationRule } from '@/composable/validation';\n\nconst defaultValue = '{\"a\":{\"_attributes\":{\"x\":\"1.234\",\"y\":\"It\\'s\"}}}';\nfunction transformer(value: string) {\n  return withDefaultOnError(() => {\n    return convert.js2xml(JSON5.parse(value), { compact: true });\n  }, '');\n}\n\nconst rules: UseValidationRule<string>[] = [\n  {\n    validator: (v: string) => v === '' || JSON5.parse(v),\n    message: 'Provided JSON is not valid.',\n  },\n];\n</script>\n\n<template>\n  <format-transformer\n    input-label=\"Your JSON content\"\n    :input-default=\"defaultValue\"\n    input-placeholder=\"Paste your JSON content here...\"\n    output-label=\"Converted XML\"\n    output-language=\"xml\"\n    :transformer=\"transformer\"\n    :input-validation-rules=\"rules\"\n  />\n</template>\n"
  },
  {
    "path": "src/tools/json-to-yaml-converter/index.ts",
    "content": "import { Braces } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.json-to-yaml-converter.title'),\n  path: '/json-to-yaml-converter',\n  description: translate('tools.json-to-yaml-converter.description'),\n  keywords: ['yaml', 'to', 'json'],\n  component: () => import('./json-to-yaml.vue'),\n  icon: Braces,\n  createdAt: new Date('2023-04-10'),\n});\n"
  },
  {
    "path": "src/tools/json-to-yaml-converter/json-to-yaml.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - json to yaml', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/json-to-yaml-converter');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('JSON to YAML converter - IT Tools');\n  });\n\n  test('json is parsed and output clean yaml', async ({ page }) => {\n    await page.getByTestId('input').fill('{\"foo\":\"bar\",\"list\":[\"item\",{\"key\":\"value\"}]}');\n\n    const generatedJson = await page.getByTestId('area-content').innerText();\n\n    expect(generatedJson.trim()).toEqual('foo: bar\\nlist:\\n  - item\\n  - key: value'.trim());\n  });\n});\n"
  },
  {
    "path": "src/tools/json-to-yaml-converter/json-to-yaml.vue",
    "content": "<script setup lang=\"ts\">\nimport { stringify } from 'yaml';\nimport JSON5 from 'json5';\nimport type { UseValidationRule } from '@/composable/validation';\nimport { isNotThrowing } from '@/utils/boolean';\nimport { withDefaultOnError } from '@/utils/defaults';\n\nconst transformer = (value: string) => withDefaultOnError(() => stringify(JSON5.parse(value)), '');\n\nconst rules: UseValidationRule<string>[] = [\n  {\n    validator: (value: string) => value === '' || isNotThrowing(() => stringify(JSON5.parse(value))),\n    message: 'Provided JSON is not valid.',\n  },\n];\n</script>\n\n<template>\n  <format-transformer\n    input-label=\"Your JSON\"\n    input-placeholder=\"Paste your JSON here...\"\n    output-label=\"YAML from your JSON\"\n    output-language=\"yaml\"\n    :input-validation-rules=\"rules\"\n    :transformer=\"transformer\"\n  />\n</template>\n"
  },
  {
    "path": "src/tools/json-viewer/index.ts",
    "content": "import { Braces } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.json-prettify.title'),\n  path: '/json-prettify',\n  description: translate('tools.json-prettify.description'),\n  keywords: ['json', 'viewer', 'prettify', 'format'],\n  component: () => import('./json-viewer.vue'),\n  icon: Braces,\n  redirectFrom: ['/json-viewer'],\n});\n"
  },
  {
    "path": "src/tools/json-viewer/json-viewer.vue",
    "content": "<script setup lang=\"ts\">\nimport JSON5 from 'json5';\nimport { useStorage } from '@vueuse/core';\nimport { formatJson } from './json.models';\nimport { withDefaultOnError } from '@/utils/defaults';\nimport { useValidation } from '@/composable/validation';\nimport TextareaCopyable from '@/components/TextareaCopyable.vue';\n\nconst inputElement = ref<HTMLElement>();\n\nconst rawJson = useStorage('json-prettify:raw-json', '{\"hello\": \"world\", \"foo\": \"bar\"}');\nconst indentSize = useStorage('json-prettify:indent-size', 3);\nconst sortKeys = useStorage('json-prettify:sort-keys', true);\nconst cleanJson = computed(() => withDefaultOnError(() => formatJson({ rawJson, indentSize, sortKeys }), ''));\n\nconst rawJsonValidation = useValidation({\n  source: rawJson,\n  rules: [\n    {\n      validator: v => v === '' || JSON5.parse(v),\n      message: 'Provided JSON is not valid.',\n    },\n  ],\n});\n</script>\n\n<template>\n  <div style=\"flex: 0 0 100%\">\n    <div style=\"margin: 0 auto; max-width: 600px\" flex justify-center gap-3>\n      <n-form-item label=\"Sort keys :\" label-placement=\"left\" label-width=\"100\">\n        <n-switch v-model:value=\"sortKeys\" />\n      </n-form-item>\n      <n-form-item label=\"Indent size :\" label-placement=\"left\" label-width=\"100\" :show-feedback=\"false\">\n        <n-input-number v-model:value=\"indentSize\" min=\"0\" max=\"10\" style=\"width: 100px\" />\n      </n-form-item>\n    </div>\n  </div>\n\n  <n-form-item\n    label=\"Your raw JSON\"\n    :feedback=\"rawJsonValidation.message\"\n    :validation-status=\"rawJsonValidation.status\"\n  >\n    <c-input-text\n      ref=\"inputElement\"\n      v-model:value=\"rawJson\"\n      placeholder=\"Paste your raw JSON here...\"\n      rows=\"20\"\n      multiline\n      autocomplete=\"off\"\n      autocorrect=\"off\"\n      autocapitalize=\"off\"\n      spellcheck=\"false\"\n      monospace\n    />\n  </n-form-item>\n  <n-form-item label=\"Prettified version of your JSON\">\n    <TextareaCopyable :value=\"cleanJson\" language=\"json\" :follow-height-of=\"inputElement\" />\n  </n-form-item>\n</template>\n\n<style lang=\"less\" scoped>\n.result-card {\n  position: relative;\n  .copy-button {\n    position: absolute;\n    top: 10px;\n    right: 10px;\n  }\n}\n</style>\n"
  },
  {
    "path": "src/tools/json-viewer/json.models.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { sortObjectKeys } from './json.models';\n\ndescribe('json models', () => {\n  describe('sortObjectKeys', () => {\n    it('the object keys are recursively sorted alphabetically', () => {\n      expect(JSON.stringify(sortObjectKeys({ b: 2, a: 1 }))).to.deep.equal(JSON.stringify({ a: 1, b: 2 }));\n      // To unsure that this way of testing is working\n      expect(JSON.stringify(sortObjectKeys({ b: 2, a: 1 }))).to.not.deep.equal(JSON.stringify({ b: 2, a: 1 }));\n\n      expect(JSON.stringify(sortObjectKeys({ b: 2, a: 1, d: { j: 7, a: [{ z: 9, y: 8 }] }, c: 3 }))).to.deep.equal(\n        JSON.stringify({ a: 1, b: 2, c: 3, d: { a: [{ y: 8, z: 9 }], j: 7 } }),\n      );\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/json-viewer/json.models.ts",
    "content": "import { type MaybeRef, get } from '@vueuse/core';\nimport JSON5 from 'json5';\n\nexport { sortObjectKeys, formatJson };\n\nfunction sortObjectKeys<T>(obj: T): T {\n  if (typeof obj !== 'object' || obj === null) {\n    return obj;\n  }\n\n  if (Array.isArray(obj)) {\n    return obj.map(sortObjectKeys) as unknown as T;\n  }\n\n  return Object.keys(obj)\n    .sort((a, b) => a.localeCompare(b))\n    .reduce((sortedObj, key) => {\n      sortedObj[key] = sortObjectKeys((obj as Record<string, unknown>)[key]);\n      return sortedObj;\n    }, {} as Record<string, unknown>) as T;\n}\n\nfunction formatJson({\n  rawJson,\n  sortKeys = true,\n  indentSize = 3,\n}: {\n  rawJson: MaybeRef<string>\n  sortKeys?: MaybeRef<boolean>\n  indentSize?: MaybeRef<number>\n}) {\n  const parsedObject = JSON5.parse(get(rawJson));\n\n  return JSON.stringify(get(sortKeys) ? sortObjectKeys(parsedObject) : parsedObject, null, get(indentSize));\n}\n"
  },
  {
    "path": "src/tools/jwt-parser/index.ts",
    "content": "import { Key } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.jwt-parser.title'),\n  path: '/jwt-parser',\n  description: translate('tools.jwt-parser.description'),\n  keywords: [\n    'jwt',\n    'parser',\n    'decode',\n    'typ',\n    'alg',\n    'iss',\n    'sub',\n    'aud',\n    'exp',\n    'nbf',\n    'iat',\n    'jti',\n    'json',\n    'web',\n    'token',\n  ],\n  component: () => import('./jwt-parser.vue'),\n  icon: Key,\n});\n"
  },
  {
    "path": "src/tools/jwt-parser/jwt-parser.constants.ts",
    "content": "// From https://datatracker.ietf.org/doc/html/rfc7518#section-3.1\nexport const ALGORITHM_DESCRIPTIONS: { [k: string]: string } = {\n  HS256: 'HMAC using SHA-256',\n  HS384: 'HMAC using SHA-384',\n  HS512: 'HMAC using SHA-512',\n  RS256: 'RSASSA-PKCS1-v1_5 using SHA-256',\n  RS384: 'RSASSA-PKCS1-v1_5 using SHA-384',\n  RS512: 'RSASSA-PKCS1-v1_5 using SHA-512',\n  ES256: 'ECDSA using P-256 and SHA-256',\n  ES384: 'ECDSA using P-384 and SHA-384',\n  ES512: 'ECDSA using P-521 and SHA-512',\n  PS256: 'RSASSA-PSS using SHA-256 and MGF1 with SHA-256',\n  PS384: 'RSASSA-PSS using SHA-384 and MGF1 with SHA-384',\n  PS512: 'RSASSA-PSS using SHA-512 and MGF1 with SHA-512',\n  none: 'No digital signature or MAC performed',\n};\n\n// List extracted from IANA: https://www.iana.org/assignments/jwt/jwt.xhtml\nexport const CLAIM_DESCRIPTIONS: Record<string, string> = {\n  typ: 'Type',\n  alg: 'Algorithm',\n  iss: 'Issuer',\n  sub: 'Subject',\n  aud: 'Audience',\n  exp: 'Expiration Time',\n  nbf: 'Not Before',\n  iat: 'Issued At',\n  jti: 'JWT ID',\n  name: 'Full name',\n  given_name: 'Given name(s) or first name(s)',\n  family_name: 'Surname(s) or last name(s)',\n  middle_name: 'Middle name(s)',\n  nickname: 'Casual name',\n  preferred_username: 'Shorthand name by which the End-User wishes to be referred to',\n  profile: 'Profile page URL',\n  picture: 'Profile picture URL',\n  website: 'Web page or blog URL',\n  email: 'Preferred e-mail address',\n  email_verified: 'True if the e-mail address has been verified; otherwise false',\n  gender: 'Gender',\n  birthdate: 'Birthday',\n  zoneinfo: 'Time zone',\n  locale: 'Locale',\n  phone_number: 'Preferred telephone number',\n  phone_number_verified: 'True if the phone number has been verified; otherwise false',\n  address: 'Preferred postal address',\n  updated_at: 'Time the information was last updated',\n  azp: 'Authorized party - the party to which the ID Token was issued',\n  nonce: 'Value used to associate a Client session with an ID Token',\n  auth_time: 'Time when the authentication occurred',\n  at_hash: 'Access Token hash value',\n  c_hash: 'Code hash value',\n  acr: 'Authentication Context Class Reference',\n  amr: 'Authentication Methods References',\n  sub_jwk: 'Public key used to check the signature of an ID Token',\n  cnf: 'Confirmation',\n  sip_from_tag: 'SIP From tag header field parameter value',\n  sip_date: 'SIP Date header field value',\n  sip_callid: 'SIP Call-Id header field value',\n  sip_cseq_num: 'SIP CSeq numeric header field parameter value',\n  sip_via_branch: 'SIP Via branch header field parameter value',\n  orig: 'Originating Identity String',\n  dest: 'Destination Identity String',\n  mky: 'Media Key Fingerprint String',\n  events: 'Security Events',\n  toe: 'Time of Event',\n  txn: 'Transaction Identifier',\n  rph: 'Resource Priority Header Authorization',\n  sid: 'Session ID',\n  vot: 'Vector of Trust value',\n  vtm: 'Vector of Trust trustmark URL',\n  attest: 'Attestation level as defined in SHAKEN framework',\n  origid: 'Originating Identifier as defined in SHAKEN framework',\n  act: 'Actor',\n  scope: 'Scope Values',\n  client_id: 'Client Identifier',\n  may_act: 'Authorized Actor - the party that is authorized to become the actor',\n  jcard: 'jCard data',\n  at_use_nbr: 'Number of API requests for which the access token can be used',\n  div: 'Diverted Target of a Call',\n  opt: 'Original PASSporT (in Full Form)',\n  vc: 'Verifiable Credential as specified in the W3C Recommendation',\n  vp: 'Verifiable Presentation as specified in the W3C Recommendation',\n  sph: 'SIP Priority header field',\n  ace_profile: 'ACE profile a token is supposed to be used with.',\n  cnonce: 'Client nonce',\n  exi: 'Expires in',\n  roles: 'Roles',\n  groups: 'Groups',\n  entitlements: 'Entitlements',\n  token_introspection: 'Token introspection response',\n};\n"
  },
  {
    "path": "src/tools/jwt-parser/jwt-parser.service.ts",
    "content": "import jwtDecode, { type JwtHeader, type JwtPayload } from 'jwt-decode';\nimport _ from 'lodash';\nimport { ALGORITHM_DESCRIPTIONS, CLAIM_DESCRIPTIONS } from './jwt-parser.constants';\n\nexport { decodeJwt };\n\nfunction decodeJwt({ jwt }: { jwt: string }) {\n  const rawHeader = jwtDecode<JwtHeader>(jwt, { header: true });\n  const rawPayload = jwtDecode<JwtPayload>(jwt);\n\n  const header = _.map(rawHeader, (value, claim) => parseClaims({ claim, value }));\n  const payload = _.map(rawPayload, (value, claim) => parseClaims({ claim, value }));\n\n  return {\n    header,\n    payload,\n  };\n}\n\nfunction parseClaims({ claim, value }: { claim: string; value: unknown }) {\n  const claimDescription = CLAIM_DESCRIPTIONS[claim];\n  const formattedValue = _.isPlainObject(value) || _.isArray(value) ? JSON.stringify(value, null, 3) : _.toString(value);\n  const friendlyValue = getFriendlyValue({ claim, value });\n\n  return {\n    value: formattedValue,\n    friendlyValue,\n    claim,\n    claimDescription,\n  };\n}\n\nfunction getFriendlyValue({ claim, value }: { claim: string; value: unknown }) {\n  if (['exp', 'nbf', 'iat'].includes(claim)) {\n    return dateFormatter(value);\n  }\n\n  if (claim === 'alg' && _.isString(value)) {\n    return ALGORITHM_DESCRIPTIONS[value];\n  }\n\n  return undefined;\n}\n\nfunction dateFormatter(value: unknown) {\n  if (_.isNil(value)) {\n    return undefined;\n  }\n\n  const date = new Date(Number(value) * 1000);\n  return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;\n}\n"
  },
  {
    "path": "src/tools/jwt-parser/jwt-parser.vue",
    "content": "<script setup lang=\"ts\">\nimport { decodeJwt } from './jwt-parser.service';\nimport { useValidation } from '@/composable/validation';\nimport { isNotThrowing } from '@/utils/boolean';\nimport { withDefaultOnError } from '@/utils/defaults';\n\nconst rawJwt = ref(\n  'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c',\n);\n\nconst decodedJWT = computed(() =>\n  withDefaultOnError(() => decodeJwt({ jwt: rawJwt.value }), { header: [], payload: [] }),\n);\n\nconst sections = [\n  { key: 'header', title: 'Header' },\n  { key: 'payload', title: 'Payload' },\n] as const;\n\nconst validation = useValidation({\n  source: rawJwt,\n  rules: [\n    {\n      validator: value => value.length > 0 && isNotThrowing(() => decodeJwt({ jwt: rawJwt.value })),\n      message: 'Invalid JWT',\n    },\n  ],\n});\n</script>\n\n<template>\n  <c-card>\n    <c-input-text v-model:value=\"rawJwt\" label=\"JWT to decode\" :validation=\"validation\" placeholder=\"Put your token here...\" rows=\"5\" multiline raw-text autofocus mb-3 />\n\n    <n-table v-if=\"validation.isValid\">\n      <tbody>\n        <template v-for=\"section of sections\" :key=\"section.key\">\n          <th colspan=\"2\" class=\"table-header\">\n            {{ section.title }}\n          </th>\n          <tr v-for=\"{ claim, claimDescription, friendlyValue, value } in decodedJWT[section.key]\" :key=\"claim + value\">\n            <td class=\"claims\" style=\"vertical-align: top;\">\n              <span font-bold>\n                {{ claim }}\n              </span>\n              <span v-if=\"claimDescription\" ml-2 op-70>\n                ({{ claimDescription }})\n              </span>\n            </td>\n            <td style=\"word-wrap: break-word;word-break: break-all;\">\n              <span>{{ value }}</span>\n              <span v-if=\"friendlyValue\" ml-2 op-70>\n                ({{ friendlyValue }})\n              </span>\n            </td>\n          </tr>\n        </template>\n      </tbody>\n    </n-table>\n  </c-card>\n</template>\n\n<style lang=\"less\" scoped>\n.table-header {\n  text-align: center;\n}\n</style>\n"
  },
  {
    "path": "src/tools/keycode-info/index.ts",
    "content": "import { Keyboard } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.keycode-info.title'),\n  path: '/keycode-info',\n  description: translate('tools.keycode-info.description'),\n  keywords: [\n    'keycode',\n    'info',\n    'code',\n    'javascript',\n    'event',\n    'keycodes',\n    'which',\n    'keyboard',\n    'press',\n    'modifier',\n    'alt',\n    'ctrl',\n    'meta',\n    'shift',\n  ],\n  component: () => import('./keycode-info.vue'),\n  icon: Keyboard,\n});\n"
  },
  {
    "path": "src/tools/keycode-info/keycode-info.vue",
    "content": "<script setup lang=\"ts\">\nimport { useEventListener } from '@vueuse/core';\n\nimport InputCopyable from '../../components/InputCopyable.vue';\n\nconst event = ref<KeyboardEvent>();\n\nuseEventListener(document, 'keydown', (e) => {\n  event.value = e;\n});\n\nconst fields = computed(() => {\n  if (!event.value) {\n    return [];\n  }\n\n  return [\n    {\n      label: 'Key :',\n      value: event.value.key,\n      placeholder: 'Key name...',\n    },\n    {\n      label: 'Keycode :',\n      value: String(event.value.keyCode),\n      placeholder: 'Keycode...',\n    },\n    {\n      label: 'Code :',\n      value: event.value.code,\n      placeholder: 'Code...',\n    },\n    {\n      label: 'Location :',\n      value: String(event.value.location),\n      placeholder: 'Code...',\n    },\n\n    {\n      label: 'Modifiers :',\n      value: [\n        event.value.metaKey && 'Meta',\n        event.value.shiftKey && 'Shift',\n        event.value.ctrlKey && 'Ctrl',\n        event.value.altKey && 'Alt',\n      ]\n        .filter(Boolean)\n        .join(' + '),\n      placeholder: 'None',\n    },\n  ];\n});\n</script>\n\n<template>\n  <div>\n    <c-card mb-5 text-center important:py-12>\n      <div v-if=\"event\" mb-2 text-3xl>\n        {{ event.key }}\n      </div>\n      <span lh-1 op-70>\n        Press the key on your keyboard you want to get info about this key\n      </span>\n    </c-card>\n\n    <n-input-group v-for=\"({ label, value, placeholder }, i) of fields\" :key=\"i\" style=\"margin-bottom: 5px\">\n      <n-input-group-label style=\"flex: 0 0 150px\">\n        {{ label }}\n      </n-input-group-label>\n      <InputCopyable :value=\"value\" readonly :placeholder=\"placeholder\" />\n    </n-input-group>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/list-converter/index.ts",
    "content": "import { List } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.list-converter.title'),\n  path: '/list-converter',\n  description: translate('tools.list-converter.description'),\n  keywords: ['list', 'converter', 'sort', 'reverse', 'prefix', 'suffix', 'lowercase', 'truncate'],\n  component: () => import('./list-converter.vue'),\n  icon: List,\n  createdAt: new Date('2023-05-07'),\n});\n"
  },
  {
    "path": "src/tools/list-converter/list-converter.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - List converter', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/list-converter');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('List converter - IT Tools');\n  });\n\n  test('Simple list should be converted with default settings', async ({ page }) => {\n    await page.getByTestId('input').fill(`1\n    2\n    3\n    4\n    5`);\n\n    const result = await page.getByTestId('area-content').innerText();\n\n    expect(result.trim()).toEqual('1, 2, 3, 4, 5');\n  });\n\n  test('Duplicates should be removed, list should be sorted and prefix and suffix list items', async ({ page }) => {\n    await page.getByTestId('input').fill(`1\n    2\n    2\n    4\n    4\n    3\n    5`);\n    await page.getByTestId('removeDuplicates').check();\n    await page.getByTestId('itemPrefix').fill('\\'');\n    await page.getByTestId('itemSuffix').fill('\\'');\n\n    const result = await page.getByTestId('area-content').innerText();\n    expect(result.trim()).toEqual('\\'1\\', \\'2\\', \\'4\\', \\'3\\', \\'5\\'');\n  });\n});\n"
  },
  {
    "path": "src/tools/list-converter/list-converter.models.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { convert } from './list-converter.models';\nimport type { ConvertOptions } from './list-converter.types';\n\ndescribe('list-converter', () => {\n  describe('convert', () => {\n    it('should convert a given list', () => {\n      const options: ConvertOptions = {\n        separator: ', ',\n        trimItems: true,\n        removeDuplicates: true,\n        itemPrefix: '\"',\n        itemSuffix: '\"',\n        listPrefix: '',\n        listSuffix: '',\n        reverseList: false,\n        sortList: null,\n        lowerCase: false,\n        keepLineBreaks: false,\n      };\n      const input = `\n        1\n        2\n        \n        3\n        3\n        4\n        `;\n      expect(convert(input, options)).toEqual('\"1\", \"2\", \"3\", \"4\"');\n    });\n\n    it('should return an empty value for an empty input', () => {\n      const options: ConvertOptions = {\n        separator: ', ',\n        trimItems: true,\n        removeDuplicates: true,\n        itemPrefix: '',\n        itemSuffix: '',\n        listPrefix: '',\n        listSuffix: '',\n        reverseList: false,\n        sortList: null,\n        lowerCase: false,\n        keepLineBreaks: false,\n      };\n      expect(convert('', options)).toEqual('');\n    });\n\n    it('should keep line breaks', () => {\n      const options: ConvertOptions = {\n        separator: '',\n        trimItems: true,\n        itemPrefix: '<li>',\n        itemSuffix: '</li>',\n        listPrefix: '<ul>',\n        listSuffix: '</ul>',\n        keepLineBreaks: true,\n        lowerCase: false,\n        removeDuplicates: false,\n        reverseList: false,\n        sortList: null,\n      };\n      const input = `\n        1\n        2\n        3\n        `;\n      const expected = `<ul>\n<li>1</li>\n<li>2</li>\n<li>3</li>\n</ul>`;\n      expect(convert(input, options)).toEqual(expected);\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/list-converter/list-converter.models.ts",
    "content": "import _ from 'lodash';\nimport type { ConvertOptions } from './list-converter.types';\nimport { byOrder } from '@/utils/array';\n\nexport { convert };\n\nfunction whenever<T, R>(condition: boolean, fn: (value: T) => R) {\n  return (value: T) =>\n    condition ? fn(value) : value;\n}\n\nfunction convert(list: string, options: ConvertOptions): string {\n  const lineBreak = options.keepLineBreaks ? '\\n' : '';\n\n  return _.chain(list)\n    .thru(whenever(options.lowerCase, text => text.toLowerCase()))\n    .split('\\n')\n    .thru(whenever(options.removeDuplicates, _.uniq))\n    .thru(whenever(options.reverseList, _.reverse))\n    .thru(whenever(!_.isNull(options.sortList), parts => parts.sort(byOrder({ order: options.sortList }))))\n    .map(whenever(options.trimItems, _.trim))\n    .without('')\n    .map(p => options.itemPrefix + p + options.itemSuffix)\n    .join(options.separator + lineBreak)\n    .thru(text => [options.listPrefix, text, options.listSuffix].join(lineBreak))\n    .value();\n}\n"
  },
  {
    "path": "src/tools/list-converter/list-converter.types.ts",
    "content": "export type SortOrder = 'asc' | 'desc' | null;\n\nexport interface ConvertOptions {\n  lowerCase: boolean\n  trimItems: boolean\n  itemPrefix: string\n  itemSuffix: string\n  listPrefix: string\n  listSuffix: string\n  reverseList: boolean\n  sortList: SortOrder\n  removeDuplicates: boolean\n  separator: string\n  keepLineBreaks: boolean\n}\n"
  },
  {
    "path": "src/tools/list-converter/list-converter.vue",
    "content": "<script setup lang=\"ts\">\nimport { useStorage } from '@vueuse/core';\nimport { convert } from './list-converter.models';\nimport type { ConvertOptions } from './list-converter.types';\n\nconst sortOrderOptions = [\n  {\n    label: 'Sort ascending',\n    value: 'asc',\n    disabled: false,\n  },\n  {\n    label: 'Sort descending',\n    value: 'desc',\n    disabled: false,\n  },\n];\n\nconst conversionConfig = useStorage<ConvertOptions>('list-converter:conversionConfig', {\n  lowerCase: false,\n  trimItems: true,\n  removeDuplicates: true,\n  keepLineBreaks: false,\n  itemPrefix: '',\n  itemSuffix: '',\n  listPrefix: '',\n  listSuffix: '',\n  reverseList: false,\n  sortList: null,\n  separator: ', ',\n});\n\nfunction transformer(value: string) {\n  return convert(value, conversionConfig.value);\n}\n</script>\n\n<template>\n  <div style=\"flex: 0 0 100%\">\n    <div style=\"margin: 0 auto; max-width: 600px\">\n      <c-card>\n        <div flex>\n          <div>\n            <n-form-item label=\"Trim list items\" label-placement=\"left\" label-width=\"150\" :show-feedback=\"false\" mb-2>\n              <n-switch v-model:value=\"conversionConfig.trimItems\" />\n            </n-form-item>\n            <n-form-item label=\"Remove duplicates\" label-placement=\"left\" label-width=\"150\" :show-feedback=\"false\" mb-2>\n              <n-switch v-model:value=\"conversionConfig.removeDuplicates\" data-test-id=\"removeDuplicates\" />\n            </n-form-item>\n            <n-form-item\n              label=\"Convert to lowercase\"\n              label-placement=\"left\"\n              label-width=\"150\"\n              :show-feedback=\"false\"\n              mb-2\n            >\n              <n-switch v-model:value=\"conversionConfig.lowerCase\" />\n            </n-form-item>\n            <n-form-item label=\"Keep line breaks\" label-placement=\"left\" label-width=\"150\" :show-feedback=\"false\" mb-2>\n              <n-switch v-model:value=\"conversionConfig.keepLineBreaks\" />\n            </n-form-item>\n          </div>\n          <div flex-1>\n            <c-select\n              v-model:value=\"conversionConfig.sortList\"\n              label=\"Sort list\"\n              label-position=\"left\"\n              label-width=\"120px\"\n              label-align=\"right\"\n              mb-2\n              :options=\"sortOrderOptions\"\n              w-full\n              :disabled=\"conversionConfig.reverseList\"\n              data-test-id=\"sortList\"\n              placeholder=\"Sort alphabetically\"\n            />\n\n            <c-input-text\n              v-model:value=\"conversionConfig.separator\"\n              label=\"Separator\"\n              label-position=\"left\"\n              label-width=\"120px\"\n              label-align=\"right\"\n              mb-2\n              placeholder=\",\"\n            />\n\n            <n-form-item label=\"Wrap item\" label-placement=\"left\" label-width=\"120\" :show-feedback=\"false\" mb-2>\n              <c-input-text\n                v-model:value=\"conversionConfig.itemPrefix\"\n                placeholder=\"Item prefix\"\n                test-id=\"itemPrefix\"\n              />\n              <c-input-text\n                v-model:value=\"conversionConfig.itemSuffix\"\n                placeholder=\"Item suffix\"\n                test-id=\"itemSuffix\"\n              />\n            </n-form-item>\n            <n-form-item label=\"Wrap list\" label-placement=\"left\" label-width=\"120\" :show-feedback=\"false\" mb-2>\n              <c-input-text\n                v-model:value=\"conversionConfig.listPrefix\"\n                placeholder=\"List prefix\"\n                test-id=\"listPrefix\"\n              />\n              <c-input-text\n                v-model:value=\"conversionConfig.listSuffix\"\n                placeholder=\"List suffix\"\n                test-id=\"listSuffix\"\n              />\n            </n-form-item>\n          </div>\n        </div>\n      </c-card>\n    </div>\n  </div>\n  <format-transformer\n    input-label=\"Your input data\"\n    input-placeholder=\"Paste your input data here...\"\n    output-label=\"Your transformed data\"\n    :transformer=\"transformer\"\n  />\n</template>\n"
  },
  {
    "path": "src/tools/lorem-ipsum-generator/index.ts",
    "content": "import { AlignJustified } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.lorem-ipsum-generator.title'),\n  path: '/lorem-ipsum-generator',\n  description: translate('tools.lorem-ipsum-generator.description'),\n  keywords: ['lorem', 'ipsum', 'dolor', 'sit', 'amet', 'placeholder', 'text', 'filler', 'random', 'generator'],\n  component: () => import('./lorem-ipsum-generator.vue'),\n  icon: AlignJustified,\n});\n"
  },
  {
    "path": "src/tools/lorem-ipsum-generator/lorem-ipsum-generator.service.ts",
    "content": "import { randFromArray } from '@/utils/random';\n\nconst vocabulary = [\n  'a',\n  'ac',\n  'accumsan',\n  'ad',\n  'adipiscing',\n  'aenean',\n  'aliquam',\n  'aliquet',\n  'amet',\n  'ante',\n  'aptent',\n  'arcu',\n  'at',\n  'auctor',\n  'bibendum',\n  'blandit',\n  'class',\n  'commodo',\n  'condimentum',\n  'congue',\n  'consectetur',\n  'consequat',\n  'conubia',\n  'convallis',\n  'cras',\n  'cubilia',\n  'cum',\n  'curabitur',\n  'curae',\n  'dapibus',\n  'diam',\n  'dictum',\n  'dictumst',\n  'dignissim',\n  'dolor',\n  'donec',\n  'dui',\n  'duis',\n  'egestas',\n  'eget',\n  'eleifend',\n  'elementum',\n  'elit',\n  'enim',\n  'erat',\n  'eros',\n  'est',\n  'et',\n  'etiam',\n  'eu',\n  'euismod',\n  'facilisi',\n  'faucibus',\n  'felis',\n  'fermentum',\n  'feugiat',\n  'fringilla',\n  'fusce',\n  'gravida',\n  'habitant',\n  'habitasse',\n  'hac',\n  'hendrerit',\n  'himenaeos',\n  'iaculis',\n  'id',\n  'imperdiet',\n  'in',\n  'inceptos',\n  'integer',\n  'interdum',\n  'ipsum',\n  'justo',\n  'lacinia',\n  'lacus',\n  'laoreet',\n  'lectus',\n  'leo',\n  'ligula',\n  'litora',\n  'lobortis',\n  'lorem',\n  'luctus',\n  'maecenas',\n  'magna',\n  'magnis',\n  'malesuada',\n  'massa',\n  'mattis',\n  'mauris',\n  'metus',\n  'mi',\n  'molestie',\n  'mollis',\n  'montes',\n  'morbi',\n  'mus',\n  'nam',\n  'nascetur',\n  'natoque',\n  'nec',\n  'neque',\n  'netus',\n  'nisi',\n  'nisl',\n  'non',\n  'nostra',\n  'nulla',\n  'nullam',\n  'nunc',\n  'odio',\n  'orci',\n  'ornare',\n  'parturient',\n  'pellentesque',\n  'penatibus',\n  'per',\n  'pharetra',\n  'phasellus',\n  'placerat',\n  'platea',\n  'porta',\n  'porttitor',\n  'posuere',\n  'potenti',\n  'praesent',\n  'pretium',\n  'primis',\n  'proin',\n  'pulvinar',\n  'purus',\n  'quam',\n  'quis',\n  'quisque',\n  'rhoncus',\n  'ridiculus',\n  'risus',\n  'rutrum',\n  'sagittis',\n  'sapien',\n  'scelerisque',\n  'sed',\n  'sem',\n  'semper',\n  'senectus',\n  'sit',\n  'sociis',\n  'sociosqu',\n  'sodales',\n  'sollicitudin',\n  'suscipit',\n  'suspendisse',\n  'taciti',\n  'tellus',\n  'tempor',\n  'tempus',\n  'tincidunt',\n  'torquent',\n  'tortor',\n  'turpis',\n  'ullamcorper',\n  'ultrices',\n  'ultricies',\n  'urna',\n  'varius',\n  'vehicula',\n  'vel',\n  'velit',\n  'venenatis',\n  'vestibulum',\n  'vitae',\n  'vivamus',\n  'viverra',\n  'volutpat',\n  'vulputate',\n];\nconst firstSentence = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.';\n\nfunction generateSentence(length: number) {\n  const sentence = Array.from({ length })\n    .map(() => randFromArray(vocabulary))\n    .join(' ');\n\n  return `${sentence.charAt(0).toUpperCase() + sentence.slice(1)}.`;\n}\n\nexport function generateLoremIpsum({\n  paragraphCount = 1,\n  sentencePerParagraph = 3,\n  wordCount = 10,\n  startWithLoremIpsum = true,\n  asHTML = false,\n}: {\n  paragraphCount?: number\n  sentencePerParagraph?: number\n  wordCount?: number\n  startWithLoremIpsum?: boolean\n  asHTML?: boolean\n}) {\n  const paragraphs = Array.from({ length: paragraphCount }).map(() =>\n    Array.from({ length: sentencePerParagraph }).map(() => generateSentence(wordCount)),\n  );\n\n  if (startWithLoremIpsum) {\n    paragraphs[0][0] = firstSentence;\n  }\n\n  if (asHTML) {\n    return `<p>${paragraphs.map(s => s.join(' ')).join('</p>\\n\\n<p>')}</p>`;\n  }\n\n  return paragraphs.map(s => s.join(' ')).join('\\n\\n');\n}\n"
  },
  {
    "path": "src/tools/lorem-ipsum-generator/lorem-ipsum-generator.vue",
    "content": "<script setup lang=\"ts\">\nimport { generateLoremIpsum } from './lorem-ipsum-generator.service';\nimport { useCopy } from '@/composable/copy';\nimport { randIntFromInterval } from '@/utils/random';\nimport { computedRefreshable } from '@/composable/computedRefreshable';\n\nconst paragraphs = ref(1);\nconst sentences = ref([3, 8]);\nconst words = ref([8, 15]);\nconst startWithLoremIpsum = ref(true);\nconst asHTML = ref(false);\n\nconst [loremIpsumText, refreshLoremIpsum] = computedRefreshable(() =>\n  generateLoremIpsum({\n    paragraphCount: paragraphs.value,\n    asHTML: asHTML.value,\n    sentencePerParagraph: randIntFromInterval(sentences.value[0], sentences.value[1]),\n    wordCount: randIntFromInterval(words.value[0], words.value[1]),\n    startWithLoremIpsum: startWithLoremIpsum.value,\n  }),\n);\n\nconst { copy } = useCopy({ source: loremIpsumText, text: 'Lorem ipsum copied to the clipboard' });\n</script>\n\n<template>\n  <c-card>\n    <n-form-item label=\"Paragraphs\" :show-feedback=\"false\" label-width=\"200\" label-placement=\"left\">\n      <n-slider v-model:value=\"paragraphs\" :step=\"1\" :min=\"1\" :max=\"20\" />\n    </n-form-item>\n    <n-form-item label=\"Sentences per paragraph\" :show-feedback=\"false\" label-width=\"200\" label-placement=\"left\">\n      <n-slider v-model:value=\"sentences\" range :step=\"1\" :min=\"1\" :max=\"50\" />\n    </n-form-item>\n    <n-form-item label=\"Words per sentence\" :show-feedback=\"false\" label-width=\"200\" label-placement=\"left\">\n      <n-slider v-model:value=\"words\" range :step=\"1\" :min=\"1\" :max=\"50\" />\n    </n-form-item>\n    <n-form-item label=\"Start with lorem ipsum ?\" :show-feedback=\"false\" label-width=\"200\" label-placement=\"left\">\n      <n-switch v-model:value=\"startWithLoremIpsum\" />\n    </n-form-item>\n    <n-form-item label=\"As html ?\" :show-feedback=\"false\" label-width=\"200\" label-placement=\"left\">\n      <n-switch v-model:value=\"asHTML\" />\n    </n-form-item>\n\n    <c-input-text :value=\"loremIpsumText\" multiline placeholder=\"Your lorem ipsum...\" readonly mt-5 rows=\"5\" />\n\n    <div mt-5 flex justify-center gap-3>\n      <c-button autofocus @click=\"copy()\">\n        Copy\n      </c-button>\n      <c-button @click=\"refreshLoremIpsum\">\n        Refresh\n      </c-button>\n    </div>\n  </c-card>\n</template>\n"
  },
  {
    "path": "src/tools/mac-address-generator/index.ts",
    "content": "import { Devices } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.mac-address-generator.title'),\n  path: '/mac-address-generator',\n  description: translate('tools.mac-address-generator.description'),\n  keywords: ['mac', 'address', 'generator', 'random', 'prefix'],\n  component: () => import('./mac-address-generator.vue'),\n  icon: Devices,\n  createdAt: new Date('2023-11-31'),\n});\n"
  },
  {
    "path": "src/tools/mac-address-generator/mac-address-generator.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - MAC address generator', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/mac-address-generator');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('MAC address generator - IT Tools');\n  });\n});\n"
  },
  {
    "path": "src/tools/mac-address-generator/mac-address-generator.vue",
    "content": "<script setup lang=\"ts\">\nimport _ from 'lodash';\nimport { generateRandomMacAddress } from './mac-adress-generator.models';\nimport { computedRefreshable } from '@/composable/computedRefreshable';\nimport { useCopy } from '@/composable/copy';\nimport { usePartialMacAddressValidation } from '@/utils/macAddress';\n\nconst amount = useStorage('mac-address-generator-amount', 1);\nconst macAddressPrefix = useStorage('mac-address-generator-prefix', '64:16:7F');\n\nconst prefixValidation = usePartialMacAddressValidation(macAddressPrefix);\n\nconst casesTransformers = [\n  { label: 'Uppercase', value: (value: string) => value.toUpperCase() },\n  { label: 'Lowercase', value: (value: string) => value.toLowerCase() },\n];\nconst caseTransformer = ref(casesTransformers[0].value);\n\nconst separators = [\n  {\n    label: ':',\n    value: ':',\n  },\n  {\n    label: '-',\n    value: '-',\n  },\n  {\n    label: '.',\n    value: '.',\n  },\n  {\n    label: 'None',\n    value: '',\n  },\n];\nconst separator = useStorage('mac-address-generator-separator', separators[0].value);\n\nconst [macAddresses, refreshMacAddresses] = computedRefreshable(() => {\n  if (!prefixValidation.isValid) {\n    return '';\n  }\n\n  const ids = _.times(amount.value, () => caseTransformer.value(generateRandomMacAddress({\n    prefix: macAddressPrefix.value,\n    separator: separator.value,\n  })));\n  return ids.join('\\n');\n});\n\nconst { copy } = useCopy({ source: macAddresses, text: 'MAC addresses copied to the clipboard' });\n</script>\n\n<template>\n  <div flex flex-col justify-center gap-2>\n    <div flex items-center>\n      <label w-150px pr-12px text-right> Quantity:</label>\n      <n-input-number v-model:value=\"amount\" min=\"1\" max=\"100\" flex-1 />\n    </div>\n\n    <c-input-text\n      v-model:value=\"macAddressPrefix\"\n      label=\"MAC address prefix:\"\n      placeholder=\"Set a prefix, e.g. 64:16:7F\"\n      clearable\n      label-position=\"left\"\n      spellcheck=\"false\"\n      :validation=\"prefixValidation\"\n      raw-text\n      label-width=\"150px\"\n      label-align=\"right\"\n    />\n\n    <c-buttons-select\n      v-model:value=\"caseTransformer\"\n      :options=\"casesTransformers\"\n      label=\"Case:\"\n      label-width=\"150px\"\n      label-align=\"right\"\n    />\n\n    <c-buttons-select\n      v-model:value=\"separator\"\n      :options=\"separators\"\n      label=\"Separator:\"\n      label-width=\"150px\"\n      label-align=\"right\"\n    />\n\n    <c-card mt-5 flex data-test-id=\"ulids\">\n      <pre m-0 m-x-auto>{{ macAddresses }}</pre>\n    </c-card>\n\n    <div flex justify-center gap-2>\n      <c-button data-test-id=\"refresh\" @click=\"refreshMacAddresses()\">\n        Refresh\n      </c-button>\n      <c-button @click=\"copy()\">\n        Copy\n      </c-button>\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/mac-address-generator/mac-adress-generator.models.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { generateRandomMacAddress, splitPrefix } from './mac-adress-generator.models';\n\ndescribe('mac-adress-generator models', () => {\n  describe('splitPrefix', () => {\n    it('a mac address prefix is splitted around non hex characters', () => {\n      expect(splitPrefix('')).toEqual([]);\n      expect(splitPrefix('01')).toEqual(['01']);\n      expect(splitPrefix('01:')).toEqual(['01']);\n      expect(splitPrefix('01:23')).toEqual(['01', '23']);\n      expect(splitPrefix('01-23')).toEqual(['01', '23']);\n    });\n\n    it('when a prefix contains only hex characters, they are grouped by 2', () => {\n      expect(splitPrefix('0123')).toEqual(['01', '23']);\n      expect(splitPrefix('012345')).toEqual(['01', '23', '45']);\n      expect(splitPrefix('0123456')).toEqual(['01', '23', '45', '06']);\n    });\n  });\n\n  describe('generateRandomMacAddress', () => {\n    const createRandomByteGenerator = () => {\n      let i = 0;\n      return () => (i++).toString(16).padStart(2, '0');\n    };\n\n    it('generates a random mac address', () => {\n      expect(generateRandomMacAddress({ getRandomByte: createRandomByteGenerator() })).toBe('00:01:02:03:04:05');\n    });\n\n    it('generates a random mac address with a prefix', () => {\n      expect(generateRandomMacAddress({ prefix: 'ff:ee:aa', getRandomByte: createRandomByteGenerator() })).toBe('ff:ee:aa:00:01:02');\n      expect(generateRandomMacAddress({ prefix: 'ff:ee:a', getRandomByte: createRandomByteGenerator() })).toBe('ff:ee:0a:00:01:02');\n    });\n\n    it('generates a random mac address with a prefix and a different separator', () => {\n      expect(generateRandomMacAddress({ prefix: 'ff-ee-aa', separator: '-', getRandomByte: createRandomByteGenerator() })).toBe('ff-ee-aa-00-01-02');\n      expect(generateRandomMacAddress({ prefix: 'ff:ee:aa', separator: '-', getRandomByte: createRandomByteGenerator() })).toBe('ff-ee-aa-00-01-02');\n      expect(generateRandomMacAddress({ prefix: 'ff-ee:aa', separator: '-', getRandomByte: createRandomByteGenerator() })).toBe('ff-ee-aa-00-01-02');\n      expect(generateRandomMacAddress({ prefix: 'ff ee:aa', separator: '-', getRandomByte: createRandomByteGenerator() })).toBe('ff-ee-aa-00-01-02');\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/mac-address-generator/mac-adress-generator.models.ts",
    "content": "import _ from 'lodash';\n\nexport { splitPrefix, generateRandomMacAddress };\n\nfunction splitPrefix(prefix: string): string[] {\n  const base = prefix.match(/[^0-9a-f]/i) === null ? prefix.match(/.{1,2}/g) ?? [] : prefix.split(/[^0-9a-f]/i);\n\n  return base.filter(Boolean).map(byte => byte.padStart(2, '0'));\n}\n\nfunction generateRandomMacAddress({ prefix: rawPrefix = '', separator = ':', getRandomByte = () => _.random(0, 255).toString(16).padStart(2, '0') }: { prefix?: string; separator?: string; getRandomByte?: () => string } = {}) {\n  const prefix = splitPrefix(rawPrefix);\n\n  const randomBytes = _.times(6 - prefix.length, getRandomByte);\n  const bytes = [...prefix, ...randomBytes];\n\n  return bytes.join(separator);\n}\n"
  },
  {
    "path": "src/tools/mac-address-lookup/index.ts",
    "content": "import { Devices } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.mac-address-lookup.title'),\n  path: '/mac-address-lookup',\n  description: translate('tools.mac-address-lookup.description'),\n  keywords: ['mac', 'address', 'lookup', 'vendor', 'parser', 'manufacturer'],\n  component: () => import('./mac-address-lookup.vue'),\n  icon: Devices,\n  createdAt: new Date('2023-04-06'),\n});\n"
  },
  {
    "path": "src/tools/mac-address-lookup/mac-address-lookup.vue",
    "content": "<script setup lang=\"ts\">\nimport db from 'oui-data';\nimport { macAddressValidationRules } from '@/utils/macAddress';\nimport { useCopy } from '@/composable/copy';\n\nconst getVendorValue = (address: string) => address.trim().replace(/[.:-]/g, '').toUpperCase().substring(0, 6);\n\nconst macAddress = ref('20:37:06:12:34:56');\nconst details = computed<string | undefined>(() => (db as Record<string, string>)[getVendorValue(macAddress.value)]);\n\nconst { copy } = useCopy({ source: () => details.value ?? '', text: 'Vendor info copied to the clipboard' });\n</script>\n\n<template>\n  <div>\n    <c-input-text\n      v-model:value=\"macAddress\"\n      label=\"MAC address:\"\n      size=\"large\"\n      placeholder=\"Type a MAC address\"\n      clearable\n      autocomplete=\"off\"\n      autocorrect=\"off\"\n      autocapitalize=\"off\"\n      spellcheck=\"false\"\n      :validation-rules=\"macAddressValidationRules\"\n      mb-5\n    />\n\n    <div mb-5px>\n      Vendor info:\n    </div>\n    <c-card mb-5>\n      <div v-if=\"details\">\n        <div v-for=\"(detail, index) of details.split('\\n')\" :key=\"index\">\n          {{ detail }}\n        </div>\n      </div>\n\n      <div v-else italic op-60>\n        Unknown vendor for this address\n      </div>\n    </c-card>\n\n    <div flex justify-center>\n      <c-button :disabled=\"!details\" @click=\"copy()\">\n        Copy vendor info\n      </c-button>\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/markdown-to-html/index.ts",
    "content": "import { Markdown } from '@vicons/tabler';\nimport { defineTool } from '../tool';\n\nexport const tool = defineTool({\n  name: 'Markdown to HTML',\n  path: '/markdown-to-html',\n  description: 'Convert Markdown to Html and allow to print (as PDF)',\n  keywords: ['markdown', 'html', 'converter', 'pdf'],\n  component: () => import('./markdown-to-html.vue'),\n  icon: Markdown,\n  createdAt: new Date('2024-08-25'),\n});\n"
  },
  {
    "path": "src/tools/markdown-to-html/markdown-to-html.vue",
    "content": "<script setup lang=\"ts\">\nimport markdownit from 'markdown-it';\nimport TextareaCopyable from '@/components/TextareaCopyable.vue';\n\nconst inputMarkdown = ref('');\nconst outputHtml = computed(() => {\n  const md = markdownit();\n  return md.render(inputMarkdown.value);\n});\n\nfunction printHtml() {\n  const w = window.open();\n  if (w === null) {\n    return;\n  }\n  w.document.body.innerHTML = outputHtml.value;\n  w.print();\n}\n</script>\n\n<template>\n  <div>\n    <c-input-text\n      v-model:value=\"inputMarkdown\"\n      multiline raw-text\n      placeholder=\"Your Markdown content...\"\n      rows=\"8\"\n      autofocus\n      label=\"Your Markdown to convert:\"\n    />\n\n    <n-divider />\n\n    <n-form-item label=\"Output HTML:\">\n      <TextareaCopyable :value=\"outputHtml\" :word-wrap=\"true\" language=\"html\" />\n    </n-form-item>\n\n    <div flex justify-center>\n      <n-button @click=\"printHtml\">\n        Print as PDF\n      </n-button>\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/math-evaluator/index.ts",
    "content": "import { Math } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.math-evaluator.title'),\n  path: '/math-evaluator',\n  description: translate('tools.math-evaluator.description'),\n  keywords: [\n    'math',\n    'evaluator',\n    'calculator',\n    'expression',\n    'abs',\n    'acos',\n    'acosh',\n    'acot',\n    'acoth',\n    'acsc',\n    'acsch',\n    'asec',\n    'asech',\n    'asin',\n    'asinh',\n    'atan',\n    'atan2',\n    'atanh',\n    'cos',\n    'cosh',\n    'cot',\n    'coth',\n    'csc',\n    'csch',\n    'sec',\n    'sech',\n    'sin',\n    'sinh',\n    'sqrt',\n    'tan',\n    'tanh',\n  ],\n  component: () => import('./math-evaluator.vue'),\n  icon: Math,\n});\n"
  },
  {
    "path": "src/tools/math-evaluator/math-evaluator.vue",
    "content": "<script setup lang=\"ts\">\nimport { evaluate } from 'mathjs';\n\nimport { withDefaultOnError } from '@/utils/defaults';\n\nconst expression = ref('');\n\nconst result = computed(() => withDefaultOnError(() => evaluate(expression.value) ?? '', ''));\n</script>\n\n<template>\n  <div>\n    <c-input-text\n      v-model:value=\"expression\"\n      rows=\"1\"\n      multiline\n      placeholder=\"Your math expression (ex: 2*sqrt(6) )...\"\n      raw-text\n      monospace\n      autofocus\n      autosize\n    />\n\n    <c-card v-if=\"result !== ''\" title=\"Result \" mt-5>\n      {{ result }}\n    </c-card>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/meta-tag-generator/OGSchemaType.type.ts",
    "content": "import type { SelectGroupOption, SelectOption } from 'naive-ui';\n\nexport type { OGSchemaType, OGSchemaTypeElementInput, OGSchemaTypeElementSelect, OGSchemaTypeElementInputMultiple };\n\ninterface OGSchemaTypeElementBase {\n  key: string\n  label: string\n  placeholder: string\n}\n\ninterface OGSchemaTypeElementInput extends OGSchemaTypeElementBase {\n  type: 'input'\n}\n\ninterface OGSchemaTypeElementInputMultiple extends OGSchemaTypeElementBase {\n  type: 'input-multiple'\n}\n\ninterface OGSchemaTypeElementSelect extends OGSchemaTypeElementBase {\n  type: 'select'\n  options: Array<SelectOption | SelectGroupOption>\n}\n\ninterface OGSchemaType {\n  name: string\n  elements: (OGSchemaTypeElementSelect | OGSchemaTypeElementInput | OGSchemaTypeElementInputMultiple)[]\n}\n"
  },
  {
    "path": "src/tools/meta-tag-generator/index.ts",
    "content": "import { Tags } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.og-meta-generator.title'),\n  path: '/og-meta-generator',\n  description: translate('tools.og-meta-generator.description'),\n  keywords: [\n    'meta',\n    'tag',\n    'generator',\n    'social',\n    'title',\n    'description',\n    'image',\n    'share',\n    'online',\n    'website',\n    'open',\n    'graph',\n    'og',\n  ],\n  component: () => import('./meta-tag-generator.vue'),\n  icon: Tags,\n});\n"
  },
  {
    "path": "src/tools/meta-tag-generator/meta-tag-generator.vue",
    "content": "<script setup lang=\"ts\">\nimport { generateMeta } from '@it-tools/oggen';\nimport _ from 'lodash';\nimport { image, ogSchemas, twitter, website } from './og-schemas';\nimport type { OGSchemaType, OGSchemaTypeElementSelect } from './OGSchemaType.type';\nimport TextareaCopyable from '@/components/TextareaCopyable.vue';\n\n// Since type guards do not work in template\n\nconst metadata = ref<{ type: string; [k: string]: any }>({\n  'type': 'website',\n  'twitter:card': 'summary_large_image',\n});\n\nwatch(\n  () => ref(metadata.value.type),\n  (_ignored, prevSection) => {\n    const section = ogSchemas[prevSection.value];\n\n    if (!section) {\n      return;\n    }\n\n    section.elements.forEach(({ key }) => {\n      metadata.value[key] = '';\n    });\n  },\n);\n\nconst sections = computed(() => {\n  const secs: OGSchemaType[] = [website, image, twitter];\n  const additionalSchema = ogSchemas[metadata.value.type];\n\n  if (additionalSchema) {\n    secs.push(additionalSchema);\n  }\n\n  return secs;\n});\n\nconst metaTags = computed(() => {\n  const twitterMeta = _.chain(metadata.value)\n    .pickBy((_value, k) => k.startsWith('twitter:'))\n    .mapKeys((_value, k) => k.replace(/^twitter:/, ''))\n    .value();\n\n  const otherMeta = _.pickBy(metadata.value, (_value, k) => !k.startsWith('twitter:'));\n\n  return generateMeta({ ...otherMeta, twitter: twitterMeta }, { generateTwitterCompatibleMeta: true });\n});\n</script>\n\n<template>\n  <div>\n    <div v-for=\"{ name, elements } of sections\" :key=\"name\" style=\"margin-bottom: 15px\">\n      <div mb-5px>\n        {{ name }}\n      </div>\n\n      <n-input-group v-for=\"{ key, type, label, placeholder, ...element } of elements\" :key=\"key\">\n        <n-input-group-label style=\"flex: 0 0 110px\">\n          {{ label }}\n        </n-input-group-label>\n\n        <c-input-text v-if=\"type === 'input'\" v-model:value=\"metadata[key]\" :placeholder=\"placeholder\" clearable />\n        <n-dynamic-input\n          v-else-if=\"type === 'input-multiple'\"\n          v-model:value=\"metadata[key]\"\n          :min=\"1\"\n          :placeholder=\"placeholder\"\n          :default-value=\"['']\"\n          :show-sort-button=\"true\"\n        />\n\n        <c-select\n          v-else-if=\"type === 'select'\"\n          v-model:value=\"metadata[key]\"\n          w-full\n          :placeholder=\"placeholder\"\n          :options=\"(element as OGSchemaTypeElementSelect).options\"\n        />\n      </n-input-group>\n    </div>\n  </div>\n  <div>\n    <n-form-item label=\"Your meta tags\">\n      <TextareaCopyable :value=\"metaTags\" language=\"html\" />\n    </n-form-item>\n  </div>\n</template>\n\n<style lang=\"less\" scoped>\n.n-input-group {\n  margin-bottom: 5px;\n}\n\n::v-deep(.n-form-item-blank) {\n  min-height: 0 !important;\n}\n::v-deep(.n-dynamic-input-item) {\n  margin-bottom: 5px;\n}\n</style>\n"
  },
  {
    "path": "src/tools/meta-tag-generator/og-schemas/article.ts",
    "content": "import type { OGSchemaType } from '../OGSchemaType.type';\n\nexport const article: OGSchemaType = {\n  name: 'Article',\n  elements: [\n    {\n      type: 'input',\n      label: 'Publishing date',\n      key: 'article:published_time',\n      placeholder: 'When the article was first published...',\n    },\n    {\n      type: 'input',\n      label: 'Modification date',\n      key: 'article:modified_time',\n      placeholder: 'When the article was last changed...',\n    },\n    {\n      type: 'input',\n      label: 'Expiration date',\n      key: 'article:expiration_time',\n      placeholder: 'When the article is out of date after...',\n    },\n    { type: 'input', label: 'Author', key: 'article:author', placeholder: 'Writers of the article...' },\n    {\n      type: 'input',\n      label: 'Section',\n      key: 'article:section',\n      placeholder: 'A high-level section name. E.g. Technology..',\n    },\n    { type: 'input', label: 'Tag', key: 'article:tag', placeholder: 'Tag words associated with this article...' },\n  ],\n};\n"
  },
  {
    "path": "src/tools/meta-tag-generator/og-schemas/book.ts",
    "content": "import type { OGSchemaType } from '../OGSchemaType.type';\n\nexport const book: OGSchemaType = {\n  name: 'Book',\n  elements: [\n    { type: 'input', label: 'Author', key: 'book:author', placeholder: 'Who wrote this book...' },\n    { type: 'input', label: 'ISBN', key: 'book:isbn', placeholder: 'The International Standard Book Number...' },\n    {\n      type: 'input',\n      label: 'Release date',\n      key: 'book:release_date',\n      placeholder: 'The date the book was released...',\n    },\n    { type: 'input', label: 'Tag', key: 'book:tag', placeholder: 'Tag words associated with this book...' },\n  ],\n};\n"
  },
  {
    "path": "src/tools/meta-tag-generator/og-schemas/image.ts",
    "content": "import type { OGSchemaType } from '../OGSchemaType.type';\n\nexport const image: OGSchemaType = {\n  name: 'Image',\n  elements: [\n    {\n      type: 'input',\n      label: 'Image url',\n      placeholder: 'The url of your website social image...',\n      key: 'image',\n    },\n    {\n      type: 'input',\n      label: 'Image alt',\n      placeholder: 'The alternative text of your website social image...',\n      key: 'image:alt',\n    },\n    {\n      type: 'input',\n      label: 'Width',\n      placeholder: 'Width in px of your website social image...',\n      key: 'image:width',\n    },\n    {\n      type: 'input',\n      label: 'Height',\n      placeholder: 'Height in px of your website social image...',\n      key: 'image:height',\n    },\n  ],\n};\n"
  },
  {
    "path": "src/tools/meta-tag-generator/og-schemas/index.ts",
    "content": "import type { OGSchemaType } from '../OGSchemaType.type';\n\nimport { article } from './article';\nimport { book } from './book';\nimport { musicAlbum } from './musicAlbum';\nimport { musicPlaylist } from './musicPlaylist';\nimport { musicRadioStation } from './musicRadioStation';\nimport { musicSong } from './musicSong';\nimport { profile } from './profile';\nimport { videoEpisode } from './videoEpisode';\nimport { videoMovie } from './videoMovie';\nimport { videoOther } from './videoOther';\nimport { videoTVShow } from './videoTVShow';\n\nexport * from './image';\nexport * from './twitter';\nexport * from './website';\n\nexport const ogSchemas: Record<string, OGSchemaType> = {\n  'music.song': musicSong,\n  'music.album': musicAlbum,\n  'music.playlist': musicPlaylist,\n  'music.radio_station': musicRadioStation,\n  'video.movie': videoMovie,\n  'video.episode': videoEpisode,\n  'video.tv_show': videoTVShow,\n  'video.other': videoOther,\n  profile,\n  article,\n  book,\n};\n"
  },
  {
    "path": "src/tools/meta-tag-generator/og-schemas/musicAlbum.ts",
    "content": "import type { OGSchemaType } from '../OGSchemaType.type';\n\nexport const musicAlbum: OGSchemaType = {\n  name: 'Album details',\n  elements: [\n    { type: 'input', label: 'Song', key: 'music:song', placeholder: 'The song on this album...' },\n    {\n      type: 'input',\n      label: 'Disc',\n      key: 'music:song:disc',\n      placeholder: 'The same as music:album:disc but in reverse...',\n    },\n    {\n      type: 'input',\n      label: 'Track',\n      key: 'music:song:track',\n      placeholder: 'The same as music:album:track but in reverse...',\n    },\n    { type: 'input', label: 'Musician', key: 'music:musician', placeholder: 'The musician that made this song...' },\n    {\n      type: 'input',\n      label: 'Release date',\n      key: 'music:release_date',\n      placeholder: 'The date the album was released...',\n    },\n  ],\n};\n"
  },
  {
    "path": "src/tools/meta-tag-generator/og-schemas/musicPlaylist.ts",
    "content": "import type { OGSchemaType } from '../OGSchemaType.type';\n\nexport const musicPlaylist: OGSchemaType = {\n  name: 'Playlist details',\n  elements: [\n    { type: 'input', label: 'Song', key: 'music:song', placeholder: 'The song on this album...' },\n    {\n      type: 'input',\n      label: 'Disc',\n      key: 'music:song:disc',\n      placeholder: 'The same as music:album:disc but in reverse...',\n    },\n    {\n      type: 'input',\n      label: 'Track',\n      key: 'music:song:track',\n      placeholder: 'The same as music:album:track but in reverse...',\n    },\n    { type: 'input', label: 'Creator', key: 'music:creator', placeholder: 'The creator of this playlist...' },\n  ],\n};\n"
  },
  {
    "path": "src/tools/meta-tag-generator/og-schemas/musicRadioStation.ts",
    "content": "import type { OGSchemaType } from '../OGSchemaType.type';\n\nexport const musicRadioStation: OGSchemaType = {\n  name: 'Radio station details',\n  elements: [\n    { type: 'input', label: 'Creator', key: 'music:creator', placeholder: 'The creator of this radio station...' },\n  ],\n};\n"
  },
  {
    "path": "src/tools/meta-tag-generator/og-schemas/musicSong.ts",
    "content": "import type { OGSchemaType } from '../OGSchemaType.type';\n\nexport const musicSong: OGSchemaType = {\n  name: 'Song details',\n  elements: [\n    { type: 'input', label: 'Duration', placeholder: 'The duration of the song...', key: 'music:duration' },\n    { type: 'input', label: 'Album', placeholder: 'The album this song is from...', key: 'music:album' },\n    {\n      type: 'input',\n      label: 'Disc',\n      placeholder: 'Which disc of the album this song is on...',\n      key: 'music:album:disk',\n    },\n    { type: 'input', label: 'Track', placeholder: ' Which track this song is...', key: 'music:album:track' },\n    {\n      type: 'input-multiple',\n      label: 'Musician',\n      placeholder: 'The musician that made this song...',\n      key: 'music:musician',\n    },\n  ],\n};\n"
  },
  {
    "path": "src/tools/meta-tag-generator/og-schemas/profile.ts",
    "content": "import type { OGSchemaType } from '../OGSchemaType.type';\n\nexport const profile: OGSchemaType = {\n  name: 'Profile',\n  elements: [\n    {\n      type: 'input',\n      label: 'First name',\n      placeholder: 'Enter the first name of the person...',\n      key: 'profile:first_name',\n    },\n    {\n      type: 'input',\n      label: 'Last name',\n      placeholder: 'Enter the last name of the person...',\n      key: 'profile:last_name',\n    },\n    { type: 'input', label: 'Username', placeholder: 'Enter the username of the person...', key: 'profile:username' },\n    { type: 'input', label: 'Gender', placeholder: 'Enter the gender of the person...', key: 'profile:gender' },\n  ],\n};\n"
  },
  {
    "path": "src/tools/meta-tag-generator/og-schemas/twitter.ts",
    "content": "import type { OGSchemaType } from '../OGSchemaType.type';\n\nexport const twitter: OGSchemaType = {\n  name: 'Twitter',\n  elements: [\n    {\n      type: 'select',\n      options: [\n        { label: 'Summary', value: 'summary' },\n        { label: 'Summary with large image', value: 'summary_large_image' },\n        { label: 'Application', value: 'app' },\n        { label: 'Player', value: 'player' },\n      ],\n      label: 'Card type',\n      placeholder: 'The Twitter card type...',\n      key: 'twitter:card',\n    },\n    {\n      type: 'input',\n      label: 'Site account',\n      placeholder: 'The name of the Twitter account of the site (ex: @ittoolsdottech)...',\n      key: 'twitter:site',\n    },\n    {\n      type: 'input',\n      label: 'Creator acc.',\n      placeholder: 'The name of the Twitter account of the creator (ex: @cthmsst)...',\n      key: 'twitter:creator',\n    },\n  ],\n};\n"
  },
  {
    "path": "src/tools/meta-tag-generator/og-schemas/videoEpisode.ts",
    "content": "import type { OGSchemaType } from '../OGSchemaType.type';\nimport { videoMovie } from './videoMovie';\n\nexport const videoEpisode: OGSchemaType = {\n  name: 'Video episode details',\n  elements: [\n    ...videoMovie.elements,\n    { type: 'input', label: 'Series', key: 'video:series', placeholder: 'Which series this episode belongs to...' },\n  ],\n};\n"
  },
  {
    "path": "src/tools/meta-tag-generator/og-schemas/videoMovie.ts",
    "content": "import type { OGSchemaType } from '../OGSchemaType.type';\n\nexport const videoMovie: OGSchemaType = {\n  name: 'Movie details',\n  elements: [\n    {\n      type: 'input-multiple',\n      label: 'Actor',\n      key: 'video:actor',\n      placeholder: 'Name of the actress/actor...',\n    },\n    // { type: 'input', label: 'Actor role', key: 'video:actor:role', placeholder: 'The role they played...' },\n    {\n      type: 'input-multiple',\n      label: 'Director',\n      key: 'video:director',\n      placeholder: 'Name of the director...',\n    },\n    { type: 'input-multiple', label: 'Writer', key: 'video:writer', placeholder: 'Writers of the movie...' },\n    { type: 'input', label: 'Duration', key: 'video:duration', placeholder: 'The movie\\'s length in seconds...' },\n    {\n      type: 'input',\n      label: 'Release date',\n      key: 'video:release_date',\n      placeholder: 'The date the movie was released...',\n    },\n    { type: 'input', label: 'Tag', key: 'video:tag', placeholder: 'Tag words associated with this movie...' },\n  ],\n};\n"
  },
  {
    "path": "src/tools/meta-tag-generator/og-schemas/videoOther.ts",
    "content": "import type { OGSchemaType } from '../OGSchemaType.type';\nimport { videoMovie } from './videoMovie';\n\nexport const videoOther: OGSchemaType = {\n  name: 'Other video details',\n  elements: [...videoMovie.elements],\n};\n"
  },
  {
    "path": "src/tools/meta-tag-generator/og-schemas/videoTVShow.ts",
    "content": "import type { OGSchemaType } from '../OGSchemaType.type';\nimport { videoMovie } from './videoMovie';\n\nexport const videoTVShow: OGSchemaType = {\n  name: 'TV show details',\n  elements: [...videoMovie.elements],\n};\n"
  },
  {
    "path": "src/tools/meta-tag-generator/og-schemas/website.ts",
    "content": "import type { OGSchemaType } from '../OGSchemaType.type';\n\nconst typeOptions = [\n  { label: 'Website', value: 'website' },\n  { label: 'Article', value: 'article' },\n  { label: 'Book', value: 'book' },\n  { label: 'Profile', value: 'profile' },\n  {\n    type: 'group',\n    label: 'Music',\n    key: 'Music',\n    children: [\n      { label: 'Song', value: 'music.song' },\n      { label: 'Music album', value: 'music.album' },\n      { label: 'Playlist', value: 'music.playlist' },\n      { label: 'Radio station', value: 'music.radio_station' },\n    ],\n  },\n  {\n    type: 'group',\n    label: 'Video',\n    key: 'Video',\n    children: [\n      { label: 'Movie', value: 'video.movie' },\n      { label: 'Episode', value: 'video.episode' },\n      { label: 'TV show', value: 'video.tv_show' },\n      { label: 'Other video', value: 'video.other' },\n    ],\n  },\n];\n\nexport const website: OGSchemaType = {\n  name: 'General information',\n  elements: [\n    {\n      type: 'select',\n      label: 'Page type',\n      placeholder: 'Select the type of your website...',\n      key: 'type',\n      options: typeOptions,\n    },\n    { type: 'input', label: 'Title', placeholder: 'Enter the title of your website...', key: 'title' },\n    {\n      type: 'input',\n      label: 'Description',\n      placeholder: 'Enter the description of your website...',\n      key: 'description',\n    },\n    {\n      type: 'input',\n      label: 'Page URL',\n      placeholder: 'Enter the url of your website...',\n      key: 'url',\n    },\n  ],\n};\n"
  },
  {
    "path": "src/tools/mime-types/index.ts",
    "content": "import { World } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.mime-types.title'),\n  path: '/mime-types',\n  description: translate('tools.mime-types.description'),\n  keywords: ['mime', 'types', 'extension', 'content', 'type'],\n  component: () => import('./mime-types.vue'),\n  icon: World,\n});\n"
  },
  {
    "path": "src/tools/mime-types/mime-types.vue",
    "content": "<script setup lang=\"ts\">\nimport { types as extensionToMimeType, extensions as mimeTypeToExtension } from 'mime-types';\n\nconst mimeInfos = Object.entries(mimeTypeToExtension).map(([mimeType, extensions]) => ({ mimeType, extensions }));\n\nconst mimeToExtensionsOptions = Object.keys(mimeTypeToExtension).map(label => ({ label, value: label }));\nconst selectedMimeType = ref(undefined);\n\nconst extensionsFound = computed(() => (selectedMimeType.value ? mimeTypeToExtension[selectedMimeType.value] : []));\n\nconst extensionToMimeTypeOptions = Object.keys(extensionToMimeType).map((label) => {\n  const extension = `.${label}`;\n\n  return { label: extension, value: label };\n});\nconst selectedExtension = ref(undefined);\n\nconst mimeTypeFound = computed(() => (selectedExtension.value ? extensionToMimeType[selectedExtension.value] : []));\n</script>\n\n<template>\n  <c-card>\n    <n-h2 style=\"margin-bottom: 0\">\n      Mime type to extension\n    </n-h2>\n    <div style=\"opacity: 0.8\">\n      Know which file extensions are associated to a mime-type\n    </div>\n    <c-select\n      v-model:value=\"selectedMimeType\"\n      searchable\n      my-4\n      :options=\"mimeToExtensionsOptions\"\n      placeholder=\"Select your mimetype here... (ex: application/pdf)\"\n    />\n\n    <div v-if=\"extensionsFound.length > 0\">\n      Extensions of files with the <n-tag round :bordered=\"false\">\n        {{ selectedMimeType }}\n      </n-tag> mime-type:\n      <div style=\"margin-top: 10px\">\n        <n-tag\n          v-for=\"extension of extensionsFound\"\n          :key=\"extension\"\n          round\n          :bordered=\"false\"\n          type=\"primary\"\n          style=\"margin-right: 10px\"\n        >\n          .{{ extension }}\n        </n-tag>\n      </div>\n    </div>\n  </c-card>\n\n  <c-card>\n    <n-h2 style=\"margin-bottom: 0\">\n      File extension to mime type\n    </n-h2>\n    <div style=\"opacity: 0.8\">\n      Know which mime type is associated to a file extension\n    </div>\n    <c-select\n      v-model:value=\"selectedExtension\"\n      searchable\n      my-4\n      :options=\"extensionToMimeTypeOptions\"\n      placeholder=\"Select your mimetype here... (ex: application/pdf)\"\n    />\n\n    <div v-if=\"selectedExtension\">\n      Mime type associated to the extension <n-tag round :bordered=\"false\">\n        {{ selectedExtension }}\n      </n-tag> file\n      extension:\n      <div style=\"margin-top: 10px\">\n        <n-tag round :bordered=\"false\" type=\"primary\" style=\"margin-right: 10px\">\n          {{ mimeTypeFound }}\n        </n-tag>\n      </div>\n    </div>\n  </c-card>\n\n  <div>\n    <n-table>\n      <thead>\n        <tr>\n          <th>Mime types</th>\n          <th>Extensions</th>\n        </tr>\n      </thead>\n      <tbody>\n        <tr v-for=\"{ mimeType, extensions } of mimeInfos\" :key=\"mimeType\">\n          <td>{{ mimeType }}</td>\n          <td>\n            <n-tag v-for=\"extension of extensions\" :key=\"extension\" round :bordered=\"false\" style=\"margin-right: 10px\">\n              .{{ extension }}\n            </n-tag>\n          </td>\n        </tr>\n      </tbody>\n    </n-table>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/numeronym-generator/index.ts",
    "content": "import { defineTool } from '../tool';\nimport n7mIcon from './n7m-icon.svg?component';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.numeronym-generator.title'),\n  path: '/numeronym-generator',\n  description: translate('tools.numeronym-generator.description'),\n  keywords: ['numeronym', 'generator', 'abbreviation', 'i18n', 'a11y', 'l10n'],\n  component: () => import('./numeronym-generator.vue'),\n  icon: n7mIcon,\n  createdAt: new Date('2023-11-05'),\n});\n"
  },
  {
    "path": "src/tools/numeronym-generator/numeronym-generator.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - Numeronym generator', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/numeronym-generator');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('Numeronym generator - IT Tools');\n  });\n\n  test('a numeronym is generated when a word is entered', async ({ page }) => {\n    await page.getByTestId('word-input').fill('internationalization');\n    const numeronym = await page.getByTestId('numeronym').inputValue();\n\n    expect(numeronym).toEqual('i18n');\n  });\n\n  test('when a word has 3 letters or less, the numeronym is the word itself', async ({ page }) => {\n    await page.getByTestId('word-input').fill('abc');\n    const numeronym = await page.getByTestId('numeronym').inputValue();\n\n    expect(numeronym).toEqual('abc');\n  });\n});\n"
  },
  {
    "path": "src/tools/numeronym-generator/numeronym-generator.service.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { generateNumeronym } from './numeronym-generator.service';\n\ndescribe('numeronym-generator service', () => {\n  describe('generateNumeronym', () => {\n    it('a numeronym of a word is the first letter, the number of letters between the first and the last letter, and the last letter', () => {\n      expect(generateNumeronym('internationalization')).toBe('i18n');\n      expect(generateNumeronym('accessibility')).toBe('a11y');\n      expect(generateNumeronym('localization')).toBe('l10n');\n    });\n    it('a numeronym of a word with 3 letters is the word itself', () => {\n      expect(generateNumeronym('abc')).toBe('abc');\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/numeronym-generator/numeronym-generator.service.ts",
    "content": "export { generateNumeronym };\n\nfunction generateNumeronym(word: string): string {\n  const wordLength = word.length;\n\n  if (wordLength <= 3) {\n    return word;\n  }\n\n  return `${word.at(0)}${wordLength - 2}${word.at(-1)}`;\n}\n"
  },
  {
    "path": "src/tools/numeronym-generator/numeronym-generator.vue",
    "content": "<script setup lang=\"ts\">\nimport { generateNumeronym } from './numeronym-generator.service';\n\nconst word = ref('');\n\nconst numeronym = computed(() => generateNumeronym(word.value));\n</script>\n\n<template>\n  <div flex flex-col items-center gap-4>\n    <c-input-text v-model:value=\"word\" placeholder=\"Enter a word, e.g. 'internationalization'\" size=\"large\" clearable test-id=\"word-input\" />\n\n    <icon-mdi-arrow-down text-30px />\n\n    <input-copyable :value=\"numeronym\" size=\"large\" readonly placeholder=\"Your numeronym will be here, e.g. 'i18n'\" test-id=\"numeronym\" />\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/otp-code-generator-and-validator/index.ts",
    "content": "import { DeviceMobile } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.otp-generator.title'),\n  path: '/otp-generator',\n  description: translate('tools.otp-generator.description'),\n  keywords: [\n    'otp',\n    'code',\n    'generator',\n    'validator',\n    'one',\n    'time',\n    'password',\n    'authentication',\n    'MFA',\n    'mobile',\n    'device',\n    'security',\n    'TOTP',\n    'Time',\n    'HMAC',\n  ],\n  component: () => import('./otp-code-generator-and-validator.vue'),\n  icon: DeviceMobile,\n});\n"
  },
  {
    "path": "src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue",
    "content": "<script setup lang=\"ts\">\nimport { useTimestamp } from '@vueuse/core';\nimport { useThemeVars } from 'naive-ui';\nimport { useQRCode } from '../qr-code-generator/useQRCode';\nimport { base32toHex, buildKeyUri, generateSecret, generateTOTP, getCounterFromTime } from './otp.service';\nimport TokenDisplay from './token-display.vue';\nimport { useStyleStore } from '@/stores/style.store';\nimport InputCopyable from '@/components/InputCopyable.vue';\nimport { computedRefreshable } from '@/composable/computedRefreshable';\n\nconst now = useTimestamp();\nconst interval = computed(() => (now.value / 1000) % 30);\nconst theme = useThemeVars();\nconst styleStore = useStyleStore();\n\nconst secret = ref(generateSecret());\n\nfunction refreshSecret() {\n  secret.value = generateSecret();\n}\n\nconst [tokens] = computedRefreshable(\n  () => ({\n    previous: generateTOTP({ key: secret.value, now: now.value - 30000 }),\n    current: generateTOTP({ key: secret.value, now: now.value }),\n    next: generateTOTP({ key: secret.value, now: now.value + 30000 }),\n  }),\n  { throttle: 500 },\n);\n\nconst keyUri = computed(() => buildKeyUri({ secret: secret.value }));\n\nconst { qrcode } = useQRCode({\n  text: keyUri,\n  color: {\n    background: computed(() => (styleStore.isDarkTheme ? '#ffffff' : '#00000000')),\n    foreground: '#000000',\n  },\n  options: { width: 210 },\n});\n\nconst secretValidationRules = [\n  {\n    message: 'Secret should be a base32 string',\n    validator: (value: string) => value.toUpperCase().match(/^[A-Z234567]+$/),\n  },\n  {\n    message: 'Please set a secret',\n    validator: (value: string) => value !== '',\n  },\n];\n</script>\n\n<template>\n  <div style=\"max-width: 350px\">\n    <c-input-text\n      v-model:value=\"secret\"\n      label=\"Secret\"\n      placeholder=\"Paste your TOTP secret...\"\n      mb-5\n      :validation-rules=\"secretValidationRules\"\n    >\n      <template #suffix>\n        <c-tooltip tooltip=\"Generate a new random secret\">\n          <c-button circle variant=\"text\" size=\"small\" @click=\"refreshSecret\">\n            <icon-mdi-refresh />\n          </c-button>\n        </c-tooltip>\n      </template>\n    </c-input-text>\n\n    <div>\n      <TokenDisplay :tokens=\"tokens\" />\n\n      <n-progress :percentage=\"(100 * interval) / 30\" :color=\"theme.primaryColor\" :show-indicator=\"false\" />\n      <div style=\"text-align: center\">\n        Next in {{ String(Math.floor(30 - interval)).padStart(2, '0') }}s\n      </div>\n    </div>\n    <div mt-4 flex flex-col items-center justify-center gap-3>\n      <n-image :src=\"qrcode\" />\n      <c-button :href=\"keyUri\" target=\"_blank\">\n        Open Key URI in new tab\n      </c-button>\n    </div>\n  </div>\n  <div style=\"max-width: 350px\">\n    <InputCopyable\n      label=\"Secret in hexadecimal\"\n      :value=\"base32toHex(secret)\"\n      readonly\n      placeholder=\"Secret in hex will be displayed here\"\n      mb-5\n    />\n\n    <InputCopyable\n      label=\"Epoch\"\n      :value=\"Math.floor(now / 1000).toString()\"\n      readonly\n      mb-5\n      placeholder=\"Epoch in sec will be displayed here\"\n    />\n\n    <p>Iteration</p>\n\n    <InputCopyable\n      :value=\"String(getCounterFromTime({ now, timeStep: 30 }))\"\n      readonly\n      label=\"Count:\"\n      label-position=\"left\"\n      label-width=\"90px\"\n      label-align=\"right\"\n      placeholder=\"Iteration count will be displayed here\"\n    />\n\n    <InputCopyable\n      :value=\"getCounterFromTime({ now, timeStep: 30 }).toString(16).padStart(16, '0')\"\n      readonly\n      placeholder=\"Iteration count in hex will be displayed here\"\n      label-position=\"left\"\n      label-width=\"90px\"\n      label-align=\"right\"\n      label=\"Padded hex:\"\n    />\n  </div>\n</template>\n\n<style lang=\"less\" scoped>\n.n-progress {\n  margin-top: 10px;\n  ::v-deep(.n-progress-graph-line-fill) {\n    transition-duration: 0.05s !important;\n  }\n}\n\n.token {\n  text-align: center;\n  &.token-current {\n    font-size: 20px;\n  }\n}\n</style>\n"
  },
  {
    "path": "src/tools/otp-code-generator-and-validator/otp-code-generator.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - OTP code generator', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.addInitScript(() => {\n      Date.now = () => 1609477200000; // Jan 1, 2021\n    });\n    await page.goto('/otp-generator');\n  });\n\n  test('Has title', async ({ page }) => {\n    await expect(page).toHaveTitle('OTP code generator - IT Tools');\n  });\n\n  test('Secret hexa value is computed from provided secret', async ({ page }) => {\n    await page.getByPlaceholder('Paste your TOTP secret...').fill('ITTOOLS');\n\n    const secretInHex = await page.getByPlaceholder('Secret in hex will be displayed here').inputValue();\n\n    expect(secretInHex).toEqual('44e6e72e02');\n  });\n\n  test('OTP a generated from the provided secret', async ({ page }) => {\n    await page.getByPlaceholder('Paste your TOTP secret...').fill('ITTOOLS');\n\n    const previousOtp = await page.getByTestId('previous-otp').innerText();\n    const currentOtp = await page.getByTestId('current-otp').innerText();\n    const nextOtp = await page.getByTestId('next-otp').innerText();\n\n    expect(previousOtp.trim()).toEqual('028034');\n    expect(currentOtp.trim()).toEqual('162195');\n    expect(nextOtp.trim()).toEqual('452815');\n  });\n\n  test('You can generate a new random secret', async ({ page }) => {\n    const initialSecret = await page.getByPlaceholder('Paste your TOTP secret...').inputValue();\n    await page\n      .locator('div')\n      .filter({ hasText: /^Secret$/ })\n      .getByRole('button')\n      .click();\n\n    const newSecret = await page.getByPlaceholder('Paste your TOTP secret...').inputValue();\n\n    expect(newSecret).not.toEqual(initialSecret);\n  });\n});\n"
  },
  {
    "path": "src/tools/otp-code-generator-and-validator/otp.service.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport {\n  base32toHex,\n  buildKeyUri,\n  generateHOTP,\n  generateTOTP,\n  hexToBytes,\n  verifyHOTP,\n  verifyTOTP,\n} from './otp.service';\n\ndescribe('otp functions', () => {\n  describe('hexToBytes', () => {\n    it('convert an hexstring to a byte array', () => {\n      expect(hexToBytes('1')).to.eql([1]);\n      expect(hexToBytes('ffffff')).to.eql([255, 255, 255]);\n      expect(hexToBytes('000000000')).to.eql([0, 0, 0, 0, 0]);\n      expect(hexToBytes('a3218bcef89')).to.eql([163, 33, 139, 206, 248, 9]);\n      expect(hexToBytes('063679ca')).toEqual([6, 54, 121, 202]);\n      expect(hexToBytes('0102030405060708090a0b0c0d0e0f')).toEqual([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]);\n    });\n  });\n  describe('base32toHex', () => {\n    it('convert a base32 to hex string', () => {\n      expect(base32toHex('ABCDEF')).to.eql('00443205');\n      expect(base32toHex('7777')).to.eql('ffff0f');\n      expect(base32toHex('JBSWY3DPEHPK3PXP')).to.eql('48656c6c6f21deadbeef');\n    });\n\n    it('case does not matter', () => {\n      expect(base32toHex('ABC')).to.eql(base32toHex('abc'));\n    });\n  });\n\n  describe('generateHOTP', () => {\n    it('generates HOTP codes for a given counter', () => {\n      const key = 'JBSWY3DPEHPK3PXP';\n      const hotpCodes = ['282760', '996554', '602287', '143627', '960129'];\n\n      for (const [counter, code] of hotpCodes.entries()) {\n        expect(generateHOTP({ key, counter })).to.eql(code);\n      }\n    });\n  });\n\n  describe('verifyHOTP', () => {\n    it('validate hotp for a given secret', () => {\n      const key = 'JBSWY3DPEHPK3PXP';\n      const hotpCodes = ['282760', '996554', '602287', '143627', '960129'];\n\n      for (const [counter, token] of hotpCodes.entries()) {\n        expect(verifyHOTP({ token, key, counter, window: 0 })).to.eql(true);\n      }\n\n      expect(verifyHOTP({ token: 'INVALID', key })).to.eql(false);\n    });\n\n    it('does not validate hotp out of sync', () => {\n      const key = 'JBSWY3DPEHPK3PXP';\n      const token = '282760';\n\n      expect(verifyHOTP({ token, key, counter: 5, window: 2 })).to.eql(false);\n      expect(verifyHOTP({ token, key, counter: 5, window: 5 })).to.eql(true);\n    });\n  });\n\n  describe('generateTOTP', () => {\n    it('generates TOTP codes', () => {\n      const key = 'JBSWY3DPEHPK3PXP';\n\n      const codes = [\n        { token: '282760', now: 0 },\n        { token: '341128', now: 1465324707000 },\n        { token: '089029', now: 1365324707000 },\n      ];\n\n      for (const { token, now } of codes) {\n        expect(generateTOTP({ key, now })).to.eql(token);\n      }\n    });\n  });\n\n  describe('verifyTOTP', () => {\n    it('verify TOTP in sync codes against a key', () => {\n      const key = 'JBSWY3DPEHPK3PXP';\n\n      const codes = [\n        { token: '282760', now: 0 },\n        { token: '341128', now: 1465324707000 },\n        { token: '089029', now: 1365324707000 },\n      ];\n\n      for (const { token, now } of codes) {\n        expect(verifyTOTP({ key, token, now })).to.eql(true);\n      }\n    });\n\n    it('does not validate totp out of sync', () => {\n      const key = 'JBSWY3DPEHPK3PXP';\n      const token = '635183';\n      const now = 1661266455000;\n\n      expect(verifyTOTP({ key, token, now, window: 2 })).to.eql(true);\n      expect(verifyTOTP({ key, token, now, window: 1 })).to.eql(false);\n    });\n  });\n\n  describe('buildKeyUri', () => {\n    it('build a key uri string', () => {\n      expect(buildKeyUri({ secret: 'JBSWY3DPEHPK3PXP' })).to.eql(\n        'otpauth://totp/IT-Tools:demo-user?issuer=IT-Tools&secret=JBSWY3DPEHPK3PXP&algorithm=SHA1&digits=6&period=30',\n      );\n\n      expect(\n        buildKeyUri({\n          secret: 'JBSWY3DPEHPK3PXP',\n          app: 'app-name',\n          account: 'account',\n          algorithm: 'algo',\n          digits: 7,\n          period: 10,\n        }),\n      ).to.eql(\n        'otpauth://totp/app-name:account?issuer=app-name&secret=JBSWY3DPEHPK3PXP&algorithm=algo&digits=7&period=10',\n      );\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/otp-code-generator-and-validator/otp.service.ts",
    "content": "import { HmacSHA1, enc } from 'crypto-js';\nimport _ from 'lodash';\nimport { createToken } from '../token-generator/token-generator.service';\n\nexport {\n  generateHOTP,\n  hexToBytes,\n  verifyHOTP,\n  generateTOTP,\n  verifyTOTP,\n  buildKeyUri,\n  generateSecret,\n  base32toHex,\n  getCounterFromTime,\n};\n\nfunction hexToBytes(hex: string) {\n  return (hex.match(/.{1,2}/g) ?? []).map(char => Number.parseInt(char, 16));\n}\n\nfunction computeHMACSha1(message: string, key: string) {\n  return HmacSHA1(enc.Hex.parse(message), enc.Hex.parse(base32toHex(key))).toString(enc.Hex);\n}\n\nfunction base32toHex(base32: string) {\n  const base32Chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';\n\n  const bits = base32\n    .toUpperCase() // Since base 32, we coerce lowercase to uppercase\n    .replace(/=+$/, '')\n    .split('')\n    .map(value => base32Chars.indexOf(value).toString(2).padStart(5, '0'))\n    .join('');\n\n  const hex = (bits.match(/.{1,8}/g) ?? []).map(chunk => Number.parseInt(chunk, 2).toString(16).padStart(2, '0')).join('');\n\n  return hex;\n}\n\nfunction generateHOTP({ key, counter = 0 }: { key: string; counter?: number }) {\n  // Compute HMACdigest\n  const digest = computeHMACSha1(counter.toString(16).padStart(16, '0'), key);\n\n  // Get byte array\n  const bytes = hexToBytes(digest);\n\n  // Truncate\n  const offset = bytes[19] & 0xF;\n  const v\n    = ((bytes[offset] & 0x7F) << 24)\n    | ((bytes[offset + 1] & 0xFF) << 16)\n    | ((bytes[offset + 2] & 0xFF) << 8)\n    | (bytes[offset + 3] & 0xFF);\n\n  const code = String(v % 1000000).padStart(6, '0');\n\n  return code;\n}\n\nfunction verifyHOTP({\n  token,\n  key,\n  window = 0,\n  counter = 0,\n}: {\n  token: string\n  key: string\n  window?: number\n  counter?: number\n}) {\n  for (let i = counter - window; i <= counter + window; ++i) {\n    if (generateHOTP({ key, counter: i }) === token) {\n      return true;\n    }\n  }\n\n  return false;\n}\n\nfunction getCounterFromTime({ now, timeStep }: { now: number; timeStep: number }) {\n  return Math.floor(now / 1000 / timeStep);\n}\n\nfunction generateTOTP({ key, now = Date.now(), timeStep = 30 }: { key: string; now?: number; timeStep?: number }) {\n  const counter = getCounterFromTime({ now, timeStep });\n\n  return generateHOTP({ key, counter });\n}\n\nfunction verifyTOTP({\n  key,\n  token,\n  window = 0,\n  now = Date.now(),\n  timeStep = 30,\n}: {\n  token: string\n  key: string\n  window?: number\n  now?: number\n  timeStep?: number\n}) {\n  const counter = getCounterFromTime({ now, timeStep });\n\n  return verifyHOTP({ token, key, window, counter });\n}\n\nfunction buildKeyUri({\n  secret,\n  app = 'IT-Tools',\n  account = 'demo-user',\n  algorithm = 'SHA1',\n  digits = 6,\n  period = 30,\n}: {\n  secret: string\n  app?: string\n  account?: string\n  algorithm?: string\n  digits?: number\n  period?: number\n}) {\n  const params = {\n    issuer: app,\n    secret,\n    algorithm,\n    digits,\n    period,\n  };\n\n  const paramsString = _(params)\n    .map((value, key) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`)\n    .join('&');\n\n  return `otpauth://totp/${encodeURIComponent(app)}:${encodeURIComponent(account)}?${paramsString}`;\n}\n\nfunction generateSecret() {\n  return createToken({ length: 16, alphabet: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567' });\n}\n"
  },
  {
    "path": "src/tools/otp-code-generator-and-validator/token-display.vue",
    "content": "<script setup lang=\"ts\">\nimport { useCopy } from '@/composable/copy';\n\nconst props = defineProps<{ tokens: { previous: string; current: string; next: string } }>();\nconst { copy: copyPrevious, isJustCopied: previousCopied } = useCopy({ createToast: false });\nconst { copy: copyCurrent, isJustCopied: currentCopied } = useCopy({ createToast: false });\nconst { copy: copyNext, isJustCopied: nextCopied } = useCopy({ createToast: false });\n\nconst { tokens } = toRefs(props);\n</script>\n\n<template>\n  <div>\n    <div mb-5px w-full flex items-center>\n      <div flex-1 text-left>\n        Previous\n      </div>\n      <div flex-1 text-center>\n        Current OTP\n      </div>\n      <div flex-1 text-right>\n        Next\n      </div>\n    </div>\n    <div flex items-center>\n      <c-tooltip :tooltip=\"previousCopied ? 'Copied !' : 'Copy previous OTP'\" position=\"bottom\" flex-1>\n        <c-button data-test-id=\"previous-otp\" w-full important:h-12 important:rounded-r-none important:font-mono @click.prevent=\"copyPrevious(tokens.previous)\">\n          {{ tokens.previous }}\n        </c-button>\n      </c-tooltip>\n      <c-tooltip :tooltip=\"currentCopied ? 'Copied !' : 'Copy current OTP'\" position=\"bottom\" flex-1 flex-basis-5xl>\n        <c-button\n          data-test-id=\"current-otp\" w-full important:border-x=\"1px solid gray op-40\" important:h-12 important:rounded-0 important:text-22px @click.prevent=\"copyCurrent(tokens.current)\"\n        >\n          {{ tokens.current }}\n        </c-button>\n      </c-tooltip>\n      <c-tooltip :tooltip=\"nextCopied ? 'Copied !' : 'Copy next OTP'\" position=\"bottom\" flex-1>\n        <c-button data-test-id=\"next-otp\" w-full important:h-12 important:rounded-l-none @click.prevent=\"copyNext(tokens.next)\">\n          {{ tokens.next }}\n        </c-button>\n      </c-tooltip>\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/password-strength-analyser/index.ts",
    "content": "import { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\nimport PasswordIcon from '~icons/mdi/form-textbox-password';\n\nexport const tool = defineTool({\n  name: translate('tools.password-strength-analyser.title'),\n  path: '/password-strength-analyser',\n  description: translate('tools.password-strength-analyser.description'),\n  keywords: ['password', 'strength', 'analyser', 'and', 'crack', 'time', 'estimation', 'brute', 'force', 'attack', 'entropy', 'cracking', 'hash', 'hashing', 'algorithm', 'algorithms', 'md5', 'sha1', 'sha256', 'sha512', 'bcrypt', 'scrypt', 'argon2', 'argon2id', 'argon2i', 'argon2d'],\n  component: () => import('./password-strength-analyser.vue'),\n  icon: PasswordIcon,\n  createdAt: new Date('2023-06-24'),\n});\n"
  },
  {
    "path": "src/tools/password-strength-analyser/password-strength-analyser.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - Password strength analyser', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/password-strength-analyser');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('Password strength analyser - IT Tools');\n  });\n\n  test('Computes the brute force attack time of a password', async ({ page }) => {\n    await page.getByTestId('password-input').fill('ABCabc123!@#');\n\n    const crackDuration = await page.getByTestId('crack-duration').textContent();\n\n    expect(crackDuration).toEqual('15,091 millennia, 3 centuries');\n  });\n});\n"
  },
  {
    "path": "src/tools/password-strength-analyser/password-strength-analyser.service.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { getCharsetLength } from './password-strength-analyser.service';\n\ndescribe('password-strength-analyser-and-crack-time-estimation', () => {\n  describe('getCharsetLength', () => {\n    describe('computes the charset length of a given password', () => {\n      it('the charset length is 26 when the password is only lowercase characters', () => {\n        expect(getCharsetLength({ password: 'abcdefghijklmnopqrstuvwxyz' })).toBe(26);\n      });\n      it('the charset length is 26 when the password is only uppercase characters', () => {\n        expect(getCharsetLength({ password: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' })).toBe(26);\n      });\n      it('the charset length is 10 when the password is only digits', () => {\n        expect(getCharsetLength({ password: '0123456789' })).toBe(10);\n      });\n      it('the charset length is 32 when the password is only special characters', () => {\n        expect(getCharsetLength({ password: '-_(' })).toBe(32);\n      });\n      it('the charset length is 0 when the password is empty', () => {\n        expect(getCharsetLength({ password: '' })).toBe(0);\n      });\n\n      it('the charset length is 36 when the password is lowercase characters and digits', () => {\n        expect(getCharsetLength({ password: 'abcdefghijklmnopqrstuvwxyz0123456789' })).toBe(36);\n      });\n      it('the charset length is 95 when the password is lowercase characters, uppercase characters, digits and special characters', () => {\n        expect(getCharsetLength({ password: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_(' })).toBe(94);\n      });\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/password-strength-analyser/password-strength-analyser.service.ts",
    "content": "import _ from 'lodash';\n\nexport { getPasswordCrackTimeEstimation, getCharsetLength };\n\nfunction prettifyExponentialNotation(exponentialNotation: number) {\n  const [base, exponent] = exponentialNotation.toString().split('e');\n  const baseAsNumber = Number.parseFloat(base);\n  const prettyBase = baseAsNumber % 1 === 0 ? baseAsNumber.toLocaleString() : baseAsNumber.toFixed(2);\n  return exponent ? `${prettyBase}e${exponent}` : prettyBase;\n}\n\nfunction getHumanFriendlyDuration({ seconds }: { seconds: number }) {\n  if (seconds <= 0.001) {\n    return 'Instantly';\n  }\n\n  if (seconds <= 1) {\n    return 'Less than a second';\n  }\n\n  const timeUnits = [\n    { unit: 'millenium', secondsInUnit: 31536000000, format: prettifyExponentialNotation, plural: 'millennia' },\n    { unit: 'century', secondsInUnit: 3153600000, plural: 'centuries' },\n    { unit: 'decade', secondsInUnit: 315360000, plural: 'decades' },\n    { unit: 'year', secondsInUnit: 31536000, plural: 'years' },\n    { unit: 'month', secondsInUnit: 2592000, plural: 'months' },\n    { unit: 'week', secondsInUnit: 604800, plural: 'weeks' },\n    { unit: 'day', secondsInUnit: 86400, plural: 'days' },\n    { unit: 'hour', secondsInUnit: 3600, plural: 'hours' },\n    { unit: 'minute', secondsInUnit: 60, plural: 'minutes' },\n    { unit: 'second', secondsInUnit: 1, plural: 'seconds' },\n  ];\n\n  return _.chain(timeUnits)\n    .map(({ unit, secondsInUnit, plural, format = _.identity }) => {\n      const quantity = Math.floor(seconds / secondsInUnit);\n      seconds %= secondsInUnit;\n\n      if (quantity <= 0) {\n        return undefined;\n      }\n\n      const formattedQuantity = format(quantity);\n      return `${formattedQuantity} ${quantity > 1 ? plural : unit}`;\n    })\n    .compact()\n    .take(2)\n    .join(', ')\n    .value();\n}\n\nfunction getPasswordCrackTimeEstimation({ password, guessesPerSecond = 1e9 }: { password: string; guessesPerSecond?: number }) {\n  const charsetLength = getCharsetLength({ password });\n  const passwordLength = password.length;\n\n  const entropy = password === '' ? 0 : Math.log2(charsetLength) * passwordLength;\n\n  const secondsToCrack = 2 ** entropy / guessesPerSecond;\n\n  const crackDurationFormatted = getHumanFriendlyDuration({ seconds: secondsToCrack });\n\n  const score = Math.min(entropy / 128, 1);\n\n  return {\n    entropy,\n    charsetLength,\n    passwordLength,\n    crackDurationFormatted,\n    secondsToCrack,\n    score,\n  };\n}\n\nfunction getCharsetLength({ password }: { password: string }) {\n  const hasLowercase = /[a-z]/.test(password);\n  const hasUppercase = /[A-Z]/.test(password);\n  const hasDigits = /\\d/.test(password);\n  const hasSpecialChars = /\\W|_/.test(password);\n\n  let charsetLength = 0;\n\n  if (hasLowercase) {\n    charsetLength += 26;\n  }\n  if (hasUppercase) {\n    charsetLength += 26;\n  }\n  if (hasDigits) {\n    charsetLength += 10;\n  }\n  if (hasSpecialChars) {\n    charsetLength += 32;\n  }\n\n  return charsetLength;\n}\n"
  },
  {
    "path": "src/tools/password-strength-analyser/password-strength-analyser.vue",
    "content": "<script setup lang=\"ts\">\nimport { getPasswordCrackTimeEstimation } from './password-strength-analyser.service';\n\nconst password = ref('');\nconst crackTimeEstimation = computed(() => getPasswordCrackTimeEstimation({ password: password.value }));\n\nconst details = computed(() => [\n  {\n    label: 'Password length:',\n    value: crackTimeEstimation.value.passwordLength,\n  },\n  {\n    label: 'Entropy:',\n    value: Math.round(crackTimeEstimation.value.entropy * 100) / 100,\n  },\n  {\n    label: 'Character set size:',\n    value: crackTimeEstimation.value.charsetLength,\n  },\n  {\n    label: 'Score:',\n    value: `${Math.round(crackTimeEstimation.value.score * 100)} / 100`,\n  },\n]);\n</script>\n\n<template>\n  <div flex flex-col gap-3>\n    <c-input-text\n      v-model:value=\"password\"\n      type=\"password\"\n      placeholder=\"Enter a password...\"\n      clearable\n      autofocus\n      raw-text\n      test-id=\"password-input\"\n    />\n\n    <c-card text-center>\n      <div op-60>\n        Duration to crack this password with brute force\n      </div>\n      <div text-2xl data-test-id=\"crack-duration\">\n        {{ crackTimeEstimation.crackDurationFormatted }}\n      </div>\n    </c-card>\n    <c-card>\n      <div v-for=\"({ label, value }) of details\" :key=\"label\" flex gap-3>\n        <div flex-1 text-right op-60>\n          {{ label }}\n        </div>\n        <div flex-1 text-left>\n          {{ value }}\n        </div>\n      </div>\n    </c-card>\n    <div op-70>\n      <span font-bold>Note: </span>\n      The computed strength is based on the time it would take to crack the password using a brute force approach, it does not take into account the possibility of a dictionary attack.\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/pdf-signature-checker/components/pdf-signature-details.vue",
    "content": "<script setup lang=\"ts\">\nimport type { SignatureInfo } from '../pdf-signature-checker.types';\n\nconst props = defineProps<{ signature: SignatureInfo }>();\nconst { signature } = toRefs(props);\n\nconst tableHeaders = {\n  validityPeriod: 'Validity period',\n  issuedBy: 'Issued by',\n  issuedTo: 'Issued to',\n  pemCertificate: 'PEM certificate',\n};\n\nconst certs = computed(() => signature.value.meta.certs.map((certificate, index) => ({\n  ...certificate,\n  validityPeriod: {\n    notBefore: new Date(certificate.validityPeriod.notBefore).toLocaleString(),\n    notAfter: new Date(certificate.validityPeriod.notAfter).toLocaleString(),\n  },\n  certificateName: `Certificate ${index + 1}`,\n})),\n);\n</script>\n\n<template>\n  <div flex flex-col gap-2>\n    <c-table :data=\"certs\" :headers=\"tableHeaders\">\n      <template #validityPeriod=\"{ value }\">\n        <c-key-value-list\n          :items=\"[{\n            label: 'Not before',\n            value: value.notBefore,\n          }, {\n            label: 'Not after',\n            value: value.notAfter,\n          }]\"\n        />\n      </template>\n\n      <template #issuedBy=\"{ value }\">\n        <c-key-value-list\n          :items=\"[{\n            label: 'Common name',\n            value: value.commonName,\n          }, {\n            label: 'Organization name',\n            value: value.organizationName,\n          }, {\n            label: 'Country name',\n            value: value.countryName,\n          }, {\n            label: 'Locality name',\n            value: value.localityName,\n          }, {\n            label: 'Organizational unit name',\n            value: value.organizationalUnitName,\n          }, {\n            label: 'State or province name',\n            value: value.stateOrProvinceName,\n          }]\"\n        />\n      </template>\n\n      <template #issuedTo=\"{ value }\">\n        <c-key-value-list\n          :items=\"[{\n            label: 'Common name',\n            value: value.commonName,\n          }, {\n            label: 'Organization name',\n            value: value.organizationName,\n          }, {\n            label: 'Country name',\n            value: value.countryName,\n          }, {\n            label: 'Locality name',\n            value: value.localityName,\n          }, {\n            label: 'Organizational unit name',\n            value: value.organizationalUnitName,\n          }, {\n            label: 'State or province name',\n            value: value.stateOrProvinceName,\n          }]\"\n        />\n      </template>\n\n      <template #pemCertificate=\"{ value }\">\n        <c-modal-value :value=\"value\" label=\"View PEM cert\">\n          <template #value>\n            <div break-all text-xs>\n              {{ value }}\n            </div>\n          </template>\n        </c-modal-value>\n      </template>\n    </c-table>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/pdf-signature-checker/index.ts",
    "content": "import { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\nimport FileCertIcon from '~icons/mdi/file-certificate-outline';\n\nexport const tool = defineTool({\n  name: translate('tools.pdf-signature-checker.title'),\n  path: '/pdf-signature-checker',\n  description: translate('tools.pdf-signature-checker.description'),\n  keywords: ['pdf', 'signature', 'checker', 'verify', 'validate', 'sign'],\n  component: () => import('./pdf-signature-checker.vue'),\n  icon: FileCertIcon,\n  createdAt: new Date('2023-12-09'),\n});\n"
  },
  {
    "path": "src/tools/pdf-signature-checker/pdf-signature-checker.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - Pdf signature checker', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/pdf-signature-checker');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('PDF signature checker - IT Tools');\n  });\n});\n"
  },
  {
    "path": "src/tools/pdf-signature-checker/pdf-signature-checker.types.ts",
    "content": "export interface SignatureInfo {\n  verified: boolean\n  authenticity: boolean\n  integrity: boolean\n  expired: boolean\n  meta: {\n    certs: {\n      clientCertificate?: boolean\n      issuedBy: {\n        commonName: string\n        organizationalUnitName?: string\n        organizationName: string\n        countryName?: string\n        localityName?: string\n        stateOrProvinceName?: string\n      }\n      issuedTo: {\n        commonName: string\n        serialNumber?: string\n        organizationalUnitName?: string\n        organizationName: string\n        countryName?: string\n        localityName?: string\n        stateOrProvinceName?: string\n      }\n      validityPeriod: {\n        notBefore: string\n        notAfter: string\n      }\n      pemCertificate: string\n    }[]\n    signatureMeta: {\n      reason: string\n      contactInfo: string | null\n      location: string\n      name: string | null\n    }\n  }\n}\n"
  },
  {
    "path": "src/tools/pdf-signature-checker/pdf-signature-checker.vue",
    "content": "<script setup lang=\"ts\">\nimport verifyPDF from 'pdf-signature-reader';\nimport type { SignatureInfo } from './pdf-signature-checker.types';\nimport { formatBytes } from '@/utils/convert';\n\nconst signatures = ref<SignatureInfo[]>([]);\nconst status = ref<'idle' | 'parsed' | 'error' | 'loading'>('idle');\nconst file = ref<File | null>(null);\n\nasync function onVerifyClicked(uploadedFile: File) {\n  file.value = uploadedFile;\n  const fileBuffer = await uploadedFile.arrayBuffer();\n\n  status.value = 'loading';\n  try {\n    const { signatures: parsedSignatures } = verifyPDF(fileBuffer);\n    signatures.value = parsedSignatures;\n    status.value = 'parsed';\n  }\n  catch (e) {\n    signatures.value = [];\n    status.value = 'error';\n  }\n}\n</script>\n\n<template>\n  <div style=\"flex: 0 0 100%\">\n    <div mx-auto max-w-600px>\n      <c-file-upload title=\"Drag and drop a PDF file here, or click to select a file\" accept=\".pdf\" @file-upload=\"onVerifyClicked\" />\n\n      <c-card v-if=\"file\" mt-4 flex gap-2>\n        <div font-bold>\n          {{ file.name }}\n        </div>\n\n        <div>\n          {{ formatBytes(file.size) }}\n        </div>\n      </c-card>\n\n      <div v-if=\"status === 'error'\">\n        <c-alert mt-4>\n          No signatures found in the provided file.\n        </c-alert>\n      </div>\n    </div>\n  </div>\n\n  <div v-if=\"status === 'parsed' && signatures.length\" style=\"flex: 0 0 100%\" mt-5 flex flex-col gap-4>\n    <div v-for=\"(signature, index) of signatures\" :key=\"index\">\n      <div mb-2 font-bold>\n        Signature {{ index + 1 }} certificates :\n      </div>\n\n      <pdf-signature-details :signature=\"signature\" />\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/percentage-calculator/index.ts",
    "content": "import { Percentage } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.percentage-calculator.title'),\n  path: '/percentage-calculator',\n  description: translate('tools.percentage-calculator.description'),\n  keywords: ['percentage', 'calculator', 'calculate', 'value', 'number', '%'],\n  component: () => import('./percentage-calculator.vue'),\n  icon: Percentage,\n  createdAt: new Date('2023-06-18'),\n});\n"
  },
  {
    "path": "src/tools/percentage-calculator/percentage-calculator.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - Percentage calculator', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/percentage-calculator');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('Percentage calculator - IT Tools');\n  });\n\n  test('Correctly works out percentages', async ({ page }) => {\n    await page.getByTestId('percentageX').locator('input').fill('123');\n    await page.getByTestId('percentageY').locator('input').fill('456');\n    await expect(page.getByTestId('percentageResult').locator('input')).toHaveValue('560.88');\n\n    await page.getByTestId('numberX').locator('input').fill('123');\n    await page.getByTestId('numberY').locator('input').fill('456');\n    await expect(page.getByTestId('numberResult').locator('input')).toHaveValue('26.973684210526315');\n\n    await page.getByTestId('numberFrom').locator('input').fill('123');\n    await page.getByTestId('numberTo').locator('input').fill('456');\n    await expect(page.getByTestId('percentageIncreaseDecrease').locator('input')).toHaveValue('270.7317073170732');\n  });\n\n  test('Displays empty results for incomplete input', async ({ page }) => {\n    await page.getByTestId('percentageX').locator('input').fill('123');\n    await expect(page.getByTestId('percentageResult').locator('input')).toHaveValue('');\n\n    await page.getByTestId('numberY').locator('input').fill('456');\n    await expect(page.getByTestId('numberResult').locator('input')).toHaveValue('');\n\n    await page.getByTestId('numberFrom').locator('input').fill('123');\n    await expect(page.getByTestId('percentageIncreaseDecrease').locator('input')).toHaveValue('');\n  });\n});\n"
  },
  {
    "path": "src/tools/percentage-calculator/percentage-calculator.vue",
    "content": "<script setup lang=\"ts\">\nconst percentageX = ref();\nconst percentageY = ref();\nconst percentageResult = computed(() => {\n  if (percentageX.value === undefined || percentageY.value === undefined) {\n    return '';\n  }\n  return (percentageX.value / 100 * percentageY.value).toString();\n});\n\nconst numberX = ref();\nconst numberY = ref();\nconst numberResult = computed(() => {\n  if (numberX.value === undefined || numberY.value === undefined) {\n    return '';\n  }\n  const result = 100 * numberX.value / numberY.value;\n  return (!Number.isFinite(result) || Number.isNaN(result)) ? '' : result.toString();\n});\n\nconst numberFrom = ref();\nconst numberTo = ref();\nconst percentageIncreaseDecrease = computed(() => {\n  if (numberFrom.value === undefined || numberTo.value === undefined) {\n    return '';\n  }\n  const result = (numberTo.value - numberFrom.value) / numberFrom.value * 100;\n  return (!Number.isFinite(result) || Number.isNaN(result)) ? '' : result.toString();\n});\n</script>\n\n<template>\n  <div style=\"flex: 0 0 100%\">\n    <div style=\"margin: 0 auto; max-width: 600px\">\n      <c-card mb-3>\n        <div mb-3 sm:hidden>\n          What is\n        </div>\n        <div flex gap-2>\n          <div hidden pt-1 sm:block style=\"min-width: 48px;\">\n            What is\n          </div>\n          <n-input-number v-model:value=\"percentageX\" data-test-id=\"percentageX\" placeholder=\"X\" />\n          <div min-w-fit pt-1>\n            % of\n          </div>\n          <n-input-number v-model:value=\"percentageY\" data-test-id=\"percentageY\" placeholder=\"Y\" />\n          <input-copyable v-model:value=\"percentageResult\" data-test-id=\"percentageResult\" readonly placeholder=\"Result\" style=\"max-width: 150px;\" />\n        </div>\n      </c-card>\n\n      <c-card mb-3>\n        <div mb-3 sm:hidden>\n          X is what percent of Y\n        </div>\n        <div flex gap-2>\n          <n-input-number v-model:value=\"numberX\" data-test-id=\"numberX\" placeholder=\"X\" />\n          <div hidden min-w-fit pt-1 sm:block>\n            is what percent of\n          </div>\n          <n-input-number v-model:value=\"numberY\" data-test-id=\"numberY\" placeholder=\"Y\" />\n          <input-copyable v-model:value=\"numberResult\" data-test-id=\"numberResult\" readonly placeholder=\"Result\" style=\"max-width: 150px;\" />\n        </div>\n      </c-card>\n\n      <c-card mb-3>\n        <div mb-3>\n          What is the percentage increase/decrease\n        </div>\n        <div flex gap-2>\n          <n-input-number v-model:value=\"numberFrom\" data-test-id=\"numberFrom\" placeholder=\"From\" />\n          <n-input-number v-model:value=\"numberTo\" data-test-id=\"numberTo\" placeholder=\"To\" />\n          <input-copyable v-model:value=\"percentageIncreaseDecrease\" data-test-id=\"percentageIncreaseDecrease\" readonly placeholder=\"Result\" style=\"max-width: 150px;\" />\n        </div>\n      </c-card>\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/phone-parser-and-formatter/index.ts",
    "content": "import { Phone } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.phone-parser-and-formatter.title'),\n  path: '/phone-parser-and-formatter',\n  description: translate('tools.phone-parser-and-formatter.description'),\n  keywords: [\n    'phone',\n    'parser',\n    'formatter',\n    'validate',\n    'format',\n    'number',\n    'telephone',\n    'mobile',\n    'cell',\n    'international',\n    'national',\n  ],\n  component: () => import('./phone-parser-and-formatter.vue'),\n  icon: Phone,\n  createdAt: new Date('2023-05-01'),\n});\n"
  },
  {
    "path": "src/tools/phone-parser-and-formatter/phone-parser-and-formatter.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - Phone parser and formatter', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/phone-parser-and-formatter');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('Phone parser and formatter - IT Tools');\n  });\n});\n"
  },
  {
    "path": "src/tools/phone-parser-and-formatter/phone-parser-and-formatter.models.ts",
    "content": "import type { CountryCode, NumberType } from 'libphonenumber-js/types';\nimport lookup from 'country-code-lookup';\n\nexport { formatTypeToHumanReadable, getFullCountryName, getDefaultCountryCode };\n\nconst typeToLabel: Record<NonNullable<NumberType>, string> = {\n  MOBILE: 'Mobile',\n  FIXED_LINE: 'Fixed line',\n  FIXED_LINE_OR_MOBILE: 'Fixed line or mobile',\n  PERSONAL_NUMBER: 'Personal number',\n  PREMIUM_RATE: 'Premium rate',\n  SHARED_COST: 'Shared cost',\n  TOLL_FREE: 'Toll free',\n  UAN: 'Universal access number',\n  VOICEMAIL: 'Voicemail',\n  VOIP: 'VoIP',\n  PAGER: 'Pager',\n};\n\nfunction formatTypeToHumanReadable(type: NumberType): string | undefined {\n  if (!type) {\n    return undefined;\n  }\n\n  return typeToLabel[type];\n}\n\nfunction getFullCountryName(countryCode: string | undefined) {\n  if (!countryCode) {\n    return undefined;\n  }\n\n  return lookup.byIso(countryCode)?.country;\n}\n\nfunction getDefaultCountryCode({\n  locale = window.navigator.language,\n  defaultCode = 'FR',\n}: { locale?: string; defaultCode?: CountryCode } = {}): CountryCode {\n  const countryCode = locale.split('-')[1]?.toUpperCase();\n\n  if (!countryCode) {\n    return defaultCode;\n  }\n\n  return (lookup.byIso(countryCode)?.iso2 ?? defaultCode) as CountryCode;\n}\n"
  },
  {
    "path": "src/tools/phone-parser-and-formatter/phone-parser-and-formatter.vue",
    "content": "<script setup lang=\"ts\">\nimport { getCountries, getCountryCallingCode, parsePhoneNumber } from 'libphonenumber-js/max';\nimport lookup from 'country-code-lookup';\nimport {\n  formatTypeToHumanReadable,\n  getDefaultCountryCode,\n  getFullCountryName,\n} from './phone-parser-and-formatter.models';\nimport { withDefaultOnError } from '@/utils/defaults';\nimport { booleanToHumanReadable } from '@/utils/boolean';\nimport { useValidation } from '@/composable/validation';\n\nconst rawPhone = ref('');\nconst defaultCountryCode = ref(getDefaultCountryCode());\nconst validation = useValidation({\n  source: rawPhone,\n  rules: [\n    {\n      validator: value => value === '' || /^[0-9 +\\-()]+$/.test(value),\n      message: 'Invalid phone number',\n    },\n  ],\n});\n\nconst parsedDetails = computed(() => {\n  if (!validation.isValid) {\n    return undefined;\n  }\n\n  const parsed = withDefaultOnError(() => parsePhoneNumber(rawPhone.value, defaultCountryCode.value), undefined);\n\n  if (!parsed) {\n    return undefined;\n  }\n\n  return [\n    {\n      label: 'Country',\n      value: parsed.country,\n    },\n    {\n      label: 'Country',\n      value: getFullCountryName(parsed.country),\n    },\n    {\n      label: 'Country calling code',\n      value: parsed.countryCallingCode,\n    },\n    {\n      label: 'Is valid?',\n      value: booleanToHumanReadable(parsed.isValid()),\n    },\n    {\n      label: 'Is possible?',\n      value: booleanToHumanReadable(parsed.isPossible()),\n    },\n    {\n      label: 'Type',\n      value: formatTypeToHumanReadable(parsed.getType()),\n    },\n    {\n      label: 'International format',\n      value: parsed.formatInternational(),\n    },\n    {\n      label: 'National format',\n      value: parsed.formatNational(),\n    },\n    {\n      label: 'E.164 format',\n      value: parsed.format('E.164'),\n    },\n    {\n      label: 'RFC3966 format',\n      value: parsed.format('RFC3966'),\n    },\n  ];\n});\n\nconst countriesOptions = getCountries().map(code => ({\n  label: `${lookup.byIso(code)?.country || code} (+${getCountryCallingCode(code)})`,\n  value: code,\n}));\n</script>\n\n<template>\n  <div>\n    <c-select v-model:value=\"defaultCountryCode\" label=\"Default country code:\" :options=\"countriesOptions\" searchable mb-5 />\n\n    <c-input-text\n      v-model:value=\"rawPhone\"\n      placeholder=\"Enter a phone number\"\n      label=\"Phone number:\"\n      :validation=\"validation\"\n      mb-5\n    />\n\n    <n-table v-if=\"parsedDetails\">\n      <tbody>\n        <tr v-for=\"{ label, value } in parsedDetails\" :key=\"label\">\n          <td font-bold>\n            {{ label }}\n          </td>\n          <td>\n            <span-copyable v-if=\"value\" :value=\"value\" />\n            <span v-else op-70>\n              Unknown\n            </span>\n          </td>\n        </tr>\n      </tbody>\n    </n-table>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/qr-code-generator/index.ts",
    "content": "import { Qrcode } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.qrcode-generator.title'),\n  path: '/qrcode-generator',\n  description: translate('tools.qrcode-generator.description'),\n  keywords: ['qr', 'code', 'generator', 'square', 'color', 'link', 'low', 'medium', 'quartile', 'high', 'transparent'],\n  component: () => import('./qr-code-generator.vue'),\n  icon: Qrcode,\n});\n"
  },
  {
    "path": "src/tools/qr-code-generator/qr-code-generator.vue",
    "content": "<script setup lang=\"ts\">\nimport type { QRCodeErrorCorrectionLevel } from 'qrcode';\nimport { useQRCode } from './useQRCode';\nimport { useDownloadFileFromBase64 } from '@/composable/downloadBase64';\n\nconst foreground = ref('#000000ff');\nconst background = ref('#ffffffff');\nconst errorCorrectionLevel = ref<QRCodeErrorCorrectionLevel>('medium');\n\nconst errorCorrectionLevels = ['low', 'medium', 'quartile', 'high'];\n\nconst text = ref('https://it-tools.tech');\nconst { qrcode } = useQRCode({\n  text,\n  color: {\n    background,\n    foreground,\n  },\n  errorCorrectionLevel,\n  options: { width: 1024 },\n});\n\nconst { download } = useDownloadFileFromBase64({ source: qrcode, filename: 'qr-code.png' });\n</script>\n\n<template>\n  <c-card>\n    <n-grid x-gap=\"12\" y-gap=\"12\" cols=\"1 600:3\">\n      <n-gi span=\"2\">\n        <c-input-text\n          v-model:value=\"text\"\n          label-position=\"left\"\n          label-width=\"130px\"\n          label-align=\"right\"\n          label=\"Text:\"\n          multiline\n          rows=\"1\"\n          autosize\n          placeholder=\"Your link or text...\"\n          mb-6\n        />\n        <n-form label-width=\"130\" label-placement=\"left\">\n          <n-form-item label=\"Foreground color:\">\n            <n-color-picker v-model:value=\"foreground\" :modes=\"['hex']\" />\n          </n-form-item>\n          <n-form-item label=\"Background color:\">\n            <n-color-picker v-model:value=\"background\" :modes=\"['hex']\" />\n          </n-form-item>\n          <c-select\n            v-model:value=\"errorCorrectionLevel\"\n            label=\"Error resistance:\"\n            label-position=\"left\"\n            label-width=\"130px\"\n            label-align=\"right\"\n            :options=\"errorCorrectionLevels.map((value) => ({ label: value, value }))\"\n          />\n        </n-form>\n      </n-gi>\n      <n-gi>\n        <div flex flex-col items-center gap-3>\n          <n-image :src=\"qrcode\" width=\"200\" />\n          <c-button @click=\"download\">\n            Download qr-code\n          </c-button>\n        </div>\n      </n-gi>\n    </n-grid>\n  </c-card>\n</template>\n"
  },
  {
    "path": "src/tools/qr-code-generator/useQRCode.ts",
    "content": "import { type MaybeRef, get } from '@vueuse/core';\nimport QRCode, { type QRCodeErrorCorrectionLevel, type QRCodeToDataURLOptions } from 'qrcode';\nimport { isRef, ref, watch } from 'vue';\n\nexport function useQRCode({\n  text,\n  color: { background, foreground },\n  errorCorrectionLevel,\n  options,\n}: {\n  text: MaybeRef<string>\n  color: { foreground: MaybeRef<string>; background: MaybeRef<string> }\n  errorCorrectionLevel?: MaybeRef<QRCodeErrorCorrectionLevel>\n  options?: QRCodeToDataURLOptions\n}) {\n  const qrcode = ref('');\n\n  watch(\n    [text, background, foreground, errorCorrectionLevel].filter(isRef),\n    async () => {\n      if (get(text)) {\n        qrcode.value = await QRCode.toDataURL(get(text).trim(), {\n          color: {\n            dark: get(foreground),\n            light: get(background),\n            ...options?.color,\n          },\n          errorCorrectionLevel: get(errorCorrectionLevel) ?? 'M',\n          ...options,\n        });\n      }\n    },\n    { immediate: true },\n  );\n\n  return { qrcode };\n}\n"
  },
  {
    "path": "src/tools/random-port-generator/index.ts",
    "content": "import { Server } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.random-port-generator.title'),\n  path: '/random-port-generator',\n  description: translate('tools.random-port-generator.description'),\n  keywords: ['system', 'port', 'lan', 'generator', 'random', 'development', 'computer'],\n  component: () => import('./random-port-generator.vue'),\n  icon: Server,\n});\n"
  },
  {
    "path": "src/tools/random-port-generator/random-port-generator.model.ts",
    "content": "import { randIntFromInterval } from '@/utils/random';\n\nexport const generatePort = () => randIntFromInterval(1024, 65535);\n"
  },
  {
    "path": "src/tools/random-port-generator/random-port-generator.vue",
    "content": "<script setup lang=\"ts\">\nimport { generatePort } from './random-port-generator.model';\nimport { computedRefreshable } from '@/composable/computedRefreshable';\nimport { useCopy } from '@/composable/copy';\n\nconst [port, refreshPort] = computedRefreshable(() => String(generatePort()));\n\nconst { copy } = useCopy({ source: port, text: 'Port copied to the clipboard' });\n</script>\n\n<template>\n  <c-card>\n    <div class=\"port\">\n      {{ port }}\n    </div>\n    <div flex justify-center gap-3>\n      <c-button @click=\"copy()\">\n        Copy\n      </c-button>\n      <c-button @click=\"refreshPort\">\n        Refresh\n      </c-button>\n    </div>\n  </c-card>\n</template>\n\n<style lang=\"less\" scoped>\n.port {\n  text-align: center;\n  font-size: 26px;\n  font-weight: 400;\n  margin: 10px 0 25px;\n}\n</style>\n"
  },
  {
    "path": "src/tools/regex-memo/index.ts",
    "content": "import { BrandJavascript } from '@vicons/tabler';\nimport { defineTool } from '../tool';\n\nexport const tool = defineTool({\n  name: 'Regex cheatsheet',\n  path: '/regex-memo',\n  description: 'Javascript Regex/Regular Expression cheatsheet',\n  keywords: ['regex', 'regular', 'expression', 'javascript', 'memo', 'cheatsheet'],\n  component: () => import('./regex-memo.vue'),\n  icon: BrandJavascript,\n  createdAt: new Date('2024-09-20'),\n});\n"
  },
  {
    "path": "src/tools/regex-memo/regex-memo.content.md",
    "content": "### Normal characters\n\nExpression | Description\n:--|:--\n`.` or `[^\\n\\r]` | any character *excluding* a newline or carriage return\n`[A-Za-z]` | alphabet\n`[a-z]` | lowercase alphabet\n`[A-Z]` | uppercase alphabet\n`\\d` or `[0-9]` | digit\n`\\D` or `[^0-9]` | non-digit\n`_` | underscore\n`\\w` or `[A-Za-z0-9_]` | alphabet, digit or underscore\n`\\W` or `[^A-Za-z0-9_]` | inverse of `\\w`\n`\\S` | inverse of `\\s`\n\n### Whitespace characters\n\nExpression | Description\n:--|:--\n` ` | space\n`\\t` | tab\n`\\n` | newline\n`\\r` | carriage return\n`\\s` | space, tab, newline or carriage return\n\n### Character set\n\nExpression | Description\n:--|:--\n`[xyz]` | either `x`, `y` or `z`\n`[^xyz]` | neither `x`, `y` nor `z`\n`[1-3]` | either `1`, `2` or `3`\n`[^1-3]` | neither `1`, `2` nor `3`\n\n- Think of a character set as an `OR` operation on the single characters that are enclosed between the square brackets.\n- Use `^` after the opening `[` to “negate” the character set.\n- Within a character set, `.` means a literal period.\n\n### Characters that require escaping\n\n#### Outside a character set\n\nExpression | Description\n:--|:--\n`\\.` | period\n`\\^` | caret\n`\\$` | dollar sign\n`\\|` | pipe\n`\\\\` | back slash\n`\\/` | forward slash\n`\\(` | opening bracket\n`\\)` | closing bracket\n`\\[` | opening square bracket\n`\\]` | closing square bracket\n`\\{` | opening curly bracket\n`\\}` | closing curly bracket\n\n#### Inside a character set\n\nExpression | Description\n:--|:--\n`\\\\` | back slash\n`\\]` | closing square bracket\n\n- A `^` must be escaped only if it occurs immediately after the opening `[` of the character set.\n- A `-` must be escaped only if it occurs between two alphabets or two digits.\n\n### Quantifiers\n\nExpression | Description\n:--|:--\n`{2}` | exactly 2\n`{2,}` | at least 2\n`{2,7}` | at least 2 but no more than 7\n`*` | 0 or more\n`+` | 1 or more\n`?` | exactly 0 or 1\n\n- The quantifier goes *after* the expression to be quantified.\n\n### Boundaries\n\nExpression | Description\n:--|:--\n`^` | start of string\n`$` | end of string\n`\\b` | word boundary\n\n- How word boundary matching works:\n    - At the beginning of the string if the first character is `\\w`.\n    - Between two adjacent characters within the string, if the first character is `\\w` and the second character is `\\W`.\n    - At the end of the string if the last character is `\\w`.\n\n### Matching\n\nExpression | Description\n:--|:--\n`foo\\|bar` | match either `foo` or `bar`\n`foo(?=bar)` | match `foo` if it’s before `bar`\n`foo(?!bar)` | match `foo` if it’s *not* before `bar`\n`(?<=bar)foo` | match `foo` if it’s after `bar`\n`(?<!bar)foo` | match `foo` if it’s *not* after `bar`\n\n### Grouping and capturing\n\nExpression | Description\n:--|:--\n`(foo)` | capturing group; match and capture `foo`\n`(?:foo)` | non-capturing group; match `foo` but *without* capturing `foo`\n`(foo)bar\\1` | `\\1` is a backreference to the 1st capturing group; match `foobarfoo`\n\n- Capturing groups are only relevant in the following methods:\n    - `string.match(regexp)`\n    - `string.matchAll(regexp)`\n    - `string.replace(regexp, callback)`\n- `\\N` is a backreference to the `Nth` capturing group. Capturing groups are numbered starting from 1.\n\n## References and tools\n\n- [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions)\n- [RegExplained](https://leaverou.github.io/regexplained/)\n"
  },
  {
    "path": "src/tools/regex-memo/regex-memo.vue",
    "content": "<script setup lang=\"ts\">\nimport { useThemeVars } from 'naive-ui';\nimport Memo from './regex-memo.content.md';\n\nconst themeVars = useThemeVars();\n</script>\n\n<template>\n  <div>\n    <Memo />\n  </div>\n</template>\n\n<style lang=\"less\" scoped>\n::v-deep(pre) {\n  margin: 0;\n  padding: 15px 22px;\n  background-color: v-bind('themeVars.cardColor');\n  border-radius: 4px;\n  overflow: auto;\n}\n::v-deep(table) {\n  border-collapse: collapse;\n}\n::v-deep(table), ::v-deep(td), ::v-deep(th) {\n  border: 1px solid v-bind('themeVars.textColor1');\n  padding: 5px;\n}\n::v-deep(a) {\n  color: v-bind('themeVars.textColor1');\n}\n</style>\n"
  },
  {
    "path": "src/tools/regex-tester/index.ts",
    "content": "import { Language } from '@vicons/tabler';\nimport { defineTool } from '../tool';\n\nexport const tool = defineTool({\n  name: 'Regex Tester',\n  path: '/regex-tester',\n  description: 'Test your regular expressions with sample text.',\n  keywords: ['regex', 'tester', 'sample', 'expression'],\n  component: () => import('./regex-tester.vue'),\n  icon: Language,\n  createdAt: new Date('2024-09-20'),\n});\n"
  },
  {
    "path": "src/tools/regex-tester/regex-tester.service.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { matchRegex } from './regex-tester.service';\n\nconst regexesData = [\n  {\n    regex: '',\n    text: '',\n    flags: '',\n    result: [],\n  },\n  {\n    regex: '.*',\n    text: '',\n    flags: '',\n    result: [],\n  },\n  {\n    regex: '',\n    text: 'aaa',\n    flags: '',\n    result: [],\n  },\n  {\n    regex: 'a',\n    text: 'baaa',\n    flags: '',\n    result: [\n      {\n        captures: [],\n        groups: [],\n        index: 1,\n        value: 'a',\n      },\n    ],\n  },\n  {\n    regex: '(.)(?<g>r)',\n    text: 'azertyr',\n    flags: 'g',\n    result: [\n      {\n        captures: [\n          {\n            end: 3,\n            name: '1',\n            start: 2,\n            value: 'e',\n          },\n          {\n            end: 4,\n            name: '2',\n            start: 3,\n            value: 'r',\n          },\n        ],\n        groups: [\n          {\n            end: 4,\n            name: 'g',\n            start: 3,\n            value: 'r',\n          },\n        ],\n        index: 2,\n        value: 'er',\n      },\n      {\n        captures: [\n          {\n            end: 6,\n            name: '1',\n            start: 5,\n            value: 'y',\n          },\n          {\n            end: 7,\n            name: '2',\n            start: 6,\n            value: 'r',\n          },\n        ],\n        groups: [\n          {\n            end: 7,\n            name: 'g',\n            start: 6,\n            value: 'r',\n          },\n        ],\n        index: 5,\n        value: 'yr',\n      },\n    ],\n  },\n];\n\ndescribe('regex-tester', () => {\n  for (const reg of regexesData) {\n    const { regex, text, flags, result: expected_result } = reg;\n    it(`Should matchRegex(\"${regex}\",\"${text}\",\"${flags}\") return correct result`, async () => {\n      const result = matchRegex(regex, text, `${flags}d`);\n\n      expect(result).to.deep.equal(expected_result);\n    });\n  }\n});\n"
  },
  {
    "path": "src/tools/regex-tester/regex-tester.service.ts",
    "content": "interface RegExpGroupIndices {\n  [name: string]: [number, number]\n}\ninterface RegExpIndices extends Array<[number, number]> {\n  groups: RegExpGroupIndices\n}\ninterface RegExpExecArrayWithIndices extends RegExpExecArray {\n  indices: RegExpIndices\n}\ninterface GroupCapture {\n  name: string\n  value: string\n  start: number\n  end: number\n};\n\nexport function matchRegex(regex: string, text: string, flags: string) {\n  // if (regex === '' || text === '') {\n  //   return [];\n  // }\n\n  let lastIndex = -1;\n  const re = new RegExp(regex, flags);\n  const results = [];\n  let match = re.exec(text) as RegExpExecArrayWithIndices;\n  while (match !== null) {\n    if (re.lastIndex === lastIndex || match[0] === '') {\n      break;\n    }\n    const indices = match.indices;\n    const captures: Array<GroupCapture> = [];\n    Object.entries(match).forEach(([captureName, captureValue]) => {\n      if (captureName !== '0' && captureName.match(/\\d+/)) {\n        captures.push({\n          name: captureName,\n          value: captureValue,\n          start: indices[Number(captureName)][0],\n          end: indices[Number(captureName)][1],\n        });\n      }\n    });\n    const groups: Array<GroupCapture> = [];\n    Object.entries(match.groups || {}).forEach(([groupName, groupValue]) => {\n      groups.push({\n        name: groupName,\n        value: groupValue,\n        start: indices.groups[groupName][0],\n        end: indices.groups[groupName][1],\n      });\n    });\n    results.push({\n      index: match.index,\n      value: match[0],\n      captures,\n      groups,\n    });\n    lastIndex = re.lastIndex;\n    match = re.exec(text) as RegExpExecArrayWithIndices;\n  }\n  return results;\n}\n"
  },
  {
    "path": "src/tools/regex-tester/regex-tester.vue",
    "content": "<script setup lang=\"ts\">\nimport RandExp from 'randexp';\nimport { render } from '@regexper/render';\nimport type { ShadowRootExpose } from 'vue-shadow-dom';\nimport { matchRegex } from './regex-tester.service';\nimport { useValidation } from '@/composable/validation';\nimport { useQueryParamOrStorage } from '@/composable/queryParams';\n\nconst regex = useQueryParamOrStorage({ name: 'regex', storageName: 'regex-tester:regex', defaultValue: '' });\nconst text = ref('');\nconst global = ref(true);\nconst ignoreCase = ref(false);\nconst multiline = ref(false);\nconst dotAll = ref(true);\nconst unicode = ref(true);\nconst unicodeSets = ref(false);\nconst visualizerSVG = ref<ShadowRootExpose>();\n\nconst regexValidation = useValidation({\n  source: regex,\n  rules: [\n    {\n      message: 'Invalid regex: {0}',\n      validator: value => new RegExp(value),\n      getErrorMessage: (value) => {\n        const _ = new RegExp(value);\n        return '';\n      },\n    },\n  ],\n});\nconst results = computed(() => {\n  let flags = 'd';\n  if (global.value) {\n    flags += 'g';\n  }\n  if (ignoreCase.value) {\n    flags += 'i';\n  }\n  if (multiline.value) {\n    flags += 'm';\n  }\n  if (dotAll.value) {\n    flags += 's';\n  }\n  if (unicode.value) {\n    flags += 'u';\n  }\n  else if (unicodeSets.value) {\n    flags += 'v';\n  }\n\n  try {\n    return matchRegex(regex.value, text.value, flags);\n  }\n  catch (_) {\n    return [];\n  }\n});\n\nconst sample = computed(() => {\n  try {\n    const randexp = new RandExp(new RegExp(regex.value.replace(/\\(\\?\\<[^\\>]*\\>/g, '(?:')));\n    return randexp.gen();\n  }\n  catch (_) {\n    return '';\n  }\n});\n\nwatchEffect(\n  async () => {\n    const regexValue = regex.value;\n    // shadow root is required:\n    // @regexper/render append a <defs><style> that broke svg transparency of icons in the whole site\n    const visualizer = visualizerSVG.value?.shadow_root;\n    if (visualizer) {\n      while (visualizer.lastChild) {\n        visualizer.removeChild(visualizer.lastChild);\n      }\n      const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');\n      try {\n        await render(regexValue, svg);\n      }\n      catch (_) {\n      }\n      visualizer.appendChild(svg);\n    }\n  },\n);\n</script>\n\n<template>\n  <div max-w-600px>\n    <c-card title=\"Regex\" mb-1>\n      <c-input-text\n        v-model:value=\"regex\"\n        label=\"Regex to test:\"\n        placeholder=\"Put the regex to test\"\n        multiline\n        rows=\"3\"\n        :validation=\"regexValidation\"\n      />\n      <router-link target=\"_blank\" to=\"/regex-memo\" mb-1 mt-1>\n        See Regular Expression Cheatsheet\n      </router-link>\n      <n-space>\n        <n-checkbox v-model:checked=\"global\">\n          <span title=\"Global search\">Global search. (<code>g</code>)</span>\n        </n-checkbox>\n        <n-checkbox v-model:checked=\"ignoreCase\">\n          <span title=\"Case-insensitive search\">Case-insensitive search. (<code>i</code>)</span>\n        </n-checkbox>\n        <n-checkbox v-model:checked=\"multiline\">\n          <span title=\"Allows ^ and $ to match next to newline characters.\">Multiline(<code>m</code>)</span>\n        </n-checkbox>\n        <n-checkbox v-model:checked=\"dotAll\">\n          <span title=\"Allows . to match newline characters.\">Singleline(<code>s</code>)</span>\n        </n-checkbox>\n        <n-checkbox v-model:checked=\"unicode\">\n          <span title=\"Unicode; treat a pattern as a sequence of Unicode code points.\">Unicode(<code>u</code>)</span>\n        </n-checkbox>\n        <n-checkbox v-model:checked=\"unicodeSets\">\n          <span title=\"An upgrade to the u mode with more Unicode features.\">Unicode Sets (<code>v</code>)</span>\n        </n-checkbox>\n      </n-space>\n\n      <n-divider />\n\n      <c-input-text\n        v-model:value=\"text\"\n        label=\"Text to match:\"\n        placeholder=\"Put the text to match\"\n        multiline\n        rows=\"5\"\n      />\n    </c-card>\n\n    <c-card title=\"Matches\" mb-1 mt-3>\n      <n-table v-if=\"results?.length > 0\">\n        <thead>\n          <tr>\n            <th scope=\"col\">\n              Index in text\n            </th>\n            <th scope=\"col\">\n              Value\n            </th>\n            <th scope=\"col\">\n              Captures\n            </th>\n            <th scope=\"col\">\n              Groups\n            </th>\n          </tr>\n        </thead>\n        <tbody>\n          <tr v-for=\"match of results\" :key=\"match.index\">\n            <td>{{ match.index }}</td>\n            <td>{{ match.value }}</td>\n            <td>\n              <ul>\n                <li v-for=\"capture in match.captures\" :key=\"capture.name\">\n                  \"{{ capture.name }}\" = {{ capture.value }} [{{ capture.start }} - {{ capture.end }}]\n                </li>\n              </ul>\n            </td>\n            <td>\n              <ul>\n                <li v-for=\"group in match.groups\" :key=\"group.name\">\n                  \"{{ group.name }}\" = {{ group.value }} [{{ group.start }} - {{ group.end }}]\n                </li>\n              </ul>\n            </td>\n          </tr>\n        </tbody>\n      </n-table>\n      <c-alert v-else>\n        No match\n      </c-alert>\n    </c-card>\n\n    <c-card title=\"Sample matching text\" mt-3>\n      <pre style=\"white-space: pre-wrap; word-break: break-all;\">{{ sample }}</pre>\n    </c-card>\n\n    <c-card title=\"Regex Diagram\" style=\"overflow-x: scroll;\" mt-3>\n      <shadow-root ref=\"visualizerSVG\">\n&#xa0;\n      </shadow-root>\n    </c-card>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/roman-numeral-converter/index.ts",
    "content": "import { LetterX } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.roman-numeral-converter.title'),\n  path: '/roman-numeral-converter',\n  description: translate('tools.roman-numeral-converter.description'),\n  keywords: ['roman', 'arabic', 'converter', 'X', 'I', 'V', 'L', 'C', 'D', 'M'],\n  component: () => import('./roman-numeral-converter.vue'),\n  icon: LetterX,\n});\n"
  },
  {
    "path": "src/tools/roman-numeral-converter/roman-numeral-converter.service.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { arabicToRoman } from './roman-numeral-converter.service';\n\ndescribe('roman-numeral-converter', () => {\n  describe('arabicToRoman', () => {\n    it('should convert numbers lower than 1 to empty string', () => {\n      expect(arabicToRoman(-100)).toEqual('');\n      expect(arabicToRoman(-42)).toEqual('');\n      expect(arabicToRoman(-26)).toEqual('');\n      expect(arabicToRoman(-10)).toEqual('');\n      expect(arabicToRoman(0)).toEqual('');\n      expect(arabicToRoman(0.5)).toEqual('');\n      expect(arabicToRoman(0.9)).toEqual('');\n    });\n\n    it('should convert numbers greater than 3999 to empty string', () => {\n      expect(arabicToRoman(3999.1)).toEqual('');\n      expect(arabicToRoman(4000)).toEqual('');\n      expect(arabicToRoman(10000)).toEqual('');\n    });\n\n    it('should convert floating points number to the lower integer in roman version', () => {\n      expect(arabicToRoman(1.1)).toEqual('I');\n      expect(arabicToRoman(1.9)).toEqual('I');\n      expect(arabicToRoman(17.6)).toEqual('XVII');\n      expect(arabicToRoman(29.999)).toEqual('XXIX');\n    });\n\n    it('should convert positive integers to roman numbers', () => {\n      expect(arabicToRoman(1)).toEqual('I');\n      expect(arabicToRoman(2)).toEqual('II');\n      expect(arabicToRoman(3)).toEqual('III');\n      expect(arabicToRoman(4)).toEqual('IV');\n      expect(arabicToRoman(5)).toEqual('V');\n      expect(arabicToRoman(6)).toEqual('VI');\n      expect(arabicToRoman(7)).toEqual('VII');\n      expect(arabicToRoman(8)).toEqual('VIII');\n      expect(arabicToRoman(9)).toEqual('IX');\n      expect(arabicToRoman(10)).toEqual('X');\n      expect(arabicToRoman(11)).toEqual('XI');\n      expect(arabicToRoman(12)).toEqual('XII');\n      expect(arabicToRoman(13)).toEqual('XIII');\n      expect(arabicToRoman(14)).toEqual('XIV');\n      expect(arabicToRoman(15)).toEqual('XV');\n      expect(arabicToRoman(16)).toEqual('XVI');\n      expect(arabicToRoman(17)).toEqual('XVII');\n      expect(arabicToRoman(18)).toEqual('XVIII');\n      expect(arabicToRoman(19)).toEqual('XIX');\n      expect(arabicToRoman(20)).toEqual('XX');\n      expect(arabicToRoman(21)).toEqual('XXI');\n      expect(arabicToRoman(24)).toEqual('XXIV');\n      expect(arabicToRoman(28)).toEqual('XXVIII');\n      expect(arabicToRoman(29)).toEqual('XXIX');\n      expect(arabicToRoman(30)).toEqual('XXX');\n      expect(arabicToRoman(40)).toEqual('XL');\n      expect(arabicToRoman(50)).toEqual('L');\n      expect(arabicToRoman(60)).toEqual('LX');\n      expect(arabicToRoman(70)).toEqual('LXX');\n      expect(arabicToRoman(80)).toEqual('LXXX');\n      expect(arabicToRoman(90)).toEqual('XC');\n      expect(arabicToRoman(100)).toEqual('C');\n      expect(arabicToRoman(200)).toEqual('CC');\n      expect(arabicToRoman(300)).toEqual('CCC');\n      expect(arabicToRoman(400)).toEqual('CD');\n      expect(arabicToRoman(500)).toEqual('D');\n      expect(arabicToRoman(600)).toEqual('DC');\n      expect(arabicToRoman(700)).toEqual('DCC');\n      expect(arabicToRoman(800)).toEqual('DCCC');\n      expect(arabicToRoman(900)).toEqual('CM');\n      expect(arabicToRoman(999)).toEqual('CMXCIX');\n      expect(arabicToRoman(1000)).toEqual('M');\n      expect(arabicToRoman(2000)).toEqual('MM');\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/roman-numeral-converter/roman-numeral-converter.service.ts",
    "content": "export const MIN_ARABIC_TO_ROMAN = 1;\nexport const MAX_ARABIC_TO_ROMAN = 3999;\nexport function arabicToRoman(num: number) {\n  if (num < MIN_ARABIC_TO_ROMAN || num > MAX_ARABIC_TO_ROMAN) {\n    return '';\n  }\n\n  const lookup: { [key: string]: number } = {\n    M: 1000,\n    CM: 900,\n    D: 500,\n    CD: 400,\n    C: 100,\n    XC: 90,\n    L: 50,\n    XL: 40,\n    X: 10,\n    IX: 9,\n    V: 5,\n    IV: 4,\n    I: 1,\n  };\n  let roman = '';\n  for (const i in lookup) {\n    while (num >= lookup[i]) {\n      roman += i;\n      num -= lookup[i];\n    }\n  }\n  return roman;\n}\n\nconst ROMAN_NUMBER_REGEX = /^M{0,3}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$/;\n\nexport function isValidRomanNumber(romanNumber: string) {\n  return ROMAN_NUMBER_REGEX.test(romanNumber);\n}\n\nexport function romanToArabic(s: string) {\n  if (!isValidRomanNumber(s)) {\n    return null;\n  }\n  const map: { [key: string]: number } = { I: 1, V: 5, X: 10, L: 50, C: 100, D: 500, M: 1000 };\n  return [...s].reduce((r, c, i, s) => (map[s[i + 1]] > map[c] ? r - map[c] : r + map[c]), 0);\n}\n"
  },
  {
    "path": "src/tools/roman-numeral-converter/roman-numeral-converter.vue",
    "content": "<script setup lang=\"ts\">\nimport {\n  MAX_ARABIC_TO_ROMAN,\n  MIN_ARABIC_TO_ROMAN,\n  arabicToRoman,\n  isValidRomanNumber,\n  romanToArabic,\n} from './roman-numeral-converter.service';\nimport { useCopy } from '@/composable/copy';\nimport { useValidation } from '@/composable/validation';\n\nconst inputNumeral = ref(42);\nconst outputRoman = computed(() => arabicToRoman(inputNumeral.value));\n\nconst { attrs: validationNumeral } = useValidation({\n  source: inputNumeral,\n  rules: [\n    {\n      validator: value => value >= MIN_ARABIC_TO_ROMAN && value <= MAX_ARABIC_TO_ROMAN,\n      message: `We can only convert numbers between ${MIN_ARABIC_TO_ROMAN.toLocaleString()} and ${MAX_ARABIC_TO_ROMAN.toLocaleString()}`,\n    },\n  ],\n});\n\nconst inputRoman = ref('XLII');\nconst outputNumeral = computed(() => romanToArabic(inputRoman.value));\n\nconst validationRoman = useValidation({\n  source: inputRoman,\n  rules: [\n    {\n      validator: value => isValidRomanNumber(value),\n      message: 'The input you entered is not a valid roman number',\n    },\n  ],\n});\n\nconst { copy: copyRoman } = useCopy({ source: outputRoman, text: 'Roman number copied to the clipboard' });\nconst { copy: copyArabic } = useCopy({ source: () => String(outputNumeral), text: 'Arabic number copied to the clipboard' });\n</script>\n\n<template>\n  <div>\n    <c-card title=\"Arabic to roman\">\n      <div flex items-center justify-between>\n        <n-form-item v-bind=\"validationNumeral as any\">\n          <n-input-number v-model:value=\"inputNumeral\" :min=\"1\" style=\"width: 200px\" :show-button=\"false\" />\n        </n-form-item>\n        <div class=\"result\">\n          {{ outputRoman }}\n        </div>\n        <c-button autofocus :disabled=\"validationNumeral.validationStatus === 'error'\" @click=\"copyRoman()\">\n          Copy\n        </c-button>\n      </div>\n    </c-card>\n    <c-card title=\"Roman to arabic\" mt-5>\n      <div flex items-center justify-between>\n        <c-input-text v-model:value=\"inputRoman\" style=\"width: 200px\" :validation=\"validationRoman\" />\n\n        <div class=\"result\">\n          {{ outputNumeral }}\n        </div>\n        <c-button :disabled=\"!validationRoman.isValid\" @click=\"copyArabic()\">\n          Copy\n        </c-button>\n      </div>\n    </c-card>\n  </div>\n</template>\n\n<style lang=\"less\" scoped>\n.result {\n  font-size: 22px;\n}\n</style>\n"
  },
  {
    "path": "src/tools/rsa-key-pair-generator/index.ts",
    "content": "import { Certificate } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.rsa-key-pair-generator.title'),\n  path: '/rsa-key-pair-generator',\n  description: translate('tools.rsa-key-pair-generator.description'),\n  keywords: ['rsa', 'key', 'pair', 'generator', 'public', 'private', 'secret', 'ssh', 'pem'],\n  component: () => import('./rsa-key-pair-generator.vue'),\n  icon: Certificate,\n});\n"
  },
  {
    "path": "src/tools/rsa-key-pair-generator/rsa-key-pair-generator.service.ts",
    "content": "import { pki } from 'node-forge';\nimport workerScript from 'node-forge/dist/prime.worker.min?url';\n\nexport { generateKeyPair };\n\nfunction generateRawPairs({ bits = 2048 }) {\n  return new Promise<pki.rsa.KeyPair>((resolve, reject) =>\n    pki.rsa.generateKeyPair({ bits, workerScript }, (err, keyPair) => {\n      if (err) {\n        reject(err);\n        return;\n      }\n\n      resolve(keyPair);\n    }),\n  );\n}\n\nasync function generateKeyPair(config: { bits?: number } = {}) {\n  const { privateKey, publicKey } = await generateRawPairs(config);\n\n  return {\n    publicKeyPem: pki.publicKeyToPem(publicKey),\n    privateKeyPem: pki.privateKeyToPem(privateKey),\n  };\n}\n"
  },
  {
    "path": "src/tools/rsa-key-pair-generator/rsa-key-pair-generator.vue",
    "content": "<script setup lang=\"ts\">\nimport { generateKeyPair } from './rsa-key-pair-generator.service';\nimport TextareaCopyable from '@/components/TextareaCopyable.vue';\nimport { withDefaultOnErrorAsync } from '@/utils/defaults';\nimport { useValidation } from '@/composable/validation';\nimport { computedRefreshableAsync } from '@/composable/computedRefreshable';\n\nconst bits = ref(2048);\nconst emptyCerts = { publicKeyPem: '', privateKeyPem: '' };\n\nconst { attrs: bitsValidationAttrs } = useValidation({\n  source: bits,\n  rules: [\n    {\n      message: 'Bits should be 256 <= bits <= 16384 and be a multiple of 8',\n      validator: value => value >= 256 && value <= 16384 && value % 8 === 0,\n    },\n  ],\n});\n\nconst [certs, refreshCerts] = computedRefreshableAsync(\n  () => withDefaultOnErrorAsync(() => generateKeyPair({ bits: bits.value }), emptyCerts),\n  emptyCerts,\n);\n</script>\n\n<template>\n  <div style=\"flex: 0 0 100%\">\n    <div item-style=\"flex: 1 1 0\" style=\"max-width: 600px\" mx-auto flex gap-3>\n      <n-form-item label=\"Bits :\" v-bind=\"bitsValidationAttrs as any\" label-placement=\"left\" label-width=\"100\">\n        <n-input-number v-model:value=\"bits\" min=\"256\" max=\"16384\" step=\"8\" />\n      </n-form-item>\n\n      <c-button @click=\"refreshCerts\">\n        Refresh key-pair\n      </c-button>\n    </div>\n  </div>\n\n  <div>\n    <h3>Public key</h3>\n    <TextareaCopyable :value=\"certs.publicKeyPem\" />\n  </div>\n\n  <div>\n    <h3>Private key</h3>\n    <TextareaCopyable :value=\"certs.privateKeyPem\" />\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/safelink-decoder/index.ts",
    "content": "import { Mailbox } from '@vicons/tabler';\nimport { defineTool } from '../tool';\n\nexport const tool = defineTool({\n  name: 'Outlook Safelink decoder',\n  path: '/safelink-decoder',\n  description: 'Decode Outlook SafeLink links',\n  keywords: ['outlook', 'safelink', 'decoder'],\n  component: () => import('./safelink-decoder.vue'),\n  icon: Mailbox,\n  createdAt: new Date('2024-03-11'),\n});\n"
  },
  {
    "path": "src/tools/safelink-decoder/safelink-decoder.service.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { decodeSafeLinksURL } from './safelink-decoder.service';\n\ndescribe('safelink-decoder', () => {\n  describe('decodeSafeLinksURL', () => {\n    describe('decode outlook safelink urls', () => {\n      it('should decode basic safelink urls', () => {\n        expect(decodeSafeLinksURL('https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Dsafelink%26rlz%3D1&data=05%7C02%7C%7C1ed07253975b46da1d1508dc3443752a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638442711583216725%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=%2BQY0HBnnxfI7pzZoxzlhZdDvYu80LwQB0zUUjrffVnk%3D&reserved=0'))\n          .toBe('https://www.google.com/search?q=safelink&rlz=1');\n      });\n      it('should decode encoded safelink urls', () => {\n        expect(decodeSafeLinksURL('https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Dsafelink%26rlz%3D1&amp;data=05%7C02%7C%7C1ed07253975b46da1d1508dc3443752a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638442711583216725%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&amp;sdata=%2BQY0HBnnxfI7pzZoxzlhZdDvYu80LwQB0zUUjrffVnk%3D&amp;reserved=0'))\n          .toBe('https://www.google.com/search?q=safelink&rlz=1');\n      });\n      it('throw on not outlook safelink urls', () => {\n        expect(() => decodeSafeLinksURL('https://google.com'))\n          .toThrow('Invalid SafeLinks URL provided');\n      });\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/safelink-decoder/safelink-decoder.service.ts",
    "content": "export function decodeSafeLinksURL(safeLinksUrl: string) {\n  if (!safeLinksUrl.match(/\\.safelinks\\.protection\\.outlook\\.com/)) {\n    throw new Error('Invalid SafeLinks URL provided');\n  }\n\n  return new URL(safeLinksUrl).searchParams.get('url');\n}\n"
  },
  {
    "path": "src/tools/safelink-decoder/safelink-decoder.vue",
    "content": "<script setup lang=\"ts\">\nimport { decodeSafeLinksURL } from './safelink-decoder.service';\nimport TextareaCopyable from '@/components/TextareaCopyable.vue';\n\nconst inputSafeLinkUrl = ref('');\nconst outputDecodedUrl = computed(() => {\n  try {\n    return decodeSafeLinksURL(inputSafeLinkUrl.value);\n  }\n  catch (e: any) {\n    return e.toString();\n  }\n});\n</script>\n\n<template>\n  <div>\n    <c-input-text\n      v-model:value=\"inputSafeLinkUrl\"\n      raw-text\n      placeholder=\"Your input Outlook SafeLink Url...\"\n      autofocus\n      label=\"Your input Outlook SafeLink Url:\"\n    />\n\n    <n-divider />\n\n    <n-form-item label=\"Output decoded URL:\">\n      <TextareaCopyable :value=\"outputDecodedUrl\" :word-wrap=\"true\" />\n    </n-form-item>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/slugify-string/index.ts",
    "content": "import { AbcRound } from '@vicons/material';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.slugify-string.title'),\n  path: '/slugify-string',\n  description: translate('tools.slugify-string.description'),\n  keywords: ['slugify', 'string', 'escape', 'emoji', 'special', 'character', 'space', 'trim'],\n  component: () => import('./slugify-string.vue'),\n  icon: AbcRound,\n});\n"
  },
  {
    "path": "src/tools/slugify-string/slugify-string.vue",
    "content": "<script setup lang=\"ts\">\nimport slugify from '@sindresorhus/slugify';\nimport { withDefaultOnError } from '@/utils/defaults';\nimport { useCopy } from '@/composable/copy';\n\nconst input = ref('');\nconst slug = computed(() => withDefaultOnError(() => slugify(input.value), ''));\nconst { copy } = useCopy({ source: slug, text: 'Slug copied to clipboard' });\n</script>\n\n<template>\n  <div>\n    <c-input-text v-model:value=\"input\" multiline placeholder=\"Put your string here (ex: My file path)\" label=\"Your string to slugify\" autofocus raw-text mb-5 />\n\n    <c-input-text :value=\"slug\" multiline readonly placeholder=\"You slug will be generated here (ex: my-file-path)\" label=\"Your slug\" mb-5 />\n\n    <div flex justify-center>\n      <c-button :disabled=\"slug.length === 0\" @click=\"copy()\">\n        Copy slug\n      </c-button>\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/sql-prettify/index.ts",
    "content": "import { Database } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.sql-prettify.title'),\n  path: '/sql-prettify',\n  description: translate('tools.sql-prettify.description'),\n  keywords: [\n    'sql',\n    'prettify',\n    'beautify',\n    'GCP BigQuery',\n    'IBM DB2',\n    'Apache Hive',\n    'MariaDB',\n    'MySQL',\n    'Couchbase N1QL',\n    'Oracle PL/SQL',\n    'PostgreSQL',\n    'Amazon Redshift',\n    'Spark',\n    'SQL Server Transact-SQL',\n  ],\n  component: () => import('./sql-prettify.vue'),\n  icon: Database,\n});\n"
  },
  {
    "path": "src/tools/sql-prettify/sql-prettify.vue",
    "content": "<script setup lang=\"ts\">\nimport { type FormatOptionsWithLanguage, format as formatSQL } from 'sql-formatter';\nimport TextareaCopyable from '@/components/TextareaCopyable.vue';\nimport { useStyleStore } from '@/stores/style.store';\n\nconst inputElement = ref<HTMLElement>();\nconst styleStore = useStyleStore();\nconst config = reactive<FormatOptionsWithLanguage>({\n  keywordCase: 'upper',\n  useTabs: false,\n  language: 'sql',\n  indentStyle: 'standard',\n  tabulateAlias: true,\n});\n\nconst rawSQL = ref('select field1,field2,field3 from my_table where my_condition;');\nconst prettySQL = computed(() => formatSQL(rawSQL.value, config));\n</script>\n\n<template>\n  <div style=\"flex: 0 0 100%\">\n    <div style=\"max-width: 600px\" :class=\"{ 'flex-col': styleStore.isSmallScreen }\" mx-auto mb-5 flex gap-2>\n      <c-select\n        v-model:value=\"config.language\"\n        flex-1\n        label=\"Dialect\"\n        :options=\"[\n          { label: 'GCP BigQuery', value: 'bigquery' },\n          { label: 'IBM DB2', value: 'db2' },\n          { label: 'Apache Hive', value: 'hive' },\n          { label: 'MariaDB', value: 'mariadb' },\n          { label: 'MySQL', value: 'mysql' },\n          { label: 'Couchbase N1QL', value: 'n1ql' },\n          { label: 'Oracle PL/SQL', value: 'plsql' },\n          { label: 'PostgreSQL', value: 'postgresql' },\n          { label: 'Amazon Redshift', value: 'redshift' },\n          { label: 'Spark', value: 'spark' },\n          { label: 'Standard SQL', value: 'sql' },\n          { label: 'sqlite', value: 'sqlite' },\n          { label: 'SQL Server Transact-SQL', value: 'tsql' },\n        ]\"\n      />\n      <c-select\n        v-model:value=\"config.keywordCase\" label=\"Keyword case\"\n        flex-1\n        :options=\"[\n          { label: 'UPPERCASE', value: 'upper' },\n          { label: 'lowercase', value: 'lower' },\n          { label: 'Preserve', value: 'preserve' },\n        ]\"\n      />\n      <c-select\n        v-model:value=\"config.indentStyle\" label=\"Indent style\"\n        flex-1\n        :options=\"[\n          { label: 'Standard', value: 'standard' },\n          { label: 'Tabular left', value: 'tabularLeft' },\n          { label: 'Tabular right', value: 'tabularRight' },\n        ]\"\n      />\n    </div>\n  </div>\n\n  <n-form-item label=\"Your SQL query\">\n    <c-input-text\n      ref=\"inputElement\"\n      v-model:value=\"rawSQL\"\n      placeholder=\"Put your SQL query here...\"\n      rows=\"20\"\n      multiline\n      autocomplete=\"off\"\n      autocorrect=\"off\"\n      autocapitalize=\"off\"\n      spellcheck=\"false\"\n      monospace\n    />\n  </n-form-item>\n  <n-form-item label=\"Prettify version of your query\">\n    <TextareaCopyable :value=\"prettySQL\" language=\"sql\" :follow-height-of=\"inputElement\" />\n  </n-form-item>\n</template>\n\n<style lang=\"less\" scoped>\n.result-card {\n  position: relative;\n  .copy-button {\n    position: absolute;\n    top: 10px;\n    right: 10px;\n  }\n}\n</style>\n"
  },
  {
    "path": "src/tools/string-obfuscator/index.ts",
    "content": "import { EyeOff } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.string-obfuscator.title'),\n  path: '/string-obfuscator',\n  description: translate('tools.string-obfuscator.description'),\n  keywords: ['string', 'obfuscator', 'secret', 'token', 'hide', 'obscure', 'mask', 'masking'],\n  component: () => import('./string-obfuscator.vue'),\n  icon: EyeOff,\n  createdAt: new Date('2023-08-16'),\n});\n"
  },
  {
    "path": "src/tools/string-obfuscator/string-obfuscator.model.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { obfuscateString } from './string-obfuscator.model';\n\ndescribe('string-obfuscator model', () => {\n  describe('obfuscateString', () => {\n    it('the characters in the middle of the string are replaced by the replacement character', () => {\n      expect(obfuscateString('1234567890')).toBe('1234******');\n      expect(obfuscateString('1234567890', { replacementChar: 'x' })).toBe('1234xxxxxx');\n      expect(obfuscateString('1234567890', { keepFirst: 5 })).toBe('12345*****');\n      expect(obfuscateString('1234567890', { keepFirst: 0, keepLast: 5 })).toBe('*****67890');\n      expect(obfuscateString('1234567890', { keepFirst: 5, keepLast: 5 })).toBe('1234567890');\n      expect(obfuscateString('1234567890', { keepFirst: 2, keepLast: 2, replacementChar: 'x' })).toBe('12xxxxxx90');\n    });\n\n    it('by default, the spaces are kept, they can be removed with the keepSpace option', () => {\n      expect(obfuscateString('12345 67890')).toBe('1234* *****');\n      expect(obfuscateString('12345 67890', { keepSpace: false })).toBe('1234*******');\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/string-obfuscator/string-obfuscator.model.ts",
    "content": "import { get } from '@vueuse/core';\nimport { type MaybeRef, computed } from 'vue';\n\nexport { obfuscateString, useObfuscateString };\n\nfunction obfuscateString(\n  str: string,\n  { replacementChar = '*', keepFirst = 4, keepLast = 0, keepSpace = true }: { replacementChar?: string; keepFirst?: number; keepLast?: number; keepSpace?: boolean } = {}): string {\n  return str\n    .split('')\n    .map((char, index, array) => {\n      if (keepSpace && char === ' ') {\n        return char;\n      }\n\n      return (index < keepFirst || index >= array.length - keepLast) ? char : replacementChar;\n    })\n    .join('');\n}\n\nfunction useObfuscateString(\n  str: MaybeRef<string>,\n  config: { replacementChar?: MaybeRef<string>; keepFirst?: MaybeRef<number>; keepLast?: MaybeRef<number>; keepSpace?: MaybeRef<boolean> } = {},\n\n) {\n  return computed(() => obfuscateString(\n    get(str),\n    {\n      replacementChar: get(config.replacementChar),\n      keepFirst: get(config.keepFirst),\n      keepLast: get(config.keepLast),\n      keepSpace: get(config.keepSpace),\n    },\n  ));\n}\n"
  },
  {
    "path": "src/tools/string-obfuscator/string-obfuscator.vue",
    "content": "<script setup lang=\"ts\">\nimport { useObfuscateString } from './string-obfuscator.model';\nimport { useCopy } from '@/composable/copy';\n\nconst str = ref('Lorem ipsum dolor sit amet');\nconst keepFirst = ref(4);\nconst keepLast = ref(4);\nconst keepSpace = ref(true);\n\nconst obfuscatedString = useObfuscateString(str, { keepFirst, keepLast, keepSpace });\nconst { copy } = useCopy({ source: obfuscatedString });\n</script>\n\n<template>\n  <div>\n    <c-input-text v-model:value=\"str\" raw-text placeholder=\"Enter string to obfuscate\" label=\"String to obfuscate:\" clearable multiline />\n\n    <div mt-4 flex gap-10px>\n      <div>\n        <div>Keep first:</div>\n        <n-input-number v-model:value=\"keepFirst\" min=\"0\" />\n      </div>\n\n      <div>\n        <div>Keep last:</div>\n        <n-input-number v-model:value=\"keepLast\" min=\"0\" />\n      </div>\n\n      <div>\n        <div mb-5px>\n          Keep&nbsp;spaces:\n        </div>\n        <n-switch v-model:value=\"keepSpace\" />\n      </div>\n    </div>\n\n    <c-card v-if=\"obfuscatedString\" mt-60px max-w-600px flex items-center gap-5px font-mono>\n      <div break-anywhere text-wrap>\n        {{ obfuscatedString }}\n      </div>\n\n      <c-button @click=\"copy()\">\n        <icon-mdi:content-copy />\n      </c-button>\n    </c-card>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/svg-placeholder-generator/index.ts",
    "content": "import { ImageOutlined } from '@vicons/material';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.svg-placeholder-generator.title'),\n  path: '/svg-placeholder-generator',\n  description: translate('tools.svg-placeholder-generator.description'),\n  keywords: ['svg', 'placeholder', 'generator', 'image', 'size', 'mockup'],\n  component: () => import('./svg-placeholder-generator.vue'),\n  icon: ImageOutlined,\n});\n"
  },
  {
    "path": "src/tools/svg-placeholder-generator/svg-placeholder-generator.vue",
    "content": "<script setup lang=\"ts\">\nimport TextareaCopyable from '@/components/TextareaCopyable.vue';\nimport { useCopy } from '@/composable/copy';\nimport { useDownloadFileFromBase64 } from '@/composable/downloadBase64';\nimport { textToBase64 } from '@/utils/base64';\n\nconst width = ref(600);\nconst height = ref(350);\nconst fontSize = ref(26);\nconst bgColor = ref('#cccccc');\nconst fgColor = ref('#333333');\nconst useExactSize = ref(true);\nconst customText = ref('');\nconst svgString = computed(() => {\n  const w = width.value;\n  const h = height.value;\n  const text = customText.value.length > 0 ? customText.value : `${w}x${h}`;\n  const size = useExactSize.value ? ` width=\"${w}\" height=\"${h}\"` : '';\n\n  return `\n<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 ${w} ${h}\"${size}>\n  <rect width=\"${w}\" height=\"${h}\" fill=\"${bgColor.value}\"></rect>\n  <text x=\"50%\" y=\"50%\" dominant-baseline=\"middle\" text-anchor=\"middle\" font-family=\"monospace\" font-size=\"${fontSize.value}px\" fill=\"${fgColor.value}\">${text}</text>   \n</svg>\n  `.trim();\n});\nconst base64 = computed(() => `data:image/svg+xml;base64,${textToBase64(svgString.value)}`);\n\nconst { copy: copySVG } = useCopy({ source: svgString });\nconst { copy: copyBase64 } = useCopy({ source: base64 });\nconst { download } = useDownloadFileFromBase64({ source: base64 });\n</script>\n\n<template>\n  <div>\n    <n-form label-placement=\"left\" label-width=\"100\">\n      <div flex gap-3>\n        <n-form-item label=\"Width (in px)\" flex-1>\n          <n-input-number v-model:value=\"width\" placeholder=\"SVG width...\" min=\"1\" />\n        </n-form-item>\n        <n-form-item label=\"Background\" flex-1>\n          <n-color-picker v-model:value=\"bgColor\" :modes=\"['hex']\" />\n        </n-form-item>\n      </div>\n      <div flex gap-3>\n        <n-form-item label=\"Height (in px)\" flex-1>\n          <n-input-number v-model:value=\"height\" placeholder=\"SVG height...\" min=\"1\" />\n        </n-form-item>\n        <n-form-item label=\"Text color\" flex-1>\n          <n-color-picker v-model:value=\"fgColor\" :modes=\"['hex']\" />\n        </n-form-item>\n      </div>\n      <div flex gap-3>\n        <n-form-item label=\"Font size\" flex-1>\n          <n-input-number v-model:value=\"fontSize\" placeholder=\"Font size...\" min=\"1\" />\n        </n-form-item>\n\n        <c-input-text\n          v-model:value=\"customText\"\n          label=\"Custom text\"\n          :placeholder=\"`Default is ${width}x${height}`\"\n          label-position=\"left\"\n          label-width=\"100px\"\n          label-align=\"right\"\n          flex-1\n        />\n      </div>\n      <n-form-item label=\"Use exact size\" label-placement=\"left\">\n        <n-switch v-model:value=\"useExactSize\" />\n      </n-form-item>\n    </n-form>\n\n    <n-form-item label=\"SVG HTML element\">\n      <TextareaCopyable :value=\"svgString\" copy-placement=\"none\" />\n    </n-form-item>\n    <n-form-item label=\"SVG in Base64\">\n      <TextareaCopyable :value=\"base64\" copy-placement=\"none\" />\n    </n-form-item>\n\n    <div flex justify-center gap-3>\n      <c-button @click=\"copySVG()\">\n        Copy svg\n      </c-button>\n      <c-button @click=\"copyBase64()\">\n        Copy base64\n      </c-button>\n      <c-button @click=\"download()\">\n        Download svg\n      </c-button>\n    </div>\n  </div>\n\n  <img :src=\"base64\" alt=\"Image\">\n</template>\n\n<style lang=\"less\" scoped>\n.n-input-number {\n  width: 100%;\n}\n</style>\n"
  },
  {
    "path": "src/tools/temperature-converter/index.ts",
    "content": "import { Temperature } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.temperature-converter.title'),\n  path: '/temperature-converter',\n  description: translate('tools.temperature-converter.description'),\n  keywords: [\n    'temperature',\n    'converter',\n    'degree',\n    'Kelvin',\n    'Celsius',\n    'Fahrenheit',\n    'Rankine',\n    'Delisle',\n    'Newton',\n    'Réaumur',\n    'Rømer',\n  ],\n  component: () => import('./temperature-converter.vue'),\n  icon: Temperature,\n});\n"
  },
  {
    "path": "src/tools/temperature-converter/temperature-converter.models.ts",
    "content": "export const convertCelsiusToKelvin = (temperature: number) => temperature + 273.15;\nexport const convertKelvinToCelsius = (temperature: number) => temperature - 273.15;\n\nexport const convertFahrenheitToKelvin = (temperature: number) => (temperature + 459.67) * (5 / 9);\nexport const convertKelvinToFahrenheit = (temperature: number) => temperature * (9 / 5) - 459.67;\n\nexport const convertRankineToKelvin = (temperature: number) => temperature * (5 / 9);\nexport const convertKelvinToRankine = (temperature: number) => temperature * (9 / 5);\n\nexport const convertDelisleToKelvin = (temperature: number) => 373.15 - (2 / 3) * temperature;\nexport const convertKelvinToDelisle = (temperature: number) => (3 / 2) * (373.15 - temperature);\n\nexport const convertNewtonToKelvin = (temperature: number) => temperature * (100 / 33) + 273.15;\nexport const convertKelvinToNewton = (temperature: number) => (temperature - 273.15) * (33 / 100);\n\nexport const convertReaumurToKelvin = (temperature: number) => temperature * (5 / 4) + 273.15;\nexport const convertKelvinToReaumur = (temperature: number) => (temperature - 273.15) * (4 / 5);\n\nexport const convertRomerToKelvin = (temperature: number) => (temperature - 7.5) * (40 / 21) + 273.15;\nexport const convertKelvinToRomer = (temperature: number) => (temperature - 273.15) * (21 / 40) + 7.5;\n"
  },
  {
    "path": "src/tools/temperature-converter/temperature-converter.vue",
    "content": "<script setup lang=\"ts\">\nimport _ from 'lodash';\nimport {\n  convertCelsiusToKelvin,\n  convertDelisleToKelvin,\n  convertFahrenheitToKelvin,\n  convertKelvinToCelsius,\n  convertKelvinToDelisle,\n  convertKelvinToFahrenheit,\n  convertKelvinToNewton,\n  convertKelvinToRankine,\n  convertKelvinToReaumur,\n  convertKelvinToRomer,\n  convertNewtonToKelvin,\n  convertRankineToKelvin,\n  convertReaumurToKelvin,\n  convertRomerToKelvin,\n} from './temperature-converter.models';\n\ntype TemperatureScale = 'kelvin' | 'celsius' | 'fahrenheit' | 'rankine' | 'delisle' | 'newton' | 'reaumur' | 'romer';\n\nconst units = reactive<\n  Record<\n    string | TemperatureScale,\n    { title: string; unit: string; ref: number; toKelvin: (v: number) => number; fromKelvin: (v: number) => number }\n  >\n      >({\n        kelvin: {\n          title: 'Kelvin',\n          unit: 'K',\n          ref: 0,\n          toKelvin: _.identity,\n          fromKelvin: _.identity,\n        },\n        celsius: {\n          title: 'Celsius',\n          unit: '°C',\n          ref: 0,\n          toKelvin: convertCelsiusToKelvin,\n          fromKelvin: convertKelvinToCelsius,\n        },\n        fahrenheit: {\n          title: 'Fahrenheit',\n          unit: '°F',\n          ref: 0,\n          toKelvin: convertFahrenheitToKelvin,\n          fromKelvin: convertKelvinToFahrenheit,\n        },\n        rankine: {\n          title: 'Rankine',\n          unit: '°R',\n          ref: 0,\n          toKelvin: convertRankineToKelvin,\n          fromKelvin: convertKelvinToRankine,\n        },\n        delisle: {\n          title: 'Delisle',\n          unit: '°De',\n          ref: 0,\n          toKelvin: convertDelisleToKelvin,\n          fromKelvin: convertKelvinToDelisle,\n        },\n        newton: {\n          title: 'Newton',\n          unit: '°N',\n          ref: 0,\n          toKelvin: convertNewtonToKelvin,\n          fromKelvin: convertKelvinToNewton,\n        },\n        reaumur: {\n          title: 'Réaumur',\n          unit: '°Ré',\n          ref: 0,\n          toKelvin: convertReaumurToKelvin,\n          fromKelvin: convertKelvinToReaumur,\n        },\n        romer: {\n          title: 'Rømer',\n          unit: '°Rø',\n          ref: 0,\n          toKelvin: convertRomerToKelvin,\n          fromKelvin: convertKelvinToRomer,\n        },\n      });\n\nfunction update(key: TemperatureScale) {\n  const { ref: value, toKelvin } = units[key];\n\n  const kelvins = toKelvin(value) ?? 0;\n\n  _.chain(units)\n    .omit(key)\n    .forEach(({ fromKelvin }, index) => {\n      units[index].ref = Math.floor((fromKelvin(kelvins) ?? 0) * 100) / 100;\n    })\n    .value();\n}\n\nupdate('kelvin');\n</script>\n\n<template>\n  <div>\n    <n-input-group v-for=\"[key, { title, unit }] in Object.entries(units)\" :key=\"key\" mb-3 w-full>\n      <n-input-group-label style=\"width: 100px\">\n        {{ title }}\n      </n-input-group-label>\n\n      <n-input-number\n        v-model:value=\"units[key].ref\"\n        style=\"flex: 1\"\n        @update:value=\"() => update(key as TemperatureScale)\"\n      />\n\n      <n-input-group-label style=\"width: 50px\">\n        {{ unit }}\n      </n-input-group-label>\n    </n-input-group>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/text-diff/index.ts",
    "content": "import { FileDiff } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.text-diff.title'),\n  path: '/text-diff',\n  description: translate('tools.text-diff.description'),\n  keywords: ['text', 'diff', 'compare', 'string', 'text diff', 'code'],\n  component: () => import('./text-diff.vue'),\n  icon: FileDiff,\n  createdAt: new Date('2023-08-16'),\n});\n"
  },
  {
    "path": "src/tools/text-diff/text-diff.vue",
    "content": "<template>\n  <c-card w-full important:flex-1 important:pa-0>\n    <c-diff-editor />\n  </c-card>\n</template>\n"
  },
  {
    "path": "src/tools/text-statistics/index.ts",
    "content": "import { FileText } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.text-statistics.title'),\n  path: '/text-statistics',\n  description: translate('tools.text-statistics.description'),\n  keywords: ['text', 'statistics', 'length', 'characters', 'count', 'size', 'bytes'],\n  component: () => import('./text-statistics.vue'),\n  icon: FileText,\n  redirectFrom: ['/text-stats'],\n});\n"
  },
  {
    "path": "src/tools/text-statistics/text-statistics.service.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { getStringSizeInBytes } from './text-statistics.service';\n\ndescribe('text-statistics', () => {\n  describe('getStringSizeInBytes', () => {\n    it('should return the size of a string in bytes', () => {\n      expect(getStringSizeInBytes('')).toEqual(0);\n      expect(getStringSizeInBytes('a')).toEqual(1);\n      expect(getStringSizeInBytes('aa')).toEqual(2);\n      expect(getStringSizeInBytes('😀')).toEqual(4);\n      expect(getStringSizeInBytes('aaaaaaaaaa')).toEqual(10);\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/text-statistics/text-statistics.service.ts",
    "content": "export function getStringSizeInBytes(text: string) {\n  return new TextEncoder().encode(text).buffer.byteLength;\n}\n"
  },
  {
    "path": "src/tools/text-statistics/text-statistics.vue",
    "content": "<script setup lang=\"ts\">\nimport { getStringSizeInBytes } from './text-statistics.service';\nimport { formatBytes } from '@/utils/convert';\n\nconst text = ref('');\n</script>\n\n<template>\n  <c-card>\n    <c-input-text v-model:value=\"text\" multiline placeholder=\"Your text...\" rows=\"5\" />\n\n    <div mt-5 flex>\n      <n-statistic label=\"Character count\" :value=\"text.length\" flex-1 />\n      <n-statistic label=\"Word count\" :value=\"text === '' ? 0 : text.split(/\\s+/).length\" flex-1 />\n      <n-statistic label=\"Line count\" :value=\"text === '' ? 0 : text.split(/\\r\\n|\\r|\\n/).length\" flex-1 />\n      <n-statistic label=\"Byte size\" :value=\"formatBytes(getStringSizeInBytes(text))\" flex-1 />\n    </div>\n  </c-card>\n</template>\n"
  },
  {
    "path": "src/tools/text-to-binary/index.ts",
    "content": "import { Binary } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.text-to-binary.title'),\n  path: '/text-to-binary',\n  description: translate('tools.text-to-binary.description'),\n  keywords: ['text', 'to', 'binary', 'converter', 'encode', 'decode', 'ascii'],\n  component: () => import('./text-to-binary.vue'),\n  icon: Binary,\n  createdAt: new Date('2023-10-15'),\n});\n"
  },
  {
    "path": "src/tools/text-to-binary/text-to-binary.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - Text to ASCII binary', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/text-to-binary');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('Text to ASCII binary - IT Tools');\n  });\n\n  test('Text to binary conversion', async ({ page }) => {\n    await page.getByTestId('text-to-binary-input').fill('it-tools');\n    const binary = await page.getByTestId('text-to-binary-output').inputValue();\n\n    expect(binary).toEqual('01101001 01110100 00101101 01110100 01101111 01101111 01101100 01110011');\n  });\n\n  test('Binary to text conversion', async ({ page }) => {\n    await page.getByTestId('binary-to-text-input').fill('01101001 01110100 00101101 01110100 01101111 01101111 01101100 01110011');\n    const text = await page.getByTestId('binary-to-text-output').inputValue();\n\n    expect(text).toEqual('it-tools');\n  });\n});\n"
  },
  {
    "path": "src/tools/text-to-binary/text-to-binary.models.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { convertAsciiBinaryToText, convertTextToAsciiBinary } from './text-to-binary.models';\n\ndescribe('text-to-binary', () => {\n  describe('convertTextToAsciiBinary', () => {\n    it('a text string is converted to its ascii binary representation', () => {\n      expect(convertTextToAsciiBinary('A')).toBe('01000001');\n      expect(convertTextToAsciiBinary('hello')).toBe('01101000 01100101 01101100 01101100 01101111');\n      expect(convertTextToAsciiBinary('')).toBe('');\n    });\n    it('the separator between octets can be changed', () => {\n      expect(convertTextToAsciiBinary('hello', { separator: '' })).toBe('0110100001100101011011000110110001101111');\n    });\n  });\n\n  describe('convertAsciiBinaryToText', () => {\n    it('an ascii binary string is converted to its text representation', () => {\n      expect(convertAsciiBinaryToText('01101000 01100101 01101100 01101100 01101111')).toBe('hello');\n      expect(convertAsciiBinaryToText('01000001')).toBe('A');\n      expect(convertTextToAsciiBinary('')).toBe('');\n    });\n\n    it('the given binary string is cleaned before conversion', () => {\n      expect(convertAsciiBinaryToText('  01000 001garbage')).toBe('A');\n    });\n\n    it('throws an error if the given binary string as no complete octet', () => {\n      expect(() => convertAsciiBinaryToText('010000011')).toThrow('Invalid binary string');\n      expect(() => convertAsciiBinaryToText('1')).toThrow('Invalid binary string');\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/text-to-binary/text-to-binary.models.ts",
    "content": "export { convertTextToAsciiBinary, convertAsciiBinaryToText };\n\nfunction convertTextToAsciiBinary(text: string, { separator = ' ' }: { separator?: string } = {}): string {\n  return text\n    .split('')\n    .map(char => char.charCodeAt(0).toString(2).padStart(8, '0'))\n    .join(separator);\n}\n\nfunction convertAsciiBinaryToText(binary: string): string {\n  const cleanBinary = binary.replace(/[^01]/g, '');\n\n  if (cleanBinary.length % 8) {\n    throw new Error('Invalid binary string');\n  }\n\n  return cleanBinary\n    .split(/(\\d{8})/)\n    .filter(Boolean)\n    .map(binary => String.fromCharCode(Number.parseInt(binary, 2)))\n    .join('');\n}\n"
  },
  {
    "path": "src/tools/text-to-binary/text-to-binary.vue",
    "content": "<script setup lang=\"ts\">\nimport { convertAsciiBinaryToText, convertTextToAsciiBinary } from './text-to-binary.models';\nimport { withDefaultOnError } from '@/utils/defaults';\nimport { useCopy } from '@/composable/copy';\nimport { isNotThrowing } from '@/utils/boolean';\n\nconst inputText = ref('');\nconst binaryFromText = computed(() => convertTextToAsciiBinary(inputText.value));\nconst { copy: copyBinary } = useCopy({ source: binaryFromText });\n\nconst inputBinary = ref('');\nconst textFromBinary = computed(() => withDefaultOnError(() => convertAsciiBinaryToText(inputBinary.value), ''));\nconst inputBinaryValidationRules = [\n  {\n    validator: (value: string) => isNotThrowing(() => convertAsciiBinaryToText(value)),\n    message: 'Binary should be a valid ASCII binary string with multiples of 8 bits',\n  },\n];\nconst { copy: copyText } = useCopy({ source: textFromBinary });\n</script>\n\n<template>\n  <c-card title=\"Text to ASCII binary\">\n    <c-input-text v-model:value=\"inputText\" multiline placeholder=\"e.g. 'Hello world'\" label=\"Enter text to convert to binary\" autosize autofocus raw-text test-id=\"text-to-binary-input\" />\n    <c-input-text v-model:value=\"binaryFromText\" label=\"Binary from your text\" multiline raw-text readonly mt-2 placeholder=\"The binary representation of your text will be here\" test-id=\"text-to-binary-output\" />\n    <div mt-2 flex justify-center>\n      <c-button :disabled=\"!binaryFromText\" @click=\"copyBinary()\">\n        Copy binary to clipboard\n      </c-button>\n    </div>\n  </c-card>\n\n  <c-card title=\"ASCII binary to text\">\n    <c-input-text v-model:value=\"inputBinary\" multiline placeholder=\"e.g. '01001000 01100101 01101100 01101100 01101111'\" label=\"Enter binary to convert to text\" autosize raw-text :validation-rules=\"inputBinaryValidationRules\" test-id=\"binary-to-text-input\" />\n    <c-input-text v-model:value=\"textFromBinary\" label=\"Text from your binary\" multiline raw-text readonly mt-2 placeholder=\"The text representation of your binary will be here\" test-id=\"binary-to-text-output\" />\n    <div mt-2 flex justify-center>\n      <c-button :disabled=\"!textFromBinary\" @click=\"copyText()\">\n        Copy text to clipboard\n      </c-button>\n    </div>\n  </c-card>\n</template>\n"
  },
  {
    "path": "src/tools/text-to-nato-alphabet/index.ts",
    "content": "import { Speakerphone } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.text-to-nato-alphabet.title'),\n  path: '/text-to-nato-alphabet',\n  description: translate('tools.text-to-nato-alphabet.description'),\n  keywords: ['string', 'nato', 'alphabet', 'phonetic', 'oral', 'transmission'],\n  component: () => import('./text-to-nato-alphabet.vue'),\n  icon: Speakerphone,\n});\n"
  },
  {
    "path": "src/tools/text-to-nato-alphabet/text-to-nato-alphabet.constants.ts",
    "content": "export const natoAlphabet = [\n  'Alpha',\n  'Bravo',\n  'Charlie',\n  'Delta',\n  'Echo',\n  'Foxtrot',\n  'Golf',\n  'Hotel',\n  'India',\n  'Juliet',\n  'Kilo',\n  'Lima',\n  'Mike',\n  'November',\n  'Oscar',\n  'Papa',\n  'Quebec',\n  'Romeo',\n  'Sierra',\n  'Tango',\n  'Uniform',\n  'Victor',\n  'Whiskey',\n  'X-ray',\n  'Yankee',\n  'Zulu',\n];\n"
  },
  {
    "path": "src/tools/text-to-nato-alphabet/text-to-nato-alphabet.service.ts",
    "content": "import { natoAlphabet } from './text-to-nato-alphabet.constants';\n\nexport { textToNatoAlphabet };\n\nfunction getLetterPositionInAlphabet({ letter }: { letter: string }) {\n  return letter.toLowerCase().charCodeAt(0) - 'a'.charCodeAt(0);\n}\n\nfunction textToNatoAlphabet({ text }: { text: string }) {\n  return text\n    .split('')\n    .map((character) => {\n      const alphabetIndex = getLetterPositionInAlphabet({ letter: character });\n      const natoWord = natoAlphabet[alphabetIndex];\n\n      return natoWord ?? character;\n    })\n    .join(' ');\n}\n"
  },
  {
    "path": "src/tools/text-to-nato-alphabet/text-to-nato-alphabet.vue",
    "content": "<script setup lang=\"ts\">\nimport { textToNatoAlphabet } from './text-to-nato-alphabet.service';\nimport { useCopy } from '@/composable/copy';\n\nconst input = ref('');\nconst natoText = computed(() => textToNatoAlphabet({ text: input.value }));\nconst { copy } = useCopy({ source: natoText, text: 'NATO alphabet string copied.' });\n</script>\n\n<template>\n  <div>\n    <c-input-text\n      v-model:value=\"input\"\n      label=\"Your text to convert to NATO phonetic alphabet\"\n      placeholder=\"Put your text here...\"\n      clearable\n      mb-5\n    />\n\n    <div v-if=\"natoText\">\n      <div mb-2>\n        Your text in NATO phonetic alphabet\n      </div>\n      <c-card>\n        {{ natoText }}\n      </c-card>\n\n      <div mt-3 flex justify-center>\n        <c-button autofocus @click=\"copy()\">\n          Copy NATO string\n        </c-button>\n      </div>\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/text-to-unicode/index.ts",
    "content": "import { TextWrap } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.text-to-unicode.title'),\n  path: '/text-to-unicode',\n  description: translate('tools.text-to-unicode.description'),\n  keywords: ['text', 'to', 'unicode'],\n  component: () => import('./text-to-unicode.vue'),\n  icon: TextWrap,\n  createdAt: new Date('2024-01-31'),\n});\n"
  },
  {
    "path": "src/tools/text-to-unicode/text-to-unicode.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - Text to Unicode', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/text-to-unicode');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('Text to Unicode - IT Tools');\n  });\n\n  test('Text to unicode conversion', async ({ page }) => {\n    await page.getByTestId('text-to-unicode-input').fill('it-tools');\n    const unicode = await page.getByTestId('text-to-unicode-output').inputValue();\n\n    expect(unicode).toEqual('&#105;&#116;&#45;&#116;&#111;&#111;&#108;&#115;');\n  });\n\n  test('Unicode to text conversion', async ({ page }) => {\n    await page.getByTestId('unicode-to-text-input').fill('&#105;&#116;&#45;&#116;&#111;&#111;&#108;&#115;');\n    const text = await page.getByTestId('unicode-to-text-output').inputValue();\n\n    expect(text).toEqual('it-tools');\n  });\n});\n"
  },
  {
    "path": "src/tools/text-to-unicode/text-to-unicode.service.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { convertTextToUnicode, convertUnicodeToText } from './text-to-unicode.service';\n\ndescribe('text-to-unicode', () => {\n  describe('convertTextToUnicode', () => {\n    it('a text string is converted to unicode representation', () => {\n      expect(convertTextToUnicode('A')).toBe('&#65;');\n      expect(convertTextToUnicode('linke the string convert to unicode')).toBe('&#108;&#105;&#110;&#107;&#101;&#32;&#116;&#104;&#101;&#32;&#115;&#116;&#114;&#105;&#110;&#103;&#32;&#99;&#111;&#110;&#118;&#101;&#114;&#116;&#32;&#116;&#111;&#32;&#117;&#110;&#105;&#99;&#111;&#100;&#101;');\n      expect(convertTextToUnicode('')).toBe('');\n    });\n  });\n\n  describe('convertUnicodeToText', () => {\n    it('an unicode string is converted to its text representation', () => {\n      expect(convertUnicodeToText('&#65;')).toBe('A');\n      expect(convertUnicodeToText('&#108;&#105;&#110;&#107;&#101;&#32;&#116;&#104;&#101;&#32;&#115;&#116;&#114;&#105;&#110;&#103;&#32;&#99;&#111;&#110;&#118;&#101;&#114;&#116;&#32;&#116;&#111;&#32;&#117;&#110;&#105;&#99;&#111;&#100;&#101;')).toBe('linke the string convert to unicode');\n      expect(convertUnicodeToText('')).toBe('');\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/text-to-unicode/text-to-unicode.service.ts",
    "content": "function convertTextToUnicode(text: string): string {\n  return text.split('').map(value => `&#${value.charCodeAt(0)};`).join('');\n}\n\nfunction convertUnicodeToText(unicodeStr: string): string {\n  return unicodeStr.replace(/&#(\\d+);/g, (match, dec) => String.fromCharCode(dec));\n}\n\nexport { convertTextToUnicode, convertUnicodeToText };\n"
  },
  {
    "path": "src/tools/text-to-unicode/text-to-unicode.vue",
    "content": "<script setup lang=\"ts\">\nimport { convertTextToUnicode, convertUnicodeToText } from './text-to-unicode.service';\nimport { useCopy } from '@/composable/copy';\n\nconst inputText = ref('');\nconst unicodeFromText = computed(() => inputText.value.trim() === '' ? '' : convertTextToUnicode(inputText.value));\nconst { copy: copyUnicode } = useCopy({ source: unicodeFromText });\n\nconst inputUnicode = ref('');\nconst textFromUnicode = computed(() => inputUnicode.value.trim() === '' ? '' : convertUnicodeToText(inputUnicode.value));\nconst { copy: copyText } = useCopy({ source: textFromUnicode });\n</script>\n\n<template>\n  <c-card title=\"Text to Unicode\">\n    <c-input-text v-model:value=\"inputText\" multiline placeholder=\"e.g. 'Hello Avengers'\" label=\"Enter text to convert to unicode\" autosize autofocus raw-text test-id=\"text-to-unicode-input\" />\n    <c-input-text v-model:value=\"unicodeFromText\" label=\"Unicode from your text\" multiline raw-text readonly mt-2 placeholder=\"The unicode representation of your text will be here\" test-id=\"text-to-unicode-output\" />\n    <div mt-2 flex justify-center>\n      <c-button :disabled=\"!unicodeFromText\" @click=\"copyUnicode()\">\n        Copy unicode to clipboard\n      </c-button>\n    </div>\n  </c-card>\n\n  <c-card title=\"Unicode to Text\">\n    <c-input-text v-model:value=\"inputUnicode\" multiline placeholder=\"Input Unicode\" label=\"Enter unicode to convert to text\" autosize raw-text test-id=\"unicode-to-text-input\" />\n    <c-input-text v-model:value=\"textFromUnicode\" label=\"Text from your Unicode\" multiline raw-text readonly mt-2 placeholder=\"The text representation of your unicode will be here\" test-id=\"unicode-to-text-output\" />\n    <div mt-2 flex justify-center>\n      <c-button :disabled=\"!textFromUnicode\" @click=\"copyText()\">\n        Copy text to clipboard\n      </c-button>\n    </div>\n  </c-card>\n</template>\n"
  },
  {
    "path": "src/tools/token-generator/index.ts",
    "content": "import { ArrowsShuffle } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.token-generator.title'),\n  path: '/token-generator',\n  description: translate('tools.token-generator.description'),\n  keywords: ['token', 'random', 'string', 'alphanumeric', 'symbols', 'number', 'letters', 'lowercase', 'uppercase', 'password'],\n  component: () => import('./token-generator.tool.vue'),\n  icon: ArrowsShuffle,\n});\n"
  },
  {
    "path": "src/tools/token-generator/token-generator.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - Token generator', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/token-generator');\n  });\n\n  test('Has title', async ({ page }) => {\n    await expect(page).toHaveTitle('Token generator - IT Tools');\n  });\n\n  test('New token on refresh', async ({ page }) => {\n    const initialToken = await page.getByPlaceholder('The token...').inputValue();\n    await page.getByRole('button', { name: 'Refresh' }).click();\n    const newToken = await page.getByPlaceholder('The token...').inputValue();\n\n    expect(newToken).not.toEqual(initialToken);\n  });\n});\n"
  },
  {
    "path": "src/tools/token-generator/token-generator.service.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { createToken } from './token-generator.service';\n\ndescribe('token-generator', () => {\n  describe('createToken', () => {\n    it('should generate an empty string when all params are false', () => {\n      const token = createToken({\n        withLowercase: false,\n        withUppercase: false,\n        withNumbers: false,\n        withSymbols: false,\n        length: 10,\n      });\n\n      expect(token).toHaveLength(0);\n    });\n\n    it('should generate a random string with the specified length', () => {\n      const createTokenWithLength = (length: number) =>\n        createToken({\n          withLowercase: true,\n          withUppercase: true,\n          withNumbers: true,\n          withSymbols: true,\n          length,\n        });\n\n      expect(createTokenWithLength(5)).toHaveLength(5);\n      expect(createTokenWithLength(10)).toHaveLength(10);\n      expect(createTokenWithLength(100)).toHaveLength(100);\n    });\n\n    it('should generate a random string with just uppercase if only withUppercase is set', () => {\n      const token = createToken({\n        withLowercase: false,\n        withUppercase: true,\n        withNumbers: false,\n        withSymbols: false,\n        length: 256,\n      });\n\n      expect(token).toHaveLength(256);\n      expect(token).toMatch(/^[A-Z]+$/);\n    });\n\n    it('should generate a random string with just lowercase if only withLowercase is set', () => {\n      const token = createToken({\n        withLowercase: true,\n        withUppercase: false,\n        withNumbers: false,\n        withSymbols: false,\n        length: 256,\n      });\n\n      expect(token).toHaveLength(256);\n      expect(token).toMatch(/^[a-z]+$/);\n    });\n\n    it('should generate a random string with just numbers if only withNumbers is set', () => {\n      const token = createToken({\n        withLowercase: false,\n        withUppercase: false,\n        withNumbers: true,\n        withSymbols: false,\n        length: 256,\n      });\n\n      expect(token).toHaveLength(256);\n      expect(token).toMatch(/^[0-9]+$/);\n    });\n\n    it('should generate a random string with just symbols if only withSymbols is set', () => {\n      const token = createToken({\n        withLowercase: false,\n        withUppercase: false,\n        withNumbers: false,\n        withSymbols: true,\n        length: 256,\n      });\n\n      expect(token).toHaveLength(256);\n      expect(token).toMatch(/^[.,;:!?./\\-\"'#{([-|\\\\@)\\]=}*+]+$/);\n    });\n\n    it('should generate a random string with just letters (case incensitive) with withLowercase and withUppercase', () => {\n      const token = createToken({\n        withLowercase: true,\n        withUppercase: true,\n        withNumbers: false,\n        withSymbols: false,\n        length: 256,\n      });\n\n      expect(token).toHaveLength(256);\n      expect(token).toMatch(/^[a-zA-Z]+$/);\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/token-generator/token-generator.service.ts",
    "content": "import { shuffleString } from '@/utils/random';\n\nexport function createToken({\n  withUppercase = true,\n  withLowercase = true,\n  withNumbers = true,\n  withSymbols = false,\n  length = 64,\n  alphabet,\n}: {\n  withUppercase?: boolean\n  withLowercase?: boolean\n  withNumbers?: boolean\n  withSymbols?: boolean\n  length?: number\n  alphabet?: string\n}) {\n  const allAlphabet = alphabet ?? [\n    withUppercase ? 'ABCDEFGHIJKLMOPQRSTUVWXYZ' : '',\n    withLowercase ? 'abcdefghijklmopqrstuvwxyz' : '',\n    withNumbers ? '0123456789' : '',\n    withSymbols ? '.,;:!?./-\"\\'#{([-|\\\\@)]=}*+' : '',\n  ].join('');\n\n  return shuffleString(allAlphabet.repeat(length)).substring(0, length);\n}\n"
  },
  {
    "path": "src/tools/token-generator/token-generator.tool.vue",
    "content": "<script setup lang=\"ts\">\nimport { createToken } from './token-generator.service';\nimport { useCopy } from '@/composable/copy';\nimport { useQueryParam } from '@/composable/queryParams';\nimport { computedRefreshable } from '@/composable/computedRefreshable';\n\nconst length = useQueryParam({ name: 'length', defaultValue: 64 });\nconst withUppercase = useQueryParam({ name: 'uppercase', defaultValue: true });\nconst withLowercase = useQueryParam({ name: 'lowercase', defaultValue: true });\nconst withNumbers = useQueryParam({ name: 'numbers', defaultValue: true });\nconst withSymbols = useQueryParam({ name: 'symbols', defaultValue: false });\nconst { t } = useI18n();\n\nconst [token, refreshToken] = computedRefreshable(() =>\n  createToken({\n    length: length.value,\n    withUppercase: withUppercase.value,\n    withLowercase: withLowercase.value,\n    withNumbers: withNumbers.value,\n    withSymbols: withSymbols.value,\n  }),\n);\n\nconst { copy } = useCopy({ source: token, text: t('tools.token-generator.copied') });\n</script>\n\n<template>\n  <div>\n    <c-card>\n      <n-form label-placement=\"left\" label-width=\"140\">\n        <div flex justify-center>\n          <div>\n            <n-form-item :label=\"t('tools.token-generator.uppercase')\">\n              <n-switch v-model:value=\"withUppercase\" />\n            </n-form-item>\n\n            <n-form-item :label=\"t('tools.token-generator.lowercase')\">\n              <n-switch v-model:value=\"withLowercase\" />\n            </n-form-item>\n          </div>\n\n          <div>\n            <n-form-item :label=\"t('tools.token-generator.numbers')\">\n              <n-switch v-model:value=\"withNumbers\" />\n            </n-form-item>\n\n            <n-form-item :label=\"t('tools.token-generator.symbols')\">\n              <n-switch v-model:value=\"withSymbols\" />\n            </n-form-item>\n          </div>\n        </div>\n      </n-form>\n\n      <n-form-item :label=\"`${t('tools.token-generator.length')} (${length})`\" label-placement=\"left\">\n        <n-slider v-model:value=\"length\" :step=\"1\" :min=\"1\" :max=\"512\" />\n      </n-form-item>\n\n      <c-input-text\n        v-model:value=\"token\"\n        multiline\n        :placeholder=\"t('tools.token-generator.tokenPlaceholder')\"\n        readonly\n        rows=\"3\"\n        autosize\n        class=\"token-display\"\n      />\n\n      <div mt-5 flex justify-center gap-3>\n        <c-button @click=\"copy()\">\n          {{ t('tools.token-generator.button.copy') }}\n        </c-button>\n        <c-button @click=\"refreshToken\">\n          {{ t('tools.token-generator.button.refresh') }}\n        </c-button>\n      </div>\n    </c-card>\n  </div>\n</template>\n\n<style scoped lang=\"less\">\n::v-deep(.token-display) {\n  textarea {\n    text-align: center;\n  }\n}\n</style>\n"
  },
  {
    "path": "src/tools/toml-to-json/index.ts",
    "content": "import { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nimport BracketIcon from '~icons/mdi/code-brackets';\n\nexport const tool = defineTool({\n  name: translate('tools.toml-to-json.title'),\n  path: '/toml-to-json',\n  description: translate('tools.toml-to-json.description'),\n  keywords: ['toml', 'json', 'convert', 'online', 'transform', 'parser'],\n  component: () => import('./toml-to-json.vue'),\n  icon: BracketIcon,\n  createdAt: new Date('2023-06-23'),\n});\n"
  },
  {
    "path": "src/tools/toml-to-json/toml-to-json.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - TOML to JSON', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/toml-to-json');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('TOML to JSON - IT Tools');\n  });\n\n  test('TOML is parsed and outputs clean JSON', async ({ page }) => {\n    await page.getByTestId('input').fill(`\nfoo = \"bar\"\n\n# This is a comment\n\n[list]\n  name = \"item\"\n[list.another]\n  key = \"value\"\n    `.trim());\n\n    const generatedJson = await page.getByTestId('area-content').innerText();\n\n    expect(generatedJson.trim()).toEqual(\n      `\n{\n   \"foo\": \"bar\",\n   \"list\": {\n      \"name\": \"item\",\n      \"another\": {\n         \"key\": \"value\"\n      }\n   }\n}\n   `.trim(),\n    );\n  });\n});\n"
  },
  {
    "path": "src/tools/toml-to-json/toml-to-json.vue",
    "content": "<script setup lang=\"ts\">\nimport { parse as parseToml } from 'iarna-toml-esm';\nimport { withDefaultOnError } from '../../utils/defaults';\nimport { isValidToml } from './toml.services';\nimport type { UseValidationRule } from '@/composable/validation';\n\nconst transformer = (value: string) => value === '' ? '' : withDefaultOnError(() => JSON.stringify(parseToml(value), null, 3), '');\n\nconst rules: UseValidationRule<string>[] = [\n  {\n    validator: isValidToml,\n    message: 'Provided TOML is not valid.',\n  },\n];\n</script>\n\n<template>\n  <format-transformer\n    input-label=\"Your TOML\"\n    input-placeholder=\"Paste your TOML here...\"\n    output-label=\"JSON from your TOML\"\n    output-language=\"json\"\n    :input-validation-rules=\"rules\"\n    :transformer=\"transformer\"\n  />\n</template>\n"
  },
  {
    "path": "src/tools/toml-to-json/toml.services.ts",
    "content": "import { parse as parseToml } from 'iarna-toml-esm';\nimport { isNotThrowing } from '../../utils/boolean';\n\nexport { isValidToml };\n\nfunction isValidToml(toml: string): boolean {\n  return isNotThrowing(() => parseToml(toml));\n}\n"
  },
  {
    "path": "src/tools/toml-to-yaml/index.ts",
    "content": "import { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\nimport BracketIcon from '~icons/mdi/code-brackets';\n\nexport const tool = defineTool({\n  name: translate('tools.toml-to-yaml.title'),\n  path: '/toml-to-yaml',\n  description: translate('tools.toml-to-yaml.description'),\n  keywords: ['toml', 'yaml', 'convert', 'online', 'transform', 'parse'],\n  component: () => import('./toml-to-yaml.vue'),\n  icon: BracketIcon,\n  createdAt: new Date('2023-06-23'),\n});\n"
  },
  {
    "path": "src/tools/toml-to-yaml/toml-to-yaml.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - TOML to YAML', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/toml-to-yaml');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('TOML to YAML - IT Tools');\n  });\n\n  test('TOML is parsed and outputs clean YAML', async ({ page }) => {\n    await page.getByTestId('input').fill(`\nfoo = \"bar\"\n\n# This is a comment\n\n[list]\n  name = \"item\"\n[list.another]\n  key = \"value\"\n    `.trim());\n\n    const generatedJson = await page.getByTestId('area-content').innerText();\n\n    expect(generatedJson.trim()).toEqual(\n      `\nfoo: bar\nlist:\n  name: item\n  another:\n    key: value\n   `.trim(),\n    );\n  });\n});\n"
  },
  {
    "path": "src/tools/toml-to-yaml/toml-to-yaml.vue",
    "content": "<script setup lang=\"ts\">\nimport { parse as parseToml } from 'iarna-toml-esm';\nimport { stringify as stringifyToYaml } from 'yaml';\nimport { withDefaultOnError } from '../../utils/defaults';\nimport { isValidToml } from '../toml-to-json/toml.services';\nimport type { UseValidationRule } from '@/composable/validation';\n\nconst transformer = (value: string) => value.trim() === '' ? '' : withDefaultOnError(() => stringifyToYaml(parseToml(value)), '');\n\nconst rules: UseValidationRule<string>[] = [\n  {\n    validator: isValidToml,\n    message: 'Provided TOML is not valid.',\n  },\n];\n</script>\n\n<template>\n  <format-transformer\n    input-label=\"Your TOML\"\n    input-placeholder=\"Paste your TOML here...\"\n    output-label=\"YAML from your TOML\"\n    output-language=\"yaml\"\n    :input-validation-rules=\"rules\"\n    :transformer=\"transformer\"\n  />\n</template>\n"
  },
  {
    "path": "src/tools/tool.ts",
    "content": "import { isAfter, subWeeks } from 'date-fns';\nimport type { Tool } from './tools.types';\n\ntype WithOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;\n\nexport function defineTool(tool: WithOptional<Tool, 'isNew'>) {\n  const isNew = tool.createdAt ? isAfter(tool.createdAt, subWeeks(new Date(), 2)) : false;\n\n  return {\n    isNew,\n    ...tool,\n  };\n}\n"
  },
  {
    "path": "src/tools/tools.store.ts",
    "content": "import { type MaybeRef, get, useStorage } from '@vueuse/core';\nimport { defineStore } from 'pinia';\nimport type { Ref } from 'vue';\nimport _ from 'lodash';\nimport type { Tool, ToolCategory, ToolWithCategory } from './tools.types';\nimport { toolsWithCategory } from './index';\n\nexport const useToolStore = defineStore('tools', () => {\n  const favoriteToolsName = useStorage('favoriteToolsName', []) as Ref<string[]>;\n  const { t } = useI18n();\n\n  const tools = computed<ToolWithCategory[]>(() => toolsWithCategory.map((tool) => {\n    const toolI18nKey = tool.path.replace(/\\//g, '');\n\n    return ({\n      ...tool,\n      path: tool.path,\n      name: t(`tools.${toolI18nKey}.title`, tool.name),\n      description: t(`tools.${toolI18nKey}.description`, tool.description),\n      category: t(`tools.categories.${tool.category.toLowerCase()}`, tool.category),\n    });\n  }));\n\n  const toolsByCategory = computed<ToolCategory[]>(() => {\n    return _.chain(tools.value)\n      .groupBy('category')\n      .map((components, name, path) => ({\n        name,\n        path,\n        components,\n      }))\n      .value();\n  });\n\n  const favoriteTools = computed(() => {\n    return favoriteToolsName.value\n      .map(favoriteName => tools.value.find(({ name, path }) => name === favoriteName || path === favoriteName))\n      .filter(Boolean) as ToolWithCategory[]; // cast because .filter(Boolean) does not remove undefined from type\n  });\n\n  return {\n    tools,\n    favoriteTools,\n    toolsByCategory,\n    newTools: computed(() => tools.value.filter(({ isNew }) => isNew)),\n\n    addToolToFavorites({ tool }: { tool: MaybeRef<Tool> }) {\n      const toolPath = get(tool).path;\n      if (toolPath) {\n        favoriteToolsName.value.push(toolPath);\n      }\n    },\n\n    removeToolFromFavorites({ tool }: { tool: MaybeRef<Tool> }) {\n      favoriteToolsName.value = favoriteToolsName.value.filter(name => get(tool).name !== name && get(tool).path !== name);\n    },\n\n    isToolFavorite({ tool }: { tool: MaybeRef<Tool> }) {\n      return favoriteToolsName.value.includes(get(tool).name)\n        || favoriteToolsName.value.includes(get(tool).path);\n    },\n\n    updateFavoriteTools(newOrder: ToolWithCategory[]) {\n      favoriteToolsName.value = newOrder.map(tool => tool.path);\n    },\n  };\n});\n"
  },
  {
    "path": "src/tools/tools.types.ts",
    "content": "import type { Component } from 'vue';\n\nexport interface Tool {\n  name: string\n  path: string\n  description: string\n  keywords: string[]\n  component: () => Promise<Component>\n  icon: Component\n  redirectFrom?: string[]\n  isNew: boolean\n  createdAt?: Date\n}\n\nexport interface ToolCategory {\n  name: string\n  components: Tool[]\n}\n\nexport type ToolWithCategory = Tool & { category: string };\n"
  },
  {
    "path": "src/tools/ulid-generator/index.ts",
    "content": "import { SortDescendingNumbers } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.ulid-generator.title'),\n  path: '/ulid-generator',\n  description: translate('tools.ulid-generator.description'),\n  keywords: ['ulid', 'generator', 'random', 'id', 'alphanumeric', 'identity', 'token', 'string', 'identifier', 'unique'],\n  component: () => import('./ulid-generator.vue'),\n  icon: SortDescendingNumbers,\n  createdAt: new Date('2023-09-11'),\n});\n"
  },
  {
    "path": "src/tools/ulid-generator/ulid-generator.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\nconst ULID_REGEX = /[0-9A-Z]{26}/;\n\ntest.describe('Tool - ULID generator', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/ulid-generator');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('ULID generator - IT Tools');\n  });\n\n  test('the refresh button generates a new ulid', async ({ page }) => {\n    const ulid = await page.getByTestId('ulids').textContent();\n    expect(ulid?.trim()).toMatch(ULID_REGEX);\n\n    await page.getByTestId('refresh').click();\n    const newUlid = await page.getByTestId('ulids').textContent();\n    expect(ulid?.trim()).not.toBe(newUlid?.trim());\n    expect(newUlid?.trim()).toMatch(ULID_REGEX);\n  });\n});\n"
  },
  {
    "path": "src/tools/ulid-generator/ulid-generator.vue",
    "content": "<script setup lang=\"ts\">\nimport { ulid } from 'ulid';\nimport _ from 'lodash';\nimport { computedRefreshable } from '@/composable/computedRefreshable';\nimport { useCopy } from '@/composable/copy';\n\nconst amount = useStorage('ulid-generator-amount', 1);\nconst formats = [{ label: 'Raw', value: 'raw' }, { label: 'JSON', value: 'json' }] as const;\nconst format = useStorage<typeof formats[number]['value']>('ulid-generator-format', formats[0].value);\n\nconst [ulids, refreshUlids] = computedRefreshable(() => {\n  const ids = _.times(amount.value, () => ulid());\n\n  if (format.value === 'json') {\n    return JSON.stringify(ids, null, 2);\n  }\n\n  return ids.join('\\n');\n});\n\nconst { copy } = useCopy({ source: ulids, text: 'ULIDs copied to the clipboard' });\n</script>\n\n<template>\n  <div flex flex-col justify-center gap-2>\n    <div flex items-center>\n      <label w-75px> Quantity:</label>\n      <n-input-number v-model:value=\"amount\" min=\"1\" max=\"100\" flex-1 />\n    </div>\n\n    <c-buttons-select v-model:value=\"format\" :options=\"formats\" label=\"Format: \" label-width=\"75px\" />\n\n    <c-card mt-5 flex data-test-id=\"ulids\">\n      <pre m-0 m-x-auto>{{ ulids }}</pre>\n    </c-card>\n\n    <div flex justify-center gap-2>\n      <c-button data-test-id=\"refresh\" @click=\"refreshUlids()\">\n        Refresh\n      </c-button>\n      <c-button @click=\"copy()\">\n        Copy\n      </c-button>\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/url-encoder/index.ts",
    "content": "import { Link } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.url-encoder.title'),\n  path: '/url-encoder',\n  description: translate('tools.url-encoder.description'),\n  keywords: ['url', 'encode', 'decode', 'percent', '%20', 'format'],\n  component: () => import('./url-encoder.vue'),\n  icon: Link,\n});\n"
  },
  {
    "path": "src/tools/url-encoder/url-encoder.vue",
    "content": "<script setup lang=\"ts\">\nimport { useCopy } from '@/composable/copy';\nimport { useValidation } from '@/composable/validation';\nimport { isNotThrowing } from '@/utils/boolean';\nimport { withDefaultOnError } from '@/utils/defaults';\n\nconst encodeInput = ref('Hello world :)');\nconst encodeOutput = computed(() => withDefaultOnError(() => encodeURIComponent(encodeInput.value), ''));\n\nconst encodedValidation = useValidation({\n  source: encodeInput,\n  rules: [\n    {\n      validator: value => isNotThrowing(() => encodeURIComponent(value)),\n      message: 'Impossible to parse this string',\n    },\n  ],\n});\n\nconst { copy: copyEncoded } = useCopy({ source: encodeOutput, text: 'Encoded string copied to the clipboard' });\n\nconst decodeInput = ref('Hello%20world%20%3A)');\nconst decodeOutput = computed(() => withDefaultOnError(() => decodeURIComponent(decodeInput.value), ''));\n\nconst decodeValidation = useValidation({\n  source: decodeInput,\n  rules: [\n    {\n      validator: value => isNotThrowing(() => decodeURIComponent(value)),\n      message: 'Impossible to parse this string',\n    },\n  ],\n});\n\nconst { copy: copyDecoded } = useCopy({ source: decodeOutput, text: 'Decoded string copied to the clipboard' });\n</script>\n\n<template>\n  <c-card title=\"Encode\">\n    <c-input-text\n      v-model:value=\"encodeInput\"\n      label=\"Your string :\"\n      :validation=\"encodedValidation\"\n      multiline\n      autosize\n      placeholder=\"The string to encode\"\n      rows=\"2\"\n      mb-3\n    />\n\n    <c-input-text\n      label=\"Your string encoded :\"\n      :value=\"encodeOutput\"\n      multiline\n      autosize\n      readonly\n      placeholder=\"Your string encoded\"\n      rows=\"2\"\n      mb-3\n    />\n\n    <div flex justify-center>\n      <c-button @click=\"copyEncoded()\">\n        Copy\n      </c-button>\n    </div>\n  </c-card>\n  <c-card title=\"Decode\">\n    <c-input-text\n      v-model:value=\"decodeInput\"\n      label=\"Your encoded string :\"\n      :validation=\"decodeValidation\"\n      multiline\n      autosize\n      placeholder=\"The string to decode\"\n      rows=\"2\"\n      mb-3\n    />\n\n    <c-input-text\n      label=\"Your string decoded :\"\n      :value=\"decodeOutput\"\n      multiline\n      autosize\n      readonly\n      placeholder=\"Your string decoded\"\n      rows=\"2\"\n      mb-3\n    />\n\n    <div flex justify-center>\n      <c-button @click=\"copyDecoded()\">\n        Copy\n      </c-button>\n    </div>\n  </c-card>\n</template>\n"
  },
  {
    "path": "src/tools/url-parser/index.ts",
    "content": "import { Unlink } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.url-parser.title'),\n  path: '/url-parser',\n  description: translate('tools.url-parser.description'),\n  keywords: ['url', 'parser', 'protocol', 'origin', 'params', 'port', 'username', 'password', 'href'],\n  component: () => import('./url-parser.vue'),\n  icon: Unlink,\n});\n"
  },
  {
    "path": "src/tools/url-parser/url-parser.vue",
    "content": "<script setup lang=\"ts\">\nimport InputCopyable from '../../components/InputCopyable.vue';\nimport { isNotThrowing } from '@/utils/boolean';\nimport { withDefaultOnError } from '@/utils/defaults';\n\nconst urlToParse = ref('https://me:pwd@it-tools.tech:3000/url-parser?key1=value&key2=value2#the-hash');\n\nconst urlParsed = computed(() => withDefaultOnError(() => new URL(urlToParse.value), undefined));\nconst urlValidationRules = [\n  {\n    validator: (value: string) => isNotThrowing(() => new URL(value)),\n    message: 'Invalid url',\n  },\n];\n\nconst properties: { title: string; key: keyof URL }[] = [\n  { title: 'Protocol', key: 'protocol' },\n  { title: 'Username', key: 'username' },\n  { title: 'Password', key: 'password' },\n  { title: 'Hostname', key: 'hostname' },\n  { title: 'Port', key: 'port' },\n  { title: 'Path', key: 'pathname' },\n  { title: 'Params', key: 'search' },\n];\n</script>\n\n<template>\n  <c-card>\n    <c-input-text\n      v-model:value=\"urlToParse\"\n      label=\"Your url to parse:\"\n      placeholder=\"Your url to parse...\"\n      raw-text\n      :validation-rules=\"urlValidationRules\"\n    />\n\n    <n-divider />\n\n    <InputCopyable\n      v-for=\"{ title, key } in properties\"\n      :key=\"key\"\n      :label=\"title\"\n      :value=\"(urlParsed?.[key] as string) ?? ''\"\n      readonly\n      label-position=\"left\"\n      label-width=\"110px\"\n      mb-2\n      placeholder=\" \"\n    />\n\n    <div\n      v-for=\"[k, v] in Object.entries(Object.fromEntries(urlParsed?.searchParams.entries() ?? []))\"\n      :key=\"k\"\n      mb-2\n      w-full\n      flex\n    >\n      <div style=\"flex: 1 0 110px\">\n        <icon-mdi-arrow-right-bottom />\n      </div>\n\n      <InputCopyable :value=\"k\" readonly />\n      <InputCopyable :value=\"v\" readonly />\n    </div>\n  </c-card>\n</template>\n\n<style lang=\"less\" scoped>\n.n-input-group-label {\n  text-align: right;\n}\n.n-input-group {\n  margin: 2px 0;\n}\n</style>\n"
  },
  {
    "path": "src/tools/user-agent-parser/index.ts",
    "content": "import { Browser } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.user-agent-parser.title'),\n  path: '/user-agent-parser',\n  description: translate('tools.user-agent-parser.description'),\n  keywords: ['user', 'agent', 'parser', 'browser', 'engine', 'os', 'cpu', 'device', 'user-agent', 'client'],\n  component: () => import('./user-agent-parser.vue'),\n  icon: Browser,\n  createdAt: new Date('2023-04-06'),\n});\n"
  },
  {
    "path": "src/tools/user-agent-parser/user-agent-parser.types.ts",
    "content": "import type { Component } from 'vue';\nimport type { UAParser } from 'ua-parser-js';\n\nexport interface UserAgentResultSection {\n  heading: string\n  icon?: Component\n  content: {\n    label: string\n    getValue: (blocks?: UAParser.IResult) => string | undefined\n    undefinedFallback?: string\n  }[]\n}\n"
  },
  {
    "path": "src/tools/user-agent-parser/user-agent-parser.vue",
    "content": "<script setup lang=\"ts\">\nimport { UAParser } from 'ua-parser-js';\nimport { Adjustments, Browser, Cpu, Devices, Engine } from '@vicons/tabler';\nimport UserAgentResultCards from './user-agent-result-cards.vue';\nimport type { UserAgentResultSection } from './user-agent-parser.types';\nimport { withDefaultOnError } from '@/utils/defaults';\n\nconst ua = ref(navigator.userAgent as string);\n\n// If not input in the ua field is present return an empty object of type UAParser.IResult because otherwise\n// UAParser returns the values for the current Browser. This is confusing because results are shown for an empty\n// UA field value.\nfunction getUserAgentInfo(userAgent: string) {\n  return userAgent.trim().length > 0\n    ? UAParser(userAgent.trim())\n    : ({ ua: '', browser: {}, cpu: {}, device: {}, engine: {}, os: {} } as UAParser.IResult);\n}\nconst userAgentInfo = computed(() => withDefaultOnError(() => getUserAgentInfo(ua.value), undefined));\n\nconst sections: UserAgentResultSection[] = [\n  {\n    heading: 'Browser',\n    icon: Browser,\n    content: [\n      {\n        label: 'Name',\n        getValue: block => block?.browser.name,\n        undefinedFallback: 'No browser name available',\n      },\n      {\n        label: 'Version',\n        getValue: block => block?.browser.version,\n        undefinedFallback: 'No browser version available',\n      },\n    ],\n  },\n  {\n    heading: 'Engine',\n    icon: Engine,\n    content: [\n      {\n        label: 'Name',\n        getValue: block => block?.engine.name,\n        undefinedFallback: 'No engine name available',\n      },\n      {\n        label: 'Version',\n        getValue: block => block?.engine.version,\n        undefinedFallback: 'No engine version available',\n      },\n    ],\n  },\n  {\n    heading: 'OS',\n    icon: Adjustments,\n    content: [\n      {\n        label: 'Name',\n        getValue: block => block?.os.name,\n        undefinedFallback: 'No OS name available',\n      },\n      {\n        label: 'Version',\n        getValue: block => block?.os.version,\n        undefinedFallback: 'No OS version available',\n      },\n    ],\n  },\n  {\n    heading: 'Device',\n    icon: Devices,\n    content: [\n      {\n        label: 'Model',\n        getValue: block => block?.device.model,\n        undefinedFallback: 'No device model available',\n      },\n      {\n        label: 'Type',\n        getValue: block => block?.device.type,\n        undefinedFallback: 'No device type available',\n      },\n      {\n        label: 'Vendor',\n        getValue: block => block?.device.vendor,\n        undefinedFallback: 'No device vendor available',\n      },\n    ],\n  },\n  {\n    heading: 'CPU',\n    icon: Cpu,\n    content: [\n      {\n        label: 'Architecture',\n        getValue: block => block?.cpu.architecture,\n        undefinedFallback: 'No CPU architecture available',\n      },\n    ],\n  },\n];\n</script>\n\n<template>\n  <div>\n    <c-input-text\n      v-model:value=\"ua\"\n      label=\"User agent string\"\n      multiline\n      placeholder=\"Put your user-agent here...\"\n      clearable\n      raw-text\n      rows=\"2\"\n      autosize\n      monospace\n      mb-3\n    />\n\n    <UserAgentResultCards :user-agent-info=\"userAgentInfo\" :sections=\"sections\" />\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/user-agent-parser/user-agent-result-cards.vue",
    "content": "<script setup lang=\"ts\">\nimport type { UAParser } from 'ua-parser-js';\nimport type { UserAgentResultSection } from './user-agent-parser.types';\n\nconst props = defineProps<{\n  userAgentInfo?: UAParser.IResult\n  sections: UserAgentResultSection[]\n}>();\nconst { userAgentInfo, sections } = toRefs(props);\n</script>\n\n<template>\n  <div>\n    <n-grid :x-gap=\"12\" :y-gap=\"8\" cols=\"1 s:2\" responsive=\"screen\">\n      <n-gi v-for=\"{ heading, icon, content } in sections\" :key=\"heading\">\n        <c-card h-full>\n          <div flex items-center gap-3>\n            <n-icon size=\"30\" :component=\"icon\" :depth=\"3\" />\n            <span text-lg>{{ heading }}</span>\n          </div>\n\n          <div mt-5 flex gap-2>\n            <span v-for=\"{ label, getValue } in content\" :key=\"label\">\n              <c-tooltip v-if=\"getValue(userAgentInfo)\" :tooltip=\"label\">\n                <n-tag type=\"success\" size=\"large\" round :bordered=\"false\">\n                  {{ getValue(userAgentInfo) }}\n                </n-tag>\n              </c-tooltip>\n            </span>\n          </div>\n          <div flex flex-col>\n            <span v-for=\"{ label, getValue, undefinedFallback } in content\" :key=\"label\">\n              <span v-if=\"getValue(userAgentInfo) === undefined\" op-70>{{ undefinedFallback }}</span>\n            </span>\n          </div>\n        </c-card>\n      </n-gi>\n    </n-grid>\n  </div>\n</template>\n"
  },
  {
    "path": "src/tools/uuid-generator/index.ts",
    "content": "import { Fingerprint } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.uuid-generator.title'),\n  path: '/uuid-generator',\n  description: translate('tools.uuid-generator.description'),\n  keywords: ['uuid', 'v4', 'random', 'id', 'alphanumeric', 'identity', 'token', 'string', 'identifier', 'unique', 'v1', 'v3', 'v5', 'nil'],\n  component: () => import('./uuid-generator.vue'),\n  icon: Fingerprint,\n});\n"
  },
  {
    "path": "src/tools/uuid-generator/uuid-generator.vue",
    "content": "<script setup lang=\"ts\">\nimport { v1 as generateUuidV1, v3 as generateUuidV3, v4 as generateUuidV4, v5 as generateUuidV5, NIL as nilUuid } from 'uuid';\nimport { useCopy } from '@/composable/copy';\nimport { computedRefreshable } from '@/composable/computedRefreshable';\nimport { withDefaultOnError } from '@/utils/defaults';\n\nconst versions = ['NIL', 'v1', 'v3', 'v4', 'v5'] as const;\n\nconst version = useStorage<typeof versions[number]>('uuid-generator:version', 'v4');\nconst count = useStorage('uuid-generator:quantity', 1);\nconst v35Args = ref({ namespace: '6ba7b811-9dad-11d1-80b4-00c04fd430c8', name: '' });\n\nconst validUuidRules = [\n  {\n    message: 'Invalid UUID',\n    validator: (value: string) => {\n      if (value === nilUuid) {\n        return true;\n      }\n\n      return Boolean(value.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/));\n    },\n  },\n];\n\nconst generators = {\n  NIL: () => nilUuid,\n  v1: (index: number) => generateUuidV1({\n    clockseq: index,\n    msecs: Date.now(),\n    nsecs: Math.floor(Math.random() * 10000),\n    node: Array.from({ length: 6 }, () => Math.floor(Math.random() * 256)),\n  }),\n  v3: () => generateUuidV3(v35Args.value.name, v35Args.value.namespace),\n  v4: () => generateUuidV4(),\n  v5: () => generateUuidV5(v35Args.value.name, v35Args.value.namespace),\n};\n\nconst [uuids, refreshUUIDs] = computedRefreshable(() => withDefaultOnError(() =>\n  Array.from({ length: count.value }, (_ignored, index) => {\n    const generator = generators[version.value] ?? generators.NIL;\n    return generator(index);\n  }).join('\\n'), ''));\n\nconst { copy } = useCopy({ source: uuids, text: 'UUIDs copied to the clipboard' });\n</script>\n\n<template>\n  <div>\n    <c-buttons-select v-model:value=\"version\" :options=\"versions\" label=\"UUID version\" label-width=\"100px\" mb-2 />\n\n    <div mb-2 flex items-center>\n      <span w-100px>Quantity </span>\n      <n-input-number v-model:value=\"count\" flex-1 :min=\"1\" :max=\"50\" placeholder=\"UUID quantity\" />\n    </div>\n\n    <div v-if=\"version === 'v3' || version === 'v5'\">\n      <div>\n        <c-buttons-select\n          v-model:value=\"v35Args.namespace\"\n          :options=\"{\n            DNS: '6ba7b810-9dad-11d1-80b4-00c04fd430c8',\n            URL: '6ba7b811-9dad-11d1-80b4-00c04fd430c8',\n            OID: '6ba7b812-9dad-11d1-80b4-00c04fd430c8',\n            X500: '6ba7b814-9dad-11d1-80b4-00c04fd430c8',\n          }\"\n          label=\"Namespace\"\n          label-width=\"100px\"\n          mb-2\n        />\n      </div>\n      <div flex-1>\n        <c-input-text\n          v-model:value=\"v35Args.namespace\"\n          placeholder=\"Namespace\"\n          label-width=\"100px\"\n          label-position=\"left\"\n          label=\" \"\n          :validation-rules=\"validUuidRules\"\n          mb-2\n        />\n      </div>\n\n      <c-input-text\n        v-model:value=\"v35Args.name\"\n        placeholder=\"Name\"\n        label=\"Name\"\n        label-width=\"100px\"\n        label-position=\"left\"\n        mb-2\n      />\n    </div>\n\n    <c-input-text\n      style=\"text-align: center; font-family: monospace\"\n      :value=\"uuids\"\n      multiline\n      placeholder=\"Your uuids\"\n      autosize\n      rows=\"1\"\n      readonly\n      raw-text\n      monospace\n      my-3\n      class=\"uuid-display\"\n    />\n\n    <div flex justify-center gap-3>\n      <c-button autofocus @click=\"copy()\">\n        Copy\n      </c-button>\n      <c-button @click=\"refreshUUIDs\">\n        Refresh\n      </c-button>\n    </div>\n  </div>\n</template>\n\n<style scoped lang=\"less\">\n::v-deep(.uuid-display) {\n  textarea {\n    text-align: center;\n  }\n}\n</style>\n"
  },
  {
    "path": "src/tools/wifi-qr-code-generator/index.ts",
    "content": "import { Qrcode } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.wifi-qrcode-generator.title'),\n  path: '/wifi-qrcode-generator',\n  description: translate('tools.wifi-qrcode-generator.description'),\n  keywords: ['qr', 'code', 'generator', 'square', 'color', 'link', 'low', 'medium', 'quartile', 'high', 'transparent', 'wifi'],\n  component: () => import('./wifi-qr-code-generator.vue'),\n  icon: Qrcode,\n  createdAt: new Date('2023-09-06'),\n});\n"
  },
  {
    "path": "src/tools/wifi-qr-code-generator/useQRCode.ts",
    "content": "import { type MaybeRef, get } from '@vueuse/core';\nimport QRCode, { type QRCodeToDataURLOptions } from 'qrcode';\nimport { isRef, ref, watch } from 'vue';\n\nexport const wifiEncryptions = ['WEP', 'WPA', 'nopass', 'WPA2-EAP'] as const;\nexport type WifiEncryption = typeof wifiEncryptions[number];\n\n// @see https://en.wikipedia.org/wiki/Extensible_Authentication_Protocol\n// for a list of available EAP methods. There are a lot (40!) of them.\nexport const EAPMethods = [\n  'MD5',\n  'POTP',\n  'GTC',\n  'TLS',\n  'IKEv2',\n  'SIM',\n  'AKA',\n  'AKA\\'',\n  'TTLS',\n  'PWD',\n  'LEAP',\n  'PSK',\n  'FAST',\n  'TEAP',\n  'EKE',\n  'NOOB',\n  'PEAP',\n] as const;\nexport type EAPMethod = typeof EAPMethods[number];\n\nexport const EAPPhase2Methods = [\n  'None',\n  'MSCHAPV2',\n] as const;\nexport type EAPPhase2Method = typeof EAPPhase2Methods[number];\n\ninterface IWifiQRCodeOptions {\n  ssid: MaybeRef<string>\n  password: MaybeRef<string>\n  eapMethod: MaybeRef<EAPMethod>\n  isHiddenSSID: MaybeRef<boolean>\n  eapAnonymous: MaybeRef<boolean>\n  eapIdentity: MaybeRef<string>\n  eapPhase2Method: MaybeRef<EAPPhase2Method>\n  color: { foreground: MaybeRef<string>; background: MaybeRef<string> }\n  options?: QRCodeToDataURLOptions\n}\n\ninterface GetQrCodeTextOptions {\n  ssid: string\n  password: string\n  encryption: WifiEncryption\n  eapMethod: EAPMethod\n  isHiddenSSID: boolean\n  eapAnonymous: boolean\n  eapIdentity: string\n  eapPhase2Method: EAPPhase2Method\n}\n\nfunction escapeString(str: string) {\n  // replaces \\, ;, ,, \" and : with the same character preceded by a backslash\n  return str.replace(/([\\\\;,:\"])/g, '\\\\$1');\n}\n\nfunction getQrCodeText(options: GetQrCodeTextOptions): string | null {\n  const { ssid, password, encryption, eapMethod, isHiddenSSID, eapAnonymous, eapIdentity, eapPhase2Method } = options;\n  if (!ssid) {\n    return null;\n  }\n  if (encryption === 'nopass') {\n    return `WIFI:S:${escapeString(ssid)};;`; // type can be omitted in that case, and password is not needed, makes the QR Code smaller\n  }\n  if (encryption !== 'WPA2-EAP' && password) {\n    // EAP has a lot of options, so we'll handle it separately\n    // WPA and WEP are pretty simple though.\n    return `WIFI:S:${escapeString(ssid)};T:${encryption};P:${escapeString(password)};${isHiddenSSID ? 'H:true' : ''};`;\n  }\n  if (encryption === 'WPA2-EAP' && password && eapMethod) {\n    // WPA2-EAP string is a lot more complex, first off, we drop the text if there is no identity, and it's not anonymous.\n    if (!eapIdentity && !eapAnonymous) {\n      return null;\n    }\n    // From reading, I could only find that a phase 2 is required for the PEAP method, I may be wrong though, I didn't read the whole spec.\n    if (eapMethod === 'PEAP' && !eapPhase2Method) {\n      return null;\n    }\n    // The string is built in the following order:\n    // 1. SSID\n    // 2. Authentication type\n    // 3. Password\n    // 4. EAP method\n    // 5. EAP phase 2 method\n    // 6. Identity or anonymous if checked\n    // 7. Hidden SSID if checked\n    const identity = eapAnonymous ? 'A:anon' : `I:${escapeString(eapIdentity)}`;\n    const phase2 = eapPhase2Method !== 'None' ? `PH2:${eapPhase2Method};` : '';\n    return `WIFI:S:${escapeString(ssid)};T:WPA2-EAP;P:${escapeString(password)};E:${eapMethod};${phase2}${identity};${isHiddenSSID ? 'H:true' : ''};`;\n  }\n  return null;\n}\n\nexport function useWifiQRCode({\n  ssid,\n  password,\n  eapMethod,\n  isHiddenSSID,\n  eapAnonymous,\n  eapIdentity,\n  eapPhase2Method,\n  color: { background, foreground },\n  options,\n}: IWifiQRCodeOptions) {\n  const qrcode = ref('');\n  const encryption = ref<WifiEncryption>('WPA');\n\n  watch(\n    [ssid, password, encryption, eapMethod, isHiddenSSID, eapAnonymous, eapIdentity, eapPhase2Method, background, foreground].filter(isRef),\n    async () => {\n      // @see https://github.com/zxing/zxing/wiki/Barcode-Contents#wi-fi-network-config-android-ios-11\n      // This is the full spec, there's quite a bit of logic to generate the string embeddedin the QR code.\n      const text = getQrCodeText({\n        ssid: get(ssid),\n        password: get(password),\n        encryption: get(encryption),\n        eapMethod: get(eapMethod),\n        isHiddenSSID: get(isHiddenSSID),\n        eapAnonymous: get(eapAnonymous),\n        eapIdentity: get(eapIdentity),\n        eapPhase2Method: get(eapPhase2Method),\n      });\n      if (text) {\n        qrcode.value = await QRCode.toDataURL(get(text).trim(), {\n          color: {\n            dark: get(foreground),\n            light: get(background),\n            ...options?.color,\n          },\n          errorCorrectionLevel: 'M',\n          ...options,\n        });\n      }\n    },\n    { immediate: true },\n  );\n  return { qrcode, encryption };\n}\n"
  },
  {
    "path": "src/tools/wifi-qr-code-generator/wifi-qr-code-generator.vue",
    "content": "<script setup lang=\"ts\">\nimport {\n  EAPMethods,\n  EAPPhase2Methods,\n  useWifiQRCode,\n} from './useQRCode';\nimport { useDownloadFileFromBase64 } from '@/composable/downloadBase64';\n\nconst foreground = ref('#000000ff');\nconst background = ref('#ffffffff');\n\nconst ssid = ref();\nconst password = ref();\nconst eapMethod = ref();\nconst isHiddenSSID = ref(false);\nconst eapAnonymous = ref(false);\nconst eapIdentity = ref();\nconst eapPhase2Method = ref();\n\nconst { qrcode, encryption } = useWifiQRCode({\n  ssid,\n  password,\n  eapMethod,\n  isHiddenSSID,\n  eapAnonymous,\n  eapIdentity,\n  eapPhase2Method,\n  color: {\n    background,\n    foreground,\n  },\n  options: { width: 1024 },\n});\n\nconst { download } = useDownloadFileFromBase64({ source: qrcode, filename: 'qr-code.png' });\n</script>\n\n<template>\n  <c-card>\n    <div grid grid-cols-1 gap-12>\n      <div>\n        <c-select\n          v-model:value=\"encryption\"\n          mb-4\n          label=\"Encryption method\"\n          default-value=\"WPA\"\n          label-position=\"left\"\n          label-width=\"130px\"\n          label-align=\"right\"\n          :options=\"[\n            {\n              label: 'No password',\n              value: 'nopass',\n            },\n            {\n              label: 'WPA/WPA2',\n              value: 'WPA',\n            },\n            {\n              label: 'WEP',\n              value: 'WEP',\n            },\n            {\n              label: 'WPA2-EAP',\n              value: 'WPA2-EAP',\n            },\n          ]\"\n        />\n        <div class=\"mb-6 flex flex-row items-center gap-2\">\n          <c-input-text\n            v-model:value=\"ssid\"\n            label-position=\"left\"\n            label-width=\"130px\"\n            label-align=\"right\"\n            label=\"SSID:\"\n            rows=\"1\"\n            autosize\n            placeholder=\"Your WiFi SSID...\"\n            mb-6\n          />\n          <n-checkbox v-model:checked=\"isHiddenSSID\">\n            Hidden SSID\n          </n-checkbox>\n        </div>\n        <c-input-text\n          v-if=\"encryption !== 'nopass'\"\n          v-model:value=\"password\"\n          label-position=\"left\"\n          label-width=\"130px\"\n          label-align=\"right\"\n          label=\"Password:\"\n          rows=\"1\"\n          autosize\n          type=\"password\"\n          placeholder=\"Your WiFi Password...\"\n          mb-6\n        />\n        <c-select\n          v-if=\"encryption === 'WPA2-EAP'\"\n          v-model:value=\"eapMethod\"\n          label=\"EAP method\"\n          label-position=\"left\"\n          label-width=\"130px\"\n          label-align=\"right\"\n          :options=\"EAPMethods.map((method) => ({ label: method, value: method }))\"\n          searchable mb-4\n        />\n        <div v-if=\"encryption === 'WPA2-EAP'\" class=\"mb-6 flex flex-row items-center gap-2\">\n          <c-input-text\n            v-model:value=\"eapIdentity\"\n            label-position=\"left\"\n            label-width=\"130px\"\n            label-align=\"right\"\n            label=\"Identity:\"\n            rows=\"1\"\n            autosize\n            placeholder=\"Your EAP Identity...\"\n            mb-6\n          />\n          <n-checkbox v-model:checked=\"eapAnonymous\">\n            Anonymous?\n          </n-checkbox>\n        </div>\n        <c-select\n          v-if=\"encryption === 'WPA2-EAP'\"\n          v-model:value=\"eapPhase2Method\"\n          label=\"EAP Phase 2 method\"\n          label-position=\"left\"\n          label-width=\"130px\"\n          label-align=\"right\"\n          :options=\"EAPPhase2Methods.map((method) => ({ label: method, value: method }))\"\n          searchable mb-4\n        />\n        <n-form label-width=\"130\" label-placement=\"left\">\n          <n-form-item label=\"Foreground color:\">\n            <n-color-picker v-model:value=\"foreground\" :modes=\"['hex']\" />\n          </n-form-item>\n          <n-form-item label=\"Background color:\">\n            <n-color-picker v-model:value=\"background\" :modes=\"['hex']\" />\n          </n-form-item>\n        </n-form>\n      </div>\n      <div v-if=\"qrcode\">\n        <div flex flex-col items-center gap-3>\n          <img alt=\"wifi-qrcode\" :src=\"qrcode\" width=\"200\">\n          <c-button @click=\"download\">\n            Download qr-code\n          </c-button>\n        </div>\n      </div>\n    </div>\n  </c-card>\n</template>\n"
  },
  {
    "path": "src/tools/xml-formatter/index.ts",
    "content": "import { Code } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.xml-formatter.title'),\n  path: '/xml-formatter',\n  description: translate('tools.xml-formatter.description'),\n  keywords: ['xml', 'prettify', 'format'],\n  component: () => import('./xml-formatter.vue'),\n  icon: Code,\n  createdAt: new Date('2023-06-17'),\n});\n"
  },
  {
    "path": "src/tools/xml-formatter/xml-formatter.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - XML formatter', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/xml-formatter');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('XML formatter - IT Tools');\n  });\n\n  test('XML is converted into a human readable format', async ({ page }) => {\n    await page.getByTestId('input').fill('<foo><bar>baz</bar><bar>baz</bar></foo>');\n\n    const formattedXml = await page.getByTestId('area-content').innerText();\n\n    expect(formattedXml.trim()).toEqual(`\n<foo>\n  <bar>baz</bar>\n  <bar>baz</bar>\n</foo>`.trim());\n  });\n});\n"
  },
  {
    "path": "src/tools/xml-formatter/xml-formatter.service.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { formatXml } from './xml-formatter.service';\n\ndescribe('xml-formatter service', () => {\n  describe('formatXml', () => {\n    it('converts XML into a human readable format', () => {\n      const initString = '<hello><world>foo</world><world>bar</world></hello>';\n\n      expect(formatXml(initString)).toMatchInlineSnapshot(`\n        \"<hello>\n            <world>\n                foo\n            </world>\n            <world>\n                bar\n            </world>\n        </hello>\"\n      `);\n    });\n\n    it('returns an empty string if the input is not valid XML', () => {\n      const initString = 'hello world';\n\n      expect(formatXml(initString)).toEqual('');\n    });\n  });\n});\n"
  },
  {
    "path": "src/tools/xml-formatter/xml-formatter.service.ts",
    "content": "import xmlFormat, { type XMLFormatterOptions } from 'xml-formatter';\nimport { withDefaultOnError } from '@/utils/defaults';\n\nexport { formatXml, isValidXML };\n\nfunction cleanRawXml(rawXml: string): string {\n  return rawXml.trim();\n}\n\nfunction formatXml(rawXml: string, options?: XMLFormatterOptions): string {\n  return withDefaultOnError(() => xmlFormat(cleanRawXml(rawXml), options) ?? '', '');\n}\n\nfunction isValidXML(rawXml: string): boolean {\n  const cleanedRawXml = cleanRawXml(rawXml);\n\n  if (cleanedRawXml === '') {\n    return true;\n  }\n\n  try {\n    xmlFormat(cleanedRawXml);\n    return true;\n  }\n  catch (e) {\n    return false;\n  }\n}\n"
  },
  {
    "path": "src/tools/xml-formatter/xml-formatter.vue",
    "content": "<script setup lang=\"ts\">\nimport { formatXml, isValidXML } from './xml-formatter.service';\nimport type { UseValidationRule } from '@/composable/validation';\n\nconst defaultValue = '<hello><world>foo</world><world>bar</world></hello>';\nconst indentSize = useStorage('xml-formatter:indent-size', 2);\nconst collapseContent = useStorage('xml-formatter:collapse-content', true);\n\nfunction transformer(value: string) {\n  return formatXml(value, {\n    indentation: ' '.repeat(indentSize.value),\n    collapseContent: collapseContent.value,\n    lineSeparator: '\\n',\n  });\n}\n\nconst rules: UseValidationRule<string>[] = [\n  {\n    validator: isValidXML,\n    message: 'Provided XML is not valid.',\n  },\n];\n</script>\n\n<template>\n  <div important:flex-full important:flex-shrink-0 important:flex-grow-0>\n    <div flex justify-center>\n      <n-form-item label=\"Collapse content:\" label-placement=\"left\">\n        <n-switch v-model:value=\"collapseContent\" />\n      </n-form-item>\n      <n-form-item label=\"Indent size:\" label-placement=\"left\" label-width=\"100\" :show-feedback=\"false\">\n        <n-input-number v-model:value=\"indentSize\" min=\"0\" max=\"10\" w-100px />\n      </n-form-item>\n    </div>\n  </div>\n\n  <format-transformer\n    input-label=\"Your XML\"\n    input-placeholder=\"Paste your XML here...\"\n    output-label=\"Formatted XML from your XML\"\n    output-language=\"xml\"\n    :input-validation-rules=\"rules\"\n    :transformer=\"transformer\"\n    :input-default=\"defaultValue\"\n  />\n</template>\n"
  },
  {
    "path": "src/tools/xml-to-json/index.ts",
    "content": "import { Braces } from '@vicons/tabler';\nimport { defineTool } from '../tool';\n\nexport const tool = defineTool({\n  name: 'XML to JSON',\n  path: '/xml-to-json',\n  description: 'Convert XML to JSON',\n  keywords: ['xml', 'json'],\n  component: () => import('./xml-to-json.vue'),\n  icon: Braces,\n  createdAt: new Date('2024-08-09'),\n});\n"
  },
  {
    "path": "src/tools/xml-to-json/xml-to-json.vue",
    "content": "<script setup lang=\"ts\">\nimport convert from 'xml-js';\nimport { isValidXML } from '../xml-formatter/xml-formatter.service';\nimport { withDefaultOnError } from '@/utils/defaults';\nimport type { UseValidationRule } from '@/composable/validation';\n\nconst defaultValue = '<a x=\"1.234\" y=\"It\\'s\"/>';\nfunction transformer(value: string) {\n  return withDefaultOnError(() => {\n    return JSON.stringify(convert.xml2js(value, { compact: true }), null, 2);\n  }, '');\n}\n\nconst rules: UseValidationRule<string>[] = [\n  {\n    validator: isValidXML,\n    message: 'Provided XML is not valid.',\n  },\n];\n</script>\n\n<template>\n  <format-transformer\n    input-label=\"Your XML content\"\n    :input-default=\"defaultValue\"\n    input-placeholder=\"Paste your XML content here...\"\n    output-label=\"Converted JSON\"\n    output-language=\"json\"\n    :transformer=\"transformer\"\n    :input-validation-rules=\"rules\"\n  />\n</template>\n"
  },
  {
    "path": "src/tools/yaml-to-json-converter/index.ts",
    "content": "import { AlignJustified } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.yaml-to-json-converter.title'),\n  path: '/yaml-to-json-converter',\n  description: translate('tools.yaml-to-json-converter.description'),\n  keywords: ['yaml', 'to', 'json'],\n  component: () => import('./yaml-to-json.vue'),\n  icon: AlignJustified,\n  createdAt: new Date('2023-04-10'),\n});\n"
  },
  {
    "path": "src/tools/yaml-to-json-converter/yaml-to-json.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - Yaml to json', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/yaml-to-json-converter');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('YAML to JSON converter - IT Tools');\n  });\n\n  test('Yaml is parsed and output clean json', async ({ page }) => {\n    await page.getByTestId('input').fill('foo: bar\\nlist:\\n  - item\\n  - key: value');\n\n    const generatedJson = await page.getByTestId('area-content').innerText();\n\n    expect(generatedJson.trim()).toEqual(\n      `\n{\n   \"foo\": \"bar\",\n   \"list\": [\n      \"item\",\n      {\n         \"key\": \"value\"\n      }\n   ]\n}\n   `.trim(),\n    );\n  });\n\n  test('Yaml is parsed with merge key and output correct json', async ({ page }) => {\n    await page.getByTestId('input').fill(`\n      default: &default\n        name: ''\n        age: 0\n\n      person:\n        *default\n\n      persons:\n      - <<: *default\n        age: 1\n      - <<: *default\n        name: John\n      - { age: 3, <<: *default }\n      \n      `);\n\n    const generatedJson = await page.getByTestId('area-content').innerText();\n\n    expect(generatedJson.trim()).toEqual(\n      `\n{\n   \"default\": {\n      \"name\": \"\",\n      \"age\": 0\n   },\n   \"person\": {\n      \"name\": \"\",\n      \"age\": 0\n   },\n   \"persons\": [\n      {\n         \"name\": \"\",\n         \"age\": 1\n      },\n      {\n         \"name\": \"John\",\n         \"age\": 0\n      },\n      {\n         \"age\": 3,\n         \"name\": \"\"\n      }\n   ]\n}`.trim(),\n    );\n  });\n});\n"
  },
  {
    "path": "src/tools/yaml-to-json-converter/yaml-to-json.vue",
    "content": "<script setup lang=\"ts\">\nimport { parse as parseYaml } from 'yaml';\nimport type { UseValidationRule } from '@/composable/validation';\nimport { isNotThrowing } from '@/utils/boolean';\nimport { withDefaultOnError } from '@/utils/defaults';\n\nfunction transformer(value: string) {\n  return withDefaultOnError(() => {\n    const obj = parseYaml(value, { merge: true });\n    return obj ? JSON.stringify(obj, null, 3) : '';\n  }, '');\n}\n\nconst rules: UseValidationRule<string>[] = [\n  {\n    validator: (value: string) => isNotThrowing(() => parseYaml(value)),\n    message: 'Provided YAML is not valid.',\n  },\n];\n</script>\n\n<template>\n  <format-transformer\n    input-label=\"Your YAML\"\n    input-placeholder=\"Paste your yaml here...\"\n    output-label=\"JSON from your YAML\"\n    output-language=\"json\"\n    :input-validation-rules=\"rules\"\n    :transformer=\"transformer\"\n  />\n</template>\n"
  },
  {
    "path": "src/tools/yaml-to-toml/index.ts",
    "content": "import { AlignJustified } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.yaml-to-toml.title'),\n  path: '/yaml-to-toml',\n  description: translate('tools.yaml-to-toml.description'),\n  keywords: ['yaml', 'to', 'toml', 'convert', 'transform'],\n  component: () => import('./yaml-to-toml.vue'),\n  icon: AlignJustified,\n  createdAt: new Date('2023-06-23'),\n});\n"
  },
  {
    "path": "src/tools/yaml-to-toml/yaml-to-toml.e2e.spec.ts",
    "content": "import { expect, test } from '@playwright/test';\n\ntest.describe('Tool - YAML to TOML', () => {\n  test.beforeEach(async ({ page }) => {\n    await page.goto('/yaml-to-toml');\n  });\n\n  test('Has correct title', async ({ page }) => {\n    await expect(page).toHaveTitle('YAML to TOML - IT Tools');\n  });\n\n  test('JSON is parsed and outputs clean TOML', async ({ page }) => {\n    await page.getByTestId('input').fill(`\nfoo: bar\nlist:\n  name: item\n  another:\n    key: value\n    number: 1\n    `.trim());\n\n    const generatedJson = await page.getByTestId('area-content').innerText();\n\n    expect(generatedJson.trim()).toEqual(\n      `\nfoo = \"bar\"\n\n[list]\nname = \"item\"\n\n  [list.another]\n  key = \"value\"\n  number = 1\n   `.trim(),\n    );\n  });\n});\n"
  },
  {
    "path": "src/tools/yaml-to-toml/yaml-to-toml.vue",
    "content": "<script setup lang=\"ts\">\nimport { stringify as stringifyToml } from 'iarna-toml-esm';\nimport { parse as parseYaml } from 'yaml';\nimport { withDefaultOnError } from '../../utils/defaults';\nimport type { UseValidationRule } from '@/composable/validation';\n\nconst convertYamlToToml = (value: string) => [stringifyToml(parseYaml(value))].flat().join('\\n').trim();\n\nconst transformer = (value: string) => value.trim() === '' ? '' : withDefaultOnError(() => convertYamlToToml(value), '');\n\nconst rules: UseValidationRule<string>[] = [\n  {\n    validator: (v: string) => v === '' || parseYaml(v),\n    message: 'Provided JSON is not valid.',\n  },\n];\n</script>\n\n<template>\n  <format-transformer\n    input-label=\"Your YAML\"\n    input-placeholder=\"Paste your YAML here...\"\n    output-label=\"TOML from your YAML\"\n    output-language=\"toml\"\n    :input-validation-rules=\"rules\"\n    :transformer=\"transformer\"\n  />\n</template>\n"
  },
  {
    "path": "src/tools/yaml-viewer/index.ts",
    "content": "import { AlignJustified } from '@vicons/tabler';\nimport { defineTool } from '../tool';\nimport { translate } from '@/plugins/i18n.plugin';\n\nexport const tool = defineTool({\n  name: translate('tools.yaml-prettify.title'),\n  path: '/yaml-prettify',\n  description: translate('tools.yaml-prettify.description'),\n  keywords: ['yaml', 'viewer', 'prettify', 'format'],\n  component: () => import('./yaml-viewer.vue'),\n  icon: AlignJustified,\n  createdAt: new Date('2024-01-31'),\n});\n"
  },
  {
    "path": "src/tools/yaml-viewer/yaml-models.ts",
    "content": "import { type MaybeRef, get } from '@vueuse/core';\n\nimport yaml from 'yaml';\n\nexport { formatYaml };\n\nfunction formatYaml({\n  rawYaml,\n  sortKeys = false,\n  indentSize = 2,\n}: {\n  rawYaml: MaybeRef<string>\n  sortKeys?: MaybeRef<boolean>\n  indentSize?: MaybeRef<number>\n}) {\n  const parsedYaml = yaml.parse(get(rawYaml));\n\n  const formattedYAML = yaml.stringify(parsedYaml, {\n    sortMapEntries: get(sortKeys),\n    indent: get(indentSize),\n  });\n\n  return formattedYAML;\n}\n"
  },
  {
    "path": "src/tools/yaml-viewer/yaml-viewer.vue",
    "content": "<script setup lang=\"ts\">\nimport yaml from 'yaml';\nimport { useStorage } from '@vueuse/core';\nimport { formatYaml } from './yaml-models';\nimport { withDefaultOnError } from '@/utils/defaults';\nimport { useValidation } from '@/composable/validation';\nimport TextareaCopyable from '@/components/TextareaCopyable.vue';\n\nconst inputElement = ref<HTMLElement>();\n\nconst rawYaml = useStorage('yaml-prettify:raw-yaml', '');\nconst indentSize = useStorage('yaml-prettify:indent-size', 2);\nconst sortKeys = useStorage('yaml-prettify:sort-keys', false);\n\nconst cleanYaml = computed(() => withDefaultOnError(() => formatYaml({ rawYaml, indentSize, sortKeys }), ''));\n\nconst rawYamlValidation = useValidation({\n  source: rawYaml,\n  rules: [\n    {\n      validator: v => v === '' || yaml.parse(v),\n      message: 'Provided YAML is not valid.',\n    },\n  ],\n});\n</script>\n\n<template>\n  <div style=\"flex: 0 0 100%\">\n    <div style=\"margin: 0 auto; max-width: 600px\" flex justify-center gap-3>\n      <n-form-item label=\"Sort keys :\" label-placement=\"left\" label-width=\"100\">\n        <n-switch v-model:value=\"sortKeys\" />\n      </n-form-item>\n      <n-form-item label=\"Indent size :\" label-placement=\"left\" label-width=\"100\" :show-feedback=\"false\">\n        <n-input-number v-model:value=\"indentSize\" min=\"1\" max=\"10\" style=\"width: 100px\" />\n      </n-form-item>\n    </div>\n  </div>\n\n  <n-form-item\n    label=\"Your raw YAML\"\n    :feedback=\"rawYamlValidation.message\"\n    :validation-status=\"rawYamlValidation.status\"\n  >\n    <c-input-text\n      ref=\"inputElement\"\n      v-model:value=\"rawYaml\"\n      placeholder=\"Paste your raw YAML here...\"\n      rows=\"20\"\n      multiline\n      autocomplete=\"off\"\n      autocorrect=\"off\"\n      autocapitalize=\"off\"\n      spellcheck=\"false\"\n      monospace\n    />\n  </n-form-item>\n  <n-form-item label=\"Prettified version of your YAML\">\n    <TextareaCopyable :value=\"cleanYaml\" language=\"yaml\" :follow-height-of=\"inputElement\" />\n  </n-form-item>\n</template>\n\n<style lang=\"less\" scoped>\n.result-card {\n  position: relative;\n  .copy-button {\n    position: absolute;\n    top: 10px;\n    right: 10px;\n  }\n}\n</style>\n"
  },
  {
    "path": "src/ui/c-alert/c-alert.demo.vue",
    "content": "<script lang=\"ts\" setup>\nconst variants = ['warning', 'error'] as const;\n</script>\n\n<template>\n  <h2>Basic</h2>\n  <c-alert v-for=\"variant in variants\" :key=\"variant\" :type=\"variant\" mb-4>\n    Lorem ipsum dolor sit amet consectetur adipisicing elit. Magni reprehenderit itaque enim? Suscipit magni optio velit\n    quia, eveniet repellat pariatur quaerat laudantium dignissimos natus, beatae deleniti adipisci, atque necessitatibus\n    odio!\n  </c-alert>\n\n  <h2>With title</h2>\n  <c-alert v-for=\"variant in variants\" :key=\"variant\" :type=\"variant\" title=\"This is the title\" mb-4>\n    Lorem ipsum dolor sit amet consectetur adipisicing elit. Magni reprehenderit itaque enim? Suscipit magni optio velit\n    quia, eveniet repellat pariatur quaerat laudantium dignissimos natus, beatae deleniti adipisci, atque necessitatibus\n    odio!\n  </c-alert>\n</template>\n"
  },
  {
    "path": "src/ui/c-alert/c-alert.theme.ts",
    "content": "import { darken } from '../color/color.models';\nimport { defineThemes } from '../theme/theme.models';\nimport { appThemes } from '../theme/themes';\n\nimport WarningIcon from '~icons/mdi/alert-circle-outline';\nimport ErrorIcon from '~icons/mdi/close-circle-outline';\n\nexport const { useTheme } = defineThemes({\n  dark: {\n    warning: {\n      backgroundColor: appThemes.dark.warning.colorFaded,\n      borderColor: appThemes.dark.warning.color,\n      textColor: appThemes.dark.warning.color,\n      icon: WarningIcon,\n    },\n    error: {\n      backgroundColor: appThemes.dark.error.colorFaded,\n      borderColor: appThemes.dark.error.color,\n      textColor: appThemes.dark.error.color,\n      icon: ErrorIcon,\n    },\n  },\n  light: {\n    warning: {\n      backgroundColor: appThemes.light.warning.colorFaded,\n      borderColor: appThemes.light.warning.color,\n      textColor: darken(appThemes.light.warning.color, 40),\n      icon: WarningIcon,\n    },\n    error: {\n      backgroundColor: appThemes.light.error.colorFaded,\n      borderColor: appThemes.light.error.color,\n      textColor: darken(appThemes.light.error.color, 40),\n      icon: ErrorIcon,\n    },\n  },\n});\n"
  },
  {
    "path": "src/ui/c-alert/c-alert.vue",
    "content": "<script lang=\"ts\" setup>\nimport { useTheme } from './c-alert.theme';\n\nconst props = withDefaults(defineProps<{ type?: 'warning'; title?: string }>(), { type: 'warning', title: undefined });\nconst { type, title } = toRefs(props);\n\nconst theme = useTheme();\nconst variantTheme = computed(() => theme.value[type.value]);\n</script>\n\n<template>\n  <div class=\"c-alert\" flex items-center b-rd-4px pa-5>\n    <div class=\"c-alert--icon\" mr-4 text-40px op-60>\n      <slot name=\"icon\">\n        <component :is=\"variantTheme.icon\" />\n      </slot>\n    </div>\n\n    <div class=\"c-alert--content\">\n      <div v-if=\"title\" class=\"c-alert--title\" text-15px fw-600>\n        {{ title }}\n      </div>\n      <slot />\n    </div>\n  </div>\n</template>\n\n<style lang=\"less\" scoped>\n.c-alert {\n  background-color: v-bind('variantTheme.backgroundColor');\n  color: v-bind('variantTheme.textColor');\n  font-size: inherit;\n  line-height: 20px;\n}\n</style>\n"
  },
  {
    "path": "src/ui/c-button/c-button.demo.vue",
    "content": "<script lang=\"ts\" setup>\nimport _ from 'lodash';\n\nconst buttonVariants = ['basic', 'text'] as const;\nconst buttonTypes = ['default', 'primary', 'warning', 'error'] as const;\nconst buttonSizes = ['small', 'medium', 'large'] as const;\n</script>\n\n<template>\n  <div v-for=\"buttonVariant of buttonVariants\" :key=\"buttonVariant\">\n    <h2>{{ _.capitalize(buttonVariant) }}</h2>\n\n    <div v-for=\"buttonSize of buttonSizes\" :key=\"buttonSize\" mb-2>\n      <c-button\n        v-for=\"buttonType of buttonTypes\"\n        :key=\"buttonType\"\n        :variant=\"buttonVariant\"\n        :type=\"buttonType\"\n        :size=\"buttonSize\"\n        mx-1\n      >\n        Button\n      </c-button>\n\n      <c-button\n        v-for=\"buttonType of buttonTypes\"\n        :key=\"buttonType\"\n        :variant=\"buttonVariant\"\n        :type=\"buttonType\"\n        :size=\"buttonSize\"\n        circle\n        mx-1\n      >\n        A\n      </c-button>\n\n      <c-button\n        v-for=\"buttonType of buttonTypes\"\n        :key=\"buttonType\"\n        :variant=\"buttonVariant\"\n        :type=\"buttonType\"\n        :size=\"buttonSize\"\n        circle\n        mx-1\n      >\n        <icon-mdi-content-copy />\n      </c-button>\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/ui/c-button/c-button.theme.ts",
    "content": "import { darken, lighten } from '../color/color.models';\nimport { defineThemes } from '../theme/theme.models';\nimport { appThemes } from '../theme/themes';\n\nfunction createState({\n  textColor,\n  backgroundColor,\n  hoverBackground,\n  hoveredTextColor = textColor,\n  pressedBackground,\n  pressedTextColor = textColor,\n}: {\n  textColor: string\n  backgroundColor: string\n  hoverBackground: string\n  hoveredTextColor?: string\n  pressedBackground: string\n  pressedTextColor?: string\n}) {\n  return {\n    textColor,\n    backgroundColor,\n    hover: { textColor: hoveredTextColor, backgroundColor: hoverBackground },\n    pressed: { textColor: pressedTextColor, backgroundColor: pressedBackground },\n  };\n}\n\nfunction createTheme({ style }: { style: 'light' | 'dark' }) {\n  const theme = appThemes[style];\n\n  return {\n    size: {\n      small: {\n        width: '28px',\n        fontSize: '12px',\n      },\n      medium: {\n        width: '34px',\n        fontSize: '14px',\n      },\n      large: {\n        width: '40px',\n        fontSize: '16px',\n      },\n    },\n\n    basic: {\n      default: createState({\n        textColor: theme.text.baseColor,\n        backgroundColor: theme.default.color,\n        hoverBackground: theme.default.colorHover,\n        pressedBackground: theme.default.colorPressed,\n      }),\n      primary: createState({\n        textColor: theme.primary.color,\n        backgroundColor: theme.primary.colorFaded,\n        hoverBackground: lighten(theme.primary.colorFaded, 30),\n        pressedBackground: darken(theme.primary.colorFaded, 30),\n      }),\n      warning: createState({\n        textColor: theme.warning.color,\n        backgroundColor: theme.warning.colorFaded,\n        hoverBackground: lighten(theme.warning.colorFaded, 30),\n        pressedBackground: darken(theme.warning.colorFaded, 30),\n      }),\n      error: createState({\n        textColor: theme.error.color,\n        backgroundColor: theme.error.colorFaded,\n        hoverBackground: lighten(theme.error.colorFaded, 30),\n        pressedBackground: darken(theme.error.colorFaded, 30),\n      }),\n    },\n    text: {\n      default: createState({\n        textColor: theme.text.baseColor,\n        backgroundColor: 'transparent',\n        hoverBackground: theme.default.colorHover,\n        pressedBackground: theme.default.colorPressed,\n      }),\n      primary: createState({\n        textColor: theme.primary.color,\n        backgroundColor: 'transparent',\n        hoverBackground: theme.primary.colorFaded,\n        pressedBackground: darken(theme.primary.colorFaded, 30),\n      }),\n      warning: createState({\n        textColor: darken(theme.warning.color, 20),\n        backgroundColor: 'transparent',\n        hoverBackground: theme.warning.colorFaded,\n        pressedBackground: darken(theme.warning.colorFaded, 30),\n      }),\n      error: createState({\n        textColor: darken(theme.error.color, 20),\n        backgroundColor: 'transparent',\n        hoverBackground: theme.error.colorFaded,\n        pressedBackground: darken(theme.error.colorFaded, 30),\n      }),\n    },\n  };\n}\n\nexport const { useTheme } = defineThemes({\n  dark: createTheme({ style: 'dark' }),\n  light: createTheme({ style: 'light' }),\n});\n"
  },
  {
    "path": "src/ui/c-button/c-button.vue",
    "content": "<script lang=\"ts\" setup>\nimport type { RouteLocationRaw } from 'vue-router';\nimport { useAppTheme } from '../theme/themes';\nimport { useTheme } from './c-button.theme';\n\nconst props = withDefaults(\n  defineProps<{\n    type?: 'default' | 'primary' | 'warning' | 'error'\n    variant?: 'basic' | 'text'\n    disabled?: boolean\n    round?: boolean\n    circle?: boolean\n    href?: string\n    to?: RouteLocationRaw\n    size?: 'small' | 'medium' | 'large'\n  }>(),\n  {\n    type: 'default',\n    variant: 'basic',\n    disabled: false,\n    round: false,\n    circle: false,\n    href: undefined,\n    to: undefined,\n    size: 'medium',\n  },\n);\nconst emits = defineEmits(['click']);\n\nconst { variant, disabled, round, circle, href, type, to, size: sizeName } = toRefs(props);\n\nfunction handleClick(event: MouseEvent) {\n  if (!disabled.value) {\n    emits('click', event);\n  }\n}\n\nconst theme = useTheme();\nconst variantTheme = computed(() => theme.value[variant.value][type.value]);\nconst tag = computed(() => {\n  if (href.value) {\n    return 'a';\n  }\n  if (to.value) {\n    return 'router-link';\n  }\n  return 'button';\n});\nconst appTheme = useAppTheme();\n\nconst size = computed(() => theme.value.size[sizeName.value]);\n</script>\n\n<template>\n  <component\n    :is=\"tag\"\n    :href=\"href ?? to\"\n    class=\"c-button\"\n    :class=\"{ disabled, round, circle }\"\n    :to=\"to\"\n    @click=\"handleClick\"\n  >\n    <slot />\n  </component>\n</template>\n\n<style lang=\"less\" scoped>\n.c-button {\n  line-height: 1;\n  font-family: inherit;\n  font-size: v-bind('size.fontSize');\n  border: none;\n  text-align: center;\n  cursor: pointer;\n  text-decoration: none;\n  height: v-bind('size.width');\n  font-weight: 400;\n  color: v-bind('variantTheme.textColor');\n  padding: 0 14px;\n  border-radius: 4px;\n  transition: background-color cubic-bezier(0.4, 0, 0.2, 1) 0.3s;\n\n  background-color: v-bind('variantTheme.backgroundColor');\n  display: inline-flex;\n  flex-direction: row;\n  align-items: center;\n  justify-content: center;\n  flex-shrink: 0;\n\n  // outline-offset: 1px;\n  &.round {\n    border-radius: 100px;\n  }\n\n  &.circle {\n    border-radius: v-bind('size.width');\n    width: v-bind('size.width');\n    padding: 0;\n  }\n\n  &:not(.disabled) {\n    &:hover {\n      background-color: v-bind('variantTheme.hover.backgroundColor');\n    }\n\n    &:active {\n      background-color: v-bind('variantTheme.pressed.backgroundColor');\n    }\n  }\n\n  &:focus {\n    outline: 1px solid v-bind('appTheme.primary.color');\n  }\n\n  &.disabled {\n    opacity: 0.5;\n    cursor: not-allowed;\n  }\n}\n</style>\n"
  },
  {
    "path": "src/ui/c-buttons-select/c-buttons-select.demo.vue",
    "content": "<script setup lang=\"ts\">\nconst optionsA = [\n  { label: 'Option A', value: 'a' },\n  { label: 'Option B', value: 'b', tooltip: 'This is a tooltip' },\n  { label: 'Option C', value: 'c' },\n];\n\nconst optionB = {\n  'Option A': 'a',\n  'Option B': 'b',\n  'Option C': 'c',\n};\n\nconst valueA = ref('a');\n</script>\n\n<template>\n  <c-buttons-select v-model:value=\"valueA\" :options=\"optionsA\" label=\"Label: \" />\n  <c-buttons-select v-model:value=\"valueA\" :options=\"optionsA\" label=\"Label: \" label-position=\"left\" mt-2 />\n  <c-buttons-select v-model:value=\"valueA\" :options=\"optionB\" label=\"Options object: \" />\n</template>\n"
  },
  {
    "path": "src/ui/c-buttons-select/c-buttons-select.types.ts",
    "content": "import type { CSelectOption } from '../c-select/c-select.types';\n\nexport type CButtonSelectOption<T> = CSelectOption<T> & {\n  tooltip?: string\n};\n"
  },
  {
    "path": "src/ui/c-buttons-select/c-buttons-select.vue",
    "content": "<script setup lang=\"ts\" generic=\"T extends unknown\">\nimport _ from 'lodash';\nimport type { CLabelProps } from '../c-label/c-label.types';\nimport type { CButtonSelectOption } from './c-buttons-select.types';\n\nconst props = withDefaults(\n  defineProps<{\n    options?: CButtonSelectOption<T>[] | string[] | Record<string, T>\n    value?: T\n    size?: 'small' | 'medium' | 'large'\n  } & CLabelProps >(),\n  {\n    options: () => [],\n    value: undefined,\n    labelPosition: 'left',\n    size: 'medium',\n  },\n);\n\nconst emits = defineEmits(['update:value']);\n\nconst { options: rawOptions, size } = toRefs(props);\n\nconst options = computed<CButtonSelectOption<T>[]>(() => {\n  if (_.isArray(rawOptions.value)) {\n    return rawOptions.value.map((option: string | CButtonSelectOption<T>) => {\n      if (typeof option === 'string') {\n        return { label: option, value: option };\n      }\n\n      return option;\n    }) as CButtonSelectOption<T>[];\n  }\n\n  return _.map(rawOptions.value, (value, label) => ({ label, value })) as CButtonSelectOption<T>[];\n});\n\nconst value = useVModel(props, 'value', emits);\n\nfunction selectOption(option: CButtonSelectOption<T>) {\n  // @ts-expect-error vue template generic is a bit flacky thanks to withDefaults\n  value.value = option.value;\n}\n</script>\n\n<template>\n  <c-label v-bind=\"props\">\n    <div class=\"flex gap-2\">\n      <c-tooltip\n        v-for=\"option in options\" :key=\"option.value\"\n        :tooltip=\"option.tooltip\"\n      >\n        <c-button\n          :test-id=\"option.value\"\n          :size=\"size\"\n          :type=\"option.value === value ? 'primary' : 'default'\"\n          @click=\"selectOption(option)\"\n        >\n          {{ option.label }}\n        </c-button>\n      </c-tooltip>\n    </div>\n  </c-label>\n</template>\n"
  },
  {
    "path": "src/ui/c-card/c-card.demo.vue",
    "content": "<template>\n  <div>\n    <h2>Default</h2>\n\n    <c-card title=\"Title\">\n      Lorem ipsum, dolor sit amet consectetur adipisicing elit. Repudiandae ipsa reiciendis facilis officia nulla.\n      Laboriosam cumque molestias excepturi doloribus nulla nemo quod ratione rerum possimus. Excepturi nihil possimus\n      error itaque.\n    </c-card>\n  </div>\n</template>\n"
  },
  {
    "path": "src/ui/c-card/c-card.theme.ts",
    "content": "import { defineThemes } from '../theme/theme.models';\n\nexport const { useTheme } = defineThemes({\n  dark: {\n    backgroundColor: '#232323',\n    borderColor: '#282828',\n  },\n  light: {\n    backgroundColor: '#ffffff',\n    borderColor: '#efeff5',\n  },\n});\n"
  },
  {
    "path": "src/ui/c-card/c-card.vue",
    "content": "<script lang=\"ts\" setup>\nimport { useTheme } from './c-card.theme';\n\nconst props = defineProps<{\n  title?: string\n}>();\n\nconst { title } = toRefs(props);\n\nconst theme = useTheme();\n</script>\n\n<template>\n  <div class=\"c-card\">\n    <div v-if=\"title\" class=\"c-card-title\">\n      {{ title }}\n    </div>\n    <slot />\n  </div>\n</template>\n\n<style lang=\"less\" scoped>\n.c-card {\n  background-color: v-bind('theme.backgroundColor');\n  border: 1px solid v-bind('theme.borderColor');\n  border-radius: 4px;\n  padding: 20px 24px;\n\n  &-title {\n    font-size: 16px;\n    font-weight: 500;\n    margin-bottom: 20px;\n  }\n}\n</style>\n"
  },
  {
    "path": "src/ui/c-collapse/c-collapse.demo.vue",
    "content": "<template>\n  <c-collapse title=\"Collapse title\">\n    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquet iaculis class cubilia metus per nullam gravida ad venenatis. Id elementum elementum enim orci elementum justo facilisi habitant consequat. Justo eget ligula purus laoreet penatibus eros quisque fusce sociis. In eget amet sagittis dignissim eleifend proin lacinia potenti tellus. Interdum vulputate condimentum molestie pulvinar praesent accumsan quisque venenatis imperdiet.\n  </c-collapse>\n</template>\n"
  },
  {
    "path": "src/ui/c-collapse/c-collapse.vue",
    "content": "<script lang=\"ts\" setup>\nconst props = withDefaults(defineProps<{ title?: string }>(), { title: '' });\nconst { title } = toRefs(props);\n\nconst isCollapsed = ref(true);\n</script>\n\n<template>\n  <div>\n    <div flex cursor-pointer items-center @click=\"isCollapsed = !isCollapsed\">\n      <icon-mdi-triangle-down :class=\"{ 'transform-rotate--90': isCollapsed }\" op-50 transition />\n\n      <slot name=\"title\">\n        <span class=\"ml-2\" font-bold>{{ title }}</span>\n      </slot>\n    </div>\n\n    <div\n      v-show=\"!isCollapsed\"\n      mt-2\n    >\n      <slot />\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/ui/c-diff-editor/c-diff-editor.vue",
    "content": "<script setup lang=\"ts\">\nimport * as monaco from 'monaco-editor';\nimport { useStyleStore } from '@/stores/style.store';\n\nconst props = withDefaults(defineProps<{ options?: monaco.editor.IDiffEditorOptions }>(), { options: () => ({}) });\nconst { options } = toRefs(props);\n\nconst editorContainer = ref<HTMLElement | null>(null);\nlet editor: monaco.editor.IStandaloneDiffEditor | null = null;\n\nmonaco.editor.defineTheme('it-tools-dark', {\n  base: 'vs-dark',\n  inherit: true,\n  rules: [],\n  colors: {\n    'editor.background': '#00000000',\n  },\n});\n\nmonaco.editor.defineTheme('it-tools-light', {\n  base: 'vs',\n  inherit: true,\n  rules: [],\n  colors: {\n    'editor.background': '#00000000',\n  },\n});\n\nconst styleStore = useStyleStore();\n\nwatch(\n  () => styleStore.isDarkTheme,\n  isDarkTheme => monaco.editor.setTheme(isDarkTheme ? 'it-tools-dark' : 'it-tools-light'),\n  { immediate: true },\n);\n\nwatch(\n  () => options.value,\n  options => editor?.updateOptions(options),\n  { immediate: true, deep: true },\n);\n\nuseResizeObserver(editorContainer, () => {\n  editor?.layout();\n});\n\nonMounted(() => {\n  if (!editorContainer.value) {\n    return;\n  }\n\n  editor = monaco.editor.createDiffEditor(editorContainer.value, {\n    originalEditable: true,\n    minimap: {\n      enabled: false,\n    },\n  });\n\n  editor.setModel({\n    original: monaco.editor.createModel('original text', 'txt'),\n    modified: monaco.editor.createModel('modified text', 'txt'),\n  });\n});\n</script>\n\n<template>\n  <div ref=\"editorContainer\" h-600px />\n</template>\n"
  },
  {
    "path": "src/ui/c-file-upload/c-file-upload.demo.vue",
    "content": "<template>\n  <c-file-upload />\n</template>\n"
  },
  {
    "path": "src/ui/c-file-upload/c-file-upload.vue",
    "content": "<script lang=\"ts\" setup>\nimport _ from 'lodash';\n\nconst props = withDefaults(defineProps<{\n  multiple?: boolean\n  accept?: string\n  title?: string\n}>(), {\n  multiple: false,\n  accept: undefined,\n  title: 'Drag and drop files here, or click to select files',\n});\n\nconst emit = defineEmits<{\n  (event: 'filesUpload', files: File[]): void\n  (event: 'fileUpload', file: File): void\n}>();\n\nconst { multiple } = toRefs(props);\n\nconst isOverDropZone = ref(false);\n\nconst fileInput = ref<HTMLInputElement | null>(null);\n\nfunction triggerFileInput() {\n  fileInput.value?.click();\n}\n\nfunction handleFileInput(event: Event) {\n  const files = (event.target as HTMLInputElement).files;\n\n  handleUpload(files);\n}\n\nfunction handleDrop(event: DragEvent) {\n  event.preventDefault();\n  const files = event.dataTransfer?.files;\n\n  handleUpload(files);\n}\n\nfunction handleUpload(files: FileList | null | undefined) {\n  if (_.isNil(files) || _.isEmpty(files)) {\n    return;\n  }\n\n  if (multiple.value) {\n    emit('filesUpload', Array.from(files));\n    return;\n  }\n\n  emit('fileUpload', files[0]);\n}\n</script>\n\n<template>\n  <div\n    class=\"flex flex-col cursor-pointer items-center justify-center border-2px border-gray-300 border-opacity-50 rounded-lg border-dashed p-8 transition-colors\"\n    :class=\"{\n      'border-primary border-opacity-100': isOverDropZone,\n    }\"\n    @click=\"triggerFileInput\"\n    @drop.prevent=\"handleDrop\"\n    @dragover.prevent\n    @dragenter=\"isOverDropZone = true\"\n    @dragleave=\"isOverDropZone = false\"\n  >\n    <input\n      ref=\"fileInput\"\n      type=\"file\"\n      class=\"hidden\"\n      :multiple=\"multiple\"\n      :accept=\"accept\"\n      @change=\"handleFileInput\"\n    >\n    <slot>\n      <span op-70>\n        {{ title }}\n      </span>\n\n      <!-- separator -->\n      <div my-4 w-full flex items-center justify-center op-70>\n        <div class=\"h-1px max-w-100px flex-1 bg-gray-300 op-50\" />\n        <div class=\"mx-2 text-gray-400\">\n          or\n        </div>\n        <div class=\"h-1px max-w-100px flex-1 bg-gray-300 op-50\" />\n      </div>\n\n      <c-button>\n        Browse files\n      </c-button>\n    </slot>\n  </div>\n</template>\n"
  },
  {
    "path": "src/ui/c-input-text/c-input-text.demo.vue",
    "content": "<script lang=\"ts\" setup>\nimport { useValidation } from '@/composable/validation';\n\nconst value = ref('value');\nconst valueLong = ref(\n  'Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum, est modi iusto repellendus fuga accusantium atque at magnam aliquam eum explicabo vero quia, nobis quasi quis! Earum amet quam a?',\n);\n\nconst validationRules = [{ message: 'Length must be > 10', validator: (value: string) => value.length > 10 }];\n\nconst validation = useValidation({\n  source: value,\n  rules: validationRules,\n});\n</script>\n\n<template>\n  <h2>Default</h2>\n\n  <c-input-text value=\"qsd\" />\n  <c-input-text\n    value=\"Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum, est modi iusto repellendus fuga accusantium atque at magnam aliquam eum explicabo vero quia, nobis quasi quis! Earum amet quam a?\"\n  />\n\n  <h2>With placeholder</h2>\n\n  <c-input-text placeholder=\"Placeholder\" />\n\n  <h2>With label</h2>\n\n  <c-input-text label=\"Label\" mb-2 />\n  <c-input-text label=\"Label\" mb-2 label-position=\"left\" />\n  <c-input-text label=\"Label\" mb-2 label-position=\"left\" label-width=\"100px\" />\n  <c-input-text label=\"Label\" mb-2 label-position=\"left\" label-width=\"100px\" label-align=\"right\" />\n\n  <h2>Readonly</h2>\n\n  <c-input-text value=\"value\" readonly />\n\n  <h2>Disabled</h2>\n\n  <c-input-text value=\"value\" disabled />\n\n  <h2>Validation</h2>\n\n  <c-input-text v-model:value=\"value\" :validation-rules=\"validationRules\" mb-2 />\n  <c-input-text v-model:value=\"value\" :validation-rules=\"validationRules\" mb-2 label-position=\"left\" label=\"Yo \" />\n  <c-input-text v-model:value=\"value\" :validation=\"validation\" />\n  <c-input-text v-model:value=\"value\" :validation=\"validation\" multiline rows=\"3\" />\n\n  <h2>Clearable</h2>\n\n  <c-input-text v-model:value=\"value\" clearable />\n\n  <h2>Type password</h2>\n\n  <c-input-text value=\"value\" type=\"password\" />\n\n  <h2>Multiline</h2>\n\n  <c-input-text value=\"value\" multiline label=\"Label\" mb-2 rows=\"1\" />\n  <c-input-text value=\"value\" multiline label=\"Label\" mb-2 />\n  <c-input-text\n    value=\"Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum, est modi iusto repellendus fuga accusantium atque at magnam aliquam eum explicabo vero quia, nobis quasi quis! Earum amet quam a?\"\n    multiline\n    mb-2\n  />\n\n  <c-input-text\n    value=\"Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum, est modi iusto repellendus fuga accusantium atque at magnam aliquam eum explicabo vero quia, nobis quasi quis! Earum amet quam a?\"\n    multiline\n    clearable\n  />\n\n  <h2>Autosize</h2>\n\n  <c-input-text v-model:value=\"value\" label=\"Autosize\" rows=\"1\" multiline autosize mb-2 />\n  <c-input-text v-model:value=\"valueLong\" label=\"Autosize monospace\" rows=\"1\" multiline autosize monospace mb-2 />\n</template>\n"
  },
  {
    "path": "src/ui/c-input-text/c-input-text.test.ts",
    "content": "import { beforeEach, describe, expect, it } from 'vitest';\nimport { mount, shallowMount } from '@vue/test-utils';\nimport { createPinia, setActivePinia } from 'pinia';\nimport _ from 'lodash';\nimport CInputText from './c-input-text.vue';\nimport { useValidation } from '@/composable/validation';\n\ndescribe('CInputText', () => {\n  beforeEach(() => {\n    setActivePinia(createPinia());\n  });\n\n  it('Renders a label', () => {\n    const wrapper = shallowMount(CInputText, {\n      props: {\n        label: 'Label',\n      },\n    });\n\n    expect(wrapper.get('.label').text()).to.equal('Label');\n  });\n\n  it('Renders a placeholder', () => {\n    const wrapper = shallowMount(CInputText, {\n      props: {\n        placeholder: 'Placeholder',\n      },\n    });\n\n    expect(wrapper.get('.input').attributes('placeholder')).to.equal('Placeholder');\n  });\n\n  it('Renders a value', () => {\n    const wrapper = shallowMount(CInputText, {\n      props: {\n        value: 'Value',\n      },\n    });\n\n    expect(wrapper.vm.value).to.equal('Value');\n  });\n\n  it('Renders a provided id', () => {\n    const wrapper = shallowMount(CInputText, {\n      props: {\n        id: 'id',\n      },\n    });\n\n    expect(wrapper.get('.input').attributes('id')).to.equal('id');\n  });\n\n  it('updates value on input', async () => {\n    const wrapper = shallowMount(CInputText);\n\n    await wrapper.get('input').setValue('Hello');\n\n    expect(_.get(wrapper.emitted(), 'update:value.0.0')).to.equal('Hello');\n  });\n\n  it('cannot be edited when disabled', async () => {\n    const wrapper = shallowMount(CInputText, {\n      props: {\n        disabled: true,\n      },\n    });\n\n    await wrapper.get('input').setValue('Hello');\n\n    expect(_.get(wrapper.emitted(), 'update:value')).toBeUndefined();\n  });\n\n  it('renders a feedback message for invalid rules', async () => {\n    const wrapper = shallowMount(CInputText, {\n      props: { validationRules: [{ validator: () => false, message: 'Message' }] },\n    });\n\n    const feedback = wrapper.find('.feedback');\n    expect(feedback.exists()).to.equal(true);\n    expect(feedback.text()).to.equal('Message');\n  });\n\n  it('if the value become valid according to rules, the feedback disappear', async () => {\n    const wrapper = shallowMount(CInputText, {\n      props: {\n        validationRules: [{ validator: (value: string) => value === 'Hello', message: 'Value should be Hello' }],\n      },\n    });\n\n    const feedback = wrapper.find('.feedback');\n    expect(feedback.exists()).to.equal(true);\n    expect(feedback.text()).to.equal('Value should be Hello');\n\n    await wrapper.setProps({ value: 'Hello' });\n\n    expect(wrapper.find('.feedback').exists()).to.equal(false);\n  });\n\n  it('feedback does not render for valid rules', async () => {\n    const wrapper = shallowMount(CInputText, {\n      props: { rules: [{ validator: () => true, message: 'Message' }] },\n    });\n\n    expect(wrapper.find('.feedback').exists()).to.equal(false);\n  });\n\n  it('renders a feedback message for invalid custom validation wrapper', async () => {\n    const wrapper = shallowMount(CInputText, {\n      props: {\n        validation: useValidation({ source: ref(), rules: [{ validator: () => false, message: 'Message' }] }),\n      },\n    });\n\n    const feedback = wrapper.find('.feedback');\n    expect(feedback.exists()).to.equal(true);\n    expect(feedback.text()).to.equal('Message');\n  });\n\n  it('feedback does not render for valid custom validation wrapper', async () => {\n    const wrapper = shallowMount(CInputText, {\n      props: {\n        validation: useValidation({ source: ref(), rules: [{ validator: () => true, message: 'Message' }] }),\n      },\n    });\n    expect(wrapper.find('.feedback').exists()).to.equal(false);\n  });\n\n  it('if the value become valid according to the custom validation wrapper, the feedback disappear', async () => {\n    const source = ref('');\n\n    const wrapper = shallowMount(CInputText, {\n      props: {\n        validation: useValidation({\n          source,\n          rules: [{ validator: (value: string) => value === 'Hello', message: 'Value should be Hello' }],\n        }),\n      },\n    });\n\n    const feedback = wrapper.find('.feedback');\n    expect(feedback.exists()).to.equal(true);\n    expect(feedback.text()).to.equal('Value should be Hello');\n\n    source.value = 'Hello';\n\n    await wrapper.vm.$nextTick();\n\n    expect(wrapper.find('.feedback').exists()).to.equal(false);\n  });\n\n  it('[prop:testId] renders a test id on the input', async () => {\n    const wrapper = mount(CInputText, {\n      props: {\n        testId: 'TEST',\n      },\n    });\n\n    expect(wrapper.get('input').attributes('data-test-id')).to.equal('TEST');\n  });\n});\n"
  },
  {
    "path": "src/ui/c-input-text/c-input-text.theme.ts",
    "content": "import { defineThemes } from '../theme/theme.models';\n\nexport const { useTheme } = defineThemes({\n  dark: {\n    backgroundColor: '#333333',\n    borderColor: '#333333',\n\n    focus: {\n      backgroundColor: '#1ea54c1a',\n    },\n  },\n  light: {\n    backgroundColor: '#ffffff',\n    borderColor: '#e0e0e69e',\n\n    focus: {\n      backgroundColor: '#ffffff',\n    },\n  },\n});\n"
  },
  {
    "path": "src/ui/c-input-text/c-input-text.vue",
    "content": "<script lang=\"ts\" setup>\nimport { useAppTheme } from '../theme/themes';\nimport { useTheme } from './c-input-text.theme';\nimport { generateRandomId } from '@/utils/random';\nimport { type UseValidationRule, useValidation } from '@/composable/validation';\n\nconst props = withDefaults(\n  defineProps<{\n    value?: string\n    id?: string\n    placeholder?: string\n    label?: string\n    readonly?: boolean\n    disabled?: boolean\n    validationRules?: UseValidationRule<string>[]\n    validationWatch?: Ref<unknown>[]\n    validation?: ReturnType<typeof useValidation>\n    labelPosition?: 'top' | 'left'\n    labelWidth?: string\n    labelAlign?: 'left' | 'right'\n    clearable?: boolean\n    testId?: string\n    autocapitalize?: 'none' | 'sentences' | 'words' | 'characters' | 'on' | 'off' | string\n    autocomplete?: 'on' | 'off' | string\n    autocorrect?: 'on' | 'off' | string\n    spellcheck?: 'true' | 'false' | boolean\n    rawText?: boolean\n    type?: 'text' | 'password'\n    multiline?: boolean\n    rows?: number | string\n    autosize?: boolean\n    autofocus?: boolean\n    monospace?: boolean\n  }>(),\n  {\n    value: '',\n    id: generateRandomId,\n    placeholder: 'Input text',\n    label: undefined,\n    readonly: false,\n    disabled: false,\n    validationRules: () => [],\n    validationWatch: undefined,\n    validation: undefined,\n    labelPosition: 'top',\n    labelWidth: 'auto',\n    labelAlign: 'left',\n    clearable: false,\n    testId: undefined,\n    autocapitalize: undefined,\n    autocomplete: undefined,\n    autocorrect: undefined,\n    spellcheck: undefined,\n    rawText: false,\n    type: 'text',\n    multiline: false,\n    rows: 3,\n    autosize: false,\n    autofocus: false,\n    monospace: false,\n  },\n);\nconst emit = defineEmits(['update:value']);\nconst value = useVModel(props, 'value', emit);\nconst showPassword = ref(false);\n\nconst { id, placeholder, label, validationRules, labelPosition, labelWidth, labelAlign, autosize, readonly, disabled, clearable, type, multiline, rows, rawText, autofocus, monospace } = toRefs(props);\n\nconst validation\n  = props.validation\n  ?? useValidation({\n    rules: validationRules,\n    source: value,\n    watch: props.validationWatch,\n  });\n\nconst theme = useTheme();\nconst appTheme = useAppTheme();\n\nconst textareaRef = ref<HTMLTextAreaElement>();\nconst inputRef = ref<HTMLInputElement>();\nconst inputWrapperRef = ref<HTMLElement>();\n\nwatch(\n  [value, autosize, multiline, inputWrapperRef, textareaRef],\n  () => nextTick(() => {\n    if (props.multiline && autosize.value) {\n      resizeTextarea();\n    }\n  }),\n  { immediate: true },\n);\n\nfunction resizeTextarea() {\n  if (!textareaRef.value || !inputWrapperRef.value) {\n    return;\n  }\n\n  const scrollHeight = textareaRef.value.scrollHeight + 2;\n\n  inputWrapperRef.value.style.height = `${scrollHeight}px`;\n}\n\nconst htmlInputType = computed(() => {\n  if (props.type === 'password' && !showPassword.value) {\n    return 'password';\n  }\n\n  return 'text';\n});\n\nfunction focus() {\n  if (textareaRef.value) {\n    textareaRef.value.focus();\n  }\n\n  if (inputRef.value) {\n    inputRef.value.focus();\n  }\n}\n\nfunction blur() {\n  if (textareaRef.value) {\n    textareaRef.value.blur?.();\n  }\n\n  if (inputRef.value) {\n    inputRef.value.blur?.();\n  }\n}\n\nonMounted(() => {\n  if (autofocus.value) {\n    focus();\n  }\n});\n\ndefineExpose({\n  inputWrapperRef,\n  focus,\n  blur,\n});\n</script>\n\n<template>\n  <div\n    class=\"c-input-text\"\n    :class=\"{ disabled, 'error': !validation.isValid, 'label-left': labelPosition === 'left', multiline }\"\n  >\n    <label v-if=\"label\" :for=\"id\" class=\"label\"> {{ label }} </label>\n\n    <div class=\"feedback-wrapper\">\n      <div ref=\"inputWrapperRef\" class=\"input-wrapper\">\n        <slot name=\"prefix\" />\n\n        <textarea\n          v-if=\"multiline\"\n          :id=\"id\"\n          ref=\"textareaRef\"\n          v-model=\"value\"\n          class=\"input\"\n          :class=\"{\n            'leading-5 !font-mono': monospace,\n          }\"\n          :placeholder=\"placeholder\"\n          :readonly=\"readonly\"\n          :disabled=\"disabled\"\n          :data-test-id=\"testId\"\n          :autocapitalize=\"autocapitalize ?? (rawText ? 'off' : undefined)\"\n          :autocomplete=\"autocomplete ?? (rawText ? 'off' : undefined)\"\n          :autocorrect=\"autocorrect ?? (rawText ? 'off' : undefined)\"\n          :spellcheck=\"spellcheck ?? (rawText ? false : undefined)\"\n          :rows=\"rows\"\n        />\n\n        <input\n          v-else\n          :id=\"id\"\n          ref=\"inputRef\"\n          v-model=\"value\"\n          :type=\"htmlInputType\"\n          class=\"input\"\n          :class=\"{\n            'leading-5 !font-mono': monospace,\n          }\"\n          size=\"1\"\n          :placeholder=\"placeholder\"\n          :readonly=\"readonly\"\n          :disabled=\"disabled\"\n          :data-test-id=\"testId\"\n          :autocapitalize=\"autocapitalize ?? (rawText ? 'off' : undefined)\"\n          :autocomplete=\"autocomplete ?? (rawText ? 'off' : undefined)\"\n          :autocorrect=\"autocorrect ?? (rawText ? 'off' : undefined)\"\n          :spellcheck=\"spellcheck ?? (rawText ? false : undefined)\"\n        >\n\n        <c-button v-if=\"clearable && value\" variant=\"text\" circle size=\"small\" @click=\"value = ''\">\n          <icon-mdi-close />\n        </c-button>\n\n        <c-button v-if=\"type === 'password'\" variant=\"text\" circle size=\"small\" @click=\"showPassword = !showPassword\">\n          <icon-mdi-eye v-if=\"!showPassword\" />\n          <icon-mdi-eye-off v-if=\"showPassword\" />\n        </c-button>\n        <slot name=\"suffix\" />\n      </div>\n      <span v-if=\"!validation.isValid\" class=\"feedback\"> {{ validation.message }} </span>\n    </div>\n  </div>\n</template>\n\n<style lang=\"less\" scoped>\n.c-input-text {\n  display: inline-flex;\n  flex-direction: column;\n  width: 100%;\n\n  &.label-left {\n    flex-direction: row;\n    align-items: baseline;\n  }\n\n  &.error {\n    & > .input {\n      border-color: v-bind('appTheme.error.color');\n      &:hover,\n      &:focus {\n        border-color: v-bind('appTheme.error.color');\n      }\n\n      &:focus {\n        background-color: v-bind('appTheme.error.color + 22');\n      }\n    }\n\n    & .feedback {\n      color: v-bind('appTheme.error.color');\n    }\n  }\n\n  & > .label {\n    margin-bottom: 5px;\n    flex: 0 0 v-bind('labelWidth');\n    text-align: v-bind('labelAlign');\n    padding-right: 12px;\n  }\n\n  .feedback-wrapper {\n    flex: 1 1 0;\n    min-width: 0;\n  }\n  .input-wrapper {\n    display: flex;\n    flex-direction: row;\n    align-items: center;\n    background-color: v-bind('theme.backgroundColor');\n    color: transparent;\n    border: 1px solid v-bind('theme.borderColor');\n    border-radius: 4px;\n    padding: 0 4px 0 12px;\n    transition: border-color 0.2s ease-in-out;\n\n    .multiline& {\n      resize: vertical;\n      overflow: hidden;\n\n      & > textarea {\n        height: 100%;\n        resize: none;\n        word-break: break-word;\n        white-space: pre-wrap;\n        overflow-wrap: break-word;\n        border: none;\n        outline: none;\n        font-family: inherit;\n        font-size: inherit;\n        color: v-bind('appTheme.text.baseColor');\n\n        &::placeholder {\n          color: v-bind('appTheme.text.mutedColor');\n        }\n      }\n    }\n\n    & > .input {\n      flex: 1 1 0;\n      min-width: 0;\n\n      padding: 8px 0;\n      outline: none;\n      background-color: transparent;\n      background-image: none;\n      -webkit-box-shadow: none;\n      -moz-box-shadow: none;\n      box-shadow: none;\n      border: none;\n      color: v-bind('appTheme.text.baseColor');\n\n      &::placeholder {\n        color: v-bind('appTheme.text.mutedColor');\n      }\n    }\n\n    &:hover {\n      border-color: v-bind('appTheme.primary.color');\n    }\n\n    &:focus-within {\n      border-color: v-bind('appTheme.primary.color');\n\n      background-color: v-bind('theme.focus.backgroundColor');\n    }\n  }\n\n  &.error .input-wrapper {\n    border-color: v-bind('appTheme.error.color');\n\n    &:hover,\n    &:focus-within {\n      border-color: v-bind('appTheme.error.color');\n    }\n\n    &:focus-within {\n      background-color: v-bind('appTheme.error.color + 22');\n    }\n  }\n\n  &.disabled .input-wrapper {\n    opacity: 0.5;\n\n    &:hover,\n    &:focus-within {\n      border-color: v-bind('theme.borderColor');\n    }\n\n    & > .input {\n      cursor: not-allowed;\n    }\n  }\n}\n</style>\n"
  },
  {
    "path": "src/ui/c-key-value-list/c-key-value-list-item.vue",
    "content": "<script lang=\"ts\" setup>\nimport _ from 'lodash';\nimport type { CKeyValueListItem } from './c-key-value-list.types';\n\nconst props = defineProps<{ item: CKeyValueListItem }>();\nconst { item } = toRefs(props);\n</script>\n\n<template>\n  <div v-if=\"_.isArray(item.value)\">\n    <div v-for=\"value in item.value\" :key=\"value\">\n      <c-text-copyable :value=\"value\" :show-icon=\"item.showCopyButton ?? true\" />\n    </div>\n  </div>\n  <div v-else-if=\"_.isBoolean(item.value)\">\n    <c-text-copyable :value=\"item.value ? 'true' : 'false'\" :displayed-value=\"item.value ? 'Yes' : 'No'\" :show-icon=\"item.showCopyButton ?? true\" />\n  </div>\n  <div v-else-if=\"_.isNumber(item.value)\" font-mono>\n    <c-text-copyable :value=\"String(item.value)\" :show-icon=\"item.showCopyButton ?? true\" />\n  </div>\n  <div v-else-if=\"_.isNil(item.value) || item.value === ''\" op-70>\n    {{ item.placeholder ?? 'N/A' }}\n  </div>\n  <div v-else>\n    <c-text-copyable :value=\"item.value\" :show-icon=\"item.showCopyButton ?? true\" />\n  </div>\n</template>\n"
  },
  {
    "path": "src/ui/c-key-value-list/c-key-value-list.types.ts",
    "content": "export interface CKeyValueListItem {\n  label: string\n  value: string | string[] | number | boolean | undefined | null\n  hideOnNil?: boolean\n  placeholder?: string\n  showCopyButton?: boolean\n}\n\nexport type CKeyValueListItems = CKeyValueListItem[];\n"
  },
  {
    "path": "src/ui/c-key-value-list/c-key-value-list.vue",
    "content": "<script lang=\"ts\" setup>\nimport _ from 'lodash';\nimport type { CKeyValueListItems } from './c-key-value-list.types';\n\nconst props = withDefaults(defineProps<{ items?: CKeyValueListItems }>(), { items: () => [] });\nconst { items } = toRefs(props);\n\nconst formattedItems = computed(() => items.value.filter(item => !_.isNil(item.value) || !item.hideOnNil));\n</script>\n\n<template>\n  <div flex flex-col gap-2>\n    <div v-for=\"item in formattedItems\" :key=\"item.label\" class=\"c-key-value-list__item\">\n      <div class=\"c-key-value-list__key\" text-13px lh-normal>\n        {{ item.label }}\n      </div>\n\n      <c-key-value-list-item :item=\"item\" class=\"c-key-value-list__value\" font-bold lh-normal />\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/ui/c-label/c-label.types.ts",
    "content": "export interface CLabelProps {\n  label?: string\n  labelFor?: string\n  labelPosition?: 'top' | 'left'\n  labelWidth?: string\n  labelAlign?: 'left' | 'right' | 'center'\n}\n"
  },
  {
    "path": "src/ui/c-label/c-label.vue",
    "content": "<script lang=\"ts\" setup>\nimport { toRefs } from 'vue';\nimport type { CLabelProps } from './c-label.types';\n\nconst props = withDefaults(defineProps<CLabelProps>(), { label: undefined, labelAlign: 'left', labelFor: undefined, labelPosition: 'top', labelWidth: 'auto' });\nconst { label, labelAlign, labelFor, labelPosition, labelWidth } = toRefs(props);\n</script>\n\n<template>\n  <div\n    :class=\"{\n      'flex-col': labelPosition === 'top',\n      'flex-row': labelPosition === 'left',\n    }\"\n    flex\n    items-baseline\n  >\n    <label\n      v-if=\"label\" :for=\"labelFor\" :style=\"{ flex: `0 0 ${labelWidth}` }\"\n      mb-5px\n      pr-12px\n      :class=\"{\n        'text-left': labelAlign === 'left',\n        'text-center': labelAlign === 'center',\n        'text-right': labelAlign === 'right',\n      }\"\n    >\n      {{ label }}\n    </label>\n    <slot />\n  </div>\n</template>\n"
  },
  {
    "path": "src/ui/c-link/c-link.demo.vue",
    "content": "<script lang=\"ts\" setup>\nimport CLink from './c-link.vue';\n</script>\n\n<template>\n  <div>\n    <h2>Default</h2>\n    <CLink mx-1>\n      Link\n    </CLink>\n  </div>\n</template>\n"
  },
  {
    "path": "src/ui/c-link/c-link.theme.ts",
    "content": "import { defineThemes } from '../theme/theme.models';\nimport { appThemes } from '../theme/themes';\n\nexport const { useTheme } = defineThemes({\n  dark: {\n    default: {\n      textColor: appThemes.dark.primary.color,\n\n      hover: {\n        textColor: appThemes.dark.primary.colorHover,\n      },\n\n      pressed: {\n        textColor: appThemes.dark.primary.colorPressed,\n      },\n\n      outline: {\n        color: appThemes.dark.primary.color,\n      },\n    },\n  },\n  light: {\n    default: {\n      textColor: appThemes.light.primary.color,\n\n      hover: {\n        textColor: appThemes.light.primary.colorHover,\n      },\n\n      pressed: {\n        textColor: appThemes.light.primary.colorPressed,\n      },\n\n      outline: {\n        color: appThemes.light.primary.color,\n      },\n    },\n  },\n});\n"
  },
  {
    "path": "src/ui/c-link/c-link.vue",
    "content": "<script lang=\"ts\" setup>\nimport { type RouteLocationRaw, RouterLink } from 'vue-router';\nimport { useTheme } from './c-link.theme';\n\nconst props = defineProps<{\n  href?: string\n  to?: RouteLocationRaw\n}>();\n\nconst { href, to } = toRefs(props);\n\nconst theme = useTheme();\nconst tag = computed(() => {\n  if (href?.value) {\n    return 'a';\n  }\n  if (to?.value) {\n    return RouterLink;\n  }\n  return 'span';\n});\n</script>\n\n<template>\n  <component :is=\"tag\" :href=\"href ?? to\" class=\"c-link\" :to=\"to\">\n    <slot />\n  </component>\n</template>\n\n<style lang=\"less\" scoped>\n.c-link {\n  line-height: inherit;\n  font-family: inherit;\n  font-size: inherit;\n  border: none;\n  cursor: pointer;\n  text-decoration: none;\n  font-weight: 400;\n  color: v-bind('theme.default.textColor');\n  border-radius: 4px;\n  transition: color cubic-bezier(0.4, 0, 0.2, 1) 0.3s;\n\n  outline-offset: 1px;\n\n  &:hover {\n    color: v-bind('theme.default.hover.textColor');\n  }\n\n  &:active {\n    color: v-bind('theme.default.textColor');\n  }\n\n  &:focus {\n    color: v-bind('theme.default.outline.color');\n  }\n}\n</style>\n"
  },
  {
    "path": "src/ui/c-markdown/c-markdown.demo.vue",
    "content": "<script setup lang=\"ts\">\nconst md = `\n# IT Tools\n\n## About\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nisl quis\nmollis blandit, nunc nisl aliquam nunc, vitae aliquam nisl nunc vitae nisl.\n\n- Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n- Sed euismod, nisl quis mollis blandit, nunc nisl aliquam nunc, vitae aliquam nisl nunc vitae nisl.\n\n[it-tools](https://it-tools.tech)\n`;\n</script>\n\n<template>\n  <c-markdown :markdown=\"md\" />\n</template>\n"
  },
  {
    "path": "src/ui/c-markdown/c-markdown.vue",
    "content": "<script setup lang=\"ts\">\nimport { marked } from 'marked';\nimport DomPurify from 'dompurify';\n\nconst props = withDefaults(defineProps<{ markdown?: string }>(), { markdown: '' });\nconst { markdown } = toRefs(props);\n\nmarked.use({\n  renderer: {\n    link(href, title, text) {\n      return `<a class=\"text-primary transition decoration-none hover:underline\" href=\"${href}\" target=\"_blank\" rel=\"noopener\">${text}</a>`;\n    },\n  },\n});\n\nconst html = computed(() => DomPurify.sanitize(marked(markdown.value), { ADD_ATTR: ['target'] }));\n</script>\n\n<template>\n  <div v-html=\"html\" />\n</template>\n"
  },
  {
    "path": "src/ui/c-modal/c-modal.demo.vue",
    "content": "<script lang=\"ts\" setup>\nconst modal1 = ref();\n</script>\n\n<template>\n  <div>\n    <c-button @click=\"() => modal1?.open()\">\n      Open Modal\n    </c-button>\n\n    <c-modal ref=\"modal1\">\n      Content\n    </c-modal>\n  </div>\n</template>\n"
  },
  {
    "path": "src/ui/c-modal/c-modal.theme.ts",
    "content": "import { defineThemes } from '../theme/theme.models';\nimport { appThemes } from '../theme/themes';\n\nexport const { useTheme } = defineThemes({\n  dark: {\n    background: appThemes.dark.background,\n  },\n  light: {\n    background: appThemes.light.background,\n  },\n});\n"
  },
  {
    "path": "src/ui/c-modal/c-modal.vue",
    "content": "<script setup lang=\"ts\">\nimport { useTheme } from './c-modal.theme';\n\ndefineOptions({\n  inheritAttrs: false,\n});\n\nconst props = withDefaults(defineProps<{ open?: boolean; centered?: boolean }>(), {\n  open: false,\n  centered: true,\n});\n\nconst emit = defineEmits(['update:open']);\n\nconst isOpen = useVModel(props, 'open', emit, { passive: true });\n\nconst { centered } = toRefs(props);\n\nfunction close() {\n  isOpen.value = false;\n}\n\nfunction open() {\n  isOpen.value = true;\n}\n\nfunction toggle() {\n  isOpen.value = !isOpen.value;\n}\n\ndefineExpose({\n  close,\n  open,\n  toggle,\n  isOpen,\n});\n\nconst theme = useTheme();\nconst modal = ref();\n\nonClickOutside(modal, () => {\n  if (isOpen.value) {\n    close();\n  }\n});\n</script>\n\n<template>\n  <transition>\n    <div v-if=\"isOpen\" class=\"c-modal--overlay\" fixed left-0 top-0 z-10 h-full w-full flex justify-center px-2 :class=\"{ 'items-center': centered }\">\n      <div ref=\"modal\" class=\"c-modal--container\" v-bind=\"$attrs\" max-w-xl w-full flex-grow rounded-md pa-24px>\n        <slot />\n      </div>\n    </div>\n  </transition>\n</template>\n\n<style scoped lang=\"less\">\n.c-modal--overlay {\n  background-color: rgba(0, 0, 0, 0.5);\n}\n\n.c-modal--container {\n  background-color: v-bind('theme.background');\n}\n\n.v-enter-active,\n.v-leave-active {\n  transition: opacity 0.3s ease-in-out;\n}\n\n.v-enter-from,\n.v-leave-to {\n  opacity: 0;\n}\n</style>\n"
  },
  {
    "path": "src/ui/c-modal-value/c-modal-value.demo.vue",
    "content": "<template>\n  <div flex gap-2>\n    <c-modal-value value=\"lorem ipsum\" label=\"test\" />\n    <c-modal-value>\n      <template #label=\"{ toggleModal }\">\n        <c-button class=\"text-left\" size=\"small\" @click=\"toggleModal\">\n          Bonjour\n        </c-button>\n      </template>\n\n      <template #value>\n        <pre>\n          Lorem ipsum dolor sit amet consectetur adipisicing elit.\n          Molestias, quisquam vitae saepe dolores quas debitis ab r\n          ecusandae suscipit ex dignissimos minus quam repellat sunt.\n          Molestiae culpa blanditiis totam sapiente dignissimos.\n        </pre>\n      </template>\n    </c-modal-value>\n  </div>\n</template>\n"
  },
  {
    "path": "src/ui/c-modal-value/c-modal-value.vue",
    "content": "<script lang=\"ts\" setup>\nimport { useCopy } from '@/composable/copy';\n\nconst props = withDefaults(defineProps<{ value: string; label?: string; copyable?: boolean }>(), { label: undefined, copyable: true });\nconst { value, label } = toRefs(props);\n\nconst { copy, isJustCopied } = useCopy({ source: value });\n\nconst isModalOpen = ref(false);\nconst toggleModal = useToggle(isModalOpen);\n</script>\n\n<template>\n  <slot name=\"label\" :value=\"value\" :toggle-modal=\"toggleModal\" :is-modal-open=\"isModalOpen\">\n    <c-button class=\"text-left\" @click=\"isModalOpen = true\">\n      {{ label }}\n    </c-button>\n  </slot>\n\n  <c-modal v-model:open=\"isModalOpen\">\n    <slot name=\"value\" :value=\"value\" :toggle-modal=\"toggleModal\" :is-modal-open=\"isModalOpen\">\n      {{ value }}\n    </slot>\n\n    <div mt-4 flex justify-center>\n      <c-button class=\"w-full\" @click=\"copy\">\n        {{ isJustCopied ? 'Copied!' : 'Copy' }}\n      </c-button>\n    </div>\n  </c-modal>\n</template>\n"
  },
  {
    "path": "src/ui/c-select/c-select.demo.vue",
    "content": "<script lang=\"ts\" setup>\nconst optionsA = [\n  { label: 'Option A', value: 'a' },\n  { label: 'Option B', value: 'b' },\n  { label: 'Option C', value: 'c' },\n];\n\nconst optionsBig = Array.from({ length: 1000 }, (_, i) => ({ label: `Option ${i}`, value: i }));\n\nconst sizes = ['small', 'medium', 'large'] as const;\nconst value = ref('');\n</script>\n\n<template>\n  <h2>Sizes</h2>\n  <c-select v-for=\"size in sizes\" :key=\"size\" v-model:value=\"value\" :options=\"optionsA\" :size=\"size\" mb-2 />\n\n  <h2>Searchable</h2>\n  <c-select v-for=\"size in sizes\" :key=\"size\" v-model:value=\"value\" :options=\"optionsA\" :size=\"size\" searchable mb-2 />\n\n  <h2>Big list</h2>\n  <c-select v-model:value=\"value\" :options=\"optionsBig\" searchable />\n\n  <h2>Empty</h2>\n  <c-select :options=\"[]\" />\n\n  <h2>String array as options</h2>\n  <c-select v-model:value=\"value\" :options=\"['a', 'Option B', 'Option C']\" />\n\n  <h2>Labels</h2>\n  <c-select label=\"Label\" mb-2 />\n  <c-select label=\"Label\" label-position=\"left\" mb-2 />\n  <c-select label=\"Label\" label-position=\"left\" label-align=\"left\" mb-2 label-width=\"200px\" />\n  <c-select label=\"Label\" label-position=\"left\" label-align=\"center\" mb-2 label-width=\"200px\" />\n  <c-select label=\"Label\" label-position=\"left\" label-align=\"right\" mb-2 label-width=\"200px\" />\n\n  <h2>Custom displayed value</h2>\n  <c-select v-model:value=\"value\" :options=\"optionsA\" mb-2>\n    <template #displayed-value>\n      <span class=\"font-bold lh-normal\">Hello</span>\n    </template>\n  </c-select>\n\n  <c-select v-model:value=\"value\" :options=\"optionsA\">\n    <template #displayed-value>\n      <span lh-normal>\n        <icon-mdi-translate />\n      </span>\n    </template>\n  </c-select>\n</template>\n"
  },
  {
    "path": "src/ui/c-select/c-select.theme.ts",
    "content": "import { defineThemes } from '../theme/theme.models';\nimport { appThemes } from '../theme/themes';\n\nconst sizes = {\n  small: {\n    height: '28px',\n    fontSize: '12px',\n  },\n  medium: {\n    height: '34px',\n    fontSize: '14px',\n  },\n  large: {\n    height: '40px',\n    fontSize: '16px',\n  },\n};\n\nexport const { useTheme } = defineThemes({\n  dark: {\n    sizes,\n\n    backgroundColor: '#333333',\n    borderColor: '#333333',\n    dropdownShadow: 'rgba(0, 0, 0, 0.2) 0px 8px 24px',\n\n    option: {\n      hover: {\n        backgroundColor: '#444444',\n      },\n      active: {\n        textColor: appThemes.dark.primary.color,\n      },\n    },\n\n    focus: {\n      backgroundColor: '#1ea54c1a',\n    },\n  },\n  light: {\n    sizes,\n\n    backgroundColor: '#ffffff',\n    borderColor: '#e0e0e69e',\n    dropdownShadow: 'rgba(149, 157, 165, 0.2) 0px 8px 24px',\n\n    option: {\n      hover: {\n        backgroundColor: '#eee',\n      },\n      active: {\n        textColor: appThemes.light.primary.color,\n      },\n    },\n\n    focus: {\n      backgroundColor: '#ffffff',\n    },\n  },\n});\n"
  },
  {
    "path": "src/ui/c-select/c-select.types.ts",
    "content": "export interface CSelectOption<Value = unknown> {\n  label: string\n  value: Value\n}\n"
  },
  {
    "path": "src/ui/c-select/c-select.vue",
    "content": "<script setup lang=\"ts\" generic=\"T extends unknown\">\nimport { useAppTheme } from '../theme/themes';\nimport type { CLabelProps } from '../c-label/c-label.types';\nimport type { CSelectOption } from './c-select.types';\nimport { useTheme } from './c-select.theme';\nimport { clamp } from '@/modules/shared/number.models';\nimport { useFuzzySearch } from '@/composable/fuzzySearch';\n\nconst props = withDefaults(\n  defineProps<{\n    options?: CSelectOption<T>[] | string[]\n    value?: T\n    placeholder?: string\n    size?: 'small' | 'medium' | 'large'\n    searchable?: boolean\n  } & CLabelProps >(),\n  {\n    options: () => [],\n    value: undefined,\n    placeholder: undefined,\n    size: 'medium',\n    searchable: false,\n  },\n);\n\nconst emits = defineEmits(['update:value']);\n\nconst { options: rawOptions, placeholder, size: sizeName, searchable } = toRefs(props);\n\nconst options = computed(() => {\n  return rawOptions.value.map((option: string | CSelectOption<T>) => {\n    if (typeof option === 'string') {\n      return { label: option, value: option };\n    }\n\n    return option;\n  });\n});\n\nconst keys = useMagicKeys();\nconst value = useVModel(props, 'value', emits);\nconst theme = useTheme();\nconst appTheme = useAppTheme();\n\nconst isOpen = ref(false);\nconst selectedOption = shallowRef<CSelectOption<T> | undefined>(options.value.find((option: CSelectOption<T>) => option.value === value.value));\nconst focusIndex = ref(0);\nconst elementRef = ref(null);\n\nconst size = computed(() => theme.value.sizes[sizeName.value as 'small' | 'medium' | 'large']);\n\nconst searchQuery = ref('');\nconst searchInputRef = ref();\n\nwhenever(() => !isOpen.value, () => {\n  focusIndex.value = 0;\n  searchQuery.value = '';\n});\n\nwhenever(() => isOpen.value, () => {\n  nextTick(() => searchInputRef.value?.focus());\n});\n\nonClickOutside(elementRef, close);\nwhenever(keys.escape, close);\n\nwatch(\n  value,\n  (newValue) => {\n    const option = options.value.find((option: CSelectOption<T>) => option.value === newValue);\n    if (option) {\n      selectedOption.value = option;\n    }\n  },\n);\n\nconst { searchResult: filteredOptions } = useFuzzySearch<CSelectOption<T>>({\n  search: searchQuery,\n  data: options.value,\n  options: {\n    keys: ['label'],\n    shouldSort: false,\n    threshold: 0.3,\n    filterEmpty: false,\n  },\n});\n\nfunction close() {\n  isOpen.value = false;\n}\n\nfunction toggleOpen() {\n  isOpen.value = !isOpen.value;\n}\n\nfunction selectOption({ option }: { option: CSelectOption<T> }) {\n  selectedOption.value = option;\n  // @ts-expect-error vue template generic is a bit flacky thanks to withDefaults\n  value.value = option.value;\n  isOpen.value = false;\n}\n\nfunction handleKeydown(event: KeyboardEvent) {\n  const { key } = event;\n  const isEnter = ['Enter'].includes(key);\n  const isArrowUpOrDown = ['ArrowUp', 'ArrowDown'].includes(key);\n  const isArrowDown = key === 'ArrowDown';\n\n  if (isEnter) {\n    const valueCanBeSelected = isOpen.value && focusIndex.value !== -1;\n\n    if (valueCanBeSelected) {\n      selectOption({ option: filteredOptions.value[focusIndex.value] });\n    }\n    else {\n      toggleOpen();\n    }\n\n    event.preventDefault();\n    return;\n  }\n\n  if (isArrowUpOrDown) {\n    const increment = isArrowDown ? 1 : -1;\n    focusIndex.value = clamp({\n      value: focusIndex.value + increment,\n      min: 0,\n      max: options.value.length - 1,\n    });\n\n    event.preventDefault();\n  }\n}\n\nfunction onSearchInput() {\n  focusIndex.value = 0;\n}\n</script>\n\n<template>\n  <c-label v-bind=\"props\">\n    <div ref=\"elementRef\" relative class=\"c-select\" w-full>\n      <div\n        flex flex-nowrap cursor-pointer items-center\n        :class=\"{ 'is-open': isOpen, 'important:border-primary': isOpen }\"\n        class=\"c-select-input\"\n        tabindex=\"0\"\n        hover:important:border-primary\n        @click=\"toggleOpen\"\n        @keydown=\"handleKeydown\"\n      >\n        <div flex-1 truncate>\n          <slot name=\"displayed-value\">\n            <input v-if=\"searchable && isOpen\" ref=\"searchInputRef\" v-model=\"searchQuery\" type=\"text\" placeholder=\"Search...\" class=\"search-input\" w-full lh-normal color-current @input=\"onSearchInput\">\n            <span v-else-if=\"selectedOption\" lh-normal>\n              {{ selectedOption.label }}\n            </span>\n            <span v-else class=\"placeholder\" lh-normal>\n              {{ placeholder ?? 'Select an option' }}\n            </span>\n          </slot>\n        </div>\n\n        <icon-mdi-chevron-down class=\"chevron\" />\n      </div>\n\n      <transition name=\"dropdown\">\n        <div v-show=\"isOpen\" class=\"c-select-dropdown\" absolute z-10 mt-1 max-h-312px w-full overflow-y-auto pretty-scrollbar>\n          <template v-if=\"!filteredOptions.length\">\n            <slot name=\"empty\">\n              <div px-4 py-1 opacity-70>\n                No results found\n              </div>\n            </slot>\n          </template>\n          <template v-else>\n            <div\n              v-for=\"(option, index) in filteredOptions\"\n              :key=\"option.label\"\n              cursor-pointer\n              px-4\n              py-1\n              :class=\"{ active: selectedOption?.label === option.label, hover: focusIndex === index }\"\n              class=\"c-select-dropdown-option\"\n              @click=\"selectOption({ option })\"\n            >\n              {{ option.label }}\n            </div>\n          </template>\n        </div>\n      </transition>\n    </div>\n  </c-label>\n</template>\n\n<style lang=\"less\" scoped>\n.c-select {\n  .search-input{\n    all: unset;\n\n    &::placeholder {\n      color: v-bind('appTheme.text.mutedColor');\n    }\n  }\n\n  .c-select-input {\n    background-color: v-bind('theme.backgroundColor');\n    border: 1px solid v-bind('theme.borderColor');\n    border-radius: 4px;\n    padding: 0 12px;\n    font-family: inherit;\n    font-size: v-bind('size.fontSize');\n    height: v-bind('size.height');\n    transition: border-color 0.2s ease-in-out;\n\n    .placeholder, .chevron {\n      color: v-bind('appTheme.text.mutedColor');\n    }\n  }\n\n  .c-select-dropdown {\n    background-color: v-bind('theme.backgroundColor');\n    border-radius: 4px;\n    // box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;\n    box-shadow: v-bind('theme.dropdownShadow');\n    font-family: inherit;\n    font-size: inherit;\n    line-height: 1;\n    padding: 6px;\n\n    .c-select-dropdown-option{\n      border-radius: 4px;\n      padding: 8px 12px;\n      background-color: transparent;\n      transition: background-color 0.2s ease-in-out;\n\n      &.active {\n        color: v-bind('theme.option.active.textColor');\n      }\n\n      &:hover, &.hover {\n        background-color: v-bind('theme.option.hover.backgroundColor');\n      }\n    }\n  }\n}\n\n.dropdown-enter-active,\n.dropdown-leave-active {\n  transition: opacity 0.2s, transform 0.2s;\n}\n\n.dropdown-enter-from,\n.dropdown-leave-to {\n  opacity: 0;\n  transform: translateY(-10px);\n}\n\n.dropdown-enter-to,\n.dropdown-leave-from {\n  opacity: 1;\n  transform: translateY(0);\n}\n</style>\n"
  },
  {
    "path": "src/ui/c-table/c-table.demo.vue",
    "content": "<script lang=\"ts\" setup>\nconst data = ref([\n  { name: 'John', age: 20 },\n  { name: 'Jane', age: 24 },\n  { name: 'Joe', age: 30 },\n]);\n</script>\n\n<template>\n  <c-table :data=\"data\" mb-2 />\n  <c-table :data=\"data\" hide-headers mb-2 />\n  <c-table :data=\"data\" :headers=\"['age', 'name']\" mb-2 />\n  <c-table :data=\"data\" :headers=\"['age', { key: 'name', label: 'Full name' }]\" mb-2 />\n  <c-table :data=\"data\" :headers=\"{ name: 'full name' }\" mb-2 />\n  <c-table :data=\"data\" :headers=\"['age', 'name']\">\n    <template #age=\"{ value }\">\n      {{ value }}yo\n    </template>\n  </c-table>\n</template>\n"
  },
  {
    "path": "src/ui/c-table/c-table.types.ts",
    "content": "export type HeaderConfiguration = (string | {\n  key: string\n  label?: string\n})[] | Record<string, string>;\n"
  },
  {
    "path": "src/ui/c-table/c-table.vue",
    "content": "<script lang=\"ts\" setup>\nimport _ from 'lodash';\nimport type { HeaderConfiguration } from './c-table.types';\n\nconst props = withDefaults(defineProps<{ data?: Record<string, unknown>[]; headers?: HeaderConfiguration ; hideHeaders?: boolean; description?: string }>(), { data: () => [], headers: undefined, hideHeaders: false, description: 'Data table' });\nconst { data, headers: rawHeaders, hideHeaders } = toRefs(props);\n\nconst headers = computed(() => {\n  if (rawHeaders.value) {\n    if (Array.isArray(rawHeaders.value)) {\n      return rawHeaders.value.map((value) => {\n        if (typeof value === 'string') {\n          return { key: value, label: value };\n        }\n\n        const { key, label } = value;\n\n        return {\n          key,\n          label: label ?? key,\n        };\n      });\n    }\n\n    return _.map(rawHeaders.value, (value, key) => ({\n      key, label: value,\n    }));\n  }\n\n  return _.chain(data.value)\n    .map(row => Object.keys(row))\n    .flatten()\n    .uniq()\n    .map(key => ({ key, label: key }))\n    .value();\n});\n</script>\n\n<template>\n  <div class=\"relative overflow-x-auto rounded\">\n    <table class=\"w-full border-collapse text-left text-sm text-gray-500 dark:text-gray-400\" role=\"table\" :aria-label=\"description\">\n      <thead v-if=\"!hideHeaders\" class=\"bg-#ffffff uppercase text-gray-700 dark:bg-#333333 dark:text-gray-400\" border-b=\"1px solid dark:transparent #efeff5\">\n        <tr>\n          <th v-for=\"header in headers\" :key=\"header.key\" scope=\"col\" class=\"px-6 py-3 text-xs\">\n            {{ header.label }}\n          </th>\n        </tr>\n      </thead>\n      <tbody>\n        <tr\n          v-for=\"(row, i) in data\" :key=\"i\" border-b=\"1px solid dark:#282828 #efeff5\" class=\"bg-white dark:bg-#232323\"\n          :class=\"{\n            'important:border-b-none': i === data.length - 1,\n          }\"\n        >\n          <td v-for=\"header in headers\" :key=\"header.key\" class=\"px-6 py-4\">\n            <slot :name=\"header.key\" :row=\"row\" :headers=\"headers\" :value=\"row[header.key]\">\n              {{ row[header.key] }}\n            </slot>\n          </td>\n        </tr>\n      </tbody>\n    </table>\n  </div>\n</template>\n"
  },
  {
    "path": "src/ui/c-text-copyable/c-text-copyable.demo.vue",
    "content": "<template>\n  <c-text-copyable value=\"value\" displayed-value=\"displayedValue\" />\n</template>\n"
  },
  {
    "path": "src/ui/c-text-copyable/c-text-copyable.vue",
    "content": "<script setup lang=\"ts\">\nimport { useCopy } from '@/composable/copy';\n\nconst props = withDefaults(defineProps<{ value?: string; displayedValue?: string; showIcon?: boolean }>(), { value: '', displayedValue: undefined, showIcon: true });\nconst { value, displayedValue, showIcon } = toRefs(props);\n\nconst { copy, isJustCopied } = useCopy({ source: value, createToast: false });\n</script>\n\n<template>\n  <c-tooltip :tooltip=\"isJustCopied ? 'Copied!' : 'Copy to clipboard'\" cursor-pointer @click=\"copy\">\n    <span flex items-center gap-2>\n      {{ displayedValue ?? value }}\n      <icon-mdi-content-copy v-if=\"showIcon\" op-40 />\n    </span>\n  </c-tooltip>\n</template>\n"
  },
  {
    "path": "src/ui/c-tooltip/c-tooltip.demo.vue",
    "content": "<script lang=\"ts\" setup>\nconst positions = ['top', 'bottom', 'left', 'right'] as const;\n</script>\n\n<template>\n  <div>\n    <c-tooltip>\n      Hover me\n\n      <template #tooltip>\n        Tooltip content\n      </template>\n    </c-tooltip>\n  </div>\n\n  <div mt-5>\n    <c-tooltip tooltip=\"Tooltip content\">\n      Hover me\n    </c-tooltip>\n  </div>\n\n  <div mt-5>\n    <h2>Tooltip positions</h2>\n\n    <div class=\"flex flex-wrap gap-4\">\n      <div v-for=\"position in positions\" :key=\"position\">\n        <c-tooltip :position=\"position\" :tooltip=\"`Tooltip ${position}`\">\n          <c-button>\n            {{ position }}\n          </c-button>\n        </c-tooltip>\n      </div>\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/ui/c-tooltip/c-tooltip.vue",
    "content": "<script setup lang=\"ts\">\nconst props = withDefaults(defineProps<{ tooltip?: string; position?: 'top' | 'bottom' | 'left' | 'right' }>(), {\n  tooltip: undefined,\n  position: 'top',\n});\nconst { tooltip, position } = toRefs(props);\n\nconst targetRef = ref();\nconst isTargetHovered = useElementHover(targetRef);\n</script>\n\n<template>\n  <div relative inline-block>\n    <div ref=\"targetRef\">\n      <slot />\n    </div>\n\n    <div\n      v-if=\"tooltip || $slots.tooltip\"\n      class=\"absolute z-10 whitespace-nowrap rounded bg-black px-12px py-6px text-sm text-white shadow-lg transition transition transition-duration-0.2s\"\n      :class=\"{\n        'op-0 scale-0': isTargetHovered === false,\n        'op-100 scale-100': isTargetHovered,\n        'bottom-100% left-50% -translate-x-1/2 mb-5px': position === 'top',\n        'top-100% left-50% -translate-x-1/2 mt-5px': position === 'bottom',\n        'right-100% top-50% -translate-y-1/2 mr-5px': position === 'left',\n        'left-100% top-50% -translate-y-1/2 ml-5px': position === 'right',\n      }\"\n    >\n      <slot\n        v-if=\"isTargetHovered\"\n        name=\"tooltip\"\n      >\n        {{ tooltip }}\n      </slot>\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/ui/color/color.models.test.ts",
    "content": "import { describe, expect, test } from 'vitest';\nimport { darken, lighten, setOpacity } from './color.models';\n\ndescribe('color models', () => {\n  describe('lighten', () => {\n    test('lightens a color', () => {\n      expect(lighten('#000000', 10)).toBe('#0a0a0a');\n      expect(lighten('#000000', 20)).toBe('#141414');\n      expect(lighten('#ffffff', 30)).toBe('#ffffff');\n    });\n\n    test('lightens a color with alpha', () => {\n      expect(lighten('#00000080', 10)).toBe('#0a0a0a80');\n      expect(lighten('#00000080', 20)).toBe('#14141480');\n      expect(lighten('#ffffff80', 30)).toBe('#ffffff80');\n    });\n  });\n\n  describe('darken', () => {\n    test('darkens a color', () => {\n      expect(darken('#ffffff', 10)).toBe('#f5f5f5');\n      expect(darken('#ffffff', 20)).toBe('#ebebeb');\n      expect(darken('#000000', 30)).toBe('#000000');\n    });\n\n    test('darkens a color with alpha', () => {\n      expect(darken('#ffffff80', 10)).toBe('#f5f5f580');\n    });\n  });\n\n  describe('setOpacity', () => {\n    test('sets the opacity of a color', () => {\n      expect(setOpacity('#000000', 0.5)).toBe('#00000080');\n    });\n\n    test('sets the opacity of a color with alpha', () => {\n      expect(setOpacity('#00000000', 0.5)).toBe('#00000080');\n    });\n  });\n});\n"
  },
  {
    "path": "src/ui/color/color.models.ts",
    "content": "export { lighten, darken, setOpacity };\n\nconst clampHex = (value: number) => Math.max(0, Math.min(255, Math.round(value)));\n\nfunction lighten(color: string, amount: number): string {\n  const alpha = color.length === 9 ? color.slice(7) : '';\n  const num = Number.parseInt(color.slice(1, 7), 16);\n\n  const r = clampHex(((num >> 16) & 255) + amount);\n  const g = clampHex(((num >> 8) & 255) + amount);\n  const b = clampHex((num & 255) + amount);\n\n  return `#${((r << 16) | (g << 8) | b).toString(16).padStart(6, '0')}${alpha}`;\n}\n\nfunction darken(color: string, amount: number): string {\n  return lighten(color, -amount);\n}\n\nfunction setOpacity(color: string, opacity: number): string {\n  const alpha = clampHex(Math.round(opacity * 255))\n    .toString(16)\n    .padStart(2, '0');\n\n  if (color.length === 7) {\n    return `${color}${alpha}`;\n  }\n\n  if (color.length === 9) {\n    return `${color.slice(0, 7)}${alpha}`;\n  }\n  throw new Error('Invalid hex color');\n}\n"
  },
  {
    "path": "src/ui/demo/demo-home.page.vue",
    "content": "<script lang=\"ts\" setup>\nimport { demoRoutes } from './demo.routes';\n</script>\n\n<template>\n  <div grid grid-cols-5 gap-2>\n    <c-button v-for=\"{ name } of demoRoutes\" :key=\"name\" :to=\"{ name }\">\n      {{ name }}\n    </c-button>\n  </div>\n</template>\n"
  },
  {
    "path": "src/ui/demo/demo-wrapper.vue",
    "content": "<script lang=\"ts\" setup>\nimport _ from 'lodash';\nimport { demoRoutes } from './demo.routes';\n\nconst route = useRoute();\n\nconst componentName = computed(() => _.startCase(String(route.name).replace(/^c-/, '')));\n</script>\n\n<template>\n  <div mt-2 w-full p-8>\n    <h1>c-lib components</h1>\n\n    <div flex>\n      <div w-200px b-r b-gray b-op-10 b-r-solid pr-4>\n        <c-button\n          v-for=\"{ name } of demoRoutes\"\n          :key=\"name\"\n          variant=\"text\"\n          :to=\"{ name }\"\n          w-full\n          important:justify-start\n          important:text-left\n          :type=\"route.name === name ? 'primary' : 'default'\"\n        >\n          {{ name }}\n        </c-button>\n      </div>\n\n      <div flex-1 pl-4>\n        <h1>{{ componentName }}</h1>\n\n        <router-view />\n      </div>\n    </div>\n  </div>\n</template>\n"
  },
  {
    "path": "src/ui/demo/demo.routes.ts",
    "content": "import type { RouteRecordRaw } from 'vue-router';\nimport DemoHome from './demo-home.page.vue';\n\nconst demoPages = import.meta.glob('../*/*.demo.vue', { eager: true });\n\nexport const demoRoutes = Object.keys(demoPages).map((demoComponentPath) => {\n  const [, , fileName] = demoComponentPath.split('/');\n  const demoComponentName = fileName.split('.').shift();\n\n  return {\n    path: demoComponentName,\n    name: demoComponentName,\n    component: () => import(/* @vite-ignore */ demoComponentPath),\n  } as RouteRecordRaw;\n});\n\nexport const routes = [\n  {\n    path: '/c-lib',\n    name: 'c-lib',\n    children: [\n      {\n        path: '',\n        name: 'c-lib-index',\n        component: DemoHome,\n      },\n      ...demoRoutes,\n    ],\n    component: () => import('./demo-wrapper.vue'),\n  },\n];\n"
  },
  {
    "path": "src/ui/theme/theme.models.ts",
    "content": "import { useStyleStore } from '@/stores/style.store';\n\nexport { defineThemes };\n\nfunction defineThemes<Theme>(themes: { light: Theme; dark: Theme }) {\n  return {\n    themes,\n    useTheme() {\n      const styleStore = useStyleStore();\n      return computed(() => themes[styleStore.isDarkTheme ? 'dark' : 'light']);\n    },\n  };\n}\n"
  },
  {
    "path": "src/ui/theme/themes.ts",
    "content": "import { defineThemes } from './theme.models';\n\nexport const { themes: appThemes, useTheme: useAppTheme } = defineThemes({\n  light: {\n    background: '#ffffff',\n    text: {\n      baseColor: '#333639',\n      mutedColor: '#767c82',\n    },\n    default: {\n      color: 'rgba(46, 51, 56, 0.05)',\n      colorHover: 'rgba(46, 51, 56, 0.09)',\n      colorPressed: 'rgba(46, 51, 56, 0.22)',\n    },\n    primary: {\n      color: '#18a058',\n      colorHover: '#1ea54c',\n      colorPressed: '#0C7A43',\n      colorFaded: '#18a0582f',\n    },\n    warning: {\n      color: '#f59e0b',\n      colorHover: '#f59e0b',\n      colorPressed: '#f59e0b',\n      colorFaded: '#f59e0b2f',\n    },\n    success: {\n      color: '#18a058',\n      colorHover: '#36ad6a',\n      colorPressed: '#0c7a43',\n      colorFaded: '#18a0582f',\n    },\n    error: {\n      color: '#d03050',\n      colorHover: '#de576d',\n      colorPressed: '#ab1f3f',\n      colorFaded: '#d030502a',\n    },\n  },\n  dark: {\n    background: '#1e1e1e',\n    text: {\n      baseColor: '#ffffffd1',\n      mutedColor: '#ffffff80',\n    },\n    default: {\n      color: 'rgba(255, 255, 255, 0.08)',\n      colorHover: 'rgba(255, 255, 255, 0.12)',\n      colorPressed: 'rgba(255, 255, 255, 0.24)',\n    },\n    primary: {\n      color: '#1ea54c',\n      colorHover: '#36AD6A',\n      colorPressed: '#0C7A43',\n      colorFaded: '#18a0582f',\n    },\n    warning: {\n      color: '#f59e0b',\n      colorHover: '#f59e0b',\n      colorPressed: '#f59e0b',\n      colorFaded: '#f59e0b2f',\n    },\n    success: {\n      color: '#18a058',\n      colorHover: '#36ad6a',\n      colorPressed: '#0c7a43',\n      colorFaded: '#18a0582f',\n    },\n    error: {\n      color: '#e88080',\n      colorHover: '#e98b8b',\n      colorPressed: '#e57272',\n      colorFaded: '#e8808029',\n    },\n  },\n});\n"
  },
  {
    "path": "src/utils/array.ts",
    "content": "export { byOrder };\n\nfunction byOrder({ order }: { order: 'asc' | 'desc' | null | undefined }) {\n  return (a: string, b: string) => {\n    return order === 'asc' ? a.localeCompare(b) : b.localeCompare(a);\n  };\n}\n"
  },
  {
    "path": "src/utils/base64.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { base64ToText, isValidBase64, removePotentialDataAndMimePrefix, textToBase64 } from './base64';\n\ndescribe('base64 utils', () => {\n  describe('textToBase64', () => {\n    it('should convert string into base64', () => {\n      expect(textToBase64('')).to.eql('');\n      expect(textToBase64('a')).to.eql('YQ==');\n      expect(textToBase64('lorem ipsum')).to.eql('bG9yZW0gaXBzdW0=');\n      expect(textToBase64('-1')).to.eql('LTE=');\n      expect(textToBase64('<<<????????>>>', { makeUrlSafe: false })).to.eql('PDw8Pz8/Pz8/Pz8+Pj4=');\n    });\n    it('should convert string into url safe base64', () => {\n      expect(textToBase64('', { makeUrlSafe: true })).to.eql('');\n      expect(textToBase64('a', { makeUrlSafe: true })).to.eql('YQ');\n      expect(textToBase64('lorem ipsum', { makeUrlSafe: true })).to.eql('bG9yZW0gaXBzdW0');\n      expect(textToBase64('<<<????????>>>', { makeUrlSafe: true })).to.eql('PDw8Pz8_Pz8_Pz8-Pj4');\n    });\n  });\n\n  describe('base64ToText', () => {\n    it('should convert base64 into text', () => {\n      expect(base64ToText('')).to.eql('');\n      expect(base64ToText('YQ==', { makeUrlSafe: false })).to.eql('a');\n      expect(base64ToText('bG9yZW0gaXBzdW0=')).to.eql('lorem ipsum');\n      expect(base64ToText('data:text/plain;base64,bG9yZW0gaXBzdW0=')).to.eql('lorem ipsum');\n      expect(base64ToText('LTE=')).to.eql('-1');\n    });\n\n    it('should convert url safe base64 into text', () => {\n      expect(base64ToText('', { makeUrlSafe: true })).to.eql('');\n      expect(base64ToText('YQ', { makeUrlSafe: true })).to.eql('a');\n      expect(base64ToText('bG9yZW0gaXBzdW0', { makeUrlSafe: true })).to.eql('lorem ipsum');\n      expect(base64ToText('data:text/plain;base64,bG9yZW0gaXBzdW0', { makeUrlSafe: true })).to.eql('lorem ipsum');\n      expect(base64ToText('LTE', { makeUrlSafe: true })).to.eql('-1');\n      expect(base64ToText('PDw8Pz8_Pz8_Pz8-Pj4', { makeUrlSafe: true })).to.eql('<<<????????>>>');\n    });\n\n    it('should throw for incorrect base64 string', () => {\n      expect(() => base64ToText('a')).to.throw('Incorrect base64 string');\n      // should not really be false because trimming of space is now implied\n      // expect(() => base64ToText(' ')).to.throw('Incorrect base64 string');\n      expect(() => base64ToText('é')).to.throw('Incorrect base64 string');\n      // missing final '='\n      expect(() => base64ToText('bG9yZW0gaXBzdW0')).to.throw('Incorrect base64 string');\n    });\n  });\n\n  describe('isValidBase64', () => {\n    it('should return true for correct base64 string', () => {\n      expect(isValidBase64('')).to.eql(true);\n      expect(isValidBase64('bG9yZW0gaXBzdW0=')).to.eql(true);\n      expect(isValidBase64('LTE=')).to.eql(true);\n      expect(isValidBase64('YQ==')).to.eql(true);\n      expect(isValidBase64('data:text/plain;base64,YQ==')).to.eql(true);\n    });\n\n    it('should return false for incorrect base64 string', () => {\n      expect(isValidBase64('a')).to.eql(false);\n      expect(isValidBase64('é')).to.eql(false);\n      expect(isValidBase64('data:text/plain;notbase64,YQ==')).to.eql(false);\n      // missing final '='\n      expect(isValidBase64('bG9yZW0gaXBzdW0')).to.eql(false);\n    });\n\n    it('should return true for untrimmed correct base64 string', () => {\n      expect(isValidBase64('bG9yZW0gaXBzdW0= ')).to.eql(true);\n      expect(isValidBase64(' LTE=')).to.eql(true);\n      expect(isValidBase64(' YQ== ')).to.eql(true);\n      expect(isValidBase64(' ')).to.eql(true);\n    });\n  });\n\n  describe('removePotentialDataAndMimePrefix', () => {\n    it('should remove data prefix of string', () => {\n      expect(removePotentialDataAndMimePrefix('')).to.eql('');\n      expect(removePotentialDataAndMimePrefix('lorem ipsum')).to.eql('lorem ipsum');\n      expect(removePotentialDataAndMimePrefix('bG9yZW0gaXBzdW0=')).to.eql('bG9yZW0gaXBzdW0=');\n      expect(removePotentialDataAndMimePrefix('data:image/jpeg;base64,lorem')).to.eql('lorem');\n      expect(removePotentialDataAndMimePrefix('data:image/jpeg;notbase64,lorem')).to.eql(\n        'data:image/jpeg;notbase64,lorem',\n      );\n      expect(removePotentialDataAndMimePrefix('data:unknownmime;base64,lorem')).to.eql('lorem');\n    });\n  });\n});\n"
  },
  {
    "path": "src/utils/base64.ts",
    "content": "import { Base64 } from 'js-base64';\n\nexport { textToBase64, base64ToText, isValidBase64, removePotentialDataAndMimePrefix };\n\nfunction textToBase64(str: string, { makeUrlSafe = false }: { makeUrlSafe?: boolean } = {}) {\n  const encoded = Base64.encode(str);\n  return makeUrlSafe ? makeUriSafe(encoded) : encoded;\n}\n\nfunction base64ToText(str: string, { makeUrlSafe = false }: { makeUrlSafe?: boolean } = {}) {\n  if (!isValidBase64(str, { makeUrlSafe })) {\n    throw new Error('Incorrect base64 string');\n  }\n\n  let cleanStr = removePotentialDataAndMimePrefix(str);\n  if (makeUrlSafe) {\n    cleanStr = unURI(cleanStr);\n  }\n\n  try {\n    return Base64.decode(cleanStr);\n  }\n  catch (_) {\n    throw new Error('Incorrect base64 string');\n  }\n}\n\nfunction removePotentialDataAndMimePrefix(str: string) {\n  return str.replace(/^data:.*?;base64,/, '');\n}\n\nfunction isValidBase64(str: string, { makeUrlSafe = false }: { makeUrlSafe?: boolean } = {}) {\n  let cleanStr = removePotentialDataAndMimePrefix(str);\n  if (makeUrlSafe) {\n    cleanStr = unURI(cleanStr);\n  }\n\n  try {\n    const reEncodedBase64 = Base64.fromUint8Array(Base64.toUint8Array(cleanStr));\n    if (makeUrlSafe) {\n      return removePotentialPadding(reEncodedBase64) === cleanStr;\n    }\n    return reEncodedBase64 === cleanStr.replace(/\\s/g, '');\n  }\n  catch (err) {\n    return false;\n  }\n}\n\nfunction makeUriSafe(encoded: string) {\n  return encoded.replace(/=/g, '').replace(/\\+/g, '-').replace(/\\//g, '_');\n}\n\nfunction unURI(encoded: string): string {\n  return encoded\n    .replace(/-/g, '+')\n    .replace(/_/g, '/')\n    .replace(/[^A-Za-z0-9+/]/g, '');\n}\n\nfunction removePotentialPadding(str: string) {\n  return str.replace(/=/g, '');\n}\n"
  },
  {
    "path": "src/utils/boolean.test.ts",
    "content": "import _ from 'lodash';\nimport { describe, expect, it } from 'vitest';\nimport { booleanToHumanReadable, isNotThrowing } from './boolean';\n\ndescribe('boolean utils', () => {\n  describe('isNotThrowing', () => {\n    it('should return if the call throws or false otherwise', () => {\n      expect(isNotThrowing(_.noop)).to.eql(true);\n      expect(\n        isNotThrowing(() => {\n          throw new Error('message');\n        }),\n      ).to.eql(false);\n    });\n  });\n\n  describe('booleanToHumanReadable', () => {\n    it('should return \"Yes\" if the value is true and \"No\" otherwise', () => {\n      expect(booleanToHumanReadable(true)).to.eql('Yes');\n      expect(booleanToHumanReadable(false)).to.eql('No');\n    });\n  });\n});\n"
  },
  {
    "path": "src/utils/boolean.ts",
    "content": "export { isNotThrowing, booleanToHumanReadable };\n\nfunction isNotThrowing(cb: () => unknown): boolean {\n  try {\n    cb();\n    return true;\n  }\n  catch (_) {\n    return false;\n  }\n}\n\nfunction booleanToHumanReadable(value: boolean): string {\n  return value ? 'Yes' : 'No';\n}\n"
  },
  {
    "path": "src/utils/convert.ts",
    "content": "export function formatBytes(bytes: number, decimals = 2) {\n  if (bytes === 0) {\n    return '0 Bytes';\n  }\n\n  const k = 1024;\n  const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\n  const i = Math.floor(Math.log(bytes) / Math.log(k));\n\n  return `${Number.parseFloat((bytes / k ** i).toFixed(decimals))} ${sizes[i]}`;\n}\n"
  },
  {
    "path": "src/utils/defaults.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { withDefaultOnError } from './defaults';\n\ndescribe('defaults util', () => {\n  describe('withDefaultOnError', () => {\n    it('should return the callback or the default one if the callback throws', () => {\n      expect(withDefaultOnError(() => 'original', 'default')).to.eql('original');\n    });\n\n    expect(\n      withDefaultOnError(() => {\n        throw new Error('message');\n      }, 'default'),\n    ).to.eql('default');\n  });\n});\n"
  },
  {
    "path": "src/utils/defaults.ts",
    "content": "export { withDefaultOnError, withDefaultOnErrorAsync };\n\nfunction withDefaultOnError<A, B>(cb: () => A, defaultValue: B): A | B {\n  try {\n    return cb();\n  }\n  catch (_) {\n    return defaultValue;\n  }\n}\n\nasync function withDefaultOnErrorAsync<A, B>(cb: () => A, defaultValue: B): Promise<Awaited<A> | B> {\n  try {\n    return await cb();\n  }\n  catch (_) {\n    return defaultValue;\n  }\n}\n"
  },
  {
    "path": "src/utils/error.test.ts",
    "content": "import { describe, expect, it } from 'vitest';\nimport { getErrorMessageIfThrows } from './error';\n\ndescribe('error util', () => {\n  describe('getErrorMessageIfThrows', () => {\n    it('get an error message if the callback throws, undefined instead', () => {\n      expect(\n        getErrorMessageIfThrows(() => {\n          // eslint-disable-next-line no-throw-literal\n          throw 'message';\n        }),\n      ).to.equal('message');\n\n      expect(\n        getErrorMessageIfThrows(() => {\n          throw new Error('message');\n        }),\n      ).to.equal('message');\n\n      expect(\n        getErrorMessageIfThrows(() => {\n          // eslint-disable-next-line no-throw-literal\n          throw { message: 'message' };\n        }),\n      ).to.equal('message');\n\n      expect(getErrorMessageIfThrows(() => {})).to.equal(undefined);\n    });\n  });\n});\n"
  },
  {
    "path": "src/utils/error.ts",
    "content": "import _ from 'lodash';\n\nexport { getErrorMessageIfThrows };\n\nfunction getErrorMessageIfThrows(cb: () => unknown) {\n  try {\n    cb();\n    return undefined;\n  }\n  catch (err) {\n    if (_.isString(err)) {\n      return err;\n    }\n\n    if (_.isError(err)) {\n      return err.message;\n    }\n\n    if (_.isObject(err) && _.has(err, 'message')) {\n      return (err as { message: string }).message;\n    }\n\n    return 'An error as occurred.';\n  }\n}\n"
  },
  {
    "path": "src/utils/macAddress.ts",
    "content": "import type { Ref } from 'vue';\nimport { useValidation } from '@/composable/validation';\n\nconst macAddressValidationRules = [\n  {\n    message: 'Invalid MAC address',\n    validator: (value: string) => value.trim().match(/^([0-9A-Fa-f]{2}[:-]){2,5}([0-9A-Fa-f]{2})$/),\n  },\n];\n\nfunction macAddressValidation(value: Ref) {\n  return useValidation({\n    source: value,\n    rules: macAddressValidationRules,\n  });\n}\n\nconst partialMacAddressValidationRules = [\n  {\n    message: 'Invalid partial MAC address',\n    validator: (value: string) => value.trim().match(/^([0-9a-f]{2}[:\\-. ]){0,5}([0-9a-f]{0,2})$/i),\n  },\n];\n\nfunction usePartialMacAddressValidation(value: Ref) {\n  return useValidation({\n    source: value,\n    rules: partialMacAddressValidationRules,\n  });\n}\n\nexport { macAddressValidation, macAddressValidationRules, usePartialMacAddressValidation, partialMacAddressValidationRules };\n"
  },
  {
    "path": "src/utils/random.ts",
    "content": "const random = () => Math.random();\n\nconst randFromArray = (array: unknown[]) => array[Math.floor(random() * array.length)];\n\nconst randIntFromInterval = (min: number, max: number) => Math.floor(random() * (max - min) + min);\n\n// Durstenfeld shuffle\nfunction shuffleArrayMutate<T>(array: T[]): T[] {\n  for (let i = array.length - 1; i > 0; i--) {\n    const j = Math.floor(Math.random() * (i + 1));\n    [array[i], array[j]] = [array[j], array[i]];\n  }\n\n  return array;\n}\n\nconst shuffleArray = <T>(array: T[]): T[] => shuffleArrayMutate([...array]);\n\nconst shuffleString = (str: string, delimiter = ''): string => shuffleArrayMutate(str.split(delimiter)).join(delimiter);\n\nconst generateRandomId = () => `id-${random().toString(36).substring(2, 12)}`;\n\nexport {\n  randFromArray,\n  randIntFromInterval,\n  random,\n  shuffleArray,\n  shuffleArrayMutate,\n  shuffleString,\n  generateRandomId,\n};\n"
  },
  {
    "path": "tsconfig.app.json",
    "content": "{\n  \"extends\": \"@vue/tsconfig/tsconfig.json\",\n  \"include\": [\"env.d.ts\", \"src/**/*\", \"src/**/*.vue\", \"**/*.d.ts\", \"node_modules/vite-plugin-pwa/client.d.ts\"],\n  \"exclude\": [\"src/**/__tests__/*\"],\n  \"compilerOptions\": {\n    \"lib\": [\"ES2022\"],\n    \"target\": \"es2022\",\n    \"module\": \"es2022\",\n    \"moduleResolution\": \"Node\",\n    \"composite\": true,\n    \"baseUrl\": \".\",\n    \"paths\": {\n      \"@/*\": [\"./src/*\"]\n    },\n    \"types\": [\"naive-ui/volar\", \"@intlify/unplugin-vue-i18n/messages\", \"unplugin-icons/types/vue\"],\n    \"esModuleInterop\": true,\n    \"jsx\": \"preserve\",\n    \"skipLibCheck\": true\n  }\n}\n"
  },
  {
    "path": "tsconfig.json",
    "content": "{\n  \"files\": [],\n  \"references\": [\n    {\n      \"path\": \"./tsconfig.vite-config.json\"\n    },\n    {\n      \"path\": \"./tsconfig.app.json\"\n    },\n    {\n      \"path\": \"./tsconfig.vitest.json\"\n    }\n  ]\n}\n"
  },
  {
    "path": "tsconfig.vite-config.json",
    "content": "{\n  \"extends\": \"@tsconfig/node18/tsconfig.json\",\n  \"include\": [\"vite.config.*\"],\n  \"compilerOptions\": {\n    \"composite\": true,\n    \"types\": [\"node\", \"vitest\"]\n  }\n}\n"
  },
  {
    "path": "tsconfig.vitest.json",
    "content": "{\n  \"extends\": \"./tsconfig.app.json\",\n  \"exclude\": [],\n  \"compilerOptions\": {\n    \"composite\": true,\n    \"lib\": [],\n    \"types\": [\"node\", \"jsdom\", \"unplugin-icons/types/vue\"]\n  }\n}\n"
  },
  {
    "path": "unocss.config.ts",
    "content": "import {\n  defineConfig,\n  presetAttributify,\n  presetTypography,\n  presetUno,\n  transformerDirectives,\n  transformerVariantGroup,\n} from 'unocss';\n\nimport { presetScrollbar } from 'unocss-preset-scrollbar';\n\nexport default defineConfig({\n  presets: [presetUno(), presetAttributify({ ignoreAttributes: ['size'] }), presetTypography(), presetScrollbar()],\n  transformers: [transformerDirectives(), transformerVariantGroup()],\n  theme: {\n    colors: {\n      primary: '#1ea54c',\n\n    },\n  },\n  shortcuts: {\n    'pretty-scrollbar': 'scrollbar scrollbar-rounded scrollbar-thumb-color-gray-300 scrollbar-track-color-gray-100 dark:scrollbar-thumb-color-#424242 dark:scrollbar-track-color-#686868',\n    'divider': 'h-1px bg-current op-10',\n    'bg-surface': 'bg-#ffffff dark:bg-#232323',\n    'bg-background': 'bg-#f1f5f9 dark:bg-#1c1c1c',\n  },\n});\n"
  },
  {
    "path": "vercel.json",
    "content": "{\n  \"routes\": [{ \"handle\": \"filesystem\" }, { \"src\": \"/(.*)\", \"dest\": \"/index.html\" }]\n}\n"
  },
  {
    "path": "vite.config.ts",
    "content": "import { resolve } from 'node:path';\nimport { URL, fileURLToPath } from 'node:url';\n\nimport VueI18n from '@intlify/unplugin-vue-i18n/vite';\nimport vue from '@vitejs/plugin-vue';\nimport vueJsx from '@vitejs/plugin-vue-jsx';\nimport Unocss from 'unocss/vite';\nimport AutoImport from 'unplugin-auto-import/vite';\nimport IconsResolver from 'unplugin-icons/resolver';\nimport Icons from 'unplugin-icons/vite';\nimport { NaiveUiResolver } from 'unplugin-vue-components/resolvers';\nimport Components from 'unplugin-vue-components/vite';\nimport { defineConfig } from 'vite';\nimport { VitePWA } from 'vite-plugin-pwa';\nimport markdown from 'vite-plugin-vue-markdown';\nimport svgLoader from 'vite-svg-loader';\nimport { configDefaults } from 'vitest/config';\n\nconst baseUrl = process.env.BASE_URL ?? '/';\n\n// https://vitejs.dev/config/\nexport default defineConfig({\n  plugins: [\n    VueI18n({\n      runtimeOnly: true,\n      jitCompilation: true,\n      compositionOnly: true,\n      fullInstall: true,\n      strictMessage: false,\n      include: [\n        resolve(__dirname, 'locales/**'),\n      ],\n    }),\n    AutoImport({\n      imports: [\n        'vue',\n        'vue-router',\n        '@vueuse/core',\n        'vue-i18n',\n        {\n          'naive-ui': ['useDialog', 'useMessage', 'useNotification', 'useLoadingBar'],\n        },\n      ],\n      vueTemplate: true,\n      eslintrc: {\n        enabled: true,\n      },\n    }),\n    Icons({ compiler: 'vue3' }),\n    vue({\n      include: [/\\.vue$/, /\\.md$/],\n    }),\n    vueJsx(),\n    markdown(),\n    svgLoader(),\n    VitePWA({\n      registerType: 'autoUpdate',\n      strategies: 'generateSW',\n      manifest: {\n        name: 'IT Tools',\n        description: 'Aggregated set of useful tools for developers.',\n        display: 'standalone',\n        lang: 'fr-FR',\n        start_url: `${baseUrl}?utm_source=pwa&utm_medium=pwa`,\n        orientation: 'any',\n        theme_color: '#18a058',\n        background_color: '#f1f5f9',\n        icons: [\n          {\n            src: '/favicon-16x16.png',\n            type: 'image/png',\n            sizes: '16x16',\n          },\n          {\n            src: '/favicon-32x32.png',\n            type: 'image/png',\n            sizes: '32x32',\n          },\n          {\n            src: '/android-chrome-192x192.png',\n            sizes: '192x192',\n            type: 'image/png',\n          },\n          {\n            src: '/android-chrome-512x512.png',\n            sizes: '512x512',\n            type: 'image/png',\n            purpose: 'any maskable',\n          },\n        ],\n      },\n    }),\n    Components({\n      dirs: ['src/'],\n      extensions: ['vue', 'md'],\n      include: [/\\.vue$/, /\\.vue\\?vue/, /\\.md$/],\n      resolvers: [NaiveUiResolver(), IconsResolver({ prefix: 'icon' })],\n    }),\n    Unocss(),\n  ],\n  base: baseUrl,\n  resolve: {\n    alias: {\n      '@': fileURLToPath(new URL('./src', import.meta.url)),\n    },\n  },\n  define: {\n    'import.meta.env.PACKAGE_VERSION': JSON.stringify(process.env.npm_package_version),\n  },\n  test: {\n    exclude: [...configDefaults.exclude, '**/*.e2e.spec.ts'],\n  },\n  build: {\n    target: 'esnext',\n  },\n});\n"
  }
]