diff --git a/CHANGELOG.md b/CHANGELOG.md index e6a1ff609..cccbf2da8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,42 +1,73 @@ # Change Log +## [2.0.0](https://github.com/danielcaldas/react-d3-graph/tree/2.0.0) + +[Full Changelog](https://github.com/danielcaldas/react-d3-graph/compare/2.0.0-rc2...2.0.0) + +**Fixed bugs:** + +- Link Colors not used when adding to graph [\#169](https://github.com/danielcaldas/react-d3-graph/issues/169) +- Node id 0 not set properly [\#160](https://github.com/danielcaldas/react-d3-graph/issues/160) +- Nodes added or deleted from a graph with nodes in fixed positions will cause issues [\#151](https://github.com/danielcaldas/react-d3-graph/issues/151) +- Collapsible config option can cause orphaned nodes to not be displayed [\#129](https://github.com/danielcaldas/react-d3-graph/issues/129) + +**Closed issues:** + +- Reverse the direction of arrows for "directed" property [\#153](https://github.com/danielcaldas/react-d3-graph/issues/153) +- viewGenerator key being dropped in config merge [\#142](https://github.com/danielcaldas/react-d3-graph/issues/142) +- Links labeling [\#47](https://github.com/danielcaldas/react-d3-graph/issues/47) + +**Merged pull requests:** + +- Refactor/run lint on sandbox [\#179](https://github.com/danielcaldas/react-d3-graph/pull/179) ([danielcaldas](https://github.com/danielcaldas)) +- Feature/labels on links [\#178](https://github.com/danielcaldas/react-d3-graph/pull/178) ([danielcaldas](https://github.com/danielcaldas)) +- fix: Add link with custom color in existing graph [\#170](https://github.com/danielcaldas/react-d3-graph/pull/170) ([LonelyPrincess](https://github.com/LonelyPrincess)) +- More granular resolution of node and link parameters [\#166](https://github.com/danielcaldas/react-d3-graph/pull/166) ([sauln](https://github.com/sauln)) +- Fix/0 number id edge case [\#161](https://github.com/danielcaldas/react-d3-graph/pull/161) ([danielcaldas](https://github.com/danielcaldas)) +- Update webpack-dev-server and react-dom [\#159](https://github.com/danielcaldas/react-d3-graph/pull/159) ([danielcaldas](https://github.com/danielcaldas)) +- Refactor/split graph helper logic [\#158](https://github.com/danielcaldas/react-d3-graph/pull/158) ([danielcaldas](https://github.com/danielcaldas)) +- Refactor/tooling upgrade [\#157](https://github.com/danielcaldas/react-d3-graph/pull/157) ([danielcaldas](https://github.com/danielcaldas)) +- Feature/linting prettier improvements [\#156](https://github.com/danielcaldas/react-d3-graph/pull/156) ([danielcaldas](https://github.com/danielcaldas)) +- Simplified test folder file structure merging "component" and "snapshot" [\#155](https://github.com/danielcaldas/react-d3-graph/pull/155) ([danielcaldas](https://github.com/danielcaldas)) +- Fix/collapsible orphan nodes and last node [\#154](https://github.com/danielcaldas/react-d3-graph/pull/154) ([danielcaldas](https://github.com/danielcaldas)) + ## [2.0.0-rc2](https://github.com/danielcaldas/react-d3-graph/tree/2.0.0-rc2) [Full Changelog](https://github.com/danielcaldas/react-d3-graph/compare/2.0.0-rc1...2.0.0-rc2) **Implemented enhancements:** -* Allow nodes to override strokeColor [\#122](https://github.com/danielcaldas/react-d3-graph/issues/122) +- Allow nodes to override strokeColor [\#122](https://github.com/danielcaldas/react-d3-graph/issues/122) **Fixed bugs:** -* Custom onNodeClick handler not triggering on collapsible nodes [\#136](https://github.com/danielcaldas/react-d3-graph/issues/136) -* 🐛 Global `viewGenerator` not been applied to the nodes [\#130](https://github.com/danielcaldas/react-d3-graph/issues/130) +- Custom onNodeClick handler not triggering on collapsible nodes [\#136](https://github.com/danielcaldas/react-d3-graph/issues/136) +- 🐛 Global `viewGenerator` not been applied to the nodes [\#130](https://github.com/danielcaldas/react-d3-graph/issues/130) **Closed issues:** -* graph constantly re-rendering even when app is idle? [\#145](https://github.com/danielcaldas/react-d3-graph/issues/145) -* Allow users to pass in a function in node.labelProperty [\#133](https://github.com/danielcaldas/react-d3-graph/issues/133) -* Drop yarn support for development \(stick to npm only\) [\#127](https://github.com/danielcaldas/react-d3-graph/issues/127) -* Link mouse cursor property [\#119](https://github.com/danielcaldas/react-d3-graph/issues/119) -* Center graph on a specific node [\#102](https://github.com/danielcaldas/react-d3-graph/issues/102) -* Links with directional arrow [\#88](https://github.com/danielcaldas/react-d3-graph/issues/88) +- graph constantly re-rendering even when app is idle? [\#145](https://github.com/danielcaldas/react-d3-graph/issues/145) +- Allow users to pass in a function in node.labelProperty [\#133](https://github.com/danielcaldas/react-d3-graph/issues/133) +- Drop yarn support for development \(stick to npm only\) [\#127](https://github.com/danielcaldas/react-d3-graph/issues/127) +- Link mouse cursor property [\#119](https://github.com/danielcaldas/react-d3-graph/issues/119) +- Center graph on a specific node [\#102](https://github.com/danielcaldas/react-d3-graph/issues/102) +- Links with directional arrow [\#88](https://github.com/danielcaldas/react-d3-graph/issues/88) **Merged pull requests:** -* Fix/right clicks [\#140](https://github.com/danielcaldas/react-d3-graph/pull/140) ([danielcaldas](https://github.com/danielcaldas)) -* Refactor/clean link component [\#139](https://github.com/danielcaldas/react-d3-graph/pull/139) ([danielcaldas](https://github.com/danielcaldas)) -* fix: Trigger custom click handler in collapsible nodes [\#137](https://github.com/danielcaldas/react-d3-graph/pull/137) ([LonelyPrincess](https://github.com/LonelyPrincess)) -* Add Support to pass a function to node.labelProperty [\#135](https://github.com/danielcaldas/react-d3-graph/pull/135) ([dgautsch](https://github.com/dgautsch)) -* Support Development on Windows Machines [\#134](https://github.com/danielcaldas/react-d3-graph/pull/134) ([dgautsch](https://github.com/dgautsch)) -* Feature/directional graph [\#132](https://github.com/danielcaldas/react-d3-graph/pull/132) ([danielcaldas](https://github.com/danielcaldas)) -* Global `viewGenerator` included in default config object [\#131](https://github.com/danielcaldas/react-d3-graph/pull/131) ([LonelyPrincess](https://github.com/LonelyPrincess)) -* Remove Yarn [\#128](https://github.com/danielcaldas/react-d3-graph/pull/128) ([sasalx](https://github.com/sasalx)) -* Feature/right clicking [\#124](https://github.com/danielcaldas/react-d3-graph/pull/124) ([ghardin137](https://github.com/ghardin137)) -* Allow nodes to override strokeColor [\#123](https://github.com/danielcaldas/react-d3-graph/pull/123) ([Andras-Simon](https://github.com/Andras-Simon)) -* fix: \#119 Add mouseCursor prop to \ [\#120](https://github.com/danielcaldas/react-d3-graph/pull/120) ([kaungmyatlwin](https://github.com/kaungmyatlwin)) -* Add onClick handler to the canvas, for use in eg. unselecting nodes [\#113](https://github.com/danielcaldas/react-d3-graph/pull/113) ([smilykoch](https://github.com/smilykoch)) -* Focus view on a node [\#107](https://github.com/danielcaldas/react-d3-graph/pull/107) ([LonelyPrincess](https://github.com/LonelyPrincess)) +- Fix/right clicks [\#140](https://github.com/danielcaldas/react-d3-graph/pull/140) ([danielcaldas](https://github.com/danielcaldas)) +- Refactor/clean link component [\#139](https://github.com/danielcaldas/react-d3-graph/pull/139) ([danielcaldas](https://github.com/danielcaldas)) +- fix: Trigger custom click handler in collapsible nodes [\#137](https://github.com/danielcaldas/react-d3-graph/pull/137) ([LonelyPrincess](https://github.com/LonelyPrincess)) +- Add Support to pass a function to node.labelProperty [\#135](https://github.com/danielcaldas/react-d3-graph/pull/135) ([dgautsch](https://github.com/dgautsch)) +- Support Development on Windows Machines [\#134](https://github.com/danielcaldas/react-d3-graph/pull/134) ([dgautsch](https://github.com/dgautsch)) +- Feature/directional graph [\#132](https://github.com/danielcaldas/react-d3-graph/pull/132) ([danielcaldas](https://github.com/danielcaldas)) +- Global `viewGenerator` included in default config object [\#131](https://github.com/danielcaldas/react-d3-graph/pull/131) ([LonelyPrincess](https://github.com/LonelyPrincess)) +- Remove Yarn [\#128](https://github.com/danielcaldas/react-d3-graph/pull/128) ([sasalx](https://github.com/sasalx)) +- Feature/right clicking [\#124](https://github.com/danielcaldas/react-d3-graph/pull/124) ([ghardin137](https://github.com/ghardin137)) +- Allow nodes to override strokeColor [\#123](https://github.com/danielcaldas/react-d3-graph/pull/123) ([Andras-Simon](https://github.com/Andras-Simon)) +- fix: \#119 Add mouseCursor prop to \ [\#120](https://github.com/danielcaldas/react-d3-graph/pull/120) ([kaungmyatlwin](https://github.com/kaungmyatlwin)) +- Add onClick handler to the canvas, for use in eg. unselecting nodes [\#113](https://github.com/danielcaldas/react-d3-graph/pull/113) ([smilykoch](https://github.com/smilykoch)) +- Focus view on a node [\#107](https://github.com/danielcaldas/react-d3-graph/pull/107) ([LonelyPrincess](https://github.com/LonelyPrincess)) ## [2.0.0-rc1](https://github.com/danielcaldas/react-d3-graph/tree/2.0.0-rc1) @@ -44,16 +75,16 @@ **Closed issues:** -* i want to customise node. is it possible ? [\#90](https://github.com/danielcaldas/react-d3-graph/issues/90) +- i want to customise node. is it possible ? [\#90](https://github.com/danielcaldas/react-d3-graph/issues/90) **Merged pull requests:** -* Remove snapshoot structures for nodes and links [\#118](https://github.com/danielcaldas/react-d3-graph/pull/118) ([danielcaldas](https://github.com/danielcaldas)) -* Fix/Check for d3 config is updated [\#117](https://github.com/danielcaldas/react-d3-graph/pull/117) ([danielcaldas](https://github.com/danielcaldas)) -* Feature/documentation overall improvements [\#116](https://github.com/danielcaldas/react-d3-graph/pull/116) ([danielcaldas](https://github.com/danielcaldas)) -* Fix/defensive code for curve types [\#115](https://github.com/danielcaldas/react-d3-graph/pull/115) ([danielcaldas](https://github.com/danielcaldas)) -* Fix/graph unnecessary calls to graph forces config [\#114](https://github.com/danielcaldas/react-d3-graph/pull/114) ([danielcaldas](https://github.com/danielcaldas)) -* Customize nodes with JSX views [\#103](https://github.com/danielcaldas/react-d3-graph/pull/103) ([LonelyPrincess](https://github.com/LonelyPrincess)) +- Remove snapshoot structures for nodes and links [\#118](https://github.com/danielcaldas/react-d3-graph/pull/118) ([danielcaldas](https://github.com/danielcaldas)) +- Fix/Check for d3 config is updated [\#117](https://github.com/danielcaldas/react-d3-graph/pull/117) ([danielcaldas](https://github.com/danielcaldas)) +- Feature/documentation overall improvements [\#116](https://github.com/danielcaldas/react-d3-graph/pull/116) ([danielcaldas](https://github.com/danielcaldas)) +- Fix/defensive code for curve types [\#115](https://github.com/danielcaldas/react-d3-graph/pull/115) ([danielcaldas](https://github.com/danielcaldas)) +- Fix/graph unnecessary calls to graph forces config [\#114](https://github.com/danielcaldas/react-d3-graph/pull/114) ([danielcaldas](https://github.com/danielcaldas)) +- Customize nodes with JSX views [\#103](https://github.com/danielcaldas/react-d3-graph/pull/103) ([LonelyPrincess](https://github.com/LonelyPrincess)) ## [2.0.0-rc0](https://github.com/danielcaldas/react-d3-graph/tree/2.0.0-rc0) @@ -61,23 +92,23 @@ **Implemented enhancements:** -* Directional links are placed on top of each other [\#89](https://github.com/danielcaldas/react-d3-graph/issues/89) +- Directional links are placed on top of each other [\#89](https://github.com/danielcaldas/react-d3-graph/issues/89) **Fixed bugs:** -* Error re-rendering Graph when no `config` prop is set [\#81](https://github.com/danielcaldas/react-d3-graph/issues/81) +- Error re-rendering Graph when no `config` prop is set [\#81](https://github.com/danielcaldas/react-d3-graph/issues/81) **Merged pull requests:** -* Configurable graph force strength and link length [\#104](https://github.com/danielcaldas/react-d3-graph/pull/104) ([LonelyPrincess](https://github.com/LonelyPrincess)) -* Fix alert message of onClickNode function in README [\#100](https://github.com/danielcaldas/react-d3-graph/pull/100) ([LucienBouletRoblin](https://github.com/LucienBouletRoblin)) -* Fix/dependencies update [\#95](https://github.com/danielcaldas/react-d3-graph/pull/95) ([danielcaldas](https://github.com/danielcaldas)) -* Feature/bump dependencies [\#92](https://github.com/danielcaldas/react-d3-graph/pull/92) ([danielcaldas](https://github.com/danielcaldas)) -* Feature/bend links [\#91](https://github.com/danielcaldas/react-d3-graph/pull/91) ([danielcaldas](https://github.com/danielcaldas)) -* Small improvement in utils/pick [\#87](https://github.com/danielcaldas/react-d3-graph/pull/87) ([danielcaldas](https://github.com/danielcaldas)) -* fix: Graph fails to render without config prop [\#84](https://github.com/danielcaldas/react-d3-graph/pull/84) ([LonelyPrincess](https://github.com/LonelyPrincess)) -* Node Collapse [\#83](https://github.com/danielcaldas/react-d3-graph/pull/83) ([svipatov](https://github.com/svipatov)) -* Added overflow:hidden to container graph area [\#82](https://github.com/danielcaldas/react-d3-graph/pull/82) ([svipatov](https://github.com/svipatov)) +- Configurable graph force strength and link length [\#104](https://github.com/danielcaldas/react-d3-graph/pull/104) ([LonelyPrincess](https://github.com/LonelyPrincess)) +- Fix alert message of onClickNode function in README [\#100](https://github.com/danielcaldas/react-d3-graph/pull/100) ([LucienBouletRoblin](https://github.com/LucienBouletRoblin)) +- Fix/dependencies update [\#95](https://github.com/danielcaldas/react-d3-graph/pull/95) ([danielcaldas](https://github.com/danielcaldas)) +- Feature/bump dependencies [\#92](https://github.com/danielcaldas/react-d3-graph/pull/92) ([danielcaldas](https://github.com/danielcaldas)) +- Feature/bend links [\#91](https://github.com/danielcaldas/react-d3-graph/pull/91) ([danielcaldas](https://github.com/danielcaldas)) +- Small improvement in utils/pick [\#87](https://github.com/danielcaldas/react-d3-graph/pull/87) ([danielcaldas](https://github.com/danielcaldas)) +- fix: Graph fails to render without config prop [\#84](https://github.com/danielcaldas/react-d3-graph/pull/84) ([LonelyPrincess](https://github.com/LonelyPrincess)) +- Node Collapse [\#83](https://github.com/danielcaldas/react-d3-graph/pull/83) ([svipatov](https://github.com/svipatov)) +- Added overflow:hidden to container graph area [\#82](https://github.com/danielcaldas/react-d3-graph/pull/82) ([svipatov](https://github.com/svipatov)) ## [1.3.0](https://github.com/danielcaldas/react-d3-graph/tree/1.3.0) (2018-06-25) @@ -87,7 +118,7 @@ **Merged pull requests:** -* Customize color for a link [\#79](https://github.com/danielcaldas/react-d3-graph/pull/79) +- Customize color for a link [\#79](https://github.com/danielcaldas/react-d3-graph/pull/79) ## [1.2.2](https://github.com/danielcaldas/react-d3-graph/tree/1.2.2) (2018-05-14) @@ -100,21 +131,21 @@ react and d3 versions. **Fixed bugs:** -* BUG: NO LINK GETS HIGHLIGHTED WHEN NODE ID IS NON-STIRNG [\#73](https://github.com/danielcaldas/react-d3-graph/issues/73) props to @iamhosseindhv for reporting +- BUG: NO LINK GETS HIGHLIGHTED WHEN NODE ID IS NON-STIRNG [\#73](https://github.com/danielcaldas/react-d3-graph/issues/73) props to @iamhosseindhv for reporting **Closed issues:** -* can the graph nodes and line not stacked [\#58](https://github.com/danielcaldas/react-d3-graph/issues/58) -* custom add node button [\#57](https://github.com/danielcaldas/react-d3-graph/issues/57) -* labelProperty not implemented? [\#54](https://github.com/danielcaldas/react-d3-graph/issues/54) -* BUG: NO LINK GETS HIGHLIGHTED WHEN NODE ID IS NON-STIRNG [\#73](https://github.com/danielcaldas/react-d3-graph/issues/73) +- can the graph nodes and line not stacked [\#58](https://github.com/danielcaldas/react-d3-graph/issues/58) +- custom add node button [\#57](https://github.com/danielcaldas/react-d3-graph/issues/57) +- labelProperty not implemented? [\#54](https://github.com/danielcaldas/react-d3-graph/issues/54) +- BUG: NO LINK GETS HIGHLIGHTED WHEN NODE ID IS NON-STIRNG [\#73](https://github.com/danielcaldas/react-d3-graph/issues/73) **Merged pull requests:** -* Fix/mouse over link highlight [\#75](https://github.com/danielcaldas/react-d3-graph/pull/75) -* Fix/link highlight id number [\#74](https://github.com/danielcaldas/react-d3-graph/pull/74) -* Feature/move to node 8.11.0 [\#72](https://github.com/danielcaldas/react-d3-graph/pull/72) -* Refactor/links build [\#69](https://github.com/danielcaldas/react-d3-graph/pull/69) +- Fix/mouse over link highlight [\#75](https://github.com/danielcaldas/react-d3-graph/pull/75) +- Fix/link highlight id number [\#74](https://github.com/danielcaldas/react-d3-graph/pull/74) +- Feature/move to node 8.11.0 [\#72](https://github.com/danielcaldas/react-d3-graph/pull/72) +- Refactor/links build [\#69](https://github.com/danielcaldas/react-d3-graph/pull/69) ## [1.2.1](https://github.com/danielcaldas/react-d3-graph/tree/1.2.1) (2018-04-22) @@ -122,14 +153,14 @@ react and d3 versions. **Closed issues:** -* 100% Width/Height of parent element [\#63](https://github.com/danielcaldas/react-d3-graph/issues/63) -* SVG image for node [\#36](https://github.com/danielcaldas/react-d3-graph/issues/36) +- 100% Width/Height of parent element [\#63](https://github.com/danielcaldas/react-d3-graph/issues/63) +- SVG image for node [\#36](https://github.com/danielcaldas/react-d3-graph/issues/36) **Merged pull requests:** -* Move logic from graph component \(highlight updates\) [\#66](https://github.com/danielcaldas/react-d3-graph/pull/66) ([danielcaldas](https://github.com/danielcaldas)) -* Feature/update dependencies [\#65](https://github.com/danielcaldas/react-d3-graph/pull/65) ([danielcaldas](https://github.com/danielcaldas)) -* Add fontColor as a configuration option for node's \ fill property [\#64](https://github.com/danielcaldas/react-d3-graph/pull/64) ([dmmulroy](https://github.com/dmmulroy)) +- Move logic from graph component \(highlight updates\) [\#66](https://github.com/danielcaldas/react-d3-graph/pull/66) ([danielcaldas](https://github.com/danielcaldas)) +- Feature/update dependencies [\#65](https://github.com/danielcaldas/react-d3-graph/pull/65) ([danielcaldas](https://github.com/danielcaldas)) +- Add fontColor as a configuration option for node's \ fill property [\#64](https://github.com/danielcaldas/react-d3-graph/pull/64) ([dmmulroy](https://github.com/dmmulroy)) ## [1.2.0](https://github.com/danielcaldas/react-d3-graph/tree/1.2.0) (2018-04-01) @@ -137,19 +168,19 @@ react and d3 versions. **Implemented enhancements:** -* Graph Rerendering [\#51](https://github.com/danielcaldas/react-d3-graph/issues/51) +- Graph Rerendering [\#51](https://github.com/danielcaldas/react-d3-graph/issues/51) **Fixed bugs:** -* Graph Rerendering [\#51](https://github.com/danielcaldas/react-d3-graph/issues/51) +- Graph Rerendering [\#51](https://github.com/danielcaldas/react-d3-graph/issues/51) **Merged pull requests:** -* Improve naming across rd3g codebase [\#62](https://github.com/danielcaldas/react-d3-graph/pull/62) ([danielcaldas](https://github.com/danielcaldas)) -* Feature/update webpack [\#61](https://github.com/danielcaldas/react-d3-graph/pull/61) ([danielcaldas](https://github.com/danielcaldas)) -* Feature/provide svg for nodes [\#60](https://github.com/danielcaldas/react-d3-graph/pull/60) ([danielcaldas](https://github.com/danielcaldas)) -* Fixing a broken link [\#55](https://github.com/danielcaldas/react-d3-graph/pull/55) ([ufo2mstar](https://github.com/ufo2mstar)) -* Feature/add prettier [\#53](https://github.com/danielcaldas/react-d3-graph/pull/53) ([danielcaldas](https://github.com/danielcaldas)) +- Improve naming across rd3g codebase [\#62](https://github.com/danielcaldas/react-d3-graph/pull/62) ([danielcaldas](https://github.com/danielcaldas)) +- Feature/update webpack [\#61](https://github.com/danielcaldas/react-d3-graph/pull/61) ([danielcaldas](https://github.com/danielcaldas)) +- Feature/provide svg for nodes [\#60](https://github.com/danielcaldas/react-d3-graph/pull/60) ([danielcaldas](https://github.com/danielcaldas)) +- Fixing a broken link [\#55](https://github.com/danielcaldas/react-d3-graph/pull/55) ([ufo2mstar](https://github.com/ufo2mstar)) +- Feature/add prettier [\#53](https://github.com/danielcaldas/react-d3-graph/pull/53) ([danielcaldas](https://github.com/danielcaldas)) ## [1.0.1](https://github.com/danielcaldas/react-d3-graph/tree/1.0.1) (2018-02-18) @@ -157,14 +188,14 @@ react and d3 versions. **Fixed bugs:** -* Click one node but another one moves [\#41](https://github.com/danielcaldas/react-d3-graph/issues/41) +- Click one node but another one moves [\#41](https://github.com/danielcaldas/react-d3-graph/issues/41) **Merged pull requests:** -* Fix/data updates static updates [\#52](https://github.com/danielcaldas/react-d3-graph/pull/52) ([danielcaldas](https://github.com/danielcaldas)) -* Feature/e2e testing [\#50](https://github.com/danielcaldas/react-d3-graph/pull/50) ([danielcaldas](https://github.com/danielcaldas)) -* Refactor/separation of concerns render + logic [\#49](https://github.com/danielcaldas/react-d3-graph/pull/49) ([danielcaldas](https://github.com/danielcaldas)) -* Fix/install [\#45](https://github.com/danielcaldas/react-d3-graph/pull/45) ([danielcaldas](https://github.com/danielcaldas)) +- Fix/data updates static updates [\#52](https://github.com/danielcaldas/react-d3-graph/pull/52) ([danielcaldas](https://github.com/danielcaldas)) +- Feature/e2e testing [\#50](https://github.com/danielcaldas/react-d3-graph/pull/50) ([danielcaldas](https://github.com/danielcaldas)) +- Refactor/separation of concerns render + logic [\#49](https://github.com/danielcaldas/react-d3-graph/pull/49) ([danielcaldas](https://github.com/danielcaldas)) +- Fix/install [\#45](https://github.com/danielcaldas/react-d3-graph/pull/45) ([danielcaldas](https://github.com/danielcaldas)) ## [1.0.0](https://github.com/danielcaldas/react-d3-graph/tree/1.0.0) (2017-12-02) @@ -172,15 +203,15 @@ react and d3 versions. **Closed issues:** -* How can I get onMouseOverLink event? [\#25](https://github.com/danielcaldas/react-d3-graph/issues/25) +- How can I get onMouseOverLink event? [\#25](https://github.com/danielcaldas/react-d3-graph/issues/25) **Merged pull requests:** -* Fix/tests coverage [\#44](https://github.com/danielcaldas/react-d3-graph/pull/44) ([danielcaldas](https://github.com/danielcaldas)) -* Fix/on drag node handler [\#42](https://github.com/danielcaldas/react-d3-graph/pull/42) ([danielcaldas](https://github.com/danielcaldas)) -* Feature/on mouse over and out link [\#40](https://github.com/danielcaldas/react-d3-graph/pull/40) ([danielcaldas](https://github.com/danielcaldas)) -* Set proper defaults for Graph component config [\#39](https://github.com/danielcaldas/react-d3-graph/pull/39) ([danielcaldas](https://github.com/danielcaldas)) -* Fix semantics mouse over methods in Graph component [\#38](https://github.com/danielcaldas/react-d3-graph/pull/38) ([danielcaldas](https://github.com/danielcaldas)) +- Fix/tests coverage [\#44](https://github.com/danielcaldas/react-d3-graph/pull/44) ([danielcaldas](https://github.com/danielcaldas)) +- Fix/on drag node handler [\#42](https://github.com/danielcaldas/react-d3-graph/pull/42) ([danielcaldas](https://github.com/danielcaldas)) +- Feature/on mouse over and out link [\#40](https://github.com/danielcaldas/react-d3-graph/pull/40) ([danielcaldas](https://github.com/danielcaldas)) +- Set proper defaults for Graph component config [\#39](https://github.com/danielcaldas/react-d3-graph/pull/39) ([danielcaldas](https://github.com/danielcaldas)) +- Fix semantics mouse over methods in Graph component [\#38](https://github.com/danielcaldas/react-d3-graph/pull/38) ([danielcaldas](https://github.com/danielcaldas)) ## [0.4.0](https://github.com/danielcaldas/react-d3-graph/tree/0.4.0) (2017-11-11) @@ -188,14 +219,14 @@ react and d3 versions. **Implemented enhancements:** -* Node version [\#29](https://github.com/danielcaldas/react-d3-graph/issues/29) +- Node version [\#29](https://github.com/danielcaldas/react-d3-graph/issues/29) **Merged pull requests:** -* Refactor/improve code structure [\#35](https://github.com/danielcaldas/react-d3-graph/pull/35) ([danielcaldas](https://github.com/danielcaldas)) -* Feature/highlight nodes degree [\#34](https://github.com/danielcaldas/react-d3-graph/pull/34) ([danielcaldas](https://github.com/danielcaldas)) -* Update node engine version in package.json [\#32](https://github.com/danielcaldas/react-d3-graph/pull/32) ([danielcaldas](https://github.com/danielcaldas)) -* Feature/sandbox improvements [\#27](https://github.com/danielcaldas/react-d3-graph/pull/27) ([danielcaldas](https://github.com/danielcaldas)) +- Refactor/improve code structure [\#35](https://github.com/danielcaldas/react-d3-graph/pull/35) ([danielcaldas](https://github.com/danielcaldas)) +- Feature/highlight nodes degree [\#34](https://github.com/danielcaldas/react-d3-graph/pull/34) ([danielcaldas](https://github.com/danielcaldas)) +- Update node engine version in package.json [\#32](https://github.com/danielcaldas/react-d3-graph/pull/32) ([danielcaldas](https://github.com/danielcaldas)) +- Feature/sandbox improvements [\#27](https://github.com/danielcaldas/react-d3-graph/pull/27) ([danielcaldas](https://github.com/danielcaldas)) ## [0.3.0](https://github.com/danielcaldas/react-d3-graph/tree/0.3.0) (2017-10-21) @@ -203,19 +234,19 @@ react and d3 versions. **Implemented enhancements:** -* Squeezing if "staticGraph": true [\#24](https://github.com/danielcaldas/react-d3-graph/issues/24) +- Squeezing if "staticGraph": true [\#24](https://github.com/danielcaldas/react-d3-graph/issues/24) **Fixed bugs:** -* Squeezing if "staticGraph": true [\#24](https://github.com/danielcaldas/react-d3-graph/issues/24) +- Squeezing if "staticGraph": true [\#24](https://github.com/danielcaldas/react-d3-graph/issues/24) **Merged pull requests:** -* Fix/set initial static graph [\#26](https://github.com/danielcaldas/react-d3-graph/pull/26) ([danielcaldas](https://github.com/danielcaldas)) -* Refactor/general improvements [\#22](https://github.com/danielcaldas/react-d3-graph/pull/22) ([danielcaldas](https://github.com/danielcaldas)) -* Fix typo node.stype -\> node.symbolType [\#21](https://github.com/danielcaldas/react-d3-graph/pull/21) ([danielcaldas](https://github.com/danielcaldas)) -* Bump several dependencies to latest. New yarn.lock [\#20](https://github.com/danielcaldas/react-d3-graph/pull/20) ([danielcaldas](https://github.com/danielcaldas)) -* Refactor/documentation revisited [\#19](https://github.com/danielcaldas/react-d3-graph/pull/19) ([danielcaldas](https://github.com/danielcaldas)) +- Fix/set initial static graph [\#26](https://github.com/danielcaldas/react-d3-graph/pull/26) ([danielcaldas](https://github.com/danielcaldas)) +- Refactor/general improvements [\#22](https://github.com/danielcaldas/react-d3-graph/pull/22) ([danielcaldas](https://github.com/danielcaldas)) +- Fix typo node.stype -\> node.symbolType [\#21](https://github.com/danielcaldas/react-d3-graph/pull/21) ([danielcaldas](https://github.com/danielcaldas)) +- Bump several dependencies to latest. New yarn.lock [\#20](https://github.com/danielcaldas/react-d3-graph/pull/20) ([danielcaldas](https://github.com/danielcaldas)) +- Refactor/documentation revisited [\#19](https://github.com/danielcaldas/react-d3-graph/pull/19) ([danielcaldas](https://github.com/danielcaldas)) ## [0.2.1](https://github.com/danielcaldas/react-d3-graph/tree/0.2.1) (2017-09-17) @@ -223,8 +254,8 @@ react and d3 versions. **Merged pull requests:** -* Fix/remove node link scu methods [\#18](https://github.com/danielcaldas/react-d3-graph/pull/18) ([danielcaldas](https://github.com/danielcaldas)) -* Calc proper value for node strokeWith when applying pan&zoom [\#17](https://github.com/danielcaldas/react-d3-graph/pull/17) ([danielcaldas](https://github.com/danielcaldas)) +- Fix/remove node link scu methods [\#18](https://github.com/danielcaldas/react-d3-graph/pull/18) ([danielcaldas](https://github.com/danielcaldas)) +- Calc proper value for node strokeWith when applying pan&zoom [\#17](https://github.com/danielcaldas/react-d3-graph/pull/17) ([danielcaldas](https://github.com/danielcaldas)) ## [0.2.0](https://github.com/danielcaldas/react-d3-graph/tree/0.2.0) (2017-09-16) @@ -232,9 +263,9 @@ react and d3 versions. **Merged pull requests:** -* Refactor/d3 tree shaking [\#16](https://github.com/danielcaldas/react-d3-graph/pull/16) ([danielcaldas](https://github.com/danielcaldas)) -* Generate bundle stats with webpack visualizer [\#15](https://github.com/danielcaldas/react-d3-graph/pull/15) ([danielcaldas](https://github.com/danielcaldas)) -* Feature/pan and zoom [\#14](https://github.com/danielcaldas/react-d3-graph/pull/14) ([danielcaldas](https://github.com/danielcaldas)) +- Refactor/d3 tree shaking [\#16](https://github.com/danielcaldas/react-d3-graph/pull/16) ([danielcaldas](https://github.com/danielcaldas)) +- Generate bundle stats with webpack visualizer [\#15](https://github.com/danielcaldas/react-d3-graph/pull/15) ([danielcaldas](https://github.com/danielcaldas)) +- Feature/pan and zoom [\#14](https://github.com/danielcaldas/react-d3-graph/pull/14) ([danielcaldas](https://github.com/danielcaldas)) ## [0.1.0](https://github.com/danielcaldas/react-d3-graph/tree/0.1.0) (2017-08-05) @@ -242,14 +273,14 @@ react and d3 versions. **Implemented enhancements:** -* Adding nodes? [\#7](https://github.com/danielcaldas/react-d3-graph/issues/7) +- Adding nodes? [\#7](https://github.com/danielcaldas/react-d3-graph/issues/7) **Merged pull requests:** -* Refactor/sandbox improvements [\#12](https://github.com/danielcaldas/react-d3-graph/pull/12) ([danielcaldas](https://github.com/danielcaldas)) -* Fix/default node symbol [\#11](https://github.com/danielcaldas/react-d3-graph/pull/11) ([danielcaldas](https://github.com/danielcaldas)) -* Fix/not call graph configs inside component did update [\#10](https://github.com/danielcaldas/react-d3-graph/pull/10) ([danielcaldas](https://github.com/danielcaldas)) -* Refactor/update graph data [\#9](https://github.com/danielcaldas/react-d3-graph/pull/9) ([danielcaldas](https://github.com/danielcaldas)) +- Refactor/sandbox improvements [\#12](https://github.com/danielcaldas/react-d3-graph/pull/12) ([danielcaldas](https://github.com/danielcaldas)) +- Fix/default node symbol [\#11](https://github.com/danielcaldas/react-d3-graph/pull/11) ([danielcaldas](https://github.com/danielcaldas)) +- Fix/not call graph configs inside component did update [\#10](https://github.com/danielcaldas/react-d3-graph/pull/10) ([danielcaldas](https://github.com/danielcaldas)) +- Refactor/update graph data [\#9](https://github.com/danielcaldas/react-d3-graph/pull/9) ([danielcaldas](https://github.com/danielcaldas)) ## [0.0.2](https://github.com/danielcaldas/react-d3-graph/tree/0.0.2) (2017-04-25) @@ -259,11 +290,11 @@ react and d3 versions. **Merged pull requests:** -* Feature/docs [\#6](https://github.com/danielcaldas/react-d3-graph/pull/6) ([danielcaldas](https://github.com/danielcaldas)) -* Feature/test suite [\#5](https://github.com/danielcaldas/react-d3-graph/pull/5) ([danielcaldas](https://github.com/danielcaldas)) -* Feature/sandbox [\#4](https://github.com/danielcaldas/react-d3-graph/pull/4) ([danielcaldas](https://github.com/danielcaldas)) -* Feature/npm dependencies [\#3](https://github.com/danielcaldas/react-d3-graph/pull/3) ([danielcaldas](https://github.com/danielcaldas)) -* Feature/graph component decoupling [\#2](https://github.com/danielcaldas/react-d3-graph/pull/2) ([danielcaldas](https://github.com/danielcaldas)) -* Graph forces [\#1](https://github.com/danielcaldas/react-d3-graph/pull/1) ([danielcaldas](https://github.com/danielcaldas)) +- Feature/docs [\#6](https://github.com/danielcaldas/react-d3-graph/pull/6) ([danielcaldas](https://github.com/danielcaldas)) +- Feature/test suite [\#5](https://github.com/danielcaldas/react-d3-graph/pull/5) ([danielcaldas](https://github.com/danielcaldas)) +- Feature/sandbox [\#4](https://github.com/danielcaldas/react-d3-graph/pull/4) ([danielcaldas](https://github.com/danielcaldas)) +- Feature/npm dependencies [\#3](https://github.com/danielcaldas/react-d3-graph/pull/3) ([danielcaldas](https://github.com/danielcaldas)) +- Feature/graph component decoupling [\#2](https://github.com/danielcaldas/react-d3-graph/pull/2) ([danielcaldas](https://github.com/danielcaldas)) +- Graph forces [\#1](https://github.com/danielcaldas/react-d3-graph/pull/1) ([danielcaldas](https://github.com/danielcaldas)) \* _This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)_ diff --git a/docs/0.3.0.html b/docs/0.3.0.html index 1e16a46ce..01c05a2e2 100644 --- a/docs/0.3.0.html +++ b/docs/0.3.0.html @@ -21,7 +21,7 @@

🔗 Live Demo

Versions
    -
  • 2.0.0-rc2 (latest) 🚀
  • +
  • 2.0.0 (latest) 🚀
  • 1.3.0
  • 1.2.2
  • 1.2.0
  • diff --git a/docs/0.4.0.html b/docs/0.4.0.html index c9875f12f..dd65b57d2 100644 --- a/docs/0.4.0.html +++ b/docs/0.4.0.html @@ -21,7 +21,7 @@

    🔗 Live Demo

    Versions
      -
    • 2.0.0-rc2 (latest) 🚀
    • +
    • 2.0.0 (latest) 🚀
    • 1.3.0
    • 1.2.2
    • 1.2.0
    • diff --git a/docs/1.0.0.html b/docs/1.0.0.html index b471416d6..2f7ec8136 100644 --- a/docs/1.0.0.html +++ b/docs/1.0.0.html @@ -21,7 +21,7 @@

      🔗 Live Demo

      Versions
        -
      • 2.0.0-rc2 (latest) 🚀
      • +
      • 2.0.0 (latest) 🚀
      • 1.3.0
      • 1.2.2
      • 1.2.0
      • diff --git a/docs/1.0.1.html b/docs/1.0.1.html index e16a3d850..ef7ae0a8a 100644 --- a/docs/1.0.1.html +++ b/docs/1.0.1.html @@ -21,7 +21,7 @@

        🔗 Live Demo

        Versions
          -
        • 2.0.0-rc2 (latest) 🚀
        • +
        • 2.0.0 (latest) 🚀
        • 1.3.0
        • 1.2.2
        • 1.2.0
        • diff --git a/docs/1.2.0.html b/docs/1.2.0.html index 0ea34383a..48681cd11 100644 --- a/docs/1.2.0.html +++ b/docs/1.2.0.html @@ -21,7 +21,7 @@

          🔗 Live Demo

          Versions
            -
          • 2.0.0-rc2 (latest) 🚀
          • +
          • 2.0.0 (latest) 🚀
          • 1.3.0
          • 1.2.2
          • 1.2.0
          • diff --git a/docs/1.2.2.html b/docs/1.2.2.html index c45af506f..36c16f4f4 100644 --- a/docs/1.2.2.html +++ b/docs/1.2.2.html @@ -21,7 +21,7 @@

            🔗 Live Demo

            Versions
              -
            • 2.0.0-rc2 (latest) 🚀
            • +
            • 2.0.0 (latest) 🚀
            • 1.3.0
            • 1.2.2
            • 1.2.0
            • diff --git a/docs/1.3.0.html b/docs/1.3.0.html index fa0ce3fe2..c177aff39 100644 --- a/docs/1.3.0.html +++ b/docs/1.3.0.html @@ -21,7 +21,7 @@

              🔗 Live Demo

              Versions
                -
              • 2.0.0-rc2 (latest) 🚀
              • +
              • 2.0.0 (latest) 🚀
              • 1.3.0
              • 1.2.2
              • 1.2.0
              • diff --git a/docs/index.html b/docs/index.html index 72a8586c5..1e893051d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2,7 +2,7 @@ - react-d3-graph 2.0.0-rc2 | Documentation + react-d3-graph 2.0.0 | Documentation @@ -14,13 +14,13 @@

                react-d3-graph

                -
                2.0.0-rc2
                +
                2.0.0

                Quick Links

                🔗 GitHub Repo

                🔗 Live Demo

                Versions
                - - + +
                - +
                - +

                graph.config

                - - + +
                - -
                This is certainly the only extra piece of documentation that you will ever need
                + +
                This is certainly the only extra piece of documentation that you will ever need


                Here you can consult a detailed description of each graph configurable property as well as the default values of those properties. @@ -787,62 +821,62 @@

                const graph = {
                     nodes: [
                         {
                -            id: 'id',
                -            color: 'red',         // only this node will be red
                +            id: "id",
                +            color: "red",         // only this node will be red
                             size: 300,            // only this node will have size 300
                -            symbolType: 'diamond' // only this node will have 'diamond' shape
                +            symbolType: "diamond" // only this node will have "diamond" shape
                         }
                     ],
                     links: [...]
                 };

                -

                Index for config

                +

                # Graph global configurations

                graph.config
                - - - - - - - - - + + + + + + + + +
                Parameters
                - +
                automaticRearrangeAfterDropNode (boolean = false) 🚅🚅🚅 when true performing a node drag and drop should automatically -rearrange all nodes positions based on new position of dragged node (note: +rearrange all nodes positions based on new position of dragged node (note: staticGraph should be false).
                - +
                - +
                collapsible (boolean = false) 🚅🚅🚅 Allow leaf neighbors nodes to be collapsed (folded), this will allow users to clear the way out and focus on the parts of the graph that really matter. -To see an example of this behavior you can access this sandbox link that has a specific set up to experiment this feature. +To see an example of this behavior you can access this sandbox link that has a specific set up to experiment this feature. NOTE : At this moment -nodes without connections (orphan nodes) are not rendered when this property is activated (see +nodes without connections (orphan nodes) are not rendered when this property is activated (see react-d3-graph/issues/#129 ). @@ -852,9 +886,9 @@

                # Graph global configuratio

                - +
                - +
                directed (boolean @@ -868,9 +902,54 @@

                # Graph global configuratio

                - + +
                + +
                +
                + focusZoom (number + = 1) + zoom that will be applied when the graph view is focused in a node. Its value must be between + +minZoom + and +maxZoom +. If the specified +focusZoom + is out of this range, +minZoom + or +maxZoom + will be applied instead. + +NOTE: + This animation is not trigger by default. In order to trigger it you need to pass down to +react-d3-graph + the +node that you want to focus via prop +focusedNodeId + along side with nodes and links: +
                const data = {
                +   nodes: this.state.data.nodes,
                +   links: this.state.data.links,
                +   focusedNodeId: "nodeIdToTriggerZoomAnimation"
                +};
                + + +
                + +
                + +
                +
                + focusAnimationDuration (number + = 0.75) + duration (in seconds) for the animation that takes place when focusing the graph on a node. + +
                +
                - +
                height (number @@ -878,76 +957,76 @@

                # Graph global configuratio the height of the (svg) area where the graph will be rendered.

                - +
                - +
                nodeHighlightBehavior (boolean = false) 🚅🚅🚅 when user mouse hovers a node that node and adjacent common -connections will be highlighted (depending on the +connections will be highlighted (depending on the highlightDegree - value). All the remaining nodes and links assume opacity value equal to + value). All the remaining nodes and links assume opacity value equal to highlightOpacity .
                - +
                - +
                linkHighlightBehavior (boolean = false) 🚅🚅🚅 when the user mouse hovers some link that link and the correspondent nodes will be highlighted, this is a similar behavior -to +to nodeHighlightBehavior - but for links + but for links -(just for historical reference this property was introduced in +(just for historical reference this property was introduced in v1.0.0 ) .
                - +
                - +
                highlightDegree (number = 1) Possible values: 0, 1 or 2 . This value represents the range of the -highlight behavior when some node is highlighted. If the value is set to +highlight behavior when some node is highlighted. If the value is set to 0 only the selected node will be -highlighted. If the value is set to +highlighted. If the value is set to 1 the selected node and his 1st degree connections will be highlighted. If -the value is set to +the value is set to 2 the selected node will be highlighted as well as the 1st and 2nd common degree connections.
                - +
                - +
                highlightOpacity (number = 1) this value is used to highlight nodes in the network. The lower -the value the more the less highlighted nodes will be visible (related to +the value the more the less highlighted nodes will be visible (related to nodeHighlightBehavior ).
                - +
                - +
                maxZoom (number @@ -955,9 +1034,9 @@

                # Graph global configuratio max zoom that can be performed against the graph.

                - +
                - +
                minZoom (number @@ -965,82 +1044,37 @@

                # Graph global configuratio min zoom that can be performed against the graph.

                - -
                - -
                -
                - focusZoom (number - = 1) - zoom that will be applied when the graph view is focused in a node. Its value must be between - -minZoom - and -maxZoom -. If the specified -focusZoom - is out of this range, -minZoom - or -maxZoom - will be applied instead. - -NOTE: - This animation is not trigger by default. In order to trigger it you need to pass down to -react-d3-graph - the -node that you want to focus via prop -focusedNodeId - along side with nodes and links: -
                const data = {
                -   nodes: this.state.data.nodes,
                -   links: this.state.data.links,
                -   focusedNodeId: 'nodeIdToTriggerZoomAnimation'
                -};
                - -
                -
                - -
                -
                - focusAnimationDuration (number - = 0.75) - duration (in seconds) for the animation that takes place when focusing the graph on a node. -
                - -
                -
                panAndZoom (boolean = false) 🚅🚅🚅 pan and zoom effect when performing zoom in the graph, -a similar functionality may be consulted +a similar functionality may be consulted here .
                - +
                - +
                staticGraph (boolean = false) when setting this value to true the graph will be completely static, thus all forces and drag events upon nodes will produce not effect. Note that, if this value is true the nodes will be -rendered with the initial provided +rendered with the initial provided x and y coordinates (links positions will be automatically set from the given nodes positions by rd3g), no coordinates will be calculated by rd3g or subjacent d3 modules.
                - +
                - +
                width (number @@ -1050,9 +1084,9 @@

                # Graph global configuratio

                - +
                - +
                d3 (Object) @@ -1060,7 +1094,7 @@

                # Graph global configuratio

                # d3 level configurations

                - + @@ -1073,10 +1107,10 @@

                # d3 level configurations

                - + - + - + - + - +
                d3.alphaTarget number - + (default 0.05) see d3-force simulation.alphaTarget @@ -1084,10 +1118,10 @@

                # d3 level configurations

                d3.gravity number - + (default -100) this will define how close nodes are to each other ( @@ -1095,16 +1129,16 @@

                # d3 level configurations

                ).
                • If value is positive, nodes will attract each other.
                • -
                • If value is negative, nodes will repel each other. Most of the times this is what we want, so nodes don't overlap.
                • +
                • If value is negative, nodes will repel each other. Most of the times this is what we want, so nodes don"t overlap.
                d3.linkLength number - + (default 100) the length of each link from the center of the nodes it joins. @@ -1112,10 +1146,10 @@

                # d3 level configurations

                d3.linkStrength number - + (default 1) see d3-force link.strength @@ -1126,12 +1160,12 @@

                # d3 level configurations

                - +
                - +
                node (Object) @@ -1139,7 +1173,7 @@

                # d3 level configurations

                # Node level configurations

                - + @@ -1152,78 +1186,78 @@

                # Node level configurations

                - + - - + - - + - + - + - - + - + - + - + - + - + - + - - + - + - + - - + - - + - - + - - + - +
                node.color string - - (default '#d3d3d3') + + (default "#d3d3d3") 🔍🔍🔍 this is the color that will be applied to the node if no + 🔍🔍🔍 this is the color that will be applied to the node if no color property -is found inside the node itself (yes -you can pass a property 'color' inside the node and that color will override the +is found inside the node itself (yes +you can pass a property "color" inside the node and that color will override the this default one ).
                node.fontColor string - - (default 'black') + + (default "black") 🔍🔍🔍 fill color for node's + 🔍🔍🔍 fill color for node"s svg label.
                node.fontSize number - - (default 10) + + (default 8) font-size -property for all nodes' labels. +property for all nodes" labels.
                node.fontWeight string - - (default 'normal') + + (default "normal") font-weight -property for all nodes' labels. +property for all nodes" labels.
                node.highlightColor string - - (default 'SAME') + + (default "SAME") color for all highlighted nodes (use string 'SAME' if you + color for all highlighted nodes (use string "SAME" if you want the node to keep its color in highlighted state).
                node.highlightFontSize number - + (default 8) fontSize in highlighted state. @@ -1231,59 +1265,59 @@

                # Node level configurations

                node.highlightFontWeight string - - (default 'normal') + + (default "normal") fontWeight in highlighted state.
                node.highlightStrokeColor string - - (default 'SAME') + + (default "SAME") strokeColor in highlighted state.
                node.highlightStrokeWidth number - - (default 1.5) + + (default "SAME") strokeWidth in highlighted state.
                node.labelProperty (string | Function) - - (default 'id') + + (default "id") this is the node property that will be used in runtime to fetch the label content. You just need to add some property (e.g. firstName) to the node payload and then set -node.labelProperty to be -'firstName' -. +node.labelProperty to be +"firstName" +. This can also be a function! , if you pass a function here it will be called -to obtain the +to obtain the label value on the fly, as a client you will receive all the node information that you passed down into react-d3-graph, so the signature of the function would be:
                function myCustomLabelBuilder(node) {
                     // do stuff to get the final result...
                -    return 'label string';
                +    return "label string";
                 }

                Then you just need to make sure that you pass this function in the config in config.node.labelProperty.

                @@ -1291,11 +1325,11 @@

                # Node level configurations

                node.mouseCursor string - - (default 'pointer') + + (default "pointer") cursor @@ -1304,21 +1338,21 @@

                # Node level configurations

                node.opacity number - + (default 1) by default all nodes will have this opacity value. + 🔍🔍🔍 - by default all nodes will have this opacity value.
                node.renderLabel boolean - + (default true) when set to false no labels will appear along side nodes in the @@ -1327,10 +1361,10 @@

                # Node level configurations

                node.size number - + (default 200) 🔍🔍🔍 defines the size of all nodes. @@ -1338,39 +1372,39 @@

                # Node level configurations

                node.strokeColor string - - (default 'none') + + (default "none") 🔍🔍🔍 this is the stroke color that will be applied to the node if no + 🔍🔍🔍 this is the stroke color that will be applied to the node if no strokeColor property - is found inside the node itself (yes -you can pass a property 'strokeColor' inside the node and that stroke color will override this default one + is found inside the node itself (yes +you can pass a property "strokeColor" inside the node and that stroke color will override this default one ).
                node.strokeWidth number - + (default 1.5) the width of the all node strokes. + 🔍🔍🔍 - the width of the all node strokes.
                node.svg string - - (default '') + + (default "") 🔍🔍🔍 render custom svg for nodes in alternative to + 🔍🔍🔍 render custom svg for nodes in alternative to node.symbolType . This svg can be provided as a string to either a remote svg resource or for a local one. @@ -1383,38 +1417,38 @@

                # Node level configurations

                node.symbolType string - - (default 'circle') + + (default "circle") 🔍🔍🔍 the - + 🔍🔍🔍 the + shape of the node. -Use the following values under a property +Use the following values under a property type inside each node (nodes may have different types, same as colors):
                  -
                • 'circle'
                • -
                • 'cross'
                • -
                • 'diamond'
                • -
                • 'square'
                • -
                • 'star'
                • -
                • 'triangle'
                • -
                • 'wye'
                • +
                • "circle"
                • +
                • "cross"
                • +
                • "diamond"
                • +
                • "square"
                • +
                • "star"
                • +
                • "triangle"
                • +
                • "wye"

                [note] react-d3-graph will map this values to d3 symbols

                node.viewGenerator Function - + (default null) 🔍🔍🔍 function that receives a node and returns a JSX view. @@ -1424,12 +1458,12 @@

                # Node level configurations

                - +
                - +
                link (Object) @@ -1437,7 +1471,7 @@

                # Node level configurations

                - + @@ -1450,59 +1484,153 @@ - + - - + - - + - + - - - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + - +
                link.color string - - (default '#d3d3d3') + + (default "#d3d3d3") 🚅🚅🚅 the color for links + 🔍🔍🔍 the color for links (from version 1.3.0 this property can be configured at link level).
                link.highlightColor string - - (default '#d3d3d3') - links' color in highlight state. + link.fontColor string - + (default "black") + 🔍🔍🔍 fill color for link's + + svg label.
                link.mouseCursor string - - (default 'pointer') + link.fontSize number + + (default 8) cursor + font-size -property for when link is mouse hovered. +property for all links' labels.
                link.opacity number - - (default 1) + link.fontWeight string + + (default "normal") the default opacity value for links. + font-weight + +property for all links' labels.
                link.highlightColor string + + (default "#d3d3d3") + links' color in highlight state. + + +
                link.highlightFontSize number + + (default 8) + fontSize in highlighted state. +
                link.highlightFontWeight string + + (default "normal") + fontWeight in highlighted state. +
                link.labelProperty boolean + + (default "label") + the property that will be rendered as label within some link. Note that +this property needs to be passed along the link payload (along side with source and target). +
                link.mouseCursor string + + (default "pointer") + cursor + +property for when link is mouse hovered. +
                link.opacity number + + (default 1) + 🔍🔍🔍 - the default opacity value for links. +
                link.renderLabel boolean + + (default false) + when set to true labels will appear along side links in the +graph. +Note +: this will only happen of course if proper label is passed within the link, check also +link.labelProperty +. + +
                + + + +
                link.semanticStrokeWidth boolean - + (default false) when set to true all links will have @@ -1515,94 +1643,95 @@
                link.strokeWidth number - + (default 1.5) strokeWidth for all links. By default the actual value is obtain by the + 🔍🔍🔍 - strokeWidth for all links. By default the actual value is obtain by the following expression:
                link.strokeWidth * (1 / transform); // transform is a zoom delta Δ value
                link.type string - - (default 'STRAIGHT') + + (default "STRAIGHT") the type of line to draw, available types at this point are:
                • "STRAIGHT" (default) - a straight line.
                • "CURVE_SMOOTH" - a slight curve between two nodes
                • "CURVE_FULL" - a semicircumference trajectory unites source and target nodes. -
                • +
                  +
                - +
                - +
                - - - - - + + + + +
                Example
                - - + +
                // A simple config that uses some properties
                 const myConfig = {
                     nodeHighlightBehavior: true,
                     node: {
                -        color: 'lightgreen',
                +        color: "lightgreen",
                         size: 120,
                -        highlightStrokeColor: 'blue'
                +        highlightStrokeColor: "blue"
                     },
                     link: {
                -        highlightColor: 'lightblue'
                +        highlightColor: "lightblue"
                     }
                 };
                 
                -// Sorry for the long config description, here's a potato 🥔.
                - - +// Sorry for the long config description, here"s a potato 🥔. + + + + + - - -
                - - - + + +
                - +
                - +

                Graph

                - - + +
                - +

                Graph component is the main component for react-d3-graph components, its interface allows its user to build the graph once the user provides the data, configuration (optional) and callback interactions (also optional). @@ -1611,48 +1740,48 @@

                new Graph(props: any)
                - - + +

                Extends - + React.Component - +

                - - - - - - - - + + + + + + + +
                Parameters
                - +
                props (any) - +
                - +
                - +
                - - - - - + + + + +
                Example
                - - + +
                import { Graph } from 'react-d3-graph';
                 
                 // graph payload (with minimalist structure)
                @@ -1732,15 +1861,71 @@ 

                onMouseOutNode={onMouseOutNode} onMouseOverLink={onMouseOverLink} onMouseOutLink={onMouseOutLink}/>

                - - - - + + + +
                Instance Members
                - + +
                +
                +
                + + _generateFocusAnimationProps +
                +
                + +
                +
                @@ -1751,50 +1936,50 @@

                - +
                @@ -1805,50 +1990,50 @@

                - +
                @@ -1859,45 +2044,45 @@

                - +
                @@ -1947,50 +2132,50 @@

                - +
                @@ -2001,35 +2186,35 @@

                - +
                @@ -2079,27 +2264,27 @@

                - +
                @@ -2160,51 +2345,51 @@

                - +
                @@ -2215,1992 +2400,1328 @@

                - -
                + +
                - onMouseOverNode + onClickGraph
                - -
                + +
                - onMouseOutNode + onClickNode
                - -

                + +
                +
                + +
                - onMouseOutLink + onMouseOutNode
                - -
                + + - -
                -
                -
                - - resetNodesPositions +
                Parameters
                +
                + +
                +
                + source (string) + id of the source node that participates in the event. + +
                +
                -
                - -
                resetNodesPositions
                - - - - - - - - - - - -
                Returns
                undefined: - - - - - - - - - + + + + + + + + +
                - -
                + + - -
                -
                -
                - - componentWillReceiveProps(nextProps) -
                -
                -
                - -
                + +
                - onClickNode + pauseSimulation
                -
                - -
                -
                -
                - - onClickGraph -
                -
                -
                - -
                + +
                - _generateFocusAnimationProps + resetNodesPositions
                -
                - -
                - - - - - - -
                - -
                - -

                - Graph/helper -

                - - -
                - -

                Offers a series of methods that isolate logic of Graph component and also from Graph rendering methods.

                +
                Returns
                + undefined: -
                Graph/helper
                - - - - - - - - - - - - - - -
                Static Members
                -
                - -
                + + + + + + + +
                + +
                +
                + +
                - Node + restartSimulation
                -
                - - - -
                + +
                - _createForceSimulation(width, height, gravity) + componentWillReceiveProps(nextProps)
                - -
                -
                -
                - - _getNodeOpacity(node, highlightedNode, highlightedLink, config) -
                -
                - + -

                Get the correct node opacity in order to properly make decisions based on context such as currently highlighted node.

                -
                _getNodeOpacity(node: Object, highlightedNode: string, highlightedLink: Object, config: Object): number
                - - + - - - - - - - -
                Parameters
                -
                - -
                -
                - node (Object) - the node object for whom we will generate properties. -
                - -
                - -
                -
                - highlightedNode (string) - same as -highlightedNode in buildGraph -. -
                - -
                - -
                -
                - highlightedLink (Object) - same as -highlightedLink in buildGraph -. +
                -
                - -
                - -
                -
                - config (Object) - same as -config in buildGraph -. -
                - -
                - -
                - +
                - +

                + Graph/renderer +

                - - -
                Returns
                - number: - the opacity value for the given node. - - - +
                - - +

                Offers a series of methods that isolate render logic for Graph component.

                - - +
                Graph/renderer
                - - -
                -
                - - - -
                + + +
                Static Members
                +
                + + - - - -
                -
                -
                - - _validateGraphData(data) -
                -
                -
                - -
                + +
                - buildLinkProps(link, nodes, links, config, linkCallbacks, highlightedNode, highlightedLink, transform) + _renderNodes(nodes, nodeCallbacks, config, highlightedNode, highlightedLink, transform, linksMatrix)
                - -
                + +
                - buildNodeProps(node, config, nodeCallbacks, highlightedNode, highlightedLink, transform) + _renderDefs()
                - -
                + +
                - checkForGraphElementsChanges(nextProps, currentState) + _memoizedRenderDefs
                - -
                + +
                - checkForGraphConfigChanges(nextProps, currentState) + renderGraph(nodes, nodeCallbacks, links, linksMatrix, linkCallbacks, config, highlightedNode, highlightedLink, transform)
                -
                -
                - -
                -
                -
                - - initializeGraphState(props, state)
                -
                - -
                - -
                -
                -
                - - updateNodeHighlightedValue(nodes, links, config, id, value) -
                -
                - - -
                - -
                -
                - config (Object) - an object containing rd3g consumer defined configurations -config - for the graph. +
                +
                + +
                -
                - -
                - -
                -
                - id (string) - identifier of node to update. -
                - -
                - -
                -
                - value (string - = false) - new highlight value for given node. -
                - -
                - -
                - - - - -
                Returns
                - Object: - returns an object containing the updated nodes -and the id of the highlighted node. - - - + - - - - +
                - -
                -
                -
                - -
                +
                + +

                + Graph/builder +

                + + +
                + + +

                Offers a series of methods that isolate the way graph elements are built (nodes and links mainly).

                + + +
                Graph/builder
                + + + + + + + + + + + + + + + + + + + + + +
                Static Members
                +
                + +
                - getCenterAndZoomTransformation(d3Node, config) + _getNodeOpacity(node, highlightedNode, highlightedLink, config)
                - - -
                - -
                -
                -
                - - _memoizedBuildDefs -
                -
                - -
                - -
                - - - - - - - -
                - -
                - -

                - Graph/renderer -

                - - -
                - -

                Offers a series of methods that isolate render logic for Graph component.

                -
                Graph/renderer
                - - - - - - - - - - - - - -
                Static Members
                - -
                + +
                - buildGraph(nodes, nodeCallbacks, links, linksMatrix, linkCallbacks, config, highlightedNode, highlightedLink, transform) + Node
                - -
                - +
                - - - +
                +
                +
                + + checkForGraphConfigChanges(nextProps, currentState) +
                +
                +
                - -
                + +
                - handleOnRightClickNode + getCenterAndZoomTransformation(d3Node, config)
                - -
                + +
                - handleOnMouseOverNode + initializeGraphState(props, state)
                -
                - -
                -
                -
                - - handleOnMouseOutNode -
                -
                - +
                + +
                +
                +
                + + updateNodeHighlightedValue(nodes, links, config, id, value) +
                +
                + +
                + +
                + + + + + + + + + + + +
                + + +
                + +

                + Graph/collapse-helper +

                + + +
                + + +

                Offers a series of methods that allow graph to perform the necessary operations to +create the collapsible behavior.

                +

                Developer notes - collapsing nodes and maintaining state on links matrix.

                +

                User interaction flow (for a collapsible graph) +1. User clicks node +2. All leaf connections of that node are not rendered anymore +3. User clicks on same node +4. All leaf connections of that node are rendered

                +

                Internal react-d3-graph flow +1. User clicks node +2. Compute leaf connections for clicked node (rootNode, root as in 'root' of the event) +3. Update connections matrix (based on 2.) +4. Update d3Links array with toggled connections (based on 2.)

                + + +
                Graph/collapse-helper
                + + + + + + + + + + + + + + + + + + + + + +
                Static Members
                +
                + +
                +
                +
                + + _isLeafDirected(inDegree, outDegree) +
                +
                + +
                + +
                +
                +
                + + _isLeafNotDirected(inDegree, outDegree) +
                +
                + +
                + +
                +
                +
                + + _isLeaf(nodeId, linksMatrix, directed) +
                +
                + +
                + +
                +
                +
                + + computeNodeDegree(nodeId, linksMatrix) +
                +
                + +
                + +
                +
                +
                + + getTargetLeafConnections(rootNodeId, linksMatrix, config) +
                +
                + +
                + +
                +
                +
                + + isNodeVisible(nodeId, nodes, linksMatrix) +
                +
                + +
                + +
                +
                +
                + + toggleLinksConnections(d3Links, connectionMatrix) +
                +
                + +
                + +
                +
                +
                + + toggleLinksMatrixConnections(linksMatrix, connections, config) +
                +
                + +
                + +
                + + + + + + +
                + + + + +
                + + +
                + +

                + Node +

                + + +
                + + +

                Node component is responsible for encapsulating node render.

                + + +
                new Node()
                + + +

                + Extends + + React.Component + +

                + + + + + + + + + + + + + + + + + + +
                Example
                + + +
                const onClickNode = function(nodeId) {
                +     window.alert('Clicked node', nodeId);
                +};
                +
                +const onRightClickNode = function(nodeId) {
                +     window.alert('Right clicked node', nodeId);
                +}
                +
                +const onMouseOverNode = function(nodeId) {
                +     window.alert('Mouse over node', nodeId);
                +};
                +
                +const onMouseOutNode = function(nodeId) {
                +     window.alert('Mouse out node', nodeId);
                +};
                +
                +<Node
                +    id='nodeId'
                +    cx=22
                +    cy=22
                +    fill='green'
                +    fontSize=10
                +    fontColor='black'
                +    fontWeight='normal'
                +    dx=90
                +    label='label text'
                +    opacity=1
                +    renderLabel=true
                +    size=200
                +    stroke='none'
                +    strokeWidth=1.5
                +    svg='assets/my-svg.svg'
                +    type='square'
                +    viewGenerator=(node) => <CustomComponent node={node} />
                +    className='node'
                +    onClickNode={onClickNode}
                +    onRightClickNode={onRightClickNode}
                +    onMouseOverNode={onMouseOverNode}
                +    onMouseOutNode={onMouseOutNode} />
                + + + + + + +
                Instance Members
                +
                + +
                +
                +
                + + handleOnClickNode +
                +
                + +
                + +
                +
                +
                + + handleOnRightClickNode +
                +
                + +
                + +
                +
                +
                + + handleOnMouseOverNode +
                +
                + +
                + +
                +
                +
                + + handleOnMouseOutNode +
                +
                + +
                + +
                + + + + +
                + + + + +
                + + +
                + +

                + Node/helper +

                + + +
                + + +

                Some methods that help no the process of rendering a node.

                + + +
                Node/helper
                + + + + + + + + + + + + + + + + + + + + + +
                Static Members
                +
                + +
                +
                +
                + + _convertTypeToD3Symbol(typeName) +
                +
                + +
                + +
                +
                +
                + + buildSvgSymbol(size, symbolTypeDesc) +
                +
                + +
                + +
                + + + + + + +
                + + + + +
                + + +
                + + + + +
                + + +

                Link component is responsible for encapsulating link render.

                + + +
                new Link()
                + + +

                + Extends + + React.Component + +

                + + + + + + + + + + + + + + + + + + +
                Example
                + + +
                const onClickLink = function(source, target) {
                +     window.alert(`Clicked link between ${source} and ${target}`);
                +};
                +
                +const onRightClickLink = function(source, target) {
                +     window.alert(`Right clicked link between ${source} and ${target}`);
                +};
                +
                +const onMouseOverLink = function(source, target) {
                +     window.alert(`Mouse over in link between ${source} and ${target}`);
                +};
                +
                +const onMouseOutLink = function(source, target) {
                +     window.alert(`Mouse out link between ${source} and ${target}`);
                +};
                +
                +<Link
                +    d="M1..."
                +    source="idSourceNode"
                +    target="idTargetNode"
                +    markerId="marker-small"
                +    strokeWidth=1.5
                +    stroke="green"
                +    className="link"
                +    opacity=1
                +    mouseCursor="pointer"
                +    onClickLink={onClickLink}
                +    onRightClickLink={onRightClickLink}
                +    onMouseOverLink={onMouseOverLink}
                +    onMouseOutLink={onMouseOutLink} />
                + + + + + + +
                Instance Members
                +
                + + + + + + + + + +
                + + + + +
                + + + + +
                + + +
                + +

                + Link/helper +

                + + +
                + + +

                A set of helper methods to manipulate/create links.

                + + +
                Link/helper
                + + + + + + + + + + + + + + + + + + + + + +
                Static Members
                +
                + +
                +
                +
                + + straightLineRadius() +
                +
                + +
                + +
                +
                +
                + + smoothCurveRadius(x1, y1, x2, y2) +
                +
                + +
                + +
                +
                +
                + + fullCurveRadius() +
                +
                + +
                + +
                +
                +
                + + getRadiusStrategy(type) +
                +
                + +
                + +
                +
                +
                + + buildLinkPathDefinition(link, type) +
                +
                + +
                + +
                + + + + + + +
                + + + + +
                + + +
                + +

                + Link/const +

                + + +
                + + +

                A set of constants that facilitate readability regarding links.

                + + +
                Link/const
                + + + + + + + + + + + + + + + + + + + + + +
                Static Members
                +
                + +
                +
                +
                + + LINE_TYPES +
                +
                + +
                + +
                + + + + + + +
                + + + + +
                + + +
                + +

                + Marker +

                + + +
                + + +

                Market component provides configurable interface to marker definition.

                + + +
                new Marker()
                + + +

                + Extends + + React.Component + +

                + + + + + + + + + + + + + + + + + + +
                Example
                + + +
                <Marker id="marker-id" fill="black" />
                + + + + + + + + +
                + + + + +
                + + +
                + +

                + Marker/helper +

                + + +
                + + +

                Offers a series of methods to compute proper markers within a given context.

                + + +
                Marker/helper
                + + - - - - -
                -
                - - - - - - - - - -
                - -
                - -

                - Node/helper -

                - - -
                - -

                Some methods that help no the process of rendering a node.

                -
                Node/helper
                - - - - - - - - - - - - - -
                Static Members
                - -
                + +
                - _convertTypeToD3Symbol(typeName) + _markerKeyBuilder(size, highlighted)
                -
                - -
                -
                -
                - - buildSvgSymbol(size, symbolTypeDesc) -
                -
                - - +
                - -
                - - - - - - - - - - - -
                +
                Returns
                + string: + the key of the marker. - -
                - - - - -
                - -

                Link component is responsible for encapsulating link render.

                -
                new Link()
                - - -

                - Extends - - React.Component - -

                - - - - - - - - - - - - -
                Example
                - - -
                const onClickLink = function(source, target) {
                -     window.alert(`Clicked link between ${source} and ${target}`);
                -};
                 
                -const onRightClickLink = function(source, target) {
                -     window.alert(`Right clicked link between ${source} and ${target}`);
                -};
                 
                -const onMouseOverLink = function(source, target) {
                -     window.alert(`Mouse over in link between ${source} and ${target}`);
                -};
                 
                -const onMouseOutLink = function(source, target) {
                -     window.alert(`Mouse out link between ${source} and ${target}`);
                -};
                 
                -<Link
                -    d="M1..."
                -    source='idSourceNode'
                -    target='idTargetNode'
                -    markerId='marker-small'
                -    strokeWidth=1.5
                -    stroke='green'
                -    className='link'
                -    opacity=1
                -    mouseCursor='pointer'
                -    onClickLink={onClickLink}
                -    onRightClickLink={onRightClickLink}
                -    onMouseOverLink={onMouseOverLink}
                -    onMouseOutLink={onMouseOutLink} />
                - - +
                - + + - -
                Instance Members
                -
                - - - - - - - - - -
                - -
                - -

                - utils -

                - - -
                - -

                Offers a series of generic methods for object manipulation, and other operations -that are common across rd3g such as error logging.

                -
                utils
                - - - - - - - - - - - - +
                - +
                + - -
                Static Members
                -
                - -
                +
                - _isPropertyNestedObject(o, k) + isEmptyObject(o)
                - -
                + +
                - isDeepEqual(o1, o2, _depth) + deepClone(o, _clone, _depth)
                - +
                - - - - - -
                -
                - -
                -
                -
                - - isEmptyObject(o) -
                -
                -
                - +
                @@ -8235,27 +8591,27 @@

                - +
                @@ -8326,36 +8682,36 @@

                - +
                @@ -8405,35 +8761,35 @@

                - +
                @@ -8483,84 +8839,84 @@

                - +
                - - - + + + - - + +
                diff --git a/package-lock.json b/package-lock.json index 08cdc1eee..a6ac0856a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "react-d3-graph", - "version": "2.0.0-rc2", + "version": "2.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 735e2a669..97cd7cb7e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-d3-graph", - "version": "2.0.0-rc2", + "version": "2.0.0", "description": "React component to build interactive and configurable graphs with d3 effortlessly", "author": "Daniel Caldas", "license": "MIT", diff --git a/sandbox/rd3g.sandbox.bundle.js b/sandbox/rd3g.sandbox.bundle.js index a08a408c7..505a230f8 100644 --- a/sandbox/rd3g.sandbox.bundle.js +++ b/sandbox/rd3g.sandbox.bundle.js @@ -1,25 +1 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=443)}([function(e,t,n){"use strict";n.r(t);var r="http://www.w3.org/1999/xhtml",a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},o=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),a.hasOwnProperty(t)?{space:a[t],local:e}:e};var i=function(e){var t=o(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===r&&t.documentElement.namespaceURI===r?t.createElement(e):t.createElementNS(n,e)}})(t)};function u(){}var s=function(e){return null==e?u:function(){return this.querySelector(e)}};function l(){return[]}var c=function(e){return null==e?l:function(){return this.querySelectorAll(e)}},f=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var d=document.documentElement;if(!d.matches){var h=d.webkitMatchesSelector||d.msMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector;f=function(e){return function(){return h.call(this,e)}}}}var p=f,m=function(e){return new Array(e.length)};function v(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}v.prototype={constructor:v,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var y="$";function g(e,t,n,r,a,o){for(var i,u=0,s=t.length,l=o.length;ut?1:e>=t?0:NaN}var E=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function x(e,t){return e.style.getPropertyValue(t)||E(e).getComputedStyle(e,null).getPropertyValue(t)}function w(e){return e.trim().split(/^|\s+/)}function k(e){return e.classList||new P(e)}function P(e){this._node=e,this._names=w(e.getAttribute("class")||"")}function S(e,t){for(var n=k(e),r=-1,a=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function C(){this.textContent=""}function M(){this.innerHTML=""}function N(){this.nextSibling&&this.parentNode.appendChild(this)}function T(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function A(){return null}function R(){var e=this.parentNode;e&&e.removeChild(this)}function j(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function D(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var F={},I=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(F={mouseenter:"mouseover",mouseleave:"mouseout"}));function U(e,t,n){return e=L(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function L(e,t,n){return function(r){var a=I;I=r;try{e.call(this,this.__data__,t,n)}finally{I=a}}}function z(e){return function(){var t=this.__on;if(t){for(var n,r=0,a=-1,o=t.length;r=x&&(x=E+1);!(b=v[x])&&++x=0;)(r=a[o])&&(i&&i!==r.nextSibling&&i.parentNode.insertBefore(r,i),i=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=b);for(var n=this._groups,r=n.length,a=new Array(r),o=0;o1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):x(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=w(e+"");if(arguments.length<2){for(var r=k(this.node()),a=-1,o=n.length;++a=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}(e+""),i=o.length;if(!(arguments.length<2)){for(u=t?V:z,null==n&&(n=!1),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};var a=b(t);if("function"==typeof n)return function(e){if(!e.MergedWidget){var t=e.defaultProps&&e.defaultProps.options||{};e.MergedWidget=function(n){var r=n.options,a=void 0===r?{}:r,o=(0,p.default)(n,["options"]);return m.default.createElement(e,(0,h.default)({options:(0,h.default)({},t,a)},o))}}return e.MergedWidget}(n);if("string"!=typeof n)throw new Error("Unsupported widget definition: "+(void 0===n?"undefined":(0,d.default)(n)));if(r.hasOwnProperty(n)){var o=r[n];return e(t,o,r)}if(!_.hasOwnProperty(a))throw new Error('No widget for type "'+a+'"');if(_[a].hasOwnProperty(n)){var i=r[_[a][n]];return e(t,i,r)}throw new Error('No widget "'+n+'" for type "'+a+'"')},t.getDefaultFormState=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!E(e))throw new Error("Invalid schema: "+e);var r=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var a=n;if(E(a)&&E(t.default))a=x(a,t.default);else if("default"in t)a=t.default;else{if("$ref"in t){var o=C(t.$ref,r);return e(o,a,r)}O(t)&&(a=t.items.map(function(t){return e(t,void 0,r)}))}void 0===a&&(a=t.default);switch(t.type){case"object":return(0,f.default)(t.properties||{}).reduce(function(n,o){return n[o]=e(t.properties[o],(a||{})[o],r),n},{});case"array":if(t.minItems){if(S(t,r))return[];var i=a?a.length:0;if(t.minItems>i){var u=a||[],s=(0,y.default)(new Array(t.minItems-i),e(t.items,t.items.defaults,r));return u.concat(s)}}}return a}(M(e,n,t),e.default,n);if(void 0===t)return r;if(E(t))return x(r,t);return t||r},t.getUiOptions=function(e){return(0,f.default)(e).filter(function(e){return 0===e.indexOf("ui:")}).reduce(function(t,n){var r=e[n];return"ui:widget"===n&&E(r)?(console.warn("Setting options via ui:widget object is deprecated, use ui:options instead"),(0,h.default)({},t,r.options||{},{widget:r.component})):"ui:options"===n&&E(r)?(0,h.default)({},t,r):(0,h.default)({},t,(0,c.default)({},n.substring(3),r))},{})},t.isObject=E,t.mergeObjects=x,t.asNumber=function(e){if(""===e)return;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;var t=Number(e),n="number"==typeof t&&!(0,s.default)(t);if(/\.\d*0$/.test(e))return e;return n?t:e},t.orderProperties=function(e,t){if(!Array.isArray(t))return e;var n=function(e){return e.reduce(function(e,t){return e[t]=!0,e},{})},r=function(e){return e.length>1?"properties '"+e.join("', '")+"'":"property '"+e[0]+"'"},a=n(e),o=n(t),i=t.filter(function(e){return"*"!==e&&!a[e]});if(i.length)throw new Error("uiSchema order list contains extraneous "+r(i));var s=e.filter(function(e){return!o[e]}),l=t.indexOf("*");if(-1===l){if(s.length)throw new Error("uiSchema order list does not contain "+r(s));return t}if(l!==t.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");var c=[].concat((0,u.default)(t));return c.splice.apply(c,[l,1].concat((0,u.default)(s))),c},t.isConstant=w,t.toConstant=k,t.isSelect=P,t.isMultiSelect=S,t.isFilesArray=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("files"===t["ui:widget"])return!0;if(e.items){var r=M(e.items,n);return"string"===r.type&&"data-url"===r.format}return!1},t.isFixedItems=O,t.allowAdditionalItems=function(e){!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported");return E(e.additionalItems)},t.optionsList=function(e){if(e.enum)return e.enum.map(function(t,n){var r=e.enumNames&&e.enumNames[n]||String(t);return{label:r,value:t}});var t=e.oneOf||e.anyOf;return t.map(function(e,t){var n=k(e),r=e.title||String(n);return{label:r,value:n}})},t.retrieveSchema=M,t.deepEquals=j,t.shouldRender=function(e,t,n){var r=e.props,a=e.state;return!j(r,t)||!j(a,n)},t.toIdSchema=function e(t,n,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"root";var i={$id:n||o};if("$ref"in t){var u=M(t,r,a);return e(u,n,r,a,o)}if("items"in t&&!t.items.$ref)return e(t.items,n,r,a,o);if("object"!==t.type)return i;for(var s in t.properties||{}){var l=t.properties[s],c=i.$id+"_"+s;i[s]=e(l,c,r,a[s],o)}return i},t.parseDateString=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!e)return{year:-1,month:-1,day:-1,hour:t?-1:0,minute:t?-1:0,second:t?-1:0};var n=new Date(e);if((0,s.default)(n.getTime()))throw new Error("Unable to parse date "+e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:t?n.getUTCHours():0,minute:t?n.getUTCMinutes():0,second:t?n.getUTCSeconds():0}},t.toDateString=function(e){var t=e.year,n=e.month,r=e.day,a=e.hour,o=void 0===a?0:a,i=e.minute,u=void 0===i?0:i,s=e.second,l=void 0===s?0:s,c=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],f=Date.UTC(t,n-1,r,o,u,l),d=new Date(f).toJSON();return c?d:d.slice(0,10)},t.pad=function(e,t){var n=String(e);for(;n.length2&&void 0!==arguments[2]&&arguments[2],r=(0,l.default)({},e);return(0,f.default)(t).reduce(function(r,a){var o=e[a],i=t[a];return e.hasOwnProperty(a)&&E(i)?r[a]=x(o,i,n):n&&Array.isArray(o)&&Array.isArray(i)?r[a]=o.concat(i):r[a]=i,r},r)}function w(e){return Array.isArray(e.enum)&&1===e.enum.length||e.hasOwnProperty("const")}function k(e){if(Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(e.hasOwnProperty("const"))return e.const;throw new Error("schema cannot be inferred as a constant")}function P(e){var t=M(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=t.oneOf||t.anyOf;return!!Array.isArray(t.enum)||!!Array.isArray(n)&&n.every(function(e){return w(e)})}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!(!e.uniqueItems||!e.items)&&P(e.items,t)}function O(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every(function(e){return E(e)})}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=/^#\/definitions\/(.*)$/.exec(e);if(n&&n[1]){var r=n[1].split("/"),a=t,o=!0,u=!1,s=void 0;try{for(var l,c=(0,i.default)(r);!(o=(l=c.next()).done);o=!0){var f=l.value;if(f=f.replace(/~1/g,"/").replace(/~0/g,"~"),!a.hasOwnProperty(f))throw new Error("Could not find a definition for "+e+".");a=a[f]}}catch(e){u=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(u)throw s}}return a}throw new Error("Could not find a definition for "+e+".")}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.hasOwnProperty("$ref")){var r=C(e.$ref,t),a=(e.$ref,(0,p.default)(e,["$ref"]));return M((0,h.default)({},r,a),t,n)}return e.hasOwnProperty("dependencies")?M(function(e,t,n){var r=e.dependencies,a=void 0===r?{}:r,o=(0,p.default)(e,["dependencies"]);for(var i in a)if(void 0!==n[i]){var u=a[i];Array.isArray(u)?o=N(o,u):E(u)&&(o=T(o,t,n,i,u))}return o}(e,t,n),t,n):e}function N(e,t){if(!t)return e;var n=Array.isArray(e.required)?(0,o.default)(new a.default([].concat((0,u.default)(e.required),(0,u.default)(t)))):t;return(0,h.default)({},e,{required:n})}function T(e,t,n,r,a){var o=M(a,t,n),i=o.oneOf;return e=A(e,(0,p.default)(o,["oneOf"])),void 0===i?e:function(e,t,n,r,a){if(!Array.isArray(a))throw new Error("invalid oneOf: it is some "+(void 0===a?"undefined":(0,d.default)(a))+" instead of an array");var o=a.filter(function(e){if(!e.properties)return!1;var t=e.properties[r];if(t){var a={type:"object",properties:(0,c.default)({},r,t)},o=(0,v.default)(n,a),i=o.errors;return 0===i.length}});if(1!==o.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),e;var i=o[0],u=i.properties,s=(u[r],(0,p.default)(u,[r])),l=(0,h.default)({},i,{properties:s});return A(e,M(l,t,n))}(e,t,n,r,i)}function A(e,t){return x(e,t,!0)}function R(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function j(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t)return!0;if("function"==typeof e||"function"==typeof t)return!0;if("object"!==(void 0===e?"undefined":(0,d.default)(e))||"object"!==(void 0===t?"undefined":(0,d.default)(t)))return!1;if(null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(R(e)||R(t)){if(!R(e)||!R(t))return!1;var a=Array.prototype.slice;return j(a.call(e),a.call(t),n,r)}if(e.constructor!==t.constructor)return!1;var o=(0,f.default)(e),i=(0,f.default)(t);if(0===o.length&&0===i.length)return!0;if(o.length!==i.length)return!1;for(var u=n.length;u--;)if(n[u]===e)return r[u]===t;n.push(e),r.push(t),o.sort(),i.sort();for(var s=o.length-1;s>=0;s--)if(o[s]!==i[s])return!1;for(var l=void 0,c=o.length-1;c>=0;c--)if(!j(e[l=o[c]],t[l],n,r))return!1;return n.pop(),r.pop(),!0}},function(e,t,n){var r=n(96)("wks"),a=n(61),o=n(6).Symbol,i="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=i&&o[e]||(i?o:a)("Symbol."+e))}).store=r},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(411)),a=i(n(407)),o=i(n(59));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,o.default)(t)));e.prototype=(0,a.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(59));t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,r.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(164));t.default=function(){function e(e,t){for(var n=0;n=0&&t._call.call(null,e),t=t._next;--o}function _(){c=(l=d.now())+f,o=i=0;try{g()}finally{o=0,function(){var e,t,n=r,o=1/0;for(;n;)n._call?(o>n._time&&(o=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:r=t);a=e,E(o)}(),c=0}}function b(){var e=d.now(),t=e-l;t>s&&(f-=t,l=e)}function E(e){o||(i&&(i=clearTimeout(i)),e-c>24?(e<1/0&&(i=setTimeout(_,e-d.now()-f)),u&&(u=clearInterval(u))):(u||(l=d.now(),u=setInterval(b,s)),o=1,h(_)))}v.prototype=y.prototype={constructor:v,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?p():+n)+(null==t?0:+t),this._next||a===this||(a?a._next=this:r=this,a=this),this._call=e,this._time=n,E()},stop:function(){this._call&&(this._call=null,this._time=1/0,E())}};var x=function(e,t,n){var r=new v;return t=null==t?0:+t,r.restart(function(n){r.stop(),e(n+t)},t,n),r},w=function(e,t,n){var r=new v,a=t;return null==t?(r.restart(e,t,n),r):(t=+t,n=null==n?p():+n,r.restart(function o(i){i+=a,r.restart(o,a+=t,n),e(i)},t,n),r)};n.d(t,"a",function(){return p}),n.d(t,"c",function(){return y}),n.d(t,!1,function(){return g}),n.d(t,"b",function(){return x}),n.d(t,!1,function(){return w})},function(e,t,n){var r=n(15),a=n(42);e.exports=n(16)?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var r={value:function(){}};function a(){for(var e,t=0,n=arguments.length,r={};t=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}})}(e+"",r),o=-1,s=a.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++o0)for(var n,r,a=new Array(n),o=0;o=t)throw new Error("Cannot access property/index "+r+" levels up, current level is "+t);return n[t-r]}if(r>t)throw new Error("Cannot access data "+r+" levels up, current level is "+t);if(o="data"+(t-r||""),!a)return o}for(var u=o,l=a.split("/"),c=0;c=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(150));t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t_;_++)if((v=t?g(i(p=e[_])[0],p[1]):g(e[_]))===l||v===c)return v}else for(m=y.call(e);!(p=m.next()).done;)if((v=a(m,g,p.value,t))===l||v===c)return v}).BREAK=l,t.RETURN=c},function(e,t,n){var r=n(15).f,a=n(25),o=n(8)("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(421)(!0);n(90)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=!0},function(e,t,n){var r=n(98),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(170),a=n(95);e.exports=Object.keys||function(e){return r(e,a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={KEY:"key",VALUE:"value"}},function(e,t,n){var r=n(217);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(23)(Object,"create");e.exports=r},function(e,t,n){var r=n(54);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(235),a=n(234),o=n(233),i=n(232),u=n(231);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++tdocument.F=Object<\/script>"),e.close(),s=e.F;r--;)delete s.prototype[o[r]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(u.prototype=r(e),n=new u,u.prototype=null,n[i]=e):n=s(),void 0===t?n:a(n,t)}},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(163)),a=i(n(417)),o="function"==typeof a.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e};function i(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof a.default&&"symbol"===o(r.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":void 0===e?"undefined":o(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){"use strict";n.r(t);var r=n(22),a=n(0);function o(){a.event.stopImmediatePropagation()}var i=function(){a.event.preventDefault(),a.event.stopImmediatePropagation()},u=function(e){var t=e.document.documentElement,n=Object(a.select)(e).on("dragstart.drag",i,!0);"onselectstart"in t?n.on("selectstart.drag",i,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")};function s(e,t){var n=e.document.documentElement,r=Object(a.select)(e).on("dragstart.drag",null);t&&(r.on("click.drag",i,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var l=function(e){return function(){return e}};function c(e,t,n,r,a,o,i,u,s,l){this.target=e,this.type=t,this.subject=n,this.identifier=r,this.active=a,this.x=o,this.y=i,this.dx=u,this.dy=s,this._=l}function f(){return!a.event.button}function d(){return this.parentNode}function h(e){return null==e?{x:a.event.x,y:a.event.y}:e}function p(){return"ontouchstart"in this}c.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var m=function(){var e,t,n,m,v=f,y=d,g=h,_=p,b={},E=Object(r.a)("start","drag","end"),x=0,w=0;function k(e){e.on("mousedown.drag",P).filter(_).on("touchstart.drag",C).on("touchmove.drag",M).on("touchend.drag touchcancel.drag",N).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function P(){if(!m&&v.apply(this,arguments)){var r=T("mouse",y.apply(this,arguments),a.mouse,this,arguments);r&&(Object(a.select)(a.event.view).on("mousemove.drag",S,!0).on("mouseup.drag",O,!0),u(a.event.view),o(),n=!1,e=a.event.clientX,t=a.event.clientY,r("start"))}}function S(){if(i(),!n){var r=a.event.clientX-e,o=a.event.clientY-t;n=r*r+o*o>w}b.mouse("drag")}function O(){Object(a.select)(a.event.view).on("mousemove.drag mouseup.drag",null),s(a.event.view,n),i(),b.mouse("end")}function C(){if(v.apply(this,arguments)){var e,t,n=a.event.changedTouches,r=y.apply(this,arguments),i=n.length;for(e=0;e1&&void 0!==arguments[1]?arguments[1]:[]).reduce(function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t},{})}t.default={isDeepEqual:function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,u=[];if(0===r&&t===n)return!0;if(i(t)&&!i(n)||!i(t)&&i(n))return!1;var s=Object.keys(t),l=Object.keys(n);if(s.length!==l.length)return!1;var c=!0,f=!1,d=void 0;try{for(var h,p=s[Symbol.iterator]();!(c=(h=p.next()).done);c=!0){var m=h.value;if(o(t,m)&&o(n,m)&&r0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,u={};if(0===Object.keys(t||{}).length)return n&&!i(n)?n:{};var s=!0,l=!1,c=void 0;try{for(var f,d=Object.keys(t)[Symbol.iterator]();!(s=(f=d.next()).done);s=!0){var h=f.value;n[h]&&"object"===r(n[h])&&"object"===r(t[h])&&o1&&void 0!==arguments[1]?arguments[1]:[];return u(e,Object.keys(e).filter(function(e){return!t.includes(e)}))},throwErr:function(e,t){throw Error("react-d3-graph :: "+e+" :: "+t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;tn;)t.push(arguments[n++]);return y[++v]=function(){u("function"==typeof e?e:Function(e),t)},r(v),v},h=function(e){delete y[e]},"process"==n(46)(f)?r=function(e){f.nextTick(i(g,e,1))}:m&&m.now?r=function(e){m.now(i(g,e,1))}:p?(o=(a=new p).port2,a.port1.onmessage=_,r=i(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",_,!1)):r="onreadystatechange"in l("script")?function(e){s.appendChild(l("script")).onreadystatechange=function(){s.removeChild(this),g.call(e)}}:function(e){setTimeout(i(g,e,1),0)}),e.exports={set:d,clear:h}},function(e,t){},function(e,t,n){var r=n(6),a=n(3),o=n(44),i=n(88),u=n(15).f;e.exports=function(e){var t=a.Symbol||(a.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||u(t,e,{value:i.f(e)})}},function(e,t,n){var r=n(61)("meta"),a=n(14),o=n(25),i=n(15).f,u=0,s=Object.isExtensible||function(){return!0},l=!n(24)(function(){return s(Object.preventExtensions({}))}),c=function(e){i(e,r,{value:{i:"O"+ ++u,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[r].w},onFreeze:function(e){return l&&f.NEED&&s(e)&&!o(e,r)&&c(e),e}}},function(e,t,n){t.f=n(8)},function(e,t){e.exports=function(){}},function(e,t,n){"use strict";var r=n(44),a=n(5),o=n(162),i=n(21),u=n(40),s=n(420),l=n(39),c=n(165),f=n(8)("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,p,m,v,y){s(n,t,p);var g,_,b,E=function(e){if(!d&&e in P)return P[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",w="values"==m,k=!1,P=e.prototype,S=P[f]||P["@@iterator"]||m&&P[m],O=S||E(m),C=m?w?E("entries"):O:void 0,M="Array"==t&&P.entries||S;if(M&&(b=c(M.call(new e)))!==Object.prototype&&b.next&&(l(b,x,!0),r||"function"==typeof b[f]||i(b,f,h)),w&&S&&"values"!==S.name&&(k=!0,O=function(){return S.call(this)}),r&&!y||!d&&!k&&P[f]||i(P,f,O),u[t]=O,u[x]=h,m)if(g={values:w?O:E("values"),keys:v?O:E("keys"),entries:C},y)for(_ in g)_ in P||o(P,_,g[_]);else a(a.P+a.F*(d||k),t,g);return g}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(14);e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(14),a=n(6).document,o=r(a)&&r(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},function(e,t,n){var r=n(5),a=n(3),o=n(24);e.exports=function(e,t){var n=(a.Object||{})[e]||Object[e],i={};i[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",i)}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(3),a=n(6),o=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(44)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(96)("keys"),a=n(61);e.exports=function(e){return r[e]||(r[e]=a(e))}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(46);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,a,o,i,u,s){if(r(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,a,o,i,u,s],f=0;(l=new Error(t.replace(/%s/g,function(){return c[f++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict"; -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,i,u=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s=(o=(m+y)/2))?m=o:y=o,(c=n>=(i=(v+g)/2))?v=i:g=i,a=h,!(h=h[f=c<<1|l]))return a[f]=p,e;if(u=+e._x.call(null,h.data),s=+e._y.call(null,h.data),t===u&&n===s)return p.next=h,a?a[f]=p:e._root=p,e;do{a=a?a[f]=new Array(4):e._root=new Array(4),(l=t>=(o=(m+y)/2))?m=o:y=o,(c=n>=(i=(v+g)/2))?v=i:g=i}while((f=c<<1|l)==(d=(s>=i)<<1|u>=o));return a[d]=h,a[f]=p,e}var u=function(e,t,n,r,a){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=a};function s(e){return e[0]}function l(e){return e[1]}function c(e,t,n){var r=new f(null==t?s:t,null==n?l:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function f(e,t,n,r,a,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=a,this._y1=o,this._root=void 0}function d(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var h=c.prototype=f.prototype;function p(e){return e.x+e.vx}function m(e){return e.y+e.vy}h.copy=function(){var e,t,n=new f(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=d(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var a=0;a<4;++a)(t=r.source[a])&&(t.length?e.push({source:t,target:r.target[a]=new Array(4)}):r.target[a]=d(t));return n},h.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return i(this.cover(t,n),t,n,e)},h.addAll=function(e){var t,n,r,a,o=e.length,u=new Array(o),s=new Array(o),l=1/0,c=1/0,f=-1/0,d=-1/0;for(n=0;nf&&(f=r),ad&&(d=a));for(fe||e>a||r>t||t>o))return this;var i,u,s=a-n,l=this._root;switch(u=(t<(r+o)/2)<<1|e<(n+a)/2){case 0:do{(i=new Array(4))[u]=l,l=i}while(o=r+(s*=2),e>(a=n+s)||t>o);break;case 1:do{(i=new Array(4))[u]=l,l=i}while(o=r+(s*=2),(n=a-s)>e||t>o);break;case 2:do{(i=new Array(4))[u]=l,l=i}while(r=o-(s*=2),e>(a=n+s)||r>t);break;case 3:do{(i=new Array(4))[u]=l,l=i}while(r=o-(s*=2),(n=a-s)>e||r>t)}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=a,this._y1=o,this},h.data=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e},h.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},h.find=function(e,t,n){var r,a,o,i,s,l,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,m=[],v=this._root;for(v&&m.push(new u(v,f,d,h,p)),null==n?n=1/0:(f=e-n,d=t-n,h=e+n,p=t+n,n*=n);l=m.pop();)if(!(!(v=l.node)||(a=l.x0)>h||(o=l.y0)>p||(i=l.x1)=g)<<1|e>=y)&&(l=m[m.length-1],m[m.length-1]=m[m.length-1-c],m[m.length-1-c]=l)}else{var _=e-+this._x.call(null,v.data),b=t-+this._y.call(null,v.data),E=_*_+b*b;if(E=(u=(p+v)/2))?p=u:v=u,(c=i>=(s=(m+y)/2))?m=s:y=s,t=h,!(h=h[f=c<<1|l]))return this;if(!h.length)break;(t[f+1&3]||t[f+2&3]||t[f+3&3])&&(n=t,d=f)}for(;h.data!==e;)if(r=h,!(h=h.next))return this;return(a=h.next)&&delete h.next,r?(a?r.next=a:delete r.next,this):t?(a?t[f]=a:delete t[f],(h=t[0]||t[1]||t[2]||t[3])&&h===(t[3]||t[2]||t[1]||t[0])&&!h.length&&(n?n[d]=h:this._root=h),this):(this._root=a,this)},h.removeAll=function(e){for(var t=0,n=e.length;tl+p||af+p||iu.index){var m=l-s.x-s.vx,v=f-s.y-s.vy,y=m*m+v*v;ye.r&&(e.r=e[t].r)}function l(){if(t){var r,a,o=t.length;for(n=new Array(o),r=0;r1?(null==n?u.remove(e):u.set(e,h(n)),t):u.get(e)},find:function(t,n,r){var a,o,i,u,s,l=0,c=e.length;for(null==r?r=1/0:r*=r,l=0;l1?(l.on(e,n),t):l.on(e)}}},R=function(){var e,t,n,r,i=a(-30),u=1,s=1/0,l=.81;function f(r){var a,o=e.length,i=c(e,C,M).visitAfter(h);for(n=r,a=0;a=s)){(e.data!==t||e.next)&&(0===f&&(p+=(f=o())*f),0===d&&(p+=(d=o())*d),pd))return!1;var p=c.get(e);if(p&&c.get(t))return p==t;var m=-1,v=!0,y=n&u?new r:void 0;for(c.set(e,t),c.set(t,e);++m-1&&e%1==0&&e-1&&e%1==0&&e<=n}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(79))},function(e,t,n){var r=n(35),a=n(55),o="[object AsyncFunction]",i="[object Function]",u="[object GeneratorFunction]",s="[object Proxy]";e.exports=function(e){if(!a(e))return!1;var t=r(e);return t==i||t==u||t==o||t==s}},function(e,t,n){var r=n(23),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=a},function(e,t,n){var r=n(118);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(119),a=n(54),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var i=e[t];o.call(e,t)&&a(i,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{contextTypes:{hotKeyMap:r.default.object},childContextTypes:{hotKeyMap:r.default.object},getChildContext:function(){return{hotKeyMap:this.__hotKeyMap__}},componentWillMount:function(){this.updateMap()},updateMap:function(){var e=this.buildMap();return!(0,o.default)(e,this.__hotKeyMap__)&&(this.__hotKeyMap__=e,!0)},buildMap:function(){var t=this.context.hotKeyMap||{},n=this.props.keyMap||{};return(0,a.default)({},t,e,n)},getMap:function(){return this.__hotKeyMap__}}};var r=i(n(2)),a=(i(n(1)),i(n(266))),o=i(n(109));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["component","children"]);return i.default.createElement(t,r({tabIndex:"-1"},a),n)}}]),t}();s.propTypes={onFocus:o.default.func,onBlur:o.default.func,component:o.default.any,children:o.default.node},s.defaultProps={component:"div"},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},a=arguments[3],i=arguments[4],u=arguments[5],s=e.highlighted||e.id===(i&&i.source)||e.id===(i&&i.target),l=function(e,t,n,r){var a=e.highlighted||e.id===(n&&n.source)||e.id===(n&&n.target),o=!!(t||n&&n.source&&n.target);return o&&0===r.highlightDegree?a?r.node.opacity:r.highlightOpacity:o?a?r.node.opacity:r.highlightOpacity:r.node.opacity}(e,a,i,t),c=e.color||t.node.color;s&&t.node.highlightColor!==o.default.KEYWORDS.SAME&&(c=t.node.highlightColor);var f=e.strokeColor||t.node.strokeColor;s&&t.node.highlightStrokeColor!==o.default.KEYWORDS.SAME&&(f=t.node.highlightStrokeColor);var d=e[t.node.labelProperty]||e.id;"function"==typeof t.node.labelProperty&&(d=t.node.labelProperty(e));var h=1/u,p=e.size||t.node.size,m=s?t.node.highlightFontSize:t.node.fontSize,v=m*h+p/100+1.5,y=s?t.node.highlightStrokeWidth:t.node.strokeWidth,g=e.svg||t.node.svg,_=e.fontColor||t.node.fontColor;return r({},e,{className:o.default.NODE_CLASS_NAME,cursor:t.node.mouseCursor,cx:e&&e.x||"0",cy:e&&e.y||"0",fill:c,fontColor:_,fontSize:m*h,dx:v,fontWeight:s?t.node.highlightFontWeight:t.node.fontWeight,id:e.id,label:d,onClickNode:n.onClickNode,onRightClickNode:n.onRightClickNode,onMouseOverNode:n.onMouseOverNode,onMouseOut:n.onMouseOut,opacity:l,renderLabel:t.node.renderLabel,size:p*h,stroke:f,strokeWidth:y*h,svg:g,type:e.symbolType||t.node.symbolType,viewGenerator:e.viewGenerator||t.node.viewGenerator,overrideGlobalViewGenerator:!e.viewGenerator&&e.svg})},t.checkForGraphConfigChanges=function(e,t){var n=e.config||{};return{configUpdated:n&&!s.default.isEmptyObject(n)&&!s.default.isDeepEqual(n,t.config),d3ConfigUpdated:n&&n.d3&&!s.default.isDeepEqual(n.d3,t.config.d3)}},t.checkForGraphElementsChanges=function(e,t){var n=e.data.nodes.map(function(e){return s.default.antiPick(e,p)}),r=e.data.links,a=t.d3Nodes.map(function(e){return s.default.antiPick(e,p)}),o=t.d3Links.map(function(e){return{source:e.source.id||e.source,target:e.target.id||e.target}});return{graphElementsUpdated:!(s.default.isDeepEqual(n,a)&&s.default.isDeepEqual(r,o)),newGraphElements:n.length!==a.length||r.length!==o.length||!s.default.isDeepEqual(n.map(function(e){return{id:e.id}}),a.map(function(e){return{id:e.id}}))||!s.default.isDeepEqual(r,o.map(function(e){return{source:e.source,target:e.target}}))}},t.initializeGraphState=function(e,t){var n=e.data,l=e.id,c=e.config;!function(e){e.nodes&&e.nodes.length||s.default.throwErr("Graph",u.default.INSUFFICIENT_DATA);for(var t=e.links.length,n=function(t){var n=e.links[t];e.nodes.find(function(e){return e.id===n.source})||s.default.throwErr("Graph",u.default.INVALID_LINKS+' - "'+n.source+'" is not a valid source node id'),e.nodes.find(function(e){return e.id===n.target})||s.default.throwErr("Graph",u.default.INVALID_LINKS+' - "'+n.target+'" is not a valid target node id')},r=0;r2&&void 0!==arguments[2]?arguments[2]:[],a=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=n[t];return i?o.config&&o.config.directed&&a.directed!==o.config.directed?r({},i,{isHidden:!1}):a.collapsible?i:r({},i,{isHidden:!1}):{index:t,source:{id:e.source,highlighted:!1},target:{id:e.target,highlighted:!1}}}(e,n,t&&t.d3Links,c,t)})}:{nodes:n.nodes.map(function(e){return Object.assign({},e)}),links:n.links.map(function(e){return Object.assign({},e)})};var d=Object.assign({},s.default.merge(i.default,c||{})),p=function(e){for(var t={},n=e.length,r=0;rx?d.focusZoom=x:w4&&void 0!==arguments[4]&&arguments[4],o=a?r:"",i=Object.assign({},e[r],{highlighted:a}),u=Object.assign({},e,d({},r,i));return t[r]&&0!==n.highlightDegree&&(u=Object.keys(t[r]).reduce(function(e,t){var n=Object.assign({},u[t],{highlighted:a});return Object.assign(e,d({},t,n))},u)),{nodes:u,highlightedNode:o}},t.getCenterAndZoomTransformation=function(e,t){if(e)return"\n translate("+t.width/2+", "+t.height/2+")\n scale("+t.focusZoom+")\n translate("+-e.x+", "+-e.y+")\n "}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce(function(n,a){return t[a]?Object.keys(t[a]).reduce(function(n,o){return e===a?r({},n,{outDegree:n.outDegree+t[e][o]}):e===o?r({},n,{inDegree:n.inDegree+t[a][e]}):n},n):n},{inDegree:0,outDegree:0})}t.computeNodeDegree=a,t.getTargetLeafConnections=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2].directed;return Object.keys(t[e]).reduce(function(r,o){return function(e,t,n){var r=a(e,t),o=r.inDegree,i=r.outDegree;return n?function(e,t){return e<=1&&t<1}(o,i):function(e,t){return e<=1&&t<=1}(o,i)}(o,t,n)&&r.push({source:e,target:o}),r},[])},t.isNodeVisible=function(e,t){var n=a(e,t),r=n.inDegree,o=n.outDegree;return r>=1||o>=1},t.toggleLinksConnections=function(e,t){return e.map(function(e){var n=e.source,a=e.target,o=n.id||n,i=a.id||a,u=t&&t[o]&&t[o][i];return r({},e,u?{isHidden:!1}:{isHidden:!0})})},t.toggleLinksMatrixConnections=function(e,t,n){var a=n.directed;return t.reduce(function(e,t){e[t.source]||(e[t.source]={}),e[t.source][t.target]||(e[t.source][t.target]=0);var n=0===e[t.source][t.target]?1:0;return e[t.source][t.target]=n,a||(e[t.target][t.source]=n),e},r({},e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={GRAPH_NO_ID_PROP:"id prop not defined! id property is mandatory and it should be unique.",INVALID_LINKS:"you provided a invalid links data structure. Links source and target attributes must point to an existent node",INSUFFICIENT_DATA:"you have not provided enough data for react-d3-graph to render something. You need to provide at least one node"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={SYMBOLS:{CIRCLE:"circle",CROSS:"cross",DIAMOND:"diamond",SQUARE:"square",STAR:"star",TRIANGLE:"triangle",WYE:"wye"}}},function(e,t,n){var r={},a=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),o=function(e){var t={};return function(e){return void 0===t[e]&&(t[e]=function(e){return document.querySelector(e)}.call(this,e)),t[e]}}(),i=null,u=0,s=[],l=n(295);function c(e,t){for(var n=0;n=0&&s.splice(t,1)}function p(e){var t=document.createElement("style");return e.attrs.type="text/css",m(t,e.attrs),d(e,t),t}function m(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function v(e,t){var n,r,a,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var s=u++;n=i||(i=p(t)),r=g.bind(null,n,s,!1),a=g.bind(null,n,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",m(t,e.attrs),d(e,t),t}(t),r=function(e,t,n){var r=n.css,a=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&a;(t.convertToAbsoluteUrls||o)&&(r=l(r));a&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");var i=new Blob([r],{type:"text/css"}),u=e.href;e.href=URL.createObjectURL(i),u&&URL.revokeObjectURL(u)}.bind(null,n,t),a=function(){h(n),n.href&&URL.revokeObjectURL(n.href)}):(n=p(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),a=function(){h(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=f(e,t);return c(n,t),function(e){for(var a=[],o=0;o":"<")+" "+r+") { ";var h=t,p=p||[];p.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(h||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have ",a+="maxProperties"==t?"more":"less",a+=" than ",a+=d?"' + "+r+" + '":""+u,a+=" properties' "),e.opts.verbose&&(a+=" , schema: ",a+=d?"validate.schema"+s:""+u,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),a+=" } "):a+=" {} ";var m=a;return a=p.pop(),!e.compositeRule&&c?e.async?a+=" throw new ValidationError(["+m+"]); ":a+=" validate.errors = ["+m+"]; return false; ":a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",c&&(a+=" else { "),a}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,a=" ",o=e.level,i=e.dataLevel,u=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(i||""),d=e.opts.$data&&u&&u.$data;d?(a+=" var schema"+o+" = "+e.util.getData(u.$data,i,e.dataPathArr)+"; ",r="schema"+o):r=u;var h="maxLength"==t?">":"<";a+="if ( ",d&&(a+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),!1===e.opts.unicode?a+=" "+f+".length ":a+=" ucs2length("+f+") ",a+=" "+h+" "+r+") { ";var p=t,m=m||[];m.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(p||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT be ",a+="maxLength"==t?"longer":"shorter",a+=" than ",a+=d?"' + "+r+" + '":""+u,a+=" characters' "),e.opts.verbose&&(a+=" , schema: ",a+=d?"validate.schema"+s:""+u,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),a+=" } "):a+=" {} ";var v=a;return a=m.pop(),!e.compositeRule&&c?e.async?a+=" throw new ValidationError(["+v+"]); ":a+=" validate.errors = ["+v+"]; return false; ":a+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",c&&(a+=" else { "),a}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,a=" ",o=e.level,i=e.dataLevel,u=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(i||""),d=e.opts.$data&&u&&u.$data;d?(a+=" var schema"+o+" = "+e.util.getData(u.$data,i,e.dataPathArr)+"; ",r="schema"+o):r=u,a+="if ( ",d&&(a+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),a+=" "+f+".length "+("maxItems"==t?">":"<")+" "+r+") { ";var h=t,p=p||[];p.push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(h||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have ",a+="maxItems"==t?"more":"less",a+=" than ",a+=d?"' + "+r+" + '":""+u,a+=" items' "),e.opts.verbose&&(a+=" , schema: ",a+=d?"validate.schema"+s:""+u,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),a+=" } "):a+=" {} ";var m=a;return a=p.pop(),!e.compositeRule&&c?e.async?a+=" throw new ValidationError(["+m+"]); ":a+=" validate.errors = ["+m+"]; return false; ":a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",c&&(a+=" else { "),a}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,a=" ",o=e.level,i=e.dataLevel,u=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(i||""),d=e.opts.$data&&u&&u.$data;d?(a+=" var schema"+o+" = "+e.util.getData(u.$data,i,e.dataPathArr)+"; ",r="schema"+o):r=u;var h="maximum"==t,p=h?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[p],v=e.opts.$data&&m&&m.$data,y=h?"<":">",g=h?">":"<",_=void 0;if(v){var b=e.util.getData(m.$data,i,e.dataPathArr),E="exclusive"+o,x="exclType"+o,w="exclIsNumber"+o,k="' + "+(O="op"+o)+" + '";a+=" var schemaExcl"+o+" = "+b+"; ",a+=" var "+E+"; var "+x+" = typeof "+(b="schemaExcl"+o)+"; if ("+x+" != 'boolean' && "+x+" != 'undefined' && "+x+" != 'number') { ";var P;_=p;(P=P||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(_||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(a+=" , message: '"+p+" should be boolean' "),e.opts.verbose&&(a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),a+=" } "):a+=" {} ";var S=a;a=P.pop(),!e.compositeRule&&c?e.async?a+=" throw new ValidationError(["+S+"]); ":a+=" validate.errors = ["+S+"]; return false; ":a+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else if ( ",d&&(a+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),a+=" "+x+" == 'number' ? ( ("+E+" = "+r+" === undefined || "+b+" "+y+"= "+r+") ? "+f+" "+g+"= "+b+" : "+f+" "+g+" "+r+" ) : ( ("+E+" = "+b+" === true) ? "+f+" "+g+"= "+r+" : "+f+" "+g+" "+r+" ) || "+f+" !== "+f+") { var op"+o+" = "+E+" ? '"+y+"' : '"+y+"=';"}else{k=y;if((w="number"==typeof m)&&d){var O="'"+k+"'";a+=" if ( ",d&&(a+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),a+=" ( "+r+" === undefined || "+m+" "+y+"= "+r+" ? "+f+" "+g+"= "+m+" : "+f+" "+g+" "+r+" ) || "+f+" !== "+f+") { "}else{w&&void 0===u?(E=!0,_=p,l=e.errSchemaPath+"/"+p,r=m,g+="="):(w&&(r=Math[h?"min":"max"](m,u)),m===(!w||r)?(E=!0,_=p,l=e.errSchemaPath+"/"+p,g+="="):(E=!1,k+="="));O="'"+k+"'";a+=" if ( ",d&&(a+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),a+=" "+f+" "+g+" "+r+" || "+f+" !== "+f+") { "}}_=_||t,(P=P||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(_||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+O+", limit: "+r+", exclusive: "+E+" } ",!1!==e.opts.messages&&(a+=" , message: 'should be "+k+" ",a+=d?"' + "+r:r+"'"),e.opts.verbose&&(a+=" , schema: ",a+=d?"validate.schema"+s:""+u,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),a+=" } "):a+=" {} ";S=a;return a=P.pop(),!e.compositeRule&&c?e.async?a+=" throw new ValidationError(["+S+"]); ":a+=" validate.errors = ["+S+"]; return false; ":a+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",c&&(a+=" else { "),a}},function(e,t){var n=Array.prototype.slice;function r(e){var t=this,r=n.call(arguments,1);return new Promise(function(n,i){if("function"==typeof e&&(e=e.apply(t,r)),!e||"function"!=typeof e.next)return n(e);function u(t){var n;try{n=e.next(t)}catch(e){return i(e)}l(n)}function s(t){var n;try{n=e.throw(t)}catch(e){return i(e)}l(n)}function l(e){if(e.done)return n(e.value);var r=a.call(t,e.value);return r&&o(r)?r.then(u,s):s(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(e.value)+'"'))}u()})}function a(e){return e?o(e)?e:function(e){var t=e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName||i(t.prototype))}(e)||i(e)?r.call(this,e):"function"==typeof e?function(e){var t=this;return new Promise(function(r,a){e.call(t,function(e,t){if(e)return a(e);arguments.length>2&&(t=n.call(arguments,1)),r(t)})})}.call(this,e):Array.isArray(e)?function(e){return Promise.all(e.map(a,this))}.call(this,e):function(e){return Object==e.constructor}(e)?function(e){for(var t=new e.constructor,n=Object.keys(e),r=[],i=0;i0&&void 0!==arguments[0]?arguments[0]:[];if(null===e)return[];return e.map(function(e){var t=e.dataPath,n=e.keyword,r=e.message,a=e.params,o=""+t;return{name:n,property:o,message:r,params:a,stack:(o+" "+r).trim()}})}(f.errors);"function"==typeof s&&(c=s(c));var h=function(e){if(!e.length)return{};return e.reduce(function(e,t){var n=t.property,r=t.message,a=(0,u.default)(n),o=e;a.length>0&&""===a[0]&&a.splice(0,1);var s=!0,l=!1,c=void 0;try{for(var f,d=(0,i.default)(a.slice(0));!(s=(f=d.next()).done);s=!0){var h=f.value;h in o||(o[h]={}),o=o[h]}}catch(e){l=!0,c=e}finally{try{!s&&d.return&&d.return()}finally{if(l)throw c}}return Array.isArray(o.__errors)?o.__errors=o.__errors.concat(r):o.__errors=[r],e},{})}(c);if("function"!=typeof n)return{errors:c,errorSchema:h};var p=function e(t){return(0,o.default)(t).reduce(function(n,o){return"addError"===o?n:"__errors"===o?(0,a.default)({},n,(0,r.default)({},o,t[o])):(0,a.default)({},n,(0,r.default)({},o,e(t[o])))},{})}(n(e,function e(t){var n={__errors:[],addError:function(e){this.__errors.push(e)}};if((0,l.isObject)(t))return(0,o.default)(t).reduce(function(n,o){return(0,a.default)({},n,(0,r.default)({},o,e(t[o])))},n);if(Array.isArray(t))return t.reduce(function(t,n,o){return(0,a.default)({},t,(0,r.default)({},o,e(n)))},n);return n}(e))),m=(0,l.mergeObjects)(h,p,!0);return{errors:d(m),errorSchema:m}};var u=c(n(375)),s=c(n(374)),l=n(7);function c(e){return e&&e.__esModule?e:{default:e}}var f=new s.default({errorDataPath:"property",allErrors:!0});function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"root",n=[];return"__errors"in e&&(n=n.concat(e.__errors.map(function(e){return{stack:t+": "+e}}))),(0,o.default)(e).reduce(function(t,n){return"__errors"!==n&&(t=t.concat(d(e[n],n))),t},n)}f.addFormat("data-url",/^data:([a-z]+\/[a-z0-9-+.]+)?;name=(.*);base64,(.*)$/),f.addFormat("color",/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/)},function(e,t,n){e.exports={default:n(380),__esModule:!0}},function(e,t,n){var r=n(8)("iterator"),a=!1;try{var o=[7][r]();o.return=function(){a=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var o=[7],i=o[r]();i.next=function(){return{done:n=!0}},o[r]=function(){return i},e(o)}catch(e){}return n}},function(e,t,n){e.exports={default:n(383),__esModule:!0}},function(e,t,n){var r=n(14);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";var r=n(6),a=n(3),o=n(15),i=n(16),u=n(8)("species");e.exports=function(e){var t="function"==typeof a[e]?a[e]:r[e];i&&t&&!t[u]&&o.f(t,u,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(40),a=n(8)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[a]===e)}},function(e,t,n){var r=n(17);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){e.exports={default:n(397),__esModule:!0}},function(e,t,n){var r=n(60),a=n(42),o=n(32),i=n(92),u=n(25),s=n(167),l=Object.getOwnPropertyDescriptor;t.f=n(16)?l:function(e,t){if(e=o(e),t=i(t,!0),s)try{return l(e,t)}catch(e){}if(u(e,t))return a(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(170),a=n(95).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},function(e,t,n){var r=n(32),a=n(157).f,o={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return i&&"[object Window]"==o.call(e)?function(e){try{return a(e)}catch(e){return i.slice()}}(e):a(r(e))}},function(e,t,n){var r=n(46);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(6).document;e.exports=r&&r.documentElement},function(e,t,n){e.exports=n(21)},function(e,t,n){e.exports={default:n(422),__esModule:!0}},function(e,t,n){e.exports={default:n(424),__esModule:!0}},function(e,t,n){var r=n(25),a=n(26),o=n(97)("IE_PROTO"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=a(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}},function(e,t,n){e.exports={default:n(429),__esModule:!0}},function(e,t,n){e.exports=!n(16)&&!n(24)(function(){return 7!=Object.defineProperty(n(93)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(98),a=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?a(e+t,0):o(e,t)}},function(e,t,n){var r=n(32),a=n(45),o=n(168);e.exports=function(e){return function(t,n,i){var u,s=r(t),l=a(s.length),c=o(i,l);if(e&&n!=n){for(;l>c;)if((u=s[c++])!=u)return!0}else for(;l>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(25),a=n(32),o=n(169)(!1),i=n(97)("IE_PROTO");e.exports=function(e,t){var n,u=a(e),s=0,l=[];for(n in u)n!=i&&r(u,n)&&l.push(n);for(;t.length>s;)r(u,n=t[s++])&&(~o(l,n)||l.push(n));return l}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(441)},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t,n){"use strict";n.r(t);var r=Math.PI,a=2*r,o=a-1e-6;function i(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function u(){return new i}i.prototype=u.prototype={constructor:i,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,a,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+a)+","+(this._y1=+o)},arcTo:function(e,t,n,a,o){e=+e,t=+t,n=+n,a=+a,o=+o;var i=this._x1,u=this._y1,s=n-e,l=a-t,c=i-e,f=u-t,d=c*c+f*f;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>1e-6)if(Math.abs(f*s-l*c)>1e-6&&o){var h=n-i,p=a-u,m=s*s+l*l,v=h*h+p*p,y=Math.sqrt(m),g=Math.sqrt(d),_=o*Math.tan((r-Math.acos((m+d-v)/(2*y*g)))/2),b=_/g,E=_/y;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*c)+","+(t+b*f)),this._+="A"+o+","+o+",0,0,"+ +(f*h>c*p)+","+(this._x1=e+E*s)+","+(this._y1=t+E*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,i,u,s){e=+e,t=+t;var l=(n=+n)*Math.cos(i),c=n*Math.sin(i),f=e+l,d=t+c,h=1^s,p=s?i-u:u-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-d)>1e-6)&&(this._+="L"+f+","+d),n&&(p<0&&(p=p%a+a),p>o?this._+="A"+n+","+n+",0,1,"+h+","+(e-l)+","+(t-c)+"A"+n+","+n+",0,1,"+h+","+(this._x1=f)+","+(this._y1=d):p>1e-6&&(this._+="A"+n+","+n+",0,"+ +(p>=r)+","+h+","+(this._x1=e+n*Math.cos(u))+","+(this._y1=t+n*Math.sin(u))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var s=u,l=function(e){return function(){return e}},c=Math.abs,f=Math.atan2,d=Math.cos,h=Math.max,p=Math.min,m=Math.sin,v=Math.sqrt,y=1e-12,g=Math.PI,_=g/2,b=2*g;function E(e){return e>=1?_:e<=-1?-_:Math.asin(e)}function x(e){return e.innerRadius}function w(e){return e.outerRadius}function k(e){return e.startAngle}function P(e){return e.endAngle}function S(e){return e&&e.padAngle}function O(e,t,n,r,a,o,i){var u=e-n,s=t-r,l=(i?o:-o)/v(u*u+s*s),c=l*s,f=-l*u,d=e+c,p=t+f,m=n+c,y=r+f,g=(d+m)/2,_=(p+y)/2,b=m-d,E=y-p,x=b*b+E*E,w=a-o,k=d*y-m*p,P=(E<0?-1:1)*v(h(0,w*w*x-k*k)),S=(k*E-b*P)/x,O=(-k*b-E*P)/x,C=(k*E+b*P)/x,M=(-k*b+E*P)/x,N=S-g,T=O-_,A=C-g,R=M-_;return N*N+T*T>A*A+R*R&&(S=C,O=M),{cx:S,cy:O,x01:-c,y01:-f,x11:S*(a/w-1),y11:O*(a/w-1)}}var C=function(){var e=x,t=w,n=l(0),r=null,a=k,o=P,i=S,u=null;function h(){var l,h,x=+e.apply(this,arguments),w=+t.apply(this,arguments),k=a.apply(this,arguments)-_,P=o.apply(this,arguments)-_,S=c(P-k),C=P>k;if(u||(u=l=s()),wy)if(S>b-y)u.moveTo(w*d(k),w*m(k)),u.arc(0,0,w,k,P,!C),x>y&&(u.moveTo(x*d(P),x*m(P)),u.arc(0,0,x,P,k,C));else{var M,N,T=k,A=P,R=k,j=P,D=S,F=S,I=i.apply(this,arguments)/2,U=I>y&&(r?+r.apply(this,arguments):v(x*x+w*w)),L=p(c(w-x)/2,+n.apply(this,arguments)),z=L,V=L;if(U>y){var $=E(U/x*m(I)),B=E(U/w*m(I));(D-=2*$)>y?(R+=$*=C?1:-1,j-=$):(D=0,R=j=(k+P)/2),(F-=2*B)>y?(T+=B*=C?1:-1,A-=B):(F=0,T=A=(k+P)/2)}var q=w*d(T),W=w*m(T),G=x*d(j),H=x*m(j);if(L>y){var K=w*d(A),Y=w*m(A),Q=x*d(R),X=x*m(R);if(Sy?function(e,t,n,r,a,o,i,u){var s=n-e,l=r-t,c=i-a,f=u-o,d=(c*(t-o)-f*(e-a))/(f*s-c*l);return[e+d*s,t+d*l]}(q,W,Q,X,K,Y,G,H):[G,H],J=q-Z[0],ee=W-Z[1],te=K-Z[0],ne=Y-Z[1],re=1/m(function(e){return e>1?0:e<-1?g:Math.acos(e)}((J*te+ee*ne)/(v(J*J+ee*ee)*v(te*te+ne*ne)))/2),ae=v(Z[0]*Z[0]+Z[1]*Z[1]);z=p(L,(x-ae)/(re-1)),V=p(L,(w-ae)/(re+1))}}F>y?V>y?(M=O(Q,X,q,W,w,V,C),N=O(K,Y,G,H,w,V,C),u.moveTo(M.cx+M.x01,M.cy+M.y01),Vy&&D>y?z>y?(M=O(G,H,K,Y,x,-z,C),N=O(q,W,Q,X,x,-z,C),u.lineTo(M.cx+M.x01,M.cy+M.y01),z=f;--d)u.point(y[d],g[d]);u.lineEnd(),u.areaEnd()}v&&(y[c]=+e(h,c,l),g[c]=+n(h,c,l),u.point(t?+t(h,c,l):y[c],r?+r(h,c,l):g[c]))}if(p)return u=null,p+""||null}function f(){return R().defined(a).curve(i).context(o)}return c.x=function(n){return arguments.length?(e="function"==typeof n?n:l(+n),t=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:l(+t),c):e},c.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:l(+e),c):t},c.y=function(e){return arguments.length?(n="function"==typeof e?e:l(+e),r=null,c):n},c.y0=function(e){return arguments.length?(n="function"==typeof e?e:l(+e),c):n},c.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:l(+e),c):r},c.lineX0=c.lineY0=function(){return f().x(e).y(n)},c.lineY1=function(){return f().x(e).y(r)},c.lineX1=function(){return f().x(t).y(n)},c.defined=function(e){return arguments.length?(a="function"==typeof e?e:l(!!e),c):a},c.curve=function(e){return arguments.length?(i=e,null!=o&&(u=i(o)),c):i},c.context=function(e){return arguments.length?(null==e?o=u=null:u=i(o=e),c):o},c},D=function(e,t){return te?1:t>=e?0:NaN},F=function(e){return e},I=function(){var e=F,t=D,n=null,r=l(0),a=l(b),o=l(0);function i(i){var u,s,l,c,f,d=i.length,h=0,p=new Array(d),m=new Array(d),v=+r.apply(this,arguments),y=Math.min(b,Math.max(-b,a.apply(this,arguments)-v)),g=Math.min(Math.abs(y)/d,o.apply(this,arguments)),_=g*(y<0?-1:1);for(u=0;u0&&(h+=f);for(null!=t?p.sort(function(e,n){return t(m[e],m[n])}):null!=n&&p.sort(function(e,t){return n(i[e],i[t])}),u=0,l=h?(y-d*_)/h:0;u0?f*l:0)+_,m[s]={data:i[s],index:u,value:f,startAngle:v,endAngle:c,padAngle:g};return m}return i.value=function(t){return arguments.length?(e="function"==typeof t?t:l(+t),i):e},i.sortValues=function(e){return arguments.length?(t=e,n=null,i):t},i.sort=function(e){return arguments.length?(n=e,t=null,i):n},i.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:l(+e),i):r},i.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:l(+e),i):a},i.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:l(+e),i):o},i},U=z(N);function L(e){this._curve=e}function z(e){function t(t){return new L(e(t))}return t._curve=e,t}function V(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(z(e)):t()._curve},e}L.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var $=function(){return V(R().curve(U))},B=function(){var e=j().curve(U),t=e.curve,n=e.lineX0,r=e.lineX1,a=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return V(n())},delete e.lineX0,e.lineEndAngle=function(){return V(r())},delete e.lineX1,e.lineInnerRadius=function(){return V(a())},delete e.lineY0,e.lineOuterRadius=function(){return V(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(z(e)):t()._curve},e},q=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},W=Array.prototype.slice;function G(e){return e.source}function H(e){return e.target}function K(e){var t=G,n=H,r=T,a=A,o=null;function i(){var i,u=W.call(arguments),l=t.apply(this,u),c=n.apply(this,u);if(o||(o=i=s()),e(o,+r.apply(this,(u[0]=l,u)),+a.apply(this,u),+r.apply(this,(u[0]=c,u)),+a.apply(this,u)),i)return o=null,i+""||null}return i.source=function(e){return arguments.length?(t=e,i):t},i.target=function(e){return arguments.length?(n=e,i):n},i.x=function(e){return arguments.length?(r="function"==typeof e?e:l(+e),i):r},i.y=function(e){return arguments.length?(a="function"==typeof e?e:l(+e),i):a},i.context=function(e){return arguments.length?(o=null==e?null:e,i):o},i}function Y(e,t,n,r,a){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,a,r,a)}function Q(e,t,n,r,a){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+a)/2,r,n,r,a)}function X(e,t,n,r,a){var o=q(t,n),i=q(t,n=(n+a)/2),u=q(r,n),s=q(r,a);e.moveTo(o[0],o[1]),e.bezierCurveTo(i[0],i[1],u[0],u[1],s[0],s[1])}function Z(){return K(Y)}function J(){return K(Q)}function ee(){var e=K(X);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var te={draw:function(e,t){var n=Math.sqrt(t/g);e.moveTo(n,0),e.arc(0,0,n,0,b)}},ne={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},re=Math.sqrt(1/3),ae=2*re,oe={draw:function(e,t){var n=Math.sqrt(t/ae),r=n*re;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},ie=Math.sin(g/10)/Math.sin(7*g/10),ue=Math.sin(b/10)*ie,se=-Math.cos(b/10)*ie,le={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=ue*n,a=se*n;e.moveTo(0,-n),e.lineTo(r,a);for(var o=1;o<5;++o){var i=b*o/5,u=Math.cos(i),s=Math.sin(i);e.lineTo(s*n,-u*n),e.lineTo(u*r-s*a,s*r+u*a)}e.closePath()}},ce={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},fe=Math.sqrt(3),de={draw:function(e,t){var n=-Math.sqrt(t/(3*fe));e.moveTo(0,2*n),e.lineTo(-fe*n,-n),e.lineTo(fe*n,-n),e.closePath()}},he=Math.sqrt(3)/2,pe=1/Math.sqrt(12),me=3*(pe/2+1),ve={draw:function(e,t){var n=Math.sqrt(t/me),r=n/2,a=n*pe,o=r,i=n*pe+n,u=-o,s=i;e.moveTo(r,a),e.lineTo(o,i),e.lineTo(u,s),e.lineTo(-.5*r-he*a,he*r+-.5*a),e.lineTo(-.5*o-he*i,he*o+-.5*i),e.lineTo(-.5*u-he*s,he*u+-.5*s),e.lineTo(-.5*r+he*a,-.5*a-he*r),e.lineTo(-.5*o+he*i,-.5*i-he*o),e.lineTo(-.5*u+he*s,-.5*s-he*u),e.closePath()}},ye=[te,ne,oe,ce,le,de,ve],ge=function(){var e=l(te),t=l(64),n=null;function r(){var r;if(n||(n=r=s()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:l(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:l(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},_e=function(){};function be(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Ee(e){this._context=e}Ee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:be(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:be(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var xe=function(e){return new Ee(e)};function we(e){this._context=e}we.prototype={areaStart:_e,areaEnd:_e,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:be(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var ke=function(e){return new we(e)};function Pe(e){this._context=e}Pe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:be(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Se=function(e){return new Pe(e)};function Oe(e,t){this._basis=new Ee(e),this._beta=t}Oe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,a=e[0],o=t[0],i=e[n]-a,u=t[n]-o,s=-1;++s<=n;)r=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(a+r*i),this._beta*t[s]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Ce=function e(t){function n(e){return 1===t?new Ee(e):new Oe(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function Me(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Ne(e,t){this._context=e,this._k=(1-t)/6}Ne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Me(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Me(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Te=function e(t){function n(e){return new Ne(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ae(e,t){this._context=e,this._k=(1-t)/6}Ae.prototype={areaStart:_e,areaEnd:_e,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Me(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Re=function e(t){function n(e){return new Ae(e,t)}return n.tension=function(t){return e(+t)},n}(0);function je(e,t){this._context=e,this._k=(1-t)/6}je.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Me(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var De=function e(t){function n(e){return new je(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Fe(e,t,n){var r=e._x1,a=e._y1,o=e._x2,i=e._y2;if(e._l01_a>y){var u=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*u-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,a=(a*u-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>y){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/c,i=(i*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,a,o,i,e._x2,e._y2)}function Ie(e,t){this._context=e,this._alpha=t}Ie.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Fe(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ue=function e(t){function n(e){return t?new Ie(e,t):new Ne(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Le(e,t){this._context=e,this._alpha=t}Le.prototype={areaStart:_e,areaEnd:_e,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Fe(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ze=function e(t){function n(e){return t?new Le(e,t):new Ae(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ve(e,t){this._context=e,this._alpha=t}Ve.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Fe(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var $e=function e(t){function n(e){return t?new Ve(e,t):new je(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Be(e){this._context=e}Be.prototype={areaStart:_e,areaEnd:_e,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var qe=function(e){return new Be(e)};function We(e){return e<0?-1:1}function Ge(e,t,n){var r=e._x1-e._x0,a=t-e._x1,o=(e._y1-e._y0)/(r||a<0&&-0),i=(n-e._y1)/(a||r<0&&-0),u=(o*a+i*r)/(r+a);return(We(o)+We(i))*Math.min(Math.abs(o),Math.abs(i),.5*Math.abs(u))||0}function He(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ke(e,t,n){var r=e._x0,a=e._y0,o=e._x1,i=e._y1,u=(o-r)/3;e._context.bezierCurveTo(r+u,a+u*t,o-u,i-u*n,o,i)}function Ye(e){this._context=e}function Qe(e){this._context=new Xe(e)}function Xe(e){this._context=e}function Ze(e){return new Ye(e)}function Je(e){return new Qe(e)}function et(e){this._context=e}function tt(e){var t,n,r=e.length-1,a=new Array(r),o=new Array(r),i=new Array(r);for(a[0]=0,o[0]=2,i[0]=e[0]+2*e[1],t=1;t=0;--t)a[t]=(i[t]-a[t+1])/o[t];for(o[r-1]=(e[r]+a[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var at=function(e){return new rt(e,.5)};function ot(e){return new rt(e,0)}function it(e){return new rt(e,1)}var ut=function(e,t){if((a=e.length)>1)for(var n,r,a,o=1,i=e[t[0]],u=i.length;o=0;)n[t]=t;return n};function lt(e,t){return e[t]}var ct=function(){var e=l([]),t=st,n=ut,r=lt;function a(a){var o,i,u=e.apply(this,arguments),s=a.length,l=u.length,c=new Array(l);for(o=0;o0){for(var n,r,a,o=0,i=e[0].length;o1)for(var n,r,a,o,i,u,s=0,l=e[t[0]].length;s=0?(r[0]=o,r[1]=o+=a):a<0?(r[1]=i,r[0]=i+=a):r[0]=o},ht=function(e,t){if((n=e.length)>0){for(var n,r=0,a=e[t[0]],o=a.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,a,o=0,i=1;i>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=d.exec(e))?E(parseInt(t[1],16)):(t=h.exec(e))?new P(t[1],t[2],t[3],1):(t=p.exec(e))?new P(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=m.exec(e))?x(t[1],t[2],t[3],t[4]):(t=v.exec(e))?x(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=y.exec(e))?O(t[1],t[2]/100,t[3]/100,1):(t=g.exec(e))?O(t[1],t[2]/100,t[3]/100,t[4]):_.hasOwnProperty(e)?E(_[e]):"transparent"===e?new P(NaN,NaN,NaN,0):null}function E(e){return new P(e>>16&255,e>>8&255,255&e,1)}function x(e,t,n,r){return r<=0&&(e=t=n=NaN),new P(e,t,n,r)}function w(e){return e instanceof u||(e=b(e)),e?new P((e=e.rgb()).r,e.g,e.b,e.opacity):new P}function k(e,t,n,r){return 1===arguments.length?w(e):new P(e,t,n,null==r?1:r)}function P(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function S(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function O(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new M(e,t,n,r)}function C(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof M)return new M(e.h,e.s,e.l,e.opacity);if(e instanceof u||(e=b(e)),!e)return new M;if(e instanceof M)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),o=Math.max(t,n,r),i=NaN,s=o-a,l=(o+a)/2;return s?(i=t===o?(n-r)/s+6*(n0&&l<1?0:i,new M(i,s,l,e.opacity)}(e):new M(e,t,n,null==r?1:r)}function M(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function N(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}o(u,b,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),o(P,k,i(u,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new P(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new P(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+S(this.r)+S(this.g)+S(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),o(M,C,i(u,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new M(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new M(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new P(N(e>=240?e-240:e+120,a,r),N(e,a,r),N(e<120?e+240:e-120,a,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var T=Math.PI/180,A=180/Math.PI,R=.96422,j=1,D=.82521,F=4/29,I=6/29,U=3*I*I,L=I*I*I;function z(e){if(e instanceof $)return new $(e.l,e.a,e.b,e.opacity);if(e instanceof Y){if(isNaN(e.h))return new $(e.l,0,0,e.opacity);var t=e.h*T;return new $(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof P||(e=w(e));var n,r,a=G(e.r),o=G(e.g),i=G(e.b),u=B((.2225045*a+.7168786*o+.0606169*i)/j);return a===o&&o===i?n=r=u:(n=B((.4360747*a+.3850649*o+.1430804*i)/R),r=B((.0139322*a+.0971045*o+.7141733*i)/D)),new $(116*u-16,500*(n-u),200*(u-r),e.opacity)}function V(e,t,n,r){return 1===arguments.length?z(e):new $(e,t,n,null==r?1:r)}function $(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function B(e){return e>L?Math.pow(e,1/3):e/U+F}function q(e){return e>I?e*e*e:U*(e-F)}function W(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function G(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function H(e){if(e instanceof Y)return new Y(e.h,e.c,e.l,e.opacity);if(e instanceof $||(e=z(e)),0===e.a&&0===e.b)return new Y(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*A;return new Y(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function K(e,t,n,r){return 1===arguments.length?H(e):new Y(e,t,n,null==r?1:r)}function Y(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}o($,V,i(u,{brighter:function(e){return new $(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new $(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new P(W(3.1338561*(t=R*q(t))-1.6168667*(e=j*q(e))-.4906146*(n=D*q(n))),W(-.9787684*t+1.9161415*e+.033454*n),W(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),o(Y,K,i(u,{brighter:function(e){return new Y(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Y(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return z(this).rgb()}}));var Q=-.29227,X=-.90649,Z=1.97294,J=Z*X,ee=1.78277*Z,te=1.78277*Q- -.14861*X;function ne(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof re)return new re(e.h,e.s,e.l,e.opacity);e instanceof P||(e=w(e));var t=e.r/255,n=e.g/255,r=e.b/255,a=(te*r+J*t-ee*n)/(te+J-ee),o=r-a,i=(Z*(n-a)-Q*o)/X,u=Math.sqrt(i*i+o*o)/(Z*a*(1-a)),s=u?Math.atan2(i,o)*A-120:NaN;return new re(s<0?s+360:s,u,a,e.opacity)}(e):new re(e,t,n,null==r?1:r)}function re(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ae(e,t,n,r,a){var o=e*e,i=o*e;return((1-3*e+3*o-i)*t+(4-6*o+3*i)*n+(1+3*e+3*o-3*i)*r+i*a)/6}o(re,ne,i(u,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new re(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new re(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*T,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new P(255*(t+n*(-.14861*r+1.78277*a)),255*(t+n*(Q*r+X*a)),255*(t+n*(Z*r)),this.opacity)}}));var oe=function(e){return function(){return e}};function ie(e,t){return function(n){return e+n*t}}function ue(e,t){var n=t-e;return n?ie(e,n>180||n<-180?n-360*Math.round(n/360):n):oe(isNaN(e)?t:e)}function se(e){return 1==(e=+e)?le:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):oe(isNaN(t)?n:t)}}function le(e,t){var n=t-e;return n?ie(e,n):oe(isNaN(e)?t:e)}var ce=function e(t){var n=se(t);function r(e,t){var r=n((e=k(e)).r,(t=k(t)).r),a=n(e.g,t.g),o=n(e.b,t.b),i=le(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=a(t),e.b=o(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);function fe(e){return function(t){var n,r,a=t.length,o=new Array(a),i=new Array(a),u=new Array(a);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),a=e[r],o=e[r+1],i=r>0?e[r-1]:2*a-o,u=ro&&(a=t.slice(o,a),u[i]?u[i]+=a:u[++i]=a),(n=n[0])===(r=r[0])?u[i]?u[i]+=r:u[++i]=r:(u[++i]=null,s.push({i:i,x:de(n,r)})),o=pe.lastIndex;return o180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(a(n)+"rotate(",null,r)-2,x:de(e,t)})):t&&n.push(a(n)+"rotate("+t+r)}(o.rotate,i.rotate,u,s),function(e,t,n,o){e!==t?o.push({i:n.push(a(n)+"skewX(",null,r)-2,x:de(e,t)}):t&&n.push(a(n)+"skewX("+t+r)}(o.skewX,i.skewX,u,s),function(e,t,n,r,o,i){if(e!==n||t!==r){var u=o.push(a(o)+"scale(",null,",",null,")");i.push({i:u-4,x:de(e,n)},{i:u-2,x:de(t,r)})}else 1===n&&1===r||o.push(a(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,i.scaleX,i.scaleY,u,s),o=i=null,function(e){for(var t,n=-1,r=s.length;++nFe)throw new Error("too late; already scheduled");return n}function We(e,t){var n=Ge(e,t);if(n.state>Ue)throw new Error("too late; already started");return n}function Ge(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}var He=function(e,t){var n,r,a,o=e.__transition,i=!0;if(o){for(a in t=null==t?null:t+"",o)(n=o[a]).name===t?(r=n.state>Ue&&n.state=0&&(e=e.slice(0,t)),!e||"start"===e})}(t)?qe:We;return function(){var i=o(this,e),u=i.on;u!==r&&(a=(r=u).copy()).on(t,n),i.on=a}}(n,e,t))},attr:function(e,t){var n=Object(Ae.namespace)(e),r="transform"===n?Pe:Ye;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,a,o;return function(){var i,u=n(this);if(null!=u)return(i=this.getAttributeNS(e.space,e.local))===u?null:i===r&&u===a?o:o=t(r=i,a=u);this.removeAttributeNS(e.space,e.local)}}:function(e,t,n){var r,a,o;return function(){var i,u=n(this);if(null!=u)return(i=this.getAttribute(e))===u?null:i===r&&u===a?o:o=t(r=i,a=u);this.removeAttribute(e)}})(n,r,Ke(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===n?null:o===r?a:a=t(r=o,n)}}:function(e,t,n){var r,a;return function(){var o=this.getAttribute(e);return o===n?null:o===r?a:a=t(r=o,n)}})(n,r,t+""))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=Object(Ae.namespace)(e);return this.tween(n,(r.local?function(e,t){function n(){var n=this,r=t.apply(n,arguments);return r&&function(t){n.setAttributeNS(e.space,e.local,r(t))}}return n._value=t,n}:function(e,t){function n(){var n=this,r=t.apply(n,arguments);return r&&function(t){n.setAttribute(e,r(t))}}return n._value=t,n})(r,t))},style:function(e,t,n){var r="transform"==(e+="")?ke:Ye;return null==t?this.styleTween(e,function(e,t){var n,r,a;return function(){var o=Object(Ae.style)(this,e),i=(this.style.removeProperty(e),Object(Ae.style)(this,e));return o===i?null:o===n&&i===r?a:a=t(n=o,r=i)}}(e,r)).on("end.style."+e,function(e){return function(){this.style.removeProperty(e)}}(e)):this.styleTween(e,"function"==typeof t?function(e,t,n){var r,a,o;return function(){var i=Object(Ae.style)(this,e),u=n(this);return null==u&&(this.style.removeProperty(e),u=Object(Ae.style)(this,e)),i===u?null:i===r&&u===a?o:o=t(r=i,a=u)}}(e,r,Ke(this,"style."+e,t)):function(e,t,n){var r,a;return function(){var o=Object(Ae.style)(this,e);return o===n?null:o===r?a:a=t(r=o,n)}}(e,r,t+""),n)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){function r(){var r=this,a=t.apply(r,arguments);return a&&function(t){r.style.setProperty(e,a(t),n)}}return r._value=t,r}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(Ke(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,a=Ge(this.node(),n).tween,o=0,i=a.length;or?(r+a)/2:Math.min(0,r)||Math.max(0,a),i>o?(o+i)/2:Math.min(0,o)||Math.max(0,i))}var vt=function(){var e,t,n=ct,o=ft,i=mt,u=ht,s=pt,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],f=250,d=Ce,h=[],p=Object(r.a)("start","zoom","end"),m=500,v=150,y=0;function g(e){e.property("__zoom",dt).on("wheel.zoom",P).on("mousedown.zoom",S).on("dblclick.zoom",O).filter(s).on("touchstart.zoom",C).on("touchmove.zoom",M).on("touchend.zoom touchcancel.zoom",N).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function _(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new ot(t,e.x,e.y)}function b(e,t,n){var r=t[0]-n[0]*e.k,a=t[1]-n[1]*e.k;return r===e.x&&a===e.y?e:new ot(e.k,r,a)}function E(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,n){e.on("start.zoom",function(){w(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){w(this,arguments).end()}).tween("zoom",function(){var e=arguments,r=w(this,e),a=o.apply(this,e),i=n||E(a),u=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),s=this.__zoom,l="function"==typeof t?t.apply(this,e):t,c=d(s.invert(i).concat(u/s.k),l.invert(i).concat(u/l.k));return function(e){if(1===e)e=l;else{var t=c(e),n=u/t[2];e=new ot(n,i[0]-t[0]*n,i[1]-t[1]*n)}r.zoom(null,e)}})}function w(e,t){for(var n,r=0,a=h.length;ry}e.zoom("mouse",i(b(e.that.__zoom,e.mouse[0]=Object(Ae.mouse)(e.that),e.mouse[1]),e.extent,c))},!0).on("mouseup.zoom",function(){r.on("mousemove.zoom mouseup.zoom",null),Object(a.dragEnable)(Ae.event.view,e.moved),lt(),e.end()},!0),o=Object(Ae.mouse)(this),u=Ae.event.clientX,s=Ae.event.clientY;Object(a.dragDisable)(Ae.event.view),st(),e.mouse=[o,this.__zoom.invert(o)],He(this),e.start()}}function O(){if(n.apply(this,arguments)){var e=this.__zoom,t=Object(Ae.mouse)(this),r=e.invert(t),a=e.k*(Ae.event.shiftKey?.5:2),u=i(b(_(e,a),t,r),o.apply(this,arguments),c);lt(),f>0?Object(Ae.select)(this).transition().duration(f).call(x,u,t):Object(Ae.select)(this).call(g.transform,u)}}function C(){if(n.apply(this,arguments)){var t,r,a,o,i=w(this,arguments),u=Ae.event.changedTouches,s=u.length;for(st(),r=0;r1?"items":"item";return f.default.createElement("span",{className:"rejt-collapsed"},f.default.createElement("span",{className:"rejt-collapsed-text",style:p,onClick:this.handleCollapseMode}," [...]"," ",m," ",g),v)}},{key:"renderNotCollapsed",value:function(){var e=this,t=this.state,n=t.name,r=t.data,a=t.keyPath,o=t.deep,i=t.addFormVisible,u=this.props,s=u.isCollapsed,l=u.handleRemove,c=u.onDeltaUpdate,d=u.readOnly,m=u.getStyle,v=u.dataType,y=u.addButtonElement,g=u.cancelButtonElement,_=u.editButtonElement,b=u.inputElementGenerator,E=u.textareaElementGenerator,x=u.minusMenuElement,w=u.plusMenuElement,k=u.beforeRemoveAction,P=u.beforeAddAction,S=u.beforeUpdateAction,O=u.logger,C=u.onSubmitValueParser,M=m(n,r,a,o,v),N=M.minus,T=M.plus,A=M.delimiter,R=M.ul,j=M.addForm,D=null,F=d(n,r,a,o,v);if(!F){var I=f.default.cloneElement(x,{onClick:l,className:"rejt-minus-menu",style:N});D=0!==o?I:null}var U=r.map(function(t,n){return f.default.createElement(h.default,{key:n,name:""+n,data:t,keyPath:a,deep:o,isCollapsed:s,handleRemove:e.handleRemoveItem(n),handleUpdateValue:e.handleEditValue,onUpdate:e.onChildUpdate,onDeltaUpdate:c,readOnly:d,getStyle:m,addButtonElement:y,cancelButtonElement:g,editButtonElement:_,inputElementGenerator:b,textareaElementGenerator:E,minusMenuElement:x,plusMenuElement:w,beforeRemoveAction:k,beforeAddAction:P,beforeUpdateAction:S,logger:O,onSubmitValueParser:C})}),L=null;if(!F){var z=f.default.cloneElement(w,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:T});L=i?f.default.createElement("span",{className:"rejt-add-form",style:j},f.default.createElement(p.default,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:y,cancelButtonElement:g,inputElementGenerator:b,keyPath:a,deep:o,onSubmitValueParser:C})):f.default.createElement("span",null,z," ",D)}return f.default.createElement("span",{className:"rejt-not-collapsed"},f.default.createElement("span",{className:"rejt-not-collapsed-delimiter",style:A},"["),f.default.createElement("ul",{className:"rejt-not-collapsed-list",style:R},U),f.default.createElement("span",{className:"rejt-not-collapsed-delimiter",style:A},"]"),L)}},{key:"render",value:function(){var e=this.state,t=e.name,n=e.collapsed,r=e.data,a=e.keyPath,o=e.deep,i=this.props,u=i.dataType,s=i.getStyle,l=n?this.renderCollapsed():this.renderNotCollapsed(),c=s(t,r,a,o,u);return f.default.createElement("div",{className:"rejt-array-node"},f.default.createElement("span",{onClick:this.handleCollapseMode},f.default.createElement("span",{className:"rejt-name",style:c.name},t," : ")),l)}}]),t}(c.Component);b.propTypes=g,b.defaultProps=_,t.default=b},function(e,t,n){n(94)("getOwnPropertyNames",function(){return n(158).f})},function(e,t,n){n(179);var r=n(3).Object;e.exports=function(e){return r.getOwnPropertyNames(e)}},function(e,t,n){e.exports={default:n(180),__esModule:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=g(n(181)),a=g(n(36)),o=g(n(31)),i=g(n(13)),u=g(n(12)),s=g(n(11)),l=g(n(10)),c=g(n(9)),f=n(1),d=g(f),h=g(n(2)),p=g(n(69)),m=g(n(106)),v=n(28),y=n(63);function g(e){return e&&e.__esModule?e:{default:e}}var _={data:h.default.object.isRequired,name:h.default.string.isRequired,isCollapsed:h.default.func.isRequired,keyPath:h.default.array,deep:h.default.number,handleRemove:h.default.func,onUpdate:h.default.func.isRequired,onDeltaUpdate:h.default.func.isRequired,readOnly:h.default.func.isRequired,dataType:h.default.string,getStyle:h.default.func.isRequired,addButtonElement:h.default.element,cancelButtonElement:h.default.element,editButtonElement:h.default.element,inputElementGenerator:h.default.func.isRequired,textareaElementGenerator:h.default.func.isRequired,minusMenuElement:h.default.element,plusMenuElement:h.default.element,beforeRemoveAction:h.default.func,beforeAddAction:h.default.func,beforeUpdateAction:h.default.func,logger:h.default.object.isRequired,onSubmitValueParser:h.default.func.isRequired},b={keyPath:[],deep:0,minusMenuElement:d.default.createElement("span",null," - "),plusMenuElement:d.default.createElement("span",null," + ")},E=function(e){function t(e){(0,u.default)(this,t);var n=(0,l.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e)),r=e.deep+1,a=0===r?[]:[].concat((0,o.default)(e.keyPath),[e.name]);return n.state={name:e.name,data:e.data,keyPath:a,deep:r,collapsed:e.isCollapsed(a,r,e.data),addFormVisible:!1},n.handleCollapseMode=n.handleCollapseMode.bind(n),n.handleRemoveValue=n.handleRemoveValue.bind(n),n.handleAddMode=n.handleAddMode.bind(n),n.handleAddValueAdd=n.handleAddValueAdd.bind(n),n.handleAddValueCancel=n.handleAddValueCancel.bind(n),n.handleEditValue=n.handleEditValue.bind(n),n.onChildUpdate=n.onChildUpdate.bind(n),n.renderCollapsed=n.renderCollapsed.bind(n),n.renderNotCollapsed=n.renderNotCollapsed.bind(n),n}return(0,c.default)(t,e),(0,s.default)(t,[{key:"componentWillReceiveProps",value:function(e){this.setState({data:e.data})}},{key:"onChildUpdate",value:function(e,t){var n=this.state,r=n.data,a=n.keyPath;r[e]=t,this.setState({data:r}),(0,this.props.onUpdate)(a[a.length-1],r)}},{key:"handleAddMode",value:function(){this.setState({addFormVisible:!0})}},{key:"handleAddValueCancel",value:function(){this.setState({addFormVisible:!1})}},{key:"handleAddValueAdd",value:function(e){var t=this,n=e.key,r=e.newValue,a=this.state,o=a.data,i=a.keyPath,u=a.deep,s=this.props,l=s.beforeAddAction,c=s.logger;l(n,i,u,r).then(function(){o[n]=r,t.setState({data:o}),t.handleAddValueCancel();var e=t.props,a=e.onUpdate,s=e.onDeltaUpdate;a(i[i.length-1],o),s({type:y.ADD_DELTA_TYPE,keyPath:i,deep:u,key:n,newValue:r})}).catch(c.error)}},{key:"handleRemoveValue",value:function(e){var t=this;return function(){var n=t.props,r=n.beforeRemoveAction,a=n.logger,o=t.state,i=o.data,u=o.keyPath,s=o.deep,l=i[e];r(e,u,s,l).then(function(){var n=(0,v.getObjectType)(l),r={keyPath:u,deep:s,key:e,oldValue:l};"Object"===n||"Array"===n?(r.type=y.UPDATE_DELTA_TYPE,r.newValue=null,i[e]=null):(r.type=y.REMOVE_DELTA_TYPE,delete i[e]),t.setState({data:i});var a=t.props,o=a.onUpdate,c=a.onDeltaUpdate;o(u[u.length-1],i),c(r)}).catch(a.error)}}},{key:"handleCollapseMode",value:function(){this.setState({collapsed:!this.state.collapsed})}},{key:"handleEditValue",value:function(e){var t=this,n=e.key,r=e.value;return new a.default(function(e,a){var o=t.props.beforeUpdateAction,i=t.state,u=i.data,s=i.keyPath,l=i.deep,c=u[n];o(n,s,l,c,r).then(function(){u[n]=r,t.setState({data:u});var a=t.props,o=a.onUpdate,i=a.onDeltaUpdate;o(s[s.length-1],u),i({type:y.UPDATE_DELTA_TYPE,keyPath:s,deep:l,key:n,newValue:r,oldValue:c}),e()}).catch(a)})}},{key:"renderCollapsed",value:function(){var e=this.state,t=e.name,n=e.keyPath,a=e.deep,o=e.data,i=this.props,u=i.handleRemove,s=i.readOnly,l=i.dataType,c=i.getStyle,f=i.minusMenuElement,h=c(t,o,n,a,l),p=h.minus,m=h.collapsed,v=(0,r.default)(o).length,y=v>1?"keys":"key",g=null;if(!s(t,o,n,a,l)){var _=d.default.cloneElement(f,{onClick:u,className:"rejt-minus-menu",style:p});g=0!==a?_:null}return d.default.createElement("span",{className:"rejt-collapsed"},d.default.createElement("span",{className:"rejt-collapsed-text",style:m,onClick:this.handleCollapseMode}," {...}"," ",v," ",y),g)}},{key:"renderNotCollapsed",value:function(){var e=this,t=this.state,n=t.name,a=t.data,o=t.keyPath,i=t.deep,u=t.addFormVisible,s=this.props,l=s.isCollapsed,c=s.handleRemove,f=s.onDeltaUpdate,h=s.readOnly,v=s.getStyle,y=s.dataType,g=s.addButtonElement,_=s.cancelButtonElement,b=s.editButtonElement,E=s.inputElementGenerator,x=s.textareaElementGenerator,w=s.minusMenuElement,k=s.plusMenuElement,P=s.beforeRemoveAction,S=s.beforeAddAction,O=s.beforeUpdateAction,C=s.logger,M=s.onSubmitValueParser,N=v(n,a,o,i,y),T=N.minus,A=N.plus,R=N.addForm,j=N.ul,D=N.delimiter,F=(0,r.default)(a),I=null,U=h(n,a,o,i,y);if(!U){var L=d.default.cloneElement(w,{onClick:c,className:"rejt-minus-menu",style:T});I=0!==i?L:null}var z=F.map(function(t){return d.default.createElement(p.default,{key:t,name:t,data:a[t],keyPath:o,deep:i,isCollapsed:l,handleRemove:e.handleRemoveValue(t),handleUpdateValue:e.handleEditValue,onUpdate:e.onChildUpdate,onDeltaUpdate:f,readOnly:h,getStyle:v,addButtonElement:g,cancelButtonElement:_,editButtonElement:b,inputElementGenerator:E,textareaElementGenerator:x,minusMenuElement:w,plusMenuElement:k,beforeRemoveAction:P,beforeAddAction:S,beforeUpdateAction:O,logger:C,onSubmitValueParser:M})}),V=null;if(!U){var $=d.default.cloneElement(k,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:A});V=u?d.default.createElement("span",{className:"rejt-add-form",style:R},d.default.createElement(m.default,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:g,cancelButtonElement:_,inputElementGenerator:E,keyPath:o,deep:i,onSubmitValueParser:M})):d.default.createElement("span",null,$," ",I)}return d.default.createElement("span",{className:"rejt-not-collapsed"},d.default.createElement("span",{className:"rejt-not-collapsed-delimiter",style:D},"{"),d.default.createElement("ul",{className:"rejt-not-collapsed-list",style:j},z),d.default.createElement("span",{className:"rejt-not-collapsed-delimiter",style:D},"}"),V)}},{key:"render",value:function(){var e=this.state,t=e.name,n=e.collapsed,r=e.data,a=e.keyPath,o=e.deep,i=this.props,u=i.getStyle,s=i.dataType,l=n?this.renderCollapsed():this.renderNotCollapsed(),c=u(t,r,a,o,s);return d.default.createElement("div",{className:"rejt-object-node"},d.default.createElement("span",{onClick:this.handleCollapseMode},d.default.createElement("span",{className:"rejt-name",style:c.name},t," : ")),l)}}]),t}(f.Component);E.propTypes=_,E.defaultProps=b,t.default=E},function(e,t,n){var r;!function(a,o,i){if(a){for(var u,s={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},l={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},c={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},f={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)s[111+d]="f"+d;for(d=0;d<=9;++d)s[d+96]=d.toString();_.prototype.bind=function(e,t,n){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,n),this},_.prototype.unbind=function(e,t){return this.bind.call(this,e,function(){},t)},_.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},_.prototype.reset=function(){return this._callbacks={},this._directMap={},this},_.prototype.stopCallback=function(e,t){return!((" "+t.className+" ").indexOf(" mousetrap ")>-1)&&(!function e(t,n){return null!==t&&t!==o&&(t===n||e(t.parentNode,n))}(t,this.target)&&("INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable))},_.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},_.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(s[t]=e[t]);u=null},_.init=function(){var e=_(o);for(var t in e)"_"!==t.charAt(0)&&(_[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},_.init(),a.Mousetrap=_,void 0!==e&&e.exports&&(e.exports=_),void 0===(r=function(){return _}.call(t,n,t,e))||(e.exports=r)}function h(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function p(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return s[e.which]?s[e.which]:l[e.which]?l[e.which]:String.fromCharCode(e.which).toLowerCase()}function m(e,t){return e.sort().join(",")===t.sort().join(",")}function v(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function y(e,t,n){return n||(n=function(){if(!u)for(var e in u={},s)e>95&&e<112||s.hasOwnProperty(e)&&(u[s[e]]=e);return u}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function g(e,t){var n,r,a,o=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),a=0;a1?d(e,u,n,r):(i=g(e,r),t._callbacks[i.key]=t._callbacks[i.key]||[],l(i.key,i.modifiers,{type:i.action},a,e,o),t._callbacks[i.key][a?"unshift":"push"]({callback:n,modifiers:i.modifiers,action:i.action,seq:a,level:o,combo:e}))}t._handleKey=function(e,t,n){var r,a=l(e,t,n),o={},f=0,d=!1;for(r=0;r-1}},function(e,t,n){var r=n(51);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(51),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():a.call(t,n,1),--this.size,0))}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(52),a=n(230),o=n(229),i=n(228),u=n(227),s=n(226);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=a,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=u,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(236),a=n(107),o=n(208),i=n(204),u=n(197),s=n(33),l=n(111),c=n(110),f=1,d="[object Arguments]",h="[object Array]",p="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,y,g){var _=s(e),b=s(t),E=_?h:u(e),x=b?h:u(t),w=(E=E==d?p:E)==p,k=(x=x==d?p:x)==p,P=E==x;if(P&&l(e)){if(!l(t))return!1;_=!0,w=!1}if(P&&!w)return g||(g=new r),_||c(e)?a(e,t,n,v,y,g):o(e,t,E,n,v,y,g);if(!(n&f)){var S=w&&m.call(e,"__wrapped__"),O=k&&m.call(t,"__wrapped__");if(S||O){var C=S?e.value():e,M=O?t.value():t;return g||(g=new r),y(C,M,n,v,g)}}return!!P&&(g||(g=new r),i(e,t,n,v,y,g))}},function(e,t,n){var r=n(237),a=n(34);e.exports=function e(t,n,o,i,u){return t===n||(null==t||null==n||!a(t)&&!a(n)?t!=t&&n!=n:r(t,n,o,i,e,u))}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(239)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(112),a=n(240),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){(function(e){var r=n(116),a="object"==typeof t&&t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,i=o&&o.exports===a&&r.process,u=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=u}).call(this,n(77)(e))},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(35),a=n(114),o=n(34),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&a(e.length)&&!!i[r(e)]}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(35),a=n(34),o="[object Arguments]";e.exports=function(e){return a(e)&&r(e)==o}},function(e,t,n){var r=n(246),a=n(34),o=Object.prototype,i=o.hasOwnProperty,u=o.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return a(e)&&i.call(e,"callee")&&!u.call(e,"callee")};e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){var r=n(252),a=n(118),o=n(66),i=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=i},function(e,t,n){var r=n(253),a=n(251)(r);e.exports=a},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(255),a=Math.max;e.exports=function(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var o=arguments,i=-1,u=a(o.length-t,0),s=Array(u);++i1?n[o-1]:void 0,u=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,u&&a(n[0],n[1],u)&&(i=o<3?void 0:i,o=1),t=Object(t);++r0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.props.handlers,a=void 0===r?{}:r,o=n.handlers,i=void 0===o?a:o;if(t||this.updateMap()||!(0,p.default)(a,i)){var u=this.getMap(),s=[],l=this.__mousetrap__;(0,h.default)(a,function(t,n){var r=function(e,t){var n=e[t];return n?(0,f.default)(n)?n:[n]:[t]}(u,n);(0,h.default)(r,function(n){var r=void 0;(0,d.default)(n)&&(r=n.action,n=n.sequence),s.push({callback:function(n,r){if(((0,c.default)(e.props.focused)?e.props.focused:e.__isFocused__)&&r!==e.__lastChildSequence__)return e.context.hotKeyParent&&e.context.hotKeyParent.childHandledSequence(r),t(n,r)},action:r,sequence:n})})}),l.reset(),(0,h.default)(s,function(e){return l.bind(e.sequence,e.callback,e.action)})}},childHandledSequence:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.__lastChildSequence__=e,this.context.hotKeyParent&&this.context.hotKeyParent.childHandledSequence(e)},onFocus:function(){var e;(this.__isFocused__=!0,this.props.onFocus)&&(e=this.props).onFocus.apply(e,arguments)},onBlur:function(){var e;(this.__isFocused__=!1,this.props.onBlur)&&(e=this.props).onBlur.apply(e,arguments);this.context.hotKeyParent&&this.context.hotKeyParent.childHandledSequence(null)},render:function(){var e=this.props,t=e.children,n=(e.keyMap,e.handlers,e.focused,e.attach,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","keyMap","handlers","focused","attach"]));return o.default.createElement(s.default,r({},n,{onFocus:this.onFocus,onBlur:this.onBlur}),t)}});t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=v(n(31)),a=v(n(13)),o=v(n(12)),i=v(n(11)),u=v(n(10)),s=v(n(9)),l=v(n(36)),c=n(1),f=v(c),d=v(n(2)),h=n(68),p=n(28),m=v(n(48));function v(e){return e&&e.__esModule?e:{default:e}}var y={name:d.default.string.isRequired,value:d.default.any.isRequired,originalValue:d.default.any,keyPath:d.default.array,deep:d.default.number,handleRemove:d.default.func,handleUpdateValue:d.default.func,readOnly:d.default.func.isRequired,dataType:d.default.string,getStyle:d.default.func.isRequired,editButtonElement:d.default.element,cancelButtonElement:d.default.element,inputElementGenerator:d.default.func.isRequired,minusMenuElement:d.default.element,logger:d.default.object.isRequired,onSubmitValueParser:d.default.func.isRequired},g={keyPath:[],deep:0,handleUpdateValue:function(){return l.default.resolve()},editButtonElement:f.default.createElement("button",null,"e"),cancelButtonElement:f.default.createElement("button",null,"c"),minusMenuElement:f.default.createElement("span",null," - ")},_=function(e){function t(e){(0,o.default)(this,t);var n=(0,u.default)(this,(t.__proto__||(0,a.default)(t)).call(this,e)),i=[].concat((0,r.default)(e.keyPath),[e.name]);return n.state={value:e.value,name:e.name,keyPath:i,deep:e.deep,editEnabled:!1,inputRef:null},n.handleEditMode=n.handleEditMode.bind(n),n.refInput=n.refInput.bind(n),n.handleCancelEdit=n.handleCancelEdit.bind(n),n.handleEdit=n.handleEdit.bind(n),n}return(0,s.default)(t,e),(0,i.default)(t,[{key:"componentWillReceiveProps",value:function(e){this.setState({value:e.value})}},{key:"componentDidUpdate",value:function(){var e=this.state,t=e.editEnabled,n=e.inputRef,r=e.name,a=e.value,o=e.keyPath,i=e.deep,u=this.props,s=(0,u.readOnly)(r,a,o,i,u.dataType);t&&!s&&"function"==typeof n.focus&&n.focus()}},{key:"handleEdit",value:function(){var e=this,t=this.props,n=t.handleUpdateValue,r=t.originalValue,a=t.logger,o=t.onSubmitValueParser,i=t.keyPath,u=this.state,s=u.inputRef,l=u.name,c=o(!0,i,u.deep,l,s.value);n({value:c,key:l}).then(function(){(0,p.isComponentWillChange)(r,c)||e.handleCancelEdit()}).catch(a.error)}},{key:"handleEditMode",value:function(){this.setState({editEnabled:!0})}},{key:"refInput",value:function(e){this.state.inputRef=e}},{key:"handleCancelEdit",value:function(){this.setState({editEnabled:!1})}},{key:"render",value:function(){var e=this.state,t=e.name,n=e.value,r=e.editEnabled,a=e.keyPath,o=e.deep,i=this.props,u=i.handleRemove,s=i.originalValue,l=i.readOnly,c=i.dataType,d=i.getStyle,p=i.editButtonElement,v=i.cancelButtonElement,y=i.inputElementGenerator,g=i.minusMenuElement,_=i.keyPath,b=d(t,s,a,o,c),E=null,x=null,w=l(t,s,a,o,c);if(r&&!w){var k=y(m.default.VALUE,_,o,t,s,c),P=f.default.cloneElement(p,{onClick:this.handleEdit}),S=f.default.cloneElement(v,{onClick:this.handleCancelEdit}),O=f.default.cloneElement(k,{ref:this.refInput,defaultValue:s});E=f.default.createElement("span",{className:"rejt-edit-form",style:b.editForm},O," ",S,P),x=null}else{E=f.default.createElement("span",{className:"rejt-value",style:b.value,onClick:w?null:this.handleEditMode},n);var C=f.default.cloneElement(g,{onClick:u,className:"rejt-minus-menu",style:b.minus});x=w?null:C}var M={esc:this.handleCancelEdit,enter:this.handleEdit};return f.default.createElement(h.HotKeys,{className:"rejt-value-node",component:"li",style:b.li,handlers:M},f.default.createElement("span",{className:"rejt-name",style:b.name},t," : "),E,x)}}]),t}(c.Component);_.propTypes=y,_.defaultProps=g,t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.INPUT_USAGE_TYPES=t.DATA_TYPES=t.UPDATE_DELTA_TYPE=t.REMOVE_DELTA_TYPE=t.ADD_DELTA_TYPE=t.JsonTree=void 0;var r=_(n(13)),a=_(n(12)),o=_(n(11)),i=_(n(10)),u=_(n(9)),s=_(n(36)),l=n(1),c=_(l),f=_(n(2)),d=_(n(69)),h=n(176),p=n(63),m=n(28),v=_(n(105)),y=_(n(48)),g=_(n(175));function _(e){return e&&e.__esModule?e:{default:e}}var b={data:f.default.any.isRequired,rootName:f.default.string,isCollapsed:f.default.func,onFullyUpdate:f.default.func,onDeltaUpdate:f.default.func,readOnly:f.default.oneOfType([f.default.bool,f.default.func]),getStyle:f.default.func,addButtonElement:f.default.element,cancelButtonElement:f.default.element,editButtonElement:f.default.element,inputElement:f.default.oneOfType([f.default.element,f.default.func]),textareaElement:f.default.oneOfType([f.default.element,f.default.func]),minusMenuElement:f.default.element,plusMenuElement:f.default.element,beforeRemoveAction:f.default.func,beforeAddAction:f.default.func,beforeUpdateAction:f.default.func,logger:f.default.object,onSubmitValueParser:f.default.func},E={rootName:"root",isCollapsed:function(e,t){return 0!==t},getStyle:function(e,t,n,r,a){switch(a){case"Object":case"Error":return h.object;case"Array":return h.array;default:return h.value}},readOnly:function(e,t,n,r,a){return!1},onFullyUpdate:function(e){},onDeltaUpdate:function(e,t,n,r,a,o){},beforeRemoveAction:function(e,t,n,r){return new s.default(function(e){return e()})},beforeAddAction:function(e,t,n,r){return new s.default(function(e){return e()})},beforeUpdateAction:function(e,t,n,r,a){return new s.default(function(e){return e()})},logger:{error:function(){}},onSubmitValueParser:function(e,t,n,r,a){return(0,g.default)(a)},inputElement:function(e,t,n,r,a,o){return c.default.createElement("input",null)},textareaElement:function(e,t,n,r,a,o){return c.default.createElement("textarea",null)}},x=function(e){function t(e){(0,a.default)(this,t);var n=(0,i.default)(this,(t.__proto__||(0,r.default)(t)).call(this,e));return n.state={data:e.data,rootName:e.rootName},n.onUpdate=n.onUpdate.bind(n),n}return(0,u.default)(t,e),(0,o.default)(t,[{key:"componentWillReceiveProps",value:function(e){this.setState({data:e.data,rootName:e.rootName})}},{key:"onUpdate",value:function(e,t){this.setState({data:t}),(0,this.props.onFullyUpdate)(t)}},{key:"render",value:function(){var e=this.state,t=e.data,n=e.rootName,r=this.props,a=r.isCollapsed,o=r.onDeltaUpdate,i=r.readOnly,u=r.getStyle,s=r.addButtonElement,l=r.cancelButtonElement,f=r.editButtonElement,h=r.inputElement,p=r.textareaElement,v=r.minusMenuElement,y=r.plusMenuElement,g=r.beforeRemoveAction,_=r.beforeAddAction,b=r.beforeUpdateAction,E=r.logger,x=r.onSubmitValueParser,w=(0,m.getObjectType)(t),k=null,P=i;"Boolean"===(0,m.getObjectType)(i)&&(P=function(){return i});var S=h;h&&"Function"!==(0,m.getObjectType)(h)&&(S=function(){return h});var O=p;return p&&"Function"!==(0,m.getObjectType)(p)&&(O=function(){return p}),k="Object"===w||"Array"===w?c.default.createElement(d.default,{data:t,name:n,collapsed:!1,deep:-1,isCollapsed:a,onUpdate:this.onUpdate,onDeltaUpdate:o,readOnly:P,getStyle:u,addButtonElement:s,cancelButtonElement:l,editButtonElement:f,inputElementGenerator:S,textareaElementGenerator:O,minusMenuElement:v,plusMenuElement:y,beforeRemoveAction:g,beforeAddAction:_,beforeUpdateAction:b,logger:E,onSubmitValueParser:x}):"Data must be an Array or Object",c.default.createElement("div",{className:"rejt-tree"},k)}}]),t}(l.Component);x.propTypes=b,x.defaultProps=E,t.JsonTree=x,t.ADD_DELTA_TYPE=p.ADD_DELTA_TYPE,t.REMOVE_DELTA_TYPE=p.REMOVE_DELTA_TYPE,t.UPDATE_DELTA_TYPE=p.UPDATE_DELTA_TYPE,t.DATA_TYPES=v.default,t.INPUT_USAGE_TYPES=y.default},function(e,t,n){"use strict";e.exports={links:[{source:"Androsynth",target:"Chenjesu"},{source:"Androsynth",target:"Ilwrath"},{source:"Androsynth",target:"Mycon"},{source:"Androsynth",target:"Spathi"},{source:"Androsynth",target:"Umgah"},{source:"Androsynth",target:"VUX"},{source:"Chenjesu",target:"Mycon"},{source:"Chenjesu",target:"Spathi"},{source:"Chenjesu",target:"Umgah"},{source:"Chenjesu",target:"VUX"},{source:"Ilwrath",target:"Spathi"},{source:"Ilwrath",target:"Umgah"},{source:"Ilwrath",target:"VUX"},{source:"Mycon",target:"Umgah"},{source:"Mycon",target:"VUX"},{source:"Umgah",target:"VUX"},{source:"Androsynth",target:"Guardian"},{source:"Chenjesu",target:"Broodhmome"},{source:"Ilwrath",target:"Avenger"},{source:"Mycon",target:"Podship"},{source:"Spathi",target:"Eluder"},{source:"Umgah",target:"Drone"},{source:"VUX",target:"Intruder"}],nodes:[{id:"Androsynth"},{id:"Chenjesu"},{id:"Ilwrath"},{id:"Mycon"},{id:"Spathi"},{id:"Umgah"},{id:"VUX"},{id:"Guardian",symbolType:"square"},{id:"Broodhmome",symbolType:"square"},{id:"Avenger",symbolType:"square"},{id:"Podship",symbolType:"square"},{id:"Eluder",symbolType:"square"},{id:"Drone",symbolType:"square"},{id:"Intruder",symbolType:"square"}]}},function(e,t,n){"use strict";e.exports={automaticRearrangeAfterDropNode:!1,collapsible:!1,height:400,highlightDegree:1,highlightOpacity:.2,linkHighlightBehavior:!0,maxZoom:8,minZoom:.1,nodeHighlightBehavior:!0,panAndZoom:!1,staticGraph:!1,width:800,node:{color:"#d3d3d3",fontColor:"black",fontSize:12,fontWeight:"normal",highlightColor:"red",highlightFontSize:12,highlightFontWeight:"bold",highlightStrokeColor:"SAME",highlightStrokeWidth:1.5,labelProperty:"name",mouseCursor:"pointer",opacity:1,renderLabel:!0,size:450,strokeColor:"none",strokeWidth:1.5,svg:"",symbolType:"circle"},link:{color:"#d3d3d3",opacity:1,semanticStrokeWidth:!1,strokeWidth:4,highlightColor:"blue"}}},function(e,t,n){"use strict";e.exports={directed:!0,automaticRearrangeAfterDropNode:!0,collapsible:!0,height:400,highlightDegree:2,highlightOpacity:.2,linkHighlightBehavior:!0,maxZoom:12,minZoom:.05,nodeHighlightBehavior:!0,panAndZoom:!1,staticGraph:!1,width:800,d3:{alphaTarget:.05,gravity:-250,linkLength:120,linkStrength:2},node:{color:"#d3d3d3",fontColor:"black",fontSize:10,fontWeight:"normal",highlightColor:"red",highlightFontSize:14,highlightFontWeight:"bold",highlightStrokeColor:"red",highlightStrokeWidth:1.5,labelProperty:function(e){return e.name?e.id+" - "+e.name:e.id},mouseCursor:"crosshair",opacity:.9,renderLabel:!0,size:200,strokeColor:"none",strokeWidth:1.5,svg:"",symbolType:"circle",viewGenerator:null},link:{color:"lightgray",highlightColor:"red",mouseCursor:"pointer",opacity:1,semanticStrokeWidth:!0,strokeWidth:3,type:"STRAIGHT"}}},function(e,t,n){(e.exports=n(133)(void 0)).push([e.i,".flex-container{display:flex}.flex-container,.flex-container-column{flex-direction:column}.flex-container-row{flex-direction:row}.fill-space{flex-grow:1}.icon{background-size:contain;background-position:50%;background-repeat:no-repeat}.icon,.person-node{width:100%;height:100%}.person-node{border-radius:35% 5% 35% 5%;overflow:hidden;box-sizing:border-box;display:flex}.person-node.male{background-color:#add8e6;box-shadow:25px 15px #5f9ea0}.person-node.female{background-color:pink;box-shadow:25px 15px #db7093}.person-node .name{padding:5%;font-size:.8rem;font-weight:700;text-align:center;text-transform:uppercase}.person-node .icon-bar{width:20%;margin-right:5%}.person-node .icon-bar>.icon{width:80%;height:30%}",""])},function(e,t,n){var r=n(275);"string"==typeof r&&(r=[[e.i,r,""]]);var a={transform:void 0};n(132)(r,a);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1));n(276);var a="./data/custom-node/res/images/",o={MAN:a+"man.svg",WOMAN:a+"girl.svg",CAR:a+"car.svg",BIKE:a+"bike.svg"};t.default=function(e){var t=e.person,n="male"===t.gender;return r.default.createElement("div",{className:"flex-container person-node "+(n?"male":"female")},r.default.createElement("div",{className:"name"},t.name),r.default.createElement("div",{className:"flex-container fill-space flex-container-row"},r.default.createElement("div",{className:"fill-space"},r.default.createElement("div",{className:"icon",style:{backgroundImage:"url('"+(n?o.MAN:o.WOMAN)+"')"}})),r.default.createElement("div",{className:"icon-bar"},t.hasBike&&r.default.createElement("div",{className:"icon",style:{backgroundImage:"url('"+o.BIKE+"')"}}),t.hasCar&&r.default.createElement("div",{className:"icon",style:{backgroundImage:"url('"+o.CAR+"')"}}))))}},function(e,t,n){"use strict";var r=o(n(1)),a=o(n(277));function o(e){return e&&e.__esModule?e:{default:e}}e.exports={automaticRearrangeAfterDropNode:!1,collapsible:!1,height:400,highlightDegree:1,highlightOpacity:.2,linkHighlightBehavior:!0,maxZoom:8,minZoom:.1,nodeHighlightBehavior:!0,panAndZoom:!1,staticGraph:!1,width:800,node:{color:"#d3d3d3",fontColor:"black",fontSize:12,fontWeight:"normal",highlightColor:"red",highlightFontSize:12,highlightFontWeight:"bold",highlightStrokeColor:"SAME",highlightStrokeWidth:1.5,labelProperty:"name",mouseCursor:"pointer",opacity:1,renderLabel:!1,size:700,strokeColor:"none",strokeWidth:1.5,svg:"",symbolType:"circle",viewGenerator:function(e){return r.default.createElement(a.default,{person:e})}},link:{color:"#d3d3d3",opacity:1,semanticStrokeWidth:!1,strokeWidth:4,highlightColor:"blue"}}},function(e,t,n){var r={"./custom-node/custom-node.config":278,"./marvel/marvel.config":274,"./small/small.config":273};function a(e){var t=o(e);return n(t)}function o(e){var t=r[e];if(!(t+1)){var n=new Error('Cannot find module "'+e+'".');throw n.code="MODULE_NOT_FOUND",n}return t}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id=279},function(e,t,n){"use strict";e.exports={links:[{source:1,target:2},{source:1,target:3},{source:1,target:4},{source:3,target:4}],nodes:[{id:1,name:"Node 1"},{id:2,name:"Node 2"},{id:3,name:"Node 3"},{id:4,name:"Node 4"}]}},function(e,t,n){"use strict";e.exports={links:[{source:"Marvel",target:"Heroes"},{source:"Marvel",target:"Villains"},{source:"Marvel",target:"Teams"},{source:"Heroes",target:"Spider-Man"},{source:"Heroes",target:"CAPTAIN MARVEL"},{source:"Heroes",target:"HULK"},{source:"Heroes",target:"Black Widow"},{source:"Heroes",target:"Daredevil"},{source:"Heroes",target:"Wolverine"},{source:"Heroes",target:"Captain America"},{source:"Heroes",target:"Iron Man"},{source:"Heroes",target:"THOR"},{source:"Villains",target:"Dr. Doom"},{source:"Villains",target:"Mystique"},{source:"Villains",target:"Red Skull"},{source:"Villains",target:"Ronan"},{source:"Villains",target:"Magneto"},{source:"Villains",target:"Thanos"},{source:"Villains",target:"Black Cat"},{source:"Teams",target:"Avengers"},{source:"Teams",target:"Guardians of the Galaxy"},{source:"Teams",target:"Defenders"},{source:"Teams",target:"X-Men"},{source:"Teams",target:"Fantastic Four"},{source:"Teams",target:"Inhumans"}],nodes:[{id:"Marvel",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/marvel.png",size:500,fontSize:18},{id:"Heroes",symbolType:"circle",color:"red",size:300},{id:"Villains",symbolType:"circle",color:"red",size:300},{id:"Teams",symbolType:"circle",color:"red",size:300},{id:"Spider-Man",name:"Peter Benjamin Parker",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/top_spiderman.png",size:400},{id:"CAPTAIN MARVEL",name:"Carol Danvers",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/top_captainmarvel.png",size:400},{id:"HULK",name:"Robert Bruce Banner",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/top_hulk.png",size:400},{id:"Black Widow",name:"Natasha Alianovna Romanova",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/top_blackwidow.png",size:400},{id:"Daredevil",name:"Matthew Michael Murdock",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/top_daredevil.png",size:400},{id:"Wolverine",name:"James Howlett",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/top_wolverine.png",size:400},{id:"Captain America",name:"Steven Rogers",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/top_captainamerica.png",size:400},{id:"Iron Man",name:"Tony Stark",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/top_ironman.png",size:400},{id:"THOR",name:"Thor Odinson",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/top_thor.png",size:400},{id:"Dr. Doom",name:"Victor von Doom",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/drdoom.png",size:400},{id:"Mystique",name:"Unrevealed",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/mystique.png",size:400},{id:"Red Skull",name:"Johann Shmidt",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/redskull.png",size:400},{id:"Ronan",name:"Ronan",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/ronan.png",size:400},{id:"Magneto",name:"Max Eisenhardt",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/magneto.png",size:400},{id:"Thanos",name:"Thanos",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/thanos.png",size:400},{id:"Black Cat",name:"Felicia Hardy",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/blackcat.png",size:400},{id:"Avengers",name:"",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/avengers.png",size:400},{id:"Guardians of the Galaxy",name:"",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/gofgalaxy.png",size:400},{id:"Defenders",name:"",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/defenders.png",size:400},{id:"X-Men",name:"",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/xmen.png",size:400},{id:"Fantastic Four",name:"",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/fantasticfour.png",size:400},{id:"Inhumans",name:"",svg:"http://marvel-force-chart.surge.sh/marvel_force_chart_img/inhumans.png",size:400}]}},function(e,t,n){"use strict";e.exports={links:[{source:1,target:2},{source:1,target:3},{source:1,target:4},{source:3,target:4}],nodes:[{id:1,name:"Mary",gender:"female",hasCar:!1,hasBike:!1},{id:2,name:"Roy",gender:"male",hasCar:!1,hasBike:!0},{id:3,name:"Frank",gender:"male",hasCar:!0,hasBike:!0},{id:4,name:"Melanie",gender:"female",hasCar:!0,hasBike:!1}]}},function(e,t,n){var r={"./custom-node/custom-node.data":282,"./marvel/marvel.data":281,"./small/small.data":280};function a(e){var t=o(e);return n(t)}function o(e){var t=r[e];if(!(t+1)){var n=new Error('Cannot find module "'+e+'".');throw n.code="MODULE_NOT_FOUND",n}return t}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id=283},function(e,t,n){"use strict";var r=new RegExp("%[a-f0-9]{2}","gi"),a=new RegExp("(%[a-f0-9]{2})+","gi");function o(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function i(e){try{return decodeURIComponent(e)}catch(a){for(var t=e.match(r),n=1;nencodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},function(e,t,n){"use strict";const r=n(285),a=n(284);function o(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function i(e,t){return t.decode?a(e):e}function u(e){const t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function s(e,t){const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=Object.assign({decode:!0,arrayFormat:"none"},t)),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const a of e.split("&")){let[e,o]=a.replace(/\+/g," ").split("=");o=void 0===o?null:i(o,t),n(i(e,t),o,r)}return Object.keys(r).sort().reduce((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(n):e[t]=n,e},Object.create(null))}t.extract=u,t.parse=s,t.stringify=((e,t)=>{!1===(t=Object.assign({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=(()=>{}));const n=function(e){switch(e.arrayFormat){case"index":return(t,n,r)=>null===n?[o(t,e),"[",r,"]"].join(""):[o(t,e),"[",o(r,e),"]=",o(n,e)].join("");case"bracket":return(t,n)=>null===n?[o(t,e),"[]"].join(""):[o(t,e),"[]=",o(n,e)].join("");default:return(t,n)=>null===n?o(t,e):[o(t,e),"=",o(n,e)].join("")}}(t);return e?Object.keys(e).sort(t.sort).map(r=>{const a=e[r];if(void 0===a)return"";if(null===a)return o(r,t);if(Array.isArray(a)){const e=[];for(const t of a.slice())void 0!==t&&e.push(n(r,t,e.length));return e.join("&")}return o(r,t)+"="+o(a,t)}).filter(e=>e.length>0).join("&"):""}),t.parseUrl=((e,t)=>({url:e.split("?")[0]||"",query:s(u(e),t)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(e){return e&&e.__esModule?e:{default:e}}(n(286)),o=n(127);function i(e,t){switch(e){case"link.type":return{type:"array",title:"link.type",items:{enum:Object.keys(o.LINE_TYPES)},uniqueItems:!0}}return{title:e,type:void 0===t?"undefined":r(t),default:t}}t.default={generateFormSchema:function e(t,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=!0,u=!1,s=void 0;try{for(var l,c=Object.keys(t)[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var f=l.value,d=n?n+"."+f:f;void 0!==t[f]&&null!==t[f]&&"function"!=typeof t[f]&&("object"===r(t[f])?e(t[d],d,a):a[d]=i(d,t[f]))}}catch(e){u=!0,s=e}finally{try{!o&&c.return&&c.return()}finally{if(u)throw s}}return a},loadDataset:function(){var e=a.default.parse(location.search),t=!1;if(e&&e.fullscreen&&(t=new Boolean(e.fullscreen)),e&&e.data){var r=e.data.toLowerCase();try{return{data:n(283)("./"+r+"/"+r+".data"),config:n(279)("./"+r+"/"+r+".config"),fullscreen:t}}catch(e){console.warn("dataset with name "+r+" not found, falling back to default, make sure it is a valid dataset")}}return{config:{},data:n(272),fullscreen:t}},setValue:function e(t,n,r){"string"==typeof n&&(n=n.split(".")),t[n[0]]||(t[n[0]]={}),n.length>1?e(t[n.shift()],n,r):t[n[0]]=r}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:a.default.DEFAULT_NODE_SIZE,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.SYMBOLS.CIRCLE;return(0,r.symbol)().size(function(){return e}).type(function(){return function(e){switch(e){case a.default.SYMBOLS.CIRCLE:return r.symbolCircle;case a.default.SYMBOLS.CROSS:return r.symbolCross;case a.default.SYMBOLS.DIAMOND:return r.symbolDiamond;case a.default.SYMBOLS.SQUARE:return r.symbolSquare;case a.default.SYMBOLS.STAR:return r.symbolStar;case a.default.SYMBOLS.TRIANGLE:return r.symbolTriangle;case a.default.SYMBOLS.WYE:return r.symbolWye;default:return r.symbolCircle}}(t)})()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildGraph=void 0;var r=Object.assign||function(e){for(var t=1;t=t&&e1&&void 0!==arguments[1]?arguments[1]:a.LINE_TYPES.STRAIGHT,s=n.x,l=n.y,c=o.x,f=o.y,d=function(e){return i[e]||i[a.LINE_TYPES.STRAIGHT]}(a.LINE_TYPES[u]||a.LINE_TYPES.STRAIGHT)(s,l,c,f);return"M"+s+","+l+"A"+d+","+d+" 0 0,1 "+c+","+f}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];return n._tick(p.updateNodeHighlightedValue(n.state.nodes,n.state.links,n.state.config,e,t))},n._tick=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return t?n.setState(e,t):n.setState(e)},n._zoomConfig=function(){return(0,s.select)("#"+n.state.id+"-"+c.default.GRAPH_WRAPPER_ID).call((0,l.zoom)().scaleExtent([n.state.config.minZoom,n.state.config.maxZoom]).on("zoom",n._zoomed))},n._zoomed=function(){var e=s.event.transform;(0,s.selectAll)("#"+n.state.id+"-"+c.default.GRAPH_CONTAINER_ID).attr("transform",e),n.state.config.panAndZoom&&n.setState({transform:e.k})},n.onMouseOverNode=function(e){n.props.onMouseOverNode&&n.props.onMouseOverNode(e),n.state.config.nodeHighlightBehavior&&n._setNodeHighlightedValue(e,!0)},n.onMouseOutNode=function(e){n.props.onMouseOutNode&&n.props.onMouseOutNode(e),n.state.config.nodeHighlightBehavior&&n._setNodeHighlightedValue(e,!1)},n.onMouseOverLink=function(e,t){n.props.onMouseOverLink&&n.props.onMouseOverLink(e,t),n.state.config.linkHighlightBehavior&&(n.state.highlightedLink={source:e,target:t},n._tick())},n.onMouseOutLink=function(e,t){n.props.onMouseOutLink&&n.props.onMouseOutLink(e,t),n.state.config.linkHighlightBehavior&&(n.state.highlightedLink=void 0,n._tick())},n.pauseSimulation=function(){return n.state.simulation.stop()},n.resetNodesPositions=function(){if(!n.state.config.staticGraph){for(var e in n.state.nodes){var t=n.state.nodes[e];t.fx&&t.fy&&(Reflect.deleteProperty(t,"fx"),Reflect.deleteProperty(t,"fy"))}n.state.simulation.alphaTarget(n.state.config.d3.alphaTarget).restart(),n._tick()}},n.restartSimulation=function(){return!n.state.config.staticGraph&&n.state.simulation.restart()},n.onClickNode=function(e){if(n.state.config.collapsible){var t=h.getTargetLeafConnections(e,n.state.links,n.state.config),r=h.toggleLinksMatrixConnections(n.state.links,t,n.state.config),a=h.toggleLinksConnections(n.state.d3Links,r);n._tick({links:r,d3Links:a},function(){return n.props.onClickNode&&n.props.onClickNode(e)})}else n.props.onClickNode&&n.props.onClickNode(e)},n.onClickGraph=function(e){n.state.enableFocusAnimation&&n.setState({enableFocusAnimation:!1}),"SVG"===e.target.tagName.toUpperCase()&&e.target.attributes.name.value==="svg-container-"+n.state.id&&n.props.onClickGraph&&n.props.onClickGraph()},n._generateFocusAnimationProps=function(){var e=n.state.focusedNodeId;return n.state.enableFocusAnimation&&(n.focusAnimationTimeout&&clearTimeout(n.focusAnimationTimeout),n.focusAnimationTimeout=setTimeout(function(){return n.setState({enableFocusAnimation:!1})},1e3*n.state.config.focusAnimationDuration)),{style:{transitionDuration:(n.state.enableFocusAnimation?n.state.config.focusAnimationDuration:0)+"s"},transform:e?n.state.focusTransformation:null}},n.props.id||v.default.throwErr(n.constructor.name,d.default.GRAPH_NO_ID_PROP),n.focusAnimationTimeout=null,n.state=p.initializeGraphState(n.props,n.state),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),a(t,[{key:"_graphForcesConfig",value:function(){this.state.simulation.nodes(this.state.d3Nodes).on("tick",this._tick);var e=(0,u.forceLink)(this.state.d3Links).id(function(e){return e.id}).distance(this.state.config.d3.linkLength).strength(this.state.config.d3.linkStrength);this.state.simulation.force(c.default.LINK_CLASS_NAME,e);var t=(0,i.drag)().on("start",this._onDragStart).on("drag",this._onDragMove).on("end",this._onDragEnd);(0,s.select)("#"+this.state.id+"-"+c.default.GRAPH_WRAPPER_ID).selectAll(".node").call(t)}}]),a(t,[{key:"componentWillReceiveProps",value:function(e){var t=p.checkForGraphElementsChanges(e,this.state),n=t.graphElementsUpdated,a=t.newGraphElements,o=n?p.initializeGraphState(e,this.state):this.state,i=e.config||{},u=p.checkForGraphConfigChanges(e,this.state),s=u.configUpdated,l=u.d3ConfigUpdated,c=s?v.default.merge(f.default,i):this.state.config;a&&this.pauseSimulation();var d=i.panAndZoom!==this.state.config.panAndZoom?1:this.state.transform,h=e.data.focusedNodeId,m=this.state.d3Nodes.find(function(e){return""+e.id==""+h}),y=p.getCenterAndZoomTransformation(m,this.state.config),g=this.props.data.focusedNodeId!==e.data.focusedNodeId;this.setState(r({},o,{config:c,configUpdated:s,d3ConfigUpdated:l,newGraphElements:a,transform:d,focusedNodeId:h,enableFocusAnimation:g,focusTransformation:y}))}},{key:"componentDidUpdate",value:function(){this.state.config.staticGraph&&this.pauseSimulation(),this.state.config.staticGraph||!this.state.newGraphElements&&!this.state.d3ConfigUpdated||(this._graphForcesConfig(),this.restartSimulation(),this.setState({newGraphElements:!1,d3ConfigUpdated:!1})),this.state.configUpdated&&(this._zoomConfig(),this.setState({configUpdated:!1}))}},{key:"componentDidMount",value:function(){this.state.config.staticGraph||this._graphForcesConfig(),this._zoomConfig()}},{key:"componentWillUnmount",value:function(){this.pauseSimulation()}},{key:"render",value:function(){var e=m.buildGraph(this.state.nodes,{onClickNode:this.onClickNode,onRightClickNode:this.props.onRightClickNode,onMouseOverNode:this.onMouseOverNode,onMouseOut:this.onMouseOutNode},this.state.d3Links,this.state.links,{onClickLink:this.props.onClickLink,onRightClickLink:this.props.onRightClickLink,onMouseOverLink:this.onMouseOverLink,onMouseOutLink:this.onMouseOutLink},this.state.config,this.state.highlightedNode,this.state.highlightedLink,this.state.transform),t=e.nodes,n=e.links,a=e.defs,i={height:this.state.config.height,width:this.state.config.width},u=this._generateFocusAnimationProps();return o.default.createElement("div",{id:this.state.id+"-"+c.default.GRAPH_WRAPPER_ID},o.default.createElement("svg",{name:"svg-container-"+this.state.id,style:i,onClick:this.onClickGraph},a,o.default.createElement("g",r({id:this.state.id+"-"+c.default.GRAPH_CONTAINER_ID},u),n,t)))}}]),t}();t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Link=t.Node=t.Graph=void 0;var r=i(n(293)),a=i(n(124)),o=i(n(125));function i(e){return e&&e.__esModule?e:{default:e}}t.Graph=r.default,t.Node=a.default,t.Link=o.default},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var a,o=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(o)?e:(a=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(a)+")")})}},function(e,t,n){(e.exports=n(133)(void 0)).push([e.i,"*{box-sizing:border-box}.container{margin:4px;overflow:hidden;position:fixed}.container>div{padding:1em}.container{display:grid;width:100%;grid-template-columns:450px 1fr;grid-auto-rows:minmax(100px,auto)}.container__graph{grid-column:1/4;grid-row:1/2;border:1px solid #000}.container__graph-info{margin-left:12px}.btn-margin-left{margin-left:4px}.container__graph-area{max-height:400px;border:1px dotted gray;margin-left:20px;margin-top:4px;z-index:1;overflow:hidden}.container__graph-data{grid-column:1/2;grid-row:2/3;margin-bottom:4px;z-index:2}.container__graph-config{grid-column:2/3;grid-row:2/3;margin-bottom:4px;z-index:2}.container__form{grid-column:5/6;grid-row:1/4;min-width:400px;z-index:3}.cross-icon{padding-right:8px}.cross-icon:hover{cursor:pointer}.form-wrapper{overflow-y:scroll;max-height:70vh}.json-data-container{max-height:250px;overflow:scroll}.reset-button,.submit-button{margin-top:22px}.reset-button{margin-left:8px}.invisible-button{background:transparent;border:none!important;font-size:0}",""])},function(e,t,n){var r=n(296);"string"==typeof r&&(r=[[e.i,r,""]]);var a={transform:void 0};n(132)(r,a);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(4)),a=i(n(1)),o=(i(n(2)),n(7));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.registry.widgets.BaseInput;return a.default.createElement(t,(0,r.default)({type:"number"},e,(0,o.rangeSpec)(e.schema)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(4)),a=o(n(1));o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.registry.widgets.BaseInput;return a.default.createElement(t,(0,r.default)({type:"url"},e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(1));a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.registry.widgets.BaseInput;return r.default.createElement(t,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(1));a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.id,n=e.options,a=e.placeholder,o=e.value,i=e.required,u=e.disabled,s=e.readonly,l=e.autofocus,c=e.onChange,f=e.onBlur,d=e.onFocus;return r.default.createElement("textarea",{id:t,className:"form-control",value:void 0===o?"":o,placeholder:a,required:i,disabled:u,readOnly:s,autoFocus:l,rows:n.rows,onBlur:f&&function(e){return f(t,e.target.value)},onFocus:d&&function(e){return d(t,e.target.value)},onChange:function(e){var t=e.target.value;return c(""===t?n.emptyValue:t)}})}o.defaultProps={autofocus:!1,options:{}},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(155)),a=i(n(1)),o=(i(n(2)),n(7));function i(e){return e&&e.__esModule?e:{default:e}}var u=new r.default(["number","integer"]);function s(e,t){var n=e.type,r=e.items;if(""!==t)return"array"===n&&r&&u.has(r.type)?t.map(o.asNumber):"boolean"===n?"true"===t:"number"===n?(0,o.asNumber)(t):t}function l(e,t){return t?[].slice.call(e.target.options).filter(function(e){return e.selected}).map(function(e){return e.value}):e.target.value}function c(e){var t=e.schema,n=e.id,r=e.options,o=e.value,i=e.required,u=e.disabled,c=e.readonly,f=e.multiple,d=e.autofocus,h=e.onChange,p=e.onBlur,m=e.onFocus,v=e.placeholder,y=r.enumOptions,g=r.enumDisabled,_=f?[]:"";return a.default.createElement("select",{id:n,multiple:f,className:"form-control",value:void 0===o?_:o,required:i,disabled:u||c,autoFocus:d,onBlur:p&&function(e){var r=l(e,f);p(n,s(t,r))},onFocus:m&&function(e){var r=l(e,f);m(n,s(t,r))},onChange:function(e){var n=l(e,f);h(s(t,n))}},!f&&!t.default&&a.default.createElement("option",{value:""},v),y.map(function(e,t){var n=e.value,r=e.label,o=g&&-1!=g.indexOf(n);return a.default.createElement("option",{key:t,value:n,disabled:o},r)}))}c.defaultProps={autofocus:!1},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(4)),a=i(n(1)),o=(i(n(2)),n(7));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.schema,n=e.value,i=e.registry.widgets.BaseInput;return a.default.createElement("div",{className:"field-range-wrapper"},a.default.createElement(i,(0,r.default)({type:"range"},e,(0,o.rangeSpec)(t))),a.default.createElement("span",{className:"range-view"},n))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(1));a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.options,n=e.value,a=e.required,o=e.disabled,i=e.readonly,u=e.autofocus,s=e.onChange,l=Math.random().toString(),c=t.enumOptions,f=t.inline;return r.default.createElement("div",{className:"field-radio-group"},c.map(function(e,t){var c=e.value===n,d=o||i?"disabled":"",h=r.default.createElement("span",null,r.default.createElement("input",{type:"radio",checked:c,name:l,required:a,value:e.value,disabled:o||i,autoFocus:u&&0===t,onChange:function(t){return s(e.value)}}),r.default.createElement("span",null,e.label));return f?r.default.createElement("label",{key:t,className:"radio-inline "+d},h):r.default.createElement("div",{key:t,className:"radio "+d},r.default.createElement("label",null,h))}))}o.defaultProps={autofocus:!1},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(4)),a=o(n(1));o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.registry.widgets.BaseInput;return a.default.createElement(t,(0,r.default)({type:"password"},e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(1));a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.id,n=e.value;return r.default.createElement("input",{type:"hidden",id:t,value:void 0===n?"":n})}},function(e,t,n){"use strict";var r=n(5),a=n(72),o=n(135);r(r.S,"Promise",{try:function(e){var t=a.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){"use strict";var r=n(5),a=n(3),o=n(6),i=n(136),u=n(134);r(r.P+r.R,"Promise",{finally:function(e){var t=i(this,a.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return u(t,e()).then(function(){return n})}:e,n?function(n){return u(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){var r=n(6).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){var r=n(6),a=n(84).set,o=r.MutationObserver||r.WebKitMutationObserver,i=r.process,u=r.Promise,s="process"==n(46)(i);e.exports=function(){var e,t,n,l=function(){var r,a;for(s&&(r=i.domain)&&r.exit();e;){a=e.fn,e=e.next;try{a()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(s)n=function(){i.nextTick(l)};else if(!o||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var c=u.resolve(void 0);n=function(){c.then(l)}}else n=function(){a.call(r,l)};else{var f=!0,d=document.createTextNode("");new o(l).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(r){var a={fn:r,next:void 0};t&&(t.next=a),e||(e=a,n()),t=a}}},function(e,t,n){"use strict";var r,a,o,i,u=n(44),s=n(6),l=n(19),c=n(80),f=n(5),d=n(14),h=n(43),p=n(82),m=n(38),v=n(136),y=n(84).set,g=n(310)(),_=n(72),b=n(135),E=n(309),x=n(134),w=s.TypeError,k=s.process,P=k&&k.versions,S=P&&P.v8||"",O=s.Promise,C="process"==c(k),M=function(){},N=a=_.f,T=!!function(){try{var e=O.resolve(1),t=(e.constructor={})[n(8)("species")]=function(e){e(M,M)};return(C||"function"==typeof PromiseRejectionEvent)&&e.then(M)instanceof t&&0!==S.indexOf("6.6")&&-1===E.indexOf("Chrome/66")}catch(e){}}(),A=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},R=function(e,t){if(!e._n){e._n=!0;var n=e._c;g(function(){for(var r=e._v,a=1==e._s,o=0,i=function(t){var n,o,i,u=a?t.ok:t.fail,s=t.resolve,l=t.reject,c=t.domain;try{u?(a||(2==e._h&&F(e),e._h=1),!0===u?n=r:(c&&c.enter(),n=u(r),c&&(c.exit(),i=!0)),n===t.promise?l(w("Promise-chain cycle")):(o=A(n))?o.call(n,s,l):s(n)):l(r)}catch(e){c&&!i&&c.exit(),l(e)}};n.length>o;)i(n[o++]);e._c=[],e._n=!1,t&&!e._h&&j(e)})}},j=function(e){y.call(s,function(){var t,n,r,a=e._v,o=D(e);if(o&&(t=b(function(){C?k.emit("unhandledRejection",a,e):(n=s.onunhandledrejection)?n({promise:e,reason:a}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",a)}),e._h=C||D(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},D=function(e){return 1!==e._h&&0===(e._a||e._c).length},F=function(e){y.call(s,function(){var t;C?k.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})})},I=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),R(t,!0))},U=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw w("Promise can't be resolved itself");(t=A(e))?g(function(){var r={_w:n,_d:!1};try{t.call(e,l(U,r,1),l(I,r,1))}catch(e){I.call(r,e)}}):(n._v=e,n._s=1,R(n,!1))}catch(e){I.call({_w:n,_d:!1},e)}}};T||(O=function(e){p(this,O,"Promise","_h"),h(e),r.call(this);try{e(l(U,this,1),l(I,this,1))}catch(e){I.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(83)(O.prototype,{then:function(e,t){var n=N(v(this,O));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=C?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&R(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=l(U,e,1),this.reject=l(I,e,1)},_.f=N=function(e){return e===O||e===i?new o(e):a(e)}),f(f.G+f.W+f.F*!T,{Promise:O}),n(39)(O,"Promise"),n(152)("Promise"),i=n(3).Promise,f(f.S+f.F*!T,"Promise",{reject:function(e){var t=N(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(u||!T),"Promise",{resolve:function(e){return x(u&&this===i?O:this,e)}}),f(f.S+f.F*!(T&&n(149)(function(e){O.all(e).catch(M)})),"Promise",{all:function(e){var t=this,n=N(t),r=n.resolve,a=n.reject,o=b(function(){var n=[],o=0,i=1;m(e,!1,function(e){var u=o++,s=!1;n.push(void 0),i++,t.resolve(e).then(function(e){s||(s=!0,n[u]=e,--i||r(n))},a)}),--i||r(n)});return o.e&&a(o.v),n.promise},race:function(e){var t=this,n=N(t),r=n.reject,a=b(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return a.e&&r(a.v),n.promise}})},function(e,t,n){n(85),n(41),n(57),n(311),n(308),n(307),e.exports=n(3).Promise},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=d(n(13)),a=d(n(12)),o=d(n(11)),i=d(n(10)),u=d(n(9)),s=d(n(36)),l=n(1),c=d(l),f=(d(n(2)),n(7));function d(e){return e&&e.__esModule?e:{default:e}}function h(e){var t=e.name,n=e.size,r=e.type;return new s.default(function(a,o){var i=new window.FileReader;i.onerror=o,i.onload=function(e){a({dataURL:function(e,t){return e.replace(";base64",";name="+t+";base64")}(e.target.result,t),name:t,size:n,type:r})},i.readAsDataURL(e)})}function p(e){var t=e.filesInfo;return 0===t.length?null:c.default.createElement("ul",{className:"file-info"},t.map(function(e,t){var n=e.name,r=e.size,a=e.type;return c.default.createElement("li",{key:t},c.default.createElement("strong",null,n)," (",a,", ",r," bytes)")}))}var m=function(e){function t(e){(0,a.default)(this,t);var n=(0,i.default)(this,(t.__proto__||(0,r.default)(t)).call(this,e));n.onChange=function(e){var t=n.props,r=t.multiple,a=t.onChange;(function(e){return s.default.all([].map.call(e,h))})(e.target.files).then(function(e){var t={values:e.map(function(e){return e.dataURL}),filesInfo:e};(0,f.setState)(n,t,function(){a(r?t.values:t.values[0])})})};var o=e.value,u=Array.isArray(o)?o:[o];return n.state={values:u,filesInfo:function(e){return e.filter(function(e){return void 0!==e}).map(function(e){var t=(0,f.dataURItoBlob)(e),n=t.blob;return{name:t.name,size:n.size,type:n.type}})}(u)},n}return(0,u.default)(t,e),(0,o.default)(t,[{key:"shouldComponentUpdate",value:function(e,t){return(0,f.shouldRender)(this,e,t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.multiple,r=t.id,a=t.readonly,o=t.disabled,i=t.autofocus,u=this.state.filesInfo;return c.default.createElement("div",null,c.default.createElement("p",null,c.default.createElement("input",{ref:function(t){return e.inputRef=t},id:r,type:"file",disabled:a||o,onChange:this.onChange,defaultValue:"",autoFocus:i,multiple:n})),c.default.createElement(p,{filesInfo:u}))}}]),t}(l.Component);m.defaultProps={autofocus:!1},t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(4)),a=o(n(1));o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.registry.widgets.BaseInput;return a.default.createElement(t,(0,r.default)({type:"email"},e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(4));t.utcToLocal=u,t.localToUTC=s;var a=i(n(1)),o=(i(n(2)),n(7));function i(e){return e&&e.__esModule?e:{default:e}}function u(e){if(!e)return"";var t=new Date(e);return(0,o.pad)(t.getFullYear(),4)+"-"+(0,o.pad)(t.getMonth()+1,2)+"-"+(0,o.pad)(t.getDate(),2)+"T"+(0,o.pad)(t.getHours(),2)+":"+(0,o.pad)(t.getMinutes(),2)+":"+(0,o.pad)(t.getSeconds(),2)+"."+(0,o.pad)(t.getMilliseconds(),3)}function s(e){if(e)return new Date(e).toJSON()}t.default=function(e){var t=e.value,n=e.onChange,o=e.registry.widgets.BaseInput;return a.default.createElement(o,(0,r.default)({type:"datetime-local"},e,{value:u(t),onChange:function(e){return n(s(e))}}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(4)),a=o(n(1));o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.onChange,n=e.registry.widgets.BaseInput;return a.default.createElement(n,(0,r.default)({type:"date"},e,{onChange:function(e){return t(e||void 0)}}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(4)),a=o(n(1));o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.disabled,n=e.readonly,o=e.registry.widgets.BaseInput;return a.default.createElement(o,(0,r.default)({type:"color"},e,{disabled:t||n}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(1));a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.id,n=e.disabled,a=e.options,o=e.value,i=e.autofocus,u=e.readonly,s=e.onChange,l=a.enumOptions,c=a.inline;return r.default.createElement("div",{className:"checkboxes",id:t},l.map(function(e,a){var f=-1!==o.indexOf(e.value),d=n||u?"disabled":"",h=r.default.createElement("span",null,r.default.createElement("input",{type:"checkbox",id:t+"_"+a,checked:f,disabled:n||u,autoFocus:i&&0===a,onChange:function(t){var n=l.map(function(e){return e.value});t.target.checked?s(function(e,t,n){var r=n.indexOf(e);return t.slice(0,r).concat(e,t.slice(r)).sort(function(e,t){return n.indexOf(e)>n.indexOf(t)})}(e.value,o,n)):s(function(e,t){return t.filter(function(t){return t!==e})}(e.value,o))}}),r.default.createElement("span",null,e.label));return c?r.default.createElement("label",{key:a,className:"checkbox-inline "+d},h):r.default.createElement("div",{key:a,className:"checkbox "+d},r.default.createElement("label",null,h))}))}o.defaultProps={autofocus:!1,options:{inline:!1}},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(1)),a=(o(n(2)),o(n(138)));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.schema,n=e.id,o=e.value,i=e.required,u=e.disabled,s=e.readonly,l=e.label,c=e.autofocus,f=e.onChange;return r.default.createElement("div",{className:"checkbox "+(u||s?"disabled":"")},t.description&&r.default.createElement(a.default,{description:t.description}),r.default.createElement("label",null,r.default.createElement("input",{type:"checkbox",id:n,checked:void 0!==o&&o,required:i,disabled:u||s,autoFocus:c,onChange:function(e){return f(e.target.checked)}}),r.default.createElement("span",null,l)))}i.defaultProps={autofocus:!1},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(4)),a=u(n(30)),o=u(n(73)),i=u(n(1));u(n(2));function u(e){return e&&e.__esModule?e:{default:e}}function s(e){if(!e.id)throw console.log("No id for",e),new Error("no id for props "+(0,o.default)(e));var t=e.value,n=e.readonly,u=e.disabled,s=e.autofocus,l=e.onBlur,c=e.onFocus,f=e.options,d=(e.schema,e.formContext,e.registry,e.rawErrors,(0,a.default)(e,["value","readonly","disabled","autofocus","onBlur","onFocus","options","schema","formContext","registry","rawErrors"]));d.type=f.inputType||d.type||"text";return i.default.createElement("input",(0,r.default)({className:"form-control",readOnly:n,disabled:u,autoFocus:s,value:null==t?"":t},d,{onChange:function(t){var n=t.target.value;return e.onChange(""===n?f.emptyValue:n)},onBlur:l&&function(e){return l(d.id,e.target.value)},onFocus:c&&function(e){return c(d.id,e.target.value)}}))}s.defaultProps={type:"text",required:!1,disabled:!1,readonly:!1,autofocus:!1},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(4)),a=i(n(1)),o=(i(n(2)),i(n(137)));function i(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=e.registry.widgets.AltDateWidget;return a.default.createElement(t,(0,r.default)({time:!0},e))}u.defaultProps=(0,r.default)({},o.default.defaultProps,{time:!0}),t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=x(n(137)),a=x(n(321)),o=x(n(320)),i=x(n(319)),u=x(n(318)),s=x(n(317)),l=x(n(316)),c=x(n(315)),f=x(n(314)),d=x(n(313)),h=x(n(306)),p=x(n(305)),m=x(n(304)),v=x(n(303)),y=x(n(302)),g=x(n(301)),_=x(n(300)),b=x(n(299)),E=x(n(298));function x(e){return e&&e.__esModule?e:{default:e}}t.default={BaseInput:o.default,PasswordWidget:p.default,RadioWidget:m.default,UpDownWidget:E.default,RangeWidget:v.default,SelectWidget:y.default,TextWidget:_.default,DateWidget:l.default,DateTimeWidget:c.default,AltDateWidget:r.default,AltDateTimeWidget:a.default,EmailWidget:f.default,URLWidget:b.default,TextareaWidget:g.default,HiddenWidget:h.default,ColorWidget:s.default,FileWidget:d.default,CheckboxWidget:i.default,CheckboxesWidget:u.default}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(1));a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}var o="*";t.default=function(e){var t=e.id,n=e.title,a=e.required?n+o:n;return r.default.createElement("legend",{id:t},a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(4)),a=u(n(30)),o=u(n(1)),i=(u(n(2)),n(7));function u(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.schema,n=e.name,u=e.uiSchema,s=e.idSchema,l=e.formData,c=e.required,f=e.disabled,d=e.readonly,h=e.autofocus,p=e.onChange,m=e.onBlur,v=e.onFocus,y=e.registry,g=void 0===y?(0,i.getDefaultRegistry)():y,_=e.rawErrors,b=t.title,E=t.format,x=g.widgets,w=g.formContext,k=(0,i.isSelect)(t)&&(0,i.optionsList)(t),P=E||(k?"select":"text"),S=(0,i.getUiOptions)(u),O=S.widget,C=void 0===O?P:O,M=S.placeholder,N=void 0===M?"":M,T=(0,a.default)(S,["widget","placeholder"]),A=(0,i.getWidget)(t,C,x);return o.default.createElement(A,{options:(0,r.default)({},T,{enumOptions:k}),schema:t,id:s&&s.$id,label:void 0===b?n:b,value:l,onChange:p,onBlur:m,onFocus:v,required:c,disabled:f,readonly:d,formContext:w,autofocus:h,registry:g,placeholder:N,rawErrors:_})}s.defaultProps={uiSchema:{},disabled:!1,readonly:!1,autofocus:!1},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(n(13)),a=p(n(12)),o=p(n(11)),i=p(n(10)),u=p(n(9)),s=p(n(4)),l=p(n(30)),c=p(n(27)),f=p(n(1)),d=(p(n(2)),n(7)),h=p(n(74));function p(e){return e&&e.__esModule?e:{default:e}}var m="*",v={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField"};function y(e){var t=e.label,n=e.required,r=e.id;return t?f.default.createElement("label",{className:"control-label",htmlFor:r},t,n&&f.default.createElement("span",{className:"required"},m)):f.default.createElement("div",null)}function g(e){var t=e.help;return t?"string"==typeof t?f.default.createElement("p",{className:"help-block"},t):f.default.createElement("div",{className:"help-block"},t):f.default.createElement("div",null)}function _(e){var t=e.errors,n=void 0===t?[]:t;return 0===n.length?f.default.createElement("div",null):f.default.createElement("div",null,f.default.createElement("p",null),f.default.createElement("ul",{className:"error-detail bs-callout bs-callout-info"},n.map(function(e,t){return f.default.createElement("li",{className:"text-danger",key:t},e)})))}function b(e){var t=e.id,n=e.classNames,r=e.label,a=e.children,o=e.errors,i=e.help,u=e.description,s=e.hidden,l=e.required,c=e.displayLabel;return s?a:f.default.createElement("div",{className:n},c&&f.default.createElement(y,{label:r,required:l,id:t}),c&&u?u:null,a,o,i)}function E(e){var t=e.uiSchema,n=e.formData,r=e.errorSchema,a=e.idPrefix,o=e.name,i=e.required,u=e.registry,p=void 0===u?(0,d.getDefaultRegistry)():u,m=p.definitions,y=p.fields,E=p.formContext,x=p.FieldTemplate,w=void 0===x?b:x,k=e.idSchema,P=(0,d.retrieveSchema)(e.schema,m,n),S=function(e,t,n,r){var a=t["ui:field"];if("function"==typeof a)return a;if("string"==typeof a&&a in r)return r[a];var o=v[(0,d.getSchemaType)(e)];return o in r?r[o]:function(){return f.default.createElement(h.default,{schema:e,idSchema:n,reason:"Unknown field type "+e.type})}}(P,t,k=(0,d.mergeObjects)((0,d.toIdSchema)(P,null,m,n,a),k),y),O=y.DescriptionField,C=Boolean(e.disabled||t["ui:disabled"]),M=Boolean(e.readonly||t["ui:readonly"]),N=Boolean(e.autofocus||t["ui:autofocus"]);if(0===(0,c.default)(P).length)return f.default.createElement("div",null);var T=(0,d.getUiOptions)(t).label,A=void 0===T||T;"array"===P.type&&(A=(0,d.isMultiSelect)(P,m)||(0,d.isFilesArray)(P,t,m)),"object"===P.type&&(A=!1),"boolean"!==P.type||t["ui:widget"]||(A=!1),t["ui:field"]&&(A=!1);var R=r.__errors,j=(0,l.default)(r,["__errors"]),D=f.default.createElement(S,(0,s.default)({},e,{idSchema:k,schema:P,uiSchema:(0,s.default)({},t,{classNames:void 0}),disabled:C,readonly:M,autofocus:N,errorSchema:j,formContext:E,rawErrors:R})),F=P.type,I=k.$id,U=t["ui:title"]||e.schema.title||P.title||o,L=t["ui:description"]||e.schema.description||P.description,z=R,V=t["ui:help"],$="hidden"===t["ui:widget"],B=["form-group","field","field-"+F,z&&z.length>0?"field-error has-error has-danger":"",t.classNames].join(" ").trim(),q={description:f.default.createElement(O,{id:I+"__description",description:L,formContext:E}),rawDescription:L,help:f.default.createElement(g,{help:V}),rawHelp:"string"==typeof V?V:void 0,errors:f.default.createElement(_,{errors:z}),rawErrors:z,id:I,label:U,hidden:$,required:i,disabled:C,readonly:M,displayLabel:A,classNames:B,formContext:E,fields:y,schema:P,uiSchema:t};return f.default.createElement(w,q,D)}b.defaultProps={hidden:!1,readonly:!1,required:!1,displayLabel:!0};var x=function(e){function t(){return(0,a.default)(this,t),(0,i.default)(this,(t.__proto__||(0,r.default)(t)).apply(this,arguments))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"shouldComponentUpdate",value:function(e,t){return!(0,d.deepEquals)((0,s.default)({},this.props,{idSchema:void 0}),(0,s.default)({},e,{idSchema:void 0}))}},{key:"render",value:function(){return E(this.props)}}]),t}(f.default.Component);x.defaultProps={uiSchema:{},errorSchema:{},idSchema:{},disabled:!1,readonly:!1,autofocus:!1},t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=m(n(73)),a=m(n(27)),o=m(n(37)),i=m(n(4)),u=m(n(13)),s=m(n(12)),l=m(n(11)),c=m(n(10)),f=m(n(9)),d=n(1),h=m(d),p=(m(n(2)),n(7));function m(e){return e&&e.__esModule?e:{default:e}}function v(e){var t=e.TitleField,n=e.DescriptionField;return h.default.createElement("fieldset",null,(e.uiSchema["ui:title"]||e.title)&&h.default.createElement(t,{id:e.idSchema.$id+"__title",title:e.title||e.uiSchema["ui:title"],required:e.required,formContext:e.formContext}),e.description&&h.default.createElement(n,{id:e.idSchema.$id+"__description",description:e.description,formContext:e.formContext}),e.properties.map(function(e){return e.content}))}var y=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var l=arguments.length,f=Array(l),d=0;d1?arguments[1]:void 0)}}),n(89)("includes")},function(e,t,n){n(330),e.exports=n(3).Array.includes},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=g(n(27)),a=g(n(37)),o=g(n(31)),i=g(n(13)),u=g(n(12)),s=g(n(11)),l=g(n(10)),c=g(n(9)),f=g(n(4)),d=g(n(30)),h=n(1),p=g(h),m=(g(n(2)),g(n(331))),v=g(n(74)),y=n(7);function g(e){return e&&e.__esModule?e:{default:e}}function _(e){var t=e.TitleField,n=e.idSchema,r=e.title,a=e.required;if(!r)return p.default.createElement("div",null);var o=n.$id+"__title";return p.default.createElement(t,{id:o,title:r,required:a})}function b(e){var t=e.DescriptionField,n=e.idSchema,r=e.description;if(!r)return p.default.createElement("div",null);var a=n.$id+"__description";return p.default.createElement(t,{id:a,description:r})}function E(e){var t=e.type,n=void 0===t?"default":t,r=e.icon,a=e.className,o=(0,d.default)(e,["type","icon","className"]);return p.default.createElement("button",(0,f.default)({type:"button",className:"btn btn-"+n+" "+a},o),p.default.createElement("i",{className:"glyphicon glyphicon-"+r}))}function x(e){var t={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return p.default.createElement("div",{key:e.index,className:e.className},p.default.createElement("div",{className:e.hasToolbar?"col-xs-9":"col-xs-12"},e.children),e.hasToolbar&&p.default.createElement("div",{className:"col-xs-3 array-item-toolbox"},p.default.createElement("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"}},(e.hasMoveUp||e.hasMoveDown)&&p.default.createElement(E,{icon:"arrow-up",className:"array-item-move-up",tabIndex:"-1",style:t,disabled:e.disabled||e.readonly||!e.hasMoveUp,onClick:e.onReorderClick(e.index,e.index-1)}),(e.hasMoveUp||e.hasMoveDown)&&p.default.createElement(E,{icon:"arrow-down",className:"array-item-move-down",tabIndex:"-1",style:t,disabled:e.disabled||e.readonly||!e.hasMoveDown,onClick:e.onReorderClick(e.index,e.index+1)}),e.hasRemove&&p.default.createElement(E,{type:"danger",icon:"remove",className:"array-item-remove",tabIndex:"-1",style:t,disabled:e.disabled||e.readonly,onClick:e.onDropIndexClick(e.index)}))))}function w(e){return p.default.createElement("fieldset",{className:e.className},p.default.createElement(_,{key:"array-field-title-"+e.idSchema.$id,TitleField:e.TitleField,idSchema:e.idSchema,title:e.uiSchema["ui:title"]||e.title,required:e.required}),(e.uiSchema["ui:description"]||e.schema.description)&&p.default.createElement("div",{className:"field-description",key:"field-description-"+e.idSchema.$id},e.uiSchema["ui:description"]||e.schema.description),p.default.createElement("div",{className:"row array-item-list",key:"array-item-list-"+e.idSchema.$id},e.items&&e.items.map(x)),e.canAdd&&p.default.createElement(S,{onClick:e.onAddClick,disabled:e.disabled||e.readonly}))}function k(e){return p.default.createElement("fieldset",{className:e.className},p.default.createElement(_,{key:"array-field-title-"+e.idSchema.$id,TitleField:e.TitleField,idSchema:e.idSchema,title:e.uiSchema["ui:title"]||e.title,required:e.required}),(e.uiSchema["ui:description"]||e.schema.description)&&p.default.createElement(b,{key:"array-field-description-"+e.idSchema.$id,DescriptionField:e.DescriptionField,idSchema:e.idSchema,description:e.uiSchema["ui:description"]||e.schema.description}),p.default.createElement("div",{className:"row array-item-list",key:"array-item-list-"+e.idSchema.$id},e.items&&e.items.map(function(e){return x(e)})),e.canAdd&&p.default.createElement(S,{onClick:e.onAddClick,disabled:e.disabled||e.readonly}))}var P=function(e){function t(){var e,n,r,s;(0,u.default)(this,t);for(var c=arguments.length,d=Array(c),h=0;he&&(i[s-1]=u[s])}o(a.filter(function(t,n){return n!==e}),i)}},r.onReorderClick=function(e,t){return function(n){n&&(n.preventDefault(),n.target.blur());var a=r.props,o=a.formData,i=a.onChange,u=void 0;if(r.props.errorSchema){u={};var s=r.props.errorSchema;for(var l in s)l==e?u[t]=s[e]:l==t?u[e]=s[t]:u[l]=s[l]}i(o.map(function(n,r){return r==t?o[e]:r==e?o[t]:n}),u)}},r.onChangeForIndex=function(e){return function(t,n){var o=r.props,i=o.formData;(0,o.onChange)(i.map(function(n,r){return e===r?void 0===t?null:t:n}),n&&r.props.errorSchema&&(0,f.default)({},r.props.errorSchema,(0,a.default)({},e,n)))}},r.onSelectChange=function(e){r.props.onChange(e)},s=n,(0,l.default)(r,s)}return(0,c.default)(t,e),(0,s.default)(t,[{key:"isItemRequired",value:function(e){return Array.isArray(e.type)?!(0,m.default)(e.type,"null"):"null"!==e.type}},{key:"canAddItem",value:function(e){var t=this.props,n=t.schema,r=t.uiSchema,a=(0,y.getUiOptions)(r).addable;return!1!==a&&(a=void 0===n.maxItems||e.length0,canMoveDown:u=C.length,l=s?(0,y.retrieveSchema)(n.additionalItems,k,t):C[a],c=u.$id+"_"+a,f=(0,y.toIdSchema)(l,c,k,t,i),h=s?r.additionalItems||{}:Array.isArray(r.items)?r.items[a]:r.items||{},p=o?o[a]:void 0;return e.renderArrayFieldItem({index:a,canRemove:s,canMoveUp:a>=C.length+1,canMoveDown:s&&a1?arguments[1]:void 0,n),s=i>2?arguments[2]:void 0,l=void 0===s?n:a(s,n);l>u;)t[u++]=e;return t}},function(e,t,n){var r=n(5);r(r.P,"Array",{fill:n(334)}),n(89)("fill")},function(e,t,n){n(335),e.exports=n(3).Array.fill},function(e){e.exports={$schema:"http://json-schema.org/draft-06/schema#",$id:"http://json-schema.org/draft-06/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},title:{type:"string"},description:{type:"string"},default:{},examples:{type:"array",items:{}},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:{},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:{}}},function(e){e.exports={$schema:"http://json-schema.org/draft-06/schema#",$id:"https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/$data.json#",description:"Meta-schema for $data reference (JSON-schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,a,o=" ",i=e.level,u=e.dataLevel,s=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,f=!e.opts.allErrors,d="data"+(u||""),h="valid"+i,p="errs__"+i,m=e.opts.$data&&s&&s.$data;m?(o+=" var schema"+i+" = "+e.util.getData(s.$data,u,e.dataPathArr)+"; ",a="schema"+i):a=s;var v,y,g,_,b,E="definition"+i,x=this.definition,w="";if(m&&x.$data){b="keywordValidate"+i;var k=x.validateSchema;o+=" var "+E+" = RULES.custom['"+t+"'].definition; var "+b+" = "+E+".validate;"}else{if(!(_=e.useCustomRule(this,s,e.schema,e)))return;a="validate.schema"+l,b=_.code,v=x.compile,y=x.inline,g=x.macro}var P=b+".errors",S="i"+i,O="ruleErr"+i,C=x.async;if(C&&!e.async)throw new Error("async keyword in sync schema");if(y||g||(o+=P+" = null;"),o+="var "+p+" = errors;var "+h+";",m&&x.$data&&(w+="}",o+=" if ("+a+" === undefined) { "+h+" = true; } else { ",k&&(w+="}",o+=" "+h+" = "+E+".validateSchema("+a+"); if ("+h+") { ")),y)x.statements?o+=" "+_.validate+" ":o+=" "+h+" = "+_.validate+"; ";else if(g){var M=e.util.copy(e);w="";M.level++;var N="valid"+M.level;M.schema=_.validate,M.schemaPath="";var T=e.compositeRule;e.compositeRule=M.compositeRule=!0;var A=e.validate(M).replace(/validate\.schema/g,b);e.compositeRule=M.compositeRule=T,o+=" "+A}else{(F=F||[]).push(o),o="",o+=" "+b+".call( ",e.opts.passContext?o+="this":o+="self",v||!1===x.schema?o+=" , "+d+" ":o+=" , "+a+" , "+d+" , validate.schema"+e.schemaPath+" ",o+=" , (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath);var R=u?"data"+(u-1||""):"parentData",j=u?e.dataPathArr[u]:"parentDataProperty",D=o+=" , "+R+" , "+j+" , rootData ) ";o=F.pop(),!1===x.errors?(o+=" "+h+" = ",C&&(o+=""+e.yieldAwait),o+=D+"; "):o+=C?" var "+(P="customErrors"+i)+" = null; try { "+h+" = "+e.yieldAwait+D+"; } catch (e) { "+h+" = false; if (e instanceof ValidationError) "+P+" = e.errors; else throw e; } ":" "+P+" = null; "+h+" = "+D+"; "}if(x.modifying&&(o+=" if ("+R+") "+d+" = "+R+"["+j+"];"),o+=""+w,x.valid)f&&(o+=" if (true) { ");else{var F;o+=" if ( ",void 0===x.valid?(o+=" !",o+=g?""+N:""+h):o+=" "+!x.valid+" ",o+=") { ",r=this.keyword,(F=F||[]).push(o),o="",(F=F||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(r||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { keyword: '"+this.keyword+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should pass \""+this.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),o+=" } "):o+=" {} ";var I=o;o=F.pop(),!e.compositeRule&&f?e.async?o+=" throw new ValidationError(["+I+"]); ":o+=" validate.errors = ["+I+"]; return false; ":o+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var U=o;o=F.pop(),y?x.errors?"full"!=x.errors&&(o+=" for (var "+S+"="+p+"; "+S+" 1) { var i = "+f+".length, j; outer: for (;i--;) { for (j = i; j--;) { if (equal("+f+"[i], "+f+"[j])) { "+d+" = false; break outer; } } } } ",h&&(a+=" } "),a+=" if (!"+d+") { ";var p=p||[];p.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(a+=" , schema: ",a+=h?"validate.schema"+s:""+u,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),a+=" } "):a+=" {} ";var m=a;a=p.pop(),!e.compositeRule&&c?e.async?a+=" throw new ValidationError(["+m+"]); ":a+=" validate.errors = ["+m+"]; return false; ":a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",c&&(a+=" else { ")}else c&&(a+=" if (true) { ");return a}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",a=e.level,o=e.dataLevel,i=e.schema[t],u=e.schemaPath+e.util.getProperty(t),s=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,c="data"+(o||""),f="valid"+a,d=e.opts.$data&&i&&i.$data;d&&(r+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ");var h="schema"+a;if(!d)if(i.length=e.opts.loopRequired,x=e.opts.ownProperties;if(l)if(r+=" var missing"+a+"; ",E){d||(r+=" var "+h+" = validate.schema"+u+"; ");var w="' + "+(M="schema"+a+"["+(S="i"+a)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(b,M,e.opts.jsonPointers)),r+=" var "+f+" = true; ",d&&(r+=" if (schema"+a+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+a+")) "+f+" = false; else {"),r+=" for (var "+S+" = 0; "+S+" < "+h+".length; "+S+"++) { "+f+" = "+c+"["+h+"["+S+"]] !== undefined ",x&&(r+=" && Object.prototype.hasOwnProperty.call("+c+", "+h+"["+S+"]) "),r+="; if (!"+f+") break; } ",d&&(r+=" } "),r+=" if (!"+f+") { ",(C=C||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(s)+" , params: { missingProperty: '"+w+"' } ",!1!==e.opts.messages&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+w+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var k=r;r=C.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+k+"]); ":r+=" validate.errors = ["+k+"]; return false; ":r+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else{r+=" if ( ";var P=p;if(P)for(var S=-1,O=P.length-1;S5)r+=" || validate.schema"+u+"["+v+"] ";else{var F=E;if(F)for(var I=-1,U=F.length-1;I= "+ve+"; ",s=e.errSchemaPath+"/patternGroups/minimum",r+=" if (!"+f+") { ",(Ee=Ee||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'patternGroups' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(s)+" , params: { reason: '"+_e+"', limit: "+ge+", pattern: '"+e.util.escapeQuotes(de)+"' } ",!1!==e.opts.messages&&(r+=" , message: 'should NOT have "+be+" than "+ge+' properties matching pattern "'+e.util.escapeQuotes(de)+"\"' "),e.opts.verbose&&(r+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";H=r;r=Ee.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+H+"]); ":r+=" validate.errors = ["+H+"]; return false; ":r+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",void 0!==ye&&(r+=" else ")}if(void 0!==ye){var Ee;ge=ye,_e="maximum",be="more";r+=" "+f+" = pgPropCount"+a+" <= "+ye+"; ",s=e.errSchemaPath+"/patternGroups/maximum",r+=" if (!"+f+") { ",(Ee=Ee||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'patternGroups' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(s)+" , params: { reason: '"+_e+"', limit: "+ge+", pattern: '"+e.util.escapeQuotes(de)+"' } ",!1!==e.opts.messages&&(r+=" , message: 'should NOT have "+be+" than "+ge+' properties matching pattern "'+e.util.escapeQuotes(de)+"\"' "),e.opts.verbose&&(r+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";H=r;r=Ee.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+H+"]); ":r+=" validate.errors = ["+H+"]; return false; ":r+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } "}s=G,l&&(r+=" if ("+f+") { ",p+="}")}}}}return l&&(r+=" "+p+" if ("+d+" == errors) {"),r=e.util.cleanUpCode(r)}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,a=" ",o=e.level,i=e.dataLevel,u=e.schema[t],s=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,f="data"+(i||""),d=e.opts.$data&&u&&u.$data;d?(a+=" var schema"+o+" = "+e.util.getData(u.$data,i,e.dataPathArr)+"; ",r="schema"+o):r=u;var h=d?"(new RegExp("+r+"))":e.usePattern(u);a+="if ( ",d&&(a+=" ("+r+" !== undefined && typeof "+r+" != 'string') || "),a+=" !"+h+".test("+f+") ) { ";var p=p||[];p.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { pattern: ",a+=d?""+r:""+e.util.toQuotedString(u),a+=" } ",!1!==e.opts.messages&&(a+=" , message: 'should match pattern \"",a+=d?"' + "+r+" + '":""+e.util.escapeQuotes(u),a+="\"' "),e.opts.verbose&&(a+=" , schema: ",a+=d?"validate.schema"+s:""+e.util.toQuotedString(u),a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),a+=" } "):a+=" {} ";var m=a;return a=p.pop(),!e.compositeRule&&c?e.async?a+=" throw new ValidationError(["+m+"]); ":a+=" validate.errors = ["+m+"]; return false; ":a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",c&&(a+=" else { "),a}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",a=e.level,o=e.dataLevel,i=e.schema[t],u=e.schemaPath+e.util.getProperty(t),s=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,c="data"+(o||""),f="valid"+a,d="errs__"+a,h=e.util.copy(e),p="";h.level++;var m="valid"+h.level;r+="var "+d+" = errors;var prevValid"+a+" = false;var "+f+" = false;";var v=h.baseId,y=e.compositeRule;e.compositeRule=h.compositeRule=!0;var g=i;if(g)for(var _,b=-1,E=g.length-1;b 1e-"+e.opts.multipleOfPrecision+" ":a+=" division"+o+" !== parseInt(division"+o+") ",a+=" ) ",d&&(a+=" ) "),a+=" ) { ";var h=h||[];h.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { multipleOf: "+r+" } ",!1!==e.opts.messages&&(a+=" , message: 'should be multiple of ",a+=d?"' + "+r:r+"'"),e.opts.verbose&&(a+=" , schema: ",a+=d?"validate.schema"+s:""+u,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),a+=" } "):a+=" {} ";var p=a;return a=h.pop(),!e.compositeRule&&c?e.async?a+=" throw new ValidationError(["+p+"]); ":a+=" validate.errors = ["+p+"]; return false; ":a+=" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",c&&(a+=" else { "),a}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",a=e.level,o=e.dataLevel,i=e.schema[t],u=e.schemaPath+e.util.getProperty(t),s=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,c="data"+(o||""),f="valid"+a,d="errs__"+a,h=e.util.copy(e),p="";h.level++;var m="valid"+h.level,v="i"+a,y=h.dataLevel=e.dataLevel+1,g="data"+y,_=e.baseId;if(r+="var "+d+" = errors;var "+f+";",Array.isArray(i)){var b=e.schema.additionalItems;if(!1===b){r+=" "+f+" = "+c+".length <= "+i.length+"; ";var E=s;s=e.errSchemaPath+"/additionalItems",r+=" if (!"+f+") { ";var x=x||[];x.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(s)+" , params: { limit: "+i.length+" } ",!1!==e.opts.messages&&(r+=" , message: 'should NOT have more than "+i.length+" items' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var w=r;r=x.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",s=E,l&&(p+="}",r+=" else { ")}var k=i;if(k)for(var P,S=-1,O=k.length-1;S "+S+") { ";var C=c+"["+S+"]";h.schema=P,h.schemaPath=u+"["+S+"]",h.errSchemaPath=s+"/"+S,h.errorPath=e.util.getPathExpr(e.errorPath,S,e.opts.jsonPointers,!0),h.dataPathArr[y]=S;var M=e.validate(h);h.baseId=_,e.util.varOccurences(M,g)<2?r+=" "+e.util.varReplace(M,g,C)+" ":r+=" var "+g+" = "+C+"; "+M+" ",r+=" } ",l&&(r+=" if ("+m+") { ",p+="}")}if("object"==typeof b&&e.util.schemaHasRules(b,e.RULES.all)){h.schema=b,h.schemaPath=e.schemaPath+".additionalItems",h.errSchemaPath=e.errSchemaPath+"/additionalItems",r+=" "+m+" = true; if ("+c+".length > "+i.length+") { for (var "+v+" = "+i.length+"; "+v+" < "+c+".length; "+v+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);C=c+"["+v+"]";h.dataPathArr[y]=v;M=e.validate(h);h.baseId=_,e.util.varOccurences(M,g)<2?r+=" "+e.util.varReplace(M,g,C)+" ":r+=" var "+g+" = "+C+"; "+M+" ",l&&(r+=" if (!"+m+") break; "),r+=" } } ",l&&(r+=" if ("+m+") { ",p+="}")}}else if(e.util.schemaHasRules(i,e.RULES.all)){h.schema=i,h.schemaPath=u,h.errSchemaPath=s,r+=" for (var "+v+" = 0; "+v+" < "+c+".length; "+v+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);C=c+"["+v+"]";h.dataPathArr[y]=v;M=e.validate(h);h.baseId=_,e.util.varOccurences(M,g)<2?r+=" "+e.util.varReplace(M,g,C)+" ":r+=" var "+g+" = "+C+"; "+M+" ",l&&(r+=" if (!"+m+") break; "),r+=" }"}return l&&(r+=" "+p+" if ("+d+" == errors) {"),r=e.util.cleanUpCode(r)}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",a=e.level,o=e.dataLevel,i=e.schema[t],u=e.schemaPath+e.util.getProperty(t),s=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,c="data"+(o||"");if(!1===e.opts.format)return l&&(r+=" if (true) { "),r;var f,d=e.opts.$data&&i&&i.$data;d?(r+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ",f="schema"+a):f=i;var h=e.opts.unknownFormats,p=Array.isArray(h);if(d){r+=" var "+(m="format"+a)+" = formats["+f+"]; var "+(v="isObject"+a)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(y="formatType"+a)+" = "+v+" && "+m+".type || 'string'; if ("+v+") { ",e.async&&(r+=" var async"+a+" = "+m+".async; "),r+=" "+m+" = "+m+".validate; } if ( ",d&&(r+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),r+=" (","ignore"!=h&&(r+=" ("+f+" && !"+m+" ",p&&(r+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),r+=") || "),r+=" ("+m+" && "+y+" == '"+n+"' && !(typeof "+m+" == 'function' ? ",e.async?r+=" (async"+a+" ? "+e.yieldAwait+" "+m+"("+c+") : "+m+"("+c+")) ":r+=" "+m+"("+c+") ",r+=" : "+m+".test("+c+"))))) {"}else{var m;if(!(m=e.formats[i])){if("ignore"==h)return e.logger.warn('unknown format "'+i+'" ignored in schema at path "'+e.errSchemaPath+'"'),l&&(r+=" if (true) { "),r;if(p&&h.indexOf(i)>=0)return l&&(r+=" if (true) { "),r;throw new Error('unknown format "'+i+'" is used in schema at path "'+e.errSchemaPath+'"')}var v,y=(v="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(v){var g=!0===m.async;m=m.validate}if(y!=n)return l&&(r+=" if (true) { "),r;if(g){if(!e.async)throw new Error("async format in sync schema");var _="formats"+e.util.getProperty(i)+".validate";r+=" if (!("+e.yieldAwait+" "+_+"("+c+"))) { "}else{r+=" if (! ";_="formats"+e.util.getProperty(i);v&&(_+=".validate"),r+="function"==typeof m?" "+_+"("+c+") ":" "+_+".test("+c+") ",r+=") { "}}var b=b||[];b.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(s)+" , params: { format: ",r+=d?""+f:""+e.util.toQuotedString(i),r+=" } ",!1!==e.opts.messages&&(r+=" , message: 'should match format \"",r+=d?"' + "+f+" + '":""+e.util.escapeQuotes(i),r+="\"' "),e.opts.verbose&&(r+=" , schema: ",r+=d?"validate.schema"+u:""+e.util.toQuotedString(i),r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var E=r;return r=b.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+E+"]); ":r+=" validate.errors = ["+E+"]; return false; ":r+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",l&&(r+=" else { "),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",a=e.level,o=e.dataLevel,i=e.schema[t],u=e.schemaPath+e.util.getProperty(t),s=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,c="data"+(o||""),f="valid"+a,d=e.opts.$data&&i&&i.$data;d&&(r+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ");var h="i"+a,p="schema"+a;d||(r+=" var "+p+" = validate.schema"+u+";"),r+="var "+f+";",d&&(r+=" if (schema"+a+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+a+")) "+f+" = false; else {"),r+=f+" = false;for (var "+h+"=0; "+h+"<"+p+".length; "+h+"++) if (equal("+c+", "+p+"["+h+"])) { "+f+" = true; break; }",d&&(r+=" } "),r+=" if (!"+f+") { ";var m=m||[];m.push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(s)+" , params: { allowedValues: schema"+a+" } ",!1!==e.opts.messages&&(r+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(r+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var v=r;return r=m.pop(),!e.compositeRule&&l?e.async?r+=" throw new ValidationError(["+v+"]); ":r+=" validate.errors = ["+v+"]; return false; ":r+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",l&&(r+=" else { "),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=" ",a=e.level,o=e.dataLevel,i=e.schema[t],u=e.schemaPath+e.util.getProperty(t),s=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,c="data"+(o||""),f="errs__"+a,d=e.util.copy(e),h="";d.level++;var p="valid"+d.level,m={},v={},y=e.opts.ownProperties;for(E in i){var g=i[E],_=Array.isArray(g)?v:m;_[E]=g}r+="var "+f+" = errors;";var b=e.errorPath;for(var E in r+="var missing"+a+";",v)if((_=v[E]).length){if(r+=" if ( "+c+e.util.getProperty(E)+" !== undefined ",y&&(r+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(E)+"') "),l){r+=" && ( ";var x=_;if(x)for(var w=-1,k=x.length-1;w%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,c=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,f=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,d=/^(?:\/(?:[^~/]|~0|~1)*)*$|^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,h=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function p(e){return e="full"==e?"full":"fast",r.copy(p[e])}function m(e){var t=e.match(a);if(!t)return!1;var n=+t[1],r=+t[2];return n>=1&&n<=12&&r>=1&&r<=o[n]}function v(e,t){var n=e.match(i);if(!n)return!1;var r=n[1],a=n[2],o=n[3],u=n[5];return r<=23&&a<=59&&o<=59&&(!t||u)}e.exports=p,p.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^[0-2]\d:[0-5]\d:[0-5]\d(?:\.\d+)?(?:z|[+-]\d\d:\d\d)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s][0-2]\d:[0-5]\d:[0-5]\d(?:\.\d+)?(?:z|[+-]\d\d:\d\d)$/i,uri:/^(?:[a-z][a-z0-9+-.]*)(?::|\/)\/?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+-.]*:)?\/\/)?[^\s]*$/i,"uri-template":l,url:c,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:u,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:b,uuid:f,"json-pointer":d,"relative-json-pointer":h},p.full={date:m,time:v,"date-time":function(e){var t=e.split(y);return 2==t.length&&m(t[0])&&v(t[1],!0)},uri:function(e){return g.test(e)&&s.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":l,url:c,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&''*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:function(e){return e.length<=255&&u.test(e)},ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:b,uuid:f,"json-pointer":d,"relative-json-pointer":h};var y=/t|\s/i;var g=/\/|:/;var _=/[^\\]\\Z/;function b(e){if(_.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},function(e,t,n){"use strict";var r=e.exports=function(){this._cache={}};r.prototype.put=function(e,t){this._cache[e]=t},r.prototype.get=function(e){return this._cache[e]},r.prototype.del=function(e){delete this._cache[e]},r.prototype.clear=function(){this._cache={}}},function(e,t,n){"use strict";var r=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),function e(t,n,o,i,u,s,l,c,f){if(o&&"object"==typeof o&&!Array.isArray(o))for(var d in n(o,i,u,s,l,c,f),o){var h=o[d];if(Array.isArray(h)){if(d in r.arrayKeywords)for(var p=0;p=55296&&t<=56319&&a0&&l>s&&(l=s);for(var c=0;c=0?(f=m.substr(0,v),d=m.substr(v+1)):(f=m,d=""),h=decodeURIComponent(f),p=decodeURIComponent(d),r(i,h)?a(i[h])?i[h].push(p):i[h]=[i[h],p]:i[h]=p}return i};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";t.decode=t.parse=n(368),t.encode=t.stringify=n(367)},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){(function(e,r){var a;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){"object"==typeof t&&t&&t.nodeType,"object"==typeof e&&e&&e.nodeType;var i="object"==typeof r&&r;i.global!==i&&i.window!==i&&i.self;var u,s=2147483647,l=36,c=1,f=26,d=38,h=700,p=72,m=128,v="-",y=/^xn--/,g=/[^\x20-\x7E]/,_=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=l-c,x=Math.floor,w=String.fromCharCode;function k(e){throw new RangeError(b[e])}function P(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function S(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+P((e=e.replace(_,".")).split("."),t).join(".")}function O(e){for(var t,n,r=[],a=0,o=e.length;a=55296&&t<=56319&&a65535&&(t+=w((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=w(e)}).join("")}function M(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:l}function N(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,n){var r=0;for(e=n?x(e/h):e>>1,e+=x(e/t);e>E*f>>1;r+=l)e=x(e/E);return x(r+(E+1)*e/(e+d))}function A(e){var t,n,r,a,o,i,u,d,h,y,g=[],_=e.length,b=0,E=m,w=p;for((n=e.lastIndexOf(v))<0&&(n=0),r=0;r=128&&k("not-basic"),g.push(e.charCodeAt(r));for(a=n>0?n+1:0;a<_;){for(o=b,i=1,u=l;a>=_&&k("invalid-input"),((d=M(e.charCodeAt(a++)))>=l||d>x((s-b)/i))&&k("overflow"),b+=d*i,!(d<(h=u<=w?c:u>=w+f?f:u-w));u+=l)i>x(s/(y=l-h))&&k("overflow"),i*=y;w=T(b-o,t=g.length+1,0==o),x(b/t)>s-E&&k("overflow"),E+=x(b/t),b%=t,g.splice(b++,0,E)}return C(g)}function R(e){var t,n,r,a,o,i,u,d,h,y,g,_,b,E,P,S=[];for(_=(e=O(e)).length,t=m,n=0,o=p,i=0;i<_;++i)(g=e[i])<128&&S.push(w(g));for(r=a=S.length,a&&S.push(v);r<_;){for(u=s,i=0;i<_;++i)(g=e[i])>=t&&gx((s-n)/(b=r+1))&&k("overflow"),n+=(u-t)*b,t=u,i=0;i<_;++i)if((g=e[i])s&&k("overflow"),g==t){for(d=n,h=l;!(d<(y=h<=o?c:h>=o+f?f:h-o));h+=l)P=d-y,E=l-y,S.push(w(N(y+P%E,0))),d=x(P/E);S.push(w(N(d,0))),o=T(n,b,r==a),n=0,++r}++n,++t}return S.join("")}u={version:"1.4.1",ucs2:{decode:O,encode:C},decode:A,encode:R,toASCII:function(e){return S(e,function(e){return g.test(e)?"xn--"+R(e):e})},toUnicode:function(e){return S(e,function(e){return y.test(e)?A(e.slice(4).toLowerCase()):e})}},void 0===(a=function(){return u}.call(t,n,t,e))||(e.exports=a)}()}).call(this,n(77)(e),n(79))},function(e,t,n){"use strict";var r=n(371),a=n(370);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=_,t.resolve=function(e,t){return _(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?_(e,!1,!0).resolveObject(t):t},t.format=function(e){a.isString(e)&&(e=_(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var i=/^([a-z0-9.+-]+:)/i,u=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(l),f=["%","/","?",";","#"].concat(c),d=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(369);function _(e,t,n){if(e&&a.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),u=-1!==o&&o127?R+="x":R+=A[j];if(!R.match(h)){var F=N.slice(0,O),I=N.slice(O+1),U=A.match(p);U&&(F.push(U[1]),I.unshift(U[2])),I.length&&(_="/"+I.join(".")+_),this.hostname=F.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),M||(this.hostname=r.toASCII(this.hostname));var L=this.port?":"+this.port:"",z=this.hostname||"";this.host=z+L,this.href+=this.host,M&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==_[0]&&(_="/"+_))}if(!m[x])for(O=0,T=c.length;O0)&&n.host.split("@"))&&(n.auth=M.shift(),n.host=n.hostname=M.shift());return n.search=e.search,n.query=e.query,a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!w.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var P=w.slice(-1)[0],S=(n.host||e.host||w.length>1)&&("."===P||".."===P)||""===P,O=0,C=w.length;C>=0;C--)"."===(P=w[C])?w.splice(C,1):".."===P?(w.splice(C,1),O++):O&&(w.splice(C,1),O--);if(!E&&!x)for(;O--;O)w.unshift("..");!E||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),S&&"/"!==w.join("/").substr(-1)&&w.push("");var M,N=""===w[0]||w[0]&&"/"===w[0].charAt(0);k&&(n.hostname=n.host=N?"":w.length?w.shift():"",(M=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=M.shift(),n.host=n.hostname=M.shift()));return(E=E||n.host&&w.length)&&!N&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=u.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){"use strict";var r=n(78),a=n(29),o=n(75),i=n(145),u=n(144),s=n(143),l=a.ucs2length,c=n(76),f=o.Validation;function d(e,t,n){for(var r=0;r=0?{index:r,compiling:!0}:(r=this._compilations.length,this._compilations[r]={schema:e,root:t,baseId:n},{index:r,compiling:!1})}.call(this,t,n,_);var N=this._compilations[M.index];if(M.compiling)return N.callValidate=function e(){var t=N.validate;var n=t.apply(null,arguments);e.errors=t.errors;return n};var T=this._formats;var A=this.RULES;try{var R=D(t,n,g,_);N.validate=R;var j=N.callValidate;return j&&(j.schema=R.schema,j.errors=null,j.refs=R.refs,j.refVal=R.refVal,j.root=R.root,j.$async=R.$async,E.sourceCode&&(j.source=R.source)),R}finally{(function(e,t,n){var r=d.call(this,e,t,n);r>=0&&this._compilations.splice(r,1)}).call(this,t,n,_)}function D(t,i,d,g){var _=!i||i&&i.schema==t;if(i.schema!=n.schema)return e.call(b,t,i,d,g);var P,O=!0===t.$async,M=u({isTop:!0,schema:t,isRoot:_,baseId:g,root:i,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:o.MissingRef,RULES:A,validate:u,util:a,resolve:r,resolveRef:F,usePattern:L,useDefault:z,useCustomRule:V,opts:E,formats:T,logger:b.logger,self:b});M=y(x,m)+y(k,h)+y(S,p)+y(C,v)+M,E.processCode&&(M=E.processCode(M));try{var N=new Function("self","RULES","formats","root","refVal","defaults","customRules","co","equal","ucs2length","ValidationError",M);P=N(b,A,T,n,x,S,C,s,c,l,f),x[0]=P}catch(e){throw b.logger.error("Error compiling schema, function code:",M),e}return P.schema=t,P.errors=null,P.refs=w,P.refVal=x,P.root=_?P:i,O&&(P.$async=!0),!0===E.sourceCode&&(P.source={code:M,patterns:k,defaults:S}),P}function F(t,a,o){a=r.url(t,a);var i,u,s=w[a];if(void 0!==s)return U(i=x[s],u="refVal["+s+"]");if(!o&&n.refs){var l=n.refs[a];if(void 0!==l)return i=n.refVal[l],u=I(a,i),U(i,u)}u=I(a);var c=r.call(b,D,n,a);if(void 0===c){var f=g&&g[a];f&&(c=r.inlineRef(f,E.inlineRefs)?f:e.call(b,f,n,g,t))}if(void 0!==c)return function(e,t){var n=w[e];x[n]=t}(a,c),U(c,u);!function(e){delete w[e]}(a)}function I(e,t){var n=x.length;return x[n]=t,w[e]=n,"refVal"+n}function U(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&e.$async}}function L(e){var t=P[e];return void 0===t&&(t=P[e]=k.length,k[t]=e),"pattern"+t}function z(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return a.toQuotedString(e);case"object":if(null===e)return"null";var t=i(e),n=O[t];return void 0===n&&(n=O[t]=S.length,S[n]=e),"default"+n}}function V(e,t,n,r){var a=e.definition.validateSchema;if(a&&!1!==b._opts.validateSchema){var o=a(t);if(!o){var i="keyword schema is invalid: "+b.errorsText(a.errors);if("log"!=b._opts.validateSchema)throw new Error(i);b.logger.error(i)}}var u,s=e.definition.compile,l=e.definition.inline,c=e.definition.macro;if(s)u=s.call(b,t,n,r);else if(c)u=c.call(b,t,n,r),!1!==E.validateSchema&&b.validateSchema(u,!0);else if(l)u=l.call(b,r,e.keyword,t,n);else if(!(u=e.definition.validate))return;if(void 0===u)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var f=C.length;return C[f]=u,{code:"customRule"+f,validate:u}}}},function(e,t,n){"use strict";var r=n(373),a=n(78),o=n(364),i=n(146),u=n(145),s=n(363),l=n(362),c=n(343),f=n(342),d=n(29),h=n(143);e.exports=_,_.prototype.validate=function(e,t){var n;if("string"==typeof e){if(!(n=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var r=this._addSchema(e);n=r.validate||this._compile(r)}var a=n(t);return!0===n.$async?"*"==this._opts.async?h(a):a:(this.errors=n.errors,a)},_.prototype.compile=function(e,t){var n=this._addSchema(e,void 0,t);return n.validate||this._compile(n)},_.prototype.addSchema=function(e,t,n,r){if(Array.isArray(e)){for(var o=0;o-1},T.prototype.set=function(e,t){var n=this.__data__,r=R(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},A.prototype.clear=function(){this.__data__={hash:new N,map:new(S||T),string:new N}},A.prototype.delete=function(e){return D(this,e).delete(e)},A.prototype.get=function(e){return D(this,e).get(e)},A.prototype.has=function(e){return D(this,e).has(e)},A.prototype.set=function(e,t){return D(this,e).set(e,t),this};var I=L(function(e){e=function(e){return null==e?"":function(e){if("string"==typeof e)return e;if(B(e))return M?M.call(e):"";var t=e+"";return"0"==t&&1/e==-a?"-0":t}(e)}(e);var t=[];return s.test(e)&&t.push(""),e.replace(l,function(e,n,r,a){t.push(r?a.replace(c,"$1"):n||e)}),t});function U(e){if("string"==typeof e||B(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}function L(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(n);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i),i};return r.cache=new(L.Cache||A),r}function z(e,t){return e===t||e!=e&&t!=t}L.Cache=A;var V=Array.isArray;function $(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function B(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&x.call(e)==u}e.exports=function(e){return V(e)?function(e,t){for(var n=-1,r=e?e.length:0,a=Array(r);++n1?arguments[1]:void 0,v=void 0!==m,y=0,g=c(d);if(v&&(m=r(m,p>2?arguments[2]:void 0,2)),void 0==g||h==Array&&u(g))for(n=new h(t=s(d.length));t>y;y++)l(n,y,v?m(d[y],y):d[y]);else for(f=g.call(d),n=new h;!(a=f.next()).done;y++)l(n,y,v?i(f,m,[a.value,y],!0):a.value);return n.length=y,n}})},function(e,t,n){n(41),n(382),e.exports=n(3).Array.from},function(e,t,n){"use strict";var r=n(5),a=n(43),o=n(19),i=n(38);e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,u,s=arguments[1];return a(this),(t=void 0!==s)&&a(s),void 0==e?new this:(n=[],t?(r=0,u=o(s,arguments[2],2),i(e,!1,function(e){n.push(u(e,r++))})):i(e,!1,n.push,n),new this(n))}})}},function(e,t,n){n(384)("Set")},function(e,t,n){"use strict";var r=n(5);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){n(386)("Set")},function(e,t,n){var r=n(38);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},function(e,t,n){var r=n(80),a=n(388);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return a(this)}}},function(e,t,n){var r=n(5);r(r.P+r.R,"Set",{toJSON:n(389)("Set")})},function(e,t,n){var r=n(14),a=n(159),o=n(8)("species");e.exports=function(e){var t;return a(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!a(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var r=n(391);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(19),a=n(99),o=n(26),i=n(45),u=n(392);e.exports=function(e,t){var n=1==e,s=2==e,l=3==e,c=4==e,f=6==e,d=5==e||f,h=t||u;return function(t,u,p){for(var m,v,y=o(t),g=a(y),_=r(u,p,3),b=i(g.length),E=0,x=n?h(t,b):s?h(t,0):void 0;b>E;E++)if((d||E in g)&&(v=_(m=g[E],E,y),e))if(n)x[E]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return E;case 2:x.push(m)}else if(c)return!1;return f?-1:l||c?c:x}}},function(e,t,n){"use strict";var r=n(6),a=n(5),o=n(87),i=n(24),u=n(21),s=n(83),l=n(38),c=n(82),f=n(14),d=n(39),h=n(15).f,p=n(393)(0),m=n(16);e.exports=function(e,t,n,v,y,g){var _=r[e],b=_,E=y?"set":"add",x=b&&b.prototype,w={};return m&&"function"==typeof b&&(g||x.forEach&&!i(function(){(new b).entries().next()}))?(b=t(function(t,n){c(t,b,e,"_c"),t._c=new _,void 0!=n&&l(n,y,t[E],t)}),p("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(e){var t="add"==e||"set"==e;e in x&&(!g||"clear"!=e)&&u(b.prototype,e,function(n,r){if(c(this,b,e),!t&&g&&!f(n))return"get"==e&&void 0;var a=this._c[e](0===n?0:n,r);return t?this:a})}),g||h(b.prototype,"size",{get:function(){return this._c.size}})):(b=v.getConstructor(t,e,y,E),s(b.prototype,n),o.NEED=!0),d(b,e),w[e]=b,a(a.G+a.W+a.F,w),g||v.setStrong(b,e,y),b}},function(e,t,n){"use strict";var r=n(15).f,a=n(58),o=n(83),i=n(19),u=n(82),s=n(38),l=n(90),c=n(160),f=n(152),d=n(16),h=n(87).fastKey,p=n(151),m=d?"_s":"size",v=function(e,t){var n,r=h(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,l){var c=e(function(e,r){u(e,c,t,"_i"),e._t=t,e._i=a(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=r&&s(r,n,e[l],e)});return o(c.prototype,{clear:function(){for(var e=p(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=p(this,t),r=v(n,e);if(r){var a=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=a),a&&(a.p=o),n._f==r&&(n._f=a),n._l==r&&(n._l=o),n[m]--}return!!r},forEach:function(e){p(this,t);for(var n,r=i(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!v(p(this,t),e)}}),d&&r(c.prototype,"size",{get:function(){return p(this,t)[m]}}),c},def:function(e,t,n){var r,a,o=v(e,t);return o?o.v=n:(e._l=o={i:a=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[m]++,"F"!==a&&(e._i[a]=o)),e},getEntry:v,setStrong:function(e,t,n){l(e,t,function(e,n){this._t=p(e,t),this._k=n,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?c(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,c(1))},n?"entries":"values",!n,!0),f(t)}}},function(e,t,n){"use strict";var r=n(395),a=n(151);e.exports=n(394)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(a(this,"Set"),e=0===e?0:e,e)}},r)},function(e,t,n){n(85),n(41),n(57),n(396),n(390),n(387),n(385),e.exports=n(3).Set},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(5),a=n(84);r(r.G+r.B,{setImmediate:a.set,clearImmediate:a.clear})},function(e,t,n){n(399),e.exports=n(3).setImmediate},function(e,t,n){e.exports={default:n(400),__esModule:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.errors;return r.default.createElement("div",{className:"panel panel-danger errors"},r.default.createElement("div",{className:"panel-heading"},r.default.createElement("h3",{className:"panel-title"},"Errors")),r.default.createElement("ul",{className:"list-group"},t.map(function(e,t){return r.default.createElement("li",{key:t,className:"list-group-item text-danger"},e.stack)})))};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1))},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(403);function a(){}e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=a,n.PropTypes=n,n}},function(e,t,n){var r=n(5);r(r.S,"Object",{create:n(58)})},function(e,t,n){n(405);var r=n(3).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){e.exports={default:n(406),__esModule:!0}},function(e,t,n){var r=n(14),a=n(17),o=function(e,t){if(a(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(19)(Function.call,n(156).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){var r=n(5);r(r.S,"Object",{setPrototypeOf:n(408).set})},function(e,t,n){n(409),e.exports=n(3).Object.setPrototypeOf},function(e,t,n){e.exports={default:n(410),__esModule:!0}},function(e,t,n){n(86)("observable")},function(e,t,n){n(86)("asyncIterator")},function(e,t,n){var r=n(47),a=n(91),o=n(60);e.exports=function(e){var t=r(e),n=a.f;if(n)for(var i,u=n(e),s=o.f,l=0;u.length>l;)s.call(e,i=u[l++])&&t.push(i);return t}},function(e,t,n){"use strict";var r=n(6),a=n(25),o=n(16),i=n(5),u=n(162),s=n(87).KEY,l=n(24),c=n(96),f=n(39),d=n(61),h=n(8),p=n(88),m=n(86),v=n(414),y=n(159),g=n(17),_=n(14),b=n(32),E=n(92),x=n(42),w=n(58),k=n(158),P=n(156),S=n(15),O=n(47),C=P.f,M=S.f,N=k.f,T=r.Symbol,A=r.JSON,R=A&&A.stringify,j=h("_hidden"),D=h("toPrimitive"),F={}.propertyIsEnumerable,I=c("symbol-registry"),U=c("symbols"),L=c("op-symbols"),z=Object.prototype,V="function"==typeof T,$=r.QObject,B=!$||!$.prototype||!$.prototype.findChild,q=o&&l(function(){return 7!=w(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=C(z,t);r&&delete z[t],M(e,t,n),r&&e!==z&&M(z,t,r)}:M,W=function(e){var t=U[e]=w(T.prototype);return t._k=e,t},G=V&&"symbol"==typeof T.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof T},H=function(e,t,n){return e===z&&H(L,t,n),g(e),t=E(t,!0),g(n),a(U,t)?(n.enumerable?(a(e,j)&&e[j][t]&&(e[j][t]=!1),n=w(n,{enumerable:x(0,!1)})):(a(e,j)||M(e,j,x(1,{})),e[j][t]=!0),q(e,t,n)):M(e,t,n)},K=function(e,t){g(e);for(var n,r=v(t=b(t)),a=0,o=r.length;o>a;)H(e,n=r[a++],t[n]);return e},Y=function(e){var t=F.call(this,e=E(e,!0));return!(this===z&&a(U,e)&&!a(L,e))&&(!(t||!a(this,e)||!a(U,e)||a(this,j)&&this[j][e])||t)},Q=function(e,t){if(e=b(e),t=E(t,!0),e!==z||!a(U,t)||a(L,t)){var n=C(e,t);return!n||!a(U,t)||a(e,j)&&e[j][t]||(n.enumerable=!0),n}},X=function(e){for(var t,n=N(b(e)),r=[],o=0;n.length>o;)a(U,t=n[o++])||t==j||t==s||r.push(t);return r},Z=function(e){for(var t,n=e===z,r=N(n?L:b(e)),o=[],i=0;r.length>i;)!a(U,t=r[i++])||n&&!a(z,t)||o.push(U[t]);return o};V||(u((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===z&&t.call(L,n),a(this,j)&&a(this[j],e)&&(this[j][e]=!1),q(this,e,x(1,n))};return o&&B&&q(z,e,{configurable:!0,set:t}),W(e)}).prototype,"toString",function(){return this._k}),P.f=Q,S.f=H,n(157).f=k.f=X,n(60).f=Y,n(91).f=Z,o&&!n(44)&&u(z,"propertyIsEnumerable",Y,!0),p.f=function(e){return W(h(e))}),i(i.G+i.W+i.F*!V,{Symbol:T});for(var J="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;J.length>ee;)h(J[ee++]);for(var te=O(h.store),ne=0;te.length>ne;)m(te[ne++]);i(i.S+i.F*!V,"Symbol",{for:function(e){return a(I,e+="")?I[e]:I[e]=T(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in I)if(I[t]===e)return t},useSetter:function(){B=!0},useSimple:function(){B=!1}}),i(i.S+i.F*!V,"Object",{create:function(e,t){return void 0===t?w(e):K(w(e),t)},defineProperty:H,defineProperties:K,getOwnPropertyDescriptor:Q,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),A&&i(i.S+i.F*(!V||l(function(){var e=T();return"[null]"!=R([e])||"{}"!=R({a:e})||"{}"!=R(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],a=1;arguments.length>a;)r.push(arguments[a++]);if(n=t=r[1],(_(t)||void 0!==e)&&!G(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),r[1]=t,R.apply(A,r)}}),T.prototype[D]||n(21)(T.prototype,D,T.prototype.valueOf),f(T,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){n(415),n(85),n(413),n(412),e.exports=n(3).Symbol},function(e,t,n){e.exports={default:n(416),__esModule:!0}},function(e,t,n){"use strict";var r=n(89),a=n(160),o=n(40),i=n(32);e.exports=n(90)(Array,"Array",function(e,t){this._t=i(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,a(1)):a(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(15),a=n(17),o=n(47);e.exports=n(16)?Object.defineProperties:function(e,t){a(e);for(var n,i=o(t),u=i.length,s=0;u>s;)r.f(e,n=i[s++],t[n]);return e}},function(e,t,n){"use strict";var r=n(58),a=n(42),o=n(39),i={};n(21)(i,n(8)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(i,{next:a(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(98),a=n(100);e.exports=function(e){return function(t,n){var o,i,u=String(a(t)),s=r(n),l=u.length;return s<0||s>=l?e?"":void 0:(o=u.charCodeAt(s))<55296||o>56319||s+1===l||(i=u.charCodeAt(s+1))<56320||i>57343?e?u.charAt(s):o:e?u.slice(s,s+2):i-56320+(o-55296<<10)+65536}}},function(e,t,n){n(41),n(57),e.exports=n(88).f("iterator")},function(e,t,n){var r=n(5);r(r.S+r.F*!n(16),"Object",{defineProperty:n(15).f})},function(e,t,n){n(423);var r=n(3).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(26),a=n(165);n(94)("getPrototypeOf",function(){return function(e){return a(r(e))}})},function(e,t,n){n(425),e.exports=n(3).Object.getPrototypeOf},function(e,t,n){"use strict";var r=n(47),a=n(91),o=n(60),i=n(26),u=n(99),s=Object.assign;e.exports=!s||n(24)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=r})?function(e,t){for(var n=i(e),s=arguments.length,l=1,c=a.f,f=o.f;s>l;)for(var d,h=u(arguments[l++]),p=c?r(h).concat(c(h)):r(h),m=p.length,v=0;m>v;)f.call(h,d=p[v++])&&(n[d]=h[d]);return n}:s},function(e,t,n){var r=n(5);r(r.S+r.F,"Object",{assign:n(427)})},function(e,t,n){n(428),e.exports=n(3).Object.assign},function(e,t,n){var r=n(26),a=n(47);n(94)("keys",function(){return function(e){return a(r(e))}})},function(e,t,n){n(430),e.exports=n(3).Object.keys},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=v(n(27)),a=v(n(4)),o=v(n(13)),i=v(n(12)),u=v(n(11)),s=v(n(10)),l=v(n(9)),c=n(1),f=v(c),d=(v(n(2)),v(n(402))),h=n(7),p=n(147),m=v(p);function v(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,i.default)(this,t);var n=(0,s.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return n.onChange=function(e,t){var r={formData:e};if(!n.props.noValidate&&n.props.liveValidate){var o=n.validate(e),i=o.errors,u=o.errorSchema;r=(0,a.default)({},r,{errors:i,errorSchema:u})}else!n.props.noValidate&&t&&(r=(0,a.default)({},r,{errorSchema:t,errors:(0,p.toErrorList)(t)}));(0,h.setState)(n,r,function(){n.props.onChange&&n.props.onChange(n.state)})},n.onBlur=function(){var e;n.props.onBlur&&(e=n.props).onBlur.apply(e,arguments)},n.onFocus=function(){var e;n.props.onFocus&&(e=n.props).onFocus.apply(e,arguments)},n.onSubmit=function(e){if(e.preventDefault(),!n.props.noValidate){var t=n.validate(n.state.formData),o=t.errors,i=t.errorSchema;if((0,r.default)(o).length>0)return void(0,h.setState)(n,{errors:o,errorSchema:i},function(){n.props.onError?n.props.onError(o):console.error("Form validation failed",o)})}(0,h.setState)(n,{errors:[],errorSchema:{}},function(){n.props.onSubmit&&n.props.onSubmit((0,a.default)({},n.state,{status:"submitted"}))})},n.state=n.getStateFromProps(e),n}return(0,l.default)(t,e),(0,u.default)(t,[{key:"componentWillReceiveProps",value:function(e){this.setState(this.getStateFromProps(e))}},{key:"getStateFromProps",value:function(e){var t=this.state||{},n="schema"in e?e.schema:this.props.schema,r="uiSchema"in e?e.uiSchema:this.props.uiSchema,a=void 0!==e.formData,o=e.liveValidate||this.props.liveValidate,i=a&&!e.noValidate&&o,u=n.definitions,s=(0,h.getDefaultFormState)(n,e.formData,u),l=(0,h.retrieveSchema)(n,u,s),c=i?this.validate(s,n):{errors:t.errors||[],errorSchema:t.errorSchema||{}},f=c.errors,d=c.errorSchema;return{schema:n,uiSchema:r,idSchema:(0,h.toIdSchema)(l,r["ui:rootFieldId"],u,s,e.idPrefix),formData:s,edit:a,errors:f,errorSchema:d}}},{key:"shouldComponentUpdate",value:function(e,t){return(0,h.shouldRender)(this,e,t)}},{key:"validate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.schema,n=this.props,r=n.validate,a=n.transformErrors,o=this.getRegistry().definitions,i=(0,h.retrieveSchema)(t,o,e);return(0,m.default)(e,i,r,a)}},{key:"renderErrors",value:function(){var e=this.state,t=e.errors,n=e.errorSchema,r=e.schema,a=e.uiSchema,o=this.props,i=o.ErrorList,u=o.showErrorList,s=o.formContext;return t.length&&0!=u?f.default.createElement(i,{errors:t,errorSchema:n,schema:r,uiSchema:a,formContext:s}):null}},{key:"getRegistry",value:function(){var e=(0,h.getDefaultRegistry)(),t=e.fields,n=e.widgets;return{fields:(0,a.default)({},t,this.props.fields),widgets:(0,a.default)({},n,this.props.widgets),ArrayFieldTemplate:this.props.ArrayFieldTemplate,ObjectFieldTemplate:this.props.ObjectFieldTemplate,FieldTemplate:this.props.FieldTemplate,definitions:this.props.schema.definitions||{},formContext:this.props.formContext||{}}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.safeRenderCompletion,r=e.id,a=e.idPrefix,o=e.className,i=e.name,u=e.method,s=e.target,l=e.action,c=e.autocomplete,d=e.enctype,h=e.acceptcharset,p=e.noHtml5Validate,m=this.state,v=m.schema,y=m.uiSchema,g=m.formData,_=m.errorSchema,b=m.idSchema,E=this.getRegistry(),x=E.fields.SchemaField;return f.default.createElement("form",{className:o||"rjsf",id:r,name:i,method:u,target:s,action:l,autoComplete:c,encType:d,acceptCharset:h,noValidate:p,onSubmit:this.onSubmit},this.renderErrors(),f.default.createElement(x,{schema:v,uiSchema:y,errorSchema:_,idSchema:b,idPrefix:a,formData:g,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:E,safeRenderCompletion:n}),t||f.default.createElement("p",null,f.default.createElement("button",{type:"submit",className:"btn btn-info"},"Submit")))}}]),t}(c.Component);y.defaultProps={uiSchema:{},noValidate:!1,liveValidate:!1,safeRenderCompletion:!1,noHtml5Validate:!1,ErrorList:d.default},t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(432));t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;tthis.eventPool.length&&this.eventPool.push(e)}function we(e){e.eventPool=[],e.getPooled=Ee,e.release=xe}i(be.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=u.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=u.thatReturnsTrue)},persist:function(){this.isPersistent=u.thatReturnsTrue},isPersistent:u.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t=Ce),Te=String.fromCharCode(32),Ae={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Re=!1;function je(e,t){switch(e){case"keyup":return-1!==Se.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function De(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Fe=!1;var Ie={eventTypes:Ae,extractEvents:function(e,t,n,r){var a=void 0,o=void 0;if(Oe)e:{switch(e){case"compositionstart":a=Ae.compositionStart;break e;case"compositionend":a=Ae.compositionEnd;break e;case"compositionupdate":a=Ae.compositionUpdate;break e}a=void 0}else Fe?je(e,n)&&(a=Ae.compositionEnd):"keydown"===e&&229===n.keyCode&&(a=Ae.compositionStart);return a?(Ne&&(Fe||a!==Ae.compositionStart?a===Ae.compositionEnd&&Fe&&(o=ve()):(me._root=r,me._startText=ye(),Fe=!0)),a=ke.getPooled(a,t,n,r),o?a.data=o:null!==(o=De(n))&&(a.data=o),ee(a),o=a):o=null,(e=Me?function(e,t){switch(e){case"compositionend":return De(t);case"keypress":return 32!==t.which?null:(Re=!0,Te);case"textInput":return(e=t.data)===Te&&Re?null:e;default:return null}}(e,n):function(e,t){if(Fe)return"compositionend"===e||!Oe&&je(e,t)?(e=ve(),me._root=null,me._startText=null,me._fallbackText=null,Fe=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1