Skip to content

An open source alternative to Tableau. Embeddable visual analytic

Initial commit

observedobservere9bacda13690
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 00000000..dfe07704
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,2 @@
+# Auto detect text files and perform LF normalization
+* text=auto
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000..d451ff16
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+node_modules
+.DS_Store
+dist
+dist-ssr
+*.local
diff --git a/.npmignore b/.npmignore
new file mode 100644
index 00000000..55b8ce57
--- /dev/null
+++ b/.npmignore
@@ -0,0 +1,2 @@
+src
+index.html
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 00000000..7a4a3ea2
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
\ No newline at end of file
diff --git a/README.md b/README.md
new file mode 100644
index 00000000..58c8cdc7
--- /dev/null
+++ b/README.md
@@ -0,0 +1,102 @@
+# graphic-walker
+![](https://img.shields.io/github/license/kanaries/graphic-walker)
+![](https://img.shields.io/npm/v/@kanaries/graphic-walker)
+
+Graphic Walker is an open source replacement of tableau. It allows analyst to analysis data and vislize patterns with simple drag and drop operations.
+
+Main features:
+
++ A grammar of graphics based visual analytic user interface where use can build visualization from low level visual channel encodings.
++ A Data Explainer which explain some why some patterns occur / what may cause them.
+
+## Usage
+
+### Method 1: use as an indenpent app.
+```bash
+yarn install
+
+npm run build
+```
+
+### Method 2: use as an embedding component module
+```bash
+yarn add @kanaries/graphic-walker
+
+# or
+
+npm i --save @kanaries/graphic-walker
+```
+
+In your app:
+```typescript
+import { GraphicWalker } from '@kanaries/graphic-walker';
+import 'graphic-walker/dist/style.css'
+
+const YourEmbeddingTableauStyleApp: React.FC = props => {
+ const { dataSource, fields } = props;
+ return <GraphicWalker
+ dataSource={dataSource}
+ rawFields={fields}
+ spec={graphicWalkerSpec}
+ i18nLang={langStore.lang}
+ />
+}
+
+export default YourEmbeddingTableauStyleApp;
+```
+
+### try local (dev mode)
+```bash
+# packages/graphic-walker
+npm run dev
+```
+
+
+## I18n Support
+
+GraphicWalker now support _English_ (as `"en"` or `"en-US"`) and _Chinese_ (as `"zh"` or `"zh-CN"`) with built-in locale resources. You can simply provide a valid string value (enumerated above) as `props.i18nLang` to set a language or synchronize your global i18n language with the component like the example given as follow.
+
+```typescript
+const YourApp = props => {
+ // ...
+
+ const curLang = /* get your i18n language */;
+
+ return <GraphicWalker
+ dataSource={dataSource}
+ rawFields={fields}
+ i18nLang={curLang}
+ />
+}
+```
+
+### Customize I18n
+
+If you need i18n support to cover languages not supported currently, or to totally rewrite the content of any built-in resource(s), you can also provide your resource(s) as `props.i18nResources` to GraphicWalker like this.
+
+```typescript
+const yourResources = {
+ 'de-DE': {
+ 'key': 'value',
+ ...
+ },
+ 'fr-FR': {
+ ...
+ },
+};
+
+const YourApp = props => {
+ // ...
+
+ const curLang = /* get your i18n language */;
+
+ return <GraphicWalker
+ dataSource={dataSource}
+ rawFields={fields}
+ i18nLang={curLang}
+ i18nResources={yourResources}
+ />
+}
+```
+
+GraphicWalker uses `react-i18next` to support i18n, which is based on `i18next`, so your translation resources should follow [this format](https://www.i18next.com/misc/json-format). You can simply fork and edit `/locales/en-US.json` to start your translation.
diff --git a/index.html b/index.html
new file mode 100644
index 00000000..98545510
--- /dev/null
+++ b/index.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <link rel="icon" type="image/svg+xml" href="/src/assets/kanaries.ico" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>Graphic Walker</title>
+ </head>
+ <body>
+ <div id="root"></div>
+ <script type="module" src="/src/main.tsx"></script>
+ </body>
+</html>
diff --git a/package.json b/package.json
new file mode 100644
index 00000000..dbccc81d
--- /dev/null
+++ b/package.json
@@ -0,0 +1,62 @@
+{
+ "name": "@kanaries/graphic-walker",
+ "version": "0.2.0",
+ "scripts": {
+ "dev:front_end": "vite --host",
+ "dev:data_service": "npx serve ../rath-client/public -l 8080",
+ "dev": "concurrently \"npm run dev:front_end\" \"npm run dev:data_service\"",
+ "build": "tsc && vite build",
+ "serve": "vite preview",
+ "type": "tsc src/lib.ts --declaration --emitDeclarationOnly --jsx react --esModuleInterop --outDir dist"
+ },
+ "files": [
+ "dist"
+ ],
+ "license": "AGPL",
+ "main": "./dist/graphic-walker.umd.js",
+ "module": "./dist/graphic-walker.es.js",
+ "exports": {
+ ".": {
+ "import": "./dist/graphic-walker.es.js",
+ "require": "./dist/graphic-walker.umd.js"
+ }
+ },
+ "prettier": {
+ "tabWidth": 4
+ },
+ "types": "./dist/index.d.ts",
+ "dependencies": {
+ "@heroicons/react": "^2.0.8",
+ "@kanaries/web-data-loader": "0.1.5",
+ "autoprefixer": "^10.3.5",
+ "i18next": "^21.9.1",
+ "i18next-browser-languagedetector": "^6.1.5",
+ "immer": "^9.0.15",
+ "mobx": "^6.3.3",
+ "mobx-react-lite": "^3.2.1",
+ "postcss": "^8.3.7",
+ "re-resizable": "^6.9.8",
+ "react": "^17.0.2",
+ "react-beautiful-dnd": "^13.1.0",
+ "react-dom": "^17.0.2",
+ "react-i18next": "^11.18.6",
+ "react-json-view": "^1.21.3",
+ "rxjs": "^7.3.0",
+ "styled-components": "^5.3.0",
+ "tailwindcss": "^2.2.15",
+ "uuid": "^8.3.2",
+ "vega": "^5.22.1",
+ "vega-embed": "^6.20.8",
+ "vega-lite": "^5.2.0",
+ "visual-insights": "0.7.15"
+ },
+ "devDependencies": {
+ "@rollup/plugin-typescript": "^8.2.5",
+ "@types/react": "^17.0.0",
+ "@types/react-dom": "^17.0.0",
+ "@types/uuid": "^8.3.1",
+ "@vitejs/plugin-react-refresh": "^1.3.6",
+ "typescript": "^4.3.2",
+ "vite": "^3.1.0"
+ }
+}
diff --git a/postcss.config.js b/postcss.config.js
new file mode 100644
index 00000000..f7bd3abe
--- /dev/null
+++ b/postcss.config.js
@@ -0,0 +1,6 @@
+module.exports = {
+ plugins: {
+ tailwindcss: {},
+ autoprefixer: {},
+ }
+}
\ No newline at end of file
diff --git a/src/App.tsx b/src/App.tsx
new file mode 100644
index 00000000..9291e7d1
--- /dev/null
+++ b/src/App.tsx
@@ -0,0 +1,142 @@
+import React, { useState, useEffect } from 'react';
+import { IMutField, IRow } from './interfaces';
+import VisualSettings from './visualSettings';
+import { Container, NestContainer } from './components/container';
+import ClickMenu from './components/clickMenu';
+import InsightBoard from './insightBoard/index';
+import PosFields from './fields/posFields';
+import AestheticFields from './fields/aestheticFields';
+import DatasetFields from './fields/datasetFields/index';
+import ReactiveRenderer from './renderer/index';
+import DataSourceSegment from './dataSource/index';
+import { useGlobalStore } from './store';
+import { preAnalysis, destroyWorker } from './services'
+import { observer } from 'mobx-react-lite';
+import { LightBulbIcon } from '@heroicons/react/24/outline'
+import { toJS } from 'mobx';
+import "tailwindcss/tailwind.css"
+import './index.css'
+import { Specification } from 'visual-insights';
+// import PureTabs from './components/tabs/pureTab';
+import VisNav from './segments/visNav';
+import { useTranslation } from 'react-i18next';
+import { mergeLocaleRes, setLocaleLanguage } from './locales/i18n';
+import Menubar from './visualSettings/menubar';
+import FilterField from './fields/filterField';
+
+
+export interface EditorProps {
+ dataSource?: IRow[];
+ rawFields?: IMutField[];
+ spec?: Specification;
+ i18nLang?: string;
+ i18nResources?: { [lang: string]: Record<string, string | any> };
+}
+
+const App: React.FC<EditorProps> = props => {
+ const { dataSource = [], rawFields = [], spec, i18nLang = 'en-US', i18nResources } = props;
+ const { commonStore, vizStore } = useGlobalStore();
+ const [insightReady, setInsightReady] = useState<boolean>(true);
+
+ const { currentDataset, datasets, vizEmbededMenu } = commonStore;
+
+ const { t, i18n } = useTranslation();
+ const curLang = i18n.language;
+
+ useEffect(() => {
+ if (i18nResources) {
+ mergeLocaleRes(i18nResources);
+ }
+ }, [i18nResources]);
+
+ useEffect(() => {
+ if (i18nLang !== curLang) {
+ setLocaleLanguage(i18nLang);
+ }
+ }, [i18nLang, curLang]);
+
+ // use as an embeding module, use outside datasource from props.
+ useEffect(() => {
+ if (dataSource.length > 0) {
+ commonStore.addAndUseDS({
+ name: 'context dataset',
+ dataSource: dataSource,
+ rawFields
+ })
+ }
+ }, [dataSource, rawFields])
+
+ useEffect(() => {
+ if (spec) {
+ vizStore.renderSpec(spec);
+ }
+ }, [spec])
+
+ // do preparation analysis work when using a new dataset
+ useEffect(() => {
+ const ds = currentDataset;
+ if (ds && ds.dataSource.length > 0 && ds.rawFields.length > 0) {
+ setInsightReady(false)
+ preAnalysis({
+ dataSource: ds.dataSource,
+ fields: toJS(ds.rawFields)
+ }).then(() => {
+ setInsightReady(true);
+ })
+ }
+ return () => {
+ destroyWorker();
+ }
+ }, [currentDataset]);
+
+ return (
+ <div className="App">
+ <DataSourceSegment preWorkDone={insightReady} />
+ <div className='px-2 mx-2'>
+ <VisNav />
+ {/* <PureTabs tabs={[{label: 'a', key: 'a'}, {label: 'b', key: 'b'}]} selectedKey='a' onSelected={() => {}} /> */}
+ </div>
+ <Container style={{ marginTop: '0em', borderTop: 'none' }}>
+ <Menubar />
+ <VisualSettings />
+ <div className="grid grid-cols-12 xl:grid-cols-6">
+ <div className="col-span-3 xl:col-span-1">
+ <DatasetFields />
+ </div>
+ <div className="col-span-2 xl:col-span-1">
+ <FilterField />
+ <AestheticFields />
+ </div>
+ <div className="col-span-7 xl:col-span-4">
+ <div>
+ <PosFields />
+ </div>
+ <NestContainer style={{ minHeight: '600px', overflow: 'auto' }} onMouseLeave={() => {
+ vizEmbededMenu.show && commonStore.closeEmbededMenu();
+ }}>
+ {datasets.length > 0 && <ReactiveRenderer />}
+ <InsightBoard />
+ {vizEmbededMenu.show && (
+ <ClickMenu x={vizEmbededMenu.position[0]} y={vizEmbededMenu.position[1]}>
+ <div className="flex items-center whitespace-nowrap py-1 px-4 hover:bg-gray-100"
+ onClick={() => {
+ commonStore.closeEmbededMenu();
+ commonStore.setShowInsightBoard(true)
+ }}
+ >
+ <span className="flex-1 pr-2">
+ {t('App.labels.data_interpretation')}
+ </span>
+ <LightBulbIcon className="ml-1 w-3 flex-grow-0 flex-shrink-0" />
+ </div>
+ </ClickMenu>
+ )}
+ </NestContainer>
+ </div>
+ </div>
+ </Container>
+ </div>
+ )
+}
+
+export default observer(App);
diff --git a/src/assets/kanaries.ico b/src/assets/kanaries.ico
new file mode 100644
index 00000000..c3d59e69
Binary files /dev/null and b/src/assets/kanaries.ico differ
diff --git a/src/components/clickMenu.tsx b/src/components/clickMenu.tsx
new file mode 100644
index 00000000..2204d353
--- /dev/null
+++ b/src/components/clickMenu.tsx
@@ -0,0 +1,29 @@
+import React from 'react';
+import styled from 'styled-components';
+
+const MenuContainer = styled.div`
+ min-width: 100px;
+ background-color: #fff;
+ border: 1px solid #f0f0f0;
+ position: absolute;
+ z-index: 99;
+ cursor: pointer;
+ /* box-shadow: 0px 0px 8px 1px rgba(0, 0, 0, 0.09); */
+ /* border-radius: 2px; */
+ padding: 4px;
+`;
+interface ClickMenuProps {
+ x: number;
+ y: number;
+}
+
+const ClickMenu: React.FC<ClickMenuProps> = props => {
+ const { x, y, children } = props
+ return <MenuContainer className="shadow-lg text-sm" style={{ left: x + 'px', top: y + 'px' }}>
+ {
+ children
+ }
+ </MenuContainer>
+}
+
+export default ClickMenu;
diff --git a/src/components/container.tsx b/src/components/container.tsx
new file mode 100644
index 00000000..5f554eff
--- /dev/null
+++ b/src/components/container.tsx
@@ -0,0 +1,16 @@
+import styled from 'styled-components';
+
+export const Container = styled.div`
+ border: 1px solid #d9d9d9;
+ padding: 1em;
+ margin: 1em;
+ background-color: #fff;
+`;
+
+export const NestContainer = styled.div`
+ border: 1px solid #d9d9d9;
+ padding: 0.4em;
+ font-size: 12px;
+ margin: 0.2em;
+ background-color: #fff;
+`
\ No newline at end of file
diff --git a/src/components/dataTypeIcon.tsx b/src/components/dataTypeIcon.tsx
new file mode 100644
index 00000000..a98aeb71
--- /dev/null
+++ b/src/components/dataTypeIcon.tsx
@@ -0,0 +1,20 @@
+import React from 'react';
+import { IMutField } from "../interfaces";
+import { DocumentTextIcon, HashtagIcon, CalendarIcon } from '@heroicons/react/24/outline';
+
+const DataTypeIcon: React.FC<{dataType: IMutField['semanticType']; analyticType: IMutField['analyticType']}> = props => {
+ const { dataType, analyticType } = props;
+ const color = analyticType === 'dimension' ? 'text-blue-500' : 'text-green-500'
+ const iconClassName = `w-3 inline-block mr-0.5 ${color}`
+ switch (dataType) {
+ case 'quantitative':
+ case 'ordinal':
+ return <HashtagIcon className={iconClassName} />
+ case 'temporal':
+ return <CalendarIcon className={iconClassName} />
+ default:
+ return <DocumentTextIcon className={iconClassName} />
+ }
+}
+
+export default DataTypeIcon;
\ No newline at end of file
diff --git a/src/components/liteForm.tsx b/src/components/liteForm.tsx
new file mode 100644
index 00000000..52875fec
--- /dev/null
+++ b/src/components/liteForm.tsx
@@ -0,0 +1,16 @@
+import styled from 'styled-components';
+
+export const LiteForm = styled.div`
+ display: flex;
+ align-items: center;
+ .item{
+ margin: 0em 8px;
+ display: flex;
+ align-items: center;
+ >label {
+ margin-right: 4px;
+ line-height: 20px;
+ font-size: 12px;
+ }
+ }
+`;
\ No newline at end of file
diff --git a/src/components/modal.tsx b/src/components/modal.tsx
new file mode 100644
index 00000000..ade865b2
--- /dev/null
+++ b/src/components/modal.tsx
@@ -0,0 +1,85 @@
+import React, { useRef } from 'react';
+import styled from 'styled-components';
+import { XCircleIcon } from '@heroicons/react/24/outline';
+
+
+const Background = styled.div({
+ position: 'fixed',
+ left: 0,
+ top: 0,
+ width: '100vw',
+ height: '100vh',
+ backdropFilter: 'blur(1px)',
+ zIndex: 25535,
+});
+
+const Container = styled.div`
+ width: 880px;
+ max-height: 800px;
+ overflow: auto;
+ > div.header {
+ background-color: #f0f0f0;
+ display: flex;
+ padding: 12px;
+ font-size: 14px;
+ align-items: center;
+ }
+ > div.container {
+ padding: 1em;
+ }
+ position: fixed;
+ left: 50%;
+ top: 50%;
+ transform: translate(-50%, -50%);
+ background-color: #fff;
+ /* box-shadow: 0px 0px 12px 3px rgba(0, 0, 0, 0.19); */
+ border-radius: 4px;
+ z-index: 999;
+`;
+interface ModalProps {
+ onClose?: () => void
+ title?: string;
+}
+const Modal: React.FC<ModalProps> = props => {
+ const { onClose, title } = props;
+ const prevMouseDownTimeRef = useRef(0);
+
+ return (
+ <Background
+ // This is a safer replacement of onClick handler.
+ // onClick also happens if the click event is begun by pressing mouse button
+ // at a different element and then released when the mouse is moved on the target element.
+ // This case is required to be prevented, especially disturbing when interacting
+ // with a Slider component.
+ onMouseDown={() => prevMouseDownTimeRef.current = Date.now()}
+ onMouseOut={() => prevMouseDownTimeRef.current = 0}
+ onMouseUp={() => {
+ if (Date.now() - prevMouseDownTimeRef.current < 1000) {
+ onClose?.();
+ }
+ }}
+ >
+ <Container
+ role="dialog"
+ className="shadow-lg"
+ onMouseDown={e => e.stopPropagation()}
+ >
+ <div className="header relative h-9">
+ <header className="font-bold">
+ {title}
+ </header>
+ <XCircleIcon
+ className="text-red-600 absolute right-2 w-6 cursor-pointer"
+ role="button"
+ tabIndex={0}
+ aria-label="close dialog"
+ onClick={onClose}
+ />
+ </div>
+ <div className="container">{props.children}</div>
+ </Container>
+ </Background>
+ );
+}
+
+export default Modal;
diff --git a/src/components/sizeSetting.tsx b/src/components/sizeSetting.tsx
new file mode 100644
index 00000000..410bd4a0
--- /dev/null
+++ b/src/components/sizeSetting.tsx
@@ -0,0 +1,95 @@
+import { ArrowsPointingOutIcon, XMarkIcon } from "@heroicons/react/24/outline";
+import React, { useState, useEffect } from "react";
+import { useTranslation } from 'react-i18next';
+
+
+interface SizeSettingProps {
+ onWidthChange: (val: number) => void;
+ onHeightChange: (val: number) => void;
+ width: number;
+ height: number;
+}
+
+const SizeSetting: React.FC<SizeSettingProps> = props => {
+ const { onWidthChange, onHeightChange, width, height } = props
+ const [show, setShow] = useState<boolean>(false);
+ const { t } = useTranslation('translation', { keyPrefix: 'main.tabpanel.settings.size_setting' });
+
+ useEffect(() => {
+ if (show) {
+ const closeDialog = () => {
+ setShow(false);
+ };
+
+ document.body.addEventListener('click', closeDialog);
+
+ return () => {
+ document.body.removeEventListener('click', closeDialog);
+ };
+ }
+ }, [show]);
+
+ return <div className="leading-none cursor-pointer">
+ <ArrowsPointingOutIcon
+ role="button"
+ id="button:size_setting"
+ aria-describedby="button:size_setting:label"
+ tabIndex={0}
+ aria-haspopup="dialog"
+ onClick={() => {
+ setShow(v => !v)
+ }}
+ className="w-4 h-4 inline-block mr-0.5 text-gray-900"
+ />
+ {
+ show && <div role="dialog" className="absolute z-auto bg-white p-4 border border-gray-200 shadow cursor-default" onClick={e => e.stopPropagation()} style={{ zIndex: 25535 }}>
+ <div>
+ <XMarkIcon
+ className="text-gray-900 absolute right-2 top-2 w-4 cursor-pointer hover:bg-red-100"
+ role="button"
+ tabIndex={0}
+ aria-label="close"
+ onClick={(e) => {
+ setShow(false);
+ e.stopPropagation();
+ }}
+ />
+ </div>
+
+ <div className="mt-4 w-60">
+ <input className="w-full h-2 bg-blue-100 appearance-none"
+ style={{ cursor: 'ew-resize' }}
+ type="range"
+ name="width"
+ value={Math.sqrt(width / 1000)}
+ min="0" max="1" step="0.01"
+ onChange={(e) => {
+ onWidthChange(Math.round(Number(e.target.value) ** 2 * 1000))
+ }}
+ />
+ <output className="text-sm ml-1" htmlFor="width">
+ {`${t('width')}: ${width}`}
+ </output>
+ </div>
+ <div className=" mt-2">
+ <input className="w-full h-2 bg-blue-100 appearance-none"
+ style={{ cursor: 'ew-resize' }}
+ type="range"
+ name="height"
+ value={Math.sqrt(height / 1000)}
+ min="0" max="1" step="0.01"
+ onChange={(e) => {
+ onHeightChange(Math.round(Number(e.target.value) ** 2 * 1000))
+ }}
+ />
+ <output className="text-sm ml-1" htmlFor="height">
+ {`${t('height')}: ${height}`}
+ </output>
+ </div>
+
+ </div>
+ }
+ </div>
+}
+
+export default SizeSetting;
\ No newline at end of file
diff --git a/src/components/tabs/pureTab.tsx b/src/components/tabs/pureTab.tsx
new file mode 100644
index 00000000..7cd8606b
--- /dev/null
+++ b/src/components/tabs/pureTab.tsx
@@ -0,0 +1,70 @@
+import React, { useCallback, useEffect, useState } from "react";
+import { useTranslation } from "react-i18next";
+
+
+function classNames(...classes: string[]) {
+ return classes.filter(Boolean).join(' ')
+}
+
+export interface ITabOption {
+ label: string;
+ key: string;
+ options?: Record<string, any>;
+}
+interface PureTabsProps {
+ tabs: ITabOption[];
+ selectedKey: string;
+ onSelected: (selectedKey: string, index: number) => void;
+ allowEdit?: boolean;
+ onEditLabel?: (label: string, index: number) => void;
+}
+export default function PureTabs(props: PureTabsProps) {
+ const { tabs, selectedKey, onSelected, allowEdit, onEditLabel } = props;
+ const [editList, setEditList] = useState<boolean[]>([]);
+ const { t } = useTranslation();
+
+ const clearEditStatus = useCallback(() => {
+ setEditList(new Array(tabs.length).fill(false))
+ }, [tabs.length]);
+
+ useEffect(() => {
+ clearEditStatus
+ }, [clearEditStatus]);
+
+ return (
+ <div className="border-b border-gray-200 overflow-x-auto overflow-y-hidden" onMouseLeave={clearEditStatus}>
+ <nav className="-mb-px flex h-8 border-gray-300 border-l" role="tablist" aria-label="Tabs">
+ {tabs.map((tab, tabIndex) => (
+ <span
+ role="tab"
+ tabIndex={0}
+ dangerouslySetInnerHTML={{
+ __html: t(tab.label, tab.options)
+ }}
+ onClick={() => {
+ onSelected(tab.key, tabIndex)
+ }}
+ onDoubleClick={() => {
+ setEditList(v => {
+ const nv = [...v];
+ nv[tabIndex] = true;
+ return nv
+ })
+ }}
+ contentEditable={editList[tabIndex]}
+ onInput={(e) => {
+ onEditLabel && onEditLabel(`${e.currentTarget.textContent}`, tabIndex)
+ }}
+ key={tab.key}
+ className={classNames(
+ tab.key === selectedKey
+ ? "border-transparent text-black bg-gray-100"
+ : "text-gray-500 hover:text-gray-700 hover:border-gray-300",
+ "whitespace-nowrap border-gray-300 py-1 px-2 border-t border-r border-b pr-6 text-sm cursor-pointer"
+ )}
+ />
+ ))}
+ </nav>
+ </div>
+ );
+}
diff --git a/src/config.ts b/src/config.ts
new file mode 100644
index 00000000..e1eb044f
--- /dev/null
+++ b/src/config.ts
@@ -0,0 +1,38 @@
+import { IStackMode } from "./interfaces";
+
+export const GEMO_TYPES: Readonly<string[]> = [
+ 'auto',
+ 'bar',
+ 'line',
+ 'area',
+ 'trail',
+ 'point',
+ 'circle',
+ 'tick',
+ 'rect',
+ 'arc',
+ 'boxplot',
+] as const;
+
+export const STACK_MODE: Readonly<IStackMode[]> = [
+ 'none',
+ 'stack',
+ 'normalize'
+]
+
+export const CHART_LAYOUT_TYPE: Readonly<string[]> = [
+ 'auto',
+ 'fixed',
+] as const;
+
+export const COLORS = {
+ // tableau style
+ // dimension: 'rgb(73, 150, 178)',
+ // measure: 'rgb(0, 177, 128)',
+ // dimension: 'rgb(86, 170, 208)',
+ // measure: 'rgb(232, 149, 72)'
+ dimension: 'rgba(0, 0, 0, 0.9)',
+ measure: 'rgba(10, 0, 0, 0.6)',
+ black: '#141414',
+ white: '#fafafa'
+}
\ No newline at end of file
diff --git a/src/constants.ts b/src/constants.ts
new file mode 100644
index 00000000..5b0733fd
--- /dev/null
+++ b/src/constants.ts
@@ -0,0 +1 @@
+export const COUNT_FIELD_ID = 'gw_count_fid';
\ No newline at end of file
diff --git a/src/dataSource/config.ts b/src/dataSource/config.ts
new file mode 100644
index 00000000..41c23070
--- /dev/null
+++ b/src/dataSource/config.ts
@@ -0,0 +1,62 @@
+export const DemoDataAssets = process.env.NODE_ENV === 'production' ? {
+ CARS: "https://chspace.oss-cn-hongkong.aliyuncs.com/api/ds-cars-service.json",
+ STUDENTS: "https://chspace.oss-cn-hongkong.aliyuncs.com/api/ds-students-service.json",
+ BTC_GOLD: "https://chspace.oss-cn-hongkong.aliyuncs.com/api/ds_btc_gold_service.json",
+ BIKE_SHARING: 'https://chspace.oss-cn-hongkong.aliyuncs.com/api/ds-bikesharing-service.json',
+ CAR_SALES: 'https://chspace.oss-cn-hongkong.aliyuncs.com/api/ds-carsales-service.json',
+ COLLAGE: 'https://chspace.oss-cn-hongkong.aliyuncs.com/api/ds-collage-service.json',
+ TITANIC: 'https://chspace.oss-cn-hongkong.aliyuncs.com/api/ds-titanic-service.json',
+ KELPER: 'https://chspace.oss-cn-hongkong.aliyuncs.com/api/ds-kelper-service.json',
+} : {
+ // CARS: "https://chspace.oss-cn-hongkong.aliyuncs.com/api/ds-cars-service.json",
+ CARS: "/datasets/ds-cars-service.json",
+ // STUDENTS: "https://chspace.oss-cn-hongkong.aliyuncs.com/datasets/ds-students-service.json",
+ STUDENTS: "/datasets/ds-students-service.json",
+ BTC_GOLD: "/datasets/ds_btc_gold_service.json",
+ BIKE_SHARING: '/datasets/ds-bikesharing-service.json',
+ CAR_SALES: '/datasets/ds-carsales-service.json',
+ COLLAGE: '/datasets/ds-collage-service.json',
+ TITANIC: '/datasets/ds-titanic-service.json',
+ KELPER: '/datasets/ds-kelper-service.json',
+} as const;
+
+interface IPublicData {
+ key: string;
+ title: string;
+ desc?: string;
+}
+
+export const PUBLIC_DATA_LIST: IPublicData[] = [
+ {
+ key: "CARS",
+ title: "Cars",
+ },
+ {
+ key: "STUDENTS",
+ title: "Students' Performance"
+ },
+ {
+ key: "BIKE_SHARING",
+ title: "Bike Sharing"
+ },
+ {
+ key: "CAR_SALES",
+ title: "Car Sales"
+ },
+ {
+ key: "COLLAGE",
+ title: "Collage"
+ },
+ {
+ key: "KELPER",
+ title: "NASA Kelper"
+ },
+ {
+ key: 'BTC_GOLD',
+ title: "2022MCM Problem C: Trading Strategies"
+ },
+ {
+ key: "TITANIC",
+ title: "Titanic"
+ }
+]
\ No newline at end of file
diff --git a/src/dataSource/dataSelection/csvData.tsx b/src/dataSource/dataSelection/csvData.tsx
new file mode 100644
index 00000000..43ed99a3
--- /dev/null
+++ b/src/dataSource/dataSelection/csvData.tsx
@@ -0,0 +1,77 @@
+import React, { useRef, useCallback } from 'react';
+import { FileReader } from '@kanaries/web-data-loader';
+import { Record } from '../../interfaces';
+import Table from '../table';
+import styled from 'styled-components';
+import { useGlobalStore } from '../../store';
+import { observer } from 'mobx-react-lite';
+import { useTranslation } from 'react-i18next';
+
+const Container = styled.div`
+ overflow-x: auto;
+`;
+
+interface ICSVData {
+}
+const CSVData: React.FC<ICSVData> = props => {
+ const fileRef = useRef<HTMLInputElement>(null);
+ const { commonStore } = useGlobalStore();
+ const { tmpDSName, tmpDataSource } = commonStore;
+
+ const onSubmitData = useCallback(() => {
+ commonStore.commitTempDS();
+ }, []);
+
+ const { t } = useTranslation('translation', { keyPrefix: 'DataSource.dialog.file' });
+
+ return (
+ <Container>
+ <input
+ style={{ display: 'none' }}
+ type="file"
+ ref={fileRef}
+ onChange={(e) => {
+ const files = e.target.files;
+ if (files !== null) {
+ const file = files[0];
+ FileReader.csvReader({
+ file,
+ config: { type: 'reservoirSampling', size: Infinity },
+ onLoading: () => {}
+ }).then((data) => {
+ commonStore.updateTempDS(data as Record[]);
+ });
+ }
+ }}
+ />
+ <div className="mt-1 mb-1">
+ <button className="inline-block min-w-96 text-xs mr-2 pt-1 pb-1 pl-6 pr-6 border border-gray-500 rounded-sm cursor-pointer hover:bg-gray-200"
+ onClick={() => { if (fileRef.current) { fileRef.current.click(); }}}
+ >
+ {t('open')}
+ </button>
+ <button className="inline-block min-w-96 text-xs mr-2 pt-1 pb-1 pl-6 pr-6 bg-yellow-600 rounded-sm hover:bg-yellow-500 text-white font-bold disabled:bg-gray-300"
+ disabled={tmpDataSource.length === 0}
+ onClick={() => { onSubmitData(); }}
+ >
+ {t('submit')}
+ </button>
+ </div>
+ <div className="mt-1 mb-1">
+ <label className="block text-xs text-gray-800">
+ {t('dataset_name')}
+ </label>
+ <input type="text" placeholder={t('dataset_name')}
+ value={tmpDSName}
+ onChange={e => {
+ commonStore.updateTempName(e.target.value)
+ }}
+ className="text-xs p-1 border border-gray-300 outline-none focus:outline-none focus:border-blue-500"
+ />
+ </div>
+ <Table />
+ </Container>
+ );
+}
+
+export default observer(CSVData);
diff --git a/src/dataSource/dataSelection/index.tsx b/src/dataSource/dataSelection/index.tsx
new file mode 100644
index 00000000..854d967a
--- /dev/null
+++ b/src/dataSource/dataSelection/index.tsx
@@ -0,0 +1,57 @@
+import React from 'react';
+import { useState } from 'react';
+import CSVData from './csvData';
+import PublicData from './publicData';
+import { useTranslation } from 'react-i18next';
+
+interface IDataSelectionProps {
+
+}
+
+const DataSelection: React.FC = props =>{
+ const [sourceType, setSourceType] = useState<'file' | 'public'>('file');
+ const { t } = useTranslation('translation', { keyPrefix: 'DataSource' });
+
+ return <div className="grid grid-cols-6 text-sm">
+ <div className="col-span-1 bg-gray-100 pl-2 pr-2 pb-2 pt-1 text-xs">
+ <h1 className="cursor-default">
+ {t('dialog.data_types')}
+ </h1>
+ <hr className="mt-1 mb-1" />
+ <div
+ className={
+ `pb-1 cursor-pointer ${
+ sourceType === 'file' ? 'underline' : ''
+ } hover:bg-gray-200 hover:text-purple-600`
+ }
+ onClick={() => { setSourceType('file'); }}
+ >
+ {t('dialog.text_file_data')}
+ </div>
+ <div
+ className={
+ `pb-1 cursor-pointer ${
+ sourceType === 'public' ? 'underline' : ''
+ } hover:bg-gray-200 hover:text-purple-600`
+ }
+ onClick={() => { setSourceType('public'); }}
+ >
+ {t('dialog.public_data')}
+ </div>
+ </div>
+ <div className="col-span-5 pl-2 pr-2">
+ <h1 className="text-base font-semibold">
+ {t('dialog.data_source_type', { sourceType })}
+ </h1>
+ <hr className="mt-1 mb-1" />
+ {
+ sourceType === 'file' && <CSVData />
+ }
+ {
+ sourceType === 'public' && <PublicData />
+ }
+ </div>
+ </div>
+}
+
+export default DataSelection;
diff --git a/src/dataSource/dataSelection/publicData.tsx b/src/dataSource/dataSelection/publicData.tsx
new file mode 100644
index 00000000..0863d5ae
--- /dev/null
+++ b/src/dataSource/dataSelection/publicData.tsx
@@ -0,0 +1,57 @@
+import React from 'react';
+import Table from '../table';
+import { DemoDataAssets, PUBLIC_DATA_LIST } from '../config'
+import { useGlobalStore } from '../../store';
+import { observer } from 'mobx-react-lite';
+import { useTranslation } from 'react-i18next';
+
+
+interface IPublicDataProps {
+
+}
+
+const PublicData: React.FC<IPublicDataProps> = props => {
+ const { commonStore } = useGlobalStore();
+ const { tmpDataSource } = commonStore;
+ const { t } = useTranslation('translation', { keyPrefix: 'DataSource.dialog.public' });
+
+ return <div>
+ <div className="h-48 overflow-auto mb-1">
+ {
+ PUBLIC_DATA_LIST.map(data => <div key={data.key}
+ onClick={() => {
+ fetch(DemoDataAssets[data.key]).then(res => res.json())
+ .then(res => {
+ commonStore.updateTempSTDDS({
+ dataSource: res.dataSource,
+ rawFields: res.fields.map(f => ({
+ fid: f.fid,
+ name: f.name,
+ analyticType: f.analyticType,
+ semanticType: f.semanticType,
+ dataType: f.dataType || '?'
+ })),
+ name: data.title
+ })
+ })
+ }}
+ className="border rounded border-gray-400 p-2 m-2 cursor-pointer hover:bg-gray-50"
+ >
+ <div>{data.title}</div>
+ {/* <p>{data.title}</p> */}
+ </div>)
+ }
+ </div>
+ <hr className="m-1" />
+ <button className="inline-block min-w-96 text-xs mr-2 pt-1 pb-1 pl-6 pr-6 bg-yellow-600 rounded-sm hover:bg-yellow-500 text-white font-bold disabled:bg-gray-300"
+ disabled={tmpDataSource.length === 0}
+ onClick={() => { commonStore.commitTempDS() }}
+ >
+ {t('submit')}
+ </button>
+ <hr className="m-1" />
+ <Table />
+ </div>
+}
+
+export default observer(PublicData);
diff --git a/src/dataSource/index.tsx b/src/dataSource/index.tsx
new file mode 100644
index 00000000..515d4ea9
--- /dev/null
+++ b/src/dataSource/index.tsx
@@ -0,0 +1,58 @@
+import { observer } from 'mobx-react-lite';
+import React from 'react';
+import { Container } from '../components/container';
+import Modal from '../components/modal';
+// import DataSourcePanel from './pannel';
+import DataSelection from './dataSelection';
+import { useGlobalStore } from '../store';
+import { CheckCircleIcon, ArrowPathIcon } from '@heroicons/react/24/outline';
+import { useTranslation } from 'react-i18next';
+
+interface DSSegmentProps {
+ preWorkDone: boolean;
+}
+
+const DataSourceSegment: React.FC<DSSegmentProps> = props => {
+ const { preWorkDone } = props;
+ const { commonStore } = useGlobalStore();
+ const { t } = useTranslation();
+
+ const { currentDataset, datasets, showDSPanel } = commonStore;
+
+ return <Container className="flex flex-row items-stretch">
+ {!preWorkDone && <div className="animate-spin inline-block mr-2 ml-2 w-4 h-4 rounded-full border-t-2 border-l-2 border-blue-500"></div>}
+ <label className="text-xs mr-1 whitespace-nowrap self-center h-4">
+ {t('DataSource.labels.cur_dataset')}
+ </label>
+ <select
+ className="border border-gray-500 rounded-sm text-xs pt-0.5 pb-0.5 pl-2 pr-2"
+ value={currentDataset.id}
+ onChange={(e) => { commonStore.useDS(e.target.value); }}
+ >
+ {datasets.map((ds) => (
+ <option value={ds.id} key={ds.id}>
+ {ds.name}
+ </option>
+ ))}
+ </select>
+
+ <button className="inline-block min-w-96 text-xs ml-2 pt-1 pb-1 pl-6 pr-6 border border-gray-500 rounded-sm hover:bg-gray-200"
+ onClick={() => { commonStore.startDSBuildingTask() }}
+ >
+ {t('DataSource.buttons.create_dataset')}
+ </button>
+ {showDSPanel && (
+ <Modal
+ title={t('DataSource.dialog.create_data_source')}
+ onClose={() => { commonStore.setShowDSPanel(false) }}
+ >
+ <DataSelection />
+ {/* <DataSourcePanel /> */}
+ </Modal>
+ )}
+ { preWorkDone && <CheckCircleIcon className="text-green-500 w-5 inline-block ml-2" /> }
+ { !preWorkDone && <ArrowPathIcon className="text-yellow-500 w-5 inline-block ml-2" />}
+ </Container>
+}
+
+export default observer(DataSourceSegment);
\ No newline at end of file
diff --git a/src/dataSource/pannel.tsx b/src/dataSource/pannel.tsx
new file mode 100644
index 00000000..9e9c69d8
--- /dev/null
+++ b/src/dataSource/pannel.tsx
@@ -0,0 +1,71 @@
+import React, { useRef, useCallback } from 'react';
+import { FileReader } from '@kanaries/web-data-loader';
+import { Record } from '../interfaces';
+import Table from './table';
+import styled from 'styled-components';
+import { useGlobalStore } from '../store';
+import { observer } from 'mobx-react-lite';
+
+const Container = styled.div`
+ overflow-x: auto;
+`;
+
+interface DSPanelProps {
+}
+const DataSourcePanel: React.FC<DSPanelProps> = props => {
+ const fileRef = useRef<HTMLInputElement>(null);
+ const { commonStore } = useGlobalStore();
+ const { tmpDSName, tmpDataSource } = commonStore;
+
+ const onSubmitData = useCallback(() => {
+ commonStore.commitTempDS();
+ }, [])
+ return (
+ <Container>
+ <input
+ style={{ display: 'none' }}
+ type="file"
+ ref={fileRef}
+ onChange={(e) => {
+ const files = e.target.files;
+ if (files !== null) {
+ const file = files[0];
+ FileReader.csvReader({
+ file,
+ config: { type: 'reservoirSampling', size: Infinity },
+ onLoading: () => {}
+ }).then((data) => {
+ commonStore.updateTempDS(data as Record[]);
+ });
+ }
+ }}
+ />
+ <div className="mt-1 mb-1">
+ <button className="inline-block min-w-96 text-xs mr-2 pt-1 pb-1 pl-6 pr-6 border border-gray-500 rounded-sm cursor-pointer hover:bg-gray-200"
+ onClick={() => { if (fileRef.current) { fileRef.current.click(); }}}
+ >
+ 上传数据
+ </button>
+ <button className="inline-block min-w-96 text-xs mr-2 pt-1 pb-1 pl-6 pr-6 bg-yellow-600 rounded-sm hover:bg-yellow-500 text-white font-bold disabled:bg-gray-300"
+ disabled={tmpDataSource.length === 0}
+ onClick={() => { onSubmitData(); }}
+ >
+ 确认
+ </button>
+ </div>
+ <div className="mt-1 mb-1">
+ <label className="block text-xs text-gray-800">数据集名称</label>
+ <input type="text" placeholder="数据集名称"
+ value={tmpDSName}
+ onChange={e => {
+ commonStore.updateTempName(e.target.value)
+ }}
+ className="text-xs p-1 border border-gray-300 outline-none focus:outline-none focus:border-blue-500"
+ />
+ </div>
+ <Table />
+ </Container>
+ );
+}
+
+export default observer(DataSourcePanel);
diff --git a/src/dataSource/table.tsx b/src/dataSource/table.tsx
new file mode 100644
index 00000000..143ba78c
--- /dev/null
+++ b/src/dataSource/table.tsx
@@ -0,0 +1,117 @@
+import React from 'react';
+import { IMutField } from '../interfaces';
+import styled from 'styled-components';
+import { observer } from 'mobx-react-lite';
+import { useGlobalStore } from '../store';
+import DataTypeIcon from '../components/dataTypeIcon';
+
+interface TableProps {
+ size?: number;
+}
+const Container = styled.div`
+ overflow-x: auto;
+ table {
+ box-sizing: content-box;
+ font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
+ border-collapse: collapse;
+ font-size: 12px;
+ thead {
+ th {
+ text-align: left;
+ border: 1px solid #f5f5f5;
+ padding: 12px;
+ background-color: #f7f7f7;
+ margin: 2px;
+ white-space: nowrap;
+ }
+ th.number {
+ border-top: 3px solid #5cdbd3;
+ }
+ th.text {
+ border-top: 3px solid #69c0ff;
+ }
+ }
+ tbody {
+ td {
+ border: 1px solid #f5f5f5;
+ padding: 4px 12px;
+ color: #434343;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
+ td.number {
+ text-align: right;
+ }
+ td.text {
+ text-align: left;
+ }
+ }
+ }
+`;
+const TYPE_LIST = [
+ {
+ value: 'dimension',
+ label: '维度'
+ },
+ {
+ value: 'measure',
+ label: '度量'
+ }
+];
+// function getCellType(field: IMutField): 'number' | 'text' {
+// return field.dataType === 'number' || field.dataType === 'integer' ? 'number' : 'text';
+// }
+function getHeaderType(field: IMutField): 'number' | 'text' {
+ return field.analyticType === 'dimension'? 'text' : 'number';
+}
+
+const Table: React.FC<TableProps> = props => {
+ const { size = 10 } = props;
+ const { commonStore } = useGlobalStore();
+ const { tmpDSRawFields, tmpDataSource } = commonStore;
+
+ return (
+ <Container>
+ <table>
+ <thead>
+ <tr>
+ {tmpDSRawFields.map((field, fIndex) => (
+ <th key={field.fid} className={getHeaderType(field)}>
+ {/* <DataTypeIcon dataType={field.dataType} /> <b>{field.key}</b> */}
+ <div>
+ <select
+ className="border-b border-gray-300 hover:bg-gray-100 hover:border-gray-600"
+ value={field.analyticType} onChange={(e) => {
+ commonStore.updateTempFieldAnalyticType(field.fid, e.target.value as IMutField['analyticType'])
+ }}>
+ {
+ TYPE_LIST.map(type => <option key={type.value} value={type.value}>{type.label}</option>)
+ }
+ </select>
+ </div>
+
+ </th>
+ ))}
+ </tr>
+ </thead>
+ <tbody>
+ {tmpDataSource.slice(0, size).map((record, index) => (
+ <tr key={index}>
+ {tmpDSRawFields.map((field) => (
+ <td
+ key={field.fid + index}
+ // className={getCellType(field)}
+ >
+ {record[field.fid]}
+ </td>
+ ))}
+ </tr>
+ ))}
+ </tbody>
+ </table>
+ </Container>
+ );
+}
+
+export default observer(Table);
diff --git a/src/dataSource/utils.ts b/src/dataSource/utils.ts
new file mode 100644
index 00000000..67ca7710
--- /dev/null
+++ b/src/dataSource/utils.ts
@@ -0,0 +1,47 @@
+import { IRow, IMutField } from '../interfaces';
+import { Insight } from 'visual-insights';
+
+export function transData(dataSource: IRow[]): {
+ dataSource: IRow[];
+ fields: IMutField[]
+} {
+ if (dataSource.length === 0) return {
+ dataSource: [],
+ fields: []
+ };
+ let ans: IRow[] = [];
+ const keys = Object.keys(dataSource[0]);
+ // TODO: 冗余设计,单变量统计被进行了多次重复计算。另外对于这种不完整的分析任务,不建议使用VIEngine。
+ const vie = new Insight.VIEngine();
+ vie.setData(dataSource)
+ .setFields(keys.map(k => ({
+ key: k,
+ analyticType: '?',
+ dataType: '?',
+ semanticType: '?'
+ })))
+ // TODO: 结合上面的TODO,讨论,VIEngine是否要提供不需要进行univarSelection就提供summary的接口。
+ // 这里我们使用了一种非原API设计时期待的用法,即强制指定单变量选择时要全选字段。但我们无法阻止对变量的转换。
+ vie.univarSelection('percent', 1);
+ const fields = vie.fields;
+ for (let record of dataSource) {
+ const newRecord: IRow = {};
+ for (let field of fields) {
+ if (field.dataType === 'number' || field.dataType === 'integer') {
+ newRecord[field.key] = Number(record[field.key])
+ } else {
+ newRecord[field.key] = record[field.key]
+ }
+ }
+ ans.push(newRecord);
+ }
+ return {
+ dataSource: ans,
+ fields: fields.map(f => ({
+ fid: f.key,
+ analyticType: f.analyticType,
+ dataType: f.dataType,
+ semanticType: f.semanticType
+ }))
+ }
+}
\ No newline at end of file
diff --git a/src/fields/aestheticFields.tsx b/src/fields/aestheticFields.tsx
new file mode 100644
index 00000000..1916a219
--- /dev/null
+++ b/src/fields/aestheticFields.tsx
@@ -0,0 +1,26 @@
+import React from 'react';
+import {
+ Droppable,
+} from "react-beautiful-dnd";
+import { DRAGGABLE_STATE_KEYS } from './fieldsContext';
+import { AestheticFieldContainer } from './components'
+
+import OBFieldContainer from './obComponents/obFContainer';
+
+const aestheticFields = DRAGGABLE_STATE_KEYS.filter(f => ['color', 'opacity', 'size', 'shape'].includes(f.id));
+
+const AestheticFields: React.FC = props => {
+ return <div>
+ {
+ aestheticFields.map(dkey => <AestheticFieldContainer name={dkey.id} key={dkey.id}>
+ <Droppable droppableId={dkey.id} direction="horizontal">
+ {(provided, snapshot) => (
+ <OBFieldContainer dkey={dkey} provided={provided} />
+ )}
+ </Droppable>
+ </AestheticFieldContainer>)
+ }
+ </div>
+}
+
+export default AestheticFields;
\ No newline at end of file
diff --git a/src/fields/components.tsx b/src/fields/components.tsx
new file mode 100644
index 00000000..1b9f875a
--- /dev/null
+++ b/src/fields/components.tsx
@@ -0,0 +1,158 @@
+import React from "react";
+import styled from "styled-components";
+import { COLORS } from "../config";
+import { useTranslation } from 'react-i18next';
+
+
+export const AestheticSegment = styled.div`
+ border: 1px solid #dfe3e8;
+ font-size: 12px;
+ margin: 0.2em;
+
+ .aes-header{
+ border-bottom: 1px solid #dfe3e8;
+ padding: 0.6em;
+ h4 {
+ font-weight: 400;
+ }
+ }
+ .aes-container{
+
+ }
+
+`
+
+export const FieldListContainer: React.FC<{ name: string }> = (props) => {
+ const { t } = useTranslation('translation', { keyPrefix: 'constant.draggable_key' });
+
+ return (
+ <FieldListSegment>
+ <div className="fl-header">
+ <h4>{t(props.name)}</h4>
+ </div>
+ <div className="fl-container">{props.children}</div>
+ </FieldListSegment>
+ );
+};
+
+export const AestheticFieldContainer: React.FC<{ name: string }> = props => {
+ const { t } = useTranslation('translation', { keyPrefix: 'constant.draggable_key' });
+
+ return (
+ <AestheticSegment>
+ <div className="aes-header cursor-default select-none">
+ <h4>{t(props.name)}</h4>
+ </div>
+ <div className="aes-container">{props.children}</div>
+ </AestheticSegment>
+ );
+}
+
+export const FilterFieldContainer: React.FC = props => {
+ const { t } = useTranslation('translation', { keyPrefix: 'constant.draggable_key' });
+
+ return (
+ <FilterFieldSegment>
+ <div className="flt-header cursor-default select-none">
+ <h4>{t('filters')}</h4>
+ </div>
+ <div className="flt-container">{props.children}</div>
+ </FilterFieldSegment>
+ );
+}
+
+export const FieldsContainer = styled.div`
+ display: flex;
+ padding: 0.2em;
+ min-height: 2.4em;
+ flex-wrap: wrap;
+ >div{
+ margin: 1px;
+ }
+`;
+
+export const FilterFieldsContainer = styled.div({
+ display: 'flex',
+ flexDirection: 'column',
+ paddingBlock: '0.5em 0.8em',
+ paddingInline: '0.2em',
+ minHeight: '4em',
+ '> div': {
+ marginBlock: '0.3em',
+ marginInline: '1px',
+ },
+});
+
+export const FieldListSegment = styled.div`
+ display: flex;
+ border: 1px solid #dfe3e8;
+ margin: 0.2em;
+ font-size: 12px;
+ div.fl-header {
+ /* flex-basis: 100px; */
+ width: 100px;
+ border-right: 1px solid #dfe3e8;
+ flex-shrink: 0;
+ h4 {
+ margin: 0.6em;
+ font-weight: 400;
+ }
+ }
+ div.fl-container {
+ flex-grow: 10;
+ /* display: flex;
+ flex-wrap: wrap; */
+ /* overflow-x: auto;
+ overflow-y: hidden; */
+ }
+`;
+
+export const FilterFieldSegment = styled.div({
+ border: '1px solid #dfe3e8',
+ fontSize: '12px',
+ margin: '0.2em',
+
+ '.flt-header': {
+ borderBottom: '1px solid #dfe3e8',
+ padding: '0.6em',
+
+ '> h4': {
+ fontWeight: 400,
+ },
+ },
+
+ '.flt-container': {
+
+ },
+});
+
+export const Pill = styled.div<{colType: 'discrete' | 'continuous'}>`
+ background-color: ${props => props.colType === 'continuous' ? COLORS.white : COLORS.black};
+ border-color: ${props => props.colType === 'continuous' ? COLORS.black : COLORS.white};
+ color: ${props => props.colType === 'continuous' ? COLORS.black : COLORS.white};
+ -moz-user-select: none;
+ -ms-user-select: none;
+ -webkit-align-items: center;
+ -webkit-user-select: none;
+ align-items: center;
+ border-radius: 10px;
+ border-style: solid;
+ border-width: 1px;
+ box-sizing: border-box;
+ cursor: default;
+ display: -webkit-flex;
+ display: flex;
+ font-size: 12px;
+ height: 20px;
+ min-width: 150px;
+ overflow-y: hidden;
+ padding: 0 10px;
+ user-select: none;
+ /* --tw-ring-offset-shadow: 0 0 #0000;
+ --tw-ring-shadow: 0 0 #0000;
+ --tw-shadow-color: rgb(6 182 212/0.5);
+ --tw-shadow: var(--tw-shadow-colored);
+ --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);
+ box-shadow: var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow); */
+`
+
diff --git a/src/fields/datasetFields/dimFields.tsx b/src/fields/datasetFields/dimFields.tsx
new file mode 100644
index 00000000..978c2409
--- /dev/null
+++ b/src/fields/datasetFields/dimFields.tsx
@@ -0,0 +1,45 @@
+import React from 'react';
+import { Draggable, DroppableProvided } from 'react-beautiful-dnd';
+import { observer } from 'mobx-react-lite';
+import { useGlobalStore } from '../../store';
+import DataTypeIcon from '../../components/dataTypeIcon';
+import { FieldPill } from './fieldPill';
+
+interface Props {
+ provided: DroppableProvided;
+}
+const DimFields: React.FC<Props> = props => {
+ const { provided } = props;
+ const { vizStore } = useGlobalStore();
+ const dimensions = vizStore.draggableFieldState.dimensions;
+ return <div {...provided.droppableProps} ref={provided.innerRef}>
+ {dimensions.map((f, index) => (
+ <Draggable key={f.dragId} draggableId={f.dragId} index={index}>
+ {(provided, snapshot) => {
+ return (
+ <>
+ <FieldPill
+ className="pt-0.5 pb-0.5 pl-2 pr-2 m-1 text-xs hover:bg-blue-100 rounded-full truncate"
+ ref={provided.innerRef}
+ isDragging={snapshot.isDragging}
+ {...provided.draggableProps}
+ {...provided.dragHandleProps}
+ >
+ <DataTypeIcon dataType={f.semanticType} analyticType={f.analyticType} /> {f.name}&nbsp;
+ </FieldPill>
+ {
+ <FieldPill className={`pt-0.5 pb-0.5 pl-2 pr-2 m-1 text-xs hover:bg-blue-100 rounded-full border-blue-400 border truncate ${snapshot.isDragging ? '' : 'hidden'}`}
+ isDragging={snapshot.isDragging}
+ >
+ <DataTypeIcon dataType={f.semanticType} analyticType={f.analyticType} /> {f.name}&nbsp;
+ </FieldPill>
+ }
+ </>
+ );
+ }}
+ </Draggable>
+ ))}
+ </div>
+}
+
+export default observer(DimFields);
diff --git a/src/fields/datasetFields/fieldPill.tsx b/src/fields/datasetFields/fieldPill.tsx
new file mode 100644
index 00000000..51694936
--- /dev/null
+++ b/src/fields/datasetFields/fieldPill.tsx
@@ -0,0 +1,10 @@
+import styled from 'styled-components';
+
+/**
+ * react-beautiful-dnd v13.1.0 bug
+ * https://github.com/atlassian/react-beautiful-dnd/issues/2361
+ */
+export const FieldPill = styled.div<{isDragging: boolean}>`
+ transform: ${props => !props.isDragging && 'translate(0px, 0px) !important'};
+ user-select: none;
+`
\ No newline at end of file
diff --git a/src/fields/datasetFields/index.tsx b/src/fields/datasetFields/index.tsx
new file mode 100644
index 00000000..a4f8ff07
--- /dev/null
+++ b/src/fields/datasetFields/index.tsx
@@ -0,0 +1,117 @@
+import React from 'react';
+import { NestContainer } from '../../components/container'
+import { observer } from 'mobx-react-lite';
+import {
+ Droppable,
+ Draggable,
+} from "react-beautiful-dnd";
+import { useTranslation } from 'react-i18next';
+
+import { useGlobalStore } from '../../store';
+import DataTypeIcon from '../../components/dataTypeIcon';
+import { IViewField, DraggableFieldState } from '../../interfaces';
+import DimFields from './dimFields';
+import MeaFields from './meaFields';
+
+const FIELDS_KEY: keyof DraggableFieldState = 'fields';
+
+const DatasetFields: React.FC = props => {
+ const { t } = useTranslation('translation', { keyPrefix: 'main.tabpanel.DatasetFields' });
+
+ const { vizStore } = useGlobalStore();
+ const { draggableFieldState } = vizStore;
+ const { fields } = draggableFieldState;
+
+ const dimensions: IViewField[] = [];
+ const measures: IViewField[] = [];
+ const dimOriginIndices: number[] = [];
+ const meaOriginIndices: number[] = [];
+
+ for (let i = 0; i < fields.length; i++) {
+ if (fields[i].analyticType === 'dimension') {
+ dimensions.push(fields[i]);
+ dimOriginIndices.push(i)
+ } else {
+ measures.push(fields[i])
+ meaOriginIndices.push(i);
+ }
+ }
+
+ return <NestContainer className="flex flex-col" style={{ height: '680px', paddingBlock: 0 }}>
+ <h4 className="text-xs mb-2 flex-grow-0 cursor-default select-none mt-2">
+ {t('field_list')}
+ </h4>
+ <div className="pd-1 overflow-y-auto" style={{ maxHeight: '380px'}}>
+ <Droppable droppableId="dimensions" direction="vertical">
+ {
+ (provided, snapshot) => <DimFields provided={provided} />
+ }
+ </Droppable>
+ </div>
+ <div className="border-t flex-grow pd-1 overflow-y-auto">
+ <Droppable droppableId="measures" direction="vertical">
+ {
+ (provided, snapshot) => <MeaFields provided={provided} />
+ }
+ </Droppable>
+ </div>
+ {/* <Droppable droppableId={FIELDS_KEY} direction="vertical" isDropDisabled={true}>
+ {(provided, snapshot) => (
+ <div
+ {...provided.droppableProps}
+ ref={provided.innerRef}
+ >
+ {dimensions.map((f, index) => (
+ <Draggable key={f.dragId} draggableId={f.dragId} index={dimOriginIndices[index]}>
+ {(provided, snapshot) => {
+ return (
+ <>
+ <div
+ className="pt-0.5 pb-0.5 pl-2 pr-2 m-1 text-xs hover:bg-blue-100 rounded-full"
+ ref={provided.innerRef}
+ {...provided.draggableProps}
+ {...provided.dragHandleProps}
+ >
+ <DataTypeIcon dataType="string" /> {f.name}&nbsp;
+ </div>
+ {
+ <div className={`pt-0.5 pb-0.5 pl-2 pr-2 m-1 text-xs hover:bg-blue-100 rounded-full border-blue-400 border ${snapshot.isDragging ? '' : 'hidden'}`}>
+ <DataTypeIcon dataType="string" /> {f.name}&nbsp;
+ </div>
+ }
+ </>
+ );
+ }}
+ </Draggable>
+ ))}
+ {measures.map((f, index) => (
+ <Draggable key={f.dragId} draggableId={f.dragId} index={meaOriginIndices[index]}>
+ {(provided, snapshot) => {
+ return (
+ <>
+ <div
+ className="pt-0.5 pb-0.5 pl-2 pr-2 m-1 text-xs hover:bg-blue-100 rounded-full"
+ ref={provided.innerRef}
+ {...provided.draggableProps}
+ {...provided.dragHandleProps}
+ >
+ <DataTypeIcon dataType="number" /> {f.name}&nbsp;
+ </div>
+ {
+ snapshot.isDragging && <div className="pt-0.5 pb-0.5 pl-2 pr-2 m-1 text-xs hover:bg-blue-100 rounded-full border-blue-400 border">
+ <DataTypeIcon dataType="number" /> {f.name}&nbsp;
+ </div>
+ }
+ </>
+ );
+ }}
+ </Draggable>
+ ))}
+ {provided.placeholder}
+ </div>
+ )}
+ </Droppable> */}
+ </NestContainer>
+}
+
+export default observer(DatasetFields);
\ No newline at end of file
diff --git a/src/fields/datasetFields/meaFields.tsx b/src/fields/datasetFields/meaFields.tsx
new file mode 100644
index 00000000..23aca795
--- /dev/null
+++ b/src/fields/datasetFields/meaFields.tsx
@@ -0,0 +1,58 @@
+import React from 'react';
+import { Draggable, DroppableProvided } from 'react-beautiful-dnd';
+import { observer } from 'mobx-react-lite';
+import { useGlobalStore } from '../../store';
+import DataTypeIcon from '../../components/dataTypeIcon';
+import { FieldPill } from './fieldPill';
+
+interface Props {
+ provided: DroppableProvided;
+}
+const MeaFields: React.FC<Props> = props => {
+ const { provided } = props;
+ const { vizStore } = useGlobalStore();
+ const measures = vizStore.draggableFieldState.measures;
+ return <div {...provided.droppableProps} ref={provided.innerRef}>
+ {measures.map((f, index) => (
+ <Draggable key={f.dragId} draggableId={f.dragId} index={index}>
+ {(provided, snapshot) => {
+ return (
+ <>
+ <FieldPill
+ className="pt-0.5 pb-0.5 pl-2 pr-2 m-1 text-xs hover:bg-blue-100 rounded-full truncate"
+ isDragging={snapshot.isDragging}
+ ref={provided.innerRef}
+ {...provided.draggableProps}
+ {...provided.dragHandleProps}
+ >
+ <DataTypeIcon dataType={f.semanticType} analyticType={f.analyticType} /> {f.name}&nbsp;
+ {
+ f.fid && !snapshot.isDragging && <select className="bg-transparent text-gray-700 float-right focus:outline-none focus:border-gray-500" value="" onChange={e => {
+ if (e.target.value === 'bin') {
+ vizStore.createBinField('measures', index)
+ } else if (e.target.value === 'log10') {
+ vizStore.createLogField('measures', index)
+ }
+ }}>
+ <option value=""></option>
+ <option value="bin">bin</option>
+ <option value="log10">log10</option>
+ </select>
+ }
+ </FieldPill>
+ {
+ <FieldPill className={`pt-0.5 pb-0.5 pl-2 pr-2 m-1 text-xs hover:bg-blue-100 rounded-full border-blue-400 border truncate ${snapshot.isDragging ? '' : 'hidden'}`}
+ isDragging={snapshot.isDragging}
+ >
+ <DataTypeIcon dataType={f.semanticType} analyticType={f.analyticType} /> {f.name}&nbsp;
+ </FieldPill>
+ }
+ </>
+ );
+ }}
+ </Draggable>
+ ))}
+ </div>
+}
+
+export default observer(MeaFields);
diff --git a/src/fields/fieldsContext.tsx b/src/fields/fieldsContext.tsx
new file mode 100644
index 00000000..ed6f9917
--- /dev/null
+++ b/src/fields/fieldsContext.tsx
@@ -0,0 +1,59 @@
+import React, { useCallback } from 'react';
+import { DraggableFieldState, IDraggableStateKey } from '../interfaces';
+import {
+ DragDropContext,
+ DropResult,
+ ResponderProvided,
+ DraggableLocation,
+} from "react-beautiful-dnd";
+import { useGlobalStore } from '../store';
+window['__react-beautiful-dnd-disable-dev-warnings'] = true;
+
+
+export const FieldsContextWrapper: React.FC = props => {
+ const { vizStore } = useGlobalStore();
+ const onDragEnd = useCallback((result: DropResult, provided: ResponderProvided) => {
+ if (!result.destination) {
+ vizStore.removeField(result.source.droppableId as keyof DraggableFieldState, result.source.index)
+ return;
+ }
+ const destination = result.destination as DraggableLocation;
+ if (destination.droppableId === result.source.droppableId) {
+ if (destination.index === result.source.index) return;
+ vizStore.reorderField(destination.droppableId as keyof DraggableFieldState, result.source.index, destination.index);
+ } else {
+ let sourceKey = result.source
+ .droppableId as keyof DraggableFieldState;
+ let targetKey = destination
+ .droppableId as keyof DraggableFieldState;
+ vizStore.moveField(sourceKey, result.source.index, targetKey, destination.index)
+ }
+ }, [])
+ return <DragDropContext onDragEnd={onDragEnd}
+ onDragStart={() => {}}
+ onDragUpdate={() => {}}
+ >
+ { props.children }
+ </DragDropContext>
+}
+
+export default FieldsContextWrapper;
+
+export const DRAGGABLE_STATE_KEYS: Readonly<IDraggableStateKey[]> = [
+ { id: 'fields', mode: 0 },
+ { id: 'columns', mode: 0 },
+ { id: 'rows', mode: 0 },
+ { id: 'color', mode: 1 },
+ { id: 'opacity', mode: 1 },
+ { id: 'size', mode: 1 },
+ { id: 'shape', mode: 1},
+ { id: 'theta', mode: 1 },
+ { id: 'radius', mode: 1 },
+ { id: 'filters', mode: 1 },
+] as const;
+
+export const AGGREGATOR_LIST: Readonly<string[]> = [
+ 'sum',
+ 'mean',
+ 'count',
+] as const;
diff --git a/src/fields/filterField/filterEditDialog.tsx b/src/fields/filterField/filterEditDialog.tsx
new file mode 100644
index 00000000..02fdaa78
--- /dev/null
+++ b/src/fields/filterField/filterEditDialog.tsx
@@ -0,0 +1,143 @@
+import { CheckCircleIcon } from '@heroicons/react/24/outline';
+import { observer } from 'mobx-react-lite';
+import React from 'react';
+import { useTranslation } from 'react-i18next';
+
+import Modal from '../../components/modal';
+import type { IFilterField, IFilterRule } from '../../interfaces';
+import { useGlobalStore } from '../../store';
+import Tabs, { RuleFormProps } from './tabs';
+
+
+const QuantitativeRuleForm: React.FC<RuleFormProps> = ({
+ field,
+ onChange,
+}) => {
+ return (
+ <Tabs
+ field={field}
+ onChange={onChange}
+ tabs={['range', 'one of']}
+ />
+ );
+};
+
+const NominalRuleForm: React.FC<RuleFormProps> = ({
+ field,
+ onChange,
+}) => {
+ return (
+ <Tabs
+ field={field}
+ onChange={onChange}
+ tabs={['one of']}
+ />
+ );
+};
+
+const OrdinalRuleForm: React.FC<RuleFormProps> = ({
+ field,
+ onChange,
+}) => {
+ return (
+ <Tabs
+ field={field}
+ onChange={onChange}
+ tabs={['range', 'one of']}
+ />
+ );
+};
+
+const TemporalRuleForm: React.FC<RuleFormProps> = ({
+ field,
+ onChange,
+}) => {
+ return (
+ <Tabs
+ field={field}
+ onChange={onChange}
+ tabs={['one of', 'temporal range']}
+ />
+ );
+};
+
+const EmptyForm: React.FC<RuleFormProps> = () => <React.Fragment />;
+
+const FilterEditDialog: React.FC = observer(() => {
+ const { vizStore } = useGlobalStore();
+ const { editingFilterIdx, draggableFieldState } = vizStore;
+
+ const { t } = useTranslation('translation', { keyPrefix: 'filters' });
+
+ const field = React.useMemo(() => {
+ return editingFilterIdx !== null ? draggableFieldState.filters[editingFilterIdx] : null;
+ }, [editingFilterIdx, draggableFieldState]);
+
+ const [uncontrolledField, setUncontrolledField] = React.useState(field as IFilterField | null);
+ const ufRef = React.useRef(uncontrolledField);
+ ufRef.current = uncontrolledField;
+
+ React.useEffect(() => {
+ if (field !== ufRef.current) {
+ setUncontrolledField(field);
+ }
+ }, [field]);
+
+ const handleChange = React.useCallback((r: IFilterRule) => {
+ if (editingFilterIdx !== null) {
+ setUncontrolledField(uf => ({
+ ...uf,
+ rule: r,
+ }) as IFilterField);
+ }
+ }, [editingFilterIdx]);
+
+ const handleSubmit = React.useCallback(() => {
+ if (editingFilterIdx !== null) {
+ vizStore.writeFilter(editingFilterIdx, uncontrolledField?.rule ?? null);
+ }
+
+ vizStore.closeFilterEditing();
+ }, [editingFilterIdx, uncontrolledField]);
+
+ const Form = field ? ({
+ quantitative: QuantitativeRuleForm,
+ nominal: NominalRuleForm,
+ ordinal: OrdinalRuleForm,
+ temporal: TemporalRuleForm,
+ }[field.semanticType] as React.FC<RuleFormProps>) : EmptyForm;
+
+ return uncontrolledField ? (
+ <Modal
+ title={t('editing')}
+ onClose={() => vizStore.closeFilterEditing()}
+ >
+ <header className="text-lg font-semibold py-2 outline-none">
+ {t('form.name')}
+ </header>
+ <input className="border py-1 px-4" readOnly value={uncontrolledField.name}/>
+ <header className="text-lg font-semibold py-2 outline-none">
+ {t('form.rule')}
+ </header>
+ <Form
+ field={uncontrolledField}
+ onChange={handleChange}
+ />
+ <div className="flex justify-center text-green-500 mt-4">
+ <CheckCircleIcon
+ width="3em"
+ height="3em"
+ role="button"
+ tabIndex={0}
+ aria-label="ok"
+ className="cursor-pointer hover:bg-green-50 p-1"
+ onClick={handleSubmit}
+ strokeWidth="1.5"
+ />
+ </div>
+ </Modal>
+ ) : null;
+});
+
+
+export default FilterEditDialog;
diff --git a/src/fields/filterField/filterPill.tsx b/src/fields/filterField/filterPill.tsx
new file mode 100644
index 00000000..f3e43dff
--- /dev/null
+++ b/src/fields/filterField/filterPill.tsx
@@ -0,0 +1,113 @@
+import { observer } from 'mobx-react-lite';
+import React from 'react';
+import { DraggableProvided } from "react-beautiful-dnd";
+import { useGlobalStore } from '../../store';
+import { useTranslation } from 'react-i18next';
+import styled from 'styled-components';
+import { PencilSquareIcon } from '@heroicons/react/24/solid';
+
+
+interface FilterPillProps {
+ provided: DraggableProvided;
+ fIndex: number;
+}
+
+const Pill = styled.div({
+ userSelect: 'none',
+ alignItems: 'stretch',
+ borderStyle: 'solid',
+ borderWidth: '1px',
+ boxSizing: 'border-box',
+ cursor: 'default',
+ display: 'flex',
+ flexDirection: 'column',
+ fontSize: '12px',
+ minWidth: '150px',
+ overflowY: 'hidden',
+ padding: 0,
+
+ '> *': {
+ flexGrow: 1,
+ paddingBlock: '0.2em',
+ paddingInline: '0.5em',
+ },
+
+ '> header': {
+ height: '20px',
+ borderBottomWidth: '1px',
+ },
+ '> div.output': {
+ minHeight: '20px',
+
+ '> span': {
+ overflowY: 'hidden',
+ maxHeight: '4em',
+ },
+ },
+
+ '> .output .icon': {
+ display: 'none',
+ },
+ '> .output:hover .icon': {
+ display: 'unset',
+ },
+});
+
+const FilterPill: React.FC<FilterPillProps> = observer(props => {
+ const { provided, fIndex } = props;
+ const { vizStore } = useGlobalStore();
+ const { draggableFieldState } = vizStore;
+
+ const field = draggableFieldState.filters[fIndex];
+
+ const { t } = useTranslation('translation', { keyPrefix: 'filters' });
+
+ return (
+ <Pill
+ className="text-gray-900"
+ ref={provided.innerRef}
+ {...provided.draggableProps}
+ {...provided.dragHandleProps}
+ >
+ <header className="bg-indigo-50">
+ {field.name}
+ </header>
+ <div
+ className="bg-white text-gray-500 hover:bg-gray-100 flex flex-row output"
+ onClick={() => vizStore.setFilterEditing(fIndex)}
+ style={{ cursor: 'pointer' }}
+ title={t('to_edit')}
+ >
+ {
+ field.rule ? (
+ <span className="flex-1">
+ {
+ field.rule.type === 'one of' ? (
+ `oneOf: [${[...field.rule.value].map(d => JSON.stringify(d)).join(', ')}]`
+ ) : field.rule.type === 'range' ? (
+ `range: [${field.rule.value[0]}, ${field.rule.value[1]}]`
+ ) : field.rule.type === 'temporal range' ? (
+ `range: [${new Date(field.rule.value[0])}, ${new Date(field.rule.value[1])}]`
+ ) : null
+ }
+ </span>
+ ) : (
+ <span className="text-gray-600 flex-1">
+ {t('empty_rule')}
+ </span>
+ )
+ }
+ <PencilSquareIcon
+ className="icon flex-grow-0 flex-shrink-0 pointer-events-none text-gray-500"
+ role="presentation"
+ aria-hidden
+ width="1.4em"
+ height="1.4em"
+ />
+ </div>
+ </Pill>
+ );
+});
+
+
+export default FilterPill;
diff --git a/src/fields/filterField/index.tsx b/src/fields/filterField/index.tsx
new file mode 100644
index 00000000..690b1f1f
--- /dev/null
+++ b/src/fields/filterField/index.tsx
@@ -0,0 +1,61 @@
+import { observer } from 'mobx-react-lite';
+import React from 'react';
+import {
+ Draggable,
+ Droppable, DroppableProvided,
+} from "react-beautiful-dnd";
+
+import { useGlobalStore } from '../../store';
+import { FilterFieldContainer, FilterFieldsContainer } from '../components';
+import FilterPill from './filterPill';
+import FilterEditDialog from './filterEditDialog';
+
+
+interface FieldContainerProps {
+ provided: DroppableProvided;
+}
+
+const FilterItemContainer: React.FC<FieldContainerProps> = observer(({ provided }) => {
+ const { vizStore } = useGlobalStore();
+ const { draggableFieldState: { filters } } = vizStore;
+
+ return (
+ <FilterFieldsContainer
+ {...provided.droppableProps}
+ ref={provided.innerRef}
+ >
+ {filters.map((f, index) => (
+ <Draggable key={f.dragId} draggableId={f.dragId} index={index}>
+ {(provided, snapshot) => {
+ return (
+ <FilterPill
+ fIndex={index}
+ provided={provided}
+ />
+ );
+ }}
+ </Draggable>
+ ))}
+ {provided.placeholder}
+ <FilterEditDialog />
+ </FilterFieldsContainer>
+ );
+});
+
+const FilterField: React.FC = () => {
+ return (
+ <div>
+ <FilterFieldContainer>
+ <Droppable droppableId="filters" direction="vertical">
+ {(provided, snapshot) => (
+ <FilterItemContainer
+ provided={provided}
+ />
+ )}
+ </Droppable>
+ </FilterFieldContainer>
+ </div>
+ );
+};
+
+export default FilterField;
\ No newline at end of file
diff --git a/src/fields/filterField/slider.tsx b/src/fields/filterField/slider.tsx
new file mode 100644
index 00000000..580dfb1b
--- /dev/null
+++ b/src/fields/filterField/slider.tsx
@@ -0,0 +1,237 @@
+import React from 'react';
+import styled from 'styled-components';
+import { filter, fromEvent, map, throttleTime } from 'rxjs';
+
+
+const SliderContainer = styled.div({
+ display: 'flex',
+ flexDirection: 'column',
+ alignItems: 'stretch',
+ justifyContent: 'stretch',
+ overflow: 'hidden',
+ paddingBlock: '1em',
+
+ '> .output': {
+ display: 'flex',
+ flexDirection: 'row',
+ flexWrap: 'wrap',
+ alignItems: 'stretch',
+ justifyContent: 'space-between',
+
+ '> output': {
+ userSelect: 'none',
+ minWidth: '4em',
+ paddingInline: '0.5em',
+ textAlign: 'center',
+ },
+ },
+});
+
+const SliderElement = styled.div({
+ marginInline: '1em',
+ paddingBlock: '10px',
+ flexGrow: 1,
+ flexShrink: 1,
+ display: 'flex',
+ flexDirection: 'row',
+ alignItems: 'center',
+ justifyContent: 'stretch',
+});
+
+const SliderTrack = styled.div({
+ flexGrow: 1,
+ flexShrink: 1,
+ backgroundColor: '#ccc',
+ border: '1px solid #aaa',
+ height: '10px',
+ borderRadius: '5px',
+ position: 'relative',
+});
+
+const SliderThumb = styled.div({
+ position: 'absolute',
+ top: '50%',
+ cursor: 'ew-resize',
+ backgroundColor: '#e2e2e2',
+ backgroundImage: `
+ linear-gradient(#666, #666 4%, transparent 4%, transparent 96%, #666 95%),
+ linear-gradient(90deg, #666, #666 10%, transparent 10%, transparent 90%, #666 90%)
+ `,
+ width: '10px',
+ height: '20px',
+ borderRadius: '2px',
+ outline: 'none',
+
+ ':hover': {
+ backgroundColor: '#fff',
+ },
+});
+
+const SliderSlice = styled.div({
+ backgroundColor: '#fff',
+ position: 'absolute',
+ height: '100%',
+ borderRadius: '5px',
+
+ ':hover': {
+ backgroundColor: '#fff',
+ },
+});
+
+
+const nicer = (range: readonly [number, number], value: number): string => {
+ const precision = /(\.\d*)$/.exec(((range[1] - range[0]) / 1000).toString())![0].length;
+
+ return value.toFixed(precision).replace(/\.?0+$/, '');
+};
+
+interface SliderProps {
+ min: number;
+ max: number;
+ value: readonly [number, number];
+ onChange: (value: readonly [number, number]) => void;
+ isDateTime?: boolean;
+}
+
+const Slider: React.FC<SliderProps> = React.memo(function Slider ({
+ min,
+ max,
+ value,
+ onChange,
+ isDateTime = false,
+}) {
+ const [dragging, setDragging] = React.useState<'left' | 'right' | null>(null);
+ const trackRef = React.useRef<HTMLDivElement | null>(null);
+ const sliceRef = React.useRef<HTMLDivElement | null>(null);
+
+ const range: typeof value = [
+ (value[0] - min) / ((max - min) || 1),
+ (value[1] - min) / ((max - min) || 1)
+ ];
+
+ const mouseOffsetRef = React.useRef(0);
+
+ React.useEffect(() => {
+ if (dragging) {
+ const stop = (ev?: MouseEvent) => {
+ setDragging(null);
+ ev?.stopPropagation();
+ };
+
+ const dragHandler = fromEvent(document.body, 'mousemove').pipe(
+ throttleTime(100),
+ map(ev => {
+ if (!trackRef.current || !dragging) {
+ return null;
+ }
+
+ if ((ev as MouseEvent).buttons !== 1) {
+ stop();
+
+ return null;
+ }
+
+ const { x, width } = trackRef.current.getBoundingClientRect();
+
+ const pos = Math.min(
+ dragging === 'left' ? range[1] : 1,
+ Math.max(
+ dragging === 'right' ? range[0] : 0,
+ ((ev as MouseEvent).clientX - mouseOffsetRef.current - x) / width
+ )
+ );
+
+ return pos;
+ }),
+ filter(pos => {
+ return pos !== null && pos !== range[dragging === 'left' ? 0 : 1];
+ }),
+ ).subscribe(pos => {
+ const next: [number, number] = [...range];
+ next[dragging === 'left' ? 0 : 1] = pos as number;
+
+ next[0] = next[0] * ((max - min) || 1) + min;
+ next[1] = next[1] * ((max - min) || 1) + min;
+
+ onChange(next);
+ });
+
+ document.body.addEventListener('mouseup', stop);
+
+ return () => {
+ document.body.removeEventListener('mouseup', stop);
+ dragHandler.unsubscribe();
+ };
+ }
+ }, [dragging, range, onChange, min, max]);
+
+ return (
+ <SliderContainer>
+ <div className="output">
+ <output htmlFor="slider:min">
+ {isDateTime ? `${new Date(value[0])}` : nicer([min, max], value[0])}
+ </output>
+ <output htmlFor="slider:max">
+ {isDateTime ? `${new Date(value[1])}` : nicer([min, max], value[1])}
+ </output>
+ </div>
+ <SliderElement>
+ <SliderTrack
+ ref={e => trackRef.current = e}
+ >
+ <SliderSlice
+ role="presentation"
+ ref={e => sliceRef.current = e}
+ style={{
+ left: `${range[0] * 100}%`,
+ width: `${(range[1] - range[0]) * 100}%`,
+ }}
+ />
+ <SliderThumb
+ role="slider"
+ aria-label="minimum"
+ id="slider:min"
+ aria-valuemin={min}
+ aria-valuemax={max}
+ aria-valuenow={value[0]}
+ aria-valuetext={isDateTime ? `${new Date(value[0])}` : nicer([min, max], value[0])}
+ tabIndex={-1}
+ onMouseDown={ev => {
+ if (ev.buttons === 1) {
+ mouseOffsetRef.current = ev.nativeEvent.offsetX;
+ setDragging('left');
+ }
+ }}
+ style={{
+ left: `${range[0] * 100}%`,
+ transform: 'translate(-100%, -50%)',
+ }}
+ />
+ <SliderThumb
+ role="slider"
+ aria-label="maximum"
+ id="slider:max"
+ aria-valuemin={min}
+ aria-valuemax={max}
+ aria-valuenow={value[1]}
+ aria-valuetext={isDateTime ? `${new Date(value[1])}` : nicer([min, max], value[1])}
+ tabIndex={-1}
+ onMouseDown={ev => {
+ if (ev.buttons === 1) {
+ mouseOffsetRef.current = ev.nativeEvent.offsetX;
+ setDragging('right');
+ }
+ }}
+ style={{
+ left: `${range[1] * 100}%`,
+ transform: 'translate(0, -50%)',
+ }}
+ />
+ </SliderTrack>
+ </SliderElement>
+ </SliderContainer>
+ );
+});
+
+
+export default Slider;
diff --git a/src/fields/filterField/tabs.tsx b/src/fields/filterField/tabs.tsx
new file mode 100644
index 00000000..56797e3e
--- /dev/null
+++ b/src/fields/filterField/tabs.tsx
@@ -0,0 +1,421 @@
+import { observer } from 'mobx-react-lite';
+import React from 'react';
+import { useTranslation } from 'react-i18next';
+import styled from 'styled-components';
+
+import type { IFilterField, IFilterRule } from '../../interfaces';
+import { useGlobalStore } from '../../store';
+import Slider from './slider';
+
+
+export type RuleFormProps = {
+ field: IFilterField;
+ onChange: (rule: IFilterRule) => void;
+};
+
+const Container = styled.div({
+ marginBlock: '1em',
+ marginInline: '2em',
+
+ '> .btn-grp': {
+ display: 'flex',
+ flexDirection: 'row',
+ marginBlock: '0.4em 0.6em',
+
+ '> *': {
+ marginInlineStart: '0.6em',
+
+ '&:first-child': {
+ marginInlineStart: 0,
+ },
+ },
+ },
+});
+
+export const Button = styled.button({
+ '&:hover': {
+ backgroundColor: 'rgba(243, 244, 246, 0.5)',
+ },
+ color: 'rgb(55, 65, 81)',
+ boxShadow: '1px 1px 2px #0002, inset 2px 2px 4px #0001',
+ paddingBlock: '0.2em',
+ paddingInline: '0.5em',
+ userSelect: 'none',
+ cursor: 'pointer',
+});
+
+const Table = styled.div({
+ display: 'grid',
+ gridTemplateColumns: '4em auto max-content',
+ maxHeight: '30vh',
+ overflowY: 'scroll',
+ '& > *': {
+ marginBlock: '2px',
+ paddingInline: '4px',
+ whiteSpace: 'nowrap',
+ overflow: 'hidden',
+ textOverflow: 'ellipsis',
+ userSelect: 'none',
+ },
+ '& > input, & > *[for]': {
+ cursor: 'pointer',
+ },
+});
+
+const TabsContainer = styled.div({
+ display: 'flex',
+ flexDirection: 'column',
+ alignItems: 'stretch',
+ justifyContent: 'stretch',
+});
+
+const TabList = styled.div({
+ display: 'flex',
+ flexDirection: 'row',
+ alignItems: 'stretch',
+ justifyContent: 'flex-start',
+ overflow: 'hidden',
+});
+
+const TabHeader = styled.label({
+ outline: 'none',
+ userSelect: 'none',
+ paddingBlock: '0.4em',
+ paddingInline: '1em 2em',
+ borderWidth: '1px',
+ borderRadius: '4px 4px 0 0',
+ position: 'relative',
+
+ '&[aria-selected]': {
+ borderBottomColor: '#0000',
+ zIndex: 15,
+ },
+ '&[aria-selected=false]': {
+ backgroundColor: '#f8f8f8',
+ borderBottomColor: '#e2e2e2',
+ cursor: 'pointer',
+ zIndex: 14,
+ },
+});
+
+const TabPanel = styled.div({});
+
+const TabItem = styled.div({});
+
+export const FilterOneOfRule: React.FC<RuleFormProps & { active: boolean }> = observer(({
+ active,
+ field,
+ onChange,
+}) => {
+ const { commonStore } = useGlobalStore();
+ const { currentDataset: { dataSource } } = commonStore;
+
+ const count = React.useMemo(() => {
+ return dataSource.reduce<Map<string | number, number>>((tmp, d) => {
+ const val = d[field.fid];
+
+ tmp.set(val, (tmp.get(val) ?? 0) + 1);
+
+ return tmp;
+ }, new Map<string | number, number>());
+ }, [dataSource, field]);
+
+ const { t } = useTranslation('translation', { keyPrefix: 'filters' });
+
+ React.useEffect(() => {
+ if (active && field.rule?.type !== 'one of') {
+ onChange({
+ type: 'one of',
+ value: new Set<string | number>(count.keys()),
+ });
+ }
+ }, [active, onChange, field, count]);
+
+ return field.rule?.type === 'one of' ? (
+ <Container>
+ <Table>
+ <label className="header">
+ {t('header.visibility')}
+ </label>
+ <label className="header">
+ {t('header.value')}
+ </label>
+ <label className="header">
+ {t('header.count')}
+ </label>
+ </Table>
+ <Table>
+ {
+ [...count.entries()].map(([value, count], idx) => {
+ const id = `rule_checkbox_${idx}`;
+
+ return (
+ <React.Fragment key={idx}>
+ <input
+ type="checkbox"
+ checked={field.rule?.type === 'one of' && field.rule.value.has(value)}
+ id={id}
+ aria-describedby={`${id}_label`}
+ title={String(value)}
+ onChange={({ target: { checked } }) => {
+ if (field.rule?.type !== 'one of') {
+ return;
+ }
+
+ const rule: IFilterRule = {
+ type: 'one of',
+ value: new Set(field.rule.value)
+ };
+
+ if (checked) {
+ rule.value.add(value);
+ } else {
+ rule.value.delete(value);
+ }
+
+ onChange(rule);
+ }}
+ />
+ <label
+ id={`${id}_label`}
+ htmlFor={id}
+ title={String(value)}
+ >
+ {value}
+ </label>
+ <label
+ htmlFor={id}
+ >
+ {count}
+ </label>
+ </React.Fragment>
+ );
+ })
+ }
+ </Table>
+ <Table className="text-gray-600">
+ <label></label>
+ <label>
+ {t('selected_keys', { count: field.rule.value.size })}
+ </label>
+ <label>
+ {[...field.rule.value].reduce<number>((sum, key) => {
+ const s = dataSource.filter(which => which[field.fid] === key).length;
+
+ return sum + s;
+ }, 0)}
+ </label>
+ </Table>
+ <div className="btn-grp">
+ <Button
+ onClick={() => {
+ if (field.rule?.type === 'one of') {
+ const curSet = field.rule.value;
+
+ onChange({
+ type: 'one of',
+ value: new Set<number | string>(
+ curSet.size === count.size
+ ? []
+ : count.keys()
+ ),
+ });
+ }
+ }}
+ >
+ {
+ field.rule.value.size === count.size
+ ? t('btn.unselect_all')
+ : t('btn.select_all')
+ }
+ </Button>
+ <Button
+ onClick={() => {
+ if (field.rule?.type === 'one of') {
+ const curSet = field.rule.value;
+
+ onChange({
+ type: 'one of',
+ value: new Set<number | string>(
+ [...count.keys()].filter(key => !curSet.has(key))
+ ),
+ });
+ }
+ }}
+ >
+ {t('btn.reverse')}
+ </Button>
+ </div>
+ </Container>
+ ) : null;
+});
+
+export const FilterTemporalRangeRule: React.FC<RuleFormProps & { active: boolean }> = observer(({
+ active,
+ field,
+ onChange,
+}) => {
+ const { commonStore } = useGlobalStore();
+ const { currentDataset: { dataSource } } = commonStore;
+
+ const sorted = React.useMemo(() => {
+ return dataSource.reduce<number[]>((list, d) => {
+ try {
+ const time = new Date(d[field.fid]).getTime();
+
+ list.push(time);
+ } catch (error) {
+
+ }
+ return list;
+ }, []).sort((a, b) => a - b);
+ }, [dataSource, field]);
+
+ const [min, max] = React.useMemo(() => {
+ return [sorted[0] ?? 0, Math.max(sorted[sorted.length - 1] ?? 0, sorted[0] ?? 0)];
+ }, [sorted]);
+
+ React.useEffect(() => {
+ if (active && field.rule?.type !== 'temporal range') {
+ onChange({
+ type: 'temporal range',
+ value: [sorted[0] ?? 0, Math.max(sorted[sorted.length - 1] ?? 0, sorted[0] ?? 0)],
+ });
+ }
+ }, [onChange, field, sorted, active]);
+
+ const handleChange = React.useCallback((value: readonly [number, number]) => {
+ onChange({
+ type: 'temporal range',
+ value,
+ });
+ }, []);
+
+ return field.rule?.type === 'temporal range' ? (
+ <Container>
+ <Slider
+ min={min}
+ max={max}
+ value={field.rule.value}
+ onChange={handleChange}
+ isDateTime
+ />
+ </Container>
+ ) : null;
+});
+
+export const FilterRangeRule: React.FC<RuleFormProps & { active: boolean }> = observer(({
+ active,
+ field,
+ onChange,
+}) => {
+ const { commonStore } = useGlobalStore();
+ const { currentDataset: { dataSource } } = commonStore;
+
+ const sorted = React.useMemo(() => {
+ return dataSource.map(d => d[field.fid]).sort((a, b) => a - b);
+ }, [dataSource, field]);
+
+ const [min, max] = React.useMemo(() => {
+ return [sorted[0] ?? 0, Math.max(sorted[sorted.length - 1] ?? 0, sorted[0] ?? 0)];
+ }, [sorted]);
+
+ React.useEffect(() => {
+ if (active && field.rule?.type !== 'range') {
+ onChange({
+ type: 'range',
+ value: [min, max],
+ });
+ }
+ }, [onChange, field, min, max, active]);
+
+ const handleChange = React.useCallback((value: readonly [number, number]) => {
+ onChange({
+ type: 'range',
+ value,
+ });
+ }, []);
+
+ return field.rule?.type === 'range' ? (
+ <Container>
+ <Slider
+ min={min}
+ max={max}
+ value={field.rule.value}
+ onChange={handleChange}
+ />
+ </Container>
+ ) : null;
+});
+
+const filterTabs: Record<IFilterRule['type'], React.FC<RuleFormProps & { active: boolean }>> = {
+ 'one of': FilterOneOfRule,
+ 'range': FilterRangeRule,
+ 'temporal range': FilterTemporalRangeRule,
+};
+
+export interface TabsProps extends RuleFormProps {
+ tabs: IFilterRule['type'][];
+}
+
+const Tabs: React.FC<TabsProps> = observer(({ field, onChange, tabs }) => {
+ const { vizStore } = useGlobalStore();
+ const { draggableFieldState } = vizStore;
+
+ const { t } = useTranslation('translation', { keyPrefix: 'constant.filter_type' });
+
+ const [which, setWhich] = React.useState(field.rule?.type ?? tabs[0]!);
+
+ return (
+ <TabsContainer>
+ <TabList role="tablist">
+ {
+ tabs.map((tab, i) => (
+ <TabHeader
+ key={i}
+ role="tab"
+ aria-selected={which === tab}
+ id={`filter-tab-${tab.replaceAll(/ /g, '_')}`}
+ aria-controls={`filter-panel-${tab.replaceAll(/ /g, '_')}`}
+ tabIndex={-1}
+ onClick={() => {
+ if (which !== tab) {
+ setWhich(tab);
+ }
+ }}
+ >
+ {t(tab.replaceAll(/ /g, '_'))}
+ </TabHeader>
+ ))
+ }
+ </TabList>
+ <TabPanel>
+ {
+ tabs.map((tab, i) => {
+ const Component = filterTabs[tab];
+
+ return draggableFieldState === null ? null : (
+ <TabItem
+ key={i}
+ id={`filter-panel-${tab.replaceAll(/ /g, '_')}`}
+ aria-labelledby={`filter-tab-${tab.replaceAll(/ /g, '_')}`}
+ role="tabpanel"
+ hidden={which !== tab}
+ tabIndex={0}
+ >
+ <Component
+ field={field}
+ onChange={onChange}
+ active={which === tab}
+ />
+ </TabItem>
+ );
+ })
+ }
+ </TabPanel>
+ </TabsContainer>
+ );
+});
+
+
+export default Tabs;
diff --git a/src/fields/obComponents/obFContainer.tsx b/src/fields/obComponents/obFContainer.tsx
new file mode 100644
index 00000000..5ae9d314
--- /dev/null
+++ b/src/fields/obComponents/obFContainer.tsx
@@ -0,0 +1,40 @@
+import React from 'react';
+import { observer } from 'mobx-react-lite'
+import { FieldsContainer } from '../components';
+import { useGlobalStore } from '../../store';
+import {
+ Draggable,
+ DroppableProvided
+} from "react-beautiful-dnd";
+import { IDraggableStateKey } from '../../interfaces';
+import OBPill from './obPill';
+
+interface FieldContainerProps {
+ provided: DroppableProvided
+ /**
+ * draggable Field Id
+ */
+ dkey: IDraggableStateKey;
+}
+const OBFieldContainer: React.FC<FieldContainerProps> = props => {
+ const { provided, dkey } = props;
+ const { vizStore } = useGlobalStore();
+ const { draggableFieldState } = vizStore;
+ return <FieldsContainer
+ {...provided.droppableProps}
+ ref={provided.innerRef}
+ >
+ {/* {provided.placeholder} */}
+ {draggableFieldState[dkey.id].map((f, index) => (
+ <Draggable key={f.dragId} draggableId={f.dragId} index={index}>
+ {(provided, snapshot) => {
+ return (
+ <OBPill dkey={dkey} fIndex={index} provided={provided} />
+ );
+ }}
+ </Draggable>
+ ))}
+ </FieldsContainer>
+}
+
+export default observer(OBFieldContainer);
diff --git a/src/fields/obComponents/obPill.tsx b/src/fields/obComponents/obPill.tsx
new file mode 100644
index 00000000..e8619775
--- /dev/null
+++ b/src/fields/obComponents/obPill.tsx
@@ -0,0 +1,48 @@
+import { BarsArrowDownIcon, BarsArrowUpIcon } from '@heroicons/react/24/outline';
+import { observer } from 'mobx-react-lite';
+import React from 'react';
+import { DraggableProvided } from 'react-beautiful-dnd';
+import { COUNT_FIELD_ID } from '../../constants';
+import { IDraggableStateKey } from '../../interfaces';
+import { useGlobalStore } from '../../store';
+import { Pill } from '../components';
+import { AGGREGATOR_LIST } from '../fieldsContext';
+import { useTranslation } from 'react-i18next';
+
+
+interface PillProps {
+ provided: DraggableProvided;
+ fIndex: number;
+ dkey: IDraggableStateKey;
+}
+const OBPill: React.FC<PillProps> = props => {
+ const { provided, dkey, fIndex } = props;
+ const { vizStore } = useGlobalStore();
+ const { visualConfig } = vizStore;
+ const field = vizStore.draggableFieldState[dkey.id][fIndex];
+ const { t } = useTranslation('translation', { keyPrefix: 'constant.aggregator' });
+
+ return <Pill
+ ref={provided.innerRef}
+ colType={field.analyticType === 'dimension' ? 'discrete' : 'continuous'}
+ {...provided.draggableProps}
+ {...provided.dragHandleProps}
+ >
+ {field.name}&nbsp;
+ {field.analyticType === 'measure' && field.fid !== COUNT_FIELD_ID && visualConfig.defaultAggregated && (
+ <select
+ className="bg-transparent text-gray-700 float-right focus:outline-none focus:border-gray-500"
+ value={field.aggName || ''}
+ onChange={(e) => { vizStore.setFieldAggregator(dkey.id, fIndex, e.target.value) }}
+ >
+ {
+ AGGREGATOR_LIST.map(op => <option value={op} key={op}>{t(op)}</option>)
+ }
+ </select>
+ )}
+ {field.analyticType === 'dimension' && field.sort === 'ascending' && <BarsArrowUpIcon className='float-right w-3' role="status" aria-label="Sorted in ascending order" />}
+ {field.analyticType === 'dimension' && field.sort === 'descending' && <BarsArrowDownIcon className='float-right w-3' role="status" aria-label="Sorted in descending order" />}
+ </Pill>
+}
+
+export default observer(OBPill);
diff --git a/src/fields/posFields/index.tsx b/src/fields/posFields/index.tsx
new file mode 100644
index 00000000..1b2f8197
--- /dev/null
+++ b/src/fields/posFields/index.tsx
@@ -0,0 +1,40 @@
+import React from 'react';
+import { FieldListContainer } from "../components";
+import {
+ Droppable,
+ Draggable
+ } from "react-beautiful-dnd";
+
+import { DRAGGABLE_STATE_KEYS } from '../fieldsContext';
+
+import OBFieldContainer from '../obComponents/obFContainer';
+import { useMemo } from 'react';
+import { observer } from 'mobx-react-lite';
+import { useGlobalStore } from '../../store';
+
+
+const PosFields: React.FC = props => {
+ const { vizStore } = useGlobalStore();
+ const { visualConfig } = vizStore;
+ const { geoms } = visualConfig;
+
+ const channels = useMemo(() => {
+ if (geoms[0] === 'arc') {
+ return DRAGGABLE_STATE_KEYS.filter(f => f.id === 'radius' || f.id === 'theta');
+ }
+ return DRAGGABLE_STATE_KEYS.filter(f => f.id === 'columns' || f.id === 'rows');
+ }, [geoms[0]])
+ return <div>
+ {
+ channels.map(dkey => <FieldListContainer name={dkey.id} key={dkey.id}>
+ <Droppable droppableId={dkey.id} direction="horizontal">
+ {(provided, snapshot) => (
+ <OBFieldContainer dkey={dkey} provided={provided} />
+ )}
+ </Droppable>
+ </FieldListContainer>)
+ }
+ </div>
+}
+
+export default observer(PosFields);
\ No newline at end of file
diff --git a/src/fields/select.tsx b/src/fields/select.tsx
new file mode 100644
index 00000000..acaf608b
--- /dev/null
+++ b/src/fields/select.tsx
@@ -0,0 +1,31 @@
+import React from "react";
+export interface Option {
+ id: string;
+ name: string;
+}
+interface SelectProps {
+ options: Option[];
+ onChange: (value: string) => void;
+ value: string;
+}
+
+const Select: React.FC<SelectProps> = (props) => {
+ const { options = [], onChange, value } = props;
+ return (
+ <select
+ name="select-com"
+ value={value}
+ onChange={(e) => {
+ onChange(e.target.value);
+ }}
+ >
+ {options.map((option) => (
+ <option key={option.id} value={option.id}>
+ {option.name}
+ </option>
+ ))}
+ </select>
+ );
+};
+
+export default Select;
diff --git a/src/fields/utils.ts b/src/fields/utils.ts
new file mode 100644
index 00000000..65320ea2
--- /dev/null
+++ b/src/fields/utils.ts
@@ -0,0 +1,31 @@
+export function reorder(
+ list: any[],
+ originalIndex: number,
+ targetIndex: number
+): any[] {
+ const nextList = [...list];
+ nextList.splice(originalIndex, 1);
+ nextList.splice(targetIndex, 0, list[originalIndex]);
+ return nextList;
+}
+
+export interface movedLists {
+ originList: any[];
+ targetList: any[];
+}
+
+export function move(
+ originalList: any[],
+ originIndex: number,
+ targetList: any[],
+ targetIndex: number
+): movedLists {
+ let newOriginalList = [...originalList];
+ let [removed] = newOriginalList.splice(originIndex, 1);
+ let newTargetList = [...targetList];
+ newTargetList.splice(targetIndex, 0, removed);
+ return {
+ originList: newOriginalList,
+ targetList: newTargetList,
+ };
+}
\ No newline at end of file
diff --git a/src/index.css b/src/index.css
new file mode 100644
index 00000000..ec2585e8
--- /dev/null
+++ b/src/index.css
@@ -0,0 +1,13 @@
+body {
+ margin: 0;
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
+ 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
+ sans-serif;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+code {
+ font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
+ monospace;
+}
diff --git a/src/index.tsx b/src/index.tsx
new file mode 100644
index 00000000..450e341a
--- /dev/null
+++ b/src/index.tsx
@@ -0,0 +1,12 @@
+import React from 'react';
+import App, { EditorProps } from './App';
+import { StoreWrapper } from './store/index';
+import { FieldsContextWrapper } from './fields/fieldsContext';
+
+export const GraphicWalker: React.FC<EditorProps> = props => {
+ return <StoreWrapper>
+ <FieldsContextWrapper>
+ <App {...props} />
+ </FieldsContextWrapper>
+ </StoreWrapper>
+}
diff --git a/src/insightBoard/index.tsx b/src/insightBoard/index.tsx
new file mode 100644
index 00000000..d173bca2
--- /dev/null
+++ b/src/insightBoard/index.tsx
@@ -0,0 +1,30 @@
+import { toJS } from 'mobx';
+import { observer } from 'mobx-react-lite';
+import React, { useCallback } from 'react';
+import Modal from '../components/modal';
+import { useGlobalStore } from '../store';
+import InsightMainBoard from './mainBoard';
+
+const InsightBoard: React.FC = props => {
+ const { commonStore, vizStore } = useGlobalStore();
+ const { showInsightBoard, currentDataset, filters } = commonStore;
+ const { viewDimensions, viewMeasures, draggableFieldState } = vizStore;
+ const onCloseModal = useCallback(() => {
+ commonStore.setShowInsightBoard(false);
+ }, [])
+ return <div>
+ {
+ showInsightBoard && <Modal onClose={onCloseModal}>
+ <InsightMainBoard
+ dataSource={currentDataset.dataSource}
+ fields={toJS(draggableFieldState.fields)}
+ viewDs={viewDimensions}
+ viewMs={viewMeasures}
+ filters={toJS(filters)}
+ />
+ </Modal>
+ }
+ </div>
+}
+
+export default observer(InsightBoard);
\ No newline at end of file
diff --git a/src/insightBoard/mainBoard.tsx b/src/insightBoard/mainBoard.tsx
new file mode 100644
index 00000000..bb6d84ff
--- /dev/null
+++ b/src/insightBoard/mainBoard.tsx
@@ -0,0 +1,204 @@
+import React, { useEffect, useState, useMemo, useRef } from 'react';
+import embed from 'vega-embed';
+import { Insight, Utils, UnivariateSummary } from 'visual-insights';
+import ReactJson from 'react-json-view';
+import { IField, Filters, IMeasure, IRow } from '../interfaces';
+import { baseVis, IReasonType } from './std2vegaSpec';
+import { getExplaination, IVisSpace } from '../services';
+import RadioGroupButtons from './radioGroupButtons';
+import { IExplaination, IMeasureWithStat } from '../insights';
+import { formatFieldName, mergeMeasures } from './utils'
+
+
+const collection = Insight.IntentionWorkerCollection.init();
+
+const ReasonTypeNames: { [key: string]: string} = {
+ 'selection_dim_distribution': '维度线索',
+ 'selection_mea_distribution': '度量线索',
+ 'children_major_factor': '子节点主因',
+ 'children_outlier': '子节点异常'
+}
+collection.enable(Insight.DefaultIWorker.cluster, false);
+interface SubSpace {
+ dimensions: string[];
+ measures: IMeasure[];
+}
+
+interface InsightMainBoardProps {
+ dataSource: IRow[];
+ fields: Readonly<IField[]>;
+ filters?: Filters;
+ viewDs: IField[];
+ viewMs: IField[];
+}
+const InsightMainBoard: React.FC<InsightMainBoardProps> = props => {
+ const { dataSource, fields, viewDs, viewMs, filters } = props;
+ const [recSpaces, setRecSpaces] = useState<IExplaination[]>([]);
+ const [visSpaces, setVisSpaces] = useState<IVisSpace[]>([]);
+ const [visIndex, setVisIndex] = useState<number>(0);
+ const [loading, setLoading] = useState<boolean>(false);
+ const [valueExp, setValueExp] = useState<IMeasureWithStat[]>([]);
+ const container = useRef<HTMLDivElement>(null);
+
+ const dimsWithTypes = useMemo(() => {
+ const dimensions = fields
+ .filter((f) => f.analyticType === 'dimension')
+ .map((f) => f.fid)
+ .filter((f) => !Utils.isFieldUnique(dataSource, f));
+ return UnivariateSummary.getAllFieldTypes(dataSource, dimensions);
+ }, [fields, dataSource])
+
+ const measWithTypes = useMemo(() => {
+ const measures = fields.filter((f) => f.analyticType === 'measure').map((f) => f.fid);
+ return measures.map((m) => ({
+ name: m,
+ type: 'quantitative',
+ }));
+ }, [fields]);
+
+ useEffect(() => {
+ if (dimsWithTypes.length > 0 && measWithTypes.length > 0 && dataSource.length > 0) {
+ const measures = fields.filter((f) => f.analyticType === 'measure').map((f) => f.fid);
+ const dimensions = dimsWithTypes.map(d => d.name);
+ const currentSpace: SubSpace = {
+ dimensions: viewDs.map((f) => f.fid),
+ measures: viewMs.map((f) => ({
+ key: f.fid,
+ op: f.aggName as any
+ })),
+ };
+ setLoading(true);
+
+ getExplaination({
+ dimensions,
+ measures,
+ dataSource,
+ currentSpace,
+ filters
+ }).then(({ visSpaces, explainations, valueExp }) => {
+ setRecSpaces(explainations);
+ setVisSpaces(visSpaces);
+ setValueExp(valueExp);
+ setLoading(false);
+ })
+ }
+ }, [fields, viewDs, viewMs, measWithTypes, filters, dimsWithTypes, measWithTypes, dataSource])
+
+ useEffect(() => {
+ const RecSpace = recSpaces[visIndex];
+ const visSpec = visSpaces[visIndex];
+ if (container.current && RecSpace && visSpec) {
+ const usePredicates: boolean =
+ RecSpace.type === 'selection_dim_distribution' ||
+ RecSpace.type === 'selection_mea_distribution';
+ const mergedMeasures = mergeMeasures(RecSpace.measures, RecSpace.extendMs);
+ const _vegaSpec = baseVis(
+ visSpec.schema,
+ visSpec.schema.geomType && visSpec.schema.geomType[0] === 'point'
+ ? dataSource
+ : visSpec.dataView,
+ // result.aggData,
+ [...RecSpace.dimensions, ...RecSpace.extendDs],
+ [...RecSpace.measures, ...RecSpace.extendMs].map(m => m.key),
+ usePredicates ? RecSpace.predicates : null,
+ mergedMeasures.map((m) => ({
+ op: m.op,
+ field: m.key,
+ as: m.key,
+ })),
+ fields,
+ RecSpace.type as IReasonType,
+ true,
+ true
+ );
+ if (container.current) {
+ embed(container.current, _vegaSpec);
+ }
+ }
+ }, [visIndex, recSpaces, visSpaces, fields, dataSource])
+
+ const FilterDesc = useMemo<React.ReactElement[]>(() => {
+ if (filters) {
+ const dimValues = Object.keys(filters)
+ .filter(k => filters[k].length > 0)
+ .map((k, ki) => {
+ return <div key={`dim-${ki}`}>
+ <div className="inline bg-gray-400 p-1 rounded underline text-white">{formatFieldName(k, fields)}</div>
+ <div className="inline text-lg ml-1 mr-1">=</div>
+ <div className="inline bg-blue-600 p-1 rounded text-white">{filters[k]}</div>
+ </div>
+ });
+ return dimValues
+ }
+ return []
+ }, [filters])
+
+ const valueDesc = useMemo<React.ReactElement[]>(() => {
+ const meaStatus = valueExp.map((mea, mi) =>
+ <div key={`mea-${mi}`}>
+ <span className="bg-gray-400 p-1 rounded underline text-white">{formatFieldName(mea.key, fields)}({mea.op})</span>的取值<span className="bg-red-500 p-1 rounded text-white">{mea.score === 1 ? '大于' : '小于'}预期 </span>
+ </div>
+ );
+ return meaStatus
+ }, [valueExp])
+
+ return (
+ <div style={{ maxHeight: '80vh', minHeight: '200px', overflowY: 'auto', maxWidth: '880px' }}>
+ <div className="text-xs">
+ {FilterDesc}
+ </div>
+ <div className="text-xs mt-2 mb-2">
+ {valueDesc}
+ </div>
+ {loading && (
+ <div className="animate-spin inline-block mr-2 ml-2 w-16 h-16 rounded-full border-t-2 border-l-2 border-blue-500"></div>
+ )}
+ <div style={{ display: 'flex' }}>
+ <div style={{ flexBasis: '200px', flexShrink: 0, maxHeight: '800px', overflowY: 'auto' }}>
+ <RadioGroupButtons
+ choosenIndex={visIndex}
+ options={recSpaces.map((s, i) => ({
+ value: s.type || '' + i,
+ label: `${s.type ? ReasonTypeNames[s.type] : '未识别'}: ${
+ s.score.toFixed(2)
+ }`,
+ }))}
+ onChange={(v, i) => {
+ setVisIndex(i);
+ }}
+ />
+ </div>
+ <div className="p-4 text-sm">
+ <div ref={container}></div>
+ {recSpaces[visIndex] && (
+ <div>
+ 维度是{recSpaces[visIndex].dimensions.map(f => formatFieldName(f, fields)).join(', ')}。<br />
+ 度量是{recSpaces[visIndex].measures.map((m) => m.key).map(f => formatFieldName(f, fields)).join(', ')}。<br />
+ 此时具有
+ {recSpaces[visIndex].type
+ ? ReasonTypeNames[recSpaces[visIndex].type!]
+ : '未识别'}{' '}
+ ,评分为{recSpaces[visIndex].score}。
+ <br />
+ {recSpaces[visIndex].description &&
+ recSpaces[visIndex].description.intMeasures &&
+ FilterDesc +
+ recSpaces[visIndex].description.intMeasures
+ .map(
+ (mea: any) =>
+ `${formatFieldName(mea.key, fields)}(${mea.op})}的取值${
+ mea.score === 1 ? '大于' : '小于'
+ }预期`
+ )
+ .join(', ')}
+ <br />
+ <ReactJson src={recSpaces[visIndex].description} />
+ </div>
+ )}
+ </div>
+ </div>
+ </div>
+ );
+}
+
+export default InsightMainBoard;
diff --git a/src/insightBoard/radioGroupButtons.tsx b/src/insightBoard/radioGroupButtons.tsx
new file mode 100644
index 00000000..49579542
--- /dev/null
+++ b/src/insightBoard/radioGroupButtons.tsx
@@ -0,0 +1,50 @@
+import React from 'react';
+import styled from 'styled-components';
+
+const RGBContainer = styled.div`
+ font-size: 14px;
+ .option {
+ padding: 0.8em;
+ margin: 4px;
+ border: 1px solid #f0f0f0;
+ background-color: #f0f0f0;
+ cursor: pointer;
+ }
+ .choosen.option {
+ background-color: #fff;
+ }
+`;
+
+export interface RGBOption {
+ label: string;
+ value: any;
+}
+
+interface RadioGroupButtonsProps {
+ options: RGBOption[];
+ onChange?: (value: any, index: number) => void;
+ choosenIndex: number;
+}
+
+const RadioGroupButtons: React.FC<RadioGroupButtonsProps> = (props) => {
+ const { options, onChange, choosenIndex } = props;
+ return (
+ <RGBContainer>
+ {options.map((op, i) => (
+ <div
+ key={i}
+ className={`${choosenIndex === i ? 'choosen' : ''} option`}
+ onClick={() => {
+ if (onChange) {
+ onChange(op.value, i);
+ }
+ }}
+ >
+ {op.label}
+ </div>
+ ))}
+ </RGBContainer>
+ );
+};
+
+export default RadioGroupButtons;
diff --git a/src/insightBoard/selectionSpec.ts b/src/insightBoard/selectionSpec.ts
new file mode 100644
index 00000000..14cf6142
--- /dev/null
+++ b/src/insightBoard/selectionSpec.ts
@@ -0,0 +1,113 @@
+import { Specification } from 'visual-insights';
+import { Record, SemanticType } from '../interfaces';
+export const geomTypeMap: { [key: string]: any } = {
+ interval: 'bar',
+ line: 'line',
+ point: 'point',
+ // density: 'rect'
+ density: 'point',
+};
+export function selectionVis(
+ query: Specification,
+ dataSource: Record[],
+ dimensions: string[],
+ measures: string[],
+ aggregatedMeasures: Array<{ op: string; field: string; as: string }>,
+ fieldFeatures: Array<{ name: string; type: SemanticType }>,
+ defaultAggregated?: boolean,
+ defaultStack?: boolean
+) {
+ const {
+ position = [],
+ color = [],
+ size = [],
+ facets = [],
+ opacity = [],
+ geomType = [],
+ page = [],
+ } = query;
+
+ function adjustField(fieldName: string): string {
+ if (defaultAggregated && measures.includes(fieldName)) {
+ let aggField = aggregatedMeasures.find((mea) => {
+ return mea.field === fieldName;
+ });
+ return aggField ? aggField.as : fieldName;
+ }
+ return fieldName;
+ }
+
+ function getFieldType(field: string): SemanticType {
+ let targetField = fieldFeatures.find((f) => f.name === field);
+ return targetField ? targetField.type : 'nominal';
+ }
+
+ let chartWidth = 500; //container.current ? container.current.offsetWidth * 0.8 : 600;
+ const fieldMap: any = {
+ x: position[0],
+ y: position[1],
+ color: color[0],
+ size: size[0],
+ opacity: opacity[0],
+ row: facets[0],
+ column: facets[1],
+ };
+ let spec: any = {
+ width: chartWidth,
+ data: {
+ values: dataSource,
+ },
+ };
+ let basicSpec: any = {
+ width: chartWidth,
+ mark: {
+ type: geomType[0] && geomTypeMap[geomType[0]] ? geomTypeMap[geomType[0]] : geomType[0],
+ tooltip: true,
+ },
+ encoding: {},
+ };
+ for (let channel in fieldMap) {
+ if (fieldMap[channel]) {
+ basicSpec.encoding[channel] = {
+ field: adjustField(fieldMap[channel]),
+ type: getFieldType(fieldMap[channel]),
+ };
+ if (
+ ['x', 'y'].includes(channel) &&
+ getFieldType(fieldMap[channel]) === 'quantitative' &&
+ !defaultStack
+ ) {
+ basicSpec.encoding[channel].stack = null;
+ }
+ }
+ }
+ if (!defaultStack && opacity.length === 0) {
+ basicSpec.encoding.opacity = { value: 0.7 };
+ }
+ if (page.length === 0) {
+ spec = {
+ ...spec,
+ ...basicSpec,
+ };
+ } else if (page.length > 0) {
+ basicSpec.transform = [
+ { filter: { selection: 'brush' } },
+ defaultAggregated
+ ? {
+ aggregate: aggregatedMeasures,
+ groupby: dimensions.filter((dim) => dim !== page[0]),
+ }
+ : null,
+ ].filter(Boolean);
+ let sliderSpec = {
+ width: chartWidth,
+ mark: 'tick',
+ selection: { brush: { encodings: ['x'], type: 'interval' } },
+ encoding: {
+ x: { field: page[0], type: getFieldType(page[0]) },
+ },
+ };
+ spec.vconcat = [basicSpec, sliderSpec];
+ }
+ return spec;
+}
diff --git a/src/insightBoard/std2vegaSpec.ts b/src/insightBoard/std2vegaSpec.ts
new file mode 100644
index 00000000..061030b0
--- /dev/null
+++ b/src/insightBoard/std2vegaSpec.ts
@@ -0,0 +1,184 @@
+import { ISemanticType, Specification } from 'visual-insights';
+import { IField, IRow } from '../interfaces';
+import { Utils } from 'visual-insights';
+import { IPredicate } from '../utils';
+export type IReasonType = 'selection_dim_distribution' | 'selection_mea_distribution' | 'children_major_factor' | 'children_outlier';
+export const geomTypeMap: { [key: string]: any } = {
+ interval: 'bar',
+ line: 'line',
+ point: 'point',
+ // density: 'rect'
+ density: 'point',
+};
+export function baseVis(
+ query: Specification,
+ dataSource: IRow[],
+ dimensions: string[],
+ measures: string[],
+ predicates: IPredicate[] | null,
+ aggregatedMeasures: Array<{ op: string; field: string; as: string }>,
+ fields: Readonly<IField[]>,
+ type: IReasonType,
+ defaultAggregated?: boolean,
+ defaultStack?: boolean
+) {
+ const {
+ position = [],
+ color = [],
+ size = [],
+ facets = [],
+ opacity = [],
+ geomType = [],
+ page = [],
+ } = query;
+
+ function adjustField(fieldName: string): string {
+ if (defaultAggregated && measures.includes(fieldName)) {
+ let aggField = aggregatedMeasures.find((mea) => {
+ return mea.field === fieldName;
+ });
+ return aggField ? aggField.as : fieldName;
+ }
+ return fieldName;
+ }
+
+ function getFieldSemanticType(fid: string): ISemanticType {
+ let targetField = fields.find((f) => f.fid === fid);
+ return targetField ? targetField.semanticType : 'nominal';
+ }
+
+ function getFieldLabel (fid: string): string {
+ let targetField = fields.find((f) => f.fid === fid);
+ return targetField ? targetField.name : fid;
+ }
+
+ // let chartWidth = 500; //container.current ? container.current.offsetWidth * 0.8 : 600;
+ const fieldMap: any = {
+ x: position[0],
+ y: position[1],
+ color: color[0],
+ size: size[0],
+ opacity: opacity[0],
+ row: facets[0],
+ column: facets[1],
+ };
+ let spec: any = {
+ // width: chartWidth,
+ data: {
+ values: dataSource,
+ },
+ transform: [],
+ };
+ let basicSpec: any = {
+ // width: chartWidth,
+ transform: [],
+ mark: {
+ type: geomType[0] && geomTypeMap[geomType[0]] ? geomTypeMap[geomType[0]] : geomType[0],
+ tooltip: true,
+ },
+ encoding: {},
+ };
+ const dimInView: string[] = [];
+ Object.values(query).forEach(fields => {
+ fields.forEach((f: any) => {
+ if (dimensions.includes(f)) dimInView.push(f);
+ })
+ })
+ if (defaultAggregated && aggregatedMeasures.length > 0) {
+ basicSpec.transform.push({
+ aggregate: [],
+ groupby: dimInView,
+ });
+ }
+ const aggMap: Map<string, string> = new Map();
+ for (let channel in fieldMap) {
+ if (fieldMap[channel]) {
+ if (getFieldSemanticType(fieldMap[channel]) === 'quantitative' && defaultAggregated) {
+ const targetField = aggregatedMeasures.find((f) => f.field === fieldMap[channel]);
+ if (targetField) {
+ aggMap.set(targetField.field, `${targetField.op}_of_${targetField.field}`);
+ basicSpec.transform[0].aggregate.push({
+ op: targetField.op === 'count' ? 'sum' : targetField.op,
+ field: targetField.field,
+ as: `${targetField.op}_of_${targetField.field}`,
+ });
+ }
+ // const targetField = aggregatedMeasures.find((f) => f.field === fieldMap[channel]);
+ // basicSpec.encoding[channel].aggregate = targetField ? targetField.op : 'sum';
+ // basicSpec.encoding[channel].aggregate =
+ // basicSpec.encoding[channel].aggregate === 'count'
+ // ? 'sum'
+ // : basicSpec.encoding[channel].aggregate;
+ }
+ const adjField = adjustField(fieldMap[channel]);
+ basicSpec.encoding[channel] = {
+ field: aggMap.has(adjField) ? aggMap.get(adjField) : adjField,
+ type: getFieldSemanticType(fieldMap[channel]),
+ title: getFieldLabel(fieldMap[channel])
+ };
+ if (
+ ['x', 'y'].includes(channel) &&
+ getFieldSemanticType(fieldMap[channel]) === 'quantitative' &&
+ !defaultStack
+ ) {
+ basicSpec.encoding[channel].stack = null;
+ }
+ }
+ }
+ if (!defaultStack && opacity.length === 0) {
+ basicSpec.encoding.opacity = { value: 0.7 };
+ }
+ // 真TMD小学生代码
+ if (predicates === null) {
+ return {
+ ...spec,
+ ...basicSpec,
+ };
+ }
+ const basicSpecFilter = Utils.deepcopy(basicSpec);
+ basicSpec.mark.opacity = 0.9;
+ basicSpec.mark.color = '#8c8c8c';
+ // basicSpecFilter.mark.color = '#f5222d';
+ basicSpecFilter.mark.opacity = 0.8;
+ basicSpecFilter.mark.size = 10;
+ Object.values(basicSpecFilter.encoding).forEach((ch: any) => {
+ if (typeof ch.title === 'string') {
+ ch.title = ch.title + '(target)'
+ }
+ })
+ if (typeof basicSpecFilter.transform === 'undefined') {
+ basicSpecFilter.transform = [];
+ }
+ basicSpecFilter.transform = [
+ ...predicates.map((pre) => {
+ const filter: any = {
+ filter: {
+ field: pre.key,
+ },
+ };
+ if (pre.type === 'continuous') {
+ filter.filter.range = pre.range;
+ } else {
+ filter.filter.oneOf = [...pre.range.values()];
+ }
+ return filter;
+ }),
+ ...basicSpecFilter.transform,
+ ];
+ if (type !== 'selection_mea_distribution' && color.length + size.length + opacity.length + page.length > 0) {
+ spec = {
+ ...spec,
+ vconcat: [basicSpec, basicSpecFilter],
+ };
+ } else {
+ if (basicSpecFilter.encoding.color) {
+ basicSpecFilter.encoding.color = { value: 'grey' };
+ }
+ spec = {
+ ...spec,
+ layer: [basicSpec, basicSpecFilter],
+ "resolve": {"scale": {"y": "independent"}}
+ };
+ }
+ return spec;
+}
diff --git a/src/insightBoard/utils.ts b/src/insightBoard/utils.ts
new file mode 100644
index 00000000..abd3ad8f
--- /dev/null
+++ b/src/insightBoard/utils.ts
@@ -0,0 +1,32 @@
+import { IField, IMeasure } from "../interfaces";
+/**
+ * 合并两个measures数组,若出现相同的key,使用measures2中的op替换1中的op
+ * @param measures1
+ * @param measures2
+ */
+export function mergeMeasures(measures1: IMeasure[], measures2: IMeasure[]): IMeasure[] {
+ const measureKeys: Set<string> = new Set();
+ const merged: IMeasure[] = [];
+ for (let mea of measures1) {
+ measureKeys.add(mea.key);
+ merged.push(mea);
+ }
+ for (let mea of measures2) {
+ // measureKeys.add(mea.k)
+ if (measureKeys.has(mea.key)) {
+ const targetIndex = merged.findIndex(f => f.key === mea.key);
+ if (targetIndex > -1) {
+ merged[targetIndex] = mea;
+ }
+ } else {
+ measureKeys.add(mea.key);
+ merged.push(mea)
+ }
+ }
+ return merged;
+}
+
+export function formatFieldName(fid: string, fields: Readonly<IField[]>) {
+ const target = fields.find(f => f.fid === fid);
+ return target ? target.name : fid;
+}
\ No newline at end of file
diff --git a/src/insights.ts b/src/insights.ts
new file mode 100644
index 00000000..6dccd10e
--- /dev/null
+++ b/src/insights.ts
@@ -0,0 +1,411 @@
+import { IMutField, Insight } from 'visual-insights';
+import { Record, IMeasure } from './interfaces';
+import { checkMajorFactor, filterByPredicates, checkChildOutlier, IPredicate } from './utils';
+import { normalizeWithParent, compareDistribution, normalizeByMeasures, getDistributionDifference } from './utils/normalization';
+import { StatFuncName } from 'visual-insights/build/esm/statistics';
+export interface IExplaination {
+ dimensions: string[];
+ measures: IMeasure[];
+ extendDs: string[];
+ extendMs: IMeasure[];
+ type: string;
+ score: number;
+ description: any;
+ predicates: IPredicate[];
+}
+
+export interface IMeasureWithStat extends IMeasure {
+ score: number;
+}
+export class DataExplainer {
+ public dataSource: Record[];
+ private engine: Insight.VIEngine;
+ private defaultAggs: StatFuncName[] = ['min', 'max', 'sum', 'count', 'mean'];
+ constructor (dataSource: Record[] = []) {
+ this.engine = new Insight.VIEngine();
+ this.dataSource = dataSource;
+ let keys: string[] = [];
+ if (dataSource.length > 0) {
+ keys = Object.keys(dataSource[0]);
+ }
+ this.engine.setData(dataSource)
+ // .setFieldKeys(keys)
+ // .buildfieldsSummary();
+ // const newKeys = this.engine.fields.filter(f => f.domain.size < 40).map(f => f.key);
+ // this.engine.setFieldKeys(keys);
+ // const keys = Object.keys(dataSource[0])
+ }
+ public setFields(fields: IMutField[]) {
+ this.engine.setFields(fields.map(f => ({
+ ...f,
+ // @ts-ignore
+ key: f.key || f.fid
+ })));
+ // console.log('set fields', fields, fields.map(f => f.fid))
+ this.engine.univarSelection();
+ }
+ public preAnalysis() {
+ console.log('[graphic-walker:preAnalysis]start')
+ this.engine.buildGraph();
+ this.engine.dataGraph.DIMENSION_CORRELATION_THRESHOLD = 0.6;
+ this.engine.dataGraph.MEASURE_CORRELATION_THRESHOLD = 0.8;
+ console.log('[graphic-walker:preAnalysis]graph finish')
+ this.engine
+ .clusterFields();
+ console.log('[graphic-walker:preAnalysis]cluster finish')
+ this.engine.buildSubspaces({
+ MAX: 2,
+ MIN: 1
+ },
+ {
+ MAX: 2,
+ MIN: 1
+ }
+ );
+ console.log('[graphic-walker:preAnalysis]subspaces finsh. start build-cube')
+ this.engine.buildCube();
+ console.log('[graphic-walker:preAnalysis]cube finish')
+ return this;
+ }
+ public explain (predicates: IPredicate[], dimensions: string[], measures: IMeasure[], threshold: number = 0.3): IExplaination[] {
+ // const predicates = getPredicates(selection, dimensions, measures);
+ // 讨论:知道selection,但是分析的维度是什么?
+ this.explainConditionalValue(predicates, dimensions, measures);
+ const selectAll = dimensions.length === 0 || predicates.length === 0;
+
+ const dimSelectionSpaces = selectAll ? [] : this.explainBySelection(
+ predicates,
+ dimensions,
+ measures,
+ 10
+ );
+ const meaSelectionSpaces = selectAll ? [] : this.explainByCorMeasures(
+ predicates,
+ dimensions,
+ measures,
+ 10
+ );
+ const childrenSpaces = this.explainByChildren(
+ [],
+ dimensions,
+ measures,
+ 10
+ );
+ const ansSpaces: IExplaination[] = [];
+ dimSelectionSpaces.forEach((space) => {
+ ansSpaces.push({
+ dimensions,
+ extendDs: space.dimensions,
+ measures,
+ extendMs: [],
+ score: space.score,
+ type: 'selection_dim_distribution',
+ description: space,
+ predicates
+ });
+ });
+ meaSelectionSpaces.forEach((space) => {
+ ansSpaces.push({
+ dimensions: dimensions,
+ extendDs: [],
+ extendMs: space.measures,
+ measures,
+ score: space.score,
+ type: 'selection_mea_distribution',
+ description: space,
+ predicates,
+ });
+ });
+ childrenSpaces.majorList.forEach((space) => {
+ ansSpaces.push({
+ dimensions,
+ extendDs: space.dimensions,
+ measures,
+ extendMs: [],
+ score: space.score,
+ type: 'children_major_factor',
+ description: space,
+ predicates
+ });
+ });
+ childrenSpaces.outlierList.forEach((space) => {
+ ansSpaces.push({
+ dimensions,
+ extendDs: space.dimensions,
+ measures,
+ extendMs: [],
+ score: space.score,
+ type: 'children_outlier',
+ description: space,
+ predicates
+ });
+ });
+ return ansSpaces.filter(space => space.score >= threshold);
+ }
+
+ public explainConditionalValue(predicates: IPredicate[], dimensions: string[], measures: IMeasure[], K_Neighbor: number = 5) {
+ const knn = this.getGeneralizeKNN('dimension', dimensions, K_Neighbor, 0);
+ for (let extendDim of knn) {
+ const result = this.explainValue(predicates, [...dimensions, extendDim], measures);
+ }
+ }
+ public explainValue(predicates: IPredicate[], dimensions: string[], measures: IMeasure[]): number[] {
+ const measureNames = measures.map(m => m.key);
+ const measureOps = measures.map(m => m.op);
+ const data = this.engine.cube.getCuboid(dimensions).getAggregatedRows(measureNames, measureOps);
+ const selection = filterByPredicates(data, predicates);
+ const cmps: number[] = [];
+ for (let mea of measureNames) {
+ const values = data.map(r => r[mea]);
+ values.sort((a, b) => a - b);
+ const selectionValues = selection.map(r => r[mea])
+ const lowerBoundary: number = values[Math.floor(values.length * 0.15)];
+ const higherBoundary: number = values[Math.min(Math.ceil(values.length * 0.85), values.length - 1)];
+ if (selectionValues.some(v => v >= higherBoundary)) {
+ cmps.push(1);
+ } else if (selectionValues.some(v => v <= lowerBoundary)) {
+ cmps.push(-1);
+ } else {
+ cmps.push(0)
+ }
+ }
+ return cmps;
+ }
+ public explainByChildren(predicates: IPredicate[], dimensions: string[], measures: IMeasure[], K_Neighbor: number = 3) {
+ // 1. find most relative dimensions(topK)
+ // 2. for each dimension, we check all the dim member in it. find the member whos distribution is most close to current one.
+ // here we do not nomorlize all the dim member's distribution, we use the relative distribution instead.
+ // 3. the dim member we found can be used to explain current one as major factor.
+ // const predicates: IPredicate[] = selection === 'all' ? [] : getPredicates(selection, dimensions, []);
+ // console.log(predicates)
+ const parentCuboid = this.engine.cube.getCuboid(dimensions);
+ const measureNames = measures.map(m => m.key);
+ const ops = measures.map(m => m.op);
+ const parentData = filterByPredicates(parentCuboid.getAggregatedRows(measureNames, ops), predicates);
+ // console.log(parentData)
+ const knn = this.getGeneralizeKNN('dimension', dimensions, K_Neighbor, 0);
+
+ const majorList: Array<{key: string; score: number; dimensions: string[]; measures: IMeasure[]}> = [];
+ const outlierList: Array<{key: string; score: number; dimensions: string[]; measures: IMeasure[]}> = [];
+ for (let extendDim of knn) {
+ const cuboid = this.engine.cube.getCuboid([...dimensions, extendDim]);
+ const data = filterByPredicates(cuboid.getAggregatedRows(measureNames, ops), predicates);
+ let groups: Map<any, Record[]> = new Map();
+ for (let record of data) {
+ if (!groups.has(record[extendDim])) {
+ groups.set(record[extendDim], [])
+ }
+ groups.get(record[extendDim])?.push(record)
+ }
+ const { majorKey, majorSum } = checkMajorFactor(parentData, groups, dimensions, measureNames)
+ majorList.push({ key: majorKey, score: majorSum, dimensions: [extendDim], measures })
+ const { outlierKey, outlierSum } = checkChildOutlier(parentData, groups, dimensions, measureNames);
+ outlierList.push({ key: outlierKey, score: outlierSum, dimensions: [extendDim], measures })
+ }
+ majorList.sort((a, b) => a.score - b.score);
+ outlierList.sort((a, b) => b.score - a.score);
+ return {
+ majorList,
+ outlierList
+ };
+ }
+ public explainBySelection(predicates: IPredicate[], dimensions: string[], measures: IMeasure[], K_Neighbor: number = 3) {
+ // const predicates = getPredicates(selection, dimensions, []);
+ // const parentCuboid = this.engine.cube.getCuboid()
+ const measureNames = measures.map((m) => m.key);
+ const ops = measures.map((m) => m.op);
+ const knn = this.getGeneralizeKNN('dimension', dimensions, K_Neighbor, 0);
+ const outlierList: Array<{ score: number; dimensions: string[]; measures: IMeasure[] }> = [];
+ for (let extendDim of knn) {
+ const parentCuboid = this.engine.cube.getCuboid([extendDim])
+ const cuboid = this.engine.cube.getCuboid([...dimensions, extendDim])
+ const overallData = parentCuboid.getAggregatedRows(measureNames, ops);
+ const subData = filterByPredicates(cuboid.getAggregatedRows(measureNames, ops), predicates);
+
+ let outlierNormalization = normalizeWithParent(subData, overallData, measureNames, false);
+
+ let outlierScore = compareDistribution(
+ outlierNormalization.normalizedData,
+ outlierNormalization.normalizedParentData,
+ [extendDim],
+ measureNames
+ );
+ // outlierScore /= (measures.length * 2)
+ outlierList.push({
+ dimensions: [extendDim],
+ measures,
+ score: outlierScore
+ })
+ // compare overall and subdata. set score. (major and outlier)
+ }
+ outlierList.sort((a, b) => b.score - a.score)
+ return outlierList;
+ }
+ public explainByCorMeasures(predicates: IPredicate[], dimensions: string[], measures: IMeasure[], K_Neighbor: number = 3) {
+ // const predicates = getPredicates(selection, dimensions, []);
+ // const parentCuboid = this.engine.cube.getCuboid()
+ const measureNames = measures.map((m) => m.key);
+ const ops = measures.map((m) => m.op);
+ const knn = this.getGeneralizeKNN('measure', measureNames, K_Neighbor);
+ const allMeasureNames = [...measureNames, ...knn];
+ // const ops: StatFuncName[] = allMeasures.map(() => 'sum');
+ const ans: Array<{ score: number; dimensions: string[]; measures: IMeasure[]; max: number; min: number; intMeasures: IMeasureWithStat[] }> = [];
+ const cuboid = this.engine.cube.getCuboid(dimensions);
+ // const valueExp = this.explainValue(predicates, dimensions, measures);
+ for (let op of this.defaultAggs) {
+ const extendMeasureOps = knn.map(() => op);
+ const normalizedState = normalizeByMeasures(
+ cuboid.getAggregatedRows(allMeasureNames, [...ops, ...extendMeasureOps]),
+ allMeasureNames
+ );
+ for (let extendMea of allMeasureNames) {
+ const originMeasure = measures.find(m => m.key === extendMea);
+ if (originMeasure && originMeasure.op === op) continue;
+ const valueExpOfExtendMea = this.explainValue(predicates, dimensions, [{key: extendMea, op}])
+ const intMeasures: IMeasureWithStat[] = [];
+ for (let i = 0; i < valueExpOfExtendMea.length; i++) {
+ if (valueExpOfExtendMea[i] !== 0) {
+ intMeasures.push({
+ key: extendMea,
+ op,
+ score: valueExpOfExtendMea[i]
+ })
+ }
+ }
+ if (intMeasures.length === 0) continue;
+ if (originMeasure) {
+ const norStateWithNewOp = normalizeByMeasures(
+ cuboid.getAggregatedRows([extendMea], [op]),
+ [extendMea]
+ )
+ const mergedDataSource = normalizedState.map((record, rIndex) => {
+ return {
+ ...record,
+ [`__${extendMea}`]: norStateWithNewOp[rIndex][extendMea]
+ }
+ })
+ let maxDiff = 0;
+ let minDiff = 1;
+ for (let baseMeasure of measures) {
+ let diffScore =
+ getDistributionDifference(
+ mergedDataSource,
+ dimensions,
+ baseMeasure.key,
+ `__${extendMea}`
+ ) / 2;
+ maxDiff = Math.max(maxDiff, diffScore);
+ minDiff = Math.min(minDiff, diffScore);
+ }
+ ans.push({
+ dimensions,
+ score: Math.max(1 - minDiff, maxDiff),
+ measures: [{ key: extendMea, op }],
+ max: maxDiff,
+ min: minDiff,
+ intMeasures
+ });
+ } else {
+ let maxDiff = 0;
+ let minDiff = 1;
+ for (let baseMeasure of measures) {
+ let diffScore =
+ getDistributionDifference(
+ normalizedState,
+ dimensions,
+ baseMeasure.key,
+ extendMea
+ ) / 2;
+ maxDiff = Math.max(maxDiff, diffScore);
+ minDiff = Math.min(minDiff, diffScore);
+ }
+ ans.push({
+ dimensions,
+ score: Math.max(1 - minDiff, maxDiff),
+ measures: [{ key: extendMea, op }],
+ max: maxDiff,
+ min: minDiff,
+ intMeasures
+ });
+ }
+ // compare overall and subdata. set score. (major and outlier)
+ }
+ }
+ ans.sort((a, b) => b.score - a.score);
+ return ans;
+ }
+ public getGeneralizeKNN(type: 'dimension' | 'measure', fields: string[], K_Neighbor: number = 3, threshold = 0) {
+ if (fields.length === 0) return this.getCenterFields(type, K_Neighbor);
+ return this.getKNN(type, fields, K_Neighbor, threshold);
+ }
+ public getKNN(type: 'dimension' | 'measure', fields: string[], K_Neighbor: number = 3, threshold = 0) {
+ const adjMatrix = type === 'dimension' ? this.engine.dataGraph.DG : this.engine.dataGraph.MG;
+ const graphFields = type === 'dimension' ? this.engine.dataGraph.dimensions : this.engine.dataGraph.measures;
+ const fieldIndices = fields.map(field => {
+ let index = graphFields.indexOf(field);
+ return index;
+ });
+ const neighbors: Array<{dis: number, index: number, imp: number}> = [];
+ for (let fieldIndex of fieldIndices) {
+ for (let i = 0; i < adjMatrix[fieldIndex].length; i++) {
+ if (!fieldIndices.includes(i)) {
+ const dis = Math.abs(adjMatrix[fieldIndex][i]);
+ const fieldKey = graphFields[i];
+ const tf = this.engine.fields.find(f => f.key === fieldKey);
+ if (dis >= threshold) {
+ neighbors.push({
+ dis,
+ index: i,
+ imp: tf?.features.unique || Infinity,
+ });
+ }
+ }
+ }
+ }
+
+ neighbors.sort((a, b) => b.dis / b.imp - a.dis / a.imp);
+ return neighbors.slice(0, K_Neighbor).map(f => graphFields[f.index]);
+ }
+ public getCenterFields (type: 'dimension' | 'measure', num: number = 5): string[] {
+ const adjMatrix = type === 'dimension' ? this.engine.dataGraph.DG : this.engine.dataGraph.MG;
+ const graphFields = type === 'dimension' ? this.engine.dataGraph.dimensions : this.engine.dataGraph.measures;
+ let fieldScores: Array<{field: string; score: number}> = adjMatrix.map((row, rIndex) => {
+ return {
+ field: graphFields[rIndex],
+ score: row.reduce((total, current) => total + Math.abs(current), 0)
+ }
+ })
+ fieldScores.sort((a, b) => b.score - a.score)
+ return fieldScores.map(f => f.field).slice(0, num);
+ }
+ public getVisSpec (spaces: IExplaination[]) {
+ const engine = this.engine;
+ return spaces.map(space => {
+ let visSpace: Insight.InsightSpace;
+ const measureNames = space.measures.map(m => m.key);
+ const extendMsNames = space.extendMs.map(m => m.key);
+ if (space.type === 'children_major_factor' || space.type === 'children_outlier') {
+ visSpace = {
+ dimensions: [...space.extendDs, ...space.dimensions],
+ measures: extendMsNames.length > 0 ? extendMsNames : measureNames,
+ significance: space.score,
+ score: space.score,
+ description: space.description,
+ };
+ } else {
+ visSpace = {
+ dimensions: space.extendDs.length > 0 ? space.extendDs : space.dimensions,
+ measures: extendMsNames.length > 0 ? extendMsNames : measureNames,
+ significance: space.score,
+ score: space.score,
+ description: space.description,
+ };
+ }
+ const allMeasures = [...space.measures, ...space.extendMs];
+ return {
+ schema: engine.specification(visSpace).schema,
+ dataView: engine.cube.getCuboid([...space.dimensions, ...space.extendDs]).getAggregatedRows(allMeasures.map(m => m.key), allMeasures.map(m => m.op))
+ };
+ })
+ }
+}
\ No newline at end of file
diff --git a/src/interfaces.ts b/src/interfaces.ts
new file mode 100644
index 00000000..01effc09
--- /dev/null
+++ b/src/interfaces.ts
@@ -0,0 +1,136 @@
+import { StatFuncName } from "visual-insights/build/esm/statistics";
+import { AggFC } from 'cube-core/built/types';
+import { IAnalyticType, IMutField as VIMutField, ISemanticType } from 'visual-insights';
+
+/**
+ * @deprecated
+ */
+export interface Record {
+ [key: string]: any;
+}
+
+export interface IRow {
+ [key: string]: any;
+}
+/**
+ * @deprecated
+ */
+export type SemanticType = 'quantitative' | 'nominal' | 'ordinal' | 'temporal';
+
+export interface Filters {
+ [key: string]: any[];
+}
+
+export interface IMutField {
+ fid: string;
+ key?: string;
+ name?: string;
+ disable?: boolean;
+ semanticType: ISemanticType;
+ analyticType: IAnalyticType;
+};
+
+export interface IField {
+ /**
+ * fid: key in data record
+ */
+ fid: string;
+ /**
+ * display name for field
+ */
+ name: string;
+ /**
+ * aggregator's name
+ */
+ aggName?: string;
+ semanticType: ISemanticType;
+ analyticType: IAnalyticType;
+ cmp?: (a: any, b: any) => number;
+}
+
+export interface IViewField extends IField {
+ dragId: string;
+ sort?: 'none' | 'ascending' | 'descending';
+}
+
+export interface Measure extends IField {
+ aggregator?: AggFC;
+ minWidth?: number;
+ formatter?: (value: number | undefined) => number | string;
+ [key: string]: any;
+}
+
+export interface DataSet {
+ id: string;
+ name: string;
+ rawFields: IMutField[];
+ dataSource: IRow[];
+}
+
+export interface IFieldNeighbor {
+ key: string;
+ cc: number;
+}
+
+export interface IMeasure {
+ key: string;
+ op: StatFuncName
+}
+
+export interface IDataSet {
+ id: string;
+ name: string;
+ rawFields: IMutField[];
+ dsId: string;
+}
+/**
+ * use as props to create a new dataset(IDataSet).
+ */
+export interface IDataSetInfo {
+ name: string;
+ rawFields: IMutField[];
+ dataSource: IRow[]
+}
+
+export interface IDataSource {
+ id: string;
+ data: IRow[]
+}
+
+export interface IFilterField extends IViewField {
+ rule: IFilterRule | null;
+}
+
+export interface DraggableFieldState {
+ fields: IViewField[];
+ dimensions: IViewField[];
+ measures: IViewField[];
+ rows: IViewField[];
+ columns: IViewField[];
+ color: IViewField[];
+ opacity: IViewField[];
+ size: IViewField[];
+ shape: IViewField[];
+ theta: IViewField[];
+ radius: IViewField[];
+ filters: IFilterField[];
+}
+
+export interface IDraggableStateKey {
+ id: keyof DraggableFieldState;
+ mode: number
+}
+
+export type IFilterRule = {
+ type: 'range';
+ value: readonly [number, number];
+} | {
+ type: 'temporal range';
+ value: readonly [number, number];
+} | {
+ type: 'one of';
+ value: Set<string | number>;
+};
+
+
+export type IStackMode = 'none' | 'stack' | 'normalize';
\ No newline at end of file
diff --git a/src/locales/en-US.json b/src/locales/en-US.json
new file mode 100644
index 00000000..3a944efa
--- /dev/null
+++ b/src/locales/en-US.json
@@ -0,0 +1,133 @@
+{
+ "constant": {
+ "mark_type": {
+ "__enum__": "Mark Type",
+ "auto": "Auto",
+ "bar": "Bar",
+ "line": "Polyline",
+ "area": "Area",
+ "trail": "Trail",
+ "point": "Scatter",
+ "circle": "Circle",
+ "tick": "Tick",
+ "rect": "Rectangle",
+ "arc": "Arc",
+ "boxplot": "Box (Box Plot)"
+ },
+ "stack_mode": {
+ "__enum__": "Stack Mode",
+ "none": "None",
+ "stack": "Stack",
+ "normalize": "Normalize"
+ },
+ "layout_type": {
+ "__enum__": "Layout Mode",
+ "auto": "Auto",
+ "fixed": "Fixed"
+ },
+ "draggable_key": {
+ "fields": "Fields",
+ "columns": "Columns",
+ "rows": "Rows",
+ "color": "Color",
+ "opacity": "Opacity",
+ "size": "Size",
+ "shape": "Shape",
+ "theta": "Angle",
+ "radius": "Radius",
+ "filters": "Filters"
+ },
+ "aggregator": {
+ "sum": "Sum",
+ "mean": "Mean",
+ "count": "Count"
+ },
+ "filter_type": {
+ "one_of": "One-Of",
+ "range": "Range",
+ "temporal_range": "Date Range"
+ }
+ },
+ "App": {
+ "labels": {
+ "data_interpretation": "Interpret Data"
+ }
+ },
+ "DataSource": {
+ "labels": {
+ "cur_dataset": "Current Dataset"
+ },
+ "buttons": {
+ "create_dataset": "Create Dataset"
+ },
+ "dialog": {
+ "create_data_source": "New Data Source",
+ "data_types": "Choose Import Methods",
+ "text_file_data": "Open Local Text File",
+ "public_data": "Use Public Dataset",
+ "data_source_type": "Data Source Type: [{{sourceType}}]",
+ "file": {
+ "open": "Open...",
+ "submit": "Submit",
+ "dataset_name": "Dataset Name"
+ },
+ "public": {
+ "submit": "Submit"
+ }
+ }
+ },
+ "main": {
+ "tablist": {
+ "new": "+ New",
+ "autoTitle": "Chart {{idx}}"
+ },
+ "tabpanel": {
+ "menubar": {
+ "undo": "Undo",
+ "redo": "Redo"
+ },
+ "settings": {
+ "toggle": {
+ "aggregation": "Aggregation",
+ "stack": "Stack",
+ "axes_resize": "Axes Resizing",
+ "debug": "debugging"
+ },
+ "sort": "Sorting Order",
+ "button": {
+ "ascending": "Sort in Ascending Order",
+ "descending": "Sort in Descending Order",
+ "transpose": "Transpose"
+ },
+ "size": "Resize",
+ "size_setting": {
+ "width": "Width",
+ "height": "Height"
+ }
+ },
+ "DatasetFields": {
+ "field_list": "Field List"
+ }
+ }
+ },
+ "filters": {
+ "to_edit": "Edit This Rule",
+ "empty_rule": "! (empty rule)",
+ "editing": "Edit Rule",
+ "form": {
+ "name": "Field",
+ "rule": "Rule"
+ },
+ "header": {
+ "visibility": "Visible",
+ "value": "Label",
+ "count": "Count"
+ },
+ "selected_keys": "{{ count }} items selected",
+ "btn": {
+ "select_all": "Select All",
+ "unselect_all": "Unselect All",
+ "reverse": "Reverse Selection"
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/locales/i18n.ts b/src/locales/i18n.ts
new file mode 100644
index 00000000..f52c0188
--- /dev/null
+++ b/src/locales/i18n.ts
@@ -0,0 +1,50 @@
+import i18n, { Resource } from 'i18next';
+import { initReactI18next } from 'react-i18next';
+import LanguageDetector from 'i18next-browser-languagedetector';
+
+import localeEnUs from './en-US.json';
+import localeZhCn from './zh-CN.json';
+
+
+const locales: Resource & { 'en-US': any } = {
+ 'en': {
+ translation: localeEnUs,
+ },
+ 'en-US': {
+ translation: localeEnUs,
+ },
+ 'zh': {
+ translation: localeZhCn,
+ },
+ 'zh-CN': {
+ translation: localeZhCn,
+ },
+} as const;
+
+i18n.use(initReactI18next).use(LanguageDetector).init({
+ fallbackLng: 'en-US',
+ interpolation: {
+ escapeValue: false, // not needed for react as it escapes by default
+ },
+ resources: locales,
+});
+
+const loadedLangs: string[] = []; // exclude built-in keys to enable rewrite
+
+export const mergeLocaleRes = (resources: { [lang: string]: Resource }) => {
+ for (const lang in resources) {
+ if (Object.prototype.hasOwnProperty.call(resources, lang)) {
+ if (loadedLangs.includes(lang)) {
+ continue;
+ }
+
+ loadedLangs.push(lang);
+ const resource = resources[lang];
+ i18n.addResourceBundle(lang, 'translation', resource, false, true);
+ }
+ }
+};
+
+export const setLocaleLanguage = (lang: string) => {
+ return i18n.changeLanguage(lang);
+};
diff --git a/src/locales/zh-CN.json b/src/locales/zh-CN.json
new file mode 100644
index 00000000..3cd34504
--- /dev/null
+++ b/src/locales/zh-CN.json
@@ -0,0 +1,133 @@
+{
+ "constant": {
+ "mark_type": {
+ "__enum__": "标记类型",
+ "auto": "自动",
+ "bar": "条形",
+ "line": "折线",
+ "area": "面积",
+ "trail": "痕迹",
+ "point": "散点",
+ "circle": "圆",
+ "tick": "标记",
+ "rect": "矩形",
+ "arc": "弧形",
+ "boxplot": "统计箱"
+ },
+ "layout_type": {
+ "__enum__": "尺寸模式",
+ "auto": "自动",
+ "fixed": "固定"
+ },
+ "stack_mode": {
+ "__enum__": "堆叠模式",
+ "none": "关闭",
+ "stack": "堆叠",
+ "normalize": "归一化"
+ },
+ "draggable_key": {
+ "fields": "字段",
+ "columns": "列",
+ "rows": "行",
+ "color": "颜色",
+ "opacity": "透明度",
+ "size": "大小",
+ "shape": "形状",
+ "theta": "角度",
+ "radius": "半径",
+ "filters": "筛选器"
+ },
+ "aggregator": {
+ "sum": "求和",
+ "mean": "平均值",
+ "count": "计数"
+ },
+ "filter_type": {
+ "one_of": "按值筛选",
+ "range": "按范围筛选",
+ "temporal_range": "按日期范围筛选"
+ }
+ },
+ "App": {
+ "labels": {
+ "data_interpretation": "数据解读"
+ }
+ },
+ "DataSource": {
+ "labels": {
+ "cur_dataset": "当前数据集"
+ },
+ "buttons": {
+ "create_dataset": "创建数据集"
+ },
+ "dialog": {
+ "create_data_source": "创建数据源",
+ "data_types": "选择类型",
+ "text_file_data": "从文件中导入",
+ "public_data": "公共数据集",
+ "data_source_type": "数据源类型:[{{sourceType}}]",
+ "file": {
+ "open": "打开文件...",
+ "submit": "确认",
+ "dataset_name": "数据集名称"
+ },
+ "public": {
+ "submit": "确认"
+ }
+ }
+ },
+ "main": {
+ "tablist": {
+ "new": "+ 新建",
+ "autoTitle": "图表 {{idx}}"
+ },
+ "tabpanel": {
+ "menubar": {
+ "undo": "撤销",
+ "redo": "重做"
+ },
+ "settings": {
+ "toggle": {
+ "aggregation": "聚合度量",
+ "stack": "开启堆叠",
+ "axes_resize": "坐标系缩放",
+ "debug": "图表调试"
+ },
+ "sort": "排序",
+ "button": {
+ "ascending": "升序排序",
+ "descending": "降序排序",
+ "transpose": "转置"
+ },
+ "size": "调整尺寸",
+ "size_setting": {
+ "width": "宽度",
+ "height": "高度"
+ }
+ },
+ "DatasetFields": {
+ "field_list": "字段列表"
+ }
+ }
+ },
+ "filters": {
+ "to_edit": "编辑这条规则",
+ "empty_rule": "! (空的规则)",
+ "editing": "编辑规则",
+ "form": {
+ "name": "字段",
+ "rule": "规则"
+ },
+ "header": {
+ "visibility": "可见",
+ "value": "标签",
+ "count": "计数"
+ },
+ "selected_keys": "{{ count }} 个标签已选择",
+ "btn": {
+ "select_all": "全部选中",
+ "unselect_all": "全部取消",
+ "reverse": "选择反向"
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/main.tsx b/src/main.tsx
new file mode 100644
index 00000000..04758a0d
--- /dev/null
+++ b/src/main.tsx
@@ -0,0 +1,10 @@
+import React from 'react'
+import ReactDOM from 'react-dom'
+import { GraphicWalker } from './index'
+
+ReactDOM.render(
+ <React.StrictMode>
+ <GraphicWalker />
+ </React.StrictMode>,
+ document.getElementById('root')
+)
diff --git a/src/renderer/index.tsx b/src/renderer/index.tsx
new file mode 100644
index 00000000..2157056c
--- /dev/null
+++ b/src/renderer/index.tsx
@@ -0,0 +1,104 @@
+import { runInAction, toJS } from 'mobx';
+import { observer } from 'mobx-react-lite';
+import { Resizable } from 're-resizable';
+import React, { useState, useCallback, useEffect, useRef } from 'react';
+import { applyFilter } from '../services';
+import { useGlobalStore } from '../store';
+import ReactVega from '../vis/react-vega';
+
+
+const ReactiveRenderer: React.FC = props => {
+ const { vizStore, commonStore } = useGlobalStore();
+ const { draggableFieldState, visualConfig } = vizStore;
+ const { geoms, interactiveScale, defaultAggregated, stack, showActions, size } = visualConfig;
+ const { currentDataset } = commonStore;
+ const { filters } = draggableFieldState;
+
+ const rows = toJS(draggableFieldState.rows)
+ const columns = toJS(draggableFieldState.columns)
+ const color = toJS(draggableFieldState.color)
+ const opacity = toJS(draggableFieldState.opacity)
+ const shape = toJS(draggableFieldState.shape)
+ const theta = toJS(draggableFieldState.theta)
+ const radius = toJS(draggableFieldState.radius)
+ const sizeChannel = toJS(draggableFieldState.size)
+
+ const rowLeftFacetFields = rows.slice(0, -1).filter(f => f.analyticType === 'dimension');
+ const colLeftFacetFields = columns.slice(0, -1).filter(f => f.analyticType === 'dimension');
+
+ const hasFacet = rowLeftFacetFields.length > 0 || colLeftFacetFields.length > 0;
+
+ const onGeomClick = useCallback((values: any, e: any) => {
+ runInAction(() => {
+ commonStore.showEmbededMenu([e.pageX, e.pageY])
+ commonStore.setFilters(values);
+ })
+ }, [])
+
+ // apply filters
+ const { dataSource } = currentDataset;
+
+ const [data, setData] = useState(dataSource);
+ const pendingPromiseRef = useRef<Promise<typeof data> | null>(null);
+
+ useEffect(() => {
+ setData(dataSource);
+ }, [dataSource]);
+
+ useEffect(() => {
+ const p = filters.length === 0 ? Promise.resolve(dataSource) : applyFilter(dataSource, filters);
+ pendingPromiseRef.current = p;
+
+ p.then(d => {
+ if (p !== pendingPromiseRef.current) {
+ // This promise is out-of-date
+ return;
+ }
+
+ setData(d);
+ }).catch(err => {
+ console.error(err);
+ });
+
+ return () => {
+ pendingPromiseRef.current = null;
+ };
+ }, [dataSource, filters]);
+
+ return <Resizable className={(size.mode === 'fixed' && !hasFacet) ? "border-blue-400 border-2 overflow-hidden" : ""}
+ style={{ padding: '12px' }}
+ onResizeStop={(e, direction, ref, d) => {
+ vizStore.setChartLayout({
+ mode: 'fixed',
+ width: size.width + d.width,
+ height: size.height + d.height
+ })
+ }}
+ size={{
+ width: size.width + 'px',
+ height: size.height + 'px',
+ }}>
+ <ReactVega
+ layoutMode={size.mode}
+ interactiveScale={interactiveScale}
+ geomType={geoms[0]}
+ defaultAggregate={defaultAggregated}
+ stack={stack}
+ dataSource={data}
+ rows={rows}
+ columns={columns}
+ color={color[0]}
+ theta={theta[0]}
+ radius={radius[0]}
+ shape={shape[0]}
+ opacity={opacity[0]}
+ size={sizeChannel[0]}
+ onGeomClick={onGeomClick}
+ showActions={showActions}
+ width={size.width - 12 * 4}
+ height={size.height - 12 * 4}
+ />
+ </Resizable>
+}
+
+export default observer(ReactiveRenderer);
diff --git a/src/segments/visNav.tsx b/src/segments/visNav.tsx
new file mode 100644
index 00000000..1168478a
--- /dev/null
+++ b/src/segments/visNav.tsx
@@ -0,0 +1,48 @@
+import React, { useCallback } from "react";
+import { observer } from "mobx-react-lite";
+import PureTabs, { ITabOption } from "../components/tabs/pureTab";
+import { useGlobalStore } from "../store";
+
+
+const ADD_KEY = '_add';
+
+const VisNav: React.FC = (props) => {
+ const { vizStore, commonStore } = useGlobalStore();
+ const { visIndex, visList } = vizStore;
+ const { currentDataset } = commonStore;
+
+ const tabs: ITabOption[] = visList.map((v) => ({
+ key: v.visId,
+ label: v.name?.[0] || 'vis',
+ options: v.name?.[1],
+ }));
+
+ tabs.push({
+ key: ADD_KEY,
+ label: 'main.tablist.new'
+ });
+
+ const visSelectionHandler = useCallback((tabKey: string, tabIndex: number) => {
+ if (tabKey === ADD_KEY) {
+ vizStore.addVisualization();
+ vizStore.initMetaState(currentDataset)
+ } else {
+ vizStore.selectVisualization(tabIndex);
+ }
+ }, [currentDataset, vizStore])
+
+ const editLabelHandler = useCallback((content: string, tabIndex: number) => {
+ vizStore.setVisName(tabIndex, content)
+ }, [])
+
+ return (
+ <PureTabs
+ selectedKey={visList[visIndex].visId}
+ tabs={tabs}
+ onEditLabel={editLabelHandler}
+ onSelected={visSelectionHandler}
+ />
+ );
+};
+
+export default observer(VisNav);
diff --git a/src/services.ts b/src/services.ts
new file mode 100644
index 00000000..1c0d4f57
--- /dev/null
+++ b/src/services.ts
@@ -0,0 +1,140 @@
+import { IRow, Filters, SemanticType, IMeasure, IMutField, IFilterField } from './interfaces';
+// import { Insight } from 'visual-insights';
+/* eslint import/no-webpack-loader-syntax:0 */
+// @ts-ignore
+// eslint-disable-next-line
+// import InsightSpaceWorker from './workers/InsightService.worker?worker';
+/* eslint import/no-webpack-loader-syntax:0 */
+// @ts-ignore
+// eslint-disable-next-line
+import ExplainerWorker from './workers/explainer.worker?worker&inline';
+import FilterWorker from './workers/filter.worker?worker&inline';
+import { View, Specification } from 'visual-insights';
+import { IExplaination, IMeasureWithStat } from './insights';
+import { toJS } from 'mobx';
+
+interface WorkerState {
+ eWorker: Worker | null;
+}
+
+const workerState: WorkerState = {
+ eWorker: null,
+}
+
+function workerService<T, R>(worker: Worker, data: R): Promise<T> {
+ return new Promise<T>((resolve, reject) => {
+ worker.postMessage(data);
+ worker.onmessage = (e: MessageEvent) => {
+ resolve(e.data);
+ };
+ worker.onerror = (e: ErrorEvent) => {
+ reject({
+ success: false,
+ message: e,
+ });
+ };
+ });
+}
+
+interface ExplainParams {
+ dimensions: string[];
+ measures: string[];
+ dataSource: IRow[];
+ filters?: Filters;
+ currentSpace: {
+ dimensions: string[];
+ measures: IMeasure[];
+ };
+}
+export interface IVisSpace {
+ dataView: IRow[];
+ schema: Specification;
+}
+interface ExplainReturns {
+ explainations: IExplaination[];
+ valueExp: IMeasureWithStat[];
+ visSpaces: IVisSpace[];
+ fieldsWithSemanticType: Array<{ key: string; type: SemanticType }>;
+}
+export async function getExplaination(props: ExplainParams) {
+ const worker = workerState.eWorker;
+ if (worker === null) throw new Error('init worker first.')
+ let result: ExplainReturns = {
+ explainations: [],
+ valueExp: [],
+ visSpaces: [],
+ fieldsWithSemanticType: [],
+ };
+ try {
+ result = await workerService<ExplainReturns, { type: string; data: ExplainParams }>(
+ worker,
+ {
+ type: 'getExplaination',
+ data: props
+ }
+ );
+ return result;
+ } catch (error) {
+ console.error(error);
+ }
+ return result;
+}
+
+interface PreAnalysisParams {
+ fields: IMutField[];
+ dataSource: IRow[];
+}
+export async function preAnalysis(props: PreAnalysisParams) {
+ if (workerState.eWorker !== null) {
+ workerState.eWorker.terminate();
+ }
+ try {
+ workerState.eWorker = new ExplainerWorker() as Worker;
+ const tmp = await workerService<boolean, { type: string; data: PreAnalysisParams}>(workerState.eWorker, { type: 'preAnalysis', data: props });
+ } catch (error) {
+ console.error(error)
+ }
+}
+
+export function destroyWorker() {
+ if (workerState.eWorker) {
+ workerState.eWorker.terminate();
+ workerState.eWorker = null;
+ }
+}
+
+let filterWorker: Worker | null = null;
+let filterWorkerAutoTerminator: NodeJS.Timeout | null = null;
+
+export const applyFilter = async (data: readonly IRow[], filters: readonly IFilterField[]): Promise<IRow[]> => {
+ if (filterWorkerAutoTerminator !== null) {
+ clearTimeout(filterWorkerAutoTerminator);
+ filterWorkerAutoTerminator = null;
+ }
+
+ if (filterWorker === null) {
+ filterWorker = new FilterWorker();
+ }
+
+ try {
+ const res: IRow[] = await workerService(filterWorker, {
+ dataSource: data,
+ filters: toJS(filters),
+ });
+
+ return res;
+ } catch (error) {
+ // @ts-ignore @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause
+ throw new Error('Uncaught error in FilterWorker', { cause: error });
+ } finally {
+ if (filterWorkerAutoTerminator !== null) {
+ clearTimeout(filterWorkerAutoTerminator);
+ }
+
+ filterWorkerAutoTerminator = setTimeout(() => {
+ filterWorker?.terminate();
+ filterWorker = null;
+ filterWorkerAutoTerminator = null;
+ }, 60_000); // Destroy the worker when no request is received for 60 secs
+ }
+};
diff --git a/src/store/commonStore.ts b/src/store/commonStore.ts
new file mode 100644
index 00000000..1094cc20
--- /dev/null
+++ b/src/store/commonStore.ts
@@ -0,0 +1,164 @@
+import { DataSet, Filters, IDataSet, IDataSetInfo, IDataSource, IMutField, Record } from '../interfaces';
+import { makeAutoObservable, observable, toJS } from 'mobx';
+import { transData } from '../dataSource/utils';
+import { extendCountField } from '../utils';
+
+interface VisualConfig {
+ defaultAggregated: boolean;
+ geoms: string[];
+ defaultStack: boolean;
+}
+
+export class CommonStore {
+ public datasets: IDataSet[] = [];
+ public dataSources: IDataSource[] = [];
+ public dsIndex: number = 0;
+ public tmpDSName: string = '';
+ public tmpDSRawFields: IMutField[] = [];
+ public tmpDataSource: Record[] = [];
+ public showDSPanel: boolean = false;
+ public showInsightBoard: boolean = false;
+ public vizEmbededMenu: { show: boolean; position: [number, number] } = { show: false, position: [0, 0] };
+
+ public filters: Filters = {};
+ constructor () {
+ this.datasets = [];
+ this.dataSources = [];
+ makeAutoObservable(this, {
+ dataSources: observable.ref,
+ tmpDataSource: observable.ref,
+ filters: observable.ref
+ });
+ }
+ public get currentDataset (): DataSet {
+ const datasetIndex = this.dsIndex;
+ if (this.datasets.length > 0) {
+ const dataSourceId = this.datasets[datasetIndex].dsId;
+ const dataSource = this.dataSources.find(d => d.id === dataSourceId);
+ const rawFields = toJS(this.datasets[datasetIndex].rawFields)
+ const base = extendCountField((dataSource ? dataSource.data : []), rawFields)
+ return {
+ ...this.datasets[datasetIndex],
+ dataSource: base.dataSource,
+ rawFields: base.fields
+ }
+ }
+ return {
+ id: '__null_ds__',
+ name: 'Empty Dataset',
+ rawFields: [],
+ dataSource: []
+ }
+ }
+ public setShowDSPanel (show: boolean) {
+ this.showDSPanel = show;
+ }
+ public setShowInsightBoard (show: boolean) {
+ this.showInsightBoard = show;
+ }
+ public showEmbededMenu (position: [number, number]) {
+ this.vizEmbededMenu.show = true;
+ this.vizEmbededMenu.position = position;
+ }
+ public closeEmbededMenu () {
+ this.vizEmbededMenu.show = false;
+ }
+ public initTempDS () {
+ this.tmpDSName = 'New Dataset'
+ this.tmpDSRawFields = [];
+ this.tmpDataSource = [];
+ }
+ public updateTempFields (fields: IMutField[]) {
+ this.tmpDSRawFields = fields;
+ }
+
+ public updateTempFieldAnalyticType (fieldKey: string, analyticType: IMutField['analyticType']) {
+ const field = this.tmpDSRawFields.find(f => f.fid === fieldKey);
+ if (field) {
+ field.analyticType = analyticType;
+ }
+ }
+
+ public updateTempName (name: string) {
+ this.tmpDSName = name;
+ }
+
+ public updateTempDS (rawData: Record[]) {
+ const result = transData(rawData);
+ // TODO: need fix web-data-loader issue #2
+ this.tmpDataSource = result.dataSource.slice(0, -1);
+ this.tmpDSRawFields = result.fields;
+ }
+
+ public updateTempSTDDS (dataset: IDataSetInfo) {
+ this.tmpDataSource = dataset.dataSource;
+ this.tmpDSRawFields = dataset.rawFields;
+ this.tmpDSName = dataset.name;
+ }
+
+ public commitTempDS () {
+ const { tmpDSName, tmpDSRawFields, tmpDataSource } = this;
+ this.addAndUseDS({
+ dataSource: tmpDataSource,
+ rawFields: tmpDSRawFields,
+ name: tmpDSName
+ })
+ this.setShowDSPanel(false);
+ this.initTempDS();
+ }
+
+ public startDSBuildingTask () {
+ this.initTempDS();
+ this.showDSPanel = true;
+ }
+ public addAndUseDS(dataset: IDataSetInfo) {
+ const datasetId = this.addDS(dataset);
+ this.dsIndex = this.datasets.length - 1;
+ return datasetId
+ }
+ public addDS(dataset: IDataSetInfo) {
+ const timestamp = new Date().getTime();
+ const dataSetId = `dst-${timestamp}`
+ const dataSourceId = `dse-${timestamp}`;
+ this.dataSources.push({
+ id: dataSourceId,
+ data: dataset.dataSource
+ })
+ this.datasets.push({
+ id: dataSetId,
+ name: dataset.name,
+ rawFields: dataset.rawFields,
+ dsId: dataSourceId
+ })
+ return dataSetId;
+ }
+ public removeDS(datasetId: string) {
+ const datasetIndex = this.datasets.findIndex(d => d.id === datasetId);
+ if (datasetIndex > -1) {
+ const dataSourceId = this.datasets[datasetIndex].dsId;
+ const dataSourceIndex = this.dataSources.findIndex(d => d.id === dataSourceId);
+ this.dataSources.splice(dataSourceIndex, 1);
+ this.datasets.splice(datasetIndex, 1);
+ }
+ }
+ public useDS(datasetId: string) {
+ const datasetIndex = this.datasets.findIndex(d => d.id === datasetId);
+ if (datasetIndex > -1) {
+ this.dsIndex = datasetIndex;
+ }
+ }
+ public createPlaceholderDS() {
+ this.addDS({
+ name: '新数据源',
+ dataSource: [],
+ rawFields: []
+ })
+ }
+ public setFilters (props: Filters) {
+ this.filters = props;
+ }
+ public destroy () {
+ this.dataSources = [];
+ this.datasets = [];
+ }
+}
\ No newline at end of file
diff --git a/src/store/index.tsx b/src/store/index.tsx
new file mode 100644
index 00000000..4caf9756
--- /dev/null
+++ b/src/store/index.tsx
@@ -0,0 +1,34 @@
+import React, { useContext, useEffect } from 'react';
+import { CommonStore } from './commonStore'
+import { VizSpecStore } from './visualSpecStore'
+
+interface GlobalStore {
+ commonStore: CommonStore;
+ vizStore: VizSpecStore;
+}
+
+const commonStore = new CommonStore();
+const vizStore = new VizSpecStore(commonStore);
+
+const initStore: GlobalStore = {
+ commonStore,
+ vizStore
+}
+
+const StoreContext = React.createContext<GlobalStore>(initStore);
+
+export const StoreWrapper: React.FC = props => {
+ useEffect(() => {
+ return () => {
+ initStore.vizStore.destroy();
+ initStore.commonStore.destroy();
+ }
+ }, [])
+ return <StoreContext.Provider value={initStore}>
+ { props.children }
+ </StoreContext.Provider>
+}
+
+export function useGlobalStore() {
+ return useContext(StoreContext);
+}
diff --git a/src/store/visualSpecStore.ts b/src/store/visualSpecStore.ts
new file mode 100644
index 00000000..de7e41ad
--- /dev/null
+++ b/src/store/visualSpecStore.ts
@@ -0,0 +1,708 @@
+import { IReactionDisposer, makeAutoObservable, observable, reaction, toJS } from "mobx";
+import produce from 'immer';
+import { v4 as uuidv4 } from 'uuid';
+import { Specification } from "visual-insights";
+import { DataSet, DraggableFieldState, IFilterRule, IViewField } from "../interfaces";
+import { GEMO_TYPES } from "../config";
+import { makeBinField, makeLogField } from "../utils/normalization";
+import { CommonStore } from "./commonStore";
+
+interface IVisualConfig {
+ defaultAggregated: boolean;
+ geoms: string[];
+ stack: 'none' | 'stack' | 'normalize';
+ showActions: boolean;
+ interactiveScale: boolean;
+ sorted: 'none' | 'ascending' | 'descending';
+ size: {
+ mode: 'auto' | 'fixed';
+ width: number;
+ height: number;
+ }
+}
+
+export const MetaFieldKeys: Array<keyof DraggableFieldState> = [
+ 'dimensions',
+ 'measures',
+ 'fields'
+]
+
+const CHANNEL_LIMIT = {
+ rows: Infinity,
+ columns: Infinity,
+ color: 1,
+ opacity: 1,
+ size: 1,
+ shape: 1,
+ theta: 1,
+ radius: 1
+}
+
+function getChannelSizeLimit (channel: string): number {
+ if (typeof CHANNEL_LIMIT[channel] === 'undefined') return Infinity;
+ return CHANNEL_LIMIT[channel];
+}
+
+
+
+function geomAdapter (geom: string) {
+ switch (geom) {
+ case 'interval':
+ return 'bar';
+ case 'line':
+ return 'line';
+ case 'boxplot':
+ return 'boxplot';
+ case 'area':
+ return 'area';
+ case 'point':
+ return 'point';
+ case 'arc':
+ return 'arc';
+ case 'circle':
+ return 'circle';
+ case 'heatmap':
+ return 'circle'
+ case 'rect':
+ return 'rect'
+ case 'tick':
+ default:
+ return 'tick'
+ }
+}
+
+function initEncoding(): DraggableFieldState {
+ return {
+ dimensions: [],
+ measures: [],
+ fields: [],
+ rows: [],
+ columns: [],
+ color: [],
+ opacity: [],
+ size: [],
+ shape: [],
+ radius: [],
+ theta: [],
+ filters: [],
+ };
+}
+
+function initVisualConfig (): IVisualConfig {
+ return {
+ defaultAggregated: true,
+ geoms: [GEMO_TYPES[0]!],
+ stack: 'stack',
+ showActions: false,
+ interactiveScale: false,
+ sorted: 'none',
+ size: {
+ mode: 'auto',
+ width: 320,
+ height: 200
+ }
+ }
+}
+
+type DeepReadonly<T extends Record<keyof any, any>> = {
+ readonly [K in keyof T]: T[K] extends Record<keyof any, any> ? DeepReadonly<T[K]> : T[K];
+};
+
+interface IVisSpec {
+ readonly visId: string;
+ readonly name?: [string, Record<string, any>?];
+ readonly encodings: DeepReadonly<DraggableFieldState>;
+ readonly config: DeepReadonly<IVisualConfig>;
+}
+
+const MAX_HISTORY_SIZE = 20;
+
+class IVisSpecWithHistory {
+
+ readonly visId: IVisSpec['visId'];
+ private snapshots: Pick<IVisSpec, 'name' | 'encodings' | 'config'>[];
+ private cursor: number;
+
+ constructor(data: IVisSpec) {
+ this.visId = data.visId;
+ this.snapshots = [{
+ name: data.name,
+ encodings: data.encodings,
+ config: data.config,
+ }];
+ this.cursor = 0;
+ }
+
+ private get frame(): Readonly<IVisSpec> {
+ return {
+ visId: this.visId,
+ ...this.snapshots[this.cursor]!,
+ };
+ }
+
+ private batchFlag = false;
+
+ private commit(snapshot: Partial<Readonly<IVisSpecWithHistory['snapshots'][0]>>): void {
+ if (this.batchFlag) {
+ // batch this commit
+ this.snapshots[this.cursor] = toJS({
+ ...this.frame,
+ ...snapshot,
+ });
+
+ return;
+ }
+
+ this.batchFlag = true;
+
+ this.snapshots = [
+ ...this.snapshots.slice(0, this.cursor + 1),
+ toJS({
+ ...this.frame,
+ ...snapshot,
+ }),
+ ];
+
+ if (this.snapshots.length > MAX_HISTORY_SIZE) {
+ this.snapshots.splice(0, 1);
+ }
+
+ this.cursor = this.snapshots.length - 1;
+
+ requestAnimationFrame(() => this.batchFlag = false);
+ }
+
+ public get canUndo() {
+ return this.cursor > 0;
+ }
+
+ public undo(): boolean {
+ if (this.cursor === 0) {
+ return false;
+ }
+
+ this.cursor -= 1;
+
+ return true;
+ }
+
+ public get canRedo() {
+ return this.cursor < this.snapshots.length - 1;
+ }
+
+ public redo(): boolean {
+ if (this.cursor === this.snapshots.length - 1) {
+ return false;
+ }
+
+ this.cursor += 1;
+
+ return true;
+ }
+
+ public rebase() {
+ this.snapshots = [this.snapshots[this.cursor]];
+ this.cursor = 0;
+ }
+
+ get name() {
+ return this.frame.name;
+ }
+
+ set name(name: IVisSpec['name']) {
+ this.commit({
+ name,
+ });
+ }
+
+ get encodings(): DeepReadonly<DraggableFieldState> {
+ return this.frame.encodings;
+ }
+
+ set encodings(encodings: IVisSpec['encodings']) {
+ this.commit({
+ encodings,
+ });
+ }
+
+ get config(): DeepReadonly<IVisualConfig> {
+ return this.frame.config;
+ }
+
+ set config(config: IVisSpec['config']) {
+ this.commit({
+ config,
+ });
+ }
+
+}
+
+export class VizSpecStore {
+ // public fields: IViewField[] = [];
+ private commonStore: CommonStore;
+ /**
+ * This segment will always refers to the state of the active tab -
+ * `this.visList[this.visIndex].encodings`.
+ * Notice that observing rule of `this.visList` is `"shallow"`
+ * so mobx will NOT compare every deep value of `this.visList`,
+ * because the active tab is the only item in the list that may change.
+ * @readonly
+ * Assignment or mutable operations applied to ANY members of this segment
+ * is strictly FORBIDDEN.
+ * Members of it can only be got as READONLY objects.
+ *
+ * If you're trying to change the value of it and let mobx catch the action to trigger an update,
+ * please use `this.useMutable()` to access to a writable reference
+ * (an `immer` draft) of `this.visList[this.visIndex]`.
+ */
+ public readonly draggableFieldState: DeepReadonly<DraggableFieldState>;
+ private reactions: IReactionDisposer[] = []
+ /**
+ * This segment will always refers to the state of the active tab -
+ * `this.visList[this.visIndex].config`.
+ * Notice that observing rule of `this.visList` is `"shallow"`
+ * so mobx will NOT compare every deep value of `this.visList`,
+ * because the active tab is the only item in the list that may change.
+ * @readonly
+ * Assignment or mutable operations applied to ANY members of this segment
+ * is strictly FORBIDDEN.
+ * Members of it can only be got as READONLY objects.
+ *
+ * If you're trying to change the value of it and let mobx catch the action to trigger an update,
+ * please use `this.useMutable()` to access to a writable reference
+ * (an `immer` draft) of `this.visList[this.visIndex]`.
+ */
+ public readonly visualConfig: Readonly<IVisualConfig>;
+ public visList: IVisSpecWithHistory[] = [];
+ public visIndex: number = 0;
+ public canUndo = false;
+ public canRedo = false;
+ public editingFilterIdx: number | null = null;
+ constructor (commonStore: CommonStore) {
+ this.commonStore = commonStore;
+ this.draggableFieldState = initEncoding();
+ this.visualConfig = initVisualConfig();
+ this.visList.push(new IVisSpecWithHistory({
+ name: ['main.tablist.autoTitle', { idx: 1 }],
+ visId: uuidv4(),
+ config: this.visualConfig,
+ encodings: this.draggableFieldState,
+ }));
+ makeAutoObservable(this, {
+ visList: observable.shallow,
+ });
+ // FIXME!!!!!
+ this.reactions.push(
+ reaction(() => commonStore.currentDataset, (dataset) => {
+ this.initState();
+ this.initMetaState(dataset);
+ }),
+ reaction(() => this.visList[this.visIndex], frame => {
+ // @ts-ignore Allow assignment here to trigger watch
+ this.draggableFieldState = frame.encodings;
+ // @ts-ignore Allow assignment here to trigger watch
+ this.visualConfig = frame.config;
+ this.canUndo = frame.canUndo;
+ this.canRedo = frame.canRedo;
+ }),
+ );
+ }
+ /**
+ * Allow to change any deep member of `encodings` or `config`
+ * in the active tab `this.visList[this.visIndex]`.
+ *
+ * - `tab.encodings`
+ *
+ * A mutable reference of `this.draggableFieldState`
+ *
+ * - `tab.config`
+ *
+ * A mutable reference of `this.visualConfig`
+ */
+ private useMutable(
+ cb: (tab: {
+ encodings: DraggableFieldState;
+ config: IVisualConfig;
+ }) => void,
+ ) {
+ const { encodings, config } = produce({
+ encodings: this.visList[this.visIndex].encodings,
+ config: this.visList[this.visIndex].config,
+ }, draft => { cb(draft) }); // notice that cb() may unexpectedly returns a non-nullable value
+
+ this.visList[this.visIndex].encodings = encodings;
+ this.visList[this.visIndex].config = config;
+
+ this.canUndo = this.visList[this.visIndex].canUndo;
+ this.canRedo = this.visList[this.visIndex].canRedo;
+
+ // @ts-ignore Allow assignment here to trigger watch
+ this.visualConfig = config;
+ // @ts-ignore Allow assignment here to trigger watch
+ this.draggableFieldState = encodings;
+ }
+ public undo() {
+ if (this.visList[this.visIndex]?.undo()) {
+ this.canUndo = this.visList[this.visIndex].canUndo;
+ this.canRedo = this.visList[this.visIndex].canRedo;
+ // @ts-ignore Allow assignment here to trigger watch
+ this.visualConfig = this.visList[this.visIndex].config;
+ // @ts-ignore Allow assignment here to trigger watch
+ this.draggableFieldState = this.visList[this.visIndex].encodings;
+ }
+ }
+ public redo() {
+ if (this.visList[this.visIndex]?.redo()) {
+ this.canUndo = this.visList[this.visIndex].canUndo;
+ this.canRedo = this.visList[this.visIndex].canRedo;
+ // @ts-ignore Allow assignment here to trigger watch
+ this.visualConfig = this.visList[this.visIndex].config;
+ // @ts-ignore Allow assignment here to trigger watch
+ this.draggableFieldState = this.visList[this.visIndex].encodings;
+ }
+ }
+ private freezeHistory() {
+ this.visList[this.visIndex]?.rebase();
+ this.canUndo = this.visList[this.visIndex].canUndo;
+ this.canRedo = this.visList[this.visIndex].canRedo;
+ }
+ /**
+ * dimension fields in visualization
+ */
+ public get viewDimensions (): IViewField[] {
+ const { draggableFieldState } = this;
+ const state = toJS(draggableFieldState);
+ const fields: IViewField[] = [];
+ (Object.keys(state) as (keyof DraggableFieldState)[])
+ .filter(dkey => !MetaFieldKeys.includes(dkey))
+ .forEach(dkey => {
+ fields.push(...state[dkey].filter(f => f.analyticType === 'dimension'))
+ })
+ return fields;
+ }
+ /**
+ * dimension fields in visualization
+ */
+ public get viewMeasures (): IViewField[] {
+ const { draggableFieldState } = this;
+ const state = toJS(draggableFieldState);
+ const fields: IViewField[] = [];
+ (Object.keys(state) as (keyof DraggableFieldState)[])
+ .filter(dkey => !MetaFieldKeys.includes(dkey))
+ .forEach(dkey => {
+ fields.push(...state[dkey].filter(f => f.analyticType === 'measure'))
+ })
+ return fields;
+ }
+ public addVisualization () {
+ this.visList.push(new IVisSpecWithHistory({
+ name: ['main.tablist.autoTitle', { idx: this.visList.length + 1 }],
+ visId: uuidv4(),
+ config: initVisualConfig(),
+ encodings: initEncoding()
+ }));
+ this.visIndex = this.visList.length - 1;
+ }
+ public selectVisualization (visIndex: number) {
+ this.visIndex = visIndex;
+ }
+ public setVisName (visIndex: number, name: string) {
+ this.useMutable(() => {
+ this.visList[visIndex].name = [name];
+ });
+ }
+ public initState () {
+ this.useMutable(tab => {
+ tab.encodings = initEncoding();
+ this.freezeHistory();
+ });
+ }
+ public initMetaState (dataset: DataSet) {
+ this.useMutable(({ encodings }) => {
+ encodings.fields = dataset.rawFields.map((f) => ({
+ dragId: uuidv4(),
+ fid: f.fid,
+ name: f.name || f.fid,
+ aggName: f.analyticType === 'measure' ? 'sum' : undefined,
+ analyticType: f.analyticType,
+ semanticType: f.semanticType
+ }));
+ encodings.dimensions = dataset.rawFields
+ .filter(f => f.analyticType === 'dimension')
+ .map((f) => ({
+ dragId: uuidv4(),
+ fid: f.fid,
+ name: f.name || f.fid,
+ semanticType: f.semanticType,
+ analyticType: f.analyticType,
+ }));
+ encodings.measures = dataset.rawFields
+ .filter(f => f.analyticType === 'measure')
+ .map((f) => ({
+ dragId: uuidv4(),
+ fid: f.fid,
+ name: f.name || f.fid,
+ analyticType: f.analyticType,
+ semanticType: f.semanticType,
+ aggName: 'sum'
+ }));
+ });
+
+ this.freezeHistory();
+ // this.draggableFieldState.measures.push({
+ // dragId: uuidv4(),
+ // fid: COUNT_FIELD_ID,
+ // name: '记录数',
+ // analyticType: 'measure',
+ // semanticType: 'quantitative',
+ // aggName: 'count'
+ // })
+ }
+ public clearState () {
+ this.useMutable(({ encodings }) => {
+ for (let key in encodings) {
+ if (!MetaFieldKeys.includes(key as keyof DraggableFieldState)) {
+ encodings[key] = [];
+ }
+ }
+ });
+ }
+ public setVisualConfig<K extends keyof IVisualConfig>(configKey: K, value: IVisualConfig[K]) {
+ this.useMutable(({ config }) => {
+ switch (true) {
+ case ['defaultAggregated', 'defaultStack', 'showActions', 'interactiveScale'].includes(configKey): {
+ return (config as unknown as {[k: string]: boolean})[configKey] = Boolean(value);
+ }
+ case configKey === 'geoms' && Array.isArray(value):
+ case configKey === 'size' && typeof value === 'object':
+ case configKey === 'sorted':
+ case configKey === 'stack':
+ {
+ return config[configKey] = value;
+ }
+ default: {
+ console.error('unknown key' + configKey);
+ }
+ }
+ });
+ }
+ public transformCoord (coord: 'cartesian' | 'polar') {
+ if (coord === 'polar') {
+
+ }
+ }
+ public setChartLayout(props: {mode: IVisualConfig['size']['mode'], width?: number, height?: number }) {
+ this.useMutable(({ config }) => {
+ const {
+ mode = config.size.mode,
+ width = config.size.width,
+ height = config.size.height
+ } = props;
+
+ config.size.mode = mode;
+ config.size.width = width;
+ config.size.height = height;
+ });
+ }
+ public reorderField(stateKey: keyof DraggableFieldState, sourceIndex: number, destinationIndex: number) {
+ if (MetaFieldKeys.includes(stateKey)) return;
+ if (sourceIndex === destinationIndex) return;
+
+ this.useMutable(({ encodings }) => {
+ const fields = encodings[stateKey];
+ const [field] = fields.splice(sourceIndex, 1);
+ fields.splice(destinationIndex, 0, field);
+ });
+ }
+ public moveField(sourceKey: keyof DraggableFieldState, sourceIndex: number, destinationKey: keyof DraggableFieldState, destinationIndex: number) {
+ if (sourceKey === 'filters') {
+ return this.removeField(sourceKey, sourceIndex);
+ } else if (destinationKey === 'filters') {
+ return this.appendFilter(destinationIndex, this.draggableFieldState[sourceKey][sourceIndex])
+ }
+
+ this.useMutable(({ encodings }) => {
+ let movingField: IViewField;
+ // 来源是不是metafield,是->clone;不是->直接删掉
+ if (MetaFieldKeys.includes(sourceKey)) {
+ // use a different dragId
+ movingField = {
+ ...toJS(encodings[sourceKey][sourceIndex]), // toJS will NOT shallow copy a object here
+ dragId: uuidv4(),
+ };
+ } else {
+ [movingField] = encodings[sourceKey].splice(sourceIndex, 1);
+ }
+ // 目的地是metafields的情况,只有在来源也是metafields时,会执行字段类型转化操作
+ if (MetaFieldKeys.includes(destinationKey)) {
+ if (!MetaFieldKeys.includes(sourceKey))return;
+ encodings[sourceKey].splice(sourceIndex, 1);
+ movingField.analyticType = destinationKey === 'dimensions' ? 'dimension' : 'measure';
+ }
+ const limitSize = getChannelSizeLimit(destinationKey);
+ const fixedDestinationIndex = Math.min(destinationIndex, limitSize - 1);
+ const overflowSize = Math.max(0, encodings[destinationKey].length + 1 - limitSize);
+ encodings[destinationKey].splice(fixedDestinationIndex, overflowSize, movingField);
+ });
+ }
+ public removeField(sourceKey: keyof DraggableFieldState, sourceIndex: number) {
+ if (MetaFieldKeys.includes(sourceKey))return;
+
+ this.useMutable(({ encodings }) => {
+ const fields = encodings[sourceKey];
+ fields.splice(sourceIndex, 1);
+ });
+ }
+ private appendFilter(index: number, data: IViewField) {
+ this.useMutable(({ encodings }) => {
+ encodings.filters.splice(index, 0, {
+ ...toJS(data),
+ dragId: uuidv4(),
+ rule: null,
+ });
+ this.editingFilterIdx = index;
+ });
+ }
+ public writeFilter(index: number, rule: IFilterRule | null) {
+ this.useMutable(({ encodings }) => {
+ encodings.filters[index].rule = rule;
+ });
+ }
+ public setFilterEditing(index: number) {
+ this.editingFilterIdx = index;
+ }
+ public closeFilterEditing() {
+ this.editingFilterIdx = null;
+ }
+ public transpose() {
+ this.useMutable(({ encodings }) => {
+ const fieldsInCup = encodings.columns;
+
+ encodings.columns = encodings.rows;
+ encodings.rows = fieldsInCup as typeof encodings.rows; // assume this as writable
+ });
+ }
+ public createBinField(stateKey: keyof DraggableFieldState, index: number) {
+ this.useMutable(({ encodings }) => {
+ const originField = encodings[stateKey][index]
+ const binField: IViewField = {
+ fid: uuidv4(),
+ dragId: uuidv4(),
+ name: `bin(${originField.name})`,
+ semanticType: 'ordinal',
+ analyticType: 'dimension',
+ };
+ encodings.dimensions.push(binField);
+ this.commonStore.currentDataset.dataSource = makeBinField(this.commonStore.currentDataset.dataSource, originField.fid, binField.fid)
+ });
+ }
+ public createLogField(stateKey: keyof DraggableFieldState, index: number) {
+ if (stateKey === 'filters') {
+ return;
+ }
+
+ this.useMutable(({ encodings }) => {
+ const originField = encodings[stateKey][index];
+ const logField: IViewField = {
+ fid: uuidv4(),
+ dragId: uuidv4(),
+ name: `log10(${originField.name})`,
+ semanticType: 'quantitative',
+ analyticType: originField.analyticType
+ };
+ encodings[stateKey].push(logField);
+ this.commonStore.currentDataset.dataSource = makeLogField(this.commonStore.currentDataset.dataSource, originField.fid, logField.fid)
+ });
+ }
+ public setFieldAggregator (stateKey: keyof DraggableFieldState, index: number, aggName: string) {
+ this.useMutable(({ encodings }) => {
+ const fields = encodings[stateKey];
+
+ if (fields[index]) {
+ encodings[stateKey][index].aggName = aggName;
+ }
+ });
+ }
+ public get sortCondition () {
+ const { rows, columns } = this.draggableFieldState;
+ const yField = rows.length > 0 ? rows[rows.length - 1] : null;
+ const xField = columns.length > 0 ? columns[columns.length - 1] : null;
+ if (xField !== null && xField.analyticType === 'dimension' && yField !== null && yField.analyticType === 'measure') {
+ return true
+ }
+ if (xField !== null && xField.analyticType === 'measure' && yField !== null && yField.analyticType === 'dimension') {
+ return true
+ }
+ return false;
+ }
+ public setFieldSort (stateKey: keyof DraggableFieldState, index: number, sortType: 'none' | 'ascending' | 'descending') {
+ this.useMutable(({ encodings }) => {
+ encodings[stateKey][index].sort = sortType;
+ });
+ }
+ public applyDefaultSort(sortType: 'none' | 'ascending' | 'descending' = 'ascending') {
+ this.useMutable(({ encodings }) => {
+ const { rows, columns } = encodings;
+ const yField = rows.length > 0 ? rows[rows.length - 1] : null;
+ const xField = columns.length > 0 ? columns[columns.length - 1] : null;
+
+ if (xField !== null && xField.analyticType === 'dimension' && yField !== null && yField.analyticType === 'measure') {
+ encodings.columns[columns.length - 1].sort = sortType;
+ return;
+ }
+ if (xField !== null && xField.analyticType === 'measure' && yField !== null && yField.analyticType === 'dimension') {
+ encodings.rows[rows.length - 1].sort = sortType;
+ return;
+ }
+ });
+ }
+ public appendField (destinationKey: keyof DraggableFieldState, field: IViewField | undefined) {
+ if (MetaFieldKeys.includes(destinationKey)) return;
+ if (typeof field === 'undefined') return;
+ if (destinationKey === 'filters') {
+ return;
+ }
+
+
+ this.useMutable(({ encodings }) => {
+ const cloneField = toJS(field);
+ cloneField.dragId = uuidv4();
+ encodings[destinationKey].push(cloneField);
+ });
+ }
+ public renderSpec (spec: Specification) {
+ this.useMutable(tab => {
+ const fields = tab.encodings.fields;
+ // thi
+ // const [xField, yField, ] = spec.position;
+ this.clearState();
+ if (spec.geomType && spec.geomType.length > 0) {
+ this.setVisualConfig('geoms', spec.geomType.map(g => geomAdapter(g)));
+ }
+ if (spec.facets && spec.facets.length > 0) {
+ const facets = (spec.facets || []).concat(spec.highFacets || []);
+ for (let facet of facets) {
+ this.appendField('rows', fields.find(f => f.fid === facet));
+ }
+ }
+ if (spec.position) {
+ if (spec.position.length > 0) this.appendField('columns', fields.find(f => f.fid === spec.position![0]));
+ if (spec.position.length > 1) this.appendField('rows', fields.find(f => f.fid === spec.position![1]));
+ }
+ if (spec.color && spec.color.length > 0) {
+ this.appendField('color', fields.find(f => f.fid === spec.color![0]));
+ }
+ if (spec.size && spec.size.length > 0) {
+ this.appendField('size', fields.find(f => f.fid === spec.size![0]));
+ }
+ if (spec.opacity && spec.opacity.length > 0) {
+ this.appendField('opacity', fields.find(f => f.fid === spec.opacity![0]));
+ }
+ });
+ }
+ public destroy () {
+ this.reactions.forEach(rec => {
+ rec();
+ })
+ }
+}
\ No newline at end of file
diff --git a/src/utils/autoMark.ts b/src/utils/autoMark.ts
new file mode 100644
index 00000000..1b518a35
--- /dev/null
+++ b/src/utils/autoMark.ts
@@ -0,0 +1,34 @@
+import { ISemanticType } from "visual-insights";
+
+/**
+ *
+ * @param semanticTypeList semanticTypeList.length <= 2,调用时,手动将columns 和 rows的最后一个元素组合传进来
+ * @returns geom(mark) type
+ */
+export function autoMark(semanticTypeList: ISemanticType[]): string {
+ if (semanticTypeList.length < 2) {
+ if (semanticTypeList[0] === 'temporal') return 'tick'
+ return 'bar'
+ }
+ const couter: Map<ISemanticType, number> = new Map();
+ (['nominal', 'ordinal', 'quantitative', 'temporal'] as ISemanticType[]).forEach(s => {
+ couter.set(s, 0)
+ })
+ for (let st of semanticTypeList) {
+ // if (!couter.has(st)) {
+ // couter.set(st, 0);
+ // }
+ couter.set(st, couter.get(st)! + 1);
+ }
+ if (couter.get('nominal') === 1 || couter.get('ordinal') === 1) {
+ return 'bar'
+ }
+ if (couter.get('temporal') === 1 && couter.get('quantitative') === 1) {
+ return 'line'
+ }
+ if (couter.get('quantitative') === 2) {
+ return 'point'
+ }
+ return 'point'
+ // if (cou)
+}
\ No newline at end of file
diff --git a/src/utils/index.ts b/src/utils/index.ts
new file mode 100644
index 00000000..6def1098
--- /dev/null
+++ b/src/utils/index.ts
@@ -0,0 +1,250 @@
+import { COUNT_FIELD_ID } from '../constants';
+import { Record, Filters, IMutField, IRow } from '../interfaces';
+interface NRReturns {
+ normalizedData: Record[];
+ maxMeasures: Record;
+ minMeasures: Record;
+ totalMeasures: Record
+}
+function normalizeRecords(dataSource: Record[], measures: string[]): NRReturns {
+ const maxMeasures: Record = {};
+ const minMeasures: Record = {};
+ const totalMeasures: Record = {};
+ measures.forEach(mea => {
+ maxMeasures[mea] = -Infinity;
+ minMeasures[mea] = Infinity;
+ totalMeasures[mea] = 0;
+ })
+ dataSource.forEach(record => {
+ measures.forEach(mea => {
+ maxMeasures[mea] = Math.max(record[mea], maxMeasures[mea])
+ minMeasures[mea] = Math.min(record[mea], minMeasures[mea])
+ })
+ })
+ const newData: Record[] = [];
+ dataSource.forEach(record => {
+ const norRecord: Record = { ... record };
+ measures.forEach(mea => {
+ // norRecord[mea] = norRecord[mea] - minMeasures[mea]
+ totalMeasures[mea] += Math.abs(norRecord[mea]);
+ })
+ newData.push(norRecord)
+ })
+ newData.forEach(record => {
+ measures.forEach(mea => {
+ record[mea] /= totalMeasures[mea];
+ })
+ })
+ return {
+ normalizedData: newData,
+ maxMeasures,
+ minMeasures,
+ totalMeasures
+ }
+}
+
+function normalize2PositiveRecords(dataSource: Record[], measures: string[]): NRReturns {
+ const maxMeasures: Record = {};
+ const minMeasures: Record = {};
+ const totalMeasures: Record = {};
+ measures.forEach((mea) => {
+ maxMeasures[mea] = -Infinity;
+ minMeasures[mea] = Infinity;
+ totalMeasures[mea] = 0;
+ });
+ dataSource.forEach((record) => {
+ measures.forEach((mea) => {
+ maxMeasures[mea] = Math.max(record[mea], maxMeasures[mea]);
+ minMeasures[mea] = Math.min(record[mea], minMeasures[mea]);
+ });
+ });
+ const newData: Record[] = [];
+ dataSource.forEach((record) => {
+ const norRecord: Record = { ...record };
+ measures.forEach((mea) => {
+ norRecord[mea] = norRecord[mea] - minMeasures[mea]
+ totalMeasures[mea] += norRecord[mea];
+ });
+ newData.push(norRecord);
+ });
+ newData.forEach((record) => {
+ measures.forEach((mea) => {
+ record[mea] /= totalMeasures[mea];
+ // if (isNaN(record[mea])) {
+ // record[mea] = 1
+ // }
+ });
+ });
+ return {
+ normalizedData: newData,
+ maxMeasures,
+ minMeasures,
+ totalMeasures,
+ };
+}
+
+export function checkMajorFactor(data: Record[], childrenData: Map<any, Record[]>, dimensions: string[], measures: string[]): { majorKey: string; majorSum: number } {
+ const { normalizedData, maxMeasures, minMeasures, totalMeasures } = normalizeRecords(data, measures);
+ let majorSum = Infinity;
+ let majorKey = '';
+ for (let [key, childData] of childrenData) {
+ let sum = 0;
+ for (let record of normalizedData ) {
+ let target = childData.find(childRecord => {
+ return dimensions.every(dim => record[dim] === childRecord[dim])
+ })
+ if (target) {
+ measures.forEach(mea => {
+ let targetValue = (typeof target![mea] === 'number' && !isNaN(target![mea])) ? target![mea] : 0;
+ targetValue = (targetValue) / totalMeasures[mea]
+ sum += Math.abs(record[mea] - targetValue)
+ })
+ } else {
+ measures.forEach(mea => {
+ sum += Math.abs(record[mea]);
+ })
+ }
+ }
+ if (sum < majorSum) {
+ majorSum = sum;
+ majorKey = key;
+ }
+ }
+ majorSum /= (measures.length * 2);
+ return { majorKey, majorSum };
+}
+
+export function checkChildOutlier(data: Record[], childrenData: Map<any, Record[]>, dimensions: string[], measures: string[]): { outlierKey: string; outlierSum: number } {
+ // const { normalizedData, maxMeasures, minMeasures, totalMeasures } = normalize2PositiveRecords(data, measures);
+ const { normalizedData, maxMeasures, minMeasures, totalMeasures } = normalizeRecords(data, measures);
+ let outlierSum = -Infinity;
+ let outlierKey = '';
+ for (let [key, childData] of childrenData) {
+ // const { normalizedData: normalizedChildData } = normalize2PositiveRecords(childData, measures);
+ const { normalizedData: normalizedChildData } = normalizeRecords(childData, measures);
+ let sum = 0;
+ for (let record of normalizedData ) {
+ let target = normalizedChildData.find(childRecord => {
+ return dimensions.every(dim => record[dim] === childRecord[dim])
+ })
+ if (target) {
+ measures.forEach(mea => {
+ let targetValue = (typeof target![mea] === 'number' && !isNaN(target![mea])) ? target![mea] : 0;
+ sum += Math.abs(record[mea] - targetValue)
+ })
+ } else {
+ measures.forEach(mea => {
+ sum += Math.abs(record[mea]);
+ })
+ }
+ }
+ if (sum > outlierSum) {
+ outlierSum = sum;
+ outlierKey = key;
+ }
+ }
+ outlierSum /= (measures.length * 2);
+ return { outlierKey, outlierSum };
+}
+export interface IPredicate {
+ key: string;
+ type: 'discrete' | 'continuous';
+ range: Set<any> | [number, number];
+}
+export function getPredicates(selection: Record[], dimensions: string[], measures: string[]): IPredicate[] {
+ const predicates: IPredicate[] = [];
+ dimensions.forEach(dim => {
+ predicates.push({
+ key: dim,
+ type: 'discrete',
+ range: new Set()
+ })
+ })
+ measures.forEach(mea => {
+ predicates.push({
+ key: mea,
+ type: 'continuous',
+ range: [Infinity, -Infinity]
+ })
+ })
+ selection.forEach(record => {
+ dimensions.forEach((dim, index) => {
+ (predicates[index].range as Set<any>).add(record[dim])
+ })
+ measures.forEach((mea, index) => {
+ (predicates[index].range as [number, number])[0] = Math.min(
+ (predicates[index].range as [number, number])[0],
+ record[mea]
+ );
+ (predicates[index].range as [number, number])[1] = Math.max(
+ (predicates[index].range as [number, number])[1],
+ record[mea]
+ );
+ })
+ })
+ return predicates;
+}
+
+export function getPredicatesFromVegaSignals(signals: Filters, dimensions: string[], measures: string[]): IPredicate[] {
+ const predicates: IPredicate[] = [];
+ dimensions.forEach(dim => {
+ predicates.push({
+ type: 'discrete',
+ range: new Set(signals[dim]),
+ key: dim
+ });
+ });
+ return predicates;
+}
+
+export function filterByPredicates(data: Record[], predicates: IPredicate[]): Record[] {
+ const filterData = data.filter((record) => {
+ return predicates.every((pre) => {
+ if (pre.type === 'continuous') {
+ return (
+ record[pre.key] >= (pre.range as [number, number])[0] &&
+ record[pre.key] <= (pre.range as [number, number])[1]
+ );
+ } else {
+ return (pre.range as Set<any>).has(record[pre.key]);
+ }
+ });
+ });
+ return filterData;
+}
+
+export function applyFilters(dataSource: Record[], filters: Filters): Record[] {
+ let filterKeys = Object.keys(filters);
+ return dataSource.filter((record) => {
+ let keep = true;
+ for (let filterKey of filterKeys) {
+ if (filters[filterKey].length > 0) {
+ if (!filters[filterKey].includes(record[filterKey])) {
+ keep = false;
+ break;
+ }
+ }
+ }
+ return keep;
+ });
+}
+
+export function extendCountField (dataSource: IRow[], fields: IMutField[]): {
+ dataSource: IRow[];
+ fields: IMutField[];
+} {
+ const nextData = dataSource.map(r => ({
+ ...r,
+ [COUNT_FIELD_ID]: 1
+ }))
+ const nextFields = fields.concat({
+ fid: COUNT_FIELD_ID,
+ name: '记录数',
+ analyticType: 'measure',
+ semanticType: 'quantitative'
+ })
+ return {
+ dataSource: nextData,
+ fields: nextFields
+ }
+}
\ No newline at end of file
diff --git a/src/utils/normalization.ts b/src/utils/normalization.ts
new file mode 100644
index 00000000..35c6e3cd
--- /dev/null
+++ b/src/utils/normalization.ts
@@ -0,0 +1,158 @@
+import { IRow, Record } from '../interfaces';
+
+export function normalizeWithParent(
+ data: Record[],
+ parentData: Record[],
+ measures: string[],
+ syncScale: boolean
+): {
+ normalizedData: Record[];
+ normalizedParentData: Record[];
+} {
+ const totalMeasuresOfParent: Record = {};
+ const totalMeasures: Record = {};
+ measures.forEach(mea => {
+ totalMeasuresOfParent[mea] = 0;
+ totalMeasures[mea] = 0;
+ })
+ parentData.forEach(record => {
+ measures.forEach(mea => {
+ totalMeasuresOfParent[mea] += Math.abs(record[mea])
+ })
+ })
+ data.forEach(record => {
+ measures.forEach(mea => {
+ totalMeasures[mea] += Math.abs(record[mea]);
+ })
+ })
+ const normalizedParentData: Record[] = [];
+ parentData.forEach(record => {
+ const newRecord = { ...record };
+ measures.forEach(mea => {
+ newRecord[mea] /= totalMeasuresOfParent[mea];
+ })
+ normalizedParentData.push(newRecord);
+ })
+ const normalizedData: Record[] = [];
+ data.forEach(record => {
+ const newRecord = { ...record };
+ measures.forEach(mea => {
+ if (syncScale) {
+ newRecord[mea] /= totalMeasuresOfParent[mea];
+ } else {
+ newRecord[mea] /= totalMeasures[mea]
+ }
+ })
+ normalizedData.push(newRecord);
+ })
+ return {
+ normalizedData,
+ normalizedParentData
+ };
+}
+
+export function compareDistribution (distribution1: Record[], distribution2: Record[], dimensions: string[], measures: string[]): number {
+ let score = 0;
+ let count = 0;
+ const tagsForD2: boolean[] = distribution2.map(() => false);
+ for (let record of distribution1) {
+ let targetRecordIndex = distribution2.findIndex((r, i) => {
+ return !tagsForD2[i] && dimensions.every(dim => r[dim] === record[dim])
+ })
+ if (targetRecordIndex > -1) {
+ tagsForD2[targetRecordIndex] = true;
+ const targetRecord = distribution2[targetRecordIndex];
+ for (let mea of measures) {
+ // score += Math.abs(targetRecord[mea] - record[mea]);
+ // if (targetRecord[mea] === 0 || record[mea] === 0) continue;
+ // score += Math.max(targetRecord[mea], record[mea]) / Math.min(targetRecord[mea], record[mea]);
+
+ score = Math.max(
+ score,
+ Math.max(targetRecord[mea], record[mea]) /
+ Math.min(targetRecord[mea], record[mea])
+ );
+ count++;
+ }
+ } else {
+ for (let mea of measures) {
+ score = Math.max(score, record[mea])
+ // score += Math.abs(record[mea])
+ count++;
+ }
+ }
+ }
+ for (let i = 0; i < distribution2.length; i++) {
+ if (!tagsForD2[i]) {
+ tagsForD2[i] = true;
+ for (let mea of measures) {
+ // score += Math.abs(distribution2[i][mea])
+ score = Math.max(score, distribution2[i][mea]);
+ count++;
+ }
+ }
+ }
+ return score;
+}
+
+export function normalizeByMeasures (dataSource: Record[], measures: string[]) {
+ let sums: Map<string, number> = new Map();
+
+ measures.forEach(mea => {
+ sums.set(mea, 0);
+ })
+
+ dataSource.forEach(record => {
+ measures.forEach(mea => {
+ sums.set(mea, sums.get(mea)! + Math.abs(record[mea]));
+ })
+ })
+
+ const ans: Record[] = [];
+ dataSource.forEach(record => {
+ const norRecord: Record = { ...record };
+ measures.forEach(mea => {
+ norRecord[mea] /= sums.get(mea)!;
+ })
+ ans.push(norRecord);
+ });
+ return ans;
+}
+
+export function getDistributionDifference(dataSource: Record[], dimensions: string[], measure1: string, measure2: string): number {
+ let score = 0;
+ for (let record of dataSource) {
+ // score += Math.abs(record[measure1] - record[measure2])
+ if (record[measure1] === 0 || record[measure2] === 0) continue;
+ score += Math.max(record[measure1], record[measure2]) / Math.min(record[measure1], record[measure2]);
+ }
+ return score;
+}
+
+export function makeBinField (dataSource: IRow[], fid: string, binFid: string, binSize: number | undefined = 10) {
+ let _min = Infinity;
+ let _max = -Infinity;
+ for (let i = 0; i < dataSource.length; i++) {
+ let val = dataSource[i][fid];
+ if (val > _max) _max = val;
+ if (val < _min) _min = val;
+ }
+ const step = (_max - _min) / binSize;
+ return dataSource.map(r => {
+ let bIndex = Math.floor((r[fid] - _min) / step);
+ if (bIndex === binSize) bIndex = binSize - 1;
+ return {
+ ...r,
+ [binFid]: bIndex * step + _min
+ }
+ })
+}
+
+export function makeLogField (dataSource: IRow[], fid: string, logFid: string) {
+ return dataSource.map(r => {
+ return {
+ ...r,
+ [logFid]: (typeof r[fid] === 'number' && r[fid] > 0) ? Math.log10(r[fid]) : null
+ }
+ })
+}
\ No newline at end of file
diff --git a/src/vis/future-react-vega.tsx b/src/vis/future-react-vega.tsx
new file mode 100644
index 00000000..671b4292
--- /dev/null
+++ b/src/vis/future-react-vega.tsx
@@ -0,0 +1,192 @@
+/**
+ * TODO: This file will be used when vega-lite facets bug is fixed.
+ * https://github.com/vega/vega-lite/issues/4680
+ */
+import React, { useEffect, useRef } from 'react';
+import { IField, IViewField, Record } from '../interfaces';
+import embed from 'vega-embed';
+import { Subject } from 'rxjs'
+import * as op from 'rxjs/operators';
+import { ScenegraphEvent } from 'vega';
+const SELECTION_NAME = 'geom';
+interface ReactVegaProps {
+ rows: IField[];
+ columns: IField[];
+ dataSource: Record[];
+ defaultAggregate?: boolean;
+ geomType: string;
+ color?: IField;
+ opacity?: IField;
+ size?: IField;
+ onGeomClick?: (values: any, e: any) => void
+}
+const NULL_FIELD: IField = {
+ fid: '',
+ name: '',
+ semanticType: 'quantitative',
+ analyticType: 'measure',
+ aggName: 'sum'
+}
+const click$ = new Subject<ScenegraphEvent>();
+const selection$ = new Subject<any>();
+const geomClick$ = selection$.pipe(
+ op.withLatestFrom(click$),
+ op.filter(([values, _]) => {
+ if (Object.keys(values).length > 0) {
+ return true
+ }
+ return false
+ })
+);
+function getFieldType(field: IField): 'quantitative' | 'nominal' | 'ordinal' | 'temporal' {
+ if (field.analyticType === 'measure') return 'quantitative';
+ return 'nominal';
+}
+
+function getSingleView(xField: IField, yField: IField, color: IField, opacity: IField, size: IField, row: IField, col: IField, defaultAggregated: boolean, geomType: string) {
+ return {
+ mark: geomType,
+ encoding: {
+ x: {
+ field: xField.fid,
+ type: getFieldType(xField),
+ aggregate:
+ xField.analyticType === 'measure' &&
+ defaultAggregated &&
+ (xField.aggName as any),
+ },
+ y: {
+ field: yField.fid,
+ type: getFieldType(yField),
+ aggregate:
+ yField.analyticType === 'measure' &&
+ defaultAggregated &&
+ (yField.aggName as any),
+ },
+ row: row !== NULL_FIELD ? {
+ field: row.fid,
+ type: getFieldType(row),
+ } : undefined,
+ column: col !== NULL_FIELD ? {
+ field: col.fid,
+ type: getFieldType(col),
+ } : undefined,
+ color: color !== NULL_FIELD ? {
+ field: color.fid,
+ type: getFieldType(color)
+ } : undefined,
+ opacity: opacity !== NULL_FIELD ? {
+ field: opacity.fid,
+ type: getFieldType(opacity)
+ } : undefined,
+ size: size !== NULL_FIELD ? {
+ field: size.fid,
+ type: getFieldType(size)
+ } : undefined
+ }
+ };
+}
+const ReactVega: React.FC<ReactVegaProps> = props => {
+ const {
+ dataSource = [],
+ rows = [],
+ columns = [],
+ defaultAggregate = true,
+ geomType,
+ color,
+ opacity,
+ size,
+ onGeomClick
+ } = props;
+ const container = useRef<HTMLDivElement>(null);
+ useEffect(() => {
+ const clickSub = geomClick$.subscribe(([values, e]) => {
+ if (onGeomClick) {
+ onGeomClick(values, e);
+ }
+ })
+ return () => {
+ clickSub.unsubscribe();
+ }
+ }, []);
+ useEffect(() => {
+ if (container.current) {
+ const rowDims = rows.filter(f => f.analyticType === 'dimension');
+ const colDims = columns.filter(f => f.analyticType === 'dimension');
+ const rowMeas = rows.filter(f => f.analyticType === 'measure');
+ const colMeas = columns.filter(f => f.analyticType === 'measure');
+
+ const yField = rows.length > 0 ? rows[rows.length - 1] : NULL_FIELD;
+ const xField = columns.length > 0 ? columns[columns.length - 1] : NULL_FIELD;
+
+ const rowFacetFields = rowDims.slice(0, -1);
+ const colFacetFields = colDims.slice(0, -1);
+ const rowFacetField = rowFacetFields.length > 0 ? rowFacetFields[rowFacetFields.length - 1] : NULL_FIELD;
+ const colFacetField = colFacetFields.length > 0 ? colFacetFields[colFacetFields.length - 1] : NULL_FIELD;
+
+ const rowRepeatFields = rowMeas.length === 0 ? rowDims.slice(-1) : rowMeas;//rowMeas.slice(0, -1);
+ const colRepeatFields = colMeas.length === 0 ? colDims.slice(-1) : colMeas;//colMeas.slice(0, -1);
+
+ const rowRepeatField = rowRepeatFields.length > 0 ? rowRepeatFields[rowRepeatFields.length - 1] : NULL_FIELD;
+ const colRepeatField = colRepeatFields.length > 0 ? colRepeatFields[colRepeatFields.length - 1] : NULL_FIELD;
+
+ const dimensions = [...rows, ...columns, color, opacity, size].filter(f => Boolean(f)).map(f => (f as IField).fid)
+
+ const spec: any = {
+ data: {
+ values: dataSource,
+ },
+ selection: {
+ [SELECTION_NAME]: {
+ type: 'single',
+ fields: dimensions
+ }
+ }
+ };
+ if (false) {
+ // const singleView = getSingleView(
+ // xField,
+ // yField,
+ // color ? color : NULL_FIELD,
+ // opacity ? opacity : NULL_FIELD,
+ // size ? size : NULL_FIELD,
+ // rowFacetField,
+ // colFacetField,
+ // defaultAggregate,
+ // geomType
+ // );
+ // spec.mark = singleView.mark;
+ // spec.encoding = singleView.encoding;
+ } else {
+ spec.concat = [];
+ for (let i = 0; i < rowRepeatFields.length; i++) {
+ for (let j = 0; j < colRepeatFields.length; j++) {
+ const singleView = getSingleView(
+ colRepeatFields[j] || NULL_FIELD,
+ rowRepeatFields[i] || NULL_FIELD,
+ color ? color : NULL_FIELD,
+ opacity ? opacity : NULL_FIELD,
+ size ? size : NULL_FIELD,
+ rowFacetField,
+ colFacetField,
+ defaultAggregate,
+ geomType
+ );
+ spec.concat.push(singleView)
+ }
+ }
+ }
+ embed(container.current, spec, { mode: 'vega-lite', actions: false }).then(res => {
+ res.view.addEventListener('click', (e) => {
+ click$.next(e);
+ })
+ res.view.addSignalListener(SELECTION_NAME, (name: any, values: any) => {
+ selection$.next(values);
+ });
+ });
+ }
+ }, [dataSource, rows, columns, defaultAggregate, geomType, color, opacity, size]);
+ return <div ref={container}></div>
+}
+
+export default ReactVega;
diff --git a/src/vis/gen-vega.tsx b/src/vis/gen-vega.tsx
new file mode 100644
index 00000000..da4ceb85
--- /dev/null
+++ b/src/vis/gen-vega.tsx
@@ -0,0 +1,53 @@
+import React, { useRef, useEffect, useState } from 'react';
+import embed, { vega, Result } from 'vega-embed';
+import { Spec } from 'vega';
+// import { Result } from 'vega-embed';
+
+interface GenVegaProps {
+ dataSource: any[];
+ spec: Spec;
+ signalHandler?: {
+ [key: string]: (name: any, value: any) => void;
+ };
+}
+const GenVega: React.FC<GenVegaProps> = (props) => {
+ const { spec, dataSource, signalHandler = {} } = props;
+ const container = useRef<HTMLDivElement>(null);
+ const [view, setView] = useState<Result['view']>();
+ useEffect(() => {
+ if (container.current) {
+ embed(container.current, spec).then((res) => {
+ setView(res.view);
+ });
+ }
+ }, [spec]);
+ useEffect(() => {
+ if (view && signalHandler) {
+ for (let key in signalHandler) {
+ view.addSignalListener('sl', signalHandler[key]);
+ }
+ }
+ return () => {
+ if (view && signalHandler) {
+ for (let key in signalHandler) {
+ view.removeSignalListener('sl', signalHandler[key]);
+ }
+ }
+ };
+ }, [view, signalHandler]);
+ useEffect(() => {
+ view &&
+ view.change(
+ 'dataSource',
+ vega
+ .changeset()
+ .remove(() => true)
+ .insert(dataSource)
+ );
+ view && view.resize();
+ view && view.runAsync();
+ }, [view, dataSource]);
+ return <div ref={container} />;
+};
+
+export default GenVega;
diff --git a/src/vis/react-vega.tsx b/src/vis/react-vega.tsx
new file mode 100644
index 00000000..3eadb129
--- /dev/null
+++ b/src/vis/react-vega.tsx
@@ -0,0 +1,397 @@
+import React, { useEffect, useState, useMemo } from 'react';
+import { IViewField, IRow, IStackMode } from '../interfaces';
+import embed from 'vega-embed';
+import { Subject } from 'rxjs'
+import * as op from 'rxjs/operators';
+import { ScenegraphEvent } from 'vega';
+import { autoMark } from '../utils/autoMark';
+import { ISemanticType } from 'visual-insights';
+import styled from 'styled-components';
+import { COUNT_FIELD_ID } from '../constants';
+
+const CanvaContainer = styled.div<{rowSize: number; colSize: number;}>`
+ display: grid;
+ grid-template-columns: repeat(${props => props.colSize}, 1fr);
+ grid-template-rows: repeat(${props => props.rowSize}, 1fr);
+`
+
+const SELECTION_NAME = 'geom';
+interface ReactVegaProps {
+ rows: Readonly<IViewField[]>;
+ columns: Readonly<IViewField[]>;
+ dataSource: IRow[];
+ defaultAggregate?: boolean;
+ stack: IStackMode;
+ interactiveScale: boolean;
+ geomType: string;
+ color?: IViewField;
+ opacity?: IViewField;
+ size?: IViewField;
+ shape?: IViewField;
+ theta?: IViewField;
+ radius?: IViewField;
+ showActions: boolean;
+ layoutMode: string;
+ width: number;
+ height: number;
+ onGeomClick?: (values: any, e: any) => void
+}
+const NULL_FIELD: IViewField = {
+ dragId: '',
+ fid: '',
+ name: '',
+ semanticType: 'quantitative',
+ analyticType: 'measure',
+ aggName: 'sum'
+}
+const click$ = new Subject<ScenegraphEvent>();
+const selection$ = new Subject<any>();
+const geomClick$ = selection$.pipe(
+ op.withLatestFrom(click$),
+ op.filter(([values, _]) => {
+ if (Object.keys(values).length > 0) {
+ return true
+ }
+ return false
+ })
+);
+function getFieldType(field: IViewField): 'quantitative' | 'nominal' | 'ordinal' | 'temporal' {
+ return field.semanticType
+}
+interface SingleViewProps {
+ x: IViewField;
+ y: IViewField;
+ color: IViewField;
+ opacity: IViewField;
+ size: IViewField;
+ shape: IViewField,
+ xOffset: IViewField;
+ yOffset: IViewField;
+ row: IViewField;
+ column: IViewField;
+ theta: IViewField;
+ radius: IViewField;
+ defaultAggregated: boolean;
+ stack: IStackMode;
+ geomType: string;
+}
+
+function availableChannels (geomType: string): Set<string> {
+ if (geomType === 'arc') {
+ return new Set(['opacity', 'color', 'size', 'theta', 'radius'])
+ }
+ return new Set(['column', 'opacity', 'color', 'row', 'size', 'x', 'y', 'xOffset', 'yOffset', 'shape'])
+}
+interface EncodeProps extends Pick<SingleViewProps, 'column' | 'opacity' | 'color' | 'row' | 'size' | 'x' | 'y' | 'xOffset' | 'yOffset' | 'shape' | 'theta' | 'radius'> {
+ geomType: string;
+}
+function channelEncode(props: EncodeProps) {
+ const avcs = availableChannels(props.geomType)
+ const encoding: {[key: string]: any} = {}
+ Object.keys(props).filter(c => avcs.has(c)).forEach(c => {
+ if (props[c] !== NULL_FIELD) {
+ encoding[c] = {
+ field: props[c].fid,
+ title: props[c].name,
+ type: props[c].semanticType
+ }
+ if (props[c].semanticType === 'temporal') {
+ encoding[c].axis = { format: '%Y-%m' }
+ }
+ }
+ })
+ // FIXME: 临时处理逻辑,只处理xy排序
+ if (encoding.x && encoding.y) {
+ if ((props.x.sort && props.x.sort) || (props.y && props.y.sort)) {
+ if (props.x.sort !== 'none' && (props.y.sort === 'none' || !Boolean(props.y.sort))) {
+ encoding.x.sort = {
+ encoding: 'y',
+ order: props.x.sort
+ }
+ } else if (props.y.sort && props.y.sort !== 'none' && (props.x.sort === 'none' || !Boolean(props.x.sort))) {
+ encoding.y.sort = {
+ encoding: 'x',
+ order: props.y.sort
+ }
+ }
+ }
+ }
+ return encoding
+}
+function channelAggregate(encoding: {[key: string]: any}, fields: IViewField[]) {
+ Object.values(encoding).forEach(c => {
+ const targetField = fields.find(f => f.fid === c.field);
+ if (targetField && targetField.fid === COUNT_FIELD_ID) {
+ c.field = undefined;
+ c.aggregate = 'count';
+ c.title = 'Count'
+ } else if (targetField && targetField.analyticType === 'measure') {
+ c.title = `${targetField.aggName}(${targetField.name})`;
+ c.aggregate = targetField.aggName;
+ }
+ })
+}
+function channelStack(encoding: {[key: string]: any}, stackMode: IStackMode) {
+ if (stackMode === 'stack') return;
+ if (encoding.x && encoding.x.type === 'quantitative') {
+ encoding.x.stack = stackMode === 'none' ? null : 'normalize'
+ }
+ if (encoding.y && encoding.y.type === 'quantitative') {
+ encoding.y.stack = stackMode === 'none' ? null : 'normalize'
+ }
+}
+// TODO: xOffset等通道的特性不太稳定,建议后续vega相关特性稳定后,再使用。
+// 1. 场景太细,仅仅对对应的坐标轴是nominal(可能由ordinal)时,才可用
+// 2. 部分geom type会出现bug,如line,会出现组间的错误连接
+// "vega": "^5.22.0",
+// "vega-embed": "^6.20.8",
+// "vega-lite": "^5.2.0",
+function getSingleView(props: SingleViewProps) {
+ const {
+ x,
+ y,
+ color,
+ opacity,
+ size,
+ shape,
+ theta,
+ radius,
+ row,
+ column,
+ xOffset,
+ yOffset,
+ defaultAggregated,
+ stack,
+ geomType
+ } = props
+ const fields: IViewField[] = [x, y, color, opacity, size, shape, row, column, xOffset, yOffset, theta, radius]
+ let markType = geomType;
+ if (geomType === 'auto') {
+ const types: ISemanticType[] = [];
+ if (x !== NULL_FIELD) types.push(x.semanticType)//types.push(getFieldType(x));
+ if (y !== NULL_FIELD) types.push(y.semanticType)//types.push(getFieldType(yField));
+ markType = autoMark(types);
+ }
+
+ let encoding = channelEncode({ geomType: markType, x, y, color, opacity, size, shape, row, column, xOffset, yOffset, theta, radius })
+ if (defaultAggregated) {
+ channelAggregate(encoding, fields);
+ }
+ channelStack(encoding, stack);
+ const spec = {
+ mark: {
+ type: markType,
+ opacity: 0.96,
+ tooltip: true
+ },
+ encoding
+ };
+ return spec;
+}
+const ReactVega: React.FC<ReactVegaProps> = props => {
+ const {
+ dataSource = [],
+ rows = [],
+ columns = [],
+ defaultAggregate = true,
+ stack = 'stack',
+ geomType,
+ color,
+ opacity,
+ size,
+ theta,
+ radius,
+ shape,
+ onGeomClick,
+ showActions,
+ interactiveScale,
+ layoutMode,
+ width,
+ height
+ } = props;
+ // const container = useRef<HTMLDivElement>(null);
+ // const containers = useRef<(HTMLDivElement | null)[]>([]);
+ const [viewPlaceholders, setViewPlaceholders] = useState<React.MutableRefObject<HTMLDivElement>[]>([]);
+ useEffect(() => {
+ const clickSub = geomClick$.subscribe(([values, e]) => {
+ if (onGeomClick) {
+ onGeomClick(values, e);
+ }
+ })
+ return () => {
+ clickSub.unsubscribe();
+ }
+ }, []);
+ const rowDims = useMemo(() => rows.filter(f => f.analyticType === 'dimension'), [rows]);
+ const colDims = useMemo(() => columns.filter(f => f.analyticType === 'dimension'), [columns]);
+ const rowMeas = useMemo(() => rows.filter(f => f.analyticType === 'measure'), [rows]);
+ const colMeas = useMemo(() => columns.filter(f => f.analyticType === 'measure'), [columns]);
+ const rowFacetFields = useMemo(() => rowDims.slice(0, -1), [rowDims]);
+ const colFacetFields = useMemo(() => colDims.slice(0, -1), [colDims]);
+ const rowRepeatFields = useMemo(() => rowMeas.length === 0 ? rowDims.slice(-1) : rowMeas, [rowDims, rowMeas]);//rowMeas.slice(0, -1);
+ const colRepeatFields = useMemo(() => colMeas.length === 0 ? colDims.slice(-1) : colMeas, [rowDims, rowMeas]);//colMeas.slice(0, -1);
+ const allFieldIds = useMemo(() => [...rows, ...columns, color, opacity, size].filter(f => Boolean(f)).map(f => (f as IViewField).fid), [rows, columns, color, opacity, size]);
+
+
+ useEffect(() => {
+ setViewPlaceholders(views => {
+ const viewNum = Math.max(1, rowRepeatFields.length * colRepeatFields.length)
+ const nextViews = new Array(viewNum).fill(null).map((v, i) => views[i] || React.createRef())
+ return nextViews;
+ })
+ }, [rowRepeatFields, colRepeatFields])
+
+ useEffect(() => {
+
+ const yField = rows.length > 0 ? rows[rows.length - 1] : NULL_FIELD;
+ const xField = columns.length > 0 ? columns[columns.length - 1] : NULL_FIELD;
+
+ const rowLeftFacetFields = rows.slice(0, -1).filter(f => f.analyticType === 'dimension');
+ const colLeftFacetFields = columns.slice(0, -1).filter(f => f.analyticType === 'dimension');
+
+ const rowFacetField = rowLeftFacetFields.length > 0 ? rowLeftFacetFields[rowLeftFacetFields.length - 1] : NULL_FIELD;
+ const colFacetField = colLeftFacetFields.length > 0 ? colLeftFacetFields[colLeftFacetFields.length - 1] : NULL_FIELD;
+
+ const spec: any = {
+ data: {
+ values: dataSource,
+ },
+ params: [{
+ name: SELECTION_NAME,
+ select: {
+ type: 'point',
+ fields: allFieldIds
+ }
+ }]
+ };
+ if (interactiveScale) {
+ spec.params.push({
+ name: "grid",
+ select: "interval",
+ bind: "scales"
+ })
+ }
+ if (rowRepeatFields.length <= 1 && colRepeatFields.length <= 1) {
+ if (layoutMode === 'fixed') {
+ if (rowFacetField === NULL_FIELD && colFacetField === NULL_FIELD) {
+ spec.autosize = 'fit'
+ }
+ spec.width = width;
+ spec.height = height;
+ }
+ const singleView = getSingleView({
+ x: xField,
+ y: yField,
+ color: color ? color : NULL_FIELD,
+ opacity: opacity ? opacity : NULL_FIELD,
+ size: size ? size : NULL_FIELD,
+ shape: shape ? shape : NULL_FIELD,
+ theta: theta ? theta : NULL_FIELD,
+ radius: radius ? radius : NULL_FIELD,
+ row: rowFacetField,
+ column: colFacetField,
+ xOffset: NULL_FIELD,
+ yOffset: NULL_FIELD,
+ defaultAggregated: defaultAggregate,
+ stack,
+ geomType
+ });
+ // if (layoutMode === 'fixed') {
+ // spec.width = 800;
+ // spec.height = 600;
+ // }
+ spec.mark = singleView.mark;
+ spec.encoding = singleView.encoding;
+ if (viewPlaceholders.length > 0 && viewPlaceholders[0].current) {
+ embed(viewPlaceholders[0].current, spec, { mode: 'vega-lite', actions: showActions }).then(res => {
+ try {
+ res.view.addEventListener('click', (e) => {
+ click$.next(e);
+ })
+ res.view.addSignalListener(SELECTION_NAME, (name: any, values: any) => {
+ selection$.next(values);
+ });
+ } catch (error) {
+ console.warn(error)
+ }
+ });
+ }
+ } else {
+ if (layoutMode === 'fixed') {
+ spec.width = Math.floor(width / colRepeatFields.length) - 5;
+ spec.height = Math.floor(height / rowRepeatFields.length) - 5;
+ spec.autosize = 'fit'
+ }
+ for (let i = 0; i < rowRepeatFields.length; i++) {
+ for (let j = 0; j < colRepeatFields.length; j++) {
+ const singleView = getSingleView({
+ x: colRepeatFields[j] || NULL_FIELD,
+ y: rowRepeatFields[i] || NULL_FIELD,
+ color: color ? color : NULL_FIELD,
+ opacity: opacity ? opacity : NULL_FIELD,
+ size: size ? size : NULL_FIELD,
+ shape: shape ? shape : NULL_FIELD,
+ theta: theta ? theta : NULL_FIELD,
+ radius: radius ? radius : NULL_FIELD,
+ row: rowFacetField,
+ column: colFacetField,
+ xOffset: NULL_FIELD,
+ yOffset: NULL_FIELD,
+ defaultAggregated: defaultAggregate,
+ stack,
+ geomType
+ });
+ const node = i * colRepeatFields.length + j < viewPlaceholders.length ? viewPlaceholders[i * colRepeatFields.length + j].current : null
+ const ans = { ...spec, ...singleView }
+ if (node) {
+ embed(node, ans, { mode: 'vega-lite', actions: showActions }).then(res => {
+ try {
+ res.view.addEventListener('click', (e) => {
+ click$.next(e);
+ })
+ res.view.addSignalListener(SELECTION_NAME, (name: any, values: any) => {
+ selection$.next(values);
+ });
+ } catch (error) {
+ console.warn(error);
+ }
+ })
+ }
+ }
+ }
+ }
+
+ }, [
+ dataSource,
+ allFieldIds,
+ rows,
+ columns,
+ defaultAggregate,
+ geomType,
+ color,
+ opacity,
+ size,
+ shape,
+ theta, radius,
+ viewPlaceholders,
+ rowFacetFields,
+ colFacetFields,
+ rowRepeatFields,
+ colRepeatFields,
+ stack,
+ showActions,
+ interactiveScale,
+ layoutMode,
+ width,
+ height
+ ]);
+
+ return <CanvaContainer rowSize={Math.max(rowRepeatFields.length, 1)} colSize={Math.max(colRepeatFields.length, 1)}>
+ {/* <div ref={container}></div> */}
+ {
+ viewPlaceholders.map((view, i) => <div key={i} ref={view}></div>)
+ }
+ </CanvaContainer>
+}
+
+export default ReactVega;
diff --git a/src/visualSettings/index.tsx b/src/visualSettings/index.tsx
new file mode 100644
index 00000000..387956be
--- /dev/null
+++ b/src/visualSettings/index.tsx
@@ -0,0 +1,252 @@
+import { BarsArrowDownIcon, BarsArrowUpIcon } from '@heroicons/react/24/outline';
+import { observer } from 'mobx-react-lite';
+import React from 'react';
+import styled from 'styled-components'
+import { ArrowPathIcon } from '@heroicons/react/24/solid';
+import { useTranslation } from 'react-i18next';
+import { LiteForm } from '../components/liteForm';
+import SizeSetting from '../components/sizeSetting';
+import { CHART_LAYOUT_TYPE, GEMO_TYPES, STACK_MODE } from '../config';
+import { useGlobalStore } from '../store';
+import { IStackMode } from '../interfaces';
+
+
+export const LiteContainer = styled.div`
+ margin: 0.2em;
+ border: 1px solid #d9d9d9;
+ padding: 1em;
+ background-color: #fff;
+`;
+
+const VisualSettings: React.FC = () => {
+ const { vizStore } = useGlobalStore();
+ const { visualConfig, sortCondition } = vizStore;
+ const { t: tGlobal } = useTranslation();
+ const { t } = useTranslation('translation', { keyPrefix: 'main.tabpanel.settings' });
+
+ return <LiteContainer>
+ <LiteForm style={{ display: 'flex', flexWrap: 'wrap', alignItems: 'center' }}>
+ <div className="item">
+ <input
+ className="cursor-pointer"
+ type="checkbox"
+ id="toggle:aggregation"
+ aria-describedby="toggle:aggregation:label"
+ checked={visualConfig.defaultAggregated}
+ onChange={(e) => {
+ vizStore.setVisualConfig('defaultAggregated', e.target.checked);
+ }}
+ />
+ <label
+ className="text-xs text-color-gray-700 ml-2 cursor-pointer"
+ id="toggle:aggregation:label"
+ htmlFor="toggle:aggregation"
+ >
+ {t('toggle.aggregation')}
+ </label>
+ </div>
+ <div className="item">
+ <label
+ className="px-2"
+ id="dropdown:mark_type:label"
+ htmlFor="dropdown:mark_type"
+ >
+ {tGlobal('constant.mark_type.__enum__')}
+ </label>
+ <select
+ className="border border-gray-500 rounded-sm text-xs pt-0.5 pb-0.5 pl-2 pr-2 cursor-pointer"
+ id="dropdown:mark_type"
+ aria-describedby="dropdown:mark_type:label"
+ value={visualConfig.geoms[0]}
+ onChange={(e) => {
+ vizStore.setVisualConfig('geoms', [e.target.value]);
+ }}
+ >
+ {GEMO_TYPES.map(g => (
+ <option
+ key={g}
+ value={g}
+ aria-selected={visualConfig.geoms[0] === g}
+ className="cursor-pointer"
+ >
+ {tGlobal(`constant.mark_type.${g}`)}
+ </option>
+ ))}
+ </select>
+ </div>
+ <div className="item">
+ <label
+ className="px-2"
+ id="dropdown:stack:label"
+ htmlFor="dropdown:stack"
+ >
+ {tGlobal('constant.stack_mode.__enum__')}
+ </label>
+ <select
+ className="border border-gray-500 rounded-sm text-xs pt-0.5 pb-0.5 pl-2 pr-2 cursor-pointer"
+ id="dropdown:stack"
+ aria-describedby="dropdown:stack:label"
+ value={visualConfig.stack}
+ onChange={(e) => {
+ vizStore.setVisualConfig('stack', e.target.value as IStackMode);
+ }}
+ >
+ {STACK_MODE.map(g => (
+ <option
+ key={g}
+ value={g}
+ aria-selected={visualConfig.stack === g}
+ className="cursor-pointer"
+ >
+ {tGlobal(`constant.stack_mode.${g}`)}
+ </option>
+ ))}
+ </select>
+ </div>
+ <div className="item">
+ <input
+ type="checkbox"
+ className="cursor-pointer"
+ id="toggle:axes_resize"
+ aria-describedby="toggle:axes_resize:label"
+ checked={visualConfig.interactiveScale}
+ onChange={(e) => {
+ vizStore.setVisualConfig('interactiveScale', e.target.checked);
+ }}
+ />
+ <label
+ className="text-xs text-color-gray-700 ml-2 cursor-pointer"
+ id="toggle:axes_resize:label"
+ htmlFor="toggle:axes_resize"
+ >
+ {t('toggle.axes_resize')}
+ </label>
+ </div>
+ <div className="item">
+ <label className="text-xs text-color-gray-700 mx-2">
+ {t('sort')}
+ </label>
+ <BarsArrowUpIcon
+ className={`w-4 inline-block mr-1 ${!sortCondition ? 'text-gray-300 cursor-not-allowed' : 'cursor-pointer'}`}
+ onClick={() => {
+ vizStore.applyDefaultSort('ascending')
+ }}
+ role="button"
+ tabIndex={!sortCondition ? undefined : 0}
+ aria-disabled={!sortCondition}
+ xlinkTitle={t('button.ascending')}
+ aria-label={t('button.ascending')}
+ />
+ <BarsArrowDownIcon
+ className={`w-4 inline-block mr-1 ${!sortCondition ? 'text-gray-300 cursor-not-allowed' : 'cursor-pointer'}`}
+ onClick={() => {
+ vizStore.applyDefaultSort('descending');
+ }}
+ role="button"
+ tabIndex={!sortCondition ? undefined : 0}
+ aria-disabled={!sortCondition}
+ xlinkTitle={t('button.descending')}
+ aria-label={t('button.descending')}
+ />
+ </div>
+ <div className='item'>
+ <label
+ className="text-xs text-color-gray-700 mr-2"
+ htmlFor="button:transpose"
+ id="button:transpose:label"
+ >
+ {t('button.transpose')}
+ </label>
+ <ArrowPathIcon
+ className="w-4 inline-block mr-1 cursor-pointer"
+ role="button"
+ tabIndex={0}
+ id="button:transpose"
+ aria-describedby="button:transpose:label"
+ xlinkTitle={t('button.transpose')}
+ aria-label={t('button.transpose')}
+ onClick={() => {
+ vizStore.transpose();
+ }}
+ />
+ </div>
+ <div className="item">
+ <label
+ id="dropdown:layout_type:label"
+ htmlFor="dropdown:layout_type"
+ >
+ {tGlobal(`constant.layout_type.__enum__`)}
+ </label>
+ <select
+ className="border border-gray-500 rounded-sm text-xs pt-0.5 pb-0.5 pl-2 pr-2 cursor-pointer"
+ id="dropdown:layout_type"
+ aria-describedby="dropdown:layout_type:label"
+ value={visualConfig.size.mode}
+ onChange={(e) => {
+ // vizStore.setVisualConfig('geoms', [e.target.value]);
+ vizStore.setChartLayout({
+ mode: e.target.value as any
+ })
+ }}
+ >
+ {CHART_LAYOUT_TYPE.map(g => (
+ <option
+ key={g}
+ value={g}
+ className="cursor-pointer"
+ aria-selected={visualConfig.size.mode === g}
+ >
+ {tGlobal(`constant.layout_type.${g}`)}
+ </option>
+ ))}
+ </select>
+ </div>
+ <div className="item hover:bg-yellow-100">
+ <SizeSetting
+ width={visualConfig.size.width}
+ height={visualConfig.size.height}
+ onHeightChange={(v) => {
+ vizStore.setChartLayout({
+ mode: "fixed",
+ height: v
+ })
+ }}
+ onWidthChange={(v) => {
+ vizStore.setChartLayout({
+ mode: "fixed",
+ width: v
+ })
+ }}
+ />
+ <label
+ className="text-xs text-color-gray-700 ml-2"
+ htmlFor="button:size_setting"
+ id="button:size_setting:label"
+ >
+ {t('size')}
+ </label>
+ </div>
+ <div className="item">
+ <input
+ type="checkbox"
+ checked={visualConfig.showActions}
+ id="toggle:debug"
+ aria-describedby="toggle:debug:label"
+ className="cursor-pointer"
+ onChange={(e) => {
+ vizStore.setVisualConfig('showActions', e.target.checked);
+ }}
+ />
+ <label
+ className="text-xs text-color-gray-700 ml-2 cursor-pointer"
+ id="toggle:debug:label"
+ htmlFor="toggle:debug"
+ >
+ {t('toggle.debug')}
+ </label>
+ </div>
+ </LiteForm>
+ </LiteContainer>
+}
+
+export default observer(VisualSettings);
\ No newline at end of file
diff --git a/src/visualSettings/menubar.tsx b/src/visualSettings/menubar.tsx
new file mode 100644
index 00000000..3e43f628
--- /dev/null
+++ b/src/visualSettings/menubar.tsx
@@ -0,0 +1,109 @@
+import { observer } from 'mobx-react-lite';
+import React from 'react';
+import { useGlobalStore } from '../store';
+import styled from 'styled-components'
+import { ArrowUturnLeftIcon, ArrowUturnRightIcon } from '@heroicons/react/24/solid';
+import { useTranslation } from 'react-i18next';
+
+
+export const MenubarContainer = styled.div({
+ marginBlock: '0 0.6em',
+ marginInline: '0.2em',
+});
+
+const Button = styled.button(({ disabled = false }) => ({
+ '&:hover': disabled ? {} : {
+ backgroundColor: 'rgba(243, 244, 246, 0.7)',
+ },
+ color: disabled ? 'rgba(156, 163, 175, 0.5)' : 'rgb(55, 65, 81)',
+ '& > pre': {
+ display: 'inline-block',
+ marginInlineStart: '0.2em',
+ },
+ marginInlineStart: '0.6em',
+ '&:first-child': {
+ marginInlineStart: '0',
+ },
+ cursor: disabled ? 'default' : 'pointer',
+}));
+
+interface ButtonWithShortcutProps {
+ label: string;
+ shortcut: string;
+ disabled: boolean;
+ handler: () => void;
+ icon?: JSX.Element;
+}
+
+const ButtonWithShortcut: React.FC<ButtonWithShortcutProps> = ({ label, shortcut, disabled, handler, icon }) => {
+ const { t } = useTranslation('translation', { keyPrefix: 'main.tabpanel.menubar' });
+
+ const rule = React.useMemo(() => {
+ const keys = shortcut.split('+').map(d => d.trim());
+
+ return {
+ key: keys.filter(
+ d => /^[a-z]$/i.test(d)
+ )[0],
+ ctrlKey: keys.includes('Ctrl'),
+ shiftKey: keys.includes('Shift'),
+ altKey: keys.includes('Alt'),
+ };
+ }, [shortcut]);
+
+ React.useEffect(() => {
+ const cb = (ev: KeyboardEvent) => {
+ if (
+ ev.ctrlKey === rule.ctrlKey
+ && ev.shiftKey === rule.shiftKey
+ && ev.altKey === rule.altKey
+ && ev.key.toLowerCase() === rule.key.toLowerCase()
+ ) {
+ handler();
+ ev.stopPropagation();
+ }
+ };
+
+ document.body.addEventListener('keydown', cb);
+
+ return () => document.body.removeEventListener('keydown', cb);
+ }, [rule, handler]);
+
+ return (
+ <Button
+ className="text-sm px-3 py-1 border text-gray-400 select-none"
+ disabled={disabled}
+ onClick={handler}
+ aria-label={t(label)}
+ title={`${t(label)} (${shortcut})`}
+ >
+ {icon || t(label)}
+ </Button>
+ );
+};
+
+const Menubar: React.FC = () => {
+ const { vizStore } = useGlobalStore();
+ const { canUndo, canRedo } = vizStore;
+
+ return (
+ <MenubarContainer>
+ <ButtonWithShortcut
+ label="undo"
+ disabled={!canUndo}
+ handler={vizStore.undo.bind(vizStore)}
+ shortcut="Ctrl+Z"
+ icon={<ArrowUturnLeftIcon width="1.4em" height="1.4em" />}
+ />
+ <ButtonWithShortcut
+ label="redo"
+ disabled={!canRedo}
+ handler={vizStore.redo.bind(vizStore)}
+ shortcut="Ctrl+Shift+Z"
+ icon={<ArrowUturnRightIcon width="1.4em" height="1.4em" />}
+ />
+ </MenubarContainer>
+ );
+}
+
+export default observer(Menubar);
\ No newline at end of file
diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts
new file mode 100644
index 00000000..11f02fe2
--- /dev/null
+++ b/src/vite-env.d.ts
@@ -0,0 +1 @@
+/// <reference types="vite/client" />
diff --git a/src/workers/explainer.worker.js b/src/workers/explainer.worker.js
new file mode 100644
index 00000000..888f555f
--- /dev/null
+++ b/src/workers/explainer.worker.js
@@ -0,0 +1,78 @@
+/* eslint no-restricted-globals: 0 */
+/* eslint-disable */
+// import { Record, Filters } from '../interfaces';
+import { getPredicatesFromVegaSignals } from '../utils';
+import { DataExplainer } from '../insights';
+const state = {
+ de: null
+};
+
+function preAnalysis (props) {
+ const { fields, dataSource } = props; // as ReqData;
+ const de = new DataExplainer(dataSource);
+ de.setFields(fields);
+ de.preAnalysis();
+ state.de = de;
+ return true
+}
+
+function getFieldsSummary (props) {
+ const de = state.de;
+ if (de !== null) {
+ return de.engine.fields;
+ }
+ throw new Error('data explainer is not init.')
+}
+function getExplaination(props) {
+
+ const { filters = {}, currentSpace } = props; // as ReqData;
+ const predicates = getPredicatesFromVegaSignals(filters, currentSpace.dimensions, []);
+ const de = state.de;
+ const ansSpaces = de.explain(predicates, currentSpace.dimensions, currentSpace.measures);
+ const visSpaces = de.getVisSpec(ansSpaces);
+ const valueExp = de.explainValue(predicates, currentSpace.dimensions, currentSpace.measures);
+ const measureStats = [];
+ for (let i = 0; i < valueExp.length; i++) {
+ if (valueExp[i] !== 0) {
+ measureStats.push({
+ ...currentSpace.measures[i],
+ score: valueExp[i]
+ })
+ }
+ }
+ const fields = de.engine.fields;
+ return {
+ explainations: ansSpaces,
+ visSpaces,
+ valueExp: measureStats,
+ fieldsWithSemanticType: fields.map(f => ({
+ key: f.key,
+ type: f.semanticType
+ }))
+ };
+}
+
+function main (e) {
+ const { type, data } = e.data;
+ console.log(type, data)
+ let res = false;
+ try {
+ switch (type) {
+ case 'getExplaination':
+ res = getExplaination(data);
+ break;
+ case 'preAnalysis':
+ res = preAnalysis(data);
+ break;
+ default:
+ throw new Error(`type ${type} is not supported.`);
+ }
+ self.postMessage(res);
+ } catch (error) {
+ // discuss
+ console.log(error)
+ self.postMessage(false)
+ }
+}
+
+self.addEventListener('message', main, false);
diff --git a/src/workers/filter.worker.js b/src/workers/filter.worker.js
new file mode 100644
index 00000000..b8188142
--- /dev/null
+++ b/src/workers/filter.worker.js
@@ -0,0 +1,70 @@
+/* eslint no-restricted-globals: 0 */
+/* eslint-disable */
+
+/**
+ * @param {import('../interfaces').IRow[]} dataSource
+ * @param {import('../interfaces').IFilterField[]} filters
+ * @return {import('../interfaces').IRow[]}
+ */
+const filter = (dataSource, filters) => {
+ return dataSource.filter(which => {
+ for (const { rule, fid } of filters) {
+ if (!rule) {
+ continue;
+ }
+
+ switch (rule.type) {
+ case 'one of': {
+ if (rule.value.has(which[fid])) {
+ break;
+ } else {
+ return false;
+ }
+ }
+ case 'range': {
+ if (rule.value[0] <= which[fid] && which[fid] <= rule.value[1]) {
+ break;
+ } else {
+ return false;
+ }
+ }
+ case 'temporal range': {
+ try {
+ const time = new Date(which[fid]).getTime();
+
+ if (
+ rule.value[0] <= time && time <= rule.value[1]
+ ) {
+ break;
+ } else {
+ return false;
+ }
+ } catch (error) {
+ console.error(error);
+
+ return false;
+ }
+ }
+ default: {
+ console.warn('Unresolvable filter rule', rule);
+ continue;
+ }
+ }
+ }
+
+ return true;
+ });
+};
+
+/**
+ * @param {MessageEvent<{ dataSource: import('../interfaces').IRow[]; filters: import('../interfaces').IFilterField[] }>} e
+ */
+const main = e => {
+ const { dataSource, filters } = e.data;
+
+ const filtered = filter(dataSource, filters);
+
+ self.postMessage(filtered);
+};
+
+self.addEventListener('message', main, false);
diff --git a/tailwind.config.js b/tailwind.config.js
new file mode 100644
index 00000000..430e63e0
--- /dev/null
+++ b/tailwind.config.js
@@ -0,0 +1,18 @@
+module.exports = {
+ purge: [
+ "./src/**/*.tsx"
+ ],
+ darkMode: false, // or 'media' or 'class'
+ theme: {
+ minWidth: {
+ '96': '96px'
+ },
+ extend: {},
+ },
+ variants: {
+ extend: {
+ 'backgroundColor': ['disabled']
+ },
+ },
+ plugins: [],
+}
diff --git a/tsconfig.json b/tsconfig.json
new file mode 100644
index 00000000..84627f23
--- /dev/null
+++ b/tsconfig.json
@@ -0,0 +1,24 @@
+{
+ "compilerOptions": {
+ "target": "ESNext",
+ "lib": ["DOM", "DOM.Iterable", "ESNext"],
+ "allowJs": true,
+ "skipLibCheck": true,
+ "esModuleInterop": true,
+ "allowSyntheticDefaultImports": true,
+ "strict": true,
+ "forceConsistentCasingInFileNames": true,
+ "downlevelIteration": true,
+ "noImplicitAny": false,
+ "module": "ESNext",
+ "moduleResolution": "Node",
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "noEmit": true,
+ "jsx": "react",
+ "declaration": true,
+ "sourceMap": true,
+ "outDir": "./dist",
+ },
+ "include": ["src"]
+}
diff --git a/vite.config.ts b/vite.config.ts
new file mode 100644
index 00000000..99554e5d
--- /dev/null
+++ b/vite.config.ts
@@ -0,0 +1,41 @@
+import { defineConfig } from 'vite'
+import path from 'path';
+import reactRefresh from '@vitejs/plugin-react-refresh'
+import typescript from '@rollup/plugin-typescript'
+
+// https://vitejs.dev/config/
+export default defineConfig({
+ server: {
+ port: 2002,
+ proxy: {
+ '/datasets': 'http://localhost:8080',
+ },
+ },
+ plugins: [
+ // @ts-ignore
+ reactRefresh(),
+ // @ts-ignore
+ {
+ ...typescript({
+ tsconfig: path.resolve(__dirname, './tsconfig.json'),
+ }),
+ apply: 'build'
+ }
+ ],
+ resolve: {
+ dedupe: ['react', 'react-dom'],
+ },
+ build: {
+ lib: {
+ entry: path.resolve(__dirname, './src/index.tsx'),
+ name: 'GraphicWalker',
+ fileName: (format) => `graphic-walker.${format}.js`
+ },
+ rollupOptions: {
+ external: ['react', 'react-dom'],
+
+ },
+ minify: 'esbuild',
+ sourcemap: true,
+ }
+})
diff --git a/yarn.lock b/yarn.lock
new file mode 100644
index 00000000..17c064d7
--- /dev/null
+++ b/yarn.lock
@@ -0,0 +1,3049 @@
+# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
+# yarn lockfile v1
+
+
+"@ampproject/remapping@^2.1.0":
+ version "2.2.0"
+ resolved "https://registry.npmmirror.com/@ampproject/remapping/-/remapping-2.2.0.tgz#56c133824780de3174aed5ab6834f3026790154d"
+ integrity sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==
+ dependencies:
+ "@jridgewell/gen-mapping" "^0.1.0"
+ "@jridgewell/trace-mapping" "^0.3.9"
+
+"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.npmmirror.com/@babel/code-frame/-/code-frame-7.18.6.tgz#3b25d38c89600baa2dcc219edfa88a74eb2c427a"
+ integrity sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==
+ dependencies:
+ "@babel/highlight" "^7.18.6"
+
+"@babel/compat-data@^7.19.1":
+ version "7.19.1"
+ resolved "https://registry.npmmirror.com/@babel/compat-data/-/compat-data-7.19.1.tgz#72d647b4ff6a4f82878d184613353af1dd0290f9"
+ integrity sha512-72a9ghR0gnESIa7jBN53U32FOVCEoztyIlKaNoU05zRhEecduGK9L9c3ww7Mp06JiR+0ls0GBPFJQwwtjn9ksg==
+
+"@babel/core@^7.14.8":
+ version "7.19.1"
+ resolved "https://registry.npmmirror.com/@babel/core/-/core-7.19.1.tgz#c8fa615c5e88e272564ace3d42fbc8b17bfeb22b"
+ integrity sha512-1H8VgqXme4UXCRv7/Wa1bq7RVymKOzC7znjyFM8KiEzwFqcKUKYNoQef4GhdklgNvoBXyW4gYhuBNCM5o1zImw==
+ dependencies:
+ "@ampproject/remapping" "^2.1.0"
+ "@babel/code-frame" "^7.18.6"
+ "@babel/generator" "^7.19.0"
+ "@babel/helper-compilation-targets" "^7.19.1"
+ "@babel/helper-module-transforms" "^7.19.0"
+ "@babel/helpers" "^7.19.0"
+ "@babel/parser" "^7.19.1"
+ "@babel/template" "^7.18.10"
+ "@babel/traverse" "^7.19.1"
+ "@babel/types" "^7.19.0"
+ convert-source-map "^1.7.0"
+ debug "^4.1.0"
+ gensync "^1.0.0-beta.2"
+ json5 "^2.2.1"
+ semver "^6.3.0"
+
+"@babel/generator@^7.19.0":
+ version "7.19.0"
+ resolved "https://registry.npmmirror.com/@babel/generator/-/generator-7.19.0.tgz#785596c06425e59334df2ccee63ab166b738419a"
+ integrity sha512-S1ahxf1gZ2dpoiFgA+ohK9DIpz50bJ0CWs7Zlzb54Z4sG8qmdIrGrVqmy1sAtTVRb+9CU6U8VqT9L0Zj7hxHVg==
+ dependencies:
+ "@babel/types" "^7.19.0"
+ "@jridgewell/gen-mapping" "^0.3.2"
+ jsesc "^2.5.1"
+
+"@babel/helper-annotate-as-pure@^7.16.0":
+ version "7.18.6"
+ resolved "https://registry.npmmirror.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz#eaa49f6f80d5a33f9a5dd2276e6d6e451be0a6bb"
+ integrity sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==
+ dependencies:
+ "@babel/types" "^7.18.6"
+
+"@babel/helper-compilation-targets@^7.19.1":
+ version "7.19.1"
+ resolved "https://registry.npmmirror.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.19.1.tgz#7f630911d83b408b76fe584831c98e5395d7a17c"
+ integrity sha512-LlLkkqhCMyz2lkQPvJNdIYU7O5YjWRgC2R4omjCTpZd8u8KMQzZvX4qce+/BluN1rcQiV7BoGUpmQ0LeHerbhg==
+ dependencies:
+ "@babel/compat-data" "^7.19.1"
+ "@babel/helper-validator-option" "^7.18.6"
+ browserslist "^4.21.3"
+ semver "^6.3.0"
+
+"@babel/helper-environment-visitor@^7.18.9":
+ version "7.18.9"
+ resolved "https://registry.npmmirror.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz#0c0cee9b35d2ca190478756865bb3528422f51be"
+ integrity sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==
+
+"@babel/helper-function-name@^7.19.0":
+ version "7.19.0"
+ resolved "https://registry.npmmirror.com/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz#941574ed5390682e872e52d3f38ce9d1bef4648c"
+ integrity sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==
+ dependencies:
+ "@babel/template" "^7.18.10"
+ "@babel/types" "^7.19.0"
+
+"@babel/helper-hoist-variables@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.npmmirror.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz#d4d2c8fb4baeaa5c68b99cc8245c56554f926678"
+ integrity sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==
+ dependencies:
+ "@babel/types" "^7.18.6"
+
+"@babel/helper-module-imports@^7.0.0", "@babel/helper-module-imports@^7.16.0", "@babel/helper-module-imports@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.npmmirror.com/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz#1e3ebdbbd08aad1437b428c50204db13c5a3ca6e"
+ integrity sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==
+ dependencies:
+ "@babel/types" "^7.18.6"
+
+"@babel/helper-module-transforms@^7.19.0":
+ version "7.19.0"
+ resolved "https://registry.npmmirror.com/@babel/helper-module-transforms/-/helper-module-transforms-7.19.0.tgz#309b230f04e22c58c6a2c0c0c7e50b216d350c30"
+ integrity sha512-3HBZ377Fe14RbLIA+ac3sY4PTgpxHVkFrESaWhoI5PuyXPBBX8+C34qblV9G89ZtycGJCmCI/Ut+VUDK4bltNQ==
+ dependencies:
+ "@babel/helper-environment-visitor" "^7.18.9"
+ "@babel/helper-module-imports" "^7.18.6"
+ "@babel/helper-simple-access" "^7.18.6"
+ "@babel/helper-split-export-declaration" "^7.18.6"
+ "@babel/helper-validator-identifier" "^7.18.6"
+ "@babel/template" "^7.18.10"
+ "@babel/traverse" "^7.19.0"
+ "@babel/types" "^7.19.0"
+
+"@babel/helper-plugin-utils@^7.18.6":
+ version "7.19.0"
+ resolved "https://registry.npmmirror.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.19.0.tgz#4796bb14961521f0f8715990bee2fb6e51ce21bf"
+ integrity sha512-40Ryx7I8mT+0gaNxm8JGTZFUITNqdLAgdg0hXzeVZxVD6nFsdhQvip6v8dqkRHzsz1VFpFAaOCHNn0vKBL7Czw==
+
+"@babel/helper-simple-access@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.npmmirror.com/@babel/helper-simple-access/-/helper-simple-access-7.18.6.tgz#d6d8f51f4ac2978068df934b569f08f29788c7ea"
+ integrity sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g==
+ dependencies:
+ "@babel/types" "^7.18.6"
+
+"@babel/helper-split-export-declaration@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.npmmirror.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz#7367949bc75b20c6d5a5d4a97bba2824ae8ef075"
+ integrity sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==
+ dependencies:
+ "@babel/types" "^7.18.6"
+
+"@babel/helper-string-parser@^7.18.10":
+ version "7.18.10"
+ resolved "https://registry.npmmirror.com/@babel/helper-string-parser/-/helper-string-parser-7.18.10.tgz#181f22d28ebe1b3857fa575f5c290b1aaf659b56"
+ integrity sha512-XtIfWmeNY3i4t7t4D2t02q50HvqHybPqW2ki1kosnvWCwuCMeo81Jf0gwr85jy/neUdg5XDdeFE/80DXiO+njw==
+
+"@babel/helper-validator-identifier@^7.18.6":
+ version "7.19.1"
+ resolved "https://registry.npmmirror.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz#7eea834cf32901ffdc1a7ee555e2f9c27e249ca2"
+ integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==
+
+"@babel/helper-validator-option@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.npmmirror.com/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz#bf0d2b5a509b1f336099e4ff36e1a63aa5db4db8"
+ integrity sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==
+
+"@babel/helpers@^7.19.0":
+ version "7.19.0"
+ resolved "https://registry.npmmirror.com/@babel/helpers/-/helpers-7.19.0.tgz#f30534657faf246ae96551d88dd31e9d1fa1fc18"
+ integrity sha512-DRBCKGwIEdqY3+rPJgG/dKfQy9+08rHIAJx8q2p+HSWP87s2HCrQmaAMMyMll2kIXKCW0cO1RdQskx15Xakftg==
+ dependencies:
+ "@babel/template" "^7.18.10"
+ "@babel/traverse" "^7.19.0"
+ "@babel/types" "^7.19.0"
+
+"@babel/highlight@^7.18.6":
+ version "7.18.6"
+ resolved "https://registry.npmmirror.com/@babel/highlight/-/highlight-7.18.6.tgz#81158601e93e2563795adcbfbdf5d64be3f2ecdf"
+ integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==
+ dependencies:
+ "@babel/helper-validator-identifier" "^7.18.6"
+ chalk "^2.0.0"
+ js-tokens "^4.0.0"
+
+"@babel/parser@^7.18.10", "@babel/parser@^7.19.1":
+ version "7.19.1"
+ resolved "https://registry.npmmirror.com/@babel/parser/-/parser-7.19.1.tgz#6f6d6c2e621aad19a92544cc217ed13f1aac5b4c"
+ integrity sha512-h7RCSorm1DdTVGJf3P2Mhj3kdnkmF/EiysUkzS2TdgAYqyjFdMQJbVuXOBej2SBJaXan/lIVtT6KkGbyyq753A==
+
+"@babel/plugin-transform-react-jsx-self@^7.14.5":
+ version "7.18.6"
+ resolved "https://registry.npmmirror.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.18.6.tgz#3849401bab7ae8ffa1e3e5687c94a753fc75bda7"
+ integrity sha512-A0LQGx4+4Jv7u/tWzoJF7alZwnBDQd6cGLh9P+Ttk4dpiL+J5p7NSNv/9tlEFFJDq3kjxOavWmbm6t0Gk+A3Ig==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.18.6"
+
+"@babel/plugin-transform-react-jsx-source@^7.14.5":
+ version "7.18.6"
+ resolved "https://registry.npmmirror.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.18.6.tgz#06e9ae8a14d2bc19ce6e3c447d842032a50598fc"
+ integrity sha512-utZmlASneDfdaMh0m/WausbjUjEdGrQJz0vFK93d7wD3xf5wBtX219+q6IlCNZeguIcxS2f/CvLZrlLSvSHQXw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.18.6"
+
+"@babel/runtime@^7.10.2", "@babel/runtime@^7.14.5", "@babel/runtime@^7.15.4", "@babel/runtime@^7.17.2", "@babel/runtime@^7.18.9", "@babel/runtime@^7.9.2":
+ version "7.19.0"
+ resolved "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.19.0.tgz#22b11c037b094d27a8a2504ea4dcff00f50e2259"
+ integrity sha512-eR8Lo9hnDS7tqkO7NsV+mKvCmv5boaXFSZ70DnfhcgiEne8hv9oCEd36Klw74EtizEqLsy4YnW8UWwpBVolHZA==
+ dependencies:
+ regenerator-runtime "^0.13.4"
+
+"@babel/template@^7.18.10":
+ version "7.18.10"
+ resolved "https://registry.npmmirror.com/@babel/template/-/template-7.18.10.tgz#6f9134835970d1dbf0835c0d100c9f38de0c5e71"
+ integrity sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==
+ dependencies:
+ "@babel/code-frame" "^7.18.6"
+ "@babel/parser" "^7.18.10"
+ "@babel/types" "^7.18.10"
+
+"@babel/traverse@^7.19.0", "@babel/traverse@^7.19.1", "@babel/traverse@^7.4.5":
+ version "7.19.1"
+ resolved "https://registry.npmmirror.com/@babel/traverse/-/traverse-7.19.1.tgz#0fafe100a8c2a603b4718b1d9bf2568d1d193347"
+ integrity sha512-0j/ZfZMxKukDaag2PtOPDbwuELqIar6lLskVPPJDjXMXjfLb1Obo/1yjxIGqqAJrmfaTIY3z2wFLAQ7qSkLsuA==
+ dependencies:
+ "@babel/code-frame" "^7.18.6"
+ "@babel/generator" "^7.19.0"
+ "@babel/helper-environment-visitor" "^7.18.9"
+ "@babel/helper-function-name" "^7.19.0"
+ "@babel/helper-hoist-variables" "^7.18.6"
+ "@babel/helper-split-export-declaration" "^7.18.6"
+ "@babel/parser" "^7.19.1"
+ "@babel/types" "^7.19.0"
+ debug "^4.1.0"
+ globals "^11.1.0"
+
+"@babel/types@^7.18.10", "@babel/types@^7.18.6", "@babel/types@^7.19.0":
+ version "7.19.0"
+ resolved "https://registry.npmmirror.com/@babel/types/-/types-7.19.0.tgz#75f21d73d73dc0351f3368d28db73465f4814600"
+ integrity sha512-YuGopBq3ke25BVSiS6fgF49Ul9gH1x70Bcr6bqRLjWCkcX8Hre1/5+z+IiWOIerRMSSEfGZVB9z9kyq7wVs9YA==
+ dependencies:
+ "@babel/helper-string-parser" "^7.18.10"
+ "@babel/helper-validator-identifier" "^7.18.6"
+ to-fast-properties "^2.0.0"
+
+"@emotion/is-prop-valid@^1.1.0":
+ version "1.2.0"
+ resolved "https://registry.npmmirror.com/@emotion/is-prop-valid/-/is-prop-valid-1.2.0.tgz#7f2d35c97891669f7e276eb71c83376a5dc44c83"
+ integrity sha512-3aDpDprjM0AwaxGE09bOPkNxHpBd+kA6jty3RnaEXdweX1DF1U3VQpPYb0g1IStAuK7SVQ1cy+bNBBKp4W3Fjg==
+ dependencies:
+ "@emotion/memoize" "^0.8.0"
+
+"@emotion/memoize@^0.8.0":
+ version "0.8.0"
+ resolved "https://registry.npmmirror.com/@emotion/memoize/-/memoize-0.8.0.tgz#f580f9beb67176fa57aae70b08ed510e1b18980f"
+ integrity sha512-G/YwXTkv7Den9mXDO7AhLWkE3q+I92B+VqAE+dYG4NGPaHZGvt3G8Q0p9vmE+sq7rTGphUbAvmQ9YpbfMQGGlA==
+
+"@emotion/stylis@^0.8.4":
+ version "0.8.5"
+ resolved "https://registry.npmmirror.com/@emotion/stylis/-/stylis-0.8.5.tgz#deacb389bd6ee77d1e7fcaccce9e16c5c7e78e04"
+ integrity sha512-h6KtPihKFn3T9fuIrwvXXUOwlx3rfUvfZIcP5a6rh8Y7zjE3O06hT5Ss4S/YI1AYhuZ1kjaE/5EaOOI2NqSylQ==
+
+"@emotion/unitless@^0.7.4":
+ version "0.7.5"
+ resolved "https://registry.npmmirror.com/@emotion/unitless/-/unitless-0.7.5.tgz#77211291c1900a700b8a78cfafda3160d76949ed"
+ integrity sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==
+
+"@esbuild/[email protected]":
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/@esbuild/android-arm/-/android-arm-0.15.9.tgz#7e1221604ab88ed5021ead74fa8cca4405e1e431"
+ integrity sha512-VZPy/ETF3fBG5PiinIkA0W/tlsvlEgJccyN2DzWZEl0DlVKRbu91PvY2D6Lxgluj4w9QtYHjOWjAT44C+oQ+EQ==
+
+"@esbuild/[email protected]":
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/@esbuild/linux-loong64/-/linux-loong64-0.15.9.tgz#b658a97babf1f40783354af7039b84c3fdfc3fc3"
+ integrity sha512-O+NfmkfRrb3uSsTa4jE3WApidSe3N5++fyOVGP1SmMZi4A3BZELkhUUvj5hwmMuNdlpzAZ8iAPz2vmcR7DCFQA==
+
+"@heroicons/react@^2.0.8":
+ version "2.0.11"
+ resolved "https://registry.npmmirror.com/@heroicons/react/-/react-2.0.11.tgz#2c6cf4c66d81142ec87c102502407d8c353558bb"
+ integrity sha512-bASjOgSSaYj8HqXWsOqaBiB6ZLalE/g90WYGgZ5lPm4KCCG7wPXntY4kzHf5NrLh6UBAcnPwvbiw1Ne9GYfJtw==
+
+"@jridgewell/gen-mapping@^0.1.0":
+ version "0.1.1"
+ resolved "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz#e5d2e450306a9491e3bd77e323e38d7aff315996"
+ integrity sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==
+ dependencies:
+ "@jridgewell/set-array" "^1.0.0"
+ "@jridgewell/sourcemap-codec" "^1.4.10"
+
+"@jridgewell/gen-mapping@^0.3.2":
+ version "0.3.2"
+ resolved "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz#c1aedc61e853f2bb9f5dfe6d4442d3b565b253b9"
+ integrity sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==
+ dependencies:
+ "@jridgewell/set-array" "^1.0.1"
+ "@jridgewell/sourcemap-codec" "^1.4.10"
+ "@jridgewell/trace-mapping" "^0.3.9"
+
+"@jridgewell/resolve-uri@^3.0.3":
+ version "3.1.0"
+ resolved "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78"
+ integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==
+
+"@jridgewell/set-array@^1.0.0", "@jridgewell/set-array@^1.0.1":
+ version "1.1.2"
+ resolved "https://registry.npmmirror.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72"
+ integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==
+
+"@jridgewell/sourcemap-codec@^1.4.10":
+ version "1.4.14"
+ resolved "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24"
+ integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==
+
+"@jridgewell/trace-mapping@^0.3.9":
+ version "0.3.15"
+ resolved "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.15.tgz#aba35c48a38d3fd84b37e66c9c0423f9744f9774"
+ integrity sha512-oWZNOULl+UbhsgB51uuZzglikfIKSUBO/M9W2OfEjn7cmqoAiCgmv9lyACTUacZwBz0ITnJ2NqjU8Tx0DHL88g==
+ dependencies:
+ "@jridgewell/resolve-uri" "^3.0.3"
+ "@jridgewell/sourcemap-codec" "^1.4.10"
+
+"@kanaries/[email protected]":
+ version "0.1.5"
+ resolved "https://registry.npmmirror.com/@kanaries/web-data-loader/-/web-data-loader-0.1.5.tgz#10d8d677492919b0838b9429d28cbf2b7d726100"
+ integrity sha512-WVXBjhAgwCOItulV7oz2DOkX294bmgc2GDunxwtgK9cn4dUKg16EV1djkdpJy4r4VGQNXj89gPYECuHdMq4dkw==
+ dependencies:
+ "@types/papaparse" "^5.0.3"
+ papaparse "^5.1.1"
+
+"@nodelib/[email protected]":
+ version "2.1.5"
+ resolved "https://registry.npmmirror.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"
+ integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==
+ dependencies:
+ "@nodelib/fs.stat" "2.0.5"
+ run-parallel "^1.1.9"
+
+"@nodelib/[email protected]", "@nodelib/fs.stat@^2.0.2":
+ version "2.0.5"
+ resolved "https://registry.npmmirror.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b"
+ integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==
+
+"@nodelib/fs.walk@^1.2.3":
+ version "1.2.8"
+ resolved "https://registry.npmmirror.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a"
+ integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==
+ dependencies:
+ "@nodelib/fs.scandir" "2.1.5"
+ fastq "^1.6.0"
+
+"@rollup/plugin-typescript@^8.2.5":
+ version "8.5.0"
+ resolved "https://registry.npmmirror.com/@rollup/plugin-typescript/-/plugin-typescript-8.5.0.tgz#7ea11599a15b0a30fa7ea69ce3b791d41b862515"
+ integrity sha512-wMv1/scv0m/rXx21wD2IsBbJFba8wGF3ErJIr6IKRfRj49S85Lszbxb4DCo8iILpluTjk2GAAu9CoZt4G3ppgQ==
+ dependencies:
+ "@rollup/pluginutils" "^3.1.0"
+ resolve "^1.17.0"
+
+"@rollup/pluginutils@^3.1.0":
+ version "3.1.0"
+ resolved "https://registry.npmmirror.com/@rollup/pluginutils/-/pluginutils-3.1.0.tgz#706b4524ee6dc8b103b3c995533e5ad680c02b9b"
+ integrity sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==
+ dependencies:
+ "@types/estree" "0.0.39"
+ estree-walker "^1.0.1"
+ picomatch "^2.2.2"
+
+"@rollup/pluginutils@^4.1.1":
+ version "4.2.1"
+ resolved "https://registry.npmmirror.com/@rollup/pluginutils/-/pluginutils-4.2.1.tgz#e6c6c3aba0744edce3fb2074922d3776c0af2a6d"
+ integrity sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==
+ dependencies:
+ estree-walker "^2.0.1"
+ picomatch "^2.2.2"
+
+"@types/clone@~2.1.1":
+ version "2.1.1"
+ resolved "https://registry.npmmirror.com/@types/clone/-/clone-2.1.1.tgz#9b880d0ce9b1f209b5e0bd6d9caa38209db34024"
+ integrity sha512-BZIU34bSYye0j/BFcPraiDZ5ka6MJADjcDVELGf7glr9K+iE8NYVjFslJFVWzskSxkLLyCrSPScE82/UUoBSvg==
+
+ version "0.0.39"
+ resolved "https://registry.npmmirror.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f"
+ integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==
+
+"@types/estree@^0.0.50":
+ version "0.0.50"
+ resolved "https://registry.npmmirror.com/@types/estree/-/estree-0.0.50.tgz#1e0caa9364d3fccd2931c3ed96fdbeaa5d4cca83"
+ integrity sha512-C6N5s2ZFtuZRj54k2/zyRhNDjJwwcViAM3Nbm8zjBpbqAdZ00mr0CFxvSKeO8Y/e03WVFLpQMdHYVfUd6SB+Hw==
+
+"@types/hoist-non-react-statics@^3.3.0":
+ version "3.3.1"
+ resolved "https://registry.npmmirror.com/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz#1124aafe5118cb591977aeb1ceaaed1070eb039f"
+ integrity sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==
+ dependencies:
+ "@types/react" "*"
+ hoist-non-react-statics "^3.3.0"
+
+"@types/node@*":
+ version "18.7.23"
+ resolved "https://registry.npmmirror.com/@types/node/-/node-18.7.23.tgz#75c580983846181ebe5f4abc40fe9dfb2d65665f"
+ integrity sha512-DWNcCHolDq0ZKGizjx2DZjR/PqsYwAcYUJmfMWqtVU2MBMG5Mo+xFZrhGId5r/O5HOuMPyQEcM6KUBp5lBZZBg==
+
+"@types/papaparse@^5.0.3":
+ version "5.3.5"
+ resolved "https://registry.npmmirror.com/@types/papaparse/-/papaparse-5.3.5.tgz#e5ad94b1fe98e2a8ea0b03284b83d2cb252bbf39"
+ integrity sha512-R1icl/hrJPFRpuYj9PVG03WBAlghJj4JW9Py5QdR8FFSxaLmZRyu7xYDCCBZIJNfUv3MYaeBbhBoX958mUTAaw==
+ dependencies:
+ "@types/node" "*"
+
+"@types/parse-json@^4.0.0":
+ version "4.0.0"
+ resolved "https://registry.npmmirror.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0"
+ integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==
+
+"@types/prop-types@*":
+ version "15.7.5"
+ resolved "https://registry.npmmirror.com/@types/prop-types/-/prop-types-15.7.5.tgz#5f19d2b85a98e9558036f6a3cacc8819420f05cf"
+ integrity sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==
+
+"@types/react-dom@^17.0.0":
+ version "17.0.17"
+ resolved "https://registry.npmmirror.com/@types/react-dom/-/react-dom-17.0.17.tgz#2e3743277a793a96a99f1bf87614598289da68a1"
+ integrity sha512-VjnqEmqGnasQKV0CWLevqMTXBYG9GbwuE6x3VetERLh0cq2LTptFE73MrQi2S7GkKXCf2GgwItB/melLnxfnsg==
+ dependencies:
+ "@types/react" "^17"
+
+"@types/react-redux@^7.1.20":
+ version "7.1.24"
+ resolved "https://registry.npmmirror.com/@types/react-redux/-/react-redux-7.1.24.tgz#6caaff1603aba17b27d20f8ad073e4c077e975c0"
+ integrity sha512-7FkurKcS1k0FHZEtdbbgN8Oc6b+stGSfZYjQGicofJ0j4U0qIn/jaSvnP2pLwZKiai3/17xqqxkkrxTgN8UNbQ==
+ dependencies:
+ "@types/hoist-non-react-statics" "^3.3.0"
+ "@types/react" "*"
+ hoist-non-react-statics "^3.3.0"
+ redux "^4.0.0"
+
+"@types/react@*":
+ version "18.0.21"
+ resolved "https://registry.npmmirror.com/@types/react/-/react-18.0.21.tgz#b8209e9626bb00a34c76f55482697edd2b43cc67"
+ integrity sha512-7QUCOxvFgnD5Jk8ZKlUAhVcRj7GuJRjnjjiY/IUBWKgOlnvDvTMLD4RTF7NPyVmbRhNrbomZiOepg7M/2Kj1mA==
+ dependencies:
+ "@types/prop-types" "*"
+ "@types/scheduler" "*"
+ csstype "^3.0.2"
+
+"@types/react@^17", "@types/react@^17.0.0":
+ version "17.0.50"
+ resolved "https://registry.npmmirror.com/@types/react/-/react-17.0.50.tgz#39abb4f7098f546cfcd6b51207c90c4295ee81fc"
+ integrity sha512-ZCBHzpDb5skMnc1zFXAXnL3l1FAdi+xZvwxK+PkglMmBrwjpp9nKaWuEvrGnSifCJmBFGxZOOFuwC6KH/s0NuA==
+ dependencies:
+ "@types/prop-types" "*"
+ "@types/scheduler" "*"
+ csstype "^3.0.2"
+
+"@types/scheduler@*":
+ version "0.16.2"
+ resolved "https://registry.npmmirror.com/@types/scheduler/-/scheduler-0.16.2.tgz#1a62f89525723dde24ba1b01b092bf5df8ad4d39"
+ integrity sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==
+
+"@types/uuid@^8.3.1":
+ version "8.3.4"
+ resolved "https://registry.npmmirror.com/@types/uuid/-/uuid-8.3.4.tgz#bd86a43617df0594787d38b735f55c805becf1bc"
+ integrity sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==
+
+"@vitejs/plugin-react-refresh@^1.3.6":
+ version "1.3.6"
+ resolved "https://registry.npmmirror.com/@vitejs/plugin-react-refresh/-/plugin-react-refresh-1.3.6.tgz#19818392db01e81746cfeb04e096ab3010e79fe3"
+ integrity sha512-iNR/UqhUOmFFxiezt0em9CgmiJBdWR+5jGxB2FihaoJfqGt76kiwaKoVOJVU5NYcDWMdN06LbyN2VIGIoYdsEA==
+ dependencies:
+ "@babel/core" "^7.14.8"
+ "@babel/plugin-transform-react-jsx-self" "^7.14.5"
+ "@babel/plugin-transform-react-jsx-source" "^7.14.5"
+ "@rollup/pluginutils" "^4.1.1"
+ react-refresh "^0.10.0"
+
+acorn-node@^1.8.2:
+ version "1.8.2"
+ resolved "https://registry.npmmirror.com/acorn-node/-/acorn-node-1.8.2.tgz#114c95d64539e53dede23de8b9d96df7c7ae2af8"
+ integrity sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==
+ dependencies:
+ acorn "^7.0.0"
+ acorn-walk "^7.0.0"
+ xtend "^4.0.2"
+
+acorn-walk@^7.0.0:
+ version "7.2.0"
+ resolved "https://registry.npmmirror.com/acorn-walk/-/acorn-walk-7.2.0.tgz#0de889a601203909b0fbe07b8938dc21d2e967bc"
+ integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==
+
+acorn@^7.0.0:
+ version "7.4.1"
+ resolved "https://registry.npmmirror.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa"
+ integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==
+
+ansi-regex@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304"
+ integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==
+
+ansi-styles@^3.2.1:
+ version "3.2.1"
+ resolved "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d"
+ integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==
+ dependencies:
+ color-convert "^1.9.0"
+
+ansi-styles@^4.0.0, ansi-styles@^4.1.0:
+ version "4.3.0"
+ resolved "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937"
+ integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==
+ dependencies:
+ color-convert "^2.0.1"
+
+anymatch@~3.1.2:
+ version "3.1.2"
+ resolved "https://registry.npmmirror.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716"
+ integrity sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==
+ dependencies:
+ normalize-path "^3.0.0"
+ picomatch "^2.0.4"
+
+arg@^5.0.1:
+ version "5.0.2"
+ resolved "https://registry.npmmirror.com/arg/-/arg-5.0.2.tgz#c81433cc427c92c4dcf4865142dbca6f15acd59c"
+ integrity sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==
+
+array-flat-polyfill@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.npmmirror.com/array-flat-polyfill/-/array-flat-polyfill-1.0.1.tgz#1e3a4255be619dfbffbfd1d635c1cf357cd034e7"
+ integrity sha512-hfJmKupmQN0lwi0xG6FQ5U8Rd97RnIERplymOv/qpq8AoNKPPAnxJadjFA23FNWm88wykh9HmpLJUUwUtNU/iw==
+
+asap@~2.0.3:
+ version "2.0.6"
+ resolved "https://registry.npmmirror.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46"
+ integrity sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==
+
+assert@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.npmmirror.com/assert/-/assert-2.0.0.tgz#95fc1c616d48713510680f2eaf2d10dd22e02d32"
+ integrity sha512-se5Cd+js9dXJnu6Ag2JFc00t+HmHOen+8Q+L7O9zI0PqQXr20uk2J0XQqMxZEeo5U50o8Nvmmx7dZrl+Ufr35A==
+ dependencies:
+ es6-object-assign "^1.1.0"
+ is-nan "^1.2.1"
+ object-is "^1.0.1"
+ util "^0.12.0"
+
+autoprefixer@^10.3.5:
+ version "10.4.12"
+ resolved "https://registry.npmmirror.com/autoprefixer/-/autoprefixer-10.4.12.tgz#183f30bf0b0722af54ee5ef257f7d4320bb33129"
+ integrity sha512-WrCGV9/b97Pa+jtwf5UGaRjgQIg7OK3D06GnoYoZNcG1Xb8Gt3EfuKjlhh9i/VtT16g6PYjZ69jdJ2g8FxSC4Q==
+ dependencies:
+ browserslist "^4.21.4"
+ caniuse-lite "^1.0.30001407"
+ fraction.js "^4.2.0"
+ normalize-range "^0.1.2"
+ picocolors "^1.0.0"
+ postcss-value-parser "^4.2.0"
+
+available-typed-arrays@^1.0.5:
+ version "1.0.5"
+ resolved "https://registry.npmmirror.com/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz#92f95616501069d07d10edb2fc37d3e1c65123b7"
+ integrity sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==
+
+axios@^0.22.0:
+ version "0.22.0"
+ resolved "https://registry.npmmirror.com/axios/-/axios-0.22.0.tgz#bf702c41fb50fbca4539589d839a077117b79b25"
+ integrity sha512-Z0U3uhqQeg1oNcihswf4ZD57O3NrR1+ZXhxaROaWpDmsDTx7T2HNBV2ulBtie2hwJptu8UvgnJoK+BIqdzh/1w==
+ dependencies:
+ follow-redirects "^1.14.4"
+
+"babel-plugin-styled-components@>= 1.12.0":
+ version "2.0.7"
+ resolved "https://registry.npmmirror.com/babel-plugin-styled-components/-/babel-plugin-styled-components-2.0.7.tgz#c81ef34b713f9da2b7d3f5550df0d1e19e798086"
+ integrity sha512-i7YhvPgVqRKfoQ66toiZ06jPNA3p6ierpfUuEWxNF+fV27Uv5gxBkf8KZLHUCc1nFA9j6+80pYoIpqCeyW3/bA==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.16.0"
+ "@babel/helper-module-imports" "^7.16.0"
+ babel-plugin-syntax-jsx "^6.18.0"
+ lodash "^4.17.11"
+ picomatch "^2.3.0"
+
+babel-plugin-syntax-jsx@^6.18.0:
+ version "6.18.0"
+ resolved "https://registry.npmmirror.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946"
+ integrity sha512-qrPaCSo9c8RHNRHIotaufGbuOBN8rtdC4QrrFFc43vyWCCz7Kl7GL1PGaXtMGQZUXrkCjNEgxDfmAuAabr/rlw==
+
+balanced-match@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee"
+ integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==
+
+base16@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmmirror.com/base16/-/base16-1.0.0.tgz#e297f60d7ec1014a7a971a39ebc8a98c0b681e70"
+ integrity sha512-pNdYkNPiJUnEhnfXV56+sQy8+AaPcG3POZAUnwr4EeqCUZFz4u2PePbo3e5Gj4ziYPCWGUZT9RHisvJKnwFuBQ==
+
+binary-extensions@^2.0.0:
+ version "2.2.0"
+ resolved "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d"
+ integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==
+
+brace-expansion@^1.1.7:
+ version "1.1.11"
+ resolved "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
+ integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==
+ dependencies:
+ balanced-match "^1.0.0"
+ concat-map "0.0.1"
+
+braces@^3.0.2, braces@~3.0.2:
+ version "3.0.2"
+ resolved "https://registry.npmmirror.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107"
+ integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==
+ dependencies:
+ fill-range "^7.0.1"
+
+browserslist@^4.21.3, browserslist@^4.21.4:
+ version "4.21.4"
+ resolved "https://registry.npmmirror.com/browserslist/-/browserslist-4.21.4.tgz#e7496bbc67b9e39dd0f98565feccdcb0d4ff6987"
+ integrity sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==
+ dependencies:
+ caniuse-lite "^1.0.30001400"
+ electron-to-chromium "^1.4.251"
+ node-releases "^2.0.6"
+ update-browserslist-db "^1.0.9"
+
+bytes@^3.0.0:
+ version "3.1.2"
+ resolved "https://registry.npmmirror.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5"
+ integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==
+
+call-bind@^1.0.0, call-bind@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.npmmirror.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c"
+ integrity sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==
+ dependencies:
+ function-bind "^1.1.1"
+ get-intrinsic "^1.0.2"
+
+callsites@^3.0.0:
+ version "3.1.0"
+ resolved "https://registry.npmmirror.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73"
+ integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==
+
+camelcase-css@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.npmmirror.com/camelcase-css/-/camelcase-css-2.0.1.tgz#ee978f6947914cc30c6b44741b6ed1df7f043fd5"
+ integrity sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==
+
+camelize@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmmirror.com/camelize/-/camelize-1.0.0.tgz#164a5483e630fa4321e5af07020e531831b2609b"
+ integrity sha512-W2lPwkBkMZwFlPCXhIlYgxu+7gC/NUlCtdK652DAJ1JdgV0sTrvuPFshNPrFa1TY2JOkLhgdeEBplB4ezEa+xg==
+
+caniuse-lite@^1.0.30001400, caniuse-lite@^1.0.30001407:
+ version "1.0.30001412"
+ resolved "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001412.tgz#30f67d55a865da43e0aeec003f073ea8764d5d7c"
+ integrity sha512-+TeEIee1gS5bYOiuf+PS/kp2mrXic37Hl66VY6EAfxasIk5fELTktK2oOezYed12H8w7jt3s512PpulQidPjwA==
+
+chalk@^2.0.0:
+ version "2.4.2"
+ resolved "https://registry.npmmirror.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"
+ integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==
+ dependencies:
+ ansi-styles "^3.2.1"
+ escape-string-regexp "^1.0.5"
+ supports-color "^5.3.0"
+
+chalk@^4.1.2:
+ version "4.1.2"
+ resolved "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01"
+ integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==
+ dependencies:
+ ansi-styles "^4.1.0"
+ supports-color "^7.1.0"
+
+chokidar@^3.5.2:
+ version "3.5.3"
+ resolved "https://registry.npmmirror.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd"
+ integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==
+ dependencies:
+ anymatch "~3.1.2"
+ braces "~3.0.2"
+ glob-parent "~5.1.2"
+ is-binary-path "~2.1.0"
+ is-glob "~4.0.1"
+ normalize-path "~3.0.0"
+ readdirp "~3.6.0"
+ optionalDependencies:
+ fsevents "~2.3.2"
+
+cliui@^7.0.2:
+ version "7.0.4"
+ resolved "https://registry.npmmirror.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f"
+ integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==
+ dependencies:
+ string-width "^4.2.0"
+ strip-ansi "^6.0.0"
+ wrap-ansi "^7.0.0"
+
+clone@~2.1.2:
+ version "2.1.2"
+ resolved "https://registry.npmmirror.com/clone/-/clone-2.1.2.tgz#1b7f4b9f591f1e8f83670401600345a02887435f"
+ integrity sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==
+
+color-convert@^1.9.0:
+ version "1.9.3"
+ resolved "https://registry.npmmirror.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8"
+ integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==
+ dependencies:
+ color-name "1.1.3"
+
+color-convert@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3"
+ integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==
+ dependencies:
+ color-name "~1.1.4"
+
+ version "1.1.3"
+ resolved "https://registry.npmmirror.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25"
+ integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==
+
+color-name@^1.0.0, color-name@~1.1.4:
+ version "1.1.4"
+ resolved "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
+ integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
+
+color-string@^1.9.0:
+ version "1.9.1"
+ resolved "https://registry.npmmirror.com/color-string/-/color-string-1.9.1.tgz#4467f9146f036f855b764dfb5bf8582bf342c7a4"
+ integrity sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==
+ dependencies:
+ color-name "^1.0.0"
+ simple-swizzle "^0.2.2"
+
+color@^4.0.1:
+ version "4.2.3"
+ resolved "https://registry.npmmirror.com/color/-/color-4.2.3.tgz#d781ecb5e57224ee43ea9627560107c0e0c6463a"
+ integrity sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==
+ dependencies:
+ color-convert "^2.0.1"
+ color-string "^1.9.0"
+
+commander@2:
+ version "2.20.3"
+ resolved "https://registry.npmmirror.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
+ integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
+
+commander@7:
+ version "7.2.0"
+ resolved "https://registry.npmmirror.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7"
+ integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==
+
+commander@^8.0.0:
+ version "8.3.0"
+ resolved "https://registry.npmmirror.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66"
+ integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==
+
+ version "0.0.1"
+ resolved "https://registry.npmmirror.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
+ integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==
+
+convert-source-map@^1.7.0:
+ version "1.8.0"
+ resolved "https://registry.npmmirror.com/convert-source-map/-/convert-source-map-1.8.0.tgz#f3373c32d21b4d780dd8004514684fb791ca4369"
+ integrity sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==
+ dependencies:
+ safe-buffer "~5.1.1"
+
+cosmiconfig@^7.0.1:
+ version "7.0.1"
+ resolved "https://registry.npmmirror.com/cosmiconfig/-/cosmiconfig-7.0.1.tgz#714d756522cace867867ccb4474c5d01bbae5d6d"
+ integrity sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==
+ dependencies:
+ "@types/parse-json" "^4.0.0"
+ import-fresh "^3.2.1"
+ parse-json "^5.0.0"
+ path-type "^4.0.0"
+ yaml "^1.10.0"
+
+cross-fetch@^3.1.5:
+ version "3.1.5"
+ resolved "https://registry.npmmirror.com/cross-fetch/-/cross-fetch-3.1.5.tgz#e1389f44d9e7ba767907f7af8454787952ab534f"
+ integrity sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==
+ dependencies:
+ node-fetch "2.6.7"
+
+css-box-model@^1.2.0:
+ version "1.2.1"
+ resolved "https://registry.npmmirror.com/css-box-model/-/css-box-model-1.2.1.tgz#59951d3b81fd6b2074a62d49444415b0d2b4d7c1"
+ integrity sha512-a7Vr4Q/kd/aw96bnJG332W9V9LkJO69JRcaCYDUqjp6/z0w6VcZjgAcTbgFxEPfBgdnAwlh3iwu+hLopa+flJw==
+ dependencies:
+ tiny-invariant "^1.0.6"
+
+css-color-keywords@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmmirror.com/css-color-keywords/-/css-color-keywords-1.0.0.tgz#fea2616dc676b2962686b3af8dbdbe180b244e05"
+ integrity sha512-FyyrDHZKEjXDpNJYvVsV960FiqQyXc/LlYmsxl2BcdMb2WPx0OGRVgTg55rPSyLSNMqP52R9r8geSp7apN3Ofg==
+
+css-color-names@^0.0.4:
+ version "0.0.4"
+ resolved "https://registry.npmmirror.com/css-color-names/-/css-color-names-0.0.4.tgz#808adc2e79cf84738069b646cb20ec27beb629e0"
+ integrity sha512-zj5D7X1U2h2zsXOAM8EyUREBnnts6H+Jm+d1M2DbiQQcUtnqgQsMrdo8JW9R80YFUmIdBZeMu5wvYM7hcgWP/Q==
+
+css-to-react-native@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmmirror.com/css-to-react-native/-/css-to-react-native-3.0.0.tgz#62dbe678072a824a689bcfee011fc96e02a7d756"
+ integrity sha512-Ro1yETZA813eoyUp2GDBhG2j+YggidUmzO1/v9eYBKR2EHVEniE2MI/NqpTQ954BMpTPZFsGNPm46qFB9dpaPQ==
+ dependencies:
+ camelize "^1.0.0"
+ css-color-keywords "^1.0.0"
+ postcss-value-parser "^4.0.2"
+
+css-unit-converter@^1.1.1:
+ version "1.1.2"
+ resolved "https://registry.npmmirror.com/css-unit-converter/-/css-unit-converter-1.1.2.tgz#4c77f5a1954e6dbff60695ecb214e3270436ab21"
+ integrity sha512-IiJwMC8rdZE0+xiEZHeru6YoONC4rfPMqGm2W85jMIbkFvv5nFTwJVFHam2eFrN6txmoUYFAFXiv8ICVeTO0MA==
+
+cssesc@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmmirror.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee"
+ integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==
+
+csstype@^3.0.2:
+ version "3.1.1"
+ resolved "https://registry.npmmirror.com/csstype/-/csstype-3.1.1.tgz#841b532c45c758ee546a11d5bd7b7b473c8c30b9"
+ integrity sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw==
+
+cube-core@^2.13.0:
+ version "2.13.0"
+ resolved "https://registry.npmmirror.com/cube-core/-/cube-core-2.13.0.tgz#d64abcfccf0765879f226e892cc32b934c3580c6"
+ integrity sha512-hUUu//tVQmJ+sV9S61274iWUB/CIPRNwnALzVd5PVWtYk3d2KBRc/DTZn7JZB+UWFKqL7KHYf0wSnFy3lofuDw==
+
+"d3-array@1 - 3", "d3-array@2 - 3", "[email protected] - 3", "[email protected] - 3", d3-array@^3.1.1:
+ version "3.2.0"
+ resolved "https://registry.npmmirror.com/d3-array/-/d3-array-3.2.0.tgz#15bf96cd9b7333e02eb8de8053d78962eafcff14"
+ integrity sha512-3yXFQo0oG3QCxbF06rMPFyGRMGJNS7NvsV1+2joOjbBE+9xvWQ8+GcMJAjRCzw06zQ3/arXeJgbPYcjUCuC+3g==
+ dependencies:
+ internmap "1 - 2"
+
+ version "3.1.1"
+ resolved "https://registry.npmmirror.com/d3-array/-/d3-array-3.1.1.tgz#7797eb53ead6b9083c75a45a681e93fc41bc468c"
+ integrity sha512-33qQ+ZoZlli19IFiQx4QEpf2CBEayMRzhlisJHSCsSUbDXv6ZishqS1x7uFVClKG4Wr7rZVHvaAttoLow6GqdQ==
+ dependencies:
+ internmap "1 - 2"
+
+"d3-color@1 - 3", d3-color@^3.0.1:
+ version "3.1.0"
+ resolved "https://registry.npmmirror.com/d3-color/-/d3-color-3.1.0.tgz#395b2833dfac71507f12ac2f7af23bf819de24e2"
+ integrity sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==
+
+d3-delaunay@^6.0.2:
+ version "6.0.2"
+ resolved "https://registry.npmmirror.com/d3-delaunay/-/d3-delaunay-6.0.2.tgz#7fd3717ad0eade2fc9939f4260acfb503f984e92"
+ integrity sha512-IMLNldruDQScrcfT+MWnazhHbDJhcRJyOEBAJfwQnHle1RPh6WDuLvxNArUju2VSMSUuKlY5BGHRJ2cYyoFLQQ==
+ dependencies:
+ delaunator "5"
+
+"d3-dispatch@1 - 3":
+ version "3.0.1"
+ resolved "https://registry.npmmirror.com/d3-dispatch/-/d3-dispatch-3.0.1.tgz#5fc75284e9c2375c36c839411a0cf550cbfc4d5e"
+ integrity sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==
+
+d3-dsv@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.npmmirror.com/d3-dsv/-/d3-dsv-3.0.1.tgz#c63af978f4d6a0d084a52a673922be2160789b73"
+ integrity sha512-UG6OvdI5afDIFP9w4G0mNq50dSOsXHJaRE8arAS5o9ApWnIElp8GZw1Dun8vP8OyHOZ/QJUKUJwxiiCCnUwm+Q==
+ dependencies:
+ commander "7"
+ iconv-lite "0.6"
+ rw "1"
+
+d3-force@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmmirror.com/d3-force/-/d3-force-3.0.0.tgz#3e2ba1a61e70888fe3d9194e30d6d14eece155c4"
+ integrity sha512-zxV/SsA+U4yte8051P4ECydjD/S+qeYtnaIyAs9tgHCqfguma/aAQDjo85A9Z6EKhBirHRJHXIgJUlffT4wdLg==
+ dependencies:
+ d3-dispatch "1 - 3"
+ d3-quadtree "1 - 3"
+ d3-timer "1 - 3"
+
+"d3-format@1 - 3", d3-format@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.npmmirror.com/d3-format/-/d3-format-3.1.0.tgz#9260e23a28ea5cb109e93b21a06e24e2ebd55641"
+ integrity sha512-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA==
+
+d3-geo-projection@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.npmmirror.com/d3-geo-projection/-/d3-geo-projection-4.0.0.tgz#dc229e5ead78d31869a4e87cf1f45bd2716c48ca"
+ integrity sha512-p0bK60CEzph1iqmnxut7d/1kyTmm3UWtPlwdkM31AU+LW+BXazd5zJdoCn7VFxNCHXRngPHRnsNn5uGjLRGndg==
+ dependencies:
+ commander "7"
+ d3-array "1 - 3"
+ d3-geo "1.12.0 - 3"
+
+"[email protected] - 3", d3-geo@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.npmmirror.com/d3-geo/-/d3-geo-3.0.1.tgz#4f92362fd8685d93e3b1fae0fd97dc8980b1ed7e"
+ integrity sha512-Wt23xBych5tSy9IYAM1FR2rWIBFWa52B/oF/GYe5zbdHrg08FU8+BuI6X4PvTwPDdqdAdq04fuWJpELtsaEjeA==
+ dependencies:
+ d3-array "2.5.0 - 3"
+
+d3-hierarchy@^3.1.0:
+ version "3.1.2"
+ resolved "https://registry.npmmirror.com/d3-hierarchy/-/d3-hierarchy-3.1.2.tgz#b01cd42c1eed3d46db77a5966cf726f8c09160c6"
+ integrity sha512-FX/9frcub54beBdugHjDCdikxThEqjnR93Qt7PvQTOHxyiNCAlvMrHhclk3cD5VeAaq9fxmfRp+CnWw9rEMBuA==
+
+"[email protected] - 3", d3-interpolate@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.npmmirror.com/d3-interpolate/-/d3-interpolate-3.0.1.tgz#3c47aa5b32c5b3dfb56ef3fd4342078a632b400d"
+ integrity sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==
+ dependencies:
+ d3-color "1 - 3"
+
+"d3-path@1 - 3", d3-path@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.npmmirror.com/d3-path/-/d3-path-3.0.1.tgz#f09dec0aaffd770b7995f1a399152bf93052321e"
+ integrity sha512-gq6gZom9AFZby0YLduxT1qmrp4xpBA1YZr19OI717WIdKE2OM5ETq5qrHLb301IgxhLwcuxvGZVLeeWc/k1I6w==
+
+"d3-quadtree@1 - 3":
+ version "3.0.1"
+ resolved "https://registry.npmmirror.com/d3-quadtree/-/d3-quadtree-3.0.1.tgz#6dca3e8be2b393c9a9d514dabbd80a92deef1a4f"
+ integrity sha512-04xDrxQTDTCFwP5H6hRhsRcb9xxv2RzkcsygFzmkSIOJy3PeRJP7sNk3VRIbKXcog561P9oU0/rVH6vDROAgUw==
+
+d3-scale@^4.0.2:
+ version "4.0.2"
+ resolved "https://registry.npmmirror.com/d3-scale/-/d3-scale-4.0.2.tgz#82b38e8e8ff7080764f8dcec77bd4be393689396"
+ integrity sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==
+ dependencies:
+ d3-array "2.10.0 - 3"
+ d3-format "1 - 3"
+ d3-interpolate "1.2.0 - 3"
+ d3-time "2.1.1 - 3"
+ d3-time-format "2 - 4"
+
+d3-shape@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.npmmirror.com/d3-shape/-/d3-shape-3.1.0.tgz#c8a495652d83ea6f524e482fca57aa3f8bc32556"
+ integrity sha512-tGDh1Muf8kWjEDT/LswZJ8WF85yDZLvVJpYU9Nq+8+yW1Z5enxrmXOhTArlkaElU+CTn0OTVNli+/i+HP45QEQ==
+ dependencies:
+ d3-path "1 - 3"
+
+"d3-time-format@2 - 4", d3-time-format@^4.1.0:
+ version "4.1.0"
+ resolved "https://registry.npmmirror.com/d3-time-format/-/d3-time-format-4.1.0.tgz#7ab5257a5041d11ecb4fe70a5c7d16a195bb408a"
+ integrity sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==
+ dependencies:
+ d3-time "1 - 3"
+
+"d3-time@1 - 3", "[email protected] - 3", d3-time@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmmirror.com/d3-time/-/d3-time-3.0.0.tgz#65972cb98ae2d4954ef5c932e8704061335d4975"
+ integrity sha512-zmV3lRnlaLI08y9IMRXSDshQb5Nj77smnfpnd2LrBa/2K281Jijactokeak14QacHs/kKq0AQ121nidNYlarbQ==
+ dependencies:
+ d3-array "2 - 3"
+
+"d3-timer@1 - 3", d3-timer@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.npmmirror.com/d3-timer/-/d3-timer-3.0.1.tgz#6284d2a2708285b1abb7e201eda4380af35e63b0"
+ integrity sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==
+
+debug@^4.1.0:
+ version "4.3.4"
+ resolved "https://registry.npmmirror.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865"
+ integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==
+ dependencies:
+ ms "2.1.2"
+
+define-properties@^1.1.3, define-properties@^1.1.4:
+ version "1.1.4"
+ resolved "https://registry.npmmirror.com/define-properties/-/define-properties-1.1.4.tgz#0b14d7bd7fbeb2f3572c3a7eda80ea5d57fb05b1"
+ integrity sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==
+ dependencies:
+ has-property-descriptors "^1.0.0"
+ object-keys "^1.1.1"
+
+defined@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmmirror.com/defined/-/defined-1.0.0.tgz#c98d9bcef75674188e110969151199e39b1fa693"
+ integrity sha512-Y2caI5+ZwS5c3RiNDJ6u53VhQHv+hHKwhkI1iHvceKUHw9Df6EK2zRLfjejRgMuCuxK7PfSWIMwWecceVvThjQ==
+
+delaunator@5:
+ version "5.0.0"
+ resolved "https://registry.npmmirror.com/delaunator/-/delaunator-5.0.0.tgz#60f052b28bd91c9b4566850ebf7756efe821d81b"
+ integrity sha512-AyLvtyJdbv/U1GkiS6gUUzclRoAY4Gs75qkMygJJhU75LW4DNuSF2RMzpxs9jw9Oz1BobHjTdkG3zdP55VxAqw==
+ dependencies:
+ robust-predicates "^3.0.0"
+
+detective@^5.2.0:
+ version "5.2.1"
+ resolved "https://registry.npmmirror.com/detective/-/detective-5.2.1.tgz#6af01eeda11015acb0e73f933242b70f24f91034"
+ integrity sha512-v9XE1zRnz1wRtgurGu0Bs8uHKFSTdteYZNbIPFVhUZ39L/S79ppMpdmVOZAnoz1jfEFodc48n6MX483Xo3t1yw==
+ dependencies:
+ acorn-node "^1.8.2"
+ defined "^1.0.0"
+ minimist "^1.2.6"
+
+didyoumean@^1.2.2:
+ version "1.2.2"
+ resolved "https://registry.npmmirror.com/didyoumean/-/didyoumean-1.2.2.tgz#989346ffe9e839b4555ecf5666edea0d3e8ad037"
+ integrity sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==
+
+dlv@^1.1.3:
+ version "1.1.3"
+ resolved "https://registry.npmmirror.com/dlv/-/dlv-1.1.3.tgz#5c198a8a11453596e751494d49874bc7732f2e79"
+ integrity sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==
+
+electron-to-chromium@^1.4.251:
+ version "1.4.264"
+ resolved "https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.4.264.tgz#2f68a062c38b7a04bf57f3e6954b868672fbdcd3"
+ integrity sha512-AZ6ZRkucHOQT8wke50MktxtmcWZr67kE17X/nAXFf62NIdMdgY6xfsaJD5Szoy84lnkuPWH+4tTNE3s2+bPCiw==
+
+emoji-regex@^8.0.0:
+ version "8.0.0"
+ resolved "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37"
+ integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==
+
+error-ex@^1.3.1:
+ version "1.3.2"
+ resolved "https://registry.npmmirror.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf"
+ integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==
+ dependencies:
+ is-arrayish "^0.2.1"
+
+es-abstract@^1.19.0, es-abstract@^1.19.5, es-abstract@^1.20.0:
+ version "1.20.3"
+ resolved "https://registry.npmmirror.com/es-abstract/-/es-abstract-1.20.3.tgz#90b143ff7aedc8b3d189bcfac7f1e3e3f81e9da1"
+ integrity sha512-AyrnaKVpMzljIdwjzrj+LxGmj8ik2LckwXacHqrJJ/jxz6dDDBcZ7I7nlHM0FvEW8MfbWJwOd+yT2XzYW49Frw==
+ dependencies:
+ call-bind "^1.0.2"
+ es-to-primitive "^1.2.1"
+ function-bind "^1.1.1"
+ function.prototype.name "^1.1.5"
+ get-intrinsic "^1.1.3"
+ get-symbol-description "^1.0.0"
+ has "^1.0.3"
+ has-property-descriptors "^1.0.0"
+ has-symbols "^1.0.3"
+ internal-slot "^1.0.3"
+ is-callable "^1.2.6"
+ 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.2"
+ object-keys "^1.1.1"
+ object.assign "^4.1.4"
+ regexp.prototype.flags "^1.4.3"
+ safe-regex-test "^1.0.0"
+ string.prototype.trimend "^1.0.5"
+ string.prototype.trimstart "^1.0.5"
+ unbox-primitive "^1.0.2"
+
+es-to-primitive@^1.2.1:
+ version "1.2.1"
+ resolved "https://registry.npmmirror.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a"
+ integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==
+ dependencies:
+ is-callable "^1.1.4"
+ is-date-object "^1.0.1"
+ is-symbol "^1.0.2"
+
+es6-object-assign@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.npmmirror.com/es6-object-assign/-/es6-object-assign-1.1.0.tgz#c2c3582656247c39ea107cb1e6652b6f9f24523c"
+ integrity sha512-MEl9uirslVwqQU369iHNWZXsI8yaZYGg/D65aOgZkeyFJwHYSxilf7rQzXKI7DdDuBPrBXbfk3sl9hJhmd5AUw==
+
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/esbuild-android-64/-/esbuild-android-64-0.15.9.tgz#4a7eb320ca8d3a305f14792061fd9614ccebb7c0"
+ integrity sha512-HQCX7FJn9T4kxZQkhPjNZC7tBWZqJvhlLHPU2SFzrQB/7nDXjmTIFpFTjt7Bd1uFpeXmuwf5h5fZm+x/hLnhbw==
+
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/esbuild-android-arm64/-/esbuild-android-arm64-0.15.9.tgz#c948e5686df20857ad361ec67e070d40d7cab985"
+ integrity sha512-E6zbLfqbFVCNEKircSHnPiSTsm3fCRxeIMPfrkS33tFjIAoXtwegQfVZqMGR0FlsvVxp2NEDOUz+WW48COCjSg==
+
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/esbuild-darwin-64/-/esbuild-darwin-64-0.15.9.tgz#25f564fa4b39c1cec84dc46bce5634fdbce1d5e4"
+ integrity sha512-gI7dClcDN/HHVacZhTmGjl0/TWZcGuKJ0I7/xDGJwRQQn7aafZGtvagOFNmuOq+OBFPhlPv1T6JElOXb0unkSQ==
+
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.9.tgz#60faea3ed95d15239536aa88d06bb82b29278a86"
+ integrity sha512-VZIMlcRN29yg/sv7DsDwN+OeufCcoTNaTl3Vnav7dL/nvsApD7uvhVRbgyMzv0zU/PP0xRhhIpTyc7lxEzHGSw==
+
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.9.tgz#0339ef1c90a919175e7816788224517896657a0e"
+ integrity sha512-uM4z5bTvuAXqPxrI204txhlsPIolQPWRMLenvGuCPZTnnGlCMF2QLs0Plcm26gcskhxewYo9LkkmYSS5Czrb5A==
+
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.9.tgz#32abfc0be3ae3dd38e5a86a9beadbbcf592f1b57"
+ integrity sha512-HHDjT3O5gWzicGdgJ5yokZVN9K9KG05SnERwl9nBYZaCjcCgj/sX8Ps1jvoFSfNCO04JSsHSOWo4qvxFuj8FoA==
+
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/esbuild-linux-32/-/esbuild-linux-32-0.15.9.tgz#93581348a4da7ed2b29bc5539f2605ad7fcee77b"
+ integrity sha512-AQIdE8FugGt1DkcekKi5ycI46QZpGJ/wqcMr7w6YUmOmp2ohQ8eO4sKUsOxNOvYL7hGEVwkndSyszR6HpVHLFg==
+
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/esbuild-linux-64/-/esbuild-linux-64-0.15.9.tgz#0d171e7946c95d0d3ed4826026af2c5632d7dcc4"
+ integrity sha512-4RXjae7g6Qs7StZyiYyXTZXBlfODhb1aBVAjd+ANuPmMhWthQilWo7rFHwJwL7DQu1Fjej2sODAVwLbcIVsAYQ==
+
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.9.tgz#9838795a3720cbe736d3bc20621bd366eac22f24"
+ integrity sha512-a+bTtxJmYmk9d+s2W4/R1SYKDDAldOKmWjWP0BnrWtDbvUBNOm++du0ysPju4mZVoEFgS1yLNW+VXnG/4FNwdQ==
+
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/esbuild-linux-arm/-/esbuild-linux-arm-0.15.9.tgz#dce96cd817bc7376f6af3967649c4ab1f2f79506"
+ integrity sha512-3Zf2GVGUOI7XwChH3qrnTOSqfV1V4CAc/7zLVm4lO6JT6wbJrTgEYCCiNSzziSju+J9Jhf9YGWk/26quWPC6yQ==
+
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.9.tgz#0335a0739e61aa97cb9b4a018e3facfcca9cdcfd"
+ integrity sha512-Zn9HSylDp89y+TRREMDoGrc3Z4Hs5u56ozZLQCiZAUx2+HdbbXbWdjmw3FdTJ/i7t5Cew6/Q+6kfO3KCcFGlyw==
+
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.9.tgz#18482afb95b8a705e2da0a59d7131bff221281f9"
+ integrity sha512-OEiOxNAMH9ENFYqRsWUj3CWyN3V8P3ZXyfNAtX5rlCEC/ERXrCEFCJji/1F6POzsXAzxvUJrTSTCy7G6BhA6Fw==
+
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.9.tgz#03b6f9708272c117006b9ce1c9ae8aab91b5a5b6"
+ integrity sha512-ukm4KsC3QRausEFjzTsOZ/qqazw0YvJsKmfoZZm9QW27OHjk2XKSQGGvx8gIEswft/Sadp03/VZvAaqv5AIwNA==
+
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.9.tgz#65fb645623d575780f155f0ee52935e62f9cca4f"
+ integrity sha512-uDOQEH55wQ6ahcIKzQr3VyjGc6Po/xblLGLoUk3fVL1qjlZAibtQr6XRfy5wPJLu/M2o0vQKLq4lyJ2r1tWKcw==
+
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.9.tgz#7894297bb9e11f3d2f6f31efecd1be4e181f0d54"
+ integrity sha512-yWgxaYTQz+TqX80wXRq6xAtb7GSBAp6gqLKfOdANg9qEmAI1Bxn04IrQr0Mzm4AhxvGKoHzjHjMgXbCCSSDxcw==
+
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.9.tgz#0f9d4c6b6772ae50d491d68ad4cc028300dda7c0"
+ integrity sha512-JmS18acQl4iSAjrEha1MfEmUMN4FcnnrtTaJ7Qg0tDCOcgpPPQRLGsZqhes0vmx8VA6IqRyScqXvaL7+Q0Uf3A==
+
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/esbuild-sunos-64/-/esbuild-sunos-64-0.15.9.tgz#c32b7ce574b08f814de810ce7c1e34b843768126"
+ integrity sha512-UKynGSWpzkPmXW3D2UMOD9BZPIuRaSqphxSCwScfEE05Be3KAmvjsBhht1fLzKpiFVJb0BYMd4jEbWMyJ/z1hQ==
+
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/esbuild-windows-32/-/esbuild-windows-32-0.15.9.tgz#37a8f7cfccdb2177cd46613a1a1e1fcb419d36df"
+ integrity sha512-aqXvu4/W9XyTVqO/hw3rNxKE1TcZiEYHPsXM9LwYmKSX9/hjvfIJzXwQBlPcJ/QOxedfoMVH0YnhhQ9Ffb0RGA==
+
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/esbuild-windows-64/-/esbuild-windows-64-0.15.9.tgz#5fe1e76fc13dd7f520febecaea110b6f1649c7b2"
+ integrity sha512-zm7h91WUmlS4idMtjvCrEeNhlH7+TNOmqw5dJPJZrgFaxoFyqYG6CKDpdFCQXdyKpD5yvzaQBOMVTCBVKGZDEg==
+
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.9.tgz#98504428f7ba7d2cfc11940be68ee1139173fdce"
+ integrity sha512-yQEVIv27oauAtvtuhJVfSNMztJJX47ismRS6Sv2QMVV9RM+6xjbMWuuwM2nxr5A2/gj/mu2z9YlQxiwoFRCfZA==
+
+esbuild@^0.15.6:
+ version "0.15.9"
+ resolved "https://registry.npmmirror.com/esbuild/-/esbuild-0.15.9.tgz#33fb18b67b85004b6f7616bec955ca4b3e58935d"
+ integrity sha512-OnYr1rkMVxtmMHIAKZLMcEUlJmqcbxBz9QoBU8G9v455na0fuzlT/GLu6l+SRghrk0Mm2fSSciMmzV43Q8e0Gg==
+ optionalDependencies:
+ "@esbuild/android-arm" "0.15.9"
+ "@esbuild/linux-loong64" "0.15.9"
+ esbuild-android-64 "0.15.9"
+ esbuild-android-arm64 "0.15.9"
+ esbuild-darwin-64 "0.15.9"
+ esbuild-darwin-arm64 "0.15.9"
+ esbuild-freebsd-64 "0.15.9"
+ esbuild-freebsd-arm64 "0.15.9"
+ esbuild-linux-32 "0.15.9"
+ esbuild-linux-64 "0.15.9"
+ esbuild-linux-arm "0.15.9"
+ esbuild-linux-arm64 "0.15.9"
+ esbuild-linux-mips64le "0.15.9"
+ esbuild-linux-ppc64le "0.15.9"
+ esbuild-linux-riscv64 "0.15.9"
+ esbuild-linux-s390x "0.15.9"
+ esbuild-netbsd-64 "0.15.9"
+ esbuild-openbsd-64 "0.15.9"
+ esbuild-sunos-64 "0.15.9"
+ esbuild-windows-32 "0.15.9"
+ esbuild-windows-64 "0.15.9"
+ esbuild-windows-arm64 "0.15.9"
+
+escalade@^3.1.1:
+ version "3.1.1"
+ resolved "https://registry.npmmirror.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40"
+ integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==
+
+escape-string-regexp@^1.0.5:
+ version "1.0.5"
+ resolved "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
+ integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==
+
+estree-walker@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.npmmirror.com/estree-walker/-/estree-walker-1.0.1.tgz#31bc5d612c96b704106b477e6dd5d8aa138cb700"
+ integrity sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==
+
+estree-walker@^2.0.1:
+ version "2.0.2"
+ resolved "https://registry.npmmirror.com/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac"
+ integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==
+
+fast-deep-equal@~3.1.3:
+ version "3.1.3"
+ resolved "https://registry.npmmirror.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
+ integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==
+
+fast-glob@^3.2.7:
+ version "3.2.12"
+ resolved "https://registry.npmmirror.com/fast-glob/-/fast-glob-3.2.12.tgz#7f39ec99c2e6ab030337142da9e0c18f37afae80"
+ integrity sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==
+ dependencies:
+ "@nodelib/fs.stat" "^2.0.2"
+ "@nodelib/fs.walk" "^1.2.3"
+ glob-parent "^5.1.2"
+ merge2 "^1.3.0"
+ micromatch "^4.0.4"
+
+fast-json-patch@^3.1.1:
+ version "3.1.1"
+ resolved "https://registry.npmmirror.com/fast-json-patch/-/fast-json-patch-3.1.1.tgz#85064ea1b1ebf97a3f7ad01e23f9337e72c66947"
+ integrity sha512-vf6IHUX2SBcA+5/+4883dsIjpBTqmfBjmYiWK1savxQmFk4JfBMLa7ynTYOs1Rolp/T1betJxHiGD3g1Mn8lUQ==
+
+fast-json-stable-stringify@~2.1.0:
+ version "2.1.0"
+ resolved "https://registry.npmmirror.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633"
+ integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==
+
+fastq@^1.6.0:
+ version "1.13.0"
+ resolved "https://registry.npmmirror.com/fastq/-/fastq-1.13.0.tgz#616760f88a7526bdfc596b7cab8c18938c36b98c"
+ integrity sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==
+ dependencies:
+ reusify "^1.0.4"
+
+fbemitter@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmmirror.com/fbemitter/-/fbemitter-3.0.0.tgz#00b2a1af5411254aab416cd75f9e6289bee4bff3"
+ integrity sha512-KWKaceCwKQU0+HPoop6gn4eOHk50bBv/VxjJtGMfwmJt3D29JpN4H4eisCtIPA+a8GVBam+ldMMpMjJUvpDyHw==
+ dependencies:
+ fbjs "^3.0.0"
+
+fbjs-css-vars@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.npmmirror.com/fbjs-css-vars/-/fbjs-css-vars-1.0.2.tgz#216551136ae02fe255932c3ec8775f18e2c078b8"
+ integrity sha512-b2XGFAFdWZWg0phtAWLHCk836A1Xann+I+Dgd3Gk64MHKZO44FfoD1KxyvbSh0qZsIoXQGGlVztIY+oitJPpRQ==
+
+fbjs@^3.0.0, fbjs@^3.0.1:
+ version "3.0.4"
+ resolved "https://registry.npmmirror.com/fbjs/-/fbjs-3.0.4.tgz#e1871c6bd3083bac71ff2da868ad5067d37716c6"
+ integrity sha512-ucV0tDODnGV3JCnnkmoszb5lf4bNpzjv80K41wd4k798Etq+UYD0y0TIfalLjZoKgjive6/adkRnszwapiDgBQ==
+ dependencies:
+ cross-fetch "^3.1.5"
+ fbjs-css-vars "^1.0.0"
+ loose-envify "^1.0.0"
+ object-assign "^4.1.0"
+ promise "^7.1.1"
+ setimmediate "^1.0.5"
+ ua-parser-js "^0.7.30"
+
+fill-range@^7.0.1:
+ version "7.0.1"
+ resolved "https://registry.npmmirror.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40"
+ integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==
+ dependencies:
+ to-regex-range "^5.0.1"
+
+flux@^4.0.1:
+ version "4.0.3"
+ resolved "https://registry.npmmirror.com/flux/-/flux-4.0.3.tgz#573b504a24982c4768fdfb59d8d2ea5637d72ee7"
+ integrity sha512-yKAbrp7JhZhj6uiT1FTuVMlIAT1J4jqEyBpFApi1kxpGZCvacMVc/t1pMQyotqHhAgvoE3bNvAykhCo2CLjnYw==
+ dependencies:
+ fbemitter "^3.0.0"
+ fbjs "^3.0.1"
+
+follow-redirects@^1.14.4:
+ version "1.15.2"
+ resolved "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.2.tgz#b460864144ba63f2681096f274c4e57026da2c13"
+ integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==
+
+for-each@^0.3.3:
+ version "0.3.3"
+ resolved "https://registry.npmmirror.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e"
+ integrity sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==
+ dependencies:
+ is-callable "^1.1.3"
+
+fraction.js@^4.2.0:
+ version "4.2.0"
+ resolved "https://registry.npmmirror.com/fraction.js/-/fraction.js-4.2.0.tgz#448e5109a313a3527f5a3ab2119ec4cf0e0e2950"
+ integrity sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==
+
+fs-extra@^10.0.0:
+ version "10.1.0"
+ resolved "https://registry.npmmirror.com/fs-extra/-/fs-extra-10.1.0.tgz#02873cfbc4084dde127eaa5f9905eef2325d1abf"
+ integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==
+ dependencies:
+ graceful-fs "^4.2.0"
+ jsonfile "^6.0.1"
+ universalify "^2.0.0"
+
+fs.realpath@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmmirror.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
+ integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==
+
+fsevents@~2.3.2:
+ version "2.3.2"
+ resolved "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
+ integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
+
+function-bind@^1.1.1:
+ version "1.1.1"
+ resolved "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
+ integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==
+
+function.prototype.name@^1.1.5:
+ version "1.1.5"
+ resolved "https://registry.npmmirror.com/function.prototype.name/-/function.prototype.name-1.1.5.tgz#cce0505fe1ffb80503e6f9e46cc64e46a12a9621"
+ integrity sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+ es-abstract "^1.19.0"
+ functions-have-names "^1.2.2"
+
+functions-have-names@^1.2.2:
+ version "1.2.3"
+ resolved "https://registry.npmmirror.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834"
+ integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==
+
+gensync@^1.0.0-beta.2:
+ version "1.0.0-beta.2"
+ resolved "https://registry.npmmirror.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0"
+ integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==
+
+get-caller-file@^2.0.5:
+ version "2.0.5"
+ resolved "https://registry.npmmirror.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e"
+ integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==
+
+get-intrinsic@^1.0.2, get-intrinsic@^1.1.0, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3:
+ version "1.1.3"
+ resolved "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.1.3.tgz#063c84329ad93e83893c7f4f243ef63ffa351385"
+ integrity sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==
+ dependencies:
+ function-bind "^1.1.1"
+ has "^1.0.3"
+ has-symbols "^1.0.3"
+
+get-symbol-description@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmmirror.com/get-symbol-description/-/get-symbol-description-1.0.0.tgz#7fdb81c900101fbd564dd5f1a30af5aadc1e58d6"
+ integrity sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==
+ dependencies:
+ call-bind "^1.0.2"
+ get-intrinsic "^1.1.1"
+
+glob-parent@^5.1.2, glob-parent@~5.1.2:
+ version "5.1.2"
+ resolved "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4"
+ integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==
+ dependencies:
+ is-glob "^4.0.1"
+
+glob-parent@^6.0.1:
+ version "6.0.2"
+ resolved "https://registry.npmmirror.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3"
+ integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==
+ dependencies:
+ is-glob "^4.0.3"
+
+glob@^7.1.3, glob@^7.1.7:
+ version "7.2.3"
+ resolved "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b"
+ integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==
+ dependencies:
+ fs.realpath "^1.0.0"
+ inflight "^1.0.4"
+ inherits "2"
+ minimatch "^3.1.1"
+ once "^1.3.0"
+ path-is-absolute "^1.0.0"
+
+globals@^11.1.0:
+ version "11.12.0"
+ resolved "https://registry.npmmirror.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e"
+ integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==
+
+graceful-fs@^4.1.6, graceful-fs@^4.2.0:
+ version "4.2.10"
+ resolved "https://registry.npmmirror.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c"
+ integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==
+
+has-bigints@^1.0.1, has-bigints@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.npmmirror.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa"
+ integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==
+
+has-flag@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmmirror.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd"
+ integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==
+
+has-flag@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b"
+ integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==
+
+has-property-descriptors@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmmirror.com/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz#610708600606d36961ed04c196193b6a607fa861"
+ integrity sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==
+ dependencies:
+ get-intrinsic "^1.1.1"
+
+has-symbols@^1.0.2, has-symbols@^1.0.3:
+ version "1.0.3"
+ resolved "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8"
+ integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==
+
+has-tostringtag@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmmirror.com/has-tostringtag/-/has-tostringtag-1.0.0.tgz#7e133818a7d394734f941e73c3d3f9291e658b25"
+ integrity sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==
+ dependencies:
+ has-symbols "^1.0.2"
+
+has@^1.0.3:
+ version "1.0.3"
+ resolved "https://registry.npmmirror.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796"
+ integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==
+ dependencies:
+ function-bind "^1.1.1"
+
+hex-color-regex@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.npmmirror.com/hex-color-regex/-/hex-color-regex-1.1.0.tgz#4c06fccb4602fe2602b3c93df82d7e7dbf1a8a8e"
+ integrity sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ==
+
+hoist-non-react-statics@^3.0.0, hoist-non-react-statics@^3.3.0, hoist-non-react-statics@^3.3.2:
+ version "3.3.2"
+ resolved "https://registry.npmmirror.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45"
+ integrity sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==
+ dependencies:
+ react-is "^16.7.0"
+
+hsl-regex@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmmirror.com/hsl-regex/-/hsl-regex-1.0.0.tgz#d49330c789ed819e276a4c0d272dffa30b18fe6e"
+ integrity sha512-M5ezZw4LzXbBKMruP+BNANf0k+19hDQMgpzBIYnya//Al+fjNct9Wf3b1WedLqdEs2hKBvxq/jh+DsHJLj0F9A==
+
+hsla-regex@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmmirror.com/hsla-regex/-/hsla-regex-1.0.0.tgz#c1ce7a3168c8c6614033a4b5f7877f3b225f9c38"
+ integrity sha512-7Wn5GMLuHBjZCb2bTmnDOycho0p/7UVaAeqXZGbHrBCl6Yd/xDhQJAXe6Ga9AXJH2I5zY1dEdYw2u1UptnSBJA==
+
+html-parse-stringify@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.npmmirror.com/html-parse-stringify/-/html-parse-stringify-3.0.1.tgz#dfc1017347ce9f77c8141a507f233040c59c55d2"
+ integrity sha512-KknJ50kTInJ7qIScF3jeaFRpMpE8/lfiTdzf/twXyPBLAGrLRTmkz3AdTnKeh40X8k9L2fdYwEp/42WGXIRGcg==
+ dependencies:
+ void-elements "3.1.0"
+
+html-tags@^3.1.0:
+ version "3.2.0"
+ resolved "https://registry.npmmirror.com/html-tags/-/html-tags-3.2.0.tgz#dbb3518d20b726524e4dd43de397eb0a95726961"
+ integrity sha512-vy7ClnArOZwCnqZgvv+ddgHgJiAFXe3Ge9ML5/mBctVJoUoYPCdxVucOywjDARn6CVoh3dRSFdPHy2sX80L0Wg==
+
+i18next-browser-languagedetector@^6.1.5:
+ version "6.1.5"
+ resolved "https://registry.npmmirror.com/i18next-browser-languagedetector/-/i18next-browser-languagedetector-6.1.5.tgz#ed8c9319a8d246995d8ec8fccb5bf5f4248d0fb1"
+ integrity sha512-11t7b39oKeZe4uyMxLSPnfw28BCPNLZgUk7zyufex0zKXZ+Bv+JnmJgoB+IfQLZwDt1d71PM8vwBX1NCgliY3g==
+ dependencies:
+ "@babel/runtime" "^7.18.9"
+
+i18next@^21.9.1:
+ version "21.9.2"
+ resolved "https://registry.npmmirror.com/i18next/-/i18next-21.9.2.tgz#3f7c5594393eb27117c1db4c38f5ec766e68de0e"
+ integrity sha512-00fVrLQOwy45nm3OtC9l1WiLK3nJlIYSljgCt0qzTaAy65aciMdRy9GsuW+a2AtKtdg9/njUGfRH30LRupV7ZQ==
+ dependencies:
+ "@babel/runtime" "^7.17.2"
+
+ version "0.6.3"
+ resolved "https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501"
+ integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==
+ dependencies:
+ safer-buffer ">= 2.1.2 < 3.0.0"
+
+immer@^9.0.15:
+ version "9.0.15"
+ resolved "https://registry.npmmirror.com/immer/-/immer-9.0.15.tgz#0b9169e5b1d22137aba7d43f8a81a495dd1b62dc"
+ integrity sha512-2eB/sswms9AEUSkOm4SbV5Y7Vmt/bKRwByd52jfLkW4OLYeaTP3EEiJ9agqU0O/tq6Dk62Zfj+TJSqfm1rLVGQ==
+
+import-fresh@^3.2.1:
+ version "3.3.0"
+ resolved "https://registry.npmmirror.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b"
+ integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==
+ dependencies:
+ parent-module "^1.0.0"
+ resolve-from "^4.0.0"
+
+inflight@^1.0.4:
+ version "1.0.6"
+ resolved "https://registry.npmmirror.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
+ integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==
+ dependencies:
+ once "^1.3.0"
+ wrappy "1"
+
+inherits@2, inherits@^2.0.3:
+ version "2.0.4"
+ resolved "https://registry.npmmirror.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
+ integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
+
+internal-slot@^1.0.3:
+ version "1.0.3"
+ resolved "https://registry.npmmirror.com/internal-slot/-/internal-slot-1.0.3.tgz#7347e307deeea2faac2ac6205d4bc7d34967f59c"
+ integrity sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==
+ dependencies:
+ get-intrinsic "^1.1.0"
+ has "^1.0.3"
+ side-channel "^1.0.4"
+
+"internmap@1 - 2":
+ version "2.0.3"
+ resolved "https://registry.npmmirror.com/internmap/-/internmap-2.0.3.tgz#6685f23755e43c524e251d29cbc97248e3061009"
+ integrity sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==
+
+is-arguments@^1.0.4:
+ version "1.1.1"
+ resolved "https://registry.npmmirror.com/is-arguments/-/is-arguments-1.1.1.tgz#15b3f88fda01f2a97fec84ca761a560f123efa9b"
+ integrity sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==
+ dependencies:
+ call-bind "^1.0.2"
+ has-tostringtag "^1.0.0"
+
+is-arrayish@^0.2.1:
+ version "0.2.1"
+ resolved "https://registry.npmmirror.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"
+ integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==
+
+is-arrayish@^0.3.1:
+ version "0.3.2"
+ resolved "https://registry.npmmirror.com/is-arrayish/-/is-arrayish-0.3.2.tgz#4574a2ae56f7ab206896fb431eaeed066fdf8f03"
+ integrity sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==
+
+is-bigint@^1.0.1:
+ version "1.0.4"
+ resolved "https://registry.npmmirror.com/is-bigint/-/is-bigint-1.0.4.tgz#08147a1875bc2b32005d41ccd8291dffc6691df3"
+ integrity sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==
+ dependencies:
+ has-bigints "^1.0.1"
+
+is-binary-path@~2.1.0:
+ version "2.1.0"
+ resolved "https://registry.npmmirror.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09"
+ integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==
+ dependencies:
+ binary-extensions "^2.0.0"
+
+is-boolean-object@^1.1.0:
+ version "1.1.2"
+ resolved "https://registry.npmmirror.com/is-boolean-object/-/is-boolean-object-1.1.2.tgz#5c6dc200246dd9321ae4b885a114bb1f75f63719"
+ integrity sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==
+ dependencies:
+ call-bind "^1.0.2"
+ has-tostringtag "^1.0.0"
+
+is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.6:
+ version "1.2.7"
+ resolved "https://registry.npmmirror.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055"
+ integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==
+
+is-color-stop@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.npmmirror.com/is-color-stop/-/is-color-stop-1.1.0.tgz#cfff471aee4dd5c9e158598fbe12967b5cdad345"
+ integrity sha512-H1U8Vz0cfXNujrJzEcvvwMDW9Ra+biSYA3ThdQvAnMLJkEHQXn6bWzLkxHtVYJ+Sdbx0b6finn3jZiaVe7MAHA==
+ 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"
+
+is-core-module@^2.9.0:
+ version "2.10.0"
+ resolved "https://registry.npmmirror.com/is-core-module/-/is-core-module-2.10.0.tgz#9012ede0a91c69587e647514e1d5277019e728ed"
+ integrity sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg==
+ dependencies:
+ has "^1.0.3"
+
+is-date-object@^1.0.1:
+ version "1.0.5"
+ resolved "https://registry.npmmirror.com/is-date-object/-/is-date-object-1.0.5.tgz#0841d5536e724c25597bf6ea62e1bd38298df31f"
+ integrity sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==
+ dependencies:
+ has-tostringtag "^1.0.0"
+
+is-extglob@^2.1.1:
+ version "2.1.1"
+ resolved "https://registry.npmmirror.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"
+ integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==
+
+is-fullwidth-code-point@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d"
+ integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==
+
+is-generator-function@^1.0.7:
+ version "1.0.10"
+ resolved "https://registry.npmmirror.com/is-generator-function/-/is-generator-function-1.0.10.tgz#f1558baf1ac17e0deea7c0415c438351ff2b3c72"
+ integrity sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==
+ dependencies:
+ has-tostringtag "^1.0.0"
+
+is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1:
+ version "4.0.3"
+ resolved "https://registry.npmmirror.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084"
+ integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==
+ dependencies:
+ is-extglob "^2.1.1"
+
+is-nan@^1.2.1:
+ version "1.3.2"
+ resolved "https://registry.npmmirror.com/is-nan/-/is-nan-1.3.2.tgz#043a54adea31748b55b6cd4e09aadafa69bd9e1d"
+ integrity sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==
+ dependencies:
+ call-bind "^1.0.0"
+ define-properties "^1.1.3"
+
+is-negative-zero@^2.0.2:
+ version "2.0.2"
+ resolved "https://registry.npmmirror.com/is-negative-zero/-/is-negative-zero-2.0.2.tgz#7bf6f03a28003b8b3965de3ac26f664d765f3150"
+ integrity sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==
+
+is-number-object@^1.0.4:
+ version "1.0.7"
+ resolved "https://registry.npmmirror.com/is-number-object/-/is-number-object-1.0.7.tgz#59d50ada4c45251784e9904f5246c742f07a42fc"
+ integrity sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==
+ dependencies:
+ has-tostringtag "^1.0.0"
+
+is-number@^7.0.0:
+ version "7.0.0"
+ resolved "https://registry.npmmirror.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b"
+ integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==
+
+is-regex@^1.1.4:
+ version "1.1.4"
+ resolved "https://registry.npmmirror.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958"
+ integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==
+ dependencies:
+ call-bind "^1.0.2"
+ has-tostringtag "^1.0.0"
+
+is-shared-array-buffer@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.npmmirror.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz#8f259c573b60b6a32d4058a1a07430c0a7344c79"
+ integrity sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==
+ dependencies:
+ call-bind "^1.0.2"
+
+is-string@^1.0.5, is-string@^1.0.7:
+ version "1.0.7"
+ resolved "https://registry.npmmirror.com/is-string/-/is-string-1.0.7.tgz#0dd12bf2006f255bb58f695110eff7491eebc0fd"
+ integrity sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==
+ dependencies:
+ has-tostringtag "^1.0.0"
+
+is-symbol@^1.0.2, is-symbol@^1.0.3:
+ version "1.0.4"
+ resolved "https://registry.npmmirror.com/is-symbol/-/is-symbol-1.0.4.tgz#a6dac93b635b063ca6872236de88910a57af139c"
+ integrity sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==
+ dependencies:
+ has-symbols "^1.0.2"
+
+is-typed-array@^1.1.3, is-typed-array@^1.1.9:
+ version "1.1.9"
+ resolved "https://registry.npmmirror.com/is-typed-array/-/is-typed-array-1.1.9.tgz#246d77d2871e7d9f5aeb1d54b9f52c71329ece67"
+ integrity sha512-kfrlnTTn8pZkfpJMUgYD7YZ3qzeJgWUn8XfVYBARc4wnmNOmLbmuuaAs3q5fvB0UJOn6yHAKaGTPM7d6ezoD/A==
+ dependencies:
+ available-typed-arrays "^1.0.5"
+ call-bind "^1.0.2"
+ es-abstract "^1.20.0"
+ for-each "^0.3.3"
+ has-tostringtag "^1.0.0"
+
+is-weakref@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.npmmirror.com/is-weakref/-/is-weakref-1.0.2.tgz#9529f383a9338205e89765e0392efc2f100f06f2"
+ integrity sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==
+ dependencies:
+ call-bind "^1.0.2"
+
+"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
+ integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==
+
+jsesc@^2.5.1:
+ version "2.5.2"
+ resolved "https://registry.npmmirror.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4"
+ integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==
+
+json-parse-even-better-errors@^2.3.0:
+ version "2.3.1"
+ resolved "https://registry.npmmirror.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d"
+ integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==
+
+json-stringify-pretty-compact@^3.0.0, json-stringify-pretty-compact@~3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmmirror.com/json-stringify-pretty-compact/-/json-stringify-pretty-compact-3.0.0.tgz#f71ef9d82ef16483a407869556588e91b681d9ab"
+ integrity sha512-Rc2suX5meI0S3bfdZuA7JMFBGkJ875ApfVyq2WHELjBiiG22My/l7/8zPpH/CfFVQHuVLd8NLR0nv6vi0BYYKA==
+
+json5@^2.2.1:
+ version "2.2.1"
+ resolved "https://registry.npmmirror.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c"
+ integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==
+
+jsonfile@^6.0.1:
+ version "6.1.0"
+ resolved "https://registry.npmmirror.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae"
+ integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==
+ dependencies:
+ universalify "^2.0.0"
+ optionalDependencies:
+ graceful-fs "^4.1.6"
+
+lilconfig@^2.0.5:
+ version "2.0.6"
+ resolved "https://registry.npmmirror.com/lilconfig/-/lilconfig-2.0.6.tgz#32a384558bd58af3d4c6e077dd1ad1d397bc69d4"
+ integrity sha512-9JROoBW7pobfsx+Sq2JsASvCo6Pfo6WWoUW79HuB1BCoBXD4PLWJPqDF6fNj67pqBYTbAHkE57M1kS/+L1neOg==
+
+lines-and-columns@^1.1.6:
+ version "1.2.4"
+ resolved "https://registry.npmmirror.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632"
+ integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==
+
+lodash.curry@^4.0.1:
+ version "4.1.1"
+ resolved "https://registry.npmmirror.com/lodash.curry/-/lodash.curry-4.1.1.tgz#248e36072ede906501d75966200a86dab8b23170"
+ integrity sha512-/u14pXGviLaweY5JI0IUzgzF2J6Ne8INyzAZjImcryjgkZ+ebruBxy2/JaOOkTqScddcYtakjhSaeemV8lR0tA==
+
+lodash.flow@^3.3.0:
+ version "3.5.0"
+ resolved "https://registry.npmmirror.com/lodash.flow/-/lodash.flow-3.5.0.tgz#87bf40292b8cf83e4e8ce1a3ae4209e20071675a"
+ integrity sha512-ff3BX/tSioo+XojX4MOsOMhJw0nZoUEF011LX8g8d3gvjVbxd89cCio4BCXronjxcTUIJUoqKEUA+n4CqvvRPw==
+
+lodash.topath@^4.5.2:
+ version "4.5.2"
+ resolved "https://registry.npmmirror.com/lodash.topath/-/lodash.topath-4.5.2.tgz#3616351f3bba61994a0931989660bd03254fd009"
+ integrity sha512-1/W4dM+35DwvE/iEd1M9ekewOSTlpFekhw9mhAtrwjVqUr83/ilQiyAvmg4tVX7Unkcfl1KC+i9WdaT4B6aQcg==
+
+lodash@^4.17.11, lodash@^4.17.21:
+ version "4.17.21"
+ resolved "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
+ integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
+
+loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0:
+ version "1.4.0"
+ resolved "https://registry.npmmirror.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
+ integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
+ dependencies:
+ js-tokens "^3.0.0 || ^4.0.0"
+
+lru-cache@^6.0.0:
+ version "6.0.0"
+ resolved "https://registry.npmmirror.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94"
+ integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==
+ dependencies:
+ yallist "^4.0.0"
+
+memoize-one@^5.1.1:
+ version "5.2.1"
+ resolved "https://registry.npmmirror.com/memoize-one/-/memoize-one-5.2.1.tgz#8337aa3c4335581839ec01c3d594090cebe8f00e"
+ integrity sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==
+
+merge2@^1.3.0:
+ version "1.4.1"
+ resolved "https://registry.npmmirror.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae"
+ integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==
+
+micromatch@^4.0.4:
+ version "4.0.5"
+ resolved "https://registry.npmmirror.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6"
+ integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==
+ dependencies:
+ braces "^3.0.2"
+ picomatch "^2.3.1"
+
+minimatch@^3.1.1:
+ version "3.1.2"
+ resolved "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
+ integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
+ dependencies:
+ brace-expansion "^1.1.7"
+
+minimist@^1.2.6:
+ version "1.2.6"
+ resolved "https://registry.npmmirror.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44"
+ integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==
+
+mobx-react-lite@^3.2.1:
+ version "3.4.0"
+ resolved "https://registry.npmmirror.com/mobx-react-lite/-/mobx-react-lite-3.4.0.tgz#d59156a96889cdadad751e5e4dab95f28926dfff"
+ integrity sha512-bRuZp3C0itgLKHu/VNxi66DN/XVkQG7xtoBVWxpvC5FhAqbOCP21+nPhULjnzEqd7xBMybp6KwytdUpZKEgpIQ==
+
+mobx@^6.3.3:
+ version "6.6.2"
+ resolved "https://registry.npmmirror.com/mobx/-/mobx-6.6.2.tgz#9d9102a0e337e3fc09cb2d8ca0c6f00b61270d5a"
+ integrity sha512-IOpS0bf3+hXIhDIy+CmlNMBfFpAbHS0aVHcNC+xH/TFYEKIIVDKNYRh9eKlXuVfJ1iRKAp0cRVmO145CyJAMVQ==
+
+modern-normalize@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.npmmirror.com/modern-normalize/-/modern-normalize-1.1.0.tgz#da8e80140d9221426bd4f725c6e11283d34f90b7"
+ integrity sha512-2lMlY1Yc1+CUy0gw4H95uNN7vjbpoED7NNRSBHE25nWfLBdmMzFCsPshlzbxHz+gYMcBEUN8V4pU16prcdPSgA==
+
+ version "2.1.2"
+ resolved "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"
+ integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
+
+nanoid@^3.3.4:
+ version "3.3.4"
+ resolved "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab"
+ integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==
+
+node-emoji@^1.11.0:
+ version "1.11.0"
+ resolved "https://registry.npmmirror.com/node-emoji/-/node-emoji-1.11.0.tgz#69a0150e6946e2f115e9d7ea4df7971e2628301c"
+ integrity sha512-wo2DpQkQp7Sjm2A0cq+sN7EHKO6Sl0ctXeBdFZrL9T9+UywORbufTcTZxom8YqpLQt/FqNMUkOpkZrJVYSKD3A==
+ dependencies:
+ lodash "^4.17.21"
+
[email protected], node-fetch@^2.6.7:
+ version "2.6.7"
+ resolved "https://registry.npmmirror.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad"
+ integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==
+ dependencies:
+ whatwg-url "^5.0.0"
+
+node-releases@^2.0.6:
+ version "2.0.6"
+ resolved "https://registry.npmmirror.com/node-releases/-/node-releases-2.0.6.tgz#8a7088c63a55e493845683ebf3c828d8c51c5503"
+ integrity sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==
+
+normalize-path@^3.0.0, normalize-path@~3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmmirror.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65"
+ integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==
+
+normalize-range@^0.1.2:
+ version "0.1.2"
+ resolved "https://registry.npmmirror.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942"
+ integrity sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==
+
+object-assign@^4.1.0, object-assign@^4.1.1:
+ version "4.1.1"
+ resolved "https://registry.npmmirror.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
+ integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==
+
+object-hash@^2.2.0:
+ version "2.2.0"
+ resolved "https://registry.npmmirror.com/object-hash/-/object-hash-2.2.0.tgz#5ad518581eefc443bd763472b8ff2e9c2c0d54a5"
+ integrity sha512-gScRMn0bS5fH+IuwyIFgnh9zBdo4DV+6GhygmWM9HyNJSgS0hScp1f5vjtm7oIIOiT9trXrShAkLFSc2IqKNgw==
+
+object-inspect@^1.12.2, object-inspect@^1.9.0:
+ version "1.12.2"
+ resolved "https://registry.npmmirror.com/object-inspect/-/object-inspect-1.12.2.tgz#c0641f26394532f28ab8d796ab954e43c009a8ea"
+ integrity sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==
+
+object-is@^1.0.1:
+ version "1.1.5"
+ resolved "https://registry.npmmirror.com/object-is/-/object-is-1.1.5.tgz#b9deeaa5fc7f1846a0faecdceec138e5778f53ac"
+ integrity sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+
+object-keys@^1.1.1:
+ version "1.1.1"
+ resolved "https://registry.npmmirror.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e"
+ integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==
+
+object.assign@^4.1.4:
+ version "4.1.4"
+ resolved "https://registry.npmmirror.com/object.assign/-/object.assign-4.1.4.tgz#9673c7c7c351ab8c4d0b516f4343ebf4dfb7799f"
+ integrity sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.4"
+ has-symbols "^1.0.3"
+ object-keys "^1.1.1"
+
+once@^1.3.0:
+ version "1.4.0"
+ resolved "https://registry.npmmirror.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
+ integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==
+ dependencies:
+ wrappy "1"
+
+papaparse@^5.1.1:
+ version "5.3.2"
+ resolved "https://registry.npmmirror.com/papaparse/-/papaparse-5.3.2.tgz#d1abed498a0ee299f103130a6109720404fbd467"
+ integrity sha512-6dNZu0Ki+gyV0eBsFKJhYr+MdQYAzFUGlBMNj3GNrmHxmz1lfRa24CjFObPXtjcetlOv5Ad299MhIK0znp3afw==
+
+parent-module@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.npmmirror.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2"
+ integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==
+ dependencies:
+ callsites "^3.0.0"
+
+parse-json@^5.0.0:
+ version "5.2.0"
+ resolved "https://registry.npmmirror.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd"
+ integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==
+ dependencies:
+ "@babel/code-frame" "^7.0.0"
+ error-ex "^1.3.1"
+ json-parse-even-better-errors "^2.3.0"
+ lines-and-columns "^1.1.6"
+
+path-is-absolute@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.npmmirror.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
+ integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==
+
+path-parse@^1.0.7:
+ version "1.0.7"
+ resolved "https://registry.npmmirror.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735"
+ integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==
+
+path-type@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.npmmirror.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b"
+ integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==
+
+picocolors@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmmirror.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c"
+ integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==
+
+picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.3.0, picomatch@^2.3.1:
+ version "2.3.1"
+ resolved "https://registry.npmmirror.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
+ integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
+
+postcss-js@^3.0.3:
+ version "3.0.3"
+ resolved "https://registry.npmmirror.com/postcss-js/-/postcss-js-3.0.3.tgz#2f0bd370a2e8599d45439f6970403b5873abda33"
+ integrity sha512-gWnoWQXKFw65Hk/mi2+WTQTHdPD5UJdDXZmX073EY/B3BWnYjO4F4t0VneTCnCGQ5E5GsCdMkzPaTXwl3r5dJw==
+ dependencies:
+ camelcase-css "^2.0.1"
+ postcss "^8.1.6"
+
+postcss-load-config@^3.1.0:
+ version "3.1.4"
+ resolved "https://registry.npmmirror.com/postcss-load-config/-/postcss-load-config-3.1.4.tgz#1ab2571faf84bb078877e1d07905eabe9ebda855"
+ integrity sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==
+ dependencies:
+ lilconfig "^2.0.5"
+ yaml "^1.10.2"
+
+ version "5.0.6"
+ resolved "https://registry.npmmirror.com/postcss-nested/-/postcss-nested-5.0.6.tgz#466343f7fc8d3d46af3e7dba3fcd47d052a945bc"
+ integrity sha512-rKqm2Fk0KbA8Vt3AdGN0FB9OBOMDVajMG6ZCf/GoHgdxUJ4sBFp0A/uMIRm+MJUdo33YXEtjqIz8u7DAp8B7DA==
+ dependencies:
+ postcss-selector-parser "^6.0.6"
+
+postcss-selector-parser@^6.0.6:
+ version "6.0.10"
+ resolved "https://registry.npmmirror.com/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz#79b61e2c0d1bfc2602d549e11d0876256f8df88d"
+ integrity sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==
+ dependencies:
+ cssesc "^3.0.0"
+ util-deprecate "^1.0.2"
+
+postcss-value-parser@^3.3.0:
+ version "3.3.1"
+ resolved "https://registry.npmmirror.com/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz#9ff822547e2893213cf1c30efa51ac5fd1ba8281"
+ integrity sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==
+
+postcss-value-parser@^4.0.2, postcss-value-parser@^4.1.0, postcss-value-parser@^4.2.0:
+ version "4.2.0"
+ resolved "https://registry.npmmirror.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514"
+ integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==
+
+postcss@^8.1.6, postcss@^8.3.5, postcss@^8.3.7, postcss@^8.4.16:
+ version "8.4.16"
+ resolved "https://registry.npmmirror.com/postcss/-/postcss-8.4.16.tgz#33a1d675fac39941f5f445db0de4db2b6e01d43c"
+ integrity sha512-ipHE1XBvKzm5xI7hiHCZJCSugxvsdq2mPnsq5+UF+VHCjiBvtDrlxJfMBToWaP9D5XlgNmcFGqoHmUn0EYEaRQ==
+ dependencies:
+ nanoid "^3.3.4"
+ picocolors "^1.0.0"
+ source-map-js "^1.0.2"
+
+pretty-hrtime@^1.0.3:
+ version "1.0.3"
+ resolved "https://registry.npmmirror.com/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz#b7e3ea42435a4c9b2759d99e0f201eb195802ee1"
+ integrity sha512-66hKPCr+72mlfiSjlEB1+45IjXSqvVAIy6mocupoww4tBFE9R9IhwwUGoI4G++Tc9Aq+2rxOt0RFU6gPcrte0A==
+
+promise@^7.1.1:
+ version "7.3.1"
+ resolved "https://registry.npmmirror.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf"
+ integrity sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==
+ dependencies:
+ asap "~2.0.3"
+
+prop-types@^15.7.2:
+ version "15.8.1"
+ resolved "https://registry.npmmirror.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
+ integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==
+ dependencies:
+ loose-envify "^1.4.0"
+ object-assign "^4.1.1"
+ react-is "^16.13.1"
+
+pure-color@^1.2.0:
+ version "1.3.0"
+ resolved "https://registry.npmmirror.com/pure-color/-/pure-color-1.3.0.tgz#1fe064fb0ac851f0de61320a8bf796836422f33e"
+ integrity sha512-QFADYnsVoBMw1srW7OVKEYjG+MbIa49s54w1MA1EDY6r2r/sTcKKYqRX1f4GYvnXP7eN/Pe9HFcX+hwzmrXRHA==
+
+purgecss@^4.0.3:
+ version "4.1.3"
+ resolved "https://registry.npmmirror.com/purgecss/-/purgecss-4.1.3.tgz#683f6a133c8c4de7aa82fe2746d1393b214918f7"
+ integrity sha512-99cKy4s+VZoXnPxaoM23e5ABcP851nC2y2GROkkjS8eJaJtlciGavd7iYAw2V84WeBqggZ12l8ef44G99HmTaw==
+ dependencies:
+ commander "^8.0.0"
+ glob "^7.1.7"
+ postcss "^8.3.5"
+ postcss-selector-parser "^6.0.6"
+
+queue-microtask@^1.2.2:
+ version "1.2.3"
+ resolved "https://registry.npmmirror.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243"
+ integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==
+
+quick-lru@^5.1.1:
+ version "5.1.1"
+ resolved "https://registry.npmmirror.com/quick-lru/-/quick-lru-5.1.1.tgz#366493e6b3e42a3a6885e2e99d18f80fb7a8c932"
+ integrity sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==
+
+raf-schd@^4.0.2:
+ version "4.0.3"
+ resolved "https://registry.npmmirror.com/raf-schd/-/raf-schd-4.0.3.tgz#5d6c34ef46f8b2a0e880a8fcdb743efc5bfdbc1a"
+ integrity sha512-tQkJl2GRWh83ui2DiPTJz9wEiMN20syf+5oKfB03yYP7ioZcJwsIK8FjrtLwH1m7C7e+Tt2yYBlrOpdT+dyeIQ==
+
+re-resizable@^6.9.8:
+ version "6.9.9"
+ resolved "https://registry.npmmirror.com/re-resizable/-/re-resizable-6.9.9.tgz#99e8b31c67a62115dc9c5394b7e55892265be216"
+ integrity sha512-l+MBlKZffv/SicxDySKEEh42hR6m5bAHfNu3Tvxks2c4Ah+ldnWjfnVRwxo/nxF27SsUsxDS0raAzFuJNKABXA==
+
+react-base16-styling@^0.6.0:
+ version "0.6.0"
+ resolved "https://registry.npmmirror.com/react-base16-styling/-/react-base16-styling-0.6.0.tgz#ef2156d66cf4139695c8a167886cb69ea660792c"
+ integrity sha512-yvh/7CArceR/jNATXOKDlvTnPKPmGZz7zsenQ3jUwLzHkNUR0CvY3yGYJbWJ/nnxsL8Sgmt5cO3/SILVuPO6TQ==
+ dependencies:
+ base16 "^1.0.0"
+ lodash.curry "^4.0.1"
+ lodash.flow "^3.3.0"
+ pure-color "^1.2.0"
+
+react-beautiful-dnd@^13.1.0:
+ version "13.1.1"
+ resolved "https://registry.npmmirror.com/react-beautiful-dnd/-/react-beautiful-dnd-13.1.1.tgz#b0f3087a5840920abf8bb2325f1ffa46d8c4d0a2"
+ integrity sha512-0Lvs4tq2VcrEjEgDXHjT98r+63drkKEgqyxdA7qD3mvKwga6a5SscbdLPO2IExotU1jW8L0Ksdl0Cj2AF67nPQ==
+ dependencies:
+ "@babel/runtime" "^7.9.2"
+ css-box-model "^1.2.0"
+ memoize-one "^5.1.1"
+ raf-schd "^4.0.2"
+ react-redux "^7.2.0"
+ redux "^4.0.4"
+ use-memo-one "^1.1.1"
+
+react-dom@^17.0.2:
+ version "17.0.2"
+ resolved "https://registry.npmmirror.com/react-dom/-/react-dom-17.0.2.tgz#ecffb6845e3ad8dbfcdc498f0d0a939736502c23"
+ integrity sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==
+ dependencies:
+ loose-envify "^1.1.0"
+ object-assign "^4.1.1"
+ scheduler "^0.20.2"
+
+react-i18next@^11.18.6:
+ version "11.18.6"
+ resolved "https://registry.npmmirror.com/react-i18next/-/react-i18next-11.18.6.tgz#e159c2960c718c1314f1e8fcaa282d1c8b167887"
+ integrity sha512-yHb2F9BiT0lqoQDt8loZ5gWP331GwctHz9tYQ8A2EIEUu+CcEdjBLQWli1USG3RdWQt3W+jqQLg/d4rrQR96LA==
+ dependencies:
+ "@babel/runtime" "^7.14.5"
+ html-parse-stringify "^3.0.1"
+
+react-is@^16.13.1, react-is@^16.7.0:
+ version "16.13.1"
+ resolved "https://registry.npmmirror.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
+ integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
+
+react-is@^17.0.2:
+ version "17.0.2"
+ resolved "https://registry.npmmirror.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0"
+ integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==
+
+react-json-view@^1.21.3:
+ version "1.21.3"
+ resolved "https://registry.npmmirror.com/react-json-view/-/react-json-view-1.21.3.tgz#f184209ee8f1bf374fb0c41b0813cff54549c475"
+ integrity sha512-13p8IREj9/x/Ye4WI/JpjhoIwuzEgUAtgJZNBJckfzJt1qyh24BdTm6UQNGnyTq9dapQdrqvquZTo3dz1X6Cjw==
+ dependencies:
+ flux "^4.0.1"
+ react-base16-styling "^0.6.0"
+ react-lifecycles-compat "^3.0.4"
+ react-textarea-autosize "^8.3.2"
+
+react-lifecycles-compat@^3.0.4:
+ version "3.0.4"
+ resolved "https://registry.npmmirror.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362"
+ integrity sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==
+
+react-redux@^7.2.0:
+ version "7.2.9"
+ resolved "https://registry.npmmirror.com/react-redux/-/react-redux-7.2.9.tgz#09488fbb9416a4efe3735b7235055442b042481d"
+ integrity sha512-Gx4L3uM182jEEayZfRbI/G11ZpYdNAnBs70lFVMNdHJI76XYtR+7m0MN+eAs7UHBPhWXcnFPaS+9owSCJQHNpQ==
+ dependencies:
+ "@babel/runtime" "^7.15.4"
+ "@types/react-redux" "^7.1.20"
+ hoist-non-react-statics "^3.3.2"
+ loose-envify "^1.4.0"
+ prop-types "^15.7.2"
+ react-is "^17.0.2"
+
+react-refresh@^0.10.0:
+ version "0.10.0"
+ resolved "https://registry.npmmirror.com/react-refresh/-/react-refresh-0.10.0.tgz#2f536c9660c0b9b1d500684d9e52a65e7404f7e3"
+ integrity sha512-PgidR3wST3dDYKr6b4pJoqQFpPGNKDSCDx4cZoshjXipw3LzO7mG1My2pwEzz2JVkF+inx3xRpDeQLFQGH/hsQ==
+
+react-textarea-autosize@^8.3.2:
+ version "8.3.4"
+ resolved "https://registry.npmmirror.com/react-textarea-autosize/-/react-textarea-autosize-8.3.4.tgz#270a343de7ad350534141b02c9cb78903e553524"
+ integrity sha512-CdtmP8Dc19xL8/R6sWvtknD/eCXkQr30dtvC4VmGInhRsfF8X/ihXCq6+9l9qbxmKRiq407/7z5fxE7cVWQNgQ==
+ dependencies:
+ "@babel/runtime" "^7.10.2"
+ use-composed-ref "^1.3.0"
+ use-latest "^1.2.1"
+
+react@^17.0.2:
+ version "17.0.2"
+ resolved "https://registry.npmmirror.com/react/-/react-17.0.2.tgz#d0b5cc516d29eb3eee383f75b62864cfb6800037"
+ integrity sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==
+ dependencies:
+ loose-envify "^1.1.0"
+ object-assign "^4.1.1"
+
+readdirp@~3.6.0:
+ version "3.6.0"
+ resolved "https://registry.npmmirror.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7"
+ integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==
+ dependencies:
+ picomatch "^2.2.1"
+
+reduce-css-calc@^2.1.8:
+ version "2.1.8"
+ resolved "https://registry.npmmirror.com/reduce-css-calc/-/reduce-css-calc-2.1.8.tgz#7ef8761a28d614980dc0c982f772c93f7a99de03"
+ integrity sha512-8liAVezDmUcH+tdzoEGrhfbGcP7nOV4NkGE3a74+qqvE7nt9i4sKLGBuZNOnpI4WiGksiNPklZxva80061QiPg==
+ dependencies:
+ css-unit-converter "^1.1.1"
+ postcss-value-parser "^3.3.0"
+
+redux@^4.0.0, redux@^4.0.4:
+ version "4.2.0"
+ resolved "https://registry.npmmirror.com/redux/-/redux-4.2.0.tgz#46f10d6e29b6666df758780437651eeb2b969f13"
+ integrity sha512-oSBmcKKIuIR4ME29/AeNUnl5L+hvBq7OaJWzaptTQJAntaPvxIJqfnjbaEiCzzaIz+XmVILfqAM3Ob0aXLPfjA==
+ dependencies:
+ "@babel/runtime" "^7.9.2"
+
+regenerator-runtime@^0.13.4:
+ version "0.13.9"
+ resolved "https://registry.npmmirror.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52"
+ integrity sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==
+
+regexp.prototype.flags@^1.4.3:
+ version "1.4.3"
+ resolved "https://registry.npmmirror.com/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz#87cab30f80f66660181a3bb7bf5981a872b367ac"
+ integrity sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+ functions-have-names "^1.2.2"
+
+require-directory@^2.1.1:
+ version "2.1.1"
+ resolved "https://registry.npmmirror.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42"
+ integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==
+
+resolve-from@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.npmmirror.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6"
+ integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==
+
+resolve@^1.17.0, resolve@^1.20.0, resolve@^1.22.1:
+ version "1.22.1"
+ resolved "https://registry.npmmirror.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177"
+ integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==
+ dependencies:
+ is-core-module "^2.9.0"
+ path-parse "^1.0.7"
+ supports-preserve-symlinks-flag "^1.0.0"
+
+reusify@^1.0.4:
+ version "1.0.4"
+ resolved "https://registry.npmmirror.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76"
+ integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==
+
+rgb-regex@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.npmmirror.com/rgb-regex/-/rgb-regex-1.0.1.tgz#c0e0d6882df0e23be254a475e8edd41915feaeb1"
+ integrity sha512-gDK5mkALDFER2YLqH6imYvK6g02gpNGM4ILDZ472EwWfXZnC2ZEpoB2ECXTyOVUKuk/bPJZMzwQPBYICzP+D3w==
+
+rgba-regex@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmmirror.com/rgba-regex/-/rgba-regex-1.0.0.tgz#43374e2e2ca0968b0ef1523460b7d730ff22eeb3"
+ integrity sha512-zgn5OjNQXLUTdq8m17KdaicF6w89TZs8ZU8y0AYENIU6wG8GG6LLm0yLSiPY8DmaYmHdgRW8rnApjoT0fQRfMg==
+
+rimraf@^3.0.0:
+ version "3.0.2"
+ resolved "https://registry.npmmirror.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
+ integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==
+ dependencies:
+ glob "^7.1.3"
+
+robust-predicates@^3.0.0:
+ version "3.0.1"
+ resolved "https://registry.npmmirror.com/robust-predicates/-/robust-predicates-3.0.1.tgz#ecde075044f7f30118682bd9fb3f123109577f9a"
+ integrity sha512-ndEIpszUHiG4HtDsQLeIuMvRsDnn8c8rYStabochtUeCvfuvNptb5TUbVD68LRAILPX7p9nqQGh4xJgn3EHS/g==
+
+rollup@~2.78.0:
+ version "2.78.1"
+ resolved "https://registry.npmmirror.com/rollup/-/rollup-2.78.1.tgz#52fe3934d9c83cb4f7c4cb5fb75d88591be8648f"
+ integrity sha512-VeeCgtGi4P+o9hIg+xz4qQpRl6R401LWEXBmxYKOV4zlF82lyhgh2hTZnheFUbANE8l2A41F458iwj2vEYaXJg==
+ optionalDependencies:
+ fsevents "~2.3.2"
+
+run-parallel@^1.1.9:
+ version "1.2.0"
+ resolved "https://registry.npmmirror.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee"
+ integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==
+ dependencies:
+ queue-microtask "^1.2.2"
+
+rw@1:
+ version "1.3.3"
+ resolved "https://registry.npmmirror.com/rw/-/rw-1.3.3.tgz#3f862dfa91ab766b14885ef4d01124bfda074fb4"
+ integrity sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==
+
+rxjs@^7.3.0:
+ version "7.5.7"
+ resolved "https://registry.npmmirror.com/rxjs/-/rxjs-7.5.7.tgz#2ec0d57fdc89ece220d2e702730ae8f1e49def39"
+ integrity sha512-z9MzKh/UcOqB3i20H6rtrlaE/CgjLOvheWK/9ILrbhROGTweAi1BaFsTT9FbwZi5Trr1qNRs+MXkhmR06awzQA==
+ dependencies:
+ tslib "^2.1.0"
+
+safe-buffer@^5.1.2:
+ version "5.2.1"
+ resolved "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"
+ integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==
+
+safe-buffer@~5.1.1:
+ version "5.1.2"
+ resolved "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
+ integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==
+
+safe-regex-test@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmmirror.com/safe-regex-test/-/safe-regex-test-1.0.0.tgz#793b874d524eb3640d1873aad03596db2d4f2295"
+ integrity sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==
+ dependencies:
+ call-bind "^1.0.2"
+ get-intrinsic "^1.1.3"
+ is-regex "^1.1.4"
+
+"safer-buffer@>= 2.1.2 < 3.0.0":
+ version "2.1.2"
+ resolved "https://registry.npmmirror.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
+ integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==
+
+scheduler@^0.20.2:
+ version "0.20.2"
+ resolved "https://registry.npmmirror.com/scheduler/-/scheduler-0.20.2.tgz#4baee39436e34aa93b4874bddcbf0fe8b8b50e91"
+ integrity sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==
+ dependencies:
+ loose-envify "^1.1.0"
+ object-assign "^4.1.1"
+
+semver@^6.3.0:
+ version "6.3.0"
+ resolved "https://registry.npmmirror.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
+ integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
+
+semver@^7.3.7:
+ version "7.3.7"
+ resolved "https://registry.npmmirror.com/semver/-/semver-7.3.7.tgz#12c5b649afdbf9049707796e22a4028814ce523f"
+ integrity sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==
+ dependencies:
+ lru-cache "^6.0.0"
+
+setimmediate@^1.0.5:
+ version "1.0.5"
+ resolved "https://registry.npmmirror.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285"
+ integrity sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==
+
+shallowequal@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.npmmirror.com/shallowequal/-/shallowequal-1.1.0.tgz#188d521de95b9087404fd4dcb68b13df0ae4e7f8"
+ integrity sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==
+
+side-channel@^1.0.4:
+ version "1.0.4"
+ resolved "https://registry.npmmirror.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf"
+ integrity sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==
+ dependencies:
+ call-bind "^1.0.0"
+ get-intrinsic "^1.0.2"
+ object-inspect "^1.9.0"
+
+simple-statistics@^7.1.0:
+ version "7.7.6"
+ resolved "https://registry.npmmirror.com/simple-statistics/-/simple-statistics-7.7.6.tgz#31a21b2172d6c35cdb203dd7034232f5bc3cbd66"
+ integrity sha512-r1wIPpBsJ9/H2GdXiYfc06o7Rw4xvhtxwO/dMVSbcjmS3ayc43II1quxG7YD1wql2tr6a2Cm8aWKMnFkuNrj6A==
+
+simple-swizzle@^0.2.2:
+ version "0.2.2"
+ resolved "https://registry.npmmirror.com/simple-swizzle/-/simple-swizzle-0.2.2.tgz#a4da6b635ffcccca33f70d17cb92592de95e557a"
+ integrity sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==
+ dependencies:
+ is-arrayish "^0.3.1"
+
+source-map-js@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c"
+ integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==
+
+string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
+ version "4.2.3"
+ resolved "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
+ integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
+ dependencies:
+ emoji-regex "^8.0.0"
+ is-fullwidth-code-point "^3.0.0"
+ strip-ansi "^6.0.1"
+
+string.prototype.trimend@^1.0.5:
+ version "1.0.5"
+ resolved "https://registry.npmmirror.com/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz#914a65baaab25fbdd4ee291ca7dde57e869cb8d0"
+ integrity sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.4"
+ es-abstract "^1.19.5"
+
+string.prototype.trimstart@^1.0.5:
+ version "1.0.5"
+ resolved "https://registry.npmmirror.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz#5466d93ba58cfa2134839f81d7f42437e8c01fef"
+ integrity sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.4"
+ es-abstract "^1.19.5"
+
+strip-ansi@^6.0.0, strip-ansi@^6.0.1:
+ version "6.0.1"
+ resolved "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
+ integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
+ dependencies:
+ ansi-regex "^5.0.1"
+
+styled-components@^5.3.0:
+ version "5.3.5"
+ resolved "https://registry.npmmirror.com/styled-components/-/styled-components-5.3.5.tgz#a750a398d01f1ca73af16a241dec3da6deae5ec4"
+ integrity sha512-ndETJ9RKaaL6q41B69WudeqLzOpY1A/ET/glXkNZ2T7dPjPqpPCXXQjDFYZWwNnE5co0wX+gTCqx9mfxTmSIPg==
+ dependencies:
+ "@babel/helper-module-imports" "^7.0.0"
+ "@babel/traverse" "^7.4.5"
+ "@emotion/is-prop-valid" "^1.1.0"
+ "@emotion/stylis" "^0.8.4"
+ "@emotion/unitless" "^0.7.4"
+ babel-plugin-styled-components ">= 1.12.0"
+ css-to-react-native "^3.0.0"
+ hoist-non-react-statics "^3.0.0"
+ shallowequal "^1.1.0"
+ supports-color "^5.5.0"
+
+supports-color@^5.3.0, supports-color@^5.5.0:
+ version "5.5.0"
+ resolved "https://registry.npmmirror.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"
+ integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==
+ dependencies:
+ has-flag "^3.0.0"
+
+supports-color@^7.1.0:
+ version "7.2.0"
+ resolved "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da"
+ integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==
+ dependencies:
+ has-flag "^4.0.0"
+
+supports-preserve-symlinks-flag@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmmirror.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09"
+ integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==
+
+tailwindcss@^2.2.15:
+ version "2.2.19"
+ resolved "https://registry.npmmirror.com/tailwindcss/-/tailwindcss-2.2.19.tgz#540e464832cd462bb9649c1484b0a38315c2653c"
+ integrity sha512-6Ui7JSVtXadtTUo2NtkBBacobzWiQYVjYW0ZnKaP9S1ZCKQ0w7KVNz+YSDI/j7O7KCMHbOkz94ZMQhbT9pOqjw==
+ dependencies:
+ arg "^5.0.1"
+ bytes "^3.0.0"
+ chalk "^4.1.2"
+ chokidar "^3.5.2"
+ color "^4.0.1"
+ cosmiconfig "^7.0.1"
+ detective "^5.2.0"
+ didyoumean "^1.2.2"
+ dlv "^1.1.3"
+ fast-glob "^3.2.7"
+ fs-extra "^10.0.0"
+ glob-parent "^6.0.1"
+ html-tags "^3.1.0"
+ is-color-stop "^1.1.0"
+ is-glob "^4.0.1"
+ lodash "^4.17.21"
+ lodash.topath "^4.5.2"
+ modern-normalize "^1.1.0"
+ node-emoji "^1.11.0"
+ normalize-path "^3.0.0"
+ object-hash "^2.2.0"
+ postcss-js "^3.0.3"
+ postcss-load-config "^3.1.0"
+ postcss-nested "5.0.6"
+ postcss-selector-parser "^6.0.6"
+ postcss-value-parser "^4.1.0"
+ pretty-hrtime "^1.0.3"
+ purgecss "^4.0.3"
+ quick-lru "^5.1.1"
+ reduce-css-calc "^2.1.8"
+ resolve "^1.20.0"
+ tmp "^0.2.1"
+
+tiny-invariant@^1.0.6:
+ version "1.2.0"
+ resolved "https://registry.npmmirror.com/tiny-invariant/-/tiny-invariant-1.2.0.tgz#a1141f86b672a9148c72e978a19a73b9b94a15a9"
+ integrity sha512-1Uhn/aqw5C6RI4KejVeTg6mIS7IqxnLJ8Mv2tV5rTc0qWobay7pDUz6Wi392Cnc8ak1H0F2cjoRzb2/AW4+Fvg==
+
+tmp@^0.2.1:
+ version "0.2.1"
+ resolved "https://registry.npmmirror.com/tmp/-/tmp-0.2.1.tgz#8457fc3037dcf4719c251367a1af6500ee1ccf14"
+ integrity sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==
+ dependencies:
+ rimraf "^3.0.0"
+
+to-fast-properties@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.npmmirror.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e"
+ integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==
+
+to-regex-range@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4"
+ integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==
+ dependencies:
+ is-number "^7.0.0"
+
+topojson-client@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.npmmirror.com/topojson-client/-/topojson-client-3.1.0.tgz#22e8b1ed08a2b922feeb4af6f53b6ef09a467b99"
+ integrity sha512-605uxS6bcYxGXw9qi62XyrV6Q3xwbndjachmNxu8HWTtVPxZfEJN9fd/SZS1Q54Sn2y0TMyMxFj/cJINqGHrKw==
+ dependencies:
+ commander "2"
+
+tr46@~0.0.3:
+ version "0.0.3"
+ resolved "https://registry.npmmirror.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
+ integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==
+
+tslib@^2.1.0, tslib@^2.4.0, tslib@~2.4.0:
+ version "2.4.0"
+ resolved "https://registry.npmmirror.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3"
+ integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==
+
+typescript@^4.3.2:
+ version "4.8.3"
+ resolved "https://registry.npmmirror.com/typescript/-/typescript-4.8.3.tgz#d59344522c4bc464a65a730ac695007fdb66dd88"
+ integrity sha512-goMHfm00nWPa8UvR/CPSvykqf6dVV8x/dp0c5mFTMTIu0u0FlGWRioyy7Nn0PGAdHxpJZnuO/ut+PpQ8UiHAig==
+
+ua-parser-js@^0.7.30:
+ version "0.7.31"
+ resolved "https://registry.npmmirror.com/ua-parser-js/-/ua-parser-js-0.7.31.tgz#649a656b191dffab4f21d5e053e27ca17cbff5c6"
+ integrity sha512-qLK/Xe9E2uzmYI3qLeOmI0tEOt+TBBQyUIAh4aAgU05FVYzeZrKUdkAZfBNVGRaHVgV0TDkdEngJSw/SyQchkQ==
+
+unbox-primitive@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.npmmirror.com/unbox-primitive/-/unbox-primitive-1.0.2.tgz#29032021057d5e6cdbd08c5129c226dff8ed6f9e"
+ integrity sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==
+ dependencies:
+ call-bind "^1.0.2"
+ has-bigints "^1.0.2"
+ has-symbols "^1.0.3"
+ which-boxed-primitive "^1.0.2"
+
+universalify@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.npmmirror.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717"
+ integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==
+
+update-browserslist-db@^1.0.9:
+ version "1.0.9"
+ resolved "https://registry.npmmirror.com/update-browserslist-db/-/update-browserslist-db-1.0.9.tgz#2924d3927367a38d5c555413a7ce138fc95fcb18"
+ integrity sha512-/xsqn21EGVdXI3EXSum1Yckj3ZVZugqyOZQ/CxYPBD/R+ko9NSUScf8tFF4dOKY+2pvSSJA/S+5B8s4Zr4kyvg==
+ dependencies:
+ escalade "^3.1.1"
+ picocolors "^1.0.0"
+
+use-composed-ref@^1.3.0:
+ version "1.3.0"
+ resolved "https://registry.npmmirror.com/use-composed-ref/-/use-composed-ref-1.3.0.tgz#3d8104db34b7b264030a9d916c5e94fbe280dbda"
+ integrity sha512-GLMG0Jc/jiKov/3Ulid1wbv3r54K9HlMW29IWcDFPEqFkSO2nS0MuefWgMJpeHQ9YJeXDL3ZUF+P3jdXlZX/cQ==
+
+use-isomorphic-layout-effect@^1.1.1:
+ version "1.1.2"
+ resolved "https://registry.npmmirror.com/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.2.tgz#497cefb13d863d687b08477d9e5a164ad8c1a6fb"
+ integrity sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==
+
+use-latest@^1.2.1:
+ version "1.2.1"
+ resolved "https://registry.npmmirror.com/use-latest/-/use-latest-1.2.1.tgz#d13dfb4b08c28e3e33991546a2cee53e14038cf2"
+ integrity sha512-xA+AVm/Wlg3e2P/JiItTziwS7FK92LWrDB0p+hgXloIMuVCeJJ8v6f0eeHyPZaJrM+usM1FkFfbNCrJGs8A/zw==
+ dependencies:
+ use-isomorphic-layout-effect "^1.1.1"
+
+use-memo-one@^1.1.1:
+ version "1.1.3"
+ resolved "https://registry.npmmirror.com/use-memo-one/-/use-memo-one-1.1.3.tgz#2fd2e43a2169eabc7496960ace8c79efef975e99"
+ integrity sha512-g66/K7ZQGYrI6dy8GLpVcMsBp4s17xNkYJVSMvTEevGy3nDxHOfE6z8BVE22+5G5x7t3+bhzrlTDB7ObrEE0cQ==
+
+util-deprecate@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.npmmirror.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
+ integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==
+
+util@^0.12.0:
+ version "0.12.4"
+ resolved "https://registry.npmmirror.com/util/-/util-0.12.4.tgz#66121a31420df8f01ca0c464be15dfa1d1850253"
+ integrity sha512-bxZ9qtSlGUWSOy9Qa9Xgk11kSslpuZwaxCg4sNIDj6FLucDab2JxnHwyNTCpHMtK1MjoQiWQ6DiUMZYbSrO+Sw==
+ dependencies:
+ inherits "^2.0.3"
+ is-arguments "^1.0.4"
+ is-generator-function "^1.0.7"
+ is-typed-array "^1.1.3"
+ safe-buffer "^5.1.2"
+ which-typed-array "^1.1.2"
+
+uuid@^8.3.2:
+ version "8.3.2"
+ resolved "https://registry.npmmirror.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
+ integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
+
+vega-canvas@^1.2.5, vega-canvas@^1.2.6:
+ version "1.2.6"
+ resolved "https://registry.npmmirror.com/vega-canvas/-/vega-canvas-1.2.6.tgz#55e032ce9a62acd17229f6bac66d99db3d6879cd"
+ integrity sha512-rgeYUpslYn/amIfnuv3Sw6n4BGns94OjjZNtUc9IDji6b+K8LGS/kW+Lvay8JX/oFqtulBp8RLcHN6QjqPLA9Q==
+
+vega-crossfilter@~4.1.0:
+ version "4.1.0"
+ resolved "https://registry.npmmirror.com/vega-crossfilter/-/vega-crossfilter-4.1.0.tgz#b6c5a728ce987f2514074adb22cf86b9bc63e0c8"
+ integrity sha512-aiOJcvVpiEDIu5uNc4Kf1hakkkPaVOO5fw5T4RSFAw6GEDbdqcB6eZ1xePcsLVic1hxYD5SGiUPdiiIs0SMh2g==
+ dependencies:
+ d3-array "^3.1.1"
+ vega-dataflow "^5.7.3"
+ vega-util "^1.15.2"
+
+vega-dataflow@^5.7.3, vega-dataflow@^5.7.4, vega-dataflow@~5.7.4:
+ version "5.7.4"
+ resolved "https://registry.npmmirror.com/vega-dataflow/-/vega-dataflow-5.7.4.tgz#7cafc0a41b9d0b11dd2e34a513f8b7ca345dfd74"
+ integrity sha512-JGHTpUo8XGETH3b1V892we6hdjzCWB977ybycIu8DPqRoyrZuj6t1fCVImazfMgQD1LAfJlQybWP+alwKDpKig==
+ dependencies:
+ vega-format "^1.0.4"
+ vega-loader "^4.3.2"
+ vega-util "^1.16.1"
+
+vega-embed@^6.20.8:
+ version "6.21.0"
+ resolved "https://registry.npmmirror.com/vega-embed/-/vega-embed-6.21.0.tgz#a6f7d4965c653e40620bfd0a51fb419321cff02c"
+ integrity sha512-Tzo9VAfgNRb6XpxSFd7uphSeK2w5OxDY2wDtmpsQ+rQlPSEEI9TE6Jsb2nHRLD5J4FrmXKLrTcORqidsNQSXEg==
+ dependencies:
+ fast-json-patch "^3.1.1"
+ json-stringify-pretty-compact "^3.0.0"
+ semver "^7.3.7"
+ tslib "^2.4.0"
+ vega-interpreter "^1.0.4"
+ vega-schema-url-parser "^2.2.0"
+ vega-themes "^2.10.0"
+ vega-tooltip "^0.28.0"
+
+vega-encode@~4.9.0:
+ version "4.9.0"
+ resolved "https://registry.npmmirror.com/vega-encode/-/vega-encode-4.9.0.tgz#3dd1031056bb8029f262afc4b4d58372c8f073a6"
+ integrity sha512-etv2BHuCn9bzEc0cxyA2TnbtcAFQGVFmsaqmB4sgBCaqTSEfXMoX68LK3yxBrsdm5LU+y3otJVoewi3qWYCx2g==
+ dependencies:
+ d3-array "^3.1.1"
+ d3-interpolate "^3.0.1"
+ vega-dataflow "^5.7.3"
+ vega-scale "^7.0.3"
+ vega-util "^1.15.2"
+
+vega-event-selector@^3.0.0, vega-event-selector@~3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmmirror.com/vega-event-selector/-/vega-event-selector-3.0.0.tgz#7b855ac0c3ddb59bc5b5caa0d96dbbc9fbd33a4c"
+ integrity sha512-Gls93/+7tEJGE3kUuUnxrBIxtvaNeF01VIFB2Q2Of2hBIBvtHX74jcAdDtkh5UhhoYGD8Q1J30P5cqEBEwtPoQ==
+
+vega-expression@^5.0.0, vega-expression@~5.0.0:
+ version "5.0.0"
+ resolved "https://registry.npmmirror.com/vega-expression/-/vega-expression-5.0.0.tgz#938f26689693a1e0d26716030cdaed43ca7abdfb"
+ integrity sha512-y5+c2frq0tGwJ7vYXzZcfVcIRF/QGfhf2e+bV1Z0iQs+M2lI1II1GPDdmOcMKimpoCVp/D61KUJDIGE1DSmk2w==
+ dependencies:
+ "@types/estree" "^0.0.50"
+ vega-util "^1.16.0"
+
+vega-force@~4.1.0:
+ version "4.1.0"
+ resolved "https://registry.npmmirror.com/vega-force/-/vega-force-4.1.0.tgz#cc8dea972baa52adc60840ff744ebb9e57d8f1f5"
+ integrity sha512-Sssf8iH48vYlz+E7/RpU+SUaJbuLoIL87U4tG2Av4gf/hRiImU49x2TI3EuhFWg1zpaCFxlz0CAaX++Oh/gjdw==
+ dependencies:
+ d3-force "^3.0.0"
+ vega-dataflow "^5.7.3"
+ vega-util "^1.15.2"
+
+vega-format@^1.0.4, vega-format@^1.1.0, vega-format@~1.1.0:
+ version "1.1.0"
+ resolved "https://registry.npmmirror.com/vega-format/-/vega-format-1.1.0.tgz#b9d81cf1bcf222ae5cbd94357ae70245d2c7b18d"
+ integrity sha512-6mgpeWw8yGdG0Zdi8aVkx5oUrpJGOpNxqazC2858RSDPvChM/jDFlgRMTYw52qk7cxU0L08ARp4BwmXaI75j0w==
+ dependencies:
+ d3-array "^3.1.1"
+ d3-format "^3.1.0"
+ d3-time-format "^4.1.0"
+ vega-time "^2.0.3"
+ vega-util "^1.15.2"
+
+vega-functions@^5.12.1, vega-functions@^5.13.0, vega-functions@~5.13.0:
+ version "5.13.0"
+ resolved "https://registry.npmmirror.com/vega-functions/-/vega-functions-5.13.0.tgz#c9ab8c6eedbf39f75b424cca6776b1d0b8c74b32"
+ integrity sha512-Mf53zNyx+c9fFqagEI0T8zc9nMlx0zozOngr8oOpG1tZDKOgwOnUgN99zQKbLHjyv+UzWrq3LYTnSLyVe0ZmhQ==
+ dependencies:
+ d3-array "^3.1.1"
+ d3-color "^3.0.1"
+ d3-geo "^3.0.1"
+ vega-dataflow "^5.7.3"
+ vega-expression "^5.0.0"
+ vega-scale "^7.2.0"
+ vega-scenegraph "^4.9.3"
+ vega-selections "^5.3.1"
+ vega-statistics "^1.7.9"
+ vega-time "^2.1.0"
+ vega-util "^1.16.0"
+
+vega-geo@~4.4.0:
+ version "4.4.0"
+ resolved "https://registry.npmmirror.com/vega-geo/-/vega-geo-4.4.0.tgz#ce792df57f8ca4c54a7a1a29467cfa24bc53f573"
+ integrity sha512-3YX41y+J5pu0PMjvBCASg0/lgvu9+QXWJZ+vl6FFKa8AlsIopQ67ZL7ObwqjZcoZMolJ4q0rc+ZO8aj1pXCYcw==
+ dependencies:
+ d3-array "^3.1.1"
+ d3-color "^3.0.1"
+ d3-geo "^3.0.1"
+ vega-canvas "^1.2.5"
+ vega-dataflow "^5.7.3"
+ vega-projection "^1.4.5"
+ vega-statistics "^1.7.9"
+ vega-util "^1.15.2"
+
+vega-hierarchy@~4.1.0:
+ version "4.1.0"
+ resolved "https://registry.npmmirror.com/vega-hierarchy/-/vega-hierarchy-4.1.0.tgz#605edbe3a6232853f9e8b57e3b905471d33b1a48"
+ integrity sha512-DWBK39IEt4FiQru12twzKSFUvFFZ7KtlH9+lAaqrJnKuIZFCyQ1XOUfKScfbKIlk4KS+DuCTNLI/pxC/f7Sk9Q==
+ dependencies:
+ d3-hierarchy "^3.1.0"
+ vega-dataflow "^5.7.3"
+ vega-util "^1.15.2"
+
+vega-interpreter@^1.0.4:
+ version "1.0.4"
+ resolved "https://registry.npmmirror.com/vega-interpreter/-/vega-interpreter-1.0.4.tgz#291ebf85bc2d1c3550a3da22ff75b3ba0d326a39"
+ integrity sha512-6tpYIa/pJz0cZo5fSxDSkZkAA51pID2LjOtQkOQvbzn+sJiCaWKPFhur8MBqbcmYZ9bnap1OYNwlrvpd2qBLvg==
+
+vega-label@~1.2.0:
+ version "1.2.0"
+ resolved "https://registry.npmmirror.com/vega-label/-/vega-label-1.2.0.tgz#bcb2659aec54f890f9debab3e41ab87a58292dce"
+ integrity sha512-1prOqkCAfXaUvMqavbGI0nbYGqV8UQR9qvuVwrPJ6Yxm3GIUIOA/JRqNY8eZR8USwMP/kzsqlfVEixj9+Y75VQ==
+ dependencies:
+ vega-canvas "^1.2.6"
+ vega-dataflow "^5.7.3"
+ vega-scenegraph "^4.9.2"
+ vega-util "^1.15.2"
+
+vega-lite@^5.2.0:
+ version "5.5.0"
+ resolved "https://registry.npmmirror.com/vega-lite/-/vega-lite-5.5.0.tgz#07345713d538cd63278748ec119c261722be66ff"
+ integrity sha512-MQBJt/iaUegvhRTS/hZVWfMOSF5ai4awlR2qtwTgHd84bErf9v7GtaZ9ArhJqXCb+FizvZ2jatmoYCzovgAhkg==
+ dependencies:
+ "@types/clone" "~2.1.1"
+ array-flat-polyfill "^1.0.1"
+ clone "~2.1.2"
+ fast-deep-equal "~3.1.3"
+ fast-json-stable-stringify "~2.1.0"
+ json-stringify-pretty-compact "~3.0.0"
+ tslib "~2.4.0"
+ vega-event-selector "~3.0.0"
+ vega-expression "~5.0.0"
+ vega-util "~1.17.0"
+ yargs "~17.5.1"
+
+vega-loader@^4.3.2, vega-loader@^4.4.0, vega-loader@~4.5.0:
+ version "4.5.0"
+ resolved "https://registry.npmmirror.com/vega-loader/-/vega-loader-4.5.0.tgz#b15acc4c8f84191f500e94d35ddfb9721ac943ad"
+ integrity sha512-EkAyzbx0pCYxH3v3wghGVCaKINWxHfgbQ2pYDiYv0yo8e04S8Mv/IlRGTt6BAe7cLhrk1WZ4zh20QOppnGG05w==
+ dependencies:
+ d3-dsv "^3.0.1"
+ node-fetch "^2.6.7"
+ topojson-client "^3.1.0"
+ vega-format "^1.1.0"
+ vega-util "^1.16.0"
+
+vega-parser@~6.1.4:
+ version "6.1.4"
+ resolved "https://registry.npmmirror.com/vega-parser/-/vega-parser-6.1.4.tgz#4868e41af2c9645b6d7daeeb205cfad06b9d465c"
+ integrity sha512-tORdpWXiH/kkXcpNdbSVEvtaxBuuDtgYp9rBunVW9oLsjFvFXbSWlM1wvJ9ZFSaTfx6CqyTyGMiJemmr1QnTjQ==
+ dependencies:
+ vega-dataflow "^5.7.3"
+ vega-event-selector "^3.0.0"
+ vega-functions "^5.12.1"
+ vega-scale "^7.1.1"
+ vega-util "^1.16.0"
+
+vega-projection@^1.4.5, vega-projection@~1.5.0:
+ version "1.5.0"
+ resolved "https://registry.npmmirror.com/vega-projection/-/vega-projection-1.5.0.tgz#51c5f0455170cd35b3c5f3e653e99c3616520640"
+ integrity sha512-aob7qojh555x3hQWZ/tr8cIJNSWQbm6EoWTJaheZgFOY2x3cDa4Qrg3RJbGw6KwVj/IQk2p40paRzixKZ2kr+A==
+ dependencies:
+ d3-geo "^3.0.1"
+ d3-geo-projection "^4.0.0"
+
+vega-regression@~1.1.0:
+ version "1.1.0"
+ resolved "https://registry.npmmirror.com/vega-regression/-/vega-regression-1.1.0.tgz#b4394db403ada93de52bb4536d04be336c983a8c"
+ integrity sha512-09K0RemY6cdaXBAyakDUNFfEkRcLkGjkDJyWQPAUqGK59hV2J+G3i4uxkZp18Vu0t8oqU7CgzwWim1s5uEpOcA==
+ dependencies:
+ d3-array "^3.1.1"
+ vega-dataflow "^5.7.3"
+ vega-statistics "^1.7.9"
+ vega-util "^1.15.2"
+
+vega-runtime@^6.1.3, vega-runtime@~6.1.3:
+ version "6.1.3"
+ resolved "https://registry.npmmirror.com/vega-runtime/-/vega-runtime-6.1.3.tgz#01e18246f7a80cee034a96017ac30113b92c4034"
+ integrity sha512-gE+sO2IfxMUpV0RkFeQVnHdmPy3K7LjHakISZgUGsDI/ZFs9y+HhBf8KTGSL5pcZPtQsZh3GBQ0UonqL1mp9PA==
+ dependencies:
+ vega-dataflow "^5.7.3"
+ vega-util "^1.15.2"
+
+vega-scale@^7.0.3, vega-scale@^7.1.1, vega-scale@^7.2.0, vega-scale@~7.2.0:
+ version "7.2.0"
+ resolved "https://registry.npmmirror.com/vega-scale/-/vega-scale-7.2.0.tgz#9e298cc02ad340498cb56847436b19439911f0fc"
+ integrity sha512-QYltO/otrZHLrCGGf06Y99XtPtqWXITr6rw7rO9oL+l3d9o5RFl9sjHrVxiM7v+vGoZVWbBd5IPbFhPsXZ6+TA==
+ dependencies:
+ d3-array "^3.1.1"
+ d3-interpolate "^3.0.1"
+ d3-scale "^4.0.2"
+ vega-time "^2.1.0"
+ vega-util "^1.17.0"
+
+vega-scenegraph@^4.10.0, vega-scenegraph@^4.9.2, vega-scenegraph@^4.9.3, vega-scenegraph@~4.10.1:
+ version "4.10.1"
+ resolved "https://registry.npmmirror.com/vega-scenegraph/-/vega-scenegraph-4.10.1.tgz#944da67b8a28758fab2e1306259fb7ff6be89f6b"
+ integrity sha512-takIpkmNxYHhJYALOYzhTin3EDzbys6U4g+l1yJZVlXG9YTdiCMuEVAdtaQOCqF9/7qytD6pCrMxJY2HaoN0qQ==
+ dependencies:
+ d3-path "^3.0.1"
+ d3-shape "^3.1.0"
+ vega-canvas "^1.2.5"
+ vega-loader "^4.4.0"
+ vega-scale "^7.2.0"
+ vega-util "^1.15.2"
+
+vega-schema-url-parser@^2.2.0:
+ version "2.2.0"
+ resolved "https://registry.npmmirror.com/vega-schema-url-parser/-/vega-schema-url-parser-2.2.0.tgz#a0d1e02915adfbfcb1fd517c8c2ebe2419985c1e"
+ integrity sha512-yAtdBnfYOhECv9YC70H2gEiqfIbVkq09aaE4y/9V/ovEFmH9gPKaEgzIZqgT7PSPQjKhsNkb6jk6XvSoboxOBw==
+
+vega-selections@^5.3.1:
+ version "5.4.0"
+ resolved "https://registry.npmmirror.com/vega-selections/-/vega-selections-5.4.0.tgz#c2783897421fa39b674c015fa8f15a0023b8054e"
+ integrity sha512-Un3JdLDPjIpF9Dh4sw6m1c/QAcfam6m1YXHJ9vJxE/GdJ+sOrPxc7bcEU8VhOmTUN7IQUn4/1ry4JqqOVMbEhw==
+ dependencies:
+ d3-array "3.1.1"
+ vega-expression "^5.0.0"
+ vega-util "^1.16.0"
+
+vega-statistics@^1.7.9, vega-statistics@^1.8.0, vega-statistics@~1.8.0:
+ version "1.8.0"
+ resolved "https://registry.npmmirror.com/vega-statistics/-/vega-statistics-1.8.0.tgz#ad66f7461473d58bc96671588981a059ffd60b59"
+ integrity sha512-dl+LCRS6qS4jWDme/NEdPVt5r649uB4IK6Kyr2/czmGA5JqjuFmtQ9lHQOnRu8945XLkqLf+JIQQo7vnw+nslA==
+ dependencies:
+ d3-array "^3.1.1"
+
+vega-themes@^2.10.0:
+ version "2.12.0"
+ resolved "https://registry.npmmirror.com/vega-themes/-/vega-themes-2.12.0.tgz#1005f67d64795ce239becc1005a605ee07a52e71"
+ integrity sha512-gHNYCzDgexSQDmGzQsxH57OYgFVbAOmvhIYN3MPOvVucyI+zhbUawBVIVNzG9ftucRp0MaaMVXi6ctC5HLnBsg==
+
+vega-time@^2.0.3, vega-time@^2.1.0, vega-time@~2.1.0:
+ version "2.1.0"
+ resolved "https://registry.npmmirror.com/vega-time/-/vega-time-2.1.0.tgz#acfbab88d7798b87ff63913b0dce2ca5eb0d46ca"
+ integrity sha512-Q9/l3S6Br1RPX5HZvyLD/cQ4K6K8DtpR09/1y7D66gxNorg2+HGzYZINH9nUvN3mxoXcBWg4cCUh3+JvmkDaEg==
+ dependencies:
+ d3-array "^3.1.1"
+ d3-time "^3.0.0"
+ vega-util "^1.15.2"
+
+vega-tooltip@^0.28.0:
+ version "0.28.0"
+ resolved "https://registry.npmmirror.com/vega-tooltip/-/vega-tooltip-0.28.0.tgz#8bae2601ffae5e67622de37108f53f284e9a978b"
+ integrity sha512-DbK0V5zzk+p9cphZZXV91ZGeKq0zr6JIS0VndUoGTisldzw4tRgmpGQcTfMjew53o7/voeTM2ELTnJAJRzX4tg==
+ dependencies:
+ vega-util "^1.17.0"
+
+vega-transforms@~4.10.0:
+ version "4.10.0"
+ resolved "https://registry.npmmirror.com/vega-transforms/-/vega-transforms-4.10.0.tgz#a1017ede13cf4e25499f588610a3be4da615d82d"
+ integrity sha512-Yk6ByzVq5F2niFfPlSsrU5wi+NZhsF7IBpJCcTfms4U7eoyNepUXagdFEJ3VWBD/Lit6GorLXFgO17NYcyS5gg==
+ dependencies:
+ d3-array "^3.1.1"
+ vega-dataflow "^5.7.4"
+ vega-statistics "^1.8.0"
+ vega-time "^2.1.0"
+ vega-util "^1.16.1"
+
+vega-typings@~0.22.0:
+ version "0.22.3"
+ resolved "https://registry.npmmirror.com/vega-typings/-/vega-typings-0.22.3.tgz#f6c73b5ffcdb152539cfcc5ad240a413af579ba7"
+ integrity sha512-PREcya3nXT9Tk7xU0IhEpOLVTlqizNtKXV55NhI6ApBjJtqVYbJL7IBh2ckKxGBy3YeUQ37BQZl56UqqiYVWBw==
+ dependencies:
+ vega-event-selector "^3.0.0"
+ vega-expression "^5.0.0"
+ vega-util "^1.15.2"
+
+vega-util@^1.15.2, vega-util@^1.16.0, vega-util@^1.16.1, vega-util@^1.17.0, vega-util@~1.17.0:
+ version "1.17.0"
+ resolved "https://registry.npmmirror.com/vega-util/-/vega-util-1.17.0.tgz#b72ae0baa97f943bf591f8f5bb27ceadf06834ac"
+ integrity sha512-HTaydZd9De3yf+8jH66zL4dXJ1d1p5OIFyoBzFiOli4IJbwkL1jrefCKz6AHDm1kYBzDJ0X4bN+CzZSCTvNk1w==
+
+vega-view-transforms@~4.5.8:
+ version "4.5.8"
+ resolved "https://registry.npmmirror.com/vega-view-transforms/-/vega-view-transforms-4.5.8.tgz#c8dc42c3c7d4aa725d40b8775180c9f23bc98f4e"
+ integrity sha512-966m7zbzvItBL8rwmF2nKG14rBp7q+3sLCKWeMSUrxoG+M15Smg5gWEGgwTG3A/RwzrZ7rDX5M1sRaAngRH25g==
+ dependencies:
+ vega-dataflow "^5.7.3"
+ vega-scenegraph "^4.9.2"
+ vega-util "^1.15.2"
+
+vega-view@~5.11.0:
+ version "5.11.0"
+ resolved "https://registry.npmmirror.com/vega-view/-/vega-view-5.11.0.tgz#8a7b29a36776e43cc6599e087ed7f48a918b805d"
+ integrity sha512-MI9NTRFmtFX6ADk6KOHhi8bhHjC9pPm42Bj2+74c6l1d3NQZf9Jv7lkiGqKohdkQDNH9LPwz/6slhKwPU9JdkQ==
+ dependencies:
+ d3-array "^3.1.1"
+ d3-timer "^3.0.1"
+ vega-dataflow "^5.7.3"
+ vega-format "^1.1.0"
+ vega-functions "^5.13.0"
+ vega-runtime "^6.1.3"
+ vega-scenegraph "^4.10.0"
+ vega-util "^1.16.1"
+
+vega-voronoi@~4.2.0:
+ version "4.2.0"
+ resolved "https://registry.npmmirror.com/vega-voronoi/-/vega-voronoi-4.2.0.tgz#14c74c84f52d9a16be2facd1bede879d32d988f2"
+ integrity sha512-1iuNAVZgUHRlBpdq4gSga3KlQmrgFfwy+KpyDgPLQ8HbLkhcVeT7RDh2L6naluqD7Op0xVLms3clR920WsYryQ==
+ dependencies:
+ d3-delaunay "^6.0.2"
+ vega-dataflow "^5.7.3"
+ vega-util "^1.15.2"
+
+vega-wordcloud@~4.1.3:
+ version "4.1.3"
+ resolved "https://registry.npmmirror.com/vega-wordcloud/-/vega-wordcloud-4.1.3.tgz#ce90900333f4e0d3ee706ba4f36bb0905f8b4a9f"
+ integrity sha512-is4zYn9FMAyp9T4SAcz2P/U/wqc0Lx3P5YtpWKCbOH02a05vHjUQrQ2TTPOuvmMfAEDCSKvbMSQIJMOE018lJA==
+ dependencies:
+ vega-canvas "^1.2.5"
+ vega-dataflow "^5.7.3"
+ vega-scale "^7.1.1"
+ vega-statistics "^1.7.9"
+ vega-util "^1.15.2"
+
+vega@^5.22.1:
+ version "5.22.1"
+ resolved "https://registry.npmmirror.com/vega/-/vega-5.22.1.tgz#e028f3645de18e0070317bc04410282975549e1e"
+ integrity sha512-KJBI7OWSzpfCPbmWl3GQCqBqbf2TIdpWS0mzO6MmWbvdMhWHf74P9IVnx1B1mhg0ZTqWFualx9ZYhWzMMwudaQ==
+ dependencies:
+ vega-crossfilter "~4.1.0"
+ vega-dataflow "~5.7.4"
+ vega-encode "~4.9.0"
+ vega-event-selector "~3.0.0"
+ vega-expression "~5.0.0"
+ vega-force "~4.1.0"
+ vega-format "~1.1.0"
+ vega-functions "~5.13.0"
+ vega-geo "~4.4.0"
+ vega-hierarchy "~4.1.0"
+ vega-label "~1.2.0"
+ vega-loader "~4.5.0"
+ vega-parser "~6.1.4"
+ vega-projection "~1.5.0"
+ vega-regression "~1.1.0"
+ vega-runtime "~6.1.3"
+ vega-scale "~7.2.0"
+ vega-scenegraph "~4.10.1"
+ vega-statistics "~1.8.0"
+ vega-time "~2.1.0"
+ vega-transforms "~4.10.0"
+ vega-typings "~0.22.0"
+ vega-util "~1.17.0"
+ vega-view "~5.11.0"
+ vega-view-transforms "~4.5.8"
+ vega-voronoi "~4.2.0"
+ vega-wordcloud "~4.1.3"
+
+ version "0.7.15"
+ resolved "https://registry.npmmirror.com/visual-insights/-/visual-insights-0.7.15.tgz#04806c8c78739f7bb8a7ee60bb56ee8ddc7668a7"
+ integrity sha512-2ANCxqlVdTb6bwM4S/vVcmwsXDNl+cQdZazy0PDX6Li2JI+99wqO22xYll08CuSjMVUFZXoFPJSsa8xsCTl5zQ==
+ dependencies:
+ assert "^2.0.0"
+ axios "^0.22.0"
+ cube-core "^2.13.0"
+ simple-statistics "^7.1.0"
+
+vite@^3.1.0:
+ version "3.1.3"
+ resolved "https://registry.npmmirror.com/vite/-/vite-3.1.3.tgz#b2a0821c11aae124bb7618f8036913c689afcc59"
+ integrity sha512-/3XWiktaopByM5bd8dqvHxRt5EEgRikevnnrpND0gRfNkrMrPaGGexhtLCzv15RcCMtV2CLw+BPas8YFeSG0KA==
+ dependencies:
+ esbuild "^0.15.6"
+ postcss "^8.4.16"
+ resolve "^1.22.1"
+ rollup "~2.78.0"
+ optionalDependencies:
+ fsevents "~2.3.2"
+
+ version "3.1.0"
+ resolved "https://registry.npmmirror.com/void-elements/-/void-elements-3.1.0.tgz#614f7fbf8d801f0bb5f0661f5b2f5785750e4f09"
+ integrity sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==
+
+webidl-conversions@^3.0.0:
+ version "3.0.1"
+ resolved "https://registry.npmmirror.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
+ integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==
+
+whatwg-url@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.npmmirror.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d"
+ integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==
+ dependencies:
+ tr46 "~0.0.3"
+ webidl-conversions "^3.0.0"
+
+which-boxed-primitive@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.npmmirror.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6"
+ integrity sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==
+ dependencies:
+ is-bigint "^1.0.1"
+ is-boolean-object "^1.1.0"
+ is-number-object "^1.0.4"
+ is-string "^1.0.5"
+ is-symbol "^1.0.3"
+
+which-typed-array@^1.1.2:
+ version "1.1.8"
+ resolved "https://registry.npmmirror.com/which-typed-array/-/which-typed-array-1.1.8.tgz#0cfd53401a6f334d90ed1125754a42ed663eb01f"
+ integrity sha512-Jn4e5PItbcAHyLoRDwvPj1ypu27DJbtdYXUa5zsinrUx77Uvfb0cXwwnGMTn7cjUfhhqgVQnVJCwF+7cgU7tpw==
+ dependencies:
+ available-typed-arrays "^1.0.5"
+ call-bind "^1.0.2"
+ es-abstract "^1.20.0"
+ for-each "^0.3.3"
+ has-tostringtag "^1.0.0"
+ is-typed-array "^1.1.9"
+
+wrap-ansi@^7.0.0:
+ version "7.0.0"
+ resolved "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
+ integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
+ dependencies:
+ ansi-styles "^4.0.0"
+ string-width "^4.1.0"
+ strip-ansi "^6.0.0"
+
+wrappy@1:
+ version "1.0.2"
+ resolved "https://registry.npmmirror.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
+ integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==
+
+xtend@^4.0.2:
+ version "4.0.2"
+ resolved "https://registry.npmmirror.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54"
+ integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==
+
+y18n@^5.0.5:
+ version "5.0.8"
+ resolved "https://registry.npmmirror.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55"
+ integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==
+
+yallist@*, yallist@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.npmmirror.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
+ integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
+
+yaml@^1.10.0, yaml@^1.10.2:
+ version "1.10.2"
+ resolved "https://registry.npmmirror.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b"
+ integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==
+
+yargs-parser@^21.0.0:
+ version "21.1.1"
+ resolved "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35"
+ integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==
+
+yargs@~17.5.1:
+ version "17.5.1"
+ resolved "https://registry.npmmirror.com/yargs/-/yargs-17.5.1.tgz#e109900cab6fcb7fd44b1d8249166feb0b36e58e"
+ integrity sha512-t6YAJcxDkNX7NFYiVtKvWUz8l+PaKTLiL63mJYWR2GnHq2gjEWISzsLp9wg3aY36dY1j+gfIEL3pIF+XlJJfbA==
+ dependencies:
+ cliui "^7.0.2"
+ escalade "^3.1.1"
+ get-caller-file "^2.0.5"
+ require-directory "^2.1.1"
+ string-width "^4.2.3"
+ y18n "^5.0.5"
+ yargs-parser "^21.0.0"