diff --git a/.bowerrc b/.bowerrc deleted file mode 100644 index 54655825f..000000000 --- a/.bowerrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "directory": "site/bower_components" -} diff --git a/.browserslistrc b/.browserslistrc new file mode 100644 index 000000000..3427f9a3f --- /dev/null +++ b/.browserslistrc @@ -0,0 +1,3 @@ +defaults +not ie 11 +not ie_mob 11 diff --git a/.clean-publish b/.clean-publish new file mode 100644 index 000000000..711387ffe --- /dev/null +++ b/.clean-publish @@ -0,0 +1,4 @@ +{ + "withoutPublish": true, + "tempDir": "package" +} diff --git a/.commitlintrc.json b/.commitlintrc.json new file mode 100644 index 000000000..23e264859 --- /dev/null +++ b/.commitlintrc.json @@ -0,0 +1,6 @@ +{ + "extends": ["@commitlint/config-conventional"], + "rules": { + "body-max-line-length": [0] + } +} diff --git a/.czrc b/.czrc new file mode 100644 index 000000000..11f040658 --- /dev/null +++ b/.czrc @@ -0,0 +1,3 @@ +{ + "path": "@commitlint/cz-commitlint" +} diff --git a/.doclets.yml b/.doclets.yml deleted file mode 100644 index 532a1476e..000000000 --- a/.doclets.yml +++ /dev/null @@ -1 +0,0 @@ -dir: src/scripts diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 000000000..305293158 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,68 @@ +{ + "extends": ["eslint:recommended", "plugin:prettier/recommended"], + "parser": "@babel/eslint-parser", + "parserOptions": { + "ecmaVersion": "latest", + "requireConfigFile": false + }, + "env": { + "es6": true, + "browser": true, + "node": true + }, + "rules": { + "no-console": 2, + "curly": 2, + "dot-notation": 1, + "eqeqeq": 2, + "no-alert": 2, + "no-caller": 2, + "no-eval": 2, + "no-extra-bind": 2, + "no-implied-eval": 2, + "no-multi-spaces": 2, + "no-with": 2, + "no-shadow": 2, + "no-shadow-restricted-names": 2, + "brace-style": ["error", "1tbs"], + "camelcase": 2, + "comma-style": ["error", "last"], + "eol-last": 2, + "key-spacing": 2, + "new-cap": 1, + "no-array-constructor": 2, + "no-mixed-spaces-and-tabs": 2, + "no-multiple-empty-lines": 2, + "semi-spacing": 2, + "no-spaced-func": 2, + "no-trailing-spaces": 2, + "space-before-blocks": 2, + "spaced-comment": 1, + "no-var": 2 + }, + "overrides": [ + { + "files": ["**/*.ts"], + "parser": "@typescript-eslint/parser", + "plugins": ["@typescript-eslint"], + "extends": ["plugin:@typescript-eslint/recommended"] + }, + { + "files": ["test/**/*.{js,ts}", "*.spec.{js,ts}", "*.stories.{js,ts}"], + "plugins": [ + "jest", + "testing-library", + "jest-dom" + ], + "extends": ["plugin:jest-dom/recommended"], + "env": { + "jest/globals": true + }, + "rules": { + "no-console": 0, + "no-shadow": 0, + "@typescript-eslint/no-explicit-any": 0 + } + } + ] +} diff --git a/.gitattributes b/.gitattributes index 212566614..176a458f9 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -* text=auto \ No newline at end of file +* text=auto diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml new file mode 100644 index 000000000..24617de4b --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -0,0 +1,44 @@ +name: "šŸ› Bug Report" +description: "If something isn't working as expected." +title: "[Bug]: " +labels: ["bug"] +body: + - type: markdown + attributes: + value: Thanks for taking the time to file a bug report! Please fill out this form as completely as possible. + + - type: checkboxes + id: input1 + attributes: + label: Would you like to work on a fix? + options: + - label: Check this if you would like to implement a PR, we are more than happy to help you go through the process. + + - type: textarea + attributes: + label: Current and expected behavior + description: A clear and concise description of what the library is doing and what you would expect. + validations: + required: true + + - type: input + attributes: + label: Reproduction + description: | + Please provide issue reproduction. + You can give a link to a repository with the reproduction or make a [sandbox](https://codesandbox.io/) and reproduce the issue there. + validations: + required: true + + - type: input + attributes: + label: Chartist version + description: Which version of Chartist are you using? + placeholder: v0.0.0 + validations: + required: true + + - type: textarea + attributes: + label: Possible solution + description: If you have suggestions on a fix for the bug. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 000000000..d735f21bb --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: false +contact_links: + - name: šŸ¤” Have a Question? + url: https://stackoverflow.com/questions/tagged/chartist.js + about: Feel free to ask questions on Stack Overflow. diff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.yml new file mode 100644 index 000000000..6d9a48205 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request.yml @@ -0,0 +1,40 @@ +name: "šŸš€ Feature Request" +description: "I have a specific suggestion!" +labels: ["enhancement"] +body: + - type: markdown + attributes: + value: Thanks for taking the time to suggest a new feature! Please fill out this form as completely as possible. + + - type: checkboxes + id: input1 + attributes: + label: Would you like to work on this feature? + options: + - label: Check this if you would like to implement a PR, we are more than happy to help you go through the process. + + - type: textarea + attributes: + label: What problem are you trying to solve? + description: | + A concise description of what the problem is. + placeholder: | + I have an issue when [...] + validations: + required: true + + - type: textarea + attributes: + label: Describe the solution you'd like + validations: + required: true + + - type: textarea + attributes: + label: Describe alternatives you've considered + + - type: textarea + attributes: + label: Documentation, Adoption, Migration Strategy + description: | + If you can, explain how users will be able to use this and how it might be documented. Maybe a mock-up? diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 000000000..8cc8df6e1 --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,53 @@ +name: Checks +on: + pull_request: + branches: + - master + - develop +jobs: + size: + runs-on: ubuntu-latest + name: size-limit + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: 7 + - name: Install Node.js + uses: actions/setup-node@v2 + with: + node-version: 16 + cache: 'pnpm' + - name: Check size + uses: andresz1/size-limit-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + storybook: + runs-on: ubuntu-latest + name: storybook + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + - name: Install pnpm + uses: pnpm/action-setup@v2.0.1 + with: + version: 7 + - name: Install Node.js + uses: actions/setup-node@v2 + with: + node-version: 16 + cache: 'pnpm' + - name: Install dependencies + run: pnpm install + - name: Check storybook + run: pnpm build:storybook + editorconfig: + runs-on: ubuntu-latest + name: editorconfig + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + - name: Check editorconfig + uses: editorconfig-checker/action-editorconfig-checker@v1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..f219083d2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,45 @@ +name: CI +on: + pull_request: + push: + branches: + - master + - develop +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + stage: + - unit + - storyshots + fail-fast: false + name: ${{ matrix.stage }} tests + steps: + - name: Checkout the repository + uses: actions/checkout@v3 + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: 7 + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 16 + cache: 'pnpm' + - name: Install dependencies + run: pnpm install + - name: Run tests + run: pnpm test:${{ matrix.stage }} + - name: Collect coverage + uses: codecov/codecov-action@v3 + if: "success() && matrix.stage == 'unit'" + with: + files: ./coverage/lcov.info + fail_ci_if_error: true + - name: Collect artifacts + uses: actions/upload-artifact@v3 + if: "failure() && matrix.stage != 'unit'" + with: + name: Image snapshots (${{ matrix.stage }}) + path: test/__image_snapshots__/ diff --git a/.github/workflows/commit.yml b/.github/workflows/commit.yml new file mode 100644 index 000000000..111716938 --- /dev/null +++ b/.github/workflows/commit.yml @@ -0,0 +1,14 @@ +name: Commit +on: + push: +jobs: + commitlint: + runs-on: ubuntu-latest + name: commitlint + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Run commitlint + uses: wagoid/commitlint-github-action@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..b72adabf7 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +name: Release +on: + release: + types: [created] +jobs: + build: + runs-on: ubuntu-latest + name: Publish package + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + - name: Install pnpm + uses: pnpm/action-setup@v2.0.1 + with: + version: 7 + - name: Install Node.js + uses: actions/setup-node@v2 + with: + node-version: 16 + cache: 'pnpm' + registry-url: 'https://registry.npmjs.org' + - name: Install dependencies + run: pnpm install + - name: Publish + run: pnpm publish --no-git-checks + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/update-storyshots.yml b/.github/workflows/update-storyshots.yml new file mode 100644 index 000000000..685fa832a --- /dev/null +++ b/.github/workflows/update-storyshots.yml @@ -0,0 +1,55 @@ +name: Update storyshots +on: workflow_dispatch +jobs: + update-storyshots: + runs-on: ubuntu-latest + name: storyshots + steps: + - name: Checkout the repository + uses: actions/checkout@v3 + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: 7 + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 16 + cache: 'pnpm' + - name: Install dependencies + run: pnpm install + - name: Update snapshots + run: pnpm test:storyshots -- -u + - name: Collect artifacts + uses: actions/upload-artifact@v3 + if: always() + with: + name: Updated storyshots + path: test/__image_snapshots__/ + update-legacy-storyshots: + runs-on: ubuntu-latest + name: legacy storyshots + steps: + - name: Checkout the repository + uses: actions/checkout@v3 + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: 7 + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 16 + cache: 'pnpm' + - name: Install dependencies + run: pnpm install + - name: Update snapshots + run: pnpm test:storyshots -- -u + env: + CHARTIST_COMPAT: true + - name: Collect artifacts + uses: actions/upload-artifact@v3 + if: always() + with: + name: Updated legacy storyshots + path: test/__image_snapshots__/ diff --git a/.gitignore b/.gitignore index fb8f6a1ff..9b242abb8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,14 +1,17 @@ -# modules -node_modules/ -site/bower_components/ +# See https://help.github.com/ignore-files/ for more about ignoring files. -# build -.tmp/ -.public/ -# dist/ +# dependencies +node_modules -# generated -.sass-cache +# builds +package +dist +storybook-static -# debug -npm-debug.log +# misc +.DS_Store + +npm-debug.log* + +# testing +coverage diff --git a/.jshintrc b/.jshintrc deleted file mode 100644 index 643740a38..000000000 --- a/.jshintrc +++ /dev/null @@ -1,30 +0,0 @@ -{ - "node": true, - "browser": true, - "esnext": true, - "bitwise": true, - "camelcase": false, - "curly": true, - "eqeqeq": true, - "immed": true, - "indent": 2, - "latedef": true, - "newcap": false, - "noarg": true, - "quotmark": "single", - "regexp": true, - "undef": true, - "unused": true, - "strict": true, - "validthis": true, - "trailing": true, - "smarttabs": true, - "globals": { - "angular": false, - "jQuery": false, - "$": false, - "SVG": false, - "Snap": false, - "Foundation": false - } -} diff --git a/.nano-staged.json b/.nano-staged.json new file mode 100644 index 000000000..f9993ff47 --- /dev/null +++ b/.nano-staged.json @@ -0,0 +1,3 @@ +{ + "**/*.{js,ts}": ["prettier --write", "eslint"] +} diff --git a/.npmrc b/.npmrc new file mode 100644 index 000000000..319e41e69 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +strict-peer-dependencies=false diff --git a/.nvmrc b/.nvmrc index be628fe25..b009dfb9d 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1,2 +1 @@ -v6.9.0 - +lts/* diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 000000000..c79ed740a --- /dev/null +++ b/.prettierrc @@ -0,0 +1,9 @@ +{ + "singleQuote": true, + "jsxSingleQuote": true, + "semi": true, + "tabWidth": 2, + "bracketSpacing": true, + "arrowParens": "avoid", + "trailingComma": "none" +} diff --git a/.simple-git-hooks.json b/.simple-git-hooks.json new file mode 100644 index 000000000..06e40b963 --- /dev/null +++ b/.simple-git-hooks.json @@ -0,0 +1,5 @@ +{ + "commit-msg": "pnpm commitlint --edit \"$1\"", + "pre-commit": "pnpm nano-staged", + "pre-push": "pnpm test" +} diff --git a/.size-limit.json b/.size-limit.json new file mode 100644 index 000000000..b4c72f386 --- /dev/null +++ b/.size-limit.json @@ -0,0 +1,30 @@ +[ + { + "path": "dist/index.cjs", + "limit": "36.45 kB", + "webpack": false, + "running": false + }, + { + "path": "dist/index.cjs", + "limit": "11.75 kB", + "import": "{ BarChart }" + }, + { + "path": "dist/index.js", + "limit": "36.2 kB", + "webpack": false, + "running": false + }, + { + "path": "dist/index.js", + "limit": "9.2 kB", + "import": "{ BarChart }" + }, + { + "path": "dist/index.css", + "limit": "1.3 kB", + "webpack": false, + "running": false + } +] diff --git a/.storybook/main.js b/.storybook/main.js new file mode 100644 index 000000000..2ad3c60d5 --- /dev/null +++ b/.storybook/main.js @@ -0,0 +1,32 @@ +const path = require('path'); + +const isCompatMode = process.env.CHARTIST_COMPAT === 'true'; + +module.exports = { + stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'], + addons: [ + '@storybook/addon-docs', + '@storybook/addon-controls', + '@storybook/addon-actions', + '@storybook/addon-viewport' + ], + webpackFinal: async config => { + config.module.rules[0].use = [require.resolve('swc-loader')]; + config.module.rules.push({ + test: /\.scss$/, + sideEffects: true, + use: ['style-loader', 'css-loader', 'postcss-loader', 'sass-loader'].map( + require.resolve + ) + }); + + config.resolve.alias['chartist-dev/styles$'] = isCompatMode + ? 'chartist/dist/chartist.css' + : path.resolve(__dirname, '..', 'src', 'styles', 'chartist.scss'); + config.resolve.alias['chartist-dev$'] = isCompatMode + ? path.resolve(__dirname, '..', 'test', 'mock', 'compat.ts') + : path.resolve(__dirname, '..', 'src'); + + return config; + } +}; diff --git a/.storybook/manager.js b/.storybook/manager.js new file mode 100644 index 000000000..79890c478 --- /dev/null +++ b/.storybook/manager.js @@ -0,0 +1,8 @@ +import { addons } from '@storybook/addons'; + +import { theme } from './theme'; + +addons.setConfig({ + theme, + panelPosition: 'right' +}); diff --git a/.storybook/package.json b/.storybook/package.json new file mode 100644 index 000000000..5bbefffba --- /dev/null +++ b/.storybook/package.json @@ -0,0 +1,3 @@ +{ + "type": "commonjs" +} diff --git a/.storybook/preview.js b/.storybook/preview.js new file mode 100644 index 000000000..320ceb465 --- /dev/null +++ b/.storybook/preview.js @@ -0,0 +1,20 @@ +import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport'; +import { configureActions } from '@storybook/addon-actions'; +import faker from 'faker'; + +const SEED_VALUE = 584; + +if (process.env.STORYBOOK_STORYSHOTS) { + // Make faker values reproducible. + faker.seed(SEED_VALUE); +} + +configureActions({ + depth: 5 +}); + +export const parameters = { + viewport: { + viewports: INITIAL_VIEWPORTS + } +}; diff --git a/.storybook/theme.js b/.storybook/theme.js new file mode 100644 index 000000000..f5c687897 --- /dev/null +++ b/.storybook/theme.js @@ -0,0 +1,7 @@ +import { create } from '@storybook/theming'; + +export const theme = create({ + base: 'light', + brandTitle: 'chartist', + brandUrl: 'https://github.com/chartist-js/chartist' +}); diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 405a6c490..000000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: node_js -node_js: - - '5.5.0' -before_script: - - 'npm install -g bower grunt-cli' - - 'bower install' diff --git a/CODINGSTYLE.md b/CODINGSTYLE.md deleted file mode 100644 index a9bda6424..000000000 --- a/CODINGSTYLE.md +++ /dev/null @@ -1,2500 +0,0 @@ -# Web Styleguide - Style guide to harmonize HTML, Javascript and CSS / Sass coding style - -This document defines formatting and style rules for HTML, Javascript and CSS / SCSS. It aims at improving -collaboration, code quality, and enabling supporting infrastructure. It applies to raw, working files that use HTML, -Javascript and CSS, including Sass (SCSS) files. - -If a group of developers start to use a style guide, errors become more obvious. If a certain parts of code are not -complying with the style guide it could be a style error but it could also be a bug. This makes it easier to review -code and to ensure errors are spotted more easily. - -Tools are free to obfuscate, minify, and compile as long as the general code quality is maintained -and the raw files developers need to work with comply with the style guide. - -You can also contribute to this style guide! - -*** - -## General style rules - -This section covers some general style rules that can be applied for HTML, Javascript and CSS / SCSS. - -*** - -### File / Resource names - -All file names in a web project should follow the same naming conventions. For readability purpose the minus (-) sign -is ideal for separating parts in a file name. Also it's a common separator in canonical URL and URL slugs -(i.e. `//example.com/blog/my-blog-entry` or `//s.example.com/images/big-black-background.jpg`). Therefore it's quite obvious -that the minus sign should be used to separate parts in a resource name. - -Always start a file name with a letter and avoid numbers (except versions in the post-fix as outlined in the post-fix -note) where possible. There are special allowed cases where you need to start a filename with a special sign in order to -flag it for a special purpose (i.e. underscore for compass to ignore a certain file for direct css compilation). - -All letters in a resource name should be lower case. This is a best practice as some operating systems support case -sensitive file names and we should not mix the cases to minimize confusion and possible sources for human errors. - -There are cases where you will need to include some post- or pre-fixes or extensions (i.e. .min.js, .min.css) or -reeving which includes some pre-fixes (i.e. file hashes like 3fa89b.main.min.css). In those cases we recommend to use -dot's to separate the clear purpose of this additional meta-data in a filename. - -**Not recommended** -``` -MyScript.js -myCamelCaseName.css -i_love_underscores.html -1001-scripts.js -my-file-min.css -``` - -**Recommended** -``` -my-script.js -my-camel-case-name.css -i-love-underscores.html -thousand-and-one-scripts.js -my-file.min.css -``` - -*** - -### Protocol - -Omit the protocol from embedded resources. - -Omit the protocol portion (`http:`, `https:`) from URLs pointing to images and other media files, style sheets, and -scripts unless the respective files are not available over both protocols. - -Omitting the protocolā€”which makes the URL relativeā€”prevents mixed content issues and results in minor file size savings. - -**Not recommended** -``` - -``` - -**Recommended** -``` - -``` - -**Not recommended** -``` -.example { - background: url(http://static.example.com/images/bg.jpg); -} -``` - -**Recommended** -``` -.example { - background: url(//static.example.com/images/bg.jpg); -} -``` - -*** - -### Text indentation - -Indent by 2 spaces at a time. - -``` - -``` - -``` -@media screen and (min-width: 1100px) { - body { - font-size: 100%; - } -} -``` - -``` -(function(){ - var x = 10; - - function y(a, b) { - return { - result: (a + b) * x - } - - } -}()); -``` - -*** - -### Comments - -Comments are the only way others and **YOURSELF** know why a particular code was written and why it was written in the -way it was. It's crucial that you comment your code parts and specially code that is not trivial. - -Self explaining code is a **MYTH**. There is no such thing as self explaining code. Also there is no such thing as too -many comments. There is only too little comments. - -When you comment code don't comment what's coded, comment why it was coded this way and comment the thinking behind. -Also include links in your comments to open issues, specifications etc. - -**Not recommended** -``` -var offset = 0; - -if(includeLabels) { - // Add offset of 20 - offset = 20; -} -``` - -**Recommended** -``` -var offset = 0; - -if(includeLabels) { - // If the labels are included we need to have a minimum offset of 20 pixels - // We need to set it explicitly because of the following bug: http://somebrowservendor.com/issue-tracker/ISSUE-1 - offset = 20; -} -``` - -Consider using annotations in your comments that help to structure commends and add meta information. For Javascript -use [JSDoc](http://usejsdoc.org/) or [YUIDoc](http://yui.github.io/yuidoc/). You can also use tools to generate -documentation from these comments. This is also a great way to encourage developers to write comments. Once comments -will be used to generate a living documentation they often start to spend more time for detailed comments. - -*** - -### Code linting - -For programming languages with less strictness it's important to enforce style rules and formatting guidelines. -Writing and following a style guide is a good practice but having an automated process that is enforcing it is even -better. Trust is good, control is better. - -For Javascript we recommend to use JSLint / JSHint. In the repository for this styleguide you can also find a -[dotfile for jshint (.jshintrc)](.jshintrc). You can use this file with JSHint to enforce style -checking in your Javascript projects. - -*** - -## HTML style rules - -*** - -### Document type - -HTML5 (HTML syntax) is preferred for all HTML documents: ``. - -(Itā€™s recommended to use HTML, as text/html. Do not use XHTML. XHTML, as application/xhtml+xml, -lacks both browser and infrastructure support and offers less room for optimization than HTML.) - -Although fine with HTML, do not close void elements, i.e. write `
`, not `
`. - -*** - -### HTML validity - -Use valid HTML code unless that is not possible due to otherwise unattainable performance goals regarding file size. - -Use tools such as the W3C HTML validator to test. - -Using valid HTML is a measurable baseline quality attribute that contributes to learning about technical requirements -and constraints, and that ensures proper HTML usage. - -**Not recommended** -``` -Test -
This is only a test. -``` - -**Recommended** -``` - - -Test -
This is only a test.
-``` - -*** - -### Optional Tags - -The HTML5 specification defines what tags can be omitted in the HTML markup. For readability purpose the raw source -file should **NOT** omit optional tags. Omitting optional tags can lead to readability and scannability issues, and -therefore should not be used in the raw source files. - -Omitting tags can lead to significant page size reductions specially on large scale sites. For this purpose you should -consider an HTML minification post processing of your raw files for distribution purpose. - -*** - -### Script loading - -For performance reasons it's important to load scripts asynchronously. A script loaded in the `` like this -`` will block the whole DOM parsing until the script has fully loaded and executed. This -will delay the page to be displayed until the script has fully loaded. With larger scripts this can have a big impact -on user experience. - -Asynchronous script loading helps to minimize this performance impact. If browser support is only concerned about IE10+ -the HTML5 async attribute on scripts should be used. This will prevent DOM parser blocking and you can even place your -script element into the `` element. - -If you need to support older browsers it's common practice to use script loaders that will make use of dynamic script -injection. You should consider [yepnope](http://yepnopejs.com/) or [labjs](http://labjs.com/). The problem with injected -scripts though is that [they will not start loading until CSS Object Model is ready](https://www.igvita.com/2014/05/20/script-injected-async-scripts-considered-harmful/) -(shortly after the CSS from the head is loaded). This can also load to delay of your behavior added by these javascript -which can again affect the user experience. - -As a result of the above described behaviors you should always consider the following best practice if you need to -support old browsers (IE9-). - -Add your script element just before the body close tag and add them with a async attribute. This will not load the -scripts asynchronously on old browsers but they will only block the DOM parser just before the body close which is not -affecting the user experience too much. On modern browsers this will delay the script load until the DOM parser -discovers the script element at the end of the body, but they will then asynchronously load the script and don't wait -for CSSOM to complete before loading (execution will still happen after CSSOM). - -**Recommended for modern and old browsers** -``` - - - - - - - - - - -``` - -**Recommended for only modern browsers** -``` - - - - - - - - - -``` - -*** - -### Semantics - -Use elements (sometimes incorrectly called ā€œtagsā€) for what they have been created for. For example, use heading -elements for headings, p elements for paragraphs, a elements for anchors, etc. - -Using HTML according to its purpose is important for accessibility, reuse, and code efficiency reasons. - -The following bad / good example should outline some of the major important semantic HTML cases: - -**Not recommended** -``` -My page title -
- - - -
- -
-
-
All news articles
-
-

Bad article

-
Introduction sub-title
-
This is a very bad example for HTML semantics
-
I think I'm more on the side and should not receive the main credits
-
- This article was created by David
2014-01-01 00:00
-
-
- - -
-
- - -``` - -**Recommended** -``` - -
- -

My page title

-
- - - - - -
- -
- -
- -

All news articles

-
- - -
- -
- -
Good article
- - Introduction sub-title -
- - -
-

This is a good example for HTML semantics

-
- - - -
- -

This article was created by David

-
-
- - -
-

Related sections: Events, Public holidays

-
-
-
- - - - -``` - -*** - -### Multimedia fallback - -For multimedia, such as images, videos, animated objects via canvas, make sure to offer alternative access. For images -that means use of meaningful alternative text (alt) and for video and audio transcripts and captions, if available. - -Providing alternative contents is important for accessibility reasons: A blind user has few cues to tell what an -image is about without @alt, and other users may have no way of understanding what video or audio contents are about -either. - -(For images whose alt attributes would introduce redundancy, and for images whose purpose is purely decorative which -you cannot immediately use CSS for, use no alternative text, as in alt="".) - -**Not recommended** -``` - -``` - -**Recommended** -``` -Luke skywalker riding an alien horse -``` - -When writing alt tags always try to describe the image as if you'd need to describe what's on the image to somebody -over the phone or who can't see the real picture. - -**Not recommended** -``` -Header image -``` - -**Recommended** -``` -A huge spaceship that is approaching the earth -``` - -*** - -### Separation of Concerns - -It's very important that you understand the different concerns in web and that you know how to and why to separate them. -In the web we have information (html markup), appearance (css) and behavior (Javascript) and we need to separate them as -far as possible in order to keep a maintainable and clean code. - -Strictly keep structure (markup), presentation (styling), and behavior (scripting) apart, and try to keep the -interaction between the three to an absolute minimum. - -That is, make sure documents and templates contain only HTML and HTML that is solely serving structural purposes. -Move everything presentational into style sheets, and everything behavioral into scripts. - -In addition, keep the contact area as small as possible by linking as few style sheets and scripts as possible from -documents and templates. - -Clean separation of concerns implies the following things: - -1. Don't use more than one or two stylesheets (i.e. main.css, vendor.css) -1. Don't use more than one or two scripts (use concatination) -1. Don't use inline styles (``) -1. Don't use element style attributes (`
`) -1. Don't use inline scripts (``) -1. Don't use presentational elements (i.e. ``, ``, `
`, ``, `` -1. Don't use presentational class names (i.e. red, left, center) - -**Not recommended** -``` - - - - - - - - - -

- I'm a subtitle and I'm bold! -
Dare you center me!
- -
I'm important!
- - -``` - -**Recommended** -``` - - - - - - - - -

- -
I'm a subtitle and I'm bold!
- - Dare you center me! - -
I'm important!
- - - - - -``` - -*** - -### HTML is content only - -Don't pollute your HTML markup with non-content information. There is a tendency to solve design problems at -the information's cost. The HTML markup should only contain content relevant information and design problems should -never be solved within the markup. - -The only purpose of HTML markup is to represent content information. - -- Don't introduce a specific HTML structure just to solve some visual design problems -- Don't use `` elements for visual design elements - -The following examples show two common things that are done wrong when it comes to solving design problems. - -**Not recommended** -``` - - - - See the square next to me? - - -``` -``` -.text-box > .square { - display: inline-block; - width: 1rem; - height: 1rem; - background-color: red; -} -``` - - -**Recommended** -``` - - - See the square next to me? - - -``` -``` -// We use a :before pseudo element to solve the design problem of placing a colored square in front of the text content -.text-box:before { - content: ""; - display: inline-block; - width: 1rem; - height: 1rem; - background-color: red; -} -``` - -The only reason for images and svg graphics to be included in the markup is because they represent content relevant -information. - -**Not recommended** -``` - - - Square - See the square next to me? - -``` - -**Recommended** -``` - - - See the square next to me? - - -``` -``` -// We use a :before pseudo element with a background image to solve the problem -.text-box:before { - content: ""; - display: inline-block; - width: 1rem; - height: 1rem; - background: url(square.svg) no-repeat; - background-size: 100%; -} -``` - -*** - -### Type attributes - -Omit type attributes for style sheets and scripts. Do not use type attributes for style sheets (unless not using CSS) -and scripts (unless not using JavaScript). Specifying type attributes in these contexts is not necessary as -HTML5 implies text/css and text/javascript as defaults. This can be safely done even for older browsers. - -**Not recommended** -``` - - -``` - -**Recommended** -``` - - -``` - -*** - -### General Accessibility - -If you use proper HTML5 semantics a lot of accessibility issues are already solved. ARIA is using some default roles -for most of the semantic elements which, if used correctly, solves a lot of the issues already. If you use `nav`, -`aside`, `main`, `footer` etc. ARIA will use some related default roles. For more details you can reference the -[ARIA specification](http://rawgit.com/w3c/aria-in-html/master/index.html#recommendations-table) recommendation table -which contains the defaults for the HTML semantic elements. - -Additional roles can be used to give more accessibility context (i.e. `role="tab"`). - -*** - -### Tab Index for Accessibility - -Check your document for tab order and assign tabindex values in order to change the tab flow based on priority. You -can disable the tab index of an element by setting `tabindex="-1"` on any element. - -If you add functionality to a element that is not focusable by default, you should always add a `tabindex` in order to -make the element focusable. This will also enable the CSS pseudo selector `:focus`. Choose an appropriate index value -for `tabindex` or use `tabindex="0"` to group elements into one tab order level and enforce ordering in natural reading -order. - -*** - -### Microdata for SEO and Accessibility - -If the SEO relevance and / or accessibility environment is given then you should consider to use microdata where -possible. Microdata is a way to annotate your data in your markup that follows some specific semantics. - -Google, Microsoft and Yahoo! have more or less agreed on how to use this additional data and using it correctly has -great influence on your searches. - -You can visit [schema.org](http://schema.org/) for more details. - -Simple example of a movie on a web page: - -**Without microdata** -``` -
-

Avatar

- Director: James Cameron (born August 16, 1954) - Science fiction - Trailer -
-``` - -**With microdata** -``` -
-

Avatar

-
- Director: James Cameron (born August 16, 1954) -
- Science fiction - Trailer -
-``` - -*** - -### IDs for anchors - -It's generally a good practice to give all headings on a page a ID. With these ID's on headings you can use the -browsers default behavior and include the ID names as hash tags in the URL. By default this causes the browser to scroll -to the position this element. - -If you'd enter the URL `http://your-site.com/about#best-practices` in your browser then the browser would scroll down -so that the H3 below would be scrolled into the view. - -``` -

Best practices

-``` - -*** - -### General formatting - -Use a new line for every block, list, or table element, and indent every such child element. -Independent of the styling of an element (as CSS allows elements to assume a different role per display property), -put every block, list, or table element on a new line. - -Also, indent them if they are child elements of a block, list, or table element. - -(If you run into issues around whitespace between list items itā€™s acceptable to put all li elements in one line. -A linter is encouraged to throw a warning instead of an error.) - -**Recommended** -``` -
-

Space, the final frontier.

-
- -
    -
  • Moe
  • -
  • Larry
  • -
  • Curly
  • -
- - - - - - - - - - - - - - -
IncomeTaxes
$ 5.00$ 4.50
-``` - -*** - -### HTML quotation marks - -When quoting attributes values, use double quotation marks. Use double ("") rather than single quotation marks ('') -around attribute values. - -**Not recommended** -``` -
-``` - -**Recommended** -``` -
-``` - -*** - -## Javascript style guide - -*** - -### Global namespace pollution and IIFE - -Always wrap your code into a IIFE (Immediately-Invoked Function Expression) in order to create an isolated closure -scope. This prevents you from polluting the global namespace. - -IIFE can also secure your code from modifications that happened in the global namespace (i.e. 3rd party libraries, -window reference, overridden undefined keyword etc.) - -**Not recommended** -``` -var x = 10, - y = 100; - -// Declaring variables in the global scope is resulting in global scope pollution. All variables declared like this -// will be stored in the window object. This is very unclean and needs to be avoided. -console.log(window.x + ' ' + window.y); -``` - -**Recommended** -``` -// We declare a IIFE and pass parameters into the function that we will use from the global space -(function(log, w, undefined){ - 'use strict'; - - var x = 10, - y = 100; - - // Will output 'true true' - log((w.x === undefined) + ' ' + (w.y === undefined)); - -}(window.console.log, window)); -``` - -*** - -### IIFE (Immediately-Executed Function Expression) - -Use IIFE whenever you want to create a new closure scope. This can be used to create privacy and to keep memory clean. - -Every javascript file should start with an IIFE. - -The IIFE should be written so you're keeping the execution brackets inside of the surrounding brackets. Although the -writing the executing brackets outside of the surrounding brackets is valid the second example should be used as this -sets clear boundaries for the IIFE as the surrounding brackets isolate the whole IIFE. - -**Not recommended** -``` -(function(){})(); -``` - -**Recommended** -``` -(function(){}()); -``` - -The following pattern should be used to format your IIFE: - -``` -(function(){ - 'use strict'; - - // Code goes here - -}()); -``` - -If you want to use global variables or variables form an outer IIFE you should pass them as parameters to your IIFE: -``` -(function($, w, d){ - 'use strict'; - - $(function() { - w.alert(d.querySelectorAll('div').length); - }); -}(jQuery, window, document)); -``` - -*** - -### Strict mode - -ECMAScript 5 strict mode can be enabled globally in your script or on function level. It enables more strict error -handling as well different javascript semantics. Strict mode also enforces a syntax that allows engines to optimize -the javascript better and strict more scripts can run faster than normal scripts. - -Strict mode also blocks the usage of reserved words that possibly get introduced in the future. - -You should always enforce strict mode in your scripts. Do so by applying it in your isolation IIFE. Don't apply it to -your whole script by include it as first statement in your script. This could possibly cause issues with 3rd party -libraries. - -**Not recommended** -``` -// Script starts here -'use strict'; - -(function(){ - - // Your code starts here - -}()); -``` - -**Recommended** -``` -(function(){ - 'use strict'; - - // Your code starts here - -}()); -``` - -*** - -### Variable declarations - -Always use `var` to declare your variables. When you fail to specify var, the variable gets placed in the global -context, potentially clobbering existing values. Also, if there's no declaration, it's hard to tell in what scope a -variable lives (e.g., it could be in the Document or Window just as easily as in the local scope). -So always declare with var. - -Using strict mode can help to identify issues where you might mistyped a variable name resulting in a ReferenceError. - -**Not recommended** -``` -x = 10; -y = 100; -``` - -**Recommended** -``` -var x = 10, - y = 100; -``` - -*** - -### Understand Javascript scope and hoisting - -In Javascript variable and function declarations will be hoisted before execution. Javascript only knows function scope -and there is no block scope as you know it from other programming languages. This means that if you declare a variable -inside a if statement or for loop this variable is declared for the whole function scope and not only locally in the -block statement. - -To illustrate this check the following example that will show how a javascript interpreter is hoisting the declarations -in a function scope: - -**Raw function** -``` -(function(log){ - 'use strict'; - - var a = 10; - - for(var i = 0; i < a; i++) { - var b = i * i; - log(b); - } - - if(a === 10) { - var f = function() { - log(a); - }; - f(); - } - - function x() { - log('Mr. X!'); - } - x(); - -}(window.console.log)); -``` - -**Hoisted by Javscript engine** -``` -(function(log){ - 'use strict'; - // All variables used in the closure will be hoisted to the top of the function - var a, - i, - b, - f; - // All functions in the closure will be hoisted to the top - function x() { - log('Mr. X!'); - } - - a = 10; - - for(i = 0; i < a; i++) { - b = i * i; - log(b); - } - - if(a === 10) { - // Function assignments will only result in hoisted variables but the function body will not be hoisted - // Only by using a real function declaration the whole function will be hoisted with its body - f = function() { - log(a); - }; - f(); - } - - x(); - -}(window.console.log)); -``` - -Considering now the hoisting above you can now see that you could also run the following code without any exceptions: - -**Valid code** -``` -(function(log){ - 'use strict'; - - var a = 10; - - i = 5; - - x(); - - for(var i; i < a; i++) { - log(b); - var b = i * i; - } - - if(a === 10) { - f = function() { - log(a); - }; - f(); - - var f; - } - - function x() { - log('Mr. X!'); - } - -}(window.console.log)); -``` - -As you can see this looks very confusing and misunderstanding hoisting can lead to unexpected results. To minimize the -risk of errors and bugs that resulted from misunderstanding hoisting your should follow the style rule of hoisted -declarations in the next section. - -*** - -### Use hoisted declarations - -To minimize risk of misunderstanding and misinterpreting results from hoisted variable and function declarations (see -previous section) you should always try to hoist your variable and function declarations manually. This means that -you should declare all your variables that you're using in a function as a fist statement in the function. - -Use only one `var` keyword and comma separate multiple declarations. - -**Not recommended** -``` -(function(log){ - 'use strict'; - - var a = 10; - var b = 10; - - for(var i = 0; i < 10; i++) { - var c = a * b * i; - } - - function f() { - - } - - var d = 100; - var x = function() { - return d * d; - }; - log(x()); - -}(window.console.log)); -``` - -**Recommended** -``` -(function(log){ - 'use strict'; - - var a = 10, - b = 10, - i, - c, - d, - x; - - function f() { - - } - - for(i = 0; i < 10; i++) { - c = a * b * i; - } - - - - d = 100; - x = function() { - return d * d; - }; - log(x()); - -}(window.console.log)); -``` - -Being pragmatic you should directly initialize your variables during hoisted declaration. - -**Not recommended** -``` -var a, - b, - c; - -a = 10; -b = 10; -c = 100; -``` - -**Recommended** -``` -var a = 10, - b = 10, - c = 100; -``` - -*** - -### Always use strict equal - -Always use `===` explicit comparison operators and avoid the hassle you can go through by debugging issues resulted -from the very much overcomplicated javascript type coercion. - -If you're using `===` operators both operands need to be from the same type in order to be valid and there will no -type coercion be performed. - -If you'd like to get more information on type coercion you should read -[this article by Dmitry Soshnikov](http://dmitrysoshnikov.com/notes/note-2-ecmascript-equality-operators/). - -By using only `==` you're telling javascript to use type coercion where needed which can be very complicated to trace -down. A few examples can be seen below that should give you a indication how strange type coercion can feel: - -``` -(function(log){ - 'use strict'; - - log('0' == 0); // true - log('' == false); // true - log('1' == true); // true - log(null == undefined); // true - - var x = { - valueOf: function() { - return 'X'; - } - }; - - log(x == 'X'); - -}(window.console.log)); -``` - -*** - -### Use truthy / falsy checks wisely - -By only putting one variable or expression into a if statement you're creating a truthy / falsy check. The expression -`if(a == true)` is not the same as `if(a)`. The later expression is creating a special check which is called truthy / -falsy check. This check performs some special operations in order to evaluate to true or false. The following -expressions are falsy in javascript `false`, `0`, `undefined`, `null`, `NaN`, `''` (empty string). - -Truthy / falsy checks are very helpful as they allow you to quickly react on a group of conditions that you'd like to -take care of but you need to be sure about what you actually want to do. - -The following example shows how truthy / falsy checks work: - -``` -(function(log){ - 'use strict'; - - function logTruthyFalsy(expr) { - if(expr) { - log('truthy'); - } else { - log('falsy'); - } - } - - logTruthyFalsy(true); // truthy - logTruthyFalsy(1); // truthy - logTruthyFalsy({}); // truthy - logTruthyFalsy([]); // truthy - logTruthyFalsy('0'); // truthy - - logTruthyFalsy(false); // falsy - logTruthyFalsy(0); // falsy - logTruthyFalsy(undefined); // falsy - logTruthyFalsy(null); // falsy - logTruthyFalsy(NaN); // falsy - logTruthyFalsy(''); // falsy - -}(window.console.log)); -``` - -*** - -### Logical operators for variable assignments - -The logical operators `||` and `&&` can also be used to return non-boolean values. If used with non booleans the -operands will evaluate each expression from left to right and performs a falsy check. Depending on the operation, one -of the expressions will be returned. This can be very helpful for variable assignments and should be considered in -order to simplify your code. - -**Not recommended** -``` -if(!x) { - if(!y) { - x = 1; - } else { - x = y; - } -} -``` - -**Recommended** -``` -x = x || y || 1; -``` - -This shorthand is often used to validated function parameters. The following example illustrates one usage example: - -``` -(function(log){ - 'use strict'; - - function multiply(a, b) { - a = a || 1; - b = b || 1; - - log('Result ' + a * b); - } - - multiply(); // Result 1 - multiply(10); // Result 10 - multiply(3, NaN); // Result 3 - multiply(9, 5); // Result 45 - -}(window.console.log)); -``` - -*** - -### Semicolons - -Always use semicolons. Relying on implicit insertion can cause subtle, hard to debug problems. Don't do it. -You're better than that. There are a couple places where missing semicolons are particularly dangerous: - -``` -// 1. -MyClass.prototype.myMethod = function() { - return 42; -} // No semicolon here. - -(function() { - // Some initialization code wrapped in a function to create a scope for locals. -})(); - - -var x = { - 'i': 1, - 'j': 2 -} // No semicolon here. - -// 2. Trying to do one thing on Internet Explorer and another on Firefox. -// I know you'd never write code like this, but throw me a bone. -[ffVersion, ieVersion][isIE](); - - -var THINGS_TO_EAT = [apples, oysters, sprayOnCheese] // No semicolon here. - -// 3. conditional execution a la bash --1 == resultOfOperation() || die(); -``` - -**So what happens?** - -1. JavaScript error - first the function returning 42 is called with the second function as a parameter, then -the number 42 is "called" resulting in an error. -1. You will most likely get a 'no such property in undefined' error at runtime as it tries to -call `x[ffVersion, ieVersion][isIE]()`. -1. `die` is always called since the array minus 1 is `NaN` which is never equal to anything (not even if -`resultOfOperation()` returns `NaN`) and `THINGS_TO_EAT` gets assigned the result of `die()`. - -**Why?** - -JavaScript requires statements to end with a semicolon, except when it thinks it can safely infer their existence. -In each of these examples, a function declaration or object or array literal is used inside a statement. The closing -brackets are not enough to signal the end of the statement. Javascript never ends a statement if the next token is an -infix or bracket operator. - -This has really surprised people, so make sure your assignments end with semicolons. - -**Clarification: Semicolons and functions** - -Semicolons should be included at the end of function expressions, but not at the end of function declarations. -The distinction is best illustrated with an example: - -``` -var foo = function() { - return true; -}; // semicolon here. - -function foo() { - return true; -} // no semicolon here. -``` - -*** - -### Nested functions - -Nested functions can be very useful, for example in the creation of continuations and for the task of hiding helper -functions. Feel free to use them. - -*** - -### Function declaration within blocks - -Do not declare functions in blocks. This is not valid in ECMAScript 5 strict mode. Functions should be declared on -top level. Don't hesitate to use variables initialized with function expressions inside of blocks though: - -**Not recommended** -``` -if (x) { - function foo() {} -} -``` - -**Recommended** -``` -if (x) { - var foo = function() {}; -} -``` - -*** - -### Exceptions - -You basically can't avoid exceptions if you're doing something non-trivial (using an application development framework, -etc.). - -Without custom exceptions, returning error information from a function that also returns a value can be tricky, not to -mention inelegant. Bad solutions include passing in a reference type to hold error information or always returning -Objects with a potential error member. These basically amount to a primitive exception handling hack. -Feel free to use custom exceptions when appropriate. - -In complex environments you should consider throwing objects rather than just strings (default throws). - -``` -if(name === undefined) { - throw { - name: 'System Error', - message: 'A name should always be specified!' - } -} -``` - -*** - -### Standard features - -Always preferred over non-standards features. For maximum portability and compatibility, always prefer standards -features over non-standards features (e.g., `string.charAt(3)` over `string[3]` and element access with DOM functions -instead of using an application-specific shorthand). - -*** - -### Simple prototypical inheritance - -If you need inheritance of your objects in Javascript follow a simple pattern to create inheritance. If you know that -you'll end up with complex object inheritance consider a inheritance library like -[Proto.js by Axel Rauschmayer](https://github.com/rauschma/proto-js). - -For simple cases use like the bellow. - -``` -(function(log){ - 'use strict'; - - // Constructor function - function Apple(name) { - this.name = name; - } - // Defining a method of apple - Apple.prototype.eat = function() { - log('Eating ' + this.name); - }; - - // Constructor function - function GrannySmithApple() { - // Invoking parent constructor - Apple.prototype.constructor.call(this, 'Granny Smith'); - } - // Set parent prototype while creating a copy with Object.create - GrannySmithApple.prototype = Object.create(Apple.prototype); - // Set constructor to the sub type, otherwise points to Apple - GrannySmithApple.prototype.constructor = GrannySmithApple; - - // Calling a super method - GrannySmithApple.prototype.eat = function() { - // Be sure to apply it onto our current object with call(this) - Apple.prototype.eat.call(this); - - log('Poor Grany Smith'); - }; - - // Instantiation - var apple = new Apple('Test Apple'); - var grannyApple = new GrannySmithApple(); - - log(apple.name); // Test Apple - log(grannyApple.name); // Granny Smith - - // Instance checks - log(apple instanceof Apple); // true - log(apple instanceof GrannySmithApple); // false - - log(grannyApple instanceof Apple); // true - log(grannyApple instanceof GrannySmithApple); // true - - // Calling method that calls super method - grannyApple.eat(); // Eating Granny Smith\nPoor Grany Smith - -}(window.console.log)); -``` - -*** - -### Use Closures - -The ability to create closures is perhaps the most useful and often overlooked feature of JS. -Here is [a good description of how closures work](http://jibbering.com/faq/faq_notes/closures.html). - -*** - -### Don't create functions in loops - -It's generally a potential source for bugs if you write functions that create a closure inside of simple loops. The -following example illustrates a common pitfall. - -**Not recommended** -``` -(function(log, w){ - 'use strict'; - - // numbers and i is defined in the current function closure - var numbers = [1, 2, 3], - i; - - for(i = 0; i < numbers.length; i++) { - w.setTimeout(function() { - // At the moment when this gets executed the i variable, coming from the outer function scope - // is set to 3 and the current program is alerting the message 3 times - // 'Index 3 with number undefined - // If you understand closures in javascript you know how to deal with those cases - // It's best to just avoid functions / new closures in loops as this prevents those issues - - w.alert('Index ' + i + ' with number ' + numbers[i]); - }, 0); - } - -}(window.console.log, window)); -``` - -The following variation of the above example solves our problem / bug but still violates our policy to not create -functions / closures inside of loops. - -**Not recommended** -``` -(function(log, w){ - 'use strict'; - - // numbers and i is defined in the current function closure - var numbers = [1, 2, 3], - i; - - for(i = 0; i < numbers.length; i++) { - // Creating a new closure scope with an IIFE solves the problem - // The delayed function will use index and number which are - // in their own closure scope (one closure per loop iteration). - // --- - // Still this is not recommended as we violate our rule to not - // create functions within loops and we are creating two! - - (function(index, number){ - w.setTimeout(function() { - // Will output as expected 0 > 1, 1 > 2, 2 > 3 - w.alert('Index ' + index + ' with number ' + number); - }, 0); - }(i, numbers[i])); - } - -}(window.console.log, window)); -``` - -The following variation solves our problem / bug and we also comply with our style guide. However, this seems to be -heavily overcomplicated and we should look for a better / easier way. - -**Partially recommended** -``` -(function(log, w){ - 'use strict'; - - // numbers and i is defined in the current function closure - var numbers = [1, 2, 3], - i; - - // Create a function outside of the loop that will accept arguments to create a - // function closure scope. This function will return a function that executes in this - // closure parent scope. - function alertIndexWithNumber(index, number) { - return function() { - w.alert('Index ' + index + ' with number ' + number); - }; - } - - // First parameter is a function call that returns a function. - // --- - // This solves our problem and we don't create a function inside our loop - for(i = 0; i < numbers.length; i++) { - w.setTimeout(alertIndexWithNumber(i, numbers[i]), 0); - } - -}(window.console.log, window)); -``` - -By using a functional approach for our loop we solve the problem immediately as we create a new closure with every loop. -Functional style is recommended and will also lead to more natural and expected results. - -**Recommended** -``` -(function(log, w){ - 'use strict'; - - // numbers and i is defined in the current function closure - var numbers = [1, 2, 3], - i; - - numbers.forEach(function(number, index) { - w.setTimeout(function() { - w.alert('Index ' + index + ' with number ' + number); - }, 0); - }); - -}(window.console.log, window)); -``` - -*** - -### The (evil) eval function - -`eval()` makes for confusing semantics and is dangerous to use if the string being eval()'d contains user input. -There's usually a better, clearer, and safer way to write your code, so its use is generally not permitted. - -*** - -### The this keyword - -Use the `this` keyword only in object constructors, methods, and in setting up closures. The semantics of this can be -tricky. At times it refers to the global object (in most places), the scope of the caller (in eval), a node in the DOM -tree (when attached using an event handler HTML attribute), a newly created object (in a constructor), or some other -object (if function was call()ed or apply()ed). - -Because this is so easy to get wrong, limit its use to those places where it is required: - -- in constructors -- in methods of objects (including in the creation of closures) - -*** - -### Functional is preferred - -Using functional style programming you can simplify your code and reduce maintenance cost by gaining easy re-usability, -proper isolation and less dependencies. - -The following example compares two solutions for the same problem of summing up all number elements in an array. The -first example is a classical procedural approach while the second one makes use of functional style programming and the -ECMA Script 5.1 array functions. - -Exception: In situations where performance is considered to be more important than maintainability then you might -consider the most performant solution over the most maintainable (i.e. using simple for loop over forEach) - -**Not recommended** -``` -(function(log){ - 'use strict'; - - var arr = [10, 3, 7, 9, 100, 20], - sum = 0, - i; - - - for(i = 0; i < arr.length; i++) { - sum += arr[i]; - } - - log('The sum of array ' + arr + ' is: ' + sum) - -}(window.console.log)); -``` - -**Recommended** -``` -(function(log){ - 'use strict'; - - var arr = [10, 3, 7, 9, 100, 20]; - - var sum = arr.reduce(function(prevValue, currentValue) { - return prevValue + currentValue; - }, 0); - - log('The sum of array ' + arr + ' is: ' + sum); - -}(window.console.log)); -``` - -An other example would be to filter an array for certain criteria so that we can create a new array that only contains -those elements that match the criteria. - -**Not recommended** -``` -(function(log){ - 'use strict'; - - var numbers = [11, 3, 7, 9, 100, 20, 14, 10], - numbersGreaterTen = [], - i; - - - for(i = 0; i < numbers.length; i++) { - if(numbers[i] > 10) { - numbersGreaterTen.push(numbers[i]); - } - } - - log('From the list of numbers ' + numbers + ' only ' + numbersGreaterTen + ' are greater than ten'); - -}(window.console.log)); -``` - -**Recommended** -``` -(function(log){ - 'use strict'; - - var numbers = [11, 3, 7, 9, 100, 20, 14, 10]; - - var numbersGreaterTen = numbers.filter(function(element) { - return element > 10; - }); - - log('From the list of numbers ' + numbers + ' only ' + numbersGreaterTen + ' are greater than ten'); - -}(window.console.log)); -``` - -*** - -### Use ECMA Script 5 - -Use the syntactical sugar and functional style that was added with ECMA Script 5. It's simplifying your programming -style and makes your code more flexible and re-usable. - -*** - -### Array and object property iteration - -The ECMA5 way to iterate over an array is preferred. Use Array.forEach or Array.every if you would like to cancel the -iteration at a certain condition. - -``` -(function(log){ - 'use strict'; - - // Iterate over an array and break at a certain condition - [1, 2, 3, 4, 5].every(function(element, index, arr) { - log(element + ' at index ' + index + ' in array ' + arr); - - if(index !== 5) { - return true; - } - }); - - // Defining a simple javascript object - var obj = { - a: 'A', - b: 'B', - 'c-d-e': 'CDE' - }; - - // Iterating over the object keys - Object.keys(obj).forEach(function(element, index, arr) { - log('Key ' + element + ' has value ' + obj[element]); - }); - -}(window.console.log)); -``` - -*** - -### Don't use switch - -switch is a very error prone control statement in every programming language. Use if else if instead. - -*** - -### Array and Object literals - -Use Array and Object literals instead of Array and Object constructors. Array constructors are error-prone due to their -arguments. - -**Not recommended** -``` -// Length is 3. -var a1 = new Array(x1, x2, x3); - -// Length is 2. -var a2 = new Array(x1, x2); - -// If x1 is a number and it is a natural number the length will be x1. -// If x1 is a number but not a natural number this will throw an exception. -// Otherwise the array will have one element with x1 as its value. -var a3 = new Array(x1); - -// Length is 0. -var a4 = new Array(); -``` - -Because of this, if someone changes the code to pass 1 argument instead of 2 arguments, the array might not have the -expected length. To avoid these kinds of weird cases, always use the more readable array literal. - -**Recommended** -``` -var a = [x1, x2, x3]; -var a2 = [x1, x2]; -var a3 = [x1]; -var a4 = []; -``` - -Object constructors don't have the same problems, but for readability and consistency object literals should be used. - -**Not recommended** -``` -var o = new Object(); - -var o2 = new Object(); -o2.a = 0; -o2.b = 1; -o2.c = 2; -o2['strange key'] = 3; -``` - -Should be written as: - -**Recommended** -``` -var o = {}; - -var o2 = { - a: 0, - b: 1, - c: 2, - 'strange key': 3 -}; -``` - -*** - -### Modifying prototypes of builtin objects - -Modifying builtins like `Object.prototype` and `Array.prototype` are strictly forbidden. Modifying other builtins like -`Function.prototype` is less dangerous but still leads to hard to debug issues in production and should be avoided. - -*** - -### Custom toString() methods - -You can control how your objects string-ify themselves by defining a custom `toString()` method. This is fine, but you -need to ensure that your method (1) always succeeds and (2) does not have side-effects. If your method doesn't meet -these criteria, it's very easy to run into serious problems. For example, if `toString()` calls a method that does an -assert, assert might try to output the name of the object in which it failed, which of course requires -calling `toString()`. - -*** - -### Parentheses - -Use sparingly and in general only where required by the syntax and semantics. Never use parentheses for unary -operators such as `delete`, `typeof` and `void` or after keywords such as `return`, `throw` as well -as others (`case`, in or `new`). - -*** - -### Strings - -For consistency single-quotes (') are preferred to double-quotes ("). This is helpful when creating -strings that include HTML: - -``` -var msg = 'This is some HTML
'; -``` - -*** - -### Conditional Ternary Operator (shorthand if) - -Use the ternary operator for assignments or return statements. Use it only in simple conditions and avoid it in complex -ones. No body likes to wrap his brain around 10 lines of nested ternary operators. - -**Not recommended** -``` -if(x === 10) { - return 'valid'; -} else { - return 'invalid'; -} -``` - -**Recommended** -``` -return x === 10 ? 'valid' : 'invalid'; -``` - -*** - -## CSS and Sass (SCSS) style rules - -*** - -### ID and class naming - -Instead of presentational or cryptic names, always use ID and class names that reflect the purpose of the element in -question, or that are otherwise generic. - -Names that are specific and reflect the purpose of the element should be preferred as these are most understandable -and the least likely to change. - -Generic names are simply a fallback for elements that have no particular or no meaning different from their siblings. -They are typically needed as ā€œhelpers.ā€ - -Even though class names and ID's have no semantic meaning to computer interpreters, semantic names are often the right -choice as they represent the information meaning and don't introduce presentational constraints. - -**Not recommended** -``` -.fw-800 { - font-weight: 800; -} - -.red { - color: red; -} -``` - -**Recommended** -``` -.heavy { - font-weight: 800; -} - -.important { - color: red; -} -``` - -*** - -### Avoid ID's where possible - -In general ID's should not be used to apply style. Styles on ID's can't be re-used and you can only use them once per -page. The only valid location for using an ID would be to identify a page or a whole site. Still you should always -consider using a class that you use once instead of an id. - -**Not recommended** -``` -#content .title { - font-size: 2em; -} -``` - -**Recommended** -``` -.content .title { - font-size: 2em; -} -``` - -One other argument against using ID's would be that selector chains containing ID's are over-prioritized. A selector -containing just one ID is weighted higher than a selector containing 1000 class names only which makes it very odd. - -``` -// This selecor is considered with higher priority -#content .title { - color: red; -} - -// than this selector! -html body div.content.news-content .title.content-title.important { - color: blue; -} -``` - -*** - -### Avoid elements in CSS selectors - -When building your selectors use clear, precise and sensible class names. Don't use element selectors. If you're only -concerned about your class names and not about your elements your code gets a lot more maintainable. - -From a separation of concerns perspective you don't want to dictate the markup / semantics from the presentation layer. -It might be that a ordered list needs to be changed to an unordered list or that a div will be converted to an article. -If you only care about sensible class names and don't use element selectors you'd only need to change your markup and -not your css. - -**Not recommended** -``` -div.content > header.content-header > h2.title { - font-size: 2em; -} -``` - -**Recommended** -``` -.content > .content-header > .title { - font-size: 2em; -} -``` - -*** - -### Be as precise as possible - -A lot of front-end developers don't use direct child selectors when they write their selector chains. Sometimes this -can cause painful design issues and other times it's just a performance eater. However, in any case, it's a very bad -practice. If you don't write very generic selectors that need to match down to the bottom of the DOM you should always -consider direct child selectors. - -Consider the following DOM: - -``` -
- News event -
-
- Check this out -
- -

This is a news article content

- -
-
Buy this
-
Yey!
-
-
-
-``` - -The following CSS would apply to all three elements that have a title class. This then would need to be overridden again -with more granular selectors in order to fix the content title and the teaser title. - -**Not recommended** -``` -.content .title { - font-size: 2rem; -} -``` - -**Recommended** -``` -.content > .title { - font-size: 2rem; -} - -.content > .content-body > .title { - font-size: 1.5rem; -} - -.content > .content-body > .teaser > .title { - font-size: 1.2rem; -} -``` - -*** - -### Shorthand Properties - -CSS offers a variety of shorthand properties (like font) that should be used whenever possible, even in cases where -only one value is explicitly set. - -Using shorthand properties is useful for code efficiency and understandability. - -**Not recommended** -``` -border-top-style: none; -font-family: palatino, georgia, serif; -font-size: 100%; -line-height: 1.6; -padding-bottom: 2em; -padding-left: 1em; -padding-right: 1em; -padding-top: 0; -``` - -**Recommended** -``` -border-top: 0; -font: 100%/1.6 palatino, georgia, serif; -padding: 0 1em 2em; -``` - -*** - -### 0 and units - -Omit unit specification after ā€œ0ā€ values. Do not use units after 0 values unless they are required. - -**Not recommended** -``` -padding-bottom: 0px; -margin: 0em; -``` - -**Recommended** -``` -padding-bottom: 0; -margin: 0; -``` - -*** - -### Hexadecimal Notation - -Use 3 character hexadecimal notation where possible. For color values that permit it, 3 character hexadecimal notation -is shorter and more succinct. - -Always use lower case hex digits. - -**Not recommended** -``` -color: #FF33AA; -``` - -**Recommended** -``` -color: #f3a; -``` - -*** - -### ID and Class Name Delimiters - -Separate words in ID and class names by a hyphen. Do not concatenate words and abbreviations in selectors by any -characters (including none at all) other than hyphens, in order to improve understanding and scannability. - -Also as the standard foresees attribute selectors that recognise hyphens as separator of words `[attribute|=value]` -it's best to stick to the hyphen as separator. - -**Not recommended** -``` -.demoimage {} -.error_status {} -``` - -**Recommended** -``` -#video-id {} -.ads-sample {} -``` - -*** - -### Hacks - -Avoid user agent detection as well as CSS ā€œhacksā€ā€”try a different approach first. Itā€™s tempting to address styling -differences over user agent detection or special CSS filters, workarounds, and hacks. Both approaches should be -considered last resort in order to achieve and maintain an efficient and manageable code base. Put another way, giving -detection and hacks a free pass will hurt projects in the long run as projects tend to take the way of least -resistance. That is, allowing and making it easy to use detection and hacks means using detection and hacks more -frequentlyā€”and more frequently is too frequently. - -*** - -### Declaration Order - -This example should give a rough outline of how to order CSS properties within a selector. This is important in order -to guarantee better readability and better scannability. - -As a best practice we should follow the following ordering (in the same order as the listing): - -1. structural - 1. display - 1. position, left, top, right etc. - 1. overflow, float, clear etc. - 1. margin, padding -1. skin - 1. background, border etc. - 1. font, text - -**Not recommended** -``` -.box { - font-family: 'Arial', sans-serif; - border: 3px solid #ddd; - left: 30%; - position: absolute; - text-transform: uppercase; - background-color: #eee; - right: 30%; - isplay: block; - font-size: 1.5rem; - overflow: hidden; - padding: 1em; - margin: 1em; -} -``` - -**Recommended** -``` -.box { - display: block; - position: absolute; - left: 30%; - right: 30%; - overflow: hidden; - margin: 1em; - padding: 1em; - background-color: #eee; - border: 3px solid #ddd; - font-family: 'Arial', sans-serif; - font-size: 1.5rem; - text-transform: uppercase; -} -``` - -*** - -### Declaration Stops - -End every declaration with a semicolon for consistency and extensibility reasons and put each declaration on a new line. - -**Not recommended** -``` -.test { - display: block; height: 100px -} -``` - -**Recommended** -``` -.test { - display: block; - height: 100px; -} -``` - -*** - -### Property Name Stops - -Use a space after a property nameā€™s colon. Always use a single space between property and value (but no space between -property and colon) for consistency reasons. - -**Not recommended** -``` -h3 { - font-weight:bold; -} -``` - -**Recommended** -``` -h3 { - font-weight: bold; -} -``` - -*** - -### Selector and Declaration Separation - -Always start a new line for each selector and declaration. - -**Not recommended** -``` -a:focus, a:active { - position: relative; top: 1px; -} -``` - -**Recommended** -``` -h1, -h2, -h3 { - font-weight: normal; - line-height: 1.2; -} -``` - -*** - -### Rule Separation - -Always put a blank line (two line breaks) between rules. - -**Recommended** -``` -html { - background: #fff; -} - -body { - margin: auto; - width: 50%; -} -``` - -*** - -### CSS Quotation Marks - -Use double ("") rather than single ('') quotation marks for attribute selectors or property values. -Do not use quotation marks in URI values (url()). - -**Not recommended** -``` -@import url('//cdn.com/foundation.css'); - -html { - font-family: 'open sans', arial, sans-serif; -} - -body:after { - content: 'pause'; -} -``` - -**Recommended** -``` -@import url(//cdn.com/foundation.css); - -html { - font-family: "open sans", arial, sans-serif; -} - -body:after { - content: "pause"; -} -``` - -*** - -### Nested selectors (SCSS) - -In Sass you can nest selectors which is much cleaner and the code becomes much more readable. Nest all selectors but -try to avoid nesting without any content. If you need to specify some style attributes for a child element where the -parent element will not receive any styling use a regular CSS selector chain. This will prevent your script to look -overcomplicated. - -**Not recommended** -```scss -// Not a good example by not making use of nesting at all -.content { - display: block; -} - -.content > .news-article > .title { - font-size: 1.2em; -} -``` - -**Not recommended** -```scss -// Using nesting is better but not in all cases -// Avoid nesting when there is no attributes and use selector chains instead -.content { - display: block; - - > .news-article { - > .title { - font-size: 1.2em; - } - } -} -``` - -**Recommended** -```scss -// This example takes the best approach while nesting but use selector chains where possible -.content { - display: block; - - > .news-article > .title { - font-size: 1.2em; - } -} -``` - -*** - -### Introducing space while nesting (SCSS) - -If you nest your selectors introduce blank line between your nested selectors and the css attributes. - -**Not recommended** -```scss -.content { - display: block; - > .news-article { - background-color: #eee; - > .title { - font-size: 1.2em; - } - > .article-footnote { - font-size: 0.8em; - } - } -} -``` - -**Recommended** -```scss -.content { - display: block; - - > .news-article { - background-color: #eee; - - > .title { - font-size: 1.2em; - } - - > .article-footnote { - font-size: 0.8em; - } - } -} -``` - -*** - -### Contextual media queries (SCSS) - -While nesting your selectors you can also make use of contextual media queries within Sass. With Sass you can use media -queries at any given nesting level. The resulting CSS will be converted so that the media query gets rendered around the -selector. - -This technique is very handy and helps to keep media queries in the context where they belong to. With a mobile first -approach this allows you to write your mobile styles first and then use contextual media queries where ever you need -them in order to provide the desktop styles. - -**Not recommended** -```scss -// This mobile first example looks like plain CSS where the whole structure of SCSS is repeated -// on the bottom in a media query. This is error prone and makes maintenance harder as it's not so easy to relate -// the content in the media query to the content in the upper part (mobile style) - -.content-page { - font-size: 1.2rem; - - > .main { - background-color: whitesmoke; - - > .latest-news { - padding: 1rem; - - > .news-article { - padding: 1rem; - - > .title { - font-size: 2rem; - } - } - } - - > .content { - margin-top: 2rem; - padding: 1rem; - } - } - - > .page-footer { - margin-top: 2rem; - font-size: 1rem; - } -} - -@media screen and (min-width: 641px) { - .content-page { - font-size: 1rem; - - > .main > .latest-news > .news-article > .title { - font-size: 3rem; - } - - > .page-footer { - font-size: 0.8rem; - } - } -} -``` - -**Recommended** -```scss -// This is the same example as above but here we use contextual media queries in order to put the different styles -// for different media into the right context. - -.content-page { - font-size: 1.2rem; - - @media screen and (min-width: 641px) { - font-size: 1rem; - } - - > .main { - background-color: whitesmoke; - - > .latest-news { - padding: 1rem; - - > .news-article { - padding: 1rem; - - > .title { - font-size: 2rem; - - @media screen and (min-width: 641px) { - font-size: 3rem; - } - } - } - } - - > .content { - margin-top: 2rem; - padding: 1rem; - } - } - - > .page-footer { - margin-top: 2rem; - font-size: 1rem; - - @media screen and (min-width: 641px) { - font-size: 0.8rem; - } - } -} -``` - -*** - -### Nesting order and the parent selector (SCSS) - -While using the nesting features of Sass it's important to have a clear order to put your nesting in. A SCSS block -should have the following content order. - -1. Current selector's style attributes -1. Pseudo selectors with parent selector (:first-letter, :hover, :active etc) -1. Pseudo elements (:before and :after) -1. State classe with parent selector (.selected, .active, .enlarged etc.) -1. Contextual media queries with Sass -1. Sub selectors as the last part - -The following example should illustrate how this ordering will achieve a clear structure while making use of the Sass -parent selector. - -**Recommended** -```scss -.product-teaser { - // 1. Style attributes - display: inline-block; - padding: 1rem; - background-color: whitesmoke; - color: grey; - - // 2. Pseudo selectors with parent selector - &:hover { - color: black; - } - - // 3. Pseudo elements with parent selector - &:before { - content: ""; - display: block; - border-top: 1px solid grey; - } - - &:after { - content: ""; - display: block; - border-top: 1px solid grey; - } - - // 4. State classes with parent selector - &.active { - background-color: pink; - color: red; - - // 4.2. Pseuso selector in state class selector - &:hover { - color: darkred; - } - } - - // 5. Contextual media queries - @media screen and (max-width: 640px) { - display: block; - font-size: 2em; - } - - // 6. Sub selectors - > .content > .title { - font-size: 1.2em; - - // 6.5. Contextual media queries in sub selector - @media screen and (max-width: 640px) { - letter-spacing: 0.2em; - text-transform: uppercase; - } - } -} -``` - diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index aa53b62a8..f131704ff 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,8 +1,7 @@ -# Contributing to chartist-js +# Contributing to Chartist - - [Issues and Bugs](#issue) - - [Submission Guidelines](#submit) - - [Coding Conventions](#conventions) +- [Issues and Bugs](#issue) +- [Submission Guidelines](#submit) ## Found an Issue? @@ -15,48 +14,15 @@ with a fix. You will need the following to run a local development enviroment. - Node.js & npm -- Bower (`sudo npm install bower -g`) -- Grunt (`sudo npm install grunt-cli -g`) +- pnpm (`npm install -g pnpm`) - Text editor of your choice - ## How to Run a Local Distribution 1. `cd` into your local copy of the repository. -2. Run `npm install` to install dependencies located in `package.json`. -3. Run `bower install` to install bower dependencies. -5. Run `grunt preview` to start the watch task, and the web server should automatically open. Congrats, you should now be able to see your local copy of the demo site. +2. Run `pnpm i` to install dependencies located in `package.json`. +5. Run `pnpm start:storybook` to start Storybook, or run `pnpm jest --watch` to run tests in watch mode. Congrats, you should now be able to see your local copy of the Chartist testbed. ## Submission Guidelines If you are creating a Pull Request, fork the repository and make any changes on the `develop` branch. - -### Conventions - -Check out the [Coding Style document](CODINGSTYLE.md) - -### Grunt - -We have five grunt tasks: - -1. `grunt build` - Combines the scripts and creates the library for distribution -2. `grunt public` - Creates the distribution of the example / demo site which is used as visual development help of the charts but also serves as the documentation site / gh-pages. -3. `grunt dev` - Starts watch with livereload that is executing the same things as the site build default task but for live development. -4. `grunt preview` - Executes a dist and serves the directory statically in order to serve with the production example / demo site. -5. `grunt test` - Executes jasmine tests separately, although we have a very big lack of tests. - -`dist` should **not** be included in any Pull Requests. So please ensure that code is not being committed as part of the Pull Request. - -### Documentation - -- Everything is already in place and in the `sitedist` there is a `apidoc` folder generated by [doxication](https://github.com/gionkunz/grunt-doxication) generator that uses JSDoc like comments to generate documentation meta files. Always use proper JSDoc comments when documenting methods and API interfaces. Also assign documentation blocks using @memberof to the virtual module they belong to. -- The site documentation is built with [Assemble.io](http://assemble.io/). Generally a component based approach should be followed where there are already Handlebar partials / helpers in order to create whole sites based on components that can be specified by type and with their data in yaml files. - -### Important missing stuff - -1. Jasmine Tests! -2. Documentation: JSDoc, Getting started documentation and landing page -3. Better accessibility using ARIA and other optimizations -4. Better interfaces to the library (i.e. jQuery with data-* attributes for configuration), Angular.js directive etc. -5. Richer Sass / CSS framework -6. Other charts types (spider etc.) diff --git a/Gruntfile.js b/Gruntfile.js deleted file mode 100644 index 844ec02cd..000000000 --- a/Gruntfile.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Grunt Configurations - * ==================== - * - * Seperate tasks and configurations are declared in '/tasks'. - * - * Link: https://github.com/firstandthird/load-grunt-config - */ - -'use strict'; - -module.exports = function (grunt) { - - // tracks how long a tasks take - require('time-grunt')(grunt); - - // load task and configurations - require('load-grunt-config')(grunt, { - configPath: __dirname + '/tasks', - data: { - pkg: grunt.file.readJSON('package.json'), - year: new Date().getFullYear() - }, - jitGrunt: { - staticMappings: { - 'useminPrepare': 'grunt-usemin', - 'assemble': 'assemble' - } - } - }); -}; diff --git a/LICENSE-WTFPL b/LICENSE-WTFPL index 5c93f4565..58a9d91c9 100644 --- a/LICENSE-WTFPL +++ b/LICENSE-WTFPL @@ -1,13 +1,13 @@ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 - Copyright (C) 2004 Sam Hocevar +Copyright (C) 2004 Sam Hocevar - Everyone is permitted to copy and distribute verbatim or modified - copies of this license document, and changing it is allowed as long - as the name is changed. +Everyone is permitted to copy and distribute verbatim or modified +copies of this license document, and changing it is allowed as long +as the name is changed. DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/README.md b/README.md index 348946be9..02a281c1f 100644 --- a/README.md +++ b/README.md @@ -1,33 +1,98 @@ # Big welcome by the Chartist Guy -[![Join the chat at https://gitter.im/gionkunz/chartist-js](https://badges.gitter.im/gionkunz/chartist-js.svg)](https://gitter.im/gionkunz/chartist-js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) -[![npm version](http://img.shields.io/npm/v/chartist.svg)](https://npmjs.org/package/chartist) [![build status](http://img.shields.io/travis/gionkunz/chartist-js.svg)](https://travis-ci.org/gionkunz/chartist-js) [![Inline docs](http://inch-ci.org/github/gionkunz/chartist-js.svg?branch=develop)](http://inch-ci.org/github/gionkunz/chartist-js) +[![NPM version][npm]][npm-url] +[![Downloads][downloads]][downloads-url] +[![Build status][build]][build-url] +[![Coverage status][coverage]][coverage-url] +[![Bundle size][size]][size-url] +[![Join the chat at https://gitter.im/gionkunz/chartist-js][chat]][chat-url] -![The Chartist Guy](https://raw.github.com/gionkunz/chartist-js/develop/site/images/chartist-guy.gif "The Chartist Guy") +[npm]: https://img.shields.io/npm/v/chartist.svg +[npm-url]: https://www.npmjs.com/package/chartist -*Checkout the documentation site at http://gionkunz.github.io/chartist-js/* +[downloads]: https://img.shields.io/npm/dm/chartist.svg +[downloads-url]: https://www.npmjs.com/package/chartist -*Checkout this lightning talk that gives you an overview of Chartist in 5 minutes https://www.youtube.com/watch?v=WdYzPhOB_c8* +[build]: https://img.shields.io/github/workflow/status/chartist-js/chartist/CI.svg +[build-url]: https://github.com/chartist-js/chartist/actions -*Guest talk of the Chartist.js Guy at the Treehouse Show https://www.youtube.com/watch?v=h9oH0iDaZDQ&t=2m40s* +[coverage]: https://img.shields.io/codecov/c/github/chartist-js/chartist.svg +[coverage-url]: https://app.codecov.io/gh/chartist-js/chartist -Chartist.js is a simple responsive charting library built with SVG. There are hundreds of nice charting libraries already +[size]: https://img.shields.io/bundlephobia/minzip/chartist +[size-url]: https://bundlephobia.com/package/chartist + +[chat]: https://badges.gitter.im/gionkunz/chartist-js.svg +[chat-url]: https://gitter.im/gionkunz/chartist-js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge + +

+ The Chartist Guy +

+ +Chartist is a simple responsive charting library built with SVG. There are hundreds of nice charting libraries already out there, but they are either: -* not responsive -* use the wrong technologies for illustration (canvas) -* are not flexible enough while keeping the configuration simple -* are not friendly to your own code -* are not friendly to designers -* have unnecessary dependencies to monolithic libraries -* more annoying things +- use the wrong technologies for illustration (canvas) +- weighs hundreds of kilobytes +- are not flexible enough while keeping the configuration simple +- are not friendly to designers +- more annoying things + +That's why we started Chartist and our goal is to solve all of the above issues. + +
+Quickstart +  ā€¢   +What is it made for? +  ā€¢   +What's new in v1? +  ā€¢   +Contribution +
+ +## Quickstart + +Install this library using your favorite package manager: + +```sh +pnpm add chartist +# or +yarn add chartist +# or +npm i chartist +``` -That's why we started Chartist.js and our goal is to solve all of the above issues. +Then, just import chart you want and use it: + +```js +import { BarChart } from 'chartist'; + +new BarChart('#chart', { + labels: ['W1', 'W2', 'W3', 'W4', 'W5', 'W6', 'W7', 'W8', 'W9', 'W10'], + series: [ + [1, 2, 4, 8, 6, -2, -1, -4, -6, -2] + ] +}, { + high: 10, + low: -10, + axisX: { + labelInterpolationFnc: (value, index) => (index % 2 === 0 ? value : null) + } +}); +``` + +
+ +Need an API to fetch data? Consider [Cube](https://cube.dev/?ref=eco-chartist), an open-source API for data apps. + +
+ +[![supported by Cube](https://user-images.githubusercontent.com/986756/154330861-d79ab8ec-aacb-4af8-9e17-1b28f1eccb01.svg)](https://cube.dev/?ref=eco-chartist) ## What is it made for? Chartist's goal is to provide a simple, lightweight and unintrusive library to responsively craft charts on your website. -It's important to understand that one of the main intentions of Chartist.js is to rely on standards rather than providing +It's important to understand that one of the main intentions of Chartist is to rely on standards rather than providing it's own solution to a problem which is already solved by those standards. We need to leverage the power of browsers today and say good bye to the idea of solving all problems ourselves. @@ -36,29 +101,70 @@ also means that Chartist does not provide it's own event handling, labels, behav done with plain HTML, JavaScript and CSS. The single and only responsibility of Chartist is to help you drawing "Simple responsive Charts" using inline-SVG in the DOM, CSS to style and JavaScript to provide an API for configuring your charts. -## Example site +## What's new in v1? -You can visit this Site http://gionkunz.github.io/chartist-js/ which is in fact a build of the current project. -We are still developing and constantly add features but you can already use Chartist.js in your projects as we have -reached a stable and reliable state already. +### ESM -## Version notes +Now Chartist is truly an ES module and exposes its API through the exports, thus making Chartist [tree-shakable](https://developer.mozilla.org/en-US/docs/Glossary/Tree_shaking). -We are currently still heavily developing in order to make Chartist.js better. Your help is needed! Please contribute -to the project if you like the idea and the concept and help us to bring nice looking responsive open-source charts -to the masses. +
+ Migration from v0.11 -### Important missing stuff +- Each property of Chartist object now is named export. +- Chart classes were renamed. +- Easing object now is named export. -1. Jasmine Tests! -2. Documentation: JSDoc, Getting started documentation and landing page -3. Better accessibility using ARIA and other optimizations -4. Better interfaces to the library (i.e. jQuery with data-* attributes for configuration), Angular.js directive etc. -5. Richer Sass / CSS framework -6. Other charts types (spider etc.) +```js +const Chartist = require('chartist') + +new Chartist.Bar(/* ... */); +new Chartist.Line(/* ... */); +new Chartist.Pie(/* ... */); +new Chartist.Svg(/* ... */); +Chartist.Svg.Easing +// ... + +// -> + +import { BarChart, LineChart, PieChart, Svg, easings } from 'chartist' + +new BarChart(/* ... */) +new LineChart(/* ... */) +new PieChart(/* ... */) +new Svg(/* ... */) +easings +// ... +``` + +
+ +### TypeScript + +Chartist was rewritten and fully typed with TypeScript. + +
+ Some of exposed types + +```ts +import type { + BarChartData, + BarChartOptions, + LineChartData, + LineChartOptions, + PieChartData, + PieChartOptions +} from 'chartist' +``` + +
## Plugins +Coming soon. + +
+ For v0.11 + Some features aren't right for the core product but there is a great set of plugins available which add features like: @@ -71,10 +177,14 @@ and more. See all the plugins [here](https://gionkunz.github.io/chartist-js/plugins.html). +
+ ## Contribution We are looking for people who share the idea of having a simple, flexible charting library that is responsive and uses modern and future-proof technologies. The goal of this project is to create a responsive charting library where developers -have their joy in using it and designers love it because of the designing flexibility they have. +have their joy in using it and designers love it because of the designing flexibility they have. Please contribute +to the project if you like the idea and the concept and help us to bring nice looking responsive open-source charts +to the masses. Contribute if you like the Chartist Guy! diff --git a/bower.json b/bower.json deleted file mode 100755 index adc79afab..000000000 --- a/bower.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "chartist", - "main": [ - "./dist/chartist.js", - "./dist/chartist.css" - ], - "devDependencies": { - "snap.svg": "~0.3.0", - "foundation": "~5.5.1", - "highlightjs": "~8.4.0", - "compass-mixins": "~1.0.2", - "codemirror": "~4.12.0", - "base64": "~0.3.0", - "chartist-plugin-pointlabels": "~0.0.4", - "chartist-plugin-accessibility": "~0.0.2", - "chartist-plugin-tooltip": "~0.0.12", - "chartist-plugin-axistitle": "~0.0.1", - "chartist-plugin-threshold": "~0.0.1", - "chartist-plugin-fill-donut": "~0.0.1", - "chartist-plugin-zoom": "~0.2.1", - "chartist-plugin-targetline": "~1.0.0", - "matchMedia": "~0.2.0", - "moment": "^2.14.1" - }, - "ignore": [ - ".*", - "Gruntfile.js", - "tasks", - "package.json", - "node_modules", - "public", - "site", - "src", - "test" - ], - "resolutions": { - "chartist": "~0.9.0" - } -} diff --git a/dist/chartist.css b/dist/chartist.css deleted file mode 100644 index bb19a807c..000000000 --- a/dist/chartist.css +++ /dev/null @@ -1,615 +0,0 @@ -.ct-label { - fill: rgba(0, 0, 0, 0.4); - color: rgba(0, 0, 0, 0.4); - font-size: 0.75rem; - line-height: 1; } - -.ct-chart-line .ct-label, -.ct-chart-bar .ct-label { - display: block; - display: -webkit-box; - display: -moz-box; - display: -ms-flexbox; - display: -webkit-flex; - display: flex; } - -.ct-chart-pie .ct-label, -.ct-chart-donut .ct-label { - dominant-baseline: central; } - -.ct-label.ct-horizontal.ct-start { - -webkit-box-align: flex-end; - -webkit-align-items: flex-end; - -ms-flex-align: flex-end; - align-items: flex-end; - -webkit-box-pack: flex-start; - -webkit-justify-content: flex-start; - -ms-flex-pack: flex-start; - justify-content: flex-start; - text-align: left; - text-anchor: start; } - -.ct-label.ct-horizontal.ct-end { - -webkit-box-align: flex-start; - -webkit-align-items: flex-start; - -ms-flex-align: flex-start; - align-items: flex-start; - -webkit-box-pack: flex-start; - -webkit-justify-content: flex-start; - -ms-flex-pack: flex-start; - justify-content: flex-start; - text-align: left; - text-anchor: start; } - -.ct-label.ct-vertical.ct-start { - -webkit-box-align: flex-end; - -webkit-align-items: flex-end; - -ms-flex-align: flex-end; - align-items: flex-end; - -webkit-box-pack: flex-end; - -webkit-justify-content: flex-end; - -ms-flex-pack: flex-end; - justify-content: flex-end; - text-align: right; - text-anchor: end; } - -.ct-label.ct-vertical.ct-end { - -webkit-box-align: flex-end; - -webkit-align-items: flex-end; - -ms-flex-align: flex-end; - align-items: flex-end; - -webkit-box-pack: flex-start; - -webkit-justify-content: flex-start; - -ms-flex-pack: flex-start; - justify-content: flex-start; - text-align: left; - text-anchor: start; } - -.ct-chart-bar .ct-label.ct-horizontal.ct-start { - -webkit-box-align: flex-end; - -webkit-align-items: flex-end; - -ms-flex-align: flex-end; - align-items: flex-end; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - text-align: center; - text-anchor: start; } - -.ct-chart-bar .ct-label.ct-horizontal.ct-end { - -webkit-box-align: flex-start; - -webkit-align-items: flex-start; - -ms-flex-align: flex-start; - align-items: flex-start; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - text-align: center; - text-anchor: start; } - -.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start { - -webkit-box-align: flex-end; - -webkit-align-items: flex-end; - -ms-flex-align: flex-end; - align-items: flex-end; - -webkit-box-pack: flex-start; - -webkit-justify-content: flex-start; - -ms-flex-pack: flex-start; - justify-content: flex-start; - text-align: left; - text-anchor: start; } - -.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end { - -webkit-box-align: flex-start; - -webkit-align-items: flex-start; - -ms-flex-align: flex-start; - align-items: flex-start; - -webkit-box-pack: flex-start; - -webkit-justify-content: flex-start; - -ms-flex-pack: flex-start; - justify-content: flex-start; - text-align: left; - text-anchor: start; } - -.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start { - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: flex-end; - -webkit-justify-content: flex-end; - -ms-flex-pack: flex-end; - justify-content: flex-end; - text-align: right; - text-anchor: end; } - -.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end { - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: flex-start; - -webkit-justify-content: flex-start; - -ms-flex-pack: flex-start; - justify-content: flex-start; - text-align: left; - text-anchor: end; } - -.ct-grid { - stroke: rgba(0, 0, 0, 0.2); - stroke-width: 1px; - stroke-dasharray: 2px; } - -.ct-grid-background { - fill: none; } - -.ct-point { - stroke-width: 10px; - stroke-linecap: round; } - -.ct-line { - fill: none; - stroke-width: 4px; } - -.ct-area { - stroke: none; - fill-opacity: 0.1; } - -.ct-bar { - fill: none; - stroke-width: 10px; } - -.ct-slice-donut { - fill: none; - stroke-width: 60px; } - -.ct-series-a .ct-point, .ct-series-a .ct-line, .ct-series-a .ct-bar, .ct-series-a .ct-slice-donut { - stroke: #d70206; } - -.ct-series-a .ct-slice-pie, .ct-series-a .ct-slice-donut-solid, .ct-series-a .ct-area { - fill: #d70206; } - -.ct-series-b .ct-point, .ct-series-b .ct-line, .ct-series-b .ct-bar, .ct-series-b .ct-slice-donut { - stroke: #f05b4f; } - -.ct-series-b .ct-slice-pie, .ct-series-b .ct-slice-donut-solid, .ct-series-b .ct-area { - fill: #f05b4f; } - -.ct-series-c .ct-point, .ct-series-c .ct-line, .ct-series-c .ct-bar, .ct-series-c .ct-slice-donut { - stroke: #f4c63d; } - -.ct-series-c .ct-slice-pie, .ct-series-c .ct-slice-donut-solid, .ct-series-c .ct-area { - fill: #f4c63d; } - -.ct-series-d .ct-point, .ct-series-d .ct-line, .ct-series-d .ct-bar, .ct-series-d .ct-slice-donut { - stroke: #d17905; } - -.ct-series-d .ct-slice-pie, .ct-series-d .ct-slice-donut-solid, .ct-series-d .ct-area { - fill: #d17905; } - -.ct-series-e .ct-point, .ct-series-e .ct-line, .ct-series-e .ct-bar, .ct-series-e .ct-slice-donut { - stroke: #453d3f; } - -.ct-series-e .ct-slice-pie, .ct-series-e .ct-slice-donut-solid, .ct-series-e .ct-area { - fill: #453d3f; } - -.ct-series-f .ct-point, .ct-series-f .ct-line, .ct-series-f .ct-bar, .ct-series-f .ct-slice-donut { - stroke: #59922b; } - -.ct-series-f .ct-slice-pie, .ct-series-f .ct-slice-donut-solid, .ct-series-f .ct-area { - fill: #59922b; } - -.ct-series-g .ct-point, .ct-series-g .ct-line, .ct-series-g .ct-bar, .ct-series-g .ct-slice-donut { - stroke: #0544d3; } - -.ct-series-g .ct-slice-pie, .ct-series-g .ct-slice-donut-solid, .ct-series-g .ct-area { - fill: #0544d3; } - -.ct-series-h .ct-point, .ct-series-h .ct-line, .ct-series-h .ct-bar, .ct-series-h .ct-slice-donut { - stroke: #6b0392; } - -.ct-series-h .ct-slice-pie, .ct-series-h .ct-slice-donut-solid, .ct-series-h .ct-area { - fill: #6b0392; } - -.ct-series-i .ct-point, .ct-series-i .ct-line, .ct-series-i .ct-bar, .ct-series-i .ct-slice-donut { - stroke: #f05b4f; } - -.ct-series-i .ct-slice-pie, .ct-series-i .ct-slice-donut-solid, .ct-series-i .ct-area { - fill: #f05b4f; } - -.ct-series-j .ct-point, .ct-series-j .ct-line, .ct-series-j .ct-bar, .ct-series-j .ct-slice-donut { - stroke: #dda458; } - -.ct-series-j .ct-slice-pie, .ct-series-j .ct-slice-donut-solid, .ct-series-j .ct-area { - fill: #dda458; } - -.ct-series-k .ct-point, .ct-series-k .ct-line, .ct-series-k .ct-bar, .ct-series-k .ct-slice-donut { - stroke: #eacf7d; } - -.ct-series-k .ct-slice-pie, .ct-series-k .ct-slice-donut-solid, .ct-series-k .ct-area { - fill: #eacf7d; } - -.ct-series-l .ct-point, .ct-series-l .ct-line, .ct-series-l .ct-bar, .ct-series-l .ct-slice-donut { - stroke: #86797d; } - -.ct-series-l .ct-slice-pie, .ct-series-l .ct-slice-donut-solid, .ct-series-l .ct-area { - fill: #86797d; } - -.ct-series-m .ct-point, .ct-series-m .ct-line, .ct-series-m .ct-bar, .ct-series-m .ct-slice-donut { - stroke: #b2c326; } - -.ct-series-m .ct-slice-pie, .ct-series-m .ct-slice-donut-solid, .ct-series-m .ct-area { - fill: #b2c326; } - -.ct-series-n .ct-point, .ct-series-n .ct-line, .ct-series-n .ct-bar, .ct-series-n .ct-slice-donut { - stroke: #6188e2; } - -.ct-series-n .ct-slice-pie, .ct-series-n .ct-slice-donut-solid, .ct-series-n .ct-area { - fill: #6188e2; } - -.ct-series-o .ct-point, .ct-series-o .ct-line, .ct-series-o .ct-bar, .ct-series-o .ct-slice-donut { - stroke: #a748ca; } - -.ct-series-o .ct-slice-pie, .ct-series-o .ct-slice-donut-solid, .ct-series-o .ct-area { - fill: #a748ca; } - -.ct-square { - display: block; - position: relative; - width: 100%; } - .ct-square:before { - display: block; - float: left; - content: ""; - width: 0; - height: 0; - padding-bottom: 100%; } - .ct-square:after { - content: ""; - display: table; - clear: both; } - .ct-square > svg { - display: block; - position: absolute; - top: 0; - left: 0; } - -.ct-minor-second { - display: block; - position: relative; - width: 100%; } - .ct-minor-second:before { - display: block; - float: left; - content: ""; - width: 0; - height: 0; - padding-bottom: 93.75%; } - .ct-minor-second:after { - content: ""; - display: table; - clear: both; } - .ct-minor-second > svg { - display: block; - position: absolute; - top: 0; - left: 0; } - -.ct-major-second { - display: block; - position: relative; - width: 100%; } - .ct-major-second:before { - display: block; - float: left; - content: ""; - width: 0; - height: 0; - padding-bottom: 88.8888888889%; } - .ct-major-second:after { - content: ""; - display: table; - clear: both; } - .ct-major-second > svg { - display: block; - position: absolute; - top: 0; - left: 0; } - -.ct-minor-third { - display: block; - position: relative; - width: 100%; } - .ct-minor-third:before { - display: block; - float: left; - content: ""; - width: 0; - height: 0; - padding-bottom: 83.3333333333%; } - .ct-minor-third:after { - content: ""; - display: table; - clear: both; } - .ct-minor-third > svg { - display: block; - position: absolute; - top: 0; - left: 0; } - -.ct-major-third { - display: block; - position: relative; - width: 100%; } - .ct-major-third:before { - display: block; - float: left; - content: ""; - width: 0; - height: 0; - padding-bottom: 80%; } - .ct-major-third:after { - content: ""; - display: table; - clear: both; } - .ct-major-third > svg { - display: block; - position: absolute; - top: 0; - left: 0; } - -.ct-perfect-fourth { - display: block; - position: relative; - width: 100%; } - .ct-perfect-fourth:before { - display: block; - float: left; - content: ""; - width: 0; - height: 0; - padding-bottom: 75%; } - .ct-perfect-fourth:after { - content: ""; - display: table; - clear: both; } - .ct-perfect-fourth > svg { - display: block; - position: absolute; - top: 0; - left: 0; } - -.ct-perfect-fifth { - display: block; - position: relative; - width: 100%; } - .ct-perfect-fifth:before { - display: block; - float: left; - content: ""; - width: 0; - height: 0; - padding-bottom: 66.6666666667%; } - .ct-perfect-fifth:after { - content: ""; - display: table; - clear: both; } - .ct-perfect-fifth > svg { - display: block; - position: absolute; - top: 0; - left: 0; } - -.ct-minor-sixth { - display: block; - position: relative; - width: 100%; } - .ct-minor-sixth:before { - display: block; - float: left; - content: ""; - width: 0; - height: 0; - padding-bottom: 62.5%; } - .ct-minor-sixth:after { - content: ""; - display: table; - clear: both; } - .ct-minor-sixth > svg { - display: block; - position: absolute; - top: 0; - left: 0; } - -.ct-golden-section { - display: block; - position: relative; - width: 100%; } - .ct-golden-section:before { - display: block; - float: left; - content: ""; - width: 0; - height: 0; - padding-bottom: 61.804697157%; } - .ct-golden-section:after { - content: ""; - display: table; - clear: both; } - .ct-golden-section > svg { - display: block; - position: absolute; - top: 0; - left: 0; } - -.ct-major-sixth { - display: block; - position: relative; - width: 100%; } - .ct-major-sixth:before { - display: block; - float: left; - content: ""; - width: 0; - height: 0; - padding-bottom: 60%; } - .ct-major-sixth:after { - content: ""; - display: table; - clear: both; } - .ct-major-sixth > svg { - display: block; - position: absolute; - top: 0; - left: 0; } - -.ct-minor-seventh { - display: block; - position: relative; - width: 100%; } - .ct-minor-seventh:before { - display: block; - float: left; - content: ""; - width: 0; - height: 0; - padding-bottom: 56.25%; } - .ct-minor-seventh:after { - content: ""; - display: table; - clear: both; } - .ct-minor-seventh > svg { - display: block; - position: absolute; - top: 0; - left: 0; } - -.ct-major-seventh { - display: block; - position: relative; - width: 100%; } - .ct-major-seventh:before { - display: block; - float: left; - content: ""; - width: 0; - height: 0; - padding-bottom: 53.3333333333%; } - .ct-major-seventh:after { - content: ""; - display: table; - clear: both; } - .ct-major-seventh > svg { - display: block; - position: absolute; - top: 0; - left: 0; } - -.ct-octave { - display: block; - position: relative; - width: 100%; } - .ct-octave:before { - display: block; - float: left; - content: ""; - width: 0; - height: 0; - padding-bottom: 50%; } - .ct-octave:after { - content: ""; - display: table; - clear: both; } - .ct-octave > svg { - display: block; - position: absolute; - top: 0; - left: 0; } - -.ct-major-tenth { - display: block; - position: relative; - width: 100%; } - .ct-major-tenth:before { - display: block; - float: left; - content: ""; - width: 0; - height: 0; - padding-bottom: 40%; } - .ct-major-tenth:after { - content: ""; - display: table; - clear: both; } - .ct-major-tenth > svg { - display: block; - position: absolute; - top: 0; - left: 0; } - -.ct-major-eleventh { - display: block; - position: relative; - width: 100%; } - .ct-major-eleventh:before { - display: block; - float: left; - content: ""; - width: 0; - height: 0; - padding-bottom: 37.5%; } - .ct-major-eleventh:after { - content: ""; - display: table; - clear: both; } - .ct-major-eleventh > svg { - display: block; - position: absolute; - top: 0; - left: 0; } - -.ct-major-twelfth { - display: block; - position: relative; - width: 100%; } - .ct-major-twelfth:before { - display: block; - float: left; - content: ""; - width: 0; - height: 0; - padding-bottom: 33.3333333333%; } - .ct-major-twelfth:after { - content: ""; - display: table; - clear: both; } - .ct-major-twelfth > svg { - display: block; - position: absolute; - top: 0; - left: 0; } - -.ct-double-octave { - display: block; - position: relative; - width: 100%; } - .ct-double-octave:before { - display: block; - float: left; - content: ""; - width: 0; - height: 0; - padding-bottom: 25%; } - .ct-double-octave:after { - content: ""; - display: table; - clear: both; } - .ct-double-octave > svg { - display: block; - position: absolute; - top: 0; - left: 0; } - -/*# sourceMappingURL=chartist.css.map */ \ No newline at end of file diff --git a/dist/chartist.css.map b/dist/chartist.css.map deleted file mode 100644 index 106c0763c..000000000 --- a/dist/chartist.css.map +++ /dev/null @@ -1,10 +0,0 @@ -{ - "version": 3, - "file": "chartist.css", - "sources": [ - "../../src/styles/chartist.scss", - "../../src/styles/settings/_chartist-settings.scss" - ], - "mappings": "AAoHE,AAAA,SAAS,CAAT;EAxDA,IAAI,EC7BU,kBAAI;ED8BlB,KAAK,EC9BS,kBAAI;ED+BlB,SAAS,EC9BI,OAAO;ED+BpB,WAAW,EC5BS,CAAC,GDmFpB;;AAED,AAAe,cAAD,CAAC,SAAS;AACxB,AAAc,aAAD,CAAC,SAAS,CADvB;EArEA,OAAO,EAAE,KAAM;EACf,OAAO,EAAE,WAAY;EACrB,OAAO,EAAE,QAAS;EAClB,OAAO,EAAE,WAAY;EACrB,OAAO,EAAE,YAAa;EACtB,OAAO,EAAE,IAAK,GAkEb;;AAED,AAAc,aAAD,CAAC,SAAS;AACvB,AAAgB,eAAD,CAAC,SAAS,CADzB;EACE,iBAAiB,EAAE,OAAQ,GAC5B;;AAED,AAAuB,SAAd,AAAA,cAAc,AAAA,SAAS,CAAhC;EAjGA,iBAAiB,EAkGW,QAAQ;EAjGpC,mBAAmB,EAiGS,QAAQ;EAhGpC,cAAc,EAgGc,QAAQ;EA/FpC,WAAW,EA+FiB,QAAQ;EA9FpC,gBAAgB,EA8FsB,UAAU;EA7FhD,uBAAuB,EA6Fe,UAAU;EA5FhD,aAAa,EA4FyB,UAAU;EA3FhD,eAAe,EA2FuB,UAAU;EAxF9C,UAAU,EAAE,IAAK;EA0FjB,WAAW,EAAE,KAAM,GACpB;;AAED,AAAuB,SAAd,AAAA,cAAc,AAAA,OAAO,CAA9B;EAvGA,iBAAiB,EAwGW,UAAU;EAvGtC,mBAAmB,EAuGS,UAAU;EAtGtC,cAAc,EAsGc,UAAU;EArGtC,WAAW,EAqGiB,UAAU;EApGtC,gBAAgB,EAoGwB,UAAU;EAnGlD,uBAAuB,EAmGiB,UAAU;EAlGlD,aAAa,EAkG2B,UAAU;EAjGlD,eAAe,EAiGyB,UAAU;EA9FhD,UAAU,EAAE,IAAK;EAgGjB,WAAW,EAAE,KAAM,GACpB;;AAED,AAAqB,SAAZ,AAAA,YAAY,AAAA,SAAS,CAA9B;EA7GA,iBAAiB,EA8GW,QAAQ;EA7GpC,mBAAmB,EA6GS,QAAQ;EA5GpC,cAAc,EA4Gc,QAAQ;EA3GpC,WAAW,EA2GiB,QAAQ;EA1GpC,gBAAgB,EA0GsB,QAAQ;EAzG9C,uBAAuB,EAyGe,QAAQ;EAxG9C,aAAa,EAwGyB,QAAQ;EAvG9C,eAAe,EAuGuB,QAAQ;EAlG5C,UAAU,EAAE,KAAM;EAoGlB,WAAW,EAAE,GAAI,GAClB;;AAED,AAAqB,SAAZ,AAAA,YAAY,AAAA,OAAO,CAA5B;EAnHA,iBAAiB,EAoHW,QAAQ;EAnHpC,mBAAmB,EAmHS,QAAQ;EAlHpC,cAAc,EAkHc,QAAQ;EAjHpC,WAAW,EAiHiB,QAAQ;EAhHpC,gBAAgB,EAgHsB,UAAU;EA/GhD,uBAAuB,EA+Ge,UAAU;EA9GhD,aAAa,EA8GyB,UAAU;EA7GhD,eAAe,EA6GuB,UAAU;EA1G9C,UAAU,EAAE,IAAK;EA4GjB,WAAW,EAAE,KAAM,GACpB;;AAED,AAAqC,aAAxB,CAAC,SAAS,AAAA,cAAc,AAAA,SAAS,CAA9C;EAzHA,iBAAiB,EA0HW,QAAQ;EAzHpC,mBAAmB,EAyHS,QAAQ;EAxHpC,cAAc,EAwHc,QAAQ;EAvHpC,WAAW,EAuHiB,QAAQ;EAtHpC,gBAAgB,EAsHsB,MAAM;EArH5C,uBAAuB,EAqHe,MAAM;EApH5C,aAAa,EAoHyB,MAAM;EAnH5C,eAAe,EAmHuB,MAAM;EA5G1C,UAAU,EAAE,MAAO;EA8GnB,WAAW,EAAE,KAAM,GACpB;;AAED,AAAqC,aAAxB,CAAC,SAAS,AAAA,cAAc,AAAA,OAAO,CAA5C;EA/HA,iBAAiB,EAgIW,UAAU;EA/HtC,mBAAmB,EA+HS,UAAU;EA9HtC,cAAc,EA8Hc,UAAU;EA7HtC,WAAW,EA6HiB,UAAU;EA5HtC,gBAAgB,EA4HwB,MAAM;EA3H9C,uBAAuB,EA2HiB,MAAM;EA1H9C,aAAa,EA0H2B,MAAM;EAzH9C,eAAe,EAyHyB,MAAM;EAlH5C,UAAU,EAAE,MAAO;EAoHnB,WAAW,EAAE,KAAM,GACpB;;AAED,AAAwD,aAA3C,AAAA,mBAAmB,CAAC,SAAS,AAAA,cAAc,AAAA,SAAS,CAAjE;EArIA,iBAAiB,EAsIW,QAAQ;EArIpC,mBAAmB,EAqIS,QAAQ;EApIpC,cAAc,EAoIc,QAAQ;EAnIpC,WAAW,EAmIiB,QAAQ;EAlIpC,gBAAgB,EAkIsB,UAAU;EAjIhD,uBAAuB,EAiIe,UAAU;EAhIhD,aAAa,EAgIyB,UAAU;EA/HhD,eAAe,EA+HuB,UAAU;EA5H9C,UAAU,EAAE,IAAK;EA8HjB,WAAW,EAAE,KAAM,GACpB;;AAED,AAAwD,aAA3C,AAAA,mBAAmB,CAAC,SAAS,AAAA,cAAc,AAAA,OAAO,CAA/D;EA3IA,iBAAiB,EA4IW,UAAU;EA3ItC,mBAAmB,EA2IS,UAAU;EA1ItC,cAAc,EA0Ic,UAAU;EAzItC,WAAW,EAyIiB,UAAU;EAxItC,gBAAgB,EAwIwB,UAAU;EAvIlD,uBAAuB,EAuIiB,UAAU;EAtIlD,aAAa,EAsI2B,UAAU;EArIlD,eAAe,EAqIyB,UAAU;EAlIhD,UAAU,EAAE,IAAK;EAoIjB,WAAW,EAAE,KAAM,GACpB;;AAED,AAAsD,aAAzC,AAAA,mBAAmB,CAAC,SAAS,AAAA,YAAY,AAAA,SAAS,CAA/D;EAjJA,iBAAiB,EAmJW,MAAM;EAlJlC,mBAAmB,EAkJS,MAAM;EAjJlC,cAAc,EAiJc,MAAM;EAhJlC,WAAW,EAgJiB,MAAM;EA/IlC,gBAAgB,EA+IoB,QAAQ;EA9I5C,uBAAuB,EA8Ia,QAAQ;EA7I5C,aAAa,EA6IuB,QAAQ;EA5I5C,eAAe,EA4IqB,QAAQ;EAvI1C,UAAU,EAAE,KAAM;EAyIlB,WAAW,EAAE,GAAI,GAClB;;AAED,AAAsD,aAAzC,AAAA,mBAAmB,CAAC,SAAS,AAAA,YAAY,AAAA,OAAO,CAA7D;EAxJA,iBAAiB,EAyJW,MAAM;EAxJlC,mBAAmB,EAwJS,MAAM;EAvJlC,cAAc,EAuJc,MAAM;EAtJlC,WAAW,EAsJiB,MAAM;EArJlC,gBAAgB,EAqJoB,UAAU;EApJ9C,uBAAuB,EAoJa,UAAU;EAnJ9C,aAAa,EAmJuB,UAAU;EAlJ9C,eAAe,EAkJqB,UAAU;EA/I5C,UAAU,EAAE,IAAK;EAiJjB,WAAW,EAAE,GAAI,GAClB;;AAED,AAAA,QAAQ,CAAR;EA1HA,MAAM,EC7BQ,kBAAI;ED8BlB,YAAY,EC5BE,GAAG;ED+Bf,gBAAgB,EChCA,GAAG,GDwJpB;;AAED,AAAA,mBAAmB,CAAnB;EACE,IAAI,ECzJkB,IAAI,GD0J3B;;AAED,AAAA,SAAS,CAAT;EAzHA,YAAY,EC9BE,IAAI;ED+BlB,cAAc,EC7BC,KAAK,GDuJnB;;AAED,AAAA,QAAQ,CAAR;EAxHA,IAAI,EAAE,IAAK;EACX,YAAY,ECtCE,GAAG,GD+JhB;;AAED,AAAA,QAAQ,CAAR;EAnHA,MAAM,EAAE,IAAK;EACb,YAAY,ECzCI,GAAG,GD6JlB;;AAED,AAAA,OAAO,CAAP;EAlHA,IAAI,EAAE,IAAK;EACX,YAAY,EC3CC,IAAI,GD8JhB;;AAED,AAAA,eAAe,CAAf;EAjHA,IAAI,EAAE,IAAK;EACX,YAAY,EC7CG,IAAI,GD+JlB;;AAIG,AAlHJ,YAkHgB,CAlHhB,SAAS,EAkHL,AAlHO,YAkHK,CAlHL,QAAQ,EAkHf,AAlHiB,YAkHL,CAlHK,OAAO,EAkHxB,AAlH0B,YAkHd,CAlHc,eAAe,CAA7C;EACE,MAAM,EClCR,OAAO,GDmCN;;AAgHG,AA9GJ,YA8GgB,CA9GhB,aAAa,EA8GT,AA9GW,YA8GC,CA9GD,qBAAqB,EA8GhC,AA9GkC,YA8GtB,CA9GsB,QAAQ,CAA9C;EACE,IAAI,ECtCN,OAAO,GDuCN;;AA4GG,AAlHJ,YAkHgB,CAlHhB,SAAS,EAkHL,AAlHO,YAkHK,CAlHL,QAAQ,EAkHf,AAlHiB,YAkHL,CAlHK,OAAO,EAkHxB,AAlH0B,YAkHd,CAlHc,eAAe,CAA7C;EACE,MAAM,ECjCR,OAAO,GDkCN;;AAgHG,AA9GJ,YA8GgB,CA9GhB,aAAa,EA8GT,AA9GW,YA8GC,CA9GD,qBAAqB,EA8GhC,AA9GkC,YA8GtB,CA9GsB,QAAQ,CAA9C;EACE,IAAI,ECrCN,OAAO,GDsCN;;AA4GG,AAlHJ,YAkHgB,CAlHhB,SAAS,EAkHL,AAlHO,YAkHK,CAlHL,QAAQ,EAkHf,AAlHiB,YAkHL,CAlHK,OAAO,EAkHxB,AAlH0B,YAkHd,CAlHc,eAAe,CAA7C;EACE,MAAM,EChCR,OAAO,GDiCN;;AAgHG,AA9GJ,YA8GgB,CA9GhB,aAAa,EA8GT,AA9GW,YA8GC,CA9GD,qBAAqB,EA8GhC,AA9GkC,YA8GtB,CA9GsB,QAAQ,CAA9C;EACE,IAAI,ECpCN,OAAO,GDqCN;;AA4GG,AAlHJ,YAkHgB,CAlHhB,SAAS,EAkHL,AAlHO,YAkHK,CAlHL,QAAQ,EAkHf,AAlHiB,YAkHL,CAlHK,OAAO,EAkHxB,AAlH0B,YAkHd,CAlHc,eAAe,CAA7C;EACE,MAAM,EC/BR,OAAO,GDgCN;;AAgHG,AA9GJ,YA8GgB,CA9GhB,aAAa,EA8GT,AA9GW,YA8GC,CA9GD,qBAAqB,EA8GhC,AA9GkC,YA8GtB,CA9GsB,QAAQ,CAA9C;EACE,IAAI,ECnCN,OAAO,GDoCN;;AA4GG,AAlHJ,YAkHgB,CAlHhB,SAAS,EAkHL,AAlHO,YAkHK,CAlHL,QAAQ,EAkHf,AAlHiB,YAkHL,CAlHK,OAAO,EAkHxB,AAlH0B,YAkHd,CAlHc,eAAe,CAA7C;EACE,MAAM,EC9BR,OAAO,GD+BN;;AAgHG,AA9GJ,YA8GgB,CA9GhB,aAAa,EA8GT,AA9GW,YA8GC,CA9GD,qBAAqB,EA8GhC,AA9GkC,YA8GtB,CA9GsB,QAAQ,CAA9C;EACE,IAAI,EClCN,OAAO,GDmCN;;AA4GG,AAlHJ,YAkHgB,CAlHhB,SAAS,EAkHL,AAlHO,YAkHK,CAlHL,QAAQ,EAkHf,AAlHiB,YAkHL,CAlHK,OAAO,EAkHxB,AAlH0B,YAkHd,CAlHc,eAAe,CAA7C;EACE,MAAM,EC7BR,OAAO,GD8BN;;AAgHG,AA9GJ,YA8GgB,CA9GhB,aAAa,EA8GT,AA9GW,YA8GC,CA9GD,qBAAqB,EA8GhC,AA9GkC,YA8GtB,CA9GsB,QAAQ,CAA9C;EACE,IAAI,ECjCN,OAAO,GDkCN;;AA4GG,AAlHJ,YAkHgB,CAlHhB,SAAS,EAkHL,AAlHO,YAkHK,CAlHL,QAAQ,EAkHf,AAlHiB,YAkHL,CAlHK,OAAO,EAkHxB,AAlH0B,YAkHd,CAlHc,eAAe,CAA7C;EACE,MAAM,EC5BR,OAAO,GD6BN;;AAgHG,AA9GJ,YA8GgB,CA9GhB,aAAa,EA8GT,AA9GW,YA8GC,CA9GD,qBAAqB,EA8GhC,AA9GkC,YA8GtB,CA9GsB,QAAQ,CAA9C;EACE,IAAI,EChCN,OAAO,GDiCN;;AA4GG,AAlHJ,YAkHgB,CAlHhB,SAAS,EAkHL,AAlHO,YAkHK,CAlHL,QAAQ,EAkHf,AAlHiB,YAkHL,CAlHK,OAAO,EAkHxB,AAlH0B,YAkHd,CAlHc,eAAe,CAA7C;EACE,MAAM,EC3BR,OAAO,GD4BN;;AAgHG,AA9GJ,YA8GgB,CA9GhB,aAAa,EA8GT,AA9GW,YA8GC,CA9GD,qBAAqB,EA8GhC,AA9GkC,YA8GtB,CA9GsB,QAAQ,CAA9C;EACE,IAAI,EC/BN,OAAO,GDgCN;;AA4GG,AAlHJ,YAkHgB,CAlHhB,SAAS,EAkHL,AAlHO,YAkHK,CAlHL,QAAQ,EAkHf,AAlHiB,YAkHL,CAlHK,OAAO,EAkHxB,AAlH0B,YAkHd,CAlHc,eAAe,CAA7C;EACE,MAAM,EC1BR,OAAO,GD2BN;;AAgHG,AA9GJ,YA8GgB,CA9GhB,aAAa,EA8GT,AA9GW,YA8GC,CA9GD,qBAAqB,EA8GhC,AA9GkC,YA8GtB,CA9GsB,QAAQ,CAA9C;EACE,IAAI,EC9BN,OAAO,GD+BN;;AA4GG,AAlHJ,YAkHgB,CAlHhB,SAAS,EAkHL,AAlHO,YAkHK,CAlHL,QAAQ,EAkHf,AAlHiB,YAkHL,CAlHK,OAAO,EAkHxB,AAlH0B,YAkHd,CAlHc,eAAe,CAA7C;EACE,MAAM,ECzBR,OAAO,GD0BN;;AAgHG,AA9GJ,YA8GgB,CA9GhB,aAAa,EA8GT,AA9GW,YA8GC,CA9GD,qBAAqB,EA8GhC,AA9GkC,YA8GtB,CA9GsB,QAAQ,CAA9C;EACE,IAAI,EC7BN,OAAO,GD8BN;;AA4GG,AAlHJ,YAkHgB,CAlHhB,SAAS,EAkHL,AAlHO,YAkHK,CAlHL,QAAQ,EAkHf,AAlHiB,YAkHL,CAlHK,OAAO,EAkHxB,AAlH0B,YAkHd,CAlHc,eAAe,CAA7C;EACE,MAAM,ECxBR,OAAO,GDyBN;;AAgHG,AA9GJ,YA8GgB,CA9GhB,aAAa,EA8GT,AA9GW,YA8GC,CA9GD,qBAAqB,EA8GhC,AA9GkC,YA8GtB,CA9GsB,QAAQ,CAA9C;EACE,IAAI,EC5BN,OAAO,GD6BN;;AA4GG,AAlHJ,YAkHgB,CAlHhB,SAAS,EAkHL,AAlHO,YAkHK,CAlHL,QAAQ,EAkHf,AAlHiB,YAkHL,CAlHK,OAAO,EAkHxB,AAlH0B,YAkHd,CAlHc,eAAe,CAA7C;EACE,MAAM,ECvBR,OAAO,GDwBN;;AAgHG,AA9GJ,YA8GgB,CA9GhB,aAAa,EA8GT,AA9GW,YA8GC,CA9GD,qBAAqB,EA8GhC,AA9GkC,YA8GtB,CA9GsB,QAAQ,CAA9C;EACE,IAAI,EC3BN,OAAO,GD4BN;;AA4GG,AAlHJ,YAkHgB,CAlHhB,SAAS,EAkHL,AAlHO,YAkHK,CAlHL,QAAQ,EAkHf,AAlHiB,YAkHL,CAlHK,OAAO,EAkHxB,AAlH0B,YAkHd,CAlHc,eAAe,CAA7C;EACE,MAAM,ECtBR,OAAO,GDuBN;;AAgHG,AA9GJ,YA8GgB,CA9GhB,aAAa,EA8GT,AA9GW,YA8GC,CA9GD,qBAAqB,EA8GhC,AA9GkC,YA8GtB,CA9GsB,QAAQ,CAA9C;EACE,IAAI,EC1BN,OAAO,GD2BN;;AA4GG,AAlHJ,YAkHgB,CAlHhB,SAAS,EAkHL,AAlHO,YAkHK,CAlHL,QAAQ,EAkHf,AAlHiB,YAkHL,CAlHK,OAAO,EAkHxB,AAlH0B,YAkHd,CAlHc,eAAe,CAA7C;EACE,MAAM,ECrBR,OAAO,GDsBN;;AAgHG,AA9GJ,YA8GgB,CA9GhB,aAAa,EA8GT,AA9GW,YA8GC,CA9GD,qBAAqB,EA8GhC,AA9GkC,YA8GtB,CA9GsB,QAAQ,CAA9C;EACE,IAAI,ECzBN,OAAO,GD0BN;;AA4GG,AAlHJ,YAkHgB,CAlHhB,SAAS,EAkHL,AAlHO,YAkHK,CAlHL,QAAQ,EAkHf,AAlHiB,YAkHL,CAlHK,OAAO,EAkHxB,AAlH0B,YAkHd,CAlHc,eAAe,CAA7C;EACE,MAAM,ECpBR,OAAO,GDqBN;;AAgHG,AA9GJ,YA8GgB,CA9GhB,aAAa,EA8GT,AA9GW,YA8GC,CA9GD,qBAAqB,EA8GhC,AA9GkC,YA8GtB,CA9GsB,QAAQ,CAA9C;EACE,IAAI,ECxBN,OAAO,GDyBN;;AA0HG,AAAA,UAAU,CAAV;EAtOJ,OAAO,EAAE,KAAM;EACf,QAAQ,EAAE,QAAS;EACnB,KAAK,EAHoC,IAAI,GAyOxC;EAFD,AAAA,UAAU,AAlOb,OAAO,CAAC;IACP,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK;IACZ,OAAO,EAAE,EAAG;IACZ,KAAK,EAAE,CAAE;IACT,MAAM,EAAE,CAAE;IACV,cAAc,EAAE,IAAM,GACvB;EA2NG,AAAA,UAAU,AAzNb,MAAM,CAAC;IACN,OAAO,EAAE,EAAG;IACZ,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK,GACb;EAqNG,AAnNF,UAmNY,GAnNZ,GAAG,CAAC;IACJ,OAAO,EAAE,KAAM;IACf,QAAQ,EAAE,QAAS;IACnB,GAAG,EAAE,CAAE;IACP,IAAI,EAAE,CAAE,GACT;;AA8MG,AAAA,gBAAgB,CAAhB;EAtOJ,OAAO,EAAE,KAAM;EACf,QAAQ,EAAE,QAAS;EACnB,KAAK,EAHoC,IAAI,GAyOxC;EAFD,AAAA,gBAAgB,AAlOnB,OAAO,CAAC;IACP,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK;IACZ,OAAO,EAAE,EAAG;IACZ,KAAK,EAAE,CAAE;IACT,MAAM,EAAE,CAAE;IACV,cAAc,EAAE,MAAM,GACvB;EA2NG,AAAA,gBAAgB,AAzNnB,MAAM,CAAC;IACN,OAAO,EAAE,EAAG;IACZ,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK,GACb;EAqNG,AAnNF,gBAmNkB,GAnNlB,GAAG,CAAC;IACJ,OAAO,EAAE,KAAM;IACf,QAAQ,EAAE,QAAS;IACnB,GAAG,EAAE,CAAE;IACP,IAAI,EAAE,CAAE,GACT;;AA8MG,AAAA,gBAAgB,CAAhB;EAtOJ,OAAO,EAAE,KAAM;EACf,QAAQ,EAAE,QAAS;EACnB,KAAK,EAHoC,IAAI,GAyOxC;EAFD,AAAA,gBAAgB,AAlOnB,OAAO,CAAC;IACP,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK;IACZ,OAAO,EAAE,EAAG;IACZ,KAAK,EAAE,CAAE;IACT,MAAM,EAAE,CAAE;IACV,cAAc,EAAE,cAAM,GACvB;EA2NG,AAAA,gBAAgB,AAzNnB,MAAM,CAAC;IACN,OAAO,EAAE,EAAG;IACZ,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK,GACb;EAqNG,AAnNF,gBAmNkB,GAnNlB,GAAG,CAAC;IACJ,OAAO,EAAE,KAAM;IACf,QAAQ,EAAE,QAAS;IACnB,GAAG,EAAE,CAAE;IACP,IAAI,EAAE,CAAE,GACT;;AA8MG,AAAA,eAAe,CAAf;EAtOJ,OAAO,EAAE,KAAM;EACf,QAAQ,EAAE,QAAS;EACnB,KAAK,EAHoC,IAAI,GAyOxC;EAFD,AAAA,eAAe,AAlOlB,OAAO,CAAC;IACP,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK;IACZ,OAAO,EAAE,EAAG;IACZ,KAAK,EAAE,CAAE;IACT,MAAM,EAAE,CAAE;IACV,cAAc,EAAE,cAAM,GACvB;EA2NG,AAAA,eAAe,AAzNlB,MAAM,CAAC;IACN,OAAO,EAAE,EAAG;IACZ,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK,GACb;EAqNG,AAnNF,eAmNiB,GAnNjB,GAAG,CAAC;IACJ,OAAO,EAAE,KAAM;IACf,QAAQ,EAAE,QAAS;IACnB,GAAG,EAAE,CAAE;IACP,IAAI,EAAE,CAAE,GACT;;AA8MG,AAAA,eAAe,CAAf;EAtOJ,OAAO,EAAE,KAAM;EACf,QAAQ,EAAE,QAAS;EACnB,KAAK,EAHoC,IAAI,GAyOxC;EAFD,AAAA,eAAe,AAlOlB,OAAO,CAAC;IACP,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK;IACZ,OAAO,EAAE,EAAG;IACZ,KAAK,EAAE,CAAE;IACT,MAAM,EAAE,CAAE;IACV,cAAc,EAAE,GAAM,GACvB;EA2NG,AAAA,eAAe,AAzNlB,MAAM,CAAC;IACN,OAAO,EAAE,EAAG;IACZ,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK,GACb;EAqNG,AAnNF,eAmNiB,GAnNjB,GAAG,CAAC;IACJ,OAAO,EAAE,KAAM;IACf,QAAQ,EAAE,QAAS;IACnB,GAAG,EAAE,CAAE;IACP,IAAI,EAAE,CAAE,GACT;;AA8MG,AAAA,kBAAkB,CAAlB;EAtOJ,OAAO,EAAE,KAAM;EACf,QAAQ,EAAE,QAAS;EACnB,KAAK,EAHoC,IAAI,GAyOxC;EAFD,AAAA,kBAAkB,AAlOrB,OAAO,CAAC;IACP,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK;IACZ,OAAO,EAAE,EAAG;IACZ,KAAK,EAAE,CAAE;IACT,MAAM,EAAE,CAAE;IACV,cAAc,EAAE,GAAM,GACvB;EA2NG,AAAA,kBAAkB,AAzNrB,MAAM,CAAC;IACN,OAAO,EAAE,EAAG;IACZ,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK,GACb;EAqNG,AAnNF,kBAmNoB,GAnNpB,GAAG,CAAC;IACJ,OAAO,EAAE,KAAM;IACf,QAAQ,EAAE,QAAS;IACnB,GAAG,EAAE,CAAE;IACP,IAAI,EAAE,CAAE,GACT;;AA8MG,AAAA,iBAAiB,CAAjB;EAtOJ,OAAO,EAAE,KAAM;EACf,QAAQ,EAAE,QAAS;EACnB,KAAK,EAHoC,IAAI,GAyOxC;EAFD,AAAA,iBAAiB,AAlOpB,OAAO,CAAC;IACP,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK;IACZ,OAAO,EAAE,EAAG;IACZ,KAAK,EAAE,CAAE;IACT,MAAM,EAAE,CAAE;IACV,cAAc,EAAE,cAAM,GACvB;EA2NG,AAAA,iBAAiB,AAzNpB,MAAM,CAAC;IACN,OAAO,EAAE,EAAG;IACZ,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK,GACb;EAqNG,AAnNF,iBAmNmB,GAnNnB,GAAG,CAAC;IACJ,OAAO,EAAE,KAAM;IACf,QAAQ,EAAE,QAAS;IACnB,GAAG,EAAE,CAAE;IACP,IAAI,EAAE,CAAE,GACT;;AA8MG,AAAA,eAAe,CAAf;EAtOJ,OAAO,EAAE,KAAM;EACf,QAAQ,EAAE,QAAS;EACnB,KAAK,EAHoC,IAAI,GAyOxC;EAFD,AAAA,eAAe,AAlOlB,OAAO,CAAC;IACP,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK;IACZ,OAAO,EAAE,EAAG;IACZ,KAAK,EAAE,CAAE;IACT,MAAM,EAAE,CAAE;IACV,cAAc,EAAE,KAAM,GACvB;EA2NG,AAAA,eAAe,AAzNlB,MAAM,CAAC;IACN,OAAO,EAAE,EAAG;IACZ,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK,GACb;EAqNG,AAnNF,eAmNiB,GAnNjB,GAAG,CAAC;IACJ,OAAO,EAAE,KAAM;IACf,QAAQ,EAAE,QAAS;IACnB,GAAG,EAAE,CAAE;IACP,IAAI,EAAE,CAAE,GACT;;AA8MG,AAAA,kBAAkB,CAAlB;EAtOJ,OAAO,EAAE,KAAM;EACf,QAAQ,EAAE,QAAS;EACnB,KAAK,EAHoC,IAAI,GAyOxC;EAFD,AAAA,kBAAkB,AAlOrB,OAAO,CAAC;IACP,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK;IACZ,OAAO,EAAE,EAAG;IACZ,KAAK,EAAE,CAAE;IACT,MAAM,EAAE,CAAE;IACV,cAAc,EAAE,aAAM,GACvB;EA2NG,AAAA,kBAAkB,AAzNrB,MAAM,CAAC;IACN,OAAO,EAAE,EAAG;IACZ,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK,GACb;EAqNG,AAnNF,kBAmNoB,GAnNpB,GAAG,CAAC;IACJ,OAAO,EAAE,KAAM;IACf,QAAQ,EAAE,QAAS;IACnB,GAAG,EAAE,CAAE;IACP,IAAI,EAAE,CAAE,GACT;;AA8MG,AAAA,eAAe,CAAf;EAtOJ,OAAO,EAAE,KAAM;EACf,QAAQ,EAAE,QAAS;EACnB,KAAK,EAHoC,IAAI,GAyOxC;EAFD,AAAA,eAAe,AAlOlB,OAAO,CAAC;IACP,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK;IACZ,OAAO,EAAE,EAAG;IACZ,KAAK,EAAE,CAAE;IACT,MAAM,EAAE,CAAE;IACV,cAAc,EAAE,GAAM,GACvB;EA2NG,AAAA,eAAe,AAzNlB,MAAM,CAAC;IACN,OAAO,EAAE,EAAG;IACZ,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK,GACb;EAqNG,AAnNF,eAmNiB,GAnNjB,GAAG,CAAC;IACJ,OAAO,EAAE,KAAM;IACf,QAAQ,EAAE,QAAS;IACnB,GAAG,EAAE,CAAE;IACP,IAAI,EAAE,CAAE,GACT;;AA8MG,AAAA,iBAAiB,CAAjB;EAtOJ,OAAO,EAAE,KAAM;EACf,QAAQ,EAAE,QAAS;EACnB,KAAK,EAHoC,IAAI,GAyOxC;EAFD,AAAA,iBAAiB,AAlOpB,OAAO,CAAC;IACP,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK;IACZ,OAAO,EAAE,EAAG;IACZ,KAAK,EAAE,CAAE;IACT,MAAM,EAAE,CAAE;IACV,cAAc,EAAE,MAAM,GACvB;EA2NG,AAAA,iBAAiB,AAzNpB,MAAM,CAAC;IACN,OAAO,EAAE,EAAG;IACZ,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK,GACb;EAqNG,AAnNF,iBAmNmB,GAnNnB,GAAG,CAAC;IACJ,OAAO,EAAE,KAAM;IACf,QAAQ,EAAE,QAAS;IACnB,GAAG,EAAE,CAAE;IACP,IAAI,EAAE,CAAE,GACT;;AA8MG,AAAA,iBAAiB,CAAjB;EAtOJ,OAAO,EAAE,KAAM;EACf,QAAQ,EAAE,QAAS;EACnB,KAAK,EAHoC,IAAI,GAyOxC;EAFD,AAAA,iBAAiB,AAlOpB,OAAO,CAAC;IACP,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK;IACZ,OAAO,EAAE,EAAG;IACZ,KAAK,EAAE,CAAE;IACT,MAAM,EAAE,CAAE;IACV,cAAc,EAAE,cAAM,GACvB;EA2NG,AAAA,iBAAiB,AAzNpB,MAAM,CAAC;IACN,OAAO,EAAE,EAAG;IACZ,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK,GACb;EAqNG,AAnNF,iBAmNmB,GAnNnB,GAAG,CAAC;IACJ,OAAO,EAAE,KAAM;IACf,QAAQ,EAAE,QAAS;IACnB,GAAG,EAAE,CAAE;IACP,IAAI,EAAE,CAAE,GACT;;AA8MG,AAAA,UAAU,CAAV;EAtOJ,OAAO,EAAE,KAAM;EACf,QAAQ,EAAE,QAAS;EACnB,KAAK,EAHoC,IAAI,GAyOxC;EAFD,AAAA,UAAU,AAlOb,OAAO,CAAC;IACP,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK;IACZ,OAAO,EAAE,EAAG;IACZ,KAAK,EAAE,CAAE;IACT,MAAM,EAAE,CAAE;IACV,cAAc,EAAE,GAAM,GACvB;EA2NG,AAAA,UAAU,AAzNb,MAAM,CAAC;IACN,OAAO,EAAE,EAAG;IACZ,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK,GACb;EAqNG,AAnNF,UAmNY,GAnNZ,GAAG,CAAC;IACJ,OAAO,EAAE,KAAM;IACf,QAAQ,EAAE,QAAS;IACnB,GAAG,EAAE,CAAE;IACP,IAAI,EAAE,CAAE,GACT;;AA8MG,AAAA,eAAe,CAAf;EAtOJ,OAAO,EAAE,KAAM;EACf,QAAQ,EAAE,QAAS;EACnB,KAAK,EAHoC,IAAI,GAyOxC;EAFD,AAAA,eAAe,AAlOlB,OAAO,CAAC;IACP,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK;IACZ,OAAO,EAAE,EAAG;IACZ,KAAK,EAAE,CAAE;IACT,MAAM,EAAE,CAAE;IACV,cAAc,EAAE,GAAM,GACvB;EA2NG,AAAA,eAAe,AAzNlB,MAAM,CAAC;IACN,OAAO,EAAE,EAAG;IACZ,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK,GACb;EAqNG,AAnNF,eAmNiB,GAnNjB,GAAG,CAAC;IACJ,OAAO,EAAE,KAAM;IACf,QAAQ,EAAE,QAAS;IACnB,GAAG,EAAE,CAAE;IACP,IAAI,EAAE,CAAE,GACT;;AA8MG,AAAA,kBAAkB,CAAlB;EAtOJ,OAAO,EAAE,KAAM;EACf,QAAQ,EAAE,QAAS;EACnB,KAAK,EAHoC,IAAI,GAyOxC;EAFD,AAAA,kBAAkB,AAlOrB,OAAO,CAAC;IACP,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK;IACZ,OAAO,EAAE,EAAG;IACZ,KAAK,EAAE,CAAE;IACT,MAAM,EAAE,CAAE;IACV,cAAc,EAAE,KAAM,GACvB;EA2NG,AAAA,kBAAkB,AAzNrB,MAAM,CAAC;IACN,OAAO,EAAE,EAAG;IACZ,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK,GACb;EAqNG,AAnNF,kBAmNoB,GAnNpB,GAAG,CAAC;IACJ,OAAO,EAAE,KAAM;IACf,QAAQ,EAAE,QAAS;IACnB,GAAG,EAAE,CAAE;IACP,IAAI,EAAE,CAAE,GACT;;AA8MG,AAAA,iBAAiB,CAAjB;EAtOJ,OAAO,EAAE,KAAM;EACf,QAAQ,EAAE,QAAS;EACnB,KAAK,EAHoC,IAAI,GAyOxC;EAFD,AAAA,iBAAiB,AAlOpB,OAAO,CAAC;IACP,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK;IACZ,OAAO,EAAE,EAAG;IACZ,KAAK,EAAE,CAAE;IACT,MAAM,EAAE,CAAE;IACV,cAAc,EAAE,cAAM,GACvB;EA2NG,AAAA,iBAAiB,AAzNpB,MAAM,CAAC;IACN,OAAO,EAAE,EAAG;IACZ,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK,GACb;EAqNG,AAnNF,iBAmNmB,GAnNnB,GAAG,CAAC;IACJ,OAAO,EAAE,KAAM;IACf,QAAQ,EAAE,QAAS;IACnB,GAAG,EAAE,CAAE;IACP,IAAI,EAAE,CAAE,GACT;;AA8MG,AAAA,iBAAiB,CAAjB;EAtOJ,OAAO,EAAE,KAAM;EACf,QAAQ,EAAE,QAAS;EACnB,KAAK,EAHoC,IAAI,GAyOxC;EAFD,AAAA,iBAAiB,AAlOpB,OAAO,CAAC;IACP,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK;IACZ,OAAO,EAAE,EAAG;IACZ,KAAK,EAAE,CAAE;IACT,MAAM,EAAE,CAAE;IACV,cAAc,EAAE,GAAM,GACvB;EA2NG,AAAA,iBAAiB,AAzNpB,MAAM,CAAC;IACN,OAAO,EAAE,EAAG;IACZ,OAAO,EAAE,KAAM;IACf,KAAK,EAAE,IAAK,GACb;EAqNG,AAnNF,iBAmNmB,GAnNnB,GAAG,CAAC;IACJ,OAAO,EAAE,KAAM;IACf,QAAQ,EAAE,QAAS;IACnB,GAAG,EAAE,CAAE;IACP,IAAI,EAAE,CAAE,GACT", - "names": [] -} \ No newline at end of file diff --git a/dist/chartist.js b/dist/chartist.js deleted file mode 100644 index 68536a707..000000000 --- a/dist/chartist.js +++ /dev/null @@ -1,4516 +0,0 @@ -(function (root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module unless amdModuleId is set - define('Chartist', [], function () { - return (root['Chartist'] = factory()); - }); - } else if (typeof module === 'object' && module.exports) { - // Node. Does not work with strict CommonJS, but - // only CommonJS-like environments that support module.exports, - // like Node. - module.exports = factory(); - } else { - root['Chartist'] = factory(); - } -}(this, function () { - -/* Chartist.js 0.11.4 - * Copyright Ā© 2019 Gion Kunz - * Free to use under either the WTFPL license or the MIT license. - * https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-WTFPL - * https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-MIT - */ -/** - * The core module of Chartist that is mainly providing static functions and higher level functions for chart modules. - * - * @module Chartist.Core - */ -var Chartist = { - version: '0.11.4' -}; - -(function (globalRoot, Chartist) { - 'use strict'; - - var window = globalRoot.window; - var document = globalRoot.document; - - /** - * This object contains all namespaces used within Chartist. - * - * @memberof Chartist.Core - * @type {{svg: string, xmlns: string, xhtml: string, xlink: string, ct: string}} - */ - Chartist.namespaces = { - svg: 'http://www.w3.org/2000/svg', - xmlns: 'http://www.w3.org/2000/xmlns/', - xhtml: 'http://www.w3.org/1999/xhtml', - xlink: 'http://www.w3.org/1999/xlink', - ct: 'http://gionkunz.github.com/chartist-js/ct' - }; - - /** - * Helps to simplify functional style code - * - * @memberof Chartist.Core - * @param {*} n This exact value will be returned by the noop function - * @return {*} The same value that was provided to the n parameter - */ - Chartist.noop = function (n) { - return n; - }; - - /** - * Generates a-z from a number 0 to 26 - * - * @memberof Chartist.Core - * @param {Number} n A number from 0 to 26 that will result in a letter a-z - * @return {String} A character from a-z based on the input number n - */ - Chartist.alphaNumerate = function (n) { - // Limit to a-z - return String.fromCharCode(97 + n % 26); - }; - - /** - * Simple recursive object extend - * - * @memberof Chartist.Core - * @param {Object} target Target object where the source will be merged into - * @param {Object...} sources This object (objects) will be merged into target and then target is returned - * @return {Object} An object that has the same reference as target but is extended and merged with the properties of source - */ - Chartist.extend = function (target) { - var i, source, sourceProp; - target = target || {}; - - for (i = 1; i < arguments.length; i++) { - source = arguments[i]; - for (var prop in source) { - sourceProp = source[prop]; - if (typeof sourceProp === 'object' && sourceProp !== null && !(sourceProp instanceof Array)) { - target[prop] = Chartist.extend(target[prop], sourceProp); - } else { - target[prop] = sourceProp; - } - } - } - - return target; - }; - - /** - * Replaces all occurrences of subStr in str with newSubStr and returns a new string. - * - * @memberof Chartist.Core - * @param {String} str - * @param {String} subStr - * @param {String} newSubStr - * @return {String} - */ - Chartist.replaceAll = function(str, subStr, newSubStr) { - return str.replace(new RegExp(subStr, 'g'), newSubStr); - }; - - /** - * Converts a number to a string with a unit. If a string is passed then this will be returned unmodified. - * - * @memberof Chartist.Core - * @param {Number} value - * @param {String} unit - * @return {String} Returns the passed number value with unit. - */ - Chartist.ensureUnit = function(value, unit) { - if(typeof value === 'number') { - value = value + unit; - } - - return value; - }; - - /** - * Converts a number or string to a quantity object. - * - * @memberof Chartist.Core - * @param {String|Number} input - * @return {Object} Returns an object containing the value as number and the unit as string. - */ - Chartist.quantity = function(input) { - if (typeof input === 'string') { - var match = (/^(\d+)\s*(.*)$/g).exec(input); - return { - value : +match[1], - unit: match[2] || undefined - }; - } - return { value: input }; - }; - - /** - * This is a wrapper around document.querySelector that will return the query if it's already of type Node - * - * @memberof Chartist.Core - * @param {String|Node} query The query to use for selecting a Node or a DOM node that will be returned directly - * @return {Node} - */ - Chartist.querySelector = function(query) { - return query instanceof Node ? query : document.querySelector(query); - }; - - /** - * Functional style helper to produce array with given length initialized with undefined values - * - * @memberof Chartist.Core - * @param length - * @return {Array} - */ - Chartist.times = function(length) { - return Array.apply(null, new Array(length)); - }; - - /** - * Sum helper to be used in reduce functions - * - * @memberof Chartist.Core - * @param previous - * @param current - * @return {*} - */ - Chartist.sum = function(previous, current) { - return previous + (current ? current : 0); - }; - - /** - * Multiply helper to be used in `Array.map` for multiplying each value of an array with a factor. - * - * @memberof Chartist.Core - * @param {Number} factor - * @returns {Function} Function that can be used in `Array.map` to multiply each value in an array - */ - Chartist.mapMultiply = function(factor) { - return function(num) { - return num * factor; - }; - }; - - /** - * Add helper to be used in `Array.map` for adding a addend to each value of an array. - * - * @memberof Chartist.Core - * @param {Number} addend - * @returns {Function} Function that can be used in `Array.map` to add a addend to each value in an array - */ - Chartist.mapAdd = function(addend) { - return function(num) { - return num + addend; - }; - }; - - /** - * Map for multi dimensional arrays where their nested arrays will be mapped in serial. The output array will have the length of the largest nested array. The callback function is called with variable arguments where each argument is the nested array value (or undefined if there are no more values). - * - * @memberof Chartist.Core - * @param arr - * @param cb - * @return {Array} - */ - Chartist.serialMap = function(arr, cb) { - var result = [], - length = Math.max.apply(null, arr.map(function(e) { - return e.length; - })); - - Chartist.times(length).forEach(function(e, index) { - var args = arr.map(function(e) { - return e[index]; - }); - - result[index] = cb.apply(null, args); - }); - - return result; - }; - - /** - * This helper function can be used to round values with certain precision level after decimal. This is used to prevent rounding errors near float point precision limit. - * - * @memberof Chartist.Core - * @param {Number} value The value that should be rounded with precision - * @param {Number} [digits] The number of digits after decimal used to do the rounding - * @returns {number} Rounded value - */ - Chartist.roundWithPrecision = function(value, digits) { - var precision = Math.pow(10, digits || Chartist.precision); - return Math.round(value * precision) / precision; - }; - - /** - * Precision level used internally in Chartist for rounding. If you require more decimal places you can increase this number. - * - * @memberof Chartist.Core - * @type {number} - */ - Chartist.precision = 8; - - /** - * A map with characters to escape for strings to be safely used as attribute values. - * - * @memberof Chartist.Core - * @type {Object} - */ - Chartist.escapingMap = { - '&': '&', - '<': '<', - '>': '>', - '"': '"', - '\'': ''' - }; - - /** - * This function serializes arbitrary data to a string. In case of data that can't be easily converted to a string, this function will create a wrapper object and serialize the data using JSON.stringify. The outcoming string will always be escaped using Chartist.escapingMap. - * If called with null or undefined the function will return immediately with null or undefined. - * - * @memberof Chartist.Core - * @param {Number|String|Object} data - * @return {String} - */ - Chartist.serialize = function(data) { - if(data === null || data === undefined) { - return data; - } else if(typeof data === 'number') { - data = ''+data; - } else if(typeof data === 'object') { - data = JSON.stringify({data: data}); - } - - return Object.keys(Chartist.escapingMap).reduce(function(result, key) { - return Chartist.replaceAll(result, key, Chartist.escapingMap[key]); - }, data); - }; - - /** - * This function de-serializes a string previously serialized with Chartist.serialize. The string will always be unescaped using Chartist.escapingMap before it's returned. Based on the input value the return type can be Number, String or Object. JSON.parse is used with try / catch to see if the unescaped string can be parsed into an Object and this Object will be returned on success. - * - * @memberof Chartist.Core - * @param {String} data - * @return {String|Number|Object} - */ - Chartist.deserialize = function(data) { - if(typeof data !== 'string') { - return data; - } - - data = Object.keys(Chartist.escapingMap).reduce(function(result, key) { - return Chartist.replaceAll(result, Chartist.escapingMap[key], key); - }, data); - - try { - data = JSON.parse(data); - data = data.data !== undefined ? data.data : data; - } catch(e) {} - - return data; - }; - - /** - * Create or reinitialize the SVG element for the chart - * - * @memberof Chartist.Core - * @param {Node} container The containing DOM Node object that will be used to plant the SVG element - * @param {String} width Set the width of the SVG element. Default is 100% - * @param {String} height Set the height of the SVG element. Default is 100% - * @param {String} className Specify a class to be added to the SVG element - * @return {Object} The created/reinitialized SVG element - */ - Chartist.createSvg = function (container, width, height, className) { - var svg; - - width = width || '100%'; - height = height || '100%'; - - // Check if there is a previous SVG element in the container that contains the Chartist XML namespace and remove it - // Since the DOM API does not support namespaces we need to manually search the returned list http://www.w3.org/TR/selectors-api/ - Array.prototype.slice.call(container.querySelectorAll('svg')).filter(function filterChartistSvgObjects(svg) { - return svg.getAttributeNS(Chartist.namespaces.xmlns, 'ct'); - }).forEach(function removePreviousElement(svg) { - container.removeChild(svg); - }); - - // Create svg object with width and height or use 100% as default - svg = new Chartist.Svg('svg').attr({ - width: width, - height: height - }).addClass(className); - - svg._node.style.width = width; - svg._node.style.height = height; - - // Add the DOM node to our container - container.appendChild(svg._node); - - return svg; - }; - - /** - * Ensures that the data object passed as second argument to the charts is present and correctly initialized. - * - * @param {Object} data The data object that is passed as second argument to the charts - * @return {Object} The normalized data object - */ - Chartist.normalizeData = function(data, reverse, multi) { - var labelCount; - var output = { - raw: data, - normalized: {} - }; - - // Check if we should generate some labels based on existing series data - output.normalized.series = Chartist.getDataArray({ - series: data.series || [] - }, reverse, multi); - - // If all elements of the normalized data array are arrays we're dealing with - // multi series data and we need to find the largest series if they are un-even - if (output.normalized.series.every(function(value) { - return value instanceof Array; - })) { - // Getting the series with the the most elements - labelCount = Math.max.apply(null, output.normalized.series.map(function(series) { - return series.length; - })); - } else { - // We're dealing with Pie data so we just take the normalized array length - labelCount = output.normalized.series.length; - } - - output.normalized.labels = (data.labels || []).slice(); - // Padding the labels to labelCount with empty strings - Array.prototype.push.apply( - output.normalized.labels, - Chartist.times(Math.max(0, labelCount - output.normalized.labels.length)).map(function() { - return ''; - }) - ); - - if(reverse) { - Chartist.reverseData(output.normalized); - } - - return output; - }; - - /** - * This function safely checks if an objects has an owned property. - * - * @param {Object} object The object where to check for a property - * @param {string} property The property name - * @returns {boolean} Returns true if the object owns the specified property - */ - Chartist.safeHasProperty = function(object, property) { - return object !== null && - typeof object === 'object' && - object.hasOwnProperty(property); - }; - - /** - * Checks if a value is considered a hole in the data series. - * - * @param {*} value - * @returns {boolean} True if the value is considered a data hole - */ - Chartist.isDataHoleValue = function(value) { - return value === null || - value === undefined || - (typeof value === 'number' && isNaN(value)); - }; - - /** - * Reverses the series, labels and series data arrays. - * - * @memberof Chartist.Core - * @param data - */ - Chartist.reverseData = function(data) { - data.labels.reverse(); - data.series.reverse(); - for (var i = 0; i < data.series.length; i++) { - if(typeof(data.series[i]) === 'object' && data.series[i].data !== undefined) { - data.series[i].data.reverse(); - } else if(data.series[i] instanceof Array) { - data.series[i].reverse(); - } - } - }; - - /** - * Convert data series into plain array - * - * @memberof Chartist.Core - * @param {Object} data The series object that contains the data to be visualized in the chart - * @param {Boolean} [reverse] If true the whole data is reversed by the getDataArray call. This will modify the data object passed as first parameter. The labels as well as the series order is reversed. The whole series data arrays are reversed too. - * @param {Boolean} [multi] Create a multi dimensional array from a series data array where a value object with `x` and `y` values will be created. - * @return {Array} A plain array that contains the data to be visualized in the chart - */ - Chartist.getDataArray = function(data, reverse, multi) { - // Recursively walks through nested arrays and convert string values to numbers and objects with value properties - // to values. Check the tests in data core -> data normalization for a detailed specification of expected values - function recursiveConvert(value) { - if(Chartist.safeHasProperty(value, 'value')) { - // We are dealing with value object notation so we need to recurse on value property - return recursiveConvert(value.value); - } else if(Chartist.safeHasProperty(value, 'data')) { - // We are dealing with series object notation so we need to recurse on data property - return recursiveConvert(value.data); - } else if(value instanceof Array) { - // Data is of type array so we need to recurse on the series - return value.map(recursiveConvert); - } else if(Chartist.isDataHoleValue(value)) { - // We're dealing with a hole in the data and therefore need to return undefined - // We're also returning undefined for multi value output - return undefined; - } else { - // We need to prepare multi value output (x and y data) - if(multi) { - var multiValue = {}; - - // Single series value arrays are assumed to specify the Y-Axis value - // For example: [1, 2] => [{x: undefined, y: 1}, {x: undefined, y: 2}] - // If multi is a string then it's assumed that it specified which dimension should be filled as default - if(typeof multi === 'string') { - multiValue[multi] = Chartist.getNumberOrUndefined(value); - } else { - multiValue.y = Chartist.getNumberOrUndefined(value); - } - - multiValue.x = value.hasOwnProperty('x') ? Chartist.getNumberOrUndefined(value.x) : multiValue.x; - multiValue.y = value.hasOwnProperty('y') ? Chartist.getNumberOrUndefined(value.y) : multiValue.y; - - return multiValue; - - } else { - // We can return simple data - return Chartist.getNumberOrUndefined(value); - } - } - } - - return data.series.map(recursiveConvert); - }; - - /** - * Converts a number into a padding object. - * - * @memberof Chartist.Core - * @param {Object|Number} padding - * @param {Number} [fallback] This value is used to fill missing values if a incomplete padding object was passed - * @returns {Object} Returns a padding object containing top, right, bottom, left properties filled with the padding number passed in as argument. If the argument is something else than a number (presumably already a correct padding object) then this argument is directly returned. - */ - Chartist.normalizePadding = function(padding, fallback) { - fallback = fallback || 0; - - return typeof padding === 'number' ? { - top: padding, - right: padding, - bottom: padding, - left: padding - } : { - top: typeof padding.top === 'number' ? padding.top : fallback, - right: typeof padding.right === 'number' ? padding.right : fallback, - bottom: typeof padding.bottom === 'number' ? padding.bottom : fallback, - left: typeof padding.left === 'number' ? padding.left : fallback - }; - }; - - Chartist.getMetaData = function(series, index) { - var value = series.data ? series.data[index] : series[index]; - return value ? value.meta : undefined; - }; - - /** - * Calculate the order of magnitude for the chart scale - * - * @memberof Chartist.Core - * @param {Number} value The value Range of the chart - * @return {Number} The order of magnitude - */ - Chartist.orderOfMagnitude = function (value) { - return Math.floor(Math.log(Math.abs(value)) / Math.LN10); - }; - - /** - * Project a data length into screen coordinates (pixels) - * - * @memberof Chartist.Core - * @param {Object} axisLength The svg element for the chart - * @param {Number} length Single data value from a series array - * @param {Object} bounds All the values to set the bounds of the chart - * @return {Number} The projected data length in pixels - */ - Chartist.projectLength = function (axisLength, length, bounds) { - return length / bounds.range * axisLength; - }; - - /** - * Get the height of the area in the chart for the data series - * - * @memberof Chartist.Core - * @param {Object} svg The svg element for the chart - * @param {Object} options The Object that contains all the optional values for the chart - * @return {Number} The height of the area in the chart for the data series - */ - Chartist.getAvailableHeight = function (svg, options) { - return Math.max((Chartist.quantity(options.height).value || svg.height()) - (options.chartPadding.top + options.chartPadding.bottom) - options.axisX.offset, 0); - }; - - /** - * Get highest and lowest value of data array. This Array contains the data that will be visualized in the chart. - * - * @memberof Chartist.Core - * @param {Array} data The array that contains the data to be visualized in the chart - * @param {Object} options The Object that contains the chart options - * @param {String} dimension Axis dimension 'x' or 'y' used to access the correct value and high / low configuration - * @return {Object} An object that contains the highest and lowest value that will be visualized on the chart. - */ - Chartist.getHighLow = function (data, options, dimension) { - // TODO: Remove workaround for deprecated global high / low config. Axis high / low configuration is preferred - options = Chartist.extend({}, options, dimension ? options['axis' + dimension.toUpperCase()] : {}); - - var highLow = { - high: options.high === undefined ? -Number.MAX_VALUE : +options.high, - low: options.low === undefined ? Number.MAX_VALUE : +options.low - }; - var findHigh = options.high === undefined; - var findLow = options.low === undefined; - - // Function to recursively walk through arrays and find highest and lowest number - function recursiveHighLow(data) { - if(data === undefined) { - return undefined; - } else if(data instanceof Array) { - for (var i = 0; i < data.length; i++) { - recursiveHighLow(data[i]); - } - } else { - var value = dimension ? +data[dimension] : +data; - - if (findHigh && value > highLow.high) { - highLow.high = value; - } - - if (findLow && value < highLow.low) { - highLow.low = value; - } - } - } - - // Start to find highest and lowest number recursively - if(findHigh || findLow) { - recursiveHighLow(data); - } - - // Overrides of high / low based on reference value, it will make sure that the invisible reference value is - // used to generate the chart. This is useful when the chart always needs to contain the position of the - // invisible reference value in the view i.e. for bipolar scales. - if (options.referenceValue || options.referenceValue === 0) { - highLow.high = Math.max(options.referenceValue, highLow.high); - highLow.low = Math.min(options.referenceValue, highLow.low); - } - - // If high and low are the same because of misconfiguration or flat data (only the same value) we need - // to set the high or low to 0 depending on the polarity - if (highLow.high <= highLow.low) { - // If both values are 0 we set high to 1 - if (highLow.low === 0) { - highLow.high = 1; - } else if (highLow.low < 0) { - // If we have the same negative value for the bounds we set bounds.high to 0 - highLow.high = 0; - } else if (highLow.high > 0) { - // If we have the same positive value for the bounds we set bounds.low to 0 - highLow.low = 0; - } else { - // If data array was empty, values are Number.MAX_VALUE and -Number.MAX_VALUE. Set bounds to prevent errors - highLow.high = 1; - highLow.low = 0; - } - } - - return highLow; - }; - - /** - * Checks if a value can be safely coerced to a number. This includes all values except null which result in finite numbers when coerced. This excludes NaN, since it's not finite. - * - * @memberof Chartist.Core - * @param value - * @returns {Boolean} - */ - Chartist.isNumeric = function(value) { - return value === null ? false : isFinite(value); - }; - - /** - * Returns true on all falsey values except the numeric value 0. - * - * @memberof Chartist.Core - * @param value - * @returns {boolean} - */ - Chartist.isFalseyButZero = function(value) { - return !value && value !== 0; - }; - - /** - * Returns a number if the passed parameter is a valid number or the function will return undefined. On all other values than a valid number, this function will return undefined. - * - * @memberof Chartist.Core - * @param value - * @returns {*} - */ - Chartist.getNumberOrUndefined = function(value) { - return Chartist.isNumeric(value) ? +value : undefined; - }; - - /** - * Checks if provided value object is multi value (contains x or y properties) - * - * @memberof Chartist.Core - * @param value - */ - Chartist.isMultiValue = function(value) { - return typeof value === 'object' && ('x' in value || 'y' in value); - }; - - /** - * Gets a value from a dimension `value.x` or `value.y` while returning value directly if it's a valid numeric value. If the value is not numeric and it's falsey this function will return `defaultValue`. - * - * @memberof Chartist.Core - * @param value - * @param dimension - * @param defaultValue - * @returns {*} - */ - Chartist.getMultiValue = function(value, dimension) { - if(Chartist.isMultiValue(value)) { - return Chartist.getNumberOrUndefined(value[dimension || 'y']); - } else { - return Chartist.getNumberOrUndefined(value); - } - }; - - /** - * Pollard Rho Algorithm to find smallest factor of an integer value. There are more efficient algorithms for factorization, but this one is quite efficient and not so complex. - * - * @memberof Chartist.Core - * @param {Number} num An integer number where the smallest factor should be searched for - * @returns {Number} The smallest integer factor of the parameter num. - */ - Chartist.rho = function(num) { - if(num === 1) { - return num; - } - - function gcd(p, q) { - if (p % q === 0) { - return q; - } else { - return gcd(q, p % q); - } - } - - function f(x) { - return x * x + 1; - } - - var x1 = 2, x2 = 2, divisor; - if (num % 2 === 0) { - return 2; - } - - do { - x1 = f(x1) % num; - x2 = f(f(x2)) % num; - divisor = gcd(Math.abs(x1 - x2), num); - } while (divisor === 1); - - return divisor; - }; - - /** - * Calculate and retrieve all the bounds for the chart and return them in one array - * - * @memberof Chartist.Core - * @param {Number} axisLength The length of the Axis used for - * @param {Object} highLow An object containing a high and low property indicating the value range of the chart. - * @param {Number} scaleMinSpace The minimum projected length a step should result in - * @param {Boolean} onlyInteger - * @return {Object} All the values to set the bounds of the chart - */ - Chartist.getBounds = function (axisLength, highLow, scaleMinSpace, onlyInteger) { - var i, - optimizationCounter = 0, - newMin, - newMax, - bounds = { - high: highLow.high, - low: highLow.low - }; - - bounds.valueRange = bounds.high - bounds.low; - bounds.oom = Chartist.orderOfMagnitude(bounds.valueRange); - bounds.step = Math.pow(10, bounds.oom); - bounds.min = Math.floor(bounds.low / bounds.step) * bounds.step; - bounds.max = Math.ceil(bounds.high / bounds.step) * bounds.step; - bounds.range = bounds.max - bounds.min; - bounds.numberOfSteps = Math.round(bounds.range / bounds.step); - - // Optimize scale step by checking if subdivision is possible based on horizontalGridMinSpace - // If we are already below the scaleMinSpace value we will scale up - var length = Chartist.projectLength(axisLength, bounds.step, bounds); - var scaleUp = length < scaleMinSpace; - var smallestFactor = onlyInteger ? Chartist.rho(bounds.range) : 0; - - // First check if we should only use integer steps and if step 1 is still larger than scaleMinSpace so we can use 1 - if(onlyInteger && Chartist.projectLength(axisLength, 1, bounds) >= scaleMinSpace) { - bounds.step = 1; - } else if(onlyInteger && smallestFactor < bounds.step && Chartist.projectLength(axisLength, smallestFactor, bounds) >= scaleMinSpace) { - // If step 1 was too small, we can try the smallest factor of range - // If the smallest factor is smaller than the current bounds.step and the projected length of smallest factor - // is larger than the scaleMinSpace we should go for it. - bounds.step = smallestFactor; - } else { - // Trying to divide or multiply by 2 and find the best step value - while (true) { - if (scaleUp && Chartist.projectLength(axisLength, bounds.step, bounds) <= scaleMinSpace) { - bounds.step *= 2; - } else if (!scaleUp && Chartist.projectLength(axisLength, bounds.step / 2, bounds) >= scaleMinSpace) { - bounds.step /= 2; - if(onlyInteger && bounds.step % 1 !== 0) { - bounds.step *= 2; - break; - } - } else { - break; - } - - if(optimizationCounter++ > 1000) { - throw new Error('Exceeded maximum number of iterations while optimizing scale step!'); - } - } - } - - var EPSILON = 2.221E-16; - bounds.step = Math.max(bounds.step, EPSILON); - function safeIncrement(value, increment) { - // If increment is too small use *= (1+EPSILON) as a simple nextafter - if (value === (value += increment)) { - value *= (1 + (increment > 0 ? EPSILON : -EPSILON)); - } - return value; - } - - // Narrow min and max based on new step - newMin = bounds.min; - newMax = bounds.max; - while (newMin + bounds.step <= bounds.low) { - newMin = safeIncrement(newMin, bounds.step); - } - while (newMax - bounds.step >= bounds.high) { - newMax = safeIncrement(newMax, -bounds.step); - } - bounds.min = newMin; - bounds.max = newMax; - bounds.range = bounds.max - bounds.min; - - var values = []; - for (i = bounds.min; i <= bounds.max; i = safeIncrement(i, bounds.step)) { - var value = Chartist.roundWithPrecision(i); - if (value !== values[values.length - 1]) { - values.push(value); - } - } - bounds.values = values; - return bounds; - }; - - /** - * Calculate cartesian coordinates of polar coordinates - * - * @memberof Chartist.Core - * @param {Number} centerX X-axis coordinates of center point of circle segment - * @param {Number} centerY X-axis coordinates of center point of circle segment - * @param {Number} radius Radius of circle segment - * @param {Number} angleInDegrees Angle of circle segment in degrees - * @return {{x:Number, y:Number}} Coordinates of point on circumference - */ - Chartist.polarToCartesian = function (centerX, centerY, radius, angleInDegrees) { - var angleInRadians = (angleInDegrees - 90) * Math.PI / 180.0; - - return { - x: centerX + (radius * Math.cos(angleInRadians)), - y: centerY + (radius * Math.sin(angleInRadians)) - }; - }; - - /** - * Initialize chart drawing rectangle (area where chart is drawn) x1,y1 = bottom left / x2,y2 = top right - * - * @memberof Chartist.Core - * @param {Object} svg The svg element for the chart - * @param {Object} options The Object that contains all the optional values for the chart - * @param {Number} [fallbackPadding] The fallback padding if partial padding objects are used - * @return {Object} The chart rectangles coordinates inside the svg element plus the rectangles measurements - */ - Chartist.createChartRect = function (svg, options, fallbackPadding) { - var hasAxis = !!(options.axisX || options.axisY); - var yAxisOffset = hasAxis ? options.axisY.offset : 0; - var xAxisOffset = hasAxis ? options.axisX.offset : 0; - // If width or height results in invalid value (including 0) we fallback to the unitless settings or even 0 - var width = svg.width() || Chartist.quantity(options.width).value || 0; - var height = svg.height() || Chartist.quantity(options.height).value || 0; - var normalizedPadding = Chartist.normalizePadding(options.chartPadding, fallbackPadding); - - // If settings were to small to cope with offset (legacy) and padding, we'll adjust - width = Math.max(width, yAxisOffset + normalizedPadding.left + normalizedPadding.right); - height = Math.max(height, xAxisOffset + normalizedPadding.top + normalizedPadding.bottom); - - var chartRect = { - padding: normalizedPadding, - width: function () { - return this.x2 - this.x1; - }, - height: function () { - return this.y1 - this.y2; - } - }; - - if(hasAxis) { - if (options.axisX.position === 'start') { - chartRect.y2 = normalizedPadding.top + xAxisOffset; - chartRect.y1 = Math.max(height - normalizedPadding.bottom, chartRect.y2 + 1); - } else { - chartRect.y2 = normalizedPadding.top; - chartRect.y1 = Math.max(height - normalizedPadding.bottom - xAxisOffset, chartRect.y2 + 1); - } - - if (options.axisY.position === 'start') { - chartRect.x1 = normalizedPadding.left + yAxisOffset; - chartRect.x2 = Math.max(width - normalizedPadding.right, chartRect.x1 + 1); - } else { - chartRect.x1 = normalizedPadding.left; - chartRect.x2 = Math.max(width - normalizedPadding.right - yAxisOffset, chartRect.x1 + 1); - } - } else { - chartRect.x1 = normalizedPadding.left; - chartRect.x2 = Math.max(width - normalizedPadding.right, chartRect.x1 + 1); - chartRect.y2 = normalizedPadding.top; - chartRect.y1 = Math.max(height - normalizedPadding.bottom, chartRect.y2 + 1); - } - - return chartRect; - }; - - /** - * Creates a grid line based on a projected value. - * - * @memberof Chartist.Core - * @param position - * @param index - * @param axis - * @param offset - * @param length - * @param group - * @param classes - * @param eventEmitter - */ - Chartist.createGrid = function(position, index, axis, offset, length, group, classes, eventEmitter) { - var positionalData = {}; - positionalData[axis.units.pos + '1'] = position; - positionalData[axis.units.pos + '2'] = position; - positionalData[axis.counterUnits.pos + '1'] = offset; - positionalData[axis.counterUnits.pos + '2'] = offset + length; - - var gridElement = group.elem('line', positionalData, classes.join(' ')); - - // Event for grid draw - eventEmitter.emit('draw', - Chartist.extend({ - type: 'grid', - axis: axis, - index: index, - group: group, - element: gridElement - }, positionalData) - ); - }; - - /** - * Creates a grid background rect and emits the draw event. - * - * @memberof Chartist.Core - * @param gridGroup - * @param chartRect - * @param className - * @param eventEmitter - */ - Chartist.createGridBackground = function (gridGroup, chartRect, className, eventEmitter) { - var gridBackground = gridGroup.elem('rect', { - x: chartRect.x1, - y: chartRect.y2, - width: chartRect.width(), - height: chartRect.height(), - }, className, true); - - // Event for grid background draw - eventEmitter.emit('draw', { - type: 'gridBackground', - group: gridGroup, - element: gridBackground - }); - }; - - /** - * Creates a label based on a projected value and an axis. - * - * @memberof Chartist.Core - * @param position - * @param length - * @param index - * @param labels - * @param axis - * @param axisOffset - * @param labelOffset - * @param group - * @param classes - * @param useForeignObject - * @param eventEmitter - */ - Chartist.createLabel = function(position, length, index, labels, axis, axisOffset, labelOffset, group, classes, useForeignObject, eventEmitter) { - var labelElement; - var positionalData = {}; - - positionalData[axis.units.pos] = position + labelOffset[axis.units.pos]; - positionalData[axis.counterUnits.pos] = labelOffset[axis.counterUnits.pos]; - positionalData[axis.units.len] = length; - positionalData[axis.counterUnits.len] = Math.max(0, axisOffset - 10); - - if(useForeignObject) { - // We need to set width and height explicitly to px as span will not expand with width and height being - // 100% in all browsers - var content = document.createElement('span'); - content.className = classes.join(' '); - content.setAttribute('xmlns', Chartist.namespaces.xhtml); - content.innerText = labels[index]; - content.style[axis.units.len] = Math.round(positionalData[axis.units.len]) + 'px'; - content.style[axis.counterUnits.len] = Math.round(positionalData[axis.counterUnits.len]) + 'px'; - - labelElement = group.foreignObject(content, Chartist.extend({ - style: 'overflow: visible;' - }, positionalData)); - } else { - labelElement = group.elem('text', positionalData, classes.join(' ')).text(labels[index]); - } - - eventEmitter.emit('draw', Chartist.extend({ - type: 'label', - axis: axis, - index: index, - group: group, - element: labelElement, - text: labels[index] - }, positionalData)); - }; - - /** - * Helper to read series specific options from options object. It automatically falls back to the global option if - * there is no option in the series options. - * - * @param {Object} series Series object - * @param {Object} options Chartist options object - * @param {string} key The options key that should be used to obtain the options - * @returns {*} - */ - Chartist.getSeriesOption = function(series, options, key) { - if(series.name && options.series && options.series[series.name]) { - var seriesOptions = options.series[series.name]; - return seriesOptions.hasOwnProperty(key) ? seriesOptions[key] : options[key]; - } else { - return options[key]; - } - }; - - /** - * Provides options handling functionality with callback for options changes triggered by responsive options and media query matches - * - * @memberof Chartist.Core - * @param {Object} options Options set by user - * @param {Array} responsiveOptions Optional functions to add responsive behavior to chart - * @param {Object} eventEmitter The event emitter that will be used to emit the options changed events - * @return {Object} The consolidated options object from the defaults, base and matching responsive options - */ - Chartist.optionsProvider = function (options, responsiveOptions, eventEmitter) { - var baseOptions = Chartist.extend({}, options), - currentOptions, - mediaQueryListeners = [], - i; - - function updateCurrentOptions(mediaEvent) { - var previousOptions = currentOptions; - currentOptions = Chartist.extend({}, baseOptions); - - if (responsiveOptions) { - for (i = 0; i < responsiveOptions.length; i++) { - var mql = window.matchMedia(responsiveOptions[i][0]); - if (mql.matches) { - currentOptions = Chartist.extend(currentOptions, responsiveOptions[i][1]); - } - } - } - - if(eventEmitter && mediaEvent) { - eventEmitter.emit('optionsChanged', { - previousOptions: previousOptions, - currentOptions: currentOptions - }); - } - } - - function removeMediaQueryListeners() { - mediaQueryListeners.forEach(function(mql) { - mql.removeListener(updateCurrentOptions); - }); - } - - if (!window.matchMedia) { - throw 'window.matchMedia not found! Make sure you\'re using a polyfill.'; - } else if (responsiveOptions) { - - for (i = 0; i < responsiveOptions.length; i++) { - var mql = window.matchMedia(responsiveOptions[i][0]); - mql.addListener(updateCurrentOptions); - mediaQueryListeners.push(mql); - } - } - // Execute initially without an event argument so we get the correct options - updateCurrentOptions(); - - return { - removeMediaQueryListeners: removeMediaQueryListeners, - getCurrentOptions: function getCurrentOptions() { - return Chartist.extend({}, currentOptions); - } - }; - }; - - - /** - * Splits a list of coordinates and associated values into segments. Each returned segment contains a pathCoordinates - * valueData property describing the segment. - * - * With the default options, segments consist of contiguous sets of points that do not have an undefined value. Any - * points with undefined values are discarded. - * - * **Options** - * The following options are used to determine how segments are formed - * ```javascript - * var options = { - * // If fillHoles is true, undefined values are simply discarded without creating a new segment. Assuming other options are default, this returns single segment. - * fillHoles: false, - * // If increasingX is true, the coordinates in all segments have strictly increasing x-values. - * increasingX: false - * }; - * ``` - * - * @memberof Chartist.Core - * @param {Array} pathCoordinates List of point coordinates to be split in the form [x1, y1, x2, y2 ... xn, yn] - * @param {Array} values List of associated point values in the form [v1, v2 .. vn] - * @param {Object} options Options set by user - * @return {Array} List of segments, each containing a pathCoordinates and valueData property. - */ - Chartist.splitIntoSegments = function(pathCoordinates, valueData, options) { - var defaultOptions = { - increasingX: false, - fillHoles: false - }; - - options = Chartist.extend({}, defaultOptions, options); - - var segments = []; - var hole = true; - - for(var i = 0; i < pathCoordinates.length; i += 2) { - // If this value is a "hole" we set the hole flag - if(Chartist.getMultiValue(valueData[i / 2].value) === undefined) { - // if(valueData[i / 2].value === undefined) { - if(!options.fillHoles) { - hole = true; - } - } else { - if(options.increasingX && i >= 2 && pathCoordinates[i] <= pathCoordinates[i-2]) { - // X is not increasing, so we need to make sure we start a new segment - hole = true; - } - - - // If it's a valid value we need to check if we're coming out of a hole and create a new empty segment - if(hole) { - segments.push({ - pathCoordinates: [], - valueData: [] - }); - // As we have a valid value now, we are not in a "hole" anymore - hole = false; - } - - // Add to the segment pathCoordinates and valueData - segments[segments.length - 1].pathCoordinates.push(pathCoordinates[i], pathCoordinates[i + 1]); - segments[segments.length - 1].valueData.push(valueData[i / 2]); - } - } - - return segments; - }; -}(this || global, Chartist)); -;/** - * Chartist path interpolation functions. - * - * @module Chartist.Interpolation - */ -/* global Chartist */ -(function(globalRoot, Chartist) { - 'use strict'; - - Chartist.Interpolation = {}; - - /** - * This interpolation function does not smooth the path and the result is only containing lines and no curves. - * - * @example - * var chart = new Chartist.Line('.ct-chart', { - * labels: [1, 2, 3, 4, 5], - * series: [[1, 2, 8, 1, 7]] - * }, { - * lineSmooth: Chartist.Interpolation.none({ - * fillHoles: false - * }) - * }); - * - * - * @memberof Chartist.Interpolation - * @return {Function} - */ - Chartist.Interpolation.none = function(options) { - var defaultOptions = { - fillHoles: false - }; - options = Chartist.extend({}, defaultOptions, options); - return function none(pathCoordinates, valueData) { - var path = new Chartist.Svg.Path(); - var hole = true; - - for(var i = 0; i < pathCoordinates.length; i += 2) { - var currX = pathCoordinates[i]; - var currY = pathCoordinates[i + 1]; - var currData = valueData[i / 2]; - - if(Chartist.getMultiValue(currData.value) !== undefined) { - - if(hole) { - path.move(currX, currY, false, currData); - } else { - path.line(currX, currY, false, currData); - } - - hole = false; - } else if(!options.fillHoles) { - hole = true; - } - } - - return path; - }; - }; - - /** - * Simple smoothing creates horizontal handles that are positioned with a fraction of the length between two data points. You can use the divisor option to specify the amount of smoothing. - * - * Simple smoothing can be used instead of `Chartist.Smoothing.cardinal` if you'd like to get rid of the artifacts it produces sometimes. Simple smoothing produces less flowing lines but is accurate by hitting the points and it also doesn't swing below or above the given data point. - * - * All smoothing functions within Chartist are factory functions that accept an options parameter. The simple interpolation function accepts one configuration parameter `divisor`, between 1 and āˆž, which controls the smoothing characteristics. - * - * @example - * var chart = new Chartist.Line('.ct-chart', { - * labels: [1, 2, 3, 4, 5], - * series: [[1, 2, 8, 1, 7]] - * }, { - * lineSmooth: Chartist.Interpolation.simple({ - * divisor: 2, - * fillHoles: false - * }) - * }); - * - * - * @memberof Chartist.Interpolation - * @param {Object} options The options of the simple interpolation factory function. - * @return {Function} - */ - Chartist.Interpolation.simple = function(options) { - var defaultOptions = { - divisor: 2, - fillHoles: false - }; - options = Chartist.extend({}, defaultOptions, options); - - var d = 1 / Math.max(1, options.divisor); - - return function simple(pathCoordinates, valueData) { - var path = new Chartist.Svg.Path(); - var prevX, prevY, prevData; - - for(var i = 0; i < pathCoordinates.length; i += 2) { - var currX = pathCoordinates[i]; - var currY = pathCoordinates[i + 1]; - var length = (currX - prevX) * d; - var currData = valueData[i / 2]; - - if(currData.value !== undefined) { - - if(prevData === undefined) { - path.move(currX, currY, false, currData); - } else { - path.curve( - prevX + length, - prevY, - currX - length, - currY, - currX, - currY, - false, - currData - ); - } - - prevX = currX; - prevY = currY; - prevData = currData; - } else if(!options.fillHoles) { - prevX = currX = prevData = undefined; - } - } - - return path; - }; - }; - - /** - * Cardinal / Catmull-Rome spline interpolation is the default smoothing function in Chartist. It produces nice results where the splines will always meet the points. It produces some artifacts though when data values are increased or decreased rapidly. The line may not follow a very accurate path and if the line should be accurate this smoothing function does not produce the best results. - * - * Cardinal splines can only be created if there are more than two data points. If this is not the case this smoothing will fallback to `Chartist.Smoothing.none`. - * - * All smoothing functions within Chartist are factory functions that accept an options parameter. The cardinal interpolation function accepts one configuration parameter `tension`, between 0 and 1, which controls the smoothing intensity. - * - * @example - * var chart = new Chartist.Line('.ct-chart', { - * labels: [1, 2, 3, 4, 5], - * series: [[1, 2, 8, 1, 7]] - * }, { - * lineSmooth: Chartist.Interpolation.cardinal({ - * tension: 1, - * fillHoles: false - * }) - * }); - * - * @memberof Chartist.Interpolation - * @param {Object} options The options of the cardinal factory function. - * @return {Function} - */ - Chartist.Interpolation.cardinal = function(options) { - var defaultOptions = { - tension: 1, - fillHoles: false - }; - - options = Chartist.extend({}, defaultOptions, options); - - var t = Math.min(1, Math.max(0, options.tension)), - c = 1 - t; - - return function cardinal(pathCoordinates, valueData) { - // First we try to split the coordinates into segments - // This is necessary to treat "holes" in line charts - var segments = Chartist.splitIntoSegments(pathCoordinates, valueData, { - fillHoles: options.fillHoles - }); - - if(!segments.length) { - // If there were no segments return 'Chartist.Interpolation.none' - return Chartist.Interpolation.none()([]); - } else if(segments.length > 1) { - // If the split resulted in more that one segment we need to interpolate each segment individually and join them - // afterwards together into a single path. - var paths = []; - // For each segment we will recurse the cardinal function - segments.forEach(function(segment) { - paths.push(cardinal(segment.pathCoordinates, segment.valueData)); - }); - // Join the segment path data into a single path and return - return Chartist.Svg.Path.join(paths); - } else { - // If there was only one segment we can proceed regularly by using pathCoordinates and valueData from the first - // segment - pathCoordinates = segments[0].pathCoordinates; - valueData = segments[0].valueData; - - // If less than two points we need to fallback to no smoothing - if(pathCoordinates.length <= 4) { - return Chartist.Interpolation.none()(pathCoordinates, valueData); - } - - var path = new Chartist.Svg.Path().move(pathCoordinates[0], pathCoordinates[1], false, valueData[0]), - z; - - for (var i = 0, iLen = pathCoordinates.length; iLen - 2 * !z > i; i += 2) { - var p = [ - {x: +pathCoordinates[i - 2], y: +pathCoordinates[i - 1]}, - {x: +pathCoordinates[i], y: +pathCoordinates[i + 1]}, - {x: +pathCoordinates[i + 2], y: +pathCoordinates[i + 3]}, - {x: +pathCoordinates[i + 4], y: +pathCoordinates[i + 5]} - ]; - if (z) { - if (!i) { - p[0] = {x: +pathCoordinates[iLen - 2], y: +pathCoordinates[iLen - 1]}; - } else if (iLen - 4 === i) { - p[3] = {x: +pathCoordinates[0], y: +pathCoordinates[1]}; - } else if (iLen - 2 === i) { - p[2] = {x: +pathCoordinates[0], y: +pathCoordinates[1]}; - p[3] = {x: +pathCoordinates[2], y: +pathCoordinates[3]}; - } - } else { - if (iLen - 4 === i) { - p[3] = p[2]; - } else if (!i) { - p[0] = {x: +pathCoordinates[i], y: +pathCoordinates[i + 1]}; - } - } - - path.curve( - (t * (-p[0].x + 6 * p[1].x + p[2].x) / 6) + (c * p[2].x), - (t * (-p[0].y + 6 * p[1].y + p[2].y) / 6) + (c * p[2].y), - (t * (p[1].x + 6 * p[2].x - p[3].x) / 6) + (c * p[2].x), - (t * (p[1].y + 6 * p[2].y - p[3].y) / 6) + (c * p[2].y), - p[2].x, - p[2].y, - false, - valueData[(i + 2) / 2] - ); - } - - return path; - } - }; - }; - - /** - * Monotone Cubic spline interpolation produces a smooth curve which preserves monotonicity. Unlike cardinal splines, the curve will not extend beyond the range of y-values of the original data points. - * - * Monotone Cubic splines can only be created if there are more than two data points. If this is not the case this smoothing will fallback to `Chartist.Smoothing.none`. - * - * The x-values of subsequent points must be increasing to fit a Monotone Cubic spline. If this condition is not met for a pair of adjacent points, then there will be a break in the curve between those data points. - * - * All smoothing functions within Chartist are factory functions that accept an options parameter. - * - * @example - * var chart = new Chartist.Line('.ct-chart', { - * labels: [1, 2, 3, 4, 5], - * series: [[1, 2, 8, 1, 7]] - * }, { - * lineSmooth: Chartist.Interpolation.monotoneCubic({ - * fillHoles: false - * }) - * }); - * - * @memberof Chartist.Interpolation - * @param {Object} options The options of the monotoneCubic factory function. - * @return {Function} - */ - Chartist.Interpolation.monotoneCubic = function(options) { - var defaultOptions = { - fillHoles: false - }; - - options = Chartist.extend({}, defaultOptions, options); - - return function monotoneCubic(pathCoordinates, valueData) { - // First we try to split the coordinates into segments - // This is necessary to treat "holes" in line charts - var segments = Chartist.splitIntoSegments(pathCoordinates, valueData, { - fillHoles: options.fillHoles, - increasingX: true - }); - - if(!segments.length) { - // If there were no segments return 'Chartist.Interpolation.none' - return Chartist.Interpolation.none()([]); - } else if(segments.length > 1) { - // If the split resulted in more that one segment we need to interpolate each segment individually and join them - // afterwards together into a single path. - var paths = []; - // For each segment we will recurse the monotoneCubic fn function - segments.forEach(function(segment) { - paths.push(monotoneCubic(segment.pathCoordinates, segment.valueData)); - }); - // Join the segment path data into a single path and return - return Chartist.Svg.Path.join(paths); - } else { - // If there was only one segment we can proceed regularly by using pathCoordinates and valueData from the first - // segment - pathCoordinates = segments[0].pathCoordinates; - valueData = segments[0].valueData; - - // If less than three points we need to fallback to no smoothing - if(pathCoordinates.length <= 4) { - return Chartist.Interpolation.none()(pathCoordinates, valueData); - } - - var xs = [], - ys = [], - i, - n = pathCoordinates.length / 2, - ms = [], - ds = [], dys = [], dxs = [], - path; - - // Populate x and y coordinates into separate arrays, for readability - - for(i = 0; i < n; i++) { - xs[i] = pathCoordinates[i * 2]; - ys[i] = pathCoordinates[i * 2 + 1]; - } - - // Calculate deltas and derivative - - for(i = 0; i < n - 1; i++) { - dys[i] = ys[i + 1] - ys[i]; - dxs[i] = xs[i + 1] - xs[i]; - ds[i] = dys[i] / dxs[i]; - } - - // Determine desired slope (m) at each point using Fritsch-Carlson method - // See: http://math.stackexchange.com/questions/45218/implementation-of-monotone-cubic-interpolation - - ms[0] = ds[0]; - ms[n - 1] = ds[n - 2]; - - for(i = 1; i < n - 1; i++) { - if(ds[i] === 0 || ds[i - 1] === 0 || (ds[i - 1] > 0) !== (ds[i] > 0)) { - ms[i] = 0; - } else { - ms[i] = 3 * (dxs[i - 1] + dxs[i]) / ( - (2 * dxs[i] + dxs[i - 1]) / ds[i - 1] + - (dxs[i] + 2 * dxs[i - 1]) / ds[i]); - - if(!isFinite(ms[i])) { - ms[i] = 0; - } - } - } - - // Now build a path from the slopes - - path = new Chartist.Svg.Path().move(xs[0], ys[0], false, valueData[0]); - - for(i = 0; i < n - 1; i++) { - path.curve( - // First control point - xs[i] + dxs[i] / 3, - ys[i] + ms[i] * dxs[i] / 3, - // Second control point - xs[i + 1] - dxs[i] / 3, - ys[i + 1] - ms[i + 1] * dxs[i] / 3, - // End point - xs[i + 1], - ys[i + 1], - - false, - valueData[i + 1] - ); - } - - return path; - } - }; - }; - - /** - * Step interpolation will cause the line chart to move in steps rather than diagonal or smoothed lines. This interpolation will create additional points that will also be drawn when the `showPoint` option is enabled. - * - * All smoothing functions within Chartist are factory functions that accept an options parameter. The step interpolation function accepts one configuration parameter `postpone`, that can be `true` or `false`. The default value is `true` and will cause the step to occur where the value actually changes. If a different behaviour is needed where the step is shifted to the left and happens before the actual value, this option can be set to `false`. - * - * @example - * var chart = new Chartist.Line('.ct-chart', { - * labels: [1, 2, 3, 4, 5], - * series: [[1, 2, 8, 1, 7]] - * }, { - * lineSmooth: Chartist.Interpolation.step({ - * postpone: true, - * fillHoles: false - * }) - * }); - * - * @memberof Chartist.Interpolation - * @param options - * @returns {Function} - */ - Chartist.Interpolation.step = function(options) { - var defaultOptions = { - postpone: true, - fillHoles: false - }; - - options = Chartist.extend({}, defaultOptions, options); - - return function step(pathCoordinates, valueData) { - var path = new Chartist.Svg.Path(); - - var prevX, prevY, prevData; - - for (var i = 0; i < pathCoordinates.length; i += 2) { - var currX = pathCoordinates[i]; - var currY = pathCoordinates[i + 1]; - var currData = valueData[i / 2]; - - // If the current point is also not a hole we can draw the step lines - if(currData.value !== undefined) { - if(prevData === undefined) { - path.move(currX, currY, false, currData); - } else { - if(options.postpone) { - // If postponed we should draw the step line with the value of the previous value - path.line(currX, prevY, false, prevData); - } else { - // If not postponed we should draw the step line with the value of the current value - path.line(prevX, currY, false, currData); - } - // Line to the actual point (this should only be a Y-Axis movement - path.line(currX, currY, false, currData); - } - - prevX = currX; - prevY = currY; - prevData = currData; - } else if(!options.fillHoles) { - prevX = prevY = prevData = undefined; - } - } - - return path; - }; - }; - -}(this || global, Chartist)); -;/** - * A very basic event module that helps to generate and catch events. - * - * @module Chartist.Event - */ -/* global Chartist */ -(function (globalRoot, Chartist) { - 'use strict'; - - Chartist.EventEmitter = function () { - var handlers = []; - - /** - * Add an event handler for a specific event - * - * @memberof Chartist.Event - * @param {String} event The event name - * @param {Function} handler A event handler function - */ - function addEventHandler(event, handler) { - handlers[event] = handlers[event] || []; - handlers[event].push(handler); - } - - /** - * Remove an event handler of a specific event name or remove all event handlers for a specific event. - * - * @memberof Chartist.Event - * @param {String} event The event name where a specific or all handlers should be removed - * @param {Function} [handler] An optional event handler function. If specified only this specific handler will be removed and otherwise all handlers are removed. - */ - function removeEventHandler(event, handler) { - // Only do something if there are event handlers with this name existing - if(handlers[event]) { - // If handler is set we will look for a specific handler and only remove this - if(handler) { - handlers[event].splice(handlers[event].indexOf(handler), 1); - if(handlers[event].length === 0) { - delete handlers[event]; - } - } else { - // If no handler is specified we remove all handlers for this event - delete handlers[event]; - } - } - } - - /** - * Use this function to emit an event. All handlers that are listening for this event will be triggered with the data parameter. - * - * @memberof Chartist.Event - * @param {String} event The event name that should be triggered - * @param {*} data Arbitrary data that will be passed to the event handler callback functions - */ - function emit(event, data) { - // Only do something if there are event handlers with this name existing - if(handlers[event]) { - handlers[event].forEach(function(handler) { - handler(data); - }); - } - - // Emit event to star event handlers - if(handlers['*']) { - handlers['*'].forEach(function(starHandler) { - starHandler(event, data); - }); - } - } - - return { - addEventHandler: addEventHandler, - removeEventHandler: removeEventHandler, - emit: emit - }; - }; - -}(this || global, Chartist)); -;/** - * This module provides some basic prototype inheritance utilities. - * - * @module Chartist.Class - */ -/* global Chartist */ -(function(globalRoot, Chartist) { - 'use strict'; - - function listToArray(list) { - var arr = []; - if (list.length) { - for (var i = 0; i < list.length; i++) { - arr.push(list[i]); - } - } - return arr; - } - - /** - * Method to extend from current prototype. - * - * @memberof Chartist.Class - * @param {Object} properties The object that serves as definition for the prototype that gets created for the new class. This object should always contain a constructor property that is the desired constructor for the newly created class. - * @param {Object} [superProtoOverride] By default extens will use the current class prototype or Chartist.class. With this parameter you can specify any super prototype that will be used. - * @return {Function} Constructor function of the new class - * - * @example - * var Fruit = Class.extend({ - * color: undefined, - * sugar: undefined, - * - * constructor: function(color, sugar) { - * this.color = color; - * this.sugar = sugar; - * }, - * - * eat: function() { - * this.sugar = 0; - * return this; - * } - * }); - * - * var Banana = Fruit.extend({ - * length: undefined, - * - * constructor: function(length, sugar) { - * Banana.super.constructor.call(this, 'Yellow', sugar); - * this.length = length; - * } - * }); - * - * var banana = new Banana(20, 40); - * console.log('banana instanceof Fruit', banana instanceof Fruit); - * console.log('Fruit is prototype of banana', Fruit.prototype.isPrototypeOf(banana)); - * console.log('bananas prototype is Fruit', Object.getPrototypeOf(banana) === Fruit.prototype); - * console.log(banana.sugar); - * console.log(banana.eat().sugar); - * console.log(banana.color); - */ - function extend(properties, superProtoOverride) { - var superProto = superProtoOverride || this.prototype || Chartist.Class; - var proto = Object.create(superProto); - - Chartist.Class.cloneDefinitions(proto, properties); - - var constr = function() { - var fn = proto.constructor || function () {}, - instance; - - // If this is linked to the Chartist namespace the constructor was not called with new - // To provide a fallback we will instantiate here and return the instance - instance = this === Chartist ? Object.create(proto) : this; - fn.apply(instance, Array.prototype.slice.call(arguments, 0)); - - // If this constructor was not called with new we need to return the instance - // This will not harm when the constructor has been called with new as the returned value is ignored - return instance; - }; - - constr.prototype = proto; - constr.super = superProto; - constr.extend = this.extend; - - return constr; - } - - // Variable argument list clones args > 0 into args[0] and retruns modified args[0] - function cloneDefinitions() { - var args = listToArray(arguments); - var target = args[0]; - - args.splice(1, args.length - 1).forEach(function (source) { - Object.getOwnPropertyNames(source).forEach(function (propName) { - // If this property already exist in target we delete it first - delete target[propName]; - // Define the property with the descriptor from source - Object.defineProperty(target, propName, - Object.getOwnPropertyDescriptor(source, propName)); - }); - }); - - return target; - } - - Chartist.Class = { - extend: extend, - cloneDefinitions: cloneDefinitions - }; - -}(this || global, Chartist)); -;/** - * Base for all chart types. The methods in Chartist.Base are inherited to all chart types. - * - * @module Chartist.Base - */ -/* global Chartist */ -(function(globalRoot, Chartist) { - 'use strict'; - - var window = globalRoot.window; - - // TODO: Currently we need to re-draw the chart on window resize. This is usually very bad and will affect performance. - // This is done because we can't work with relative coordinates when drawing the chart because SVG Path does not - // work with relative positions yet. We need to check if we can do a viewBox hack to switch to percentage. - // See http://mozilla.6506.n7.nabble.com/Specyfing-paths-with-percentages-unit-td247474.html - // Update: can be done using the above method tested here: http://codepen.io/gionkunz/pen/KDvLj - // The problem is with the label offsets that can't be converted into percentage and affecting the chart container - /** - * Updates the chart which currently does a full reconstruction of the SVG DOM - * - * @param {Object} [data] Optional data you'd like to set for the chart before it will update. If not specified the update method will use the data that is already configured with the chart. - * @param {Object} [options] Optional options you'd like to add to the previous options for the chart before it will update. If not specified the update method will use the options that have been already configured with the chart. - * @param {Boolean} [override] If set to true, the passed options will be used to extend the options that have been configured already. Otherwise the chart default options will be used as the base - * @memberof Chartist.Base - */ - function update(data, options, override) { - if(data) { - this.data = data || {}; - this.data.labels = this.data.labels || []; - this.data.series = this.data.series || []; - // Event for data transformation that allows to manipulate the data before it gets rendered in the charts - this.eventEmitter.emit('data', { - type: 'update', - data: this.data - }); - } - - if(options) { - this.options = Chartist.extend({}, override ? this.options : this.defaultOptions, options); - - // If chartist was not initialized yet, we just set the options and leave the rest to the initialization - // Otherwise we re-create the optionsProvider at this point - if(!this.initializeTimeoutId) { - this.optionsProvider.removeMediaQueryListeners(); - this.optionsProvider = Chartist.optionsProvider(this.options, this.responsiveOptions, this.eventEmitter); - } - } - - // Only re-created the chart if it has been initialized yet - if(!this.initializeTimeoutId) { - this.createChart(this.optionsProvider.getCurrentOptions()); - } - - // Return a reference to the chart object to chain up calls - return this; - } - - /** - * This method can be called on the API object of each chart and will un-register all event listeners that were added to other components. This currently includes a window.resize listener as well as media query listeners if any responsive options have been provided. Use this function if you need to destroy and recreate Chartist charts dynamically. - * - * @memberof Chartist.Base - */ - function detach() { - // Only detach if initialization already occurred on this chart. If this chart still hasn't initialized (therefore - // the initializationTimeoutId is still a valid timeout reference, we will clear the timeout - if(!this.initializeTimeoutId) { - window.removeEventListener('resize', this.resizeListener); - this.optionsProvider.removeMediaQueryListeners(); - } else { - window.clearTimeout(this.initializeTimeoutId); - } - - return this; - } - - /** - * Use this function to register event handlers. The handler callbacks are synchronous and will run in the main thread rather than the event loop. - * - * @memberof Chartist.Base - * @param {String} event Name of the event. Check the examples for supported events. - * @param {Function} handler The handler function that will be called when an event with the given name was emitted. This function will receive a data argument which contains event data. See the example for more details. - */ - function on(event, handler) { - this.eventEmitter.addEventHandler(event, handler); - return this; - } - - /** - * Use this function to un-register event handlers. If the handler function parameter is omitted all handlers for the given event will be un-registered. - * - * @memberof Chartist.Base - * @param {String} event Name of the event for which a handler should be removed - * @param {Function} [handler] The handler function that that was previously used to register a new event handler. This handler will be removed from the event handler list. If this parameter is omitted then all event handlers for the given event are removed from the list. - */ - function off(event, handler) { - this.eventEmitter.removeEventHandler(event, handler); - return this; - } - - function initialize() { - // Add window resize listener that re-creates the chart - window.addEventListener('resize', this.resizeListener); - - // Obtain current options based on matching media queries (if responsive options are given) - // This will also register a listener that is re-creating the chart based on media changes - this.optionsProvider = Chartist.optionsProvider(this.options, this.responsiveOptions, this.eventEmitter); - // Register options change listener that will trigger a chart update - this.eventEmitter.addEventHandler('optionsChanged', function() { - this.update(); - }.bind(this)); - - // Before the first chart creation we need to register us with all plugins that are configured - // Initialize all relevant plugins with our chart object and the plugin options specified in the config - if(this.options.plugins) { - this.options.plugins.forEach(function(plugin) { - if(plugin instanceof Array) { - plugin[0](this, plugin[1]); - } else { - plugin(this); - } - }.bind(this)); - } - - // Event for data transformation that allows to manipulate the data before it gets rendered in the charts - this.eventEmitter.emit('data', { - type: 'initial', - data: this.data - }); - - // Create the first chart - this.createChart(this.optionsProvider.getCurrentOptions()); - - // As chart is initialized from the event loop now we can reset our timeout reference - // This is important if the chart gets initialized on the same element twice - this.initializeTimeoutId = undefined; - } - - /** - * Constructor of chart base class. - * - * @param query - * @param data - * @param defaultOptions - * @param options - * @param responsiveOptions - * @constructor - */ - function Base(query, data, defaultOptions, options, responsiveOptions) { - this.container = Chartist.querySelector(query); - this.data = data || {}; - this.data.labels = this.data.labels || []; - this.data.series = this.data.series || []; - this.defaultOptions = defaultOptions; - this.options = options; - this.responsiveOptions = responsiveOptions; - this.eventEmitter = Chartist.EventEmitter(); - this.supportsForeignObject = Chartist.Svg.isSupported('Extensibility'); - this.supportsAnimations = Chartist.Svg.isSupported('AnimationEventsAttribute'); - this.resizeListener = function resizeListener(){ - this.update(); - }.bind(this); - - if(this.container) { - // If chartist was already initialized in this container we are detaching all event listeners first - if(this.container.__chartist__) { - this.container.__chartist__.detach(); - } - - this.container.__chartist__ = this; - } - - // Using event loop for first draw to make it possible to register event listeners in the same call stack where - // the chart was created. - this.initializeTimeoutId = setTimeout(initialize.bind(this), 0); - } - - // Creating the chart base class - Chartist.Base = Chartist.Class.extend({ - constructor: Base, - optionsProvider: undefined, - container: undefined, - svg: undefined, - eventEmitter: undefined, - createChart: function() { - throw new Error('Base chart type can\'t be instantiated!'); - }, - update: update, - detach: detach, - on: on, - off: off, - version: Chartist.version, - supportsForeignObject: false - }); - -}(this || global, Chartist)); -;/** - * Chartist SVG module for simple SVG DOM abstraction - * - * @module Chartist.Svg - */ -/* global Chartist */ -(function(globalRoot, Chartist) { - 'use strict'; - - var document = globalRoot.document; - - /** - * Chartist.Svg creates a new SVG object wrapper with a starting element. You can use the wrapper to fluently create sub-elements and modify them. - * - * @memberof Chartist.Svg - * @constructor - * @param {String|Element} name The name of the SVG element to create or an SVG dom element which should be wrapped into Chartist.Svg - * @param {Object} attributes An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added. - * @param {String} className This class or class list will be added to the SVG element - * @param {Object} parent The parent SVG wrapper object where this newly created wrapper and it's element will be attached to as child - * @param {Boolean} insertFirst If this param is set to true in conjunction with a parent element the newly created element will be added as first child element in the parent element - */ - function Svg(name, attributes, className, parent, insertFirst) { - // If Svg is getting called with an SVG element we just return the wrapper - if(name instanceof Element) { - this._node = name; - } else { - this._node = document.createElementNS(Chartist.namespaces.svg, name); - - // If this is an SVG element created then custom namespace - if(name === 'svg') { - this.attr({ - 'xmlns:ct': Chartist.namespaces.ct - }); - } - } - - if(attributes) { - this.attr(attributes); - } - - if(className) { - this.addClass(className); - } - - if(parent) { - if (insertFirst && parent._node.firstChild) { - parent._node.insertBefore(this._node, parent._node.firstChild); - } else { - parent._node.appendChild(this._node); - } - } - } - - /** - * Set attributes on the current SVG element of the wrapper you're currently working on. - * - * @memberof Chartist.Svg - * @param {Object|String} attributes An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added. If this parameter is a String then the function is used as a getter and will return the attribute value. - * @param {String} [ns] If specified, the attribute will be obtained using getAttributeNs. In order to write namepsaced attributes you can use the namespace:attribute notation within the attributes object. - * @return {Object|String} The current wrapper object will be returned so it can be used for chaining or the attribute value if used as getter function. - */ - function attr(attributes, ns) { - if(typeof attributes === 'string') { - if(ns) { - return this._node.getAttributeNS(ns, attributes); - } else { - return this._node.getAttribute(attributes); - } - } - - Object.keys(attributes).forEach(function(key) { - // If the attribute value is undefined we can skip this one - if(attributes[key] === undefined) { - return; - } - - if (key.indexOf(':') !== -1) { - var namespacedAttribute = key.split(':'); - this._node.setAttributeNS(Chartist.namespaces[namespacedAttribute[0]], key, attributes[key]); - } else { - this._node.setAttribute(key, attributes[key]); - } - }.bind(this)); - - return this; - } - - /** - * Create a new SVG element whose wrapper object will be selected for further operations. This way you can also create nested groups easily. - * - * @memberof Chartist.Svg - * @param {String} name The name of the SVG element that should be created as child element of the currently selected element wrapper - * @param {Object} [attributes] An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added. - * @param {String} [className] This class or class list will be added to the SVG element - * @param {Boolean} [insertFirst] If this param is set to true in conjunction with a parent element the newly created element will be added as first child element in the parent element - * @return {Chartist.Svg} Returns a Chartist.Svg wrapper object that can be used to modify the containing SVG data - */ - function elem(name, attributes, className, insertFirst) { - return new Chartist.Svg(name, attributes, className, this, insertFirst); - } - - /** - * Returns the parent Chartist.SVG wrapper object - * - * @memberof Chartist.Svg - * @return {Chartist.Svg} Returns a Chartist.Svg wrapper around the parent node of the current node. If the parent node is not existing or it's not an SVG node then this function will return null. - */ - function parent() { - return this._node.parentNode instanceof SVGElement ? new Chartist.Svg(this._node.parentNode) : null; - } - - /** - * This method returns a Chartist.Svg wrapper around the root SVG element of the current tree. - * - * @memberof Chartist.Svg - * @return {Chartist.Svg} The root SVG element wrapped in a Chartist.Svg element - */ - function root() { - var node = this._node; - while(node.nodeName !== 'svg') { - node = node.parentNode; - } - return new Chartist.Svg(node); - } - - /** - * Find the first child SVG element of the current element that matches a CSS selector. The returned object is a Chartist.Svg wrapper. - * - * @memberof Chartist.Svg - * @param {String} selector A CSS selector that is used to query for child SVG elements - * @return {Chartist.Svg} The SVG wrapper for the element found or null if no element was found - */ - function querySelector(selector) { - var foundNode = this._node.querySelector(selector); - return foundNode ? new Chartist.Svg(foundNode) : null; - } - - /** - * Find the all child SVG elements of the current element that match a CSS selector. The returned object is a Chartist.Svg.List wrapper. - * - * @memberof Chartist.Svg - * @param {String} selector A CSS selector that is used to query for child SVG elements - * @return {Chartist.Svg.List} The SVG wrapper list for the element found or null if no element was found - */ - function querySelectorAll(selector) { - var foundNodes = this._node.querySelectorAll(selector); - return foundNodes.length ? new Chartist.Svg.List(foundNodes) : null; - } - - /** - * Returns the underlying SVG node for the current element. - * - * @memberof Chartist.Svg - * @returns {Node} - */ - function getNode() { - return this._node; - } - - /** - * This method creates a foreignObject (see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject) that allows to embed HTML content into a SVG graphic. With the help of foreignObjects you can enable the usage of regular HTML elements inside of SVG where they are subject for SVG positioning and transformation but the Browser will use the HTML rendering capabilities for the containing DOM. - * - * @memberof Chartist.Svg - * @param {Node|String} content The DOM Node, or HTML string that will be converted to a DOM Node, that is then placed into and wrapped by the foreignObject - * @param {String} [attributes] An object with properties that will be added as attributes to the foreignObject element that is created. Attributes with undefined values will not be added. - * @param {String} [className] This class or class list will be added to the SVG element - * @param {Boolean} [insertFirst] Specifies if the foreignObject should be inserted as first child - * @return {Chartist.Svg} New wrapper object that wraps the foreignObject element - */ - function foreignObject(content, attributes, className, insertFirst) { - // If content is string then we convert it to DOM - // TODO: Handle case where content is not a string nor a DOM Node - if(typeof content === 'string') { - var container = document.createElement('div'); - container.innerHTML = content; - content = container.firstChild; - } - - // Adding namespace to content element - content.setAttribute('xmlns', Chartist.namespaces.xmlns); - - // Creating the foreignObject without required extension attribute (as described here - // http://www.w3.org/TR/SVG/extend.html#ForeignObjectElement) - var fnObj = this.elem('foreignObject', attributes, className, insertFirst); - - // Add content to foreignObjectElement - fnObj._node.appendChild(content); - - return fnObj; - } - - /** - * This method adds a new text element to the current Chartist.Svg wrapper. - * - * @memberof Chartist.Svg - * @param {String} t The text that should be added to the text element that is created - * @return {Chartist.Svg} The same wrapper object that was used to add the newly created element - */ - function text(t) { - this._node.appendChild(document.createTextNode(t)); - return this; - } - - /** - * This method will clear all child nodes of the current wrapper object. - * - * @memberof Chartist.Svg - * @return {Chartist.Svg} The same wrapper object that got emptied - */ - function empty() { - while (this._node.firstChild) { - this._node.removeChild(this._node.firstChild); - } - - return this; - } - - /** - * This method will cause the current wrapper to remove itself from its parent wrapper. Use this method if you'd like to get rid of an element in a given DOM structure. - * - * @memberof Chartist.Svg - * @return {Chartist.Svg} The parent wrapper object of the element that got removed - */ - function remove() { - this._node.parentNode.removeChild(this._node); - return this.parent(); - } - - /** - * This method will replace the element with a new element that can be created outside of the current DOM. - * - * @memberof Chartist.Svg - * @param {Chartist.Svg} newElement The new Chartist.Svg object that will be used to replace the current wrapper object - * @return {Chartist.Svg} The wrapper of the new element - */ - function replace(newElement) { - this._node.parentNode.replaceChild(newElement._node, this._node); - return newElement; - } - - /** - * This method will append an element to the current element as a child. - * - * @memberof Chartist.Svg - * @param {Chartist.Svg} element The Chartist.Svg element that should be added as a child - * @param {Boolean} [insertFirst] Specifies if the element should be inserted as first child - * @return {Chartist.Svg} The wrapper of the appended object - */ - function append(element, insertFirst) { - if(insertFirst && this._node.firstChild) { - this._node.insertBefore(element._node, this._node.firstChild); - } else { - this._node.appendChild(element._node); - } - - return this; - } - - /** - * Returns an array of class names that are attached to the current wrapper element. This method can not be chained further. - * - * @memberof Chartist.Svg - * @return {Array} A list of classes or an empty array if there are no classes on the current element - */ - function classes() { - return this._node.getAttribute('class') ? this._node.getAttribute('class').trim().split(/\s+/) : []; - } - - /** - * Adds one or a space separated list of classes to the current element and ensures the classes are only existing once. - * - * @memberof Chartist.Svg - * @param {String} names A white space separated list of class names - * @return {Chartist.Svg} The wrapper of the current element - */ - function addClass(names) { - this._node.setAttribute('class', - this.classes(this._node) - .concat(names.trim().split(/\s+/)) - .filter(function(elem, pos, self) { - return self.indexOf(elem) === pos; - }).join(' ') - ); - - return this; - } - - /** - * Removes one or a space separated list of classes from the current element. - * - * @memberof Chartist.Svg - * @param {String} names A white space separated list of class names - * @return {Chartist.Svg} The wrapper of the current element - */ - function removeClass(names) { - var removedClasses = names.trim().split(/\s+/); - - this._node.setAttribute('class', this.classes(this._node).filter(function(name) { - return removedClasses.indexOf(name) === -1; - }).join(' ')); - - return this; - } - - /** - * Removes all classes from the current element. - * - * @memberof Chartist.Svg - * @return {Chartist.Svg} The wrapper of the current element - */ - function removeAllClasses() { - this._node.setAttribute('class', ''); - - return this; - } - - /** - * Get element height using `getBoundingClientRect` - * - * @memberof Chartist.Svg - * @return {Number} The elements height in pixels - */ - function height() { - return this._node.getBoundingClientRect().height; - } - - /** - * Get element width using `getBoundingClientRect` - * - * @memberof Chartist.Core - * @return {Number} The elements width in pixels - */ - function width() { - return this._node.getBoundingClientRect().width; - } - - /** - * The animate function lets you animate the current element with SMIL animations. You can add animations for multiple attributes at the same time by using an animation definition object. This object should contain SMIL animation attributes. Please refer to http://www.w3.org/TR/SVG/animate.html for a detailed specification about the available animation attributes. Additionally an easing property can be passed in the animation definition object. This can be a string with a name of an easing function in `Chartist.Svg.Easing` or an array with four numbers specifying a cubic BĆ©zier curve. - * **An animations object could look like this:** - * ```javascript - * element.animate({ - * opacity: { - * dur: 1000, - * from: 0, - * to: 1 - * }, - * x1: { - * dur: '1000ms', - * from: 100, - * to: 200, - * easing: 'easeOutQuart' - * }, - * y1: { - * dur: '2s', - * from: 0, - * to: 100 - * } - * }); - * ``` - * **Automatic unit conversion** - * For the `dur` and the `begin` animate attribute you can also omit a unit by passing a number. The number will automatically be converted to milli seconds. - * **Guided mode** - * The default behavior of SMIL animations with offset using the `begin` attribute is that the attribute will keep it's original value until the animation starts. Mostly this behavior is not desired as you'd like to have your element attributes already initialized with the animation `from` value even before the animation starts. Also if you don't specify `fill="freeze"` on an animate element or if you delete the animation after it's done (which is done in guided mode) the attribute will switch back to the initial value. This behavior is also not desired when performing simple one-time animations. For one-time animations you'd want to trigger animations immediately instead of relative to the document begin time. That's why in guided mode Chartist.Svg will also use the `begin` property to schedule a timeout and manually start the animation after the timeout. If you're using multiple SMIL definition objects for an attribute (in an array), guided mode will be disabled for this attribute, even if you explicitly enabled it. - * If guided mode is enabled the following behavior is added: - * - Before the animation starts (even when delayed with `begin`) the animated attribute will be set already to the `from` value of the animation - * - `begin` is explicitly set to `indefinite` so it can be started manually without relying on document begin time (creation) - * - The animate element will be forced to use `fill="freeze"` - * - The animation will be triggered with `beginElement()` in a timeout where `begin` of the definition object is interpreted in milli seconds. If no `begin` was specified the timeout is triggered immediately. - * - After the animation the element attribute value will be set to the `to` value of the animation - * - The animate element is deleted from the DOM - * - * @memberof Chartist.Svg - * @param {Object} animations An animations object where the property keys are the attributes you'd like to animate. The properties should be objects again that contain the SMIL animation attributes (usually begin, dur, from, and to). The property begin and dur is auto converted (see Automatic unit conversion). You can also schedule multiple animations for the same attribute by passing an Array of SMIL definition objects. Attributes that contain an array of SMIL definition objects will not be executed in guided mode. - * @param {Boolean} guided Specify if guided mode should be activated for this animation (see Guided mode). If not otherwise specified, guided mode will be activated. - * @param {Object} eventEmitter If specified, this event emitter will be notified when an animation starts or ends. - * @return {Chartist.Svg} The current element where the animation was added - */ - function animate(animations, guided, eventEmitter) { - if(guided === undefined) { - guided = true; - } - - Object.keys(animations).forEach(function createAnimateForAttributes(attribute) { - - function createAnimate(animationDefinition, guided) { - var attributeProperties = {}, - animate, - timeout, - easing; - - // Check if an easing is specified in the definition object and delete it from the object as it will not - // be part of the animate element attributes. - if(animationDefinition.easing) { - // If already an easing BĆ©zier curve array we take it or we lookup a easing array in the Easing object - easing = animationDefinition.easing instanceof Array ? - animationDefinition.easing : - Chartist.Svg.Easing[animationDefinition.easing]; - delete animationDefinition.easing; - } - - // If numeric dur or begin was provided we assume milli seconds - animationDefinition.begin = Chartist.ensureUnit(animationDefinition.begin, 'ms'); - animationDefinition.dur = Chartist.ensureUnit(animationDefinition.dur, 'ms'); - - if(easing) { - animationDefinition.calcMode = 'spline'; - animationDefinition.keySplines = easing.join(' '); - animationDefinition.keyTimes = '0;1'; - } - - // Adding "fill: freeze" if we are in guided mode and set initial attribute values - if(guided) { - animationDefinition.fill = 'freeze'; - // Animated property on our element should already be set to the animation from value in guided mode - attributeProperties[attribute] = animationDefinition.from; - this.attr(attributeProperties); - - // In guided mode we also set begin to indefinite so we can trigger the start manually and put the begin - // which needs to be in ms aside - timeout = Chartist.quantity(animationDefinition.begin || 0).value; - animationDefinition.begin = 'indefinite'; - } - - animate = this.elem('animate', Chartist.extend({ - attributeName: attribute - }, animationDefinition)); - - if(guided) { - // If guided we take the value that was put aside in timeout and trigger the animation manually with a timeout - setTimeout(function() { - // If beginElement fails we set the animated attribute to the end position and remove the animate element - // This happens if the SMIL ElementTimeControl interface is not supported or any other problems occured in - // the browser. (Currently FF 34 does not support animate elements in foreignObjects) - try { - animate._node.beginElement(); - } catch(err) { - // Set animated attribute to current animated value - attributeProperties[attribute] = animationDefinition.to; - this.attr(attributeProperties); - // Remove the animate element as it's no longer required - animate.remove(); - } - }.bind(this), timeout); - } - - if(eventEmitter) { - animate._node.addEventListener('beginEvent', function handleBeginEvent() { - eventEmitter.emit('animationBegin', { - element: this, - animate: animate._node, - params: animationDefinition - }); - }.bind(this)); - } - - animate._node.addEventListener('endEvent', function handleEndEvent() { - if(eventEmitter) { - eventEmitter.emit('animationEnd', { - element: this, - animate: animate._node, - params: animationDefinition - }); - } - - if(guided) { - // Set animated attribute to current animated value - attributeProperties[attribute] = animationDefinition.to; - this.attr(attributeProperties); - // Remove the animate element as it's no longer required - animate.remove(); - } - }.bind(this)); - } - - // If current attribute is an array of definition objects we create an animate for each and disable guided mode - if(animations[attribute] instanceof Array) { - animations[attribute].forEach(function(animationDefinition) { - createAnimate.bind(this)(animationDefinition, false); - }.bind(this)); - } else { - createAnimate.bind(this)(animations[attribute], guided); - } - - }.bind(this)); - - return this; - } - - Chartist.Svg = Chartist.Class.extend({ - constructor: Svg, - attr: attr, - elem: elem, - parent: parent, - root: root, - querySelector: querySelector, - querySelectorAll: querySelectorAll, - getNode: getNode, - foreignObject: foreignObject, - text: text, - empty: empty, - remove: remove, - replace: replace, - append: append, - classes: classes, - addClass: addClass, - removeClass: removeClass, - removeAllClasses: removeAllClasses, - height: height, - width: width, - animate: animate - }); - - /** - * This method checks for support of a given SVG feature like Extensibility, SVG-animation or the like. Check http://www.w3.org/TR/SVG11/feature for a detailed list. - * - * @memberof Chartist.Svg - * @param {String} feature The SVG 1.1 feature that should be checked for support. - * @return {Boolean} True of false if the feature is supported or not - */ - Chartist.Svg.isSupported = function(feature) { - return document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#' + feature, '1.1'); - }; - - /** - * This Object contains some standard easing cubic bezier curves. Then can be used with their name in the `Chartist.Svg.animate`. You can also extend the list and use your own name in the `animate` function. Click the show code button to see the available bezier functions. - * - * @memberof Chartist.Svg - */ - var easingCubicBeziers = { - easeInSine: [0.47, 0, 0.745, 0.715], - easeOutSine: [0.39, 0.575, 0.565, 1], - easeInOutSine: [0.445, 0.05, 0.55, 0.95], - easeInQuad: [0.55, 0.085, 0.68, 0.53], - easeOutQuad: [0.25, 0.46, 0.45, 0.94], - easeInOutQuad: [0.455, 0.03, 0.515, 0.955], - easeInCubic: [0.55, 0.055, 0.675, 0.19], - easeOutCubic: [0.215, 0.61, 0.355, 1], - easeInOutCubic: [0.645, 0.045, 0.355, 1], - easeInQuart: [0.895, 0.03, 0.685, 0.22], - easeOutQuart: [0.165, 0.84, 0.44, 1], - easeInOutQuart: [0.77, 0, 0.175, 1], - easeInQuint: [0.755, 0.05, 0.855, 0.06], - easeOutQuint: [0.23, 1, 0.32, 1], - easeInOutQuint: [0.86, 0, 0.07, 1], - easeInExpo: [0.95, 0.05, 0.795, 0.035], - easeOutExpo: [0.19, 1, 0.22, 1], - easeInOutExpo: [1, 0, 0, 1], - easeInCirc: [0.6, 0.04, 0.98, 0.335], - easeOutCirc: [0.075, 0.82, 0.165, 1], - easeInOutCirc: [0.785, 0.135, 0.15, 0.86], - easeInBack: [0.6, -0.28, 0.735, 0.045], - easeOutBack: [0.175, 0.885, 0.32, 1.275], - easeInOutBack: [0.68, -0.55, 0.265, 1.55] - }; - - Chartist.Svg.Easing = easingCubicBeziers; - - /** - * This helper class is to wrap multiple `Chartist.Svg` elements into a list where you can call the `Chartist.Svg` functions on all elements in the list with one call. This is helpful when you'd like to perform calls with `Chartist.Svg` on multiple elements. - * An instance of this class is also returned by `Chartist.Svg.querySelectorAll`. - * - * @memberof Chartist.Svg - * @param {Array|NodeList} nodeList An Array of SVG DOM nodes or a SVG DOM NodeList (as returned by document.querySelectorAll) - * @constructor - */ - function SvgList(nodeList) { - var list = this; - - this.svgElements = []; - for(var i = 0; i < nodeList.length; i++) { - this.svgElements.push(new Chartist.Svg(nodeList[i])); - } - - // Add delegation methods for Chartist.Svg - Object.keys(Chartist.Svg.prototype).filter(function(prototypeProperty) { - return ['constructor', - 'parent', - 'querySelector', - 'querySelectorAll', - 'replace', - 'append', - 'classes', - 'height', - 'width'].indexOf(prototypeProperty) === -1; - }).forEach(function(prototypeProperty) { - list[prototypeProperty] = function() { - var args = Array.prototype.slice.call(arguments, 0); - list.svgElements.forEach(function(element) { - Chartist.Svg.prototype[prototypeProperty].apply(element, args); - }); - return list; - }; - }); - } - - Chartist.Svg.List = Chartist.Class.extend({ - constructor: SvgList - }); -}(this || global, Chartist)); -;/** - * Chartist SVG path module for SVG path description creation and modification. - * - * @module Chartist.Svg.Path - */ -/* global Chartist */ -(function(globalRoot, Chartist) { - 'use strict'; - - /** - * Contains the descriptors of supported element types in a SVG path. Currently only move, line and curve are supported. - * - * @memberof Chartist.Svg.Path - * @type {Object} - */ - var elementDescriptions = { - m: ['x', 'y'], - l: ['x', 'y'], - c: ['x1', 'y1', 'x2', 'y2', 'x', 'y'], - a: ['rx', 'ry', 'xAr', 'lAf', 'sf', 'x', 'y'] - }; - - /** - * Default options for newly created SVG path objects. - * - * @memberof Chartist.Svg.Path - * @type {Object} - */ - var defaultOptions = { - // The accuracy in digit count after the decimal point. This will be used to round numbers in the SVG path. If this option is set to false then no rounding will be performed. - accuracy: 3 - }; - - function element(command, params, pathElements, pos, relative, data) { - var pathElement = Chartist.extend({ - command: relative ? command.toLowerCase() : command.toUpperCase() - }, params, data ? { data: data } : {} ); - - pathElements.splice(pos, 0, pathElement); - } - - function forEachParam(pathElements, cb) { - pathElements.forEach(function(pathElement, pathElementIndex) { - elementDescriptions[pathElement.command.toLowerCase()].forEach(function(paramName, paramIndex) { - cb(pathElement, paramName, pathElementIndex, paramIndex, pathElements); - }); - }); - } - - /** - * Used to construct a new path object. - * - * @memberof Chartist.Svg.Path - * @param {Boolean} close If set to true then this path will be closed when stringified (with a Z at the end) - * @param {Object} options Options object that overrides the default objects. See default options for more details. - * @constructor - */ - function SvgPath(close, options) { - this.pathElements = []; - this.pos = 0; - this.close = close; - this.options = Chartist.extend({}, defaultOptions, options); - } - - /** - * Gets or sets the current position (cursor) inside of the path. You can move around the cursor freely but limited to 0 or the count of existing elements. All modifications with element functions will insert new elements at the position of this cursor. - * - * @memberof Chartist.Svg.Path - * @param {Number} [pos] If a number is passed then the cursor is set to this position in the path element array. - * @return {Chartist.Svg.Path|Number} If the position parameter was passed then the return value will be the path object for easy call chaining. If no position parameter was passed then the current position is returned. - */ - function position(pos) { - if(pos !== undefined) { - this.pos = Math.max(0, Math.min(this.pathElements.length, pos)); - return this; - } else { - return this.pos; - } - } - - /** - * Removes elements from the path starting at the current position. - * - * @memberof Chartist.Svg.Path - * @param {Number} count Number of path elements that should be removed from the current position. - * @return {Chartist.Svg.Path} The current path object for easy call chaining. - */ - function remove(count) { - this.pathElements.splice(this.pos, count); - return this; - } - - /** - * Use this function to add a new move SVG path element. - * - * @memberof Chartist.Svg.Path - * @param {Number} x The x coordinate for the move element. - * @param {Number} y The y coordinate for the move element. - * @param {Boolean} [relative] If set to true the move element will be created with relative coordinates (lowercase letter) - * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement - * @return {Chartist.Svg.Path} The current path object for easy call chaining. - */ - function move(x, y, relative, data) { - element('M', { - x: +x, - y: +y - }, this.pathElements, this.pos++, relative, data); - return this; - } - - /** - * Use this function to add a new line SVG path element. - * - * @memberof Chartist.Svg.Path - * @param {Number} x The x coordinate for the line element. - * @param {Number} y The y coordinate for the line element. - * @param {Boolean} [relative] If set to true the line element will be created with relative coordinates (lowercase letter) - * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement - * @return {Chartist.Svg.Path} The current path object for easy call chaining. - */ - function line(x, y, relative, data) { - element('L', { - x: +x, - y: +y - }, this.pathElements, this.pos++, relative, data); - return this; - } - - /** - * Use this function to add a new curve SVG path element. - * - * @memberof Chartist.Svg.Path - * @param {Number} x1 The x coordinate for the first control point of the bezier curve. - * @param {Number} y1 The y coordinate for the first control point of the bezier curve. - * @param {Number} x2 The x coordinate for the second control point of the bezier curve. - * @param {Number} y2 The y coordinate for the second control point of the bezier curve. - * @param {Number} x The x coordinate for the target point of the curve element. - * @param {Number} y The y coordinate for the target point of the curve element. - * @param {Boolean} [relative] If set to true the curve element will be created with relative coordinates (lowercase letter) - * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement - * @return {Chartist.Svg.Path} The current path object for easy call chaining. - */ - function curve(x1, y1, x2, y2, x, y, relative, data) { - element('C', { - x1: +x1, - y1: +y1, - x2: +x2, - y2: +y2, - x: +x, - y: +y - }, this.pathElements, this.pos++, relative, data); - return this; - } - - /** - * Use this function to add a new non-bezier curve SVG path element. - * - * @memberof Chartist.Svg.Path - * @param {Number} rx The radius to be used for the x-axis of the arc. - * @param {Number} ry The radius to be used for the y-axis of the arc. - * @param {Number} xAr Defines the orientation of the arc - * @param {Number} lAf Large arc flag - * @param {Number} sf Sweep flag - * @param {Number} x The x coordinate for the target point of the curve element. - * @param {Number} y The y coordinate for the target point of the curve element. - * @param {Boolean} [relative] If set to true the curve element will be created with relative coordinates (lowercase letter) - * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement - * @return {Chartist.Svg.Path} The current path object for easy call chaining. - */ - function arc(rx, ry, xAr, lAf, sf, x, y, relative, data) { - element('A', { - rx: +rx, - ry: +ry, - xAr: +xAr, - lAf: +lAf, - sf: +sf, - x: +x, - y: +y - }, this.pathElements, this.pos++, relative, data); - return this; - } - - /** - * Parses an SVG path seen in the d attribute of path elements, and inserts the parsed elements into the existing path object at the current cursor position. Any closing path indicators (Z at the end of the path) will be ignored by the parser as this is provided by the close option in the options of the path object. - * - * @memberof Chartist.Svg.Path - * @param {String} path Any SVG path that contains move (m), line (l) or curve (c) components. - * @return {Chartist.Svg.Path} The current path object for easy call chaining. - */ - function parse(path) { - // Parsing the SVG path string into an array of arrays [['M', '10', '10'], ['L', '100', '100']] - var chunks = path.replace(/([A-Za-z])([0-9])/g, '$1 $2') - .replace(/([0-9])([A-Za-z])/g, '$1 $2') - .split(/[\s,]+/) - .reduce(function(result, element) { - if(element.match(/[A-Za-z]/)) { - result.push([]); - } - - result[result.length - 1].push(element); - return result; - }, []); - - // If this is a closed path we remove the Z at the end because this is determined by the close option - if(chunks[chunks.length - 1][0].toUpperCase() === 'Z') { - chunks.pop(); - } - - // Using svgPathElementDescriptions to map raw path arrays into objects that contain the command and the parameters - // For example {command: 'M', x: '10', y: '10'} - var elements = chunks.map(function(chunk) { - var command = chunk.shift(), - description = elementDescriptions[command.toLowerCase()]; - - return Chartist.extend({ - command: command - }, description.reduce(function(result, paramName, index) { - result[paramName] = +chunk[index]; - return result; - }, {})); - }); - - // Preparing a splice call with the elements array as var arg params and insert the parsed elements at the current position - var spliceArgs = [this.pos, 0]; - Array.prototype.push.apply(spliceArgs, elements); - Array.prototype.splice.apply(this.pathElements, spliceArgs); - // Increase the internal position by the element count - this.pos += elements.length; - - return this; - } - - /** - * This function renders to current SVG path object into a final SVG string that can be used in the d attribute of SVG path elements. It uses the accuracy option to round big decimals. If the close parameter was set in the constructor of this path object then a path closing Z will be appended to the output string. - * - * @memberof Chartist.Svg.Path - * @return {String} - */ - function stringify() { - var accuracyMultiplier = Math.pow(10, this.options.accuracy); - - return this.pathElements.reduce(function(path, pathElement) { - var params = elementDescriptions[pathElement.command.toLowerCase()].map(function(paramName) { - return this.options.accuracy ? - (Math.round(pathElement[paramName] * accuracyMultiplier) / accuracyMultiplier) : - pathElement[paramName]; - }.bind(this)); - - return path + pathElement.command + params.join(','); - }.bind(this), '') + (this.close ? 'Z' : ''); - } - - /** - * Scales all elements in the current SVG path object. There is an individual parameter for each coordinate. Scaling will also be done for control points of curves, affecting the given coordinate. - * - * @memberof Chartist.Svg.Path - * @param {Number} x The number which will be used to scale the x, x1 and x2 of all path elements. - * @param {Number} y The number which will be used to scale the y, y1 and y2 of all path elements. - * @return {Chartist.Svg.Path} The current path object for easy call chaining. - */ - function scale(x, y) { - forEachParam(this.pathElements, function(pathElement, paramName) { - pathElement[paramName] *= paramName[0] === 'x' ? x : y; - }); - return this; - } - - /** - * Translates all elements in the current SVG path object. The translation is relative and there is an individual parameter for each coordinate. Translation will also be done for control points of curves, affecting the given coordinate. - * - * @memberof Chartist.Svg.Path - * @param {Number} x The number which will be used to translate the x, x1 and x2 of all path elements. - * @param {Number} y The number which will be used to translate the y, y1 and y2 of all path elements. - * @return {Chartist.Svg.Path} The current path object for easy call chaining. - */ - function translate(x, y) { - forEachParam(this.pathElements, function(pathElement, paramName) { - pathElement[paramName] += paramName[0] === 'x' ? x : y; - }); - return this; - } - - /** - * This function will run over all existing path elements and then loop over their attributes. The callback function will be called for every path element attribute that exists in the current path. - * The method signature of the callback function looks like this: - * ```javascript - * function(pathElement, paramName, pathElementIndex, paramIndex, pathElements) - * ``` - * If something else than undefined is returned by the callback function, this value will be used to replace the old value. This allows you to build custom transformations of path objects that can't be achieved using the basic transformation functions scale and translate. - * - * @memberof Chartist.Svg.Path - * @param {Function} transformFnc The callback function for the transformation. Check the signature in the function description. - * @return {Chartist.Svg.Path} The current path object for easy call chaining. - */ - function transform(transformFnc) { - forEachParam(this.pathElements, function(pathElement, paramName, pathElementIndex, paramIndex, pathElements) { - var transformed = transformFnc(pathElement, paramName, pathElementIndex, paramIndex, pathElements); - if(transformed || transformed === 0) { - pathElement[paramName] = transformed; - } - }); - return this; - } - - /** - * This function clones a whole path object with all its properties. This is a deep clone and path element objects will also be cloned. - * - * @memberof Chartist.Svg.Path - * @param {Boolean} [close] Optional option to set the new cloned path to closed. If not specified or false, the original path close option will be used. - * @return {Chartist.Svg.Path} - */ - function clone(close) { - var c = new Chartist.Svg.Path(close || this.close); - c.pos = this.pos; - c.pathElements = this.pathElements.slice().map(function cloneElements(pathElement) { - return Chartist.extend({}, pathElement); - }); - c.options = Chartist.extend({}, this.options); - return c; - } - - /** - * Split a Svg.Path object by a specific command in the path chain. The path chain will be split and an array of newly created paths objects will be returned. This is useful if you'd like to split an SVG path by it's move commands, for example, in order to isolate chunks of drawings. - * - * @memberof Chartist.Svg.Path - * @param {String} command The command you'd like to use to split the path - * @return {Array} - */ - function splitByCommand(command) { - var split = [ - new Chartist.Svg.Path() - ]; - - this.pathElements.forEach(function(pathElement) { - if(pathElement.command === command.toUpperCase() && split[split.length - 1].pathElements.length !== 0) { - split.push(new Chartist.Svg.Path()); - } - - split[split.length - 1].pathElements.push(pathElement); - }); - - return split; - } - - /** - * This static function on `Chartist.Svg.Path` is joining multiple paths together into one paths. - * - * @memberof Chartist.Svg.Path - * @param {Array} paths A list of paths to be joined together. The order is important. - * @param {boolean} close If the newly created path should be a closed path - * @param {Object} options Path options for the newly created path. - * @return {Chartist.Svg.Path} - */ - - function join(paths, close, options) { - var joinedPath = new Chartist.Svg.Path(close, options); - for(var i = 0; i < paths.length; i++) { - var path = paths[i]; - for(var j = 0; j < path.pathElements.length; j++) { - joinedPath.pathElements.push(path.pathElements[j]); - } - } - return joinedPath; - } - - Chartist.Svg.Path = Chartist.Class.extend({ - constructor: SvgPath, - position: position, - remove: remove, - move: move, - line: line, - curve: curve, - arc: arc, - scale: scale, - translate: translate, - transform: transform, - parse: parse, - stringify: stringify, - clone: clone, - splitByCommand: splitByCommand - }); - - Chartist.Svg.Path.elementDescriptions = elementDescriptions; - Chartist.Svg.Path.join = join; -}(this || global, Chartist)); -;/* global Chartist */ -(function (globalRoot, Chartist) { - 'use strict'; - - var window = globalRoot.window; - var document = globalRoot.document; - - var axisUnits = { - x: { - pos: 'x', - len: 'width', - dir: 'horizontal', - rectStart: 'x1', - rectEnd: 'x2', - rectOffset: 'y2' - }, - y: { - pos: 'y', - len: 'height', - dir: 'vertical', - rectStart: 'y2', - rectEnd: 'y1', - rectOffset: 'x1' - } - }; - - function Axis(units, chartRect, ticks, options) { - this.units = units; - this.counterUnits = units === axisUnits.x ? axisUnits.y : axisUnits.x; - this.chartRect = chartRect; - this.axisLength = chartRect[units.rectEnd] - chartRect[units.rectStart]; - this.gridOffset = chartRect[units.rectOffset]; - this.ticks = ticks; - this.options = options; - } - - function createGridAndLabels(gridGroup, labelGroup, useForeignObject, chartOptions, eventEmitter) { - var axisOptions = chartOptions['axis' + this.units.pos.toUpperCase()]; - var projectedValues = this.ticks.map(this.projectValue.bind(this)); - var labelValues = this.ticks.map(axisOptions.labelInterpolationFnc); - - projectedValues.forEach(function(projectedValue, index) { - var labelOffset = { - x: 0, - y: 0 - }; - - // TODO: Find better solution for solving this problem - // Calculate how much space we have available for the label - var labelLength; - if(projectedValues[index + 1]) { - // If we still have one label ahead, we can calculate the distance to the next tick / label - labelLength = projectedValues[index + 1] - projectedValue; - } else { - // If we don't have a label ahead and we have only two labels in total, we just take the remaining distance to - // on the whole axis length. We limit that to a minimum of 30 pixel, so that labels close to the border will - // still be visible inside of the chart padding. - labelLength = Math.max(this.axisLength - projectedValue, 30); - } - - // Skip grid lines and labels where interpolated label values are falsey (execpt for 0) - if(Chartist.isFalseyButZero(labelValues[index]) && labelValues[index] !== '') { - return; - } - - // Transform to global coordinates using the chartRect - // We also need to set the label offset for the createLabel function - if(this.units.pos === 'x') { - projectedValue = this.chartRect.x1 + projectedValue; - labelOffset.x = chartOptions.axisX.labelOffset.x; - - // If the labels should be positioned in start position (top side for vertical axis) we need to set a - // different offset as for positioned with end (bottom) - if(chartOptions.axisX.position === 'start') { - labelOffset.y = this.chartRect.padding.top + chartOptions.axisX.labelOffset.y + (useForeignObject ? 5 : 20); - } else { - labelOffset.y = this.chartRect.y1 + chartOptions.axisX.labelOffset.y + (useForeignObject ? 5 : 20); - } - } else { - projectedValue = this.chartRect.y1 - projectedValue; - labelOffset.y = chartOptions.axisY.labelOffset.y - (useForeignObject ? labelLength : 0); - - // If the labels should be positioned in start position (left side for horizontal axis) we need to set a - // different offset as for positioned with end (right side) - if(chartOptions.axisY.position === 'start') { - labelOffset.x = useForeignObject ? this.chartRect.padding.left + chartOptions.axisY.labelOffset.x : this.chartRect.x1 - 10; - } else { - labelOffset.x = this.chartRect.x2 + chartOptions.axisY.labelOffset.x + 10; - } - } - - if(axisOptions.showGrid) { - Chartist.createGrid(projectedValue, index, this, this.gridOffset, this.chartRect[this.counterUnits.len](), gridGroup, [ - chartOptions.classNames.grid, - chartOptions.classNames[this.units.dir] - ], eventEmitter); - } - - if(axisOptions.showLabel) { - Chartist.createLabel(projectedValue, labelLength, index, labelValues, this, axisOptions.offset, labelOffset, labelGroup, [ - chartOptions.classNames.label, - chartOptions.classNames[this.units.dir], - (axisOptions.position === 'start' ? chartOptions.classNames[axisOptions.position] : chartOptions.classNames['end']) - ], useForeignObject, eventEmitter); - } - }.bind(this)); - } - - Chartist.Axis = Chartist.Class.extend({ - constructor: Axis, - createGridAndLabels: createGridAndLabels, - projectValue: function(value, index, data) { - throw new Error('Base axis can\'t be instantiated!'); - } - }); - - Chartist.Axis.units = axisUnits; - -}(this || global, Chartist)); -;/** - * The auto scale axis uses standard linear scale projection of values along an axis. It uses order of magnitude to find a scale automatically and evaluates the available space in order to find the perfect amount of ticks for your chart. - * **Options** - * The following options are used by this axis in addition to the default axis options outlined in the axis configuration of the chart default settings. - * ```javascript - * var options = { - * // If high is specified then the axis will display values explicitly up to this value and the computed maximum from the data is ignored - * high: 100, - * // If low is specified then the axis will display values explicitly down to this value and the computed minimum from the data is ignored - * low: 0, - * // This option will be used when finding the right scale division settings. The amount of ticks on the scale will be determined so that as many ticks as possible will be displayed, while not violating this minimum required space (in pixel). - * scaleMinSpace: 20, - * // Can be set to true or false. If set to true, the scale will be generated with whole numbers only. - * onlyInteger: true, - * // The reference value can be used to make sure that this value will always be on the chart. This is especially useful on bipolar charts where the bipolar center always needs to be part of the chart. - * referenceValue: 5 - * }; - * ``` - * - * @module Chartist.AutoScaleAxis - */ -/* global Chartist */ -(function (globalRoot, Chartist) { - 'use strict'; - - var window = globalRoot.window; - var document = globalRoot.document; - - function AutoScaleAxis(axisUnit, data, chartRect, options) { - // Usually we calculate highLow based on the data but this can be overriden by a highLow object in the options - var highLow = options.highLow || Chartist.getHighLow(data, options, axisUnit.pos); - this.bounds = Chartist.getBounds(chartRect[axisUnit.rectEnd] - chartRect[axisUnit.rectStart], highLow, options.scaleMinSpace || 20, options.onlyInteger); - this.range = { - min: this.bounds.min, - max: this.bounds.max - }; - - Chartist.AutoScaleAxis.super.constructor.call(this, - axisUnit, - chartRect, - this.bounds.values, - options); - } - - function projectValue(value) { - return this.axisLength * (+Chartist.getMultiValue(value, this.units.pos) - this.bounds.min) / this.bounds.range; - } - - Chartist.AutoScaleAxis = Chartist.Axis.extend({ - constructor: AutoScaleAxis, - projectValue: projectValue - }); - -}(this || global, Chartist)); -;/** - * The fixed scale axis uses standard linear projection of values along an axis. It makes use of a divisor option to divide the range provided from the minimum and maximum value or the options high and low that will override the computed minimum and maximum. - * **Options** - * The following options are used by this axis in addition to the default axis options outlined in the axis configuration of the chart default settings. - * ```javascript - * var options = { - * // If high is specified then the axis will display values explicitly up to this value and the computed maximum from the data is ignored - * high: 100, - * // If low is specified then the axis will display values explicitly down to this value and the computed minimum from the data is ignored - * low: 0, - * // If specified then the value range determined from minimum to maximum (or low and high) will be divided by this number and ticks will be generated at those division points. The default divisor is 1. - * divisor: 4, - * // If ticks is explicitly set, then the axis will not compute the ticks with the divisor, but directly use the data in ticks to determine at what points on the axis a tick need to be generated. - * ticks: [1, 10, 20, 30] - * }; - * ``` - * - * @module Chartist.FixedScaleAxis - */ -/* global Chartist */ -(function (globalRoot, Chartist) { - 'use strict'; - - var window = globalRoot.window; - var document = globalRoot.document; - - function FixedScaleAxis(axisUnit, data, chartRect, options) { - var highLow = options.highLow || Chartist.getHighLow(data, options, axisUnit.pos); - this.divisor = options.divisor || 1; - this.ticks = options.ticks || Chartist.times(this.divisor).map(function(value, index) { - return highLow.low + (highLow.high - highLow.low) / this.divisor * index; - }.bind(this)); - this.ticks.sort(function(a, b) { - return a - b; - }); - this.range = { - min: highLow.low, - max: highLow.high - }; - - Chartist.FixedScaleAxis.super.constructor.call(this, - axisUnit, - chartRect, - this.ticks, - options); - - this.stepLength = this.axisLength / this.divisor; - } - - function projectValue(value) { - return this.axisLength * (+Chartist.getMultiValue(value, this.units.pos) - this.range.min) / (this.range.max - this.range.min); - } - - Chartist.FixedScaleAxis = Chartist.Axis.extend({ - constructor: FixedScaleAxis, - projectValue: projectValue - }); - -}(this || global, Chartist)); -;/** - * The step axis for step based charts like bar chart or step based line charts. It uses a fixed amount of ticks that will be equally distributed across the whole axis length. The projection is done using the index of the data value rather than the value itself and therefore it's only useful for distribution purpose. - * **Options** - * The following options are used by this axis in addition to the default axis options outlined in the axis configuration of the chart default settings. - * ```javascript - * var options = { - * // Ticks to be used to distribute across the axis length. As this axis type relies on the index of the value rather than the value, arbitrary data that can be converted to a string can be used as ticks. - * ticks: ['One', 'Two', 'Three'], - * // If set to true the full width will be used to distribute the values where the last value will be at the maximum of the axis length. If false the spaces between the ticks will be evenly distributed instead. - * stretch: true - * }; - * ``` - * - * @module Chartist.StepAxis - */ -/* global Chartist */ -(function (globalRoot, Chartist) { - 'use strict'; - - var window = globalRoot.window; - var document = globalRoot.document; - - function StepAxis(axisUnit, data, chartRect, options) { - Chartist.StepAxis.super.constructor.call(this, - axisUnit, - chartRect, - options.ticks, - options); - - var calc = Math.max(1, options.ticks.length - (options.stretch ? 1 : 0)); - this.stepLength = this.axisLength / calc; - } - - function projectValue(value, index) { - return this.stepLength * index; - } - - Chartist.StepAxis = Chartist.Axis.extend({ - constructor: StepAxis, - projectValue: projectValue - }); - -}(this || global, Chartist)); -;/** - * The Chartist line chart can be used to draw Line or Scatter charts. If used in the browser you can access the global `Chartist` namespace where you find the `Line` function as a main entry point. - * - * For examples on how to use the line chart please check the examples of the `Chartist.Line` method. - * - * @module Chartist.Line - */ -/* global Chartist */ -(function(globalRoot, Chartist){ - 'use strict'; - - var window = globalRoot.window; - var document = globalRoot.document; - - /** - * Default options in line charts. Expand the code view to see a detailed list of options with comments. - * - * @memberof Chartist.Line - */ - var defaultOptions = { - // Options for X-Axis - axisX: { - // The offset of the labels to the chart area - offset: 30, - // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis. - position: 'end', - // Allows you to correct label positioning on this axis by positive or negative x and y offset. - labelOffset: { - x: 0, - y: 0 - }, - // If labels should be shown or not - showLabel: true, - // If the axis grid should be drawn or not - showGrid: true, - // Interpolation function that allows you to intercept the value from the axis label - labelInterpolationFnc: Chartist.noop, - // Set the axis type to be used to project values on this axis. If not defined, Chartist.StepAxis will be used for the X-Axis, where the ticks option will be set to the labels in the data and the stretch option will be set to the global fullWidth option. This type can be changed to any axis constructor available (e.g. Chartist.FixedScaleAxis), where all axis options should be present here. - type: undefined - }, - // Options for Y-Axis - axisY: { - // The offset of the labels to the chart area - offset: 40, - // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis. - position: 'start', - // Allows you to correct label positioning on this axis by positive or negative x and y offset. - labelOffset: { - x: 0, - y: 0 - }, - // If labels should be shown or not - showLabel: true, - // If the axis grid should be drawn or not - showGrid: true, - // Interpolation function that allows you to intercept the value from the axis label - labelInterpolationFnc: Chartist.noop, - // Set the axis type to be used to project values on this axis. If not defined, Chartist.AutoScaleAxis will be used for the Y-Axis, where the high and low options will be set to the global high and low options. This type can be changed to any axis constructor available (e.g. Chartist.FixedScaleAxis), where all axis options should be present here. - type: undefined, - // This value specifies the minimum height in pixel of the scale steps - scaleMinSpace: 20, - // Use only integer values (whole numbers) for the scale steps - onlyInteger: false - }, - // Specify a fixed width for the chart as a string (i.e. '100px' or '50%') - width: undefined, - // Specify a fixed height for the chart as a string (i.e. '100px' or '50%') - height: undefined, - // If the line should be drawn or not - showLine: true, - // If dots should be drawn or not - showPoint: true, - // If the line chart should draw an area - showArea: false, - // The base for the area chart that will be used to close the area shape (is normally 0) - areaBase: 0, - // Specify if the lines should be smoothed. This value can be true or false where true will result in smoothing using the default smoothing interpolation function Chartist.Interpolation.cardinal and false results in Chartist.Interpolation.none. You can also choose other smoothing / interpolation functions available in the Chartist.Interpolation module, or write your own interpolation function. Check the examples for a brief description. - lineSmooth: true, - // If the line chart should add a background fill to the .ct-grids group. - showGridBackground: false, - // Overriding the natural low of the chart allows you to zoom in or limit the charts lowest displayed value - low: undefined, - // Overriding the natural high of the chart allows you to zoom in or limit the charts highest displayed value - high: undefined, - // Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5} - chartPadding: { - top: 15, - right: 15, - bottom: 5, - left: 10 - }, - // When set to true, the last grid line on the x-axis is not drawn and the chart elements will expand to the full available width of the chart. For the last label to be drawn correctly you might need to add chart padding or offset the last label with a draw event handler. - fullWidth: false, - // If true the whole data is reversed including labels, the series order as well as the whole series data arrays. - reverseData: false, - // Override the class names that get used to generate the SVG structure of the chart - classNames: { - chart: 'ct-chart-line', - label: 'ct-label', - labelGroup: 'ct-labels', - series: 'ct-series', - line: 'ct-line', - point: 'ct-point', - area: 'ct-area', - grid: 'ct-grid', - gridGroup: 'ct-grids', - gridBackground: 'ct-grid-background', - vertical: 'ct-vertical', - horizontal: 'ct-horizontal', - start: 'ct-start', - end: 'ct-end' - } - }; - - /** - * Creates a new chart - * - */ - function createChart(options) { - var data = Chartist.normalizeData(this.data, options.reverseData, true); - - // Create new svg object - this.svg = Chartist.createSvg(this.container, options.width, options.height, options.classNames.chart); - // Create groups for labels, grid and series - var gridGroup = this.svg.elem('g').addClass(options.classNames.gridGroup); - var seriesGroup = this.svg.elem('g'); - var labelGroup = this.svg.elem('g').addClass(options.classNames.labelGroup); - - var chartRect = Chartist.createChartRect(this.svg, options, defaultOptions.padding); - var axisX, axisY; - - if(options.axisX.type === undefined) { - axisX = new Chartist.StepAxis(Chartist.Axis.units.x, data.normalized.series, chartRect, Chartist.extend({}, options.axisX, { - ticks: data.normalized.labels, - stretch: options.fullWidth - })); - } else { - axisX = options.axisX.type.call(Chartist, Chartist.Axis.units.x, data.normalized.series, chartRect, options.axisX); - } - - if(options.axisY.type === undefined) { - axisY = new Chartist.AutoScaleAxis(Chartist.Axis.units.y, data.normalized.series, chartRect, Chartist.extend({}, options.axisY, { - high: Chartist.isNumeric(options.high) ? options.high : options.axisY.high, - low: Chartist.isNumeric(options.low) ? options.low : options.axisY.low - })); - } else { - axisY = options.axisY.type.call(Chartist, Chartist.Axis.units.y, data.normalized.series, chartRect, options.axisY); - } - - axisX.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter); - axisY.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter); - - if (options.showGridBackground) { - Chartist.createGridBackground(gridGroup, chartRect, options.classNames.gridBackground, this.eventEmitter); - } - - // Draw the series - data.raw.series.forEach(function(series, seriesIndex) { - var seriesElement = seriesGroup.elem('g'); - - // Write attributes to series group element. If series name or meta is undefined the attributes will not be written - seriesElement.attr({ - 'ct:series-name': series.name, - 'ct:meta': Chartist.serialize(series.meta) - }); - - // Use series class from series data or if not set generate one - seriesElement.addClass([ - options.classNames.series, - (series.className || options.classNames.series + '-' + Chartist.alphaNumerate(seriesIndex)) - ].join(' ')); - - var pathCoordinates = [], - pathData = []; - - data.normalized.series[seriesIndex].forEach(function(value, valueIndex) { - var p = { - x: chartRect.x1 + axisX.projectValue(value, valueIndex, data.normalized.series[seriesIndex]), - y: chartRect.y1 - axisY.projectValue(value, valueIndex, data.normalized.series[seriesIndex]) - }; - pathCoordinates.push(p.x, p.y); - pathData.push({ - value: value, - valueIndex: valueIndex, - meta: Chartist.getMetaData(series, valueIndex) - }); - }.bind(this)); - - var seriesOptions = { - lineSmooth: Chartist.getSeriesOption(series, options, 'lineSmooth'), - showPoint: Chartist.getSeriesOption(series, options, 'showPoint'), - showLine: Chartist.getSeriesOption(series, options, 'showLine'), - showArea: Chartist.getSeriesOption(series, options, 'showArea'), - areaBase: Chartist.getSeriesOption(series, options, 'areaBase') - }; - - var smoothing = typeof seriesOptions.lineSmooth === 'function' ? - seriesOptions.lineSmooth : (seriesOptions.lineSmooth ? Chartist.Interpolation.monotoneCubic() : Chartist.Interpolation.none()); - // Interpolating path where pathData will be used to annotate each path element so we can trace back the original - // index, value and meta data - var path = smoothing(pathCoordinates, pathData); - - // If we should show points we need to create them now to avoid secondary loop - // Points are drawn from the pathElements returned by the interpolation function - // Small offset for Firefox to render squares correctly - if (seriesOptions.showPoint) { - - path.pathElements.forEach(function(pathElement) { - var point = seriesElement.elem('line', { - x1: pathElement.x, - y1: pathElement.y, - x2: pathElement.x + 0.01, - y2: pathElement.y - }, options.classNames.point).attr({ - 'ct:value': [pathElement.data.value.x, pathElement.data.value.y].filter(Chartist.isNumeric).join(','), - 'ct:meta': Chartist.serialize(pathElement.data.meta) - }); - - this.eventEmitter.emit('draw', { - type: 'point', - value: pathElement.data.value, - index: pathElement.data.valueIndex, - meta: pathElement.data.meta, - series: series, - seriesIndex: seriesIndex, - axisX: axisX, - axisY: axisY, - group: seriesElement, - element: point, - x: pathElement.x, - y: pathElement.y - }); - }.bind(this)); - } - - if(seriesOptions.showLine) { - var line = seriesElement.elem('path', { - d: path.stringify() - }, options.classNames.line, true); - - this.eventEmitter.emit('draw', { - type: 'line', - values: data.normalized.series[seriesIndex], - path: path.clone(), - chartRect: chartRect, - index: seriesIndex, - series: series, - seriesIndex: seriesIndex, - seriesMeta: series.meta, - axisX: axisX, - axisY: axisY, - group: seriesElement, - element: line - }); - } - - // Area currently only works with axes that support a range! - if(seriesOptions.showArea && axisY.range) { - // If areaBase is outside the chart area (< min or > max) we need to set it respectively so that - // the area is not drawn outside the chart area. - var areaBase = Math.max(Math.min(seriesOptions.areaBase, axisY.range.max), axisY.range.min); - - // We project the areaBase value into screen coordinates - var areaBaseProjected = chartRect.y1 - axisY.projectValue(areaBase); - - // In order to form the area we'll first split the path by move commands so we can chunk it up into segments - path.splitByCommand('M').filter(function onlySolidSegments(pathSegment) { - // We filter only "solid" segments that contain more than one point. Otherwise there's no need for an area - return pathSegment.pathElements.length > 1; - }).map(function convertToArea(solidPathSegments) { - // Receiving the filtered solid path segments we can now convert those segments into fill areas - var firstElement = solidPathSegments.pathElements[0]; - var lastElement = solidPathSegments.pathElements[solidPathSegments.pathElements.length - 1]; - - // Cloning the solid path segment with closing option and removing the first move command from the clone - // We then insert a new move that should start at the area base and draw a straight line up or down - // at the end of the path we add an additional straight line to the projected area base value - // As the closing option is set our path will be automatically closed - return solidPathSegments.clone(true) - .position(0) - .remove(1) - .move(firstElement.x, areaBaseProjected) - .line(firstElement.x, firstElement.y) - .position(solidPathSegments.pathElements.length + 1) - .line(lastElement.x, areaBaseProjected); - - }).forEach(function createArea(areaPath) { - // For each of our newly created area paths, we'll now create path elements by stringifying our path objects - // and adding the created DOM elements to the correct series group - var area = seriesElement.elem('path', { - d: areaPath.stringify() - }, options.classNames.area, true); - - // Emit an event for each area that was drawn - this.eventEmitter.emit('draw', { - type: 'area', - values: data.normalized.series[seriesIndex], - path: areaPath.clone(), - series: series, - seriesIndex: seriesIndex, - axisX: axisX, - axisY: axisY, - chartRect: chartRect, - index: seriesIndex, - group: seriesElement, - element: area - }); - }.bind(this)); - } - }.bind(this)); - - this.eventEmitter.emit('created', { - bounds: axisY.bounds, - chartRect: chartRect, - axisX: axisX, - axisY: axisY, - svg: this.svg, - options: options - }); - } - - /** - * This method creates a new line chart. - * - * @memberof Chartist.Line - * @param {String|Node} query A selector query string or directly a DOM element - * @param {Object} data The data object that needs to consist of a labels and a series array - * @param {Object} [options] The options object with options that override the default options. Check the examples for a detailed list. - * @param {Array} [responsiveOptions] Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]] - * @return {Object} An object which exposes the API for the created chart - * - * @example - * // Create a simple line chart - * var data = { - * // A labels array that can contain any sort of values - * labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'], - * // Our series array that contains series objects or in this case series data arrays - * series: [ - * [5, 2, 4, 2, 0] - * ] - * }; - * - * // As options we currently only set a static size of 300x200 px - * var options = { - * width: '300px', - * height: '200px' - * }; - * - * // In the global name space Chartist we call the Line function to initialize a line chart. As a first parameter we pass in a selector where we would like to get our chart created. Second parameter is the actual data object and as a third parameter we pass in our options - * new Chartist.Line('.ct-chart', data, options); - * - * @example - * // Use specific interpolation function with configuration from the Chartist.Interpolation module - * - * var chart = new Chartist.Line('.ct-chart', { - * labels: [1, 2, 3, 4, 5], - * series: [ - * [1, 1, 8, 1, 7] - * ] - * }, { - * lineSmooth: Chartist.Interpolation.cardinal({ - * tension: 0.2 - * }) - * }); - * - * @example - * // Create a line chart with responsive options - * - * var data = { - * // A labels array that can contain any sort of values - * labels: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'], - * // Our series array that contains series objects or in this case series data arrays - * series: [ - * [5, 2, 4, 2, 0] - * ] - * }; - * - * // In addition to the regular options we specify responsive option overrides that will override the default configutation based on the matching media queries. - * var responsiveOptions = [ - * ['screen and (min-width: 641px) and (max-width: 1024px)', { - * showPoint: false, - * axisX: { - * labelInterpolationFnc: function(value) { - * // Will return Mon, Tue, Wed etc. on medium screens - * return value.slice(0, 3); - * } - * } - * }], - * ['screen and (max-width: 640px)', { - * showLine: false, - * axisX: { - * labelInterpolationFnc: function(value) { - * // Will return M, T, W etc. on small screens - * return value[0]; - * } - * } - * }] - * ]; - * - * new Chartist.Line('.ct-chart', data, null, responsiveOptions); - * - */ - function Line(query, data, options, responsiveOptions) { - Chartist.Line.super.constructor.call(this, - query, - data, - defaultOptions, - Chartist.extend({}, defaultOptions, options), - responsiveOptions); - } - - // Creating line chart type in Chartist namespace - Chartist.Line = Chartist.Base.extend({ - constructor: Line, - createChart: createChart - }); - -}(this || global, Chartist)); -;/** - * The bar chart module of Chartist that can be used to draw unipolar or bipolar bar and grouped bar charts. - * - * @module Chartist.Bar - */ -/* global Chartist */ -(function(globalRoot, Chartist){ - 'use strict'; - - var window = globalRoot.window; - var document = globalRoot.document; - - /** - * Default options in bar charts. Expand the code view to see a detailed list of options with comments. - * - * @memberof Chartist.Bar - */ - var defaultOptions = { - // Options for X-Axis - axisX: { - // The offset of the chart drawing area to the border of the container - offset: 30, - // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis. - position: 'end', - // Allows you to correct label positioning on this axis by positive or negative x and y offset. - labelOffset: { - x: 0, - y: 0 - }, - // If labels should be shown or not - showLabel: true, - // If the axis grid should be drawn or not - showGrid: true, - // Interpolation function that allows you to intercept the value from the axis label - labelInterpolationFnc: Chartist.noop, - // This value specifies the minimum width in pixel of the scale steps - scaleMinSpace: 30, - // Use only integer values (whole numbers) for the scale steps - onlyInteger: false - }, - // Options for Y-Axis - axisY: { - // The offset of the chart drawing area to the border of the container - offset: 40, - // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis. - position: 'start', - // Allows you to correct label positioning on this axis by positive or negative x and y offset. - labelOffset: { - x: 0, - y: 0 - }, - // If labels should be shown or not - showLabel: true, - // If the axis grid should be drawn or not - showGrid: true, - // Interpolation function that allows you to intercept the value from the axis label - labelInterpolationFnc: Chartist.noop, - // This value specifies the minimum height in pixel of the scale steps - scaleMinSpace: 20, - // Use only integer values (whole numbers) for the scale steps - onlyInteger: false - }, - // Specify a fixed width for the chart as a string (i.e. '100px' or '50%') - width: undefined, - // Specify a fixed height for the chart as a string (i.e. '100px' or '50%') - height: undefined, - // Overriding the natural high of the chart allows you to zoom in or limit the charts highest displayed value - high: undefined, - // Overriding the natural low of the chart allows you to zoom in or limit the charts lowest displayed value - low: undefined, - // Unless low/high are explicitly set, bar chart will be centered at zero by default. Set referenceValue to null to auto scale. - referenceValue: 0, - // Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5} - chartPadding: { - top: 15, - right: 15, - bottom: 5, - left: 10 - }, - // Specify the distance in pixel of bars in a group - seriesBarDistance: 15, - // If set to true this property will cause the series bars to be stacked. Check the `stackMode` option for further stacking options. - stackBars: false, - // If set to 'overlap' this property will force the stacked bars to draw from the zero line. - // If set to 'accumulate' this property will form a total for each series point. This will also influence the y-axis and the overall bounds of the chart. In stacked mode the seriesBarDistance property will have no effect. - stackMode: 'accumulate', - // Inverts the axes of the bar chart in order to draw a horizontal bar chart. Be aware that you also need to invert your axis settings as the Y Axis will now display the labels and the X Axis the values. - horizontalBars: false, - // If set to true then each bar will represent a series and the data array is expected to be a one dimensional array of data values rather than a series array of series. This is useful if the bar chart should represent a profile rather than some data over time. - distributeSeries: false, - // If true the whole data is reversed including labels, the series order as well as the whole series data arrays. - reverseData: false, - // If the bar chart should add a background fill to the .ct-grids group. - showGridBackground: false, - // Override the class names that get used to generate the SVG structure of the chart - classNames: { - chart: 'ct-chart-bar', - horizontalBars: 'ct-horizontal-bars', - label: 'ct-label', - labelGroup: 'ct-labels', - series: 'ct-series', - bar: 'ct-bar', - grid: 'ct-grid', - gridGroup: 'ct-grids', - gridBackground: 'ct-grid-background', - vertical: 'ct-vertical', - horizontal: 'ct-horizontal', - start: 'ct-start', - end: 'ct-end' - } - }; - - /** - * Creates a new chart - * - */ - function createChart(options) { - var data; - var highLow; - - if(options.distributeSeries) { - data = Chartist.normalizeData(this.data, options.reverseData, options.horizontalBars ? 'x' : 'y'); - data.normalized.series = data.normalized.series.map(function(value) { - return [value]; - }); - } else { - data = Chartist.normalizeData(this.data, options.reverseData, options.horizontalBars ? 'x' : 'y'); - } - - // Create new svg element - this.svg = Chartist.createSvg( - this.container, - options.width, - options.height, - options.classNames.chart + (options.horizontalBars ? ' ' + options.classNames.horizontalBars : '') - ); - - // Drawing groups in correct order - var gridGroup = this.svg.elem('g').addClass(options.classNames.gridGroup); - var seriesGroup = this.svg.elem('g'); - var labelGroup = this.svg.elem('g').addClass(options.classNames.labelGroup); - - if(options.stackBars && data.normalized.series.length !== 0) { - - // If stacked bars we need to calculate the high low from stacked values from each series - var serialSums = Chartist.serialMap(data.normalized.series, function serialSums() { - return Array.prototype.slice.call(arguments).map(function(value) { - return value; - }).reduce(function(prev, curr) { - return { - x: prev.x + (curr && curr.x) || 0, - y: prev.y + (curr && curr.y) || 0 - }; - }, {x: 0, y: 0}); - }); - - highLow = Chartist.getHighLow([serialSums], options, options.horizontalBars ? 'x' : 'y'); - - } else { - - highLow = Chartist.getHighLow(data.normalized.series, options, options.horizontalBars ? 'x' : 'y'); - } - - // Overrides of high / low from settings - highLow.high = +options.high || (options.high === 0 ? 0 : highLow.high); - highLow.low = +options.low || (options.low === 0 ? 0 : highLow.low); - - var chartRect = Chartist.createChartRect(this.svg, options, defaultOptions.padding); - - var valueAxis, - labelAxisTicks, - labelAxis, - axisX, - axisY; - - // We need to set step count based on some options combinations - if(options.distributeSeries && options.stackBars) { - // If distributed series are enabled and bars need to be stacked, we'll only have one bar and therefore should - // use only the first label for the step axis - labelAxisTicks = data.normalized.labels.slice(0, 1); - } else { - // If distributed series are enabled but stacked bars aren't, we should use the series labels - // If we are drawing a regular bar chart with two dimensional series data, we just use the labels array - // as the bars are normalized - labelAxisTicks = data.normalized.labels; - } - - // Set labelAxis and valueAxis based on the horizontalBars setting. This setting will flip the axes if necessary. - if(options.horizontalBars) { - if(options.axisX.type === undefined) { - valueAxis = axisX = new Chartist.AutoScaleAxis(Chartist.Axis.units.x, data.normalized.series, chartRect, Chartist.extend({}, options.axisX, { - highLow: highLow, - referenceValue: 0 - })); - } else { - valueAxis = axisX = options.axisX.type.call(Chartist, Chartist.Axis.units.x, data.normalized.series, chartRect, Chartist.extend({}, options.axisX, { - highLow: highLow, - referenceValue: 0 - })); - } - - if(options.axisY.type === undefined) { - labelAxis = axisY = new Chartist.StepAxis(Chartist.Axis.units.y, data.normalized.series, chartRect, { - ticks: labelAxisTicks - }); - } else { - labelAxis = axisY = options.axisY.type.call(Chartist, Chartist.Axis.units.y, data.normalized.series, chartRect, options.axisY); - } - } else { - if(options.axisX.type === undefined) { - labelAxis = axisX = new Chartist.StepAxis(Chartist.Axis.units.x, data.normalized.series, chartRect, { - ticks: labelAxisTicks - }); - } else { - labelAxis = axisX = options.axisX.type.call(Chartist, Chartist.Axis.units.x, data.normalized.series, chartRect, options.axisX); - } - - if(options.axisY.type === undefined) { - valueAxis = axisY = new Chartist.AutoScaleAxis(Chartist.Axis.units.y, data.normalized.series, chartRect, Chartist.extend({}, options.axisY, { - highLow: highLow, - referenceValue: 0 - })); - } else { - valueAxis = axisY = options.axisY.type.call(Chartist, Chartist.Axis.units.y, data.normalized.series, chartRect, Chartist.extend({}, options.axisY, { - highLow: highLow, - referenceValue: 0 - })); - } - } - - // Projected 0 point - var zeroPoint = options.horizontalBars ? (chartRect.x1 + valueAxis.projectValue(0)) : (chartRect.y1 - valueAxis.projectValue(0)); - // Used to track the screen coordinates of stacked bars - var stackedBarValues = []; - - labelAxis.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter); - valueAxis.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter); - - if (options.showGridBackground) { - Chartist.createGridBackground(gridGroup, chartRect, options.classNames.gridBackground, this.eventEmitter); - } - - // Draw the series - data.raw.series.forEach(function(series, seriesIndex) { - // Calculating bi-polar value of index for seriesOffset. For i = 0..4 biPol will be -1.5, -0.5, 0.5, 1.5 etc. - var biPol = seriesIndex - (data.raw.series.length - 1) / 2; - // Half of the period width between vertical grid lines used to position bars - var periodHalfLength; - // Current series SVG element - var seriesElement; - - // We need to set periodHalfLength based on some options combinations - if(options.distributeSeries && !options.stackBars) { - // If distributed series are enabled but stacked bars aren't, we need to use the length of the normaizedData array - // which is the series count and divide by 2 - periodHalfLength = labelAxis.axisLength / data.normalized.series.length / 2; - } else if(options.distributeSeries && options.stackBars) { - // If distributed series and stacked bars are enabled we'll only get one bar so we should just divide the axis - // length by 2 - periodHalfLength = labelAxis.axisLength / 2; - } else { - // On regular bar charts we should just use the series length - periodHalfLength = labelAxis.axisLength / data.normalized.series[seriesIndex].length / 2; - } - - // Adding the series group to the series element - seriesElement = seriesGroup.elem('g'); - - // Write attributes to series group element. If series name or meta is undefined the attributes will not be written - seriesElement.attr({ - 'ct:series-name': series.name, - 'ct:meta': Chartist.serialize(series.meta) - }); - - // Use series class from series data or if not set generate one - seriesElement.addClass([ - options.classNames.series, - (series.className || options.classNames.series + '-' + Chartist.alphaNumerate(seriesIndex)) - ].join(' ')); - - data.normalized.series[seriesIndex].forEach(function(value, valueIndex) { - var projected, - bar, - previousStack, - labelAxisValueIndex; - - // We need to set labelAxisValueIndex based on some options combinations - if(options.distributeSeries && !options.stackBars) { - // If distributed series are enabled but stacked bars aren't, we can use the seriesIndex for later projection - // on the step axis for label positioning - labelAxisValueIndex = seriesIndex; - } else if(options.distributeSeries && options.stackBars) { - // If distributed series and stacked bars are enabled, we will only get one bar and therefore always use - // 0 for projection on the label step axis - labelAxisValueIndex = 0; - } else { - // On regular bar charts we just use the value index to project on the label step axis - labelAxisValueIndex = valueIndex; - } - - // We need to transform coordinates differently based on the chart layout - if(options.horizontalBars) { - projected = { - x: chartRect.x1 + valueAxis.projectValue(value && value.x ? value.x : 0, valueIndex, data.normalized.series[seriesIndex]), - y: chartRect.y1 - labelAxis.projectValue(value && value.y ? value.y : 0, labelAxisValueIndex, data.normalized.series[seriesIndex]) - }; - } else { - projected = { - x: chartRect.x1 + labelAxis.projectValue(value && value.x ? value.x : 0, labelAxisValueIndex, data.normalized.series[seriesIndex]), - y: chartRect.y1 - valueAxis.projectValue(value && value.y ? value.y : 0, valueIndex, data.normalized.series[seriesIndex]) - } - } - - // If the label axis is a step based axis we will offset the bar into the middle of between two steps using - // the periodHalfLength value. Also we do arrange the different series so that they align up to each other using - // the seriesBarDistance. If we don't have a step axis, the bar positions can be chosen freely so we should not - // add any automated positioning. - if(labelAxis instanceof Chartist.StepAxis) { - // Offset to center bar between grid lines, but only if the step axis is not stretched - if(!labelAxis.options.stretch) { - projected[labelAxis.units.pos] += periodHalfLength * (options.horizontalBars ? -1 : 1); - } - // Using bi-polar offset for multiple series if no stacked bars or series distribution is used - projected[labelAxis.units.pos] += (options.stackBars || options.distributeSeries) ? 0 : biPol * options.seriesBarDistance * (options.horizontalBars ? -1 : 1); - } - - // Enter value in stacked bar values used to remember previous screen value for stacking up bars - previousStack = stackedBarValues[valueIndex] || zeroPoint; - stackedBarValues[valueIndex] = previousStack - (zeroPoint - projected[labelAxis.counterUnits.pos]); - - // Skip if value is undefined - if(value === undefined) { - return; - } - - var positions = {}; - positions[labelAxis.units.pos + '1'] = projected[labelAxis.units.pos]; - positions[labelAxis.units.pos + '2'] = projected[labelAxis.units.pos]; - - if(options.stackBars && (options.stackMode === 'accumulate' || !options.stackMode)) { - // Stack mode: accumulate (default) - // If bars are stacked we use the stackedBarValues reference and otherwise base all bars off the zero line - // We want backwards compatibility, so the expected fallback without the 'stackMode' option - // to be the original behaviour (accumulate) - positions[labelAxis.counterUnits.pos + '1'] = previousStack; - positions[labelAxis.counterUnits.pos + '2'] = stackedBarValues[valueIndex]; - } else { - // Draw from the zero line normally - // This is also the same code for Stack mode: overlap - positions[labelAxis.counterUnits.pos + '1'] = zeroPoint; - positions[labelAxis.counterUnits.pos + '2'] = projected[labelAxis.counterUnits.pos]; - } - - // Limit x and y so that they are within the chart rect - positions.x1 = Math.min(Math.max(positions.x1, chartRect.x1), chartRect.x2); - positions.x2 = Math.min(Math.max(positions.x2, chartRect.x1), chartRect.x2); - positions.y1 = Math.min(Math.max(positions.y1, chartRect.y2), chartRect.y1); - positions.y2 = Math.min(Math.max(positions.y2, chartRect.y2), chartRect.y1); - - var metaData = Chartist.getMetaData(series, valueIndex); - - // Create bar element - bar = seriesElement.elem('line', positions, options.classNames.bar).attr({ - 'ct:value': [value.x, value.y].filter(Chartist.isNumeric).join(','), - 'ct:meta': Chartist.serialize(metaData) - }); - - this.eventEmitter.emit('draw', Chartist.extend({ - type: 'bar', - value: value, - index: valueIndex, - meta: metaData, - series: series, - seriesIndex: seriesIndex, - axisX: axisX, - axisY: axisY, - chartRect: chartRect, - group: seriesElement, - element: bar - }, positions)); - }.bind(this)); - }.bind(this)); - - this.eventEmitter.emit('created', { - bounds: valueAxis.bounds, - chartRect: chartRect, - axisX: axisX, - axisY: axisY, - svg: this.svg, - options: options - }); - } - - /** - * This method creates a new bar chart and returns API object that you can use for later changes. - * - * @memberof Chartist.Bar - * @param {String|Node} query A selector query string or directly a DOM element - * @param {Object} data The data object that needs to consist of a labels and a series array - * @param {Object} [options] The options object with options that override the default options. Check the examples for a detailed list. - * @param {Array} [responsiveOptions] Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]] - * @return {Object} An object which exposes the API for the created chart - * - * @example - * // Create a simple bar chart - * var data = { - * labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'], - * series: [ - * [5, 2, 4, 2, 0] - * ] - * }; - * - * // In the global name space Chartist we call the Bar function to initialize a bar chart. As a first parameter we pass in a selector where we would like to get our chart created and as a second parameter we pass our data object. - * new Chartist.Bar('.ct-chart', data); - * - * @example - * // This example creates a bipolar grouped bar chart where the boundaries are limitted to -10 and 10 - * new Chartist.Bar('.ct-chart', { - * labels: [1, 2, 3, 4, 5, 6, 7], - * series: [ - * [1, 3, 2, -5, -3, 1, -6], - * [-5, -2, -4, -1, 2, -3, 1] - * ] - * }, { - * seriesBarDistance: 12, - * low: -10, - * high: 10 - * }); - * - */ - function Bar(query, data, options, responsiveOptions) { - Chartist.Bar.super.constructor.call(this, - query, - data, - defaultOptions, - Chartist.extend({}, defaultOptions, options), - responsiveOptions); - } - - // Creating bar chart type in Chartist namespace - Chartist.Bar = Chartist.Base.extend({ - constructor: Bar, - createChart: createChart - }); - -}(this || global, Chartist)); -;/** - * The pie chart module of Chartist that can be used to draw pie, donut or gauge charts - * - * @module Chartist.Pie - */ -/* global Chartist */ -(function(globalRoot, Chartist) { - 'use strict'; - - var window = globalRoot.window; - var document = globalRoot.document; - - /** - * Default options in line charts. Expand the code view to see a detailed list of options with comments. - * - * @memberof Chartist.Pie - */ - var defaultOptions = { - // Specify a fixed width for the chart as a string (i.e. '100px' or '50%') - width: undefined, - // Specify a fixed height for the chart as a string (i.e. '100px' or '50%') - height: undefined, - // Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5} - chartPadding: 5, - // Override the class names that are used to generate the SVG structure of the chart - classNames: { - chartPie: 'ct-chart-pie', - chartDonut: 'ct-chart-donut', - series: 'ct-series', - slicePie: 'ct-slice-pie', - sliceDonut: 'ct-slice-donut', - sliceDonutSolid: 'ct-slice-donut-solid', - label: 'ct-label' - }, - // The start angle of the pie chart in degrees where 0 points north. A higher value offsets the start angle clockwise. - startAngle: 0, - // An optional total you can specify. By specifying a total value, the sum of the values in the series must be this total in order to draw a full pie. You can use this parameter to draw only parts of a pie or gauge charts. - total: undefined, - // If specified the donut CSS classes will be used and strokes will be drawn instead of pie slices. - donut: false, - // If specified the donut segments will be drawn as shapes instead of strokes. - donutSolid: false, - // Specify the donut stroke width, currently done in javascript for convenience. May move to CSS styles in the future. - // This option can be set as number or string to specify a relative width (i.e. 100 or '30%'). - donutWidth: 60, - // If a label should be shown or not - showLabel: true, - // Label position offset from the standard position which is half distance of the radius. This value can be either positive or negative. Positive values will position the label away from the center. - labelOffset: 0, - // This option can be set to 'inside', 'outside' or 'center'. Positioned with 'inside' the labels will be placed on half the distance of the radius to the border of the Pie by respecting the 'labelOffset'. The 'outside' option will place the labels at the border of the pie and 'center' will place the labels in the absolute center point of the chart. The 'center' option only makes sense in conjunction with the 'labelOffset' option. - labelPosition: 'inside', - // An interpolation function for the label value - labelInterpolationFnc: Chartist.noop, - // Label direction can be 'neutral', 'explode' or 'implode'. The labels anchor will be positioned based on those settings as well as the fact if the labels are on the right or left side of the center of the chart. Usually explode is useful when labels are positioned far away from the center. - labelDirection: 'neutral', - // If true the whole data is reversed including labels, the series order as well as the whole series data arrays. - reverseData: false, - // If true empty values will be ignored to avoid drawing unncessary slices and labels - ignoreEmptyValues: false - }; - - /** - * Determines SVG anchor position based on direction and center parameter - * - * @param center - * @param label - * @param direction - * @return {string} - */ - function determineAnchorPosition(center, label, direction) { - var toTheRight = label.x > center.x; - - if(toTheRight && direction === 'explode' || - !toTheRight && direction === 'implode') { - return 'start'; - } else if(toTheRight && direction === 'implode' || - !toTheRight && direction === 'explode') { - return 'end'; - } else { - return 'middle'; - } - } - - /** - * Creates the pie chart - * - * @param options - */ - function createChart(options) { - var data = Chartist.normalizeData(this.data); - var seriesGroups = [], - labelsGroup, - chartRect, - radius, - labelRadius, - totalDataSum, - startAngle = options.startAngle; - - // Create SVG.js draw - this.svg = Chartist.createSvg(this.container, options.width, options.height,options.donut ? options.classNames.chartDonut : options.classNames.chartPie); - // Calculate charting rect - chartRect = Chartist.createChartRect(this.svg, options, defaultOptions.padding); - // Get biggest circle radius possible within chartRect - radius = Math.min(chartRect.width() / 2, chartRect.height() / 2); - // Calculate total of all series to get reference value or use total reference from optional options - totalDataSum = options.total || data.normalized.series.reduce(function(previousValue, currentValue) { - return previousValue + currentValue; - }, 0); - - var donutWidth = Chartist.quantity(options.donutWidth); - if (donutWidth.unit === '%') { - donutWidth.value *= radius / 100; - } - - // If this is a donut chart we need to adjust our radius to enable strokes to be drawn inside - // Unfortunately this is not possible with the current SVG Spec - // See this proposal for more details: http://lists.w3.org/Archives/Public/www-svg/2003Oct/0000.html - radius -= options.donut && !options.donutSolid ? donutWidth.value / 2 : 0; - - // If labelPosition is set to `outside` or a donut chart is drawn then the label position is at the radius, - // if regular pie chart it's half of the radius - if(options.labelPosition === 'outside' || options.donut && !options.donutSolid) { - labelRadius = radius; - } else if(options.labelPosition === 'center') { - // If labelPosition is center we start with 0 and will later wait for the labelOffset - labelRadius = 0; - } else if(options.donutSolid) { - labelRadius = radius - donutWidth.value / 2; - } else { - // Default option is 'inside' where we use half the radius so the label will be placed in the center of the pie - // slice - labelRadius = radius / 2; - } - // Add the offset to the labelRadius where a negative offset means closed to the center of the chart - labelRadius += options.labelOffset; - - // Calculate end angle based on total sum and current data value and offset with padding - var center = { - x: chartRect.x1 + chartRect.width() / 2, - y: chartRect.y2 + chartRect.height() / 2 - }; - - // Check if there is only one non-zero value in the series array. - var hasSingleValInSeries = data.raw.series.filter(function(val) { - return val.hasOwnProperty('value') ? val.value !== 0 : val !== 0; - }).length === 1; - - // Creating the series groups - data.raw.series.forEach(function(series, index) { - seriesGroups[index] = this.svg.elem('g', null, null); - }.bind(this)); - //if we need to show labels we create the label group now - if(options.showLabel) { - labelsGroup = this.svg.elem('g', null, null); - } - - // Draw the series - // initialize series groups - data.raw.series.forEach(function(series, index) { - // If current value is zero and we are ignoring empty values then skip to next value - if (data.normalized.series[index] === 0 && options.ignoreEmptyValues) return; - - // If the series is an object and contains a name or meta data we add a custom attribute - seriesGroups[index].attr({ - 'ct:series-name': series.name - }); - - // Use series class from series data or if not set generate one - seriesGroups[index].addClass([ - options.classNames.series, - (series.className || options.classNames.series + '-' + Chartist.alphaNumerate(index)) - ].join(' ')); - - // If the whole dataset is 0 endAngle should be zero. Can't divide by 0. - var endAngle = (totalDataSum > 0 ? startAngle + data.normalized.series[index] / totalDataSum * 360 : 0); - - // Use slight offset so there are no transparent hairline issues - var overlappigStartAngle = Math.max(0, startAngle - (index === 0 || hasSingleValInSeries ? 0 : 0.2)); - - // If we need to draw the arc for all 360 degrees we need to add a hack where we close the circle - // with Z and use 359.99 degrees - if(endAngle - overlappigStartAngle >= 359.99) { - endAngle = overlappigStartAngle + 359.99; - } - - var start = Chartist.polarToCartesian(center.x, center.y, radius, overlappigStartAngle), - end = Chartist.polarToCartesian(center.x, center.y, radius, endAngle); - - var innerStart, - innerEnd, - donutSolidRadius; - - // Create a new path element for the pie chart. If this isn't a donut chart we should close the path for a correct stroke - var path = new Chartist.Svg.Path(!options.donut || options.donutSolid) - .move(end.x, end.y) - .arc(radius, radius, 0, endAngle - startAngle > 180, 0, start.x, start.y); - - // If regular pie chart (no donut) we add a line to the center of the circle for completing the pie - if(!options.donut) { - path.line(center.x, center.y); - } else if (options.donutSolid) { - donutSolidRadius = radius - donutWidth.value; - innerStart = Chartist.polarToCartesian(center.x, center.y, donutSolidRadius, startAngle - (index === 0 || hasSingleValInSeries ? 0 : 0.2)); - innerEnd = Chartist.polarToCartesian(center.x, center.y, donutSolidRadius, endAngle); - path.line(innerStart.x, innerStart.y); - path.arc(donutSolidRadius, donutSolidRadius, 0, endAngle - startAngle > 180, 1, innerEnd.x, innerEnd.y); - } - - // Create the SVG path - // If this is a donut chart we add the donut class, otherwise just a regular slice - var pathClassName = options.classNames.slicePie; - if (options.donut) { - pathClassName = options.classNames.sliceDonut; - if (options.donutSolid) { - pathClassName = options.classNames.sliceDonutSolid; - } - } - var pathElement = seriesGroups[index].elem('path', { - d: path.stringify() - }, pathClassName); - - // Adding the pie series value to the path - pathElement.attr({ - 'ct:value': data.normalized.series[index], - 'ct:meta': Chartist.serialize(series.meta) - }); - - // If this is a donut, we add the stroke-width as style attribute - if(options.donut && !options.donutSolid) { - pathElement._node.style.strokeWidth = donutWidth.value + 'px'; - } - - // Fire off draw event - this.eventEmitter.emit('draw', { - type: 'slice', - value: data.normalized.series[index], - totalDataSum: totalDataSum, - index: index, - meta: series.meta, - series: series, - group: seriesGroups[index], - element: pathElement, - path: path.clone(), - center: center, - radius: radius, - startAngle: startAngle, - endAngle: endAngle - }); - - // If we need to show labels we need to add the label for this slice now - if(options.showLabel) { - var labelPosition; - if(data.raw.series.length === 1) { - // If we have only 1 series, we can position the label in the center of the pie - labelPosition = { - x: center.x, - y: center.y - }; - } else { - // Position at the labelRadius distance from center and between start and end angle - labelPosition = Chartist.polarToCartesian( - center.x, - center.y, - labelRadius, - startAngle + (endAngle - startAngle) / 2 - ); - } - - var rawValue; - if(data.normalized.labels && !Chartist.isFalseyButZero(data.normalized.labels[index])) { - rawValue = data.normalized.labels[index]; - } else { - rawValue = data.normalized.series[index]; - } - - var interpolatedValue = options.labelInterpolationFnc(rawValue, index); - - if(interpolatedValue || interpolatedValue === 0) { - var labelElement = labelsGroup.elem('text', { - dx: labelPosition.x, - dy: labelPosition.y, - 'text-anchor': determineAnchorPosition(center, labelPosition, options.labelDirection) - }, options.classNames.label).text('' + interpolatedValue); - - // Fire off draw event - this.eventEmitter.emit('draw', { - type: 'label', - index: index, - group: labelsGroup, - element: labelElement, - text: '' + interpolatedValue, - x: labelPosition.x, - y: labelPosition.y - }); - } - } - - // Set next startAngle to current endAngle. - // (except for last slice) - startAngle = endAngle; - }.bind(this)); - - this.eventEmitter.emit('created', { - chartRect: chartRect, - svg: this.svg, - options: options - }); - } - - /** - * This method creates a new pie chart and returns an object that can be used to redraw the chart. - * - * @memberof Chartist.Pie - * @param {String|Node} query A selector query string or directly a DOM element - * @param {Object} data The data object in the pie chart needs to have a series property with a one dimensional data array. The values will be normalized against each other and don't necessarily need to be in percentage. The series property can also be an array of value objects that contain a value property and a className property to override the CSS class name for the series group. - * @param {Object} [options] The options object with options that override the default options. Check the examples for a detailed list. - * @param {Array} [responsiveOptions] Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]] - * @return {Object} An object with a version and an update method to manually redraw the chart - * - * @example - * // Simple pie chart example with four series - * new Chartist.Pie('.ct-chart', { - * series: [10, 2, 4, 3] - * }); - * - * @example - * // Drawing a donut chart - * new Chartist.Pie('.ct-chart', { - * series: [10, 2, 4, 3] - * }, { - * donut: true - * }); - * - * @example - * // Using donut, startAngle and total to draw a gauge chart - * new Chartist.Pie('.ct-chart', { - * series: [20, 10, 30, 40] - * }, { - * donut: true, - * donutWidth: 20, - * startAngle: 270, - * total: 200 - * }); - * - * @example - * // Drawing a pie chart with padding and labels that are outside the pie - * new Chartist.Pie('.ct-chart', { - * series: [20, 10, 30, 40] - * }, { - * chartPadding: 30, - * labelOffset: 50, - * labelDirection: 'explode' - * }); - * - * @example - * // Overriding the class names for individual series as well as a name and meta data. - * // The name will be written as ct:series-name attribute and the meta data will be serialized and written - * // to a ct:meta attribute. - * new Chartist.Pie('.ct-chart', { - * series: [{ - * value: 20, - * name: 'Series 1', - * className: 'my-custom-class-one', - * meta: 'Meta One' - * }, { - * value: 10, - * name: 'Series 2', - * className: 'my-custom-class-two', - * meta: 'Meta Two' - * }, { - * value: 70, - * name: 'Series 3', - * className: 'my-custom-class-three', - * meta: 'Meta Three' - * }] - * }); - */ - function Pie(query, data, options, responsiveOptions) { - Chartist.Pie.super.constructor.call(this, - query, - data, - defaultOptions, - Chartist.extend({}, defaultOptions, options), - responsiveOptions); - } - - // Creating pie chart type in Chartist namespace - Chartist.Pie = Chartist.Base.extend({ - constructor: Pie, - createChart: createChart, - determineAnchorPosition: determineAnchorPosition - }); - -}(this || global, Chartist)); - -return Chartist; - -})); diff --git a/dist/chartist.min.css b/dist/chartist.min.css deleted file mode 100644 index 3a070749b..000000000 --- a/dist/chartist.min.css +++ /dev/null @@ -1 +0,0 @@ -.ct-double-octave:after,.ct-golden-section:after,.ct-major-eleventh:after,.ct-major-second:after,.ct-major-seventh:after,.ct-major-sixth:after,.ct-major-tenth:after,.ct-major-third:after,.ct-major-twelfth:after,.ct-minor-second:after,.ct-minor-seventh:after,.ct-minor-sixth:after,.ct-minor-third:after,.ct-octave:after,.ct-perfect-fifth:after,.ct-perfect-fourth:after,.ct-square:after{content:"";clear:both}.ct-label{fill:rgba(0,0,0,.4);color:rgba(0,0,0,.4);font-size:.75rem;line-height:1}.ct-chart-bar .ct-label,.ct-chart-line .ct-label{display:block;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex}.ct-chart-donut .ct-label,.ct-chart-pie .ct-label{dominant-baseline:central}.ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-label.ct-vertical.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-end;-webkit-justify-content:flex-end;-ms-flex-pack:flex-end;justify-content:flex-end;text-align:right;text-anchor:end}.ct-label.ct-vertical.ct-end{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar .ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;text-anchor:start}.ct-chart-bar .ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:flex-end;-webkit-justify-content:flex-end;-ms-flex-pack:flex-end;justify-content:flex-end;text-align:right;text-anchor:end}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:end}.ct-grid{stroke:rgba(0,0,0,.2);stroke-width:1px;stroke-dasharray:2px}.ct-grid-background{fill:none}.ct-point{stroke-width:10px;stroke-linecap:round}.ct-line{fill:none;stroke-width:4px}.ct-area{stroke:none;fill-opacity:.1}.ct-bar{fill:none;stroke-width:10px}.ct-slice-donut{fill:none;stroke-width:60px}.ct-series-a .ct-bar,.ct-series-a .ct-line,.ct-series-a .ct-point,.ct-series-a .ct-slice-donut{stroke:#d70206}.ct-series-a .ct-area,.ct-series-a .ct-slice-donut-solid,.ct-series-a .ct-slice-pie{fill:#d70206}.ct-series-b .ct-bar,.ct-series-b .ct-line,.ct-series-b .ct-point,.ct-series-b .ct-slice-donut{stroke:#f05b4f}.ct-series-b .ct-area,.ct-series-b .ct-slice-donut-solid,.ct-series-b .ct-slice-pie{fill:#f05b4f}.ct-series-c .ct-bar,.ct-series-c .ct-line,.ct-series-c .ct-point,.ct-series-c .ct-slice-donut{stroke:#f4c63d}.ct-series-c .ct-area,.ct-series-c .ct-slice-donut-solid,.ct-series-c .ct-slice-pie{fill:#f4c63d}.ct-series-d .ct-bar,.ct-series-d .ct-line,.ct-series-d .ct-point,.ct-series-d .ct-slice-donut{stroke:#d17905}.ct-series-d .ct-area,.ct-series-d .ct-slice-donut-solid,.ct-series-d .ct-slice-pie{fill:#d17905}.ct-series-e .ct-bar,.ct-series-e .ct-line,.ct-series-e .ct-point,.ct-series-e .ct-slice-donut{stroke:#453d3f}.ct-series-e .ct-area,.ct-series-e .ct-slice-donut-solid,.ct-series-e .ct-slice-pie{fill:#453d3f}.ct-series-f .ct-bar,.ct-series-f .ct-line,.ct-series-f .ct-point,.ct-series-f .ct-slice-donut{stroke:#59922b}.ct-series-f .ct-area,.ct-series-f .ct-slice-donut-solid,.ct-series-f .ct-slice-pie{fill:#59922b}.ct-series-g .ct-bar,.ct-series-g .ct-line,.ct-series-g .ct-point,.ct-series-g .ct-slice-donut{stroke:#0544d3}.ct-series-g .ct-area,.ct-series-g .ct-slice-donut-solid,.ct-series-g .ct-slice-pie{fill:#0544d3}.ct-series-h .ct-bar,.ct-series-h .ct-line,.ct-series-h .ct-point,.ct-series-h .ct-slice-donut{stroke:#6b0392}.ct-series-h .ct-area,.ct-series-h .ct-slice-donut-solid,.ct-series-h .ct-slice-pie{fill:#6b0392}.ct-series-i .ct-bar,.ct-series-i .ct-line,.ct-series-i .ct-point,.ct-series-i .ct-slice-donut{stroke:#f05b4f}.ct-series-i .ct-area,.ct-series-i .ct-slice-donut-solid,.ct-series-i .ct-slice-pie{fill:#f05b4f}.ct-series-j .ct-bar,.ct-series-j .ct-line,.ct-series-j .ct-point,.ct-series-j .ct-slice-donut{stroke:#dda458}.ct-series-j .ct-area,.ct-series-j .ct-slice-donut-solid,.ct-series-j .ct-slice-pie{fill:#dda458}.ct-series-k .ct-bar,.ct-series-k .ct-line,.ct-series-k .ct-point,.ct-series-k .ct-slice-donut{stroke:#eacf7d}.ct-series-k .ct-area,.ct-series-k .ct-slice-donut-solid,.ct-series-k .ct-slice-pie{fill:#eacf7d}.ct-series-l .ct-bar,.ct-series-l .ct-line,.ct-series-l .ct-point,.ct-series-l .ct-slice-donut{stroke:#86797d}.ct-series-l .ct-area,.ct-series-l .ct-slice-donut-solid,.ct-series-l .ct-slice-pie{fill:#86797d}.ct-series-m .ct-bar,.ct-series-m .ct-line,.ct-series-m .ct-point,.ct-series-m .ct-slice-donut{stroke:#b2c326}.ct-series-m .ct-area,.ct-series-m .ct-slice-donut-solid,.ct-series-m .ct-slice-pie{fill:#b2c326}.ct-series-n .ct-bar,.ct-series-n .ct-line,.ct-series-n .ct-point,.ct-series-n .ct-slice-donut{stroke:#6188e2}.ct-series-n .ct-area,.ct-series-n .ct-slice-donut-solid,.ct-series-n .ct-slice-pie{fill:#6188e2}.ct-series-o .ct-bar,.ct-series-o .ct-line,.ct-series-o .ct-point,.ct-series-o .ct-slice-donut{stroke:#a748ca}.ct-series-o .ct-area,.ct-series-o .ct-slice-donut-solid,.ct-series-o .ct-slice-pie{fill:#a748ca}.ct-square{display:block;position:relative;width:100%}.ct-square:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:100%}.ct-square:after{display:table}.ct-square>svg{display:block;position:absolute;top:0;left:0}.ct-minor-second{display:block;position:relative;width:100%}.ct-minor-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:93.75%}.ct-minor-second:after{display:table}.ct-minor-second>svg{display:block;position:absolute;top:0;left:0}.ct-major-second{display:block;position:relative;width:100%}.ct-major-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:88.8888888889%}.ct-major-second:after{display:table}.ct-major-second>svg{display:block;position:absolute;top:0;left:0}.ct-minor-third{display:block;position:relative;width:100%}.ct-minor-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:83.3333333333%}.ct-minor-third:after{display:table}.ct-minor-third>svg{display:block;position:absolute;top:0;left:0}.ct-major-third{display:block;position:relative;width:100%}.ct-major-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:80%}.ct-major-third:after{display:table}.ct-major-third>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fourth{display:block;position:relative;width:100%}.ct-perfect-fourth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:75%}.ct-perfect-fourth:after{display:table}.ct-perfect-fourth>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fifth{display:block;position:relative;width:100%}.ct-perfect-fifth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:66.6666666667%}.ct-perfect-fifth:after{display:table}.ct-perfect-fifth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-sixth{display:block;position:relative;width:100%}.ct-minor-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:62.5%}.ct-minor-sixth:after{display:table}.ct-minor-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-golden-section{display:block;position:relative;width:100%}.ct-golden-section:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:61.804697157%}.ct-golden-section:after{display:table}.ct-golden-section>svg{display:block;position:absolute;top:0;left:0}.ct-major-sixth{display:block;position:relative;width:100%}.ct-major-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:60%}.ct-major-sixth:after{display:table}.ct-major-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-seventh{display:block;position:relative;width:100%}.ct-minor-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:56.25%}.ct-minor-seventh:after{display:table}.ct-minor-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-seventh{display:block;position:relative;width:100%}.ct-major-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:53.3333333333%}.ct-major-seventh:after{display:table}.ct-major-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-octave{display:block;position:relative;width:100%}.ct-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:50%}.ct-octave:after{display:table}.ct-octave>svg{display:block;position:absolute;top:0;left:0}.ct-major-tenth{display:block;position:relative;width:100%}.ct-major-tenth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:40%}.ct-major-tenth:after{display:table}.ct-major-tenth>svg{display:block;position:absolute;top:0;left:0}.ct-major-eleventh{display:block;position:relative;width:100%}.ct-major-eleventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:37.5%}.ct-major-eleventh:after{display:table}.ct-major-eleventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-twelfth{display:block;position:relative;width:100%}.ct-major-twelfth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:33.3333333333%}.ct-major-twelfth:after{display:table}.ct-major-twelfth>svg{display:block;position:absolute;top:0;left:0}.ct-double-octave{display:block;position:relative;width:100%}.ct-double-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:25%}.ct-double-octave:after{display:table}.ct-double-octave>svg{display:block;position:absolute;top:0;left:0} \ No newline at end of file diff --git a/dist/chartist.min.js b/dist/chartist.min.js deleted file mode 100644 index d58d379b5..000000000 --- a/dist/chartist.min.js +++ /dev/null @@ -1,10 +0,0 @@ -/* Chartist.js 0.11.4 - * Copyright Ā© 2019 Gion Kunz - * Free to use under either the WTFPL license or the MIT license. - * https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-WTFPL - * https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-MIT - */ - -!function(a,b){"function"==typeof define&&define.amd?define("Chartist",[],function(){return a.Chartist=b()}):"object"==typeof module&&module.exports?module.exports=b():a.Chartist=b()}(this,function(){var a={version:"0.11.4"};return function(a,b){"use strict";var c=a.window,d=a.document;b.namespaces={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},b.noop=function(a){return a},b.alphaNumerate=function(a){return String.fromCharCode(97+a%26)},b.extend=function(a){var c,d,e;for(a=a||{},c=1;c":">",'"':""","'":"'"},b.serialize=function(a){return null===a||void 0===a?a:("number"==typeof a?a=""+a:"object"==typeof a&&(a=JSON.stringify({data:a})),Object.keys(b.escapingMap).reduce(function(a,c){return b.replaceAll(a,c,b.escapingMap[c])},a))},b.deserialize=function(a){if("string"!=typeof a)return a;a=Object.keys(b.escapingMap).reduce(function(a,c){return b.replaceAll(a,b.escapingMap[c],c)},a);try{a=JSON.parse(a),a=void 0!==a.data?a.data:a}catch(c){}return a},b.createSvg=function(a,c,d,e){var f;return c=c||"100%",d=d||"100%",Array.prototype.slice.call(a.querySelectorAll("svg")).filter(function(a){return a.getAttributeNS(b.namespaces.xmlns,"ct")}).forEach(function(b){a.removeChild(b)}),f=new b.Svg("svg").attr({width:c,height:d}).addClass(e),f._node.style.width=c,f._node.style.height=d,a.appendChild(f._node),f},b.normalizeData=function(a,c,d){var e,f={raw:a,normalized:{}};return f.normalized.series=b.getDataArray({series:a.series||[]},c,d),e=f.normalized.series.every(function(a){return a instanceof Array})?Math.max.apply(null,f.normalized.series.map(function(a){return a.length})):f.normalized.series.length,f.normalized.labels=(a.labels||[]).slice(),Array.prototype.push.apply(f.normalized.labels,b.times(Math.max(0,e-f.normalized.labels.length)).map(function(){return""})),c&&b.reverseData(f.normalized),f},b.safeHasProperty=function(a,b){return null!==a&&"object"==typeof a&&a.hasOwnProperty(b)},b.isDataHoleValue=function(a){return null===a||void 0===a||"number"==typeof a&&isNaN(a)},b.reverseData=function(a){a.labels.reverse(),a.series.reverse();for(var b=0;bf.high&&(f.high=c),h&&c0?f.low=0:(f.high=1,f.low=0)),f},b.isNumeric=function(a){return null!==a&&isFinite(a)},b.isFalseyButZero=function(a){return!a&&0!==a},b.getNumberOrUndefined=function(a){return b.isNumeric(a)?+a:void 0},b.isMultiValue=function(a){return"object"==typeof a&&("x"in a||"y"in a)},b.getMultiValue=function(a,c){return b.isMultiValue(a)?b.getNumberOrUndefined(a[c||"y"]):b.getNumberOrUndefined(a)},b.rho=function(a){function b(a,c){return a%c===0?c:b(c,a%c)}function c(a){return a*a+1}if(1===a)return a;var d,e=2,f=2;if(a%2===0)return 2;do e=c(e)%a,f=c(c(f))%a,d=b(Math.abs(e-f),a);while(1===d);return d},b.getBounds=function(a,c,d,e){function f(a,b){return a===(a+=b)&&(a*=1+(b>0?o:-o)),a}var g,h,i,j=0,k={high:c.high,low:c.low};k.valueRange=k.high-k.low,k.oom=b.orderOfMagnitude(k.valueRange),k.step=Math.pow(10,k.oom),k.min=Math.floor(k.low/k.step)*k.step,k.max=Math.ceil(k.high/k.step)*k.step,k.range=k.max-k.min,k.numberOfSteps=Math.round(k.range/k.step);var l=b.projectLength(a,k.step,k),m=l=d)k.step=1;else if(e&&n=d)k.step=n;else for(;;){if(m&&b.projectLength(a,k.step,k)<=d)k.step*=2;else{if(m||!(b.projectLength(a,k.step/2,k)>=d))break;if(k.step/=2,e&&k.step%1!==0){k.step*=2;break}}if(j++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}var o=2.221e-16;for(k.step=Math.max(k.step,o),h=k.min,i=k.max;h+k.step<=k.low;)h=f(h,k.step);for(;i-k.step>=k.high;)i=f(i,-k.step);k.min=h,k.max=i,k.range=k.max-k.min;var p=[];for(g=k.min;g<=k.max;g=f(g,k.step)){var q=b.roundWithPrecision(g);q!==p[p.length-1]&&p.push(q)}return k.values=p,k},b.polarToCartesian=function(a,b,c,d){var e=(d-90)*Math.PI/180;return{x:a+c*Math.cos(e),y:b+c*Math.sin(e)}},b.createChartRect=function(a,c,d){var e=!(!c.axisX&&!c.axisY),f=e?c.axisY.offset:0,g=e?c.axisX.offset:0,h=a.width()||b.quantity(c.width).value||0,i=a.height()||b.quantity(c.height).value||0,j=b.normalizePadding(c.chartPadding,d);h=Math.max(h,f+j.left+j.right),i=Math.max(i,g+j.top+j.bottom);var k={padding:j,width:function(){return this.x2-this.x1},height:function(){return this.y1-this.y2}};return e?("start"===c.axisX.position?(k.y2=j.top+g,k.y1=Math.max(i-j.bottom,k.y2+1)):(k.y2=j.top,k.y1=Math.max(i-j.bottom-g,k.y2+1)),"start"===c.axisY.position?(k.x1=j.left+f,k.x2=Math.max(h-j.right,k.x1+1)):(k.x1=j.left,k.x2=Math.max(h-j.right-f,k.x1+1))):(k.x1=j.left,k.x2=Math.max(h-j.right,k.x1+1),k.y2=j.top,k.y1=Math.max(i-j.bottom,k.y2+1)),k},b.createGrid=function(a,c,d,e,f,g,h,i){var j={};j[d.units.pos+"1"]=a,j[d.units.pos+"2"]=a,j[d.counterUnits.pos+"1"]=e,j[d.counterUnits.pos+"2"]=e+f;var k=g.elem("line",j,h.join(" "));i.emit("draw",b.extend({type:"grid",axis:d,index:c,group:g,element:k},j))},b.createGridBackground=function(a,b,c,d){var e=a.elem("rect",{x:b.x1,y:b.y2,width:b.width(),height:b.height()},c,!0);d.emit("draw",{type:"gridBackground",group:a,element:e})},b.createLabel=function(a,c,e,f,g,h,i,j,k,l,m){var n,o={};if(o[g.units.pos]=a+i[g.units.pos],o[g.counterUnits.pos]=i[g.counterUnits.pos],o[g.units.len]=c,o[g.counterUnits.len]=Math.max(0,h-10),l){var p=d.createElement("span");p.className=k.join(" "),p.setAttribute("xmlns",b.namespaces.xhtml),p.innerText=f[e],p.style[g.units.len]=Math.round(o[g.units.len])+"px",p.style[g.counterUnits.len]=Math.round(o[g.counterUnits.len])+"px",n=j.foreignObject(p,b.extend({style:"overflow: visible;"},o))}else n=j.elem("text",o,k.join(" ")).text(f[e]);m.emit("draw",b.extend({type:"label",axis:g,index:e,group:j,element:n,text:f[e]},o))},b.getSeriesOption=function(a,b,c){if(a.name&&b.series&&b.series[a.name]){var d=b.series[a.name];return d.hasOwnProperty(c)?d[c]:b[c]}return b[c]},b.optionsProvider=function(a,d,e){function f(a){var f=h;if(h=b.extend({},j),d)for(i=0;i=2&&a[h]<=a[h-2]&&(g=!0),g&&(f.push({pathCoordinates:[],valueData:[]}),g=!1),f[f.length-1].pathCoordinates.push(a[h],a[h+1]),f[f.length-1].valueData.push(c[h/2]));return f}}(this||global,a),function(a,b){"use strict";b.Interpolation={},b.Interpolation.none=function(a){var c={fillHoles:!1};return a=b.extend({},c,a),function(c,d){for(var e=new b.Svg.Path,f=!0,g=0;g1){var i=[];return h.forEach(function(a){i.push(f(a.pathCoordinates,a.valueData))}),b.Svg.Path.join(i)}if(c=h[0].pathCoordinates,g=h[0].valueData,c.length<=4)return b.Interpolation.none()(c,g);for(var j,k=(new b.Svg.Path).move(c[0],c[1],!1,g[0]),l=0,m=c.length;m-2*!j>l;l+=2){var n=[{x:+c[l-2],y:+c[l-1]},{x:+c[l],y:+c[l+1]},{x:+c[l+2],y:+c[l+3]},{x:+c[l+4],y:+c[l+5]}];j?l?m-4===l?n[3]={x:+c[0],y:+c[1]}:m-2===l&&(n[2]={x:+c[0],y:+c[1]},n[3]={x:+c[2],y:+c[3]}):n[0]={x:+c[m-2],y:+c[m-1]}:m-4===l?n[3]=n[2]:l||(n[0]={x:+c[l],y:+c[l+1]}),k.curve(d*(-n[0].x+6*n[1].x+n[2].x)/6+e*n[2].x,d*(-n[0].y+6*n[1].y+n[2].y)/6+e*n[2].y,d*(n[1].x+6*n[2].x-n[3].x)/6+e*n[2].x,d*(n[1].y+6*n[2].y-n[3].y)/6+e*n[2].y,n[2].x,n[2].y,!1,g[(l+2)/2])}return k}return b.Interpolation.none()([])}},b.Interpolation.monotoneCubic=function(a){var c={fillHoles:!1};return a=b.extend({},c,a),function d(c,e){var f=b.splitIntoSegments(c,e,{fillHoles:a.fillHoles,increasingX:!0});if(f.length){if(f.length>1){var g=[];return f.forEach(function(a){g.push(d(a.pathCoordinates,a.valueData))}),b.Svg.Path.join(g)}if(c=f[0].pathCoordinates,e=f[0].valueData,c.length<=4)return b.Interpolation.none()(c,e);var h,i,j=[],k=[],l=c.length/2,m=[],n=[],o=[],p=[];for(h=0;h0!=n[h]>0?m[h]=0:(m[h]=3*(p[h-1]+p[h])/((2*p[h]+p[h-1])/n[h-1]+(p[h]+2*p[h-1])/n[h]),isFinite(m[h])||(m[h]=0));for(i=(new b.Svg.Path).move(j[0],k[0],!1,e[0]),h=0;h1}).map(function(a){var b=a.pathElements[0],c=a.pathElements[a.pathElements.length-1];return a.clone(!0).position(0).remove(1).move(b.x,r).line(b.x,b.y).position(a.pathElements.length+1).line(c.x,r)}).forEach(function(b){var h=i.elem("path",{d:b.stringify()},a.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:c.normalized.series[g],path:b.clone(),series:e,seriesIndex:g,axisX:d,axisY:f,chartRect:j,index:g,group:i,element:h})}.bind(this))}}.bind(this)),this.eventEmitter.emit("created",{bounds:f.bounds,chartRect:j,axisX:d,axisY:f,svg:this.svg,options:a})}function d(a,c,d,f){b.Line["super"].constructor.call(this,a,c,e,b.extend({},e,d),f)}var e=(a.window,a.document,{axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:b.noop,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:b.noop,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}});b.Line=b.Base.extend({constructor:d,createChart:c})}(this||global,a),function(a,b){"use strict";function c(a){var c,d;a.distributeSeries?(c=b.normalizeData(this.data,a.reverseData,a.horizontalBars?"x":"y"),c.normalized.series=c.normalized.series.map(function(a){return[a]})):c=b.normalizeData(this.data,a.reverseData,a.horizontalBars?"x":"y"),this.svg=b.createSvg(this.container,a.width,a.height,a.classNames.chart+(a.horizontalBars?" "+a.classNames.horizontalBars:""));var f=this.svg.elem("g").addClass(a.classNames.gridGroup),g=this.svg.elem("g"),h=this.svg.elem("g").addClass(a.classNames.labelGroup); -if(a.stackBars&&0!==c.normalized.series.length){var i=b.serialMap(c.normalized.series,function(){return Array.prototype.slice.call(arguments).map(function(a){return a}).reduce(function(a,b){return{x:a.x+(b&&b.x)||0,y:a.y+(b&&b.y)||0}},{x:0,y:0})});d=b.getHighLow([i],a,a.horizontalBars?"x":"y")}else d=b.getHighLow(c.normalized.series,a,a.horizontalBars?"x":"y");d.high=+a.high||(0===a.high?0:d.high),d.low=+a.low||(0===a.low?0:d.low);var j,k,l,m,n,o=b.createChartRect(this.svg,a,e.padding);k=a.distributeSeries&&a.stackBars?c.normalized.labels.slice(0,1):c.normalized.labels,a.horizontalBars?(j=m=void 0===a.axisX.type?new b.AutoScaleAxis(b.Axis.units.x,c.normalized.series,o,b.extend({},a.axisX,{highLow:d,referenceValue:0})):a.axisX.type.call(b,b.Axis.units.x,c.normalized.series,o,b.extend({},a.axisX,{highLow:d,referenceValue:0})),l=n=void 0===a.axisY.type?new b.StepAxis(b.Axis.units.y,c.normalized.series,o,{ticks:k}):a.axisY.type.call(b,b.Axis.units.y,c.normalized.series,o,a.axisY)):(l=m=void 0===a.axisX.type?new b.StepAxis(b.Axis.units.x,c.normalized.series,o,{ticks:k}):a.axisX.type.call(b,b.Axis.units.x,c.normalized.series,o,a.axisX),j=n=void 0===a.axisY.type?new b.AutoScaleAxis(b.Axis.units.y,c.normalized.series,o,b.extend({},a.axisY,{highLow:d,referenceValue:0})):a.axisY.type.call(b,b.Axis.units.y,c.normalized.series,o,b.extend({},a.axisY,{highLow:d,referenceValue:0})));var p=a.horizontalBars?o.x1+j.projectValue(0):o.y1-j.projectValue(0),q=[];l.createGridAndLabels(f,h,this.supportsForeignObject,a,this.eventEmitter),j.createGridAndLabels(f,h,this.supportsForeignObject,a,this.eventEmitter),a.showGridBackground&&b.createGridBackground(f,o,a.classNames.gridBackground,this.eventEmitter),c.raw.series.forEach(function(d,e){var f,h,i=e-(c.raw.series.length-1)/2;f=a.distributeSeries&&!a.stackBars?l.axisLength/c.normalized.series.length/2:a.distributeSeries&&a.stackBars?l.axisLength/2:l.axisLength/c.normalized.series[e].length/2,h=g.elem("g"),h.attr({"ct:series-name":d.name,"ct:meta":b.serialize(d.meta)}),h.addClass([a.classNames.series,d.className||a.classNames.series+"-"+b.alphaNumerate(e)].join(" ")),c.normalized.series[e].forEach(function(g,k){var r,s,t,u;if(u=a.distributeSeries&&!a.stackBars?e:a.distributeSeries&&a.stackBars?0:k,r=a.horizontalBars?{x:o.x1+j.projectValue(g&&g.x?g.x:0,k,c.normalized.series[e]),y:o.y1-l.projectValue(g&&g.y?g.y:0,u,c.normalized.series[e])}:{x:o.x1+l.projectValue(g&&g.x?g.x:0,u,c.normalized.series[e]),y:o.y1-j.projectValue(g&&g.y?g.y:0,k,c.normalized.series[e])},l instanceof b.StepAxis&&(l.options.stretch||(r[l.units.pos]+=f*(a.horizontalBars?-1:1)),r[l.units.pos]+=a.stackBars||a.distributeSeries?0:i*a.seriesBarDistance*(a.horizontalBars?-1:1)),t=q[k]||p,q[k]=t-(p-r[l.counterUnits.pos]),void 0!==g){var v={};v[l.units.pos+"1"]=r[l.units.pos],v[l.units.pos+"2"]=r[l.units.pos],!a.stackBars||"accumulate"!==a.stackMode&&a.stackMode?(v[l.counterUnits.pos+"1"]=p,v[l.counterUnits.pos+"2"]=r[l.counterUnits.pos]):(v[l.counterUnits.pos+"1"]=t,v[l.counterUnits.pos+"2"]=q[k]),v.x1=Math.min(Math.max(v.x1,o.x1),o.x2),v.x2=Math.min(Math.max(v.x2,o.x1),o.x2),v.y1=Math.min(Math.max(v.y1,o.y2),o.y1),v.y2=Math.min(Math.max(v.y2,o.y2),o.y1);var w=b.getMetaData(d,k);s=h.elem("line",v,a.classNames.bar).attr({"ct:value":[g.x,g.y].filter(b.isNumeric).join(","),"ct:meta":b.serialize(w)}),this.eventEmitter.emit("draw",b.extend({type:"bar",value:g,index:k,meta:w,series:d,seriesIndex:e,axisX:m,axisY:n,chartRect:o,group:h,element:s},v))}}.bind(this))}.bind(this)),this.eventEmitter.emit("created",{bounds:j.bounds,chartRect:o,axisX:m,axisY:n,svg:this.svg,options:a})}function d(a,c,d,f){b.Bar["super"].constructor.call(this,a,c,e,b.extend({},e,d),f)}var e=(a.window,a.document,{axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:b.noop,scaleMinSpace:30,onlyInteger:!1},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:b.noop,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,high:void 0,low:void 0,referenceValue:0,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:!1,stackMode:"accumulate",horizontalBars:!1,distributeSeries:!1,reverseData:!1,showGridBackground:!1,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}});b.Bar=b.Base.extend({constructor:d,createChart:c})}(this||global,a),function(a,b){"use strict";function c(a,b,c){var d=b.x>a.x;return d&&"explode"===c||!d&&"implode"===c?"start":d&&"implode"===c||!d&&"explode"===c?"end":"middle"}function d(a){var d,e,g,h,i,j=b.normalizeData(this.data),k=[],l=a.startAngle;this.svg=b.createSvg(this.container,a.width,a.height,a.donut?a.classNames.chartDonut:a.classNames.chartPie),e=b.createChartRect(this.svg,a,f.padding),g=Math.min(e.width()/2,e.height()/2),i=a.total||j.normalized.series.reduce(function(a,b){return a+b},0);var m=b.quantity(a.donutWidth);"%"===m.unit&&(m.value*=g/100),g-=a.donut&&!a.donutSolid?m.value/2:0,h="outside"===a.labelPosition||a.donut&&!a.donutSolid?g:"center"===a.labelPosition?0:a.donutSolid?g-m.value/2:g/2,h+=a.labelOffset;var n={x:e.x1+e.width()/2,y:e.y2+e.height()/2},o=1===j.raw.series.filter(function(a){return a.hasOwnProperty("value")?0!==a.value:0!==a}).length;j.raw.series.forEach(function(a,b){k[b]=this.svg.elem("g",null,null)}.bind(this)),a.showLabel&&(d=this.svg.elem("g",null,null)),j.raw.series.forEach(function(e,f){if(0!==j.normalized.series[f]||!a.ignoreEmptyValues){k[f].attr({"ct:series-name":e.name}),k[f].addClass([a.classNames.series,e.className||a.classNames.series+"-"+b.alphaNumerate(f)].join(" "));var p=i>0?l+j.normalized.series[f]/i*360:0,q=Math.max(0,l-(0===f||o?0:.2));p-q>=359.99&&(p=q+359.99);var r,s,t,u=b.polarToCartesian(n.x,n.y,g,q),v=b.polarToCartesian(n.x,n.y,g,p),w=new b.Svg.Path(!a.donut||a.donutSolid).move(v.x,v.y).arc(g,g,0,p-l>180,0,u.x,u.y);a.donut?a.donutSolid&&(t=g-m.value,r=b.polarToCartesian(n.x,n.y,t,l-(0===f||o?0:.2)),s=b.polarToCartesian(n.x,n.y,t,p),w.line(r.x,r.y),w.arc(t,t,0,p-l>180,1,s.x,s.y)):w.line(n.x,n.y);var x=a.classNames.slicePie;a.donut&&(x=a.classNames.sliceDonut,a.donutSolid&&(x=a.classNames.sliceDonutSolid));var y=k[f].elem("path",{d:w.stringify()},x);if(y.attr({"ct:value":j.normalized.series[f],"ct:meta":b.serialize(e.meta)}),a.donut&&!a.donutSolid&&(y._node.style.strokeWidth=m.value+"px"),this.eventEmitter.emit("draw",{type:"slice",value:j.normalized.series[f],totalDataSum:i,index:f,meta:e.meta,series:e,group:k[f],element:y,path:w.clone(),center:n,radius:g,startAngle:l,endAngle:p}),a.showLabel){var z;z=1===j.raw.series.length?{x:n.x,y:n.y}:b.polarToCartesian(n.x,n.y,h,l+(p-l)/2);var A;A=j.normalized.labels&&!b.isFalseyButZero(j.normalized.labels[f])?j.normalized.labels[f]:j.normalized.series[f];var B=a.labelInterpolationFnc(A,f);if(B||0===B){var C=d.elem("text",{dx:z.x,dy:z.y,"text-anchor":c(n,z,a.labelDirection)},a.classNames.label).text(""+B);this.eventEmitter.emit("draw",{type:"label",index:f,group:d,element:C,text:""+B,x:z.x,y:z.y})}}l=p}}.bind(this)),this.eventEmitter.emit("created",{chartRect:e,svg:this.svg,options:a})}function e(a,c,d,e){b.Pie["super"].constructor.call(this,a,c,f,b.extend({},f,d),e)}var f=(a.window,a.document,{width:void 0,height:void 0,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",sliceDonutSolid:"ct-slice-donut-solid",label:"ct-label"},startAngle:0,total:void 0,donut:!1,donutSolid:!1,donutWidth:60,showLabel:!0,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:b.noop,labelDirection:"neutral",reverseData:!1,ignoreEmptyValues:!1});b.Pie=b.Base.extend({constructor:e,createChart:d,determineAnchorPosition:c})}(this||global,a),a}); -//# sourceMappingURL=chartist.min.js.map \ No newline at end of file diff --git a/dist/chartist.min.js.map b/dist/chartist.min.js.map deleted file mode 100644 index 86b7c443c..000000000 --- a/dist/chartist.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["chartist.js"],"names":["root","factory","define","amd","module","exports","this","Chartist","version","globalRoot","window","document","namespaces","svg","xmlns","xhtml","xlink","ct","noop","n","alphaNumerate","String","fromCharCode","extend","target","i","source","sourceProp","arguments","length","prop","Array","replaceAll","str","subStr","newSubStr","replace","RegExp","ensureUnit","value","unit","quantity","input","match","exec","undefined","querySelector","query","Node","times","apply","sum","previous","current","mapMultiply","factor","num","mapAdd","addend","serialMap","arr","cb","result","Math","max","map","e","forEach","index","args","roundWithPrecision","digits","precision","pow","round","escapingMap","&","<",">","\"","'","serialize","data","JSON","stringify","Object","keys","reduce","key","deserialize","parse","createSvg","container","width","height","className","prototype","slice","call","querySelectorAll","filter","getAttributeNS","removeChild","Svg","attr","addClass","_node","style","appendChild","normalizeData","reverse","multi","labelCount","output","raw","normalized","series","getDataArray","every","labels","push","reverseData","safeHasProperty","object","property","hasOwnProperty","isDataHoleValue","isNaN","recursiveConvert","multiValue","getNumberOrUndefined","y","x","normalizePadding","padding","fallback","top","right","bottom","left","getMetaData","meta","orderOfMagnitude","floor","log","abs","LN10","projectLength","axisLength","bounds","range","getAvailableHeight","options","chartPadding","axisX","offset","getHighLow","dimension","recursiveHighLow","findHigh","highLow","high","findLow","low","toUpperCase","Number","MAX_VALUE","referenceValue","min","isNumeric","isFinite","isFalseyButZero","isMultiValue","getMultiValue","rho","gcd","p","q","f","divisor","x1","x2","getBounds","scaleMinSpace","onlyInteger","safeIncrement","increment","EPSILON","newMin","newMax","optimizationCounter","valueRange","oom","step","ceil","numberOfSteps","scaleUp","smallestFactor","Error","values","polarToCartesian","centerX","centerY","radius","angleInDegrees","angleInRadians","PI","cos","sin","createChartRect","fallbackPadding","hasAxis","axisY","yAxisOffset","xAxisOffset","normalizedPadding","chartRect","y1","y2","position","createGrid","axis","group","classes","eventEmitter","positionalData","units","pos","counterUnits","gridElement","elem","join","emit","type","element","createGridBackground","gridGroup","gridBackground","createLabel","axisOffset","labelOffset","useForeignObject","labelElement","len","content","createElement","setAttribute","innerText","foreignObject","text","getSeriesOption","name","seriesOptions","optionsProvider","responsiveOptions","updateCurrentOptions","mediaEvent","previousOptions","currentOptions","baseOptions","mql","matchMedia","matches","removeMediaQueryListeners","mediaQueryListeners","removeListener","addListener","getCurrentOptions","splitIntoSegments","pathCoordinates","valueData","defaultOptions","increasingX","fillHoles","segments","hole","global","Interpolation","none","path","Path","currX","currY","currData","move","line","simple","d","prevX","prevY","prevData","curve","cardinal","tension","t","c","paths","segment","z","iLen","monotoneCubic","xs","ys","ms","ds","dys","dxs","postpone","EventEmitter","addEventHandler","event","handler","handlers","removeEventHandler","splice","indexOf","starHandler","listToArray","list","properties","superProtoOverride","superProto","Class","proto","create","cloneDefinitions","constr","instance","fn","constructor","getOwnPropertyNames","propName","defineProperty","getOwnPropertyDescriptor","update","override","initializeTimeoutId","createChart","detach","clearTimeout","removeEventListener","resizeListener","on","off","initialize","addEventListener","bind","plugins","plugin","Base","supportsForeignObject","isSupported","supportsAnimations","__chartist__","setTimeout","attributes","parent","insertFirst","Element","createElementNS","xmlns:ct","firstChild","insertBefore","ns","getAttribute","namespacedAttribute","split","setAttributeNS","parentNode","SVGElement","node","nodeName","selector","foundNode","foundNodes","List","getNode","innerHTML","fnObj","createTextNode","empty","remove","newElement","replaceChild","append","trim","names","concat","self","removeClass","removedClasses","removeAllClasses","getBoundingClientRect","animate","animations","guided","attribute","createAnimate","animationDefinition","timeout","easing","attributeProperties","Easing","begin","dur","calcMode","keySplines","keyTimes","fill","from","attributeName","beginElement","err","to","params","SvgList","nodeList","svgElements","prototypeProperty","feature","implementation","hasFeature","easingCubicBeziers","easeInSine","easeOutSine","easeInOutSine","easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","easeInExpo","easeOutExpo","easeInOutExpo","easeInCirc","easeOutCirc","easeInOutCirc","easeInBack","easeOutBack","easeInOutBack","command","pathElements","relative","pathElement","toLowerCase","forEachParam","pathElementIndex","elementDescriptions","paramName","paramIndex","SvgPath","close","count","arc","rx","ry","xAr","lAf","sf","chunks","pop","elements","chunk","shift","description","spliceArgs","accuracyMultiplier","accuracy","scale","translate","transform","transformFnc","transformed","clone","splitByCommand","joinedPath","j","m","l","a","Axis","ticks","axisUnits","rectEnd","rectStart","gridOffset","rectOffset","createGridAndLabels","labelGroup","chartOptions","axisOptions","projectedValues","projectValue","labelValues","labelInterpolationFnc","projectedValue","labelLength","showGrid","classNames","grid","dir","showLabel","label","AutoScaleAxis","axisUnit","FixedScaleAxis","sort","b","stepLength","StepAxis","calc","stretch","chart","seriesGroup","fullWidth","showGridBackground","seriesIndex","seriesElement","ct:series-name","ct:meta","pathData","valueIndex","lineSmooth","showPoint","showLine","showArea","areaBase","smoothing","point","ct:value","seriesMeta","areaBaseProjected","pathSegment","solidPathSegments","firstElement","lastElement","areaPath","area","Line","vertical","horizontal","start","end","distributeSeries","horizontalBars","stackBars","serialSums","prev","curr","valueAxis","labelAxisTicks","labelAxis","zeroPoint","stackedBarValues","periodHalfLength","biPol","projected","bar","previousStack","labelAxisValueIndex","seriesBarDistance","positions","stackMode","metaData","Bar","determineAnchorPosition","center","direction","toTheRight","labelsGroup","labelRadius","totalDataSum","seriesGroups","startAngle","donut","chartDonut","chartPie","total","previousValue","currentValue","donutWidth","donutSolid","labelPosition","hasSingleValInSeries","val","ignoreEmptyValues","endAngle","overlappigStartAngle","innerStart","innerEnd","donutSolidRadius","pathClassName","slicePie","sliceDonut","sliceDonutSolid","strokeWidth","rawValue","interpolatedValue","dx","dy","text-anchor","labelDirection","Pie"],"mappings":";;;;;;;CAAC,SAAUA,EAAMC,GACO,kBAAXC,SAAyBA,OAAOC,IAEzCD,OAAO,cAAgB,WACrB,MAAQF,GAAe,SAAIC,MAEF,gBAAXG,SAAuBA,OAAOC,QAI9CD,OAAOC,QAAUJ,IAEjBD,EAAe,SAAIC,KAErBK,KAAM,WAaR,GAAIC,IACFC,QAAS,SAq4IX,OAl4IC,UAAUC,EAAYF,GACrB,YAEA,IAAIG,GAASD,EAAWC,OACpBC,EAAWF,EAAWE,QAQ1BJ,GAASK,YACPC,IAAK,6BACLC,MAAO,gCACPC,MAAO,+BACPC,MAAO,+BACPC,GAAI,6CAUNV,EAASW,KAAO,SAAUC,GACxB,MAAOA,IAUTZ,EAASa,cAAgB,SAAUD,GAEjC,MAAOE,QAAOC,aAAa,GAAKH,EAAI,KAWtCZ,EAASgB,OAAS,SAAUC,GAC1B,GAAIC,GAAGC,EAAQC,CAGf,KAFAH,EAASA,MAEJC,EAAI,EAAGA,EAAIG,UAAUC,OAAQJ,IAAK,CACrCC,EAASE,UAAUH,EACnB,KAAK,GAAIK,KAAQJ,GACfC,EAAaD,EAAOI,GACM,gBAAfH,IAA0C,OAAfA,GAAyBA,YAAsBI,OAGnFP,EAAOM,GAAQH,EAFfH,EAAOM,GAAQvB,EAASgB,OAAOC,EAAOM,GAAOH,GAOnD,MAAOH,IAYTjB,EAASyB,WAAa,SAASC,EAAKC,EAAQC,GAC1C,MAAOF,GAAIG,QAAQ,GAAIC,QAAOH,EAAQ,KAAMC,IAW9C5B,EAAS+B,WAAa,SAASC,EAAOC,GAKpC,MAJoB,gBAAVD,KACRA,GAAgBC,GAGXD,GAUThC,EAASkC,SAAW,SAASC,GAC3B,GAAqB,gBAAVA,GAAoB,CAC7B,GAAIC,GAAQ,kBAAoBC,KAAKF,EACrC,QACEH,OAASI,EAAM,GACfH,KAAMG,EAAM,IAAME,QAGtB,OAASN,MAAOG,IAUlBnC,EAASuC,cAAgB,SAASC,GAChC,MAAOA,aAAiBC,MAAOD,EAAQpC,EAASmC,cAAcC,IAUhExC,EAAS0C,MAAQ,SAASpB,GACxB,MAAOE,OAAMmB,MAAM,KAAM,GAAInB,OAAMF,KAWrCtB,EAAS4C,IAAM,SAASC,EAAUC,GAChC,MAAOD,IAAYC,EAAUA,EAAU,IAUzC9C,EAAS+C,YAAc,SAASC,GAC9B,MAAO,UAASC,GACd,MAAOA,GAAMD,IAWjBhD,EAASkD,OAAS,SAASC,GACzB,MAAO,UAASF,GACd,MAAOA,GAAME,IAYjBnD,EAASoD,UAAY,SAASC,EAAKC,GACjC,GAAIC,MACAjC,EAASkC,KAAKC,IAAId,MAAM,KAAMU,EAAIK,IAAI,SAASC,GAC7C,MAAOA,GAAErC,SAWf,OARAtB,GAAS0C,MAAMpB,GAAQsC,QAAQ,SAASD,EAAGE,GACzC,GAAIC,GAAOT,EAAIK,IAAI,SAASC,GAC1B,MAAOA,GAAEE,IAGXN,GAAOM,GAASP,EAAGX,MAAM,KAAMmB,KAG1BP,GAWTvD,EAAS+D,mBAAqB,SAAS/B,EAAOgC,GAC5C,GAAIC,GAAYT,KAAKU,IAAI,GAAIF,GAAUhE,EAASiE,UAChD,OAAOT,MAAKW,MAAMnC,EAAQiC,GAAaA,GASzCjE,EAASiE,UAAY,EAQrBjE,EAASoE,aACPC,IAAK,QACLC,IAAK,OACLC,IAAK,OACLC,IAAK,SACLC,IAAM,UAWRzE,EAAS0E,UAAY,SAASC,GAC5B,MAAY,QAATA,GAA0BrC,SAATqC,EACXA,GACiB,gBAATA,GACfA,EAAO,GAAGA,EACc,gBAATA,KACfA,EAAOC,KAAKC,WAAWF,KAAMA,KAGxBG,OAAOC,KAAK/E,EAASoE,aAAaY,OAAO,SAASzB,EAAQ0B,GAC/D,MAAOjF,GAASyB,WAAW8B,EAAQ0B,EAAKjF,EAASoE,YAAYa,KAC5DN,KAUL3E,EAASkF,YAAc,SAASP,GAC9B,GAAmB,gBAATA,GACR,MAAOA,EAGTA,GAAOG,OAAOC,KAAK/E,EAASoE,aAAaY,OAAO,SAASzB,EAAQ0B,GAC/D,MAAOjF,GAASyB,WAAW8B,EAAQvD,EAASoE,YAAYa,GAAMA,IAC7DN,EAEH,KACEA,EAAOC,KAAKO,MAAMR,GAClBA,EAAqBrC,SAAdqC,EAAKA,KAAqBA,EAAKA,KAAOA,EAC7C,MAAMhB,IAER,MAAOgB,IAaT3E,EAASoF,UAAY,SAAUC,EAAWC,EAAOC,EAAQC,GACvD,GAAIlF,EAyBJ,OAvBAgF,GAAQA,GAAS,OACjBC,EAASA,GAAU,OAInB/D,MAAMiE,UAAUC,MAAMC,KAAKN,EAAUO,iBAAiB,QAAQC,OAAO,SAAkCvF,GACrG,MAAOA,GAAIwF,eAAe9F,EAASK,WAAWE,MAAO,QACpDqD,QAAQ,SAA+BtD,GACxC+E,EAAUU,YAAYzF,KAIxBA,EAAM,GAAIN,GAASgG,IAAI,OAAOC,MAC5BX,MAAOA,EACPC,OAAQA,IACPW,SAASV,GAEZlF,EAAI6F,MAAMC,MAAMd,MAAQA,EACxBhF,EAAI6F,MAAMC,MAAMb,OAASA,EAGzBF,EAAUgB,YAAY/F,EAAI6F,OAEnB7F,GASTN,EAASsG,cAAgB,SAAS3B,EAAM4B,EAASC,GAC/C,GAAIC,GACAC,GACFC,IAAKhC,EACLiC,cAmCF,OA/BAF,GAAOE,WAAWC,OAAS7G,EAAS8G,cAClCD,OAAQlC,EAAKkC,YACZN,EAASC,GAQVC,EAJEC,EAAOE,WAAWC,OAAOE,MAAM,SAAS/E,GACxC,MAAOA,aAAiBR,SAGbgC,KAAKC,IAAId,MAAM,KAAM+D,EAAOE,WAAWC,OAAOnD,IAAI,SAASmD,GACtE,MAAOA,GAAOvF,UAIHoF,EAAOE,WAAWC,OAAOvF,OAGxCoF,EAAOE,WAAWI,QAAUrC,EAAKqC,YAActB,QAE/ClE,MAAMiE,UAAUwB,KAAKtE,MACnB+D,EAAOE,WAAWI,OAClBhH,EAAS0C,MAAMc,KAAKC,IAAI,EAAGgD,EAAaC,EAAOE,WAAWI,OAAO1F,SAASoC,IAAI,WAC5E,MAAO,MAIR6C,GACDvG,EAASkH,YAAYR,EAAOE,YAGvBF,GAUT1G,EAASmH,gBAAkB,SAASC,EAAQC,GAC1C,MAAkB,QAAXD,GACa,gBAAXA,IACPA,EAAOE,eAAeD,IAS1BrH,EAASuH,gBAAkB,SAASvF,GAClC,MAAiB,QAAVA,GACKM,SAAVN,GACkB,gBAAVA,IAAsBwF,MAAMxF,IASxChC,EAASkH,YAAc,SAASvC,GAC9BA,EAAKqC,OAAOT,UACZ5B,EAAKkC,OAAON,SACZ,KAAK,GAAIrF,GAAI,EAAGA,EAAIyD,EAAKkC,OAAOvF,OAAQJ,IACR,gBAApByD,GAAKkC,OAAO3F,IAA4CoB,SAAxBqC,EAAKkC,OAAO3F,GAAGyD,KACvDA,EAAKkC,OAAO3F,GAAGyD,KAAK4B,UACZ5B,EAAKkC,OAAO3F,YAAcM,QAClCmD,EAAKkC,OAAO3F,GAAGqF,WAcrBvG,EAAS8G,aAAe,SAASnC,EAAM4B,EAASC,GAG9C,QAASiB,GAAiBzF,GACxB,GAAGhC,EAASmH,gBAAgBnF,EAAO,SAEjC,MAAOyF,GAAiBzF,EAAMA,MACzB,IAAGhC,EAASmH,gBAAgBnF,EAAO,QAExC,MAAOyF,GAAiBzF,EAAM2C,KACzB,IAAG3C,YAAiBR,OAEzB,MAAOQ,GAAM0B,IAAI+D,EACZ,KAAGzH,EAASuH,gBAAgBvF,GAA5B,CAML,GAAGwE,EAAO,CACR,GAAIkB,KAcJ,OAToB,gBAAVlB,GACRkB,EAAWlB,GAASxG,EAAS2H,qBAAqB3F,GAElD0F,EAAWE,EAAI5H,EAAS2H,qBAAqB3F,GAG/C0F,EAAWG,EAAI7F,EAAMsF,eAAe,KAAOtH,EAAS2H,qBAAqB3F,EAAM6F,GAAKH,EAAWG,EAC/FH,EAAWE,EAAI5F,EAAMsF,eAAe,KAAOtH,EAAS2H,qBAAqB3F,EAAM4F,GAAKF,EAAWE,EAExFF,EAIP,MAAO1H,GAAS2H,qBAAqB3F,IAK3C,MAAO2C,GAAKkC,OAAOnD,IAAI+D,IAWzBzH,EAAS8H,iBAAmB,SAASC,EAASC,GAG5C,MAFAA,GAAWA,GAAY,EAEG,gBAAZD,IACZE,IAAKF,EACLG,MAAOH,EACPI,OAAQJ,EACRK,KAAML,IAENE,IAA4B,gBAAhBF,GAAQE,IAAmBF,EAAQE,IAAMD,EACrDE,MAAgC,gBAAlBH,GAAQG,MAAqBH,EAAQG,MAAQF,EAC3DG,OAAkC,gBAAnBJ,GAAQI,OAAsBJ,EAAQI,OAASH,EAC9DI,KAA8B,gBAAjBL,GAAQK,KAAoBL,EAAQK,KAAOJ,IAI5DhI,EAASqI,YAAc,SAASxB,EAAQhD,GACtC,GAAI7B,GAAQ6E,EAAOlC,KAAOkC,EAAOlC,KAAKd,GAASgD,EAAOhD,EACtD,OAAO7B,GAAQA,EAAMsG,KAAOhG,QAU9BtC,EAASuI,iBAAmB,SAAUvG,GACpC,MAAOwB,MAAKgF,MAAMhF,KAAKiF,IAAIjF,KAAKkF,IAAI1G,IAAUwB,KAAKmF,OAYrD3I,EAAS4I,cAAgB,SAAUC,EAAYvH,EAAQwH,GACrD,MAAOxH,GAASwH,EAAOC,MAAQF,GAWjC7I,EAASgJ,mBAAqB,SAAU1I,EAAK2I,GAC3C,MAAOzF,MAAKC,KAAKzD,EAASkC,SAAS+G,EAAQ1D,QAAQvD,OAAS1B,EAAIiF,WAAa0D,EAAQC,aAAajB,IAAOgB,EAAQC,aAAaf,QAAUc,EAAQE,MAAMC,OAAQ,IAYhKpJ,EAASqJ,WAAa,SAAU1E,EAAMsE,EAASK,GAY7C,QAASC,GAAiB5E,GACxB,GAAYrC,SAATqC,EAEI,GAAGA,YAAgBnD,OACxB,IAAK,GAAIN,GAAI,EAAGA,EAAIyD,EAAKrD,OAAQJ,IAC/BqI,EAAiB5E,EAAKzD,QAEnB,CACL,GAAIc,GAAQsH,GAAa3E,EAAK2E,IAAc3E,CAExC6E,IAAYxH,EAAQyH,EAAQC,OAC9BD,EAAQC,KAAO1H,GAGb2H,GAAW3H,EAAQyH,EAAQG,MAC7BH,EAAQG,IAAM5H,IAzBpBiH,EAAUjJ,EAASgB,UAAWiI,EAASK,EAAYL,EAAQ,OAASK,EAAUO,kBAE9E,IAAIJ,IACAC,KAAuBpH,SAAjB2G,EAAQS,MAAsBI,OAAOC,WAAad,EAAQS,KAChEE,IAAqBtH,SAAhB2G,EAAQW,IAAoBE,OAAOC,WAAad,EAAQW,KAE7DJ,EAA4BlH,SAAjB2G,EAAQS,KACnBC,EAA0BrH,SAAhB2G,EAAQW,GAuDtB,QA/BGJ,GAAYG,IACbJ,EAAiB5E,IAMfsE,EAAQe,gBAA6C,IAA3Bf,EAAQe,kBACpCP,EAAQC,KAAOlG,KAAKC,IAAIwF,EAAQe,eAAgBP,EAAQC,MACxDD,EAAQG,IAAMpG,KAAKyG,IAAIhB,EAAQe,eAAgBP,EAAQG,MAKrDH,EAAQC,MAAQD,EAAQG,MAEN,IAAhBH,EAAQG,IACVH,EAAQC,KAAO,EACND,EAAQG,IAAM,EAEvBH,EAAQC,KAAO,EACND,EAAQC,KAAO,EAExBD,EAAQG,IAAM,GAGdH,EAAQC,KAAO,EACfD,EAAQG,IAAM,IAIXH,GAUTzJ,EAASkK,UAAY,SAASlI,GAC5B,MAAiB,QAAVA,GAAyBmI,SAASnI,IAU3ChC,EAASoK,gBAAkB,SAASpI,GAClC,OAAQA,GAAmB,IAAVA,GAUnBhC,EAAS2H,qBAAuB,SAAS3F,GACvC,MAAOhC,GAASkK,UAAUlI,IAAUA,EAAQM,QAS9CtC,EAASqK,aAAe,SAASrI,GAC/B,MAAwB,gBAAVA,KAAuB,KAAOA,IAAS,KAAOA,KAY9DhC,EAASsK,cAAgB,SAAStI,EAAOsH,GACvC,MAAGtJ,GAASqK,aAAarI,GAChBhC,EAAS2H,qBAAqB3F,EAAMsH,GAAa,MAEjDtJ,EAAS2H,qBAAqB3F,IAWzChC,EAASuK,IAAM,SAAStH,GAKtB,QAASuH,GAAIC,EAAGC,GACd,MAAID,GAAIC,IAAM,EACLA,EAEAF,EAAIE,EAAGD,EAAIC,GAItB,QAASC,GAAE9C,GACT,MAAOA,GAAIA,EAAI,EAbjB,GAAW,IAAR5E,EACD,MAAOA,EAeT,IAAoB2H,GAAhBC,EAAK,EAAGC,EAAK,CACjB,IAAI7H,EAAM,IAAM,EACd,MAAO,EAGT,GACE4H,GAAKF,EAAEE,GAAM5H,EACb6H,EAAKH,EAAEA,EAAEG,IAAO7H,EAChB2H,EAAUJ,EAAIhH,KAAKkF,IAAImC,EAAKC,GAAK7H,SACd,IAAZ2H,EAET,OAAOA,IAaT5K,EAAS+K,UAAY,SAAUlC,EAAYY,EAASuB,EAAeC,GAuDjE,QAASC,GAAclJ,EAAOmJ,GAK5B,MAHInJ,MAAWA,GAASmJ,KACvBnJ,GAAU,GAAKmJ,EAAY,EAAIC,GAAWA,IAEpCpJ,EA3DT,GAAId,GAEFmK,EACAC,EAFAC,EAAsB,EAGtBzC,GACEY,KAAMD,EAAQC,KACdE,IAAKH,EAAQG,IAGjBd,GAAO0C,WAAa1C,EAAOY,KAAOZ,EAAOc,IACzCd,EAAO2C,IAAMzL,EAASuI,iBAAiBO,EAAO0C,YAC9C1C,EAAO4C,KAAOlI,KAAKU,IAAI,GAAI4E,EAAO2C,KAClC3C,EAAOmB,IAAMzG,KAAKgF,MAAMM,EAAOc,IAAMd,EAAO4C,MAAQ5C,EAAO4C,KAC3D5C,EAAOrF,IAAMD,KAAKmI,KAAK7C,EAAOY,KAAOZ,EAAO4C,MAAQ5C,EAAO4C,KAC3D5C,EAAOC,MAAQD,EAAOrF,IAAMqF,EAAOmB,IACnCnB,EAAO8C,cAAgBpI,KAAKW,MAAM2E,EAAOC,MAAQD,EAAO4C,KAIxD,IAAIpK,GAAStB,EAAS4I,cAAcC,EAAYC,EAAO4C,KAAM5C,GACzD+C,EAAUvK,EAAS0J,EACnBc,EAAiBb,EAAcjL,EAASuK,IAAIzB,EAAOC,OAAS,CAGhE,IAAGkC,GAAejL,EAAS4I,cAAcC,EAAY,EAAGC,IAAWkC,EACjElC,EAAO4C,KAAO,MACT,IAAGT,GAAea,EAAiBhD,EAAO4C,MAAQ1L,EAAS4I,cAAcC,EAAYiD,EAAgBhD,IAAWkC,EAIrHlC,EAAO4C,KAAOI,MAGd,QAAa,CACX,GAAID,GAAW7L,EAAS4I,cAAcC,EAAYC,EAAO4C,KAAM5C,IAAWkC,EACxElC,EAAO4C,MAAQ,MACV,CAAA,GAAKG,KAAW7L,EAAS4I,cAAcC,EAAYC,EAAO4C,KAAO,EAAG5C,IAAWkC,GAOpF,KALA,IADAlC,EAAO4C,MAAQ,EACZT,GAAenC,EAAO4C,KAAO,IAAM,EAAG,CACvC5C,EAAO4C,MAAQ,CACf,QAMJ,GAAGH,IAAwB,IACzB,KAAM,IAAIQ,OAAM,sEAKtB,GAAIX,GAAU,SAad,KAZAtC,EAAO4C,KAAOlI,KAAKC,IAAIqF,EAAO4C,KAAMN,GAUpCC,EAASvC,EAAOmB,IAChBqB,EAASxC,EAAOrF,IACT4H,EAASvC,EAAO4C,MAAQ5C,EAAOc,KACrCyB,EAASH,EAAcG,EAAQvC,EAAO4C,KAEvC,MAAOJ,EAASxC,EAAO4C,MAAQ5C,EAAOY,MACrC4B,EAASJ,EAAcI,GAASxC,EAAO4C,KAExC5C,GAAOmB,IAAMoB,EACbvC,EAAOrF,IAAM6H,EACbxC,EAAOC,MAAQD,EAAOrF,IAAMqF,EAAOmB,GAEnC,IAAI+B,KACJ,KAAK9K,EAAI4H,EAAOmB,IAAK/I,GAAK4H,EAAOrF,IAAKvC,EAAIgK,EAAchK,EAAG4H,EAAO4C,MAAO,CACvE,GAAI1J,GAAQhC,EAAS+D,mBAAmB7C,EACpCc,KAAUgK,EAAOA,EAAO1K,OAAS,IACnC0K,EAAO/E,KAAKjF,GAIhB,MADA8G,GAAOkD,OAASA,EACTlD,GAaT9I,EAASiM,iBAAmB,SAAUC,EAASC,EAASC,EAAQC,GAC9D,GAAIC,IAAkBD,EAAiB,IAAM7I,KAAK+I,GAAK,GAEvD,QACE1E,EAAGqE,EAAWE,EAAS5I,KAAKgJ,IAAIF,GAChC1E,EAAGuE,EAAWC,EAAS5I,KAAKiJ,IAAIH,KAapCtM,EAAS0M,gBAAkB,SAAUpM,EAAK2I,EAAS0D,GACjD,GAAIC,MAAa3D,EAAQE,QAASF,EAAQ4D,OACtCC,EAAcF,EAAU3D,EAAQ4D,MAAMzD,OAAS,EAC/C2D,EAAcH,EAAU3D,EAAQE,MAAMC,OAAS,EAE/C9D,EAAQhF,EAAIgF,SAAWtF,EAASkC,SAAS+G,EAAQ3D,OAAOtD,OAAS,EACjEuD,EAASjF,EAAIiF,UAAYvF,EAASkC,SAAS+G,EAAQ1D,QAAQvD,OAAS,EACpEgL,EAAoBhN,EAAS8H,iBAAiBmB,EAAQC,aAAcyD,EAGxErH,GAAQ9B,KAAKC,IAAI6B,EAAOwH,EAAcE,EAAkB5E,KAAO4E,EAAkB9E,OACjF3C,EAAS/B,KAAKC,IAAI8B,EAAQwH,EAAcC,EAAkB/E,IAAM+E,EAAkB7E,OAElF,IAAI8E,IACFlF,QAASiF,EACT1H,MAAO,WACL,MAAOvF,MAAK+K,GAAK/K,KAAK8K,IAExBtF,OAAQ,WACN,MAAOxF,MAAKmN,GAAKnN,KAAKoN,IA2B1B,OAvBGP,IAC8B,UAA3B3D,EAAQE,MAAMiE,UAChBH,EAAUE,GAAKH,EAAkB/E,IAAM8E,EACvCE,EAAUC,GAAK1J,KAAKC,IAAI8B,EAASyH,EAAkB7E,OAAQ8E,EAAUE,GAAK,KAE1EF,EAAUE,GAAKH,EAAkB/E,IACjCgF,EAAUC,GAAK1J,KAAKC,IAAI8B,EAASyH,EAAkB7E,OAAS4E,EAAaE,EAAUE,GAAK,IAG3D,UAA3BlE,EAAQ4D,MAAMO,UAChBH,EAAUpC,GAAKmC,EAAkB5E,KAAO0E,EACxCG,EAAUnC,GAAKtH,KAAKC,IAAI6B,EAAQ0H,EAAkB9E,MAAO+E,EAAUpC,GAAK,KAExEoC,EAAUpC,GAAKmC,EAAkB5E,KACjC6E,EAAUnC,GAAKtH,KAAKC,IAAI6B,EAAQ0H,EAAkB9E,MAAQ4E,EAAaG,EAAUpC,GAAK,MAGxFoC,EAAUpC,GAAKmC,EAAkB5E,KACjC6E,EAAUnC,GAAKtH,KAAKC,IAAI6B,EAAQ0H,EAAkB9E,MAAO+E,EAAUpC,GAAK,GACxEoC,EAAUE,GAAKH,EAAkB/E,IACjCgF,EAAUC,GAAK1J,KAAKC,IAAI8B,EAASyH,EAAkB7E,OAAQ8E,EAAUE,GAAK,IAGrEF,GAgBTjN,EAASqN,WAAa,SAASD,EAAUvJ,EAAOyJ,EAAMlE,EAAQ9H,EAAQiM,EAAOC,EAASC,GACpF,GAAIC,KACJA,GAAeJ,EAAKK,MAAMC,IAAM,KAAOR,EACvCM,EAAeJ,EAAKK,MAAMC,IAAM,KAAOR,EACvCM,EAAeJ,EAAKO,aAAaD,IAAM,KAAOxE,EAC9CsE,EAAeJ,EAAKO,aAAaD,IAAM,KAAOxE,EAAS9H,CAEvD,IAAIwM,GAAcP,EAAMQ,KAAK,OAAQL,EAAgBF,EAAQQ,KAAK,KAGlEP,GAAaQ,KAAK,OAChBjO,EAASgB,QACPkN,KAAM,OACNZ,KAAMA,EACNzJ,MAAOA,EACP0J,MAAOA,EACPY,QAASL,GACRJ,KAaP1N,EAASoO,qBAAuB,SAAUC,EAAWpB,EAAWzH,EAAWiI,GACzE,GAAIa,GAAiBD,EAAUN,KAAK,QAChClG,EAAGoF,EAAUpC,GACbjD,EAAGqF,EAAUE,GACb7H,MAAO2H,EAAU3H,QACjBC,OAAQ0H,EAAU1H,UACjBC,GAAW,EAGdiI,GAAaQ,KAAK,QAChBC,KAAM,iBACNX,MAAOc,EACPF,QAASG,KAoBftO,EAASuO,YAAc,SAASnB,EAAU9L,EAAQuC,EAAOmD,EAAQsG,EAAMkB,EAAYC,EAAalB,EAAOC,EAASkB,EAAkBjB,GAChI,GAAIkB,GACAjB,IAOJ,IALAA,EAAeJ,EAAKK,MAAMC,KAAOR,EAAWqB,EAAYnB,EAAKK,MAAMC,KACnEF,EAAeJ,EAAKO,aAAaD,KAAOa,EAAYnB,EAAKO,aAAaD,KACtEF,EAAeJ,EAAKK,MAAMiB,KAAOtN,EACjCoM,EAAeJ,EAAKO,aAAae,KAAOpL,KAAKC,IAAI,EAAG+K,EAAa,IAE9DE,EAAkB,CAGnB,GAAIG,GAAUzO,EAAS0O,cAAc,OACrCD,GAAQrJ,UAAYgI,EAAQQ,KAAK,KACjCa,EAAQE,aAAa,QAAS/O,EAASK,WAAWG,OAClDqO,EAAQG,UAAYhI,EAAOnD,GAC3BgL,EAAQzI,MAAMkH,EAAKK,MAAMiB,KAAOpL,KAAKW,MAAMuJ,EAAeJ,EAAKK,MAAMiB,MAAQ,KAC7EC,EAAQzI,MAAMkH,EAAKO,aAAae,KAAOpL,KAAKW,MAAMuJ,EAAeJ,EAAKO,aAAae,MAAQ,KAE3FD,EAAepB,EAAM0B,cAAcJ,EAAS7O,EAASgB,QACnDoF,MAAO,sBACNsH,QAEHiB,GAAepB,EAAMQ,KAAK,OAAQL,EAAgBF,EAAQQ,KAAK,MAAMkB,KAAKlI,EAAOnD,GAGnF4J,GAAaQ,KAAK,OAAQjO,EAASgB,QACjCkN,KAAM,QACNZ,KAAMA,EACNzJ,MAAOA,EACP0J,MAAOA,EACPY,QAASQ,EACTO,KAAMlI,EAAOnD,IACZ6J,KAYL1N,EAASmP,gBAAkB,SAAStI,EAAQoC,EAAShE,GACnD,GAAG4B,EAAOuI,MAAQnG,EAAQpC,QAAUoC,EAAQpC,OAAOA,EAAOuI,MAAO,CAC/D,GAAIC,GAAgBpG,EAAQpC,OAAOA,EAAOuI,KAC1C,OAAOC,GAAc/H,eAAerC,GAAOoK,EAAcpK,GAAOgE,EAAQhE,GAExE,MAAOgE,GAAQhE,IAanBjF,EAASsP,gBAAkB,SAAUrG,EAASsG,EAAmB9B,GAM/D,QAAS+B,GAAqBC,GAC5B,GAAIC,GAAkBC,CAGtB,IAFAA,EAAiB3P,EAASgB,UAAW4O,GAEjCL,EACF,IAAKrO,EAAI,EAAGA,EAAIqO,EAAkBjO,OAAQJ,IAAK,CAC7C,GAAI2O,GAAM1P,EAAO2P,WAAWP,EAAkBrO,GAAG,GAC7C2O,GAAIE,UACNJ,EAAiB3P,EAASgB,OAAO2O,EAAgBJ,EAAkBrO,GAAG,KAKzEuM,GAAgBgC,GACjBhC,EAAaQ,KAAK,kBAChByB,gBAAiBA,EACjBC,eAAgBA,IAKtB,QAASK,KACPC,EAAoBrM,QAAQ,SAASiM,GACnCA,EAAIK,eAAeV,KA5BvB,GACEG,GAEAzO,EAHE0O,EAAc5P,EAASgB,UAAWiI,GAEpCgH,IA8BF,KAAK9P,EAAO2P,WACV,KAAM,iEACD,IAAIP,EAET,IAAKrO,EAAI,EAAGA,EAAIqO,EAAkBjO,OAAQJ,IAAK,CAC7C,GAAI2O,GAAM1P,EAAO2P,WAAWP,EAAkBrO,GAAG,GACjD2O,GAAIM,YAAYX,GAChBS,EAAoBhJ,KAAK4I,GAM7B,MAFAL,MAGEQ,0BAA2BA,EAC3BI,kBAAmB,WACjB,MAAOpQ,GAASgB,UAAW2O,MA8BjC3P,EAASqQ,kBAAoB,SAASC,EAAiBC,EAAWtH,GAChE,GAAIuH,IACFC,aAAa,EACbC,WAAW,EAGbzH,GAAUjJ,EAASgB,UAAWwP,EAAgBvH,EAK9C,KAAI,GAHA0H,MACAC,GAAO,EAEH1P,EAAI,EAAGA,EAAIoP,EAAgBhP,OAAQJ,GAAK,EAEQoB,SAAnDtC,EAASsK,cAAciG,EAAUrP,EAAI,GAAGc,OAErCiH,EAAQyH,YACVE,GAAO,IAGN3H,EAAQwH,aAAevP,GAAK,GAAKoP,EAAgBpP,IAAMoP,EAAgBpP,EAAE,KAE1E0P,GAAO,GAKNA,IACDD,EAAS1J,MACPqJ,mBACAC,eAGFK,GAAO,GAITD,EAASA,EAASrP,OAAS,GAAGgP,gBAAgBrJ,KAAKqJ,EAAgBpP,GAAIoP,EAAgBpP,EAAI,IAC3FyP,EAASA,EAASrP,OAAS,GAAGiP,UAAUtJ,KAAKsJ,EAAUrP,EAAI,IAI/D,OAAOyP,KAET5Q,MAAQ8Q,OAAQ7Q,GAOjB,SAASE,EAAYF,GACpB,YAEAA,GAAS8Q,iBAmBT9Q,EAAS8Q,cAAcC,KAAO,SAAS9H,GACrC,GAAIuH,IACFE,WAAW,EAGb,OADAzH,GAAUjJ,EAASgB,UAAWwP,EAAgBvH,GACvC,SAAcqH,EAAiBC,GAIpC,IAAI,GAHAS,GAAO,GAAIhR,GAASgG,IAAIiL,KACxBL,GAAO,EAEH1P,EAAI,EAAGA,EAAIoP,EAAgBhP,OAAQJ,GAAK,EAAG,CACjD,GAAIgQ,GAAQZ,EAAgBpP,GACxBiQ,EAAQb,EAAgBpP,EAAI,GAC5BkQ,EAAWb,EAAUrP,EAAI,EAEiBoB,UAA3CtC,EAASsK,cAAc8G,EAASpP,QAE9B4O,EACDI,EAAKK,KAAKH,EAAOC,GAAO,EAAOC,GAE/BJ,EAAKM,KAAKJ,EAAOC,GAAO,EAAOC,GAGjCR,GAAO,GACE3H,EAAQyH,YACjBE,GAAO,GAIX,MAAOI,KA2BXhR,EAAS8Q,cAAcS,OAAS,SAAStI,GACvC,GAAIuH,IACF5F,QAAS,EACT8F,WAAW,EAEbzH,GAAUjJ,EAASgB,UAAWwP,EAAgBvH,EAE9C,IAAIuI,GAAI,EAAIhO,KAAKC,IAAI,EAAGwF,EAAQ2B,QAEhC,OAAO,UAAgB0F,EAAiBC,GAItC,IAAI,GAFAkB,GAAOC,EAAOC,EADdX,EAAO,GAAIhR,GAASgG,IAAIiL,KAGpB/P,EAAI,EAAGA,EAAIoP,EAAgBhP,OAAQJ,GAAK,EAAG,CACjD,GAAIgQ,GAAQZ,EAAgBpP,GACxBiQ,EAAQb,EAAgBpP,EAAI,GAC5BI,GAAU4P,EAAQO,GAASD,EAC3BJ,EAAWb,EAAUrP,EAAI,EAEPoB,UAAnB8O,EAASpP,OAEMM,SAAbqP,EACDX,EAAKK,KAAKH,EAAOC,GAAO,EAAOC,GAE/BJ,EAAKY,MACHH,EAAQnQ,EACRoQ,EACAR,EAAQ5P,EACR6P,EACAD,EACAC,GACA,EACAC,GAIJK,EAAQP,EACRQ,EAAQP,EACRQ,EAAWP,GACFnI,EAAQyH,YACjBe,EAAQP,EAAQS,EAAWrP,QAI/B,MAAO0O,KA0BXhR,EAAS8Q,cAAce,SAAW,SAAS5I,GACzC,GAAIuH,IACFsB,QAAS,EACTpB,WAAW,EAGbzH,GAAUjJ,EAASgB,UAAWwP,EAAgBvH,EAE9C,IAAI8I,GAAIvO,KAAKyG,IAAI,EAAGzG,KAAKC,IAAI,EAAGwF,EAAQ6I,UACtCE,EAAI,EAAID,CAEV,OAAO,SAASF,GAASvB,EAAiBC,GAGxC,GAAII,GAAW3Q,EAASqQ,kBAAkBC,EAAiBC,GACzDG,UAAWzH,EAAQyH,WAGrB,IAAIC,EAASrP,OAGN,CAAA,GAAGqP,EAASrP,OAAS,EAAG,CAG3B,GAAI2Q,KAMN,OAJAtB,GAAS/M,QAAQ,SAASsO,GACxBD,EAAMhL,KAAK4K,EAASK,EAAQ5B,gBAAiB4B,EAAQ3B,cAGhDvQ,EAASgG,IAAIiL,KAAKjD,KAAKiE,GAQ9B,GAJA3B,EAAkBK,EAAS,GAAGL,gBAC9BC,EAAYI,EAAS,GAAGJ,UAGrBD,EAAgBhP,QAAU,EAC3B,MAAOtB,GAAS8Q,cAAcC,OAAOT,EAAiBC,EAMxD,KAAK,GAFH4B,GADEnB,GAAO,GAAIhR,GAASgG,IAAIiL,MAAOI,KAAKf,EAAgB,GAAIA,EAAgB,IAAI,EAAOC,EAAU,IAGxFrP,EAAI,EAAGkR,EAAO9B,EAAgBhP,OAAQ8Q,EAAO,GAAKD,EAAIjR,EAAGA,GAAK,EAAG,CACxE,GAAIuJ,KACD5C,GAAIyI,EAAgBpP,EAAI,GAAI0G,GAAI0I,EAAgBpP,EAAI,KACpD2G,GAAIyI,EAAgBpP,GAAI0G,GAAI0I,EAAgBpP,EAAI,KAChD2G,GAAIyI,EAAgBpP,EAAI,GAAI0G,GAAI0I,EAAgBpP,EAAI,KACpD2G,GAAIyI,EAAgBpP,EAAI,GAAI0G,GAAI0I,EAAgBpP,EAAI,IAEnDiR,GACGjR,EAEMkR,EAAO,IAAMlR,EACtBuJ,EAAE,IAAM5C,GAAIyI,EAAgB,GAAI1I,GAAI0I,EAAgB,IAC3C8B,EAAO,IAAMlR,IACtBuJ,EAAE,IAAM5C,GAAIyI,EAAgB,GAAI1I,GAAI0I,EAAgB,IACpD7F,EAAE,IAAM5C,GAAIyI,EAAgB,GAAI1I,GAAI0I,EAAgB,KALpD7F,EAAE,IAAM5C,GAAIyI,EAAgB8B,EAAO,GAAIxK,GAAI0I,EAAgB8B,EAAO,IAQhEA,EAAO,IAAMlR,EACfuJ,EAAE,GAAKA,EAAE,GACCvJ,IACVuJ,EAAE,IAAM5C,GAAIyI,EAAgBpP,GAAI0G,GAAI0I,EAAgBpP,EAAI,KAI5D8P,EAAKY,MACFG,IAAMtH,EAAE,GAAG5C,EAAI,EAAI4C,EAAE,GAAG5C,EAAI4C,EAAE,GAAG5C,GAAK,EAAMmK,EAAIvH,EAAE,GAAG5C,EACrDkK,IAAMtH,EAAE,GAAG7C,EAAI,EAAI6C,EAAE,GAAG7C,EAAI6C,EAAE,GAAG7C,GAAK,EAAMoK,EAAIvH,EAAE,GAAG7C,EACrDmK,GAAKtH,EAAE,GAAG5C,EAAI,EAAI4C,EAAE,GAAG5C,EAAI4C,EAAE,GAAG5C,GAAK,EAAMmK,EAAIvH,EAAE,GAAG5C,EACpDkK,GAAKtH,EAAE,GAAG7C,EAAI,EAAI6C,EAAE,GAAG7C,EAAI6C,EAAE,GAAG7C,GAAK,EAAMoK,EAAIvH,EAAE,GAAG7C,EACrD6C,EAAE,GAAG5C,EACL4C,EAAE,GAAG7C,GACL,EACA2I,GAAWrP,EAAI,GAAK,IAIxB,MAAO8P,GA7DP,MAAOhR,GAAS8Q,cAAcC,aAyFpC/Q,EAAS8Q,cAAcuB,cAAgB,SAASpJ,GAC9C,GAAIuH,IACFE,WAAW,EAKb,OAFAzH,GAAUjJ,EAASgB,UAAWwP,EAAgBvH,GAEvC,QAASoJ,GAAc/B,EAAiBC,GAG7C,GAAII,GAAW3Q,EAASqQ,kBAAkBC,EAAiBC,GACzDG,UAAWzH,EAAQyH,UACnBD,aAAa,GAGf,IAAIE,EAASrP,OAGN,CAAA,GAAGqP,EAASrP,OAAS,EAAG,CAG3B,GAAI2Q,KAMN,OAJAtB,GAAS/M,QAAQ,SAASsO,GACxBD,EAAMhL,KAAKoL,EAAcH,EAAQ5B,gBAAiB4B,EAAQ3B,cAGrDvQ,EAASgG,IAAIiL,KAAKjD,KAAKiE,GAQ9B,GAJA3B,EAAkBK,EAAS,GAAGL,gBAC9BC,EAAYI,EAAS,GAAGJ,UAGrBD,EAAgBhP,QAAU,EAC3B,MAAOtB,GAAS8Q,cAAcC,OAAOT,EAAiBC,EAGxD,IAEErP,GAIA8P,EANEsB,KACFC,KAEA3R,EAAI0P,EAAgBhP,OAAS,EAC7BkR,KACAC,KAASC,KAAUC,IAKrB,KAAIzR,EAAI,EAAGA,EAAIN,EAAGM,IAChBoR,EAAGpR,GAAKoP,EAAoB,EAAJpP,GACxBqR,EAAGrR,GAAKoP,EAAoB,EAAJpP,EAAQ,EAKlC,KAAIA,EAAI,EAAGA,EAAIN,EAAI,EAAGM,IACpBwR,EAAIxR,GAAKqR,EAAGrR,EAAI,GAAKqR,EAAGrR,GACxByR,EAAIzR,GAAKoR,EAAGpR,EAAI,GAAKoR,EAAGpR,GACxBuR,EAAGvR,GAAKwR,EAAIxR,GAAKyR,EAAIzR,EASvB,KAHAsR,EAAG,GAAKC,EAAG,GACXD,EAAG5R,EAAI,GAAK6R,EAAG7R,EAAI,GAEfM,EAAI,EAAGA,EAAIN,EAAI,EAAGM,IACP,IAAVuR,EAAGvR,IAA0B,IAAduR,EAAGvR,EAAI,IAAauR,EAAGvR,EAAI,GAAK,GAAQuR,EAAGvR,GAAK,EAChEsR,EAAGtR,GAAK,GAERsR,EAAGtR,GAAK,GAAKyR,EAAIzR,EAAI,GAAKyR,EAAIzR,MAC3B,EAAIyR,EAAIzR,GAAKyR,EAAIzR,EAAI,IAAMuR,EAAGvR,EAAI,IAClCyR,EAAIzR,GAAK,EAAIyR,EAAIzR,EAAI,IAAMuR,EAAGvR,IAE7BiJ,SAASqI,EAAGtR,MACdsR,EAAGtR,GAAK,GASd,KAFA8P,GAAO,GAAIhR,GAASgG,IAAIiL,MAAOI,KAAKiB,EAAG,GAAIC,EAAG,IAAI,EAAOhC,EAAU,IAE/DrP,EAAI,EAAGA,EAAIN,EAAI,EAAGM,IACpB8P,EAAKY,MAEHU,EAAGpR,GAAKyR,EAAIzR,GAAK,EACjBqR,EAAGrR,GAAKsR,EAAGtR,GAAKyR,EAAIzR,GAAK,EAEzBoR,EAAGpR,EAAI,GAAKyR,EAAIzR,GAAK,EACrBqR,EAAGrR,EAAI,GAAKsR,EAAGtR,EAAI,GAAKyR,EAAIzR,GAAK,EAEjCoR,EAAGpR,EAAI,GACPqR,EAAGrR,EAAI,IAEP,EACAqP,EAAUrP,EAAI,GAIlB,OAAO8P,GAtFP,MAAOhR,GAAS8Q,cAAcC,aA+GpC/Q,EAAS8Q,cAAcpF,KAAO,SAASzC,GACrC,GAAIuH,IACFoC,UAAU,EACVlC,WAAW,EAKb,OAFAzH,GAAUjJ,EAASgB,UAAWwP,EAAgBvH,GAEvC,SAAcqH,EAAiBC,GAKpC,IAAK,GAFDkB,GAAOC,EAAOC,EAFdX,EAAO,GAAIhR,GAASgG,IAAIiL,KAInB/P,EAAI,EAAGA,EAAIoP,EAAgBhP,OAAQJ,GAAK,EAAG,CAClD,GAAIgQ,GAAQZ,EAAgBpP,GACxBiQ,EAAQb,EAAgBpP,EAAI,GAC5BkQ,EAAWb,EAAUrP,EAAI,EAGPoB,UAAnB8O,EAASpP,OACMM,SAAbqP,EACDX,EAAKK,KAAKH,EAAOC,GAAO,EAAOC,IAE5BnI,EAAQ2J,SAET5B,EAAKM,KAAKJ,EAAOQ,GAAO,EAAOC,GAG/BX,EAAKM,KAAKG,EAAON,GAAO,EAAOC,GAGjCJ,EAAKM,KAAKJ,EAAOC,GAAO,EAAOC,IAGjCK,EAAQP,EACRQ,EAAQP,EACRQ,EAAWP,GACFnI,EAAQyH,YACjBe,EAAQC,EAAQC,EAAWrP,QAI/B,MAAO0O,MAIXjR,MAAQ8Q,OAAQ7Q,GAOjB,SAAUE,EAAYF,GACrB,YAEAA,GAAS6S,aAAe,WAUtB,QAASC,GAAgBC,EAAOC,GAC9BC,EAASF,GAASE,EAASF,OAC3BE,EAASF,GAAO9L,KAAK+L,GAUvB,QAASE,GAAmBH,EAAOC,GAE9BC,EAASF,KAEPC,GACDC,EAASF,GAAOI,OAAOF,EAASF,GAAOK,QAAQJ,GAAU,GAC3B,IAA3BC,EAASF,GAAOzR,cACV2R,GAASF,UAIXE,GAASF,IAYtB,QAAS9E,GAAK8E,EAAOpO,GAEhBsO,EAASF,IACVE,EAASF,GAAOnP,QAAQ,SAASoP,GAC/BA,EAAQrO,KAKTsO,EAAS,MACVA,EAAS,KAAKrP,QAAQ,SAASyP,GAC7BA,EAAYN,EAAOpO,KAvDzB,GAAIsO,KA4DJ,QACEH,gBAAiBA,EACjBI,mBAAoBA,EACpBjF,KAAMA,KAIVlO,MAAQ8Q,OAAQ7Q,GAOjB,SAASE,EAAYF,GACpB,YAEA,SAASsT,GAAYC,GACnB,GAAIlQ,KACJ,IAAIkQ,EAAKjS,OACP,IAAK,GAAIJ,GAAI,EAAGA,EAAIqS,EAAKjS,OAAQJ,IAC/BmC,EAAI4D,KAAKsM,EAAKrS,GAGlB,OAAOmC,GA4CT,QAASrC,GAAOwS,EAAYC,GAC1B,GAAIC,GAAaD,GAAsB1T,KAAK0F,WAAazF,EAAS2T,MAC9DC,EAAQ9O,OAAO+O,OAAOH,EAE1B1T,GAAS2T,MAAMG,iBAAiBF,EAAOJ,EAEvC,IAAIO,GAAS,WACX,GACEC,GADEC,EAAKL,EAAMM,aAAe,YAU9B,OALAF,GAAWjU,OAASC,EAAW8E,OAAO+O,OAAOD,GAAS7T,KACtDkU,EAAGtR,MAAMqR,EAAUxS,MAAMiE,UAAUC,MAAMC,KAAKtE,UAAW,IAIlD2S,EAOT,OAJAD,GAAOtO,UAAYmO,EACnBG,EAAAA,SAAeL,EACfK,EAAO/S,OAASjB,KAAKiB,OAEd+S,EAIT,QAASD,KACP,GAAIhQ,GAAOwP,EAAYjS,WACnBJ,EAAS6C,EAAK,EAYlB,OAVAA,GAAKqP,OAAO,EAAGrP,EAAKxC,OAAS,GAAGsC,QAAQ,SAAUzC,GAChD2D,OAAOqP,oBAAoBhT,GAAQyC,QAAQ,SAAUwQ,SAE5CnT,GAAOmT,GAEdtP,OAAOuP,eAAepT,EAAQmT,EAC5BtP,OAAOwP,yBAAyBnT,EAAQiT,QAIvCnT,EAGTjB,EAAS2T,OACP3S,OAAQA,EACR8S,iBAAkBA,IAGpB/T,MAAQ8Q,OAAQ7Q,GAOjB,SAASE,EAAYF,GACpB,YAkBA,SAASuU,GAAO5P,EAAMsE,EAASuL,GA6B7B,MA5BG7P,KACD5E,KAAK4E,KAAOA,MACZ5E,KAAK4E,KAAKqC,OAASjH,KAAK4E,KAAKqC,WAC7BjH,KAAK4E,KAAKkC,OAAS9G,KAAK4E,KAAKkC,WAE7B9G,KAAK0N,aAAaQ,KAAK,QACrBC,KAAM,SACNvJ,KAAM5E,KAAK4E,QAIZsE,IACDlJ,KAAKkJ,QAAUjJ,EAASgB,UAAWwT,EAAWzU,KAAKkJ,QAAUlJ,KAAKyQ,eAAgBvH,GAI9ElJ,KAAK0U,sBACP1U,KAAKuP,gBAAgBU,4BACrBjQ,KAAKuP,gBAAkBtP,EAASsP,gBAAgBvP,KAAKkJ,QAASlJ,KAAKwP,kBAAmBxP,KAAK0N,gBAK3F1N,KAAK0U,qBACP1U,KAAK2U,YAAY3U,KAAKuP,gBAAgBc,qBAIjCrQ,KAQT,QAAS4U,KAUP,MAPI5U,MAAK0U,oBAIPtU,EAAOyU,aAAa7U,KAAK0U,sBAHzBtU,EAAO0U,oBAAoB,SAAU9U,KAAK+U,gBAC1C/U,KAAKuP,gBAAgBU,6BAKhBjQ,KAUT,QAASgV,GAAGhC,EAAOC,GAEjB,MADAjT,MAAK0N,aAAaqF,gBAAgBC,EAAOC,GAClCjT,KAUT,QAASiV,GAAIjC,EAAOC,GAElB,MADAjT,MAAK0N,aAAayF,mBAAmBH,EAAOC,GACrCjT,KAGT,QAASkV,KAEP9U,EAAO+U,iBAAiB,SAAUnV,KAAK+U,gBAIvC/U,KAAKuP,gBAAkBtP,EAASsP,gBAAgBvP,KAAKkJ,QAASlJ,KAAKwP,kBAAmBxP,KAAK0N,cAE3F1N,KAAK0N,aAAaqF,gBAAgB,iBAAkB,WAClD/S,KAAKwU,UACLY,KAAKpV,OAIJA,KAAKkJ,QAAQmM,SACdrV,KAAKkJ,QAAQmM,QAAQxR,QAAQ,SAASyR,GACjCA,YAAkB7T,OACnB6T,EAAO,GAAGtV,KAAMsV,EAAO,IAEvBA,EAAOtV,OAEToV,KAAKpV,OAITA,KAAK0N,aAAaQ,KAAK,QACrBC,KAAM,UACNvJ,KAAM5E,KAAK4E,OAIb5E,KAAK2U,YAAY3U,KAAKuP,gBAAgBc,qBAItCrQ,KAAK0U,oBAAsBnS,OAa7B,QAASgT,GAAK9S,EAAOmC,EAAM6L,EAAgBvH,EAASsG,GAClDxP,KAAKsF,UAAYrF,EAASuC,cAAcC,GACxCzC,KAAK4E,KAAOA,MACZ5E,KAAK4E,KAAKqC,OAASjH,KAAK4E,KAAKqC,WAC7BjH,KAAK4E,KAAKkC,OAAS9G,KAAK4E,KAAKkC,WAC7B9G,KAAKyQ,eAAiBA,EACtBzQ,KAAKkJ,QAAUA,EACflJ,KAAKwP,kBAAoBA,EACzBxP,KAAK0N,aAAezN,EAAS6S,eAC7B9S,KAAKwV,sBAAwBvV,EAASgG,IAAIwP,YAAY,iBACtDzV,KAAK0V,mBAAqBzV,EAASgG,IAAIwP,YAAY,4BACnDzV,KAAK+U,eAAiB,WACpB/U,KAAKwU,UACLY,KAAKpV,MAEJA,KAAKsF,YAEHtF,KAAKsF,UAAUqQ,cAChB3V,KAAKsF,UAAUqQ,aAAaf,SAG9B5U,KAAKsF,UAAUqQ,aAAe3V,MAKhCA,KAAK0U,oBAAsBkB,WAAWV,EAAWE,KAAKpV,MAAO,GApK/D,GAAII,GAASD,EAAWC,MAwKxBH,GAASsV,KAAOtV,EAAS2T,MAAM3S,QAC7BkT,YAAaoB,EACbhG,gBAAiBhN,OACjB+C,UAAW/C,OACXhC,IAAKgC,OACLmL,aAAcnL,OACdoS,YAAa,WACX,KAAM,IAAI3I,OAAM,2CAElBwI,OAAQA,EACRI,OAAQA,EACRI,GAAIA,EACJC,IAAKA,EACL/U,QAASD,EAASC,QAClBsV,uBAAuB,KAGzBxV,MAAQ8Q,OAAQ7Q,GAOjB,SAASE,EAAYF,GACpB,YAeA,SAASgG,GAAIoJ,EAAMwG,EAAYpQ,EAAWqQ,EAAQC,GAE7C1G,YAAgB2G,SACjBhW,KAAKoG,MAAQiJ,GAEbrP,KAAKoG,MAAQ/F,EAAS4V,gBAAgBhW,EAASK,WAAWC,IAAK8O,GAGnD,QAATA,GACDrP,KAAKkG,MACHgQ,WAAYjW,EAASK,WAAWK,MAKnCkV,GACD7V,KAAKkG,KAAK2P,GAGTpQ,GACDzF,KAAKmG,SAASV,GAGbqQ,IACGC,GAAeD,EAAO1P,MAAM+P,WAC9BL,EAAO1P,MAAMgQ,aAAapW,KAAKoG,MAAO0P,EAAO1P,MAAM+P,YAEnDL,EAAO1P,MAAME,YAAYtG,KAAKoG,QAapC,QAASF,GAAK2P,EAAYQ,GACxB,MAAyB,gBAAfR,GACLQ,EACMrW,KAAKoG,MAAML,eAAesQ,EAAIR,GAE9B7V,KAAKoG,MAAMkQ,aAAaT,IAInC9Q,OAAOC,KAAK6Q,GAAYhS,QAAQ,SAASqB,GAEvC,GAAuB3C,SAApBsT,EAAW3Q,GAId,GAAIA,EAAImO,QAAQ,UAAa,CAC3B,GAAIkD,GAAsBrR,EAAIsR,MAAM,IACpCxW,MAAKoG,MAAMqQ,eAAexW,EAASK,WAAWiW,EAAoB,IAAKrR,EAAK2Q,EAAW3Q,QAEvFlF,MAAKoG,MAAM4I,aAAa9J,EAAK2Q,EAAW3Q,KAE1CkQ,KAAKpV,OAEAA,MAaT,QAASgO,GAAKqB,EAAMwG,EAAYpQ,EAAWsQ,GACzC,MAAO,IAAI9V,GAASgG,IAAIoJ,EAAMwG,EAAYpQ,EAAWzF,KAAM+V,GAS7D,QAASD,KACP,MAAO9V,MAAKoG,MAAMsQ,qBAAsBC,YAAa,GAAI1W,GAASgG,IAAIjG,KAAKoG,MAAMsQ,YAAc,KASjG,QAAShX,KAEP,IADA,GAAIkX,GAAO5W,KAAKoG,MACQ,QAAlBwQ,EAAKC,UACTD,EAAOA,EAAKF,UAEd,OAAO,IAAIzW,GAASgG,IAAI2Q,GAU1B,QAASpU,GAAcsU,GACrB,GAAIC,GAAY/W,KAAKoG,MAAM5D,cAAcsU,EACzC,OAAOC,GAAY,GAAI9W,GAASgG,IAAI8Q,GAAa,KAUnD,QAASlR,GAAiBiR,GACxB,GAAIE,GAAahX,KAAKoG,MAAMP,iBAAiBiR,EAC7C,OAAOE,GAAWzV,OAAS,GAAItB,GAASgG,IAAIgR,KAAKD,GAAc,KASjE,QAASE,KACP,MAAOlX,MAAKoG,MAad,QAAS8I,GAAcJ,EAAS+G,EAAYpQ,EAAWsQ,GAGrD,GAAsB,gBAAZjH,GAAsB,CAC9B,GAAIxJ,GAAYjF,EAAS0O,cAAc,MACvCzJ,GAAU6R,UAAYrI,EACtBA,EAAUxJ,EAAU6Q,WAItBrH,EAAQE,aAAa,QAAS/O,EAASK,WAAWE,MAIlD,IAAI4W,GAAQpX,KAAKgO,KAAK,gBAAiB6H,EAAYpQ,EAAWsQ,EAK9D,OAFAqB,GAAMhR,MAAME,YAAYwI,GAEjBsI,EAUT,QAASjI,GAAK6C,GAEZ,MADAhS,MAAKoG,MAAME,YAAYjG,EAASgX,eAAerF,IACxChS,KAST,QAASsX,KACP,KAAOtX,KAAKoG,MAAM+P,YAChBnW,KAAKoG,MAAMJ,YAAYhG,KAAKoG,MAAM+P,WAGpC,OAAOnW,MAST,QAASuX,KAEP,MADAvX,MAAKoG,MAAMsQ,WAAW1Q,YAAYhG,KAAKoG,OAChCpG,KAAK8V,SAUd,QAAShU,GAAQ0V,GAEf,MADAxX,MAAKoG,MAAMsQ,WAAWe,aAAaD,EAAWpR,MAAOpG,KAAKoG,OACnDoR,EAWT,QAASE,GAAOtJ,EAAS2H,GAOvB,MANGA,IAAe/V,KAAKoG,MAAM+P,WAC3BnW,KAAKoG,MAAMgQ,aAAahI,EAAQhI,MAAOpG,KAAKoG,MAAM+P,YAElDnW,KAAKoG,MAAME,YAAY8H,EAAQhI,OAG1BpG,KAST,QAASyN,KACP,MAAOzN,MAAKoG,MAAMkQ,aAAa,SAAWtW,KAAKoG,MAAMkQ,aAAa,SAASqB,OAAOnB,MAAM,UAU1F,QAASrQ,GAASyR,GAShB,MARA5X,MAAKoG,MAAM4I,aAAa,QACtBhP,KAAKyN,QAAQzN,KAAKoG,OACfyR,OAAOD,EAAMD,OAAOnB,MAAM,QAC1B1Q,OAAO,SAASkI,EAAMH,EAAKiK,GAC1B,MAAOA,GAAKzE,QAAQrF,KAAUH,IAC7BI,KAAK,MAGLjO,KAUT,QAAS+X,GAAYH,GACnB,GAAII,GAAiBJ,EAAMD,OAAOnB,MAAM,MAMxC,OAJAxW,MAAKoG,MAAM4I,aAAa,QAAShP,KAAKyN,QAAQzN,KAAKoG,OAAON,OAAO,SAASuJ,GACxE,MAAO2I,GAAe3E,QAAQhE,UAC7BpB,KAAK,MAEDjO,KAST,QAASiY,KAGP,MAFAjY,MAAKoG,MAAM4I,aAAa,QAAS,IAE1BhP,KAST,QAASwF,KACP,MAAOxF,MAAKoG,MAAM8R,wBAAwB1S,OAS5C,QAASD,KACP,MAAOvF,MAAKoG,MAAM8R,wBAAwB3S,MA4C5C,QAAS4S,GAAQC,EAAYC,EAAQ3K,GA4GnC,MA3GcnL,UAAX8V,IACDA,GAAS,GAGXtT,OAAOC,KAAKoT,GAAYvU,QAAQ,SAAoCyU,GAElE,QAASC,GAAcC,EAAqBH,GAC1C,GACEF,GACAM,EACAC,EAHEC,IAODH,GAAoBE,SAErBA,EAASF,EAAoBE,iBAAkBjX,OAC7C+W,EAAoBE,OACpBzY,EAASgG,IAAI2S,OAAOJ,EAAoBE,cACnCF,GAAoBE,QAI7BF,EAAoBK,MAAQ5Y,EAAS+B,WAAWwW,EAAoBK,MAAO,MAC3EL,EAAoBM,IAAM7Y,EAAS+B,WAAWwW,EAAoBM,IAAK,MAEpEJ,IACDF,EAAoBO,SAAW,SAC/BP,EAAoBQ,WAAaN,EAAOzK,KAAK,KAC7CuK,EAAoBS,SAAW,OAI9BZ,IACDG,EAAoBU,KAAO,SAE3BP,EAAoBL,GAAaE,EAAoBW,KACrDnZ,KAAKkG,KAAKyS,GAIVF,EAAUxY,EAASkC,SAASqW,EAAoBK,OAAS,GAAG5W,MAC5DuW,EAAoBK,MAAQ,cAG9BV,EAAUnY,KAAKgO,KAAK,UAAW/N,EAASgB,QACtCmY,cAAed,GACdE,IAEAH,GAEDzC,WAAW,WAIT,IACEuC,EAAQ/R,MAAMiT,eACd,MAAMC,GAENX,EAAoBL,GAAaE,EAAoBe,GACrDvZ,KAAKkG,KAAKyS,GAEVR,EAAQZ,WAEVnC,KAAKpV,MAAOyY,GAGb/K,GACDyK,EAAQ/R,MAAM+O,iBAAiB,aAAc,WAC3CzH,EAAaQ,KAAK,kBAChBE,QAASpO,KACTmY,QAASA,EAAQ/R,MACjBoT,OAAQhB,KAEVpD,KAAKpV,OAGTmY,EAAQ/R,MAAM+O,iBAAiB,WAAY,WACtCzH,GACDA,EAAaQ,KAAK,gBAChBE,QAASpO,KACTmY,QAASA,EAAQ/R,MACjBoT,OAAQhB,IAITH,IAEDM,EAAoBL,GAAaE,EAAoBe,GACrDvZ,KAAKkG,KAAKyS,GAEVR,EAAQZ,WAEVnC,KAAKpV,OAINoY,EAAWE,YAAsB7W,OAClC2W,EAAWE,GAAWzU,QAAQ,SAAS2U,GACrCD,EAAcnD,KAAKpV,MAAMwY,GAAqB,IAC9CpD,KAAKpV,OAEPuY,EAAcnD,KAAKpV,MAAMoY,EAAWE,GAAYD,IAGlDjD,KAAKpV,OAEAA,KAgFT,QAASyZ,GAAQC,GACf,GAAIlG,GAAOxT,IAEXA,MAAK2Z,cACL,KAAI,GAAIxY,GAAI,EAAGA,EAAIuY,EAASnY,OAAQJ,IAClCnB,KAAK2Z,YAAYzS,KAAK,GAAIjH,GAASgG,IAAIyT,EAASvY,IAIlD4D,QAAOC,KAAK/E,EAASgG,IAAIP,WAAWI,OAAO,SAAS8T,GAClD,OAAQ,cACJ,SACA,gBACA,mBACA,UACA,SACA,UACA,SACA,SAASvG,QAAQuG,UACpB/V,QAAQ,SAAS+V,GAClBpG,EAAKoG,GAAqB,WACxB,GAAI7V,GAAOtC,MAAMiE,UAAUC,MAAMC,KAAKtE,UAAW,EAIjD,OAHAkS,GAAKmG,YAAY9V,QAAQ,SAASuK,GAChCnO,EAASgG,IAAIP,UAAUkU,GAAmBhX,MAAMwL,EAASrK,KAEpDyP,KAtkBb,GAAInT,GAAWF,EAAWE,QAge1BJ,GAASgG,IAAMhG,EAAS2T,MAAM3S,QAC5BkT,YAAalO,EACbC,KAAMA,EACN8H,KAAMA,EACN8H,OAAQA,EACRpW,KAAMA,EACN8C,cAAeA,EACfqD,iBAAkBA,EAClBqR,QAASA,EACThI,cAAeA,EACfC,KAAMA,EACNmI,MAAOA,EACPC,OAAQA,EACRzV,QAASA,EACT4V,OAAQA,EACRjK,QAASA,EACTtH,SAAUA,EACV4R,YAAaA,EACbE,iBAAkBA,EAClBzS,OAAQA,EACRD,MAAOA,EACP4S,QAASA,IAUXlY,EAASgG,IAAIwP,YAAc,SAASoE,GAClC,MAAOxZ,GAASyZ,eAAeC,WAAW,sCAAwCF,EAAS,OAQ7F,IAAIG,IACFC,YAAa,IAAM,EAAG,KAAO,MAC7BC,aAAc,IAAM,KAAO,KAAO,GAClCC,eAAgB,KAAO,IAAM,IAAM,KACnCC,YAAa,IAAM,KAAO,IAAM,KAChCC,aAAc,IAAM,IAAM,IAAM,KAChCC,eAAgB,KAAO,IAAM,KAAO,MACpCC,aAAc,IAAM,KAAO,KAAO,KAClCC,cAAe,KAAO,IAAM,KAAO,GACnCC,gBAAiB,KAAO,KAAO,KAAO,GACtCC,aAAc,KAAO,IAAM,KAAO,KAClCC,cAAe,KAAO,IAAM,IAAM,GAClCC,gBAAiB,IAAM,EAAG,KAAO,GACjCC,aAAc,KAAO,IAAM,KAAO,KAClCC,cAAe,IAAM,EAAG,IAAM,GAC9BC,gBAAiB,IAAM,EAAG,IAAM,GAChCC,YAAa,IAAM,IAAM,KAAO,MAChCC,aAAc,IAAM,EAAG,IAAM,GAC7BC,eAAgB,EAAG,EAAG,EAAG,GACzBC,YAAa,GAAK,IAAM,IAAM,MAC9BC,aAAc,KAAO,IAAM,KAAO,GAClCC,eAAgB,KAAO,KAAO,IAAM,KACpCC,YAAa,QAAY,KAAO,MAChCC,aAAc,KAAO,KAAO,IAAM,OAClCC,eAAgB,SAAa,KAAO,MAGtCvb,GAASgG,IAAI2S,OAASoB,EAwCtB/Z,EAASgG,IAAIgR,KAAOhX,EAAS2T,MAAM3S,QACjCkT,YAAasF,KAEfzZ,MAAQ8Q,OAAQ7Q,GAOjB,SAASE,EAAYF,GACpB,YA0BA,SAASmO,GAAQqN,EAASjC,EAAQkC,EAAc7N,EAAK8N,EAAU/W,GAC7D,GAAIgX,GAAc3b,EAASgB,QACzBwa,QAASE,EAAWF,EAAQI,cAAgBJ,EAAQ3R,eACnD0P,EAAQ5U,GAASA,KAAMA,MAE1B8W,GAAatI,OAAOvF,EAAK,EAAG+N,GAG9B,QAASE,GAAaJ,EAAcnY,GAClCmY,EAAa7X,QAAQ,SAAS+X,EAAaG,GACzCC,EAAoBJ,EAAYH,QAAQI,eAAehY,QAAQ,SAASoY,EAAWC,GACjF3Y,EAAGqY,EAAaK,EAAWF,EAAkBG,EAAYR,OAa/D,QAASS,GAAQC,EAAOlT,GACtBlJ,KAAK0b,gBACL1b,KAAK6N,IAAM,EACX7N,KAAKoc,MAAQA,EACbpc,KAAKkJ,QAAUjJ,EAASgB,UAAWwP,EAAgBvH,GAUrD,QAASmE,GAASQ,GAChB,MAAWtL,UAARsL,GACD7N,KAAK6N,IAAMpK,KAAKC,IAAI,EAAGD,KAAKyG,IAAIlK,KAAK0b,aAAana,OAAQsM,IACnD7N,MAEAA,KAAK6N,IAWhB,QAAS0J,GAAO8E,GAEd,MADArc,MAAK0b,aAAatI,OAAOpT,KAAK6N,IAAKwO,GAC5Brc,KAaT,QAASsR,GAAKxJ,EAAGD,EAAG8T,EAAU/W,GAK5B,MAJAwJ,GAAQ,KACNtG,GAAIA,EACJD,GAAIA,GACH7H,KAAK0b,aAAc1b,KAAK6N,MAAO8N,EAAU/W,GACrC5E,KAaT,QAASuR,GAAKzJ,EAAGD,EAAG8T,EAAU/W,GAK5B,MAJAwJ,GAAQ,KACNtG,GAAIA,EACJD,GAAIA,GACH7H,KAAK0b,aAAc1b,KAAK6N,MAAO8N,EAAU/W,GACrC5E,KAiBT,QAAS6R,GAAM/G,EAAIqC,EAAIpC,EAAIqC,EAAItF,EAAGD,EAAG8T,EAAU/W,GAS7C,MARAwJ,GAAQ,KACNtD,IAAKA,EACLqC,IAAKA,EACLpC,IAAKA,EACLqC,IAAKA,EACLtF,GAAIA,EACJD,GAAIA,GACH7H,KAAK0b,aAAc1b,KAAK6N,MAAO8N,EAAU/W,GACrC5E,KAkBT,QAASsc,GAAIC,EAAIC,EAAIC,EAAKC,EAAKC,EAAI7U,EAAGD,EAAG8T,EAAU/W,GAUjD,MATAwJ,GAAQ,KACNmO,IAAKA,EACLC,IAAKA,EACLC,KAAMA,EACNC,KAAMA,EACNC,IAAKA,EACL7U,GAAIA,EACJD,GAAIA,GACH7H,KAAK0b,aAAc1b,KAAK6N,MAAO8N,EAAU/W,GACrC5E,KAUT,QAASoF,GAAM6L,GAEb,GAAI2L,GAAS3L,EAAKnP,QAAQ,qBAAsB,SAC7CA,QAAQ,qBAAsB,SAC9B0U,MAAM,UACNvR,OAAO,SAASzB,EAAQ4K,GAMvB,MALGA,GAAQ/L,MAAM,aACfmB,EAAO0D,SAGT1D,EAAOA,EAAOjC,OAAS,GAAG2F,KAAKkH,GACxB5K,MAIuC,OAA/CoZ,EAAOA,EAAOrb,OAAS,GAAG,GAAGuI,eAC9B8S,EAAOC,KAKT,IAAIC,GAAWF,EAAOjZ,IAAI,SAASoZ,GAC/B,GAAItB,GAAUsB,EAAMC,QAClBC,EAAcjB,EAAoBP,EAAQI,cAE5C,OAAO5b,GAASgB,QACdwa,QAASA,GACRwB,EAAYhY,OAAO,SAASzB,EAAQyY,EAAWnY,GAEhD,MADAN,GAAOyY,IAAcc,EAAMjZ,GACpBN,UAKT0Z,GAAcld,KAAK6N,IAAK,EAM5B,OALApM,OAAMiE,UAAUwB,KAAKtE,MAAMsa,EAAYJ,GACvCrb,MAAMiE,UAAU0N,OAAOxQ,MAAM5C,KAAK0b,aAAcwB,GAEhDld,KAAK6N,KAAOiP,EAASvb,OAEdvB,KAST,QAAS8E,KACP,GAAIqY,GAAqB1Z,KAAKU,IAAI,GAAInE,KAAKkJ,QAAQkU,SAEnD,OAAOpd,MAAK0b,aAAazW,OAAO,SAASgM,EAAM2K,GAC3C,GAAIpC,GAASwC,EAAoBJ,EAAYH,QAAQI,eAAelY,IAAI,SAASsY,GAC/E,MAAOjc,MAAKkJ,QAAQkU,SACjB3Z,KAAKW,MAAMwX,EAAYK,GAAakB,GAAsBA,EAC3DvB,EAAYK,IACd7G,KAAKpV,MAEP,OAAOiR,GAAO2K,EAAYH,QAAUjC,EAAOvL,KAAK,MAChDmH,KAAKpV,MAAO,KAAOA,KAAKoc,MAAQ,IAAM,IAW5C,QAASiB,GAAMvV,EAAGD,GAIhB,MAHAiU,GAAa9b,KAAK0b,aAAc,SAASE,EAAaK,GACpDL,EAAYK,IAA+B,MAAjBA,EAAU,GAAanU,EAAID,IAEhD7H,KAWT,QAASsd,GAAUxV,EAAGD,GAIpB,MAHAiU,GAAa9b,KAAK0b,aAAc,SAASE,EAAaK,GACpDL,EAAYK,IAA+B,MAAjBA,EAAU,GAAanU,EAAID,IAEhD7H,KAeT,QAASud,GAAUC,GAOjB,MANA1B,GAAa9b,KAAK0b,aAAc,SAASE,EAAaK,EAAWF,EAAkBG,EAAYR,GAC7F,GAAI+B,GAAcD,EAAa5B,EAAaK,EAAWF,EAAkBG,EAAYR,IAClF+B,GAA+B,IAAhBA,KAChB7B,EAAYK,GAAawB,KAGtBzd,KAUT,QAAS0d,GAAMtB,GACb,GAAInK,GAAI,GAAIhS,GAASgG,IAAIiL,KAAKkL,GAASpc,KAAKoc,MAM5C,OALAnK,GAAEpE,IAAM7N,KAAK6N,IACboE,EAAEyJ,aAAe1b,KAAK0b,aAAa/V,QAAQhC,IAAI,SAAuBiY,GACpE,MAAO3b,GAASgB,UAAW2a,KAE7B3J,EAAE/I,QAAUjJ,EAASgB,UAAWjB,KAAKkJ,SAC9B+I,EAUT,QAAS0L,GAAelC,GACtB,GAAIjF,IACF,GAAIvW,GAASgG,IAAIiL,KAWnB,OARAlR,MAAK0b,aAAa7X,QAAQ,SAAS+X,GAC9BA,EAAYH,UAAYA,EAAQ3R,eAAiE,IAAhD0M,EAAMA,EAAMjV,OAAS,GAAGma,aAAana,QACvFiV,EAAMtP,KAAK,GAAIjH,GAASgG,IAAIiL,MAG9BsF,EAAMA,EAAMjV,OAAS,GAAGma,aAAaxU,KAAK0U,KAGrCpF,EAaT,QAASvI,GAAKiE,EAAOkK,EAAOlT,GAE1B,IAAI,GADA0U,GAAa,GAAI3d,GAASgG,IAAIiL,KAAKkL,EAAOlT,GACtC/H,EAAI,EAAGA,EAAI+Q,EAAM3Q,OAAQJ,IAE/B,IAAI,GADA8P,GAAOiB,EAAM/Q,GACT0c,EAAI,EAAGA,EAAI5M,EAAKyK,aAAana,OAAQsc,IAC3CD,EAAWlC,aAAaxU,KAAK+J,EAAKyK,aAAamC,GAGnD,OAAOD,GA3VT,GAAI5B,IACF8B,GAAI,IAAK,KACTC,GAAI,IAAK,KACT9L,GAAI,KAAM,KAAM,KAAM,KAAM,IAAK,KACjC+L,GAAI,KAAM,KAAM,MAAO,MAAO,KAAM,IAAK,MASvCvN,GAEF2M,SAAU,EA+UZnd,GAASgG,IAAIiL,KAAOjR,EAAS2T,MAAM3S,QACjCkT,YAAagI,EACb9O,SAAUA,EACVkK,OAAQA,EACRjG,KAAMA,EACNC,KAAMA,EACNM,MAAOA,EACPyK,IAAKA,EACLe,MAAOA,EACPC,UAAWA,EACXC,UAAWA,EACXnY,MAAOA,EACPN,UAAWA,EACX4Y,MAAOA,EACPC,eAAgBA,IAGlB1d,EAASgG,IAAIiL,KAAK8K,oBAAsBA,EACxC/b,EAASgG,IAAIiL,KAAKjD,KAAOA,GACzBjO,MAAQ8Q,OAAQ7Q,GAEjB,SAAUE,EAAYF,GACrB,YAwBA,SAASge,GAAKrQ,EAAOV,EAAWgR,EAAOhV,GACrClJ,KAAK4N,MAAQA,EACb5N,KAAK8N,aAAeF,IAAUuQ,EAAUrW,EAAIqW,EAAUtW,EAAIsW,EAAUrW,EACpE9H,KAAKkN,UAAYA,EACjBlN,KAAK8I,WAAaoE,EAAUU,EAAMwQ,SAAWlR,EAAUU,EAAMyQ,WAC7Dre,KAAKse,WAAapR,EAAUU,EAAM2Q,YAClCve,KAAKke,MAAQA,EACble,KAAKkJ,QAAUA,EAGjB,QAASsV,GAAoBlQ,EAAWmQ,EAAY9P,EAAkB+P,EAAchR,GAClF,GAAIiR,GAAcD,EAAa,OAAS1e,KAAK4N,MAAMC,IAAI/D,eACnD8U,EAAkB5e,KAAKke,MAAMva,IAAI3D,KAAK6e,aAAazJ,KAAKpV,OACxD8e,EAAc9e,KAAKke,MAAMva,IAAIgb,EAAYI,sBAE7CH,GAAgB/a,QAAQ,SAASmb,EAAgBlb,GAC/C,GAOImb,GAPAvQ,GACF5G,EAAG,EACHD,EAAG,EAQHoX,GAFCL,EAAgB9a,EAAQ,GAEX8a,EAAgB9a,EAAQ,GAAKkb,EAK7Bvb,KAAKC,IAAI1D,KAAK8I,WAAakW,EAAgB,IAIxD/e,EAASoK,gBAAgByU,EAAYhb,KAAkC,KAAvBgb,EAAYhb,KAMzC,MAAnB9D,KAAK4N,MAAMC,KACZmR,EAAiBhf,KAAKkN,UAAUpC,GAAKkU,EACrCtQ,EAAY5G,EAAI4W,EAAatV,MAAMsF,YAAY5G,EAIZ,UAAhC4W,EAAatV,MAAMiE,SACpBqB,EAAY7G,EAAI7H,KAAKkN,UAAUlF,QAAQE,IAAMwW,EAAatV,MAAMsF,YAAY7G,GAAK8G,EAAmB,EAAI,IAExGD,EAAY7G,EAAI7H,KAAKkN,UAAUC,GAAKuR,EAAatV,MAAMsF,YAAY7G,GAAK8G,EAAmB,EAAI,MAGjGqQ,EAAiBhf,KAAKkN,UAAUC,GAAK6R,EACrCtQ,EAAY7G,EAAI6W,EAAa5R,MAAM4B,YAAY7G,GAAK8G,EAAmBsQ,EAAc,GAIlD,UAAhCP,EAAa5R,MAAMO,SACpBqB,EAAY5G,EAAI6G,EAAmB3O,KAAKkN,UAAUlF,QAAQK,KAAOqW,EAAa5R,MAAM4B,YAAY5G,EAAI9H,KAAKkN,UAAUpC,GAAK,GAExH4D,EAAY5G,EAAI9H,KAAKkN,UAAUnC,GAAK2T,EAAa5R,MAAM4B,YAAY5G,EAAI,IAIxE6W,EAAYO,UACbjf,EAASqN,WAAW0R,EAAgBlb,EAAO9D,KAAMA,KAAKse,WAAYte,KAAKkN,UAAUlN,KAAK8N,aAAae,OAAQP,GACzGoQ,EAAaS,WAAWC,KACxBV,EAAaS,WAAWnf,KAAK4N,MAAMyR,MAClC3R,GAGFiR,EAAYW,WACbrf,EAASuO,YAAYwQ,EAAgBC,EAAanb,EAAOgb,EAAa9e,KAAM2e,EAAYtV,OAAQqF,EAAa+P,GAC3GC,EAAaS,WAAWI,MACxBb,EAAaS,WAAWnf,KAAK4N,MAAMyR,KACT,UAAzBV,EAAYtR,SAAuBqR,EAAaS,WAAWR,EAAYtR,UAAYqR,EAAaS,WAAgB,KAChHxQ,EAAkBjB,KAEvB0H,KAAKpV,OArGT,GAGIme,IAHShe,EAAWC,OACTD,EAAWE,UAGxByH,GACE+F,IAAK,IACLgB,IAAK,QACLwQ,IAAK,aACLhB,UAAW,KACXD,QAAS,KACTG,WAAY,MAEd1W,GACEgG,IAAK,IACLgB,IAAK,SACLwQ,IAAK,WACLhB,UAAW,KACXD,QAAS,KACTG,WAAY,OAsFhBte,GAASge,KAAOhe,EAAS2T,MAAM3S,QAC7BkT,YAAa8J,EACbO,oBAAqBA,EACrBK,aAAc,SAAS5c,EAAO6B,EAAOc,GACnC,KAAM,IAAIoH,OAAM,uCAIpB/L,EAASge,KAAKrQ,MAAQuQ,GAEtBne,MAAQ8Q,OAAQ7Q,GAuBjB,SAAUE,EAAYF,GACrB,YAKA,SAASuf,GAAcC,EAAU7a,EAAMsI,EAAWhE,GAEhD,GAAIQ,GAAUR,EAAQQ,SAAWzJ,EAASqJ,WAAW1E,EAAMsE,EAASuW,EAAS5R,IAC7E7N,MAAK+I,OAAS9I,EAAS+K,UAAUkC,EAAUuS,EAASrB,SAAWlR,EAAUuS,EAASpB,WAAY3U,EAASR,EAAQ+B,eAAiB,GAAI/B,EAAQgC,aAC5IlL,KAAKgJ,OACHkB,IAAKlK,KAAK+I,OAAOmB,IACjBxG,IAAK1D,KAAK+I,OAAOrF,KAGnBzD,EAASuf,cAATvf,SAA6BkU,YAAYvO,KAAK5F,KAC5Cyf,EACAvS,EACAlN,KAAK+I,OAAOkD,OACZ/C,GAGJ,QAAS2V,GAAa5c,GACpB,MAAOjC,MAAK8I,aAAe7I,EAASsK,cAActI,EAAOjC,KAAK4N,MAAMC,KAAO7N,KAAK+I,OAAOmB,KAAOlK,KAAK+I,OAAOC,MApB/F7I,EAAWC,OACTD,EAAWE,QAsB1BJ,GAASuf,cAAgBvf,EAASge,KAAKhd,QACrCkT,YAAaqL,EACbX,aAAcA,KAGhB7e,MAAQ8Q,OAAQ7Q,GAqBjB,SAAUE,EAAYF,GACrB,YAKA,SAASyf,GAAeD,EAAU7a,EAAMsI,EAAWhE,GACjD,GAAIQ,GAAUR,EAAQQ,SAAWzJ,EAASqJ,WAAW1E,EAAMsE,EAASuW,EAAS5R,IAC7E7N,MAAK6K,QAAU3B,EAAQ2B,SAAW,EAClC7K,KAAKke,MAAQhV,EAAQgV,OAASje,EAAS0C,MAAM3C,KAAK6K,SAASlH,IAAI,SAAS1B,EAAO6B,GAC7E,MAAO4F,GAAQG,KAAOH,EAAQC,KAAOD,EAAQG,KAAO7J,KAAK6K,QAAU/G,GACnEsR,KAAKpV,OACPA,KAAKke,MAAMyB,KAAK,SAAS3B,EAAG4B,GAC1B,MAAO5B,GAAI4B,IAEb5f,KAAKgJ,OACHkB,IAAKR,EAAQG,IACbnG,IAAKgG,EAAQC,MAGf1J,EAASyf,eAATzf,SAA8BkU,YAAYvO,KAAK5F,KAC7Cyf,EACAvS,EACAlN,KAAKke,MACLhV,GAEFlJ,KAAK6f,WAAa7f,KAAK8I,WAAa9I,KAAK6K,QAG3C,QAASgU,GAAa5c,GACpB,MAAOjC,MAAK8I,aAAe7I,EAASsK,cAActI,EAAOjC,KAAK4N,MAAMC,KAAO7N,KAAKgJ,MAAMkB,MAAQlK,KAAKgJ,MAAMtF,IAAM1D,KAAKgJ,MAAMkB,KA3B/G/J,EAAWC,OACTD,EAAWE,QA6B1BJ,GAASyf,eAAiBzf,EAASge,KAAKhd,QACtCkT,YAAauL,EACbb,aAAcA,KAGhB7e,MAAQ8Q,OAAQ7Q,GAiBjB,SAAUE,EAAYF,GACrB,YAKA,SAAS6f,GAASL,EAAU7a,EAAMsI,EAAWhE,GAC3CjJ,EAAS6f,SAAT7f,SAAwBkU,YAAYvO,KAAK5F,KACvCyf,EACAvS,EACAhE,EAAQgV,MACRhV,EAEF,IAAI6W,GAAOtc,KAAKC,IAAI,EAAGwF,EAAQgV,MAAM3c,QAAU2H,EAAQ8W,QAAU,EAAI,GACrEhgB,MAAK6f,WAAa7f,KAAK8I,WAAaiX,EAGtC,QAASlB,GAAa5c,EAAO6B,GAC3B,MAAO9D,MAAK6f,WAAa/b,EAfd3D,EAAWC,OACTD,EAAWE,QAiB1BJ,GAAS6f,SAAW7f,EAASge,KAAKhd,QAChCkT,YAAa2L,EACbjB,aAAcA,KAGhB7e,MAAQ8Q,OAAQ7Q,GASjB,SAASE,EAAYF,GACpB,YA6GA,SAAS0U,GAAYzL,GACnB,GAAItE,GAAO3E,EAASsG,cAAcvG,KAAK4E,KAAMsE,EAAQ/B,aAAa,EAGlEnH,MAAKO,IAAMN,EAASoF,UAAUrF,KAAKsF,UAAW4D,EAAQ3D,MAAO2D,EAAQ1D,OAAQ0D,EAAQiW,WAAWc,MAEhG,IAKI7W,GAAO0D,EALPwB,EAAYtO,KAAKO,IAAIyN,KAAK,KAAK7H,SAAS+C,EAAQiW,WAAW7Q,WAC3D4R,EAAclgB,KAAKO,IAAIyN,KAAK,KAC5ByQ,EAAaze,KAAKO,IAAIyN,KAAK,KAAK7H,SAAS+C,EAAQiW,WAAWV,YAE5DvR,EAAYjN,EAAS0M,gBAAgB3M,KAAKO,IAAK2I,EAASuH,EAAezI,QAIzEoB,GADwB7G,SAAvB2G,EAAQE,MAAM+E,KACP,GAAIlO,GAAS6f,SAAS7f,EAASge,KAAKrQ,MAAM9F,EAAGlD,EAAKiC,WAAWC,OAAQoG,EAAWjN,EAASgB,UAAWiI,EAAQE,OAClH8U,MAAOtZ,EAAKiC,WAAWI,OACvB+Y,QAAS9W,EAAQiX,aAGXjX,EAAQE,MAAM+E,KAAKvI,KAAK3F,EAAUA,EAASge,KAAKrQ,MAAM9F,EAAGlD,EAAKiC,WAAWC,OAAQoG,EAAWhE,EAAQE,OAI5G0D,EADwBvK,SAAvB2G,EAAQ4D,MAAMqB,KACP,GAAIlO,GAASuf,cAAcvf,EAASge,KAAKrQ,MAAM/F,EAAGjD,EAAKiC,WAAWC,OAAQoG,EAAWjN,EAASgB,UAAWiI,EAAQ4D,OACvHnD,KAAM1J,EAASkK,UAAUjB,EAAQS,MAAQT,EAAQS,KAAOT,EAAQ4D,MAAMnD,KACtEE,IAAK5J,EAASkK,UAAUjB,EAAQW,KAAOX,EAAQW,IAAMX,EAAQ4D,MAAMjD,OAG7DX,EAAQ4D,MAAMqB,KAAKvI,KAAK3F,EAAUA,EAASge,KAAKrQ,MAAM/F,EAAGjD,EAAKiC,WAAWC,OAAQoG,EAAWhE,EAAQ4D,OAG9G1D,EAAMoV,oBAAoBlQ,EAAWmQ,EAAYze,KAAKwV,sBAAuBtM,EAASlJ,KAAK0N,cAC3FZ,EAAM0R,oBAAoBlQ,EAAWmQ,EAAYze,KAAKwV,sBAAuBtM,EAASlJ,KAAK0N,cAEvFxE,EAAQkX,oBACVngB,EAASoO,qBAAqBC,EAAWpB,EAAWhE,EAAQiW,WAAW5Q,eAAgBvO,KAAK0N,cAI9F9I,EAAKgC,IAAIE,OAAOjD,QAAQ,SAASiD,EAAQuZ,GACvC,GAAIC,GAAgBJ,EAAYlS,KAAK,IAGrCsS,GAAcpa,MACZqa,iBAAkBzZ,EAAOuI,KACzBmR,UAAWvgB,EAAS0E,UAAUmC,EAAOyB,QAIvC+X,EAAcna,UACZ+C,EAAQiW,WAAWrY,OAClBA,EAAOrB,WAAayD,EAAQiW,WAAWrY,OAAS,IAAM7G,EAASa,cAAcuf,IAC9EpS,KAAK,KAEP,IAAIsC,MACFkQ,IAEF7b,GAAKiC,WAAWC,OAAOuZ,GAAaxc,QAAQ,SAAS5B,EAAOye,GAC1D,GAAIhW,IACF5C,EAAGoF,EAAUpC,GAAK1B,EAAMyV,aAAa5c,EAAOye,EAAY9b,EAAKiC,WAAWC,OAAOuZ,IAC/ExY,EAAGqF,EAAUC,GAAKL,EAAM+R,aAAa5c,EAAOye,EAAY9b,EAAKiC,WAAWC,OAAOuZ,IAEjF9P,GAAgBrJ,KAAKwD,EAAE5C,EAAG4C,EAAE7C,GAC5B4Y,EAASvZ,MACPjF,MAAOA,EACPye,WAAYA,EACZnY,KAAMtI,EAASqI,YAAYxB,EAAQ4Z,MAErCtL,KAAKpV,MAEP,IAAIsP,IACFqR,WAAY1gB,EAASmP,gBAAgBtI,EAAQoC,EAAS,cACtD0X,UAAW3gB,EAASmP,gBAAgBtI,EAAQoC,EAAS,aACrD2X,SAAU5gB,EAASmP,gBAAgBtI,EAAQoC,EAAS,YACpD4X,SAAU7gB,EAASmP,gBAAgBtI,EAAQoC,EAAS,YACpD6X,SAAU9gB,EAASmP,gBAAgBtI,EAAQoC,EAAS,aAGlD8X,EAAgD,kBAA7B1R,GAAcqR,WACnCrR,EAAcqR,WAAcrR,EAAcqR,WAAa1gB,EAAS8Q,cAAcuB,gBAAkBrS,EAAS8Q,cAAcC,OAGrHC,EAAO+P,EAAUzQ,EAAiBkQ,EAmCtC,IA9BInR,EAAcsR,WAEhB3P,EAAKyK,aAAa7X,QAAQ,SAAS+X,GACjC,GAAIqF,GAAQX,EAActS,KAAK,QAC7BlD,GAAI8Q,EAAY9T,EAChBqF,GAAIyO,EAAY/T,EAChBkD,GAAI6Q,EAAY9T,EAAI,IACpBsF,GAAIwO,EAAY/T,GACfqB,EAAQiW,WAAW8B,OAAO/a,MAC3Bgb,YAAatF,EAAYhX,KAAK3C,MAAM6F,EAAG8T,EAAYhX,KAAK3C,MAAM4F,GAAG/B,OAAO7F,EAASkK,WAAW8D,KAAK,KACjGuS,UAAWvgB,EAAS0E,UAAUiX,EAAYhX,KAAK2D,OAGjDvI,MAAK0N,aAAaQ,KAAK,QACrBC,KAAM,QACNlM,MAAO2Z,EAAYhX,KAAK3C,MACxB6B,MAAO8X,EAAYhX,KAAK8b,WACxBnY,KAAMqT,EAAYhX,KAAK2D,KACvBzB,OAAQA,EACRuZ,YAAaA,EACbjX,MAAOA,EACP0D,MAAOA,EACPU,MAAO8S,EACPlS,QAAS6S,EACTnZ,EAAG8T,EAAY9T,EACfD,EAAG+T,EAAY/T,KAEjBuN,KAAKpV,OAGNsP,EAAcuR,SAAU,CACzB,GAAItP,GAAO+O,EAActS,KAAK,QAC5ByD,EAAGR,EAAKnM,aACPoE,EAAQiW,WAAW5N,MAAM,EAE5BvR,MAAK0N,aAAaQ,KAAK,QACrBC,KAAM,OACNlC,OAAQrH,EAAKiC,WAAWC,OAAOuZ,GAC/BpP,KAAMA,EAAKyM,QACXxQ,UAAWA,EACXpJ,MAAOuc,EACPvZ,OAAQA,EACRuZ,YAAaA,EACbc,WAAYra,EAAOyB,KACnBa,MAAOA,EACP0D,MAAOA,EACPU,MAAO8S,EACPlS,QAASmD,IAKb,GAAGjC,EAAcwR,UAAYhU,EAAM9D,MAAO,CAGxC,GAAI+X,GAAWtd,KAAKC,IAAID,KAAKyG,IAAIoF,EAAcyR,SAAUjU,EAAM9D,MAAMtF,KAAMoJ,EAAM9D,MAAMkB,KAGnFkX,EAAoBlU,EAAUC,GAAKL,EAAM+R,aAAakC,EAG1D9P,GAAK0M,eAAe,KAAK7X,OAAO,SAA2Bub,GAEzD,MAAOA,GAAY3F,aAAana,OAAS,IACxCoC,IAAI,SAAuB2d,GAE5B,GAAIC,GAAeD,EAAkB5F,aAAa,GAC9C8F,EAAcF,EAAkB5F,aAAa4F,EAAkB5F,aAAana,OAAS,EAMzF,OAAO+f,GAAkB5D,OAAM,GAC5BrQ,SAAS,GACTkK,OAAO,GACPjG,KAAKiQ,EAAazZ,EAAGsZ,GACrB7P,KAAKgQ,EAAazZ,EAAGyZ,EAAa1Z,GAClCwF,SAASiU,EAAkB5F,aAAana,OAAS,GACjDgQ,KAAKiQ,EAAY1Z,EAAGsZ,KAEtBvd,QAAQ,SAAoB4d,GAG7B,GAAIC,GAAOpB,EAActS,KAAK,QAC5ByD,EAAGgQ,EAAS3c,aACXoE,EAAQiW,WAAWuC,MAAM,EAG5B1hB,MAAK0N,aAAaQ,KAAK,QACrBC,KAAM,OACNlC,OAAQrH,EAAKiC,WAAWC,OAAOuZ,GAC/BpP,KAAMwQ,EAAS/D,QACf5W,OAAQA,EACRuZ,YAAaA,EACbjX,MAAOA,EACP0D,MAAOA,EACPI,UAAWA,EACXpJ,MAAOuc,EACP7S,MAAO8S,EACPlS,QAASsT,KAEXtM,KAAKpV,SAEToV,KAAKpV,OAEPA,KAAK0N,aAAaQ,KAAK,WACrBnF,OAAQ+D,EAAM/D,OACdmE,UAAWA,EACX9D,MAAOA,EACP0D,MAAOA,EACPvM,IAAKP,KAAKO,IACV2I,QAASA,IAqFb,QAASyY,GAAKlf,EAAOmC,EAAMsE,EAASsG,GAClCvP,EAAS0hB,KAAT1hB,SAAoBkU,YAAYvO,KAAK5F,KACnCyC,EACAmC,EACA6L,EACAxQ,EAASgB,UAAWwP,EAAgBvH,GACpCsG,GA7YJ,GAQIiB,IARStQ,EAAWC,OACTD,EAAWE,UASxB+I,OAEEC,OAAQ,GAERgE,SAAU,MAEVqB,aACE5G,EAAG,EACHD,EAAG,GAGLyX,WAAW,EAEXJ,UAAU,EAEVH,sBAAuB9e,EAASW,KAEhCuN,KAAM5L,QAGRuK,OAEEzD,OAAQ,GAERgE,SAAU,QAEVqB,aACE5G,EAAG,EACHD,EAAG,GAGLyX,WAAW,EAEXJ,UAAU,EAEVH,sBAAuB9e,EAASW,KAEhCuN,KAAM5L,OAEN0I,cAAe,GAEfC,aAAa,GAGf3F,MAAOhD,OAEPiD,OAAQjD,OAERse,UAAU,EAEVD,WAAW,EAEXE,UAAU,EAEVC,SAAU,EAEVJ,YAAY,EAEZP,oBAAoB,EAEpBvW,IAAKtH,OAELoH,KAAMpH,OAEN4G,cACEjB,IAAK,GACLC,MAAO,GACPC,OAAQ,EACRC,KAAM,IAGR8X,WAAW,EAEXhZ,aAAa,EAEbgY,YACEc,MAAO,gBACPV,MAAO,WACPd,WAAY,YACZ3X,OAAQ,YACRyK,KAAM,UACN0P,MAAO,WACPS,KAAM,UACNtC,KAAM,UACN9Q,UAAW,WACXC,eAAgB,qBAChBqT,SAAU,cACVC,WAAY,gBACZC,MAAO,WACPC,IAAK,WA8ST9hB,GAAS0hB,KAAO1hB,EAASsV,KAAKtU,QAC5BkT,YAAawN,EACbhN,YAAaA,KAGf3U,MAAQ8Q,OAAQ7Q,GAOjB,SAASE,EAAYF,GACpB,YA6GA,SAAS0U,GAAYzL,GACnB,GAAItE,GACA8E,CAEDR,GAAQ8Y,kBACTpd,EAAO3E,EAASsG,cAAcvG,KAAK4E,KAAMsE,EAAQ/B,YAAa+B,EAAQ+Y,eAAiB,IAAM,KAC7Frd,EAAKiC,WAAWC,OAASlC,EAAKiC,WAAWC,OAAOnD,IAAI,SAAS1B,GAC3D,OAAQA,MAGV2C,EAAO3E,EAASsG,cAAcvG,KAAK4E,KAAMsE,EAAQ/B,YAAa+B,EAAQ+Y,eAAiB,IAAM,KAI/FjiB,KAAKO,IAAMN,EAASoF,UAClBrF,KAAKsF,UACL4D,EAAQ3D,MACR2D,EAAQ1D,OACR0D,EAAQiW,WAAWc,OAAS/W,EAAQ+Y,eAAiB,IAAM/Y,EAAQiW,WAAW8C,eAAiB,IAIjG,IAAI3T,GAAYtO,KAAKO,IAAIyN,KAAK,KAAK7H,SAAS+C,EAAQiW,WAAW7Q,WAC3D4R,EAAclgB,KAAKO,IAAIyN,KAAK,KAC5ByQ,EAAaze,KAAKO,IAAIyN,KAAK,KAAK7H,SAAS+C,EAAQiW,WAAWV;AAEhE,GAAGvV,EAAQgZ,WAA+C,IAAlCtd,EAAKiC,WAAWC,OAAOvF,OAAc,CAG3D,GAAI4gB,GAAaliB,EAASoD,UAAUuB,EAAKiC,WAAWC,OAAQ,WAC1D,MAAOrF,OAAMiE,UAAUC,MAAMC,KAAKtE,WAAWqC,IAAI,SAAS1B,GACxD,MAAOA,KACNgD,OAAO,SAASmd,EAAMC,GACvB,OACEva,EAAGsa,EAAKta,GAAKua,GAAQA,EAAKva,IAAM,EAChCD,EAAGua,EAAKva,GAAKwa,GAAQA,EAAKxa,IAAM,KAEhCC,EAAG,EAAGD,EAAG,KAGf6B,GAAUzJ,EAASqJ,YAAY6Y,GAAajZ,EAASA,EAAQ+Y,eAAiB,IAAM,SAIpFvY,GAAUzJ,EAASqJ,WAAW1E,EAAKiC,WAAWC,OAAQoC,EAASA,EAAQ+Y,eAAiB,IAAM,IAIhGvY,GAAQC,MAAQT,EAAQS,OAA0B,IAAjBT,EAAQS,KAAa,EAAID,EAAQC,MAClED,EAAQG,KAAOX,EAAQW,MAAwB,IAAhBX,EAAQW,IAAY,EAAIH,EAAQG,IAE/D,IAEIyY,GACFC,EACAC,EACApZ,EACA0D,EANEI,EAAYjN,EAAS0M,gBAAgB3M,KAAKO,IAAK2I,EAASuH,EAAezI,QAYzEua,GAHCrZ,EAAQ8Y,kBAAoB9Y,EAAQgZ,UAGpBtd,EAAKiC,WAAWI,OAAOtB,MAAM,EAAG,GAKhCf,EAAKiC,WAAWI,OAIhCiC,EAAQ+Y,gBAEPK,EAAYlZ,EADY7G,SAAvB2G,EAAQE,MAAM+E,KACK,GAAIlO,GAASuf,cAAcvf,EAASge,KAAKrQ,MAAM9F,EAAGlD,EAAKiC,WAAWC,OAAQoG,EAAWjN,EAASgB,UAAWiI,EAAQE,OACnIM,QAASA,EACTO,eAAgB,KAGEf,EAAQE,MAAM+E,KAAKvI,KAAK3F,EAAUA,EAASge,KAAKrQ,MAAM9F,EAAGlD,EAAKiC,WAAWC,OAAQoG,EAAWjN,EAASgB,UAAWiI,EAAQE,OAC1IM,QAASA,EACTO,eAAgB,KAKlBuY,EAAY1V,EADYvK,SAAvB2G,EAAQ4D,MAAMqB,KACK,GAAIlO,GAAS6f,SAAS7f,EAASge,KAAKrQ,MAAM/F,EAAGjD,EAAKiC,WAAWC,OAAQoG,GACvFgR,MAAOqE,IAGWrZ,EAAQ4D,MAAMqB,KAAKvI,KAAK3F,EAAUA,EAASge,KAAKrQ,MAAM/F,EAAGjD,EAAKiC,WAAWC,OAAQoG,EAAWhE,EAAQ4D,SAIxH0V,EAAYpZ,EADY7G,SAAvB2G,EAAQE,MAAM+E,KACK,GAAIlO,GAAS6f,SAAS7f,EAASge,KAAKrQ,MAAM9F,EAAGlD,EAAKiC,WAAWC,OAAQoG,GACvFgR,MAAOqE,IAGWrZ,EAAQE,MAAM+E,KAAKvI,KAAK3F,EAAUA,EAASge,KAAKrQ,MAAM9F,EAAGlD,EAAKiC,WAAWC,OAAQoG,EAAWhE,EAAQE,OAIxHkZ,EAAYxV,EADYvK,SAAvB2G,EAAQ4D,MAAMqB,KACK,GAAIlO,GAASuf,cAAcvf,EAASge,KAAKrQ,MAAM/F,EAAGjD,EAAKiC,WAAWC,OAAQoG,EAAWjN,EAASgB,UAAWiI,EAAQ4D,OACnIpD,QAASA,EACTO,eAAgB,KAGEf,EAAQ4D,MAAMqB,KAAKvI,KAAK3F,EAAUA,EAASge,KAAKrQ,MAAM/F,EAAGjD,EAAKiC,WAAWC,OAAQoG,EAAWjN,EAASgB,UAAWiI,EAAQ4D,OAC1IpD,QAASA,EACTO,eAAgB,KAMtB,IAAIwY,GAAYvZ,EAAQ+Y,eAAkB/U,EAAUpC,GAAKwX,EAAUzD,aAAa,GAAO3R,EAAUC,GAAKmV,EAAUzD,aAAa,GAEzH6D,IAEJF,GAAUhE,oBAAoBlQ,EAAWmQ,EAAYze,KAAKwV,sBAAuBtM,EAASlJ,KAAK0N,cAC/F4U,EAAU9D,oBAAoBlQ,EAAWmQ,EAAYze,KAAKwV,sBAAuBtM,EAASlJ,KAAK0N,cAE3FxE,EAAQkX,oBACVngB,EAASoO,qBAAqBC,EAAWpB,EAAWhE,EAAQiW,WAAW5Q,eAAgBvO,KAAK0N,cAI9F9I,EAAKgC,IAAIE,OAAOjD,QAAQ,SAASiD,EAAQuZ,GAEvC,GAEIsC,GAEArC,EAJAsC,EAAQvC,GAAezb,EAAKgC,IAAIE,OAAOvF,OAAS,GAAK,CAUvDohB,GAHCzZ,EAAQ8Y,mBAAqB9Y,EAAQgZ,UAGnBM,EAAU1Z,WAAalE,EAAKiC,WAAWC,OAAOvF,OAAS,EAClE2H,EAAQ8Y,kBAAoB9Y,EAAQgZ,UAGzBM,EAAU1Z,WAAa,EAGvB0Z,EAAU1Z,WAAalE,EAAKiC,WAAWC,OAAOuZ,GAAa9e,OAAS,EAIzF+e,EAAgBJ,EAAYlS,KAAK,KAGjCsS,EAAcpa,MACZqa,iBAAkBzZ,EAAOuI,KACzBmR,UAAWvgB,EAAS0E,UAAUmC,EAAOyB,QAIvC+X,EAAcna,UACZ+C,EAAQiW,WAAWrY,OAClBA,EAAOrB,WAAayD,EAAQiW,WAAWrY,OAAS,IAAM7G,EAASa,cAAcuf,IAC9EpS,KAAK,MAEPrJ,EAAKiC,WAAWC,OAAOuZ,GAAaxc,QAAQ,SAAS5B,EAAOye,GAC1D,GAAImC,GACFC,EACAC,EACAC,CA+CF,IAzCEA,EAHC9Z,EAAQ8Y,mBAAqB9Y,EAAQgZ,UAGhB7B,EACdnX,EAAQ8Y,kBAAoB9Y,EAAQgZ,UAGtB,EAGAxB,EAKtBmC,EADC3Z,EAAQ+Y,gBAEPna,EAAGoF,EAAUpC,GAAKwX,EAAUzD,aAAa5c,GAASA,EAAM6F,EAAI7F,EAAM6F,EAAI,EAAG4Y,EAAY9b,EAAKiC,WAAWC,OAAOuZ,IAC5GxY,EAAGqF,EAAUC,GAAKqV,EAAU3D,aAAa5c,GAASA,EAAM4F,EAAI5F,EAAM4F,EAAI,EAAGmb,EAAqBpe,EAAKiC,WAAWC,OAAOuZ,MAIrHvY,EAAGoF,EAAUpC,GAAK0X,EAAU3D,aAAa5c,GAASA,EAAM6F,EAAI7F,EAAM6F,EAAI,EAAGkb,EAAqBpe,EAAKiC,WAAWC,OAAOuZ,IACrHxY,EAAGqF,EAAUC,GAAKmV,EAAUzD,aAAa5c,GAASA,EAAM4F,EAAI5F,EAAM4F,EAAI,EAAG6Y,EAAY9b,EAAKiC,WAAWC,OAAOuZ,KAQ7GmC,YAAqBviB,GAAS6f,WAE3B0C,EAAUtZ,QAAQ8W,UACpB6C,EAAUL,EAAU5U,MAAMC,MAAQ8U,GAAoBzZ,EAAQ+Y,kBAAsB,IAGtFY,EAAUL,EAAU5U,MAAMC,MAAS3E,EAAQgZ,WAAahZ,EAAQ8Y,iBAAoB,EAAIY,EAAQ1Z,EAAQ+Z,mBAAqB/Z,EAAQ+Y,kBAAsB,IAI7Jc,EAAgBL,EAAiBhC,IAAe+B,EAChDC,EAAiBhC,GAAcqC,GAAiBN,EAAYI,EAAUL,EAAU1U,aAAaD,MAGhFtL,SAAVN,EAAH,CAIA,GAAIihB,KACJA,GAAUV,EAAU5U,MAAMC,IAAM,KAAOgV,EAAUL,EAAU5U,MAAMC,KACjEqV,EAAUV,EAAU5U,MAAMC,IAAM,KAAOgV,EAAUL,EAAU5U,MAAMC,MAE9D3E,EAAQgZ,WAAoC,eAAtBhZ,EAAQia,WAA+Bja,EAAQia,WAUtED,EAAUV,EAAU1U,aAAaD,IAAM,KAAO4U,EAC9CS,EAAUV,EAAU1U,aAAaD,IAAM,KAAOgV,EAAUL,EAAU1U,aAAaD,OAN/EqV,EAAUV,EAAU1U,aAAaD,IAAM,KAAOkV,EAC9CG,EAAUV,EAAU1U,aAAaD,IAAM,KAAO6U,EAAiBhC,IASjEwC,EAAUpY,GAAKrH,KAAKyG,IAAIzG,KAAKC,IAAIwf,EAAUpY,GAAIoC,EAAUpC,IAAKoC,EAAUnC,IACxEmY,EAAUnY,GAAKtH,KAAKyG,IAAIzG,KAAKC,IAAIwf,EAAUnY,GAAImC,EAAUpC,IAAKoC,EAAUnC,IACxEmY,EAAU/V,GAAK1J,KAAKyG,IAAIzG,KAAKC,IAAIwf,EAAU/V,GAAID,EAAUE,IAAKF,EAAUC,IACxE+V,EAAU9V,GAAK3J,KAAKyG,IAAIzG,KAAKC,IAAIwf,EAAU9V,GAAIF,EAAUE,IAAKF,EAAUC,GAExE,IAAIiW,GAAWnjB,EAASqI,YAAYxB,EAAQ4Z,EAG5CoC,GAAMxC,EAActS,KAAK,OAAQkV,EAAWha,EAAQiW,WAAW2D,KAAK5c,MAClEgb,YAAajf,EAAM6F,EAAG7F,EAAM4F,GAAG/B,OAAO7F,EAASkK,WAAW8D,KAAK,KAC/DuS,UAAWvgB,EAAS0E,UAAUye,KAGhCpjB,KAAK0N,aAAaQ,KAAK,OAAQjO,EAASgB,QACtCkN,KAAM,MACNlM,MAAOA,EACP6B,MAAO4c,EACPnY,KAAM6a,EACNtc,OAAQA,EACRuZ,YAAaA,EACbjX,MAAOA,EACP0D,MAAOA,EACPI,UAAWA,EACXM,MAAO8S,EACPlS,QAAS0U,GACRI,MACH9N,KAAKpV,QACPoV,KAAKpV,OAEPA,KAAK0N,aAAaQ,KAAK,WACrBnF,OAAQuZ,EAAUvZ,OAClBmE,UAAWA,EACX9D,MAAOA,EACP0D,MAAOA,EACPvM,IAAKP,KAAKO,IACV2I,QAASA,IAyCb,QAASma,GAAI5gB,EAAOmC,EAAMsE,EAASsG,GACjCvP,EAASojB,IAATpjB,SAAmBkU,YAAYvO,KAAK5F,KAClCyC,EACAmC,EACA6L,EACAxQ,EAASgB,UAAWwP,EAAgBvH,GACpCsG,GA3aJ,GAQIiB,IARStQ,EAAWC,OACTD,EAAWE,UASxB+I,OAEEC,OAAQ,GAERgE,SAAU,MAEVqB,aACE5G,EAAG,EACHD,EAAG,GAGLyX,WAAW,EAEXJ,UAAU,EAEVH,sBAAuB9e,EAASW,KAEhCqK,cAAe,GAEfC,aAAa,GAGf4B,OAEEzD,OAAQ,GAERgE,SAAU,QAEVqB,aACE5G,EAAG,EACHD,EAAG,GAGLyX,WAAW,EAEXJ,UAAU,EAEVH,sBAAuB9e,EAASW,KAEhCqK,cAAe,GAEfC,aAAa,GAGf3F,MAAOhD,OAEPiD,OAAQjD,OAERoH,KAAMpH,OAENsH,IAAKtH,OAEL0H,eAAgB,EAEhBd,cACEjB,IAAK,GACLC,MAAO,GACPC,OAAQ,EACRC,KAAM,IAGR4a,kBAAmB,GAEnBf,WAAW,EAGXiB,UAAW,aAEXlB,gBAAgB,EAEhBD,kBAAkB,EAElB7a,aAAa,EAEbiZ,oBAAoB,EAEpBjB,YACEc,MAAO,eACPgC,eAAgB,qBAChB1C,MAAO,WACPd,WAAY,YACZ3X,OAAQ,YACRgc,IAAK,SACL1D,KAAM,UACN9Q,UAAW,WACXC,eAAgB,qBAChBqT,SAAU,cACVC,WAAY,gBACZC,MAAO,WACPC,IAAK,WA4UT9hB,GAASojB,IAAMpjB,EAASsV,KAAKtU,QAC3BkT,YAAakP,EACb1O,YAAaA,KAGf3U,MAAQ8Q,OAAQ7Q,GAOjB,SAASE,EAAYF,GACpB,YA8DA,SAASqjB,GAAwBC,EAAQhE,EAAOiE,GAC9C,GAAIC,GAAalE,EAAMzX,EAAIyb,EAAOzb,CAElC,OAAG2b,IAA4B,YAAdD,IACdC,GAA4B,YAAdD,EACR,QACCC,GAA4B,YAAdD,IACrBC,GAA4B,YAAdD,EACR,MAEA,SASX,QAAS7O,GAAYzL,GACnB,GAEEwa,GACAxW,EACAb,EACAsX,EACAC,EANEhf,EAAO3E,EAASsG,cAAcvG,KAAK4E,MACnCif,KAMFC,EAAa5a,EAAQ4a,UAGvB9jB,MAAKO,IAAMN,EAASoF,UAAUrF,KAAKsF,UAAW4D,EAAQ3D,MAAO2D,EAAQ1D,OAAO0D,EAAQ6a,MAAQ7a,EAAQiW,WAAW6E,WAAa9a,EAAQiW,WAAW8E,UAE/I/W,EAAYjN,EAAS0M,gBAAgB3M,KAAKO,IAAK2I,EAASuH,EAAezI,SAEvEqE,EAAS5I,KAAKyG,IAAIgD,EAAU3H,QAAU,EAAG2H,EAAU1H,SAAW,GAE9Doe,EAAe1a,EAAQgb,OAAStf,EAAKiC,WAAWC,OAAO7B,OAAO,SAASkf,EAAeC,GACpF,MAAOD,GAAgBC,GACtB,EAEH,IAAIC,GAAapkB,EAASkC,SAAS+G,EAAQmb,WACnB,OAApBA,EAAWniB,OACbmiB,EAAWpiB,OAASoK,EAAS,KAM/BA,GAAUnD,EAAQ6a,QAAU7a,EAAQob,WAAaD,EAAWpiB,MAAQ,EAAK,EAKvE0hB,EAD2B,YAA1Bza,EAAQqb,eAA+Brb,EAAQ6a,QAAU7a,EAAQob,WACpDjY,EACoB,WAA1BnD,EAAQqb,cAEF,EACNrb,EAAQob,WACFjY,EAASgY,EAAWpiB,MAAQ,EAI5BoK,EAAS,EAGzBsX,GAAeza,EAAQwF,WAGvB,IAAI6U,IACFzb,EAAGoF,EAAUpC,GAAKoC,EAAU3H,QAAU,EACtCsC,EAAGqF,EAAUE,GAAKF,EAAU1H,SAAW,GAIrCgf,EAEU,IAFa5f,EAAKgC,IAAIE,OAAOhB,OAAO,SAAS2e,GACzD,MAAOA,GAAIld,eAAe,SAAyB,IAAdkd,EAAIxiB,MAAsB,IAARwiB,IACtDljB,MAGHqD,GAAKgC,IAAIE,OAAOjD,QAAQ,SAASiD,EAAQhD,GACvC+f,EAAa/f,GAAS9D,KAAKO,IAAIyN,KAAK,IAAK,KAAM,OAC/CoH,KAAKpV,OAEJkJ,EAAQoW,YACToE,EAAc1jB,KAAKO,IAAIyN,KAAK,IAAK,KAAM,OAKzCpJ,EAAKgC,IAAIE,OAAOjD,QAAQ,SAASiD,EAAQhD,GAEvC,GAAsC,IAAlCc,EAAKiC,WAAWC,OAAOhD,KAAgBoF,EAAQwb,kBAAnD,CAGAb,EAAa/f,GAAOoC,MAClBqa,iBAAkBzZ,EAAOuI,OAI3BwU,EAAa/f,GAAOqC,UAClB+C,EAAQiW,WAAWrY,OAClBA,EAAOrB,WAAayD,EAAQiW,WAAWrY,OAAS,IAAM7G,EAASa,cAAcgD,IAC9EmK,KAAK,KAGP,IAAI0W,GAAYf,EAAe,EAAIE,EAAalf,EAAKiC,WAAWC,OAAOhD,GAAS8f,EAAe,IAAM,EAGjGgB,EAAuBnhB,KAAKC,IAAI,EAAGogB,GAAwB,IAAVhgB,GAAe0gB,EAAuB,EAAI,IAI5FG,GAAWC,GAAwB,SACpCD,EAAWC,EAAuB,OAGpC,IAGIC,GACFC,EACAC,EALEjD,EAAQ7hB,EAASiM,iBAAiBqX,EAAOzb,EAAGyb,EAAO1b,EAAGwE,EAAQuY,GAChE7C,EAAM9hB,EAASiM,iBAAiBqX,EAAOzb,EAAGyb,EAAO1b,EAAGwE,EAAQsY,GAO1D1T,EAAO,GAAIhR,GAASgG,IAAIiL,MAAMhI,EAAQ6a,OAAS7a,EAAQob,YACxDhT,KAAKyQ,EAAIja,EAAGia,EAAIla,GAChByU,IAAIjQ,EAAQA,EAAQ,EAAGsY,EAAWb,EAAa,IAAK,EAAGhC,EAAMha,EAAGga,EAAMja,EAGrEqB,GAAQ6a,MAED7a,EAAQob,aACjBS,EAAmB1Y,EAASgY,EAAWpiB,MACvC4iB,EAAa5kB,EAASiM,iBAAiBqX,EAAOzb,EAAGyb,EAAO1b,EAAGkd,EAAkBjB,GAAwB,IAAVhgB,GAAe0gB,EAAuB,EAAI,KACrIM,EAAW7kB,EAASiM,iBAAiBqX,EAAOzb,EAAGyb,EAAO1b,EAAGkd,EAAkBJ,GAC3E1T,EAAKM,KAAKsT,EAAW/c,EAAG+c,EAAWhd,GACnCoJ,EAAKqL,IAAIyI,EAAkBA,EAAkB,EAAGJ,EAAWb,EAAc,IAAK,EAAGgB,EAAShd,EAAGgd,EAASjd,IANtGoJ,EAAKM,KAAKgS,EAAOzb,EAAGyb,EAAO1b,EAW7B,IAAImd,GAAgB9b,EAAQiW,WAAW8F,QACnC/b,GAAQ6a,QACViB,EAAgB9b,EAAQiW,WAAW+F,WAC/Bhc,EAAQob,aACVU,EAAgB9b,EAAQiW,WAAWgG,iBAGvC,IAAIvJ,GAAciI,EAAa/f,GAAOkK,KAAK,QACzCyD,EAAGR,EAAKnM,aACPkgB,EA+BH,IA5BApJ,EAAY1V,MACVgb,WAAYtc,EAAKiC,WAAWC,OAAOhD,GACnC0c,UAAWvgB,EAAS0E,UAAUmC,EAAOyB,QAIpCW,EAAQ6a,QAAU7a,EAAQob,aAC3B1I,EAAYxV,MAAMC,MAAM+e,YAAcf,EAAWpiB,MAAQ,MAI3DjC,KAAK0N,aAAaQ,KAAK,QACrBC,KAAM,QACNlM,MAAO2C,EAAKiC,WAAWC,OAAOhD,GAC9B8f,aAAcA,EACd9f,MAAOA,EACPyE,KAAMzB,EAAOyB,KACbzB,OAAQA,EACR0G,MAAOqW,EAAa/f,GACpBsK,QAASwN,EACT3K,KAAMA,EAAKyM,QACX6F,OAAQA,EACRlX,OAAQA,EACRyX,WAAYA,EACZa,SAAUA,IAITzb,EAAQoW,UAAW,CACpB,GAAIiF,EAGFA,GAF4B,IAA3B3f,EAAKgC,IAAIE,OAAOvF,QAGfuG,EAAGyb,EAAOzb,EACVD,EAAG0b,EAAO1b,GAII5H,EAASiM,iBACvBqX,EAAOzb,EACPyb,EAAO1b,EACP8b,EACAG,GAAca,EAAWb,GAAc,EAI3C,IAAIuB,EAEFA,GADCzgB,EAAKiC,WAAWI,SAAWhH,EAASoK,gBAAgBzF,EAAKiC,WAAWI,OAAOnD,IACjEc,EAAKiC,WAAWI,OAAOnD,GAEvBc,EAAKiC,WAAWC,OAAOhD,EAGpC,IAAIwhB,GAAoBpc,EAAQ6V,sBAAsBsG,EAAUvhB,EAEhE,IAAGwhB,GAA2C,IAAtBA,EAAyB,CAC/C,GAAI1W,GAAe8U,EAAY1V,KAAK,QAClCuX,GAAIhB,EAAczc,EAClB0d,GAAIjB,EAAc1c,EAClB4d,cAAenC,EAAwBC,EAAQgB,EAAerb,EAAQwc,iBACrExc,EAAQiW,WAAWI,OAAOpQ,KAAK,GAAKmW,EAGvCtlB,MAAK0N,aAAaQ,KAAK,QACrBC,KAAM,QACNrK,MAAOA,EACP0J,MAAOkW,EACPtV,QAASQ,EACTO,KAAM,GAAKmW,EACXxd,EAAGyc,EAAczc,EACjBD,EAAG0c,EAAc1c,KAOvBic,EAAaa,IACbvP,KAAKpV,OAEPA,KAAK0N,aAAaQ,KAAK,WACrBhB,UAAWA,EACX3M,IAAKP,KAAKO,IACV2I,QAASA,IAwEb,QAASyc,GAAIljB,EAAOmC,EAAMsE,EAASsG,GACjCvP,EAAS0lB,IAAT1lB,SAAmBkU,YAAYvO,KAAK5F,KAClCyC,EACAmC,EACA6L,EACAxQ,EAASgB,UAAWwP,EAAgBvH,GACpCsG,GAtXJ,GAQIiB,IARStQ,EAAWC,OACTD,EAAWE,UASxBkF,MAAOhD,OAEPiD,OAAQjD,OAER4G,aAAc,EAEdgW,YACE8E,SAAU,eACVD,WAAY,iBACZld,OAAQ,YACRme,SAAU,eACVC,WAAY,iBACZC,gBAAiB,uBACjB5F,MAAO,YAGTuE,WAAY,EAEZI,MAAO3hB,OAEPwhB,OAAO,EAEPO,YAAY,EAGZD,WAAY,GAEZ/E,WAAW,EAEX5Q,YAAa,EAEb6V,cAAe,SAEfxF,sBAAuB9e,EAASW,KAEhC8kB,eAAgB,UAEhBve,aAAa,EAEbud,mBAAmB,GAyUrBzkB,GAAS0lB,IAAM1lB,EAASsV,KAAKtU,QAC3BkT,YAAawR,EACbhR,YAAaA,EACb2O,wBAAyBA,KAG3BtjB,MAAQ8Q,OAAQ7Q,GAEXA","file":"chartist.min.js","sourcesContent":["(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module unless amdModuleId is set\n define('Chartist', [], function () {\n return (root['Chartist'] = factory());\n });\n } else if (typeof module === 'object' && module.exports) {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n module.exports = factory();\n } else {\n root['Chartist'] = factory();\n }\n}(this, function () {\n\n/* Chartist.js 0.11.4\n * Copyright Ā© 2019 Gion Kunz\n * Free to use under either the WTFPL license or the MIT license.\n * https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-WTFPL\n * https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-MIT\n */\n/**\n * The core module of Chartist that is mainly providing static functions and higher level functions for chart modules.\n *\n * @module Chartist.Core\n */\nvar Chartist = {\n version: '0.11.4'\n};\n\n(function (globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n /**\n * This object contains all namespaces used within Chartist.\n *\n * @memberof Chartist.Core\n * @type {{svg: string, xmlns: string, xhtml: string, xlink: string, ct: string}}\n */\n Chartist.namespaces = {\n svg: 'http://www.w3.org/2000/svg',\n xmlns: 'http://www.w3.org/2000/xmlns/',\n xhtml: 'http://www.w3.org/1999/xhtml',\n xlink: 'http://www.w3.org/1999/xlink',\n ct: 'http://gionkunz.github.com/chartist-js/ct'\n };\n\n /**\n * Helps to simplify functional style code\n *\n * @memberof Chartist.Core\n * @param {*} n This exact value will be returned by the noop function\n * @return {*} The same value that was provided to the n parameter\n */\n Chartist.noop = function (n) {\n return n;\n };\n\n /**\n * Generates a-z from a number 0 to 26\n *\n * @memberof Chartist.Core\n * @param {Number} n A number from 0 to 26 that will result in a letter a-z\n * @return {String} A character from a-z based on the input number n\n */\n Chartist.alphaNumerate = function (n) {\n // Limit to a-z\n return String.fromCharCode(97 + n % 26);\n };\n\n /**\n * Simple recursive object extend\n *\n * @memberof Chartist.Core\n * @param {Object} target Target object where the source will be merged into\n * @param {Object...} sources This object (objects) will be merged into target and then target is returned\n * @return {Object} An object that has the same reference as target but is extended and merged with the properties of source\n */\n Chartist.extend = function (target) {\n var i, source, sourceProp;\n target = target || {};\n\n for (i = 1; i < arguments.length; i++) {\n source = arguments[i];\n for (var prop in source) {\n sourceProp = source[prop];\n if (typeof sourceProp === 'object' && sourceProp !== null && !(sourceProp instanceof Array)) {\n target[prop] = Chartist.extend(target[prop], sourceProp);\n } else {\n target[prop] = sourceProp;\n }\n }\n }\n\n return target;\n };\n\n /**\n * Replaces all occurrences of subStr in str with newSubStr and returns a new string.\n *\n * @memberof Chartist.Core\n * @param {String} str\n * @param {String} subStr\n * @param {String} newSubStr\n * @return {String}\n */\n Chartist.replaceAll = function(str, subStr, newSubStr) {\n return str.replace(new RegExp(subStr, 'g'), newSubStr);\n };\n\n /**\n * Converts a number to a string with a unit. If a string is passed then this will be returned unmodified.\n *\n * @memberof Chartist.Core\n * @param {Number} value\n * @param {String} unit\n * @return {String} Returns the passed number value with unit.\n */\n Chartist.ensureUnit = function(value, unit) {\n if(typeof value === 'number') {\n value = value + unit;\n }\n\n return value;\n };\n\n /**\n * Converts a number or string to a quantity object.\n *\n * @memberof Chartist.Core\n * @param {String|Number} input\n * @return {Object} Returns an object containing the value as number and the unit as string.\n */\n Chartist.quantity = function(input) {\n if (typeof input === 'string') {\n var match = (/^(\\d+)\\s*(.*)$/g).exec(input);\n return {\n value : +match[1],\n unit: match[2] || undefined\n };\n }\n return { value: input };\n };\n\n /**\n * This is a wrapper around document.querySelector that will return the query if it's already of type Node\n *\n * @memberof Chartist.Core\n * @param {String|Node} query The query to use for selecting a Node or a DOM node that will be returned directly\n * @return {Node}\n */\n Chartist.querySelector = function(query) {\n return query instanceof Node ? query : document.querySelector(query);\n };\n\n /**\n * Functional style helper to produce array with given length initialized with undefined values\n *\n * @memberof Chartist.Core\n * @param length\n * @return {Array}\n */\n Chartist.times = function(length) {\n return Array.apply(null, new Array(length));\n };\n\n /**\n * Sum helper to be used in reduce functions\n *\n * @memberof Chartist.Core\n * @param previous\n * @param current\n * @return {*}\n */\n Chartist.sum = function(previous, current) {\n return previous + (current ? current : 0);\n };\n\n /**\n * Multiply helper to be used in `Array.map` for multiplying each value of an array with a factor.\n *\n * @memberof Chartist.Core\n * @param {Number} factor\n * @returns {Function} Function that can be used in `Array.map` to multiply each value in an array\n */\n Chartist.mapMultiply = function(factor) {\n return function(num) {\n return num * factor;\n };\n };\n\n /**\n * Add helper to be used in `Array.map` for adding a addend to each value of an array.\n *\n * @memberof Chartist.Core\n * @param {Number} addend\n * @returns {Function} Function that can be used in `Array.map` to add a addend to each value in an array\n */\n Chartist.mapAdd = function(addend) {\n return function(num) {\n return num + addend;\n };\n };\n\n /**\n * Map for multi dimensional arrays where their nested arrays will be mapped in serial. The output array will have the length of the largest nested array. The callback function is called with variable arguments where each argument is the nested array value (or undefined if there are no more values).\n *\n * @memberof Chartist.Core\n * @param arr\n * @param cb\n * @return {Array}\n */\n Chartist.serialMap = function(arr, cb) {\n var result = [],\n length = Math.max.apply(null, arr.map(function(e) {\n return e.length;\n }));\n\n Chartist.times(length).forEach(function(e, index) {\n var args = arr.map(function(e) {\n return e[index];\n });\n\n result[index] = cb.apply(null, args);\n });\n\n return result;\n };\n\n /**\n * This helper function can be used to round values with certain precision level after decimal. This is used to prevent rounding errors near float point precision limit.\n *\n * @memberof Chartist.Core\n * @param {Number} value The value that should be rounded with precision\n * @param {Number} [digits] The number of digits after decimal used to do the rounding\n * @returns {number} Rounded value\n */\n Chartist.roundWithPrecision = function(value, digits) {\n var precision = Math.pow(10, digits || Chartist.precision);\n return Math.round(value * precision) / precision;\n };\n\n /**\n * Precision level used internally in Chartist for rounding. If you require more decimal places you can increase this number.\n *\n * @memberof Chartist.Core\n * @type {number}\n */\n Chartist.precision = 8;\n\n /**\n * A map with characters to escape for strings to be safely used as attribute values.\n *\n * @memberof Chartist.Core\n * @type {Object}\n */\n Chartist.escapingMap = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n '\\'': '''\n };\n\n /**\n * This function serializes arbitrary data to a string. In case of data that can't be easily converted to a string, this function will create a wrapper object and serialize the data using JSON.stringify. The outcoming string will always be escaped using Chartist.escapingMap.\n * If called with null or undefined the function will return immediately with null or undefined.\n *\n * @memberof Chartist.Core\n * @param {Number|String|Object} data\n * @return {String}\n */\n Chartist.serialize = function(data) {\n if(data === null || data === undefined) {\n return data;\n } else if(typeof data === 'number') {\n data = ''+data;\n } else if(typeof data === 'object') {\n data = JSON.stringify({data: data});\n }\n\n return Object.keys(Chartist.escapingMap).reduce(function(result, key) {\n return Chartist.replaceAll(result, key, Chartist.escapingMap[key]);\n }, data);\n };\n\n /**\n * This function de-serializes a string previously serialized with Chartist.serialize. The string will always be unescaped using Chartist.escapingMap before it's returned. Based on the input value the return type can be Number, String or Object. JSON.parse is used with try / catch to see if the unescaped string can be parsed into an Object and this Object will be returned on success.\n *\n * @memberof Chartist.Core\n * @param {String} data\n * @return {String|Number|Object}\n */\n Chartist.deserialize = function(data) {\n if(typeof data !== 'string') {\n return data;\n }\n\n data = Object.keys(Chartist.escapingMap).reduce(function(result, key) {\n return Chartist.replaceAll(result, Chartist.escapingMap[key], key);\n }, data);\n\n try {\n data = JSON.parse(data);\n data = data.data !== undefined ? data.data : data;\n } catch(e) {}\n\n return data;\n };\n\n /**\n * Create or reinitialize the SVG element for the chart\n *\n * @memberof Chartist.Core\n * @param {Node} container The containing DOM Node object that will be used to plant the SVG element\n * @param {String} width Set the width of the SVG element. Default is 100%\n * @param {String} height Set the height of the SVG element. Default is 100%\n * @param {String} className Specify a class to be added to the SVG element\n * @return {Object} The created/reinitialized SVG element\n */\n Chartist.createSvg = function (container, width, height, className) {\n var svg;\n\n width = width || '100%';\n height = height || '100%';\n\n // Check if there is a previous SVG element in the container that contains the Chartist XML namespace and remove it\n // Since the DOM API does not support namespaces we need to manually search the returned list http://www.w3.org/TR/selectors-api/\n Array.prototype.slice.call(container.querySelectorAll('svg')).filter(function filterChartistSvgObjects(svg) {\n return svg.getAttributeNS(Chartist.namespaces.xmlns, 'ct');\n }).forEach(function removePreviousElement(svg) {\n container.removeChild(svg);\n });\n\n // Create svg object with width and height or use 100% as default\n svg = new Chartist.Svg('svg').attr({\n width: width,\n height: height\n }).addClass(className);\n\n svg._node.style.width = width;\n svg._node.style.height = height;\n\n // Add the DOM node to our container\n container.appendChild(svg._node);\n\n return svg;\n };\n\n /**\n * Ensures that the data object passed as second argument to the charts is present and correctly initialized.\n *\n * @param {Object} data The data object that is passed as second argument to the charts\n * @return {Object} The normalized data object\n */\n Chartist.normalizeData = function(data, reverse, multi) {\n var labelCount;\n var output = {\n raw: data,\n normalized: {}\n };\n\n // Check if we should generate some labels based on existing series data\n output.normalized.series = Chartist.getDataArray({\n series: data.series || []\n }, reverse, multi);\n\n // If all elements of the normalized data array are arrays we're dealing with\n // multi series data and we need to find the largest series if they are un-even\n if (output.normalized.series.every(function(value) {\n return value instanceof Array;\n })) {\n // Getting the series with the the most elements\n labelCount = Math.max.apply(null, output.normalized.series.map(function(series) {\n return series.length;\n }));\n } else {\n // We're dealing with Pie data so we just take the normalized array length\n labelCount = output.normalized.series.length;\n }\n\n output.normalized.labels = (data.labels || []).slice();\n // Padding the labels to labelCount with empty strings\n Array.prototype.push.apply(\n output.normalized.labels,\n Chartist.times(Math.max(0, labelCount - output.normalized.labels.length)).map(function() {\n return '';\n })\n );\n\n if(reverse) {\n Chartist.reverseData(output.normalized);\n }\n\n return output;\n };\n\n /**\n * This function safely checks if an objects has an owned property.\n *\n * @param {Object} object The object where to check for a property\n * @param {string} property The property name\n * @returns {boolean} Returns true if the object owns the specified property\n */\n Chartist.safeHasProperty = function(object, property) {\n return object !== null &&\n typeof object === 'object' &&\n object.hasOwnProperty(property);\n };\n\n /**\n * Checks if a value is considered a hole in the data series.\n *\n * @param {*} value\n * @returns {boolean} True if the value is considered a data hole\n */\n Chartist.isDataHoleValue = function(value) {\n return value === null ||\n value === undefined ||\n (typeof value === 'number' && isNaN(value));\n };\n\n /**\n * Reverses the series, labels and series data arrays.\n *\n * @memberof Chartist.Core\n * @param data\n */\n Chartist.reverseData = function(data) {\n data.labels.reverse();\n data.series.reverse();\n for (var i = 0; i < data.series.length; i++) {\n if(typeof(data.series[i]) === 'object' && data.series[i].data !== undefined) {\n data.series[i].data.reverse();\n } else if(data.series[i] instanceof Array) {\n data.series[i].reverse();\n }\n }\n };\n\n /**\n * Convert data series into plain array\n *\n * @memberof Chartist.Core\n * @param {Object} data The series object that contains the data to be visualized in the chart\n * @param {Boolean} [reverse] If true the whole data is reversed by the getDataArray call. This will modify the data object passed as first parameter. The labels as well as the series order is reversed. The whole series data arrays are reversed too.\n * @param {Boolean} [multi] Create a multi dimensional array from a series data array where a value object with `x` and `y` values will be created.\n * @return {Array} A plain array that contains the data to be visualized in the chart\n */\n Chartist.getDataArray = function(data, reverse, multi) {\n // Recursively walks through nested arrays and convert string values to numbers and objects with value properties\n // to values. Check the tests in data core -> data normalization for a detailed specification of expected values\n function recursiveConvert(value) {\n if(Chartist.safeHasProperty(value, 'value')) {\n // We are dealing with value object notation so we need to recurse on value property\n return recursiveConvert(value.value);\n } else if(Chartist.safeHasProperty(value, 'data')) {\n // We are dealing with series object notation so we need to recurse on data property\n return recursiveConvert(value.data);\n } else if(value instanceof Array) {\n // Data is of type array so we need to recurse on the series\n return value.map(recursiveConvert);\n } else if(Chartist.isDataHoleValue(value)) {\n // We're dealing with a hole in the data and therefore need to return undefined\n // We're also returning undefined for multi value output\n return undefined;\n } else {\n // We need to prepare multi value output (x and y data)\n if(multi) {\n var multiValue = {};\n\n // Single series value arrays are assumed to specify the Y-Axis value\n // For example: [1, 2] => [{x: undefined, y: 1}, {x: undefined, y: 2}]\n // If multi is a string then it's assumed that it specified which dimension should be filled as default\n if(typeof multi === 'string') {\n multiValue[multi] = Chartist.getNumberOrUndefined(value);\n } else {\n multiValue.y = Chartist.getNumberOrUndefined(value);\n }\n\n multiValue.x = value.hasOwnProperty('x') ? Chartist.getNumberOrUndefined(value.x) : multiValue.x;\n multiValue.y = value.hasOwnProperty('y') ? Chartist.getNumberOrUndefined(value.y) : multiValue.y;\n\n return multiValue;\n\n } else {\n // We can return simple data\n return Chartist.getNumberOrUndefined(value);\n }\n }\n }\n\n return data.series.map(recursiveConvert);\n };\n\n /**\n * Converts a number into a padding object.\n *\n * @memberof Chartist.Core\n * @param {Object|Number} padding\n * @param {Number} [fallback] This value is used to fill missing values if a incomplete padding object was passed\n * @returns {Object} Returns a padding object containing top, right, bottom, left properties filled with the padding number passed in as argument. If the argument is something else than a number (presumably already a correct padding object) then this argument is directly returned.\n */\n Chartist.normalizePadding = function(padding, fallback) {\n fallback = fallback || 0;\n\n return typeof padding === 'number' ? {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n } : {\n top: typeof padding.top === 'number' ? padding.top : fallback,\n right: typeof padding.right === 'number' ? padding.right : fallback,\n bottom: typeof padding.bottom === 'number' ? padding.bottom : fallback,\n left: typeof padding.left === 'number' ? padding.left : fallback\n };\n };\n\n Chartist.getMetaData = function(series, index) {\n var value = series.data ? series.data[index] : series[index];\n return value ? value.meta : undefined;\n };\n\n /**\n * Calculate the order of magnitude for the chart scale\n *\n * @memberof Chartist.Core\n * @param {Number} value The value Range of the chart\n * @return {Number} The order of magnitude\n */\n Chartist.orderOfMagnitude = function (value) {\n return Math.floor(Math.log(Math.abs(value)) / Math.LN10);\n };\n\n /**\n * Project a data length into screen coordinates (pixels)\n *\n * @memberof Chartist.Core\n * @param {Object} axisLength The svg element for the chart\n * @param {Number} length Single data value from a series array\n * @param {Object} bounds All the values to set the bounds of the chart\n * @return {Number} The projected data length in pixels\n */\n Chartist.projectLength = function (axisLength, length, bounds) {\n return length / bounds.range * axisLength;\n };\n\n /**\n * Get the height of the area in the chart for the data series\n *\n * @memberof Chartist.Core\n * @param {Object} svg The svg element for the chart\n * @param {Object} options The Object that contains all the optional values for the chart\n * @return {Number} The height of the area in the chart for the data series\n */\n Chartist.getAvailableHeight = function (svg, options) {\n return Math.max((Chartist.quantity(options.height).value || svg.height()) - (options.chartPadding.top + options.chartPadding.bottom) - options.axisX.offset, 0);\n };\n\n /**\n * Get highest and lowest value of data array. This Array contains the data that will be visualized in the chart.\n *\n * @memberof Chartist.Core\n * @param {Array} data The array that contains the data to be visualized in the chart\n * @param {Object} options The Object that contains the chart options\n * @param {String} dimension Axis dimension 'x' or 'y' used to access the correct value and high / low configuration\n * @return {Object} An object that contains the highest and lowest value that will be visualized on the chart.\n */\n Chartist.getHighLow = function (data, options, dimension) {\n // TODO: Remove workaround for deprecated global high / low config. Axis high / low configuration is preferred\n options = Chartist.extend({}, options, dimension ? options['axis' + dimension.toUpperCase()] : {});\n\n var highLow = {\n high: options.high === undefined ? -Number.MAX_VALUE : +options.high,\n low: options.low === undefined ? Number.MAX_VALUE : +options.low\n };\n var findHigh = options.high === undefined;\n var findLow = options.low === undefined;\n\n // Function to recursively walk through arrays and find highest and lowest number\n function recursiveHighLow(data) {\n if(data === undefined) {\n return undefined;\n } else if(data instanceof Array) {\n for (var i = 0; i < data.length; i++) {\n recursiveHighLow(data[i]);\n }\n } else {\n var value = dimension ? +data[dimension] : +data;\n\n if (findHigh && value > highLow.high) {\n highLow.high = value;\n }\n\n if (findLow && value < highLow.low) {\n highLow.low = value;\n }\n }\n }\n\n // Start to find highest and lowest number recursively\n if(findHigh || findLow) {\n recursiveHighLow(data);\n }\n\n // Overrides of high / low based on reference value, it will make sure that the invisible reference value is\n // used to generate the chart. This is useful when the chart always needs to contain the position of the\n // invisible reference value in the view i.e. for bipolar scales.\n if (options.referenceValue || options.referenceValue === 0) {\n highLow.high = Math.max(options.referenceValue, highLow.high);\n highLow.low = Math.min(options.referenceValue, highLow.low);\n }\n\n // If high and low are the same because of misconfiguration or flat data (only the same value) we need\n // to set the high or low to 0 depending on the polarity\n if (highLow.high <= highLow.low) {\n // If both values are 0 we set high to 1\n if (highLow.low === 0) {\n highLow.high = 1;\n } else if (highLow.low < 0) {\n // If we have the same negative value for the bounds we set bounds.high to 0\n highLow.high = 0;\n } else if (highLow.high > 0) {\n // If we have the same positive value for the bounds we set bounds.low to 0\n highLow.low = 0;\n } else {\n // If data array was empty, values are Number.MAX_VALUE and -Number.MAX_VALUE. Set bounds to prevent errors\n highLow.high = 1;\n highLow.low = 0;\n }\n }\n\n return highLow;\n };\n\n /**\n * Checks if a value can be safely coerced to a number. This includes all values except null which result in finite numbers when coerced. This excludes NaN, since it's not finite.\n *\n * @memberof Chartist.Core\n * @param value\n * @returns {Boolean}\n */\n Chartist.isNumeric = function(value) {\n return value === null ? false : isFinite(value);\n };\n\n /**\n * Returns true on all falsey values except the numeric value 0.\n *\n * @memberof Chartist.Core\n * @param value\n * @returns {boolean}\n */\n Chartist.isFalseyButZero = function(value) {\n return !value && value !== 0;\n };\n\n /**\n * Returns a number if the passed parameter is a valid number or the function will return undefined. On all other values than a valid number, this function will return undefined.\n *\n * @memberof Chartist.Core\n * @param value\n * @returns {*}\n */\n Chartist.getNumberOrUndefined = function(value) {\n return Chartist.isNumeric(value) ? +value : undefined;\n };\n\n /**\n * Checks if provided value object is multi value (contains x or y properties)\n *\n * @memberof Chartist.Core\n * @param value\n */\n Chartist.isMultiValue = function(value) {\n return typeof value === 'object' && ('x' in value || 'y' in value);\n };\n\n /**\n * Gets a value from a dimension `value.x` or `value.y` while returning value directly if it's a valid numeric value. If the value is not numeric and it's falsey this function will return `defaultValue`.\n *\n * @memberof Chartist.Core\n * @param value\n * @param dimension\n * @param defaultValue\n * @returns {*}\n */\n Chartist.getMultiValue = function(value, dimension) {\n if(Chartist.isMultiValue(value)) {\n return Chartist.getNumberOrUndefined(value[dimension || 'y']);\n } else {\n return Chartist.getNumberOrUndefined(value);\n }\n };\n\n /**\n * Pollard Rho Algorithm to find smallest factor of an integer value. There are more efficient algorithms for factorization, but this one is quite efficient and not so complex.\n *\n * @memberof Chartist.Core\n * @param {Number} num An integer number where the smallest factor should be searched for\n * @returns {Number} The smallest integer factor of the parameter num.\n */\n Chartist.rho = function(num) {\n if(num === 1) {\n return num;\n }\n\n function gcd(p, q) {\n if (p % q === 0) {\n return q;\n } else {\n return gcd(q, p % q);\n }\n }\n\n function f(x) {\n return x * x + 1;\n }\n\n var x1 = 2, x2 = 2, divisor;\n if (num % 2 === 0) {\n return 2;\n }\n\n do {\n x1 = f(x1) % num;\n x2 = f(f(x2)) % num;\n divisor = gcd(Math.abs(x1 - x2), num);\n } while (divisor === 1);\n\n return divisor;\n };\n\n /**\n * Calculate and retrieve all the bounds for the chart and return them in one array\n *\n * @memberof Chartist.Core\n * @param {Number} axisLength The length of the Axis used for\n * @param {Object} highLow An object containing a high and low property indicating the value range of the chart.\n * @param {Number} scaleMinSpace The minimum projected length a step should result in\n * @param {Boolean} onlyInteger\n * @return {Object} All the values to set the bounds of the chart\n */\n Chartist.getBounds = function (axisLength, highLow, scaleMinSpace, onlyInteger) {\n var i,\n optimizationCounter = 0,\n newMin,\n newMax,\n bounds = {\n high: highLow.high,\n low: highLow.low\n };\n\n bounds.valueRange = bounds.high - bounds.low;\n bounds.oom = Chartist.orderOfMagnitude(bounds.valueRange);\n bounds.step = Math.pow(10, bounds.oom);\n bounds.min = Math.floor(bounds.low / bounds.step) * bounds.step;\n bounds.max = Math.ceil(bounds.high / bounds.step) * bounds.step;\n bounds.range = bounds.max - bounds.min;\n bounds.numberOfSteps = Math.round(bounds.range / bounds.step);\n\n // Optimize scale step by checking if subdivision is possible based on horizontalGridMinSpace\n // If we are already below the scaleMinSpace value we will scale up\n var length = Chartist.projectLength(axisLength, bounds.step, bounds);\n var scaleUp = length < scaleMinSpace;\n var smallestFactor = onlyInteger ? Chartist.rho(bounds.range) : 0;\n\n // First check if we should only use integer steps and if step 1 is still larger than scaleMinSpace so we can use 1\n if(onlyInteger && Chartist.projectLength(axisLength, 1, bounds) >= scaleMinSpace) {\n bounds.step = 1;\n } else if(onlyInteger && smallestFactor < bounds.step && Chartist.projectLength(axisLength, smallestFactor, bounds) >= scaleMinSpace) {\n // If step 1 was too small, we can try the smallest factor of range\n // If the smallest factor is smaller than the current bounds.step and the projected length of smallest factor\n // is larger than the scaleMinSpace we should go for it.\n bounds.step = smallestFactor;\n } else {\n // Trying to divide or multiply by 2 and find the best step value\n while (true) {\n if (scaleUp && Chartist.projectLength(axisLength, bounds.step, bounds) <= scaleMinSpace) {\n bounds.step *= 2;\n } else if (!scaleUp && Chartist.projectLength(axisLength, bounds.step / 2, bounds) >= scaleMinSpace) {\n bounds.step /= 2;\n if(onlyInteger && bounds.step % 1 !== 0) {\n bounds.step *= 2;\n break;\n }\n } else {\n break;\n }\n\n if(optimizationCounter++ > 1000) {\n throw new Error('Exceeded maximum number of iterations while optimizing scale step!');\n }\n }\n }\n\n var EPSILON = 2.221E-16;\n bounds.step = Math.max(bounds.step, EPSILON);\n function safeIncrement(value, increment) {\n // If increment is too small use *= (1+EPSILON) as a simple nextafter\n if (value === (value += increment)) {\n \tvalue *= (1 + (increment > 0 ? EPSILON : -EPSILON));\n }\n return value;\n }\n\n // Narrow min and max based on new step\n newMin = bounds.min;\n newMax = bounds.max;\n while (newMin + bounds.step <= bounds.low) {\n \tnewMin = safeIncrement(newMin, bounds.step);\n }\n while (newMax - bounds.step >= bounds.high) {\n \tnewMax = safeIncrement(newMax, -bounds.step);\n }\n bounds.min = newMin;\n bounds.max = newMax;\n bounds.range = bounds.max - bounds.min;\n\n var values = [];\n for (i = bounds.min; i <= bounds.max; i = safeIncrement(i, bounds.step)) {\n var value = Chartist.roundWithPrecision(i);\n if (value !== values[values.length - 1]) {\n values.push(value);\n }\n }\n bounds.values = values;\n return bounds;\n };\n\n /**\n * Calculate cartesian coordinates of polar coordinates\n *\n * @memberof Chartist.Core\n * @param {Number} centerX X-axis coordinates of center point of circle segment\n * @param {Number} centerY X-axis coordinates of center point of circle segment\n * @param {Number} radius Radius of circle segment\n * @param {Number} angleInDegrees Angle of circle segment in degrees\n * @return {{x:Number, y:Number}} Coordinates of point on circumference\n */\n Chartist.polarToCartesian = function (centerX, centerY, radius, angleInDegrees) {\n var angleInRadians = (angleInDegrees - 90) * Math.PI / 180.0;\n\n return {\n x: centerX + (radius * Math.cos(angleInRadians)),\n y: centerY + (radius * Math.sin(angleInRadians))\n };\n };\n\n /**\n * Initialize chart drawing rectangle (area where chart is drawn) x1,y1 = bottom left / x2,y2 = top right\n *\n * @memberof Chartist.Core\n * @param {Object} svg The svg element for the chart\n * @param {Object} options The Object that contains all the optional values for the chart\n * @param {Number} [fallbackPadding] The fallback padding if partial padding objects are used\n * @return {Object} The chart rectangles coordinates inside the svg element plus the rectangles measurements\n */\n Chartist.createChartRect = function (svg, options, fallbackPadding) {\n var hasAxis = !!(options.axisX || options.axisY);\n var yAxisOffset = hasAxis ? options.axisY.offset : 0;\n var xAxisOffset = hasAxis ? options.axisX.offset : 0;\n // If width or height results in invalid value (including 0) we fallback to the unitless settings or even 0\n var width = svg.width() || Chartist.quantity(options.width).value || 0;\n var height = svg.height() || Chartist.quantity(options.height).value || 0;\n var normalizedPadding = Chartist.normalizePadding(options.chartPadding, fallbackPadding);\n\n // If settings were to small to cope with offset (legacy) and padding, we'll adjust\n width = Math.max(width, yAxisOffset + normalizedPadding.left + normalizedPadding.right);\n height = Math.max(height, xAxisOffset + normalizedPadding.top + normalizedPadding.bottom);\n\n var chartRect = {\n padding: normalizedPadding,\n width: function () {\n return this.x2 - this.x1;\n },\n height: function () {\n return this.y1 - this.y2;\n }\n };\n\n if(hasAxis) {\n if (options.axisX.position === 'start') {\n chartRect.y2 = normalizedPadding.top + xAxisOffset;\n chartRect.y1 = Math.max(height - normalizedPadding.bottom, chartRect.y2 + 1);\n } else {\n chartRect.y2 = normalizedPadding.top;\n chartRect.y1 = Math.max(height - normalizedPadding.bottom - xAxisOffset, chartRect.y2 + 1);\n }\n\n if (options.axisY.position === 'start') {\n chartRect.x1 = normalizedPadding.left + yAxisOffset;\n chartRect.x2 = Math.max(width - normalizedPadding.right, chartRect.x1 + 1);\n } else {\n chartRect.x1 = normalizedPadding.left;\n chartRect.x2 = Math.max(width - normalizedPadding.right - yAxisOffset, chartRect.x1 + 1);\n }\n } else {\n chartRect.x1 = normalizedPadding.left;\n chartRect.x2 = Math.max(width - normalizedPadding.right, chartRect.x1 + 1);\n chartRect.y2 = normalizedPadding.top;\n chartRect.y1 = Math.max(height - normalizedPadding.bottom, chartRect.y2 + 1);\n }\n\n return chartRect;\n };\n\n /**\n * Creates a grid line based on a projected value.\n *\n * @memberof Chartist.Core\n * @param position\n * @param index\n * @param axis\n * @param offset\n * @param length\n * @param group\n * @param classes\n * @param eventEmitter\n */\n Chartist.createGrid = function(position, index, axis, offset, length, group, classes, eventEmitter) {\n var positionalData = {};\n positionalData[axis.units.pos + '1'] = position;\n positionalData[axis.units.pos + '2'] = position;\n positionalData[axis.counterUnits.pos + '1'] = offset;\n positionalData[axis.counterUnits.pos + '2'] = offset + length;\n\n var gridElement = group.elem('line', positionalData, classes.join(' '));\n\n // Event for grid draw\n eventEmitter.emit('draw',\n Chartist.extend({\n type: 'grid',\n axis: axis,\n index: index,\n group: group,\n element: gridElement\n }, positionalData)\n );\n };\n\n /**\n * Creates a grid background rect and emits the draw event.\n *\n * @memberof Chartist.Core\n * @param gridGroup\n * @param chartRect\n * @param className\n * @param eventEmitter\n */\n Chartist.createGridBackground = function (gridGroup, chartRect, className, eventEmitter) {\n var gridBackground = gridGroup.elem('rect', {\n x: chartRect.x1,\n y: chartRect.y2,\n width: chartRect.width(),\n height: chartRect.height(),\n }, className, true);\n\n // Event for grid background draw\n eventEmitter.emit('draw', {\n type: 'gridBackground',\n group: gridGroup,\n element: gridBackground\n });\n };\n\n /**\n * Creates a label based on a projected value and an axis.\n *\n * @memberof Chartist.Core\n * @param position\n * @param length\n * @param index\n * @param labels\n * @param axis\n * @param axisOffset\n * @param labelOffset\n * @param group\n * @param classes\n * @param useForeignObject\n * @param eventEmitter\n */\n Chartist.createLabel = function(position, length, index, labels, axis, axisOffset, labelOffset, group, classes, useForeignObject, eventEmitter) {\n var labelElement;\n var positionalData = {};\n\n positionalData[axis.units.pos] = position + labelOffset[axis.units.pos];\n positionalData[axis.counterUnits.pos] = labelOffset[axis.counterUnits.pos];\n positionalData[axis.units.len] = length;\n positionalData[axis.counterUnits.len] = Math.max(0, axisOffset - 10);\n\n if(useForeignObject) {\n // We need to set width and height explicitly to px as span will not expand with width and height being\n // 100% in all browsers\n var content = document.createElement('span');\n content.className = classes.join(' ');\n content.setAttribute('xmlns', Chartist.namespaces.xhtml);\n content.innerText = labels[index];\n content.style[axis.units.len] = Math.round(positionalData[axis.units.len]) + 'px';\n content.style[axis.counterUnits.len] = Math.round(positionalData[axis.counterUnits.len]) + 'px';\n\n labelElement = group.foreignObject(content, Chartist.extend({\n style: 'overflow: visible;'\n }, positionalData));\n } else {\n labelElement = group.elem('text', positionalData, classes.join(' ')).text(labels[index]);\n }\n\n eventEmitter.emit('draw', Chartist.extend({\n type: 'label',\n axis: axis,\n index: index,\n group: group,\n element: labelElement,\n text: labels[index]\n }, positionalData));\n };\n\n /**\n * Helper to read series specific options from options object. It automatically falls back to the global option if\n * there is no option in the series options.\n *\n * @param {Object} series Series object\n * @param {Object} options Chartist options object\n * @param {string} key The options key that should be used to obtain the options\n * @returns {*}\n */\n Chartist.getSeriesOption = function(series, options, key) {\n if(series.name && options.series && options.series[series.name]) {\n var seriesOptions = options.series[series.name];\n return seriesOptions.hasOwnProperty(key) ? seriesOptions[key] : options[key];\n } else {\n return options[key];\n }\n };\n\n /**\n * Provides options handling functionality with callback for options changes triggered by responsive options and media query matches\n *\n * @memberof Chartist.Core\n * @param {Object} options Options set by user\n * @param {Array} responsiveOptions Optional functions to add responsive behavior to chart\n * @param {Object} eventEmitter The event emitter that will be used to emit the options changed events\n * @return {Object} The consolidated options object from the defaults, base and matching responsive options\n */\n Chartist.optionsProvider = function (options, responsiveOptions, eventEmitter) {\n var baseOptions = Chartist.extend({}, options),\n currentOptions,\n mediaQueryListeners = [],\n i;\n\n function updateCurrentOptions(mediaEvent) {\n var previousOptions = currentOptions;\n currentOptions = Chartist.extend({}, baseOptions);\n\n if (responsiveOptions) {\n for (i = 0; i < responsiveOptions.length; i++) {\n var mql = window.matchMedia(responsiveOptions[i][0]);\n if (mql.matches) {\n currentOptions = Chartist.extend(currentOptions, responsiveOptions[i][1]);\n }\n }\n }\n\n if(eventEmitter && mediaEvent) {\n eventEmitter.emit('optionsChanged', {\n previousOptions: previousOptions,\n currentOptions: currentOptions\n });\n }\n }\n\n function removeMediaQueryListeners() {\n mediaQueryListeners.forEach(function(mql) {\n mql.removeListener(updateCurrentOptions);\n });\n }\n\n if (!window.matchMedia) {\n throw 'window.matchMedia not found! Make sure you\\'re using a polyfill.';\n } else if (responsiveOptions) {\n\n for (i = 0; i < responsiveOptions.length; i++) {\n var mql = window.matchMedia(responsiveOptions[i][0]);\n mql.addListener(updateCurrentOptions);\n mediaQueryListeners.push(mql);\n }\n }\n // Execute initially without an event argument so we get the correct options\n updateCurrentOptions();\n\n return {\n removeMediaQueryListeners: removeMediaQueryListeners,\n getCurrentOptions: function getCurrentOptions() {\n return Chartist.extend({}, currentOptions);\n }\n };\n };\n\n\n /**\n * Splits a list of coordinates and associated values into segments. Each returned segment contains a pathCoordinates\n * valueData property describing the segment.\n *\n * With the default options, segments consist of contiguous sets of points that do not have an undefined value. Any\n * points with undefined values are discarded.\n *\n * **Options**\n * The following options are used to determine how segments are formed\n * ```javascript\n * var options = {\n * // If fillHoles is true, undefined values are simply discarded without creating a new segment. Assuming other options are default, this returns single segment.\n * fillHoles: false,\n * // If increasingX is true, the coordinates in all segments have strictly increasing x-values.\n * increasingX: false\n * };\n * ```\n *\n * @memberof Chartist.Core\n * @param {Array} pathCoordinates List of point coordinates to be split in the form [x1, y1, x2, y2 ... xn, yn]\n * @param {Array} values List of associated point values in the form [v1, v2 .. vn]\n * @param {Object} options Options set by user\n * @return {Array} List of segments, each containing a pathCoordinates and valueData property.\n */\n Chartist.splitIntoSegments = function(pathCoordinates, valueData, options) {\n var defaultOptions = {\n increasingX: false,\n fillHoles: false\n };\n\n options = Chartist.extend({}, defaultOptions, options);\n\n var segments = [];\n var hole = true;\n\n for(var i = 0; i < pathCoordinates.length; i += 2) {\n // If this value is a \"hole\" we set the hole flag\n if(Chartist.getMultiValue(valueData[i / 2].value) === undefined) {\n // if(valueData[i / 2].value === undefined) {\n if(!options.fillHoles) {\n hole = true;\n }\n } else {\n if(options.increasingX && i >= 2 && pathCoordinates[i] <= pathCoordinates[i-2]) {\n // X is not increasing, so we need to make sure we start a new segment\n hole = true;\n }\n\n\n // If it's a valid value we need to check if we're coming out of a hole and create a new empty segment\n if(hole) {\n segments.push({\n pathCoordinates: [],\n valueData: []\n });\n // As we have a valid value now, we are not in a \"hole\" anymore\n hole = false;\n }\n\n // Add to the segment pathCoordinates and valueData\n segments[segments.length - 1].pathCoordinates.push(pathCoordinates[i], pathCoordinates[i + 1]);\n segments[segments.length - 1].valueData.push(valueData[i / 2]);\n }\n }\n\n return segments;\n };\n}(this || global, Chartist));\n;/**\n * Chartist path interpolation functions.\n *\n * @module Chartist.Interpolation\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n Chartist.Interpolation = {};\n\n /**\n * This interpolation function does not smooth the path and the result is only containing lines and no curves.\n *\n * @example\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [[1, 2, 8, 1, 7]]\n * }, {\n * lineSmooth: Chartist.Interpolation.none({\n * fillHoles: false\n * })\n * });\n *\n *\n * @memberof Chartist.Interpolation\n * @return {Function}\n */\n Chartist.Interpolation.none = function(options) {\n var defaultOptions = {\n fillHoles: false\n };\n options = Chartist.extend({}, defaultOptions, options);\n return function none(pathCoordinates, valueData) {\n var path = new Chartist.Svg.Path();\n var hole = true;\n\n for(var i = 0; i < pathCoordinates.length; i += 2) {\n var currX = pathCoordinates[i];\n var currY = pathCoordinates[i + 1];\n var currData = valueData[i / 2];\n\n if(Chartist.getMultiValue(currData.value) !== undefined) {\n\n if(hole) {\n path.move(currX, currY, false, currData);\n } else {\n path.line(currX, currY, false, currData);\n }\n\n hole = false;\n } else if(!options.fillHoles) {\n hole = true;\n }\n }\n\n return path;\n };\n };\n\n /**\n * Simple smoothing creates horizontal handles that are positioned with a fraction of the length between two data points. You can use the divisor option to specify the amount of smoothing.\n *\n * Simple smoothing can be used instead of `Chartist.Smoothing.cardinal` if you'd like to get rid of the artifacts it produces sometimes. Simple smoothing produces less flowing lines but is accurate by hitting the points and it also doesn't swing below or above the given data point.\n *\n * All smoothing functions within Chartist are factory functions that accept an options parameter. The simple interpolation function accepts one configuration parameter `divisor`, between 1 and āˆž, which controls the smoothing characteristics.\n *\n * @example\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [[1, 2, 8, 1, 7]]\n * }, {\n * lineSmooth: Chartist.Interpolation.simple({\n * divisor: 2,\n * fillHoles: false\n * })\n * });\n *\n *\n * @memberof Chartist.Interpolation\n * @param {Object} options The options of the simple interpolation factory function.\n * @return {Function}\n */\n Chartist.Interpolation.simple = function(options) {\n var defaultOptions = {\n divisor: 2,\n fillHoles: false\n };\n options = Chartist.extend({}, defaultOptions, options);\n\n var d = 1 / Math.max(1, options.divisor);\n\n return function simple(pathCoordinates, valueData) {\n var path = new Chartist.Svg.Path();\n var prevX, prevY, prevData;\n\n for(var i = 0; i < pathCoordinates.length; i += 2) {\n var currX = pathCoordinates[i];\n var currY = pathCoordinates[i + 1];\n var length = (currX - prevX) * d;\n var currData = valueData[i / 2];\n\n if(currData.value !== undefined) {\n\n if(prevData === undefined) {\n path.move(currX, currY, false, currData);\n } else {\n path.curve(\n prevX + length,\n prevY,\n currX - length,\n currY,\n currX,\n currY,\n false,\n currData\n );\n }\n\n prevX = currX;\n prevY = currY;\n prevData = currData;\n } else if(!options.fillHoles) {\n prevX = currX = prevData = undefined;\n }\n }\n\n return path;\n };\n };\n\n /**\n * Cardinal / Catmull-Rome spline interpolation is the default smoothing function in Chartist. It produces nice results where the splines will always meet the points. It produces some artifacts though when data values are increased or decreased rapidly. The line may not follow a very accurate path and if the line should be accurate this smoothing function does not produce the best results.\n *\n * Cardinal splines can only be created if there are more than two data points. If this is not the case this smoothing will fallback to `Chartist.Smoothing.none`.\n *\n * All smoothing functions within Chartist are factory functions that accept an options parameter. The cardinal interpolation function accepts one configuration parameter `tension`, between 0 and 1, which controls the smoothing intensity.\n *\n * @example\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [[1, 2, 8, 1, 7]]\n * }, {\n * lineSmooth: Chartist.Interpolation.cardinal({\n * tension: 1,\n * fillHoles: false\n * })\n * });\n *\n * @memberof Chartist.Interpolation\n * @param {Object} options The options of the cardinal factory function.\n * @return {Function}\n */\n Chartist.Interpolation.cardinal = function(options) {\n var defaultOptions = {\n tension: 1,\n fillHoles: false\n };\n\n options = Chartist.extend({}, defaultOptions, options);\n\n var t = Math.min(1, Math.max(0, options.tension)),\n c = 1 - t;\n\n return function cardinal(pathCoordinates, valueData) {\n // First we try to split the coordinates into segments\n // This is necessary to treat \"holes\" in line charts\n var segments = Chartist.splitIntoSegments(pathCoordinates, valueData, {\n fillHoles: options.fillHoles\n });\n\n if(!segments.length) {\n // If there were no segments return 'Chartist.Interpolation.none'\n return Chartist.Interpolation.none()([]);\n } else if(segments.length > 1) {\n // If the split resulted in more that one segment we need to interpolate each segment individually and join them\n // afterwards together into a single path.\n var paths = [];\n // For each segment we will recurse the cardinal function\n segments.forEach(function(segment) {\n paths.push(cardinal(segment.pathCoordinates, segment.valueData));\n });\n // Join the segment path data into a single path and return\n return Chartist.Svg.Path.join(paths);\n } else {\n // If there was only one segment we can proceed regularly by using pathCoordinates and valueData from the first\n // segment\n pathCoordinates = segments[0].pathCoordinates;\n valueData = segments[0].valueData;\n\n // If less than two points we need to fallback to no smoothing\n if(pathCoordinates.length <= 4) {\n return Chartist.Interpolation.none()(pathCoordinates, valueData);\n }\n\n var path = new Chartist.Svg.Path().move(pathCoordinates[0], pathCoordinates[1], false, valueData[0]),\n z;\n\n for (var i = 0, iLen = pathCoordinates.length; iLen - 2 * !z > i; i += 2) {\n var p = [\n {x: +pathCoordinates[i - 2], y: +pathCoordinates[i - 1]},\n {x: +pathCoordinates[i], y: +pathCoordinates[i + 1]},\n {x: +pathCoordinates[i + 2], y: +pathCoordinates[i + 3]},\n {x: +pathCoordinates[i + 4], y: +pathCoordinates[i + 5]}\n ];\n if (z) {\n if (!i) {\n p[0] = {x: +pathCoordinates[iLen - 2], y: +pathCoordinates[iLen - 1]};\n } else if (iLen - 4 === i) {\n p[3] = {x: +pathCoordinates[0], y: +pathCoordinates[1]};\n } else if (iLen - 2 === i) {\n p[2] = {x: +pathCoordinates[0], y: +pathCoordinates[1]};\n p[3] = {x: +pathCoordinates[2], y: +pathCoordinates[3]};\n }\n } else {\n if (iLen - 4 === i) {\n p[3] = p[2];\n } else if (!i) {\n p[0] = {x: +pathCoordinates[i], y: +pathCoordinates[i + 1]};\n }\n }\n\n path.curve(\n (t * (-p[0].x + 6 * p[1].x + p[2].x) / 6) + (c * p[2].x),\n (t * (-p[0].y + 6 * p[1].y + p[2].y) / 6) + (c * p[2].y),\n (t * (p[1].x + 6 * p[2].x - p[3].x) / 6) + (c * p[2].x),\n (t * (p[1].y + 6 * p[2].y - p[3].y) / 6) + (c * p[2].y),\n p[2].x,\n p[2].y,\n false,\n valueData[(i + 2) / 2]\n );\n }\n\n return path;\n }\n };\n };\n\n /**\n * Monotone Cubic spline interpolation produces a smooth curve which preserves monotonicity. Unlike cardinal splines, the curve will not extend beyond the range of y-values of the original data points.\n *\n * Monotone Cubic splines can only be created if there are more than two data points. If this is not the case this smoothing will fallback to `Chartist.Smoothing.none`.\n *\n * The x-values of subsequent points must be increasing to fit a Monotone Cubic spline. If this condition is not met for a pair of adjacent points, then there will be a break in the curve between those data points.\n *\n * All smoothing functions within Chartist are factory functions that accept an options parameter.\n *\n * @example\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [[1, 2, 8, 1, 7]]\n * }, {\n * lineSmooth: Chartist.Interpolation.monotoneCubic({\n * fillHoles: false\n * })\n * });\n *\n * @memberof Chartist.Interpolation\n * @param {Object} options The options of the monotoneCubic factory function.\n * @return {Function}\n */\n Chartist.Interpolation.monotoneCubic = function(options) {\n var defaultOptions = {\n fillHoles: false\n };\n\n options = Chartist.extend({}, defaultOptions, options);\n\n return function monotoneCubic(pathCoordinates, valueData) {\n // First we try to split the coordinates into segments\n // This is necessary to treat \"holes\" in line charts\n var segments = Chartist.splitIntoSegments(pathCoordinates, valueData, {\n fillHoles: options.fillHoles,\n increasingX: true\n });\n\n if(!segments.length) {\n // If there were no segments return 'Chartist.Interpolation.none'\n return Chartist.Interpolation.none()([]);\n } else if(segments.length > 1) {\n // If the split resulted in more that one segment we need to interpolate each segment individually and join them\n // afterwards together into a single path.\n var paths = [];\n // For each segment we will recurse the monotoneCubic fn function\n segments.forEach(function(segment) {\n paths.push(monotoneCubic(segment.pathCoordinates, segment.valueData));\n });\n // Join the segment path data into a single path and return\n return Chartist.Svg.Path.join(paths);\n } else {\n // If there was only one segment we can proceed regularly by using pathCoordinates and valueData from the first\n // segment\n pathCoordinates = segments[0].pathCoordinates;\n valueData = segments[0].valueData;\n\n // If less than three points we need to fallback to no smoothing\n if(pathCoordinates.length <= 4) {\n return Chartist.Interpolation.none()(pathCoordinates, valueData);\n }\n\n var xs = [],\n ys = [],\n i,\n n = pathCoordinates.length / 2,\n ms = [],\n ds = [], dys = [], dxs = [],\n path;\n\n // Populate x and y coordinates into separate arrays, for readability\n\n for(i = 0; i < n; i++) {\n xs[i] = pathCoordinates[i * 2];\n ys[i] = pathCoordinates[i * 2 + 1];\n }\n\n // Calculate deltas and derivative\n\n for(i = 0; i < n - 1; i++) {\n dys[i] = ys[i + 1] - ys[i];\n dxs[i] = xs[i + 1] - xs[i];\n ds[i] = dys[i] / dxs[i];\n }\n\n // Determine desired slope (m) at each point using Fritsch-Carlson method\n // See: http://math.stackexchange.com/questions/45218/implementation-of-monotone-cubic-interpolation\n\n ms[0] = ds[0];\n ms[n - 1] = ds[n - 2];\n\n for(i = 1; i < n - 1; i++) {\n if(ds[i] === 0 || ds[i - 1] === 0 || (ds[i - 1] > 0) !== (ds[i] > 0)) {\n ms[i] = 0;\n } else {\n ms[i] = 3 * (dxs[i - 1] + dxs[i]) / (\n (2 * dxs[i] + dxs[i - 1]) / ds[i - 1] +\n (dxs[i] + 2 * dxs[i - 1]) / ds[i]);\n\n if(!isFinite(ms[i])) {\n ms[i] = 0;\n }\n }\n }\n\n // Now build a path from the slopes\n\n path = new Chartist.Svg.Path().move(xs[0], ys[0], false, valueData[0]);\n\n for(i = 0; i < n - 1; i++) {\n path.curve(\n // First control point\n xs[i] + dxs[i] / 3,\n ys[i] + ms[i] * dxs[i] / 3,\n // Second control point\n xs[i + 1] - dxs[i] / 3,\n ys[i + 1] - ms[i + 1] * dxs[i] / 3,\n // End point\n xs[i + 1],\n ys[i + 1],\n\n false,\n valueData[i + 1]\n );\n }\n\n return path;\n }\n };\n };\n\n /**\n * Step interpolation will cause the line chart to move in steps rather than diagonal or smoothed lines. This interpolation will create additional points that will also be drawn when the `showPoint` option is enabled.\n *\n * All smoothing functions within Chartist are factory functions that accept an options parameter. The step interpolation function accepts one configuration parameter `postpone`, that can be `true` or `false`. The default value is `true` and will cause the step to occur where the value actually changes. If a different behaviour is needed where the step is shifted to the left and happens before the actual value, this option can be set to `false`.\n *\n * @example\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [[1, 2, 8, 1, 7]]\n * }, {\n * lineSmooth: Chartist.Interpolation.step({\n * postpone: true,\n * fillHoles: false\n * })\n * });\n *\n * @memberof Chartist.Interpolation\n * @param options\n * @returns {Function}\n */\n Chartist.Interpolation.step = function(options) {\n var defaultOptions = {\n postpone: true,\n fillHoles: false\n };\n\n options = Chartist.extend({}, defaultOptions, options);\n\n return function step(pathCoordinates, valueData) {\n var path = new Chartist.Svg.Path();\n\n var prevX, prevY, prevData;\n\n for (var i = 0; i < pathCoordinates.length; i += 2) {\n var currX = pathCoordinates[i];\n var currY = pathCoordinates[i + 1];\n var currData = valueData[i / 2];\n\n // If the current point is also not a hole we can draw the step lines\n if(currData.value !== undefined) {\n if(prevData === undefined) {\n path.move(currX, currY, false, currData);\n } else {\n if(options.postpone) {\n // If postponed we should draw the step line with the value of the previous value\n path.line(currX, prevY, false, prevData);\n } else {\n // If not postponed we should draw the step line with the value of the current value\n path.line(prevX, currY, false, currData);\n }\n // Line to the actual point (this should only be a Y-Axis movement\n path.line(currX, currY, false, currData);\n }\n\n prevX = currX;\n prevY = currY;\n prevData = currData;\n } else if(!options.fillHoles) {\n prevX = prevY = prevData = undefined;\n }\n }\n\n return path;\n };\n };\n\n}(this || global, Chartist));\n;/**\n * A very basic event module that helps to generate and catch events.\n *\n * @module Chartist.Event\n */\n/* global Chartist */\n(function (globalRoot, Chartist) {\n 'use strict';\n\n Chartist.EventEmitter = function () {\n var handlers = [];\n\n /**\n * Add an event handler for a specific event\n *\n * @memberof Chartist.Event\n * @param {String} event The event name\n * @param {Function} handler A event handler function\n */\n function addEventHandler(event, handler) {\n handlers[event] = handlers[event] || [];\n handlers[event].push(handler);\n }\n\n /**\n * Remove an event handler of a specific event name or remove all event handlers for a specific event.\n *\n * @memberof Chartist.Event\n * @param {String} event The event name where a specific or all handlers should be removed\n * @param {Function} [handler] An optional event handler function. If specified only this specific handler will be removed and otherwise all handlers are removed.\n */\n function removeEventHandler(event, handler) {\n // Only do something if there are event handlers with this name existing\n if(handlers[event]) {\n // If handler is set we will look for a specific handler and only remove this\n if(handler) {\n handlers[event].splice(handlers[event].indexOf(handler), 1);\n if(handlers[event].length === 0) {\n delete handlers[event];\n }\n } else {\n // If no handler is specified we remove all handlers for this event\n delete handlers[event];\n }\n }\n }\n\n /**\n * Use this function to emit an event. All handlers that are listening for this event will be triggered with the data parameter.\n *\n * @memberof Chartist.Event\n * @param {String} event The event name that should be triggered\n * @param {*} data Arbitrary data that will be passed to the event handler callback functions\n */\n function emit(event, data) {\n // Only do something if there are event handlers with this name existing\n if(handlers[event]) {\n handlers[event].forEach(function(handler) {\n handler(data);\n });\n }\n\n // Emit event to star event handlers\n if(handlers['*']) {\n handlers['*'].forEach(function(starHandler) {\n starHandler(event, data);\n });\n }\n }\n\n return {\n addEventHandler: addEventHandler,\n removeEventHandler: removeEventHandler,\n emit: emit\n };\n };\n\n}(this || global, Chartist));\n;/**\n * This module provides some basic prototype inheritance utilities.\n *\n * @module Chartist.Class\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n function listToArray(list) {\n var arr = [];\n if (list.length) {\n for (var i = 0; i < list.length; i++) {\n arr.push(list[i]);\n }\n }\n return arr;\n }\n\n /**\n * Method to extend from current prototype.\n *\n * @memberof Chartist.Class\n * @param {Object} properties The object that serves as definition for the prototype that gets created for the new class. This object should always contain a constructor property that is the desired constructor for the newly created class.\n * @param {Object} [superProtoOverride] By default extens will use the current class prototype or Chartist.class. With this parameter you can specify any super prototype that will be used.\n * @return {Function} Constructor function of the new class\n *\n * @example\n * var Fruit = Class.extend({\n * color: undefined,\n * sugar: undefined,\n *\n * constructor: function(color, sugar) {\n * this.color = color;\n * this.sugar = sugar;\n * },\n *\n * eat: function() {\n * this.sugar = 0;\n * return this;\n * }\n * });\n *\n * var Banana = Fruit.extend({\n * length: undefined,\n *\n * constructor: function(length, sugar) {\n * Banana.super.constructor.call(this, 'Yellow', sugar);\n * this.length = length;\n * }\n * });\n *\n * var banana = new Banana(20, 40);\n * console.log('banana instanceof Fruit', banana instanceof Fruit);\n * console.log('Fruit is prototype of banana', Fruit.prototype.isPrototypeOf(banana));\n * console.log('bananas prototype is Fruit', Object.getPrototypeOf(banana) === Fruit.prototype);\n * console.log(banana.sugar);\n * console.log(banana.eat().sugar);\n * console.log(banana.color);\n */\n function extend(properties, superProtoOverride) {\n var superProto = superProtoOverride || this.prototype || Chartist.Class;\n var proto = Object.create(superProto);\n\n Chartist.Class.cloneDefinitions(proto, properties);\n\n var constr = function() {\n var fn = proto.constructor || function () {},\n instance;\n\n // If this is linked to the Chartist namespace the constructor was not called with new\n // To provide a fallback we will instantiate here and return the instance\n instance = this === Chartist ? Object.create(proto) : this;\n fn.apply(instance, Array.prototype.slice.call(arguments, 0));\n\n // If this constructor was not called with new we need to return the instance\n // This will not harm when the constructor has been called with new as the returned value is ignored\n return instance;\n };\n\n constr.prototype = proto;\n constr.super = superProto;\n constr.extend = this.extend;\n\n return constr;\n }\n\n // Variable argument list clones args > 0 into args[0] and retruns modified args[0]\n function cloneDefinitions() {\n var args = listToArray(arguments);\n var target = args[0];\n\n args.splice(1, args.length - 1).forEach(function (source) {\n Object.getOwnPropertyNames(source).forEach(function (propName) {\n // If this property already exist in target we delete it first\n delete target[propName];\n // Define the property with the descriptor from source\n Object.defineProperty(target, propName,\n Object.getOwnPropertyDescriptor(source, propName));\n });\n });\n\n return target;\n }\n\n Chartist.Class = {\n extend: extend,\n cloneDefinitions: cloneDefinitions\n };\n\n}(this || global, Chartist));\n;/**\n * Base for all chart types. The methods in Chartist.Base are inherited to all chart types.\n *\n * @module Chartist.Base\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n\n // TODO: Currently we need to re-draw the chart on window resize. This is usually very bad and will affect performance.\n // This is done because we can't work with relative coordinates when drawing the chart because SVG Path does not\n // work with relative positions yet. We need to check if we can do a viewBox hack to switch to percentage.\n // See http://mozilla.6506.n7.nabble.com/Specyfing-paths-with-percentages-unit-td247474.html\n // Update: can be done using the above method tested here: http://codepen.io/gionkunz/pen/KDvLj\n // The problem is with the label offsets that can't be converted into percentage and affecting the chart container\n /**\n * Updates the chart which currently does a full reconstruction of the SVG DOM\n *\n * @param {Object} [data] Optional data you'd like to set for the chart before it will update. If not specified the update method will use the data that is already configured with the chart.\n * @param {Object} [options] Optional options you'd like to add to the previous options for the chart before it will update. If not specified the update method will use the options that have been already configured with the chart.\n * @param {Boolean} [override] If set to true, the passed options will be used to extend the options that have been configured already. Otherwise the chart default options will be used as the base\n * @memberof Chartist.Base\n */\n function update(data, options, override) {\n if(data) {\n this.data = data || {};\n this.data.labels = this.data.labels || [];\n this.data.series = this.data.series || [];\n // Event for data transformation that allows to manipulate the data before it gets rendered in the charts\n this.eventEmitter.emit('data', {\n type: 'update',\n data: this.data\n });\n }\n\n if(options) {\n this.options = Chartist.extend({}, override ? this.options : this.defaultOptions, options);\n\n // If chartist was not initialized yet, we just set the options and leave the rest to the initialization\n // Otherwise we re-create the optionsProvider at this point\n if(!this.initializeTimeoutId) {\n this.optionsProvider.removeMediaQueryListeners();\n this.optionsProvider = Chartist.optionsProvider(this.options, this.responsiveOptions, this.eventEmitter);\n }\n }\n\n // Only re-created the chart if it has been initialized yet\n if(!this.initializeTimeoutId) {\n this.createChart(this.optionsProvider.getCurrentOptions());\n }\n\n // Return a reference to the chart object to chain up calls\n return this;\n }\n\n /**\n * This method can be called on the API object of each chart and will un-register all event listeners that were added to other components. This currently includes a window.resize listener as well as media query listeners if any responsive options have been provided. Use this function if you need to destroy and recreate Chartist charts dynamically.\n *\n * @memberof Chartist.Base\n */\n function detach() {\n // Only detach if initialization already occurred on this chart. If this chart still hasn't initialized (therefore\n // the initializationTimeoutId is still a valid timeout reference, we will clear the timeout\n if(!this.initializeTimeoutId) {\n window.removeEventListener('resize', this.resizeListener);\n this.optionsProvider.removeMediaQueryListeners();\n } else {\n window.clearTimeout(this.initializeTimeoutId);\n }\n\n return this;\n }\n\n /**\n * Use this function to register event handlers. The handler callbacks are synchronous and will run in the main thread rather than the event loop.\n *\n * @memberof Chartist.Base\n * @param {String} event Name of the event. Check the examples for supported events.\n * @param {Function} handler The handler function that will be called when an event with the given name was emitted. This function will receive a data argument which contains event data. See the example for more details.\n */\n function on(event, handler) {\n this.eventEmitter.addEventHandler(event, handler);\n return this;\n }\n\n /**\n * Use this function to un-register event handlers. If the handler function parameter is omitted all handlers for the given event will be un-registered.\n *\n * @memberof Chartist.Base\n * @param {String} event Name of the event for which a handler should be removed\n * @param {Function} [handler] The handler function that that was previously used to register a new event handler. This handler will be removed from the event handler list. If this parameter is omitted then all event handlers for the given event are removed from the list.\n */\n function off(event, handler) {\n this.eventEmitter.removeEventHandler(event, handler);\n return this;\n }\n\n function initialize() {\n // Add window resize listener that re-creates the chart\n window.addEventListener('resize', this.resizeListener);\n\n // Obtain current options based on matching media queries (if responsive options are given)\n // This will also register a listener that is re-creating the chart based on media changes\n this.optionsProvider = Chartist.optionsProvider(this.options, this.responsiveOptions, this.eventEmitter);\n // Register options change listener that will trigger a chart update\n this.eventEmitter.addEventHandler('optionsChanged', function() {\n this.update();\n }.bind(this));\n\n // Before the first chart creation we need to register us with all plugins that are configured\n // Initialize all relevant plugins with our chart object and the plugin options specified in the config\n if(this.options.plugins) {\n this.options.plugins.forEach(function(plugin) {\n if(plugin instanceof Array) {\n plugin[0](this, plugin[1]);\n } else {\n plugin(this);\n }\n }.bind(this));\n }\n\n // Event for data transformation that allows to manipulate the data before it gets rendered in the charts\n this.eventEmitter.emit('data', {\n type: 'initial',\n data: this.data\n });\n\n // Create the first chart\n this.createChart(this.optionsProvider.getCurrentOptions());\n\n // As chart is initialized from the event loop now we can reset our timeout reference\n // This is important if the chart gets initialized on the same element twice\n this.initializeTimeoutId = undefined;\n }\n\n /**\n * Constructor of chart base class.\n *\n * @param query\n * @param data\n * @param defaultOptions\n * @param options\n * @param responsiveOptions\n * @constructor\n */\n function Base(query, data, defaultOptions, options, responsiveOptions) {\n this.container = Chartist.querySelector(query);\n this.data = data || {};\n this.data.labels = this.data.labels || [];\n this.data.series = this.data.series || [];\n this.defaultOptions = defaultOptions;\n this.options = options;\n this.responsiveOptions = responsiveOptions;\n this.eventEmitter = Chartist.EventEmitter();\n this.supportsForeignObject = Chartist.Svg.isSupported('Extensibility');\n this.supportsAnimations = Chartist.Svg.isSupported('AnimationEventsAttribute');\n this.resizeListener = function resizeListener(){\n this.update();\n }.bind(this);\n\n if(this.container) {\n // If chartist was already initialized in this container we are detaching all event listeners first\n if(this.container.__chartist__) {\n this.container.__chartist__.detach();\n }\n\n this.container.__chartist__ = this;\n }\n\n // Using event loop for first draw to make it possible to register event listeners in the same call stack where\n // the chart was created.\n this.initializeTimeoutId = setTimeout(initialize.bind(this), 0);\n }\n\n // Creating the chart base class\n Chartist.Base = Chartist.Class.extend({\n constructor: Base,\n optionsProvider: undefined,\n container: undefined,\n svg: undefined,\n eventEmitter: undefined,\n createChart: function() {\n throw new Error('Base chart type can\\'t be instantiated!');\n },\n update: update,\n detach: detach,\n on: on,\n off: off,\n version: Chartist.version,\n supportsForeignObject: false\n });\n\n}(this || global, Chartist));\n;/**\n * Chartist SVG module for simple SVG DOM abstraction\n *\n * @module Chartist.Svg\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n var document = globalRoot.document;\n\n /**\n * Chartist.Svg creates a new SVG object wrapper with a starting element. You can use the wrapper to fluently create sub-elements and modify them.\n *\n * @memberof Chartist.Svg\n * @constructor\n * @param {String|Element} name The name of the SVG element to create or an SVG dom element which should be wrapped into Chartist.Svg\n * @param {Object} attributes An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added.\n * @param {String} className This class or class list will be added to the SVG element\n * @param {Object} parent The parent SVG wrapper object where this newly created wrapper and it's element will be attached to as child\n * @param {Boolean} insertFirst If this param is set to true in conjunction with a parent element the newly created element will be added as first child element in the parent element\n */\n function Svg(name, attributes, className, parent, insertFirst) {\n // If Svg is getting called with an SVG element we just return the wrapper\n if(name instanceof Element) {\n this._node = name;\n } else {\n this._node = document.createElementNS(Chartist.namespaces.svg, name);\n\n // If this is an SVG element created then custom namespace\n if(name === 'svg') {\n this.attr({\n 'xmlns:ct': Chartist.namespaces.ct\n });\n }\n }\n\n if(attributes) {\n this.attr(attributes);\n }\n\n if(className) {\n this.addClass(className);\n }\n\n if(parent) {\n if (insertFirst && parent._node.firstChild) {\n parent._node.insertBefore(this._node, parent._node.firstChild);\n } else {\n parent._node.appendChild(this._node);\n }\n }\n }\n\n /**\n * Set attributes on the current SVG element of the wrapper you're currently working on.\n *\n * @memberof Chartist.Svg\n * @param {Object|String} attributes An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added. If this parameter is a String then the function is used as a getter and will return the attribute value.\n * @param {String} [ns] If specified, the attribute will be obtained using getAttributeNs. In order to write namepsaced attributes you can use the namespace:attribute notation within the attributes object.\n * @return {Object|String} The current wrapper object will be returned so it can be used for chaining or the attribute value if used as getter function.\n */\n function attr(attributes, ns) {\n if(typeof attributes === 'string') {\n if(ns) {\n return this._node.getAttributeNS(ns, attributes);\n } else {\n return this._node.getAttribute(attributes);\n }\n }\n\n Object.keys(attributes).forEach(function(key) {\n // If the attribute value is undefined we can skip this one\n if(attributes[key] === undefined) {\n return;\n }\n\n if (key.indexOf(':') !== -1) {\n var namespacedAttribute = key.split(':');\n this._node.setAttributeNS(Chartist.namespaces[namespacedAttribute[0]], key, attributes[key]);\n } else {\n this._node.setAttribute(key, attributes[key]);\n }\n }.bind(this));\n\n return this;\n }\n\n /**\n * Create a new SVG element whose wrapper object will be selected for further operations. This way you can also create nested groups easily.\n *\n * @memberof Chartist.Svg\n * @param {String} name The name of the SVG element that should be created as child element of the currently selected element wrapper\n * @param {Object} [attributes] An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added.\n * @param {String} [className] This class or class list will be added to the SVG element\n * @param {Boolean} [insertFirst] If this param is set to true in conjunction with a parent element the newly created element will be added as first child element in the parent element\n * @return {Chartist.Svg} Returns a Chartist.Svg wrapper object that can be used to modify the containing SVG data\n */\n function elem(name, attributes, className, insertFirst) {\n return new Chartist.Svg(name, attributes, className, this, insertFirst);\n }\n\n /**\n * Returns the parent Chartist.SVG wrapper object\n *\n * @memberof Chartist.Svg\n * @return {Chartist.Svg} Returns a Chartist.Svg wrapper around the parent node of the current node. If the parent node is not existing or it's not an SVG node then this function will return null.\n */\n function parent() {\n return this._node.parentNode instanceof SVGElement ? new Chartist.Svg(this._node.parentNode) : null;\n }\n\n /**\n * This method returns a Chartist.Svg wrapper around the root SVG element of the current tree.\n *\n * @memberof Chartist.Svg\n * @return {Chartist.Svg} The root SVG element wrapped in a Chartist.Svg element\n */\n function root() {\n var node = this._node;\n while(node.nodeName !== 'svg') {\n node = node.parentNode;\n }\n return new Chartist.Svg(node);\n }\n\n /**\n * Find the first child SVG element of the current element that matches a CSS selector. The returned object is a Chartist.Svg wrapper.\n *\n * @memberof Chartist.Svg\n * @param {String} selector A CSS selector that is used to query for child SVG elements\n * @return {Chartist.Svg} The SVG wrapper for the element found or null if no element was found\n */\n function querySelector(selector) {\n var foundNode = this._node.querySelector(selector);\n return foundNode ? new Chartist.Svg(foundNode) : null;\n }\n\n /**\n * Find the all child SVG elements of the current element that match a CSS selector. The returned object is a Chartist.Svg.List wrapper.\n *\n * @memberof Chartist.Svg\n * @param {String} selector A CSS selector that is used to query for child SVG elements\n * @return {Chartist.Svg.List} The SVG wrapper list for the element found or null if no element was found\n */\n function querySelectorAll(selector) {\n var foundNodes = this._node.querySelectorAll(selector);\n return foundNodes.length ? new Chartist.Svg.List(foundNodes) : null;\n }\n\n /**\n * Returns the underlying SVG node for the current element.\n *\n * @memberof Chartist.Svg\n * @returns {Node}\n */\n function getNode() {\n return this._node;\n }\n\n /**\n * This method creates a foreignObject (see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject) that allows to embed HTML content into a SVG graphic. With the help of foreignObjects you can enable the usage of regular HTML elements inside of SVG where they are subject for SVG positioning and transformation but the Browser will use the HTML rendering capabilities for the containing DOM.\n *\n * @memberof Chartist.Svg\n * @param {Node|String} content The DOM Node, or HTML string that will be converted to a DOM Node, that is then placed into and wrapped by the foreignObject\n * @param {String} [attributes] An object with properties that will be added as attributes to the foreignObject element that is created. Attributes with undefined values will not be added.\n * @param {String} [className] This class or class list will be added to the SVG element\n * @param {Boolean} [insertFirst] Specifies if the foreignObject should be inserted as first child\n * @return {Chartist.Svg} New wrapper object that wraps the foreignObject element\n */\n function foreignObject(content, attributes, className, insertFirst) {\n // If content is string then we convert it to DOM\n // TODO: Handle case where content is not a string nor a DOM Node\n if(typeof content === 'string') {\n var container = document.createElement('div');\n container.innerHTML = content;\n content = container.firstChild;\n }\n\n // Adding namespace to content element\n content.setAttribute('xmlns', Chartist.namespaces.xmlns);\n\n // Creating the foreignObject without required extension attribute (as described here\n // http://www.w3.org/TR/SVG/extend.html#ForeignObjectElement)\n var fnObj = this.elem('foreignObject', attributes, className, insertFirst);\n\n // Add content to foreignObjectElement\n fnObj._node.appendChild(content);\n\n return fnObj;\n }\n\n /**\n * This method adds a new text element to the current Chartist.Svg wrapper.\n *\n * @memberof Chartist.Svg\n * @param {String} t The text that should be added to the text element that is created\n * @return {Chartist.Svg} The same wrapper object that was used to add the newly created element\n */\n function text(t) {\n this._node.appendChild(document.createTextNode(t));\n return this;\n }\n\n /**\n * This method will clear all child nodes of the current wrapper object.\n *\n * @memberof Chartist.Svg\n * @return {Chartist.Svg} The same wrapper object that got emptied\n */\n function empty() {\n while (this._node.firstChild) {\n this._node.removeChild(this._node.firstChild);\n }\n\n return this;\n }\n\n /**\n * This method will cause the current wrapper to remove itself from its parent wrapper. Use this method if you'd like to get rid of an element in a given DOM structure.\n *\n * @memberof Chartist.Svg\n * @return {Chartist.Svg} The parent wrapper object of the element that got removed\n */\n function remove() {\n this._node.parentNode.removeChild(this._node);\n return this.parent();\n }\n\n /**\n * This method will replace the element with a new element that can be created outside of the current DOM.\n *\n * @memberof Chartist.Svg\n * @param {Chartist.Svg} newElement The new Chartist.Svg object that will be used to replace the current wrapper object\n * @return {Chartist.Svg} The wrapper of the new element\n */\n function replace(newElement) {\n this._node.parentNode.replaceChild(newElement._node, this._node);\n return newElement;\n }\n\n /**\n * This method will append an element to the current element as a child.\n *\n * @memberof Chartist.Svg\n * @param {Chartist.Svg} element The Chartist.Svg element that should be added as a child\n * @param {Boolean} [insertFirst] Specifies if the element should be inserted as first child\n * @return {Chartist.Svg} The wrapper of the appended object\n */\n function append(element, insertFirst) {\n if(insertFirst && this._node.firstChild) {\n this._node.insertBefore(element._node, this._node.firstChild);\n } else {\n this._node.appendChild(element._node);\n }\n\n return this;\n }\n\n /**\n * Returns an array of class names that are attached to the current wrapper element. This method can not be chained further.\n *\n * @memberof Chartist.Svg\n * @return {Array} A list of classes or an empty array if there are no classes on the current element\n */\n function classes() {\n return this._node.getAttribute('class') ? this._node.getAttribute('class').trim().split(/\\s+/) : [];\n }\n\n /**\n * Adds one or a space separated list of classes to the current element and ensures the classes are only existing once.\n *\n * @memberof Chartist.Svg\n * @param {String} names A white space separated list of class names\n * @return {Chartist.Svg} The wrapper of the current element\n */\n function addClass(names) {\n this._node.setAttribute('class',\n this.classes(this._node)\n .concat(names.trim().split(/\\s+/))\n .filter(function(elem, pos, self) {\n return self.indexOf(elem) === pos;\n }).join(' ')\n );\n\n return this;\n }\n\n /**\n * Removes one or a space separated list of classes from the current element.\n *\n * @memberof Chartist.Svg\n * @param {String} names A white space separated list of class names\n * @return {Chartist.Svg} The wrapper of the current element\n */\n function removeClass(names) {\n var removedClasses = names.trim().split(/\\s+/);\n\n this._node.setAttribute('class', this.classes(this._node).filter(function(name) {\n return removedClasses.indexOf(name) === -1;\n }).join(' '));\n\n return this;\n }\n\n /**\n * Removes all classes from the current element.\n *\n * @memberof Chartist.Svg\n * @return {Chartist.Svg} The wrapper of the current element\n */\n function removeAllClasses() {\n this._node.setAttribute('class', '');\n\n return this;\n }\n\n /**\n * Get element height using `getBoundingClientRect`\n *\n * @memberof Chartist.Svg\n * @return {Number} The elements height in pixels\n */\n function height() {\n return this._node.getBoundingClientRect().height;\n }\n\n /**\n * Get element width using `getBoundingClientRect`\n *\n * @memberof Chartist.Core\n * @return {Number} The elements width in pixels\n */\n function width() {\n return this._node.getBoundingClientRect().width;\n }\n\n /**\n * The animate function lets you animate the current element with SMIL animations. You can add animations for multiple attributes at the same time by using an animation definition object. This object should contain SMIL animation attributes. Please refer to http://www.w3.org/TR/SVG/animate.html for a detailed specification about the available animation attributes. Additionally an easing property can be passed in the animation definition object. This can be a string with a name of an easing function in `Chartist.Svg.Easing` or an array with four numbers specifying a cubic BĆ©zier curve.\n * **An animations object could look like this:**\n * ```javascript\n * element.animate({\n * opacity: {\n * dur: 1000,\n * from: 0,\n * to: 1\n * },\n * x1: {\n * dur: '1000ms',\n * from: 100,\n * to: 200,\n * easing: 'easeOutQuart'\n * },\n * y1: {\n * dur: '2s',\n * from: 0,\n * to: 100\n * }\n * });\n * ```\n * **Automatic unit conversion**\n * For the `dur` and the `begin` animate attribute you can also omit a unit by passing a number. The number will automatically be converted to milli seconds.\n * **Guided mode**\n * The default behavior of SMIL animations with offset using the `begin` attribute is that the attribute will keep it's original value until the animation starts. Mostly this behavior is not desired as you'd like to have your element attributes already initialized with the animation `from` value even before the animation starts. Also if you don't specify `fill=\"freeze\"` on an animate element or if you delete the animation after it's done (which is done in guided mode) the attribute will switch back to the initial value. This behavior is also not desired when performing simple one-time animations. For one-time animations you'd want to trigger animations immediately instead of relative to the document begin time. That's why in guided mode Chartist.Svg will also use the `begin` property to schedule a timeout and manually start the animation after the timeout. If you're using multiple SMIL definition objects for an attribute (in an array), guided mode will be disabled for this attribute, even if you explicitly enabled it.\n * If guided mode is enabled the following behavior is added:\n * - Before the animation starts (even when delayed with `begin`) the animated attribute will be set already to the `from` value of the animation\n * - `begin` is explicitly set to `indefinite` so it can be started manually without relying on document begin time (creation)\n * - The animate element will be forced to use `fill=\"freeze\"`\n * - The animation will be triggered with `beginElement()` in a timeout where `begin` of the definition object is interpreted in milli seconds. If no `begin` was specified the timeout is triggered immediately.\n * - After the animation the element attribute value will be set to the `to` value of the animation\n * - The animate element is deleted from the DOM\n *\n * @memberof Chartist.Svg\n * @param {Object} animations An animations object where the property keys are the attributes you'd like to animate. The properties should be objects again that contain the SMIL animation attributes (usually begin, dur, from, and to). The property begin and dur is auto converted (see Automatic unit conversion). You can also schedule multiple animations for the same attribute by passing an Array of SMIL definition objects. Attributes that contain an array of SMIL definition objects will not be executed in guided mode.\n * @param {Boolean} guided Specify if guided mode should be activated for this animation (see Guided mode). If not otherwise specified, guided mode will be activated.\n * @param {Object} eventEmitter If specified, this event emitter will be notified when an animation starts or ends.\n * @return {Chartist.Svg} The current element where the animation was added\n */\n function animate(animations, guided, eventEmitter) {\n if(guided === undefined) {\n guided = true;\n }\n\n Object.keys(animations).forEach(function createAnimateForAttributes(attribute) {\n\n function createAnimate(animationDefinition, guided) {\n var attributeProperties = {},\n animate,\n timeout,\n easing;\n\n // Check if an easing is specified in the definition object and delete it from the object as it will not\n // be part of the animate element attributes.\n if(animationDefinition.easing) {\n // If already an easing BĆ©zier curve array we take it or we lookup a easing array in the Easing object\n easing = animationDefinition.easing instanceof Array ?\n animationDefinition.easing :\n Chartist.Svg.Easing[animationDefinition.easing];\n delete animationDefinition.easing;\n }\n\n // If numeric dur or begin was provided we assume milli seconds\n animationDefinition.begin = Chartist.ensureUnit(animationDefinition.begin, 'ms');\n animationDefinition.dur = Chartist.ensureUnit(animationDefinition.dur, 'ms');\n\n if(easing) {\n animationDefinition.calcMode = 'spline';\n animationDefinition.keySplines = easing.join(' ');\n animationDefinition.keyTimes = '0;1';\n }\n\n // Adding \"fill: freeze\" if we are in guided mode and set initial attribute values\n if(guided) {\n animationDefinition.fill = 'freeze';\n // Animated property on our element should already be set to the animation from value in guided mode\n attributeProperties[attribute] = animationDefinition.from;\n this.attr(attributeProperties);\n\n // In guided mode we also set begin to indefinite so we can trigger the start manually and put the begin\n // which needs to be in ms aside\n timeout = Chartist.quantity(animationDefinition.begin || 0).value;\n animationDefinition.begin = 'indefinite';\n }\n\n animate = this.elem('animate', Chartist.extend({\n attributeName: attribute\n }, animationDefinition));\n\n if(guided) {\n // If guided we take the value that was put aside in timeout and trigger the animation manually with a timeout\n setTimeout(function() {\n // If beginElement fails we set the animated attribute to the end position and remove the animate element\n // This happens if the SMIL ElementTimeControl interface is not supported or any other problems occured in\n // the browser. (Currently FF 34 does not support animate elements in foreignObjects)\n try {\n animate._node.beginElement();\n } catch(err) {\n // Set animated attribute to current animated value\n attributeProperties[attribute] = animationDefinition.to;\n this.attr(attributeProperties);\n // Remove the animate element as it's no longer required\n animate.remove();\n }\n }.bind(this), timeout);\n }\n\n if(eventEmitter) {\n animate._node.addEventListener('beginEvent', function handleBeginEvent() {\n eventEmitter.emit('animationBegin', {\n element: this,\n animate: animate._node,\n params: animationDefinition\n });\n }.bind(this));\n }\n\n animate._node.addEventListener('endEvent', function handleEndEvent() {\n if(eventEmitter) {\n eventEmitter.emit('animationEnd', {\n element: this,\n animate: animate._node,\n params: animationDefinition\n });\n }\n\n if(guided) {\n // Set animated attribute to current animated value\n attributeProperties[attribute] = animationDefinition.to;\n this.attr(attributeProperties);\n // Remove the animate element as it's no longer required\n animate.remove();\n }\n }.bind(this));\n }\n\n // If current attribute is an array of definition objects we create an animate for each and disable guided mode\n if(animations[attribute] instanceof Array) {\n animations[attribute].forEach(function(animationDefinition) {\n createAnimate.bind(this)(animationDefinition, false);\n }.bind(this));\n } else {\n createAnimate.bind(this)(animations[attribute], guided);\n }\n\n }.bind(this));\n\n return this;\n }\n\n Chartist.Svg = Chartist.Class.extend({\n constructor: Svg,\n attr: attr,\n elem: elem,\n parent: parent,\n root: root,\n querySelector: querySelector,\n querySelectorAll: querySelectorAll,\n getNode: getNode,\n foreignObject: foreignObject,\n text: text,\n empty: empty,\n remove: remove,\n replace: replace,\n append: append,\n classes: classes,\n addClass: addClass,\n removeClass: removeClass,\n removeAllClasses: removeAllClasses,\n height: height,\n width: width,\n animate: animate\n });\n\n /**\n * This method checks for support of a given SVG feature like Extensibility, SVG-animation or the like. Check http://www.w3.org/TR/SVG11/feature for a detailed list.\n *\n * @memberof Chartist.Svg\n * @param {String} feature The SVG 1.1 feature that should be checked for support.\n * @return {Boolean} True of false if the feature is supported or not\n */\n Chartist.Svg.isSupported = function(feature) {\n return document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#' + feature, '1.1');\n };\n\n /**\n * This Object contains some standard easing cubic bezier curves. Then can be used with their name in the `Chartist.Svg.animate`. You can also extend the list and use your own name in the `animate` function. Click the show code button to see the available bezier functions.\n *\n * @memberof Chartist.Svg\n */\n var easingCubicBeziers = {\n easeInSine: [0.47, 0, 0.745, 0.715],\n easeOutSine: [0.39, 0.575, 0.565, 1],\n easeInOutSine: [0.445, 0.05, 0.55, 0.95],\n easeInQuad: [0.55, 0.085, 0.68, 0.53],\n easeOutQuad: [0.25, 0.46, 0.45, 0.94],\n easeInOutQuad: [0.455, 0.03, 0.515, 0.955],\n easeInCubic: [0.55, 0.055, 0.675, 0.19],\n easeOutCubic: [0.215, 0.61, 0.355, 1],\n easeInOutCubic: [0.645, 0.045, 0.355, 1],\n easeInQuart: [0.895, 0.03, 0.685, 0.22],\n easeOutQuart: [0.165, 0.84, 0.44, 1],\n easeInOutQuart: [0.77, 0, 0.175, 1],\n easeInQuint: [0.755, 0.05, 0.855, 0.06],\n easeOutQuint: [0.23, 1, 0.32, 1],\n easeInOutQuint: [0.86, 0, 0.07, 1],\n easeInExpo: [0.95, 0.05, 0.795, 0.035],\n easeOutExpo: [0.19, 1, 0.22, 1],\n easeInOutExpo: [1, 0, 0, 1],\n easeInCirc: [0.6, 0.04, 0.98, 0.335],\n easeOutCirc: [0.075, 0.82, 0.165, 1],\n easeInOutCirc: [0.785, 0.135, 0.15, 0.86],\n easeInBack: [0.6, -0.28, 0.735, 0.045],\n easeOutBack: [0.175, 0.885, 0.32, 1.275],\n easeInOutBack: [0.68, -0.55, 0.265, 1.55]\n };\n\n Chartist.Svg.Easing = easingCubicBeziers;\n\n /**\n * This helper class is to wrap multiple `Chartist.Svg` elements into a list where you can call the `Chartist.Svg` functions on all elements in the list with one call. This is helpful when you'd like to perform calls with `Chartist.Svg` on multiple elements.\n * An instance of this class is also returned by `Chartist.Svg.querySelectorAll`.\n *\n * @memberof Chartist.Svg\n * @param {Array|NodeList} nodeList An Array of SVG DOM nodes or a SVG DOM NodeList (as returned by document.querySelectorAll)\n * @constructor\n */\n function SvgList(nodeList) {\n var list = this;\n\n this.svgElements = [];\n for(var i = 0; i < nodeList.length; i++) {\n this.svgElements.push(new Chartist.Svg(nodeList[i]));\n }\n\n // Add delegation methods for Chartist.Svg\n Object.keys(Chartist.Svg.prototype).filter(function(prototypeProperty) {\n return ['constructor',\n 'parent',\n 'querySelector',\n 'querySelectorAll',\n 'replace',\n 'append',\n 'classes',\n 'height',\n 'width'].indexOf(prototypeProperty) === -1;\n }).forEach(function(prototypeProperty) {\n list[prototypeProperty] = function() {\n var args = Array.prototype.slice.call(arguments, 0);\n list.svgElements.forEach(function(element) {\n Chartist.Svg.prototype[prototypeProperty].apply(element, args);\n });\n return list;\n };\n });\n }\n\n Chartist.Svg.List = Chartist.Class.extend({\n constructor: SvgList\n });\n}(this || global, Chartist));\n;/**\n * Chartist SVG path module for SVG path description creation and modification.\n *\n * @module Chartist.Svg.Path\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n /**\n * Contains the descriptors of supported element types in a SVG path. Currently only move, line and curve are supported.\n *\n * @memberof Chartist.Svg.Path\n * @type {Object}\n */\n var elementDescriptions = {\n m: ['x', 'y'],\n l: ['x', 'y'],\n c: ['x1', 'y1', 'x2', 'y2', 'x', 'y'],\n a: ['rx', 'ry', 'xAr', 'lAf', 'sf', 'x', 'y']\n };\n\n /**\n * Default options for newly created SVG path objects.\n *\n * @memberof Chartist.Svg.Path\n * @type {Object}\n */\n var defaultOptions = {\n // The accuracy in digit count after the decimal point. This will be used to round numbers in the SVG path. If this option is set to false then no rounding will be performed.\n accuracy: 3\n };\n\n function element(command, params, pathElements, pos, relative, data) {\n var pathElement = Chartist.extend({\n command: relative ? command.toLowerCase() : command.toUpperCase()\n }, params, data ? { data: data } : {} );\n\n pathElements.splice(pos, 0, pathElement);\n }\n\n function forEachParam(pathElements, cb) {\n pathElements.forEach(function(pathElement, pathElementIndex) {\n elementDescriptions[pathElement.command.toLowerCase()].forEach(function(paramName, paramIndex) {\n cb(pathElement, paramName, pathElementIndex, paramIndex, pathElements);\n });\n });\n }\n\n /**\n * Used to construct a new path object.\n *\n * @memberof Chartist.Svg.Path\n * @param {Boolean} close If set to true then this path will be closed when stringified (with a Z at the end)\n * @param {Object} options Options object that overrides the default objects. See default options for more details.\n * @constructor\n */\n function SvgPath(close, options) {\n this.pathElements = [];\n this.pos = 0;\n this.close = close;\n this.options = Chartist.extend({}, defaultOptions, options);\n }\n\n /**\n * Gets or sets the current position (cursor) inside of the path. You can move around the cursor freely but limited to 0 or the count of existing elements. All modifications with element functions will insert new elements at the position of this cursor.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} [pos] If a number is passed then the cursor is set to this position in the path element array.\n * @return {Chartist.Svg.Path|Number} If the position parameter was passed then the return value will be the path object for easy call chaining. If no position parameter was passed then the current position is returned.\n */\n function position(pos) {\n if(pos !== undefined) {\n this.pos = Math.max(0, Math.min(this.pathElements.length, pos));\n return this;\n } else {\n return this.pos;\n }\n }\n\n /**\n * Removes elements from the path starting at the current position.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} count Number of path elements that should be removed from the current position.\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function remove(count) {\n this.pathElements.splice(this.pos, count);\n return this;\n }\n\n /**\n * Use this function to add a new move SVG path element.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} x The x coordinate for the move element.\n * @param {Number} y The y coordinate for the move element.\n * @param {Boolean} [relative] If set to true the move element will be created with relative coordinates (lowercase letter)\n * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function move(x, y, relative, data) {\n element('M', {\n x: +x,\n y: +y\n }, this.pathElements, this.pos++, relative, data);\n return this;\n }\n\n /**\n * Use this function to add a new line SVG path element.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} x The x coordinate for the line element.\n * @param {Number} y The y coordinate for the line element.\n * @param {Boolean} [relative] If set to true the line element will be created with relative coordinates (lowercase letter)\n * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function line(x, y, relative, data) {\n element('L', {\n x: +x,\n y: +y\n }, this.pathElements, this.pos++, relative, data);\n return this;\n }\n\n /**\n * Use this function to add a new curve SVG path element.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} x1 The x coordinate for the first control point of the bezier curve.\n * @param {Number} y1 The y coordinate for the first control point of the bezier curve.\n * @param {Number} x2 The x coordinate for the second control point of the bezier curve.\n * @param {Number} y2 The y coordinate for the second control point of the bezier curve.\n * @param {Number} x The x coordinate for the target point of the curve element.\n * @param {Number} y The y coordinate for the target point of the curve element.\n * @param {Boolean} [relative] If set to true the curve element will be created with relative coordinates (lowercase letter)\n * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function curve(x1, y1, x2, y2, x, y, relative, data) {\n element('C', {\n x1: +x1,\n y1: +y1,\n x2: +x2,\n y2: +y2,\n x: +x,\n y: +y\n }, this.pathElements, this.pos++, relative, data);\n return this;\n }\n\n /**\n * Use this function to add a new non-bezier curve SVG path element.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} rx The radius to be used for the x-axis of the arc.\n * @param {Number} ry The radius to be used for the y-axis of the arc.\n * @param {Number} xAr Defines the orientation of the arc\n * @param {Number} lAf Large arc flag\n * @param {Number} sf Sweep flag\n * @param {Number} x The x coordinate for the target point of the curve element.\n * @param {Number} y The y coordinate for the target point of the curve element.\n * @param {Boolean} [relative] If set to true the curve element will be created with relative coordinates (lowercase letter)\n * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function arc(rx, ry, xAr, lAf, sf, x, y, relative, data) {\n element('A', {\n rx: +rx,\n ry: +ry,\n xAr: +xAr,\n lAf: +lAf,\n sf: +sf,\n x: +x,\n y: +y\n }, this.pathElements, this.pos++, relative, data);\n return this;\n }\n\n /**\n * Parses an SVG path seen in the d attribute of path elements, and inserts the parsed elements into the existing path object at the current cursor position. Any closing path indicators (Z at the end of the path) will be ignored by the parser as this is provided by the close option in the options of the path object.\n *\n * @memberof Chartist.Svg.Path\n * @param {String} path Any SVG path that contains move (m), line (l) or curve (c) components.\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function parse(path) {\n // Parsing the SVG path string into an array of arrays [['M', '10', '10'], ['L', '100', '100']]\n var chunks = path.replace(/([A-Za-z])([0-9])/g, '$1 $2')\n .replace(/([0-9])([A-Za-z])/g, '$1 $2')\n .split(/[\\s,]+/)\n .reduce(function(result, element) {\n if(element.match(/[A-Za-z]/)) {\n result.push([]);\n }\n\n result[result.length - 1].push(element);\n return result;\n }, []);\n\n // If this is a closed path we remove the Z at the end because this is determined by the close option\n if(chunks[chunks.length - 1][0].toUpperCase() === 'Z') {\n chunks.pop();\n }\n\n // Using svgPathElementDescriptions to map raw path arrays into objects that contain the command and the parameters\n // For example {command: 'M', x: '10', y: '10'}\n var elements = chunks.map(function(chunk) {\n var command = chunk.shift(),\n description = elementDescriptions[command.toLowerCase()];\n\n return Chartist.extend({\n command: command\n }, description.reduce(function(result, paramName, index) {\n result[paramName] = +chunk[index];\n return result;\n }, {}));\n });\n\n // Preparing a splice call with the elements array as var arg params and insert the parsed elements at the current position\n var spliceArgs = [this.pos, 0];\n Array.prototype.push.apply(spliceArgs, elements);\n Array.prototype.splice.apply(this.pathElements, spliceArgs);\n // Increase the internal position by the element count\n this.pos += elements.length;\n\n return this;\n }\n\n /**\n * This function renders to current SVG path object into a final SVG string that can be used in the d attribute of SVG path elements. It uses the accuracy option to round big decimals. If the close parameter was set in the constructor of this path object then a path closing Z will be appended to the output string.\n *\n * @memberof Chartist.Svg.Path\n * @return {String}\n */\n function stringify() {\n var accuracyMultiplier = Math.pow(10, this.options.accuracy);\n\n return this.pathElements.reduce(function(path, pathElement) {\n var params = elementDescriptions[pathElement.command.toLowerCase()].map(function(paramName) {\n return this.options.accuracy ?\n (Math.round(pathElement[paramName] * accuracyMultiplier) / accuracyMultiplier) :\n pathElement[paramName];\n }.bind(this));\n\n return path + pathElement.command + params.join(',');\n }.bind(this), '') + (this.close ? 'Z' : '');\n }\n\n /**\n * Scales all elements in the current SVG path object. There is an individual parameter for each coordinate. Scaling will also be done for control points of curves, affecting the given coordinate.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} x The number which will be used to scale the x, x1 and x2 of all path elements.\n * @param {Number} y The number which will be used to scale the y, y1 and y2 of all path elements.\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function scale(x, y) {\n forEachParam(this.pathElements, function(pathElement, paramName) {\n pathElement[paramName] *= paramName[0] === 'x' ? x : y;\n });\n return this;\n }\n\n /**\n * Translates all elements in the current SVG path object. The translation is relative and there is an individual parameter for each coordinate. Translation will also be done for control points of curves, affecting the given coordinate.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} x The number which will be used to translate the x, x1 and x2 of all path elements.\n * @param {Number} y The number which will be used to translate the y, y1 and y2 of all path elements.\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function translate(x, y) {\n forEachParam(this.pathElements, function(pathElement, paramName) {\n pathElement[paramName] += paramName[0] === 'x' ? x : y;\n });\n return this;\n }\n\n /**\n * This function will run over all existing path elements and then loop over their attributes. The callback function will be called for every path element attribute that exists in the current path.\n * The method signature of the callback function looks like this:\n * ```javascript\n * function(pathElement, paramName, pathElementIndex, paramIndex, pathElements)\n * ```\n * If something else than undefined is returned by the callback function, this value will be used to replace the old value. This allows you to build custom transformations of path objects that can't be achieved using the basic transformation functions scale and translate.\n *\n * @memberof Chartist.Svg.Path\n * @param {Function} transformFnc The callback function for the transformation. Check the signature in the function description.\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function transform(transformFnc) {\n forEachParam(this.pathElements, function(pathElement, paramName, pathElementIndex, paramIndex, pathElements) {\n var transformed = transformFnc(pathElement, paramName, pathElementIndex, paramIndex, pathElements);\n if(transformed || transformed === 0) {\n pathElement[paramName] = transformed;\n }\n });\n return this;\n }\n\n /**\n * This function clones a whole path object with all its properties. This is a deep clone and path element objects will also be cloned.\n *\n * @memberof Chartist.Svg.Path\n * @param {Boolean} [close] Optional option to set the new cloned path to closed. If not specified or false, the original path close option will be used.\n * @return {Chartist.Svg.Path}\n */\n function clone(close) {\n var c = new Chartist.Svg.Path(close || this.close);\n c.pos = this.pos;\n c.pathElements = this.pathElements.slice().map(function cloneElements(pathElement) {\n return Chartist.extend({}, pathElement);\n });\n c.options = Chartist.extend({}, this.options);\n return c;\n }\n\n /**\n * Split a Svg.Path object by a specific command in the path chain. The path chain will be split and an array of newly created paths objects will be returned. This is useful if you'd like to split an SVG path by it's move commands, for example, in order to isolate chunks of drawings.\n *\n * @memberof Chartist.Svg.Path\n * @param {String} command The command you'd like to use to split the path\n * @return {Array}\n */\n function splitByCommand(command) {\n var split = [\n new Chartist.Svg.Path()\n ];\n\n this.pathElements.forEach(function(pathElement) {\n if(pathElement.command === command.toUpperCase() && split[split.length - 1].pathElements.length !== 0) {\n split.push(new Chartist.Svg.Path());\n }\n\n split[split.length - 1].pathElements.push(pathElement);\n });\n\n return split;\n }\n\n /**\n * This static function on `Chartist.Svg.Path` is joining multiple paths together into one paths.\n *\n * @memberof Chartist.Svg.Path\n * @param {Array} paths A list of paths to be joined together. The order is important.\n * @param {boolean} close If the newly created path should be a closed path\n * @param {Object} options Path options for the newly created path.\n * @return {Chartist.Svg.Path}\n */\n\n function join(paths, close, options) {\n var joinedPath = new Chartist.Svg.Path(close, options);\n for(var i = 0; i < paths.length; i++) {\n var path = paths[i];\n for(var j = 0; j < path.pathElements.length; j++) {\n joinedPath.pathElements.push(path.pathElements[j]);\n }\n }\n return joinedPath;\n }\n\n Chartist.Svg.Path = Chartist.Class.extend({\n constructor: SvgPath,\n position: position,\n remove: remove,\n move: move,\n line: line,\n curve: curve,\n arc: arc,\n scale: scale,\n translate: translate,\n transform: transform,\n parse: parse,\n stringify: stringify,\n clone: clone,\n splitByCommand: splitByCommand\n });\n\n Chartist.Svg.Path.elementDescriptions = elementDescriptions;\n Chartist.Svg.Path.join = join;\n}(this || global, Chartist));\n;/* global Chartist */\n(function (globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n var axisUnits = {\n x: {\n pos: 'x',\n len: 'width',\n dir: 'horizontal',\n rectStart: 'x1',\n rectEnd: 'x2',\n rectOffset: 'y2'\n },\n y: {\n pos: 'y',\n len: 'height',\n dir: 'vertical',\n rectStart: 'y2',\n rectEnd: 'y1',\n rectOffset: 'x1'\n }\n };\n\n function Axis(units, chartRect, ticks, options) {\n this.units = units;\n this.counterUnits = units === axisUnits.x ? axisUnits.y : axisUnits.x;\n this.chartRect = chartRect;\n this.axisLength = chartRect[units.rectEnd] - chartRect[units.rectStart];\n this.gridOffset = chartRect[units.rectOffset];\n this.ticks = ticks;\n this.options = options;\n }\n\n function createGridAndLabels(gridGroup, labelGroup, useForeignObject, chartOptions, eventEmitter) {\n var axisOptions = chartOptions['axis' + this.units.pos.toUpperCase()];\n var projectedValues = this.ticks.map(this.projectValue.bind(this));\n var labelValues = this.ticks.map(axisOptions.labelInterpolationFnc);\n\n projectedValues.forEach(function(projectedValue, index) {\n var labelOffset = {\n x: 0,\n y: 0\n };\n\n // TODO: Find better solution for solving this problem\n // Calculate how much space we have available for the label\n var labelLength;\n if(projectedValues[index + 1]) {\n // If we still have one label ahead, we can calculate the distance to the next tick / label\n labelLength = projectedValues[index + 1] - projectedValue;\n } else {\n // If we don't have a label ahead and we have only two labels in total, we just take the remaining distance to\n // on the whole axis length. We limit that to a minimum of 30 pixel, so that labels close to the border will\n // still be visible inside of the chart padding.\n labelLength = Math.max(this.axisLength - projectedValue, 30);\n }\n\n // Skip grid lines and labels where interpolated label values are falsey (execpt for 0)\n if(Chartist.isFalseyButZero(labelValues[index]) && labelValues[index] !== '') {\n return;\n }\n\n // Transform to global coordinates using the chartRect\n // We also need to set the label offset for the createLabel function\n if(this.units.pos === 'x') {\n projectedValue = this.chartRect.x1 + projectedValue;\n labelOffset.x = chartOptions.axisX.labelOffset.x;\n\n // If the labels should be positioned in start position (top side for vertical axis) we need to set a\n // different offset as for positioned with end (bottom)\n if(chartOptions.axisX.position === 'start') {\n labelOffset.y = this.chartRect.padding.top + chartOptions.axisX.labelOffset.y + (useForeignObject ? 5 : 20);\n } else {\n labelOffset.y = this.chartRect.y1 + chartOptions.axisX.labelOffset.y + (useForeignObject ? 5 : 20);\n }\n } else {\n projectedValue = this.chartRect.y1 - projectedValue;\n labelOffset.y = chartOptions.axisY.labelOffset.y - (useForeignObject ? labelLength : 0);\n\n // If the labels should be positioned in start position (left side for horizontal axis) we need to set a\n // different offset as for positioned with end (right side)\n if(chartOptions.axisY.position === 'start') {\n labelOffset.x = useForeignObject ? this.chartRect.padding.left + chartOptions.axisY.labelOffset.x : this.chartRect.x1 - 10;\n } else {\n labelOffset.x = this.chartRect.x2 + chartOptions.axisY.labelOffset.x + 10;\n }\n }\n\n if(axisOptions.showGrid) {\n Chartist.createGrid(projectedValue, index, this, this.gridOffset, this.chartRect[this.counterUnits.len](), gridGroup, [\n chartOptions.classNames.grid,\n chartOptions.classNames[this.units.dir]\n ], eventEmitter);\n }\n\n if(axisOptions.showLabel) {\n Chartist.createLabel(projectedValue, labelLength, index, labelValues, this, axisOptions.offset, labelOffset, labelGroup, [\n chartOptions.classNames.label,\n chartOptions.classNames[this.units.dir],\n (axisOptions.position === 'start' ? chartOptions.classNames[axisOptions.position] : chartOptions.classNames['end'])\n ], useForeignObject, eventEmitter);\n }\n }.bind(this));\n }\n\n Chartist.Axis = Chartist.Class.extend({\n constructor: Axis,\n createGridAndLabels: createGridAndLabels,\n projectValue: function(value, index, data) {\n throw new Error('Base axis can\\'t be instantiated!');\n }\n });\n\n Chartist.Axis.units = axisUnits;\n\n}(this || global, Chartist));\n;/**\n * The auto scale axis uses standard linear scale projection of values along an axis. It uses order of magnitude to find a scale automatically and evaluates the available space in order to find the perfect amount of ticks for your chart.\n * **Options**\n * The following options are used by this axis in addition to the default axis options outlined in the axis configuration of the chart default settings.\n * ```javascript\n * var options = {\n * // If high is specified then the axis will display values explicitly up to this value and the computed maximum from the data is ignored\n * high: 100,\n * // If low is specified then the axis will display values explicitly down to this value and the computed minimum from the data is ignored\n * low: 0,\n * // This option will be used when finding the right scale division settings. The amount of ticks on the scale will be determined so that as many ticks as possible will be displayed, while not violating this minimum required space (in pixel).\n * scaleMinSpace: 20,\n * // Can be set to true or false. If set to true, the scale will be generated with whole numbers only.\n * onlyInteger: true,\n * // The reference value can be used to make sure that this value will always be on the chart. This is especially useful on bipolar charts where the bipolar center always needs to be part of the chart.\n * referenceValue: 5\n * };\n * ```\n *\n * @module Chartist.AutoScaleAxis\n */\n/* global Chartist */\n(function (globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n function AutoScaleAxis(axisUnit, data, chartRect, options) {\n // Usually we calculate highLow based on the data but this can be overriden by a highLow object in the options\n var highLow = options.highLow || Chartist.getHighLow(data, options, axisUnit.pos);\n this.bounds = Chartist.getBounds(chartRect[axisUnit.rectEnd] - chartRect[axisUnit.rectStart], highLow, options.scaleMinSpace || 20, options.onlyInteger);\n this.range = {\n min: this.bounds.min,\n max: this.bounds.max\n };\n\n Chartist.AutoScaleAxis.super.constructor.call(this,\n axisUnit,\n chartRect,\n this.bounds.values,\n options);\n }\n\n function projectValue(value) {\n return this.axisLength * (+Chartist.getMultiValue(value, this.units.pos) - this.bounds.min) / this.bounds.range;\n }\n\n Chartist.AutoScaleAxis = Chartist.Axis.extend({\n constructor: AutoScaleAxis,\n projectValue: projectValue\n });\n\n}(this || global, Chartist));\n;/**\n * The fixed scale axis uses standard linear projection of values along an axis. It makes use of a divisor option to divide the range provided from the minimum and maximum value or the options high and low that will override the computed minimum and maximum.\n * **Options**\n * The following options are used by this axis in addition to the default axis options outlined in the axis configuration of the chart default settings.\n * ```javascript\n * var options = {\n * // If high is specified then the axis will display values explicitly up to this value and the computed maximum from the data is ignored\n * high: 100,\n * // If low is specified then the axis will display values explicitly down to this value and the computed minimum from the data is ignored\n * low: 0,\n * // If specified then the value range determined from minimum to maximum (or low and high) will be divided by this number and ticks will be generated at those division points. The default divisor is 1.\n * divisor: 4,\n * // If ticks is explicitly set, then the axis will not compute the ticks with the divisor, but directly use the data in ticks to determine at what points on the axis a tick need to be generated.\n * ticks: [1, 10, 20, 30]\n * };\n * ```\n *\n * @module Chartist.FixedScaleAxis\n */\n/* global Chartist */\n(function (globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n function FixedScaleAxis(axisUnit, data, chartRect, options) {\n var highLow = options.highLow || Chartist.getHighLow(data, options, axisUnit.pos);\n this.divisor = options.divisor || 1;\n this.ticks = options.ticks || Chartist.times(this.divisor).map(function(value, index) {\n return highLow.low + (highLow.high - highLow.low) / this.divisor * index;\n }.bind(this));\n this.ticks.sort(function(a, b) {\n return a - b;\n });\n this.range = {\n min: highLow.low,\n max: highLow.high\n };\n\n Chartist.FixedScaleAxis.super.constructor.call(this,\n axisUnit,\n chartRect,\n this.ticks,\n options);\n\n this.stepLength = this.axisLength / this.divisor;\n }\n\n function projectValue(value) {\n return this.axisLength * (+Chartist.getMultiValue(value, this.units.pos) - this.range.min) / (this.range.max - this.range.min);\n }\n\n Chartist.FixedScaleAxis = Chartist.Axis.extend({\n constructor: FixedScaleAxis,\n projectValue: projectValue\n });\n\n}(this || global, Chartist));\n;/**\n * The step axis for step based charts like bar chart or step based line charts. It uses a fixed amount of ticks that will be equally distributed across the whole axis length. The projection is done using the index of the data value rather than the value itself and therefore it's only useful for distribution purpose.\n * **Options**\n * The following options are used by this axis in addition to the default axis options outlined in the axis configuration of the chart default settings.\n * ```javascript\n * var options = {\n * // Ticks to be used to distribute across the axis length. As this axis type relies on the index of the value rather than the value, arbitrary data that can be converted to a string can be used as ticks.\n * ticks: ['One', 'Two', 'Three'],\n * // If set to true the full width will be used to distribute the values where the last value will be at the maximum of the axis length. If false the spaces between the ticks will be evenly distributed instead.\n * stretch: true\n * };\n * ```\n *\n * @module Chartist.StepAxis\n */\n/* global Chartist */\n(function (globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n function StepAxis(axisUnit, data, chartRect, options) {\n Chartist.StepAxis.super.constructor.call(this,\n axisUnit,\n chartRect,\n options.ticks,\n options);\n\n var calc = Math.max(1, options.ticks.length - (options.stretch ? 1 : 0));\n this.stepLength = this.axisLength / calc;\n }\n\n function projectValue(value, index) {\n return this.stepLength * index;\n }\n\n Chartist.StepAxis = Chartist.Axis.extend({\n constructor: StepAxis,\n projectValue: projectValue\n });\n\n}(this || global, Chartist));\n;/**\n * The Chartist line chart can be used to draw Line or Scatter charts. If used in the browser you can access the global `Chartist` namespace where you find the `Line` function as a main entry point.\n *\n * For examples on how to use the line chart please check the examples of the `Chartist.Line` method.\n *\n * @module Chartist.Line\n */\n/* global Chartist */\n(function(globalRoot, Chartist){\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n /**\n * Default options in line charts. Expand the code view to see a detailed list of options with comments.\n *\n * @memberof Chartist.Line\n */\n var defaultOptions = {\n // Options for X-Axis\n axisX: {\n // The offset of the labels to the chart area\n offset: 30,\n // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis.\n position: 'end',\n // Allows you to correct label positioning on this axis by positive or negative x and y offset.\n labelOffset: {\n x: 0,\n y: 0\n },\n // If labels should be shown or not\n showLabel: true,\n // If the axis grid should be drawn or not\n showGrid: true,\n // Interpolation function that allows you to intercept the value from the axis label\n labelInterpolationFnc: Chartist.noop,\n // Set the axis type to be used to project values on this axis. If not defined, Chartist.StepAxis will be used for the X-Axis, where the ticks option will be set to the labels in the data and the stretch option will be set to the global fullWidth option. This type can be changed to any axis constructor available (e.g. Chartist.FixedScaleAxis), where all axis options should be present here.\n type: undefined\n },\n // Options for Y-Axis\n axisY: {\n // The offset of the labels to the chart area\n offset: 40,\n // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis.\n position: 'start',\n // Allows you to correct label positioning on this axis by positive or negative x and y offset.\n labelOffset: {\n x: 0,\n y: 0\n },\n // If labels should be shown or not\n showLabel: true,\n // If the axis grid should be drawn or not\n showGrid: true,\n // Interpolation function that allows you to intercept the value from the axis label\n labelInterpolationFnc: Chartist.noop,\n // Set the axis type to be used to project values on this axis. If not defined, Chartist.AutoScaleAxis will be used for the Y-Axis, where the high and low options will be set to the global high and low options. This type can be changed to any axis constructor available (e.g. Chartist.FixedScaleAxis), where all axis options should be present here.\n type: undefined,\n // This value specifies the minimum height in pixel of the scale steps\n scaleMinSpace: 20,\n // Use only integer values (whole numbers) for the scale steps\n onlyInteger: false\n },\n // Specify a fixed width for the chart as a string (i.e. '100px' or '50%')\n width: undefined,\n // Specify a fixed height for the chart as a string (i.e. '100px' or '50%')\n height: undefined,\n // If the line should be drawn or not\n showLine: true,\n // If dots should be drawn or not\n showPoint: true,\n // If the line chart should draw an area\n showArea: false,\n // The base for the area chart that will be used to close the area shape (is normally 0)\n areaBase: 0,\n // Specify if the lines should be smoothed. This value can be true or false where true will result in smoothing using the default smoothing interpolation function Chartist.Interpolation.cardinal and false results in Chartist.Interpolation.none. You can also choose other smoothing / interpolation functions available in the Chartist.Interpolation module, or write your own interpolation function. Check the examples for a brief description.\n lineSmooth: true,\n // If the line chart should add a background fill to the .ct-grids group.\n showGridBackground: false,\n // Overriding the natural low of the chart allows you to zoom in or limit the charts lowest displayed value\n low: undefined,\n // Overriding the natural high of the chart allows you to zoom in or limit the charts highest displayed value\n high: undefined,\n // Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5}\n chartPadding: {\n top: 15,\n right: 15,\n bottom: 5,\n left: 10\n },\n // When set to true, the last grid line on the x-axis is not drawn and the chart elements will expand to the full available width of the chart. For the last label to be drawn correctly you might need to add chart padding or offset the last label with a draw event handler.\n fullWidth: false,\n // If true the whole data is reversed including labels, the series order as well as the whole series data arrays.\n reverseData: false,\n // Override the class names that get used to generate the SVG structure of the chart\n classNames: {\n chart: 'ct-chart-line',\n label: 'ct-label',\n labelGroup: 'ct-labels',\n series: 'ct-series',\n line: 'ct-line',\n point: 'ct-point',\n area: 'ct-area',\n grid: 'ct-grid',\n gridGroup: 'ct-grids',\n gridBackground: 'ct-grid-background',\n vertical: 'ct-vertical',\n horizontal: 'ct-horizontal',\n start: 'ct-start',\n end: 'ct-end'\n }\n };\n\n /**\n * Creates a new chart\n *\n */\n function createChart(options) {\n var data = Chartist.normalizeData(this.data, options.reverseData, true);\n\n // Create new svg object\n this.svg = Chartist.createSvg(this.container, options.width, options.height, options.classNames.chart);\n // Create groups for labels, grid and series\n var gridGroup = this.svg.elem('g').addClass(options.classNames.gridGroup);\n var seriesGroup = this.svg.elem('g');\n var labelGroup = this.svg.elem('g').addClass(options.classNames.labelGroup);\n\n var chartRect = Chartist.createChartRect(this.svg, options, defaultOptions.padding);\n var axisX, axisY;\n\n if(options.axisX.type === undefined) {\n axisX = new Chartist.StepAxis(Chartist.Axis.units.x, data.normalized.series, chartRect, Chartist.extend({}, options.axisX, {\n ticks: data.normalized.labels,\n stretch: options.fullWidth\n }));\n } else {\n axisX = options.axisX.type.call(Chartist, Chartist.Axis.units.x, data.normalized.series, chartRect, options.axisX);\n }\n\n if(options.axisY.type === undefined) {\n axisY = new Chartist.AutoScaleAxis(Chartist.Axis.units.y, data.normalized.series, chartRect, Chartist.extend({}, options.axisY, {\n high: Chartist.isNumeric(options.high) ? options.high : options.axisY.high,\n low: Chartist.isNumeric(options.low) ? options.low : options.axisY.low\n }));\n } else {\n axisY = options.axisY.type.call(Chartist, Chartist.Axis.units.y, data.normalized.series, chartRect, options.axisY);\n }\n\n axisX.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter);\n axisY.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter);\n\n if (options.showGridBackground) {\n Chartist.createGridBackground(gridGroup, chartRect, options.classNames.gridBackground, this.eventEmitter);\n }\n\n // Draw the series\n data.raw.series.forEach(function(series, seriesIndex) {\n var seriesElement = seriesGroup.elem('g');\n\n // Write attributes to series group element. If series name or meta is undefined the attributes will not be written\n seriesElement.attr({\n 'ct:series-name': series.name,\n 'ct:meta': Chartist.serialize(series.meta)\n });\n\n // Use series class from series data or if not set generate one\n seriesElement.addClass([\n options.classNames.series,\n (series.className || options.classNames.series + '-' + Chartist.alphaNumerate(seriesIndex))\n ].join(' '));\n\n var pathCoordinates = [],\n pathData = [];\n\n data.normalized.series[seriesIndex].forEach(function(value, valueIndex) {\n var p = {\n x: chartRect.x1 + axisX.projectValue(value, valueIndex, data.normalized.series[seriesIndex]),\n y: chartRect.y1 - axisY.projectValue(value, valueIndex, data.normalized.series[seriesIndex])\n };\n pathCoordinates.push(p.x, p.y);\n pathData.push({\n value: value,\n valueIndex: valueIndex,\n meta: Chartist.getMetaData(series, valueIndex)\n });\n }.bind(this));\n\n var seriesOptions = {\n lineSmooth: Chartist.getSeriesOption(series, options, 'lineSmooth'),\n showPoint: Chartist.getSeriesOption(series, options, 'showPoint'),\n showLine: Chartist.getSeriesOption(series, options, 'showLine'),\n showArea: Chartist.getSeriesOption(series, options, 'showArea'),\n areaBase: Chartist.getSeriesOption(series, options, 'areaBase')\n };\n\n var smoothing = typeof seriesOptions.lineSmooth === 'function' ?\n seriesOptions.lineSmooth : (seriesOptions.lineSmooth ? Chartist.Interpolation.monotoneCubic() : Chartist.Interpolation.none());\n // Interpolating path where pathData will be used to annotate each path element so we can trace back the original\n // index, value and meta data\n var path = smoothing(pathCoordinates, pathData);\n\n // If we should show points we need to create them now to avoid secondary loop\n // Points are drawn from the pathElements returned by the interpolation function\n // Small offset for Firefox to render squares correctly\n if (seriesOptions.showPoint) {\n\n path.pathElements.forEach(function(pathElement) {\n var point = seriesElement.elem('line', {\n x1: pathElement.x,\n y1: pathElement.y,\n x2: pathElement.x + 0.01,\n y2: pathElement.y\n }, options.classNames.point).attr({\n 'ct:value': [pathElement.data.value.x, pathElement.data.value.y].filter(Chartist.isNumeric).join(','),\n 'ct:meta': Chartist.serialize(pathElement.data.meta)\n });\n\n this.eventEmitter.emit('draw', {\n type: 'point',\n value: pathElement.data.value,\n index: pathElement.data.valueIndex,\n meta: pathElement.data.meta,\n series: series,\n seriesIndex: seriesIndex,\n axisX: axisX,\n axisY: axisY,\n group: seriesElement,\n element: point,\n x: pathElement.x,\n y: pathElement.y\n });\n }.bind(this));\n }\n\n if(seriesOptions.showLine) {\n var line = seriesElement.elem('path', {\n d: path.stringify()\n }, options.classNames.line, true);\n\n this.eventEmitter.emit('draw', {\n type: 'line',\n values: data.normalized.series[seriesIndex],\n path: path.clone(),\n chartRect: chartRect,\n index: seriesIndex,\n series: series,\n seriesIndex: seriesIndex,\n seriesMeta: series.meta,\n axisX: axisX,\n axisY: axisY,\n group: seriesElement,\n element: line\n });\n }\n\n // Area currently only works with axes that support a range!\n if(seriesOptions.showArea && axisY.range) {\n // If areaBase is outside the chart area (< min or > max) we need to set it respectively so that\n // the area is not drawn outside the chart area.\n var areaBase = Math.max(Math.min(seriesOptions.areaBase, axisY.range.max), axisY.range.min);\n\n // We project the areaBase value into screen coordinates\n var areaBaseProjected = chartRect.y1 - axisY.projectValue(areaBase);\n\n // In order to form the area we'll first split the path by move commands so we can chunk it up into segments\n path.splitByCommand('M').filter(function onlySolidSegments(pathSegment) {\n // We filter only \"solid\" segments that contain more than one point. Otherwise there's no need for an area\n return pathSegment.pathElements.length > 1;\n }).map(function convertToArea(solidPathSegments) {\n // Receiving the filtered solid path segments we can now convert those segments into fill areas\n var firstElement = solidPathSegments.pathElements[0];\n var lastElement = solidPathSegments.pathElements[solidPathSegments.pathElements.length - 1];\n\n // Cloning the solid path segment with closing option and removing the first move command from the clone\n // We then insert a new move that should start at the area base and draw a straight line up or down\n // at the end of the path we add an additional straight line to the projected area base value\n // As the closing option is set our path will be automatically closed\n return solidPathSegments.clone(true)\n .position(0)\n .remove(1)\n .move(firstElement.x, areaBaseProjected)\n .line(firstElement.x, firstElement.y)\n .position(solidPathSegments.pathElements.length + 1)\n .line(lastElement.x, areaBaseProjected);\n\n }).forEach(function createArea(areaPath) {\n // For each of our newly created area paths, we'll now create path elements by stringifying our path objects\n // and adding the created DOM elements to the correct series group\n var area = seriesElement.elem('path', {\n d: areaPath.stringify()\n }, options.classNames.area, true);\n\n // Emit an event for each area that was drawn\n this.eventEmitter.emit('draw', {\n type: 'area',\n values: data.normalized.series[seriesIndex],\n path: areaPath.clone(),\n series: series,\n seriesIndex: seriesIndex,\n axisX: axisX,\n axisY: axisY,\n chartRect: chartRect,\n index: seriesIndex,\n group: seriesElement,\n element: area\n });\n }.bind(this));\n }\n }.bind(this));\n\n this.eventEmitter.emit('created', {\n bounds: axisY.bounds,\n chartRect: chartRect,\n axisX: axisX,\n axisY: axisY,\n svg: this.svg,\n options: options\n });\n }\n\n /**\n * This method creates a new line chart.\n *\n * @memberof Chartist.Line\n * @param {String|Node} query A selector query string or directly a DOM element\n * @param {Object} data The data object that needs to consist of a labels and a series array\n * @param {Object} [options] The options object with options that override the default options. Check the examples for a detailed list.\n * @param {Array} [responsiveOptions] Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]]\n * @return {Object} An object which exposes the API for the created chart\n *\n * @example\n * // Create a simple line chart\n * var data = {\n * // A labels array that can contain any sort of values\n * labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],\n * // Our series array that contains series objects or in this case series data arrays\n * series: [\n * [5, 2, 4, 2, 0]\n * ]\n * };\n *\n * // As options we currently only set a static size of 300x200 px\n * var options = {\n * width: '300px',\n * height: '200px'\n * };\n *\n * // In the global name space Chartist we call the Line function to initialize a line chart. As a first parameter we pass in a selector where we would like to get our chart created. Second parameter is the actual data object and as a third parameter we pass in our options\n * new Chartist.Line('.ct-chart', data, options);\n *\n * @example\n * // Use specific interpolation function with configuration from the Chartist.Interpolation module\n *\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [\n * [1, 1, 8, 1, 7]\n * ]\n * }, {\n * lineSmooth: Chartist.Interpolation.cardinal({\n * tension: 0.2\n * })\n * });\n *\n * @example\n * // Create a line chart with responsive options\n *\n * var data = {\n * // A labels array that can contain any sort of values\n * labels: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'],\n * // Our series array that contains series objects or in this case series data arrays\n * series: [\n * [5, 2, 4, 2, 0]\n * ]\n * };\n *\n * // In addition to the regular options we specify responsive option overrides that will override the default configutation based on the matching media queries.\n * var responsiveOptions = [\n * ['screen and (min-width: 641px) and (max-width: 1024px)', {\n * showPoint: false,\n * axisX: {\n * labelInterpolationFnc: function(value) {\n * // Will return Mon, Tue, Wed etc. on medium screens\n * return value.slice(0, 3);\n * }\n * }\n * }],\n * ['screen and (max-width: 640px)', {\n * showLine: false,\n * axisX: {\n * labelInterpolationFnc: function(value) {\n * // Will return M, T, W etc. on small screens\n * return value[0];\n * }\n * }\n * }]\n * ];\n *\n * new Chartist.Line('.ct-chart', data, null, responsiveOptions);\n *\n */\n function Line(query, data, options, responsiveOptions) {\n Chartist.Line.super.constructor.call(this,\n query,\n data,\n defaultOptions,\n Chartist.extend({}, defaultOptions, options),\n responsiveOptions);\n }\n\n // Creating line chart type in Chartist namespace\n Chartist.Line = Chartist.Base.extend({\n constructor: Line,\n createChart: createChart\n });\n\n}(this || global, Chartist));\n;/**\n * The bar chart module of Chartist that can be used to draw unipolar or bipolar bar and grouped bar charts.\n *\n * @module Chartist.Bar\n */\n/* global Chartist */\n(function(globalRoot, Chartist){\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n /**\n * Default options in bar charts. Expand the code view to see a detailed list of options with comments.\n *\n * @memberof Chartist.Bar\n */\n var defaultOptions = {\n // Options for X-Axis\n axisX: {\n // The offset of the chart drawing area to the border of the container\n offset: 30,\n // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis.\n position: 'end',\n // Allows you to correct label positioning on this axis by positive or negative x and y offset.\n labelOffset: {\n x: 0,\n y: 0\n },\n // If labels should be shown or not\n showLabel: true,\n // If the axis grid should be drawn or not\n showGrid: true,\n // Interpolation function that allows you to intercept the value from the axis label\n labelInterpolationFnc: Chartist.noop,\n // This value specifies the minimum width in pixel of the scale steps\n scaleMinSpace: 30,\n // Use only integer values (whole numbers) for the scale steps\n onlyInteger: false\n },\n // Options for Y-Axis\n axisY: {\n // The offset of the chart drawing area to the border of the container\n offset: 40,\n // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis.\n position: 'start',\n // Allows you to correct label positioning on this axis by positive or negative x and y offset.\n labelOffset: {\n x: 0,\n y: 0\n },\n // If labels should be shown or not\n showLabel: true,\n // If the axis grid should be drawn or not\n showGrid: true,\n // Interpolation function that allows you to intercept the value from the axis label\n labelInterpolationFnc: Chartist.noop,\n // This value specifies the minimum height in pixel of the scale steps\n scaleMinSpace: 20,\n // Use only integer values (whole numbers) for the scale steps\n onlyInteger: false\n },\n // Specify a fixed width for the chart as a string (i.e. '100px' or '50%')\n width: undefined,\n // Specify a fixed height for the chart as a string (i.e. '100px' or '50%')\n height: undefined,\n // Overriding the natural high of the chart allows you to zoom in or limit the charts highest displayed value\n high: undefined,\n // Overriding the natural low of the chart allows you to zoom in or limit the charts lowest displayed value\n low: undefined,\n // Unless low/high are explicitly set, bar chart will be centered at zero by default. Set referenceValue to null to auto scale.\n referenceValue: 0,\n // Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5}\n chartPadding: {\n top: 15,\n right: 15,\n bottom: 5,\n left: 10\n },\n // Specify the distance in pixel of bars in a group\n seriesBarDistance: 15,\n // If set to true this property will cause the series bars to be stacked. Check the `stackMode` option for further stacking options.\n stackBars: false,\n // If set to 'overlap' this property will force the stacked bars to draw from the zero line.\n // If set to 'accumulate' this property will form a total for each series point. This will also influence the y-axis and the overall bounds of the chart. In stacked mode the seriesBarDistance property will have no effect.\n stackMode: 'accumulate',\n // Inverts the axes of the bar chart in order to draw a horizontal bar chart. Be aware that you also need to invert your axis settings as the Y Axis will now display the labels and the X Axis the values.\n horizontalBars: false,\n // If set to true then each bar will represent a series and the data array is expected to be a one dimensional array of data values rather than a series array of series. This is useful if the bar chart should represent a profile rather than some data over time.\n distributeSeries: false,\n // If true the whole data is reversed including labels, the series order as well as the whole series data arrays.\n reverseData: false,\n // If the bar chart should add a background fill to the .ct-grids group.\n showGridBackground: false,\n // Override the class names that get used to generate the SVG structure of the chart\n classNames: {\n chart: 'ct-chart-bar',\n horizontalBars: 'ct-horizontal-bars',\n label: 'ct-label',\n labelGroup: 'ct-labels',\n series: 'ct-series',\n bar: 'ct-bar',\n grid: 'ct-grid',\n gridGroup: 'ct-grids',\n gridBackground: 'ct-grid-background',\n vertical: 'ct-vertical',\n horizontal: 'ct-horizontal',\n start: 'ct-start',\n end: 'ct-end'\n }\n };\n\n /**\n * Creates a new chart\n *\n */\n function createChart(options) {\n var data;\n var highLow;\n\n if(options.distributeSeries) {\n data = Chartist.normalizeData(this.data, options.reverseData, options.horizontalBars ? 'x' : 'y');\n data.normalized.series = data.normalized.series.map(function(value) {\n return [value];\n });\n } else {\n data = Chartist.normalizeData(this.data, options.reverseData, options.horizontalBars ? 'x' : 'y');\n }\n\n // Create new svg element\n this.svg = Chartist.createSvg(\n this.container,\n options.width,\n options.height,\n options.classNames.chart + (options.horizontalBars ? ' ' + options.classNames.horizontalBars : '')\n );\n\n // Drawing groups in correct order\n var gridGroup = this.svg.elem('g').addClass(options.classNames.gridGroup);\n var seriesGroup = this.svg.elem('g');\n var labelGroup = this.svg.elem('g').addClass(options.classNames.labelGroup);\n\n if(options.stackBars && data.normalized.series.length !== 0) {\n\n // If stacked bars we need to calculate the high low from stacked values from each series\n var serialSums = Chartist.serialMap(data.normalized.series, function serialSums() {\n return Array.prototype.slice.call(arguments).map(function(value) {\n return value;\n }).reduce(function(prev, curr) {\n return {\n x: prev.x + (curr && curr.x) || 0,\n y: prev.y + (curr && curr.y) || 0\n };\n }, {x: 0, y: 0});\n });\n\n highLow = Chartist.getHighLow([serialSums], options, options.horizontalBars ? 'x' : 'y');\n\n } else {\n\n highLow = Chartist.getHighLow(data.normalized.series, options, options.horizontalBars ? 'x' : 'y');\n }\n\n // Overrides of high / low from settings\n highLow.high = +options.high || (options.high === 0 ? 0 : highLow.high);\n highLow.low = +options.low || (options.low === 0 ? 0 : highLow.low);\n\n var chartRect = Chartist.createChartRect(this.svg, options, defaultOptions.padding);\n\n var valueAxis,\n labelAxisTicks,\n labelAxis,\n axisX,\n axisY;\n\n // We need to set step count based on some options combinations\n if(options.distributeSeries && options.stackBars) {\n // If distributed series are enabled and bars need to be stacked, we'll only have one bar and therefore should\n // use only the first label for the step axis\n labelAxisTicks = data.normalized.labels.slice(0, 1);\n } else {\n // If distributed series are enabled but stacked bars aren't, we should use the series labels\n // If we are drawing a regular bar chart with two dimensional series data, we just use the labels array\n // as the bars are normalized\n labelAxisTicks = data.normalized.labels;\n }\n\n // Set labelAxis and valueAxis based on the horizontalBars setting. This setting will flip the axes if necessary.\n if(options.horizontalBars) {\n if(options.axisX.type === undefined) {\n valueAxis = axisX = new Chartist.AutoScaleAxis(Chartist.Axis.units.x, data.normalized.series, chartRect, Chartist.extend({}, options.axisX, {\n highLow: highLow,\n referenceValue: 0\n }));\n } else {\n valueAxis = axisX = options.axisX.type.call(Chartist, Chartist.Axis.units.x, data.normalized.series, chartRect, Chartist.extend({}, options.axisX, {\n highLow: highLow,\n referenceValue: 0\n }));\n }\n\n if(options.axisY.type === undefined) {\n labelAxis = axisY = new Chartist.StepAxis(Chartist.Axis.units.y, data.normalized.series, chartRect, {\n ticks: labelAxisTicks\n });\n } else {\n labelAxis = axisY = options.axisY.type.call(Chartist, Chartist.Axis.units.y, data.normalized.series, chartRect, options.axisY);\n }\n } else {\n if(options.axisX.type === undefined) {\n labelAxis = axisX = new Chartist.StepAxis(Chartist.Axis.units.x, data.normalized.series, chartRect, {\n ticks: labelAxisTicks\n });\n } else {\n labelAxis = axisX = options.axisX.type.call(Chartist, Chartist.Axis.units.x, data.normalized.series, chartRect, options.axisX);\n }\n\n if(options.axisY.type === undefined) {\n valueAxis = axisY = new Chartist.AutoScaleAxis(Chartist.Axis.units.y, data.normalized.series, chartRect, Chartist.extend({}, options.axisY, {\n highLow: highLow,\n referenceValue: 0\n }));\n } else {\n valueAxis = axisY = options.axisY.type.call(Chartist, Chartist.Axis.units.y, data.normalized.series, chartRect, Chartist.extend({}, options.axisY, {\n highLow: highLow,\n referenceValue: 0\n }));\n }\n }\n\n // Projected 0 point\n var zeroPoint = options.horizontalBars ? (chartRect.x1 + valueAxis.projectValue(0)) : (chartRect.y1 - valueAxis.projectValue(0));\n // Used to track the screen coordinates of stacked bars\n var stackedBarValues = [];\n\n labelAxis.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter);\n valueAxis.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter);\n\n if (options.showGridBackground) {\n Chartist.createGridBackground(gridGroup, chartRect, options.classNames.gridBackground, this.eventEmitter);\n }\n\n // Draw the series\n data.raw.series.forEach(function(series, seriesIndex) {\n // Calculating bi-polar value of index for seriesOffset. For i = 0..4 biPol will be -1.5, -0.5, 0.5, 1.5 etc.\n var biPol = seriesIndex - (data.raw.series.length - 1) / 2;\n // Half of the period width between vertical grid lines used to position bars\n var periodHalfLength;\n // Current series SVG element\n var seriesElement;\n\n // We need to set periodHalfLength based on some options combinations\n if(options.distributeSeries && !options.stackBars) {\n // If distributed series are enabled but stacked bars aren't, we need to use the length of the normaizedData array\n // which is the series count and divide by 2\n periodHalfLength = labelAxis.axisLength / data.normalized.series.length / 2;\n } else if(options.distributeSeries && options.stackBars) {\n // If distributed series and stacked bars are enabled we'll only get one bar so we should just divide the axis\n // length by 2\n periodHalfLength = labelAxis.axisLength / 2;\n } else {\n // On regular bar charts we should just use the series length\n periodHalfLength = labelAxis.axisLength / data.normalized.series[seriesIndex].length / 2;\n }\n\n // Adding the series group to the series element\n seriesElement = seriesGroup.elem('g');\n\n // Write attributes to series group element. If series name or meta is undefined the attributes will not be written\n seriesElement.attr({\n 'ct:series-name': series.name,\n 'ct:meta': Chartist.serialize(series.meta)\n });\n\n // Use series class from series data or if not set generate one\n seriesElement.addClass([\n options.classNames.series,\n (series.className || options.classNames.series + '-' + Chartist.alphaNumerate(seriesIndex))\n ].join(' '));\n\n data.normalized.series[seriesIndex].forEach(function(value, valueIndex) {\n var projected,\n bar,\n previousStack,\n labelAxisValueIndex;\n\n // We need to set labelAxisValueIndex based on some options combinations\n if(options.distributeSeries && !options.stackBars) {\n // If distributed series are enabled but stacked bars aren't, we can use the seriesIndex for later projection\n // on the step axis for label positioning\n labelAxisValueIndex = seriesIndex;\n } else if(options.distributeSeries && options.stackBars) {\n // If distributed series and stacked bars are enabled, we will only get one bar and therefore always use\n // 0 for projection on the label step axis\n labelAxisValueIndex = 0;\n } else {\n // On regular bar charts we just use the value index to project on the label step axis\n labelAxisValueIndex = valueIndex;\n }\n\n // We need to transform coordinates differently based on the chart layout\n if(options.horizontalBars) {\n projected = {\n x: chartRect.x1 + valueAxis.projectValue(value && value.x ? value.x : 0, valueIndex, data.normalized.series[seriesIndex]),\n y: chartRect.y1 - labelAxis.projectValue(value && value.y ? value.y : 0, labelAxisValueIndex, data.normalized.series[seriesIndex])\n };\n } else {\n projected = {\n x: chartRect.x1 + labelAxis.projectValue(value && value.x ? value.x : 0, labelAxisValueIndex, data.normalized.series[seriesIndex]),\n y: chartRect.y1 - valueAxis.projectValue(value && value.y ? value.y : 0, valueIndex, data.normalized.series[seriesIndex])\n }\n }\n\n // If the label axis is a step based axis we will offset the bar into the middle of between two steps using\n // the periodHalfLength value. Also we do arrange the different series so that they align up to each other using\n // the seriesBarDistance. If we don't have a step axis, the bar positions can be chosen freely so we should not\n // add any automated positioning.\n if(labelAxis instanceof Chartist.StepAxis) {\n // Offset to center bar between grid lines, but only if the step axis is not stretched\n if(!labelAxis.options.stretch) {\n projected[labelAxis.units.pos] += periodHalfLength * (options.horizontalBars ? -1 : 1);\n }\n // Using bi-polar offset for multiple series if no stacked bars or series distribution is used\n projected[labelAxis.units.pos] += (options.stackBars || options.distributeSeries) ? 0 : biPol * options.seriesBarDistance * (options.horizontalBars ? -1 : 1);\n }\n\n // Enter value in stacked bar values used to remember previous screen value for stacking up bars\n previousStack = stackedBarValues[valueIndex] || zeroPoint;\n stackedBarValues[valueIndex] = previousStack - (zeroPoint - projected[labelAxis.counterUnits.pos]);\n\n // Skip if value is undefined\n if(value === undefined) {\n return;\n }\n\n var positions = {};\n positions[labelAxis.units.pos + '1'] = projected[labelAxis.units.pos];\n positions[labelAxis.units.pos + '2'] = projected[labelAxis.units.pos];\n\n if(options.stackBars && (options.stackMode === 'accumulate' || !options.stackMode)) {\n // Stack mode: accumulate (default)\n // If bars are stacked we use the stackedBarValues reference and otherwise base all bars off the zero line\n // We want backwards compatibility, so the expected fallback without the 'stackMode' option\n // to be the original behaviour (accumulate)\n positions[labelAxis.counterUnits.pos + '1'] = previousStack;\n positions[labelAxis.counterUnits.pos + '2'] = stackedBarValues[valueIndex];\n } else {\n // Draw from the zero line normally\n // This is also the same code for Stack mode: overlap\n positions[labelAxis.counterUnits.pos + '1'] = zeroPoint;\n positions[labelAxis.counterUnits.pos + '2'] = projected[labelAxis.counterUnits.pos];\n }\n\n // Limit x and y so that they are within the chart rect\n positions.x1 = Math.min(Math.max(positions.x1, chartRect.x1), chartRect.x2);\n positions.x2 = Math.min(Math.max(positions.x2, chartRect.x1), chartRect.x2);\n positions.y1 = Math.min(Math.max(positions.y1, chartRect.y2), chartRect.y1);\n positions.y2 = Math.min(Math.max(positions.y2, chartRect.y2), chartRect.y1);\n\n var metaData = Chartist.getMetaData(series, valueIndex);\n\n // Create bar element\n bar = seriesElement.elem('line', positions, options.classNames.bar).attr({\n 'ct:value': [value.x, value.y].filter(Chartist.isNumeric).join(','),\n 'ct:meta': Chartist.serialize(metaData)\n });\n\n this.eventEmitter.emit('draw', Chartist.extend({\n type: 'bar',\n value: value,\n index: valueIndex,\n meta: metaData,\n series: series,\n seriesIndex: seriesIndex,\n axisX: axisX,\n axisY: axisY,\n chartRect: chartRect,\n group: seriesElement,\n element: bar\n }, positions));\n }.bind(this));\n }.bind(this));\n\n this.eventEmitter.emit('created', {\n bounds: valueAxis.bounds,\n chartRect: chartRect,\n axisX: axisX,\n axisY: axisY,\n svg: this.svg,\n options: options\n });\n }\n\n /**\n * This method creates a new bar chart and returns API object that you can use for later changes.\n *\n * @memberof Chartist.Bar\n * @param {String|Node} query A selector query string or directly a DOM element\n * @param {Object} data The data object that needs to consist of a labels and a series array\n * @param {Object} [options] The options object with options that override the default options. Check the examples for a detailed list.\n * @param {Array} [responsiveOptions] Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]]\n * @return {Object} An object which exposes the API for the created chart\n *\n * @example\n * // Create a simple bar chart\n * var data = {\n * labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],\n * series: [\n * [5, 2, 4, 2, 0]\n * ]\n * };\n *\n * // In the global name space Chartist we call the Bar function to initialize a bar chart. As a first parameter we pass in a selector where we would like to get our chart created and as a second parameter we pass our data object.\n * new Chartist.Bar('.ct-chart', data);\n *\n * @example\n * // This example creates a bipolar grouped bar chart where the boundaries are limitted to -10 and 10\n * new Chartist.Bar('.ct-chart', {\n * labels: [1, 2, 3, 4, 5, 6, 7],\n * series: [\n * [1, 3, 2, -5, -3, 1, -6],\n * [-5, -2, -4, -1, 2, -3, 1]\n * ]\n * }, {\n * seriesBarDistance: 12,\n * low: -10,\n * high: 10\n * });\n *\n */\n function Bar(query, data, options, responsiveOptions) {\n Chartist.Bar.super.constructor.call(this,\n query,\n data,\n defaultOptions,\n Chartist.extend({}, defaultOptions, options),\n responsiveOptions);\n }\n\n // Creating bar chart type in Chartist namespace\n Chartist.Bar = Chartist.Base.extend({\n constructor: Bar,\n createChart: createChart\n });\n\n}(this || global, Chartist));\n;/**\n * The pie chart module of Chartist that can be used to draw pie, donut or gauge charts\n *\n * @module Chartist.Pie\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n /**\n * Default options in line charts. Expand the code view to see a detailed list of options with comments.\n *\n * @memberof Chartist.Pie\n */\n var defaultOptions = {\n // Specify a fixed width for the chart as a string (i.e. '100px' or '50%')\n width: undefined,\n // Specify a fixed height for the chart as a string (i.e. '100px' or '50%')\n height: undefined,\n // Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5}\n chartPadding: 5,\n // Override the class names that are used to generate the SVG structure of the chart\n classNames: {\n chartPie: 'ct-chart-pie',\n chartDonut: 'ct-chart-donut',\n series: 'ct-series',\n slicePie: 'ct-slice-pie',\n sliceDonut: 'ct-slice-donut',\n sliceDonutSolid: 'ct-slice-donut-solid',\n label: 'ct-label'\n },\n // The start angle of the pie chart in degrees where 0 points north. A higher value offsets the start angle clockwise.\n startAngle: 0,\n // An optional total you can specify. By specifying a total value, the sum of the values in the series must be this total in order to draw a full pie. You can use this parameter to draw only parts of a pie or gauge charts.\n total: undefined,\n // If specified the donut CSS classes will be used and strokes will be drawn instead of pie slices.\n donut: false,\n // If specified the donut segments will be drawn as shapes instead of strokes.\n donutSolid: false,\n // Specify the donut stroke width, currently done in javascript for convenience. May move to CSS styles in the future.\n // This option can be set as number or string to specify a relative width (i.e. 100 or '30%').\n donutWidth: 60,\n // If a label should be shown or not\n showLabel: true,\n // Label position offset from the standard position which is half distance of the radius. This value can be either positive or negative. Positive values will position the label away from the center.\n labelOffset: 0,\n // This option can be set to 'inside', 'outside' or 'center'. Positioned with 'inside' the labels will be placed on half the distance of the radius to the border of the Pie by respecting the 'labelOffset'. The 'outside' option will place the labels at the border of the pie and 'center' will place the labels in the absolute center point of the chart. The 'center' option only makes sense in conjunction with the 'labelOffset' option.\n labelPosition: 'inside',\n // An interpolation function for the label value\n labelInterpolationFnc: Chartist.noop,\n // Label direction can be 'neutral', 'explode' or 'implode'. The labels anchor will be positioned based on those settings as well as the fact if the labels are on the right or left side of the center of the chart. Usually explode is useful when labels are positioned far away from the center.\n labelDirection: 'neutral',\n // If true the whole data is reversed including labels, the series order as well as the whole series data arrays.\n reverseData: false,\n // If true empty values will be ignored to avoid drawing unncessary slices and labels\n ignoreEmptyValues: false\n };\n\n /**\n * Determines SVG anchor position based on direction and center parameter\n *\n * @param center\n * @param label\n * @param direction\n * @return {string}\n */\n function determineAnchorPosition(center, label, direction) {\n var toTheRight = label.x > center.x;\n\n if(toTheRight && direction === 'explode' ||\n !toTheRight && direction === 'implode') {\n return 'start';\n } else if(toTheRight && direction === 'implode' ||\n !toTheRight && direction === 'explode') {\n return 'end';\n } else {\n return 'middle';\n }\n }\n\n /**\n * Creates the pie chart\n *\n * @param options\n */\n function createChart(options) {\n var data = Chartist.normalizeData(this.data);\n var seriesGroups = [],\n labelsGroup,\n chartRect,\n radius,\n labelRadius,\n totalDataSum,\n startAngle = options.startAngle;\n\n // Create SVG.js draw\n this.svg = Chartist.createSvg(this.container, options.width, options.height,options.donut ? options.classNames.chartDonut : options.classNames.chartPie);\n // Calculate charting rect\n chartRect = Chartist.createChartRect(this.svg, options, defaultOptions.padding);\n // Get biggest circle radius possible within chartRect\n radius = Math.min(chartRect.width() / 2, chartRect.height() / 2);\n // Calculate total of all series to get reference value or use total reference from optional options\n totalDataSum = options.total || data.normalized.series.reduce(function(previousValue, currentValue) {\n return previousValue + currentValue;\n }, 0);\n\n var donutWidth = Chartist.quantity(options.donutWidth);\n if (donutWidth.unit === '%') {\n donutWidth.value *= radius / 100;\n }\n\n // If this is a donut chart we need to adjust our radius to enable strokes to be drawn inside\n // Unfortunately this is not possible with the current SVG Spec\n // See this proposal for more details: http://lists.w3.org/Archives/Public/www-svg/2003Oct/0000.html\n radius -= options.donut && !options.donutSolid ? donutWidth.value / 2 : 0;\n\n // If labelPosition is set to `outside` or a donut chart is drawn then the label position is at the radius,\n // if regular pie chart it's half of the radius\n if(options.labelPosition === 'outside' || options.donut && !options.donutSolid) {\n labelRadius = radius;\n } else if(options.labelPosition === 'center') {\n // If labelPosition is center we start with 0 and will later wait for the labelOffset\n labelRadius = 0;\n } else if(options.donutSolid) {\n labelRadius = radius - donutWidth.value / 2;\n } else {\n // Default option is 'inside' where we use half the radius so the label will be placed in the center of the pie\n // slice\n labelRadius = radius / 2;\n }\n // Add the offset to the labelRadius where a negative offset means closed to the center of the chart\n labelRadius += options.labelOffset;\n\n // Calculate end angle based on total sum and current data value and offset with padding\n var center = {\n x: chartRect.x1 + chartRect.width() / 2,\n y: chartRect.y2 + chartRect.height() / 2\n };\n\n // Check if there is only one non-zero value in the series array.\n var hasSingleValInSeries = data.raw.series.filter(function(val) {\n return val.hasOwnProperty('value') ? val.value !== 0 : val !== 0;\n }).length === 1;\n\n // Creating the series groups\n data.raw.series.forEach(function(series, index) {\n seriesGroups[index] = this.svg.elem('g', null, null);\n }.bind(this));\n //if we need to show labels we create the label group now\n if(options.showLabel) {\n labelsGroup = this.svg.elem('g', null, null);\n }\n\n // Draw the series\n // initialize series groups\n data.raw.series.forEach(function(series, index) {\n // If current value is zero and we are ignoring empty values then skip to next value\n if (data.normalized.series[index] === 0 && options.ignoreEmptyValues) return;\n\n // If the series is an object and contains a name or meta data we add a custom attribute\n seriesGroups[index].attr({\n 'ct:series-name': series.name\n });\n\n // Use series class from series data or if not set generate one\n seriesGroups[index].addClass([\n options.classNames.series,\n (series.className || options.classNames.series + '-' + Chartist.alphaNumerate(index))\n ].join(' '));\n\n // If the whole dataset is 0 endAngle should be zero. Can't divide by 0.\n var endAngle = (totalDataSum > 0 ? startAngle + data.normalized.series[index] / totalDataSum * 360 : 0);\n\n // Use slight offset so there are no transparent hairline issues\n var overlappigStartAngle = Math.max(0, startAngle - (index === 0 || hasSingleValInSeries ? 0 : 0.2));\n\n // If we need to draw the arc for all 360 degrees we need to add a hack where we close the circle\n // with Z and use 359.99 degrees\n if(endAngle - overlappigStartAngle >= 359.99) {\n endAngle = overlappigStartAngle + 359.99;\n }\n\n var start = Chartist.polarToCartesian(center.x, center.y, radius, overlappigStartAngle),\n end = Chartist.polarToCartesian(center.x, center.y, radius, endAngle);\n\n var innerStart,\n innerEnd,\n donutSolidRadius;\n\n // Create a new path element for the pie chart. If this isn't a donut chart we should close the path for a correct stroke\n var path = new Chartist.Svg.Path(!options.donut || options.donutSolid)\n .move(end.x, end.y)\n .arc(radius, radius, 0, endAngle - startAngle > 180, 0, start.x, start.y);\n\n // If regular pie chart (no donut) we add a line to the center of the circle for completing the pie\n if(!options.donut) {\n path.line(center.x, center.y);\n } else if (options.donutSolid) {\n donutSolidRadius = radius - donutWidth.value;\n innerStart = Chartist.polarToCartesian(center.x, center.y, donutSolidRadius, startAngle - (index === 0 || hasSingleValInSeries ? 0 : 0.2));\n innerEnd = Chartist.polarToCartesian(center.x, center.y, donutSolidRadius, endAngle);\n path.line(innerStart.x, innerStart.y);\n path.arc(donutSolidRadius, donutSolidRadius, 0, endAngle - startAngle > 180, 1, innerEnd.x, innerEnd.y);\n }\n\n // Create the SVG path\n // If this is a donut chart we add the donut class, otherwise just a regular slice\n var pathClassName = options.classNames.slicePie;\n if (options.donut) {\n pathClassName = options.classNames.sliceDonut;\n if (options.donutSolid) {\n pathClassName = options.classNames.sliceDonutSolid;\n }\n }\n var pathElement = seriesGroups[index].elem('path', {\n d: path.stringify()\n }, pathClassName);\n\n // Adding the pie series value to the path\n pathElement.attr({\n 'ct:value': data.normalized.series[index],\n 'ct:meta': Chartist.serialize(series.meta)\n });\n\n // If this is a donut, we add the stroke-width as style attribute\n if(options.donut && !options.donutSolid) {\n pathElement._node.style.strokeWidth = donutWidth.value + 'px';\n }\n\n // Fire off draw event\n this.eventEmitter.emit('draw', {\n type: 'slice',\n value: data.normalized.series[index],\n totalDataSum: totalDataSum,\n index: index,\n meta: series.meta,\n series: series,\n group: seriesGroups[index],\n element: pathElement,\n path: path.clone(),\n center: center,\n radius: radius,\n startAngle: startAngle,\n endAngle: endAngle\n });\n\n // If we need to show labels we need to add the label for this slice now\n if(options.showLabel) {\n var labelPosition;\n if(data.raw.series.length === 1) {\n // If we have only 1 series, we can position the label in the center of the pie\n labelPosition = {\n x: center.x,\n y: center.y\n };\n } else {\n // Position at the labelRadius distance from center and between start and end angle\n labelPosition = Chartist.polarToCartesian(\n center.x,\n center.y,\n labelRadius,\n startAngle + (endAngle - startAngle) / 2\n );\n }\n\n var rawValue;\n if(data.normalized.labels && !Chartist.isFalseyButZero(data.normalized.labels[index])) {\n rawValue = data.normalized.labels[index];\n } else {\n rawValue = data.normalized.series[index];\n }\n\n var interpolatedValue = options.labelInterpolationFnc(rawValue, index);\n\n if(interpolatedValue || interpolatedValue === 0) {\n var labelElement = labelsGroup.elem('text', {\n dx: labelPosition.x,\n dy: labelPosition.y,\n 'text-anchor': determineAnchorPosition(center, labelPosition, options.labelDirection)\n }, options.classNames.label).text('' + interpolatedValue);\n\n // Fire off draw event\n this.eventEmitter.emit('draw', {\n type: 'label',\n index: index,\n group: labelsGroup,\n element: labelElement,\n text: '' + interpolatedValue,\n x: labelPosition.x,\n y: labelPosition.y\n });\n }\n }\n\n // Set next startAngle to current endAngle.\n // (except for last slice)\n startAngle = endAngle;\n }.bind(this));\n\n this.eventEmitter.emit('created', {\n chartRect: chartRect,\n svg: this.svg,\n options: options\n });\n }\n\n /**\n * This method creates a new pie chart and returns an object that can be used to redraw the chart.\n *\n * @memberof Chartist.Pie\n * @param {String|Node} query A selector query string or directly a DOM element\n * @param {Object} data The data object in the pie chart needs to have a series property with a one dimensional data array. The values will be normalized against each other and don't necessarily need to be in percentage. The series property can also be an array of value objects that contain a value property and a className property to override the CSS class name for the series group.\n * @param {Object} [options] The options object with options that override the default options. Check the examples for a detailed list.\n * @param {Array} [responsiveOptions] Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]]\n * @return {Object} An object with a version and an update method to manually redraw the chart\n *\n * @example\n * // Simple pie chart example with four series\n * new Chartist.Pie('.ct-chart', {\n * series: [10, 2, 4, 3]\n * });\n *\n * @example\n * // Drawing a donut chart\n * new Chartist.Pie('.ct-chart', {\n * series: [10, 2, 4, 3]\n * }, {\n * donut: true\n * });\n *\n * @example\n * // Using donut, startAngle and total to draw a gauge chart\n * new Chartist.Pie('.ct-chart', {\n * series: [20, 10, 30, 40]\n * }, {\n * donut: true,\n * donutWidth: 20,\n * startAngle: 270,\n * total: 200\n * });\n *\n * @example\n * // Drawing a pie chart with padding and labels that are outside the pie\n * new Chartist.Pie('.ct-chart', {\n * series: [20, 10, 30, 40]\n * }, {\n * chartPadding: 30,\n * labelOffset: 50,\n * labelDirection: 'explode'\n * });\n *\n * @example\n * // Overriding the class names for individual series as well as a name and meta data.\n * // The name will be written as ct:series-name attribute and the meta data will be serialized and written\n * // to a ct:meta attribute.\n * new Chartist.Pie('.ct-chart', {\n * series: [{\n * value: 20,\n * name: 'Series 1',\n * className: 'my-custom-class-one',\n * meta: 'Meta One'\n * }, {\n * value: 10,\n * name: 'Series 2',\n * className: 'my-custom-class-two',\n * meta: 'Meta Two'\n * }, {\n * value: 70,\n * name: 'Series 3',\n * className: 'my-custom-class-three',\n * meta: 'Meta Three'\n * }]\n * });\n */\n function Pie(query, data, options, responsiveOptions) {\n Chartist.Pie.super.constructor.call(this,\n query,\n data,\n defaultOptions,\n Chartist.extend({}, defaultOptions, options),\n responsiveOptions);\n }\n\n // Creating pie chart type in Chartist namespace\n Chartist.Pie = Chartist.Base.extend({\n constructor: Pie,\n createChart: createChart,\n determineAnchorPosition: determineAnchorPosition\n });\n\n}(this || global, Chartist));\n\nreturn Chartist;\n\n}));\n"]} \ No newline at end of file diff --git a/dist/scss/chartist.scss b/dist/scss/chartist.scss deleted file mode 100644 index e5c6b420e..000000000 --- a/dist/scss/chartist.scss +++ /dev/null @@ -1,241 +0,0 @@ -@import "settings/chartist-settings"; - -@mixin ct-responsive-svg-container($width: 100%, $ratio: $ct-container-ratio) { - display: block; - position: relative; - width: $width; - - &:before { - display: block; - float: left; - content: ""; - width: 0; - height: 0; - padding-bottom: $ratio * 100%; - } - - &:after { - content: ""; - display: table; - clear: both; - } - - > svg { - display: block; - position: absolute; - top: 0; - left: 0; - } -} - -@mixin ct-align-justify($ct-text-align: $ct-text-align, $ct-text-justify: $ct-text-justify) { - -webkit-box-align: $ct-text-align; - -webkit-align-items: $ct-text-align; - -ms-flex-align: $ct-text-align; - align-items: $ct-text-align; - -webkit-box-pack: $ct-text-justify; - -webkit-justify-content: $ct-text-justify; - -ms-flex-pack: $ct-text-justify; - justify-content: $ct-text-justify; - // Fallback to text-align for non-flex browsers - @if($ct-text-justify == 'flex-start') { - text-align: left; - } @else if ($ct-text-justify == 'flex-end') { - text-align: right; - } @else { - text-align: center; - } -} - -@mixin ct-flex() { - // Fallback to block - display: block; - display: -webkit-box; - display: -moz-box; - display: -ms-flexbox; - display: -webkit-flex; - display: flex; -} - -@mixin ct-chart-label($ct-text-color: $ct-text-color, $ct-text-size: $ct-text-size, $ct-text-line-height: $ct-text-line-height) { - fill: $ct-text-color; - color: $ct-text-color; - font-size: $ct-text-size; - line-height: $ct-text-line-height; -} - -@mixin ct-chart-grid($ct-grid-color: $ct-grid-color, $ct-grid-width: $ct-grid-width, $ct-grid-dasharray: $ct-grid-dasharray) { - stroke: $ct-grid-color; - stroke-width: $ct-grid-width; - - @if ($ct-grid-dasharray) { - stroke-dasharray: $ct-grid-dasharray; - } -} - -@mixin ct-chart-point($ct-point-size: $ct-point-size, $ct-point-shape: $ct-point-shape) { - stroke-width: $ct-point-size; - stroke-linecap: $ct-point-shape; -} - -@mixin ct-chart-line($ct-line-width: $ct-line-width, $ct-line-dasharray: $ct-line-dasharray) { - fill: none; - stroke-width: $ct-line-width; - - @if ($ct-line-dasharray) { - stroke-dasharray: $ct-line-dasharray; - } -} - -@mixin ct-chart-area($ct-area-opacity: $ct-area-opacity) { - stroke: none; - fill-opacity: $ct-area-opacity; -} - -@mixin ct-chart-bar($ct-bar-width: $ct-bar-width) { - fill: none; - stroke-width: $ct-bar-width; -} - -@mixin ct-chart-donut($ct-donut-width: $ct-donut-width) { - fill: none; - stroke-width: $ct-donut-width; -} - -@mixin ct-chart-series-color($color) { - .#{$ct-class-point}, .#{$ct-class-line}, .#{$ct-class-bar}, .#{$ct-class-slice-donut} { - stroke: $color; - } - - .#{$ct-class-slice-pie}, .#{$ct-class-slice-donut-solid}, .#{$ct-class-area} { - fill: $color; - } -} - -@mixin ct-chart($ct-container-ratio: $ct-container-ratio, $ct-text-color: $ct-text-color, $ct-text-size: $ct-text-size, $ct-grid-color: $ct-grid-color, $ct-grid-width: $ct-grid-width, $ct-grid-dasharray: $ct-grid-dasharray, $ct-point-size: $ct-point-size, $ct-point-shape: $ct-point-shape, $ct-line-width: $ct-line-width, $ct-bar-width: $ct-bar-width, $ct-donut-width: $ct-donut-width, $ct-series-names: $ct-series-names, $ct-series-colors: $ct-series-colors) { - - .#{$ct-class-label} { - @include ct-chart-label($ct-text-color, $ct-text-size); - } - - .#{$ct-class-chart-line} .#{$ct-class-label}, - .#{$ct-class-chart-bar} .#{$ct-class-label} { - @include ct-flex(); - } - - .#{$ct-class-chart-pie} .#{$ct-class-label}, - .#{$ct-class-chart-donut} .#{$ct-class-label} { - dominant-baseline: central; - } - - .#{$ct-class-label}.#{$ct-class-horizontal}.#{$ct-class-start} { - @include ct-align-justify(flex-end, flex-start); - // Fallback for browsers that don't support foreignObjects - text-anchor: start; - } - - .#{$ct-class-label}.#{$ct-class-horizontal}.#{$ct-class-end} { - @include ct-align-justify(flex-start, flex-start); - // Fallback for browsers that don't support foreignObjects - text-anchor: start; - } - - .#{$ct-class-label}.#{$ct-class-vertical}.#{$ct-class-start} { - @include ct-align-justify(flex-end, flex-end); - // Fallback for browsers that don't support foreignObjects - text-anchor: end; - } - - .#{$ct-class-label}.#{$ct-class-vertical}.#{$ct-class-end} { - @include ct-align-justify(flex-end, flex-start); - // Fallback for browsers that don't support foreignObjects - text-anchor: start; - } - - .#{$ct-class-chart-bar} .#{$ct-class-label}.#{$ct-class-horizontal}.#{$ct-class-start} { - @include ct-align-justify(flex-end, center); - // Fallback for browsers that don't support foreignObjects - text-anchor: start; - } - - .#{$ct-class-chart-bar} .#{$ct-class-label}.#{$ct-class-horizontal}.#{$ct-class-end} { - @include ct-align-justify(flex-start, center); - // Fallback for browsers that don't support foreignObjects - text-anchor: start; - } - - .#{$ct-class-chart-bar}.#{$ct-class-horizontal-bars} .#{$ct-class-label}.#{$ct-class-horizontal}.#{$ct-class-start} { - @include ct-align-justify(flex-end, flex-start); - // Fallback for browsers that don't support foreignObjects - text-anchor: start; - } - - .#{$ct-class-chart-bar}.#{$ct-class-horizontal-bars} .#{$ct-class-label}.#{$ct-class-horizontal}.#{$ct-class-end} { - @include ct-align-justify(flex-start, flex-start); - // Fallback for browsers that don't support foreignObjects - text-anchor: start; - } - - .#{$ct-class-chart-bar}.#{$ct-class-horizontal-bars} .#{$ct-class-label}.#{$ct-class-vertical}.#{$ct-class-start} { - //@include ct-chart-label($ct-text-color, $ct-text-size, center, $ct-vertical-text-justify); - @include ct-align-justify(center, flex-end); - // Fallback for browsers that don't support foreignObjects - text-anchor: end; - } - - .#{$ct-class-chart-bar}.#{$ct-class-horizontal-bars} .#{$ct-class-label}.#{$ct-class-vertical}.#{$ct-class-end} { - @include ct-align-justify(center, flex-start); - // Fallback for browsers that don't support foreignObjects - text-anchor: end; - } - - .#{$ct-class-grid} { - @include ct-chart-grid($ct-grid-color, $ct-grid-width, $ct-grid-dasharray); - } - - .#{$ct-class-grid-background} { - fill: $ct-grid-background-fill; - } - - .#{$ct-class-point} { - @include ct-chart-point($ct-point-size, $ct-point-shape); - } - - .#{$ct-class-line} { - @include ct-chart-line($ct-line-width); - } - - .#{$ct-class-area} { - @include ct-chart-area(); - } - - .#{$ct-class-bar} { - @include ct-chart-bar($ct-bar-width); - } - - .#{$ct-class-slice-donut} { - @include ct-chart-donut($ct-donut-width); - } - - @if $ct-include-colored-series { - @for $i from 0 to length($ct-series-names) { - .#{$ct-class-series}-#{nth($ct-series-names, $i + 1)} { - $color: nth($ct-series-colors, $i + 1); - - @include ct-chart-series-color($color); - } - } - } -} - -@if $ct-include-classes { - @include ct-chart(); - - @if $ct-include-alternative-responsive-containers { - @for $i from 0 to length($ct-scales-names) { - .#{nth($ct-scales-names, $i + 1)} { - @include ct-responsive-svg-container($ratio: nth($ct-scales, $i + 1)); - } - } - } -} diff --git a/dist/scss/settings/_chartist-settings.scss b/dist/scss/settings/_chartist-settings.scss deleted file mode 100644 index def297cab..000000000 --- a/dist/scss/settings/_chartist-settings.scss +++ /dev/null @@ -1,88 +0,0 @@ -// Scales for responsive SVG containers -$ct-scales: ((1), (15/16), (8/9), (5/6), (4/5), (3/4), (2/3), (5/8), (1/1.618), (3/5), (9/16), (8/15), (1/2), (2/5), (3/8), (1/3), (1/4)) !default; -$ct-scales-names: (ct-square, ct-minor-second, ct-major-second, ct-minor-third, ct-major-third, ct-perfect-fourth, ct-perfect-fifth, ct-minor-sixth, ct-golden-section, ct-major-sixth, ct-minor-seventh, ct-major-seventh, ct-octave, ct-major-tenth, ct-major-eleventh, ct-major-twelfth, ct-double-octave) !default; - -// Class names to be used when generating CSS -$ct-class-chart: ct-chart !default; -$ct-class-chart-line: ct-chart-line !default; -$ct-class-chart-bar: ct-chart-bar !default; -$ct-class-horizontal-bars: ct-horizontal-bars !default; -$ct-class-chart-pie: ct-chart-pie !default; -$ct-class-chart-donut: ct-chart-donut !default; -$ct-class-label: ct-label !default; -$ct-class-series: ct-series !default; -$ct-class-line: ct-line !default; -$ct-class-point: ct-point !default; -$ct-class-area: ct-area !default; -$ct-class-bar: ct-bar !default; -$ct-class-slice-pie: ct-slice-pie !default; -$ct-class-slice-donut: ct-slice-donut !default; -$ct-class-slice-donut-solid: ct-slice-donut-solid !default; -$ct-class-grid: ct-grid !default; -$ct-class-grid-background: ct-grid-background !default; -$ct-class-vertical: ct-vertical !default; -$ct-class-horizontal: ct-horizontal !default; -$ct-class-start: ct-start !default; -$ct-class-end: ct-end !default; - -// Container ratio -$ct-container-ratio: (1/1.618) !default; - -// Text styles for labels -$ct-text-color: rgba(0, 0, 0, 0.4) !default; -$ct-text-size: 0.75rem !default; -$ct-text-align: flex-start !default; -$ct-text-justify: flex-start !default; -$ct-text-line-height: 1; - -// Grid styles -$ct-grid-color: rgba(0, 0, 0, 0.2) !default; -$ct-grid-dasharray: 2px !default; -$ct-grid-width: 1px !default; -$ct-grid-background-fill: none !default; - -// Line chart properties -$ct-line-width: 4px !default; -$ct-line-dasharray: false !default; -$ct-point-size: 10px !default; -// Line chart point, can be either round or square -$ct-point-shape: round !default; -// Area fill transparency between 0 and 1 -$ct-area-opacity: 0.1 !default; - -// Bar chart bar width -$ct-bar-width: 10px !default; - -// Donut width (If donut width is to big it can cause issues where the shape gets distorted) -$ct-donut-width: 60px !default; - -// If set to true it will include the default classes and generate CSS output. If you're planning to use the mixins you -// should set this property to false -$ct-include-classes: true !default; - -// If this is set to true the CSS will contain colored series. You can extend or change the color with the -// properties below -$ct-include-colored-series: $ct-include-classes !default; - -// If set to true this will include all responsive container variations using the scales defined at the top of the script -$ct-include-alternative-responsive-containers: $ct-include-classes !default; - -// Series names and colors. This can be extended or customized as desired. Just add more series and colors. -$ct-series-names: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) !default; -$ct-series-colors: ( - #d70206, - #f05b4f, - #f4c63d, - #d17905, - #453d3f, - #59922b, - #0544d3, - #6b0392, - #f05b4f, - #dda458, - #eacf7d, - #86797d, - #b2c326, - #6188e2, - #a748ca -) !default; diff --git a/jest.config.json b/jest.config.json new file mode 100644 index 000000000..56d079d4e --- /dev/null +++ b/jest.config.json @@ -0,0 +1,28 @@ +{ + "testEnvironment": "jsdom", + "testRegex": "(test|src)/.*\\.spec\\.(jsx?|tsx?)$", + "setupFilesAfterEnv": ["/test/setup.js"], + "transform": { + "^.+\\.(t|j)sx?$": ["@swc/jest", { + "env": { + "targets": { + "node": 14 + } + } + }] + }, + "moduleNameMapper": { + "^chartist-dev$": "/src", + "^chartist-dev/styles$": "/test/mock/cssModule.js" + }, + "collectCoverage": true, + "collectCoverageFrom": [ + "src/**/*.{js,jsx,ts,tsx}", + "!**/node_modules/**", + "!**/*.stories.*" + ], + "coverageReporters": [ + "lcovonly", + "text" + ] +} diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 3c44eb3fa..000000000 --- a/package-lock.json +++ /dev/null @@ -1,11001 +0,0 @@ -{ - "name": "chartist", - "version": "0.11.3", - "lockfileVersion": 1, - "requires": true, - "dependencies": { - "abbrev": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", - "dev": true - }, - "accepts": { - "version": "1.3.7", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", - "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", - "dev": true, - "requires": { - "mime-types": "~2.1.24", - "negotiator": "0.6.2" - } - }, - "ajv": { - "version": "6.10.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz", - "integrity": "sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==", - "dev": true, - "requires": { - "fast-deep-equal": "^2.0.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "align-text": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", - "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", - "dev": true, - "requires": { - "kind-of": "^3.0.2", - "longest": "^1.0.1", - "repeat-string": "^1.5.2" - } - }, - "alphabet": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/alphabet/-/alphabet-1.0.0.tgz", - "integrity": "sha1-DY+Byj94NVEm1yTRRUh+Hk7zd8A=", - "dev": true - }, - "amdefine": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", - "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", - "dev": true - }, - "annois": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/annois/-/annois-0.3.2.tgz", - "integrity": "sha1-b2Fp7jdPhND9ANtYnFtAPbT5SwU=", - "dev": true - }, - "annotate": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/annotate/-/annotate-0.9.1.tgz", - "integrity": "sha1-ODA+ZWhE5MwXR2DjRDsjv2VHK9M=", - "dev": true, - "requires": { - "annois": "0.3.0" - }, - "dependencies": { - "annois": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/annois/-/annois-0.3.0.tgz", - "integrity": "sha1-BcW8WQDoKGgX6IaEuOfjSKniQ0Q=", - "dev": true - } - } - }, - "annozip": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/annozip/-/annozip-0.2.6.tgz", - "integrity": "sha1-4Yorw+KHHwYeC+yhwdGozQRlCZs=", - "dev": true, - "requires": { - "annois": "^0.3.2", - "annotate": "^0.9.1" - } - }, - "ansi-align": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-1.1.0.tgz", - "integrity": "sha1-LwwWWIKXOa3V67FeawxuNCPwFro=", - "dev": true, - "requires": { - "string-width": "^1.0.1" - } - }, - "ansi-gray": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-gray/-/ansi-gray-0.1.1.tgz", - "integrity": "sha1-KWLPVOyXksSFEKPetSRDaGHvclE=", - "dev": true, - "requires": { - "ansi-wrap": "0.1.0" - } - }, - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "ansi-wrap": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", - "integrity": "sha1-qCJQ3bABXponyoLoLqYDu/pF768=", - "dev": true - }, - "apartment": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/apartment/-/apartment-1.1.1.tgz", - "integrity": "sha1-/ZQGzcyodTWULxWzYKGrWkqpfiY=", - "dev": true, - "requires": { - "css": "2.2.1", - "get-stdin": "5.0.1", - "lodash": "3.10.1", - "minimist": "1.2.0" - }, - "dependencies": { - "atob": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/atob/-/atob-1.1.3.tgz", - "integrity": "sha1-lfE2KbEsOlGl0hWr3OKqnzL4B3M=", - "dev": true - }, - "css": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/css/-/css-2.2.1.tgz", - "integrity": "sha1-c6TIHehdtmTU7mdPfUcIXjstVdw=", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "source-map": "^0.1.38", - "source-map-resolve": "^0.3.0", - "urix": "^0.1.0" - } - }, - "get-stdin": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-5.0.1.tgz", - "integrity": "sha1-Ei4WFZHiH/TFJTAwVpPyDmOTo5g=", - "dev": true - }, - "lodash": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", - "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=", - "dev": true - }, - "source-map-resolve": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.3.1.tgz", - "integrity": "sha1-YQ9hIqRFuN1RU1oqcbeD38Ekh2E=", - "dev": true, - "requires": { - "atob": "~1.1.0", - "resolve-url": "~0.2.1", - "source-map-url": "~0.3.0", - "urix": "~0.1.0" - } - }, - "source-map-url": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.3.0.tgz", - "integrity": "sha1-fsrxO1e80J2opAxdJp2zN5nUqvk=", - "dev": true - } - } - }, - "aproba": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", - "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", - "dev": true - }, - "archive-type": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/archive-type/-/archive-type-3.2.0.tgz", - "integrity": "sha1-nNnABpV+vpX62tW9YJiUKoE3N/Y=", - "dev": true, - "optional": true, - "requires": { - "file-type": "^3.1.0" - } - }, - "are-we-there-yet": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz", - "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==", - "dev": true, - "requires": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" - } - }, - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "requires": { - "sprintf-js": "~1.0.2" - }, - "dependencies": { - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true - } - } - }, - "arr-diff": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", - "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", - "dev": true, - "requires": { - "arr-flatten": "^1.0.1" - } - }, - "arr-filter": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/arr-filter/-/arr-filter-1.1.2.tgz", - "integrity": "sha1-Q/3d0JHo7xGqTEXZzcGOLf8XEe4=", - "dev": true, - "requires": { - "make-iterator": "^1.0.0" - }, - "dependencies": { - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true - }, - "make-iterator": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/make-iterator/-/make-iterator-1.0.1.tgz", - "integrity": "sha512-pxiuXh0iVEq7VM7KMIhs5gxsfxCux2URptUQaXo4iZZJxBAzTPOLE2BumO5dbfVYq/hBJFBR/a1mFDmOx5AGmw==", - "dev": true, - "requires": { - "kind-of": "^6.0.2" - } - } - } - }, - "arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", - "dev": true - }, - "array-differ": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-0.1.0.tgz", - "integrity": "sha1-EuLJtwa+1HyLSDtX5IdHP7CGHzo=", - "dev": true - }, - "array-find-index": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", - "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", - "dev": true - }, - "array-flatten": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-0.0.2.tgz", - "integrity": "sha1-UbLxRPNv1lb2J3QKH9CtV5ea1sI=", - "dev": true - }, - "array-slice": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-0.2.3.tgz", - "integrity": "sha1-3Tz7gO15c6dRF82sabC5nshhhvU=", - "dev": true - }, - "array-sort": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/array-sort/-/array-sort-0.1.4.tgz", - "integrity": "sha512-BNcM+RXxndPxiZ2rd76k6nyQLRZr2/B/sdi8pQ+Joafr5AH279L40dfokSUTp8O+AaqYjXWhblBWa2st2nc4fQ==", - "dev": true, - "requires": { - "default-compare": "^1.0.0", - "get-value": "^2.0.6", - "kind-of": "^5.0.2" - }, - "dependencies": { - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - } - } - }, - "array-union": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-0.1.0.tgz", - "integrity": "sha1-7emAiDMGZeaZ4evwIny8YDTmJ9s=", - "dev": true, - "requires": { - "array-uniq": "^0.1.0" - } - }, - "array-uniq": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-0.1.1.tgz", - "integrity": "sha1-WGHz7U5LthdVl6TgeOiqeOvpWMc=", - "dev": true - }, - "array-unique": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", - "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", - "dev": true - }, - "arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", - "dev": true - }, - "asap": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", - "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=", - "dev": true - }, - "asn1": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", - "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", - "dev": true, - "requires": { - "safer-buffer": "~2.1.0" - } - }, - "assemble-dox": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/assemble-dox/-/assemble-dox-0.0.2.tgz", - "integrity": "sha1-yzU3rDsDa2DxAf19vlvcWUJZwK8=", - "dev": true, - "requires": { - "dox": "^0.5.3", - "lodash": "^2.4.1" - }, - "dependencies": { - "lodash": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", - "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", - "dev": true - } - } - }, - "assemble-handlebars": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/assemble-handlebars/-/assemble-handlebars-0.3.0.tgz", - "integrity": "sha1-AfKhlOmmQDQNfqEEgha3wtEYecc=", - "dev": true, - "requires": { - "handlebars": "^3.0.1", - "handlebars-helpers": "^0.5.8" - }, - "dependencies": { - "argparse": { - "version": "0.1.16", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-0.1.16.tgz", - "integrity": "sha1-z9AeD7uj1srtBJ+9dY1A9lGW9Xw=", - "dev": true, - "requires": { - "underscore": "~1.7.0", - "underscore.string": "~2.4.0" - } - }, - "async": { - "version": "0.2.10", - "resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz", - "integrity": "sha1-trvgsGdLnXGXCMo43owjfLUmw9E=", - "dev": true, - "optional": true - }, - "esprima": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", - "integrity": "sha1-n1V+CPw7TSbs6d00+Pv0drYlha0=", - "dev": true - }, - "handlebars-helpers": { - "version": "0.5.8", - "resolved": "https://registry.npmjs.org/handlebars-helpers/-/handlebars-helpers-0.5.8.tgz", - "integrity": "sha1-/MoDaN3el1mRODYGiOuloUzwQTo=", - "dev": true, - "requires": { - "handlebars": "~1.3.0", - "highlight.js": "~7.4.0", - "iconv-lite": "~0.2.11", - "js-yaml": "~2.1.3", - "lodash": "~2.2.1", - "marked": "~0.2.10", - "matchdep": "~0.3.0", - "matchkeys": "~0.1.3", - "minimatch": "~0.2.12", - "nap": "~0.7.11", - "sort-object": "0.0.5", - "to": "~0.2.9" - }, - "dependencies": { - "handlebars": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-1.3.0.tgz", - "integrity": "sha1-npsTCpPjiUkTItl1zz7BgYw3zjQ=", - "dev": true, - "requires": { - "optimist": "~0.3", - "uglify-js": "~2.3" - } - } - } - }, - "iconv-lite": { - "version": "0.2.11", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.2.11.tgz", - "integrity": "sha1-HOYKOleGSiktEyH/RgnKS7llrcg=", - "dev": true - }, - "js-yaml": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-2.1.3.tgz", - "integrity": "sha1-D/tWF75VUlh4Bj16Fq7n/dKC6Ew=", - "dev": true, - "requires": { - "argparse": "~ 0.1.11", - "esprima": "~ 1.0.2" - } - }, - "lodash": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.2.1.tgz", - "integrity": "sha1-ypNf0UqzwMhyq6zxmLnNpQFECGc=", - "dev": true - }, - "marked": { - "version": "0.2.10", - "resolved": "https://registry.npmjs.org/marked/-/marked-0.2.10.tgz", - "integrity": "sha1-1f1oJxyq5hxV0pHQe9UDTP9ec+4=", - "dev": true - }, - "minimatch": { - "version": "0.2.14", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz", - "integrity": "sha1-x054BXT2PG+aCQ6Q775u9TpqdWo=", - "dev": true, - "requires": { - "lru-cache": "2", - "sigmund": "~1.0.0" - } - }, - "optimist": { - "version": "0.3.7", - "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.3.7.tgz", - "integrity": "sha1-yQlBrVnkJzMokjB00s8ufLxuwNk=", - "dev": true, - "requires": { - "wordwrap": "~0.0.2" - } - }, - "uglify-js": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.3.6.tgz", - "integrity": "sha1-+gmEdwtCi3qbKoBY9GNV0U/vIRo=", - "dev": true, - "optional": true, - "requires": { - "async": "~0.2.6", - "optimist": "~0.3.5", - "source-map": "~0.1.7" - } - }, - "underscore.string": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.4.0.tgz", - "integrity": "sha1-jN2PusTi0uoefi6Al8QvRCKA+Fs=", - "dev": true - } - } - }, - "assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", - "dev": true - }, - "asset-resolver": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/asset-resolver/-/asset-resolver-0.3.3.tgz", - "integrity": "sha1-GVJY/cA6AXOdZHIUHT6OALVk6Ns=", - "dev": true, - "requires": { - "bluebird": "3.4.7", - "debug": "2.6.1", - "filesize": "3.5.5", - "globby": "6.1.0", - "hash": "0.2.0", - "lodash": "4.17.4", - "meow": "3.7.0", - "mime": "1.3.4", - "object": "0.1.1", - "request": "2.79.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "array-union": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", - "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", - "dev": true, - "requires": { - "array-uniq": "^1.0.1" - } - }, - "array-uniq": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", - "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", - "dev": true - }, - "assert-plus": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz", - "integrity": "sha1-104bh+ev/A24qttwIfP+SBAasjQ=", - "dev": true - }, - "aws-sign2": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz", - "integrity": "sha1-FDQt0428yU0OW4fXY81jYSwOeU8=", - "dev": true - }, - "bluebird": { - "version": "3.4.7", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.4.7.tgz", - "integrity": "sha1-9y12C+Cbf3bQjtj66Ysomo0F+rM=", - "dev": true - }, - "caseless": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.11.0.tgz", - "integrity": "sha1-cVuW6phBWTzDMGeSP17GDr2k99c=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "commander": { - "version": "2.20.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz", - "integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==", - "dev": true - }, - "debug": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.1.tgz", - "integrity": "sha1-eYVQkLosTjEVzH2HaUkdWPBJE1E=", - "dev": true, - "requires": { - "ms": "0.7.2" - } - }, - "form-data": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.1.4.tgz", - "integrity": "sha1-M8GDrPGTJ27KqYFDpp6Uv+4XUNE=", - "dev": true, - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.5", - "mime-types": "^2.1.12" - } - }, - "globby": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", - "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", - "dev": true, - "requires": { - "array-union": "^1.0.1", - "glob": "^7.0.3", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, - "har-validator": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-2.0.6.tgz", - "integrity": "sha1-zcvAgYgmWtEZtqWnyKtw7s+10n0=", - "dev": true, - "requires": { - "chalk": "^1.1.1", - "commander": "^2.9.0", - "is-my-json-valid": "^2.12.4", - "pinkie-promise": "^2.0.0" - } - }, - "http-signature": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz", - "integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=", - "dev": true, - "requires": { - "assert-plus": "^0.2.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - } - }, - "lodash": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", - "dev": true - }, - "mime": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.3.4.tgz", - "integrity": "sha1-EV+eO2s9rylZmDyzjxSaLUDrXVM=", - "dev": true - }, - "ms": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", - "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", - "dev": true - }, - "oauth-sign": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", - "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=", - "dev": true - }, - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true - }, - "qs": { - "version": "6.3.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.3.2.tgz", - "integrity": "sha1-51vV9uJoEioqDgvaYwslUMFmUCw=", - "dev": true - }, - "request": { - "version": "2.79.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.79.0.tgz", - "integrity": "sha1-Tf5b9r6LjNw3/Pk+BLZVd3InEN4=", - "dev": true, - "requires": { - "aws-sign2": "~0.6.0", - "aws4": "^1.2.1", - "caseless": "~0.11.0", - "combined-stream": "~1.0.5", - "extend": "~3.0.0", - "forever-agent": "~0.6.1", - "form-data": "~2.1.1", - "har-validator": "~2.0.6", - "hawk": "~3.1.3", - "http-signature": "~1.1.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.7", - "oauth-sign": "~0.8.1", - "qs": "~6.3.0", - "stringstream": "~0.0.4", - "tough-cookie": "~2.3.0", - "tunnel-agent": "~0.4.1", - "uuid": "^3.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - }, - "tough-cookie": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz", - "integrity": "sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA==", - "dev": true, - "requires": { - "punycode": "^1.4.1" - } - }, - "uuid": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz", - "integrity": "sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==", - "dev": true - } - } - }, - "async": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", - "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", - "dev": true - }, - "async-each-series": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/async-each-series/-/async-each-series-1.1.0.tgz", - "integrity": "sha1-9C/YFV048hpbjqB8KOBj7RcAsTg=", - "dev": true, - "optional": true - }, - "async-foreach": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/async-foreach/-/async-foreach-0.1.3.tgz", - "integrity": "sha1-NhIfhFwFeBct5Bmpfb6x0W7DRUI=", - "dev": true - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", - "dev": true - }, - "atob": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", - "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", - "dev": true - }, - "autolinker": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-0.28.1.tgz", - "integrity": "sha1-BlK0kYgYefB3XazgzcoyM5QqTkc=", - "dev": true, - "requires": { - "gulp-header": "^1.7.1" - } - }, - "aws-sign2": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", - "dev": true - }, - "aws4": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", - "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==", - "dev": true - }, - "balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true - }, - "basic-auth": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", - "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==", - "dev": true, - "requires": { - "safe-buffer": "5.1.2" - } - }, - "batch": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", - "integrity": "sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY=", - "dev": true - }, - "bcrypt-pbkdf": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", - "dev": true, - "requires": { - "tweetnacl": "^0.14.3" - } - }, - "beeper": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/beeper/-/beeper-1.1.1.tgz", - "integrity": "sha1-5tXqjF2tABMEpwsiY4RH9pyy+Ak=", - "dev": true - }, - "bin-build": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/bin-build/-/bin-build-2.2.0.tgz", - "integrity": "sha1-EfjdYfcP/Por3KpbRvXo/t1CIcw=", - "dev": true, - "optional": true, - "requires": { - "archive-type": "^3.0.1", - "decompress": "^3.0.0", - "download": "^4.1.2", - "exec-series": "^1.0.0", - "rimraf": "^2.2.6", - "tempfile": "^1.0.0", - "url-regex": "^3.0.0" - } - }, - "bin-check": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/bin-check/-/bin-check-2.0.0.tgz", - "integrity": "sha1-hvjm9CU4k99g3DFpV/WvAqywWTA=", - "dev": true, - "optional": true, - "requires": { - "executable": "^1.0.0" - } - }, - "bin-version": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/bin-version/-/bin-version-1.0.4.tgz", - "integrity": "sha1-nrSY7m/Xb3q5p8FgQ2+JV5Q1144=", - "dev": true, - "optional": true, - "requires": { - "find-versions": "^1.0.0" - } - }, - "bin-version-check": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/bin-version-check/-/bin-version-check-2.1.0.tgz", - "integrity": "sha1-5OXfKQuQaffRETJAMe/BP90RpbA=", - "dev": true, - "optional": true, - "requires": { - "bin-version": "^1.0.0", - "minimist": "^1.1.0", - "semver": "^4.0.3", - "semver-truncate": "^1.0.0" - }, - "dependencies": { - "semver": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/semver/-/semver-4.3.6.tgz", - "integrity": "sha1-MAvG4OhjdPe6YQaLWx7NV/xlMto=", - "dev": true, - "optional": true - } - } - }, - "bin-wrapper": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/bin-wrapper/-/bin-wrapper-3.0.2.tgz", - "integrity": "sha1-Z9MwYmLksaXy+I7iNGT2plVneus=", - "dev": true, - "optional": true, - "requires": { - "bin-check": "^2.0.0", - "bin-version-check": "^2.1.0", - "download": "^4.0.0", - "each-async": "^1.1.1", - "lazy-req": "^1.0.0", - "os-filter-obj": "^1.0.0" - } - }, - "bl": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.2.tgz", - "integrity": "sha512-e8tQYnZodmebYDWGH7KMRvtzKXaJHx3BbilrgZCfvyLUYdKpK1t5PSPmpkny/SgiTSCnjfLW7v5rlONXVFkQEA==", - "dev": true, - "optional": true, - "requires": { - "readable-stream": "^2.3.5", - "safe-buffer": "^5.1.1" - } - }, - "block-stream": { - "version": "0.0.9", - "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz", - "integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=", - "dev": true, - "requires": { - "inherits": "~2.0.0" - } - }, - "bluebird": { - "version": "3.5.5", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.5.tgz", - "integrity": "sha512-5am6HnnfN+urzt4yfg7IgTbotDjIT/u8AJpEt0sIU9FtXfVeezXAPKswrG+xKUCOYAINpSdgZVDU6QFh+cuH3w==", - "dev": true - }, - "body": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/body/-/body-5.1.0.tgz", - "integrity": "sha1-5LoM5BCkaTYyM2dgnstOZVMSUGk=", - "dev": true, - "requires": { - "continuable-cache": "^0.3.1", - "error": "^7.0.0", - "raw-body": "~1.1.0", - "safe-json-parse": "~1.0.1" - } - }, - "boolbase": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=", - "dev": true - }, - "boom": { - "version": "2.10.1", - "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz", - "integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=", - "dev": true, - "requires": { - "hoek": "2.x.x" - } - }, - "boxen": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/boxen/-/boxen-0.5.1.tgz", - "integrity": "sha1-W3PYhA6388ihVcv2ntPtaNRyABQ=", - "dev": true, - "requires": { - "camelcase": "^2.1.0", - "chalk": "^1.1.1", - "cli-boxes": "^1.0.0", - "filled-array": "^1.0.0", - "object-assign": "^4.0.1", - "repeating": "^2.0.0", - "string-width": "^1.0.1", - "widest-line": "^1.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", - "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", - "dev": true, - "requires": { - "expand-range": "^1.8.1", - "preserve": "^0.2.0", - "repeat-element": "^1.1.2" - } - }, - "browserify-zlib": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.1.4.tgz", - "integrity": "sha1-uzX4pRn2AOD6a4SFJByXnQFB+y0=", - "dev": true, - "requires": { - "pako": "~0.2.0" - } - }, - "buffer-alloc": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz", - "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==", - "dev": true, - "optional": true, - "requires": { - "buffer-alloc-unsafe": "^1.1.0", - "buffer-fill": "^1.0.0" - } - }, - "buffer-alloc-unsafe": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", - "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==", - "dev": true, - "optional": true - }, - "buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=", - "dev": true, - "optional": true - }, - "buffer-fill": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", - "integrity": "sha1-+PeLdniYiO858gXNY39o5wISKyw=", - "dev": true, - "optional": true - }, - "buffer-from": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", - "dev": true - }, - "buffer-to-vinyl": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/buffer-to-vinyl/-/buffer-to-vinyl-1.1.0.tgz", - "integrity": "sha1-APFfruOreh3aLN5tkSG//dB7ImI=", - "dev": true, - "requires": { - "file-type": "^3.1.0", - "readable-stream": "^2.0.2", - "uuid": "^2.0.1", - "vinyl": "^1.0.0" - } - }, - "bytes": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-1.0.0.tgz", - "integrity": "sha1-NWnt6Lo0MV+rmcPpLLBMciDeH6g=", - "dev": true - }, - "camel-case": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-3.0.0.tgz", - "integrity": "sha1-yjw2iKTpzzpM2nd9xNy8cTJJz3M=", - "dev": true, - "requires": { - "no-case": "^2.2.0", - "upper-case": "^1.1.1" - } - }, - "camelcase": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", - "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=", - "dev": true - }, - "camelcase-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", - "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=", - "dev": true, - "requires": { - "camelcase": "^2.0.0", - "map-obj": "^1.0.0" - } - }, - "capture-stack-trace": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.1.tgz", - "integrity": "sha512-mYQLZnx5Qt1JgB1WEiMCf2647plpGeQ2NMR/5L0HNZzGQo4fuSPnK+wjfPnKZV0aiJDgzmWqqkV/g7JD+DW0qw==", - "dev": true - }, - "caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", - "dev": true - }, - "cave": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/cave/-/cave-2.0.0.tgz", - "integrity": "sha1-DFd66oWSgBXQKgK2GIgG2VvrJiY=", - "dev": true, - "requires": { - "css": "^2.1.0", - "get-stdin": "^3.0.0", - "lodash": "^2.4.1", - "minimist": "^1.1.0" - }, - "dependencies": { - "get-stdin": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-3.0.2.tgz", - "integrity": "sha1-wc7SS5A5s43thb3xYeV3E7bdSr4=", - "dev": true - }, - "lodash": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", - "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", - "dev": true - } - } - }, - "caw": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/caw/-/caw-1.2.0.tgz", - "integrity": "sha1-/7Im/n78VHKI3GLuPpcHPCEtEDQ=", - "dev": true, - "optional": true, - "requires": { - "get-proxy": "^1.0.1", - "is-obj": "^1.0.0", - "object-assign": "^3.0.0", - "tunnel-agent": "^0.4.0" - }, - "dependencies": { - "object-assign": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz", - "integrity": "sha1-m+3VygiXlJvKR+f/QIBi1Un1h/I=", - "dev": true, - "optional": true - } - } - }, - "center-align": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz", - "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", - "dev": true, - "requires": { - "align-text": "^0.1.3", - "lazy-cache": "^1.0.3" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "change-case": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/change-case/-/change-case-3.0.2.tgz", - "integrity": "sha512-Mww+SLF6MZ0U6kdg11algyKd5BARbyM4TbFBepwowYSR5ClfQGCGtxNXgykpN0uF/bstWeaGDT4JWaDh8zWAHA==", - "dev": true, - "requires": { - "camel-case": "^3.0.0", - "constant-case": "^2.0.0", - "dot-case": "^2.1.0", - "header-case": "^1.0.0", - "is-lower-case": "^1.1.0", - "is-upper-case": "^1.1.0", - "lower-case": "^1.1.1", - "lower-case-first": "^1.0.0", - "no-case": "^2.3.2", - "param-case": "^2.1.0", - "pascal-case": "^2.0.0", - "path-case": "^2.1.0", - "sentence-case": "^2.1.0", - "snake-case": "^2.1.0", - "swap-case": "^1.1.0", - "title-case": "^2.1.0", - "upper-case": "^1.1.1", - "upper-case-first": "^1.1.0" - } - }, - "cheerio": { - "version": "0.22.0", - "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-0.22.0.tgz", - "integrity": "sha1-qbqoYKP5tZWmuBsahocxIe06Jp4=", - "dev": true, - "requires": { - "css-select": "~1.2.0", - "dom-serializer": "~0.1.0", - "entities": "~1.1.1", - "htmlparser2": "^3.9.1", - "lodash.assignin": "^4.0.9", - "lodash.bind": "^4.1.4", - "lodash.defaults": "^4.0.1", - "lodash.filter": "^4.4.0", - "lodash.flatten": "^4.2.0", - "lodash.foreach": "^4.3.0", - "lodash.map": "^4.4.0", - "lodash.merge": "^4.4.0", - "lodash.pick": "^4.2.1", - "lodash.reduce": "^4.4.0", - "lodash.reject": "^4.4.0", - "lodash.some": "^4.4.0" - }, - "dependencies": { - "dom-serializer": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.1.tgz", - "integrity": "sha512-l0IU0pPzLWSHBcieZbpOKgkIn3ts3vAh7ZuFyXNwJxJXk/c4Gwj9xaTJwIDVQCXawWD0qb3IzMGH5rglQaO0XA==", - "dev": true, - "requires": { - "domelementtype": "^1.3.0", - "entities": "^1.1.1" - } - }, - "entities": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz", - "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==", - "dev": true - }, - "htmlparser2": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.10.1.tgz", - "integrity": "sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ==", - "dev": true, - "requires": { - "domelementtype": "^1.3.1", - "domhandler": "^2.3.0", - "domutils": "^1.5.1", - "entities": "^1.1.1", - "inherits": "^2.0.1", - "readable-stream": "^3.1.1" - } - }, - "readable-stream": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.4.0.tgz", - "integrity": "sha512-jItXPLmrSR8jmTRmRWJXCnGJsfy85mB3Wd/uINMXA65yrnFo0cPClFIUWzo2najVNSl+mx7/4W8ttlLWJe99pQ==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - } - } - }, - "clap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/clap/-/clap-1.2.3.tgz", - "integrity": "sha512-4CoL/A3hf90V3VIEjeuhSvlGFEHKzOz+Wfc2IVZc+FaUgU0ZQafJTP49fvnULipOPcAfqhyI2duwQyns6xqjYA==", - "dev": true, - "requires": { - "chalk": "^1.1.3" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "clean-css": { - "version": "3.4.28", - "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-3.4.28.tgz", - "integrity": "sha1-vxlF6C/ICPVWlebd6uwBQA79A/8=", - "dev": true, - "requires": { - "commander": "2.8.x", - "source-map": "0.4.x" - }, - "dependencies": { - "commander": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.8.1.tgz", - "integrity": "sha1-Br42f+v9oMMwqh4qBy09yXYkJdQ=", - "dev": true, - "requires": { - "graceful-readlink": ">= 1.0.0" - } - }, - "source-map": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", - "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", - "dev": true, - "requires": { - "amdefine": ">=0.0.4" - } - } - } - }, - "cli": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/cli/-/cli-1.0.1.tgz", - "integrity": "sha1-IoF1NPJL+klQw01TLUjsvGIbjBQ=", - "dev": true, - "requires": { - "exit": "0.1.2", - "glob": "^7.1.1" - }, - "dependencies": { - "glob": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", - "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - } - } - }, - "cli-boxes": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-1.0.0.tgz", - "integrity": "sha1-T6kXw+WclKAEzWH47lCdplFocUM=", - "dev": true - }, - "cliui": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", - "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", - "dev": true, - "requires": { - "center-align": "^0.1.1", - "right-align": "^0.1.1", - "wordwrap": "0.0.2" - }, - "dependencies": { - "wordwrap": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", - "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=", - "dev": true - } - } - }, - "clone": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", - "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=", - "dev": true - }, - "clone-buffer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/clone-buffer/-/clone-buffer-1.0.0.tgz", - "integrity": "sha1-4+JbIHrE5wGvch4staFnksrD3Fg=", - "dev": true - }, - "clone-function": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/clone-function/-/clone-function-1.0.6.tgz", - "integrity": "sha1-QoRxk3dQvKnEjsv7wW9uIy90oD0=", - "dev": true - }, - "clone-stats": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-0.0.1.tgz", - "integrity": "sha1-uI+UqCzzi4eR1YBG6kAprYjKmdE=", - "dev": true - }, - "cloneable-readable": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/cloneable-readable/-/cloneable-readable-1.1.3.tgz", - "integrity": "sha512-2EF8zTQOxYq70Y4XKtorQupqF0m49MBz2/yf5Bj+MHjvpG3Hy7sImifnqD6UA+TKYxeSV+u6qqQPawN5UvnpKQ==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "process-nextick-args": "^2.0.0", - "readable-stream": "^2.3.5" - } - }, - "co": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/co/-/co-3.1.0.tgz", - "integrity": "sha1-TqVOpaCJOBUxheFSEMaNkJK8G3g=", - "dev": true, - "optional": true - }, - "coa": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/coa/-/coa-1.0.4.tgz", - "integrity": "sha1-qe8VNmDWqGqL3sAomlxoTSF0Mv0=", - "dev": true, - "requires": { - "q": "^1.1.2" - } - }, - "code-context": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/code-context/-/code-context-0.5.3.tgz", - "integrity": "sha1-42jHvSR9OscRANkbX9AuTmb6kCI=", - "dev": true, - "requires": { - "parse-code-context": "^0.1.3" - } - }, - "code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true - }, - "coffeescript": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/coffeescript/-/coffeescript-1.10.0.tgz", - "integrity": "sha1-56qDAZF+9iGzXYo580jc3R234z4=", - "dev": true - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true - }, - "color-support": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", - "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", - "dev": true - }, - "colors": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", - "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", - "dev": true - }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dev": true, - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "commander": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-0.6.1.tgz", - "integrity": "sha1-+mihT2qUXVTbvlDYzbMyDp47GgY=", - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true - }, - "concat-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", - "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" - } - }, - "concat-with-sourcemaps": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz", - "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==", - "dev": true, - "requires": { - "source-map": "^0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "configstore": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/configstore/-/configstore-2.1.0.tgz", - "integrity": "sha1-c3o6cDbpiGECqmCZ5HuzOrGroaE=", - "dev": true, - "requires": { - "dot-prop": "^3.0.0", - "graceful-fs": "^4.1.2", - "mkdirp": "^0.5.0", - "object-assign": "^4.0.1", - "os-tmpdir": "^1.0.0", - "osenv": "^0.1.0", - "uuid": "^2.0.1", - "write-file-atomic": "^1.1.2", - "xdg-basedir": "^2.0.0" - } - }, - "connect": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/connect/-/connect-3.7.0.tgz", - "integrity": "sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ==", - "dev": true, - "requires": { - "debug": "2.6.9", - "finalhandler": "1.1.2", - "parseurl": "~1.3.3", - "utils-merge": "1.0.1" - } - }, - "connect-livereload": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/connect-livereload/-/connect-livereload-0.5.4.tgz", - "integrity": "sha1-gBV9E3HJ83zBQDmrGJWXDRGdw7w=", - "dev": true - }, - "console-browserify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", - "integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=", - "dev": true, - "requires": { - "date-now": "^0.1.4" - } - }, - "console-control-strings": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", - "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", - "dev": true - }, - "console-stream": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/console-stream/-/console-stream-0.1.1.tgz", - "integrity": "sha1-oJX+B7IEZZVfL6/Si11yvM2UnUQ=", - "dev": true, - "optional": true - }, - "constant-case": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/constant-case/-/constant-case-2.0.0.tgz", - "integrity": "sha1-QXV2TTidP6nI7NKRhu1gBSQ7akY=", - "dev": true, - "requires": { - "snake-case": "^2.1.0", - "upper-case": "^1.1.1" - } - }, - "continuable-cache": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/continuable-cache/-/continuable-cache-0.3.1.tgz", - "integrity": "sha1-vXJ6f67XfnH/OYWskzUakSczrQ8=", - "dev": true - }, - "convert-source-map": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.6.0.tgz", - "integrity": "sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.1" - } - }, - "core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true - }, - "create-error-class": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz", - "integrity": "sha1-Br56vvlHo/FKMP1hBnHUAbyot7Y=", - "dev": true, - "requires": { - "capture-stack-trace": "^1.0.0" - } - }, - "create-frame": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/create-frame/-/create-frame-0.1.4.tgz", - "integrity": "sha1-wJzZiK0lX0O6T7GjvVB7FebSbDw=", - "dev": true, - "requires": { - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "lazy-cache": "^2.0.1" - }, - "dependencies": { - "lazy-cache": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", - "integrity": "sha1-uRkKT5EzVGlIQIWfio9whNiCImQ=", - "dev": true, - "requires": { - "set-getter": "^0.1.0" - } - } - } - }, - "critical": { - "version": "0.8.4", - "resolved": "https://registry.npmjs.org/critical/-/critical-0.8.4.tgz", - "integrity": "sha1-vrcWr6IhqExO0hZxnBjiWorIo8I=", - "dev": true, - "requires": { - "bluebird": "^3.4.7", - "chalk": "^1.1.3", - "cheerio": "^0.22.0", - "clean-css": "^4.0.6", - "cli": "^1.0.1", - "debug": "^2.6.1", - "filter-css": "^0.1.2", - "finalhandler": "^0.5.1", - "fs-extra": "^2.0.0", - "get-port": "^2.1.0", - "get-stdin": "^5.0.1", - "gulp-util": "^3.0.8", - "imageinliner": "^0.2.4", - "indent-string": "^3.1.0", - "inline-critical": "^2.4.0", - "lodash": "^4.17.4", - "meow": "^3.7.0", - "mime-types": "^2.1.14", - "oust": "^0.3.0", - "parseurl": "^1.3.1", - "penthouse": "^0.10.9", - "postcss": "^5.2.12", - "postcss-image-inliner": "^1.0.4", - "request": "^2.79.0", - "serve-static": "^1.11.2", - "slash": "^1.0.0", - "tempfile": "^1.1.1", - "through2": "^2.0.3", - "tmp": "^0.0.31", - "vinyl": "^2.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "clean-css": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.1.tgz", - "integrity": "sha512-4ZxI6dy4lrY6FHzfiy1aEOXgu4LIsW2MhwG0VBKdcoGoH/XLFgaHSdLTGr4O8Be6A8r3MOphEiI8Gc1n0ecf3g==", - "dev": true, - "requires": { - "source-map": "~0.6.0" - } - }, - "clone": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", - "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=", - "dev": true - }, - "clone-stats": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-1.0.0.tgz", - "integrity": "sha1-s3gt/4u1R04Yuba/D9/ngvh3doA=", - "dev": true - }, - "finalhandler": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-0.5.1.tgz", - "integrity": "sha1-LEANjUUwk1vCMlScX6OF7Afeb80=", - "dev": true, - "requires": { - "debug": "~2.2.0", - "escape-html": "~1.0.3", - "on-finished": "~2.3.0", - "statuses": "~1.3.1", - "unpipe": "~1.0.0" - }, - "dependencies": { - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", - "dev": true, - "requires": { - "ms": "0.7.1" - } - } - } - }, - "fs-extra": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-2.1.2.tgz", - "integrity": "sha1-BGxwFjzvmq1GsOSn+kZ/si1x3jU=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^2.1.0" - } - }, - "get-stdin": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-5.0.1.tgz", - "integrity": "sha1-Ei4WFZHiH/TFJTAwVpPyDmOTo5g=", - "dev": true - }, - "indent-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", - "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", - "dev": true - }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", - "dev": true - }, - "replace-ext": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", - "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=", - "dev": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "statuses": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz", - "integrity": "sha1-+vUbnrdKrvOzrPStX2Gr8ky3uT4=", - "dev": true - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - }, - "vinyl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.2.0.tgz", - "integrity": "sha512-MBH+yP0kC/GQ5GwBqrTPTzEfiiLjta7hTtvQtbxBgTeSXsmKQRQecjibMbxIXzVT3Y9KJK+drOz1/k+vsu8Nkg==", - "dev": true, - "requires": { - "clone": "^2.1.1", - "clone-buffer": "^1.0.0", - "clone-stats": "^1.0.0", - "cloneable-readable": "^1.0.0", - "remove-trailing-separator": "^1.0.1", - "replace-ext": "^1.0.0" - } - } - } - }, - "cross-spawn": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-3.0.1.tgz", - "integrity": "sha1-ElYDfsufDF9549bvE14wdwGEuYI=", - "dev": true, - "requires": { - "lru-cache": "^4.0.1", - "which": "^1.2.9" - }, - "dependencies": { - "lru-cache": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", - "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", - "dev": true, - "requires": { - "pseudomap": "^1.0.2", - "yallist": "^2.1.2" - } - } - } - }, - "cryptiles": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz", - "integrity": "sha1-O9/s3GCBR8HGcgL6KR59ylnqo7g=", - "dev": true, - "requires": { - "boom": "2.x.x" - } - }, - "cson": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/cson/-/cson-3.0.2.tgz", - "integrity": "sha1-g+6Qids8JUvsHpjkmNmqzxGtzFQ=", - "dev": true, - "requires": { - "coffee-script": "^1.9.0", - "cson-parser": "^1.0.6", - "extract-opts": "^3.0.1", - "requirefresh": "^2.0.0", - "safefs": "^4.0.0" - }, - "dependencies": { - "coffee-script": { - "version": "1.12.7", - "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz", - "integrity": "sha512-fLeEhqwymYat/MpTPUjSKHVYYl0ec2mOyALEMLmzr5i1isuG+6jfI2j2d5oBO3VIzgUXgBVIcOT9uH1TFxBckw==", - "dev": true - } - } - }, - "cson-parser": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/cson-parser/-/cson-parser-1.3.5.tgz", - "integrity": "sha1-fsZ14DkUVTO/KmqFYHPxWZ2cLSQ=", - "dev": true, - "requires": { - "coffee-script": "^1.10.0" - }, - "dependencies": { - "coffee-script": { - "version": "1.12.7", - "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz", - "integrity": "sha512-fLeEhqwymYat/MpTPUjSKHVYYl0ec2mOyALEMLmzr5i1isuG+6jfI2j2d5oBO3VIzgUXgBVIcOT9uH1TFxBckw==", - "dev": true - } - } - }, - "css": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/css/-/css-2.2.4.tgz", - "integrity": "sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "source-map": "^0.6.1", - "source-map-resolve": "^0.5.2", - "urix": "^0.1.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "css-mediaquery": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/css-mediaquery/-/css-mediaquery-0.1.2.tgz", - "integrity": "sha1-aiw3NEkoYYYxxUvTPO3TAdoYvqA=", - "dev": true - }, - "css-parse": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/css-parse/-/css-parse-1.7.0.tgz", - "integrity": "sha1-Mh9s9zeCpv91ERE5D8BeLGV9jJs=", - "dev": true - }, - "css-select": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-1.2.0.tgz", - "integrity": "sha1-KzoRBTnFNV8c2NMUYj6HCxIeyFg=", - "dev": true, - "requires": { - "boolbase": "~1.0.0", - "css-what": "2.1", - "domutils": "1.5.1", - "nth-check": "~1.0.1" - } - }, - "css-stringify": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/css-stringify/-/css-stringify-1.4.1.tgz", - "integrity": "sha1-JSzL8D9yOgCb3Ydw/n6ydBca/fo=", - "dev": true, - "requires": { - "source-map": "~0.1.31" - } - }, - "css-what": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-2.1.3.tgz", - "integrity": "sha512-a+EPoD+uZiNfh+5fxw2nO9QwFa6nJe2Or35fGY6Ipw1R3R4AGz1d1TEZrCegvw2YTmZ0jXirGYlzxxpYSHwpEg==", - "dev": true - }, - "csso": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/csso/-/csso-2.0.0.tgz", - "integrity": "sha1-F4tDpEYhIhwndWCG9THgL0KQDug=", - "dev": true, - "requires": { - "clap": "^1.0.9", - "source-map": "^0.5.3" - }, - "dependencies": { - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } - } - }, - "currently-unhandled": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", - "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", - "dev": true, - "requires": { - "array-find-index": "^1.0.1" - } - }, - "cwd": { - "version": "0.3.7", - "resolved": "https://registry.npmjs.org/cwd/-/cwd-0.3.7.tgz", - "integrity": "sha1-+mq8GIlgdw9rE2+xmEBsjikfsoE=", - "dev": true, - "requires": { - "findup-sync": "~0.1.3", - "normalize-path": "^0.1.1" - }, - "dependencies": { - "findup-sync": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.1.3.tgz", - "integrity": "sha1-fz56l7gjksZTvwZYm9hRkOk8NoM=", - "dev": true, - "requires": { - "glob": "~3.2.9", - "lodash": "~2.4.1" - } - }, - "glob": { - "version": "3.2.11", - "resolved": "https://registry.npmjs.org/glob/-/glob-3.2.11.tgz", - "integrity": "sha1-Spc/Y1uRkPcV0QmH1cAP0oFevj0=", - "dev": true, - "requires": { - "inherits": "2", - "minimatch": "0.3" - } - }, - "lodash": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", - "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", - "dev": true - }, - "minimatch": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.3.0.tgz", - "integrity": "sha1-J12O2qxPG7MyZHIInnlJyDlGmd0=", - "dev": true, - "requires": { - "lru-cache": "2", - "sigmund": "~1.0.0" - } - } - } - }, - "dashdash": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0" - } - }, - "date-now": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz", - "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=", - "dev": true - }, - "date-time": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/date-time/-/date-time-1.1.0.tgz", - "integrity": "sha1-GIdtC9pMGf5w3Tv0sDTygbEqQLY=", - "dev": true, - "requires": { - "time-zone": "^0.1.0" - } - }, - "date.js": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/date.js/-/date.js-0.3.3.tgz", - "integrity": "sha512-HgigOS3h3k6HnW011nAb43c5xx5rBXk8P2v/WIT9Zv4koIaVXiH2BURguI78VVp+5Qc076T7OR378JViCnZtBw==", - "dev": true, - "requires": { - "debug": "~3.1.0" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - } - } - }, - "dateformat": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-1.0.12.tgz", - "integrity": "sha1-nxJLZ1lMk3/3BpMuSmQsyo27/uk=", - "dev": true, - "requires": { - "get-stdin": "^4.0.1", - "meow": "^3.3.0" - } - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true - }, - "decode-uri-component": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", - "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", - "dev": true - }, - "decompress": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/decompress/-/decompress-3.0.0.tgz", - "integrity": "sha1-rx3VDQbjv8QyRh033hGzjA2ZG+0=", - "dev": true, - "optional": true, - "requires": { - "buffer-to-vinyl": "^1.0.0", - "concat-stream": "^1.4.6", - "decompress-tar": "^3.0.0", - "decompress-tarbz2": "^3.0.0", - "decompress-targz": "^3.0.0", - "decompress-unzip": "^3.0.0", - "stream-combiner2": "^1.1.1", - "vinyl-assign": "^1.0.1", - "vinyl-fs": "^2.2.0" - } - }, - "decompress-tar": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/decompress-tar/-/decompress-tar-3.1.0.tgz", - "integrity": "sha1-IXx4n5uURQ76rcXF5TeXj8MzxGY=", - "dev": true, - "optional": true, - "requires": { - "is-tar": "^1.0.0", - "object-assign": "^2.0.0", - "strip-dirs": "^1.0.0", - "tar-stream": "^1.1.1", - "through2": "^0.6.1", - "vinyl": "^0.4.3" - }, - "dependencies": { - "clone": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/clone/-/clone-0.2.0.tgz", - "integrity": "sha1-xhJqkK1Pctv1rNskPMN3JP6T/B8=", - "dev": true, - "optional": true - }, - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true, - "optional": true - }, - "object-assign": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-2.1.1.tgz", - "integrity": "sha1-Q8NuXVaf+OSBbE76i+AtJpZ8GKo=", - "dev": true, - "optional": true - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "optional": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true, - "optional": true - }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", - "dev": true, - "optional": true, - "requires": { - "readable-stream": ">=1.0.33-1 <1.1.0-0", - "xtend": ">=4.0.0 <4.1.0-0" - } - }, - "vinyl": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.4.6.tgz", - "integrity": "sha1-LzVsh6VQolVGHza76ypbqL94SEc=", - "dev": true, - "optional": true, - "requires": { - "clone": "^0.2.0", - "clone-stats": "^0.0.1" - } - }, - "xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true, - "optional": true - } - } - }, - "decompress-tarbz2": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/decompress-tarbz2/-/decompress-tarbz2-3.1.0.tgz", - "integrity": "sha1-iyOTVoE1X58YnYclag+L3ZbZZm0=", - "dev": true, - "optional": true, - "requires": { - "is-bzip2": "^1.0.0", - "object-assign": "^2.0.0", - "seek-bzip": "^1.0.3", - "strip-dirs": "^1.0.0", - "tar-stream": "^1.1.1", - "through2": "^0.6.1", - "vinyl": "^0.4.3" - }, - "dependencies": { - "clone": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/clone/-/clone-0.2.0.tgz", - "integrity": "sha1-xhJqkK1Pctv1rNskPMN3JP6T/B8=", - "dev": true, - "optional": true - }, - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true, - "optional": true - }, - "object-assign": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-2.1.1.tgz", - "integrity": "sha1-Q8NuXVaf+OSBbE76i+AtJpZ8GKo=", - "dev": true, - "optional": true - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "optional": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true, - "optional": true - }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", - "dev": true, - "optional": true, - "requires": { - "readable-stream": ">=1.0.33-1 <1.1.0-0", - "xtend": ">=4.0.0 <4.1.0-0" - } - }, - "vinyl": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.4.6.tgz", - "integrity": "sha1-LzVsh6VQolVGHza76ypbqL94SEc=", - "dev": true, - "optional": true, - "requires": { - "clone": "^0.2.0", - "clone-stats": "^0.0.1" - } - }, - "xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true, - "optional": true - } - } - }, - "decompress-targz": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/decompress-targz/-/decompress-targz-3.1.0.tgz", - "integrity": "sha1-ssE9+YFmJomRtxXWRH9kLpaW9aA=", - "dev": true, - "optional": true, - "requires": { - "is-gzip": "^1.0.0", - "object-assign": "^2.0.0", - "strip-dirs": "^1.0.0", - "tar-stream": "^1.1.1", - "through2": "^0.6.1", - "vinyl": "^0.4.3" - }, - "dependencies": { - "clone": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/clone/-/clone-0.2.0.tgz", - "integrity": "sha1-xhJqkK1Pctv1rNskPMN3JP6T/B8=", - "dev": true, - "optional": true - }, - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true, - "optional": true - }, - "object-assign": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-2.1.1.tgz", - "integrity": "sha1-Q8NuXVaf+OSBbE76i+AtJpZ8GKo=", - "dev": true, - "optional": true - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "optional": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true, - "optional": true - }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", - "dev": true, - "optional": true, - "requires": { - "readable-stream": ">=1.0.33-1 <1.1.0-0", - "xtend": ">=4.0.0 <4.1.0-0" - } - }, - "vinyl": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.4.6.tgz", - "integrity": "sha1-LzVsh6VQolVGHza76ypbqL94SEc=", - "dev": true, - "optional": true, - "requires": { - "clone": "^0.2.0", - "clone-stats": "^0.0.1" - } - }, - "xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true, - "optional": true - } - } - }, - "decompress-unzip": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/decompress-unzip/-/decompress-unzip-3.4.0.tgz", - "integrity": "sha1-YUdbQVIGa74/7hL51inRX+ZHjus=", - "dev": true, - "optional": true, - "requires": { - "is-zip": "^1.0.0", - "read-all-stream": "^3.0.0", - "stat-mode": "^0.2.0", - "strip-dirs": "^1.0.0", - "through2": "^2.0.0", - "vinyl": "^1.0.0", - "yauzl": "^2.2.1" - } - }, - "deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "dev": true - }, - "default-compare": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/default-compare/-/default-compare-1.0.0.tgz", - "integrity": "sha512-QWfXlM0EkAbqOCbD/6HjdwT19j7WCkMyiRhWilc4H9/5h/RzTF9gv5LYh1+CmDV5d1rki6KAWLtQale0xt20eQ==", - "dev": true, - "requires": { - "kind-of": "^5.0.2" - }, - "dependencies": { - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - } - } - }, - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "dev": true - }, - "delegates": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", - "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", - "dev": true - }, - "delims": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/delims/-/delims-0.1.4.tgz", - "integrity": "sha1-If6EbxakBWr4caZIYaHhYPGgQfc=", - "dev": true, - "requires": { - "lodash": "~2.4.1" - }, - "dependencies": { - "lodash": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", - "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", - "dev": true - } - } - }, - "depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", - "dev": true - }, - "destroy": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", - "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=", - "dev": true - }, - "detect-indent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-5.0.0.tgz", - "integrity": "sha1-OHHMCmoALow+Wzz38zYmRnXwa50=", - "dev": true - }, - "dom-serializer": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.1.tgz", - "integrity": "sha512-sK3ujri04WyjwQXVoK4PU3y8ula1stq10GJZpqHIUgoGZdsGzAGu65BnU3d08aTVSvO7mGPZUc0wTEDL+qGE0Q==", - "dev": true, - "requires": { - "domelementtype": "^2.0.1", - "entities": "^2.0.0" - }, - "dependencies": { - "domelementtype": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.0.1.tgz", - "integrity": "sha512-5HOHUDsYZWV8FGWN0Njbr/Rn7f/eWSQi1v7+HsUVwXgn8nWWlL64zKDkS0n8ZmQ3mlWOMuXOnR+7Nx/5tMO5AQ==", - "dev": true - }, - "entities": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.0.0.tgz", - "integrity": "sha512-D9f7V0JSRwIxlRI2mjMqufDrRDnx8p+eEOz7aUM9SuvF8gsBzra0/6tbjl1m8eQHrZlYj6PxqE00hZ1SAIKPLw==", - "dev": true - } - } - }, - "domelementtype": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", - "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==", - "dev": true - }, - "domhandler": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.3.0.tgz", - "integrity": "sha1-LeWaCCLVAn+r/28DLCsloqir5zg=", - "dev": true, - "requires": { - "domelementtype": "1" - } - }, - "domutils": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.5.1.tgz", - "integrity": "sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8=", - "dev": true, - "requires": { - "dom-serializer": "0", - "domelementtype": "1" - } - }, - "dot-case": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-2.1.1.tgz", - "integrity": "sha1-NNzzf1Co6TwrO8qLt/uRVcfaO+4=", - "dev": true, - "requires": { - "no-case": "^2.2.0" - } - }, - "dot-prop": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-3.0.0.tgz", - "integrity": "sha1-G3CK8JSknJoOfbyteQq6U52sEXc=", - "dev": true, - "requires": { - "is-obj": "^1.0.0" - } - }, - "download": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/download/-/download-4.4.3.tgz", - "integrity": "sha1-qlX9rTktldS2jowr4D4MKqIbqaw=", - "dev": true, - "optional": true, - "requires": { - "caw": "^1.0.1", - "concat-stream": "^1.4.7", - "each-async": "^1.0.0", - "filenamify": "^1.0.1", - "got": "^5.0.0", - "gulp-decompress": "^1.2.0", - "gulp-rename": "^1.2.0", - "is-url": "^1.2.0", - "object-assign": "^4.0.1", - "read-all-stream": "^3.0.0", - "readable-stream": "^2.0.2", - "stream-combiner2": "^1.1.1", - "vinyl": "^1.0.0", - "vinyl-fs": "^2.2.0", - "ware": "^1.2.0" - } - }, - "dox": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/dox/-/dox-0.5.3.tgz", - "integrity": "sha1-TbvrK/06FzlE9/akcB873rn98XY=", - "dev": true, - "requires": { - "commander": "0.6.1", - "marked": ">=0.3.1" - } - }, - "duplexer2": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", - "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", - "dev": true, - "requires": { - "readable-stream": "^2.0.2" - } - }, - "duplexify": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz", - "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", - "dev": true, - "requires": { - "end-of-stream": "^1.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.0.0", - "stream-shift": "^1.0.0" - } - }, - "each-async": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/each-async/-/each-async-1.1.1.tgz", - "integrity": "sha1-3uUim98KtrogEqOV4bhpq/iBNHM=", - "dev": true, - "requires": { - "onetime": "^1.0.0", - "set-immediate-shim": "^1.0.0" - } - }, - "eachr": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/eachr/-/eachr-3.2.0.tgz", - "integrity": "sha1-LDXkPqCGUW95l8+At6pk1VpKRIQ=", - "dev": true, - "requires": { - "editions": "^1.1.1", - "typechecker": "^4.3.0" - } - }, - "ecc-jsbn": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", - "dev": true, - "requires": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, - "editions": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/editions/-/editions-1.3.4.tgz", - "integrity": "sha512-gzao+mxnYDzIysXKMQi/+M1mjy/rjestjg6OPoYTtI+3Izp23oiGZitsl9lPDPiTGXbcSIk1iJWhliSaglxnUg==", - "dev": true - }, - "ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", - "dev": true - }, - "encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", - "dev": true - }, - "end-of-stream": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", - "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", - "dev": true, - "requires": { - "once": "^1.4.0" - } - }, - "ent": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/ent/-/ent-2.2.0.tgz", - "integrity": "sha1-6WQhkyWiHQX0RGai9obtbOX13R0=", - "dev": true - }, - "entities": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-1.0.0.tgz", - "integrity": "sha1-sph6o4ITR/zeZCsk/fyeT7cSvyY=", - "dev": true - }, - "errlop": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/errlop/-/errlop-1.1.2.tgz", - "integrity": "sha512-djkRp+urJ+SmqDBd7F6LUgm4Be1TTYBxia2bhjNdFBuBDQtJDHExD2VbxR6eyst3h1TZy3qPRCdqb6FBoFttTA==", - "dev": true, - "requires": { - "editions": "^2.1.3" - }, - "dependencies": { - "editions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/editions/-/editions-2.2.0.tgz", - "integrity": "sha512-RYg3iEA2BDLCNVe8PUkD+ox5vAKxB9XS/mAhx1bdxGCF0CpX077C0pyTA9t5D6idCYA3avl5/XDHKPsHFrygfw==", - "dev": true, - "requires": { - "errlop": "^1.1.2", - "semver": "^6.3.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "error": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/error/-/error-7.0.2.tgz", - "integrity": "sha1-pfdf/02ZJhJt2sDqXcOOaJFTywI=", - "dev": true, - "requires": { - "string-template": "~0.2.1", - "xtend": "~4.0.0" - }, - "dependencies": { - "xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true - } - } - }, - "error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "requires": { - "is-arrayish": "^0.2.1" - } - }, - "es6-promise": { - "version": "4.2.8", - "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", - "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==", - "dev": true - }, - "escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", - "dev": true - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true - }, - "etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", - "dev": true - }, - "eventemitter2": { - "version": "0.4.14", - "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-0.4.14.tgz", - "integrity": "sha1-j2G3XN4BKy6esoTUVFWDtWQ7Yas=", - "dev": true - }, - "exec-buffer": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/exec-buffer/-/exec-buffer-2.0.1.tgz", - "integrity": "sha1-ACijG+CxRgth0HX5avRYO54zXqA=", - "dev": true, - "optional": true, - "requires": { - "rimraf": "^2.2.6", - "tempfile": "^1.0.0" - } - }, - "exec-series": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/exec-series/-/exec-series-1.0.3.tgz", - "integrity": "sha1-bSV6m+rEgqhyx3g7yGFYOfx3FDo=", - "dev": true, - "optional": true, - "requires": { - "async-each-series": "^1.1.0", - "object-assign": "^4.1.0" - } - }, - "executable": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/executable/-/executable-1.1.0.tgz", - "integrity": "sha1-h3mA6REvM5EGbaNyZd562ENKtNk=", - "dev": true, - "optional": true, - "requires": { - "meow": "^3.1.0" - } - }, - "exit": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", - "dev": true - }, - "expand-brackets": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", - "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", - "dev": true, - "requires": { - "is-posix-bracket": "^0.1.0" - } - }, - "expand-range": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", - "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", - "dev": true, - "requires": { - "fill-range": "^2.1.0" - } - }, - "expand-tilde": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-1.2.2.tgz", - "integrity": "sha1-C4HrqJflo9MdHD0QL48BRB5VlEk=", - "dev": true, - "requires": { - "os-homedir": "^1.0.1" - } - }, - "extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "dev": true - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "extglob": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", - "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - }, - "dependencies": { - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true - } - } - }, - "extract-opts": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/extract-opts/-/extract-opts-3.3.1.tgz", - "integrity": "sha1-WrvtyYwNUgLjJ4cn+Rktfghsa+E=", - "dev": true, - "requires": { - "eachr": "^3.2.0", - "editions": "^1.1.1", - "typechecker": "^4.3.0" - } - }, - "extract-zip": { - "version": "1.6.7", - "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.6.7.tgz", - "integrity": "sha1-qEC0uK9kAyZMjbV/Txp0Mz74H+k=", - "dev": true, - "requires": { - "concat-stream": "1.6.2", - "debug": "2.6.9", - "mkdirp": "0.5.1", - "yauzl": "2.4.1" - }, - "dependencies": { - "fd-slicer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.0.1.tgz", - "integrity": "sha1-i1vL2ewyfFBBv5qwI/1nUPEXfmU=", - "dev": true, - "requires": { - "pend": "~1.2.0" - } - }, - "yauzl": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.4.1.tgz", - "integrity": "sha1-lSj0QtqxsihOWLQ3m7GU4i4MQAU=", - "dev": true, - "requires": { - "fd-slicer": "~1.0.1" - } - } - } - }, - "extsprintf": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", - "dev": true - }, - "fancy-log": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.3.3.tgz", - "integrity": "sha512-k9oEhlyc0FrVh25qYuSELjr8oxsCoc4/LEZfg2iJJrfEk/tZL9bCoJE47gqAvI2m/AUjluCS4+3I0eTx8n3AEw==", - "dev": true, - "requires": { - "ansi-gray": "^0.1.1", - "color-support": "^1.1.3", - "parse-node-version": "^1.0.0", - "time-stamp": "^1.0.0" - } - }, - "fast-deep-equal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", - "dev": true - }, - "fast-json-stable-stringify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", - "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", - "dev": true - }, - "faye-websocket": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.10.0.tgz", - "integrity": "sha1-TkkvjQTftviQA1B/btvy1QHnxvQ=", - "dev": true, - "requires": { - "websocket-driver": ">=0.5.1" - } - }, - "fd-slicer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", - "integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=", - "dev": true, - "optional": true, - "requires": { - "pend": "~1.2.0" - } - }, - "fg-loadcss": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/fg-loadcss/-/fg-loadcss-1.3.1.tgz", - "integrity": "sha1-iTDoIJWfqvuyQoUO7sTy0CWUMMs=", - "dev": true - }, - "figures": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", - "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.5", - "object-assign": "^4.1.0" - } - }, - "file": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/file/-/file-0.2.2.tgz", - "integrity": "sha1-w9/Y+M81Na5FXCtCPC5SY112tNM=", - "dev": true - }, - "file-contents": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/file-contents/-/file-contents-0.2.4.tgz", - "integrity": "sha1-BQb3uO/2KvpFrkXaTfnp1H30U8s=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.0", - "file-stat": "^0.1.0", - "graceful-fs": "^4.1.2", - "is-buffer": "^1.1.0", - "is-utf8": "^0.2.0", - "lazy-cache": "^0.2.3", - "through2": "^2.0.0" - }, - "dependencies": { - "lazy-cache": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-0.2.7.tgz", - "integrity": "sha1-f+3fLctu23fRHvHRF6tf/fCrG2U=", - "dev": true - } - } - }, - "file-name": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/file-name/-/file-name-0.1.0.tgz", - "integrity": "sha1-ErEi8SD5w028F2wauBpUis7W3vc=", - "dev": true - }, - "file-stat": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/file-stat/-/file-stat-0.1.3.tgz", - "integrity": "sha1-0PGWHX0QcykoEgpuaVVHHCpbVBE=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "lazy-cache": "^0.2.3", - "through2": "^2.0.0" - }, - "dependencies": { - "lazy-cache": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-0.2.7.tgz", - "integrity": "sha1-f+3fLctu23fRHvHRF6tf/fCrG2U=", - "dev": true - } - } - }, - "file-sync-cmp": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/file-sync-cmp/-/file-sync-cmp-0.1.1.tgz", - "integrity": "sha1-peeo/7+kk7Q7kju9TKiaU7Y7YSs=", - "dev": true - }, - "file-type": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz", - "integrity": "sha1-JXoHg4TR24CHvESdEH1SpSZyuek=", - "dev": true - }, - "filename-regex": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz", - "integrity": "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY=", - "dev": true - }, - "filename-reserved-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-1.0.0.tgz", - "integrity": "sha1-5hz4BfDeHJhFZ9A4bcXfUO5a9+Q=", - "dev": true, - "optional": true - }, - "filenamify": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/filenamify/-/filenamify-1.2.1.tgz", - "integrity": "sha1-qfL/0RxQO+0wABUCknI3jx8TZaU=", - "dev": true, - "optional": true, - "requires": { - "filename-reserved-regex": "^1.0.0", - "strip-outer": "^1.0.0", - "trim-repeated": "^1.0.0" - } - }, - "filesize": { - "version": "3.5.5", - "resolved": "https://registry.npmjs.org/filesize/-/filesize-3.5.5.tgz", - "integrity": "sha1-PCpcFEY5GaIYQ0chRytjzDB0iZI=", - "dev": true - }, - "fill-range": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", - "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", - "dev": true, - "requires": { - "is-number": "^2.1.0", - "isobject": "^2.0.0", - "randomatic": "^3.0.0", - "repeat-element": "^1.1.2", - "repeat-string": "^1.5.2" - } - }, - "filled-array": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/filled-array/-/filled-array-1.1.0.tgz", - "integrity": "sha1-w8T2xmO5I0WamqKZEtLQMfFQf4Q=", - "dev": true - }, - "filter-css": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/filter-css/-/filter-css-0.1.2.tgz", - "integrity": "sha1-Sk0BWyGhRamWFxA4+AYMAxV17gk=", - "dev": true, - "requires": { - "css": "^2.2.0", - "get-stdin": "^5.0.1", - "lodash": "^4.13.1", - "meow": "^3.1.0", - "update-notifier": "^0.7.0" - }, - "dependencies": { - "get-stdin": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-5.0.1.tgz", - "integrity": "sha1-Ei4WFZHiH/TFJTAwVpPyDmOTo5g=", - "dev": true - } - } - }, - "finalhandler": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", - "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", - "dev": true, - "requires": { - "debug": "2.6.9", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "on-finished": "~2.3.0", - "parseurl": "~1.3.3", - "statuses": "~1.5.0", - "unpipe": "~1.0.0" - } - }, - "find-file-up": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/find-file-up/-/find-file-up-0.1.3.tgz", - "integrity": "sha1-z2gJG8+fMApA2kEbN9pczlovvqA=", - "dev": true, - "requires": { - "fs-exists-sync": "^0.1.0", - "resolve-dir": "^0.1.0" - } - }, - "find-pkg": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/find-pkg/-/find-pkg-0.1.2.tgz", - "integrity": "sha1-G9wiwG42NlUy4qJIBGhUuXiNpVc=", - "dev": true, - "requires": { - "find-file-up": "^0.1.2" - } - }, - "find-up": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", - "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", - "dev": true, - "requires": { - "path-exists": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, - "find-versions": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/find-versions/-/find-versions-1.2.1.tgz", - "integrity": "sha1-y96fEuOFdaCvG+G5osXV/Y8Ya2I=", - "dev": true, - "optional": true, - "requires": { - "array-uniq": "^1.0.0", - "get-stdin": "^4.0.1", - "meow": "^3.5.0", - "semver-regex": "^1.0.0" - }, - "dependencies": { - "array-uniq": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", - "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", - "dev": true, - "optional": true - } - } - }, - "findup-sync": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.3.0.tgz", - "integrity": "sha1-N5MKpdgWt3fANEXhlmzGeQpMCxY=", - "dev": true, - "requires": { - "glob": "~5.0.0" - }, - "dependencies": { - "glob": { - "version": "5.0.15", - "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", - "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=", - "dev": true, - "requires": { - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "2 || 3", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - } - } - }, - "first-chunk-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/first-chunk-stream/-/first-chunk-stream-1.0.0.tgz", - "integrity": "sha1-Wb+1DNkF9g18OUzT2ayqtOatk04=", - "dev": true - }, - "for-in": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", - "dev": true - }, - "for-own": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.5.tgz", - "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=", - "dev": true, - "requires": { - "for-in": "^1.0.1" - } - }, - "forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", - "dev": true - }, - "form-data": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "dev": true, - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - } - }, - "fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", - "dev": true - }, - "fs-constants": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", - "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", - "dev": true, - "optional": true - }, - "fs-exists-sync": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz", - "integrity": "sha1-mC1ok6+RjnLQjeyehnP/K1qNat0=", - "dev": true - }, - "fs-extra": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-1.0.0.tgz", - "integrity": "sha1-zTzl9+fLYUWIP8rjGR6Yd/hYeVA=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^2.1.0", - "klaw": "^1.0.0" - } - }, - "fs-utils": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/fs-utils/-/fs-utils-0.4.3.tgz", - "integrity": "sha1-ZBdm/lQV0RZEHexkdpjBPWz5z3c=", - "dev": true, - "requires": { - "async": "~0.6.2", - "globule": "~0.2.0", - "graceful-fs": "~2.0.3", - "js-yaml": "~3.0.2", - "lodash": "~2.4.1", - "mkdirp": "~0.3.5", - "rimraf": "~2.2.6" - }, - "dependencies": { - "argparse": { - "version": "0.1.16", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-0.1.16.tgz", - "integrity": "sha1-z9AeD7uj1srtBJ+9dY1A9lGW9Xw=", - "dev": true, - "requires": { - "underscore": "~1.7.0", - "underscore.string": "~2.4.0" - } - }, - "async": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/async/-/async-0.6.2.tgz", - "integrity": "sha1-Qf0DijgSwKi8GELs8IumPrA5K+8=", - "dev": true - }, - "esprima": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", - "integrity": "sha1-n1V+CPw7TSbs6d00+Pv0drYlha0=", - "dev": true - }, - "glob": { - "version": "3.2.11", - "resolved": "https://registry.npmjs.org/glob/-/glob-3.2.11.tgz", - "integrity": "sha1-Spc/Y1uRkPcV0QmH1cAP0oFevj0=", - "dev": true, - "requires": { - "inherits": "2", - "minimatch": "0.3" - }, - "dependencies": { - "minimatch": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.3.0.tgz", - "integrity": "sha1-J12O2qxPG7MyZHIInnlJyDlGmd0=", - "dev": true, - "requires": { - "lru-cache": "2", - "sigmund": "~1.0.0" - } - } - } - }, - "globule": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/globule/-/globule-0.2.0.tgz", - "integrity": "sha1-JrZNEOHtyrYJjY/gC9K3PMoIqPs=", - "dev": true, - "requires": { - "glob": "~3.2.7", - "lodash": "~2.4.1", - "minimatch": "~0.2.11" - } - }, - "graceful-fs": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-2.0.3.tgz", - "integrity": "sha1-fNLNsiiko/Nule+mzBQt59GhNtA=", - "dev": true - }, - "js-yaml": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.0.2.tgz", - "integrity": "sha1-mTeGX46Jel6JTnPCxc8uibMut3E=", - "dev": true, - "requires": { - "argparse": "~ 0.1.11", - "esprima": "~ 1.0.2" - } - }, - "lodash": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", - "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", - "dev": true - }, - "minimatch": { - "version": "0.2.14", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz", - "integrity": "sha1-x054BXT2PG+aCQ6Q775u9TpqdWo=", - "dev": true, - "requires": { - "lru-cache": "2", - "sigmund": "~1.0.0" - } - }, - "mkdirp": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz", - "integrity": "sha1-3j5fiWHIjHh+4TaN+EmsRBPsqNc=", - "dev": true - }, - "rimraf": { - "version": "2.2.8", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz", - "integrity": "sha1-5Dm+Kq7jJzIZUnMPmaiSnk/FBYI=", - "dev": true - }, - "underscore.string": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.4.0.tgz", - "integrity": "sha1-jN2PusTi0uoefi6Al8QvRCKA+Fs=", - "dev": true - } - } - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true - }, - "fstream": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.12.tgz", - "integrity": "sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "inherits": "~2.0.0", - "mkdirp": ">=0.5 0", - "rimraf": "2" - } - }, - "gauge": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", - "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", - "dev": true, - "requires": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" - }, - "dependencies": { - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - } - } - }, - "gaze": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.3.tgz", - "integrity": "sha512-BRdNm8hbWzFzWHERTrejLqwHDfS4GibPoq5wjTPIoJHoBtKGPg3xAFfxmM+9ztbXelxcf2hwQcaz1PtmFeue8g==", - "dev": true, - "requires": { - "globule": "^1.0.0" - }, - "dependencies": { - "glob": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", - "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "globule": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/globule/-/globule-1.2.1.tgz", - "integrity": "sha512-g7QtgWF4uYSL5/dn71WxubOrS7JVGCnFPEnoeChJmBnyR9Mw8nGoEwOgJL/RC2Te0WhbsEUCejfH8SZNJ+adYQ==", - "dev": true, - "requires": { - "glob": "~7.1.1", - "lodash": "~4.17.10", - "minimatch": "~3.0.2" - } - } - } - }, - "generate-function": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.3.1.tgz", - "integrity": "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==", - "dev": true, - "requires": { - "is-property": "^1.0.2" - } - }, - "generate-object-property": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/generate-object-property/-/generate-object-property-1.2.0.tgz", - "integrity": "sha1-nA4cQDCM6AT0eDYYuTf6iPmdUNA=", - "dev": true, - "requires": { - "is-property": "^1.0.0" - } - }, - "get-caller-file": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", - "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", - "dev": true - }, - "get-object": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/get-object/-/get-object-0.2.0.tgz", - "integrity": "sha1-2S/31RkMZFMM2gVD2sY6PUf+jAw=", - "dev": true, - "requires": { - "is-number": "^2.0.2", - "isobject": "^0.2.0" - }, - "dependencies": { - "isobject": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-0.2.0.tgz", - "integrity": "sha1-o0MhkvObkQtfAsyYlIeDbscKqF4=", - "dev": true - } - } - }, - "get-port": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/get-port/-/get-port-2.1.0.tgz", - "integrity": "sha1-h4P53OvR7qSVozThpqJR54iHqxo=", - "dev": true, - "requires": { - "pinkie-promise": "^2.0.0" - } - }, - "get-proxy": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/get-proxy/-/get-proxy-1.1.0.tgz", - "integrity": "sha1-iUhUSRvFkbDxR9euVw9cZ4tyVus=", - "dev": true, - "optional": true, - "requires": { - "rc": "^1.1.2" - } - }, - "get-stdin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", - "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", - "dev": true - }, - "get-value": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", - "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", - "dev": true - }, - "getobject": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/getobject/-/getobject-0.1.0.tgz", - "integrity": "sha1-BHpEl4n6Fg0Bj1SG7ZEyC27HiFw=", - "dev": true - }, - "getpass": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0" - } - }, - "gifsicle": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/gifsicle/-/gifsicle-3.0.4.tgz", - "integrity": "sha1-9Fy17RAWW2ZdySng6TKLbIId+js=", - "dev": true, - "optional": true, - "requires": { - "bin-build": "^2.0.0", - "bin-wrapper": "^3.0.0", - "logalot": "^2.0.0" - } - }, - "git-config-path": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/git-config-path/-/git-config-path-1.0.1.tgz", - "integrity": "sha1-bTP37WPbDQ4RgTFQO6s6ykfVRmQ=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "fs-exists-sync": "^0.1.0", - "homedir-polyfill": "^1.0.0" - } - }, - "git-repo-name": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/git-repo-name/-/git-repo-name-0.6.0.tgz", - "integrity": "sha1-rwmIRlaqU37GJccIcAgXXNYSKP8=", - "dev": true, - "requires": { - "cwd": "^0.9.1", - "file-name": "^0.1.0", - "lazy-cache": "^1.0.4", - "remote-origin-url": "^0.5.1" - }, - "dependencies": { - "cwd": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/cwd/-/cwd-0.9.1.tgz", - "integrity": "sha1-QeEKfhq4M9xZwuyoOBTH3ne1pP0=", - "dev": true, - "requires": { - "find-pkg": "^0.1.0" - } - } - } - }, - "glob": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.0.6.tgz", - "integrity": "sha1-IRuvr0nlJbjNkyYNFKsTYVKz9Xo=", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.2", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-base": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz", - "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", - "dev": true, - "requires": { - "glob-parent": "^2.0.0", - "is-glob": "^2.0.0" - }, - "dependencies": { - "glob-parent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", - "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", - "dev": true, - "requires": { - "is-glob": "^2.0.0" - } - }, - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true - }, - "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - } - } - }, - "glob-parent": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", - "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", - "dev": true, - "requires": { - "is-glob": "^3.1.0", - "path-dirname": "^1.0.0" - } - }, - "glob-stream": { - "version": "5.3.5", - "resolved": "https://registry.npmjs.org/glob-stream/-/glob-stream-5.3.5.tgz", - "integrity": "sha1-pVZlqajM3EGRWofHAeMtTgFvrSI=", - "dev": true, - "requires": { - "extend": "^3.0.0", - "glob": "^5.0.3", - "glob-parent": "^3.0.0", - "micromatch": "^2.3.7", - "ordered-read-streams": "^0.3.0", - "through2": "^0.6.0", - "to-absolute-glob": "^0.1.1", - "unique-stream": "^2.0.2" - }, - "dependencies": { - "glob": { - "version": "5.0.15", - "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", - "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=", - "dev": true, - "requires": { - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "2 || 3", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", - "dev": true, - "requires": { - "readable-stream": ">=1.0.33-1 <1.1.0-0", - "xtend": ">=4.0.0 <4.1.0-0" - } - }, - "xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true - } - } - }, - "global-modules": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-0.2.3.tgz", - "integrity": "sha1-6lo77ULG1s6ZWk+KEmm12uIjgo0=", - "dev": true, - "requires": { - "global-prefix": "^0.1.4", - "is-windows": "^0.2.0" - } - }, - "global-prefix": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-0.1.5.tgz", - "integrity": "sha1-jTvGuNo8qBEqFg2NSW/wRiv+948=", - "dev": true, - "requires": { - "homedir-polyfill": "^1.0.0", - "ini": "^1.3.4", - "is-windows": "^0.2.0", - "which": "^1.2.12" - } - }, - "globby": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/globby/-/globby-0.1.1.tgz", - "integrity": "sha1-y+xj33JLS+pFi3mhbMDjsfLKhiA=", - "dev": true, - "requires": { - "array-differ": "^0.1.0", - "array-union": "^0.1.0", - "async": "^0.9.0", - "glob": "^4.0.2" - }, - "dependencies": { - "async": { - "version": "0.9.2", - "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz", - "integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0=", - "dev": true - }, - "glob": { - "version": "4.5.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-4.5.3.tgz", - "integrity": "sha1-xstz0yJsHv7wTePFbQEvAzd+4V8=", - "dev": true, - "requires": { - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^2.0.1", - "once": "^1.3.0" - } - }, - "minimatch": { - "version": "2.0.10", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-2.0.10.tgz", - "integrity": "sha1-jQh8OcazjAAbl/ynzm0OHoCvusc=", - "dev": true, - "requires": { - "brace-expansion": "^1.0.0" - } - } - } - }, - "globule": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/globule/-/globule-0.1.0.tgz", - "integrity": "sha1-2cjt3h2nnRJaFRt5UzuXhnY0auU=", - "dev": true, - "requires": { - "glob": "~3.1.21", - "lodash": "~1.0.1", - "minimatch": "~0.2.11" - }, - "dependencies": { - "glob": { - "version": "3.1.21", - "resolved": "https://registry.npmjs.org/glob/-/glob-3.1.21.tgz", - "integrity": "sha1-0p4KBV3qUTj00H7UDomC6DwgZs0=", - "dev": true, - "requires": { - "graceful-fs": "~1.2.0", - "inherits": "1", - "minimatch": "~0.2.11" - } - }, - "graceful-fs": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.2.3.tgz", - "integrity": "sha1-FaSAaldUfLLS2/J/QuiajDRRs2Q=", - "dev": true - }, - "inherits": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-1.0.2.tgz", - "integrity": "sha1-ykMJ2t7mtUzAuNJH6NfHoJdb3Js=", - "dev": true - }, - "lodash": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-1.0.2.tgz", - "integrity": "sha1-j1dWDIO1n8JwvT1WG2kAQ0MOJVE=", - "dev": true - }, - "minimatch": { - "version": "0.2.14", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz", - "integrity": "sha1-x054BXT2PG+aCQ6Q775u9TpqdWo=", - "dev": true, - "requires": { - "lru-cache": "2", - "sigmund": "~1.0.0" - } - } - } - }, - "glogg": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/glogg/-/glogg-1.0.2.tgz", - "integrity": "sha512-5mwUoSuBk44Y4EshyiqcH95ZntbDdTQqA3QYSrxmzj28Ai0vXBGMH1ApSANH14j2sIRtqCEyg6PfsuP7ElOEDA==", - "dev": true, - "requires": { - "sparkles": "^1.0.0" - } - }, - "got": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/got/-/got-5.7.1.tgz", - "integrity": "sha1-X4FjWmHkplifGAVp6k44FoClHzU=", - "dev": true, - "requires": { - "create-error-class": "^3.0.1", - "duplexer2": "^0.1.4", - "is-redirect": "^1.0.0", - "is-retry-allowed": "^1.0.0", - "is-stream": "^1.0.0", - "lowercase-keys": "^1.0.0", - "node-status-codes": "^1.0.0", - "object-assign": "^4.0.1", - "parse-json": "^2.1.0", - "pinkie-promise": "^2.0.0", - "read-all-stream": "^3.0.0", - "readable-stream": "^2.0.5", - "timed-out": "^3.0.0", - "unzip-response": "^1.0.2", - "url-parse-lax": "^1.0.0" - } - }, - "graceful-fs": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", - "dev": true - }, - "graceful-readlink": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz", - "integrity": "sha1-TK+tdrxi8C+gObL5Tpo906ORpyU=", - "dev": true - }, - "gray-matter": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-0.4.2.tgz", - "integrity": "sha1-I/GQrJhlycCtsE0xnMIw+rdZ1wg=", - "dev": true, - "requires": { - "delims": "^0.1.4", - "fs-utils": "^0.4.3", - "js-yaml": "^3.0.2", - "lodash": "^2.4.1", - "verbalize": "^0.1.2" - }, - "dependencies": { - "lodash": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", - "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", - "dev": true - } - } - }, - "grunt": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grunt/-/grunt-1.0.4.tgz", - "integrity": "sha512-PYsMOrOC+MsdGEkFVwMaMyc6Ob7pKmq+deg1Sjr+vvMWp35sztfwKE7qoN51V+UEtHsyNuMcGdgMLFkBHvMxHQ==", - "dev": true, - "requires": { - "coffeescript": "~1.10.0", - "dateformat": "~1.0.12", - "eventemitter2": "~0.4.13", - "exit": "~0.1.1", - "findup-sync": "~0.3.0", - "glob": "~7.0.0", - "grunt-cli": "~1.2.0", - "grunt-known-options": "~1.1.0", - "grunt-legacy-log": "~2.0.0", - "grunt-legacy-util": "~1.1.1", - "iconv-lite": "~0.4.13", - "js-yaml": "~3.13.0", - "minimatch": "~3.0.2", - "mkdirp": "~0.5.1", - "nopt": "~3.0.6", - "path-is-absolute": "~1.0.0", - "rimraf": "~2.6.2" - }, - "dependencies": { - "grunt-cli": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/grunt-cli/-/grunt-cli-1.2.0.tgz", - "integrity": "sha1-VisRnrsGndtGSs4oRVAb6Xs1tqg=", - "dev": true, - "requires": { - "findup-sync": "~0.3.0", - "grunt-known-options": "~1.1.0", - "nopt": "~3.0.6", - "resolve": "~1.1.0" - } - }, - "resolve": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", - "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", - "dev": true - } - } - }, - "grunt-assemble": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/grunt-assemble/-/grunt-assemble-0.4.0.tgz", - "integrity": "sha1-UpAy7Jd51ZeY+uneUKlcikeMVaQ=", - "dev": true, - "requires": { - "assemble-handlebars": "^0.3.0", - "async": "^0.9.0", - "gray-matter": "^0.4.2", - "inflection": "^1.3.6", - "lodash": "^2.4.1", - "resolve-dep": "^0.4.1" - }, - "dependencies": { - "async": { - "version": "0.9.2", - "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz", - "integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0=", - "dev": true - }, - "lodash": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", - "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", - "dev": true - } - } - }, - "grunt-concurrent": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/grunt-concurrent/-/grunt-concurrent-2.3.1.tgz", - "integrity": "sha1-Hj2zjM71o9oRleYdYx/n4yE0TSM=", - "dev": true, - "requires": { - "arrify": "^1.0.1", - "async": "^1.2.1", - "indent-string": "^2.0.0", - "pad-stream": "^1.0.0" - } - }, - "grunt-contrib-clean": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/grunt-contrib-clean/-/grunt-contrib-clean-1.1.0.tgz", - "integrity": "sha1-Vkq/LQN4qYOhW54/MO51tzjEBjg=", - "dev": true, - "requires": { - "async": "^1.5.2", - "rimraf": "^2.5.1" - } - }, - "grunt-contrib-concat": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/grunt-contrib-concat/-/grunt-contrib-concat-1.0.1.tgz", - "integrity": "sha1-YVCYYwhOhx1+ht5IwBUlntl3Rb0=", - "dev": true, - "requires": { - "chalk": "^1.0.0", - "source-map": "^0.5.3" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "grunt-contrib-connect": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/grunt-contrib-connect/-/grunt-contrib-connect-1.0.2.tgz", - "integrity": "sha1-XPkzuRpnOGBEJzwLJERgPNmIebo=", - "dev": true, - "requires": { - "async": "^1.5.2", - "connect": "^3.4.0", - "connect-livereload": "^0.5.0", - "http2": "^3.3.4", - "morgan": "^1.6.1", - "opn": "^4.0.0", - "portscanner": "^1.0.0", - "serve-index": "^1.7.1", - "serve-static": "^1.10.0" - } - }, - "grunt-contrib-copy": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/grunt-contrib-copy/-/grunt-contrib-copy-1.0.0.tgz", - "integrity": "sha1-cGDGWB6QS4qw0A8HbgqPbj58NXM=", - "dev": true, - "requires": { - "chalk": "^1.1.1", - "file-sync-cmp": "^0.1.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "grunt-contrib-cssmin": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/grunt-contrib-cssmin/-/grunt-contrib-cssmin-1.0.2.tgz", - "integrity": "sha1-FzTL09hMpzZHWLflj/GOUqpgu3Y=", - "dev": true, - "requires": { - "chalk": "^1.0.0", - "clean-css": "~3.4.2", - "maxmin": "^1.1.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "grunt-contrib-htmlmin": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/grunt-contrib-htmlmin/-/grunt-contrib-htmlmin-1.5.0.tgz", - "integrity": "sha1-Stes838ClP6OqX83NFrnC6elglE=", - "dev": true, - "requires": { - "chalk": "^1.0.0", - "html-minifier": "~2.1.7", - "pretty-bytes": "^3.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "pretty-bytes": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-3.0.1.tgz", - "integrity": "sha1-J9AAjXeAY6C0gRuzXHnxvV1fvM8=", - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "grunt-contrib-imagemin": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/grunt-contrib-imagemin/-/grunt-contrib-imagemin-1.0.1.tgz", - "integrity": "sha1-5Ho1YTN29MqpwfkERlA8rhyUTXk=", - "dev": true, - "requires": { - "async": "^1.5.2", - "chalk": "^1.0.0", - "gulp-rename": "^1.2.0", - "imagemin": "^4.0.0", - "pretty-bytes": "^3.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "pretty-bytes": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-3.0.1.tgz", - "integrity": "sha1-J9AAjXeAY6C0gRuzXHnxvV1fvM8=", - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "grunt-contrib-jasmine": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/grunt-contrib-jasmine/-/grunt-contrib-jasmine-1.2.0.tgz", - "integrity": "sha512-1mTRFLsHupOzP0JOSkKIROudMyFVOiBy96dX3/rHCn71z3kkpm6Ch5e71qNozeRfZgAPjf/7mDyQ/uDaS+D8IA==", - "dev": true, - "requires": { - "chalk": "^1.0.0", - "grunt-lib-phantomjs": "^1.0.0", - "jasmine-core": "~2.4.0", - "lodash": "~2.4.1", - "rimraf": "^2.1.4", - "sprintf-js": "~1.0.3" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "lodash": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", - "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", - "dev": true - }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "grunt-contrib-jshint": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/grunt-contrib-jshint/-/grunt-contrib-jshint-1.1.0.tgz", - "integrity": "sha1-Np2QmyWTxA6L55lAshNAhQx5Oaw=", - "dev": true, - "requires": { - "chalk": "^1.1.1", - "hooker": "^0.2.3", - "jshint": "~2.9.4" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "grunt-contrib-uglify": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/grunt-contrib-uglify/-/grunt-contrib-uglify-1.0.2.tgz", - "integrity": "sha1-rmekb5FT7dTLEYE6Vetpxw19svs=", - "dev": true, - "requires": { - "chalk": "^1.0.0", - "lodash": "^4.0.1", - "maxmin": "^1.1.0", - "uglify-js": "~2.6.2", - "uri-path": "^1.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "async": { - "version": "0.2.10", - "resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz", - "integrity": "sha1-trvgsGdLnXGXCMo43owjfLUmw9E=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - }, - "uglify-js": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.6.4.tgz", - "integrity": "sha1-ZeovswWck5RpLxX+2HwrNsFrmt8=", - "dev": true, - "requires": { - "async": "~0.2.6", - "source-map": "~0.5.1", - "uglify-to-browserify": "~1.0.0", - "yargs": "~3.10.0" - } - } - } - }, - "grunt-contrib-watch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/grunt-contrib-watch/-/grunt-contrib-watch-1.1.0.tgz", - "integrity": "sha512-yGweN+0DW5yM+oo58fRu/XIRrPcn3r4tQx+nL7eMRwjpvk+rQY6R8o94BPK0i2UhTg9FN21hS+m8vR8v9vXfeg==", - "dev": true, - "requires": { - "async": "^2.6.0", - "gaze": "^1.1.0", - "lodash": "^4.17.10", - "tiny-lr": "^1.1.1" - }, - "dependencies": { - "async": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz", - "integrity": "sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==", - "dev": true, - "requires": { - "lodash": "^4.17.14" - } - } - } - }, - "grunt-critical": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/grunt-critical/-/grunt-critical-0.2.2.tgz", - "integrity": "sha1-n5IxFLydR7yQ+pB35d0uwXBLKWY=", - "dev": true, - "requires": { - "async": "^2.0.1", - "critical": "^0.8.0", - "glob": "^7.0.3", - "lodash": "^4.13.1" - }, - "dependencies": { - "async": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz", - "integrity": "sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==", - "dev": true, - "requires": { - "lodash": "^4.17.14" - } - } - } - }, - "grunt-known-options": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/grunt-known-options/-/grunt-known-options-1.1.1.tgz", - "integrity": "sha512-cHwsLqoighpu7TuYj5RonnEuxGVFnztcUqTqp5rXFGYL4OuPFofwC4Ycg7n9fYwvK6F5WbYgeVOwph9Crs2fsQ==", - "dev": true - }, - "grunt-legacy-log": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/grunt-legacy-log/-/grunt-legacy-log-2.0.0.tgz", - "integrity": "sha512-1m3+5QvDYfR1ltr8hjiaiNjddxGdQWcH0rw1iKKiQnF0+xtgTazirSTGu68RchPyh1OBng1bBUjLmX8q9NpoCw==", - "dev": true, - "requires": { - "colors": "~1.1.2", - "grunt-legacy-log-utils": "~2.0.0", - "hooker": "~0.2.3", - "lodash": "~4.17.5" - } - }, - "grunt-legacy-log-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/grunt-legacy-log-utils/-/grunt-legacy-log-utils-2.0.1.tgz", - "integrity": "sha512-o7uHyO/J+i2tXG8r2bZNlVk20vlIFJ9IEYyHMCQGfWYru8Jv3wTqKZzvV30YW9rWEjq0eP3cflQ1qWojIe9VFA==", - "dev": true, - "requires": { - "chalk": "~2.4.1", - "lodash": "~4.17.10" - } - }, - "grunt-legacy-util": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/grunt-legacy-util/-/grunt-legacy-util-1.1.1.tgz", - "integrity": "sha512-9zyA29w/fBe6BIfjGENndwoe1Uy31BIXxTH3s8mga0Z5Bz2Sp4UCjkeyv2tI449ymkx3x26B+46FV4fXEddl5A==", - "dev": true, - "requires": { - "async": "~1.5.2", - "exit": "~0.1.1", - "getobject": "~0.1.0", - "hooker": "~0.2.3", - "lodash": "~4.17.10", - "underscore.string": "~3.3.4", - "which": "~1.3.0" - } - }, - "grunt-lib-phantomjs": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/grunt-lib-phantomjs/-/grunt-lib-phantomjs-1.1.0.tgz", - "integrity": "sha1-np7c3Z/S3UDgwYHJQ3HVcqpe6tI=", - "dev": true, - "requires": { - "eventemitter2": "^0.4.9", - "phantomjs-prebuilt": "^2.1.3", - "rimraf": "^2.5.2", - "semver": "^5.1.0", - "temporary": "^0.0.8" - } - }, - "grunt-newer": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/grunt-newer/-/grunt-newer-1.3.0.tgz", - "integrity": "sha1-g8y3od2ny9irI7BZAk6+YUrS80I=", - "dev": true, - "requires": { - "async": "^1.5.2", - "rimraf": "^2.5.2" - } - }, - "grunt-sass": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/grunt-sass/-/grunt-sass-1.2.1.tgz", - "integrity": "sha1-+4e2yqxG+zLUUXf9Lktv90aMGRk=", - "dev": true, - "requires": { - "each-async": "^1.0.0", - "node-sass": "^3.7.0", - "object-assign": "^4.0.1" - } - }, - "grunt-svgmin": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/grunt-svgmin/-/grunt-svgmin-3.3.0.tgz", - "integrity": "sha1-YQlT3JGuwY9nD8KMbFaW+7gDe7A=", - "dev": true, - "requires": { - "chalk": "^1.0.0", - "each-async": "^1.0.0", - "log-symbols": "^1.0.0", - "pretty-bytes": "^3.0.0", - "svgo": "^0.6.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "pretty-bytes": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-3.0.1.tgz", - "integrity": "sha1-J9AAjXeAY6C0gRuzXHnxvV1fvM8=", - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "grunt-template": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/grunt-template/-/grunt-template-0.2.3.tgz", - "integrity": "sha1-JBVa/qeJhL5nMMHHc7uS3odHo3A=", - "dev": true - }, - "grunt-umd": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/grunt-umd/-/grunt-umd-2.4.0.tgz", - "integrity": "sha1-0TGMZFukc0wQwgwd1pI0Z9gbBe8=", - "dev": true, - "requires": { - "libumd": "^0.7.0", - "xtend": "^4.0.0" - }, - "dependencies": { - "xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true - } - } - }, - "grunt-usemin": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/grunt-usemin/-/grunt-usemin-3.1.1.tgz", - "integrity": "sha1-WrZ5UQ1nLOpWbMcXq+i4oAn2QcI=", - "dev": true, - "requires": { - "chalk": "^1.1.1", - "debug": "^2.1.3", - "lodash": "^3.6.0", - "path-exists": "^1.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "lodash": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", - "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=", - "dev": true - }, - "path-exists": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-1.0.0.tgz", - "integrity": "sha1-1aiZjrce83p0w06w2eum6HjuoIE=", - "dev": true - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "gulp-decompress": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gulp-decompress/-/gulp-decompress-1.2.0.tgz", - "integrity": "sha1-jutlpeAV+O2FMsr+KEVJYGJvDcc=", - "dev": true, - "optional": true, - "requires": { - "archive-type": "^3.0.0", - "decompress": "^3.0.0", - "gulp-util": "^3.0.1", - "readable-stream": "^2.0.2" - } - }, - "gulp-header": { - "version": "1.8.12", - "resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.12.tgz", - "integrity": "sha512-lh9HLdb53sC7XIZOYzTXM4lFuXElv3EVkSDhsd7DoJBj7hm+Ni7D3qYbb+Rr8DuM8nRanBvkVO9d7askreXGnQ==", - "dev": true, - "requires": { - "concat-with-sourcemaps": "*", - "lodash.template": "^4.4.0", - "through2": "^2.0.0" - }, - "dependencies": { - "lodash.template": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz", - "integrity": "sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==", - "dev": true, - "requires": { - "lodash._reinterpolate": "^3.0.0", - "lodash.templatesettings": "^4.0.0" - } - }, - "lodash.templatesettings": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz", - "integrity": "sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==", - "dev": true, - "requires": { - "lodash._reinterpolate": "^3.0.0" - } - } - } - }, - "gulp-rename": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/gulp-rename/-/gulp-rename-1.4.0.tgz", - "integrity": "sha512-swzbIGb/arEoFK89tPY58vg3Ok1bw+d35PfUNwWqdo7KM4jkmuGA78JiDNqR+JeZFaeeHnRg9N7aihX3YPmsyg==", - "dev": true - }, - "gulp-sourcemaps": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/gulp-sourcemaps/-/gulp-sourcemaps-1.6.0.tgz", - "integrity": "sha1-uG/zSdgBzrVuHZ59x7vLS33uYAw=", - "dev": true, - "requires": { - "convert-source-map": "^1.1.1", - "graceful-fs": "^4.1.2", - "strip-bom": "^2.0.0", - "through2": "^2.0.0", - "vinyl": "^1.0.0" - } - }, - "gulp-util": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/gulp-util/-/gulp-util-3.0.8.tgz", - "integrity": "sha1-AFTh50RQLifATBh8PsxQXdVLu08=", - "dev": true, - "requires": { - "array-differ": "^1.0.0", - "array-uniq": "^1.0.2", - "beeper": "^1.0.0", - "chalk": "^1.0.0", - "dateformat": "^2.0.0", - "fancy-log": "^1.1.0", - "gulplog": "^1.0.0", - "has-gulplog": "^0.1.0", - "lodash._reescape": "^3.0.0", - "lodash._reevaluate": "^3.0.0", - "lodash._reinterpolate": "^3.0.0", - "lodash.template": "^3.0.0", - "minimist": "^1.1.0", - "multipipe": "^0.1.2", - "object-assign": "^3.0.0", - "replace-ext": "0.0.1", - "through2": "^2.0.0", - "vinyl": "^0.5.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "array-differ": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz", - "integrity": "sha1-7/UuN1gknTO+QCuLuOVkuytdQDE=", - "dev": true - }, - "array-uniq": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", - "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "dateformat": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-2.2.0.tgz", - "integrity": "sha1-QGXiATz5+5Ft39gu+1Bq1MZ2kGI=", - "dev": true - }, - "object-assign": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz", - "integrity": "sha1-m+3VygiXlJvKR+f/QIBi1Un1h/I=", - "dev": true - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - }, - "vinyl": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.5.3.tgz", - "integrity": "sha1-sEVbOPxeDPMNQyUTLkYZcMIJHN4=", - "dev": true, - "requires": { - "clone": "^1.0.0", - "clone-stats": "^0.0.1", - "replace-ext": "0.0.1" - } - } - } - }, - "gulplog": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/gulplog/-/gulplog-1.0.0.tgz", - "integrity": "sha1-4oxNRdBey77YGDY86PnFkmIp/+U=", - "dev": true, - "requires": { - "glogg": "^1.0.0" - } - }, - "gzip-size": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-1.0.0.tgz", - "integrity": "sha1-Zs+LEBBHInuVus5uodoMF37Vwi8=", - "dev": true, - "requires": { - "browserify-zlib": "^0.1.4", - "concat-stream": "^1.4.1" - } - }, - "handlebars": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-3.0.7.tgz", - "integrity": "sha512-Pb/VCTFwbcm3KbD5rIzVVsbVBk7XMfhS4ZIJUfXdMF7H+UngtsofnUBfop/i24GSr3HCDG1PL0KoIX0YqEsXTg==", - "dev": true, - "requires": { - "optimist": "^0.6.1", - "source-map": "^0.1.40", - "uglify-js": "^2.6" - } - }, - "handlebars-helpers": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/handlebars-helpers/-/handlebars-helpers-0.6.2.tgz", - "integrity": "sha1-CY6xKCX9rogz4zm2MykA+Wh8XaE=", - "dev": true, - "requires": { - "arr-filter": "^1.1.1", - "arr-flatten": "^1.0.1", - "array-sort": "^0.1.2", - "code-context": "^0.5.3", - "create-frame": "^0.1.2", - "define-property": "^0.2.5", - "for-in": "^0.1.5", - "for-own": "^0.1.4", - "get-object": "^0.2.0", - "get-value": "^2.0.6", - "helper-date": "^0.2.2", - "helper-markdown": "^0.2.1", - "helper-md": "^0.2.1", - "html-tag": "^0.2.1", - "index-of": "^0.2.0", - "is-even": "^0.1.1", - "is-glob": "^2.0.1", - "is-number": "^2.1.0", - "is-odd": "^0.1.0", - "kind-of": "^3.0.3", - "lazy-cache": "^2.0.1", - "logging-helpers": "^0.4.0", - "make-iterator": "^0.2.0", - "markdown-utils": "^0.7.3", - "micromatch": "^2.3.10", - "mixin-deep": "^1.1.3", - "normalize-path": "^2.0.1", - "relative": "^3.0.2", - "repo-utils": "^0.3.4", - "striptags": "^2.1.1", - "to-file": "^0.2.0", - "to-gfm-code-block": "^0.1.1" - }, - "dependencies": { - "for-in": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-0.1.8.tgz", - "integrity": "sha1-2Hc5COMSVhCZUrH9ubP6hn0ndeE=", - "dev": true - }, - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true - }, - "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - }, - "lazy-cache": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", - "integrity": "sha1-uRkKT5EzVGlIQIWfio9whNiCImQ=", - "dev": true, - "requires": { - "set-getter": "^0.1.0" - } - }, - "normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", - "dev": true, - "requires": { - "remove-trailing-separator": "^1.0.1" - } - } - } - }, - "handy": { - "version": "0.0.13", - "resolved": "https://registry.npmjs.org/handy/-/handy-0.0.13.tgz", - "integrity": "sha1-gls40+0ozJ+rsGlXWItKiUM8hGc=", - "dev": true - }, - "har-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", - "dev": true - }, - "har-validator": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", - "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", - "dev": true, - "requires": { - "ajv": "^6.5.5", - "har-schema": "^2.0.0" - } - }, - "has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "has-color": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/has-color/-/has-color-0.1.7.tgz", - "integrity": "sha1-ZxRKUmDDT8PMpnfQQdr1L+e3iy8=", - "dev": true - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "has-gulplog": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/has-gulplog/-/has-gulplog-0.1.0.tgz", - "integrity": "sha1-ZBTIKRNpfaUVkDl9r7EvIpZ4Ec4=", - "dev": true, - "requires": { - "sparkles": "^1.0.0" - } - }, - "has-unicode": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", - "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", - "dev": true - }, - "has-values": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", - "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", - "dev": true - }, - "hash": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/hash/-/hash-0.2.0.tgz", - "integrity": "sha1-l4ZU+nI7ElLuqETlYMOTHa0nKJs=", - "dev": true - }, - "hasha": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/hasha/-/hasha-2.2.0.tgz", - "integrity": "sha1-eNfL/B5tZjA/55g3NlmEUXsvbuE=", - "dev": true, - "requires": { - "is-stream": "^1.0.1", - "pinkie-promise": "^2.0.0" - } - }, - "hawk": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz", - "integrity": "sha1-B4REvXwWQLD+VA0sm3PVlnjo4cQ=", - "dev": true, - "requires": { - "boom": "2.x.x", - "cryptiles": "2.x.x", - "hoek": "2.x.x", - "sntp": "1.x.x" - } - }, - "he": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", - "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=", - "dev": true - }, - "header-case": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/header-case/-/header-case-1.0.1.tgz", - "integrity": "sha1-lTWXMZfBRLCWE81l0xfvGZY70C0=", - "dev": true, - "requires": { - "no-case": "^2.2.0", - "upper-case": "^1.1.3" - } - }, - "helper-date": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/helper-date/-/helper-date-0.2.3.tgz", - "integrity": "sha1-2HDKu6BB0ynMhW2yC7jElnTj7yg=", - "dev": true, - "requires": { - "date.js": "^0.3.1", - "extend-shallow": "^2.0.1", - "kind-of": "^3.1.0", - "moment": "^2.17.1" - } - }, - "helper-markdown": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/helper-markdown/-/helper-markdown-0.2.2.tgz", - "integrity": "sha1-ONt/dxhJ4wrpXJL8AhuutT8uMEA=", - "dev": true, - "requires": { - "isobject": "^2.0.0", - "mixin-deep": "^1.1.3", - "remarkable": "^1.6.0" - } - }, - "helper-md": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/helper-md/-/helper-md-0.2.2.tgz", - "integrity": "sha1-wfWdflW7riM2L9ig6XFgeuxp1B8=", - "dev": true, - "requires": { - "ent": "^2.2.0", - "extend-shallow": "^2.0.1", - "fs-exists-sync": "^0.1.0", - "remarkable": "^1.6.2" - } - }, - "highlight.js": { - "version": "7.4.0", - "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-7.4.0.tgz", - "integrity": "sha1-18pqJeObTEK0JK91Ny5hFjiJepA=", - "dev": true - }, - "hoek": { - "version": "2.16.3", - "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz", - "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=", - "dev": true - }, - "homedir-polyfill": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", - "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==", - "dev": true, - "requires": { - "parse-passwd": "^1.0.0" - } - }, - "hooker": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/hooker/-/hooker-0.2.3.tgz", - "integrity": "sha1-uDT3I8xKJCqmWWNFnfbZhMXT2Vk=", - "dev": true - }, - "hosted-git-info": { - "version": "2.8.4", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.4.tgz", - "integrity": "sha512-pzXIvANXEFrc5oFFXRMkbLPQ2rXRoDERwDLyrcUxGhaZhgP54BBSl9Oheh7Vv0T090cszWBxPjkQQ5Sq1PbBRQ==", - "dev": true - }, - "html-minifier": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/html-minifier/-/html-minifier-2.1.7.tgz", - "integrity": "sha1-kFHW/LvPIU7TB+GtdPQyu5rWVcw=", - "dev": true, - "requires": { - "change-case": "3.0.x", - "clean-css": "3.4.x", - "commander": "2.9.x", - "he": "1.1.x", - "ncname": "1.0.x", - "relateurl": "0.2.x", - "uglify-js": "2.6.x" - }, - "dependencies": { - "async": { - "version": "0.2.10", - "resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz", - "integrity": "sha1-trvgsGdLnXGXCMo43owjfLUmw9E=", - "dev": true - }, - "commander": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz", - "integrity": "sha1-nJkJQXbhIkDLItbFFGCYQA/g99Q=", - "dev": true, - "requires": { - "graceful-readlink": ">= 1.0.0" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "uglify-js": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.6.4.tgz", - "integrity": "sha1-ZeovswWck5RpLxX+2HwrNsFrmt8=", - "dev": true, - "requires": { - "async": "~0.2.6", - "source-map": "~0.5.1", - "uglify-to-browserify": "~1.0.0", - "yargs": "~3.10.0" - } - } - } - }, - "html-tag": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/html-tag/-/html-tag-0.2.1.tgz", - "integrity": "sha1-r0jg3kdovRTonYXnPgZwQeIHRyI=", - "dev": true - }, - "htmlparser": { - "version": "1.7.7", - "resolved": "https://registry.npmjs.org/htmlparser/-/htmlparser-1.7.7.tgz", - "integrity": "sha1-GeezmX/2+6yZrlp9J2ZInv5+LQ4=", - "dev": true - }, - "htmlparser2": { - "version": "3.8.3", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.8.3.tgz", - "integrity": "sha1-mWwosZFRaovoZQGn15dX5ccMEGg=", - "dev": true, - "requires": { - "domelementtype": "1", - "domhandler": "2.3", - "domutils": "1.5", - "entities": "1.0", - "readable-stream": "1.1" - }, - "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true - }, - "readable-stream": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - } - } - }, - "http-errors": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", - "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", - "dev": true, - "requires": { - "depd": "~1.1.2", - "inherits": "2.0.3", - "setprototypeof": "1.1.0", - "statuses": ">= 1.4.0 < 2" - }, - "dependencies": { - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - } - } - }, - "http-parser-js": { - "version": "0.4.10", - "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.4.10.tgz", - "integrity": "sha1-ksnBN0w1CF912zWexWzCV8u5P6Q=", - "dev": true - }, - "http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - } - }, - "http2": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/http2/-/http2-3.3.7.tgz", - "integrity": "sha512-puSi8M8WNlFJm9Pk4c/Mbz9Gwparuj3gO9/RRO5zv6piQ0FY+9Qywp0PdWshYgsMJSalixFY7eC6oPu0zRxLAQ==", - "dev": true - }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "imageinliner": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/imageinliner/-/imageinliner-0.2.4.tgz", - "integrity": "sha1-EQ8LstQKEZaPyz202Fohr949v00=", - "dev": true, - "requires": { - "css-parse": "~1.7.0", - "css-stringify": "~1.4.1", - "mime": "~1.2.9", - "mkdirp": "~0.3.5", - "optimist": "~0.6.0" - }, - "dependencies": { - "mime": { - "version": "1.2.11", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.2.11.tgz", - "integrity": "sha1-WCA+7Ybjpe8XrtK32evUfwpg3RA=", - "dev": true - }, - "mkdirp": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz", - "integrity": "sha1-3j5fiWHIjHh+4TaN+EmsRBPsqNc=", - "dev": true - } - } - }, - "imagemin": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/imagemin/-/imagemin-4.0.0.tgz", - "integrity": "sha1-6Q5/CTaDZZXxj6Ff6Qb0+iWeqEc=", - "dev": true, - "requires": { - "buffer-to-vinyl": "^1.0.0", - "concat-stream": "^1.4.6", - "imagemin-gifsicle": "^4.0.0", - "imagemin-jpegtran": "^4.0.0", - "imagemin-optipng": "^4.0.0", - "imagemin-svgo": "^4.0.0", - "optional": "^0.1.0", - "readable-stream": "^2.0.0", - "stream-combiner2": "^1.1.1", - "vinyl-fs": "^2.1.1" - } - }, - "imagemin-gifsicle": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/imagemin-gifsicle/-/imagemin-gifsicle-4.2.0.tgz", - "integrity": "sha1-D++butNHbmt2iFc2zFsLh6CHV8o=", - "dev": true, - "optional": true, - "requires": { - "gifsicle": "^3.0.0", - "is-gif": "^1.0.0", - "through2": "^0.6.1" - }, - "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true, - "optional": true - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "optional": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true, - "optional": true - }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", - "dev": true, - "optional": true, - "requires": { - "readable-stream": ">=1.0.33-1 <1.1.0-0", - "xtend": ">=4.0.0 <4.1.0-0" - } - }, - "xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true, - "optional": true - } - } - }, - "imagemin-jpegtran": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/imagemin-jpegtran/-/imagemin-jpegtran-4.3.2.tgz", - "integrity": "sha1-G8bR4r0T/bZNJFUm1jWn5d/rEvw=", - "dev": true, - "optional": true, - "requires": { - "is-jpg": "^1.0.0", - "jpegtran-bin": "^3.0.0", - "through2": "^2.0.0" - } - }, - "imagemin-optipng": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/imagemin-optipng/-/imagemin-optipng-4.3.0.tgz", - "integrity": "sha1-dgRmOrLuMVczJ0cm/Rw3TStErbY=", - "dev": true, - "optional": true, - "requires": { - "exec-buffer": "^2.0.0", - "is-png": "^1.0.0", - "optipng-bin": "^3.0.0", - "through2": "^0.6.1" - }, - "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true, - "optional": true - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "optional": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true, - "optional": true - }, - "through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=", - "dev": true, - "optional": true, - "requires": { - "readable-stream": ">=1.0.33-1 <1.1.0-0", - "xtend": ">=4.0.0 <4.1.0-0" - } - }, - "xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true, - "optional": true - } - } - }, - "imagemin-svgo": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/imagemin-svgo/-/imagemin-svgo-4.2.1.tgz", - "integrity": "sha1-VPB9xW9HJgRi32phxUvvtEtXvlU=", - "dev": true, - "optional": true, - "requires": { - "is-svg": "^1.0.0", - "svgo": "^0.6.0", - "through2": "^2.0.0" - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true - }, - "in-publish": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.0.tgz", - "integrity": "sha1-4g/146KvwmkDILbcVSaCqcf631E=", - "dev": true - }, - "indent-string": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", - "integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=", - "dev": true, - "requires": { - "repeating": "^2.0.0" - } - }, - "index-of": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/index-of/-/index-of-0.2.0.tgz", - "integrity": "sha1-OMHiNn6lXf+tO261kuwcwwkNfWU=", - "dev": true - }, - "inflection": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/inflection/-/inflection-1.12.0.tgz", - "integrity": "sha1-ogCTVlbW9fa8TcdQLhrstwMihBY=", - "dev": true - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherit": { - "version": "2.2.7", - "resolved": "https://registry.npmjs.org/inherit/-/inherit-2.2.7.tgz", - "integrity": "sha512-dxJmC1j0Q32NFAjvbd6g3lXYLZ49HgzotgbSMwMkoiTXGhC9412Oc24g7A7M9cPPkw/vDsF2cSII+2zJwocUtQ==", - "dev": true - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "ini": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", - "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", - "dev": true - }, - "inline-critical": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/inline-critical/-/inline-critical-2.4.2.tgz", - "integrity": "sha1-1PH9bO+MMuK34mjfbtw1xK6bFFc=", - "dev": true, - "requires": { - "cave": "2.0.0", - "cheerio": "0.22.0", - "clean-css": "^4.1.5", - "css": "2.2.1", - "detect-indent": "5.0.0", - "dom-serializer": "0.1.0", - "fg-loadcss": "1.3.1", - "get-stdin": "5.0.1", - "indent-string": "3.1.0", - "lodash": "4.17.4", - "meow": "3.7.0", - "normalize-newline": "3.0.0", - "reaver": "2.0.0", - "resolve": "1.3.3", - "slash": "1.0.0", - "uglify-js": "^3.0.23" - }, - "dependencies": { - "atob": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/atob/-/atob-1.1.3.tgz", - "integrity": "sha1-lfE2KbEsOlGl0hWr3OKqnzL4B3M=", - "dev": true - }, - "clean-css": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.1.tgz", - "integrity": "sha512-4ZxI6dy4lrY6FHzfiy1aEOXgu4LIsW2MhwG0VBKdcoGoH/XLFgaHSdLTGr4O8Be6A8r3MOphEiI8Gc1n0ecf3g==", - "dev": true, - "requires": { - "source-map": "~0.6.0" - } - }, - "commander": { - "version": "2.20.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz", - "integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==", - "dev": true - }, - "css": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/css/-/css-2.2.1.tgz", - "integrity": "sha1-c6TIHehdtmTU7mdPfUcIXjstVdw=", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "source-map": "^0.1.38", - "source-map-resolve": "^0.3.0", - "urix": "^0.1.0" - }, - "dependencies": { - "source-map": { - "version": "0.1.43", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", - "integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=", - "dev": true, - "requires": { - "amdefine": ">=0.0.4" - } - } - } - }, - "dom-serializer": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.0.tgz", - "integrity": "sha1-BzxpdUbOB4DOI75KKOKT5AvDDII=", - "dev": true, - "requires": { - "domelementtype": "~1.1.1", - "entities": "~1.1.1" - } - }, - "domelementtype": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.1.3.tgz", - "integrity": "sha1-vSh3PiZCiBrsUVRJJCmcXNgiGFs=", - "dev": true - }, - "entities": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz", - "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==", - "dev": true - }, - "get-stdin": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-5.0.1.tgz", - "integrity": "sha1-Ei4WFZHiH/TFJTAwVpPyDmOTo5g=", - "dev": true - }, - "indent-string": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.1.0.tgz", - "integrity": "sha1-CP9DNGAziDmbMp5rlTjcejz13n0=", - "dev": true - }, - "lodash": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", - "dev": true - }, - "resolve": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.3.3.tgz", - "integrity": "sha1-ZVkHw0aahoDcLeOidaj91paR8OU=", - "dev": true, - "requires": { - "path-parse": "^1.0.5" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "source-map-resolve": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.3.1.tgz", - "integrity": "sha1-YQ9hIqRFuN1RU1oqcbeD38Ekh2E=", - "dev": true, - "requires": { - "atob": "~1.1.0", - "resolve-url": "~0.2.1", - "source-map-url": "~0.3.0", - "urix": "~0.1.0" - } - }, - "source-map-url": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.3.0.tgz", - "integrity": "sha1-fsrxO1e80J2opAxdJp2zN5nUqvk=", - "dev": true - }, - "uglify-js": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.6.0.tgz", - "integrity": "sha512-W+jrUHJr3DXKhrsS7NUVxn3zqMOFn0hL/Ei6v0anCIMoKC93TjcflTagwIHLW7SfMFfiQuktQyFVCFHGUE0+yg==", - "dev": true, - "requires": { - "commander": "~2.20.0", - "source-map": "~0.6.1" - } - } - } - }, - "invert-kv": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", - "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", - "dev": true - }, - "ip-regex": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-1.0.3.tgz", - "integrity": "sha1-3FiQdvZZ9BnCIgOaMzFvHHOH7/0=", - "dev": true, - "optional": true - }, - "irregular-plurals": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-1.4.0.tgz", - "integrity": "sha1-LKmwM2UREYVUEvFr5dd8YqRYp2Y=", - "dev": true - }, - "is-absolute": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-0.1.7.tgz", - "integrity": "sha1-hHSREZ/MtftDYhfMc39/qtUPYD8=", - "dev": true, - "optional": true, - "requires": { - "is-relative": "^0.1.0" - } - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", - "dev": true - }, - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "is-bzip2": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-bzip2/-/is-bzip2-1.0.0.tgz", - "integrity": "sha1-XuWOqlounIDiFAe+3yOuWsCRs/w=", - "dev": true, - "optional": true - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - }, - "dependencies": { - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - } - } - }, - "is-dotfile": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.3.tgz", - "integrity": "sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE=", - "dev": true - }, - "is-equal-shallow": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz", - "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", - "dev": true, - "requires": { - "is-primitive": "^2.0.0" - } - }, - "is-even": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/is-even/-/is-even-0.1.2.tgz", - "integrity": "sha1-4EMqc3ny0gtuu8LLEeab6q8xzWM=", - "dev": true, - "requires": { - "is-odd": "^0.1.2" - } - }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", - "dev": true - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true - }, - "is-finite": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", - "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "is-gif": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-gif/-/is-gif-1.0.0.tgz", - "integrity": "sha1-ptKumIkwB7/6l6HYwB1jIFgyCX4=", - "dev": true, - "optional": true - }, - "is-glob": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", - "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", - "dev": true, - "requires": { - "is-extglob": "^2.1.0" - } - }, - "is-gzip": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-gzip/-/is-gzip-1.0.0.tgz", - "integrity": "sha1-bKiwe5nHeZgCWQDlVc7Y7YCHmoM=", - "dev": true, - "optional": true - }, - "is-jpg": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-jpg/-/is-jpg-1.0.1.tgz", - "integrity": "sha1-KW1X/dmc4BBDSnKD40armhA16XU=", - "dev": true, - "optional": true - }, - "is-lower-case": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/is-lower-case/-/is-lower-case-1.1.3.tgz", - "integrity": "sha1-fhR75HaNxGbbO/shzGCzHmrWk5M=", - "dev": true, - "requires": { - "lower-case": "^1.1.0" - } - }, - "is-my-ip-valid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-my-ip-valid/-/is-my-ip-valid-1.0.0.tgz", - "integrity": "sha512-gmh/eWXROncUzRnIa1Ubrt5b8ep/MGSnfAUI3aRp+sqTCs1tv1Isl8d8F6JmkN3dXKc3ehZMrtiPN9eL03NuaQ==", - "dev": true - }, - "is-my-json-valid": { - "version": "2.20.0", - "resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.20.0.tgz", - "integrity": "sha512-XTHBZSIIxNsIsZXg7XB5l8z/OBFosl1Wao4tXLpeC7eKU4Vm/kdop2azkPqULwnfGQjmeDIyey9g7afMMtdWAA==", - "dev": true, - "requires": { - "generate-function": "^2.0.0", - "generate-object-property": "^1.1.0", - "is-my-ip-valid": "^1.0.0", - "jsonpointer": "^4.0.0", - "xtend": "^4.0.0" - }, - "dependencies": { - "xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true - } - } - }, - "is-natural-number": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-natural-number/-/is-natural-number-2.1.1.tgz", - "integrity": "sha1-fUxXKDd+84bD4ZSpkRv1fG3DNec=", - "dev": true, - "optional": true - }, - "is-npm": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-1.0.0.tgz", - "integrity": "sha1-8vtjpl5JBbQGyGBydloaTceTufQ=", - "dev": true - }, - "is-number": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", - "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "is-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", - "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", - "dev": true - }, - "is-odd": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/is-odd/-/is-odd-0.1.2.tgz", - "integrity": "sha1-vFc7XONx7yqtbm9JeZtyvvE5eKc=", - "dev": true, - "requires": { - "is-number": "^3.0.0" - }, - "dependencies": { - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - } - } - }, - "is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "requires": { - "isobject": "^3.0.1" - }, - "dependencies": { - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - } - } - }, - "is-png": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-png/-/is-png-1.1.0.tgz", - "integrity": "sha1-1XSxK/J1wDUEVVcLDltXqwYgd84=", - "dev": true, - "optional": true - }, - "is-posix-bracket": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz", - "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=", - "dev": true - }, - "is-primitive": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz", - "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", - "dev": true - }, - "is-property": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz", - "integrity": "sha1-V/4cTkhHTt1lsJkR8msc1Ald2oQ=", - "dev": true - }, - "is-redirect": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-redirect/-/is-redirect-1.0.0.tgz", - "integrity": "sha1-HQPd7VO9jbDzDCbk+V02/HyH3CQ=", - "dev": true - }, - "is-relative": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-0.1.3.tgz", - "integrity": "sha1-kF/uiuhvRbPsYUvDwVyGnfCHboI=", - "dev": true, - "optional": true - }, - "is-retry-allowed": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz", - "integrity": "sha512-RUbUeKwvm3XG2VYamhJL1xFktgjvPzL0Hq8C+6yrWIswDy3BIXGqCxhxkc30N9jqK311gVU137K8Ei55/zVJRg==", - "dev": true - }, - "is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", - "dev": true - }, - "is-svg": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-svg/-/is-svg-1.1.1.tgz", - "integrity": "sha1-rA76r7ZTrFhHNwix+HNjbKEQ4xs=", - "dev": true, - "optional": true - }, - "is-tar": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-tar/-/is-tar-1.0.0.tgz", - "integrity": "sha1-L2suF5LB9bs2UZrKqdZcDSb+hT0=", - "dev": true, - "optional": true - }, - "is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true - }, - "is-unc-path": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-0.1.2.tgz", - "integrity": "sha1-arBTpyVzwQJQ/0FqOBTDUXivObk=", - "dev": true, - "requires": { - "unc-path-regex": "^0.1.0" - } - }, - "is-upper-case": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-upper-case/-/is-upper-case-1.1.2.tgz", - "integrity": "sha1-jQsfp+eTOh5YSDYA7H2WYcuvdW8=", - "dev": true, - "requires": { - "upper-case": "^1.1.0" - } - }, - "is-url": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/is-url/-/is-url-1.2.4.tgz", - "integrity": "sha512-ITvGim8FhRiYe4IQ5uHSkj7pVaPDrCTkNd3yq3cV7iZAcJdHTUMPMEHcqSOy9xZ9qFenQCvi+2wjH9a1nXqHww==", - "dev": true, - "optional": true - }, - "is-utf8": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", - "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", - "dev": true - }, - "is-valid-glob": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/is-valid-glob/-/is-valid-glob-0.3.0.tgz", - "integrity": "sha1-1LVcafUYhvm2XHDWwmItN+KfSP4=", - "dev": true - }, - "is-windows": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-0.2.0.tgz", - "integrity": "sha1-3hqm1j6indJIc3tp8f+LgALSEIw=", - "dev": true - }, - "is-zip": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-zip/-/is-zip-1.0.0.tgz", - "integrity": "sha1-R7Co/004p2QxzP2ZqOFaTIa6IyU=", - "dev": true, - "optional": true - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true - }, - "isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", - "dev": true, - "requires": { - "isarray": "1.0.0" - } - }, - "isstream": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", - "dev": true - }, - "jasmine-core": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-2.4.1.tgz", - "integrity": "sha1-b4OrOg8WlRcizgfSBsdz1XzIOL4=", - "dev": true - }, - "jasmine-jquery": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/jasmine-jquery/-/jasmine-jquery-2.1.1.tgz", - "integrity": "sha1-1AleZGlEomdjI1dpqwGNnzDw1Hs=", - "dev": true - }, - "jit-grunt": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/jit-grunt/-/jit-grunt-0.10.0.tgz", - "integrity": "sha1-AIw6f+Hpa9DYTiYOofoXg0V/ecI=", - "dev": true - }, - "jpegtran-bin": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/jpegtran-bin/-/jpegtran-bin-3.2.0.tgz", - "integrity": "sha1-9g7PSumZwL2tLp+83ytvCYHnops=", - "dev": true, - "optional": true, - "requires": { - "bin-build": "^2.0.0", - "bin-wrapper": "^3.0.0", - "logalot": "^2.0.0" - } - }, - "jquery": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.4.1.tgz", - "integrity": "sha512-36+AdBzCL+y6qjw5Tx7HgzeGCzC81MDDgaUP8ld2zhx58HdqXGoBd+tHdrBMiyjGQs0Hxs/MLZTu/eHNJJuWPw==", - "dev": true - }, - "js-base64": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.5.1.tgz", - "integrity": "sha512-M7kLczedRMYX4L8Mdh4MzyAMM9O5osx+4FcOQuTvr3A9F2D9S5JXheN0ewNbrvK2UatkTRhL5ejGmGSjNMiZuw==", - "dev": true - }, - "js-yaml": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", - "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - }, - "jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", - "dev": true - }, - "jsesc": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", - "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", - "dev": true - }, - "jshint": { - "version": "2.9.7", - "resolved": "https://registry.npmjs.org/jshint/-/jshint-2.9.7.tgz", - "integrity": "sha512-Q8XN38hGsVQhdlM+4gd1Xl7OB1VieSuCJf+fEJjpo59JH99bVJhXRXAh26qQ15wfdd1VPMuDWNeSWoNl53T4YA==", - "dev": true, - "requires": { - "cli": "~1.0.0", - "console-browserify": "1.1.x", - "exit": "0.1.x", - "htmlparser2": "3.8.x", - "lodash": "~4.17.10", - "minimatch": "~3.0.2", - "shelljs": "0.3.x", - "strip-json-comments": "1.0.x" - }, - "dependencies": { - "strip-json-comments": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-1.0.4.tgz", - "integrity": "sha1-HhX7ysl9Pumb8tc7TGVrCCu6+5E=", - "dev": true - } - } - }, - "jshint-stylish": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/jshint-stylish/-/jshint-stylish-2.2.1.tgz", - "integrity": "sha1-JCCCosA1rgP9gQROBXDMQgjPbmE=", - "dev": true, - "requires": { - "beeper": "^1.1.0", - "chalk": "^1.0.0", - "log-symbols": "^1.0.0", - "plur": "^2.1.0", - "string-length": "^1.0.0", - "text-table": "^0.2.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "json-schema": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", - "dev": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", - "dev": true - }, - "json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", - "dev": true - }, - "jsonfile": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz", - "integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "jsonpointer": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-4.0.1.tgz", - "integrity": "sha1-T9kss04OnbPInIYi7PUfm5eMbLk=", - "dev": true - }, - "jsprim": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", - "dev": true, - "requires": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.2.3", - "verror": "1.10.0" - } - }, - "kew": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/kew/-/kew-0.7.0.tgz", - "integrity": "sha1-edk9LTM2PW/dKXCzNdkUGtWR15s=", - "dev": true - }, - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - }, - "klaw": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/klaw/-/klaw-1.3.1.tgz", - "integrity": "sha1-QIhDO0azsbolnXh4XY6W9zugJDk=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.9" - } - }, - "latest-version": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-2.0.0.tgz", - "integrity": "sha1-VvjWE5YghHuAF/jx9NeOIRMkFos=", - "dev": true, - "requires": { - "package-json": "^2.0.0" - } - }, - "lazy-cache": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", - "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", - "dev": true - }, - "lazy-req": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/lazy-req/-/lazy-req-1.1.0.tgz", - "integrity": "sha1-va6+rTD42CQDnODOFJ1Nqge6H6w=", - "dev": true, - "optional": true - }, - "lazystream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.0.tgz", - "integrity": "sha1-9plf4PggOS9hOWvolGJAe7dxaOQ=", - "dev": true, - "requires": { - "readable-stream": "^2.0.5" - } - }, - "lcid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", - "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", - "dev": true, - "requires": { - "invert-kv": "^1.0.0" - } - }, - "libumd": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/libumd/-/libumd-0.7.0.tgz", - "integrity": "sha1-9D765q2YTOSSjB81b1GdEuyPm3Y=", - "dev": true, - "requires": { - "alphabet": "^1.0.0", - "annois": "^0.3.2", - "annozip": "^0.2.6", - "handlebars": "^4.0.2", - "object-merge": "^2.5.1" - }, - "dependencies": { - "commander": { - "version": "2.20.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz", - "integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==", - "dev": true, - "optional": true - }, - "handlebars": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.2.0.tgz", - "integrity": "sha512-Kb4xn5Qh1cxAKvQnzNWZ512DhABzyFNmsaJf3OAkWNa4NkaqWcNI8Tao8Tasi0/F4JD9oyG0YxuFyvyR57d+Gw==", - "dev": true, - "requires": { - "neo-async": "^2.6.0", - "optimist": "^0.6.1", - "source-map": "^0.6.1", - "uglify-js": "^3.1.4" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "uglify-js": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.6.0.tgz", - "integrity": "sha512-W+jrUHJr3DXKhrsS7NUVxn3zqMOFn0hL/Ei6v0anCIMoKC93TjcflTagwIHLW7SfMFfiQuktQyFVCFHGUE0+yg==", - "dev": true, - "optional": true, - "requires": { - "commander": "~2.20.0", - "source-map": "~0.6.1" - } - } - } - }, - "list-item": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/list-item/-/list-item-1.1.1.tgz", - "integrity": "sha1-DGXQDih8tmPMs8s4Sad+iewmilY=", - "dev": true, - "requires": { - "expand-range": "^1.8.1", - "extend-shallow": "^2.0.1", - "is-number": "^2.1.0", - "repeat-string": "^1.5.2" - } - }, - "livereload-js": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/livereload-js/-/livereload-js-2.4.0.tgz", - "integrity": "sha512-XPQH8Z2GDP/Hwz2PCDrh2mth4yFejwA1OZ/81Ti3LgKyhDcEjsSsqFWZojHG0va/duGd+WyosY7eXLDoOyqcPw==", - "dev": true - }, - "load-grunt-config": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/load-grunt-config/-/load-grunt-config-0.19.2.tgz", - "integrity": "sha1-UgkNSiDG5j90p2SPJJsZ57f87CQ=", - "dev": true, - "requires": { - "cson": "~3.0.2", - "glob": "~5.0.15", - "jit-grunt": "~0.10.0", - "js-yaml": "~3.4.3", - "load-grunt-tasks": "~3.3.0", - "lodash": "~3.10.1" - }, - "dependencies": { - "esprima": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz", - "integrity": "sha1-luO3DVd59q1JzQMmc9HDEnZ7pYE=", - "dev": true - }, - "glob": { - "version": "5.0.15", - "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", - "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=", - "dev": true, - "requires": { - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "2 || 3", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "js-yaml": { - "version": "3.4.6", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.4.6.tgz", - "integrity": "sha1-a+GyP2JJ9T0pM3D9TRqqY84bTrA=", - "dev": true, - "requires": { - "argparse": "^1.0.2", - "esprima": "^2.6.0", - "inherit": "^2.2.2" - } - }, - "lodash": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", - "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=", - "dev": true - } - } - }, - "load-grunt-tasks": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/load-grunt-tasks/-/load-grunt-tasks-3.3.0.tgz", - "integrity": "sha1-vliSkJRY2T3fdp60vGhRAggMYyE=", - "dev": true, - "requires": { - "arrify": "^1.0.0", - "multimatch": "^2.0.0", - "pkg-up": "^1.0.0" - }, - "dependencies": { - "array-differ": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz", - "integrity": "sha1-7/UuN1gknTO+QCuLuOVkuytdQDE=", - "dev": true - }, - "array-union": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", - "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", - "dev": true, - "requires": { - "array-uniq": "^1.0.1" - } - }, - "array-uniq": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", - "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", - "dev": true - }, - "multimatch": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/multimatch/-/multimatch-2.1.0.tgz", - "integrity": "sha1-nHkGoi+0wCkZ4vX3UWG0zb1LKis=", - "dev": true, - "requires": { - "array-differ": "^1.0.0", - "array-union": "^1.0.1", - "arrify": "^1.0.0", - "minimatch": "^3.0.0" - } - } - } - }, - "load-json-file": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", - "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "parse-json": "^2.2.0", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0", - "strip-bom": "^2.0.0" - } - }, - "load-pkg": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/load-pkg/-/load-pkg-0.1.0.tgz", - "integrity": "sha1-WRAGH8Ey5P37F7kqs3CFQwdenHs=", - "dev": true, - "requires": { - "cwd": "~0.3.3" - } - }, - "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", - "dev": true - }, - "lodash._basecopy": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", - "integrity": "sha1-jaDmqHbPNEwK2KVIghEd08XHyjY=", - "dev": true - }, - "lodash._basetostring": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/lodash._basetostring/-/lodash._basetostring-3.0.1.tgz", - "integrity": "sha1-0YYdh3+CSlL2aYMtyvPuFVZqB9U=", - "dev": true - }, - "lodash._basevalues": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._basevalues/-/lodash._basevalues-3.0.0.tgz", - "integrity": "sha1-W3dXYoAr3j0yl1A+JjAIIP32Ybc=", - "dev": true - }, - "lodash._getnative": { - "version": "3.9.1", - "resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", - "integrity": "sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=", - "dev": true - }, - "lodash._isiterateecall": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz", - "integrity": "sha1-UgOte6Ql+uhCRg5pbbnPPmqsBXw=", - "dev": true - }, - "lodash._reescape": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._reescape/-/lodash._reescape-3.0.0.tgz", - "integrity": "sha1-Kx1vXf4HyKNVdT5fJ/rH8c3hYWo=", - "dev": true - }, - "lodash._reevaluate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._reevaluate/-/lodash._reevaluate-3.0.0.tgz", - "integrity": "sha1-WLx0xAZklTrgsSTYBpltrKQx4u0=", - "dev": true - }, - "lodash._reinterpolate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", - "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=", - "dev": true - }, - "lodash._root": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/lodash._root/-/lodash._root-3.0.1.tgz", - "integrity": "sha1-+6HEUkwZ7ppfgTa0YJ8BfPTe1pI=", - "dev": true - }, - "lodash.assign": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz", - "integrity": "sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=", - "dev": true - }, - "lodash.assignin": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lodash.assignin/-/lodash.assignin-4.2.0.tgz", - "integrity": "sha1-uo31+4QesKPoBEIysOJjqNxqKKI=", - "dev": true - }, - "lodash.bind": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/lodash.bind/-/lodash.bind-4.2.1.tgz", - "integrity": "sha1-euMBfpOWIqwxt9fX3LGzTbFpDTU=", - "dev": true - }, - "lodash.clonedeep": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", - "dev": true - }, - "lodash.defaults": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz", - "integrity": "sha1-0JF4cW/+pN3p5ft7N/bwgCJ0WAw=", - "dev": true - }, - "lodash.escape": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/lodash.escape/-/lodash.escape-3.2.0.tgz", - "integrity": "sha1-mV7g3BjBtIzJLv+ucaEKq1tIdpg=", - "dev": true, - "requires": { - "lodash._root": "^3.0.0" - } - }, - "lodash.escaperegexp": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.escaperegexp/-/lodash.escaperegexp-4.1.2.tgz", - "integrity": "sha1-ZHYsSGGAglGKw99Mz11YhtriA0c=", - "dev": true - }, - "lodash.filter": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/lodash.filter/-/lodash.filter-4.6.0.tgz", - "integrity": "sha1-ZosdSYFgOuHMWm+nYBQ+SAtMSs4=", - "dev": true - }, - "lodash.flatten": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz", - "integrity": "sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8=", - "dev": true - }, - "lodash.foreach": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.foreach/-/lodash.foreach-4.5.0.tgz", - "integrity": "sha1-Gmo16s5AEoDH8G3d7DUWWrJ+PlM=", - "dev": true - }, - "lodash.isarguments": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", - "integrity": "sha1-L1c9hcaiQon/AGY7SRwdM4/zRYo=", - "dev": true - }, - "lodash.isarray": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", - "integrity": "sha1-eeTriMNqgSKvhvhEqpvNhRtfu1U=", - "dev": true - }, - "lodash.isequal": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", - "integrity": "sha1-QVxEePK8wwEgwizhDtMib30+GOA=", - "dev": true - }, - "lodash.isstring": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", - "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=", - "dev": true - }, - "lodash.keys": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", - "integrity": "sha1-TbwEcrFWvlCgsoaFXRvQsMZWCYo=", - "dev": true, - "requires": { - "lodash._getnative": "^3.0.0", - "lodash.isarguments": "^3.0.0", - "lodash.isarray": "^3.0.0" - } - }, - "lodash.last": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash.last/-/lodash.last-3.0.0.tgz", - "integrity": "sha1-JC9mMRLdTG5jcoxgo8kJ0b2tvUw=", - "dev": true - }, - "lodash.map": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/lodash.map/-/lodash.map-4.6.0.tgz", - "integrity": "sha1-dx7Hg540c9nEzeKLGTlMNWL09tM=", - "dev": true - }, - "lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "lodash.partialright": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/lodash.partialright/-/lodash.partialright-4.2.1.tgz", - "integrity": "sha1-ATDYDoM2MmTUAHTzKbij56ihzEs=", - "dev": true - }, - "lodash.pick": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.pick/-/lodash.pick-4.4.0.tgz", - "integrity": "sha1-UvBWEP/53tQiYRRB7R/BI6AwAbM=", - "dev": true - }, - "lodash.reduce": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/lodash.reduce/-/lodash.reduce-4.6.0.tgz", - "integrity": "sha1-8atrg5KZrUj3hKu/R2WW8DuRTTs=", - "dev": true - }, - "lodash.reject": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/lodash.reject/-/lodash.reject-4.6.0.tgz", - "integrity": "sha1-gNZJLcFHCGS79YNTO2UfQqn1JBU=", - "dev": true - }, - "lodash.restparam": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/lodash.restparam/-/lodash.restparam-3.6.1.tgz", - "integrity": "sha1-k2pOMJ7zMKdkXtQUWYbIWuWyCAU=", - "dev": true - }, - "lodash.result": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/lodash.result/-/lodash.result-4.5.2.tgz", - "integrity": "sha1-y0Wyf7kU6qjY7m8M57KHC4fLcKo=", - "dev": true - }, - "lodash.some": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/lodash.some/-/lodash.some-4.6.0.tgz", - "integrity": "sha1-G7nzFO9ri63tE7VJFpsqlF62jk0=", - "dev": true - }, - "lodash.template": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-3.6.2.tgz", - "integrity": "sha1-+M3sxhaaJVvpCYrosMU9N4kx0U8=", - "dev": true, - "requires": { - "lodash._basecopy": "^3.0.0", - "lodash._basetostring": "^3.0.0", - "lodash._basevalues": "^3.0.0", - "lodash._isiterateecall": "^3.0.0", - "lodash._reinterpolate": "^3.0.0", - "lodash.escape": "^3.0.0", - "lodash.keys": "^3.0.0", - "lodash.restparam": "^3.0.0", - "lodash.templatesettings": "^3.0.0" - } - }, - "lodash.templatesettings": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-3.1.1.tgz", - "integrity": "sha1-+zB4RHU7Zrnxr6VOJix0UwfbqOU=", - "dev": true, - "requires": { - "lodash._reinterpolate": "^3.0.0", - "lodash.escape": "^3.0.0" - } - }, - "log-symbols": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-1.0.2.tgz", - "integrity": "sha1-N2/3tY6jCGoPCfrMdGF+ylAeGhg=", - "dev": true, - "requires": { - "chalk": "^1.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "logalot": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/logalot/-/logalot-2.1.0.tgz", - "integrity": "sha1-X46MkNME7fElMJUaVVSruMXj9VI=", - "dev": true, - "optional": true, - "requires": { - "figures": "^1.3.5", - "squeak": "^1.0.0" - } - }, - "logging-helpers": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/logging-helpers/-/logging-helpers-0.4.0.tgz", - "integrity": "sha1-AObVMWwjdn7BLhIA5PEsXgM+frA=", - "dev": true, - "requires": { - "chalk": "^1.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "longest": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", - "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", - "dev": true - }, - "loud-rejection": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", - "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", - "dev": true, - "requires": { - "currently-unhandled": "^0.4.1", - "signal-exit": "^3.0.0" - } - }, - "lower-case": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-1.1.4.tgz", - "integrity": "sha1-miyr0bno4K6ZOkv31YdcOcQujqw=", - "dev": true - }, - "lower-case-first": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/lower-case-first/-/lower-case-first-1.0.2.tgz", - "integrity": "sha1-5dp8JvKacHO+AtUrrJmA5ZIq36E=", - "dev": true, - "requires": { - "lower-case": "^1.1.2" - } - }, - "lowercase-keys": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", - "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", - "dev": true - }, - "lpad-align": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/lpad-align/-/lpad-align-1.1.2.tgz", - "integrity": "sha1-IfYArBwwlcPG5JfuZyce4ISB/p4=", - "dev": true, - "optional": true, - "requires": { - "get-stdin": "^4.0.1", - "indent-string": "^2.1.0", - "longest": "^1.0.0", - "meow": "^3.3.0" - } - }, - "lru-cache": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz", - "integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=", - "dev": true - }, - "make-iterator": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/make-iterator/-/make-iterator-0.2.1.tgz", - "integrity": "sha1-oZxmATK1SubWT4gewUBWx0bb6XI=", - "dev": true, - "requires": { - "kind-of": "^3.0.3" - } - }, - "map-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", - "dev": true - }, - "markdown-utils": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/markdown-utils/-/markdown-utils-0.7.3.tgz", - "integrity": "sha1-TFg6MeJR1psxOs6zgCpPXRsPHnY=", - "dev": true, - "requires": { - "array-slice": "^0.2.3", - "is-number": "^2.1.0", - "list-item": "^1.1.1", - "to-gfm-code-block": "^0.1.1" - } - }, - "marked": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/marked/-/marked-0.7.0.tgz", - "integrity": "sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg==", - "dev": true - }, - "matchdep": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/matchdep/-/matchdep-0.3.0.tgz", - "integrity": "sha1-Qo5knOXCgY0iDgRj7/XA3p5Z1S4=", - "dev": true, - "requires": { - "findup-sync": "~0.1.2", - "globule": "~0.1.0", - "resolve": "~0.5.1", - "stack-trace": "0.0.7" - }, - "dependencies": { - "findup-sync": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.1.3.tgz", - "integrity": "sha1-fz56l7gjksZTvwZYm9hRkOk8NoM=", - "dev": true, - "requires": { - "glob": "~3.2.9", - "lodash": "~2.4.1" - } - }, - "glob": { - "version": "3.2.11", - "resolved": "https://registry.npmjs.org/glob/-/glob-3.2.11.tgz", - "integrity": "sha1-Spc/Y1uRkPcV0QmH1cAP0oFevj0=", - "dev": true, - "requires": { - "inherits": "2", - "minimatch": "0.3" - } - }, - "lodash": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", - "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", - "dev": true - }, - "minimatch": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.3.0.tgz", - "integrity": "sha1-J12O2qxPG7MyZHIInnlJyDlGmd0=", - "dev": true, - "requires": { - "lru-cache": "2", - "sigmund": "~1.0.0" - } - }, - "resolve": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-0.5.1.tgz", - "integrity": "sha1-FeSiIsQja81M+FRUQSwtD7ZSRXY=", - "dev": true - } - } - }, - "matchkeys": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/matchkeys/-/matchkeys-0.1.3.tgz", - "integrity": "sha1-6oLU4YLMPDBaABBd6+4HqZuCeB4=", - "dev": true, - "requires": { - "chalk": "~0.2.1", - "lodash": "~1.3.1", - "matchdep": "~0.1.2", - "resolve-dep": "~0.1.3" - }, - "dependencies": { - "ansi-styles": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-0.2.0.tgz", - "integrity": "sha1-NZq0sV3NZLptdHNLcsNjYKmvLBk=", - "dev": true - }, - "chalk": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-0.2.1.tgz", - "integrity": "sha1-dhPhV1FFshOGSD9/SFql/6jL0Qw=", - "dev": true, - "requires": { - "ansi-styles": "~0.2.0", - "has-color": "~0.1.0" - } - }, - "lodash": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-1.3.1.tgz", - "integrity": "sha1-pGY7U2hriV/wdOK6UE37dqjit3A=", - "dev": true - }, - "matchdep": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/matchdep/-/matchdep-0.1.2.tgz", - "integrity": "sha1-L1OfCB0GnzIFox5hU3Ob/RPGYsY=", - "dev": true, - "requires": { - "minimatch": "~0.2.9" - } - }, - "minimatch": { - "version": "0.2.14", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz", - "integrity": "sha1-x054BXT2PG+aCQ6Q775u9TpqdWo=", - "dev": true, - "requires": { - "lru-cache": "2", - "sigmund": "~1.0.0" - } - }, - "resolve-dep": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/resolve-dep/-/resolve-dep-0.1.3.tgz", - "integrity": "sha1-4IijLGlLrSnG1pXwW6RUNPY3XZg=", - "dev": true, - "requires": { - "lodash": "~1.3.1", - "matchdep": "~0.1.2" - } - } - } - }, - "math-random": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.4.tgz", - "integrity": "sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A==", - "dev": true - }, - "maxmin": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/maxmin/-/maxmin-1.1.0.tgz", - "integrity": "sha1-cTZehKmd2Piz99X94vANHn9zvmE=", - "dev": true, - "requires": { - "chalk": "^1.0.0", - "figures": "^1.0.1", - "gzip-size": "^1.0.0", - "pretty-bytes": "^1.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "meow": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", - "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", - "dev": true, - "requires": { - "camelcase-keys": "^2.0.0", - "decamelize": "^1.1.2", - "loud-rejection": "^1.0.0", - "map-obj": "^1.0.1", - "minimist": "^1.1.3", - "normalize-package-data": "^2.3.4", - "object-assign": "^4.0.1", - "read-pkg-up": "^1.0.1", - "redent": "^1.0.0", - "trim-newlines": "^1.0.0" - } - }, - "merge-stream": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-1.0.1.tgz", - "integrity": "sha1-QEEgLVCKNCugAXQAjfDCUbjBNeE=", - "dev": true, - "requires": { - "readable-stream": "^2.0.1" - } - }, - "micromatch": { - "version": "2.3.11", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", - "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", - "dev": true, - "requires": { - "arr-diff": "^2.0.0", - "array-unique": "^0.2.1", - "braces": "^1.8.2", - "expand-brackets": "^0.1.4", - "extglob": "^0.3.1", - "filename-regex": "^2.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.1", - "kind-of": "^3.0.2", - "normalize-path": "^2.0.1", - "object.omit": "^2.0.0", - "parse-glob": "^3.0.4", - "regex-cache": "^0.4.2" - }, - "dependencies": { - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true - }, - "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - }, - "normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", - "dev": true, - "requires": { - "remove-trailing-separator": "^1.0.1" - } - } - } - }, - "mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true - }, - "mime-db": { - "version": "1.40.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", - "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==", - "dev": true - }, - "mime-types": { - "version": "2.1.24", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz", - "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", - "dev": true, - "requires": { - "mime-db": "1.40.0" - } - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", - "dev": true - }, - "mixin-deep": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", - "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", - "dev": true, - "requires": { - "for-in": "^1.0.2", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4" - } - } - } - }, - "mkdirp": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, - "requires": { - "minimist": "0.0.8" - }, - "dependencies": { - "minimist": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true - } - } - }, - "moment": { - "version": "2.24.0", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.24.0.tgz", - "integrity": "sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==", - "dev": true - }, - "morgan": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.9.1.tgz", - "integrity": "sha512-HQStPIV4y3afTiCYVxirakhlCfGkI161c76kKFca7Fk1JusM//Qeo1ej2XaMniiNeaZklMVrh3vTtIzpzwbpmA==", - "dev": true, - "requires": { - "basic-auth": "~2.0.0", - "debug": "2.6.9", - "depd": "~1.1.2", - "on-finished": "~2.3.0", - "on-headers": "~1.0.1" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "multimatch": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/multimatch/-/multimatch-0.3.0.tgz", - "integrity": "sha1-YD28P+MoHTOAlKHhuTqLXyvgONo=", - "dev": true, - "requires": { - "array-differ": "^0.1.0", - "array-union": "^0.1.0", - "minimatch": "^0.3.0" - }, - "dependencies": { - "minimatch": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.3.0.tgz", - "integrity": "sha1-J12O2qxPG7MyZHIInnlJyDlGmd0=", - "dev": true, - "requires": { - "lru-cache": "2", - "sigmund": "~1.0.0" - } - } - } - }, - "multipipe": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/multipipe/-/multipipe-0.1.2.tgz", - "integrity": "sha1-Ko8t33Du1WTf8tV/HhoTfZ8FB4s=", - "dev": true, - "requires": { - "duplexer2": "0.0.2" - }, - "dependencies": { - "duplexer2": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz", - "integrity": "sha1-xhTc9n4vsUmVqRcR5aYX6KYKMds=", - "dev": true, - "requires": { - "readable-stream": "~1.1.9" - } - }, - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true - }, - "readable-stream": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - } - } - }, - "nan": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.0.tgz", - "integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==", - "dev": true - }, - "nap": { - "version": "0.7.21", - "resolved": "https://registry.npmjs.org/nap/-/nap-0.7.21.tgz", - "integrity": "sha1-JZkTLUMzCmQI1AhfTa3w6BvOUok=", - "dev": true, - "requires": { - "coffee-script": "~1", - "file": ">= 0.2.1", - "glob": "~3", - "mkdirp": ">= 0.3.4", - "rimraf": "~2", - "sqwish": ">= 0.2.0", - "uglify-js": "~2", - "underscore": "~1", - "underscore.string": "~2" - }, - "dependencies": { - "coffee-script": { - "version": "1.12.7", - "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz", - "integrity": "sha512-fLeEhqwymYat/MpTPUjSKHVYYl0ec2mOyALEMLmzr5i1isuG+6jfI2j2d5oBO3VIzgUXgBVIcOT9uH1TFxBckw==", - "dev": true - }, - "glob": { - "version": "3.2.11", - "resolved": "https://registry.npmjs.org/glob/-/glob-3.2.11.tgz", - "integrity": "sha1-Spc/Y1uRkPcV0QmH1cAP0oFevj0=", - "dev": true, - "requires": { - "inherits": "2", - "minimatch": "0.3" - } - }, - "minimatch": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.3.0.tgz", - "integrity": "sha1-J12O2qxPG7MyZHIInnlJyDlGmd0=", - "dev": true, - "requires": { - "lru-cache": "2", - "sigmund": "~1.0.0" - } - }, - "underscore.string": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.4.0.tgz", - "integrity": "sha1-jN2PusTi0uoefi6Al8QvRCKA+Fs=", - "dev": true - } - } - }, - "ncname": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/ncname/-/ncname-1.0.0.tgz", - "integrity": "sha1-W1etGLHKCShk72Kwse2BlPODtxw=", - "dev": true, - "requires": { - "xml-char-classes": "^1.0.0" - } - }, - "negotiator": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", - "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==", - "dev": true - }, - "neo-async": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.1.tgz", - "integrity": "sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==", - "dev": true - }, - "no-case": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/no-case/-/no-case-2.3.2.tgz", - "integrity": "sha512-rmTZ9kz+f3rCvK2TD1Ue/oZlns7OGoIWP4fc3llxxRXlOkHKoWPPWJOfFYpITabSow43QJbRIoHQXtt10VldyQ==", - "dev": true, - "requires": { - "lower-case": "^1.1.1" - } - }, - "node-gyp": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-3.8.0.tgz", - "integrity": "sha512-3g8lYefrRRzvGeSowdJKAKyks8oUpLEd/DyPV4eMhVlhJ0aNaZqIrNUIPuEWWTAoPqyFkfGrM67MC69baqn6vA==", - "dev": true, - "requires": { - "fstream": "^1.0.0", - "glob": "^7.0.3", - "graceful-fs": "^4.1.2", - "mkdirp": "^0.5.0", - "nopt": "2 || 3", - "npmlog": "0 || 1 || 2 || 3 || 4", - "osenv": "0", - "request": "^2.87.0", - "rimraf": "2", - "semver": "~5.3.0", - "tar": "^2.0.0", - "which": "1" - }, - "dependencies": { - "semver": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz", - "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=", - "dev": true - } - } - }, - "node-sass": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-3.13.1.tgz", - "integrity": "sha1-ckD7v/I5YwS0IjUn7TAgWJwAT8I=", - "dev": true, - "requires": { - "async-foreach": "^0.1.3", - "chalk": "^1.1.1", - "cross-spawn": "^3.0.0", - "gaze": "^1.0.0", - "get-stdin": "^4.0.1", - "glob": "^7.0.3", - "in-publish": "^2.0.0", - "lodash.assign": "^4.2.0", - "lodash.clonedeep": "^4.3.2", - "meow": "^3.7.0", - "mkdirp": "^0.5.1", - "nan": "^2.3.2", - "node-gyp": "^3.3.1", - "npmlog": "^4.0.0", - "request": "^2.61.0", - "sass-graph": "^2.1.1" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "node-status-codes": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/node-status-codes/-/node-status-codes-1.0.0.tgz", - "integrity": "sha1-WuVUHQJGRdMqWPzdyc7s6nrjrC8=", - "dev": true - }, - "nopt": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", - "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=", - "dev": true, - "requires": { - "abbrev": "1" - } - }, - "normalize-newline": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-newline/-/normalize-newline-3.0.0.tgz", - "integrity": "sha1-HL6oBKukNgAfg5OKsh7AOdaa6dM=", - "dev": true - }, - "normalize-package-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", - "dev": true, - "requires": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "normalize-path": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-0.1.1.tgz", - "integrity": "sha1-bHASSP25iW0f7hqmYg2nf+7U02c=", - "dev": true - }, - "npmlog": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", - "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", - "dev": true, - "requires": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" - } - }, - "nth-check": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz", - "integrity": "sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==", - "dev": true, - "requires": { - "boolbase": "~1.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true - }, - "oauth-sign": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", - "dev": true - }, - "object": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/object/-/object-0.1.1.tgz", - "integrity": "sha1-HgLO3orh81iqqHKtdUv2QNd6IsI=", - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true - }, - "object-foreach": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/object-foreach/-/object-foreach-0.1.2.tgz", - "integrity": "sha1-10IcW0DjtqPvV6xiQ2jSHY+NLew=", - "dev": true - }, - "object-hash": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-1.1.5.tgz", - "integrity": "sha1-vdhE4DDQhhtpLKF1xsq2ho7CM9c=", - "dev": true - }, - "object-merge": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/object-merge/-/object-merge-2.5.1.tgz", - "integrity": "sha1-B36JFc446nKUeIRIxd0znjTfQic=", - "dev": true, - "requires": { - "clone-function": ">=1.0.1", - "object-foreach": ">=0.1.2" - } - }, - "object.omit": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", - "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", - "dev": true, - "requires": { - "for-own": "^0.1.4", - "is-extendable": "^0.1.1" - } - }, - "omit-empty": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/omit-empty/-/omit-empty-0.4.1.tgz", - "integrity": "sha1-KUo3gvLLIMdJfEEitiN8ncwMY6s=", - "dev": true, - "requires": { - "has-values": "^0.1.4", - "kind-of": "^3.0.3", - "reduce-object": "^0.1.3" - } - }, - "on-finished": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", - "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", - "dev": true, - "requires": { - "ee-first": "1.1.1" - } - }, - "on-headers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", - "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", - "dev": true - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, - "requires": { - "wrappy": "1" - } - }, - "onetime": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", - "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=", - "dev": true - }, - "opn": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/opn/-/opn-4.0.2.tgz", - "integrity": "sha1-erwi5kTf9jsKltWrfyeQwPAavJU=", - "dev": true, - "requires": { - "object-assign": "^4.0.1", - "pinkie-promise": "^2.0.0" - } - }, - "optimist": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", - "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", - "dev": true, - "requires": { - "minimist": "~0.0.1", - "wordwrap": "~0.0.2" - }, - "dependencies": { - "minimist": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", - "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=", - "dev": true - } - } - }, - "optional": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/optional/-/optional-0.1.4.tgz", - "integrity": "sha512-gtvrrCfkE08wKcgXaVwQVgwEQ8vel2dc5DDBn9RLQZ3YtmtkBss6A2HY6BnJH4N/4Ku97Ri/SF8sNWE2225WJw==", - "dev": true - }, - "optipng-bin": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/optipng-bin/-/optipng-bin-3.1.4.tgz", - "integrity": "sha1-ldNPLEiHBPb9cGBr/qDGWfHZXYQ=", - "dev": true, - "optional": true, - "requires": { - "bin-build": "^2.0.0", - "bin-wrapper": "^3.0.0", - "logalot": "^2.0.0" - } - }, - "ordered-read-streams": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/ordered-read-streams/-/ordered-read-streams-0.3.0.tgz", - "integrity": "sha1-cTfmmzKYuzQiR6G77jiByA4v14s=", - "dev": true, - "requires": { - "is-stream": "^1.0.1", - "readable-stream": "^2.0.1" - } - }, - "os-filter-obj": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/os-filter-obj/-/os-filter-obj-1.0.3.tgz", - "integrity": "sha1-WRUzDZDs7VV9LZOKMcbdIU2cY60=", - "dev": true, - "optional": true - }, - "os-homedir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", - "dev": true - }, - "os-locale": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", - "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", - "dev": true, - "requires": { - "lcid": "^1.0.0" - } - }, - "os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", - "dev": true - }, - "osenv": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", - "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", - "dev": true, - "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.0" - } - }, - "oust": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/oust/-/oust-0.3.0.tgz", - "integrity": "sha1-fxNzTgPE5RI9rwoFrkfYOzqWLaU=", - "dev": true, - "requires": { - "cheerio": "^0.19.0", - "minimist": "^1.1.0" - }, - "dependencies": { - "cheerio": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-0.19.0.tgz", - "integrity": "sha1-dy5wFfLuKZZQltcepBdbdas1SSU=", - "dev": true, - "requires": { - "css-select": "~1.0.0", - "dom-serializer": "~0.1.0", - "entities": "~1.1.1", - "htmlparser2": "~3.8.1", - "lodash": "^3.2.0" - } - }, - "css-select": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-1.0.0.tgz", - "integrity": "sha1-sRIcpRhI3SZOIkTQWM7iVN7rRLA=", - "dev": true, - "requires": { - "boolbase": "~1.0.0", - "css-what": "1.0", - "domutils": "1.4", - "nth-check": "~1.0.0" - } - }, - "css-what": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-1.0.0.tgz", - "integrity": "sha1-18wt9FGAZm+Z0rFEYmOUaeAPc2w=", - "dev": true - }, - "dom-serializer": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.1.tgz", - "integrity": "sha512-l0IU0pPzLWSHBcieZbpOKgkIn3ts3vAh7ZuFyXNwJxJXk/c4Gwj9xaTJwIDVQCXawWD0qb3IzMGH5rglQaO0XA==", - "dev": true, - "requires": { - "domelementtype": "^1.3.0", - "entities": "^1.1.1" - } - }, - "domutils": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.4.3.tgz", - "integrity": "sha1-CGVRN5bGswYDGFDhdVFrr4C3Km8=", - "dev": true, - "requires": { - "domelementtype": "1" - } - }, - "entities": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz", - "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==", - "dev": true - }, - "lodash": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", - "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=", - "dev": true - } - } - }, - "package": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/package/-/package-1.0.1.tgz", - "integrity": "sha1-0lofmeJQbcsn1nBLg9yooxLk7cw=", - "dev": true - }, - "package-json": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/package-json/-/package-json-2.4.0.tgz", - "integrity": "sha1-DRW9Z9HLvduyyiIv8u24a8sxqLs=", - "dev": true, - "requires": { - "got": "^5.0.0", - "registry-auth-token": "^3.0.1", - "registry-url": "^3.0.3", - "semver": "^5.1.0" - } - }, - "pad-stream": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pad-stream/-/pad-stream-1.2.0.tgz", - "integrity": "sha1-Yx3Mn3mBC3BZZeid7eps/w/B38k=", - "dev": true, - "requires": { - "meow": "^3.0.0", - "pumpify": "^1.3.3", - "repeating": "^2.0.0", - "split2": "^1.0.0", - "through2": "^2.0.0" - } - }, - "pako": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/pako/-/pako-0.2.9.tgz", - "integrity": "sha1-8/dSL073gjSNqBYbrZ7P1Rv4OnU=", - "dev": true - }, - "param-case": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/param-case/-/param-case-2.1.1.tgz", - "integrity": "sha1-35T9jPZTHs915r75oIWPvHK+Ikc=", - "dev": true, - "requires": { - "no-case": "^2.2.0" - } - }, - "parse-author": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/parse-author/-/parse-author-1.0.0.tgz", - "integrity": "sha1-XsFZAGKXe9nLOWLpFzuHWGQ39d8=", - "dev": true - }, - "parse-code-context": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/parse-code-context/-/parse-code-context-0.1.3.tgz", - "integrity": "sha1-sMr+ZcNLkWQ0EAAz6zNOnSgstGE=", - "dev": true - }, - "parse-git-config": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/parse-git-config/-/parse-git-config-1.1.1.tgz", - "integrity": "sha1-06mYQxcTL1c5hxK7pDjhKVkN34w=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "fs-exists-sync": "^0.1.0", - "git-config-path": "^1.0.1", - "ini": "^1.3.4" - } - }, - "parse-github-url": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/parse-github-url/-/parse-github-url-0.3.2.tgz", - "integrity": "sha1-du8B6/4LHpwPSTZylSzGpM2csmA=", - "dev": true - }, - "parse-glob": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", - "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", - "dev": true, - "requires": { - "glob-base": "^0.3.0", - "is-dotfile": "^1.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.0" - }, - "dependencies": { - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true - }, - "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - } - } - }, - "parse-json": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", - "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", - "dev": true, - "requires": { - "error-ex": "^1.2.0" - } - }, - "parse-ms": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-1.0.1.tgz", - "integrity": "sha1-VjRtR0nXjyNDDKDHE4UK75GqNh0=", - "dev": true - }, - "parse-node-version": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parse-node-version/-/parse-node-version-1.0.1.tgz", - "integrity": "sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA==", - "dev": true - }, - "parse-passwd": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", - "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=", - "dev": true - }, - "parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "dev": true - }, - "pascal-case": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-2.0.1.tgz", - "integrity": "sha1-LVeNNFX2YNpl7KGO+VtODekSdh4=", - "dev": true, - "requires": { - "camel-case": "^3.0.0", - "upper-case-first": "^1.1.0" - } - }, - "path-case": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/path-case/-/path-case-2.1.1.tgz", - "integrity": "sha1-lLgDfDctP+KQbkZbtF4l0ibo7qU=", - "dev": true, - "requires": { - "no-case": "^2.2.0" - } - }, - "path-dirname": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", - "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", - "dev": true - }, - "path-exists": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", - "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", - "dev": true, - "requires": { - "pinkie-promise": "^2.0.0" - } - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true - }, - "path-parse": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true - }, - "path-type": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", - "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, - "pend": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=", - "dev": true - }, - "penthouse": { - "version": "0.10.9", - "resolved": "https://registry.npmjs.org/penthouse/-/penthouse-0.10.9.tgz", - "integrity": "sha1-4/vAivhtrzgxLnIwq0wdQ9I45VQ=", - "dev": true, - "requires": { - "apartment": "^1.1.1", - "css": "git+https://github.com/pocketjoso/css.git", - "css-mediaquery": "^0.1.2", - "jsesc": "^1.0.0", - "os-tmpdir": "^1.0.1", - "phantomjs-prebuilt": "^2.1.3", - "tmp": "0.0.31" - }, - "dependencies": { - "atob": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/atob/-/atob-1.1.3.tgz", - "integrity": "sha1-lfE2KbEsOlGl0hWr3OKqnzL4B3M=", - "dev": true - }, - "css": { - "version": "git+https://github.com/pocketjoso/css.git#8ddea7e3cbc0a183ecf694a7a5fbc84326893893", - "from": "git+https://github.com/pocketjoso/css.git", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "source-map": "^0.1.38", - "source-map-resolve": "^0.3.0", - "urix": "^0.1.0" - } - }, - "source-map-resolve": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.3.1.tgz", - "integrity": "sha1-YQ9hIqRFuN1RU1oqcbeD38Ekh2E=", - "dev": true, - "requires": { - "atob": "~1.1.0", - "resolve-url": "~0.2.1", - "source-map-url": "~0.3.0", - "urix": "~0.1.0" - } - }, - "source-map-url": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.3.0.tgz", - "integrity": "sha1-fsrxO1e80J2opAxdJp2zN5nUqvk=", - "dev": true - } - } - }, - "performance-now": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", - "dev": true - }, - "phantomjs-prebuilt": { - "version": "2.1.16", - "resolved": "https://registry.npmjs.org/phantomjs-prebuilt/-/phantomjs-prebuilt-2.1.16.tgz", - "integrity": "sha1-79ISpKOWbTZHaE6ouniFSb4q7+8=", - "dev": true, - "requires": { - "es6-promise": "^4.0.3", - "extract-zip": "^1.6.5", - "fs-extra": "^1.0.0", - "hasha": "^2.2.0", - "kew": "^0.7.0", - "progress": "^1.1.8", - "request": "^2.81.0", - "request-progress": "^2.0.1", - "which": "^1.2.10" - } - }, - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true - }, - "pinkie": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", - "dev": true - }, - "pinkie-promise": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", - "dev": true, - "requires": { - "pinkie": "^2.0.0" - } - }, - "pkg-up": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-1.0.0.tgz", - "integrity": "sha1-Pgj7RhUlxEIWJKM7n35tCvWwWiY=", - "dev": true, - "requires": { - "find-up": "^1.0.0" - } - }, - "plur": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/plur/-/plur-2.1.2.tgz", - "integrity": "sha1-dIJFLBoPUI4+NE6uwxLJHCncZVo=", - "dev": true, - "requires": { - "irregular-plurals": "^1.0.0" - } - }, - "portscanner": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/portscanner/-/portscanner-1.2.0.tgz", - "integrity": "sha1-sUu9olfRTDEPqcwJaCrwLUCWGAI=", - "dev": true, - "requires": { - "async": "1.5.2" - } - }, - "postcss": { - "version": "5.2.18", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", - "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "postcss-image-inliner": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/postcss-image-inliner/-/postcss-image-inliner-1.0.6.tgz", - "integrity": "sha1-48dgX9k00EpDC3WoQtSRvnUoRtU=", - "dev": true, - "requires": { - "asset-resolver": "0.3.3", - "bluebird": "3.4.7", - "debug": "2.6.1", - "filesize": "3.5.5", - "lodash.defaults": "4.2.0", - "lodash.escaperegexp": "4.1.2", - "lodash.isstring": "4.0.1", - "lodash.last": "3.0.0", - "lodash.map": "4.6.0", - "lodash.partialright": "4.2.1", - "lodash.reduce": "4.6.0", - "lodash.reject": "4.6.0", - "lodash.result": "4.5.2", - "mime": "1.3.4", - "object-hash": "1.1.5", - "postcss": "5.2.15", - "request": "2.79.0", - "svgo": "0.7.2", - "then-fs": "2.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "assert-plus": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz", - "integrity": "sha1-104bh+ev/A24qttwIfP+SBAasjQ=", - "dev": true - }, - "aws-sign2": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz", - "integrity": "sha1-FDQt0428yU0OW4fXY81jYSwOeU8=", - "dev": true - }, - "bluebird": { - "version": "3.4.7", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.4.7.tgz", - "integrity": "sha1-9y12C+Cbf3bQjtj66Ysomo0F+rM=", - "dev": true - }, - "caseless": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.11.0.tgz", - "integrity": "sha1-cVuW6phBWTzDMGeSP17GDr2k99c=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "dependencies": { - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "commander": { - "version": "2.20.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz", - "integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==", - "dev": true - }, - "csso": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/csso/-/csso-2.3.2.tgz", - "integrity": "sha1-3dUsWHAz9J6Utx/FVWnyUuj/X4U=", - "dev": true, - "requires": { - "clap": "^1.0.9", - "source-map": "^0.5.3" - } - }, - "debug": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.1.tgz", - "integrity": "sha1-eYVQkLosTjEVzH2HaUkdWPBJE1E=", - "dev": true, - "requires": { - "ms": "0.7.2" - } - }, - "esprima": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz", - "integrity": "sha1-luO3DVd59q1JzQMmc9HDEnZ7pYE=", - "dev": true - }, - "form-data": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.1.4.tgz", - "integrity": "sha1-M8GDrPGTJ27KqYFDpp6Uv+4XUNE=", - "dev": true, - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.5", - "mime-types": "^2.1.12" - } - }, - "har-validator": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-2.0.6.tgz", - "integrity": "sha1-zcvAgYgmWtEZtqWnyKtw7s+10n0=", - "dev": true, - "requires": { - "chalk": "^1.1.1", - "commander": "^2.9.0", - "is-my-json-valid": "^2.12.4", - "pinkie-promise": "^2.0.0" - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", - "dev": true - }, - "http-signature": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz", - "integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=", - "dev": true, - "requires": { - "assert-plus": "^0.2.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - } - }, - "js-yaml": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.7.0.tgz", - "integrity": "sha1-XJZ93YN6m/3KXy3oQlOr6KHAO4A=", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^2.6.0" - } - }, - "mime": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.3.4.tgz", - "integrity": "sha1-EV+eO2s9rylZmDyzjxSaLUDrXVM=", - "dev": true - }, - "ms": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", - "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", - "dev": true - }, - "oauth-sign": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", - "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=", - "dev": true - }, - "postcss": { - "version": "5.2.15", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.15.tgz", - "integrity": "sha1-qehoXlDgbMWz/epSlycyRsJvWzA=", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - } - }, - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true - }, - "qs": { - "version": "6.3.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.3.2.tgz", - "integrity": "sha1-51vV9uJoEioqDgvaYwslUMFmUCw=", - "dev": true - }, - "request": { - "version": "2.79.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.79.0.tgz", - "integrity": "sha1-Tf5b9r6LjNw3/Pk+BLZVd3InEN4=", - "dev": true, - "requires": { - "aws-sign2": "~0.6.0", - "aws4": "^1.2.1", - "caseless": "~0.11.0", - "combined-stream": "~1.0.5", - "extend": "~3.0.0", - "forever-agent": "~0.6.1", - "form-data": "~2.1.1", - "har-validator": "~2.0.6", - "hawk": "~3.1.3", - "http-signature": "~1.1.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.7", - "oauth-sign": "~0.8.1", - "qs": "~6.3.0", - "stringstream": "~0.0.4", - "tough-cookie": "~2.3.0", - "tunnel-agent": "~0.4.1", - "uuid": "^3.0.0" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - }, - "svgo": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-0.7.2.tgz", - "integrity": "sha1-n1dyQTlSE1xv779Ar+ak+qiLS7U=", - "dev": true, - "requires": { - "coa": "~1.0.1", - "colors": "~1.1.2", - "csso": "~2.3.1", - "js-yaml": "~3.7.0", - "mkdirp": "~0.5.1", - "sax": "~1.2.1", - "whet.extend": "~0.9.9" - } - }, - "tough-cookie": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz", - "integrity": "sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA==", - "dev": true, - "requires": { - "punycode": "^1.4.1" - } - }, - "uuid": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz", - "integrity": "sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==", - "dev": true - } - } - }, - "prepend-http": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", - "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=", - "dev": true - }, - "preserve": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", - "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", - "dev": true - }, - "pretty-bytes": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-1.0.4.tgz", - "integrity": "sha1-CiLoIQYJrTVUL4yNXSFZr/B1HIQ=", - "dev": true, - "requires": { - "get-stdin": "^4.0.1", - "meow": "^3.1.0" - } - }, - "pretty-ms": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-2.1.0.tgz", - "integrity": "sha1-QlfCVt8/sLRR1q/6qwIYhBJpgdw=", - "dev": true, - "requires": { - "is-finite": "^1.0.1", - "parse-ms": "^1.0.0", - "plur": "^1.0.0" - }, - "dependencies": { - "plur": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/plur/-/plur-1.0.0.tgz", - "integrity": "sha1-24XGgU9eXlo7Se/CjWBP7GKXUVY=", - "dev": true - } - } - }, - "process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "dev": true - }, - "progress": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/progress/-/progress-1.1.8.tgz", - "integrity": "sha1-4mDHj2Fhzdmw5WzD4Khd4Xx6V74=", - "dev": true - }, - "project-name": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/project-name/-/project-name-0.2.6.tgz", - "integrity": "sha1-Pk94H+HulLB4apuuU1BjdsN5r2k=", - "dev": true, - "requires": { - "find-pkg": "^0.1.2", - "git-repo-name": "^0.6.0", - "minimist": "^1.2.0" - } - }, - "promise": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", - "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", - "dev": true, - "requires": { - "asap": "~2.0.3" - } - }, - "pseudomap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", - "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", - "dev": true - }, - "psl": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.4.0.tgz", - "integrity": "sha512-HZzqCGPecFLyoRj5HLfuDSKYTJkAfB5thKBIkRHtGjWwY7p1dAyveIbXIq4tO0KYfDF2tHqPUgY9SDnGm00uFw==", - "dev": true - }, - "pump": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", - "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "pumpify": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.5.1.tgz", - "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==", - "dev": true, - "requires": { - "duplexify": "^3.6.0", - "inherits": "^2.0.3", - "pump": "^2.0.0" - } - }, - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true - }, - "q": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", - "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", - "dev": true - }, - "qs": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", - "dev": true - }, - "randomatic": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz", - "integrity": "sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw==", - "dev": true, - "requires": { - "is-number": "^4.0.0", - "kind-of": "^6.0.0", - "math-random": "^1.0.1" - }, - "dependencies": { - "is-number": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", - "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", - "dev": true - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", - "dev": true - } - } - }, - "range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "dev": true - }, - "raw-body": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-1.1.7.tgz", - "integrity": "sha1-HQJ8K/oRasxmI7yo8AAWVyqH1CU=", - "dev": true, - "requires": { - "bytes": "1", - "string_decoder": "0.10" - }, - "dependencies": { - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - } - } - }, - "rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", - "dev": true, - "requires": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - } - }, - "read-all-stream": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/read-all-stream/-/read-all-stream-3.1.0.tgz", - "integrity": "sha1-NcPhd/IHjveJ7kv6+kNzB06u9Po=", - "dev": true, - "requires": { - "pinkie-promise": "^2.0.0", - "readable-stream": "^2.0.0" - } - }, - "read-pkg": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", - "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", - "dev": true, - "requires": { - "load-json-file": "^1.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^1.0.0" - } - }, - "read-pkg-up": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", - "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", - "dev": true, - "requires": { - "find-up": "^1.0.0", - "read-pkg": "^1.0.0" - } - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "reaver": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/reaver/-/reaver-2.0.0.tgz", - "integrity": "sha1-epBv61vBvNCFZ/wjUV807LEnQQY=", - "dev": true, - "requires": { - "minimist": "^1.1.0" - } - }, - "redent": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", - "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=", - "dev": true, - "requires": { - "indent-string": "^2.1.0", - "strip-indent": "^1.0.1" - } - }, - "reduce-object": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/reduce-object/-/reduce-object-0.1.3.tgz", - "integrity": "sha1-1UnUCmwpNvpOPpt4yonJMxRZQhg=", - "dev": true, - "requires": { - "for-own": "^0.1.1" - } - }, - "regex-cache": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", - "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", - "dev": true, - "requires": { - "is-equal-shallow": "^0.1.3" - } - }, - "registry-auth-token": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.4.0.tgz", - "integrity": "sha512-4LM6Fw8eBQdwMYcES4yTnn2TqIasbXuwDx3um+QRs7S55aMKCBKBxvPXl2RiUjHwuJLTyYfxSpmfSAjQpcuP+A==", - "dev": true, - "requires": { - "rc": "^1.1.6", - "safe-buffer": "^5.0.1" - } - }, - "registry-url": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-3.1.0.tgz", - "integrity": "sha1-PU74cPc93h138M+aOBQyRE4XSUI=", - "dev": true, - "requires": { - "rc": "^1.0.1" - } - }, - "relateurl": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", - "integrity": "sha1-VNvzd+UUQKypCkzSdGANP/LYiKk=", - "dev": true - }, - "relative": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/relative/-/relative-3.0.2.tgz", - "integrity": "sha1-Dc2OxUpdNaPBXhBFA9ZTdbWlNn8=", - "dev": true, - "requires": { - "isobject": "^2.0.0" - } - }, - "remarkable": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/remarkable/-/remarkable-1.7.4.tgz", - "integrity": "sha512-e6NKUXgX95whv7IgddywbeN/ItCkWbISmc2DiqHJb0wTrqZIexqdco5b8Z3XZoo/48IdNVKM9ZCvTPJ4F5uvhg==", - "dev": true, - "requires": { - "argparse": "^1.0.10", - "autolinker": "~0.28.0" - } - }, - "remote-origin-url": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/remote-origin-url/-/remote-origin-url-0.5.3.tgz", - "integrity": "sha512-crQ7Xk1m/F2IiwBx5oTqk/c0hjoumrEz+a36+ZoVupskQRE/q7pAwHKsTNeiZ31sbSTELvVlVv4h1W0Xo5szKg==", - "dev": true, - "requires": { - "parse-git-config": "^1.1.1" - } - }, - "remove-trailing-separator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", - "dev": true - }, - "repeat-element": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", - "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", - "dev": true - }, - "repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", - "dev": true - }, - "repeating": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", - "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", - "dev": true, - "requires": { - "is-finite": "^1.0.0" - } - }, - "replace-ext": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-0.0.1.tgz", - "integrity": "sha1-KbvZIHinOfC8zitO5B6DeVNSKSQ=", - "dev": true - }, - "repo-utils": { - "version": "0.3.7", - "resolved": "https://registry.npmjs.org/repo-utils/-/repo-utils-0.3.7.tgz", - "integrity": "sha1-SrZq80DLEfp+XPgFgekr6Xwb964=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "get-value": "^2.0.6", - "git-config-path": "^1.0.1", - "is-absolute": "^0.2.6", - "kind-of": "^3.0.4", - "lazy-cache": "^2.0.1", - "mixin-deep": "^1.1.3", - "omit-empty": "^0.4.1", - "parse-author": "^1.0.0", - "parse-git-config": "^1.0.2", - "parse-github-url": "^0.3.2", - "project-name": "^0.2.6" - }, - "dependencies": { - "is-absolute": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-0.2.6.tgz", - "integrity": "sha1-IN5p89uULvLYe5wto28XIjWxtes=", - "dev": true, - "requires": { - "is-relative": "^0.2.1", - "is-windows": "^0.2.0" - } - }, - "is-relative": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-0.2.1.tgz", - "integrity": "sha1-0n9MfVFtF1+2ENuEu+7yPDvJeqU=", - "dev": true, - "requires": { - "is-unc-path": "^0.1.1" - } - }, - "lazy-cache": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", - "integrity": "sha1-uRkKT5EzVGlIQIWfio9whNiCImQ=", - "dev": true, - "requires": { - "set-getter": "^0.1.0" - } - } - } - }, - "request": { - "version": "2.88.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", - "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", - "dev": true, - "requires": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.0", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.4.3", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - }, - "dependencies": { - "tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", - "dev": true, - "requires": { - "safe-buffer": "^5.0.1" - } - }, - "uuid": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz", - "integrity": "sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==", - "dev": true - } - } - }, - "request-progress": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/request-progress/-/request-progress-2.0.1.tgz", - "integrity": "sha1-XTa7V5YcZzqlt4jbyBQf3yO0Tgg=", - "dev": true, - "requires": { - "throttleit": "^1.0.0" - } - }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true - }, - "require-main-filename": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", - "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", - "dev": true - }, - "requirefresh": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/requirefresh/-/requirefresh-2.2.0.tgz", - "integrity": "sha512-gXQWrZkXNZZ6qVEh6PQvoASxLY3r6AR4jH8fFjZ+BfPJpDV6RTI82J4A3tkAn2wikU7rxfzU3sIPj94zEV6xPA==", - "dev": true, - "requires": { - "editions": "^2.1.3" - }, - "dependencies": { - "editions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/editions/-/editions-2.2.0.tgz", - "integrity": "sha512-RYg3iEA2BDLCNVe8PUkD+ox5vAKxB9XS/mAhx1bdxGCF0CpX077C0pyTA9t5D6idCYA3avl5/XDHKPsHFrygfw==", - "dev": true, - "requires": { - "errlop": "^1.1.2", - "semver": "^6.3.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "resolve": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", - "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", - "dev": true, - "requires": { - "path-parse": "^1.0.6" - } - }, - "resolve-dep": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/resolve-dep/-/resolve-dep-0.4.1.tgz", - "integrity": "sha1-mveoetONtMsZIGzmGrKlvEDOSCw=", - "dev": true, - "requires": { - "array-flatten": "0.0.2", - "cwd": "^0.3.3", - "globby": "^0.1.1", - "load-pkg": "^0.1.0", - "multimatch": "^0.3.0", - "normalize-path": "^0.1.1", - "resolve": "^0.6.3", - "xtend": "^3.0.0" - }, - "dependencies": { - "resolve": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-0.6.3.tgz", - "integrity": "sha1-3ZV5gufnNt699TtYpN2RdUV13UY=", - "dev": true - } - } - }, - "resolve-dir": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-0.1.1.tgz", - "integrity": "sha1-shklmlYC+sXFxJatiUpujMQwJh4=", - "dev": true, - "requires": { - "expand-tilde": "^1.2.2", - "global-modules": "^0.2.3" - } - }, - "resolve-url": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", - "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", - "dev": true - }, - "right-align": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", - "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", - "dev": true, - "requires": { - "align-text": "^0.1.1" - } - }, - "rimraf": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", - "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - }, - "dependencies": { - "glob": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", - "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - } - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "safe-json-parse": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/safe-json-parse/-/safe-json-parse-1.0.1.tgz", - "integrity": "sha1-PnZyPjjf3aE8mx0poeB//uSzC1c=", - "dev": true - }, - "safefs": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/safefs/-/safefs-4.1.0.tgz", - "integrity": "sha1-+CrrS9165R9lPrIPZyizBYyNZEU=", - "dev": true, - "requires": { - "editions": "^1.1.1", - "graceful-fs": "^4.1.4" - } - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "sass-graph": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.4.tgz", - "integrity": "sha1-E/vWPNHK8JCLn9k0dq1DpR0eC0k=", - "dev": true, - "requires": { - "glob": "^7.0.0", - "lodash": "^4.0.0", - "scss-tokenizer": "^0.2.3", - "yargs": "^7.0.0" - }, - "dependencies": { - "camelcase": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", - "dev": true - }, - "cliui": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", - "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", - "dev": true, - "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wrap-ansi": "^2.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "yargs": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-7.1.0.tgz", - "integrity": "sha1-a6MY6xaWFyf10oT46gA+jWFU0Mg=", - "dev": true, - "requires": { - "camelcase": "^3.0.0", - "cliui": "^3.2.0", - "decamelize": "^1.1.1", - "get-caller-file": "^1.0.1", - "os-locale": "^1.4.0", - "read-pkg-up": "^1.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^1.0.2", - "which-module": "^1.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^5.0.0" - } - } - } - }, - "sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", - "dev": true - }, - "scss-tokenizer": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz", - "integrity": "sha1-jrBtualyMzOCTT9VMGQRSYR85dE=", - "dev": true, - "requires": { - "js-base64": "^2.1.8", - "source-map": "^0.4.2" - }, - "dependencies": { - "source-map": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", - "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", - "dev": true, - "requires": { - "amdefine": ">=0.0.4" - } - } - } - }, - "seed-random": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/seed-random/-/seed-random-2.2.0.tgz", - "integrity": "sha1-KpsZ4lCoFwmSMaW5mk2vgLf77VQ=", - "dev": true - }, - "seek-bzip": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/seek-bzip/-/seek-bzip-1.0.5.tgz", - "integrity": "sha1-z+kXyz0nS8/6x5J1ivUxc+sfq9w=", - "dev": true, - "optional": true, - "requires": { - "commander": "~2.8.1" - }, - "dependencies": { - "commander": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.8.1.tgz", - "integrity": "sha1-Br42f+v9oMMwqh4qBy09yXYkJdQ=", - "dev": true, - "optional": true, - "requires": { - "graceful-readlink": ">= 1.0.0" - } - } - } - }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true - }, - "semver-diff": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-2.1.0.tgz", - "integrity": "sha1-S7uEN8jTfksM8aaP1ybsbWRdbTY=", - "dev": true, - "requires": { - "semver": "^5.0.3" - } - }, - "semver-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-1.0.0.tgz", - "integrity": "sha1-kqSWkGX5xwxpR1PVUkj8aPj2Usk=", - "dev": true, - "optional": true - }, - "semver-truncate": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/semver-truncate/-/semver-truncate-1.1.2.tgz", - "integrity": "sha1-V/Qd5pcHpicJp+AQS6IRcQnqR+g=", - "dev": true, - "optional": true, - "requires": { - "semver": "^5.3.0" - } - }, - "send": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", - "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", - "dev": true, - "requires": { - "debug": "2.6.9", - "depd": "~1.1.2", - "destroy": "~1.0.4", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "~1.7.2", - "mime": "1.6.0", - "ms": "2.1.1", - "on-finished": "~2.3.0", - "range-parser": "~1.2.1", - "statuses": "~1.5.0" - }, - "dependencies": { - "http-errors": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.3.tgz", - "integrity": "sha512-ZTTX0MWrsQ2ZAhA1cejAwDLycFsd7I7nVtnkT3Ol0aqodaKW+0CTZDQ1uBv5whptCnc8e8HeRRJxRs0kmm/Qfw==", - "dev": true, - "requires": { - "depd": "~1.1.2", - "inherits": "2.0.4", - "setprototypeof": "1.1.1", - "statuses": ">= 1.5.0 < 2", - "toidentifier": "1.0.0" - } - }, - "ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true - }, - "setprototypeof": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", - "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==", - "dev": true - } - } - }, - "sentence-case": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/sentence-case/-/sentence-case-2.1.1.tgz", - "integrity": "sha1-H24t2jnBaL+S0T+G1KkYkz9mftQ=", - "dev": true, - "requires": { - "no-case": "^2.2.0", - "upper-case-first": "^1.1.2" - } - }, - "serve-index": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", - "integrity": "sha1-03aNabHn2C5c4FD/9bRTvqEqkjk=", - "dev": true, - "requires": { - "accepts": "~1.3.4", - "batch": "0.6.1", - "debug": "2.6.9", - "escape-html": "~1.0.3", - "http-errors": "~1.6.2", - "mime-types": "~2.1.17", - "parseurl": "~1.3.2" - } - }, - "serve-static": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", - "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", - "dev": true, - "requires": { - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.17.1" - } - }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true - }, - "set-getter": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/set-getter/-/set-getter-0.1.0.tgz", - "integrity": "sha1-12nBgsnVpR9AkUXy+6guXoboA3Y=", - "dev": true, - "requires": { - "to-object-path": "^0.3.0" - } - }, - "set-immediate-shim": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", - "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=", - "dev": true - }, - "setprototypeof": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", - "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", - "dev": true - }, - "shelljs": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz", - "integrity": "sha1-NZbmMHp4FUT1kfN9phg2DzHbV7E=", - "dev": true - }, - "sigmund": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz", - "integrity": "sha1-P/IfGYytIXX587eBhT/ZTQ0ZtZA=", - "dev": true - }, - "signal-exit": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", - "dev": true - }, - "slash": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", - "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=", - "dev": true - }, - "slide": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/slide/-/slide-1.1.6.tgz", - "integrity": "sha1-VusCfWW00tzmyy4tMsTUr8nh1wc=", - "dev": true - }, - "snake-case": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-2.1.0.tgz", - "integrity": "sha1-Qb2xtz8w7GagTU4srRt2OH1NbZ8=", - "dev": true, - "requires": { - "no-case": "^2.2.0" - } - }, - "sntp": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", - "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=", - "dev": true, - "requires": { - "hoek": "2.x.x" - } - }, - "sort-object": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/sort-object/-/sort-object-0.0.5.tgz", - "integrity": "sha1-aKsyue4uDQIONzWXIAhNSFW8ik8=", - "dev": true, - "requires": { - "lodash": "~2.2.1" - }, - "dependencies": { - "lodash": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.2.1.tgz", - "integrity": "sha1-ypNf0UqzwMhyq6zxmLnNpQFECGc=", - "dev": true - } - } - }, - "source-map": { - "version": "0.1.43", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", - "integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=", - "dev": true, - "requires": { - "amdefine": ">=0.0.4" - } - }, - "source-map-resolve": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", - "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", - "dev": true, - "requires": { - "atob": "^2.1.1", - "decode-uri-component": "^0.2.0", - "resolve-url": "^0.2.1", - "source-map-url": "^0.4.0", - "urix": "^0.1.0" - } - }, - "source-map-url": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", - "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", - "dev": true - }, - "sparkles": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/sparkles/-/sparkles-1.0.1.tgz", - "integrity": "sha512-dSO0DDYUahUt/0/pD/Is3VIm5TGJjludZ0HVymmhYF6eNA53PVLhnUk0znSYbH8IYBuJdCE+1luR22jNLMaQdw==", - "dev": true - }, - "spdx-correct": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", - "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", - "dev": true, - "requires": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-exceptions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", - "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==", - "dev": true - }, - "spdx-expression-parse": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", - "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", - "dev": true, - "requires": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-license-ids": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz", - "integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==", - "dev": true - }, - "split2": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/split2/-/split2-1.1.1.tgz", - "integrity": "sha1-Fi2bGIZfAqsvKtlYVSLbm1TEgfk=", - "dev": true, - "requires": { - "through2": "~2.0.0" - } - }, - "sprintf-js": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz", - "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==", - "dev": true - }, - "squeak": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/squeak/-/squeak-1.3.0.tgz", - "integrity": "sha1-MwRQN7ZDiLVnZ0uEMiplIQc5FsM=", - "dev": true, - "optional": true, - "requires": { - "chalk": "^1.0.0", - "console-stream": "^0.1.1", - "lpad-align": "^1.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true, - "optional": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "optional": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "optional": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true, - "optional": true - } - } - }, - "sqwish": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/sqwish/-/sqwish-0.2.2.tgz", - "integrity": "sha1-AP4maBBPEii1u37nOe9gEhu8sFc=", - "dev": true - }, - "sshpk": { - "version": "1.16.1", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", - "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", - "dev": true, - "requires": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - } - }, - "stack-trace": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.7.tgz", - "integrity": "sha1-xy4Il0T8Nln1CM3ONiGvVjTsD/8=", - "dev": true - }, - "stat-mode": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/stat-mode/-/stat-mode-0.2.2.tgz", - "integrity": "sha1-5sgLYjEj19gM8TLOU480YokHJQI=", - "dev": true, - "optional": true - }, - "statuses": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=", - "dev": true - }, - "stream-combiner2": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", - "integrity": "sha1-+02KFCDqNidk4hrUeAOXvry0HL4=", - "dev": true, - "requires": { - "duplexer2": "~0.1.0", - "readable-stream": "^2.0.2" - } - }, - "stream-shift": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", - "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", - "dev": true - }, - "string-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-1.0.1.tgz", - "integrity": "sha1-VpcPscOFWOnnC3KL894mmsRa36w=", - "dev": true, - "requires": { - "strip-ansi": "^3.0.0" - }, - "dependencies": { - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - } - } - }, - "string-template": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/string-template/-/string-template-0.2.1.tgz", - "integrity": "sha1-QpMuWYo1LQH8IuwzZ9nYTuxsmt0=", - "dev": true - }, - "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "dev": true, - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - }, - "dependencies": { - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - } - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "stringstream": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.6.tgz", - "integrity": "sha512-87GEBAkegbBcweToUrdzf3eLhWNg06FJTebl4BVJz/JgWy8CvEr9dRtX5qWphiynMSQlxxi+QqN0z5T32SLlhA==", - "dev": true - }, - "strip-ansi": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-0.1.1.tgz", - "integrity": "sha1-OeipjQRNFQZgq+SmgIrPcLt7yZE=", - "dev": true - }, - "strip-bom": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", - "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", - "dev": true, - "requires": { - "is-utf8": "^0.2.0" - } - }, - "strip-bom-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-bom-stream/-/strip-bom-stream-1.0.0.tgz", - "integrity": "sha1-5xRDmFd9Uaa+0PoZlPoF9D/ZiO4=", - "dev": true, - "requires": { - "first-chunk-stream": "^1.0.0", - "strip-bom": "^2.0.0" - } - }, - "strip-dirs": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/strip-dirs/-/strip-dirs-1.1.1.tgz", - "integrity": "sha1-lgu9EoeETzl1pFWKoQOoJV4kVqA=", - "dev": true, - "optional": true, - "requires": { - "chalk": "^1.0.0", - "get-stdin": "^4.0.1", - "is-absolute": "^0.1.5", - "is-natural-number": "^2.0.0", - "minimist": "^1.1.0", - "sum-up": "^1.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true, - "optional": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "optional": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "optional": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true, - "optional": true - } - } - }, - "strip-indent": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", - "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=", - "dev": true, - "requires": { - "get-stdin": "^4.0.1" - } - }, - "strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true - }, - "strip-outer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/strip-outer/-/strip-outer-1.0.1.tgz", - "integrity": "sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg==", - "dev": true, - "optional": true, - "requires": { - "escape-string-regexp": "^1.0.2" - } - }, - "striptags": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/striptags/-/striptags-2.2.1.tgz", - "integrity": "sha1-TEULcI1BuL85zyTEn/I0/Gqr/TI=", - "dev": true - }, - "sum-up": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sum-up/-/sum-up-1.0.3.tgz", - "integrity": "sha1-HGYfZnBX9jvLeHWqFDi8FiUlFW4=", - "dev": true, - "optional": true, - "requires": { - "chalk": "^1.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true, - "optional": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "optional": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "optional": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true, - "optional": true - } - } - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - }, - "svgo": { - "version": "0.6.6", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-0.6.6.tgz", - "integrity": "sha1-s0CIkDbyD5tEdUMHfQ9Vc+0ETAg=", - "dev": true, - "requires": { - "coa": "~1.0.1", - "colors": "~1.1.2", - "csso": "~2.0.0", - "js-yaml": "~3.6.0", - "mkdirp": "~0.5.1", - "sax": "~1.2.1", - "whet.extend": "~0.9.9" - }, - "dependencies": { - "esprima": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz", - "integrity": "sha1-luO3DVd59q1JzQMmc9HDEnZ7pYE=", - "dev": true - }, - "js-yaml": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.6.1.tgz", - "integrity": "sha1-bl/mfYsgXOTSL60Ft3geja3MSzA=", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^2.6.0" - } - } - } - }, - "swap-case": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/swap-case/-/swap-case-1.1.2.tgz", - "integrity": "sha1-w5IDpFhzhfrTyFCgvRvK+ggZdOM=", - "dev": true, - "requires": { - "lower-case": "^1.1.1", - "upper-case": "^1.1.1" - } - }, - "tar": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.2.tgz", - "integrity": "sha512-FCEhQ/4rE1zYv9rYXJw/msRqsnmlje5jHP6huWeBZ704jUTy02c5AZyWujpMR1ax6mVw9NyJMfuK2CMDWVIfgA==", - "dev": true, - "requires": { - "block-stream": "*", - "fstream": "^1.0.12", - "inherits": "2" - } - }, - "tar-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.2.tgz", - "integrity": "sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==", - "dev": true, - "optional": true, - "requires": { - "bl": "^1.0.0", - "buffer-alloc": "^1.2.0", - "end-of-stream": "^1.0.0", - "fs-constants": "^1.0.0", - "readable-stream": "^2.3.0", - "to-buffer": "^1.1.1", - "xtend": "^4.0.0" - }, - "dependencies": { - "xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true, - "optional": true - } - } - }, - "tempfile": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/tempfile/-/tempfile-1.1.1.tgz", - "integrity": "sha1-W8xOrsxKsscH2LwR2ZzMmiyyh/I=", - "dev": true, - "requires": { - "os-tmpdir": "^1.0.0", - "uuid": "^2.0.1" - } - }, - "temporary": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/temporary/-/temporary-0.0.8.tgz", - "integrity": "sha1-oYqYHSi6jKNgJ/s8MFOMPst0CsA=", - "dev": true, - "requires": { - "package": ">= 1.0.0 < 1.2.0" - } - }, - "text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", - "dev": true - }, - "then-fs": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/then-fs/-/then-fs-2.0.0.tgz", - "integrity": "sha1-cveS3Z0xcFqRrhnr/Piz+WjIHaI=", - "dev": true, - "requires": { - "promise": ">=3.2 <8" - } - }, - "throttleit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/throttleit/-/throttleit-1.0.0.tgz", - "integrity": "sha1-nnhYNtr0Z0MUWlmEtiaNgoUorGw=", - "dev": true - }, - "through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dev": true, - "requires": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - }, - "dependencies": { - "xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true - } - } - }, - "through2-filter": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/through2-filter/-/through2-filter-2.0.0.tgz", - "integrity": "sha1-YLxVoNrLdghdsfna6Zq0P4PWIuw=", - "dev": true, - "requires": { - "through2": "~2.0.0", - "xtend": "~4.0.0" - }, - "dependencies": { - "xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true - } - } - }, - "time-grunt": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/time-grunt/-/time-grunt-1.4.0.tgz", - "integrity": "sha1-BiIT5mDJB+hvRAVWwB6mWXtxJCA=", - "dev": true, - "requires": { - "chalk": "^1.0.0", - "date-time": "^1.1.0", - "figures": "^1.0.0", - "hooker": "^0.2.3", - "number-is-nan": "^1.0.0", - "pretty-ms": "^2.1.0", - "text-table": "^0.2.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "time-stamp": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-1.1.0.tgz", - "integrity": "sha1-dkpaEa9QVhkhsTPztE5hhofg9cM=", - "dev": true - }, - "time-zone": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/time-zone/-/time-zone-0.1.0.tgz", - "integrity": "sha1-Sncotqwo2w4Aj1FAQ/1VW9VXO0Y=", - "dev": true - }, - "timed-out": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-3.1.3.tgz", - "integrity": "sha1-lYYL/MXHbCd/j4Mm/Q9bLiDrohc=", - "dev": true - }, - "tiny-lr": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/tiny-lr/-/tiny-lr-1.1.1.tgz", - "integrity": "sha512-44yhA3tsaRoMOjQQ+5v5mVdqef+kH6Qze9jTpqtVufgYjYt08zyZAwNwwVBj3i1rJMnR52IxOW0LK0vBzgAkuA==", - "dev": true, - "requires": { - "body": "^5.1.0", - "debug": "^3.1.0", - "faye-websocket": "~0.10.0", - "livereload-js": "^2.3.0", - "object-assign": "^4.1.0", - "qs": "^6.4.0" - }, - "dependencies": { - "debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - } - } - }, - "title-case": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/title-case/-/title-case-2.1.1.tgz", - "integrity": "sha1-PhJyFtpY0rxb7PE3q5Ha46fNj6o=", - "dev": true, - "requires": { - "no-case": "^2.2.0", - "upper-case": "^1.0.3" - } - }, - "tmp": { - "version": "0.0.31", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.31.tgz", - "integrity": "sha1-jzirlDjhcxXl29izZX6L+yd65Kc=", - "dev": true, - "requires": { - "os-tmpdir": "~1.0.1" - } - }, - "to": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/to/-/to-0.2.9.tgz", - "integrity": "sha1-C6Wlb+U1ONuSBc621+0heq5GNcQ=", - "dev": true, - "requires": { - "handy": ">= 0.0.11", - "htmlparser": ">= 1.7.6", - "js-yaml": ">= 1.0.2", - "optimist": ">= 0.3.5", - "underscore": ">= 1.4.0" - } - }, - "to-absolute-glob": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/to-absolute-glob/-/to-absolute-glob-0.1.1.tgz", - "integrity": "sha1-HN+kcqnvUMI57maZm2YsoOs5k38=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1" - } - }, - "to-buffer": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.1.1.tgz", - "integrity": "sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg==", - "dev": true, - "optional": true - }, - "to-file": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/to-file/-/to-file-0.2.0.tgz", - "integrity": "sha1-I2xsCIBl5XDe+9Fc9LTlZb5G6pM=", - "dev": true, - "requires": { - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "file-contents": "^0.2.4", - "glob-parent": "^2.0.0", - "is-valid-glob": "^0.3.0", - "isobject": "^2.1.0", - "lazy-cache": "^2.0.1", - "vinyl": "^1.1.1" - }, - "dependencies": { - "glob-parent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", - "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", - "dev": true, - "requires": { - "is-glob": "^2.0.0" - } - }, - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true - }, - "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - }, - "lazy-cache": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", - "integrity": "sha1-uRkKT5EzVGlIQIWfio9whNiCImQ=", - "dev": true, - "requires": { - "set-getter": "^0.1.0" - } - } - } - }, - "to-gfm-code-block": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/to-gfm-code-block/-/to-gfm-code-block-0.1.1.tgz", - "integrity": "sha1-JdBFpfrlUxielje1kJANpzLYqoI=", - "dev": true - }, - "to-object-path": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", - "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "toidentifier": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", - "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", - "dev": true - }, - "tough-cookie": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", - "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", - "dev": true, - "requires": { - "psl": "^1.1.24", - "punycode": "^1.4.1" - }, - "dependencies": { - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true - } - } - }, - "trim-newlines": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", - "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=", - "dev": true - }, - "trim-repeated": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/trim-repeated/-/trim-repeated-1.0.0.tgz", - "integrity": "sha1-42RqLqTokTEr9+rObPsFOAvAHCE=", - "dev": true, - "optional": true, - "requires": { - "escape-string-regexp": "^1.0.2" - } - }, - "tunnel-agent": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.3.tgz", - "integrity": "sha1-Y3PbdpCf5XDgjXNYM2Xtgop07us=", - "dev": true - }, - "tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", - "dev": true - }, - "typechecker": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/typechecker/-/typechecker-4.7.0.tgz", - "integrity": "sha512-4LHc1KMNJ6NDGO+dSM/yNfZQRtp8NN7psYrPHUblD62Dvkwsp3VShsbM78kOgpcmMkRTgvwdKOTjctS+uMllgQ==", - "dev": true, - "requires": { - "editions": "^2.1.0" - }, - "dependencies": { - "editions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/editions/-/editions-2.2.0.tgz", - "integrity": "sha512-RYg3iEA2BDLCNVe8PUkD+ox5vAKxB9XS/mAhx1bdxGCF0CpX077C0pyTA9t5D6idCYA3avl5/XDHKPsHFrygfw==", - "dev": true, - "requires": { - "errlop": "^1.1.2", - "semver": "^6.3.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", - "dev": true - }, - "uglify-js": { - "version": "2.8.29", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", - "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", - "dev": true, - "requires": { - "source-map": "~0.5.1", - "uglify-to-browserify": "~1.0.0", - "yargs": "~3.10.0" - }, - "dependencies": { - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } - } - }, - "uglify-to-browserify": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz", - "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", - "dev": true - }, - "unc-path-regex": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", - "integrity": "sha1-5z3T17DXxe2G+6xrCufYxqadUPo=", - "dev": true - }, - "underscore": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz", - "integrity": "sha1-a7rwh3UA02vjTsqlhODbn+8DUgk=", - "dev": true - }, - "underscore.string": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-3.3.5.tgz", - "integrity": "sha512-g+dpmgn+XBneLmXXo+sGlW5xQEt4ErkS3mgeN2GFbremYeMBSJKr9Wf2KJplQVaiPY/f7FN6atosWYNm9ovrYg==", - "dev": true, - "requires": { - "sprintf-js": "^1.0.3", - "util-deprecate": "^1.0.2" - } - }, - "unique-stream": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/unique-stream/-/unique-stream-2.3.1.tgz", - "integrity": "sha512-2nY4TnBE70yoxHkDli7DMazpWiP7xMdCYqU2nBRO0UB+ZpEkGsSija7MvmvnZFUeC+mrgiUfcHSr3LmRFIg4+A==", - "dev": true, - "requires": { - "json-stable-stringify-without-jsonify": "^1.0.1", - "through2-filter": "^3.0.0" - }, - "dependencies": { - "through2-filter": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/through2-filter/-/through2-filter-3.0.0.tgz", - "integrity": "sha512-jaRjI2WxN3W1V8/FMZ9HKIBXixtiqs3SQSX4/YGIiP3gL6djW48VoZq9tDqeCWs3MT8YY5wb/zli8VW8snY1CA==", - "dev": true, - "requires": { - "through2": "~2.0.0", - "xtend": "~4.0.0" - } - }, - "xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true - } - } - }, - "unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", - "dev": true - }, - "unzip-response": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unzip-response/-/unzip-response-1.0.2.tgz", - "integrity": "sha1-uYTwh3/AqJwsdzzB73tbIytbBv4=", - "dev": true - }, - "update-notifier": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-0.7.0.tgz", - "integrity": "sha1-FDxFMzg9CJCO9wVGIGOV/htauwY=", - "dev": true, - "requires": { - "ansi-align": "^1.0.0", - "boxen": "^0.5.1", - "chalk": "^1.0.0", - "configstore": "^2.0.0", - "is-npm": "^1.0.0", - "latest-version": "^2.0.0", - "semver-diff": "^2.0.0", - "xdg-basedir": "^2.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "upper-case": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/upper-case/-/upper-case-1.1.3.tgz", - "integrity": "sha1-9rRQHC7EzdJrp4vnIilh3ndiFZg=", - "dev": true - }, - "upper-case-first": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/upper-case-first/-/upper-case-first-1.1.2.tgz", - "integrity": "sha1-XXm+3P8UQZUY/S7bCgUHybaFkRU=", - "dev": true, - "requires": { - "upper-case": "^1.1.1" - } - }, - "uri-js": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", - "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", - "dev": true, - "requires": { - "punycode": "^2.1.0" - } - }, - "uri-path": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/uri-path/-/uri-path-1.0.0.tgz", - "integrity": "sha1-l0fwGDWJM8Md4PzP2C0TjmcmLjI=", - "dev": true - }, - "urix": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", - "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", - "dev": true - }, - "url-parse-lax": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz", - "integrity": "sha1-evjzA2Rem9eaJy56FKxovAYJ2nM=", - "dev": true, - "requires": { - "prepend-http": "^1.0.1" - } - }, - "url-regex": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/url-regex/-/url-regex-3.2.0.tgz", - "integrity": "sha1-260eDJ4p4QXdCx8J9oYvf9tIJyQ=", - "dev": true, - "optional": true, - "requires": { - "ip-regex": "^1.0.1" - } - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true - }, - "utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", - "dev": true - }, - "uuid": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-2.0.3.tgz", - "integrity": "sha1-Z+LoY3lyFVMN/zGOW/nc6/1Hsho=", - "dev": true - }, - "vali-date": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/vali-date/-/vali-date-1.0.0.tgz", - "integrity": "sha1-G5BKWWCfsyjvB4E4Qgk09rhnCaY=", - "dev": true - }, - "validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dev": true, - "requires": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "verbalize": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/verbalize/-/verbalize-0.1.2.tgz", - "integrity": "sha1-Fl/aRkAzFUj46ZCx1+FDletyAgc=", - "dev": true, - "requires": { - "chalk": "~0.4.0" - }, - "dependencies": { - "ansi-styles": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-1.0.0.tgz", - "integrity": "sha1-yxAt8cVvUSPquLZ817mAJ6AnkXg=", - "dev": true - }, - "chalk": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-0.4.0.tgz", - "integrity": "sha1-UZmj3c0MHv4jvAjBsCewYXbgxk8=", - "dev": true, - "requires": { - "ansi-styles": "~1.0.0", - "has-color": "~0.1.0", - "strip-ansi": "~0.1.0" - } - } - } - }, - "verror": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", - "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - } - }, - "vinyl": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-1.2.0.tgz", - "integrity": "sha1-XIgDbPVl5d8FVYv8kR+GVt8hiIQ=", - "dev": true, - "requires": { - "clone": "^1.0.0", - "clone-stats": "^0.0.1", - "replace-ext": "0.0.1" - } - }, - "vinyl-assign": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/vinyl-assign/-/vinyl-assign-1.2.1.tgz", - "integrity": "sha1-TRmIkbVRWRHXcajNnFSApGoHSkU=", - "dev": true, - "optional": true, - "requires": { - "object-assign": "^4.0.1", - "readable-stream": "^2.0.0" - } - }, - "vinyl-fs": { - "version": "2.4.4", - "resolved": "https://registry.npmjs.org/vinyl-fs/-/vinyl-fs-2.4.4.tgz", - "integrity": "sha1-vm/zJwy1Xf19MGNkDegfJddTIjk=", - "dev": true, - "requires": { - "duplexify": "^3.2.0", - "glob-stream": "^5.3.2", - "graceful-fs": "^4.0.0", - "gulp-sourcemaps": "1.6.0", - "is-valid-glob": "^0.3.0", - "lazystream": "^1.0.0", - "lodash.isequal": "^4.0.0", - "merge-stream": "^1.0.0", - "mkdirp": "^0.5.0", - "object-assign": "^4.0.0", - "readable-stream": "^2.0.4", - "strip-bom": "^2.0.0", - "strip-bom-stream": "^1.0.0", - "through2": "^2.0.0", - "through2-filter": "^2.0.0", - "vali-date": "^1.0.0", - "vinyl": "^1.0.0" - } - }, - "ware": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/ware/-/ware-1.3.0.tgz", - "integrity": "sha1-0bFPOdLiy0q4xAmPdW/ksWTkc9Q=", - "dev": true, - "optional": true, - "requires": { - "wrap-fn": "^0.1.0" - } - }, - "websocket-driver": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.3.tgz", - "integrity": "sha512-bpxWlvbbB459Mlipc5GBzzZwhoZgGEZLuqPaR0INBGnPAY1vdBX6hPnoFXiw+3yWxDuHyQjO2oXTMyS8A5haFg==", - "dev": true, - "requires": { - "http-parser-js": ">=0.4.0 <0.4.11", - "safe-buffer": ">=5.1.0", - "websocket-extensions": ">=0.1.1" - } - }, - "websocket-extensions": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.3.tgz", - "integrity": "sha512-nqHUnMXmBzT0w570r2JpJxfiSD1IzoI+HGVdd3aZ0yNi3ngvQ4jv1dtHt5VGxfI2yj5yqImPhOK4vmIh2xMbGg==", - "dev": true - }, - "whet.extend": { - "version": "0.9.9", - "resolved": "https://registry.npmjs.org/whet.extend/-/whet.extend-0.9.9.tgz", - "integrity": "sha1-+HfVv2SMl+WqVC+twW1qJZucEaE=", - "dev": true - }, - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "which-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", - "integrity": "sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=", - "dev": true - }, - "wide-align": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", - "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", - "dev": true, - "requires": { - "string-width": "^1.0.2 || 2" - } - }, - "widest-line": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-1.0.0.tgz", - "integrity": "sha1-DAnIXCqUaD0Nfq+O4JfVZL8OEFw=", - "dev": true, - "requires": { - "string-width": "^1.0.1" - } - }, - "window-size": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", - "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", - "dev": true - }, - "wordwrap": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", - "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=", - "dev": true - }, - "wrap-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", - "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", - "dev": true, - "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" - }, - "dependencies": { - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - } - } - }, - "wrap-fn": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/wrap-fn/-/wrap-fn-0.1.5.tgz", - "integrity": "sha1-8htuQQFv9KfjFyDbxjoJAWvfmEU=", - "dev": true, - "optional": true, - "requires": { - "co": "3.1.0" - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true - }, - "write-file-atomic": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-1.3.4.tgz", - "integrity": "sha1-+Aek8LHZ6ROuekgRLmzDrxmRtF8=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.11", - "imurmurhash": "^0.1.4", - "slide": "^1.1.5" - } - }, - "xdg-basedir": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-2.0.0.tgz", - "integrity": "sha1-7byQPMOF/ARSPZZqM1UEtVBNG9I=", - "dev": true, - "requires": { - "os-homedir": "^1.0.0" - } - }, - "xml-char-classes": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/xml-char-classes/-/xml-char-classes-1.0.0.tgz", - "integrity": "sha1-ZGV4SKIP/F31g6Qq2KJ3tFErvE0=", - "dev": true - }, - "xtend": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-3.0.0.tgz", - "integrity": "sha1-XM50B7r2Qsunvs2laBEcST9ZZlo=", - "dev": true - }, - "y18n": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", - "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", - "dev": true - }, - "yallist": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", - "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", - "dev": true - }, - "yargs": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", - "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", - "dev": true, - "requires": { - "camelcase": "^1.0.2", - "cliui": "^2.1.0", - "decamelize": "^1.0.0", - "window-size": "0.1.0" - }, - "dependencies": { - "camelcase": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", - "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", - "dev": true - } - } - }, - "yargs-parser": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-5.0.0.tgz", - "integrity": "sha1-J17PDX/+Bcd+ZOfIbkzZS/DhIoo=", - "dev": true, - "requires": { - "camelcase": "^3.0.0" - }, - "dependencies": { - "camelcase": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", - "dev": true - } - } - }, - "yauzl": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", - "integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=", - "dev": true, - "optional": true, - "requires": { - "buffer-crc32": "~0.2.3", - "fd-slicer": "~1.1.0" - } - } - } -} diff --git a/package.json b/package.json index cf2fb0331..8976771ac 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,27 @@ { "name": "chartist", - "title": "Chartist.js", + "type": "module", + "version": "1.0.0", "description": "Simple, responsive charts", - "version": "0.11.4", "author": "Gion Kunz", - "homepage": "https://gionkunz.github.io/chartist-js", + "homepage": "https://chartist-js.github.io", + "license": "MIT OR WTFPL", + "licenses": [ + { + "type": "WTFPL", + "url": "https://github.com/chartist-js/chartist/blob/master/LICENSE-WTFPL" + }, + { + "type": "MIT", + "url": "https://github.com/chartist-js/chartist/blob/master/LICENSE-MIT" + } + ], "repository": { "type": "git", - "url": "https://github.com/gionkunz/chartist-js.git" + "url": "https://github.com/chartist-js/chartist.git" }, "bugs": { - "url": "https://github.com/gionkunz/chartist-js/issues" + "url": "https://github.com/chartist-js/chartist/issues" }, "keywords": [ "chartist", @@ -18,79 +29,109 @@ "charts", "charting" ], + "engines": { + "node": ">=14" + }, + "sideEffects": false, + "types": "./dist/index.d.ts", + "style": "./src/styles/chartist.scss", + "main": "./src/index.ts", + "publishConfig": { + "style": "./dist/index.css", + "main": "./dist/index.cjs", + "module": "./dist/index.js", + "exports": { + "require": "./dist/index.cjs", + "import": "./dist/index.js" + }, + "directory": "package" + }, "files": [ "dist", "LICENSE-WTFPL", - "LICENSE-MIT", - "package.json", - "README.md", - "rescue-campaign.js" - ], - "style": "dist/chartist.min.css", - "main": "dist/chartist.js", - "browser": "dist/chartist.js", - "license": "MIT OR WTFPL", - "licenses": [ - { - "type": "WTFPL", - "url": "https://github.com/gionkunz/chartist-js/blob/master/LICENSE-WTFPL" - }, - { - "type": "MIT", - "url": "https://github.com/gionkunz/chartist-js/blob/master/LICENSE-MIT" - } + "LICENSE-MIT" ], - "dependencies": {}, - "devDependencies": { - "assemble-dox": "0.0.2", - "grunt": "^1.0.1", - "grunt-assemble": "^0.4.0", - "grunt-concurrent": "^2.3.0", - "grunt-contrib-clean": "^1.0.0", - "grunt-contrib-concat": "^1.0.1", - "grunt-contrib-connect": "^1.0.2", - "grunt-contrib-copy": "^1.0.0", - "grunt-contrib-cssmin": "^1.0.1", - "grunt-contrib-htmlmin": "^1.4.0", - "grunt-contrib-imagemin": "^1.0.0", - "grunt-contrib-jasmine": "^1.0.3", - "grunt-contrib-jshint": "^1.0.0", - "grunt-contrib-uglify": "^1.0.1", - "grunt-contrib-watch": "^1.0.0", - "grunt-critical": "^0.2.1", - "grunt-newer": "^1.1.0", - "grunt-sass": "^1.1.0", - "grunt-svgmin": "^3.2.0", - "grunt-template": "^0.2.3", - "grunt-umd": "^2.3.1", - "grunt-usemin": "^3.1.1", - "handlebars-helpers": "^0.6.1", - "jasmine-jquery": "^2.1.1", - "jquery": "^3.0.0", - "jshint-stylish": "^2.2.0", - "load-grunt-config": "^0.19.2", - "lodash": "^4.13.1", - "seed-random": "^2.2.0", - "time-grunt": "^1.0.0" - }, - "engines": { - "node": ">=4.6.0" - }, "scripts": { - "start": "./node_modules/.bin/grunt", - "test": "./node_modules/.bin/grunt test", - "dev": "./node_modules/.bin/grunt dev", - "build": "./node_modules/.bin/grunt build", - "preview": "./node_modules/.bin/grunt preview", - "public": "./node_modules/.bin/grunt public" + "clear:package": "del ./package", + "clear": "del ./package ./dist ./coverage", + "prepublishOnly": "pnpm test && pnpm build && pnpm clear:package && clean-publish", + "postpublish": "pnpm clear:package", + "emitDeclarations": "tsc --project ./tsconfig.build.json --emitDeclarationOnly", + "build:styles": "./scripts/styles.cjs", + "build": "rollup -c & pnpm build:styles & pnpm emitDeclarations", + "start:storybook": "start-storybook -p 6006 --ci", + "build:storybook": "del ./storybook-static; NODE_ENV=production build-storybook", + "jest": "jest -c jest.config.json", + "test:size": "size-limit", + "test:unit": "jest -c jest.config.json ./src", + "test:storyshots": "jest -c jest.config.json ./test/storyshots.spec.js", + "test": "pnpm lint && pnpm test:unit", + "lint": "eslint './*.{js,ts,cjs}' 'test/**/*.{js,ts}' 'src/**/*.{js,ts}' '.storybook/**/*.{js,ts}' 'scripts/**/*.{js,ts,cjs}'", + "format": "prettier --write './*.{js,ts}' 'test/**/*.{js,ts}' 'src/**/*.{js,ts}' '.storybook/**/*.{js,ts}' 'scripts/**/*.{js,ts}'", + "commit": "cz", + "bumpVersion": "standard-version", + "createGithubRelease": "simple-github-release", + "release": "pnpm bumpVersion && git push origin master --tags && pnpm createGithubRelease", + "updateGitHooks": "simple-git-hooks" + }, + "devDependencies": { + "@babel/core": "^7.17.9", + "@babel/eslint-parser": "^7.17.0", + "@commitlint/cli": "^16.2.3", + "@commitlint/config-conventional": "^16.2.1", + "@commitlint/cz-commitlint": "^16.2.3", + "@rollup/plugin-node-resolve": "^13.2.0", + "@size-limit/preset-big-lib": "^7.0.8", + "@storybook/addon-actions": "^6.4.22", + "@storybook/addon-controls": "^6.4.22", + "@storybook/addon-docs": "^6.4.22", + "@storybook/addon-storyshots": "^6.4.22", + "@storybook/addon-storyshots-puppeteer": "^6.4.22", + "@storybook/addon-viewport": "^6.4.22", + "@storybook/html": "^6.4.22", + "@swc/core": "^1.2.165", + "@swc/helpers": "^0.3.8", + "@swc/jest": "^0.2.20", + "@testing-library/jest-dom": "^5.16.4", + "@types/faker": "^5.5.8", + "@types/jest": "^27.5.1", + "@types/node": "^17.0.34", + "@typescript-eslint/eslint-plugin": "^5.25.0", + "@typescript-eslint/parser": "^5.25.0", + "browserslist": "^4.20.2", + "chartist": "^0.11.4", + "clean-publish": "^4.0.1", + "commitizen": "^4.2.4", + "cssnano": "^4.1.11", + "del": "^6.0.0", + "del-cli": "^4.0.1", + "eslint": "^8.15.0", + "eslint-config-prettier": "^8.5.0", + "eslint-plugin-jest": "^26.2.2", + "eslint-plugin-jest-dom": "^4.0.1", + "eslint-plugin-prettier": "^4.0.0", + "eslint-plugin-testing-library": "^5.5.0", + "faker": "^5.5.3", + "http-server": "^14.1.0", + "inquirer": "^8.0.0", + "jest": "^27.5.1", + "jest-image-snapshot": "^4.5.1", + "nano-staged": "^0.8.0", + "postcss": "^7.0.39", + "postcss-preset-env": "^6.7.1", + "prettier": "^2.6.2", + "puppeteer": "^14.0.0", + "rollup": "^2.70.1", + "rollup-plugin-swc": "^0.2.1", + "rollup-plugin-terser": "^7.0.2", + "sass": "^1.50.1", + "sass-loader": "^10.0.0", + "simple-git-hooks": "^2.7.0", + "simple-github-release": "^1.0.0", + "size-limit": "^7.0.8", + "standard-version": "^9.5.0", + "swc-loader": "^0.2.3", + "typescript": "^4.6.4" }, - "config": { - "banner": "/* Chartist.js <%= pkg.version %>\n * Copyright Ā© <%= year %> Gion Kunz\n * Free to use under either the WTFPL license or the MIT license.\n * https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-WTFPL\n * https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-MIT\n */\n", - "src": "src", - "dist": "dist", - "site": "site", - "tmp": ".tmp", - "public": ".public", - "test": "test" - } + "readme": "" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 000000000..e8a0e9f8f --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,16666 @@ +lockfileVersion: 5.4 + +specifiers: + '@babel/core': ^7.17.9 + '@babel/eslint-parser': ^7.17.0 + '@commitlint/cli': ^16.2.3 + '@commitlint/config-conventional': ^16.2.1 + '@commitlint/cz-commitlint': ^16.2.3 + '@rollup/plugin-node-resolve': ^13.2.0 + '@size-limit/preset-big-lib': ^7.0.8 + '@storybook/addon-actions': ^6.4.22 + '@storybook/addon-controls': ^6.4.22 + '@storybook/addon-docs': ^6.4.22 + '@storybook/addon-storyshots': ^6.4.22 + '@storybook/addon-storyshots-puppeteer': ^6.4.22 + '@storybook/addon-viewport': ^6.4.22 + '@storybook/html': ^6.4.22 + '@swc/core': ^1.2.165 + '@swc/helpers': ^0.3.8 + '@swc/jest': ^0.2.20 + '@testing-library/jest-dom': ^5.16.4 + '@types/faker': ^5.5.8 + '@types/jest': ^27.5.1 + '@types/node': ^17.0.34 + '@typescript-eslint/eslint-plugin': ^5.25.0 + '@typescript-eslint/parser': ^5.25.0 + browserslist: ^4.20.2 + chartist: ^0.11.4 + clean-publish: ^4.0.1 + commitizen: ^4.2.4 + cssnano: ^4.1.11 + del: ^6.0.0 + del-cli: ^4.0.1 + eslint: ^8.15.0 + eslint-config-prettier: ^8.5.0 + eslint-plugin-jest: ^26.2.2 + eslint-plugin-jest-dom: ^4.0.1 + eslint-plugin-prettier: ^4.0.0 + eslint-plugin-testing-library: ^5.5.0 + faker: ^5.5.3 + http-server: ^14.1.0 + inquirer: ^8.0.0 + jest: ^27.5.1 + jest-image-snapshot: ^4.5.1 + nano-staged: ^0.8.0 + postcss: ^7.0.39 + postcss-preset-env: ^6.7.1 + prettier: ^2.6.2 + puppeteer: ^14.0.0 + rollup: ^2.70.1 + rollup-plugin-swc: ^0.2.1 + rollup-plugin-terser: ^7.0.2 + sass: ^1.50.1 + sass-loader: ^10.0.0 + simple-git-hooks: ^2.7.0 + simple-github-release: ^1.0.0 + size-limit: ^7.0.8 + standard-version: ^9.5.0 + swc-loader: ^0.2.3 + typescript: ^4.6.4 + +devDependencies: + '@babel/core': 7.17.9 + '@babel/eslint-parser': 7.17.0_c77tlxfiivugycutqmowoj57sm + '@commitlint/cli': 16.2.3_@swc+core@1.2.165 + '@commitlint/config-conventional': 16.2.1 + '@commitlint/cz-commitlint': 16.2.3_24ujsvcyijvjg2lpba4ekzlmaa + '@rollup/plugin-node-resolve': 13.2.0_rollup@2.70.1 + '@size-limit/preset-big-lib': 7.0.8_anc2lsjfxouyorrd4cu43bu4nm + '@storybook/addon-actions': 6.4.22 + '@storybook/addon-controls': 6.4.22_hcfsmds2fshutdssjqluwm76uu + '@storybook/addon-docs': 6.4.22_lvtg7nnzyr43hwih556es7ptka + '@storybook/addon-storyshots': 6.4.22_dd4i5mzpotzxf2zfmskcgyw5ia + '@storybook/addon-storyshots-puppeteer': 6.4.22_5zz26kkq7xnazxxhwflpw3gdw4 + '@storybook/addon-viewport': 6.4.22 + '@storybook/html': 6.4.22_tgvqbxx3i4v5lht4r2tvmykgia + '@swc/core': 1.2.165 + '@swc/helpers': 0.3.8 + '@swc/jest': 0.2.20_@swc+core@1.2.165 + '@testing-library/jest-dom': 5.16.4 + '@types/faker': 5.5.9 + '@types/jest': 27.5.1 + '@types/node': 17.0.34 + '@typescript-eslint/eslint-plugin': 5.25.0_qo2hgs5jt7x2a3p77h2rutcdae + '@typescript-eslint/parser': 5.25.0_hcfsmds2fshutdssjqluwm76uu + browserslist: 4.20.2 + chartist: 0.11.4 + clean-publish: 4.0.1 + commitizen: 4.2.4_@swc+core@1.2.165 + cssnano: 4.1.11 + del: 6.0.0 + del-cli: 4.0.1 + eslint: 8.15.0 + eslint-config-prettier: 8.5.0_eslint@8.15.0 + eslint-plugin-jest: 26.2.2_soqyufh3dfswswdcr6xqvc2ymm + eslint-plugin-jest-dom: 4.0.1_eslint@8.15.0 + eslint-plugin-prettier: 4.0.0_iqftbjqlxzn3ny5nablrkczhqi + eslint-plugin-testing-library: 5.5.0_hcfsmds2fshutdssjqluwm76uu + faker: 5.5.3 + http-server: 14.1.0 + inquirer: 8.2.2 + jest: 27.5.1 + jest-image-snapshot: 4.5.1_jest@27.5.1 + nano-staged: 0.8.0 + postcss: 7.0.39 + postcss-preset-env: 6.7.1 + prettier: 2.6.2 + puppeteer: 14.0.0 + rollup: 2.70.1 + rollup-plugin-swc: 0.2.1_se5dfsysqsuwchop2hfe5dxcvm + rollup-plugin-terser: 7.0.2_rollup@2.70.1 + sass: 1.50.1 + sass-loader: 10.2.1_sass@1.50.1 + simple-git-hooks: 2.7.0 + simple-github-release: 1.0.0 + size-limit: 7.0.8 + standard-version: 9.5.0 + swc-loader: 0.2.3_@swc+core@1.2.165 + typescript: 4.6.4 + +packages: + + /@ampproject/remapping/2.1.2: + resolution: {integrity: sha512-hoyByceqwKirw7w3Z7gnIIZC3Wx3J484Y3L/cMpXFbr7d9ZQj2mODrirNzcJa+SM3UlpWXYvKV4RlRpFXlWgXg==} + engines: {node: '>=6.0.0'} + dependencies: + '@jridgewell/trace-mapping': 0.3.4 + dev: true + + /@axe-core/puppeteer/4.4.2_puppeteer@14.0.0: + resolution: {integrity: sha512-HsiXUALjQ5fcWZZgGUvYGr/b7qvWbQXeDuW2z+2YYOJsavlPV9z0IGdm4rmX0lmsdJ9usA5vq5LNLiz23ZyXmw==} + engines: {node: '>=6.4.0'} + peerDependencies: + puppeteer: '>=1.10.0 <= 13' + dependencies: + axe-core: 4.4.2 + puppeteer: 14.0.0 + dev: true + + /@babel/code-frame/7.16.7: + resolution: {integrity: sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/highlight': 7.17.9 + dev: true + + /@babel/compat-data/7.17.7: + resolution: {integrity: sha512-p8pdE6j0a29TNGebNm7NzYZWB3xVZJBZ7XGs42uAKzQo8VQ3F0By/cQCtUEABwIqw5zo6WA4NbmxsfzADzMKnQ==} + engines: {node: '>=6.9.0'} + dev: true + + /@babel/core/7.12.9: + resolution: {integrity: sha512-gTXYh3M5wb7FRXQy+FErKFAv90BnlOuNn1QkCK2lREoPAjrQCO49+HVSrFoe5uakFAF5eenS75KbO2vQiLrTMQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': 7.16.7 + '@babel/generator': 7.17.9 + '@babel/helper-module-transforms': 7.17.7 + '@babel/helpers': 7.17.9 + '@babel/parser': 7.17.9 + '@babel/template': 7.16.7 + '@babel/traverse': 7.17.9 + '@babel/types': 7.17.0 + convert-source-map: 1.8.0 + debug: 4.3.4 + gensync: 1.0.0-beta.2 + json5: 2.2.1 + lodash: 4.17.21 + resolve: 1.22.0 + semver: 5.7.1 + source-map: 0.5.7 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/core/7.17.9: + resolution: {integrity: sha512-5ug+SfZCpDAkVp9SFIZAzlW18rlzsOcJGaetCjkySnrXXDUw9AR8cDUm1iByTmdWM6yxX6/zycaV76w3YTF2gw==} + engines: {node: '>=6.9.0'} + dependencies: + '@ampproject/remapping': 2.1.2 + '@babel/code-frame': 7.16.7 + '@babel/generator': 7.17.9 + '@babel/helper-compilation-targets': 7.17.7_@babel+core@7.17.9 + '@babel/helper-module-transforms': 7.17.7 + '@babel/helpers': 7.17.9 + '@babel/parser': 7.17.9 + '@babel/template': 7.16.7 + '@babel/traverse': 7.17.9 + '@babel/types': 7.17.0 + convert-source-map: 1.8.0 + debug: 4.3.4 + gensync: 1.0.0-beta.2 + json5: 2.2.1 + semver: 6.3.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/eslint-parser/7.17.0_c77tlxfiivugycutqmowoj57sm: + resolution: {integrity: sha512-PUEJ7ZBXbRkbq3qqM/jZ2nIuakUBqCYc7Qf52Lj7dlZ6zERnqisdHioL0l4wwQZnmskMeasqUNzLBFKs3nylXA==} + engines: {node: ^10.13.0 || ^12.13.0 || >=14.0.0} + peerDependencies: + '@babel/core': '>=7.11.0' + eslint: ^7.5.0 || ^8.0.0 + dependencies: + '@babel/core': 7.17.9 + eslint: 8.15.0 + eslint-scope: 5.1.1 + eslint-visitor-keys: 2.1.0 + semver: 6.3.0 + dev: true + + /@babel/generator/7.17.9: + resolution: {integrity: sha512-rAdDousTwxbIxbz5I7GEQ3lUip+xVCXooZNbsydCWs3xA7ZsYOv+CFRdzGxRX78BmQHu9B1Eso59AOZQOJDEdQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.17.0 + jsesc: 2.5.2 + source-map: 0.5.7 + dev: true + + /@babel/helper-annotate-as-pure/7.16.7: + resolution: {integrity: sha512-s6t2w/IPQVTAET1HitoowRGXooX8mCgtuP5195wD/QJPV6wYjpujCGF7JuMODVX2ZAJOf1GT6DT9MHEZvLOFSw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.17.0 + dev: true + + /@babel/helper-builder-binary-assignment-operator-visitor/7.16.7: + resolution: {integrity: sha512-C6FdbRaxYjwVu/geKW4ZeQ0Q31AftgRcdSnZ5/jsH6BzCJbtvXvhpfkbkThYSuutZA7nCXpPR6AD9zd1dprMkA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-explode-assignable-expression': 7.16.7 + '@babel/types': 7.17.0 + dev: true + + /@babel/helper-compilation-targets/7.17.7_@babel+core@7.17.9: + resolution: {integrity: sha512-UFzlz2jjd8kroj0hmCFV5zr+tQPi1dpC2cRsDV/3IEW8bJfCPrPpmcSN6ZS8RqIq4LXcmpipCQFPddyFA5Yc7w==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/compat-data': 7.17.7 + '@babel/core': 7.17.9 + '@babel/helper-validator-option': 7.16.7 + browserslist: 4.20.2 + semver: 6.3.0 + dev: true + + /@babel/helper-create-class-features-plugin/7.17.9_@babel+core@7.17.9: + resolution: {integrity: sha512-kUjip3gruz6AJKOq5i3nC6CoCEEF/oHH3cp6tOZhB+IyyyPyW0g1Gfsxn3mkk6S08pIA2y8GQh609v9G/5sHVQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-annotate-as-pure': 7.16.7 + '@babel/helper-environment-visitor': 7.16.7 + '@babel/helper-function-name': 7.17.9 + '@babel/helper-member-expression-to-functions': 7.17.7 + '@babel/helper-optimise-call-expression': 7.16.7 + '@babel/helper-replace-supers': 7.16.7 + '@babel/helper-split-export-declaration': 7.16.7 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/helper-create-regexp-features-plugin/7.17.0_@babel+core@7.17.9: + resolution: {integrity: sha512-awO2So99wG6KnlE+TPs6rn83gCz5WlEePJDTnLEqbchMVrBeAujURVphRdigsk094VhvZehFoNOihSlcBjwsXA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-annotate-as-pure': 7.16.7 + regexpu-core: 5.0.1 + dev: true + + /@babel/helper-define-polyfill-provider/0.1.5_@babel+core@7.17.9: + resolution: {integrity: sha512-nXuzCSwlJ/WKr8qxzW816gwyT6VZgiJG17zR40fou70yfAcqjoNyTLl/DQ+FExw5Hx5KNqshmN8Ldl/r2N7cTg==} + peerDependencies: + '@babel/core': ^7.4.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-compilation-targets': 7.17.7_@babel+core@7.17.9 + '@babel/helper-module-imports': 7.16.7 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/traverse': 7.17.9 + debug: 4.3.4 + lodash.debounce: 4.0.8 + resolve: 1.22.0 + semver: 6.3.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/helper-define-polyfill-provider/0.3.1_@babel+core@7.17.9: + resolution: {integrity: sha512-J9hGMpJQmtWmj46B3kBHmL38UhJGhYX7eqkcq+2gsstyYt341HmPeWspihX43yVRA0mS+8GGk2Gckc7bY/HCmA==} + peerDependencies: + '@babel/core': ^7.4.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-compilation-targets': 7.17.7_@babel+core@7.17.9 + '@babel/helper-module-imports': 7.16.7 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/traverse': 7.17.9 + debug: 4.3.4 + lodash.debounce: 4.0.8 + resolve: 1.22.0 + semver: 6.3.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/helper-environment-visitor/7.16.7: + resolution: {integrity: sha512-SLLb0AAn6PkUeAfKJCCOl9e1R53pQlGAfc4y4XuMRZfqeMYLE0dM1LMhqbGAlGQY0lfw5/ohoYWAe9V1yibRag==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.17.0 + dev: true + + /@babel/helper-explode-assignable-expression/7.16.7: + resolution: {integrity: sha512-KyUenhWMC8VrxzkGP0Jizjo4/Zx+1nNZhgocs+gLzyZyB8SHidhoq9KK/8Ato4anhwsivfkBLftky7gvzbZMtQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.17.0 + dev: true + + /@babel/helper-function-name/7.17.9: + resolution: {integrity: sha512-7cRisGlVtiVqZ0MW0/yFB4atgpGLWEHUVYnb448hZK4x+vih0YO5UoS11XIYtZYqHd0dIPMdUSv8q5K4LdMnIg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/template': 7.16.7 + '@babel/types': 7.17.0 + dev: true + + /@babel/helper-hoist-variables/7.16.7: + resolution: {integrity: sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.17.0 + dev: true + + /@babel/helper-member-expression-to-functions/7.17.7: + resolution: {integrity: sha512-thxXgnQ8qQ11W2wVUObIqDL4p148VMxkt5T/qpN5k2fboRyzFGFmKsTGViquyM5QHKUy48OZoca8kw4ajaDPyw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.17.0 + dev: true + + /@babel/helper-module-imports/7.16.7: + resolution: {integrity: sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.17.0 + dev: true + + /@babel/helper-module-transforms/7.17.7: + resolution: {integrity: sha512-VmZD99F3gNTYB7fJRDTi+u6l/zxY0BE6OIxPSU7a50s6ZUQkHwSDmV92FfM+oCG0pZRVojGYhkR8I0OGeCVREw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-environment-visitor': 7.16.7 + '@babel/helper-module-imports': 7.16.7 + '@babel/helper-simple-access': 7.17.7 + '@babel/helper-split-export-declaration': 7.16.7 + '@babel/helper-validator-identifier': 7.16.7 + '@babel/template': 7.16.7 + '@babel/traverse': 7.17.9 + '@babel/types': 7.17.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/helper-optimise-call-expression/7.16.7: + resolution: {integrity: sha512-EtgBhg7rd/JcnpZFXpBy0ze1YRfdm7BnBX4uKMBd3ixa3RGAE002JZB66FJyNH7g0F38U05pXmA5P8cBh7z+1w==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.17.0 + dev: true + + /@babel/helper-plugin-utils/7.10.4: + resolution: {integrity: sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==} + dev: true + + /@babel/helper-plugin-utils/7.16.7: + resolution: {integrity: sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA==} + engines: {node: '>=6.9.0'} + dev: true + + /@babel/helper-remap-async-to-generator/7.16.8: + resolution: {integrity: sha512-fm0gH7Flb8H51LqJHy3HJ3wnE1+qtYR2A99K06ahwrawLdOFsCEWjZOrYricXJHoPSudNKxrMBUPEIPxiIIvBw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-annotate-as-pure': 7.16.7 + '@babel/helper-wrap-function': 7.16.8 + '@babel/types': 7.17.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/helper-replace-supers/7.16.7: + resolution: {integrity: sha512-y9vsWilTNaVnVh6xiJfABzsNpgDPKev9HnAgz6Gb1p6UUwf9NepdlsV7VXGCftJM+jqD5f7JIEubcpLjZj5dBw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-environment-visitor': 7.16.7 + '@babel/helper-member-expression-to-functions': 7.17.7 + '@babel/helper-optimise-call-expression': 7.16.7 + '@babel/traverse': 7.17.9 + '@babel/types': 7.17.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/helper-simple-access/7.17.7: + resolution: {integrity: sha512-txyMCGroZ96i+Pxr3Je3lzEJjqwaRC9buMUgtomcrLe5Nd0+fk1h0LLA+ixUF5OW7AhHuQ7Es1WcQJZmZsz2XA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.17.0 + dev: true + + /@babel/helper-skip-transparent-expression-wrappers/7.16.0: + resolution: {integrity: sha512-+il1gTy0oHwUsBQZyJvukbB4vPMdcYBrFHa0Uc4AizLxbq6BOYC51Rv4tWocX9BLBDLZ4kc6qUFpQ6HRgL+3zw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.17.0 + dev: true + + /@babel/helper-split-export-declaration/7.16.7: + resolution: {integrity: sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.17.0 + dev: true + + /@babel/helper-validator-identifier/7.16.7: + resolution: {integrity: sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==} + engines: {node: '>=6.9.0'} + dev: true + + /@babel/helper-validator-option/7.16.7: + resolution: {integrity: sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ==} + engines: {node: '>=6.9.0'} + dev: true + + /@babel/helper-wrap-function/7.16.8: + resolution: {integrity: sha512-8RpyRVIAW1RcDDGTA+GpPAwV22wXCfKOoM9bet6TLkGIFTkRQSkH1nMQ5Yet4MpoXe1ZwHPVtNasc2w0uZMqnw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-function-name': 7.17.9 + '@babel/template': 7.16.7 + '@babel/traverse': 7.17.9 + '@babel/types': 7.17.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/helpers/7.17.9: + resolution: {integrity: sha512-cPCt915ShDWUEzEp3+UNRktO2n6v49l5RSnG9M5pS24hA+2FAc5si+Pn1i4VVbQQ+jh+bIZhPFQOJOzbrOYY1Q==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/template': 7.16.7 + '@babel/traverse': 7.17.9 + '@babel/types': 7.17.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/highlight/7.17.9: + resolution: {integrity: sha512-J9PfEKCbFIv2X5bjTMiZu6Vf341N05QIY+d6FvVKynkG1S7G0j3I0QoRtWIrXhZ+/Nlb5Q0MzqL7TokEJ5BNHg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-validator-identifier': 7.16.7 + chalk: 2.4.2 + js-tokens: 4.0.0 + dev: true + + /@babel/parser/7.17.9: + resolution: {integrity: sha512-vqUSBLP8dQHFPdPi9bc5GK9vRkYHJ49fsZdtoJ8EQ8ibpwk5rPKfvNIwChB0KVXcIjcepEBBd2VHC5r9Gy8ueg==} + engines: {node: '>=6.0.0'} + hasBin: true + dependencies: + '@babel/types': 7.17.0 + dev: true + + /@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-anv/DObl7waiGEnC24O9zqL0pSuI9hljihqiDuFHC8d7/bjr/4RLGPWuc8rYOff/QPzbEPSkzG8wGG9aDuhHRg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-di8vUHRdf+4aJ7ltXhaDbPoszdkh59AQtJM5soLsuHpQJdFQZOA4uGj0V2u/CZ8bJ/u8ULDL5yq6FO/bCXnKHw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.13.0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/helper-skip-transparent-expression-wrappers': 7.16.0 + '@babel/plugin-proposal-optional-chaining': 7.16.7_@babel+core@7.17.9 + dev: true + + /@babel/plugin-proposal-async-generator-functions/7.16.8_@babel+core@7.17.9: + resolution: {integrity: sha512-71YHIvMuiuqWJQkebWJtdhQTfd4Q4mF76q2IX37uZPkG9+olBxsX+rH1vkhFto4UeJZ9dPY2s+mDvhDm1u2BGQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/helper-remap-async-to-generator': 7.16.8 + '@babel/plugin-syntax-async-generators': 7.8.4_@babel+core@7.17.9 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-proposal-class-properties/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-IobU0Xme31ewjYOShSIqd/ZGM/r/cuOz2z0MDbNrhF5FW+ZVgi0f2lyeoj9KFPDOAqsYxmLWZte1WOwlvY9aww==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-create-class-features-plugin': 7.17.9_@babel+core@7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-proposal-class-static-block/7.17.6_@babel+core@7.17.9: + resolution: {integrity: sha512-X/tididvL2zbs7jZCeeRJ8167U/+Ac135AM6jCAx6gYXDUviZV5Ku9UDvWS2NCuWlFjIRXklYhwo6HhAC7ETnA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.12.0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-create-class-features-plugin': 7.17.9_@babel+core@7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/plugin-syntax-class-static-block': 7.14.5_@babel+core@7.17.9 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-proposal-decorators/7.17.9_@babel+core@7.17.9: + resolution: {integrity: sha512-EfH2LZ/vPa2wuPwJ26j+kYRkaubf89UlwxKXtxqEm57HrgSEYDB8t4swFP+p8LcI9yiP9ZRJJjo/58hS6BnaDA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-create-class-features-plugin': 7.17.9_@babel+core@7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/helper-replace-supers': 7.16.7 + '@babel/helper-split-export-declaration': 7.16.7 + '@babel/plugin-syntax-decorators': 7.17.0_@babel+core@7.17.9 + charcodes: 0.2.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-proposal-dynamic-import/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-I8SW9Ho3/8DRSdmDdH3gORdyUuYnk1m4cMxUAdu5oy4n3OfN8flDEH+d60iG7dUfi0KkYwSvoalHzzdRzpWHTg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/plugin-syntax-dynamic-import': 7.8.3_@babel+core@7.17.9 + dev: true + + /@babel/plugin-proposal-export-default-from/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-+cENpW1rgIjExn+o5c8Jw/4BuH4eGKKYvkMB8/0ZxFQ9mC0t4z09VsPIwNg6waF69QYC81zxGeAsREGuqQoKeg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/plugin-syntax-export-default-from': 7.16.7_@babel+core@7.17.9 + dev: true + + /@babel/plugin-proposal-export-namespace-from/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-ZxdtqDXLRGBL64ocZcs7ovt71L3jhC1RGSyR996svrCi3PYqHNkb3SwPJCs8RIzD86s+WPpt2S73+EHCGO+NUA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/plugin-syntax-export-namespace-from': 7.8.3_@babel+core@7.17.9 + dev: true + + /@babel/plugin-proposal-json-strings/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-lNZ3EEggsGY78JavgbHsK9u5P3pQaW7k4axlgFLYkMd7UBsiNahCITShLjNQschPyjtO6dADrL24757IdhBrsQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/plugin-syntax-json-strings': 7.8.3_@babel+core@7.17.9 + dev: true + + /@babel/plugin-proposal-logical-assignment-operators/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-K3XzyZJGQCr00+EtYtrDjmwX7o7PLK6U9bi1nCwkQioRFVUv6dJoxbQjtWVtP+bCPy82bONBKG8NPyQ4+i6yjg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4_@babel+core@7.17.9 + dev: true + + /@babel/plugin-proposal-nullish-coalescing-operator/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-aUOrYU3EVtjf62jQrCj63pYZ7k6vns2h/DQvHPWGmsJRYzWXZ6/AsfgpiRy6XiuIDADhJzP2Q9MwSMKauBQ+UQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3_@babel+core@7.17.9 + dev: true + + /@babel/plugin-proposal-numeric-separator/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-vQgPMknOIgiuVqbokToyXbkY/OmmjAzr/0lhSIbG/KmnzXPGwW/AdhdKpi+O4X/VkWiWjnkKOBiqJrTaC98VKw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/plugin-syntax-numeric-separator': 7.10.4_@babel+core@7.17.9 + dev: true + + /@babel/plugin-proposal-object-rest-spread/7.12.1_@babel+core@7.12.9: + resolution: {integrity: sha512-s6SowJIjzlhx8o7lsFx5zmY4At6CTtDvgNQDdPzkBQucle58A6b/TTeEBYtyDgmcXjUTM+vE8YOGHZzzbc/ioA==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.12.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/plugin-syntax-object-rest-spread': 7.8.3_@babel+core@7.12.9 + '@babel/plugin-transform-parameters': 7.16.7_@babel+core@7.12.9 + dev: true + + /@babel/plugin-proposal-object-rest-spread/7.17.3_@babel+core@7.17.9: + resolution: {integrity: sha512-yuL5iQA/TbZn+RGAfxQXfi7CNLmKi1f8zInn4IgobuCWcAb7i+zj4TYzQ9l8cEzVyJ89PDGuqxK1xZpUDISesw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/compat-data': 7.17.7 + '@babel/core': 7.17.9 + '@babel/helper-compilation-targets': 7.17.7_@babel+core@7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/plugin-syntax-object-rest-spread': 7.8.3_@babel+core@7.17.9 + '@babel/plugin-transform-parameters': 7.16.7_@babel+core@7.17.9 + dev: true + + /@babel/plugin-proposal-optional-catch-binding/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-eMOH/L4OvWSZAE1VkHbr1vckLG1WUcHGJSLqqQwl2GaUqG6QjddvrOaTUMNYiv77H5IKPMZ9U9P7EaHwvAShfA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/plugin-syntax-optional-catch-binding': 7.8.3_@babel+core@7.17.9 + dev: true + + /@babel/plugin-proposal-optional-chaining/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-eC3xy+ZrUcBtP7x+sq62Q/HYd674pPTb/77XZMb5wbDPGWIdUbSr4Agr052+zaUPSb+gGRnjxXfKFvx5iMJ+DA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/helper-skip-transparent-expression-wrappers': 7.16.0 + '@babel/plugin-syntax-optional-chaining': 7.8.3_@babel+core@7.17.9 + dev: true + + /@babel/plugin-proposal-private-methods/7.16.11_@babel+core@7.17.9: + resolution: {integrity: sha512-F/2uAkPlXDr8+BHpZvo19w3hLFKge+k75XUprE6jaqKxjGkSYcK+4c+bup5PdW/7W/Rpjwql7FTVEDW+fRAQsw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-create-class-features-plugin': 7.17.9_@babel+core@7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-proposal-private-property-in-object/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-rMQkjcOFbm+ufe3bTZLyOfsOUOxyvLXZJCTARhJr+8UMSoZmqTe1K1BgkFcrW37rAchWg57yI69ORxiWvUINuQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-annotate-as-pure': 7.16.7 + '@babel/helper-create-class-features-plugin': 7.17.9_@babel+core@7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/plugin-syntax-private-property-in-object': 7.14.5_@babel+core@7.17.9 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-proposal-unicode-property-regex/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-QRK0YI/40VLhNVGIjRNAAQkEHws0cswSdFFjpFyt943YmJIU1da9uW63Iu6NFV6CxTZW5eTDCrwZUstBWgp/Rg==} + engines: {node: '>=4'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-create-regexp-features-plugin': 7.17.0_@babel+core@7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-syntax-async-generators/7.8.4_@babel+core@7.17.9: + resolution: {integrity: sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-syntax-bigint/7.8.3_@babel+core@7.17.9: + resolution: {integrity: sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-syntax-class-properties/7.12.13_@babel+core@7.17.9: + resolution: {integrity: sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-syntax-class-static-block/7.14.5_@babel+core@7.17.9: + resolution: {integrity: sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-syntax-decorators/7.17.0_@babel+core@7.17.9: + resolution: {integrity: sha512-qWe85yCXsvDEluNP0OyeQjH63DlhAR3W7K9BxxU1MvbDb48tgBG+Ao6IJJ6smPDrrVzSQZrbF6donpkFBMcs3A==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-syntax-dynamic-import/7.8.3_@babel+core@7.17.9: + resolution: {integrity: sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-syntax-export-default-from/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-4C3E4NsrLOgftKaTYTULhHsuQrGv3FHrBzOMDiS7UYKIpgGBkAdawg4h+EI8zPeK9M0fiIIh72hIwsI24K7MbA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-syntax-export-namespace-from/7.8.3_@babel+core@7.17.9: + resolution: {integrity: sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-syntax-import-meta/7.10.4_@babel+core@7.17.9: + resolution: {integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-syntax-json-strings/7.8.3_@babel+core@7.17.9: + resolution: {integrity: sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-syntax-jsx/7.12.1_@babel+core@7.12.9: + resolution: {integrity: sha512-1yRi7yAtB0ETgxdY9ti/p2TivUxJkTdhu/ZbF9MshVGqOx1TdB3b7xCXs49Fupgg50N45KcAsRP/ZqWjs9SRjg==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.12.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-syntax-jsx/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-Esxmk7YjA8QysKeT3VhTXvF6y77f/a91SIs4pWb4H2eWGQkCKFgQaG6hdoEVZtGsrAcb2K5BW66XsOErD4WU3Q==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-syntax-logical-assignment-operators/7.10.4_@babel+core@7.17.9: + resolution: {integrity: sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-syntax-nullish-coalescing-operator/7.8.3_@babel+core@7.17.9: + resolution: {integrity: sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-syntax-numeric-separator/7.10.4_@babel+core@7.17.9: + resolution: {integrity: sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-syntax-object-rest-spread/7.8.3_@babel+core@7.12.9: + resolution: {integrity: sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.12.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-syntax-object-rest-spread/7.8.3_@babel+core@7.17.9: + resolution: {integrity: sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-syntax-optional-catch-binding/7.8.3_@babel+core@7.17.9: + resolution: {integrity: sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-syntax-optional-chaining/7.8.3_@babel+core@7.17.9: + resolution: {integrity: sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-syntax-private-property-in-object/7.14.5_@babel+core@7.17.9: + resolution: {integrity: sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-syntax-top-level-await/7.14.5_@babel+core@7.17.9: + resolution: {integrity: sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-syntax-typescript/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-YhUIJHHGkqPgEcMYkPCKTyGUdoGKWtopIycQyjJH8OjvRgOYsXsaKehLVPScKJWAULPxMa4N1vCe6szREFlZ7A==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-arrow-functions/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-9ffkFFMbvzTvv+7dTp/66xvZAWASuPD5Tl9LK3Z9vhOmANo6j94rik+5YMBt4CwHVMWLWpMsriIc2zsa3WW3xQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-async-to-generator/7.16.8_@babel+core@7.17.9: + resolution: {integrity: sha512-MtmUmTJQHCnyJVrScNzNlofQJ3dLFuobYn3mwOTKHnSCMtbNsqvF71GQmJfFjdrXSsAA7iysFmYWw4bXZ20hOg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-module-imports': 7.16.7 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/helper-remap-async-to-generator': 7.16.8 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-block-scoped-functions/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-JUuzlzmF40Z9cXyytcbZEZKckgrQzChbQJw/5PuEHYeqzCsvebDx0K0jWnIIVcmmDOAVctCgnYs0pMcrYj2zJg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-block-scoping/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-ObZev2nxVAYA4bhyusELdo9hb3H+A56bxH3FZMbEImZFiEDYVHXQSJ1hQKFlDnlt8G9bBrCZ5ZpURZUrV4G5qQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-classes/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-WY7og38SFAGYRe64BrjKf8OrE6ulEHtr5jEYaZMwox9KebgqPi67Zqz8K53EKk1fFEJgm96r32rkKZ3qA2nCWQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-annotate-as-pure': 7.16.7 + '@babel/helper-environment-visitor': 7.16.7 + '@babel/helper-function-name': 7.17.9 + '@babel/helper-optimise-call-expression': 7.16.7 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/helper-replace-supers': 7.16.7 + '@babel/helper-split-export-declaration': 7.16.7 + globals: 11.12.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-computed-properties/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-gN72G9bcmenVILj//sv1zLNaPyYcOzUho2lIJBMh/iakJ9ygCo/hEF9cpGb61SCMEDxbbyBoVQxrt+bWKu5KGw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-destructuring/7.17.7_@babel+core@7.17.9: + resolution: {integrity: sha512-XVh0r5yq9sLR4vZ6eVZe8FKfIcSgaTBxVBRSYokRj2qksf6QerYnTxz9/GTuKTH/n/HwLP7t6gtlybHetJ/6hQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-dotall-regex/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-Lyttaao2SjZF6Pf4vk1dVKv8YypMpomAbygW+mU5cYP3S5cWTfCJjG8xV6CFdzGFlfWK81IjL9viiTvpb6G7gQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-create-regexp-features-plugin': 7.17.0_@babel+core@7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-duplicate-keys/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-03DvpbRfvWIXyK0/6QiR1KMTWeT6OcQ7tbhjrXyFS02kjuX/mu5Bvnh5SDSWHxyawit2g5aWhKwI86EE7GUnTw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-exponentiation-operator/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-8UYLSlyLgRixQvlYH3J2ekXFHDFLQutdy7FfFAMm3CPZ6q9wHCwnUyiXpQCe3gVVnQlHc5nsuiEVziteRNTXEA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-builder-binary-assignment-operator-visitor': 7.16.7 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-for-of/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-/QZm9W92Ptpw7sjI9Nx1mbcsWz33+l8kuMIQnDwgQBG5s3fAfQvkRjQ7NqXhtNcKOnPkdICmUHyCaWW06HCsqg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-function-name/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-SU/C68YVwTRxqWj5kgsbKINakGag0KTgq9f2iZEXdStoAbOzLHEBRYzImmA6yFo8YZhJVflvXmIHUO7GWHmxxA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-compilation-targets': 7.17.7_@babel+core@7.17.9 + '@babel/helper-function-name': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-literals/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-6tH8RTpTWI0s2sV6uq3e/C9wPo4PTqqZps4uF0kzQ9/xPLFQtipynvmT1g/dOfEJ+0EQsHhkQ/zyRId8J2b8zQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-member-expression-literals/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-mBruRMbktKQwbxaJof32LT9KLy2f3gH+27a5XSuXo6h7R3vqltl0PgZ80C8ZMKw98Bf8bqt6BEVi3svOh2PzMw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-modules-amd/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-KaaEtgBL7FKYwjJ/teH63oAmE3lP34N3kshz8mm4VMAw7U3PxjVwwUmxEFksbgsNUaO3wId9R2AVQYSEGRa2+g==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-module-transforms': 7.17.7 + '@babel/helper-plugin-utils': 7.16.7 + babel-plugin-dynamic-import-node: 2.3.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-modules-commonjs/7.17.9_@babel+core@7.17.9: + resolution: {integrity: sha512-2TBFd/r2I6VlYn0YRTz2JdazS+FoUuQ2rIFHoAxtyP/0G3D82SBLaRq9rnUkpqlLg03Byfl/+M32mpxjO6KaPw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-module-transforms': 7.17.7 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/helper-simple-access': 7.17.7 + babel-plugin-dynamic-import-node: 2.3.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-modules-systemjs/7.17.8_@babel+core@7.17.9: + resolution: {integrity: sha512-39reIkMTUVagzgA5x88zDYXPCMT6lcaRKs1+S9K6NKBPErbgO/w/kP8GlNQTC87b412ZTlmNgr3k2JrWgHH+Bw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-hoist-variables': 7.16.7 + '@babel/helper-module-transforms': 7.17.7 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/helper-validator-identifier': 7.16.7 + babel-plugin-dynamic-import-node: 2.3.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-modules-umd/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-EMh7uolsC8O4xhudF2F6wedbSHm1HHZ0C6aJ7K67zcDNidMzVcxWdGr+htW9n21klm+bOn+Rx4CBsAntZd3rEQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-module-transforms': 7.17.7 + '@babel/helper-plugin-utils': 7.16.7 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-named-capturing-groups-regex/7.16.8_@babel+core@7.17.9: + resolution: {integrity: sha512-j3Jw+n5PvpmhRR+mrgIh04puSANCk/T/UA3m3P1MjJkhlK906+ApHhDIqBQDdOgL/r1UYpz4GNclTXxyZrYGSw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-create-regexp-features-plugin': 7.17.0_@babel+core@7.17.9 + dev: true + + /@babel/plugin-transform-new-target/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-xiLDzWNMfKoGOpc6t3U+etCE2yRnn3SM09BXqWPIZOBpL2gvVrBWUKnsJx0K/ADi5F5YC5f8APFfWrz25TdlGg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-object-super/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-14J1feiQVWaGvRxj2WjyMuXS2jsBkgB3MdSN5HuC2G5nRspa5RK9COcs82Pwy5BuGcjb+fYaUj94mYcOj7rCvw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/helper-replace-supers': 7.16.7 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-parameters/7.16.7_@babel+core@7.12.9: + resolution: {integrity: sha512-AT3MufQ7zZEhU2hwOA11axBnExW0Lszu4RL/tAlUJBuNoRak+wehQW8h6KcXOcgjY42fHtDxswuMhMjFEuv/aw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.12.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-parameters/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-AT3MufQ7zZEhU2hwOA11axBnExW0Lszu4RL/tAlUJBuNoRak+wehQW8h6KcXOcgjY42fHtDxswuMhMjFEuv/aw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-property-literals/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-z4FGr9NMGdoIl1RqavCqGG+ZuYjfZ/hkCIeuH6Do7tXmSm0ls11nYVSJqFEUOSJbDab5wC6lRE/w6YjVcr6Hqw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-react-display-name/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-qgIg8BcZgd0G/Cz916D5+9kqX0c7nPZyXaP8R2tLNN5tkyIZdG5fEwBrxwplzSnjC1jvQmyMNVwUCZPcbGY7Pg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-react-jsx-development/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-RMvQWvpla+xy6MlBpPlrKZCMRs2AGiHOGHY3xRwl0pEeim348dDyxeH4xBsMPbIMhujeq7ihE702eM2Ew0Wo+A==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/plugin-transform-react-jsx': 7.17.3_@babel+core@7.17.9 + dev: true + + /@babel/plugin-transform-react-jsx/7.17.3_@babel+core@7.17.9: + resolution: {integrity: sha512-9tjBm4O07f7mzKSIlEmPdiE6ub7kfIe6Cd+w+oQebpATfTQMAgW+YOuWxogbKVTulA+MEO7byMeIUtQ1z+z+ZQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-annotate-as-pure': 7.16.7 + '@babel/helper-module-imports': 7.16.7 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/plugin-syntax-jsx': 7.16.7_@babel+core@7.17.9 + '@babel/types': 7.17.0 + dev: true + + /@babel/plugin-transform-react-pure-annotations/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-hs71ToC97k3QWxswh2ElzMFABXHvGiJ01IB1TbYQDGeWRKWz/MPUTh5jGExdHvosYKpnJW5Pm3S4+TA3FyX+GA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-annotate-as-pure': 7.16.7 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-regenerator/7.17.9_@babel+core@7.17.9: + resolution: {integrity: sha512-Lc2TfbxR1HOyn/c6b4Y/b6NHoTb67n/IoWLxTu4kC7h4KQnWlhCq2S8Tx0t2SVvv5Uu87Hs+6JEJ5kt2tYGylQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + regenerator-transform: 0.15.0 + dev: true + + /@babel/plugin-transform-reserved-words/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-KQzzDnZ9hWQBjwi5lpY5v9shmm6IVG0U9pB18zvMu2i4H90xpT4gmqwPYsn8rObiadYe2M0gmgsiOIF5A/2rtg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-shorthand-properties/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-hah2+FEnoRoATdIb05IOXf+4GzXYTq75TVhIn1PewihbpyrNWUt2JbudKQOETWw6QpLe+AIUpJ5MVLYTQbeeUg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-spread/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-+pjJpgAngb53L0iaA5gU/1MLXJIfXcYepLgXB3esVRf4fqmj8f2cxM3/FKaHsZms08hFQJkFccEWuIpm429TXg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/helper-skip-transparent-expression-wrappers': 7.16.0 + dev: true + + /@babel/plugin-transform-sticky-regex/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-NJa0Bd/87QV5NZZzTuZG5BPJjLYadeSZ9fO6oOUoL4iQx+9EEuw/eEM92SrsT19Yc2jgB1u1hsjqDtH02c3Drw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-template-literals/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-VwbkDDUeenlIjmfNeDX/V0aWrQH2QiVyJtwymVQSzItFDTpxfyJh3EVaQiS0rIN/CqbLGr0VcGmuwyTdZtdIsA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-typeof-symbol/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-p2rOixCKRJzpg9JB4gjnG4gjWkWa89ZoYUnl9snJ1cWIcTH/hvxZqfO+WjG6T8DRBpctEol5jw1O5rA8gkCokQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-typescript/7.16.8_@babel+core@7.17.9: + resolution: {integrity: sha512-bHdQ9k7YpBDO2d0NVfkj51DpQcvwIzIusJ7mEUaMlbZq3Kt/U47j24inXZHQ5MDiYpCs+oZiwnXyKedE8+q7AQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-create-class-features-plugin': 7.17.9_@babel+core@7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/plugin-syntax-typescript': 7.16.7_@babel+core@7.17.9 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-unicode-escapes/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-TAV5IGahIz3yZ9/Hfv35TV2xEm+kaBDaZQCn2S/hG9/CZ0DktxJv9eKfPc7yYCvOYR4JGx1h8C+jcSOvgaaI/Q==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/plugin-transform-unicode-regex/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-oC5tYYKw56HO75KZVLQ+R/Nl3Hro9kf8iG0hXoaHP7tjAyCpvqBiSNe6vGrZni1Z6MggmUOC6A7VP7AVmw225Q==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-create-regexp-features-plugin': 7.17.0_@babel+core@7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + dev: true + + /@babel/preset-env/7.16.11_@babel+core@7.17.9: + resolution: {integrity: sha512-qcmWG8R7ZW6WBRPZK//y+E3Cli151B20W1Rv7ln27vuPaXU/8TKms6jFdiJtF7UDTxcrb7mZd88tAeK9LjdT8g==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/compat-data': 7.17.7 + '@babel/core': 7.17.9 + '@babel/helper-compilation-targets': 7.17.7_@babel+core@7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/helper-validator-option': 7.16.7 + '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-async-generator-functions': 7.16.8_@babel+core@7.17.9 + '@babel/plugin-proposal-class-properties': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-class-static-block': 7.17.6_@babel+core@7.17.9 + '@babel/plugin-proposal-dynamic-import': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-export-namespace-from': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-json-strings': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-logical-assignment-operators': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-nullish-coalescing-operator': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-numeric-separator': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-object-rest-spread': 7.17.3_@babel+core@7.17.9 + '@babel/plugin-proposal-optional-catch-binding': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-optional-chaining': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-private-methods': 7.16.11_@babel+core@7.17.9 + '@babel/plugin-proposal-private-property-in-object': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-unicode-property-regex': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-syntax-async-generators': 7.8.4_@babel+core@7.17.9 + '@babel/plugin-syntax-class-properties': 7.12.13_@babel+core@7.17.9 + '@babel/plugin-syntax-class-static-block': 7.14.5_@babel+core@7.17.9 + '@babel/plugin-syntax-dynamic-import': 7.8.3_@babel+core@7.17.9 + '@babel/plugin-syntax-export-namespace-from': 7.8.3_@babel+core@7.17.9 + '@babel/plugin-syntax-json-strings': 7.8.3_@babel+core@7.17.9 + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4_@babel+core@7.17.9 + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3_@babel+core@7.17.9 + '@babel/plugin-syntax-numeric-separator': 7.10.4_@babel+core@7.17.9 + '@babel/plugin-syntax-object-rest-spread': 7.8.3_@babel+core@7.17.9 + '@babel/plugin-syntax-optional-catch-binding': 7.8.3_@babel+core@7.17.9 + '@babel/plugin-syntax-optional-chaining': 7.8.3_@babel+core@7.17.9 + '@babel/plugin-syntax-private-property-in-object': 7.14.5_@babel+core@7.17.9 + '@babel/plugin-syntax-top-level-await': 7.14.5_@babel+core@7.17.9 + '@babel/plugin-transform-arrow-functions': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-async-to-generator': 7.16.8_@babel+core@7.17.9 + '@babel/plugin-transform-block-scoped-functions': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-block-scoping': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-classes': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-computed-properties': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-destructuring': 7.17.7_@babel+core@7.17.9 + '@babel/plugin-transform-dotall-regex': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-duplicate-keys': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-exponentiation-operator': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-for-of': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-function-name': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-literals': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-member-expression-literals': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-modules-amd': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-modules-commonjs': 7.17.9_@babel+core@7.17.9 + '@babel/plugin-transform-modules-systemjs': 7.17.8_@babel+core@7.17.9 + '@babel/plugin-transform-modules-umd': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-named-capturing-groups-regex': 7.16.8_@babel+core@7.17.9 + '@babel/plugin-transform-new-target': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-object-super': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-parameters': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-property-literals': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-regenerator': 7.17.9_@babel+core@7.17.9 + '@babel/plugin-transform-reserved-words': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-shorthand-properties': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-spread': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-sticky-regex': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-template-literals': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-typeof-symbol': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-unicode-escapes': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-unicode-regex': 7.16.7_@babel+core@7.17.9 + '@babel/preset-modules': 0.1.5_@babel+core@7.17.9 + '@babel/types': 7.17.0 + babel-plugin-polyfill-corejs2: 0.3.1_@babel+core@7.17.9 + babel-plugin-polyfill-corejs3: 0.5.2_@babel+core@7.17.9 + babel-plugin-polyfill-regenerator: 0.3.1_@babel+core@7.17.9 + core-js-compat: 3.21.1 + semver: 6.3.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/preset-modules/0.1.5_@babel+core@7.17.9: + resolution: {integrity: sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/plugin-proposal-unicode-property-regex': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-dotall-regex': 7.16.7_@babel+core@7.17.9 + '@babel/types': 7.17.0 + esutils: 2.0.3 + dev: true + + /@babel/preset-react/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-fWpyI8UM/HE6DfPBzD8LnhQ/OcH8AgTaqcqP2nGOXEUV+VKBR5JRN9hCk9ai+zQQ57vtm9oWeXguBCPNUjytgA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/helper-validator-option': 7.16.7 + '@babel/plugin-transform-react-display-name': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-react-jsx': 7.17.3_@babel+core@7.17.9 + '@babel/plugin-transform-react-jsx-development': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-react-pure-annotations': 7.16.7_@babel+core@7.17.9 + dev: true + + /@babel/preset-typescript/7.16.7_@babel+core@7.17.9: + resolution: {integrity: sha512-WbVEmgXdIyvzB77AQjGBEyYPZx+8tTsO50XtfozQrkW8QB2rLJpH2lgx0TRw5EJrBxOZQ+wCcyPVQvS8tjEHpQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-plugin-utils': 7.16.7 + '@babel/helper-validator-option': 7.16.7 + '@babel/plugin-transform-typescript': 7.16.8_@babel+core@7.17.9 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/register/7.17.7_@babel+core@7.17.9: + resolution: {integrity: sha512-fg56SwvXRifootQEDQAu1mKdjh5uthPzdO0N6t358FktfL4XjAVXuH58ULoiW8mesxiOgNIrxiImqEwv0+hRRA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + clone-deep: 4.0.1 + find-cache-dir: 2.1.0 + make-dir: 2.1.0 + pirates: 4.0.5 + source-map-support: 0.5.21 + dev: true + + /@babel/runtime/7.17.9: + resolution: {integrity: sha512-lSiBBvodq29uShpWGNbgFdKYNiFDo5/HIYsaCEY9ff4sb10x9jizo2+pRrSyF4jKZCXqgzuqBOQKbUm90gQwJg==} + engines: {node: '>=6.9.0'} + dependencies: + regenerator-runtime: 0.13.9 + dev: true + + /@babel/template/7.16.7: + resolution: {integrity: sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': 7.16.7 + '@babel/parser': 7.17.9 + '@babel/types': 7.17.0 + dev: true + + /@babel/traverse/7.17.9: + resolution: {integrity: sha512-PQO8sDIJ8SIwipTPiR71kJQCKQYB5NGImbOviK8K+kg5xkNSYXLBupuX9QhatFowrsvo9Hj8WgArg3W7ijNAQw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': 7.16.7 + '@babel/generator': 7.17.9 + '@babel/helper-environment-visitor': 7.16.7 + '@babel/helper-function-name': 7.17.9 + '@babel/helper-hoist-variables': 7.16.7 + '@babel/helper-split-export-declaration': 7.16.7 + '@babel/parser': 7.17.9 + '@babel/types': 7.17.0 + debug: 4.3.4 + globals: 11.12.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/types/7.17.0: + resolution: {integrity: sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-validator-identifier': 7.16.7 + to-fast-properties: 2.0.0 + dev: true + + /@base2/pretty-print-object/1.0.1: + resolution: {integrity: sha512-4iri8i1AqYHJE2DstZYkyEprg6Pq6sKx3xn5FpySk9sNhH7qN2LLlHJCfDTZRILNwQNPD7mATWM0TBui7uC1pA==} + dev: true + + /@bcoe/v8-coverage/0.2.3: + resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} + dev: true + + /@cnakazawa/watch/1.0.4: + resolution: {integrity: sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ==} + engines: {node: '>=0.1.95'} + hasBin: true + dependencies: + exec-sh: 0.3.6 + minimist: 1.2.6 + dev: true + + /@colors/colors/1.5.0: + resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==} + engines: {node: '>=0.1.90'} + requiresBuild: true + dev: true + optional: true + + /@commitlint/cli/16.2.3_@swc+core@1.2.165: + resolution: {integrity: sha512-VsJBQLvhhlOgEfxs/Z5liYuK0dXqLE5hz1VJzLBxiOxG31kL/X5Q4OvK292BmO7IGZcm1yJE3XQPWSiFaEHbWA==} + engines: {node: '>=v12'} + hasBin: true + dependencies: + '@commitlint/format': 16.2.1 + '@commitlint/lint': 16.2.1 + '@commitlint/load': 16.2.3_@swc+core@1.2.165 + '@commitlint/read': 16.2.1 + '@commitlint/types': 16.2.1 + lodash: 4.17.21 + resolve-from: 5.0.0 + resolve-global: 1.0.0 + yargs: 17.4.1 + transitivePeerDependencies: + - '@swc/core' + - '@swc/wasm' + dev: true + + /@commitlint/config-conventional/16.2.1: + resolution: {integrity: sha512-cP9gArx7gnaj4IqmtCIcHdRjTYdRUi6lmGE+lOzGGjGe45qGOS8nyQQNvkNy2Ey2VqoSWuXXkD8zCUh6EHf1Ww==} + engines: {node: '>=v12'} + dependencies: + conventional-changelog-conventionalcommits: 4.6.3 + dev: true + + /@commitlint/config-validator/16.2.1: + resolution: {integrity: sha512-hogSe0WGg7CKmp4IfNbdNES3Rq3UEI4XRPB8JL4EPgo/ORq5nrGTVzxJh78omibNuB8Ho4501Czb1Er1MoDWpw==} + engines: {node: '>=v12'} + dependencies: + '@commitlint/types': 16.2.1 + ajv: 6.12.6 + dev: true + + /@commitlint/config-validator/17.0.0: + resolution: {integrity: sha512-78IQjoZWR4kDHp/U5y17euEWzswJpPkA9TDL5F6oZZZaLIEreWzrDZD5PWtM8MsSRl/K2LDU/UrzYju2bKLMpA==} + engines: {node: '>=v14'} + dependencies: + '@commitlint/types': 17.0.0 + ajv: 6.12.6 + dev: true + optional: true + + /@commitlint/cz-commitlint/16.2.3_24ujsvcyijvjg2lpba4ekzlmaa: + resolution: {integrity: sha512-G9rRnBJ/5te7RiOzp7EdqII9rQYvtsfsqwMxcoK4B7l0Rc57nFCOlf0e4Bn70E4aOsLeMzNe+PvVVrEsPStEHg==} + engines: {node: '>=v12'} + peerDependencies: + commitizen: ^4.0.3 + inquirer: ^8.0.0 + dependencies: + '@commitlint/ensure': 16.2.1 + '@commitlint/load': 16.2.3_@swc+core@1.2.165 + '@commitlint/types': 16.2.1 + chalk: 4.1.2 + commitizen: 4.2.4_@swc+core@1.2.165 + inquirer: 8.2.2 + lodash: 4.17.21 + word-wrap: 1.2.3 + transitivePeerDependencies: + - '@swc/core' + - '@swc/wasm' + dev: true + + /@commitlint/ensure/16.2.1: + resolution: {integrity: sha512-/h+lBTgf1r5fhbDNHOViLuej38i3rZqTQnBTk+xEg+ehOwQDXUuissQ5GsYXXqI5uGy+261ew++sT4EA3uBJ+A==} + engines: {node: '>=v12'} + dependencies: + '@commitlint/types': 16.2.1 + lodash: 4.17.21 + dev: true + + /@commitlint/execute-rule/16.2.1: + resolution: {integrity: sha512-oSls82fmUTLM6cl5V3epdVo4gHhbmBFvCvQGHBRdQ50H/690Uq1Dyd7hXMuKITCIdcnr9umyDkr8r5C6HZDF3g==} + engines: {node: '>=v12'} + dev: true + + /@commitlint/execute-rule/17.0.0: + resolution: {integrity: sha512-nVjL/w/zuqjCqSJm8UfpNaw66V9WzuJtQvEnCrK4jDw6qKTmZB+1JQ8m6BQVZbNBcwfYdDNKnhIhqI0Rk7lgpQ==} + engines: {node: '>=v14'} + dev: true + optional: true + + /@commitlint/format/16.2.1: + resolution: {integrity: sha512-Yyio9bdHWmNDRlEJrxHKglamIk3d6hC0NkEUW6Ti6ipEh2g0BAhy8Od6t4vLhdZRa1I2n+gY13foy+tUgk0i1Q==} + engines: {node: '>=v12'} + dependencies: + '@commitlint/types': 16.2.1 + chalk: 4.1.2 + dev: true + + /@commitlint/is-ignored/16.2.1: + resolution: {integrity: sha512-exl8HRzTIfb1YvDJp2b2HU5z1BT+9tmgxR2XF0YEzkMiCIuEKh+XLeocPr1VcvAKXv3Cmv5X/OfNRp+i+/HIhQ==} + engines: {node: '>=v12'} + dependencies: + '@commitlint/types': 16.2.1 + semver: 7.3.5 + dev: true + + /@commitlint/lint/16.2.1: + resolution: {integrity: sha512-fNINQ3X2ZqsCkNB3Z0Z8ElmhewqrS3gy2wgBTx97BkcjOWiyPAGwDJ752hwrsUnWAVBRztgw826n37xPzxsOgg==} + engines: {node: '>=v12'} + dependencies: + '@commitlint/is-ignored': 16.2.1 + '@commitlint/parse': 16.2.1 + '@commitlint/rules': 16.2.1 + '@commitlint/types': 16.2.1 + dev: true + + /@commitlint/load/16.2.3_@swc+core@1.2.165: + resolution: {integrity: sha512-Hb4OUlMnBUK6UxJEZ/VJ5k0LocIS7PtEMbRXEAA7eSpOgORIFexC4K/RaRpVd5UTtu3M0ST3ddPPijF9rdW6nw==} + engines: {node: '>=v12'} + dependencies: + '@commitlint/config-validator': 16.2.1 + '@commitlint/execute-rule': 16.2.1 + '@commitlint/resolve-extends': 16.2.1 + '@commitlint/types': 16.2.1 + '@types/node': 17.0.34 + chalk: 4.1.2 + cosmiconfig: 7.0.1 + cosmiconfig-typescript-loader: 1.0.9_r7532dtfx5sufgo7h2pwwiqz24 + lodash: 4.17.21 + resolve-from: 5.0.0 + typescript: 4.6.4 + transitivePeerDependencies: + - '@swc/core' + - '@swc/wasm' + dev: true + + /@commitlint/load/17.0.0_@swc+core@1.2.165: + resolution: {integrity: sha512-XaiHF4yWQOPAI0O6wXvk+NYLtJn/Xb7jgZEeKd4C1ZWd7vR7u8z5h0PkWxSr0uLZGQsElGxv3fiZ32C5+q6M8w==} + engines: {node: '>=v14'} + requiresBuild: true + dependencies: + '@commitlint/config-validator': 17.0.0 + '@commitlint/execute-rule': 17.0.0 + '@commitlint/resolve-extends': 17.0.0 + '@commitlint/types': 17.0.0 + '@types/node': 17.0.34 + chalk: 4.1.2 + cosmiconfig: 7.0.1 + cosmiconfig-typescript-loader: 2.0.0_r7532dtfx5sufgo7h2pwwiqz24 + lodash: 4.17.21 + resolve-from: 5.0.0 + typescript: 4.6.4 + transitivePeerDependencies: + - '@swc/core' + - '@swc/wasm' + dev: true + optional: true + + /@commitlint/message/16.2.1: + resolution: {integrity: sha512-2eWX/47rftViYg7a3axYDdrgwKv32mxbycBJT6OQY/MJM7SUfYNYYvbMFOQFaA4xIVZt7t2Alyqslbl6blVwWw==} + engines: {node: '>=v12'} + dev: true + + /@commitlint/parse/16.2.1: + resolution: {integrity: sha512-2NP2dDQNL378VZYioLrgGVZhWdnJO4nAxQl5LXwYb08nEcN+cgxHN1dJV8OLJ5uxlGJtDeR8UZZ1mnQ1gSAD/g==} + engines: {node: '>=v12'} + dependencies: + '@commitlint/types': 16.2.1 + conventional-changelog-angular: 5.0.13 + conventional-commits-parser: 3.2.4 + dev: true + + /@commitlint/read/16.2.1: + resolution: {integrity: sha512-tViXGuaxLTrw2r7PiYMQOFA2fueZxnnt0lkOWqKyxT+n2XdEMGYcI9ID5ndJKXnfPGPppD0w/IItKsIXlZ+alw==} + engines: {node: '>=v12'} + dependencies: + '@commitlint/top-level': 16.2.1 + '@commitlint/types': 16.2.1 + fs-extra: 10.0.1 + git-raw-commits: 2.0.11 + dev: true + + /@commitlint/resolve-extends/16.2.1: + resolution: {integrity: sha512-NbbCMPKTFf2J805kwfP9EO+vV+XvnaHRcBy6ud5dF35dxMsvdJqke54W3XazXF1ZAxC4a3LBy4i/GNVBAthsEg==} + engines: {node: '>=v12'} + dependencies: + '@commitlint/config-validator': 16.2.1 + '@commitlint/types': 16.2.1 + import-fresh: 3.3.0 + lodash: 4.17.21 + resolve-from: 5.0.0 + resolve-global: 1.0.0 + dev: true + + /@commitlint/resolve-extends/17.0.0: + resolution: {integrity: sha512-wi60WiJmwaQ7lzMXK8Vbc18Hq9tE2j/6iv2AFfPUGV7fvfY6Sf1iNKuUHirSqR0fquUyufIXe4y/K9A6LVIIvw==} + engines: {node: '>=v14'} + dependencies: + '@commitlint/config-validator': 17.0.0 + '@commitlint/types': 17.0.0 + import-fresh: 3.3.0 + lodash: 4.17.21 + resolve-from: 5.0.0 + resolve-global: 1.0.0 + dev: true + optional: true + + /@commitlint/rules/16.2.1: + resolution: {integrity: sha512-ZFezJXQaBBso+BOTre/+1dGCuCzlWVaeLiVRGypI53qVgPMzQqZhkCcrxBFeqB87qeyzr4A4EoG++IvITwwpIw==} + engines: {node: '>=v12'} + dependencies: + '@commitlint/ensure': 16.2.1 + '@commitlint/message': 16.2.1 + '@commitlint/to-lines': 16.2.1 + '@commitlint/types': 16.2.1 + execa: 5.1.1 + dev: true + + /@commitlint/to-lines/16.2.1: + resolution: {integrity: sha512-9/VjpYj5j1QeY3eiog1zQWY6axsdWAc0AonUUfyZ7B0MVcRI0R56YsHAfzF6uK/g/WwPZaoe4Lb1QCyDVnpVaQ==} + engines: {node: '>=v12'} + dev: true + + /@commitlint/top-level/16.2.1: + resolution: {integrity: sha512-lS6GSieHW9y6ePL73ied71Z9bOKyK+Ib9hTkRsB8oZFAyQZcyRwq2w6nIa6Fngir1QW51oKzzaXfJL94qwImyw==} + engines: {node: '>=v12'} + dependencies: + find-up: 5.0.0 + dev: true + + /@commitlint/types/16.2.1: + resolution: {integrity: sha512-7/z7pA7BM0i8XvMSBynO7xsB3mVQPUZbVn6zMIlp/a091XJ3qAXRXc+HwLYhiIdzzS5fuxxNIHZMGHVD4HJxdA==} + engines: {node: '>=v12'} + dependencies: + chalk: 4.1.2 + dev: true + + /@commitlint/types/17.0.0: + resolution: {integrity: sha512-hBAw6U+SkAT5h47zDMeOu3HSiD0SODw4Aq7rRNh1ceUmL7GyLKYhPbUvlRWqZ65XjBLPHZhFyQlRaPNz8qvUyQ==} + engines: {node: '>=v14'} + dependencies: + chalk: 4.1.2 + dev: true + optional: true + + /@cspotcode/source-map-consumer/0.8.0: + resolution: {integrity: sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==} + engines: {node: '>= 12'} + dev: true + + /@cspotcode/source-map-support/0.7.0: + resolution: {integrity: sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA==} + engines: {node: '>=12'} + dependencies: + '@cspotcode/source-map-consumer': 0.8.0 + dev: true + + /@csstools/convert-colors/1.4.0: + resolution: {integrity: sha512-5a6wqoJV/xEdbRNKVo6I4hO3VjyDq//8q2f9I6PBAvMesJHFauXDorcNCsr9RzvsZnaWi5NYCcfyqP1QeFHFbw==} + engines: {node: '>=4.0.0'} + dev: true + + /@discoveryjs/json-ext/0.5.7: + resolution: {integrity: sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==} + engines: {node: '>=10.0.0'} + dev: true + + /@emotion/cache/10.0.29: + resolution: {integrity: sha512-fU2VtSVlHiF27empSbxi1O2JFdNWZO+2NFHfwO0pxgTep6Xa3uGb+3pVKfLww2l/IBGLNEZl5Xf/++A4wAYDYQ==} + dependencies: + '@emotion/sheet': 0.9.4 + '@emotion/stylis': 0.8.5 + '@emotion/utils': 0.11.3 + '@emotion/weak-memoize': 0.2.5 + dev: true + + /@emotion/core/10.3.1: + resolution: {integrity: sha512-447aUEjPIm0MnE6QYIaFz9VQOHSXf4Iu6EWOIqq11EAPqinkSZmfymPTmlOE3QjLv846lH4JVZBUOtwGbuQoww==} + peerDependencies: + react: '>=16.3.0' + dependencies: + '@babel/runtime': 7.17.9 + '@emotion/cache': 10.0.29 + '@emotion/css': 10.0.27 + '@emotion/serialize': 0.11.16 + '@emotion/sheet': 0.9.4 + '@emotion/utils': 0.11.3 + dev: true + + /@emotion/core/10.3.1_react@16.14.0: + resolution: {integrity: sha512-447aUEjPIm0MnE6QYIaFz9VQOHSXf4Iu6EWOIqq11EAPqinkSZmfymPTmlOE3QjLv846lH4JVZBUOtwGbuQoww==} + peerDependencies: + react: '>=16.3.0' + dependencies: + '@babel/runtime': 7.17.9 + '@emotion/cache': 10.0.29 + '@emotion/css': 10.0.27 + '@emotion/serialize': 0.11.16 + '@emotion/sheet': 0.9.4 + '@emotion/utils': 0.11.3 + react: 16.14.0 + dev: true + + /@emotion/css/10.0.27: + resolution: {integrity: sha512-6wZjsvYeBhyZQYNrGoR5yPMYbMBNEnanDrqmsqS1mzDm1cOTu12shvl2j4QHNS36UaTE0USIJawCH9C8oW34Zw==} + dependencies: + '@emotion/serialize': 0.11.16 + '@emotion/utils': 0.11.3 + babel-plugin-emotion: 10.2.2 + dev: true + + /@emotion/hash/0.8.0: + resolution: {integrity: sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==} + dev: true + + /@emotion/is-prop-valid/0.8.8: + resolution: {integrity: sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==} + dependencies: + '@emotion/memoize': 0.7.4 + dev: true + + /@emotion/memoize/0.7.4: + resolution: {integrity: sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==} + dev: true + + /@emotion/serialize/0.11.16: + resolution: {integrity: sha512-G3J4o8by0VRrO+PFeSc3js2myYNOXVJ3Ya+RGVxnshRYgsvErfAOglKAiy1Eo1vhzxqtUvjCyS5gtewzkmvSSg==} + dependencies: + '@emotion/hash': 0.8.0 + '@emotion/memoize': 0.7.4 + '@emotion/unitless': 0.7.5 + '@emotion/utils': 0.11.3 + csstype: 2.6.20 + dev: true + + /@emotion/sheet/0.9.4: + resolution: {integrity: sha512-zM9PFmgVSqBw4zL101Q0HrBVTGmpAxFZH/pYx/cjJT5advXguvcgjHFTCaIO3enL/xr89vK2bh0Mfyj9aa0ANA==} + dev: true + + /@emotion/styled-base/10.3.0_@emotion+core@10.3.1: + resolution: {integrity: sha512-PBRqsVKR7QRNkmfH78hTSSwHWcwDpecH9W6heujWAcyp2wdz/64PP73s7fWS1dIPm8/Exc8JAzYS8dEWXjv60w==} + peerDependencies: + '@emotion/core': ^10.0.28 + react: '>=16.3.0' + dependencies: + '@babel/runtime': 7.17.9 + '@emotion/core': 10.3.1 + '@emotion/is-prop-valid': 0.8.8 + '@emotion/serialize': 0.11.16 + '@emotion/utils': 0.11.3 + dev: true + + /@emotion/styled-base/10.3.0_qzeatvug73zaio2r3dlvejynye: + resolution: {integrity: sha512-PBRqsVKR7QRNkmfH78hTSSwHWcwDpecH9W6heujWAcyp2wdz/64PP73s7fWS1dIPm8/Exc8JAzYS8dEWXjv60w==} + peerDependencies: + '@emotion/core': ^10.0.28 + react: '>=16.3.0' + dependencies: + '@babel/runtime': 7.17.9 + '@emotion/core': 10.3.1_react@16.14.0 + '@emotion/is-prop-valid': 0.8.8 + '@emotion/serialize': 0.11.16 + '@emotion/utils': 0.11.3 + react: 16.14.0 + dev: true + + /@emotion/styled/10.3.0_@emotion+core@10.3.1: + resolution: {integrity: sha512-GgcUpXBBEU5ido+/p/mCT2/Xx+Oqmp9JzQRuC+a4lYM4i4LBBn/dWvc0rQ19N9ObA8/T4NWMrPNe79kMBDJqoQ==} + peerDependencies: + '@emotion/core': ^10.0.27 + react: '>=16.3.0' + dependencies: + '@emotion/core': 10.3.1 + '@emotion/styled-base': 10.3.0_@emotion+core@10.3.1 + babel-plugin-emotion: 10.2.2 + dev: true + + /@emotion/styled/10.3.0_qzeatvug73zaio2r3dlvejynye: + resolution: {integrity: sha512-GgcUpXBBEU5ido+/p/mCT2/Xx+Oqmp9JzQRuC+a4lYM4i4LBBn/dWvc0rQ19N9ObA8/T4NWMrPNe79kMBDJqoQ==} + peerDependencies: + '@emotion/core': ^10.0.27 + react: '>=16.3.0' + dependencies: + '@emotion/core': 10.3.1_react@16.14.0 + '@emotion/styled-base': 10.3.0_qzeatvug73zaio2r3dlvejynye + babel-plugin-emotion: 10.2.2 + react: 16.14.0 + dev: true + + /@emotion/stylis/0.8.5: + resolution: {integrity: sha512-h6KtPihKFn3T9fuIrwvXXUOwlx3rfUvfZIcP5a6rh8Y7zjE3O06hT5Ss4S/YI1AYhuZ1kjaE/5EaOOI2NqSylQ==} + dev: true + + /@emotion/unitless/0.7.5: + resolution: {integrity: sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==} + dev: true + + /@emotion/utils/0.11.3: + resolution: {integrity: sha512-0o4l6pZC+hI88+bzuaX/6BgOvQVhbt2PfmxauVaYOGgbsAw14wdKyvMCZXnsnsHys94iadcF+RG/wZyx6+ZZBw==} + dev: true + + /@emotion/weak-memoize/0.2.5: + resolution: {integrity: sha512-6U71C2Wp7r5XtFtQzYrW5iKFT67OixrSxjI4MptCHzdSVlgabczzqLe0ZSgnub/5Kp4hSbpDB1tMytZY9pwxxA==} + dev: true + + /@eslint/eslintrc/1.2.3: + resolution: {integrity: sha512-uGo44hIwoLGNyduRpjdEpovcbMdd+Nv7amtmJxnKmI8xj6yd5LncmSwDa5NgX/41lIFJtkjD6YdVfgEzPfJ5UA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + ajv: 6.12.6 + debug: 4.3.4 + espree: 9.3.2 + globals: 13.15.0 + ignore: 5.2.0 + import-fresh: 3.3.0 + js-yaml: 4.1.0 + minimatch: 3.1.2 + strip-json-comments: 3.1.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@gar/promisify/1.1.3: + resolution: {integrity: sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==} + dev: true + + /@humanwhocodes/config-array/0.9.5: + resolution: {integrity: sha512-ObyMyWxZiCu/yTisA7uzx81s40xR2fD5Cg/2Kq7G02ajkNubJf6BopgDTmDyc3U7sXpNKM8cYOw7s7Tyr+DnCw==} + engines: {node: '>=10.10.0'} + dependencies: + '@humanwhocodes/object-schema': 1.2.1 + debug: 4.3.4 + minimatch: 3.1.2 + transitivePeerDependencies: + - supports-color + dev: true + + /@humanwhocodes/object-schema/1.2.1: + resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} + dev: true + + /@hutson/parse-repository-url/3.0.2: + resolution: {integrity: sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q==} + engines: {node: '>=6.9.0'} + dev: true + + /@istanbuljs/load-nyc-config/1.1.0: + resolution: {integrity: sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==} + engines: {node: '>=8'} + dependencies: + camelcase: 5.3.1 + find-up: 4.1.0 + get-package-type: 0.1.0 + js-yaml: 3.14.1 + resolve-from: 5.0.0 + dev: true + + /@istanbuljs/schema/0.1.3: + resolution: {integrity: sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==} + engines: {node: '>=8'} + dev: true + + /@jest/console/27.5.1: + resolution: {integrity: sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + '@types/node': 17.0.34 + chalk: 4.1.2 + jest-message-util: 27.5.1 + jest-util: 27.5.1 + slash: 3.0.0 + dev: true + + /@jest/core/27.5.1: + resolution: {integrity: sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + peerDependencies: + node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 + peerDependenciesMeta: + node-notifier: + optional: true + dependencies: + '@jest/console': 27.5.1 + '@jest/reporters': 27.5.1 + '@jest/test-result': 27.5.1 + '@jest/transform': 27.5.1 + '@jest/types': 27.5.1 + '@types/node': 17.0.34 + ansi-escapes: 4.3.2 + chalk: 4.1.2 + emittery: 0.8.1 + exit: 0.1.2 + graceful-fs: 4.2.10 + jest-changed-files: 27.5.1 + jest-config: 27.5.1 + jest-haste-map: 27.5.1 + jest-message-util: 27.5.1 + jest-regex-util: 27.5.1 + jest-resolve: 27.5.1 + jest-resolve-dependencies: 27.5.1 + jest-runner: 27.5.1 + jest-runtime: 27.5.1 + jest-snapshot: 27.5.1 + jest-util: 27.5.1 + jest-validate: 27.5.1 + jest-watcher: 27.5.1 + micromatch: 4.0.5 + rimraf: 3.0.2 + slash: 3.0.0 + strip-ansi: 6.0.1 + transitivePeerDependencies: + - bufferutil + - canvas + - supports-color + - ts-node + - utf-8-validate + dev: true + + /@jest/create-cache-key-function/27.5.1: + resolution: {integrity: sha512-dmH1yW+makpTSURTy8VzdUwFnfQh1G8R+DxO2Ho2FFmBbKFEVm+3jWdvFhE2VqB/LATCTokkP0dotjyQyw5/AQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + dev: true + + /@jest/environment/27.5.1: + resolution: {integrity: sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/fake-timers': 27.5.1 + '@jest/types': 27.5.1 + '@types/node': 17.0.34 + jest-mock: 27.5.1 + dev: true + + /@jest/fake-timers/27.5.1: + resolution: {integrity: sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + '@sinonjs/fake-timers': 8.1.0 + '@types/node': 17.0.34 + jest-message-util: 27.5.1 + jest-mock: 27.5.1 + jest-util: 27.5.1 + dev: true + + /@jest/globals/27.5.1: + resolution: {integrity: sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/environment': 27.5.1 + '@jest/types': 27.5.1 + expect: 27.5.1 + dev: true + + /@jest/reporters/27.5.1: + resolution: {integrity: sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + peerDependencies: + node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 + peerDependenciesMeta: + node-notifier: + optional: true + dependencies: + '@bcoe/v8-coverage': 0.2.3 + '@jest/console': 27.5.1 + '@jest/test-result': 27.5.1 + '@jest/transform': 27.5.1 + '@jest/types': 27.5.1 + '@types/node': 17.0.34 + chalk: 4.1.2 + collect-v8-coverage: 1.0.1 + exit: 0.1.2 + glob: 7.2.0 + graceful-fs: 4.2.10 + istanbul-lib-coverage: 3.2.0 + istanbul-lib-instrument: 5.1.0 + istanbul-lib-report: 3.0.0 + istanbul-lib-source-maps: 4.0.1 + istanbul-reports: 3.1.4 + jest-haste-map: 27.5.1 + jest-resolve: 27.5.1 + jest-util: 27.5.1 + jest-worker: 27.5.1 + slash: 3.0.0 + source-map: 0.6.1 + string-length: 4.0.2 + terminal-link: 2.1.1 + v8-to-istanbul: 8.1.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@jest/source-map/27.5.1: + resolution: {integrity: sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + callsites: 3.1.0 + graceful-fs: 4.2.10 + source-map: 0.6.1 + dev: true + + /@jest/test-result/27.5.1: + resolution: {integrity: sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/console': 27.5.1 + '@jest/types': 27.5.1 + '@types/istanbul-lib-coverage': 2.0.4 + collect-v8-coverage: 1.0.1 + dev: true + + /@jest/test-sequencer/27.5.1: + resolution: {integrity: sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/test-result': 27.5.1 + graceful-fs: 4.2.10 + jest-haste-map: 27.5.1 + jest-runtime: 27.5.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@jest/transform/26.6.2: + resolution: {integrity: sha512-E9JjhUgNzvuQ+vVAL21vlyfy12gP0GhazGgJC4h6qUt1jSdUXGWJ1wfu/X7Sd8etSgxV4ovT1pb9v5D6QW4XgA==} + engines: {node: '>= 10.14.2'} + dependencies: + '@babel/core': 7.17.9 + '@jest/types': 26.6.2 + babel-plugin-istanbul: 6.1.1 + chalk: 4.1.2 + convert-source-map: 1.8.0 + fast-json-stable-stringify: 2.1.0 + graceful-fs: 4.2.10 + jest-haste-map: 26.6.2 + jest-regex-util: 26.0.0 + jest-util: 26.6.2 + micromatch: 4.0.5 + pirates: 4.0.5 + slash: 3.0.0 + source-map: 0.6.1 + write-file-atomic: 3.0.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@jest/transform/27.5.1: + resolution: {integrity: sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@babel/core': 7.17.9 + '@jest/types': 27.5.1 + babel-plugin-istanbul: 6.1.1 + chalk: 4.1.2 + convert-source-map: 1.8.0 + fast-json-stable-stringify: 2.1.0 + graceful-fs: 4.2.10 + jest-haste-map: 27.5.1 + jest-regex-util: 27.5.1 + jest-util: 27.5.1 + micromatch: 4.0.5 + pirates: 4.0.5 + slash: 3.0.0 + source-map: 0.6.1 + write-file-atomic: 3.0.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@jest/types/26.6.2: + resolution: {integrity: sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==} + engines: {node: '>= 10.14.2'} + dependencies: + '@types/istanbul-lib-coverage': 2.0.4 + '@types/istanbul-reports': 3.0.1 + '@types/node': 17.0.34 + '@types/yargs': 15.0.14 + chalk: 4.1.2 + dev: true + + /@jest/types/27.5.1: + resolution: {integrity: sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@types/istanbul-lib-coverage': 2.0.4 + '@types/istanbul-reports': 3.0.1 + '@types/node': 17.0.34 + '@types/yargs': 16.0.4 + chalk: 4.1.2 + dev: true + + /@jridgewell/resolve-uri/3.0.5: + resolution: {integrity: sha512-VPeQ7+wH0itvQxnG+lIzWgkysKIr3L9sslimFW55rHMdGu/qCQ5z5h9zq4gI8uBtqkpHhsF4Z/OwExufUCThew==} + engines: {node: '>=6.0.0'} + dev: true + + /@jridgewell/sourcemap-codec/1.4.11: + resolution: {integrity: sha512-Fg32GrJo61m+VqYSdRSjRXMjQ06j8YIYfcTqndLYVAaHmroZHLJZCydsWBOTDqXS2v+mjxohBWEMfg97GXmYQg==} + dev: true + + /@jridgewell/trace-mapping/0.3.14: + resolution: {integrity: sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ==} + dependencies: + '@jridgewell/resolve-uri': 3.0.5 + '@jridgewell/sourcemap-codec': 1.4.11 + dev: true + + /@jridgewell/trace-mapping/0.3.4: + resolution: {integrity: sha512-vFv9ttIedivx0ux3QSjhgtCVjPZd5l46ZOMDSCwnH1yUO2e964gO8LZGyv2QkqcgR6TnBU1v+1IFqmeoG+0UJQ==} + dependencies: + '@jridgewell/resolve-uri': 3.0.5 + '@jridgewell/sourcemap-codec': 1.4.11 + dev: true + + /@mdx-js/loader/1.6.22: + resolution: {integrity: sha512-9CjGwy595NaxAYp0hF9B/A0lH6C8Rms97e2JS9d3jVUtILn6pT5i5IV965ra3lIWc7Rs1GG1tBdVF7dCowYe6Q==} + dependencies: + '@mdx-js/mdx': 1.6.22 + '@mdx-js/react': 1.6.22 + loader-utils: 2.0.0 + transitivePeerDependencies: + - react + - supports-color + dev: true + + /@mdx-js/mdx/1.6.22: + resolution: {integrity: sha512-AMxuLxPz2j5/6TpF/XSdKpQP1NlG0z11dFOlq+2IP/lSgl11GY8ji6S/rgsViN/L0BDvHvUMruRb7ub+24LUYA==} + dependencies: + '@babel/core': 7.12.9 + '@babel/plugin-syntax-jsx': 7.12.1_@babel+core@7.12.9 + '@babel/plugin-syntax-object-rest-spread': 7.8.3_@babel+core@7.12.9 + '@mdx-js/util': 1.6.22 + babel-plugin-apply-mdx-type-prop: 1.6.22_@babel+core@7.12.9 + babel-plugin-extract-import-names: 1.6.22 + camelcase-css: 2.0.1 + detab: 2.0.4 + hast-util-raw: 6.0.1 + lodash.uniq: 4.5.0 + mdast-util-to-hast: 10.0.1 + remark-footnotes: 2.0.0 + remark-mdx: 1.6.22 + remark-parse: 8.0.3 + remark-squeeze-paragraphs: 4.0.0 + style-to-object: 0.3.0 + unified: 9.2.0 + unist-builder: 2.0.3 + unist-util-visit: 2.0.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@mdx-js/react/1.6.22: + resolution: {integrity: sha512-TDoPum4SHdfPiGSAaRBw7ECyI8VaHpK8GJugbJIJuqyh6kzw9ZLJZW3HGL3NNrJGxcAixUvqROm+YuQOo5eXtg==} + peerDependencies: + react: ^16.13.1 || ^17.0.0 + dev: true + + /@mdx-js/util/1.6.22: + resolution: {integrity: sha512-H1rQc1ZOHANWBvPcW+JpGwr+juXSxM8Q8YCkm3GhZd8REu1fHR3z99CErO1p9pkcfcxZnMdIZdIsXkOHY0NilA==} + dev: true + + /@mrmlnc/readdir-enhanced/2.2.1: + resolution: {integrity: sha512-bPHp6Ji8b41szTOcaP63VlnbbO5Ny6dwAATtY6JTjh5N2OLrb5Qk/Th5cRkRQhkWCt+EJsYrNB0MiL+Gpn6e3g==} + engines: {node: '>=4'} + dependencies: + call-me-maybe: 1.0.1 + glob-to-regexp: 0.3.0 + dev: true + + /@nodelib/fs.scandir/2.1.5: + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} + engines: {node: '>= 8'} + dependencies: + '@nodelib/fs.stat': 2.0.5 + run-parallel: 1.2.0 + dev: true + + /@nodelib/fs.stat/1.1.3: + resolution: {integrity: sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw==} + engines: {node: '>= 6'} + dev: true + + /@nodelib/fs.stat/2.0.5: + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} + engines: {node: '>= 8'} + dev: true + + /@nodelib/fs.walk/1.2.8: + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} + engines: {node: '>= 8'} + dependencies: + '@nodelib/fs.scandir': 2.1.5 + fastq: 1.13.0 + dev: true + + /@npmcli/fs/1.1.1: + resolution: {integrity: sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==} + dependencies: + '@gar/promisify': 1.1.3 + semver: 7.3.7 + dev: true + + /@npmcli/move-file/1.1.2: + resolution: {integrity: sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg==} + engines: {node: '>=10'} + dependencies: + mkdirp: 1.0.4 + rimraf: 3.0.2 + dev: true + + /@octokit/auth-token/2.5.0: + resolution: {integrity: sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g==} + dependencies: + '@octokit/types': 6.39.0 + dev: true + + /@octokit/core/3.6.0: + resolution: {integrity: sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q==} + dependencies: + '@octokit/auth-token': 2.5.0 + '@octokit/graphql': 4.8.0 + '@octokit/request': 5.6.3 + '@octokit/request-error': 2.1.0 + '@octokit/types': 6.39.0 + before-after-hook: 2.2.2 + universal-user-agent: 6.0.0 + transitivePeerDependencies: + - encoding + dev: true + + /@octokit/endpoint/6.0.12: + resolution: {integrity: sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==} + dependencies: + '@octokit/types': 6.39.0 + is-plain-object: 5.0.0 + universal-user-agent: 6.0.0 + dev: true + + /@octokit/graphql/4.8.0: + resolution: {integrity: sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg==} + dependencies: + '@octokit/request': 5.6.3 + '@octokit/types': 6.39.0 + universal-user-agent: 6.0.0 + transitivePeerDependencies: + - encoding + dev: true + + /@octokit/openapi-types/12.8.0: + resolution: {integrity: sha512-ydcKLs2KKcxlhpdWLzJxEBDEk/U5MUeqtqkXlrtAUXXFPs6vLl1PEGghFC/BbpleosB7iXs0Z4P2DGe7ZT5ZNg==} + dev: true + + /@octokit/plugin-paginate-rest/2.21.2_@octokit+core@3.6.0: + resolution: {integrity: sha512-S24H0a6bBVreJtoTaRHT/gnVASbOHVTRMOVIqd9zrJBP3JozsxJB56TDuTUmd1xLI4/rAE2HNmThvVKtIdLLEw==} + peerDependencies: + '@octokit/core': '>=4' + dependencies: + '@octokit/core': 3.6.0 + '@octokit/types': 6.39.0 + dev: true + + /@octokit/plugin-request-log/1.0.4_@octokit+core@3.6.0: + resolution: {integrity: sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA==} + peerDependencies: + '@octokit/core': '>=3' + dependencies: + '@octokit/core': 3.6.0 + dev: true + + /@octokit/plugin-rest-endpoint-methods/5.16.2_@octokit+core@3.6.0: + resolution: {integrity: sha512-8QFz29Fg5jDuTPXVtey05BLm7OB+M8fnvE64RNegzX7U+5NUXcOcnpTIK0YfSHBg8gYd0oxIq3IZTe9SfPZiRw==} + peerDependencies: + '@octokit/core': '>=3' + dependencies: + '@octokit/core': 3.6.0 + '@octokit/types': 6.39.0 + deprecation: 2.3.1 + dev: true + + /@octokit/request-error/2.1.0: + resolution: {integrity: sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==} + dependencies: + '@octokit/types': 6.39.0 + deprecation: 2.3.1 + once: 1.4.0 + dev: true + + /@octokit/request/5.6.3: + resolution: {integrity: sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A==} + dependencies: + '@octokit/endpoint': 6.0.12 + '@octokit/request-error': 2.1.0 + '@octokit/types': 6.39.0 + is-plain-object: 5.0.0 + node-fetch: 2.6.7 + universal-user-agent: 6.0.0 + transitivePeerDependencies: + - encoding + dev: true + + /@octokit/rest/18.12.0: + resolution: {integrity: sha512-gDPiOHlyGavxr72y0guQEhLsemgVjwRePayJ+FcKc2SJqKUbxbkvf5kAZEWA/MKvsfYlQAMVzNJE3ezQcxMJ2Q==} + dependencies: + '@octokit/core': 3.6.0 + '@octokit/plugin-paginate-rest': 2.21.2_@octokit+core@3.6.0 + '@octokit/plugin-request-log': 1.0.4_@octokit+core@3.6.0 + '@octokit/plugin-rest-endpoint-methods': 5.16.2_@octokit+core@3.6.0 + transitivePeerDependencies: + - encoding + dev: true + + /@octokit/types/6.39.0: + resolution: {integrity: sha512-Mq4N9sOAYCitTsBtDdRVrBE80lIrMBhL9Jbrw0d+j96BAzlq4V+GLHFJbHokEsVvO/9tQupQdoFdgVYhD2C8UQ==} + dependencies: + '@octokit/openapi-types': 12.8.0 + dev: true + + /@popperjs/core/2.11.5: + resolution: {integrity: sha512-9X2obfABZuDVLCgPK9aX0a/x4jaOEweTTWE2+9sr0Qqqevj2Uv5XorvusThmc9XGYpS9yI+fhh8RTafBtGposw==} + dev: true + + /@rollup/plugin-node-resolve/13.2.0_rollup@2.70.1: + resolution: {integrity: sha512-GuUIUyIKq7EjQxB51XSn6zPHYo+cILQQBYOGYvFFNxws2OVOqCBShAoof2hFrV8bAZzZGDBDQ8m2iUt8SLOUkg==} + engines: {node: '>= 10.0.0'} + peerDependencies: + rollup: ^2.42.0 + dependencies: + '@rollup/pluginutils': 3.1.0_rollup@2.70.1 + '@types/resolve': 1.17.1 + builtin-modules: 3.2.0 + deepmerge: 4.2.2 + is-module: 1.0.0 + resolve: 1.22.0 + rollup: 2.70.1 + dev: true + + /@rollup/pluginutils/3.1.0_rollup@2.70.1: + resolution: {integrity: sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==} + engines: {node: '>= 8.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0 + dependencies: + '@types/estree': 0.0.39 + estree-walker: 1.0.1 + picomatch: 2.3.1 + rollup: 2.70.1 + dev: true + + /@rollup/pluginutils/4.2.1: + resolution: {integrity: sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==} + engines: {node: '>= 8.0.0'} + dependencies: + estree-walker: 2.0.2 + picomatch: 2.3.1 + dev: true + + /@sinonjs/commons/1.8.3: + resolution: {integrity: sha512-xkNcLAn/wZaX14RPlwizcKicDk9G3F8m2nU3L7Ukm5zBgTwiT0wsoFAHx9Jq56fJA1z/7uKGtCRu16sOUCLIHQ==} + dependencies: + type-detect: 4.0.8 + dev: true + + /@sinonjs/fake-timers/8.1.0: + resolution: {integrity: sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==} + dependencies: + '@sinonjs/commons': 1.8.3 + dev: true + + /@sitespeed.io/tracium/0.3.3: + resolution: {integrity: sha512-dNZafjM93Y+F+sfwTO5gTpsGXlnc/0Q+c2+62ViqP3gkMWvHEMSKkaEHgVJLcLg3i/g19GSIPziiKpgyne07Bw==} + engines: {node: '>=8'} + dependencies: + debug: 4.3.4 + transitivePeerDependencies: + - supports-color + dev: true + + /@size-limit/file/7.0.8_size-limit@7.0.8: + resolution: {integrity: sha512-1KeFQuMXIXAH/iELqIX7x+YNYDFvzIvmxcp9PrdwEoSNL0dXdaDIo9WE/yz8xvOmUcKaLfqbWkL75DM0k91WHQ==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + peerDependencies: + size-limit: 7.0.8 + dependencies: + semver: 7.3.5 + size-limit: 7.0.8 + dev: true + + /@size-limit/preset-big-lib/7.0.8_anc2lsjfxouyorrd4cu43bu4nm: + resolution: {integrity: sha512-m9C+FPPmETg9vg3V3Aq4hTflX1GVRpjYO94C4gqrl26I5YqB+BlKf8WKHmna3IbmJyePf7M8qvya/ougzMVHkQ==} + peerDependencies: + size-limit: 7.0.8 + dependencies: + '@size-limit/file': 7.0.8_size-limit@7.0.8 + '@size-limit/time': 7.0.8_size-limit@7.0.8 + '@size-limit/webpack': 7.0.8_anc2lsjfxouyorrd4cu43bu4nm + size-limit: 7.0.8 + transitivePeerDependencies: + - '@swc/core' + - bufferutil + - encoding + - esbuild + - supports-color + - uglify-js + - utf-8-validate + - webpack-cli + dev: true + + /@size-limit/time/7.0.8_size-limit@7.0.8: + resolution: {integrity: sha512-CS3pHTxeQXgrrMbhlqYfSR+b4QGp1rjEcYYkByIP+X/Go88R44yp19tyBFmmCQzs2Te2BAxfq3jv8FG+54oBew==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + peerDependencies: + size-limit: 7.0.8 + dependencies: + estimo: 2.3.6 + react: 17.0.2 + size-limit: 7.0.8 + transitivePeerDependencies: + - bufferutil + - encoding + - supports-color + - utf-8-validate + dev: true + + /@size-limit/webpack/7.0.8_anc2lsjfxouyorrd4cu43bu4nm: + resolution: {integrity: sha512-69YuY0o4geRNJDb55Vri+bNPs9+WZlK0pzcziip1p4uajCFMFQE0K8pKj3vsIOUADdTcimfypHciriCY/qrnJQ==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + peerDependencies: + size-limit: 7.0.8 + dependencies: + escape-string-regexp: 4.0.0 + nanoid: 3.3.2 + size-limit: 7.0.8 + webpack: 5.73.0_@swc+core@1.2.165 + transitivePeerDependencies: + - '@swc/core' + - esbuild + - uglify-js + - webpack-cli + dev: true + + /@storybook/addon-actions/6.4.22: + resolution: {integrity: sha512-t2w3iLXFul+R/1ekYxIEzUOZZmvEa7EzUAVAuCHP4i6x0jBnTTZ7sAIUVRaxVREPguH5IqI/2OklYhKanty2Yw==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@storybook/addons': 6.4.22 + '@storybook/api': 6.4.22 + '@storybook/components': 6.4.22 + '@storybook/core-events': 6.4.22 + '@storybook/csf': 0.0.2--canary.87bc651.0 + '@storybook/theming': 6.4.22 + core-js: 3.21.1 + fast-deep-equal: 3.1.3 + global: 4.4.0 + lodash: 4.17.21 + polished: 4.2.2 + prop-types: 15.8.1 + react-inspector: 5.1.1 + regenerator-runtime: 0.13.9 + telejson: 5.3.3 + ts-dedent: 2.2.0 + util-deprecate: 1.0.2 + uuid-browser: 3.1.0 + transitivePeerDependencies: + - '@types/react' + dev: true + + /@storybook/addon-controls/6.4.22_hcfsmds2fshutdssjqluwm76uu: + resolution: {integrity: sha512-f/M/W+7UTEUnr/L6scBMvksq+ZA8GTfh3bomE5FtWyOyaFppq9k8daKAvdYNlzXAOrUUsoZVJDgpb20Z2VBiSQ==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@storybook/addons': 6.4.22 + '@storybook/api': 6.4.22 + '@storybook/client-logger': 6.4.22 + '@storybook/components': 6.4.22 + '@storybook/core-common': 6.4.22_hcfsmds2fshutdssjqluwm76uu + '@storybook/csf': 0.0.2--canary.87bc651.0 + '@storybook/node-logger': 6.4.22 + '@storybook/store': 6.4.22 + '@storybook/theming': 6.4.22 + core-js: 3.21.1 + lodash: 4.17.21 + ts-dedent: 2.2.0 + transitivePeerDependencies: + - '@types/react' + - eslint + - supports-color + - typescript + - vue-template-compiler + - webpack-cli + - webpack-command + dev: true + + /@storybook/addon-docs/6.4.22_lvtg7nnzyr43hwih556es7ptka: + resolution: {integrity: sha512-9j+i+W+BGHJuRe4jUrqk6ubCzP4fc1xgFS2o8pakRiZgPn5kUQPdkticmsyh1XeEJifwhqjKJvkEDrcsleytDA==} + peerDependencies: + '@storybook/angular': 6.4.22 + '@storybook/html': 6.4.22 + '@storybook/react': 6.4.22 + '@storybook/vue': 6.4.22 + '@storybook/vue3': 6.4.22 + '@storybook/web-components': 6.4.22 + lit: ^2.0.0 + lit-html: ^1.4.1 || ^2.0.0 + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + svelte: ^3.31.2 + sveltedoc-parser: ^4.1.0 + vue: ^2.6.10 || ^3.0.0 + webpack: '*' + peerDependenciesMeta: + '@storybook/angular': + optional: true + '@storybook/html': + optional: true + '@storybook/react': + optional: true + '@storybook/vue': + optional: true + '@storybook/vue3': + optional: true + '@storybook/web-components': + optional: true + lit: + optional: true + lit-html: + optional: true + react: + optional: true + react-dom: + optional: true + svelte: + optional: true + sveltedoc-parser: + optional: true + vue: + optional: true + webpack: + optional: true + dependencies: + '@babel/core': 7.17.9 + '@babel/generator': 7.17.9 + '@babel/parser': 7.17.9 + '@babel/plugin-transform-react-jsx': 7.17.3_@babel+core@7.17.9 + '@babel/preset-env': 7.16.11_@babel+core@7.17.9 + '@jest/transform': 26.6.2 + '@mdx-js/loader': 1.6.22 + '@mdx-js/mdx': 1.6.22 + '@mdx-js/react': 1.6.22 + '@storybook/addons': 6.4.22 + '@storybook/api': 6.4.22 + '@storybook/builder-webpack4': 6.4.22_hcfsmds2fshutdssjqluwm76uu + '@storybook/client-logger': 6.4.22 + '@storybook/components': 6.4.22 + '@storybook/core': 6.4.22_hcfsmds2fshutdssjqluwm76uu + '@storybook/core-events': 6.4.22 + '@storybook/csf': 0.0.2--canary.87bc651.0 + '@storybook/csf-tools': 6.4.22 + '@storybook/html': 6.4.22_tgvqbxx3i4v5lht4r2tvmykgia + '@storybook/node-logger': 6.4.22 + '@storybook/postinstall': 6.4.22 + '@storybook/preview-web': 6.4.22 + '@storybook/source-loader': 6.4.22 + '@storybook/store': 6.4.22 + '@storybook/theming': 6.4.22 + acorn: 7.4.1 + acorn-jsx: 5.3.2_acorn@7.4.1 + acorn-walk: 7.2.0 + core-js: 3.21.1 + doctrine: 3.0.0 + escodegen: 2.0.0 + fast-deep-equal: 3.1.3 + global: 4.4.0 + html-tags: 3.2.0 + js-string-escape: 1.0.1 + loader-utils: 2.0.2 + lodash: 4.17.21 + nanoid: 3.3.2 + p-limit: 3.1.0 + prettier: 2.3.0 + prop-types: 15.8.1 + react-element-to-jsx-string: 14.3.4 + regenerator-runtime: 0.13.9 + remark-external-links: 8.0.0 + remark-slug: 6.1.0 + ts-dedent: 2.2.0 + util-deprecate: 1.0.2 + transitivePeerDependencies: + - '@storybook/builder-webpack5' + - '@storybook/manager-webpack5' + - '@types/react' + - bluebird + - bufferutil + - encoding + - eslint + - supports-color + - typescript + - utf-8-validate + - vue-template-compiler + - webpack-cli + - webpack-command + dev: true + + /@storybook/addon-storyshots-puppeteer/6.4.22_5zz26kkq7xnazxxhwflpw3gdw4: + resolution: {integrity: sha512-vmi0slsy8jo+NZL+KSDSvm71vKPv4EKH4xZvZgCAQ6Pm47KgmQxce1tVchmEtP4cBCmhTx7VHjDEe+QgtBvtDw==} + peerDependencies: + '@storybook/addon-storyshots': 6.4.22 + puppeteer: ^2.0.0 || ^3.0.0 + peerDependenciesMeta: + puppeteer: + optional: true + dependencies: + '@axe-core/puppeteer': 4.4.2_puppeteer@14.0.0 + '@storybook/addon-storyshots': 6.4.22_dd4i5mzpotzxf2zfmskcgyw5ia + '@storybook/csf': 0.0.2--canary.87bc651.0 + '@storybook/node-logger': 6.4.22 + '@types/jest-image-snapshot': 4.3.1 + core-js: 3.21.1 + jest-image-snapshot: 4.5.1_jest@27.5.1 + puppeteer: 14.0.0 + regenerator-runtime: 0.13.9 + transitivePeerDependencies: + - jest + dev: true + + /@storybook/addon-storyshots/6.4.22_dd4i5mzpotzxf2zfmskcgyw5ia: + resolution: {integrity: sha512-9u+uigHH4khxHB18z1TOau+RKpLo/8tdhvKVqgjy6pr3FSsgp+JyoI+ubDtgWAWFHQ0Zhh5MBWNDmPOo5pwBdA==} + peerDependencies: + '@angular/core': '>=6.0.0' + '@angular/platform-browser-dynamic': '>=6.0.0' + '@storybook/angular': '*' + '@storybook/react': '*' + '@storybook/vue': '*' + '@storybook/vue3': '*' + jest: '*' + jest-preset-angular: '*' + jest-vue-preprocessor: '*' + preact: ^10.5.13 + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + rxjs: '*' + svelte: '*' + vue: '*' + vue-jest: '*' + peerDependenciesMeta: + '@angular/core': + optional: true + '@angular/platform-browser-dynamic': + optional: true + '@storybook/angular': + optional: true + '@storybook/react': + optional: true + '@storybook/vue': + optional: true + '@storybook/vue3': + optional: true + jest-preset-angular: + optional: true + jest-vue-preprocessor: + optional: true + preact: + optional: true + react: + optional: true + react-dom: + optional: true + rxjs: + optional: true + svelte: + optional: true + vue: + optional: true + vue-jest: + optional: true + dependencies: + '@jest/transform': 26.6.2 + '@storybook/addons': 6.4.22 + '@storybook/babel-plugin-require-context-hook': 1.0.1 + '@storybook/client-api': 6.4.22 + '@storybook/core': 6.4.22_hcfsmds2fshutdssjqluwm76uu + '@storybook/core-client': 6.4.22_typescript@4.6.4 + '@storybook/core-common': 6.4.22_hcfsmds2fshutdssjqluwm76uu + '@storybook/csf': 0.0.2--canary.87bc651.0 + '@types/glob': 7.2.0 + '@types/jest': 26.0.24 + '@types/jest-specific-snapshot': 0.5.5 + core-js: 3.21.1 + glob: 7.2.0 + global: 4.4.0 + jest: 27.5.1 + jest-specific-snapshot: 4.0.0_jest@27.5.1 + preact-render-to-string: 5.2.0 + pretty-format: 26.6.2 + react-test-renderer: 17.0.2 + read-pkg-up: 7.0.1 + regenerator-runtime: 0.13.9 + ts-dedent: 2.2.0 + transitivePeerDependencies: + - '@storybook/builder-webpack5' + - '@storybook/manager-webpack5' + - '@types/react' + - bluebird + - bufferutil + - encoding + - eslint + - supports-color + - typescript + - utf-8-validate + - vue-template-compiler + - webpack + - webpack-cli + - webpack-command + dev: true + + /@storybook/addon-viewport/6.4.22: + resolution: {integrity: sha512-6jk0z49LemeTblez5u2bYXYr6U+xIdLbywe3G283+PZCBbEDE6eNYy2d2HDL+LbCLbezJBLYPHPalElphjJIcw==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + dependencies: + '@storybook/addons': 6.4.22 + '@storybook/api': 6.4.22 + '@storybook/client-logger': 6.4.22 + '@storybook/components': 6.4.22 + '@storybook/core-events': 6.4.22 + '@storybook/theming': 6.4.22 + core-js: 3.21.1 + global: 4.4.0 + memoizerific: 1.11.3 + prop-types: 15.8.1 + regenerator-runtime: 0.13.9 + transitivePeerDependencies: + - '@types/react' + dev: true + + /@storybook/addons/6.4.22: + resolution: {integrity: sha512-P/R+Jsxh7pawKLYo8MtE3QU/ilRFKbtCewV/T1o5U/gm8v7hKQdFz3YdRMAra4QuCY8bQIp7MKd2HrB5aH5a1A==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + dependencies: + '@storybook/api': 6.4.22 + '@storybook/channels': 6.4.22 + '@storybook/client-logger': 6.4.22 + '@storybook/core-events': 6.4.22 + '@storybook/csf': 0.0.2--canary.87bc651.0 + '@storybook/router': 6.4.22 + '@storybook/theming': 6.4.22 + '@types/webpack-env': 1.16.3 + core-js: 3.21.1 + global: 4.4.0 + regenerator-runtime: 0.13.9 + dev: true + + /@storybook/addons/6.4.22_wcqkhtmu7mswc6yz4uyexck3ty: + resolution: {integrity: sha512-P/R+Jsxh7pawKLYo8MtE3QU/ilRFKbtCewV/T1o5U/gm8v7hKQdFz3YdRMAra4QuCY8bQIp7MKd2HrB5aH5a1A==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + dependencies: + '@storybook/api': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/channels': 6.4.22 + '@storybook/client-logger': 6.4.22 + '@storybook/core-events': 6.4.22 + '@storybook/csf': 0.0.2--canary.87bc651.0 + '@storybook/router': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/theming': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@types/webpack-env': 1.16.3 + core-js: 3.21.1 + global: 4.4.0 + react: 16.14.0 + react-dom: 16.14.0_react@16.14.0 + regenerator-runtime: 0.13.9 + dev: true + + /@storybook/api/6.4.22: + resolution: {integrity: sha512-lAVI3o2hKupYHXFTt+1nqFct942up5dHH6YD7SZZJGyW21dwKC3HK1IzCsTawq3fZAKkgWFgmOO649hKk60yKg==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + dependencies: + '@storybook/channels': 6.4.22 + '@storybook/client-logger': 6.4.22 + '@storybook/core-events': 6.4.22 + '@storybook/csf': 0.0.2--canary.87bc651.0 + '@storybook/router': 6.4.22 + '@storybook/semver': 7.3.2 + '@storybook/theming': 6.4.22 + core-js: 3.21.1 + fast-deep-equal: 3.1.3 + global: 4.4.0 + lodash: 4.17.21 + memoizerific: 1.11.3 + regenerator-runtime: 0.13.9 + store2: 2.13.2 + telejson: 5.3.3 + ts-dedent: 2.2.0 + util-deprecate: 1.0.2 + dev: true + + /@storybook/api/6.4.22_wcqkhtmu7mswc6yz4uyexck3ty: + resolution: {integrity: sha512-lAVI3o2hKupYHXFTt+1nqFct942up5dHH6YD7SZZJGyW21dwKC3HK1IzCsTawq3fZAKkgWFgmOO649hKk60yKg==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + dependencies: + '@storybook/channels': 6.4.22 + '@storybook/client-logger': 6.4.22 + '@storybook/core-events': 6.4.22 + '@storybook/csf': 0.0.2--canary.87bc651.0 + '@storybook/router': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/semver': 7.3.2 + '@storybook/theming': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + core-js: 3.21.1 + fast-deep-equal: 3.1.3 + global: 4.4.0 + lodash: 4.17.21 + memoizerific: 1.11.3 + react: 16.14.0 + react-dom: 16.14.0_react@16.14.0 + regenerator-runtime: 0.13.9 + store2: 2.13.2 + telejson: 5.3.3 + ts-dedent: 2.2.0 + util-deprecate: 1.0.2 + dev: true + + /@storybook/babel-plugin-require-context-hook/1.0.1: + resolution: {integrity: sha512-WM4vjgSVi8epvGiYfru7BtC3f0tGwNs7QK3Uc4xQn4t5hHQvISnCqbNrHdDYmNW56Do+bBztE8SwP6NGUvd7ww==} + dev: true + + /@storybook/builder-webpack4/6.4.22_hcfsmds2fshutdssjqluwm76uu: + resolution: {integrity: sha512-A+GgGtKGnBneRFSFkDarUIgUTI8pYFdLmUVKEAGdh2hL+vLXAz9A46sEY7C8LQ85XWa8TKy3OTDxqR4+4iWj3A==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@babel/core': 7.17.9 + '@babel/plugin-proposal-class-properties': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-decorators': 7.17.9_@babel+core@7.17.9 + '@babel/plugin-proposal-export-default-from': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-nullish-coalescing-operator': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-object-rest-spread': 7.17.3_@babel+core@7.17.9 + '@babel/plugin-proposal-optional-chaining': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-private-methods': 7.16.11_@babel+core@7.17.9 + '@babel/plugin-syntax-dynamic-import': 7.8.3_@babel+core@7.17.9 + '@babel/plugin-transform-arrow-functions': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-block-scoping': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-classes': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-destructuring': 7.17.7_@babel+core@7.17.9 + '@babel/plugin-transform-for-of': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-parameters': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-shorthand-properties': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-spread': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-template-literals': 7.16.7_@babel+core@7.17.9 + '@babel/preset-env': 7.16.11_@babel+core@7.17.9 + '@babel/preset-react': 7.16.7_@babel+core@7.17.9 + '@babel/preset-typescript': 7.16.7_@babel+core@7.17.9 + '@storybook/addons': 6.4.22 + '@storybook/api': 6.4.22 + '@storybook/channel-postmessage': 6.4.22 + '@storybook/channels': 6.4.22 + '@storybook/client-api': 6.4.22 + '@storybook/client-logger': 6.4.22 + '@storybook/components': 6.4.22 + '@storybook/core-common': 6.4.22_hcfsmds2fshutdssjqluwm76uu + '@storybook/core-events': 6.4.22 + '@storybook/node-logger': 6.4.22 + '@storybook/preview-web': 6.4.22 + '@storybook/router': 6.4.22 + '@storybook/semver': 7.3.2 + '@storybook/store': 6.4.22 + '@storybook/theming': 6.4.22 + '@storybook/ui': 6.4.22 + '@types/node': 14.18.13 + '@types/webpack': 4.41.32 + autoprefixer: 9.8.8 + babel-loader: 8.2.4_lgfes7hlvohbl3uptzldef4omm + babel-plugin-macros: 2.8.0 + babel-plugin-polyfill-corejs3: 0.1.7_@babel+core@7.17.9 + case-sensitive-paths-webpack-plugin: 2.4.0 + core-js: 3.21.1 + css-loader: 3.6.0_webpack@4.46.0 + file-loader: 6.2.0_webpack@4.46.0 + find-up: 5.0.0 + fork-ts-checker-webpack-plugin: 4.1.6_7wnmsrtcnse6htziqnucw6w67m + glob: 7.2.0 + glob-promise: 3.4.0_glob@7.2.0 + global: 4.4.0 + html-webpack-plugin: 4.5.2_webpack@4.46.0 + pnp-webpack-plugin: 1.6.4_typescript@4.6.4 + postcss: 7.0.39 + postcss-flexbugs-fixes: 4.2.1 + postcss-loader: 4.3.0_gzaxsinx64nntyd3vmdqwl7coe + raw-loader: 4.0.2_webpack@4.46.0 + stable: 0.1.8 + style-loader: 1.3.0_webpack@4.46.0 + terser-webpack-plugin: 4.2.3_webpack@4.46.0 + ts-dedent: 2.2.0 + typescript: 4.6.4 + url-loader: 4.1.1_lit45vopotvaqup7lrvlnvtxwy + util-deprecate: 1.0.2 + webpack: 4.46.0 + webpack-dev-middleware: 3.7.3_webpack@4.46.0 + webpack-filter-warnings-plugin: 1.2.1_webpack@4.46.0 + webpack-hot-middleware: 2.25.1 + webpack-virtual-modules: 0.2.2 + transitivePeerDependencies: + - '@types/react' + - bluebird + - eslint + - supports-color + - vue-template-compiler + - webpack-cli + - webpack-command + dev: true + + /@storybook/builder-webpack4/6.4.22_nalhyreo77vi3hkli4u32qimte: + resolution: {integrity: sha512-A+GgGtKGnBneRFSFkDarUIgUTI8pYFdLmUVKEAGdh2hL+vLXAz9A46sEY7C8LQ85XWa8TKy3OTDxqR4+4iWj3A==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@babel/core': 7.17.9 + '@babel/plugin-proposal-class-properties': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-decorators': 7.17.9_@babel+core@7.17.9 + '@babel/plugin-proposal-export-default-from': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-nullish-coalescing-operator': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-object-rest-spread': 7.17.3_@babel+core@7.17.9 + '@babel/plugin-proposal-optional-chaining': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-private-methods': 7.16.11_@babel+core@7.17.9 + '@babel/plugin-syntax-dynamic-import': 7.8.3_@babel+core@7.17.9 + '@babel/plugin-transform-arrow-functions': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-block-scoping': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-classes': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-destructuring': 7.17.7_@babel+core@7.17.9 + '@babel/plugin-transform-for-of': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-parameters': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-shorthand-properties': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-spread': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-template-literals': 7.16.7_@babel+core@7.17.9 + '@babel/preset-env': 7.16.11_@babel+core@7.17.9 + '@babel/preset-react': 7.16.7_@babel+core@7.17.9 + '@babel/preset-typescript': 7.16.7_@babel+core@7.17.9 + '@storybook/addons': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/api': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/channel-postmessage': 6.4.22 + '@storybook/channels': 6.4.22 + '@storybook/client-api': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/client-logger': 6.4.22 + '@storybook/components': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/core-common': 6.4.22_nalhyreo77vi3hkli4u32qimte + '@storybook/core-events': 6.4.22 + '@storybook/node-logger': 6.4.22 + '@storybook/preview-web': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/router': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/semver': 7.3.2 + '@storybook/store': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/theming': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/ui': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@types/node': 14.18.13 + '@types/webpack': 4.41.32 + autoprefixer: 9.8.8 + babel-loader: 8.2.4_lgfes7hlvohbl3uptzldef4omm + babel-plugin-macros: 2.8.0 + babel-plugin-polyfill-corejs3: 0.1.7_@babel+core@7.17.9 + case-sensitive-paths-webpack-plugin: 2.4.0 + core-js: 3.21.1 + css-loader: 3.6.0_webpack@4.46.0 + file-loader: 6.2.0_webpack@4.46.0 + find-up: 5.0.0 + fork-ts-checker-webpack-plugin: 4.1.6_7wnmsrtcnse6htziqnucw6w67m + glob: 7.2.0 + glob-promise: 3.4.0_glob@7.2.0 + global: 4.4.0 + html-webpack-plugin: 4.5.2_webpack@4.46.0 + pnp-webpack-plugin: 1.6.4_typescript@4.6.4 + postcss: 7.0.39 + postcss-flexbugs-fixes: 4.2.1 + postcss-loader: 4.3.0_gzaxsinx64nntyd3vmdqwl7coe + raw-loader: 4.0.2_webpack@4.46.0 + react: 16.14.0 + react-dom: 16.14.0_react@16.14.0 + stable: 0.1.8 + style-loader: 1.3.0_webpack@4.46.0 + terser-webpack-plugin: 4.2.3_webpack@4.46.0 + ts-dedent: 2.2.0 + typescript: 4.6.4 + url-loader: 4.1.1_lit45vopotvaqup7lrvlnvtxwy + util-deprecate: 1.0.2 + webpack: 4.46.0 + webpack-dev-middleware: 3.7.3_webpack@4.46.0 + webpack-filter-warnings-plugin: 1.2.1_webpack@4.46.0 + webpack-hot-middleware: 2.25.1 + webpack-virtual-modules: 0.2.2 + transitivePeerDependencies: + - '@types/react' + - bluebird + - eslint + - supports-color + - vue-template-compiler + - webpack-cli + - webpack-command + dev: true + + /@storybook/channel-postmessage/6.4.22: + resolution: {integrity: sha512-gt+0VZLszt2XZyQMh8E94TqjHZ8ZFXZ+Lv/Mmzl0Yogsc2H+6VzTTQO4sv0IIx6xLbpgG72g5cr8VHsxW5kuDQ==} + dependencies: + '@storybook/channels': 6.4.22 + '@storybook/client-logger': 6.4.22 + '@storybook/core-events': 6.4.22 + core-js: 3.21.1 + global: 4.4.0 + qs: 6.10.3 + telejson: 5.3.3 + dev: true + + /@storybook/channel-websocket/6.4.22: + resolution: {integrity: sha512-Bm/FcZ4Su4SAK5DmhyKKfHkr7HiHBui6PNutmFkASJInrL9wBduBfN8YQYaV7ztr8ezoHqnYRx8sj28jpwa6NA==} + dependencies: + '@storybook/channels': 6.4.22 + '@storybook/client-logger': 6.4.22 + core-js: 3.21.1 + global: 4.4.0 + telejson: 5.3.3 + dev: true + + /@storybook/channels/6.4.22: + resolution: {integrity: sha512-cfR74tu7MLah1A8Rru5sak71I+kH2e/sY6gkpVmlvBj4hEmdZp4Puj9PTeaKcMXh9DgIDPNA5mb8yvQH6VcyxQ==} + dependencies: + core-js: 3.21.1 + ts-dedent: 2.2.0 + util-deprecate: 1.0.2 + dev: true + + /@storybook/client-api/6.4.22: + resolution: {integrity: sha512-sO6HJNtrrdit7dNXQcZMdlmmZG1k6TswH3gAyP/DoYajycrTwSJ6ovkarzkO+0QcJ+etgra4TEdTIXiGHBMe/A==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + dependencies: + '@storybook/addons': 6.4.22 + '@storybook/channel-postmessage': 6.4.22 + '@storybook/channels': 6.4.22 + '@storybook/client-logger': 6.4.22 + '@storybook/core-events': 6.4.22 + '@storybook/csf': 0.0.2--canary.87bc651.0 + '@storybook/store': 6.4.22 + '@types/qs': 6.9.7 + '@types/webpack-env': 1.16.3 + core-js: 3.21.1 + fast-deep-equal: 3.1.3 + global: 4.4.0 + lodash: 4.17.21 + memoizerific: 1.11.3 + qs: 6.10.3 + regenerator-runtime: 0.13.9 + store2: 2.13.2 + synchronous-promise: 2.0.15 + ts-dedent: 2.2.0 + util-deprecate: 1.0.2 + dev: true + + /@storybook/client-api/6.4.22_wcqkhtmu7mswc6yz4uyexck3ty: + resolution: {integrity: sha512-sO6HJNtrrdit7dNXQcZMdlmmZG1k6TswH3gAyP/DoYajycrTwSJ6ovkarzkO+0QcJ+etgra4TEdTIXiGHBMe/A==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + dependencies: + '@storybook/addons': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/channel-postmessage': 6.4.22 + '@storybook/channels': 6.4.22 + '@storybook/client-logger': 6.4.22 + '@storybook/core-events': 6.4.22 + '@storybook/csf': 0.0.2--canary.87bc651.0 + '@storybook/store': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@types/qs': 6.9.7 + '@types/webpack-env': 1.16.3 + core-js: 3.21.1 + fast-deep-equal: 3.1.3 + global: 4.4.0 + lodash: 4.17.21 + memoizerific: 1.11.3 + qs: 6.10.3 + react: 16.14.0 + react-dom: 16.14.0_react@16.14.0 + regenerator-runtime: 0.13.9 + store2: 2.13.2 + synchronous-promise: 2.0.15 + ts-dedent: 2.2.0 + util-deprecate: 1.0.2 + dev: true + + /@storybook/client-logger/6.4.22: + resolution: {integrity: sha512-LXhxh/lcDsdGnK8kimqfhu3C0+D2ylCSPPQNbU0IsLRmTfbpQYMdyl0XBjPdHiRVwlL7Gkw5OMjYemQgJ02zlw==} + dependencies: + core-js: 3.21.1 + global: 4.4.0 + dev: true + + /@storybook/components/6.4.22: + resolution: {integrity: sha512-dCbXIJF9orMvH72VtAfCQsYbe57OP7fAADtR6YTwfCw9Sm1jFuZr8JbblQ1HcrXEoJG21nOyad3Hm5EYVb/sBw==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + dependencies: + '@popperjs/core': 2.11.5 + '@storybook/client-logger': 6.4.22 + '@storybook/csf': 0.0.2--canary.87bc651.0 + '@storybook/theming': 6.4.22 + '@types/color-convert': 2.0.0 + '@types/overlayscrollbars': 1.12.1 + '@types/react-syntax-highlighter': 11.0.5 + color-convert: 2.0.1 + core-js: 3.21.1 + fast-deep-equal: 3.1.3 + global: 4.4.0 + lodash: 4.17.21 + markdown-to-jsx: 7.1.7 + memoizerific: 1.11.3 + overlayscrollbars: 1.13.1 + polished: 4.2.2 + prop-types: 15.8.1 + react-colorful: 5.5.1 + react-popper-tooltip: 3.1.1 + react-syntax-highlighter: 13.5.3 + react-textarea-autosize: 8.3.3 + regenerator-runtime: 0.13.9 + ts-dedent: 2.2.0 + util-deprecate: 1.0.2 + transitivePeerDependencies: + - '@types/react' + dev: true + + /@storybook/components/6.4.22_wcqkhtmu7mswc6yz4uyexck3ty: + resolution: {integrity: sha512-dCbXIJF9orMvH72VtAfCQsYbe57OP7fAADtR6YTwfCw9Sm1jFuZr8JbblQ1HcrXEoJG21nOyad3Hm5EYVb/sBw==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + dependencies: + '@popperjs/core': 2.11.5 + '@storybook/client-logger': 6.4.22 + '@storybook/csf': 0.0.2--canary.87bc651.0 + '@storybook/theming': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@types/color-convert': 2.0.0 + '@types/overlayscrollbars': 1.12.1 + '@types/react-syntax-highlighter': 11.0.5 + color-convert: 2.0.1 + core-js: 3.21.1 + fast-deep-equal: 3.1.3 + global: 4.4.0 + lodash: 4.17.21 + markdown-to-jsx: 7.1.7_react@16.14.0 + memoizerific: 1.11.3 + overlayscrollbars: 1.13.1 + polished: 4.2.2 + prop-types: 15.8.1 + react: 16.14.0 + react-colorful: 5.5.1_wcqkhtmu7mswc6yz4uyexck3ty + react-dom: 16.14.0_react@16.14.0 + react-popper-tooltip: 3.1.1_wcqkhtmu7mswc6yz4uyexck3ty + react-syntax-highlighter: 13.5.3_react@16.14.0 + react-textarea-autosize: 8.3.3_react@16.14.0 + regenerator-runtime: 0.13.9 + ts-dedent: 2.2.0 + util-deprecate: 1.0.2 + transitivePeerDependencies: + - '@types/react' + dev: true + + /@storybook/core-client/6.4.22_cwlozgewa6mwrqrx5qbsrarjcq: + resolution: {integrity: sha512-uHg4yfCBeM6eASSVxStWRVTZrAnb4FT6X6v/xDqr4uXCpCttZLlBzrSDwPBLNNLtCa7ntRicHM8eGKIOD5lMYQ==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + typescript: '*' + webpack: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@storybook/addons': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/channel-postmessage': 6.4.22 + '@storybook/channel-websocket': 6.4.22 + '@storybook/client-api': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/client-logger': 6.4.22 + '@storybook/core-events': 6.4.22 + '@storybook/csf': 0.0.2--canary.87bc651.0 + '@storybook/preview-web': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/store': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/ui': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + airbnb-js-shims: 2.2.1 + ansi-to-html: 0.6.15 + core-js: 3.21.1 + global: 4.4.0 + lodash: 4.17.21 + qs: 6.10.3 + react: 16.14.0 + react-dom: 16.14.0_react@16.14.0 + regenerator-runtime: 0.13.9 + ts-dedent: 2.2.0 + typescript: 4.6.4 + unfetch: 4.2.0 + util-deprecate: 1.0.2 + transitivePeerDependencies: + - '@types/react' + dev: true + + /@storybook/core-client/6.4.22_d6fpg2ullfkn4dktgmyqz75y3y: + resolution: {integrity: sha512-uHg4yfCBeM6eASSVxStWRVTZrAnb4FT6X6v/xDqr4uXCpCttZLlBzrSDwPBLNNLtCa7ntRicHM8eGKIOD5lMYQ==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + typescript: '*' + webpack: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@storybook/addons': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/channel-postmessage': 6.4.22 + '@storybook/channel-websocket': 6.4.22 + '@storybook/client-api': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/client-logger': 6.4.22 + '@storybook/core-events': 6.4.22 + '@storybook/csf': 0.0.2--canary.87bc651.0 + '@storybook/preview-web': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/store': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/ui': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + airbnb-js-shims: 2.2.1 + ansi-to-html: 0.6.15 + core-js: 3.21.1 + global: 4.4.0 + lodash: 4.17.21 + qs: 6.10.3 + react: 16.14.0 + react-dom: 16.14.0_react@16.14.0 + regenerator-runtime: 0.13.9 + ts-dedent: 2.2.0 + typescript: 4.6.4 + unfetch: 4.2.0 + util-deprecate: 1.0.2 + webpack: 4.46.0 + transitivePeerDependencies: + - '@types/react' + dev: true + + /@storybook/core-client/6.4.22_typescript@4.6.4: + resolution: {integrity: sha512-uHg4yfCBeM6eASSVxStWRVTZrAnb4FT6X6v/xDqr4uXCpCttZLlBzrSDwPBLNNLtCa7ntRicHM8eGKIOD5lMYQ==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + typescript: '*' + webpack: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@storybook/addons': 6.4.22 + '@storybook/channel-postmessage': 6.4.22 + '@storybook/channel-websocket': 6.4.22 + '@storybook/client-api': 6.4.22 + '@storybook/client-logger': 6.4.22 + '@storybook/core-events': 6.4.22 + '@storybook/csf': 0.0.2--canary.87bc651.0 + '@storybook/preview-web': 6.4.22 + '@storybook/store': 6.4.22 + '@storybook/ui': 6.4.22 + airbnb-js-shims: 2.2.1 + ansi-to-html: 0.6.15 + core-js: 3.21.1 + global: 4.4.0 + lodash: 4.17.21 + qs: 6.10.3 + regenerator-runtime: 0.13.9 + ts-dedent: 2.2.0 + typescript: 4.6.4 + unfetch: 4.2.0 + util-deprecate: 1.0.2 + transitivePeerDependencies: + - '@types/react' + dev: true + + /@storybook/core-client/6.4.22_u7kjabuvawcog7hjctusduehvm: + resolution: {integrity: sha512-uHg4yfCBeM6eASSVxStWRVTZrAnb4FT6X6v/xDqr4uXCpCttZLlBzrSDwPBLNNLtCa7ntRicHM8eGKIOD5lMYQ==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + typescript: '*' + webpack: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@storybook/addons': 6.4.22 + '@storybook/channel-postmessage': 6.4.22 + '@storybook/channel-websocket': 6.4.22 + '@storybook/client-api': 6.4.22 + '@storybook/client-logger': 6.4.22 + '@storybook/core-events': 6.4.22 + '@storybook/csf': 0.0.2--canary.87bc651.0 + '@storybook/preview-web': 6.4.22 + '@storybook/store': 6.4.22 + '@storybook/ui': 6.4.22 + airbnb-js-shims: 2.2.1 + ansi-to-html: 0.6.15 + core-js: 3.21.1 + global: 4.4.0 + lodash: 4.17.21 + qs: 6.10.3 + regenerator-runtime: 0.13.9 + ts-dedent: 2.2.0 + typescript: 4.6.4 + unfetch: 4.2.0 + util-deprecate: 1.0.2 + webpack: 4.46.0 + transitivePeerDependencies: + - '@types/react' + dev: true + + /@storybook/core-common/6.4.22_hcfsmds2fshutdssjqluwm76uu: + resolution: {integrity: sha512-PD3N/FJXPNRHeQS2zdgzYFtqPLdi3MLwAicbnw+U3SokcsspfsAuyYHZOYZgwO8IAEKy6iCc7TpBdiSJZ/vAKQ==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@babel/core': 7.17.9 + '@babel/plugin-proposal-class-properties': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-decorators': 7.17.9_@babel+core@7.17.9 + '@babel/plugin-proposal-export-default-from': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-nullish-coalescing-operator': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-object-rest-spread': 7.17.3_@babel+core@7.17.9 + '@babel/plugin-proposal-optional-chaining': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-private-methods': 7.16.11_@babel+core@7.17.9 + '@babel/plugin-syntax-dynamic-import': 7.8.3_@babel+core@7.17.9 + '@babel/plugin-transform-arrow-functions': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-block-scoping': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-classes': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-destructuring': 7.17.7_@babel+core@7.17.9 + '@babel/plugin-transform-for-of': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-parameters': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-shorthand-properties': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-spread': 7.16.7_@babel+core@7.17.9 + '@babel/preset-env': 7.16.11_@babel+core@7.17.9 + '@babel/preset-react': 7.16.7_@babel+core@7.17.9 + '@babel/preset-typescript': 7.16.7_@babel+core@7.17.9 + '@babel/register': 7.17.7_@babel+core@7.17.9 + '@storybook/node-logger': 6.4.22 + '@storybook/semver': 7.3.2 + '@types/node': 14.18.13 + '@types/pretty-hrtime': 1.0.1 + babel-loader: 8.2.4_lgfes7hlvohbl3uptzldef4omm + babel-plugin-macros: 3.1.0 + babel-plugin-polyfill-corejs3: 0.1.7_@babel+core@7.17.9 + chalk: 4.1.2 + core-js: 3.21.1 + express: 4.17.3 + file-system-cache: 1.0.5 + find-up: 5.0.0 + fork-ts-checker-webpack-plugin: 6.5.1_7wnmsrtcnse6htziqnucw6w67m + fs-extra: 9.1.0 + glob: 7.2.0 + handlebars: 4.7.7 + interpret: 2.2.0 + json5: 2.2.1 + lazy-universal-dotenv: 3.0.1 + picomatch: 2.3.1 + pkg-dir: 5.0.0 + pretty-hrtime: 1.0.3 + resolve-from: 5.0.0 + slash: 3.0.0 + telejson: 5.3.3 + ts-dedent: 2.2.0 + typescript: 4.6.4 + util-deprecate: 1.0.2 + webpack: 4.46.0 + transitivePeerDependencies: + - eslint + - supports-color + - vue-template-compiler + - webpack-cli + - webpack-command + dev: true + + /@storybook/core-common/6.4.22_nalhyreo77vi3hkli4u32qimte: + resolution: {integrity: sha512-PD3N/FJXPNRHeQS2zdgzYFtqPLdi3MLwAicbnw+U3SokcsspfsAuyYHZOYZgwO8IAEKy6iCc7TpBdiSJZ/vAKQ==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@babel/core': 7.17.9 + '@babel/plugin-proposal-class-properties': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-decorators': 7.17.9_@babel+core@7.17.9 + '@babel/plugin-proposal-export-default-from': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-nullish-coalescing-operator': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-object-rest-spread': 7.17.3_@babel+core@7.17.9 + '@babel/plugin-proposal-optional-chaining': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-proposal-private-methods': 7.16.11_@babel+core@7.17.9 + '@babel/plugin-syntax-dynamic-import': 7.8.3_@babel+core@7.17.9 + '@babel/plugin-transform-arrow-functions': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-block-scoping': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-classes': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-destructuring': 7.17.7_@babel+core@7.17.9 + '@babel/plugin-transform-for-of': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-parameters': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-shorthand-properties': 7.16.7_@babel+core@7.17.9 + '@babel/plugin-transform-spread': 7.16.7_@babel+core@7.17.9 + '@babel/preset-env': 7.16.11_@babel+core@7.17.9 + '@babel/preset-react': 7.16.7_@babel+core@7.17.9 + '@babel/preset-typescript': 7.16.7_@babel+core@7.17.9 + '@babel/register': 7.17.7_@babel+core@7.17.9 + '@storybook/node-logger': 6.4.22 + '@storybook/semver': 7.3.2 + '@types/node': 14.18.13 + '@types/pretty-hrtime': 1.0.1 + babel-loader: 8.2.4_lgfes7hlvohbl3uptzldef4omm + babel-plugin-macros: 3.1.0 + babel-plugin-polyfill-corejs3: 0.1.7_@babel+core@7.17.9 + chalk: 4.1.2 + core-js: 3.21.1 + express: 4.17.3 + file-system-cache: 1.0.5 + find-up: 5.0.0 + fork-ts-checker-webpack-plugin: 6.5.1_7wnmsrtcnse6htziqnucw6w67m + fs-extra: 9.1.0 + glob: 7.2.0 + handlebars: 4.7.7 + interpret: 2.2.0 + json5: 2.2.1 + lazy-universal-dotenv: 3.0.1 + picomatch: 2.3.1 + pkg-dir: 5.0.0 + pretty-hrtime: 1.0.3 + react: 16.14.0 + react-dom: 16.14.0_react@16.14.0 + resolve-from: 5.0.0 + slash: 3.0.0 + telejson: 5.3.3 + ts-dedent: 2.2.0 + typescript: 4.6.4 + util-deprecate: 1.0.2 + webpack: 4.46.0 + transitivePeerDependencies: + - eslint + - supports-color + - vue-template-compiler + - webpack-cli + - webpack-command + dev: true + + /@storybook/core-events/6.4.22: + resolution: {integrity: sha512-5GYY5+1gd58Gxjqex27RVaX6qbfIQmJxcbzbNpXGNSqwqAuIIepcV1rdCVm6I4C3Yb7/AQ3cN5dVbf33QxRIwA==} + dependencies: + core-js: 3.21.1 + dev: true + + /@storybook/core-server/6.4.22_hcfsmds2fshutdssjqluwm76uu: + resolution: {integrity: sha512-wFh3e2fa0un1d4+BJP+nd3FVWUO7uHTqv3OGBfOmzQMKp4NU1zaBNdSQG7Hz6mw0fYPBPZgBjPfsJRwIYLLZyw==} + peerDependencies: + '@storybook/builder-webpack5': 6.4.22 + '@storybook/manager-webpack5': 6.4.22 + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + typescript: '*' + peerDependenciesMeta: + '@storybook/builder-webpack5': + optional: true + '@storybook/manager-webpack5': + optional: true + typescript: + optional: true + dependencies: + '@discoveryjs/json-ext': 0.5.7 + '@storybook/builder-webpack4': 6.4.22_hcfsmds2fshutdssjqluwm76uu + '@storybook/core-client': 6.4.22_u7kjabuvawcog7hjctusduehvm + '@storybook/core-common': 6.4.22_hcfsmds2fshutdssjqluwm76uu + '@storybook/core-events': 6.4.22 + '@storybook/csf': 0.0.2--canary.87bc651.0 + '@storybook/csf-tools': 6.4.22 + '@storybook/manager-webpack4': 6.4.22_hcfsmds2fshutdssjqluwm76uu + '@storybook/node-logger': 6.4.22 + '@storybook/semver': 7.3.2 + '@storybook/store': 6.4.22 + '@types/node': 14.18.13 + '@types/node-fetch': 2.6.1 + '@types/pretty-hrtime': 1.0.1 + '@types/webpack': 4.41.32 + better-opn: 2.1.1 + boxen: 5.1.2 + chalk: 4.1.2 + cli-table3: 0.6.2 + commander: 6.2.1 + compression: 1.7.4 + core-js: 3.21.1 + cpy: 8.1.2 + detect-port: 1.3.0 + express: 4.17.3 + file-system-cache: 1.0.5 + fs-extra: 9.1.0 + globby: 11.1.0 + ip: 1.1.5 + lodash: 4.17.21 + node-fetch: 2.6.7 + pretty-hrtime: 1.0.3 + prompts: 2.4.2 + regenerator-runtime: 0.13.9 + serve-favicon: 2.5.0 + slash: 3.0.0 + telejson: 5.3.3 + ts-dedent: 2.2.0 + typescript: 4.6.4 + util-deprecate: 1.0.2 + watchpack: 2.3.1 + webpack: 4.46.0 + ws: 8.6.0 + transitivePeerDependencies: + - '@types/react' + - bluebird + - bufferutil + - encoding + - eslint + - supports-color + - utf-8-validate + - vue-template-compiler + - webpack-cli + - webpack-command + dev: true + + /@storybook/core-server/6.4.22_nalhyreo77vi3hkli4u32qimte: + resolution: {integrity: sha512-wFh3e2fa0un1d4+BJP+nd3FVWUO7uHTqv3OGBfOmzQMKp4NU1zaBNdSQG7Hz6mw0fYPBPZgBjPfsJRwIYLLZyw==} + peerDependencies: + '@storybook/builder-webpack5': 6.4.22 + '@storybook/manager-webpack5': 6.4.22 + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + typescript: '*' + peerDependenciesMeta: + '@storybook/builder-webpack5': + optional: true + '@storybook/manager-webpack5': + optional: true + typescript: + optional: true + dependencies: + '@discoveryjs/json-ext': 0.5.7 + '@storybook/builder-webpack4': 6.4.22_nalhyreo77vi3hkli4u32qimte + '@storybook/core-client': 6.4.22_d6fpg2ullfkn4dktgmyqz75y3y + '@storybook/core-common': 6.4.22_nalhyreo77vi3hkli4u32qimte + '@storybook/core-events': 6.4.22 + '@storybook/csf': 0.0.2--canary.87bc651.0 + '@storybook/csf-tools': 6.4.22 + '@storybook/manager-webpack4': 6.4.22_nalhyreo77vi3hkli4u32qimte + '@storybook/node-logger': 6.4.22 + '@storybook/semver': 7.3.2 + '@storybook/store': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@types/node': 14.18.13 + '@types/node-fetch': 2.6.1 + '@types/pretty-hrtime': 1.0.1 + '@types/webpack': 4.41.32 + better-opn: 2.1.1 + boxen: 5.1.2 + chalk: 4.1.2 + cli-table3: 0.6.2 + commander: 6.2.1 + compression: 1.7.4 + core-js: 3.21.1 + cpy: 8.1.2 + detect-port: 1.3.0 + express: 4.17.3 + file-system-cache: 1.0.5 + fs-extra: 9.1.0 + globby: 11.1.0 + ip: 1.1.5 + lodash: 4.17.21 + node-fetch: 2.6.7 + pretty-hrtime: 1.0.3 + prompts: 2.4.2 + react: 16.14.0 + react-dom: 16.14.0_react@16.14.0 + regenerator-runtime: 0.13.9 + serve-favicon: 2.5.0 + slash: 3.0.0 + telejson: 5.3.3 + ts-dedent: 2.2.0 + typescript: 4.6.4 + util-deprecate: 1.0.2 + watchpack: 2.3.1 + webpack: 4.46.0 + ws: 8.6.0 + transitivePeerDependencies: + - '@types/react' + - bluebird + - bufferutil + - encoding + - eslint + - supports-color + - utf-8-validate + - vue-template-compiler + - webpack-cli + - webpack-command + dev: true + + /@storybook/core/6.4.22_hcfsmds2fshutdssjqluwm76uu: + resolution: {integrity: sha512-KZYJt7GM5NgKFXbPRZZZPEONZ5u/tE/cRbMdkn/zWN3He8+VP+65/tz8hbriI/6m91AWVWkBKrODSkeq59NgRA==} + peerDependencies: + '@storybook/builder-webpack5': 6.4.22 + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + typescript: '*' + webpack: '*' + peerDependenciesMeta: + '@storybook/builder-webpack5': + optional: true + typescript: + optional: true + dependencies: + '@storybook/core-client': 6.4.22_typescript@4.6.4 + '@storybook/core-server': 6.4.22_hcfsmds2fshutdssjqluwm76uu + typescript: 4.6.4 + transitivePeerDependencies: + - '@storybook/manager-webpack5' + - '@types/react' + - bluebird + - bufferutil + - encoding + - eslint + - supports-color + - utf-8-validate + - vue-template-compiler + - webpack-cli + - webpack-command + dev: true + + /@storybook/core/6.4.22_nalhyreo77vi3hkli4u32qimte: + resolution: {integrity: sha512-KZYJt7GM5NgKFXbPRZZZPEONZ5u/tE/cRbMdkn/zWN3He8+VP+65/tz8hbriI/6m91AWVWkBKrODSkeq59NgRA==} + peerDependencies: + '@storybook/builder-webpack5': 6.4.22 + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + typescript: '*' + webpack: '*' + peerDependenciesMeta: + '@storybook/builder-webpack5': + optional: true + typescript: + optional: true + dependencies: + '@storybook/core-client': 6.4.22_cwlozgewa6mwrqrx5qbsrarjcq + '@storybook/core-server': 6.4.22_nalhyreo77vi3hkli4u32qimte + react: 16.14.0 + react-dom: 16.14.0_react@16.14.0 + typescript: 4.6.4 + transitivePeerDependencies: + - '@storybook/manager-webpack5' + - '@types/react' + - bluebird + - bufferutil + - encoding + - eslint + - supports-color + - utf-8-validate + - vue-template-compiler + - webpack-cli + - webpack-command + dev: true + + /@storybook/csf-tools/6.4.22: + resolution: {integrity: sha512-LMu8MZAiQspJAtMBLU2zitsIkqQv7jOwX7ih5JrXlyaDticH7l2j6Q+1mCZNWUOiMTizj0ivulmUsSaYbpToSw==} + dependencies: + '@babel/core': 7.17.9 + '@babel/generator': 7.17.9 + '@babel/parser': 7.17.9 + '@babel/plugin-transform-react-jsx': 7.17.3_@babel+core@7.17.9 + '@babel/preset-env': 7.16.11_@babel+core@7.17.9 + '@babel/traverse': 7.17.9 + '@babel/types': 7.17.0 + '@mdx-js/mdx': 1.6.22 + '@storybook/csf': 0.0.2--canary.87bc651.0 + core-js: 3.21.1 + fs-extra: 9.1.0 + global: 4.4.0 + js-string-escape: 1.0.1 + lodash: 4.17.21 + prettier: 2.3.0 + regenerator-runtime: 0.13.9 + ts-dedent: 2.2.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@storybook/csf/0.0.2--canary.87bc651.0: + resolution: {integrity: sha512-ajk1Uxa+rBpFQHKrCcTmJyQBXZ5slfwHVEaKlkuFaW77it8RgbPJp/ccna3sgoi8oZ7FkkOyvv1Ve4SmwFqRqw==} + dependencies: + lodash: 4.17.21 + dev: true + + /@storybook/html/6.4.22_tgvqbxx3i4v5lht4r2tvmykgia: + resolution: {integrity: sha512-qOULn4db1bJlN6IuGCfH2g88utO+0h9aFityfRpmM0KntYx+tezLDD2/2yzdRy69Mh3KsIoqmDtX0hdsaFxH6w==} + engines: {node: '>=10.13.0'} + hasBin: true + peerDependencies: + '@babel/core': '*' + dependencies: + '@babel/core': 7.17.9 + '@storybook/addons': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/client-api': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/core': 6.4.22_nalhyreo77vi3hkli4u32qimte + '@storybook/core-common': 6.4.22_nalhyreo77vi3hkli4u32qimte + '@storybook/csf': 0.0.2--canary.87bc651.0 + '@storybook/preview-web': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/store': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@types/webpack-env': 1.16.3 + core-js: 3.21.1 + global: 4.4.0 + html-loader: 1.3.2 + react: 16.14.0 + react-dom: 16.14.0_react@16.14.0 + read-pkg-up: 7.0.1 + regenerator-runtime: 0.13.9 + ts-dedent: 2.2.0 + transitivePeerDependencies: + - '@storybook/builder-webpack5' + - '@storybook/manager-webpack5' + - '@types/react' + - bluebird + - bufferutil + - encoding + - eslint + - supports-color + - typescript + - utf-8-validate + - vue-template-compiler + - webpack + - webpack-cli + - webpack-command + dev: true + + /@storybook/manager-webpack4/6.4.22_hcfsmds2fshutdssjqluwm76uu: + resolution: {integrity: sha512-nzhDMJYg0vXdcG0ctwE6YFZBX71+5NYaTGkxg3xT7gbgnP1YFXn9gVODvgq3tPb3gcRapjyOIxUa20rV+r8edA==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@babel/core': 7.17.9 + '@babel/plugin-transform-template-literals': 7.16.7_@babel+core@7.17.9 + '@babel/preset-react': 7.16.7_@babel+core@7.17.9 + '@storybook/addons': 6.4.22 + '@storybook/core-client': 6.4.22_u7kjabuvawcog7hjctusduehvm + '@storybook/core-common': 6.4.22_hcfsmds2fshutdssjqluwm76uu + '@storybook/node-logger': 6.4.22 + '@storybook/theming': 6.4.22 + '@storybook/ui': 6.4.22 + '@types/node': 14.18.13 + '@types/webpack': 4.41.32 + babel-loader: 8.2.4_lgfes7hlvohbl3uptzldef4omm + case-sensitive-paths-webpack-plugin: 2.4.0 + chalk: 4.1.2 + core-js: 3.21.1 + css-loader: 3.6.0_webpack@4.46.0 + express: 4.17.3 + file-loader: 6.2.0_webpack@4.46.0 + file-system-cache: 1.0.5 + find-up: 5.0.0 + fs-extra: 9.1.0 + html-webpack-plugin: 4.5.2_webpack@4.46.0 + node-fetch: 2.6.7 + pnp-webpack-plugin: 1.6.4_typescript@4.6.4 + read-pkg-up: 7.0.1 + regenerator-runtime: 0.13.9 + resolve-from: 5.0.0 + style-loader: 1.3.0_webpack@4.46.0 + telejson: 5.3.3 + terser-webpack-plugin: 4.2.3_webpack@4.46.0 + ts-dedent: 2.2.0 + typescript: 4.6.4 + url-loader: 4.1.1_lit45vopotvaqup7lrvlnvtxwy + util-deprecate: 1.0.2 + webpack: 4.46.0 + webpack-dev-middleware: 3.7.3_webpack@4.46.0 + webpack-virtual-modules: 0.2.2 + transitivePeerDependencies: + - '@types/react' + - bluebird + - encoding + - eslint + - supports-color + - vue-template-compiler + - webpack-cli + - webpack-command + dev: true + + /@storybook/manager-webpack4/6.4.22_nalhyreo77vi3hkli4u32qimte: + resolution: {integrity: sha512-nzhDMJYg0vXdcG0ctwE6YFZBX71+5NYaTGkxg3xT7gbgnP1YFXn9gVODvgq3tPb3gcRapjyOIxUa20rV+r8edA==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@babel/core': 7.17.9 + '@babel/plugin-transform-template-literals': 7.16.7_@babel+core@7.17.9 + '@babel/preset-react': 7.16.7_@babel+core@7.17.9 + '@storybook/addons': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/core-client': 6.4.22_d6fpg2ullfkn4dktgmyqz75y3y + '@storybook/core-common': 6.4.22_nalhyreo77vi3hkli4u32qimte + '@storybook/node-logger': 6.4.22 + '@storybook/theming': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/ui': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@types/node': 14.18.13 + '@types/webpack': 4.41.32 + babel-loader: 8.2.4_lgfes7hlvohbl3uptzldef4omm + case-sensitive-paths-webpack-plugin: 2.4.0 + chalk: 4.1.2 + core-js: 3.21.1 + css-loader: 3.6.0_webpack@4.46.0 + express: 4.17.3 + file-loader: 6.2.0_webpack@4.46.0 + file-system-cache: 1.0.5 + find-up: 5.0.0 + fs-extra: 9.1.0 + html-webpack-plugin: 4.5.2_webpack@4.46.0 + node-fetch: 2.6.7 + pnp-webpack-plugin: 1.6.4_typescript@4.6.4 + react: 16.14.0 + react-dom: 16.14.0_react@16.14.0 + read-pkg-up: 7.0.1 + regenerator-runtime: 0.13.9 + resolve-from: 5.0.0 + style-loader: 1.3.0_webpack@4.46.0 + telejson: 5.3.3 + terser-webpack-plugin: 4.2.3_webpack@4.46.0 + ts-dedent: 2.2.0 + typescript: 4.6.4 + url-loader: 4.1.1_lit45vopotvaqup7lrvlnvtxwy + util-deprecate: 1.0.2 + webpack: 4.46.0 + webpack-dev-middleware: 3.7.3_webpack@4.46.0 + webpack-virtual-modules: 0.2.2 + transitivePeerDependencies: + - '@types/react' + - bluebird + - encoding + - eslint + - supports-color + - vue-template-compiler + - webpack-cli + - webpack-command + dev: true + + /@storybook/node-logger/6.4.22: + resolution: {integrity: sha512-sUXYFqPxiqM7gGH7gBXvO89YEO42nA4gBicJKZjj9e+W4QQLrftjF9l+mAw2K0mVE10Bn7r4pfs5oEZ0aruyyA==} + dependencies: + '@types/npmlog': 4.1.4 + chalk: 4.1.2 + core-js: 3.21.1 + npmlog: 5.0.1 + pretty-hrtime: 1.0.3 + dev: true + + /@storybook/postinstall/6.4.22: + resolution: {integrity: sha512-LdIvA+l70Mp5FSkawOC16uKocefc+MZLYRHqjTjgr7anubdi6y7W4n9A7/Yw4IstZHoknfL88qDj/uK5N+Ahzw==} + dependencies: + core-js: 3.21.1 + dev: true + + /@storybook/preview-web/6.4.22: + resolution: {integrity: sha512-sWS+sgvwSvcNY83hDtWUUL75O2l2LY/GTAS0Zp2dh3WkObhtuJ/UehftzPZlZmmv7PCwhb4Q3+tZDKzMlFxnKQ==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + dependencies: + '@storybook/addons': 6.4.22 + '@storybook/channel-postmessage': 6.4.22 + '@storybook/client-logger': 6.4.22 + '@storybook/core-events': 6.4.22 + '@storybook/csf': 0.0.2--canary.87bc651.0 + '@storybook/store': 6.4.22 + ansi-to-html: 0.6.15 + core-js: 3.21.1 + global: 4.4.0 + lodash: 4.17.21 + qs: 6.10.3 + regenerator-runtime: 0.13.9 + synchronous-promise: 2.0.15 + ts-dedent: 2.2.0 + unfetch: 4.2.0 + util-deprecate: 1.0.2 + dev: true + + /@storybook/preview-web/6.4.22_wcqkhtmu7mswc6yz4uyexck3ty: + resolution: {integrity: sha512-sWS+sgvwSvcNY83hDtWUUL75O2l2LY/GTAS0Zp2dh3WkObhtuJ/UehftzPZlZmmv7PCwhb4Q3+tZDKzMlFxnKQ==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + dependencies: + '@storybook/addons': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/channel-postmessage': 6.4.22 + '@storybook/client-logger': 6.4.22 + '@storybook/core-events': 6.4.22 + '@storybook/csf': 0.0.2--canary.87bc651.0 + '@storybook/store': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + ansi-to-html: 0.6.15 + core-js: 3.21.1 + global: 4.4.0 + lodash: 4.17.21 + qs: 6.10.3 + react: 16.14.0 + react-dom: 16.14.0_react@16.14.0 + regenerator-runtime: 0.13.9 + synchronous-promise: 2.0.15 + ts-dedent: 2.2.0 + unfetch: 4.2.0 + util-deprecate: 1.0.2 + dev: true + + /@storybook/router/6.4.22: + resolution: {integrity: sha512-zeuE8ZgFhNerQX8sICQYNYL65QEi3okyzw7ynF58Ud6nRw4fMxSOHcj2T+nZCIU5ufozRL4QWD/Rg9P2s/HtLw==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + dependencies: + '@storybook/client-logger': 6.4.22 + core-js: 3.21.1 + fast-deep-equal: 3.1.3 + global: 4.4.0 + history: 5.0.0 + lodash: 4.17.21 + memoizerific: 1.11.3 + qs: 6.10.3 + react-router: 6.3.0 + react-router-dom: 6.3.0 + ts-dedent: 2.2.0 + dev: true + + /@storybook/router/6.4.22_wcqkhtmu7mswc6yz4uyexck3ty: + resolution: {integrity: sha512-zeuE8ZgFhNerQX8sICQYNYL65QEi3okyzw7ynF58Ud6nRw4fMxSOHcj2T+nZCIU5ufozRL4QWD/Rg9P2s/HtLw==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + dependencies: + '@storybook/client-logger': 6.4.22 + core-js: 3.21.1 + fast-deep-equal: 3.1.3 + global: 4.4.0 + history: 5.0.0 + lodash: 4.17.21 + memoizerific: 1.11.3 + qs: 6.10.3 + react: 16.14.0 + react-dom: 16.14.0_react@16.14.0 + react-router: 6.3.0_react@16.14.0 + react-router-dom: 6.3.0_wcqkhtmu7mswc6yz4uyexck3ty + ts-dedent: 2.2.0 + dev: true + + /@storybook/semver/7.3.2: + resolution: {integrity: sha512-SWeszlsiPsMI0Ps0jVNtH64cI5c0UF3f7KgjVKJoNP30crQ6wUSddY2hsdeczZXEKVJGEn50Q60flcGsQGIcrg==} + engines: {node: '>=10'} + hasBin: true + dependencies: + core-js: 3.21.1 + find-up: 4.1.0 + dev: true + + /@storybook/source-loader/6.4.22: + resolution: {integrity: sha512-O4RxqPgRyOgAhssS6q1Rtc8LiOvPBpC1EqhCYWRV3K+D2EjFarfQMpjgPj18hC+QzpUSfzoBZYqsMECewEuLNw==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + dependencies: + '@storybook/addons': 6.4.22 + '@storybook/client-logger': 6.4.22 + '@storybook/csf': 0.0.2--canary.87bc651.0 + core-js: 3.21.1 + estraverse: 5.3.0 + global: 4.4.0 + loader-utils: 2.0.2 + lodash: 4.17.21 + prettier: 2.3.0 + regenerator-runtime: 0.13.9 + dev: true + + /@storybook/store/6.4.22: + resolution: {integrity: sha512-lrmcZtYJLc2emO+1l6AG4Txm9445K6Pyv9cGAuhOJ9Kks0aYe0YtvMkZVVry0RNNAIv6Ypz72zyKc/QK+tZLAQ==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + dependencies: + '@storybook/addons': 6.4.22 + '@storybook/client-logger': 6.4.22 + '@storybook/core-events': 6.4.22 + '@storybook/csf': 0.0.2--canary.87bc651.0 + core-js: 3.21.1 + fast-deep-equal: 3.1.3 + global: 4.4.0 + lodash: 4.17.21 + memoizerific: 1.11.3 + regenerator-runtime: 0.13.9 + slash: 3.0.0 + stable: 0.1.8 + synchronous-promise: 2.0.15 + ts-dedent: 2.2.0 + util-deprecate: 1.0.2 + dev: true + + /@storybook/store/6.4.22_wcqkhtmu7mswc6yz4uyexck3ty: + resolution: {integrity: sha512-lrmcZtYJLc2emO+1l6AG4Txm9445K6Pyv9cGAuhOJ9Kks0aYe0YtvMkZVVry0RNNAIv6Ypz72zyKc/QK+tZLAQ==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + dependencies: + '@storybook/addons': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/client-logger': 6.4.22 + '@storybook/core-events': 6.4.22 + '@storybook/csf': 0.0.2--canary.87bc651.0 + core-js: 3.21.1 + fast-deep-equal: 3.1.3 + global: 4.4.0 + lodash: 4.17.21 + memoizerific: 1.11.3 + react: 16.14.0 + react-dom: 16.14.0_react@16.14.0 + regenerator-runtime: 0.13.9 + slash: 3.0.0 + stable: 0.1.8 + synchronous-promise: 2.0.15 + ts-dedent: 2.2.0 + util-deprecate: 1.0.2 + dev: true + + /@storybook/theming/6.4.22: + resolution: {integrity: sha512-NVMKH/jxSPtnMTO4VCN1k47uztq+u9fWv4GSnzq/eezxdGg9ceGL4/lCrNGoNajht9xbrsZ4QvsJ/V2sVGM8wA==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + dependencies: + '@emotion/core': 10.3.1 + '@emotion/is-prop-valid': 0.8.8 + '@emotion/styled': 10.3.0_@emotion+core@10.3.1 + '@storybook/client-logger': 6.4.22 + core-js: 3.21.1 + deep-object-diff: 1.1.7 + emotion-theming: 10.3.0_@emotion+core@10.3.1 + global: 4.4.0 + memoizerific: 1.11.3 + polished: 4.2.2 + resolve-from: 5.0.0 + ts-dedent: 2.2.0 + dev: true + + /@storybook/theming/6.4.22_wcqkhtmu7mswc6yz4uyexck3ty: + resolution: {integrity: sha512-NVMKH/jxSPtnMTO4VCN1k47uztq+u9fWv4GSnzq/eezxdGg9ceGL4/lCrNGoNajht9xbrsZ4QvsJ/V2sVGM8wA==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + dependencies: + '@emotion/core': 10.3.1_react@16.14.0 + '@emotion/is-prop-valid': 0.8.8 + '@emotion/styled': 10.3.0_qzeatvug73zaio2r3dlvejynye + '@storybook/client-logger': 6.4.22 + core-js: 3.21.1 + deep-object-diff: 1.1.7 + emotion-theming: 10.3.0_qzeatvug73zaio2r3dlvejynye + global: 4.4.0 + memoizerific: 1.11.3 + polished: 4.2.2 + react: 16.14.0 + react-dom: 16.14.0_react@16.14.0 + resolve-from: 5.0.0 + ts-dedent: 2.2.0 + dev: true + + /@storybook/ui/6.4.22: + resolution: {integrity: sha512-UVjMoyVsqPr+mkS1L7m30O/xrdIEgZ5SCWsvqhmyMUok3F3tRB+6M+OA5Yy+cIVfvObpA7MhxirUT1elCGXsWQ==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + dependencies: + '@emotion/core': 10.3.1 + '@storybook/addons': 6.4.22 + '@storybook/api': 6.4.22 + '@storybook/channels': 6.4.22 + '@storybook/client-logger': 6.4.22 + '@storybook/components': 6.4.22 + '@storybook/core-events': 6.4.22 + '@storybook/router': 6.4.22 + '@storybook/semver': 7.3.2 + '@storybook/theming': 6.4.22 + copy-to-clipboard: 3.3.1 + core-js: 3.21.1 + core-js-pure: 3.21.1 + downshift: 6.1.7 + emotion-theming: 10.3.0_@emotion+core@10.3.1 + fuse.js: 3.6.1 + global: 4.4.0 + lodash: 4.17.21 + markdown-to-jsx: 7.1.7 + memoizerific: 1.11.3 + polished: 4.2.2 + qs: 6.10.3 + react-draggable: 4.4.4 + react-helmet-async: 1.3.0 + react-sizeme: 3.0.2 + regenerator-runtime: 0.13.9 + resolve-from: 5.0.0 + store2: 2.13.2 + transitivePeerDependencies: + - '@types/react' + dev: true + + /@storybook/ui/6.4.22_wcqkhtmu7mswc6yz4uyexck3ty: + resolution: {integrity: sha512-UVjMoyVsqPr+mkS1L7m30O/xrdIEgZ5SCWsvqhmyMUok3F3tRB+6M+OA5Yy+cIVfvObpA7MhxirUT1elCGXsWQ==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + dependencies: + '@emotion/core': 10.3.1_react@16.14.0 + '@storybook/addons': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/api': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/channels': 6.4.22 + '@storybook/client-logger': 6.4.22 + '@storybook/components': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/core-events': 6.4.22 + '@storybook/router': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + '@storybook/semver': 7.3.2 + '@storybook/theming': 6.4.22_wcqkhtmu7mswc6yz4uyexck3ty + copy-to-clipboard: 3.3.1 + core-js: 3.21.1 + core-js-pure: 3.21.1 + downshift: 6.1.7_react@16.14.0 + emotion-theming: 10.3.0_qzeatvug73zaio2r3dlvejynye + fuse.js: 3.6.1 + global: 4.4.0 + lodash: 4.17.21 + markdown-to-jsx: 7.1.7_react@16.14.0 + memoizerific: 1.11.3 + polished: 4.2.2 + qs: 6.10.3 + react: 16.14.0 + react-dom: 16.14.0_react@16.14.0 + react-draggable: 4.4.4_wcqkhtmu7mswc6yz4uyexck3ty + react-helmet-async: 1.3.0_wcqkhtmu7mswc6yz4uyexck3ty + react-sizeme: 3.0.2 + regenerator-runtime: 0.13.9 + resolve-from: 5.0.0 + store2: 2.13.2 + transitivePeerDependencies: + - '@types/react' + dev: true + + /@swc/core-android-arm-eabi/1.2.165: + resolution: {integrity: sha512-DjX1/5qElHOnlrqhefcZsD1LEspJWDLpW31SKv9cNT2T13U76MkcrHi5ePI50NhG/bWDpHuWFWfuEmgcU+mwHA==} + engines: {node: '>=10'} + cpu: [arm] + os: [android] + requiresBuild: true + dev: true + optional: true + + /@swc/core-android-arm64/1.2.165: + resolution: {integrity: sha512-lPgG+td9/JlV3ZQiHZtdtqn+lZzGly+s/VQXfnaXgaHQE4JjWU2B4rhTVkVOQxEYbA/Cd9pszNWWxjJSrXytMA==} + engines: {node: '>=10'} + cpu: [arm64] + os: [android] + requiresBuild: true + dev: true + optional: true + + /@swc/core-darwin-arm64/1.2.165: + resolution: {integrity: sha512-O6eFbCD4lZ4ZW2E1a4CsIo3zVTI5Tu2MpTbaVan7LvYyv2RK+tot9xjysVbOx/1nfgYDym9JLHU9gY/ayrdOtA==} + engines: {node: '>=10'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@swc/core-darwin-x64/1.2.165: + resolution: {integrity: sha512-R1WRiDnkmXWBkyNGR09WDq+mCFIujhdUs3e4QiHJih1HY2rKGXU0SZKoqaBTjeVerk/IYXaEnZM3Bx7sb0oyEQ==} + engines: {node: '>=10'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@swc/core-freebsd-x64/1.2.165: + resolution: {integrity: sha512-bL7Jxy2is/+YLZedQsF5a7swpbq9RGsvtXJmx5Bi0JqaavqWpbICmQtTr9I2S97taw16S/k8vOJ6DPzEvgJWWQ==} + engines: {node: '>=10'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + /@swc/core-linux-arm-gnueabihf/1.2.165: + resolution: {integrity: sha512-6m+X7a0iw5G97WfkJBKNy7/KfSEivRVRHbWB4VvJgRanNIO4tb//LxlUJFn58frQJg+H7bMFyOXhDJ/taRYAyg==} + engines: {node: '>=10'} + cpu: [arm] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@swc/core-linux-arm64-gnu/1.2.165: + resolution: {integrity: sha512-4roZScf8UZLhKTYBEqqbTNasZPqs3zDA2LF+SJuc4eFUGJyyrl9KgeVC08vTMtkAI47EebT15FgcQ+9LhtMlkg==} + engines: {node: '>=10'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@swc/core-linux-arm64-musl/1.2.165: + resolution: {integrity: sha512-xM5MDECEnptdsClSitld/f+azudbkeT8nNCkXCP+vFsurex9ISJ2DCWTvw7hgpkFElVv/qFEagDCucgESHcUzw==} + engines: {node: '>=10'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@swc/core-linux-x64-gnu/1.2.165: + resolution: {integrity: sha512-MTEhtso3De+HP+qZKZw1DfPTbngn4ms3+7XG6jqUs6CKpmLTJkvnpPJ5swlXGvpKyDq367O2Aicft52Uoaoq+Q==} + engines: {node: '>=10'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@swc/core-linux-x64-musl/1.2.165: + resolution: {integrity: sha512-T2ZSApYoK4VTMTTqhUKcrNcv68ChoAOZDKUNfOik8zXcN1pMttus/VaqfZjxT2+orviRTD5Bkdsc3UvrhHqHnw==} + engines: {node: '>=10'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@swc/core-win32-arm64-msvc/1.2.165: + resolution: {integrity: sha512-Icg6dtQpQZKjAUG6kME4WuYpG6cqZjUzzmiZPQ9wWOw7wY8EYFPwC2ZjTg8KwbOJFkAKN6cjk3O2IAFsOWuUGg==} + engines: {node: '>=10'} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@swc/core-win32-ia32-msvc/1.2.165: + resolution: {integrity: sha512-ldrTYG1zydyJP54YmYie3VMGcU7gCT2dZ7S1uZ1Tab+10GzZtdvePGGlQ/39jJVpr36/DZ34L6PsjwQkPG7AOw==} + engines: {node: '>=10'} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@swc/core-win32-x64-msvc/1.2.165: + resolution: {integrity: sha512-gi2ZELsRLC3RfQFk+qwccL0VZ6ZgprMOP/phCVd8sA2MZsVVrFu6QBEJNGO0Z6hEqQ2BWrva6+cMF/eHSzuAsQ==} + engines: {node: '>=10'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@swc/core/1.2.165: + resolution: {integrity: sha512-+Z/FquMEUQLOOVWJY4B2QnHvcAIgBKKJMVtVQLVlIwfC4Ez8OvzGPTfL1W4ixYlUoIaTbAd1956kjBXalr4wEg==} + engines: {node: '>=10'} + hasBin: true + optionalDependencies: + '@swc/core-android-arm-eabi': 1.2.165 + '@swc/core-android-arm64': 1.2.165 + '@swc/core-darwin-arm64': 1.2.165 + '@swc/core-darwin-x64': 1.2.165 + '@swc/core-freebsd-x64': 1.2.165 + '@swc/core-linux-arm-gnueabihf': 1.2.165 + '@swc/core-linux-arm64-gnu': 1.2.165 + '@swc/core-linux-arm64-musl': 1.2.165 + '@swc/core-linux-x64-gnu': 1.2.165 + '@swc/core-linux-x64-musl': 1.2.165 + '@swc/core-win32-arm64-msvc': 1.2.165 + '@swc/core-win32-ia32-msvc': 1.2.165 + '@swc/core-win32-x64-msvc': 1.2.165 + dev: true + + /@swc/helpers/0.3.8: + resolution: {integrity: sha512-aWItSZvJj4+GI6FWkjZR13xPNPctq2RRakzo+O6vN7bC2yjwdg5EFpgaSAUn95b7BGSgcflvzVDPoKmJv24IOg==} + dev: true + + /@swc/jest/0.2.20_@swc+core@1.2.165: + resolution: {integrity: sha512-5qSUBYY1wyIMn7p0Vl9qqV4hMI69oJwZCIPUpBsTFWN2wlwn6RDugzdgCn+bLXVYh+Cxi8bJcZ1uumDgsoL+FA==} + engines: {npm: '>= 7.0.0'} + peerDependencies: + '@swc/core': '*' + dependencies: + '@jest/create-cache-key-function': 27.5.1 + '@swc/core': 1.2.165 + dev: true + + /@testing-library/dom/8.13.0: + resolution: {integrity: sha512-9VHgfIatKNXQNaZTtLnalIy0jNZzY35a4S3oi08YAt9Hv1VsfZ/DfA45lM8D/UhtHBGJ4/lGwp0PZkVndRkoOQ==} + engines: {node: '>=12'} + dependencies: + '@babel/code-frame': 7.16.7 + '@babel/runtime': 7.17.9 + '@types/aria-query': 4.2.2 + aria-query: 5.0.0 + chalk: 4.1.2 + dom-accessibility-api: 0.5.13 + lz-string: 1.4.4 + pretty-format: 27.5.1 + dev: true + + /@testing-library/jest-dom/5.16.4: + resolution: {integrity: sha512-Gy+IoFutbMQcky0k+bqqumXZ1cTGswLsFqmNLzNdSKkU9KGV2u9oXhukCbbJ9/LRPKiqwxEE8VpV/+YZlfkPUA==} + engines: {node: '>=8', npm: '>=6', yarn: '>=1'} + dependencies: + '@babel/runtime': 7.17.9 + '@types/testing-library__jest-dom': 5.14.3 + aria-query: 5.0.0 + chalk: 3.0.0 + css: 3.0.0 + css.escape: 1.5.1 + dom-accessibility-api: 0.5.13 + lodash: 4.17.21 + redent: 3.0.0 + dev: true + + /@tootallnate/once/1.1.2: + resolution: {integrity: sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==} + engines: {node: '>= 6'} + dev: true + + /@tsconfig/node10/1.0.8: + resolution: {integrity: sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg==} + dev: true + + /@tsconfig/node12/1.0.9: + resolution: {integrity: sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==} + dev: true + + /@tsconfig/node14/1.0.1: + resolution: {integrity: sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==} + dev: true + + /@tsconfig/node16/1.0.2: + resolution: {integrity: sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==} + dev: true + + /@types/aria-query/4.2.2: + resolution: {integrity: sha512-HnYpAE1Y6kRyKM/XkEuiRQhTHvkzMBurTHnpFLYLBGPIylZNPs9jJcuOOYWxPLJCSEtmZT0Y8rHDokKN7rRTig==} + dev: true + + /@types/babel__core/7.1.19: + resolution: {integrity: sha512-WEOTgRsbYkvA/KCsDwVEGkd7WAr1e3g31VHQ8zy5gul/V1qKullU/BU5I68X5v7V3GnB9eotmom4v5a5gjxorw==} + dependencies: + '@babel/parser': 7.17.9 + '@babel/types': 7.17.0 + '@types/babel__generator': 7.6.4 + '@types/babel__template': 7.4.1 + '@types/babel__traverse': 7.17.0 + dev: true + + /@types/babel__generator/7.6.4: + resolution: {integrity: sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==} + dependencies: + '@babel/types': 7.17.0 + dev: true + + /@types/babel__template/7.4.1: + resolution: {integrity: sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==} + dependencies: + '@babel/parser': 7.17.9 + '@babel/types': 7.17.0 + dev: true + + /@types/babel__traverse/7.17.0: + resolution: {integrity: sha512-r8aveDbd+rzGP+ykSdF3oPuTVRWRfbBiHl0rVDM2yNEmSMXfkObQLV46b4RnCv3Lra51OlfnZhkkFaDl2MIRaA==} + dependencies: + '@babel/types': 7.17.0 + dev: true + + /@types/color-convert/2.0.0: + resolution: {integrity: sha512-m7GG7IKKGuJUXvkZ1qqG3ChccdIM/qBBo913z+Xft0nKCX4hAU/IxKwZBU4cpRZ7GS5kV4vOblUkILtSShCPXQ==} + dependencies: + '@types/color-name': 1.1.1 + dev: true + + /@types/color-name/1.1.1: + resolution: {integrity: sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==} + dev: true + + /@types/eslint-scope/3.7.4: + resolution: {integrity: sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==} + dependencies: + '@types/eslint': 7.29.0 + '@types/estree': 0.0.51 + dev: true + + /@types/eslint/7.29.0: + resolution: {integrity: sha512-VNcvioYDH8/FxaeTKkM4/TiTwt6pBV9E3OfGmvaw8tPl0rrHCJ4Ll15HRT+pMiFAf/MLQvAzC+6RzUMEL9Ceng==} + dependencies: + '@types/estree': 0.0.39 + '@types/json-schema': 7.0.11 + dev: true + + /@types/estree/0.0.39: + resolution: {integrity: sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==} + dev: true + + /@types/estree/0.0.51: + resolution: {integrity: sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==} + dev: true + + /@types/faker/5.5.9: + resolution: {integrity: sha512-uCx6mP3UY5SIO14XlspxsGjgaemrxpssJI0Ol+GfhxtcKpv9pgRZYsS4eeKeHVLje6Qtc8lGszuBI461+gVZBA==} + dev: true + + /@types/git-url-parse/9.0.1: + resolution: {integrity: sha512-Zf9mY4Mz7N3Nyi341nUkOtgVUQn4j6NS4ndqEha/lOgEbTkHzpD7wZuRagYKzrXNtvawWfsrojoC1nhsQexvNA==} + dev: true + + /@types/glob/7.2.0: + resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==} + dependencies: + '@types/minimatch': 3.0.5 + '@types/node': 17.0.34 + dev: true + + /@types/graceful-fs/4.1.5: + resolution: {integrity: sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw==} + dependencies: + '@types/node': 17.0.34 + dev: true + + /@types/hast/2.3.4: + resolution: {integrity: sha512-wLEm0QvaoawEDoTRwzTXp4b4jpwiJDvR5KMnFnVodm3scufTlBOWRD6N1OBf9TZMhjlNsSfcO5V+7AF4+Vy+9g==} + dependencies: + '@types/unist': 2.0.6 + dev: true + + /@types/html-minifier-terser/5.1.2: + resolution: {integrity: sha512-h4lTMgMJctJybDp8CQrxTUiiYmedihHWkjnF/8Pxseu2S6Nlfcy8kwboQ8yejh456rP2yWoEVm1sS/FVsfM48w==} + dev: true + + /@types/is-function/1.0.1: + resolution: {integrity: sha512-A79HEEiwXTFtfY+Bcbo58M2GRYzCr9itHWzbzHVFNEYCcoU/MMGwYYf721gBrnhpj1s6RGVVha/IgNFnR0Iw/Q==} + dev: true + + /@types/istanbul-lib-coverage/2.0.4: + resolution: {integrity: sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==} + dev: true + + /@types/istanbul-lib-report/3.0.0: + resolution: {integrity: sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==} + dependencies: + '@types/istanbul-lib-coverage': 2.0.4 + dev: true + + /@types/istanbul-reports/3.0.1: + resolution: {integrity: sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==} + dependencies: + '@types/istanbul-lib-report': 3.0.0 + dev: true + + /@types/jest-image-snapshot/4.3.1: + resolution: {integrity: sha512-WDdUruGF14C53axe/mNDgQP2YIhtcwXrwmmVP8eOGyfNTVD+FbxWjWR7RTU+lzEy4K6V6+z7nkVDm/auI/r3xQ==} + dependencies: + '@types/jest': 27.5.1 + '@types/pixelmatch': 5.2.4 + ssim.js: 3.5.0 + dev: true + + /@types/jest-specific-snapshot/0.5.5: + resolution: {integrity: sha512-AaPPw2tE8ewfjD6qGLkEd4DOfM6pPOK7ob/RSOe1Z8Oo70r9Jgo0SlWyfxslPAOvLfQukQtiVPm6DcnjSoZU5A==} + dependencies: + '@types/jest': 27.5.1 + dev: true + + /@types/jest/26.0.24: + resolution: {integrity: sha512-E/X5Vib8BWqZNRlDxj9vYXhsDwPYbPINqKF9BsnSoon4RQ0D9moEuLD8txgyypFLH7J4+Lho9Nr/c8H0Fi+17w==} + dependencies: + jest-diff: 26.6.2 + pretty-format: 26.6.2 + dev: true + + /@types/jest/27.5.1: + resolution: {integrity: sha512-fUy7YRpT+rHXto1YlL+J9rs0uLGyiqVt3ZOTQR+4ROc47yNl8WLdVLgUloBRhOxP1PZvguHl44T3H0wAWxahYQ==} + dependencies: + jest-matcher-utils: 27.5.1 + pretty-format: 27.5.1 + dev: true + + /@types/json-schema/7.0.11: + resolution: {integrity: sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==} + dev: true + + /@types/mdast/3.0.10: + resolution: {integrity: sha512-W864tg/Osz1+9f4lrGTZpCSO5/z4608eUp19tbozkq2HJK6i3z1kT0H9tlADXuYIb1YYOBByU4Jsqkk75q48qA==} + dependencies: + '@types/unist': 2.0.6 + dev: true + + /@types/minimatch/3.0.5: + resolution: {integrity: sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==} + dev: true + + /@types/minimist/1.2.2: + resolution: {integrity: sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==} + dev: true + + /@types/node-fetch/2.6.1: + resolution: {integrity: sha512-oMqjURCaxoSIsHSr1E47QHzbmzNR5rK8McHuNb11BOM9cHcIK3Avy0s/b2JlXHoQGTYS3NsvWzV1M0iK7l0wbA==} + dependencies: + '@types/node': 17.0.34 + form-data: 3.0.1 + dev: true + + /@types/node/14.18.13: + resolution: {integrity: sha512-Z6/KzgyWOga3pJNS42A+zayjhPbf2zM3hegRQaOPnLOzEi86VV++6FLDWgR1LGrVCRufP/ph2daa3tEa5br1zA==} + dev: true + + /@types/node/17.0.34: + resolution: {integrity: sha512-XImEz7XwTvDBtzlTnm8YvMqGW/ErMWBsKZ+hMTvnDIjGCKxwK5Xpc+c/oQjOauwq8M4OS11hEkpjX8rrI/eEgA==} + dev: true + + /@types/normalize-package-data/2.4.1: + resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} + dev: true + + /@types/npmlog/4.1.4: + resolution: {integrity: sha512-WKG4gTr8przEZBiJ5r3s8ZIAoMXNbOgQ+j/d5O4X3x6kZJRLNvyUJuUK/KoG3+8BaOHPhp2m7WC6JKKeovDSzQ==} + dev: true + + /@types/overlayscrollbars/1.12.1: + resolution: {integrity: sha512-V25YHbSoKQN35UasHf0EKD9U2vcmexRSp78qa8UglxFH8H3D+adEa9zGZwrqpH4TdvqeMrgMqVqsLB4woAryrQ==} + dev: true + + /@types/parse-json/4.0.0: + resolution: {integrity: sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==} + dev: true + + /@types/parse5/5.0.3: + resolution: {integrity: sha512-kUNnecmtkunAoQ3CnjmMkzNU/gtxG8guhi+Fk2U/kOpIKjIMKnXGp4IJCgQJrXSgMsWYimYG4TGjz/UzbGEBTw==} + dev: true + + /@types/pixelmatch/5.2.4: + resolution: {integrity: sha512-HDaSHIAv9kwpMN7zlmwfTv6gax0PiporJOipcrGsVNF3Ba+kryOZc0Pio5pn6NhisgWr7TaajlPEKTbTAypIBQ==} + dependencies: + '@types/node': 17.0.34 + dev: true + + /@types/prettier/2.6.0: + resolution: {integrity: sha512-G/AdOadiZhnJp0jXCaBQU449W2h716OW/EoXeYkCytxKL06X1WCXB4DZpp8TpZ8eyIJVS1cw4lrlkkSYU21cDw==} + dev: true + + /@types/pretty-hrtime/1.0.1: + resolution: {integrity: sha512-VjID5MJb1eGKthz2qUerWT8+R4b9N+CHvGCzg9fn4kWZgaF9AhdYikQio3R7wV8YY1NsQKPaCwKz1Yff+aHNUQ==} + dev: true + + /@types/prop-types/15.7.5: + resolution: {integrity: sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==} + dev: true + + /@types/q/1.5.5: + resolution: {integrity: sha512-L28j2FcJfSZOnL1WBjDYp2vUHCeIFlyYI/53EwD/rKUBQ7MtUUfbQWiyKJGpcnv4/WgrhWsFKrcPstcAt/J0tQ==} + dev: true + + /@types/qs/6.9.7: + resolution: {integrity: sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==} + dev: true + + /@types/react-syntax-highlighter/11.0.5: + resolution: {integrity: sha512-VIOi9i2Oj5XsmWWoB72p3KlZoEbdRAcechJa8Ztebw7bDl2YmR+odxIqhtJGp1q2EozHs02US+gzxJ9nuf56qg==} + dependencies: + '@types/react': 18.0.5 + dev: true + + /@types/react/18.0.5: + resolution: {integrity: sha512-UPxNGInDCIKlfqBrm8LDXYWNfLHwIdisWcsH5GpMyGjhEDLFgTtlRBaoWuCua9HcyuE0rMkmAeZ3FXV1pYLIYQ==} + dependencies: + '@types/prop-types': 15.7.5 + '@types/scheduler': 0.16.2 + csstype: 3.0.11 + dev: true + + /@types/resolve/1.17.1: + resolution: {integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==} + dependencies: + '@types/node': 17.0.34 + dev: true + + /@types/scheduler/0.16.2: + resolution: {integrity: sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==} + dev: true + + /@types/source-list-map/0.1.2: + resolution: {integrity: sha512-K5K+yml8LTo9bWJI/rECfIPrGgxdpeNbj+d53lwN4QjW1MCwlkhUms+gtdzigTeUyBr09+u8BwOIY3MXvHdcsA==} + dev: true + + /@types/stack-utils/2.0.1: + resolution: {integrity: sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==} + dev: true + + /@types/tapable/1.0.8: + resolution: {integrity: sha512-ipixuVrh2OdNmauvtT51o3d8z12p6LtFW9in7U79der/kwejjdNchQC5UMn5u/KxNoM7VHHOs/l8KS8uHxhODQ==} + dev: true + + /@types/testing-library__jest-dom/5.14.3: + resolution: {integrity: sha512-oKZe+Mf4ioWlMuzVBaXQ9WDnEm1+umLx0InILg+yvZVBBDmzV5KfZyLrCvadtWcx8+916jLmHafcmqqffl+iIw==} + dependencies: + '@types/jest': 27.5.1 + dev: true + + /@types/uglify-js/3.13.2: + resolution: {integrity: sha512-/xFrPIo+4zOeNGtVMbf9rUm0N+i4pDf1ynExomqtokIJmVzR3962lJ1UE+MmexMkA0cmN9oTzg5Xcbwge0Ij2Q==} + dependencies: + source-map: 0.6.1 + dev: true + + /@types/unist/2.0.6: + resolution: {integrity: sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==} + dev: true + + /@types/webpack-env/1.16.3: + resolution: {integrity: sha512-9gtOPPkfyNoEqCQgx4qJKkuNm/x0R2hKR7fdl7zvTJyHnIisuE/LfvXOsYWL0o3qq6uiBnKZNNNzi3l0y/X+xw==} + dev: true + + /@types/webpack-sources/3.2.0: + resolution: {integrity: sha512-Ft7YH3lEVRQ6ls8k4Ff1oB4jN6oy/XmU6tQISKdhfh+1mR+viZFphS6WL0IrtDOzvefmJg5a0s7ZQoRXwqTEFg==} + dependencies: + '@types/node': 17.0.34 + '@types/source-list-map': 0.1.2 + source-map: 0.7.3 + dev: true + + /@types/webpack/4.41.32: + resolution: {integrity: sha512-cb+0ioil/7oz5//7tZUSwbrSAN/NWHrQylz5cW8G0dWTcF/g+/dSdMlKVZspBYuMAN1+WnwHrkxiRrLcwd0Heg==} + dependencies: + '@types/node': 17.0.34 + '@types/tapable': 1.0.8 + '@types/uglify-js': 3.13.2 + '@types/webpack-sources': 3.2.0 + anymatch: 3.1.2 + source-map: 0.6.1 + dev: true + + /@types/yargs-parser/21.0.0: + resolution: {integrity: sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==} + dev: true + + /@types/yargs/15.0.14: + resolution: {integrity: sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==} + dependencies: + '@types/yargs-parser': 21.0.0 + dev: true + + /@types/yargs/16.0.4: + resolution: {integrity: sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==} + dependencies: + '@types/yargs-parser': 21.0.0 + dev: true + + /@types/yauzl/2.10.0: + resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} + requiresBuild: true + dependencies: + '@types/node': 17.0.34 + dev: true + optional: true + + /@typescript-eslint/eslint-plugin/5.25.0_qo2hgs5jt7x2a3p77h2rutcdae: + resolution: {integrity: sha512-icYrFnUzvm+LhW0QeJNKkezBu6tJs9p/53dpPLFH8zoM9w1tfaKzVurkPotEpAqQ8Vf8uaFyL5jHd0Vs6Z0ZQg==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + '@typescript-eslint/parser': ^5.0.0 + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/parser': 5.25.0_hcfsmds2fshutdssjqluwm76uu + '@typescript-eslint/scope-manager': 5.25.0 + '@typescript-eslint/type-utils': 5.25.0_hcfsmds2fshutdssjqluwm76uu + '@typescript-eslint/utils': 5.25.0_hcfsmds2fshutdssjqluwm76uu + debug: 4.3.4 + eslint: 8.15.0 + functional-red-black-tree: 1.0.1 + ignore: 5.2.0 + regexpp: 3.2.0 + semver: 7.3.7 + tsutils: 3.21.0_typescript@4.6.4 + typescript: 4.6.4 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/parser/5.25.0_hcfsmds2fshutdssjqluwm76uu: + resolution: {integrity: sha512-r3hwrOWYbNKP1nTcIw/aZoH+8bBnh/Lh1iDHoFpyG4DnCpvEdctrSl6LOo19fZbzypjQMHdajolxs6VpYoChgA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/scope-manager': 5.25.0 + '@typescript-eslint/types': 5.25.0 + '@typescript-eslint/typescript-estree': 5.25.0_typescript@4.6.4 + debug: 4.3.4 + eslint: 8.15.0 + typescript: 4.6.4 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/scope-manager/5.24.0: + resolution: {integrity: sha512-WpMWipcDzGmMzdT7NtTjRXFabx10WleLUGrJpuJLGaxSqpcyq5ACpKSD5VE40h2nz3melQ91aP4Du7lh9FliCA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + '@typescript-eslint/types': 5.24.0 + '@typescript-eslint/visitor-keys': 5.24.0 + dev: true + + /@typescript-eslint/scope-manager/5.25.0: + resolution: {integrity: sha512-p4SKTFWj+2VpreUZ5xMQsBMDdQ9XdRvODKXN4EksyBjFp2YvQdLkyHqOffakYZPuWJUDNu3jVXtHALDyTv3cww==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + '@typescript-eslint/types': 5.25.0 + '@typescript-eslint/visitor-keys': 5.25.0 + dev: true + + /@typescript-eslint/type-utils/5.25.0_hcfsmds2fshutdssjqluwm76uu: + resolution: {integrity: sha512-B6nb3GK3Gv1Rsb2pqalebe/RyQoyG/WDy9yhj8EE0Ikds4Xa8RR28nHz+wlt4tMZk5bnAr0f3oC8TuDAd5CPrw==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: '*' + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/utils': 5.25.0_hcfsmds2fshutdssjqluwm76uu + debug: 4.3.4 + eslint: 8.15.0 + tsutils: 3.21.0_typescript@4.6.4 + typescript: 4.6.4 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/types/5.24.0: + resolution: {integrity: sha512-Tpg1c3shTDgTmZd3qdUyd+16r/pGmVaVEbLs+ufuWP0EruVbUiEOmpBBQxBb9a8iPRxi8Rb2oiwOxuZJzSq11A==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dev: true + + /@typescript-eslint/types/5.25.0: + resolution: {integrity: sha512-7fWqfxr0KNHj75PFqlGX24gWjdV/FDBABXL5dyvBOWHpACGyveok8Uj4ipPX/1fGU63fBkzSIycEje4XsOxUFA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dev: true + + /@typescript-eslint/typescript-estree/5.24.0_typescript@4.6.4: + resolution: {integrity: sha512-zcor6vQkQmZAQfebSPVwUk/FD+CvnsnlfKXYeQDsWXRF+t7SBPmIfNia/wQxCSeu1h1JIjwV2i9f5/DdSp/uDw==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/types': 5.24.0 + '@typescript-eslint/visitor-keys': 5.24.0 + debug: 4.3.4 + globby: 11.1.0 + is-glob: 4.0.3 + semver: 7.3.7 + tsutils: 3.21.0_typescript@4.6.4 + typescript: 4.6.4 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/typescript-estree/5.25.0_typescript@4.6.4: + resolution: {integrity: sha512-MrPODKDych/oWs/71LCnuO7NyR681HuBly2uLnX3r5i4ME7q/yBqC4hW33kmxtuauLTM0OuBOhhkFaxCCOjEEw==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/types': 5.25.0 + '@typescript-eslint/visitor-keys': 5.25.0 + debug: 4.3.4 + globby: 11.1.0 + is-glob: 4.0.3 + semver: 7.3.7 + tsutils: 3.21.0_typescript@4.6.4 + typescript: 4.6.4 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/utils/5.24.0_hcfsmds2fshutdssjqluwm76uu: + resolution: {integrity: sha512-K05sbWoeCBJH8KXu6hetBJ+ukG0k2u2KlgD3bN+v+oBKm8adJqVHpSSLHNzqyuv0Lh4GVSAUgZ5lB4icmPmWLw==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + dependencies: + '@types/json-schema': 7.0.11 + '@typescript-eslint/scope-manager': 5.24.0 + '@typescript-eslint/types': 5.24.0 + '@typescript-eslint/typescript-estree': 5.24.0_typescript@4.6.4 + eslint: 8.15.0 + eslint-scope: 5.1.1 + eslint-utils: 3.0.0_eslint@8.15.0 + transitivePeerDependencies: + - supports-color + - typescript + dev: true + + /@typescript-eslint/utils/5.25.0_hcfsmds2fshutdssjqluwm76uu: + resolution: {integrity: sha512-qNC9bhnz/n9Kba3yI6HQgQdBLuxDoMgdjzdhSInZh6NaDnFpTUlwNGxplUFWfY260Ya0TRPvkg9dd57qxrJI9g==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + dependencies: + '@types/json-schema': 7.0.11 + '@typescript-eslint/scope-manager': 5.25.0 + '@typescript-eslint/types': 5.25.0 + '@typescript-eslint/typescript-estree': 5.25.0_typescript@4.6.4 + eslint: 8.15.0 + eslint-scope: 5.1.1 + eslint-utils: 3.0.0_eslint@8.15.0 + transitivePeerDependencies: + - supports-color + - typescript + dev: true + + /@typescript-eslint/visitor-keys/5.24.0: + resolution: {integrity: sha512-qzGwSXMyMnogcAo+/2fU+jhlPPVMXlIH2PeAonIKjJSoDKl1+lJVvG5Z5Oud36yU0TWK2cs1p/FaSN5J2OUFYA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + '@typescript-eslint/types': 5.24.0 + eslint-visitor-keys: 3.3.0 + dev: true + + /@typescript-eslint/visitor-keys/5.25.0: + resolution: {integrity: sha512-yd26vFgMsC4h2dgX4+LR+GeicSKIfUvZREFLf3DDjZPtqgLx5AJZr6TetMNwFP9hcKreTTeztQYBTNbNoOycwA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + '@typescript-eslint/types': 5.25.0 + eslint-visitor-keys: 3.3.0 + dev: true + + /@webassemblyjs/ast/1.11.1: + resolution: {integrity: sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==} + dependencies: + '@webassemblyjs/helper-numbers': 1.11.1 + '@webassemblyjs/helper-wasm-bytecode': 1.11.1 + dev: true + + /@webassemblyjs/ast/1.9.0: + resolution: {integrity: sha512-C6wW5L+b7ogSDVqymbkkvuW9kruN//YisMED04xzeBBqjHa2FYnmvOlS6Xj68xWQRgWvI9cIglsjFowH/RJyEA==} + dependencies: + '@webassemblyjs/helper-module-context': 1.9.0 + '@webassemblyjs/helper-wasm-bytecode': 1.9.0 + '@webassemblyjs/wast-parser': 1.9.0 + dev: true + + /@webassemblyjs/floating-point-hex-parser/1.11.1: + resolution: {integrity: sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==} + dev: true + + /@webassemblyjs/floating-point-hex-parser/1.9.0: + resolution: {integrity: sha512-TG5qcFsS8QB4g4MhrxK5TqfdNe7Ey/7YL/xN+36rRjl/BlGE/NcBvJcqsRgCP6Z92mRE+7N50pRIi8SmKUbcQA==} + dev: true + + /@webassemblyjs/helper-api-error/1.11.1: + resolution: {integrity: sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==} + dev: true + + /@webassemblyjs/helper-api-error/1.9.0: + resolution: {integrity: sha512-NcMLjoFMXpsASZFxJ5h2HZRcEhDkvnNFOAKneP5RbKRzaWJN36NC4jqQHKwStIhGXu5mUWlUUk7ygdtrO8lbmw==} + dev: true + + /@webassemblyjs/helper-buffer/1.11.1: + resolution: {integrity: sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==} + dev: true + + /@webassemblyjs/helper-buffer/1.9.0: + resolution: {integrity: sha512-qZol43oqhq6yBPx7YM3m9Bv7WMV9Eevj6kMi6InKOuZxhw+q9hOkvq5e/PpKSiLfyetpaBnogSbNCfBwyB00CA==} + dev: true + + /@webassemblyjs/helper-code-frame/1.9.0: + resolution: {integrity: sha512-ERCYdJBkD9Vu4vtjUYe8LZruWuNIToYq/ME22igL+2vj2dQ2OOujIZr3MEFvfEaqKoVqpsFKAGsRdBSBjrIvZA==} + dependencies: + '@webassemblyjs/wast-printer': 1.9.0 + dev: true + + /@webassemblyjs/helper-fsm/1.9.0: + resolution: {integrity: sha512-OPRowhGbshCb5PxJ8LocpdX9Kl0uB4XsAjl6jH/dWKlk/mzsANvhwbiULsaiqT5GZGT9qinTICdj6PLuM5gslw==} + dev: true + + /@webassemblyjs/helper-module-context/1.9.0: + resolution: {integrity: sha512-MJCW8iGC08tMk2enck1aPW+BE5Cw8/7ph/VGZxwyvGbJwjktKkDK7vy7gAmMDx88D7mhDTCNKAW5tED+gZ0W8g==} + dependencies: + '@webassemblyjs/ast': 1.9.0 + dev: true + + /@webassemblyjs/helper-numbers/1.11.1: + resolution: {integrity: sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==} + dependencies: + '@webassemblyjs/floating-point-hex-parser': 1.11.1 + '@webassemblyjs/helper-api-error': 1.11.1 + '@xtuc/long': 4.2.2 + dev: true + + /@webassemblyjs/helper-wasm-bytecode/1.11.1: + resolution: {integrity: sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==} + dev: true + + /@webassemblyjs/helper-wasm-bytecode/1.9.0: + resolution: {integrity: sha512-R7FStIzyNcd7xKxCZH5lE0Bqy+hGTwS3LJjuv1ZVxd9O7eHCedSdrId/hMOd20I+v8wDXEn+bjfKDLzTepoaUw==} + dev: true + + /@webassemblyjs/helper-wasm-section/1.11.1: + resolution: {integrity: sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==} + dependencies: + '@webassemblyjs/ast': 1.11.1 + '@webassemblyjs/helper-buffer': 1.11.1 + '@webassemblyjs/helper-wasm-bytecode': 1.11.1 + '@webassemblyjs/wasm-gen': 1.11.1 + dev: true + + /@webassemblyjs/helper-wasm-section/1.9.0: + resolution: {integrity: sha512-XnMB8l3ek4tvrKUUku+IVaXNHz2YsJyOOmz+MMkZvh8h1uSJpSen6vYnw3IoQ7WwEuAhL8Efjms1ZWjqh2agvw==} + dependencies: + '@webassemblyjs/ast': 1.9.0 + '@webassemblyjs/helper-buffer': 1.9.0 + '@webassemblyjs/helper-wasm-bytecode': 1.9.0 + '@webassemblyjs/wasm-gen': 1.9.0 + dev: true + + /@webassemblyjs/ieee754/1.11.1: + resolution: {integrity: sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==} + dependencies: + '@xtuc/ieee754': 1.2.0 + dev: true + + /@webassemblyjs/ieee754/1.9.0: + resolution: {integrity: sha512-dcX8JuYU/gvymzIHc9DgxTzUUTLexWwt8uCTWP3otys596io0L5aW02Gb1RjYpx2+0Jus1h4ZFqjla7umFniTg==} + dependencies: + '@xtuc/ieee754': 1.2.0 + dev: true + + /@webassemblyjs/leb128/1.11.1: + resolution: {integrity: sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==} + dependencies: + '@xtuc/long': 4.2.2 + dev: true + + /@webassemblyjs/leb128/1.9.0: + resolution: {integrity: sha512-ENVzM5VwV1ojs9jam6vPys97B/S65YQtv/aanqnU7D8aSoHFX8GyhGg0CMfyKNIHBuAVjy3tlzd5QMMINa7wpw==} + dependencies: + '@xtuc/long': 4.2.2 + dev: true + + /@webassemblyjs/utf8/1.11.1: + resolution: {integrity: sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==} + dev: true + + /@webassemblyjs/utf8/1.9.0: + resolution: {integrity: sha512-GZbQlWtopBTP0u7cHrEx+73yZKrQoBMpwkGEIqlacljhXCkVM1kMQge/Mf+csMJAjEdSwhOyLAS0AoR3AG5P8w==} + dev: true + + /@webassemblyjs/wasm-edit/1.11.1: + resolution: {integrity: sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==} + dependencies: + '@webassemblyjs/ast': 1.11.1 + '@webassemblyjs/helper-buffer': 1.11.1 + '@webassemblyjs/helper-wasm-bytecode': 1.11.1 + '@webassemblyjs/helper-wasm-section': 1.11.1 + '@webassemblyjs/wasm-gen': 1.11.1 + '@webassemblyjs/wasm-opt': 1.11.1 + '@webassemblyjs/wasm-parser': 1.11.1 + '@webassemblyjs/wast-printer': 1.11.1 + dev: true + + /@webassemblyjs/wasm-edit/1.9.0: + resolution: {integrity: sha512-FgHzBm80uwz5M8WKnMTn6j/sVbqilPdQXTWraSjBwFXSYGirpkSWE2R9Qvz9tNiTKQvoKILpCuTjBKzOIm0nxw==} + dependencies: + '@webassemblyjs/ast': 1.9.0 + '@webassemblyjs/helper-buffer': 1.9.0 + '@webassemblyjs/helper-wasm-bytecode': 1.9.0 + '@webassemblyjs/helper-wasm-section': 1.9.0 + '@webassemblyjs/wasm-gen': 1.9.0 + '@webassemblyjs/wasm-opt': 1.9.0 + '@webassemblyjs/wasm-parser': 1.9.0 + '@webassemblyjs/wast-printer': 1.9.0 + dev: true + + /@webassemblyjs/wasm-gen/1.11.1: + resolution: {integrity: sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==} + dependencies: + '@webassemblyjs/ast': 1.11.1 + '@webassemblyjs/helper-wasm-bytecode': 1.11.1 + '@webassemblyjs/ieee754': 1.11.1 + '@webassemblyjs/leb128': 1.11.1 + '@webassemblyjs/utf8': 1.11.1 + dev: true + + /@webassemblyjs/wasm-gen/1.9.0: + resolution: {integrity: sha512-cPE3o44YzOOHvlsb4+E9qSqjc9Qf9Na1OO/BHFy4OI91XDE14MjFN4lTMezzaIWdPqHnsTodGGNP+iRSYfGkjA==} + dependencies: + '@webassemblyjs/ast': 1.9.0 + '@webassemblyjs/helper-wasm-bytecode': 1.9.0 + '@webassemblyjs/ieee754': 1.9.0 + '@webassemblyjs/leb128': 1.9.0 + '@webassemblyjs/utf8': 1.9.0 + dev: true + + /@webassemblyjs/wasm-opt/1.11.1: + resolution: {integrity: sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==} + dependencies: + '@webassemblyjs/ast': 1.11.1 + '@webassemblyjs/helper-buffer': 1.11.1 + '@webassemblyjs/wasm-gen': 1.11.1 + '@webassemblyjs/wasm-parser': 1.11.1 + dev: true + + /@webassemblyjs/wasm-opt/1.9.0: + resolution: {integrity: sha512-Qkjgm6Anhm+OMbIL0iokO7meajkzQD71ioelnfPEj6r4eOFuqm4YC3VBPqXjFyyNwowzbMD+hizmprP/Fwkl2A==} + dependencies: + '@webassemblyjs/ast': 1.9.0 + '@webassemblyjs/helper-buffer': 1.9.0 + '@webassemblyjs/wasm-gen': 1.9.0 + '@webassemblyjs/wasm-parser': 1.9.0 + dev: true + + /@webassemblyjs/wasm-parser/1.11.1: + resolution: {integrity: sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==} + dependencies: + '@webassemblyjs/ast': 1.11.1 + '@webassemblyjs/helper-api-error': 1.11.1 + '@webassemblyjs/helper-wasm-bytecode': 1.11.1 + '@webassemblyjs/ieee754': 1.11.1 + '@webassemblyjs/leb128': 1.11.1 + '@webassemblyjs/utf8': 1.11.1 + dev: true + + /@webassemblyjs/wasm-parser/1.9.0: + resolution: {integrity: sha512-9+wkMowR2AmdSWQzsPEjFU7njh8HTO5MqO8vjwEHuM+AMHioNqSBONRdr0NQQ3dVQrzp0s8lTcYqzUdb7YgELA==} + dependencies: + '@webassemblyjs/ast': 1.9.0 + '@webassemblyjs/helper-api-error': 1.9.0 + '@webassemblyjs/helper-wasm-bytecode': 1.9.0 + '@webassemblyjs/ieee754': 1.9.0 + '@webassemblyjs/leb128': 1.9.0 + '@webassemblyjs/utf8': 1.9.0 + dev: true + + /@webassemblyjs/wast-parser/1.9.0: + resolution: {integrity: sha512-qsqSAP3QQ3LyZjNC/0jBJ/ToSxfYJ8kYyuiGvtn/8MK89VrNEfwj7BPQzJVHi0jGTRK2dGdJ5PRqhtjzoww+bw==} + dependencies: + '@webassemblyjs/ast': 1.9.0 + '@webassemblyjs/floating-point-hex-parser': 1.9.0 + '@webassemblyjs/helper-api-error': 1.9.0 + '@webassemblyjs/helper-code-frame': 1.9.0 + '@webassemblyjs/helper-fsm': 1.9.0 + '@xtuc/long': 4.2.2 + dev: true + + /@webassemblyjs/wast-printer/1.11.1: + resolution: {integrity: sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==} + dependencies: + '@webassemblyjs/ast': 1.11.1 + '@xtuc/long': 4.2.2 + dev: true + + /@webassemblyjs/wast-printer/1.9.0: + resolution: {integrity: sha512-2J0nE95rHXHyQ24cWjMKJ1tqB/ds8z/cyeOZxJhcb+rW+SQASVjuznUSmdz5GpVJTzU8JkhYut0D3siFDD6wsA==} + dependencies: + '@webassemblyjs/ast': 1.9.0 + '@webassemblyjs/wast-parser': 1.9.0 + '@xtuc/long': 4.2.2 + dev: true + + /@xtuc/ieee754/1.2.0: + resolution: {integrity: sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==} + dev: true + + /@xtuc/long/4.2.2: + resolution: {integrity: sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==} + dev: true + + /JSONStream/1.3.5: + resolution: {integrity: sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==} + hasBin: true + dependencies: + jsonparse: 1.3.1 + through: 2.3.8 + dev: true + + /abab/2.0.6: + resolution: {integrity: sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==} + dev: true + + /accepts/1.3.8: + resolution: {integrity: sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==} + engines: {node: '>= 0.6'} + dependencies: + mime-types: 2.1.35 + negotiator: 0.6.3 + dev: true + + /acorn-globals/6.0.0: + resolution: {integrity: sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==} + dependencies: + acorn: 7.4.1 + acorn-walk: 7.2.0 + dev: true + + /acorn-import-assertions/1.8.0_acorn@8.7.1: + resolution: {integrity: sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==} + peerDependencies: + acorn: ^8 + dependencies: + acorn: 8.7.1 + dev: true + + /acorn-jsx/5.3.2_acorn@7.4.1: + resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} + peerDependencies: + acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 + dependencies: + acorn: 7.4.1 + dev: true + + /acorn-jsx/5.3.2_acorn@8.7.1: + resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} + peerDependencies: + acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 + dependencies: + acorn: 8.7.1 + dev: true + + /acorn-walk/7.2.0: + resolution: {integrity: sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==} + engines: {node: '>=0.4.0'} + dev: true + + /acorn-walk/8.2.0: + resolution: {integrity: sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==} + engines: {node: '>=0.4.0'} + dev: true + + /acorn/6.4.2: + resolution: {integrity: sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ==} + engines: {node: '>=0.4.0'} + hasBin: true + dev: true + + /acorn/7.4.1: + resolution: {integrity: sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==} + engines: {node: '>=0.4.0'} + hasBin: true + dev: true + + /acorn/8.7.1: + resolution: {integrity: sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A==} + engines: {node: '>=0.4.0'} + hasBin: true + dev: true + + /add-stream/1.0.0: + resolution: {integrity: sha512-qQLMr+8o0WC4FZGQTcJiKBVC59JylcPSrTtk6usvmIDFUOCKegapy1VHQwRbFMOFyb/inzUVqHs+eMYKDM1YeQ==} + dev: true + + /address/1.1.2: + resolution: {integrity: sha512-aT6camzM4xEA54YVJYSqxz1kv4IHnQZRtThJJHhUMRExaU5spC7jX5ugSwTaTgJliIgs4VhZOk7htClvQ/LmRA==} + engines: {node: '>= 0.12.0'} + dev: true + + /agent-base/6.0.2: + resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==} + engines: {node: '>= 6.0.0'} + dependencies: + debug: 4.3.4 + transitivePeerDependencies: + - supports-color + dev: true + + /aggregate-error/3.1.0: + resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==} + engines: {node: '>=8'} + dependencies: + clean-stack: 2.2.0 + indent-string: 4.0.0 + dev: true + + /airbnb-js-shims/2.2.1: + resolution: {integrity: sha512-wJNXPH66U2xjgo1Zwyjf9EydvJ2Si94+vSdk6EERcBfB2VZkeltpqIats0cqIZMLCXP3zcyaUKGYQeIBT6XjsQ==} + dependencies: + array-includes: 3.1.4 + array.prototype.flat: 1.3.0 + array.prototype.flatmap: 1.3.0 + es5-shim: 4.6.5 + es6-shim: 0.35.6 + function.prototype.name: 1.1.5 + globalthis: 1.0.2 + object.entries: 1.1.5 + object.fromentries: 2.0.5 + object.getownpropertydescriptors: 2.1.3 + object.values: 1.1.5 + promise.allsettled: 1.0.5 + promise.prototype.finally: 3.1.3 + string.prototype.matchall: 4.0.7 + string.prototype.padend: 3.1.3 + string.prototype.padstart: 3.1.3 + symbol.prototype.description: 1.0.5 + dev: true + + /ajv-errors/1.0.1_ajv@6.12.6: + resolution: {integrity: sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ==} + peerDependencies: + ajv: '>=5.0.0' + dependencies: + ajv: 6.12.6 + dev: true + + /ajv-keywords/3.5.2_ajv@6.12.6: + resolution: {integrity: sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==} + peerDependencies: + ajv: ^6.9.1 + dependencies: + ajv: 6.12.6 + dev: true + + /ajv/6.12.6: + resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} + dependencies: + fast-deep-equal: 3.1.3 + fast-json-stable-stringify: 2.1.0 + json-schema-traverse: 0.4.1 + uri-js: 4.4.1 + dev: true + + /alphanum-sort/1.0.2: + resolution: {integrity: sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=} + dev: true + + /ansi-align/3.0.1: + resolution: {integrity: sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==} + dependencies: + string-width: 4.2.3 + dev: true + + /ansi-colors/3.2.4: + resolution: {integrity: sha512-hHUXGagefjN2iRrID63xckIvotOXOojhQKWIPUZ4mNUZ9nLZW+7FMNoE1lOkEhNWYsx/7ysGIuJYCiMAA9FnrA==} + engines: {node: '>=6'} + dev: true + + /ansi-escapes/3.2.0: + resolution: {integrity: sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==} + engines: {node: '>=4'} + dev: true + + /ansi-escapes/4.3.2: + resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==} + engines: {node: '>=8'} + dependencies: + type-fest: 0.21.3 + dev: true + + /ansi-html-community/0.0.8: + resolution: {integrity: sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==} + engines: {'0': node >= 0.8.0} + hasBin: true + dev: true + + /ansi-regex/2.1.1: + resolution: {integrity: sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==} + engines: {node: '>=0.10.0'} + dev: true + + /ansi-regex/3.0.1: + resolution: {integrity: sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==} + engines: {node: '>=4'} + dev: true + + /ansi-regex/4.1.1: + resolution: {integrity: sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==} + engines: {node: '>=6'} + dev: true + + /ansi-regex/5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + dev: true + + /ansi-styles/2.2.1: + resolution: {integrity: sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==} + engines: {node: '>=0.10.0'} + dev: true + + /ansi-styles/3.2.1: + resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} + engines: {node: '>=4'} + dependencies: + color-convert: 1.9.3 + dev: true + + /ansi-styles/4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + dependencies: + color-convert: 2.0.1 + dev: true + + /ansi-styles/5.2.0: + resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} + engines: {node: '>=10'} + dev: true + + /ansi-to-html/0.6.15: + resolution: {integrity: sha512-28ijx2aHJGdzbs+O5SNQF65r6rrKYnkuwTYm8lZlChuoJ9P1vVzIpWO20sQTqTPDXYp6NFwk326vApTtLVFXpQ==} + engines: {node: '>=8.0.0'} + hasBin: true + dependencies: + entities: 2.2.0 + dev: true + + /anymatch/2.0.0: + resolution: {integrity: sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==} + dependencies: + micromatch: 3.1.10 + normalize-path: 2.1.1 + transitivePeerDependencies: + - supports-color + dev: true + + /anymatch/3.1.2: + resolution: {integrity: sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==} + engines: {node: '>= 8'} + dependencies: + normalize-path: 3.0.0 + picomatch: 2.3.1 + dev: true + + /app-root-dir/1.0.2: + resolution: {integrity: sha1-OBh+wt6nV3//Az/8sSFyaS/24Rg=} + dev: true + + /aproba/1.2.0: + resolution: {integrity: sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==} + dev: true + + /aproba/2.0.0: + resolution: {integrity: sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==} + dev: true + + /are-we-there-yet/2.0.0: + resolution: {integrity: sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==} + engines: {node: '>=10'} + dependencies: + delegates: 1.0.0 + readable-stream: 3.6.0 + dev: true + + /arg/4.1.3: + resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} + dev: true + + /argparse/1.0.10: + resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} + dependencies: + sprintf-js: 1.0.3 + dev: true + + /argparse/2.0.1: + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + dev: true + + /argue-cli/2.0.0: + resolution: {integrity: sha512-t0Nn8sxf7dPtQRDZyyzrjnfPYw7/yYC46mVqGgy4oCa0wwWgB7wooqVLTUPZ1z5Kk1FUc8LZFTXhegU1oy1xXw==} + engines: {node: '>=14.0.0'} + dev: true + + /aria-query/5.0.0: + resolution: {integrity: sha512-V+SM7AbUwJ+EBnB8+DXs0hPZHO0W6pqBcc0dW90OwtVG02PswOu/teuARoLQjdDOH+t9pJgGnW5/Qmouf3gPJg==} + engines: {node: '>=6.0'} + dev: true + + /arr-diff/4.0.0: + resolution: {integrity: sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=} + engines: {node: '>=0.10.0'} + dev: true + + /arr-flatten/1.1.0: + resolution: {integrity: sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==} + engines: {node: '>=0.10.0'} + dev: true + + /arr-union/3.1.0: + resolution: {integrity: sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=} + engines: {node: '>=0.10.0'} + dev: true + + /array-flatten/1.1.1: + resolution: {integrity: sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=} + dev: true + + /array-ify/1.0.0: + resolution: {integrity: sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==} + dev: true + + /array-includes/3.1.4: + resolution: {integrity: sha512-ZTNSQkmWumEbiHO2GF4GmWxYVTiQyJy2XOTa15sdQSrvKn7l+180egQMqlrMOUMCyLMD7pmyQe4mMDUT6Behrw==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.3 + es-abstract: 1.19.5 + get-intrinsic: 1.1.1 + is-string: 1.0.7 + dev: true + + /array-union/1.0.2: + resolution: {integrity: sha512-Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng==} + engines: {node: '>=0.10.0'} + dependencies: + array-uniq: 1.0.3 + dev: true + + /array-union/2.1.0: + resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} + engines: {node: '>=8'} + dev: true + + /array-uniq/1.0.3: + resolution: {integrity: sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=} + engines: {node: '>=0.10.0'} + dev: true + + /array-unique/0.3.2: + resolution: {integrity: sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=} + engines: {node: '>=0.10.0'} + dev: true + + /array.prototype.flat/1.3.0: + resolution: {integrity: sha512-12IUEkHsAhA4DY5s0FPgNXIdc8VRSqD9Zp78a5au9abH/SOBrsp082JOWFNTjkMozh8mqcdiKuaLGhPeYztxSw==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.3 + es-abstract: 1.19.5 + es-shim-unscopables: 1.0.0 + dev: true + + /array.prototype.flatmap/1.3.0: + resolution: {integrity: sha512-PZC9/8TKAIxcWKdyeb77EzULHPrIX/tIZebLJUQOMR1OwYosT8yggdfWScfTBCDj5utONvOuPQQumYsU2ULbkg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.3 + es-abstract: 1.19.5 + es-shim-unscopables: 1.0.0 + dev: true + + /array.prototype.map/1.0.4: + resolution: {integrity: sha512-Qds9QnX7A0qISY7JT5WuJO0NJPE9CMlC6JzHQfhpqAAQQzufVRoeH7EzUY5GcPTx72voG8LV/5eo+b8Qi8hmhA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.3 + es-abstract: 1.19.5 + es-array-method-boxes-properly: 1.0.0 + is-string: 1.0.7 + dev: true + + /arrify/1.0.1: + resolution: {integrity: sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==} + engines: {node: '>=0.10.0'} + dev: true + + /arrify/2.0.1: + resolution: {integrity: sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==} + engines: {node: '>=8'} + dev: true + + /asn1.js/5.4.1: + resolution: {integrity: sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==} + dependencies: + bn.js: 4.12.0 + inherits: 2.0.4 + minimalistic-assert: 1.0.1 + safer-buffer: 2.1.2 + dev: true + + /assert/1.5.0: + resolution: {integrity: sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA==} + dependencies: + object-assign: 4.1.1 + util: 0.10.3 + dev: true + + /assign-symbols/1.0.0: + resolution: {integrity: sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=} + engines: {node: '>=0.10.0'} + dev: true + + /async-each/1.0.3: + resolution: {integrity: sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ==} + dev: true + optional: true + + /async/2.6.4: + resolution: {integrity: sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==} + dependencies: + lodash: 4.17.21 + dev: true + + /asynckit/0.4.0: + resolution: {integrity: sha1-x57Zf380y48robyXkLzDZkdLS3k=} + dev: true + + /at-least-node/1.0.0: + resolution: {integrity: sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==} + engines: {node: '>= 4.0.0'} + dev: true + + /atob/2.1.2: + resolution: {integrity: sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==} + engines: {node: '>= 4.5.0'} + hasBin: true + dev: true + + /autoprefixer/9.8.8: + resolution: {integrity: sha512-eM9d/swFopRt5gdJ7jrpCwgvEMIayITpojhkkSMRsFHYuH5bkSQ4p/9qTEHtmNudUZh22Tehu7I6CxAW0IXTKA==} + hasBin: true + dependencies: + browserslist: 4.20.2 + caniuse-lite: 1.0.30001332 + normalize-range: 0.1.2 + num2fraction: 1.2.2 + picocolors: 0.2.1 + postcss: 7.0.39 + postcss-value-parser: 4.2.0 + dev: true + + /axe-core/4.4.2: + resolution: {integrity: sha512-LVAaGp/wkkgYJcjmHsoKx4juT1aQvJyPcW09MLCjVTh3V2cc6PnyempiLMNH5iMdfIX/zdbjUx2KDjMLCTdPeA==} + engines: {node: '>=12'} + dev: true + + /babel-jest/27.5.1_@babel+core@7.17.9: + resolution: {integrity: sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + peerDependencies: + '@babel/core': ^7.8.0 + dependencies: + '@babel/core': 7.17.9 + '@jest/transform': 27.5.1 + '@jest/types': 27.5.1 + '@types/babel__core': 7.1.19 + babel-plugin-istanbul: 6.1.1 + babel-preset-jest: 27.5.1_@babel+core@7.17.9 + chalk: 4.1.2 + graceful-fs: 4.2.10 + slash: 3.0.0 + transitivePeerDependencies: + - supports-color + dev: true + + /babel-loader/8.2.4_lgfes7hlvohbl3uptzldef4omm: + resolution: {integrity: sha512-8dytA3gcvPPPv4Grjhnt8b5IIiTcq/zeXOPk4iTYI0SVXcsmuGg7JtBRDp8S9X+gJfhQ8ektjXZlDu1Bb33U8A==} + engines: {node: '>= 8.9'} + peerDependencies: + '@babel/core': ^7.0.0 + webpack: '>=2' + dependencies: + '@babel/core': 7.17.9 + find-cache-dir: 3.3.2 + loader-utils: 2.0.2 + make-dir: 3.1.0 + schema-utils: 2.7.1 + webpack: 4.46.0 + dev: true + + /babel-plugin-apply-mdx-type-prop/1.6.22_@babel+core@7.12.9: + resolution: {integrity: sha512-VefL+8o+F/DfK24lPZMtJctrCVOfgbqLAGZSkxwhazQv4VxPg3Za/i40fu22KR2m8eEda+IfSOlPLUSIiLcnCQ==} + peerDependencies: + '@babel/core': ^7.11.6 + dependencies: + '@babel/core': 7.12.9 + '@babel/helper-plugin-utils': 7.10.4 + '@mdx-js/util': 1.6.22 + dev: true + + /babel-plugin-dynamic-import-node/2.3.3: + resolution: {integrity: sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==} + dependencies: + object.assign: 4.1.2 + dev: true + + /babel-plugin-emotion/10.2.2: + resolution: {integrity: sha512-SMSkGoqTbTyUTDeuVuPIWifPdUGkTk1Kf9BWRiXIOIcuyMfsdp2EjeiiFvOzX8NOBvEh/ypKYvUh2rkgAJMCLA==} + dependencies: + '@babel/helper-module-imports': 7.16.7 + '@emotion/hash': 0.8.0 + '@emotion/memoize': 0.7.4 + '@emotion/serialize': 0.11.16 + babel-plugin-macros: 2.8.0 + babel-plugin-syntax-jsx: 6.18.0 + convert-source-map: 1.8.0 + escape-string-regexp: 1.0.5 + find-root: 1.1.0 + source-map: 0.5.7 + dev: true + + /babel-plugin-extract-import-names/1.6.22: + resolution: {integrity: sha512-yJ9BsJaISua7d8zNT7oRG1ZLBJCIdZ4PZqmH8qa9N5AK01ifk3fnkc98AXhtzE7UkfCsEumvoQWgoYLhOnJ7jQ==} + dependencies: + '@babel/helper-plugin-utils': 7.10.4 + dev: true + + /babel-plugin-istanbul/6.1.1: + resolution: {integrity: sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==} + engines: {node: '>=8'} + dependencies: + '@babel/helper-plugin-utils': 7.16.7 + '@istanbuljs/load-nyc-config': 1.1.0 + '@istanbuljs/schema': 0.1.3 + istanbul-lib-instrument: 5.1.0 + test-exclude: 6.0.0 + transitivePeerDependencies: + - supports-color + dev: true + + /babel-plugin-jest-hoist/27.5.1: + resolution: {integrity: sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@babel/template': 7.16.7 + '@babel/types': 7.17.0 + '@types/babel__core': 7.1.19 + '@types/babel__traverse': 7.17.0 + dev: true + + /babel-plugin-macros/2.8.0: + resolution: {integrity: sha512-SEP5kJpfGYqYKpBrj5XU3ahw5p5GOHJ0U5ssOSQ/WBVdwkD2Dzlce95exQTs3jOVWPPKLBN2rlEWkCK7dSmLvg==} + dependencies: + '@babel/runtime': 7.17.9 + cosmiconfig: 6.0.0 + resolve: 1.22.0 + dev: true + + /babel-plugin-macros/3.1.0: + resolution: {integrity: sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==} + engines: {node: '>=10', npm: '>=6'} + dependencies: + '@babel/runtime': 7.17.9 + cosmiconfig: 7.0.1 + resolve: 1.22.0 + dev: true + + /babel-plugin-polyfill-corejs2/0.3.1_@babel+core@7.17.9: + resolution: {integrity: sha512-v7/T6EQcNfVLfcN2X8Lulb7DjprieyLWJK/zOWH5DUYcAgex9sP3h25Q+DLsX9TloXe3y1O8l2q2Jv9q8UVB9w==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/compat-data': 7.17.7 + '@babel/core': 7.17.9 + '@babel/helper-define-polyfill-provider': 0.3.1_@babel+core@7.17.9 + semver: 6.3.0 + transitivePeerDependencies: + - supports-color + dev: true + + /babel-plugin-polyfill-corejs3/0.1.7_@babel+core@7.17.9: + resolution: {integrity: sha512-u+gbS9bbPhZWEeyy1oR/YaaSpod/KDT07arZHb80aTpl8H5ZBq+uN1nN9/xtX7jQyfLdPfoqI4Rue/MQSWJquw==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-define-polyfill-provider': 0.1.5_@babel+core@7.17.9 + core-js-compat: 3.21.1 + transitivePeerDependencies: + - supports-color + dev: true + + /babel-plugin-polyfill-corejs3/0.5.2_@babel+core@7.17.9: + resolution: {integrity: sha512-G3uJih0XWiID451fpeFaYGVuxHEjzKTHtc9uGFEjR6hHrvNzeS/PX+LLLcetJcytsB5m4j+K3o/EpXJNb/5IEQ==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-define-polyfill-provider': 0.3.1_@babel+core@7.17.9 + core-js-compat: 3.21.1 + transitivePeerDependencies: + - supports-color + dev: true + + /babel-plugin-polyfill-regenerator/0.3.1_@babel+core@7.17.9: + resolution: {integrity: sha512-Y2B06tvgHYt1x0yz17jGkGeeMr5FeKUu+ASJ+N6nB5lQ8Dapfg42i0OVrf8PNGJ3zKL4A23snMi1IRwrqqND7A==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.17.9 + '@babel/helper-define-polyfill-provider': 0.3.1_@babel+core@7.17.9 + transitivePeerDependencies: + - supports-color + dev: true + + /babel-plugin-syntax-jsx/6.18.0: + resolution: {integrity: sha512-qrPaCSo9c8RHNRHIotaufGbuOBN8rtdC4QrrFFc43vyWCCz7Kl7GL1PGaXtMGQZUXrkCjNEgxDfmAuAabr/rlw==} + dev: true + + /babel-preset-current-node-syntax/1.0.1_@babel+core@7.17.9: + resolution: {integrity: sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.17.9 + '@babel/plugin-syntax-async-generators': 7.8.4_@babel+core@7.17.9 + '@babel/plugin-syntax-bigint': 7.8.3_@babel+core@7.17.9 + '@babel/plugin-syntax-class-properties': 7.12.13_@babel+core@7.17.9 + '@babel/plugin-syntax-import-meta': 7.10.4_@babel+core@7.17.9 + '@babel/plugin-syntax-json-strings': 7.8.3_@babel+core@7.17.9 + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4_@babel+core@7.17.9 + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3_@babel+core@7.17.9 + '@babel/plugin-syntax-numeric-separator': 7.10.4_@babel+core@7.17.9 + '@babel/plugin-syntax-object-rest-spread': 7.8.3_@babel+core@7.17.9 + '@babel/plugin-syntax-optional-catch-binding': 7.8.3_@babel+core@7.17.9 + '@babel/plugin-syntax-optional-chaining': 7.8.3_@babel+core@7.17.9 + '@babel/plugin-syntax-top-level-await': 7.14.5_@babel+core@7.17.9 + dev: true + + /babel-preset-jest/27.5.1_@babel+core@7.17.9: + resolution: {integrity: sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.17.9 + babel-plugin-jest-hoist: 27.5.1 + babel-preset-current-node-syntax: 1.0.1_@babel+core@7.17.9 + dev: true + + /bail/1.0.5: + resolution: {integrity: sha512-xFbRxM1tahm08yHBP16MMjVUAvDaBMD38zsM9EMAUN61omwLmKlOpB/Zku5QkjZ8TZ4vn53pj+t518cH0S03RQ==} + dev: true + + /balanced-match/1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + dev: true + + /base/0.11.2: + resolution: {integrity: sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==} + engines: {node: '>=0.10.0'} + dependencies: + cache-base: 1.0.1 + class-utils: 0.3.6 + component-emitter: 1.3.0 + define-property: 1.0.0 + isobject: 3.0.1 + mixin-deep: 1.3.2 + pascalcase: 0.1.1 + dev: true + + /base64-js/1.5.1: + resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} + dev: true + + /basic-auth/2.0.1: + resolution: {integrity: sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==} + engines: {node: '>= 0.8'} + dependencies: + safe-buffer: 5.1.2 + dev: true + + /batch-processor/1.0.0: + resolution: {integrity: sha1-dclcMrdI4IUNEMKxaPa9vpiRrOg=} + dev: true + + /before-after-hook/2.2.2: + resolution: {integrity: sha512-3pZEU3NT5BFUo/AD5ERPWOgQOCZITni6iavr5AUw5AUwQjMlI0kzu5btnyD39AF0gUEsDPwJT+oY1ORBJijPjQ==} + dev: true + + /better-opn/2.1.1: + resolution: {integrity: sha512-kIPXZS5qwyKiX/HcRvDYfmBQUa8XP17I0mYZZ0y4UhpYOSvtsLHDYqmomS+Mj20aDvD3knEiQ0ecQy2nhio3yA==} + engines: {node: '>8.0.0'} + dependencies: + open: 7.4.2 + dev: true + + /big.js/5.2.2: + resolution: {integrity: sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==} + dev: true + + /binary-extensions/1.13.1: + resolution: {integrity: sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==} + engines: {node: '>=0.10.0'} + dev: true + optional: true + + /binary-extensions/2.2.0: + resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} + engines: {node: '>=8'} + dev: true + + /bindings/1.5.0: + resolution: {integrity: sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==} + requiresBuild: true + dependencies: + file-uri-to-path: 1.0.0 + dev: true + optional: true + + /bl/4.1.0: + resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} + dependencies: + buffer: 5.7.1 + inherits: 2.0.4 + readable-stream: 3.6.0 + dev: true + + /bluebird/3.7.2: + resolution: {integrity: sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==} + dev: true + + /bn.js/4.12.0: + resolution: {integrity: sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==} + dev: true + + /bn.js/5.2.0: + resolution: {integrity: sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw==} + dev: true + + /body-parser/1.19.2: + resolution: {integrity: sha512-SAAwOxgoCKMGs9uUAUFHygfLAyaniaoun6I8mFY9pRAJL9+Kec34aU+oIjDhTycub1jozEfEwx1W1IuOYxVSFw==} + engines: {node: '>= 0.8'} + dependencies: + bytes: 3.1.2 + content-type: 1.0.4 + debug: 2.6.9 + depd: 1.1.2 + http-errors: 1.8.1 + iconv-lite: 0.4.24 + on-finished: 2.3.0 + qs: 6.9.7 + raw-body: 2.4.3 + type-is: 1.6.18 + transitivePeerDependencies: + - supports-color + dev: true + + /boolbase/1.0.0: + resolution: {integrity: sha1-aN/1++YMUes3cl6p4+0xDcwed24=} + dev: true + + /boxen/5.1.2: + resolution: {integrity: sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ==} + engines: {node: '>=10'} + dependencies: + ansi-align: 3.0.1 + camelcase: 6.3.0 + chalk: 4.1.2 + cli-boxes: 2.2.1 + string-width: 4.2.3 + type-fest: 0.20.2 + widest-line: 3.1.0 + wrap-ansi: 7.0.0 + dev: true + + /brace-expansion/1.1.11: + resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} + dependencies: + balanced-match: 1.0.2 + concat-map: 0.0.1 + dev: true + + /braces/2.3.2: + resolution: {integrity: sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==} + engines: {node: '>=0.10.0'} + dependencies: + arr-flatten: 1.1.0 + array-unique: 0.3.2 + extend-shallow: 2.0.1 + fill-range: 4.0.0 + isobject: 3.0.1 + repeat-element: 1.1.4 + snapdragon: 0.8.2 + snapdragon-node: 2.1.1 + split-string: 3.1.0 + to-regex: 3.0.2 + transitivePeerDependencies: + - supports-color + dev: true + + /braces/3.0.2: + resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} + engines: {node: '>=8'} + dependencies: + fill-range: 7.0.1 + dev: true + + /brorand/1.1.0: + resolution: {integrity: sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=} + dev: true + + /browser-process-hrtime/1.0.0: + resolution: {integrity: sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==} + dev: true + + /browserify-aes/1.2.0: + resolution: {integrity: sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==} + dependencies: + buffer-xor: 1.0.3 + cipher-base: 1.0.4 + create-hash: 1.2.0 + evp_bytestokey: 1.0.3 + inherits: 2.0.4 + safe-buffer: 5.2.1 + dev: true + + /browserify-cipher/1.0.1: + resolution: {integrity: sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==} + dependencies: + browserify-aes: 1.2.0 + browserify-des: 1.0.2 + evp_bytestokey: 1.0.3 + dev: true + + /browserify-des/1.0.2: + resolution: {integrity: sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==} + dependencies: + cipher-base: 1.0.4 + des.js: 1.0.1 + inherits: 2.0.4 + safe-buffer: 5.2.1 + dev: true + + /browserify-rsa/4.1.0: + resolution: {integrity: sha512-AdEER0Hkspgno2aR97SAf6vi0y0k8NuOpGnVH3O99rcA5Q6sh8QxcngtHuJ6uXwnfAXNM4Gn1Gb7/MV1+Ymbog==} + dependencies: + bn.js: 5.2.0 + randombytes: 2.1.0 + dev: true + + /browserify-sign/4.2.1: + resolution: {integrity: sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg==} + dependencies: + bn.js: 5.2.0 + browserify-rsa: 4.1.0 + create-hash: 1.2.0 + create-hmac: 1.1.7 + elliptic: 6.5.4 + inherits: 2.0.4 + parse-asn1: 5.1.6 + readable-stream: 3.6.0 + safe-buffer: 5.2.1 + dev: true + + /browserify-zlib/0.2.0: + resolution: {integrity: sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==} + dependencies: + pako: 1.0.11 + dev: true + + /browserslist/4.20.2: + resolution: {integrity: sha512-CQOBCqp/9pDvDbx3xfMi+86pr4KXIf2FDkTTdeuYw8OxS9t898LA1Khq57gtufFILXpfgsSx5woNgsBgvGjpsA==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + dependencies: + caniuse-lite: 1.0.30001331 + electron-to-chromium: 1.4.107 + escalade: 3.1.1 + node-releases: 2.0.3 + picocolors: 1.0.0 + dev: true + + /bser/2.1.1: + resolution: {integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==} + dependencies: + node-int64: 0.4.0 + dev: true + + /buffer-crc32/0.2.13: + resolution: {integrity: sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=} + dev: true + + /buffer-from/1.1.2: + resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} + dev: true + + /buffer-xor/1.0.3: + resolution: {integrity: sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=} + dev: true + + /buffer/4.9.2: + resolution: {integrity: sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==} + dependencies: + base64-js: 1.5.1 + ieee754: 1.2.1 + isarray: 1.0.0 + dev: true + + /buffer/5.7.1: + resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} + dependencies: + base64-js: 1.5.1 + ieee754: 1.2.1 + dev: true + + /builtin-modules/3.2.0: + resolution: {integrity: sha512-lGzLKcioL90C7wMczpkY0n/oART3MbBa8R9OFGE1rJxoVI86u4WAGfEk8Wjv10eKSyTHVGkSo3bvBylCEtk7LA==} + engines: {node: '>=6'} + dev: true + + /builtin-status-codes/3.0.0: + resolution: {integrity: sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=} + dev: true + + /bytes-iec/3.1.1: + resolution: {integrity: sha512-fey6+4jDK7TFtFg/klGSvNKJctyU7n2aQdnM+CO0ruLPbqqMOM8Tio0Pc+deqUeVKX1tL5DQep1zQ7+37aTAsA==} + engines: {node: '>= 0.8'} + dev: true + + /bytes/3.0.0: + resolution: {integrity: sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=} + engines: {node: '>= 0.8'} + dev: true + + /bytes/3.1.2: + resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==} + engines: {node: '>= 0.8'} + dev: true + + /cacache/12.0.4: + resolution: {integrity: sha512-a0tMB40oefvuInr4Cwb3GerbL9xTj1D5yg0T5xrjGCGyfvbxseIXX7BAO/u/hIXdafzOI5JC3wDwHyf24buOAQ==} + dependencies: + bluebird: 3.7.2 + chownr: 1.1.4 + figgy-pudding: 3.5.2 + glob: 7.2.0 + graceful-fs: 4.2.10 + infer-owner: 1.0.4 + lru-cache: 5.1.1 + mississippi: 3.0.0 + mkdirp: 0.5.6 + move-concurrently: 1.0.1 + promise-inflight: 1.0.1 + rimraf: 2.7.1 + ssri: 6.0.2 + unique-filename: 1.1.1 + y18n: 4.0.3 + dev: true + + /cacache/15.3.0: + resolution: {integrity: sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==} + engines: {node: '>= 10'} + dependencies: + '@npmcli/fs': 1.1.1 + '@npmcli/move-file': 1.1.2 + chownr: 2.0.0 + fs-minipass: 2.1.0 + glob: 7.2.0 + infer-owner: 1.0.4 + lru-cache: 6.0.0 + minipass: 3.1.6 + minipass-collect: 1.0.2 + minipass-flush: 1.0.5 + minipass-pipeline: 1.2.4 + mkdirp: 1.0.4 + p-map: 4.0.0 + promise-inflight: 1.0.1 + rimraf: 3.0.2 + ssri: 8.0.1 + tar: 6.1.11 + unique-filename: 1.1.1 + transitivePeerDependencies: + - bluebird + dev: true + + /cache-base/1.0.1: + resolution: {integrity: sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==} + engines: {node: '>=0.10.0'} + dependencies: + collection-visit: 1.0.0 + component-emitter: 1.3.0 + get-value: 2.0.6 + has-value: 1.0.0 + isobject: 3.0.1 + set-value: 2.0.1 + to-object-path: 0.3.0 + union-value: 1.0.1 + unset-value: 1.0.0 + dev: true + + /cachedir/2.2.0: + resolution: {integrity: sha512-VvxA0xhNqIIfg0V9AmJkDg91DaJwryutH5rVEZAhcNi4iJFj9f+QxmAjgK1LT9I8OgToX27fypX6/MeCXVbBjQ==} + engines: {node: '>=6'} + dev: true + + /call-bind/1.0.2: + resolution: {integrity: sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==} + dependencies: + function-bind: 1.1.1 + get-intrinsic: 1.1.1 + dev: true + + /call-me-maybe/1.0.1: + resolution: {integrity: sha1-JtII6onje1y95gJQoV8DHBak1ms=} + dev: true + + /caller-callsite/2.0.0: + resolution: {integrity: sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ=} + engines: {node: '>=4'} + dependencies: + callsites: 2.0.0 + dev: true + + /caller-path/2.0.0: + resolution: {integrity: sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ=} + engines: {node: '>=4'} + dependencies: + caller-callsite: 2.0.0 + dev: true + + /callsites/2.0.0: + resolution: {integrity: sha512-ksWePWBloaWPxJYQ8TL0JHvtci6G5QTKwQ95RcWAa/lzoAKuAOflGdAK92hpHXjkwb8zLxoLNUoNYZgVsaJzvQ==} + engines: {node: '>=4'} + dev: true + + /callsites/3.1.0: + resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} + engines: {node: '>=6'} + dev: true + + /camel-case/4.1.2: + resolution: {integrity: sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==} + dependencies: + pascal-case: 3.1.2 + tslib: 2.3.1 + dev: true + + /camelcase-css/2.0.1: + resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==} + engines: {node: '>= 6'} + dev: true + + /camelcase-keys/6.2.2: + resolution: {integrity: sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==} + engines: {node: '>=8'} + dependencies: + camelcase: 5.3.1 + map-obj: 4.3.0 + quick-lru: 4.0.1 + dev: true + + /camelcase-keys/7.0.2: + resolution: {integrity: sha512-Rjs1H+A9R+Ig+4E/9oyB66UC5Mj9Xq3N//vcLf2WzgdTi/3gUu3Z9KoqmlrEG4VuuLK8wJHofxzdQXz/knhiYg==} + engines: {node: '>=12'} + dependencies: + camelcase: 6.3.0 + map-obj: 4.3.0 + quick-lru: 5.1.1 + type-fest: 1.4.0 + dev: true + + /camelcase/5.3.1: + resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==} + engines: {node: '>=6'} + dev: true + + /camelcase/6.3.0: + resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} + engines: {node: '>=10'} + dev: true + + /caniuse-api/3.0.0: + resolution: {integrity: sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==} + dependencies: + browserslist: 4.20.2 + caniuse-lite: 1.0.30001332 + lodash.memoize: 4.1.2 + lodash.uniq: 4.5.0 + dev: true + + /caniuse-lite/1.0.30001331: + resolution: {integrity: sha512-Y1xk6paHpUXKP/P6YjQv1xqyTbgAP05ycHBcRdQjTcyXlWol868sJJPlmk5ylOekw2BrucWes5jk+LvVd7WZ5Q==} + dev: true + + /caniuse-lite/1.0.30001332: + resolution: {integrity: sha512-10T30NYOEQtN6C11YGg411yebhvpnC6Z102+B95eAsN0oB6KUs01ivE8u+G6FMIRtIrVlYXhL+LUwQ3/hXwDWw==} + dev: true + + /capture-exit/2.0.0: + resolution: {integrity: sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g==} + engines: {node: 6.* || 8.* || >= 10.*} + dependencies: + rsvp: 4.8.5 + dev: true + + /case-sensitive-paths-webpack-plugin/2.4.0: + resolution: {integrity: sha512-roIFONhcxog0JSSWbvVAh3OocukmSgpqOH6YpMkCvav/ySIV3JKg4Dc8vYtQjYi/UxpNE36r/9v+VqTQqgkYmw==} + engines: {node: '>=4'} + dev: true + + /ccount/1.1.0: + resolution: {integrity: sha512-vlNK021QdI7PNeiUh/lKkC/mNHHfV0m/Ad5JoI0TYtlBnJAslM/JIkm/tGC88bkLIwO6OQ5uV6ztS6kVAtCDlg==} + dev: true + + /chalk/1.1.3: + resolution: {integrity: sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=} + engines: {node: '>=0.10.0'} + dependencies: + ansi-styles: 2.2.1 + escape-string-regexp: 1.0.5 + has-ansi: 2.0.0 + strip-ansi: 3.0.1 + supports-color: 2.0.0 + dev: true + + /chalk/2.4.2: + resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} + engines: {node: '>=4'} + dependencies: + ansi-styles: 3.2.1 + escape-string-regexp: 1.0.5 + supports-color: 5.5.0 + dev: true + + /chalk/3.0.0: + resolution: {integrity: sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==} + engines: {node: '>=8'} + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + dev: true + + /chalk/4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} + engines: {node: '>=10'} + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + dev: true + + /char-regex/1.0.2: + resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} + engines: {node: '>=10'} + dev: true + + /character-entities-legacy/1.1.4: + resolution: {integrity: sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA==} + dev: true + + /character-entities/1.2.4: + resolution: {integrity: sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw==} + dev: true + + /character-reference-invalid/1.1.4: + resolution: {integrity: sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==} + dev: true + + /charcodes/0.2.0: + resolution: {integrity: sha512-Y4kiDb+AM4Ecy58YkuZrrSRJBDQdQ2L+NyS1vHHFtNtUjgutcZfx3yp1dAONI/oPaPmyGfCLx5CxL+zauIMyKQ==} + engines: {node: '>=6'} + dev: true + + /chardet/0.7.0: + resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==} + dev: true + + /chartist/0.11.4: + resolution: {integrity: sha512-H4AimxaUD738/u9Mq8t27J4lh6STsLi4BQHt65nOtpLk3xyrBPaLiLMrHw7/WV9CmsjGA02WihjuL5qpSagLYw==} + engines: {node: '>=4.6.0'} + dev: true + + /chokidar/2.1.8: + resolution: {integrity: sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg==} + deprecated: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies + dependencies: + anymatch: 2.0.0 + async-each: 1.0.3 + braces: 2.3.2 + glob-parent: 3.1.0 + inherits: 2.0.4 + is-binary-path: 1.0.1 + is-glob: 4.0.3 + normalize-path: 3.0.0 + path-is-absolute: 1.0.1 + readdirp: 2.2.1 + upath: 1.2.0 + optionalDependencies: + fsevents: 1.2.13 + transitivePeerDependencies: + - supports-color + dev: true + optional: true + + /chokidar/3.5.3: + resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==} + engines: {node: '>= 8.10.0'} + dependencies: + anymatch: 3.1.2 + braces: 3.0.2 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.6.0 + optionalDependencies: + fsevents: 2.3.2 + dev: true + + /chownr/1.1.4: + resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==} + dev: true + + /chownr/2.0.0: + resolution: {integrity: sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==} + engines: {node: '>=10'} + dev: true + + /chrome-trace-event/1.0.3: + resolution: {integrity: sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==} + engines: {node: '>=6.0'} + dev: true + + /ci-info/2.0.0: + resolution: {integrity: sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==} + dev: true + + /ci-info/3.3.0: + resolution: {integrity: sha512-riT/3vI5YpVH6/qomlDnJow6TBee2PBKSEpx3O32EGPYbWGIRsIlGRms3Sm74wYE1JMo8RnO04Hb12+v1J5ICw==} + dev: true + + /ci-job-number/1.2.2: + resolution: {integrity: sha512-CLOGsVDrVamzv8sXJGaILUVI6dsuAkouJP/n6t+OxLPeeA4DDby7zn9SB6EUpa1H7oIKoE+rMmkW80zYsFfUjA==} + dev: true + + /cipher-base/1.0.4: + resolution: {integrity: sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==} + dependencies: + inherits: 2.0.4 + safe-buffer: 5.2.1 + dev: true + + /cjs-module-lexer/1.2.2: + resolution: {integrity: sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==} + dev: true + + /class-utils/0.3.6: + resolution: {integrity: sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==} + engines: {node: '>=0.10.0'} + dependencies: + arr-union: 3.1.0 + define-property: 0.2.5 + isobject: 3.0.1 + static-extend: 0.1.2 + dev: true + + /clean-css/4.2.4: + resolution: {integrity: sha512-EJUDT7nDVFDvaQgAo2G/PJvxmp1o/c6iXLbswsBbUFXi1Nr+AjA2cKmfbKDMjMvzEe75g3P6JkaDDAKk96A85A==} + engines: {node: '>= 4.0'} + dependencies: + source-map: 0.6.1 + dev: true + + /clean-publish/4.0.1: + resolution: {integrity: sha512-6v0bh5kQD5FDlxBgXDVNNc6KmAB7iIP/GHD91q9xsGVZT5XB9Y8TNqB7dL5u9PTZlBeLpBw+A1AseRlEEJLSWA==} + engines: {node: '>= 16.0.0'} + hasBin: true + dependencies: + cross-spawn: 7.0.3 + fast-glob: 3.2.11 + lilconfig: 2.0.5 + micromatch: 4.0.5 + dev: true + + /clean-stack/2.2.0: + resolution: {integrity: sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==} + engines: {node: '>=6'} + dev: true + + /cli-boxes/2.2.1: + resolution: {integrity: sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==} + engines: {node: '>=6'} + dev: true + + /cli-cursor/2.1.0: + resolution: {integrity: sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=} + engines: {node: '>=4'} + dependencies: + restore-cursor: 2.0.0 + dev: true + + /cli-cursor/3.1.0: + resolution: {integrity: sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==} + engines: {node: '>=8'} + dependencies: + restore-cursor: 3.1.0 + dev: true + + /cli-spinners/2.6.1: + resolution: {integrity: sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g==} + engines: {node: '>=6'} + dev: true + + /cli-table3/0.6.2: + resolution: {integrity: sha512-QyavHCaIC80cMivimWu4aWHilIpiDpfm3hGmqAmXVL1UsnbLuBSMd21hTX6VY4ZSDSM73ESLeF8TOYId3rBTbw==} + engines: {node: 10.* || >= 12.*} + dependencies: + string-width: 4.2.3 + optionalDependencies: + '@colors/colors': 1.5.0 + dev: true + + /cli-width/2.2.1: + resolution: {integrity: sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw==} + dev: true + + /cli-width/3.0.0: + resolution: {integrity: sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==} + engines: {node: '>= 10'} + dev: true + + /cliui/7.0.4: + resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==} + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 7.0.0 + dev: true + + /clone-deep/4.0.1: + resolution: {integrity: sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==} + engines: {node: '>=6'} + dependencies: + is-plain-object: 2.0.4 + kind-of: 6.0.3 + shallow-clone: 3.0.1 + dev: true + + /clone/1.0.4: + resolution: {integrity: sha1-2jCcwmPfFZlMaIypAheco8fNfH4=} + engines: {node: '>=0.8'} + dev: true + + /clsx/1.1.1: + resolution: {integrity: sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA==} + engines: {node: '>=6'} + dev: true + + /co/4.6.0: + resolution: {integrity: sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=} + engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'} + dev: true + + /coa/2.0.2: + resolution: {integrity: sha512-q5/jG+YQnSy4nRTV4F7lPepBJZ8qBNJJDBuJdoejDyLXgmL7IEo+Le2JDZudFTFt7mrCqIRaSjws4ygRCTCAXA==} + engines: {node: '>= 4.0'} + dependencies: + '@types/q': 1.5.5 + chalk: 2.4.2 + q: 1.5.1 + dev: true + + /collapse-white-space/1.0.6: + resolution: {integrity: sha512-jEovNnrhMuqyCcjfEJA56v0Xq8SkIoPKDyaHahwo3POf4qcSXqMYuwNcOTzp74vTsR9Tn08z4MxWqAhcekogkQ==} + dev: true + + /collect-v8-coverage/1.0.1: + resolution: {integrity: sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==} + dev: true + + /collection-visit/1.0.0: + resolution: {integrity: sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=} + engines: {node: '>=0.10.0'} + dependencies: + map-visit: 1.0.0 + object-visit: 1.0.1 + dev: true + + /color-convert/1.9.3: + resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} + dependencies: + color-name: 1.1.3 + dev: true + + /color-convert/2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + dependencies: + color-name: 1.1.4 + dev: true + + /color-name/1.1.3: + resolution: {integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==} + dev: true + + /color-name/1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + dev: true + + /color-string/1.9.1: + resolution: {integrity: sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==} + dependencies: + color-name: 1.1.4 + simple-swizzle: 0.2.2 + dev: true + + /color-support/1.1.3: + resolution: {integrity: sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==} + hasBin: true + dev: true + + /color/3.2.1: + resolution: {integrity: sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA==} + dependencies: + color-convert: 1.9.3 + color-string: 1.9.1 + dev: true + + /combined-stream/1.0.8: + resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} + engines: {node: '>= 0.8'} + dependencies: + delayed-stream: 1.0.0 + dev: true + + /comma-separated-tokens/1.0.8: + resolution: {integrity: sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw==} + dev: true + + /commander/2.20.3: + resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} + dev: true + + /commander/4.1.1: + resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} + engines: {node: '>= 6'} + dev: true + + /commander/6.2.1: + resolution: {integrity: sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==} + engines: {node: '>= 6'} + dev: true + + /commander/9.3.0: + resolution: {integrity: sha512-hv95iU5uXPbK83mjrJKuZyFM/LBAoCV/XhVGkS5Je6tl7sxr6A0ITMw5WoRV46/UaJ46Nllm3Xt7IaJhXTIkzw==} + engines: {node: ^12.20.0 || >=14} + dev: true + + /commitizen/4.2.4_@swc+core@1.2.165: + resolution: {integrity: sha512-LlZChbDzg3Ir3O2S7jSo/cgWp5/QwylQVr59K4xayVq8S4/RdKzSyJkghAiZZHfhh5t4pxunUoyeg0ml1q/7aw==} + engines: {node: '>= 10'} + hasBin: true + dependencies: + cachedir: 2.2.0 + cz-conventional-changelog: 3.2.0_@swc+core@1.2.165 + dedent: 0.7.0 + detect-indent: 6.0.0 + find-node-modules: 2.1.3 + find-root: 1.1.0 + fs-extra: 8.1.0 + glob: 7.1.4 + inquirer: 6.5.2 + is-utf8: 0.2.1 + lodash: 4.17.21 + minimist: 1.2.5 + strip-bom: 4.0.0 + strip-json-comments: 3.0.1 + transitivePeerDependencies: + - '@swc/core' + - '@swc/wasm' + dev: true + + /commondir/1.0.1: + resolution: {integrity: sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=} + dev: true + + /compare-func/2.0.0: + resolution: {integrity: sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==} + dependencies: + array-ify: 1.0.0 + dot-prop: 5.3.0 + dev: true + + /component-emitter/1.3.0: + resolution: {integrity: sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==} + dev: true + + /compressible/2.0.18: + resolution: {integrity: sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==} + engines: {node: '>= 0.6'} + dependencies: + mime-db: 1.52.0 + dev: true + + /compression/1.7.4: + resolution: {integrity: sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==} + engines: {node: '>= 0.8.0'} + dependencies: + accepts: 1.3.8 + bytes: 3.0.0 + compressible: 2.0.18 + debug: 2.6.9 + on-headers: 1.0.2 + safe-buffer: 5.1.2 + vary: 1.1.2 + transitivePeerDependencies: + - supports-color + dev: true + + /compute-scroll-into-view/1.0.17: + resolution: {integrity: sha512-j4dx+Fb0URmzbwwMUrhqWM2BEWHdFGx+qZ9qqASHRPqvTYdqvWnHg0H1hIbcyLnvgnoNAVMlwkepyqM3DaIFUg==} + dev: true + + /concat-map/0.0.1: + resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} + dev: true + + /concat-stream/1.6.2: + resolution: {integrity: sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==} + engines: {'0': node >= 0.8} + dependencies: + buffer-from: 1.1.2 + inherits: 2.0.4 + readable-stream: 2.3.7 + typedarray: 0.0.6 + dev: true + + /concat-stream/2.0.0: + resolution: {integrity: sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==} + engines: {'0': node >= 6.0} + dependencies: + buffer-from: 1.1.2 + inherits: 2.0.4 + readable-stream: 3.6.0 + typedarray: 0.0.6 + dev: true + + /console-browserify/1.2.0: + resolution: {integrity: sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==} + dev: true + + /console-control-strings/1.1.0: + resolution: {integrity: sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=} + dev: true + + /constants-browserify/1.0.0: + resolution: {integrity: sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=} + dev: true + + /content-disposition/0.5.4: + resolution: {integrity: sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==} + engines: {node: '>= 0.6'} + dependencies: + safe-buffer: 5.2.1 + dev: true + + /content-type/1.0.4: + resolution: {integrity: sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==} + engines: {node: '>= 0.6'} + dev: true + + /conventional-changelog-angular/5.0.13: + resolution: {integrity: sha512-i/gipMxs7s8L/QeuavPF2hLnJgH6pEZAttySB6aiQLWcX3puWDL3ACVmvBhJGxnAy52Qc15ua26BufY6KpmrVA==} + engines: {node: '>=10'} + dependencies: + compare-func: 2.0.0 + q: 1.5.1 + dev: true + + /conventional-changelog-atom/2.0.8: + resolution: {integrity: sha512-xo6v46icsFTK3bb7dY/8m2qvc8sZemRgdqLb/bjpBsH2UyOS8rKNTgcb5025Hri6IpANPApbXMg15QLb1LJpBw==} + engines: {node: '>=10'} + dependencies: + q: 1.5.1 + dev: true + + /conventional-changelog-codemirror/2.0.8: + resolution: {integrity: sha512-z5DAsn3uj1Vfp7po3gpt2Boc+Bdwmw2++ZHa5Ak9k0UKsYAO5mH1UBTN0qSCuJZREIhX6WU4E1p3IW2oRCNzQw==} + engines: {node: '>=10'} + dependencies: + q: 1.5.1 + dev: true + + /conventional-changelog-config-spec/2.1.0: + resolution: {integrity: sha512-IpVePh16EbbB02V+UA+HQnnPIohgXvJRxHcS5+Uwk4AT5LjzCZJm5sp/yqs5C6KZJ1jMsV4paEV13BN1pvDuxQ==} + dev: true + + /conventional-changelog-conventionalcommits/4.6.3: + resolution: {integrity: sha512-LTTQV4fwOM4oLPad317V/QNQ1FY4Hju5qeBIM1uTHbrnCE+Eg4CdRZ3gO2pUeR+tzWdp80M2j3qFFEDWVqOV4g==} + engines: {node: '>=10'} + dependencies: + compare-func: 2.0.0 + lodash: 4.17.21 + q: 1.5.1 + dev: true + + /conventional-changelog-core/4.2.4: + resolution: {integrity: sha512-gDVS+zVJHE2v4SLc6B0sLsPiloR0ygU7HaDW14aNJE1v4SlqJPILPl/aJC7YdtRE4CybBf8gDwObBvKha8Xlyg==} + engines: {node: '>=10'} + dependencies: + add-stream: 1.0.0 + conventional-changelog-writer: 5.0.1 + conventional-commits-parser: 3.2.4 + dateformat: 3.0.3 + get-pkg-repo: 4.2.1 + git-raw-commits: 2.0.11 + git-remote-origin-url: 2.0.0 + git-semver-tags: 4.1.1 + lodash: 4.17.21 + normalize-package-data: 3.0.3 + q: 1.5.1 + read-pkg: 3.0.0 + read-pkg-up: 3.0.0 + through2: 4.0.2 + dev: true + + /conventional-changelog-ember/2.0.9: + resolution: {integrity: sha512-ulzIReoZEvZCBDhcNYfDIsLTHzYHc7awh+eI44ZtV5cx6LVxLlVtEmcO+2/kGIHGtw+qVabJYjdI5cJOQgXh1A==} + engines: {node: '>=10'} + dependencies: + q: 1.5.1 + dev: true + + /conventional-changelog-eslint/3.0.9: + resolution: {integrity: sha512-6NpUCMgU8qmWmyAMSZO5NrRd7rTgErjrm4VASam2u5jrZS0n38V7Y9CzTtLT2qwz5xEChDR4BduoWIr8TfwvXA==} + engines: {node: '>=10'} + dependencies: + q: 1.5.1 + dev: true + + /conventional-changelog-express/2.0.6: + resolution: {integrity: sha512-SDez2f3iVJw6V563O3pRtNwXtQaSmEfTCaTBPCqn0oG0mfkq0rX4hHBq5P7De2MncoRixrALj3u3oQsNK+Q0pQ==} + engines: {node: '>=10'} + dependencies: + q: 1.5.1 + dev: true + + /conventional-changelog-jquery/3.0.11: + resolution: {integrity: sha512-x8AWz5/Td55F7+o/9LQ6cQIPwrCjfJQ5Zmfqi8thwUEKHstEn4kTIofXub7plf1xvFA2TqhZlq7fy5OmV6BOMw==} + engines: {node: '>=10'} + dependencies: + q: 1.5.1 + dev: true + + /conventional-changelog-jshint/2.0.9: + resolution: {integrity: sha512-wMLdaIzq6TNnMHMy31hql02OEQ8nCQfExw1SE0hYL5KvU+JCTuPaDO+7JiogGT2gJAxiUGATdtYYfh+nT+6riA==} + engines: {node: '>=10'} + dependencies: + compare-func: 2.0.0 + q: 1.5.1 + dev: true + + /conventional-changelog-preset-loader/2.3.4: + resolution: {integrity: sha512-GEKRWkrSAZeTq5+YjUZOYxdHq+ci4dNwHvpaBC3+ENalzFWuCWa9EZXSuZBpkr72sMdKB+1fyDV4takK1Lf58g==} + engines: {node: '>=10'} + dev: true + + /conventional-changelog-writer/5.0.1: + resolution: {integrity: sha512-5WsuKUfxW7suLblAbFnxAcrvf6r+0b7GvNaWUwUIk0bXMnENP/PEieGKVUQrjPqwPT4o3EPAASBXiY6iHooLOQ==} + engines: {node: '>=10'} + hasBin: true + dependencies: + conventional-commits-filter: 2.0.7 + dateformat: 3.0.3 + handlebars: 4.7.7 + json-stringify-safe: 5.0.1 + lodash: 4.17.21 + meow: 8.1.2 + semver: 6.3.0 + split: 1.0.1 + through2: 4.0.2 + dev: true + + /conventional-changelog/3.1.25: + resolution: {integrity: sha512-ryhi3fd1mKf3fSjbLXOfK2D06YwKNic1nC9mWqybBHdObPd8KJ2vjaXZfYj1U23t+V8T8n0d7gwnc9XbIdFbyQ==} + engines: {node: '>=10'} + dependencies: + conventional-changelog-angular: 5.0.13 + conventional-changelog-atom: 2.0.8 + conventional-changelog-codemirror: 2.0.8 + conventional-changelog-conventionalcommits: 4.6.3 + conventional-changelog-core: 4.2.4 + conventional-changelog-ember: 2.0.9 + conventional-changelog-eslint: 3.0.9 + conventional-changelog-express: 2.0.6 + conventional-changelog-jquery: 3.0.11 + conventional-changelog-jshint: 2.0.9 + conventional-changelog-preset-loader: 2.3.4 + dev: true + + /conventional-commit-types/3.0.0: + resolution: {integrity: sha512-SmmCYnOniSsAa9GqWOeLqc179lfr5TRu5b4QFDkbsrJ5TZjPJx85wtOr3zn+1dbeNiXDKGPbZ72IKbPhLXh/Lg==} + dev: true + + /conventional-commits-filter/2.0.7: + resolution: {integrity: sha512-ASS9SamOP4TbCClsRHxIHXRfcGCnIoQqkvAzCSbZzTFLfcTqJVugB0agRgsEELsqaeWgsXv513eS116wnlSSPA==} + engines: {node: '>=10'} + dependencies: + lodash.ismatch: 4.4.0 + modify-values: 1.0.1 + dev: true + + /conventional-commits-parser/3.2.4: + resolution: {integrity: sha512-nK7sAtfi+QXbxHCYfhpZsfRtaitZLIA6889kFIouLvz6repszQDgxBu7wf2WbU+Dco7sAnNCJYERCwt54WPC2Q==} + engines: {node: '>=10'} + hasBin: true + dependencies: + is-text-path: 1.0.1 + JSONStream: 1.3.5 + lodash: 4.17.21 + meow: 8.1.2 + split2: 3.2.2 + through2: 4.0.2 + dev: true + + /conventional-recommended-bump/6.1.0: + resolution: {integrity: sha512-uiApbSiNGM/kkdL9GTOLAqC4hbptObFo4wW2QRyHsKciGAfQuLU1ShZ1BIVI/+K2BE/W1AWYQMCXAsv4dyKPaw==} + engines: {node: '>=10'} + hasBin: true + dependencies: + concat-stream: 2.0.0 + conventional-changelog-preset-loader: 2.3.4 + conventional-commits-filter: 2.0.7 + conventional-commits-parser: 3.2.4 + git-raw-commits: 2.0.11 + git-semver-tags: 4.1.1 + meow: 8.1.2 + q: 1.5.1 + dev: true + + /convert-source-map/1.8.0: + resolution: {integrity: sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==} + dependencies: + safe-buffer: 5.1.2 + dev: true + + /cookie-signature/1.0.6: + resolution: {integrity: sha1-4wOogrNCzD7oylE6eZmXNNqzriw=} + dev: true + + /cookie/0.4.2: + resolution: {integrity: sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==} + engines: {node: '>= 0.6'} + dev: true + + /copy-concurrently/1.0.5: + resolution: {integrity: sha512-f2domd9fsVDFtaFcbaRZuYXwtdmnzqbADSwhSWYxYB/Q8zsdUUFMXVRwXGDMWmbEzAn1kdRrtI1T/KTFOL4X2A==} + dependencies: + aproba: 1.2.0 + fs-write-stream-atomic: 1.0.10 + iferr: 0.1.5 + mkdirp: 0.5.6 + rimraf: 2.7.1 + run-queue: 1.0.3 + dev: true + + /copy-descriptor/0.1.1: + resolution: {integrity: sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=} + engines: {node: '>=0.10.0'} + dev: true + + /copy-to-clipboard/3.3.1: + resolution: {integrity: sha512-i13qo6kIHTTpCm8/Wup+0b1mVWETvu2kIMzKoK8FpkLkFxlt0znUAHcMzox+T8sPlqtZXq3CulEjQHsYiGFJUw==} + dependencies: + toggle-selection: 1.0.6 + dev: true + + /core-js-compat/3.21.1: + resolution: {integrity: sha512-gbgX5AUvMb8gwxC7FLVWYT7Kkgu/y7+h/h1X43yJkNqhlK2fuYyQimqvKGNZFAY6CKii/GFKJ2cp/1/42TN36g==} + dependencies: + browserslist: 4.20.2 + semver: 7.0.0 + dev: true + + /core-js-pure/3.21.1: + resolution: {integrity: sha512-12VZfFIu+wyVbBebyHmRTuEE/tZrB4tJToWcwAMcsp3h4+sHR+fMJWbKpYiCRWlhFBq+KNyO8rIV9rTkeVmznQ==} + requiresBuild: true + dev: true + + /core-js/3.21.1: + resolution: {integrity: sha512-FRq5b/VMrWlrmCzwRrpDYNxyHP9BcAZC+xHJaqTgIE5091ZV1NTmyh0sGOg5XqpnHvR0svdy0sv1gWA1zmhxig==} + requiresBuild: true + dev: true + + /core-util-is/1.0.3: + resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} + dev: true + + /corser/2.0.1: + resolution: {integrity: sha1-jtolLsqrWEDc2XXOuQ2TcMgZ/4c=} + engines: {node: '>= 0.4.0'} + dev: true + + /cosmiconfig-typescript-loader/1.0.9_r7532dtfx5sufgo7h2pwwiqz24: + resolution: {integrity: sha512-tRuMRhxN4m1Y8hP9SNYfz7jRwt8lZdWxdjg/ohg5esKmsndJIn4yT96oJVcf5x0eA11taXl+sIp+ielu529k6g==} + engines: {node: '>=12', npm: '>=6'} + peerDependencies: + '@types/node': '*' + typescript: '>=3' + dependencies: + '@types/node': 17.0.34 + cosmiconfig: 7.0.1 + ts-node: 10.7.0_r7532dtfx5sufgo7h2pwwiqz24 + typescript: 4.6.4 + transitivePeerDependencies: + - '@swc/core' + - '@swc/wasm' + dev: true + + /cosmiconfig-typescript-loader/2.0.0_r7532dtfx5sufgo7h2pwwiqz24: + resolution: {integrity: sha512-2NlGul/E3vTQEANqPziqkA01vfiuUU8vT0jZAuUIjEW8u3eCcnCQWLggapCjhbF76s7KQF0fM0kXSKmzaDaG1g==} + engines: {node: '>=12', npm: '>=6'} + peerDependencies: + '@types/node': '*' + typescript: '>=3' + dependencies: + '@types/node': 17.0.34 + cosmiconfig: 7.0.1 + ts-node: 10.7.0_r7532dtfx5sufgo7h2pwwiqz24 + typescript: 4.6.4 + transitivePeerDependencies: + - '@swc/core' + - '@swc/wasm' + dev: true + optional: true + + /cosmiconfig/5.2.1: + resolution: {integrity: sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==} + engines: {node: '>=4'} + dependencies: + import-fresh: 2.0.0 + is-directory: 0.3.1 + js-yaml: 3.14.1 + parse-json: 4.0.0 + dev: true + + /cosmiconfig/6.0.0: + resolution: {integrity: sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==} + engines: {node: '>=8'} + dependencies: + '@types/parse-json': 4.0.0 + import-fresh: 3.3.0 + parse-json: 5.2.0 + path-type: 4.0.0 + yaml: 1.10.2 + dev: true + + /cosmiconfig/7.0.1: + resolution: {integrity: sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==} + engines: {node: '>=10'} + dependencies: + '@types/parse-json': 4.0.0 + import-fresh: 3.3.0 + parse-json: 5.2.0 + path-type: 4.0.0 + yaml: 1.10.2 + dev: true + + /cp-file/7.0.0: + resolution: {integrity: sha512-0Cbj7gyvFVApzpK/uhCtQ/9kE9UnYpxMzaq5nQQC/Dh4iaj5fxp7iEFIullrYwzj8nf0qnsI1Qsx34hAeAebvw==} + engines: {node: '>=8'} + dependencies: + graceful-fs: 4.2.10 + make-dir: 3.1.0 + nested-error-stacks: 2.1.1 + p-event: 4.2.0 + dev: true + + /cpy/8.1.2: + resolution: {integrity: sha512-dmC4mUesv0OYH2kNFEidtf/skUwv4zePmGeepjyyJ0qTo5+8KhA1o99oIAwVVLzQMAeDJml74d6wPPKb6EZUTg==} + engines: {node: '>=8'} + dependencies: + arrify: 2.0.1 + cp-file: 7.0.0 + globby: 9.2.0 + has-glob: 1.0.0 + junk: 3.1.0 + nested-error-stacks: 2.1.1 + p-all: 2.1.0 + p-filter: 2.1.0 + p-map: 3.0.0 + transitivePeerDependencies: + - supports-color + dev: true + + /create-ecdh/4.0.4: + resolution: {integrity: sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==} + dependencies: + bn.js: 4.12.0 + elliptic: 6.5.4 + dev: true + + /create-hash/1.2.0: + resolution: {integrity: sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==} + dependencies: + cipher-base: 1.0.4 + inherits: 2.0.4 + md5.js: 1.3.5 + ripemd160: 2.0.2 + sha.js: 2.4.11 + dev: true + + /create-hmac/1.1.7: + resolution: {integrity: sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==} + dependencies: + cipher-base: 1.0.4 + create-hash: 1.2.0 + inherits: 2.0.4 + ripemd160: 2.0.2 + safe-buffer: 5.2.1 + sha.js: 2.4.11 + dev: true + + /create-require/1.1.1: + resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} + dev: true + + /cross-fetch/3.1.5: + resolution: {integrity: sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==} + dependencies: + node-fetch: 2.6.7 + transitivePeerDependencies: + - encoding + dev: true + + /cross-spawn/6.0.5: + resolution: {integrity: sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==} + engines: {node: '>=4.8'} + dependencies: + nice-try: 1.0.5 + path-key: 2.0.1 + semver: 5.7.1 + shebang-command: 1.2.0 + which: 1.3.1 + dev: true + + /cross-spawn/7.0.3: + resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + engines: {node: '>= 8'} + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + dev: true + + /crypto-browserify/3.12.0: + resolution: {integrity: sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==} + dependencies: + browserify-cipher: 1.0.1 + browserify-sign: 4.2.1 + create-ecdh: 4.0.4 + create-hash: 1.2.0 + create-hmac: 1.1.7 + diffie-hellman: 5.0.3 + inherits: 2.0.4 + pbkdf2: 3.1.2 + public-encrypt: 4.0.3 + randombytes: 2.1.0 + randomfill: 1.0.4 + dev: true + + /css-blank-pseudo/0.1.4: + resolution: {integrity: sha512-LHz35Hr83dnFeipc7oqFDmsjHdljj3TQtxGGiNWSOsTLIAubSm4TEz8qCaKFpk7idaQ1GfWscF4E6mgpBysA1w==} + engines: {node: '>=6.0.0'} + hasBin: true + dependencies: + postcss: 7.0.39 + dev: true + + /css-color-names/0.0.4: + resolution: {integrity: sha1-gIrcLnnPhHOAabZGyyDsJ762KeA=} + dev: true + + /css-declaration-sorter/4.0.1: + resolution: {integrity: sha512-BcxQSKTSEEQUftYpBVnsH4SF05NTuBokb19/sBt6asXGKZ/6VP7PLG1CBCkFDYOnhXhPh0jMhO6xZ71oYHXHBA==} + engines: {node: '>4'} + dependencies: + postcss: 7.0.39 + timsort: 0.3.0 + dev: true + + /css-has-pseudo/0.10.0: + resolution: {integrity: sha512-Z8hnfsZu4o/kt+AuFzeGpLVhFOGO9mluyHBaA2bA8aCGTwah5sT3WV/fTHH8UNZUytOIImuGPrl/prlb4oX4qQ==} + engines: {node: '>=6.0.0'} + hasBin: true + dependencies: + postcss: 7.0.39 + postcss-selector-parser: 5.0.0 + dev: true + + /css-loader/3.6.0_webpack@4.46.0: + resolution: {integrity: sha512-M5lSukoWi1If8dhQAUCvj4H8vUt3vOnwbQBH9DdTm/s4Ym2B/3dPMtYZeJmq7Q3S3Pa+I94DcZ7pc9bP14cWIQ==} + engines: {node: '>= 8.9.0'} + peerDependencies: + webpack: ^4.0.0 || ^5.0.0 + dependencies: + camelcase: 5.3.1 + cssesc: 3.0.0 + icss-utils: 4.1.1 + loader-utils: 1.4.0 + normalize-path: 3.0.0 + postcss: 7.0.39 + postcss-modules-extract-imports: 2.0.0 + postcss-modules-local-by-default: 3.0.3 + postcss-modules-scope: 2.2.0 + postcss-modules-values: 3.0.0 + postcss-value-parser: 4.2.0 + schema-utils: 2.7.1 + semver: 6.3.0 + webpack: 4.46.0 + dev: true + + /css-prefers-color-scheme/3.1.1: + resolution: {integrity: sha512-MTu6+tMs9S3EUqzmqLXEcgNRbNkkD/TGFvowpeoWJn5Vfq7FMgsmRQs9X5NXAURiOBmOxm/lLjsDNXDE6k9bhg==} + engines: {node: '>=6.0.0'} + hasBin: true + dependencies: + postcss: 7.0.39 + dev: true + + /css-select-base-adapter/0.1.1: + resolution: {integrity: sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w==} + dev: true + + /css-select/2.1.0: + resolution: {integrity: sha512-Dqk7LQKpwLoH3VovzZnkzegqNSuAziQyNZUcrdDM401iY+R5NkGBXGmtO05/yaXQziALuPogeG0b7UAgjnTJTQ==} + dependencies: + boolbase: 1.0.0 + css-what: 3.4.2 + domutils: 1.7.0 + nth-check: 1.0.2 + dev: true + + /css-select/4.3.0: + resolution: {integrity: sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==} + dependencies: + boolbase: 1.0.0 + css-what: 6.1.0 + domhandler: 4.3.1 + domutils: 2.8.0 + nth-check: 2.0.1 + dev: true + + /css-tree/1.0.0-alpha.37: + resolution: {integrity: sha512-DMxWJg0rnz7UgxKT0Q1HU/L9BeJI0M6ksor0OgqOnF+aRCDWg/N2641HmVyU9KVIu0OVVWOb2IpC9A+BJRnejg==} + engines: {node: '>=8.0.0'} + dependencies: + mdn-data: 2.0.4 + source-map: 0.6.1 + dev: true + + /css-tree/1.1.3: + resolution: {integrity: sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==} + engines: {node: '>=8.0.0'} + dependencies: + mdn-data: 2.0.14 + source-map: 0.6.1 + dev: true + + /css-what/3.4.2: + resolution: {integrity: sha512-ACUm3L0/jiZTqfzRM3Hi9Q8eZqd6IK37mMWPLz9PJxkLWllYeRf+EHUSHYEtFop2Eqytaq1FizFVh7XfBnXCDQ==} + engines: {node: '>= 6'} + dev: true + + /css-what/6.1.0: + resolution: {integrity: sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==} + engines: {node: '>= 6'} + dev: true + + /css.escape/1.5.1: + resolution: {integrity: sha1-QuJ9T6BK4y+TGktNQZH6nN3ul8s=} + dev: true + + /css/3.0.0: + resolution: {integrity: sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ==} + dependencies: + inherits: 2.0.4 + source-map: 0.6.1 + source-map-resolve: 0.6.0 + dev: true + + /cssdb/4.4.0: + resolution: {integrity: sha512-LsTAR1JPEM9TpGhl/0p3nQecC2LJ0kD8X5YARu1hk/9I1gril5vDtMZyNxcEpxxDj34YNck/ucjuoUd66K03oQ==} + dev: true + + /cssesc/2.0.0: + resolution: {integrity: sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==} + engines: {node: '>=4'} + hasBin: true + dev: true + + /cssesc/3.0.0: + resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==} + engines: {node: '>=4'} + hasBin: true + dev: true + + /cssnano-preset-default/4.0.8: + resolution: {integrity: sha512-LdAyHuq+VRyeVREFmuxUZR1TXjQm8QQU/ktoo/x7bz+SdOge1YKc5eMN6pRW7YWBmyq59CqYba1dJ5cUukEjLQ==} + engines: {node: '>=6.9.0'} + dependencies: + css-declaration-sorter: 4.0.1 + cssnano-util-raw-cache: 4.0.1 + postcss: 7.0.39 + postcss-calc: 7.0.5 + postcss-colormin: 4.0.3 + postcss-convert-values: 4.0.1 + postcss-discard-comments: 4.0.2 + postcss-discard-duplicates: 4.0.2 + postcss-discard-empty: 4.0.1 + postcss-discard-overridden: 4.0.1 + postcss-merge-longhand: 4.0.11 + postcss-merge-rules: 4.0.3 + postcss-minify-font-values: 4.0.2 + postcss-minify-gradients: 4.0.2 + postcss-minify-params: 4.0.2 + postcss-minify-selectors: 4.0.2 + postcss-normalize-charset: 4.0.1 + postcss-normalize-display-values: 4.0.2 + postcss-normalize-positions: 4.0.2 + postcss-normalize-repeat-style: 4.0.2 + postcss-normalize-string: 4.0.2 + postcss-normalize-timing-functions: 4.0.2 + postcss-normalize-unicode: 4.0.1 + postcss-normalize-url: 4.0.1 + postcss-normalize-whitespace: 4.0.2 + postcss-ordered-values: 4.1.2 + postcss-reduce-initial: 4.0.3 + postcss-reduce-transforms: 4.0.2 + postcss-svgo: 4.0.3 + postcss-unique-selectors: 4.0.1 + dev: true + + /cssnano-util-get-arguments/4.0.0: + resolution: {integrity: sha1-7ToIKZ8h11dBsg87gfGU7UnMFQ8=} + engines: {node: '>=6.9.0'} + dev: true + + /cssnano-util-get-match/4.0.0: + resolution: {integrity: sha1-wOTKB/U4a7F+xeUiULT1lhNlFW0=} + engines: {node: '>=6.9.0'} + dev: true + + /cssnano-util-raw-cache/4.0.1: + resolution: {integrity: sha512-qLuYtWK2b2Dy55I8ZX3ky1Z16WYsx544Q0UWViebptpwn/xDBmog2TLg4f+DBMg1rJ6JDWtn96WHbOKDWt1WQA==} + engines: {node: '>=6.9.0'} + dependencies: + postcss: 7.0.39 + dev: true + + /cssnano-util-same-parent/4.0.1: + resolution: {integrity: sha512-WcKx5OY+KoSIAxBW6UBBRay1U6vkYheCdjyVNDm85zt5K9mHoGOfsOsqIszfAqrQQFIIKgjh2+FDgIj/zsl21Q==} + engines: {node: '>=6.9.0'} + dev: true + + /cssnano/4.1.11: + resolution: {integrity: sha512-6gZm2htn7xIPJOHY824ERgj8cNPgPxyCSnkXc4v7YvNW+TdVfzgngHcEhy/8D11kUWRUMbke+tC+AUcUsnMz2g==} + engines: {node: '>=6.9.0'} + dependencies: + cosmiconfig: 5.2.1 + cssnano-preset-default: 4.0.8 + is-resolvable: 1.1.0 + postcss: 7.0.39 + dev: true + + /csso/4.2.0: + resolution: {integrity: sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==} + engines: {node: '>=8.0.0'} + dependencies: + css-tree: 1.1.3 + dev: true + + /cssom/0.3.8: + resolution: {integrity: sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==} + dev: true + + /cssom/0.4.4: + resolution: {integrity: sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==} + dev: true + + /cssstyle/2.3.0: + resolution: {integrity: sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==} + engines: {node: '>=8'} + dependencies: + cssom: 0.3.8 + dev: true + + /csstype/2.6.20: + resolution: {integrity: sha512-/WwNkdXfckNgw6S5R125rrW8ez139lBHWouiBvX8dfMFtcn6V81REDqnH7+CRpRipfYlyU1CmOnOxrmGcFOjeA==} + dev: true + + /csstype/3.0.11: + resolution: {integrity: sha512-sa6P2wJ+CAbgyy4KFssIb/JNMLxFvKF1pCYCSXS8ZMuqZnMsrxqI2E5sPyoTpxoPU/gVZMzr2zjOfg8GIZOMsw==} + dev: true + + /cyclist/1.0.1: + resolution: {integrity: sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk=} + dev: true + + /cz-conventional-changelog/3.2.0_@swc+core@1.2.165: + resolution: {integrity: sha512-yAYxeGpVi27hqIilG1nh4A9Bnx4J3Ov+eXy4koL3drrR+IO9GaWPsKjik20ht608Asqi8TQPf0mczhEeyAtMzg==} + engines: {node: '>= 10'} + dependencies: + chalk: 2.4.2 + commitizen: 4.2.4_@swc+core@1.2.165 + conventional-commit-types: 3.0.0 + lodash.map: 4.6.0 + longest: 2.0.1 + word-wrap: 1.2.3 + optionalDependencies: + '@commitlint/load': 17.0.0_@swc+core@1.2.165 + transitivePeerDependencies: + - '@swc/core' + - '@swc/wasm' + dev: true + + /dargs/7.0.0: + resolution: {integrity: sha512-2iy1EkLdlBzQGvbweYRFxmFath8+K7+AKB0TlhHWkNuH+TmovaMH/Wp7V7R4u7f4SnX3OgLsU9t1NI9ioDnUpg==} + engines: {node: '>=8'} + dev: true + + /data-urls/2.0.0: + resolution: {integrity: sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==} + engines: {node: '>=10'} + dependencies: + abab: 2.0.6 + whatwg-mimetype: 2.3.0 + whatwg-url: 8.7.0 + dev: true + + /dateformat/3.0.3: + resolution: {integrity: sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==} + dev: true + + /debug/2.6.9: + resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.0.0 + dev: true + + /debug/3.2.7: + resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.1.3 + dev: true + + /debug/4.3.4: + resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.1.2 + dev: true + + /decamelize-keys/1.1.0: + resolution: {integrity: sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=} + engines: {node: '>=0.10.0'} + dependencies: + decamelize: 1.2.0 + map-obj: 1.0.1 + dev: true + + /decamelize/1.2.0: + resolution: {integrity: sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=} + engines: {node: '>=0.10.0'} + dev: true + + /decamelize/5.0.1: + resolution: {integrity: sha512-VfxadyCECXgQlkoEAjeghAr5gY3Hf+IKjKb+X8tGVDtveCjN+USwprd2q3QXBR9T1+x2DG0XZF5/w+7HAtSaXA==} + engines: {node: '>=10'} + dev: true + + /decimal.js/10.3.1: + resolution: {integrity: sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ==} + dev: true + + /decode-uri-component/0.2.0: + resolution: {integrity: sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=} + engines: {node: '>=0.10'} + dev: true + + /dedent/0.7.0: + resolution: {integrity: sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw=} + dev: true + + /deep-is/0.1.4: + resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} + dev: true + + /deep-object-diff/1.1.7: + resolution: {integrity: sha512-QkgBca0mL08P6HiOjoqvmm6xOAl2W6CT2+34Ljhg0OeFan8cwlcdq8jrLKsBBuUFAZLsN5b6y491KdKEoSo9lg==} + dev: true + + /deepmerge/4.2.2: + resolution: {integrity: sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==} + engines: {node: '>=0.10.0'} + dev: true + + /defaults/1.0.3: + resolution: {integrity: sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=} + dependencies: + clone: 1.0.4 + dev: true + + /define-lazy-prop/2.0.0: + resolution: {integrity: sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==} + engines: {node: '>=8'} + dev: true + + /define-properties/1.1.3: + resolution: {integrity: sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==} + engines: {node: '>= 0.4'} + dependencies: + object-keys: 1.1.1 + dev: true + + /define-property/0.2.5: + resolution: {integrity: sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=} + engines: {node: '>=0.10.0'} + dependencies: + is-descriptor: 0.1.6 + dev: true + + /define-property/1.0.0: + resolution: {integrity: sha1-dp66rz9KY6rTr56NMEybvnm/sOY=} + engines: {node: '>=0.10.0'} + dependencies: + is-descriptor: 1.0.2 + dev: true + + /define-property/2.0.2: + resolution: {integrity: sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==} + engines: {node: '>=0.10.0'} + dependencies: + is-descriptor: 1.0.2 + isobject: 3.0.1 + dev: true + + /del-cli/4.0.1: + resolution: {integrity: sha512-KtR/6cBfZkGDAP2NA7z+bP4p1OMob3wjN9mq13+SWvExx6jT9gFWfLgXEeX8J2B47OKeNCq9yTONmtryQ+m+6g==} + engines: {node: '>=12.20'} + hasBin: true + dependencies: + del: 6.0.0 + meow: 10.1.2 + dev: true + + /del/6.0.0: + resolution: {integrity: sha512-1shh9DQ23L16oXSZKB2JxpL7iMy2E0S9d517ptA1P8iw0alkPtQcrKH7ru31rYtKwF499HkTu+DRzq3TCKDFRQ==} + engines: {node: '>=10'} + dependencies: + globby: 11.1.0 + graceful-fs: 4.2.10 + is-glob: 4.0.3 + is-path-cwd: 2.2.0 + is-path-inside: 3.0.3 + p-map: 4.0.0 + rimraf: 3.0.2 + slash: 3.0.0 + dev: true + + /delayed-stream/1.0.0: + resolution: {integrity: sha1-3zrhmayt+31ECqrgsp4icrJOxhk=} + engines: {node: '>=0.4.0'} + dev: true + + /delegates/1.0.0: + resolution: {integrity: sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=} + dev: true + + /depd/1.1.2: + resolution: {integrity: sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=} + engines: {node: '>= 0.6'} + dev: true + + /deprecation/2.3.1: + resolution: {integrity: sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==} + dev: true + + /des.js/1.0.1: + resolution: {integrity: sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA==} + dependencies: + inherits: 2.0.4 + minimalistic-assert: 1.0.1 + dev: true + + /destroy/1.0.4: + resolution: {integrity: sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=} + dev: true + + /detab/2.0.4: + resolution: {integrity: sha512-8zdsQA5bIkoRECvCrNKPla84lyoR7DSAyf7p0YgXzBO9PDJx8KntPUay7NS6yp+KdxdVtiE5SpHKtbp2ZQyA9g==} + dependencies: + repeat-string: 1.6.1 + dev: true + + /detect-file/1.0.0: + resolution: {integrity: sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc=} + engines: {node: '>=0.10.0'} + dev: true + + /detect-indent/6.0.0: + resolution: {integrity: sha512-oSyFlqaTHCItVRGK5RmrmjB+CmaMOW7IaNA/kdxqhoa6d17j/5ce9O9eWXmV/KEdRwqpQA+Vqe8a8Bsybu4YnA==} + engines: {node: '>=8'} + dev: true + + /detect-newline/3.1.0: + resolution: {integrity: sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==} + engines: {node: '>=8'} + dev: true + + /detect-port/1.3.0: + resolution: {integrity: sha512-E+B1gzkl2gqxt1IhUzwjrxBKRqx1UzC3WLONHinn8S3T6lwV/agVCyitiFOsGJ/eYuEUBvD71MZHy3Pv1G9doQ==} + engines: {node: '>= 4.2.1'} + hasBin: true + dependencies: + address: 1.1.2 + debug: 2.6.9 + transitivePeerDependencies: + - supports-color + dev: true + + /devtools-protocol/0.0.981744: + resolution: {integrity: sha512-0cuGS8+jhR67Fy7qG3i3Pc7Aw494sb9yG9QgpG97SFVWwolgYjlhJg7n+UaHxOQT30d1TYu/EYe9k01ivLErIg==} + dev: true + + /devtools-protocol/0.0.982423: + resolution: {integrity: sha512-FnVW2nDbjGNw1uD/JRC+9U5768W7e1TfUwqbDTcSsAu1jXFjITSX8w3rkW5FEpHRMPPGpvNSmO1pOpqByiWscA==} + dev: true + + /diff-sequences/26.6.2: + resolution: {integrity: sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q==} + engines: {node: '>= 10.14.2'} + dev: true + + /diff-sequences/27.5.1: + resolution: {integrity: sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dev: true + + /diff/4.0.2: + resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} + engines: {node: '>=0.3.1'} + dev: true + + /diffie-hellman/5.0.3: + resolution: {integrity: sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==} + dependencies: + bn.js: 4.12.0 + miller-rabin: 4.0.1 + randombytes: 2.1.0 + dev: true + + /dir-glob/2.2.2: + resolution: {integrity: sha512-f9LBi5QWzIW3I6e//uxZoLBlUt9kcp66qo0sSCxL6YZKc75R1c4MFCoe/LaZiBGmgujvQdxc5Bn3QhfyvK5Hsw==} + engines: {node: '>=4'} + dependencies: + path-type: 3.0.0 + dev: true + + /dir-glob/3.0.1: + resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} + engines: {node: '>=8'} + dependencies: + path-type: 4.0.0 + dev: true + + /doctrine/3.0.0: + resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} + engines: {node: '>=6.0.0'} + dependencies: + esutils: 2.0.3 + dev: true + + /dom-accessibility-api/0.5.13: + resolution: {integrity: sha512-R305kwb5CcMDIpSHUnLyIAp7SrSPBx6F0VfQFB3M75xVMHhXJJIdePYgbPPh1o57vCHNu5QztokWUPsLjWzFqw==} + dev: true + + /dom-converter/0.2.0: + resolution: {integrity: sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA==} + dependencies: + utila: 0.4.0 + dev: true + + /dom-serializer/0.2.2: + resolution: {integrity: sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==} + dependencies: + domelementtype: 2.3.0 + entities: 2.2.0 + dev: true + + /dom-serializer/1.4.1: + resolution: {integrity: sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==} + dependencies: + domelementtype: 2.3.0 + domhandler: 4.3.1 + entities: 2.2.0 + dev: true + + /dom-walk/0.1.2: + resolution: {integrity: sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w==} + dev: true + + /domain-browser/1.2.0: + resolution: {integrity: sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==} + engines: {node: '>=0.4', npm: '>=1.2'} + dev: true + + /domelementtype/1.3.1: + resolution: {integrity: sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==} + dev: true + + /domelementtype/2.3.0: + resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==} + dev: true + + /domexception/2.0.1: + resolution: {integrity: sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==} + engines: {node: '>=8'} + dependencies: + webidl-conversions: 5.0.0 + dev: true + + /domhandler/3.3.0: + resolution: {integrity: sha512-J1C5rIANUbuYK+FuFL98650rihynUOEzRLxW+90bKZRWB6A1X1Tf82GxR1qAWLyfNPRvjqfip3Q5tdYlmAa9lA==} + engines: {node: '>= 4'} + dependencies: + domelementtype: 2.3.0 + dev: true + + /domhandler/4.3.1: + resolution: {integrity: sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==} + engines: {node: '>= 4'} + dependencies: + domelementtype: 2.3.0 + dev: true + + /domutils/1.7.0: + resolution: {integrity: sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==} + dependencies: + dom-serializer: 0.2.2 + domelementtype: 1.3.1 + dev: true + + /domutils/2.8.0: + resolution: {integrity: sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==} + dependencies: + dom-serializer: 1.4.1 + domelementtype: 2.3.0 + domhandler: 4.3.1 + dev: true + + /dot-case/3.0.4: + resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==} + dependencies: + no-case: 3.0.4 + tslib: 2.3.1 + dev: true + + /dot-prop/5.3.0: + resolution: {integrity: sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==} + engines: {node: '>=8'} + dependencies: + is-obj: 2.0.0 + dev: true + + /dotenv-expand/5.1.0: + resolution: {integrity: sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==} + dev: true + + /dotenv/8.6.0: + resolution: {integrity: sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g==} + engines: {node: '>=10'} + dev: true + + /dotgitignore/2.1.0: + resolution: {integrity: sha512-sCm11ak2oY6DglEPpCB8TixLjWAxd3kJTs6UIcSasNYxXdFPV+YKlye92c8H4kKFqV5qYMIh7d+cYecEg0dIkA==} + engines: {node: '>=6'} + dependencies: + find-up: 3.0.0 + minimatch: 3.1.2 + dev: true + + /downshift/6.1.7: + resolution: {integrity: sha512-cVprZg/9Lvj/uhYRxELzlu1aezRcgPWBjTvspiGTVEU64gF5pRdSRKFVLcxqsZC637cLAGMbL40JavEfWnqgNg==} + peerDependencies: + react: '>=16.12.0' + dependencies: + '@babel/runtime': 7.17.9 + compute-scroll-into-view: 1.0.17 + prop-types: 15.8.1 + react-is: 17.0.2 + tslib: 2.3.1 + dev: true + + /downshift/6.1.7_react@16.14.0: + resolution: {integrity: sha512-cVprZg/9Lvj/uhYRxELzlu1aezRcgPWBjTvspiGTVEU64gF5pRdSRKFVLcxqsZC637cLAGMbL40JavEfWnqgNg==} + peerDependencies: + react: '>=16.12.0' + dependencies: + '@babel/runtime': 7.17.9 + compute-scroll-into-view: 1.0.17 + prop-types: 15.8.1 + react: 16.14.0 + react-is: 17.0.2 + tslib: 2.3.1 + dev: true + + /duplexify/3.7.1: + resolution: {integrity: sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==} + dependencies: + end-of-stream: 1.4.4 + inherits: 2.0.4 + readable-stream: 2.3.7 + stream-shift: 1.0.1 + dev: true + + /ee-first/1.1.1: + resolution: {integrity: sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=} + dev: true + + /electron-to-chromium/1.4.107: + resolution: {integrity: sha512-Huen6taaVrUrSy8o7mGStByba8PfOWWluHNxSHGBrCgEdFVLtvdQDBr9LBCF9Uci8SYxh28QNNMO0oC17wbGAg==} + dev: true + + /element-resize-detector/1.2.4: + resolution: {integrity: sha512-Fl5Ftk6WwXE0wqCgNoseKWndjzZlDCwuPTcoVZfCP9R3EHQF8qUtr3YUPNETegRBOKqQKPW3n4kiIWngGi8tKg==} + dependencies: + batch-processor: 1.0.0 + dev: true + + /elliptic/6.5.4: + resolution: {integrity: sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==} + dependencies: + bn.js: 4.12.0 + brorand: 1.1.0 + hash.js: 1.1.7 + hmac-drbg: 1.0.1 + inherits: 2.0.4 + minimalistic-assert: 1.0.1 + minimalistic-crypto-utils: 1.0.1 + dev: true + + /emittery/0.8.1: + resolution: {integrity: sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==} + engines: {node: '>=10'} + dev: true + + /emoji-regex/8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + dev: true + + /emojis-list/3.0.0: + resolution: {integrity: sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==} + engines: {node: '>= 4'} + dev: true + + /emotion-theming/10.3.0_@emotion+core@10.3.1: + resolution: {integrity: sha512-mXiD2Oj7N9b6+h/dC6oLf9hwxbtKHQjoIqtodEyL8CpkN4F3V4IK/BT4D0C7zSs4BBFOu4UlPJbvvBLa88SGEA==} + peerDependencies: + '@emotion/core': ^10.0.27 + react: '>=16.3.0' + dependencies: + '@babel/runtime': 7.17.9 + '@emotion/core': 10.3.1 + '@emotion/weak-memoize': 0.2.5 + hoist-non-react-statics: 3.3.2 + dev: true + + /emotion-theming/10.3.0_qzeatvug73zaio2r3dlvejynye: + resolution: {integrity: sha512-mXiD2Oj7N9b6+h/dC6oLf9hwxbtKHQjoIqtodEyL8CpkN4F3V4IK/BT4D0C7zSs4BBFOu4UlPJbvvBLa88SGEA==} + peerDependencies: + '@emotion/core': ^10.0.27 + react: '>=16.3.0' + dependencies: + '@babel/runtime': 7.17.9 + '@emotion/core': 10.3.1_react@16.14.0 + '@emotion/weak-memoize': 0.2.5 + hoist-non-react-statics: 3.3.2 + react: 16.14.0 + dev: true + + /encodeurl/1.0.2: + resolution: {integrity: sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=} + engines: {node: '>= 0.8'} + dev: true + + /end-of-stream/1.4.4: + resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} + dependencies: + once: 1.4.0 + dev: true + + /enhanced-resolve/4.5.0: + resolution: {integrity: sha512-Nv9m36S/vxpsI+Hc4/ZGRs0n9mXqSWGGq49zxb/cJfPAQMbUtttJAlNPS4AQzaBdw/pKskw5bMbekT/Y7W/Wlg==} + engines: {node: '>=6.9.0'} + dependencies: + graceful-fs: 4.2.10 + memory-fs: 0.5.0 + tapable: 1.1.3 + dev: true + + /enhanced-resolve/5.10.0: + resolution: {integrity: sha512-T0yTFjdpldGY8PmuXXR0PyQ1ufZpEGiHVrp7zHKB7jdR4qlmZHhONVM5AQOAWXuF/w3dnHbEQVrNptJgt7F+cQ==} + engines: {node: '>=10.13.0'} + dependencies: + graceful-fs: 4.2.10 + tapable: 2.2.1 + dev: true + + /entities/2.2.0: + resolution: {integrity: sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==} + dev: true + + /errno/0.1.8: + resolution: {integrity: sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==} + hasBin: true + dependencies: + prr: 1.0.1 + dev: true + + /error-ex/1.3.2: + resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} + dependencies: + is-arrayish: 0.2.1 + dev: true + + /es-abstract/1.19.5: + resolution: {integrity: sha512-Aa2G2+Rd3b6kxEUKTF4TaW67czBLyAv3z7VOhYRU50YBx+bbsYZ9xQP4lMNazePuFlybXI0V4MruPos7qUo5fA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + es-to-primitive: 1.2.1 + function-bind: 1.1.1 + get-intrinsic: 1.1.1 + get-symbol-description: 1.0.0 + has: 1.0.3 + has-symbols: 1.0.3 + internal-slot: 1.0.3 + is-callable: 1.2.4 + is-negative-zero: 2.0.2 + is-regex: 1.1.4 + is-shared-array-buffer: 1.0.2 + is-string: 1.0.7 + is-weakref: 1.0.2 + object-inspect: 1.12.0 + object-keys: 1.1.1 + object.assign: 4.1.2 + string.prototype.trimend: 1.0.4 + string.prototype.trimstart: 1.0.4 + unbox-primitive: 1.0.1 + dev: true + + /es-array-method-boxes-properly/1.0.0: + resolution: {integrity: sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==} + dev: true + + /es-get-iterator/1.1.2: + resolution: {integrity: sha512-+DTO8GYwbMCwbywjimwZMHp8AuYXOS2JZFWoi2AlPOS3ebnII9w/NLpNZtA7A0YLaVDw+O7KFCeoIV7OPvM7hQ==} + dependencies: + call-bind: 1.0.2 + get-intrinsic: 1.1.1 + has-symbols: 1.0.3 + is-arguments: 1.1.1 + is-map: 2.0.2 + is-set: 2.0.2 + is-string: 1.0.7 + isarray: 2.0.5 + dev: true + + /es-module-lexer/0.9.3: + resolution: {integrity: sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==} + dev: true + + /es-shim-unscopables/1.0.0: + resolution: {integrity: sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==} + dependencies: + has: 1.0.3 + dev: true + + /es-to-primitive/1.2.1: + resolution: {integrity: sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==} + engines: {node: '>= 0.4'} + dependencies: + is-callable: 1.2.4 + is-date-object: 1.0.5 + is-symbol: 1.0.4 + dev: true + + /es5-shim/4.6.5: + resolution: {integrity: sha512-vfQ4UAai8szn0sAubCy97xnZ4sJVDD1gt/Grn736hg8D7540wemIb1YPrYZSTqlM2H69EQX1or4HU/tSwRTI3w==} + engines: {node: '>=0.4.0'} + dev: true + + /es6-shim/0.35.6: + resolution: {integrity: sha512-EmTr31wppcaIAgblChZiuN/l9Y7DPyw8Xtbg7fIVngn6zMW+IEBJDJngeKC3x6wr0V/vcA2wqeFnaw1bFJbDdA==} + dev: true + + /escalade/3.1.1: + resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} + engines: {node: '>=6'} + dev: true + + /escape-html/1.0.3: + resolution: {integrity: sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=} + dev: true + + /escape-string-regexp/1.0.5: + resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==} + engines: {node: '>=0.8.0'} + dev: true + + /escape-string-regexp/2.0.0: + resolution: {integrity: sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==} + engines: {node: '>=8'} + dev: true + + /escape-string-regexp/4.0.0: + resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} + engines: {node: '>=10'} + dev: true + + /escodegen/2.0.0: + resolution: {integrity: sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==} + engines: {node: '>=6.0'} + hasBin: true + dependencies: + esprima: 4.0.1 + estraverse: 5.3.0 + esutils: 2.0.3 + optionator: 0.8.3 + optionalDependencies: + source-map: 0.6.1 + dev: true + + /eslint-config-prettier/8.5.0_eslint@8.15.0: + resolution: {integrity: sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==} + hasBin: true + peerDependencies: + eslint: '>=7.0.0' + dependencies: + eslint: 8.15.0 + dev: true + + /eslint-plugin-jest-dom/4.0.1_eslint@8.15.0: + resolution: {integrity: sha512-9aUaX4AtlFBziLqKSjc7DKHQ/y1T32qNapG3uSeLDMJYKswASoQLJWOfLIE+zEHKvCNzNIz8T7282tQkuu0TKQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0, npm: '>=6', yarn: '>=1'} + peerDependencies: + eslint: '>=6.8' + dependencies: + '@babel/runtime': 7.17.9 + '@testing-library/dom': 8.13.0 + eslint: 8.15.0 + requireindex: 1.2.0 + dev: true + + /eslint-plugin-jest/26.2.2_soqyufh3dfswswdcr6xqvc2ymm: + resolution: {integrity: sha512-etSFZ8VIFX470aA6kTqDPhIq7YWe0tjBcboFNV3WeiC18PJ/AVonGhuTwlmuz2fBkH8FJHA7JQ4k7GsQIj1Gew==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + '@typescript-eslint/eslint-plugin': ^5.0.0 + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + jest: '*' + peerDependenciesMeta: + '@typescript-eslint/eslint-plugin': + optional: true + jest: + optional: true + dependencies: + '@typescript-eslint/eslint-plugin': 5.25.0_qo2hgs5jt7x2a3p77h2rutcdae + '@typescript-eslint/utils': 5.24.0_hcfsmds2fshutdssjqluwm76uu + eslint: 8.15.0 + jest: 27.5.1 + transitivePeerDependencies: + - supports-color + - typescript + dev: true + + /eslint-plugin-prettier/4.0.0_iqftbjqlxzn3ny5nablrkczhqi: + resolution: {integrity: sha512-98MqmCJ7vJodoQK359bqQWaxOE0CS8paAz/GgjaZLyex4TTk3g9HugoO89EqWCrFiOqn9EVvcoo7gZzONCWVwQ==} + engines: {node: '>=6.0.0'} + peerDependencies: + eslint: '>=7.28.0' + eslint-config-prettier: '*' + prettier: '>=2.0.0' + peerDependenciesMeta: + eslint-config-prettier: + optional: true + dependencies: + eslint: 8.15.0 + eslint-config-prettier: 8.5.0_eslint@8.15.0 + prettier: 2.6.2 + prettier-linter-helpers: 1.0.0 + dev: true + + /eslint-plugin-testing-library/5.5.0_hcfsmds2fshutdssjqluwm76uu: + resolution: {integrity: sha512-eWQ19l6uWL7LW8oeMyQVSGjVYFnBqk7DMHjadm0yOHBvX3Xi9OBrsNuxoAMdX4r7wlQ5WWpW46d+CB6FWFL/PQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0, npm: '>=6'} + peerDependencies: + eslint: ^7.5.0 || ^8.0.0 + dependencies: + '@typescript-eslint/utils': 5.24.0_hcfsmds2fshutdssjqluwm76uu + eslint: 8.15.0 + transitivePeerDependencies: + - supports-color + - typescript + dev: true + + /eslint-scope/4.0.3: + resolution: {integrity: sha512-p7VutNr1O/QrxysMo3E45FjYDTeXBy0iTltPFNSqKAIfjDSXC+4dj+qfyuD8bfAXrW/y6lW3O76VaYNPKfpKrg==} + engines: {node: '>=4.0.0'} + dependencies: + esrecurse: 4.3.0 + estraverse: 4.3.0 + dev: true + + /eslint-scope/5.1.1: + resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==} + engines: {node: '>=8.0.0'} + dependencies: + esrecurse: 4.3.0 + estraverse: 4.3.0 + dev: true + + /eslint-scope/7.1.1: + resolution: {integrity: sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + esrecurse: 4.3.0 + estraverse: 5.3.0 + dev: true + + /eslint-utils/3.0.0_eslint@8.15.0: + resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==} + engines: {node: ^10.0.0 || ^12.0.0 || >= 14.0.0} + peerDependencies: + eslint: '>=5' + dependencies: + eslint: 8.15.0 + eslint-visitor-keys: 2.1.0 + dev: true + + /eslint-visitor-keys/2.1.0: + resolution: {integrity: sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==} + engines: {node: '>=10'} + dev: true + + /eslint-visitor-keys/3.3.0: + resolution: {integrity: sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dev: true + + /eslint/8.15.0: + resolution: {integrity: sha512-GG5USZ1jhCu8HJkzGgeK8/+RGnHaNYZGrGDzUtigK3BsGESW/rs2az23XqE0WVwDxy1VRvvjSSGu5nB0Bu+6SA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + hasBin: true + dependencies: + '@eslint/eslintrc': 1.2.3 + '@humanwhocodes/config-array': 0.9.5 + ajv: 6.12.6 + chalk: 4.1.2 + cross-spawn: 7.0.3 + debug: 4.3.4 + doctrine: 3.0.0 + escape-string-regexp: 4.0.0 + eslint-scope: 7.1.1 + eslint-utils: 3.0.0_eslint@8.15.0 + eslint-visitor-keys: 3.3.0 + espree: 9.3.2 + esquery: 1.4.0 + esutils: 2.0.3 + fast-deep-equal: 3.1.3 + file-entry-cache: 6.0.1 + functional-red-black-tree: 1.0.1 + glob-parent: 6.0.2 + globals: 13.15.0 + ignore: 5.2.0 + import-fresh: 3.3.0 + imurmurhash: 0.1.4 + is-glob: 4.0.3 + js-yaml: 4.1.0 + json-stable-stringify-without-jsonify: 1.0.1 + levn: 0.4.1 + lodash.merge: 4.6.2 + minimatch: 3.1.2 + natural-compare: 1.4.0 + optionator: 0.9.1 + regexpp: 3.2.0 + strip-ansi: 6.0.1 + strip-json-comments: 3.1.1 + text-table: 0.2.0 + v8-compile-cache: 2.3.0 + transitivePeerDependencies: + - supports-color + dev: true + + /espree/9.3.2: + resolution: {integrity: sha512-D211tC7ZwouTIuY5x9XnS0E9sWNChB7IYKX/Xp5eQj3nFXhqmiUDB9q27y76oFl8jTg3pXcQx/bpxMfs3CIZbA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + acorn: 8.7.1 + acorn-jsx: 5.3.2_acorn@8.7.1 + eslint-visitor-keys: 3.3.0 + dev: true + + /esprima/4.0.1: + resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} + engines: {node: '>=4'} + hasBin: true + dev: true + + /esquery/1.4.0: + resolution: {integrity: sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==} + engines: {node: '>=0.10'} + dependencies: + estraverse: 5.3.0 + dev: true + + /esrecurse/4.3.0: + resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} + engines: {node: '>=4.0'} + dependencies: + estraverse: 5.3.0 + dev: true + + /estimo/2.3.6: + resolution: {integrity: sha512-aPd3VTQAL1TyDyhFfn6fqBTJ9WvbRZVN4Z29Buk6+P6xsI0DuF5Mh3dGv6kYCUxWnZkB4Jt3aYglUxOtuwtxoA==} + engines: {node: '>=12'} + hasBin: true + dependencies: + '@sitespeed.io/tracium': 0.3.3 + commander: 9.3.0 + find-chrome-bin: 0.1.0 + nanoid: 3.3.2 + puppeteer-core: 13.7.0 + transitivePeerDependencies: + - bufferutil + - encoding + - supports-color + - utf-8-validate + dev: true + + /estraverse/4.3.0: + resolution: {integrity: sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==} + engines: {node: '>=4.0'} + dev: true + + /estraverse/5.3.0: + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} + engines: {node: '>=4.0'} + dev: true + + /estree-walker/1.0.1: + resolution: {integrity: sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==} + dev: true + + /estree-walker/2.0.2: + resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} + dev: true + + /esutils/2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} + engines: {node: '>=0.10.0'} + dev: true + + /etag/1.8.1: + resolution: {integrity: sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=} + engines: {node: '>= 0.6'} + dev: true + + /eventemitter3/4.0.7: + resolution: {integrity: sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==} + dev: true + + /events/3.3.0: + resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} + engines: {node: '>=0.8.x'} + dev: true + + /evp_bytestokey/1.0.3: + resolution: {integrity: sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==} + dependencies: + md5.js: 1.3.5 + safe-buffer: 5.2.1 + dev: true + + /exec-sh/0.3.6: + resolution: {integrity: sha512-nQn+hI3yp+oD0huYhKwvYI32+JFeq+XkNcD1GAo3Y/MjxsfVGmrrzrnzjWiNY6f+pUCP440fThsFh5gZrRAU/w==} + dev: true + + /execa/1.0.0: + resolution: {integrity: sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==} + engines: {node: '>=6'} + dependencies: + cross-spawn: 6.0.5 + get-stream: 4.1.0 + is-stream: 1.1.0 + npm-run-path: 2.0.2 + p-finally: 1.0.0 + signal-exit: 3.0.7 + strip-eof: 1.0.0 + dev: true + + /execa/5.1.1: + resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} + engines: {node: '>=10'} + dependencies: + cross-spawn: 7.0.3 + get-stream: 6.0.1 + human-signals: 2.1.0 + is-stream: 2.0.1 + merge-stream: 2.0.0 + npm-run-path: 4.0.1 + onetime: 5.1.2 + signal-exit: 3.0.7 + strip-final-newline: 2.0.0 + dev: true + + /exit/0.1.2: + resolution: {integrity: sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=} + engines: {node: '>= 0.8.0'} + dev: true + + /expand-brackets/2.1.4: + resolution: {integrity: sha1-t3c14xXOMPa27/D4OwQVGiJEliI=} + engines: {node: '>=0.10.0'} + dependencies: + debug: 2.6.9 + define-property: 0.2.5 + extend-shallow: 2.0.1 + posix-character-classes: 0.1.1 + regex-not: 1.0.2 + snapdragon: 0.8.2 + to-regex: 3.0.2 + transitivePeerDependencies: + - supports-color + dev: true + + /expand-tilde/2.0.2: + resolution: {integrity: sha1-l+gBqgUt8CRU3kawK/YhZCzchQI=} + engines: {node: '>=0.10.0'} + dependencies: + homedir-polyfill: 1.0.3 + dev: true + + /expect/26.6.2: + resolution: {integrity: sha512-9/hlOBkQl2l/PLHJx6JjoDF6xPKcJEsUlWKb23rKE7KzeDqUZKXKNMW27KIue5JMdBV9HgmoJPcc8HtO85t9IA==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/types': 26.6.2 + ansi-styles: 4.3.0 + jest-get-type: 26.3.0 + jest-matcher-utils: 26.6.2 + jest-message-util: 26.6.2 + jest-regex-util: 26.0.0 + dev: true + + /expect/27.5.1: + resolution: {integrity: sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + jest-get-type: 27.5.1 + jest-matcher-utils: 27.5.1 + jest-message-util: 27.5.1 + dev: true + + /express/4.17.3: + resolution: {integrity: sha512-yuSQpz5I+Ch7gFrPCk4/c+dIBKlQUxtgwqzph132bsT6qhuzss6I8cLJQz7B3rFblzd6wtcI0ZbGltH/C4LjUg==} + engines: {node: '>= 0.10.0'} + dependencies: + accepts: 1.3.8 + array-flatten: 1.1.1 + body-parser: 1.19.2 + content-disposition: 0.5.4 + content-type: 1.0.4 + cookie: 0.4.2 + cookie-signature: 1.0.6 + debug: 2.6.9 + depd: 1.1.2 + encodeurl: 1.0.2 + escape-html: 1.0.3 + etag: 1.8.1 + finalhandler: 1.1.2 + fresh: 0.5.2 + merge-descriptors: 1.0.1 + methods: 1.1.2 + on-finished: 2.3.0 + parseurl: 1.3.3 + path-to-regexp: 0.1.7 + proxy-addr: 2.0.7 + qs: 6.9.7 + range-parser: 1.2.1 + safe-buffer: 5.2.1 + send: 0.17.2 + serve-static: 1.14.2 + setprototypeof: 1.2.0 + statuses: 1.5.0 + type-is: 1.6.18 + utils-merge: 1.0.1 + vary: 1.1.2 + transitivePeerDependencies: + - supports-color + dev: true + + /extend-shallow/2.0.1: + resolution: {integrity: sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=} + engines: {node: '>=0.10.0'} + dependencies: + is-extendable: 0.1.1 + dev: true + + /extend-shallow/3.0.2: + resolution: {integrity: sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=} + engines: {node: '>=0.10.0'} + dependencies: + assign-symbols: 1.0.0 + is-extendable: 1.0.1 + dev: true + + /extend/3.0.2: + resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==} + dev: true + + /external-editor/3.1.0: + resolution: {integrity: sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==} + engines: {node: '>=4'} + dependencies: + chardet: 0.7.0 + iconv-lite: 0.4.24 + tmp: 0.0.33 + dev: true + + /extglob/2.0.4: + resolution: {integrity: sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==} + engines: {node: '>=0.10.0'} + dependencies: + array-unique: 0.3.2 + define-property: 1.0.0 + expand-brackets: 2.1.4 + extend-shallow: 2.0.1 + fragment-cache: 0.2.1 + regex-not: 1.0.2 + snapdragon: 0.8.2 + to-regex: 3.0.2 + transitivePeerDependencies: + - supports-color + dev: true + + /extract-zip/2.0.1: + resolution: {integrity: sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==} + engines: {node: '>= 10.17.0'} + hasBin: true + dependencies: + debug: 4.3.4 + get-stream: 5.2.0 + yauzl: 2.10.0 + optionalDependencies: + '@types/yauzl': 2.10.0 + transitivePeerDependencies: + - supports-color + dev: true + + /faker/5.5.3: + resolution: {integrity: sha512-wLTv2a28wjUyWkbnX7u/ABZBkUkIF2fCd73V6P2oFqEGEktDfzWx4UxrSqtPRw0xPRAcjeAOIiJWqZm3pP4u3g==} + dev: true + + /fast-deep-equal/3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + dev: true + + /fast-diff/1.2.0: + resolution: {integrity: sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==} + dev: true + + /fast-glob/2.2.7: + resolution: {integrity: sha512-g1KuQwHOZAmOZMuBtHdxDtju+T2RT8jgCC9aANsbpdiDDTSnjgfuVsIBNKbUeJI3oKMRExcfNDtJl4OhbffMsw==} + engines: {node: '>=4.0.0'} + dependencies: + '@mrmlnc/readdir-enhanced': 2.2.1 + '@nodelib/fs.stat': 1.1.3 + glob-parent: 3.1.0 + is-glob: 4.0.3 + merge2: 1.4.1 + micromatch: 3.1.10 + transitivePeerDependencies: + - supports-color + dev: true + + /fast-glob/3.2.11: + resolution: {integrity: sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==} + engines: {node: '>=8.6.0'} + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.5 + dev: true + + /fast-json-stable-stringify/2.1.0: + resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} + dev: true + + /fast-levenshtein/2.0.6: + resolution: {integrity: sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=} + dev: true + + /fastq/1.13.0: + resolution: {integrity: sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==} + dependencies: + reusify: 1.0.4 + dev: true + + /fault/1.0.4: + resolution: {integrity: sha512-CJ0HCB5tL5fYTEA7ToAq5+kTwd++Borf1/bifxd9iT70QcXr4MRrO3Llf8Ifs70q+SJcGHFtnIE/Nw6giCtECA==} + dependencies: + format: 0.2.2 + dev: true + + /fb-watchman/2.0.1: + resolution: {integrity: sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg==} + dependencies: + bser: 2.1.1 + dev: true + + /fd-slicer/1.1.0: + resolution: {integrity: sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=} + dependencies: + pend: 1.2.0 + dev: true + + /figgy-pudding/3.5.2: + resolution: {integrity: sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw==} + dev: true + + /figures/2.0.0: + resolution: {integrity: sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=} + engines: {node: '>=4'} + dependencies: + escape-string-regexp: 1.0.5 + dev: true + + /figures/3.2.0: + resolution: {integrity: sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==} + engines: {node: '>=8'} + dependencies: + escape-string-regexp: 1.0.5 + dev: true + + /file-entry-cache/6.0.1: + resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} + engines: {node: ^10.12.0 || >=12.0.0} + dependencies: + flat-cache: 3.0.4 + dev: true + + /file-loader/6.2.0_webpack@4.46.0: + resolution: {integrity: sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==} + engines: {node: '>= 10.13.0'} + peerDependencies: + webpack: ^4.0.0 || ^5.0.0 + dependencies: + loader-utils: 2.0.2 + schema-utils: 3.1.1 + webpack: 4.46.0 + dev: true + + /file-system-cache/1.0.5: + resolution: {integrity: sha1-hCWbNqK7uNPW6xAh0xMv/mTP/08=} + dependencies: + bluebird: 3.7.2 + fs-extra: 0.30.0 + ramda: 0.21.0 + dev: true + + /file-uri-to-path/1.0.0: + resolution: {integrity: sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==} + requiresBuild: true + dev: true + optional: true + + /fill-range/4.0.0: + resolution: {integrity: sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==} + engines: {node: '>=0.10.0'} + dependencies: + extend-shallow: 2.0.1 + is-number: 3.0.0 + repeat-string: 1.6.1 + to-regex-range: 2.1.1 + dev: true + + /fill-range/7.0.1: + resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} + engines: {node: '>=8'} + dependencies: + to-regex-range: 5.0.1 + dev: true + + /filter-obj/1.1.0: + resolution: {integrity: sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ==} + engines: {node: '>=0.10.0'} + dev: true + + /finalhandler/1.1.2: + resolution: {integrity: sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==} + engines: {node: '>= 0.8'} + dependencies: + debug: 2.6.9 + encodeurl: 1.0.2 + escape-html: 1.0.3 + on-finished: 2.3.0 + parseurl: 1.3.3 + statuses: 1.5.0 + unpipe: 1.0.0 + transitivePeerDependencies: + - supports-color + dev: true + + /find-cache-dir/2.1.0: + resolution: {integrity: sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==} + engines: {node: '>=6'} + dependencies: + commondir: 1.0.1 + make-dir: 2.1.0 + pkg-dir: 3.0.0 + dev: true + + /find-cache-dir/3.3.2: + resolution: {integrity: sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==} + engines: {node: '>=8'} + dependencies: + commondir: 1.0.1 + make-dir: 3.1.0 + pkg-dir: 4.2.0 + dev: true + + /find-chrome-bin/0.1.0: + resolution: {integrity: sha512-XoFZwaEn1R3pE6zNG8kH64l2e093hgB9+78eEKPmJK0o1EXEou+25cEWdtu2qq4DBQPDSe90VJAWVI2Sz9pX6Q==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + dev: true + + /find-node-modules/2.1.3: + resolution: {integrity: sha512-UC2I2+nx1ZuOBclWVNdcnbDR5dlrOdVb7xNjmT/lHE+LsgztWks3dG7boJ37yTS/venXw84B/mAW9uHVoC5QRg==} + dependencies: + findup-sync: 4.0.0 + merge: 2.1.1 + dev: true + + /find-root/1.1.0: + resolution: {integrity: sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==} + dev: true + + /find-up/2.1.0: + resolution: {integrity: sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==} + engines: {node: '>=4'} + dependencies: + locate-path: 2.0.0 + dev: true + + /find-up/3.0.0: + resolution: {integrity: sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==} + engines: {node: '>=6'} + dependencies: + locate-path: 3.0.0 + dev: true + + /find-up/4.1.0: + resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} + engines: {node: '>=8'} + dependencies: + locate-path: 5.0.0 + path-exists: 4.0.0 + dev: true + + /find-up/5.0.0: + resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} + engines: {node: '>=10'} + dependencies: + locate-path: 6.0.0 + path-exists: 4.0.0 + dev: true + + /findup-sync/4.0.0: + resolution: {integrity: sha512-6jvvn/12IC4quLBL1KNokxC7wWTvYncaVUYSoxWw7YykPLuRrnv4qdHcSOywOI5RpkOVGeQRtWM8/q+G6W6qfQ==} + engines: {node: '>= 8'} + dependencies: + detect-file: 1.0.0 + is-glob: 4.0.3 + micromatch: 4.0.5 + resolve-dir: 1.0.1 + dev: true + + /flat-cache/3.0.4: + resolution: {integrity: sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==} + engines: {node: ^10.12.0 || >=12.0.0} + dependencies: + flatted: 3.2.5 + rimraf: 3.0.2 + dev: true + + /flatted/3.2.5: + resolution: {integrity: sha512-WIWGi2L3DyTUvUrwRKgGi9TwxQMUEqPOPQBVi71R96jZXJdFskXEmf54BoZaS1kknGODoIGASGEzBUYdyMCBJg==} + dev: true + + /flatten/1.0.3: + resolution: {integrity: sha512-dVsPA/UwQ8+2uoFe5GHtiBMu48dWLTdsuEd7CKGlZlD78r1TTWBvDuFaFGKCo/ZfEr95Uk56vZoX86OsHkUeIg==} + deprecated: flatten is deprecated in favor of utility frameworks such as lodash. + dev: true + + /flush-write-stream/1.1.1: + resolution: {integrity: sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w==} + dependencies: + inherits: 2.0.4 + readable-stream: 2.3.7 + dev: true + + /follow-redirects/1.15.0: + resolution: {integrity: sha512-aExlJShTV4qOUOL7yF1U5tvLCB0xQuudbf6toyYA0E/acBNw71mvjFTnLaRp50aQaYocMR0a/RMMBIHeZnGyjQ==} + engines: {node: '>=4.0'} + peerDependencies: + debug: '*' + peerDependenciesMeta: + debug: + optional: true + dev: true + + /for-in/1.0.2: + resolution: {integrity: sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=} + engines: {node: '>=0.10.0'} + dev: true + + /fork-ts-checker-webpack-plugin/4.1.6_7wnmsrtcnse6htziqnucw6w67m: + resolution: {integrity: sha512-DUxuQaKoqfNne8iikd14SAkh5uw4+8vNifp6gmA73yYNS6ywLIWSLD/n/mBzHQRpW3J7rbATEakmiA8JvkTyZw==} + engines: {node: '>=6.11.5', yarn: '>=1.0.0'} + peerDependencies: + eslint: '>= 6' + typescript: '>= 2.7' + vue-template-compiler: '*' + webpack: '>= 4' + peerDependenciesMeta: + eslint: + optional: true + vue-template-compiler: + optional: true + dependencies: + '@babel/code-frame': 7.16.7 + chalk: 2.4.2 + eslint: 8.15.0 + micromatch: 3.1.10 + minimatch: 3.1.2 + semver: 5.7.1 + tapable: 1.1.3 + typescript: 4.6.4 + webpack: 4.46.0 + worker-rpc: 0.1.1 + transitivePeerDependencies: + - supports-color + dev: true + + /fork-ts-checker-webpack-plugin/6.5.1_7wnmsrtcnse6htziqnucw6w67m: + resolution: {integrity: sha512-x1wumpHOEf4gDROmKTaB6i4/Q6H3LwmjVO7fIX47vBwlZbtPjU33hgoMuD/Q/y6SU8bnuYSoN6ZQOLshGp0T/g==} + engines: {node: '>=10', yarn: '>=1.0.0'} + peerDependencies: + eslint: '>= 6' + typescript: '>= 2.7' + vue-template-compiler: '*' + webpack: '>= 4' + peerDependenciesMeta: + eslint: + optional: true + vue-template-compiler: + optional: true + dependencies: + '@babel/code-frame': 7.16.7 + '@types/json-schema': 7.0.11 + chalk: 4.1.2 + chokidar: 3.5.3 + cosmiconfig: 6.0.0 + deepmerge: 4.2.2 + eslint: 8.15.0 + fs-extra: 9.1.0 + glob: 7.2.0 + memfs: 3.4.1 + minimatch: 3.1.2 + schema-utils: 2.7.0 + semver: 7.3.7 + tapable: 1.1.3 + typescript: 4.6.4 + webpack: 4.46.0 + dev: true + + /form-data/3.0.1: + resolution: {integrity: sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==} + engines: {node: '>= 6'} + dependencies: + asynckit: 0.4.0 + combined-stream: 1.0.8 + mime-types: 2.1.35 + dev: true + + /format/0.2.2: + resolution: {integrity: sha1-1hcBB+nv3E7TDJ3DkBbflCtctYs=} + engines: {node: '>=0.4.x'} + dev: true + + /forwarded/0.2.0: + resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==} + engines: {node: '>= 0.6'} + dev: true + + /fragment-cache/0.2.1: + resolution: {integrity: sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=} + engines: {node: '>=0.10.0'} + dependencies: + map-cache: 0.2.2 + dev: true + + /fresh/0.5.2: + resolution: {integrity: sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=} + engines: {node: '>= 0.6'} + dev: true + + /from2/2.3.0: + resolution: {integrity: sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=} + dependencies: + inherits: 2.0.4 + readable-stream: 2.3.7 + dev: true + + /fs-constants/1.0.0: + resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} + dev: true + + /fs-extra/0.30.0: + resolution: {integrity: sha1-8jP/zAjU2n1DLapEl3aYnbHfk/A=} + dependencies: + graceful-fs: 4.2.10 + jsonfile: 2.4.0 + klaw: 1.3.1 + path-is-absolute: 1.0.1 + rimraf: 2.7.1 + dev: true + + /fs-extra/10.0.1: + resolution: {integrity: sha512-NbdoVMZso2Lsrn/QwLXOy6rm0ufY2zEOKCDzJR/0kBsb0E6qed0P3iYK+Ath3BfvXEeu4JhEtXLgILx5psUfag==} + engines: {node: '>=12'} + dependencies: + graceful-fs: 4.2.10 + jsonfile: 6.1.0 + universalify: 2.0.0 + dev: true + + /fs-extra/8.1.0: + resolution: {integrity: sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==} + engines: {node: '>=6 <7 || >=8'} + dependencies: + graceful-fs: 4.2.10 + jsonfile: 4.0.0 + universalify: 0.1.2 + dev: true + + /fs-extra/9.1.0: + resolution: {integrity: sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==} + engines: {node: '>=10'} + dependencies: + at-least-node: 1.0.0 + graceful-fs: 4.2.10 + jsonfile: 6.1.0 + universalify: 2.0.0 + dev: true + + /fs-minipass/2.1.0: + resolution: {integrity: sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==} + engines: {node: '>= 8'} + dependencies: + minipass: 3.1.6 + dev: true + + /fs-monkey/1.0.3: + resolution: {integrity: sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==} + dev: true + + /fs-write-stream-atomic/1.0.10: + resolution: {integrity: sha1-tH31NJPvkR33VzHnCp3tAYnbQMk=} + dependencies: + graceful-fs: 4.2.10 + iferr: 0.1.5 + imurmurhash: 0.1.4 + readable-stream: 2.3.7 + dev: true + + /fs.realpath/1.0.0: + resolution: {integrity: sha1-FQStJSMVjKpA20onh8sBQRmU6k8=} + dev: true + + /fsevents/1.2.13: + resolution: {integrity: sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==} + engines: {node: '>= 4.0'} + os: [darwin] + deprecated: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. + requiresBuild: true + dependencies: + bindings: 1.5.0 + nan: 2.15.0 + dev: true + optional: true + + /fsevents/2.3.2: + resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /function-bind/1.1.1: + resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} + dev: true + + /function.prototype.name/1.1.5: + resolution: {integrity: sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.3 + es-abstract: 1.19.5 + functions-have-names: 1.2.2 + dev: true + + /functional-red-black-tree/1.0.1: + resolution: {integrity: sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=} + dev: true + + /functions-have-names/1.2.2: + resolution: {integrity: sha512-bLgc3asbWdwPbx2mNk2S49kmJCuQeu0nfmaOgbs8WIyzzkw3r4htszdIi9Q9EMezDPTYuJx2wvjZ/EwgAthpnA==} + dev: true + + /fuse.js/3.6.1: + resolution: {integrity: sha512-hT9yh/tiinkmirKrlv4KWOjztdoZo1mx9Qh4KvWqC7isoXwdUY3PNWUxceF4/qO9R6riA2C29jdTOeQOIROjgw==} + engines: {node: '>=6'} + dev: true + + /gauge/3.0.2: + resolution: {integrity: sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==} + engines: {node: '>=10'} + dependencies: + aproba: 2.0.0 + color-support: 1.1.3 + console-control-strings: 1.1.0 + has-unicode: 2.0.1 + object-assign: 4.1.1 + signal-exit: 3.0.7 + string-width: 4.2.3 + strip-ansi: 6.0.1 + wide-align: 1.1.5 + dev: true + + /gensync/1.0.0-beta.2: + resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} + engines: {node: '>=6.9.0'} + dev: true + + /get-caller-file/2.0.5: + resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} + engines: {node: 6.* || 8.* || >= 10.*} + dev: true + + /get-intrinsic/1.1.1: + resolution: {integrity: sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==} + dependencies: + function-bind: 1.1.1 + has: 1.0.3 + has-symbols: 1.0.3 + dev: true + + /get-package-type/0.1.0: + resolution: {integrity: sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==} + engines: {node: '>=8.0.0'} + dev: true + + /get-pkg-repo/4.2.1: + resolution: {integrity: sha512-2+QbHjFRfGB74v/pYWjd5OhU3TDIC2Gv/YKUTk/tCvAz0pkn/Mz6P3uByuBimLOcPvN2jYdScl3xGFSrx0jEcA==} + engines: {node: '>=6.9.0'} + hasBin: true + dependencies: + '@hutson/parse-repository-url': 3.0.2 + hosted-git-info: 4.1.0 + through2: 2.0.5 + yargs: 16.2.0 + dev: true + + /get-stdin/5.0.1: + resolution: {integrity: sha1-Ei4WFZHiH/TFJTAwVpPyDmOTo5g=} + engines: {node: '>=0.12.0'} + dev: true + + /get-stream/4.1.0: + resolution: {integrity: sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==} + engines: {node: '>=6'} + dependencies: + pump: 3.0.0 + dev: true + + /get-stream/5.2.0: + resolution: {integrity: sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==} + engines: {node: '>=8'} + dependencies: + pump: 3.0.0 + dev: true + + /get-stream/6.0.1: + resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==} + engines: {node: '>=10'} + dev: true + + /get-symbol-description/1.0.0: + resolution: {integrity: sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + get-intrinsic: 1.1.1 + dev: true + + /get-value/2.0.6: + resolution: {integrity: sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=} + engines: {node: '>=0.10.0'} + dev: true + + /git-raw-commits/2.0.11: + resolution: {integrity: sha512-VnctFhw+xfj8Va1xtfEqCUD2XDrbAPSJx+hSrE5K7fGdjZruW7XV+QOrN7LF/RJyvspRiD2I0asWsxFp0ya26A==} + engines: {node: '>=10'} + hasBin: true + dependencies: + dargs: 7.0.0 + lodash: 4.17.21 + meow: 8.1.2 + split2: 3.2.2 + through2: 4.0.2 + dev: true + + /git-remote-origin-url/2.0.0: + resolution: {integrity: sha512-eU+GGrZgccNJcsDH5LkXR3PB9M958hxc7sbA8DFJjrv9j4L2P/eZfKhM+QD6wyzpiv+b1BpK0XrYCxkovtjSLw==} + engines: {node: '>=4'} + dependencies: + gitconfiglocal: 1.0.0 + pify: 2.3.0 + dev: true + + /git-semver-tags/4.1.1: + resolution: {integrity: sha512-OWyMt5zBe7xFs8vglMmhM9lRQzCWL3WjHtxNNfJTMngGym7pC1kh8sP6jevfydJ6LP3ZvGxfb6ABYgPUM0mtsA==} + engines: {node: '>=10'} + hasBin: true + dependencies: + meow: 8.1.2 + semver: 6.3.0 + dev: true + + /git-up/4.0.5: + resolution: {integrity: sha512-YUvVDg/vX3d0syBsk/CKUTib0srcQME0JyHkL5BaYdwLsiCslPWmDSi8PUMo9pXYjrryMcmsCoCgsTpSCJEQaA==} + dependencies: + is-ssh: 1.4.0 + parse-url: 6.0.2 + dev: true + + /git-url-parse/11.6.0: + resolution: {integrity: sha512-WWUxvJs5HsyHL6L08wOusa/IXYtMuCAhrMmnTjQPpBU0TTHyDhnOATNH3xNQz7YOQUsqIIPTGr4xiVti1Hsk5g==} + dependencies: + git-up: 4.0.5 + dev: true + + /gitconfiglocal/1.0.0: + resolution: {integrity: sha512-spLUXeTAVHxDtKsJc8FkFVgFtMdEN9qPGpL23VfSHx4fP4+Ds097IXLvymbnDH8FnmxX5Nr9bPw3A+AQ6mWEaQ==} + dependencies: + ini: 1.3.8 + dev: true + + /github-slugger/1.4.0: + resolution: {integrity: sha512-w0dzqw/nt51xMVmlaV1+JRzN+oCa1KfcgGEWhxUG16wbdA+Xnt/yoFO8Z8x/V82ZcZ0wy6ln9QDup5avbhiDhQ==} + dev: true + + /glob-parent/3.1.0: + resolution: {integrity: sha512-E8Ak/2+dZY6fnzlR7+ueWvhsH1SjHr4jjss4YS/h4py44jY9MhK/VFdaZJAWDz6BbL21KeteKxFSFpq8OS5gVA==} + dependencies: + is-glob: 3.1.0 + path-dirname: 1.0.2 + dev: true + + /glob-parent/5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} + dependencies: + is-glob: 4.0.3 + dev: true + + /glob-parent/6.0.2: + resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} + engines: {node: '>=10.13.0'} + dependencies: + is-glob: 4.0.3 + dev: true + + /glob-promise/3.4.0_glob@7.2.0: + resolution: {integrity: sha512-q08RJ6O+eJn+dVanerAndJwIcumgbDdYiUT7zFQl3Wm1xD6fBKtah7H8ZJChj4wP+8C+QfeVy8xautR7rdmKEw==} + engines: {node: '>=4'} + peerDependencies: + glob: '*' + dependencies: + '@types/glob': 7.2.0 + glob: 7.2.0 + dev: true + + /glob-to-regexp/0.3.0: + resolution: {integrity: sha1-jFoUlNIGbFcMw7/kSWF1rMTVAqs=} + dev: true + + /glob-to-regexp/0.4.1: + resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==} + dev: true + + /glob/7.1.4: + resolution: {integrity: sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==} + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.1.2 + once: 1.4.0 + path-is-absolute: 1.0.1 + dev: true + + /glob/7.2.0: + resolution: {integrity: sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==} + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.1.2 + once: 1.4.0 + path-is-absolute: 1.0.1 + dev: true + + /global-dirs/0.1.1: + resolution: {integrity: sha1-sxnA3UYH81PzvpzKTHL8FIxJ9EU=} + engines: {node: '>=4'} + dependencies: + ini: 1.3.8 + dev: true + + /global-modules/1.0.0: + resolution: {integrity: sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==} + engines: {node: '>=0.10.0'} + dependencies: + global-prefix: 1.0.2 + is-windows: 1.0.2 + resolve-dir: 1.0.1 + dev: true + + /global-prefix/1.0.2: + resolution: {integrity: sha1-2/dDxsFJklk8ZVVoy2btMsASLr4=} + engines: {node: '>=0.10.0'} + dependencies: + expand-tilde: 2.0.2 + homedir-polyfill: 1.0.3 + ini: 1.3.8 + is-windows: 1.0.2 + which: 1.3.1 + dev: true + + /global/4.4.0: + resolution: {integrity: sha512-wv/LAoHdRE3BeTGz53FAamhGlPLhlssK45usmGFThIi4XqnBmjKQ16u+RNbP7WvigRZDxUsM0J3gcQ5yicaL0w==} + dependencies: + min-document: 2.19.0 + process: 0.11.10 + dev: true + + /globals/11.12.0: + resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==} + engines: {node: '>=4'} + dev: true + + /globals/13.15.0: + resolution: {integrity: sha512-bpzcOlgDhMG070Av0Vy5Owklpv1I6+j96GhUI7Rh7IzDCKLzboflLrrfqMu8NquDbiR4EOQk7XzJwqVJxicxog==} + engines: {node: '>=8'} + dependencies: + type-fest: 0.20.2 + dev: true + + /globalthis/1.0.2: + resolution: {integrity: sha512-ZQnSFO1la8P7auIOQECnm0sSuoMeaSq0EEdXMBFF2QJO4uNcwbyhSgG3MruWNbFTqCLmxVwGOl7LZ9kASvHdeQ==} + engines: {node: '>= 0.4'} + dependencies: + define-properties: 1.1.3 + dev: true + + /globby/11.1.0: + resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} + engines: {node: '>=10'} + dependencies: + array-union: 2.1.0 + dir-glob: 3.0.1 + fast-glob: 3.2.11 + ignore: 5.2.0 + merge2: 1.4.1 + slash: 3.0.0 + dev: true + + /globby/9.2.0: + resolution: {integrity: sha512-ollPHROa5mcxDEkwg6bPt3QbEf4pDQSNtd6JPL1YvOvAo/7/0VAm9TccUeoTmarjPw4pfUthSCqcyfNB1I3ZSg==} + engines: {node: '>=6'} + dependencies: + '@types/glob': 7.2.0 + array-union: 1.0.2 + dir-glob: 2.2.2 + fast-glob: 2.2.7 + glob: 7.2.0 + ignore: 4.0.6 + pify: 4.0.1 + slash: 2.0.0 + transitivePeerDependencies: + - supports-color + dev: true + + /glur/1.1.2: + resolution: {integrity: sha1-8g6jbbEDv8KSNDkh8fkeg8NGdok=} + dev: true + + /graceful-fs/4.2.10: + resolution: {integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==} + dev: true + + /handlebars/4.7.7: + resolution: {integrity: sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==} + engines: {node: '>=0.4.7'} + hasBin: true + dependencies: + minimist: 1.2.6 + neo-async: 2.6.2 + source-map: 0.6.1 + wordwrap: 1.0.0 + optionalDependencies: + uglify-js: 3.15.5 + dev: true + + /hard-rejection/2.1.0: + resolution: {integrity: sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==} + engines: {node: '>=6'} + dev: true + + /has-ansi/2.0.0: + resolution: {integrity: sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=} + engines: {node: '>=0.10.0'} + dependencies: + ansi-regex: 2.1.1 + dev: true + + /has-bigints/1.0.1: + resolution: {integrity: sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA==} + dev: true + + /has-flag/3.0.0: + resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==} + engines: {node: '>=4'} + dev: true + + /has-flag/4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + dev: true + + /has-glob/1.0.0: + resolution: {integrity: sha1-mqqe7b/7G6OZCnsAEPtnjuAIEgc=} + engines: {node: '>=0.10.0'} + dependencies: + is-glob: 3.1.0 + dev: true + + /has-symbols/1.0.3: + resolution: {integrity: sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==} + engines: {node: '>= 0.4'} + dev: true + + /has-tostringtag/1.0.0: + resolution: {integrity: sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==} + engines: {node: '>= 0.4'} + dependencies: + has-symbols: 1.0.3 + dev: true + + /has-unicode/2.0.1: + resolution: {integrity: sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=} + dev: true + + /has-value/0.3.1: + resolution: {integrity: sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=} + engines: {node: '>=0.10.0'} + dependencies: + get-value: 2.0.6 + has-values: 0.1.4 + isobject: 2.1.0 + dev: true + + /has-value/1.0.0: + resolution: {integrity: sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=} + engines: {node: '>=0.10.0'} + dependencies: + get-value: 2.0.6 + has-values: 1.0.0 + isobject: 3.0.1 + dev: true + + /has-values/0.1.4: + resolution: {integrity: sha1-bWHeldkd/Km5oCCJrThL/49it3E=} + engines: {node: '>=0.10.0'} + dev: true + + /has-values/1.0.0: + resolution: {integrity: sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=} + engines: {node: '>=0.10.0'} + dependencies: + is-number: 3.0.0 + kind-of: 4.0.0 + dev: true + + /has/1.0.3: + resolution: {integrity: sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==} + engines: {node: '>= 0.4.0'} + dependencies: + function-bind: 1.1.1 + dev: true + + /hash-base/3.1.0: + resolution: {integrity: sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==} + engines: {node: '>=4'} + dependencies: + inherits: 2.0.4 + readable-stream: 3.6.0 + safe-buffer: 5.2.1 + dev: true + + /hash.js/1.1.7: + resolution: {integrity: sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==} + dependencies: + inherits: 2.0.4 + minimalistic-assert: 1.0.1 + dev: true + + /hast-to-hyperscript/9.0.1: + resolution: {integrity: sha512-zQgLKqF+O2F72S1aa4y2ivxzSlko3MAvxkwG8ehGmNiqd98BIN3JM1rAJPmplEyLmGLO2QZYJtIneOSZ2YbJuA==} + dependencies: + '@types/unist': 2.0.6 + comma-separated-tokens: 1.0.8 + property-information: 5.6.0 + space-separated-tokens: 1.1.5 + style-to-object: 0.3.0 + unist-util-is: 4.1.0 + web-namespaces: 1.1.4 + dev: true + + /hast-util-from-parse5/6.0.1: + resolution: {integrity: sha512-jeJUWiN5pSxW12Rh01smtVkZgZr33wBokLzKLwinYOUfSzm1Nl/c3GUGebDyOKjdsRgMvoVbV0VpAcpjF4NrJA==} + dependencies: + '@types/parse5': 5.0.3 + hastscript: 6.0.0 + property-information: 5.6.0 + vfile: 4.2.1 + vfile-location: 3.2.0 + web-namespaces: 1.1.4 + dev: true + + /hast-util-parse-selector/2.2.5: + resolution: {integrity: sha512-7j6mrk/qqkSehsM92wQjdIgWM2/BW61u/53G6xmC8i1OmEdKLHbk419QKQUjz6LglWsfqoiHmyMRkP1BGjecNQ==} + dev: true + + /hast-util-raw/6.0.1: + resolution: {integrity: sha512-ZMuiYA+UF7BXBtsTBNcLBF5HzXzkyE6MLzJnL605LKE8GJylNjGc4jjxazAHUtcwT5/CEt6afRKViYB4X66dig==} + dependencies: + '@types/hast': 2.3.4 + hast-util-from-parse5: 6.0.1 + hast-util-to-parse5: 6.0.0 + html-void-elements: 1.0.5 + parse5: 6.0.1 + unist-util-position: 3.1.0 + vfile: 4.2.1 + web-namespaces: 1.1.4 + xtend: 4.0.2 + zwitch: 1.0.5 + dev: true + + /hast-util-to-parse5/6.0.0: + resolution: {integrity: sha512-Lu5m6Lgm/fWuz8eWnrKezHtVY83JeRGaNQ2kn9aJgqaxvVkFCZQBEhgodZUDUvoodgyROHDb3r5IxAEdl6suJQ==} + dependencies: + hast-to-hyperscript: 9.0.1 + property-information: 5.6.0 + web-namespaces: 1.1.4 + xtend: 4.0.2 + zwitch: 1.0.5 + dev: true + + /hastscript/6.0.0: + resolution: {integrity: sha512-nDM6bvd7lIqDUiYEiu5Sl/+6ReP0BMk/2f4U/Rooccxkj0P5nm+acM5PrGJ/t5I8qPGiqZSE6hVAwZEdZIvP4w==} + dependencies: + '@types/hast': 2.3.4 + comma-separated-tokens: 1.0.8 + hast-util-parse-selector: 2.2.5 + property-information: 5.6.0 + space-separated-tokens: 1.1.5 + dev: true + + /he/1.2.0: + resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==} + hasBin: true + dev: true + + /hex-color-regex/1.1.0: + resolution: {integrity: sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ==} + dev: true + + /highlight.js/10.7.3: + resolution: {integrity: sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==} + dev: true + + /history/5.0.0: + resolution: {integrity: sha512-3NyRMKIiFSJmIPdq7FxkNMJkQ7ZEtVblOQ38VtKaA0zZMW1Eo6Q6W8oDKEflr1kNNTItSnk4JMCO1deeSgbLLg==} + dependencies: + '@babel/runtime': 7.17.9 + dev: true + + /history/5.3.0: + resolution: {integrity: sha512-ZqaKwjjrAYUYfLG+htGaIIZ4nioX2L70ZUMIFysS3xvBsSG4x/n1V6TXV3N8ZYNuFGlDirFg32T7B6WOUPDYcQ==} + dependencies: + '@babel/runtime': 7.17.9 + dev: true + + /hmac-drbg/1.0.1: + resolution: {integrity: sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=} + dependencies: + hash.js: 1.1.7 + minimalistic-assert: 1.0.1 + minimalistic-crypto-utils: 1.0.1 + dev: true + + /hoist-non-react-statics/3.3.2: + resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==} + dependencies: + react-is: 16.13.1 + dev: true + + /homedir-polyfill/1.0.3: + resolution: {integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==} + engines: {node: '>=0.10.0'} + dependencies: + parse-passwd: 1.0.0 + dev: true + + /hosted-git-info/2.8.9: + resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==} + dev: true + + /hosted-git-info/4.1.0: + resolution: {integrity: sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==} + engines: {node: '>=10'} + dependencies: + lru-cache: 6.0.0 + dev: true + + /hsl-regex/1.0.0: + resolution: {integrity: sha1-1JMwx4ntgZ4nakwNJy3/owsY/m4=} + dev: true + + /hsla-regex/1.0.0: + resolution: {integrity: sha1-wc56MWjIxmFAM6S194d/OyJfnDg=} + dev: true + + /html-encoding-sniffer/2.0.1: + resolution: {integrity: sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==} + engines: {node: '>=10'} + dependencies: + whatwg-encoding: 1.0.5 + dev: true + + /html-encoding-sniffer/3.0.0: + resolution: {integrity: sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==} + engines: {node: '>=12'} + dependencies: + whatwg-encoding: 2.0.0 + dev: true + + /html-entities/2.3.3: + resolution: {integrity: sha512-DV5Ln36z34NNTDgnz0EWGBLZENelNAtkiFA4kyNOG2tDI6Mz1uSWiq1wAKdyjnJwyDiDO7Fa2SO1CTxPXL8VxA==} + dev: true + + /html-escaper/2.0.2: + resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} + dev: true + + /html-loader/1.3.2: + resolution: {integrity: sha512-DEkUwSd0sijK5PF3kRWspYi56XP7bTNkyg5YWSzBdjaSDmvCufep5c4Vpb3PBf6lUL0YPtLwBfy9fL0t5hBAGA==} + engines: {node: '>= 10.13.0'} + peerDependencies: + webpack: ^4.0.0 || ^5.0.0 + dependencies: + html-minifier-terser: 5.1.1 + htmlparser2: 4.1.0 + loader-utils: 2.0.2 + schema-utils: 3.1.1 + dev: true + + /html-minifier-terser/5.1.1: + resolution: {integrity: sha512-ZPr5MNObqnV/T9akshPKbVgyOqLmy+Bxo7juKCfTfnjNniTAMdy4hz21YQqoofMBJD2kdREaqPPdThoR78Tgxg==} + engines: {node: '>=6'} + hasBin: true + dependencies: + camel-case: 4.1.2 + clean-css: 4.2.4 + commander: 4.1.1 + he: 1.2.0 + param-case: 3.0.4 + relateurl: 0.2.7 + terser: 4.8.0 + dev: true + + /html-tags/3.2.0: + resolution: {integrity: sha512-vy7ClnArOZwCnqZgvv+ddgHgJiAFXe3Ge9ML5/mBctVJoUoYPCdxVucOywjDARn6CVoh3dRSFdPHy2sX80L0Wg==} + engines: {node: '>=8'} + dev: true + + /html-void-elements/1.0.5: + resolution: {integrity: sha512-uE/TxKuyNIcx44cIWnjr/rfIATDH7ZaOMmstu0CwhFG1Dunhlp4OC6/NMbhiwoq5BpW0ubi303qnEk/PZj614w==} + dev: true + + /html-webpack-plugin/4.5.2_webpack@4.46.0: + resolution: {integrity: sha512-q5oYdzjKUIPQVjOosjgvCHQOv9Ett9CYYHlgvJeXG0qQvdSojnBq4vAdQBwn1+yGveAwHCoe/rMR86ozX3+c2A==} + engines: {node: '>=6.9'} + peerDependencies: + webpack: ^4.0.0 || ^5.0.0 + dependencies: + '@types/html-minifier-terser': 5.1.2 + '@types/tapable': 1.0.8 + '@types/webpack': 4.41.32 + html-minifier-terser: 5.1.1 + loader-utils: 1.4.0 + lodash: 4.17.21 + pretty-error: 2.1.2 + tapable: 1.1.3 + util.promisify: 1.0.0 + webpack: 4.46.0 + dev: true + + /htmlparser2/4.1.0: + resolution: {integrity: sha512-4zDq1a1zhE4gQso/c5LP1OtrhYTncXNSpvJYtWJBtXAETPlMfi3IFNjGuQbYLuVY4ZR0QMqRVvo4Pdy9KLyP8Q==} + dependencies: + domelementtype: 2.3.0 + domhandler: 3.3.0 + domutils: 2.8.0 + entities: 2.2.0 + dev: true + + /htmlparser2/6.1.0: + resolution: {integrity: sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==} + dependencies: + domelementtype: 2.3.0 + domhandler: 4.3.1 + domutils: 2.8.0 + entities: 2.2.0 + dev: true + + /http-errors/1.8.1: + resolution: {integrity: sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==} + engines: {node: '>= 0.6'} + dependencies: + depd: 1.1.2 + inherits: 2.0.4 + setprototypeof: 1.2.0 + statuses: 1.5.0 + toidentifier: 1.0.1 + dev: true + + /http-proxy-agent/4.0.1: + resolution: {integrity: sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==} + engines: {node: '>= 6'} + dependencies: + '@tootallnate/once': 1.1.2 + agent-base: 6.0.2 + debug: 4.3.4 + transitivePeerDependencies: + - supports-color + dev: true + + /http-proxy/1.18.1: + resolution: {integrity: sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==} + engines: {node: '>=8.0.0'} + dependencies: + eventemitter3: 4.0.7 + follow-redirects: 1.15.0 + requires-port: 1.0.0 + transitivePeerDependencies: + - debug + dev: true + + /http-server/14.1.0: + resolution: {integrity: sha512-5lYsIcZtf6pdR8tCtzAHTWrAveo4liUlJdWc7YafwK/maPgYHs+VNP6KpCClmUnSorJrARVMXqtT055zBv11Yg==} + engines: {node: '>=12'} + hasBin: true + dependencies: + basic-auth: 2.0.1 + chalk: 4.1.2 + corser: 2.0.1 + he: 1.2.0 + html-encoding-sniffer: 3.0.0 + http-proxy: 1.18.1 + mime: 1.6.0 + minimist: 1.2.6 + opener: 1.5.2 + portfinder: 1.0.28 + secure-compare: 3.0.1 + union: 0.5.0 + url-join: 4.0.1 + transitivePeerDependencies: + - debug + - supports-color + dev: true + + /https-browserify/1.0.0: + resolution: {integrity: sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=} + dev: true + + /https-proxy-agent/5.0.1: + resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==} + engines: {node: '>= 6'} + dependencies: + agent-base: 6.0.2 + debug: 4.3.4 + transitivePeerDependencies: + - supports-color + dev: true + + /human-signals/2.1.0: + resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==} + engines: {node: '>=10.17.0'} + dev: true + + /iconv-lite/0.4.24: + resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} + engines: {node: '>=0.10.0'} + dependencies: + safer-buffer: 2.1.2 + dev: true + + /iconv-lite/0.6.3: + resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} + engines: {node: '>=0.10.0'} + dependencies: + safer-buffer: 2.1.2 + dev: true + + /icss-utils/4.1.1: + resolution: {integrity: sha512-4aFq7wvWyMHKgxsH8QQtGpvbASCf+eM3wPRLI6R+MgAnTCZ6STYsRvttLvRWK0Nfif5piF394St3HeJDaljGPA==} + engines: {node: '>= 6'} + dependencies: + postcss: 7.0.39 + dev: true + + /ieee754/1.2.1: + resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} + dev: true + + /iferr/0.1.5: + resolution: {integrity: sha1-xg7taebY/bazEEofy8ocGS3FtQE=} + dev: true + + /ignore/4.0.6: + resolution: {integrity: sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==} + engines: {node: '>= 4'} + dev: true + + /ignore/5.2.0: + resolution: {integrity: sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==} + engines: {node: '>= 4'} + dev: true + + /immutable/4.0.0: + resolution: {integrity: sha512-zIE9hX70qew5qTUjSS7wi1iwj/l7+m54KWU247nhM3v806UdGj1yDndXj+IOYxxtW9zyLI+xqFNZjTuDaLUqFw==} + dev: true + + /import-fresh/2.0.0: + resolution: {integrity: sha1-2BNVwVYS04bGH53dOSLUMEgipUY=} + engines: {node: '>=4'} + dependencies: + caller-path: 2.0.0 + resolve-from: 3.0.0 + dev: true + + /import-fresh/3.3.0: + resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} + engines: {node: '>=6'} + dependencies: + parent-module: 1.0.1 + resolve-from: 4.0.0 + dev: true + + /import-local/3.1.0: + resolution: {integrity: sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==} + engines: {node: '>=8'} + hasBin: true + dependencies: + pkg-dir: 4.2.0 + resolve-cwd: 3.0.0 + dev: true + + /imurmurhash/0.1.4: + resolution: {integrity: sha1-khi5srkoojixPcT7a21XbyMUU+o=} + engines: {node: '>=0.8.19'} + dev: true + + /indent-string/4.0.0: + resolution: {integrity: sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==} + engines: {node: '>=8'} + dev: true + + /indent-string/5.0.0: + resolution: {integrity: sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==} + engines: {node: '>=12'} + dev: true + + /indexes-of/1.0.1: + resolution: {integrity: sha1-8w9xbI4r00bHtn0985FVZqfAVgc=} + dev: true + + /infer-owner/1.0.4: + resolution: {integrity: sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==} + dev: true + + /inflight/1.0.6: + resolution: {integrity: sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=} + dependencies: + once: 1.4.0 + wrappy: 1.0.2 + dev: true + + /inherits/2.0.1: + resolution: {integrity: sha512-8nWq2nLTAwd02jTqJExUYFSD/fKq6VH9Y/oG2accc/kdI0V98Bag8d5a4gi3XHz73rDWa2PvTtvcWYquKqSENA==} + dev: true + + /inherits/2.0.3: + resolution: {integrity: sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=} + dev: true + + /inherits/2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + dev: true + + /ini/1.3.8: + resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==} + dev: true + + /inline-style-parser/0.1.1: + resolution: {integrity: sha512-7NXolsK4CAS5+xvdj5OMMbI962hU/wvwoxk+LWR9Ek9bVtyuuYScDN6eS0rUm6TxApFpw7CX1o4uJzcd4AyD3Q==} + dev: true + + /inquirer/6.5.2: + resolution: {integrity: sha512-cntlB5ghuB0iuO65Ovoi8ogLHiWGs/5yNrtUcKjFhSSiVeAIVpD7koaSU9RM8mpXw5YDi9RdYXGQMaOURB7ycQ==} + engines: {node: '>=6.0.0'} + dependencies: + ansi-escapes: 3.2.0 + chalk: 2.4.2 + cli-cursor: 2.1.0 + cli-width: 2.2.1 + external-editor: 3.1.0 + figures: 2.0.0 + lodash: 4.17.21 + mute-stream: 0.0.7 + run-async: 2.4.1 + rxjs: 6.6.7 + string-width: 2.1.1 + strip-ansi: 5.2.0 + through: 2.3.8 + dev: true + + /inquirer/8.2.2: + resolution: {integrity: sha512-pG7I/si6K/0X7p1qU+rfWnpTE1UIkTONN1wxtzh0d+dHXtT/JG6qBgLxoyHVsQa8cFABxAPh0pD6uUUHiAoaow==} + engines: {node: '>=12.0.0'} + dependencies: + ansi-escapes: 4.3.2 + chalk: 4.1.2 + cli-cursor: 3.1.0 + cli-width: 3.0.0 + external-editor: 3.1.0 + figures: 3.2.0 + lodash: 4.17.21 + mute-stream: 0.0.8 + ora: 5.4.1 + run-async: 2.4.1 + rxjs: 7.5.5 + string-width: 4.2.3 + strip-ansi: 6.0.1 + through: 2.3.8 + dev: true + + /internal-slot/1.0.3: + resolution: {integrity: sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==} + engines: {node: '>= 0.4'} + dependencies: + get-intrinsic: 1.1.1 + has: 1.0.3 + side-channel: 1.0.4 + dev: true + + /interpret/2.2.0: + resolution: {integrity: sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==} + engines: {node: '>= 0.10'} + dev: true + + /invariant/2.2.4: + resolution: {integrity: sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==} + dependencies: + loose-envify: 1.4.0 + dev: true + + /ip/1.1.5: + resolution: {integrity: sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=} + dev: true + + /ipaddr.js/1.9.1: + resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} + engines: {node: '>= 0.10'} + dev: true + + /is-absolute-url/2.1.0: + resolution: {integrity: sha1-UFMN+4T8yap9vnhS6Do3uTufKqY=} + engines: {node: '>=0.10.0'} + dev: true + + /is-absolute-url/3.0.3: + resolution: {integrity: sha512-opmNIX7uFnS96NtPmhWQgQx6/NYFgsUXYMllcfzwWKUMwfo8kku1TvE6hkNcH+Q1ts5cMVrsY7j0bxXQDciu9Q==} + engines: {node: '>=8'} + dev: true + + /is-accessor-descriptor/0.1.6: + resolution: {integrity: sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=} + engines: {node: '>=0.10.0'} + dependencies: + kind-of: 3.2.2 + dev: true + + /is-accessor-descriptor/1.0.0: + resolution: {integrity: sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==} + engines: {node: '>=0.10.0'} + dependencies: + kind-of: 6.0.3 + dev: true + + /is-alphabetical/1.0.4: + resolution: {integrity: sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg==} + dev: true + + /is-alphanumerical/1.0.4: + resolution: {integrity: sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A==} + dependencies: + is-alphabetical: 1.0.4 + is-decimal: 1.0.4 + dev: true + + /is-arguments/1.1.1: + resolution: {integrity: sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + has-tostringtag: 1.0.0 + dev: true + + /is-arrayish/0.2.1: + resolution: {integrity: sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=} + dev: true + + /is-arrayish/0.3.2: + resolution: {integrity: sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==} + dev: true + + /is-bigint/1.0.4: + resolution: {integrity: sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==} + dependencies: + has-bigints: 1.0.1 + dev: true + + /is-binary-path/1.0.1: + resolution: {integrity: sha512-9fRVlXc0uCxEDj1nQzaWONSpbTfx0FmJfzHF7pwlI8DkWGoHBBea4Pg5Ky0ojwwxQmnSifgbKkI06Qv0Ljgj+Q==} + engines: {node: '>=0.10.0'} + dependencies: + binary-extensions: 1.13.1 + dev: true + optional: true + + /is-binary-path/2.1.0: + resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} + engines: {node: '>=8'} + dependencies: + binary-extensions: 2.2.0 + dev: true + + /is-boolean-object/1.1.2: + resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + has-tostringtag: 1.0.0 + dev: true + + /is-buffer/1.1.6: + resolution: {integrity: sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==} + dev: true + + /is-buffer/2.0.5: + resolution: {integrity: sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==} + engines: {node: '>=4'} + dev: true + + /is-callable/1.2.4: + resolution: {integrity: sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==} + engines: {node: '>= 0.4'} + dev: true + + /is-ci/2.0.0: + resolution: {integrity: sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==} + hasBin: true + dependencies: + ci-info: 2.0.0 + dev: true + + /is-color-stop/1.1.0: + resolution: {integrity: sha1-z/9HGu5N1cnhWFmPvhKWe1za00U=} + dependencies: + css-color-names: 0.0.4 + hex-color-regex: 1.1.0 + hsl-regex: 1.0.0 + hsla-regex: 1.0.0 + rgb-regex: 1.0.1 + rgba-regex: 1.0.0 + dev: true + + /is-core-module/2.8.1: + resolution: {integrity: sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==} + dependencies: + has: 1.0.3 + dev: true + + /is-data-descriptor/0.1.4: + resolution: {integrity: sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=} + engines: {node: '>=0.10.0'} + dependencies: + kind-of: 3.2.2 + dev: true + + /is-data-descriptor/1.0.0: + resolution: {integrity: sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==} + engines: {node: '>=0.10.0'} + dependencies: + kind-of: 6.0.3 + dev: true + + /is-date-object/1.0.5: + resolution: {integrity: sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==} + engines: {node: '>= 0.4'} + dependencies: + has-tostringtag: 1.0.0 + dev: true + + /is-decimal/1.0.4: + resolution: {integrity: sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw==} + dev: true + + /is-descriptor/0.1.6: + resolution: {integrity: sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==} + engines: {node: '>=0.10.0'} + dependencies: + is-accessor-descriptor: 0.1.6 + is-data-descriptor: 0.1.4 + kind-of: 5.1.0 + dev: true + + /is-descriptor/1.0.2: + resolution: {integrity: sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==} + engines: {node: '>=0.10.0'} + dependencies: + is-accessor-descriptor: 1.0.0 + is-data-descriptor: 1.0.0 + kind-of: 6.0.3 + dev: true + + /is-directory/0.3.1: + resolution: {integrity: sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=} + engines: {node: '>=0.10.0'} + dev: true + + /is-docker/2.2.1: + resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==} + engines: {node: '>=8'} + hasBin: true + dev: true + + /is-dom/1.1.0: + resolution: {integrity: sha512-u82f6mvhYxRPKpw8V1N0W8ce1xXwOrQtgGcxl6UCL5zBmZu3is/18K0rR7uFCnMDuAsS/3W54mGL4vsaFUQlEQ==} + dependencies: + is-object: 1.0.2 + is-window: 1.0.2 + dev: true + + /is-extendable/0.1.1: + resolution: {integrity: sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=} + engines: {node: '>=0.10.0'} + dev: true + + /is-extendable/1.0.1: + resolution: {integrity: sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==} + engines: {node: '>=0.10.0'} + dependencies: + is-plain-object: 2.0.4 + dev: true + + /is-extglob/2.1.1: + resolution: {integrity: sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=} + engines: {node: '>=0.10.0'} + dev: true + + /is-fullwidth-code-point/2.0.0: + resolution: {integrity: sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=} + engines: {node: '>=4'} + dev: true + + /is-fullwidth-code-point/3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + dev: true + + /is-function/1.0.2: + resolution: {integrity: sha512-lw7DUp0aWXYg+CBCN+JKkcE0Q2RayZnSvnZBlwgxHBQhqt5pZNVy4Ri7H9GmmXkdu7LUthszM+Tor1u/2iBcpQ==} + dev: true + + /is-generator-fn/2.1.0: + resolution: {integrity: sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==} + engines: {node: '>=6'} + dev: true + + /is-glob/3.1.0: + resolution: {integrity: sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw==} + engines: {node: '>=0.10.0'} + dependencies: + is-extglob: 2.1.1 + dev: true + + /is-glob/4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + dependencies: + is-extglob: 2.1.1 + dev: true + + /is-hexadecimal/1.0.4: + resolution: {integrity: sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==} + dev: true + + /is-interactive/1.0.0: + resolution: {integrity: sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==} + engines: {node: '>=8'} + dev: true + + /is-map/2.0.2: + resolution: {integrity: sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==} + dev: true + + /is-module/1.0.0: + resolution: {integrity: sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE=} + dev: true + + /is-negative-zero/2.0.2: + resolution: {integrity: sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==} + engines: {node: '>= 0.4'} + dev: true + + /is-number-object/1.0.7: + resolution: {integrity: sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==} + engines: {node: '>= 0.4'} + dependencies: + has-tostringtag: 1.0.0 + dev: true + + /is-number/3.0.0: + resolution: {integrity: sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==} + engines: {node: '>=0.10.0'} + dependencies: + kind-of: 3.2.2 + dev: true + + /is-number/7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + dev: true + + /is-obj/2.0.0: + resolution: {integrity: sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==} + engines: {node: '>=8'} + dev: true + + /is-object/1.0.2: + resolution: {integrity: sha512-2rRIahhZr2UWb45fIOuvZGpFtz0TyOZLf32KxBbSoUCeZR495zCKlWUKKUByk3geS2eAs7ZAABt0Y/Rx0GiQGA==} + dev: true + + /is-path-cwd/2.2.0: + resolution: {integrity: sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==} + engines: {node: '>=6'} + dev: true + + /is-path-inside/3.0.3: + resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} + engines: {node: '>=8'} + dev: true + + /is-plain-obj/1.1.0: + resolution: {integrity: sha1-caUMhCnfync8kqOQpKA7OfzVHT4=} + engines: {node: '>=0.10.0'} + dev: true + + /is-plain-obj/2.1.0: + resolution: {integrity: sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==} + engines: {node: '>=8'} + dev: true + + /is-plain-object/2.0.4: + resolution: {integrity: sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==} + engines: {node: '>=0.10.0'} + dependencies: + isobject: 3.0.1 + dev: true + + /is-plain-object/5.0.0: + resolution: {integrity: sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==} + engines: {node: '>=0.10.0'} + dev: true + + /is-potential-custom-element-name/1.0.1: + resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==} + dev: true + + /is-regex/1.1.4: + resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + has-tostringtag: 1.0.0 + dev: true + + /is-resolvable/1.1.0: + resolution: {integrity: sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==} + dev: true + + /is-set/2.0.2: + resolution: {integrity: sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==} + dev: true + + /is-shared-array-buffer/1.0.2: + resolution: {integrity: sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==} + dependencies: + call-bind: 1.0.2 + dev: true + + /is-ssh/1.4.0: + resolution: {integrity: sha512-x7+VxdxOdlV3CYpjvRLBv5Lo9OJerlYanjwFrPR9fuGPjCiNiCzFgAWpiLAohSbsnH4ZAys3SBh+hq5rJosxUQ==} + dependencies: + protocols: 2.0.1 + dev: true + + /is-stream/1.1.0: + resolution: {integrity: sha1-EtSj3U5o4Lec6428hBc66A2RykQ=} + engines: {node: '>=0.10.0'} + dev: true + + /is-stream/2.0.1: + resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} + engines: {node: '>=8'} + dev: true + + /is-string/1.0.7: + resolution: {integrity: sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==} + engines: {node: '>= 0.4'} + dependencies: + has-tostringtag: 1.0.0 + dev: true + + /is-symbol/1.0.4: + resolution: {integrity: sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==} + engines: {node: '>= 0.4'} + dependencies: + has-symbols: 1.0.3 + dev: true + + /is-text-path/1.0.1: + resolution: {integrity: sha1-Thqg+1G/vLPpJogAE5cgLBd1tm4=} + engines: {node: '>=0.10.0'} + dependencies: + text-extensions: 1.9.0 + dev: true + + /is-typedarray/1.0.0: + resolution: {integrity: sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=} + dev: true + + /is-unicode-supported/0.1.0: + resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==} + engines: {node: '>=10'} + dev: true + + /is-utf8/0.2.1: + resolution: {integrity: sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=} + dev: true + + /is-weakref/1.0.2: + resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==} + dependencies: + call-bind: 1.0.2 + dev: true + + /is-whitespace-character/1.0.4: + resolution: {integrity: sha512-SDweEzfIZM0SJV0EUga669UTKlmL0Pq8Lno0QDQsPnvECB3IM2aP0gdx5TrU0A01MAPfViaZiI2V1QMZLaKK5w==} + dev: true + + /is-window/1.0.2: + resolution: {integrity: sha1-LIlspT25feRdPDMTOmXYyfVjSA0=} + dev: true + + /is-windows/1.0.2: + resolution: {integrity: sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==} + engines: {node: '>=0.10.0'} + dev: true + + /is-word-character/1.0.4: + resolution: {integrity: sha512-5SMO8RVennx3nZrqtKwCGyyetPE9VDba5ugvKLaD4KopPG5kR4mQ7tNt/r7feL5yt5h3lpuBbIUmCOG2eSzXHA==} + dev: true + + /is-wsl/1.1.0: + resolution: {integrity: sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=} + engines: {node: '>=4'} + dev: true + + /is-wsl/2.2.0: + resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==} + engines: {node: '>=8'} + dependencies: + is-docker: 2.2.1 + dev: true + + /isarray/1.0.0: + resolution: {integrity: sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=} + dev: true + + /isarray/2.0.5: + resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==} + dev: true + + /isexe/2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + dev: true + + /isobject/2.1.0: + resolution: {integrity: sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=} + engines: {node: '>=0.10.0'} + dependencies: + isarray: 1.0.0 + dev: true + + /isobject/3.0.1: + resolution: {integrity: sha1-TkMekrEalzFjaqH5yNHMvP2reN8=} + engines: {node: '>=0.10.0'} + dev: true + + /isobject/4.0.0: + resolution: {integrity: sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA==} + engines: {node: '>=0.10.0'} + dev: true + + /istanbul-lib-coverage/3.2.0: + resolution: {integrity: sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==} + engines: {node: '>=8'} + dev: true + + /istanbul-lib-instrument/5.1.0: + resolution: {integrity: sha512-czwUz525rkOFDJxfKK6mYfIs9zBKILyrZQxjz3ABhjQXhbhFsSbo1HW/BFcsDnfJYJWA6thRR5/TUY2qs5W99Q==} + engines: {node: '>=8'} + dependencies: + '@babel/core': 7.17.9 + '@babel/parser': 7.17.9 + '@istanbuljs/schema': 0.1.3 + istanbul-lib-coverage: 3.2.0 + semver: 6.3.0 + transitivePeerDependencies: + - supports-color + dev: true + + /istanbul-lib-report/3.0.0: + resolution: {integrity: sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==} + engines: {node: '>=8'} + dependencies: + istanbul-lib-coverage: 3.2.0 + make-dir: 3.1.0 + supports-color: 7.2.0 + dev: true + + /istanbul-lib-source-maps/4.0.1: + resolution: {integrity: sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==} + engines: {node: '>=10'} + dependencies: + debug: 4.3.4 + istanbul-lib-coverage: 3.2.0 + source-map: 0.6.1 + transitivePeerDependencies: + - supports-color + dev: true + + /istanbul-reports/3.1.4: + resolution: {integrity: sha512-r1/DshN4KSE7xWEknZLLLLDn5CJybV3nw01VTkp6D5jzLuELlcbudfj/eSQFvrKsJuTVCGnePO7ho82Nw9zzfw==} + engines: {node: '>=8'} + dependencies: + html-escaper: 2.0.2 + istanbul-lib-report: 3.0.0 + dev: true + + /iterate-iterator/1.0.2: + resolution: {integrity: sha512-t91HubM4ZDQ70M9wqp+pcNpu8OyJ9UAtXntT/Bcsvp5tZMnz9vRa+IunKXeI8AnfZMTv0jNuVEmGeLSMjVvfPw==} + dev: true + + /iterate-value/1.0.2: + resolution: {integrity: sha512-A6fMAio4D2ot2r/TYzr4yUWrmwNdsN5xL7+HUiyACE4DXm+q8HtPcnFTp+NnW3k4N05tZ7FVYFFb2CR13NxyHQ==} + dependencies: + es-get-iterator: 1.1.2 + iterate-iterator: 1.0.2 + dev: true + + /jest-changed-files/27.5.1: + resolution: {integrity: sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + execa: 5.1.1 + throat: 6.0.1 + dev: true + + /jest-circus/27.5.1: + resolution: {integrity: sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/environment': 27.5.1 + '@jest/test-result': 27.5.1 + '@jest/types': 27.5.1 + '@types/node': 17.0.34 + chalk: 4.1.2 + co: 4.6.0 + dedent: 0.7.0 + expect: 27.5.1 + is-generator-fn: 2.1.0 + jest-each: 27.5.1 + jest-matcher-utils: 27.5.1 + jest-message-util: 27.5.1 + jest-runtime: 27.5.1 + jest-snapshot: 27.5.1 + jest-util: 27.5.1 + pretty-format: 27.5.1 + slash: 3.0.0 + stack-utils: 2.0.5 + throat: 6.0.1 + transitivePeerDependencies: + - supports-color + dev: true + + /jest-cli/27.5.1: + resolution: {integrity: sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + hasBin: true + peerDependencies: + node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 + peerDependenciesMeta: + node-notifier: + optional: true + dependencies: + '@jest/core': 27.5.1 + '@jest/test-result': 27.5.1 + '@jest/types': 27.5.1 + chalk: 4.1.2 + exit: 0.1.2 + graceful-fs: 4.2.10 + import-local: 3.1.0 + jest-config: 27.5.1 + jest-util: 27.5.1 + jest-validate: 27.5.1 + prompts: 2.4.2 + yargs: 16.2.0 + transitivePeerDependencies: + - bufferutil + - canvas + - supports-color + - ts-node + - utf-8-validate + dev: true + + /jest-config/27.5.1: + resolution: {integrity: sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + peerDependencies: + ts-node: '>=9.0.0' + peerDependenciesMeta: + ts-node: + optional: true + dependencies: + '@babel/core': 7.17.9 + '@jest/test-sequencer': 27.5.1 + '@jest/types': 27.5.1 + babel-jest: 27.5.1_@babel+core@7.17.9 + chalk: 4.1.2 + ci-info: 3.3.0 + deepmerge: 4.2.2 + glob: 7.2.0 + graceful-fs: 4.2.10 + jest-circus: 27.5.1 + jest-environment-jsdom: 27.5.1 + jest-environment-node: 27.5.1 + jest-get-type: 27.5.1 + jest-jasmine2: 27.5.1 + jest-regex-util: 27.5.1 + jest-resolve: 27.5.1 + jest-runner: 27.5.1 + jest-util: 27.5.1 + jest-validate: 27.5.1 + micromatch: 4.0.5 + parse-json: 5.2.0 + pretty-format: 27.5.1 + slash: 3.0.0 + strip-json-comments: 3.1.1 + transitivePeerDependencies: + - bufferutil + - canvas + - supports-color + - utf-8-validate + dev: true + + /jest-diff/26.6.2: + resolution: {integrity: sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA==} + engines: {node: '>= 10.14.2'} + dependencies: + chalk: 4.1.2 + diff-sequences: 26.6.2 + jest-get-type: 26.3.0 + pretty-format: 26.6.2 + dev: true + + /jest-diff/27.5.1: + resolution: {integrity: sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + chalk: 4.1.2 + diff-sequences: 27.5.1 + jest-get-type: 27.5.1 + pretty-format: 27.5.1 + dev: true + + /jest-docblock/27.5.1: + resolution: {integrity: sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + detect-newline: 3.1.0 + dev: true + + /jest-each/27.5.1: + resolution: {integrity: sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + chalk: 4.1.2 + jest-get-type: 27.5.1 + jest-util: 27.5.1 + pretty-format: 27.5.1 + dev: true + + /jest-environment-jsdom/27.5.1: + resolution: {integrity: sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/environment': 27.5.1 + '@jest/fake-timers': 27.5.1 + '@jest/types': 27.5.1 + '@types/node': 17.0.34 + jest-mock: 27.5.1 + jest-util: 27.5.1 + jsdom: 16.7.0 + transitivePeerDependencies: + - bufferutil + - canvas + - supports-color + - utf-8-validate + dev: true + + /jest-environment-node/27.5.1: + resolution: {integrity: sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/environment': 27.5.1 + '@jest/fake-timers': 27.5.1 + '@jest/types': 27.5.1 + '@types/node': 17.0.34 + jest-mock: 27.5.1 + jest-util: 27.5.1 + dev: true + + /jest-get-type/26.3.0: + resolution: {integrity: sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==} + engines: {node: '>= 10.14.2'} + dev: true + + /jest-get-type/27.5.1: + resolution: {integrity: sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dev: true + + /jest-haste-map/26.6.2: + resolution: {integrity: sha512-easWIJXIw71B2RdR8kgqpjQrbMRWQBgiBwXYEhtGUTaX+doCjBheluShdDMeR8IMfJiTqH4+zfhtg29apJf/8w==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/types': 26.6.2 + '@types/graceful-fs': 4.1.5 + '@types/node': 17.0.34 + anymatch: 3.1.2 + fb-watchman: 2.0.1 + graceful-fs: 4.2.10 + jest-regex-util: 26.0.0 + jest-serializer: 26.6.2 + jest-util: 26.6.2 + jest-worker: 26.6.2 + micromatch: 4.0.5 + sane: 4.1.0 + walker: 1.0.8 + optionalDependencies: + fsevents: 2.3.2 + transitivePeerDependencies: + - supports-color + dev: true + + /jest-haste-map/27.5.1: + resolution: {integrity: sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + '@types/graceful-fs': 4.1.5 + '@types/node': 17.0.34 + anymatch: 3.1.2 + fb-watchman: 2.0.1 + graceful-fs: 4.2.10 + jest-regex-util: 27.5.1 + jest-serializer: 27.5.1 + jest-util: 27.5.1 + jest-worker: 27.5.1 + micromatch: 4.0.5 + walker: 1.0.8 + optionalDependencies: + fsevents: 2.3.2 + dev: true + + /jest-image-snapshot/4.5.1_jest@27.5.1: + resolution: {integrity: sha512-0YkgupgkkCx0wIZkxvqs/oNiUT0X0d2WTpUhaAp+Dy6CpqBUZMRTIZo4KR1f+dqmx6WXrLCvecjnHLIsLkI+gQ==} + engines: {node: '>= 10.14.2'} + peerDependencies: + jest: '>=20 <=27' + dependencies: + chalk: 1.1.3 + get-stdin: 5.0.1 + glur: 1.1.2 + jest: 27.5.1 + lodash: 4.17.21 + mkdirp: 0.5.6 + pixelmatch: 5.3.0 + pngjs: 3.4.0 + rimraf: 2.7.1 + ssim.js: 3.5.0 + dev: true + + /jest-jasmine2/27.5.1: + resolution: {integrity: sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/environment': 27.5.1 + '@jest/source-map': 27.5.1 + '@jest/test-result': 27.5.1 + '@jest/types': 27.5.1 + '@types/node': 17.0.34 + chalk: 4.1.2 + co: 4.6.0 + expect: 27.5.1 + is-generator-fn: 2.1.0 + jest-each: 27.5.1 + jest-matcher-utils: 27.5.1 + jest-message-util: 27.5.1 + jest-runtime: 27.5.1 + jest-snapshot: 27.5.1 + jest-util: 27.5.1 + pretty-format: 27.5.1 + throat: 6.0.1 + transitivePeerDependencies: + - supports-color + dev: true + + /jest-leak-detector/27.5.1: + resolution: {integrity: sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + jest-get-type: 27.5.1 + pretty-format: 27.5.1 + dev: true + + /jest-matcher-utils/26.6.2: + resolution: {integrity: sha512-llnc8vQgYcNqDrqRDXWwMr9i7rS5XFiCwvh6DTP7Jqa2mqpcCBBlpCbn+trkG0KNhPu/h8rzyBkriOtBstvWhw==} + engines: {node: '>= 10.14.2'} + dependencies: + chalk: 4.1.2 + jest-diff: 26.6.2 + jest-get-type: 26.3.0 + pretty-format: 26.6.2 + dev: true + + /jest-matcher-utils/27.5.1: + resolution: {integrity: sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + chalk: 4.1.2 + jest-diff: 27.5.1 + jest-get-type: 27.5.1 + pretty-format: 27.5.1 + dev: true + + /jest-message-util/26.6.2: + resolution: {integrity: sha512-rGiLePzQ3AzwUshu2+Rn+UMFk0pHN58sOG+IaJbk5Jxuqo3NYO1U2/MIR4S1sKgsoYSXSzdtSa0TgrmtUwEbmA==} + engines: {node: '>= 10.14.2'} + dependencies: + '@babel/code-frame': 7.16.7 + '@jest/types': 26.6.2 + '@types/stack-utils': 2.0.1 + chalk: 4.1.2 + graceful-fs: 4.2.10 + micromatch: 4.0.5 + pretty-format: 26.6.2 + slash: 3.0.0 + stack-utils: 2.0.5 + dev: true + + /jest-message-util/27.5.1: + resolution: {integrity: sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@babel/code-frame': 7.16.7 + '@jest/types': 27.5.1 + '@types/stack-utils': 2.0.1 + chalk: 4.1.2 + graceful-fs: 4.2.10 + micromatch: 4.0.5 + pretty-format: 27.5.1 + slash: 3.0.0 + stack-utils: 2.0.5 + dev: true + + /jest-mock/27.5.1: + resolution: {integrity: sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + '@types/node': 17.0.34 + dev: true + + /jest-pnp-resolver/1.2.2_jest-resolve@26.6.2: + resolution: {integrity: sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==} + engines: {node: '>=6'} + peerDependencies: + jest-resolve: '*' + peerDependenciesMeta: + jest-resolve: + optional: true + dependencies: + jest-resolve: 26.6.2 + dev: true + + /jest-pnp-resolver/1.2.2_jest-resolve@27.5.1: + resolution: {integrity: sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==} + engines: {node: '>=6'} + peerDependencies: + jest-resolve: '*' + peerDependenciesMeta: + jest-resolve: + optional: true + dependencies: + jest-resolve: 27.5.1 + dev: true + + /jest-regex-util/26.0.0: + resolution: {integrity: sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A==} + engines: {node: '>= 10.14.2'} + dev: true + + /jest-regex-util/27.5.1: + resolution: {integrity: sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dev: true + + /jest-resolve-dependencies/27.5.1: + resolution: {integrity: sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + jest-regex-util: 27.5.1 + jest-snapshot: 27.5.1 + transitivePeerDependencies: + - supports-color + dev: true + + /jest-resolve/26.6.2: + resolution: {integrity: sha512-sOxsZOq25mT1wRsfHcbtkInS+Ek7Q8jCHUB0ZUTP0tc/c41QHriU/NunqMfCUWsL4H3MHpvQD4QR9kSYhS7UvQ==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/types': 26.6.2 + chalk: 4.1.2 + graceful-fs: 4.2.10 + jest-pnp-resolver: 1.2.2_jest-resolve@26.6.2 + jest-util: 26.6.2 + read-pkg-up: 7.0.1 + resolve: 1.22.0 + slash: 3.0.0 + dev: true + + /jest-resolve/27.5.1: + resolution: {integrity: sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + chalk: 4.1.2 + graceful-fs: 4.2.10 + jest-haste-map: 27.5.1 + jest-pnp-resolver: 1.2.2_jest-resolve@27.5.1 + jest-util: 27.5.1 + jest-validate: 27.5.1 + resolve: 1.22.0 + resolve.exports: 1.1.0 + slash: 3.0.0 + dev: true + + /jest-runner/27.5.1: + resolution: {integrity: sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/console': 27.5.1 + '@jest/environment': 27.5.1 + '@jest/test-result': 27.5.1 + '@jest/transform': 27.5.1 + '@jest/types': 27.5.1 + '@types/node': 17.0.34 + chalk: 4.1.2 + emittery: 0.8.1 + graceful-fs: 4.2.10 + jest-docblock: 27.5.1 + jest-environment-jsdom: 27.5.1 + jest-environment-node: 27.5.1 + jest-haste-map: 27.5.1 + jest-leak-detector: 27.5.1 + jest-message-util: 27.5.1 + jest-resolve: 27.5.1 + jest-runtime: 27.5.1 + jest-util: 27.5.1 + jest-worker: 27.5.1 + source-map-support: 0.5.21 + throat: 6.0.1 + transitivePeerDependencies: + - bufferutil + - canvas + - supports-color + - utf-8-validate + dev: true + + /jest-runtime/27.5.1: + resolution: {integrity: sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/environment': 27.5.1 + '@jest/fake-timers': 27.5.1 + '@jest/globals': 27.5.1 + '@jest/source-map': 27.5.1 + '@jest/test-result': 27.5.1 + '@jest/transform': 27.5.1 + '@jest/types': 27.5.1 + chalk: 4.1.2 + cjs-module-lexer: 1.2.2 + collect-v8-coverage: 1.0.1 + execa: 5.1.1 + glob: 7.2.0 + graceful-fs: 4.2.10 + jest-haste-map: 27.5.1 + jest-message-util: 27.5.1 + jest-mock: 27.5.1 + jest-regex-util: 27.5.1 + jest-resolve: 27.5.1 + jest-snapshot: 27.5.1 + jest-util: 27.5.1 + slash: 3.0.0 + strip-bom: 4.0.0 + transitivePeerDependencies: + - supports-color + dev: true + + /jest-serializer/26.6.2: + resolution: {integrity: sha512-S5wqyz0DXnNJPd/xfIzZ5Xnp1HrJWBczg8mMfMpN78OJ5eDxXyf+Ygld9wX1DnUWbIbhM1YDY95NjR4CBXkb2g==} + engines: {node: '>= 10.14.2'} + dependencies: + '@types/node': 17.0.34 + graceful-fs: 4.2.10 + dev: true + + /jest-serializer/27.5.1: + resolution: {integrity: sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@types/node': 17.0.34 + graceful-fs: 4.2.10 + dev: true + + /jest-snapshot/26.6.2: + resolution: {integrity: sha512-OLhxz05EzUtsAmOMzuupt1lHYXCNib0ECyuZ/PZOx9TrZcC8vL0x+DUG3TL+GLX3yHG45e6YGjIm0XwDc3q3og==} + engines: {node: '>= 10.14.2'} + dependencies: + '@babel/types': 7.17.0 + '@jest/types': 26.6.2 + '@types/babel__traverse': 7.17.0 + '@types/prettier': 2.6.0 + chalk: 4.1.2 + expect: 26.6.2 + graceful-fs: 4.2.10 + jest-diff: 26.6.2 + jest-get-type: 26.3.0 + jest-haste-map: 26.6.2 + jest-matcher-utils: 26.6.2 + jest-message-util: 26.6.2 + jest-resolve: 26.6.2 + natural-compare: 1.4.0 + pretty-format: 26.6.2 + semver: 7.3.7 + transitivePeerDependencies: + - supports-color + dev: true + + /jest-snapshot/27.5.1: + resolution: {integrity: sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@babel/core': 7.17.9 + '@babel/generator': 7.17.9 + '@babel/plugin-syntax-typescript': 7.16.7_@babel+core@7.17.9 + '@babel/traverse': 7.17.9 + '@babel/types': 7.17.0 + '@jest/transform': 27.5.1 + '@jest/types': 27.5.1 + '@types/babel__traverse': 7.17.0 + '@types/prettier': 2.6.0 + babel-preset-current-node-syntax: 1.0.1_@babel+core@7.17.9 + chalk: 4.1.2 + expect: 27.5.1 + graceful-fs: 4.2.10 + jest-diff: 27.5.1 + jest-get-type: 27.5.1 + jest-haste-map: 27.5.1 + jest-matcher-utils: 27.5.1 + jest-message-util: 27.5.1 + jest-util: 27.5.1 + natural-compare: 1.4.0 + pretty-format: 27.5.1 + semver: 7.3.7 + transitivePeerDependencies: + - supports-color + dev: true + + /jest-specific-snapshot/4.0.0_jest@27.5.1: + resolution: {integrity: sha512-YdW5P/MVwOizWR0MJwURxdrjdXvdG2MMpXKVGr7dZ2YrBmE6E6Ab74UL3DOYmGmzaCnNAW1CL02pY5MTHE3ulQ==} + peerDependencies: + jest: '>= 26.0.0' + dependencies: + jest: 27.5.1 + jest-snapshot: 26.6.2 + transitivePeerDependencies: + - supports-color + dev: true + + /jest-util/26.6.2: + resolution: {integrity: sha512-MDW0fKfsn0OI7MS7Euz6h8HNDXVQ0gaM9uW6RjfDmd1DAFcaxX9OqIakHIqhbnmF08Cf2DLDG+ulq8YQQ0Lp0Q==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/types': 26.6.2 + '@types/node': 17.0.34 + chalk: 4.1.2 + graceful-fs: 4.2.10 + is-ci: 2.0.0 + micromatch: 4.0.5 + dev: true + + /jest-util/27.5.1: + resolution: {integrity: sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + '@types/node': 17.0.34 + chalk: 4.1.2 + ci-info: 3.3.0 + graceful-fs: 4.2.10 + picomatch: 2.3.1 + dev: true + + /jest-validate/27.5.1: + resolution: {integrity: sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + camelcase: 6.3.0 + chalk: 4.1.2 + jest-get-type: 27.5.1 + leven: 3.1.0 + pretty-format: 27.5.1 + dev: true + + /jest-watcher/27.5.1: + resolution: {integrity: sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/test-result': 27.5.1 + '@jest/types': 27.5.1 + '@types/node': 17.0.34 + ansi-escapes: 4.3.2 + chalk: 4.1.2 + jest-util: 27.5.1 + string-length: 4.0.2 + dev: true + + /jest-worker/26.6.2: + resolution: {integrity: sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==} + engines: {node: '>= 10.13.0'} + dependencies: + '@types/node': 17.0.34 + merge-stream: 2.0.0 + supports-color: 7.2.0 + dev: true + + /jest-worker/27.5.1: + resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==} + engines: {node: '>= 10.13.0'} + dependencies: + '@types/node': 17.0.34 + merge-stream: 2.0.0 + supports-color: 8.1.1 + dev: true + + /jest/27.5.1: + resolution: {integrity: sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + hasBin: true + peerDependencies: + node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 + peerDependenciesMeta: + node-notifier: + optional: true + dependencies: + '@jest/core': 27.5.1 + import-local: 3.1.0 + jest-cli: 27.5.1 + transitivePeerDependencies: + - bufferutil + - canvas + - supports-color + - ts-node + - utf-8-validate + dev: true + + /js-string-escape/1.0.1: + resolution: {integrity: sha1-4mJbrbwNZ8dTPp7cEGjFh65BN+8=} + engines: {node: '>= 0.8'} + dev: true + + /js-tokens/4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + dev: true + + /js-yaml/3.14.1: + resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} + hasBin: true + dependencies: + argparse: 1.0.10 + esprima: 4.0.1 + dev: true + + /js-yaml/4.1.0: + resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} + hasBin: true + dependencies: + argparse: 2.0.1 + dev: true + + /jsdom/16.7.0: + resolution: {integrity: sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==} + engines: {node: '>=10'} + peerDependencies: + canvas: ^2.5.0 + peerDependenciesMeta: + canvas: + optional: true + dependencies: + abab: 2.0.6 + acorn: 8.7.1 + acorn-globals: 6.0.0 + cssom: 0.4.4 + cssstyle: 2.3.0 + data-urls: 2.0.0 + decimal.js: 10.3.1 + domexception: 2.0.1 + escodegen: 2.0.0 + form-data: 3.0.1 + html-encoding-sniffer: 2.0.1 + http-proxy-agent: 4.0.1 + https-proxy-agent: 5.0.1 + is-potential-custom-element-name: 1.0.1 + nwsapi: 2.2.0 + parse5: 6.0.1 + saxes: 5.0.1 + symbol-tree: 3.2.4 + tough-cookie: 4.0.0 + w3c-hr-time: 1.0.2 + w3c-xmlserializer: 2.0.0 + webidl-conversions: 6.1.0 + whatwg-encoding: 1.0.5 + whatwg-mimetype: 2.3.0 + whatwg-url: 8.7.0 + ws: 7.5.7 + xml-name-validator: 3.0.0 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + dev: true + + /jsesc/0.5.0: + resolution: {integrity: sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=} + hasBin: true + dev: true + + /jsesc/2.5.2: + resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==} + engines: {node: '>=4'} + hasBin: true + dev: true + + /json-parse-better-errors/1.0.2: + resolution: {integrity: sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==} + dev: true + + /json-parse-even-better-errors/2.3.1: + resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} + dev: true + + /json-schema-traverse/0.4.1: + resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} + dev: true + + /json-stable-stringify-without-jsonify/1.0.1: + resolution: {integrity: sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=} + dev: true + + /json-stringify-safe/5.0.1: + resolution: {integrity: sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==} + dev: true + + /json5/1.0.1: + resolution: {integrity: sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==} + hasBin: true + dependencies: + minimist: 1.2.6 + dev: true + + /json5/2.2.1: + resolution: {integrity: sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==} + engines: {node: '>=6'} + hasBin: true + dev: true + + /jsonfile/2.4.0: + resolution: {integrity: sha1-NzaitCi4e72gzIO1P6PWM6NcKug=} + optionalDependencies: + graceful-fs: 4.2.10 + dev: true + + /jsonfile/4.0.0: + resolution: {integrity: sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=} + optionalDependencies: + graceful-fs: 4.2.10 + dev: true + + /jsonfile/6.1.0: + resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} + dependencies: + universalify: 2.0.0 + optionalDependencies: + graceful-fs: 4.2.10 + dev: true + + /jsonparse/1.3.1: + resolution: {integrity: sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=} + engines: {'0': node >= 0.2.0} + dev: true + + /junk/3.1.0: + resolution: {integrity: sha512-pBxcB3LFc8QVgdggvZWyeys+hnrNWg4OcZIU/1X59k5jQdLBlCsYGRQaz234SqoRLTCgMH00fY0xRJH+F9METQ==} + engines: {node: '>=8'} + dev: true + + /kind-of/3.2.2: + resolution: {integrity: sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=} + engines: {node: '>=0.10.0'} + dependencies: + is-buffer: 1.1.6 + dev: true + + /kind-of/4.0.0: + resolution: {integrity: sha1-IIE989cSkosgc3hpGkUGb65y3Vc=} + engines: {node: '>=0.10.0'} + dependencies: + is-buffer: 1.1.6 + dev: true + + /kind-of/5.1.0: + resolution: {integrity: sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==} + engines: {node: '>=0.10.0'} + dev: true + + /kind-of/6.0.3: + resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==} + engines: {node: '>=0.10.0'} + dev: true + + /klaw/1.3.1: + resolution: {integrity: sha1-QIhDO0azsbolnXh4XY6W9zugJDk=} + optionalDependencies: + graceful-fs: 4.2.10 + dev: true + + /kleur/3.0.3: + resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==} + engines: {node: '>=6'} + dev: true + + /klona/2.0.5: + resolution: {integrity: sha512-pJiBpiXMbt7dkzXe8Ghj/u4FfXOOa98fPW+bihOJ4SjnoijweJrNThJfd3ifXpXhREjpoF2mZVH1GfS9LV3kHQ==} + engines: {node: '>= 8'} + dev: true + + /lazy-universal-dotenv/3.0.1: + resolution: {integrity: sha512-prXSYk799h3GY3iOWnC6ZigYzMPjxN2svgjJ9shk7oMadSNX3wXy0B6F32PMJv7qtMnrIbUxoEHzbutvxR2LBQ==} + engines: {node: '>=6.0.0', npm: '>=6.0.0', yarn: '>=1.0.0'} + dependencies: + '@babel/runtime': 7.17.9 + app-root-dir: 1.0.2 + core-js: 3.21.1 + dotenv: 8.6.0 + dotenv-expand: 5.1.0 + dev: true + + /leven/3.1.0: + resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==} + engines: {node: '>=6'} + dev: true + + /levn/0.3.0: + resolution: {integrity: sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=} + engines: {node: '>= 0.8.0'} + dependencies: + prelude-ls: 1.1.2 + type-check: 0.3.2 + dev: true + + /levn/0.4.1: + resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} + engines: {node: '>= 0.8.0'} + dependencies: + prelude-ls: 1.2.1 + type-check: 0.4.0 + dev: true + + /lilconfig/2.0.5: + resolution: {integrity: sha512-xaYmXZtTHPAw5m+xLN8ab9C+3a8YmV3asNSPOATITbtwrfbwaLJj8h66H1WMIpALCkqsIzK3h7oQ+PdX+LQ9Eg==} + engines: {node: '>=10'} + dev: true + + /lines-and-columns/1.2.4: + resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} + dev: true + + /load-json-file/4.0.0: + resolution: {integrity: sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw==} + engines: {node: '>=4'} + dependencies: + graceful-fs: 4.2.10 + parse-json: 4.0.0 + pify: 3.0.0 + strip-bom: 3.0.0 + dev: true + + /loader-runner/2.4.0: + resolution: {integrity: sha512-Jsmr89RcXGIwivFY21FcRrisYZfvLMTWx5kOLc+JTxtpBOG6xML0vzbc6SEQG2FO9/4Fc3wW4LVcB5DmGflaRw==} + engines: {node: '>=4.3.0 <5.0.0 || >=5.10'} + dev: true + + /loader-runner/4.3.0: + resolution: {integrity: sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==} + engines: {node: '>=6.11.5'} + dev: true + + /loader-utils/1.4.0: + resolution: {integrity: sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==} + engines: {node: '>=4.0.0'} + dependencies: + big.js: 5.2.2 + emojis-list: 3.0.0 + json5: 1.0.1 + dev: true + + /loader-utils/2.0.0: + resolution: {integrity: sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==} + engines: {node: '>=8.9.0'} + dependencies: + big.js: 5.2.2 + emojis-list: 3.0.0 + json5: 2.2.1 + dev: true + + /loader-utils/2.0.2: + resolution: {integrity: sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A==} + engines: {node: '>=8.9.0'} + dependencies: + big.js: 5.2.2 + emojis-list: 3.0.0 + json5: 2.2.1 + dev: true + + /locate-path/2.0.0: + resolution: {integrity: sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==} + engines: {node: '>=4'} + dependencies: + p-locate: 2.0.0 + path-exists: 3.0.0 + dev: true + + /locate-path/3.0.0: + resolution: {integrity: sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==} + engines: {node: '>=6'} + dependencies: + p-locate: 3.0.0 + path-exists: 3.0.0 + dev: true + + /locate-path/5.0.0: + resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} + engines: {node: '>=8'} + dependencies: + p-locate: 4.1.0 + dev: true + + /locate-path/6.0.0: + resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} + engines: {node: '>=10'} + dependencies: + p-locate: 5.0.0 + dev: true + + /lodash.debounce/4.0.8: + resolution: {integrity: sha1-gteb/zCmfEAF/9XiUVMArZyk168=} + dev: true + + /lodash.ismatch/4.4.0: + resolution: {integrity: sha512-fPMfXjGQEV9Xsq/8MTSgUf255gawYRbjwMyDbcvDhXgV7enSZA0hynz6vMPnpAb5iONEzBHBPsT+0zes5Z301g==} + dev: true + + /lodash.map/4.6.0: + resolution: {integrity: sha1-dx7Hg540c9nEzeKLGTlMNWL09tM=} + dev: true + + /lodash.memoize/4.1.2: + resolution: {integrity: sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=} + dev: true + + /lodash.merge/4.6.2: + resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} + dev: true + + /lodash.uniq/4.5.0: + resolution: {integrity: sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=} + dev: true + + /lodash/4.17.21: + resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} + dev: true + + /log-symbols/4.1.0: + resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==} + engines: {node: '>=10'} + dependencies: + chalk: 4.1.2 + is-unicode-supported: 0.1.0 + dev: true + + /longest/2.0.1: + resolution: {integrity: sha1-eB4YMpaqlPbU2RbcM10NF676I/g=} + engines: {node: '>=0.10.0'} + dev: true + + /loose-envify/1.4.0: + resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} + hasBin: true + dependencies: + js-tokens: 4.0.0 + dev: true + + /lower-case/2.0.2: + resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==} + dependencies: + tslib: 2.3.1 + dev: true + + /lowlight/1.20.0: + resolution: {integrity: sha512-8Ktj+prEb1RoCPkEOrPMYUN/nCggB7qAWe3a7OpMjWQkh3l2RD5wKRQ+o8Q8YuI9RG/xs95waaI/E6ym/7NsTw==} + dependencies: + fault: 1.0.4 + highlight.js: 10.7.3 + dev: true + + /lru-cache/5.1.1: + resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} + dependencies: + yallist: 3.1.1 + dev: true + + /lru-cache/6.0.0: + resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} + engines: {node: '>=10'} + dependencies: + yallist: 4.0.0 + dev: true + + /lz-string/1.4.4: + resolution: {integrity: sha1-wNjq82BZ9wV5bh40SBHPTEmNOiY=} + hasBin: true + dev: true + + /make-dir/2.1.0: + resolution: {integrity: sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==} + engines: {node: '>=6'} + dependencies: + pify: 4.0.1 + semver: 5.7.1 + dev: true + + /make-dir/3.1.0: + resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==} + engines: {node: '>=8'} + dependencies: + semver: 6.3.0 + dev: true + + /make-error/1.3.6: + resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} + dev: true + + /makeerror/1.0.12: + resolution: {integrity: sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==} + dependencies: + tmpl: 1.0.5 + dev: true + + /map-cache/0.2.2: + resolution: {integrity: sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=} + engines: {node: '>=0.10.0'} + dev: true + + /map-obj/1.0.1: + resolution: {integrity: sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=} + engines: {node: '>=0.10.0'} + dev: true + + /map-obj/4.3.0: + resolution: {integrity: sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==} + engines: {node: '>=8'} + dev: true + + /map-or-similar/1.5.0: + resolution: {integrity: sha1-beJlMXSt+12e3DPGnT6Sobdvrwg=} + dev: true + + /map-visit/1.0.0: + resolution: {integrity: sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=} + engines: {node: '>=0.10.0'} + dependencies: + object-visit: 1.0.1 + dev: true + + /markdown-escapes/1.0.4: + resolution: {integrity: sha512-8z4efJYk43E0upd0NbVXwgSTQs6cT3T06etieCMEg7dRbzCbxUCK/GHlX8mhHRDcp+OLlHkPKsvqQTCvsRl2cg==} + dev: true + + /markdown-to-jsx/7.1.7: + resolution: {integrity: sha512-VI3TyyHlGkO8uFle0IOibzpO1c1iJDcXcS/zBrQrXQQvJ2tpdwVzVZ7XdKsyRz1NdRmre4dqQkMZzUHaKIG/1w==} + engines: {node: '>= 10'} + peerDependencies: + react: '>= 0.14.0' + dev: true + + /markdown-to-jsx/7.1.7_react@16.14.0: + resolution: {integrity: sha512-VI3TyyHlGkO8uFle0IOibzpO1c1iJDcXcS/zBrQrXQQvJ2tpdwVzVZ7XdKsyRz1NdRmre4dqQkMZzUHaKIG/1w==} + engines: {node: '>= 10'} + peerDependencies: + react: '>= 0.14.0' + dependencies: + react: 16.14.0 + dev: true + + /md5.js/1.3.5: + resolution: {integrity: sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==} + dependencies: + hash-base: 3.1.0 + inherits: 2.0.4 + safe-buffer: 5.2.1 + dev: true + + /mdast-squeeze-paragraphs/4.0.0: + resolution: {integrity: sha512-zxdPn69hkQ1rm4J+2Cs2j6wDEv7O17TfXTJ33tl/+JPIoEmtV9t2ZzBM5LPHE8QlHsmVD8t3vPKCyY3oH+H8MQ==} + dependencies: + unist-util-remove: 2.1.0 + dev: true + + /mdast-util-definitions/4.0.0: + resolution: {integrity: sha512-k8AJ6aNnUkB7IE+5azR9h81O5EQ/cTDXtWdMq9Kk5KcEW/8ritU5CeLg/9HhOC++nALHBlaogJ5jz0Ybk3kPMQ==} + dependencies: + unist-util-visit: 2.0.3 + dev: true + + /mdast-util-to-hast/10.0.1: + resolution: {integrity: sha512-BW3LM9SEMnjf4HXXVApZMt8gLQWVNXc3jryK0nJu/rOXPOnlkUjmdkDlmxMirpbU9ILncGFIwLH/ubnWBbcdgA==} + dependencies: + '@types/mdast': 3.0.10 + '@types/unist': 2.0.6 + mdast-util-definitions: 4.0.0 + mdurl: 1.0.1 + unist-builder: 2.0.3 + unist-util-generated: 1.1.6 + unist-util-position: 3.1.0 + unist-util-visit: 2.0.3 + dev: true + + /mdast-util-to-string/1.1.0: + resolution: {integrity: sha512-jVU0Nr2B9X3MU4tSK7JP1CMkSvOj7X5l/GboG1tKRw52lLF1x2Ju92Ms9tNetCcbfX3hzlM73zYo2NKkWSfF/A==} + dev: true + + /mdn-data/2.0.14: + resolution: {integrity: sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==} + dev: true + + /mdn-data/2.0.4: + resolution: {integrity: sha512-iV3XNKw06j5Q7mi6h+9vbx23Tv7JkjEVgKHW4pimwyDGWm0OIQntJJ+u1C6mg6mK1EaTv42XQ7w76yuzH7M2cA==} + dev: true + + /mdurl/1.0.1: + resolution: {integrity: sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4=} + dev: true + + /media-typer/0.3.0: + resolution: {integrity: sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=} + engines: {node: '>= 0.6'} + dev: true + + /memfs/3.4.1: + resolution: {integrity: sha512-1c9VPVvW5P7I85c35zAdEr1TD5+F11IToIHIlrVIcflfnzPkJa0ZoYEoEdYDP8KgPFoSZ/opDrUsAoZWym3mtw==} + engines: {node: '>= 4.0.0'} + dependencies: + fs-monkey: 1.0.3 + dev: true + + /memoizerific/1.11.3: + resolution: {integrity: sha1-fIekZGREwy11Q4VwkF8tvRsagFo=} + dependencies: + map-or-similar: 1.5.0 + dev: true + + /memory-fs/0.4.1: + resolution: {integrity: sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=} + dependencies: + errno: 0.1.8 + readable-stream: 2.3.7 + dev: true + + /memory-fs/0.5.0: + resolution: {integrity: sha512-jA0rdU5KoQMC0e6ppoNRtpp6vjFq6+NY7r8hywnC7V+1Xj/MtHwGIbB1QaK/dunyjWteJzmkpd7ooeWg10T7GA==} + engines: {node: '>=4.3.0 <5.0.0 || >=5.10'} + dependencies: + errno: 0.1.8 + readable-stream: 2.3.7 + dev: true + + /meow/10.1.2: + resolution: {integrity: sha512-zbuAlN+V/sXlbGchNS9WTWjUzeamwMt/BApKCJi7B0QyZstZaMx0n4Unll/fg0njGtMdC9UP5SAscvOCLYdM+Q==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + '@types/minimist': 1.2.2 + camelcase-keys: 7.0.2 + decamelize: 5.0.1 + decamelize-keys: 1.1.0 + hard-rejection: 2.1.0 + minimist-options: 4.1.0 + normalize-package-data: 3.0.3 + read-pkg-up: 8.0.0 + redent: 4.0.0 + trim-newlines: 4.0.2 + type-fest: 1.4.0 + yargs-parser: 20.2.9 + dev: true + + /meow/8.1.2: + resolution: {integrity: sha512-r85E3NdZ+mpYk1C6RjPFEMSE+s1iZMuHtsHAqY0DT3jZczl0diWUZ8g6oU7h0M9cD2EL+PzaYghhCLzR0ZNn5Q==} + engines: {node: '>=10'} + dependencies: + '@types/minimist': 1.2.2 + camelcase-keys: 6.2.2 + decamelize-keys: 1.1.0 + hard-rejection: 2.1.0 + minimist-options: 4.1.0 + normalize-package-data: 3.0.3 + read-pkg-up: 7.0.1 + redent: 3.0.0 + trim-newlines: 3.0.1 + type-fest: 0.18.1 + yargs-parser: 20.2.9 + dev: true + + /merge-descriptors/1.0.1: + resolution: {integrity: sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=} + dev: true + + /merge-stream/2.0.0: + resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} + dev: true + + /merge/2.1.1: + resolution: {integrity: sha512-jz+Cfrg9GWOZbQAnDQ4hlVnQky+341Yk5ru8bZSe6sIDTCIg8n9i/u7hSQGSVOF3C7lH6mGtqjkiT9G4wFLL0w==} + dev: true + + /merge2/1.4.1: + resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} + engines: {node: '>= 8'} + dev: true + + /methods/1.1.2: + resolution: {integrity: sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=} + engines: {node: '>= 0.6'} + dev: true + + /microevent.ts/0.1.1: + resolution: {integrity: sha512-jo1OfR4TaEwd5HOrt5+tAZ9mqT4jmpNAusXtyfNzqVm9uiSYFZlKM1wYL4oU7azZW/PxQW53wM0S6OR1JHNa2g==} + dev: true + + /micromatch/3.1.10: + resolution: {integrity: sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==} + engines: {node: '>=0.10.0'} + dependencies: + arr-diff: 4.0.0 + array-unique: 0.3.2 + braces: 2.3.2 + define-property: 2.0.2 + extend-shallow: 3.0.2 + extglob: 2.0.4 + fragment-cache: 0.2.1 + kind-of: 6.0.3 + nanomatch: 1.2.13 + object.pick: 1.3.0 + regex-not: 1.0.2 + snapdragon: 0.8.2 + to-regex: 3.0.2 + transitivePeerDependencies: + - supports-color + dev: true + + /micromatch/4.0.5: + resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==} + engines: {node: '>=8.6'} + dependencies: + braces: 3.0.2 + picomatch: 2.3.1 + dev: true + + /miller-rabin/4.0.1: + resolution: {integrity: sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==} + hasBin: true + dependencies: + bn.js: 4.12.0 + brorand: 1.1.0 + dev: true + + /mime-db/1.52.0: + resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} + engines: {node: '>= 0.6'} + dev: true + + /mime-types/2.1.35: + resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} + engines: {node: '>= 0.6'} + dependencies: + mime-db: 1.52.0 + dev: true + + /mime/1.6.0: + resolution: {integrity: sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==} + engines: {node: '>=4'} + hasBin: true + dev: true + + /mime/2.6.0: + resolution: {integrity: sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==} + engines: {node: '>=4.0.0'} + hasBin: true + dev: true + + /mimic-fn/1.2.0: + resolution: {integrity: sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==} + engines: {node: '>=4'} + dev: true + + /mimic-fn/2.1.0: + resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==} + engines: {node: '>=6'} + dev: true + + /min-document/2.19.0: + resolution: {integrity: sha1-e9KC4/WELtKVu3SM3Z8f+iyCRoU=} + dependencies: + dom-walk: 0.1.2 + dev: true + + /min-indent/1.0.1: + resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} + engines: {node: '>=4'} + dev: true + + /minimalistic-assert/1.0.1: + resolution: {integrity: sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==} + dev: true + + /minimalistic-crypto-utils/1.0.1: + resolution: {integrity: sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=} + dev: true + + /minimatch/3.1.2: + resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} + dependencies: + brace-expansion: 1.1.11 + dev: true + + /minimist-options/4.1.0: + resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==} + engines: {node: '>= 6'} + dependencies: + arrify: 1.0.1 + is-plain-obj: 1.1.0 + kind-of: 6.0.3 + dev: true + + /minimist/1.2.5: + resolution: {integrity: sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==} + dev: true + + /minimist/1.2.6: + resolution: {integrity: sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==} + dev: true + + /minipass-collect/1.0.2: + resolution: {integrity: sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==} + engines: {node: '>= 8'} + dependencies: + minipass: 3.1.6 + dev: true + + /minipass-flush/1.0.5: + resolution: {integrity: sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==} + engines: {node: '>= 8'} + dependencies: + minipass: 3.1.6 + dev: true + + /minipass-pipeline/1.2.4: + resolution: {integrity: sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==} + engines: {node: '>=8'} + dependencies: + minipass: 3.1.6 + dev: true + + /minipass/3.1.6: + resolution: {integrity: sha512-rty5kpw9/z8SX9dmxblFA6edItUmwJgMeYDZRrwlIVN27i8gysGbznJwUggw2V/FVqFSDdWy040ZPS811DYAqQ==} + engines: {node: '>=8'} + dependencies: + yallist: 4.0.0 + dev: true + + /minizlib/2.1.2: + resolution: {integrity: sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==} + engines: {node: '>= 8'} + dependencies: + minipass: 3.1.6 + yallist: 4.0.0 + dev: true + + /mississippi/3.0.0: + resolution: {integrity: sha512-x471SsVjUtBRtcvd4BzKE9kFC+/2TeWgKCgw0bZcw1b9l2X3QX5vCWgF+KaZaYm87Ss//rHnWryupDrgLvmSkA==} + engines: {node: '>=4.0.0'} + dependencies: + concat-stream: 1.6.2 + duplexify: 3.7.1 + end-of-stream: 1.4.4 + flush-write-stream: 1.1.1 + from2: 2.3.0 + parallel-transform: 1.2.0 + pump: 3.0.0 + pumpify: 1.5.1 + stream-each: 1.2.3 + through2: 2.0.5 + dev: true + + /mixin-deep/1.3.2: + resolution: {integrity: sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==} + engines: {node: '>=0.10.0'} + dependencies: + for-in: 1.0.2 + is-extendable: 1.0.1 + dev: true + + /mkdirp-classic/0.5.3: + resolution: {integrity: sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==} + dev: true + + /mkdirp/0.5.6: + resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==} + hasBin: true + dependencies: + minimist: 1.2.6 + dev: true + + /mkdirp/1.0.4: + resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==} + engines: {node: '>=10'} + hasBin: true + dev: true + + /modify-values/1.0.1: + resolution: {integrity: sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==} + engines: {node: '>=0.10.0'} + dev: true + + /move-concurrently/1.0.1: + resolution: {integrity: sha1-viwAX9oy4LKa8fBdfEszIUxwH5I=} + dependencies: + aproba: 1.2.0 + copy-concurrently: 1.0.5 + fs-write-stream-atomic: 1.0.10 + mkdirp: 0.5.6 + rimraf: 2.7.1 + run-queue: 1.0.3 + dev: true + + /ms/2.0.0: + resolution: {integrity: sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=} + dev: true + + /ms/2.1.1: + resolution: {integrity: sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==} + dev: true + + /ms/2.1.2: + resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} + dev: true + + /ms/2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + dev: true + + /mute-stream/0.0.7: + resolution: {integrity: sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=} + dev: true + + /mute-stream/0.0.8: + resolution: {integrity: sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==} + dev: true + + /nan/2.15.0: + resolution: {integrity: sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==} + requiresBuild: true + dev: true + optional: true + + /nano-staged/0.8.0: + resolution: {integrity: sha512-QSEqPGTCJbkHU2yLvfY6huqYPjdBrOaTMKatO1F8nCSrkQGXeKwtCiCnsdxnuMhbg3DTVywKaeWLGCE5oJpq0g==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + hasBin: true + dependencies: + picocolors: 1.0.0 + dev: true + + /nanoid/3.3.2: + resolution: {integrity: sha512-CuHBogktKwpm5g2sRgv83jEy2ijFzBwMoYA60orPDR7ynsLijJDqgsi4RDGj3OJpy3Ieb+LYwiRmIOGyytgITA==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + dev: true + + /nanomatch/1.2.13: + resolution: {integrity: sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==} + engines: {node: '>=0.10.0'} + dependencies: + arr-diff: 4.0.0 + array-unique: 0.3.2 + define-property: 2.0.2 + extend-shallow: 3.0.2 + fragment-cache: 0.2.1 + is-windows: 1.0.2 + kind-of: 6.0.3 + object.pick: 1.3.0 + regex-not: 1.0.2 + snapdragon: 0.8.2 + to-regex: 3.0.2 + transitivePeerDependencies: + - supports-color + dev: true + + /nanospinner/1.1.0: + resolution: {integrity: sha512-yFvNYMig4AthKYfHFl1sLj7B2nkHL4lzdig4osvl9/LdGbXwrdFRoqBS98gsEsOakr0yH+r5NZ/1Y9gdVB8trA==} + dependencies: + picocolors: 1.0.0 + dev: true + + /natural-compare/1.4.0: + resolution: {integrity: sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=} + dev: true + + /negotiator/0.6.3: + resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==} + engines: {node: '>= 0.6'} + dev: true + + /neo-async/2.6.2: + resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==} + dev: true + + /nested-error-stacks/2.1.1: + resolution: {integrity: sha512-9iN1ka/9zmX1ZvLV9ewJYEk9h7RyRRtqdK0woXcqohu8EWIerfPUjYJPg0ULy0UqP7cslmdGc8xKDJcojlKiaw==} + dev: true + + /new-github-release-url/2.0.0: + resolution: {integrity: sha512-NHDDGYudnvRutt/VhKFlX26IotXe1w0cmkDm6JGquh5bz/bDTw0LufSmH/GxTjEdpHEO+bVKFTwdrcGa/9XlKQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + type-fest: 2.16.0 + dev: true + + /nice-try/1.0.5: + resolution: {integrity: sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==} + dev: true + + /no-case/3.0.4: + resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==} + dependencies: + lower-case: 2.0.2 + tslib: 2.3.1 + dev: true + + /node-fetch/2.6.7: + resolution: {integrity: sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==} + engines: {node: 4.x || >=6.0.0} + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + dependencies: + whatwg-url: 5.0.0 + dev: true + + /node-int64/0.4.0: + resolution: {integrity: sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=} + dev: true + + /node-libs-browser/2.2.1: + resolution: {integrity: sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q==} + dependencies: + assert: 1.5.0 + browserify-zlib: 0.2.0 + buffer: 4.9.2 + console-browserify: 1.2.0 + constants-browserify: 1.0.0 + crypto-browserify: 3.12.0 + domain-browser: 1.2.0 + events: 3.3.0 + https-browserify: 1.0.0 + os-browserify: 0.3.0 + path-browserify: 0.0.1 + process: 0.11.10 + punycode: 1.4.1 + querystring-es3: 0.2.1 + readable-stream: 2.3.7 + stream-browserify: 2.0.2 + stream-http: 2.8.3 + string_decoder: 1.3.0 + timers-browserify: 2.0.12 + tty-browserify: 0.0.0 + url: 0.11.0 + util: 0.11.1 + vm-browserify: 1.1.2 + dev: true + + /node-releases/2.0.3: + resolution: {integrity: sha512-maHFz6OLqYxz+VQyCAtA3PTX4UP/53pa05fyDNc9CwjvJ0yEh6+xBwKsgCxMNhS8taUKBFYxfuiaD9U/55iFaw==} + dev: true + + /normalize-package-data/2.5.0: + resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==} + dependencies: + hosted-git-info: 2.8.9 + resolve: 1.22.0 + semver: 5.7.1 + validate-npm-package-license: 3.0.4 + dev: true + + /normalize-package-data/3.0.3: + resolution: {integrity: sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==} + engines: {node: '>=10'} + dependencies: + hosted-git-info: 4.1.0 + is-core-module: 2.8.1 + semver: 7.3.7 + validate-npm-package-license: 3.0.4 + dev: true + + /normalize-path/2.1.1: + resolution: {integrity: sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==} + engines: {node: '>=0.10.0'} + dependencies: + remove-trailing-separator: 1.1.0 + dev: true + + /normalize-path/3.0.0: + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} + engines: {node: '>=0.10.0'} + dev: true + + /normalize-range/0.1.2: + resolution: {integrity: sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=} + engines: {node: '>=0.10.0'} + dev: true + + /normalize-url/3.3.0: + resolution: {integrity: sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg==} + engines: {node: '>=6'} + dev: true + + /normalize-url/6.1.0: + resolution: {integrity: sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==} + engines: {node: '>=10'} + dev: true + + /npm-run-path/2.0.2: + resolution: {integrity: sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=} + engines: {node: '>=4'} + dependencies: + path-key: 2.0.1 + dev: true + + /npm-run-path/4.0.1: + resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==} + engines: {node: '>=8'} + dependencies: + path-key: 3.1.1 + dev: true + + /npmlog/5.0.1: + resolution: {integrity: sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==} + dependencies: + are-we-there-yet: 2.0.0 + console-control-strings: 1.1.0 + gauge: 3.0.2 + set-blocking: 2.0.0 + dev: true + + /nth-check/1.0.2: + resolution: {integrity: sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==} + dependencies: + boolbase: 1.0.0 + dev: true + + /nth-check/2.0.1: + resolution: {integrity: sha512-it1vE95zF6dTT9lBsYbxvqh0Soy4SPowchj0UBGj/V6cTPnXXtQOPUbhZ6CmGzAD/rW22LQK6E96pcdJXk4A4w==} + dependencies: + boolbase: 1.0.0 + dev: true + + /num2fraction/1.2.2: + resolution: {integrity: sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=} + dev: true + + /nwsapi/2.2.0: + resolution: {integrity: sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==} + dev: true + + /object-assign/4.1.1: + resolution: {integrity: sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=} + engines: {node: '>=0.10.0'} + dev: true + + /object-copy/0.1.0: + resolution: {integrity: sha1-fn2Fi3gb18mRpBupde04EnVOmYw=} + engines: {node: '>=0.10.0'} + dependencies: + copy-descriptor: 0.1.1 + define-property: 0.2.5 + kind-of: 3.2.2 + dev: true + + /object-inspect/1.12.0: + resolution: {integrity: sha512-Ho2z80bVIvJloH+YzRmpZVQe87+qASmBUKZDWgx9cu+KDrX2ZDH/3tMy+gXbZETVGs2M8YdxObOh7XAtim9Y0g==} + dev: true + + /object-keys/1.1.1: + resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==} + engines: {node: '>= 0.4'} + dev: true + + /object-visit/1.0.1: + resolution: {integrity: sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=} + engines: {node: '>=0.10.0'} + dependencies: + isobject: 3.0.1 + dev: true + + /object.assign/4.1.2: + resolution: {integrity: sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.3 + has-symbols: 1.0.3 + object-keys: 1.1.1 + dev: true + + /object.entries/1.1.5: + resolution: {integrity: sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.3 + es-abstract: 1.19.5 + dev: true + + /object.fromentries/2.0.5: + resolution: {integrity: sha512-CAyG5mWQRRiBU57Re4FKoTBjXfDoNwdFVH2Y1tS9PqCsfUTymAohOkEMSG3aRNKmv4lV3O7p1et7c187q6bynw==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.3 + es-abstract: 1.19.5 + dev: true + + /object.getownpropertydescriptors/2.1.3: + resolution: {integrity: sha512-VdDoCwvJI4QdC6ndjpqFmoL3/+HxffFBbcJzKi5hwLLqqx3mdbedRpfZDdK0SrOSauj8X4GzBvnDZl4vTN7dOw==} + engines: {node: '>= 0.8'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.3 + es-abstract: 1.19.5 + dev: true + + /object.pick/1.3.0: + resolution: {integrity: sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=} + engines: {node: '>=0.10.0'} + dependencies: + isobject: 3.0.1 + dev: true + + /object.values/1.1.5: + resolution: {integrity: sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.3 + es-abstract: 1.19.5 + dev: true + + /on-finished/2.3.0: + resolution: {integrity: sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=} + engines: {node: '>= 0.8'} + dependencies: + ee-first: 1.1.1 + dev: true + + /on-headers/1.0.2: + resolution: {integrity: sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==} + engines: {node: '>= 0.8'} + dev: true + + /once/1.4.0: + resolution: {integrity: sha1-WDsap3WWHUsROsF9nFC6753Xa9E=} + dependencies: + wrappy: 1.0.2 + dev: true + + /onetime/2.0.1: + resolution: {integrity: sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=} + engines: {node: '>=4'} + dependencies: + mimic-fn: 1.2.0 + dev: true + + /onetime/5.1.2: + resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==} + engines: {node: '>=6'} + dependencies: + mimic-fn: 2.1.0 + dev: true + + /open/7.4.2: + resolution: {integrity: sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==} + engines: {node: '>=8'} + dependencies: + is-docker: 2.2.1 + is-wsl: 2.2.0 + dev: true + + /open/8.4.0: + resolution: {integrity: sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q==} + engines: {node: '>=12'} + dependencies: + define-lazy-prop: 2.0.0 + is-docker: 2.2.1 + is-wsl: 2.2.0 + dev: true + + /opener/1.5.2: + resolution: {integrity: sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==} + hasBin: true + dev: true + + /optionator/0.8.3: + resolution: {integrity: sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==} + engines: {node: '>= 0.8.0'} + dependencies: + deep-is: 0.1.4 + fast-levenshtein: 2.0.6 + levn: 0.3.0 + prelude-ls: 1.1.2 + type-check: 0.3.2 + word-wrap: 1.2.3 + dev: true + + /optionator/0.9.1: + resolution: {integrity: sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==} + engines: {node: '>= 0.8.0'} + dependencies: + deep-is: 0.1.4 + fast-levenshtein: 2.0.6 + levn: 0.4.1 + prelude-ls: 1.2.1 + type-check: 0.4.0 + word-wrap: 1.2.3 + dev: true + + /ora/5.4.1: + resolution: {integrity: sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==} + engines: {node: '>=10'} + dependencies: + bl: 4.1.0 + chalk: 4.1.2 + cli-cursor: 3.1.0 + cli-spinners: 2.6.1 + is-interactive: 1.0.0 + is-unicode-supported: 0.1.0 + log-symbols: 4.1.0 + strip-ansi: 6.0.1 + wcwidth: 1.0.1 + dev: true + + /os-browserify/0.3.0: + resolution: {integrity: sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=} + dev: true + + /os-tmpdir/1.0.2: + resolution: {integrity: sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=} + engines: {node: '>=0.10.0'} + dev: true + + /overlayscrollbars/1.13.1: + resolution: {integrity: sha512-gIQfzgGgu1wy80EB4/6DaJGHMEGmizq27xHIESrzXq0Y/J0Ay1P3DWk6tuVmEPIZH15zaBlxeEJOqdJKmowHCQ==} + dev: true + + /p-all/2.1.0: + resolution: {integrity: sha512-HbZxz5FONzz/z2gJfk6bFca0BCiSRF8jU3yCsWOen/vR6lZjfPOu/e7L3uFzTW1i0H8TlC3vqQstEJPQL4/uLA==} + engines: {node: '>=6'} + dependencies: + p-map: 2.1.0 + dev: true + + /p-event/4.2.0: + resolution: {integrity: sha512-KXatOjCRXXkSePPb1Nbi0p0m+gQAwdlbhi4wQKJPI1HsMQS9g+Sqp2o+QHziPr7eYJyOZet836KoHEVM1mwOrQ==} + engines: {node: '>=8'} + dependencies: + p-timeout: 3.2.0 + dev: true + + /p-filter/2.1.0: + resolution: {integrity: sha512-ZBxxZ5sL2HghephhpGAQdoskxplTwr7ICaehZwLIlfL6acuVgZPm8yBNuRAFBGEqtD/hmUeq9eqLg2ys9Xr/yw==} + engines: {node: '>=8'} + dependencies: + p-map: 2.1.0 + dev: true + + /p-finally/1.0.0: + resolution: {integrity: sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=} + engines: {node: '>=4'} + dev: true + + /p-limit/1.3.0: + resolution: {integrity: sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==} + engines: {node: '>=4'} + dependencies: + p-try: 1.0.0 + dev: true + + /p-limit/2.3.0: + resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} + engines: {node: '>=6'} + dependencies: + p-try: 2.2.0 + dev: true + + /p-limit/3.1.0: + resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} + engines: {node: '>=10'} + dependencies: + yocto-queue: 0.1.0 + dev: true + + /p-locate/2.0.0: + resolution: {integrity: sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==} + engines: {node: '>=4'} + dependencies: + p-limit: 1.3.0 + dev: true + + /p-locate/3.0.0: + resolution: {integrity: sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==} + engines: {node: '>=6'} + dependencies: + p-limit: 2.3.0 + dev: true + + /p-locate/4.1.0: + resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==} + engines: {node: '>=8'} + dependencies: + p-limit: 2.3.0 + dev: true + + /p-locate/5.0.0: + resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} + engines: {node: '>=10'} + dependencies: + p-limit: 3.1.0 + dev: true + + /p-map/2.1.0: + resolution: {integrity: sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==} + engines: {node: '>=6'} + dev: true + + /p-map/3.0.0: + resolution: {integrity: sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==} + engines: {node: '>=8'} + dependencies: + aggregate-error: 3.1.0 + dev: true + + /p-map/4.0.0: + resolution: {integrity: sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==} + engines: {node: '>=10'} + dependencies: + aggregate-error: 3.1.0 + dev: true + + /p-timeout/3.2.0: + resolution: {integrity: sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==} + engines: {node: '>=8'} + dependencies: + p-finally: 1.0.0 + dev: true + + /p-try/1.0.0: + resolution: {integrity: sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==} + engines: {node: '>=4'} + dev: true + + /p-try/2.2.0: + resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} + engines: {node: '>=6'} + dev: true + + /pako/1.0.11: + resolution: {integrity: sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==} + dev: true + + /parallel-transform/1.2.0: + resolution: {integrity: sha512-P2vSmIu38uIlvdcU7fDkyrxj33gTUy/ABO5ZUbGowxNCopBq/OoD42bP4UmMrJoPyk4Uqf0mu3mtWBhHCZD8yg==} + dependencies: + cyclist: 1.0.1 + inherits: 2.0.4 + readable-stream: 2.3.7 + dev: true + + /param-case/3.0.4: + resolution: {integrity: sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==} + dependencies: + dot-case: 3.0.4 + tslib: 2.3.1 + dev: true + + /parent-module/1.0.1: + resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} + engines: {node: '>=6'} + dependencies: + callsites: 3.1.0 + dev: true + + /parse-asn1/5.1.6: + resolution: {integrity: sha512-RnZRo1EPU6JBnra2vGHj0yhp6ebyjBZpmUCLHWiFhxlzvBCCpAuZ7elsBp1PVAbQN0/04VD/19rfzlBSwLstMw==} + dependencies: + asn1.js: 5.4.1 + browserify-aes: 1.2.0 + evp_bytestokey: 1.0.3 + pbkdf2: 3.1.2 + safe-buffer: 5.2.1 + dev: true + + /parse-entities/2.0.0: + resolution: {integrity: sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ==} + dependencies: + character-entities: 1.2.4 + character-entities-legacy: 1.1.4 + character-reference-invalid: 1.1.4 + is-alphanumerical: 1.0.4 + is-decimal: 1.0.4 + is-hexadecimal: 1.0.4 + dev: true + + /parse-json/4.0.0: + resolution: {integrity: sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=} + engines: {node: '>=4'} + dependencies: + error-ex: 1.3.2 + json-parse-better-errors: 1.0.2 + dev: true + + /parse-json/5.2.0: + resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} + engines: {node: '>=8'} + dependencies: + '@babel/code-frame': 7.16.7 + error-ex: 1.3.2 + json-parse-even-better-errors: 2.3.1 + lines-and-columns: 1.2.4 + dev: true + + /parse-passwd/1.0.0: + resolution: {integrity: sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=} + engines: {node: '>=0.10.0'} + dev: true + + /parse-path/4.0.4: + resolution: {integrity: sha512-Z2lWUis7jlmXC1jeOG9giRO2+FsuyNipeQ43HAjqAZjwSe3SEf+q/84FGPHoso3kyntbxa4c4i77t3m6fGf8cw==} + dependencies: + is-ssh: 1.4.0 + protocols: 1.4.8 + qs: 6.10.3 + query-string: 6.14.1 + dev: true + + /parse-url/6.0.2: + resolution: {integrity: sha512-uCSjOvD3T+6B/sPWhR+QowAZcU/o4bjPrVBQBGFxcDF6J6FraCGIaDBsdoQawiaaAVdHvtqBe3w3vKlfBKySOQ==} + dependencies: + is-ssh: 1.4.0 + normalize-url: 6.1.0 + parse-path: 4.0.4 + protocols: 1.4.8 + dev: true + + /parse5/6.0.1: + resolution: {integrity: sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==} + dev: true + + /parseurl/1.3.3: + resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} + engines: {node: '>= 0.8'} + dev: true + + /pascal-case/3.1.2: + resolution: {integrity: sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==} + dependencies: + no-case: 3.0.4 + tslib: 2.3.1 + dev: true + + /pascalcase/0.1.1: + resolution: {integrity: sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=} + engines: {node: '>=0.10.0'} + dev: true + + /path-browserify/0.0.1: + resolution: {integrity: sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==} + dev: true + + /path-dirname/1.0.2: + resolution: {integrity: sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=} + dev: true + + /path-exists/3.0.0: + resolution: {integrity: sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==} + engines: {node: '>=4'} + dev: true + + /path-exists/4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} + engines: {node: '>=8'} + dev: true + + /path-is-absolute/1.0.1: + resolution: {integrity: sha1-F0uSaHNVNP+8es5r9TpanhtcX18=} + engines: {node: '>=0.10.0'} + dev: true + + /path-key/2.0.1: + resolution: {integrity: sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==} + engines: {node: '>=4'} + dev: true + + /path-key/3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + dev: true + + /path-parse/1.0.7: + resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} + dev: true + + /path-to-regexp/0.1.7: + resolution: {integrity: sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=} + dev: true + + /path-type/3.0.0: + resolution: {integrity: sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==} + engines: {node: '>=4'} + dependencies: + pify: 3.0.0 + dev: true + + /path-type/4.0.0: + resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} + engines: {node: '>=8'} + dev: true + + /pbkdf2/3.1.2: + resolution: {integrity: sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA==} + engines: {node: '>=0.12'} + dependencies: + create-hash: 1.2.0 + create-hmac: 1.1.7 + ripemd160: 2.0.2 + safe-buffer: 5.2.1 + sha.js: 2.4.11 + dev: true + + /pend/1.2.0: + resolution: {integrity: sha1-elfrVQpng/kRUzH89GY9XI4AelA=} + dev: true + + /picocolors/0.2.1: + resolution: {integrity: sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==} + dev: true + + /picocolors/1.0.0: + resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} + dev: true + + /picomatch/2.3.1: + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} + engines: {node: '>=8.6'} + dev: true + + /pify/2.3.0: + resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==} + engines: {node: '>=0.10.0'} + dev: true + + /pify/3.0.0: + resolution: {integrity: sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==} + engines: {node: '>=4'} + dev: true + + /pify/4.0.1: + resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==} + engines: {node: '>=6'} + dev: true + + /pirates/4.0.5: + resolution: {integrity: sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==} + engines: {node: '>= 6'} + dev: true + + /pixelmatch/5.3.0: + resolution: {integrity: sha512-o8mkY4E/+LNUf6LzX96ht6k6CEDi65k9G2rjMtBe9Oo+VPKSvl+0GKHuH/AlG+GA5LPG/i5hrekkxUc3s2HU+Q==} + hasBin: true + dependencies: + pngjs: 6.0.0 + dev: true + + /pkg-dir/3.0.0: + resolution: {integrity: sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==} + engines: {node: '>=6'} + dependencies: + find-up: 3.0.0 + dev: true + + /pkg-dir/4.2.0: + resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==} + engines: {node: '>=8'} + dependencies: + find-up: 4.1.0 + dev: true + + /pkg-dir/5.0.0: + resolution: {integrity: sha512-NPE8TDbzl/3YQYY7CSS228s3g2ollTFnc+Qi3tqmqJp9Vg2ovUpixcJEo2HJScN2Ez+kEaal6y70c0ehqJBJeA==} + engines: {node: '>=10'} + dependencies: + find-up: 5.0.0 + dev: true + + /pngjs/3.4.0: + resolution: {integrity: sha512-NCrCHhWmnQklfH4MtJMRjZ2a8c80qXeMlQMv2uVp9ISJMTt562SbGd6n2oq0PaPgKm7Z6pL9E2UlLIhC+SHL3w==} + engines: {node: '>=4.0.0'} + dev: true + + /pngjs/6.0.0: + resolution: {integrity: sha512-TRzzuFRRmEoSW/p1KVAmiOgPco2Irlah+bGFCeNfJXxxYGwSw7YwAOAcd7X28K/m5bjBWKsC29KyoMfHbypayg==} + engines: {node: '>=12.13.0'} + dev: true + + /pnp-webpack-plugin/1.6.4_typescript@4.6.4: + resolution: {integrity: sha512-7Wjy+9E3WwLOEL30D+m8TSTF7qJJUJLONBnwQp0518siuMxUQUbgZwssaFX+QKlZkjHZcw/IpZCt/H0srrntSg==} + engines: {node: '>=6'} + dependencies: + ts-pnp: 1.2.0_typescript@4.6.4 + transitivePeerDependencies: + - typescript + dev: true + + /polished/4.2.2: + resolution: {integrity: sha512-Sz2Lkdxz6F2Pgnpi9U5Ng/WdWAUZxmHrNPoVlm3aAemxoy2Qy7LGjQg4uf8qKelDAUW94F4np3iH2YPf2qefcQ==} + engines: {node: '>=10'} + dependencies: + '@babel/runtime': 7.17.9 + dev: true + + /portfinder/1.0.28: + resolution: {integrity: sha512-Se+2isanIcEqf2XMHjyUKskczxbPH7dQnlMjXX6+dybayyHvAf/TCgyMRlzf/B6QDhAEFOGes0pzRo3by4AbMA==} + engines: {node: '>= 0.12.0'} + dependencies: + async: 2.6.4 + debug: 3.2.7 + mkdirp: 0.5.6 + transitivePeerDependencies: + - supports-color + dev: true + + /posix-character-classes/0.1.1: + resolution: {integrity: sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=} + engines: {node: '>=0.10.0'} + dev: true + + /postcss-attribute-case-insensitive/4.0.2: + resolution: {integrity: sha512-clkFxk/9pcdb4Vkn0hAHq3YnxBQ2p0CGD1dy24jN+reBck+EWxMbxSUqN4Yj7t0w8csl87K6p0gxBe1utkJsYA==} + dependencies: + postcss: 7.0.39 + postcss-selector-parser: 6.0.10 + dev: true + + /postcss-calc/7.0.5: + resolution: {integrity: sha512-1tKHutbGtLtEZF6PT4JSihCHfIVldU72mZ8SdZHIYriIZ9fh9k9aWSppaT8rHsyI3dX+KSR+W+Ix9BMY3AODrg==} + dependencies: + postcss: 7.0.39 + postcss-selector-parser: 6.0.10 + postcss-value-parser: 4.2.0 + dev: true + + /postcss-color-functional-notation/2.0.1: + resolution: {integrity: sha512-ZBARCypjEDofW4P6IdPVTLhDNXPRn8T2s1zHbZidW6rPaaZvcnCS2soYFIQJrMZSxiePJ2XIYTlcb2ztr/eT2g==} + engines: {node: '>=6.0.0'} + dependencies: + postcss: 7.0.39 + postcss-values-parser: 2.0.1 + dev: true + + /postcss-color-gray/5.0.0: + resolution: {integrity: sha512-q6BuRnAGKM/ZRpfDascZlIZPjvwsRye7UDNalqVz3s7GDxMtqPY6+Q871liNxsonUw8oC61OG+PSaysYpl1bnw==} + engines: {node: '>=6.0.0'} + dependencies: + '@csstools/convert-colors': 1.4.0 + postcss: 7.0.39 + postcss-values-parser: 2.0.1 + dev: true + + /postcss-color-hex-alpha/5.0.3: + resolution: {integrity: sha512-PF4GDel8q3kkreVXKLAGNpHKilXsZ6xuu+mOQMHWHLPNyjiUBOr75sp5ZKJfmv1MCus5/DWUGcK9hm6qHEnXYw==} + engines: {node: '>=6.0.0'} + dependencies: + postcss: 7.0.39 + postcss-values-parser: 2.0.1 + dev: true + + /postcss-color-mod-function/3.0.3: + resolution: {integrity: sha512-YP4VG+xufxaVtzV6ZmhEtc+/aTXH3d0JLpnYfxqTvwZPbJhWqp8bSY3nfNzNRFLgB4XSaBA82OE4VjOOKpCdVQ==} + engines: {node: '>=6.0.0'} + dependencies: + '@csstools/convert-colors': 1.4.0 + postcss: 7.0.39 + postcss-values-parser: 2.0.1 + dev: true + + /postcss-color-rebeccapurple/4.0.1: + resolution: {integrity: sha512-aAe3OhkS6qJXBbqzvZth2Au4V3KieR5sRQ4ptb2b2O8wgvB3SJBsdG+jsn2BZbbwekDG8nTfcCNKcSfe/lEy8g==} + engines: {node: '>=6.0.0'} + dependencies: + postcss: 7.0.39 + postcss-values-parser: 2.0.1 + dev: true + + /postcss-colormin/4.0.3: + resolution: {integrity: sha512-WyQFAdDZpExQh32j0U0feWisZ0dmOtPl44qYmJKkq9xFWY3p+4qnRzCHeNrkeRhwPHz9bQ3mo0/yVkaply0MNw==} + engines: {node: '>=6.9.0'} + dependencies: + browserslist: 4.20.2 + color: 3.2.1 + has: 1.0.3 + postcss: 7.0.39 + postcss-value-parser: 3.3.1 + dev: true + + /postcss-convert-values/4.0.1: + resolution: {integrity: sha512-Kisdo1y77KUC0Jmn0OXU/COOJbzM8cImvw1ZFsBgBgMgb1iL23Zs/LXRe3r+EZqM3vGYKdQ2YJVQ5VkJI+zEJQ==} + engines: {node: '>=6.9.0'} + dependencies: + postcss: 7.0.39 + postcss-value-parser: 3.3.1 + dev: true + + /postcss-custom-media/7.0.8: + resolution: {integrity: sha512-c9s5iX0Ge15o00HKbuRuTqNndsJUbaXdiNsksnVH8H4gdc+zbLzr/UasOwNG6CTDpLFekVY4672eWdiiWu2GUg==} + engines: {node: '>=6.0.0'} + dependencies: + postcss: 7.0.39 + dev: true + + /postcss-custom-properties/8.0.11: + resolution: {integrity: sha512-nm+o0eLdYqdnJ5abAJeXp4CEU1c1k+eB2yMCvhgzsds/e0umabFrN6HoTy/8Q4K5ilxERdl/JD1LO5ANoYBeMA==} + engines: {node: '>=6.0.0'} + dependencies: + postcss: 7.0.39 + postcss-values-parser: 2.0.1 + dev: true + + /postcss-custom-selectors/5.1.2: + resolution: {integrity: sha512-DSGDhqinCqXqlS4R7KGxL1OSycd1lydugJ1ky4iRXPHdBRiozyMHrdu0H3o7qNOCiZwySZTUI5MV0T8QhCLu+w==} + engines: {node: '>=6.0.0'} + dependencies: + postcss: 7.0.39 + postcss-selector-parser: 5.0.0 + dev: true + + /postcss-dir-pseudo-class/5.0.0: + resolution: {integrity: sha512-3pm4oq8HYWMZePJY+5ANriPs3P07q+LW6FAdTlkFH2XqDdP4HeeJYMOzn0HYLhRSjBO3fhiqSwwU9xEULSrPgw==} + engines: {node: '>=4.0.0'} + dependencies: + postcss: 7.0.39 + postcss-selector-parser: 5.0.0 + dev: true + + /postcss-discard-comments/4.0.2: + resolution: {integrity: sha512-RJutN259iuRf3IW7GZyLM5Sw4GLTOH8FmsXBnv8Ab/Tc2k4SR4qbV4DNbyyY4+Sjo362SyDmW2DQ7lBSChrpkg==} + engines: {node: '>=6.9.0'} + dependencies: + postcss: 7.0.39 + dev: true + + /postcss-discard-duplicates/4.0.2: + resolution: {integrity: sha512-ZNQfR1gPNAiXZhgENFfEglF93pciw0WxMkJeVmw8eF+JZBbMD7jp6C67GqJAXVZP2BWbOztKfbsdmMp/k8c6oQ==} + engines: {node: '>=6.9.0'} + dependencies: + postcss: 7.0.39 + dev: true + + /postcss-discard-empty/4.0.1: + resolution: {integrity: sha512-B9miTzbznhDjTfjvipfHoqbWKwd0Mj+/fL5s1QOz06wufguil+Xheo4XpOnc4NqKYBCNqqEzgPv2aPBIJLox0w==} + engines: {node: '>=6.9.0'} + dependencies: + postcss: 7.0.39 + dev: true + + /postcss-discard-overridden/4.0.1: + resolution: {integrity: sha512-IYY2bEDD7g1XM1IDEsUT4//iEYCxAmP5oDSFMVU/JVvT7gh+l4fmjciLqGgwjdWpQIdb0Che2VX00QObS5+cTg==} + engines: {node: '>=6.9.0'} + dependencies: + postcss: 7.0.39 + dev: true + + /postcss-double-position-gradients/1.0.0: + resolution: {integrity: sha512-G+nV8EnQq25fOI8CH/B6krEohGWnF5+3A6H/+JEpOncu5dCnkS1QQ6+ct3Jkaepw1NGVqqOZH6lqrm244mCftA==} + engines: {node: '>=6.0.0'} + dependencies: + postcss: 7.0.39 + postcss-values-parser: 2.0.1 + dev: true + + /postcss-env-function/2.0.2: + resolution: {integrity: sha512-rwac4BuZlITeUbiBq60h/xbLzXY43qOsIErngWa4l7Mt+RaSkT7QBjXVGTcBHupykkblHMDrBFh30zchYPaOUw==} + engines: {node: '>=6.0.0'} + dependencies: + postcss: 7.0.39 + postcss-values-parser: 2.0.1 + dev: true + + /postcss-flexbugs-fixes/4.2.1: + resolution: {integrity: sha512-9SiofaZ9CWpQWxOwRh1b/r85KD5y7GgvsNt1056k6OYLvWUun0czCvogfJgylC22uJTwW1KzY3Gz65NZRlvoiQ==} + dependencies: + postcss: 7.0.39 + dev: true + + /postcss-focus-visible/4.0.0: + resolution: {integrity: sha512-Z5CkWBw0+idJHSV6+Bgf2peDOFf/x4o+vX/pwcNYrWpXFrSfTkQ3JQ1ojrq9yS+upnAlNRHeg8uEwFTgorjI8g==} + engines: {node: '>=6.0.0'} + dependencies: + postcss: 7.0.39 + dev: true + + /postcss-focus-within/3.0.0: + resolution: {integrity: sha512-W0APui8jQeBKbCGZudW37EeMCjDeVxKgiYfIIEo8Bdh5SpB9sxds/Iq8SEuzS0Q4YFOlG7EPFulbbxujpkrV2w==} + engines: {node: '>=6.0.0'} + dependencies: + postcss: 7.0.39 + dev: true + + /postcss-font-variant/4.0.1: + resolution: {integrity: sha512-I3ADQSTNtLTTd8uxZhtSOrTCQ9G4qUVKPjHiDk0bV75QSxXjVWiJVJ2VLdspGUi9fbW9BcjKJoRvxAH1pckqmA==} + dependencies: + postcss: 7.0.39 + dev: true + + /postcss-gap-properties/2.0.0: + resolution: {integrity: sha512-QZSqDaMgXCHuHTEzMsS2KfVDOq7ZFiknSpkrPJY6jmxbugUPTuSzs/vuE5I3zv0WAS+3vhrlqhijiprnuQfzmg==} + engines: {node: '>=6.0.0'} + dependencies: + postcss: 7.0.39 + dev: true + + /postcss-image-set-function/3.0.1: + resolution: {integrity: sha512-oPTcFFip5LZy8Y/whto91L9xdRHCWEMs3e1MdJxhgt4jy2WYXfhkng59fH5qLXSCPN8k4n94p1Czrfe5IOkKUw==} + engines: {node: '>=6.0.0'} + dependencies: + postcss: 7.0.39 + postcss-values-parser: 2.0.1 + dev: true + + /postcss-initial/3.0.4: + resolution: {integrity: sha512-3RLn6DIpMsK1l5UUy9jxQvoDeUN4gP939tDcKUHD/kM8SGSKbFAnvkpFpj3Bhtz3HGk1jWY5ZNWX6mPta5M9fg==} + dependencies: + postcss: 7.0.39 + dev: true + + /postcss-lab-function/2.0.1: + resolution: {integrity: sha512-whLy1IeZKY+3fYdqQFuDBf8Auw+qFuVnChWjmxm/UhHWqNHZx+B99EwxTvGYmUBqe3Fjxs4L1BoZTJmPu6usVg==} + engines: {node: '>=6.0.0'} + dependencies: + '@csstools/convert-colors': 1.4.0 + postcss: 7.0.39 + postcss-values-parser: 2.0.1 + dev: true + + /postcss-loader/4.3.0_gzaxsinx64nntyd3vmdqwl7coe: + resolution: {integrity: sha512-M/dSoIiNDOo8Rk0mUqoj4kpGq91gcxCfb9PoyZVdZ76/AuhxylHDYZblNE8o+EQ9AMSASeMFEKxZf5aU6wlx1Q==} + engines: {node: '>= 10.13.0'} + peerDependencies: + postcss: ^7.0.0 || ^8.0.1 + webpack: ^4.0.0 || ^5.0.0 + dependencies: + cosmiconfig: 7.0.1 + klona: 2.0.5 + loader-utils: 2.0.2 + postcss: 7.0.39 + schema-utils: 3.1.1 + semver: 7.3.7 + webpack: 4.46.0 + dev: true + + /postcss-logical/3.0.0: + resolution: {integrity: sha512-1SUKdJc2vuMOmeItqGuNaC+N8MzBWFWEkAnRnLpFYj1tGGa7NqyVBujfRtgNa2gXR+6RkGUiB2O5Vmh7E2RmiA==} + engines: {node: '>=6.0.0'} + dependencies: + postcss: 7.0.39 + dev: true + + /postcss-media-minmax/4.0.0: + resolution: {integrity: sha512-fo9moya6qyxsjbFAYl97qKO9gyre3qvbMnkOZeZwlsW6XYFsvs2DMGDlchVLfAd8LHPZDxivu/+qW2SMQeTHBw==} + engines: {node: '>=6.0.0'} + dependencies: + postcss: 7.0.39 + dev: true + + /postcss-merge-longhand/4.0.11: + resolution: {integrity: sha512-alx/zmoeXvJjp7L4mxEMjh8lxVlDFX1gqWHzaaQewwMZiVhLo42TEClKaeHbRf6J7j82ZOdTJ808RtN0ZOZwvw==} + engines: {node: '>=6.9.0'} + dependencies: + css-color-names: 0.0.4 + postcss: 7.0.39 + postcss-value-parser: 3.3.1 + stylehacks: 4.0.3 + dev: true + + /postcss-merge-rules/4.0.3: + resolution: {integrity: sha512-U7e3r1SbvYzO0Jr3UT/zKBVgYYyhAz0aitvGIYOYK5CPmkNih+WDSsS5tvPrJ8YMQYlEMvsZIiqmn7HdFUaeEQ==} + engines: {node: '>=6.9.0'} + dependencies: + browserslist: 4.20.2 + caniuse-api: 3.0.0 + cssnano-util-same-parent: 4.0.1 + postcss: 7.0.39 + postcss-selector-parser: 3.1.2 + vendors: 1.0.4 + dev: true + + /postcss-minify-font-values/4.0.2: + resolution: {integrity: sha512-j85oO6OnRU9zPf04+PZv1LYIYOprWm6IA6zkXkrJXyRveDEuQggG6tvoy8ir8ZwjLxLuGfNkCZEQG7zan+Hbtg==} + engines: {node: '>=6.9.0'} + dependencies: + postcss: 7.0.39 + postcss-value-parser: 3.3.1 + dev: true + + /postcss-minify-gradients/4.0.2: + resolution: {integrity: sha512-qKPfwlONdcf/AndP1U8SJ/uzIJtowHlMaSioKzebAXSG4iJthlWC9iSWznQcX4f66gIWX44RSA841HTHj3wK+Q==} + engines: {node: '>=6.9.0'} + dependencies: + cssnano-util-get-arguments: 4.0.0 + is-color-stop: 1.1.0 + postcss: 7.0.39 + postcss-value-parser: 3.3.1 + dev: true + + /postcss-minify-params/4.0.2: + resolution: {integrity: sha512-G7eWyzEx0xL4/wiBBJxJOz48zAKV2WG3iZOqVhPet/9geefm/Px5uo1fzlHu+DOjT+m0Mmiz3jkQzVHe6wxAWg==} + engines: {node: '>=6.9.0'} + dependencies: + alphanum-sort: 1.0.2 + browserslist: 4.20.2 + cssnano-util-get-arguments: 4.0.0 + postcss: 7.0.39 + postcss-value-parser: 3.3.1 + uniqs: 2.0.0 + dev: true + + /postcss-minify-selectors/4.0.2: + resolution: {integrity: sha512-D5S1iViljXBj9kflQo4YutWnJmwm8VvIsU1GeXJGiG9j8CIg9zs4voPMdQDUmIxetUOh60VilsNzCiAFTOqu3g==} + engines: {node: '>=6.9.0'} + dependencies: + alphanum-sort: 1.0.2 + has: 1.0.3 + postcss: 7.0.39 + postcss-selector-parser: 3.1.2 + dev: true + + /postcss-modules-extract-imports/2.0.0: + resolution: {integrity: sha512-LaYLDNS4SG8Q5WAWqIJgdHPJrDDr/Lv775rMBFUbgjTz6j34lUznACHcdRWroPvXANP2Vj7yNK57vp9eFqzLWQ==} + engines: {node: '>= 6'} + dependencies: + postcss: 7.0.39 + dev: true + + /postcss-modules-local-by-default/3.0.3: + resolution: {integrity: sha512-e3xDq+LotiGesympRlKNgaJ0PCzoUIdpH0dj47iWAui/kyTgh3CiAr1qP54uodmJhl6p9rN6BoNcdEDVJx9RDw==} + engines: {node: '>= 6'} + dependencies: + icss-utils: 4.1.1 + postcss: 7.0.39 + postcss-selector-parser: 6.0.10 + postcss-value-parser: 4.2.0 + dev: true + + /postcss-modules-scope/2.2.0: + resolution: {integrity: sha512-YyEgsTMRpNd+HmyC7H/mh3y+MeFWevy7V1evVhJWewmMbjDHIbZbOXICC2y+m1xI1UVfIT1HMW/O04Hxyu9oXQ==} + engines: {node: '>= 6'} + dependencies: + postcss: 7.0.39 + postcss-selector-parser: 6.0.10 + dev: true + + /postcss-modules-values/3.0.0: + resolution: {integrity: sha512-1//E5jCBrZ9DmRX+zCtmQtRSV6PV42Ix7Bzj9GbwJceduuf7IqP8MgeTXuRDHOWj2m0VzZD5+roFWDuU8RQjcg==} + dependencies: + icss-utils: 4.1.1 + postcss: 7.0.39 + dev: true + + /postcss-nesting/7.0.1: + resolution: {integrity: sha512-FrorPb0H3nuVq0Sff7W2rnc3SmIcruVC6YwpcS+k687VxyxO33iE1amna7wHuRVzM8vfiYofXSBHNAZ3QhLvYg==} + engines: {node: '>=6.0.0'} + dependencies: + postcss: 7.0.39 + dev: true + + /postcss-normalize-charset/4.0.1: + resolution: {integrity: sha512-gMXCrrlWh6G27U0hF3vNvR3w8I1s2wOBILvA87iNXaPvSNo5uZAMYsZG7XjCUf1eVxuPfyL4TJ7++SGZLc9A3g==} + engines: {node: '>=6.9.0'} + dependencies: + postcss: 7.0.39 + dev: true + + /postcss-normalize-display-values/4.0.2: + resolution: {integrity: sha512-3F2jcsaMW7+VtRMAqf/3m4cPFhPD3EFRgNs18u+k3lTJJlVe7d0YPO+bnwqo2xg8YiRpDXJI2u8A0wqJxMsQuQ==} + engines: {node: '>=6.9.0'} + dependencies: + cssnano-util-get-match: 4.0.0 + postcss: 7.0.39 + postcss-value-parser: 3.3.1 + dev: true + + /postcss-normalize-positions/4.0.2: + resolution: {integrity: sha512-Dlf3/9AxpxE+NF1fJxYDeggi5WwV35MXGFnnoccP/9qDtFrTArZ0D0R+iKcg5WsUd8nUYMIl8yXDCtcrT8JrdA==} + engines: {node: '>=6.9.0'} + dependencies: + cssnano-util-get-arguments: 4.0.0 + has: 1.0.3 + postcss: 7.0.39 + postcss-value-parser: 3.3.1 + dev: true + + /postcss-normalize-repeat-style/4.0.2: + resolution: {integrity: sha512-qvigdYYMpSuoFs3Is/f5nHdRLJN/ITA7huIoCyqqENJe9PvPmLhNLMu7QTjPdtnVf6OcYYO5SHonx4+fbJE1+Q==} + engines: {node: '>=6.9.0'} + dependencies: + cssnano-util-get-arguments: 4.0.0 + cssnano-util-get-match: 4.0.0 + postcss: 7.0.39 + postcss-value-parser: 3.3.1 + dev: true + + /postcss-normalize-string/4.0.2: + resolution: {integrity: sha512-RrERod97Dnwqq49WNz8qo66ps0swYZDSb6rM57kN2J+aoyEAJfZ6bMx0sx/F9TIEX0xthPGCmeyiam/jXif0eA==} + engines: {node: '>=6.9.0'} + dependencies: + has: 1.0.3 + postcss: 7.0.39 + postcss-value-parser: 3.3.1 + dev: true + + /postcss-normalize-timing-functions/4.0.2: + resolution: {integrity: sha512-acwJY95edP762e++00Ehq9L4sZCEcOPyaHwoaFOhIwWCDfik6YvqsYNxckee65JHLKzuNSSmAdxwD2Cud1Z54A==} + engines: {node: '>=6.9.0'} + dependencies: + cssnano-util-get-match: 4.0.0 + postcss: 7.0.39 + postcss-value-parser: 3.3.1 + dev: true + + /postcss-normalize-unicode/4.0.1: + resolution: {integrity: sha512-od18Uq2wCYn+vZ/qCOeutvHjB5jm57ToxRaMeNuf0nWVHaP9Hua56QyMF6fs/4FSUnVIw0CBPsU0K4LnBPwYwg==} + engines: {node: '>=6.9.0'} + dependencies: + browserslist: 4.20.2 + postcss: 7.0.39 + postcss-value-parser: 3.3.1 + dev: true + + /postcss-normalize-url/4.0.1: + resolution: {integrity: sha512-p5oVaF4+IHwu7VpMan/SSpmpYxcJMtkGppYf0VbdH5B6hN8YNmVyJLuY9FmLQTzY3fag5ESUUHDqM+heid0UVA==} + engines: {node: '>=6.9.0'} + dependencies: + is-absolute-url: 2.1.0 + normalize-url: 3.3.0 + postcss: 7.0.39 + postcss-value-parser: 3.3.1 + dev: true + + /postcss-normalize-whitespace/4.0.2: + resolution: {integrity: sha512-tO8QIgrsI3p95r8fyqKV+ufKlSHh9hMJqACqbv2XknufqEDhDvbguXGBBqxw9nsQoXWf0qOqppziKJKHMD4GtA==} + engines: {node: '>=6.9.0'} + dependencies: + postcss: 7.0.39 + postcss-value-parser: 3.3.1 + dev: true + + /postcss-ordered-values/4.1.2: + resolution: {integrity: sha512-2fCObh5UanxvSxeXrtLtlwVThBvHn6MQcu4ksNT2tsaV2Fg76R2CV98W7wNSlX+5/pFwEyaDwKLLoEV7uRybAw==} + engines: {node: '>=6.9.0'} + dependencies: + cssnano-util-get-arguments: 4.0.0 + postcss: 7.0.39 + postcss-value-parser: 3.3.1 + dev: true + + /postcss-overflow-shorthand/2.0.0: + resolution: {integrity: sha512-aK0fHc9CBNx8jbzMYhshZcEv8LtYnBIRYQD5i7w/K/wS9c2+0NSR6B3OVMu5y0hBHYLcMGjfU+dmWYNKH0I85g==} + engines: {node: '>=6.0.0'} + dependencies: + postcss: 7.0.39 + dev: true + + /postcss-page-break/2.0.0: + resolution: {integrity: sha512-tkpTSrLpfLfD9HvgOlJuigLuk39wVTbbd8RKcy8/ugV2bNBUW3xU+AIqyxhDrQr1VUj1RmyJrBn1YWrqUm9zAQ==} + dependencies: + postcss: 7.0.39 + dev: true + + /postcss-place/4.0.1: + resolution: {integrity: sha512-Zb6byCSLkgRKLODj/5mQugyuj9bvAAw9LqJJjgwz5cYryGeXfFZfSXoP1UfveccFmeq0b/2xxwcTEVScnqGxBg==} + engines: {node: '>=6.0.0'} + dependencies: + postcss: 7.0.39 + postcss-values-parser: 2.0.1 + dev: true + + /postcss-preset-env/6.7.1: + resolution: {integrity: sha512-rlRkgX9t0v2On33n7TK8pnkcYOATGQSv48J2RS8GsXhqtg+xk6AummHP88Y5mJo0TLJelBjePvSjScTNkj3+qw==} + engines: {node: '>=6.0.0'} + dependencies: + autoprefixer: 9.8.8 + browserslist: 4.20.2 + caniuse-lite: 1.0.30001332 + css-blank-pseudo: 0.1.4 + css-has-pseudo: 0.10.0 + css-prefers-color-scheme: 3.1.1 + cssdb: 4.4.0 + postcss: 7.0.39 + postcss-attribute-case-insensitive: 4.0.2 + postcss-color-functional-notation: 2.0.1 + postcss-color-gray: 5.0.0 + postcss-color-hex-alpha: 5.0.3 + postcss-color-mod-function: 3.0.3 + postcss-color-rebeccapurple: 4.0.1 + postcss-custom-media: 7.0.8 + postcss-custom-properties: 8.0.11 + postcss-custom-selectors: 5.1.2 + postcss-dir-pseudo-class: 5.0.0 + postcss-double-position-gradients: 1.0.0 + postcss-env-function: 2.0.2 + postcss-focus-visible: 4.0.0 + postcss-focus-within: 3.0.0 + postcss-font-variant: 4.0.1 + postcss-gap-properties: 2.0.0 + postcss-image-set-function: 3.0.1 + postcss-initial: 3.0.4 + postcss-lab-function: 2.0.1 + postcss-logical: 3.0.0 + postcss-media-minmax: 4.0.0 + postcss-nesting: 7.0.1 + postcss-overflow-shorthand: 2.0.0 + postcss-page-break: 2.0.0 + postcss-place: 4.0.1 + postcss-pseudo-class-any-link: 6.0.0 + postcss-replace-overflow-wrap: 3.0.0 + postcss-selector-matches: 4.0.0 + postcss-selector-not: 4.0.1 + dev: true + + /postcss-pseudo-class-any-link/6.0.0: + resolution: {integrity: sha512-lgXW9sYJdLqtmw23otOzrtbDXofUdfYzNm4PIpNE322/swES3VU9XlXHeJS46zT2onFO7V1QFdD4Q9LiZj8mew==} + engines: {node: '>=6.0.0'} + dependencies: + postcss: 7.0.39 + postcss-selector-parser: 5.0.0 + dev: true + + /postcss-reduce-initial/4.0.3: + resolution: {integrity: sha512-gKWmR5aUulSjbzOfD9AlJiHCGH6AEVLaM0AV+aSioxUDd16qXP1PCh8d1/BGVvpdWn8k/HiK7n6TjeoXN1F7DA==} + engines: {node: '>=6.9.0'} + dependencies: + browserslist: 4.20.2 + caniuse-api: 3.0.0 + has: 1.0.3 + postcss: 7.0.39 + dev: true + + /postcss-reduce-transforms/4.0.2: + resolution: {integrity: sha512-EEVig1Q2QJ4ELpJXMZR8Vt5DQx8/mo+dGWSR7vWXqcob2gQLyQGsionYcGKATXvQzMPn6DSN1vTN7yFximdIAg==} + engines: {node: '>=6.9.0'} + dependencies: + cssnano-util-get-match: 4.0.0 + has: 1.0.3 + postcss: 7.0.39 + postcss-value-parser: 3.3.1 + dev: true + + /postcss-replace-overflow-wrap/3.0.0: + resolution: {integrity: sha512-2T5hcEHArDT6X9+9dVSPQdo7QHzG4XKclFT8rU5TzJPDN7RIRTbO9c4drUISOVemLj03aezStHCR2AIcr8XLpw==} + dependencies: + postcss: 7.0.39 + dev: true + + /postcss-selector-matches/4.0.0: + resolution: {integrity: sha512-LgsHwQR/EsRYSqlwdGzeaPKVT0Ml7LAT6E75T8W8xLJY62CE4S/l03BWIt3jT8Taq22kXP08s2SfTSzaraoPww==} + dependencies: + balanced-match: 1.0.2 + postcss: 7.0.39 + dev: true + + /postcss-selector-not/4.0.1: + resolution: {integrity: sha512-YolvBgInEK5/79C+bdFMyzqTg6pkYqDbzZIST/PDMqa/o3qtXenD05apBG2jLgT0/BQ77d4U2UK12jWpilqMAQ==} + dependencies: + balanced-match: 1.0.2 + postcss: 7.0.39 + dev: true + + /postcss-selector-parser/3.1.2: + resolution: {integrity: sha512-h7fJ/5uWuRVyOtkO45pnt1Ih40CEleeyCHzipqAZO2e5H20g25Y48uYnFUiShvY4rZWNJ/Bib/KVPmanaCtOhA==} + engines: {node: '>=8'} + dependencies: + dot-prop: 5.3.0 + indexes-of: 1.0.1 + uniq: 1.0.1 + dev: true + + /postcss-selector-parser/5.0.0: + resolution: {integrity: sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==} + engines: {node: '>=4'} + dependencies: + cssesc: 2.0.0 + indexes-of: 1.0.1 + uniq: 1.0.1 + dev: true + + /postcss-selector-parser/6.0.10: + resolution: {integrity: sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==} + engines: {node: '>=4'} + dependencies: + cssesc: 3.0.0 + util-deprecate: 1.0.2 + dev: true + + /postcss-svgo/4.0.3: + resolution: {integrity: sha512-NoRbrcMWTtUghzuKSoIm6XV+sJdvZ7GZSc3wdBN0W19FTtp2ko8NqLsgoh/m9CzNhU3KLPvQmjIwtaNFkaFTvw==} + engines: {node: '>=6.9.0'} + dependencies: + postcss: 7.0.39 + postcss-value-parser: 3.3.1 + svgo: 1.3.2 + dev: true + + /postcss-unique-selectors/4.0.1: + resolution: {integrity: sha512-+JanVaryLo9QwZjKrmJgkI4Fn8SBgRO6WXQBJi7KiAVPlmxikB5Jzc4EvXMT2H0/m0RjrVVm9rGNhZddm/8Spg==} + engines: {node: '>=6.9.0'} + dependencies: + alphanum-sort: 1.0.2 + postcss: 7.0.39 + uniqs: 2.0.0 + dev: true + + /postcss-value-parser/3.3.1: + resolution: {integrity: sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==} + dev: true + + /postcss-value-parser/4.2.0: + resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==} + dev: true + + /postcss-values-parser/2.0.1: + resolution: {integrity: sha512-2tLuBsA6P4rYTNKCXYG/71C7j1pU6pK503suYOmn4xYrQIzW+opD+7FAFNuGSdZC/3Qfy334QbeMu7MEb8gOxg==} + engines: {node: '>=6.14.4'} + dependencies: + flatten: 1.0.3 + indexes-of: 1.0.1 + uniq: 1.0.1 + dev: true + + /postcss/7.0.39: + resolution: {integrity: sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==} + engines: {node: '>=6.0.0'} + dependencies: + picocolors: 0.2.1 + source-map: 0.6.1 + dev: true + + /preact-render-to-string/5.2.0: + resolution: {integrity: sha512-+RGwSW78Cl+NsZRUbFW1MGB++didsfqRk+IyRVTaqy+3OjtpKK/6HgBtfszUX0YXMfo41k2iaQSseAHGKEwrbg==} + peerDependencies: + preact: '>=10' + dependencies: + pretty-format: 3.8.0 + dev: true + + /prelude-ls/1.1.2: + resolution: {integrity: sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=} + engines: {node: '>= 0.8.0'} + dev: true + + /prelude-ls/1.2.1: + resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} + engines: {node: '>= 0.8.0'} + dev: true + + /prettier-linter-helpers/1.0.0: + resolution: {integrity: sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==} + engines: {node: '>=6.0.0'} + dependencies: + fast-diff: 1.2.0 + dev: true + + /prettier/2.3.0: + resolution: {integrity: sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w==} + engines: {node: '>=10.13.0'} + hasBin: true + dev: true + + /prettier/2.6.2: + resolution: {integrity: sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==} + engines: {node: '>=10.13.0'} + hasBin: true + dev: true + + /pretty-error/2.1.2: + resolution: {integrity: sha512-EY5oDzmsX5wvuynAByrmY0P0hcp+QpnAKbJng2A2MPjVKXCxrDSUkzghVJ4ZGPIv+JC4gX8fPUWscC0RtjsWGw==} + dependencies: + lodash: 4.17.21 + renderkid: 2.0.7 + dev: true + + /pretty-format/26.6.2: + resolution: {integrity: sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==} + engines: {node: '>= 10'} + dependencies: + '@jest/types': 26.6.2 + ansi-regex: 5.0.1 + ansi-styles: 4.3.0 + react-is: 17.0.2 + dev: true + + /pretty-format/27.5.1: + resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + ansi-regex: 5.0.1 + ansi-styles: 5.2.0 + react-is: 17.0.2 + dev: true + + /pretty-format/3.8.0: + resolution: {integrity: sha1-v77VbV6ad2ZF9LH/eqGjrE+jw4U=} + dev: true + + /pretty-hrtime/1.0.3: + resolution: {integrity: sha1-t+PqQkNaTJsnWdmeDyAesZWALuE=} + engines: {node: '>= 0.8'} + dev: true + + /prismjs/1.27.0: + resolution: {integrity: sha512-t13BGPUlFDR7wRB5kQDG4jjl7XeuH6jbJGt11JHPL96qwsEHNX2+68tFXqc1/k+/jALsbSWJKUOT/hcYAZ5LkA==} + engines: {node: '>=6'} + dev: true + + /process-nextick-args/2.0.1: + resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} + dev: true + + /process/0.11.10: + resolution: {integrity: sha1-czIwDoQBYb2j5podHZGn1LwW8YI=} + engines: {node: '>= 0.6.0'} + dev: true + + /progress/2.0.3: + resolution: {integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==} + engines: {node: '>=0.4.0'} + dev: true + + /promise-inflight/1.0.1: + resolution: {integrity: sha1-mEcocL8igTL8vdhoEputEsPAKeM=} + peerDependencies: + bluebird: '*' + peerDependenciesMeta: + bluebird: + optional: true + dev: true + + /promise.allsettled/1.0.5: + resolution: {integrity: sha512-tVDqeZPoBC0SlzJHzWGZ2NKAguVq2oiYj7gbggbiTvH2itHohijTp7njOUA0aQ/nl+0lr/r6egmhoYu63UZ/pQ==} + engines: {node: '>= 0.4'} + dependencies: + array.prototype.map: 1.0.4 + call-bind: 1.0.2 + define-properties: 1.1.3 + es-abstract: 1.19.5 + get-intrinsic: 1.1.1 + iterate-value: 1.0.2 + dev: true + + /promise.prototype.finally/3.1.3: + resolution: {integrity: sha512-EXRF3fC9/0gz4qkt/f5EP5iW4kj9oFpBICNpCNOb/52+8nlHIX07FPLbi/q4qYBQ1xZqivMzTpNQSnArVASolQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.3 + es-abstract: 1.19.5 + dev: true + + /prompts/2.4.2: + resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==} + engines: {node: '>= 6'} + dependencies: + kleur: 3.0.3 + sisteransi: 1.0.5 + dev: true + + /prop-types/15.8.1: + resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==} + dependencies: + loose-envify: 1.4.0 + object-assign: 4.1.1 + react-is: 16.13.1 + dev: true + + /property-information/5.6.0: + resolution: {integrity: sha512-YUHSPk+A30YPv+0Qf8i9Mbfe/C0hdPXk1s1jPVToV8pk8BQtpw10ct89Eo7OWkutrwqvT0eicAxlOg3dOAu8JA==} + dependencies: + xtend: 4.0.2 + dev: true + + /protocols/1.4.8: + resolution: {integrity: sha512-IgjKyaUSjsROSO8/D49Ab7hP8mJgTYcqApOqdPhLoPxAplXmkp+zRvsrSQjFn5by0rhm4VH0GAUELIPpx7B1yg==} + dev: true + + /protocols/2.0.1: + resolution: {integrity: sha512-/XJ368cyBJ7fzLMwLKv1e4vLxOju2MNAIokcr7meSaNcVbWz/CPcW22cP04mwxOErdA5mwjA8Q6w/cdAQxVn7Q==} + dev: true + + /proxy-addr/2.0.7: + resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==} + engines: {node: '>= 0.10'} + dependencies: + forwarded: 0.2.0 + ipaddr.js: 1.9.1 + dev: true + + /proxy-from-env/1.1.0: + resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} + dev: true + + /prr/1.0.1: + resolution: {integrity: sha1-0/wRS6BplaRexok/SEzrHXj19HY=} + dev: true + + /psl/1.8.0: + resolution: {integrity: sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==} + dev: true + + /public-encrypt/4.0.3: + resolution: {integrity: sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==} + dependencies: + bn.js: 4.12.0 + browserify-rsa: 4.1.0 + create-hash: 1.2.0 + parse-asn1: 5.1.6 + randombytes: 2.1.0 + safe-buffer: 5.2.1 + dev: true + + /pump/2.0.1: + resolution: {integrity: sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==} + dependencies: + end-of-stream: 1.4.4 + once: 1.4.0 + dev: true + + /pump/3.0.0: + resolution: {integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==} + dependencies: + end-of-stream: 1.4.4 + once: 1.4.0 + dev: true + + /pumpify/1.5.1: + resolution: {integrity: sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==} + dependencies: + duplexify: 3.7.1 + inherits: 2.0.4 + pump: 2.0.1 + dev: true + + /punycode/1.3.2: + resolution: {integrity: sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=} + dev: true + + /punycode/1.4.1: + resolution: {integrity: sha1-wNWmOycYgArY4esPpSachN1BhF4=} + dev: true + + /punycode/2.1.1: + resolution: {integrity: sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==} + engines: {node: '>=6'} + dev: true + + /puppeteer-core/13.7.0: + resolution: {integrity: sha512-rXja4vcnAzFAP1OVLq/5dWNfwBGuzcOARJ6qGV7oAZhnLmVRU8G5MsdeQEAOy332ZhkIOnn9jp15R89LKHyp2Q==} + engines: {node: '>=10.18.1'} + dependencies: + cross-fetch: 3.1.5 + debug: 4.3.4 + devtools-protocol: 0.0.981744 + extract-zip: 2.0.1 + https-proxy-agent: 5.0.1 + pkg-dir: 4.2.0 + progress: 2.0.3 + proxy-from-env: 1.1.0 + rimraf: 3.0.2 + tar-fs: 2.1.1 + unbzip2-stream: 1.4.3 + ws: 8.5.0 + transitivePeerDependencies: + - bufferutil + - encoding + - supports-color + - utf-8-validate + dev: true + + /puppeteer/14.0.0: + resolution: {integrity: sha512-Aj/cySGBMWpUYEWV0YOcwyhq5lOxuuiGScgdj/OvslAm/ydoywiI8OzAIXT4HzKmNTmzm/fKKHHtcsQa/fFgdw==} + engines: {node: '>=14.1.0'} + requiresBuild: true + dependencies: + cross-fetch: 3.1.5 + debug: 4.3.4 + devtools-protocol: 0.0.982423 + extract-zip: 2.0.1 + https-proxy-agent: 5.0.1 + pkg-dir: 4.2.0 + progress: 2.0.3 + proxy-from-env: 1.1.0 + rimraf: 3.0.2 + tar-fs: 2.1.1 + unbzip2-stream: 1.4.3 + ws: 8.6.0 + transitivePeerDependencies: + - bufferutil + - encoding + - supports-color + - utf-8-validate + dev: true + + /q/1.5.1: + resolution: {integrity: sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==} + engines: {node: '>=0.6.0', teleport: '>=0.2.0'} + dev: true + + /qs/6.10.3: + resolution: {integrity: sha512-wr7M2E0OFRfIfJZjKGieI8lBKb7fRCH4Fv5KNPEs7gJ8jadvotdsS08PzOKR7opXhZ/Xkjtt3WF9g38drmyRqQ==} + engines: {node: '>=0.6'} + dependencies: + side-channel: 1.0.4 + dev: true + + /qs/6.9.7: + resolution: {integrity: sha512-IhMFgUmuNpyRfxA90umL7ByLlgRXu6tIfKPpF5TmcfRLlLCckfP/g3IQmju6jjpu+Hh8rA+2p6A27ZSPOOHdKw==} + engines: {node: '>=0.6'} + dev: true + + /query-string/6.14.1: + resolution: {integrity: sha512-XDxAeVmpfu1/6IjyT/gXHOl+S0vQ9owggJ30hhWKdHAsNPOcasn5o9BW0eejZqL2e4vMjhAxoW3jVHcD6mbcYw==} + engines: {node: '>=6'} + dependencies: + decode-uri-component: 0.2.0 + filter-obj: 1.1.0 + split-on-first: 1.1.0 + strict-uri-encode: 2.0.0 + dev: true + + /querystring-es3/0.2.1: + resolution: {integrity: sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=} + engines: {node: '>=0.4.x'} + dev: true + + /querystring/0.2.0: + resolution: {integrity: sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=} + engines: {node: '>=0.4.x'} + deprecated: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. + dev: true + + /querystring/0.2.1: + resolution: {integrity: sha512-wkvS7mL/JMugcup3/rMitHmd9ecIGd2lhFhK9N3UUQ450h66d1r3Y9nvXzQAW1Lq+wyx61k/1pfKS5KuKiyEbg==} + engines: {node: '>=0.4.x'} + deprecated: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. + dev: true + + /queue-microtask/1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + dev: true + + /quick-lru/4.0.1: + resolution: {integrity: sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==} + engines: {node: '>=8'} + dev: true + + /quick-lru/5.1.1: + resolution: {integrity: sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==} + engines: {node: '>=10'} + dev: true + + /ramda/0.21.0: + resolution: {integrity: sha1-oAGr7bP/YQd9T/HVd9RN536NCjU=} + dev: true + + /randombytes/2.1.0: + resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==} + dependencies: + safe-buffer: 5.2.1 + dev: true + + /randomfill/1.0.4: + resolution: {integrity: sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==} + dependencies: + randombytes: 2.1.0 + safe-buffer: 5.2.1 + dev: true + + /range-parser/1.2.1: + resolution: {integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==} + engines: {node: '>= 0.6'} + dev: true + + /raw-body/2.4.3: + resolution: {integrity: sha512-UlTNLIcu0uzb4D2f4WltY6cVjLi+/jEN4lgEUj3E04tpMDpUlkBo/eSn6zou9hum2VMNpCCUone0O0WeJim07g==} + engines: {node: '>= 0.8'} + dependencies: + bytes: 3.1.2 + http-errors: 1.8.1 + iconv-lite: 0.4.24 + unpipe: 1.0.0 + dev: true + + /raw-loader/4.0.2_webpack@4.46.0: + resolution: {integrity: sha512-ZnScIV3ag9A4wPX/ZayxL/jZH+euYb6FcUinPcgiQW0+UBtEv0O6Q3lGd3cqJ+GHH+rksEv3Pj99oxJ3u3VIKA==} + engines: {node: '>= 10.13.0'} + peerDependencies: + webpack: ^4.0.0 || ^5.0.0 + dependencies: + loader-utils: 2.0.2 + schema-utils: 3.1.1 + webpack: 4.46.0 + dev: true + + /react-colorful/5.5.1: + resolution: {integrity: sha512-M1TJH2X3RXEt12sWkpa6hLc/bbYS0H6F4rIqjQZ+RxNBstpY67d9TrFXtqdZwhpmBXcCwEi7stKqFue3ZRkiOg==} + peerDependencies: + react: '>=16.8.0' + react-dom: '>=16.8.0' + dev: true + + /react-colorful/5.5.1_wcqkhtmu7mswc6yz4uyexck3ty: + resolution: {integrity: sha512-M1TJH2X3RXEt12sWkpa6hLc/bbYS0H6F4rIqjQZ+RxNBstpY67d9TrFXtqdZwhpmBXcCwEi7stKqFue3ZRkiOg==} + peerDependencies: + react: '>=16.8.0' + react-dom: '>=16.8.0' + dependencies: + react: 16.14.0 + react-dom: 16.14.0_react@16.14.0 + dev: true + + /react-dom/16.14.0_react@16.14.0: + resolution: {integrity: sha512-1gCeQXDLoIqMgqD3IO2Ah9bnf0w9kzhwN5q4FGnHZ67hBm9yePzB5JJAIQCc8x3pFnNlwFq4RidZggNAAkzWWw==} + peerDependencies: + react: ^16.14.0 + dependencies: + loose-envify: 1.4.0 + object-assign: 4.1.1 + prop-types: 15.8.1 + react: 16.14.0 + scheduler: 0.19.1 + dev: true + + /react-draggable/4.4.4: + resolution: {integrity: sha512-6e0WdcNLwpBx/YIDpoyd2Xb04PB0elrDrulKUgdrIlwuYvxh5Ok9M+F8cljm8kPXXs43PmMzek9RrB1b7mLMqA==} + peerDependencies: + react: '>= 16.3.0' + react-dom: '>= 16.3.0' + dependencies: + clsx: 1.1.1 + prop-types: 15.8.1 + dev: true + + /react-draggable/4.4.4_wcqkhtmu7mswc6yz4uyexck3ty: + resolution: {integrity: sha512-6e0WdcNLwpBx/YIDpoyd2Xb04PB0elrDrulKUgdrIlwuYvxh5Ok9M+F8cljm8kPXXs43PmMzek9RrB1b7mLMqA==} + peerDependencies: + react: '>= 16.3.0' + react-dom: '>= 16.3.0' + dependencies: + clsx: 1.1.1 + prop-types: 15.8.1 + react: 16.14.0 + react-dom: 16.14.0_react@16.14.0 + dev: true + + /react-element-to-jsx-string/14.3.4: + resolution: {integrity: sha512-t4ZwvV6vwNxzujDQ+37bspnLwA4JlgUPWhLjBJWsNIDceAf6ZKUTCjdm08cN6WeZ5pTMKiCJkmAYnpmR4Bm+dg==} + peerDependencies: + react: ^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1 + react-dom: ^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1 + dependencies: + '@base2/pretty-print-object': 1.0.1 + is-plain-object: 5.0.0 + react-is: 17.0.2 + dev: true + + /react-fast-compare/3.2.0: + resolution: {integrity: sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA==} + dev: true + + /react-helmet-async/1.3.0: + resolution: {integrity: sha512-9jZ57/dAn9t3q6hneQS0wukqC2ENOBgMNVEhb/ZG9ZSxUetzVIw4iAmEU38IaVg3QGYauQPhSeUTuIUtFglWpg==} + peerDependencies: + react: ^16.6.0 || ^17.0.0 || ^18.0.0 + react-dom: ^16.6.0 || ^17.0.0 || ^18.0.0 + dependencies: + '@babel/runtime': 7.17.9 + invariant: 2.2.4 + prop-types: 15.8.1 + react-fast-compare: 3.2.0 + shallowequal: 1.1.0 + dev: true + + /react-helmet-async/1.3.0_wcqkhtmu7mswc6yz4uyexck3ty: + resolution: {integrity: sha512-9jZ57/dAn9t3q6hneQS0wukqC2ENOBgMNVEhb/ZG9ZSxUetzVIw4iAmEU38IaVg3QGYauQPhSeUTuIUtFglWpg==} + peerDependencies: + react: ^16.6.0 || ^17.0.0 || ^18.0.0 + react-dom: ^16.6.0 || ^17.0.0 || ^18.0.0 + dependencies: + '@babel/runtime': 7.17.9 + invariant: 2.2.4 + prop-types: 15.8.1 + react: 16.14.0 + react-dom: 16.14.0_react@16.14.0 + react-fast-compare: 3.2.0 + shallowequal: 1.1.0 + dev: true + + /react-inspector/5.1.1: + resolution: {integrity: sha512-GURDaYzoLbW8pMGXwYPDBIv6nqei4kK7LPRZ9q9HCZF54wqXz/dnylBp/kfE9XmekBhHvLDdcYeyIwSrvtOiWg==} + peerDependencies: + react: ^16.8.4 || ^17.0.0 + dependencies: + '@babel/runtime': 7.17.9 + is-dom: 1.1.0 + prop-types: 15.8.1 + dev: true + + /react-is/16.13.1: + resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} + dev: true + + /react-is/17.0.2: + resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==} + dev: true + + /react-popper-tooltip/3.1.1: + resolution: {integrity: sha512-EnERAnnKRptQBJyaee5GJScWNUKQPDD2ywvzZyUjst/wj5U64C8/CnSYLNEmP2hG0IJ3ZhtDxE8oDN+KOyavXQ==} + peerDependencies: + react: ^16.6.0 || ^17.0.0 + react-dom: ^16.6.0 || ^17.0.0 + dependencies: + '@babel/runtime': 7.17.9 + '@popperjs/core': 2.11.5 + react-popper: 2.2.5_@popperjs+core@2.11.5 + dev: true + + /react-popper-tooltip/3.1.1_wcqkhtmu7mswc6yz4uyexck3ty: + resolution: {integrity: sha512-EnERAnnKRptQBJyaee5GJScWNUKQPDD2ywvzZyUjst/wj5U64C8/CnSYLNEmP2hG0IJ3ZhtDxE8oDN+KOyavXQ==} + peerDependencies: + react: ^16.6.0 || ^17.0.0 + react-dom: ^16.6.0 || ^17.0.0 + dependencies: + '@babel/runtime': 7.17.9 + '@popperjs/core': 2.11.5 + react: 16.14.0 + react-dom: 16.14.0_react@16.14.0 + react-popper: 2.2.5_njjygoguvlni7ebtf7brehhjve + dev: true + + /react-popper/2.2.5_@popperjs+core@2.11.5: + resolution: {integrity: sha512-kxGkS80eQGtLl18+uig1UIf9MKixFSyPxglsgLBxlYnyDf65BiY9B3nZSc6C9XUNDgStROB0fMQlTEz1KxGddw==} + peerDependencies: + '@popperjs/core': ^2.0.0 + react: ^16.8.0 || ^17 + dependencies: + '@popperjs/core': 2.11.5 + react-fast-compare: 3.2.0 + warning: 4.0.3 + dev: true + + /react-popper/2.2.5_njjygoguvlni7ebtf7brehhjve: + resolution: {integrity: sha512-kxGkS80eQGtLl18+uig1UIf9MKixFSyPxglsgLBxlYnyDf65BiY9B3nZSc6C9XUNDgStROB0fMQlTEz1KxGddw==} + peerDependencies: + '@popperjs/core': ^2.0.0 + react: ^16.8.0 || ^17 + dependencies: + '@popperjs/core': 2.11.5 + react: 16.14.0 + react-fast-compare: 3.2.0 + warning: 4.0.3 + dev: true + + /react-router-dom/6.3.0: + resolution: {integrity: sha512-uaJj7LKytRxZNQV8+RbzJWnJ8K2nPsOOEuX7aQstlMZKQT0164C+X2w6bnkqU3sjtLvpd5ojrezAyfZ1+0sStw==} + peerDependencies: + react: '>=16.8' + react-dom: '>=16.8' + dependencies: + history: 5.3.0 + react-router: 6.3.0 + dev: true + + /react-router-dom/6.3.0_wcqkhtmu7mswc6yz4uyexck3ty: + resolution: {integrity: sha512-uaJj7LKytRxZNQV8+RbzJWnJ8K2nPsOOEuX7aQstlMZKQT0164C+X2w6bnkqU3sjtLvpd5ojrezAyfZ1+0sStw==} + peerDependencies: + react: '>=16.8' + react-dom: '>=16.8' + dependencies: + history: 5.3.0 + react: 16.14.0 + react-dom: 16.14.0_react@16.14.0 + react-router: 6.3.0_react@16.14.0 + dev: true + + /react-router/6.3.0: + resolution: {integrity: sha512-7Wh1DzVQ+tlFjkeo+ujvjSqSJmkt1+8JO+T5xklPlgrh70y7ogx75ODRW0ThWhY7S+6yEDks8TYrtQe/aoboBQ==} + peerDependencies: + react: '>=16.8' + dependencies: + history: 5.3.0 + dev: true + + /react-router/6.3.0_react@16.14.0: + resolution: {integrity: sha512-7Wh1DzVQ+tlFjkeo+ujvjSqSJmkt1+8JO+T5xklPlgrh70y7ogx75ODRW0ThWhY7S+6yEDks8TYrtQe/aoboBQ==} + peerDependencies: + react: '>=16.8' + dependencies: + history: 5.3.0 + react: 16.14.0 + dev: true + + /react-shallow-renderer/16.15.0: + resolution: {integrity: sha512-oScf2FqQ9LFVQgA73vr86xl2NaOIX73rh+YFqcOp68CWj56tSfgtGKrEbyhCj0rSijyG9M1CYprTh39fBi5hzA==} + peerDependencies: + react: ^16.0.0 || ^17.0.0 || ^18.0.0 + dependencies: + object-assign: 4.1.1 + react-is: 17.0.2 + dev: true + + /react-sizeme/3.0.2: + resolution: {integrity: sha512-xOIAOqqSSmKlKFJLO3inBQBdymzDuXx4iuwkNcJmC96jeiOg5ojByvL+g3MW9LPEsojLbC6pf68zOfobK8IPlw==} + dependencies: + element-resize-detector: 1.2.4 + invariant: 2.2.4 + shallowequal: 1.1.0 + throttle-debounce: 3.0.1 + dev: true + + /react-syntax-highlighter/13.5.3: + resolution: {integrity: sha512-crPaF+QGPeHNIblxxCdf2Lg936NAHKhNhuMzRL3F9ct6aYXL3NcZtCL0Rms9+qVo6Y1EQLdXGypBNSbPL/r+qg==} + peerDependencies: + react: '>= 0.14.0' + dependencies: + '@babel/runtime': 7.17.9 + highlight.js: 10.7.3 + lowlight: 1.20.0 + prismjs: 1.27.0 + refractor: 3.6.0 + dev: true + + /react-syntax-highlighter/13.5.3_react@16.14.0: + resolution: {integrity: sha512-crPaF+QGPeHNIblxxCdf2Lg936NAHKhNhuMzRL3F9ct6aYXL3NcZtCL0Rms9+qVo6Y1EQLdXGypBNSbPL/r+qg==} + peerDependencies: + react: '>= 0.14.0' + dependencies: + '@babel/runtime': 7.17.9 + highlight.js: 10.7.3 + lowlight: 1.20.0 + prismjs: 1.27.0 + react: 16.14.0 + refractor: 3.6.0 + dev: true + + /react-test-renderer/17.0.2: + resolution: {integrity: sha512-yaQ9cB89c17PUb0x6UfWRs7kQCorVdHlutU1boVPEsB8IDZH6n9tHxMacc3y0JoXOJUsZb/t/Mb8FUWMKaM7iQ==} + peerDependencies: + react: 17.0.2 + dependencies: + object-assign: 4.1.1 + react-is: 17.0.2 + react-shallow-renderer: 16.15.0 + scheduler: 0.20.2 + dev: true + + /react-textarea-autosize/8.3.3: + resolution: {integrity: sha512-2XlHXK2TDxS6vbQaoPbMOfQ8GK7+irc2fVK6QFIcC8GOnH3zI/v481n+j1L0WaPVvKxwesnY93fEfH++sus2rQ==} + engines: {node: '>=10'} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + dependencies: + '@babel/runtime': 7.17.9 + use-composed-ref: 1.2.1 + use-latest: 1.2.0 + transitivePeerDependencies: + - '@types/react' + dev: true + + /react-textarea-autosize/8.3.3_react@16.14.0: + resolution: {integrity: sha512-2XlHXK2TDxS6vbQaoPbMOfQ8GK7+irc2fVK6QFIcC8GOnH3zI/v481n+j1L0WaPVvKxwesnY93fEfH++sus2rQ==} + engines: {node: '>=10'} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + dependencies: + '@babel/runtime': 7.17.9 + react: 16.14.0 + use-composed-ref: 1.2.1_react@16.14.0 + use-latest: 1.2.0_react@16.14.0 + transitivePeerDependencies: + - '@types/react' + dev: true + + /react/16.14.0: + resolution: {integrity: sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g==} + engines: {node: '>=0.10.0'} + dependencies: + loose-envify: 1.4.0 + object-assign: 4.1.1 + prop-types: 15.8.1 + dev: true + + /react/17.0.2: + resolution: {integrity: sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==} + engines: {node: '>=0.10.0'} + dependencies: + loose-envify: 1.4.0 + object-assign: 4.1.1 + dev: true + + /read-pkg-up/3.0.0: + resolution: {integrity: sha512-YFzFrVvpC6frF1sz8psoHDBGF7fLPc+llq/8NB43oagqWkx8ar5zYtsTORtOjw9W2RHLpWP+zTWwBvf1bCmcSw==} + engines: {node: '>=4'} + dependencies: + find-up: 2.1.0 + read-pkg: 3.0.0 + dev: true + + /read-pkg-up/7.0.1: + resolution: {integrity: sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==} + engines: {node: '>=8'} + dependencies: + find-up: 4.1.0 + read-pkg: 5.2.0 + type-fest: 0.8.1 + dev: true + + /read-pkg-up/8.0.0: + resolution: {integrity: sha512-snVCqPczksT0HS2EC+SxUndvSzn6LRCwpfSvLrIfR5BKDQQZMaI6jPRC9dYvYFDRAuFEAnkwww8kBBNE/3VvzQ==} + engines: {node: '>=12'} + dependencies: + find-up: 5.0.0 + read-pkg: 6.0.0 + type-fest: 1.4.0 + dev: true + + /read-pkg/3.0.0: + resolution: {integrity: sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA==} + engines: {node: '>=4'} + dependencies: + load-json-file: 4.0.0 + normalize-package-data: 2.5.0 + path-type: 3.0.0 + dev: true + + /read-pkg/5.2.0: + resolution: {integrity: sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==} + engines: {node: '>=8'} + dependencies: + '@types/normalize-package-data': 2.4.1 + normalize-package-data: 2.5.0 + parse-json: 5.2.0 + type-fest: 0.6.0 + dev: true + + /read-pkg/6.0.0: + resolution: {integrity: sha512-X1Fu3dPuk/8ZLsMhEj5f4wFAF0DWoK7qhGJvgaijocXxBmSToKfbFtqbxMO7bVjNA1dmE5huAzjXj/ey86iw9Q==} + engines: {node: '>=12'} + dependencies: + '@types/normalize-package-data': 2.4.1 + normalize-package-data: 3.0.3 + parse-json: 5.2.0 + type-fest: 1.4.0 + dev: true + + /readable-stream/2.3.7: + resolution: {integrity: sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==} + dependencies: + core-util-is: 1.0.3 + inherits: 2.0.4 + isarray: 1.0.0 + process-nextick-args: 2.0.1 + safe-buffer: 5.1.2 + string_decoder: 1.1.1 + util-deprecate: 1.0.2 + dev: true + + /readable-stream/3.6.0: + resolution: {integrity: sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==} + engines: {node: '>= 6'} + dependencies: + inherits: 2.0.4 + string_decoder: 1.3.0 + util-deprecate: 1.0.2 + dev: true + + /readdirp/2.2.1: + resolution: {integrity: sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==} + engines: {node: '>=0.10'} + dependencies: + graceful-fs: 4.2.10 + micromatch: 3.1.10 + readable-stream: 2.3.7 + transitivePeerDependencies: + - supports-color + dev: true + optional: true + + /readdirp/3.6.0: + resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} + engines: {node: '>=8.10.0'} + dependencies: + picomatch: 2.3.1 + dev: true + + /redent/3.0.0: + resolution: {integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==} + engines: {node: '>=8'} + dependencies: + indent-string: 4.0.0 + strip-indent: 3.0.0 + dev: true + + /redent/4.0.0: + resolution: {integrity: sha512-tYkDkVVtYkSVhuQ4zBgfvciymHaeuel+zFKXShfDnFP5SyVEP7qo70Rf1jTOTCx3vGNAbnEi/xFkcfQVMIBWag==} + engines: {node: '>=12'} + dependencies: + indent-string: 5.0.0 + strip-indent: 4.0.0 + dev: true + + /refractor/3.6.0: + resolution: {integrity: sha512-MY9W41IOWxxk31o+YvFCNyNzdkc9M20NoZK5vq6jkv4I/uh2zkWcfudj0Q1fovjUQJrNewS9NMzeTtqPf+n5EA==} + dependencies: + hastscript: 6.0.0 + parse-entities: 2.0.0 + prismjs: 1.27.0 + dev: true + + /regenerate-unicode-properties/10.0.1: + resolution: {integrity: sha512-vn5DU6yg6h8hP/2OkQo3K7uVILvY4iu0oI4t3HFa81UPkhGJwkRwM10JEc3upjdhHjs/k8GJY1sRBhk5sr69Bw==} + engines: {node: '>=4'} + dependencies: + regenerate: 1.4.2 + dev: true + + /regenerate/1.4.2: + resolution: {integrity: sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==} + dev: true + + /regenerator-runtime/0.13.9: + resolution: {integrity: sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==} + dev: true + + /regenerator-transform/0.15.0: + resolution: {integrity: sha512-LsrGtPmbYg19bcPHwdtmXwbW+TqNvtY4riE3P83foeHRroMbH6/2ddFBfab3t7kbzc7v7p4wbkIecHImqt0QNg==} + dependencies: + '@babel/runtime': 7.17.9 + dev: true + + /regex-not/1.0.2: + resolution: {integrity: sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==} + engines: {node: '>=0.10.0'} + dependencies: + extend-shallow: 3.0.2 + safe-regex: 1.1.0 + dev: true + + /regexp.prototype.flags/1.4.2: + resolution: {integrity: sha512-Ynz8fTQW5/1elh+jWU2EDDzeoNbD0OQ0R+D1VJU5ATOkUaro4A9YEkdN2ODQl/8UQFPPpZNw91fOcLFamM7Pww==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.3 + dev: true + + /regexpp/3.2.0: + resolution: {integrity: sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==} + engines: {node: '>=8'} + dev: true + + /regexpu-core/5.0.1: + resolution: {integrity: sha512-CriEZlrKK9VJw/xQGJpQM5rY88BtuL8DM+AEwvcThHilbxiTAy8vq4iJnd2tqq8wLmjbGZzP7ZcKFjbGkmEFrw==} + engines: {node: '>=4'} + dependencies: + regenerate: 1.4.2 + regenerate-unicode-properties: 10.0.1 + regjsgen: 0.6.0 + regjsparser: 0.8.4 + unicode-match-property-ecmascript: 2.0.0 + unicode-match-property-value-ecmascript: 2.0.0 + dev: true + + /regjsgen/0.6.0: + resolution: {integrity: sha512-ozE883Uigtqj3bx7OhL1KNbCzGyW2NQZPl6Hs09WTvCuZD5sTI4JY58bkbQWa/Y9hxIsvJ3M8Nbf7j54IqeZbA==} + dev: true + + /regjsparser/0.8.4: + resolution: {integrity: sha512-J3LABycON/VNEu3abOviqGHuB/LOtOQj8SKmfP9anY5GfAVw/SPjwzSjxGjbZXIxbGfqTHtJw58C2Li/WkStmA==} + hasBin: true + dependencies: + jsesc: 0.5.0 + dev: true + + /relateurl/0.2.7: + resolution: {integrity: sha1-VNvzd+UUQKypCkzSdGANP/LYiKk=} + engines: {node: '>= 0.10'} + dev: true + + /remark-external-links/8.0.0: + resolution: {integrity: sha512-5vPSX0kHoSsqtdftSHhIYofVINC8qmp0nctkeU9YoJwV3YfiBRiI6cbFRJ0oI/1F9xS+bopXG0m2KS8VFscuKA==} + dependencies: + extend: 3.0.2 + is-absolute-url: 3.0.3 + mdast-util-definitions: 4.0.0 + space-separated-tokens: 1.1.5 + unist-util-visit: 2.0.3 + dev: true + + /remark-footnotes/2.0.0: + resolution: {integrity: sha512-3Clt8ZMH75Ayjp9q4CorNeyjwIxHFcTkaektplKGl2A1jNGEUey8cKL0ZC5vJwfcD5GFGsNLImLG/NGzWIzoMQ==} + dev: true + + /remark-mdx/1.6.22: + resolution: {integrity: sha512-phMHBJgeV76uyFkH4rvzCftLfKCr2RZuF+/gmVcaKrpsihyzmhXjA0BEMDaPTXG5y8qZOKPVo83NAOX01LPnOQ==} + dependencies: + '@babel/core': 7.12.9 + '@babel/helper-plugin-utils': 7.10.4 + '@babel/plugin-proposal-object-rest-spread': 7.12.1_@babel+core@7.12.9 + '@babel/plugin-syntax-jsx': 7.12.1_@babel+core@7.12.9 + '@mdx-js/util': 1.6.22 + is-alphabetical: 1.0.4 + remark-parse: 8.0.3 + unified: 9.2.0 + transitivePeerDependencies: + - supports-color + dev: true + + /remark-parse/8.0.3: + resolution: {integrity: sha512-E1K9+QLGgggHxCQtLt++uXltxEprmWzNfg+MxpfHsZlrddKzZ/hZyWHDbK3/Ap8HJQqYJRXP+jHczdL6q6i85Q==} + dependencies: + ccount: 1.1.0 + collapse-white-space: 1.0.6 + is-alphabetical: 1.0.4 + is-decimal: 1.0.4 + is-whitespace-character: 1.0.4 + is-word-character: 1.0.4 + markdown-escapes: 1.0.4 + parse-entities: 2.0.0 + repeat-string: 1.6.1 + state-toggle: 1.0.3 + trim: 0.0.1 + trim-trailing-lines: 1.1.4 + unherit: 1.1.3 + unist-util-remove-position: 2.0.1 + vfile-location: 3.2.0 + xtend: 4.0.2 + dev: true + + /remark-slug/6.1.0: + resolution: {integrity: sha512-oGCxDF9deA8phWvxFuyr3oSJsdyUAxMFbA0mZ7Y1Sas+emILtO+e5WutF9564gDsEN4IXaQXm5pFo6MLH+YmwQ==} + dependencies: + github-slugger: 1.4.0 + mdast-util-to-string: 1.1.0 + unist-util-visit: 2.0.3 + dev: true + + /remark-squeeze-paragraphs/4.0.0: + resolution: {integrity: sha512-8qRqmL9F4nuLPIgl92XUuxI3pFxize+F1H0e/W3llTk0UsjJaj01+RrirkMw7P21RKe4X6goQhYRSvNWX+70Rw==} + dependencies: + mdast-squeeze-paragraphs: 4.0.0 + dev: true + + /remove-trailing-separator/1.1.0: + resolution: {integrity: sha1-wkvOKig62tW8P1jg1IJJuSN52O8=} + dev: true + + /renderkid/2.0.7: + resolution: {integrity: sha512-oCcFyxaMrKsKcTY59qnCAtmDVSLfPbrv6A3tVbPdFMMrv5jaK10V6m40cKsoPNhAqN6rmHW9sswW4o3ruSrwUQ==} + dependencies: + css-select: 4.3.0 + dom-converter: 0.2.0 + htmlparser2: 6.1.0 + lodash: 4.17.21 + strip-ansi: 3.0.1 + dev: true + + /repeat-element/1.1.4: + resolution: {integrity: sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==} + engines: {node: '>=0.10.0'} + dev: true + + /repeat-string/1.6.1: + resolution: {integrity: sha1-jcrkcOHIirwtYA//Sndihtp15jc=} + engines: {node: '>=0.10'} + dev: true + + /require-directory/2.1.1: + resolution: {integrity: sha1-jGStX9MNqxyXbiNE/+f3kqam30I=} + engines: {node: '>=0.10.0'} + dev: true + + /requireindex/1.2.0: + resolution: {integrity: sha512-L9jEkOi3ASd9PYit2cwRfyppc9NoABujTP8/5gFcbERmo5jUoAKovIC3fsF17pkTnGsrByysqX+Kxd2OTNI1ww==} + engines: {node: '>=0.10.5'} + dev: true + + /requires-port/1.0.0: + resolution: {integrity: sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=} + dev: true + + /resolve-cwd/3.0.0: + resolution: {integrity: sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==} + engines: {node: '>=8'} + dependencies: + resolve-from: 5.0.0 + dev: true + + /resolve-dir/1.0.1: + resolution: {integrity: sha1-eaQGRMNivoLybv/nOcm7U4IEb0M=} + engines: {node: '>=0.10.0'} + dependencies: + expand-tilde: 2.0.2 + global-modules: 1.0.0 + dev: true + + /resolve-from/3.0.0: + resolution: {integrity: sha1-six699nWiBvItuZTM17rywoYh0g=} + engines: {node: '>=4'} + dev: true + + /resolve-from/4.0.0: + resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} + engines: {node: '>=4'} + dev: true + + /resolve-from/5.0.0: + resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} + engines: {node: '>=8'} + dev: true + + /resolve-global/1.0.0: + resolution: {integrity: sha512-zFa12V4OLtT5XUX/Q4VLvTfBf+Ok0SPc1FNGM/z9ctUdiU618qwKpWnd0CHs3+RqROfyEg/DhuHbMWYqcgljEw==} + engines: {node: '>=8'} + dependencies: + global-dirs: 0.1.1 + dev: true + + /resolve-url/0.2.1: + resolution: {integrity: sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=} + deprecated: https://github.com/lydell/resolve-url#deprecated + dev: true + + /resolve.exports/1.1.0: + resolution: {integrity: sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ==} + engines: {node: '>=10'} + dev: true + + /resolve/1.22.0: + resolution: {integrity: sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==} + hasBin: true + dependencies: + is-core-module: 2.8.1 + path-parse: 1.0.7 + supports-preserve-symlinks-flag: 1.0.0 + dev: true + + /restore-cursor/2.0.0: + resolution: {integrity: sha1-n37ih/gv0ybU/RYpI9YhKe7g368=} + engines: {node: '>=4'} + dependencies: + onetime: 2.0.1 + signal-exit: 3.0.7 + dev: true + + /restore-cursor/3.1.0: + resolution: {integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==} + engines: {node: '>=8'} + dependencies: + onetime: 5.1.2 + signal-exit: 3.0.7 + dev: true + + /ret/0.1.15: + resolution: {integrity: sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==} + engines: {node: '>=0.12'} + dev: true + + /reusify/1.0.4: + resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + dev: true + + /rgb-regex/1.0.1: + resolution: {integrity: sha1-wODWiC3w4jviVKR16O3UGRX+rrE=} + dev: true + + /rgba-regex/1.0.0: + resolution: {integrity: sha1-QzdOLiyglosO8VI0YLfXMP8i7rM=} + dev: true + + /rimraf/2.7.1: + resolution: {integrity: sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==} + hasBin: true + dependencies: + glob: 7.2.0 + dev: true + + /rimraf/3.0.2: + resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} + hasBin: true + dependencies: + glob: 7.2.0 + dev: true + + /ripemd160/2.0.2: + resolution: {integrity: sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==} + dependencies: + hash-base: 3.1.0 + inherits: 2.0.4 + dev: true + + /rollup-plugin-swc/0.2.1_se5dfsysqsuwchop2hfe5dxcvm: + resolution: {integrity: sha512-wWRYt9tC0aIBvRQHNnVtwJ6DRPDj9XYpOAcOyFB11sKSkR/R+NAmbrjBACCPNVmZcxg6joV29wXgb5mU1DI7eA==} + peerDependencies: + '@swc/core': '>=1.0' + rollup: '>=1.5.0' + dependencies: + '@rollup/pluginutils': 4.2.1 + '@swc/core': 1.2.165 + rollup: 2.70.1 + dev: true + + /rollup-plugin-terser/7.0.2_rollup@2.70.1: + resolution: {integrity: sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==} + peerDependencies: + rollup: ^2.0.0 + dependencies: + '@babel/code-frame': 7.16.7 + jest-worker: 26.6.2 + rollup: 2.70.1 + serialize-javascript: 4.0.0 + terser: 5.12.1 + dev: true + + /rollup/2.70.1: + resolution: {integrity: sha512-CRYsI5EuzLbXdxC6RnYhOuRdtz4bhejPMSWjsFLfVM/7w/85n2szZv6yExqUXsBdz5KT8eoubeyDUDjhLHEslA==} + engines: {node: '>=10.0.0'} + hasBin: true + optionalDependencies: + fsevents: 2.3.2 + dev: true + + /rsvp/4.8.5: + resolution: {integrity: sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==} + engines: {node: 6.* || >= 7.*} + dev: true + + /run-async/2.4.1: + resolution: {integrity: sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==} + engines: {node: '>=0.12.0'} + dev: true + + /run-parallel/1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + dependencies: + queue-microtask: 1.2.3 + dev: true + + /run-queue/1.0.3: + resolution: {integrity: sha1-6Eg5bwV9Ij8kOGkkYY4laUFh7Ec=} + dependencies: + aproba: 1.2.0 + dev: true + + /rxjs/6.6.7: + resolution: {integrity: sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==} + engines: {npm: '>=2.0.0'} + dependencies: + tslib: 1.14.1 + dev: true + + /rxjs/7.5.5: + resolution: {integrity: sha512-sy+H0pQofO95VDmFLzyaw9xNJU4KTRSwQIGM6+iG3SypAtCiLDzpeG8sJrNCWn2Up9km+KhkvTdbkrdy+yzZdw==} + dependencies: + tslib: 2.3.1 + dev: true + + /safe-buffer/5.1.1: + resolution: {integrity: sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==} + dev: true + + /safe-buffer/5.1.2: + resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==} + dev: true + + /safe-buffer/5.2.1: + resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} + dev: true + + /safe-regex/1.1.0: + resolution: {integrity: sha1-QKNmnzsHfR6UPURinhV91IAjvy4=} + dependencies: + ret: 0.1.15 + dev: true + + /safer-buffer/2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + dev: true + + /sane/4.1.0: + resolution: {integrity: sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA==} + engines: {node: 6.* || 8.* || >= 10.*} + deprecated: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added + hasBin: true + dependencies: + '@cnakazawa/watch': 1.0.4 + anymatch: 2.0.0 + capture-exit: 2.0.0 + exec-sh: 0.3.6 + execa: 1.0.0 + fb-watchman: 2.0.1 + micromatch: 3.1.10 + minimist: 1.2.6 + walker: 1.0.8 + transitivePeerDependencies: + - supports-color + dev: true + + /sass-loader/10.2.1_sass@1.50.1: + resolution: {integrity: sha512-RRvWl+3K2LSMezIsd008ErK4rk6CulIMSwrcc2aZvjymUgKo/vjXGp1rSWmfTUX7bblEOz8tst4wBwWtCGBqKA==} + engines: {node: '>= 10.13.0'} + peerDependencies: + fibers: '>= 3.1.0' + node-sass: ^4.0.0 || ^5.0.0 || ^6.0.0 + sass: ^1.3.0 + webpack: ^4.36.0 || ^5.0.0 + peerDependenciesMeta: + fibers: + optional: true + node-sass: + optional: true + sass: + optional: true + dependencies: + klona: 2.0.5 + loader-utils: 2.0.2 + neo-async: 2.6.2 + sass: 1.50.1 + schema-utils: 3.1.1 + semver: 7.3.7 + dev: true + + /sass/1.50.1: + resolution: {integrity: sha512-noTnY41KnlW2A9P8sdwESpDmo+KBNkukI1i8+hOK3footBUcohNHtdOJbckp46XO95nuvcHDDZ+4tmOnpK3hjw==} + engines: {node: '>=12.0.0'} + hasBin: true + dependencies: + chokidar: 3.5.3 + immutable: 4.0.0 + source-map-js: 1.0.2 + dev: true + + /sax/1.2.4: + resolution: {integrity: sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==} + dev: true + + /saxes/5.0.1: + resolution: {integrity: sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==} + engines: {node: '>=10'} + dependencies: + xmlchars: 2.2.0 + dev: true + + /scheduler/0.19.1: + resolution: {integrity: sha512-n/zwRWRYSUj0/3g/otKDRPMh6qv2SYMWNq85IEa8iZyAv8od9zDYpGSnpBEjNgcMNq6Scbu5KfIPxNF72R/2EA==} + dependencies: + loose-envify: 1.4.0 + object-assign: 4.1.1 + dev: true + + /scheduler/0.20.2: + resolution: {integrity: sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==} + dependencies: + loose-envify: 1.4.0 + object-assign: 4.1.1 + dev: true + + /schema-utils/1.0.0: + resolution: {integrity: sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==} + engines: {node: '>= 4'} + dependencies: + ajv: 6.12.6 + ajv-errors: 1.0.1_ajv@6.12.6 + ajv-keywords: 3.5.2_ajv@6.12.6 + dev: true + + /schema-utils/2.7.0: + resolution: {integrity: sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A==} + engines: {node: '>= 8.9.0'} + dependencies: + '@types/json-schema': 7.0.11 + ajv: 6.12.6 + ajv-keywords: 3.5.2_ajv@6.12.6 + dev: true + + /schema-utils/2.7.1: + resolution: {integrity: sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==} + engines: {node: '>= 8.9.0'} + dependencies: + '@types/json-schema': 7.0.11 + ajv: 6.12.6 + ajv-keywords: 3.5.2_ajv@6.12.6 + dev: true + + /schema-utils/3.1.1: + resolution: {integrity: sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==} + engines: {node: '>= 10.13.0'} + dependencies: + '@types/json-schema': 7.0.11 + ajv: 6.12.6 + ajv-keywords: 3.5.2_ajv@6.12.6 + dev: true + + /secure-compare/3.0.1: + resolution: {integrity: sha1-8aAymzCLIh+uN7mXTz1XjQypmeM=} + dev: true + + /semver/5.7.1: + resolution: {integrity: sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==} + hasBin: true + dev: true + + /semver/6.3.0: + resolution: {integrity: sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==} + hasBin: true + dev: true + + /semver/7.0.0: + resolution: {integrity: sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==} + hasBin: true + dev: true + + /semver/7.3.5: + resolution: {integrity: sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==} + engines: {node: '>=10'} + hasBin: true + dependencies: + lru-cache: 6.0.0 + dev: true + + /semver/7.3.7: + resolution: {integrity: sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==} + engines: {node: '>=10'} + hasBin: true + dependencies: + lru-cache: 6.0.0 + dev: true + + /send/0.17.2: + resolution: {integrity: sha512-UJYB6wFSJE3G00nEivR5rgWp8c2xXvJ3OPWPhmuteU0IKj8nKbG3DrjiOmLwpnHGYWAVwA69zmTm++YG0Hmwww==} + engines: {node: '>= 0.8.0'} + dependencies: + debug: 2.6.9 + depd: 1.1.2 + destroy: 1.0.4 + encodeurl: 1.0.2 + escape-html: 1.0.3 + etag: 1.8.1 + fresh: 0.5.2 + http-errors: 1.8.1 + mime: 1.6.0 + ms: 2.1.3 + on-finished: 2.3.0 + range-parser: 1.2.1 + statuses: 1.5.0 + transitivePeerDependencies: + - supports-color + dev: true + + /serialize-javascript/4.0.0: + resolution: {integrity: sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==} + dependencies: + randombytes: 2.1.0 + dev: true + + /serialize-javascript/5.0.1: + resolution: {integrity: sha512-SaaNal9imEO737H2c05Og0/8LUXG7EnsZyMa8MzkmuHoELfT6txuj0cMqRj6zfPKnmQ1yasR4PCJc8x+M4JSPA==} + dependencies: + randombytes: 2.1.0 + dev: true + + /serialize-javascript/6.0.0: + resolution: {integrity: sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==} + dependencies: + randombytes: 2.1.0 + dev: true + + /serve-favicon/2.5.0: + resolution: {integrity: sha1-k10kDN/g9YBTB/3+ln2IlCosvPA=} + engines: {node: '>= 0.8.0'} + dependencies: + etag: 1.8.1 + fresh: 0.5.2 + ms: 2.1.1 + parseurl: 1.3.3 + safe-buffer: 5.1.1 + dev: true + + /serve-static/1.14.2: + resolution: {integrity: sha512-+TMNA9AFxUEGuC0z2mevogSnn9MXKb4fa7ngeRMJaaGv8vTwnIEkKi+QGvPt33HSnf8pRS+WGM0EbMtCJLKMBQ==} + engines: {node: '>= 0.8.0'} + dependencies: + encodeurl: 1.0.2 + escape-html: 1.0.3 + parseurl: 1.3.3 + send: 0.17.2 + transitivePeerDependencies: + - supports-color + dev: true + + /set-blocking/2.0.0: + resolution: {integrity: sha1-BF+XgtARrppoA93TgrJDkrPYkPc=} + dev: true + + /set-value/2.0.1: + resolution: {integrity: sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==} + engines: {node: '>=0.10.0'} + dependencies: + extend-shallow: 2.0.1 + is-extendable: 0.1.1 + is-plain-object: 2.0.4 + split-string: 3.1.0 + dev: true + + /setimmediate/1.0.5: + resolution: {integrity: sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=} + dev: true + + /setprototypeof/1.2.0: + resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} + dev: true + + /sha.js/2.4.11: + resolution: {integrity: sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==} + hasBin: true + dependencies: + inherits: 2.0.4 + safe-buffer: 5.2.1 + dev: true + + /shallow-clone/3.0.1: + resolution: {integrity: sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==} + engines: {node: '>=8'} + dependencies: + kind-of: 6.0.3 + dev: true + + /shallowequal/1.1.0: + resolution: {integrity: sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==} + dev: true + + /shebang-command/1.2.0: + resolution: {integrity: sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==} + engines: {node: '>=0.10.0'} + dependencies: + shebang-regex: 1.0.0 + dev: true + + /shebang-command/2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + dependencies: + shebang-regex: 3.0.0 + dev: true + + /shebang-regex/1.0.0: + resolution: {integrity: sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==} + engines: {node: '>=0.10.0'} + dev: true + + /shebang-regex/3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + dev: true + + /side-channel/1.0.4: + resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==} + dependencies: + call-bind: 1.0.2 + get-intrinsic: 1.1.1 + object-inspect: 1.12.0 + dev: true + + /signal-exit/3.0.7: + resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} + dev: true + + /simple-git-hooks/2.7.0: + resolution: {integrity: sha512-nQe6ASMO9zn5/htIrU37xEIHGr9E6wikXelLbOeTcfsX2O++DHaVug7RSQoq+kO7DvZTH37WA5gW49hN9HTDmQ==} + hasBin: true + requiresBuild: true + dev: true + + /simple-github-release/1.0.0: + resolution: {integrity: sha512-Hf55EbQfNdah15ECPL1v+8VxTqszvG3Sy8CV72lInZsd0kbB/jnSfxXh32hN22OTYLMdpQKfEoiA/WLN52w/gA==} + engines: {node: '>=14'} + hasBin: true + dependencies: + '@octokit/rest': 18.12.0 + '@types/git-url-parse': 9.0.1 + argue-cli: 2.0.0 + git-url-parse: 11.6.0 + lilconfig: 2.0.5 + new-github-release-url: 2.0.0 + open: 8.4.0 + picocolors: 1.0.0 + transitivePeerDependencies: + - encoding + dev: true + + /simple-swizzle/0.2.2: + resolution: {integrity: sha1-pNprY1/8zMoz9w0Xy5JZLeleVXo=} + dependencies: + is-arrayish: 0.3.2 + dev: true + + /sisteransi/1.0.5: + resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} + dev: true + + /size-limit/7.0.8: + resolution: {integrity: sha512-3h76c9E0e/nNhYLSR7IBI/bSoXICeo7EYkYjlyVqNIsu7KvN/PQmMbIXeyd2QKIF8iZKhaiZQoXLkGWbyPDtvQ==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + hasBin: true + dependencies: + bytes-iec: 3.1.1 + chokidar: 3.5.3 + ci-job-number: 1.2.2 + globby: 11.1.0 + lilconfig: 2.0.5 + mkdirp: 1.0.4 + nanospinner: 1.1.0 + picocolors: 1.0.0 + dev: true + + /slash/2.0.0: + resolution: {integrity: sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==} + engines: {node: '>=6'} + dev: true + + /slash/3.0.0: + resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} + engines: {node: '>=8'} + dev: true + + /snapdragon-node/2.1.1: + resolution: {integrity: sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==} + engines: {node: '>=0.10.0'} + dependencies: + define-property: 1.0.0 + isobject: 3.0.1 + snapdragon-util: 3.0.1 + dev: true + + /snapdragon-util/3.0.1: + resolution: {integrity: sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==} + engines: {node: '>=0.10.0'} + dependencies: + kind-of: 3.2.2 + dev: true + + /snapdragon/0.8.2: + resolution: {integrity: sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==} + engines: {node: '>=0.10.0'} + dependencies: + base: 0.11.2 + debug: 2.6.9 + define-property: 0.2.5 + extend-shallow: 2.0.1 + map-cache: 0.2.2 + source-map: 0.5.7 + source-map-resolve: 0.5.3 + use: 3.1.1 + transitivePeerDependencies: + - supports-color + dev: true + + /source-list-map/2.0.1: + resolution: {integrity: sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==} + dev: true + + /source-map-js/1.0.2: + resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} + engines: {node: '>=0.10.0'} + dev: true + + /source-map-resolve/0.5.3: + resolution: {integrity: sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==} + deprecated: See https://github.com/lydell/source-map-resolve#deprecated + dependencies: + atob: 2.1.2 + decode-uri-component: 0.2.0 + resolve-url: 0.2.1 + source-map-url: 0.4.1 + urix: 0.1.0 + dev: true + + /source-map-resolve/0.6.0: + resolution: {integrity: sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==} + deprecated: See https://github.com/lydell/source-map-resolve#deprecated + dependencies: + atob: 2.1.2 + decode-uri-component: 0.2.0 + dev: true + + /source-map-support/0.5.21: + resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} + dependencies: + buffer-from: 1.1.2 + source-map: 0.6.1 + dev: true + + /source-map-url/0.4.1: + resolution: {integrity: sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==} + deprecated: See https://github.com/lydell/source-map-url#deprecated + dev: true + + /source-map/0.5.7: + resolution: {integrity: sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==} + engines: {node: '>=0.10.0'} + dev: true + + /source-map/0.6.1: + resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} + engines: {node: '>=0.10.0'} + dev: true + + /source-map/0.7.3: + resolution: {integrity: sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==} + engines: {node: '>= 8'} + dev: true + + /space-separated-tokens/1.1.5: + resolution: {integrity: sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==} + dev: true + + /spdx-correct/3.1.1: + resolution: {integrity: sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==} + dependencies: + spdx-expression-parse: 3.0.1 + spdx-license-ids: 3.0.11 + dev: true + + /spdx-exceptions/2.3.0: + resolution: {integrity: sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==} + dev: true + + /spdx-expression-parse/3.0.1: + resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==} + dependencies: + spdx-exceptions: 2.3.0 + spdx-license-ids: 3.0.11 + dev: true + + /spdx-license-ids/3.0.11: + resolution: {integrity: sha512-Ctl2BrFiM0X3MANYgj3CkygxhRmr9mi6xhejbdO960nF6EDJApTYpn0BQnDKlnNBULKiCN1n3w9EBkHK8ZWg+g==} + dev: true + + /split-on-first/1.1.0: + resolution: {integrity: sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==} + engines: {node: '>=6'} + dev: true + + /split-string/3.1.0: + resolution: {integrity: sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==} + engines: {node: '>=0.10.0'} + dependencies: + extend-shallow: 3.0.2 + dev: true + + /split/1.0.1: + resolution: {integrity: sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==} + dependencies: + through: 2.3.8 + dev: true + + /split2/3.2.2: + resolution: {integrity: sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==} + dependencies: + readable-stream: 3.6.0 + dev: true + + /sprintf-js/1.0.3: + resolution: {integrity: sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=} + dev: true + + /ssim.js/3.5.0: + resolution: {integrity: sha512-Aj6Jl2z6oDmgYFFbQqK7fght19bXdOxY7Tj03nF+03M9gCBAjeIiO8/PlEGMfKDwYpw4q6iBqVq2YuREorGg/g==} + dev: true + + /ssri/6.0.2: + resolution: {integrity: sha512-cepbSq/neFK7xB6A50KHN0xHDotYzq58wWCa5LeWqnPrHG8GzfEjO/4O8kpmcGW+oaxkvhEJCWgbgNk4/ZV93Q==} + dependencies: + figgy-pudding: 3.5.2 + dev: true + + /ssri/8.0.1: + resolution: {integrity: sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==} + engines: {node: '>= 8'} + dependencies: + minipass: 3.1.6 + dev: true + + /stable/0.1.8: + resolution: {integrity: sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==} + dev: true + + /stack-utils/2.0.5: + resolution: {integrity: sha512-xrQcmYhOsn/1kX+Vraq+7j4oE2j/6BFscZ0etmYg81xuM8Gq0022Pxb8+IqgOFUIaxHs0KaSb7T1+OegiNrNFA==} + engines: {node: '>=10'} + dependencies: + escape-string-regexp: 2.0.0 + dev: true + + /standard-version/9.5.0: + resolution: {integrity: sha512-3zWJ/mmZQsOaO+fOlsa0+QK90pwhNd042qEcw6hKFNoLFs7peGyvPffpEBbK/DSGPbyOvli0mUIFv5A4qTjh2Q==} + engines: {node: '>=10'} + hasBin: true + dependencies: + chalk: 2.4.2 + conventional-changelog: 3.1.25 + conventional-changelog-config-spec: 2.1.0 + conventional-changelog-conventionalcommits: 4.6.3 + conventional-recommended-bump: 6.1.0 + detect-indent: 6.0.0 + detect-newline: 3.1.0 + dotgitignore: 2.1.0 + figures: 3.2.0 + find-up: 5.0.0 + git-semver-tags: 4.1.1 + semver: 7.3.7 + stringify-package: 1.0.1 + yargs: 16.2.0 + dev: true + + /state-toggle/1.0.3: + resolution: {integrity: sha512-d/5Z4/2iiCnHw6Xzghyhb+GcmF89bxwgXG60wjIiZaxnymbyOmI8Hk4VqHXiVVp6u2ysaskFfXg3ekCj4WNftQ==} + dev: true + + /static-extend/0.1.2: + resolution: {integrity: sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=} + engines: {node: '>=0.10.0'} + dependencies: + define-property: 0.2.5 + object-copy: 0.1.0 + dev: true + + /statuses/1.5.0: + resolution: {integrity: sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=} + engines: {node: '>= 0.6'} + dev: true + + /store2/2.13.2: + resolution: {integrity: sha512-CMtO2Uneg3SAz/d6fZ/6qbqqQHi2ynq6/KzMD/26gTkiEShCcpqFfTHgOxsE0egAq6SX3FmN4CeSqn8BzXQkJg==} + dev: true + + /stream-browserify/2.0.2: + resolution: {integrity: sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==} + dependencies: + inherits: 2.0.4 + readable-stream: 2.3.7 + dev: true + + /stream-each/1.2.3: + resolution: {integrity: sha512-vlMC2f8I2u/bZGqkdfLQW/13Zihpej/7PmSiMQsbYddxuTsJp8vRe2x2FvVExZg7FaOds43ROAuFJwPR4MTZLw==} + dependencies: + end-of-stream: 1.4.4 + stream-shift: 1.0.1 + dev: true + + /stream-http/2.8.3: + resolution: {integrity: sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw==} + dependencies: + builtin-status-codes: 3.0.0 + inherits: 2.0.4 + readable-stream: 2.3.7 + to-arraybuffer: 1.0.1 + xtend: 4.0.2 + dev: true + + /stream-shift/1.0.1: + resolution: {integrity: sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==} + dev: true + + /strict-uri-encode/2.0.0: + resolution: {integrity: sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==} + engines: {node: '>=4'} + dev: true + + /string-length/4.0.2: + resolution: {integrity: sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==} + engines: {node: '>=10'} + dependencies: + char-regex: 1.0.2 + strip-ansi: 6.0.1 + dev: true + + /string-width/2.1.1: + resolution: {integrity: sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==} + engines: {node: '>=4'} + dependencies: + is-fullwidth-code-point: 2.0.0 + strip-ansi: 4.0.0 + dev: true + + /string-width/4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + dev: true + + /string.prototype.matchall/4.0.7: + resolution: {integrity: sha512-f48okCX7JiwVi1NXCVWcFnZgADDC/n2vePlQ/KUCNqCikLLilQvwjMO8+BHVKvgzH0JB0J9LEPgxOGT02RoETg==} + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.3 + es-abstract: 1.19.5 + get-intrinsic: 1.1.1 + has-symbols: 1.0.3 + internal-slot: 1.0.3 + regexp.prototype.flags: 1.4.2 + side-channel: 1.0.4 + dev: true + + /string.prototype.padend/3.1.3: + resolution: {integrity: sha512-jNIIeokznm8SD/TZISQsZKYu7RJyheFNt84DUPrh482GC8RVp2MKqm2O5oBRdGxbDQoXrhhWtPIWQOiy20svUg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.3 + es-abstract: 1.19.5 + dev: true + + /string.prototype.padstart/3.1.3: + resolution: {integrity: sha512-NZydyOMtYxpTjGqp0VN5PYUF/tsU15yDMZnUdj16qRUIUiMJkHHSDElYyQFrMu+/WloTpA7MQSiADhBicDfaoA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.3 + es-abstract: 1.19.5 + dev: true + + /string.prototype.trimend/1.0.4: + resolution: {integrity: sha512-y9xCjw1P23Awk8EvTpcyL2NIr1j7wJ39f+k6lvRnSMz+mz9CGz9NYPelDk42kOz6+ql8xjfK8oYzy3jAP5QU5A==} + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.3 + dev: true + + /string.prototype.trimstart/1.0.4: + resolution: {integrity: sha512-jh6e984OBfvxS50tdY2nRZnoC5/mLFKOREQfw8t5yytkoUsJRNxvI/E39qu1sD0OtWI3OC0XgKSmcWwziwYuZw==} + dependencies: + call-bind: 1.0.2 + define-properties: 1.1.3 + dev: true + + /string_decoder/1.1.1: + resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==} + dependencies: + safe-buffer: 5.1.2 + dev: true + + /string_decoder/1.3.0: + resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} + dependencies: + safe-buffer: 5.2.1 + dev: true + + /stringify-package/1.0.1: + resolution: {integrity: sha512-sa4DUQsYciMP1xhKWGuFM04fB0LG/9DlluZoSVywUMRNvzid6XucHK0/90xGxRoHrAaROrcHK1aPKaijCtSrhg==} + dev: true + + /strip-ansi/3.0.1: + resolution: {integrity: sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=} + engines: {node: '>=0.10.0'} + dependencies: + ansi-regex: 2.1.1 + dev: true + + /strip-ansi/4.0.0: + resolution: {integrity: sha1-qEeQIusaw2iocTibY1JixQXuNo8=} + engines: {node: '>=4'} + dependencies: + ansi-regex: 3.0.1 + dev: true + + /strip-ansi/5.2.0: + resolution: {integrity: sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==} + engines: {node: '>=6'} + dependencies: + ansi-regex: 4.1.1 + dev: true + + /strip-ansi/6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + dependencies: + ansi-regex: 5.0.1 + dev: true + + /strip-bom/3.0.0: + resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} + engines: {node: '>=4'} + dev: true + + /strip-bom/4.0.0: + resolution: {integrity: sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==} + engines: {node: '>=8'} + dev: true + + /strip-eof/1.0.0: + resolution: {integrity: sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=} + engines: {node: '>=0.10.0'} + dev: true + + /strip-final-newline/2.0.0: + resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==} + engines: {node: '>=6'} + dev: true + + /strip-indent/3.0.0: + resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} + engines: {node: '>=8'} + dependencies: + min-indent: 1.0.1 + dev: true + + /strip-indent/4.0.0: + resolution: {integrity: sha512-mnVSV2l+Zv6BLpSD/8V87CW/y9EmmbYzGCIavsnsI6/nwn26DwffM/yztm30Z/I2DY9wdS3vXVCMnHDgZaVNoA==} + engines: {node: '>=12'} + dependencies: + min-indent: 1.0.1 + dev: true + + /strip-json-comments/3.0.1: + resolution: {integrity: sha512-VTyMAUfdm047mwKl+u79WIdrZxtFtn+nBxHeb844XBQ9uMNTuTHdx2hc5RiAJYqwTj3wc/xe5HLSdJSkJ+WfZw==} + engines: {node: '>=8'} + dev: true + + /strip-json-comments/3.1.1: + resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} + engines: {node: '>=8'} + dev: true + + /style-loader/1.3.0_webpack@4.46.0: + resolution: {integrity: sha512-V7TCORko8rs9rIqkSrlMfkqA63DfoGBBJmK1kKGCcSi+BWb4cqz0SRsnp4l6rU5iwOEd0/2ePv68SV22VXon4Q==} + engines: {node: '>= 8.9.0'} + peerDependencies: + webpack: ^4.0.0 || ^5.0.0 + dependencies: + loader-utils: 2.0.2 + schema-utils: 2.7.1 + webpack: 4.46.0 + dev: true + + /style-to-object/0.3.0: + resolution: {integrity: sha512-CzFnRRXhzWIdItT3OmF8SQfWyahHhjq3HwcMNCNLn+N7klOOqPjMeG/4JSu77D7ypZdGvSzvkrbyeTMizz2VrA==} + dependencies: + inline-style-parser: 0.1.1 + dev: true + + /stylehacks/4.0.3: + resolution: {integrity: sha512-7GlLk9JwlElY4Y6a/rmbH2MhVlTyVmiJd1PfTCqFaIBEGMYNsrO/v3SeGTdhBThLg4Z+NbOk/qFMwCa+J+3p/g==} + engines: {node: '>=6.9.0'} + dependencies: + browserslist: 4.20.2 + postcss: 7.0.39 + postcss-selector-parser: 3.1.2 + dev: true + + /supports-color/2.0.0: + resolution: {integrity: sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=} + engines: {node: '>=0.8.0'} + dev: true + + /supports-color/5.5.0: + resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} + engines: {node: '>=4'} + dependencies: + has-flag: 3.0.0 + dev: true + + /supports-color/7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} + dependencies: + has-flag: 4.0.0 + dev: true + + /supports-color/8.1.1: + resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} + engines: {node: '>=10'} + dependencies: + has-flag: 4.0.0 + dev: true + + /supports-hyperlinks/2.2.0: + resolution: {integrity: sha512-6sXEzV5+I5j8Bmq9/vUphGRM/RJNT9SCURJLjwfOg51heRtguGWDzcaBlgAzKhQa0EVNpPEKzQuBwZ8S8WaCeQ==} + engines: {node: '>=8'} + dependencies: + has-flag: 4.0.0 + supports-color: 7.2.0 + dev: true + + /supports-preserve-symlinks-flag/1.0.0: + resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} + engines: {node: '>= 0.4'} + dev: true + + /svgo/1.3.2: + resolution: {integrity: sha512-yhy/sQYxR5BkC98CY7o31VGsg014AKLEPxdfhora76l36hD9Rdy5NZA/Ocn6yayNPgSamYdtX2rFJdcv07AYVw==} + engines: {node: '>=4.0.0'} + deprecated: This SVGO version is no longer supported. Upgrade to v2.x.x. + hasBin: true + dependencies: + chalk: 2.4.2 + coa: 2.0.2 + css-select: 2.1.0 + css-select-base-adapter: 0.1.1 + css-tree: 1.0.0-alpha.37 + csso: 4.2.0 + js-yaml: 3.14.1 + mkdirp: 0.5.6 + object.values: 1.1.5 + sax: 1.2.4 + stable: 0.1.8 + unquote: 1.1.1 + util.promisify: 1.0.0 + dev: true + + /swc-loader/0.2.3_@swc+core@1.2.165: + resolution: {integrity: sha512-D1p6XXURfSPleZZA/Lipb3A8pZ17fP4NObZvFCDjK/OKljroqDpPmsBdTraWhVBqUNpcWBQY1imWdoPScRlQ7A==} + peerDependencies: + '@swc/core': ^1.2.147 + webpack: '>=2' + dependencies: + '@swc/core': 1.2.165 + dev: true + + /symbol-tree/3.2.4: + resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==} + dev: true + + /symbol.prototype.description/1.0.5: + resolution: {integrity: sha512-x738iXRYsrAt9WBhRCVG5BtIC3B7CUkFwbHW2zOvGtwM33s7JjrCDyq8V0zgMYVb5ymsL8+qkzzpANH63CPQaQ==} + engines: {node: '>= 0.11.15'} + dependencies: + call-bind: 1.0.2 + get-symbol-description: 1.0.0 + has-symbols: 1.0.3 + object.getownpropertydescriptors: 2.1.3 + dev: true + + /synchronous-promise/2.0.15: + resolution: {integrity: sha512-k8uzYIkIVwmT+TcglpdN50pS2y1BDcUnBPK9iJeGu0Pl1lOI8pD6wtzgw91Pjpe+RxtTncw32tLxs/R0yNL2Mg==} + dev: true + + /tapable/1.1.3: + resolution: {integrity: sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==} + engines: {node: '>=6'} + dev: true + + /tapable/2.2.1: + resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==} + engines: {node: '>=6'} + dev: true + + /tar-fs/2.1.1: + resolution: {integrity: sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==} + dependencies: + chownr: 1.1.4 + mkdirp-classic: 0.5.3 + pump: 3.0.0 + tar-stream: 2.2.0 + dev: true + + /tar-stream/2.2.0: + resolution: {integrity: sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==} + engines: {node: '>=6'} + dependencies: + bl: 4.1.0 + end-of-stream: 1.4.4 + fs-constants: 1.0.0 + inherits: 2.0.4 + readable-stream: 3.6.0 + dev: true + + /tar/6.1.11: + resolution: {integrity: sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==} + engines: {node: '>= 10'} + dependencies: + chownr: 2.0.0 + fs-minipass: 2.1.0 + minipass: 3.1.6 + minizlib: 2.1.2 + mkdirp: 1.0.4 + yallist: 4.0.0 + dev: true + + /telejson/5.3.3: + resolution: {integrity: sha512-PjqkJZpzEggA9TBpVtJi1LVptP7tYtXB6rEubwlHap76AMjzvOdKX41CxyaW7ahhzDU1aftXnMCx5kAPDZTQBA==} + dependencies: + '@types/is-function': 1.0.1 + global: 4.4.0 + is-function: 1.0.2 + is-regex: 1.1.4 + is-symbol: 1.0.4 + isobject: 4.0.0 + lodash: 4.17.21 + memoizerific: 1.11.3 + dev: true + + /terminal-link/2.1.1: + resolution: {integrity: sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==} + engines: {node: '>=8'} + dependencies: + ansi-escapes: 4.3.2 + supports-hyperlinks: 2.2.0 + dev: true + + /terser-webpack-plugin/1.4.5_webpack@4.46.0: + resolution: {integrity: sha512-04Rfe496lN8EYruwi6oPQkG0vo8C+HT49X687FZnpPF0qMAIHONI6HEXYPKDOE8e5HjXTyKfqRd/agHtH0kOtw==} + engines: {node: '>= 6.9.0'} + peerDependencies: + webpack: ^4.0.0 + dependencies: + cacache: 12.0.4 + find-cache-dir: 2.1.0 + is-wsl: 1.1.0 + schema-utils: 1.0.0 + serialize-javascript: 4.0.0 + source-map: 0.6.1 + terser: 4.8.0 + webpack: 4.46.0 + webpack-sources: 1.4.3 + worker-farm: 1.7.0 + dev: true + + /terser-webpack-plugin/4.2.3_webpack@4.46.0: + resolution: {integrity: sha512-jTgXh40RnvOrLQNgIkwEKnQ8rmHjHK4u+6UBEi+W+FPmvb+uo+chJXntKe7/3lW5mNysgSWD60KyesnhW8D6MQ==} + engines: {node: '>= 10.13.0'} + peerDependencies: + webpack: ^4.0.0 || ^5.0.0 + dependencies: + cacache: 15.3.0 + find-cache-dir: 3.3.2 + jest-worker: 26.6.2 + p-limit: 3.1.0 + schema-utils: 3.1.1 + serialize-javascript: 5.0.1 + source-map: 0.6.1 + terser: 5.12.1 + webpack: 4.46.0 + webpack-sources: 1.4.3 + transitivePeerDependencies: + - bluebird + dev: true + + /terser-webpack-plugin/5.3.3_b36iqc4l7ttzvjzp6fwwxjlkse: + resolution: {integrity: sha512-Fx60G5HNYknNTNQnzQ1VePRuu89ZVYWfjRAeT5rITuCY/1b08s49e5kSQwHDirKZWuoKOBRFS98EUUoZ9kLEwQ==} + engines: {node: '>= 10.13.0'} + peerDependencies: + '@swc/core': '*' + esbuild: '*' + uglify-js: '*' + webpack: ^5.1.0 + peerDependenciesMeta: + '@swc/core': + optional: true + esbuild: + optional: true + uglify-js: + optional: true + dependencies: + '@jridgewell/trace-mapping': 0.3.14 + '@swc/core': 1.2.165 + jest-worker: 27.5.1 + schema-utils: 3.1.1 + serialize-javascript: 6.0.0 + terser: 5.12.1 + webpack: 5.73.0_@swc+core@1.2.165 + dev: true + + /terser/4.8.0: + resolution: {integrity: sha512-EAPipTNeWsb/3wLPeup1tVPaXfIaU68xMnVdPafIL1TV05OhASArYyIfFvnvJCNrR2NIOvDVNNTFRa+Re2MWyw==} + engines: {node: '>=6.0.0'} + hasBin: true + dependencies: + acorn: 8.7.1 + commander: 2.20.3 + source-map: 0.6.1 + source-map-support: 0.5.21 + dev: true + + /terser/5.12.1: + resolution: {integrity: sha512-NXbs+7nisos5E+yXwAD+y7zrcTkMqb0dEJxIGtSKPdCBzopf7ni4odPul2aechpV7EXNvOudYOX2bb5tln1jbQ==} + engines: {node: '>=10'} + hasBin: true + dependencies: + acorn: 8.7.1 + commander: 2.20.3 + source-map: 0.7.3 + source-map-support: 0.5.21 + dev: true + + /test-exclude/6.0.0: + resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==} + engines: {node: '>=8'} + dependencies: + '@istanbuljs/schema': 0.1.3 + glob: 7.2.0 + minimatch: 3.1.2 + dev: true + + /text-extensions/1.9.0: + resolution: {integrity: sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ==} + engines: {node: '>=0.10'} + dev: true + + /text-table/0.2.0: + resolution: {integrity: sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=} + dev: true + + /throat/6.0.1: + resolution: {integrity: sha512-8hmiGIJMDlwjg7dlJ4yKGLK8EsYqKgPWbG3b4wjJddKNwc7N7Dpn08Df4szr/sZdMVeOstrdYSsqzX6BYbcB+w==} + dev: true + + /throttle-debounce/3.0.1: + resolution: {integrity: sha512-dTEWWNu6JmeVXY0ZYoPuH5cRIwc0MeGbJwah9KUNYSJwommQpCzTySTpEe8Gs1J23aeWEuAobe4Ag7EHVt/LOg==} + engines: {node: '>=10'} + dev: true + + /through/2.3.8: + resolution: {integrity: sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=} + dev: true + + /through2/2.0.5: + resolution: {integrity: sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==} + dependencies: + readable-stream: 2.3.7 + xtend: 4.0.2 + dev: true + + /through2/4.0.2: + resolution: {integrity: sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==} + dependencies: + readable-stream: 3.6.0 + dev: true + + /timers-browserify/2.0.12: + resolution: {integrity: sha512-9phl76Cqm6FhSX9Xe1ZUAMLtm1BLkKj2Qd5ApyWkXzsMRaA7dgr81kf4wJmQf/hAvg8EEyJxDo3du/0KlhPiKQ==} + engines: {node: '>=0.6.0'} + dependencies: + setimmediate: 1.0.5 + dev: true + + /timsort/0.3.0: + resolution: {integrity: sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=} + dev: true + + /tmp/0.0.33: + resolution: {integrity: sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==} + engines: {node: '>=0.6.0'} + dependencies: + os-tmpdir: 1.0.2 + dev: true + + /tmpl/1.0.5: + resolution: {integrity: sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==} + dev: true + + /to-arraybuffer/1.0.1: + resolution: {integrity: sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=} + dev: true + + /to-fast-properties/2.0.0: + resolution: {integrity: sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=} + engines: {node: '>=4'} + dev: true + + /to-object-path/0.3.0: + resolution: {integrity: sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=} + engines: {node: '>=0.10.0'} + dependencies: + kind-of: 3.2.2 + dev: true + + /to-regex-range/2.1.1: + resolution: {integrity: sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==} + engines: {node: '>=0.10.0'} + dependencies: + is-number: 3.0.0 + repeat-string: 1.6.1 + dev: true + + /to-regex-range/5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + dependencies: + is-number: 7.0.0 + dev: true + + /to-regex/3.0.2: + resolution: {integrity: sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==} + engines: {node: '>=0.10.0'} + dependencies: + define-property: 2.0.2 + extend-shallow: 3.0.2 + regex-not: 1.0.2 + safe-regex: 1.1.0 + dev: true + + /toggle-selection/1.0.6: + resolution: {integrity: sha1-bkWxJj8gF/oKzH2J14sVuL932jI=} + dev: true + + /toidentifier/1.0.1: + resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} + engines: {node: '>=0.6'} + dev: true + + /tough-cookie/4.0.0: + resolution: {integrity: sha512-tHdtEpQCMrc1YLrMaqXXcj6AxhYi/xgit6mZu1+EDWUn+qhUf8wMQoFIy9NXuq23zAwtcB0t/MjACGR18pcRbg==} + engines: {node: '>=6'} + dependencies: + psl: 1.8.0 + punycode: 2.1.1 + universalify: 0.1.2 + dev: true + + /tr46/0.0.3: + resolution: {integrity: sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=} + dev: true + + /tr46/2.1.0: + resolution: {integrity: sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==} + engines: {node: '>=8'} + dependencies: + punycode: 2.1.1 + dev: true + + /trim-newlines/3.0.1: + resolution: {integrity: sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==} + engines: {node: '>=8'} + dev: true + + /trim-newlines/4.0.2: + resolution: {integrity: sha512-GJtWyq9InR/2HRiLZgpIKv+ufIKrVrvjQWEj7PxAXNc5dwbNJkqhAUoAGgzRmULAnoOM5EIpveYd3J2VeSAIew==} + engines: {node: '>=12'} + dev: true + + /trim-trailing-lines/1.1.4: + resolution: {integrity: sha512-rjUWSqnfTNrjbB9NQWfPMH/xRK1deHeGsHoVfpxJ++XeYXE0d6B1En37AHfw3jtfTU7dzMzZL2jjpe8Qb5gLIQ==} + dev: true + + /trim/0.0.1: + resolution: {integrity: sha1-WFhUf2spB1fulczMZm+1AITEYN0=} + dev: true + + /trough/1.0.5: + resolution: {integrity: sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA==} + dev: true + + /ts-dedent/2.2.0: + resolution: {integrity: sha512-q5W7tVM71e2xjHZTlgfTDoPF/SmqKG5hddq9SzR49CH2hayqRKJtQ4mtRlSxKaJlR/+9rEM+mnBHf7I2/BQcpQ==} + engines: {node: '>=6.10'} + dev: true + + /ts-node/10.7.0_r7532dtfx5sufgo7h2pwwiqz24: + resolution: {integrity: sha512-TbIGS4xgJoX2i3do417KSaep1uRAW/Lu+WAL2doDHC0D6ummjirVOXU5/7aiZotbQ5p1Zp9tP7U6cYhA0O7M8A==} + hasBin: true + peerDependencies: + '@swc/core': '>=1.2.50' + '@swc/wasm': '>=1.2.50' + '@types/node': '*' + typescript: '>=2.7' + peerDependenciesMeta: + '@swc/core': + optional: true + '@swc/wasm': + optional: true + dependencies: + '@cspotcode/source-map-support': 0.7.0 + '@swc/core': 1.2.165 + '@tsconfig/node10': 1.0.8 + '@tsconfig/node12': 1.0.9 + '@tsconfig/node14': 1.0.1 + '@tsconfig/node16': 1.0.2 + '@types/node': 17.0.34 + acorn: 8.7.1 + acorn-walk: 8.2.0 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + typescript: 4.6.4 + v8-compile-cache-lib: 3.0.0 + yn: 3.1.1 + dev: true + + /ts-pnp/1.2.0_typescript@4.6.4: + resolution: {integrity: sha512-csd+vJOb/gkzvcCHgTGSChYpy5f1/XKNsmvBGO4JXS+z1v2HobugDz4s1IeFXM3wZB44uczs+eazB5Q/ccdhQw==} + engines: {node: '>=6'} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + typescript: 4.6.4 + dev: true + + /tslib/1.14.1: + resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} + dev: true + + /tslib/2.3.1: + resolution: {integrity: sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==} + dev: true + + /tsutils/3.21.0_typescript@4.6.4: + resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} + engines: {node: '>= 6'} + peerDependencies: + typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta' + dependencies: + tslib: 1.14.1 + typescript: 4.6.4 + dev: true + + /tty-browserify/0.0.0: + resolution: {integrity: sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=} + dev: true + + /type-check/0.3.2: + resolution: {integrity: sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=} + engines: {node: '>= 0.8.0'} + dependencies: + prelude-ls: 1.1.2 + dev: true + + /type-check/0.4.0: + resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} + engines: {node: '>= 0.8.0'} + dependencies: + prelude-ls: 1.2.1 + dev: true + + /type-detect/4.0.8: + resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==} + engines: {node: '>=4'} + dev: true + + /type-fest/0.18.1: + resolution: {integrity: sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==} + engines: {node: '>=10'} + dev: true + + /type-fest/0.20.2: + resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} + engines: {node: '>=10'} + dev: true + + /type-fest/0.21.3: + resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==} + engines: {node: '>=10'} + dev: true + + /type-fest/0.6.0: + resolution: {integrity: sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==} + engines: {node: '>=8'} + dev: true + + /type-fest/0.8.1: + resolution: {integrity: sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==} + engines: {node: '>=8'} + dev: true + + /type-fest/1.4.0: + resolution: {integrity: sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==} + engines: {node: '>=10'} + dev: true + + /type-fest/2.16.0: + resolution: {integrity: sha512-qpaThT2HQkFb83gMOrdKVsfCN7LKxP26Yq+smPzY1FqoHRjqmjqHXA7n5Gkxi8efirtbeEUxzfEdePthQWCuHw==} + engines: {node: '>=12.20'} + dev: true + + /type-is/1.6.18: + resolution: {integrity: sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==} + engines: {node: '>= 0.6'} + dependencies: + media-typer: 0.3.0 + mime-types: 2.1.35 + dev: true + + /typedarray-to-buffer/3.1.5: + resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==} + dependencies: + is-typedarray: 1.0.0 + dev: true + + /typedarray/0.0.6: + resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==} + dev: true + + /typescript/4.6.4: + resolution: {integrity: sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==} + engines: {node: '>=4.2.0'} + hasBin: true + dev: true + + /uglify-js/3.15.5: + resolution: {integrity: sha512-hNM5q5GbBRB5xB+PMqVRcgYe4c8jbyZ1pzZhS6jbq54/4F2gFK869ZheiE5A8/t+W5jtTNpWef/5Q9zk639FNQ==} + engines: {node: '>=0.8.0'} + hasBin: true + requiresBuild: true + dev: true + optional: true + + /unbox-primitive/1.0.1: + resolution: {integrity: sha512-tZU/3NqK3dA5gpE1KtyiJUrEB0lxnGkMFHptJ7q6ewdZ8s12QrODwNbhIJStmJkd1QDXa1NRA8aF2A1zk/Ypyw==} + dependencies: + function-bind: 1.1.1 + has-bigints: 1.0.1 + has-symbols: 1.0.3 + which-boxed-primitive: 1.0.2 + dev: true + + /unbzip2-stream/1.4.3: + resolution: {integrity: sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==} + dependencies: + buffer: 5.7.1 + through: 2.3.8 + dev: true + + /unfetch/4.2.0: + resolution: {integrity: sha512-F9p7yYCn6cIW9El1zi0HI6vqpeIvBsr3dSuRO6Xuppb1u5rXpCPmMvLSyECLhybr9isec8Ohl0hPekMVrEinDA==} + dev: true + + /unherit/1.1.3: + resolution: {integrity: sha512-Ft16BJcnapDKp0+J/rqFC3Rrk6Y/Ng4nzsC028k2jdDII/rdZ7Wd3pPT/6+vIIxRagwRc9K0IUX0Ra4fKvw+WQ==} + dependencies: + inherits: 2.0.4 + xtend: 4.0.2 + dev: true + + /unicode-canonical-property-names-ecmascript/2.0.0: + resolution: {integrity: sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==} + engines: {node: '>=4'} + dev: true + + /unicode-match-property-ecmascript/2.0.0: + resolution: {integrity: sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==} + engines: {node: '>=4'} + dependencies: + unicode-canonical-property-names-ecmascript: 2.0.0 + unicode-property-aliases-ecmascript: 2.0.0 + dev: true + + /unicode-match-property-value-ecmascript/2.0.0: + resolution: {integrity: sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw==} + engines: {node: '>=4'} + dev: true + + /unicode-property-aliases-ecmascript/2.0.0: + resolution: {integrity: sha512-5Zfuy9q/DFr4tfO7ZPeVXb1aPoeQSdeFMLpYuFebehDAhbuevLs5yxSZmIFN1tP5F9Wl4IpJrYojg85/zgyZHQ==} + engines: {node: '>=4'} + dev: true + + /unified/9.2.0: + resolution: {integrity: sha512-vx2Z0vY+a3YoTj8+pttM3tiJHCwY5UFbYdiWrwBEbHmK8pvsPj2rtAX2BFfgXen8T39CJWblWRDT4L5WGXtDdg==} + dependencies: + bail: 1.0.5 + extend: 3.0.2 + is-buffer: 2.0.5 + is-plain-obj: 2.1.0 + trough: 1.0.5 + vfile: 4.2.1 + dev: true + + /union-value/1.0.1: + resolution: {integrity: sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==} + engines: {node: '>=0.10.0'} + dependencies: + arr-union: 3.1.0 + get-value: 2.0.6 + is-extendable: 0.1.1 + set-value: 2.0.1 + dev: true + + /union/0.5.0: + resolution: {integrity: sha512-N6uOhuW6zO95P3Mel2I2zMsbsanvvtgn6jVqJv4vbVcz/JN0OkL9suomjQGmWtxJQXOCqUJvquc1sMeNz/IwlA==} + engines: {node: '>= 0.8.0'} + dependencies: + qs: 6.10.3 + dev: true + + /uniq/1.0.1: + resolution: {integrity: sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8=} + dev: true + + /uniqs/2.0.0: + resolution: {integrity: sha1-/+3ks2slKQaW5uFl1KWe25mOawI=} + dev: true + + /unique-filename/1.1.1: + resolution: {integrity: sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==} + dependencies: + unique-slug: 2.0.2 + dev: true + + /unique-slug/2.0.2: + resolution: {integrity: sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==} + dependencies: + imurmurhash: 0.1.4 + dev: true + + /unist-builder/2.0.3: + resolution: {integrity: sha512-f98yt5pnlMWlzP539tPc4grGMsFaQQlP/vM396b00jngsiINumNmsY8rkXjfoi1c6QaM8nQ3vaGDuoKWbe/1Uw==} + dev: true + + /unist-util-generated/1.1.6: + resolution: {integrity: sha512-cln2Mm1/CZzN5ttGK7vkoGw+RZ8VcUH6BtGbq98DDtRGquAAOXig1mrBQYelOwMXYS8rK+vZDyyojSjp7JX+Lg==} + dev: true + + /unist-util-is/4.1.0: + resolution: {integrity: sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==} + dev: true + + /unist-util-position/3.1.0: + resolution: {integrity: sha512-w+PkwCbYSFw8vpgWD0v7zRCl1FpY3fjDSQ3/N/wNd9Ffa4gPi8+4keqt99N3XW6F99t/mUzp2xAhNmfKWp95QA==} + dev: true + + /unist-util-remove-position/2.0.1: + resolution: {integrity: sha512-fDZsLYIe2uT+oGFnuZmy73K6ZxOPG/Qcm+w7jbEjaFcJgbQ6cqjs/eSPzXhsmGpAsWPkqZM9pYjww5QTn3LHMA==} + dependencies: + unist-util-visit: 2.0.3 + dev: true + + /unist-util-remove/2.1.0: + resolution: {integrity: sha512-J8NYPyBm4baYLdCbjmf1bhPu45Cr1MWTm77qd9istEkzWpnN6O9tMsEbB2JhNnBCqGENRqEWomQ+He6au0B27Q==} + dependencies: + unist-util-is: 4.1.0 + dev: true + + /unist-util-stringify-position/2.0.3: + resolution: {integrity: sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==} + dependencies: + '@types/unist': 2.0.6 + dev: true + + /unist-util-visit-parents/3.1.1: + resolution: {integrity: sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==} + dependencies: + '@types/unist': 2.0.6 + unist-util-is: 4.1.0 + dev: true + + /unist-util-visit/2.0.3: + resolution: {integrity: sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==} + dependencies: + '@types/unist': 2.0.6 + unist-util-is: 4.1.0 + unist-util-visit-parents: 3.1.1 + dev: true + + /universal-user-agent/6.0.0: + resolution: {integrity: sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==} + dev: true + + /universalify/0.1.2: + resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==} + engines: {node: '>= 4.0.0'} + dev: true + + /universalify/2.0.0: + resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==} + engines: {node: '>= 10.0.0'} + dev: true + + /unpipe/1.0.0: + resolution: {integrity: sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=} + engines: {node: '>= 0.8'} + dev: true + + /unquote/1.1.1: + resolution: {integrity: sha1-j97XMk7G6IoP+LkF58CYzcCG1UQ=} + dev: true + + /unset-value/1.0.0: + resolution: {integrity: sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=} + engines: {node: '>=0.10.0'} + dependencies: + has-value: 0.3.1 + isobject: 3.0.1 + dev: true + + /upath/1.2.0: + resolution: {integrity: sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==} + engines: {node: '>=4'} + dev: true + optional: true + + /uri-js/4.4.1: + resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} + dependencies: + punycode: 2.1.1 + dev: true + + /urix/0.1.0: + resolution: {integrity: sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=} + deprecated: Please see https://github.com/lydell/urix#deprecated + dev: true + + /url-join/4.0.1: + resolution: {integrity: sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==} + dev: true + + /url-loader/4.1.1_lit45vopotvaqup7lrvlnvtxwy: + resolution: {integrity: sha512-3BTV812+AVHHOJQO8O5MkWgZ5aosP7GnROJwvzLS9hWDj00lZ6Z0wNak423Lp9PBZN05N+Jk/N5Si8jRAlGyWA==} + engines: {node: '>= 10.13.0'} + peerDependencies: + file-loader: '*' + webpack: ^4.0.0 || ^5.0.0 + peerDependenciesMeta: + file-loader: + optional: true + dependencies: + file-loader: 6.2.0_webpack@4.46.0 + loader-utils: 2.0.2 + mime-types: 2.1.35 + schema-utils: 3.1.1 + webpack: 4.46.0 + dev: true + + /url/0.11.0: + resolution: {integrity: sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=} + dependencies: + punycode: 1.3.2 + querystring: 0.2.0 + dev: true + + /use-composed-ref/1.2.1: + resolution: {integrity: sha512-6+X1FLlIcjvFMAeAD/hcxDT8tmyrWnbSPMU0EnxQuDLIxokuFzWliXBiYZuGIx+mrAMLBw0WFfCkaPw8ebzAhw==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + dev: true + + /use-composed-ref/1.2.1_react@16.14.0: + resolution: {integrity: sha512-6+X1FLlIcjvFMAeAD/hcxDT8tmyrWnbSPMU0EnxQuDLIxokuFzWliXBiYZuGIx+mrAMLBw0WFfCkaPw8ebzAhw==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 + dependencies: + react: 16.14.0 + dev: true + + /use-isomorphic-layout-effect/1.1.2: + resolution: {integrity: sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==} + peerDependencies: + '@types/react': '*' + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + peerDependenciesMeta: + '@types/react': + optional: true + dev: true + + /use-isomorphic-layout-effect/1.1.2_react@16.14.0: + resolution: {integrity: sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==} + peerDependencies: + '@types/react': '*' + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + peerDependenciesMeta: + '@types/react': + optional: true + dependencies: + react: 16.14.0 + dev: true + + /use-latest/1.2.0: + resolution: {integrity: sha512-d2TEuG6nSLKQLAfW3By8mKr8HurOlTkul0sOpxbClIv4SQ4iOd7BYr7VIzdbktUCnv7dua/60xzd8igMU6jmyw==} + peerDependencies: + '@types/react': '*' + react: ^16.8.0 || ^17.0.0 + peerDependenciesMeta: + '@types/react': + optional: true + dependencies: + use-isomorphic-layout-effect: 1.1.2 + dev: true + + /use-latest/1.2.0_react@16.14.0: + resolution: {integrity: sha512-d2TEuG6nSLKQLAfW3By8mKr8HurOlTkul0sOpxbClIv4SQ4iOd7BYr7VIzdbktUCnv7dua/60xzd8igMU6jmyw==} + peerDependencies: + '@types/react': '*' + react: ^16.8.0 || ^17.0.0 + peerDependenciesMeta: + '@types/react': + optional: true + dependencies: + react: 16.14.0 + use-isomorphic-layout-effect: 1.1.2_react@16.14.0 + dev: true + + /use/3.1.1: + resolution: {integrity: sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==} + engines: {node: '>=0.10.0'} + dev: true + + /util-deprecate/1.0.2: + resolution: {integrity: sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=} + dev: true + + /util.promisify/1.0.0: + resolution: {integrity: sha512-i+6qA2MPhvoKLuxnJNpXAGhg7HphQOSUq2LKMZD0m15EiskXUkMvKdF4Uui0WYeCUGea+o2cw/ZuwehtfsrNkA==} + dependencies: + define-properties: 1.1.3 + object.getownpropertydescriptors: 2.1.3 + dev: true + + /util/0.10.3: + resolution: {integrity: sha1-evsa/lCAUkZInj23/g7TeTNqwPk=} + dependencies: + inherits: 2.0.1 + dev: true + + /util/0.11.1: + resolution: {integrity: sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==} + dependencies: + inherits: 2.0.3 + dev: true + + /utila/0.4.0: + resolution: {integrity: sha1-ihagXURWV6Oupe7MWxKk+lN5dyw=} + dev: true + + /utils-merge/1.0.1: + resolution: {integrity: sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=} + engines: {node: '>= 0.4.0'} + dev: true + + /uuid-browser/3.1.0: + resolution: {integrity: sha1-DwWkCu90+eWVHiDvv0SxGHHlZBA=} + dev: true + + /uuid/3.4.0: + resolution: {integrity: sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==} + deprecated: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. + hasBin: true + dev: true + + /v8-compile-cache-lib/3.0.0: + resolution: {integrity: sha512-mpSYqfsFvASnSn5qMiwrr4VKfumbPyONLCOPmsR3A6pTY/r0+tSaVbgPWSAIuzbk3lCTa+FForeTiO+wBQGkjA==} + dev: true + + /v8-compile-cache/2.3.0: + resolution: {integrity: sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==} + dev: true + + /v8-to-istanbul/8.1.1: + resolution: {integrity: sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==} + engines: {node: '>=10.12.0'} + dependencies: + '@types/istanbul-lib-coverage': 2.0.4 + convert-source-map: 1.8.0 + source-map: 0.7.3 + dev: true + + /validate-npm-package-license/3.0.4: + resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==} + dependencies: + spdx-correct: 3.1.1 + spdx-expression-parse: 3.0.1 + dev: true + + /vary/1.1.2: + resolution: {integrity: sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=} + engines: {node: '>= 0.8'} + dev: true + + /vendors/1.0.4: + resolution: {integrity: sha512-/juG65kTL4Cy2su4P8HjtkTxk6VmJDiOPBufWniqQ6wknac6jNiXS9vU+hO3wgusiyqWlzTbVHi0dyJqRONg3w==} + dev: true + + /vfile-location/3.2.0: + resolution: {integrity: sha512-aLEIZKv/oxuCDZ8lkJGhuhztf/BW4M+iHdCwglA/eWc+vtuRFJj8EtgceYFX4LRjOhCAAiNHsKGssC6onJ+jbA==} + dev: true + + /vfile-message/2.0.4: + resolution: {integrity: sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ==} + dependencies: + '@types/unist': 2.0.6 + unist-util-stringify-position: 2.0.3 + dev: true + + /vfile/4.2.1: + resolution: {integrity: sha512-O6AE4OskCG5S1emQ/4gl8zK586RqA3srz3nfK/Viy0UPToBc5Trp9BVFb1u0CjsKrAWwnpr4ifM/KBXPWwJbCA==} + dependencies: + '@types/unist': 2.0.6 + is-buffer: 2.0.5 + unist-util-stringify-position: 2.0.3 + vfile-message: 2.0.4 + dev: true + + /vm-browserify/1.1.2: + resolution: {integrity: sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==} + dev: true + + /w3c-hr-time/1.0.2: + resolution: {integrity: sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==} + dependencies: + browser-process-hrtime: 1.0.0 + dev: true + + /w3c-xmlserializer/2.0.0: + resolution: {integrity: sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==} + engines: {node: '>=10'} + dependencies: + xml-name-validator: 3.0.0 + dev: true + + /walker/1.0.8: + resolution: {integrity: sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==} + dependencies: + makeerror: 1.0.12 + dev: true + + /warning/4.0.3: + resolution: {integrity: sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==} + dependencies: + loose-envify: 1.4.0 + dev: true + + /watchpack-chokidar2/2.0.1: + resolution: {integrity: sha512-nCFfBIPKr5Sh61s4LPpy1Wtfi0HE8isJ3d2Yb5/Ppw2P2B/3eVSEBjKfN0fmHJSK14+31KwMKmcrzs2GM4P0Ww==} + requiresBuild: true + dependencies: + chokidar: 2.1.8 + transitivePeerDependencies: + - supports-color + dev: true + optional: true + + /watchpack/1.7.5: + resolution: {integrity: sha512-9P3MWk6SrKjHsGkLT2KHXdQ/9SNkyoJbabxnKOoJepsvJjJG8uYTR3yTPxPQvNDI3w4Nz1xnE0TLHK4RIVe/MQ==} + dependencies: + graceful-fs: 4.2.10 + neo-async: 2.6.2 + optionalDependencies: + chokidar: 3.5.3 + watchpack-chokidar2: 2.0.1 + transitivePeerDependencies: + - supports-color + dev: true + + /watchpack/2.3.1: + resolution: {integrity: sha512-x0t0JuydIo8qCNctdDrn1OzH/qDzk2+rdCOC3YzumZ42fiMqmQ7T3xQurykYMhYfHaPHTp4ZxAx2NfUo1K6QaA==} + engines: {node: '>=10.13.0'} + dependencies: + glob-to-regexp: 0.4.1 + graceful-fs: 4.2.10 + dev: true + + /wcwidth/1.0.1: + resolution: {integrity: sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g=} + dependencies: + defaults: 1.0.3 + dev: true + + /web-namespaces/1.1.4: + resolution: {integrity: sha512-wYxSGajtmoP4WxfejAPIr4l0fVh+jeMXZb08wNc0tMg6xsfZXj3cECqIK0G7ZAqUq0PP8WlMDtaOGVBTAWztNw==} + dev: true + + /webidl-conversions/3.0.1: + resolution: {integrity: sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=} + dev: true + + /webidl-conversions/5.0.0: + resolution: {integrity: sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==} + engines: {node: '>=8'} + dev: true + + /webidl-conversions/6.1.0: + resolution: {integrity: sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==} + engines: {node: '>=10.4'} + dev: true + + /webpack-dev-middleware/3.7.3_webpack@4.46.0: + resolution: {integrity: sha512-djelc/zGiz9nZj/U7PTBi2ViorGJXEWo/3ltkPbDyxCXhhEXkW0ce99falaok4TPj+AsxLiXJR0EBOb0zh9fKQ==} + engines: {node: '>= 6'} + peerDependencies: + webpack: ^4.0.0 || ^5.0.0 + dependencies: + memory-fs: 0.4.1 + mime: 2.6.0 + mkdirp: 0.5.6 + range-parser: 1.2.1 + webpack: 4.46.0 + webpack-log: 2.0.0 + dev: true + + /webpack-filter-warnings-plugin/1.2.1_webpack@4.46.0: + resolution: {integrity: sha512-Ez6ytc9IseDMLPo0qCuNNYzgtUl8NovOqjIq4uAU8LTD4uoa1w1KpZyyzFtLTEMZpkkOkLfL9eN+KGYdk1Qtwg==} + engines: {node: '>= 4.3 < 5.0.0 || >= 5.10'} + peerDependencies: + webpack: ^2.0.0 || ^3.0.0 || ^4.0.0 + dependencies: + webpack: 4.46.0 + dev: true + + /webpack-hot-middleware/2.25.1: + resolution: {integrity: sha512-Koh0KyU/RPYwel/khxbsDz9ibDivmUbrRuKSSQvW42KSDdO4w23WI3SkHpSUKHE76LrFnnM/L7JCrpBwu8AXYw==} + dependencies: + ansi-html-community: 0.0.8 + html-entities: 2.3.3 + querystring: 0.2.1 + strip-ansi: 6.0.1 + dev: true + + /webpack-log/2.0.0: + resolution: {integrity: sha512-cX8G2vR/85UYG59FgkoMamwHUIkSSlV3bBMRsbxVXVUk2j6NleCKjQ/WE9eYg9WY4w25O9w8wKP4rzNZFmUcUg==} + engines: {node: '>= 6'} + dependencies: + ansi-colors: 3.2.4 + uuid: 3.4.0 + dev: true + + /webpack-sources/1.4.3: + resolution: {integrity: sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==} + dependencies: + source-list-map: 2.0.1 + source-map: 0.6.1 + dev: true + + /webpack-sources/3.2.3: + resolution: {integrity: sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==} + engines: {node: '>=10.13.0'} + dev: true + + /webpack-virtual-modules/0.2.2: + resolution: {integrity: sha512-kDUmfm3BZrei0y+1NTHJInejzxfhtU8eDj2M7OKb2IWrPFAeO1SOH2KuQ68MSZu9IGEHcxbkKKR1v18FrUSOmA==} + dependencies: + debug: 3.2.7 + transitivePeerDependencies: + - supports-color + dev: true + + /webpack/4.46.0: + resolution: {integrity: sha512-6jJuJjg8znb/xRItk7bkT0+Q7AHCYjjFnvKIWQPkNIOyRqoCGvkOs0ipeQzrqz4l5FtN5ZI/ukEHroeX/o1/5Q==} + engines: {node: '>=6.11.5'} + hasBin: true + peerDependencies: + webpack-cli: '*' + webpack-command: '*' + peerDependenciesMeta: + webpack-cli: + optional: true + webpack-command: + optional: true + dependencies: + '@webassemblyjs/ast': 1.9.0 + '@webassemblyjs/helper-module-context': 1.9.0 + '@webassemblyjs/wasm-edit': 1.9.0 + '@webassemblyjs/wasm-parser': 1.9.0 + acorn: 6.4.2 + ajv: 6.12.6 + ajv-keywords: 3.5.2_ajv@6.12.6 + chrome-trace-event: 1.0.3 + enhanced-resolve: 4.5.0 + eslint-scope: 4.0.3 + json-parse-better-errors: 1.0.2 + loader-runner: 2.4.0 + loader-utils: 1.4.0 + memory-fs: 0.4.1 + micromatch: 3.1.10 + mkdirp: 0.5.6 + neo-async: 2.6.2 + node-libs-browser: 2.2.1 + schema-utils: 1.0.0 + tapable: 1.1.3 + terser-webpack-plugin: 1.4.5_webpack@4.46.0 + watchpack: 1.7.5 + webpack-sources: 1.4.3 + transitivePeerDependencies: + - supports-color + dev: true + + /webpack/5.73.0_@swc+core@1.2.165: + resolution: {integrity: sha512-svjudQRPPa0YiOYa2lM/Gacw0r6PvxptHj4FuEKQ2kX05ZLkjbVc5MnPs6its5j7IZljnIqSVo/OsY2X0IpHGA==} + engines: {node: '>=10.13.0'} + hasBin: true + peerDependencies: + webpack-cli: '*' + peerDependenciesMeta: + webpack-cli: + optional: true + dependencies: + '@types/eslint-scope': 3.7.4 + '@types/estree': 0.0.51 + '@webassemblyjs/ast': 1.11.1 + '@webassemblyjs/wasm-edit': 1.11.1 + '@webassemblyjs/wasm-parser': 1.11.1 + acorn: 8.7.1 + acorn-import-assertions: 1.8.0_acorn@8.7.1 + browserslist: 4.20.2 + chrome-trace-event: 1.0.3 + enhanced-resolve: 5.10.0 + es-module-lexer: 0.9.3 + eslint-scope: 5.1.1 + events: 3.3.0 + glob-to-regexp: 0.4.1 + graceful-fs: 4.2.10 + json-parse-even-better-errors: 2.3.1 + loader-runner: 4.3.0 + mime-types: 2.1.35 + neo-async: 2.6.2 + schema-utils: 3.1.1 + tapable: 2.2.1 + terser-webpack-plugin: 5.3.3_b36iqc4l7ttzvjzp6fwwxjlkse + watchpack: 2.3.1 + webpack-sources: 3.2.3 + transitivePeerDependencies: + - '@swc/core' + - esbuild + - uglify-js + dev: true + + /whatwg-encoding/1.0.5: + resolution: {integrity: sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==} + dependencies: + iconv-lite: 0.4.24 + dev: true + + /whatwg-encoding/2.0.0: + resolution: {integrity: sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==} + engines: {node: '>=12'} + dependencies: + iconv-lite: 0.6.3 + dev: true + + /whatwg-mimetype/2.3.0: + resolution: {integrity: sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==} + dev: true + + /whatwg-url/5.0.0: + resolution: {integrity: sha1-lmRU6HZUYuN2RNNib2dCzotwll0=} + dependencies: + tr46: 0.0.3 + webidl-conversions: 3.0.1 + dev: true + + /whatwg-url/8.7.0: + resolution: {integrity: sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==} + engines: {node: '>=10'} + dependencies: + lodash: 4.17.21 + tr46: 2.1.0 + webidl-conversions: 6.1.0 + dev: true + + /which-boxed-primitive/1.0.2: + resolution: {integrity: sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==} + dependencies: + is-bigint: 1.0.4 + is-boolean-object: 1.1.2 + is-number-object: 1.0.7 + is-string: 1.0.7 + is-symbol: 1.0.4 + dev: true + + /which/1.3.1: + resolution: {integrity: sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==} + hasBin: true + dependencies: + isexe: 2.0.0 + dev: true + + /which/2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + dependencies: + isexe: 2.0.0 + dev: true + + /wide-align/1.1.5: + resolution: {integrity: sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==} + dependencies: + string-width: 4.2.3 + dev: true + + /widest-line/3.1.0: + resolution: {integrity: sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==} + engines: {node: '>=8'} + dependencies: + string-width: 4.2.3 + dev: true + + /word-wrap/1.2.3: + resolution: {integrity: sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==} + engines: {node: '>=0.10.0'} + dev: true + + /wordwrap/1.0.0: + resolution: {integrity: sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=} + dev: true + + /worker-farm/1.7.0: + resolution: {integrity: sha512-rvw3QTZc8lAxyVrqcSGVm5yP/IJ2UcB3U0graE3LCFoZ0Yn2x4EoVSqJKdB/T5M+FLcRPjz4TDacRf3OCfNUzw==} + dependencies: + errno: 0.1.8 + dev: true + + /worker-rpc/0.1.1: + resolution: {integrity: sha512-P1WjMrUB3qgJNI9jfmpZ/htmBEjFh//6l/5y8SD9hg1Ef5zTTVVoRjTrTEzPrNBQvmhMxkoTsjOXN10GWU7aCg==} + dependencies: + microevent.ts: 0.1.1 + dev: true + + /wrap-ansi/7.0.0: + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} + engines: {node: '>=10'} + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + dev: true + + /wrappy/1.0.2: + resolution: {integrity: sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=} + dev: true + + /write-file-atomic/3.0.3: + resolution: {integrity: sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==} + dependencies: + imurmurhash: 0.1.4 + is-typedarray: 1.0.0 + signal-exit: 3.0.7 + typedarray-to-buffer: 3.1.5 + dev: true + + /ws/7.5.7: + resolution: {integrity: sha512-KMvVuFzpKBuiIXW3E4u3mySRO2/mCHSyZDJQM5NQ9Q9KHWHWh0NHgfbRMLLrceUK5qAL4ytALJbpRMjixFZh8A==} + engines: {node: '>=8.3.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: ^5.0.2 + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + dev: true + + /ws/8.5.0: + resolution: {integrity: sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: ^5.0.2 + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + dev: true + + /ws/8.6.0: + resolution: {integrity: sha512-AzmM3aH3gk0aX7/rZLYvjdvZooofDu3fFOzGqcSnQ1tOcTWwhM/o+q++E8mAyVVIyUdajrkzWUGftaVSDLn1bw==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: ^5.0.2 + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + dev: true + + /xml-name-validator/3.0.0: + resolution: {integrity: sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==} + dev: true + + /xmlchars/2.2.0: + resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==} + dev: true + + /xtend/4.0.2: + resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==} + engines: {node: '>=0.4'} + dev: true + + /y18n/4.0.3: + resolution: {integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==} + dev: true + + /y18n/5.0.8: + resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} + engines: {node: '>=10'} + dev: true + + /yallist/3.1.1: + resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} + dev: true + + /yallist/4.0.0: + resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} + dev: true + + /yaml/1.10.2: + resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==} + engines: {node: '>= 6'} + dev: true + + /yargs-parser/20.2.9: + resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} + engines: {node: '>=10'} + dev: true + + /yargs-parser/21.0.1: + resolution: {integrity: sha512-9BK1jFpLzJROCI5TzwZL/TU4gqjK5xiHV/RfWLOahrjAko/e4DJkRDZQXfvqAsiZzzYhgAzbgz6lg48jcm4GLg==} + engines: {node: '>=12'} + dev: true + + /yargs/16.2.0: + resolution: {integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==} + engines: {node: '>=10'} + dependencies: + cliui: 7.0.4 + escalade: 3.1.1 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 20.2.9 + dev: true + + /yargs/17.4.1: + resolution: {integrity: sha512-WSZD9jgobAg3ZKuCQZSa3g9QOJeCCqLoLAykiWgmXnDo9EPnn4RPf5qVTtzgOx66o6/oqhcA5tHtJXpG8pMt3g==} + engines: {node: '>=12'} + dependencies: + cliui: 7.0.4 + escalade: 3.1.1 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 21.0.1 + dev: true + + /yauzl/2.10.0: + resolution: {integrity: sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=} + dependencies: + buffer-crc32: 0.2.13 + fd-slicer: 1.1.0 + dev: true + + /yn/3.1.1: + resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} + engines: {node: '>=6'} + dev: true + + /yocto-queue/0.1.0: + resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} + engines: {node: '>=10'} + dev: true + + /zwitch/1.0.5: + resolution: {integrity: sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw==} + dev: true + +publishDirectory: package diff --git a/postcss.config.cjs b/postcss.config.cjs new file mode 100644 index 000000000..4703deb90 --- /dev/null +++ b/postcss.config.cjs @@ -0,0 +1,11 @@ +const isProd = process.env.NODE_ENV !== 'development'; + +module.exports = { + plugins: [ + require('postcss-preset-env'), + isProd && + require('cssnano')({ + preset: 'default' + }) + ].filter(Boolean) +}; diff --git a/rollup.config.js b/rollup.config.js new file mode 100644 index 000000000..747aeeea2 --- /dev/null +++ b/rollup.config.js @@ -0,0 +1,53 @@ +import swc from 'rollup-plugin-swc'; +import { nodeResolve } from '@rollup/plugin-node-resolve'; +import { terser } from 'rollup-plugin-terser'; +import pkg from './package.json'; + +const extensions = ['.js', '.ts', '.tsx']; +const external = _ => /node_modules/.test(_) && !/@swc\/helpers/.test(_); +const plugins = targets => [ + nodeResolve({ + extensions + }), + swc({ + jsc: { + parser: { + syntax: 'typescript' + }, + externalHelpers: true + }, + env: { + targets + }, + module: { + type: 'es6' + }, + sourceMaps: true + }), + terser() +]; + +export default [ + { + input: pkg.main, + plugins: plugins('defaults, not ie 11, not ie_mob 11'), + external, + output: { + file: pkg.publishConfig.main, + format: 'umd', + name: 'Chartist', + exports: 'named', + sourcemap: true + } + }, + { + input: pkg.main, + plugins: plugins('defaults and supports es6-module'), + external, + output: { + file: pkg.publishConfig.module, + format: 'es', + sourcemap: true + } + } +]; diff --git a/scripts/styles.cjs b/scripts/styles.cjs new file mode 100755 index 000000000..738e17de8 --- /dev/null +++ b/scripts/styles.cjs @@ -0,0 +1,46 @@ +#!/usr/bin/env node + +const fs = require('fs').promises; +const path = require('path'); +const sass = require('sass'); +const postcss = require('postcss'); + +const { plugins } = require('../postcss.config.cjs'); +const pkg = require('../package.json'); + +const cwd = process.cwd(); +const input = pkg.style; +const output = pkg.publishConfig.style; +const sourceMapOutput = pkg.publishConfig.style.replace('.css', '.css.map'); + +(async () => { + let styles; + + styles = sass.compile(pkg.style, { + sourceMap: true + }); + + styles.sourceMap.sources = styles.sourceMap.sources.map(_ => + _.replace(cwd, '') + ); + + styles = await postcss(plugins).process(styles.css, { + from: input, + to: output, + map: { + prev: styles.sourceMap + } + }); + + const map = styles.map.toString(); + const css = + styles.css + `\n/*# sourceMappingURL=${path.basename(sourceMapOutput)} */`; + + await fs.mkdir(path.dirname(output), { + recursive: true + }); + await Promise.all([ + fs.writeFile(output, css), + fs.writeFile(sourceMapOutput, map) + ]); +})(); diff --git a/site/.buildignore b/site/.buildignore deleted file mode 100644 index fc98b8eb5..000000000 --- a/site/.buildignore +++ /dev/null @@ -1 +0,0 @@ -*.coffee \ No newline at end of file diff --git a/site/404.html b/site/404.html deleted file mode 100644 index ec98e3c26..000000000 --- a/site/404.html +++ /dev/null @@ -1,157 +0,0 @@ - - - - - Page Not Found :( - - - -
-

Not found :(

-

Sorry, but the page you were trying to view does not exist.

-

It looks like this was the result of either:

-
    -
  • a mistyped address
  • -
  • an out-of-date link
  • -
- - -
- - diff --git a/site/code-snippets/1-dimension-values.js b/site/code-snippets/1-dimension-values.js deleted file mode 100644 index 18177c918..000000000 --- a/site/code-snippets/1-dimension-values.js +++ /dev/null @@ -1,4 +0,0 @@ -var data = { - labels: ['A', 'B', 'C'], - series: [[10, 8, 14]] -}; diff --git a/site/code-snippets/2-dimensions-values.js b/site/code-snippets/2-dimensions-values.js deleted file mode 100644 index f28adaef8..000000000 --- a/site/code-snippets/2-dimensions-values.js +++ /dev/null @@ -1,8 +0,0 @@ -var data = { - labels: ['A', 'B', 'C'], - series: [[ - {x: undefined, y: 10}, - {x: undefined, y: 8}, - {x: undefined, y: 14} - ]] -}; diff --git a/site/code-snippets/aspect-ratio-container.html b/site/code-snippets/aspect-ratio-container.html deleted file mode 100644 index c774467b6..000000000 --- a/site/code-snippets/aspect-ratio-container.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/site/code-snippets/colour-override-line-chart.css b/site/code-snippets/colour-override-line-chart.css deleted file mode 100644 index 54306316e..000000000 --- a/site/code-snippets/colour-override-line-chart.css +++ /dev/null @@ -1,9 +0,0 @@ -.ct-series-a .ct-line, -.ct-series-a .ct-point { - stroke: blue; -} - -.ct-series-b .ct-line, -.ct-series-b .ct-point { - stroke: green; -} diff --git a/site/code-snippets/custom-include.scss b/site/code-snippets/custom-include.scss deleted file mode 100644 index f7eb41d4a..000000000 --- a/site/code-snippets/custom-include.scss +++ /dev/null @@ -1,2 +0,0 @@ -@import "_my-chartist-settings.scss"; -@import "chartist/dist/scss/chartist.scss"; diff --git a/site/code-snippets/custom-style-bar-chart.css b/site/code-snippets/custom-style-bar-chart.css deleted file mode 100644 index 9c6809ad7..000000000 --- a/site/code-snippets/custom-style-bar-chart.css +++ /dev/null @@ -1,11 +0,0 @@ -/* Use this selector to override bar styles on bar charts. Bars are also strokes so you have maximum freedom in styling them. */ -.ct-series-a .ct-bar { - /* Colour of your bars */ - stroke: red; - /* The width of your bars */ - stroke-width: 20px; - /* Yes! Dashed bars! */ - stroke-dasharray: 20px; - /* Maybe you like round corners on your bars? */ - stroke-linecap: round; -} diff --git a/site/code-snippets/custom-style-donut-chart.css b/site/code-snippets/custom-style-donut-chart.css deleted file mode 100644 index a96c124c5..000000000 --- a/site/code-snippets/custom-style-donut-chart.css +++ /dev/null @@ -1,9 +0,0 @@ -/* Donut charts get built from Pie charts but with a fundamentally difference in the drawing approach. The donut is drawn using arc strokes for maximum freedom in styling */ -.ct-series-a .ct-slice-donut { - /* give the donut slice a custom colour */ - stroke: blue; - /* customize stroke width of the donut slices in CSS. Note that this property is already set in JavaScript and label positioning also relies on this. In the right situation though it can be very useful to style this property. You need to use !important to override the style attribute */ - stroke-width: 5px !important; - /* create modern looking rounded donut charts */ - stroke-linecap: round; -} diff --git a/site/code-snippets/custom-style-line-chart.css b/site/code-snippets/custom-style-line-chart.css deleted file mode 100644 index 82bdaf63d..000000000 --- a/site/code-snippets/custom-style-line-chart.css +++ /dev/null @@ -1,19 +0,0 @@ -/* Use this selector to override the line style on a given series */ -.ct-series-a .ct-line { - /* Set the colour of this series line */ - stroke: red; - /* Control the thikness of your lines */ - stroke-width: 5px; - /* Create a dashed line with a pattern */ - stroke-dasharray: 10px 20px; -} - -/* This selector overrides the points style on line charts. Points on line charts are actually just very short strokes. This allows you to customize even the point size in CSS */ -.ct-series-a .ct-point { - /* Colour of your points */ - stroke: red; - /* Size of your points */ - stroke-width: 20px; - /* Make your points appear as squares */ - stroke-linecap: square; -} diff --git a/site/code-snippets/custom-style-pie-chart.css b/site/code-snippets/custom-style-pie-chart.css deleted file mode 100644 index 52c30cc13..000000000 --- a/site/code-snippets/custom-style-pie-chart.css +++ /dev/null @@ -1,9 +0,0 @@ -/* Pie charts consist of solid slices where you can use this selector to override the default style. */ -.ct-series-a .ct-slice-pie { - /* fill of the pie slieces */ - fill: hsl(120, 40%, 60%); - /* give your pie slices some outline or separate them visually by using the background color here */ - stroke: white; - /* outline width */ - stroke-width: 4px; -} diff --git a/site/code-snippets/plugin-example.js b/site/code-snippets/plugin-example.js deleted file mode 100644 index dd2adf026..000000000 --- a/site/code-snippets/plugin-example.js +++ /dev/null @@ -1,26 +0,0 @@ -function ctPointLabels(options) { - return function ctPointLabels(chart) { - var defaultOptions = { - labelClass: 'ct-label', - labelOffset: { - x: 0, - y: -10 - }, - textAnchor: 'middle' - }; - - options = Chartist.extend({}, defaultOptions, options); - - if(chart instanceof Chartist.Line) { - chart.on('draw', function(data) { - if(data.type === 'point') { - data.group.elem('text', { - x: data.x + options.labelOffset.x, - y: data.y + options.labelOffset.y, - style: 'text-anchor: ' + options.textAnchor - }, options.labelClass).text(data.value); - } - }); - } - } -} diff --git a/site/code-snippets/plugin-include.js b/site/code-snippets/plugin-include.js deleted file mode 100644 index f131ab50b..000000000 --- a/site/code-snippets/plugin-include.js +++ /dev/null @@ -1,13 +0,0 @@ -var chart = new Chartist.Line('.ct-chart', { - labels: [1, 2, 3, 4, 5, 6, 7], - series: [ - [1, 5, 3, 4, 6, 2, 3], - [2, 4, 2, 5, 4, 3, 6] - ] -}, { - plugins: [ - ctPointLabels({ - textAnchor: 'middle' - }) - ] -}); diff --git a/site/code-snippets/plugin-signature.js b/site/code-snippets/plugin-signature.js deleted file mode 100644 index 8c7f27767..000000000 --- a/site/code-snippets/plugin-signature.js +++ /dev/null @@ -1,3 +0,0 @@ -function myChartistPlugin(chart) { - -} diff --git a/site/code-snippets/simple-start-aspect-ratio-chart.js b/site/code-snippets/simple-start-aspect-ratio-chart.js deleted file mode 100644 index 96f838eaa..000000000 --- a/site/code-snippets/simple-start-aspect-ratio-chart.js +++ /dev/null @@ -1,13 +0,0 @@ -var data = { - // A labels array that can contain any sort of values - labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'], - // Our series array that contains series objects or in this case series data arrays - series: [ - [5, 2, 4, 2, 0] - ] -}; - -// Create a new line chart object where as first parameter we pass in a selector -// that is resolving to our chart container element. The Second parameter -// is the actual data object. -new Chartist.Line('.ct-chart', data); \ No newline at end of file diff --git a/site/code-snippets/simple-start-cdn.html b/site/code-snippets/simple-start-cdn.html deleted file mode 100644 index 8ae6a735f..000000000 --- a/site/code-snippets/simple-start-cdn.html +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/site/code-snippets/simple-start-fixed-chart.js b/site/code-snippets/simple-start-fixed-chart.js deleted file mode 100644 index 711ee5df8..000000000 --- a/site/code-snippets/simple-start-fixed-chart.js +++ /dev/null @@ -1,20 +0,0 @@ -var data = { - // A labels array that can contain any sort of values - labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'], - // Our series array that contains series objects or in this case series data arrays - series: [ - [5, 2, 4, 2, 0] - ] -}; - -// As options we currently only set a static size of 300x200 px. We can also omit this and use aspect ratio containers -// as you saw in the previous example -var options = { - width: 300, - height: 200 -}; - -// Create a new line chart object where as first parameter we pass in a selector -// that is resolving to our chart container element. The Second parameter -// is the actual data object. As a third parameter we pass in our custom options. -new Chartist.Line('.ct-chart', data, options); diff --git a/site/code-snippets/simple-start.html b/site/code-snippets/simple-start.html deleted file mode 100644 index 5b8c524ff..000000000 --- a/site/code-snippets/simple-start.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - My first Chartist Tests - - - - - - - diff --git a/site/code-snippets/two-charts.html b/site/code-snippets/two-charts.html deleted file mode 100644 index 07a4cd552..000000000 --- a/site/code-snippets/two-charts.html +++ /dev/null @@ -1,16 +0,0 @@ -
-
- - diff --git a/site/data/pages/examples.yml b/site/data/pages/examples.yml deleted file mode 100644 index 87f32f136..000000000 --- a/site/data/pages/examples.yml +++ /dev/null @@ -1,274 +0,0 @@ -sections: - - title: Line chart examples - level: 3 - items: - - type: live-example - data: - title: Simple line chart - level: 4 - id: simple-line-chart - classes: ct-golden-section - intro: An example of a simple line chart with three series. You can edit this example in realtime. - - type: live-example - data: - title: Holes in data - level: 4 - id: example-line-data-holes - classes: ct-golden-section - intro: > - Chartist does not freak out if you have holes in your data. Instead it will render the lines in - segments and handles these holes gracefully. This also allows you to introduce a line at a later - point or to terminate the series before others. - - type: live-example - data: - title: Filled holes in data - level: 4 - id: example-line-data-fill-holes - classes: ct-golden-section - intro: > - Sometimes you don't want your data looking so fragmented, even when it really is. That's why you - can also configure Chartist to smooth over holes in your data. - - type: live-example - data: - title: Only whole numbers - level: 4 - id: example-line-only-integer - classes: ct-golden-section - intro: > - You're dealing with series that contain only whole numbers? It looks weird that Chartist is creating - a scale that contains fractions even if your data does not? No problem! Tell the Chartist guy to - only use integers and he'll do the math! - - type: live-example - data: - title: Line scatter diagram with responsive settings - level: 4 - id: line-scatter-random - classes: ct-golden-section - intro: > - This advanced example uses a line chart to draw a scatter diagram. The data object is created - with a functional style random mechanism. There is a mobile first responsive configuration using - the responsive options to show less labels on small screens. - - type: live-example - data: - title: Line chart with area - level: 4 - id: example-line-area - classes: ct-golden-section - intro: > - This chart uses the showArea option to draw line, dots but also an area shape. Use the low option to - specify a fixed lower bound that will make the area expand. You can also use the areaBase property - to specify a data value that will be used to determine the area shape base position (this is 0 by default). - - type: live-example - data: - title: Bi-polar Line chart with area only - level: 4 - id: example-bipolar-line-area - classes: ct-golden-section - intro: > - You can also only draw the area shapes of the line chart. Area shapes will always be constructed around - their areaBase (that can be configured in the options) which also allows you to draw nice bi-polar - areas. - - type: live-example - data: - title: Using events to replace graphics - level: 4 - id: example-line-modify-drawing - classes: ct-golden-section - intro: > - Chartist has fixed graphical representations that are chosen because of their flexibility and to - provide a high level of separation of the concerns. However, sometimes you probably would like to use - different shapes or even images for your charts. One way to achieve this is by using the draw events and replace - or add custom SVG shapes. - - type: live-example - data: - title: Advanced SMIL Animations - level: 4 - id: example-line-svg-animation - classes: ct-golden-section - intro: > - Chartist provides a simple API to animate the elements on the Chart using SMIL. Usually you can achieve most - animation with CSS3 animations but in some cases you'd like to animate SVG properties that are not available - in CSS. - - type: live-example - data: - title: SVG Path animation - level: 4 - id: example-line-path-animation - classes: ct-golden-section - intro: > - Path animation is made easy with the SVG Path API. - The API allows you to modify complex SVG paths and transform them for different animation morphing states. - - type: live-example - data: - title: Line Interpolation / Smoothing - level: 4 - id: example-line-simple-smoothing - classes: ct-golden-section - intro: > - By default Chartist uses a cardinal spline algorithm to smooth the lines. However, like all other - things in Chartist, this can be customized easily! Check out - the API Documentation for more - smoothing options. - - type: live-example - data: - title: Series Overrides - level: 4 - id: example-line-series-override - classes: ct-golden-section - intro: > - By naming your series using the series object notation with a name property, you can enable the - individual configuration of series specific settings. showLine, showPoint, - showArea and even the smoothing function can be overriden per series! And guess what? - You can even override those series settings in the responsive configuration! Check the example code - for more details. - - type: live-example - data: - title: Time Series with Moment.js - level: 4 - id: example-timeseries-moment - classes: ct-golden-section - intro: > - This example uses Moment.js in the label interpolation function - to format a date object. The fixed axis ensures that there is correct spacing between the data points, - and the number of labels is determined by the divisor. - - title: Bar chart examples - level: 3 - items: - - type: live-example - data: - title: Bi-polar bar chart - level: 4 - id: bi-polar-bar-interpolated - classes: ct-golden-section - intro: > - A bi-polar bar chart with a range limit set with low and high. There is also an interpolation - function used to skip every odd grid line / label. - - type: live-example - data: - title: Overlapping bars on mobile - level: 4 - id: overlapping-bars - classes: ct-golden-section - intro: > - This example makes use of label interpolation and the seriesBarDistance property that allows you - to make bars overlap over each other. This then can be used to use the available space on mobile better. - Resize your browser to see the effect of the responsive configuration. - - type: live-example - data: - title: Add peak circles using the draw events - level: 4 - id: example-bar-with-circle-modify-drawing - classes: ct-golden-section - intro: > - With the help of draw events we are able to add a custom SVG shape to the peak of our bars. - - type: live-example - data: - title: Multi-line labels - level: 4 - id: example-multiline-bar - classes: ct-golden-section - intro: > - Chartist will figure out if your browser supports foreignObject and it will use them to create labels - that are based on regular HTML text elements. Multi-line and regular CSS styles are just two of many - benefits while using foreignObjects! - - type: live-example - data: - title: Stacked bar chart - level: 4 - id: stacked-bar - classes: ct-golden-section - intro: > - You can also set your bar chart to stack the series bars on top of each other easily by using the - stackBars property in your configuration. - - type: live-example - data: - title: Horizontal bar chart - level: 4 - id: example-bar-horizontal - classes: ct-golden-section - intro: > - Guess what! Creating horizontal bar charts is as simple as it can get. There's no new chart type - you need to learn, just passing an additional option is enough. - - type: live-example - data: - title: Extreme responsive configuration - level: 4 - id: example-bar-extreme-responsive - classes: ct-golden-section - intro: > - As all settings of a chart can be customized with the responsive configuration override mechanism of - Chartist, you can create a chart that adopts to every media condition! - - type: live-example - data: - title: Distributed series - level: 4 - id: example-bar-distributed-series - classes: ct-golden-section - intro: > - Sometime it's desired to have bar charts that show one bar per series distributed along the x-axis. If - this option is enabled, you need to make sure that you pass a single series array to Chartist that - contains the series values. In this example you can see T-shirt sales of a store categorized by size. - - type: live-example - data: - title: Label placement - level: 4 - id: example-bar-label-position - classes: ct-golden-section - intro: > - You can change the position of the labels on line and bar charts easily by using the position - option inside of the axis configuration. - - - title: Pie chart examples - level: 3 - items: - - type: live-example - data: - title: Simple pie chart - level: 4 - id: simple-pie-chart - classes: ct-golden-section ct-negative-labels - intro: A very simple pie chart with label interpolation to show percentage instead of the actual data series value. - - type: live-example - data: - title: Pie chart with custom labels - level: 4 - id: pie-with-custom-labels - classes: ct-golden-section - intro: > - This pie chart is configured with custom labels specified in the data object. On desktop we use the labelOffset - property to offset the labels from the center. Also labelDirection can be used to control the direction - in which the labels are expanding. - - - type: live-example - data: - title: Gauge chart - level: 4 - id: simple-gauge-chart - classes: ct-golden-section ct-negative-labels - intro: This pie chart uses donut, startAngle and total to draw a gauge chart. - - - type: live-example - data: - title: Animating a Donut with Svg.animate - level: 4 - id: example-donut-animation - classes: ct-golden-section - intro: > - Although it'd be also possible to achieve this animation with CSS, with some minor suboptimal - things, here's an example of how to animate donut charts using Chartist.Svg.animate and SMIL. - - - type: live-example - data: - title: Donut chart using fill rather than stroke - level: 4 - id: example-donut-solid-chart - classes: ct-golden-section ct-negative-labels - intro: This pie chart uses donut and donutSolid to draw a donut chart. - - - type: live-example - data: - title: Gauge chart using fill rather than stroke - level: 4 - id: example-gauge-donut-solid-chart - classes: ct-golden-section ct-negative-labels - intro: This pie chart uses total, startAngle, donut and donutSolid to draw a gauge chart. diff --git a/site/data/pages/getting-started.yml b/site/data/pages/getting-started.yml deleted file mode 100644 index d18de12d1..000000000 --- a/site/data/pages/getting-started.yml +++ /dev/null @@ -1,729 +0,0 @@ -sections: - - title: Download and set-up - level: 3 - items: - - type: sub-section - data: - title: Bower - level: 4 - items: - - type: text - data: - text: 'The easiest way to get started with Chartist.js is by using bower:' - - - type: code - data: - lang: bash - code: bower install chartist --save - - - type: text - data: - text: > - The bower package contains the JavaScript library, CSS as well as the Sass (SCSS) files. - You can then integrate the desired dependencies in your project and start using them - immediately. - - - type: sub-section - data: - title: One, two, three, CSS! - level: 4 - items: - - type: text - data: - text: > - The quickest way to get things up and running is by using the Chartist.js CSS files. - The CSS is compiled from the Sass files with the default class names which are also - configured in the JavaScript library. You can then override the default styles or - modify the CSS file, however, for customization it's recommended to use the Sass - version of Chartist.js. - - - type: code-snippet - data: - id: simple-start - lang: html - - - type: heading - data: - level: 5 - title: Use a CDN alternatively - - - type: text - data: - text: > - If you'd like to get started even faster you can also use a CDN to load Chartist.js. The - awesome people at jsDelivr provide a fantastic job in hosting libraries from over 42 POP Locations - around the world! They always update Chartist.js to the latest version immediately and - they do all that for free! Check out the jsDeliver website - for more information. - - - type: code-snippet - data: - id: simple-start-cdn - lang: html - button: Show CDN Code - - - type: sub-section - data: - title: The Sass way - level: 4 - items: - - type: text - data: - text: > - If you like to customize your charts you can either remove the CSS fully and write your - own selectors using the Chartist.js Sass mixins or you just use the Chartist.js Sass - settings file to customize the look and feel of your charts. - - - type: text - data: - text: > - Styling inline SVG with CSS is a breeze and you should also consider writing your own - selectors for your charts and using the Sass mixins. You can read more about using the - Sass mixins in the advanced section. - - - type: text - data: - text: > - To customize the style of your charts using the Sass settings file you should copy the - settings file to your own Sass folder. - - - type: code - data: - lang: bash - code: cp bower_components/chartist/dist/scss/settings/_chartist-settings.scss styles - - - type: text - data: - text: > - Then just import your copy of the settings file before you import the chartist.scss - file and change the settings in your copy as desired. - - - type: code-snippet - data: - id: custom-include - lang: scss - - - type: heading - data: - level: 5 - title: Default settings - - - type: text - data: - text: > - The settings file contains all relevant variables used in the mixins and while - generating the default classes. You can simply change the settings for styling your - own charts. If you want to override certain settings based on state or pseeudo - selectors, you can use the individual mixins to only override specific styles. - - - type: text - data: - text: > - Take a look at the settings to see how to customize the style of the defalt Chartist.js - class selectors. - - - type: code-snippet - data: - id: default-sass-settings - button: Show default settings - path: src/styles/settings/_chartist-settings.scss - lang: scss - - - title: Create your first chart - level: 3 - items: - - type: text - data: - text: > - In this section you'll go through a simple example of how to use Chartist.js in your project. - You'll learn the default stages you go through when creating and customizing a basic line chart. - If you'd like to see more in depth and advanced examples you should check out - the advanced section or the examples page. - - - type: sub-section - data: - title: As simple as it can get - level: 4 - items: - - type: text - data: - text: > - Chartist provides you a very simple API to get started, however, while trying to follow the - best practice of relying on standards and clear separation of concerns it sometimes needs a small mind - shift in order to understand how things are meant to work within Chartist. Instead of specifying - your colors, line width and other style related things in the JavaScript API, you'll need to use - CSS in order to control your appearance. - - - type: sub-section - data: - title: Creating a chart using aspect ratios - level: 5 - items: - - type: text - data: - text: > - Because of the nature of responsive design it's important to understand that blocks in design like images, - videos and similar content need to be able to scale and adapt to the media. In order for an element to scale, you - need to rely on a certain aspect ratios (like 4:3, 3:2, 16:9 etc.) rather than specifying a fixed width and height. - - - type: text - data: - text: > - To designers this Idea is absolutely not new, but to developers this might be at first. However, when a designer talks - to a developer about the images being 320x240 on this page and 300x200 on that element, he actually just - translated his idea of using 4:3 and 3:2 images into pixels. - - - type: text - data: - text: > - With Chartist you can specify those ratios directly on containers without the need to calculate any fixed dimensions. - In order to create a chart that is using the aspect ratio of a golden section you can just add the class .ct-golden-section - to your container where you initialize Chartist. - - - type: text - data: - text: > - Here is a list of all available container ratios (If using the Sass version of Chartist you can also easily add others): - - - type: table - data: - id: container-aspect-ratio-classes - button: Show available aspect ratios - header: - - Container class - - Ratio - rows: - - - - .ct-square - - '1' - - - - .ct-minor-second - - '15:16' - - - - .ct-major-second - - '8:9' - - - - .ct-minor-third - - '5:6' - - - - .ct-major-third - - '4:5' - - - - .ct-perfect-fourth - - '3:4' - - - - .ct-perfect-fifth - - '2:3' - - - - .ct-minor-sixth - - '5:8' - - - - .ct-golden-section - - '1:1.618' - - - - .ct-major-sixth - - '3:5' - - - - .ct-minor-seventh - - '9:16' - - - - .ct-major-seventh - - '8:15' - - - - .ct-octave - - '1:2' - - - - .ct-major-tenth - - '2:5' - - - - .ct-major-eleventh - - '3:8' - - - - .ct-major-twelfth - - '1:3' - - - - .ct-double-octave - - '1:4' - - - type: text - data: - text: > - Use the following HTML code to specify a container with one of the above aspect ratio classes. - - - type: code - data: - code: '
' - lang: html - - - type: text - data: - text: > - When using a fixed aspect ratio container you can then simply initialize your chart without - specifying any width or height in the options. - - - type: code-snippet - data: - id: simple-start-aspect-ratio-chart - lang: js - - - type: sub-section - data: - title: Creating a chart with fixed dimensions - level: 5 - items: - - type: text - data: - text: > - In order to create a simple line chart with fixed width and height you only need to have a - container element and initialize Chartist.js on it. - Give the container the class ct-chart so that it will get the default styles (if you don't - use your own classes). - - - type: code-snippet - data: - id: simple-start-fixed-chart - lang: js - - - type: sub-section - data: - title: More than one chart on my page? - level: 5 - items: - - type: text - data: - text: > - The example above uses the chartist default class to select the element where the chart should - be created. This class is important for applying the right styles in the CSS of Chartist. If - you need to create individual charts on one page, you should use IDs to initialize them separately. - - - type: code-snippet - data: - id: two-charts - lang: html - - - type: sub-section - data: - title: The configuration of your chart - level: 4 - items: - - type: text - data: - text: > - Chartist.js is built very flexible and almost everything within your charts can be configured. - In the default settings (that you can check in the API Documentation) - you'll get some predefined defaults applied to your charts. - - - type: text - data: - text: > - You can always override the default settings of your charts by passing in a configuration - object at creation time. - - - type: example-chart - data: - id: simple-configuration-chart - classes: ct-golden-section - show-code-button: Show code and comments - - - type: sub-section - data: - title: Responsive sugar topping - level: 4 - items: - - type: text - data: - text: > - Responsive web design is all based on - media queries - as you are probably already aware. Media queries are great and they help you to define media related - conditions that you can use to apply different styles for different media. - - type: text - data: - text: > - Sometimes it's also required to have different behavior on certain media and it's possible that - a specific component of your web site should behave in an other way on a small media than on a - large one. Luckily there is window.matchMedia in your browser that comes to the rescue. With - matchMedia it's possible to let your javascript react differently based on CSS3 media queries. - - - type: heading - data: - level: 5 - title: Responsive setting overrides - - - type: text - data: - text: > - Configuring different chart behavior for various media is made simple with an override - mechanism. The priority of the override mechanism is based on order of specification of - the matching media queries. - - - type: text - data: - text: > - The following example uses different label interpolations (to save some space) on small media - as well as different spacing between the bars of the bar chart series. Resize your browser window - to see the effect. - - - type: example-chart - data: - id: example-simple-bar - classes: ct-golden-section - type: Bar - show-code-button: Show code and comments - - - type: hint - data: - title: Cross-browser support - classes: hint-cross-browser - text: > - For IE9 you need to use a matchMedia polyfill. You should take a look at - Paul Irish's matchMedia polyfill. Make - sure you include matchMedia.js as well as matchMedia.addListener.js as always both are needed - to polyfill the full specification of window.matchMedia. - - - type: sub-section - data: - title: Different configuration for different series - level: 4 - items: - - type: text - data: - text: > - Chartist also allows you to add specific configuration overrides for your series. This is useful - if you want to combine different looks for your series on the same chart. - - type: text - data: - text: > - You can even take this one step further by again overriding your series configuration in some - responsive settings overrides. This sounds complicated but it actually is very simple. Check the - example code with inline comments below to see how easy it is. - - type: example-chart - data: - id: example-line-series-override - classes: ct-golden-section - show-code-button: Show code - - - title: Styling your chart - level: 3 - items: - - type: text - data: - text: > - You should always use the power of CSS to make your data pop into your visitors eyes. I know - Iā€™m telling this over and over but itā€™s all about a clean separation of concerns. In this chapter - youā€™ll find some useful information on how to style your charts with CSS. - - type: sub-section - data: - title: Customizing the default CSS - level: 4 - items: - - type: text - data: - text: > - Chartist comes with a highly customizable Sass file that allows you to customize all sorts of - appearance relevant things on your charts including colours used for series, line styles, - thickness and other properties. If you have the advantage of having a Sass build process at - your disposal, I highly recommend you to use the Sass version of Chartist instead of the - already prebuilt CSS. For more information on how to use the Sass version - please check out the Sass way of Chartist. - - - type: text - data: - text: > - Chartist generates predefined classes for series by default. Those class names are alphabetically - ordered and always start with ct-series-a, where the letter a will be iterated - with each series count (a, b, c, d etc.). To address a specific series in styling, youā€™ll - need to create some styles for the corresponding series class name. - - - type: text - data: - text: > - Here is a list of selectors from the different chart types with some comments to explain what - properties can be used to influence the visual style of your charts. - - - type: sub-section - data: - title: Line chart - level: 5 - items: - - type: code-snippet - data: - id: custom-style-line-chart - lang: css - - - type: sub-section - data: - title: Bar chart - level: 5 - items: - - type: code-snippet - data: - id: custom-style-bar-chart - lang: css - - - type: sub-section - data: - title: Pie chart - level: 5 - items: - - type: code-snippet - data: - id: custom-style-pie-chart - lang: css - - - type: sub-section - data: - title: Donut chart - level: 5 - items: - - type: code-snippet - data: - id: custom-style-donut-chart - lang: css - - - type: sub-section - data: - title: Colour up your charts - level: 4 - items: - - type: text - data: - text: > - Colour is a core attribute of appearance and as you already know, we believe in strong - separation of concerns in web development. Therefore, Chartist does not include any options - within the JavaScript API to control colour of your charts. - - type: text - data: - text: > - This might first seem very inconvenient, but youā€™ll agree that itā€™s the right choice once you - need to change some colours in your web project where youā€™d need to go through some nasty - find-and-replace adventures in your JavaScript files to fix some colour mismatches. - - type: text - data: - text: > - The prebuilt CSS version of Chartist ships with 15 default colours that will be applied to your - chart series elements. If you just want to override some of these colours I recommend you use - the information - found in how to customize the default CSS of Chartist. - - type: text - data: - text: > - The following example illustrates how youā€™d override the colours of your line chart line and - point elements, within the two first sieries (ct-series-a and ct-series-b). - - type: code-snippet - data: - id: colour-override-line-chart - lang: css - - - type: text - data: - text: > - Note that on SVG elements there are two CSS properties for colourization. For strokes you - should use the stroke property and assign a CSS colour value. For fill areas you - can use the fill property. More information can be found in the above topics. - - - type: sub-section - data: - title: Dynamic colouring - level: 5 - items: - - type: text - data: - text: > - Often, predefined classes which can be used to colour your charts are fine but sometimes - CSS is not flexible enough to control all facets of dynamic appearance. While we could - build semantic classes like level1, level2, level3 and so on, we could then assign a - class dynamically, but still weā€™d need to rely on discrete values defined in CSS. One - lack of CSS today is that it does not incorporate dynamic values like mouse position - or placeholder variables that can be linked to JavaScript. - - type: text - data: - text: > - So, how do you go about your heat map chart or dynamically calculated line chart - strokes based on your data? - - type: text - data: - text: > - Chartist offers you a powerful tool for such kind of chart manipulations. The intrusive - event pipeline of Chartist allows you to hook into a draw event that allows - you to modify all your charts elements on the go while theyā€™re drawn. - - type: text - data: - text: > - The following live code example shows you how to make a dynamically coloured chart - based on some data. Please go ahead and play around with the example, thatā€™s what live - coding is for! For more information on how to use the Chartist.Svg API, - please check - the API documentation. - - type: live-example - data: - title: Using draw events to modify chart elements - level: 5 - id: example-dynamic-colours - classes: ct-golden-section - intro: > - By using the intrusive event pipeline of Chartist, you can easily change the behaviour of your - charts in a consistent and convenient way. - - - title: Advanced - level: 3 - items: - - type: text - data: - text: > - In the following chapter you'll find some advanced usage examples that might be of interest for you. - Chartist is very flexible because it relies on standard technology. This also means that you will need - to implement certain things yourself. This topic should cover some of these use-cases and give you some - basic idea why and how to implement certain functionality. - - - type: sub-section - data: - title: Animations using Chartist.Svg - level: 4 - items: - - type: text - data: - text: > - Usually we recommend using CSS for animations as it's closer to a clean separation of concerns. - However, sometimes you would want to animate SVG properties that are not available in CSS to animate. - For this purpose we have added a simple but powerful animation API that allows you to create SMIL - animations in a more convenient way. - - type: text - data: - text: > - In combination with the draw events of Chartist the animations are a very powerful and - flexible tool. You can intercept almost any step in chartist and if there is an SVG element - involved you can animate it using - Chartist.Svg.animate. - - type: text - data: - text: > - The following simple example shows you how to created a delayed fade in effect for the a scatter chart. - You can also edit the example to play around with the settings. - - - type: live-example - data: - title: Some SVG Animations can only be done with SMIL - level: 5 - id: example-simple-svg-animation - classes: ct-golden-section - intro: > - Edit this example to figure out how to tweak animations. The force is strong in you young padawan! - - - type: sub-section - data: - title: Switching axis type - level: 4 - items: - - type: text - data: - text: > - The default configuration of the line chart is that it will use a step based X-Axis and an - automatic linear scale for the Y-Axis. This is all happening under the hood of Chartist and - already satisfies a lot of use-cases. - - type: text - data: - text: > - Sometimes though, it's not enough to have a fixed step chart and you'd need something a bit - more complex. Something that allows you to plot those values along the X- and Y-Axis, instead - of just the Y-Axis. Sometimes, you'd also want to specify the ticks on your chart manually - rather than having them auto calculated from Chartist. - - type: text - data: - text: > - Of course Chartist wouldn't let you down with all those ideas you have in mind on how to - visualize your data! - - - type: sub-section - data: - title: A line chart is only 1-dimensional?! - level: 5 - items: - - type: text - data: - text: > - By default, Chartist uses Chartist.StepAxis for the X-Axis and Chartist.AutoScaleAxis - for the Y-Axis. Please read the API documentation - if you'd like to get more details, or available options on axis configuration. - - type: text - data: - text: > - The step based axis will not use any value for projection but rather rely on the index - of the given value to determine the position. This is fine for discrete steps of one - dimensional data, like we know it from regular Chartist charts: - - type: code-snippet - data: - id: 1-dimension-values - lang: js - - type: text - data: - text: > - What really happens with such one dimensional series data under the hood is that it will - be transformed into two dimensional data like so: - - type: code-snippet - data: - id: 2-dimensions-values - lang: js - - type: text - data: - text: > - You can see that Chartist will automatically convert one dimensional data into two - dimensional values where the previous value is assigned to y and x will be set to - undefined. As the default axis for projecting the x value - is a Chartist.StepAxis that relies on the value index rather than the - value, this is perfectly fine for the default setup. - - - - type: sub-section - data: - title: Creating an XY-plot chart - level: 5 - items: - - type: text - data: - text: > - In order to plot on the X-Axis too, we'd need to switch the standard axis type - Chartist.StepAxis to something more continuous. Let's create a full fledged auto - scale chart that scales both the Y- and X-Axis automatically using - the Chartist.AutoScaleAxis! - - type: live-example - data: - title: Configure your axis type - level: 6 - id: example-axis-auto - classes: ct-golden-section - intro: > - Note that we have just specified the X-Axis because the Y-Axis is configured to - Chartist.AutoScaleAxis by default. - - type: text - data: - text: > - A few things are different in this chart. Because - the labels array of our data is just used to be mapped as ticks option for the - default Chartist.StepAxis X-Axis, we can completely remove the labels from our data, - once we use a different axis than the step based one. Also you can see now from the - data series is that we are specifying 2-dimensional values directly. - - - type: sub-section - data: - title: Fixed stuff can be sweet too! - level: 5 - items: - - type: text - data: - text: > - The following example shows how to create an axis with some fixed ticks. - The Chartist.FixedScaleAxis can be used to create a more rudimentary - continuous linear scale, where ticks can be fixed either with an array of values or - with a divisor. For the detailed options please check - the API documentation. - - type: live-example - data: - title: Unleash your creativity... - level: 6 - id: example-axis-fixed-and-auto - classes: ct-golden-section - intro: > - Let's say we'd like to fix a few ticks on the Y-Axis on our chart as those are the only - ones we're interested in. The X-Axis should be continuous too, but let's make - that axis a Chartist.AutoScaleAxis. diff --git a/site/data/pages/index.yml b/site/data/pages/index.yml deleted file mode 100644 index 201742163..000000000 --- a/site/data/pages/index.yml +++ /dev/null @@ -1,321 +0,0 @@ -affiliate-projects: - - title: Material Dashboard Pro - link: https://www.creative-tim.com/product/material-dashboard-pro?ref=chartist.io - image: - src: https://s3.amazonaws.com/creativetim_bucket/products/51/original/opt_mdp_thumbnail.jpg - alt: Material Dashboard Pro - - title: Material Dashboard Pro Angular - link: https://www.creative-tim.com/product/material-dashboard-pro-angular2?ref=chartist.io - image: - src: https://s3.amazonaws.com/creativetim_bucket/products/55/original/opt_mdp_angular_thumbnail.jpg - alt: Material Dashboard Pro Angular - - title: Light Bootstrap Dashboard PRO React - link: https://www.creative-tim.com/product/light-bootstrap-dashboard-pro-react?ref=chartist.io - image: - src: https://s3.amazonaws.com/creativetim_bucket/products/66/original/opt_lbdp_react_thumbnail.jpg - alt: Light Bootstrap Dashboard PRO React -gallery-examples: - - id: example-gallery-one - classes: ct-golden-section - - id: example-gallery-two - classes: ct-golden-section - - id: example-gallery-three - classes: ct-golden-section - - id: example-gallery-four - classes: ct-golden-section - -sections: - - title: Browser compatibility - level: 4 - items: - - type: browser-support-table - data: - browsers: - - IE9 - - IE10 - - IE11 - - Firefox 31 - - Chrome 35 - - Safari 7 - - Safari 8 - - Android 4.3 - - Android 4.4 - - iOS Safari 6 - - iOS Safari 7 - features: - - name: Overall Browser Support - browsers: - - name: IE9 - status: supported - text: Supported - - name: IE10 - status: supported - text: Supported - - name: IE11 - status: supported - text: Supported - - name: Firefox 31 - status: supported - text: Supported - - name: Chrome 35 - status: supported - text: Supported - - name: Safari 7 - status: supported - text: Supported - - name: Safari 8 - status: supported - text: Supported - - name: Android 4.3 - status: supported - text: Supported - - name: Android 4.4 - status: supported - text: Supported - - name: iOS Safari 6 - status: supported - text: Supported - - name: iOS Safari 7 - status: supported - text: Supported - - name: Multi-line Labels (foreignObject) - browsers: - - name: IE9 - status: not-supported - text: Not supported - - name: IE10 - status: not-supported - text: Not supported - - name: IE11 - status: not-supported - text: Not supported - - name: Firefox 31 - status: supported - text: Supported - - name: Chrome 35 - status: supported - text: Supported - - name: Safari 7 - status: not-supported - text: Not supported - - name: Safari 8 - status: supported - text: Supported - - name: Android 4.3 - status: not-supported - text: Not supported - - name: Android 4.4 - status: supported - text: Supported - - name: iOS Safari 6 - status: not-supported - text: Not supported - - name: iOS Safari 7 - status: supported - text: Supported - - name: Advanced CSS Animations - browsers: - - name: IE9 - status: not-supported - text: Not supported - - name: IE10 - status: not-supported - text: Not supported - - name: IE11 - status: not-supported - text: Not supported - - name: Firefox 31 - status: supported - text: Supported - - name: Chrome 35 - status: supported - text: Supported - - name: Safari 7 - status: not-supported - text: Not supported - - name: Safari 8 - status: supported - text: Supported - - name: Android 4.3 - status: not-supported - text: Not supported - - name: Android 4.4 - status: supported - text: Supported - - name: iOS Safari 6 - status: supported - text: Supported - - name: iOS Safari 7 - status: supported - text: Supported - - name: SVG Animations with SMIL - browsers: - - name: IE9 - status: not-supported - text: Not supported - - name: IE10 - status: not-supported - text: Not supported - - name: IE11 - status: not-supported - text: Not supported - - name: Firefox 31 - status: supported - text: Supported - - name: Chrome 35 - status: supported - text: Supported - - name: Safari 7 - status: supported - text: Supported - - name: Safari 8 - status: supported - text: Supported - - name: Android 4.3 - status: supported - text: Supported - - name: Android 4.4 - status: supported - text: Supported - - name: iOS Safari 6 - status: supported - text: Supported - - name: iOS Safari 7 - status: supported - text: Supported - - name: Responsive Options Override - browsers: - - name: IE9* - status: supported - text: Supported with polyfill - - name: IE10 - status: supported - text: Supported - - name: IE11 - status: supported - text: Supported - - name: Firefox 31 - status: supported - text: Supported - - name: Chrome 35 - status: supported - text: Supported - - name: Safari 7 - status: supported - text: Supported - - name: Safari 8 - status: supported - text: Supported - - name: Android 4.3 - status: supported - text: Supported - - name: Android 4.4 - status: supported - text: Supported - - name: iOS Safari 6 - status: supported - text: Supported - - name: iOS Safari 7 - status: supported - text: Supported - - - title: Projects / Wrapper libraries - level: 4 - items: - - type: text - data: - text: These projects and wrapper libraries are known to me right now that either use Chartist.js or wrap them into a library for usage in a framework. If you know other projects that use Chartist.js please let us know or make a pull request for this file. - - type: table - data: - id: chartist-projects-table - header: - - Project - - Type - rows: - - - - 'node-chartist' - - Node Package for Server-side Charts - - - - 'ng-chartist.js' - - Angular Directive - - - - 'chartistAngularDirective.js' - - Angular Directive - - - - 'react-chartist' - - React Component - - - - 'meteor-chartist-js' - - Meteor Package - - - - 'tablepress_chartist' - - Wordpress / Tablepress Extension - - - - 'ember-cli-chartist' - - Ember Addon - - - - 'ChartistJSF' - - Java Server Faces (Prime Faces) Component - - - -'vue-chartist' - - Vue plugin - - - -'aurelia-chartist' - - Aurelia plugin - - title: Chart CSS animation example - level: 3 - items: - - type: example-chart - data: - id: example-line-months-interpolation - classes: ct-golden-section dark - - type: hint - data: - title: Cross-browser support - classes: hint-cross-browser - text: Note that CSS3 animations on SVG CSS attributes are not supported on all browsers and the appearance may vary. - side-notes: - - type: text - data: - text: Specifying the style of your chart in CSS is not only cleaner but also enables you to use awesome CSS animations and transitions to be applied to your SVG elements! - - - title: Crazy Animations with SMIL! - level: 3 - items: - - type: example-chart - data: - id: example-line-svg-animation - classes: ct-golden-section - side-notes: - - type: text - data: - text: > - Almost limitless animation possibilities with the Chartist.Svg animation API. Checkout the - advanced getting started guide about SVG - animations with SMIL. - - - title: Responsive charts configuration - level: 3 - items: - - type: example-chart - data: - id: example-line-simple-responsive - classes: ct-golden-section - show-code-button: Show code - - type: sub-section - data: - title: Configuration overrides based on media queries - level: 4 - items: - - type: text - data: - text: Configuring different chart behavior for various media is made simple with an override mechanism. The priority of the override mechanism is based on order of specification of the matching media queries. - - type: hint - data: - title: Cross-browser support - classes: hint-cross-browser - text: For IE9 you need to use a matchMedia polyfill. You should take a look at Paul Irish's matchMedia polyfill. - side-notes: - - type: text - data: - text: With the clear separation of concerns within Chartist.js, you're able to style your charts with CSS in @media queries. However, sometimes you also need to conditionally control the behavior of your charts. For this purpose, Chartist.js provides you with a simple configuration override mechanism based on media queries. diff --git a/site/data/pages/plugins.yml b/site/data/pages/plugins.yml deleted file mode 100755 index 6144d15b9..000000000 --- a/site/data/pages/plugins.yml +++ /dev/null @@ -1,335 +0,0 @@ -sections: - - title: Overview - level: 3 - items: - - type: sub-section - data: - title: What's a plugin? - level: 4 - items: - - type: text - data: - text: > - Plugins allow you to extend the basic functionality of your charts. You can develop your own - plugins or use plugins that others have already developed. - - - type: sub-section - data: - title: How to use plugins - level: 4 - items: - - type: text - data: - text: > - Once you have included a plugin in your project you can use it in your chart by specifying it explicitly - in the plugins section of your chart configuration. Check the List of plugins - section to see what plugins you can use. - - - type: code-snippet - data: - id: plugin-include - lang: js - - - type: hint - data: - title: Order of specification - text: > - Plugins are chainable and the order of specification in the plugins array of your configuration - is important for the end result. - - - type: text - data: - text: > - Chartist.js expects an array of plugin functions to be present in the plugins array - of the chart configuration. Usually plugins should be written as function factories so you - can pass additional parameters and options to the factory which is creating the plugin function and returns it. - - - title: Available plugins - level: 3 - items: - - type: text - data: - text: > - Here you can find a list of known plugins. Usually plugins should be available from both Bower and NPM for - installation. If you have developed your own plugin but can't find it here, you should create a - pull request - for this page and add your plugin to the list. - - - type: sub-section - data: - title: Accessibility Plugin - level: 4 - items: - - type: text - data: - text: > - 285 million people are estimated to be visually impaired worldwide: 39 million are blind and 246 have low vision. - We should stop the discrimination against our fellow human and, by fairly little effort and following best - practices, make our content on the web accessible. - - type: text - data: - text: > - The accessibility plugin makes your chart accessible for blind people. It automatically generates - visually hidden accessibility tables that allow you to describe your chart for blind people easily. - This plugin was tested with NVDA and JAWS, and provides all necessary things for building an accessible chart. - - type: text - data: - text: > - By simply including this plugin with default configurations you will already make your charts - accessible to blind people! If you put in 5 minutes effort in customizing the configuration with - meaningful content, you will actually even make them enjoy your charts! - - type: live-example - data: - id: example-plugin-accessibility - classes: ct-golden-section - intro: > - Creating an accessible chart that shows some fiscal year figures. This example overrides the visuallyHiddenStyles - configuration property so you can actually see the "invisible" table. - - type: table - data: - rows: - - - - 'Author:' - - Gion Kunz - - - - 'Link:' - - 'chartist-plugin-accessibility' - - - type: sub-section - data: - title: Tooltip Plugin - level: 4 - items: - - type: text - data: - text: > - The tooltip plugin makes it super simple to add tooltips to most of your charts which can often - increase it's usability. - - type: text - data: - text: > - By simply including this plugin with default configurations you will already make your charts - get some tooltips showing. - - type: live-example - data: - id: example-plugin-tooltip - classes: ct-golden-section - intro: > - Creating a simple line chart showing how the tooltips work. - - type: table - data: - rows: - - - - 'Author:' - - Markus Padourek - - - - 'Link:' - - 'chartist-plugin-tooltip' - - - type: sub-section - data: - title: Point Label Plugin - level: 4 - items: - - type: text - data: - text: > - The point label plugin can be used if you like to add simple labels on top of your data points - on line charts. This is usefull if you'd like the user to see the exact values of the data without - any additional interaction. - - type: live-example - data: - id: example-plugin-pointlabel - classes: ct-golden-section - intro: > - The point label plugin draws labels on top of your line chart points. - - type: table - data: - rows: - - - - 'Author:' - - Gion Kunz - - - - 'Link:' - - 'chartist-plugin-pointlabels' - - - type: sub-section - data: - title: Axis Title Plugin - level: 4 - items: - - type: text - data: - text: > - The axis title plugin allows you to add simple titles to your axes. - - type: live-example - data: - id: example-plugin-axistitle - classes: ct-golden-section - intro: > - While not a core functionality, this plugin makes it absolutely easy to add axis titles to your chart. - - type: table - data: - rows: - - - - 'Author:' - - Alex Stanbury - - - - 'Link:' - - 'chartist-plugin-axistitle' - - type: sub-section - data: - title: Threshold Plugin - level: 4 - items: - - type: text - data: - text: > - This Chartist plugin can be used to divide your Line or Bar chart with a threshold. - - type: live-example - data: - id: example-plugin-threshold - classes: ct-golden-section - intro: > - Everything above and below the - threshold will be tagged with a special class, in order for your to apply different styling where appropriate. - - type: table - data: - rows: - - - - 'Author:' - - Gion Kunz - - - - 'Link:' - - 'chartist-plugin-threshold' - - type: sub-section - data: - title: FillDonut Plugin - level: 4 - items: - - type: text - data: - text: > - Let animated donuts look filled and provide options for append labels and html to the donut chart. - This plugin draw the donut a second time but without delay and animation, so it animation will overlaps and looks like the fill the donut. - Also your a possible to add multiple html-labels to the donut on different positions. - - type: live-example - data: - id: example-plugin-fill-donut - classes: ct-golden-section - intro: > - Let animated donuts look filled and provide options for append labels and html to the donut chart. - - type: table - data: - rows: - - - - 'Author:' - - Moxx - - - - 'Link:' - - 'chartist-plugin-fill-donut' - - type: sub-section - data: - title: Zoom Plugin - level: 4 - items: - - type: text - data: - text: > - The zoom plugin allows you to zoom into charts. - - type: live-example - data: - id: example-plugin-zoom - classes: ct-golden-section - intro: > - Use the left mouse button to drag a zoom box. The plugin provides a callback that can be used to reset the zoom. - - type: table - data: - rows: - - - - 'Author:' - - Hannes Kamecke - - - - 'Link:' - - 'chartist-plugin-zoom' - - type: sub-section - data: - title: Target Line Plugin - level: 4 - items: - - type: text - data: - text: > - The target line plugin allows you to draw a target line on your chart. - - type: live-example - data: - id: example-plugin-targetline - classes: ct-golden-section - intro: > - Pass a value to the plugin to draw a target line on the chart. - - type: table - data: - rows: - - - - 'Author:' - - Harry Twyford - - - - 'Link:' - - 'chartist-plugin-targetline' - - title: Develop a plugin - level: 3 - items: - - - type: text - data: - text: > - Plugins are functions that will be called for each chart that is created with the plugin enabled - (specified in the plugins configuration of a chart). The plugin function will be called with one - argument which is the chart that is registering itself for the plugin. If you wish to use some additional - parameters or configuration for your plugin initialization, it's recommended to use a function factory. - You can check the example plugin for an implementation using a function factory. - - - type: code-snippet - data: - id: plugin-signature - lang: js - - - type: text - data: - text: > - From the chart object options, svg (root SVG element) and the - eventEmitter can be used to manipulate the behaviour of the chart. It's the - responsibility of the plugin to decide if it should be activated on a given chart (i.e. by checking - the chart type chart instanceof Chartist.Line etc.). - - - type: text - data: - text: > - It's recommended to use the events of Chartist.js (like draw) to manipulate the - underlying elements. Using the events, plugins can chain up in a natural way and work independently - on extending the functionality of the chart. - - - type: text - data: - text: > - Plugins should contain their own default settings and use Chartist.extend to override - the settings specified in the options passed to the plugin factory function. Using - the optionsProvider of the chart object one could also implement functioanlity based on - the chart configuration as well as responsive configuration. - - - type: sub-section - data: - title: Example Plugin - level: 4 - items: - - type: text - data: - text: > - The following code shows an example plugin that is also available for download and installation. - You can also use the repository - of the example plugin to start your own awesome Chartist.js plugin. - - - type: code-snippet - data: - id: plugin-example - lang: js diff --git a/site/examples/bi-polar-bar-interpolated.js b/site/examples/bi-polar-bar-interpolated.js deleted file mode 100644 index e78b04843..000000000 --- a/site/examples/bi-polar-bar-interpolated.js +++ /dev/null @@ -1,18 +0,0 @@ -var data = { - labels: ['W1', 'W2', 'W3', 'W4', 'W5', 'W6', 'W7', 'W8', 'W9', 'W10'], - series: [ - [1, 2, 4, 8, 6, -2, -1, -4, -6, -2] - ] -}; - -var options = { - high: 10, - low: -10, - axisX: { - labelInterpolationFnc: function(value, index) { - return index % 2 === 0 ? value : null; - } - } -}; - -new Chartist.Bar('.ct-chart', data, options); diff --git a/site/examples/example-axis-auto.js b/site/examples/example-axis-auto.js deleted file mode 100644 index cc2a0b6cf..000000000 --- a/site/examples/example-axis-auto.js +++ /dev/null @@ -1,14 +0,0 @@ -new Chartist.Line('.ct-chart', { - series: [[ - {x: 1, y: 100}, - {x: 2, y: 50}, - {x: 3, y: 25}, - {x: 5, y: 12.5}, - {x: 8, y: 6.25} - ]] -}, { - axisX: { - type: Chartist.AutoScaleAxis, - onlyInteger: true - } -}); diff --git a/site/examples/example-axis-fixed-and-auto.js b/site/examples/example-axis-fixed-and-auto.js deleted file mode 100644 index 3638693a0..000000000 --- a/site/examples/example-axis-fixed-and-auto.js +++ /dev/null @@ -1,21 +0,0 @@ -new Chartist.Line('.ct-chart', { - series: [[ - {x: 1, y: 100}, - {x: 2, y: 50}, - {x: 3, y: 25}, - {x: 5, y: 12.5}, - {x: 8, y: 6.25} - ]] -}, { - axisX: { - type: Chartist.AutoScaleAxis, - onlyInteger: true - }, - axisY: { - type: Chartist.FixedScaleAxis, - ticks: [0, 50, 75, 87.5, 100], - low: 0 - }, - lineSmooth: Chartist.Interpolation.step(), - showPoint: false -}); diff --git a/site/examples/example-bar-distributed-series.js b/site/examples/example-bar-distributed-series.js deleted file mode 100644 index 99f02ba63..000000000 --- a/site/examples/example-bar-distributed-series.js +++ /dev/null @@ -1,6 +0,0 @@ -new Chartist.Bar('.ct-chart', { - labels: ['XS', 'S', 'M', 'L', 'XL', 'XXL', 'XXXL'], - series: [20, 60, 120, 200, 180, 20, 10] -}, { - distributeSeries: true -}); diff --git a/site/examples/example-bar-extreme-responsive.js b/site/examples/example-bar-extreme-responsive.js deleted file mode 100644 index 6aa8225b7..000000000 --- a/site/examples/example-bar-extreme-responsive.js +++ /dev/null @@ -1,46 +0,0 @@ -new Chartist.Bar('.ct-chart', { - labels: ['Quarter 1', 'Quarter 2', 'Quarter 3', 'Quarter 4'], - series: [ - [5, 4, 3, 7], - [3, 2, 9, 5], - [1, 5, 8, 4], - [2, 3, 4, 6], - [4, 1, 2, 1] - ] -}, { - // Default mobile configuration - stackBars: true, - axisX: { - labelInterpolationFnc: function(value) { - return value.split(/\s+/).map(function(word) { - return word[0]; - }).join(''); - } - }, - axisY: { - offset: 20 - } -}, [ - // Options override for media > 400px - ['screen and (min-width: 400px)', { - reverseData: true, - horizontalBars: true, - axisX: { - labelInterpolationFnc: Chartist.noop - }, - axisY: { - offset: 60 - } - }], - // Options override for media > 800px - ['screen and (min-width: 800px)', { - stackBars: false, - seriesBarDistance: 10 - }], - // Options override for media > 1000px - ['screen and (min-width: 1000px)', { - reverseData: false, - horizontalBars: false, - seriesBarDistance: 15 - }] -]); diff --git a/site/examples/example-bar-horizontal.js b/site/examples/example-bar-horizontal.js deleted file mode 100644 index b70fa008c..000000000 --- a/site/examples/example-bar-horizontal.js +++ /dev/null @@ -1,14 +0,0 @@ -new Chartist.Bar('.ct-chart', { - labels: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'], - series: [ - [5, 4, 3, 7, 5, 10, 3], - [3, 2, 9, 5, 4, 6, 4] - ] -}, { - seriesBarDistance: 10, - reverseData: true, - horizontalBars: true, - axisY: { - offset: 70 - } -}); diff --git a/site/examples/example-bar-label-position.js b/site/examples/example-bar-label-position.js deleted file mode 100644 index 19b93d5c9..000000000 --- a/site/examples/example-bar-label-position.js +++ /dev/null @@ -1,16 +0,0 @@ -new Chartist.Bar('.ct-chart', { - labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], - series: [ - [5, 4, 3, 7, 5, 10, 3], - [3, 2, 9, 5, 4, 6, 4] - ] -}, { - axisX: { - // On the x-axis start means top and end means bottom - position: 'start' - }, - axisY: { - // On the y-axis start means left and end means right - position: 'end' - } -}); diff --git a/site/examples/example-bar-with-circle-modify-drawing.js b/site/examples/example-bar-with-circle-modify-drawing.js deleted file mode 100644 index 1b641cb84..000000000 --- a/site/examples/example-bar-with-circle-modify-drawing.js +++ /dev/null @@ -1,28 +0,0 @@ -// Create a simple bi-polar bar chart -var chart = new Chartist.Bar('.ct-chart', { - labels: ['W1', 'W2', 'W3', 'W4', 'W5', 'W6', 'W7', 'W8', 'W9', 'W10'], - series: [ - [1, 2, 4, 8, 6, -2, -1, -4, -6, -2] - ] -}, { - high: 10, - low: -10, - axisX: { - labelInterpolationFnc: function(value, index) { - return index % 2 === 0 ? value : null; - } - } -}); - -// Listen for draw events on the bar chart -chart.on('draw', function(data) { - // If this draw event is of type bar we can use the data to create additional content - if(data.type === 'bar') { - // We use the group element of the current series to append a simple circle with the bar peek coordinates and a circle radius that is depending on the value - data.group.append(new Chartist.Svg('circle', { - cx: data.x2, - cy: data.y2, - r: Math.abs(Chartist.getMultiValue(data.value)) * 2 + 5 - }, 'ct-slice-pie')); - } -}); diff --git a/site/examples/example-bipolar-line-area.js b/site/examples/example-bipolar-line-area.js deleted file mode 100644 index 213e6cf7e..000000000 --- a/site/examples/example-bipolar-line-area.js +++ /dev/null @@ -1,20 +0,0 @@ -new Chartist.Line('.ct-chart', { - labels: [1, 2, 3, 4, 5, 6, 7, 8], - series: [ - [1, 2, 3, 1, -2, 0, 1, 0], - [-2, -1, -2, -1, -2.5, -1, -2, -1], - [0, 0, 0, 1, 2, 2.5, 2, 1], - [2.5, 2, 1, 0.5, 1, 0.5, -1, -2.5] - ] -}, { - high: 3, - low: -3, - showArea: true, - showLine: false, - showPoint: false, - fullWidth: true, - axisX: { - showLabel: false, - showGrid: false - } -}); diff --git a/site/examples/example-donut-animation.js b/site/examples/example-donut-animation.js deleted file mode 100644 index 72f3501ef..000000000 --- a/site/examples/example-donut-animation.js +++ /dev/null @@ -1,55 +0,0 @@ -var chart = new Chartist.Pie('.ct-chart', { - series: [10, 20, 50, 20, 5, 50, 15], - labels: [1, 2, 3, 4, 5, 6, 7] -}, { - donut: true, - showLabel: false -}); - -chart.on('draw', function(data) { - if(data.type === 'slice') { - // Get the total path length in order to use for dash array animation - var pathLength = data.element._node.getTotalLength(); - - // Set a dasharray that matches the path length as prerequisite to animate dashoffset - data.element.attr({ - 'stroke-dasharray': pathLength + 'px ' + pathLength + 'px' - }); - - // Create animation definition while also assigning an ID to the animation for later sync usage - var animationDefinition = { - 'stroke-dashoffset': { - id: 'anim' + data.index, - dur: 1000, - from: -pathLength + 'px', - to: '0px', - easing: Chartist.Svg.Easing.easeOutQuint, - // We need to use `fill: 'freeze'` otherwise our animation will fall back to initial (not visible) - fill: 'freeze' - } - }; - - // If this was not the first slice, we need to time the animation so that it uses the end sync event of the previous animation - if(data.index !== 0) { - animationDefinition['stroke-dashoffset'].begin = 'anim' + (data.index - 1) + '.end'; - } - - // We need to set an initial value before the animation starts as we are not in guided mode which would do that for us - data.element.attr({ - 'stroke-dashoffset': -pathLength + 'px' - }); - - // We can't use guided mode as the animations need to rely on setting begin manually - // See http://gionkunz.github.io/chartist-js/api-documentation.html#chartistsvg-function-animate - data.element.animate(animationDefinition, false); - } -}); - -// For the sake of the example we update the chart every time it's created with a delay of 8 seconds -chart.on('created', function() { - if(window.__anim21278907124) { - clearTimeout(window.__anim21278907124); - window.__anim21278907124 = null; - } - window.__anim21278907124 = setTimeout(chart.update.bind(chart), 10000); -}); diff --git a/site/examples/example-donut-solid-chart.js b/site/examples/example-donut-solid-chart.js deleted file mode 100644 index 57b2a176b..000000000 --- a/site/examples/example-donut-solid-chart.js +++ /dev/null @@ -1,9 +0,0 @@ -new Chartist.Pie('.ct-chart', { - series: [20, 10, 30, 40] -}, { - donut: true, - donutWidth: 60, - donutSolid: true, - startAngle: 270, - showLabel: true -}); diff --git a/site/examples/example-dynamic-colours.js b/site/examples/example-dynamic-colours.js deleted file mode 100644 index c14bc9449..000000000 --- a/site/examples/example-dynamic-colours.js +++ /dev/null @@ -1,29 +0,0 @@ -var count = 45; -var max = 100; - -// Creating a bar chart with no labels and a series array with one series. For the series we generate random data with `count` elements and random data ranging from 0 to `max`. -var chart = new Chartist.Bar('.ct-chart', { - labels: Chartist.times(count), - series: [ - Chartist.times(count).map(Math.random).map(Chartist.mapMultiply(max)) - ] -}, { - axisX: { - showLabel: false - }, - axisY: { - onlyInteger: true - } -}); - -// This is the bit we are actually interested in. By registering a callback for `draw` events, we can actually intercept the drawing process of each element on the chart. -chart.on('draw', function(context) { - // First we want to make sure that only do something when the draw event is for bars. Draw events do get fired for labels and grids too. - if(context.type === 'bar') { - // With the Chartist.Svg API we can easily set an attribute on our bar that just got drawn - context.element.attr({ - // Now we set the style attribute on our bar to override the default color of the bar. By using a HSL colour we can easily set the hue of the colour dynamically while keeping the same saturation and lightness. From the context we can also get the current value of the bar. We use that value to calculate a hue between 0 and 100 degree. This will make our bars appear green when close to the maximum and red when close to zero. - style: 'stroke: hsl(' + Math.floor(Chartist.getMultiValue(context.value) / max * 100) + ', 50%, 50%);' - }); - } -}); diff --git a/site/examples/example-gallery-four.js b/site/examples/example-gallery-four.js deleted file mode 100644 index f2a5f7041..000000000 --- a/site/examples/example-gallery-four.js +++ /dev/null @@ -1,33 +0,0 @@ -var data = { - series: [60, 20] -}; - -var options = { - donut: true, - donutWidth: 40, - total: 100, - labelInterpolationFnc: function(value) { - return value + '%'; - } -}; - -var responsiveOptions = [ - [ - Foundation.media_queries.medium, - { - labelOffset: 30, - chartPadding: 10, - labelDirection: 'explode' - } - ], - [ - Foundation.media_queries.large, - { - labelOffset: -30, - chartPadding: 0, - labelDirection: 'implode' - } - ] -]; - -new Chartist.Pie('.ct-chart', data, options, responsiveOptions); \ No newline at end of file diff --git a/site/examples/example-gallery-one.js b/site/examples/example-gallery-one.js deleted file mode 100644 index daeb09ea9..000000000 --- a/site/examples/example-gallery-one.js +++ /dev/null @@ -1,11 +0,0 @@ -var data = { - labels: ['W1', 'W2', 'W3', 'W4', 'W5', 'W6', 'W7', 'W8', 'W9'], - series: [ - [12, 9, 7, 8, 6, 4, 3, 2, 0], - [2, 1, 3.5, 7, 9, 8, 7.7, 4, 7], - [1, 3, 4, 5, 6, 8, 9, 10, 11], - [11, 7.5, 5.5, 5.5, 4, 3.5, 2, 1, 0] - ] -}; - -new Chartist.Line('.ct-chart', data); \ No newline at end of file diff --git a/site/examples/example-gallery-three.js b/site/examples/example-gallery-three.js deleted file mode 100644 index 631f693f8..000000000 --- a/site/examples/example-gallery-three.js +++ /dev/null @@ -1,40 +0,0 @@ -var data = { - labels: ['Day one', 'Day two', 'Day three', 'Day four'], - series: [20, 15, 40, 10] -}; - -var options = { - labelInterpolationFnc: function(value) { - return value.split(/\s+/).reduce(function(str, elem) { - return str + elem[0] + '.'; - }, ''); - } -}; - -var responsiveOptions = [ - [ - Foundation.media_queries.medium, - { - chartPadding: 30, - labelOffset: 50, - labelDirection: 'explode', - labelInterpolationFnc: function(value) { - return value; - } - } - ], - [ - Foundation.media_queries.large, - { - labelOffset: 80 - } - ], - [ - Foundation.media_queries.xlarge, - { - labelOffset: 100 - } - ] -]; - -new Chartist.Pie('.ct-chart', data, options, responsiveOptions); \ No newline at end of file diff --git a/site/examples/example-gallery-two.js b/site/examples/example-gallery-two.js deleted file mode 100644 index e408db59c..000000000 --- a/site/examples/example-gallery-two.js +++ /dev/null @@ -1,13 +0,0 @@ -var data = { - labels: ['1938', '1939', '1940', '1941', '1942', '1943'], - series: [ - [12000, 9000, 7000, 8000, 12000, 10000], - [2000, 1000, 3500, 7000, 5000, 9000] - ] -}; - -var options = { - seriesBarDistance: 5 -}; - -new Chartist.Bar('.ct-chart', data, options); \ No newline at end of file diff --git a/site/examples/example-gauge-donut-solid-chart.js b/site/examples/example-gauge-donut-solid-chart.js deleted file mode 100644 index 735303ff6..000000000 --- a/site/examples/example-gauge-donut-solid-chart.js +++ /dev/null @@ -1,10 +0,0 @@ -new Chartist.Pie('.ct-chart', { - series: [20, 10, 30, 40] -}, { - donut: true, - donutWidth: 60, - donutSolid: true, - startAngle: 270, - total: 200, - showLabel: true -}); diff --git a/site/examples/example-line-area.js b/site/examples/example-line-area.js deleted file mode 100644 index ab86b9231..000000000 --- a/site/examples/example-line-area.js +++ /dev/null @@ -1,9 +0,0 @@ -new Chartist.Line('.ct-chart', { - labels: [1, 2, 3, 4, 5, 6, 7, 8], - series: [ - [5, 9, 7, 8, 5, 3, 5, 4] - ] -}, { - low: 0, - showArea: true -}); \ No newline at end of file diff --git a/site/examples/example-line-data-fill-holes.js b/site/examples/example-line-data-fill-holes.js deleted file mode 100644 index 0faae16d1..000000000 --- a/site/examples/example-line-data-fill-holes.js +++ /dev/null @@ -1,18 +0,0 @@ -var chart = new Chartist.Line('.ct-chart', { - labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], - series: [ - [5, 5, 10, 8, 7, 5, 4, null, null, null, 10, 10, 7, 8, 6, 9], - [10, 15, null, 12, null, 10, 12, 15, null, null, 12, null, 14, null, null, null], - [null, null, null, null, 3, 4, 1, 3, 4, 6, 7, 9, 5, null, null, null], - [{x:3, y: 3},{x: 4, y: 3}, {x: 5, y: undefined}, {x: 6, y: 4}, {x: 7, y: null}, {x: 8, y: 4}, {x: 9, y: 4}] - ] -}, { - fullWidth: true, - chartPadding: { - right: 10 - }, - lineSmooth: Chartist.Interpolation.cardinal({ - fillHoles: true, - }), - low: 0 -}); diff --git a/site/examples/example-line-data-holes.js b/site/examples/example-line-data-holes.js deleted file mode 100644 index 60027417d..000000000 --- a/site/examples/example-line-data-holes.js +++ /dev/null @@ -1,15 +0,0 @@ -var chart = new Chartist.Line('.ct-chart', { - labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], - series: [ - [5, 5, 10, 8, 7, 5, 4, null, null, null, 10, 10, 7, 8, 6, 9], - [10, 15, null, 12, null, 10, 12, 15, null, null, 12, null, 14, null, null, null], - [null, null, null, null, 3, 4, 1, 3, 4, 6, 7, 9, 5, null, null, null], - [{x:3, y: 3},{x: 4, y: 3}, {x: 5, y: undefined}, {x: 6, y: 4}, {x: 7, y: null}, {x: 8, y: 4}, {x: 9, y: 4}] - ] -}, { - fullWidth: true, - chartPadding: { - right: 10 - }, - low: 0 -}); diff --git a/site/examples/example-line-modify-drawing.js b/site/examples/example-line-modify-drawing.js deleted file mode 100644 index 32785ab18..000000000 --- a/site/examples/example-line-modify-drawing.js +++ /dev/null @@ -1,30 +0,0 @@ -var chart = new Chartist.Line('.ct-chart', { - labels: [1, 2, 3, 4, 5], - series: [ - [12, 9, 7, 8, 5] - ] -}); - -// Listening for draw events that get emitted by the Chartist chart -chart.on('draw', function(data) { - // If the draw event was triggered from drawing a point on the line chart - if(data.type === 'point') { - // We are creating a new path SVG element that draws a triangle around the point coordinates - var triangle = new Chartist.Svg('path', { - d: ['M', - data.x, - data.y - 15, - 'L', - data.x - 15, - data.y + 8, - 'L', - data.x + 15, - data.y + 8, - 'z'].join(' '), - style: 'fill-opacity: 1' - }, 'ct-area'); - - // With data.element we get the Chartist SVG wrapper and we can replace the original point drawn by Chartist with our newly created triangle - data.element.replace(triangle); - } -}); diff --git a/site/examples/example-line-months-interpolation.js b/site/examples/example-line-months-interpolation.js deleted file mode 100644 index 37538feda..000000000 --- a/site/examples/example-line-months-interpolation.js +++ /dev/null @@ -1,32 +0,0 @@ -var data = { - labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], - series: [ - [1, 2, 2.7, 0, 3, 5, 3, 4, 8, 10, 12, 7], - [0, 1.2, 2, 7, 2.5, 9, 5, 8, 9, 11, 14, 4], - [10, 9, 8, 6.5, 6.8, 6, 5.4, 5.3, 4.5, 4.4, 3, 2.8] - ] -}; - -var responsiveOptions = [ - [ - Foundation.media_queries.small, - { - axisX: { - labelInterpolationFnc: function (value, index) { - // Interpolation function causes only every 2nd label to be displayed - if (index % 2 !== 0) { - return false; - } else { - return value; - } - } - } - } - ] -]; - -new Chartist.Line('.ct-chart', data, { - chartPadding: { - top: 30 - } -}, responsiveOptions); diff --git a/site/examples/example-line-only-integer.js b/site/examples/example-line-only-integer.js deleted file mode 100644 index 2157bb9d4..000000000 --- a/site/examples/example-line-only-integer.js +++ /dev/null @@ -1,18 +0,0 @@ -new Chartist.Line('.ct-chart', { - labels: [1, 2, 3, 4, 5, 6, 7, 8], - series: [ - [1, 2, 3, 1, -2, 0, 1, 0], - [-2, -1, -2, -1, -3, -1, -2, -1], - [0, 0, 0, 1, 2, 3, 2, 1], - [3, 2, 1, 0.5, 1, 0, -1, -3] - ] -}, { - high: 3, - low: -3, - fullWidth: true, - // As this is axis specific we need to tell Chartist to use whole numbers only on the concerned axis - axisY: { - onlyInteger: true, - offset: 20 - } -}); diff --git a/site/examples/example-line-path-animation.js b/site/examples/example-line-path-animation.js deleted file mode 100644 index a216e0cca..000000000 --- a/site/examples/example-line-path-animation.js +++ /dev/null @@ -1,27 +0,0 @@ -var chart = new Chartist.Line('.ct-chart', { - labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], - series: [ - [1, 5, 2, 5, 4, 3], - [2, 3, 4, 8, 1, 2], - [5, 4, 3, 2, 1, 0.5] - ] -}, { - low: 0, - showArea: true, - showPoint: false, - fullWidth: true -}); - -chart.on('draw', function(data) { - if(data.type === 'line' || data.type === 'area') { - data.element.animate({ - d: { - begin: 2000 * data.index, - dur: 2000, - from: data.path.clone().scale(1, 0).translate(0, data.chartRect.height()).stringify(), - to: data.path.clone().stringify(), - easing: Chartist.Svg.Easing.easeOutQuint - } - }); - } -}); diff --git a/site/examples/example-line-series-override.js b/site/examples/example-line-series-override.js deleted file mode 100644 index 034039bf2..000000000 --- a/site/examples/example-line-series-override.js +++ /dev/null @@ -1,49 +0,0 @@ -var chart = new Chartist.Line('.ct-chart', { - labels: ['1', '2', '3', '4', '5', '6', '7', '8'], - // Naming the series with the series object array notation - series: [{ - name: 'series-1', - data: [5, 2, -4, 2, 0, -2, 5, -3] - }, { - name: 'series-2', - data: [4, 3, 5, 3, 1, 3, 6, 4] - }, { - name: 'series-3', - data: [2, 4, 3, 1, 4, 5, 3, 2] - }] -}, { - fullWidth: true, - // Within the series options you can use the series names - // to specify configuration that will only be used for the - // specific series. - series: { - 'series-1': { - lineSmooth: Chartist.Interpolation.step() - }, - 'series-2': { - lineSmooth: Chartist.Interpolation.simple(), - showArea: true - }, - 'series-3': { - showPoint: false - } - } -}, [ - // You can even use responsive configuration overrides to - // customize your series configuration even further! - ['screen and (max-width: 320px)', { - series: { - 'series-1': { - lineSmooth: Chartist.Interpolation.none() - }, - 'series-2': { - lineSmooth: Chartist.Interpolation.none(), - showArea: false - }, - 'series-3': { - lineSmooth: Chartist.Interpolation.none(), - showPoint: true - } - } - }] -]); diff --git a/site/examples/example-line-simple-responsive.js b/site/examples/example-line-simple-responsive.js deleted file mode 100644 index 62f987446..000000000 --- a/site/examples/example-line-simple-responsive.js +++ /dev/null @@ -1,41 +0,0 @@ -/* Add a basic data series with six labels and values */ -var data = { - labels: ['1', '2', '3', '4', '5', '6'], - series: [ - { - data: [1, 2, 3, 5, 8, 13] - } - ] -}; - -/* Set some base options (settings will override the default settings in Chartist.js *see default settings*). We are adding a basic label interpolation function for the xAxis labels. */ -var options = { - axisX: { - labelInterpolationFnc: function(value) { - return 'Calendar Week ' + value; - } - } -}; - -/* Now we can specify multiple responsive settings that will override the base settings based on order and if the media queries match. In this example we are changing the visibility of dots and lines as well as use different label interpolations for space reasons. */ -var responsiveOptions = [ - ['screen and (min-width: 641px) and (max-width: 1024px)', { - showPoint: false, - axisX: { - labelInterpolationFnc: function(value) { - return 'Week ' + value; - } - } - }], - ['screen and (max-width: 640px)', { - showLine: false, - axisX: { - labelInterpolationFnc: function(value) { - return 'W' + value; - } - } - }] -]; - -/* Initialize the chart with the above settings */ -new Chartist.Line('#my-chart', data, options, responsiveOptions); \ No newline at end of file diff --git a/site/examples/example-line-simple-smoothing.js b/site/examples/example-line-simple-smoothing.js deleted file mode 100644 index 99c0abb6c..000000000 --- a/site/examples/example-line-simple-smoothing.js +++ /dev/null @@ -1,18 +0,0 @@ -var chart = new Chartist.Line('.ct-chart', { - labels: [1, 2, 3, 4, 5], - series: [ - [1, 5, 10, 0, 1], - [10, 15, 0, 1, 2] - ] -}, { - // Remove this configuration to see that chart rendered with cardinal spline interpolation - // Sometimes, on large jumps in data values, it's better to use simple smoothing. - lineSmooth: Chartist.Interpolation.simple({ - divisor: 2 - }), - fullWidth: true, - chartPadding: { - right: 20 - }, - low: 0 -}); diff --git a/site/examples/example-line-svg-animation.js b/site/examples/example-line-svg-animation.js deleted file mode 100644 index 4a7d746c9..000000000 --- a/site/examples/example-line-svg-animation.js +++ /dev/null @@ -1,127 +0,0 @@ -var chart = new Chartist.Line('.ct-chart', { - labels: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], - series: [ - [12, 9, 7, 8, 5, 4, 6, 2, 3, 3, 4, 6], - [4, 5, 3, 7, 3, 5, 5, 3, 4, 4, 5, 5], - [5, 3, 4, 5, 6, 3, 3, 4, 5, 6, 3, 4], - [3, 4, 5, 6, 7, 6, 4, 5, 6, 7, 6, 3] - ] -}, { - low: 0 -}); - -// Let's put a sequence number aside so we can use it in the event callbacks -var seq = 0, - delays = 80, - durations = 500; - -// Once the chart is fully created we reset the sequence -chart.on('created', function() { - seq = 0; -}); - -// On each drawn element by Chartist we use the Chartist.Svg API to trigger SMIL animations -chart.on('draw', function(data) { - seq++; - - if(data.type === 'line') { - // If the drawn element is a line we do a simple opacity fade in. This could also be achieved using CSS3 animations. - data.element.animate({ - opacity: { - // The delay when we like to start the animation - begin: seq * delays + 1000, - // Duration of the animation - dur: durations, - // The value where the animation should start - from: 0, - // The value where it should end - to: 1 - } - }); - } else if(data.type === 'label' && data.axis === 'x') { - data.element.animate({ - y: { - begin: seq * delays, - dur: durations, - from: data.y + 100, - to: data.y, - // We can specify an easing function from Chartist.Svg.Easing - easing: 'easeOutQuart' - } - }); - } else if(data.type === 'label' && data.axis === 'y') { - data.element.animate({ - x: { - begin: seq * delays, - dur: durations, - from: data.x - 100, - to: data.x, - easing: 'easeOutQuart' - } - }); - } else if(data.type === 'point') { - data.element.animate({ - x1: { - begin: seq * delays, - dur: durations, - from: data.x - 10, - to: data.x, - easing: 'easeOutQuart' - }, - x2: { - begin: seq * delays, - dur: durations, - from: data.x - 10, - to: data.x, - easing: 'easeOutQuart' - }, - opacity: { - begin: seq * delays, - dur: durations, - from: 0, - to: 1, - easing: 'easeOutQuart' - } - }); - } else if(data.type === 'grid') { - // Using data.axis we get x or y which we can use to construct our animation definition objects - var pos1Animation = { - begin: seq * delays, - dur: durations, - from: data[data.axis.units.pos + '1'] - 30, - to: data[data.axis.units.pos + '1'], - easing: 'easeOutQuart' - }; - - var pos2Animation = { - begin: seq * delays, - dur: durations, - from: data[data.axis.units.pos + '2'] - 100, - to: data[data.axis.units.pos + '2'], - easing: 'easeOutQuart' - }; - - var animations = {}; - animations[data.axis.units.pos + '1'] = pos1Animation; - animations[data.axis.units.pos + '2'] = pos2Animation; - animations['opacity'] = { - begin: seq * delays, - dur: durations, - from: 0, - to: 1, - easing: 'easeOutQuart' - }; - - data.element.animate(animations); - } -}); - -// For the sake of the example we update the chart every time it's created with a delay of 10 seconds -chart.on('created', function() { - if(window.__exampleAnimateTimeout) { - clearTimeout(window.__exampleAnimateTimeout); - window.__exampleAnimateTimeout = null; - } - window.__exampleAnimateTimeout = setTimeout(chart.update.bind(chart), 12000); -}); - diff --git a/site/examples/example-multiline-bar.js b/site/examples/example-multiline-bar.js deleted file mode 100644 index e71f16421..000000000 --- a/site/examples/example-multiline-bar.js +++ /dev/null @@ -1,20 +0,0 @@ -new Chartist.Bar('.ct-chart', { - labels: ['First quarter of the year', 'Second quarter of the year', 'Third quarter of the year', 'Fourth quarter of the year'], - series: [ - [60000, 40000, 80000, 70000], - [40000, 30000, 70000, 65000], - [8000, 3000, 10000, 6000] - ] -}, { - seriesBarDistance: 10, - axisX: { - offset: 60 - }, - axisY: { - offset: 80, - labelInterpolationFnc: function(value) { - return value + ' CHF' - }, - scaleMinSpace: 15 - } -}); \ No newline at end of file diff --git a/site/examples/example-plugin-accessibility.js b/site/examples/example-plugin-accessibility.js deleted file mode 100644 index 620d1fe5c..000000000 --- a/site/examples/example-plugin-accessibility.js +++ /dev/null @@ -1,36 +0,0 @@ -new Chartist.Line('.ct-chart', { - labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], - series: [ - {name: 'Income', data: [20000, 30000, 35000, 32000, 40000, 42000, 50000, 62000, 80000, 94000, 100000, 120000]}, - {name: 'Expenses', data: [10000, 15000, 12000, 14000, 20000, 23000, 22000, 24000, 21000, 18000, 30000, 32000]} - ] -}, { - fullWidth: true, - lineSmooth: false, - chartPadding: { - right: 20, - left: 10 - }, - axisX: { - labelInterpolationFnc: function(value) { - return value.split('').slice(0, 3).join(''); - } - }, - plugins: [ - Chartist.plugins.ctAccessibility({ - caption: 'Fiscal year 2015', - seriesHeader: 'business numbers', - summary: 'A graphic that shows the business numbers of the fiscal year 2015', - valueTransform: function(value) { - return value + ' dollar'; - }, - // ONLY USE THIS IF YOU WANT TO MAKE YOUR ACCESSIBILITY TABLE ALSO VISIBLE! - visuallyHiddenStyles: 'position: absolute; top: 100%; width: 100%; font-size: 11px; overflow-x: auto; background-color: rgba(0, 0, 0, 0.1); padding: 10px' - }) - ] -}); - -// This is only used for the example on the Chartist example page -$chart.parent().css({ - 'margin-bottom': '160px' -}); diff --git a/site/examples/example-plugin-axistitle.js b/site/examples/example-plugin-axistitle.js deleted file mode 100644 index ed27945bd..000000000 --- a/site/examples/example-plugin-axistitle.js +++ /dev/null @@ -1,37 +0,0 @@ -new Chartist.Line('.ct-chart', { - labels: ['0-15', '16-30', '31-45', '46-60', '61-75', '76-90', '91-105', '106-120'], - series: [[1, 3, 7, 12, 1, 2, 1, 0]] -}, { - chartPadding: { - top: 20, - right: 0, - bottom: 30, - left: 0 - }, - axisY: { - onlyInteger: true - }, - plugins: [ - Chartist.plugins.ctAxisTitle({ - axisX: { - axisTitle: 'Time (mins)', - axisClass: 'ct-axis-title', - offset: { - x: 0, - y: 50 - }, - textAnchor: 'middle' - }, - axisY: { - axisTitle: 'Goals', - axisClass: 'ct-axis-title', - offset: { - x: 0, - y: 0 - }, - textAnchor: 'middle', - flipTitle: false - } - }) - ] -}); diff --git a/site/examples/example-plugin-fill-donut.js b/site/examples/example-plugin-fill-donut.js deleted file mode 100755 index ef263d745..000000000 --- a/site/examples/example-plugin-fill-donut.js +++ /dev/null @@ -1,56 +0,0 @@ -var chart = new Chartist.Pie('.ct-chart', - { - series: [160, 60 ], - labels: ['', ''] - }, { - donut: true, - donutWidth: 20, - startAngle: 210, - total: 260, - showLabel: false, - plugins: [ - Chartist.plugins.fillDonut({ - items: [{ - content: '', - position: 'bottom', - offsetY : 10, - offsetX: -2 - }, { - content: '

160mph

' - }] - }) - ], - }); - -chart.on('draw', function(data) { - if(data.type === 'slice' && data.index == 0) { - // Get the total path length in order to use for dash array animation - var pathLength = data.element._node.getTotalLength(); - - // Set a dasharray that matches the path length as prerequisite to animate dashoffset - data.element.attr({ - 'stroke-dasharray': pathLength + 'px ' + pathLength + 'px' - }); - - // Create animation definition while also assigning an ID to the animation for later sync usage - var animationDefinition = { - 'stroke-dashoffset': { - id: 'anim' + data.index, - dur: 1200, - from: -pathLength + 'px', - to: '0px', - easing: Chartist.Svg.Easing.easeOutQuint, - fill: 'freeze' - } - }; - - // We need to set an initial value before the animation starts as we are not in guided mode which would do that for us - data.element.attr({ - 'stroke-dashoffset': -pathLength + 'px' - }); - - // We can't use guided mode as the animations need to rely on setting begin manually - // See http://gionkunz.github.io/chartist-js/api-documentation.html#chartistsvg-function-animate - data.element.animate(animationDefinition, true); - } -}); diff --git a/site/examples/example-plugin-pointlabel.js b/site/examples/example-plugin-pointlabel.js deleted file mode 100644 index 09b6768a3..000000000 --- a/site/examples/example-plugin-pointlabel.js +++ /dev/null @@ -1,12 +0,0 @@ -new Chartist.Line('.ct-chart', { - labels: ['M', 'T', 'W', 'T', 'F'], - series: [ - [12, 9, 7, 8, 5] - ] -}, { - plugins: [ - Chartist.plugins.ctPointLabels({ - textAnchor: 'middle' - }) - ] -}); diff --git a/site/examples/example-plugin-targetline.js b/site/examples/example-plugin-targetline.js deleted file mode 100644 index b6cac7e58..000000000 --- a/site/examples/example-plugin-targetline.js +++ /dev/null @@ -1,12 +0,0 @@ -new Chartist.Line('.ct-chart', { - labels: ['M', 'T', 'W', 'T', 'F'], - series: [ - [5, 11, 2, 5, 7] - ] -}, { - plugins: [ - Chartist.plugins.ctTargetLine({ - value: 6 - }) - ] -}); diff --git a/site/examples/example-plugin-threshold.js b/site/examples/example-plugin-threshold.js deleted file mode 100644 index 835ee57f7..000000000 --- a/site/examples/example-plugin-threshold.js +++ /dev/null @@ -1,16 +0,0 @@ -new Chartist.Line('.ct-chart', { - labels: ['Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], - series: [ - [5, -4, 3, 7, 20, 10, 3, 4, 8, -10, 6, -8] - ] -}, { - showArea: true, - axisY: { - onlyInteger: true - }, - plugins: [ - Chartist.plugins.ctThreshold({ - threshold: 4 - }) - ] -}); diff --git a/site/examples/example-plugin-tooltip.js b/site/examples/example-plugin-tooltip.js deleted file mode 100644 index 060cb7499..000000000 --- a/site/examples/example-plugin-tooltip.js +++ /dev/null @@ -1,22 +0,0 @@ -var chart = new Chartist.Line('.ct-chart', { - labels: [1, 2, 3], - series: [ - [ - {meta: 'description', value: 1 }, - {meta: 'description', value: 5}, - {meta: 'description', value: 3} - ], - [ - {meta: 'other description', value: 2}, - {meta: 'other description', value: 4}, - {meta: 'other description', value: 2} - ] - ] -}, { - low: 0, - high: 8, - fullWidth: true, - plugins: [ - Chartist.plugins.tooltip() - ] -}); diff --git a/site/examples/example-plugin-zoom.js b/site/examples/example-plugin-zoom.js deleted file mode 100644 index 08668360b..000000000 --- a/site/examples/example-plugin-zoom.js +++ /dev/null @@ -1,39 +0,0 @@ -var data = { - series: [[ - { x: 1, y: 100 }, - { x: 2, y: 50 }, - { x: 3, y: 25 }, - { x: 4, y: 66 }, - { x: 5, y: 30 }, - { x: 6, y: 22 } - ]] -}; - -var options = { - axisX: { - type: Chartist.AutoScaleAxis - }, - axisY: { - type: Chartist.AutoScaleAxis - }, - plugins: [ - Chartist.plugins.zoom({ onZoom: onZoom }) - ] -}; - -var chart = Chartist.Line('.ct-chart', data, options); -var resetFnc; -function onZoom(chart, reset) { - resetFnc = reset; -} - -var btn = document.createElement('button'); -btn.id = 'reset-zoom-btn'; -btn.innerHTML = 'Reset Zoom'; -btn.style.float = 'right'; -btn.addEventListener('click', function() { - console.log(resetFnc); - resetFnc && resetFnc(); -}); -var parent = document.querySelector('#example-plugin-zoom .chart'); -!parent.querySelector('#reset-zoom-btn') && parent.appendChild(btn); diff --git a/site/examples/example-simple-bar.js b/site/examples/example-simple-bar.js deleted file mode 100644 index f655562c5..000000000 --- a/site/examples/example-simple-bar.js +++ /dev/null @@ -1,32 +0,0 @@ -var data = { - labels: ['Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], - series: [ - [5, 4, 3, 7, 5, 10, 3, 4, 8, 10, 6, 8], - [3, 2, 9, 5, 4, 6, 4, 6, 7, 8, 7, 4] - ] -}; - -var options = { - seriesBarDistance: 15 -}; - -var responsiveOptions = [ - ['screen and (min-width: 641px) and (max-width: 1024px)', { - seriesBarDistance: 10, - axisX: { - labelInterpolationFnc: function (value) { - return value; - } - } - }], - ['screen and (max-width: 640px)', { - seriesBarDistance: 5, - axisX: { - labelInterpolationFnc: function (value) { - return value[0]; - } - } - }] -]; - -new Chartist.Bar('.ct-chart', data, options, responsiveOptions); \ No newline at end of file diff --git a/site/examples/example-simple-svg-animation.js b/site/examples/example-simple-svg-animation.js deleted file mode 100644 index 97c7a7a1e..000000000 --- a/site/examples/example-simple-svg-animation.js +++ /dev/null @@ -1,63 +0,0 @@ -var chart = new Chartist.Line('.ct-chart', { - labels: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], - series: [ - [12, 4, 2, 8, 5, 4, 6, 2, 3, 3, 4, 6], - [4, 8, 9, 3, 7, 2, 10, 5, 8, 1, 7, 10] - ] -}, { - low: 0, - showLine: false, - axisX: { - showLabel: false, - offset: 0 - }, - axisY: { - showLabel: false, - offset: 0 - } -}); - -// Let's put a sequence number aside so we can use it in the event callbacks -var seq = 0; - -// Once the chart is fully created we reset the sequence -chart.on('created', function() { - seq = 0; -}); - -// On each drawn element by Chartist we use the Chartist.Svg API to trigger SMIL animations -chart.on('draw', function(data) { - if(data.type === 'point') { - // If the drawn element is a line we do a simple opacity fade in. This could also be achieved using CSS3 animations. - data.element.animate({ - opacity: { - // The delay when we like to start the animation - begin: seq++ * 80, - // Duration of the animation - dur: 500, - // The value where the animation should start - from: 0, - // The value where it should end - to: 1 - }, - x1: { - begin: seq++ * 80, - dur: 500, - from: data.x - 100, - to: data.x, - // You can specify an easing function name or use easing functions from Chartist.Svg.Easing directly - easing: Chartist.Svg.Easing.easeOutQuart - } - }); - } -}); - -// For the sake of the example we update the chart every time it's created with a delay of 8 seconds -chart.on('created', function() { - if(window.__anim0987432598723) { - clearTimeout(window.__anim0987432598723); - window.__anim0987432598723 = null; - } - window.__anim0987432598723 = setTimeout(chart.update.bind(chart), 8000); -}); - diff --git a/site/examples/example-timeseries-moment.js b/site/examples/example-timeseries-moment.js deleted file mode 100644 index 4e79f9928..000000000 --- a/site/examples/example-timeseries-moment.js +++ /dev/null @@ -1,37 +0,0 @@ -// Requires Moment.js - -var chart = new Chartist.Line('.ct-chart', { - series: [ - { - name: 'series-1', - data: [ - {x: new Date(143134652600), y: 53}, - {x: new Date(143234652600), y: 40}, - {x: new Date(143340052600), y: 45}, - {x: new Date(143366652600), y: 40}, - {x: new Date(143410652600), y: 20}, - {x: new Date(143508652600), y: 32}, - {x: new Date(143569652600), y: 18}, - {x: new Date(143579652600), y: 11} - ] - }, - { - name: 'series-2', - data: [ - {x: new Date(143134652600), y: 53}, - {x: new Date(143234652600), y: 35}, - {x: new Date(143334652600), y: 30}, - {x: new Date(143384652600), y: 30}, - {x: new Date(143568652600), y: 10} - ] - } - ] -}, { - axisX: { - type: Chartist.FixedScaleAxis, - divisor: 5, - labelInterpolationFnc: function(value) { - return moment(value).format('MMM D'); - } - } -}); \ No newline at end of file diff --git a/site/examples/line-scatter-random.js b/site/examples/line-scatter-random.js deleted file mode 100644 index 593f37e9a..000000000 --- a/site/examples/line-scatter-random.js +++ /dev/null @@ -1,36 +0,0 @@ -var times = function(n) { - return Array.apply(null, new Array(n)); -}; - -var data = times(52).map(Math.random).reduce(function(data, rnd, index) { - data.labels.push(index + 1); - data.series.forEach(function(series) { - series.push(Math.random() * 100) - }); - - return data; -}, { - labels: [], - series: times(4).map(function() { return new Array() }) -}); - -var options = { - showLine: false, - axisX: { - labelInterpolationFnc: function(value, index) { - return index % 13 === 0 ? 'W' + value : null; - } - } -}; - -var responsiveOptions = [ - ['screen and (min-width: 640px)', { - axisX: { - labelInterpolationFnc: function(value, index) { - return index % 4 === 0 ? 'W' + value : null; - } - } - }] -]; - -new Chartist.Line('.ct-chart', data, options, responsiveOptions); \ No newline at end of file diff --git a/site/examples/overlapping-bars.js b/site/examples/overlapping-bars.js deleted file mode 100644 index 8df7b8132..000000000 --- a/site/examples/overlapping-bars.js +++ /dev/null @@ -1,24 +0,0 @@ -var data = { - labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], - series: [ - [5, 4, 3, 7, 5, 10, 3, 4, 8, 10, 6, 8], - [3, 2, 9, 5, 4, 6, 4, 6, 7, 8, 7, 4] - ] -}; - -var options = { - seriesBarDistance: 10 -}; - -var responsiveOptions = [ - ['screen and (max-width: 640px)', { - seriesBarDistance: 5, - axisX: { - labelInterpolationFnc: function (value) { - return value[0]; - } - } - }] -]; - -new Chartist.Bar('.ct-chart', data, options, responsiveOptions); diff --git a/site/examples/pie-with-custom-labels.js b/site/examples/pie-with-custom-labels.js deleted file mode 100644 index 3ddf2c51e..000000000 --- a/site/examples/pie-with-custom-labels.js +++ /dev/null @@ -1,27 +0,0 @@ -var data = { - labels: ['Bananas', 'Apples', 'Grapes'], - series: [20, 15, 40] -}; - -var options = { - labelInterpolationFnc: function(value) { - return value[0] - } -}; - -var responsiveOptions = [ - ['screen and (min-width: 640px)', { - chartPadding: 30, - labelOffset: 100, - labelDirection: 'explode', - labelInterpolationFnc: function(value) { - return value; - } - }], - ['screen and (min-width: 1024px)', { - labelOffset: 80, - chartPadding: 20 - }] -]; - -new Chartist.Pie('.ct-chart', data, options, responsiveOptions); \ No newline at end of file diff --git a/site/examples/simple-configuration-chart.js b/site/examples/simple-configuration-chart.js deleted file mode 100644 index 21eb36d39..000000000 --- a/site/examples/simple-configuration-chart.js +++ /dev/null @@ -1,38 +0,0 @@ -// Our labels and three data series -var data = { - labels: ['Week1', 'Week2', 'Week3', 'Week4', 'Week5', 'Week6'], - series: [ - [5, 4, 3, 7, 5, 10], - [3, 2, 9, 5, 4, 6], - [2, 1, -3, -4, -2, 0] - ] -}; - -// We are setting a few options for our chart and override the defaults -var options = { - // Don't draw the line chart points - showPoint: false, - // Disable line smoothing - lineSmooth: false, - // X-Axis specific configuration - axisX: { - // We can disable the grid for this axis - showGrid: false, - // and also don't show the label - showLabel: false - }, - // Y-Axis specific configuration - axisY: { - // Lets offset the chart a bit from the labels - offset: 60, - // The label interpolation function enables you to modify the values - // used for the labels on each axis. Here we are converting the - // values into million pound. - labelInterpolationFnc: function(value) { - return '$' + value + 'm'; - } - } -}; - -// All you need to do is pass your configuration as third parameter to the chart function -new Chartist.Line('.ct-chart', data, options); diff --git a/site/examples/simple-gauge-chart.js b/site/examples/simple-gauge-chart.js deleted file mode 100644 index c7ffec9c8..000000000 --- a/site/examples/simple-gauge-chart.js +++ /dev/null @@ -1,9 +0,0 @@ -new Chartist.Pie('.ct-chart', { - series: [20, 10, 30, 40] -}, { - donut: true, - donutWidth: 60, - startAngle: 270, - total: 200, - showLabel: false -}); \ No newline at end of file diff --git a/site/examples/simple-line-chart.js b/site/examples/simple-line-chart.js deleted file mode 100644 index 0b5c4742e..000000000 --- a/site/examples/simple-line-chart.js +++ /dev/null @@ -1,13 +0,0 @@ -new Chartist.Line('.ct-chart', { - labels: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'], - series: [ - [12, 9, 7, 8, 5], - [2, 1, 3.5, 7, 3], - [1, 3, 4, 5, 6] - ] -}, { - fullWidth: true, - chartPadding: { - right: 40 - } -}); diff --git a/site/examples/simple-pie-chart.js b/site/examples/simple-pie-chart.js deleted file mode 100644 index 3417aa1b0..000000000 --- a/site/examples/simple-pie-chart.js +++ /dev/null @@ -1,11 +0,0 @@ -var data = { - series: [5, 3, 4] -}; - -var sum = function(a, b) { return a + b }; - -new Chartist.Pie('.ct-chart', data, { - labelInterpolationFnc: function(value) { - return Math.round(value / data.series.reduce(sum) * 100) + '%'; - } -}); \ No newline at end of file diff --git a/site/examples/stacked-bar.js b/site/examples/stacked-bar.js deleted file mode 100644 index 058b80a40..000000000 --- a/site/examples/stacked-bar.js +++ /dev/null @@ -1,21 +0,0 @@ -new Chartist.Bar('.ct-chart', { - labels: ['Q1', 'Q2', 'Q3', 'Q4'], - series: [ - [800000, 1200000, 1400000, 1300000], - [200000, 400000, 500000, 300000], - [100000, 200000, 400000, 600000] - ] -}, { - stackBars: true, - axisY: { - labelInterpolationFnc: function(value) { - return (value / 1000) + 'k'; - } - } -}).on('draw', function(data) { - if(data.type === 'bar') { - data.element.attr({ - style: 'stroke-width: 30px' - }); - } -}); diff --git a/site/favicon.ico b/site/favicon.ico deleted file mode 100755 index 69108702e..000000000 Binary files a/site/favicon.ico and /dev/null differ diff --git a/site/helpers/chartist-helpers.js b/site/helpers/chartist-helpers.js deleted file mode 100644 index 88be22501..000000000 --- a/site/helpers/chartist-helpers.js +++ /dev/null @@ -1,27 +0,0 @@ -'use strict'; - -var fs = require('fs'); - -// Export helpers -module.exports.register = function (Handlebars, opt, params) { - // The helpers to be exported - var helpers = { - - snippetPath: function (snippetId, snippetLang) { - return 'site/code-snippets/' + snippetId + '.' + snippetLang || 'js'; - }, - - exampleCode: function(exampleId) { - return new Buffer(fs.readFileSync('site/examples/' + exampleId + '.js', { - encoding: 'utf8' - }), 'utf8').toString('base64'); - } - }; - - opt = opt || {}; - for (var helper in helpers) { - if (helpers.hasOwnProperty(helper)) { - Handlebars.registerHelper(helper, helpers[helper]); - } - } -}; diff --git a/site/helpers/common-helpers.js b/site/helpers/common-helpers.js deleted file mode 100644 index 374221e0b..000000000 --- a/site/helpers/common-helpers.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Common Handlebars Helpers - * Copyright (c) 2014 Gion Kunz - * Licensed under the WTFPL License (WTFPL). - */ -'use strict'; - -var path = require('path'); -var fs = require('fs'); - -// Export helpers -module.exports.register = function (Handlebars, opt, params) { - // Loading package.json for later use - var pkg = JSON.parse(fs.readFileSync(path.join(process.cwd(), 'package.json'))); - - function slugify(str) { - return str - .toLowerCase() - .replace(/[^\w ]+/g,'') - .replace(/ +/g,'-'); - } - - // The helpers to be exported - var helpers = { - - pkg: function (key) { - return pkg[key]; - }, - - escape: function(str) { - return Handlebars.Utils.escapeExpression(str); - }, - - jsonStringify: function(obj) { - return JSON.stringify(obj); - }, - - slugify: function(str) { - return slugify(str); - }, - - concat: function() { - var arr = []; - for(var i = 0; i < arguments.length - 1; i++) { - arr[i] = arguments[i]; - } - - return arr.join(''); - }, - - partial: function(name, context) { - var partial = Handlebars.partials[name]; - - // Check if partial is not found, invalid or un-compiled and handle accordingly - if(!partial) { - throw 'Could not find partial with name "' + name + '".'; - } else if(typeof partial === 'string') { - // Compile partial as its still a string and update Handlebars - partial = Handlebars.partials[name] = Handlebars.compile(Handlebars.partials[name]); - } else if(typeof partial !== 'function') { - throw 'Found unknown type of partial "' + name + '" (' + typeof Handlebars.partials[name] + - ') in Handlebars partial Array => ' + Handlebars.partials; - } - - return new Handlebars.SafeString(partial(context || this)); - }, - - atob: function(a) { - return new Buffer(a, 'base64').toString('utf8'); - }, - - btoa: function(b) { - return new Buffer(b, 'utf8').toString('base64'); - } - }; - - opt = opt || {}; - for (var helper in helpers) { - if (helpers.hasOwnProperty(helper)) { - Handlebars.registerHelper(helper, helpers[helper]); - } - } -}; diff --git a/site/helpers/dox-helpers.js b/site/helpers/dox-helpers.js deleted file mode 100644 index a0ee1b00d..000000000 --- a/site/helpers/dox-helpers.js +++ /dev/null @@ -1,70 +0,0 @@ -'use strict'; - -var path = require('path'), - _ = require('lodash'); - -// Export helpers -module.exports.register = function (Handlebars, opt, params) { - // The helpers to be exported - var helpers = { - - doxTag: function(doxElement, doxTagType) { - return _.find(doxElement.tags, {type: doxTagType}); - }, - - doxTagProperty: function(doxElement, doxTagType, doxTagProperty) { - var doxTag = helpers.doxTag(doxElement, doxTagType); - - if(doxTag) { - return doxTag[doxTagProperty]; - } else { - return doxTag; - } - }, - - doxHash: function(doxElement) { - return [helpers.doxTagProperty(doxElement, 'memberof', 'string'), - doxElement.ctx.type, - doxElement.ctx.name].join(' ') - .toLowerCase() - .replace(/[^\w ]+/g,'') - .replace(/ +/g,'-'); - }, - - doxTagsOfType: function(doxElement, doxTagType) { - return _.filter(doxElement.tags, {type: doxTagType}); - }, - - doxTransform: function(dox) { - return dox.map(function(doxFile) { - return { - fileName: path.basename(doxFile.file), - modules: doxFile.comments.reduce(function(arr, doxElement) { - var doxModuleName = helpers.doxTagProperty(doxElement, 'module', 'string'); - - if(doxModuleName) { - arr.push({ - name: doxModuleName, - description: doxElement.description.summary, - isPrivate: doxElement.isPrivate, - members: doxFile.comments.filter(function(doxFilterElement) { - return helpers.doxTagProperty(doxFilterElement, 'memberof', 'string') === doxModuleName; - }) - }); - } - - return arr; - }, []) - }; - }); - } - - }; - - opt = opt || {}; - for (var helper in helpers) { - if (helpers.hasOwnProperty(helper)) { - Handlebars.registerHelper(helper, helpers[helper]); - } - } -}; diff --git a/site/helpers/lorem-helper.js b/site/helpers/lorem-helper.js deleted file mode 100644 index 9ee422797..000000000 --- a/site/helpers/lorem-helper.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Lorem Handlebars Helpers - * Copyright (c) 2014 Gion Kunz - * Licensed under the WTFPL License (WTFPL). - */ -'use strict'; - -var seed = require('seed-random'); - -// Export helpers -module.exports.register = function (Handlebars, opt, params) { - var loremText = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit Nullam in pharetra nisl Mauris dictum fermentum malesuada Donec tincidunt, lectus nec tempor eleifend, sem enim rhoncus nibh, nec ultricies ante lectus sit amet mi Proin cursus dolor in nisl varius elementum Aliquam blandit lobortis adipiscing Proin euismod est non feugiat venenatis Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam ac neque consectetur, ullamcorper neque quis, commodo ligula In ornare tempus feugiat Suspendisse ut pretium dui, at egestas velit Etiam ultricies, nisl quis gravida condimentum, dui nisl congue ligula, porta consectetur est sapien viverra est Donec quis ipsum quis metus luctus porttitor sed id justo Proin ultricies adipiscing dolor, luctus interdum urna ullamcorper sit amet Phasellus mollis erat egestas urna tincidunt viverra Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas Nam est ante, blandit vitae porta sed, consectetur vitae libero Sed sit amet auctor diam, eu ullamcorper nulla Aenean interdum, augue nec ullamcorper aliquam, libero justo pellentesque libero, vitae venenatis velit justo pellentesque enim Nam lobortis tortor non sagittis mollis Integer commodo eget nulla vel tincidunt Cras vitae vestibulum ipsum, a sollicitudin erat Cras feugiat vehicula magna, nec vehicula massa lacinia in Nam cursus arcu cursus felis feugiat, vel tincidunt eros aliquet Sed magna est, tincidunt a porta id, aliquam eu orci Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus Donec nec tempus eros Mauris placerat, nisi sit amet varius venenatis, arcu felis cursus risus, ut ultricies tortor lorem nec massa Integer molestie mattis tortor, nec pretium augue accumsan at Mauris nisi risus, hendrerit in libero a, accumsan tincidunt nunc Ut id volutpat massa Duis mattis tellus ut massa ultricies volutpat Curabitur non ante vel odio tempor condimentum Duis eu sollicitudin risus Pellentesque eget metus'; - var loremWords = loremText.split(' '); - var random = seed(loremText); - - function initCap(str) { - return str.toLowerCase().replace(/(?:^|\s)[a-z]/g, function (m) { - return m.toUpperCase(); - }); - } - - function randomInt(min, max) { - min = min || (min === 0 ? 0 : -Math.pow(2, 53)); - max = max || (max === 0 ? 0 : Math.pow(2, 53)); - - return Math.floor(random() * (max - min + 1)) + min; - } - - function n(c, fnc) { - for(var i = 0; i < c; i++) fnc(i, c); - } - - function validifyNumber(number, fallback) { - // If valid number in string, will be converted - number = +number; - // undefined, Object, NaN, null etc is not > 0 - if(number > 0) { - return number; - } else { - return fallback; - } - } - - // The helpers to be exported - var helpers = { - - loremWord: function () { - return initCap(loremWords[randomInt(0) % loremWords.length].replace(/[,]/g, '')); - }, - - loremWords: function (count) { - count = validifyNumber(count, 1); - - var words = []; - n(count, function() { - words.push(loremWords[randomInt(0, loremWords.length)]); - }); - - return words.join(' '); - }, - - loremSentence: function() { - return helpers.loremWords(randomInt(5, 20)).replace(/^[a-z]/, function(m) { - return m.toUpperCase(); - }) + '.'; - }, - - loremSentences: function(count) { - count = validifyNumber(count, 1); - - var sentences = []; - - n(count, function() { - sentences.push(helpers.loremSentence()); - }); - - return sentences.join(' '); - }, - - loremParagraph: function () { - return helpers.loremSentences(randomInt(4, 10)); - } - }; - - opt = opt || {}; - for (var helper in helpers) { - if (helpers.hasOwnProperty(helper)) { - Handlebars.registerHelper(helper, helpers[helper]); - } - } -}; diff --git a/site/images/chartist-guy.gif b/site/images/chartist-guy.gif deleted file mode 100644 index 64895091d..000000000 Binary files a/site/images/chartist-guy.gif and /dev/null differ diff --git a/site/images/chartist-guy.svg b/site/images/chartist-guy.svg deleted file mode 100755 index d2f338fac..000000000 --- a/site/images/chartist-guy.svg +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/site/images/chartist-icon.svg b/site/images/chartist-icon.svg deleted file mode 100755 index 2f72bb41d..000000000 --- a/site/images/chartist-icon.svg +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/site/layouts/content.hbs b/site/layouts/content.hbs deleted file mode 100644 index 444128129..000000000 --- a/site/layouts/content.hbs +++ /dev/null @@ -1,21 +0,0 @@ ---- -layout: default ---- -
- {{>navigation}} -
-
-

{{title}}

-
- - {{#if page.side-nav}} - {{partial page.side-nav this}} - {{else}} - {{>side-navigation}} - {{/if}} - -
- {{>body}} -
-
-
\ No newline at end of file diff --git a/site/layouts/default.hbs b/site/layouts/default.hbs deleted file mode 100755 index 5e13f2875..000000000 --- a/site/layouts/default.hbs +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - - - - - {{ title }} - - - - - - - - - - - - -{{> body }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/site/layouts/landing.hbs b/site/layouts/landing.hbs deleted file mode 100644 index fe6bc5497..000000000 --- a/site/layouts/landing.hbs +++ /dev/null @@ -1,33 +0,0 @@ ---- -layout: default ---- -
-
-
Chartist.js - Simple responsive charts -
-
-
- -
-
-
- Only 10KB (Gzip) with no dependencies! -
- -
- - {{> navigation }} - -
-
-

{{title}}

-
-
- {{> body }} -
-
-
diff --git a/site/partials/affiliate-project.hbs b/site/partials/affiliate-project.hbs deleted file mode 100644 index 73e5b0f21..000000000 --- a/site/partials/affiliate-project.hbs +++ /dev/null @@ -1,5 +0,0 @@ - -
{{title}}
- {{image.alt}} -
Get this Template
-
diff --git a/site/partials/api-side-navigation.hbs b/site/partials/api-side-navigation.hbs deleted file mode 100644 index 2a2d71669..000000000 --- a/site/partials/api-side-navigation.hbs +++ /dev/null @@ -1,14 +0,0 @@ - \ No newline at end of file diff --git a/site/partials/browser-support-table.hbs b/site/partials/browser-support-table.hbs deleted file mode 100644 index 895823582..000000000 --- a/site/partials/browser-support-table.hbs +++ /dev/null @@ -1,22 +0,0 @@ - - - - - {{#each browsers}} - - {{/each}} - - - - {{#each features}} - - - {{#each browsers}} - - {{/each}} - - {{/each}} - -
{{this}}
{{name}} - {{text}} -
\ No newline at end of file diff --git a/site/partials/code-snippet.hbs b/site/partials/code-snippet.hbs deleted file mode 100644 index adc2f44b6..000000000 --- a/site/partials/code-snippet.hbs +++ /dev/null @@ -1,4 +0,0 @@ -{{#if button}}{{/if}} -{{! if path is there then we load the file and escape in path otherwise we lookup a file called id.lang (index.html, - test.js etc.) }} -
{{#if path}}{{glob path}}{{else}}{{glob (snippetPath id lang)}}{{/if}}
\ No newline at end of file diff --git a/site/partials/code.hbs b/site/partials/code.hbs deleted file mode 100644 index 6405be6b3..000000000 --- a/site/partials/code.hbs +++ /dev/null @@ -1,2 +0,0 @@ -{{#if button}}{{/if}} -{{code}} \ No newline at end of file diff --git a/site/partials/dox/dox-member.hbs b/site/partials/dox/dox-member.hbs deleted file mode 100644 index 2836f45f5..000000000 --- a/site/partials/dox/dox-member.hbs +++ /dev/null @@ -1,47 +0,0 @@ -
-
-
{{ctx.type}} {{ctx.string}}
- -
-
-    {{code}}
-  
-
-
{{{description.summary}}}
- - {{#if (doxTagsOfType this 'param')}} -
Parameters
- {{#each (doxTagsOfType this 'param')}} -
- {{name}} - ({{#each types}} - {{this}} - {{/each}}) -
{{description}}
-
- {{/each}} - {{/if}} - - {{#if (doxTagsOfType this 'return')}} - {{#with (doxTag this 'return')}} -
Returns
- -
- ({{#each types}} - {{this}} - {{/each}}) -
{{description}}
-
- {{/with}} - {{/if}} - - {{#if (doxTagsOfType this 'example')}} -
Examples
- {{#each (doxTagsOfType this 'example')}} -
{{string}}
- {{/each}} - {{/if}} - -
- -
\ No newline at end of file diff --git a/site/partials/dox/dox-module.hbs b/site/partials/dox/dox-module.hbs deleted file mode 100644 index 771c74c6e..000000000 --- a/site/partials/dox/dox-module.hbs +++ /dev/null @@ -1,15 +0,0 @@ -
-
-

- Module {{name}} -

-
- {{{description}}} -
-
- {{#each members}} - {{>dox-member}} - {{/each}} -
-
-
\ No newline at end of file diff --git a/site/partials/dox/dox-section.hbs b/site/partials/dox/dox-section.hbs deleted file mode 100644 index d25b69da9..000000000 --- a/site/partials/dox/dox-section.hbs +++ /dev/null @@ -1,14 +0,0 @@ -
-
-

{{fileName}}

-
-
- {{#each modules}} - {{>dox-module}} - {{/each}} -
- - -
\ No newline at end of file diff --git a/site/partials/example-chart.hbs b/site/partials/example-chart.hbs deleted file mode 100644 index ba765dde4..000000000 --- a/site/partials/example-chart.hbs +++ /dev/null @@ -1,5 +0,0 @@ -
-{{#if show-code-button}} - -
{{atob (exampleCode id)}}
-{{/if}} \ No newline at end of file diff --git a/site/partials/heading.hbs b/site/partials/heading.hbs deleted file mode 100644 index e4d128af4..000000000 --- a/site/partials/heading.hbs +++ /dev/null @@ -1,2 +0,0 @@ -{{title}} \ No newline at end of file diff --git a/site/partials/hint.hbs b/site/partials/hint.hbs deleted file mode 100644 index ff66bbde0..000000000 --- a/site/partials/hint.hbs +++ /dev/null @@ -1,4 +0,0 @@ -
-
{{title}}
-
{{{text}}}
-
\ No newline at end of file diff --git a/site/partials/live-example.hbs b/site/partials/live-example.hbs deleted file mode 100644 index 2c9c99537..000000000 --- a/site/partials/live-example.hbs +++ /dev/null @@ -1,21 +0,0 @@ -
- {{#if title}} -
- {{title}} -
- {{/if}} -
-
-
- -
diff --git a/site/partials/navigation.hbs b/site/partials/navigation.hbs deleted file mode 100644 index ddf00f98c..000000000 --- a/site/partials/navigation.hbs +++ /dev/null @@ -1,24 +0,0 @@ -
- -
diff --git a/site/partials/section.hbs b/site/partials/section.hbs deleted file mode 100644 index 1f74a6d95..000000000 --- a/site/partials/section.hbs +++ /dev/null @@ -1,18 +0,0 @@ -
-
- {{>heading}} -
-
- {{#each items}} - {{partial type data}} - {{/each}} -
- - {{#if side-notes}} - - {{/if}} -
\ No newline at end of file diff --git a/site/partials/side-navigation.hbs b/site/partials/side-navigation.hbs deleted file mode 100644 index 2ef200afa..000000000 --- a/site/partials/side-navigation.hbs +++ /dev/null @@ -1,18 +0,0 @@ - diff --git a/site/partials/sub-section.hbs b/site/partials/sub-section.hbs deleted file mode 100644 index fba1e5bf3..000000000 --- a/site/partials/sub-section.hbs +++ /dev/null @@ -1,6 +0,0 @@ -
- {{>heading}} - {{#each items}} - {{partial type data}} - {{/each}} -
\ No newline at end of file diff --git a/site/partials/table.hbs b/site/partials/table.hbs deleted file mode 100644 index 74cdf277b..000000000 --- a/site/partials/table.hbs +++ /dev/null @@ -1,22 +0,0 @@ -{{#if button}}{{button}}{{/if}} - - {{#if header}} - - - {{#each header}} - - {{/each}} - - - {{/if}} - - - {{#each rows}} - - {{#each this}} - - {{/each}} - - {{/each}} - - diff --git a/site/partials/text.hbs b/site/partials/text.hbs deleted file mode 100644 index a90816d34..000000000 --- a/site/partials/text.hbs +++ /dev/null @@ -1 +0,0 @@ -

{{{text}}}

\ No newline at end of file diff --git a/site/robots.txt b/site/robots.txt deleted file mode 100644 index 941749507..000000000 --- a/site/robots.txt +++ /dev/null @@ -1,3 +0,0 @@ -# robotstxt.org - -User-agent: * diff --git a/site/scripts/chartist-guy.js b/site/scripts/chartist-guy.js deleted file mode 100644 index e13ab0381..000000000 --- a/site/scripts/chartist-guy.js +++ /dev/null @@ -1,63 +0,0 @@ -(function(){ - 'use strict'; - - // Chartist guy data chart data and options - var optionsChartistGuy = { - width: 195, - height: 137, - chartPadding: { - top: 15, - right: 10, - bottom: 10, - left: 10 - }, - axisX: { - offset: 15, - showLabel: true, - showGrid: true, - labelInterpolationFnc: function(n) { - return n; - } - }, - axisY: { - offset: 25, - showLabel: true, - labelOffset: { - y: 5 - }, - showGrid: true, - scaleMinSpace: 15, - labelInterpolationFnc: function(n) { - return Math.round(n / 100000) / 10 + 'm.'; - } - } - }; - - var chartistGuyData = { - labels: ['1st', '2nd', '3rd'], - series: [ - { - name: 'Workers', - data: [1283000, 1500000, 5706000] - }, - { - name: 'Nobles', - data: [1883000, 2050000, 3706000] - } - ] - }; - - var $chartistGuyElement = $('#chartist-guy'); - if($chartistGuyElement.length > 0) { - - // Create new snap object from SVG - var chartistGuySnap = Snap($chartistGuyElement.get(0)); - // Load Chartist guy SVG - Snap.load($chartistGuyElement.data('svgSrc'), function (fragment) { - chartistGuySnap.append(fragment); - - // Add line chart to canvas of Chartist guy :-) - window.Chartist.Line($chartistGuyElement.find('#chart-canvas').get(0), chartistGuyData, optionsChartistGuy); - }); - } -}()); diff --git a/site/scripts/main.js b/site/scripts/main.js deleted file mode 100644 index 38d8b8232..000000000 --- a/site/scripts/main.js +++ /dev/null @@ -1,123 +0,0 @@ -'use strict'; - -// Initialize highlight.js -window.hljs.initHighlightingOnLoad(); - -function evalChartistCode(code, chartElement) { - // Modify the code to use a proper selector using the ID of the example as well as return the Chartist object - var modified = code.replace(/.*Chartist\s*\.\s*(.+)\(\s*['"](.+)['"]/, function(match, type) { - return ['var chart = new Chartist.', type, '(chartElement'].join(''); - }) + '; return chart;'; - - // Remove any declaration of $chart as we are passing $chart to our function eval - modified = modified.replace(/var \$chart.+;/, ''); - - var $chartElement = $(chartElement).empty(); - - try { - // Create function from the modified code and execute it - return (new Function(['chartElement', '$chart'], modified)(chartElement, $chartElement)); // jshint ignore:line - } catch(err) { - // Maybe show error in the future - } -} - -// Generic data-* driven control behaviour -$(function() { - $('[data-toggle-visible]').each(function() { - var $element = $(this), - $target = $($element.data('toggleVisible')); - - $target.addClass('invisible'); - $element.on('click', function(e) { - $target.toggleClass('invisible'); - e.preventDefault(); - }); - }); - - $('[data-sticky]').each(function() { - var $element = $(this), - initialOffset = $element.offset().top, - margin = $element.data('sticky') || 0; - - $(window).on('scroll', function() { - var scrollTop = $(window).scrollTop(); - - if(scrollTop > initialOffset - margin) { - $element.css({ - position: 'relative', - top: scrollTop + margin - initialOffset - }); - } else { - $element.css({ - position: '', - top: '' - }); - } - }); - }); - - $('[data-example]').each(function() { - var $element = $(this), - code = window.atob($element.data('example')); - - // Execute the Chartist code immediately - evalChartistCode(code, $element.get(0)); - }); - - $('[data-live-example]').each(function() { - var $element = $(this), - $editor = $element.find('.code-editor'), - initialCode = window.atob($element.data('liveExample')), - chartist, - cm; - - function updateChart() { - if(chartist) { - chartist.update(); - } - } - - function initializeCodeMirror() { - if(cm) { - return; - } - - cm = window.CodeMirror.fromTextArea($editor.get(0), { - mode: 'javascript', - theme: 'chartist', - lineWrapping: true, - indentUnit: 2, - tabSize: 2 - }); - - cm.on('change', function(event) { - // Execute the Chartist code once the code gets updated - chartist = evalChartistCode(event.doc.getValue(), $element.find('.ct-chart').get(0)); - }); - } - - $element.find('.edit-button').on('click', function() { - $element.addClass('edit-mode'); - updateChart(); - initializeCodeMirror(); - }); - - $element.find('.close-edit-button').on('click', function() { - $element.removeClass('edit-mode'); - updateChart(); - }); - - $editor.val(initialCode); - - // Execute the Chartist code immediately - chartist = evalChartistCode(initialCode, $element.find('.ct-chart').get(0)); - }); -}); - -// Initialize foundation -$(document).foundation({ - topbar: { - scrolltop: false - } -}); diff --git a/site/styles/_affiliate-project.scss b/site/styles/_affiliate-project.scss deleted file mode 100644 index 3d9297887..000000000 --- a/site/styles/_affiliate-project.scss +++ /dev/null @@ -1,31 +0,0 @@ -.affiliate-projects { - display: flex; - margin: 0 -10px; -} - -.affiliate-project { - display: block; - margin: 0 10px; -} - -.affiliate-project__title { - display: block; - font-size: 20px; - font-weight: bold; - margin: 10px 0; - line-height: 1.1; -} - -.affiliate-project__image { - margin-bottom: 10px; -} - -@media screen and (max-width: 640px) { - .affiliate-projects { - display: block; - } - - .affiliate-project { - margin: 10px; - } -} diff --git a/site/styles/_api-doc.scss b/site/styles/_api-doc.scss deleted file mode 100644 index 61f62d592..000000000 --- a/site/styles/_api-doc.scss +++ /dev/null @@ -1,81 +0,0 @@ -.module-member { - margin-bottom: 2em; - background-color: mix(black, $color-white, 5%); - box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1); - padding: 10px; - - .member-header { - position: relative; - - .api-code-button { - @include button(); - text-transform: uppercase; - width: calc(100% + 20px); - margin: 0 -10px; - - - @media #{$medium-up} { - position: absolute; - width: auto; - margin: 0; - top: 0; - right: -10px; - padding: 0 10px; - height: 100%; - } - } - } - - .description { - margin-top: 1em; - margin-bottom: 2em; - - strong { - display: inline-block; - padding-top: 1em; - padding-bottom: 0.5em; - } - } - - .member-title { - background: #453D3F; - padding: 10px; - margin: -10px -10px 0 -10px; - color: lighten($color-white, 10%); - text-transform: none; - } - - .api-example { - margin-top: 2em; - } - - .param { - margin-bottom: 0.5em; - - > code { - font-weight: bold; - } - } - - .param-type { - - > code { - background-color: rgba(255, 255, 255, 0.2); - padding: 0.1em 0.2em; - } - - &:after { - content: "ā•±"; - } - - &:last-of-type { - &:after { - content: none; - } - } - } - - pre { - margin: 0 -10px; - } -} diff --git a/site/styles/_base.scss b/site/styles/_base.scss deleted file mode 100644 index e5bd390c7..000000000 --- a/site/styles/_base.scss +++ /dev/null @@ -1,130 +0,0 @@ -$modular-scale: generateScale(16, $scale-perfect-fourth); - -body { - line-height: 1.54; - background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAIoElEQVRoQ23a7bETOxCE4eNfJxEIBnKBYCAXCAZy4bpVPK4X1XWVWe+uPkYz3T0jHR6/fv16f3t+Pn369Pb8vZ9vP3/+fPv9+/d59uHDh/P748ePb1++fDnXvd937ff+69ev53nH2O+12btd9/n27dtps/vv37+fvnu233tm/I1rfvbs3Z65bly/N8ZjC2HMefB4vAxk8CbfZJuAwfrsGcMsxDg/fvw47TepBTByRqzdjNuzz58/n4WtnUXPlrXbs73veMbZs30ez0bvG3CT7crzovLnz58z2d7tu88G3eC7t5Ddr90+G0t0d7/nM3JjGkNERYyztOOU2dMI7b6fvdv38TT0QGur3+oYaSId5xlGisaitAnvcFuUPmu3T2G4BYn4novC5tsXDG+IQcUcrN3GeTwHeN+Em4yHYRHG17ket0jexZE9X7t994yBu78NFAk8mQPBjYPKm7U3pghxxPo9nv+8M3wT4gjI7B0D/4lpyAv/oLMFMmyTg5boFnbmwTORGjpEcmPsgw9gL2oHWuMIQwqRhQ4BZ8gGQdrd40GVjiDMy3OICNebFIxzyh/PtuCNYZFbhCjjnHkh4HCkqlMJrXQyblcTEQmRgmeT3oJAoTih44NNpbryjV91iggf257GHI7MgyIjZFUxYlAjQXHR2/sSsCrIo/qScE7j1UapqkWmZ/CiDna4chby/OdwZEYg/CYme5VMyWsdB7v1oWR4Jm8Uv+AgQiKC1FUs0V1b0SfrFNJiKveH7F2xRcic87REJZ/I9p2oWf7/8k2rAbmKE6gaR20sBN+7fcguJQSxjXsissxOTkuoarQwU6BFgnKQyIa8ULVoWVniK78Y3nnArVCupJNzue9ExOplVZ7nsV1n3OBUqPGOdq23kHbv9htUW7uBj/mbFwgQ+LrHo5Yzs+uoloRmUlhcAx8lCkFoUcloOWeTi17H4j2QxA2OQGbvIYUjtJfAFZmb65+EOMNhcZ14T701o0go73Vy+aayKZdsvMFvk8tHKmAwLgdV2e0v4kgut23sf1RrC6E2SHQaRZphl1csGHSqWnhQwhaeFQBtKaIM3zE4YHODmMT7eK7qFI3C12wMPgYFge4NZngTHQgyUhTnPbBE4NZb5pf4umUAKbmpOWvtFtnDkXLhzsbIfReGSoQZTqJvkUDUliHkXQQtrsbuHdg06a2NfQnnK4tOrVWF2QC8A88w7NrSYgtp2QKGhZ5MTJblBeOo61TZ99ZBBMBc1HHlFI3L7LRdSU2pLAhMNgAZtmDhVkjWaIaKMrJ6brHNXxxDGETBItlSDr9Uq+UIzLXmbw2FuMp0RnRvwgGEQZUAYozs9rkQolhbxBzTYrSqyZazkEFLYiKRMwQ516jlOYnmZfmCAMwg4kBeK7Ptt/koEA6KtFquiXDt5SV83HwnITazrxFviIK6SEli+7q2xW5LFp7CsW7OWhmAi1OUe5EkVuLT3qKb804Zvxc9ZKDXrTqVIyX82nUnx0hXOaEFn7wAZjjWOqpOKxxbEkGJyv11HGS/AV4mF/ritAluz220SCjxUAyq4dRUpBNhuxNVTYCqqDRaxuWEzX8iAqsiUQIjLo/JG/q09mIYLzF8V1iWW8CpUZQGNiaSN7FyqoW3TDoRoctICf+wWfUhBEgucd11U0sLcGzyAzse7x6n0muvtHbykLyF+IfsiwjsyZpVIrtGE5LJlhAWKtsPpqQTVBkqAgxshIzNgfKO6NuDiBiInkT5/L7fW1aTKiBBY/c9uqwE2ra2r0iTcIpnHA7ALcc/EvKdweWqXbvxO5l98gsWFML+Gx9kdFHZRJXAPRchk1EeC5vRcsz6tswh08hrHm1EWj8VAViv/atoRNSqBDViNA92J2hRnRwpi29Khxvr5/QFlERm/XryiVu2CERB/9eeXdJTqth/bwCliER5e0+YqRu+Vfn2W1L0nndxiXNEtAJxn9TL9o3y2Y8gt9KCcZukpIZZHtt7OaLPkFDoQZWXGd1Dc326zUVyTlBQgi2oTlxep/EGR7h16p7jKMPfo6EmPpGS5e1tJDBwxD81FGVTCuGH7XLrNGe+PeieDVRs719bXcZV0lo6W6g8ghPdq/AmbvSKoBwE5yBZjh4Vus6OQQ5MRUMRe+SX56vxapkS7az87/7dORWptCBjSaoMx0Oe7zmA7W35YXzP1H0SI7tUD6/ql4fkDKGDY1zpbm5tW4brC264xnsihFu83vIH9PAWB1Xmu7eIRvWUKLzqRbM3Y9RhJaUkaDHe2fysr8WprXrgxsv1esui5hoRsmjbYVA/EYE7k/J0t68iZPAWdrhxY5taySHln3H0ZSCoNIfham0gvbj6Ovut7OFKC7kNUhlcG0rVUxT7/h4lKQLLN1zq9mDGO6UUJerWqEvCuHXK+EVEIuQl4YL1e0MjKZrMoZtaCgxnLPjVw7J7YSZrF+b/V1ByAHGR605EeAL5bGqEuaRtXbX3zQPai+7GKTElRIT198pGF7/AaG3x695p1jmnjFdOrPN+C1nrpzvrW9Da87rMv3tbZ/mh+t+q2WJ4li2M7O7RH6OoXkXlZPZm525t10GZAXY9LVHSW4ykirgMJiI9hAARzrsr6FvlCA9FxUV2HY5Udr2QwBRoDhkaCVzAMd4sR0S1BO2f7Rycg2PnNRe1U6IQnkbmpVogoMYxSHnSMy2evMsRELEYGJ8nlSPgu/suVNW9vlLArreorP+QYWEb49RaQm/Q+xyqRz5C2xKCXKvHdu1envrU+/DNaOPeXOy2d79V2UoVtHjVWpQDYVtmkFHhv//ypI8oURzR4XmVdc+HVcXgyRmqZl4v37xTYW/cc2SqGGw9VW44USSfd7kCw/YL3svoFtKECrKMAmVOKxSJThMvfhjnddLYfbH0j6DdWzRjN9uDAEwr9rqpaja3xzCHxZ5t69//fICTajLnwlTSHBvjP9uuEN4BiDLbAAAAAElFTkSuQmCC); - background-position: 50% 50%; - background-repeat: repeat repeat; -} - -html { - box-sizing: border-box; -} - -*, *:before, *:after { - box-sizing: inherit; -} - -p:first-child { - margin-top: 0; -} - -a { - color: $color-red; - text-decoration: none; - - &:hover { - color: lighten($color-red, 10%); - } -} - -ul { - padding: 0; - - list-style: disc outside none; - padding-left: 1em; -} - -pre { - white-space: normal; - - code { - white-space: pre-wrap; - } -} - -h1, h2, h3, h4, h5, h6 { - font-weight: 300; - text-transform: uppercase; - line-height: 1.2; - margin-top: 1em; - margin-bottom: 0.5em; -} - -h2 { - font-size: rem-calc(nth($modular-scale, 6)); - font-weight: 400; - - @media #{$medium-up} { - font-size: rem-calc(nth($modular-scale, 8)); - font-weight: 300; - } -} - -h3 { - font-size: rem-calc(nth($modular-scale, 5)); - font-weight: 400; - background: #ded0ba; - padding: 0.2em; - box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1); - - @media #{$medium-up} { - font-size: rem-calc(nth($modular-scale, 7)); - } -} - -h4 { - font-size: rem-calc(nth($modular-scale, 4)); - font-weight: 700; - - @media #{$medium-up} { - font-size: rem-calc(nth($modular-scale, 6)); - font-weight: 400; - } -} - -h5 { - font-size: rem-calc(nth($modular-scale, 4)); - font-weight: 700; - margin-top: 2em; - - @media #{$medium-up} { - font-size: rem-calc(nth($modular-scale, 4)); - } -} - -h6 { - font-size: rem-calc(nth($modular-scale, 4)); - font-weight: 700; - margin-top: 2em; - - @media #{$medium-up} { - font-size: rem-calc(nth($modular-scale, 4)); - } -} - -table { - min-width: 50%; - text-align: left; - border-collapse: collapse; - - th, td { - padding: 0.5em 1em; - } - - tr { - th, td { - border-bottom: 1px solid rgba(0, 0, 0, 0.1); - } - } - - thead th { - padding: 0.8em 1em; - } -} - -p > code { - background-color: rgba(255, 255, 255, 0.3); - padding: 0.1em 0.2em; - border-radius: 2px; -} diff --git a/site/styles/_code-mirror-theme.scss b/site/styles/_code-mirror-theme.scss deleted file mode 100644 index 8e7eaa89e..000000000 --- a/site/styles/_code-mirror-theme.scss +++ /dev/null @@ -1,103 +0,0 @@ -.CodeMirror-scroll { - overflow: auto !important; -} - -.cm-s-chartist.CodeMirror { - background: $color-black; - color: lighten($color-white, 10%); - padding: rem-calc(nth($modular-scale, 5)); - font-family: "Source Code Pro", "Courier New", monospace !important; - line-height: 1.4; - word-wrap: break-word; - height: auto; - margin-bottom: rem-calc(nth($modular-scale, 5)); -} - -.cm-s-chartist div.CodeMirror-selected { - background: darken($color-black, 10%) !important; -} - -.cm-s-chartist .CodeMirror-gutters { - background: #f7f7f7; - border-right: 0px; -} - -.cm-s-chartist .CodeMirror-guttermarker { - color: $color-grapefruit; -} - -.cm-s-chartist .CodeMirror-guttermarker-subtle { - color: darken($color-black, 10%); -} - -.cm-s-chartist .CodeMirror-linenumber { - color: darken($color-black, 20%); -} - -.cm-s-chartist .CodeMirror-cursor { - border-left: 2px solid lighten($color-black, 10%) !important; -} - -.cm-s-chartist span.cm-comment { - color: lighten($color-black, 20%); -} - -.cm-s-chartist span.cm-atom { - color: $color-yellow; -} - -.cm-s-chartist span.cm-number { - color: $color-yellow; -} - -.cm-s-chartist span.cm-property, .cm-s-3024-day span.cm-attribute { - color: lighten($color-white, 10%); -} - -.cm-s-chartist span.cm-keyword { - color: $color-grapefruit; - font-weight: bold; -} - -.cm-s-chartist span.cm-string { - color: $color-yellow; -} - -.cm-s-chartist span.cm-variable { - color: lighten($color-white, 10%); -} - -.cm-s-chartist span.cm-variable-2 { - color: lighten($color-grapefruit, 20%); -} - -.cm-s-chartist span.cm-def { - color: lighten($color-grapefruit, 20%); -} - -.cm-s-chartist span.cm-bracket { - color: #3a3432; -} - -.cm-s-chartist span.cm-tag { - color: $color-grapefruit; - font-weight: bold; -} - -.cm-s-chartist span.cm-link { - color: $color-yellow; -} - -.cm-s-chartist span.cm-error { - background-color: $color-grapefruit; - color: $color-black; -} - -.cm-s-chartist .CodeMirror-activeline-background { - background: #e8f2ff !important; -} - -.cm-s-chartist .CodeMirror-matchingbracket { - text-decoration: underline; - color: white !important; -} diff --git a/site/styles/_example-charts.scss b/site/styles/_example-charts.scss deleted file mode 100755 index 71d3c08fe..000000000 --- a/site/styles/_example-charts.scss +++ /dev/null @@ -1,144 +0,0 @@ -#chartist-guy #chart-canvas { - @include ct-chart($ct-text-color: darken($color-white, 50%), $ct-grid-color: darken($color-white, 20%)); - - .ct-series-a { - .ct-point { - @include ct-chart-point($ct-point-shape: square, $ct-point-size: 8px); - } - - .ct-line { - @include ct-chart-line($ct-line-dasharray: 5px); - @include animation(dashoffset, 1s linear infinite); - } - } -} - -#example-line-months-interpolation { - @include ct-chart($ct-text-color: lighten($color-gray, 30%), $ct-grid-color: lighten($color-gray, 5%), $ct-grid-dasharray: 3px); - - .ct-series-a { - .ct-point { - @include ct-chart-point($ct-point-shape: square); - } - - .ct-line { - @include ct-chart-line($ct-line-width: 4px, $ct-line-dasharray: 5px); - @include animation(dashoffset, 1s linear infinite); - } - } - - .ct-series-b { - .ct-point { - @include animation(bouncing-stroke, 0.5s ease infinite); - } - - .ct-line { - @include ct-chart-line($ct-line-width: 3px); - } - } - - .ct-series-c { - .ct-point { - @include animation(exploding-stroke, 1s ease-out infinite); - } - - .ct-line { - @include ct-chart-line($ct-line-width: 2px, $ct-line-dasharray: 40px 3px); - } - } -} - -#example-plugin-threshold { - .ct-line { - stroke-dasharray: 5px; - animation: dashoffset 1s linear infinite; - } - - .ct-line.ct-threshold-above, .ct-point.ct-threshold-above, .ct-bar.ct-threshold-above { - stroke: #f05b4f; - } - - .ct-line.ct-threshold-below, .ct-point.ct-threshold-below, .ct-bar.ct-threshold-below { - stroke: #59922b; - } - - .ct-area.ct-threshold-above { - fill: #f05b4f; - } - - .ct-area.ct-threshold-below { - fill: #59922b; - } -} - -#example-plugin-fill-donut { - .ct-chart-donut .ct-series-a .ct-slice-donut { - stroke: #d70206; - } - - .ct-chart-donut .ct-series-b .ct-slice-donut { - stroke: rgba(0,0,0,.4); - opacity: 0.0; - } - - .ct-chart-donut .ct-fill-donut .ct-slice-donut { - stroke: rgba(0,0,0,.4); - opacity: 1; - } - - .ct-fill-donut-label { - h3 { - font-weight: bolder; - } - - small { - font-size: 0.6em; - } - - - i { - font-size: 1.5em; - } - - } -} -#example-plugin-zoom { - .ct-zoom-rect { - fill: rgba(200, 100, 100, 0.3); - stroke: red; - } -} -#example-plugin-tooltip { - .chart { - position: relative; - } - - .chartist-tooltip { - position: absolute; - display: block; - min-width: 5em; - padding: .5em; - background: #F4C63D; - color: #453D3F; - font-family: Oxygen,Helvetica,Arial,sans-serif; - font-weight: 700; - text-align: center; - pointer-events: none; - z-index: 1; - -webkit-transition: opacity .2s linear; - -moz-transition: opacity .2s linear; - -o-transition: opacity .2s linear; - transition: opacity .2s linear; } - .chartist-tooltip:before { - content: ""; - position: absolute; - top: 100%; - left: 50%; - width: 0; - height: 0; - margin-left: -15px; - border: 15px solid transparent; - border-top-color: #F4C63D; } - .chartist-tooltip.tooltip-show { - opacity: 1; } -} diff --git a/site/styles/_highlight.scss b/site/styles/_highlight.scss deleted file mode 100644 index 407e08c0f..000000000 --- a/site/styles/_highlight.scss +++ /dev/null @@ -1,120 +0,0 @@ -/* -Chartist style - Licensed under WTFPL by Gion Kunz https://github.com/gionkunz/chartist-js -*/ - -.hljs { - display: block; - padding: rem-calc(nth($modular-scale, 5)); - background: $color-black; -} - -.hljs-tag, -.hljs-tag .hljs-title, -.hljs-keyword, -.hljs-literal, -.hljs-strong, -.hljs-change, -.hljs-winutils, -.hljs-flow, -.lisp .hljs-title, -.clojure .hljs-built_in, -.nginx .hljs-title, -.tex .hljs-special { - color: $color-grapefruit; -} - -.hljs { - color: lighten($color-white, 10%); -} - -.hljs .hljs-constant, -.asciidoc .hljs-code { - color: $color-grapefruit; -} - -.hljs-code, -.hljs-class .hljs-title, -.hljs-header { - color: lighten($color-white, 10%); -} - -.hljs-link_label, -.hljs-attribute, -.hljs-symbol, -.hljs-symbol .hljs-string, -.hljs-value, -.hljs-regexp { - color: $color-grapefruit; -} - -.hljs-link_url, -.hljs-tag .hljs-value, -.hljs-string, -.hljs-bullet, -.hljs-subst, -.hljs-title, -.hljs-emphasis, -.haskell .hljs-type, -.hljs-preprocessor, -.hljs-pragma, -.ruby .hljs-class .hljs-parent, -.hljs-built_in, -.sql .hljs-aggregate, -.django .hljs-template_tag, -.django .hljs-variable, -.smalltalk .hljs-class, -.hljs-javadoc, -.django .hljs-filter .hljs-argument, -.smalltalk .hljs-localvars, -.smalltalk .hljs-array, -.hljs-attr_selector, -.hljs-pseudo, -.hljs-addition, -.hljs-stream, -.hljs-envvar, -.apache .hljs-tag, -.apache .hljs-cbracket, -.tex .hljs-command, -.hljs-prompt, -.hljs-number, -.hljs-hexcolor { - color: $color-yellow; -} - -.hljs-comment, -.java .hljs-annotation, -.smartquote, -.hljs-blockquote, -.hljs-horizontal_rule, -.python .hljs-decorator, -.hljs-template_comment, -.hljs-pi, -.hljs-doctype, -.hljs-deletion, -.hljs-shebang, -.apache .hljs-sqbracket, -.tex .hljs-formula { - color: lighten($color-black, 20%); -} - -.hljs-keyword, -.hljs-literal, -.css .hljs-id, -.hljs-phpdoc, -.hljs-title, -.hljs-header, -.haskell .hljs-type, -.vbscript .hljs-built_in, -.sql .hljs-aggregate, -.rsl .hljs-built_in, -.smalltalk .hljs-class, -.diff .hljs-header, -.hljs-chunk, -.hljs-winutils, -.bash .hljs-variable, -.apache .hljs-tag, -.tex .hljs-special, -.hljs-request, -.hljs-status { - font-weight: bold; -} diff --git a/site/styles/_landing.scss b/site/styles/_landing.scss deleted file mode 100644 index 4cdbd4c79..000000000 --- a/site/styles/_landing.scss +++ /dev/null @@ -1,191 +0,0 @@ -.landing-page-header { - background-color: $color-yellow; - text-align: center; - - > .introduction-title { - text-transform: uppercase; - font-size: rem-calc(nth($modular-scale, 8)); - margin: 0; - display: inline-block; - width: 100%; - font-weight: 700; - color: white; - line-height: 0.5; - margin-top: 2rem; - - text-shadow: 1px 1px mix(black, $color-yellow, 15%), 2px 2px mix(black, $color-yellow, 15%), 3px 3px mix(black, $color-yellow, 15%); - - @media #{$medium-up} { - font-size: rem-calc(nth($modular-scale, 10)); - } - - > small { - font-size: rem-calc(nth($modular-scale, 4)); - display: inline-block; - width: 100%; - @include text-shadow(1px 1px mix(black, $color-yellow, 15%), 2px 2px mix(black, $color-yellow, 15%)); - } - } - - .library-statement { - text-transform: uppercase; - font-size: rem-calc(nth($modular-scale, 5)); - margin: 0; - display: inline-block; - width: 100%; - font-weight: 700; - color: white; - - @include text-shadow(1px 1px mix(black, $color-yellow, 15%), 2px 2px mix(black, $color-yellow, 15%)); - - padding-bottom: $column-gutter; - - .important { - text-decoration: underline; - } - } - - > .limiter { - position: relative; - max-width: 480px; - margin: 0 auto; - - > figure { - margin: 0; - @include ct-responsive-svg-container($ratio: (1/1)); - - > svg { - width: 100%; - height: 100%; - } - } - } - - > .call-to-action { - text-align: center; - padding-bottom: $column-gutter; - padding-left: $column-gutter / 2; - padding-right: $column-gutter / 2; - - > .button { - color: white; - color: rgba(255, 255, 255, 0.9); - font-weight: 300 !important; - - &:before { - padding-right: 0.5em; - } - - &.download { - background-color: $color-red; - &:hover, - &:focus { background-color: darken($color-red, 10%); color: rgba(255, 255, 255, 1);} - } - - &.contribute { - background-color: $color-grapefruit; - &:hover, - &:focus { background-color: darken($color-grapefruit, 10%); color: rgba(255, 255, 255, 1);} - } - - @media #{$small-only} { - width: 100%; - font-size: 1em; - font-weight: 700 !important; - } - - @media #{$medium-up} { - &.download { - margin-right: $column-gutter / 2; - } - } - } - } -} - -.brwsrsup { - text-align: center; - - .brwsrsup__support--supported { - color: $color-green; - @include icon($fa-var-check-circle, $icon-location: after, $icon-size: 1.5rem); - } - - .brwsrsup__visually-hidden { - position: absolute; - overflow: hidden; - clip: rect(0 0 0 0); - height: 1px; - width: 1px; - margin: -1px; - padding: 0; - border: 0; - } -} - -@media screen and (max-width: 1100px) { - .brwsrsup { - display: block; - text-align: left; - - thead { - display: none; - } - - .brwsrsup__feature { - display: block; - padding: 10px 0; - margin: 20px 0 10px 0; - } - - tbody { - display: block; - } - - tr { - display: block; - &:after { - content: ""; - display: table; - clear: both; - } - } - - td { - display: block; - } - - .brwsrsup__support { - diplay: block; - padding: 5px; - width: auto; - float: left; - margin: 0 10px 10px 0; - - &:before { - content: attr(data-browser)" "; - } - } - - .brwsrsup__support--supported { - background: $color-green; - color: white; - - &:before { - content: attr(data-browser)" "; - } - - @include icon($fa-var-check-circle, $icon-location: after); - } - - .brwsrsup__support--not-supported { - background: $color-red; - color: lighten($color-white, 10%); - - &:before { - content: attr(data-browser)" "; - } - @include icon($fa-var-exclamation-circle, $icon-location: after); - } - } -} diff --git a/site/styles/_live-example.scss b/site/styles/_live-example.scss deleted file mode 100644 index 7c532a7e7..000000000 --- a/site/styles/_live-example.scss +++ /dev/null @@ -1,57 +0,0 @@ -.live-example { - @include grid-row(nest); - - margin-bottom: rem-calc(nth($modular-scale, 4)); - - &.edit-mode { - .chart { - @media #{$large-up} { - @include grid-column(12); - } - } - - .live-code { - @media #{$large-up} { - @include grid-column(12); - } - - .introduction { - display: none; - } - - .editor-area { - display: block; - } - } - } - - .live-example-header { - @include grid-column(12); - } - - .chart { - @include grid-column(12); - - @media #{$large-up} { - @include grid-column(8); - } - } - - .live-code { - @include grid-column(12); - - .editor-area { - display: none; - } - - @media #{$large-up} { - @include grid-column(4); - } - } - - .ct-negative-labels { - .ct-label { - fill: rgba(255, 255, 255, 0.8); - } - } -} diff --git a/site/styles/_modules.scss b/site/styles/_modules.scss deleted file mode 100644 index 45f60facd..000000000 --- a/site/styles/_modules.scss +++ /dev/null @@ -1,5 +0,0 @@ -@import "modules/font"; -@import "modules/icon"; -@import "modules/animation"; -@import "modules/common"; -@import "modules/scale"; diff --git a/site/styles/main.scss b/site/styles/main.scss deleted file mode 100644 index f8ef8b0b4..000000000 --- a/site/styles/main.scss +++ /dev/null @@ -1,309 +0,0 @@ -@import "settings/chartist-docs"; -@import "settings/foundation"; -@import "settings/font-awesome-variables"; - -@import "modules"; - -@import "../../src/styles/settings/chartist-settings"; -@import "../../src/styles/chartist"; - -@import "compass-mixins/lib/compass/css3"; -@import "foundation/scss/normalize"; -@import "foundation/scss/foundation"; -@import "base"; -@import "landing"; -@import "highlight"; -@import "code-mirror-theme"; -@import "api-doc"; -@import "live-example"; -@import "example-charts"; -@import "affiliate-project"; - -.button { - text-transform: uppercase; - box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1); -} - -.invisible { - display: block !important; - max-height: 0; - overflow: hidden; - visibility: hidden; -} - -.text-clipping { - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; -} - -.hint { - position: relative; - margin-top: rem-calc(nth($modular-scale, 5)); - margin-bottom: rem-calc(nth($modular-scale, 5)); - padding: rem-calc(nth($modular-scale, 5)); - background: $color-gray; - color: lighten($color-white, 10%); - - > .title { - font-size: rem-calc(nth($modular-scale, 4)); - text-transform: uppercase; - font-weight: 600; - margin-bottom: 0.5rem; - color: lighten($color-black, 20%); - } - - a { - color: $color-yellow; - &:hover { - color: lighten($color-yellow, 10%); - } - } - - &[class*="hint-"] { - padding-left: 5.2rem; - - &.hint-cross-browser { - @include icon($fa-var-arrows-alt, 3rem); - } - - &:before { - position: absolute; - left: rem-calc(nth($modular-scale, 5)); - top: rem-calc(nth($modular-scale, 5)); - font-size: 3rem; - color: lighten($color-black, 5%); - } - } -} - -code { - font-family: "Source Code Pro", "Courier New", monospace !important; - word-wrap: break-word; -} - -.sticky.contain-to-grid { - box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); - - &.fixed, .page-content & { - .top-bar .name h1 a:before { - content: ""; - display: inline-block; - width: 34px; - height: 34px; - margin-top: -4px; - margin-right: 10px; - vertical-align: middle; - border-radius: 50%; - border: 2px solid #F4C63D; - background-size: 32px 32px; - background: #F4C63D url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjAiIHk9IjAiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMzIgMzIiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnIGlkPSJoZWFkIj48cGF0aCBmaWxsPSIjNzU1NDNCIiBkPSJNMTMuOCAyMC42czEuNiA1LTMuOSA1bDQuOSAxLjUgNC00LjItNS0yLjN6Ii8+PHBhdGggZmlsbD0iI0IyNDk0OSIgZD0iTTE3LjEgMjVzLTQuMS0xLjUtNS45IDEuMWwzLjcuOSAyLjItMnoiLz48cGF0aCBmaWxsPSIjRDM5Qzc2IiBkPSJNOS45IDI1LjRjMi4xIDEuMSA1IC42IDYgMCAxLjUtLjggMS41LTMgMS4xLTMuMi0uMi0uMS0yLjIgMS4zLTUuOS4xbC40LTMuMy01LjktLjJMOS43IDguNHM3LTIuOSAxNCAwVjE5Yy40LS4xLjgtLjIgMS4xIDAgLjkuMyAxLjEgMS40LjYgMi41LS40LjctMSAxLjMtMS43IDEuNHY2LjJzLTcuMiA0LjgtMTUuMSAyLjFjMCAwLTIuNS0uOC0yLjMtMy40IDAtLjItLjItMS45IDMuNi0yLjR6Ii8+PGcgZmlsbD0iIzYzNDEyOCI+PHBhdGggZD0iTTE1LjEgMTQuNGMwIC41LjkgMSAxLjkgMSAxLjEgMCAxLjktLjQgMS45LTEgMC0uNS0uOS0xLTEuOS0xLTEgMC0xLjkuNS0xLjkgMXpNOS43IDE0LjRjMCAuNS44IDEgMS45IDEgMSAwIDEuOS0uNCAxLjktMXMtLjgtMS0xLjktMWMtMS4xLjEtMS45LjUtMS45IDF6Ii8+PC9nPjxwYXRoIGZpbGw9IiMyMzFGMjAiIGQ9Ik0yMy44IDEwLjVWNmMuMS0zLjYgMS40LTUuMS40LTUuMy0xLS4yLTMuMi0uNi03LjgtLjYtNC4xIDAtNy4yLjUtOC4yLjZDNy4zIDEgOSAzLjkgOS4zIDZjLjEgMSAuMSAyLjUuMSAzLjgtMy4zLjUtNS4zIDEuNy01LjcgMi44aDI2LjZzLS4zLTEuMS02LjUtMi4xeiIvPjxwYXRoIGZpbGw9IiMzNTM0MzMiIGQ9Ik0xMi44IDIyLjRjMy4xIDIuOCAxMC40IDIuMyAxMC45LTIuMS4xLTEuMy0uNS0uMy0xLjEuMS0uOS42LTIuNS42LTMuNCAwLTEuNS0xLTQuMS00LjEtNi40LTEuOC0yLjQtMi4zLTUgLjgtNi41IDEuOC0uOS42LTIuNi42LTMuNSAwLS42LS40LTEuMi0xLjMtMS4xLS4xLjUgNC40IDcuOSA0LjkgMTEuMSAyLjF6Ii8+PC9nPjwvc3ZnPg==") no-repeat center; - } - } -} - -.ct-chart { - margin-bottom: 1rem; -} - -.ct-chart-pie .ct-label, .ct-chart-donut .ct-label { - font-size: 1em; - - @media #{$small-only} { - fill: rgba(255, 255, 255, 0.8); - } -} - -.main { - @include grid-row(); - - @media #{$medium-up} { - margin-top: rem-calc(nth($modular-scale, 8)); - } - - > header { - @include grid-column(12); - margin-top: rem-calc(nth($modular-scale, 5)); - - .page-content & { - margin-bottom: rem-calc(nth($modular-scale, 8)); - } - } - - > .side-navigation { - display: none; - - @media #{$medium-up} { - display: block; - @include grid-column(4); - - > nav { - max-width: 250px; - - > .side-nav { - background-color: mix(black, $color-white, 5%); - box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1); - - > .heading { - font-size: rem-calc(nth($modular-scale, 4)); - text-transform: uppercase; - font-weight: 600; - margin-top: rem-calc(nth($modular-scale, 7)); - margin-bottom: rem-calc(nth($modular-scale, 4)); - color: $color-black; - - &:first-child { - margin-top: 0; - } - } - - > li:not(.heading) > a { - - &:before { - content: "\2013\00A0"; - } - } - - > li a:not(.button) { - padding: 0; - - &:hover { - background: none; - } - } - } - } - } - } - - > .content { - @include grid-column(12); - - @media #{$medium-up} { - @include grid-column(8); - } - - > .documentation-section { - @include grid-row(nest); - - margin-top: rem-calc(nth($modular-scale, 4)); - margin-bottom: rem-calc(nth($modular-scale, 6)); - - &:first-child { - margin-top: 0; - } - - @media #{$medium-up} { - margin-top: rem-calc(nth($modular-scale, 6)); - margin-bottom: rem-calc(nth($modular-scale, 8)); - } - - > header { - @include grid-column(12); - } - - > .content { - @include grid-column(12); - - @media #{$medium-up} { - @include grid-column(8); - } - - @media #{$large-up} { - @include grid-column(9); - } - - .sub-section { - margin-bottom: 3rem; - } - - > .ct-chart { - &.dark { - background-color: $color-gray; - } - } - } - - > .side-notes { - @include grid-column(12); - - @media #{$medium-up} { - @include grid-column(4); - } - - @media #{$large-up} { - @include grid-column(3); - } - } - - &.full { - > .content { - @media #{$medium-up} { - @include grid-column(12); - } - } - - > .side-notes { - @media #{$medium-up} { - @include grid-column(12); - } - } - } - } - - > ul.example-gallery { - @include block-grid(1); - - @media #{$medium-up} { - @include block-grid(2); - } - } - } - - .full & { - > .side-navigation { - @include grid-column(12); - } - - > .content { - @include grid-column(12); - } - } -} - -@include keyframes(dashoffset) { - 0% { - stroke-dashoffset: 0px; - } - - 100% { - stroke-dashoffset: -20px; - } -} - -@include keyframes(bouncing-stroke) { - 0% { - stroke-width: 5px; - } - - 50% { - stroke-width: 10px; - } - - 100% { - stroke-width: 5px; - } -} - -@include keyframes(exploding-stroke) { - 0% { - stroke-width: 2px; - opacity: 1; - } - - 100% { - stroke-width: 20px; - opacity: 0; - } -} - diff --git a/site/styles/modules/_animation.scss b/site/styles/modules/_animation.scss deleted file mode 100644 index 1af626a1a..000000000 --- a/site/styles/modules/_animation.scss +++ /dev/null @@ -1,21 +0,0 @@ -@mixin keyframes($name) { - @-webkit-keyframes #{$name} { - @content; - } - @-moz-keyframes #{$name} { - @content; - } - @-ms-keyframes #{$name} { - @content; - } - @keyframes #{$name} { - @content; - } -} - -@mixin animation($name, $params) { - -webkit-animation: #{$name} $params; /* Safari 4+ */ - -moz-animation: #{$name} $params; /* Fx 5+ */ - -o-animation: #{$name} $params; /* Opera 12+ */ - animation: #{$name} $params; /* IE 10+ */ -} \ No newline at end of file diff --git a/site/styles/modules/_common.scss b/site/styles/modules/_common.scss deleted file mode 100644 index e29cd020a..000000000 --- a/site/styles/modules/_common.scss +++ /dev/null @@ -1,15 +0,0 @@ -@function reverse($list, $recursive: false) { - $result: (); - - @for $i from length($list)*-1 through -1 { - @if type-of(nth($list, abs($i))) == list and $recursive { - $result: append($result, reverse(nth($list, abs($i)), $recursive)); - } - - @else { - $result: append($result, nth($list, abs($i))); - } - } - - @return $result; -} \ No newline at end of file diff --git a/site/styles/modules/_font.scss b/site/styles/modules/_font.scss deleted file mode 100644 index 05507f36b..000000000 --- a/site/styles/modules/_font.scss +++ /dev/null @@ -1,14 +0,0 @@ -$font-path: "/fonts" !default; - -@mixin embed-font($font-name, $font-file, $font-path: $font-path) { - @font-face { - font-family: $font-name; - src: url('#{$font-path}/#{$font-file}.eot'); - src: url('#{$font-path}/#{$font-file}.eot?#iefix') format('embedded-opentype'), - url('#{$font-path}/#{$font-file}.woff') format('woff'), - url('#{$font-path}/#{$font-file}.ttf') format('truetype'), - url('#{$font-path}/#{$font-file}.svg') format('svg'); - font-weight: normal; - font-style: normal; - } -} \ No newline at end of file diff --git a/site/styles/modules/_icon.scss b/site/styles/modules/_icon.scss deleted file mode 100644 index 3d53aa628..000000000 --- a/site/styles/modules/_icon.scss +++ /dev/null @@ -1,32 +0,0 @@ -$icon-font-name: "FontAwesome" !default; -$icon-location: before !default; -$icon-vertical-align: baseline !default; - -$icon-attr-name: data-icon !default; -$icon-include-classes: true !default; - -@mixin icon($icon: "", $icon-size: 1em, $icon-location: $icon-location, $icon-font-name: $icon-font-name, $icon-vertical-align: $icon-vertical-align) { - &:#{$icon-location} { - content: $icon; - display: inline-block; - vertical-align: $icon-vertical-align; - font-family: $icon-font-name; - font-style: normal; - font-weight: normal; - font-size: $icon-size; - line-height: 1; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - - // In usage with google font loader we will hide and unhide based on status class on html element - .wf-loading & { - visibility: hidden; - } - } -} - -@if ($icon-include-classes) { - [#{$icon-attr-name}] { - @include icon(attr(#{$icon-attr-name})); - } -} \ No newline at end of file diff --git a/site/styles/modules/_scale.scss b/site/styles/modules/_scale.scss deleted file mode 100644 index 1a7a3b7d5..000000000 --- a/site/styles/modules/_scale.scss +++ /dev/null @@ -1,41 +0,0 @@ -$scale-minor-second: 15/16; -$scale-major-second: 8/9; -$scale-minor-third: 5/6; -$scale-major-third: 4/5; -$scale-perfect-fourth: 3/4; -$scale-perfect-fifth: 2/3; -$scale-minor-sixth: 5/8; -$scale-golden-section: 1/1.618; -$scale-major-sixth: 3/5; -$scale-minor-seventh: 9/16; -$scale-major-seventh: 8/15; -$scale-octave: 1/2; -$scale-major-tenth: 2/5; -$scale-major-eleventh: 3/8; -$scale-major-twelfth: 1/3; -$scale-double-octave: 1/4; - -@function generateScale($base: 16, $scale-type: $scale-golden-section, $limit-lower: 6, $limit-upper: 100) { - $scale: (); - $value: $base; - - @while $value > $limit-lower { - $value: $value * $scale-type; - @if $value > $limit-lower { - $scale: append($scale, $value); - } - } - - $scale: reverse($scale); - $scale: append($scale, $base); - - $value: $base; - @while $value < $limit-upper { - $value: $value / $scale-type; - @if $value < $limit-upper { - $scale: append($scale, $value); - } - } - - @return $scale; -} \ No newline at end of file diff --git a/site/styles/settings/_chartist-docs.scss b/site/styles/settings/_chartist-docs.scss deleted file mode 100644 index c5a56b4f8..000000000 --- a/site/styles/settings/_chartist-docs.scss +++ /dev/null @@ -1,9 +0,0 @@ -$color-white: #EADBC4; -$color-grapefruit: #F05B4F; -$color-red: #D70206; -$color-green: #67bf26; -$color-yellow: #F4C63D; -$color-gray: #453D3F; -$color-black: $color-gray; - -$font-body: "Oxygen", Helvetica, Arial, sans-serif; \ No newline at end of file diff --git a/site/styles/settings/_font-awesome-variables.scss b/site/styles/settings/_font-awesome-variables.scss deleted file mode 100644 index 719d0c2c4..000000000 --- a/site/styles/settings/_font-awesome-variables.scss +++ /dev/null @@ -1,369 +0,0 @@ -$fa-var-glass: "\f000"; -$fa-var-music: "\f001"; -$fa-var-search: "\f002"; -$fa-var-envelope-o: "\f003"; -$fa-var-heart: "\f004"; -$fa-var-star: "\f005"; -$fa-var-star-o: "\f006"; -$fa-var-user: "\f007"; -$fa-var-film: "\f008"; -$fa-var-th-large: "\f009"; -$fa-var-th: "\f00a"; -$fa-var-th-list: "\f00b"; -$fa-var-check: "\f00c"; -$fa-var-times: "\f00d"; -$fa-var-search-plus: "\f00e"; -$fa-var-search-minus: "\f010"; -$fa-var-power-off: "\f011"; -$fa-var-signal: "\f012"; -$fa-var-cog: "\f013"; -$fa-var-trash-o: "\f014"; -$fa-var-home: "\f015"; -$fa-var-file-o: "\f016"; -$fa-var-clock-o: "\f017"; -$fa-var-road: "\f018"; -$fa-var-download: "\f019"; -$fa-var-arrow-circle-o-down: "\f01a"; -$fa-var-arrow-circle-o-up: "\f01b"; -$fa-var-inbox: "\f01c"; -$fa-var-play-circle-o: "\f01d"; -$fa-var-repeat: "\f01e"; -$fa-var-refresh: "\f021"; -$fa-var-list-alt: "\f022"; -$fa-var-lock: "\f023"; -$fa-var-flag: "\f024"; -$fa-var-headphones: "\f025"; -$fa-var-volume-off: "\f026"; -$fa-var-volume-down: "\f027"; -$fa-var-volume-up: "\f028"; -$fa-var-qrcode: "\f029"; -$fa-var-barcode: "\f02a"; -$fa-var-tag: "\f02b"; -$fa-var-tags: "\f02c"; -$fa-var-book: "\f02d"; -$fa-var-bookmark: "\f02e"; -$fa-var-print: "\f02f"; -$fa-var-camera: "\f030"; -$fa-var-font: "\f031"; -$fa-var-bold: "\f032"; -$fa-var-italic: "\f033"; -$fa-var-text-height: "\f034"; -$fa-var-text-width: "\f035"; -$fa-var-align-left: "\f036"; -$fa-var-align-center: "\f037"; -$fa-var-align-right: "\f038"; -$fa-var-align-justify: "\f039"; -$fa-var-list: "\f03a"; -$fa-var-outdent: "\f03b"; -$fa-var-indent: "\f03c"; -$fa-var-video-camera: "\f03d"; -$fa-var-picture-o: "\f03e"; -$fa-var-pencil: "\f040"; -$fa-var-map-marker: "\f041"; -$fa-var-adjust: "\f042"; -$fa-var-tint: "\f043"; -$fa-var-pencil-square-o: "\f044"; -$fa-var-share-square-o: "\f045"; -$fa-var-check-square-o: "\f046"; -$fa-var-arrows: "\f047"; -$fa-var-step-backward: "\f048"; -$fa-var-fast-backward: "\f049"; -$fa-var-backward: "\f04a"; -$fa-var-play: "\f04b"; -$fa-var-pause: "\f04c"; -$fa-var-stop: "\f04d"; -$fa-var-forward: "\f04e"; -$fa-var-fast-forward: "\f050"; -$fa-var-step-forward: "\f051"; -$fa-var-eject: "\f052"; -$fa-var-chevron-left: "\f053"; -$fa-var-chevron-right: "\f054"; -$fa-var-plus-circle: "\f055"; -$fa-var-minus-circle: "\f056"; -$fa-var-times-circle: "\f057"; -$fa-var-check-circle: "\f058"; -$fa-var-question-circle: "\f059"; -$fa-var-info-circle: "\f05a"; -$fa-var-crosshairs: "\f05b"; -$fa-var-times-circle-o: "\f05c"; -$fa-var-check-circle-o: "\f05d"; -$fa-var-ban: "\f05e"; -$fa-var-arrow-left: "\f060"; -$fa-var-arrow-right: "\f061"; -$fa-var-arrow-up: "\f062"; -$fa-var-arrow-down: "\f063"; -$fa-var-share: "\f064"; -$fa-var-expand: "\f065"; -$fa-var-compress: "\f066"; -$fa-var-plus: "\f067"; -$fa-var-minus: "\f068"; -$fa-var-asterisk: "\f069"; -$fa-var-exclamation-circle: "\f06a"; -$fa-var-gift: "\f06b"; -$fa-var-leaf: "\f06c"; -$fa-var-fire: "\f06d"; -$fa-var-eye: "\f06e"; -$fa-var-eye-slash: "\f070"; -$fa-var-exclamation-triangle: "\f071"; -$fa-var-plane: "\f072"; -$fa-var-calendar: "\f073"; -$fa-var-random: "\f074"; -$fa-var-comment: "\f075"; -$fa-var-magnet: "\f076"; -$fa-var-chevron-up: "\f077"; -$fa-var-chevron-down: "\f078"; -$fa-var-retweet: "\f079"; -$fa-var-shopping-cart: "\f07a"; -$fa-var-folder: "\f07b"; -$fa-var-folder-open: "\f07c"; -$fa-var-arrows-v: "\f07d"; -$fa-var-arrows-h: "\f07e"; -$fa-var-bar-chart-o: "\f080"; -$fa-var-twitter-square: "\f081"; -$fa-var-facebook-square: "\f082"; -$fa-var-camera-retro: "\f083"; -$fa-var-key: "\f084"; -$fa-var-cogs: "\f085"; -$fa-var-comments: "\f086"; -$fa-var-thumbs-o-up: "\f087"; -$fa-var-thumbs-o-down: "\f088"; -$fa-var-star-half: "\f089"; -$fa-var-heart-o: "\f08a"; -$fa-var-sign-out: "\f08b"; -$fa-var-linkedin-square: "\f08c"; -$fa-var-thumb-tack: "\f08d"; -$fa-var-external-link: "\f08e"; -$fa-var-sign-in: "\f090"; -$fa-var-trophy: "\f091"; -$fa-var-github-square: "\f092"; -$fa-var-upload: "\f093"; -$fa-var-lemon-o: "\f094"; -$fa-var-phone: "\f095"; -$fa-var-square-o: "\f096"; -$fa-var-bookmark-o: "\f097"; -$fa-var-phone-square: "\f098"; -$fa-var-twitter: "\f099"; -$fa-var-facebook: "\f09a"; -$fa-var-github: "\f09b"; -$fa-var-unlock: "\f09c"; -$fa-var-credit-card: "\f09d"; -$fa-var-rss: "\f09e"; -$fa-var-hdd-o: "\f0a0"; -$fa-var-bullhorn: "\f0a1"; -$fa-var-bell: "\f0f3"; -$fa-var-certificate: "\f0a3"; -$fa-var-hand-o-right: "\f0a4"; -$fa-var-hand-o-left: "\f0a5"; -$fa-var-hand-o-up: "\f0a6"; -$fa-var-hand-o-down: "\f0a7"; -$fa-var-arrow-circle-left: "\f0a8"; -$fa-var-arrow-circle-right: "\f0a9"; -$fa-var-arrow-circle-up: "\f0aa"; -$fa-var-arrow-circle-down: "\f0ab"; -$fa-var-globe: "\f0ac"; -$fa-var-wrench: "\f0ad"; -$fa-var-tasks: "\f0ae"; -$fa-var-filter: "\f0b0"; -$fa-var-briefcase: "\f0b1"; -$fa-var-arrows-alt: "\f0b2"; -$fa-var-users: "\f0c0"; -$fa-var-link: "\f0c1"; -$fa-var-cloud: "\f0c2"; -$fa-var-flask: "\f0c3"; -$fa-var-scissors: "\f0c4"; -$fa-var-files-o: "\f0c5"; -$fa-var-paperclip: "\f0c6"; -$fa-var-floppy-o: "\f0c7"; -$fa-var-square: "\f0c8"; -$fa-var-bars: "\f0c9"; -$fa-var-list-ul: "\f0ca"; -$fa-var-list-ol: "\f0cb"; -$fa-var-strikethrough: "\f0cc"; -$fa-var-underline: "\f0cd"; -$fa-var-table: "\f0ce"; -$fa-var-magic: "\f0d0"; -$fa-var-truck: "\f0d1"; -$fa-var-pinterest: "\f0d2"; -$fa-var-pinterest-square: "\f0d3"; -$fa-var-google-plus-square: "\f0d4"; -$fa-var-google-plus: "\f0d5"; -$fa-var-money: "\f0d6"; -$fa-var-caret-down: "\f0d7"; -$fa-var-caret-up: "\f0d8"; -$fa-var-caret-left: "\f0d9"; -$fa-var-caret-right: "\f0da"; -$fa-var-columns: "\f0db"; -$fa-var-sort: "\f0dc"; -$fa-var-sort-asc: "\f0dd"; -$fa-var-sort-desc: "\f0de"; -$fa-var-envelope: "\f0e0"; -$fa-var-linkedin: "\f0e1"; -$fa-var-undo: "\f0e2"; -$fa-var-gavel: "\f0e3"; -$fa-var-tachometer: "\f0e4"; -$fa-var-comment-o: "\f0e5"; -$fa-var-comments-o: "\f0e6"; -$fa-var-bolt: "\f0e7"; -$fa-var-sitemap: "\f0e8"; -$fa-var-umbrella: "\f0e9"; -$fa-var-clipboard: "\f0ea"; -$fa-var-lightbulb-o: "\f0eb"; -$fa-var-exchange: "\f0ec"; -$fa-var-cloud-download: "\f0ed"; -$fa-var-cloud-upload: "\f0ee"; -$fa-var-user-md: "\f0f0"; -$fa-var-stethoscope: "\f0f1"; -$fa-var-suitcase: "\f0f2"; -$fa-var-bell-o: "\f0a2"; -$fa-var-coffee: "\f0f4"; -$fa-var-cutlery: "\f0f5"; -$fa-var-file-text-o: "\f0f6"; -$fa-var-building-o: "\f0f7"; -$fa-var-hospital-o: "\f0f8"; -$fa-var-ambulance: "\f0f9"; -$fa-var-medkit: "\f0fa"; -$fa-var-fighter-jet: "\f0fb"; -$fa-var-beer: "\f0fc"; -$fa-var-h-square: "\f0fd"; -$fa-var-plus-square: "\f0fe"; -$fa-var-angle-double-left: "\f100"; -$fa-var-angle-double-right: "\f101"; -$fa-var-angle-double-up: "\f102"; -$fa-var-angle-double-down: "\f103"; -$fa-var-angle-left: "\f104"; -$fa-var-angle-right: "\f105"; -$fa-var-angle-up: "\f106"; -$fa-var-angle-down: "\f107"; -$fa-var-desktop: "\f108"; -$fa-var-laptop: "\f109"; -$fa-var-tablet: "\f10a"; -$fa-var-mobile: "\f10b"; -$fa-var-circle-o: "\f10c"; -$fa-var-quote-left: "\f10d"; -$fa-var-quote-right: "\f10e"; -$fa-var-spinner: "\f110"; -$fa-var-circle: "\f111"; -$fa-var-reply: "\f112"; -$fa-var-github-alt: "\f113"; -$fa-var-folder-o: "\f114"; -$fa-var-folder-open-o: "\f115"; -$fa-var-smile-o: "\f118"; -$fa-var-frown-o: "\f119"; -$fa-var-meh-o: "\f11a"; -$fa-var-gamepad: "\f11b"; -$fa-var-keyboard-o: "\f11c"; -$fa-var-flag-o: "\f11d"; -$fa-var-flag-checkered: "\f11e"; -$fa-var-terminal: "\f120"; -$fa-var-code: "\f121"; -$fa-var-reply-all: "\f122"; -$fa-var-mail-reply-all: "\f122"; -$fa-var-star-half-o: "\f123"; -$fa-var-location-arrow: "\f124"; -$fa-var-crop: "\f125"; -$fa-var-code-fork: "\f126"; -$fa-var-chain-broken: "\f127"; -$fa-var-question: "\f128"; -$fa-var-info: "\f129"; -$fa-var-exclamation: "\f12a"; -$fa-var-superscript: "\f12b"; -$fa-var-subscript: "\f12c"; -$fa-var-eraser: "\f12d"; -$fa-var-puzzle-piece: "\f12e"; -$fa-var-microphone: "\f130"; -$fa-var-microphone-slash: "\f131"; -$fa-var-shield: "\f132"; -$fa-var-calendar-o: "\f133"; -$fa-var-fire-extinguisher: "\f134"; -$fa-var-rocket: "\f135"; -$fa-var-maxcdn: "\f136"; -$fa-var-chevron-circle-left: "\f137"; -$fa-var-chevron-circle-right: "\f138"; -$fa-var-chevron-circle-up: "\f139"; -$fa-var-chevron-circle-down: "\f13a"; -$fa-var-html5: "\f13b"; -$fa-var-css3: "\f13c"; -$fa-var-anchor: "\f13d"; -$fa-var-unlock-alt: "\f13e"; -$fa-var-bullseye: "\f140"; -$fa-var-ellipsis-h: "\f141"; -$fa-var-ellipsis-v: "\f142"; -$fa-var-rss-square: "\f143"; -$fa-var-play-circle: "\f144"; -$fa-var-ticket: "\f145"; -$fa-var-minus-square: "\f146"; -$fa-var-minus-square-o: "\f147"; -$fa-var-level-up: "\f148"; -$fa-var-level-down: "\f149"; -$fa-var-check-square: "\f14a"; -$fa-var-pencil-square: "\f14b"; -$fa-var-external-link-square: "\f14c"; -$fa-var-share-square: "\f14d"; -$fa-var-compass: "\f14e"; -$fa-var-caret-square-o-down: "\f150"; -$fa-var-caret-square-o-up: "\f151"; -$fa-var-caret-square-o-right: "\f152"; -$fa-var-eur: "\f153"; -$fa-var-gbp: "\f154"; -$fa-var-usd: "\f155"; -$fa-var-inr: "\f156"; -$fa-var-jpy: "\f157"; -$fa-var-rub: "\f158"; -$fa-var-krw: "\f159"; -$fa-var-btc: "\f15a"; -$fa-var-file: "\f15b"; -$fa-var-file-text: "\f15c"; -$fa-var-sort-alpha-asc: "\f15d"; -$fa-var-sort-alpha-desc: "\f15e"; -$fa-var-sort-amount-asc: "\f160"; -$fa-var-sort-amount-desc: "\f161"; -$fa-var-sort-numeric-asc: "\f162"; -$fa-var-sort-numeric-desc: "\f163"; -$fa-var-thumbs-up: "\f164"; -$fa-var-thumbs-down: "\f165"; -$fa-var-youtube-square: "\f166"; -$fa-var-youtube: "\f167"; -$fa-var-xing: "\f168"; -$fa-var-xing-square: "\f169"; -$fa-var-youtube-play: "\f16a"; -$fa-var-dropbox: "\f16b"; -$fa-var-stack-overflow: "\f16c"; -$fa-var-instagram: "\f16d"; -$fa-var-flickr: "\f16e"; -$fa-var-adn: "\f170"; -$fa-var-bitbucket: "\f171"; -$fa-var-bitbucket-square: "\f172"; -$fa-var-tumblr: "\f173"; -$fa-var-tumblr-square: "\f174"; -$fa-var-long-arrow-down: "\f175"; -$fa-var-long-arrow-up: "\f176"; -$fa-var-long-arrow-left: "\f177"; -$fa-var-long-arrow-right: "\f178"; -$fa-var-apple: "\f179"; -$fa-var-windows: "\f17a"; -$fa-var-android: "\f17b"; -$fa-var-linux: "\f17c"; -$fa-var-dribbble: "\f17d"; -$fa-var-skype: "\f17e"; -$fa-var-foursquare: "\f180"; -$fa-var-trello: "\f181"; -$fa-var-female: "\f182"; -$fa-var-male: "\f183"; -$fa-var-gittip: "\f184"; -$fa-var-sun-o: "\f185"; -$fa-var-moon-o: "\f186"; -$fa-var-archive: "\f187"; -$fa-var-bug: "\f188"; -$fa-var-vk: "\f189"; -$fa-var-weibo: "\f18a"; -$fa-var-renren: "\f18b"; -$fa-var-pagelines: "\f18c"; -$fa-var-stack-exchange: "\f18d"; -$fa-var-arrow-circle-o-right: "\f18e"; -$fa-var-arrow-circle-o-left: "\f190"; -$fa-var-caret-square-o-left: "\f191"; -$fa-var-dot-circle-o: "\f192"; -$fa-var-wheelchair: "\f193"; -$fa-var-vimeo-square: "\f194"; -$fa-var-try: "\f195"; -$fa-var-plus-square-o: "\f196"; \ No newline at end of file diff --git a/site/styles/settings/_foundation.scss b/site/styles/settings/_foundation.scss deleted file mode 100644 index 67499c4b0..000000000 --- a/site/styles/settings/_foundation.scss +++ /dev/null @@ -1,1436 +0,0 @@ -// Foundation by ZURB -// foundation.zurb.com -// Licensed under MIT Open Source - -// - -// Table of Contents -// Foundation Settings -// -// a. Base -// b. Grid -// c. Global -// d. Media Query Ranges -// e. Typography -// 01. Accordion -// 02. Alert Boxes -// 03. Block Grid -// 04. Breadcrumbs -// 05. Buttons -// 06. Button Groups -// 07. Clearing -// 08. Dropdown -// 09. Dropdown Buttons -// 10. Flex Video -// 11. Forms -// 12. Icon Bar -// 13. Inline Lists -// 14. Joyride -// 15. Keystrokes -// 16. Labels -// 17. Magellan -// 18. Off-canvas -// 19. Orbit -// 20. Pagination -// 21. Panels -// 22. Pricing Tables -// 23. Progress Bar -// 24. Range Slider -// 25. Reveal -// 26. Side Nav -// 27. Split Buttons -// 28. Sub Nav -// 29. Switch -// 30. Tables -// 31. Tabs -// 32. Thumbnails -// 33. Tooltips -// 34. Top Bar -// 36. Visibility Classes - -// a. Base -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// This is the default html and body font-size for the base rem value. -// $rem-base: 16px; - -// Allows the use of rem-calc() or lower-bound() in your settings -@import "foundation/scss/foundation/functions"; - -// The default font-size is set to 100% of the browser style sheet (usually 16px) -// for compatibility with browser-based text zoom or user-set defaults. - -// Since the typical default browser font-size is 16px, that makes the calculation for grid size. -// If you want your base font-size to be different and not have it affect the grid breakpoints, -// set $rem-base to $base-font-size and make sure $base-font-size is a px value. -// $base-font-size: 100%; - -// The $base-font-size is 100% while $base-line-height is 150% -// $base-line-height: 150%; - -// We use this to control whether or not CSS classes come through in the gem files. -$include-html-classes: false; -// $include-print-styles: true; -$include-html-global-classes: true; - -// b. Grid -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-grid-classes: $include-html-classes; -// $include-xl-html-grid-classes: false; - -$row-width: rem-calc(1200); -$total-columns: 12; -$column-gutter: rem-calc(50); - -// c. Global -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// We use these to define default font stacks -//$font-family-sans-serif: $font-body; -// $font-family-serif: Georgia, Cambria, "Times New Roman", Times, serif; -//$font-family-monospace: Consolas, "Liberation Mono", Courier, monospace; - -// We use these to define default font weights -// $font-weight-normal: normal !default; -// $font-weight-bold: bold !default; - -// $white : #FFFFFF; -// $ghost : #FAFAFA; -// $snow : #F9F9F9; -// $vapor : #F6F6F6; -// $white-smoke : #F5F5F5; -// $silver : #EFEFEF; -// $smoke : #EEEEEE; -// $gainsboro : #DDDDDD; -// $iron : #CCCCCC; -// $base : #AAAAAA; -// $aluminum : #999999; -// $jumbo : #888888; -// $monsoon : #777777; -// $steel : #666666; -// $charcoal : #555555; -// $tuatara : #444444; -// $oil : #333333; -// $jet : #222222; -// $black : #000000; - -// We use these as default colors throughout -$primary-color: $color-yellow; -$secondary-color: $color-gray; -$alert-color: $color-red; -$success-color: $color-yellow; -$warning-color: $color-grapefruit; -$info-color: $color-gray; - -// We use these to control various global styles -$body-bg: $color-white; -$body-font-color: darken($color-white, 60%); -$body-font-family: $font-body; -// $body-font-weight: $font-weight-normal; -// $body-font-style: normal; - -// We use this to control font-smoothing -// $font-smoothing: antialiased; - -// We use these to control text direction settings -// $text-direction: ltr; -// $opposite-direction: right; -// $default-float: left; -// $last-child-float: $opposite-direction; - -// We use these to make sure border radius matches unless we want it different. -// $global-radius: 3px; -// $global-rounded: 1000px; - -// We use these to control inset shadow shiny edges and depressions. -// $shiny-edge-size: 0 1px 0; -// $shiny-edge-color: rgba($white, .5); -// $shiny-edge-active-color: rgba($black, .2); - -// d. Media Query Ranges -// - - - - - - - - - - - - - - - - - - - - - - - - - - -$small-range: (0em, 40em); -$medium-range: (40.063em, 64em); -$large-range: (64.063em, 90em); -$xlarge-range: (90.063em, 120em); -$xxlarge-range: (120.063em, 99999999em); - -$screen: "only screen"; - -$landscape: "#{$screen} and (orientation: landscape)"; -$portrait: "#{$screen} and (orientation: portrait)"; - -$small-up: $screen; -$small-only: "#{$screen} and (max-width: #{upper-bound($small-range)})"; - -$medium-up: "#{$screen} and (min-width:#{lower-bound($medium-range)})"; -$medium-only: "#{$screen} and (min-width:#{lower-bound($medium-range)}) and (max-width:#{upper-bound($medium-range)})"; - -$large-up: "#{$screen} and (min-width:#{lower-bound($large-range)})"; -$large-only: "#{$screen} and (min-width:#{lower-bound($large-range)}) and (max-width:#{upper-bound($large-range)})"; - -$xlarge-up: "#{$screen} and (min-width:#{lower-bound($xlarge-range)})"; -$xlarge-only: "#{$screen} and (min-width:#{lower-bound($xlarge-range)}) and (max-width:#{upper-bound($xlarge-range)})"; - -$xxlarge-up: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)})"; -$xxlarge-only: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)}) and (max-width:#{upper-bound($xxlarge-range)})"; - -// Legacy -// $small: $medium-up; -// $medium: $medium-up; -// $large: $large-up; - -// We use this as cursors values for enabling the option of having custom cursors in the whole site's stylesheet -// $cursor-crosshair-value: crosshair; -// $cursor-default-value: default; -// $cursor-pointer-value: pointer; -// $cursor-help-value: help; -// $cursor-text-value: text; - -// e. Typography -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-type-classes: $include-html-classes; - -// We use these to control header font styles -// $header-font-family: $body-font-family; -// $header-font-weight: $font-weight-normal; -// $header-font-style: normal; -// $header-font-color: $jet; -// $header-line-height: 1.4; -// $header-top-margin: .2rem; -// $header-bottom-margin: .5rem; -// $header-text-rendering: optimizeLegibility; - -// We use these to control header font sizes -// $h1-font-size: rem-calc(44); -// $h2-font-size: rem-calc(37); -// $h3-font-size: rem-calc(27); -// $h4-font-size: rem-calc(23); -// $h5-font-size: rem-calc(18); -// $h6-font-size: 1rem; - -// We use these to control header size reduction on small screens -// $h1-font-reduction: rem-calc(10) !default; -// $h2-font-reduction: rem-calc(10) !default; -// $h3-font-reduction: rem-calc(5) !default; -// $h4-font-reduction: rem-calc(5) !default; -// $h5-font-reduction: 0 !default; -// $h6-font-reduction: 0 !default; - -// These control how subheaders are styled. -// $subheader-line-height: 1.4; -// $subheader-font-color: scale-color($header-font-color, $lightness: 35%); -// $subheader-font-weight: $font-weight-normal; -// $subheader-top-margin: .2rem; -// $subheader-bottom-margin: .5rem; - -// A general styling -// $small-font-size: 60%; -// $small-font-color: scale-color($header-font-color, $lightness: 35%); - -// We use these to style paragraphs -// $paragraph-font-family: inherit; -// $paragraph-font-weight: $font-weight-normal; -// $paragraph-font-size: 1rem; -// $paragraph-line-height: 1.6; -// $paragraph-margin-bottom: rem-calc(20); -// $paragraph-aside-font-size: rem-calc(14); -// $paragraph-aside-line-height: 1.35; -// $paragraph-aside-font-style: italic; -// $paragraph-text-rendering: optimizeLegibility; - -// We use these to style tags -// $code-color: $oil; -// $code-font-family: $font-family-monospace; -// $code-font-weight: $font-weight-normal; -// $code-background-color: scale-color($secondary-color, $lightness: 70%); -// $code-border-size: 1px; -// $code-border-style: solid; -// $code-border-color: scale-color($code-background-color, $lightness: -10%); -// $code-padding: rem-calc(2) rem-calc(5) rem-calc(1); - -// We use these to style anchors -// $anchor-text-decoration: none; -// $anchor-text-decoration-hover: none; -// $anchor-font-color: $primary-color; -// $anchor-font-color-hover: scale-color($primary-color, $lightness: -14%); - -// We use these to style the
element -// $hr-border-width: 1px; -// $hr-border-style: solid; -// $hr-border-color: $gainsboro; -// $hr-margin: rem-calc(20); - -// We use these to style lists -// $list-font-family: $paragraph-font-family; -// $list-font-size: $paragraph-font-size; -// $list-line-height: $paragraph-line-height; -// $list-margin-bottom: $paragraph-margin-bottom; -// $list-style-position: outside; -// $list-side-margin: 1.1rem; -// $list-ordered-side-margin: 1.4rem; -// $list-side-margin-no-bullet: 0; -// $list-nested-margin: rem-calc(20); -// $definition-list-header-weight: $font-weight-bold; -// $definition-list-header-margin-bottom: .3rem; -// $definition-list-margin-bottom: rem-calc(12); - -// We use these to style blockquotes -// $blockquote-font-color: scale-color($header-font-color, $lightness: 35%); -// $blockquote-padding: rem-calc(9 20 0 19); -// $blockquote-border: 1px solid $gainsboro; -// $blockquote-cite-font-size: rem-calc(13); -// $blockquote-cite-font-color: scale-color($header-font-color, $lightness: 23%); -// $blockquote-cite-link-color: $blockquote-cite-font-color; - -// Acronym styles -// $acronym-underline: 1px dotted $gainsboro; - -// We use these to control padding and margin -// $microformat-padding: rem-calc(10 12); -// $microformat-margin: rem-calc(0 0 20 0); - -// We use these to control the border styles -// $microformat-border-width: 1px; -// $microformat-border-style: solid; -// $microformat-border-color: $gainsboro; - -// We use these to control full name font styles -// $microformat-fullname-font-weight: $font-weight-bold; -// $microformat-fullname-font-size: rem-calc(15); - -// We use this to control the summary font styles -// $microformat-summary-font-weight: $font-weight-bold; - -// We use this to control abbr padding -// $microformat-abbr-padding: rem-calc(0 1); - -// We use this to control abbr font styles -// $microformat-abbr-font-weight: $font-weight-bold; -// $microformat-abbr-font-decoration: none; - -// 01. Accordion -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-accordion-classes: $include-html-classes; - -// $accordion-navigation-padding: rem-calc(16); -// $accordion-navigation-bg-color: $silver ; -// $accordion-navigation-hover-bg-color: scale-color($accordion-navigation-bg-color, $lightness: -5%); -// $accordion-navigation-active-bg-color: scale-color($accordion-navigation-bg-color, $lightness: -3%); -// $accordion-navigation-font-color: $jet; -// $accordion-navigation-font-size: rem-calc(16); -// $accordion-navigation-font-family: $body-font-family; - -// $accordion-content-padding: $column-gutter/2; -// $accordion-content-active-bg-color: $white; - -// 02. Alert Boxes -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-alert-classes: $include-html-classes; - -// We use this to control alert padding. -// $alert-padding-top: rem-calc(14); -// $alert-padding-default-float: $alert-padding-top; -// $alert-padding-opposite-direction: $alert-padding-top + rem-calc(10); -// $alert-padding-bottom: $alert-padding-top; - -// We use these to control text style. -// $alert-font-weight: $font-weight-normal; -// $alert-font-size: rem-calc(13); -// $alert-font-color: $white; -// $alert-font-color-alt: scale-color($secondary-color, $lightness: -66%); - -// We use this for close hover effect. -// $alert-function-factor: -14%; - -// We use these to control border styles. -// $alert-border-style: solid; -// $alert-border-width: 1px; -// $alert-border-color: scale-color($primary-color, $lightness: $alert-function-factor); -// $alert-bottom-margin: rem-calc(20); - -// We use these to style the close buttons -// $alert-close-color: $oil; -// $alert-close-top: 50%; -// $alert-close-position: rem-calc(4); -// $alert-close-font-size: rem-calc(22); -// $alert-close-opacity: 0.3; -// $alert-close-opacity-hover: 0.5; -// $alert-close-padding: 9px 6px 4px; - -// We use this to control border radius -// $alert-radius: $global-radius; - -// We use this to control transition effects -// $alert-transition-speed: 300ms; -// $alert-transition-ease: ease-out; - -// 03. Block Grid -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-block-grid-classes: $include-html-classes; -// $include-xl-html-block-grid-classes: false; - -// We use this to control the maximum number of block grid elements per row -// $block-grid-elements: 12; -// $block-grid-default-spacing: rem-calc(20); -// $align-block-grid-to-grid: false; - -// Enables media queries for block-grid classes. Set to false if writing semantic HTML. -// $block-grid-media-queries: true; - -// 04. Breadcrumbs -// - - - - - - - - - - - - - - - - - - - - - - - - - - -$include-html-nav-classes: $include-html-classes; - -// We use this to set the background color for the breadcrumb container. -// $crumb-bg: scale-color($secondary-color, $lightness: 55%); - -// We use these to set the padding around the breadcrumbs. -// $crumb-padding: rem-calc(9 14 9); -// $crumb-side-padding: rem-calc(12); - -// We use these to control border styles. -// $crumb-function-factor: -10%; -// $crumb-border-size: 1px; -// $crumb-border-style: solid; -// $crumb-border-color: scale-color($crumb-bg, $lightness: $crumb-function-factor); -// $crumb-radius: $global-radius; - -// We use these to set various text styles for breadcrumbs. -// $crumb-font-size: rem-calc(11); -// $crumb-font-color: $primary-color; -// $crumb-font-color-current: $oil; -// $crumb-font-color-unavailable: $aluminum; -// $crumb-font-transform: uppercase; -// $crumb-link-decor: underline; - -// We use these to control the slash between breadcrumbs -// $crumb-slash-color: $base; -// $crumb-slash: "/"; - -// 05. Buttons -// - - - - - - - - - - - - - - - - - - - - - - - - - - -$include-html-button-classes: true; - -// We use these to build padding for buttons. -// $button-tny: rem-calc(10); -// $button-sml: rem-calc(14); -// $button-med: rem-calc(16); -// $button-lrg: rem-calc(18); - -// We use this to control the display property. -// $button-display: inline-block; -// $button-margin-bottom: rem-calc(20); - -// We use these to control button text styles. -// $button-font-family: $body-font-family; -$button-font-color: $color-black; -// $button-font-color-alt: $oil; -// $button-font-tny: rem-calc(11); -// $button-font-sml: rem-calc(13); -// $button-font-med: rem-calc(16); -// $button-font-lrg: rem-calc(20); -// $button-font-weight: $font-weight-normal; -// $button-font-align: center; - -// We use these to control various hover effects. -// $button-function-factor: -20%; - -// We use these to control button border and hover styles. -// $button-border-width: 0px; -// $button-border-style: solid; -// $button-bg-color: $primary-color; -// $button-bg-hover: scale-color($button-bg-color, $lightness: $button-function-factor); -// $button-border-color: $button-bg-hover; -// $secondary-button-bg-hover: scale-color($secondary-color, $lightness: $button-function-factor); -// $secondary-button-border-color: $secondary-button-bg-hover; -// $success-button-bg-hover: scale-color($success-color, $lightness: $button-function-factor); -// $success-button-border-color: $success-button-bg-hover; -// $alert-button-bg-hover: scale-color($alert-color, $lightness: $button-function-factor); -// $alert-button-border-color: $alert-button-bg-hover; - -// We use this to set the default radius used throughout the core. -// $button-radius: $global-radius; -// $button-round: $global-rounded; - -// We use this to set default opacity and cursor for disabled buttons. -// $button-disabled-opacity: 0.7; -// $button-disabled-cursor: $cursor-default-value; - -// 06. Button Groups -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-button-classes: $include-html-classes; - -// Sets the margin for the right side by default, and the left margin if right-to-left direction is used -// $button-bar-margin-opposite: rem-calc(10); -// $button-group-border-width: 1px; - -// 07. Clearing -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-clearing-classes: $include-html-classes; - -// We use these to set the background colors for parts of Clearing. -// $clearing-bg: $oil; -// $clearing-caption-bg: $clearing-bg; -// $clearing-carousel-bg: rgba(51,51,51,0.8); -// $clearing-img-bg: $clearing-bg; - -// We use these to style the close button -// $clearing-close-color: $iron; -// $clearing-close-size: 30px; - -// We use these to style the arrows -// $clearing-arrow-size: 12px; -// $clearing-arrow-color: $clearing-close-color; - -// We use these to style captions -// $clearing-caption-font-color: $iron; -// $clearing-caption-font-size: 0.875em; -// $clearing-caption-padding: 10px 30px 20px; - -// We use these to make the image and carousel height and style -// $clearing-active-img-height: 85%; -// $clearing-carousel-height: 120px; -// $clearing-carousel-thumb-width: 120px; -// $clearing-carousel-thumb-active-border: 1px solid rgb(255,255,255); - -// 08. Dropdown -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-dropdown-classes: $include-html-classes; - -// We use these to controls height and width styles. -// $f-dropdown-max-width: 200px; -// $f-dropdown-height: auto; -// $f-dropdown-max-height: none; - -// Used for bottom position -// $f-dropdown-margin-top: 2px; - -// Used for right position -// $f-dropdown-margin-left: $f-dropdown-margin-top; - -// Used for left position -// $f-dropdown-margin-right: $f-dropdown-margin-top; - -// Used for top position -// $f-dropdown-margin-bottom: $f-dropdown-margin-top; - -// We use this to control the background color -// $f-dropdown-bg: $white; - -// We use this to set the border styles for dropdowns. -// $f-dropdown-border-style: solid; -// $f-dropdown-border-width: 1px; -// $f-dropdown-border-color: scale-color($white, $lightness: -20%); - -// We use these to style the triangle pip. -// $f-dropdown-triangle-size: 6px; -// $f-dropdown-triangle-color: $white; -// $f-dropdown-triangle-side-offset: 10px; - -// We use these to control styles for the list elements. -// $f-dropdown-list-style: none; -// $f-dropdown-font-color: $charcoal; -// $f-dropdown-font-size: rem-calc(14); -// $f-dropdown-list-padding: rem-calc(5, 10); -// $f-dropdown-line-height: rem-calc(18); -// $f-dropdown-list-hover-bg: $smoke ; -// $dropdown-mobile-default-float: 0; - -// We use this to control the styles for when the dropdown has custom content. -// $f-dropdown-content-padding: rem-calc(20); - -// Default radius for dropdown. -// $f-dropdown-radius: $global-radius; - - -// 09. Dropdown Buttons -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-button-classes: $include-html-classes; - -// We use these to set the color of the pip in dropdown buttons -// $dropdown-button-pip-color: $white; -// $dropdown-button-pip-color-alt: $oil; - -// $button-pip-tny: rem-calc(6); -// $button-pip-sml: rem-calc(7); -// $button-pip-med: rem-calc(9); -// $button-pip-lrg: rem-calc(11); - -// We use these to style tiny dropdown buttons -// $dropdown-button-padding-tny: $button-pip-tny * 7; -// $dropdown-button-pip-size-tny: $button-pip-tny; -// $dropdown-button-pip-opposite-tny: $button-pip-tny * 3; -// $dropdown-button-pip-top-tny: -$button-pip-tny / 2 + rem-calc(1); - -// We use these to style small dropdown buttons -// $dropdown-button-padding-sml: $button-pip-sml * 7; -// $dropdown-button-pip-size-sml: $button-pip-sml; -// $dropdown-button-pip-opposite-sml: $button-pip-sml * 3; -// $dropdown-button-pip-top-sml: -$button-pip-sml / 2 + rem-calc(1); - -// We use these to style medium dropdown buttons -// $dropdown-button-padding-med: $button-pip-med * 6 + rem-calc(3); -// $dropdown-button-pip-size-med: $button-pip-med - rem-calc(3); -// $dropdown-button-pip-opposite-med: $button-pip-med * 2.5; -// $dropdown-button-pip-top-med: -$button-pip-med / 2 + rem-calc(2); - -// We use these to style large dropdown buttons -// $dropdown-button-padding-lrg: $button-pip-lrg * 5 + rem-calc(3); -// $dropdown-button-pip-size-lrg: $button-pip-lrg - rem-calc(6); -// $dropdown-button-pip-opposite-lrg: $button-pip-lrg * 2.5; -// $dropdown-button-pip-top-lrg: -$button-pip-lrg / 2 + rem-calc(3); - -// 10. Flex Video -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-media-classes: $include-html-classes; - -// We use these to control video container padding and margins -// $flex-video-padding-top: rem-calc(25); -// $flex-video-padding-bottom: 67.5%; -// $flex-video-margin-bottom: rem-calc(16); - -// We use this to control widescreen bottom padding -// $flex-video-widescreen-padding-bottom: 56.34%; - -// 11. Forms -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-form-classes: $include-html-classes; - -// We use this to set the base for lots of form spacing and positioning styles -// $form-spacing: rem-calc(16); - -// We use these to style the labels in different ways -// $form-label-pointer: pointer; -// $form-label-font-size: rem-calc(14); -// $form-label-font-weight: $font-weight-normal; -// $form-label-line-height: 1.5; -// $form-label-font-color: scale-color($black, $lightness: 30%); -// $form-label-small-transform: capitalize; -// $form-label-bottom-margin: 0; -// $input-font-family: inherit; -// $input-font-color: rgba(0,0,0,0.75); -// $input-font-size: rem-calc(14); -// $input-bg-color: $white; -// $input-focus-bg-color: scale-color($white, $lightness: -2%); -// $input-border-color: scale-color($white, $lightness: -20%); -// $input-focus-border-color: scale-color($white, $lightness: -40%); -// $input-border-style: solid; -// $input-border-width: 1px; -// $input-border-radius: $global-radius; -// $input-disabled-bg: $gainsboro; -// $input-disabled-cursor: $cursor-default-value; -// $input-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); - -// We use these to style the fieldset border and spacing. -// $fieldset-border-style: solid; -// $fieldset-border-width: 1px; -// $fieldset-border-color: $gainsboro; -// $fieldset-padding: rem-calc(20); -// $fieldset-margin: rem-calc(18 0); - -// We use these to style the legends when you use them -// $legend-bg: $white; -// $legend-font-weight: $font-weight-bold; -// $legend-padding: rem-calc(0 3); - -// We use these to style the prefix and postfix input elements -// $input-prefix-bg: scale-color($white, $lightness: -5%); -// $input-prefix-border-color: scale-color($white, $lightness: -20%); -// $input-prefix-border-size: 1px; -// $input-prefix-border-type: solid; -// $input-prefix-overflow: hidden; -// $input-prefix-font-color: $oil; -// $input-prefix-font-color-alt: $white; - -// We use this setting to turn on/off HTML5 number spinners (the up/down arrows) -// $input-number-spinners: true; - -// We use these to style the error states for inputs and labels -// $input-error-message-padding: rem-calc(6 9 9); -// $input-error-message-top: -1px; -// $input-error-message-font-size: rem-calc(12); -// $input-error-message-font-weight: $font-weight-normal; -// $input-error-message-font-style: italic; -// $input-error-message-font-color: $white; -// $input-error-message-font-color-alt: $oil; - -// We use this to style the glowing effect of inputs when focused -// $input-include-glowing-effect: true; -// $glowing-effect-fade-time: 0.45s; -// $glowing-effect-color: $input-focus-border-color; - -// Select variables -// $select-bg-color: $ghost; -// $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%); - -// 12. Icon Bar -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// We use these to style the icon-bar and items -// $include-html-icon-bar-classes: $include-html-classes; -// $icon-bar-bg: $oil; -// $icon-bar-font-color: $white; -// $icon-bar-font-size: 1rem; -// $icon-bar-hover-color: $primary-color; -// $icon-bar-icon-color: $white; -// $icon-bar-icon-size: 1.875rem; -// $icon-bar-image-width: 1.875rem; -// $icon-bar-image-height: 1.875rem; -// $icon-bar-active-color: $primary-color; -// $icon-bar-item-padding: 1.25rem; - -// 13. Inline Lists -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-inline-list-classes: $include-html-classes; - -// We use this to control the margins and padding of the inline list. -// $inline-list-top-margin: 0; -// $inline-list-opposite-margin: 0; -// $inline-list-bottom-margin: rem-calc(17); -// $inline-list-default-float-margin: rem-calc(-22); -// $inline-list-default-float-list-margin: rem-calc(22); - -// $inline-list-padding: 0; - -// We use this to control the overflow of the inline list. -// $inline-list-overflow: hidden; - -// We use this to control the list items -// $inline-list-display: block; - -// We use this to control any elements within list items -// $inline-list-children-display: block; - -// 14. Joyride -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-joyride-classes: $include-html-classes; - -// Controlling default Joyride styles -// $joyride-tip-bg: $oil; -// $joyride-tip-default-width: 300px; -// $joyride-tip-padding: rem-calc(18 20 24); -// $joyride-tip-border: solid 1px $charcoal; -// $joyride-tip-radius: 4px; -// $joyride-tip-position-offset: 22px; - -// Here, we're setting the tip font styles -// $joyride-tip-font-color: $white; -// $joyride-tip-font-size: rem-calc(14); -// $joyride-tip-header-weight: $font-weight-bold; - -// This changes the nub size -// $joyride-tip-nub-size: 10px; - -// This adjusts the styles for the timer when its enabled -// $joyride-tip-timer-width: 50px; -// $joyride-tip-timer-height: 3px; -// $joyride-tip-timer-color: $steel; - -// This changes up the styles for the close button -// $joyride-tip-close-color: $monsoon; -// $joyride-tip-close-size: 24px; -// $joyride-tip-close-weight: $font-weight-normal; - -// When Joyride is filling the screen, we use this style for the bg -// $joyride-screenfill: rgba(0,0,0,0.5); - -// 15. Keystrokes -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-keystroke-classes: $include-html-classes; - -// We use these to control text styles. -// $keystroke-font: "Consolas", "Menlo", "Courier", monospace; -// $keystroke-font-size: inherit; -// $keystroke-font-color: $jet; -// $keystroke-font-color-alt: $white; -// $keystroke-function-factor: -7%; - -// We use this to control keystroke padding. -// $keystroke-padding: rem-calc(2 4 0); - -// We use these to control background and border styles. -// $keystroke-bg: scale-color($white, $lightness: $keystroke-function-factor); -// $keystroke-border-style: solid; -// $keystroke-border-width: 1px; -// $keystroke-border-color: scale-color($keystroke-bg, $lightness: $keystroke-function-factor); -// $keystroke-radius: $global-radius; - -// 16. Labels -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-label-classes: $include-html-classes; - -// We use these to style the labels -// $label-padding: rem-calc(4 8 4); -// $label-radius: $global-radius; - -// We use these to style the label text -// $label-font-sizing: rem-calc(11); -// $label-font-weight: $font-weight-normal; -// $label-font-color: $oil; -// $label-font-color-alt: $white; -// $label-font-family: $body-font-family; - -// 17. Magellan -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-magellan-classes: $include-html-classes; - -// $magellan-bg: $white; -// $magellan-padding: 0 !important; - -// 18. Off-canvas -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-off-canvas-classes: $include-html-classes; - -// $tabbar-bg: $oil; -// $tabbar-height: rem-calc(45); -// $tabbar-icon-width: $tabbar-height; -// $tabbar-line-height: $tabbar-height; -// $tabbar-color: $white; -// $tabbar-middle-padding: 0 rem-calc(10); - -// Off Canvas Divider Styles -// $tabbar-right-section-border: solid 1px scale-color($tabbar-bg, $lightness: 13%); -// $tabbar-left-section-border: solid 1px scale-color($tabbar-bg, $lightness: -50%); - -// Off Canvas Tab Bar Headers -// $tabbar-header-color: $white; -// $tabbar-header-weight: $font-weight-bold; -// $tabbar-header-line-height: $tabbar-height; -// $tabbar-header-margin: 0; - -// Off Canvas Menu Variables -// $off-canvas-width: rem-calc(250); -// $off-canvas-bg: $oil; -// $off-canvas-bg-hover: scale-color($tabbar-bg, $lightness: -30%); - -// Off Canvas Menu List Variables -// $off-canvas-label-padding: 0.3rem rem-calc(15); -// $off-canvas-label-color: $aluminum; -// $off-canvas-label-text-transform: uppercase; -// $off-canvas-label-font-size: rem-calc(12); -// $off-canvas-label-font-weight: $font-weight-bold; -// $off-canvas-label-bg: $tuatara; -// $off-canvas-label-border-top: 1px solid scale-color($tuatara, $lightness: 14%); -// $off-canvas-label-border-bottom: none; -// $off-canvas-label-margin:0; -// $off-canvas-link-padding: rem-calc(10, 15); -// $off-canvas-link-color: rgba($white, 0.7); -// $off-canvas-link-border-bottom: 1px solid scale-color($off-canvas-bg, $lightness: -25%); -// $off-canvas-back-bg: $tuatara; -// $off-canvas-back-border-top: $off-canvas-label-border-top; -// $off-canvas-back-border-bottom: $off-canvas-label-border-bottom; -// $off-canvas-back-hover-bg: scale-color($off-canvas-back-bg, $lightness: -30%); -// $off-canvas-back-hover-border-top: 1px solid scale-color($off-canvas-label-bg, $lightness: 14%); -// $off-canvas-back-hover-border-bottom: none; - -// Off Canvas Menu Icon Variables -// $tabbar-menu-icon-color: $white; -// $tabbar-menu-icon-hover: scale-color($tabbar-menu-icon-color, $lightness: -30%); - -// $tabbar-menu-icon-text-indent: rem-calc(35); -// $tabbar-menu-icon-width: $tabbar-height; -// $tabbar-menu-icon-height: $tabbar-height; -// $tabbar-menu-icon-padding: 0; - -// $tabbar-hamburger-icon-width: rem-calc(16); -// $tabbar-hamburger-icon-left: false; -// $tabbar-hamburger-icon-top: false; -// $tabbar-hamburger-icon-thickness: 1px; -// $tabbar-hamburger-icon-gap: 6px; - -// Off Canvas Back-Link Overlay -// $off-canvas-overlay-transition: background 300ms ease; -// $off-canvas-overlay-cursor: pointer; -// $off-canvas-overlay-box-shadow: -4px 0 4px rgba($black, 0.5), 4px 0 4px rgba($black, 0.5); -// $off-canvas-overlay-background: rgba($white, 0.2); -// $off-canvas-overlay-background-hover: rgba($white, 0.05); - -// Transition Variables -// $menu-slide: "transform 500ms ease"; - -// 19. Orbit -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-orbit-classes: $include-html-classes; - -// We use these to control the caption styles -// $orbit-container-bg: none; -// $orbit-caption-bg: rgba(51,51,51, 0.8); -// $orbit-caption-font-color: $white; -// $orbit-caption-font-size: rem-calc(14); -// $orbit-caption-position: "bottom"; // Supported values: "bottom", "under" -// $orbit-caption-padding: rem-calc(10 14); -// $orbit-caption-height: auto; - -// We use these to control the left/right nav styles -// $orbit-nav-bg: transparent; -// $orbit-nav-bg-hover: rgba(0,0,0,0.3); -// $orbit-nav-arrow-color: $white; -// $orbit-nav-arrow-color-hover: $white; - -// We use these to control the timer styles -// $orbit-timer-bg: rgba(255,255,255,0.3); -// $orbit-timer-show-progress-bar: true; - -// We use these to control the bullet nav styles -// $orbit-bullet-nav-color: $iron; -// $orbit-bullet-nav-color-active: $aluminum; -// $orbit-bullet-radius: rem-calc(9); - -// We use these to controls the style of slide numbers -// $orbit-slide-number-bg: rgba(0,0,0,0); -// $orbit-slide-number-font-color: $white; -// $orbit-slide-number-padding: rem-calc(5); - -// Hide controls on small -// $orbit-nav-hide-for-small: true; -// $orbit-bullet-hide-for-small: true; -// $orbit-timer-hide-for-small: true; - -// Graceful Loading Wrapper and preloader -// $wrapper-class: "slideshow-wrapper"; -// $preloader-class: "preloader"; - -// 20. Pagination -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-pagination-classes: $include-html-classes; - -// We use these to control the pagination container -// $pagination-height: rem-calc(24); -// $pagination-margin: rem-calc(-5); - -// We use these to set the list-item properties -// $pagination-li-float: $default-float; -// $pagination-li-height: rem-calc(24); -// $pagination-li-font-color: $jet; -// $pagination-li-font-size: rem-calc(14); -// $pagination-li-margin: rem-calc(5); - -// We use these for the pagination anchor links -// $pagination-link-pad: rem-calc(1 10 1); -// $pagination-link-font-color: $aluminum; -// $pagination-link-active-bg: scale-color($white, $lightness: -10%); - -// We use these for disabled anchor links -// $pagination-link-unavailable-cursor: default; -// $pagination-link-unavailable-font-color: $aluminum; -// $pagination-link-unavailable-bg-active: transparent; - -// We use these for currently selected anchor links -// $pagination-link-current-background: $primary-color; -// $pagination-link-current-font-color: $white; -// $pagination-link-current-font-weight: $font-weight-bold; -// $pagination-link-current-cursor: default; -// $pagination-link-current-active-bg: $primary-color; - -// 21. Panels -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-panel-classes: $include-html-classes; - -// We use these to control the background and border styles -// $panel-bg: scale-color($white, $lightness: -5%); -// $panel-border-style: solid; -// $panel-border-size: 1px; - -// We use this % to control how much we darken things on hover -// $panel-function-factor: -11%; -// $panel-border-color: scale-color($panel-bg, $lightness: $panel-function-factor); - -// We use these to set default inner padding and bottom margin -// $panel-margin-bottom: rem-calc(20); -// $panel-padding: rem-calc(20); - -// We use these to set default font colors -// $panel-font-color: $oil; -// $panel-font-color-alt: $white; - -// $panel-header-adjust: true; -// $callout-panel-link-color: $primary-color; - -// 22. Pricing Tables -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-pricing-classes: $include-html-classes; - -// We use this to control the border color -// $price-table-border: solid 1px $gainsboro; - -// We use this to control the bottom margin of the pricing table -// $price-table-margin-bottom: rem-calc(20); - -// We use these to control the title styles -// $price-title-bg: $oil; -// $price-title-padding: rem-calc(15 20); -// $price-title-align: center; -// $price-title-color: $smoke; -// $price-title-weight: $font-weight-normal; -// $price-title-size: rem-calc(16); -// $price-title-font-family: $body-font-family; - -// We use these to control the price styles -// $price-money-bg: $vapor ; -// $price-money-padding: rem-calc(15 20); -// $price-money-align: center; -// $price-money-color: $oil; -// $price-money-weight: $font-weight-normal; -// $price-money-size: rem-calc(32); -// $price-money-font-family: $body-font-family; - -// We use these to control the description styles -// $price-bg: $white; -// $price-desc-color: $monsoon; -// $price-desc-padding: rem-calc(15); -// $price-desc-align: center; -// $price-desc-font-size: rem-calc(12); -// $price-desc-weight: $font-weight-normal; -// $price-desc-line-height: 1.4; -// $price-desc-bottom-border: dotted 1px $gainsboro; - -// We use these to control the list item styles -// $price-item-color: $oil; -// $price-item-padding: rem-calc(15); -// $price-item-align: center; -// $price-item-font-size: rem-calc(14); -// $price-item-weight: $font-weight-normal; -// $price-item-bottom-border: dotted 1px $gainsboro; - -// We use these to control the CTA area styles -// $price-cta-bg: $white; -// $price-cta-align: center; -// $price-cta-padding: rem-calc(20 20 0); - -// 23. Progress Bar -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-media-classes: $include-html-classes; - -// We use this to set the progress bar height -// $progress-bar-height: rem-calc(25); -// $progress-bar-color: $vapor ; - -// We use these to control the border styles -// $progress-bar-border-color: scale-color($white, $lightness: 20%); -// $progress-bar-border-size: 1px; -// $progress-bar-border-style: solid; -// $progress-bar-border-radius: $global-radius; - -// We use these to control the margin & padding -// $progress-bar-pad: rem-calc(2); -// $progress-bar-margin-bottom: rem-calc(10); - -// We use these to set the meter colors -// $progress-meter-color: $primary-color; -// $progress-meter-secondary-color: $secondary-color; -// $progress-meter-success-color: $success-color; -// $progress-meter-alert-color: $alert-color; - -// 24. Range Slider -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-range-slider-classes: $include-html-classes; - -// These variables define the slider bar styles -// $range-slider-bar-width: 100%; -// $range-slider-bar-height: rem-calc(16); - -// $range-slider-bar-border-width: 1px; -// $range-slider-bar-border-style: solid; -// $range-slider-bar-border-color: $gainsboro; -// $range-slider-radius: $global-radius; -// $range-slider-round: $global-rounded; -// $range-slider-bar-bg-color: $ghost; - -// Vertical bar styles -// $range-slider-vertical-bar-width: rem-calc(16); -// $range-slider-vertical-bar-height: rem-calc(200); - -// These variables define the slider handle styles -// $range-slider-handle-width: rem-calc(32); -// $range-slider-handle-height: rem-calc(22); -// $range-slider-handle-position-top: rem-calc(-5); -// $range-slider-handle-bg-color: $primary-color; -// $range-slider-handle-border-width: 1px; -// $range-slider-handle-border-style: solid; -// $range-slider-handle-border-color: none; -// $range-slider-handle-radius: $global-radius; -// $range-slider-handle-round: $global-rounded; -// $range-slider-handle-bg-hover-color: scale-color($primary-color, $lightness: -12%); -// $range-slider-handle-cursor: pointer; - -// 25. Reveal -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-reveal-classes: $include-html-classes; - -// We use these to control the style of the reveal overlay. -// $reveal-overlay-bg: rgba($black, .45); -// $reveal-overlay-bg-old: $black; - -// We use these to control the style of the modal itself. -// $reveal-modal-bg: $white; -// $reveal-position-top: rem-calc(100); -// $reveal-default-width: 80%; -// $reveal-max-width: $row-width; -// $reveal-modal-padding: rem-calc(20); -// $reveal-box-shadow: 0 0 10px rgba($black,.4); - -// We use these to style the reveal close button -// $reveal-close-font-size: rem-calc(40); -// $reveal-close-top: rem-calc(8); -// $reveal-close-side: rem-calc(11); -// $reveal-close-color: $base; -// $reveal-close-weight: $font-weight-bold; - -// We use this to set the default radius used throughout the core. -// $reveal-radius: $global-radius; -// $reveal-round: $global-rounded; - -// We use these to control the modal border -// $reveal-border-style: solid; -// $reveal-border-width: 1px; -// $reveal-border-color: $steel; - -// $reveal-modal-class: "reveal-modal"; -// $close-reveal-modal-class: "close-reveal-modal"; - -// 26. Side Nav -// - - - - - - - - - - - - - - - - - - - - - - - - - - -$include-html-nav-classes: true; - -// We use this to control padding. -$side-nav-padding: 1rem 1rem; - -// We use these to control list styles. -$side-nav-list-type: none; -$side-nav-list-position: inside; -$side-nav-list-margin: rem-calc(0 0 7 0); - -// We use these to control link styles. -$side-nav-link-color: $color-red; -$side-nav-link-color-active: scale-color($side-nav-link-color, $lightness: 30%); -$side-nav-link-color-hover: scale-color($side-nav-link-color, $lightness: 30%); -$side-nav-font-size: rem-calc(14); -$side-nav-font-weight: normal; -$side-nav-font-family: $body-font-family; -$side-nav-active-font-family: $side-nav-font-family; - -// We use these to control heading styles. -// $side-nav-heading-color: $side-nav-link-color; -// $side-nav-heading-font-size: $side-nav-font-size; -// $side-nav-heading-font-weight: bold; -// $side-nav-heading-text-transform: uppercase; - -// We use these to control border styles -$side-nav-divider-size: 1px; -$side-nav-divider-style: solid; -$side-nav-divider-color: scale-color(#fff, $lightness: -10%); - -// 27. Split Buttons -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-button-classes: $include-html-classes; - -// We use these to control different shared styles for Split Buttons -// $split-button-function-factor: 10%; -// $split-button-pip-color: $white; -// $split-button-pip-color-alt: $oil; -// $split-button-active-bg-tint: rgba(0,0,0,0.1); - -// We use these to control tiny split buttons -// $split-button-padding-tny: $button-pip-tny * 10; -// $split-button-span-width-tny: $button-pip-tny * 6; -// $split-button-pip-size-tny: $button-pip-tny; -// $split-button-pip-top-tny: $button-pip-tny * 2; -// $split-button-pip-default-float-tny: rem-calc(-6); - -// We use these to control small split buttons -// $split-button-padding-sml: $button-pip-sml * 10; -// $split-button-span-width-sml: $button-pip-sml * 6; -// $split-button-pip-size-sml: $button-pip-sml; -// $split-button-pip-top-sml: $button-pip-sml * 1.5; -// $split-button-pip-default-float-sml: rem-calc(-6); - -// We use these to control medium split buttons -// $split-button-padding-med: $button-pip-med * 9; -// $split-button-span-width-med: $button-pip-med * 5.5; -// $split-button-pip-size-med: $button-pip-med - rem-calc(3); -// $split-button-pip-top-med: $button-pip-med * 1.5; -// $split-button-pip-default-float-med: rem-calc(-6); - -// We use these to control large split buttons -// $split-button-padding-lrg: $button-pip-lrg * 8; -// $split-button-span-width-lrg: $button-pip-lrg * 5; -// $split-button-pip-size-lrg: $button-pip-lrg - rem-calc(6); -// $split-button-pip-top-lrg: $button-pip-lrg + rem-calc(5); -// $split-button-pip-default-float-lrg: rem-calc(-6); - -// 28. Sub Nav -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-nav-classes: $include-html-classes; - -// We use these to control margin and padding -// $sub-nav-list-margin: rem-calc(-4 0 18); -// $sub-nav-list-padding-top: rem-calc(4); - -// We use this to control the definition -// $sub-nav-font-family: $body-font-family; -// $sub-nav-font-size: rem-calc(14); -// $sub-nav-font-color: $aluminum; -// $sub-nav-font-weight: $font-weight-normal; -// $sub-nav-text-decoration: none; -// $sub-nav-padding: rem-calc(3 16); -// $sub-nav-border-radius: 3px; -// $sub-nav-font-color-hover: scale-color($sub-nav-font-color, $lightness: -25%); - -// We use these to control the active item styles -// $sub-nav-active-font-weight: $font-weight-normal; -// $sub-nav-active-bg: $primary-color; -// $sub-nav-active-bg-hover: scale-color($sub-nav-active-bg, $lightness: -14%); -// $sub-nav-active-color: $white; -// $sub-nav-active-padding: $sub-nav-padding; -// $sub-nav-active-cursor: default; - -// $sub-nav-item-divider: ""; -// $sub-nav-item-divider-margin: rem-calc(12); - -// 29. Switch -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-form-classes: $include-html-classes; - -// Controlling border styles and background colors for the switch container -// $switch-border-color: scale-color($white, $lightness: -20%); -// $switch-border-style: solid; -// $switch-border-width: 1px; -// $switch-bg: $white; - -// We use these to control the switch heights for our default classes -// $switch-height-tny: rem-calc(22); -// $switch-height-sml: rem-calc(28); -// $switch-height-med: rem-calc(36); -// $switch-height-lrg: rem-calc(44); -// $switch-bottom-margin: rem-calc(20); - -// We use these to control default font sizes for our classes. -// $switch-font-size-tny: 11px; -// $switch-font-size-sml: 12px; -// $switch-font-size-med: 14px; -// $switch-font-size-lrg: 17px; -// $switch-label-side-padding: 6px; - -// We use these to style the switch-paddle -// $switch-paddle-bg: $white; -// $switch-paddle-fade-to-color: scale-color($switch-paddle-bg, $lightness: -10%); -// $switch-paddle-border-color: scale-color($switch-paddle-bg, $lightness: -35%); -// $switch-paddle-border-width: 1px; -// $switch-paddle-border-style: solid; -// $switch-paddle-transition-speed: .1s; -// $switch-paddle-transition-ease: ease-out; -// $switch-positive-color: scale-color($success-color, $lightness: 94%); -// $switch-negative-color: $white-smoke; - -// Outline Style for tabbing through switches -// $switch-label-outline: 1px dotted $jumbo; - -// 30. Tables -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-table-classes: $include-html-classes; - -// These control the background color for the table and even rows -// $table-bg: $white; -// $table-even-row-bg: $snow ; - -// These control the table cell border style -// $table-border-style: solid; -// $table-border-size: 1px; -// $table-border-color: $gainsboro; - -// These control the table head styles -// $table-head-bg: $white-smoke ; -// $table-head-font-size: rem-calc(14); -// $table-head-font-color: $jet; -// $table-head-font-weight: $font-weight-bold; -// $table-head-padding: rem-calc(8 10 10); - -// These control the row padding and font styles -// $table-row-padding: rem-calc(9 10); -// $table-row-font-size: rem-calc(14); -// $table-row-font-color: $jet; -// $table-line-height: rem-calc(18); - -// These are for controlling the layout, display and margin of tables -// $table-layout: auto; -// $table-display: table-cell; -// $table-margin-bottom: rem-calc(20); - -// 31. Tabs -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-tabs-classes: $include-html-classes; - -// $tabs-navigation-padding: rem-calc(16); -// $tabs-navigation-bg-color: $silver ; -// $tabs-navigation-active-bg-color: $white; -// $tabs-navigation-hover-bg-color: scale-color($tabs-navigation-bg-color, $lightness: -6%); -// $tabs-navigation-font-color: $jet; -// $tabs-navigation-active-font-color: $tabs-navigation-font-color; -// $tabs-navigation-font-size: rem-calc(16); -// $tabs-navigation-font-family: $body-font-family; - -// $tabs-content-margin-bottom: rem-calc(24); -// $tabs-content-padding: $column-gutter/2; - -// $tabs-vertical-navigation-margin-bottom: 1.25rem; - -// 32. Thumbnails -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-media-classes: $include-html-classes; - -// We use these to control border styles -// $thumb-border-style: solid; -// $thumb-border-width: 4px; -// $thumb-border-color: $white; -// $thumb-box-shadow: 0 0 0 1px rgba($black,.2); -// $thumb-box-shadow-hover: 0 0 6px 1px rgba($primary-color,0.5); - -// Radius and transition speed for thumbs -// $thumb-radius: $global-radius; -// $thumb-transition-speed: 200ms; - -// 33. Tooltips -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-tooltip-classes: $include-html-classes; - -// $has-tip-border-bottom: dotted 1px $iron; -// $has-tip-font-weight: $font-weight-bold; -// $has-tip-font-color: $oil; -// $has-tip-border-bottom-hover: dotted 1px scale-color($primary-color, $lightness: -55%); -// $has-tip-font-color-hover: $primary-color; -// $has-tip-cursor-type: help; - -// $tooltip-padding: rem-calc(12); -// $tooltip-bg: $oil; -// $tooltip-font-size: rem-calc(14); -// $tooltip-font-weight: $font-weight-normal; -// $tooltip-font-color: $white; -// $tooltip-line-height: 1.3; -// $tooltip-close-font-size: rem-calc(10); -// $tooltip-close-font-weight: $font-weight-normal; -// $tooltip-close-font-color: $monsoon; -// $tooltip-font-size-sml: rem-calc(14); -// $tooltip-radius: $global-radius; -// $tooltip-rounded: $global-rounded; -// $tooltip-pip-size: 5px; -// $tooltip-max-width: 300px; - -// 34. Top Bar -// - - - - - - - - - - - - - - - - - - - - - - - - - - -$include-html-top-bar-classes: true; - -// Background color for the top bar -$topbar-bg-color: $color-gray; -$topbar-bg: $topbar-bg-color; - -// Height and margin -$topbar-height: rem-calc(45px); -$topbar-margin-bottom: 0; - -// Controlling the styles for the title in the top bar -$topbar-title-weight: normal; -$topbar-title-font-size: rem-calc(17); - -// Style the top bar dropdown elements -$topbar-dropdown-bg: $color-gray; -$topbar-dropdown-link-color: #f7f2ea; -$topbar-dropdown-link-bg: $color-gray; -$topbar-dropdown-link-weight: normal; -$topbar-dropdown-toggle-size: 5px; -$topbar-dropdown-toggle-color: #f7f2ea; -$topbar-dropdown-toggle-alpha: 0.4; - -// Set the link colors and styles for top-level nav -$topbar-link-color: #f7f2ea; -$topbar-link-color-hover: #fff; -$topbar-link-color-active: #fff; -$topbar-link-color-active-hover: #fff; -$topbar-link-weight: normal; -$topbar-link-font-size: rem-calc(13); -$topbar-link-hover-lightness: -10%; // Darken by 10% -$topbar-link-bg-hover: #272727; -$topbar-link-bg-active: $color-red; -$topbar-link-bg-active-hover: scale-color($color-red, $lightness: -14%); -$topbar-link-font-family: $body-font-family; -// $topbar-link-text-transform: none; -// $topbar-link-padding: $topbar-height / 3; -// $topbar-back-link-size: $h5-font-size; -// $topbar-link-dropdown-padding: 20px; - -// $topbar-button-top: 7px; - -$topbar-button-font-size: 0.75rem; - -$topbar-dropdown-label-color: #777; -$topbar-dropdown-label-text-transform: uppercase; -$topbar-dropdown-label-font-weight: bold; -$topbar-dropdown-label-font-size: rem-calc(10); -$topbar-dropdown-label-bg: #333; - -// Top menu icon styles -$topbar-menu-link-transform: uppercase; -$topbar-menu-link-font-size: rem-calc(13); -$topbar-menu-link-weight: bold; -$topbar-menu-link-color: #fff; -$topbar-menu-icon-color: #fff; -$topbar-menu-link-color-toggled: #888; -$topbar-menu-icon-color-toggled: #888; - -// Transitions and breakpoint styles -$topbar-transition-speed: 300ms; -// Using rem-calc for the below breakpoint causes issues with top bar -$topbar-breakpoint: #{upper-bound($medium-range)}; // Change to 9999px for always mobile layout -$topbar-media-query: "only screen and (min-width: #{upper-bound($medium-range)})"; - -// Divider Styles -$topbar-divider-border-bottom: solid 1px scale-color($topbar-bg-color, $lightness: 13%); -$topbar-divider-border-top: solid 1px scale-color($topbar-bg-color, $lightness: -50%); - -// Sticky Class -$topbar-sticky-class: ".sticky"; -$topbar-arrows: true; //Set false to remove the triangle icon from the menu item - -// 36. Visibility Classes -// - - - - - - - - - - - - - - - - - - - - - - - - - - -// $include-html-visibility-classes: $include-html-classes; -// $include-table-visibility-classes: true; -// $include-legacy-visibility-classes: true; -// $include-accessibility-classes: true; diff --git a/site/templates/api-documentation.hbs b/site/templates/api-documentation.hbs deleted file mode 100644 index 667329542..000000000 --- a/site/templates/api-documentation.hbs +++ /dev/null @@ -1,11 +0,0 @@ ---- -layout: content -side-nav: api-side-navigation -page-class: api-documentation -title: Chartist - API Documentation -description: Detailed documentation of the Chartist.js code and API -preventIndent: true ---- -{{#each (doxTransform apidox)}} - {{>dox-section}} -{{/each}} diff --git a/site/templates/examples.hbs b/site/templates/examples.hbs deleted file mode 100644 index 6f1f230a9..000000000 --- a/site/templates/examples.hbs +++ /dev/null @@ -1,10 +0,0 @@ ---- -layout: content -page-class: examples -title: Chartist - Examples -description: Demos and examples of Chartist.js with live editing functionality -preventIndent: true ---- -{{#each page.sections}} - {{>section}} -{{/each}} diff --git a/site/templates/getting-started.hbs b/site/templates/getting-started.hbs deleted file mode 100644 index 7e0e2816e..000000000 --- a/site/templates/getting-started.hbs +++ /dev/null @@ -1,10 +0,0 @@ ---- -layout: content -page-class: getting-started -title: Chartist - Getting started -description: Learn how to use Chartist.js -preventIndent: true ---- -{{#each page.sections}} - {{>section}} -{{/each}} diff --git a/site/templates/index.hbs b/site/templates/index.hbs deleted file mode 100644 index 518f31c22..000000000 --- a/site/templates/index.hbs +++ /dev/null @@ -1,43 +0,0 @@ ---- -layout: landing -page-class: full -title: Chartist - Simple responsive charts -description: Create responsive, scalable and good looking charts with chartist.js. -preventIndent: true ---- -

You may think that this is just yet an other charting library. But Chartist.js is the product of -a community that was disappointed about the abilities provided by other charting libraries. Of course there are hundreds -of other great charting libraries but after using them there were always tweaks you would have wished for that were not - included.

- -

Get awesome Dashboard Templates by Creative Tim

-

Are you planning to use Chartist to create a nice Dashboard or Admin UI? Don't loose any time and kickstart your development using the awesome templates by Creative Tim. They include Chartist and come with awesome chart styles!

-
-{{#each page.affiliate-projects}} - {{> affiliate-project }} -{{/each}} -
- -

Highly customizable responsive charts

- - -

Facts about Chartist

-

The following facts should give you an overview why to choose Chartists as your front-end chart generator:

-
    -
  • Simple handling while using convention over configuration
  • -
  • Great flexibility while using clear separation of concerns (Style with CSS & control with JS)
  • -
  • Usage of SVG (Yes! SVG is the future of illustration in web!)
  • -
  • Fully responsive and DPI independent
  • -
  • Responsive configuration with media queries
  • -
  • Fully built and customizable with Sass
  • -
- -{{#each page.sections}} - {{>section}} -{{/each}} diff --git a/site/templates/plugins.hbs b/site/templates/plugins.hbs deleted file mode 100644 index f4daf97db..000000000 --- a/site/templates/plugins.hbs +++ /dev/null @@ -1,10 +0,0 @@ ---- -layout: content -page-class: plugins -title: Chartist - Plugins -description: Use plugins to extend the functionality of your charts -preventIndent: true ---- -{{#each page.sections}} - {{>section}} -{{/each}} diff --git a/src/axes/AutoScaleAxis.ts b/src/axes/AutoScaleAxis.ts new file mode 100644 index 000000000..26d9d7a02 --- /dev/null +++ b/src/axes/AutoScaleAxis.ts @@ -0,0 +1,50 @@ +import type { + ChartRect, + AxisOptions, + Bounds, + NormalizedSeries, + NormalizedSeriesPrimitiveValue +} from '../core'; +import { getBounds, getHighLow, getMultiValue } from '../core'; +import { AxisUnits, Axis } from './Axis'; + +export class AutoScaleAxis extends Axis { + private readonly bounds: Bounds; + public override readonly range: { + min: number; + max: number; + }; + + constructor( + axisUnit: AxisUnits, + data: NormalizedSeries[], + chartRect: ChartRect, + options: AxisOptions + ) { + // Usually we calculate highLow based on the data but this can be overriden by a highLow object in the options + const highLow = options.highLow || getHighLow(data, options, axisUnit.pos); + const bounds = getBounds( + chartRect[axisUnit.rectEnd] - chartRect[axisUnit.rectStart], + highLow, + options.scaleMinSpace || 20, + options.onlyInteger + ); + const range = { + min: bounds.min, + max: bounds.max + }; + + super(axisUnit, chartRect, bounds.values); + + this.bounds = bounds; + this.range = range; + } + + projectValue(value: NormalizedSeriesPrimitiveValue) { + const finalValue = Number(getMultiValue(value, this.units.pos)); + + return ( + (this.axisLength * (finalValue - this.bounds.min)) / this.bounds.range + ); + } +} diff --git a/src/axes/Axis.spec.ts b/src/axes/Axis.spec.ts new file mode 100644 index 000000000..8b95eea59 --- /dev/null +++ b/src/axes/Axis.spec.ts @@ -0,0 +1,135 @@ +import type { ChartRect } from '../core'; +import { Svg } from '../svg'; +import { EventEmitter } from '../event'; +import { Axis, axisUnits } from './Axis'; + +class MockAxis extends Axis { + projectValue(value: number) { + return value; + } +} + +describe('Axes', () => { + describe('Axis', () => { + let ticks: number[]; + let chartRect: ChartRect; + let chartOptions: any; + let eventEmitter: EventEmitter; + let gridGroup: Svg; + let labelGroup: Svg; + + beforeEach(() => { + eventEmitter = new EventEmitter(); + gridGroup = new Svg('g'); + labelGroup = new Svg('g'); + ticks = [1, 2]; + chartRect = { + padding: { + bottom: 5, + left: 10, + right: 15, + top: 15 + }, + y2: 15, + y1: 250, + x1: 50, + x2: 450, + width() { + return this.x2 - this.x1; + }, + height() { + return this.y1 - this.y2; + } + }; + + chartOptions = { + axisX: { + offset: 30, + position: 'end', + labelOffset: { + x: 0, + y: 0 + }, + showLabel: true, + showGrid: true + }, + classNames: { + label: 'ct-label', + labelGroup: 'ct-labels', + grid: 'ct-grid', + gridGroup: 'ct-grids', + vertical: 'ct-vertical', + horizontal: 'ct-horizontal', + start: 'ct-start', + end: 'ct-end' + } + }; + }); + + it('should skip all grid lines and labels for interpolated value of null', () => { + chartOptions.axisX.labelInterpolationFnc = ( + value: number, + index: number + ) => (index === 0 ? null : value); + + const axis = new MockAxis(axisUnits.x, chartRect, ticks); + + axis.createGridAndLabels( + gridGroup, + labelGroup, + chartOptions, + eventEmitter + ); + expect( + (gridGroup.querySelectorAll('.ct-grid') as any).svgElements.length + ).toBe(1); + expect( + (labelGroup.querySelectorAll('.ct-label') as any).svgElements.length + ).toBe(1); + }); + + it('should skip all grid lines and labels for interpolated value of undefined', () => { + chartOptions.axisX.labelInterpolationFnc = ( + value: number, + index: number + ) => (index === 0 ? undefined : value); + + const axis = new MockAxis(axisUnits.x, chartRect, ticks); + + axis.createGridAndLabels( + gridGroup, + labelGroup, + chartOptions, + eventEmitter + ); + expect( + (gridGroup.querySelectorAll('.ct-grid') as any).svgElements.length + ).toBe(1); + expect( + (labelGroup.querySelectorAll('.ct-label') as any).svgElements.length + ).toBe(1); + }); + + it('should include all grid lines and labels for interpolated value of empty strings', () => { + chartOptions.axisX.labelInterpolationFnc = ( + value: number, + index: number + ) => (index === 0 ? '' : value); + + const axis = new MockAxis(axisUnits.x, chartRect, ticks); + + axis.createGridAndLabels( + gridGroup, + labelGroup, + chartOptions, + eventEmitter + ); + expect( + (gridGroup.querySelectorAll('.ct-grid') as any).svgElements.length + ).toBe(2); + expect( + (labelGroup.querySelectorAll('.ct-label') as any).svgElements.length + ).toBe(2); + }); + }); +}); diff --git a/src/axes/Axis.ts b/src/axes/Axis.ts new file mode 100644 index 000000000..ad58cd649 --- /dev/null +++ b/src/axes/Axis.ts @@ -0,0 +1,170 @@ +import type { + Label, + ChartRect, + OptionsWithDefaults, + NormalizedSeriesPrimitiveValue, + NormalizedSeries +} from '../core'; +import type { Svg } from '../svg'; +import type { EventEmitter } from '../event'; +import { isFalseyButZero } from '../utils'; +import { createGrid, createLabel } from '../core'; + +export const axisUnits = { + x: { + pos: 'x', + len: 'width', + dir: 'horizontal', + rectStart: 'x1', + rectEnd: 'x2', + rectOffset: 'y2' + }, + y: { + pos: 'y', + len: 'height', + dir: 'vertical', + rectStart: 'y2', + rectEnd: 'y1', + rectOffset: 'x1' + } +} as const; + +export type XAxisUnits = typeof axisUnits.x; +export type YAxisUnits = typeof axisUnits.y; +export type AxisUnits = XAxisUnits | YAxisUnits; + +export abstract class Axis { + public readonly counterUnits: AxisUnits; + public readonly range: + | { + min: number; + max: number; + } + | undefined; + readonly axisLength: number; + private readonly gridOffset: number; + + constructor( + public readonly units: AxisUnits, + private readonly chartRect: ChartRect, + private readonly ticks: Label[] + ) { + this.counterUnits = units === axisUnits.x ? axisUnits.y : axisUnits.x; + this.axisLength = + chartRect[this.units.rectEnd] - chartRect[this.units.rectStart]; + this.gridOffset = chartRect[this.units.rectOffset]; + } + + abstract projectValue( + value: NormalizedSeriesPrimitiveValue | Label, + index?: number, + series?: NormalizedSeries + ): number; + + createGridAndLabels( + gridGroup: Svg, + labelGroup: Svg, + chartOptions: OptionsWithDefaults, + eventEmitter: EventEmitter + ) { + const axisOptions = + this.units.pos === 'x' ? chartOptions.axisX : chartOptions.axisY; + const projectedValues = this.ticks.map((tick, i) => + this.projectValue(tick, i) + ); + const labelValues = this.ticks.map(axisOptions.labelInterpolationFnc); + + projectedValues.forEach((projectedValue, index) => { + const labelValue = labelValues[index]; + const labelOffset = { + x: 0, + y: 0 + }; + + // TODO: Find better solution for solving this problem + // Calculate how much space we have available for the label + let labelLength; + if (projectedValues[index + 1]) { + // If we still have one label ahead, we can calculate the distance to the next tick / label + labelLength = projectedValues[index + 1] - projectedValue; + } else { + // If we don't have a label ahead and we have only two labels in total, we just take the remaining distance to + // on the whole axis length. We limit that to a minimum of 30 pixel, so that labels close to the border will + // still be visible inside of the chart padding. + labelLength = Math.max(this.axisLength - projectedValue, 30); + } + + // Skip grid lines and labels where interpolated label values are falsey (except for 0) + if (labelValue !== '' && isFalseyButZero(labelValue)) { + return; + } + + // Transform to global coordinates using the chartRect + // We also need to set the label offset for the createLabel function + if (this.units.pos === 'x') { + projectedValue = this.chartRect.x1 + projectedValue; + labelOffset.x = chartOptions.axisX.labelOffset.x; + + // If the labels should be positioned in start position (top side for vertical axis) we need to set a + // different offset as for positioned with end (bottom) + if (chartOptions.axisX.position === 'start') { + labelOffset.y = + this.chartRect.padding.top + chartOptions.axisX.labelOffset.y + 5; + } else { + labelOffset.y = + this.chartRect.y1 + chartOptions.axisX.labelOffset.y + 5; + } + } else { + projectedValue = this.chartRect.y1 - projectedValue; + labelOffset.y = chartOptions.axisY.labelOffset.y - labelLength; + + // If the labels should be positioned in start position (left side for horizontal axis) we need to set a + // different offset as for positioned with end (right side) + if (chartOptions.axisY.position === 'start') { + labelOffset.x = + this.chartRect.padding.left + chartOptions.axisY.labelOffset.x; + } else { + labelOffset.x = + this.chartRect.x2 + chartOptions.axisY.labelOffset.x + 10; + } + } + + if (axisOptions.showGrid) { + createGrid( + projectedValue, + index, + this, + this.gridOffset, + this.chartRect[this.counterUnits.len](), + gridGroup, + [ + chartOptions.classNames.grid, + chartOptions.classNames[this.units.dir] + ], + eventEmitter + ); + } + + if (axisOptions.showLabel) { + createLabel( + projectedValue, + labelLength, + index, + labelValue, + this, + axisOptions.offset, + labelOffset, + labelGroup, + [ + chartOptions.classNames.label, + chartOptions.classNames[this.units.dir], + axisOptions.position === 'start' + ? chartOptions.classNames[axisOptions.position] + : chartOptions.classNames.end + ], + eventEmitter + ); + } + }); + } +} diff --git a/src/axes/FixedScaleAxis.spec.ts b/src/axes/FixedScaleAxis.spec.ts new file mode 100644 index 000000000..c9075b71d --- /dev/null +++ b/src/axes/FixedScaleAxis.spec.ts @@ -0,0 +1,53 @@ +import { FixedScaleAxis } from './FixedScaleAxis'; + +describe('Axes', () => { + describe('FixedScaleAxis', () => { + it('should order the tick array', () => { + const ticks = [10, 5, 0, -5, -10]; + const axisUnit = { + pos: 'y', + len: 'height', + dir: 'vertical', + rectStart: 'y2', + rectEnd: 'y1', + rectOffset: 'x1' + } as const; + const data = [ + [ + { x: 1, y: 10 }, + { x: 2, y: 5 }, + { x: 3, y: -5 } + ] + ]; + const chartRect: any = { + padding: { + top: 15, + right: 15, + bottom: 5, + left: 10 + }, + y2: 15, + y1: 141, + x1: 50, + x2: 269 + }; + const options = { + offset: 40, + position: 'start' as const, + labelOffset: { x: 0, y: 0 }, + showLabel: true, + showGrid: true, + scaleMinSpace: 20, + onlyInteger: false, + ticks + }; + const fsaxis: any = new FixedScaleAxis( + axisUnit, + data, + chartRect, + options + ); + expect(fsaxis.ticks).toEqual([-10, -5, 0, 5, 10]); + }); + }); +}); diff --git a/src/axes/FixedScaleAxis.ts b/src/axes/FixedScaleAxis.ts new file mode 100644 index 000000000..314d782d3 --- /dev/null +++ b/src/axes/FixedScaleAxis.ts @@ -0,0 +1,50 @@ +import type { + ChartRect, + AxisOptions, + NormalizedSeries, + NormalizedSeriesPrimitiveValue +} from '../core'; +import { getMultiValue, getHighLow } from '../core/data'; +import { times } from '../utils'; +import { AxisUnits, Axis } from './Axis'; + +export class FixedScaleAxis extends Axis { + public override readonly range: { + min: number; + max: number; + }; + + constructor( + axisUnit: AxisUnits, + data: NormalizedSeries[], + chartRect: ChartRect, + options: AxisOptions + ) { + const highLow = options.highLow || getHighLow(data, options, axisUnit.pos); + const divisor = options.divisor || 1; + const ticks = ( + options.ticks || + times(divisor).map( + (_value, index) => + highLow.low + ((highLow.high - highLow.low) / divisor) * index + ) + ).sort((a, b) => Number(a) - Number(b)); + const range = { + min: highLow.low, + max: highLow.high + }; + + super(axisUnit, chartRect, ticks); + + this.range = range; + } + + projectValue(value: NormalizedSeriesPrimitiveValue) { + const finalValue = Number(getMultiValue(value, this.units.pos)); + + return ( + (this.axisLength * (finalValue - this.range.min)) / + (this.range.max - this.range.min) + ); + } +} diff --git a/src/axes/StepAxis.spec.ts b/src/axes/StepAxis.spec.ts new file mode 100644 index 000000000..473de0256 --- /dev/null +++ b/src/axes/StepAxis.spec.ts @@ -0,0 +1,29 @@ +import { StepAxis } from './StepAxis'; + +describe('Axes', () => { + describe('StepAxis', () => { + it('should return 0 if options.ticks.length == 1', () => { + const ticks = [1]; + const axisUnit = { + pos: 'y', + len: 'height', + dir: 'vertical', + rectStart: 'y2', + rectEnd: 'y1', + rectOffset: 'x1' + } as const; + const data = [[1]]; + const chartRect: any = { + y2: 0, + y1: 15, + x1: 50, + x2: 100 + }; + const options = { + ticks + }; + const stepAxis: any = new StepAxis(axisUnit, data, chartRect, options); + expect(stepAxis.stepLength).toEqual(15); + }); + }); +}); diff --git a/src/axes/StepAxis.ts b/src/axes/StepAxis.ts new file mode 100644 index 000000000..4a4ad9609 --- /dev/null +++ b/src/axes/StepAxis.ts @@ -0,0 +1,26 @@ +import type { ChartRect, AxisOptions } from '../core'; +import { AxisUnits, Axis } from './Axis'; + +export class StepAxis extends Axis { + private readonly stepLength: number; + public readonly stretch: boolean; + + constructor( + axisUnit: AxisUnits, + _data: unknown, + chartRect: ChartRect, + options: AxisOptions + ) { + const ticks = options.ticks || []; + + super(axisUnit, chartRect, ticks); + + const calc = Math.max(1, ticks.length - (options.stretch ? 1 : 0)); + this.stepLength = this.axisLength / calc; + this.stretch = Boolean(options.stretch); + } + + projectValue(_value: unknown, index: number) { + return this.stepLength * index; + } +} diff --git a/src/axes/index.ts b/src/axes/index.ts new file mode 100644 index 000000000..1e237b223 --- /dev/null +++ b/src/axes/index.ts @@ -0,0 +1,5 @@ +export * from './Axis'; +export * from './AutoScaleAxis'; +export * from './FixedScaleAxis'; +export * from './StepAxis'; +export * from './types'; diff --git a/src/axes/types.ts b/src/axes/types.ts new file mode 100644 index 000000000..978023d38 --- /dev/null +++ b/src/axes/types.ts @@ -0,0 +1,8 @@ +import type { AutoScaleAxis } from './AutoScaleAxis'; +import type { FixedScaleAxis } from './FixedScaleAxis'; +import type { StepAxis } from './StepAxis'; + +export type AxisType = + | typeof AutoScaleAxis + | typeof FixedScaleAxis + | typeof StepAxis; diff --git a/src/charts/BarChart/BarChart.spec.ts b/src/charts/BarChart/BarChart.spec.ts new file mode 100644 index 000000000..4330f40ec --- /dev/null +++ b/src/charts/BarChart/BarChart.spec.ts @@ -0,0 +1,403 @@ +import { AutoScaleAxis } from '../../axes'; +import { BarChartOptions, BarChartData, BarChart } from '.'; +import { namespaces, deserialize } from '../../core'; +import { + Fixture, + addMockWrapper, + destroyMockDom, + mockDom, + mockDomRects, + destroyMockDomRects +} from '../../../test/mock/dom'; + +describe('Charts', () => { + describe('BarChart', () => { + let fixture: Fixture; + let chart: BarChart; + let options: BarChartOptions; + let data: BarChartData; + + function createChart() { + return new Promise(resolve => { + fixture = addMockWrapper( + '
' + ); + const { wrapper } = fixture; + chart = new BarChart( + wrapper.querySelector('.ct-chart'), + data, + options + ).on('created', () => { + resolve(); + chart.off('created'); + }); + }); + } + + beforeEach(() => { + mockDom(); + mockDomRects(); + }); + afterEach(() => { + destroyMockDom(); + destroyMockDomRects(); + data = { series: [] }; + options = {}; + }); + + describe('grids', () => { + beforeEach(() => { + data = { + series: [ + [ + { x: 1, y: 1 }, + { x: 3, y: 5 } + ] + ] + }; + options = { + axisX: { + type: AutoScaleAxis, + onlyInteger: true + }, + axisY: { + type: AutoScaleAxis, + onlyInteger: true + } + }; + }); + + it('should contain ct-grids group', async () => { + data = { series: [] }; + options = {}; + await createChart(); + + expect(fixture.wrapper.querySelectorAll('g.ct-grids').length).toBe(1); + }); + + it('should draw grid lines', async () => { + await createChart(); + + expect( + fixture.wrapper.querySelectorAll( + 'g.ct-grids line.ct-grid.ct-horizontal' + ).length + ).toBe(3); + expect( + fixture.wrapper.querySelectorAll( + 'g.ct-grids line.ct-grid.ct-vertical' + ).length + ).toBe(6); + }); + + it('should draw grid background', async () => { + options.showGridBackground = true; + await createChart(); + + expect( + fixture.wrapper.querySelectorAll('g.ct-grids rect.ct-grid-background') + .length + ).toBe(1); + }); + + it('should not draw grid background if option set to false', async () => { + options.showGridBackground = false; + await createChart(); + + expect( + fixture.wrapper.querySelectorAll('g.ct-grids rect.ct-grid-background') + .length + ).toBe(0); + }); + }); + + describe('ct:value attribute', () => { + it('should contain x and y value for each bar', async () => { + data = { + series: [ + [ + { x: 1, y: 2 }, + { x: 3, y: 4 } + ] + ] + }; + options = { + axisX: { + type: AutoScaleAxis + } + }; + await createChart(); + + const bars = fixture.wrapper.querySelectorAll('.ct-bar'); + expect(bars[0].getAttributeNS(namespaces.ct, 'value')).toEqual('1,2'); + expect(bars[1].getAttributeNS(namespaces.ct, 'value')).toEqual('3,4'); + }); + + it('should render values that are zero', async () => { + data = { + series: [ + [ + { x: 0, y: 1 }, + { x: 2, y: 0 }, + { x: 0, y: 0 } + ] + ] + }; + options = { + axisX: { + type: AutoScaleAxis + } + }; + await createChart(); + + const bars = fixture.wrapper.querySelectorAll('.ct-bar'); + expect(bars[0].getAttributeNS(namespaces.ct, 'value')).toEqual('0,1'); + expect(bars[1].getAttributeNS(namespaces.ct, 'value')).toEqual('2,0'); + expect(bars[2].getAttributeNS(namespaces.ct, 'value')).toEqual('0,0'); + }); + }); + + describe('Meta data tests', () => { + it('should render meta data correctly with mixed value array', async () => { + const meta = { + test: 'Serialized Test' + }; + + data = { + labels: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu'], + series: [ + [ + 5, + 2, + 4, + { + value: 2, + meta: meta + }, + 0 + ] + ] + }; + await createChart(); + + const bar = fixture.wrapper.querySelectorAll('.ct-bar')[3]; + expect(deserialize(bar.getAttributeNS(namespaces.ct, 'meta'))).toEqual( + meta + ); + }); + + it('should render meta data correctly with mixed value array and different normalized data length', async () => { + const meta = { + test: 'Serialized Test' + }; + + data = { + labels: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], + series: [ + [ + 5, + 2, + 4, + { + value: 2, + meta: meta + }, + 0 + ] + ] + }; + await createChart(); + + const bar = fixture.wrapper.querySelectorAll('.ct-bar')[3]; + expect(deserialize(bar.getAttributeNS(namespaces.ct, 'meta'))).toEqual( + meta + ); + }); + + it('should render meta data correctly with mixed value array and mixed series notation', async () => { + const seriesMeta = 9999; + const valueMeta = { + test: 'Serialized Test' + }; + + data = { + labels: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], + series: [ + [ + 5, + 2, + 4, + { + value: 2, + meta: valueMeta + }, + 0 + ], + { + meta: seriesMeta, + data: [ + 5, + 2, + { + value: 2, + meta: valueMeta + }, + 0 + ] + } + ] + }; + await createChart(); + + expect( + deserialize( + fixture.wrapper + .querySelectorAll('.ct-series-a .ct-bar')[3] + .getAttributeNS(namespaces.ct, 'meta') + ) + ).toEqual(valueMeta); + + expect( + deserialize( + fixture.wrapper + .querySelector('.ct-series-b') + ?.getAttributeNS(namespaces.ct, 'meta') + ) + ).toEqual(seriesMeta); + + expect( + deserialize( + fixture.wrapper + .querySelectorAll('.ct-series-b .ct-bar')[2] + .getAttributeNS(namespaces.ct, 'meta') + ) + ).toEqual(valueMeta); + }); + }); + + describe('Empty data tests', () => { + it('should render empty grid with no data', async () => { + data = { series: [] }; + options = {}; + await createChart(); + + // Find at least one vertical grid line + expect( + document.querySelector('.ct-grids .ct-grid.ct-vertical') + ).toBeDefined(); + }); + + it('should render empty grid with only labels', async () => { + data = { + labels: [1, 2, 3, 4], + series: [] + }; + await createChart(); + + // Find at least one vertical grid line + expect( + document.querySelector('.ct-grids .ct-grid.ct-vertical') + ).toBeDefined(); + // Find exactly as many horizontal grid lines as labels were specified (Step Axis) + expect( + document.querySelectorAll('.ct-grids .ct-grid.ct-horizontal').length + ).toBe(data.labels?.length); + }); + + it('should generate labels and render empty grid with only series in data', async () => { + data = { + series: [ + [1, 2, 3, 4], + [2, 3, 4], + [3, 4] + ] + }; + await createChart(); + + // Find at least one vertical grid line + expect( + document.querySelector('.ct-grids .ct-grid.ct-vertical') + ).toBeDefined(); + // Should generate the labels using the largest series count + expect( + document.querySelectorAll('.ct-grids .ct-grid.ct-horizontal').length + ).toBe( + Math.max( + ...data.series.map(series => + Array.isArray(series) ? series.length : 0 + ) + ) + ); + }); + + it('should render empty grid with no data and specified high low', async () => { + options = { + width: 400, + height: 300, + high: 100, + low: -100 + }; + await createChart(); + + // Find first and last label + const labels = document.querySelectorAll( + '.ct-labels .ct-label.ct-vertical' + ); + const firstLabel = labels[0]; + const lastLabel = labels[labels.length - 1]; + + expect(firstLabel.textContent?.trim()).toBe('-100'); + expect(lastLabel.textContent?.trim()).toBe('100'); + }); + + it('should render empty grid with no data and reverseData option', async () => { + options = { + reverseData: true + }; + await createChart(); + + // Find at least one vertical grid line + expect( + document.querySelector('.ct-grids .ct-grid.ct-vertical') + ).toBeDefined(); + }); + + it('should render empty grid with no data and stackBars option', async () => { + options = { + stackBars: true + }; + await createChart(); + + // Find at least one vertical grid line + expect( + document.querySelector('.ct-grids .ct-grid.ct-vertical') + ).toBeDefined(); + }); + + it('should render empty grid with no data and horizontalBars option', async () => { + options = { + horizontalBars: true + }; + await createChart(); + + // Find at least one vertical grid line + // TODO: In theory the axis should be created with ct-horizontal class + expect( + document.querySelector('.ct-grids .ct-grid.ct-vertical') + ).toBeDefined(); + }); + + it('should render empty grid with no data and distributeSeries option', async () => { + options = { + distributeSeries: true + }; + await createChart(); + + // Find at least one vertical grid line + expect( + document.querySelector('.ct-grids .ct-grid.ct-vertical') + ).toBeDefined(); + }); + }); + }); +}); diff --git a/src/charts/BarChart/BarChart.stories.ts b/src/charts/BarChart/BarChart.stories.ts new file mode 100644 index 000000000..410af720f --- /dev/null +++ b/src/charts/BarChart/BarChart.stories.ts @@ -0,0 +1,426 @@ +import 'chartist-dev/styles'; +import { BarChart, AutoScaleAxis, Svg, getMultiValue } from 'chartist-dev'; +import { Viewport } from '../../../test/utils/storyshots/viewport'; + +export default { + title: 'BarChart', + argTypes: {} +}; + +export function Default() { + const root = document.createElement('div'); + + new BarChart( + root, + { + series: [ + [ + { x: 1, y: 1 }, + { x: 3, y: 5 } + ] + ] + }, + { + axisX: { + type: AutoScaleAxis, + onlyInteger: true + }, + axisY: { + type: AutoScaleAxis, + onlyInteger: true + } + } + ); + + return root; +} + +export function BiPolar() { + const root = document.createElement('div'); + + new BarChart( + root, + { + labels: ['W1', 'W2', 'W3', 'W4', 'W5', 'W6', 'W7', 'W8', 'W9', 'W10'], + series: [[1, 2, 4, 8, 6, -2, -1, -4, -6, -2]] + }, + { + high: 10, + low: -10, + axisX: { + labelInterpolationFnc(value, index) { + return index % 2 === 0 ? value : null; + } + } + } + ); + + return root; +} + +export function Labels() { + const root = document.createElement('div'); + + new BarChart( + root, + { + labels: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu'], + series: [[5, 2, 4, 2, 0]] + }, + {} + ); + + return root; +} + +export function MultilineLabels() { + const root = document.createElement('div'); + + new BarChart( + root, + { + labels: [ + 'First quarter of the year', + 'Second quarter of the year', + 'Third quarter of the year', + 'Fourth quarter of the year' + ], + series: [ + [60000, 40000, 80000, 70000], + [40000, 30000, 70000, 65000], + [8000, 3000, 10000, 6000] + ] + }, + { + seriesBarDistance: 10, + axisX: { + offset: 60 + }, + axisY: { + offset: 80, + labelInterpolationFnc(value) { + return value + ' CHF'; + }, + scaleMinSpace: 15 + } + } + ); + + return root; +} + +export function LabelsPlacement() { + const root = document.createElement('div'); + + new BarChart( + root, + { + labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], + series: [ + [5, 4, 3, 7, 5, 10, 3], + [3, 2, 9, 5, 4, 6, 4] + ] + }, + { + axisX: { + // On the x-axis start means top and end means bottom + position: 'start' + }, + axisY: { + // On the y-axis start means left and end means right + position: 'end' + } + } + ); + + return root; +} + +export function MultiSeries() { + const root = document.createElement('div'); + + new BarChart( + root, + { + series: [ + [1, 2, 3, 4], + [2, 3, 4], + [3, 4] + ] + }, + {} + ); + + return root; +} + +export function DistributedSeries() { + const root = document.createElement('div'); + + new BarChart( + root, + { + labels: ['XS', 'S', 'M', 'L', 'XL', 'XXL', 'XXXL'], + series: [20, 60, 120, 200, 180, 20, 10] + }, + { + distributeSeries: true + } + ); + + return root; +} + +export function ReverseData() { + const root = document.createElement('div'); + + new BarChart( + root, + { + series: [ + [1, 2, 3, 4], + [2, 3, 4], + [3, 4] + ] + }, + { + reverseData: true + } + ); + + return root; +} + +export function Stack() { + const root = document.createElement('div'); + + new BarChart( + root, + { + labels: ['Q1', 'Q2', 'Q3', 'Q4'], + series: [ + [800000, 1200000, 1400000, 1300000], + [200000, 400000, 500000, 300000], + [100000, 200000, 400000, 600000] + ] + }, + { + stackBars: true, + axisY: { + labelInterpolationFnc(value) { + return Number(value) / 1000 + 'k'; + } + } + } + ).on('draw', data => { + if (data.type === 'bar') { + data.element.attr({ + style: 'stroke-width: 30px' + }); + } + }); + + return root; +} + +export function Horizontal() { + const root = document.createElement('div'); + + new BarChart( + root, + { + labels: [ + 'Monday', + 'Tuesday', + 'Wednesday', + 'Thursday', + 'Friday', + 'Saturday', + 'Sunday' + ], + series: [ + [5, 4, 3, 7, 5, 10, 3], + [3, 2, 9, 5, 4, 6, 4] + ] + }, + { + seriesBarDistance: 10, + reverseData: true, + horizontalBars: true, + axisY: { + offset: 70 + } + } + ); + + return root; +} + +export function Adaptive() { + const root = document.createElement('div'); + + new BarChart( + root, + { + labels: ['Quarter 1', 'Quarter 2', 'Quarter 3', 'Quarter 4'], + series: [ + [5, 4, 3, 7], + [3, 2, 9, 5], + [1, 5, 8, 4], + [2, 3, 4, 6], + [4, 1, 2, 1] + ] + }, + { + // Default mobile configuration + stackBars: true, + axisX: { + labelInterpolationFnc: value => + String(value) + .split(/\s+/) + .map(word => word[0]) + .join('') + }, + axisY: { + offset: 20 + } + }, + [ + // Options override for media > 400px + [ + 'screen and (min-width: 400px)', + { + reverseData: true, + horizontalBars: true, + axisX: { + labelInterpolationFnc: () => undefined + }, + axisY: { + offset: 60 + } + } + ], + // Options override for media > 800px + [ + 'screen and (min-width: 800px)', + { + stackBars: false, + seriesBarDistance: 10 + } + ], + // Options override for media > 1000px + [ + 'screen and (min-width: 1000px)', + { + reverseData: false, + horizontalBars: false, + seriesBarDistance: 15 + } + ] + ] + ); + + return root; +} + +Adaptive.parameters = { + storyshots: { + viewports: [ + Viewport.Default, + Viewport.Tablet, + Viewport.MobileLandscape, + Viewport.Mobile + ] + } +}; + +export function OverlappingBarsOnMobile() { + const root = document.createElement('div'); + + new BarChart( + root, + { + labels: [ + 'Jan', + 'Feb', + 'Mar', + 'Apr', + 'May', + 'Jun', + 'Jul', + 'Aug', + 'Sep', + 'Oct', + 'Nov', + 'Dec' + ], + series: [ + [5, 4, 3, 7, 5, 10, 3, 4, 8, 10, 6, 8], + [3, 2, 9, 5, 4, 6, 4, 6, 7, 8, 7, 4] + ] + }, + { + seriesBarDistance: 10 + }, + [ + [ + 'screen and (max-width: 640px)', + { + seriesBarDistance: 5, + axisX: { + labelInterpolationFnc(value) { + return String(value)[0]; + } + } + } + ] + ] + ); + + return root; +} + +OverlappingBarsOnMobile.parameters = { + storyshots: { + viewports: [Viewport.Default, Viewport.Mobile] + } +}; + +export function PeakCircles() { + const root = document.createElement('div'); + + new BarChart( + root, + { + labels: ['W1', 'W2', 'W3', 'W4', 'W5', 'W6', 'W7', 'W8', 'W9', 'W10'], + series: [[1, 2, 4, 8, 6, -2, -1, -4, -6, -2]] + }, + { + high: 10, + low: -10, + axisX: { + labelInterpolationFnc(value, index) { + return index % 2 === 0 ? value : null; + } + } + } + ).on('draw', data => { + // If this draw event is of type bar we can use the data to create additional content + if (data.type === 'bar') { + // We use the group element of the current series to append a simple circle with the bar peek coordinates and a circle radius that is depending on the value + data.group.append( + new Svg( + 'circle', + { + cx: data.x2, + cy: data.y2, + r: Math.abs(Number(getMultiValue(data.value))) * 2 + 5 + }, + 'ct-slice-pie' + ) + ); + } + }); + + return root; +} diff --git a/src/charts/BarChart/BarChart.ts b/src/charts/BarChart/BarChart.ts new file mode 100644 index 000000000..927d79bb1 --- /dev/null +++ b/src/charts/BarChart/BarChart.ts @@ -0,0 +1,583 @@ +import type { Axis } from '../../axes'; +import type { + BarChartData, + BarChartOptions, + BarChartOptionsWithDefaults, + BarChartCreatedEvent, + BarDrawEvent, + BarChartEventsTypes +} from './BarChart.types'; +import type { NormalizedSeries } from '../../core'; +import { + isNumeric, + noop, + serialMap, + extend, + safeHasProperty +} from '../../utils'; +import { + alphaNumerate, + normalizeData, + serialize, + getMetaData, + getHighLow, + createSvg, + createChartRect, + createGridBackground +} from '../../core'; +import { AutoScaleAxis, StepAxis, axisUnits } from '../../axes'; +import { BaseChart } from '../BaseChart'; + +function getSerialSums(series: NormalizedSeries[]) { + return serialMap(series, (...args) => + Array.from(args).reduce<{ x: number; y: number }>( + (prev, curr) => { + return { + x: prev.x + (safeHasProperty(curr, 'x') ? curr.x : 0), + y: prev.y + (safeHasProperty(curr, 'y') ? curr.y : 0) + }; + }, + { x: 0, y: 0 } + ) + ); +} + +/** + * Default options in bar charts. Expand the code view to see a detailed list of options with comments. + */ +const defaultOptions = { + // Options for X-Axis + axisX: { + // The offset of the chart drawing area to the border of the container + offset: 30, + // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis. + position: 'end' as const, + // Allows you to correct label positioning on this axis by positive or negative x and y offset. + labelOffset: { + x: 0, + y: 0 + }, + // If labels should be shown or not + showLabel: true, + // If the axis grid should be drawn or not + showGrid: true, + // Interpolation function that allows you to intercept the value from the axis label + labelInterpolationFnc: noop, + // This value specifies the minimum width in pixel of the scale steps + scaleMinSpace: 30, + // Use only integer values (whole numbers) for the scale steps + onlyInteger: false + }, + // Options for Y-Axis + axisY: { + // The offset of the chart drawing area to the border of the container + offset: 40, + // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis. + position: 'start' as const, + // Allows you to correct label positioning on this axis by positive or negative x and y offset. + labelOffset: { + x: 0, + y: 0 + }, + // If labels should be shown or not + showLabel: true, + // If the axis grid should be drawn or not + showGrid: true, + // Interpolation function that allows you to intercept the value from the axis label + labelInterpolationFnc: noop, + // This value specifies the minimum height in pixel of the scale steps + scaleMinSpace: 20, + // Use only integer values (whole numbers) for the scale steps + onlyInteger: false + }, + // Specify a fixed width for the chart as a string (i.e. '100px' or '50%') + width: undefined, + // Specify a fixed height for the chart as a string (i.e. '100px' or '50%') + height: undefined, + // Overriding the natural high of the chart allows you to zoom in or limit the charts highest displayed value + high: undefined, + // Overriding the natural low of the chart allows you to zoom in or limit the charts lowest displayed value + low: undefined, + // Unless low/high are explicitly set, bar chart will be centered at zero by default. Set referenceValue to null to auto scale. + referenceValue: 0, + // Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5} + chartPadding: { + top: 15, + right: 15, + bottom: 5, + left: 10 + }, + // Specify the distance in pixel of bars in a group + seriesBarDistance: 15, + // If set to true this property will cause the series bars to be stacked. Check the `stackMode` option for further stacking options. + stackBars: false, + // If set to 'overlap' this property will force the stacked bars to draw from the zero line. + // If set to 'accumulate' this property will form a total for each series point. This will also influence the y-axis and the overall bounds of the chart. In stacked mode the seriesBarDistance property will have no effect. + stackMode: 'accumulate' as const, + // Inverts the axes of the bar chart in order to draw a horizontal bar chart. Be aware that you also need to invert your axis settings as the Y Axis will now display the labels and the X Axis the values. + horizontalBars: false, + // If set to true then each bar will represent a series and the data array is expected to be a one dimensional array of data values rather than a series array of series. This is useful if the bar chart should represent a profile rather than some data over time. + distributeSeries: false, + // If true the whole data is reversed including labels, the series order as well as the whole series data arrays. + reverseData: false, + // If the bar chart should add a background fill to the .ct-grids group. + showGridBackground: false, + // Override the class names that get used to generate the SVG structure of the chart + classNames: { + chart: 'ct-chart-bar', + horizontalBars: 'ct-horizontal-bars', + label: 'ct-label', + labelGroup: 'ct-labels', + series: 'ct-series', + bar: 'ct-bar', + grid: 'ct-grid', + gridGroup: 'ct-grids', + gridBackground: 'ct-grid-background', + vertical: 'ct-vertical', + horizontal: 'ct-horizontal', + start: 'ct-start', + end: 'ct-end' + } +}; + +export class BarChart extends BaseChart { + /** + * This method creates a new bar chart and returns API object that you can use for later changes. + * @param query A selector query string or directly a DOM element + * @param data The data object that needs to consist of a labels and a series array + * @param options The options object with options that override the default options. Check the examples for a detailed list. + * @param responsiveOptions Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]] + * @return An object which exposes the API for the created chart + * + * @example + * // Create a simple bar chart + * const data = { + * labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'], + * series: [ + * [5, 2, 4, 2, 0] + * ] + * }; + * + * // In the global name space Chartist we call the Bar function to initialize a bar chart. As a first parameter we pass in a selector where we would like to get our chart created and as a second parameter we pass our data object. + * new BarChart('.ct-chart', data); + * + * @example + * // This example creates a bipolar grouped bar chart where the boundaries are limitted to -10 and 10 + * new BarChart('.ct-chart', { + * labels: [1, 2, 3, 4, 5, 6, 7], + * series: [ + * [1, 3, 2, -5, -3, 1, -6], + * [-5, -2, -4, -1, 2, -3, 1] + * ] + * }, { + * seriesBarDistance: 12, + * low: -10, + * high: 10 + * }); + * + */ + constructor( + query: string | Element | null, + protected override data: BarChartData, + options?: BarChartOptions, + responsiveOptions?: [string, BarChartOptions][] + ) { + super( + query, + data, + defaultOptions, + extend({}, defaultOptions, options), + responsiveOptions + ); + } + + /** + * Creates a new chart + */ + createChart(options: BarChartOptionsWithDefaults) { + const { data } = this; + const normalizedData = normalizeData( + data, + options.reverseData, + options.horizontalBars ? 'x' : 'y', + true + ); + // Create new svg element + const svg = createSvg( + this.container, + options.width, + options.height, + options.classNames.chart + + (options.horizontalBars ? ' ' + options.classNames.horizontalBars : '') + ); + const highLow = + options.stackBars && + options.stackMode !== true && + normalizedData.series.length + ? // If stacked bars we need to calculate the high low from stacked values from each series + getHighLow( + [getSerialSums(normalizedData.series)], + options, + options.horizontalBars ? 'x' : 'y' + ) + : getHighLow( + normalizedData.series, + options, + options.horizontalBars ? 'x' : 'y' + ); + + this.svg = svg; + + // Drawing groups in correct order + const gridGroup = svg.elem('g').addClass(options.classNames.gridGroup); + const seriesGroup = svg.elem('g'); + const labelGroup = svg.elem('g').addClass(options.classNames.labelGroup); + + // Overrides of high / low from settings + if (typeof options.high === 'number') { + highLow.high = options.high; + } + + if (typeof options.low === 'number') { + highLow.low = options.low; + } + + const chartRect = createChartRect(svg, options); + let valueAxis: Axis; + const labelAxisTicks = // We need to set step count based on some options combinations + options.distributeSeries && options.stackBars + ? // If distributed series are enabled and bars need to be stacked, we'll only have one bar and therefore should + // use only the first label for the step axis + normalizedData.labels.slice(0, 1) + : // If distributed series are enabled but stacked bars aren't, we should use the series labels + // If we are drawing a regular bar chart with two dimensional series data, we just use the labels array + // as the bars are normalized + normalizedData.labels; + let labelAxis: Axis; + let axisX: Axis; + let axisY: Axis; + + // Set labelAxis and valueAxis based on the horizontalBars setting. This setting will flip the axes if necessary. + if (options.horizontalBars) { + if (options.axisX.type === undefined) { + valueAxis = axisX = new AutoScaleAxis( + axisUnits.x, + normalizedData.series, + chartRect, + { ...options.axisX, highLow: highLow, referenceValue: 0 } + ); + } else { + // eslint-disable-next-line new-cap + valueAxis = axisX = new options.axisX.type( + axisUnits.x, + normalizedData.series, + chartRect, + { ...options.axisX, highLow: highLow, referenceValue: 0 } + ); + } + + if (options.axisY.type === undefined) { + labelAxis = axisY = new StepAxis( + axisUnits.y, + normalizedData.series, + chartRect, + { + ticks: labelAxisTicks + } + ); + } else { + // eslint-disable-next-line new-cap + labelAxis = axisY = new options.axisY.type( + axisUnits.y, + normalizedData.series, + chartRect, + options.axisY + ); + } + } else { + if (options.axisX.type === undefined) { + labelAxis = axisX = new StepAxis( + axisUnits.x, + normalizedData.series, + chartRect, + { + ticks: labelAxisTicks + } + ); + } else { + // eslint-disable-next-line new-cap + labelAxis = axisX = new options.axisX.type( + axisUnits.x, + normalizedData.series, + chartRect, + options.axisX + ); + } + + if (options.axisY.type === undefined) { + valueAxis = axisY = new AutoScaleAxis( + axisUnits.y, + normalizedData.series, + chartRect, + { ...options.axisY, highLow: highLow, referenceValue: 0 } + ); + } else { + // eslint-disable-next-line new-cap + valueAxis = axisY = new options.axisY.type( + axisUnits.y, + normalizedData.series, + chartRect, + { ...options.axisY, highLow: highLow, referenceValue: 0 } + ); + } + } + + // Projected 0 point + const zeroPoint = options.horizontalBars + ? chartRect.x1 + valueAxis.projectValue(0) + : chartRect.y1 - valueAxis.projectValue(0); + // Used to track the screen coordinates of stacked bars + const stackedBarValues: number[] = []; + + labelAxis.createGridAndLabels( + gridGroup, + labelGroup, + options, + this.eventEmitter + ); + valueAxis.createGridAndLabels( + gridGroup, + labelGroup, + options, + this.eventEmitter + ); + + if (options.showGridBackground) { + createGridBackground( + gridGroup, + chartRect, + options.classNames.gridBackground, + this.eventEmitter + ); + } + + // Draw the series + data.series.forEach((series, seriesIndex) => { + // Calculating bi-polar value of index for seriesOffset. For i = 0..4 biPol will be -1.5, -0.5, 0.5, 1.5 etc. + const biPol = seriesIndex - (data.series.length - 1) / 2; + // Half of the period width between vertical grid lines used to position bars + let periodHalfLength: number; + + // We need to set periodHalfLength based on some options combinations + if (options.distributeSeries && !options.stackBars) { + // If distributed series are enabled but stacked bars aren't, we need to use the length of the normaizedData array + // which is the series count and divide by 2 + periodHalfLength = + labelAxis.axisLength / normalizedData.series.length / 2; + } else if (options.distributeSeries && options.stackBars) { + // If distributed series and stacked bars are enabled we'll only get one bar so we should just divide the axis + // length by 2 + periodHalfLength = labelAxis.axisLength / 2; + } else { + // On regular bar charts we should just use the series length + periodHalfLength = + labelAxis.axisLength / normalizedData.series[seriesIndex].length / 2; + } + + // Adding the series group to the series element + const seriesElement = seriesGroup.elem('g'); + const seriesName = safeHasProperty(series, 'name') && series.name; + const seriesClassName = + safeHasProperty(series, 'className') && series.className; + const seriesMeta = safeHasProperty(series, 'meta') + ? series.meta + : undefined; + + // Write attributes to series group element. If series name or meta is undefined the attributes will not be written + if (seriesName) { + seriesElement.attr({ + 'ct:series-name': seriesName + }); + } + + if (seriesMeta) { + seriesElement.attr({ + 'ct:meta': serialize(seriesMeta) + }); + } + + // Use series class from series data or if not set generate one + seriesElement.addClass( + [ + options.classNames.series, + seriesClassName || + `${options.classNames.series}-${alphaNumerate(seriesIndex)}` + ].join(' ') + ); + + normalizedData.series[seriesIndex].forEach((value, valueIndex) => { + let labelAxisValueIndex; + // We need to set labelAxisValueIndex based on some options combinations + if (options.distributeSeries && !options.stackBars) { + // If distributed series are enabled but stacked bars aren't, we can use the seriesIndex for later projection + // on the step axis for label positioning + labelAxisValueIndex = seriesIndex; + } else if (options.distributeSeries && options.stackBars) { + // If distributed series and stacked bars are enabled, we will only get one bar and therefore always use + // 0 for projection on the label step axis + labelAxisValueIndex = 0; + } else { + // On regular bar charts we just use the value index to project on the label step axis + labelAxisValueIndex = valueIndex; + } + + let projected; + // We need to transform coordinates differently based on the chart layout + if (options.horizontalBars) { + projected = { + x: + chartRect.x1 + + valueAxis.projectValue( + safeHasProperty(value, 'x') ? value.x : 0, + valueIndex, + normalizedData.series[seriesIndex] + ), + y: + chartRect.y1 - + labelAxis.projectValue( + safeHasProperty(value, 'y') ? value.y : 0, + labelAxisValueIndex, + normalizedData.series[seriesIndex] + ) + }; + } else { + projected = { + x: + chartRect.x1 + + labelAxis.projectValue( + safeHasProperty(value, 'x') ? value.x : 0, + labelAxisValueIndex, + normalizedData.series[seriesIndex] + ), + y: + chartRect.y1 - + valueAxis.projectValue( + safeHasProperty(value, 'y') ? value.y : 0, + valueIndex, + normalizedData.series[seriesIndex] + ) + }; + } + + // If the label axis is a step based axis we will offset the bar into the middle of between two steps using + // the periodHalfLength value. Also we do arrange the different series so that they align up to each other using + // the seriesBarDistance. If we don't have a step axis, the bar positions can be chosen freely so we should not + // add any automated positioning. + if (labelAxis instanceof StepAxis) { + // Offset to center bar between grid lines, but only if the step axis is not stretched + if (!labelAxis.stretch) { + projected[labelAxis.units.pos] += + periodHalfLength * (options.horizontalBars ? -1 : 1); + } + // Using bi-polar offset for multiple series if no stacked bars or series distribution is used + projected[labelAxis.units.pos] += + options.stackBars || options.distributeSeries + ? 0 + : biPol * + options.seriesBarDistance * + (options.horizontalBars ? -1 : 1); + } + + // Enter value in stacked bar values used to remember previous screen value for stacking up bars + const previousStack = stackedBarValues[valueIndex] || zeroPoint; + stackedBarValues[valueIndex] = + previousStack - (zeroPoint - projected[labelAxis.counterUnits.pos]); + + // Skip if value is undefined + if (value === undefined) { + return; + } + + const positions = { + [`${labelAxis.units.pos}1`]: projected[labelAxis.units.pos], + [`${labelAxis.units.pos}2`]: projected[labelAxis.units.pos] + } as Record<'x1' | 'y1' | 'x2' | 'y2', number>; + + if ( + options.stackBars && + (options.stackMode === 'accumulate' || !options.stackMode) + ) { + // Stack mode: accumulate (default) + // If bars are stacked we use the stackedBarValues reference and otherwise base all bars off the zero line + // We want backwards compatibility, so the expected fallback without the 'stackMode' option + // to be the original behaviour (accumulate) + positions[`${labelAxis.counterUnits.pos}1`] = previousStack; + positions[`${labelAxis.counterUnits.pos}2`] = + stackedBarValues[valueIndex]; + } else { + // Draw from the zero line normally + // This is also the same code for Stack mode: overlap + positions[`${labelAxis.counterUnits.pos}1`] = zeroPoint; + positions[`${labelAxis.counterUnits.pos}2`] = + projected[labelAxis.counterUnits.pos]; + } + + // Limit x and y so that they are within the chart rect + positions.x1 = Math.min( + Math.max(positions.x1, chartRect.x1), + chartRect.x2 + ); + positions.x2 = Math.min( + Math.max(positions.x2, chartRect.x1), + chartRect.x2 + ); + positions.y1 = Math.min( + Math.max(positions.y1, chartRect.y2), + chartRect.y1 + ); + positions.y2 = Math.min( + Math.max(positions.y2, chartRect.y2), + chartRect.y1 + ); + + const metaData = getMetaData(series, valueIndex); + + // Create bar element + const bar = seriesElement + .elem('line', positions, options.classNames.bar) + .attr({ + 'ct:value': [ + safeHasProperty(value, 'x') && value.x, + safeHasProperty(value, 'y') && value.y + ] + .filter(isNumeric) + .join(','), + 'ct:meta': serialize(metaData) + }); + + this.eventEmitter.emit('draw', { + type: 'bar', + value, + index: valueIndex, + meta: metaData, + series, + seriesIndex, + axisX, + axisY, + chartRect, + group: seriesElement, + element: bar, + ...positions + }); + }); + }); + + this.eventEmitter.emit('created', { + chartRect, + axisX, + axisY, + svg, + options + }); + } +} diff --git a/src/charts/BarChart/BarChart.types.ts b/src/charts/BarChart/BarChart.types.ts new file mode 100644 index 000000000..c487bfb5e --- /dev/null +++ b/src/charts/BarChart/BarChart.types.ts @@ -0,0 +1,89 @@ +import type { + Options, + AxisOptions, + Data, + CreatedEvent, + DrawEvent, + NormalizedMulti, + AxesDrawEvent +} from '../../core'; +import type { RequiredKeys } from '../../utils'; +import type { BaseChartEventsTypes } from '../types'; + +export type BarChartData = Data; + +export interface BarChartOptions< + TXAxisOptions = AxisOptions, + TYAxisOptions = TXAxisOptions +> extends Options { + classNames?: { + chart?: string; + horizontalBars?: string; + label?: string; + labelGroup?: string; + series?: string; + bar?: string; + grid?: string; + gridGroup?: string; + gridBackground?: string; + vertical?: string; + horizontal?: string; + start?: string; + end?: string; + }; + seriesBarDistance?: number; + stackBars?: boolean; + stackMode?: 'accumulate' | boolean; + horizontalBars?: boolean; + distributeSeries?: boolean; + reverseData?: boolean; + showGridBackground?: boolean; +} + +export type BarChartOptionsWithDefaults = RequiredKeys< + BarChartOptions< + RequiredKeys< + AxisOptions, + | 'offset' + | 'position' + | 'labelOffset' + | 'showLabel' + | 'showGrid' + | 'labelInterpolationFnc' + | 'scaleMinSpace' + >, + RequiredKeys< + AxisOptions, + | 'offset' + | 'position' + | 'labelOffset' + | 'showLabel' + | 'showGrid' + | 'labelInterpolationFnc' + | 'scaleMinSpace' + > + >, + | 'referenceValue' + | 'chartPadding' + | 'seriesBarDistance' + | 'stackMode' + | 'axisX' + | 'axisY', + 'classNames' +>; + +export type BarChartCreatedEvent = CreatedEvent; + +export interface BarDrawEvent extends DrawEvent { + type: 'bar'; + value: number | NormalizedMulti; + x1: number; + y1: number; + x2: number; + y2: number; +} + +export type BarChartEventsTypes = BaseChartEventsTypes< + BarChartCreatedEvent, + AxesDrawEvent | BarDrawEvent +>; diff --git a/src/charts/BarChart/index.ts b/src/charts/BarChart/index.ts new file mode 100644 index 000000000..340742b55 --- /dev/null +++ b/src/charts/BarChart/index.ts @@ -0,0 +1,2 @@ +export * from './BarChart'; +export * from './BarChart.types'; diff --git a/src/charts/BaseChart.ts b/src/charts/BaseChart.ts new file mode 100644 index 000000000..95f782e32 --- /dev/null +++ b/src/charts/BaseChart.ts @@ -0,0 +1,194 @@ +import type { Data, Options, DataEvent } from '../core'; +import type { Svg } from '../svg'; +import type { BaseChartEventsTypes } from './types'; +import { OptionsProvider, optionsProvider } from '../core'; +import { extend } from '../utils'; +import { EventListener, AllEventsListener, EventEmitter } from '../event'; + +const instances = new WeakMap>(); + +export abstract class BaseChart { + protected svg?: Svg; + protected readonly container: Element; + protected readonly eventEmitter = new EventEmitter(); + private readonly resizeListener = () => this.update(); + // Using event loop for first draw to make it possible to register event listeners in the same call stack where + // the chart was created. + private initializeTimeoutId: NodeJS.Timer | null = setTimeout( + () => this.initialize(), + 0 + ); + private optionsProvider?: OptionsProvider; + + constructor( + query: string | Element | null, + protected data: Data, + private readonly defaultOptions: Options, + private options: Options, + private readonly responsiveOptions?: [string, Options][] + ) { + const container = + typeof query === 'string' ? document.querySelector(query) : query; + + if (!container) { + throw new Error('Target element is not found'); + } + + this.container = container; + + const prevInstance = instances.get(container); + + // If chartist was already initialized in this container we are detaching all event listeners first + if (prevInstance) { + prevInstance.detach(); + } + + instances.set(container, this); + } + + abstract createChart(options: Options): void; + + // TODO: Currently we need to re-draw the chart on window resize. This is usually very bad and will affect performance. + // This is done because we can't work with relative coordinates when drawing the chart because SVG Path does not + // work with relative positions yet. We need to check if we can do a viewBox hack to switch to percentage. + // See http://mozilla.6506.n7.nabble.com/Specyfing-paths-with-percentages-unit-td247474.html + // Update: can be done using the above method tested here: http://codepen.io/gionkunz/pen/KDvLj + // The problem is with the label offsets that can't be converted into percentage and affecting the chart container + /** + * Updates the chart which currently does a full reconstruction of the SVG DOM + * @param data Optional data you'd like to set for the chart before it will update. If not specified the update method will use the data that is already configured with the chart. + * @param options Optional options you'd like to add to the previous options for the chart before it will update. If not specified the update method will use the options that have been already configured with the chart. + * @param override If set to true, the passed options will be used to extend the options that have been configured already. Otherwise the chart default options will be used as the base + */ + update(data?: Data, options?: Options, override = false) { + if (data) { + this.data = data || {}; + this.data.labels = this.data.labels || []; + this.data.series = this.data.series || []; + // Event for data transformation that allows to manipulate the data before it gets rendered in the charts + this.eventEmitter.emit('data', { + type: 'update', + data: this.data + }); + } + + if (options) { + this.options = extend( + {}, + override ? this.options : this.defaultOptions, + options + ); + + // If chartist was not initialized yet, we just set the options and leave the rest to the initialization + // Otherwise we re-create the optionsProvider at this point + if (!this.initializeTimeoutId) { + this.optionsProvider?.removeMediaQueryListeners(); + this.optionsProvider = optionsProvider( + this.options, + this.responsiveOptions, + this.eventEmitter + ); + } + } + + // Only re-created the chart if it has been initialized yet + if (!this.initializeTimeoutId && this.optionsProvider) { + this.createChart(this.optionsProvider.getCurrentOptions()); + } + + // Return a reference to the chart object to chain up calls + return this; + } + + /** + * This method can be called on the API object of each chart and will un-register all event listeners that were added to other components. This currently includes a window.resize listener as well as media query listeners if any responsive options have been provided. Use this function if you need to destroy and recreate Chartist charts dynamically. + */ + detach() { + // Only detach if initialization already occurred on this chart. If this chart still hasn't initialized (therefore + // the initializationTimeoutId is still a valid timeout reference, we will clear the timeout + if (!this.initializeTimeoutId) { + window.removeEventListener('resize', this.resizeListener); + this.optionsProvider?.removeMediaQueryListeners(); + } else { + window.clearTimeout(this.initializeTimeoutId); + } + + instances.delete(this.container); + + return this; + } + + /** + * Use this function to register event handlers. The handler callbacks are synchronous and will run in the main thread rather than the event loop. + * @param event Name of the event. Check the examples for supported events. + * @param listener The handler function that will be called when an event with the given name was emitted. This function will receive a data argument which contains event data. See the example for more details. + */ + on( + event: T, + listener: EventListener + ): this; + on(event: '*', listener: AllEventsListener): this; + on(event: string, listener: EventListener): this; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + on(event: string, listener: any) { + this.eventEmitter.on(event, listener); + return this; + } + + /** + * Use this function to un-register event handlers. If the handler function parameter is omitted all handlers for the given event will be un-registered. + * @param event Name of the event for which a handler should be removed + * @param listener The handler function that that was previously used to register a new event handler. This handler will be removed from the event handler list. If this parameter is omitted then all event handlers for the given event are removed from the list. + */ + off( + event: T, + listener?: EventListener + ): this; + off(event: '*', listener?: AllEventsListener): this; + off(event: string, listener?: EventListener): this; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + off(event: string, listener?: any) { + this.eventEmitter.off(event, listener); + return this; + } + + initialize() { + // Add window resize listener that re-creates the chart + window.addEventListener('resize', this.resizeListener); + + // Obtain current options based on matching media queries (if responsive options are given) + // This will also register a listener that is re-creating the chart based on media changes + this.optionsProvider = optionsProvider( + this.options, + this.responsiveOptions, + this.eventEmitter + ); + // Register options change listener that will trigger a chart update + this.eventEmitter.on('optionsChanged', () => this.update()); + + // Before the first chart creation we need to register us with all plugins that are configured + // Initialize all relevant plugins with our chart object and the plugin options specified in the config + if (this.options.plugins) { + this.options.plugins.forEach(plugin => { + if (Array.isArray(plugin)) { + plugin[0](this, plugin[1]); + } else { + plugin(this); + } + }); + } + + // Event for data transformation that allows to manipulate the data before it gets rendered in the charts + this.eventEmitter.emit('data', { + type: 'initial', + data: this.data + }); + + // Create the first chart + this.createChart(this.optionsProvider.getCurrentOptions()); + + // As chart is initialized from the event loop now we can reset our timeout reference + // This is important if the chart gets initialized on the same element twice + this.initializeTimeoutId = null; + } +} diff --git a/src/charts/LineChart/LineChart.spec.ts b/src/charts/LineChart/LineChart.spec.ts new file mode 100644 index 000000000..4e272d53b --- /dev/null +++ b/src/charts/LineChart/LineChart.spec.ts @@ -0,0 +1,1032 @@ +import { AutoScaleAxis, FixedScaleAxis } from '../../axes'; +import { LineChartOptions, LineChartData, LineChart } from '.'; +import * as Interpolation from '../../interpolation'; +import { namespaces, deserialize } from '../../core'; +import { + Fixture, + addMockWrapper, + destroyMockDom, + mockDom, + mockDomRects, + destroyMockDomRects +} from '../../../test/mock/dom'; + +describe('Charts', () => { + describe('LineChart', () => { + let fixture: Fixture; + let chart: LineChart; + let options: LineChartOptions; + let data: LineChartData; + + function createChart() { + return new Promise(resolve => { + fixture = addMockWrapper( + '
' + ); + const { wrapper } = fixture; + chart = new LineChart( + wrapper.querySelector('.ct-chart'), + data, + options + ).on('created', () => { + resolve(); + chart.off('created'); + }); + }); + } + + beforeEach(() => { + mockDom(); + mockDomRects(); + }); + afterEach(() => { + destroyMockDom(); + destroyMockDomRects(); + data = { series: [] }; + options = {}; + }); + + describe('grids', () => { + beforeEach(() => { + data = { + series: [ + [ + { x: 1, y: 1 }, + { x: 3, y: 5 } + ] + ] + }; + options = { + axisX: { + type: AutoScaleAxis, + onlyInteger: true + }, + axisY: { + type: AutoScaleAxis, + onlyInteger: true + } + }; + }); + + it('should contain ct-grids group', async () => { + await createChart(); + + expect(fixture.wrapper.querySelectorAll('.ct-grids').length).toBe(1); + }); + + it('should draw grid lines', async () => { + await createChart(); + + expect( + fixture.wrapper.querySelectorAll('.ct-grids .ct-grid.ct-horizontal') + .length + ).toBe(3); + expect( + fixture.wrapper.querySelectorAll('.ct-grids .ct-grid.ct-vertical') + .length + ).toBe(5); + }); + + it('should draw grid background', async () => { + options.showGridBackground = true; + await createChart(); + + expect( + fixture.wrapper.querySelectorAll('.ct-grids .ct-grid-background') + .length + ).toBe(1); + }); + + it('should not draw grid background if option set to false', async () => { + options.showGridBackground = false; + await createChart(); + + expect( + fixture.wrapper.querySelectorAll('.ct-grids .ct-grid-background') + .length + ).toBe(0); + }); + }); + + describe('AxisY position tests', () => { + beforeEach(() => { + data = { + series: [ + [ + { x: 1, y: 1 }, + { x: 3, y: 5 } + ] + ] + }; + options = {}; + }); + + it('should have ct-start class if position start', async () => { + options = { + axisY: { + position: 'start' + } + }; + await createChart(); + + Array.from( + fixture.wrapper.querySelectorAll('.ct-label.ct-vertical') + ).forEach(element => + expect(element).toHaveAttribute( + 'class', + 'ct-label ct-vertical ct-start' + ) + ); + }); + + it('should have ct-end class if position is any other value than start', async () => { + options = { + axisY: { + position: 'end' as const + } + }; + await createChart(); + + Array.from( + fixture.wrapper.querySelectorAll('.ct-label.ct-vertical') + ).forEach(element => + expect(element).toHaveAttribute( + 'class', + 'ct-label ct-vertical ct-end' + ) + ); + }); + }); + + describe('ct:value attribute', () => { + it('should contain x and y value for each datapoint', async () => { + data = { + series: [ + [ + { x: 1, y: 2 }, + { x: 3, y: 4 } + ] + ] + }; + options = { + axisX: { + type: FixedScaleAxis + } + }; + await createChart(); + + const points = fixture.wrapper.querySelectorAll('.ct-point'); + expect(points[0].getAttributeNS(namespaces.ct, 'value')).toBe('1,2'); + expect(points[1].getAttributeNS(namespaces.ct, 'value')).toBe('3,4'); + }); + + it('should render values that are zero', async () => { + data = { + series: [ + [ + { x: 0, y: 1 }, + { x: 1, y: 0 }, + { x: 0, y: 0 } + ] + ] + }; + options = { + axisX: { + type: FixedScaleAxis + } + }; + await createChart(); + + const points = fixture.wrapper.querySelectorAll('.ct-point'); + expect(points[0].getAttributeNS(namespaces.ct, 'value')).toBe('0,1'); + expect(points[1].getAttributeNS(namespaces.ct, 'value')).toBe('1,0'); + expect(points[2].getAttributeNS(namespaces.ct, 'value')).toBe('0,0'); + }); + }); + + describe('Meta data tests', () => { + it('should render meta data correctly with mixed value array', async () => { + const meta = { + test: 'Serialized Test' + }; + + data = { + labels: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu'], + series: [ + [ + 5, + 2, + 4, + { + value: 2, + meta: meta + }, + 0 + ] + ] + }; + await createChart(); + + const points = fixture.wrapper.querySelectorAll('.ct-point'); + expect( + deserialize(points[3].getAttributeNS(namespaces.ct, 'meta')) + ).toEqual(meta); + }); + + it('should render meta data correctly with mixed value array and different normalized data length', async () => { + const meta = { + test: 'Serialized Test' + }; + + data = { + labels: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], + series: [ + [ + 5, + 2, + 4, + { + value: 2, + meta: meta + }, + 0 + ] + ] + }; + await createChart(); + + const points = fixture.wrapper.querySelectorAll('.ct-point'); + expect( + deserialize(points[3].getAttributeNS(namespaces.ct, 'meta')) + ).toEqual(meta); + }); + + it('should render meta data correctly with mixed value array and mixed series notation', async () => { + const seriesMeta = 9999; + const valueMeta = { + test: 'Serialized Test' + }; + + data = { + labels: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], + series: [ + [ + 5, + 2, + 4, + { + value: 2, + meta: valueMeta + }, + 0 + ], + { + meta: seriesMeta, + data: [ + 5, + 2, + { + value: 2, + meta: valueMeta + }, + 0 + ] + } + ] + }; + await createChart(); + + expect( + deserialize( + fixture.wrapper + .querySelectorAll('.ct-series-a .ct-point')[3] + .getAttributeNS(namespaces.ct, 'meta') + ) + ).toEqual(valueMeta); + + expect( + deserialize( + fixture.wrapper + .querySelector('.ct-series-b') + ?.getAttributeNS(namespaces.ct, 'meta') + ) + ).toEqual(seriesMeta); + + expect( + deserialize( + fixture.wrapper + .querySelectorAll('.ct-series-b .ct-point')[2] + .getAttributeNS(namespaces.ct, 'meta') + ) + ).toEqual(valueMeta); + }); + }); + + describe('Line charts with holes', () => { + it('should render correctly with Interpolation.none and holes everywhere', async () => { + data = { + labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], + series: [ + [ + NaN, + 15, + 0, + null, + 2, + 3, + 4, + undefined, + { value: 1, meta: 'meta data' }, + null + ] + ] + }; + options = { + lineSmooth: false + }; + + await createChart(); + + chart.on('draw', context => { + if (context.type === 'line') { + expect( + context.path.pathElements.map(pathElement => { + return { + command: pathElement.command, + data: pathElement.data + }; + }) + ).toEqual([ + { + command: 'M', + data: { + valueIndex: 1, + value: { x: undefined, y: 15 }, + meta: undefined + } + }, + { + command: 'L', + data: { + valueIndex: 2, + value: { x: undefined, y: 0 }, + meta: undefined + } + }, + { + command: 'M', + data: { + valueIndex: 4, + value: { x: undefined, y: 2 }, + meta: undefined + } + }, + { + command: 'L', + data: { + valueIndex: 5, + value: { x: undefined, y: 3 }, + meta: undefined + } + }, + { + command: 'L', + data: { + valueIndex: 6, + value: { x: undefined, y: 4 }, + meta: undefined + } + }, + { + command: 'M', + data: { + valueIndex: 8, + value: { x: undefined, y: 1 }, + meta: 'meta data' + } + } + ]); + } + }); + }); + + it('should render correctly with Interpolation.cardinal and holes everywhere', async () => { + data = { + labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], + series: [ + [ + NaN, + 15, + 0, + null, + 2, + 3, + 4, + undefined, + { value: 1, meta: 'meta data' }, + null + ] + ] + }; + options = { + lineSmooth: true + }; + + await createChart(); + + chart.on('draw', context => { + if (context.type === 'line') { + expect( + context.path.pathElements.map(pathElement => { + return { + command: pathElement.command, + data: pathElement.data + }; + }) + ).toEqual([ + { + command: 'M', + data: { + valueIndex: 1, + value: { x: undefined, y: 15 }, + meta: undefined + } + }, + // Cardinal should create Line path segment if only one connection + { + command: 'L', + data: { + valueIndex: 2, + value: { x: undefined, y: 0 }, + meta: undefined + } + }, + { + command: 'M', + data: { + valueIndex: 4, + value: { x: undefined, y: 2 }, + meta: undefined + } + }, + // Cardinal should create Curve path segment for 2 or more connections + { + command: 'C', + data: { + valueIndex: 5, + value: { x: undefined, y: 3 }, + meta: undefined + } + }, + { + command: 'C', + data: { + valueIndex: 6, + value: { x: undefined, y: 4 }, + meta: undefined + } + }, + { + command: 'M', + data: { + valueIndex: 8, + value: { x: undefined, y: 1 }, + meta: 'meta data' + } + } + ]); + } + }); + }); + + it('should render correctly with Interpolation.monotoneCubic and holes everywhere', async () => { + data = { + labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], + series: [ + [ + NaN, + 15, + 0, + null, + 2, + 3, + 4, + undefined, + { value: 1, meta: 'meta data' }, + null + ] + ] + }; + options = { + lineSmooth: Interpolation.monotoneCubic() + }; + + await createChart(); + + chart.on('draw', context => { + if (context.type === 'line') { + expect( + context.path.pathElements.map(pathElement => { + return { + command: pathElement.command, + data: pathElement.data + }; + }) + ).toEqual([ + { + command: 'M', + data: { + valueIndex: 1, + value: { x: undefined, y: 15 }, + meta: undefined + } + }, + // Monotone cubic should create Line path segment if only one connection + { + command: 'L', + data: { + valueIndex: 2, + value: { x: undefined, y: 0 }, + meta: undefined + } + }, + { + command: 'M', + data: { + valueIndex: 4, + value: { x: undefined, y: 2 }, + meta: undefined + } + }, + // Monotone cubic should create Curve path segment for 2 or more connections + { + command: 'C', + data: { + valueIndex: 5, + value: { x: undefined, y: 3 }, + meta: undefined + } + }, + { + command: 'C', + data: { + valueIndex: 6, + value: { x: undefined, y: 4 }, + meta: undefined + } + }, + { + command: 'M', + data: { + valueIndex: 8, + value: { x: undefined, y: 1 }, + meta: 'meta data' + } + } + ]); + } + }); + }); + + it('should render correctly with Interpolation.simple and holes everywhere', async () => { + data = { + labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], + series: [ + [ + NaN, + 15, + 0, + null, + 2, + 3, + 4, + undefined, + { value: 1, meta: 'meta data' }, + null + ] + ] + }; + options = { + lineSmooth: Interpolation.simple() + }; + + await createChart(); + + chart.on('draw', context => { + if (context.type === 'line') { + expect( + context.path.pathElements.map(pathElement => { + return { + command: pathElement.command, + data: pathElement.data + }; + }) + ).toEqual([ + { + command: 'M', + data: { + valueIndex: 1, + value: { x: undefined, y: 15 }, + meta: undefined + } + }, + { + command: 'C', + data: { + valueIndex: 2, + value: { x: undefined, y: 0 }, + meta: undefined + } + }, + { + command: 'M', + data: { + valueIndex: 4, + value: { x: undefined, y: 2 }, + meta: undefined + } + }, + { + command: 'C', + data: { + valueIndex: 5, + value: { x: undefined, y: 3 }, + meta: undefined + } + }, + { + command: 'C', + data: { + valueIndex: 6, + value: { x: undefined, y: 4 }, + meta: undefined + } + }, + { + command: 'M', + data: { + valueIndex: 8, + value: { x: undefined, y: 1 }, + meta: 'meta data' + } + } + ]); + } + }); + }); + + it('should render correctly with postponed Interpolation.step and holes everywhere', async () => { + data = { + labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], + series: [ + [ + NaN, + 15, + 0, + null, + 2, + 3, + 4, + undefined, + { value: 1, meta: 'meta data' }, + null + ] + ] + }; + options = { + lineSmooth: Interpolation.step() + }; + + await createChart(); + + chart.on('draw', context => { + if (context.type === 'line') { + expect( + context.path.pathElements.map(pathElement => { + return { + command: pathElement.command, + data: pathElement.data + }; + }) + ).toEqual([ + { + command: 'M', + data: { + valueIndex: 1, + value: { x: undefined, y: 15 }, + meta: undefined + } + }, + { + command: 'L', + data: { + valueIndex: 1, + value: { x: undefined, y: 15 }, + meta: undefined + } + }, + { + command: 'L', + data: { + valueIndex: 2, + value: { x: undefined, y: 0 }, + meta: undefined + } + }, + { + command: 'M', + data: { + valueIndex: 4, + value: { x: undefined, y: 2 }, + meta: undefined + } + }, + { + command: 'L', + data: { + valueIndex: 4, + value: { x: undefined, y: 2 }, + meta: undefined + } + }, + { + command: 'L', + data: { + valueIndex: 5, + value: { x: undefined, y: 3 }, + meta: undefined + } + }, + { + command: 'L', + data: { + valueIndex: 5, + value: { x: undefined, y: 3 }, + meta: undefined + } + }, + { + command: 'L', + data: { + valueIndex: 6, + value: { x: undefined, y: 4 }, + meta: undefined + } + }, + { + command: 'M', + data: { + valueIndex: 8, + value: { x: undefined, y: 1 }, + meta: 'meta data' + } + } + ]); + } + }); + }); + + it('should render correctly with preponed Interpolation.step and holes everywhere', async () => { + data = { + labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], + series: [ + [ + NaN, + 15, + 0, + null, + 2, + 3, + 4, + undefined, + { value: 1, meta: 'meta data' }, + null + ] + ] + }; + options = { + lineSmooth: Interpolation.step({ + postpone: false + }) + }; + + await createChart(); + + chart.on('draw', context => { + if (context.type === 'line') { + expect( + context.path.pathElements.map(pathElement => { + return { + command: pathElement.command, + data: pathElement.data + }; + }) + ).toEqual([ + { + command: 'M', + data: { + valueIndex: 1, + value: { x: undefined, y: 15 }, + meta: undefined + } + }, + { + command: 'L', + data: { + valueIndex: 2, + value: { x: undefined, y: 0 }, + meta: undefined + } + }, + { + command: 'L', + data: { + valueIndex: 2, + value: { x: undefined, y: 0 }, + meta: undefined + } + }, + { + command: 'M', + data: { + valueIndex: 4, + value: { x: undefined, y: 2 }, + meta: undefined + } + }, + { + command: 'L', + data: { + valueIndex: 5, + value: { x: undefined, y: 3 }, + meta: undefined + } + }, + { + command: 'L', + data: { + valueIndex: 5, + value: { x: undefined, y: 3 }, + meta: undefined + } + }, + { + command: 'L', + data: { + valueIndex: 6, + value: { x: undefined, y: 4 }, + meta: undefined + } + }, + { + command: 'L', + data: { + valueIndex: 6, + value: { x: undefined, y: 4 }, + meta: undefined + } + }, + { + command: 'M', + data: { + valueIndex: 8, + value: { x: undefined, y: 1 }, + meta: 'meta data' + } + } + ]); + } + }); + }); + }); + + describe('Single value data tests', () => { + beforeEach(() => { + data = { + labels: [1], + series: [[1]] + }; + }); + + it('should render without NaN values and points', async () => { + await createChart(); + + expect(document.querySelector('.ct-line')).toHaveAttribute( + 'd', + 'M50,15' + ); + expect(document.querySelector('.ct-point')).toHaveAttribute('x1', '50'); + expect(document.querySelector('.ct-point')).toHaveAttribute( + 'x2', + '50.01' + ); + }); + }); + + describe('Empty data tests', () => { + it('should render empty grid with no data', async () => { + await createChart(); + // Find at least one vertical grid line + expect( + document.querySelector('.ct-grids .ct-grid.ct-vertical') + ).toBeDefined(); + }); + + it('should render empty grid with only labels', async () => { + data = { + labels: [1, 2, 3, 4], + series: [] + }; + await createChart(); + + // Find at least one vertical grid line + expect( + document.querySelector('.ct-grids .ct-grid.ct-vertical') + ).toBeDefined(); + // Find exactly as many horizontal grid lines as labels were specified (Step Axis) + expect( + document.querySelectorAll('.ct-grids .ct-grid.ct-horizontal').length + ).toBe(data.labels?.length); + }); + + it('should generate labels and render empty grid with only series in data', async () => { + data = { + series: [ + [1, 2, 3, 4], + [2, 3, 4], + [3, 4] + ] + }; + await createChart(); + + // Find at least one vertical grid line + expect( + document.querySelector('.ct-grids .ct-grid.ct-vertical') + ).toBeDefined(); + // Should generate the labels using the largest series count + expect( + document.querySelectorAll('.ct-grids .ct-grid.ct-horizontal').length + ).toBe( + Math.max( + ...data.series.map(series => + Array.isArray(series) ? series.length : 0 + ) + ) + ); + }); + + it('should render empty grid with no data and specified high low', async () => { + data = { series: [] }; + options = { + width: 400, + height: 300, + high: 100, + low: -100 + }; + await createChart(); + + // Find first and last label + const labels = document.querySelectorAll( + '.ct-labels .ct-label.ct-vertical' + ); + const firstLabel = labels[0]; + const lastLabel = labels[labels.length - 1]; + + expect(firstLabel.textContent?.trim()).toBe('-100'); + expect(lastLabel.textContent?.trim()).toBe('100'); + }); + + it('should render empty grid with no data and reverseData option', async () => { + data = { series: [] }; + options = { + reverseData: true + }; + await createChart(); + + // Find at least one vertical grid line + expect( + document.querySelector('.ct-grids .ct-grid.ct-vertical') + ).toBeDefined(); + }); + }); + + describe('x1 and x2 attribute', () => { + it('should contain just a datapoint', async () => { + data = { + series: [[{ x: 1, y: 2 }]] + }; + options = { + fullWidth: true + }; + await createChart(); + + expect( + document.querySelector('.ct-point')?.getAttribute('x1') + ).not.toBe('NaN'); + expect( + document.querySelector('.ct-point')?.getAttribute('x2') + ).not.toBe('NaN'); + }); + }); + }); +}); diff --git a/src/charts/LineChart/LineChart.stories.ts b/src/charts/LineChart/LineChart.stories.ts new file mode 100644 index 000000000..90cf0386c --- /dev/null +++ b/src/charts/LineChart/LineChart.stories.ts @@ -0,0 +1,625 @@ +import 'chartist-dev/styles'; +import faker from 'faker'; +import { + LineChart, + AutoScaleAxis, + Interpolation, + Svg, + easings +} from 'chartist-dev'; + +export default { + title: 'LineChart', + argTypes: {} +}; + +export function Default() { + const root = document.createElement('div'); + + new LineChart( + root, + { + labels: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'], + series: [ + [12, 9, 7, 8, 5], + [2, 1, 3.5, 7, 3], + [1, 3, 4, 5, 6] + ] + }, + { + fullWidth: true, + chartPadding: { + right: 40 + } + } + ); + + return root; +} + +export function AutoScale() { + const root = document.createElement('div'); + + new LineChart( + root, + { + series: [ + [ + { x: 1, y: 1 }, + { x: 3, y: 5 } + ] + ] + }, + { + axisX: { + type: AutoScaleAxis, + onlyInteger: true + }, + axisY: { + type: AutoScaleAxis, + onlyInteger: true + } + } + ); + + return root; +} + +export function Labels() { + const root = document.createElement('div'); + + new LineChart( + root, + { + labels: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu'], + series: [[5, 2, 4, 2, 0]] + }, + {} + ); + + return root; +} + +export function MultiSeries() { + const root = document.createElement('div'); + + new LineChart( + root, + { + labels: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], + series: [ + [5, 2, 4, 2, 0], + [5, 2, 2, 0] + ] + }, + {} + ); + + return root; +} + +export function Holes() { + const root = document.createElement('div'); + + new LineChart( + root, + { + labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], + series: [ + [5, 5, 10, 8, 7, 5, 4, null, null, null, 10, 10, 7, 8, 6, 9], + [ + 10, + 15, + null, + 12, + null, + 10, + 12, + 15, + null, + null, + 12, + null, + 14, + null, + null, + null + ], + [null, null, null, null, 3, 4, 1, 3, 4, 6, 7, 9, 5, null, null, null], + [ + { x: 3, y: 3 }, + { x: 4, y: 3 }, + { x: 5, y: undefined }, + { x: 6, y: 4 }, + { x: 7, y: null }, + { x: 8, y: 4 }, + { x: 9, y: 4 } + ] + ] + }, + { + fullWidth: true, + chartPadding: { + right: 10 + }, + low: 0 + } + ); + + return root; +} + +export function FilledHoles() { + const root = document.createElement('div'); + + new LineChart( + root, + { + labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], + series: [ + [5, 5, 10, 8, 7, 5, 4, null, null, null, 10, 10, 7, 8, 6, 9], + [ + 10, + 15, + null, + 12, + null, + 10, + 12, + 15, + null, + null, + 12, + null, + 14, + null, + null, + null + ], + [null, null, null, null, 3, 4, 1, 3, 4, 6, 7, 9, 5, null, null, null], + [ + { x: 3, y: 3 }, + { x: 4, y: 3 }, + { x: 5, y: undefined }, + { x: 6, y: 4 }, + { x: 7, y: null }, + { x: 8, y: 4 }, + { x: 9, y: 4 } + ] + ] + }, + { + fullWidth: true, + chartPadding: { + right: 10 + }, + lineSmooth: Interpolation.cardinal({ + fillHoles: true + }), + low: 0 + } + ); + + return root; +} + +export function OnlyWholeNumbers() { + const root = document.createElement('div'); + + new LineChart( + root, + { + labels: [1, 2, 3, 4, 5, 6, 7, 8], + series: [ + [1, 2, 3, 1, -2, 0, 1, 0], + [-2, -1, -2, -1, -3, -1, -2, -1], + [0, 0, 0, 1, 2, 3, 2, 1], + [3, 2, 1, 0.5, 1, 0, -1, -3] + ] + }, + { + high: 3, + low: -3, + fullWidth: true, + // As this is axis specific we need to tell Chartist to use whole numbers only on the concerned axis + axisY: { + onlyInteger: true, + offset: 20 + } + } + ); + + return root; +} + +export function NoInterpolationWithHoles() { + const root = document.createElement('div'); + + new LineChart( + root, + { + labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], + series: [[NaN, 15, 0, null, 2, 3, 4, undefined, 1, null]] + }, + { + lineSmooth: false + } + ); + + return root; +} + +export function CardinalInterpolationWithHoles() { + const root = document.createElement('div'); + + new LineChart( + root, + { + labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], + series: [[NaN, 15, 0, null, 2, 3, 4, undefined, 1, null]] + }, + { + lineSmooth: true + } + ); + + return root; +} + +export function MonotoneCubicInterpolationWithHoles() { + const root = document.createElement('div'); + + new LineChart( + root, + { + labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], + series: [[NaN, 15, 0, null, 2, 3, 4, undefined, 1, null]] + }, + { + lineSmooth: Interpolation.monotoneCubic() + } + ); + + return root; +} + +export function SimpleInterpolationWithHoles() { + const root = document.createElement('div'); + + new LineChart( + root, + { + labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], + series: [[NaN, 15, 0, null, 2, 3, 4, undefined, 1, null]] + }, + { + lineSmooth: Interpolation.simple() + } + ); + + return root; +} + +export function StepInterpolationWithHoles() { + const root = document.createElement('div'); + + new LineChart( + root, + { + labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], + series: [[NaN, 15, 0, null, 2, 3, 4, undefined, 1, null]] + }, + { + lineSmooth: Interpolation.step() + } + ); + + return root; +} + +export function StepNoPostponeInterpolationWithHoles() { + const root = document.createElement('div'); + + new LineChart( + root, + { + labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], + series: [[NaN, 15, 0, null, 2, 3, 4, undefined, 1, null]] + }, + { + lineSmooth: Interpolation.step({ + postpone: false + }) + } + ); + + return root; +} + +export function SeriesOverrides() { + const root = document.createElement('div'); + + new LineChart( + root, + { + labels: ['1', '2', '3', '4', '5', '6', '7', '8'], + // Naming the series with the series object array notation + series: [ + { + name: 'series-1', + data: [5, 2, -4, 2, 0, -2, 5, -3] + }, + { + name: 'series-2', + data: [4, 3, 5, 3, 1, 3, 6, 4] + }, + { + name: 'series-3', + data: [2, 4, 3, 1, 4, 5, 3, 2] + } + ] + }, + { + fullWidth: true, + // Within the series options you can use the series names + // to specify configuration that will only be used for the + // specific series. + series: { + 'series-1': { + lineSmooth: Interpolation.step() + }, + 'series-2': { + lineSmooth: Interpolation.simple(), + showArea: true + }, + 'series-3': { + showPoint: false + } + } + }, + [ + // You can even use responsive configuration overrides to + // customize your series configuration even further! + [ + 'screen and (max-width: 320px)', + { + series: { + 'series-1': { + lineSmooth: Interpolation.none() + }, + 'series-2': { + lineSmooth: Interpolation.none(), + showArea: false + }, + 'series-3': { + lineSmooth: Interpolation.none(), + showPoint: true + } + } + } + ] + ] + ); + + return root; +} + +export function ReverseData() { + const root = document.createElement('div'); + + new LineChart( + root, + { + series: [ + [ + { x: 1, y: 1 }, + { x: 3, y: 5 } + ] + ] + }, + { + reverseData: true + } + ); + + return root; +} + +export function FullWidth() { + const root = document.createElement('div'); + + new LineChart( + root, + { + series: [ + [ + { x: 1, y: 1 }, + { x: 3, y: 5 } + ] + ] + }, + { + fullWidth: true + } + ); + + return root; +} + +export function Scatter() { + const root = document.createElement('div'); + const data = Array.from({ length: 52 }).reduce<{ + labels: number[]; + series: number[][]; + }>( + (data, _, index) => { + data.labels.push(index + 1); + data.series.forEach(series => { + series.push(faker.datatype.number({ min: 0, max: 100 })); + }); + + return data; + }, + { + labels: [], + series: Array.from({ length: 4 }, () => []) + } + ); + + new LineChart( + root, + data, + { + showLine: false, + axisX: { + labelInterpolationFnc(value, index) { + return index % 13 === 0 ? 'W' + value : null; + } + } + }, + [ + [ + 'screen and (min-width: 640px)', + { + axisX: { + labelInterpolationFnc(value, index) { + return index % 4 === 0 ? 'W' + value : null; + } + } + } + ] + ] + ); + + return root; +} + +export function Area() { + const root = document.createElement('div'); + + new LineChart( + root, + { + labels: [1, 2, 3, 4, 5, 6, 7, 8], + series: [[5, 9, 7, 8, 5, 3, 5, 4]] + }, + { + low: 0, + showArea: true + } + ); + + return root; +} + +export function BiPolarArea() { + const root = document.createElement('div'); + + new LineChart( + root, + { + labels: [1, 2, 3, 4, 5, 6, 7, 8], + series: [ + [1, 2, 3, 1, -2, 0, 1, 0], + [-2, -1, -2, -1, -2.5, -1, -2, -1], + [0, 0, 0, 1, 2, 2.5, 2, 1], + [2.5, 2, 1, 0.5, 1, 0.5, -1, -2.5] + ] + }, + { + high: 3, + low: -3, + showArea: true, + showLine: false, + showPoint: false, + fullWidth: true, + axisX: { + showLabel: false, + showGrid: false + } + } + ); + + return root; +} + +export function CustomPoints() { + const root = document.createElement('div'); + + new LineChart(root, { + labels: [1, 2, 3, 4, 5], + series: [[12, 9, 7, 8, 5]] + }).on('draw', data => { + // If the draw event was triggered from drawing a point on the line chart + if (data.type === 'point') { + // We are creating a new path SVG element that draws a triangle around the point coordinates + const triangle = new Svg( + 'path', + { + d: [ + 'M', + data.x, + data.y - 15, + 'L', + data.x - 15, + data.y + 8, + 'L', + data.x + 15, + data.y + 8, + 'z' + ].join(' '), + style: 'fill-opacity: 1' + }, + 'ct-area' + ); + + // With data.element we get the Chartist SVG wrapper and we can replace the original point drawn by Chartist with our newly created triangle + data.element.replace(triangle); + } + }); + + return root; +} + +export function PathAnimation() { + const root = document.createElement('div'); + + new LineChart( + root, + { + labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], + series: [ + [1, 5, 2, 5, 4, 3], + [2, 3, 4, 8, 1, 2], + [5, 4, 3, 2, 1, 0.5] + ] + }, + { + low: 0, + showArea: true, + showPoint: false, + fullWidth: true + } + ).on('draw', data => { + if ( + !process.env.STORYBOOK_STORYSHOTS && + (data.type === 'line' || data.type === 'area') + ) { + data.element.animate({ + d: { + begin: 2000 * data.index, + dur: 2000, + from: data.path + .clone() + .scale(1, 0) + .translate(0, data.chartRect.height()) + .stringify(), + to: data.path.clone().stringify(), + easing: easings.easeOutQuint + } + }); + } + }); + + return root; +} diff --git a/src/charts/LineChart/LineChart.ts b/src/charts/LineChart/LineChart.ts new file mode 100644 index 000000000..ef8d4301a --- /dev/null +++ b/src/charts/LineChart/LineChart.ts @@ -0,0 +1,559 @@ +import type { Axis } from '../../axes'; +import type { + LineChartData, + LineChartOptions, + LineChartOptionsWithDefaults, + LineChartCreatedEvent, + PointDrawEvent, + LineDrawEvent, + AreaDrawEvent, + LineChartEventsTypes +} from './LineChart.types'; +import type { SegmentData, Series, SeriesObject } from '../../core'; +import { + alphaNumerate, + normalizeData, + serialize, + getMetaData, + createSvg, + createChartRect, + createGridBackground +} from '../../core'; +import { isNumeric, noop, extend, safeHasProperty } from '../../utils'; +import { StepAxis, AutoScaleAxis, axisUnits } from '../../axes'; +import { monotoneCubic, none } from '../../interpolation'; +import { BaseChart } from './../BaseChart'; + +export function getSeriesOption< + T extends keyof Omit +>( + series: Series | SeriesObject, + options: LineChartOptionsWithDefaults, + key: T +) { + if ( + safeHasProperty(series, 'name') && + series.name && + options.series?.[series.name] + ) { + const seriesOptions = options?.series[series.name]; + const value = seriesOptions[key]; + const result = value === undefined ? options[key] : value; + + return result as LineChartOptionsWithDefaults[T]; + } else { + return options[key]; + } +} + +/** + * Default options in line charts. Expand the code view to see a detailed list of options with comments. + */ +const defaultOptions = { + // Options for X-Axis + axisX: { + // The offset of the labels to the chart area + offset: 30, + // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis. + position: 'end' as const, + // Allows you to correct label positioning on this axis by positive or negative x and y offset. + labelOffset: { + x: 0, + y: 0 + }, + // If labels should be shown or not + showLabel: true, + // If the axis grid should be drawn or not + showGrid: true, + // Interpolation function that allows you to intercept the value from the axis label + labelInterpolationFnc: noop, + // Set the axis type to be used to project values on this axis. If not defined, Chartist.StepAxis will be used for the X-Axis, where the ticks option will be set to the labels in the data and the stretch option will be set to the global fullWidth option. This type can be changed to any axis constructor available (e.g. Chartist.FixedScaleAxis), where all axis options should be present here. + type: undefined + }, + // Options for Y-Axis + axisY: { + // The offset of the labels to the chart area + offset: 40, + // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis. + position: 'start' as const, + // Allows you to correct label positioning on this axis by positive or negative x and y offset. + labelOffset: { + x: 0, + y: 0 + }, + // If labels should be shown or not + showLabel: true, + // If the axis grid should be drawn or not + showGrid: true, + // Interpolation function that allows you to intercept the value from the axis label + labelInterpolationFnc: noop, + // Set the axis type to be used to project values on this axis. If not defined, Chartist.AutoScaleAxis will be used for the Y-Axis, where the high and low options will be set to the global high and low options. This type can be changed to any axis constructor available (e.g. Chartist.FixedScaleAxis), where all axis options should be present here. + type: undefined, + // This value specifies the minimum height in pixel of the scale steps + scaleMinSpace: 20, + // Use only integer values (whole numbers) for the scale steps + onlyInteger: false + }, + // Specify a fixed width for the chart as a string (i.e. '100px' or '50%') + width: undefined, + // Specify a fixed height for the chart as a string (i.e. '100px' or '50%') + height: undefined, + // If the line should be drawn or not + showLine: true, + // If dots should be drawn or not + showPoint: true, + // If the line chart should draw an area + showArea: false, + // The base for the area chart that will be used to close the area shape (is normally 0) + areaBase: 0, + // Specify if the lines should be smoothed. This value can be true or false where true will result in smoothing using the default smoothing interpolation function Chartist.Interpolation.cardinal and false results in Chartist.Interpolation.none. You can also choose other smoothing / interpolation functions available in the Chartist.Interpolation module, or write your own interpolation function. Check the examples for a brief description. + lineSmooth: true, + // If the line chart should add a background fill to the .ct-grids group. + showGridBackground: false, + // Overriding the natural low of the chart allows you to zoom in or limit the charts lowest displayed value + low: undefined, + // Overriding the natural high of the chart allows you to zoom in or limit the charts highest displayed value + high: undefined, + // Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5} + chartPadding: { + top: 15, + right: 15, + bottom: 5, + left: 10 + }, + // When set to true, the last grid line on the x-axis is not drawn and the chart elements will expand to the full available width of the chart. For the last label to be drawn correctly you might need to add chart padding or offset the last label with a draw event handler. + fullWidth: false, + // If true the whole data is reversed including labels, the series order as well as the whole series data arrays. + reverseData: false, + // Override the class names that get used to generate the SVG structure of the chart + classNames: { + chart: 'ct-chart-line', + label: 'ct-label', + labelGroup: 'ct-labels', + series: 'ct-series', + line: 'ct-line', + point: 'ct-point', + area: 'ct-area', + grid: 'ct-grid', + gridGroup: 'ct-grids', + gridBackground: 'ct-grid-background', + vertical: 'ct-vertical', + horizontal: 'ct-horizontal', + start: 'ct-start', + end: 'ct-end' + } +}; + +export class LineChart extends BaseChart { + /** + * This method creates a new line chart. + * @param query A selector query string or directly a DOM element + * @param data The data object that needs to consist of a labels and a series array + * @param options The options object with options that override the default options. Check the examples for a detailed list. + * @param responsiveOptions Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]] + * @return An object which exposes the API for the created chart + * + * @example + * // Create a simple line chart + * const data = { + * // A labels array that can contain any sort of values + * labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'], + * // Our series array that contains series objects or in this case series data arrays + * series: [ + * [5, 2, 4, 2, 0] + * ] + * }; + * + * // As options we currently only set a static size of 300x200 px + * const options = { + * width: '300px', + * height: '200px' + * }; + * + * // In the global name space Chartist we call the Line function to initialize a line chart. As a first parameter we pass in a selector where we would like to get our chart created. Second parameter is the actual data object and as a third parameter we pass in our options + * new LineChart('.ct-chart', data, options); + * + * @example + * // Use specific interpolation function with configuration from the Chartist.Interpolation module + * + * const chart = new LineChart('.ct-chart', { + * labels: [1, 2, 3, 4, 5], + * series: [ + * [1, 1, 8, 1, 7] + * ] + * }, { + * lineSmooth: Chartist.Interpolation.cardinal({ + * tension: 0.2 + * }) + * }); + * + * @example + * // Create a line chart with responsive options + * + * const data = { + * // A labels array that can contain any sort of values + * labels: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'], + * // Our series array that contains series objects or in this case series data arrays + * series: [ + * [5, 2, 4, 2, 0] + * ] + * }; + * + * // In addition to the regular options we specify responsive option overrides that will override the default configutation based on the matching media queries. + * const responsiveOptions = [ + * ['screen and (min-width: 641px) and (max-width: 1024px)', { + * showPoint: false, + * axisX: { + * labelInterpolationFnc: function(value) { + * // Will return Mon, Tue, Wed etc. on medium screens + * return value.slice(0, 3); + * } + * } + * }], + * ['screen and (max-width: 640px)', { + * showLine: false, + * axisX: { + * labelInterpolationFnc: function(value) { + * // Will return M, T, W etc. on small screens + * return value[0]; + * } + * } + * }] + * ]; + * + * new LineChart('.ct-chart', data, null, responsiveOptions); + * + */ + constructor( + query: string | Element | null, + protected override data: LineChartData, + options?: LineChartOptions, + responsiveOptions?: [string, LineChartOptions][] + ) { + super( + query, + data, + defaultOptions, + extend({}, defaultOptions, options), + responsiveOptions + ); + } + + /** + * Creates a new chart + */ + createChart(options: LineChartOptionsWithDefaults) { + const { data } = this; + const normalizedData = normalizeData(data, options.reverseData, true); + + // Create new svg object + const svg = createSvg( + this.container, + options.width, + options.height, + options.classNames.chart + ); + + this.svg = svg; + + // Create groups for labels, grid and series + const gridGroup = svg.elem('g').addClass(options.classNames.gridGroup); + const seriesGroup = svg.elem('g'); + const labelGroup = svg.elem('g').addClass(options.classNames.labelGroup); + + const chartRect = createChartRect(svg, options); + let axisX: Axis; + let axisY: Axis; + + if (options.axisX.type === undefined) { + axisX = new StepAxis(axisUnits.x, normalizedData.series, chartRect, { + ...options.axisX, + ticks: normalizedData.labels, + stretch: options.fullWidth + }); + } else { + // eslint-disable-next-line new-cap + axisX = new options.axisX.type( + axisUnits.x, + normalizedData.series, + chartRect, + options.axisX + ); + } + + if (options.axisY.type === undefined) { + axisY = new AutoScaleAxis(axisUnits.y, normalizedData.series, chartRect, { + ...options.axisY, + high: isNumeric(options.high) ? options.high : options.axisY.high, + low: isNumeric(options.low) ? options.low : options.axisY.low + }); + } else { + // eslint-disable-next-line new-cap + axisY = new options.axisY.type( + axisUnits.y, + normalizedData.series, + chartRect, + options.axisY + ); + } + + axisX.createGridAndLabels( + gridGroup, + labelGroup, + options, + this.eventEmitter + ); + axisY.createGridAndLabels( + gridGroup, + labelGroup, + options, + this.eventEmitter + ); + + if (options.showGridBackground) { + createGridBackground( + gridGroup, + chartRect, + options.classNames.gridBackground, + this.eventEmitter + ); + } + + // Draw the series + data.series.forEach((series, seriesIndex) => { + const seriesElement = seriesGroup.elem('g'); + const seriesName = safeHasProperty(series, 'name') && series.name; + const seriesClassName = + safeHasProperty(series, 'className') && series.className; + const seriesMeta = safeHasProperty(series, 'meta') + ? series.meta + : undefined; + + // Write attributes to series group element. If series name or meta is undefined the attributes will not be written + if (seriesName) { + seriesElement.attr({ + 'ct:series-name': seriesName + }); + } + + if (seriesMeta) { + seriesElement.attr({ + 'ct:meta': serialize(seriesMeta) + }); + } + + // Use series class from series data or if not set generate one + seriesElement.addClass( + [ + options.classNames.series, + seriesClassName || + `${options.classNames.series}-${alphaNumerate(seriesIndex)}` + ].join(' ') + ); + + const pathCoordinates: number[] = []; + const pathData: SegmentData[] = []; + + normalizedData.series[seriesIndex].forEach((value, valueIndex) => { + const p = { + x: + chartRect.x1 + + axisX.projectValue( + value, + valueIndex, + normalizedData.series[seriesIndex] + ), + y: + chartRect.y1 - + axisY.projectValue( + value, + valueIndex, + normalizedData.series[seriesIndex] + ) + }; + pathCoordinates.push(p.x, p.y); + pathData.push({ + value, + valueIndex, + meta: getMetaData(series, valueIndex) + }); + }); + + const seriesOptions = { + lineSmooth: getSeriesOption(series, options, 'lineSmooth'), + showPoint: getSeriesOption(series, options, 'showPoint'), + showLine: getSeriesOption(series, options, 'showLine'), + showArea: getSeriesOption(series, options, 'showArea'), + areaBase: getSeriesOption(series, options, 'areaBase') + }; + + let smoothing; + if (typeof seriesOptions.lineSmooth === 'function') { + smoothing = seriesOptions.lineSmooth; + } else { + smoothing = seriesOptions.lineSmooth ? monotoneCubic() : none(); + } + + // Interpolating path where pathData will be used to annotate each path element so we can trace back the original + // index, value and meta data + const path = smoothing(pathCoordinates, pathData); + + // If we should show points we need to create them now to avoid secondary loop + // Points are drawn from the pathElements returned by the interpolation function + // Small offset for Firefox to render squares correctly + if (seriesOptions.showPoint) { + path.pathElements.forEach(pathElement => { + const { data: pathElementData } = pathElement; + const point = seriesElement.elem( + 'line', + { + x1: pathElement.x, + y1: pathElement.y, + x2: pathElement.x + 0.01, + y2: pathElement.y + }, + options.classNames.point + ); + + if (pathElementData) { + let x: number | undefined; + let y: number | undefined; + + if (safeHasProperty(pathElementData.value, 'x')) { + x = pathElementData.value.x; + } + + if (safeHasProperty(pathElementData.value, 'y')) { + y = pathElementData.value.y; + } + + point.attr({ + 'ct:value': [x, y].filter(isNumeric).join(','), + 'ct:meta': serialize(pathElementData.meta) + }); + } + + this.eventEmitter.emit('draw', { + type: 'point', + value: pathElementData?.value, + index: pathElementData?.valueIndex || 0, + meta: pathElementData?.meta, + series, + seriesIndex, + axisX, + axisY, + group: seriesElement, + element: point, + x: pathElement.x, + y: pathElement.y, + chartRect + }); + }); + } + + if (seriesOptions.showLine) { + const line = seriesElement.elem( + 'path', + { + d: path.stringify() + }, + options.classNames.line, + true + ); + + this.eventEmitter.emit('draw', { + type: 'line', + values: normalizedData.series[seriesIndex], + path: path.clone(), + chartRect, + // TODO: Remove redundant + index: seriesIndex, + series, + seriesIndex, + meta: seriesMeta, + axisX, + axisY, + group: seriesElement, + element: line + }); + } + + // Area currently only works with axes that support a range! + if (seriesOptions.showArea && axisY.range) { + // If areaBase is outside the chart area (< min or > max) we need to set it respectively so that + // the area is not drawn outside the chart area. + const areaBase = Math.max( + Math.min(seriesOptions.areaBase, axisY.range.max), + axisY.range.min + ); + + // We project the areaBase value into screen coordinates + const areaBaseProjected = chartRect.y1 - axisY.projectValue(areaBase); + + // In order to form the area we'll first split the path by move commands so we can chunk it up into segments + path + .splitByCommand('M') + // We filter only "solid" segments that contain more than one point. Otherwise there's no need for an area + .filter(pathSegment => pathSegment.pathElements.length > 1) + .map(solidPathSegments => { + // Receiving the filtered solid path segments we can now convert those segments into fill areas + const firstElement = solidPathSegments.pathElements[0]; + const lastElement = + solidPathSegments.pathElements[ + solidPathSegments.pathElements.length - 1 + ]; + + // Cloning the solid path segment with closing option and removing the first move command from the clone + // We then insert a new move that should start at the area base and draw a straight line up or down + // at the end of the path we add an additional straight line to the projected area base value + // As the closing option is set our path will be automatically closed + return solidPathSegments + .clone(true) + .position(0) + .remove(1) + .move(firstElement.x, areaBaseProjected) + .line(firstElement.x, firstElement.y) + .position(solidPathSegments.pathElements.length + 1) + .line(lastElement.x, areaBaseProjected); + }) + .forEach(areaPath => { + // For each of our newly created area paths, we'll now create path elements by stringifying our path objects + // and adding the created DOM elements to the correct series group + const area = seriesElement.elem( + 'path', + { + d: areaPath.stringify() + }, + options.classNames.area, + true + ); + + // Emit an event for each area that was drawn + this.eventEmitter.emit('draw', { + type: 'area', + values: normalizedData.series[seriesIndex], + path: areaPath.clone(), + series, + seriesIndex, + axisX, + axisY, + chartRect, + // TODO: Remove redundant + index: seriesIndex, + group: seriesElement, + element: area, + meta: seriesMeta + }); + }); + } + }); + + this.eventEmitter.emit('created', { + chartRect, + axisX, + axisY, + svg, + options + }); + } +} diff --git a/src/charts/LineChart/LineChart.types.ts b/src/charts/LineChart/LineChart.types.ts new file mode 100644 index 000000000..a3eccf449 --- /dev/null +++ b/src/charts/LineChart/LineChart.types.ts @@ -0,0 +1,115 @@ +import type { + Options, + AxisOptions, + Data, + Series, + SeriesObject, + SegmentData, + CreatedEvent, + DrawEvent, + NormalizedSeriesValue, + NormalizedSeries, + AxesDrawEvent +} from '../../core'; +import type { SvgPath } from '../../svg'; +import type { RequiredKeys } from '../../utils'; +import type { BaseChartEventsTypes } from '../types'; + +export type LineInterpolation = ( + pathCoordinates: number[], + valueData: SegmentData[] +) => SvgPath; + +export type LineChartData = Data<(Series | SeriesObject)[]>; + +export interface LineChartOptions< + TXAxisOptions = AxisOptions, + TYAxisOptions = TXAxisOptions +> extends Options { + classNames?: { + chart?: string; + label?: string; + labelGroup?: string; + series?: string; + line?: string; + point?: string; + area?: string; + grid?: string; + gridGroup?: string; + gridBackground?: string; + vertical?: string; + horizontal?: string; + start?: string; + end?: string; + }; + showLine?: boolean; + showPoint?: boolean; + showArea?: boolean; + areaBase?: number; + lineSmooth?: boolean | LineInterpolation; + showGridBackground?: boolean; + fullWidth?: boolean; + reverseData?: boolean; + series?: Record< + string, + Omit, 'series'> + >; +} + +export type LineChartOptionsWithDefaults = RequiredKeys< + LineChartOptions< + RequiredKeys< + AxisOptions, + | 'offset' + | 'position' + | 'labelOffset' + | 'showLabel' + | 'showGrid' + | 'labelInterpolationFnc' + >, + RequiredKeys< + AxisOptions, + | 'offset' + | 'position' + | 'labelOffset' + | 'showLabel' + | 'showGrid' + | 'labelInterpolationFnc' + | 'scaleMinSpace' + > + >, + | 'showLine' + | 'showPoint' + | 'areaBase' + | 'lineSmooth' + | 'chartPadding' + | 'axisX' + | 'axisY', + 'classNames' +>; + +export type LineChartCreatedEvent = CreatedEvent; + +export interface PointDrawEvent extends DrawEvent { + type: 'point'; + value: NormalizedSeriesValue; + x: number; + y: number; +} + +export interface LineDrawEvent extends DrawEvent { + type: 'line'; + values: NormalizedSeries; + path: SvgPath; +} + +export interface AreaDrawEvent extends DrawEvent { + type: 'area'; + values: NormalizedSeries; + path: SvgPath; +} + +export type LineChartEventsTypes = BaseChartEventsTypes< + LineChartCreatedEvent, + AxesDrawEvent | PointDrawEvent | LineDrawEvent | AreaDrawEvent +>; diff --git a/src/charts/LineChart/index.ts b/src/charts/LineChart/index.ts new file mode 100644 index 000000000..ec51482d2 --- /dev/null +++ b/src/charts/LineChart/index.ts @@ -0,0 +1,2 @@ +export * from './LineChart'; +export * from './LineChart.types'; diff --git a/src/charts/PieChart/PieChart.spec.ts b/src/charts/PieChart/PieChart.spec.ts new file mode 100644 index 000000000..8ec742bc5 --- /dev/null +++ b/src/charts/PieChart/PieChart.spec.ts @@ -0,0 +1,472 @@ +import { namespaces, deserialize } from '../../core'; +import { PieChartOptions, PieChartData, PieChart } from '.'; +import { + Fixture, + addMockWrapper, + destroyMockDom, + mockDom +} from '../../../test/mock/dom'; + +describe('Charts', () => { + describe('PieChart', () => { + let fixture: Fixture; + let chart: PieChart; + let options: PieChartOptions; + let data: PieChartData; + + function createChart() { + return new Promise(resolve => { + fixture = addMockWrapper( + '
' + ); + const { wrapper } = fixture; + chart = new PieChart( + wrapper.querySelector('.ct-chart'), + data, + options + ).on('created', () => { + resolve(); + chart.off('created'); + }); + }); + } + + beforeEach(() => { + mockDom(); + }); + afterEach(() => { + destroyMockDom(); + data = { series: [] }; + options = {}; + }); + + describe('Meta data tests', () => { + it('should render meta data correctly on slice with mixed value array', async () => { + const fixture = addMockWrapper( + '
' + ); + const meta = { + test: 'Serialized Test' + }; + + const data = { + labels: ['A', 'B', 'C'], + series: [ + 5, + { + value: 8, + meta: meta + }, + 1 + ] + }; + + const chartContainer = fixture.wrapper.querySelector('.ct-chart'); + const chart = new PieChart(chartContainer, data); + + chart.on('created', () => { + const metaAttribute = chartContainer + ?.querySelectorAll('.ct-slice-pie')[1] + .getAttributeNS(namespaces.ct, 'meta'); + expect(deserialize(metaAttribute)).toEqual(meta); + chart.off('created'); + }); + }); + }); + + describe('Simple Pie Chart', () => { + const num = '\\d+(\\.\\d*)?'; + const sum = (a: number, b: number) => a + b; + + beforeEach(() => { + const series = [5, 3, 4]; + + data = { + series + }; + options = { + width: 100, + height: 100, + chartPadding: 10, + labelInterpolationFnc: value => + `${Math.round((Number(value) / series.reduce(sum)) * 100)}%` + }; + }); + + it('should render three slices', async () => { + await createChart(); + + expect(fixture.wrapper.querySelectorAll('.ct-slice-pie').length).toBe( + 3 + ); + }); + + it('should set value attribute', async () => { + await createChart(); + + const slices = fixture.wrapper.querySelectorAll('.ct-slice-pie'); + expect(slices[0].getAttributeNS(namespaces.ct, 'value')).toBe('5'); + expect(slices[1].getAttributeNS(namespaces.ct, 'value')).toBe('3'); + expect(slices[2].getAttributeNS(namespaces.ct, 'value')).toBe('4'); + }); + + it('should create slice path', async () => { + await createChart(); + + Array.from(fixture.wrapper.querySelectorAll('.ct-slice-pie')).forEach( + element => { + const pattern = new RegExp( + `M${num},${num}A40,40,0,0,0,${num},${num}L50,50Z$` + ); + const path = element.getAttribute('d'); + expect(path).toMatch(pattern); + } + ); + }); + + it('should add labels', async () => { + await createChart(); + + const labels = fixture.wrapper.querySelectorAll('.ct-label'); + expect(labels[0]).toHaveTextContent('42%'); + expect(labels[1]).toHaveTextContent('25%'); + expect(labels[2]).toHaveTextContent('33%'); + }); + + it('should overlap slices', async () => { + data = { + series: [1, 1] + }; + await createChart(); + + const [slice1, slice2] = Array.from( + fixture.wrapper.querySelectorAll('.ct-slice-pie') + ); + + expect(slice1).toHaveAttribute( + 'd', + expect.stringMatching(/^M50,90A40,40,0,0,0,50,10L50,50Z/) + ); + expect(slice2).toHaveAttribute( + 'd', + expect.stringMatching(/^M50,10A40,40,0,0,0,50.\d+,90L50,50Z/) + ); + }); + + it('should set large arc sweep flag', async () => { + data = { + series: [1, 2] + }; + await createChart(); + + const slice = fixture.wrapper.querySelectorAll('.ct-slice-pie')[1]; + expect(slice).toHaveAttribute( + 'd', + expect.stringMatching(/^M50,10A40,40,0,1,0/) + ); + }); + + it('should draw complete circle with gap', async () => { + data = { + series: [1] + }; + await createChart(); + + const slice = fixture.wrapper.querySelectorAll('.ct-slice-pie')[0]; + expect(slice).toHaveAttribute( + 'd', + expect.stringMatching(/^M49.9\d+,10A40,40,0,1,0,50,10L50,50Z/) + ); + }); + + it('should draw complete circle with startAngle', async () => { + data.series = [100]; + options.startAngle = 90; + await createChart(); + + const slice = fixture.wrapper.querySelectorAll('.ct-slice-pie')[0]; + expect(slice).toHaveAttribute( + 'd', + expect.stringMatching(/^M90,49.9\d+A40,40,0,1,0,90,50L50,50Z/) + ); + }); + + it('should draw complete circle if values are 0', async () => { + data = { + series: [0, 1, 0] + }; + await createChart(); + + const slice = fixture.wrapper.querySelectorAll('.ct-slice-pie')[1]; + expect(slice).toHaveAttribute( + 'd', + expect.stringMatching(/^M49.9\d+,10A40,40,0,1,0,50,10L50,50Z/) + ); + }); + }); + + describe('Pie with small slices', () => { + beforeEach(() => { + data = { + series: [0.001, 2] + }; + options = { + width: 100, + height: 100, + chartPadding: 0 + }; + }); + + it('should render correctly with very small slices', async () => { + await createChart(); + + const [slice1, slice2] = Array.from( + fixture.wrapper.querySelectorAll('.ct-slice-pie') + ); + + expect(slice1).toHaveAttribute( + 'd', + expect.stringMatching(/^M50.1\d+,0A50,50,0,0,0,50,0/) + ); + expect(slice2).toHaveAttribute( + 'd', + expect.stringMatching(/^M49.9\d*,0A50,50,0,1,0,50,0/) + ); + }); + + it('should render correctly with very small slices on startAngle', async () => { + options.startAngle = 90; + await createChart(); + + const [slice1, slice2] = Array.from( + fixture.wrapper.querySelectorAll('.ct-slice-pie') + ); + + expect(slice1).toHaveAttribute( + 'd', + expect.stringMatching(/^M100,50.1\d*A50,50,0,0,0,100,50/) + ); + expect(slice2).toHaveAttribute( + 'd', + expect.stringMatching(/^M100,49.97\d*A50,50,0,1,0,100,49.98\d*/) + ); + }); + + it('should render correctly with very small slices', async () => { + options.donut = true; + await createChart(); + + const [slice1, slice2] = Array.from( + fixture.wrapper.querySelectorAll('.ct-slice-donut') + ); + + expect(slice1).toHaveAttribute( + 'd', + expect.stringMatching(/^M50.\d+,30A20,20,0,0,0,50,30/) + ); + expect(slice2).toHaveAttribute( + 'd', + expect.stringMatching(/^M49.9\d*,30A20,20,0,1,0,50,30/) + ); + }); + }); + + describe('Pie with empty values', () => { + beforeEach(() => { + data = { + series: [1, 2, 0, 4] + }; + options = { + width: 100, + height: 100, + ignoreEmptyValues: true + }; + }); + + it('should not render empty slices', async () => { + await createChart(); + + const slices = fixture.wrapper.querySelectorAll('.ct-slice-pie'); + + expect(slices.length).toBe(3); + expect(slices[0].getAttributeNS(namespaces.ct, 'value')).toBe('1'); + expect(slices[1].getAttributeNS(namespaces.ct, 'value')).toBe('2'); + expect(slices[2].getAttributeNS(namespaces.ct, 'value')).toBe('4'); + }); + + it('should render without NaN values and points', async () => { + data = { + series: [0, 0, 0] + }; + options = { + width: 400, + height: 400 + }; + await createChart(); + + const slices = fixture.wrapper.querySelectorAll('.ct-slice-pie'); + + expect(slices.length).toBe(3); + + expect(slices[0].getAttributeNS(namespaces.ct, 'value')).toBe('0'); + expect(slices[1].getAttributeNS(namespaces.ct, 'value')).toBe('0'); + expect(slices[2].getAttributeNS(namespaces.ct, 'value')).toBe('0'); + + expect(slices[0]).toHaveAttribute( + 'd', + 'M200,5A195,195,0,0,0,200,5L200,200Z' + ); + expect(slices[1]).toHaveAttribute( + 'd', + 'M200,5A195,195,0,0,0,200,5L200,200Z' + ); + expect(slices[2]).toHaveAttribute( + 'd', + 'M200,5A195,195,0,0,0,200,5L200,200Z' + ); + }); + + it('should render empty slices', async () => { + data = { + series: [1, 2, 0, 4] + }; + options = { + width: 100, + height: 100, + ignoreEmptyValues: false + }; + await createChart(); + + const slices = fixture.wrapper.querySelectorAll('.ct-slice-pie'); + + expect(slices.length).toBe(4); + + expect(slices[0].getAttributeNS(namespaces.ct, 'value')).toBe('1'); + expect(slices[1].getAttributeNS(namespaces.ct, 'value')).toBe('2'); + expect(slices[2].getAttributeNS(namespaces.ct, 'value')).toBe('0'); + expect(slices[3].getAttributeNS(namespaces.ct, 'value')).toBe('4'); + }); + }); + + describe('Gauge Chart', () => { + beforeEach(() => { + data = { + series: [20, 10, 30, 40] + }; + options = { + chartPadding: 50, + height: 500, + width: 500, + donut: true, + donutWidth: 60, + startAngle: 270, + total: 200, + showLabel: false + }; + }); + + it('should render four strokes', async () => { + await createChart(); + + expect(fixture.wrapper.querySelectorAll('.ct-slice-donut').length).toBe( + 4 + ); + }); + + it('should set value attribute', async () => { + await createChart(); + + const slices = fixture.wrapper.querySelectorAll('.ct-slice-donut'); + expect(slices[0].getAttributeNS(namespaces.ct, 'value')).toBe('20'); + expect(slices[1].getAttributeNS(namespaces.ct, 'value')).toBe('10'); + expect(slices[2].getAttributeNS(namespaces.ct, 'value')).toBe('30'); + expect(slices[3].getAttributeNS(namespaces.ct, 'value')).toBe('40'); + }); + + it('should create slice path', async () => { + const num = '\\d+(\\.\\d*)?'; + const pattern = new RegExp( + `^M${num},${num}A170,170,0,0,0,${num},${num}$` + ); + await createChart(); + + Array.from(fixture.wrapper.querySelectorAll('.ct-slice-donut')).forEach( + element => + expect(element).toHaveAttribute('d', expect.stringMatching(pattern)) + ); + }); + + it('should set stroke-width', async () => { + const strokeWidth = new RegExp('stroke-width:\\s*60px'); + await createChart(); + + Array.from(fixture.wrapper.querySelectorAll('.ct-slice-donut')).forEach( + element => + expect(element).toHaveAttribute( + // eslint-disable-next-line jest-dom/prefer-to-have-style + 'style', + expect.stringMatching(strokeWidth) + ) + ); + }); + + it('should not add labels', async () => { + await createChart(); + + const labels = fixture.wrapper.querySelectorAll('.ct-label'); + expect(labels.length).toBe(0); + }); + }); + + describe('Pie Chart with relative donutWidth', () => { + beforeEach(() => { + data = { + series: [20, 10, 30, 40] + }; + options = { + chartPadding: 50, + height: 500, + width: 500, + donut: true, + donutWidth: '25%', + showLabel: false + }; + }); + + it('should render four strokes', async () => { + await createChart(); + + expect(fixture.wrapper.querySelectorAll('.ct-slice-donut').length).toBe( + 4 + ); + }); + + it('should create slice path', async () => { + const num = '\\d+(\\.\\d*)?'; + const pattern = new RegExp( + `^M${num},${num}A175,175,0,0,0,${num},${num}$` + ); + await createChart(); + + Array.from(fixture.wrapper.querySelectorAll('.ct-slice-donut')).forEach( + element => + expect(element).toHaveAttribute('d', expect.stringMatching(pattern)) + ); + }); + + it('should set stroke-width', async () => { + const strokeWidth = new RegExp('stroke-width:\\s?50px'); + await createChart(); + + Array.from(fixture.wrapper.querySelectorAll('.ct-slice-donut')).forEach( + element => + expect(element).toHaveAttribute( + // eslint-disable-next-line jest-dom/prefer-to-have-style + 'style', + expect.stringMatching(strokeWidth) + ) + ); + }); + }); + }); +}); diff --git a/src/charts/PieChart/PieChart.stories.ts b/src/charts/PieChart/PieChart.stories.ts new file mode 100644 index 000000000..0aa012863 --- /dev/null +++ b/src/charts/PieChart/PieChart.stories.ts @@ -0,0 +1,188 @@ +import 'chartist-dev/styles'; +import { PieChart } from 'chartist-dev'; + +export default { + title: 'PieChart', + argTypes: {} +}; + +export function Default() { + const root = document.createElement('div'); + + new PieChart( + root, + { + series: [5, 3, 4] + }, + { + width: 100, + height: 100, + chartPadding: 10 + } + ); + + return root; +} + +export function Labels() { + const root = document.createElement('div'); + + new PieChart( + root, + { + labels: ['A', 'B', 'C'], + series: [5, 8, 1] + }, + {} + ); + + return root; +} + +export function LabelInterpolation() { + const root = document.createElement('div'); + const data = { + series: [5, 3, 4] + }; + const sum = (a: number, b: number) => a + b; + + new PieChart(root, data, { + width: 100, + height: 100, + chartPadding: 10, + labelInterpolationFnc: value => + `${Math.round((Number(value) / data.series.reduce(sum)) * 100)}%` + }); + + return root; +} + +export function StartAngle() { + const root = document.createElement('div'); + + new PieChart( + root, + { + series: [5, 3, 4] + }, + { + startAngle: 90 + } + ); + + return root; +} + +export function SmallSlices() { + const root = document.createElement('div'); + + new PieChart( + root, + { + series: [0.001, 2] + }, + { + width: 100, + height: 100, + chartPadding: 0 + } + ); + + return root; +} + +export function IgnoreEmptyValues() { + const root = document.createElement('div'); + + new PieChart( + root, + { + series: [1, 2, 0, 4] + }, + { + ignoreEmptyValues: true + } + ); + + return root; +} + +export function Donut() { + const root = document.createElement('div'); + + new PieChart( + root, + { + series: [5, 3, 4] + }, + { + donut: true + } + ); + + return root; +} + +export function GaugeDonut() { + const root = document.createElement('div'); + + new PieChart( + root, + { + series: [20, 10, 30, 40] + }, + { + chartPadding: 50, + height: 500, + width: 500, + donut: true, + donutWidth: 60, + startAngle: 270, + total: 200, + showLabel: false + } + ); + + return root; +} + +export function RelativeDonutWidth() { + const root = document.createElement('div'); + + new PieChart( + root, + { + series: [20, 10, 30, 40] + }, + { + chartPadding: 50, + height: 500, + width: 500, + donut: true, + donutWidth: '25%', + showLabel: false + } + ); + + return root; +} + +export function Solid() { + const root = document.createElement('div'); + + new PieChart( + root, + { + series: [20, 10, 30, 40] + }, + { + donut: true, + donutWidth: 60, + // donutSolid: true, + startAngle: 270, + showLabel: true + } + ); + + return root; +} diff --git a/src/charts/PieChart/PieChart.ts b/src/charts/PieChart/PieChart.ts new file mode 100644 index 000000000..ecc57cbb8 --- /dev/null +++ b/src/charts/PieChart/PieChart.ts @@ -0,0 +1,457 @@ +import type { + LabelDirection, + AnchorPosition, + Dot, + PieChartData, + PieChartOptions, + PieChartOptionsWithDefaults, + PieChartCreatedEvent, + SliceDrawEvent, + SliceLabelDrawEvent, + PieChartEventsTypes +} from './PieChart.types'; +import type { Svg } from '../../svg'; +import { + alphaNumerate, + quantity, + normalizeData, + serialize, + createSvg, + createChartRect, + polarToCartesian +} from '../../core'; +import { + noop, + sum, + extend, + isFalseyButZero, + safeHasProperty +} from '../../utils'; +import { SvgPath } from '../../svg'; +import { BaseChart } from '../BaseChart'; + +/** + * Default options in line charts. Expand the code view to see a detailed list of options with comments. + */ +const defaultOptions = { + // Specify a fixed width for the chart as a string (i.e. '100px' or '50%') + width: undefined, + // Specify a fixed height for the chart as a string (i.e. '100px' or '50%') + height: undefined, + // Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5} + chartPadding: 5, + // Override the class names that are used to generate the SVG structure of the chart + classNames: { + chartPie: 'ct-chart-pie', + chartDonut: 'ct-chart-donut', + series: 'ct-series', + slicePie: 'ct-slice-pie', + sliceDonut: 'ct-slice-donut', + label: 'ct-label' + }, + // The start angle of the pie chart in degrees where 0 points north. A higher value offsets the start angle clockwise. + startAngle: 0, + // An optional total you can specify. By specifying a total value, the sum of the values in the series must be this total in order to draw a full pie. You can use this parameter to draw only parts of a pie or gauge charts. + total: undefined, + // If specified the donut CSS classes will be used and strokes will be drawn instead of pie slices. + donut: false, + // Specify the donut stroke width, currently done in javascript for convenience. May move to CSS styles in the future. + // This option can be set as number or string to specify a relative width (i.e. 100 or '30%'). + donutWidth: 60, + // If a label should be shown or not + showLabel: true, + // Label position offset from the standard position which is half distance of the radius. This value can be either positive or negative. Positive values will position the label away from the center. + labelOffset: 0, + // This option can be set to 'inside', 'outside' or 'center'. Positioned with 'inside' the labels will be placed on half the distance of the radius to the border of the Pie by respecting the 'labelOffset'. The 'outside' option will place the labels at the border of the pie and 'center' will place the labels in the absolute center point of the chart. The 'center' option only makes sense in conjunction with the 'labelOffset' option. + labelPosition: 'inside', + // An interpolation function for the label value + labelInterpolationFnc: noop, + // Label direction can be 'neutral', 'explode' or 'implode'. The labels anchor will be positioned based on those settings as well as the fact if the labels are on the right or left side of the center of the chart. Usually explode is useful when labels are positioned far away from the center. + labelDirection: 'neutral', + // If true the whole data is reversed including labels, the series order as well as the whole series data arrays. + reverseData: false, + // If true empty values will be ignored to avoid drawing unncessary slices and labels + ignoreEmptyValues: false +}; + +/** + * Determines SVG anchor position based on direction and center parameter + */ +export function determineAnchorPosition( + center: Dot, + label: Dot, + direction: LabelDirection +): AnchorPosition { + const toTheRight = label.x > center.x; + + if ( + (toTheRight && direction === 'explode') || + (!toTheRight && direction === 'implode') + ) { + return 'start'; + } else if ( + (toTheRight && direction === 'implode') || + (!toTheRight && direction === 'explode') + ) { + return 'end'; + } else { + return 'middle'; + } +} + +export class PieChart extends BaseChart { + /** + * This method creates a new pie chart and returns an object that can be used to redraw the chart. + * @param query A selector query string or directly a DOM element + * @param data The data object in the pie chart needs to have a series property with a one dimensional data array. The values will be normalized against each other and don't necessarily need to be in percentage. The series property can also be an array of value objects that contain a value property and a className property to override the CSS class name for the series group. + * @param options The options object with options that override the default options. Check the examples for a detailed list. + * @param responsiveOptions Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]] + * + * @example + * // Simple pie chart example with four series + * new PieChart('.ct-chart', { + * series: [10, 2, 4, 3] + * }); + * + * @example + * // Drawing a donut chart + * new PieChart('.ct-chart', { + * series: [10, 2, 4, 3] + * }, { + * donut: true + * }); + * + * @example + * // Using donut, startAngle and total to draw a gauge chart + * new PieChart('.ct-chart', { + * series: [20, 10, 30, 40] + * }, { + * donut: true, + * donutWidth: 20, + * startAngle: 270, + * total: 200 + * }); + * + * @example + * // Drawing a pie chart with padding and labels that are outside the pie + * new PieChart('.ct-chart', { + * series: [20, 10, 30, 40] + * }, { + * chartPadding: 30, + * labelOffset: 50, + * labelDirection: 'explode' + * }); + * + * @example + * // Overriding the class names for individual series as well as a name and meta data. + * // The name will be written as ct:series-name attribute and the meta data will be serialized and written + * // to a ct:meta attribute. + * new PieChart('.ct-chart', { + * series: [{ + * value: 20, + * name: 'Series 1', + * className: 'my-custom-class-one', + * meta: 'Meta One' + * }, { + * value: 10, + * name: 'Series 2', + * className: 'my-custom-class-two', + * meta: 'Meta Two' + * }, { + * value: 70, + * name: 'Series 3', + * className: 'my-custom-class-three', + * meta: 'Meta Three' + * }] + * }); + */ + constructor( + query: string | Element | null, + protected override data: PieChartData, + options?: PieChartOptions, + responsiveOptions?: [string, PieChartOptions][] + ) { + super( + query, + data, + defaultOptions, + extend({}, defaultOptions, options), + responsiveOptions + ); + } + + /** + * Creates the pie chart + * + * @param options + */ + createChart(options: PieChartOptionsWithDefaults) { + const { data } = this; + const normalizedData = normalizeData(data); + const seriesGroups: Svg[] = []; + let labelsGroup: Svg; + let labelRadius: number; + let startAngle = options.startAngle; + + // Create SVG.js draw + const svg = createSvg( + this.container, + options.width, + options.height, + options.donut + ? options.classNames.chartDonut + : options.classNames.chartPie + ); + + this.svg = svg; + + // Calculate charting rect + const chartRect = createChartRect(svg, options); + // Get biggest circle radius possible within chartRect + let radius = Math.min(chartRect.width() / 2, chartRect.height() / 2); + // Calculate total of all series to get reference value or use total reference from optional options + const totalDataSum = options.total || normalizedData.series.reduce(sum, 0); + + const donutWidth = quantity(options.donutWidth); + if (donutWidth.unit === '%') { + donutWidth.value *= radius / 100; + } + + // If this is a donut chart we need to adjust our radius to enable strokes to be drawn inside + // Unfortunately this is not possible with the current SVG Spec + // See this proposal for more details: http://lists.w3.org/Archives/Public/www-svg/2003Oct/0000.html + radius -= options.donut ? donutWidth.value / 2 : 0; + + // If labelPosition is set to `outside` or a donut chart is drawn then the label position is at the radius, + // if regular pie chart it's half of the radius + if (options.labelPosition === 'outside' || options.donut) { + labelRadius = radius; + } else if (options.labelPosition === 'center') { + // If labelPosition is center we start with 0 and will later wait for the labelOffset + labelRadius = 0; + } else { + // Default option is 'inside' where we use half the radius so the label will be placed in the center of the pie + // slice + labelRadius = radius / 2; + } + // Add the offset to the labelRadius where a negative offset means closed to the center of the chart + if (options.labelOffset) { + labelRadius += options.labelOffset; + } + + // Calculate end angle based on total sum and current data value and offset with padding + const center = { + x: chartRect.x1 + chartRect.width() / 2, + y: chartRect.y2 + chartRect.height() / 2 + }; + + // Check if there is only one non-zero value in the series array. + const hasSingleValInSeries = + data.series.filter(val => + safeHasProperty(val, 'value') ? val.value !== 0 : val !== 0 + ).length === 1; + + // Creating the series groups + data.series.forEach((_, index) => (seriesGroups[index] = svg.elem('g'))); + // if we need to show labels we create the label group now + if (options.showLabel) { + labelsGroup = svg.elem('g'); + } + + // Draw the series + // initialize series groups + data.series.forEach((series, index) => { + // If current value is zero and we are ignoring empty values then skip to next value + if (normalizedData.series[index] === 0 && options.ignoreEmptyValues) { + return; + } + + const seriesName = safeHasProperty(series, 'name') && series.name; + const seriesClassName = + safeHasProperty(series, 'className') && series.className; + const seriesMeta = safeHasProperty(series, 'meta') + ? series.meta + : undefined; + + // If the series is an object and contains a name or meta data we add a custom attribute + if (seriesName) { + seriesGroups[index].attr({ + 'ct:series-name': seriesName + }); + } + + // Use series class from series data or if not set generate one + seriesGroups[index].addClass( + [ + options.classNames?.series, + seriesClassName || + `${options.classNames?.series}-${alphaNumerate(index)}` + ].join(' ') + ); + + // If the whole dataset is 0 endAngle should be zero. Can't divide by 0. + let endAngle = + totalDataSum > 0 + ? startAngle + (normalizedData.series[index] / totalDataSum) * 360 + : 0; + + // Use slight offset so there are no transparent hairline issues + const overlappigStartAngle = Math.max( + 0, + startAngle - (index === 0 || hasSingleValInSeries ? 0 : 0.2) + ); + + // If we need to draw the arc for all 360 degrees we need to add a hack where we close the circle + // with Z and use 359.99 degrees + if (endAngle - overlappigStartAngle >= 359.99) { + endAngle = overlappigStartAngle + 359.99; + } + + const start = polarToCartesian( + center.x, + center.y, + radius, + overlappigStartAngle + ); + const end = polarToCartesian(center.x, center.y, radius, endAngle); + + // Create a new path element for the pie chart. If this isn't a donut chart we should close the path for a correct stroke + const path = new SvgPath(!options.donut) + .move(end.x, end.y) + .arc( + radius, + radius, + 0, + Number(endAngle - startAngle > 180), + 0, + start.x, + start.y + ); + + // If regular pie chart (no donut) we add a line to the center of the circle for completing the pie + if (!options.donut) { + path.line(center.x, center.y); + } + + // Create the SVG path + // If this is a donut chart we add the donut class, otherwise just a regular slice + const pathElement = seriesGroups[index].elem( + 'path', + { + d: path.stringify() + }, + options.donut + ? options.classNames.sliceDonut + : options.classNames.slicePie + ); + + // Adding the pie series value to the path + pathElement.attr({ + 'ct:value': normalizedData.series[index], + 'ct:meta': serialize(seriesMeta) + }); + + // If this is a donut, we add the stroke-width as style attribute + if (options.donut) { + pathElement.attr({ + style: 'stroke-width: ' + donutWidth.value + 'px' + }); + } + + // Fire off draw event + this.eventEmitter.emit('draw', { + type: 'slice', + value: normalizedData.series[index], + totalDataSum: totalDataSum, + index, + meta: seriesMeta, + series, + group: seriesGroups[index], + element: pathElement, + path: path.clone(), + center, + radius, + startAngle, + endAngle, + chartRect + }); + + // If we need to show labels we need to add the label for this slice now + if (options.showLabel) { + let labelPosition; + + if (data.series.length === 1) { + // If we have only 1 series, we can position the label in the center of the pie + labelPosition = { + x: center.x, + y: center.y + }; + } else { + // Position at the labelRadius distance from center and between start and end angle + labelPosition = polarToCartesian( + center.x, + center.y, + labelRadius, + startAngle + (endAngle - startAngle) / 2 + ); + } + + let rawValue; + if ( + normalizedData.labels && + !isFalseyButZero(normalizedData.labels[index]) + ) { + rawValue = normalizedData.labels[index]; + } else { + rawValue = normalizedData.series[index]; + } + + const interpolatedValue = options.labelInterpolationFnc( + rawValue, + index + ); + + if (interpolatedValue || interpolatedValue === 0) { + const labelElement = labelsGroup + .elem( + 'text', + { + dx: labelPosition.x, + dy: labelPosition.y, + 'text-anchor': determineAnchorPosition( + center, + labelPosition, + options.labelDirection + ) + }, + options.classNames.label + ) + .text(String(interpolatedValue)); + + // Fire off draw event + this.eventEmitter.emit('draw', { + type: 'label', + index, + group: labelsGroup, + element: labelElement, + text: '' + interpolatedValue, + chartRect, + series, + meta: seriesMeta, + ...labelPosition + }); + } + } + + // Set next startAngle to current endAngle. + // (except for last slice) + startAngle = endAngle; + }); + + this.eventEmitter.emit('created', { + chartRect, + svg: svg, + options + }); + } +} diff --git a/src/charts/PieChart/PieChart.types.ts b/src/charts/PieChart/PieChart.types.ts new file mode 100644 index 000000000..576b084c5 --- /dev/null +++ b/src/charts/PieChart/PieChart.types.ts @@ -0,0 +1,90 @@ +import type { + Options, + Label, + Data, + FlatSeries, + CreatedEvent, + DrawEvent, + NormalizedSeriesValue +} from '../../core'; +import type { RequiredKeys } from '../../utils'; +import type { SvgPath } from '../../svg'; +import type { BaseChartEventsTypes } from '../types'; + +export type PieChartData = Data; + +export type LabelDirection = 'implode' | 'neutral' | 'explode'; + +export type AnchorPosition = 'start' | 'middle' | 'end'; + +export type RadialLabelPosition = 'inside' | 'center' | 'outside'; + +export interface Dot { + x: number; + y: number; +} + +export interface PieChartOptions extends Omit { + classNames?: { + chartPie?: string; + chartDonut?: string; + series?: string; + slicePie?: string; + sliceDonut?: string; + label?: string; + }; + startAngle?: number; + total?: number; + donut?: boolean; + donutWidth?: number | string; + showLabel?: boolean; + labelOffset?: number; + labelPosition?: RadialLabelPosition; + labelInterpolationFnc?(value: Label, index: number): Label | null | undefined; + labelDirection?: LabelDirection; + reverseData?: boolean; + ignoreEmptyValues?: boolean; +} + +export type PieChartOptionsWithDefaults = RequiredKeys< + PieChartOptions, + | 'chartPadding' + | 'startAngle' + | 'donutWidth' + | 'showLabel' + | 'labelOffset' + | 'labelPosition' + | 'labelInterpolationFnc' + | 'labelDirection', + 'classNames' +>; + +export type PieChartCreatedEvent = Omit< + CreatedEvent, + 'axisX' | 'axisY' +>; + +export interface SliceDrawEvent + extends Omit { + type: 'slice'; + value: NormalizedSeriesValue; + totalDataSum: number; + path: SvgPath; + center: Dot; + radius: number; + startAngle: number; + endAngle: number; +} + +export interface SliceLabelDrawEvent + extends Omit { + type: 'label'; + text: string; + x: number; + y: number; +} + +export type PieChartEventsTypes = BaseChartEventsTypes< + PieChartCreatedEvent, + SliceDrawEvent | SliceLabelDrawEvent +>; diff --git a/src/charts/PieChart/index.ts b/src/charts/PieChart/index.ts new file mode 100644 index 000000000..70a6c91eb --- /dev/null +++ b/src/charts/PieChart/index.ts @@ -0,0 +1,2 @@ +export * from './PieChart'; +export * from './PieChart.types'; diff --git a/src/charts/index.ts b/src/charts/index.ts new file mode 100644 index 000000000..a4ec210b3 --- /dev/null +++ b/src/charts/index.ts @@ -0,0 +1,5 @@ +export * from './BaseChart'; +export * from './LineChart'; +export * from './BarChart'; +export * from './PieChart'; +export * from './types'; diff --git a/src/charts/types.ts b/src/charts/types.ts new file mode 100644 index 000000000..b76059f76 --- /dev/null +++ b/src/charts/types.ts @@ -0,0 +1,19 @@ +import type { + DataEvent, + OptionsChangedEvent, + DrawEvent, + CreatedEvent +} from '../core'; +import type { AnimationEvent } from '../svg'; + +export interface BaseChartEventsTypes< + TCreateEvent = CreatedEvent, + TDrawEvents = DrawEvent +> { + data: DataEvent; + options: OptionsChangedEvent; + animationBegin: AnimationEvent; + animationEnd: AnimationEvent; + created: TCreateEvent; + draw: TDrawEvents; +} diff --git a/src/core/constants.ts b/src/core/constants.ts new file mode 100644 index 000000000..10c55df9f --- /dev/null +++ b/src/core/constants.ts @@ -0,0 +1,26 @@ +/** + * This object contains all namespaces used within Chartist. + */ +export const namespaces: Record = { + svg: 'http://www.w3.org/2000/svg', + xmlns: 'http://www.w3.org/2000/xmlns/', + xhtml: 'http://www.w3.org/1999/xhtml', + xlink: 'http://www.w3.org/1999/xlink', + ct: 'http://gionkunz.github.com/chartist-js/ct' +}; + +/** + * Precision level used internally in Chartist for rounding. If you require more decimal places you can increase this number. + */ +export const precision = 8; + +/** + * A map with characters to escape for strings to be safely used as attribute values. + */ +export const escapingMap: Record = { + '&': '&', + '<': '<', + '>': '>', + '"': '"', + "'": ''' +}; diff --git a/src/core/creation.spec.ts b/src/core/creation.spec.ts new file mode 100644 index 000000000..acd85e618 --- /dev/null +++ b/src/core/creation.spec.ts @@ -0,0 +1,216 @@ +import { addMockWrapper, mockDom, destroyMockDom } from '../../test/mock/dom'; +import { + createSvg, + createGrid, + createGridBackground, + normalizePadding +} from './creation'; +import { EventEmitter } from '../event'; +import { Svg } from '../svg'; + +describe('Core', () => { + describe('Creation', () => { + beforeEach(() => mockDom()); + afterEach(() => destroyMockDom()); + + describe('createSvg', () => { + it('should not remove non-chartist svg elements', () => { + const fixture = addMockWrapper(` +
+ +
+ +
+
+ `); + + const container: any = + fixture.wrapper.querySelector('#chart-container'); + const svg = createSvg(container, '500px', '400px', 'ct-fish-bar'); + + expect(svg).toBeDefined(); + expect(svg.classes()).toContain('ct-fish-bar'); + expect(container).toContainElement(document.querySelector('#foo')); + expect(container).toContainElement(document.querySelector('#bar')); + }); + + it('should remove previous chartist svg elements', () => { + const fixture = addMockWrapper('
'); + + const container: any = + fixture.wrapper.querySelector('#chart-container'); + const svg1 = createSvg(container, '500px', '400px', 'ct-fish-bar'); + const svg2 = createSvg(container, '800px', '200px', 'ct-snake-bar'); + + expect(svg1).toBeDefined(); + expect(svg1.classes()).toContain('ct-fish-bar'); + expect(svg2).toBeDefined(); + expect(svg2.classes()).toContain('ct-snake-bar'); + expect(container).not.toContainElement( + document.querySelector('.ct-fish-bar') + ); + expect(container).toContainElement( + document.querySelector('.ct-snake-bar') + ); + }); + }); + + describe('createGrid', () => { + let group: any; + let axis: any; + let classes: any; + let eventEmitter: EventEmitter; + let position: any; + let length: any; + let offset: any; + + beforeEach(() => { + eventEmitter = new EventEmitter(); + group = new Svg('g'); + axis = { + units: { + pos: 'x' + }, + counterUnits: { + pos: 'y' + } + }; + classes = []; + position = 10; + length = 100; + offset = 20; + }); + + function onCreated(fn: any, done: any) { + eventEmitter.on('draw', grid => { + fn(grid); + done(); + }); + createGrid( + position, + 1, + axis, + offset, + length, + group, + classes, + eventEmitter + ); + } + + it('should add single grid line to group', done => { + onCreated( + () => + expect(group.querySelectorAll('line').svgElements.length).toBe(1), + done + ); + }); + + it('should draw line', done => { + onCreated(() => { + const line = group.querySelector('line'); + expect(line.attr('x1')).toBe('10'); + expect(line.attr('x2')).toBe('10'); + expect(line.attr('y1')).toBe('20'); + expect(line.attr('y2')).toBe('120'); + }, done); + }); + + it('should draw horizontal line', done => { + axis.units.pos = 'y'; + axis.counterUnits.pos = 'x'; + onCreated(() => { + const line = group.querySelector('line'); + expect(line.attr('y1')).toBe('10'); + expect(line.attr('y2')).toBe('10'); + expect(line.attr('x1')).toBe('20'); + expect(line.attr('x2')).toBe('120'); + }, done); + }); + }); + + describe('createGridBackground', () => { + let group: any; + let chartRect: any; + let className: any; + let eventEmitter: any; + + beforeEach(() => { + eventEmitter = new EventEmitter(); + group = new Svg('g'); + className = 'ct-test'; + chartRect = { + x1: 5, + y2: 10, + _width: 100, + _height: 50, + width() { + return this._width; + }, + height() { + return this._height; + } + }; + }); + + function onCreated(fn: any, done: any) { + eventEmitter.on('draw', (data: any) => { + fn(data); + done(); + }); + createGridBackground(group, chartRect, className, eventEmitter); + } + + it('should add rect', done => { + onCreated(() => { + const rects = group.querySelectorAll('rect').svgElements; + expect(rects.length).toBe(1); + const rect = rects[0]; + expect(rect.attr('x')).toBe('5'); + expect(rect.attr('y')).toBe('10'); + expect(rect.attr('width')).toBe('100'); + expect(rect.attr('height')).toBe('50'); + expect(rect.classes()).toEqual(['ct-test']); + }, done); + }); + + it('should pass grid to event', done => { + onCreated((data: any) => { + expect(data.type).toBe('gridBackground'); + const rect = data.element; + expect(rect.attr('x')).toBe('5'); + expect(rect.attr('y')).toBe('10'); + }, done); + }); + }); + + describe('padding normalization', () => { + it('should normalize number padding', () => { + expect(normalizePadding(10)).toEqual({ + top: 10, + right: 10, + bottom: 10, + left: 10 + }); + }); + + it('should normalize number padding when 0 is passed', () => { + expect(normalizePadding(0)).toEqual({ + top: 0, + right: 0, + bottom: 0, + left: 0 + }); + }); + + it('should normalize empty padding object with default fallback', () => { + expect(normalizePadding({})).toEqual({ + top: 0, + right: 0, + bottom: 0, + left: 0 + }); + }); + }); + }); +}); diff --git a/src/core/creation.ts b/src/core/creation.ts new file mode 100644 index 000000000..2ebfdb553 --- /dev/null +++ b/src/core/creation.ts @@ -0,0 +1,273 @@ +import type { + ChartPadding, + ChartRect, + Options, + Label, + GridDrawEvent, + GridBackgroundDrawEvent, + LabelDrawEvent +} from './types'; +import type { EventEmitter } from '../event'; +import type { Axis } from '../axes'; +import { namespaces } from './constants'; +import { Svg } from '../svg/Svg'; +import { quantity } from './lang'; + +/** + * Create or reinitialize the SVG element for the chart + * @param container The containing DOM Node object that will be used to plant the SVG element + * @param width Set the width of the SVG element. Default is 100% + * @param height Set the height of the SVG element. Default is 100% + * @param className Specify a class to be added to the SVG element + * @return The created/reinitialized SVG element + */ +export function createSvg( + container: Element, + width: number | string = '100%', + height: number | string = '100%', + className?: string +) { + // Check if there is a previous SVG element in the container that contains the Chartist XML namespace and remove it + // Since the DOM API does not support namespaces we need to manually search the returned list http://www.w3.org/TR/selectors-api/ + Array.from(container.querySelectorAll('svg')) + .filter(svg => svg.getAttributeNS(namespaces.xmlns, 'ct')) + .forEach(svg => container.removeChild(svg)); + + // Create svg object with width and height or use 100% as default + const svg = new Svg('svg') + .attr({ + width, + height + }) + .attr({ + // TODO: Check better solution (browser support) and remove inline styles due to CSP + style: `width: ${width}; height: ${height};` + }); + + if (className) { + svg.addClass(className); + } + + // Add the DOM node to our container + container.appendChild(svg.getNode()); + + return svg; +} + +/** + * Converts a number into a padding object. + * @param padding + * @param fallback This value is used to fill missing values if a incomplete padding object was passed + * @returns Returns a padding object containing top, right, bottom, left properties filled with the padding number passed in as argument. If the argument is something else than a number (presumably already a correct padding object) then this argument is directly returned. + */ +export function normalizePadding( + padding: number | Partial | undefined +) { + return typeof padding === 'number' + ? { + top: padding, + right: padding, + bottom: padding, + left: padding + } + : padding === undefined + ? { top: 0, right: 0, bottom: 0, left: 0 } + : { + top: typeof padding.top === 'number' ? padding.top : 0, + right: typeof padding.right === 'number' ? padding.right : 0, + bottom: typeof padding.bottom === 'number' ? padding.bottom : 0, + left: typeof padding.left === 'number' ? padding.left : 0 + }; +} + +/** + * Initialize chart drawing rectangle (area where chart is drawn) x1,y1 = bottom left / x2,y2 = top right + * @param svg The svg element for the chart + * @param options The Object that contains all the optional values for the chart + * @return The chart rectangles coordinates inside the svg element plus the rectangles measurements + */ +export function createChartRect(svg: Svg, options: Options) { + const hasAxis = Boolean(options.axisX || options.axisY); + const yAxisOffset = options.axisY?.offset || 0; + const xAxisOffset = options.axisX?.offset || 0; + const yAxisPosition = options.axisY?.position; + const xAxisPosition = options.axisX?.position; + // If width or height results in invalid value (including 0) we fallback to the unitless settings or even 0 + let width = svg.width() || quantity(options.width).value || 0; + let height = svg.height() || quantity(options.height).value || 0; + const normalizedPadding = normalizePadding(options.chartPadding); + + // If settings were to small to cope with offset (legacy) and padding, we'll adjust + width = Math.max( + width, + yAxisOffset + normalizedPadding.left + normalizedPadding.right + ); + height = Math.max( + height, + xAxisOffset + normalizedPadding.top + normalizedPadding.bottom + ); + + const chartRect = { + x1: 0, + x2: 0, + y1: 0, + y2: 0, + padding: normalizedPadding, + width() { + return this.x2 - this.x1; + }, + height() { + return this.y1 - this.y2; + } + }; + + if (hasAxis) { + if (xAxisPosition === 'start') { + chartRect.y2 = normalizedPadding.top + xAxisOffset; + chartRect.y1 = Math.max( + height - normalizedPadding.bottom, + chartRect.y2 + 1 + ); + } else { + chartRect.y2 = normalizedPadding.top; + chartRect.y1 = Math.max( + height - normalizedPadding.bottom - xAxisOffset, + chartRect.y2 + 1 + ); + } + + if (yAxisPosition === 'start') { + chartRect.x1 = normalizedPadding.left + yAxisOffset; + chartRect.x2 = Math.max( + width - normalizedPadding.right, + chartRect.x1 + 1 + ); + } else { + chartRect.x1 = normalizedPadding.left; + chartRect.x2 = Math.max( + width - normalizedPadding.right - yAxisOffset, + chartRect.x1 + 1 + ); + } + } else { + chartRect.x1 = normalizedPadding.left; + chartRect.x2 = Math.max(width - normalizedPadding.right, chartRect.x1 + 1); + chartRect.y2 = normalizedPadding.top; + chartRect.y1 = Math.max( + height - normalizedPadding.bottom, + chartRect.y2 + 1 + ); + } + + return chartRect; +} + +/** + * Creates a grid line based on a projected value. + */ +export function createGrid( + position: number, + index: number, + axis: Axis, + offset: number, + length: number, + group: Svg, + classes: string[], + eventEmitter: EventEmitter +) { + const positionalData = { + [`${axis.units.pos}1`]: position, + [`${axis.units.pos}2`]: position, + [`${axis.counterUnits.pos}1`]: offset, + [`${axis.counterUnits.pos}2`]: offset + length + } as Record<'x1' | 'y1' | 'x2' | 'y2', number>; + + const gridElement = group.elem('line', positionalData, classes.join(' ')); + + // Event for grid draw + eventEmitter.emit('draw', { + type: 'grid', + axis, + index, + group, + element: gridElement, + ...positionalData + }); +} + +/** + * Creates a grid background rect and emits the draw event. + */ +export function createGridBackground( + gridGroup: Svg, + chartRect: ChartRect, + className: string, + eventEmitter: EventEmitter +) { + const gridBackground = gridGroup.elem( + 'rect', + { + x: chartRect.x1, + y: chartRect.y2, + width: chartRect.width(), + height: chartRect.height() + }, + className, + true + ); + + // Event for grid background draw + eventEmitter.emit('draw', { + type: 'gridBackground', + group: gridGroup, + element: gridBackground + }); +} + +/** + * Creates a label based on a projected value and an axis. + */ +export function createLabel( + position: number, + length: number, + index: number, + label: Label, + axis: Axis, + axisOffset: number, + labelOffset: { x: number; y: number }, + group: Svg, + classes: string[], + eventEmitter: EventEmitter +) { + const positionalData = { + [axis.units.pos]: position + labelOffset[axis.units.pos], + [axis.counterUnits.pos]: labelOffset[axis.counterUnits.pos], + [axis.units.len]: length, + [axis.counterUnits.len]: Math.max(0, axisOffset - 10) + } as Record<'x' | 'y' | 'width' | 'height', number>; + // We need to set width and height explicitly to px as span will not expand with width and height being + // 100% in all browsers + const stepLength = Math.round(positionalData[axis.units.len]); + const stepCounterLength = Math.round(positionalData[axis.counterUnits.len]); + const content = document.createElement('span'); + + content.className = classes.join(' '); + content.style[axis.units.len] = stepLength + 'px'; + content.style[axis.counterUnits.len] = stepCounterLength + 'px'; + content.textContent = String(label); + + const labelElement = group.foreignObject(content, { + style: 'overflow: visible;', + ...positionalData + }); + + eventEmitter.emit('draw', { + type: 'label', + axis, + index, + group, + element: labelElement, + text: label, + ...positionalData + }); +} diff --git a/src/core/data/bound.spec.ts b/src/core/data/bound.spec.ts new file mode 100644 index 000000000..5760c8e15 --- /dev/null +++ b/src/core/data/bound.spec.ts @@ -0,0 +1,113 @@ +import { getBounds } from './bounds'; +import { roundWithPrecision } from '../math'; + +describe('Core', () => { + describe('Data', () => { + describe('Bounds', () => { + it('should return 10 steps', () => { + const bounds = getBounds(100, { high: 10, low: 1 }, 10, false); + expect(bounds.min).toBe(1); + expect(bounds.max).toBe(10); + expect(bounds.values).toEqual([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); + }); + + it('should return 5 steps', () => { + const bounds = getBounds(100, { high: 10, low: 1 }, 20, false); + expect(bounds.min).toBe(1); + expect(bounds.max).toBe(10); + expect(bounds.values).toEqual([1, 3, 5, 7, 9]); + }); + + it('should return non integer steps', () => { + const bounds = getBounds(100, { high: 2, low: 1 }, 20, false); + expect(bounds.min).toBe(1); + expect(bounds.max).toBe(2); + expect(bounds.values).toEqual([1, 1.25, 1.5, 1.75, 2]); + }); + + it('should return integer steps only', () => { + const bounds = getBounds(100, { high: 3, low: 1 }, 20, true); + expect(bounds.min).toBe(1); + expect(bounds.max).toBe(3); + expect(bounds.values).toEqual([1, 2, 3]); + }); + + it('should return single integer step', () => { + const bounds = getBounds(100, { high: 2, low: 1 }, 20, true); + expect(bounds.min).toBe(1); + expect(bounds.max).toBe(2); + expect(bounds.values).toEqual([1, 2]); + }); + + it('should floor/ceil min/max', () => { + const bounds = getBounds(100, { high: 9.9, low: 1.01 }, 20, false); + expect(bounds.min).toBe(1); + expect(bounds.max).toBe(10); + expect(bounds.values).toEqual([1, 3, 5, 7, 9]); + }); + + it('should floor/ceil min/max for non integers', () => { + const bounds = getBounds(100, { high: 2.9, low: 1.01 }, 20, false); + expect(bounds.min).toBe(1); + expect(bounds.max).toBe(3); + expect(bounds.values).toEqual([1, 1.5, 2, 2.5, 3]); + }); + + it('should floor/ceil min/max if integers only', () => { + const bounds = getBounds(100, { high: 2.9, low: 1.01 }, 20, true); + expect(bounds.min).toBe(1); + expect(bounds.max).toBe(3); + expect(bounds.values).toEqual([1, 2, 3]); + }); + + it('should return neg and pos values', () => { + const bounds = getBounds(100, { high: 1.9, low: -0.9 }, 20, false); + expect(bounds.min).toBe(-1); + expect(bounds.max).toBe(2); + expect(bounds.values).toEqual([-1, 0, 1, 2]); + }); + + it('should return two steps if no space', () => { + const bounds = getBounds(100, { high: 5, low: 0 }, 45, false); + expect(bounds.min).toBe(0); + expect(bounds.max).toBe(5); + expect(bounds.values).toEqual([0, 4]); + }); + + it('should return single step if no space', () => { + const bounds = getBounds(100, { high: 5, low: 0 }, 80, false); + expect(bounds.min).toBe(0); + expect(bounds.max).toBe(5); + expect(bounds.values).toEqual([0]); + }); + + it('should return single step if range is less than epsilon', () => { + const bounds = getBounds( + 100, + { high: 1.0000000000000002, low: 1 }, + 20, + false + ); + expect(bounds.min).toBe(1); + expect(bounds.max).toBe(1.0000000000000002); + expect(bounds.low).toBe(1); + expect(bounds.high).toBe(1.0000000000000002); + expect(bounds.values).toEqual([1]); + }); + + it('should return single step if range is less than smallest increment', () => { + const bounds = getBounds( + 613.234375, + { high: 1000.0000000000001, low: 999.9999999999997 }, + 50, + false + ); + expect(bounds.min).toBe(999.9999999999999); + expect(bounds.max).toBe(1000); + expect(bounds.low).toBe(999.9999999999997); + expect(bounds.high).toBe(1000.0000000000001); + expect(bounds.values).toEqual([roundWithPrecision(999.9999999999999)]); + }); + }); + }); +}); diff --git a/src/core/data/bounds.ts b/src/core/data/bounds.ts new file mode 100644 index 000000000..69a3ea23c --- /dev/null +++ b/src/core/data/bounds.ts @@ -0,0 +1,125 @@ +import type { Bounds } from '../types'; +import { + orderOfMagnitude, + projectLength, + roundWithPrecision, + rho, + EPSILON +} from '../math'; + +/** + * Calculate and retrieve all the bounds for the chart and return them in one array + * @param axisLength The length of the Axis used for + * @param highLow An object containing a high and low property indicating the value range of the chart. + * @param scaleMinSpace The minimum projected length a step should result in + * @param onlyInteger + * @return All the values to set the bounds of the chart + */ +export function getBounds( + axisLength: number, + highLow: { high: number; low: number }, + scaleMinSpace: number, + onlyInteger = false +) { + const bounds: Bounds = { + high: highLow.high, + low: highLow.low, + valueRange: 0, + oom: 0, + step: 0, + min: 0, + max: 0, + range: 0, + numberOfSteps: 0, + values: [] + }; + + bounds.valueRange = bounds.high - bounds.low; + bounds.oom = orderOfMagnitude(bounds.valueRange); + bounds.step = Math.pow(10, bounds.oom); + bounds.min = Math.floor(bounds.low / bounds.step) * bounds.step; + bounds.max = Math.ceil(bounds.high / bounds.step) * bounds.step; + bounds.range = bounds.max - bounds.min; + bounds.numberOfSteps = Math.round(bounds.range / bounds.step); + + // Optimize scale step by checking if subdivision is possible based on horizontalGridMinSpace + // If we are already below the scaleMinSpace value we will scale up + const length = projectLength(axisLength, bounds.step, bounds); + const scaleUp = length < scaleMinSpace; + const smallestFactor = onlyInteger ? rho(bounds.range) : 0; + + // First check if we should only use integer steps and if step 1 is still larger than scaleMinSpace so we can use 1 + if (onlyInteger && projectLength(axisLength, 1, bounds) >= scaleMinSpace) { + bounds.step = 1; + } else if ( + onlyInteger && + smallestFactor < bounds.step && + projectLength(axisLength, smallestFactor, bounds) >= scaleMinSpace + ) { + // If step 1 was too small, we can try the smallest factor of range + // If the smallest factor is smaller than the current bounds.step and the projected length of smallest factor + // is larger than the scaleMinSpace we should go for it. + bounds.step = smallestFactor; + } else { + // Trying to divide or multiply by 2 and find the best step value + let optimizationCounter = 0; + for (;;) { + if ( + scaleUp && + projectLength(axisLength, bounds.step, bounds) <= scaleMinSpace + ) { + bounds.step *= 2; + } else if ( + !scaleUp && + projectLength(axisLength, bounds.step / 2, bounds) >= scaleMinSpace + ) { + bounds.step /= 2; + if (onlyInteger && bounds.step % 1 !== 0) { + bounds.step *= 2; + break; + } + } else { + break; + } + + if (optimizationCounter++ > 1000) { + throw new Error( + 'Exceeded maximum number of iterations while optimizing scale step!' + ); + } + } + } + + bounds.step = Math.max(bounds.step, EPSILON); + function safeIncrement(value: number, increment: number) { + // If increment is too small use *= (1+EPSILON) as a simple nextafter + if (value === (value += increment)) { + value *= 1 + (increment > 0 ? EPSILON : -EPSILON); + } + return value; + } + + // Narrow min and max based on new step + let newMin = bounds.min; + let newMax = bounds.max; + while (newMin + bounds.step <= bounds.low) { + newMin = safeIncrement(newMin, bounds.step); + } + while (newMax - bounds.step >= bounds.high) { + newMax = safeIncrement(newMax, -bounds.step); + } + bounds.min = newMin; + bounds.max = newMax; + bounds.range = bounds.max - bounds.min; + + const values: number[] = []; + for (let i = bounds.min; i <= bounds.max; i = safeIncrement(i, bounds.step)) { + const value = roundWithPrecision(i); + if (value !== values[values.length - 1]) { + values.push(value); + } + } + bounds.values = values; + + return bounds; +} diff --git a/src/core/data/data.ts b/src/core/data/data.ts new file mode 100644 index 000000000..b63398b26 --- /dev/null +++ b/src/core/data/data.ts @@ -0,0 +1,73 @@ +import type { + Multi, + AxisName, + FlatSeriesValue, + Series, + SeriesObject +} from '../types'; +import { safeHasProperty, getNumberOrUndefined } from '../../utils'; + +/** + * Get meta data of a specific value in a series. + */ +export function getMetaData( + seriesData: FlatSeriesValue | Series | SeriesObject, + index: number +) { + const value = Array.isArray(seriesData) + ? seriesData[index] + : safeHasProperty(seriesData, 'data') + ? seriesData.data[index] + : null; + return safeHasProperty(value, 'meta') ? value.meta : undefined; +} + +/** + * Checks if a value is considered a hole in the data series. + * @returns True if the value is considered a data hole + */ +export function isDataHoleValue(value: unknown): value is null | undefined; +export function isDataHoleValue(value: unknown) { + return ( + value === null || + value === undefined || + (typeof value === 'number' && isNaN(value)) + ); +} + +/** + * Checks if value is array of series objects. + */ +export function isArrayOfSeries( + value: unknown +): value is (Series | SeriesObject)[] { + return ( + Array.isArray(value) && + value.every(_ => Array.isArray(_) || safeHasProperty(_, 'data')) + ); +} + +/** + * Checks if provided value object is multi value (contains x or y properties) + */ +export function isMultiValue(value: unknown): value is Multi { + return ( + typeof value === 'object' && + value !== null && + (Reflect.has(value, 'x') || Reflect.has(value, 'y')) + ); +} + +/** + * Gets a value from a dimension `value.x` or `value.y` while returning value directly if it's a valid numeric value. If the value is not numeric and it's falsey this function will return `defaultValue`. + */ +export function getMultiValue( + value: Multi | number | unknown, + dimension: AxisName = 'y' +) { + if (isMultiValue(value) && safeHasProperty(value, dimension)) { + return getNumberOrUndefined(value[dimension]); + } else { + return getNumberOrUndefined(value); + } +} diff --git a/src/core/data/highLow.ts b/src/core/data/highLow.ts new file mode 100644 index 000000000..a1edbdd90 --- /dev/null +++ b/src/core/data/highLow.ts @@ -0,0 +1,95 @@ +import type { + Options, + AxisName, + NormalizedSeries, + NormalizedSeriesValue +} from '../types'; +import { safeHasProperty } from '../../utils'; +import { isDataHoleValue } from './data'; + +/** + * Get highest and lowest value of data array. This Array contains the data that will be visualized in the chart. + * @param data The array that contains the data to be visualized in the chart + * @param options The Object that contains the chart options + * @param dimension Axis dimension 'x' or 'y' used to access the correct value and high / low configuration + * @return An object that contains the highest and lowest value that will be visualized on the chart. + */ +export function getHighLow( + data: NormalizedSeries[], + options: Options, + dimension?: AxisName +) { + // TODO: Remove workaround for deprecated global high / low config. Axis high / low configuration is preferred + options = { + ...options, + ...(dimension ? (dimension === 'x' ? options.axisX : options.axisY) : {}) + }; + + const highLow = { + high: options.high === undefined ? -Number.MAX_VALUE : +options.high, + low: options.low === undefined ? Number.MAX_VALUE : +options.low + }; + const findHigh = options.high === undefined; + const findLow = options.low === undefined; + + // Function to recursively walk through arrays and find highest and lowest number + function recursiveHighLow( + sourceData: NormalizedSeriesValue | NormalizedSeries | NormalizedSeries[] + ) { + if (isDataHoleValue(sourceData)) { + return; + } else if (Array.isArray(sourceData)) { + for (let i = 0; i < sourceData.length; i++) { + recursiveHighLow(sourceData[i]); + } + } else { + const value = Number( + dimension && safeHasProperty(sourceData, dimension) + ? sourceData[dimension] + : sourceData + ); + + if (findHigh && value > highLow.high) { + highLow.high = value; + } + + if (findLow && value < highLow.low) { + highLow.low = value; + } + } + } + + // Start to find highest and lowest number recursively + if (findHigh || findLow) { + recursiveHighLow(data); + } + + // Overrides of high / low based on reference value, it will make sure that the invisible reference value is + // used to generate the chart. This is useful when the chart always needs to contain the position of the + // invisible reference value in the view i.e. for bipolar scales. + if (options.referenceValue || options.referenceValue === 0) { + highLow.high = Math.max(options.referenceValue, highLow.high); + highLow.low = Math.min(options.referenceValue, highLow.low); + } + + // If high and low are the same because of misconfiguration or flat data (only the same value) we need + // to set the high or low to 0 depending on the polarity + if (highLow.high <= highLow.low) { + // If both values are 0 we set high to 1 + if (highLow.low === 0) { + highLow.high = 1; + } else if (highLow.low < 0) { + // If we have the same negative value for the bounds we set bounds.high to 0 + highLow.high = 0; + } else if (highLow.high > 0) { + // If we have the same positive value for the bounds we set bounds.low to 0 + highLow.low = 0; + } else { + // If data array was empty, values are Number.MAX_VALUE and -Number.MAX_VALUE. Set bounds to prevent errors + highLow.high = 1; + highLow.low = 0; + } + } + + return highLow; +} diff --git a/src/core/data/index.ts b/src/core/data/index.ts new file mode 100644 index 000000000..6803b91b2 --- /dev/null +++ b/src/core/data/index.ts @@ -0,0 +1,6 @@ +export * from './bounds'; +export * from './data'; +export * from './highLow'; +export * from './normalize'; +export * from './segments'; +export * from './serialize'; diff --git a/src/core/data/normalize.spec.ts b/src/core/data/normalize.spec.ts new file mode 100644 index 000000000..074829ad2 --- /dev/null +++ b/src/core/data/normalize.spec.ts @@ -0,0 +1,145 @@ +import { normalizeData } from './normalize'; + +describe('Core', () => { + describe('Data', () => { + describe('Normalize', () => { + it('should normalize mixed series types correctly', () => { + const data = { + labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], + series: [ + { data: [1, 0, 3, 4, 5, 6] }, + [1, { value: 0 }, 3, { value: 4 }, 5, 6, 7, 8], + { data: [1, 0, { value: 3 }] } + ] + }; + + expect(normalizeData(data).series).toEqual([ + [1, 0, 3, 4, 5, 6], + [1, 0, 3, 4, 5, 6, 7, 8], + [1, 0, 3] + ]); + }); + + it('should normalize mixed series for pie chart correctly', () => { + const data = { + series: [1, { value: 0 }, 3, { value: 4 }, 5, 6, 7, 8] + }; + + expect(normalizeData(data).series).toEqual([1, 0, 3, 4, 5, 6, 7, 8]); + }); + + it('should normalize mixed series with string values for pie chart correctly', () => { + const data = { + series: ['1', { value: '0' }, '3', { value: '4' }, '5', '6', '7', '8'] + }; + + expect(normalizeData(data).series).toEqual([1, 0, 3, 4, 5, 6, 7, 8]); + }); + + it('should normalize mixed series types with string values correctly', () => { + const data = { + labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], + series: [ + { data: ['1', '0', '3', '4', '5', '6'] }, + ['1', { value: '0' }, '3', { value: '4' }, '5', '6', '7', '8'], + { data: ['1', '0', { value: '3' }] } + ] + }; + + expect(normalizeData(data).series).toEqual([ + [1, 0, 3, 4, 5, 6], + [1, 0, 3, 4, 5, 6, 7, 8], + [1, 0, 3] + ]); + }); + + it('should normalize mixed series types with weird values correctly', () => { + const data = { + labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], + series: [ + { data: [null, NaN, undefined, '4', '5', '6'] }, + ['1', { value: null }, '3', { value: NaN }, '5', '6', '7', '8'], + { data: ['1', '0', { value: undefined }] } + ] + }; + + expect(normalizeData(data).series).toEqual([ + [undefined, undefined, undefined, 4, 5, 6], + [1, undefined, 3, undefined, 5, 6, 7, 8], + [1, 0, undefined] + ]); + }); + + it('should normalize correctly with 0 values in data series array objects', () => { + const data = { + labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'], + series: [ + { + data: [ + { value: 1 }, + { value: 4 }, + { value: 2 }, + { value: 7 }, + { value: 2 }, + { value: 0 } + ] + } + ] + }; + + expect(normalizeData(data).series).toEqual([[1, 4, 2, 7, 2, 0]]); + }); + + it('should normalize correctly with mixed dimensional input into multi dimensional output', () => { + const data = { + labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'], + series: [ + { + data: [ + { value: 1 }, + { value: { y: 4, x: 1 } }, + { y: 2, x: 2 }, + NaN, + null, + { value: 7 }, + { value: 2 }, + { value: null }, + { y: undefined, x: NaN } + ] + } + ] + }; + + expect(normalizeData(data, false, true).series).toEqual([ + [ + { x: undefined, y: 1 }, + { x: 1, y: 4 }, + { x: 2, y: 2 }, + undefined, + undefined, + { x: undefined, y: 7 }, + { x: undefined, y: 2 }, + undefined, + undefined + ] + ]); + }); + + it('should normalize boolean series correctly', () => { + const data = { + series: [[true, false, false, true]] + }; + + expect(normalizeData(data).series).toEqual([[1, 0, 0, 1]]); + }); + + it('should normalize date series correctly', () => { + const data = { + series: [[new Date(0), new Date(1), new Date(2), new Date(3)]] + }; + + expect(normalizeData(data).series).toEqual([[0, 1, 2, 3]]); + }); + }); + }); +}); diff --git a/src/core/data/normalize.ts b/src/core/data/normalize.ts new file mode 100644 index 000000000..0050c440c --- /dev/null +++ b/src/core/data/normalize.ts @@ -0,0 +1,212 @@ +import type { + Data, + NormalizedData, + Multi, + AxisName, + NormalizedMulti, + Series, + FlatSeries, + NormalizedSeries, + NormalizedFlatSeries, + SeriesObject, + SeriesPrimitiveValue +} from '../types'; +import { + isArrayOfArrays, + times, + safeHasProperty, + getNumberOrUndefined +} from '../../utils'; +import { isDataHoleValue, isArrayOfSeries } from './data'; + +/** + * Ensures that the data object passed as second argument to the charts is present and correctly initialized. + * @param data The data object that is passed as second argument to the charts + * @return The normalized data object + */ +export function normalizeData( + data: Data, + reverse?: boolean, + multi?: false +): NormalizedData; +export function normalizeData( + data: Data<(Series | SeriesObject)[]>, + reverse: boolean | undefined, + multi: true | AxisName +): NormalizedData; +export function normalizeData( + data: Data, + reverse: boolean | undefined, + multi: boolean | AxisName, + distributed: true +): NormalizedData; +export function normalizeData( + data: Data, + reverse?: boolean, + multi?: boolean | AxisName +): NormalizedData; +export function normalizeData( + data: Data, + reverse = false, + multi?: boolean | AxisName, + distributed?: boolean +) { + let labelCount: number; + const normalized: NormalizedData = { + labels: [], + series: normalizeSeries(data.series, multi, distributed) + }; + + // If all elements of the normalized data array are arrays we're dealing with + // multi series data and we need to find the largest series if they are un-even + if (isArrayOfArrays(normalized.series)) { + // Getting the series with the the most elements + labelCount = Math.max(...normalized.series.map(series => series.length)); + } else { + // We're dealing with Pie data so we just take the normalized array length + labelCount = normalized.series.length; + } + + normalized.labels = (data.labels || []).slice(); + // Padding the labels to labelCount with empty strings + normalized.labels.push( + ...times(Math.max(0, labelCount - normalized.labels.length)).map(() => '') + ); + + if (reverse) { + reverseData(normalized); + } + + return normalized; +} + +/** + * Reverses the series, labels and series data arrays. + */ +function reverseData(data: Data) { + data.labels?.reverse(); + data.series.reverse(); + for (const series of data.series) { + if (safeHasProperty(series, 'data')) { + series.data.reverse(); + } else if (Array.isArray(series)) { + series.reverse(); + } + } +} + +function normalizeMulti( + value: number | string | boolean | Date | Multi, + multi?: boolean | AxisName +) { + // We need to prepare multi value output (x and y data) + let x: number | undefined; + let y: number | undefined; + + // Single series value arrays are assumed to specify the Y-Axis value + // For example: [1, 2] => [{x: undefined, y: 1}, {x: undefined, y: 2}] + // If multi is a string then it's assumed that it specified which dimension should be filled as default + if (typeof value !== 'object') { + const num = getNumberOrUndefined(value); + + if (multi === 'x') { + x = num; + } else { + y = num; + } + } else { + if (safeHasProperty(value, 'x')) { + x = getNumberOrUndefined(value.x); + } + + if (safeHasProperty(value, 'y')) { + y = getNumberOrUndefined(value.y); + } + } + + if (x === undefined && y === undefined) { + return undefined; + } + + return { x, y } as NormalizedMulti; +} + +function normalizePrimitive( + value: SeriesPrimitiveValue, + multi?: boolean | AxisName +) { + if (isDataHoleValue(value)) { + // We're dealing with a hole in the data and therefore need to return undefined + // We're also returning undefined for multi value output + return undefined; + } + + if (multi) { + return normalizeMulti(value, multi); + } + + return getNumberOrUndefined(value); +} + +function normalizeSingleSeries( + series: Series | SeriesObject, + multi?: boolean | AxisName +): NormalizedSeries { + if (!Array.isArray(series)) { + // We are dealing with series object notation so we need to recurse on data property + return normalizeSingleSeries(series.data, multi); + } + + return series.map(value => { + if (safeHasProperty(value, 'value')) { + // We are dealing with value object notation so we need to recurse on value property + return normalizePrimitive(value.value, multi); + } + + return normalizePrimitive(value, multi); + }); +} + +/** + * Convert data series into plain array + * @param series The series object that contains the data to be visualized in the chart + * @param multi Create a multi dimensional array from a series data array where a value object with `x` and `y` values will be created. + * @return A plain array that contains the data to be visualized in the chart + */ +function normalizeSeries( + series: FlatSeries, + multi?: false, + distributed?: false +): NormalizedFlatSeries; +function normalizeSeries( + series: (Series | SeriesObject)[], + multi: true | AxisName, + distributed?: false +): NormalizedSeries[]; +function normalizeSeries( + series: FlatSeries | (Series | SeriesObject)[], + multi: boolean | undefined | AxisName, + distributed: true +): NormalizedSeries[]; +function normalizeSeries( + series: FlatSeries | (Series | SeriesObject)[], + multi?: boolean | undefined | AxisName, + distributed?: boolean +): NormalizedFlatSeries | NormalizedSeries[]; +function normalizeSeries( + series: FlatSeries | (Series | SeriesObject)[], + multi?: boolean | undefined | AxisName, + distributed?: boolean +) { + if (isArrayOfSeries(series)) { + return series.map(_ => normalizeSingleSeries(_, multi)); + } + + const normalizedSeries = normalizeSingleSeries(series, multi); + + if (distributed) { + return normalizedSeries.map(value => [value]); + } + + return normalizedSeries; +} diff --git a/src/core/data/segments.spec.ts b/src/core/data/segments.spec.ts new file mode 100644 index 000000000..2052e29a9 --- /dev/null +++ b/src/core/data/segments.spec.ts @@ -0,0 +1,84 @@ +import { splitIntoSegments } from './segments'; + +describe('Core', () => { + describe('Data', () => { + describe('Segments', () => { + function makeValues(arr: T[]) { + return arr.map((x, i) => ({ value: x, valueIndex: i })); + } + + it('should return empty array for empty input', () => { + expect(splitIntoSegments([], [])).toEqual([]); + }); + + it('should remove undefined values', () => { + const coords = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; + const values = makeValues([1, undefined, undefined, 4, undefined, 6]); + + expect(splitIntoSegments(coords, values)).toEqual([ + { + pathCoordinates: [1, 2], + valueData: [{ value: 1, valueIndex: 0 }] + }, + { + pathCoordinates: [7, 8], + valueData: [{ value: 4, valueIndex: 3 }] + }, + { + pathCoordinates: [11, 12], + valueData: [{ value: 6, valueIndex: 5 }] + } + ]); + }); + + it('should respect fillHoles option', () => { + const coords = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; + const values = makeValues([1, undefined, undefined, 4, undefined, 6]); + const options = { + fillHoles: true + }; + + expect(splitIntoSegments(coords, values, options)).toEqual([ + { + pathCoordinates: [1, 2, 7, 8, 11, 12], + valueData: [ + { value: 1, valueIndex: 0 }, + { value: 4, valueIndex: 3 }, + { value: 6, valueIndex: 5 } + ] + } + ]); + }); + + it('should respect increasingX option', () => { + const coords = [1, 2, 3, 4, 5, 6, 5, 6, 7, 8, 1, 2]; + const values = makeValues([1, 2, 3, 4, 5, 6]); + const options = { + increasingX: true + }; + + expect(splitIntoSegments(coords, values, options)).toEqual([ + { + pathCoordinates: [1, 2, 3, 4, 5, 6], + valueData: [ + { value: 1, valueIndex: 0 }, + { value: 2, valueIndex: 1 }, + { value: 3, valueIndex: 2 } + ] + }, + { + pathCoordinates: [5, 6, 7, 8], + valueData: [ + { value: 4, valueIndex: 3 }, + { value: 5, valueIndex: 4 } + ] + }, + { + pathCoordinates: [1, 2], + valueData: [{ value: 6, valueIndex: 5 }] + } + ]); + }); + }); + }); +}); diff --git a/src/core/data/segments.ts b/src/core/data/segments.ts new file mode 100644 index 000000000..778671890 --- /dev/null +++ b/src/core/data/segments.ts @@ -0,0 +1,81 @@ +import type { Segment, SegmentData } from '../types'; +import { getMultiValue } from './data'; + +/** + * Splits a list of coordinates and associated values into segments. Each returned segment contains a pathCoordinates + * valueData property describing the segment. + * + * With the default options, segments consist of contiguous sets of points that do not have an undefined value. Any + * points with undefined values are discarded. + * + * **Options** + * The following options are used to determine how segments are formed + * ```javascript + * var options = { + * // If fillHoles is true, undefined values are simply discarded without creating a new segment. Assuming other options are default, this returns single segment. + * fillHoles: false, + * // If increasingX is true, the coordinates in all segments have strictly increasing x-values. + * increasingX: false + * }; + * ``` + * + * @param pathCoordinates List of point coordinates to be split in the form [x1, y1, x2, y2 ... xn, yn] + * @param valueData List of associated point values in the form [v1, v2 .. vn] + * @param options Options set by user + * @return List of segments, each containing a pathCoordinates and valueData property. + */ +export function splitIntoSegments( + pathCoordinates: number[], + valueData: SegmentData[], + options?: { + increasingX?: boolean; + fillHoles?: boolean; + } +) { + const finalOptions = { + increasingX: false, + fillHoles: false, + ...options + }; + + const segments: Segment[] = []; + let hole = true; + + for (let i = 0; i < pathCoordinates.length; i += 2) { + // If this value is a "hole" we set the hole flag + if (getMultiValue(valueData[i / 2].value) === undefined) { + // if(valueData[i / 2].value === undefined) { + if (!finalOptions.fillHoles) { + hole = true; + } + } else { + if ( + finalOptions.increasingX && + i >= 2 && + pathCoordinates[i] <= pathCoordinates[i - 2] + ) { + // X is not increasing, so we need to make sure we start a new segment + hole = true; + } + + // If it's a valid value we need to check if we're coming out of a hole and create a new empty segment + if (hole) { + segments.push({ + pathCoordinates: [], + valueData: [] + }); + // As we have a valid value now, we are not in a "hole" anymore + hole = false; + } + + // Add to the segment pathCoordinates and valueData + segments[segments.length - 1].pathCoordinates.push( + pathCoordinates[i], + pathCoordinates[i + 1] + ); + segments[segments.length - 1].valueData.push(valueData[i / 2]); + } + } + + return segments; +} diff --git a/src/core/data/serialize.spec.ts b/src/core/data/serialize.spec.ts new file mode 100644 index 000000000..7c1126d5f --- /dev/null +++ b/src/core/data/serialize.spec.ts @@ -0,0 +1,48 @@ +import { serialize, deserialize } from './serialize'; + +describe('Core', () => { + describe('Data', () => { + describe('Serialize', () => { + it('should serialize and deserialize regular strings', () => { + const input = 'String test'; + expect(input).toMatch(deserialize(serialize(input))); + }); + + it('should serialize and deserialize strings with critical characters', () => { + const input = 'String test with critical characters " < > \' & &'; + expect(input).toMatch(deserialize(serialize(input))); + }); + + it('should serialize and deserialize numbers', () => { + const input = 12345.6789; + expect(input).toEqual(deserialize(serialize(input))); + }); + + it('should serialize and deserialize dates', () => { + const input = new Date(0); + expect(+input).toEqual(+new Date(deserialize(serialize(input)))); + }); + + it('should serialize and deserialize complex object types', () => { + const input = { + a: { + b: 100, + c: 'String test', + d: 'String test with critical characters " < > \' & &', + e: { + f: 'String test' + } + } + }; + + expect(input).toEqual(deserialize(serialize(input))); + }); + + it('should serialize and deserialize null, undefined and NaN', () => { + expect(null).toEqual(deserialize(serialize(null))); + expect(undefined).toEqual(deserialize(serialize(undefined))); + expect(deserialize(serialize(NaN))).toBeNaN(); + }); + }); + }); +}); diff --git a/src/core/data/serialize.ts b/src/core/data/serialize.ts new file mode 100644 index 000000000..ac27d44ac --- /dev/null +++ b/src/core/data/serialize.ts @@ -0,0 +1,68 @@ +import { escapingMap } from '../constants'; + +/** + * This function serializes arbitrary data to a string. In case of data that can't be easily converted to a string, this function will create a wrapper object and serialize the data using JSON.stringify. The outcoming string will always be escaped using Chartist.escapingMap. + * If called with null or undefined the function will return immediately with null or undefined. + */ +export function serialize(data: number | string | object): string; +export function serialize( + data: number | string | object | null | undefined | unknown +): string | null | undefined; +export function serialize( + data: number | string | object | null | undefined | unknown +) { + let serialized = ''; + + if (data === null || data === undefined) { + return data; + } else if (typeof data === 'number') { + serialized = '' + data; + } else if (typeof data === 'object') { + serialized = JSON.stringify({ data: data }); + } else { + serialized = String(data); + } + + return Object.keys(escapingMap).reduce( + (result, key) => result.replaceAll(key, escapingMap[key]), + serialized + ); +} + +/** + * This function de-serializes a string previously serialized with Chartist.serialize. The string will always be unescaped using Chartist.escapingMap before it's returned. Based on the input value the return type can be Number, String or Object. JSON.parse is used with try / catch to see if the unescaped string can be parsed into an Object and this Object will be returned on success. + */ +export function deserialize( + data: string +): T; +export function deserialize( + data: string | null | undefined +): T | null | undefined; +export function deserialize(data: unknown) { + if (typeof data !== 'string') { + return data; + } + + if (data === 'NaN') { + return NaN; + } + + data = Object.keys(escapingMap).reduce( + (result, key) => result.replaceAll(escapingMap[key], key), + data + ); + + // eslint-disable-next-line @typescript-eslint/no-explicit-any + let parsedData: any = data; + + if (typeof data === 'string') { + try { + parsedData = JSON.parse(data); + parsedData = parsedData.data !== undefined ? parsedData.data : parsedData; + } catch (e) { + /* Ingore */ + } + } + + return parsedData; +} diff --git a/src/core/index.ts b/src/core/index.ts new file mode 100644 index 000000000..17cbb96f2 --- /dev/null +++ b/src/core/index.ts @@ -0,0 +1,7 @@ +export * from './constants'; +export * from './lang'; +export * from './math'; +export * from './data'; +export * from './creation'; +export * from './optionsProvider'; +export * from './types'; diff --git a/src/core/lang.spec.ts b/src/core/lang.spec.ts new file mode 100644 index 000000000..92c8708f6 --- /dev/null +++ b/src/core/lang.spec.ts @@ -0,0 +1,26 @@ +import { quantity } from './lang'; + +describe('Core', () => { + describe('Lang', () => { + describe('quantity', () => { + it('should return value for numbers', () => { + expect(quantity(100)).toEqual({ value: 100 }); + expect(quantity(0)).toEqual({ value: 0 }); + expect(quantity(NaN)).toEqual({ value: NaN }); + expect(quantity(null)).toEqual({ value: 0 }); + expect(quantity(undefined)).toEqual({ value: NaN }); + }); + + it('should return value without unit from string', () => { + expect(quantity('100')).toEqual({ value: 100, unit: undefined }); + expect(quantity('0')).toEqual({ value: 0, unit: undefined }); + }); + + it('should return value and unit from string', () => { + expect(quantity('100%')).toEqual({ value: 100, unit: '%' }); + expect(quantity('100 %')).toEqual({ value: 100, unit: '%' }); + expect(quantity('0px')).toEqual({ value: 0, unit: 'px' }); + }); + }); + }); +}); diff --git a/src/core/lang.ts b/src/core/lang.ts new file mode 100644 index 000000000..311876a47 --- /dev/null +++ b/src/core/lang.ts @@ -0,0 +1,39 @@ +/** + * Converts a number to a string with a unit. If a string is passed then this will be returned unmodified. + * @return Returns the passed number value with unit. + */ +export function ensureUnit(value: T, unit: string) { + if (typeof value === 'number') { + return value + unit; + } + + return value; +} + +/** + * Converts a number or string to a quantity object. + * @return Returns an object containing the value as number and the unit as string. + */ +export function quantity(input: T) { + if (typeof input === 'string') { + const match = /^(\d+)\s*(.*)$/g.exec(input); + return { + value: match ? +match[1] : 0, + unit: match?.[2] || undefined + }; + } + + return { + value: Number(input) + }; +} + +/** + * Generates a-z from a number 0 to 26 + * @param n A number from 0 to 26 that will result in a letter a-z + * @return A character from a-z based on the input number n + */ +export function alphaNumerate(n: number) { + // Limit to a-z + return String.fromCharCode(97 + (n % 26)); +} diff --git a/src/core/math.ts b/src/core/math.ts new file mode 100644 index 000000000..66797ab34 --- /dev/null +++ b/src/core/math.ts @@ -0,0 +1,100 @@ +import type { Bounds } from './types'; +import { precision as globalPrecision } from './constants'; + +export const EPSILON = 2.221e-16; + +/** + * Calculate the order of magnitude for the chart scale + * @param value The value Range of the chart + * @return The order of magnitude + */ +export function orderOfMagnitude(value: number) { + return Math.floor(Math.log(Math.abs(value)) / Math.LN10); +} + +/** + * Project a data length into screen coordinates (pixels) + * @param axisLength The svg element for the chart + * @param length Single data value from a series array + * @param bounds All the values to set the bounds of the chart + * @return The projected data length in pixels + */ +export function projectLength( + axisLength: number, + length: number, + bounds: Bounds +) { + return (length / bounds.range) * axisLength; +} + +/** + * This helper function can be used to round values with certain precision level after decimal. This is used to prevent rounding errors near float point precision limit. + * @param value The value that should be rounded with precision + * @param [digits] The number of digits after decimal used to do the rounding + * @returns Rounded value + */ +export function roundWithPrecision(value: number, digits?: number) { + const precision = Math.pow(10, digits || globalPrecision); + return Math.round(value * precision) / precision; +} + +/** + * Pollard Rho Algorithm to find smallest factor of an integer value. There are more efficient algorithms for factorization, but this one is quite efficient and not so complex. + * @param num An integer number where the smallest factor should be searched for + * @returns The smallest integer factor of the parameter num. + */ +export function rho(num: number) { + if (num === 1) { + return num; + } + + function gcd(p: number, q: number): number { + if (p % q === 0) { + return q; + } else { + return gcd(q, p % q); + } + } + + function f(x: number) { + return x * x + 1; + } + + let x1 = 2; + let x2 = 2; + let divisor: number; + + if (num % 2 === 0) { + return 2; + } + + do { + x1 = f(x1) % num; + x2 = f(f(x2)) % num; + divisor = gcd(Math.abs(x1 - x2), num); + } while (divisor === 1); + + return divisor; +} + +/** + * Calculate cartesian coordinates of polar coordinates + * @param centerX X-axis coordinates of center point of circle segment + * @param centerY X-axis coordinates of center point of circle segment + * @param radius Radius of circle segment + * @param angleInDegrees Angle of circle segment in degrees + * @return Coordinates of point on circumference + */ +export function polarToCartesian( + centerX: number, + centerY: number, + radius: number, + angleInDegrees: number +) { + const angleInRadians = ((angleInDegrees - 90) * Math.PI) / 180.0; + + return { + x: centerX + radius * Math.cos(angleInRadians), + y: centerY + radius * Math.sin(angleInRadians) + }; +} diff --git a/src/core/optionsProvider.ts b/src/core/optionsProvider.ts new file mode 100644 index 000000000..bfc1060ab --- /dev/null +++ b/src/core/optionsProvider.ts @@ -0,0 +1,72 @@ +import type { EventEmitter } from '../event'; +import type { OptionsChangedEvent } from './types'; +import { extend } from '../utils'; + +export interface OptionsProvider { + removeMediaQueryListeners(): void; + getCurrentOptions(): T; +} + +/** + * Provides options handling functionality with callback for options changes triggered by responsive options and media query matches + * @param options Options set by user + * @param responsiveOptions Optional functions to add responsive behavior to chart + * @param eventEmitter The event emitter that will be used to emit the options changed events + * @return The consolidated options object from the defaults, base and matching responsive options + */ +export function optionsProvider( + options: T, + responsiveOptions: [string, T][] | undefined, + eventEmitter: EventEmitter +): OptionsProvider { + let currentOptions: T; + const mediaQueryListeners: MediaQueryList[] = []; + + function updateCurrentOptions(mediaEvent?: Event) { + const previousOptions = currentOptions; + currentOptions = extend({}, options); + + if (responsiveOptions) { + responsiveOptions.forEach(responsiveOption => { + const mql = window.matchMedia(responsiveOption[0]); + if (mql.matches) { + currentOptions = extend(currentOptions, responsiveOption[1]); + } + }); + } + + if (eventEmitter && mediaEvent) { + eventEmitter.emit>('optionsChanged', { + previousOptions, + currentOptions + }); + } + } + + function removeMediaQueryListeners() { + mediaQueryListeners.forEach(mql => + mql.removeEventListener('change', updateCurrentOptions) + ); + } + + if (!window.matchMedia) { + throw new Error( + "window.matchMedia not found! Make sure you're using a polyfill." + ); + } else if (responsiveOptions) { + responsiveOptions.forEach(responsiveOption => { + const mql = window.matchMedia(responsiveOption[0]); + mql.addEventListener('change', updateCurrentOptions); + mediaQueryListeners.push(mql); + }); + } + // Execute initially without an event argument so we get the correct options + updateCurrentOptions(); + + return { + removeMediaQueryListeners, + getCurrentOptions() { + return currentOptions; + } + }; +} diff --git a/src/core/types.ts b/src/core/types.ts new file mode 100644 index 000000000..ff67081e9 --- /dev/null +++ b/src/core/types.ts @@ -0,0 +1,300 @@ +import type { RequiredKeys } from '../utils'; +import type { Axis, AxisType } from '../axes'; +import type { Svg } from '../svg'; + +export interface ChartPadding { + top: number; + right: number; + bottom: number; + left: number; +} + +export interface ChartRect { + x1: number; + x2: number; + y1: number; + y2: number; + padding: ChartPadding; + width(): number; + height(): number; +} + +// eslint-disable-next-line @typescript-eslint/no-explicit-any +export type Plugin = (chart: any, options?: any) => void; + +// eslint-disable-next-line @typescript-eslint/no-explicit-any +export type Meta = any; + +export interface Options< + TXAxisOptions = AxisOptions, + TYAxisOptions = TXAxisOptions +> { + width?: number | string; + height?: number | string; + low?: number; + high?: number; + referenceValue?: number; + chartPadding?: number | Partial; + axisX?: TXAxisOptions; + axisY?: TYAxisOptions; + classNames?: Record; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + plugins?: (Plugin | [Plugin, any])[]; +} + +export interface AxisOptions { + type?: AxisType; + low?: number; + high?: number; + referenceValue?: number; + offset?: number; + position?: 'start' | 'end'; + labelOffset?: { + x: number; + y: number; + }; + showLabel?: boolean; + showGrid?: boolean; + labelInterpolationFnc?(value: Label, index: number): Label | null | undefined; + scaleMinSpace?: number; + onlyInteger?: boolean; + ticks?: Label[]; + stretch?: boolean; + divisor?: number; + highLow?: { + high: number; + low: number; + }; +} + +export type OptionsWithDefaults = RequiredKeys< + Options< + RequiredKeys< + AxisOptions, + 'offset' | 'labelOffset' | 'labelInterpolationFnc' + >, + RequiredKeys< + AxisOptions, + 'offset' | 'labelOffset' | 'labelInterpolationFnc' + > + >, + 'axisX' | 'axisY' | 'classNames' +>; + +export interface Bounds { + high: number; + low: number; + valueRange: number; + oom: number; + step: number; + min: number; + max: number; + range: number; + numberOfSteps: number; + values: number[]; +} + +export interface Segment { + pathCoordinates: number[]; + valueData: SegmentData[]; +} + +export interface SegmentData { + value: NormalizedSeriesValue; + valueIndex: number; + meta?: Meta; +} + +export type AxisName = 'x' | 'y'; + +export type Multi = + | { + x: number | string | null; + y: number | string | null; + } + | { + x: number | string | null; + } + | { + y: number | string | null; + }; + +export type NormalizedMulti = + | { + x: number; + y: number; + } + | { + x: number; + } + | { + y: number; + }; + +/** + * Data + */ + +export type Label = string | number | Date; + +export type AllSeriesTypes = FlatSeries | (Series | SeriesObject)[]; + +export interface Data { + labels?: Label[] | undefined; + series: T; +} + +/** + * Series + */ + +export type Series = SeriesValue[]; + +export interface SeriesObject { + name?: string; + className?: string; + meta?: Meta; + data: SeriesValue[]; +} + +export type SeriesValue = SeriesObjectValue | T; + +export type SeriesPrimitiveValue = + | number + | string + | boolean + | Date + | Multi + | null + | undefined; + +export interface SeriesObjectValue { + meta?: Meta; + value: T; +} + +/** + * Flat Series + */ + +export type FlatSeries = FlatSeriesValue[]; + +export type FlatSeriesValue = + | SeriesValue + | FlatSeriesObjectValue; + +export type FlatSeriesPrimitiveValue = number | string | null | undefined; + +export interface FlatSeriesObjectValue { + name?: string; + className?: string; + meta?: Meta; + value: T; +} + +/** + * Normalized Data + */ + +export type AllNormalizedSeriesTypes = + | NormalizedFlatSeries + | NormalizedSeries[]; + +export interface NormalizedData< + T extends AllNormalizedSeriesTypes = AllNormalizedSeriesTypes +> extends Data { + labels: Label[]; + series: T; +} + +/** + * Normalized Series + */ + +export type NormalizedSeries = NormalizedSeriesValue[]; + +export type NormalizedSeriesValue = NormalizedSeriesPrimitiveValue; + +export type NormalizedSeriesPrimitiveValue = + | number + | NormalizedMulti + | undefined; + +/** + * Normalized Flat Series + */ + +export type NormalizedFlatSeries = number[]; + +/** + * Events + */ + +export interface CreatedEvent { + chartRect: ChartRect; + axisX: Axis; + axisY: Axis; + svg: Svg; + options: TOptions; +} + +export interface DrawEvent { + type: string; + element: Svg; + group: Svg; + chartRect: ChartRect; + axisX: Axis; + axisY: Axis; + meta: Meta; + index: number; + series: FlatSeriesValue | Series | SeriesObject; + seriesIndex: number; +} + +export interface DataEvent { + type: 'initial' | 'update'; + data: Data; +} + +export interface OptionsChangedEvent { + previousOptions: T; + currentOptions: T; +} + +export interface GridDrawEvent + extends Omit< + DrawEvent, + 'chartRect' | 'axisX' | 'axisY' | 'meta' | 'series' | 'seriesIndex' + > { + type: 'grid'; + axis: Axis; + x1: number; + y1: number; + x2: number; + y2: number; +} + +export interface GridBackgroundDrawEvent { + type: 'gridBackground'; + group: Svg; + element: Svg; +} + +export interface LabelDrawEvent + extends Omit< + DrawEvent, + 'chartRect' | 'axisX' | 'axisY' | 'meta' | 'series' | 'seriesIndex' + > { + type: 'label'; + axis: Axis; + text: Label; + x: number; + y: number; + width: number; + height: number; +} + +export type AxesDrawEvent = + | GridDrawEvent + | GridBackgroundDrawEvent + | LabelDrawEvent; diff --git a/src/event/EventEmitter.ts b/src/event/EventEmitter.ts new file mode 100644 index 000000000..923aca876 --- /dev/null +++ b/src/event/EventEmitter.ts @@ -0,0 +1,82 @@ +/* eslint-disable @typescript-eslint/no-explicit-any */ +export type EventListener = (data: T) => void; + +export type AllEventsListener = (event: string, data: T) => void; + +export class EventEmitter { + private readonly listeners = new Map>(); + private readonly allListeners = new Set(); + + /** + * Add an event handler for a specific event + * @param event The event name + * @param listener A event handler function + */ + on(event: '*', listener: AllEventsListener): void; + on(event: string, listener: EventListener): void; + on(event: string, listener: EventListener | AllEventsListener) { + const { allListeners, listeners } = this; + + if (event === '*') { + allListeners.add(listener); + } else { + if (!listeners.has(event)) { + listeners.set(event, new Set()); + } + + (listeners.get(event) as Set).add( + listener as EventListener + ); + } + } + + /** + * Remove an event handler of a specific event name or remove all event handlers for a specific event. + * @param event The event name where a specific or all handlers should be removed + * @param [listener] An optional event handler function. If specified only this specific handler will be removed and otherwise all handlers are removed. + */ + off(event: '*', listener?: AllEventsListener): void; + off(event: string, listener?: EventListener): void; + off(event: string, listener?: EventListener | AllEventsListener) { + const { allListeners, listeners } = this; + + if (event === '*') { + if (listener) { + allListeners.delete(listener); + } else { + allListeners.clear(); + } + } else if (listeners.has(event)) { + const eventListeners = listeners.get(event) as Set; + + if (listener) { + eventListeners.delete(listener as EventListener); + } else { + eventListeners.clear(); + } + + if (!eventListeners.size) { + listeners.delete(event); + } + } + } + + /** + * Use this function to emit an event. All handlers that are listening for this event will be triggered with the data parameter. + * @param event The event name that should be triggered + * @param data Arbitrary data that will be passed to the event handler callback functions + */ + emit(event: string, data: T) { + const { allListeners, listeners } = this; + + // Only do something if there are event handlers with this name existing + if (listeners.has(event)) { + (listeners.get(event) as Set).forEach(listener => + listener(data) + ); + } + + // Emit event to star event handlers + allListeners.forEach(listener => listener(event, data)); + } +} diff --git a/src/event/index.ts b/src/event/index.ts new file mode 100644 index 000000000..1a0d45706 --- /dev/null +++ b/src/event/index.ts @@ -0,0 +1 @@ +export * from './EventEmitter'; diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 000000000..0564dee9d --- /dev/null +++ b/src/index.ts @@ -0,0 +1,7 @@ +export * from './core'; +export * from './event'; +export * from './charts'; +export * from './axes'; +export * as Interpolation from './interpolation'; +export * from './svg'; +export * from './utils'; diff --git a/src/interpolation/cardinal.ts b/src/interpolation/cardinal.ts new file mode 100644 index 000000000..97a8fd7f3 --- /dev/null +++ b/src/interpolation/cardinal.ts @@ -0,0 +1,130 @@ +import type { SegmentData } from '../core'; +import { splitIntoSegments } from '../core'; +import { SvgPath } from '../svg'; +import { none } from './none'; + +export interface CardinalInterpolationOptions { + tension?: number; + fillHoles?: boolean; +} + +/** + * Cardinal / Catmull-Rome spline interpolation is the default smoothing function in Chartist. It produces nice results where the splines will always meet the points. It produces some artifacts though when data values are increased or decreased rapidly. The line may not follow a very accurate path and if the line should be accurate this smoothing function does not produce the best results. + * + * Cardinal splines can only be created if there are more than two data points. If this is not the case this smoothing will fallback to `Chartist.Smoothing.none`. + * + * All smoothing functions within Chartist are factory functions that accept an options parameter. The cardinal interpolation function accepts one configuration parameter `tension`, between 0 and 1, which controls the smoothing intensity. + * + * @example + * const chart = new LineChart('.ct-chart', { + * labels: [1, 2, 3, 4, 5], + * series: [[1, 2, 8, 1, 7]] + * }, { + * lineSmooth: Interpolation.cardinal({ + * tension: 1, + * fillHoles: false + * }) + * }); + * + * @param options The options of the cardinal factory function. + */ +export function cardinal(options?: CardinalInterpolationOptions) { + const finalOptions = { + tension: 1, + fillHoles: false, + ...options + }; + + const t = Math.min(1, Math.max(0, finalOptions.tension)); + const c = 1 - t; + + return function cardinalInterpolation( + pathCoordinates: number[], + valueData: SegmentData[] + ): SvgPath { + // First we try to split the coordinates into segments + // This is necessary to treat "holes" in line charts + const segments = splitIntoSegments(pathCoordinates, valueData, { + fillHoles: finalOptions.fillHoles + }); + + if (!segments.length) { + // If there were no segments return 'none' interpolation + return none()([], []); + } else if (segments.length > 1) { + // If the split resulted in more that one segment we need to interpolate each segment individually and join them + // afterwards together into a single path. + // For each segment we will recurse the cardinal function + // Join the segment path data into a single path and return + return SvgPath.join( + segments.map(segment => + cardinalInterpolation(segment.pathCoordinates, segment.valueData) + ) + ); + } else { + // If there was only one segment we can proceed regularly by using pathCoordinates and valueData from the first + // segment + pathCoordinates = segments[0].pathCoordinates; + valueData = segments[0].valueData; + + // If less than two points we need to fallback to no smoothing + if (pathCoordinates.length <= 4) { + return none()(pathCoordinates, valueData); + } + + const path = new SvgPath().move( + pathCoordinates[0], + pathCoordinates[1], + false, + valueData[0] + ); + const z = false; + + for ( + let i = 0, iLen = pathCoordinates.length; + iLen - 2 * Number(!z) > i; + i += 2 + ) { + const p = [ + { x: +pathCoordinates[i - 2], y: +pathCoordinates[i - 1] }, + { x: +pathCoordinates[i], y: +pathCoordinates[i + 1] }, + { x: +pathCoordinates[i + 2], y: +pathCoordinates[i + 3] }, + { x: +pathCoordinates[i + 4], y: +pathCoordinates[i + 5] } + ]; + + if (z) { + if (!i) { + p[0] = { + x: +pathCoordinates[iLen - 2], + y: +pathCoordinates[iLen - 1] + }; + } else if (iLen - 4 === i) { + p[3] = { x: +pathCoordinates[0], y: +pathCoordinates[1] }; + } else if (iLen - 2 === i) { + p[2] = { x: +pathCoordinates[0], y: +pathCoordinates[1] }; + p[3] = { x: +pathCoordinates[2], y: +pathCoordinates[3] }; + } + } else { + if (iLen - 4 === i) { + p[3] = p[2]; + } else if (!i) { + p[0] = { x: +pathCoordinates[i], y: +pathCoordinates[i + 1] }; + } + } + + path.curve( + (t * (-p[0].x + 6 * p[1].x + p[2].x)) / 6 + c * p[2].x, + (t * (-p[0].y + 6 * p[1].y + p[2].y)) / 6 + c * p[2].y, + (t * (p[1].x + 6 * p[2].x - p[3].x)) / 6 + c * p[2].x, + (t * (p[1].y + 6 * p[2].y - p[3].y)) / 6 + c * p[2].y, + p[2].x, + p[2].y, + false, + valueData[(i + 2) / 2] + ); + } + + return path; + } + }; +} diff --git a/src/interpolation/index.ts b/src/interpolation/index.ts new file mode 100644 index 000000000..5ed6a30c6 --- /dev/null +++ b/src/interpolation/index.ts @@ -0,0 +1,5 @@ +export * from './none'; +export * from './simple'; +export * from './step'; +export * from './cardinal'; +export * from './monotoneCubic'; diff --git a/src/interpolation/monotoneCubic.ts b/src/interpolation/monotoneCubic.ts new file mode 100644 index 000000000..5e804e9ca --- /dev/null +++ b/src/interpolation/monotoneCubic.ts @@ -0,0 +1,136 @@ +import type { SegmentData } from '../core'; +import { splitIntoSegments } from '../core'; +import { SvgPath } from '../svg'; +import { none } from './none'; + +export interface MonotoneCubicInterpolationOptions { + fillHoles?: boolean; +} + +/** + * Monotone Cubic spline interpolation produces a smooth curve which preserves monotonicity. Unlike cardinal splines, the curve will not extend beyond the range of y-values of the original data points. + * + * Monotone Cubic splines can only be created if there are more than two data points. If this is not the case this smoothing will fallback to `Chartist.Smoothing.none`. + * + * The x-values of subsequent points must be increasing to fit a Monotone Cubic spline. If this condition is not met for a pair of adjacent points, then there will be a break in the curve between those data points. + * + * All smoothing functions within Chartist are factory functions that accept an options parameter. + * + * @example + * const chart = new LineChart('.ct-chart', { + * labels: [1, 2, 3, 4, 5], + * series: [[1, 2, 8, 1, 7]] + * }, { + * lineSmooth: Interpolation.monotoneCubic({ + * fillHoles: false + * }) + * }); + * + * @param options The options of the monotoneCubic factory function. + */ +export function monotoneCubic(options?: MonotoneCubicInterpolationOptions) { + const finalOptions = { + fillHoles: false, + ...options + }; + + return function monotoneCubicInterpolation( + pathCoordinates: number[], + valueData: SegmentData[] + ): SvgPath { + // First we try to split the coordinates into segments + // This is necessary to treat "holes" in line charts + const segments = splitIntoSegments(pathCoordinates, valueData, { + fillHoles: finalOptions.fillHoles, + increasingX: true + }); + + if (!segments.length) { + // If there were no segments return 'Chartist.Interpolation.none' + return none()([], []); + } else if (segments.length > 1) { + // If the split resulted in more that one segment we need to interpolate each segment individually and join them + // afterwards together into a single path. + // For each segment we will recurse the monotoneCubic fn function + // Join the segment path data into a single path and return + return SvgPath.join( + segments.map(segment => + monotoneCubicInterpolation(segment.pathCoordinates, segment.valueData) + ) + ); + } else { + // If there was only one segment we can proceed regularly by using pathCoordinates and valueData from the first + // segment + pathCoordinates = segments[0].pathCoordinates; + valueData = segments[0].valueData; + + // If less than three points we need to fallback to no smoothing + if (pathCoordinates.length <= 4) { + return none()(pathCoordinates, valueData); + } + + const xs = []; + const ys = []; + const n = pathCoordinates.length / 2; + const ms = []; + const ds = []; + const dys = []; + const dxs = []; + + // Populate x and y coordinates into separate arrays, for readability + for (let i = 0; i < n; i++) { + xs[i] = pathCoordinates[i * 2]; + ys[i] = pathCoordinates[i * 2 + 1]; + } + + // Calculate deltas and derivative + for (let i = 0; i < n - 1; i++) { + dys[i] = ys[i + 1] - ys[i]; + dxs[i] = xs[i + 1] - xs[i]; + ds[i] = dys[i] / dxs[i]; + } + + // Determine desired slope (m) at each point using Fritsch-Carlson method + // See: http://math.stackexchange.com/questions/45218/implementation-of-monotone-cubic-interpolation + ms[0] = ds[0]; + ms[n - 1] = ds[n - 2]; + + for (let i = 1; i < n - 1; i++) { + if (ds[i] === 0 || ds[i - 1] === 0 || ds[i - 1] > 0 !== ds[i] > 0) { + ms[i] = 0; + } else { + ms[i] = + (3 * (dxs[i - 1] + dxs[i])) / + ((2 * dxs[i] + dxs[i - 1]) / ds[i - 1] + + (dxs[i] + 2 * dxs[i - 1]) / ds[i]); + + if (!isFinite(ms[i])) { + ms[i] = 0; + } + } + } + + // Now build a path from the slopes + const path = new SvgPath().move(xs[0], ys[0], false, valueData[0]); + + for (let i = 0; i < n - 1; i++) { + path.curve( + // First control point + xs[i] + dxs[i] / 3, + ys[i] + (ms[i] * dxs[i]) / 3, + // Second control point + xs[i + 1] - dxs[i] / 3, + ys[i + 1] - (ms[i + 1] * dxs[i]) / 3, + // End point + xs[i + 1], + ys[i + 1], + + false, + valueData[i + 1] + ); + } + + return path; + } + }; +} diff --git a/src/interpolation/none.ts b/src/interpolation/none.ts new file mode 100644 index 000000000..b81ced7b7 --- /dev/null +++ b/src/interpolation/none.ts @@ -0,0 +1,55 @@ +import type { SegmentData } from '../core'; +import { getMultiValue } from '../core'; +import { SvgPath } from '../svg'; + +export interface NoneInterpolationOptions { + fillHoles?: boolean; +} + +/** + * This interpolation function does not smooth the path and the result is only containing lines and no curves. + * + * @example + * const chart = new LineChart('.ct-chart', { + * labels: [1, 2, 3, 4, 5], + * series: [[1, 2, 8, 1, 7]] + * }, { + * lineSmooth: Interpolation.none({ + * fillHoles: false + * }) + * }); + */ +export function none(options?: NoneInterpolationOptions) { + const finalOptions = { + fillHoles: false, + ...options + }; + + return function noneInterpolation( + pathCoordinates: number[], + valueData: SegmentData[] + ) { + const path = new SvgPath(); + let hole = true; + + for (let i = 0; i < pathCoordinates.length; i += 2) { + const currX = pathCoordinates[i]; + const currY = pathCoordinates[i + 1]; + const currData = valueData[i / 2]; + + if (getMultiValue(currData.value) !== undefined) { + if (hole) { + path.move(currX, currY, false, currData); + } else { + path.line(currX, currY, false, currData); + } + + hole = false; + } else if (!finalOptions.fillHoles) { + hole = true; + } + } + + return path; + }; +} diff --git a/src/interpolation/simple.ts b/src/interpolation/simple.ts new file mode 100644 index 000000000..5708a38b1 --- /dev/null +++ b/src/interpolation/simple.ts @@ -0,0 +1,80 @@ +import type { SegmentData } from '../core/types'; +import { SvgPath } from '../svg'; + +export interface SimpleInteractionOptions { + divisor?: number; + fillHoles?: boolean; +} + +/** + * Simple smoothing creates horizontal handles that are positioned with a fraction of the length between two data points. You can use the divisor option to specify the amount of smoothing. + * + * Simple smoothing can be used instead of `Chartist.Smoothing.cardinal` if you'd like to get rid of the artifacts it produces sometimes. Simple smoothing produces less flowing lines but is accurate by hitting the points and it also doesn't swing below or above the given data point. + * + * All smoothing functions within Chartist are factory functions that accept an options parameter. The simple interpolation function accepts one configuration parameter `divisor`, between 1 and āˆž, which controls the smoothing characteristics. + * + * @example + * const chart = new LineChart('.ct-chart', { + * labels: [1, 2, 3, 4, 5], + * series: [[1, 2, 8, 1, 7]] + * }, { + * lineSmooth: Interpolation.simple({ + * divisor: 2, + * fillHoles: false + * }) + * }); + * + * @param options The options of the simple interpolation factory function. + */ +export function simple(options?: SimpleInteractionOptions) { + const finalOptions = { + divisor: 2, + fillHoles: false, + ...options + }; + + const d = 1 / Math.max(1, finalOptions.divisor); + + return function simpleInterpolation( + pathCoordinates: number[], + valueData: SegmentData[] + ) { + const path = new SvgPath(); + let prevX = 0; + let prevY = 0; + let prevData; + + for (let i = 0; i < pathCoordinates.length; i += 2) { + const currX = pathCoordinates[i]; + const currY = pathCoordinates[i + 1]; + const length = (currX - prevX) * d; + const currData = valueData[i / 2]; + + if (currData.value !== undefined) { + if (prevData === undefined) { + path.move(currX, currY, false, currData); + } else { + path.curve( + prevX + length, + prevY, + currX - length, + currY, + currX, + currY, + false, + currData + ); + } + + prevX = currX; + prevY = currY; + prevData = currData; + } else if (!finalOptions.fillHoles) { + prevX = prevY = 0; + prevData = undefined; + } + } + + return path; + }; +} diff --git a/src/interpolation/step.ts b/src/interpolation/step.ts new file mode 100644 index 000000000..cbe92a7e1 --- /dev/null +++ b/src/interpolation/step.ts @@ -0,0 +1,74 @@ +import type { SegmentData } from '../core'; +import { SvgPath } from '../svg'; + +export interface StepInterpolationOptions { + postpone?: boolean; + fillHoles?: boolean; +} + +/** + * Step interpolation will cause the line chart to move in steps rather than diagonal or smoothed lines. This interpolation will create additional points that will also be drawn when the `showPoint` option is enabled. + * + * All smoothing functions within Chartist are factory functions that accept an options parameter. The step interpolation function accepts one configuration parameter `postpone`, that can be `true` or `false`. The default value is `true` and will cause the step to occur where the value actually changes. If a different behaviour is needed where the step is shifted to the left and happens before the actual value, this option can be set to `false`. + * + * @example + * var chart = new Chartist.Line('.ct-chart', { + * labels: [1, 2, 3, 4, 5], + * series: [[1, 2, 8, 1, 7]] + * }, { + * lineSmooth: Interpolation.step({ + * postpone: true, + * fillHoles: false + * }) + * }); + */ +export function step(options?: StepInterpolationOptions) { + const finalOptions = { + postpone: true, + fillHoles: false, + ...options + }; + + return function stepInterpolation( + pathCoordinates: number[], + valueData: SegmentData[] + ) { + const path = new SvgPath(); + + let prevX = 0; + let prevY = 0; + let prevData; + + for (let i = 0; i < pathCoordinates.length; i += 2) { + const currX = pathCoordinates[i]; + const currY = pathCoordinates[i + 1]; + const currData = valueData[i / 2]; + + // If the current point is also not a hole we can draw the step lines + if (currData.value !== undefined) { + if (prevData === undefined) { + path.move(currX, currY, false, currData); + } else { + if (finalOptions.postpone) { + // If postponed we should draw the step line with the value of the previous value + path.line(currX, prevY, false, prevData); + } else { + // If not postponed we should draw the step line with the value of the current value + path.line(prevX, currY, false, currData); + } + // Line to the actual point (this should only be a Y-Axis movement + path.line(currX, currY, false, currData); + } + + prevX = currX; + prevY = currY; + prevData = currData; + } else if (!finalOptions.fillHoles) { + prevX = prevY = 0; + prevData = undefined; + } + } + + return path; + }; +} diff --git a/src/scripts/axes/auto-scale-axis.js b/src/scripts/axes/auto-scale-axis.js deleted file mode 100644 index 977f5a7dc..000000000 --- a/src/scripts/axes/auto-scale-axis.js +++ /dev/null @@ -1,54 +0,0 @@ -/** - * The auto scale axis uses standard linear scale projection of values along an axis. It uses order of magnitude to find a scale automatically and evaluates the available space in order to find the perfect amount of ticks for your chart. - * **Options** - * The following options are used by this axis in addition to the default axis options outlined in the axis configuration of the chart default settings. - * ```javascript - * var options = { - * // If high is specified then the axis will display values explicitly up to this value and the computed maximum from the data is ignored - * high: 100, - * // If low is specified then the axis will display values explicitly down to this value and the computed minimum from the data is ignored - * low: 0, - * // This option will be used when finding the right scale division settings. The amount of ticks on the scale will be determined so that as many ticks as possible will be displayed, while not violating this minimum required space (in pixel). - * scaleMinSpace: 20, - * // Can be set to true or false. If set to true, the scale will be generated with whole numbers only. - * onlyInteger: true, - * // The reference value can be used to make sure that this value will always be on the chart. This is especially useful on bipolar charts where the bipolar center always needs to be part of the chart. - * referenceValue: 5 - * }; - * ``` - * - * @module Chartist.AutoScaleAxis - */ -/* global Chartist */ -(function (globalRoot, Chartist) { - 'use strict'; - - var window = globalRoot.window; - var document = globalRoot.document; - - function AutoScaleAxis(axisUnit, data, chartRect, options) { - // Usually we calculate highLow based on the data but this can be overriden by a highLow object in the options - var highLow = options.highLow || Chartist.getHighLow(data, options, axisUnit.pos); - this.bounds = Chartist.getBounds(chartRect[axisUnit.rectEnd] - chartRect[axisUnit.rectStart], highLow, options.scaleMinSpace || 20, options.onlyInteger); - this.range = { - min: this.bounds.min, - max: this.bounds.max - }; - - Chartist.AutoScaleAxis.super.constructor.call(this, - axisUnit, - chartRect, - this.bounds.values, - options); - } - - function projectValue(value) { - return this.axisLength * (+Chartist.getMultiValue(value, this.units.pos) - this.bounds.min) / this.bounds.range; - } - - Chartist.AutoScaleAxis = Chartist.Axis.extend({ - constructor: AutoScaleAxis, - projectValue: projectValue - }); - -}(this || global, Chartist)); diff --git a/src/scripts/axes/axis.js b/src/scripts/axes/axis.js deleted file mode 100644 index 5f0cb8c9e..000000000 --- a/src/scripts/axes/axis.js +++ /dev/null @@ -1,119 +0,0 @@ -/* global Chartist */ -(function (globalRoot, Chartist) { - 'use strict'; - - var window = globalRoot.window; - var document = globalRoot.document; - - var axisUnits = { - x: { - pos: 'x', - len: 'width', - dir: 'horizontal', - rectStart: 'x1', - rectEnd: 'x2', - rectOffset: 'y2' - }, - y: { - pos: 'y', - len: 'height', - dir: 'vertical', - rectStart: 'y2', - rectEnd: 'y1', - rectOffset: 'x1' - } - }; - - function Axis(units, chartRect, ticks, options) { - this.units = units; - this.counterUnits = units === axisUnits.x ? axisUnits.y : axisUnits.x; - this.chartRect = chartRect; - this.axisLength = chartRect[units.rectEnd] - chartRect[units.rectStart]; - this.gridOffset = chartRect[units.rectOffset]; - this.ticks = ticks; - this.options = options; - } - - function createGridAndLabels(gridGroup, labelGroup, useForeignObject, chartOptions, eventEmitter) { - var axisOptions = chartOptions['axis' + this.units.pos.toUpperCase()]; - var projectedValues = this.ticks.map(this.projectValue.bind(this)); - var labelValues = this.ticks.map(axisOptions.labelInterpolationFnc); - - projectedValues.forEach(function(projectedValue, index) { - var labelOffset = { - x: 0, - y: 0 - }; - - // TODO: Find better solution for solving this problem - // Calculate how much space we have available for the label - var labelLength; - if(projectedValues[index + 1]) { - // If we still have one label ahead, we can calculate the distance to the next tick / label - labelLength = projectedValues[index + 1] - projectedValue; - } else { - // If we don't have a label ahead and we have only two labels in total, we just take the remaining distance to - // on the whole axis length. We limit that to a minimum of 30 pixel, so that labels close to the border will - // still be visible inside of the chart padding. - labelLength = Math.max(this.axisLength - projectedValue, 30); - } - - // Skip grid lines and labels where interpolated label values are falsey (execpt for 0) - if(Chartist.isFalseyButZero(labelValues[index]) && labelValues[index] !== '') { - return; - } - - // Transform to global coordinates using the chartRect - // We also need to set the label offset for the createLabel function - if(this.units.pos === 'x') { - projectedValue = this.chartRect.x1 + projectedValue; - labelOffset.x = chartOptions.axisX.labelOffset.x; - - // If the labels should be positioned in start position (top side for vertical axis) we need to set a - // different offset as for positioned with end (bottom) - if(chartOptions.axisX.position === 'start') { - labelOffset.y = this.chartRect.padding.top + chartOptions.axisX.labelOffset.y + (useForeignObject ? 5 : 20); - } else { - labelOffset.y = this.chartRect.y1 + chartOptions.axisX.labelOffset.y + (useForeignObject ? 5 : 20); - } - } else { - projectedValue = this.chartRect.y1 - projectedValue; - labelOffset.y = chartOptions.axisY.labelOffset.y - (useForeignObject ? labelLength : 0); - - // If the labels should be positioned in start position (left side for horizontal axis) we need to set a - // different offset as for positioned with end (right side) - if(chartOptions.axisY.position === 'start') { - labelOffset.x = useForeignObject ? this.chartRect.padding.left + chartOptions.axisY.labelOffset.x : this.chartRect.x1 - 10; - } else { - labelOffset.x = this.chartRect.x2 + chartOptions.axisY.labelOffset.x + 10; - } - } - - if(axisOptions.showGrid) { - Chartist.createGrid(projectedValue, index, this, this.gridOffset, this.chartRect[this.counterUnits.len](), gridGroup, [ - chartOptions.classNames.grid, - chartOptions.classNames[this.units.dir] - ], eventEmitter); - } - - if(axisOptions.showLabel) { - Chartist.createLabel(projectedValue, labelLength, index, labelValues, this, axisOptions.offset, labelOffset, labelGroup, [ - chartOptions.classNames.label, - chartOptions.classNames[this.units.dir], - (axisOptions.position === 'start' ? chartOptions.classNames[axisOptions.position] : chartOptions.classNames['end']) - ], useForeignObject, eventEmitter); - } - }.bind(this)); - } - - Chartist.Axis = Chartist.Class.extend({ - constructor: Axis, - createGridAndLabels: createGridAndLabels, - projectValue: function(value, index, data) { - throw new Error('Base axis can\'t be instantiated!'); - } - }); - - Chartist.Axis.units = axisUnits; - -}(this || global, Chartist)); diff --git a/src/scripts/axes/fixed-scale-axis.js b/src/scripts/axes/fixed-scale-axis.js deleted file mode 100644 index 3b908850d..000000000 --- a/src/scripts/axes/fixed-scale-axis.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * The fixed scale axis uses standard linear projection of values along an axis. It makes use of a divisor option to divide the range provided from the minimum and maximum value or the options high and low that will override the computed minimum and maximum. - * **Options** - * The following options are used by this axis in addition to the default axis options outlined in the axis configuration of the chart default settings. - * ```javascript - * var options = { - * // If high is specified then the axis will display values explicitly up to this value and the computed maximum from the data is ignored - * high: 100, - * // If low is specified then the axis will display values explicitly down to this value and the computed minimum from the data is ignored - * low: 0, - * // If specified then the value range determined from minimum to maximum (or low and high) will be divided by this number and ticks will be generated at those division points. The default divisor is 1. - * divisor: 4, - * // If ticks is explicitly set, then the axis will not compute the ticks with the divisor, but directly use the data in ticks to determine at what points on the axis a tick need to be generated. - * ticks: [1, 10, 20, 30] - * }; - * ``` - * - * @module Chartist.FixedScaleAxis - */ -/* global Chartist */ -(function (globalRoot, Chartist) { - 'use strict'; - - var window = globalRoot.window; - var document = globalRoot.document; - - function FixedScaleAxis(axisUnit, data, chartRect, options) { - var highLow = options.highLow || Chartist.getHighLow(data, options, axisUnit.pos); - this.divisor = options.divisor || 1; - this.ticks = options.ticks || Chartist.times(this.divisor).map(function(value, index) { - return highLow.low + (highLow.high - highLow.low) / this.divisor * index; - }.bind(this)); - this.ticks.sort(function(a, b) { - return a - b; - }); - this.range = { - min: highLow.low, - max: highLow.high - }; - - Chartist.FixedScaleAxis.super.constructor.call(this, - axisUnit, - chartRect, - this.ticks, - options); - - this.stepLength = this.axisLength / this.divisor; - } - - function projectValue(value) { - return this.axisLength * (+Chartist.getMultiValue(value, this.units.pos) - this.range.min) / (this.range.max - this.range.min); - } - - Chartist.FixedScaleAxis = Chartist.Axis.extend({ - constructor: FixedScaleAxis, - projectValue: projectValue - }); - -}(this || global, Chartist)); diff --git a/src/scripts/axes/step-axis.js b/src/scripts/axes/step-axis.js deleted file mode 100644 index 394ba1a6e..000000000 --- a/src/scripts/axes/step-axis.js +++ /dev/null @@ -1,43 +0,0 @@ -/** - * The step axis for step based charts like bar chart or step based line charts. It uses a fixed amount of ticks that will be equally distributed across the whole axis length. The projection is done using the index of the data value rather than the value itself and therefore it's only useful for distribution purpose. - * **Options** - * The following options are used by this axis in addition to the default axis options outlined in the axis configuration of the chart default settings. - * ```javascript - * var options = { - * // Ticks to be used to distribute across the axis length. As this axis type relies on the index of the value rather than the value, arbitrary data that can be converted to a string can be used as ticks. - * ticks: ['One', 'Two', 'Three'], - * // If set to true the full width will be used to distribute the values where the last value will be at the maximum of the axis length. If false the spaces between the ticks will be evenly distributed instead. - * stretch: true - * }; - * ``` - * - * @module Chartist.StepAxis - */ -/* global Chartist */ -(function (globalRoot, Chartist) { - 'use strict'; - - var window = globalRoot.window; - var document = globalRoot.document; - - function StepAxis(axisUnit, data, chartRect, options) { - Chartist.StepAxis.super.constructor.call(this, - axisUnit, - chartRect, - options.ticks, - options); - - var calc = Math.max(1, options.ticks.length - (options.stretch ? 1 : 0)); - this.stepLength = this.axisLength / calc; - } - - function projectValue(value, index) { - return this.stepLength * index; - } - - Chartist.StepAxis = Chartist.Axis.extend({ - constructor: StepAxis, - projectValue: projectValue - }); - -}(this || global, Chartist)); diff --git a/src/scripts/base.js b/src/scripts/base.js deleted file mode 100644 index 98ff6bc91..000000000 --- a/src/scripts/base.js +++ /dev/null @@ -1,195 +0,0 @@ -/** - * Base for all chart types. The methods in Chartist.Base are inherited to all chart types. - * - * @module Chartist.Base - */ -/* global Chartist */ -(function(globalRoot, Chartist) { - 'use strict'; - - var window = globalRoot.window; - - // TODO: Currently we need to re-draw the chart on window resize. This is usually very bad and will affect performance. - // This is done because we can't work with relative coordinates when drawing the chart because SVG Path does not - // work with relative positions yet. We need to check if we can do a viewBox hack to switch to percentage. - // See http://mozilla.6506.n7.nabble.com/Specyfing-paths-with-percentages-unit-td247474.html - // Update: can be done using the above method tested here: http://codepen.io/gionkunz/pen/KDvLj - // The problem is with the label offsets that can't be converted into percentage and affecting the chart container - /** - * Updates the chart which currently does a full reconstruction of the SVG DOM - * - * @param {Object} [data] Optional data you'd like to set for the chart before it will update. If not specified the update method will use the data that is already configured with the chart. - * @param {Object} [options] Optional options you'd like to add to the previous options for the chart before it will update. If not specified the update method will use the options that have been already configured with the chart. - * @param {Boolean} [override] If set to true, the passed options will be used to extend the options that have been configured already. Otherwise the chart default options will be used as the base - * @memberof Chartist.Base - */ - function update(data, options, override) { - if(data) { - this.data = data || {}; - this.data.labels = this.data.labels || []; - this.data.series = this.data.series || []; - // Event for data transformation that allows to manipulate the data before it gets rendered in the charts - this.eventEmitter.emit('data', { - type: 'update', - data: this.data - }); - } - - if(options) { - this.options = Chartist.extend({}, override ? this.options : this.defaultOptions, options); - - // If chartist was not initialized yet, we just set the options and leave the rest to the initialization - // Otherwise we re-create the optionsProvider at this point - if(!this.initializeTimeoutId) { - this.optionsProvider.removeMediaQueryListeners(); - this.optionsProvider = Chartist.optionsProvider(this.options, this.responsiveOptions, this.eventEmitter); - } - } - - // Only re-created the chart if it has been initialized yet - if(!this.initializeTimeoutId) { - this.createChart(this.optionsProvider.getCurrentOptions()); - } - - // Return a reference to the chart object to chain up calls - return this; - } - - /** - * This method can be called on the API object of each chart and will un-register all event listeners that were added to other components. This currently includes a window.resize listener as well as media query listeners if any responsive options have been provided. Use this function if you need to destroy and recreate Chartist charts dynamically. - * - * @memberof Chartist.Base - */ - function detach() { - // Only detach if initialization already occurred on this chart. If this chart still hasn't initialized (therefore - // the initializationTimeoutId is still a valid timeout reference, we will clear the timeout - if(!this.initializeTimeoutId) { - window.removeEventListener('resize', this.resizeListener); - this.optionsProvider.removeMediaQueryListeners(); - } else { - window.clearTimeout(this.initializeTimeoutId); - } - - return this; - } - - /** - * Use this function to register event handlers. The handler callbacks are synchronous and will run in the main thread rather than the event loop. - * - * @memberof Chartist.Base - * @param {String} event Name of the event. Check the examples for supported events. - * @param {Function} handler The handler function that will be called when an event with the given name was emitted. This function will receive a data argument which contains event data. See the example for more details. - */ - function on(event, handler) { - this.eventEmitter.addEventHandler(event, handler); - return this; - } - - /** - * Use this function to un-register event handlers. If the handler function parameter is omitted all handlers for the given event will be un-registered. - * - * @memberof Chartist.Base - * @param {String} event Name of the event for which a handler should be removed - * @param {Function} [handler] The handler function that that was previously used to register a new event handler. This handler will be removed from the event handler list. If this parameter is omitted then all event handlers for the given event are removed from the list. - */ - function off(event, handler) { - this.eventEmitter.removeEventHandler(event, handler); - return this; - } - - function initialize() { - // Add window resize listener that re-creates the chart - window.addEventListener('resize', this.resizeListener); - - // Obtain current options based on matching media queries (if responsive options are given) - // This will also register a listener that is re-creating the chart based on media changes - this.optionsProvider = Chartist.optionsProvider(this.options, this.responsiveOptions, this.eventEmitter); - // Register options change listener that will trigger a chart update - this.eventEmitter.addEventHandler('optionsChanged', function() { - this.update(); - }.bind(this)); - - // Before the first chart creation we need to register us with all plugins that are configured - // Initialize all relevant plugins with our chart object and the plugin options specified in the config - if(this.options.plugins) { - this.options.plugins.forEach(function(plugin) { - if(plugin instanceof Array) { - plugin[0](this, plugin[1]); - } else { - plugin(this); - } - }.bind(this)); - } - - // Event for data transformation that allows to manipulate the data before it gets rendered in the charts - this.eventEmitter.emit('data', { - type: 'initial', - data: this.data - }); - - // Create the first chart - this.createChart(this.optionsProvider.getCurrentOptions()); - - // As chart is initialized from the event loop now we can reset our timeout reference - // This is important if the chart gets initialized on the same element twice - this.initializeTimeoutId = undefined; - } - - /** - * Constructor of chart base class. - * - * @param query - * @param data - * @param defaultOptions - * @param options - * @param responsiveOptions - * @constructor - */ - function Base(query, data, defaultOptions, options, responsiveOptions) { - this.container = Chartist.querySelector(query); - this.data = data || {}; - this.data.labels = this.data.labels || []; - this.data.series = this.data.series || []; - this.defaultOptions = defaultOptions; - this.options = options; - this.responsiveOptions = responsiveOptions; - this.eventEmitter = Chartist.EventEmitter(); - this.supportsForeignObject = Chartist.Svg.isSupported('Extensibility'); - this.supportsAnimations = Chartist.Svg.isSupported('AnimationEventsAttribute'); - this.resizeListener = function resizeListener(){ - this.update(); - }.bind(this); - - if(this.container) { - // If chartist was already initialized in this container we are detaching all event listeners first - if(this.container.__chartist__) { - this.container.__chartist__.detach(); - } - - this.container.__chartist__ = this; - } - - // Using event loop for first draw to make it possible to register event listeners in the same call stack where - // the chart was created. - this.initializeTimeoutId = setTimeout(initialize.bind(this), 0); - } - - // Creating the chart base class - Chartist.Base = Chartist.Class.extend({ - constructor: Base, - optionsProvider: undefined, - container: undefined, - svg: undefined, - eventEmitter: undefined, - createChart: function() { - throw new Error('Base chart type can\'t be instantiated!'); - }, - update: update, - detach: detach, - on: on, - off: off, - version: Chartist.version, - supportsForeignObject: false - }); - -}(this || global, Chartist)); diff --git a/src/scripts/charts/bar.js b/src/scripts/charts/bar.js deleted file mode 100644 index ba1f84a26..000000000 --- a/src/scripts/charts/bar.js +++ /dev/null @@ -1,446 +0,0 @@ -/** - * The bar chart module of Chartist that can be used to draw unipolar or bipolar bar and grouped bar charts. - * - * @module Chartist.Bar - */ -/* global Chartist */ -(function(globalRoot, Chartist){ - 'use strict'; - - var window = globalRoot.window; - var document = globalRoot.document; - - /** - * Default options in bar charts. Expand the code view to see a detailed list of options with comments. - * - * @memberof Chartist.Bar - */ - var defaultOptions = { - // Options for X-Axis - axisX: { - // The offset of the chart drawing area to the border of the container - offset: 30, - // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis. - position: 'end', - // Allows you to correct label positioning on this axis by positive or negative x and y offset. - labelOffset: { - x: 0, - y: 0 - }, - // If labels should be shown or not - showLabel: true, - // If the axis grid should be drawn or not - showGrid: true, - // Interpolation function that allows you to intercept the value from the axis label - labelInterpolationFnc: Chartist.noop, - // This value specifies the minimum width in pixel of the scale steps - scaleMinSpace: 30, - // Use only integer values (whole numbers) for the scale steps - onlyInteger: false - }, - // Options for Y-Axis - axisY: { - // The offset of the chart drawing area to the border of the container - offset: 40, - // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis. - position: 'start', - // Allows you to correct label positioning on this axis by positive or negative x and y offset. - labelOffset: { - x: 0, - y: 0 - }, - // If labels should be shown or not - showLabel: true, - // If the axis grid should be drawn or not - showGrid: true, - // Interpolation function that allows you to intercept the value from the axis label - labelInterpolationFnc: Chartist.noop, - // This value specifies the minimum height in pixel of the scale steps - scaleMinSpace: 20, - // Use only integer values (whole numbers) for the scale steps - onlyInteger: false - }, - // Specify a fixed width for the chart as a string (i.e. '100px' or '50%') - width: undefined, - // Specify a fixed height for the chart as a string (i.e. '100px' or '50%') - height: undefined, - // Overriding the natural high of the chart allows you to zoom in or limit the charts highest displayed value - high: undefined, - // Overriding the natural low of the chart allows you to zoom in or limit the charts lowest displayed value - low: undefined, - // Unless low/high are explicitly set, bar chart will be centered at zero by default. Set referenceValue to null to auto scale. - referenceValue: 0, - // Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5} - chartPadding: { - top: 15, - right: 15, - bottom: 5, - left: 10 - }, - // Specify the distance in pixel of bars in a group - seriesBarDistance: 15, - // If set to true this property will cause the series bars to be stacked. Check the `stackMode` option for further stacking options. - stackBars: false, - // If set to 'overlap' this property will force the stacked bars to draw from the zero line. - // If set to 'accumulate' this property will form a total for each series point. This will also influence the y-axis and the overall bounds of the chart. In stacked mode the seriesBarDistance property will have no effect. - stackMode: 'accumulate', - // Inverts the axes of the bar chart in order to draw a horizontal bar chart. Be aware that you also need to invert your axis settings as the Y Axis will now display the labels and the X Axis the values. - horizontalBars: false, - // If set to true then each bar will represent a series and the data array is expected to be a one dimensional array of data values rather than a series array of series. This is useful if the bar chart should represent a profile rather than some data over time. - distributeSeries: false, - // If true the whole data is reversed including labels, the series order as well as the whole series data arrays. - reverseData: false, - // If the bar chart should add a background fill to the .ct-grids group. - showGridBackground: false, - // Override the class names that get used to generate the SVG structure of the chart - classNames: { - chart: 'ct-chart-bar', - horizontalBars: 'ct-horizontal-bars', - label: 'ct-label', - labelGroup: 'ct-labels', - series: 'ct-series', - bar: 'ct-bar', - grid: 'ct-grid', - gridGroup: 'ct-grids', - gridBackground: 'ct-grid-background', - vertical: 'ct-vertical', - horizontal: 'ct-horizontal', - start: 'ct-start', - end: 'ct-end' - } - }; - - /** - * Creates a new chart - * - */ - function createChart(options) { - var data; - var highLow; - - if(options.distributeSeries) { - data = Chartist.normalizeData(this.data, options.reverseData, options.horizontalBars ? 'x' : 'y'); - data.normalized.series = data.normalized.series.map(function(value) { - return [value]; - }); - } else { - data = Chartist.normalizeData(this.data, options.reverseData, options.horizontalBars ? 'x' : 'y'); - } - - // Create new svg element - this.svg = Chartist.createSvg( - this.container, - options.width, - options.height, - options.classNames.chart + (options.horizontalBars ? ' ' + options.classNames.horizontalBars : '') - ); - - // Drawing groups in correct order - var gridGroup = this.svg.elem('g').addClass(options.classNames.gridGroup); - var seriesGroup = this.svg.elem('g'); - var labelGroup = this.svg.elem('g').addClass(options.classNames.labelGroup); - - if(options.stackBars && (options.stackMode === 'accumulate' || !options.stackMode) && data.normalized.series.length !== 0) { - - // If stacked bars we need to calculate the high low from stacked values from each series - var serialSums = Chartist.serialMap(data.normalized.series, function serialSums() { - return Array.prototype.slice.call(arguments).map(function(value) { - return value; - }).reduce(function(prev, curr) { - return { - x: prev.x + (curr && curr.x) || 0, - y: prev.y + (curr && curr.y) || 0 - }; - }, {x: 0, y: 0}); - }); - - highLow = Chartist.getHighLow([serialSums], options, options.horizontalBars ? 'x' : 'y'); - - } else { - - highLow = Chartist.getHighLow(data.normalized.series, options, options.horizontalBars ? 'x' : 'y'); - } - - // Overrides of high / low from settings - highLow.high = +options.high || (options.high === 0 ? 0 : highLow.high); - highLow.low = +options.low || (options.low === 0 ? 0 : highLow.low); - - var chartRect = Chartist.createChartRect(this.svg, options, defaultOptions.padding); - - var valueAxis, - labelAxisTicks, - labelAxis, - axisX, - axisY; - - // We need to set step count based on some options combinations - if(options.distributeSeries && options.stackBars) { - // If distributed series are enabled and bars need to be stacked, we'll only have one bar and therefore should - // use only the first label for the step axis - labelAxisTicks = data.normalized.labels.slice(0, 1); - } else { - // If distributed series are enabled but stacked bars aren't, we should use the series labels - // If we are drawing a regular bar chart with two dimensional series data, we just use the labels array - // as the bars are normalized - labelAxisTicks = data.normalized.labels; - } - - // Set labelAxis and valueAxis based on the horizontalBars setting. This setting will flip the axes if necessary. - if(options.horizontalBars) { - if(options.axisX.type === undefined) { - valueAxis = axisX = new Chartist.AutoScaleAxis(Chartist.Axis.units.x, data.normalized.series, chartRect, Chartist.extend({}, options.axisX, { - highLow: highLow, - referenceValue: 0 - })); - } else { - valueAxis = axisX = options.axisX.type.call(Chartist, Chartist.Axis.units.x, data.normalized.series, chartRect, Chartist.extend({}, options.axisX, { - highLow: highLow, - referenceValue: 0 - })); - } - - if(options.axisY.type === undefined) { - labelAxis = axisY = new Chartist.StepAxis(Chartist.Axis.units.y, data.normalized.series, chartRect, { - ticks: labelAxisTicks - }); - } else { - labelAxis = axisY = options.axisY.type.call(Chartist, Chartist.Axis.units.y, data.normalized.series, chartRect, options.axisY); - } - } else { - if(options.axisX.type === undefined) { - labelAxis = axisX = new Chartist.StepAxis(Chartist.Axis.units.x, data.normalized.series, chartRect, { - ticks: labelAxisTicks - }); - } else { - labelAxis = axisX = options.axisX.type.call(Chartist, Chartist.Axis.units.x, data.normalized.series, chartRect, options.axisX); - } - - if(options.axisY.type === undefined) { - valueAxis = axisY = new Chartist.AutoScaleAxis(Chartist.Axis.units.y, data.normalized.series, chartRect, Chartist.extend({}, options.axisY, { - highLow: highLow, - referenceValue: 0 - })); - } else { - valueAxis = axisY = options.axisY.type.call(Chartist, Chartist.Axis.units.y, data.normalized.series, chartRect, Chartist.extend({}, options.axisY, { - highLow: highLow, - referenceValue: 0 - })); - } - } - - // Projected 0 point - var zeroPoint = options.horizontalBars ? (chartRect.x1 + valueAxis.projectValue(0)) : (chartRect.y1 - valueAxis.projectValue(0)); - // Used to track the screen coordinates of stacked bars - var stackedBarValues = []; - - labelAxis.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter); - valueAxis.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter); - - if (options.showGridBackground) { - Chartist.createGridBackground(gridGroup, chartRect, options.classNames.gridBackground, this.eventEmitter); - } - - // Draw the series - data.raw.series.forEach(function(series, seriesIndex) { - // Calculating bi-polar value of index for seriesOffset. For i = 0..4 biPol will be -1.5, -0.5, 0.5, 1.5 etc. - var biPol = seriesIndex - (data.raw.series.length - 1) / 2; - // Half of the period width between vertical grid lines used to position bars - var periodHalfLength; - // Current series SVG element - var seriesElement; - - // We need to set periodHalfLength based on some options combinations - if(options.distributeSeries && !options.stackBars) { - // If distributed series are enabled but stacked bars aren't, we need to use the length of the normaizedData array - // which is the series count and divide by 2 - periodHalfLength = labelAxis.axisLength / data.normalized.series.length / 2; - } else if(options.distributeSeries && options.stackBars) { - // If distributed series and stacked bars are enabled we'll only get one bar so we should just divide the axis - // length by 2 - periodHalfLength = labelAxis.axisLength / 2; - } else { - // On regular bar charts we should just use the series length - periodHalfLength = labelAxis.axisLength / data.normalized.series[seriesIndex].length / 2; - } - - // Adding the series group to the series element - seriesElement = seriesGroup.elem('g'); - - // Write attributes to series group element. If series name or meta is undefined the attributes will not be written - seriesElement.attr({ - 'ct:series-name': series.name, - 'ct:meta': Chartist.serialize(series.meta) - }); - - // Use series class from series data or if not set generate one - seriesElement.addClass([ - options.classNames.series, - (series.className || options.classNames.series + '-' + Chartist.alphaNumerate(seriesIndex)) - ].join(' ')); - - data.normalized.series[seriesIndex].forEach(function(value, valueIndex) { - var projected, - bar, - previousStack, - labelAxisValueIndex; - - // We need to set labelAxisValueIndex based on some options combinations - if(options.distributeSeries && !options.stackBars) { - // If distributed series are enabled but stacked bars aren't, we can use the seriesIndex for later projection - // on the step axis for label positioning - labelAxisValueIndex = seriesIndex; - } else if(options.distributeSeries && options.stackBars) { - // If distributed series and stacked bars are enabled, we will only get one bar and therefore always use - // 0 for projection on the label step axis - labelAxisValueIndex = 0; - } else { - // On regular bar charts we just use the value index to project on the label step axis - labelAxisValueIndex = valueIndex; - } - - // We need to transform coordinates differently based on the chart layout - if(options.horizontalBars) { - projected = { - x: chartRect.x1 + valueAxis.projectValue(value && value.x ? value.x : 0, valueIndex, data.normalized.series[seriesIndex]), - y: chartRect.y1 - labelAxis.projectValue(value && value.y ? value.y : 0, labelAxisValueIndex, data.normalized.series[seriesIndex]) - }; - } else { - projected = { - x: chartRect.x1 + labelAxis.projectValue(value && value.x ? value.x : 0, labelAxisValueIndex, data.normalized.series[seriesIndex]), - y: chartRect.y1 - valueAxis.projectValue(value && value.y ? value.y : 0, valueIndex, data.normalized.series[seriesIndex]) - } - } - - // If the label axis is a step based axis we will offset the bar into the middle of between two steps using - // the periodHalfLength value. Also we do arrange the different series so that they align up to each other using - // the seriesBarDistance. If we don't have a step axis, the bar positions can be chosen freely so we should not - // add any automated positioning. - if(labelAxis instanceof Chartist.StepAxis) { - // Offset to center bar between grid lines, but only if the step axis is not stretched - if(!labelAxis.options.stretch) { - projected[labelAxis.units.pos] += periodHalfLength * (options.horizontalBars ? -1 : 1); - } - // Using bi-polar offset for multiple series if no stacked bars or series distribution is used - projected[labelAxis.units.pos] += (options.stackBars || options.distributeSeries) ? 0 : biPol * options.seriesBarDistance * (options.horizontalBars ? -1 : 1); - } - - // Enter value in stacked bar values used to remember previous screen value for stacking up bars - previousStack = stackedBarValues[valueIndex] || zeroPoint; - stackedBarValues[valueIndex] = previousStack - (zeroPoint - projected[labelAxis.counterUnits.pos]); - - // Skip if value is undefined - if(value === undefined) { - return; - } - - var positions = {}; - positions[labelAxis.units.pos + '1'] = projected[labelAxis.units.pos]; - positions[labelAxis.units.pos + '2'] = projected[labelAxis.units.pos]; - - if(options.stackBars && (options.stackMode === 'accumulate' || !options.stackMode)) { - // Stack mode: accumulate (default) - // If bars are stacked we use the stackedBarValues reference and otherwise base all bars off the zero line - // We want backwards compatibility, so the expected fallback without the 'stackMode' option - // to be the original behaviour (accumulate) - positions[labelAxis.counterUnits.pos + '1'] = previousStack; - positions[labelAxis.counterUnits.pos + '2'] = stackedBarValues[valueIndex]; - } else { - // Draw from the zero line normally - // This is also the same code for Stack mode: overlap - positions[labelAxis.counterUnits.pos + '1'] = zeroPoint; - positions[labelAxis.counterUnits.pos + '2'] = projected[labelAxis.counterUnits.pos]; - } - - // Limit x and y so that they are within the chart rect - positions.x1 = Math.min(Math.max(positions.x1, chartRect.x1), chartRect.x2); - positions.x2 = Math.min(Math.max(positions.x2, chartRect.x1), chartRect.x2); - positions.y1 = Math.min(Math.max(positions.y1, chartRect.y2), chartRect.y1); - positions.y2 = Math.min(Math.max(positions.y2, chartRect.y2), chartRect.y1); - - var metaData = Chartist.getMetaData(series, valueIndex); - - // Create bar element - bar = seriesElement.elem('line', positions, options.classNames.bar).attr({ - 'ct:value': [value.x, value.y].filter(Chartist.isNumeric).join(','), - 'ct:meta': Chartist.serialize(metaData) - }); - - this.eventEmitter.emit('draw', Chartist.extend({ - type: 'bar', - value: value, - index: valueIndex, - meta: metaData, - series: series, - seriesIndex: seriesIndex, - axisX: axisX, - axisY: axisY, - chartRect: chartRect, - group: seriesElement, - element: bar - }, positions)); - }.bind(this)); - }.bind(this)); - - this.eventEmitter.emit('created', { - bounds: valueAxis.bounds, - chartRect: chartRect, - axisX: axisX, - axisY: axisY, - svg: this.svg, - options: options - }); - } - - /** - * This method creates a new bar chart and returns API object that you can use for later changes. - * - * @memberof Chartist.Bar - * @param {String|Node} query A selector query string or directly a DOM element - * @param {Object} data The data object that needs to consist of a labels and a series array - * @param {Object} [options] The options object with options that override the default options. Check the examples for a detailed list. - * @param {Array} [responsiveOptions] Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]] - * @return {Object} An object which exposes the API for the created chart - * - * @example - * // Create a simple bar chart - * var data = { - * labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'], - * series: [ - * [5, 2, 4, 2, 0] - * ] - * }; - * - * // In the global name space Chartist we call the Bar function to initialize a bar chart. As a first parameter we pass in a selector where we would like to get our chart created and as a second parameter we pass our data object. - * new Chartist.Bar('.ct-chart', data); - * - * @example - * // This example creates a bipolar grouped bar chart where the boundaries are limitted to -10 and 10 - * new Chartist.Bar('.ct-chart', { - * labels: [1, 2, 3, 4, 5, 6, 7], - * series: [ - * [1, 3, 2, -5, -3, 1, -6], - * [-5, -2, -4, -1, 2, -3, 1] - * ] - * }, { - * seriesBarDistance: 12, - * low: -10, - * high: 10 - * }); - * - */ - function Bar(query, data, options, responsiveOptions) { - Chartist.Bar.super.constructor.call(this, - query, - data, - defaultOptions, - Chartist.extend({}, defaultOptions, options), - responsiveOptions); - } - - // Creating bar chart type in Chartist namespace - Chartist.Bar = Chartist.Base.extend({ - constructor: Bar, - createChart: createChart - }); - -}(this || global, Chartist)); diff --git a/src/scripts/charts/line.js b/src/scripts/charts/line.js deleted file mode 100644 index 7ca58eeb0..000000000 --- a/src/scripts/charts/line.js +++ /dev/null @@ -1,418 +0,0 @@ -/** - * The Chartist line chart can be used to draw Line or Scatter charts. If used in the browser you can access the global `Chartist` namespace where you find the `Line` function as a main entry point. - * - * For examples on how to use the line chart please check the examples of the `Chartist.Line` method. - * - * @module Chartist.Line - */ -/* global Chartist */ -(function(globalRoot, Chartist){ - 'use strict'; - - var window = globalRoot.window; - var document = globalRoot.document; - - /** - * Default options in line charts. Expand the code view to see a detailed list of options with comments. - * - * @memberof Chartist.Line - */ - var defaultOptions = { - // Options for X-Axis - axisX: { - // The offset of the labels to the chart area - offset: 30, - // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis. - position: 'end', - // Allows you to correct label positioning on this axis by positive or negative x and y offset. - labelOffset: { - x: 0, - y: 0 - }, - // If labels should be shown or not - showLabel: true, - // If the axis grid should be drawn or not - showGrid: true, - // Interpolation function that allows you to intercept the value from the axis label - labelInterpolationFnc: Chartist.noop, - // Set the axis type to be used to project values on this axis. If not defined, Chartist.StepAxis will be used for the X-Axis, where the ticks option will be set to the labels in the data and the stretch option will be set to the global fullWidth option. This type can be changed to any axis constructor available (e.g. Chartist.FixedScaleAxis), where all axis options should be present here. - type: undefined - }, - // Options for Y-Axis - axisY: { - // The offset of the labels to the chart area - offset: 40, - // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis. - position: 'start', - // Allows you to correct label positioning on this axis by positive or negative x and y offset. - labelOffset: { - x: 0, - y: 0 - }, - // If labels should be shown or not - showLabel: true, - // If the axis grid should be drawn or not - showGrid: true, - // Interpolation function that allows you to intercept the value from the axis label - labelInterpolationFnc: Chartist.noop, - // Set the axis type to be used to project values on this axis. If not defined, Chartist.AutoScaleAxis will be used for the Y-Axis, where the high and low options will be set to the global high and low options. This type can be changed to any axis constructor available (e.g. Chartist.FixedScaleAxis), where all axis options should be present here. - type: undefined, - // This value specifies the minimum height in pixel of the scale steps - scaleMinSpace: 20, - // Use only integer values (whole numbers) for the scale steps - onlyInteger: false - }, - // Specify a fixed width for the chart as a string (i.e. '100px' or '50%') - width: undefined, - // Specify a fixed height for the chart as a string (i.e. '100px' or '50%') - height: undefined, - // If the line should be drawn or not - showLine: true, - // If dots should be drawn or not - showPoint: true, - // If the line chart should draw an area - showArea: false, - // The base for the area chart that will be used to close the area shape (is normally 0) - areaBase: 0, - // Specify if the lines should be smoothed. This value can be true or false where true will result in smoothing using the default smoothing interpolation function Chartist.Interpolation.cardinal and false results in Chartist.Interpolation.none. You can also choose other smoothing / interpolation functions available in the Chartist.Interpolation module, or write your own interpolation function. Check the examples for a brief description. - lineSmooth: true, - // If the line chart should add a background fill to the .ct-grids group. - showGridBackground: false, - // Overriding the natural low of the chart allows you to zoom in or limit the charts lowest displayed value - low: undefined, - // Overriding the natural high of the chart allows you to zoom in or limit the charts highest displayed value - high: undefined, - // Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5} - chartPadding: { - top: 15, - right: 15, - bottom: 5, - left: 10 - }, - // When set to true, the last grid line on the x-axis is not drawn and the chart elements will expand to the full available width of the chart. For the last label to be drawn correctly you might need to add chart padding or offset the last label with a draw event handler. - fullWidth: false, - // If true the whole data is reversed including labels, the series order as well as the whole series data arrays. - reverseData: false, - // Override the class names that get used to generate the SVG structure of the chart - classNames: { - chart: 'ct-chart-line', - label: 'ct-label', - labelGroup: 'ct-labels', - series: 'ct-series', - line: 'ct-line', - point: 'ct-point', - area: 'ct-area', - grid: 'ct-grid', - gridGroup: 'ct-grids', - gridBackground: 'ct-grid-background', - vertical: 'ct-vertical', - horizontal: 'ct-horizontal', - start: 'ct-start', - end: 'ct-end' - } - }; - - /** - * Creates a new chart - * - */ - function createChart(options) { - var data = Chartist.normalizeData(this.data, options.reverseData, true); - - // Create new svg object - this.svg = Chartist.createSvg(this.container, options.width, options.height, options.classNames.chart); - // Create groups for labels, grid and series - var gridGroup = this.svg.elem('g').addClass(options.classNames.gridGroup); - var seriesGroup = this.svg.elem('g'); - var labelGroup = this.svg.elem('g').addClass(options.classNames.labelGroup); - - var chartRect = Chartist.createChartRect(this.svg, options, defaultOptions.padding); - var axisX, axisY; - - if(options.axisX.type === undefined) { - axisX = new Chartist.StepAxis(Chartist.Axis.units.x, data.normalized.series, chartRect, Chartist.extend({}, options.axisX, { - ticks: data.normalized.labels, - stretch: options.fullWidth - })); - } else { - axisX = options.axisX.type.call(Chartist, Chartist.Axis.units.x, data.normalized.series, chartRect, options.axisX); - } - - if(options.axisY.type === undefined) { - axisY = new Chartist.AutoScaleAxis(Chartist.Axis.units.y, data.normalized.series, chartRect, Chartist.extend({}, options.axisY, { - high: Chartist.isNumeric(options.high) ? options.high : options.axisY.high, - low: Chartist.isNumeric(options.low) ? options.low : options.axisY.low - })); - } else { - axisY = options.axisY.type.call(Chartist, Chartist.Axis.units.y, data.normalized.series, chartRect, options.axisY); - } - - axisX.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter); - axisY.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter); - - if (options.showGridBackground) { - Chartist.createGridBackground(gridGroup, chartRect, options.classNames.gridBackground, this.eventEmitter); - } - - // Draw the series - data.raw.series.forEach(function(series, seriesIndex) { - var seriesElement = seriesGroup.elem('g'); - - // Write attributes to series group element. If series name or meta is undefined the attributes will not be written - seriesElement.attr({ - 'ct:series-name': series.name, - 'ct:meta': Chartist.serialize(series.meta) - }); - - // Use series class from series data or if not set generate one - seriesElement.addClass([ - options.classNames.series, - (series.className || options.classNames.series + '-' + Chartist.alphaNumerate(seriesIndex)) - ].join(' ')); - - var pathCoordinates = [], - pathData = []; - - data.normalized.series[seriesIndex].forEach(function(value, valueIndex) { - var p = { - x: chartRect.x1 + axisX.projectValue(value, valueIndex, data.normalized.series[seriesIndex]), - y: chartRect.y1 - axisY.projectValue(value, valueIndex, data.normalized.series[seriesIndex]) - }; - pathCoordinates.push(p.x, p.y); - pathData.push({ - value: value, - valueIndex: valueIndex, - meta: Chartist.getMetaData(series, valueIndex) - }); - }.bind(this)); - - var seriesOptions = { - lineSmooth: Chartist.getSeriesOption(series, options, 'lineSmooth'), - showPoint: Chartist.getSeriesOption(series, options, 'showPoint'), - showLine: Chartist.getSeriesOption(series, options, 'showLine'), - showArea: Chartist.getSeriesOption(series, options, 'showArea'), - areaBase: Chartist.getSeriesOption(series, options, 'areaBase') - }; - - var smoothing = typeof seriesOptions.lineSmooth === 'function' ? - seriesOptions.lineSmooth : (seriesOptions.lineSmooth ? Chartist.Interpolation.monotoneCubic() : Chartist.Interpolation.none()); - // Interpolating path where pathData will be used to annotate each path element so we can trace back the original - // index, value and meta data - var path = smoothing(pathCoordinates, pathData); - - // If we should show points we need to create them now to avoid secondary loop - // Points are drawn from the pathElements returned by the interpolation function - // Small offset for Firefox to render squares correctly - if (seriesOptions.showPoint) { - - path.pathElements.forEach(function(pathElement) { - var point = seriesElement.elem('line', { - x1: pathElement.x, - y1: pathElement.y, - x2: pathElement.x + 0.01, - y2: pathElement.y - }, options.classNames.point).attr({ - 'ct:value': [pathElement.data.value.x, pathElement.data.value.y].filter(Chartist.isNumeric).join(','), - 'ct:meta': Chartist.serialize(pathElement.data.meta) - }); - - this.eventEmitter.emit('draw', { - type: 'point', - value: pathElement.data.value, - index: pathElement.data.valueIndex, - meta: pathElement.data.meta, - series: series, - seriesIndex: seriesIndex, - axisX: axisX, - axisY: axisY, - group: seriesElement, - element: point, - x: pathElement.x, - y: pathElement.y - }); - }.bind(this)); - } - - if(seriesOptions.showLine) { - var line = seriesElement.elem('path', { - d: path.stringify() - }, options.classNames.line, true); - - this.eventEmitter.emit('draw', { - type: 'line', - values: data.normalized.series[seriesIndex], - path: path.clone(), - chartRect: chartRect, - index: seriesIndex, - series: series, - seriesIndex: seriesIndex, - seriesMeta: series.meta, - axisX: axisX, - axisY: axisY, - group: seriesElement, - element: line - }); - } - - // Area currently only works with axes that support a range! - if(seriesOptions.showArea && axisY.range) { - // If areaBase is outside the chart area (< min or > max) we need to set it respectively so that - // the area is not drawn outside the chart area. - var areaBase = Math.max(Math.min(seriesOptions.areaBase, axisY.range.max), axisY.range.min); - - // We project the areaBase value into screen coordinates - var areaBaseProjected = chartRect.y1 - axisY.projectValue(areaBase); - - // In order to form the area we'll first split the path by move commands so we can chunk it up into segments - path.splitByCommand('M').filter(function onlySolidSegments(pathSegment) { - // We filter only "solid" segments that contain more than one point. Otherwise there's no need for an area - return pathSegment.pathElements.length > 1; - }).map(function convertToArea(solidPathSegments) { - // Receiving the filtered solid path segments we can now convert those segments into fill areas - var firstElement = solidPathSegments.pathElements[0]; - var lastElement = solidPathSegments.pathElements[solidPathSegments.pathElements.length - 1]; - - // Cloning the solid path segment with closing option and removing the first move command from the clone - // We then insert a new move that should start at the area base and draw a straight line up or down - // at the end of the path we add an additional straight line to the projected area base value - // As the closing option is set our path will be automatically closed - return solidPathSegments.clone(true) - .position(0) - .remove(1) - .move(firstElement.x, areaBaseProjected) - .line(firstElement.x, firstElement.y) - .position(solidPathSegments.pathElements.length + 1) - .line(lastElement.x, areaBaseProjected); - - }).forEach(function createArea(areaPath) { - // For each of our newly created area paths, we'll now create path elements by stringifying our path objects - // and adding the created DOM elements to the correct series group - var area = seriesElement.elem('path', { - d: areaPath.stringify() - }, options.classNames.area, true); - - // Emit an event for each area that was drawn - this.eventEmitter.emit('draw', { - type: 'area', - values: data.normalized.series[seriesIndex], - path: areaPath.clone(), - series: series, - seriesIndex: seriesIndex, - axisX: axisX, - axisY: axisY, - chartRect: chartRect, - index: seriesIndex, - group: seriesElement, - element: area - }); - }.bind(this)); - } - }.bind(this)); - - this.eventEmitter.emit('created', { - bounds: axisY.bounds, - chartRect: chartRect, - axisX: axisX, - axisY: axisY, - svg: this.svg, - options: options - }); - } - - /** - * This method creates a new line chart. - * - * @memberof Chartist.Line - * @param {String|Node} query A selector query string or directly a DOM element - * @param {Object} data The data object that needs to consist of a labels and a series array - * @param {Object} [options] The options object with options that override the default options. Check the examples for a detailed list. - * @param {Array} [responsiveOptions] Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]] - * @return {Object} An object which exposes the API for the created chart - * - * @example - * // Create a simple line chart - * var data = { - * // A labels array that can contain any sort of values - * labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'], - * // Our series array that contains series objects or in this case series data arrays - * series: [ - * [5, 2, 4, 2, 0] - * ] - * }; - * - * // As options we currently only set a static size of 300x200 px - * var options = { - * width: '300px', - * height: '200px' - * }; - * - * // In the global name space Chartist we call the Line function to initialize a line chart. As a first parameter we pass in a selector where we would like to get our chart created. Second parameter is the actual data object and as a third parameter we pass in our options - * new Chartist.Line('.ct-chart', data, options); - * - * @example - * // Use specific interpolation function with configuration from the Chartist.Interpolation module - * - * var chart = new Chartist.Line('.ct-chart', { - * labels: [1, 2, 3, 4, 5], - * series: [ - * [1, 1, 8, 1, 7] - * ] - * }, { - * lineSmooth: Chartist.Interpolation.cardinal({ - * tension: 0.2 - * }) - * }); - * - * @example - * // Create a line chart with responsive options - * - * var data = { - * // A labels array that can contain any sort of values - * labels: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'], - * // Our series array that contains series objects or in this case series data arrays - * series: [ - * [5, 2, 4, 2, 0] - * ] - * }; - * - * // In addition to the regular options we specify responsive option overrides that will override the default configutation based on the matching media queries. - * var responsiveOptions = [ - * ['screen and (min-width: 641px) and (max-width: 1024px)', { - * showPoint: false, - * axisX: { - * labelInterpolationFnc: function(value) { - * // Will return Mon, Tue, Wed etc. on medium screens - * return value.slice(0, 3); - * } - * } - * }], - * ['screen and (max-width: 640px)', { - * showLine: false, - * axisX: { - * labelInterpolationFnc: function(value) { - * // Will return M, T, W etc. on small screens - * return value[0]; - * } - * } - * }] - * ]; - * - * new Chartist.Line('.ct-chart', data, null, responsiveOptions); - * - */ - function Line(query, data, options, responsiveOptions) { - Chartist.Line.super.constructor.call(this, - query, - data, - defaultOptions, - Chartist.extend({}, defaultOptions, options), - responsiveOptions); - } - - // Creating line chart type in Chartist namespace - Chartist.Line = Chartist.Base.extend({ - constructor: Line, - createChart: createChart - }); - -}(this || global, Chartist)); diff --git a/src/scripts/charts/pie.js b/src/scripts/charts/pie.js deleted file mode 100644 index 41b72edd8..000000000 --- a/src/scripts/charts/pie.js +++ /dev/null @@ -1,394 +0,0 @@ -/** - * The pie chart module of Chartist that can be used to draw pie, donut or gauge charts - * - * @module Chartist.Pie - */ -/* global Chartist */ -(function(globalRoot, Chartist) { - 'use strict'; - - var window = globalRoot.window; - var document = globalRoot.document; - - /** - * Default options in line charts. Expand the code view to see a detailed list of options with comments. - * - * @memberof Chartist.Pie - */ - var defaultOptions = { - // Specify a fixed width for the chart as a string (i.e. '100px' or '50%') - width: undefined, - // Specify a fixed height for the chart as a string (i.e. '100px' or '50%') - height: undefined, - // Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5} - chartPadding: 5, - // Override the class names that are used to generate the SVG structure of the chart - classNames: { - chartPie: 'ct-chart-pie', - chartDonut: 'ct-chart-donut', - series: 'ct-series', - slicePie: 'ct-slice-pie', - sliceDonut: 'ct-slice-donut', - sliceDonutSolid: 'ct-slice-donut-solid', - label: 'ct-label' - }, - // The start angle of the pie chart in degrees where 0 points north. A higher value offsets the start angle clockwise. - startAngle: 0, - // An optional total you can specify. By specifying a total value, the sum of the values in the series must be this total in order to draw a full pie. You can use this parameter to draw only parts of a pie or gauge charts. - total: undefined, - // If specified the donut CSS classes will be used and strokes will be drawn instead of pie slices. - donut: false, - // If specified the donut segments will be drawn as shapes instead of strokes. - donutSolid: false, - // Specify the donut stroke width, currently done in javascript for convenience. May move to CSS styles in the future. - // This option can be set as number or string to specify a relative width (i.e. 100 or '30%'). - donutWidth: 60, - // If a label should be shown or not - showLabel: true, - // Label position offset from the standard position which is half distance of the radius. This value can be either positive or negative. Positive values will position the label away from the center. - labelOffset: 0, - // This option can be set to 'inside', 'outside' or 'center'. Positioned with 'inside' the labels will be placed on half the distance of the radius to the border of the Pie by respecting the 'labelOffset'. The 'outside' option will place the labels at the border of the pie and 'center' will place the labels in the absolute center point of the chart. The 'center' option only makes sense in conjunction with the 'labelOffset' option. - labelPosition: 'inside', - // An interpolation function for the label value - labelInterpolationFnc: Chartist.noop, - // Label direction can be 'neutral', 'explode' or 'implode'. The labels anchor will be positioned based on those settings as well as the fact if the labels are on the right or left side of the center of the chart. Usually explode is useful when labels are positioned far away from the center. - labelDirection: 'neutral', - // If true the whole data is reversed including labels, the series order as well as the whole series data arrays. - reverseData: false, - // If true empty values will be ignored to avoid drawing unncessary slices and labels - ignoreEmptyValues: false - }; - - /** - * Determines SVG anchor position based on direction and center parameter - * - * @param center - * @param label - * @param direction - * @return {string} - */ - function determineAnchorPosition(center, label, direction) { - var toTheRight = label.x > center.x; - - if(toTheRight && direction === 'explode' || - !toTheRight && direction === 'implode') { - return 'start'; - } else if(toTheRight && direction === 'implode' || - !toTheRight && direction === 'explode') { - return 'end'; - } else { - return 'middle'; - } - } - - /** - * Creates the pie chart - * - * @param options - */ - function createChart(options) { - var data = Chartist.normalizeData(this.data); - var seriesGroups = [], - labelsGroup, - chartRect, - radius, - labelRadius, - totalDataSum, - startAngle = options.startAngle; - - // Create SVG.js draw - this.svg = Chartist.createSvg(this.container, options.width, options.height,options.donut ? options.classNames.chartDonut : options.classNames.chartPie); - // Calculate charting rect - chartRect = Chartist.createChartRect(this.svg, options, defaultOptions.padding); - // Get biggest circle radius possible within chartRect - radius = Math.min(chartRect.width() / 2, chartRect.height() / 2); - // Calculate total of all series to get reference value or use total reference from optional options - totalDataSum = options.total || data.normalized.series.reduce(function(previousValue, currentValue) { - return previousValue + currentValue; - }, 0); - - var donutWidth = Chartist.quantity(options.donutWidth); - if (donutWidth.unit === '%') { - donutWidth.value *= radius / 100; - } - - // If this is a donut chart we need to adjust our radius to enable strokes to be drawn inside - // Unfortunately this is not possible with the current SVG Spec - // See this proposal for more details: http://lists.w3.org/Archives/Public/www-svg/2003Oct/0000.html - radius -= options.donut && !options.donutSolid ? donutWidth.value / 2 : 0; - - // If labelPosition is set to `outside` or a donut chart is drawn then the label position is at the radius, - // if regular pie chart it's half of the radius - if(options.labelPosition === 'outside' || options.donut && !options.donutSolid) { - labelRadius = radius; - } else if(options.labelPosition === 'center') { - // If labelPosition is center we start with 0 and will later wait for the labelOffset - labelRadius = 0; - } else if(options.donutSolid) { - labelRadius = radius - donutWidth.value / 2; - } else { - // Default option is 'inside' where we use half the radius so the label will be placed in the center of the pie - // slice - labelRadius = radius / 2; - } - // Add the offset to the labelRadius where a negative offset means closed to the center of the chart - labelRadius += options.labelOffset; - - // Calculate end angle based on total sum and current data value and offset with padding - var center = { - x: chartRect.x1 + chartRect.width() / 2, - y: chartRect.y2 + chartRect.height() / 2 - }; - - // Check if there is only one non-zero value in the series array. - var hasSingleValInSeries = data.raw.series.filter(function(val) { - return val.hasOwnProperty('value') ? val.value !== 0 : val !== 0; - }).length === 1; - - // Creating the series groups - data.raw.series.forEach(function(series, index) { - seriesGroups[index] = this.svg.elem('g', null, null); - }.bind(this)); - //if we need to show labels we create the label group now - if(options.showLabel) { - labelsGroup = this.svg.elem('g', null, null); - } - - // Draw the series - // initialize series groups - data.raw.series.forEach(function(series, index) { - // If current value is zero and we are ignoring empty values then skip to next value - if (data.normalized.series[index] === 0 && options.ignoreEmptyValues) return; - - // If the series is an object and contains a name or meta data we add a custom attribute - seriesGroups[index].attr({ - 'ct:series-name': series.name - }); - - // Use series class from series data or if not set generate one - seriesGroups[index].addClass([ - options.classNames.series, - (series.className || options.classNames.series + '-' + Chartist.alphaNumerate(index)) - ].join(' ')); - - // If the whole dataset is 0 endAngle should be zero. Can't divide by 0. - var endAngle = (totalDataSum > 0 ? startAngle + data.normalized.series[index] / totalDataSum * 360 : 0); - - // Use slight offset so there are no transparent hairline issues - var overlappigStartAngle = Math.max(0, startAngle - (index === 0 || hasSingleValInSeries ? 0 : 0.2)); - - // If we need to draw the arc for all 360 degrees we need to add a hack where we close the circle - // with Z and use 359.99 degrees - if(endAngle - overlappigStartAngle >= 359.99) { - endAngle = overlappigStartAngle + 359.99; - } - - var start = Chartist.polarToCartesian(center.x, center.y, radius, overlappigStartAngle), - end = Chartist.polarToCartesian(center.x, center.y, radius, endAngle); - - var innerStart, - innerEnd, - donutSolidRadius; - - // Create a new path element for the pie chart. If this isn't a donut chart we should close the path for a correct stroke - var path = new Chartist.Svg.Path(!options.donut || options.donutSolid) - .move(end.x, end.y) - .arc(radius, radius, 0, endAngle - startAngle > 180, 0, start.x, start.y); - - // If regular pie chart (no donut) we add a line to the center of the circle for completing the pie - if(!options.donut) { - path.line(center.x, center.y); - } else if (options.donutSolid) { - donutSolidRadius = radius - donutWidth.value; - innerStart = Chartist.polarToCartesian(center.x, center.y, donutSolidRadius, startAngle - (index === 0 || hasSingleValInSeries ? 0 : 0.2)); - innerEnd = Chartist.polarToCartesian(center.x, center.y, donutSolidRadius, endAngle); - path.line(innerStart.x, innerStart.y); - path.arc(donutSolidRadius, donutSolidRadius, 0, endAngle - startAngle > 180, 1, innerEnd.x, innerEnd.y); - } - - // Create the SVG path - // If this is a donut chart we add the donut class, otherwise just a regular slice - var pathClassName = options.classNames.slicePie; - if (options.donut) { - pathClassName = options.classNames.sliceDonut; - if (options.donutSolid) { - pathClassName = options.classNames.sliceDonutSolid; - } - } - var pathElement = seriesGroups[index].elem('path', { - d: path.stringify() - }, pathClassName); - - // Adding the pie series value to the path - pathElement.attr({ - 'ct:value': data.normalized.series[index], - 'ct:meta': Chartist.serialize(series.meta) - }); - - // If this is a donut, we add the stroke-width as style attribute - if(options.donut && !options.donutSolid) { - pathElement._node.style.strokeWidth = donutWidth.value + 'px'; - } - - // Fire off draw event - this.eventEmitter.emit('draw', { - type: 'slice', - value: data.normalized.series[index], - totalDataSum: totalDataSum, - index: index, - meta: series.meta, - series: series, - group: seriesGroups[index], - element: pathElement, - path: path.clone(), - center: center, - radius: radius, - startAngle: startAngle, - endAngle: endAngle - }); - - // If we need to show labels we need to add the label for this slice now - if(options.showLabel) { - var labelPosition; - if(data.raw.series.length === 1) { - // If we have only 1 series, we can position the label in the center of the pie - labelPosition = { - x: center.x, - y: center.y - }; - } else { - // Position at the labelRadius distance from center and between start and end angle - labelPosition = Chartist.polarToCartesian( - center.x, - center.y, - labelRadius, - startAngle + (endAngle - startAngle) / 2 - ); - } - - var rawValue; - if(data.normalized.labels && !Chartist.isFalseyButZero(data.normalized.labels[index])) { - rawValue = data.normalized.labels[index]; - } else { - rawValue = data.normalized.series[index]; - } - - var interpolatedValue = options.labelInterpolationFnc(rawValue, index); - - if(interpolatedValue || interpolatedValue === 0) { - var labelElement = labelsGroup.elem('text', { - dx: labelPosition.x, - dy: labelPosition.y, - 'text-anchor': determineAnchorPosition(center, labelPosition, options.labelDirection) - }, options.classNames.label).text('' + interpolatedValue); - - // Fire off draw event - this.eventEmitter.emit('draw', { - type: 'label', - index: index, - group: labelsGroup, - element: labelElement, - text: '' + interpolatedValue, - x: labelPosition.x, - y: labelPosition.y - }); - } - } - - // Set next startAngle to current endAngle. - // (except for last slice) - startAngle = endAngle; - }.bind(this)); - - this.eventEmitter.emit('created', { - chartRect: chartRect, - svg: this.svg, - options: options - }); - } - - /** - * This method creates a new pie chart and returns an object that can be used to redraw the chart. - * - * @memberof Chartist.Pie - * @param {String|Node} query A selector query string or directly a DOM element - * @param {Object} data The data object in the pie chart needs to have a series property with a one dimensional data array. The values will be normalized against each other and don't necessarily need to be in percentage. The series property can also be an array of value objects that contain a value property and a className property to override the CSS class name for the series group. - * @param {Object} [options] The options object with options that override the default options. Check the examples for a detailed list. - * @param {Array} [responsiveOptions] Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]] - * @return {Object} An object with a version and an update method to manually redraw the chart - * - * @example - * // Simple pie chart example with four series - * new Chartist.Pie('.ct-chart', { - * series: [10, 2, 4, 3] - * }); - * - * @example - * // Drawing a donut chart - * new Chartist.Pie('.ct-chart', { - * series: [10, 2, 4, 3] - * }, { - * donut: true - * }); - * - * @example - * // Using donut, startAngle and total to draw a gauge chart - * new Chartist.Pie('.ct-chart', { - * series: [20, 10, 30, 40] - * }, { - * donut: true, - * donutWidth: 20, - * startAngle: 270, - * total: 200 - * }); - * - * @example - * // Drawing a pie chart with padding and labels that are outside the pie - * new Chartist.Pie('.ct-chart', { - * series: [20, 10, 30, 40] - * }, { - * chartPadding: 30, - * labelOffset: 50, - * labelDirection: 'explode' - * }); - * - * @example - * // Overriding the class names for individual series as well as a name and meta data. - * // The name will be written as ct:series-name attribute and the meta data will be serialized and written - * // to a ct:meta attribute. - * new Chartist.Pie('.ct-chart', { - * series: [{ - * value: 20, - * name: 'Series 1', - * className: 'my-custom-class-one', - * meta: 'Meta One' - * }, { - * value: 10, - * name: 'Series 2', - * className: 'my-custom-class-two', - * meta: 'Meta Two' - * }, { - * value: 70, - * name: 'Series 3', - * className: 'my-custom-class-three', - * meta: 'Meta Three' - * }] - * }); - */ - function Pie(query, data, options, responsiveOptions) { - Chartist.Pie.super.constructor.call(this, - query, - data, - defaultOptions, - Chartist.extend({}, defaultOptions, options), - responsiveOptions); - } - - // Creating pie chart type in Chartist namespace - Chartist.Pie = Chartist.Base.extend({ - constructor: Pie, - createChart: createChart, - determineAnchorPosition: determineAnchorPosition - }); - -}(this || global, Chartist)); diff --git a/src/scripts/class.js b/src/scripts/class.js deleted file mode 100644 index 2c6d4c7c2..000000000 --- a/src/scripts/class.js +++ /dev/null @@ -1,111 +0,0 @@ -/** - * This module provides some basic prototype inheritance utilities. - * - * @module Chartist.Class - */ -/* global Chartist */ -(function(globalRoot, Chartist) { - 'use strict'; - - function listToArray(list) { - var arr = []; - if (list.length) { - for (var i = 0; i < list.length; i++) { - arr.push(list[i]); - } - } - return arr; - } - - /** - * Method to extend from current prototype. - * - * @memberof Chartist.Class - * @param {Object} properties The object that serves as definition for the prototype that gets created for the new class. This object should always contain a constructor property that is the desired constructor for the newly created class. - * @param {Object} [superProtoOverride] By default extens will use the current class prototype or Chartist.class. With this parameter you can specify any super prototype that will be used. - * @return {Function} Constructor function of the new class - * - * @example - * var Fruit = Class.extend({ - * color: undefined, - * sugar: undefined, - * - * constructor: function(color, sugar) { - * this.color = color; - * this.sugar = sugar; - * }, - * - * eat: function() { - * this.sugar = 0; - * return this; - * } - * }); - * - * var Banana = Fruit.extend({ - * length: undefined, - * - * constructor: function(length, sugar) { - * Banana.super.constructor.call(this, 'Yellow', sugar); - * this.length = length; - * } - * }); - * - * var banana = new Banana(20, 40); - * console.log('banana instanceof Fruit', banana instanceof Fruit); - * console.log('Fruit is prototype of banana', Fruit.prototype.isPrototypeOf(banana)); - * console.log('bananas prototype is Fruit', Object.getPrototypeOf(banana) === Fruit.prototype); - * console.log(banana.sugar); - * console.log(banana.eat().sugar); - * console.log(banana.color); - */ - function extend(properties, superProtoOverride) { - var superProto = superProtoOverride || this.prototype || Chartist.Class; - var proto = Object.create(superProto); - - Chartist.Class.cloneDefinitions(proto, properties); - - var constr = function() { - var fn = proto.constructor || function () {}, - instance; - - // If this is linked to the Chartist namespace the constructor was not called with new - // To provide a fallback we will instantiate here and return the instance - instance = this === Chartist ? Object.create(proto) : this; - fn.apply(instance, Array.prototype.slice.call(arguments, 0)); - - // If this constructor was not called with new we need to return the instance - // This will not harm when the constructor has been called with new as the returned value is ignored - return instance; - }; - - constr.prototype = proto; - constr.super = superProto; - constr.extend = this.extend; - - return constr; - } - - // Variable argument list clones args > 0 into args[0] and retruns modified args[0] - function cloneDefinitions() { - var args = listToArray(arguments); - var target = args[0]; - - args.splice(1, args.length - 1).forEach(function (source) { - Object.getOwnPropertyNames(source).forEach(function (propName) { - // If this property already exist in target we delete it first - delete target[propName]; - // Define the property with the descriptor from source - Object.defineProperty(target, propName, - Object.getOwnPropertyDescriptor(source, propName)); - }); - }); - - return target; - } - - Chartist.Class = { - extend: extend, - cloneDefinitions: cloneDefinitions - }; - -}(this || global, Chartist)); diff --git a/src/scripts/core.js b/src/scripts/core.js deleted file mode 100644 index 3ec20ffb3..000000000 --- a/src/scripts/core.js +++ /dev/null @@ -1,1151 +0,0 @@ -/** - * The core module of Chartist that is mainly providing static functions and higher level functions for chart modules. - * - * @module Chartist.Core - */ -var Chartist = { - version: '<%= pkg.version %>' -}; - -(function (globalRoot, Chartist) { - 'use strict'; - - var window = globalRoot.window; - var document = globalRoot.document; - - /** - * This object contains all namespaces used within Chartist. - * - * @memberof Chartist.Core - * @type {{svg: string, xmlns: string, xhtml: string, xlink: string, ct: string}} - */ - Chartist.namespaces = { - svg: 'http://www.w3.org/2000/svg', - xmlns: 'http://www.w3.org/2000/xmlns/', - xhtml: 'http://www.w3.org/1999/xhtml', - xlink: 'http://www.w3.org/1999/xlink', - ct: 'http://gionkunz.github.com/chartist-js/ct' - }; - - /** - * Helps to simplify functional style code - * - * @memberof Chartist.Core - * @param {*} n This exact value will be returned by the noop function - * @return {*} The same value that was provided to the n parameter - */ - Chartist.noop = function (n) { - return n; - }; - - /** - * Generates a-z from a number 0 to 26 - * - * @memberof Chartist.Core - * @param {Number} n A number from 0 to 26 that will result in a letter a-z - * @return {String} A character from a-z based on the input number n - */ - Chartist.alphaNumerate = function (n) { - // Limit to a-z - return String.fromCharCode(97 + n % 26); - }; - - /** - * Simple recursive object extend - * - * @memberof Chartist.Core - * @param {Object} target Target object where the source will be merged into - * @param {Object...} sources This object (objects) will be merged into target and then target is returned - * @return {Object} An object that has the same reference as target but is extended and merged with the properties of source - */ - Chartist.extend = function (target) { - var i, source, sourceProp; - target = target || {}; - - for (i = 1; i < arguments.length; i++) { - source = arguments[i]; - for (var prop in source) { - sourceProp = source[prop]; - if (typeof sourceProp === 'object' && sourceProp !== null && !(sourceProp instanceof Array)) { - target[prop] = Chartist.extend(target[prop], sourceProp); - } else { - target[prop] = sourceProp; - } - } - } - - return target; - }; - - /** - * Replaces all occurrences of subStr in str with newSubStr and returns a new string. - * - * @memberof Chartist.Core - * @param {String} str - * @param {String} subStr - * @param {String} newSubStr - * @return {String} - */ - Chartist.replaceAll = function(str, subStr, newSubStr) { - return str.replace(new RegExp(subStr, 'g'), newSubStr); - }; - - /** - * Converts a number to a string with a unit. If a string is passed then this will be returned unmodified. - * - * @memberof Chartist.Core - * @param {Number} value - * @param {String} unit - * @return {String} Returns the passed number value with unit. - */ - Chartist.ensureUnit = function(value, unit) { - if(typeof value === 'number') { - value = value + unit; - } - - return value; - }; - - /** - * Converts a number or string to a quantity object. - * - * @memberof Chartist.Core - * @param {String|Number} input - * @return {Object} Returns an object containing the value as number and the unit as string. - */ - Chartist.quantity = function(input) { - if (typeof input === 'string') { - var match = (/^(\d+)\s*(.*)$/g).exec(input); - return { - value : +match[1], - unit: match[2] || undefined - }; - } - return { value: input }; - }; - - /** - * This is a wrapper around document.querySelector that will return the query if it's already of type Node - * - * @memberof Chartist.Core - * @param {String|Node} query The query to use for selecting a Node or a DOM node that will be returned directly - * @return {Node} - */ - Chartist.querySelector = function(query) { - return query instanceof Node ? query : document.querySelector(query); - }; - - /** - * Functional style helper to produce array with given length initialized with undefined values - * - * @memberof Chartist.Core - * @param length - * @return {Array} - */ - Chartist.times = function(length) { - return Array.apply(null, new Array(length)); - }; - - /** - * Sum helper to be used in reduce functions - * - * @memberof Chartist.Core - * @param previous - * @param current - * @return {*} - */ - Chartist.sum = function(previous, current) { - return previous + (current ? current : 0); - }; - - /** - * Multiply helper to be used in `Array.map` for multiplying each value of an array with a factor. - * - * @memberof Chartist.Core - * @param {Number} factor - * @returns {Function} Function that can be used in `Array.map` to multiply each value in an array - */ - Chartist.mapMultiply = function(factor) { - return function(num) { - return num * factor; - }; - }; - - /** - * Add helper to be used in `Array.map` for adding a addend to each value of an array. - * - * @memberof Chartist.Core - * @param {Number} addend - * @returns {Function} Function that can be used in `Array.map` to add a addend to each value in an array - */ - Chartist.mapAdd = function(addend) { - return function(num) { - return num + addend; - }; - }; - - /** - * Map for multi dimensional arrays where their nested arrays will be mapped in serial. The output array will have the length of the largest nested array. The callback function is called with variable arguments where each argument is the nested array value (or undefined if there are no more values). - * - * @memberof Chartist.Core - * @param arr - * @param cb - * @return {Array} - */ - Chartist.serialMap = function(arr, cb) { - var result = [], - length = Math.max.apply(null, arr.map(function(e) { - return e.length; - })); - - Chartist.times(length).forEach(function(e, index) { - var args = arr.map(function(e) { - return e[index]; - }); - - result[index] = cb.apply(null, args); - }); - - return result; - }; - - /** - * This helper function can be used to round values with certain precision level after decimal. This is used to prevent rounding errors near float point precision limit. - * - * @memberof Chartist.Core - * @param {Number} value The value that should be rounded with precision - * @param {Number} [digits] The number of digits after decimal used to do the rounding - * @returns {number} Rounded value - */ - Chartist.roundWithPrecision = function(value, digits) { - var precision = Math.pow(10, digits || Chartist.precision); - return Math.round(value * precision) / precision; - }; - - /** - * Precision level used internally in Chartist for rounding. If you require more decimal places you can increase this number. - * - * @memberof Chartist.Core - * @type {number} - */ - Chartist.precision = 8; - - /** - * A map with characters to escape for strings to be safely used as attribute values. - * - * @memberof Chartist.Core - * @type {Object} - */ - Chartist.escapingMap = { - '&': '&', - '<': '<', - '>': '>', - '"': '"', - '\'': ''' - }; - - /** - * This function serializes arbitrary data to a string. In case of data that can't be easily converted to a string, this function will create a wrapper object and serialize the data using JSON.stringify. The outcoming string will always be escaped using Chartist.escapingMap. - * If called with null or undefined the function will return immediately with null or undefined. - * - * @memberof Chartist.Core - * @param {Number|String|Object} data - * @return {String} - */ - Chartist.serialize = function(data) { - if(data === null || data === undefined) { - return data; - } else if(typeof data === 'number') { - data = ''+data; - } else if(typeof data === 'object') { - data = JSON.stringify({data: data}); - } - - return Object.keys(Chartist.escapingMap).reduce(function(result, key) { - return Chartist.replaceAll(result, key, Chartist.escapingMap[key]); - }, data); - }; - - /** - * This function de-serializes a string previously serialized with Chartist.serialize. The string will always be unescaped using Chartist.escapingMap before it's returned. Based on the input value the return type can be Number, String or Object. JSON.parse is used with try / catch to see if the unescaped string can be parsed into an Object and this Object will be returned on success. - * - * @memberof Chartist.Core - * @param {String} data - * @return {String|Number|Object} - */ - Chartist.deserialize = function(data) { - if(typeof data !== 'string') { - return data; - } - - data = Object.keys(Chartist.escapingMap).reduce(function(result, key) { - return Chartist.replaceAll(result, Chartist.escapingMap[key], key); - }, data); - - try { - data = JSON.parse(data); - data = data.data !== undefined ? data.data : data; - } catch(e) {} - - return data; - }; - - /** - * Create or reinitialize the SVG element for the chart - * - * @memberof Chartist.Core - * @param {Node} container The containing DOM Node object that will be used to plant the SVG element - * @param {String} width Set the width of the SVG element. Default is 100% - * @param {String} height Set the height of the SVG element. Default is 100% - * @param {String} className Specify a class to be added to the SVG element - * @return {Object} The created/reinitialized SVG element - */ - Chartist.createSvg = function (container, width, height, className) { - var svg; - - width = width || '100%'; - height = height || '100%'; - - // Check if there is a previous SVG element in the container that contains the Chartist XML namespace and remove it - // Since the DOM API does not support namespaces we need to manually search the returned list http://www.w3.org/TR/selectors-api/ - Array.prototype.slice.call(container.querySelectorAll('svg')).filter(function filterChartistSvgObjects(svg) { - return svg.getAttributeNS(Chartist.namespaces.xmlns, 'ct'); - }).forEach(function removePreviousElement(svg) { - container.removeChild(svg); - }); - - // Create svg object with width and height or use 100% as default - svg = new Chartist.Svg('svg').attr({ - width: width, - height: height - }).addClass(className); - - svg._node.style.width = width; - svg._node.style.height = height; - - // Add the DOM node to our container - container.appendChild(svg._node); - - return svg; - }; - - /** - * Ensures that the data object passed as second argument to the charts is present and correctly initialized. - * - * @param {Object} data The data object that is passed as second argument to the charts - * @return {Object} The normalized data object - */ - Chartist.normalizeData = function(data, reverse, multi) { - var labelCount; - var output = { - raw: data, - normalized: {} - }; - - // Check if we should generate some labels based on existing series data - output.normalized.series = Chartist.getDataArray({ - series: data.series || [] - }, reverse, multi); - - // If all elements of the normalized data array are arrays we're dealing with - // multi series data and we need to find the largest series if they are un-even - if (output.normalized.series.every(function(value) { - return value instanceof Array; - })) { - // Getting the series with the the most elements - labelCount = Math.max.apply(null, output.normalized.series.map(function(series) { - return series.length; - })); - } else { - // We're dealing with Pie data so we just take the normalized array length - labelCount = output.normalized.series.length; - } - - output.normalized.labels = (data.labels || []).slice(); - // Padding the labels to labelCount with empty strings - Array.prototype.push.apply( - output.normalized.labels, - Chartist.times(Math.max(0, labelCount - output.normalized.labels.length)).map(function() { - return ''; - }) - ); - - if(reverse) { - Chartist.reverseData(output.normalized); - } - - return output; - }; - - /** - * This function safely checks if an objects has an owned property. - * - * @param {Object} object The object where to check for a property - * @param {string} property The property name - * @returns {boolean} Returns true if the object owns the specified property - */ - Chartist.safeHasProperty = function(object, property) { - return object !== null && - typeof object === 'object' && - object.hasOwnProperty(property); - }; - - /** - * Checks if a value is considered a hole in the data series. - * - * @param {*} value - * @returns {boolean} True if the value is considered a data hole - */ - Chartist.isDataHoleValue = function(value) { - return value === null || - value === undefined || - (typeof value === 'number' && isNaN(value)); - }; - - /** - * Reverses the series, labels and series data arrays. - * - * @memberof Chartist.Core - * @param data - */ - Chartist.reverseData = function(data) { - data.labels.reverse(); - data.series.reverse(); - for (var i = 0; i < data.series.length; i++) { - if(typeof(data.series[i]) === 'object' && data.series[i].data !== undefined) { - data.series[i].data.reverse(); - } else if(data.series[i] instanceof Array) { - data.series[i].reverse(); - } - } - }; - - /** - * Convert data series into plain array - * - * @memberof Chartist.Core - * @param {Object} data The series object that contains the data to be visualized in the chart - * @param {Boolean} [reverse] If true the whole data is reversed by the getDataArray call. This will modify the data object passed as first parameter. The labels as well as the series order is reversed. The whole series data arrays are reversed too. - * @param {Boolean} [multi] Create a multi dimensional array from a series data array where a value object with `x` and `y` values will be created. - * @return {Array} A plain array that contains the data to be visualized in the chart - */ - Chartist.getDataArray = function(data, reverse, multi) { - // Recursively walks through nested arrays and convert string values to numbers and objects with value properties - // to values. Check the tests in data core -> data normalization for a detailed specification of expected values - function recursiveConvert(value) { - if(Chartist.safeHasProperty(value, 'value')) { - // We are dealing with value object notation so we need to recurse on value property - return recursiveConvert(value.value); - } else if(Chartist.safeHasProperty(value, 'data')) { - // We are dealing with series object notation so we need to recurse on data property - return recursiveConvert(value.data); - } else if(value instanceof Array) { - // Data is of type array so we need to recurse on the series - return value.map(recursiveConvert); - } else if(Chartist.isDataHoleValue(value)) { - // We're dealing with a hole in the data and therefore need to return undefined - // We're also returning undefined for multi value output - return undefined; - } else { - // We need to prepare multi value output (x and y data) - if(multi) { - var multiValue = {}; - - // Single series value arrays are assumed to specify the Y-Axis value - // For example: [1, 2] => [{x: undefined, y: 1}, {x: undefined, y: 2}] - // If multi is a string then it's assumed that it specified which dimension should be filled as default - if(typeof multi === 'string') { - multiValue[multi] = Chartist.getNumberOrUndefined(value); - } else { - multiValue.y = Chartist.getNumberOrUndefined(value); - } - - multiValue.x = value.hasOwnProperty('x') ? Chartist.getNumberOrUndefined(value.x) : multiValue.x; - multiValue.y = value.hasOwnProperty('y') ? Chartist.getNumberOrUndefined(value.y) : multiValue.y; - - return multiValue; - - } else { - // We can return simple data - return Chartist.getNumberOrUndefined(value); - } - } - } - - return data.series.map(recursiveConvert); - }; - - /** - * Converts a number into a padding object. - * - * @memberof Chartist.Core - * @param {Object|Number} padding - * @param {Number} [fallback] This value is used to fill missing values if a incomplete padding object was passed - * @returns {Object} Returns a padding object containing top, right, bottom, left properties filled with the padding number passed in as argument. If the argument is something else than a number (presumably already a correct padding object) then this argument is directly returned. - */ - Chartist.normalizePadding = function(padding, fallback) { - fallback = fallback || 0; - - return typeof padding === 'number' ? { - top: padding, - right: padding, - bottom: padding, - left: padding - } : { - top: typeof padding.top === 'number' ? padding.top : fallback, - right: typeof padding.right === 'number' ? padding.right : fallback, - bottom: typeof padding.bottom === 'number' ? padding.bottom : fallback, - left: typeof padding.left === 'number' ? padding.left : fallback - }; - }; - - Chartist.getMetaData = function(series, index) { - var value = series.data ? series.data[index] : series[index]; - return value ? value.meta : undefined; - }; - - /** - * Calculate the order of magnitude for the chart scale - * - * @memberof Chartist.Core - * @param {Number} value The value Range of the chart - * @return {Number} The order of magnitude - */ - Chartist.orderOfMagnitude = function (value) { - return Math.floor(Math.log(Math.abs(value)) / Math.LN10); - }; - - /** - * Project a data length into screen coordinates (pixels) - * - * @memberof Chartist.Core - * @param {Object} axisLength The svg element for the chart - * @param {Number} length Single data value from a series array - * @param {Object} bounds All the values to set the bounds of the chart - * @return {Number} The projected data length in pixels - */ - Chartist.projectLength = function (axisLength, length, bounds) { - return length / bounds.range * axisLength; - }; - - /** - * Get the height of the area in the chart for the data series - * - * @memberof Chartist.Core - * @param {Object} svg The svg element for the chart - * @param {Object} options The Object that contains all the optional values for the chart - * @return {Number} The height of the area in the chart for the data series - */ - Chartist.getAvailableHeight = function (svg, options) { - return Math.max((Chartist.quantity(options.height).value || svg.height()) - (options.chartPadding.top + options.chartPadding.bottom) - options.axisX.offset, 0); - }; - - /** - * Get highest and lowest value of data array. This Array contains the data that will be visualized in the chart. - * - * @memberof Chartist.Core - * @param {Array} data The array that contains the data to be visualized in the chart - * @param {Object} options The Object that contains the chart options - * @param {String} dimension Axis dimension 'x' or 'y' used to access the correct value and high / low configuration - * @return {Object} An object that contains the highest and lowest value that will be visualized on the chart. - */ - Chartist.getHighLow = function (data, options, dimension) { - // TODO: Remove workaround for deprecated global high / low config. Axis high / low configuration is preferred - options = Chartist.extend({}, options, dimension ? options['axis' + dimension.toUpperCase()] : {}); - - var highLow = { - high: options.high === undefined ? -Number.MAX_VALUE : +options.high, - low: options.low === undefined ? Number.MAX_VALUE : +options.low - }; - var findHigh = options.high === undefined; - var findLow = options.low === undefined; - - // Function to recursively walk through arrays and find highest and lowest number - function recursiveHighLow(data) { - if(data === undefined) { - return undefined; - } else if(data instanceof Array) { - for (var i = 0; i < data.length; i++) { - recursiveHighLow(data[i]); - } - } else { - var value = dimension ? +data[dimension] : +data; - - if (findHigh && value > highLow.high) { - highLow.high = value; - } - - if (findLow && value < highLow.low) { - highLow.low = value; - } - } - } - - // Start to find highest and lowest number recursively - if(findHigh || findLow) { - recursiveHighLow(data); - } - - // Overrides of high / low based on reference value, it will make sure that the invisible reference value is - // used to generate the chart. This is useful when the chart always needs to contain the position of the - // invisible reference value in the view i.e. for bipolar scales. - if (options.referenceValue || options.referenceValue === 0) { - highLow.high = Math.max(options.referenceValue, highLow.high); - highLow.low = Math.min(options.referenceValue, highLow.low); - } - - // If high and low are the same because of misconfiguration or flat data (only the same value) we need - // to set the high or low to 0 depending on the polarity - if (highLow.high <= highLow.low) { - // If both values are 0 we set high to 1 - if (highLow.low === 0) { - highLow.high = 1; - } else if (highLow.low < 0) { - // If we have the same negative value for the bounds we set bounds.high to 0 - highLow.high = 0; - } else if (highLow.high > 0) { - // If we have the same positive value for the bounds we set bounds.low to 0 - highLow.low = 0; - } else { - // If data array was empty, values are Number.MAX_VALUE and -Number.MAX_VALUE. Set bounds to prevent errors - highLow.high = 1; - highLow.low = 0; - } - } - - return highLow; - }; - - /** - * Checks if a value can be safely coerced to a number. This includes all values except null which result in finite numbers when coerced. This excludes NaN, since it's not finite. - * - * @memberof Chartist.Core - * @param value - * @returns {Boolean} - */ - Chartist.isNumeric = function(value) { - return value === null ? false : isFinite(value); - }; - - /** - * Returns true on all falsey values except the numeric value 0. - * - * @memberof Chartist.Core - * @param value - * @returns {boolean} - */ - Chartist.isFalseyButZero = function(value) { - return !value && value !== 0; - }; - - /** - * Returns a number if the passed parameter is a valid number or the function will return undefined. On all other values than a valid number, this function will return undefined. - * - * @memberof Chartist.Core - * @param value - * @returns {*} - */ - Chartist.getNumberOrUndefined = function(value) { - return Chartist.isNumeric(value) ? +value : undefined; - }; - - /** - * Checks if provided value object is multi value (contains x or y properties) - * - * @memberof Chartist.Core - * @param value - */ - Chartist.isMultiValue = function(value) { - return typeof value === 'object' && ('x' in value || 'y' in value); - }; - - /** - * Gets a value from a dimension `value.x` or `value.y` while returning value directly if it's a valid numeric value. If the value is not numeric and it's falsey this function will return `defaultValue`. - * - * @memberof Chartist.Core - * @param value - * @param dimension - * @param defaultValue - * @returns {*} - */ - Chartist.getMultiValue = function(value, dimension) { - if(Chartist.isMultiValue(value)) { - return Chartist.getNumberOrUndefined(value[dimension || 'y']); - } else { - return Chartist.getNumberOrUndefined(value); - } - }; - - /** - * Pollard Rho Algorithm to find smallest factor of an integer value. There are more efficient algorithms for factorization, but this one is quite efficient and not so complex. - * - * @memberof Chartist.Core - * @param {Number} num An integer number where the smallest factor should be searched for - * @returns {Number} The smallest integer factor of the parameter num. - */ - Chartist.rho = function(num) { - if(num === 1) { - return num; - } - - function gcd(p, q) { - if (p % q === 0) { - return q; - } else { - return gcd(q, p % q); - } - } - - function f(x) { - return x * x + 1; - } - - var x1 = 2, x2 = 2, divisor; - if (num % 2 === 0) { - return 2; - } - - do { - x1 = f(x1) % num; - x2 = f(f(x2)) % num; - divisor = gcd(Math.abs(x1 - x2), num); - } while (divisor === 1); - - return divisor; - }; - - /** - * Calculate and retrieve all the bounds for the chart and return them in one array - * - * @memberof Chartist.Core - * @param {Number} axisLength The length of the Axis used for - * @param {Object} highLow An object containing a high and low property indicating the value range of the chart. - * @param {Number} scaleMinSpace The minimum projected length a step should result in - * @param {Boolean} onlyInteger - * @return {Object} All the values to set the bounds of the chart - */ - Chartist.getBounds = function (axisLength, highLow, scaleMinSpace, onlyInteger) { - var i, - optimizationCounter = 0, - newMin, - newMax, - bounds = { - high: highLow.high, - low: highLow.low - }; - - bounds.valueRange = bounds.high - bounds.low; - bounds.oom = Chartist.orderOfMagnitude(bounds.valueRange); - bounds.step = Math.pow(10, bounds.oom); - bounds.min = Math.floor(bounds.low / bounds.step) * bounds.step; - bounds.max = Math.ceil(bounds.high / bounds.step) * bounds.step; - bounds.range = bounds.max - bounds.min; - bounds.numberOfSteps = Math.round(bounds.range / bounds.step); - - // Optimize scale step by checking if subdivision is possible based on horizontalGridMinSpace - // If we are already below the scaleMinSpace value we will scale up - var length = Chartist.projectLength(axisLength, bounds.step, bounds); - var scaleUp = length < scaleMinSpace; - var smallestFactor = onlyInteger ? Chartist.rho(bounds.range) : 0; - - // First check if we should only use integer steps and if step 1 is still larger than scaleMinSpace so we can use 1 - if(onlyInteger && Chartist.projectLength(axisLength, 1, bounds) >= scaleMinSpace) { - bounds.step = 1; - } else if(onlyInteger && smallestFactor < bounds.step && Chartist.projectLength(axisLength, smallestFactor, bounds) >= scaleMinSpace) { - // If step 1 was too small, we can try the smallest factor of range - // If the smallest factor is smaller than the current bounds.step and the projected length of smallest factor - // is larger than the scaleMinSpace we should go for it. - bounds.step = smallestFactor; - } else { - // Trying to divide or multiply by 2 and find the best step value - while (true) { - if (scaleUp && Chartist.projectLength(axisLength, bounds.step, bounds) <= scaleMinSpace) { - bounds.step *= 2; - } else if (!scaleUp && Chartist.projectLength(axisLength, bounds.step / 2, bounds) >= scaleMinSpace) { - bounds.step /= 2; - if(onlyInteger && bounds.step % 1 !== 0) { - bounds.step *= 2; - break; - } - } else { - break; - } - - if(optimizationCounter++ > 1000) { - throw new Error('Exceeded maximum number of iterations while optimizing scale step!'); - } - } - } - - var EPSILON = 2.221E-16; - bounds.step = Math.max(bounds.step, EPSILON); - function safeIncrement(value, increment) { - // If increment is too small use *= (1+EPSILON) as a simple nextafter - if (value === (value += increment)) { - value *= (1 + (increment > 0 ? EPSILON : -EPSILON)); - } - return value; - } - - // Narrow min and max based on new step - newMin = bounds.min; - newMax = bounds.max; - while (newMin + bounds.step <= bounds.low) { - newMin = safeIncrement(newMin, bounds.step); - } - while (newMax - bounds.step >= bounds.high) { - newMax = safeIncrement(newMax, -bounds.step); - } - bounds.min = newMin; - bounds.max = newMax; - bounds.range = bounds.max - bounds.min; - - var values = []; - for (i = bounds.min; i <= bounds.max; i = safeIncrement(i, bounds.step)) { - var value = Chartist.roundWithPrecision(i); - if (value !== values[values.length - 1]) { - values.push(value); - } - } - bounds.values = values; - return bounds; - }; - - /** - * Calculate cartesian coordinates of polar coordinates - * - * @memberof Chartist.Core - * @param {Number} centerX X-axis coordinates of center point of circle segment - * @param {Number} centerY X-axis coordinates of center point of circle segment - * @param {Number} radius Radius of circle segment - * @param {Number} angleInDegrees Angle of circle segment in degrees - * @return {{x:Number, y:Number}} Coordinates of point on circumference - */ - Chartist.polarToCartesian = function (centerX, centerY, radius, angleInDegrees) { - var angleInRadians = (angleInDegrees - 90) * Math.PI / 180.0; - - return { - x: centerX + (radius * Math.cos(angleInRadians)), - y: centerY + (radius * Math.sin(angleInRadians)) - }; - }; - - /** - * Initialize chart drawing rectangle (area where chart is drawn) x1,y1 = bottom left / x2,y2 = top right - * - * @memberof Chartist.Core - * @param {Object} svg The svg element for the chart - * @param {Object} options The Object that contains all the optional values for the chart - * @param {Number} [fallbackPadding] The fallback padding if partial padding objects are used - * @return {Object} The chart rectangles coordinates inside the svg element plus the rectangles measurements - */ - Chartist.createChartRect = function (svg, options, fallbackPadding) { - var hasAxis = !!(options.axisX || options.axisY); - var yAxisOffset = hasAxis ? options.axisY.offset : 0; - var xAxisOffset = hasAxis ? options.axisX.offset : 0; - // If width or height results in invalid value (including 0) we fallback to the unitless settings or even 0 - var width = svg.width() || Chartist.quantity(options.width).value || 0; - var height = svg.height() || Chartist.quantity(options.height).value || 0; - var normalizedPadding = Chartist.normalizePadding(options.chartPadding, fallbackPadding); - - // If settings were to small to cope with offset (legacy) and padding, we'll adjust - width = Math.max(width, yAxisOffset + normalizedPadding.left + normalizedPadding.right); - height = Math.max(height, xAxisOffset + normalizedPadding.top + normalizedPadding.bottom); - - var chartRect = { - padding: normalizedPadding, - width: function () { - return this.x2 - this.x1; - }, - height: function () { - return this.y1 - this.y2; - } - }; - - if(hasAxis) { - if (options.axisX.position === 'start') { - chartRect.y2 = normalizedPadding.top + xAxisOffset; - chartRect.y1 = Math.max(height - normalizedPadding.bottom, chartRect.y2 + 1); - } else { - chartRect.y2 = normalizedPadding.top; - chartRect.y1 = Math.max(height - normalizedPadding.bottom - xAxisOffset, chartRect.y2 + 1); - } - - if (options.axisY.position === 'start') { - chartRect.x1 = normalizedPadding.left + yAxisOffset; - chartRect.x2 = Math.max(width - normalizedPadding.right, chartRect.x1 + 1); - } else { - chartRect.x1 = normalizedPadding.left; - chartRect.x2 = Math.max(width - normalizedPadding.right - yAxisOffset, chartRect.x1 + 1); - } - } else { - chartRect.x1 = normalizedPadding.left; - chartRect.x2 = Math.max(width - normalizedPadding.right, chartRect.x1 + 1); - chartRect.y2 = normalizedPadding.top; - chartRect.y1 = Math.max(height - normalizedPadding.bottom, chartRect.y2 + 1); - } - - return chartRect; - }; - - /** - * Creates a grid line based on a projected value. - * - * @memberof Chartist.Core - * @param position - * @param index - * @param axis - * @param offset - * @param length - * @param group - * @param classes - * @param eventEmitter - */ - Chartist.createGrid = function(position, index, axis, offset, length, group, classes, eventEmitter) { - var positionalData = {}; - positionalData[axis.units.pos + '1'] = position; - positionalData[axis.units.pos + '2'] = position; - positionalData[axis.counterUnits.pos + '1'] = offset; - positionalData[axis.counterUnits.pos + '2'] = offset + length; - - var gridElement = group.elem('line', positionalData, classes.join(' ')); - - // Event for grid draw - eventEmitter.emit('draw', - Chartist.extend({ - type: 'grid', - axis: axis, - index: index, - group: group, - element: gridElement - }, positionalData) - ); - }; - - /** - * Creates a grid background rect and emits the draw event. - * - * @memberof Chartist.Core - * @param gridGroup - * @param chartRect - * @param className - * @param eventEmitter - */ - Chartist.createGridBackground = function (gridGroup, chartRect, className, eventEmitter) { - var gridBackground = gridGroup.elem('rect', { - x: chartRect.x1, - y: chartRect.y2, - width: chartRect.width(), - height: chartRect.height(), - }, className, true); - - // Event for grid background draw - eventEmitter.emit('draw', { - type: 'gridBackground', - group: gridGroup, - element: gridBackground - }); - }; - - /** - * Creates a label based on a projected value and an axis. - * - * @memberof Chartist.Core - * @param position - * @param length - * @param index - * @param labels - * @param axis - * @param axisOffset - * @param labelOffset - * @param group - * @param classes - * @param useForeignObject - * @param eventEmitter - */ - Chartist.createLabel = function(position, length, index, labels, axis, axisOffset, labelOffset, group, classes, useForeignObject, eventEmitter) { - var labelElement; - var positionalData = {}; - - positionalData[axis.units.pos] = position + labelOffset[axis.units.pos]; - positionalData[axis.counterUnits.pos] = labelOffset[axis.counterUnits.pos]; - positionalData[axis.units.len] = length; - positionalData[axis.counterUnits.len] = Math.max(0, axisOffset - 10); - - if(useForeignObject) { - // We need to set width and height explicitly to px as span will not expand with width and height being - // 100% in all browsers - var content = document.createElement('span'); - content.className = classes.join(' '); - content.setAttribute('xmlns', Chartist.namespaces.xhtml); - content.innerText = labels[index]; - content.style[axis.units.len] = Math.round(positionalData[axis.units.len]) + 'px'; - content.style[axis.counterUnits.len] = Math.round(positionalData[axis.counterUnits.len]) + 'px'; - - labelElement = group.foreignObject(content, Chartist.extend({ - style: 'overflow: visible;' - }, positionalData)); - } else { - labelElement = group.elem('text', positionalData, classes.join(' ')).text(labels[index]); - } - - eventEmitter.emit('draw', Chartist.extend({ - type: 'label', - axis: axis, - index: index, - group: group, - element: labelElement, - text: labels[index] - }, positionalData)); - }; - - /** - * Helper to read series specific options from options object. It automatically falls back to the global option if - * there is no option in the series options. - * - * @param {Object} series Series object - * @param {Object} options Chartist options object - * @param {string} key The options key that should be used to obtain the options - * @returns {*} - */ - Chartist.getSeriesOption = function(series, options, key) { - if(series.name && options.series && options.series[series.name]) { - var seriesOptions = options.series[series.name]; - return seriesOptions.hasOwnProperty(key) ? seriesOptions[key] : options[key]; - } else { - return options[key]; - } - }; - - /** - * Provides options handling functionality with callback for options changes triggered by responsive options and media query matches - * - * @memberof Chartist.Core - * @param {Object} options Options set by user - * @param {Array} responsiveOptions Optional functions to add responsive behavior to chart - * @param {Object} eventEmitter The event emitter that will be used to emit the options changed events - * @return {Object} The consolidated options object from the defaults, base and matching responsive options - */ - Chartist.optionsProvider = function (options, responsiveOptions, eventEmitter) { - var baseOptions = Chartist.extend({}, options), - currentOptions, - mediaQueryListeners = [], - i; - - function updateCurrentOptions(mediaEvent) { - var previousOptions = currentOptions; - currentOptions = Chartist.extend({}, baseOptions); - - if (responsiveOptions) { - for (i = 0; i < responsiveOptions.length; i++) { - var mql = window.matchMedia(responsiveOptions[i][0]); - if (mql.matches) { - currentOptions = Chartist.extend(currentOptions, responsiveOptions[i][1]); - } - } - } - - if(eventEmitter && mediaEvent) { - eventEmitter.emit('optionsChanged', { - previousOptions: previousOptions, - currentOptions: currentOptions - }); - } - } - - function removeMediaQueryListeners() { - mediaQueryListeners.forEach(function(mql) { - mql.removeListener(updateCurrentOptions); - }); - } - - if (!window.matchMedia) { - throw 'window.matchMedia not found! Make sure you\'re using a polyfill.'; - } else if (responsiveOptions) { - - for (i = 0; i < responsiveOptions.length; i++) { - var mql = window.matchMedia(responsiveOptions[i][0]); - mql.addListener(updateCurrentOptions); - mediaQueryListeners.push(mql); - } - } - // Execute initially without an event argument so we get the correct options - updateCurrentOptions(); - - return { - removeMediaQueryListeners: removeMediaQueryListeners, - getCurrentOptions: function getCurrentOptions() { - return Chartist.extend({}, currentOptions); - } - }; - }; - - - /** - * Splits a list of coordinates and associated values into segments. Each returned segment contains a pathCoordinates - * valueData property describing the segment. - * - * With the default options, segments consist of contiguous sets of points that do not have an undefined value. Any - * points with undefined values are discarded. - * - * **Options** - * The following options are used to determine how segments are formed - * ```javascript - * var options = { - * // If fillHoles is true, undefined values are simply discarded without creating a new segment. Assuming other options are default, this returns single segment. - * fillHoles: false, - * // If increasingX is true, the coordinates in all segments have strictly increasing x-values. - * increasingX: false - * }; - * ``` - * - * @memberof Chartist.Core - * @param {Array} pathCoordinates List of point coordinates to be split in the form [x1, y1, x2, y2 ... xn, yn] - * @param {Array} values List of associated point values in the form [v1, v2 .. vn] - * @param {Object} options Options set by user - * @return {Array} List of segments, each containing a pathCoordinates and valueData property. - */ - Chartist.splitIntoSegments = function(pathCoordinates, valueData, options) { - var defaultOptions = { - increasingX: false, - fillHoles: false - }; - - options = Chartist.extend({}, defaultOptions, options); - - var segments = []; - var hole = true; - - for(var i = 0; i < pathCoordinates.length; i += 2) { - // If this value is a "hole" we set the hole flag - if(Chartist.getMultiValue(valueData[i / 2].value) === undefined) { - // if(valueData[i / 2].value === undefined) { - if(!options.fillHoles) { - hole = true; - } - } else { - if(options.increasingX && i >= 2 && pathCoordinates[i] <= pathCoordinates[i-2]) { - // X is not increasing, so we need to make sure we start a new segment - hole = true; - } - - - // If it's a valid value we need to check if we're coming out of a hole and create a new empty segment - if(hole) { - segments.push({ - pathCoordinates: [], - valueData: [] - }); - // As we have a valid value now, we are not in a "hole" anymore - hole = false; - } - - // Add to the segment pathCoordinates and valueData - segments[segments.length - 1].pathCoordinates.push(pathCoordinates[i], pathCoordinates[i + 1]); - segments[segments.length - 1].valueData.push(valueData[i / 2]); - } - } - - return segments; - }; -}(this || global, Chartist)); diff --git a/src/scripts/event.js b/src/scripts/event.js deleted file mode 100644 index 3333e533d..000000000 --- a/src/scripts/event.js +++ /dev/null @@ -1,78 +0,0 @@ -/** - * A very basic event module that helps to generate and catch events. - * - * @module Chartist.Event - */ -/* global Chartist */ -(function (globalRoot, Chartist) { - 'use strict'; - - Chartist.EventEmitter = function () { - var handlers = []; - - /** - * Add an event handler for a specific event - * - * @memberof Chartist.Event - * @param {String} event The event name - * @param {Function} handler A event handler function - */ - function addEventHandler(event, handler) { - handlers[event] = handlers[event] || []; - handlers[event].push(handler); - } - - /** - * Remove an event handler of a specific event name or remove all event handlers for a specific event. - * - * @memberof Chartist.Event - * @param {String} event The event name where a specific or all handlers should be removed - * @param {Function} [handler] An optional event handler function. If specified only this specific handler will be removed and otherwise all handlers are removed. - */ - function removeEventHandler(event, handler) { - // Only do something if there are event handlers with this name existing - if(handlers[event]) { - // If handler is set we will look for a specific handler and only remove this - if(handler) { - handlers[event].splice(handlers[event].indexOf(handler), 1); - if(handlers[event].length === 0) { - delete handlers[event]; - } - } else { - // If no handler is specified we remove all handlers for this event - delete handlers[event]; - } - } - } - - /** - * Use this function to emit an event. All handlers that are listening for this event will be triggered with the data parameter. - * - * @memberof Chartist.Event - * @param {String} event The event name that should be triggered - * @param {*} data Arbitrary data that will be passed to the event handler callback functions - */ - function emit(event, data) { - // Only do something if there are event handlers with this name existing - if(handlers[event]) { - handlers[event].forEach(function(handler) { - handler(data); - }); - } - - // Emit event to star event handlers - if(handlers['*']) { - handlers['*'].forEach(function(starHandler) { - starHandler(event, data); - }); - } - } - - return { - addEventHandler: addEventHandler, - removeEventHandler: removeEventHandler, - emit: emit - }; - }; - -}(this || global, Chartist)); diff --git a/src/scripts/interpolation.js b/src/scripts/interpolation.js deleted file mode 100644 index 0cd3260af..000000000 --- a/src/scripts/interpolation.js +++ /dev/null @@ -1,437 +0,0 @@ -/** - * Chartist path interpolation functions. - * - * @module Chartist.Interpolation - */ -/* global Chartist */ -(function(globalRoot, Chartist) { - 'use strict'; - - Chartist.Interpolation = {}; - - /** - * This interpolation function does not smooth the path and the result is only containing lines and no curves. - * - * @example - * var chart = new Chartist.Line('.ct-chart', { - * labels: [1, 2, 3, 4, 5], - * series: [[1, 2, 8, 1, 7]] - * }, { - * lineSmooth: Chartist.Interpolation.none({ - * fillHoles: false - * }) - * }); - * - * - * @memberof Chartist.Interpolation - * @return {Function} - */ - Chartist.Interpolation.none = function(options) { - var defaultOptions = { - fillHoles: false - }; - options = Chartist.extend({}, defaultOptions, options); - return function none(pathCoordinates, valueData) { - var path = new Chartist.Svg.Path(); - var hole = true; - - for(var i = 0; i < pathCoordinates.length; i += 2) { - var currX = pathCoordinates[i]; - var currY = pathCoordinates[i + 1]; - var currData = valueData[i / 2]; - - if(Chartist.getMultiValue(currData.value) !== undefined) { - - if(hole) { - path.move(currX, currY, false, currData); - } else { - path.line(currX, currY, false, currData); - } - - hole = false; - } else if(!options.fillHoles) { - hole = true; - } - } - - return path; - }; - }; - - /** - * Simple smoothing creates horizontal handles that are positioned with a fraction of the length between two data points. You can use the divisor option to specify the amount of smoothing. - * - * Simple smoothing can be used instead of `Chartist.Smoothing.cardinal` if you'd like to get rid of the artifacts it produces sometimes. Simple smoothing produces less flowing lines but is accurate by hitting the points and it also doesn't swing below or above the given data point. - * - * All smoothing functions within Chartist are factory functions that accept an options parameter. The simple interpolation function accepts one configuration parameter `divisor`, between 1 and āˆž, which controls the smoothing characteristics. - * - * @example - * var chart = new Chartist.Line('.ct-chart', { - * labels: [1, 2, 3, 4, 5], - * series: [[1, 2, 8, 1, 7]] - * }, { - * lineSmooth: Chartist.Interpolation.simple({ - * divisor: 2, - * fillHoles: false - * }) - * }); - * - * - * @memberof Chartist.Interpolation - * @param {Object} options The options of the simple interpolation factory function. - * @return {Function} - */ - Chartist.Interpolation.simple = function(options) { - var defaultOptions = { - divisor: 2, - fillHoles: false - }; - options = Chartist.extend({}, defaultOptions, options); - - var d = 1 / Math.max(1, options.divisor); - - return function simple(pathCoordinates, valueData) { - var path = new Chartist.Svg.Path(); - var prevX, prevY, prevData; - - for(var i = 0; i < pathCoordinates.length; i += 2) { - var currX = pathCoordinates[i]; - var currY = pathCoordinates[i + 1]; - var length = (currX - prevX) * d; - var currData = valueData[i / 2]; - - if(currData.value !== undefined) { - - if(prevData === undefined) { - path.move(currX, currY, false, currData); - } else { - path.curve( - prevX + length, - prevY, - currX - length, - currY, - currX, - currY, - false, - currData - ); - } - - prevX = currX; - prevY = currY; - prevData = currData; - } else if(!options.fillHoles) { - prevX = currX = prevData = undefined; - } - } - - return path; - }; - }; - - /** - * Cardinal / Catmull-Rome spline interpolation is the default smoothing function in Chartist. It produces nice results where the splines will always meet the points. It produces some artifacts though when data values are increased or decreased rapidly. The line may not follow a very accurate path and if the line should be accurate this smoothing function does not produce the best results. - * - * Cardinal splines can only be created if there are more than two data points. If this is not the case this smoothing will fallback to `Chartist.Smoothing.none`. - * - * All smoothing functions within Chartist are factory functions that accept an options parameter. The cardinal interpolation function accepts one configuration parameter `tension`, between 0 and 1, which controls the smoothing intensity. - * - * @example - * var chart = new Chartist.Line('.ct-chart', { - * labels: [1, 2, 3, 4, 5], - * series: [[1, 2, 8, 1, 7]] - * }, { - * lineSmooth: Chartist.Interpolation.cardinal({ - * tension: 1, - * fillHoles: false - * }) - * }); - * - * @memberof Chartist.Interpolation - * @param {Object} options The options of the cardinal factory function. - * @return {Function} - */ - Chartist.Interpolation.cardinal = function(options) { - var defaultOptions = { - tension: 1, - fillHoles: false - }; - - options = Chartist.extend({}, defaultOptions, options); - - var t = Math.min(1, Math.max(0, options.tension)), - c = 1 - t; - - return function cardinal(pathCoordinates, valueData) { - // First we try to split the coordinates into segments - // This is necessary to treat "holes" in line charts - var segments = Chartist.splitIntoSegments(pathCoordinates, valueData, { - fillHoles: options.fillHoles - }); - - if(!segments.length) { - // If there were no segments return 'Chartist.Interpolation.none' - return Chartist.Interpolation.none()([]); - } else if(segments.length > 1) { - // If the split resulted in more that one segment we need to interpolate each segment individually and join them - // afterwards together into a single path. - var paths = []; - // For each segment we will recurse the cardinal function - segments.forEach(function(segment) { - paths.push(cardinal(segment.pathCoordinates, segment.valueData)); - }); - // Join the segment path data into a single path and return - return Chartist.Svg.Path.join(paths); - } else { - // If there was only one segment we can proceed regularly by using pathCoordinates and valueData from the first - // segment - pathCoordinates = segments[0].pathCoordinates; - valueData = segments[0].valueData; - - // If less than two points we need to fallback to no smoothing - if(pathCoordinates.length <= 4) { - return Chartist.Interpolation.none()(pathCoordinates, valueData); - } - - var path = new Chartist.Svg.Path().move(pathCoordinates[0], pathCoordinates[1], false, valueData[0]), - z; - - for (var i = 0, iLen = pathCoordinates.length; iLen - 2 * !z > i; i += 2) { - var p = [ - {x: +pathCoordinates[i - 2], y: +pathCoordinates[i - 1]}, - {x: +pathCoordinates[i], y: +pathCoordinates[i + 1]}, - {x: +pathCoordinates[i + 2], y: +pathCoordinates[i + 3]}, - {x: +pathCoordinates[i + 4], y: +pathCoordinates[i + 5]} - ]; - if (z) { - if (!i) { - p[0] = {x: +pathCoordinates[iLen - 2], y: +pathCoordinates[iLen - 1]}; - } else if (iLen - 4 === i) { - p[3] = {x: +pathCoordinates[0], y: +pathCoordinates[1]}; - } else if (iLen - 2 === i) { - p[2] = {x: +pathCoordinates[0], y: +pathCoordinates[1]}; - p[3] = {x: +pathCoordinates[2], y: +pathCoordinates[3]}; - } - } else { - if (iLen - 4 === i) { - p[3] = p[2]; - } else if (!i) { - p[0] = {x: +pathCoordinates[i], y: +pathCoordinates[i + 1]}; - } - } - - path.curve( - (t * (-p[0].x + 6 * p[1].x + p[2].x) / 6) + (c * p[2].x), - (t * (-p[0].y + 6 * p[1].y + p[2].y) / 6) + (c * p[2].y), - (t * (p[1].x + 6 * p[2].x - p[3].x) / 6) + (c * p[2].x), - (t * (p[1].y + 6 * p[2].y - p[3].y) / 6) + (c * p[2].y), - p[2].x, - p[2].y, - false, - valueData[(i + 2) / 2] - ); - } - - return path; - } - }; - }; - - /** - * Monotone Cubic spline interpolation produces a smooth curve which preserves monotonicity. Unlike cardinal splines, the curve will not extend beyond the range of y-values of the original data points. - * - * Monotone Cubic splines can only be created if there are more than two data points. If this is not the case this smoothing will fallback to `Chartist.Smoothing.none`. - * - * The x-values of subsequent points must be increasing to fit a Monotone Cubic spline. If this condition is not met for a pair of adjacent points, then there will be a break in the curve between those data points. - * - * All smoothing functions within Chartist are factory functions that accept an options parameter. - * - * @example - * var chart = new Chartist.Line('.ct-chart', { - * labels: [1, 2, 3, 4, 5], - * series: [[1, 2, 8, 1, 7]] - * }, { - * lineSmooth: Chartist.Interpolation.monotoneCubic({ - * fillHoles: false - * }) - * }); - * - * @memberof Chartist.Interpolation - * @param {Object} options The options of the monotoneCubic factory function. - * @return {Function} - */ - Chartist.Interpolation.monotoneCubic = function(options) { - var defaultOptions = { - fillHoles: false - }; - - options = Chartist.extend({}, defaultOptions, options); - - return function monotoneCubic(pathCoordinates, valueData) { - // First we try to split the coordinates into segments - // This is necessary to treat "holes" in line charts - var segments = Chartist.splitIntoSegments(pathCoordinates, valueData, { - fillHoles: options.fillHoles, - increasingX: true - }); - - if(!segments.length) { - // If there were no segments return 'Chartist.Interpolation.none' - return Chartist.Interpolation.none()([]); - } else if(segments.length > 1) { - // If the split resulted in more that one segment we need to interpolate each segment individually and join them - // afterwards together into a single path. - var paths = []; - // For each segment we will recurse the monotoneCubic fn function - segments.forEach(function(segment) { - paths.push(monotoneCubic(segment.pathCoordinates, segment.valueData)); - }); - // Join the segment path data into a single path and return - return Chartist.Svg.Path.join(paths); - } else { - // If there was only one segment we can proceed regularly by using pathCoordinates and valueData from the first - // segment - pathCoordinates = segments[0].pathCoordinates; - valueData = segments[0].valueData; - - // If less than three points we need to fallback to no smoothing - if(pathCoordinates.length <= 4) { - return Chartist.Interpolation.none()(pathCoordinates, valueData); - } - - var xs = [], - ys = [], - i, - n = pathCoordinates.length / 2, - ms = [], - ds = [], dys = [], dxs = [], - path; - - // Populate x and y coordinates into separate arrays, for readability - - for(i = 0; i < n; i++) { - xs[i] = pathCoordinates[i * 2]; - ys[i] = pathCoordinates[i * 2 + 1]; - } - - // Calculate deltas and derivative - - for(i = 0; i < n - 1; i++) { - dys[i] = ys[i + 1] - ys[i]; - dxs[i] = xs[i + 1] - xs[i]; - ds[i] = dys[i] / dxs[i]; - } - - // Determine desired slope (m) at each point using Fritsch-Carlson method - // See: http://math.stackexchange.com/questions/45218/implementation-of-monotone-cubic-interpolation - - ms[0] = ds[0]; - ms[n - 1] = ds[n - 2]; - - for(i = 1; i < n - 1; i++) { - if(ds[i] === 0 || ds[i - 1] === 0 || (ds[i - 1] > 0) !== (ds[i] > 0)) { - ms[i] = 0; - } else { - ms[i] = 3 * (dxs[i - 1] + dxs[i]) / ( - (2 * dxs[i] + dxs[i - 1]) / ds[i - 1] + - (dxs[i] + 2 * dxs[i - 1]) / ds[i]); - - if(!isFinite(ms[i])) { - ms[i] = 0; - } - } - } - - // Now build a path from the slopes - - path = new Chartist.Svg.Path().move(xs[0], ys[0], false, valueData[0]); - - for(i = 0; i < n - 1; i++) { - path.curve( - // First control point - xs[i] + dxs[i] / 3, - ys[i] + ms[i] * dxs[i] / 3, - // Second control point - xs[i + 1] - dxs[i] / 3, - ys[i + 1] - ms[i + 1] * dxs[i] / 3, - // End point - xs[i + 1], - ys[i + 1], - - false, - valueData[i + 1] - ); - } - - return path; - } - }; - }; - - /** - * Step interpolation will cause the line chart to move in steps rather than diagonal or smoothed lines. This interpolation will create additional points that will also be drawn when the `showPoint` option is enabled. - * - * All smoothing functions within Chartist are factory functions that accept an options parameter. The step interpolation function accepts one configuration parameter `postpone`, that can be `true` or `false`. The default value is `true` and will cause the step to occur where the value actually changes. If a different behaviour is needed where the step is shifted to the left and happens before the actual value, this option can be set to `false`. - * - * @example - * var chart = new Chartist.Line('.ct-chart', { - * labels: [1, 2, 3, 4, 5], - * series: [[1, 2, 8, 1, 7]] - * }, { - * lineSmooth: Chartist.Interpolation.step({ - * postpone: true, - * fillHoles: false - * }) - * }); - * - * @memberof Chartist.Interpolation - * @param options - * @returns {Function} - */ - Chartist.Interpolation.step = function(options) { - var defaultOptions = { - postpone: true, - fillHoles: false - }; - - options = Chartist.extend({}, defaultOptions, options); - - return function step(pathCoordinates, valueData) { - var path = new Chartist.Svg.Path(); - - var prevX, prevY, prevData; - - for (var i = 0; i < pathCoordinates.length; i += 2) { - var currX = pathCoordinates[i]; - var currY = pathCoordinates[i + 1]; - var currData = valueData[i / 2]; - - // If the current point is also not a hole we can draw the step lines - if(currData.value !== undefined) { - if(prevData === undefined) { - path.move(currX, currY, false, currData); - } else { - if(options.postpone) { - // If postponed we should draw the step line with the value of the previous value - path.line(currX, prevY, false, prevData); - } else { - // If not postponed we should draw the step line with the value of the current value - path.line(prevX, currY, false, currData); - } - // Line to the actual point (this should only be a Y-Axis movement - path.line(currX, currY, false, currData); - } - - prevX = currX; - prevY = currY; - prevData = currData; - } else if(!options.fillHoles) { - prevX = prevY = prevData = undefined; - } - } - - return path; - }; - }; - -}(this || global, Chartist)); diff --git a/src/scripts/svg-path.js b/src/scripts/svg-path.js deleted file mode 100644 index c55a97624..000000000 --- a/src/scripts/svg-path.js +++ /dev/null @@ -1,385 +0,0 @@ -/** - * Chartist SVG path module for SVG path description creation and modification. - * - * @module Chartist.Svg.Path - */ -/* global Chartist */ -(function(globalRoot, Chartist) { - 'use strict'; - - /** - * Contains the descriptors of supported element types in a SVG path. Currently only move, line and curve are supported. - * - * @memberof Chartist.Svg.Path - * @type {Object} - */ - var elementDescriptions = { - m: ['x', 'y'], - l: ['x', 'y'], - c: ['x1', 'y1', 'x2', 'y2', 'x', 'y'], - a: ['rx', 'ry', 'xAr', 'lAf', 'sf', 'x', 'y'] - }; - - /** - * Default options for newly created SVG path objects. - * - * @memberof Chartist.Svg.Path - * @type {Object} - */ - var defaultOptions = { - // The accuracy in digit count after the decimal point. This will be used to round numbers in the SVG path. If this option is set to false then no rounding will be performed. - accuracy: 3 - }; - - function element(command, params, pathElements, pos, relative, data) { - var pathElement = Chartist.extend({ - command: relative ? command.toLowerCase() : command.toUpperCase() - }, params, data ? { data: data } : {} ); - - pathElements.splice(pos, 0, pathElement); - } - - function forEachParam(pathElements, cb) { - pathElements.forEach(function(pathElement, pathElementIndex) { - elementDescriptions[pathElement.command.toLowerCase()].forEach(function(paramName, paramIndex) { - cb(pathElement, paramName, pathElementIndex, paramIndex, pathElements); - }); - }); - } - - /** - * Used to construct a new path object. - * - * @memberof Chartist.Svg.Path - * @param {Boolean} close If set to true then this path will be closed when stringified (with a Z at the end) - * @param {Object} options Options object that overrides the default objects. See default options for more details. - * @constructor - */ - function SvgPath(close, options) { - this.pathElements = []; - this.pos = 0; - this.close = close; - this.options = Chartist.extend({}, defaultOptions, options); - } - - /** - * Gets or sets the current position (cursor) inside of the path. You can move around the cursor freely but limited to 0 or the count of existing elements. All modifications with element functions will insert new elements at the position of this cursor. - * - * @memberof Chartist.Svg.Path - * @param {Number} [pos] If a number is passed then the cursor is set to this position in the path element array. - * @return {Chartist.Svg.Path|Number} If the position parameter was passed then the return value will be the path object for easy call chaining. If no position parameter was passed then the current position is returned. - */ - function position(pos) { - if(pos !== undefined) { - this.pos = Math.max(0, Math.min(this.pathElements.length, pos)); - return this; - } else { - return this.pos; - } - } - - /** - * Removes elements from the path starting at the current position. - * - * @memberof Chartist.Svg.Path - * @param {Number} count Number of path elements that should be removed from the current position. - * @return {Chartist.Svg.Path} The current path object for easy call chaining. - */ - function remove(count) { - this.pathElements.splice(this.pos, count); - return this; - } - - /** - * Use this function to add a new move SVG path element. - * - * @memberof Chartist.Svg.Path - * @param {Number} x The x coordinate for the move element. - * @param {Number} y The y coordinate for the move element. - * @param {Boolean} [relative] If set to true the move element will be created with relative coordinates (lowercase letter) - * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement - * @return {Chartist.Svg.Path} The current path object for easy call chaining. - */ - function move(x, y, relative, data) { - element('M', { - x: +x, - y: +y - }, this.pathElements, this.pos++, relative, data); - return this; - } - - /** - * Use this function to add a new line SVG path element. - * - * @memberof Chartist.Svg.Path - * @param {Number} x The x coordinate for the line element. - * @param {Number} y The y coordinate for the line element. - * @param {Boolean} [relative] If set to true the line element will be created with relative coordinates (lowercase letter) - * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement - * @return {Chartist.Svg.Path} The current path object for easy call chaining. - */ - function line(x, y, relative, data) { - element('L', { - x: +x, - y: +y - }, this.pathElements, this.pos++, relative, data); - return this; - } - - /** - * Use this function to add a new curve SVG path element. - * - * @memberof Chartist.Svg.Path - * @param {Number} x1 The x coordinate for the first control point of the bezier curve. - * @param {Number} y1 The y coordinate for the first control point of the bezier curve. - * @param {Number} x2 The x coordinate for the second control point of the bezier curve. - * @param {Number} y2 The y coordinate for the second control point of the bezier curve. - * @param {Number} x The x coordinate for the target point of the curve element. - * @param {Number} y The y coordinate for the target point of the curve element. - * @param {Boolean} [relative] If set to true the curve element will be created with relative coordinates (lowercase letter) - * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement - * @return {Chartist.Svg.Path} The current path object for easy call chaining. - */ - function curve(x1, y1, x2, y2, x, y, relative, data) { - element('C', { - x1: +x1, - y1: +y1, - x2: +x2, - y2: +y2, - x: +x, - y: +y - }, this.pathElements, this.pos++, relative, data); - return this; - } - - /** - * Use this function to add a new non-bezier curve SVG path element. - * - * @memberof Chartist.Svg.Path - * @param {Number} rx The radius to be used for the x-axis of the arc. - * @param {Number} ry The radius to be used for the y-axis of the arc. - * @param {Number} xAr Defines the orientation of the arc - * @param {Number} lAf Large arc flag - * @param {Number} sf Sweep flag - * @param {Number} x The x coordinate for the target point of the curve element. - * @param {Number} y The y coordinate for the target point of the curve element. - * @param {Boolean} [relative] If set to true the curve element will be created with relative coordinates (lowercase letter) - * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement - * @return {Chartist.Svg.Path} The current path object for easy call chaining. - */ - function arc(rx, ry, xAr, lAf, sf, x, y, relative, data) { - element('A', { - rx: +rx, - ry: +ry, - xAr: +xAr, - lAf: +lAf, - sf: +sf, - x: +x, - y: +y - }, this.pathElements, this.pos++, relative, data); - return this; - } - - /** - * Parses an SVG path seen in the d attribute of path elements, and inserts the parsed elements into the existing path object at the current cursor position. Any closing path indicators (Z at the end of the path) will be ignored by the parser as this is provided by the close option in the options of the path object. - * - * @memberof Chartist.Svg.Path - * @param {String} path Any SVG path that contains move (m), line (l) or curve (c) components. - * @return {Chartist.Svg.Path} The current path object for easy call chaining. - */ - function parse(path) { - // Parsing the SVG path string into an array of arrays [['M', '10', '10'], ['L', '100', '100']] - var chunks = path.replace(/([A-Za-z])([0-9])/g, '$1 $2') - .replace(/([0-9])([A-Za-z])/g, '$1 $2') - .split(/[\s,]+/) - .reduce(function(result, element) { - if(element.match(/[A-Za-z]/)) { - result.push([]); - } - - result[result.length - 1].push(element); - return result; - }, []); - - // If this is a closed path we remove the Z at the end because this is determined by the close option - if(chunks[chunks.length - 1][0].toUpperCase() === 'Z') { - chunks.pop(); - } - - // Using svgPathElementDescriptions to map raw path arrays into objects that contain the command and the parameters - // For example {command: 'M', x: '10', y: '10'} - var elements = chunks.map(function(chunk) { - var command = chunk.shift(), - description = elementDescriptions[command.toLowerCase()]; - - return Chartist.extend({ - command: command - }, description.reduce(function(result, paramName, index) { - result[paramName] = +chunk[index]; - return result; - }, {})); - }); - - // Preparing a splice call with the elements array as var arg params and insert the parsed elements at the current position - var spliceArgs = [this.pos, 0]; - Array.prototype.push.apply(spliceArgs, elements); - Array.prototype.splice.apply(this.pathElements, spliceArgs); - // Increase the internal position by the element count - this.pos += elements.length; - - return this; - } - - /** - * This function renders to current SVG path object into a final SVG string that can be used in the d attribute of SVG path elements. It uses the accuracy option to round big decimals. If the close parameter was set in the constructor of this path object then a path closing Z will be appended to the output string. - * - * @memberof Chartist.Svg.Path - * @return {String} - */ - function stringify() { - var accuracyMultiplier = Math.pow(10, this.options.accuracy); - - return this.pathElements.reduce(function(path, pathElement) { - var params = elementDescriptions[pathElement.command.toLowerCase()].map(function(paramName) { - return this.options.accuracy ? - (Math.round(pathElement[paramName] * accuracyMultiplier) / accuracyMultiplier) : - pathElement[paramName]; - }.bind(this)); - - return path + pathElement.command + params.join(','); - }.bind(this), '') + (this.close ? 'Z' : ''); - } - - /** - * Scales all elements in the current SVG path object. There is an individual parameter for each coordinate. Scaling will also be done for control points of curves, affecting the given coordinate. - * - * @memberof Chartist.Svg.Path - * @param {Number} x The number which will be used to scale the x, x1 and x2 of all path elements. - * @param {Number} y The number which will be used to scale the y, y1 and y2 of all path elements. - * @return {Chartist.Svg.Path} The current path object for easy call chaining. - */ - function scale(x, y) { - forEachParam(this.pathElements, function(pathElement, paramName) { - pathElement[paramName] *= paramName[0] === 'x' ? x : y; - }); - return this; - } - - /** - * Translates all elements in the current SVG path object. The translation is relative and there is an individual parameter for each coordinate. Translation will also be done for control points of curves, affecting the given coordinate. - * - * @memberof Chartist.Svg.Path - * @param {Number} x The number which will be used to translate the x, x1 and x2 of all path elements. - * @param {Number} y The number which will be used to translate the y, y1 and y2 of all path elements. - * @return {Chartist.Svg.Path} The current path object for easy call chaining. - */ - function translate(x, y) { - forEachParam(this.pathElements, function(pathElement, paramName) { - pathElement[paramName] += paramName[0] === 'x' ? x : y; - }); - return this; - } - - /** - * This function will run over all existing path elements and then loop over their attributes. The callback function will be called for every path element attribute that exists in the current path. - * The method signature of the callback function looks like this: - * ```javascript - * function(pathElement, paramName, pathElementIndex, paramIndex, pathElements) - * ``` - * If something else than undefined is returned by the callback function, this value will be used to replace the old value. This allows you to build custom transformations of path objects that can't be achieved using the basic transformation functions scale and translate. - * - * @memberof Chartist.Svg.Path - * @param {Function} transformFnc The callback function for the transformation. Check the signature in the function description. - * @return {Chartist.Svg.Path} The current path object for easy call chaining. - */ - function transform(transformFnc) { - forEachParam(this.pathElements, function(pathElement, paramName, pathElementIndex, paramIndex, pathElements) { - var transformed = transformFnc(pathElement, paramName, pathElementIndex, paramIndex, pathElements); - if(transformed || transformed === 0) { - pathElement[paramName] = transformed; - } - }); - return this; - } - - /** - * This function clones a whole path object with all its properties. This is a deep clone and path element objects will also be cloned. - * - * @memberof Chartist.Svg.Path - * @param {Boolean} [close] Optional option to set the new cloned path to closed. If not specified or false, the original path close option will be used. - * @return {Chartist.Svg.Path} - */ - function clone(close) { - var c = new Chartist.Svg.Path(close || this.close); - c.pos = this.pos; - c.pathElements = this.pathElements.slice().map(function cloneElements(pathElement) { - return Chartist.extend({}, pathElement); - }); - c.options = Chartist.extend({}, this.options); - return c; - } - - /** - * Split a Svg.Path object by a specific command in the path chain. The path chain will be split and an array of newly created paths objects will be returned. This is useful if you'd like to split an SVG path by it's move commands, for example, in order to isolate chunks of drawings. - * - * @memberof Chartist.Svg.Path - * @param {String} command The command you'd like to use to split the path - * @return {Array} - */ - function splitByCommand(command) { - var split = [ - new Chartist.Svg.Path() - ]; - - this.pathElements.forEach(function(pathElement) { - if(pathElement.command === command.toUpperCase() && split[split.length - 1].pathElements.length !== 0) { - split.push(new Chartist.Svg.Path()); - } - - split[split.length - 1].pathElements.push(pathElement); - }); - - return split; - } - - /** - * This static function on `Chartist.Svg.Path` is joining multiple paths together into one paths. - * - * @memberof Chartist.Svg.Path - * @param {Array} paths A list of paths to be joined together. The order is important. - * @param {boolean} close If the newly created path should be a closed path - * @param {Object} options Path options for the newly created path. - * @return {Chartist.Svg.Path} - */ - - function join(paths, close, options) { - var joinedPath = new Chartist.Svg.Path(close, options); - for(var i = 0; i < paths.length; i++) { - var path = paths[i]; - for(var j = 0; j < path.pathElements.length; j++) { - joinedPath.pathElements.push(path.pathElements[j]); - } - } - return joinedPath; - } - - Chartist.Svg.Path = Chartist.Class.extend({ - constructor: SvgPath, - position: position, - remove: remove, - move: move, - line: line, - curve: curve, - arc: arc, - scale: scale, - translate: translate, - transform: transform, - parse: parse, - stringify: stringify, - clone: clone, - splitByCommand: splitByCommand - }); - - Chartist.Svg.Path.elementDescriptions = elementDescriptions; - Chartist.Svg.Path.join = join; -}(this || global, Chartist)); diff --git a/src/scripts/svg.js b/src/scripts/svg.js deleted file mode 100644 index c1b7875c4..000000000 --- a/src/scripts/svg.js +++ /dev/null @@ -1,600 +0,0 @@ -/** - * Chartist SVG module for simple SVG DOM abstraction - * - * @module Chartist.Svg - */ -/* global Chartist */ -(function(globalRoot, Chartist) { - 'use strict'; - - var document = globalRoot.document; - - /** - * Chartist.Svg creates a new SVG object wrapper with a starting element. You can use the wrapper to fluently create sub-elements and modify them. - * - * @memberof Chartist.Svg - * @constructor - * @param {String|Element} name The name of the SVG element to create or an SVG dom element which should be wrapped into Chartist.Svg - * @param {Object} attributes An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added. - * @param {String} className This class or class list will be added to the SVG element - * @param {Object} parent The parent SVG wrapper object where this newly created wrapper and it's element will be attached to as child - * @param {Boolean} insertFirst If this param is set to true in conjunction with a parent element the newly created element will be added as first child element in the parent element - */ - function Svg(name, attributes, className, parent, insertFirst) { - // If Svg is getting called with an SVG element we just return the wrapper - if(name instanceof Element) { - this._node = name; - } else { - this._node = document.createElementNS(Chartist.namespaces.svg, name); - - // If this is an SVG element created then custom namespace - if(name === 'svg') { - this.attr({ - 'xmlns:ct': Chartist.namespaces.ct - }); - } - } - - if(attributes) { - this.attr(attributes); - } - - if(className) { - this.addClass(className); - } - - if(parent) { - if (insertFirst && parent._node.firstChild) { - parent._node.insertBefore(this._node, parent._node.firstChild); - } else { - parent._node.appendChild(this._node); - } - } - } - - /** - * Set attributes on the current SVG element of the wrapper you're currently working on. - * - * @memberof Chartist.Svg - * @param {Object|String} attributes An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added. If this parameter is a String then the function is used as a getter and will return the attribute value. - * @param {String} [ns] If specified, the attribute will be obtained using getAttributeNs. In order to write namepsaced attributes you can use the namespace:attribute notation within the attributes object. - * @return {Object|String} The current wrapper object will be returned so it can be used for chaining or the attribute value if used as getter function. - */ - function attr(attributes, ns) { - if(typeof attributes === 'string') { - if(ns) { - return this._node.getAttributeNS(ns, attributes); - } else { - return this._node.getAttribute(attributes); - } - } - - Object.keys(attributes).forEach(function(key) { - // If the attribute value is undefined we can skip this one - if(attributes[key] === undefined) { - return; - } - - if (key.indexOf(':') !== -1) { - var namespacedAttribute = key.split(':'); - this._node.setAttributeNS(Chartist.namespaces[namespacedAttribute[0]], key, attributes[key]); - } else { - this._node.setAttribute(key, attributes[key]); - } - }.bind(this)); - - return this; - } - - /** - * Create a new SVG element whose wrapper object will be selected for further operations. This way you can also create nested groups easily. - * - * @memberof Chartist.Svg - * @param {String} name The name of the SVG element that should be created as child element of the currently selected element wrapper - * @param {Object} [attributes] An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added. - * @param {String} [className] This class or class list will be added to the SVG element - * @param {Boolean} [insertFirst] If this param is set to true in conjunction with a parent element the newly created element will be added as first child element in the parent element - * @return {Chartist.Svg} Returns a Chartist.Svg wrapper object that can be used to modify the containing SVG data - */ - function elem(name, attributes, className, insertFirst) { - return new Chartist.Svg(name, attributes, className, this, insertFirst); - } - - /** - * Returns the parent Chartist.SVG wrapper object - * - * @memberof Chartist.Svg - * @return {Chartist.Svg} Returns a Chartist.Svg wrapper around the parent node of the current node. If the parent node is not existing or it's not an SVG node then this function will return null. - */ - function parent() { - return this._node.parentNode instanceof SVGElement ? new Chartist.Svg(this._node.parentNode) : null; - } - - /** - * This method returns a Chartist.Svg wrapper around the root SVG element of the current tree. - * - * @memberof Chartist.Svg - * @return {Chartist.Svg} The root SVG element wrapped in a Chartist.Svg element - */ - function root() { - var node = this._node; - while(node.nodeName !== 'svg') { - node = node.parentNode; - } - return new Chartist.Svg(node); - } - - /** - * Find the first child SVG element of the current element that matches a CSS selector. The returned object is a Chartist.Svg wrapper. - * - * @memberof Chartist.Svg - * @param {String} selector A CSS selector that is used to query for child SVG elements - * @return {Chartist.Svg} The SVG wrapper for the element found or null if no element was found - */ - function querySelector(selector) { - var foundNode = this._node.querySelector(selector); - return foundNode ? new Chartist.Svg(foundNode) : null; - } - - /** - * Find the all child SVG elements of the current element that match a CSS selector. The returned object is a Chartist.Svg.List wrapper. - * - * @memberof Chartist.Svg - * @param {String} selector A CSS selector that is used to query for child SVG elements - * @return {Chartist.Svg.List} The SVG wrapper list for the element found or null if no element was found - */ - function querySelectorAll(selector) { - var foundNodes = this._node.querySelectorAll(selector); - return foundNodes.length ? new Chartist.Svg.List(foundNodes) : null; - } - - /** - * Returns the underlying SVG node for the current element. - * - * @memberof Chartist.Svg - * @returns {Node} - */ - function getNode() { - return this._node; - } - - /** - * This method creates a foreignObject (see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject) that allows to embed HTML content into a SVG graphic. With the help of foreignObjects you can enable the usage of regular HTML elements inside of SVG where they are subject for SVG positioning and transformation but the Browser will use the HTML rendering capabilities for the containing DOM. - * - * @memberof Chartist.Svg - * @param {Node|String} content The DOM Node, or HTML string that will be converted to a DOM Node, that is then placed into and wrapped by the foreignObject - * @param {String} [attributes] An object with properties that will be added as attributes to the foreignObject element that is created. Attributes with undefined values will not be added. - * @param {String} [className] This class or class list will be added to the SVG element - * @param {Boolean} [insertFirst] Specifies if the foreignObject should be inserted as first child - * @return {Chartist.Svg} New wrapper object that wraps the foreignObject element - */ - function foreignObject(content, attributes, className, insertFirst) { - // If content is string then we convert it to DOM - // TODO: Handle case where content is not a string nor a DOM Node - if(typeof content === 'string') { - var container = document.createElement('div'); - container.innerHTML = content; - content = container.firstChild; - } - - // Adding namespace to content element - content.setAttribute('xmlns', Chartist.namespaces.xmlns); - - // Creating the foreignObject without required extension attribute (as described here - // http://www.w3.org/TR/SVG/extend.html#ForeignObjectElement) - var fnObj = this.elem('foreignObject', attributes, className, insertFirst); - - // Add content to foreignObjectElement - fnObj._node.appendChild(content); - - return fnObj; - } - - /** - * This method adds a new text element to the current Chartist.Svg wrapper. - * - * @memberof Chartist.Svg - * @param {String} t The text that should be added to the text element that is created - * @return {Chartist.Svg} The same wrapper object that was used to add the newly created element - */ - function text(t) { - this._node.appendChild(document.createTextNode(t)); - return this; - } - - /** - * This method will clear all child nodes of the current wrapper object. - * - * @memberof Chartist.Svg - * @return {Chartist.Svg} The same wrapper object that got emptied - */ - function empty() { - while (this._node.firstChild) { - this._node.removeChild(this._node.firstChild); - } - - return this; - } - - /** - * This method will cause the current wrapper to remove itself from its parent wrapper. Use this method if you'd like to get rid of an element in a given DOM structure. - * - * @memberof Chartist.Svg - * @return {Chartist.Svg} The parent wrapper object of the element that got removed - */ - function remove() { - this._node.parentNode.removeChild(this._node); - return this.parent(); - } - - /** - * This method will replace the element with a new element that can be created outside of the current DOM. - * - * @memberof Chartist.Svg - * @param {Chartist.Svg} newElement The new Chartist.Svg object that will be used to replace the current wrapper object - * @return {Chartist.Svg} The wrapper of the new element - */ - function replace(newElement) { - this._node.parentNode.replaceChild(newElement._node, this._node); - return newElement; - } - - /** - * This method will append an element to the current element as a child. - * - * @memberof Chartist.Svg - * @param {Chartist.Svg} element The Chartist.Svg element that should be added as a child - * @param {Boolean} [insertFirst] Specifies if the element should be inserted as first child - * @return {Chartist.Svg} The wrapper of the appended object - */ - function append(element, insertFirst) { - if(insertFirst && this._node.firstChild) { - this._node.insertBefore(element._node, this._node.firstChild); - } else { - this._node.appendChild(element._node); - } - - return this; - } - - /** - * Returns an array of class names that are attached to the current wrapper element. This method can not be chained further. - * - * @memberof Chartist.Svg - * @return {Array} A list of classes or an empty array if there are no classes on the current element - */ - function classes() { - return this._node.getAttribute('class') ? this._node.getAttribute('class').trim().split(/\s+/) : []; - } - - /** - * Adds one or a space separated list of classes to the current element and ensures the classes are only existing once. - * - * @memberof Chartist.Svg - * @param {String} names A white space separated list of class names - * @return {Chartist.Svg} The wrapper of the current element - */ - function addClass(names) { - this._node.setAttribute('class', - this.classes(this._node) - .concat(names.trim().split(/\s+/)) - .filter(function(elem, pos, self) { - return self.indexOf(elem) === pos; - }).join(' ') - ); - - return this; - } - - /** - * Removes one or a space separated list of classes from the current element. - * - * @memberof Chartist.Svg - * @param {String} names A white space separated list of class names - * @return {Chartist.Svg} The wrapper of the current element - */ - function removeClass(names) { - var removedClasses = names.trim().split(/\s+/); - - this._node.setAttribute('class', this.classes(this._node).filter(function(name) { - return removedClasses.indexOf(name) === -1; - }).join(' ')); - - return this; - } - - /** - * Removes all classes from the current element. - * - * @memberof Chartist.Svg - * @return {Chartist.Svg} The wrapper of the current element - */ - function removeAllClasses() { - this._node.setAttribute('class', ''); - - return this; - } - - /** - * Get element height using `getBoundingClientRect` - * - * @memberof Chartist.Svg - * @return {Number} The elements height in pixels - */ - function height() { - return this._node.getBoundingClientRect().height; - } - - /** - * Get element width using `getBoundingClientRect` - * - * @memberof Chartist.Core - * @return {Number} The elements width in pixels - */ - function width() { - return this._node.getBoundingClientRect().width; - } - - /** - * The animate function lets you animate the current element with SMIL animations. You can add animations for multiple attributes at the same time by using an animation definition object. This object should contain SMIL animation attributes. Please refer to http://www.w3.org/TR/SVG/animate.html for a detailed specification about the available animation attributes. Additionally an easing property can be passed in the animation definition object. This can be a string with a name of an easing function in `Chartist.Svg.Easing` or an array with four numbers specifying a cubic BĆ©zier curve. - * **An animations object could look like this:** - * ```javascript - * element.animate({ - * opacity: { - * dur: 1000, - * from: 0, - * to: 1 - * }, - * x1: { - * dur: '1000ms', - * from: 100, - * to: 200, - * easing: 'easeOutQuart' - * }, - * y1: { - * dur: '2s', - * from: 0, - * to: 100 - * } - * }); - * ``` - * **Automatic unit conversion** - * For the `dur` and the `begin` animate attribute you can also omit a unit by passing a number. The number will automatically be converted to milli seconds. - * **Guided mode** - * The default behavior of SMIL animations with offset using the `begin` attribute is that the attribute will keep it's original value until the animation starts. Mostly this behavior is not desired as you'd like to have your element attributes already initialized with the animation `from` value even before the animation starts. Also if you don't specify `fill="freeze"` on an animate element or if you delete the animation after it's done (which is done in guided mode) the attribute will switch back to the initial value. This behavior is also not desired when performing simple one-time animations. For one-time animations you'd want to trigger animations immediately instead of relative to the document begin time. That's why in guided mode Chartist.Svg will also use the `begin` property to schedule a timeout and manually start the animation after the timeout. If you're using multiple SMIL definition objects for an attribute (in an array), guided mode will be disabled for this attribute, even if you explicitly enabled it. - * If guided mode is enabled the following behavior is added: - * - Before the animation starts (even when delayed with `begin`) the animated attribute will be set already to the `from` value of the animation - * - `begin` is explicitly set to `indefinite` so it can be started manually without relying on document begin time (creation) - * - The animate element will be forced to use `fill="freeze"` - * - The animation will be triggered with `beginElement()` in a timeout where `begin` of the definition object is interpreted in milli seconds. If no `begin` was specified the timeout is triggered immediately. - * - After the animation the element attribute value will be set to the `to` value of the animation - * - The animate element is deleted from the DOM - * - * @memberof Chartist.Svg - * @param {Object} animations An animations object where the property keys are the attributes you'd like to animate. The properties should be objects again that contain the SMIL animation attributes (usually begin, dur, from, and to). The property begin and dur is auto converted (see Automatic unit conversion). You can also schedule multiple animations for the same attribute by passing an Array of SMIL definition objects. Attributes that contain an array of SMIL definition objects will not be executed in guided mode. - * @param {Boolean} guided Specify if guided mode should be activated for this animation (see Guided mode). If not otherwise specified, guided mode will be activated. - * @param {Object} eventEmitter If specified, this event emitter will be notified when an animation starts or ends. - * @return {Chartist.Svg} The current element where the animation was added - */ - function animate(animations, guided, eventEmitter) { - if(guided === undefined) { - guided = true; - } - - Object.keys(animations).forEach(function createAnimateForAttributes(attribute) { - - function createAnimate(animationDefinition, guided) { - var attributeProperties = {}, - animate, - timeout, - easing; - - // Check if an easing is specified in the definition object and delete it from the object as it will not - // be part of the animate element attributes. - if(animationDefinition.easing) { - // If already an easing BĆ©zier curve array we take it or we lookup a easing array in the Easing object - easing = animationDefinition.easing instanceof Array ? - animationDefinition.easing : - Chartist.Svg.Easing[animationDefinition.easing]; - delete animationDefinition.easing; - } - - // If numeric dur or begin was provided we assume milli seconds - animationDefinition.begin = Chartist.ensureUnit(animationDefinition.begin, 'ms'); - animationDefinition.dur = Chartist.ensureUnit(animationDefinition.dur, 'ms'); - - if(easing) { - animationDefinition.calcMode = 'spline'; - animationDefinition.keySplines = easing.join(' '); - animationDefinition.keyTimes = '0;1'; - } - - // Adding "fill: freeze" if we are in guided mode and set initial attribute values - if(guided) { - animationDefinition.fill = 'freeze'; - // Animated property on our element should already be set to the animation from value in guided mode - attributeProperties[attribute] = animationDefinition.from; - this.attr(attributeProperties); - - // In guided mode we also set begin to indefinite so we can trigger the start manually and put the begin - // which needs to be in ms aside - timeout = Chartist.quantity(animationDefinition.begin || 0).value; - animationDefinition.begin = 'indefinite'; - } - - animate = this.elem('animate', Chartist.extend({ - attributeName: attribute - }, animationDefinition)); - - if(guided) { - // If guided we take the value that was put aside in timeout and trigger the animation manually with a timeout - setTimeout(function() { - // If beginElement fails we set the animated attribute to the end position and remove the animate element - // This happens if the SMIL ElementTimeControl interface is not supported or any other problems occured in - // the browser. (Currently FF 34 does not support animate elements in foreignObjects) - try { - animate._node.beginElement(); - } catch(err) { - // Set animated attribute to current animated value - attributeProperties[attribute] = animationDefinition.to; - this.attr(attributeProperties); - // Remove the animate element as it's no longer required - animate.remove(); - } - }.bind(this), timeout); - } - - if(eventEmitter) { - animate._node.addEventListener('beginEvent', function handleBeginEvent() { - eventEmitter.emit('animationBegin', { - element: this, - animate: animate._node, - params: animationDefinition - }); - }.bind(this)); - } - - animate._node.addEventListener('endEvent', function handleEndEvent() { - if(eventEmitter) { - eventEmitter.emit('animationEnd', { - element: this, - animate: animate._node, - params: animationDefinition - }); - } - - if(guided) { - // Set animated attribute to current animated value - attributeProperties[attribute] = animationDefinition.to; - this.attr(attributeProperties); - // Remove the animate element as it's no longer required - animate.remove(); - } - }.bind(this)); - } - - // If current attribute is an array of definition objects we create an animate for each and disable guided mode - if(animations[attribute] instanceof Array) { - animations[attribute].forEach(function(animationDefinition) { - createAnimate.bind(this)(animationDefinition, false); - }.bind(this)); - } else { - createAnimate.bind(this)(animations[attribute], guided); - } - - }.bind(this)); - - return this; - } - - Chartist.Svg = Chartist.Class.extend({ - constructor: Svg, - attr: attr, - elem: elem, - parent: parent, - root: root, - querySelector: querySelector, - querySelectorAll: querySelectorAll, - getNode: getNode, - foreignObject: foreignObject, - text: text, - empty: empty, - remove: remove, - replace: replace, - append: append, - classes: classes, - addClass: addClass, - removeClass: removeClass, - removeAllClasses: removeAllClasses, - height: height, - width: width, - animate: animate - }); - - /** - * This method checks for support of a given SVG feature like Extensibility, SVG-animation or the like. Check http://www.w3.org/TR/SVG11/feature for a detailed list. - * - * @memberof Chartist.Svg - * @param {String} feature The SVG 1.1 feature that should be checked for support. - * @return {Boolean} True of false if the feature is supported or not - */ - Chartist.Svg.isSupported = function(feature) { - return document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#' + feature, '1.1'); - }; - - /** - * This Object contains some standard easing cubic bezier curves. Then can be used with their name in the `Chartist.Svg.animate`. You can also extend the list and use your own name in the `animate` function. Click the show code button to see the available bezier functions. - * - * @memberof Chartist.Svg - */ - var easingCubicBeziers = { - easeInSine: [0.47, 0, 0.745, 0.715], - easeOutSine: [0.39, 0.575, 0.565, 1], - easeInOutSine: [0.445, 0.05, 0.55, 0.95], - easeInQuad: [0.55, 0.085, 0.68, 0.53], - easeOutQuad: [0.25, 0.46, 0.45, 0.94], - easeInOutQuad: [0.455, 0.03, 0.515, 0.955], - easeInCubic: [0.55, 0.055, 0.675, 0.19], - easeOutCubic: [0.215, 0.61, 0.355, 1], - easeInOutCubic: [0.645, 0.045, 0.355, 1], - easeInQuart: [0.895, 0.03, 0.685, 0.22], - easeOutQuart: [0.165, 0.84, 0.44, 1], - easeInOutQuart: [0.77, 0, 0.175, 1], - easeInQuint: [0.755, 0.05, 0.855, 0.06], - easeOutQuint: [0.23, 1, 0.32, 1], - easeInOutQuint: [0.86, 0, 0.07, 1], - easeInExpo: [0.95, 0.05, 0.795, 0.035], - easeOutExpo: [0.19, 1, 0.22, 1], - easeInOutExpo: [1, 0, 0, 1], - easeInCirc: [0.6, 0.04, 0.98, 0.335], - easeOutCirc: [0.075, 0.82, 0.165, 1], - easeInOutCirc: [0.785, 0.135, 0.15, 0.86], - easeInBack: [0.6, -0.28, 0.735, 0.045], - easeOutBack: [0.175, 0.885, 0.32, 1.275], - easeInOutBack: [0.68, -0.55, 0.265, 1.55] - }; - - Chartist.Svg.Easing = easingCubicBeziers; - - /** - * This helper class is to wrap multiple `Chartist.Svg` elements into a list where you can call the `Chartist.Svg` functions on all elements in the list with one call. This is helpful when you'd like to perform calls with `Chartist.Svg` on multiple elements. - * An instance of this class is also returned by `Chartist.Svg.querySelectorAll`. - * - * @memberof Chartist.Svg - * @param {Array|NodeList} nodeList An Array of SVG DOM nodes or a SVG DOM NodeList (as returned by document.querySelectorAll) - * @constructor - */ - function SvgList(nodeList) { - var list = this; - - this.svgElements = []; - for(var i = 0; i < nodeList.length; i++) { - this.svgElements.push(new Chartist.Svg(nodeList[i])); - } - - // Add delegation methods for Chartist.Svg - Object.keys(Chartist.Svg.prototype).filter(function(prototypeProperty) { - return ['constructor', - 'parent', - 'querySelector', - 'querySelectorAll', - 'replace', - 'append', - 'classes', - 'height', - 'width'].indexOf(prototypeProperty) === -1; - }).forEach(function(prototypeProperty) { - list[prototypeProperty] = function() { - var args = Array.prototype.slice.call(arguments, 0); - list.svgElements.forEach(function(element) { - Chartist.Svg.prototype[prototypeProperty].apply(element, args); - }); - return list; - }; - }); - } - - Chartist.Svg.List = Chartist.Class.extend({ - constructor: SvgList - }); -}(this || global, Chartist)); diff --git a/src/styles/chartist.scss b/src/styles/chartist.scss index e5c6b420e..41f78fc99 100644 --- a/src/styles/chartist.scss +++ b/src/styles/chartist.scss @@ -38,7 +38,7 @@ -ms-flex-pack: $ct-text-justify; justify-content: $ct-text-justify; // Fallback to text-align for non-flex browsers - @if($ct-text-justify == 'flex-start') { + @if ($ct-text-justify == 'flex-start') { text-align: left; } @else if ($ct-text-justify == 'flex-end') { text-align: right; @@ -107,7 +107,7 @@ stroke: $color; } - .#{$ct-class-slice-pie}, .#{$ct-class-slice-donut-solid}, .#{$ct-class-area} { + .#{$ct-class-slice-pie}, .#{$ct-class-area} { fill: $color; } } diff --git a/src/styles/settings/_chartist-settings.scss b/src/styles/settings/_chartist-settings.scss index def297cab..9925e5588 100644 --- a/src/styles/settings/_chartist-settings.scss +++ b/src/styles/settings/_chartist-settings.scss @@ -1,5 +1,7 @@ +@use "sass:math"; + // Scales for responsive SVG containers -$ct-scales: ((1), (15/16), (8/9), (5/6), (4/5), (3/4), (2/3), (5/8), (1/1.618), (3/5), (9/16), (8/15), (1/2), (2/5), (3/8), (1/3), (1/4)) !default; +$ct-scales: ((1), math.div(15, 16), math.div(8, 9), math.div(5, 6), math.div(4, 5), math.div(3, 4), math.div(2, 3), math.div(5, 8), math.div(1, 1.618), math.div(3, 5), math.div(9, 16), math.div(8, 15), math.div(1, 2), math.div(2, 5), math.div(3, 8), math.div(1, 3), math.div(1, 4)) !default; $ct-scales-names: (ct-square, ct-minor-second, ct-major-second, ct-minor-third, ct-major-third, ct-perfect-fourth, ct-perfect-fifth, ct-minor-sixth, ct-golden-section, ct-major-sixth, ct-minor-seventh, ct-major-seventh, ct-octave, ct-major-tenth, ct-major-eleventh, ct-major-twelfth, ct-double-octave) !default; // Class names to be used when generating CSS @@ -17,7 +19,6 @@ $ct-class-area: ct-area !default; $ct-class-bar: ct-bar !default; $ct-class-slice-pie: ct-slice-pie !default; $ct-class-slice-donut: ct-slice-donut !default; -$ct-class-slice-donut-solid: ct-slice-donut-solid !default; $ct-class-grid: ct-grid !default; $ct-class-grid-background: ct-grid-background !default; $ct-class-vertical: ct-vertical !default; @@ -26,7 +27,7 @@ $ct-class-start: ct-start !default; $ct-class-end: ct-end !default; // Container ratio -$ct-container-ratio: (1/1.618) !default; +$ct-container-ratio: math.div(1, 1.618) !default; // Text styles for labels $ct-text-color: rgba(0, 0, 0, 0.4) !default; diff --git a/src/svg/Svg.spec.ts b/src/svg/Svg.spec.ts new file mode 100644 index 000000000..a58bd6c13 --- /dev/null +++ b/src/svg/Svg.spec.ts @@ -0,0 +1,219 @@ +import { Svg } from './Svg'; +import { namespaces } from '../core'; + +describe('Svg', () => { + it('should create a valid svg dom element', () => { + const svg = new Svg('svg'); + + expect(svg).toBeDefined(); + expect(svg.getNode()).toBeDefined(); + expect(svg.getNode().nodeName.toLowerCase()).toBe('svg'); + }); + + it('should create a valid svg dom element with attributes', () => { + const svg = new Svg('svg', { + width: '100%', + height: '100%' + }); + + expect(svg).toBeDefined(); + expect(svg.getNode()).toBeDefined(); + expect(svg.getNode().nodeName.toLowerCase()).toBe('svg'); + expect(svg.getNode()).toHaveAttribute('width', '100%'); + expect(svg.getNode()).toHaveAttribute('height', '100%'); + }); + + it('should create nested objects with attributes', () => { + const svg = new Svg('svg'); + svg.elem('g').elem('g').elem('circle', { + cx: 100, + cy: 100, + r: 10 + }); + + expect(svg.getNode()).toBeDefined(); + expect( + svg.getNode().firstElementChild?.firstElementChild?.firstElementChild + ).toBeDefined(); + expect( + svg + .getNode() + .firstElementChild?.firstElementChild?.firstElementChild?.getAttribute( + 'cx' + ) + ).toBe('100'); + expect( + svg + .getNode() + .firstElementChild?.firstElementChild?.firstElementChild?.getAttribute( + 'cy' + ) + ).toBe('100'); + expect( + svg + .getNode() + .firstElementChild?.firstElementChild?.firstElementChild?.getAttribute( + 'r' + ) + ).toBe('10'); + }); + + it('should allow to set attributes manually', () => { + const svg = new Svg('svg'); + svg.elem('circle').attr({ + cx: 100, + cy: 100, + r: 10 + }); + + expect(svg.getNode()).toBeDefined(); + expect(svg.getNode().firstElementChild).toBeDefined(); + expect(svg.getNode().firstElementChild?.getAttribute('cx')).toBe('100'); + expect(svg.getNode().firstElementChild?.getAttribute('cy')).toBe('100'); + expect(svg.getNode().firstElementChild?.getAttribute('r')).toBe('10'); + }); + + it('should allow to set namespaced attributes', () => { + const svg = new Svg('image'); + svg.elem('image').attr({ + x: 100, + y: 100, + height: 100, + width: 100, + 'xlink:href': 'image.jpg' + }); + + expect(svg.getNode()).toBeDefined(); + expect(svg.getNode().firstElementChild).toBeDefined(); + expect(svg.getNode().firstElementChild).toHaveAttribute('x', '100'); + expect(svg.getNode().firstElementChild).toHaveAttribute('y', '100'); + expect(svg.getNode().firstElementChild).toHaveAttribute('width', '100'); + expect(svg.getNode().firstElementChild).toHaveAttribute('height', '100'); + expect( + svg.getNode().firstElementChild?.getAttributeNS(namespaces.xlink, 'href') + ).toBe('image.jpg'); + }); + + it('should clear on each nesting level', () => { + const svg = new Svg('svg'); + const group = svg.elem('g'); + group.elem('circle'); + group.elem('circle'); + group.elem('circle'); + + expect(svg.getNode()).toBeDefined(); + expect(svg.getNode().firstElementChild?.childNodes.length).toBe(3); + + group.empty(); + expect(svg.getNode().firstElementChild?.childNodes.length).toBe(0); + + svg.empty(); + expect(svg.getNode()).toBeEmptyDOMElement(); + }); + + it('should allow to remove a certain element', () => { + const svg = new Svg('svg'); + const text = svg.elem('text'); + + expect(svg.getNode()).toBeDefined(); + expect(svg.getNode().childNodes.length).toBe(1); + expect(svg.getNode().firstElementChild?.nodeName.toLowerCase()).toBe( + 'text' + ); + + text.remove(); + expect(svg.getNode().childNodes.length).toBe(0); + }); + + it('should allow to write text content into elements', () => { + const svg = new Svg('svg'); + svg.elem('text').text('Hello World'); + + expect(svg.getNode()).toBeDefined(); + expect(svg.getNode().childNodes.length).toBe(1); + expect(svg.getNode().firstElementChild?.nodeName.toLowerCase()).toBe( + 'text' + ); + expect(svg.getNode().firstElementChild?.firstChild?.nodeType).toBe(3); + expect(svg.getNode().firstElementChild?.firstChild).toHaveTextContent( + 'Hello World' + ); + }); + + it('should allow to add and remove classes on elements', () => { + const svg = new Svg('svg') + .addClass('test-class-1') + .addClass('test-class-2') + // Should not allow duplicates + .addClass('test-class-2') + // Should allow multiple classes with white spaces + .addClass('test-class-3 test-class-4'); + + expect(svg.getNode()).toBeDefined(); + expect(svg.getNode().getAttribute('class')?.split(' ')).toEqual([ + 'test-class-1', + 'test-class-2', + 'test-class-3', + 'test-class-4' + ]); + + svg.removeClass('test-class-1'); + // Should allow multiple classes with whitespaces + svg.removeClass('test-class-2 test-class-3'); + + expect(svg.getNode()).toHaveAttribute('class', 'test-class-4'); + }); + + it('should allow to travers up in the fluent API chain and set attributes on the way', () => { + const svg = new Svg('svg'); + svg + .elem('g') + .elem('g') + .elem('g') + .elem('circle') + .parent() + ?.attr({ + transform: 'rotate(10 10 10)' + }) + .parent() + ?.attr({ + transform: 'rotate(20 20 20)' + }) + .parent() + ?.attr({ + transform: 'rotate(30 30 30)' + }) + .parent() + ?.attr({ + width: '100%', + height: '100%' + }); + + expect(svg.getNode()).toBeDefined(); + expect(svg.getNode()).toHaveAttribute('width', '100%'); + expect(svg.getNode()).toHaveAttribute('height', '100%'); + + expect(svg.getNode().firstElementChild).toBeDefined(); + expect(svg.getNode().firstElementChild?.getAttribute('transform')).toBe( + 'rotate(30 30 30)' + ); + + expect(svg.getNode().firstElementChild?.firstElementChild).toBeDefined(); + expect( + svg + .getNode() + .firstElementChild?.firstElementChild?.getAttribute('transform') + ).toBe('rotate(20 20 20)'); + + expect( + svg.getNode().firstElementChild?.firstElementChild?.firstElementChild + ).toBeDefined(); + expect( + svg + .getNode() + .firstElementChild?.firstElementChild?.firstElementChild?.getAttribute( + 'transform' + ) + ).toBe('rotate(10 10 10)'); + }); +}); diff --git a/src/svg/Svg.ts b/src/svg/Svg.ts new file mode 100644 index 000000000..d9b9c1c23 --- /dev/null +++ b/src/svg/Svg.ts @@ -0,0 +1,419 @@ +import type { EventEmitter } from '../event'; +import { namespaces } from '../core/constants'; +import type { Attributes, AnimationDefinition } from './types'; +import { SvgList } from './SvgList'; +import { createAnimation, easings } from './animation'; + +/** + * Svg creates a new SVG object wrapper with a starting element. You can use the wrapper to fluently create sub-elements and modify them. + */ +export class Svg { + /** + * @todo Only there for chartist <1 compatibility. Remove after deprecation warining. + * @deprecated Use the animation module export `easings` directly. + */ + static readonly Easing = easings; + + private _node: Element; + + /** + * @param name The name of the SVG element to create or an SVG dom element which should be wrapped into Svg + * @param attributes An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added. + * @param className This class or class list will be added to the SVG element + * @param parent The parent SVG wrapper object where this newly created wrapper and it's element will be attached to as child + * @param insertFirst If this param is set to true in conjunction with a parent element the newly created element will be added as first child element in the parent element + */ + constructor( + name: string | Element, + attributes?: Attributes, + className?: string, + parent?: Svg, + insertFirst = false + ) { + // If Svg is getting called with an SVG element we just return the wrapper + if (name instanceof Element) { + this._node = name; + } else { + this._node = document.createElementNS(namespaces.svg, name); + + // If this is an SVG element created then custom namespace + if (name === 'svg') { + this.attr({ + 'xmlns:ct': namespaces.ct + }); + } + } + + if (attributes) { + this.attr(attributes); + } + + if (className) { + this.addClass(className); + } + + if (parent) { + if (insertFirst && parent._node.firstChild) { + parent._node.insertBefore(this._node, parent._node.firstChild); + } else { + parent._node.appendChild(this._node); + } + } + } + + /** + * Set attributes on the current SVG element of the wrapper you're currently working on. + * @param attributes An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added. If this parameter is a String then the function is used as a getter and will return the attribute value. + * @param ns If specified, the attribute will be obtained using getAttributeNs. In order to write namepsaced attributes you can use the namespace:attribute notation within the attributes object. + * @return The current wrapper object will be returned so it can be used for chaining or the attribute value if used as getter function. + */ + attr(attributes: string, ns?: string): string | null; + attr(attributes: Attributes): this; + attr(attributes: string | Attributes, ns?: string) { + if (typeof attributes === 'string') { + if (ns) { + return this._node.getAttributeNS(ns, attributes); + } else { + return this._node.getAttribute(attributes); + } + } + + Object.keys(attributes).forEach(key => { + // If the attribute value is undefined we can skip this one + if (attributes[key] === undefined) { + return; + } + + if (key.indexOf(':') !== -1) { + const namespacedAttribute = key.split(':'); + this._node.setAttributeNS( + namespaces[namespacedAttribute[0]], + key, + String(attributes[key]) + ); + } else { + this._node.setAttribute(key, String(attributes[key])); + } + }); + + return this; + } + + /** + * Create a new SVG element whose wrapper object will be selected for further operations. This way you can also create nested groups easily. + * @param name The name of the SVG element that should be created as child element of the currently selected element wrapper + * @param attributes An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added. + * @param className This class or class list will be added to the SVG element + * @param insertFirst If this param is set to true in conjunction with a parent element the newly created element will be added as first child element in the parent element + * @return Returns a Svg wrapper object that can be used to modify the containing SVG data + */ + elem( + name: string, + attributes?: Attributes, + className?: string, + insertFirst = false + ) { + return new Svg(name, attributes, className, this, insertFirst); + } + + /** + * Returns the parent Chartist.SVG wrapper object + * @return Returns a Svg wrapper around the parent node of the current node. If the parent node is not existing or it's not an SVG node then this function will return null. + */ + parent() { + return this._node.parentNode instanceof SVGElement + ? new Svg(this._node.parentNode) + : null; + } + + /** + * This method returns a Svg wrapper around the root SVG element of the current tree. + * @return The root SVG element wrapped in a Svg element + */ + root() { + let node = this._node; + + while (node.nodeName !== 'svg') { + if (node.parentElement) { + node = node.parentElement; + } else { + break; + } + } + + return new Svg(node); + } + + /** + * Find the first child SVG element of the current element that matches a CSS selector. The returned object is a Svg wrapper. + * @param selector A CSS selector that is used to query for child SVG elements + * @return The SVG wrapper for the element found or null if no element was found + */ + querySelector(selector: string) { + const foundNode = this._node.querySelector(selector); + return foundNode ? new Svg(foundNode) : null; + } + + /** + * Find the all child SVG elements of the current element that match a CSS selector. The returned object is a Svg.List wrapper. + * @param selector A CSS selector that is used to query for child SVG elements + * @return The SVG wrapper list for the element found or null if no element was found + */ + querySelectorAll(selector: string) { + const foundNodes = this._node.querySelectorAll(selector); + return new SvgList(foundNodes); + } + + /** + * Returns the underlying SVG node for the current element. + */ + getNode() { + return this._node; + } + + /** + * This method creates a foreignObject (see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject) that allows to embed HTML content into a SVG graphic. With the help of foreignObjects you can enable the usage of regular HTML elements inside of SVG where they are subject for SVG positioning and transformation but the Browser will use the HTML rendering capabilities for the containing DOM. + * @param content The DOM Node, or HTML string that will be converted to a DOM Node, that is then placed into and wrapped by the foreignObject + * @param attributes An object with properties that will be added as attributes to the foreignObject element that is created. Attributes with undefined values will not be added. + * @param className This class or class list will be added to the SVG element + * @param insertFirst Specifies if the foreignObject should be inserted as first child + * @return New wrapper object that wraps the foreignObject element + */ + foreignObject( + content: string | Node, + attributes?: Attributes, + className?: string, + insertFirst = false + ) { + let contentNode: Node; + // If content is string then we convert it to DOM + // TODO: Handle case where content is not a string nor a DOM Node + if (typeof content === 'string') { + const container = document.createElement('div'); + container.innerHTML = content; + contentNode = container.firstChild as Node; + } else { + contentNode = content; + } + + if (contentNode instanceof Element) { + // Adding namespace to content element + contentNode.setAttribute('xmlns', namespaces.xmlns); + } + + // Creating the foreignObject without required extension attribute (as described here + // http://www.w3.org/TR/SVG/extend.html#ForeignObjectElement) + const fnObj = this.elem( + 'foreignObject', + attributes, + className, + insertFirst + ); + + // Add content to foreignObjectElement + fnObj._node.appendChild(contentNode); + + return fnObj; + } + + /** + * This method adds a new text element to the current Svg wrapper. + * @param t The text that should be added to the text element that is created + * @return The same wrapper object that was used to add the newly created element + */ + text(t: string) { + this._node.appendChild(document.createTextNode(t)); + return this; + } + + /** + * This method will clear all child nodes of the current wrapper object. + * @return The same wrapper object that got emptied + */ + empty() { + while (this._node.firstChild) { + this._node.removeChild(this._node.firstChild); + } + + return this; + } + + /** + * This method will cause the current wrapper to remove itself from its parent wrapper. Use this method if you'd like to get rid of an element in a given DOM structure. + * @return The parent wrapper object of the element that got removed + */ + remove() { + this._node.parentNode?.removeChild(this._node); + return this.parent(); + } + + /** + * This method will replace the element with a new element that can be created outside of the current DOM. + * @param newElement The new Svg object that will be used to replace the current wrapper object + * @return The wrapper of the new element + */ + replace(newElement: Svg) { + this._node.parentNode?.replaceChild(newElement._node, this._node); + return newElement; + } + + /** + * This method will append an element to the current element as a child. + * @param element The Svg element that should be added as a child + * @param insertFirst Specifies if the element should be inserted as first child + * @return The wrapper of the appended object + */ + append(element: Svg, insertFirst = false) { + if (insertFirst && this._node.firstChild) { + this._node.insertBefore(element._node, this._node.firstChild); + } else { + this._node.appendChild(element._node); + } + + return this; + } + + /** + * Returns an array of class names that are attached to the current wrapper element. This method can not be chained further. + * @return A list of classes or an empty array if there are no classes on the current element + */ + classes() { + const classNames = this._node.getAttribute('class'); + + return classNames ? classNames.trim().split(/\s+/) : []; + } + + /** + * Adds one or a space separated list of classes to the current element and ensures the classes are only existing once. + * @param names A white space separated list of class names + * @return The wrapper of the current element + */ + addClass(names: string) { + this._node.setAttribute( + 'class', + this.classes() + .concat(names.trim().split(/\s+/)) + .filter(function (elem, pos, self) { + return self.indexOf(elem) === pos; + }) + .join(' ') + ); + + return this; + } + + /** + * Removes one or a space separated list of classes from the current element. + * @param names A white space separated list of class names + * @return The wrapper of the current element + */ + removeClass(names: string) { + const removedClasses = names.trim().split(/\s+/); + + this._node.setAttribute( + 'class', + this.classes() + .filter(name => removedClasses.indexOf(name) === -1) + .join(' ') + ); + + return this; + } + + /** + * Removes all classes from the current element. + * @return The wrapper of the current element + */ + removeAllClasses() { + this._node.setAttribute('class', ''); + return this; + } + + /** + * Get element height using `getBoundingClientRect` + * @return The elements height in pixels + */ + height() { + return this._node.getBoundingClientRect().height; + } + + /** + * Get element width using `getBoundingClientRect` + * @return The elements width in pixels + */ + width() { + return this._node.getBoundingClientRect().width; + } + + /** + * The animate function lets you animate the current element with SMIL animations. You can add animations for multiple attributes at the same time by using an animation definition object. This object should contain SMIL animation attributes. Please refer to http://www.w3.org/TR/SVG/animate.html for a detailed specification about the available animation attributes. Additionally an easing property can be passed in the animation definition object. This can be a string with a name of an easing function in `Svg.Easing` or an array with four numbers specifying a cubic BĆ©zier curve. + * **An animations object could look like this:** + * ```javascript + * element.animate({ + * opacity: { + * dur: 1000, + * from: 0, + * to: 1 + * }, + * x1: { + * dur: '1000ms', + * from: 100, + * to: 200, + * easing: 'easeOutQuart' + * }, + * y1: { + * dur: '2s', + * from: 0, + * to: 100 + * } + * }); + * ``` + * **Automatic unit conversion** + * For the `dur` and the `begin` animate attribute you can also omit a unit by passing a number. The number will automatically be converted to milli seconds. + * **Guided mode** + * The default behavior of SMIL animations with offset using the `begin` attribute is that the attribute will keep it's original value until the animation starts. Mostly this behavior is not desired as you'd like to have your element attributes already initialized with the animation `from` value even before the animation starts. Also if you don't specify `fill="freeze"` on an animate element or if you delete the animation after it's done (which is done in guided mode) the attribute will switch back to the initial value. This behavior is also not desired when performing simple one-time animations. For one-time animations you'd want to trigger animations immediately instead of relative to the document begin time. That's why in guided mode Svg will also use the `begin` property to schedule a timeout and manually start the animation after the timeout. If you're using multiple SMIL definition objects for an attribute (in an array), guided mode will be disabled for this attribute, even if you explicitly enabled it. + * If guided mode is enabled the following behavior is added: + * - Before the animation starts (even when delayed with `begin`) the animated attribute will be set already to the `from` value of the animation + * - `begin` is explicitly set to `indefinite` so it can be started manually without relying on document begin time (creation) + * - The animate element will be forced to use `fill="freeze"` + * - The animation will be triggered with `beginElement()` in a timeout where `begin` of the definition object is interpreted in milli seconds. If no `begin` was specified the timeout is triggered immediately. + * - After the animation the element attribute value will be set to the `to` value of the animation + * - The animate element is deleted from the DOM + * @param animations An animations object where the property keys are the attributes you'd like to animate. The properties should be objects again that contain the SMIL animation attributes (usually begin, dur, from, and to). The property begin and dur is auto converted (see Automatic unit conversion). You can also schedule multiple animations for the same attribute by passing an Array of SMIL definition objects. Attributes that contain an array of SMIL definition objects will not be executed in guided mode. + * @param guided Specify if guided mode should be activated for this animation (see Guided mode). If not otherwise specified, guided mode will be activated. + * @param eventEmitter If specified, this event emitter will be notified when an animation starts or ends. + * @return The current element where the animation was added + */ + animate( + animations: Record, + guided = true, + eventEmitter?: EventEmitter + ) { + Object.keys(animations).forEach(attribute => { + const attributeAnimation = animations[attribute]; + + // If current attribute is an array of definition objects we create an animate for each and disable guided mode + if (Array.isArray(attributeAnimation)) { + attributeAnimation.forEach(animationDefinition => + createAnimation( + this, + attribute, + animationDefinition, + false, + eventEmitter + ) + ); + } else { + createAnimation( + this, + attribute, + attributeAnimation, + guided, + eventEmitter + ); + } + }); + + return this; + } +} diff --git a/src/svg/SvgList.ts b/src/svg/SvgList.ts new file mode 100644 index 000000000..e0d562610 --- /dev/null +++ b/src/svg/SvgList.ts @@ -0,0 +1,90 @@ +import { Svg } from './Svg'; + +type SvgMethods = Exclude< + keyof Svg, + | 'constructor' + | 'parent' + | 'querySelector' + | 'querySelectorAll' + | 'replace' + | 'append' + | 'classes' + | 'height' + | 'width' +>; + +type SvgListMethods = { + [method in SvgMethods]: (...args: Parameters) => SvgList; +}; + +/** + * This helper class is to wrap multiple `Svg` elements into a list where you can call the `Svg` functions on all elements in the list with one call. This is helpful when you'd like to perform calls with `Svg` on multiple elements. + * An instance of this class is also returned by `Svg.querySelectorAll`. + */ +export class SvgList implements SvgListMethods { + private svgElements: Svg[] = []; + + /** + * @param nodeList An Array of SVG DOM nodes or a SVG DOM NodeList (as returned by document.querySelectorAll) + */ + constructor(nodeList: ArrayLike) { + for (let i = 0; i < nodeList.length; i++) { + this.svgElements.push(new Svg(nodeList[i])); + } + } + + private call(method: T, args: Parameters) { + this.svgElements.forEach(element => + Reflect.apply(element[method], element, args) + ); + return this; + } + + attr(...args: Parameters) { + return this.call('attr', args); + } + + elem(...args: Parameters) { + return this.call('elem', args); + } + + root(...args: Parameters) { + return this.call('root', args); + } + + getNode(...args: Parameters) { + return this.call('getNode', args); + } + + foreignObject(...args: Parameters) { + return this.call('foreignObject', args); + } + + text(...args: Parameters) { + return this.call('text', args); + } + + empty(...args: Parameters) { + return this.call('empty', args); + } + + remove(...args: Parameters) { + return this.call('remove', args); + } + + addClass(...args: Parameters) { + return this.call('addClass', args); + } + + removeClass(...args: Parameters) { + return this.call('removeClass', args); + } + + removeAllClasses(...args: Parameters) { + return this.call('removeAllClasses', args); + } + + animate(...args: Parameters) { + return this.call('animate', args); + } +} diff --git a/src/svg/SvgPath.spec.ts b/src/svg/SvgPath.spec.ts new file mode 100644 index 000000000..7285e96fa --- /dev/null +++ b/src/svg/SvgPath.spec.ts @@ -0,0 +1,195 @@ +import { SvgPath } from './SvgPath'; + +describe('Svg', () => { + describe('SvgPath', () => { + it('should handle position updates correctly', () => { + const path: any = new SvgPath(); + expect(path.position()).toBe(0); + expect(path.position(100).position()).toBe(0); + expect(path.position(-1).position()).toBe(0); + + path.pathElements = [1, 2, 3]; + expect(path.position(100).position()).toBe(3); + }); + + it('should add absolute and relative path elements correctly', () => { + const path: any = new SvgPath() + .move(1, 2) + .move(3, 4, true) + .line(5, 6) + .line(7, 8, true) + .curve(9, 10, 11, 12, 13, 14) + .curve(15, 16, 17, 18, 19, 20, true); + + expect(path.pathElements.length).toBe(6); + expect(path.pathElements).toEqual([ + { command: 'M', x: 1, y: 2 }, + { command: 'm', x: 3, y: 4 }, + { command: 'L', x: 5, y: 6 }, + { command: 'l', x: 7, y: 8 }, + { command: 'C', x1: 9, y1: 10, x2: 11, y2: 12, x: 13, y: 14 }, + { command: 'c', x1: 15, y1: 16, x2: 17, y2: 18, x: 19, y: 20 } + ]); + }); + + it('should insert new elements at correct position', () => { + const path: any = new SvgPath() + .move(1, 2) + .move(7, 8) + .move(9, 10) + .position(1) + .move(3, 4) + .move(5, 6) + .position(100000) + .move(11, 12) + .position(-100000) + .move(-1, 0); + + expect(path.pathElements.length).toBe(7); + expect(path.pathElements).toEqual([ + { command: 'M', x: -1, y: 0 }, + { command: 'M', x: 1, y: 2 }, + { command: 'M', x: 3, y: 4 }, + { command: 'M', x: 5, y: 6 }, + { command: 'M', x: 7, y: 8 }, + { command: 'M', x: 9, y: 10 }, + { command: 'M', x: 11, y: 12 } + ]); + }); + + it('should stringify simple shape correctly', () => { + const path = new SvgPath(true) + .move(10, 10) + .line(10, 100) + .line(100, 100) + .line(100, 10); + expect(path.stringify()).toEqual('M10,10L10,100L100,100L100,10Z'); + }); + + it('should stringify with configured precision', () => { + const path = new SvgPath(false, { + accuracy: 2 + }) + .move(10.12345, 10.14345) + .line(10.14545, 10) + .line(10.14000000645, 10.3333333333); + expect(path.stringify()).toEqual('M10.12,10.14L10.15,10L10.14,10.33'); + }); + + it('should parse Chartist SVG path style correctly', () => { + const path = new SvgPath().parse('M10,10L10,100L100,100L100,10'); + expect(path.stringify()).toEqual('M10,10L10,100L100,100L100,10'); + }); + + it('should parse MDN SVG path style correctly', () => { + const path = new SvgPath().parse( + 'M10 10 L 10 100 L 100 100 L 100 10 C 1 1, 1 1, 1 1' + ); + expect(path.stringify()).toEqual( + 'M10,10L10,100L100,100L100,10C1,1,1,1,1,1' + ); + }); + + it('should parse path with closing command', () => { + const path = new SvgPath().parse( + 'M10 10 L 10 100 L 100 100 L 100 10 C 1 1, 1 1, 1 1 Z' + ); + expect(path.stringify()).toEqual( + 'M10,10L10,100L100,100L100,10C1,1,1,1,1,1' + ); + }); + + it('should parse complex path correctly', () => { + const path = new SvgPath(false, { + accuracy: 0 + }).parse( + 'M7.566371681415929,313.5870318472049L15.132743362831858,322.1479887268699L22.699115044247787,292.49058976570063L30.265486725663717,284.9469379116152L37.83185840707964,277.62070141556273L45.39823008849557,285.4043086222666L52.9646017699115,295.16905806058617L60.530973451327434,288.5395967440654L68.09734513274336,282.3023155078293L75.66371681415929,276.9420221519757L83.23008849557522,271.31296300227655L90.79646017699115,273.1827546735411L98.36283185840708,282.72148250847295L105.929203539823,276.55760703185683L113.49557522123892,278.16318930715545L121.06194690265487,279.67913384762466L128.6283185840708,296.53529757775897L136.1946902654867,324.4003397770142L143.76106194690263,317.1376004332516L151.32743362831857,323.3390406432677L158.89380530973452,328.5597479599146L166.46017699115043,329.67851354926904L174.02654867256635,327.71837583373326L181.5929203539823,335.05972598190976L189.15929203539824,334.29372633331286L196.72566371681415,332.68724934321176L204.29203539823007,330.6752327006325L211.858407079646,325.971917329413L219.42477876106196,328.13057177790404L226.99115044247785,309.6546479835954L234.5575221238938,310.6637826993739L242.12389380530973,310.65221523366176L249.69026548672568,318.40285733188773L257.2566371681416,298.18154267575227L264.8230088495575,307.4788389000347L272.3893805309734,304.189264255087L279.95575221238937,289.0288876874009L287.52212389380526,300.20654714775424L295.0884955752212,298.0164127652739L302.65486725663715,287.69192345832175L310.2212389380531,293.1860711045035L317.78761061946904,300.4760502113585L325.3539823008849,297.94852206276937L332.92035398230087,305.6594311405378L340.4867256637168,306.7859423144216L348.0530973451327,275.68998851331963L355.61946902654864,286.5550640745874L363.1858407079646,288.4952543187362L370.75221238938053,290.1896066608983L378.3185840707965,277.8447927515142L385.88495575221236,282.46018876596827L393.4513274336283,261.617847596371L401.01769911504425,265.06101027918726L408.58407079646014,264.60492966286677L416.1504424778761,252.35288845280365L423.716814159292,239.29220756750195L431.283185840708,229.73170018586225L438.8495575221239,224.1580859168795L446.41592920353986,217.20551113129414L453.9823008849557,212.63435660265037L461.54867256637164,210.4425212857057L469.1150442477876,201.0077146146342L476.6814159292035,182.3934004122068L484.24778761061947,176.98732946386616L491.8141592920354,175.3660655079267L499.38053097345136,181.1589144624976L506.9469026548673,172.81581557677976L514.5132743362832,177.82343674256106L522.079646017699,183.5573714672562L529.646017699115,184.4980688436067L537.2123893805309,201.60789339862924L544.7787610619469,193.42268767053048L552.3451327433628,209.9219909677575L559.9115044247787,221.1318944868172L567.4778761061947,222.47350026973174L575.0442477876105,229.94061399967882L582.6106194690265,213.57676800697396L590.1769911504424,232.97280246785252L597.7433628318583,232.8915724787845L605.3097345132743,231.486089735319L612.8761061946902,234.26534000120475L620.4424778761062,219.90951817170736L628.0088495575221,214.36149678900725L635.5752212389381,204.7245641444236L643.1415929203539,205.04759319834227L650.7079646017698,178.61624621480792L658.2743362831858,174.30656351022486L665.8407079646017,194.06864637030463L673.4070796460177,191.38404795482728L680.9734513274336,188.88380371217903L688.5398230088496,182.47430260433697L696.1061946902654,192.70175438596493L703.6725663716813,182.37945067166908L711.2389380530973,163.80499447227572L718.8053097345132,157.4839718811134L726.3716814159292,149.57403342725343L733.9380530973451,142.6076734278762L741.5044247787611,144.9954413314636L749.070796460177,152.29112878815386L756.637168141593,150.02544379977235L764.2035398230088,139.40203164917125L771.7699115044247,149.22935357717972L779.3362831858407,155.78116263659354L786.9026548672566,145.09966219897575L794.4690265486726,157.52407467202426L802.0353982300885,147.01645902195105L809.6017699115044,141.8658056183404L817.1681415929203,134.36135158737966L824.7345132743362,127.49269525433283L832.3008849557522,120.25886939571154L839.8672566371681,118.26230310074709L847.433628318584,98.76959064327474' + ); + expect(path.stringify()).toEqual( + 'M7.566371681415929,313.5870318472049L15.132743362831858,322.1479887268699L22.699115044247787,292.49058976570063L30.265486725663717,284.9469379116152L37.83185840707964,277.62070141556273L45.39823008849557,285.4043086222666L52.9646017699115,295.16905806058617L60.530973451327434,288.5395967440654L68.09734513274336,282.3023155078293L75.66371681415929,276.9420221519757L83.23008849557522,271.31296300227655L90.79646017699115,273.1827546735411L98.36283185840708,282.72148250847295L105.929203539823,276.55760703185683L113.49557522123892,278.16318930715545L121.06194690265487,279.67913384762466L128.6283185840708,296.53529757775897L136.1946902654867,324.4003397770142L143.76106194690263,317.1376004332516L151.32743362831857,323.3390406432677L158.89380530973452,328.5597479599146L166.46017699115043,329.67851354926904L174.02654867256635,327.71837583373326L181.5929203539823,335.05972598190976L189.15929203539824,334.29372633331286L196.72566371681415,332.68724934321176L204.29203539823007,330.6752327006325L211.858407079646,325.971917329413L219.42477876106196,328.13057177790404L226.99115044247785,309.6546479835954L234.5575221238938,310.6637826993739L242.12389380530973,310.65221523366176L249.69026548672568,318.40285733188773L257.2566371681416,298.18154267575227L264.8230088495575,307.4788389000347L272.3893805309734,304.189264255087L279.95575221238937,289.0288876874009L287.52212389380526,300.20654714775424L295.0884955752212,298.0164127652739L302.65486725663715,287.69192345832175L310.2212389380531,293.1860711045035L317.78761061946904,300.4760502113585L325.3539823008849,297.94852206276937L332.92035398230087,305.6594311405378L340.4867256637168,306.7859423144216L348.0530973451327,275.68998851331963L355.61946902654864,286.5550640745874L363.1858407079646,288.4952543187362L370.75221238938053,290.1896066608983L378.3185840707965,277.8447927515142L385.88495575221236,282.46018876596827L393.4513274336283,261.617847596371L401.01769911504425,265.06101027918726L408.58407079646014,264.60492966286677L416.1504424778761,252.35288845280365L423.716814159292,239.29220756750195L431.283185840708,229.73170018586225L438.8495575221239,224.1580859168795L446.41592920353986,217.20551113129414L453.9823008849557,212.63435660265037L461.54867256637164,210.4425212857057L469.1150442477876,201.0077146146342L476.6814159292035,182.3934004122068L484.24778761061947,176.98732946386616L491.8141592920354,175.3660655079267L499.38053097345136,181.1589144624976L506.9469026548673,172.81581557677976L514.5132743362832,177.82343674256106L522.079646017699,183.5573714672562L529.646017699115,184.4980688436067L537.2123893805309,201.60789339862924L544.7787610619469,193.42268767053048L552.3451327433628,209.9219909677575L559.9115044247787,221.1318944868172L567.4778761061947,222.47350026973174L575.0442477876105,229.94061399967882L582.6106194690265,213.57676800697396L590.1769911504424,232.97280246785252L597.7433628318583,232.8915724787845L605.3097345132743,231.486089735319L612.8761061946902,234.26534000120475L620.4424778761062,219.90951817170736L628.0088495575221,214.36149678900725L635.5752212389381,204.7245641444236L643.1415929203539,205.04759319834227L650.7079646017698,178.61624621480792L658.2743362831858,174.30656351022486L665.8407079646017,194.06864637030463L673.4070796460177,191.38404795482728L680.9734513274336,188.88380371217903L688.5398230088496,182.47430260433697L696.1061946902654,192.70175438596493L703.6725663716813,182.37945067166908L711.2389380530973,163.80499447227572L718.8053097345132,157.4839718811134L726.3716814159292,149.57403342725343L733.9380530973451,142.6076734278762L741.5044247787611,144.9954413314636L749.070796460177,152.29112878815386L756.637168141593,150.02544379977235L764.2035398230088,139.40203164917125L771.7699115044247,149.22935357717972L779.3362831858407,155.78116263659354L786.9026548672566,145.09966219897575L794.4690265486726,157.52407467202426L802.0353982300885,147.01645902195105L809.6017699115044,141.8658056183404L817.1681415929203,134.36135158737966L824.7345132743362,127.49269525433283L832.3008849557522,120.25886939571154L839.8672566371681,118.26230310074709L847.433628318584,98.76959064327474' + ); + }); + + it('should scale path along both axes', () => { + const path: any = new SvgPath() + .move(1, 2) + .line(3, 4) + .curve(5, 6, 7, 8, 9, 10) + .scale(10, 100); + + expect(path.pathElements).toEqual([ + { command: 'M', x: 10, y: 200 }, + { command: 'L', x: 30, y: 400 }, + { command: 'C', x1: 50, y1: 600, x2: 70, y2: 800, x: 90, y: 1000 } + ]); + }); + + it('should translate path along both axes', () => { + const path: any = new SvgPath() + .move(1, 2) + .line(3, 4) + .curve(5, 6, 7, 8, 9, 10) + .translate(10, 100); + + expect(path.pathElements).toEqual([ + { command: 'M', x: 11, y: 102 }, + { command: 'L', x: 13, y: 104 }, + { command: 'C', x1: 15, y1: 106, x2: 17, y2: 108, x: 19, y: 110 } + ]); + }); + + it('should transform path correctly with custom function', () => { + const path: any = new SvgPath() + .move(1, 2) + .line(3, 4) + .curve(5, 6, 7, 8, 9, 10) + .transform((_element, paramName, _elementIndex, paramIndex) => { + if (paramIndex > 3) { + return 0; + } else if (String(paramName)[0] === 'y') { + return 100; + } + + return undefined; + }); + + expect(path.pathElements).toEqual([ + { command: 'M', x: 1, y: 100 }, + { command: 'L', x: 3, y: 100 }, + { command: 'C', x1: 5, y1: 100, x2: 7, y2: 100, x: 0, y: 0 } + ]); + }); + + it('should split correctly by move command', () => { + const paths: any = new SvgPath() + .parse('M0,0L0,0L0,0L0,0M0,0L0,0L0,0L0,0') + .splitByCommand('M'); + expect(paths.length).toBe(2); + expect(paths[0].pathElements[0].command).toBe('M'); + expect(paths[0].pathElements.length).toBe(4); + expect(paths[1].pathElements[0].command).toBe('M'); + expect(paths[1].pathElements.length).toBe(4); + }); + + it('should split correctly by move command and tailing move element', () => { + const paths: any = new SvgPath() + .parse('M0,0L0,0L0,0L0,0M0,0L0,0L0,0L0,0M0,0') + .splitByCommand('M'); + expect(paths.length).toBe(3); + expect(paths[2].pathElements[0].command).toBe('M'); + }); + + it('should split correctly by move command and leading other commands', () => { + const paths: any = new SvgPath() + .parse('L0,0C0,0,0,0,0,0M0,0L0,0L0,0L0,0M0,0L0,0L0,0L0,0') + .splitByCommand('M'); + expect(paths.length).toBe(3); + expect(paths[0].pathElements.length).toBe(2); + expect(paths[0].pathElements[0].command).toBe('L'); + expect(paths[0].pathElements[1].command).toBe('C'); + + expect(paths[1].pathElements.length).toBe(4); + expect(paths[1].pathElements[0].command).toBe('M'); + }); + }); +}); diff --git a/src/svg/SvgPath.ts b/src/svg/SvgPath.ts new file mode 100644 index 000000000..04a300f1a --- /dev/null +++ b/src/svg/SvgPath.ts @@ -0,0 +1,421 @@ +import type { SegmentData } from '../core'; +import type { SvgPathOptions, PathCommand, PathParams } from './types'; + +/** + * Contains the descriptors of supported element types in a SVG path. Currently only move, line and curve are supported. + */ +const elementDescriptions: Record = { + m: ['x', 'y'], + l: ['x', 'y'], + c: ['x1', 'y1', 'x2', 'y2', 'x', 'y'], + a: ['rx', 'ry', 'xAr', 'lAf', 'sf', 'x', 'y'] +}; + +/** + * Default options for newly created SVG path objects. + */ +const defaultOptions = { + // The accuracy in digit count after the decimal point. This will be used to round numbers in the SVG path. If this option is set to false then no rounding will be performed. + accuracy: 3 +}; + +function element( + command: string, + params: PathParams, + pathElements: PathCommand[], + pos: number, + relative: boolean, + data?: SegmentData +) { + const pathElement: PathCommand = { + command: relative ? command.toLowerCase() : command.toUpperCase(), + ...params, + ...(data ? { data } : {}) + }; + + pathElements.splice(pos, 0, pathElement); +} + +function forEachParam( + pathElements: PathCommand[], + cb: ( + cmd: PathCommand, + param: keyof T, + cmdIndex: number, + paramIndex: number, + cmds: PathCommand[] + ) => void +) { + pathElements.forEach((pathElement, pathElementIndex) => { + elementDescriptions[pathElement.command.toLowerCase()].forEach( + (paramName, paramIndex) => { + cb( + pathElement, + paramName as keyof PathParams, + pathElementIndex, + paramIndex, + pathElements + ); + } + ); + }); +} + +export class SvgPath { + /** + * This static function on `SvgPath` is joining multiple paths together into one paths. + * @param paths A list of paths to be joined together. The order is important. + * @param close If the newly created path should be a closed path + * @param options Path options for the newly created path. + */ + static join(paths: SvgPath[], close = false, options?: SvgPathOptions) { + const joinedPath = new SvgPath(close, options); + for (let i = 0; i < paths.length; i++) { + const path = paths[i]; + for (let j = 0; j < path.pathElements.length; j++) { + joinedPath.pathElements.push(path.pathElements[j]); + } + } + return joinedPath; + } + + pathElements: PathCommand[] = []; + private pos = 0; + private options: Required; + + /** + * Used to construct a new path object. + * @param close If set to true then this path will be closed when stringified (with a Z at the end) + * @param options Options object that overrides the default objects. See default options for more details. + */ + constructor(private readonly close = false, options?: SvgPathOptions) { + this.options = { ...defaultOptions, ...options }; + } + + /** + * Gets or sets the current position (cursor) inside of the path. You can move around the cursor freely but limited to 0 or the count of existing elements. All modifications with element functions will insert new elements at the position of this cursor. + * @param pos If a number is passed then the cursor is set to this position in the path element array. + * @return If the position parameter was passed then the return value will be the path object for easy call chaining. If no position parameter was passed then the current position is returned. + */ + position(pos: number): this; + position(): number; + position(pos?: number) { + if (pos !== undefined) { + this.pos = Math.max(0, Math.min(this.pathElements.length, pos)); + return this; + } else { + return this.pos; + } + } + + /** + * Removes elements from the path starting at the current position. + * @param count Number of path elements that should be removed from the current position. + * @return The current path object for easy call chaining. + */ + remove(count: number) { + this.pathElements.splice(this.pos, count); + return this; + } + + /** + * Use this function to add a new move SVG path element. + * @param x The x coordinate for the move element. + * @param y The y coordinate for the move element. + * @param relative If set to true the move element will be created with relative coordinates (lowercase letter) + * @param data Any data that should be stored with the element object that will be accessible in pathElement + * @return The current path object for easy call chaining. + */ + move(x: number, y: number, relative = false, data?: SegmentData) { + element( + 'M', + { + x: +x, + y: +y + }, + this.pathElements, + this.pos++, + relative, + data + ); + return this; + } + + /** + * Use this function to add a new line SVG path element. + * @param x The x coordinate for the line element. + * @param y The y coordinate for the line element. + * @param relative If set to true the line element will be created with relative coordinates (lowercase letter) + * @param data Any data that should be stored with the element object that will be accessible in pathElement + * @return The current path object for easy call chaining. + */ + line(x: number, y: number, relative = false, data?: SegmentData) { + element( + 'L', + { + x: +x, + y: +y + }, + this.pathElements, + this.pos++, + relative, + data + ); + return this; + } + + /** + * Use this function to add a new curve SVG path element. + * @param x1 The x coordinate for the first control point of the bezier curve. + * @param y1 The y coordinate for the first control point of the bezier curve. + * @param x2 The x coordinate for the second control point of the bezier curve. + * @param y2 The y coordinate for the second control point of the bezier curve. + * @param x The x coordinate for the target point of the curve element. + * @param y The y coordinate for the target point of the curve element. + * @param relative If set to true the curve element will be created with relative coordinates (lowercase letter) + * @param data Any data that should be stored with the element object that will be accessible in pathElement + * @return The current path object for easy call chaining. + */ + curve( + x1: number, + y1: number, + x2: number, + y2: number, + x: number, + y: number, + relative = false, + data?: SegmentData + ) { + element( + 'C', + { + x1: +x1, + y1: +y1, + x2: +x2, + y2: +y2, + x: +x, + y: +y + }, + this.pathElements, + this.pos++, + relative, + data + ); + return this; + } + + /** + * Use this function to add a new non-bezier curve SVG path element. + * @param rx The radius to be used for the x-axis of the arc. + * @param ry The radius to be used for the y-axis of the arc. + * @param xAr Defines the orientation of the arc + * @param lAf Large arc flag + * @param sf Sweep flag + * @param x The x coordinate for the target point of the curve element. + * @param y The y coordinate for the target point of the curve element. + * @param relative If set to true the curve element will be created with relative coordinates (lowercase letter) + * @param data Any data that should be stored with the element object that will be accessible in pathElement + * @return The current path object for easy call chaining. + */ + arc( + rx: number, + ry: number, + xAr: number, + lAf: number, + sf: number, + x: number, + y: number, + relative = false, + data?: SegmentData + ) { + element( + 'A', + { + rx, + ry, + xAr, + lAf, + sf, + x, + y + }, + this.pathElements, + this.pos++, + relative, + data + ); + return this; + } + + /** + * Parses an SVG path seen in the d attribute of path elements, and inserts the parsed elements into the existing path object at the current cursor position. Any closing path indicators (Z at the end of the path) will be ignored by the parser as this is provided by the close option in the options of the path object. + * @param path Any SVG path that contains move (m), line (l) or curve (c) components. + * @return The current path object for easy call chaining. + */ + parse(path: string) { + // Parsing the SVG path string into an array of arrays [['M', '10', '10'], ['L', '100', '100']] + const chunks = path + .replace(/([A-Za-z])([0-9])/g, '$1 $2') + .replace(/([0-9])([A-Za-z])/g, '$1 $2') + .split(/[\s,]+/) + .reduce((result, pathElement) => { + if (pathElement.match(/[A-Za-z]/)) { + result.push([]); + } + + result[result.length - 1].push(pathElement); + return result; + }, []); + + // If this is a closed path we remove the Z at the end because this is determined by the close option + if (chunks[chunks.length - 1][0].toUpperCase() === 'Z') { + chunks.pop(); + } + + // Using svgPathElementDescriptions to map raw path arrays into objects that contain the command and the parameters + // For example {command: 'M', x: '10', y: '10'} + const elements = chunks.map(chunk => { + const command = chunk.shift() as string; + const description = elementDescriptions[command.toLowerCase()]; + + return { + command, + ...description.reduce>( + (result, paramName, index) => { + result[paramName] = +chunk[index]; + return result; + }, + {} + ) + } as PathCommand; + }); + + // Preparing a splice call with the elements array as var arg params and insert the parsed elements at the current position + this.pathElements.splice(this.pos, 0, ...elements); + // Increase the internal position by the element count + this.pos += elements.length; + + return this; + } + + /** + * This function renders to current SVG path object into a final SVG string that can be used in the d attribute of SVG path elements. It uses the accuracy option to round big decimals. If the close parameter was set in the constructor of this path object then a path closing Z will be appended to the output string. + */ + stringify() { + const accuracyMultiplier = Math.pow(10, this.options.accuracy); + + return ( + this.pathElements.reduce((path, pathElement) => { + const params = elementDescriptions[ + pathElement.command.toLowerCase() + ].map(paramName => { + const value = pathElement[paramName as keyof PathCommand] as number; + + return this.options.accuracy + ? Math.round(value * accuracyMultiplier) / accuracyMultiplier + : value; + }); + + return path + pathElement.command + params.join(','); + }, '') + (this.close ? 'Z' : '') + ); + } + + /** + * Scales all elements in the current SVG path object. There is an individual parameter for each coordinate. Scaling will also be done for control points of curves, affecting the given coordinate. + * @param x The number which will be used to scale the x, x1 and x2 of all path elements. + * @param y The number which will be used to scale the y, y1 and y2 of all path elements. + * @return The current path object for easy call chaining. + */ + scale(x: number, y: number) { + forEachParam(this.pathElements, (pathElement, paramName) => { + pathElement[paramName] *= paramName[0] === 'x' ? x : y; + }); + return this; + } + + /** + * Translates all elements in the current SVG path object. The translation is relative and there is an individual parameter for each coordinate. Translation will also be done for control points of curves, affecting the given coordinate. + * @param x The number which will be used to translate the x, x1 and x2 of all path elements. + * @param y The number which will be used to translate the y, y1 and y2 of all path elements. + * @return The current path object for easy call chaining. + */ + translate(x: number, y: number) { + forEachParam(this.pathElements, (pathElement, paramName) => { + pathElement[paramName] += paramName[0] === 'x' ? x : y; + }); + return this; + } + + /** + * This function will run over all existing path elements and then loop over their attributes. The callback function will be called for every path element attribute that exists in the current path. + * The method signature of the callback function looks like this: + * ```javascript + * function(pathElement, paramName, pathElementIndex, paramIndex, pathElements) + * ``` + * If something else than undefined is returned by the callback function, this value will be used to replace the old value. This allows you to build custom transformations of path objects that can't be achieved using the basic transformation functions scale and translate. + * @param transformFnc The callback function for the transformation. Check the signature in the function description. + * @return The current path object for easy call chaining. + */ + transform( + transformFnc: ( + cmd: PathCommand, + param: keyof T, + cmdIndex: number, + paramIndex: number, + cmds: PathCommand[] + ) => number | void + ) { + forEachParam( + this.pathElements, + (pathElement, paramName, pathElementIndex, paramIndex, pathElements) => { + const transformed = transformFnc( + pathElement, + paramName, + pathElementIndex, + paramIndex, + pathElements + ); + if (transformed || transformed === 0) { + pathElement[paramName] = transformed; + } + } + ); + return this; + } + + /** + * This function clones a whole path object with all its properties. This is a deep clone and path element objects will also be cloned. + * @param close Optional option to set the new cloned path to closed. If not specified or false, the original path close option will be used. + */ + clone(close = false) { + const clone = new SvgPath(close || this.close); + clone.pos = this.pos; + clone.pathElements = this.pathElements + .slice() + .map(pathElement => ({ ...pathElement })); + clone.options = { ...this.options }; + return clone; + } + + /** + * Split a Svg.Path object by a specific command in the path chain. The path chain will be split and an array of newly created paths objects will be returned. This is useful if you'd like to split an SVG path by it's move commands, for example, in order to isolate chunks of drawings. + * @param command The command you'd like to use to split the path + */ + splitByCommand(command: string) { + const split = [new SvgPath()]; + + this.pathElements.forEach(pathElement => { + if ( + pathElement.command === command.toUpperCase() && + split[split.length - 1].pathElements.length !== 0 + ) { + split.push(new SvgPath()); + } + + split[split.length - 1].pathElements.push(pathElement); + }); + + return split; + } +} diff --git a/src/svg/animation.ts b/src/svg/animation.ts new file mode 100644 index 000000000..c7a1c78a2 --- /dev/null +++ b/src/svg/animation.ts @@ -0,0 +1,134 @@ +import type { EventEmitter } from '../event'; +import { ensureUnit, quantity } from '../core/lang'; +import type { Attributes, AnimationDefinition, AnimationEvent } from './types'; +import type { Svg } from './Svg'; + +/** + * This Object contains some standard easing cubic bezier curves. + * Then can be used with their name in the `Svg.animate`. + * You can also extend the list and use your own name in the `animate` function. + * Click the show code button to see the available bezier functions. + */ +export const easings = { + easeInSine: [0.47, 0, 0.745, 0.715], + easeOutSine: [0.39, 0.575, 0.565, 1], + easeInOutSine: [0.445, 0.05, 0.55, 0.95], + easeInQuad: [0.55, 0.085, 0.68, 0.53], + easeOutQuad: [0.25, 0.46, 0.45, 0.94], + easeInOutQuad: [0.455, 0.03, 0.515, 0.955], + easeInCubic: [0.55, 0.055, 0.675, 0.19], + easeOutCubic: [0.215, 0.61, 0.355, 1], + easeInOutCubic: [0.645, 0.045, 0.355, 1], + easeInQuart: [0.895, 0.03, 0.685, 0.22], + easeOutQuart: [0.165, 0.84, 0.44, 1], + easeInOutQuart: [0.77, 0, 0.175, 1], + easeInQuint: [0.755, 0.05, 0.855, 0.06], + easeOutQuint: [0.23, 1, 0.32, 1], + easeInOutQuint: [0.86, 0, 0.07, 1], + easeInExpo: [0.95, 0.05, 0.795, 0.035], + easeOutExpo: [0.19, 1, 0.22, 1], + easeInOutExpo: [1, 0, 0, 1], + easeInCirc: [0.6, 0.04, 0.98, 0.335], + easeOutCirc: [0.075, 0.82, 0.165, 1], + easeInOutCirc: [0.785, 0.135, 0.15, 0.86], + easeInBack: [0.6, -0.28, 0.735, 0.045], + easeOutBack: [0.175, 0.885, 0.32, 1.275], + easeInOutBack: [0.68, -0.55, 0.265, 1.55] +}; + +export function createAnimation( + element: Svg, + attribute: string, + animationDefinition: AnimationDefinition, + createGuided = false, + eventEmitter?: EventEmitter +) { + const { easing, ...def } = animationDefinition; + const attributeProperties: Attributes = {}; + let animationEasing; + let timeout; + + // Check if an easing is specified in the definition object and delete it from the object as it will not + // be part of the animate element attributes. + if (easing) { + // If already an easing BĆ©zier curve array we take it or we lookup a easing array in the Easing object + animationEasing = Array.isArray(easing) ? easing : easings[easing]; + } + + // If numeric dur or begin was provided we assume milli seconds + def.begin = ensureUnit(def.begin, 'ms'); + def.dur = ensureUnit(def.dur, 'ms'); + + if (animationEasing) { + def.calcMode = 'spline'; + def.keySplines = animationEasing.join(' '); + def.keyTimes = '0;1'; + } + + // Adding "fill: freeze" if we are in guided mode and set initial attribute values + if (createGuided) { + def.fill = 'freeze'; + // Animated property on our element should already be set to the animation from value in guided mode + attributeProperties[attribute] = def.from; + element.attr(attributeProperties); + + // In guided mode we also set begin to indefinite so we can trigger the start manually and put the begin + // which needs to be in ms aside + timeout = quantity(def.begin || 0).value; + def.begin = 'indefinite'; + } + + const animate = element.elem('animate', { + attributeName: attribute, + ...def + }); + + if (createGuided) { + // If guided we take the value that was put aside in timeout and trigger the animation manually with a timeout + setTimeout(() => { + // If beginElement fails we set the animated attribute to the end position and remove the animate element + // This happens if the SMIL ElementTimeControl interface is not supported or any other problems occurred in + // the browser. (Currently FF 34 does not support animate elements in foreignObjects) + try { + // @ts-expect-error Try legacy API. + animate._node.beginElement(); + } catch (err) { + // Set animated attribute to current animated value + attributeProperties[attribute] = def.to; + element.attr(attributeProperties); + // Remove the animate element as it's no longer required + animate.remove(); + } + }, timeout); + } + + const animateNode = animate.getNode(); + + if (eventEmitter) { + animateNode.addEventListener('beginEvent', () => + eventEmitter.emit('animationBegin', { + element: element, + animate: animateNode, + params: animationDefinition + }) + ); + } + + animateNode.addEventListener('endEvent', () => { + if (eventEmitter) { + eventEmitter.emit('animationEnd', { + element: element, + animate: animateNode, + params: animationDefinition + }); + } + + if (createGuided) { + // Set animated attribute to current animated value + attributeProperties[attribute] = def.to; + element.attr(attributeProperties); + // Remove the animate element as it's no longer required + animate.remove(); + } + }); +} diff --git a/src/svg/index.ts b/src/svg/index.ts new file mode 100644 index 000000000..e49993cf7 --- /dev/null +++ b/src/svg/index.ts @@ -0,0 +1,5 @@ +export { easings } from './animation'; +export * from './Svg'; +export * from './SvgPath'; +export * from './SvgList'; +export * from './types'; diff --git a/src/svg/types.ts b/src/svg/types.ts new file mode 100644 index 000000000..e795ef044 --- /dev/null +++ b/src/svg/types.ts @@ -0,0 +1,64 @@ +import type { SegmentData } from '../core'; +import type { easings } from './animation'; +import type { Svg } from './Svg'; + +export interface BasePathParams { + x: number; + y: number; +} + +export type MoveParams = BasePathParams; + +export type LineParams = BasePathParams; + +export interface CurveParams extends BasePathParams { + x1: number; + y1: number; + x2: number; + y2: number; +} + +export interface ArcParams extends BasePathParams { + rx: number; + ry: number; + xAr: number; + lAf: number; + sf: number; +} + +export type PathParams = MoveParams | LineParams | CurveParams | ArcParams; + +export type PathCommand = { + command: string; + data?: SegmentData; +} & T; + +export interface SvgPathOptions { + accuracy?: number; +} + +export type Attributes = Record; + +export interface AnimationDefinition { + easing?: number[] | keyof typeof easings; + calcMode?: 'discrete' | 'linear' | 'paced' | 'spline'; + restart?: 'always' | 'whenNotActive' | 'never'; + repeatCount?: number | 'indefinite'; + repeatDur?: string | 'indefinite'; + keySplines?: string; + keyTimes?: string; + fill?: string; + min?: number | string; + max?: number | string; + begin?: number | string; + end?: number | string; + dur: number | string; + from: number | string; + to: number | string; +} + +export interface AnimationEvent { + element: Svg; + animate: Element; + params: AnimationDefinition; +} diff --git a/src/utils/extend.ts b/src/utils/extend.ts new file mode 100644 index 000000000..99ea3b284 --- /dev/null +++ b/src/utils/extend.ts @@ -0,0 +1,29 @@ +/** + * Simple recursive object extend + * @param target Target object where the source will be merged into + * @param sources This object (objects) will be merged into target and then target is returned + * @return An object that has the same reference as target but is extended and merged with the properties of source + */ +export function extend(target: T): T; +export function extend(target: T, a: A): T & A; +export function extend(target: T, a: A, b: B): T & A & B; +// eslint-disable-next-line @typescript-eslint/no-explicit-any +export function extend(target: any = {}, ...sources: any[]) { + for (let i = 0; i < sources.length; i++) { + const source = sources[i]; + for (const prop in source) { + const sourceProp = source[prop]; + if ( + typeof sourceProp === 'object' && + sourceProp !== null && + !(sourceProp instanceof Array) + ) { + target[prop] = extend(target[prop], sourceProp); + } else { + target[prop] = sourceProp; + } + } + } + + return target; +} diff --git a/src/utils/functional.ts b/src/utils/functional.ts new file mode 100644 index 000000000..000b20e26 --- /dev/null +++ b/src/utils/functional.ts @@ -0,0 +1,37 @@ +/** + * Helps to simplify functional style code + * @param n This exact value will be returned by the noop function + * @return The same value that was provided to the n parameter + */ +export const noop = (n: T) => n; + +/** + * Functional style helper to produce array with given length initialized with undefined values + */ +export const times = (length: number): T[] => + Array.from({ length }); + +/** + * Sum helper to be used in reduce functions + */ +export const sum = (previous: number, current: number) => + previous + (current ? current : 0); + +/** + * Map for multi dimensional arrays where their nested arrays will be mapped in serial. The output array will have the length of the largest nested array. The callback function is called with variable arguments where each argument is the nested array value (or undefined if there are no more values). + * + * For example: + * @example + * ```javascript + * const data = [[1, 2], [3], []]; + * serialMap(data, cb); + * + * // where cb will be called 2 times + * // 1. call arguments: (1, 3, undefined) + * // 2. call arguments: (2, undefined, undefined) + * ``` + */ +export const serialMap = (array: T[][], callback: (...args: T[]) => K) => + times(Math.max(...array.map(element => element.length))).map( + (_inner, index) => callback(...array.map(element => element[index])) + ); diff --git a/src/utils/index.ts b/src/utils/index.ts new file mode 100644 index 000000000..61e35e3b6 --- /dev/null +++ b/src/utils/index.ts @@ -0,0 +1,4 @@ +export * from './types'; +export * from './extend'; +export * from './functional'; +export * from './utils'; diff --git a/src/utils/types.ts b/src/utils/types.ts new file mode 100644 index 000000000..141dca172 --- /dev/null +++ b/src/utils/types.ts @@ -0,0 +1,8 @@ +export type FilterByKey = T extends Record + ? T + : T extends Partial> + ? T & { [key in K]: T[K] } + : never; + +export type RequiredKeys = T & + Required> & { [key in V]: Required }; diff --git a/src/utils/utils.ts b/src/utils/utils.ts new file mode 100644 index 000000000..0f65aa7ab --- /dev/null +++ b/src/utils/utils.ts @@ -0,0 +1,57 @@ +import type { FilterByKey } from './types'; + +/** + * This function safely checks if an objects has an owned property. + * @param target The object where to check for a property + * @param property The property name + * @returns Returns true if the object owns the specified property + */ +export function safeHasProperty( + target: T, + property: K +): target is FilterByKey; +export function safeHasProperty(target: unknown, property: string) { + return ( + target !== null && + typeof target === 'object' && + Reflect.has(target, property) + ); +} + +/** + * Checks if a value can be safely coerced to a number. This includes all values except null which result in finite numbers when coerced. This excludes NaN, since it's not finite. + */ +export function isNumeric(value: number): true; +export function isNumeric(value: unknown): boolean; +export function isNumeric(value: unknown) { + return value !== null && isFinite(value as number); +} + +/** + * Returns true on all falsey values except the numeric value 0. + */ +export function isFalseyButZero( + value: unknown +): value is undefined | null | false | '' { + return !value && value !== 0; +} + +/** + * Returns a number if the passed parameter is a valid number or the function will return undefined. On all other values than a valid number, this function will return undefined. + */ +export function getNumberOrUndefined(value: number): number; +export function getNumberOrUndefined(value: unknown): number | undefined; +export function getNumberOrUndefined(value: unknown) { + return isNumeric(value) ? Number(value) : undefined; +} + +/** + * Checks if value is array of arrays or not. + */ +export function isArrayOfArrays(data: unknown): data is unknown[][] { + if (!Array.isArray(data)) { + return false; + } + + return data.every(Array.isArray); +} diff --git a/tasks/aliases.yml b/tasks/aliases.yml deleted file mode 100644 index ea64d2f59..000000000 --- a/tasks/aliases.yml +++ /dev/null @@ -1,54 +0,0 @@ -# Grunt Commands -# ============== -# -# Use `grunt` in the root directory to select and run a specific task. - -default: - - 'newer:jshint' - - 'test' - - 'build' - - 'dev' - -# create the library -build: - - 'clean:dist' - - 'sass:dist' - - 'cssmin' - - 'copy:dist' - - 'concat:dist' - - 'template:dist' - - 'umd' - - 'uglify:dist' - -# prepare the website -public: - - 'clean:public' - - 'assemble' - - 'useminPrepare' - - 'concurrent:public' - - 'concat:generated' - - 'copy:public' - - 'cssmin:generated' - - 'uglify:generated' - - 'usemin' - - 'critical' - - 'htmlmin' - -# tests -test: - - 'clean:tmp' - - 'concurrent:test' - - 'connect:test' - - 'jasmine' - -# local version with livereload -dev: - - 'assemble' - - 'sass:tmp' - - 'connect:livereload' - - 'watch' - -# online version -preview: - - 'public' - - 'connect:public' diff --git a/tasks/assemble.js b/tasks/assemble.js deleted file mode 100644 index 8c3e38ce6..000000000 --- a/tasks/assemble.js +++ /dev/null @@ -1,37 +0,0 @@ -/** - * assemble - * ======== - * - * Using the static site generator to build the website. - * - * Link: https://github.com/assemble/assemble/ - */ - -'use strict'; - -module.exports = function (grunt) { - return { - options: { - helpers: ['<%= pkg.config.site %>/helpers/**/*.js'], - partials: ['<%= pkg.config.site %>/partials/**/*.hbs'], - layoutdir: '<%= pkg.config.site %>/layouts', - layoutext: '.hbs', - layout: ['default'], - data: [ - '<%= pkg.config.site %>/data/**/*.{json,yml}', - '<%= pkg.config.tmp %>/data/**/*.{json,yml}' - ], - plugins: ['assemble-dox'], - dox: { - sourceFiles: ['<%= pkg.config.src %>/**/*.js'], - contextRoot: 'apidox' - } - }, - pages: { - expand: true, - cwd: '<%= pkg.config.site %>/templates', - src: ['*.hbs'], - dest: '<%= pkg.config.tmp %>' - } - }; -}; diff --git a/tasks/clean.js b/tasks/clean.js deleted file mode 100644 index 71dd9baef..000000000 --- a/tasks/clean.js +++ /dev/null @@ -1,29 +0,0 @@ -/** - * clean - * ===== - * - * Remove temporary and unused files. - * - * Link: https://github.com/gruntjs/grunt-contrib-clean - */ - -'use strict'; - -module.exports = function (grunt) { - return { - public: { - files: [ - { - dot: true, - src: [ - '<%= pkg.config.tmp %>', - '<%= pkg.config.public %>/*', - '!<%= pkg.config.public %>/.git*' - ] - } - ] - }, - tmp: '<%= pkg.config.tmp %>', - dist: '<%= pkg.config.dist %>' - }; -}; diff --git a/tasks/concat.js b/tasks/concat.js deleted file mode 100644 index f2ad81c92..000000000 --- a/tasks/concat.js +++ /dev/null @@ -1,39 +0,0 @@ -/** - * concat - * ====== - * - * Combine files for the library (uncompressed). - * - * Link: https://github.com/gruntjs/grunt-contrib-concat - */ - -'use strict'; - -module.exports = function (grunt) { - return { - dist: { - options: { - separator: ';', - banner: '<%= pkg.config.banner %>' - }, - files: { - '<%= pkg.config.dist %>/chartist.js': [ - '<%= pkg.config.src %>/scripts/core.js', - '<%= pkg.config.src %>/scripts/interpolation.js', - '<%= pkg.config.src %>/scripts/event.js', - '<%= pkg.config.src %>/scripts/class.js', - '<%= pkg.config.src %>/scripts/base.js', - '<%= pkg.config.src %>/scripts/svg.js', - '<%= pkg.config.src %>/scripts/svg-path.js', - '<%= pkg.config.src %>/scripts/axes/axis.js', - '<%= pkg.config.src %>/scripts/axes/auto-scale-axis.js', - '<%= pkg.config.src %>/scripts/axes/fixed-scale-axis.js', - '<%= pkg.config.src %>/scripts/axes/step-axis.js', - '<%= pkg.config.src %>/scripts/charts/line.js', - '<%= pkg.config.src %>/scripts/charts/bar.js', - '<%= pkg.config.src %>/scripts/charts/pie.js' - ] - } - } - }; -}; diff --git a/tasks/concurrent.js b/tasks/concurrent.js deleted file mode 100644 index 28c5853c7..000000000 --- a/tasks/concurrent.js +++ /dev/null @@ -1,26 +0,0 @@ -/** - * concurrent - * ========== - * - * Run tasks in parallel to speed up the build process. - * - * Link: https://github.com/sindresorhus/grunt-concurrent - */ - -'use strict'; - -module.exports = function (grunt) { - return { - server: [ - 'sass:public' - ], - test: [ - 'sass' // tmp - ], - public: [ - 'sass:public', - 'imagemin', - 'svgmin' - ] - }; -}; diff --git a/tasks/connect.js b/tasks/connect.js deleted file mode 100644 index 1d8c608c1..000000000 --- a/tasks/connect.js +++ /dev/null @@ -1,48 +0,0 @@ -/** - * connect - * ======= - * - * Starting a localserver for development. - * - * Link: https://github.com/gruntjs/grunt-contrib-connect - */ - -'use strict'; - -module.exports = function (grunt) { - return { - options: { - port: 9000, - // Change this to '0.0.0.0' to access the server from outside. - hostname: 'localhost', - livereload: 35729 - }, - livereload: { - options: { - open: true, - base: [ - '<%= pkg.config.tmp %>', - '<%= pkg.config.src %>', - '<%= pkg.config.site %>' - ] - } - }, - test: { - options: { - port: 9001, - base: [ - '<%= pkg.config.tmp %>', - '<%= pkg.config.test %>', - '<%= pkg.config.site %>' - ] - } - }, - public: { - options: { - open: true, - keepalive: true, - base: '<%= pkg.config.public %>' - } - } - }; -}; diff --git a/tasks/copy.js b/tasks/copy.js deleted file mode 100644 index ec2c28f84..000000000 --- a/tasks/copy.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * copy - * ==== - * - * Copies remaining files to places other tasks can use. - * - * Link: https://github.com/gruntjs/grunt-contrib-copy - */ - -'use strict'; - -module.exports = function (grunt) { - return { - public: { - files: [ - { - expand: true, - dot: true, - cwd: '<%= pkg.config.site %>', - dest: '<%= pkg.config.public %>', - src: [ - '*.{ico,png,txt}', - '.htaccess', - '*.html', - 'bower_components/**/*', - 'images/{,*/}*.{webp}', - 'fonts/*' - ] - }, - { - expand: true, - cwd: '<%= pkg.config.tmp %>/images', - dest: '<%= pkg.config.public %>/images', - src: ['generated/*'] - }, - { - expand: true, - cwd: '<%= pkg.config.tmp %>', - dest: '<%= pkg.config.public %>', - src: [ - '*.html' - ] - } - ] - }, - dist: { - files: [ - { - expand: true, - cwd: '<%= pkg.config.src %>/styles', - dest: '<%= pkg.config.dist %>/scss/', - src: [ - 'modules/**/*.scss', - 'settings/**/*.scss', - '*.scss' - ] - }, - { - expand: true, - cwd: '.tmp/styles', - dest: '<%= pkg.config.dist %>/', - src: 'chartist.css*' - }, - { - dest: '<%= pkg.config.dist %>/', - src: 'LICENSE' - } - ] - } - }; -}; diff --git a/tasks/critical.js b/tasks/critical.js deleted file mode 100644 index 515b92ed5..000000000 --- a/tasks/critical.js +++ /dev/null @@ -1,25 +0,0 @@ -/** - * critical - * ======== - * - * Use critical to inline above the fold critical CSS during the build process. - * - * Link: https://github.com/bezoerb/grunt-critical - */ - -'use strict'; - -module.exports = function (grunt) { - return { - public: { - options: { - base: './', - css: '<%= pkg.config.public %>/styles/main.css', - width: 320, - height: 3000 - }, - src: '<%= pkg.config.public %>/index.html', - dest: '<%= pkg.config.public %>/index.html' - } - }; -}; diff --git a/tasks/cssmin.js b/tasks/cssmin.js deleted file mode 100644 index 0fa900d23..000000000 --- a/tasks/cssmin.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * cssmin - * ====== - * - * CSS min for the library. - * - * Link: https://github.com/gruntjs/grunt-contrib-cssmin - */ - -'use strict'; - -module.exports = function (grunt) { - return { - dist: { - options: { - 'banner': '<%= pkg.config.banner %>' - }, - files: { - '<%= pkg.config.dist %>/chartist.min.css': ['<%= pkg.config.tmp %>/styles/chartist.css'] - } - } - }; -}; diff --git a/tasks/htmlmin.js b/tasks/htmlmin.js deleted file mode 100644 index effaffa50..000000000 --- a/tasks/htmlmin.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * htmlmin - * ======= - * - * Minify HTML of the website. - * - * Link: https://github.com/gruntjs/grunt-contrib-htmlmin - */ - -'use strict'; - -module.exports = function(){ - return { - public: { - options: { - collapseWhitespace: true, - collapseBooleanAttributes: true, - removeCommentsFromCDATA: true, - removeOptionalTags: true - }, - files: [ - { - expand: true, - cwd: '<%= pkg.config.public %>', - src: ['*.html'], - dest: '<%= pkg.config.public %>' - } - ] - } - }; -}; diff --git a/tasks/imagemin.js b/tasks/imagemin.js deleted file mode 100644 index da7bc809b..000000000 --- a/tasks/imagemin.js +++ /dev/null @@ -1,25 +0,0 @@ -/** - * imagemin - * ======== - * - * The following *-min tasks produce minified files in the dist folder. - * - * Link: https://github.com/gruntjs/grunt-contrib-imagemin - */ - -'use strict'; - -module.exports = function (grunt) { - return { - dist: { - files: [ - { - expand: true, - cwd: '<%= pkg.config.site %>/images', - src: '{,*/}*.{png,jpg,jpeg}', - dest: '<%= pkg.config.public %>/images' - } - ] - } - } -}; diff --git a/tasks/jasmine.js b/tasks/jasmine.js deleted file mode 100644 index 88847db14..000000000 --- a/tasks/jasmine.js +++ /dev/null @@ -1,48 +0,0 @@ -/** - * jasmine - * ======= - * - * Test settings - * - * Link: https://github.com/gruntjs/grunt-contrib-jasmine - */ - -'use strict'; - -module.exports = function (grunt) { - return { - dist: { - src: [ - '<%= pkg.config.src %>/scripts/core.js', - '<%= pkg.config.src %>/scripts/interpolation.js', - '<%= pkg.config.src %>/scripts/event.js', - '<%= pkg.config.src %>/scripts/class.js', - '<%= pkg.config.src %>/scripts/base.js', - '<%= pkg.config.src %>/scripts/svg.js', - '<%= pkg.config.src %>/scripts/svg-path.js', - '<%= pkg.config.src %>/scripts/axes/axis.js', - '<%= pkg.config.src %>/scripts/axes/step-axis.js', - '<%= pkg.config.src %>/scripts/axes/auto-scale-axis.js', - '<%= pkg.config.src %>/scripts/axes/fixed-scale-axis.js', - '<%= pkg.config.src %>/scripts/charts/line.js', - '<%= pkg.config.src %>/scripts/charts/bar.js', - '<%= pkg.config.src %>/scripts/charts/pie.js' - ], - options: { - summary: true, - specs: '<%= pkg.config.test %>/spec/**/spec-*.js', - helpers: '<%= pkg.config.test %>/spec/**/helper-*.js', - vendor: [ - 'node_modules/jquery/dist/jquery.js', - 'node_modules/jasmine-jquery/lib/jasmine-jquery.js' - ], - styles: [ - '.tmp/styles/main.css' - ], - phantomjs: { - 'ignore-ssl-errors': true - } - } - } - }; -}; diff --git a/tasks/jshint.js b/tasks/jshint.js deleted file mode 100644 index 20919ca2e..000000000 --- a/tasks/jshint.js +++ /dev/null @@ -1,30 +0,0 @@ -/** - * jshint - * ====== - * - * Make sure code styles are up to par and there are no obvious mistakes. - * - * Link: https://github.com/gruntjs/grunt-contrib-jshint - */ - -'use strict'; - -module.exports = function (grunt) { - return { - options: { - jshintrc: '.jshintrc', - reporter: require('jshint-stylish') - }, - all: [ - 'Gruntfile.js', - '<%= pkg.config.src %>/{,*/}*.js', - '<%= pkg.config.site %>/scripts/{,*/}*.js' - ], - test: { - options: { - jshintrc: '<%= pkg.config.test %>/.jshintrc' - }, - src: ['<%= pkg.config.test %>/spec/{,*/}*.js'] - } - }; -}; diff --git a/tasks/sass.js b/tasks/sass.js deleted file mode 100644 index f2dc21559..000000000 --- a/tasks/sass.js +++ /dev/null @@ -1,61 +0,0 @@ -/** - * sass - * ==== - * - * Compile SASS into CSS with libsass (node-sass). - * - * Link: https://github.com/sindresorhus/grunt-sass - */ - -'use strict'; - -module.exports = function (grunt) { - return { - options: { - includePaths: ['<%= pkg.config.site %>/bower_components'], - imagePath: '<%= pkg.config.site %>/images' - }, - public: { // without sourcemaps - options: { - sourceMap: false - }, - files: [ - { - expand: true, - cwd: '<%= pkg.config.site %>/styles', - src: '{,*/}*.{scss,sass}', - ext: '.css', - dest: '<%= pkg.config.tmp %>/styles' - } - ] - }, - dist: { - options: { - sourceMap: true - }, - files: [ - { - expand: true, - cwd: '<%= pkg.config.src %>/styles', - src: '{,*/}*.{scss,sass}', - ext: '.css', - dest: '<%= pkg.config.tmp %>/styles' - } - ] - }, - tmp: { // with sourcemaps - options: { - sourceMap: true - }, - files: [ - { - expand: true, - cwd: '<%= pkg.config.site %>/styles', - src: '{,*/}*.{scss,sass}', - ext: '.css', - dest: '<%= pkg.config.tmp %>/styles' - } - ] - } - }; -}; diff --git a/tasks/svgmin.js b/tasks/svgmin.js deleted file mode 100644 index 5259d34f1..000000000 --- a/tasks/svgmin.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * svgmin - * ====== - * - * Minify SVG graphics by removing unnecessary data. - * - * Link: https://github.com/sindresorhus/grunt-svgmin - */ - -'use strict'; - -module.exports = function (grunt) { - return { - dist: { - files: [ - { - expand: true, - cwd: '<%= pkg.config.site %>/images', - src: '{,*/}*.svg', - dest: '<%= pkg.config.public %>/images' - } - ], - options: { - plugins: [ - { removeEmptyContainers: true }, - { cleanupIDs: false }, - { removeUnknownsAndDefaults: false } - ] - } - } - }; -}; diff --git a/tasks/template.js b/tasks/template.js deleted file mode 100644 index 4e84e014f..000000000 --- a/tasks/template.js +++ /dev/null @@ -1,27 +0,0 @@ -/** - * template - * === - * - * Replaces template variables inside of files using build stage variables. - * - * Link: https://github.com/mathiasbynens/grunt-template - */ - -'use strict'; - -var pkg = require('../package.json'); - -module.exports = function (grunt) { - return { - dist: { - options: { - data: { - pkg: pkg - } - }, - files: { - '<%= pkg.config.dist %>/chartist.js': '<%= pkg.config.dist %>/chartist.js' - } - } - }; -}; diff --git a/tasks/uglify.js b/tasks/uglify.js deleted file mode 100644 index 8d1d09b49..000000000 --- a/tasks/uglify.js +++ /dev/null @@ -1,25 +0,0 @@ -/** - * uglify - * ====== - * - * Minify the library. - * - * Link: https://github.com/gruntjs/grunt-contrib-uglify - */ - -'use strict'; - -module.exports = function (grunt) { - return { - dist: { - options: { - banner: '<%= pkg.config.banner %>', - sourceMap: true, - sourceMapIncludeSources: true - }, - files: { - '<%= pkg.config.dist %>/chartist.min.js': ['<%= pkg.config.dist %>/chartist.js'] - } - } - }; -}; diff --git a/tasks/umd.js b/tasks/umd.js deleted file mode 100644 index cef46933b..000000000 --- a/tasks/umd.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * umd - * === - * - * Wraps the library into an universal module definition (AMD + CommonJS + Global). - * - * Link: https://github.com/bebraw/grunt-umd - */ - -'use strict'; - -module.exports = function (grunt) { - return { - dist: { - src: '<%= pkg.config.dist %>/chartist.js', - objectToExport: 'Chartist', - globalAlias: 'Chartist', - amdModuleId: 'Chartist', - indent: 2 - } - }; -}; diff --git a/tasks/usemin.js b/tasks/usemin.js deleted file mode 100644 index bc0d5bbf9..000000000 --- a/tasks/usemin.js +++ /dev/null @@ -1,34 +0,0 @@ -/** - * usemin - * ====== - * - * Performs rewrites based on rev and the useminPrepare configuration. - * - * Link: https://github.com/yeoman/grunt-usemin - */ - -'use strict'; - -module.exports = function (grunt) { - return { - html: ['<%= pkg.config.public %>/{,*/}*.html'], - css: ['<%= pkg.config.public %>/styles/{,*/}*.css'], - options: { - assetsDirs: ['<%= pkg.config.public %>'], - blockReplacements: { - js: function (block) { - - var asyncScripts = [ - 'scripts/all.js' - ]; - - var isAsync = block.async || asyncScripts.indexOf(block.dest) > -1; - - return isAsync ? - '